Adjust the linux desktop screen size (screen resolution) in vmwarevm)

Source: Internet
Author: User



Method 1 (for virtual machines): Adjust the linux resolution under VMWARE

After linux is installed in VMWARE, the default resolution is 800x600, and the resolution is adjusted to 1024x768. The process of pixels being millions of pixels is as follows:

1. Click Install vmare tools under the VM to start linux in vmware first, there is a software package named: vmware-linux-tools.tar.gz under the/mnt/cdrom directory

2. copy the package to/root and decompress the package in the current directory. A vmware-tools-distrib directory is generated. # cd/mnt/cdrom
# Cp vmware-linux-tools.tar.gz/root # cd/root
# Tar-zxvf vmware-linux-tools.tar.gz
# Cd/root/vmware-tools-distrib
# Ls

3. Enter init on the terminal. 3. Switch to the command line mode.

4. Run the vmware-install.pl file and press enter all the way down OK! Then, a resolution list is displayed. Select 3, because 3 corresponds to 1024x768 in the resolution list.
#./Vmware-install.pl

5. init 5 to enter the graphical interface. click "configuration" --> "display" in the Start Menu, set it to 1024x768, set the pixel to millions of pixels, and press ctrl + D to log out quickly,

6. When I came back, I found that your desktop was beautiful ??

7. If the display is abnormal if the depth of the system is 16, you can change it to 24 in/etc/X11/XF86Config In the vi editor!

Now, we will introduce how to adjust the linux resolution of vmware.
In addition:
Tutorial 2 _ installing vmtool (Red Hat Linux 9)
Virtual Machine Software VM5.0.0 build-13124 Chinese version and virtual Linux system Red Hat Linux 9
First, start the Virtual Machine Software VM (the virtual Linux system Red Hat Linux 9 has been installed)
1. Start this VM
2. Log On with the Super User root
3. After logging on to the system, press Ctrl + Alt and click the menu bar. Choose Virtual Machine> Install VMware Tools> Install
4. after the virtual system is attached with a CD, the cdrom folder will pop up or click to enter/mnt/cdrom. In the folder/mnt/disc, the file package will pop up with the folder vmware-tools-distrib, click the extract button above to browse to the directory to be decompressed. Select the directory in the/root/folder (that is, the "root main directory" on your desktop) and start decompression.
5. Right-click the desktop and choose "New Terminal", type cd/root/vmware-tools-distrib in it, and press Enter. Input again./vmware-install.pl, you can install VMware Tools, press enter all the way, the following everyone understands, restart it.
6. Now, the mouse can freely access the host and virtual machine. The screen size is also adjustable, And the refresh speed becomes faster. The installation is successful !!
This method has not been tried, because vmtool has not been installed yet. **************************************** ************************************** Method 2:

Go to/etc/X11, open xorg. conf, and find the last section similar to the following:
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Add a Modes "1024x768" "1280x960" "1152x864" "800x600" x "" x "under Depth 24 and EndSubSection. I am using a virtual machine. This method is not effective.. Log out, log on to the system as root, modify/etc/X11/xorg. conf, change 1024*768 to 1280*800, save, and press Ctrl + Alt + Backspace.

It is recommended to back up one before modification. Prepare for the black screen. I have not seen 1024*768 in the file here. The above problem is finally solved! If you have a similar problem with me, you can adjust the "display" under "system settings", adjust the display type to the type that matches your display, and then log out of the computer. my display items cannot adjust the display type by themselves. In addition:
Resolution settings are mainly used to modify the etc/X11/xorg. conf file. You can add Resolution(If the monitor supports this function ).

   ResolutionIs defined in the Modes Section (Section "Modes") of the xorg. conf file ").
   ResolutionFor example, xmode-r 63-x 1360-y 768
-R is followed by the update rate, but this setting seems to be different from the actual one. Here I set 63, but the update rate is 61 under GNOME/KDE,
The xmode command displays a line of similar results:

