In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is the method of installing vncserver in ubuntu". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the method of installing vncserver in ubuntu".
Ubuntu installation vncserver tutorial:
1. Open a Terminal window
2. Download vnc4server:
Sudo apt-get install vnc4server
3. Start vnc4server:
Vnc4server
At this point, you will be prompted for a password, which will be used when linking through the client.
After entering your password, you will see a prompt similar to the following:
New'* 3 (*) 'desktop is *: 3 (* represents the host name)
Take notice of the number after the colon (, in this case it is "3."
After starting vnc4server, a .vnc directory will be generated in your home directory.
You can now link to the server through the vnc client.
4. Stop a vnc4server
Vnc4server-kill: 3
Replace 3 here according to the number you got when you started.
5. Open the .vnc / xstartup file and edit:
Gedit /. Vnc/xstartup
The file will look like this:
#! / 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 grey
Vnccon**-iconic &
X-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
X-window-manager &
6. Modify the .vnc / xstartup file and save
Uncomment lines that start with unset and exec, and comment lines that start with xsetroot,vnccon**,xterm and twm. After execution, it looks like this:
#! / 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 grey
# vnccon**-iconic &
# x-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
# x-window-manager &
7. Modify the license of the / etc/X11/xinit/xinitrc file to make it executable:
Sudo chmod 755 / etc/X11/xinit/xinitrc
8. Start vnc4server:
Vnc4server
Note: remember the number indicated after the colon here
9. Log in to this server from another computer:
Vncviewer remote-server:3
Follow the prompts to enter the password you entered in part 3 to successfully enter the remote desktop.
10. If the graphical interface cannot be seen under VNC due to the failure of the previous execution, and the mouse changes to an "X" shape, please check whether the seventh item has been executed, and delete the newly built VNCServer. Vncserver-kill: 1 (1 represents the vncserver sequence number started earlier)
11. Ubuntu 10.10 adds the definition of the Windows key, which is defined as the superkey. When the user presses the letter "d" under VNC, it will be mistakenly regarded as a shortcut to return to the desktop so that d cannot be entered. At this time, you can modify the shortcut key to avoid the bug. Open a new terminal and type: gconf-editor, which will pop up a dialog box to find "show desktop" in "Apps- > Metacity- > Global keybingdings". Just change its default value D to D.
Thank you for your reading, the above is the content of "what is the method of installing vncserver in ubuntu". After the study of this article, I believe you have a deeper understanding of what is the method of installing vncserver in ubuntu. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.