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 set up suse linux vnc connection in practice

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

Share

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

This article shows you how to set up suse linux vnc connections in practice, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

VNC is used for remote desktop control with graphical interface under SUSE LINUX ENTERPRISE SERVER 10 64BIT.

1. Enable SUSE remote control

SUSE has VNC installed by default, open YaST, Network Services, remote Management (remote administration), select "allow remote Management", set it in the options below, select "Open Port", and click finish. Note that if you can't connect, please adjust the firewall that comes with suse and open the corresponding port.

2. Start VNC service.

After SSH logs in, execute the vncserver command (or / usr/local/vnc #. / vncserver)

Hint: You will require a password to access your desktops.

Set the password for remote access. (the file path is in / usr/local/vnc/vncpasswd)

Password: (enter password)

Verify: (enter again)

Hint: Would you like to enter a view-only password (yzone)? N (whether to enter a password that can only be viewed, choose No)

The prompts are as follows:

Xauth: creating new authority file / root/.Xauthority

New'X' desktop is-eyh7:2 (Desktop No. 2)

Creating default startup script / root/.vnc/xstartup

Starting applications specified in / root/.vnc/xstartup

Log file is / root/.vnc/-eyh7:2.log

3. Configure xstartup startup script.

Edit / root/.vnc/xstartup script with VI

The contents are as follows:

#! / bin/sh

Xrdb $HOME/.Xresources

Xsetroot-solid grey

Xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

Twm &

After the configuration file is changed

#! / bin/sh

Xrdb $HOME/.Xresources

Xsetroot-solid grey

Xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &

# twm &

Gnome-session &

Comment out twm & add a sentence to the last line

Gnome-session &

To launch the gnome graphical interface window.

After saving, restart vnc.

Note: there are pairs of log and pid files in the / root/.vnc/ directory, such as machineName:2.pid and machineName:2.log. Pid with files is the active service, and the service number is the number before pid. Services that do not have pid files are stopped.

You can use the vncserver: number to start the stopped service

You can use vncserver-kill: number to stop service.

Note: after several connections, if you want to return to 1, you can delete / tmp/.X11-unix/X1 X2, etc. (a total of 0-99 desktops)

And other PID and LOG files under / root/.vnc

4. Windows vnc client software.

Run the VNC viewer and enter the IP and desktop number:

For example, 192.168.1.252, then enter the VNC connection password to log in.

5. Control through the browser:

If the main console does not have vnc viewer installed, it can also be controlled through the browser. For example, the access address is:: 5801 (where the port number = desktop display number + 5800, and the previous configuration prompt that the desktop number is 2, so the port number is 5802). If you need the browser to open java applet, a login interface will appear.

The above content is how to set up suse linux vnc connection in practice. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

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