Setting up printing/ samba print share on a linux NAS
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Setting up printing/ samba print share on a linux NAS
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!
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?
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!
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...
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.