Install Ubuntu on VMWare

Source: Internet
Author: User
Last year, a Solaris10 was installed on a virtual machine. Because it consumes a lot of resources and runs very hard, it is really intolerable. Recently, thanks to the system reinstallation, we are preparing to install another operating system. Of course, Linux is the first choice. Who is Linux always so popular. The size of the operating system is my primary consideration. There are a lot of Linux operating systems, but there is a common problem, the installation disk is too large, usually 4, 5g. It is also time-consuming to download. Looking around, I found that javastuse installed a Solaris10 on the virtual machine last year. Because the startup of Solaris10 was very resource-consuming, it was very difficult to run, and it was really unbearable. Recently, thanks to the system reinstallation, we are preparing to install another operating system. Of course, Linux is the first choice. Who is Linux always so popular.

The size of the operating system is my primary consideration. There are a lot of Linux operating systems, but there is a common problem, the installation disk is too large, usually 4, 5g. It is also time-consuming to download. I found that Ubuntu Server 7.04 is very suitable, and there is only one ISO file of about MB. Since it is the Server version, there must be no GUI, OpenOffice, and other components, which is not necessary for me.

After downloading Ubuntu Server 7.04 through thunder, it is easy to install it on VMware. The installation can be completed in less than 15 minutes. Next, configure the network. I used SUSE before. This is the first time I used Ubuntu, so some configuration methods come from Google. For example, if you do not know what the root password is, use sudo passwd root to set it.

Network Configuration:

After VMware is installed, there will be two default NICs, VMnet8 (192.168.83.1) and VMnet1 (192.168.19.1). Of course, the IP addresses of these two NICS will be different on different machines. VMware has two Network Connection Methods: Bridged and NAT. The former requires that the XP broadband connection (ADSL) be set to the sharing mode for use. As telecom companies are investigating shared bandwidth recently, they will not use the Bridged mode because they will only use the NAT mode.
The VMNet8 Nic used in NAT mode mainly needs to know two important IP addresses: Gateway and DNS.
The first address (192.168.83.1) is a static address allocated to the VMware Network Adapter VMnet8 Adapter of the host computer Xp.
The second address (192.168.83.2) is a static address allocated to the NAT device.
(192.168.83.3 to 192.168.83.127) static address, retained.
(192.168.83.128 to 192.168.83.254): IP address range of DHCP scope, allocated to virtual machines.

Modify the network configuration of Ubuntu:
1) set the IP address, gateway, and mask. Vi/etc/network/interfaces, add the following content:
Iface eth0 inet static
Address 192.168.83.200
Netmask 255.255.255.0
Gateway 192.168.83.2
Auto eth0
2) Add DNS, vi/etc/resolv. conf, and add the following content:
Nameserver 192.168.83.2
3) effective:/etc/init. d/networking restart
4) if the broadband connection of XP is OK, test whether Ubuntu is OK. For example, ping www.sohu.com

Install software:

Because the Server version is not installed by default, You have to install the software yourself. Fortunately, it is already connected to the network, so it is much easier for others. To facilitate installation, you need to switch to the root user. In addition, the ISO file must be attached to the virtual Optical Drive.
1) Update
Apt-get update
2) install gcc
Apt-get install gcc
3) Install ssh, Which is started by default after installation, so that you can access Ubuntu through SecureCRT. This is my main purpose.
Apt-get install openssh-server openssh-client
Stop ssh:/etc/init. d/ssh stop
Start ssh:/etc/init. d/ssh start
Restart ssh:/etc/init. d/ssh restart
4) install jdk
Apt-get install sun-java6-jdk
5) install the Linux kernel source code
Install several tools first:
Apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
Cd/usr/src
Wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.6.tar.bz2
Tar xjf linux-2.6.22.6.tar.bz2
Ln-s linux-2.6.22.6 linux
6) install the ftp server
Apt-get instal vsftpd
By default, vsftpd prohibits local users from logging on. Therefore, you need to modify the/etc/vsftpd. conf configuration.
7) install Apache
Apt-get install apache2
8) install lighttpd
Apt-get install lighttpd

Through the above steps, the Ubuntu Server can be basically used, and other software is installed very similar, it feels more convenient.
Related Article

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.