Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cups + Samba + printing from linux = Looks like garbage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dpl
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 137
Location: Canada

PostPosted: Sun Sep 12, 2004 3:06 am    Post subject: Cups + Samba + printing from linux = Looks like garbage Reply with quote

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
View user's profile Send private message
dpl
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 137
Location: Canada

PostPosted: Sun Sep 12, 2004 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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