Linux Red Hat 5.6 和 VNC:KDE 和 VNC侏儒
我正在使用 Red Hat 5.6,并且我已经为我的 Unix 用户配置了 VNC,没有出现任何问题。我能够登录它,它默认为 Gnome。机器上安装了 KDE,我想使用它。下面是我的 ~/.vnc/xstartup 文件。
我尝试用“startkde &”替换下面的 twm但没有成功。尽管下面显示了 twm,但 Gnome 似乎是默认桌面,即使我更改了它,它也不起作用。即使没有列出桌面,Gnome 仍然会启动。
有谁知道为什么会发生这种情况以及如何启动其他桌面?
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
vncconfig -nowin &
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" &
twm &
I am using Red Hat 5.6 and I have configured VNC for my Unix user with no issues. I am able to log into it and it defaults to Gnome. KDE is installed on the machine and I would like to use it. Below is my ~/.vnc/xstartup file.
I tried replacing twm below with "startkde &" but it didn't work. Gnome seems to be the default desktop even though twm is shown below and even once I change it, it doesn't work. Even with no desktop listed, Gnome still starts.
Does anyone know why this is happening and how I can start other desktops?
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
vncconfig -nowin &
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" &
twm &
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该脚本永远不会到达底部,因为“exec”导致当前进程被 exec 的目标替换,在本例中是脚本 /etc/X11/xinit/xinitrc,它来源 /etc/X11/ Xsession 脚本,依次执行 /etc/X11/Xsession.d 的运行部分,调用默认的 x-session-manager,即 gnome-session。
The script is never getting to the bottom part, as 'exec' causes the current process to be replaced by the target of the exec, in this case the script /etc/X11/xinit/xinitrc, which sources the /etc/X11/Xsession script, which in turn does run-parts of /etc/X11/Xsession.d, invoking the default x-session-manager, which is gnome-session.
只是记录一个如何启动 KDE(适用于 Centos7)的示例,请参见下文:
下面是在 Centos7 上启动 KDE、MATE 或 Gnome 的更复杂的原文。
Just to record a example of how to start up KDE (works on Centos7), see below:
Below is the more complex original to start KDE, MATE or Gnome, on Centos7.
只是想补充一点,在将 exec 放在配置文件的底部之后,这在我的 rhel9 上有效。
Just want to add that this worked on my rhel9, after putting exec on the bottom of the config file.