plagerized heavily from
http://blog.qnology.com/2013/03/tutoria ... linux.html
# Download git
$this->bbcode_second_pass_code('', 'pacman -Sy git')
#download cloudprint
$this->bbcode_second_pass_code('', 'mkdir /opt
cd /opt
git clone git://github.com/armooo/cloudprint')
#build and install cloudprint
$this->bbcode_second_pass_code('', 'cd /opt/cloudprint
python setup.py build
python setup.py install')
#Run once to create auth files
$this->bbcode_second_pass_code('', 'cloudprint')
#enter your google account email and password
#Google username:
#Password:
#Test print from your Chrome web browser
#Control+C to close cloudprint
#To run as daemon
$this->bbcode_second_pass_code('', ' cd /opt
wget https://aur.archlinux.org/packages/py/python2-daemon/python2-daemon.tar.gz
tar -xzvf python2-daemon.tar.gz')
#Not sure why, but python2-daemon complains about these
#two files so we're renaming them
$this->bbcode_second_pass_code('', 'mv /usr/bin/easy_install-2.7 /usr/bin/easy_install-2.7.bak
mv /usr/lib/python2.7/site-packages/setuptools.pth /usr/lib/python2.7/site-packages/setuptools.pth.bak')
$this->bbcode_second_pass_code('', 'cd python2-daemon
makepkg')
$this->bbcode_second_pass_code('', 'pacman -U python2-daemon-1.6.1-1-any.pkg.tar.xz')
#setup cloudprint to run on startup via systemd service
$this->bbcode_second_pass_code('', 'cd /etc/systemd/system')
$this->bbcode_second_pass_code('', 'nano cloudprint.service')
Paste the info below into the file.
$this->bbcode_second_pass_code('', '[Unit]
Description=Startup Google CloudPrint
Requires=org.cups.cupsd.service
After=org.cups.cupsd.service network.target
[Service]
Type=oneshot
PIDFile=/var/run/cloudprint.pid
ExecStart=/usr/bin/cloudprint -d -p /var/run/cloudprint.pid
ExecStop=/bin/kill -TERM $MAINPID
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target')
For some reason the service says "starting" and keeps the screen open when starting. If anyone has advice for fixing please speak up.
Save and exit nano
$this->bbcode_second_pass_code('', 'systemctl enable cloudprint.service')
#Reboot and test CloudPrint
#Clear google credentials/auth files
#rm /root/.cloudprintauth
#rm /root/.cloudprintsaslauth
Cloudprint is very fragile. If you're having start-up or printing issues try the following steps.
- Clear your Google CloudPrint Print Queue - https://www.google.com/cloudprint/#jobs
- Delete your stored credential and reboot and start over.
One more thing regarding CloudPrint, my recommendation is to set up a new Google Account dedicated just for CloudPrint. Use this account for the above cloudprint login, and then share your printer(s) with your main account. I'm a little paranoid of having my email authentication stored on my router (even though its hashed or whatever).