如何在CentOS 8/RHEL 8上安装AnyDesk

时间:2020-02-23 14:30:35  来源:igfitidea点击:

AnyDesk是Linux用户可用的最佳专有远程桌面应用程序之一。该软件程序提供对运行Windows,macOS,Linux和FreeBSD的计算机的平滑无缝的远程访问。在本指南中,很好地解释了如何在CentOS 8/RHEL 8 Linux Desktop中安装AnyDesk。

在CentOS 8/RHEL 8上安装AnyDesk后,我们将能够从Windows,Mac和其他基于Linux的系统访问Linux系统。我们将享受其简单易用的设置和管理工具,使我们能够轻松管理远程系统。

在CentOS 8/RHEL 8上安装AnyDesk

很好地安装从带有预先打包的RPM软件包的AnyDesk Yum存储库在CentOS 8/RHEL 8上安装AnyDesk。我们可以手动下载并安装RPM软件包,但这意味着必须手动完成更新。

将AnyDesk存储库添加到RHEL/CentOS 8

使用下面共享的命令将存储库添加到系统。

CentOS 8:

cat > /etc/yum.repos.d/AnyDesk-CentOS.repo << "EOF"
[anydesk]
name=AnyDesk CentOS - stable
baseurl=http://rpm.anydesk.com/centos/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://keys.anydesk.com/repos/RPM-GPG-KEY
EOF

RHEL 8:

cat > /etc/yum.repos.d/AnyDesk-RHEL.repo << "EOF"
[anydesk]
name=AnyDesk RHEL - stable
baseurl=http://rpm.anydesk.com/rhel/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://keys.anydesk.com/repos/RPM-GPG-KEY
EOF

在CentOS 8/RHEL 8 Linux上安装AnyDesk

将AnyDesk存储库添加到Linux系统后,即可使用yum或者dnf命令行工具在CentOS 8/RHEL 8上安装AnyDesk。

sudo dnf makecache
sudo dnf install -y redhat-lsb-core
sudo dnf install anydesk

出现提示时,同意导入GPG密钥。

AnyDesk CentOS - stable                                                                                            431  B/s | 488  B     00:01    
 AnyDesk CentOS - stable                                                                                            1.5 kB/s | 1.7 kB     00:01    
 Importing GPG key 0xCDFFDE29:
  Userid     : "philandro Software GmbH theitroad@localhost"
  Fingerprint: D563 11E5 FF3B 6F39 D5A1 6ABE 18DF 3741 CDFF DE29
  From       : https://keys.anydesk.com/repos/RPM-GPG-KEY
 Is this ok [y/N]: y

在CentOS 8/RHEL 8上开始安装AnyDesk的快捷键。

AnyDesk CentOS - stable                                                                                            1.5 kB/s | 1.7 kB     00:01    
Dependencies resolved.
===================================================================================================================================================
 Package                             Arch                           Version                                Repository                         Size
===================================================================================================================================================
Installing:
 anydesk                             x86_64                         5.1.2-1.el7                            anydesk                           3.3 M
Installing dependencies:
 mesa-libGLU                         x86_64                         9.0.0-15.el8                           AppStream                         185 k

Transaction Summary
===================================================================================================================================================
Install  2 Packages

Total download size: 3.5 M
Installed size: 12 M
Is this ok [y/N]: y

我们可以使用以下命令检查安装的AnyDesk版本:

$rpm -qi anydesk 
Name        : anydesk
Version     : 5.1.2
Release     : 1.el8
Architecture: x86_64
Install Date: Fri 18 Oct 2019 08:17:34 AM EAT
Group       : Applications/Internet
Size        : 12435395
License     : Proprietary and BSD and OpenSSL and zlib and LGPLv2+
Signature   : RSA/SHA256, Mon 26 Aug 2019 02:25:35 PM EAT, Key ID 18df3741cdffde29
Source RPM  : anydesk-5.1.2-1.el8.src.rpm
Build Date  : Fri 16 Aug 2019 05:14:43 PM EAT
Build Host  : build-debian-7-64.philandro.local
Relocations : (not relocatable)
Packager    : AnyDesk Software GmbH
Vendor      : AnyDesk Software GmbH
URL         : http://anydesk.com/remote-desktop
Summary     : The world's fastest remote desktop application
Description :
AnyDesk is the fastest remote desktop software on the market. It allows
for new usage scenarios and applications that have not been possible with current remote desktop software.

在CentOS 8/RHEL 8上启动AnyDesk

AnyDesk的服务在成功安装后会自动启动。

$systemctl status anydesk.service
● anydesk.service - AnyDesk
   Loaded: loaded (/etc/systemd/system/anydesk.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-10-18 08:17:35 EAT; 1min 20s ago
 Main PID: 7681 (anydesk)
    Tasks: 4 (limit: 11512)
   Memory: 16.2M
   CGroup: /system.slice/anydesk.service
           ├─7681 /bin/sh /usr/bin/anydesk --service
           └─7683 /usr/libexec/anydesk --service

Oct 18 08:17:35 centos8.novalocal systemd[1]: Started AnyDesk.

该服务也应启用。

$systemctl is-enabled anydesk.service
enabled

从桌面或者CLI在CentOS 8/RHEL 8上启动AnyDesk。

CLI:

$anydesk

使用远程系统的AnyDesk地址连接到它。