Install Skype on Debian 10

Skype is not an open-source application, and it is not included in the default Debian repositories. We’ll install Skype using the Skype deb package.

Download Skype deb package:

wget https://go.skype.com/skypeforlinux-64.deb

When the download is complete, install Skype using command:

sudo apt install ./skypeforlinux-64.deb

Now run Skype and authorize with your login, that’s all

Install Viber on Debian 10

Step 1: install flatpak:

sudo apt install flatpak

Step 2: install Viber:

flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user install flathub com.viber.Viber

That’s all, scan QR code with your phone and use Viber on Debian 10!

Installing Wine 6 on Debian 10

Step 1: Enable 32 bit architecture

sudo dpkg --add-architecture i386 

Step 2: Add WineHQ repository

We will pull the latest Wine packages from WineHQ repository that is added manually. First, import GPG key:

sudo apt update
sudo apt -y install gnupg2 software-properties-common
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

You should receive “OK” in the output. Add the Wine repository by running the following command:

sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/

The command will add repository to line /etc/apt/sources.list file.

Update APT package index:

sudo apt update

Step 3: Install Wine 6 on Debian 10

After configuration of the APT repository, the final step is the actual installation of Wine 6 on Debian 10. Add Wine OBS repository:

wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key | sudo apt-key add -    
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

Then install Wine from Stable branch:

sudo apt update
sudo apt install --install-recommends winehq-stable

And for latest release in staging, use:

sudo apt install winehq-staging

After installation. verify version installed.

wine --version  # Stable
wine-6.0

wine --version  # Staging
wine-6.5 (Staging)

Debian 10 – install and configure i3wm

i3 is a tiling window manager designed for X11, inspired by wmii and written in C. It supports tiling, stacking, and tabbing layouts, which it handles dynamically.

Configuration is achieved via plain text file and extending i3 is possible using its Unix domain socket and JSON based IPC interface from many programming languages.

Step 1: Install Debian 10.

Download Debian 10 .ISO image from official site: https://www.debian.org/

Step 2: Write ISO image to USB drive using program Etcher:

Step 3: Install Debian 10 on your PC.

Don’t install any other programs and desktop environments, uncheck all check boxes in installation menu. You need clear operating system without any other software.

Installation i3wm and other software:

Now you have clear oerating system with command shell.

First authorize in system with root login, change repositories to testing branch in file /etc/apt/sources.list, it is needed to get latest packages:

Upgrade your system:

apt update
apt upgrade

Install sudo and add sudo privilegies to your username:

apt install sudo
usermod -aG sudo username

Now you can logout from user root and authorize with your username login, Install file manager MC and other additional software:

sudo apt install mc vim htop screenfetch

Install X-Window-Server, I3, and other software for desktop environment:

apt install bash-completion lightdm zenity network-manager-gnome viewnior i3 xserver-xorg xbacklight conky nitrogen compton tilix firefox-esr thunar rofi flameshot

Debian 10 Install PulseAudio

PulseAudio is a network-capable sound server program. A sound server is a background process accepting sound input from one or more sources (processes, capture devices, etc.), that is able to mix and redirect those sources to one or more sinks (sound cards, remote network PulseAudio servers, or other processes).

To install PulseAudio on Debian Linux first update package repository:

sudo apt update

Next install PulseAudio:

sudo apt install pulseaudio

Now reboot your computer.

Using PulseAudio Volume Control Graphical Utility:

PulseAudio has a graphical frontend PulseAudio Volume Control, which you can use to easily configure PulseAudio sounds graphically.

It is not installed by default. Run the following command to install PulseAudio Volume Control:

sudo apt install pavucontrol

Also to change sound volume by hotkeys you need amixer utility install it by command:

apt-get install alsa-utils

Visual Studio Code first config

Visual Studio Code is a very powerful free and open source text editor, but before start usage it you need to but to use all its features, you need to configure it.

Visual Studio Code

First of all disable telemetry collection in File > Preferences > Settings menu:

Override “Alt” button to toggle menu bar:

"window.titleBarStyle": "custom",
"window.customMenuBarAltFocus": false

Disable file previewing when clicked on at all is by setting:

"workbench.editor.enablePreview": false

Functionality of Visual Studio Code can be extended with plugins and extensions.

To disable Unicode strings highlight use command:

editor.unicodeHighlight.ambiguousCharacters = false

To change tabulation for existing document use command:

indent using tabs

I prefer to install such basic plugins: Project Manager, Ftp-sync, Show Functions, Beautify, and Material Icon Theme, Atom Material Theme:

This is my basic configuration of Visual Studio Code, you can also change other options and config this amazing text editor as you want.

How to change MySQL root password in Debian / Ubuntu

Connect to MySQL Server using Linux terminal:

sudo mysql --user=root mysql

Run the following commands:

UPDATE mysql.user SET authentication_string=null WHERE User='root';
flush privileges;

Replace NEW_PASSWORD with your own.

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'NEW_PASSWORD';
flush privileges;
exit;

How to Flush the DNS Cache on Debian 10

To flush DNS cache in Debian GNU/Linux use command:

sudo systemd-resolve --flush-caches

If you get error message: “Failed to flush caches: Unit dbus-org.freedesktop.resolve1.service not found.“, enable the service on your system:

sudo systemctl enable systemd-resolved.service

Then again run the “systemd-resolve –flush-caches” command.

You can then check the statistics in order to make sure that your cache size is now zero, thus cleared. Run the following command in order to view the statistics:

sudo systemd-resolve --statistics

Configure certificate in HestiaCP

1. Backup current certificates in directory /usr/local/hestia/ssl/:

mv /usr/local/hestia/ssl/certificate.crt /usr/local/hestia/ssl/certificate.crt.old 

mv /usr/local/hestia/ssl/certificate.key /usr/local/hestia/ssl/certificate.key.old 

2. In directory /usr/local/vesta/ssl/ make symbol links to certificates, that we use on our site (for example: site.com):

ln -s /home/admin/conf/web/site.com/ssl/site.com.crt /usr/local/hestia/ssl/certificate.crt 

ln -s /home/admin/conf/web/site.com/ssl/site.com.key /usr/local/hestia/ssl/certificate.key 

3. Restart Hestia service:

service hestia restart

How to exit vim? And other required commands.

Vim is the most popular Linux text editor, it was created in 1978 and is used to present days.

Vim has two modes: “Command mode” where you can insert many commands, and “Insert mode” – where you can insert and edit text document. By default Vim open all documents in “Command mode”, to enter into the “Insert mode” – press button “i“.

The most asked question is – “How to exit Vim?” – it is very simple – in Command mode enter :q! and press Enter. This command exit Vim without saving any changes.

:q!

To save file – enter command :w <filename> and press Enter:

:w file.txt

To save file and exit Vim use command :wq and press Enter

:wq