Once the Linux Redhat9 had been installed in the virtual machine,when the system is starting,it will automatically start the graphic mode.Similarly,it provides a graphic interface like Windows to change the dislay setting such as display-resolution,color and so on.But when I had changed the display-resolution from 800x600 to 1024x768,system remained me to restart the XWindow(Graphic interface),I followed the remainder to log out the system and relog in ,but unfortunately,after entering the desktop,nothing had been changed.I opened the config file of the display locating in the directory of /etc/X11/XF86config and modified it manually,after the operation,still failed to change the resoluation of the Redhat.
Ocasionally I found the virtual machine tools should be installed to enhance the graphic capability in a higher resolution,I was excited to seek for the relevant information on internet,finally the article was found of telling how to install the tools step by step detailedly.Combinated with my own experience,the steps would be written down as shown below
1.Set the Redhat to Text-Mode
In the grahpic mode,the Virtual Machine tools couldn't be installed successfully(A messsage will be prompted the reason).On how to change the graphic mode to text mode,you might modify the config file which locates in /etc/inittab(vi inittab),changed the line "id:5:initdefault" to "id:3:initdefault".Save the configuration then restart the system.
2.Map the CD_ROM to the file linux.iso(Mine is C:/Program Files/VMware/VMware Workstation/linux.iso) in the VM setting
3.Start the system to the command line mode (text mode like DOS style),executed the following command
mount -t iso9660 /dev/cdrom /mnt/cdrom
copy /mnt/cdrom/vmware-linux-tools.tar.gz /tmp
umount /dev/cdrom (The system complained "Device is busy",however,this will not affect the latter operations)
cd /tmp
tar zfx vmware-linux-tools.tar.gz
4.After the series of commands,a directory named vmware-tools-distrib would be found in /tmp
cd wmware-tools-distrib
./vmware-install.pl
Then pressed "yes" when encountering the questions
5.Execute the command startx in the command line,now system will enter into the graphic mode,now you can change the display setting from 800x600 to 1024x768.Logged out and relogged in the system
Ok,now ,you can see the screen is in the 1024x768 resolution,aha...success!Cheers !
Configure the display resolution in Linux RedHat9
最新推荐文章于 2024-01-10 15:14:36 发布