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
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
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