LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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: 302
Blog Entries: 7

Rep: Reputation: 44
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
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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: 302

Original Poster
Blog Entries: 7

Rep: Reputation: 44
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:51 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
Open Source Consulting | Domain Registration