csf error path to iptables is either not set or incorrect

Whem install csf firewall on Ubuntu 20.04, i get following error root@ok:~# csf *Error* The path to iptables is either not set or incorrect for IPTABLES [/usr/sbin/ip6tables] in /etc/csf/csf.conf at /usr/local/csf/lib/ConfigServer/URLGet.pm line 26. Compilation failed in require at /usr/sbin/csf line 21. BEGIN failed–compilation aborted at /usr/sbin/csf line 21. root@ok:~# This is because path for iptables … Read more

Install TeamSpeak Client on Ubuntu

TeamSpeak Client Ubuntu

To install TeamSpeak client on Ubuntu, download latest version from https://www.teamspeak.com/en/downloads/ Download page list both 32 and 64 bit versions. Most computers these days use 64 bit OS. So download 64 bit version unless you are using older computer with 32 bit OS. On Ubuntu, you can find if you are using 32 or 64 … Read more

Enable FTP for EasyEngine Website

To Enable FTP for EasyEngine web sites, we need to install pure-ftpd. On Ubuntu/Debian, run apt install -y pure-ftpd Enable virtial FTP users ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB touch /etc/pure-ftpd/pureftpd.pdb In EasyEngine, we sites files are owned by www-data user, this user have a UID of 33. By default pure-ftpd won’t allow this. To enable users … Read more

Install AnyDesk on Ubuntu

To install AnyDesk on Ubuntu, run following commands as user root (sudo su). wget -qO – https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add – Add repository echo “deb http://deb.anydesk.com/ all main” > /etc/apt/sources.list.d/anydesk-stable.list Update apt cache apt update Install anydesk with apt install anydesk If you don’t want auto start anydesk on boot, disable it with systemctl disable … Read more

Install PowerDNS on Ubuntu 20.04

PowerDNS is an OpenSource DNS server. Update apt repo apt-get update && apt-get upgrade -y On Ubuntu, systemd-resolved listen to port 53. This is a local DNS resolver, we need to stop this service before we can install PowerDNS. systemctl disable systemd-resolved systemctl stop systemd-resolved rm -f /etc/resolv.conf echo “nameserver 1.1.1.1” > /etc/resolv.conf echo “nameserver … Read more

Prevent Notification steal focus on Ubuntu 18.04

On Ubuntu, some times notifications steal focus from current application. This annoying when you are working on terminal. This is due to start focus feature of gnome when your mouse is over the notification area. boby@sok-01:~$ gsettings get org.gnome.desktop.wm.preferences focus-new-windows ‘smart’ boby@sok-01:~$ We need to change the value of focus-new-windows from smart to strict. This … Read more

Change Apache User in Ubuntu

On Ubuntu/Debian server, apache run as user www-data. When you install Apache web server on your local computer for developement purpose, it may be easier to run Apache as your user. If you run Apache as www-data user, you will need to chmod folders 777 for yoru web application to write to a folder like … Read more

Install wireguard VPN on Ubuntu

To install wireguard VPN on ubuntu, run apt update apt install software-properties-common apt install linux-headers-$(uname -r) add-apt-repository ppa:wireguard/wireguard apt-get update apt-get install wireguard Generate Keys cd /etc/wireguard umask 077 wg genkey > privatekey cat privatekey | wg pubkey > publickey Configure wireguard You can generate wireguard configuration using https://www.wireguardconfig.com

Disable sshd start on boot in ubuntu

On my local computer, i have installed openssh-server, but i don’t want it always enabled. To disable openssh-server from auto start on boot, run systemctl disable ssh Example root@lab:~# systemctl disable ssh Synchronizing state of ssh.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable ssh Removed /etc/systemd/system/sshd.service. Removed /etc/systemd/system/multi-user.target.wants/ssh.service. root@lab:~# If you want to … Read more

Install VirtualBox 6.1 on Ubuntu 18.04

VirtualBox 6.1 on Ubuntu

First you need to add VirtualBox repository sudo echo “deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib” > /etc/apt/sources.list.d/virtualbox.list Add Keys wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add – wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add – Do an apt upgrade sudo apt-get update If you have older version of VirtualBox installed, remove it sudo apt … Read more