Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Kitchener, Ontario CA
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Lightbulb HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    See znote's post below to get this to work with the latest version of python. I'll update the how to to reflect the changes later. Right now I just don't have time.

    This tutorial will allow you to print from anywhere to your home printer using your android device via Google Cloud Print for Linux.


    ***Notes***

    It is best to set this up on a home server or another computer that runs all the time, as the printer will only be "online" when your computer is running.
    You can use either a wired or wireless printer, or a network printer.

    I did not make this script, I just tested it out using instructions found from various other pages (see references below,) and this is how I did it.

    Credit goes to wasserkapf at the xdadevelopers forum for most of the instruction.


    ***Important***

    Before beginning ensure that the printer that you want to share is set up in Ubuntu and that you can actually print from it. If this is not the case this tutorial won't work.


    ***Set up your Ubuntu box to use Google Cloud Print***

    Use GIT to download the source. To use GIT, you first need it installed. You also need python and python-cups installed

    Code:
    sudo apt-get install git-core python python-cups
    Now use git to download the source code to your home folder

    Code:
    git clone git://github.com/armooo/cloudprint.git
    change permissions of the downloaded folder

    Code:
    chmod -R 777 ~/cloudprint
    Now change directory to the cloudprint folder

    Code:
    cd ~/cloudprint
    run the setup.py script

    Code:
    python setup.py build
    Now install Google Cloud Print for Linux

    Code:
    sudo python setup.py install
    This installed the script in this folder

    /usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py

    Run it and it will ask for your Gmail address and password

    Code:
    python /usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py
    It will also add your default printer.

    You can manage your printers at the following address.

    http://www.google.com/cloudprint/manage.html



    ***Set Up your Android Device***

    There are two programs that you can use to do this. I prefer "PrinterShare", but you can also use "Cloud Print". PrinterShare (free version) does not allow you to print directly to your networked printer without going through Google Cloud Print. I find the delay minimal and out-weigh the advertisements in the Cloud Print program.

    go to your market app and search for either "PrinterShare" or "Cloud Print" and install. Or you can use the links below.

    https://market.android.com/details?i...=search_result

    https://market.android.com/search?q=...nt&so=1&c=apps

    Both programs are easy to set up.

    To print use your "Share" button on your Android device and select "PrinterShare" or "Cloud Print"



    ***References***

    http://forum.xda-developers.com/show...ght=cloudprint
    http://blog.nguyenvq.com/2011/05/12/...rint-on-linux/
    http://www.linuxquestions.org/linux/...ud_print_linux
    https://github.com/armooo/cloudprint
    http://forum.xda-developers.com/showthread.php?t=991772
    Last edited by bferd; December 21st, 2011 at 05:52 PM. Reason: Added references and credits

  2. #2
    Join Date
    Jan 2010
    Beans
    93
    Distro
    Ubuntu

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    great job bro

  3. #3
    Join Date
    Mar 2007
    Beans
    112
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    Works great! Thanks!!
    Sandy Bridge i5-2500, Asus P8Z68-V Pro

  4. #4
    Join Date
    May 2011
    Location
    UK
    Beans
    7
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    Very nice indeed. Have been looking for a way to do this and even google's pages don't mention anything about Linux, only ******* and Mac. Good Job

  5. #5
    Join Date
    Apr 2009
    Location
    Oslo, Norway
    Beans
    2
    Distro
    Ubuntu Studio 9.04 Jaunty Jackalope

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    hi great script.
    I had to change this in ez_setup.py to get it workin
    ---
    import sys
    DEFAULT_VERSION = "0.6c11"
    DEFAULT_URL = "http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg"

    md5_data = {
    'setuptools-0.6c11-py2.7.egg':
    'fe1f997bc722265116870bc7919059ea'
    }

    ---

    and i had to change this line from the guide

    python /usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py

    to

    python /usr/local/lib/python2.7/dist-packages/cloudprint/cloudprint.py
    Last edited by znote; December 21st, 2011 at 11:02 AM.

  6. #6
    Join Date
    Dec 2007
    Location
    Kitchener, Ontario CA
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    At a boy. It actually broke a while ago and I've been so busy I haven’t had time to even think about looking into it.
    Last edited by bferd; December 21st, 2011 at 05:45 PM.

  7. #7
    Join Date
    Sep 2009
    Beans
    24

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    This worked for me too - following the Znotes updates. For some reason though I had to manually download the setuptools-0.6c11-py2.7.egg from http://pypi.python.org/packages/2.7/s/setuptools/

    So am I correct in assuming that I need to keep the cloudprint.py terminal window open to have this running?

    Any hints on how to make this start up every time I boot up my Ubuntu box ?

  8. #8
    Join Date
    Nov 2010
    Beans
    2

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    getting this error:
    Package git-core is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'git-core' has no installation candidate
    getting it on the first input in terminal.

  9. #9
    Join Date
    May 2007
    Beans
    9

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)

    Quote Originally Posted by ttguy View Post
    This worked for me too - following the Znotes updates. For some reason though I had to manually download the setuptools-0.6c11-py2.7.egg from http://pypi.python.org/packages/2.7/s/setuptools/

    So am I correct in assuming that I need to keep the cloudprint.py terminal window open to have this running?

    Any hints on how to make this start up every time I boot up my Ubuntu box ?
    I just added the following line to /etc/rc.local

    Code:
    /usr/bin/python /usr/local/lib/python2.6/dist-packages/cloudprint/cloudprint.py >> /var/log/cloudprint.log 2>&1 &

  10. #10
    Join Date
    Oct 2006
    Beans
    65

    Re: HOWTO: Use Google Cloud Print for Linux (print from Andriod device)


Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •