Install Elasticsearch on Debian for Magento

To install Elasticsearch for Magento on Debian, install Java 1.8 and apt-transport-https

Add key

Add repository

Install Elasticsearch

Enable and start Elasticsearch

debconf: unable to initialize frontend: Dialog

When installing a program in Ubuntu 18.04 server minimal installation, i get following error

To fix this, run

Related Posts

Errors

apt

Linux KVM Bridge network on Ubuntu

On Ubuntu 18.04 server, first i get Ubuntu to use /etc/network/interface, by default Ubuntu 18.04 and newer use netplan.

First install ifdown

Now you can configure your network interface by editing file

Here is my network configuration on an OVH server.

To convert this interface to bridge network, do the following

1) Replace all occurance of “eno3” with “br0”

2) Add following lines

In above, replace “eno3” with name of your physical interface.

Here is my final network configuration.

See Linux KVM, Networking @ linux-kvm.org

Install ShadowSocks server on Debian 10

To install ShadowSocks server on Debian 10, run

Create config file

Add following

You can change server_port if required.

To enable service, run

To start shadowsocks proxy, run

For status/restart

Ubuntu Configure systemd-resolved

Latest Ubuntu/Debian use systemd-resolved for DNS resolution. On a fresh Ubuntu 19.04 install DNS failed to resolve.

To fix this, create file

Add content

Restart systemd-resolved

You can find systemd-resolvd status with command

To resolve a domain, use

Install x11vnc on Ubuntu

To install x11vnc on Debian/Ubuntu, run

To start vnc server, run

By default, there will be no password. To set password, run

To start x11vnc server with password, run

debian linux

Upgrade Debian 8 Jessie To Debian 9 Stretch

debian linux

Upgrading server on a remote location is not safe unless you have KVM access. I did many Debian 8 to Debian 9 upgrade on remote server with out probem. On one server, network card name chaned from eth0 to new enp4s0 format. I had to access the server using KVM and fix network configuration by editing /etc/network/interfaces

First you need to upgrade all software on your server to latest Debian 8

Now replace content of /etc/apt/sources.list file with following

Add

Update the software again with

It can take some time for the upgrade to finish. Once update complete, you can check with lsb_release -a command, you will see

debian upgrade

Remove unused packages with command

At this stage, server stil use old debian 8 kernal.

To boot to new Debian 9 kernal, reboot the server with

After reboot, you will see new kernal.

Now Debian 10 is available. See How to upgrade Debian 9 to Debian 10

Plesk License Number

Install PHP 5.6 on Debian 9 Plesk Server

To install PHP 5.6 on Debian 9 Plesk Server, add sury.org repository

Install PHP 5.6 with apt

Optional: Enable PHP 5.6 as default CLI

This will show all available PHP version, select the default version for command line.

Enable PHP 5.6 in Plesk

apt – Problem unlinking the file auxfiles

When i get apt update on a Debian 9 server, i get following error

The problem is fixed by deleting