I use Android Studio in Ubuntu and everything was working fine. Since two weeks that shortcuts stopped working, Ctrl+C, Ctrl+V, Ctrl+Z. I tried to change Keymap
in Settings
but without success.
What could be the possible problem?
I use Android Studio in Ubuntu and everything was working fine. Since two weeks that shortcuts stopped working, Ctrl+C, Ctrl+V, Ctrl+Z. I tried to change Keymap
in Settings
but without success.
What could be the possible problem?
I have mailserver configure using dovecot+postfix+mysql and it was runnig fine in the server(Ubuntu Server). But during last week it stopped working correctly. It doesn't send email. When I try to telnet localhost smtp
I'm connecting successfully but when I do mail from:<[email protected]>
and hit Enter it hangs on, nothing happen.
Having reviewed /var/log/mail.log
file I've found out that probably(99%) the problem is on postfix when it is trying to connect to MySQL server. If you see the log file given below you can see that it says Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
.
Nov 14 21:54:36 ns1 dovecot: dovecot: Killed with signal 15 (by pid=7731 uid=0 code=kill)
Nov 14 21:54:36 ns1 dovecot: Dovecot v1.2.9 starting up (core dumps disabled)
Nov 14 21:54:36 ns1 dovecot: auth-worker(default): mysql: Connected to localhost (mailserver)
Nov 14 21:54:44 ns1 postfix/postfix-script[7753]: refreshing the Postfix mail system
Nov 14 21:54:44 ns1 postfix/master[1670]: reload -- version 2.7.0, configuration /etc/postfix
Nov 14 21:54:52 ns1 postfix/trivial-rewrite[7759]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Nov 14 21:54:52 ns1 postfix/trivial-rewrite[7759]: fatal: mysql:/etc/postfix/mysql-virtual-alias-maps.cf(0,lock|fold_fix): table lookup problem
Nov 14 21:54:53 ns1 postfix/master[1670]: warning: process /usr/lib/postfix/trivial-rewrite pid 7759 exit status 1
Nov 14 21:54:53 ns1 postfix/cleanup[7397]: warning: problem talking to service rewrite: Connection reset by peer
Nov 14 21:54:53 ns1 postfix/master[1670]: warning: /usr/lib/postfix/trivial-rewrite: bad command startup -- throttling
Nov 14 21:54:53 ns1 postfix/smtpd[7071]: warning: problem talking to service rewrite: Success
I tried netstat -ln | grep mysql
and it returns
unix 2 [ ACC ] STREAM LISTENING 5817 /var/run/mysqld/mysqld.sock
.
The content of /etc/postfix/mysql-virtual-alias-maps.cf
file is here:
user = stevejobs
password = apple
hosts = localhost
dbname = mailserver
query = SELECT destination FROM virtual_aliases WHERE source='%s'
Here I tried to change hosts = 127.0.0.1
but it says warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (110)
So, I am lost and don't know where else to change in order to solve the problem. Any help would be appreciated highly.
Thank you.
EDIT 1
When I do netstat -na I see that mysql is not bind neither to localhost nor to 127.0.0.1. Could it be the problem also?
bakhtiyor@ns1:~$ netstat -na | grep 3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
I am connecting to a WiFi network through my laptop in Ubuntu. Now I need to share my Internet connection with my wife's netbook because her netbook is not able to connect to that WiFi network directly, because of its weak signal.
How can I do that in Ubuntu?
Does anybody know where can I get Adobe Acrobat for 64 bit Ubuntu?
I am archiving a folder using following command:
tar jcf "home/username/forum/forum.tar.bz2" /var/www/forum/
Then I am extracting using :
tar jxf forum.tar.bz2 ./
It extracts correctly, but creates /home/username/forum/var/www/forum
folder. What do I need to do in order to extract it into /home/username/forum
folder?
Thank you
I tried to use sudo cd name_of_dir
but am getting the error message:
sudo: cd: command not found
Is there any other way to enter a directory owned by another user which has 700 permission?
I am logging in to my Ubuntu Server using my username. Once I am logged in I am typing passwd
command. Entering a new password but a second after getting following error messages:
passwd: Authentication token manipulation error
passwd: password unchanged
What is wrong here? How can I change my password otherwise if I don't have access to that server physically, i.e. I am connecting remotely with ssh
using terminal.
I need to set the umask
value for one specific folder. I have a web application and when it creates some file the default permission is 700. But I need at least 755 permission for that file. How can one do that?
I have Ubuntu 10.10 and using VirtualBox 3.2. As a Guest OS I have another Ubuntu in the VirtualBox.
I am starting Guest Ubuntu automatically using following command once my Host Ubuntu boots:
VBoxHeadless -startvm Ubuntu --vrdp on
Then I can access to it with ssh or tsclient.
Now I need to shutdown automatically Guest Ubuntu once I shutdown my Host Ubuntu. Does anybody know any safe method to automatically shutdown Guest Ubuntu with a command line? I have found out two ways one can shutdown Guest OS but I am not sure whether they are safe or not. Here are they:
VBoxManage controlvm Ubuntu acpipowerbutton
or
VBoxManage controlvm Ubuntu poweroff
In Ubuntu when new mail arrives Evolution changes message indicator to green color. I have migrated from Evolution to Thunderbird and that is why looking for how to make Thunderbird react like Evolution once a new mail arrives.
UPDATE 1
I have forgotten to note that I don't have administrator privileges in my working computer.
Thanks
Is it any way to import/export Radio Station list of Rhythmbox?
If not, could you please suggest me any good music player which has similar functionality like Rhythmbox?
Thank you!
As it was suggested here I am using cat
command to concatenate several .mp3 files into one .mp3 file.
Imagine, I have following .mp3 files in the current folder:
001001.mp3 001002.mp3 001003.mp3 001004.mp3 001005.mp3
or, like this:
096001.mp3 096002.mp3 096003.mp3 096004.mp3
I need to concatenate these .mp3 files in there ascending sequence, i.e. 001001.mp3+001002.mp3+001003.mp3+etc.
In order to join these .mp3 files into one I am executing following command in the current folder:
cat *.mp3 > final.mp3
I tested the final .mp3 file and it is what I am expected, but I need to be sure that above command picks files in there ascending sequence.
Can I be sure that above command always concatenates files in the ascending sequence?
Thank you Sir!
I would like to create an alias to rm
command in order to have a confirmation message after executing this command. So I am creating an alias like this alias rm='rm -i'
. But as far as I know this is a temporary alias and it lives until you close the terminal.
As it is explained here to save alias permanently I need to execute ~/.bash_aliases
or ~/.bashrc
commands in terminal and add my alias there. But when I execute ~/.bashrc
I get following error message :
bash: /home/bakhtiyor/.bashrc: Permission denied
When I run ~/.bash_aliases
I get another error message like this:
bash: /home/bakhtiyor/.bash_aliases: File or directory doesn't exist.
What is the actual problem and how can I solve it?
I want to hide bottom panel so that I would be able to show it again when I want. In the properties menu of the panel there is an option for Autohide but not hide totally.
The reason I need it, is because I am using Docky panel and it now it is behind the bottom panel and looks like awful.
What I am doing right now is I am deleting it totally by right clicking on the panel. And the only way I know to return it back is executing following command in the terminal.
rm -r ~/.gconf/apps/panel
Any other solutions?
I have copied this bunch of code from one funny video clip about How does a programmer swing his baby. The code is following:
#!/bin/bash
while [ l=l ]
do
#eject cdrom
eject
#pull cdrom track back in
eject -t
done
But it doesn't work for me, when I run it with the command sh baby_rocker.sh
it performs the code and outputs the following message eject: unable to find or open device for: "cdrom"
even though I have CD-ROM device on my computer.
How can I make it to work?
I have installed Back In Time Backup Application and configured to backup one important folder every day into another folder.
Question.
Does it perform backup operation only when the application is open(or launched)?
Should I launch this application every time I log in to Ubuntu?
If YES, how can I make it to run automatically every time I log in to Ubuntu?
Thank you beforehand.
I have Ubuntu 10.04 installed in my Host Machine and it has VirtualBox. I have Guest Machine wich runs Ubuntu 10.10.
I have NetBeans installed in Host Machine and need to open my project files which are located in Guest Machine. The reason I need it is because in my working place I have not access to install any applications, that is why I have Guest Machine where I have Web Server installed on it and also I have one web application that I am developing.
I need to open that web application files from Guest Machine's Netbeans in order to modify/create new files for my web application.
I have configured SSH server of Guest Machine and added port redirection in the VirtualBox so that now I can connect to it from Host Machine. But I could not find any way to open those files from Netbeans.
Could anybody give me advice about how can I do that please?
UPDATE
I forgot to say that I don't want to use SharedFolders.
I have Ubuntu 10.04 as host machine and Ubuntu 10.10 as guest machine installed in VirtualBox.
I had success on port forwarding to connect to Apache of guest machine, so that now I can open in host machine web sites published in Web Server(Apache) of guest machine.
I need to do the same with MySql, i.e. access MySql of guest machine from host machine.
In order to achieve this goal I am executing following commands in host machine:
VBoxManage setextradata Ubuntu "VBoxInternal/Devices/e1000/0/LUN#0/Config/mysql/HostPort" 3307
VBoxManage setextradata Ubuntu "VBoxInternal/Devices/e1000/0/LUN#0/Config/mysql/GuestPort" 3306
VBoxManage setextradata Ubuntu "VBoxInternal/Devices/e1000/0/LUN#0/Config/mysql/Protocol" TCP
where Ubuntu is the name of the host machine.
Guest machine loads and when I try to connect to MySql from host machine it can not connect to it.
What could be the problem here?
Thank you.
I have the last version of Chrome 5.0.xx. and my Ubuntu is also of the last version 10.04. What I usually do is to open two instances of Chrome and divide the screen into two parts. In one part my son watches cartoons in Youtube and in the other part I just read some news.
So, sometimes, when I close some pages of the news I have being read the video which was being played in youtube crashes and immediately stops. I need to refresh youtube page and see the video again.
What is the problem? How to solve it
I need to update firmware of my iPod Touch (iPhone) in Ubuntu and as I have jailbroken iPod Touch I need iTunes to install apps, but unfortunately haven't found any ways to do that in Ubuntu yet. I know that it is possible to use VirtualBox or Wine, but still in the most of the times iTunes doesn't want to work on Wine and for VirtualBox I need to install again that Windows from which I switched into Ubuntu just a few months ago and don't want to go back to it.
What do Linux users who have iPod Touch(iPhone) do in this case?
Any suggestions to solve the problem will be pleased.
And finally,how long will it be before Apple develops iTunes for Linux OS?