Tuesday, February 01, 2005

Sharing a LAN USB printer across WinXP & Linux

My scenario is that I wanted to share a USB printer with 3 Pcs (2 x Linux and 1 x Windows).

The USB printer is a Lexmark X125 (not the best on the market) and is designed for Windows. I managed to locate and install the equivalent driver for the Linux machines.

Due to having 2 drivers in use, I control which one to use via a Belkin switch. The Windows side was pretty straightforward and didn't involve any configuration.

With Linux I did the following:

1) On the machine with the USB connection (i.e. the one with the printer attached via the switch) I simply set the Printer Configuration as being 'local' to the machine.
By the way, in the first instance I needed to issue the command:-
mknod /dev/usb/lp0 c 180 0 (more info at http://www.linux-usb.org/USB-guide)

2) On the second linux machine, I edited the .profile to include:-
PRINTER=lexmark@192.168.0.3 (as in my case). This saves having to issue the IP address each time, and allows printing from Mozilla too.

That's it! No formal printer configuration needed on the second linux machine. Please feel free to add any comments. Is there a better way?

I have now achieved the basic set-up for my LAN. My next task is to do some exciting work on my Linux servers, such as configuring Tomcat and Oracle servers.

0 Comments:

Post a Comment

<< Home