Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Open website in browser using terminal?

  1. #1
    Join Date
    Oct 2007
    Beans
    832
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Open website in browser using terminal?

    Is there a terminal command that would allow you to open a browser and go to a specific website?

    thank you...

  2. #2
    Join Date
    Apr 2007
    Beans
    32
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Open website in browser using terminal?

    lynx or curl

  3. #3
    Join Date
    Sep 2007
    Location
    California
    Beans
    64
    Distro
    Lubuntu

    Re: Open website in browser using terminal?

    Code:
    [insert browser of choice here] "www.thewebsite.com"
    Should work pretty much the same for any browser as far as I know. Do not include the brackets.
    Last edited by Natr0n; December 14th, 2007 at 07:56 PM.
    Nathan

  4. #4
    Join Date
    Oct 2007
    Beans
    832
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Open website in browser using terminal?

    thank you Natr0n...

    Geez... I did that, but just realized when I scrolled through my previous commands I had a space in the name that was messing it up.

    hmm, I'm wondering though - what if you didn't want the command to be browser specific? I have a feeling that's not going to work without a script checking to see what browser you're running..

    Any thoughts?

  5. #5
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Open website in browser using terminal?

    For Ubuntu, expect Firefox to be installed, so you can use:

    Code:
    firefox http://ubuntuforums.org

  6. #6
    Join Date
    Dec 2005
    Location
    Lund, Skåne
    Beans
    580

    Re: Open website in browser using terminal?

    The command
    Code:
    x-www-browser
    should point to the user's preferred browser.

    I write Kupfer, a smart, quick launcher.
    Recommended apps and tools: Vim!

  7. #7
    Join Date
    Oct 2007
    Beans
    832
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Open website in browser using terminal?

    Thanks LaRoza...

    I'm just wondering how many people don't use Firefox and therefore might uninstall it in favor of say.... opera.

  8. #8
    Join Date
    Oct 2007
    Beans
    832
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Open website in browser using terminal?

    Quote Originally Posted by engla View Post
    The command
    Code:
    x-www-browser
    should point to the user's preferred browser.
    now that's what I was hoping for... thanks.

    One question about this command. I ran it and it brought up Opera, which surprised me a bit. Granted, I had downloaded Opera the other night just to take a look at it.

    Do you think 'x-www-browser' brought up Opera because it was the last browser I installed?

    thanks...

  9. #9
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Open website in browser using terminal?

    Quote Originally Posted by mdpalow View Post
    Thanks LaRoza...

    I'm just wondering how many people don't use Firefox and therefore might uninstall it in favor of say.... opera.
    I didn't know of x-www-browser.

    I use Opera myself, and have uninstalled Firefox on Ubuntu before.

    You might have made Opera your default.

  10. #10
    Join Date
    Nov 2007
    Location
    UK
    Beans
    772
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Open website in browser using terminal?

    Browser companies like you using their browser, so usually in the install somewhere it says "Make x default browser"

    Would be interesting to know where 'buntu saved this information.

Page 1 of 4 123 ... LastLast

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
  •