View previous topic :: View next topic |
Author |
Message |
dpl Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 22 Apr 2003 Posts: 137 Location: Canada
|
Posted: Sun Sep 12, 2004 3:06 am Post subject: Cups + Samba + printing from linux = Looks like garbage |
|
|
Alright, I've finally got my printer working through a network using cups and samba, and so far have been able to print stuff. This is all fine and dandy, but when I print things, it looks like garbage. It looks like all the ink was put on the left side of the page, and then smeared to the right. Definitely not what I want.
Anyhow, here's my samba config:
Code: |
# Global parameters
[global]
workgroup = MCLOUD
server string = barge
netbios name = barge
# interfaces = 131.202.0.0/255.255.255.0 127.0.0.1
socket address = 192.168.2.174
bind interfaces only = Yes
security = user
encrypt passwords = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = Yes
dns proxy = No
hosts allow = 192.168.2.174 192.168.2.171 192.168.2.140
hosts deny = ALL
printing = cups
browseable = yes
# lock directory = /usr/local/samba/var/lock
[mp3s]
comment = mp3s
path = /mnt/mp3s
force user = sambaguy
read only = no
writeable = no
guest ok = Yes
[movies]
comment = movies
path = /mnt/movies
force user = sambaguy
read only = No
writeable = Yes
guest ok = Yes
[homes]
comment = Home Directories
browseable = yes
writable = yes
[print$]
comment = Printer Drivers
# this path holds the driver structure
path = /etc/samba/printer
guest ok = no
browseable = yes
read only = yes
# add a username to the write list
# if you don't want root to be the only
# printer admin
write list = luke,sambaguy,root
[HP-Default] # the name is arbitrary, but should be consistent throughout
# Samba and CUPS!
comment = HP LaserJet 2
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = luke,root
[printers] # here all printers will be shown; this becomes the Printers
# share/section under Network Neighborhood
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
printer admin = luke,sambaguy,root
|
I've taken a ton of pieces from other threads on the forums, but I have no idea which one(s). The file sharing works flawlessly (has for some time now), just the printer isn't doing exactly what I hoped it would.
If anyone has ANY idea of what I'm doing wrong, feel free to let me know.
- dpl _________________ puto risi vidi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dpl Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 22 Apr 2003 Posts: 137 Location: Canada
|
Posted: Sun Sep 12, 2004 3:01 pm Post subject: |
|
|
Ok, now it works.
It wasn't a problem with samba, which I had thought it was. It ended up being a problem with CUPS, and fairly easy to fix. Since I didn't read the directions fully, and just assumed that since it would print but not print usefully, it was a problem with samba. I think what made it work was me putting the ppd file in the right place. Although, it could have also been the hosts allow section of samba, because when I changed that the printer appeared at 127.0.0.1:631 (cups config page) without me needing to add it.
At any rate, it works now.
- dpl _________________ puto risi vidi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|