Deploying glassfish:

Students may need to run the following command for
secure FTP to work:

sudo apt-get install openssh-server

If you are having problems with your internet connection, try the following:

sudo ifconfig

Check that your IP is 10.10.x.x on campus. If your IP is 10.2.0.15, change your network settings on your VM to "Bridged" and restart your VM.

If your VM still does not have an IP, run the following commands:

sudo ifconfig eth0 up
sudo dhclient -v eth0

These commands will ensure the ethernet adapter is up, and that DHCP has found an IP address for you.

1. Copy the glassfish zip file over to your VM
2. Install zip - sudo apt-get install zip
3. Install java -
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

4. Unzip glassfish

unzip glassfish-4.1.zip

5. Start glassfish
cd glassfish4/bin/
./asadmin change-admin-password

Type "admin" as the username and press enter when asked for the current password
Enter a new admin password next, and confirm the password

./asadmin enable-secure-admin
./asadmin start-domain domain1
Navigate to http://your-vm-ip-address:4848