setting up print server HELP!! [SOLVED]

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
widgeteye
Level 1
Level 1
Posts: 15
Joined: Wed Aug 24, 2016 4:56 pm

setting up print server HELP!! [SOLVED]

Postby widgeteye » Tue Jan 10, 2017 6:56 pm

I have been reading for two days on how to setup a print server in Mint. Some docs say use samba, others say use cupsd, which I found was not running. Others say use the printer configurator (configure tool, I make up my own words) on both the mint server and the mint client. I decided to use the printer configuration tools on my Mint server and the Mint client. I get errors, "Processing - Can't detect file type". Then after awhile this error goes away and another error pops up. HTTP_STATE_WAITING Closing for error 32 (Broken pipe).

So, what would be the best way to setup a print server in Mint. I really would like to print from my Mint laptop to my Mint print server.
Thanks
Last edited by widgeteye on Thu Jan 12, 2017 1:35 am, edited 1 time in total.
While living in the north it took 800 gallons of heating oil to keep me warm through the winter, I have found that I can keep warm throughout the entire winter with a little over half that much beer.

widgeteye
Level 1
Level 1
Posts: 15
Joined: Wed Aug 24, 2016 4:56 pm

Re: setting up print server HELP!! [SOLVED]

Postby widgeteye » Wed Jan 11, 2017 3:41 pm

So I am going to answer my own question:

To setup a UBUNTU (or any linux OS) print server. This is the bare bones (pretty much) server configuration in smb.conf.
The client is also Ubuntu (or any linux OS). Maybe this will help someone else. I use ssh for all my other network needs so I only
setup the printer share.


### <start smb.conf> <----- Don't put this in your smb.conf file

[global]

netbios name = SERVER

workgroup = WORKGROUP

security = user

encrypt passwords = yes

bind interfaces only = yes

interfaces = 127.0.0.1 192.168.1.7



[printers]
comment = All Printers

path = /var/spool/samba

browseable = yes

guest ok = yes

writable = no

printable = yes

public = yes

write list = administrator

#### </end smb.conf>



To check if your interfaces are being recognized do this: sudo netstat -tulpn | egrep "smbd|nmbd"
You should get something like this:

Code: Select all

tcp        0      0 127.0.0.1:139             0.0.0.0:*               LISTEN      28920/smbd     
tcp        0      0 192.168.1.7:139           0.0.0.0:*               LISTEN      28920/smbd     
tcp        0      0 127.0.0.1:445             0.0.0.0:*               LISTEN      28920/smbd     
tcp        0      0 192.168.1.7:445           0.0.0.0:*               LISTEN      28920/smbd     
udp        0      0 192.168.1.255:137         0.0.0.0:*                           28857/nmbd     
udp        0      0 192.168.1.7:137           0.0.0.0:*                           28857/nmbd     
udp        0      0 0.0.0.0:137               0.0.0.0:*                           28857/nmbd     
udp        0      0 192.168.1.255:138         0.0.0.0:*                           28857/nmbd     
udp        0      0 192.168.1.7:138           0.0.0.0:*                           28857/nmbd     
udp        0      0 0.0.0.0:138               0.0.0.0:*                           28857/nmbd

It's the top 4 tcp that are important.

Also you can self test the server with the following: smbclient -L 127.0.0.1 -U%
You should get something like this:

Code: Select all

   Sharename       Type      Comment
   ---------       ----      -------
   IPC$            IPC       IPC Service (Samba 4.3.11-Ubuntu)
   Canon_MG7500_series Printer   Canon MG7500 series
   HP-LaserJet-3050 Printer   Hewlett-Packard HP LaserJet 3050
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.11-Ubuntu]

   Server               Comment
   ---------            -------
   906E14000000         MG7500 series
   SERVER               Samba 4.3.11-Ubuntu

   Workgroup            Master
   ---------            -------
   WORKGROUP            SERVER 

The OS=[Windows 6.1] above is Horse Apples and means nothing. Don't worry about it. the ( -U% ) above tells it to log in without User or Passwd.

On your client now goto /System/printers/add/Network Printer/Windows printer via Samba/ Here it may ask to install a little python program that searches for printers, do it.
Ignore all the Windows crap and just keep on. when you find the printer you want just go with it and hopefully you will get to your destination. :)

You should already have cups setup.

Have fun.
Last edited by widgeteye on Thu Jan 12, 2017 1:37 am, edited 3 times in total.
While living in the north it took 800 gallons of heating oil to keep me warm through the winter, I have found that I can keep warm throughout the entire winter with a little over half that much beer.

User avatar
jimallyn
Level 16
Level 16
Posts: 6577
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: setting up print server HELP!! [SOLVED]

Postby jimallyn » Wed Jan 11, 2017 5:00 pm

Bookmarked it. Thanks!
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan


Return to “Other networking topics”

Who is online

Users browsing this forum: No registered users and 2 guests