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 jimbothe programs we need:
Code: Select all
emerge samba
emerge cups
emerge psutils
emerge ghostscript
emerge gnome-print (optional)Code: Select all
emerge hpijsCode: Select all
USE="ppds" emerge gimp-printelse just do
Code: Select all
emerge gimp-printCode: Select all
/usr/share/cups/model/3. the installation
now we start cups:
Code: Select all
/etc/init.d/cupsd startgo 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/printerCode: Select all
smb://hulk:xxxxxxx@msheimnetz/jimbo/epsonc62Code: Select all
smb://guest:@workgroup/host/printerchoose 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 defaultgreets,
hulk



