Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Printing from Gentoo to a shared Windows XP printer via Cups

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
107 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
Author
Message
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

Printing from Gentoo to a shared Windows XP printer via Cups

  • Quote

Post by hulk2nd » Tue Sep 23, 2003 9:03 pm

Ok,

for the first, hi at all!

In this thread i'm gonna try to explain, how to use a shared printer, that is connected to a Windows XP machine in your lan.
It isn't hard at all but it took me hours to get it working cause i couldn't find a good tutorial, that's why i decided to write this one.

I'll try to explain it with the help of what i've done here:

1. My computers:

a) My windows XP computer is called "jimbo", the ip is 192.168.0.3, the standard user is hulk ( pass xxxxxxx ) and the connected printer is an epson stylus c62.

- share the printer by right-clicking on it and give him a simple name, in my case "epsonc62".
- disable any firewalls ( you can configure it later but first we will make sure that printing will work at all ).

b) My Gentoo machine is a vaio notebook, called hulktop, the ip is 192.168.0.22

2. the requirements:

make sure that your xp machine is in your /etc/hosts. i couldnt get it working with the ip adress only.

in my case it is:

Code: Select all

192.168.0.3     jimbo.spengnet.lan         jimbo
optionally you can add "cups" to your USE-Flags, but this is not necessary.

the programs we need:

Code: Select all

emerge samba
emerge cups
emerge psutils
emerge ghostscript
emerge gnome-print (optional)
it seems that you need the "HP Inkjet server for Ghostscript", if you have a Hewlett Packard printer.

Code: Select all

emerge hpijs
now you need a driver for your printer. you can either go to www.linuxprinting.org to get the .ppd file for your printer ( in my case Epson-Stylus_C62-gimp-print-ijs.ppd ), or you can

Code: Select all

USE="ppds" emerge gimp-print
to get all available gimp-print drivers.
else just do

Code: Select all

emerge gimp-print
if you choosed just to download the file from linuxprinting.org, then you have to copy it over to

Code: Select all

/usr/share/cups/model/
( strangefully i experienced, that the downloaded driver for my printer from linuxprinting.org prints faster than the driver from the gimp-print package. even with the same settings ... )

3. the installation

now we start cups:

Code: Select all

/etc/init.d/cupsd start
open your favourite browser and go to http://localhost:631/
go to "manage printers". if you're asked for a password type in your normal root account infos. the first three informations (name, location, description) can be filled just like you want. i choosed to name it epsonc62 but i don't think it is needfull that this name is the same one that you gave your printer on the xp machine. click continue. choose "Windows Printer via SAMBA". click continue.
then tipe in the location:

Code: Select all

smb://username:pass@workgroup/host/printer
in my case this is

Code: Select all

smb://hulk:xxxxxxx@msheimnetz/jimbo/epsonc62
maybe it is working with the normal guest account so i suggest you'll try this first before using your normal login.

Code: Select all

smb://guest:@workgroup/host/printer
click continue.
choose the vendor of your printer ( in my case epson ), continue
choose your printer model eg the driver you installed earlier, continue

if I didn't forget something and everything went well, you should now be able to print the test page.

the last thing is to add cups to runlevel default so that the printer works everytime you reboot.

Code: Select all

rc-update add cupsd default
comments, critics and feedbacks in any case are very welcome :)

greets,
hulk
Last edited by hulk2nd on Mon Oct 27, 2003 1:40 am, edited 8 times in total.
Top
TheWart
Guru
Guru
User avatar
Posts: 432
Joined: Fri May 10, 2002 12:54 am
Location: Nashville,TN - USA

  • Quote

Post by TheWart » Tue Sep 23, 2003 10:15 pm

Nice guide.

I am going to print this out, cause when I go home for vacation, I am going to have to do this.
Face it, we are all noobs.

On the box it said it was designed for Win XP or better, so why won't it work with Linux?
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Sat Sep 27, 2003 11:39 am

