Switch from: http://jackycheng2007.iteye.com/blog/494287when you use VNC view to open a remote Linux desktop, the desktop cannot be displayed, and only one gray background is added with a command line. At this time, you need to set it on the VNC Server: Edit/root/. VNC/xstartup Java code
- [Root @ localhost ~] # Vi/root/. VNC/xstartup
Remove the following two lines of comments: Java code
- Unset session_manager
- Exec/etc/X11/xinit/xinitrc
Run the following command to restart the VNC Server Java code.
- [Root @ localhost ~] # Vncserver-kill: 1
- [Root @ localhost ~] # Vncserver: 1
If you want to change the resolution of the VNC Server (the default resolution is 1024x768 ):
1. Run the following command to start the VNC server.
Java code
- [Root @ localhost ~] # Vncserver-geometry 1280x1024
This modification will be lost after the machine is restarted.
2. You can also modify the configuration to make it take effect after restart: Java code
- [Root @ localhost ~] # Vi/usr/bin/vncserver
Modify the following line: Java code
- $ Geometry = "1280x1024 ";