Results 1 to 5 of 5

Thread: Sudo command

  1. #1
    Join Date
    Feb 2010
    Beans
    4

    Sudo command

    Hello i have been working alot getting my computer online on wireless agian and now i have but i have to type this following command

    sudo route add default gw 192.168.1.1

    Any way i can get it to pick that ip it self since i shall type that each time i re-boot my computer?

  2. #2
    Join Date
    Dec 2009
    Location
    Pennsylvania
    Beans
    195
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Sudo command

    you could write it into a script and have the script run at the beginning of every boot. Also there should be a setting in your network manager to use a permanent IP address instead of the first available one. You might, depending on your router, be able to set that IP address as your permanent IP in the router itself. This way when ever you connect to your network your router will give you a predetermined IP address and will not allow other computers to use that IP.
    olllllllo
    Play in the dirt

  3. #3
    Join Date
    May 2006
    Location
    Amsterdam
    Beans
    1,731
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Sudo command

    man interfaces

    cat /etc/network/interfaces
    Upgrade Ubuntu | Upgrade unsupported Ubuntu versions | Always backup | Howto upgrade flash
    Minimal CD install | Remove old kernels | My blog | Linux user #462801 | Conscience doth make cowards of us all. -- Shakespeare

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Sudo command

    If you're using Network Manager, the IPv4 Settings tab has a Routes button.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Feb 2010
    Beans
    4

    Re: Sudo command

    Cheers sorry for the long delay on reply was alittel tired got some longs days on work i will try look into these things and post back what i do etc

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
  •