Ubuntu 22.04 安装向日葵远程控制_ubuntu远程控制软件
1. 前言
由于公司客户的服务器用是图形化桌面,所以我们需要一个远程控制工具来控制服务器,目前市面上两款比较热门的控制软件就是ToDesk和向日葵了,我们今天就来学习一下向日葵的使用
2. 下载软件
前往向日葵官网下载
向日葵远程控制app官方下载 - 贝锐向日葵官网
选择好自己的系统和需求,我们选择的是图形版本
3. 安装向日葵
3.1 在Ubuntu系统中打开终端并下载依赖
sudo add-apt-repository universesudo apt update sudo apt install -y libgconf-2-4sudo apt --fix-broken install
3.2 安装软件
将软件包传输到自己的文件目录下,比如我是放到了下载目录下,然后再该目录下打开终端
## 安装软件sudo dpkg -i SunloginClient_15.2.0.63064_amd64.deb
3.3 创建System服务文件
cat /etc/systemd/system/sunlogin.service [Unit]Description=Sunlogin Remote ClientAfter=network.target graphical.target[Service]Type=simpleExecStart=/usr/local/sunlogin/bin/sunloginclientRestart=on-failureRestartSec=5[Install]WantedBy=multi-user.target
3.4 启动服务
sudo systemctl daemon-reload sudo systemctl start sunlogin sudo systemctl status sunlogin
4. 故障问题
4.1 遇到不能启动的时候用systemctl status sunlogin查看异常
sudo update-locale LANG=zh_CN.UTF-8sudo locale-gen
4.2 远程连接向日葵黑屏问题
解决方案:
1. 修改GDM配置文件
sudo nano /etc/gdm3/custom.conf
2. 禁用 Wayland 启用标志
找到 WaylandEnable=true
行并将其更改为 WaylandEnable=false
。
或者将前面的WaylandEnable=false注释去掉。
3. 保存关闭
4. 重启系统
sudo reboot
5. 重新连接
4.3 报错提示
解决:
## 运行sudo apt install libgconf-2-4## 出现错误不要慌Reading package lists... DoneBuilding dependency treeReading state information... DoneYou might want to run \'apt --fix-broken install\' to correct these.The following packages have unmet dependencies:libgconf-2-4 : Depends: gconf2-common (= 3.2.6-6ubuntu1) but it is not going to be installedRecommends: gconf-serviceE: Unmet dependencies. Try \'apt --fix-broken install\' with no packages (or specify a solution).## 不用管上面继续运行sudo apt --fix-broken installsudo apt install libgconf-2-4## 再次运行/usr/local/sunlogin/bin/sunloginclient