Traditional Culture Encyclopedia - Photography and portraiture - How to install Red Hat linux 9.5 on VMware

How to install Red Hat linux 9.5 on VMware

(1) Create a virtual machine

A. Use the mouse to double-click the "VMware workstation" icon on the desktop to run the virtual machine.

B. build a virtual machine. Click File-New-New Virtual Machine (

New virtual machine) ",the virtual machine creation menu pops up.

C. create the virtual machine step by step according to the wizard. First, choose whether the installation method is typical or typical.

"Custom" installation. I choose typical here.

D because it is used to install REDHAT, it is installed in the guest operating system.

Select LINUX, and then click Next.

E. In Virtual Machine Name, enter the name of the virtual machine to be created.

F. select the installation Location of the virtual machine in location. Because the operating system is installed in the virtual machine.

And it is suggested to install the virtual machine in a disk partition with large space.

G. If your computer is connected to a network, please select the appropriate network environment. I choose here.

Using a Bridging Network (Using a Routing Network)

H. Click Finish to return to the main interface of VMWARE, and the LINUX virtual machine is built.

2. Install the operating system

A. Select the LINUX virtual machine, and then click the Start button in the VMWARE toolbar to start the LINUX virtual machine.

B then insert the REDHAT7.3 CD, and the virtual system will be installed according to the installation method you choose.

3. Install REDHAT7.3 from the hard disk

If you find it time-consuming and inconvenient to install from the CD-ROM drive, you can convert the CD-ROM drive file into an ISO file copy.

Bay is in the hard disk and then installed from the hard disk.

A. Click Settings-Configuration Editor to enter the virtual machine setting interface.

Configuration.

B. In the hardware options, select DVD/CD-rom [ide 1: 0] and set it in the options on the left.

C select use ISO image in the connection options, and then click browse.

Button to find the directory where the ISO file is placed.

D. choose a red hat. Open the ISO file in the dialog box, and then click Open to open the ISO file (if the first ISO

After the file is installed, the computer prompts you to insert a second CD, so you choose RedHat. ISO here, and so on).

E. in the virtual device mode, select the interface mode of the virtual device, and select the item ideo: 0.

Then click OK to return to the virtual machine interface, and click Boot to install the operating system directly from the hard disk.

4 install VMware tools

When REDHAT7.3 is installed in a virtual machine, you will always be reminded to install VMware Tools in the status bar, because the virtual machine is the default.

With its own virtual graphics card, only after VMware Tools is installed correctly can it be started correctly in the virtual machine.

REDHAT7.3 operating system, and correctly set the parameters such as the resolution of the graphics card and display.

Note: Do this operation after installing LINUX.

A. restart the virtual machine, and then click settings-VMware Tools installation.

Click Install in the pop-up menu to install VMware tools.

B. Click on the device menu, and you will find that the menu item of the CD-ROM drive has changed from IDE: 0 to IDE:0 & gt;; Female: \

Program file \VMware\Vmware workstation \ program \Linux. ISO,

This means that VMware uses the ISO image file of LINUX as the CD of the virtual machine.

C actually, the VMware Tools software package is not really installed at this time, and further settings are needed.

Enter the text login interface, enter the administrator user name (ROOT) and password and enter ROOT@LOCALHOST ROOT.

Under the directory.

D. Enter the following commands after the command line (note the case and spaces, and remember to enter them after each command)

Mount-t iso9660/dev/CDROM/mnt (cdrom device is loaded and cdrom is read-only. )

Cp/mnt/VMware-LINUX-tools.tar.gz/TMP (copy the package to the tmp directory of Linux).

Uninstall/develop/CD (CD)

Cd /TMP (enter the TMP directory)

Tarzxf VMware-Linux-tools.tar.gz (decompression package)

Cd vmware-linux-tools (enter the unzipped directory)

. /install.pl (Run the installation command and the system will start to install vmware tools).

E' At the screen prompt, after entering the car twice in a row, the system installs VMWARE TOOLS, and at the command

Line, enter the STARTX command to start REDHAT7.3 and enter the graphical interface.

5. Set the resolution of the monitor.

At this time, the resolution of the virtual machine monitor is higher than that of the local machine, and the difference in resolution between the two monitors will cause graphics.

The window size is inconsistent, which makes it inconvenient to switch between the computer and the virtual machine.

So the resolution of the virtual machine display is reset.

A. type cd /etc/x 1 1(X capital) at the command line. Enter the directory where the configuration file is located, and enter

Mc command.

B enter the MC editor, use the up and down arrows to move the cursor to the XF86Config-4.vm file, and press F4 to display the file.

A text window now displays the configuration information.

D. The displayed configuration information can usually be found behind the title of the screen section.

E. after finding the resolution of the monitor, set all the resolutions used by ms windows to a mode higher than that of this machine.

Delete, delete must be deleted from high resolution to low resolution to avoid loopholes.

F Save the modified information, return to the directory of X 1 1, and enter startx to enter the graphical interface, the operating system in the virtual machine.

The resolution of has changed.

+++++++++++++++++++++++++++++++++++++++++++++

Using host-only under VMWARE to realize Redhat linux-guest surfing the Internet and start samba service.

The following is the situation after installing vmware and vmware-tools.

1, under windows, the network card is connected to the external network, and Properties-> Advanced-> Internet connection * * * Enjoy-> Select Allow other network users to pass. . -> select vmnet 1- > for the home network connection and confirm.

2. Configure static IP under linux.

Click Little Red Riding Hood-> System Settings-> Network to open the network configuration.

Double-click the configuration file below to open the dialog box and fill in the static ip address.

Address: 1 92.168.0.21(the last digit can be written casually except1).

Subnet mask: 255.255.255.0

Gateway:192.168.0.1

Point OK

Select DNS and fill in the main DNS:192.168.0.1.

Select a host, and you can see your host name and IP. The following needs to be changed.

rescue

3. Edit the host address

Create a new terminal and write vi /etc/hosts to open the hosts file.

Change the ip in front of the host to the ip set in the address. (usually in the first line)

4. Restart the network service

Service network restart

5. You should be able to surf the Internet.

Step 6 configure samba

Vi /etc/samba/smb.conf Open the configuration file.

Find hosts allow or add hostsallow =192.168.0 to the file (don't forget the last point).

Add a * * * shared folder at the end of the file. Here is an example. (There are instructions on how to add a * * * shared folder in the file. )

[root]

For windows, comment = all.

path = /root

Tourist ok = yes

Writeable = Yes

[data]

Notes = data

Path =/data

Tourist ok = yes

Writeable = Yes

Save exit

7. restart samba service

Service smb restart

8, and then under windows, you can access the * * * shared folder set above.

Start-> run-> Fill in \192.168.0.21.

Access your * * * Shared Folder.

9. Finally, you can log in to linux with remote tools such as putty.exe, and the IP under windows is:192.168.0.21.

In this way, you can use the command line under windows to work under linux without switching to vmware.

10, if the above settings are good, if not, use the following command under linux.

Ifconfig, check whether eth0 is set with IP:192.168.0.21.

otherwise

ifconfig eth 0 192. 168.0 . 2 1

Service smb restart

Service network restart