Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 stackoverflow.com Sep 15 '11 at 7:21

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

4 Answers 4

up vote 6 down vote accepted

gunzip glassfish-3.1.1-web.zip

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: blogs.oracle.com/foo/entry/how_to_run_glassfish_v3 –  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: http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-311-on-ubuntu

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 "glassfish-3.1.1-unix.sh" from here: glassfish.java.net/downloads/3.1.1-final.html –  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
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 '11 at 6:27

Your Answer

 
discard

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.