Results 1 to 5 of 5

Thread: Setting a Static IP in the Terminal

  1. #1
    Join Date
    Dec 2010
    Beans
    2

    Setting a Static IP in the Terminal

    I've used Ubuntu for a couple of years now, but I was wondering how would you go about making a local static IP in the Terminal? Also, I had one more question, does anyone know how to install compiz? If so can you tell me how. thank you

  2. #2
    Join Date
    Sep 2010
    Beans
    30
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Setting a Static IP in the Terminal

    Quote Originally Posted by tyler8886 View Post
    I've used Ubuntu for a couple of years now, but I was wondering how would you go about making a local static IP in the Terminal? Also, I had one more question, does anyone know how to install compiz? If so can you tell me how. thank you


    For ubuntu 10.04

    Code:
    sudo apt-get install compiz  compiz-plugins compiz-gnome compiz-core emerald  compiz-fusion-plugins-main compiz-fusion-plugins-extra fusion-icon  compizconfig-settings-manager

    Credit :

    http://www.hackourlives.com/install-...04-lucid-lynx/

  3. #3
    Join Date
    Dec 2008
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Setting a Static IP in the Terminal

    Quote Originally Posted by tyler8886 View Post
    I've used Ubuntu for a couple of years now, but I was wondering how would you go about making a local static IP in the Terminal?
    Note your current IP address with this command
    Code:
    ifconfig
    With that information you can edit the following file
    Code:
    /etc/network/interfaces
    You need to check this file for DNS settings
    Code:
    /etc/resolv.conf
    Here is my /etc/network/interfaces file
    Code:
    >cat /etc/network/interfaces
    
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth1
    iface eth1 inet static
            address 192.168.1.2
            netmask 255.255.255.0
            network 192.168.1.0
            broadcast 192.168.1.255
            gateway 192.168.1.1

    Here is the information in the /etc/resolv.conf file
    Code:
    >cat /etc/resolv.conf
    
    nameserver 192.168.1.1
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    Also, I had one more question, does anyone know how to install compiz? If so can you tell me how. thank you
    Last edited by capscrew; December 17th, 2010 at 03:03 AM.

  4. #4
    Join Date
    May 2010
    Location
    uk
    Beans
    9,324
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Setting a Static IP in the Terminal

    Hi

    At the terminal type

    man interfaces
    to see the man page for /etc/network/interfaces

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  5. #5
    Join Date
    Dec 2010
    Beans
    2

    Re: Setting a Static IP in the Terminal

    thank you, this will do

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
  •