User Tools

Site Tools


chromebooks:cloudprint_cups

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
chromebooks:cloudprint_cups [2013/11/14 14:57]
tschulz [Startup Script]
chromebooks:cloudprint_cups [2013/11/14 15:09] (current)
tschulz [Startup Script]
Line 33: Line 33:
 </​file>​ </​file>​
  
 +<file bash /​scripts/​restart_cloudprint.sh>​
 +#!/bin/sh
  
 +restart()
 +{       ​killall -9 chrome
 +        sleep 2
 +        /​scripts/​cloud_print.sh
 +}
 +
 +restart
 +</​file>​
 +<file bash /​etc/​rc.local>​
 +TERM="​xterm-color"​
 +SHELL="/​bin/​bash"​
 +XDG_SESSION_COOKIE="​5e1b8a057502aa735ff8be1600000177-1382969815.874167-799647066"​
 +USER="​root"​
 +MAIL="/​var/​mail/​root"​
 +PATH="/​usr/​local/​sbin:/​usr/​local/​bin:/​usr/​sbin:/​usr/​bin:/​sbin:/​bin:/​usr/​games"​
 +PWD="/​root"​
 +LANG="​en_US.UTF-8"​
 +SHLVL="​1"​
 +HOME="/​root"​
 +LOGNAME="​root"​
 +LESSOPEN="​| /​usr/​bin/​lesspipe %s"
 +LESSCLOSE="/​usr/​bin/​lesspipe %s %s"
 +_="/​usr/​bin/​env"​
 +
 +ssh root@localhost "/​scripts/​restart_cloudprint.sh"​
 +
 +exit 0
 +</​file>​
 +  * Lastly configure **key based ssh authentication**.
 +==== Notes ====
 +Using ssh was the only way I could get cloudprint to work on startup. ​ I also found that after a few hours cloud print would stop working. ​ I found if I restart chrome every hour the problem went away.  You might want to have cron run **ssh root@localhost "/​scripts/​restart_cloudprint.sh"​** every hour.
chromebooks/cloudprint_cups.1384462675.txt.gz · Last modified: 2013/11/14 14:57 by tschulz