LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help Setting Up a Samba Print Sever (https://www.linuxquestions.org/questions/linux-newbie-8/help-setting-up-a-samba-print-sever-662967/)

gNguyen 08-15-2008 07:39 AM

Help Setting Up a Samba Print Sever
 
Ok, I would like to make my debian box be a print server to a windows vista laptop which is connected wirelessly. I've tried about five or so guides, but the printer doesn't show up on my vista computer. Can someone please help me or give me a site with a good guide to setting up a samba printing server so that vista can print to it.

gNguyen 08-15-2008 09:27 AM

Hello, Anyone ?

pentode 08-15-2008 09:37 AM

Can you see the Debian box from the Windows box and vice versa? You need to break it down and make sure the samba setup is working, then work on the printer.

gNguyen 08-15-2008 09:47 AM

my windows computer can see the linux one but i dont know how to check on the linux one.

checkmate3001 08-15-2008 10:11 AM

In my experience the best route to be able to print from windows via samba is making cups print raw and installing the correct drivers on the windows machine... however, I've never tried vista with samba.

tbeehler 08-15-2008 10:15 AM

Quote:

Originally Posted by gNguyen (Post 3248438)
Ok, I would like to make my debian box be a print server to a windows vista laptop which is connected wirelessly. I've tried about five or so guides, but the printer doesn't show up on my vista computer. Can someone please help me or give me a site with a good guide to setting up a samba printing server so that vista can print to it.

I stopped using Samba as a print server when I got a hardware based one, however, when I was using Samba, it worked flawlessly.

Since I didn't need the machine anymore, I formatted it, otherwise I'd post my smb.conf file for you.

However, I found a good tutorial on how to set up a print server with Samba here:

http://www.linuxforums.org/servers/h...with_cups.html

Hope that helps!

Travis

gNguyen 08-15-2008 11:39 AM

It doesn't work. I give up. I'm just gunna move the printer to the vista computer.

tbeehler 08-15-2008 11:42 AM

Quote:

Originally Posted by gNguyen (Post 3248722)
It doesn't work. I give up. I'm just gunna move the printer to the vista computer.

Ok, Sorry it didn't work out for you. Feel free to come back and we'll be happy to help if you have any more questions.

Travis

john test 08-15-2008 11:56 AM

Quote:

Originally Posted by gNguyen (Post 3248589)
my windows computer can see the linux one but i dont know how to check on the linux one.

Does the printer print from the Linux box?
Can you browse to localhost:631 to see the printer setup?

gNguyen 08-15-2008 12:15 PM

I didn't move it yet. The printer works fine from linux. And I can ping the vista computer from linux and vice versa, and linux can connect to localhost:631 and so can vista using http://192.168.1.100:631/

john test 08-15-2008 01:43 PM

Oh good! I'm so glad you didn't give up! I have the same problem you do. Do you have cups running on the linux box.
I'm running gnu/ubuntu 7.10 -- I can't get samba file sharing to work and I can't get the cups/samba print server to provide print service for the vista box or the xp box

what does your smbd.conf look like?

gNguyen 08-15-2008 01:49 PM

Code:

[global]
netbios name = linuxprinter
server string = Samba Server
workgroup = nguyen
security = share
encrypt passwords = yes
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = yes
hostname lookups = yes
amdpasswd file = /var/lib/samba/private/smbpasswd
hosts allow = 192.168.1.103 localhost
hosts deny = All
interfaces = lo eth1
bind interfaces only = yes
guest ok = yes
browse list = yes
printcap name = cups
printing = cups
load printers = yes

[public]
path = /home/samba/public
comment = Shared folders
guest ok = yes
create mode = 0766
browseable = yes
public = yes
read only = no

[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
printer admin = root

[EpsonNX400]
comment = Epson NX400
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = root


short_handle 08-15-2008 03:05 PM

Print server option
 
I know this doesn't answer the question, but I gave up on all that when I got a little one-port print server widget to network my USB printer. I have 3 Linux boxes and a Windows notebook, and no single computer has to be running in order to use the printer from any of the others. Just a thought - it's one less headache.

gNguyen 08-15-2008 05:20 PM

Thanks I'll probably end up getting something like that.

jwillar 08-15-2008 06:39 PM

dito on the print server
 
I solved my print sharing problems by purchasing a print server that was linux friendly. I opted for one with 2 USB and 1 serial connectors which allowed me to use my old serial laser and a newer USB deskjet. This is the best way to share a printer in my option too.

Gryyphyn 08-16-2008 11:53 AM

Quote:

Originally Posted by gNguyen (Post 3248822)
Code:

[global]
[public]
path = /home/samba/public
comment = Shared folders
guest ok = yes
create mode = 0766
browseable = yes
public = yes
read only = no

[printers]
comment = All Printers
browseable = no
printable = yes
writable = no
public = yes
guest ok = yes
path = /var/spool/samba
printer admin = root

[EpsonNX400]
comment = Epson NX400
printable = yes
path = /var/spool/samba
public = yes
guest ok = yes
printer admin = root


I don't personnaly see any errors in your config, though having a second entry in smb.conf for the exact printer seems off from my config. I still suggest using cups, samba ties right in to it. My other question is this: have you set up the users for samba through smbpasswd? Working with Vista in particular you should have user account authentication through smb accounts is going to be a requirement, at least in my experience.

Gryyphyn, out.


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