Lucky.
June 19th, 2009, 04:39 PM
I don't know whether to laugh or cry, but here's what happened:
1. I installed CUPS on my server, and set it up with SAMBA to share my printer to Windows clients. It works beautifully.
2. Ironically I can get Windows clients to connect, but I can't get my Ubuntu 9.04 desktop client to connect.
For giggles, here's how I set up the CUPS server:
1. Installed CUPS:
sudo apt-get install cupsys
2. Installed foo2zjs pack, which supports my LaserJet 1020.
sudo apt-get install foo2zjs
3. Traveled to the following directory:
/usr/share/ppd/foo2zjs
4. Unzipped the ppd file like so:
gunzip HP-LaserJet_1020.ppd.gz
This left me with a file in the following location:
/usr/share/ppd/foo2zjs/HP-LaserJet_1020.ppd
5. Typed the following:
lpinfo -v
This gave me a list of printing devices. One of them was my usb laserjet printer. I wrote the following down:
direct usb://HP/LaserJet%201020
3. I added the printer with the following:
lpadmin -p myprintername -v usb://HP/LaserJet%201020 -P /usr/share/ppd/foo2zjs/HP-LaserJet_1020.ppd -u allow:all
4. I enabled the printer:
cupsenable myprintername
5. I began accepting jobs:
accept myprintername
6. To verify that the printer was installed, I typed the following:
lpstat -s
This listed the printers installed.
7. I edited the following file:
/etc/samba/smb.conf
And added the following:
[printers]
path=/var/spool/samba
guest ok = yes
printable = yes
8. I restarted Samba:
/etc/init.d/samba restart
Again, works great with Windows clients...no worky for my Jaunty desktop client. Any ideas? Is Samba the wrong way to go here?
1. I installed CUPS on my server, and set it up with SAMBA to share my printer to Windows clients. It works beautifully.
2. Ironically I can get Windows clients to connect, but I can't get my Ubuntu 9.04 desktop client to connect.
For giggles, here's how I set up the CUPS server:
1. Installed CUPS:
sudo apt-get install cupsys
2. Installed foo2zjs pack, which supports my LaserJet 1020.
sudo apt-get install foo2zjs
3. Traveled to the following directory:
/usr/share/ppd/foo2zjs
4. Unzipped the ppd file like so:
gunzip HP-LaserJet_1020.ppd.gz
This left me with a file in the following location:
/usr/share/ppd/foo2zjs/HP-LaserJet_1020.ppd
5. Typed the following:
lpinfo -v
This gave me a list of printing devices. One of them was my usb laserjet printer. I wrote the following down:
direct usb://HP/LaserJet%201020
3. I added the printer with the following:
lpadmin -p myprintername -v usb://HP/LaserJet%201020 -P /usr/share/ppd/foo2zjs/HP-LaserJet_1020.ppd -u allow:all
4. I enabled the printer:
cupsenable myprintername
5. I began accepting jobs:
accept myprintername
6. To verify that the printer was installed, I typed the following:
lpstat -s
This listed the printers installed.
7. I edited the following file:
/etc/samba/smb.conf
And added the following:
[printers]
path=/var/spool/samba
guest ok = yes
printable = yes
8. I restarted Samba:
/etc/init.d/samba restart
Again, works great with Windows clients...no worky for my Jaunty desktop client. Any ideas? Is Samba the wrong way to go here?