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


  Search this Thread
Old 02-08-2006, 06:26 PM   #1
Senior Member
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
setting up FRAMEBUFFER environment variable

How do I set the enviroment variable FRAMEBUFFER permanently as shown below, so that I do not have to type the following command everytime I boot:
export FRAMEBUFFER=/dev/fb0
I am using Debian Stable


Last edited by kushalkoolwal; 02-08-2006 at 08:27 PM.
Old 02-09-2006, 09:02 AM   #2
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 416

Rep: Reputation: 53
You can do this in a number of different ways...

First, you have to decide whether you want this variable to be set globally for all users, or that it will suffice for just your single account. As it appears that you are using the bash shell, I won't go into the second part of determining which shell you are using.

Now, to set it for a global variable that everyone gets, you need to edit /etc/bash.bashrc and add that line to it.

If you are just setting it for yourself, you should be able to simply edit your own .bashrc file in your home directory (~/.bashrc). One little gotcha is that you need to be sure that your .bash_profile file references your .bashrc file properly. I have seen installations where the execution of the things in .bashrc are commented out in .bash_profile by default, and you have to go in and change this on your own. If it is commented out, it will look something like this in ~/.bash_profile:

# include .bashrc if it exists
#if [ -f ~/.bashrc ]; then
#    . ~/.bashrc
Just remove the "#"'s and you should be good to go with that little problem.


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
environment variable setting chii-chan Linux - General 5 01-23-2009 07:29 PM
setting environment variable kb_ganesh Ubuntu 3 09-10-2005 01:58 PM
Setting up a environment variable Hiper1 Linux - Newbie 3 03-08-2005 08:43 AM
setting environment variable DISPLAY jpan Debian 4 10-15-2004 06:09 PM
Setting an environment variable kharris Linux - General 3 10-02-2003 04:38 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration