so gfax 0.7.7 (in 10.04) can finally be printed to directly from any application... but it isn't setup automatically for some reason (maybe I should report a bug?)
If you install from source there's a "postinstall.sh" script that you're supposed to run but this doesn't seem to happen when you install through the repos. This script creates a spool dir for gfax and adds the printer to cups so without it gfax won't even start (since it can't find the spool dir) and explains why cups printing doesn't work
Anyhow here's how to make the changes manually:
Code:
sudo mkdir -m 777 /var/spool/gfax
sudo cp -f /usr/lib/gfax/cups-gfax /usr/lib/cups/backend/
sudo chmod 755 /usr/lib/cups/backend/cups-gfax
sudo ln -sf /usr/lib/cups/backend/cups-gfax /usr/lib/cups/backend-available/cups-gfax
sudo lpadmin -p Gfax_Facsimile_Printer -v cups-gfax:/ -m lsb/usr/cups-included/postscript.ppd -E
You also need to make sure gfax is running before you try to print to it! I suggest creating an entry in System->Preferences->Startup Applications with the command "gfax" and making sure you don't accidentally close it.
NB I also had to restart before it would work, even though I restarted cups (well I think I did anyway )
Here's the original script:
Code:
#!/bin/bash
if [ ! -d /var/spool/gfax ]; then
mkdir -m 777 /var/spool/gfax
chown root:root /var/spool/gfax
fi
cp -f /usr/lib/gfax/cups-gfax /usr/lib/cups/backend/
chmod 755 /usr/lib/cups/backend/cups-gfax
ln -sf /usr/lib/cups/backend/cups-gfax /usr/lib/cups/backend-available/cups-gfax
lpadmin -p Gfax_Facsimile_Printer -v cups-gfax:/ -m lsb/usr/cups-included/postscript.ppd -E
gconf-schemas --register /etc/gconf/schemas/gfax.schemas
I suppose you could just remove that last line about gconf and sudo that script anyway.
Bookmarks