This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
chromebooks:cloudprint_cups_new [2016/09/13 10:11] tschulz [Update Path] |
chromebooks:cloudprint_cups_new [2016/09/13 10:26] (current) tschulz |
||
---|---|---|---|
Line 36: | Line 36: | ||
==== Install CPC connector to /usr/local ==== | ==== Install CPC connector to /usr/local ==== | ||
<file bash> | <file bash> | ||
- | mkdir /usr/local/cpc/bin | + | mkdir -p /usr/local/cpc/bin |
mkdir /usr/local/cpc/etc | mkdir /usr/local/cpc/etc | ||
cd $HOME/go/bin/ | cd $HOME/go/bin/ | ||
Line 46: | Line 46: | ||
PATH=$PATH:/usr/local/cpc/bin | PATH=$PATH:/usr/local/cpc/bin | ||
... | ... | ||
+ | </file> | ||
+ | |||
+ | ===== Link to Google Account ===== | ||
+ | <file bash> | ||
+ | cd /usr/local/cpc/etc | ||
+ | gcp-connector-util i | ||
+ | </file> | ||
+ | * At this point just follow the instructions and enter the google URL and device code when prompted. If everything goes through you should see **gcp-cups-connector.config.json** in **/usr/local/cpc/etc** | ||
+ | |||
+ | ===== Test Config ===== | ||
+ | <file bash> | ||
+ | /usr/local/cpc/bin/gcp-cups-connector --log-to-console --config-filename /usr/local/cpc/etc/gcp-cups-connector.config.json | ||
+ | </file> | ||
+ | * You should see something like this | ||
+ | <file> | ||
+ | I [13/Sep/2016:10:21:20 -0500] Using config file /usr/local/cpc/etc/gcp-cups-connector.config.json | ||
+ | I [13/Sep/2016:10:21:20 -0500] Google Cloud Print Connector for CUPS version DEV-linux | ||
+ | Google Cloud Print Connector for CUPS version DEV-linux | ||
+ | I [13/Sep/2016:10:21:20 -0500] Connecting to CUPS server at /var/run/cups/cups.sock:631 encrypting IF REQUESTED | ||
+ | I [13/Sep/2016:10:21:20 -0500] Connected to CUPS server successfully | ||
+ | I [13/Sep/2016:10:21:20 -0500] Local printing enabled (Avahi client is running). | ||
+ | I [13/Sep/2016:10:21:21 -0500] Synchronizing printers, stand by | ||
+ | </file> | ||
+ | |||
+ | ===== Enable Automatic Startup ===== | ||
+ | <file bash /etc/rc.local> | ||
+ | /usr/local/cpc/bin/gcp-cups-connector --config-filename /usr/local/cpc/etc/gcp-cups-connector.config.json & | ||
</file> | </file> |