Skip to content

Cool things to do with a Linux server

After installing the linux server, there are a lot of things to do, securing, unlocking performance and beautifying etc. Here I’m going to mention some cool things that will help you a lot after installing the linux server like Ubuntu, Debian or other debian flavours.

Securing the Linux server


First cool thing to do with linux server is securing. In linux we usually do this with the iptables which is the core part of the linux. But here I’m using UFW package to control the iptables. Install it if not there. Then start the service and enable it.

sudo apt install ufw
sudo systemctl enable ufw && sudo systemctl start ufw

Open the SSH and other ports. Change the ports as per requirement. But SSH port is important.

sudo ufw allow 22
sudo ufw allow 443
sudo ufw allow 80

Then cut all incoming connection from other ports and all outgoing connections.

sudo ufw default deny incoming
sudo ufw default allow outgoing

At last, check the status and enable it.

sudo ufw status verbose
sudo ufw enable

That’s all, you are secured now from attacker and hackers.


Suffering from all time password for root access. Just add this to the sudoers file for no password.

Add this line at end of this file /etc/sudoers


Change the username that you have (I’m using ubuntu here) and re-login your shell to reflect.

Unlock the performance with linux server

Linux is nothing but a kernel. So to unlock the performance, we have to add tuned and featured kernel with Xanmod kernel. Click Here to install Xanmod kernel.


Then change the CPU governor to unlock the speed by cpufrequtils. First, check the CPU governor.

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Then install cpufrequtils and set the governor in the config.

apt install cpufrequtils
echo 'GOVERNOR="performance"' | sudo tee /etc/default/cpufrequtils

Enable and restart it. Then check again with that cat command.

sudo systemctl enable cpufrequtils
sudo systemctl restart cpufrequtils

Beautifying the Linux server


In linux server, there is no GUI except terminal shell. And commonly we do SSH So, add neofetch in motd to get colourful when ssh. First install it.

sudo apt install neofetch

Then add this command in any of motd file under /etc/update-motd.d/

echo "#!/bin/sh
neofetch" | sudo tee /etc/update-motd.d/custom

And then you can clean up any other extras by default under /etc/update-motd.d/

Fish shell

fish is a smart and user-friendly command line shell for macOS, Linux, and the rest of the family. fish includes features like syntax highlighting, autosuggest-as-you-type, and fancy tab completions that just work, with no configuration required.

Install it and Change the default shell for the user.

apt install fish
chsh -s /usr/bin/fish

And also you can add extras with oh-my-fish.

Leave a Reply

Your email address will not be published.