LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2004, 11:29 AM   #1
linux_dejan
Member
 
Registered: Mar 2004
Posts: 36

Rep: Reputation: 15
Creating a shortcut?


I got my new browser Opera in /usr/local/opera/
When i write just >opera & the system can not find the program.
I have to go all the way into the directory /usr/local/opera/ and write ./opera for it to start...

Is there an easier way?? How can I make it start just by writing >opera & ??

Also, do you know how i can edit my menu (using debian and fluxbox) (The main menu Apps>Editors and so on).

Thx!!
 
Old 04-11-2004, 11:40 AM   #2
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
ln -s /usr/local/opera/opera /usr/local/bin/opera
or add /usr/local/opera to your path

If you have a ~/.fluxbox/menu, you can edit that directly (it's a pretty simple xml-ish structure).
If not, try running fluxbox-generate_menu to build a semi-decent menu which you can then modify.
What I find works best for me is editing a copy of fluxbox-generate_menu to add applications not included in the original script, and run that to update the menu.
 
Old 04-11-2004, 11:41 AM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Well, usr/local/opera/opera will work, you could add a symlink from /usr/bin to the program with

cd /usr/bin
ln -s /usr/local/opera/opera opera

or you could add /usr/local/opera to your path.

I'd recommend the symlink.
 
Old 04-11-2004, 12:02 PM   #4
linux_dejan
Member
 
Registered: Mar 2004
Posts: 36

Original Poster
Rep: Reputation: 15
ok, one more question. I always see that people are talkong about the 'PATH'... im new to linux and wondering how to access this path?

Thx!
 
Old 04-11-2004, 12:05 PM   #5
linux_dejan
Member
 
Registered: Mar 2004
Posts: 36

Original Poster
Rep: Reputation: 15
i also get this error after adding opera link to my bin dir:

The Opera binary is not located at "./bin/opera".
Please modify the wrapper script at "/usr/bin/opera".
[1]+ Exit 1 opera


Whots wrong?

Thx!
 
Old 04-11-2004, 12:08 PM   #6
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
you don't really "access" it directly, if you're thinking it's a file or something. $PATH is an environmental variable whose value is a string of paths which are searched whenever you issue a command.
"echo $PATH" wil tell you which directories are in your current path.
You can add paths to the $PATH variable by exporting them from ~/.bash_profile like so:
export PATH=$PATH:/new/path:/another/new/path
The paths generally lead to a "bin" directory, and are separated by colons.
Make sure you include $PATH in your export line so you don't overwrite the current $PATH
 
Old 04-11-2004, 12:12 PM   #7
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Originally posted by linux_dejan
i also get this error after adding opera link to my bin dir:

The Opera binary is not located at "./bin/opera".
Please modify the wrapper script at "/usr/bin/opera".
[1]+ Exit 1 opera


Whots wrong?

Thx!
Okay...so you have an issue that isn't directly related to your path. Opera apparently requires that it's run from within the opera directory (probably can't find some required files otherwise).

/usr/local/opera/opera must be a script rather than a binary. Try opening it in a text editor and see if you can make any sense of it. There should be something related to paths near the begininning of the script.
 
Old 04-11-2004, 12:21 PM   #8
linux_dejan
Member
 
Registered: Mar 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Yea, i found this in the script file:



#!/bin/sh

# Use this if you don't want to install Opera to any special location,
# but execute it from the extracted package or current location.

# Location of the Opera binaries
OPERA_BINARYDIR=./bin

if test ! -f "${OPERA_BINARYDIR}/opera"; then
echo "The O.............................

I was thinking i maybe need to edit the ./bin in OPERA_BINARYDIR but in not sure what to change to
 
Old 04-11-2004, 12:24 PM   #9
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Probably change it to /usr/local/opera
unless there's a /usr/local/opera/bin
 
  


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
Creating Azureus Shortcut figfighter Linux - Software 3 07-22-2005 01:34 AM
Is creating a shortcut possible? slick_willie Solaris / OpenSolaris 17 12-20-2004 04:18 PM
Creating a shortcut to the Desktop ptreves Linux - Newbie 3 08-19-2004 04:53 PM
Creating a shortcut to desktop yenonn Linux - General 11 08-12-2003 04:29 PM
creating my own shortcut nakkaya Linux - Software 4 05-13-2003 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration