turnkey linux is a nice and small virtual appliance that comes as jeos (just enough operating system).
it offers several ways to access it after it’s running:
- shell in browser (http, port 12320)
- webmin interface (http, port 12321)
- ssh
unfortunately the vmware tools didn’t work. so i reinstalled them:
mount vmware tools in vmware player
mount cdrom
sudo mkdir /media/cdrom
sudo mount /dev/scd0 /media/cdrom
unpack and install vmware tools
cd /tmp
tar xvzf /media/cdrom/VM*.gz
cd vmware-tools-distrib
sudo ./vmware-install.pl
install vmware tools
sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`
configure vmware tools
/usr/bin/vmware-config-tools.pl
show virtual disk mount points
vmware-toolbox-cmd disk list
zero out empty spaces
(creates a huge file that takes all the free space on your harddisk and writes zero’s in it. thus it should be better compressable.
cat /dev/zero > zero.dat ; sync ; sleep 1 ; sync ; rm -f zero.dat
shrink disk /
vmware-toolbox-cmd disk shrink /