Ubuntu13.04 after vncserver is installed, only the desktop is displayed, and the menu bar is not displayed.

Source: Internet
Author: User
Ubuntu13.04 after vncserver is installed, only the desktop is displayed, and no menu bar is displayed. 0. background: generally, the graphics system is not installed on the server operating system. In this case, you can install the vncserver software on the server to enable its graphical interface. And then on the local machine (windows or... ubuntu13.04 after vncserver is installed, only the desktop is displayed, and no menu bar is displayed. 0. background: generally, the graphics system is not installed on the server operating system. In this case, you can install the vncserver software on the server to enable its graphical interface. Then, install a vnc viewer on the local machine (windows or linux) to display the graphic interface. 1. install vncserver on ubuntu server with the following command: (My ubuntu server ip address is 10.141.247.20.) [plain] lisp @ lisp-ubuntu13 :~ $ Sudo apt-get install vnc4server 2. after installation, run the following command to start vncserver [plain] lisp @ lisp-ubuntu13 :~ $ Vncserver requires you to set a password. after this step is completed, a password is generated under the home directory. vnc directory to this directory, configure the xstartup file [plain] lisp @ lisp-ubuntu13 :~ $ Cd ~ /. Vnc lisp @ lisp-ubuntu13 :~ $ Vi xstartup 3. the original configuration file of xstartup is as follows: [plain] #! /Bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec/etc/X11/xinit/xinitrc [-x/etc/vnc/xstartup] & exec/etc/vnc/xstartup [-r $ HOME /. xresources] & xrdb $ HOME /. xresources xsetroot-solid gray vncconfig-iconic & x-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & x-window-manager & 4. if the preceding File (xstartup) is not modified, download a vnc from realvnc. Client (vnc viewer), address to open vnc viewer, enter the following (note server address) and click Connect, the following error may occur: (connect: Connection refused) solution is (link ), in the Service Command line restart vncserver, use the following command (the first command to disable display: 1, the second command to enable a display) [plain] lisp @ lisp-ubuntu13 :~ $ Vncserver-kill: 1 lisp @ lisp-ubuntu13 :~ $ Vncserver note: If the local system is ubuntu, install vnc viewer with the following command [plain] lisp @ lisp-ubuntu13 :~ $ Sudo apt-get install vnc4-common xvnc4viewer connect to the server with vcn viewer, use the following command [plain] lisp @ lisp-ubuntu13 :~ $ Vncviewer 10.141.247.20.: 1 5. after logon, you can see the following interface: 6. this is a character interface. to obtain a graphical interface, modify the file ~ /. Vnc/xstartup content: [plain] #! /Bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec/etc/X11/xinit/xinitrc [-x/etc/vnc/xstartup] & exec/etc/vnc/xstartup [-r $ HOME /. xresources] & xrdb $ HOME /. xresources xsetroot-solid gray vncconfig-iconic & x-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & x-window-manager & 7. for example, in step 3, restart the vncserver and connect to the VNC server to obtain an interface with only one blank desktop and other system menus. Column. What's the problem? 8. finally I had to install another graphics library Xfce4 [plain] lisp @ lisp-ubuntu13 :~ $ Sudo apt-get install xfce4 modify the configuration file ~ /. Vnc/xstartup: [plain] #! /Bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec/etc/X11/xinit/xinitrc [-x/etc/vnc/xstartup] & exec/etc/vnc/xstartup [-r $ HOME /. xresources] & xrdb $ HOME /. xresources xsetroot-solid gray vncconfig-iconic & x-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & x-window-manager & sesion -manager & xfdesktop & xfce4-panel & xfce4-menu-plugin & xfsettingsd & xfconfd & xfwm4 & restart vcnserver, log on to the local machine and obtain the following interface:
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.