LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2007, 10:57 AM   #1
haraldsf
LQ Newbie
 
Registered: May 2007
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 11

Rep: Reputation: 0
Sharing a printer on Ubuntu 7.10 with Windows-computers


I know there are many posts here already related to this, but I'm a n00b and couldn't get much out of them.

I recently switched from XP to Ubuntu 7.10 on my computer, and I would like to share a USB-printer (HP Photosmart 7760). Three other computers will be using the printer, two XP and one Vista.

The printer works fine locally, but I have no idea how to share it.

Your help and patience is much appreciated.
 
Old 11-11-2007, 06:36 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
From you rpost it is not clear on which system you have the printer installed. It will work on a linux system. Here is the link that describes the driver you need.

http://openprinting.org/show_printer...hotoSmart_7660

The process in linux is different to share, depending if the linux system is the print server ( printer attached to linux ) or print client, ( printer attached to windoze system ).

If your printer is attached to Ubuntu, do you have cups installed ? If not, then install cups, and make sure you can print locally.

If you added the printer through some of the features in Ubuntu, you may still have cups installed. To find out, open a web browser, and in the location bar type http://localhost:631 If cups is installed, you will connect to the web interface for managing your printers. It should show your printer on the printer tab.

Once your printer works to your system with cups, you can share it to the network.

The rest of the work gets done from your clients. On each system go through adding a printer, this time it will be a network printer. You need the name of the printer, that is in the cups configuration, you name it when you install it in cups. You may also need the device URI. This is explained in the Cups documents and is different for different printers. You can find that information in the cups Help/Documents page. Look for Device URI. I can't tell you exactly what you need there, since I don't have your printer.

Hope this helps.
 
Old 11-11-2007, 09:21 AM   #3
haraldsf
LQ Newbie
 
Registered: May 2007
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
The printer is connected to the computer running Ubuntu. When I installed Ubuntu, the printer was added automatically. When I first tried to share it, I opened "Printing" under the System/Administration tab, and checked the "Shared"-box. And CUPS says the printer is published, so that's good.

But I'm having trouble adding the printer on the Windows-clients. If I search for printers, no printers are found, although the name of the printer server comes up (but no printer seems to be connected to it).
If I type in the address directly (\\servername\printername) it asks me for a username and password, which I don't know. My Ubuntu username and password doesn't work.

Any suggestions?
 
Old 11-11-2007, 10:34 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Brain check, on my part. Sorry, I omitted to say you need Samba installed and configure on linux to share out the printer.

Samba is easy enough to install, but can be a problem to get configured. Once installed you will have a file called /etc/samba/smb.conf This is the main configuration file for samba. At this point you need to do some thinking about security in your network and how you want to control logging on, users etc. There is no simple answer here, but many things to consider.

If all you need is for any windoze user to be able to print, and have no security issues, then a simple set up will work. BTW don't blame linux for the many confusing options. You can thank Mr Bill for that mess.

There are some tutorials that can help here, or I can post a 'simple' file you could start with. I'm no expert at samba, but I can get it to work in most cases.

Get samba installed and we'll go from there.
 
Old 11-11-2007, 04:06 PM   #5
haraldsf
LQ Newbie
 
Registered: May 2007
Location: Oslo, Norway
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Samba is installed, as far as I can see.
 
  


Reply



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
Internet connection sharing between two Ubuntu computers tsunamikitsune Linux - Networking 5 05-04-2021 08:44 AM
Share printer between 2 Ubuntu Computers rmadd Linux - Networking 1 11-09-2007 03:51 AM
Problems sharing the printer on Linux via Samba to Windows computers melao SUSE / openSUSE 25 03-22-2005 09:37 AM
Sharing a printer for 30+ computers with Samba rjshirts Linux - Networking 1 01-05-2005 04:24 PM
File Sharing With Windows Computers John0 Linux - Newbie 2 05-25-2003 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:52 PM.

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
Open Source Consulting | Domain Registration