Thursday, September 6, 2012

Google Cloud Printing Difficulties Setting Up on Ubuntu

Google Cloud Printing Offers a Lot - Hard to Setup on Ubuntu

Google Cloud Printing will pave the way to a driverless future for mobile devices on the web but, setup  on my Ubuntu 11.10 Intel was not effortless.  In fact, I nearly gave up after a day and a half of struggling through blogs where many others encountered the same problem I was experiencing.  

The fruits of persistence being what they are, I think I'll have the opportunity to check out this driverless future for my iPod and iPad this month.  If you are having problems getting Google Cloud Printing to work on your Ubuntu setup, skip on down to the Problem section below to read through the problem I encountered and how I solved it.  

Whether it will be a workhorse for me and my family remains to be seen.  But, any time-saving technology promising to allow my wireless or ethernet machines, hand-helds or laptops to print to my network printer without installing any additional print driver software is worth a little investigation.

Background.  
I've long awaited the day when Apple would roll out wireless print capabilities for my iPod and iPad.  I figured they would simply roll them into OS X's already robust network printer capabilities and make access to them via the iOS through some nice, tidy background app on my iPod.  Afterall,  all my Macs are wirelessly networked these days.  It doesn't take a rocket scientist to realize that, just like formatted files sent through our wireless network from our laptops to the print server across the room, these same sort of formatted files can be sent from the iPhone, iPod and the iPad, too.

Well, I guess I'm not a rocket scientist.  Nope.  When Apple finally addressed the issue they felt the need to develop a brand new technology called AirPrint.  Of course, you needed to buy a brand new wireless AirPrint-Enabled printer in order to use it.  They consider it a feature of the iPhone.  Oh, come on...  Unbelievable.  The problem is, I'm not stupid.  This would be easy for Apple to do.  They just didn't want to do it.  This solution smacked more of money-grubbing commerce in reverse rather than the steady introduction of technology and features designed to make my life simpler, better.  Apple has become what they set out to destroy, not so long ago, or - at the very least - is having a difficult time today trying to do what it has always done so effortlessly in the past..

Anyway...  I want to print from my mobile device - easily.  I want to just click print from eMail on my iPod and print out the form my kids school form the need so badly.  And, I really don't want to deal with a lot of layers of this and that in between.  Google Cloud Printing offers just such a solution.  Installing it didn't go so smoothly, though.

Problem.
When attempting to setup Google Cloud Print from the Chrome Browser from the Wrench Icon --> Settings --> Show Advanced Settings --> Google Cloud Print and after successfully registering your local printer with the Google Cloud Print service from these directions here, your local printer (any printer available to your local machine via a wired or wireless connection) does not appear in the Google Cloud Print list of available printers.  

Instead, the user is met with the choice to either setup a Classic Printer or setup a Cloud-Ready Printer.  When clicking on Setup a Classic Printer, the link takes the user here.  When clicking on Setup a Cloud-Ready Printer, the link takes users here.  When the user clicks on Setup a Classic Printer link and delivers the user to the Connect Your Classic Printer to Google Print webpage, the webpage only provides the setup instructions which the user has already followed in attempting to install their printer on the Google Cloud Print service.  Clicking on the Print a Test Page link at the bottom of the page only brings the user back to the Google Cloud Print webpage offering the two choices of Setup a Classic Printer and Setup a Cloud-Ready Printer.  In this discussion, it is referred to as the Endless Loop.

GooBuntoo Solution.
For Ubuntu users (and, perhaps, other Linux users) attempting to install their local printers on the Google Cloud Print service, there is solution to this problem.

This solution worked for the following setup:

Ubuntu 11.10 on Intel PC running:


Google Chrome21.0.1180.89 (Official Build 154005)
OSLinux
WebKit537.1 (@126646)
JavaScriptV8 3.11.10.20
Flash11.3.31.232



At this point, we are assuming you have unsuccessfully attempted to get Google Cloud Printing to work and you have already gone through this process, receiving a message from Google that your Printers have been successfully registered at Google.  However, your local printer does not show up on the Google Cloud Printer List and you are now victim to the Endless Loop problem outline above.  If so, go on to step 1.  If not go through this process here to get started with Cloud Printing and see if it works for you.  If it doesn't, come back here and move on to step 1.

This process should only take about 5 minutes.

1. Go to the CUPS Cloud Print webpage at the NiftiestSoftware website.  On the webpage are tabs entitled Overview, Changelog, Installation, Configuration, Reporting Bugs.  Select the "Installation" tab.  A "Select Operating System" drop down menu will appear.  It should look like this:



