Hi,
I use a slackware Laptop connected to a pc with xp. I JUST want to print to the usb printer connected to the xp pc...
Samba works perfectly, i can share files and stuff but no printing..
The strange thing is that for once i succeded printing with cups from the slackware laptop but after restart ...nop
These are my steps (This is what it worked for just once..!!):
On WIN pc:
1) I go to "Start" --> "Settings" --> "Control Panel" --> "Add/Remove Programs" --> "Add/Remove Windows Components".
I click "Other Network File and Print Services", then click "Details"
and i select the "Print Services for UNIX" check box, then click "OK"
2) I open Network Connections
Right-click on the appropriate network interface and i select Properties.
I click on the "Advanced" tab and the "Settings" button to open the firewall settings.
On the firewall settings, i click on the "Exceptions" tab, then the "Add Port" button.
I name the service: LPD, and i enter port number 515.
3) I share the printer (name of shared printer: hpdeskjet) and i disable Norton Internet Security just for sure..
On SLACK pc:
4) First i configure samba (smb.conf).
This is what i get after running testparm:
:/# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[tmp]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = MYGROUP
server string = Samba Server
log file = /var/log/samba.%m
max log size = 50
dns proxy = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
path = /tmp/samba
read only = No
guest ok = Yes
5) I open cups and i add my hp deskjet 5150 printer (printer works fine when
local)
Then i select "LPD/LPR Host or Printer" as the Device and i enter the Device URL lpd://192.168.0.1/hpdeskjet (192.168.0.1 is xp pc)
(When i tried Windows Server via Samba and for url smb://192.168.0.1/hpdeskjet or something like smb://username
assword@192.168.0.1/hpdeskjet it didn't work at all..)
With LPD as Device and with the lpd url i was able just for once to print a test page and other stuff...until i restarted..
So what's wrong??
Do i have to modprobe anything or run any extra command?
Network with cross cable is fine. I can ping both sides. I can share files in /tmp/samba but i cannot print from the slackware box....
Any ideas???
Thanks in advance.