Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to turn on tip of vnc under Ubuntu

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to open the tip of vnc under Ubuntu". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Installation method

The code is as follows:

Sudo apt-get install vnc4server vnc-java

The default port starts at 5901

Modify ~ / .vnc / xstartup file

The source (original) file is as follows

The code is as follows:

#! / 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

Vncconfig-iconic &

X-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

X-server-manager &

This configuration cannot enter the desktop.

Change the last line x-server-manager to gnome-session

After the configuration file is modified

The code is as follows:

# 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

Vncconfig-iconic &

X-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

Gnome-session &

Just restart the service at this time.

The code is as follows:

[root@fancyos ~] # vncserver-kill: 1

[root@fancyos ~] # vncserver: 1

This is the end of the content of "how to open the tip of vnc under Ubuntu". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report