@Shannara : Sorry mate, missed the question. KarLKoX has the right idea adding it to the "/etc/rc.d/rc.local" file. You can not use "/etc/fstab" since Samba is not loaded until later in the boot sequence (not that you did that, just FYI).
@KarLKoX : S w e e t !
@Straker : I'm not sure QEMU supports LPT based printing. However, I was able to print using Cups and Samba. I will list the steps below:
- Log in as root to load all the required applications and configure them (root password is 'pbroot')
Code: Select all
# su root
# apt-get update
# apt-get install cupsys cupsys-client foomatic-bin gs-esp a2ps smbclient
# ln -s `which smbspool` /usr/lib/cups/backend/smb
# /etc/init.d/cupsys restart
- Open FireFox and go to:
http://localhost:631/printers/
- Click "Add Printer" and give the new printer a name (any name works here)
- Scroll to the botton of choices for "Device:" type and select "Windows Printer via SAMBA"
- Add the device URI for your windows printer. The URI must contain a valid user name, password, and a shared printer which is on the Windows host. I created a user called 'WinLin' and made the password 'linux'. Here is an example URI:
smb://WinLin:linux@192.168.1.10/hp
- Next you will need to select a printer driver. There are not many to choose from, I have a HP LaserJet so mine was easy.
If all goes well, you should now be able to print.