Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Software Businesses Google The Internet

goosh, the Unofficial Google Shell 310

ohxten writes "Stefan Grothkopp has come up with a pretty neat tool called goosh. It's essentially a browser-oriented, shell-like interface that allows you to quickly search Google (and images and news) and Wikipedia and get information in a text-only format. This is quite possibly the coolest thing I've seen in a good while."
This discussion has been archived. No new comments can be posted.

goosh, the Unofficial Google Shell

Comments Filter:
  • by Daimanta ( 1140543 ) on Monday June 02, 2008 @07:27PM (#23632843) Journal
    Getting excited from old functionality in a commandline enviroment.
    • by Jeremiah Cornelius ( 137 ) * on Monday June 02, 2008 @07:29PM (#23632877) Homepage Journal
      I tried it, and it is dissapointing from my point of view!

      guest@goosh.org:/web> ls *

          1) Lexus LS - Wikipedia, the free encyclopedia
      The long wheelbase LS 600h L is equipped with Lexus Hybrid Drive, .... [66] In the U.S., the Driver Monitoring System debuted on the LS 600h L sedan. [52] ...
      http://en.wikipedia.org/wiki/Lexus_LS [wikipedia.org]

          2) Quality Precision Innovation... since 1880 - The L.S. Starrett Company
      Manufactures more than 5000 variations of precision tools, gages, measuring instruments, saw blades for industrial, professional and consumer markets ...
      http://www.starrett.com/ [starrett.com]

          3) Livermore Software Technology Corporation
      10th International LS-DYNA Users Conference: June 8, 2008 - June 10, 2008. ... Register Now for the 2008 LS-DYNA Conference on our conference website: ...
      http://www.lstc.com/ [lstc.com]

          4) L.S. Frais - Excellence in Slicing and Packing
      LS Frais. your slicing partner ! Our company Our services Our products ... 2004 - 2008 LS Frais Contact | Legal | Roadmap | Awex | Sitemap | Jobs ...
      http://www.lsfrais.be/ [lsfrais.be]


      Next, I'm gonna try operators and regexes - but I don't have much hope.
    • Pointing and clicking is easy for some stuff, but the command line is still king for many purposes.
    • by Anonymous Coward
      How does it search Google images when it's text only? Is there an ASCII art module built in, or something?

      Actually, hmm, that'd be pretty damn cool, ... ASCII goatse isn't nearly as shocking as the real thing, which is a bonus.
    • Re:Totally geeky (Score:5, Interesting)

      by vanyel ( 28049 ) * on Monday June 02, 2008 @07:39PM (#23632979) Journal
      It is amazingly fast, you'd think it was a *real* command line environment: fast and efficient.
    • Re:Totally geeky (Score:5, Insightful)

      by Anonymous Coward on Monday June 02, 2008 @07:48PM (#23633053)
      It kind of reveals some good UI design choices though. For example, why should the Google website have a textbox for the search input anyway? If you're at Google, all you'll type in will be for a search. So why not just capture all keyboard inputs into the search input box instead of requiring the user to ever explicitly click/tab and put the input field into focus?
      • Re:Totally geeky (Score:5, Informative)

        by martin-boundary ( 547041 ) on Monday June 02, 2008 @08:15PM (#23633279)
        There's already a better choice for command line integration: try surfraw [debian.org]. This lets you stay within a real command shell such as bash, and just type

        $ google what I want to know

        You'll get the results directly in a browser of your choice. If you're like me, you have the browser set up as w3m [sourceforge.net], so that the google results simply appear in the same terminal where you can click on them. Since w3m is a pager like more and less, you can postprocess the google output, eg

        $ google hello | grep Cached
        www.hello.com/ - 2k - Cached - Similar pages
        www.hellomagazine.com/ - 32k - Cached - Similar pages
        www.hellomagazine.com/royalty/ - 27k - Cached - Similar pages
        en.wikipedia.org/wiki/Hello - 39k - Cached - Similar pages
        en.wikipedia.org/wiki/Hello_world_program - 32k - Cached - Similar pages
        www.elite.net/~runner/jennifers/hello.htm - 157k - Cached - Similar pages
        www.ipl.org/div/hello/ - 20k - Cached - Similar pages
        www.mylalaland.com/hello/ - 6k - Cached - Similar pages
        publicaddress.typepad.com/ - 58k - Cached - Similar pages
        www.sanrio.com/ - 10k - Cached - Similar pages

        Best of all , surfraw is not just limited to google, so you can have a complete shell browsing experience for a lot of different sites.

      • Re:Totally geeky (Score:5, Informative)

        by nuzak ( 959558 ) on Monday June 02, 2008 @08:29PM (#23633389) Journal
        Capturing all keyboard inputs would require javascript, and if you have that enabled for google, you'd have noticed it already sets the focus to the input box when loaded.
      • Re: (Score:3, Interesting)

        Because that's what the user expects to have to do. The net's already confusing enough, with all the flash and different site design ideas. Why make it worse by making the textboxes react in novel ways? Then again, I guess it's Google. They could probably get away with it.
    • by Anonymous Coward on Monday June 02, 2008 @08:09PM (#23633225)
      Ha ha.

      Click for definition of Goosh [urbandictionary.com]
    • by Dpaladin ( 890625 ) on Monday June 02, 2008 @08:36PM (#23633433)
      I find that Linux users always Bash new shells, to be honest.
  • Lynx (Score:4, Interesting)

    by FST ( 766202 ) on Monday June 02, 2008 @07:28PM (#23632855) Journal
    In all seriousness, why not just use Lynx if you want text only?
    • Re: (Score:3, Insightful)

      Because this is new and exciting.
    • Re:Lynx (Score:5, Informative)

      by QuantumG ( 50515 ) * <qg@biodome.org> on Monday June 02, 2008 @07:34PM (#23632931) Homepage Journal
      links [sourceforge.net] is superior.

      • Re: (Score:3, Informative)

        by mario_grgic ( 515333 )
        Lynx is more like VI, links is more like using GUI (it has popup dialogs, menus etc).

        Some people prefer vi style of navigation through pages, myself included.
        • Its technically superior as well as having a better UI. :P

          I have actually used it with popups. It handles javascript to a certain extent.
      • I agree with the sibling poster: links is good if you want a browser that acts like a GUI browser and is good with a mouse. I prefer lynx to links because if I am using a text-based browser, I usually want to control it with the keyboard, and I find lynx works better for that.
        • links also has a graphical mode. It doesn't support much in the way of modern web features like advanced css and javascript, but it gives a rather nice old-fashioned browsing experience, and some sites such as freshmeat look just as good as in a modern browser.
      • by antdude ( 79039 )
        I prefer Elinks [elinks.or.cz].
    • The shell is text. Navigating to the link is not. Not the same as Lynx.

      • Re: (Score:3, Informative)

        by peragrin ( 659227 )
        yes they are
        type in the number of the result you want.

        to see more results type in more

        try typing in help if your confused.

        it's actually really clever. you don't have to remove your hands from the keyboard.
    • Re: (Score:2, Interesting)

      by grizdog ( 1224414 )
      Maybe the plan is to make this the built-in shell on a thin web interface. We've had lots of discussions about this on /. - There are a lot of people who don't want much more than a browser, email client, and a word processor/spreadsheet. This might be the first pass at a shell for this market - they'll probably just use the standard browser, but if there has to be a shell in there somewhere, this might make more sense than bash.
    • Because you may only want Google to be text only, since searches are only made of text anyway. That doesn't imply you want all sites to be text only.

      This gets rid of the ads too.

      It also gets rid of Google's link tracking that also sometimes slows things down, because you are redirected through their servers. (do know that Google manipulates the browser status bar to "lie" and hide the link tracking, and that you're actually always passed through Google servers)
    • by Reapman ( 740286 )
      have you even tried goosh? it's a command line but allows graphics.. try an image search. plus if you want to click a link your not worried if that page supports text browsing (all pages should but that's another topic)
    • Actually, google's interface is fairly cluttered in lynx; the text box is preceded by about 15 links.
  • source code says (Score:3, Interesting)

    by LordMyren ( 15499 ) on Monday June 02, 2008 @07:29PM (#23632879) Homepage
    source code says "readable" source code will be posted soon.

    i await that.

    theres a lot of cool text interfaces happening on the web. theres in browser vi (jsvi), and source code editors like CodeMirror, CodePress, and more[1]. all very cool!

    [1] http://en.wikipedia.org/wiki/Comparison_of_Javascript-based_source_code_editors [wikipedia.org]
  • Whoops. (Score:5, Funny)

    by Anonymous Coward on Monday June 02, 2008 @07:30PM (#23632891)

    guest@goosh.org:/web> web penis
    Error: Operation timed out (1212449383081).
    I broke it.
    • Re:Whoops. (Score:5, Funny)

      by rudy_wayne ( 414635 ) on Monday June 02, 2008 @07:43PM (#23633013)
      it's not broken

      guest@goosh.org:/web> web penis
          1) Human penis size - Wikipedia, the free encyclopedia
      Human penis size refers to the length and width of human male genitalia. Interest in larger penis sizes has led to an industry devoted to penis enlargement. ...
      http://en.wikipedia.org/wiki/Human_penis_size [wikipedia.org]

          2) Penis - Wikipedia, the free encyclopedia
      The penis (plural penises, penes) is an external sexual organ of certain biologically male organisms. The penis is a reproductive organ, technically an ...
      http://en.wikipedia.org/wiki/Penis [wikipedia.org]

          3) Things You Didn't Know About Your Penis, Interesting Facts That ...
      (WebMD) Here are some things you might have wondered about your penis, but were ... Here's how to avoid penile fracture: don't use your penis too roughly. ...
      http://www.cbsnews.com/stories/2008/03/19/health/webmd/main3949777.shtml?source=mostpop_story [cbsnews.com]

          4) YouTube - Is it a penis
      ok first of all this is not my video, please to not think it is, i had recently seen it at my friends house and decided to upload it from www.funnyjunk.com!
      http://www.youtube.com/watch?v=Q0sQA9ILZSU [youtube.com]
      • Re: (Score:2, Funny)

        by Anonymous Coward
        Now I know what a goosh is:

        guest@goosh.org:/web> web goosh
            1) Urban Dictionary: goosh
        Man the girl has such a small goosh i could barley fit two fingers in! ...
        http://www.urbandictionary.com/define.php?defid=738117&term=goosh
  • Create an interactive site, then post it to slashdot. Anyone opening book on how long the server will last?
  • by garcia ( 6573 ) on Monday June 02, 2008 @07:35PM (#23632935)
    So I loaded it and watched it work -- reminiscent of ANSI BBSs but with AJAX instead.  It was quick on my laptop but on my mobile device it took longer to load that Google did itself and while I could enter search terms I couldn't submit them.  But it's in BETA and it's a Google side project so we should all bow before its greatness.

    So here: <bow></bow> :)
  • Shells (Score:4, Interesting)

    by ucblockhead ( 63650 ) on Monday June 02, 2008 @07:38PM (#23632965) Homepage Journal
    I'd be more impressed if it were an actual shell.
  • That'd be nice to have a usable bash shell via web interface, for those times when we have access to a kiosk etc that has a web browser but no terminal/ssh. With the right web page we could ssh into our machine at home.

  • by gardyloo ( 512791 ) on Monday June 02, 2008 @07:41PM (#23633001)
    Just tried it. Wanted to read its documentation. Realized too late that 'man goosh' was a really poor choice of phrase, but just got

    guest@goosh.org:/web> help goosh

    help: goosh

    Error: command "goosh" not found.

    Phew!
    • by Joebert ( 946227 )

      Realized too late that 'man goosh' was a really poor choice of phrase

      I'd seen the "/web>" at the end of the command line and tried "cd /" which fetched me some music results, but I've got tears in my eyes after reading yours, that's freaking hilarious !
  • by Anik315 ( 585913 ) <anik@alphaco r . n et> on Monday June 02, 2008 @07:50PM (#23633065)
    You can actually take something like JavaScript Shell [squarefree.com] and add JSON based query features to it. This would allow things like command line based search, news... etc and has the advantage of using JavaScript as command syntax. You can write JavaScript functions to access and manipulate JSON variables. (easier said than done, from someone whose done it )
  • by jaxtherat ( 1165473 ) on Monday June 02, 2008 @07:54PM (#23633109) Homepage
    guest@goosh.org:/web> man woman

    help: woman

    Error: command "woman" not found.
  • Ive tested it and i can say it now: pure beauty.

    I need this as a bash-completion plugin. I need it NOW, NOW, NOW.
  • Totally my new home page now. Since half my web searches start with me using a Google keyword search in Firefox anyway, this is just that much better. Wow. Now it just needs "open in new tab," which I'm sure will come about in short order...
  • by Zouden ( 232738 ) on Monday June 02, 2008 @07:59PM (#23633143)
    One of the biggest advantages of a command-line interface is that you can pipe programs together and create a workflow. You can't do that with this since it's just a command-line imitation in a web browser.
    So no neat things like piping the images from an imagesearch.
    Secondly, a mouse is still going to be required when you browse to one of the sites returned in the search, so this interface is only useful while you're actually searching.

    It's cool, but really only as a novelty.
    • by martin-boundary ( 547041 ) on Monday June 02, 2008 @11:10PM (#23634389)
      I posted this in another comment already, but here's a version with more details: if you use surfraw and w3m together, you can essentially have clickable google results inside an xterm, and a first class piping mechanism. You might have to change the color scheme in w3m if it clashes with your *term settings, or just try this out in a plain vanilla black and white terminal.

      apt-get install surfraw w3m

      export PATH=$PATH:/usr/lib/surfraw

      export SURFRAW_graphical=no

      export SURFRAW_browser=/usr/bin/w3m

      export SURFRAW_text_browser=/usr/bin/w3m

      export SURFRAW_graphical_browser=/usr/bin/iceweasel

      export SURFRAW_graphical_remote=yes

      google hello # (clickable results "in" the terminal)

      google slashdot | grep Cached | head

      slashdot.org/ - 76k - Cached - Similar pages
      slashdot.org/bookmark.pl?url - 13k - Cached - Similar pages
      en.wikipedia.org/wiki/Slashdot - 83k - Cached - Similar pages
      en.wikipedia.org/wiki/Slashdot_effect - 34k - Cached - Similar pages
      Cached - Similar pages
      yro.slashdot.org/ - 44k - Cached - Similar pages
      yro.slashdot.org/yro/07/05/02/0235228.shtml - 451k - Cached - Similar pages
      hardware.slashdot.org/ - 40k - Cached - Similar pages
      Cached - Similar pages
      politics.slashdot.org/ - 45k - Cached - Similar pages

      It's also possible to write some scripts so that w3m can open new terminals when clicking a link, and if you cannot live without images inside a terminal, there's the w3m-img package you can install.

      I also like to use w3mman as the system man pager, which lets me click on urls and file paths referenced inside a man page.

  • Enhancement request:
    For Full command line emulation, you should be able to put the command into a query string: "http://www.goosh.com/?s slashdot"

    Seriously cool stuff

  • Konqueror (Score:4, Informative)

    by slashqwerty ( 1099091 ) on Monday June 02, 2008 @08:03PM (#23633175)
    Konqueror [konqueror.org] has this functionality built into the location bar. To search Google, just type "gg: search phrase". To search wikipedia, type "wp: search phrase". Forgot what Moore's law is? "fd:Moore's law". Someone created a new search engine? You can add your own shortcuts.

    You can even set a default search engine. In that case anything that doesn't look like a valid URL goes to the default search engine. To top that off, you can select text, then middle-click on the background and it will be just like tossing the text into the location bar and pressing return. You can select a phrase from a web page and middle click to instantly run a web search on the phrase. It's one of Konqueror's coolest features.

  • by Doc Ruby ( 173196 ) on Monday June 02, 2008 @08:04PM (#23633181) Homepage Journal
    I'd been excited in the 1990s about a browser growing to include all commandline functionality. Netscape started a project called "XMLterm" which used the browser to send commandlines to the local or a remote host, then display the output in the browser. Which showed some results as clickable icons in that resulting page. But the project never produced a usable release, and seemed to die sometime before Netscape itself turned into Mozilla and then Firefox.

    But XMLterm [xmlterm.org] lives! Someone's completing the project. I'm really psyched to see this system work. And even more psyched for the possibility that it could support different "Web APIs" at different hosts it connect to, different DOMs and other object models, perhaps with mappings to some grand unified object model (and browser for it). It seems like a great way to implement a client for goosh, this Google shell.

    That would be really cool, and finally start to transcend some of the "CLI vs GUI" ghettoes we've stuck ourselves in. Or at least give the GUI people most of the CLI stuff, except its pure simplicity. Which, as a GUI person who uses CLIs all day long, sounds great to me.
    • Re: (Score:3, Informative)

      That XMLterm.org page looks kind of evil. I think it may actually be a spam-blog that rips stuff from here [xml.com]. It's just a little bit hard to credit some of the stuff they link to as official Mozilla sites given their propensity to misspelling Firefox, and the fact that the download buttons are blank. Also, I strongly doubt that the people who wrote XMLterm were peddling some of the crap that blog links to. Alas, it may be more dead than you think.
      • Good catch. I Googled some of the strings I randomly copied from that XMLterm.org blog (all entries posted on 2007/10/20), and found them all elsewhere at XML.com . Important links like "about" and "archives" link to nothing.

        What an asshole stunt, I suppose to harvest a few emails from registrants. Targeting geeks, none of whom registered to post anyway. And helping ruin the reputation of a fascinating dormant project.

        If the jerk behind that site had spent that much time just improving the real XMLterm beta
  • *years* ago, most of us were doing this same type of thing from a commandline with lynx/links.

    If you like this, you'll probably like surfraw too

    http://surfraw.alioth.debian.org/ [debian.org]

    All the goodness of goosh without the need for X or a browser

    I actually added some of the handlers years ago, but I found that eventually Google searchbox was able to do many of them for me directly - like "quote intc" , "ufo site=cnn.com", etc.

    I created my own handlers (elvii) for internal intranet use to do all sorts of mundane que
  • Come on, they make something as geeky as this and neglect Google Code Search [google.com]? For shame!
  • I'm suprised you are not all "gooshing" in excitement. Its like Google portable.
  • by fahrbot-bot ( 874524 ) on Monday June 02, 2008 @08:16PM (#23633291)
    This is quite possibly the coolest thing I've seen in a good while.

    Um, you need to get out more.

    Start small. Leave the basement for a day-trip to the garage or back yard....

  • I had the pleasure once of logging into and working on an ancient PDP-11/73 running 4.2BSD hooked up to an actual line printer/teletype machine. The noise was deafening, and kind of sexy. This web page needs a sound effect option for maximum retro verisimilitude.
  • by afabbro ( 33948 ) on Monday June 02, 2008 @09:17PM (#23633681) Homepage

    I can type in search terms and get the results from Google. And...

    Um...

    How is this something I couldn't do before? I can certainly do this on my own (real) command line - surfraw has been mentioned, and a perl script and the Google API (or even without it) means "getting a list of links for a search term from google" is not exactly unknown.

    It has a cute CLI-like interface, but not really. "This google-interface behaves similar to a unix-shell." Um, no, not really. It's a cute interface, but not a real shell by any stretch...

    So what am I missing?

  • vi keys in Google (Score:2, Informative)

    by Ilyakub ( 1200029 )
    On a somewhat related note, Google is experimenting with vi keyboard shortcuts for their search interface. You can test it at labs.google.com/experimental.
  • by phreakhead ( 881388 ) on Monday June 02, 2008 @09:45PM (#23633857) Homepage
    This is really sad. It's not UNIX until I can type

    %> search "lindsay lohan\'s (boobs|tits|chest|underwear|bank account.*[0-9]+)"

    Now if it was a real shell binary that you could run IN UNIX then I might be slightly impressed. I could make this "shell" in 10 lines of CSS!
  • Cool tidbit (Score:3, Informative)

    by nog_lorp ( 896553 ) on Monday June 02, 2008 @10:17PM (#23634063)
    From goosh.org/goosh.js:
    ------
      If you want to extend goosh.org, please take a look at the load command.
    You can see an example module at http://goosh.org/ext/spon.js

    Code of an extension: (indented properly)
    ------
    function search_spon() {
        this.name = "spon";
        this.aliases = new Array("spon","spiegel");
        this.mode = true; this.help = "search in spiegel.de";
        this.call = function(args) {
            this.start = 0; this.args = "site:www.spiegel.de "+args.join(" ");
            this.query("web",this.args);
        }

        this.next = function() {
            this.start += 4;
            if(this.args)
                this.query("web",this.args);
        }

        this.render = function(context, results, status, details, unused) {
            if(results && results.results != "")
                this.hasmore = true;
            else
                this.hasmore = false;
            this.renderResult(context, results, status, details, unused);
        }
    }
    register_searcher("spon","web");
  • Great... (Score:3, Insightful)

    by tm2b ( 42473 ) on Monday June 02, 2008 @10:32PM (#23634141) Journal
    So in other words, we've come full circle and invented gopher [wikipedia.org], archie [wikipedia.org], and WAIS [wikipedia.org].
  • DON'T (Score:4, Funny)

    by MrKaos ( 858439 ) on Monday June 02, 2008 @11:55PM (#23634651) Journal
    rm -rf /

  • SQL interface (Score:3, Interesting)

    by hweimer ( 709734 ) on Tuesday June 03, 2008 @04:22AM (#23635629) Homepage
    Nice idea, but I like the SQL interface [cpan.org] better.

It is easier to write an incorrect program than understand a correct one.

Working...