[1]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:12 的评论:VMware下黑屏的,我贡献一下我的配置解决了黑屏,直接服务器安装的,直接用lib的配置也不会黑屏。
------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H% [2]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:13 的评论:PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target [3]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:16 的评论:另外上面作者的命令顺序反了,折腾半天。应该是先启用,再启动。。。
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
[1]来自福建龙岩的 Chrome 90.0|Windows 10 用户 发表于 2021-05-20 18:53 的评论:# systemctl status vncserver@:1.service
● vncserver@:1.service - Remote Desktop VNC Service
Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2021-05-20 18:51:18 CST; 6s ago
Process: 37048 ExecStop=/usr/bin/vncserver -kill :1 (code=exited, status=0/SUCCESS)
Process: 37046 ExecStart=/usr/bin/vncserver -autokill :1 (code=exited, status=0/SUCCESS)
Process: 37043 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1
[1]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:12 的评论:VMware下黑屏的,我贡献一下我的配置解决了黑屏,直接服务器安装的,直接用lib的配置也不会黑屏。
------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H% [2]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:13 的评论:PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target [3]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:16 的评论:另外上面作者的命令顺序反了,折腾半天。应该是先启用,再启动。。。
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
[1]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:12 的评论:VMware下黑屏的,我贡献一下我的配置解决了黑屏,直接服务器安装的,直接用lib的配置也不会黑屏。
------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H% [2]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:13 的评论:PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target [3]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:16 的评论:另外上面作者的命令顺序反了,折腾半天。应该是先启用,再启动。。。
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
[1]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:12 的评论:VMware下黑屏的,我贡献一下我的配置解决了黑屏,直接服务器安装的,直接用lib的配置也不会黑屏。
------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H% [2]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:13 的评论:PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target [3]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:16 的评论:另外上面作者的命令顺序反了,折腾半天。应该是先启用,再启动。。。
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
[1]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:12 的评论:VMware下黑屏的,我贡献一下我的配置解决了黑屏,直接服务器安装的,直接用lib的配置也不会黑屏。
------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H% [2]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:13 的评论:PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target
[1]来自四川成都的 Chrome 78.0|Windows 10 用户 发表于 2020-08-18 11:12 的评论:VMware下黑屏的,我贡献一下我的配置解决了黑屏,直接服务器安装的,直接用lib的配置也不会黑屏。
------------------------------------------------------------------------
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/root/.vnc/%H%
[1]来自上海的 Chrome 69.0|Windows 7 用户 发表于 2020-01-02 10:11 的评论:在执行systemctl start vncserver@:1.service命令之后,提示出错,用systemctl status vncserver@:1.service查看后提示:
● vncserver@:1.service - Remote Desktop VNC Service
Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-01-02 10:05:37 CST; 7s ago
Process: 108612 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=200/CHDIR)
1月 02 10:05:37 centos8 systemd[1]:
[1]来自西藏的 Chrome Mobile 58.0|Android 5.1 用户 发表于 2020-03-17 15:34 的评论:黑屏
```
-- Unit vncserver@:1.service has finished shutting down.
Mar 17 14:51:45 octave.sh su[14532]: (to vnc_user) root on pts/0
Mar 17 14:51:45 octave.sh su[14532]: pam_systemd(su-l:session): Cannot create session: Already running in a session or user slice
Mar 17 14:51:45 octave.sh su[14532]: pam_unix(su-l:session): session opened for user vnc_user by root(uid=0)
Mar 17 14:52:11 octave.sh polkitd[753]: Registered Authentication Agent for unix-process:14567:1448779 (system bus name :1.2191 [/ [2]来自西藏的 Chrome Mobile 58.0|Android 5.1 用户 发表于 2020-03-17 15:36 的评论:[14532]: pam_systemd(su-l:session): Cannot create session: Already running in a session or user slice
Mar 17 14:51:45 octave.sh su[14532]: pam_unix(su-l:session): session opened for user vnc_user by root(uid=0)
Mar 17 14:52:11 octave.sh polkitd[753]: Registered Authentication Agent for unix-process:14567:1448779 (system bus name :1.2191 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale zh_CN.UTF-8)
Mar 17 14:52:36 octave.sh polkit
[1]来自西藏的 Chrome Mobile 58.0|Android 5.1 用户 发表于 2020-03-17 15:34 的评论:黑屏
```
-- Unit vncserver@:1.service has finished shutting down.
Mar 17 14:51:45 octave.sh su[14532]: (to vnc_user) root on pts/0
Mar 17 14:51:45 octave.sh su[14532]: pam_systemd(su-l:session): Cannot create session: Already running in a session or user slice
Mar 17 14:51:45 octave.sh su[14532]: pam_unix(su-l:session): session opened for user vnc_user by root(uid=0)
Mar 17 14:52:11 octave.sh polkitd[753]: Registered Authentication Agent for unix-process:14567:1448779 (system bus name :1.2191 [/
[1]来自上海的 Chrome 69.0|Windows 7 用户 发表于 2020-01-02 10:11 的评论:在执行systemctl start vncserver@:1.service命令之后,提示出错,用systemctl status vncserver@:1.service查看后提示:
● vncserver@:1.service - Remote Desktop VNC Service
Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-01-02 10:05:37 CST; 7s ago
Process: 108612 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=200/CHDIR)
1月 02 10:05:37 centos8 systemd[1]:
[1]来自上海的 Chrome 69.0|Windows 7 用户 发表于 2020-01-02 10:11 的评论:在执行systemctl start vncserver@:1.service命令之后,提示出错,用systemctl status vncserver@:1.service查看后提示:
● vncserver@:1.service - Remote Desktop VNC Service
Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-01-02 10:05:37 CST; 7s ago
Process: 108612 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 > /dev/null 2>&1 || : (code=exited, status=200/CHDIR)
1月 02 10:05:37 centos8 systemd[1]:
分享到微信
打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。