How to Set Up Software RAID 1

mdadm is used to manage software RAID. Install mdadm package with To set up RAID 1 (mirror), you need 2 drives or partitions of the same size Setup Partition Create a partition with the following commands on both the drives used for RAID 1. Replace /dev/sdX with device name of the drive you will be … Read more

Keeping Ubuntu Secure with Unattended-Upgrades

Ubuntu

Keeping your operating system up-to-date is crucial for maintaining security and stability. For Ubuntu/Debian users, the unattended-upgrades package offers a solution to automate this essential task Unattended-upgrades is a package for Ubuntu and other Debian-based Linux distributions that automates the process of keeping your system up-to-date. Its primary purpose is to automatically install security updates … Read more

DHCP

Ubuntu

DHCP, or Dynamic Host Configuration Protocol, is a network management protocol that automates the process of assigning IP addresses and other network configuration parameters to devices on a network. This crucial technology plays a vital role in modern network infrastructure, from small home networks to large enterprise environments. In essence, DHCP eliminates the need for … Read more

How to Disable apt Ubuntu Pro Advertisement

Ubuntu

On running “apt upgrade” command on Ubuntu 20.04 and newer, Ubuntu shows an advertisement about Ubuntu Pro subscription. To disable the Ubuntu Pro advertisement that appears when updating apt, run After running these commands, running “apt upgrade”, you won’t get the Ubuntu Pro advertisement. Back to Ubuntu

Install MATE desktop with xrdp on Ubuntu Server

Ubuntu

Login to ubuntu server using SSH and run the following command to install MATE desktop environment apt install ubuntu-mate-desktop Create a normal user. We will use this user to login to XRDP desktop. useradd -m -s /bin/bash desktop You can change user name “desktop” to any other username you need. Make the user super user … Read more

How to change varnish port in Ubuntu

Ubuntu

To change the varnish port, run the command systemctl edit varnish It opens an editor, in the editor, paste the following [Service] ExecStart= ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m This will change varnish listening port to 80. If you need to change to another port, change “-a … Read more

rsyslog Unsafe symlinks encountered in /var/log, refusing

Ubuntu

When updating packages on an Ubuntu server, I got the error “Unsafe symlinks encountered in /var/log, refusing.”. root@ip-172-31-45-33:/var# apt upgrade -y Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this … Read more

apt error doesn’t support architecture ‘i386’

Ubuntu

On an Ubuntu server, when running “apt update” command, I got the following error message root@s196379:~# apt update Hit:1 http://mirror.fcix.net/ubuntu focal InRelease Hit:2 http://mirror.fcix.net/ubuntu focal-updates InRelease Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:4 https://mirror.rackspace.com/mariadb/repo/10.5/ubuntu focal InRelease Reading package lists… Done Building dependency tree Reading state information… Done All packages are up to date. N: Skipping acquire of … Read more

How to install dropbear SSH server

Ubuntu

Dropbear is a Lightweight SSH server. You can use it as openssh server alternative. Dropbear is particularly useful for embedded type Linux systems, such as wireless routers. I have used this when I have a problem with openssh server, after an apt upgrade, openssh server stopped working. I installed dropbear and made it run on … Read more

How to install .NET SDK in Ubuntu 20.04

Ubuntu

To install .NET on ubuntu 20.04, run the following commands wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update sudo apt-get install -y apt-transport-https sudo apt-get update To find all versions of .NET SDK available, run apt-cache search dotnet-sdk To install .NET SDK version 6, run apt install dotnet-sdk-6.0 For .NET … Read more