Changing the default printer on Linux and Firefox

If your Linux system uses CUPS, you can change the default printer for Firefox or Mozilla with this command:

lpoptions -d printer-name

The ‘d’ option sets the default printer.

If you want to set a default printer for command-line programs, I’d set a variable in your shell start-up configuration file. If your shell is bash (which is the most common), you’d use the syntax in your ~/.bashrc file:

export PRINTER=printer-name

If you use csh or tcsh, put this in your ~/.cshrc or ~/.tcshrc files:

setenv PRINTER printer-name

If you’re a csh person, you might ask the difference between set PRINTER=printer-name and setenv PRINTER printer-name. The difference is that set makes a regular variable, and setenv creates an environmental variable. Regular variables are available only within csh. With an environmental variable, any program that you run from csh can also see the environmental variable.

Source:

www.mattcutts.com/blog/change-default-printer-linux-firefox/

Incoming search terms:

  • Firefox Linux change default printer
  • how to set default printer firefox from command line
This entry was posted in Resources by Krunal Soni. Bookmark the permalink.

About Krunal Soni

Internet, new technologies and marketing has been my passion, I began my career with Internet, when I was in 11th class, and in my word, I cannot live without internet, I am managing many blogs and this blog is My passion is the reason why the domain name is "Internet expert" I have not started blogging full time. I'm the kind of person who just can't wait to get on a train and not know where I'm going. I definitely want to live life to the fullest. And that's the type of man I'm attracted to - somebody with that spontaneous spirit. I am not believe in spend too much time living in the ‘what if’ and need to learn to live in the ‘what is.’ My friends told me I tweet well you can follow me on Twitter ;) & I am avilable on Facebook & Google+ too.

2 thoughts on “Changing the default printer on Linux and Firefox

  1. I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful

  2. hey all, I used to be simply checkin’ out this blog and I really admire the premise of the article, and have nothing to do, so if anyone want to to have an engrossing convo about it, please contact me on AIM, my title is heather smith

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Enter your email address: