Results 1 to 10 of 14

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

Threaded 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

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
  •