Lately I’ve been doing a lot of Ubuntu Server installs for JumpStarts with their intended use to become a JSS or JDS server. It’s easy to spin up a full clone or linked clone on my laptop, but when I’m at customer’s location they usually only have an ISO that was downloaded some time ago… so we’re starting from scratch. With a brand new Ubuntu Server VM, there are a few steps that you need to perform to make your life easier in the long run.
On ever Ubuntu Server setup there are a couple of items that you should do first before trying to install the JDS or JSS installers. We need the following:
- Server FQDN (you should have already populated your internal DNS with the associated IP address)
- Networking info (IP Address, gateway, subnet mask, etc)
- Install openssh-server (and possibly curl) on our new VM
Assuming we have the above items, console into your new Ubuntu VM and perform a
sudo apt-get install openssh-server so we can SSH into the box from Terminal (it’s much easier to work with). We can then
scp ubuntuSetup.sh and execute the script to make sure you have the latest and greatest version of Ubuntu Server (since this is from an ISO that who knows how long ago) by doing a
apt-get update and
apt-get dist-upgrade. These updates may take some time, so be patient if you decided to run these commands.
Next we’re going to input our FQDN and Networking info into the script so it can update the following files on our behalf:
This script is available on my github repo at: https://github.com/justinrummel/Random-Scripts/blob/master/VMWare/ubuntuSetup.sh, watch it in action below.
The next script makes sure that you have the proper VMware Tools installed on Ubuntu Server just in case you need to share a folder on your host computer to your Ubuntu server. The storage point will be
/mnt/hgfs/<<your folder name>>. This script will try to mount the CDROM on your VM, so be sure it is pointing to the VMware Linux Tools ISO by choosing Virtual Machine => Install VMware Tools.
Leave a Comment
Your email is used for Gravatar image and reply notifications only. Address will not be published. *