Enable character mode and set static IP address in Ubuntu 10.04

Source: Internet
Author: User
24 Aug

Running Ubuntu in VMware is a waste of resources to enable the graphic interface. 2 GB of content is already half of that of Windows 7. You don't have to do anything else when you start VMware. In addition, the default network mode of VMware is net. The virtual machine obtains an IP address through DHCP, And I am used to using xshell to access the virtual machine through SSH. The dynamic IP address is not easy to save sessions, set the Ubuntu IPaddress In the VM to static by the way.

Switch Ubuntu to character mode to start 1. Modify the/etc/default/GRUB File
1 $Sudo VI /Etc/default/GRUB

Set

Grub_cmdline_linux_default = "quiet Splash"

Change

Grub_cmdline_linux_default = "quiet splashText"

2. Update grub Configuration
1 $Sudo Update-grub

Restart.

Run

1 $ Startx

You can start gnome.

Set static IP 1. Edit the interfaces File
1 $Sudo VI /Etc/Network/interfaces

The content is as follows:

Auto Lo
Iface lo Inet loopback

Add the following content at the end of the file:

Auto eth0
Iface eth0 Inet static
Address192.168.56.125
Netmask255.255.255.0
Gateway192.168.56.2

The red part is modified based on the actual situation.

2. Add static DNS Server IP Address
1 Sudo VI /Etc/resolv. Conf

Add the following content:

Nameserver192.168.56.2

3. Reload Nic Configuration
1 $Sudo IFUP eth0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.