Howto: Print from one Ubuntu computer to another with Xubuntu

August 9, 2006 at 6:20 pm | Posted in tips and tricks, xubuntu | 7 Comments

Yes, it can be done! Ironically, I had more trouble networking Ubuntu than with Windows XP.

1) Make sure you have access to the computer you are printing to, and make sure the printer is detected on it. You’ll have to install gnome-cups-manager for this. It doesn’t use many Gnome-libs, so don’t worry. Go on the computer you are printing to, and run in the terminal (Xfce menu > System > Terminal):

sudo aptitude install gnome-cups-manager

Then run gnome-cups-manager. Set the printer up as neccessary.

2) On that same computer, edit the file /etc/cups/cupsd.conf. First, make a back-up of the file:

sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak

Then, edit it:

sudo mousepad /etc/cups/cupsd.conf

Replace the entire file with the following:

# /etc/cups/cupsd.conf
# Simple CUPS configuration file for a print server
# which serves printers within a private local area network.
# - There is no need for additional security within the print server, ie only
authorises people can access the machine.
# This setup also allows access to the CUPS "Administrative tasks" system
# via your web browser to http://localhost:631
# File based on Ubuntu 5.10 (Breezy Badger) (Linux version 2.6.12-10-386)
# Server Directives are explained in http://localhost:631/sam.html
# 25/04/2006
# DavidTangye@netscape.net

ConfigFilePerm 0600
LogLevel info
Printcap /var/run/cups/printcap
RunAsUser Yes
Port 631
Include cupsd-browsing.conf
BrowseAddress @LOCAL
BrowseAddress 10.0.0.0/8
BrowseAddress 172.16.0.0/12
BrowseAddress 192.168.0.0/16

<Location />
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
Allow From 10.0.0.0/8
Allow From 172.16.0.0/12
Allow From 192.168.0.0/16
</Location>

<Location /jobs>
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
Allow From 10.0.0.0/8
Allow From 172.16.0.0/12
Allow From 192.168.0.0/16
</Location>

<Location /printers>
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
Allow From 10.0.0.0/8
Allow From 172.16.0.0/12
Allow From 192.168.0.0/16
</Location>

<Location /admin>
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
Allow From 10.0.0.0/8
Allow From 172.16.0.0/12
Allow From 192.168.0.0/16
</Location>

Save and exit.

3) Restart CUPS, the printer manager, by running:

sudo /etc/init.d/cupsys restart.

4) Switch back to your computer. On your computer, edit the file /etc/cups/cupsd.conf. Back up the file:

sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak

Then, edit it:

sudo mousepad /etc/cups/cupsd.conf

Replace the entire file with the following:

# /etc/cups/cupsd.conf
# Simple CUPS configuration file for a pure client machine:
# which has:
# - no printers of its own, (or any local printers will not be shared?)
# - no need for security within the machine, ie a personal workstation
# - a network connection to a local network, where it will find CUPS-controlled
printer servers
# This setup also allows access to the “Administrative tasks” system at
# http://localhost:631
# File based on Ubuntu 5.10 (Breezy Badger) (Linux version 2.6.12-10-386)
# Server Directives are explained in http://localhost:631/sam.html

# 25/04/2006
# DavidTangye@netscape.net

ConfigFilePerm 0600
LogLevel info
Printcap /var/run/cups/printcap
RunAsUser Yes
### Listen fails. Use Port
#Listen 127.0.0.1:631
#Listen 10.0.0.0/8:631
#Listen 128.0.0.0/16:631
#Listen 192.168.0.0/24:631
Port 631

### Which print servers to use
Include cupsd-browsing.conf
BrowseOrder deny,allow
BrowseDeny from All
BrowseAllow from @LOCAL
BrowseAllow from 10.0.0.0/8
BrowseAllow from 172.16.0.0/12
BrowseAllow from 192.168.0.0/16

<Location />
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
</Location>

<Location /jobs>
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
</Location>

<Location /printers>
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
</Location>

<Location /admin>
AuthType None
Order Deny,Allow
Deny From All
Allow From @LOCAL
</Location>

Save and exit.

5) Restart CUPS by running:

sudo /etc/init.d/cupsys restart

It may take up to 30 seconds; however, the printer should be automatically detected.

More information is at https://help.ubuntu.com/community/NetworkPrintingWithUbuntu.

7 Comments »

RSS feed for comments on this post. TrackBack URI

  1. […] Howto: Print from one Ubuntu <b>computer</b> to another with Xubuntu […]

  2. This worked perfectly for me. Thanks!

  3. Thanks! This was as simple as cut’n’paste! On Breezy Badger – (I know I know, someday soon).

  4. Thanks for this. It helped me figure out how to print from my Xubuntu-based laptop to my Ubuntu-based PC.

    However, rather than editing the cups conf files, I found it easier to use the web-based CUPS administration http://localhost:631.

  5. These days I use the local Cups web to configure my printers.

    http://localhost:631

  6. hello friend please help me
    i am using xubuntu 10.04 and my print server is 2003
    and i am printing from server 2003
    xubuntu printing not accept and

    server ip is 192.168.0.2
    xubuntu ip is 192.168.105.208

    how can possible .

    • please urgent help….:(


Leave a comment

Blog at WordPress.com.
Entries and comments feeds.