LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can I share a USB printer connected to my Win XP computer through a Netgear RP614 (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-share-a-usb-printer-connected-to-my-win-xp-computer-through-a-netgear-rp614-332884/)

PadreFabuloso 06-12-2005 07:14 PM

How can I share a USB printer connected to my Win XP computer through a Netgear RP614
 
Alright... here goes!

I have a computer running WinXP that has a USB printer connected to it.

I have a second computer running Kubuntu 5.04 withOUT a printer.

Both computers are connected via Ethernet to a Netgear RP614v2 router. Each computer can access the internet, so I know they're connected correctly to the router.

I set up the workgroup on the Win XP computer (correctly, I guess!).

What do I need to do on the Kubuntu side to print to the printer?

Any help would be greatly appreciated!
Ray

Finlay 06-13-2005 06:17 PM

1. you need to share the printer on the XP box.
2. you need to setup samba.
3. you need to either set the permissions on the XP box for the printer to be available to everyone OR setup a samba user/pass and sync it on the XP box.
4. install and start CUPS
5. goto http://localhost:631 and follow the steps to install your printer using a samba connection.

rkettle 06-13-2005 06:42 PM

the above post is correct, but I have always found it easier to plug printers into the linux box, then share.

Finlay 06-13-2005 06:48 PM

yeah it would be a lot better learning experience to have the printer physically attached to the linux box.

similiar steps as above, let me know if you want to go that route and i can help with that also.

PadreFabuloso 06-13-2005 09:40 PM

Unfortunately, the printer needs to be attached to the Win XP box, because that computer is used far more often than the Linux box (for now).

That said, here's what I've done so far:

Set up the Win XP box for networking

On the Kubuntu box

KDE Control Center
Internet and Network
Samba
Base Settings
Samba config file: /etc/samba/smb.conf

Server identification
Workgroup MSHOME (that's the name on the workgroup on the XP box)
NetBIOS name BOX2 (that's the name of the Kubuntu box)
Server string %h server (Samba, Ubuntu)

Security Level
I changed this to Share, because the descriptions sounded like this was the correct one.

What else needs to be done in Samba? The other tabs are just confusing the heck out of me!

Thanks for your help,
Ray

Finlay 06-13-2005 09:50 PM

you need to create a samba user that will used to connect to the xp box. if you have a user/pass that you use on the xp box now, that would be best. first thing is create a linux user with that name, then do a:
smbpasswd -a userid
userid=the account that has access to the xp box
set the passwords to be equal, then follow the CUPS instructions.

PadreFabuloso 06-13-2005 10:10 PM

In KUser, I set up a user with the following information

User Name: XPPrinter (meaning ... use this user login to print to the XP computer)
I set a password
The default UserID was 500, so I left that.
I set the full name to XPPrinter also
The login shell is empty
The home folder is /home/XPPrinter
Office#1, Office#2, and Address are empty
I unchecked "account disabled"
For new account options, I unchecked "create home folder" because I got an error message every time I didn't uncheck it
I clicked OK

To what groups (if any) does XPPrinter need to belong?

PadreFabuloso 06-13-2005 10:14 PM

Sorry...
Skipped a step

Then I went into Konsole and did the sudo smbpassword -a XPPrinter

and gave it a password when requested.

Finlay 06-13-2005 10:57 PM

now you need to open the printers view on the xp box bring up its properties and share it.

you also have to create a user on the xp called XPPrinter and set its password to the same as the smbpasswd

if you want to be able to cancel print jobs from the linux box then you will have to add the XPPrinter user to the 'power users' group on the xp box

PadreFabuloso 06-14-2005 09:07 PM

Quote:

Originally posted by Finlay
4. install and start CUPS
5. goto http://localhost:631 and follow the steps to install your printer using a samba connection.

So, it looks like I've done everything up to this point. How do I install and start CUPS?

(I always thought it was a card game........)

-Ray

Finlay 06-14-2005 09:19 PM

well i don't know anything about the distro you are using.
if there is a package manager search it to see if cups is installed.
for me on slackware the start script is located in /etc/rc.d and it is called rc.cups. i just have to make that executable like chmod 755 rc.cups and then it loads on bootup.
if you don't have cups installed then you need to either find a package for your distro or install from source.

PadreFabuloso 06-14-2005 09:36 PM

I see in Kynaptic that CUPSYS is installed. I just don't know how to run it. (If I type cupsys into kconsole, it says "command not found").

Finlay 06-15-2005 12:15 AM

if you type in

ps -A
it will give a list of running processes, look for cupsd


All times are GMT -5. The time now is 03:54 PM.