2.  Select:  Ubuntu, Kubuntu, Xubuntu, Linux Mint etc – PPA based installation

You should now see four lines of code to be run in a terminal.  It should look like this:



3.  Open a Terminal Window.  In the terminal window type the four lines of code one at a time into the terminal window and hit return.  Allow each line of code to completely execute before entering the next line.

The Terminal Window will return a few questions for you to answer.  Be prepared to answer the following questions (Noobs don't worry, this is easy):

  • If/when prompted to allow the install, reply yes.
  • When prompted to verify with Google and receive a code to permit CUPS printing, reply yes and follow the instructions.  You will follow a browser link from the Terminal window to Google's CUPS authorization page.  Copy the code, return to the Terminal Window and paste it back into the Terminal. Hit return.
  • When prompted to name your printer, do so.  Pick any name you like (i.e. Home-Printer, Cloud-Printer, etc.) Avoid spaces in the name.


4.  The installation busily taking place in the Terminal Window should complete and notify you that it has done so.  Close the Terminal.

5.  Open a new Chrome browser window and go to Wrench Icon --> Settings --> Show Advanced Settings --> Google Cloud Print.  You should see a message including your Gmail account name, looking something like this:



6.  Click "Disconnect Printers".  The button will disappear and a new "Add Printers" button will appear.

7.  Click the "Add Printers" Button.

8.  You will be taken to a verification page which will confirm that you have successfully been registered.  It should look like this:


 Click "Add Printers" Button on this page, too.

9  The next window will thank you and tell you Thanks, you're ready to go!


Click the "Manage your printers" link.

10.  You should now see the printer which you just named in the terminal window appear in the Google Cloud Printer list.  Your list should look something like this:


The small grey printer icon should have the same name of the CUPS printer which you just setup in the Terminal window.

If you see your printer on the Google Cloud Printer list, you are almost done!  This printer needs to be "tweaked" first before it can be used.  It will only save a file to Google Docs.  It won't print it out on your home printer, yet.

If you see your printer in the list, move on to step 11.  If you don't see it, try refreshing the Google Cloud Printer list with the Refresh Button.  If you still don't see it, go back to step 1 and try again.

11.  Ubuntu 11.10 users go to System Settings and click on the Printing icon.  The Printing control panel window will open.

An icon for the CUPS printer you just made in the terminal window and which you saw listed at Google Cloud Print should be visible in the Printing Control Panel alongside the working printer already installed on your Ubuntu machine (probably an inkjet printer on USB but it could also be a network printer).  

12.  Back it up!  Right-Click on the new CUPS printer you made and select Duplicate.  Right-Click the duplicate and select Rename.  Rename it BackUp or something similar.

13.  Next, Right-Click on the WORKING PRINTER ICON (i.e. your USB inkjet printer icon)  and select Properties.  You should see an entry labeled "Device URI".  Select and Copy the contents of this entry.  Click Cancel and move out of this dialog box.

14.  Now, Right-Click on the CUPS printer you made and select Properties.  You should see something like this:



Note:  Your Printer State entry probably reads "Idle".

Select the contents of this "Device URI" entry, Delete it and Paste the new Device URI into this entry.

Optionally, you can click on the "Change" button next to the "Device URI" entry.  The "Change Device URI" window will open which looks something like this:

If you choose to select a device by clicking "Change" this
window will open, allowing you to select the local or network
device connected to your Ubuntu machine.  Select your device, 
click Apply and return to the Printer Properties dialog box.

Click Apply, then Click OK to move out of the Printer Properties dialog box.  Close the Printing control panel.

USB Printer Note:  You might have to change the "Make and Model" entry to make your local USB printer work properly.   I haven't verified this, yet.  If somebody knows more about this, feel free to reply to this blog post and add your two cents.  If you need to update this entry, just click Change and proceed through the dialog boxes selecting your make and model of printer from the database.

Network Printer Note:  This should be enough for pointing your Google Cloud Printing service to whatever network printer you may have currently in operation on your network.  In other words, you can leave the Make and Model entry as "Google Cloud Printing, 1.0".  It will not effect your ability to Print from the cloud to this device (I verified this on my setup).   FYI, I have a HP Printer attached via USB to my 1.42 GHz PowerPC G4 MacMini running OS X Tiger v10.4.11.  This printer is set to be shared in the Systems Preferences --> Print and Fax --> Sharing Control Panel.  All of my wired and wireless local machines print to this HP printer including my Ubuntu Machine.  This is an easy setup because Mac OS X (linux-based) and Ubuntu (linux-based) utilize the same CUPS-based system to support their network printing.  Ubuntu users with Macs networked in the house know what I am talking about.  Your situation may be different.


15.   Finally, follow steps 5-10 again to re-register your printer with the Google Cloud Printer list.  You should now see TWO printers added to the list instead of one.  One should be your new CUPS printer you made and the other should be your Duplicate, which you backed up along side of it in the Printing window.  Your CUPS printer should now work properly and the Duplicate should still be able to print files directly to GoogleDocs (now called GoogleDrive).  Your Google Cloud Printer list should look something like this:



If you don't see the printers in the list, try refreshing the Google Cloud Printer list with the Refresh Button.  If you still don't see it, you may want to try re-registering your printers by repeating step 15.

If everything for you went as well as it did for me, you should be able to go to GoogleDrive on your iPod or other mobile device, create a document and print it to your cloud printer.  Go to the Google Cloud Printing Apps page to find out all the different ways you will be able to print to your cloud printing.

The other neat thing about this is that you can print your files to the cloud printer from anywhere - work, home, school - just as long as you can access the internet with your mobile device.  At first, this point will be lost on a lot of people but, if you start to think about it, it get's pretty cool, pretty fast.

Try, Try, Try Again.
If that still does not do it and you still cannot make it work, I'm not sure of the nature of your particular problem.  Try posting a message here with more detail and I'll try and help you work through the issue.

Good Luck!






Patrick Flaherty is an Architect, Writer, Psuedo-Software Developer, Big-Time Problem-Solver and a Tech-Sci Guy who likes spending lots of time in front of computers, making them go.


Learn More
Read all about Ubuntu here.  Learn about, download and install Ubuntu from their official website.

Google and Google Products are worth taking a look at, if you haven't already.

Google Drive (the old Google Documents) is here.

Learn more about the free Google Cloud Print.

Read a little bit about Niftiest Software's CUPS Cloud Print.

Check out Apple's AirPrint for iPhone or Hewlett Packard's ePrint.



Patrick Flaherty          Copyright 2012          All Rights Reserved






Wednesday, September 5, 2012

Landscape Printing Google Documents Directly from Google Chrome in Ubuntu Does Not Work


Google Docs Page Setup Function is Funky


Landscape Printing Directly from Google Chrome in Ubuntu Does Not Work Properly.

Apparently, this is either a bug in Google's implicit handling of printing hardware or Google is trying to reinvent how browser software interacts with printer hardware.

Either way, it's a problem for users today.  There is a workaround noted below.

This does not appear to be an Ubuntu or Linux or CUPS problem.  Individuals on other OS platforms appear to be having this problem, too.  I have to tell you, this one was a real pain to deal with in a timely manner.  I wasted about two hours trying to get this to work properly only to find out Google's Page Setup feature has what I consider to be a bug.  It is interesting to note, some offer it might not be a bug: they wonder if it isn't Google trying to reinvent the wheel.  Either way, it's an issue for me.  I just want Page Setup to work like Page Setup.  You know what I'm talking about, right?  Page Setup "sets up" the softcopy properly so that it prints to hardcopy correctly.  

Page Setup is Page Setup - not, Page Kinda-Setup.  It would surprise me, though.  With Google Cloud Printing already here there may be some strange, mystical reason for all this mess.  The suspense is killing me.

Anyway, here's what worked for me.



Problem
Google Drive (formerly Google Documents) Users may have a problem printing documents with landscape orientation.  When attempting to print a GoogleDoc formatted with landscape orientation from within the Google Document Editor while using Google's Chrome Browser, hardcopy prints are not oriented on the paper properly. 

The incorrect printing result is as follows: Landscape copy is printed to hardcopy as if it were formatted for Portrait, causing the intended printcopy to be flipped 90 degrees and run off the page to the right (while holding the printed page in front of you in Portrait Orientation.)  

All settings are set properly by the user in Chrome and the Google Document Editor and Chrome's Print Preview window reports the intended Landscape Orientation properly in it's Graphical User Interface.

It appears that when users go to File --> Page Setup and set their selection within the dialog box to Orientation --> Landscape these settings are received by the Chrome browser but are not sent to the printer.

This occurs on my Ubuntu 11.10, Intel Machine:
Google Chrome21.0.1180.89 (Official Build 154005)
OSLinux
WebKit537.1 (@126646)
JavaScriptV8 3.11.10.20
Flash11.3.31.232
User AgentMozilla/5.0 (X11; Linux i686) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1



The Interesting Discussion on the Web
This Google Group discussion talks about this particularly strange problem and offers some solutions.  This also seems to be related to the same base problem.

The Not-So-Solution Solution
Google must address this problem and provide a solution.  Individuals at Google are apparently aware of this issue and are, hopefully, working on a fix for this problem.  Since it appears that this Google Group was discussing this matter back in February of 2011, it apparently remains unsolved as of this writing (Sept 5, 2012).

The Work Around
Users of Google Documents can edit and format their documents as usual in the Google Document Editor and then go to: File --> Download as --> PDF Document (.pdf).  This will automatically convert and download the document to the User's local hard drive where they can open the PDF File with a PDF File viewer and then view, format and print to their local printer normally.

It should be mentioned that some individuals have had issues with their Google Doc's rendering incorrectly within their PDF File viewers.  Some of these issues may be related to Google's formatting of documents while other issues may be solved by upgrading PDF File viewers to their most recent versions.

GooBuntoo Folks
Ubuntu users should note that the default PDF File viewer installed with Ubuntu 11.10 (Natty Narwahl) worked well for me.  So, I'm assuming this will work for Ubuntu 11.10 and better.  The Google Doc opened as expected and printed to my local printer properly.





Patrick Flaherty is an Architect, Writer, Psuedo-Software Developer, Big-Time Problem-Solver and a Tech-Sci Guy who likes spending lots of time in front of computers, making them go.


Learn More
Read all about Ubuntu here.  Learn about, download and install Ubuntu from their official website.

Google and Google Products are worth taking a look at, if you haven't already.

Google Drive (the old Google Documents) is here.


Patrick Flaherty          Copyright 2012          All Rights Reserved



Tuesday, September 4, 2012

GooBuntoo: Google and Ubuntu Collide

OK...  I give the f@$# up!

Right, like that'll ever happen.


If you're reading this blog, it is not because I'm a famous celebrity, a high paid tech guru, or some fashionably famous "who's-it" wining and dining you with my two seconds of fame.  Nope, you've had a problem with Google Docs or Google Cloud Printing on Ubuntu.

If you are looking for solutions to these or other "GooBuntoo" problems check out the articles I've posted to the GooBuntoo Blog.

If you're interested in understanding the whys and wherefores of this blog, then, read on.

Read Me
GooBuntoo... Get it?  Google and Ubuntu...  Together.   No one ever paid a dime to Google for a single web search.  It's a totally free service to the end user - you and I.  Never mind all the other free services they give up - free maps, searchable news, email, cloud drive, Google Docs, cloud printing....   The list goes on.   Free, free, free.  Period.  I guess philanthropy has been around for a long time - maybe, the desire to give is something deeply engrained within each of us - I really don't know.  Nevertheless, the measure of greatness applied to what Google gives can't simply be added and subtracted by an actuary or accountant.  Google CEO, Eric Schmidt talks about how free is better than cheap.  He doesn't call it philanthropic but, I do.  What they're doing is part genius, part planning, part risk.  If the risk they are taking pays off - if they are able to reinvent the great American capitalist landscape - then, our children's children will be "googling" us two short generations from now.

As of this writing, Google stock is worth $680 per share.  You can see how they're doing today by clicking here.  Yep, all that dough changing hands everyday while Google gives the bulk of its product line away for free.  I think they're going to be around for a while.

Ubuntu, much less well known, is an Open Source system software initiative started by a guy in South Africa which was made possible because of another guy in Finland who now lives in America.  Complicated?  Not really.  In a nutshell, Ubuntu is a very capable system which can replace Microsoft Windows or Apple's OS X.  In all it's sweet imperfection, I have to say; I love the fact it is free, open and robust.  Still, I dislike the fact that it is still sort of rough around the edges.  Those rough edges are mostly related to closed commercial interests.  Nevertheless, I truly appreciate and understand the gargantuan nature of the task at hand.  Replace Windows?  Replace OS X?  Are you kidding me?  I kid you not.  I really think these guys are going to do it.

Ok, with that out of the way, I just have to say, It's a no-brainer.  GooBuntoo is the future.  At least, it is for me.  These are two organizations which are catering directly to me.  They  both are providing me with a product I both want and value - free of charge.  I use their products and services everyday - together.  So do my kids.  There are hurdles ahead.  I know this.  I've jumped a lot of them, so far.  But, nothing insurmountable...  So far, so good.  And, I think, its all do-able.  So, I'm going to try.  And, I'm going to help.  That's what this blog is all about.  

Future Imperfect
The irony is; I'm an Apple guy.  My brother works for Apple.  I come from an Apple family and, I have successfully indoctrinated my children into the high-expectation software-land of OS X.  I've witnessed the sad-goings-on of many of my friends in the Windows world, beleaguered by XP, Vista and Seven.  So, why, you ask, would I jump the OS X ship and not even try to leap for Seven?  I must be out of my mind.  

Actually, I don't think so.  I think, I'm just thinking differently, now.

I have generations of perfectly good Mac hardware piling up.  It all works fine, just like the day it came off the assembly line.  But, the problem is....  Apple will no longer support it.  They will not update the older OS structures and refuse to compile an adequate port of Java for pre 64-bit machines.  So, that leaves me with getting new Mac hardware for a new generation of systems, right?  In an ideal world, yes.  Actually, what I meant to say was:  In their ideal world.   Apple would have me buy a new generation of machine every 2-3 years.  At their price point, they're out of their collective mind.  

But, my problem isn't just with Apple.  It's with Adobe, too - the makers of Flash.  They don't want to support the aging mac platforms, either.  Neither, does Oracle which provides the world with Java.  Even Google Chrome dropped support for some of my speedy pre-Intel G5's and, forget Mozilla Foundation's open source Firefox for those machines as well.  The fact that I can install an updated supported version of Windows XP, Adobe Flash and Java 7 on an ancient 2003 Intel PC but cannot do the equivalent with my 2005 OS X based G5 really irks me.  All because Apple abandoned me and my pokey G5's - for perfectly legitimate commercial reasons.  I get it.  I really do.  But, I have this feeling  this new generation is trying to quietly tell us that is the old way of doing things.

Move Along
Don't get me wrong.  I'm not anti-Apple and I'm not whining.  I'm just disappointed in how purely commercial interests have imagineered  their own high-tech future ending.  You get the idea, right?  The commercial wars have laid waste to the idea of platform longevity and sustainability.  Without these two key elements firmly in place, system  viability in my house is questionable.  I think the Mac and Windows future is a future with less of my involvement.  

Oracle Java finally reaches the Mac
but only for the newer Intel Macs
An example of what I am talking about is how the closed commercial structure has slowed the growth of quality software development across all platforms.  Apple provides Mac users with an OS X version of Java.  Basically, Oracle produces the official Java then, Apple tailors it for seamless integration into OS X.  The result: Java updates on the Mac have been highly specialized and have taken forever to reach the end user.  Due to the high costs of development in the software industry, neither Apple or Oracle are jumping to take the legacy machine bull by the horns and wrestle this ugly monster to the ground.   Everyone in the industry knows this is the only real solution to the problem - Apple knows it, Oracle knows it, Sun knew it before Oracle - but, its only just happening now - alas, only for 64 bit Intel Macs running Lion or later.  In this particular case commercial costs have outweighed the product benefit to the people through further development and distribution.  Yuk.

I think, GooBuntoo is in my future.  Ubuntu and Google both have hit a chord within their core constituency and the harmony is sweeter than ever before.  Organized support for the community - not community support - seem to be the key.  If I have a problem with Ubuntu or Google on Linux, I can usually find another individual with the same problem and, in some cases, a solution or a work-around to brighten my day.  People helping people.  Unpaid people helping other un-paying people.  Ten years ago, I would have called that weird.  Fifteen years ago, I would have called it impossible.  Now, I'm not sure but, it already seems to be happening and, that, I find amazing.

And, do you want to know the really, really weird thing?  If I combine what I like to call GooBuntoo with this, for $35 you get Raspberry GooBuntoo Pi.  Oh, boy.  

Well, that's one for another day.



Patrick Flaherty is an Architect, Writer, Psuedo-Software Developer, Big-Time Problem-Solver and a Tech-Sci Guy who likes spending lots of time in front of computers, making them go.


Learn More
Read all about Ubuntu here.  Learn about, download and install Ubuntu from their official website.

Google and Google Products are worth taking a look at, if you haven't already.

Oracle Java for your 64 bit Intel Mac running Lion or later is available here.




Patrick Flaherty          Copyright 2012          All Rights Reserved