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

$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).
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
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: 6807
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
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
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: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Community Guides

Who is online

Users browsing this forum: No registered users and 6 guests