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!

Notices

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.

I have Ubuntu server 12.04 I installed cups and samba server and I installed HP Laser Jet p4015n through network card in cups server
I am able to print locally but when add this printer to my windows clients when I print from windows 8 clients I see print job in cups web interface under it says "print file was not accepted" if you have any idea please help!

i second that, if i'm not mistaken, the n at the end of the model number specifies that the printer comes with a built in network card (network printer), which according to a cnet review appears to be the case with your model of printer, so attaching it as a local printer via usb or parallel and sharing it would be the long way around the block, when you could just plug it directly into your switch and go from there.

Why not install it as a network printer under Windows and let it work with the Windows driver?

I agree.
I was trying to get cups to work with samba so my windows 7 clients can use it. But it only gave me headache.
Instead, i directly access cups. Problem solved.

First, make sure you can successfully print a test page via cups.
Then, just add network printer from windows, like :

Code:

http://your.cups.server.ip:531/printers/your_printer_name

.
Then you can use the supplied printer driver.
Or you can use the generic->MS Publisher Imagesetter driver. If you want to use this, make sure the postscript filter (comes with ghostscript package) is installed on your server.

If you got it to work, great, but I'm not sure why you'd want to print to CUPS from Windows. Any network printer should present as an independent device on the network, not dependent on any machine on the network. That's the way I use my network printer, anyway. I access it transparently from both Windows and Linux machines without one depending on the other. Also, the Windows driver would give you probably a lot more options.

I have installed the printer via cups it is working with windows 7 but I want shared printer to prompt user and password when clicked when accessed from windows clients via samba share but I am unable please help.

I have been fighting this issue for several months. It was only after reinstalling Windows XP on another computer, and discovering that XP would not print to the printers on my Linux (Fedora 18) server using the same settings which were working the previous day that I ran across a limitation in XP (which may or may not apply to 7 & 8) of 31 characters, (including the path) in the printer name. I reinstalled the printers on the server with shorter names on my server. So while "http://192.168.0.101:631/printers/Laser-Jet-3P" would not work, "http://192.168.0.101:631/printers/HP" did (even though the address is more than 31 characters if you include http://. I successfully installed the printers in Windows 8 using the instructions here: