7

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.

Kevin Bowen
  • 19,395
  • 55
  • 76
  • 81
Robert Hume
  • 173
  • 1
  • 4

4 Answers4

6

gunzip glassfish-3.1.1-web.zip

Dave Newton
  • 177
  • 5
3

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

See also:

0

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

pars
  • 9
  • 1
  • 1
    This link appears to be dead. [It would be preferable](http://meta.stackexchange.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Kevin Bowen Apr 12 '13 at 12:19
0

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

tripleee
  • 1,416
  • 2
  • 16
  • 20
  • I believe Robert wants to install Glassfish v3, which is not available from Ubuntu repositories. – Danilo Piazzalunga Sep 15 '11 at 05:30
  • I'll be happy to update the answer if the OP adds information about where the graphical installer (or PPA?) was obtained. –  Sep 15 '11 at 06:33
  • @tripleee - I downloaded the installer "glassfish-3.1.1-unix.sh" from here: http://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 http://en.wikipedia.org/wiki/Package_management_system – tripleee Sep 16 '11 at 06:27