When you are prompted for a username and password use root as the username and the password for root which is xbox unless you’ve changed it.
First off we need install the required packages
Code: Select all
emerge sync && USE=”cups” emerge samba cups-pdf
Once this has finished we’ll add cups to the default run level so it starts automatically and start it now.
Code: Select all
rc-update add cupsd default
/etc/init.d/cupsd start
Click “Manage Printers”
Click “Add Printer”
Give the printer a name, I just use PDF you can also enter a description like “PDF creator”
Click continue
From the drop down box choose “Virtual Printer (PDF Printer)” as the Device
Click Continue
Select Raw as the Make and click Continue
Choose Raw Queue (en) as the Model and click continue
You should get a message saying printer PDF has been added successfully if you click the name PDF you will be taken to a page with some info about the printer.
Click “Print Test Page”
Check the contents of /var/spool/cups-pdf/root there should be a file called Test_Page.pdf if it is there your printer is setup and the cups part is done. Now we’ll set up Samba so we can print from PCs on the network.
Open a terminal and switch to the root user and open the samba configuration
Code: Select all
su –
nano /etc/samba/smb.conf
below the global section add the following code
Code: Select all
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writeable = no
printable = yes
printer admin = root
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = root
guest ok = yes
[pdf-output]
writeable = yes
path = /var/spool/cups-pdf
Code: Select all
/etc/init.d/samba restart
chmod 777 /var/lib/samba/printers/*
Click start then run in the box type \\xbox and press return
double click “Printers and Faxes”
Right Click PDF and choose properties
Click NO
Click Advanced
Click new driver
Click next
Choose HP as the manufacturer and “HP Color LaserJet 8500 PS” as the Printer then click Next
Click Finish
Click OK
That’s the printer drivers installed on the xbox, now just go to each of your windows PCs that you want to make PDF files from and click start then run in the box type \\xbox\PDF on XP machines you will have to say yes to a warning about printer drivers.
That’s it, when you print to the “PDF on xbox” printer the PDF file will be deposited in the “\\xbox\pdf-output” share on the xbox.