LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,

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
[global]
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

[homes]
comment = Home Directories

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

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

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

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

[myshare]
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

[pdfshare]
path = /tmp
force user = root hanna
guest ok = Yes

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

Thanks.

I
 
Old 01-22-2006, 05:18 PM   #2
TheOther1
Member
 
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.
 
  


Reply


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 09:20 AM
samba printing outtacontrol Linux - Networking 3 11-22-2004 02:10 PM
Configuring CUPS printing through router w/ print server AIMath Linux - Networking 6 08-30-2004 11:51 PM
samba not printing tddlard Linux - Software 5 12-29-2003 08:42 PM
samba printing bmcneely0 Linux - Networking 14 07-20-2003 07:07 AM


All times are GMT -5. The time now is 09:00 AM.

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