How do I remove SELinux in Ubuntu Server 10.04 as the config file is not located in /etc/selinux
and the folder /selinux
is empty?
Sorin-Mihai Oprea's questions
I have a Lucid Server (10.04) set up and I would like to change the mirror from US (or any other country) to the Main Ubuntu Mirror.
For example my two first entries in sources.list are:
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
In a Desktop environment I would select the main mirror like this:
But how do I do that from the terminal as I don't have a graphical environment installed!
I have recently installed Ubuntu Server 10.04 LTS on my machine that has Windows 7 Ultimate. I would like to run the VM graphicless and access it through ssh from Windows 7. My machine is connected to a router wirelessly and with DHCP. I tried different combinations (NAT/Bridged) but still I am unable to access the guest with PuTTY. It either says connection refused or it simply hangs without anyh other output. While I try to connect to the ssh daemon my VM is started and I am logged in with a normal user.
My Ubuntu Setup was just installed and I haven't configured anything on it except done an apt-get update && apt-get upgrade
Also the open-ssh daemon is started and running.
I don't have ICS on my Windows machine so normally nothing should interfere with the ports. I try to connect to 127.0.0.1:22 with the normal user name for the Ubuntu setup and it won't connect!
I want to set up an RSync job that would connect through SSH.
I have my computer ( backup@myhost ) and the remote host ( test@remhost ) and I need to backup the folder ~/something with all it's contents. The ssh user test only has READ access to all files and folders in the ~/ folder. I want to use rsync to copy the test@remhost:~/something folder to the backup@myhost:~/bak folder.
For this purpose I use the following command via BASH on Ubuntu 11.10 (Oneiric):
rsync -avz -e ssh test@remhost:~/something/ ~/bak/
After hitting enter I get this:
test@remhost's password:
I type the password and the rsync works.
I want to make the above command to automatically input the password and pass it as a parameter or to input it automatically and start the job.
I tried executing rsync -avz -e ssh test:password@remhost:~/something/ ~/bak/
but it still asks for the password and it's annoying.
I don't want to hear about any kind of keys (RSA,DSA or any other). I just want a simple command that would log me in and do the job.
EDIT: A possible scenario could be, if public key authentication is disabled and you can't change this. E.g. if you use OpenSSH, you'd need root privileges on the server in order to edit the file sshd_config
and to add PubkeyAuthentication yes
.
EDIT: This is what finally worked for me:
sshpass -p 'sshpassword' rsync --progress -avz -e ssh test@remhost:~/something/ ~/bak/
Please note that this method is not considered secure as it sends the password in plain text and it's vulnerable to man-in-the-middle attacks. It is advised to use the key athentication for a stronger security.