LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2012, 07:34 PM   #1
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 284
Blog Entries: 7

Rep: Reputation: 42
How do I set up a web browser in Debian Squeeze?


I am using Debian squeeze on one of my laptops. According to apropos I have sensible-browser, but if I try to run that program it says that it couldn't find a suitable web browser, it then tells me to set the BROWSER environment variable to my desired browser. How do I set this variable? Thanks!
 
Old 12-05-2012, 08:29 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,624

Rep: Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441Reputation: 1441
I ran apropos browser in BASH and saw sensible-browser, so I ran sensible-browser and it opened a new page in my running browser (Opera).

I ran man sensible-browser, and it told me to see the following for the environment variables:

Code:
man 7 environ
It's not clear about where to set them, but the trail seems to lead to /etc/environment, which, in my system, is empty.

According to this link, Debian does not use that file (see section 5.4).

My advice would be to let well enough alone.
 
Old 12-05-2012, 08:35 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,422
Blog Entries: 33

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
Originally Posted by Nbiser View Post
I am using Debian squeeze on one of my laptops. According to apropos I have sensible-browser, but if I try to run that program it says that it couldn't find a suitable web browser, it then tells me to set the BROWSER environment variable to my desired browser. How do I set this variable? Thanks!
If you're using bash then you edit ~/.bashrc or ~/.bash_profile depending on how you're accessing the system. Read the bash man page to find out more about what those two files mean. e.g. type "man bash" in the terminal and use Q to quit.

As an example if you wanted to use the lynx browser then you would add the following to one of those files.
Code:
#example 1
BROWSER="lynx"
export BROWSER

#example 2
export BROWSER="lynx"
You don't normally set the variable in /etc/profile unless it's a value you wish to set for every user on the system.

SAM

Last edited by sag47; 12-05-2012 at 08:38 PM.
 
Old 12-06-2012, 05:00 PM   #4
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 284
Blog Entries: 7

Original Poster
Rep: Reputation: 42
I'll address frankbell's comment first. On my system the /etc/environment is also empty. To address sag47's comment, I tried to edit these the files that you referenced me to (both were originally empty) in nano but this didn't give me any success. In case it helps, I don't have X installed nor do I have an internet connection on the PC right now. Thank you all for your help!

Last edited by Nbiser; 12-06-2012 at 06:01 PM.
 
  


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
[SOLVED] Can't set a default web browser nicolasjengler Linux - Software 2 06-09-2011 04:17 PM
LXer: Why I dumped Debian Squeeze's Chromium for the Chrome browser from Google's repository LXer Syndicated Linux News 0 05-20-2011 10:30 PM
Ubuntu to Debian Squeeze -> Express Set up jv2112 Debian 5 02-23-2011 05:03 AM
LXer: Java in the web browser in Debian Squeeze -- you have to add it LXer Syndicated Linux News 0 12-03-2010 06:20 PM
How to set Opera as the default web browser seran Linux - Newbie 1 08-17-2004 06:25 AM


All times are GMT -5. The time now is 02:04 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