[Topic DIscussion] 向日葵怎么开机启动
Tofloor
poster avatar
🚲
deepin
2023-11-14 17:48
Author

向日葵设置了开机启动,但是好像不输入开屏密码,向日葵并没有启动。我电脑装了远程开机的硬件(硬件开机,和系统无关),向日葵不自动登录就没办法远程控制了

image.png

Reply Favorite View the author
All Replies
fax928
deepin
2023-11-14 19:10
#1

向日葵软件里面设置开机启动试试看呢。

Reply View the author
vivian_me
deepin testing team
2023-11-14 19:27
#2

刚试了下 好像是有这个问题,我这边反馈下哈

Reply View the author
dxy2020
deepin
2023-11-14 23:28
#3

veyon也有同样的问题,重启或关机后首次启动,没有输入用户密码,就没法启动远程后台服务

Reply View the author
Ziggy
deepin
2023-11-15 05:51
#4

很多图形软件本身是要先启动lightdm.service再启动自己的进程的,如果lightdm.service或者display server没有就绪就会导致图形化进程启动异常的。

如果是内网或者公网ip桌面远程可以试试vnc

[经验分享] linux/windows远程管理deepin桌面-安装X11VNC Server

Reply View the author
忘记、过去
deepin
2023-11-15 21:57
#5

向日葵有自己的系统级服务,通过 systemctl 设置开机自启,就可以在不登录桌面的情况下连接了(需要保证网络可以自动连接成功)


官网的版本安装后,修改 /etc/systemd/system/multi-user.target.wants/runsunloginclient.service,改为以下内容

[Unit]
Description=check running sunloginclient loop
Wants=network-online.target
After=display-manager.service network.target network-online.target

[Service]
Type=simple
ExecStart=/usr/local/sunlogin/bin/oray_rundaemon -m server
ExecStop=/usr/bin/killall oray_rundaemon

[Install]
WantedBy=graphical.target

然后依次执行以下命令

sudo mv /etc/systemd/system/multi-user.target.wants/runsunloginclient.service /etc/systemd/system/runsunloginclient.service
systemctl daemon-reload
systemctl enable --now runsunloginclient.service

之后应该就可以实现开机后直接可以连接向日葵了,不需要登录桌面(启动器里面也可以选择取消开机自启了)

Reply View the author