Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Shortcut
post Jul 29 2003, 12:47 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 7
Joined: 11-July 03
Member No.: 1,085

I use Opera as my default browser. I haven't installed it, I start it with the command "./opera" in Opera's directory. If I type only "opera" it won't work. So I wondered if I could make a shortcut so that I can start it from the desktop. But when I make a shortcut to that "opera" file the system only displays it.
What do I have to do?
Go to the top of the page
+Quote Post
post Jul 29 2003, 02:37 PM
Post #2

LinuxHelp Admin

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1


What distribution are you using?
What distribution version are you using?
What desktop are you using?
What is the path to Opera?
Go to the top of the page
+Quote Post
post Jul 29 2003, 07:33 PM
Post #3

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

when you type ./opera it means run a file named opera in your current directory ... when you just type opera it means run a file named opera fom the PATH ...

so it means you don't have the file named opera in your path!

you can fix the shortcut 1 of 3 ways....

1. you can point to the full path of the file named opera in the opera directory for the shortcut ... for example if the opera file is in /opt/opera/bin then use:


as the path for the shortcut....

2. Create a link from a directory in your path to the opera file ... so it appears to be in that if the path to opera is /opt/opera/bin/opera you would first change to a directory in your path like /usr/bin :

cd /usr/bin

then you would type the following command:

ln -s /opt/opera/bin/opera opera

then if you do the following command:

ls -al /usr/bin/* | grep opera

you should see:

lrwxrwxrwx 1 root root 213 Jul 29 03:27 opera -> /opt/opera/bin/opera

(the permissions, owner,size, etc might be different)

After you do this, the command opera typed from any directory or opera as a shortcut will now run the browser.

3. Add the opera directory that contains the file opera to your path

Edit the file .bash_profile in your home directory and add this as the bottom line in the file:

export PATH=$PATH:/opt/opera/bin

type the command (from the users home directory):

source .bash_profile

(or just log out and log back in as that user).

All the examples assume the file named opera is in the directory /opt/opera/bin ... you will need to substitute your actual opera directory for /opt/opera/bin ....

I would recommend doing #2

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 17th March 2018 - 09:17 PM