Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Sharing Printer With Linux, Printer connected to Windows machine
Termina
post Mar 1 2004, 12:22 PM
Post #1


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



I have a home network with 5 computers, 3 windows and 2 linux.

I have a printer (Epson Stylus C62) connected to one of my windows machines, and would like to share it with my linux machines. All my computers chare a connection through a router (Linksys).

I've read up a little on Samba, but from what I've seen so far, I'd need to have the printer connected to the linux machine (Don't really want to do this, since I don't know where to find drivers for this printer, nor do I want to spend time tracking down endless dependancies) Then again, perhaps I'm just scared away from doing this because of a rather bad experience with RedHat.

My 2 linux computers use Debian


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
Robert83
post Mar 1 2004, 12:31 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



HI,

you'll need samba-client
apt-get install samba-client [no worry about dependencies, it will donwload em if needed]
yum install samba-client
chose the one you like more ...

trough X11 as mentioned bellow is easy to setup , tried myself
just open up the print manager [I used GNOME], and select NETWORK PRINTER SAMBA [Windows]
and fill in the details...

Sincerely
Robert B

ps.: it's not soooo hard to install a samba print server smile.gif, and using apt-get or yum, you really got nothing to worry about dependencies anymore , which I also hate SOOO much

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
From a website
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Read Introduction to Linux samba in this guide first.
The fastest way to set up printer sharing is to use XWindows. Start XWindows as root :
[root@ppa /root]# startx
From Control Panel, select Printer Configuration.
You may get some error messages when you start Printer Configuration.
If the message "Error, Samba does not appear to be installed", you have to install Samba (from the CD), see Adding more software from the CD.
In the RHS Linux Print System Manager window, select Add.
In the Add a Printer Entry, select Lan Manager Printer (SMB), and a warning about passwords will pop up; click OK.
Fill out Edit Lan Manager Printer (SMB) Entry :

Names (name1|name2|...) STPR
Spool directory /var/spool/lpd/lp
File Limit in Kb (0 = no limit) 0
Hostname of Printer Server ppb
IP number of Server (optional) 192.168.0.2
Printer Name STARPRINTER
User PP
Password
Input Filter

In the Configure Filter dialog, select HP LaserJet, change paper type to a4, mark "Send EOF after job to eject page?" and leave other fields at their defaults.
Back in the RHS Linux Print System Manager window, highlight the new printer entry (STPR) and select Tests - Print ASCII test page. If everything works, a test page will be printed. Also try the Postscript test page.
Next step is trying to print from a text console. Find a (not too large) text file to test with - in this case the "Hello" script created in Shell-scripts.
[root@ppa /root]# usr/bin/lpr -PSTPR /home/pp/bin/hello
should print the file /home/pp/bin/hello on the printer STPR that we just set up. If you omit the -PSTPR, the file will be printed to the default printer instead. To see what the default printer is, see the value of the environment variable PRINTER :
[root@ppa /root]# echo $PRINTER
Currently no printer is defined as default, as the output is an empty string, so set the value of PRINTER :
[root@ppa /root]# PRINTER='STPR'
[root@ppa /root]# export PRINTER
To print out hello you now type :
[root@ppa /root]# lpr /home/pp/bin/hello
And check if you can print from your normal login (if you ran root as su, you can not log out in your normal account; you have to start a new login shell in order inherit the PRINTER variable) :
[pp@ppa pp]$ lpr bin/hello
The current settings of PRINTER will be lost after next reboot unless you add them to /etc/profile. You have to add the line (or modify PRINTER if it is already there) :
PRINTER='STPR'
and you have to add PRINTER to the export list.
After reboot, I had the error message :
lpr: connect: No such file or directory
jobs queued, but cannot start daemon.
I do not know the reason for this, and I have only seen it this one time.
My current printer capabilities file (/etc/printcap) looks like (excluding most comments) :

##PRINTTOOL3## SMB laserjet 300x300 a4 {} Laserjet Default {}
STPR:
:sd=/var/spool/lpd/lp:
:mx#0:
:sh:
:if=/var/spool/lpd/lp/filter:
:af=/var/spool/lpd/lp/acct:
:lp=/dev/null:


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 1 2004, 03:13 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



http://www.tldp.org/HOWTO/Debian-and-Windo...to_windows.html


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th December 2017 - 11:40 AM