User Tools

Site Tools


chromebooks:cloudprint_cups_new

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
chromebooks:cloudprint_cups_new [2016/09/13 10:00]
tschulz
chromebooks:cloudprint_cups_new [2016/09/13 10:23]
tschulz [Link to Google Account]
Line 4: Line 4:
 ==== Setup Go ==== ==== Setup Go ====
 === Download and Install === === Download and Install ===
-<​file>​+<​file ​bash>
 sudo curl -O https://​storage.googleapis.com/​golang/​go1.6.linux-amd64.tar.gz sudo curl -O https://​storage.googleapis.com/​golang/​go1.6.linux-amd64.tar.gz
 sudo tar -xvf go1.6.linux-amd64.tar.gz sudo tar -xvf go1.6.linux-amd64.tar.gz
Line 18: Line 18:
 </​file>​ </​file>​
 === Test Go === === Test Go ===
 +<file bash>
 +go version
 +</​file>​
 <​file>​ <​file>​
-#go version +go1.6 linux/amd64 
-go version ​go1.6 linux/amd64+</​file>​ 
 +==== Install other dependencies ==== 
 +<​file>​ 
 +sudo apt-get install build-essential libcups2-dev libavahi-client-dev git bzr
 </​file>​ </​file>​
  
 +==== Build Cloud Print Connector ====
 +<​file>​
 +go get github.com/​google/​cloud-print-connector/​...
 +</​file>​
 +  * At this point **gcp-connector-util** and **gcp-cups-connector** should be in **$HOME/​go/​bin/​**
 +==== Install CPC connector to /usr/local ====
 +<file bash>
 +mkdir -p /​usr/​local/​cpc/​bin
 +mkdir /​usr/​local/​cpc/​etc
 +cd $HOME/​go/​bin/​
 +cp gcp* /​usr/​local/​cpc/​bin
 +</​file>​
 +=== Update Path ===
 +<file bash $HOME/​.profile>​
 +...
 +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>​
chromebooks/cloudprint_cups_new.txt · Last modified: 2016/09/13 10:26 by tschulz