2

AnyDesk - How Enable Remote Access from ubuntu/debian terminal

 1 year ago
source link: https://gist.github.com/imami/4e8b187e7e1e6fc9510d907eb1a7a5b3
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

peter279k commented 22 days ago

edited

@amatteo78, it's possible to install the anydesk without GUI in Ubuntu. Please consider using the following installation steps:

root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.6 LTS
Release:        18.04
Codename:       bionic
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# apt-get update
Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Hit:2 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Get:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages [2730 kB]
Get:7 https://packages.clickhouse.com/deb stable InRelease [5536 B]
Get:8 https://packages.clickhouse.com/deb stable/main amd64 Packages [18.4 kB]
Fetched 3248 kB in 1s (3231 kB/s)
Reading package lists... Done
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# curl -fsSL https://keys.anydesk.com/repos/DEB-GPG-KEY|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/anydesk.gpg
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list
deb http://deb.anydesk.com/ all main
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# apt-get update
Get:1 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Hit:2 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease
Hit:3 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease
Hit:4 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:6 http://deb.anydesk.com all InRelease [5588 B]
Hit:7 https://packages.clickhouse.com/deb stable InRelease
Get:8 http://deb.anydesk.com all/main amd64 Packages [644 B]
Fetched 248 kB in 1s (335 kB/s)
Reading package lists... Done
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# apt-get install anydesk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libfile-desktopentry-perl libfile-mimeinfo-perl libgail-common libgail18 libgtk2.0-0 libgtk2.0-bin
  libgtk2.0-common libgtkglext1 libnet-dbus-perl libpangox-1.0-0 libtie-ixhash-perl libx11-protocol-perl
  libxml-twig-perl libxml-xpathengine-perl xdg-utils
Suggested packages:
  libunicode-map8-perl libunicode-string-perl xml-twig-tools
The following NEW packages will be installed:
  anydesk libfile-desktopentry-perl libfile-mimeinfo-perl libgail-common libgail18 libgtk2.0-0
  libgtk2.0-bin libgtk2.0-common libgtkglext1 libnet-dbus-perl libpangox-1.0-0 libtie-ixhash-perl
  libx11-protocol-perl libxml-twig-perl libxml-xpathengine-perl xdg-utils
0 upgraded, 16 newly installed, 0 to remove and 3 not upgraded.
Need to get 8989 kB of archives.
After this operation, 25.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# anydesk --get-status
online
root@ubuntu-s-4vcpu-8gb-amd-sgp1-01:~# echo "password" | anydesk --set-password
......

After running above commands, please follow this section to complete the Anydesk setting in the targeted machine.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK