Sunday, September 17, 2006

Network Printing on Ubuntu

My printer is connected to my desktop and I access it with my laptop over my apartment's wireless network. To do this, first install the printer as normal on the "server" computer. Then we must do the following, also on the server computer to which the printer is attached:
1. We must edit the smb.conf file so type the following in a terminal:
sudo gedit /etc/samba/smb.conf
2. Notice that throughout this file there are headings in brackets such as [Global]. Under the [Global] heading, you will see workgroup=MSHOME. Change this if your workgroup is called something else, otherwise, you can leave it as it is.
3. Under ###Printing###, you wil see the following:
; printing=cups
; printcap name=cups
Remove the semi-colons
4. Under ###Share Definitions### you will see the sub-heading [printers]. The following should be listed:
comment = All Printers
browseable = no
path = /tmp
printable = yes
public = yes
writable = no
create mode = 0700
guest ok=yes
5. Next, under the ####Authentication#### section, you will see the following:
; security = user
Remove the semi-colon and change it to look like:
security = share
6. Save the file and reboot.
7. Now you can access the printer from another computer. On the remote computer/laptop go to Administration->Printing
8. Click on new printer and select network printer. Find your printer and install it. For everything here, always enter "guest" as your User ID and leave the password field blank.

No comments: