Adding a printer

Posted on 2003-03-13
Medium Priority
Last Modified: 2012-05-04
I have no idea how to use a linux server

so please tell me the exact steps i need to take to add a printer

I do not have x windows .
I have redhat 8.0 am accessing it using webmin

I am adding a printer as a remote unix server printer.

When i add it as a local printer i can print test page .

how do i make a network printer

I also cannot add it from a workstation
I get access denied error.
do i have to be logged on to the same domain???
Question by:Cosmos
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 17

Accepted Solution

psimation earned 80 total points
ID: 8134460
You need to share the printer via samba.

Windows networks run on the SMB protocol, and samba is a Linux util that emulates the SMB protocol to allow windows and Linux machines to network seamlessly.

You need to configure the samba server on the linux box and then share the printer.
But first you must configure the printer via a) CUPS, or b) printtool.

You can go to my website a t www.linuxhelp.co.za and follow the networking link to see how to configure samba and share files and printers.

Assisted Solution

heskyttberg earned 80 total points
ID: 8137896

I take it you have installed the printer with the printconf tool in RH.
CUPS or printtool is a X app, he didn't have X and CUPS isn't needed, just printconf.

Now install the samba package, if not allready installed.
Find the following lines in /etc/samba/smb.conf.

workgroup = ??
Change the ?? to the same workgroup as your windows boxes.
Next find:
Server String = ??, change to anything you like.
Under this if not present add following:
Netbios name = myLinuxBox, or whatever you want the computer to be called in the windows network.

Next find the following section:
print cap name = lpstat
load printers = yes
printing = lpr

They should look like this and not be commented out.
Uncomment following section:
comment = All Printers
path = /var/spool/samba
browseable = Yes

Run the setup tool and mark smb for startup.

Restart samba by:
/etc/init.d/smb restart

Now you must create a standard unix user like:
useradd -g users -d /home/myUser -s /bin/bash -k /etc/skel myUser, where my user is any name you'd like.

Now do this:
smbadduser myUser myWindowsUserName
smbpasswd myWindowsUserName

Choose same password as you have for the user in windows machine. And the myWindowsUserName is the username you use to login to your windows computer.

After all this is done, you'll be able to browse network and map the printers to windows machines.

You can add more windows users, just create one account for each user and map it to a windows user with the smbadduser command.

If you need more info go read docs in:

Hope this help.

/Hans - Erik Skyttberg

Expert Comment

ID: 9087710
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Expert Comment

ID: 9288506
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split points betwen psimation and heskttyberg
Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Featured Post

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question