Articles Photographs

VMware Ubuntu Server, Step 3: Install VMware Tools and Enable root ssh with Empty Password

Categories
created: 4/1/2008 updated: 5/22/2008

Previous Step: Install Ubuntu Server

Virtual Machine, Install VMware Tools


Install

Click inside Ubuntu Server window


Type the following commands
vm login: vm
Password: vm

vm@vm:~$ sudo passwd root
[sudo] password for vm: vm
Enter new UNIX password: vm
Retype new UNIX password: vm
vm@vm:~$ exit

vm login: root
Password: vm
root@vm:~# vim /etc/shadow


a, Delete every character between "root:" and ":13922:0:99999:7:::", Insert "U6aMy0wojraho", esc, :wq, return


Type the following commands
root@vm:~# userdel vm
root@vm:~# rm -r /home/vm/
root@vm:~# vim /etc/ssh/sshd_config


a, Down arrow key to "PermitEmptyPasswords", Delete "no", Insert "yes", esc, :wq, return


Type the following commands
mount /dev/cdrom /mnt/
tar -C /tmp -zxvf /mnt/VMwareTools-7.6.2-72241.tar.gz
umount /mnt
aptitude update
aptitude safe-upgrade -y
aptitude install build-essential linux-headers-$(uname -r) -y
/tmp/vmware-tools-distrib/vmware-install.pl

Answer every question with the default answer


root@vm:~# ifconfig

Write down Ethernet inet addr:
(Mine was 192.168.1.133, as pictured below.)



Virtual Machine, Cancel VMware Tools Installation

Virtual Machine, Shut Down Guest

Virtual Machine, Settings

CD/DVD, Uncheck: Connected, Automatically detect physical CD/DVD drive, Apply, OK

Open Terminal.app

Open Macintosh's hosts File
mate /etc/hosts
Insert "192.168.1.133 vm", Save, Close

SSH as root to Your Virtual Machine
ssh root@vm
Are you sure you want to continue connecting (yes/no)? yes

Comment New