To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Tue, 09-Feb-2010 19:06:31 GMT
         internet.com

Go Back   JustLinux Forums > Community Help: Check the Help Files, then come here to ask! > Networking

Networking DNS, Samba, IP masquerading, etc. related questions.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-15-2003, 03:25 PM
tomalak tomalak is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Angry SAMBA Printing from microsoft

I am reletively new to linux. Just set up a server with drake 9.1 set up samba and all (windows)pc's on the network can access files no prob. I have one printer on the linux machine and want the other computers on the network to print to it. I can see the printer when I brouse the network but cant print. The printer software shows it printing 100% but nothing happens at the printer. It seems like I am close but it's been two week and I still cant print from any machine exept the linux. Does any one have any advice that may help me. Also I have a problem with a password if I try to accsess port 631(localhost:631) it asks for a user name and password none of the user names or passwords from root to security admin to users work. where can I set this password? I can open cups.cfg but I dont see anything about passwords. HELP
Reply With Quote
  #2  
Old 12-15-2003, 03:36 PM
Hayl's Avatar
Hayl Hayl is offline
 
Join Date: Oct 2000
Location: Calgary, Alberta, Canada
Posts: 8,141
windows XP (and 2000 I think) can natively print to a cups box, there is an option in the printer set-up wizard on XP/2000 to enter a URL for a printer.

the URL the Windows XP Box here (as an example) uses is:

http://homesrvlinux01.home.bluffs.ab.ca:631/printers/lp

you also (most likely) need to change the CUPS daemon configuration to allow remote connections because by default most distros set up cups to only allow local printing:

/etc/cups/cupsd.conf:
Code:
<Location />
Order Deny,Allow
Allow From 127.0.0.1
Allow From 192.168.1.1
Allow From 192.168.1.2
</Location>
above example allows 192.168.1.1 and 192.168.1.2 as well as the local machine access to cups. you can also specify ip ranges and i believe host names if you have that turned on. check out the man page for details.

ps: the cupsd.conf file also has a setting for a group that is allowed to admin it. if your user you want to admin it with is in the group, then it will work
Code:
# 
# SystemGroup: the group name for "System" (printer administration)
# access.  The default varies depending on the operating system, but
# will be "sys", "system", or "root" (checked for in that order.)
# 

SystemGroup lpadmin
PPS: you have to restart the cups daemon after making any changes.
Reply With Quote
  #3  
Old 12-15-2003, 09:49 PM
homey homey is offline
Registered User
 
Join Date: Feb 2003
Posts: 782
I edit the following files to enable Windows printing to my Linux printer.

Remove the hash mark ( # ) to enable that feature.

/etc/cups/mime.convs
application/octet-stream application/vnd.cups-raw 0 -

Also uncomment the following line from this file....

/etc/cups/mime.types:
application/octet-stream

Don't forget to restart cups with the command: service cups restart
Reply With Quote
  #4  
Old 12-18-2003, 08:50 PM
tomalak tomalak is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Thumbs up

Thanx I can print from xp but still can't print from win98 se . is it possible to print to an http aderss from win98 If so where do I input the address
Reply With Quote
  #5  
Old 12-19-2003, 10:31 AM
DMR's Avatar
DMR DMR is offline
Roving Moderator
 
Join Date: Nov 2000
Location: /dev/3.14Pie/HowRandom
Posts: 6,708
When you fire up the "Add New Printer" wizard in 98 and tell it to search "Entire Network" for network printers, does it see the Samba printer at all?
__________________
Hey Steve-

My Wombat is better than your Wombat. So there!
Reply With Quote
  #6  
Old 12-19-2003, 01:43 PM
tomalak tomalak is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Question

No it does not see it any more It did but I am not sure what happened. It does see my shared folders and the pdf but not the printer. It was on mdkgroup/localhost/printers/xerox. the url xp prints to is http://192.168.0.2:631/printers/xerox . the printer is on dev/usb/__ it is attached to a usb port.
Reply With Quote
  #7  
Old 12-19-2003, 04:07 PM
cowanrl cowanrl is offline
Registered User
 
Join Date: Mar 2002
Location: Pennsylvania, USA
Posts: 1,713
I don't beleive Windows 98 supports IPP printing(printing to a URL) like Win2k and XP do. You'll need to use the printer shared out by Samba to access it from Win98.
When you print to http://192.168.0.2:631/printers/xerox, you are not printing to a Samba share. You are printing directly to CUPS.

If you were seeing your printer as mdkgroup/localhost/printers/xerox before, then your Samba server does not have a valid NetBIOS name. In the above designation, localhost is the name of the Samba server. That is not a valid name for your Samba server so it can be accessed over the network.

You need to give your Samba server a valid NetBIOS name. You can do this by adding a line like this to the [global] section your /etc/samba/smb.conf file:

netbios name = servername

Substitute whatever name you prefer for servername above. The most important restrictions to the name are that it must be less that 15 characters, can't contain a space or the characters / or \. If you are using some kind of GUI tool to configrue Samba, then look for a place to enter a server name or NetBIOS name.

Once you assign the name, you'll need to restart Samba for it to take affect. Try to access the printer again from Win98 and let us know the results.
__________________
If God hadn't meant for us to use GUI tools, there wouldn't have been a Xerox PARC.
Reply With Quote
  #8  
Old 12-19-2003, 06:19 PM
tomalak tomalak is offline
Registered User
 
Join Date: Dec 2003
Posts: 4
Smile

That was it I'm golden now. Thanks alot now I can go on to bigger and better things.
Reply With Quote
  #9  
Old 12-19-2003, 09:02 PM
klackenfus's Avatar
klackenfus klackenfus is offline
Linux and Cigar Lover
 
Join Date: Jun 2003
Location: People's Republic of North America (Former United States)
Posts: 812
XP Doesn't Work For Me

I tried all the steps in this post and Windows XP is still failing to find my HP Laserjet 5P. I can ping the box just fine and even bring up the CUPS Admin Tool in IE but no luck with Windows seeing the printer. I followed the XP/2000 steps in this string to the letter. Anyone have any ideas what I could be screwing up?
__________________
I equivocate, therefore I might be.

My Linux/Unix Boxes:
Home: Slackware 10, CentOS 5.3, RHEL 5, Ubuntu Workstation 9.10, Work: RHEL 5, CentOS 5
Reply With Quote
  #10  
Old 12-19-2003, 09:03 PM
cowanrl cowanrl is offline
Registered User
 
Join Date: Mar 2002
Location: Pennsylvania, USA
Posts: 1,713
You're welcome. Glad it's working now.
__________________
If God hadn't meant for us to use GUI tools, there wouldn't have been a Xerox PARC.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:06 PM.

Help File Library
Command Reference
Webservers
Software
Security
Filesystems
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.