Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-12-2005, 04:12 PM   #1
LQ Newbie
Registered: Sep 2005
Location: London
Posts: 13

Rep: Reputation: 0
Angry Printing using samba and configuring a pdfprinter


Please can you help me. I have a Windows XP and a Linux machine in a workgroup network. Samba now works fine and I can view the Linux machine in Windows. I have a printer directly connected to the Windows machine and I have allowed the printer to be shared on the network. the printer.

Now I am trying to configure the smb.config file to allow me to print from the linux machine to the network printer. When I try tp print something nothing happens - i don not even get an error message.

I also tried to configure the smb.config file to use a pdfprinter and again nothing seems to happen when I print using the pdfprinter (although I can see it on my Windows machine.)

Also, wheras before I could see the files on my Linux machine from my Windows machi8ne once I uncommented the printer commands I can no longer see the Linux files from Windows and i cannot figure out why.

Any kind of advice would be great as I do not have a clue what to do next. Below is my smb.config file:

# Global parameters
workgroup = MSHOME
netbios name = LILY
server string = Samba Server
password server = None
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = No
wins server = w.x.y.z
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
comment = Root's Account on the Linux Machine
path = /
read only = No
hosts allow = 192.168.0., 255.255.255.
cups options = raw

comment = Home Directories

comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

comment = Temporary file space
path = /tmp
guest ok = Yes

comment = Hanna's Service
path = /usr/somewhere/private
valid users = hanna
printable = Yes

path = /usr/somewhere/else/public
guest only = Yes
guest ok = Yes
printable = Yes

comment = Mariam's and Lily's Stuff
path = /usr/somewhere/shared
valid users = hanna, lily, root
create mask = 0765
printable = Yes

[Root Directory]
comment = Hanna's Account on the Linux Machine
path = /home

path = /tmp
force user = root hanna
guest ok = Yes

comment = PDF Printer
path = /tmp
read only = Yes
create mask = 0700
guest ok = Yes
printable = Yes
print command = /usr/bin/printerpdf %s


Old 01-22-2006, 06:18 PM   #2
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
What distro? You should be able to browse to the Windows machine and add the printer. You should not have to do anything to smb.conf as that would be setting up a printer on the Linux box to share. So on Ubuntu (for example), System, Administration, Printing, New printer, Network printer, Windows Printer (SMB), Enter Windows host, shared printer name, user & password, Forward, select print driver and viloa! A networked printer.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Printing: NEED HELP!!! headlessb Linux - Networking 7 11-09-2005 10:20 AM
samba printing outtacontrol Linux - Networking 3 11-22-2004 03:10 PM
Configuring CUPS printing through router w/ print server AIMath Linux - Networking 6 08-31-2004 12:51 AM
samba not printing tddlard Linux - Software 5 12-29-2003 09:42 PM
samba printing bmcneely0 Linux - Networking 14 07-20-2003 08:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration