In suse linux, how does one implement VNC multi-user Remote Desktop configuration? Let's look at the actual case below.
1. Start and configure the VNC service
In suse linux, The VNC package is installed by default and can be started directly.
# Vncserver
You will require a password to access your tops.
Password: enter the Password)
Verify: enter again)
Tip: wocould you like to enter a view-only password y/n )? N whether to enter a password that can only be viewed, select No)
The message is as follows:
Xauth: creating new authority file/root/. Xauthority
New 'X' desktop is-eyh7: 1 desktop number is 1)
Creating default startup script/root/. vnc/xstartup
Starting applications specified in/root/. vnc/xstartup
Log file is/root/. vnc/-eyh7: 1.log
Configure the xstartup STARTUP script.
Use VI to edit the/root/. vnc/xstartup script
The content is as follows:
#! /Bin/sh
Xrdb $ HOME/. Xresources
Xsetroot-solid gray
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
Twm &
Change the last line
Gnome-session &
After saving, restart vnc.
Note: In/root /. the vnc/directory has a pair of log and pid files, such as machineName: 1. pid and machineName: 1.log. the pid with a file is the active service, and the service number is the number before the pid. Services that do not have a pid file are stopped.
You can use vncserver: number to start the stopped service.
You can use vncserver-kill to stop the service.
Note: If you are editing and configuring it under the ROOT user, your VNC will be able to be remotely connected by the ROOT user by default.
2. Configure VNC multi-user Remote Desktop
If you need to configure the suse linux vnc multi-user remote desktop, we also need a key file, that is,
Vncservers file. But when you enter this directory, you will find that there is no such file in suse linux. Isn't it possible in SUSE linux?
We can copy this file in redhat linux as 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
# <URL: http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
# 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 tables t when
# Doing so through a secure tunnel. See the "-via" option in
# 'Man vncviewer 'manual page.
# VNCSERVERS = "2: myusername"
# VNCSERVERARGS [2] = "-geometry 800x600-nolisten tcp-nohttpd-localhost"
(Add the following statement at the end of the file, as shown in the preceding two examples)
VNCSERVERS = "1: root"
VNCSERVERARGS [1] = "-geometry 800x600"
VNCSERVERS = "2: test"
VNCSERVERARGS [2] = "-geometry 800x600"
Or you can set it like this.
VNCSERVERS = "1: root 2: test" # describes all users to log on.
VNCSERVERARGS [1] = "-geometry 800x600" # Here is the configuration of each user
VNCSERVERARGS [2] = "-geometry 800x600"
Save
Note that remote desktop 2 is bound to the TEST user. We need to make the following settings
Linux-wq:/home # su-test
Test @ linux-wq: ~> Vncserver: 2
You will require a password to access your tops.
Password:
Verify:
Wocould 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 VNC configuration file of the TEST user.
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 gray
Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&
# Twm &
Similarly, you need to change the last line
Gnome-session &
Save and exit.
Iii. testing and verification
Use the ultra vnc client software for testing and verification
1. Use the ROOT user to log on
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1Z23131O-0.jpg "border =" 0 "alt =" "/>
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1Z2313159-1.jpg "border =" 0 "alt =" "/>
2. Use the TEST user to log on
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1Z2312W6-2.jpg "border =" 0 "alt =" "/>
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1Z231CF-3.jpg "border =" 0 "alt =" "/>
Now, let's try it.
Bkjia qr code
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1Z2312K2-4.jpg "border =" 0 "alt =" "/>
This article is from the "dripping water and stone" blog and will not be reposted!