How to I install Glassfish on Ubuntu from the command line?

Solution 1:

gunzip glassfish-3.1.1-web.zip

Solution 2:

You could use X forwarding when connecting with SSH. Then, the graphical installer should work.

See also:

  • https://serverfault.com/questions/198846/remote-x-session-on-ec2
  • https://superuser.com/questions/249045/x11-forwarding-from-amazon-ec2-ami