Difference between revisions of "Print from Linux"

From ITSwiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Created page with "linux-printing.jpg ==System wide solution (have root access)== You need root privileges in order to configure this and the change will apply ...")
 
Line 1: Line 1:
[[Image:23-linux-printing.jpg|linux-printing.jpg]]
 
 
 
==System wide solution (have root access)==
 
==System wide solution (have root access)==
  
Line 7: Line 5:
 
Make a safe copy of the file "/etc/profile" e.g.:
 
Make a safe copy of the file "/etc/profile" e.g.:
  
      cp /etc/profile /etc/profile.orig
+
cp /etc/profile /etc/profile.orig
  
 
Fire up your favourite editor and edit "/etc/profile" and add the following two lines:
 
Fire up your favourite editor and edit "/etc/profile" and add the following two lines:
  
  CUPS_SERVER=cups.imm.dtu.dk
+
CUPS_SERVER=cups.imm.dtu.dk
      export CUPS_SERVER
+
export CUPS_SERVER
  
 
It is important that there are no white spaces before or after the '=' in the first line.
 
It is important that there are no white spaces before or after the '=' in the first line.
Line 26: Line 24:
 
Make a safe copy of the file ~/.profile :
 
Make a safe copy of the file ~/.profile :
  
      cp ~/.profile ~/.profile.orig
+
cp ~/.profile ~/.profile.orig
  
 
Open the file ~/.profile in your favourite editor and add the following two lines at the end of the file:
 
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
+
CUPS_SERVER=cups.imm.dtu.dk
      export CUPS_SERVER
+
export CUPS_SERVER
  
 
Log out of the system and log in again. The system can now see all available printers.
 
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.
 
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.
[[Category:2008]]
+
 
 
[[Category:How do I...]]
 
[[Category:How do I...]]
 
[[Category:Print]]
 
[[Category:Print]]

Revision as of 17:19, 11 June 2012

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.