Set default PHP version in Ubuntu

To select default PHP version in Ubuntu, run update-alternatives –config php This will show a menu, you can select the default php version root@server:/usr/bin# update-alternatives –config php There are 2 choices for the alternative php (providing /usr/bin/php). Selection Path Priority Status ———————————————————— * 0 /usr/bin/php7.0 70 auto mode 1 /usr/bin/php5.6 56 manual mode 2 /usr/bin/php7.0 … Read more

Install Transmission torrent client on Ubuntu Server

Transmission web client

To install transmission torrent client on Ubuntu, run apt install transmission-cli transmission-common transmission-daemon Before you can configure transmission-deamon, you need to stop it. service transmission-daemon stop Edit configuration file vi /var/lib/transmission-daemon/info/settings.json Once edited, start transmission-deamon with service transmission-daemon start Settings Password Default user and password is “transmission”. You can modify it by editing config file … Read more

Install Skype on Ubuntu

Skype public key is not available To install Skype on Ubuntu 20.04 (this work with other Ubuntu/Debian versions), run curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add – echo “deb [arch=amd64] https://repo.skype.com/deb stable main” | sudo tee /etc/apt/sources.list.d/skype-stable.list sudo apt-get update sudo apt-get install apt-transport-https -y sudo apt-get install skypeforlinux -y Skype Commands https://support.skype.com/faq/FA10042/What-are-chat-commands-and-roles To disable alerts … Read more

Install Gitlab on Debian/Ubuntu

Install requirements echo “postfix postfix/main_mailer_type string ‘Internet Site'” | debconf-set-selections echo “postfix postfix/mailname string localhost” | debconf-set-selections curl -Ls https://packages.gitlab.com/gpg.key | apt-key add – apt-get update apt-get –force-yes -y upgrade apt-get clean Setup repo/dependency wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh bash script.deb.sh Install gitlab apt-get install -y gitlab-ce

Install SpeedTest cli on Ubuntu

speedtest.net is a popular web site for testing braodband speed. To install speedtest cli on Ubuntu, run apt install -y speedtest-cli This will be very helpful for testing speed of servers and remote systems using SSH. To test speed, run speedtest Example To get list of available speedtest servers, run speedtest –list To test with … Read more

Configure Failover IP in Ubuntu 18.04 OVH VPS

Default /etc/network/interfaces in Ubuntu 18.04 in OVH VPS look like following. Click here for Ubuntu 20.04 instructions. root@vps624512:~# cat /etc/network/interfaces # ifupdown has been replaced by netplan(5) on this system. See # /etc/netplan for current configuration. # To re-enable ifupdown on this system, you can run: # sudo apt install ifupdown root@vps624512:~# First install sudo … Read more

Install ffmpeg on Ubuntu

To install ffmpeg 4 on Ubuntu, you can use PPA https://launchpad.net/~jonathonf/+archive/ubuntu/ffmpeg-4 apt install software-properties-common -y add-apt-repository ppa:jonathonf/ffmpeg-4 -y Now install ffmpeg with apt update && apt install ffmpeg -y See ffmpeg

Odoo apt signatures couldn’t be verified

When updating apt on Ubuntu server, i get following error root@ip-172-31-25-25:/home/ubuntu# apt-get update Hit:1 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:3 http://ap-south-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease Ign:4 http://nightly.odoo.com/9.0/nightly/deb ./ InRelease Get:5 http://nightly.odoo.com/9.0/nightly/deb ./ Release [1186 B] Get:6 http://nightly.odoo.com/9.0/nightly/deb ./ Release.gpg [819 B] Ign:6 http://nightly.odoo.com/9.0/nightly/deb ./ Release.gpg Get:7 http://nightly.odoo.com/9.0/nightly/deb ./ Packages [1790 B] Hit:8 http://security.ubuntu.com/ubuntu xenial-security InRelease … Read more

Ubuntu AppArmor

To see the status of AppArmor service, run To see AppArmour status, run AppArmor config files in You can stop start AppArmor with Disable AppArmor MySQL not starting on Ubuntu 18.04

MySQL not starting on Ubuntu 18.04

MySQL did not start on Ubuntu 18.04 server. This is fresh server, i removed all MySQL packages, removed configuration files. apt remove –purge mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7 Reinstalled MySQL. apt install mysql-server-5.7 Still MySQL fail to start with some error related to 2018-10-29T21:07:49.311174Z 0 [ERROR] Could not open file ‘/var/log/mysql/error.log’ for error logging: Permission … Read more