15

I am relatively new to Linux, I am using Xubuntu 10.04.

A lot of the software I download from the net, e.g. Aptana/Eclipse are just ZIP files that I open and run.

  1. I wish them to be in a specific folder where I can reach them from everywhere when I run "Eclipse".

  2. I want them to be available to all users.

  3. I want to be able to start them from the drop-down menu on the desktop.

How can I do that?

Hennes
  • 64,768
  • 7
  • 111
  • 168
Aviv
  • 740
  • 4
  • 13
  • 31

2 Answers2

18

There is some kind of "Filesystem Hierarchy Standard":

The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux operating systems. For the most part, it is a formalization and extension of the traditional BSD filesystem hierarchy.

I would put that stuff to:

/opt/   Optional application software packages

Read yourself: http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

For the rest of your questions:

  1. That's a matter of having the path to the binary / script you want to launch in the PATH variable. According to https://help.ubuntu.com/community/EnvironmentVariables you want to do this via /etc/environment. You could also create a 'symbolic link' to the binary or write a launch script which you then place into /usr/bin or /usr/local/bin.

  2. See 1.

  3. For that you have to create a .desktop file and install it (make an entry in the menu to it) via xdg-desktop-menu.

Gaff
  • 18,569
  • 15
  • 57
  • 68
akira
  • 61,009
  • 17
  • 135
  • 165
  • +1. But if only I will use the software, why must I become root and install the software to `/opt`? Wouldn't it be wiser to install the software to somewhere underneath `/home/unforgettableid` instead? If you were me, which exact location would you choose? – unforgettableidSupportsMonica Jun 03 '15 at 09:58
  • @unforgettableid: you can "place files" wherever you like. `/opt/local` is a convention. the same way you can "place files" wherever you like on MSFT-Windows or on MacOSX. you will break conventions. if that is not an issues to you: go ahead and place the files wherever you like. – akira Jun 03 '15 at 11:43
2

You should use your system's package manager to do installation whenever possible. The package will be automatically located in an appropriate place. On Xubuntu, it's aptitude/apt-get/synaptic/Ubuntu Software Center. See Adding, Removing and Updating Applications.

Dennis Williamson
  • 106,229
  • 19
  • 167
  • 187