Print from Linux

From ITSwiki
Revision as of 11:58, 7 June 2012 by Dwimport (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Jump to: navigation, search

linux-printing.jpg

System wide solution (have root access)

You need root privileges in order to configure this and the change will apply for all users of the computer

Make a safe copy of the file "/etc/profile" e.g.:

     cp /etc/profile /etc/profile.orig

Fire up your favourite editor and edit "/etc/profile" and add the following two lines:

 CUPS_SERVER=cups.imm.dtu.dk
     export CUPS_SERVER

It is important that there are no white spaces before or after the '=' in the first line.

Reboot the computer. After the computer is rebooted you should now how a list of printers to use. For more information abount the printers have look here.

If you get a dialogue box about authorization failed containing fields to enter username and password, DO NOT enter your password as it is not required and it sent unencrypted over the network. Just click "OK" and everything will be fine.

User only solution (no root access)

Here root access is not needed. The change will only take effect for the user logged in.

Make a safe copy of the file ~/.profile :

     cp ~/.profile ~/.profile.orig

Open the file ~/.profile in your favourite editor and add the following two lines at the end of the file:

 CUPS_SERVER=cups.imm.dtu.dk
     export CUPS_SERVER

Log out of the system and log in again. The system can now see all available printers.

If you get a dialogue box about authorization failed containing fields to enter username and password, DO NOT enter your password as it is not required and it sent unencrypted over the network. Just click "OK" and everything will be fine.