personal knowledgebase
Command line sequence to install the tools. Note that the version of tools changes, so you need to update that one:
sudo-s
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools-10.1.6-5214329.tar.gz /tmp/
cd /tmp
tar -zxvf VMwareTools-10.1.6-5214329.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl -d
umount /mnt/cdrom
cd
rm /tmp/VMwareTools-10.1.6-5214329.tar.gz
rm -rf /tmp/vmware-tools-distrib/
Make sure the network settings for the VM are set to Bridged (not NAT).
On the Linux server:
sudo apt-get install openssh-server
On the Windows client, install Putty. You can also add a new task in ConEmu: "C:\Program Files\PuTTY\putty.exe" -cur_console -ssh 192.168.159.130 (replace it with your server’s IP).
apt-get update- updates the package listscd - moves to the home directorycp -a source destination - copies source to the destination, recursively and by keeping attributescp -arv source destination - copies source to the destination, recursively and by keeping attributes, and it also shows what is being donedf - shows disk usagefind -name somefile - finds all ocurrences of somefile in the directory and subdirectoriesfree - shows memory usage
hostname -I - find the IP of the computerkill -9 12345 - kill process whose ID is 12345lsb_release -a - find the distro and version of your Ubuntu machinels -l - list files using a long listing formatnetstat -an | grep "LISTEN" | grep ":3389" - find if any application is listening on port 3389pidof process_name - finds the process ID of a processpm-suspend - put computer to sleeppwd - displays the current directory (“print working directory”)sudo reboot - reboots the machinerm -r <dir> - removes a directory and its contentsshutdown now - powers off the computer (now)shutdown -r now - restarts the computer (now)xfce4-session-logout - logs out of session (XFCE4)Ctrl+U - clears the current line ine the terminalWhen System Restart Required is show, you can view the list of packages that require a restart with:
more /var/run/reboot-required.pkgs
To restart, do:
sudo reboot