Ubuntu under VNC use

Source: Internet
Author: User

Because to use the relationship between QEMU, as well as the data from the previous SSH to see the vncviewer, try today, remote and local end on Ubuntu 13.04 Desktop LTS, two are actually the same machine.


Just started in the ordinary user to open Vncserver, the results found that the desktop has not come out, so should be under the root start Vncserver.


1. Install Vnc4server on remote terminal:
Apt-get Install Vnc4server
Then start:
Vncserver
The first boot prompts for a password, and the password can only be set to 8 bits.


2.local Terminal Mount Vncviewer
sudo apt-get install vncviewer # tight VNC
#sudo apt-get Install Gvncviewer # Gvncviewer, not recommended
#sudo apt-get Install Vnc-java #jvncviewer, not recommended
Start:
Vncviewer ${remote}:1
Enter the password to see the remote window, but the desktop is a piece of black. So you need to have a GNOME desktop on the VNC server side.


3.remote-side Configuration Gnome Desktop
Vncserver-kill:1
Apt-get Install X-window-system-core
Apt-get Install GDM
Apt-get Install Ubuntu-desktop


Modify the ~/.vnc/xstartup, and note the last X-window-manager &amp, plus gnome-session
#!/bin/sh


# Uncomment the following-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 Grey
Vncconfig-iconic &
X-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
#x-window-manager &
Gnome-session &


Restart Vncserver, found that the desktop has, but no taskbar, no window title bar, Xstartup finally added:
Metacity--replace &
Restart Vncserver, found a title bar, but no desktop, the right mouse button can not be used.
You need to install Gnome-panel, and finally add Gnome-panel &amp to the Xstartup, so the taskbar and right mouse button are available.
Side bar need to change gnome-session style, ls/usr/share/gnome-session/sessions/can see different styles, tested only ubuntu-2d have sidebar, dashboard and so on. That is, modify the Xstartup:
Gnome-session & = Gnome-session--session=ubuntu-2d &


The default Vncserver resolution is 1024x768 x 768, so if you want to adjust, you can:
Vncserver:1-geometry 1366x768


Tight VNC Press F8 popup a popup into full screen (also can transfer clipboard data in local and remote), but full screen can not be F8 exit, Google for a long time did not find a valid method, only through Ctrl + ALT + F8, CTRL + Alt + F2, login to other accounts kill Vncviewer process, embarrassing.


There is a problem using input method in Vncviewer, possibly because CTRL + SPACE, will not be sent to the remote machine, but sent to the local machine.


3. Summary
In general, Linux does VNC server, need to configure the graphical interface of the startup script Xstartup,ubuntu version of the vncviewer is not very friendly, there may be some configuration is not complete.

Ubuntu under VNC use

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.