How to install Ubuntu Linux on VMWare VM

  

There are a lot of Linux operating systems, but there is a common problem, the installation disk is too big, and it is 4, 5G. It is also time consuming to download. Looking for a circle, I found Ubuntu Server 7.04 version is very suitable, only a 500M ISO file. Since it is a Server version, there must be no large components such as GUI and OpenOffice. These are not necessary for me.

After downloading Ubuntu Server version 7.04 through Thunder, it is also very convenient to install on VMware. It can be installed in less than 15 minutes. The next step is to configure the network. I used to use SuSE before, this is the first time I played Ubuntu, so some configuration methods are from Google. For example, if you don't know what the root password is, use sudo passwd root to set it up.

Network Configuration:

There will be two default NICs after VMware installation, VMnet8 (192.168.83.1) and VMnet1 (192.168.19.1), of course, on different machines, these two The IP of the network card will be different. VMware has two ways to link networks, using Bridged and NAT. The former needs to set XP's broadband link (ADSL) to share mode to use. Since the telecommunications company recently checked the sharing of broadband, hey, in order to avoid trouble, it does not use the Bridged method, only the NAT method.

The VMNet8 NIC used in the NAT mode mainly needs to know two important IPs of Gateway and DNS.

The first address (192.168.83.1): Static address, assigned to the VMware Network Adapter VMnet8 adapter for host Xp.

Second address (192.168.83.2): Static address, assigned to the NAT device.

(192.168.83.3 to 192.168.83.127) Static address, reserved.

(192.168.83.128 to 192.168.83.254): DHCP scope address range, assigned to the virtual machine.

Modify Ubuntu's network configuration:

1) Set IP, gateway, mask, etc. Vi /etc/network/interfaces, add the following:

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, add the following:

nameserver 192.168.83.2

3) Effective: /etc/init.d/networking restart

4) If XP's broadband link is OK, test if Ubuntu is OK. For example, ping www.sohu.com

Installing software:

Because the Server version is installed by default, nothing is installed. If you need software, you have to install it yourself. Fortunately, the network has been connected, and the others have become much easier. In order to facilitate installation, you need to switch to the root user. In addition, the ISO file is also loaded onto the virtual drive.

1) Update

apt-get update

2) Install gcc

apt-get install gcc

3) Install ssh After installation, the default is to start, so you can access Ubuntu through SecureCRT, which 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/... ux-2.6.22.6.tar.bz2

tar xjf linux-2.6.22.6.tar. Bz2

ln -s linux-2.6.22.6 linux

6) Installing ftp server

apt-get instal vsftpd

vsftpd disables local users by default Login, so you need to modify its configuration /etc/vsftpd.conf

7) Install Apache

apt-get install apache2

8) Install lighttpd

apt-get install lighttpd

Ubuntu Server can basically be used through the above steps, other software installation is very similar, it feels more convenient.

Copyright © Windows knowledge All Rights Reserved