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 connect with redhat linux as5 vnc

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail how to connect to redhat linux as5 vnc, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.

RedHat Linux AS 5 already has vnc installed when you install the system, so you just need to start it.

Enter # vncserver at the terminal

When the service starts, the first startup prompts you for a password, and the following information appears when you start up later

Creating default startup script / root/.vnc/xstartup

Starting applications specified in / root/.vnc/xstartup

Log file is / root/.vnc/localhost.localdomain:1.log

Because it needs to be used when logging in on the client, now go to Windows and use vnc browser to log in.

Click OK to enter and find that it is only the interface that displays the command line input. What I want is in the graphical interface, where I want to modify the configuration of the / root/.vnc/xstartup file (note that this file is available only after the implementation of VNCSERVER)

There are many hidden folders under root. Click "View-Show Hidden Files" and tick to find the .vnc folder. Open it with a text document and open the

Unset SESSION_MANAGER

Exec / etc/X11/xinit/xinitrc

The comments are removed, and the modified file 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 &

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

Gnome-session& / / this used to be the modification of tmw& to what it is now

Save and restart the VNC service

Vncserver-kill: 1

Then start it with the vncserver: 1 command

Connect to Linux with vnc under Windows, and you can see the desktop of Linux. (note: if you connect to see a command window, restart the server and then connect to the graphical desktop.)

If the main console does not have vnc viewer installed, it can also be controlled through the browser. For example, the access address is:: 5802 (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.

# vncpasswd

This command can change the VNC password of the current user

Please log in to the system using the user who needs to change the VNC password to execute this command

Add: VNC default ROOT login, if you are using a general account other than ROOT access.

The following settings can be made:

1. Add

Groupadd guest

Useradd-g user1 users

Useradd-g user2 users

Cd / etc/sysconfig/

Modify vncservers

The last 2 lines of the default file are as follows. It is annotated. Indicate the form of modification.

# VNCSERVERS= "2:myusername"

# VNCSERVERARGS [2] = "- geometry 800x600-nolisten tcp-nohttpd-localhost"

The following statement is now added

VNCSERVERS= "1:guest1 2:guest2" describes all users who want to log in here.

VNCSERVERARGS [1] = "- geometry 800x600" here is the configuration of each user

VNCSERVERARGS [2] = "- geometry 800x600"

VNCSERVERARGS [3] = "- geometry 800x600"

Save after completion

Restart the service.

VNC START FAILED

Failed.

OK then copies the file

Cd / root

Cp-r .vnc / / home/user1

There is no permission after copying. The owner of the file has not changed.

Enter the directory to modify

Cd / home/user1

Chown-R user1:users. VNC /

Restart the service. It's okay now.

Other users can set it according to the law.

About how to connect redhat linux as5 vnc to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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