Use vnc in ubuntu

Source: Internet
Author: User
Because of the relationship between qemu and vnc in ubuntu, as well as the information about vncviewer seen in ssh, I tried it today. both remote and local terminals are on ubuntu1304desktoplts, the two actually use the same machine. I started to use vnc under vncserver ubuntu as a common user. because of the relationship between qemu and vncviewer, I tried it today, both remote and local terminals are on ubuntu 13.04 desktop lts, and the two are actually the same machine. At the beginning, I started vncserver under a common user. I found that the desktop was always running, so I should start vncserver under root. 1. install vnc4server: apt-get install vnc4server on the remote end and start it. the first startup of vncserver will prompt you to enter the password, and the password can only be set to 8 characters. 2. install vncviewersudo apt-get install vncviewer # Tight VNC # sudo apt-get install gvncviewer # gvncviewer on the local end. We do not recommend # sudo apt-get install vnc-java # jvncviewer. it is not recommended to start: vncviewer $ {remote}: 1. enter the password to view the remote window, but the desktop is black. Therefore, gnome desktop must be configured on the vnc server. 3. remote end configuration gnome desktop vncserver-kill: 1apt-get install x-window-system-coreapt-get install gdmapt-get install ubuntu-desktop modification ~ /Xstartup, note out the final x-window-manager &, and add gnome-session #! /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 /. xresourcesxsetroot-solid greyvncconfig-iconic & x-terminal-emulator-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop" & # x-window-manager & gnome- session & restart vncserver, desktop is found, but there is no Taskbar or window title In the left-side navigation pane, add metacity -- replace & restart vncserver, and find that there is a title bar, but there is no desktop, right-click cannot be used. You need to install gnome-panel and add gnome-panel & at the end of xstartup, so that the taskbar and right-click can be used. Sidebar needs to change the gnome-session style, ls/usr/share/gnome-session/sessions/can see different styles, tested only ubuntu-2d has sidebar, dashboard and so on. That is to modify the xstartup in: gnome-session & => gnome-session -- session = ubuntu-2d & default vncserver resolution is 1024x768, to adjust, you can do this: vncserver: 1-geometry 1366x768 tight vnc press F8 to pop up a popup to enter full screen (clipboard data can also be transferred in local and remote), but full screen cannot press F8 to exit, google hasn't found a valid method for a long time. you can only use Ctrl + Alt + F8, Ctrl + Alt + F2 to log on to another account and kill the vncviewer process ,? Why? /Div> The input method used in vncviewer is incorrect. it may be because ctrl + space is not sent to the remote machine, but to the local machine. 3. In summary, for linux as a vnc server, you need to configure the graphic interface startup script xstartup. the vncviewer in ubuntu is unfriendly and some configurations may be incomplete.

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.