Monday, February 1, 2016

HowTo: Set up an Ubuntu workstation on an ESXi server

Overview

This guide will show you how to install a Ubuntu workstation on ESXi, and connect to it via RDP.

Initial Setup

  • Download ISO http://www.ubuntu.com/download/desktop
  • Build VM w/16GB & 100GB drives, 2 vCPUs and 4GBs of RAM
  • Attach ISO, boot, install Ubuntu (installation guide)

VMware tools installation

  • Initiate the VMware tools installation through vsphere client
  • Extract the installer to the Desktop
    tar xzvf /media/<username>/VMware Tools/VMwareTools-9.4.0-1280544.tar.gz -C
    ~/Desktop/
  • Run the installer
    cd ~/Desktop/vmware-tools-distrib
    sudo ./vmware-install.pl -d

Configure Static IP

  • Open network configuration file
  • sudo nano /etc/network/interfaces
  • Enter static IP information
  • auto <interface>
    iface <interface> inet static
    address 10.0.10.90
    netmask 255.255.255.0
    gateway 10.0.10.254
    dns-nameservers 8.8.8.8 4.2.2.2
  • Hold ctrl+o to write file

Update & Install necessary packages for RDP access

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install xrdp
sudo apt-get install xfce4
sudo apt-get install xfce4-terminal
sudo apt-get install gnome-icon-theme-full tango-icon-theme
echo xfce4-session >~/.xsesson

Configure xfce for RDP access

Open file for editing

nano /etc/xrdp/startwm.sh

Update configuration to start xfce

#!/bin/sh

if [ -r /etc/default/locale ]; then
  . /etc/default/locale
  export LANG LANGUAGE
fi

startxfce4

Restart xrdp service

sudo service xrdp restart

Connect to your VM from a Windows machine

No comments:

Post a Comment