Table of Content

download iso

Ubuntu Server 17.04 is latest version of Ubuntu Server.

https://www.ubuntu.com/download

vmware config

1 CPU
4G memory
100GB harddisk
network: NAT

verify NAT internet access

make sure can access to Internet

root@ubuntu:~# cat /etc/resolv.conf
nameserver 192.168.100.2
nameserver 127.0.0.53
search localdomain

root@ubuntu:~# ping google.ca
PING google.ca (172.217.9.3) 56(84) bytes of data.
64 bytes from dfw28s02-in-f3.1e100.net (172.217.9.3): icmp_seq=1 ttl=128 time=47.3 ms

ssh server on vm

$ sudo apt-get install aptitude
$ sudo aptitude install openssh-server

$ sudo service ssh status
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-07-16 13:10:18 PDT; 4min 2s ago
 Main PID: 16532 (sshd)
   CGroup: /system.slice/ssh.service
           └─16532 /usr/sbin/sshd -D

then you can ssh from host to vm server using putty for rest works.

update packages

$ sudo apt-get update 
$ sudo apt-get upgrade -y
$ sudo apt-get install git -y
$ sudo apt-get install curl -y 

hgfs share folder

vmware tools not working for hgfs, only solution is to use open-vm-tools,

$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ sudo ./patched-open-vm-tools.sh

after reboot, can see hgfs mount now:

root@ubuntu:~# df -h
vmhgfs-fuse     1.9T  730G  1.2T  40% /mnt/hgfs