blob: d25b56ce7843a64138f3224cdbd9f64adf0e7a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
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
>>>
>>> Ensure that the printer device is connected and switched on.
>>>
>>> With captdriver and the CUPS command-line programs already
>>> installed, run the following command
>>> to identify the printer's URI:
>>> lpinfo -v
>>> Example output of "lpinfo -v" :
>>> file cups-brf:/
>>> network beh
>>> network lpd
>>> network https
>>> network ipps
>>> file cups-pdf:/
>>> network ipp
>>> network http
>>> network socket
>>> direct usb://Canon/LBP2900?serial=0000C3J0LGaQ
>>> network smb
>>>
>>> 3) Run this command to add the printer to CUPS:
>>> /usr/bin/lpadmin -p <name> -m <corresponding ppd> -v <device path in lpinfo -v> -E
>>> eg.
>>> /usr/bin/lpadmin -p 'LBP2900' -m CanonLBP-2900-3000.ppd -v 'usb://Canon/LBP2900?serial=0000C3J0LGaQ' -E
>>> (you can find ppds in the /usr/share/cups/model/ directory)
>>> 4) Optionally, you can set the newly-installed printer as default with this command:
>>> lpadmin -d 'LBP3000'
>>>
>>> For more details check out the project wiki: https://github.com/mounaiban/captdriver/wiki
>>> and the project official install guide:
>>> https://github.com/mounaiban/captdriver/wiki/Building-and-Installing-captdriver%3A-A-Unified-Guide
>>>
EOF
}
op=$1
shift
$op $*
|