All posts by Don Matteo

lives in Switzerland, is System Engineer MCP at A-Enterprise GmbH. Member of the UNBLOG Knowledge Network. Author and blogger topics, tutorials for Linux and Open Source.

Remote Desktop using AnyDesk on Linux

AnyDesk Remote Desktop for Linux

anydesk

AnyDesk Connect to a computer remotely, The remote maintenance program from the German startup company AnyDesk Software GmbH enables remote access to remote computers. A video codec specially developed for this purpose is supposed to ensure fast transmission of the screen. It is also possible to transfer files between the two PCs. AnyDesk relies on the DeskRT video codec, which was specially designed by the developers for the transmission of graphic user interfaces. Above all, AnyDesk wants to set itself apart from competing remote desktop products such as TeamViewer and co. The program leaves a tidy impression, the address book is available with a license subject to charge.

How to install AnyDesk on Windows

The installation of AnyDesk under Windows is self-explanatory, there is a video from AnyDesk to show the setup and change settings.

How to install AnyDesk on Linux

This article describes how to install AnyDesk version 6 on Linux Mint 20 x64bit. The way to install is nearly the same for all popular Linux distributions.

Download the small AnyDesk file of 3 MB and finish urgent tasks on the go with AnyDesk’s user-friendly interface. AnyDesk are installable for Linux using the debian package manager, it’s goes quick and easy with open a terminal to insert the following lines and run it.

$ cd ~/Downloads
$ curl -O https://download.anydesk.com/linux/anydesk_6.1.1-1_amd64.deb
$ sudo dpkg -i anydesk_6.1.1-1_amd64.deb

If there are errors due to dependency problems, additional packages must be installed afterwards.

package anydesk that was previously not selected is selected.
(Read Database ... 328284 Files in Folder are now installed.)
Preparing to unzip anydesk_6.1.1-1_amd64.deb ...
Failed to stop anydesk.service: Unit anydesk.service not loaded.
Unpacking from anydesk (6.1.1-1) ...
dpkg: Dependency problems prevent configuration of anydesk:
 anydesk depends on libgtkglext1; or:
  Packet libgtkglext1 not installed.
 anydesk depends on libpango1.0-0 (>= 1.14.0); or
  Packet libpango1.0-0 not installed.

dpkg: error processing package anydesk (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23+linuxmint4) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
anydesk

The apt-get option -fix tries to provide the packages required for AnyDesk.

$ sudo apt-get install -f

The AnyDesk installation can then take place.

$ sudo dpkg -i anydesk_6.1.1-1_amd64.deb

Let’s start AnyDesk also with automatic system start.

$ systemctl start anydesk.service
$ systemctl enable anydesk.service

Installation on Fedora and Red Hat distributions goes with yum.

$ sudo yum install anydesk_6.1.1-1_amd64.rpm

The installation using yum ends with the following output in the last lines.

Installed:
   anydesk-6.1.1-1.x86_64             gtkglext-libs-1.2.0-34.fc30.x86_64             pangox-compat-0.0.2-14.fc30.x86_64            
 Finish.
anydesk_linux_desktop
Abbildung: AnyDesk Linux Desktop

As AnyDesk announced on July 15, 2019, the binaries in the current AnyDesk version are now in the repositories for the Linux distributions Debian, CentOS, Ubuntu, RedHat Enterprise Linux, Fedora and OpenSUSE.

On Debian, Ubuntu, Linux Mint or other Debian-compatible Linux distributions, open a terminal and switch to root and run the following commands to install the latest version of AnyDesk:

wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list
apt update
apt install anydesk

If you use RHEL, CentOS, Fedora or OpenSUSE, open a terminal become root and copy paste one of the following section suitable for your linux distribution to add the repository. Then simply install the latest version of AnyDesk with a yum or dnf command:

# for RHEL
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

# for CentOS
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

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

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

On CentOS run yum install anydesk, on Fedora use dnf install anydesk to install the anydesk remote desktop software.

Grub Boot Menu Order

How to Change Grub Boot Menu order on Linux Mint or Ubuntu

Grub for dual boot operations where multiple Linux distributions or Linux and Windows are installed with the Grub Boot Manager, it may be preferable to change the boot order or the default boot entry occasionally so that the most frequently used operating system is selected first by default.

Assuming it is dual boot with Windows and Linux Mint, this boots first by default, now we would like to start Windows instead without making a selection.

To change Grub Boot Menu order, load the grub file into the editor of your choice.

$ sudo nano /etc/default/grub

Search the content.

GRUB_DEFAULT=0

Then modify the entry, to set Boot Menu order.

GRUB_DEFAULT=2

Note: The index begins at 0, consequently Windows has number 2.

Save the file and exit the editor by pressing Ctrl + O then Ctrl + x to exit nano.

Now update grub menu with this command.

$ update-grub

Finished! Reboot the computer and check the new boot order.

How to Change Grub Boot Menu order
Grub Boot Manager

Linux Boot Process

The boot process on Linux is a series of activities that occur from the time you press the power button on your PC until the time the login screen appears.

There are four main stages in the boot process of your operating system and they occur in the following order:

BIOS: Basic Input/Output System

BIOS: Stands for Basic Input/Output System and is mainly responsible for loading the bootloader. When the computer starts, it runs a Power On Self Test (POST) to make sure that core hardware such as the memory and hard disk is working properly. Afterward, the BIOS will check the primary hard drives’ Master Boot Record (MBR), which is a section on your hard drive where the bootloader is located.

Bootloader

Bootloader: Loads the kernel into the RAM with a set of kernel parameters.

Linux Kernel

Kernel: The kernel’s primary function is to initialize devices and memory. Afterward, it loads the init process.

Init process

Init: Responsible for starting and stopping essential services on your system.