LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-16-2006, 07:52 PM   #1
clwhitt
LQ Newbie
 
Registered: Apr 2004
Location: Washougal, WA
Distribution: Ubuntu Hardy Heron (8.04)
Posts: 19

Rep: Reputation: 0
Setting a variable for your browser with FC4


I'm trying to set up a BOINC client for distributed computing and keep getting the message that I need to "set the environment variable BROWSER to the path of your web browser". I'm using Firefox 1.0.8, which I assume is in the usr/lib/firefox-1.0.8 directory and would be the file firefox. But where do I find the config file to set the environment variable?

Chuck

P4 2.66 w/FC4 (I don't know which version, but it's up-to-date with yum).
 
Old 07-18-2006, 12:14 PM   #3
clwhitt
LQ Newbie
 
Registered: Apr 2004
Location: Washougal, WA
Distribution: Ubuntu Hardy Heron (8.04)
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for those links TECKK. I had already looked at the Berkley web site but hadn't found the answer to the BROWSER question. The way I read the dialog that pops up, it means to set the BROWSER variable for FC4 so that it's found in the PATH. It says exactly, "BOINC has tried to display the web page...but couldn't find a web browser. To fix this, set the environment variable BROWSER to the path of your web browser, then restart the BOINC Manager."

I don't know which files to even look into for this command.

Chuck
 
Old 07-18-2006, 03:33 PM   #4
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
Open ~/.profile in any editor. Then add this line to the end of the file:
Code:
export BROWSER=firefox-bin
 
Old 07-18-2006, 10:18 PM   #5
clwhitt
LQ Newbie
 
Registered: Apr 2004
Location: Washougal, WA
Distribution: Ubuntu Hardy Heron (8.04)
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the quick response burninGpi. I don't find a file named .profile in my Home directory, nor anywhere in the file structure with a find -name '.profile' search in an su environment. Is this a file I should create?

Chuck
 
Old 07-20-2006, 01:18 PM   #6
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
Yes, you should create it. If my solution doesn't work, you can create a wrapper for it:
Code:
$ su -
Password:
# cd /usr/bin
# cat << EOF > boinc
#!/bin/bash
# BOINC wrapper script
exec env BROWSER=firefox-bin boinc_manager $@
EOF
# chmod +x boinc
# exit
Type the section in red into cat. Now, run boinc to open the boinc manager.
 
Old 07-23-2006, 01:01 AM   #7
clwhitt
LQ Newbie
 
Registered: Apr 2004
Location: Washougal, WA
Distribution: Ubuntu Hardy Heron (8.04)
Posts: 19

Original Poster
Rep: Reputation: 0
I created a file named .private and put in a line as export BROWSER=firefox-bin then saved the file in my home/clwhitt folder. BOINC manager is in /home/clwhitt/Desktop/BOINC. Is that correct?

Neither worked when restarting run-manager in the BOINC directory (actually a link on the desktop to the file in the /home/clwhitt/Desktop/BOINC directory).

What does it mean to "create a wrapper for it"?

I started with computers back in the days of built in basic interpreters, cpm, dos, drdos, GEM, and every iteration of Windows so far. I'm comfortable with the command prompt. But for some reason, Linux just hasn't "clicked" yet, even after a few years of dinking around with it.

Thanks again for your help.
 
Old 07-24-2006, 01:16 PM   #8
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
the export line should be in .profile or .bashrc, not .private. I forgot, it should be export BROWSER=firefox, not firefox-bin.

By "Create a wrapper", I mean "Make a shell script which sets all the required environment variables, then calls a certain command with those set".
You could make the wrapper by openning a terminal, and typing:
Code:
cd /home/clwhitt/Desktop/BOINC
cat << EOF > run-boinc && chmod +x run-boinc
#!/bin/sh
exec env BROWSER=firefox ./run-manager $@
EOF
Then you should run /home/clwhitt/Desktop/BOINC/run-boinc to run the manager, and you should also change the link on your desktop to point to run-boinc.
 
  


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
Setting an environmental variable maevious Linux - Newbie 6 11-24-2005 05:15 PM
setting environment variable kb_ganesh Ubuntu 3 09-10-2005 02:58 PM
Setting an environment variable kharris Linux - General 3 10-02-2003 05:38 PM
Help setting $PATH variable Nylex Linux - General 9 08-09-2003 12:44 PM
setting path variable shahrahulb Linux - General 2 07-30-2003 09:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration