In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to suse linux vnc multi-user remote desktop configuration combat, I believe many inexperienced people are helpless, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
How to implement VNC multi-user remote desktop configuration on suse linux? Let's look at the actual case below.
Start and configure the service.
Suse linux generally installed by default VNC component package, you can start directly
#vncserver
You will require a password to access your desktops.
Password: (Enter password)
Verify: (Enter again)
Would you like to enter a view-only password (y/n)? n (Enter a view-only password, select No)
The prompt information is as follows:
xauth: creating new authority file /root/.Xauthority
New 'X' desktop is -eyh7:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/-eyh7:1.log
Next configure the xstartup startup script.
Edit/root/.vnc/xstartup script with VI
It reads as follows:
#!/ bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Replace the last line with
gnome-session &
After saving, restart vnc.
Note: There are pairs of log and pid files in the/root/.vnc/directory, such as machineName:1.pid and machineName:1.log. The pid of the file is the active service, and the service number is the number before the pid. Those without pid files are services that have stopped.
You can start a stopped service using the vncserver: number
You can stop the service using vncserver-kill: number
Note: You are currently editing and configuring under ROOT users, so your VNC defaults to ROOT users who can connect remotely to VNC.
Second, configure VNC multi-user remote desktop
If we need to configure VNC multiuser remote desktops for SUSE LINUX, we also need a key file, which is located in the/etc/sysconfig directory.
vncservers files. However, when you enter this directory, you will find that there is no such file in SUSE LINUX. Can it not be implemented in SUSE linux?
We can do this by copying this file from REDHAT LINUX, because VNC works the same way.
linux-wq:/etc/sysconfig # vi vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# .
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
# Use "-nohttpd" to prevent web-based VNC clients connecting.
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel. See the "-via" option in the
# `man vncviewer' manual page.
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
(Following the example of the two sentences above, add the following sentence at the end of the file)
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"
VNCSERVERS="2:test"
VNCSERVERARGS[2]="-geometry 800x600"
Or it can be set like this.
VNCSERVERS="1:root 2:test" #Here is a description of all users who want to log in.
VNCSERVERARGS[1]="-geometry 800x600 " #Here is the configuration for each user
VNCSERVERARGS[2]="-geometry 800x600 "
Save after completion
Note, however, that Remote Desktop 2 is tied to TEST users. We need the following settings
linux-wq:/home # su - test
test@ linux-wq :~> vncserver :2
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
xauth: creating new authority file /home/test/.Xauthority
New 'X' desktop is linux-wcqm:2
Creating default startup script /home/test/.vnc/xstartup
Starting applications specified in /home/test/.vnc/xstartup
Log file is /home/test/.vnc/linux-wcqm:2.log
Then modify the TEST user's VNC profile
test@linux-wcqm:~> cd /home/test/.vnc
test@linux-wcqm:~/.vnc> ls
linux-wcqm:2.log linux-wcqm:2.pid passwd xstartup
test@linux-wcqm:~/.vnc> vi xstartup
#!/ bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
For the same reason, the last line should read
gnome-session &
Then save exit.
III. Testing and verification
Use ultra vnc client software for testing and validation
1. Use ROOT users to log in
2. Use TEST user to log in
Modify the password for VNC access
Use the command vncpasswd to modify the VNC password of different users. Be sure to note that if VNC configured for different users needs to be modified separately in their respective users, for example, in my experiment, root user and oracle user need to modify separately. The modification process is as follows:
[root@testdb ~]# vncpasswd
Password:
Verify:
All right, let's try it out.
After reading the above, do you know how to configure suse linux vnc multi-user remote desktop? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
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.