i hope it can help you. it would be nice to get at least one positive feedback so that i know everything works well ( i had to edit it several times already, cause i forgot somethin ).

greets,
hulk
Top
RedBeard0531
Guru
Guru
User avatar
Posts: 415
Joined: Sat Sep 21, 2002 11:51 pm
Location: maryland

  • Quote

Post by RedBeard0531 » Mon Sep 29, 2003 11:29 pm

GOOD TIMING!!! :wink:

I needed this today. Great job. You might want to consider submiting this to the gentoo-docs team, and mabey others so it can be googled. It continues to amaze me that there are beter docs in the forums of a reletively unpopuler (in terms of users, I personaly love it) distro than on google!!! :twisted:
OH MY GOD! Kenny just killed Kenny!
That Basterd!
Top
a.zapatista
n00b
n00b
Posts: 42
Joined: Mon Apr 28, 2003 11:13 pm

  • Quote

Post by a.zapatista » Tue Sep 30, 2003 9:52 pm

thank you thank you thank you thank you :P :P
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Tue Sep 30, 2003 10:22 pm

so, it seems to work :D
i'm glad i could have helped you.

greets,
hulk
Top
thomasando
Tux's lil' helper
Tux's lil' helper
Posts: 94
Joined: Sat Apr 05, 2003 1:01 pm

  • Quote

Post by thomasando » Thu Oct 02, 2003 12:23 pm

i can't get it working! i'm trying to print to a machine on the other side of a VPN at my parents house. the connection is up, i can browse samba shares etc from my machine, i can ping the systems on the other side, just cups doesn't want to talk... i have put the ip address and hostname of the system it's connected to in /etc/hosts and tried connecting using the hostname as well as the ip address and it doesnt like it.

my internal subnet is 192.168.0.x and the one at my parents house is 192.168.1.x - the vpn is ipsec, done via 2 smoothwall boxen. Has anyone got any ideas on how i might get this running?

edit: the system on the other side of the vpn with the printer attached is windows 2000. i'm trying to print from gentoo (of course!)
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Thu Oct 02, 2003 2:24 pm

this normally happens when you forget to enter username / pass in the string, wihile trying to connect to the printer.

Code: Select all

smb://username:pass@workgroup/host/printer
Top
Raniz
l33t
l33t
User avatar
Posts: 967
Joined: Sat Sep 13, 2003 12:30 pm
Location: Varberg, Sweden
Contact:
Contact Raniz
Website

  • Quote

Post by Raniz » Mon Oct 06, 2003 4:24 pm

Works Great!
Top
Darkon
n00b
n00b
User avatar
Posts: 29
Joined: Wed Aug 13, 2003 6:49 am
Location: Finland, admist the polarbears

  • Quote

Post by Darkon » Wed Oct 08, 2003 12:05 pm

Works for me ;)
"Discipline is my sword, faith is my shield" -Overseer Grimal
Top
XeroByte
n00b
n00b
Posts: 21
Joined: Tue Aug 13, 2002 9:36 am
Location: Belgium

  • Quote

Post by XeroByte » Thu Oct 09, 2003 11:29 pm

doesn't work for me... when I try to print the test page or something other it says: 'aborted'. Can't figure out why it doesn't work :/

EDIT: and when I click on 'Restart Job' it says: 'client-error-not-possible'

seems like there's something wrong with the XP-machine
Top
MatzeOne
Guru
Guru
User avatar
Posts: 579
Joined: Sun Sep 07, 2003 12:44 am
Location: Hamburg, Germany
Contact:
Contact MatzeOne
Website

  • Quote

Post by MatzeOne » Fri Oct 10, 2003 7:22 am

the only windows i didn't removed of my pcs is windows millenium on my laptop... will it work with this guide? i'll try if you don't say no ;)
Mit null lässt sich eine ganze Menge machen.
Sportschule Hamburg
Top
Eddy
n00b
n00b
Posts: 20
Joined: Wed Sep 25, 2002 2:32 pm
Location: Maastricht/Uitgeest, Holland

  • Quote

