2 mkdir -p /var/spool/ffgtk
3 chmod 0777 /var/spool/ffgtk
4 cp /usr/share/ffgtk/ffgtk-cups /usr/lib/cups/backend/
5 chown root:root /usr/lib/cups/backend/ffgtk-cups
6 chmod 0755 /usr/lib/cups/backend/ffgtk-cups
7 lpadmin -p Fax-Printer -E -v ffgtk-cups:/ -m drv:///sample.drv/generic.ppd
8 echo "#####################################################"
9 echo "# Please note: A new printer Fax-Printer was added! #"
10 echo "# You can delete the old fax printer if it works. #"
11 echo "#####################################################"
15 mkdir -p /var/spool/ffgtk
16 chmod 0777 /var/spool/ffgtk
17 cp /usr/share/ffgtk/ffgtk-cups /usr/lib/cups/backend/
18 chown root:root /usr/lib/cups/backend/ffgtk-cups
19 chmod 0755 /usr/lib/cups/backend/ffgtk-cups
20 lpadmin -p Fax-Printer -E -v ffgtk-cups:/ -m drv:///sample.drv/generic.ppd
21 echo "#####################################################"
22 echo "# Please note: A new printer Fax-Printer was added! #"
23 echo "# You can delete the old fax printer if it works. #"
24 echo "#####################################################"
28 lpadmin -x Fax-Printer
29 rm /usr/lib/cups/backend/ffgtk-cups