Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Sep 15 '11 at 7:21

This question came from our site for professional and enthusiast programmers.

up vote 6 down vote accepted


share|improve this answer
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. – Robert Hume Sep 15 '11 at 12:57
After this, how do I make it start up on boot? – user7054 Dec 10 '12 at 22:00
@user7054 By reading a tutorial, like this one or any other. – Dave Newton Dec 10 '12 at 22:03
@DaveNewton The link shows how to start it manually, not on boot. – user7054 Dec 10 '12 at 22:45
@user7054 ... I found this the same way I found that one, by searching: – Dave Newton Dec 11 '12 at 0:16

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

See also:

share|improve this answer

This will guide you through all the installation steps from command line:

share|improve this answer
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. – Kevin Bowen Apr 12 '13 at 12:19

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

share|improve this answer
I believe Robert wants to install Glassfish v3, which is not available from Ubuntu repositories. – Danilo Piazzalunga Sep 15 '11 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 '11 at 6:33
@tripleee - I downloaded the installer "" from here: – Robert Hume Sep 15 '11 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. – Robert Hume Sep 15 '11 at 12:59
@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 – tripleee Sep 16 '11 at 6:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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