Post by Eddy » Fri Oct 10, 2003 7:33 am

XeroByte wrote:doesn't work for me... when I try to print the test page or something other it says: 'aborted'. Can't figure out why it doesn't work :/

EDIT: and when I click on 'Restart Job' it says: 'client-error-not-possible'

seems like there's something wrong with the XP-machine
I have the same problem :(
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Fri Oct 10, 2003 8:14 am

have you guys disabled all your firewalls?
Top
XeroByte
n00b
n00b
Posts: 21
Joined: Tue Aug 13, 2002 9:36 am
Location: Belgium

  • Quote

Post by XeroByte » Fri Oct 10, 2003 9:00 am

yeh, firewall is disabled...
Top
Koybe
n00b
n00b
Posts: 29
Joined: Sun Oct 05, 2003 3:50 pm
Location: Belgium

  • Quote

Post by Koybe » Fri Oct 10, 2003 10:00 am

strange... works well with test page and i get blank page for anything else 8O
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Fri Oct 10, 2003 10:24 am

these problems are really strange. the problem is that i don't have any experience with these.

@xerobyte: maybe you typed the password / username wrong? i had the same problem when i forgot to enter it.

@Koybe: have you tried to use another .ppd file? maybe another driver would solve these problems.
Top
XeroByte
n00b
n00b
Posts: 21
Joined: Tue Aug 13, 2002 9:36 am
Location: Belgium

  • Quote

Post by XeroByte » Fri Oct 10, 2003 10:30 am

no, they're correct (username and password)... reconfigured it several times tho to check if they weren't wrong... but is it normal that in printer overview only smb://workgroup/host/printer appears without the username und password in it?
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Fri Oct 10, 2003 10:36 am

yes, thats normnal.
have you tried to ping the other computer so that you at least can be sure that it is not a connection problem?
if not try it with ping <ip> and with ping <host>

greets,
hulk
Last edited by hulk2nd on Fri Oct 10, 2003 10:39 am, edited 1 time in total.
Top
XeroByte
n00b
n00b
Posts: 21
Joined: Tue Aug 13, 2002 9:36 am
Location: Belgium

  • Quote

Post by XeroByte » Fri Oct 10, 2003 10:39 am

yes, ping works without any problems... looks somehow like the xp machine rejects any incoming printer jobs...
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Fri Oct 10, 2003 10:41 am

hmm just for fun, try it with administrator as the username (and of course with the admin pass).
maybe it is a rights-problem.
Top
XeroByte
n00b
n00b
Posts: 21
Joined: Tue Aug 13, 2002 9:36 am
Location: Belgium

  • Quote

Post by XeroByte » Fri Oct 10, 2003 10:50 am

doesn't work neither :(
Top
Koybe
n00b
n00b
Posts: 29
Joined: Sun Oct 05, 2003 3:50 pm
Location: Belgium

  • Quote

Post by Koybe » Fri Oct 10, 2003 11:52 am

how maybe the problem is i have a canon s750 and found no ppd for it... so i'll try some of it.
Another question when i'll have it work how can i put the "cups start" at boot for not having to type it each time?
Top
hulk2nd
Guru
Guru
User avatar
Posts: 512
Joined: Tue Mar 25, 2003 2:45 pm
Location: Freiburg, Germany

  • Quote

Post by hulk2nd » Fri Oct 10, 2003 12:17 pm

Code: Select all

rc-update add cupsd default
Top
Koybe
n00b
n00b
Posts: 29
Joined: Sun Oct 05, 2003 3:50 pm
Location: Belgium

  • Quote

Post by Koybe » Fri Oct 10, 2003 12:41 pm

I should have guest but i'm noob :p sorry
Top
Post Reply

107 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic