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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-11-2004, 11:29 AM
|
#1
|
Member
Registered: Mar 2004
Posts: 36
Rep:
|
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!!
|
|
|
04-11-2004, 11:40 AM
|
#2
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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.
|
|
|
04-11-2004, 11:41 AM
|
#3
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313
Rep:
|
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.
|
|
|
04-11-2004, 12:02 PM
|
#4
|
Member
Registered: Mar 2004
Posts: 36
Original Poster
Rep:
|
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!
|
|
|
04-11-2004, 12:05 PM
|
#5
|
Member
Registered: Mar 2004
Posts: 36
Original Poster
Rep:
|
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!
|
|
|
04-11-2004, 12:08 PM
|
#6
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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
|
|
|
04-11-2004, 12:12 PM
|
#7
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
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.
|
|
|
04-11-2004, 12:21 PM
|
#8
|
Member
Registered: Mar 2004
Posts: 36
Original Poster
Rep:
|
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
|
|
|
04-11-2004, 12:24 PM
|
#9
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
Probably change it to /usr/local/opera
unless there's a /usr/local/opera/bin
|
|
|
All times are GMT -5. The time now is 11:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|