LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-31-2010, 01:07 AM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
how to launch an application from anywhere?


I downloaded the tar ball of seamonkey,
copy it to Ducument folder, unzip it and get a folder named seamonkey.
Everytime to launch it, i open the terminal windows, cd to that directory and type ./seamonkey.
My question is, how to launch it from any where? Just type ./seamonkey and it will run?
 
Old 10-31-2010, 01:12 AM   #2
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Rep: Reputation: 2
Post

I think if it installed properly that you should just be able to type seamonkey and it should just pop up by the way what window manager are you running it is important because if you are running fluxbox you have to manually add it into your menu.
 
Old 10-31-2010, 01:15 AM   #3
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
I use Dolphin to browse to that folder, right click the tarball and auto-unzip it.
I did not run tar -xvf .
so the seamonkey command is not recognised by the system unless I go to that particular directory.
 
Old 10-31-2010, 01:18 AM   #4
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,418

Rep: Reputation: Disabled
Just put a link to it's location in /usr/local/bin and it will run from anywhere. Suppose the actual file is located in /opt then at the command line just type this (I assume that the executable is called "seamonkey" and it comes in a folder called "seamonkey"):
Code:
sudo ln -s /opt/seamonkey/seamonkey /usr/local/bin/seamonkey
Now typing seamonkey from the command line will open it up from anywhere.
Alternatively you could create a desktop shortcut to it or using your menu editor create an entry for it in the menu.
ciao,
jdk
 
Old 10-31-2010, 01:19 AM   #5
darkstarbyte
Member
 
Registered: May 2010
Location: 3 planets away from the sun.
Distribution: Linux mint, Slackware
Posts: 231

Rep: Reputation: 2
I'll Google it and see if I can find more useful information.

I think I found something

Manual Installation With the tar.gz Archive

To install SeaMonkey by downloading the .tar.gz archive file:

1. Create a directory named "seamonkey1.1.7" (mkdir seamonkey1.1.7) and change to that directory (cd seamonkey1.1.7).
2. Click the link to download the non-installer seamonkey*.tar.gz file into the seamonkey1.1.7 directory.
3. Change to the seamonkey directory (cd seamonkey1.1.7) and decompress the file with the following command:
gunzip -dc sea*.tar.gz | tar -xvf - (This creates a "seamonkey" subdirectory under your seamonkey1.1.7 directory.)
4. Change to the seamonkey directory (cd seamonkey).
5. Run SeaMonkey with the ./seamonkey run script.

Multi-User Linux Installations

To install SeaMonkey for multiple users on Unix, install as normal, then create the following script in your SeaMonkey directory, make it executable (chmod u+x <scriptname>), and run it as a user with write privileges to the mozilla directory (e.g. root). Do not run this program as su[do] root. (Bug 52653)

#!/bin/sh
dist_bin=`dirname $0`
MOZILLA_FIVE_HOME=$dist_bin
LD_LIBRARY_PATH=$dist_bin
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
$dist_bin/regxpcom
$dist_bin/regchrome
touch $dist_bin/chrome/user-skins.rdf $dist_bin/chrome/user-locales.rdf

You should then be able to run that installation of SeaMonkey as any user who has permissions to access it.

Last edited by darkstarbyte; 10-31-2010 at 01:21 AM. Reason: googled it and found something you might want to see.
 
Old 10-31-2010, 01:53 AM   #6
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jdkaye View Post
Just put a link to it's location in /usr/local/bin and it will run from anywhere. Suppose the actual file is located in /opt then at the command line just type this (I assume that the executable is called "seamonkey" and it comes in a folder called "seamonkey"):
Code:
sudo ln -s /opt/seamonkey/seamonkey /usr/local/bin/seamonkey
Now typing seamonkey from the command line will open it up from anywhere.
Alternatively you could create a desktop shortcut to it or using your menu editor create an entry for it in the menu.
ciao,
jdk
i did as you said, i can launch it only from /usr/local/bin/seamonkey, but not from anywhere.
how to create a desktop shortcut?
 
Old 10-31-2010, 11:16 PM   #7
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,418

Rep: Reputation: Disabled
Quote:
Originally Posted by TigerLinux View Post
i did as you said, i can launch it only from /usr/local/bin/seamonkey, but not from anywhere.
how to create a desktop shortcut?
You need to see how your PATH environment variable is set. It should contain /usr/local/bin which means you can launch executable files stored in /usr/local/bin from anywhere. Try running the command
Code:
echo $PATH
and see if /usr/local/bin appears in the output.

How to create a shortcut? Aren't you able to look that up yourself? One hint is that it may depend on which desktop environment you're using (kde? gnome? xfce? etc.). Right-click on an empty spot of your desktop and a menu will appear. Maybe the menu will contain an item like "Create new...". Check out what your choices are and you may get your answer.
ciao,
jdk
 
Old 11-01-2010, 02:13 AM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 12,603

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
Quote:
how to create a desktop shortcut?
with 976 posts and registered 5 years ago ??????
that is something you should have learned 5 years ago
you might want to do some studying
-- a place to start --
http://www.linux.org/lessons/
and for 11.3
http://www.novell.com/documentation/opensuse113/
then
http://forums.opensuse.org/
and
http://en.opensuse.org/Main_Page
http://en.opensuse.org/Portal:Wiki
 
Old 11-01-2010, 02:36 AM   #9
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

Do

Code:
which ls
it will give you path of you bin directory

suppose its
Code:
/bin/ls
then do

Code:
ln -s /opt/seamonkey/seamonkey /bin/seamonkey
 
Old 11-01-2010, 03:28 AM   #10
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,418

Rep: Reputation: Disabled
Quote:
Originally Posted by prayag_pjs View Post
Hi,

which ls
it will give you path of you bin directory
No, actually it will give you the path of one bin directory: the one where ls lives. If you try it with, say, python it will give you /usr/bin/python and if you do which praat it will return /usr/local/bin/praat which is where I put it.
My feeling is that /bin is not a logical place to put the link to seamonkey. That's where you typically find the basic system commands like tar, echo, cat and the one you cited: ls.
ciao,
jdk
 
Old 11-01-2010, 03:35 AM   #11
Mark1986
Member
 
Registered: Aug 2008
Location: Netherlands
Distribution: Xubuntu
Posts: 87

Rep: Reputation: 11
Quote:
Originally Posted by jdkaye View Post
My feeling is that /bin is not a logical place to put the link to seamonkey. That's where you typically find the basic system commands like tar, echo, cat and the one you cited: ls.
What would be the logical place to put the link?
 
Old 11-01-2010, 03:46 AM   #12
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,418

Rep: Reputation: Disabled
Quote:
Originally Posted by Mark1986 View Post
What would be the logical place to put the link?
As I said before
Code:
/usr/local/bin
Either that or creating a desktop shortcut or a menu item. The link is the way to go if you plan on running it from the command line.
ciao,
jdk
 
Old 11-01-2010, 08:33 AM   #13
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
my seamonkey link is in /usr/loca/bin,
but i can only launch it here, not everywhere
 
Old 11-01-2010, 09:25 AM   #14
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Post your PATH here.

To see it, type the command "echo $PATH".
 
Old 11-01-2010, 09:38 AM   #15
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,418

Rep: Reputation: Disabled
Quote:
Originally Posted by MTK358 View Post
Post your PATH here.

To see it, type the command "echo $PATH".
I tried that, MTK, with no response but maybe he'll listen to you.

Quote:
my seamonkey link is in /usr/loca/bin,
but i can only launch it here, not everywhere
@TigerLinux - I hope /usr/loca is just a typo. It should be /usr/local/bin
jdk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to launch application from workstation but able to launch from vnc chaitanya1982 Linux - Desktop 2 04-30-2010 03:52 AM
[SOLVED] To launch an application divyashree Linux - Software 4 10-03-2009 06:24 AM
How do you find an application using launch application pnoise Linux - Newbie 1 01-11-2009 10:44 PM
Launch Application at log on Bkangatsi Linux - Desktop 3 05-21-2007 03:08 AM
Launch an application in firefox - How? TSynergy Linux - Newbie 5 02-27-2005 11:02 AM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration