diff options
Diffstat (limited to 'capt-src.install')
-rw-r--r-- | capt-src.install | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/capt-src.install b/capt-src.install new file mode 100644 index 000000000000..499449b5a278 --- /dev/null +++ b/capt-src.install @@ -0,0 +1,49 @@ +post_install(){ + cat << EOF + >>> Installation: + >>> + >>> 1) Before doing anything, be sure to add your user to the lp group: + >>> eg. + >>> gpasswd -a your_user lp + >>> and then reboot, or relogin + >>> + >>> 2) Connect the printer to your computer, turn it on and start CUPS, or restart it if it was already running + >>> eg. + >>> systemctl restart cups.service + >>> + >>> 3) /usr/bin/lpadmin -p <name> -m <corresponding ppd> -v ccp://localhost:59687 -E + >>> eg. + >>> /usr/bin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp://localhost:59687 -E + >>> (you can find ppds in the /usr/share/cups/model/ directory) + >>> + >>> 4) + >>> a) For a locally connected printer (USB / Parallel port), check the name of + >>> the device, udev created for you. + >>> eg. /dev/usb/lp0 + >>> and run: /usr/bin/ccpdadmin -p <name> -o udev_device + >>> eg. + >>> /usr/bin/ccpdadmin -p LBP2900 -o /dev/usb/lp0 + >>> (it should show a table with the new printer) + >>> + >>> b) For a network printer: + >>> /usr/bin/ccpdadmin -p <Printer name> -o net:<IP address> + >>> eg. /usr/bin/ccpdadmin -p LBP2900 -o net:192.168.0.10 + >>> + >>> 5) systemctl start ccpd.service (using systemd) + >>> + >>> 6) Check you have two instances of ccpd in memory, then run captstatusui, check it's + >>> telling you it's ready to print and the printer should work. + >>> eg. ps awx | grep ccpd + >>> or using systemd: systemctl status ccpd.service + >>> For captstatusui: /usr/bin/captstatusui -P LBP2900 + >>> + >>> 7) Make sure cupsd and ccpd are running at boot + >>> eg. + >>> systemctl enable ccpd.service + >>> +EOF +} + +op=$1 +shift +$op $* |