QUOTE: Modeline "1360x768" 87.01 1360 1432 1576 1792 768 769 772 796
Add him to the Modes segment of the xorg. conf file, and modify the Screen segment of the xorg. conf file.

The original content may be as follows:

SubSection "Display"
Depth 15
Modes "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection

After the new resolution 1360X768 is added:

SubSection "Display"
Depth 15
Modes "1360x768" "1280x768" "1024x768" "800x600" "768x576" "640x480"
EndSubSection

There will be many different Depth values, and they are all added.

Restart X to create a new one. Resolution.

If the newly added ResolutionNot Displayed. It may be set in xmode-r. ResolutionThe Monitor is not supported. You can refer to the monitoring parameters HorizSync and VertRefresh in the xorg. conf file. You can comment out the parameters for the LCD. ResolutionIf you use CRT and LINUX cannot correctly identify your display, you can use xmode to calculate many update rates and add them to the Modes segment, for example, 1600x1200 60Hz, 1600x1200 61Hz, 1600x1200 74Hz .... 1600x1200, Hz, etc., one by one.

In some cases, even if you have a monitor driver, some ResolutionSuch as my 23-inch LCD TV. ResolutionIt supports 1360x768, but LINUX does not support it. You can only set it on your own.

PS. in my system, there is no MODES segment ******************************* **************************************** *******
Method 3:
Set the resolution of the graphic interface in linux



The current linux version can be changed in the display attributes of the graphic desktop.

Execute Xconfigurator to display the welcome screen. Select OK and press Enter. The program will automatically find the video card. Click OK. The display list is displayed. Select the display type or select Custom to customize a display. Next, select the video memory size. A window that appears later requires the identification of clock configurations. Select No Clockchip Setting. Then, OK, and then select three groups of colors and resolutions. Then, select OK and press Enter. Then, test the settings and click OK. The last YES and NO are to ask whether you can directly access X at next startup. Click OK again.

Or directly change the/etc/X11/XF86Config-4 and/etc/X11/XF86Config file!
Right-click the above file, select the advanced Editor (of course, you can also edit it using the vi command in the command line), and modify the last few lines of the file:
Modes "800x600" --- for explicit resolution
Virtual 800 600 --- the size of the Virtual desktop ******************************** **************************************** ****** Method (text mode) 4: Modify the display resolution in Linux text mode
The original resolution selected when installing linux is 800*600. Because 1024*768 is required, add vga = 0x317 to the line in the kernel of grub. conf. I tried it.
# Cd/boot # ls # gedit grub/grub. conf
Default = 0
Timeout = 5
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Title LeExOyO's Linux (2.4.20-8)
Root (hd0, 0)
Kernel/vmlinuz-2.4.20-8 ro root = LABEL =/vga = 0x317
Initrd/initrd-2.4.20-8.img

Appendix: Display Mode table
640x480 800x600 1024x768x1280
256 colors 0x301 0x303 0x305 0x307
32 K color: 0x310 0x313 0x316 0x319
64 K color 0x311 0x314 0x317 0x31A
16 M color 0x312 0x315 0x318 0x31B GrubIt is one of the system starters used to store startup Item settings and information. You must be very careful when modifying the settings. Otherwise, the system will paralyze the following: default = 0: menu item, 0 indicates the first item. If multiple systems are used, you can modify this item to change the default cursor position. timeout = 5: The time to be taken before the menu is automatically started, which can be modified as needed; splashimage = ·: context chart of the Startup menu, which can be modified as needed; title ·: name of the startup item, which can be modified as needed; kernel ·: Some version information and root path; rhgb: redhat graphics boot, that is, the image is displayed to replace the text information displayed during startup, after the startup, you can also see the quiet with dmesg: only important information is displayed during the startup process, and messages similar to hardware self-check are not displayed.
Modify the resolution. You can also add vga = 791 to the line of the kernel.

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.