I have a Linux machine (Ubuntu) and I installed GlassFish and everything worked fine. The thing is, I was using Linux from the desktop UI and the installer featured a graphical wizard.

I am wondering, if I create a Linux virtual machine on Amazon EC2 or Rackspace, I can only access the Linux from the command line using SSH.

How do I install GlassFish from the command line? Won't the graphic install wizard attempt to display and fail?

Any help is appreciated.

4 Answers 4


gunzip glassfish-3.1.1-web.zip

  • thanks -- I hadn't thought of that, but that will work. Although the graphical wizard walks through some basic setup, would be nice to be able to use it. Sep 15, 2011 at 12:57
  • After this, how do I make it start up on boot?
    – user7054
    Dec 10, 2012 at 22:00
  • @user7054 By reading a tutorial, like this one or any other. Dec 10, 2012 at 22:03
  • @DaveNewton The link shows how to start it manually, not on boot.
    – user7054
    Dec 10, 2012 at 22:45
  • @user7054 ... I found this the same way I found that one, by searching: blogs.oracle.com/foo/entry/how_to_run_glassfish_v3 Dec 11, 2012 at 0:16

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

See also:


sudo aptitude install glassfish, assuming the package name is glassfish. Whether you connect over SSH or not is completely irrelevant.

  • I believe Robert wants to install Glassfish v3, which is not available from Ubuntu repositories. Sep 15, 2011 at 5:30
  • I'll be happy to update the answer if the OP adds information about where the graphical installer (or PPA?) was obtained.
    – tripleee
    Sep 15, 2011 at 6:33
  • @tripleee - I downloaded the installer "glassfish-3.1.1-unix.sh" from here: glassfish.java.net/downloads/3.1.1-final.html Sep 15, 2011 at 12:56
  • @tripleee - is "aptitude" a ubuntu-specific feature? just thinking (since I use a Mac for development) it would be nice to learn how to do things in a standard cross-platform UNIX way. Thanks again. Sep 15, 2011 at 12:59
  • 1
    @Robert Hume: aptitude, apt-get, synaptic are tools that are specific to .deb packages. There is no universal packaging format, beyond tar files containing a README, although there are many contenders to become the One True Standard. See also RPM, OSX Fink, the Solaris package manager, *BSD ports, Gentoo Portage, etc. And en.wikipedia.org/wiki/Package_management_system
    – tripleee
    Sep 16, 2011 at 6:27

This will guide you through all the installation steps from command line: http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-311-on-ubuntu

  • 1
    This link appears to be dead. It would be preferable to include the essential parts of the answer here, and provide the link for reference. Apr 12, 2013 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.