LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-25-2011, 02:20 PM   #1
robertoi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Rep: Reputation: Disabled
Setting up printing/ samba print share on a linux NAS


Hi all,

I am completely new to linux, and this is my firs post on this forum, so hi! I have tried in vain to work this out for myself, but I feel I must be missing something as its just not working.

I have just recently purchased a 2nd hand iomega home media NAS, which runs an ARM distro of Debian Lenny kernel v5 I think. I have rooted this device and obtained telnet access, as I have thus far been completely unsucessful in getting the print server on the device to work.

I have a Canon LBP2900 USB laser printer, and according to iomega it should be very simple, ie plug and play. My windows PC can see the printer in 'Network' but when it tries to send a job to the printer, or gets its status it just says print server not ready.

From what Ive read, in order to share a printer via samba, the printer has to be set to print locally on the linux machine it is connected to. As I understand it, if I telnet to the box and type 'lpr somefile.txt', if the printer was working, it should print the text file. However, as you probably guessed this isnt working for me. When I send a job to the printer, either locally, or from the windows pc, they appear in the print spool list I get from lpstat, but they all fail.

Do I need to install the actual canon print driver using CUPS on the NAS in order to share it, or is there someway around this, as Iomega clearly seem to think??

To add to my problems, the distro of linux on the box does not appear to have any of the valid files for var/lib/dpk, such as 'status' etc, that I understand you need in order to get apk-get to work.....

Sorry for the rambling post, but any help would be most gratefully received as this is the main reason I wanted a NAS in the first place!

Rob
 
Old 09-26-2011, 08:03 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Welcome to LinuxQuestions.
What is the model number of the NAS that you purchased?

I looked at the manual for several devices and none provide much information. The drivers need to be installed on the clients and not the NAS. Did you try configuring windows to print directly to the NAS per the manual? By see the printer in network neighborhood is that on the linux PC or the NAS?

What did you use for the address/printer name when you configured cups?
 
Old 09-26-2011, 02:30 PM   #3
robertoi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi Michael,
Thanks for your reply, I agree the NAS manuals dont give very much information on getting this working, they imply that it should be very straightforward! To answer your questions:
  • I have a 1TB iomega home media network drive, from 2009, not the cloud version
  • I installed the printer driver on my windows laptop
  • The iomega manual says that if you are having problems, to install the driver and configure a local port with the address of //NAShostname/Printer1, which is what I have done
  • I can see the printer in network neighbourhood in windows, so Samba appears to be set up correctly

As far as I can tell, there is no cups installation on the nas atall. I have tried to install cups manually but it hangs before it finishes, so far I have not managed to get apt-get to work on this box.

Any further advice would be most gratefully received!

Thanks,
Rob
 
Old 09-28-2011, 02:50 PM   #4
robertoi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi, anyone have any ideas?
Im now thinking that I might be able to solve this problem by downloading an image of the linux distro my nas has, and taking the dpkg files (ie status, available, alternative), over to my nas, and then trying to get apt-get to work in order to get cups to install...

Thanks
 
Old 09-28-2011, 04:16 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
BTW what version of windows are you running?
I would not think that cups is required.
 
Old 09-28-2011, 04:20 PM   #6
robertoi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Im running windows vista
 
Old 09-29-2011, 03:23 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Not sure why you insist that cups is required. samba does have a spooler typically at /var/spool/samba.
I am unfamiliar with this particular device so I can not provide detailed information.

Have you tried configuring shares to see if that works?
What happens when you try printing?
 
Old 09-29-2011, 05:02 PM   #8
robertoi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
My windows desktop sees the share, and I can create a windows printer on a local port mapped to //NAS/Printer1. When windows tries to print, it simply says print server not ready, every time. As far as I can tell samba appears to be set up correctly, youd hope so since the manufacturer set it up. I will post the samba.conf file on here when I get my access point working again as the nas is currently not connected to my network.
 
Old 10-05-2011, 03:28 PM   #9
robertoi
LQ Newbie
 
Registered: Sep 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Samba configuration script for my NAS:

[global]
workgroup = HOME
server string = Home Media Drive
security = user
map to guest = Bad User
use sendfile = yes
hide dot files = yes
veto files = /.AppleDouble/.AppleDB/.AppleDesktop/:2eDS_Store/:2eTemporaryItems/Network Trash Folder/Temporary Items/
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
dns proxy = no
local master = no
os level = 20 #ensure that we lose a browser election
domain master = no
preferred master = no
max xmit = 65535
username level = 16
disable spoolss = yes
stat cache = no
null passwords = yes
log level = 0
winbind enum users = yes
winbind enum groups = yes
idmap uid = 10000-20000
idmap gid = 10000-20000
syslog = 0
guest account = nobody
load printers = yes
printcap name = /etc/printcap
printing = lprng
comment = Storage on Home Media Drive
[printers]
path = /var/spool/lpd/samba/
printable = yes
print command = /usr/bin/lpr -P%p -r %s
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
lppause command = /usr/sbin/lpc hold %p %j
lpresume command = /usr/sbin/lpc release %p %j
queuepause command = /usr/sbin/lpc stop %p
queueresume command = /usr/sbin/lpc start %p
guest only = yes
 
  


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
Locked out of files and cant change permissions on SAMBA share NAS Quantaa Linux - Newbie 3 01-21-2011 07:40 AM
Samba share (NAS) with IIS 7.0 [Windows-alert ;)] laurens Linux - Newbie 2 11-05-2009 04:10 AM
Setting up Linux as a print server (NOT SAMBA) evilmonkey Linux - Server 6 05-12-2007 02:59 AM
Can linux/Samba and wireless connected XP laptops share files and print? Spearhead40 Linux - Wireless Networking 1 08-17-2006 03:05 PM
Samba printing. Spool but no print mooreted SUSE / openSUSE 16 10-23-2004 06:31 PM


All times are GMT -5. The time now is 10:42 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