Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Printing To A Windows Print Server From Gentoo, via cups and samba
post Aug 7 2004, 08:37 AM
Post #1

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

If you haven't done the command:

emerge sync

within 24 hours, do that first, then make sure you have cups and samba installed:

emerge -uUDp cups samba

will tell you if you need to install or upgrade anything ... then:

emerge -uUD cups samba

will upgrade/install it.
Now we need to make cupsd start at every boot, so do this:

rc-update add cupsd default

and we need to start it now, if it isn't already....

/etc/init.d/cupsd restart
This particular tip is assuming that you need to print to an already working Windows printer on another machine. In my case, it is an HP-3820 already attached to a Windows XP machine.

There are some things you need to know / do about the Windows Printer and the machine it is connected to.

The printer needs to be shared in Windows and you need to know the share name of the printer, the workgroup name of the Windows machine, and a username and password on the windows machine of a user who can use the printer.

In my case:
Windows computer name:  johnny1
Printer share name: deskjet3820
Windows Workgroup name: home
username: username
password: password

Now we need to see if you can see the new computer by name, use the command (you substitute your computer name for johnny1):

ping johnny1

If the result is:

ping: unknown host johnny1

you need to fix your name resolution by adding an entry in the file /etc/hosts that has the name and IP address of the computer you are using ... similar to this: johnny1

Then ping again and if the result is simlar to this (press ctrl-c to stop pinging):

PING johnny1.home.local ( 56(84) bytes of data.
64 bytes from johnny1.home.local ( icmp_seq=1 ttl=128 time=0.314 ms
64 bytes from johnny1.home.local ( icmp_seq=2 ttl=128 time=0.179 ms
64 bytes from johnny1.home.local ( icmp_seq=3 ttl=128 time=0.185 ms

you are good ... if not, resolve the name issues before continuing.

Once the name issues are good, continue
Now we will add a new printer to gentoo via cups .. the easy way to do this is to open a web browser and type this in the address bar:


Then pick add printer and add the information ... you may need first add cups drivers for your printer ... my printer is in the default install (as HP DeskJet).

The only real tricky part is the URI ... which should be:

If you use gnome ... you can also do:

emerge -UuD gnome-cups-manager

and use the program:

gnome-cups-manager to add your samba network printer to gentoo.

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 22nd July 2018 - 06:03 AM