You have 2 choices here. Connecting the printer to the linux machine or the windows machine. I would go with linux, but I'm biased.
In any case,
IF you choose to go with putting the printer on the linux machine, you'll need to do the following:
1. Physically install the printer to the linux machine
2. Install CUPS
3.
Install foomatic (note dependancies)
4. Get PPD file from linuxprinting.org
5. Install Samba
Before installing samba, make sure you can print locally.
[code:1]# touch test.txt
# echo "Hello World" > test.txt
# cat test.txt > /dev/usb/lp0
Alternatively, for parallel port printers:
# cat test.txt > /dev/lp0 [/code:1]
CUPS does 2 things. I manages your printers and acts as a server to CUPS clients (other linux machines). To allow Windows machines to access it, you need Samba. The following section is sufficient for sharing your printer:[code:1][printers]
comment = All Printer
path = /var/spool/samba
browseable = yes[/code:1]