Tag: Google

Google Command interface launched

No Comments

It had to happen, an official google application that provides access to google services via the command line. In April we showed you how to do this, the unofficial way using surfraw. Now you can do it with the blessing of the worlds most popular search engine company, Google
GoogleCL can be used to google the following services (examples shown):

  • Blogger
    $ google blogger post –title “foo” “command line posting”
  • Calendar
    $ google calendar add “Lunch with Jim at noon tomorrow”
  • Contacts
    $ google contacts list name,email > contacts.csv
  • Docs
    $ google docs edit –title “Shopping list”
  • Picasa
    $ google picasa create –album “Cat Photos” ~/photos/cats/*.jpg
  • Youtube
    $ google youtube post –category Education killer_robots.avi

Unfortunately, the deb which was released yesterday, doesn’t automatically setup the terminal browser. You will have to do this yourself:

gedit /home/user/.googlecl/config

After running one of the services for the first time, the above config was created. I opened it with gedit and added

auth_browser = w3m

Which is the w3m text-based browser. There are a lot more services on the way, and one can only hope this is a sign of things to come. I can think of a number of Net services which could do with a CLI interface.
( Remember to fill in forms with w3m , to log into your google account, you have to hit the enter key.)
Please check the official development page site for the last update.
Please visit the official download page to download GoogleCL (You’ll find a nice deb there waiting for U8UNTU users!)

Categories: Apps CLI Ubuntu


Google via the command line


Sometimes opening a terminal is a lot faster than opening a browser. If you like me, then you will enjoy having some extra supercow powers at the command line.
Here is how to set up Google on the command line.
1. Install the surfraw essentials
apt-get install surfraw surfraw-extra w3m
2. Setup surfraw

sudo gedit /etc/surfraw.conf

Change the following:
3. Now you have three choices:
A)  You can stick with the default action, which is:

sr google <subject>

B) You can add an alias to your bashrc

gedit /home/<user>/.bashrc

ADD under aliases section:

alias google="sr google"

C) You can add the surfraw ELVIS   dirctory to yout PATH variable
usually /usr/lib/surfraw/ or /usr/local/lib/surfraw/
eg. PATH=/usr/lib/surfraw/:$PATH
This is probably not such a good option since it will also give you instant access to the 80 or so “Elvi” which are  in the surfraw directory and part of the Surfraw suite. Since  some of the commands might conflict with commands already on your system,  we might want to first check to see which Surfraw “Elvi” commands and powers you need and which ones you don’t.
Remove the ELVIS  you don’t need by deleting or moving the ELVIS from the /usr/lib/surfraw/ and placing it in /usr/local/lib/surfraw/ or vice versa. You really only want one surfraw directory in your path!!!

That’s right ELVIS isn’t dead, he just lives on as the Shell Users’ Revolutionary Front Against the World wide web.
You can still command ELVIS to do your bidding.
More info

Categories: Apps CLI Ubuntu


Thoughts on the Google Chrome OS


Google recently announced the launch of their “Chrome OS“. The Linux-based desktop has been available for at least a year (codename) but for now Google considers it an “Operating System” and according to their marketing machine it will “eat the PC, destroy Microsoft and make every other OS meaningless”. The press love a good story about the world’s Number One brand taking on Microsoft.
Will this effect the exponential growth of Ubuntu, the worlds most popular Linux distribution? I think not. More likely, Google Chrome will become just another desktop variant of Ubuntu and it is Ubuntu which is swallowing all other Linux distros, as the original Gnu-Hurd strategy unfurls. As far as real world computing goes, Ubuntu has the better metaphor. The Ubuntu default Gnome desktop however, is far from being the better desktop.  Competition in the Desktop environment has thankfully hotted up over the past months, so users can expect great advances in usability as well as Internet connectivity.
In fact 2009 could turn out to be the Year of the OS and 2010 the Year of the Desktop as Microsoft unveils Windows 7 and Ubuntu Karmic Koala hits the streets, now Google Chrome is also vying for our attention, alongside at least 20 other Linux-based desktops and 250 associated Linux “Operating systems”.
Read More

Categories: Ubuntu

Tags: , ,