Cloudprint Guide

Guides written by the community, for the community, and only guides!

Cloudprint Guide

Postby Socaltom » Fri Jan 09, 2015 9:16 pm

plagerized heavily from
http://blog.qnology.com/2013/03/tutoria ... linux.html
# Download git

Code: Select all
pacman -Sy git


#download cloudprint
Code: Select all
mkdir /opt
cd /opt
git clone git://github.com/armooo/cloudprint


#build and install cloudprint
Code: Select all
cd /opt/cloudprint
python setup.py build
python setup.py install



#Run once to create auth files
Code: Select all
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
Code: Select all
 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

Code: Select all
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


Code: Select all
cd python2-daemon
makepkg


Code: Select all
pacman -U python2-daemon-1.6.1-1-any.pkg.tar.xz


#setup cloudprint to run on startup via systemd service
Code: Select all
cd /etc/systemd/system


Code: Select all
nano cloudprint.service

Paste the info below into the file.

Code: Select all
[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


Code: Select all
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).
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Cloudprint Guide

Postby WarheadsSE » Sat Jan 10, 2015 7:40 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6729
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cloudprint Guide

Postby Socaltom » Sun Jan 11, 2015 4:24 pm

I tried to use the cloud-print-daemon. It's out of date and I couldn't get it to work.
Tom
Owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
Adminstrator for
Goflex net, Black V3, Black V2
Socaltom
 
Posts: 567
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Cloudprint Guide

Postby WarheadsSE » Sun Jan 11, 2015 4:26 pm

Yeah, I have to go back and look at which I am using at the moment on my desktop. I have previously used the exact method you posted on a Pogo V3
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6729
Joined: Mon Oct 18, 2010 2:12 pm


Return to Community Guides

Who is online

Users browsing this forum: No registered users and 1 guest