exiting/saving VI

Discussion in 'Installation/Configuration' started by caspert_ghost, May 15, 2007.

  1. caspert_ghost

    caspert_ghost New Member


    I have been reading:

    and got ubuntu 7.04 server set up on my machine. but when I get to 6 (Configure The Network)
    I enter my login, type sudo to log in as root then type the command stated on that page.
    vi /etc/network/interfaces

    I get the new window:
    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet dhcp

    now I need to change this to:
    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static

    once I make the changes HOW do I save it and exit from the vi command window???
    Thank you
  2. Hans

    Hans Moderator

    exit VI

    To exit VI:

    press ESC to make sure you are in command mode.

    Press :wq to write (save the file) and quit


    Press: Type :q or :q! to quit without saving the file
  3. caspert_ghost

    caspert_ghost New Member

    Thank you for your prompt help.
    I was able to get it doen.

    on the same page it refers to using PuTTy to log into my server.
    Do I get the windows XP version and install it then connect using the ip I set up : ??
  4. Hans

    Hans Moderator

    You can download the Putty version for Windows here:

    After downloading Putty, you are able to setup a connection from your local desktop to your server via SSH.
    This is more secure then Telnet.

    Within Putty, enter your the IP-address of your server.
    You can enter it with a valid username and password, like admin or root.

    If you are local desktop is in the same LAN as your server use IP address in Putty.
    If you want to establish a SSH connection from outside (Internet) use the external IP address of the network, which also contains your server.
    If your server is behind a Router. make sure that port 22 is open and forwarded to your server within your LAN.
    Last edited: May 16, 2007
  5. caspert_ghost

    caspert_ghost New Member

    Hello again. Thank you, I have downloaded the PuTTy file and double clicked it.
    entered and hit open;
    after about 30 seconds I get a "fatal error"
    Network Error:connection timed out.

    I should point out that I have this installed on the same pc as I am using to talk to you as a microsoft virtual pc.
  6. falko

    falko Super Moderator

    Is the IP address of your Ubuntu server?
    What subnet are you using in your LAN? Is it 192.168.0, 192.168.1, ...?
  7. caspert_ghost

    caspert_ghost New Member

    the dhcp allocates IPs based on mac address.
  8. falko

    falko Super Moderator

    Then you must assign an unused IP address from your 172.16.8 subnet to the Ubuntu box. doesn't work because it's from a completely different subnet.

Share This Page