Friday, July 3, 2015

Ubuntu 14

Change hostname
format is  hostname.domain.TLD   , ex.   server.domain.com
edit /etc/hostname,  vi /etc/hostname  , enter just the hostname
edit /etc/hosts, vi /etc/hosts   , format should be
127.0.0.1   localhost
127.0.0.1   hostname
192.168.168.99   hostname.domain.com hostname


reboot to see changes, type in hostname to see the hostname,  hostname -f  for the FQDN


Install gui without extras
sudo apt-get install --no-install-recommends ubuntu-desktop



Change to Static IP
need to edit /etc/network/interfaces

auto eth0
iface eth0 inet static
  address 192.168.67.23
  netmask 255.255.255.0
  network 192.168.67.0
  broadcast 192.168.67.255
  gateway 192.168.67.1
  dns-nameservers 8.8.8.8 4.2.2.2
  dns-search domain.com




Install VMWare Tools
Mount the cdrom, sudo mount /dev/cdrom /media/cdrom
Copy the tools to /tmp , sudo cp /VM.... /tmp
Extract file ,  tar zxvf VM....
Run Installer ,  sudo ./vmware-install.pl -d


Install Open VM Tools
sudo apt-get install open-vm-tools


Update
sudo apt-get update && sudo apt-get upgrade
or
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


/boot is Full
uname -r to find the running kernel
cd into /boot , then rm -rf *3.16.0-41* for the different kernels not being used
apt-get -f install
apt-get autoremove
reboot