VNCserver服务配置(麒麟版)
vncserver是linux系统进行终端登录较为好用的一款软件,但在某些情况下,我们登录到vnc终端时,发现出现界面不显示,只有命令行的情况,此时需要对用户进行一些配置,保证终端软件的运行。
- root用户配置步骤
- 安装vncserver服务包
Kylin系统默认安装已经安装了vncserver.
若配置了yum源,执行
yum install vnc*
- 执行systemctl daemon-reload 启动相应服务
systemctl daemon-reload
- 拷贝配置文件
cp /lib/systemd/system/vncserver@.service
/etc/systemd/system/vncserver@:1.service
(这里的@:1 会对应下边vncserver起桌面时的桌面端口号.)
- 在/etc/systemd/system/vncserver@:1.service中修改如下
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type= simple //这里改成s