0

我正在尝试在 GNOME RHE7.9 上使用 xinetd 创建 VNC 会话,它运行良好。但是我想要实现的是在多个会话中登录到同一个用户。

例如:

创建会话 $hostname:1 并成功登录到 localhost:1 上的用户“xyzuser”

创建会话 $hostname:2 并尝试在 localhost:2 上使用同一用户“xyzuser”登录。但这不起作用。并在 vnc 客户端屏幕中获得解锁按钮而不是登录按钮

配置如下,

# cat /etc/gdm/custom.conf
[daemon]
KillInitClients=false
RemoteGreeter=/usr/libexec/gdm-simple-greeter
GdmXserverTimeout=60

[security]
DisallowTCP=false
AllowRemoteRoot=true

[xdmcp]
Enable=true
MaxSessions=99
HonorIndirect=true

[gui]

[greeter]
IncludeAll = false
DefaultWelcome=false
Welcome=Welcome to %n
SoundOnLogin=false

[chooser]

[debug]
Enable=true

/etc/xinet.d 下的 xinetd 文件如下,

# cat vnc1
service vnc1
{
        disable = no
        socket_type = stream
        protocol = tcp
        wait = yes
        user = nobody
        server = /usr/bin/Xvnc
        server_args = :1 -inetd -depth 24 -geometry 1280x1024 -once -query localhost -rfbauth /.vnc/passwd -SecurityTypes=None -IdleTimeout=0 -NeverShared -DisconnectClients=0 -desktop hostname:1
        port = 5901
}

# cat vnc2
service vnc2
{
        disable = no
        socket_type = stream
        protocol = tcp
        wait = yes
        user = nobody
        server = /usr/bin/Xvnc
        server_args = :2 -inetd -depth 24 -geometry 1280x1024 -once -query localhost -rfbauth /.vnc/passwd -SecurityTypes=None -IdleTimeout=0 -NeverShared -DisconnectClients=0 -desktop hostname:2
        port = 5902
}

安装的包有xinetd,tigervnc.x86_64,libvncserver.x86_64,tigervnc-server.x86_64

TIA

4

0 回答 0