如何在CentOS下安装远程工具向日葵呢?马上为各位分解出来!
1、官网下载向日葵的rpm包
2、安装向日葵
root@shigj ~]# rpm -ivh sunloginclient-11.0.0.36662.x86_64.rpm
error: Failed dependencies:
安装依赖包 webkitgtk3 libappindicator-gtk3
webkitgtk3 is needed by sunloginclient-11.0.0.36662-1.x86_64
libappindicator-gtk3 is needed by sunloginclient-11.0.0.36662-1.x86_64
[root@shigj ~]# rpm -ivh sunloginclient-11.0.0.36662.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:sunloginclient-11.0.0.36662-1 ################################# [100%]
sunloginclient: no process found
sunloginclient_linux: no process found
check operate system OK
Created symlink from /etc/systemd/system/multi-user.target.wants/runsunloginclient.service to /etc/systemd/system/runsunloginclient.service.
3、查看是否安装成功
[root@shigj ~]# systemctl status runsunloginclient.service
● runsunloginclient.service - check running sunloginclinet loop
Loaded: loaded (/etc/systemd/system/runsunloginclient.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2021-11-14 22:46:57 CST; 1min 59s ago
Main PID: 3336 (oray_rundaemon)
CGroup: /system.slice/runsunloginclient.service
├─3336 /usr/local/sunlogin/bin/oray_rundaemon -m server
└─3338 /usr/local/sunlogin/bin/sunloginclient -m service
Nov 14 22:46:57 shigj systemd[1]: Started check running sunloginclinet loop.
Nov 14 22:46:57 shigj oray_rundaemon[3336]: InitConfig @ 756
3、调用向日葵
/usr/local/sunlogin/bin/sunloginclient
4、设置笔记本电脑合上屏幕之后保持联网状态
[root@shigj ~]# vim /etc/systemd/logind.conf
修改HandleLidSwitch=lock
[root@shigj ~]# systemctl restart systemd-logind