Tag: Ubuntu

  • How to Install Ubuntu on WSL2 without Microsoft Store

    Strangely, downloading Ubuntu from my Microsoft Store doesn’t work on my Windows 10 workstation (maybe due to corporate AD policy restrictions). Here is the workaround that I found out which can get the Ubuntu 20.04 installed on my WSL subsystem. Step 1: run powershll as “administrator” Step 2: run below command to see if you…

  • How to Install WordPress and PhpMyAdmin on a Ubuntu 20.04 Server

    There are many tutorials that can be found through Google. But I found the below two are the most reliable and replicable throughout my many trials. For WordPress installation, please click here. For PhpMyAdmin intallation, click here.  

  • Cannot SSH AWS EC2 Because of Being Locked Out by Enabled UFW

    OK, I know this is dumb, but I locked myself out of my AWS EC2 instance by enabling UFW before I whitelisted the port 22 rule. Luckily, I found this article which gives a full guide on how to successfully disable UFW in AWS’s instance startup script.

  • How to Restrict Samba Share Folder to Local Network Access Only on Ubuntu Server

    My Ubuntu server is running wild on public network and due to a previous setting on my firewall to let Samba traffic pass through, I had port 139 open to “any” network. And this can be seen from a common NMAP probe: Obviously exposing file sharing service is a bad idea and I used below…

  • Get Fail2ban Installed and Configured on Ubuntu Server

    I recently threw an old Dell laptop installed with Ubuntu Server into the DMZ of my home router/firewall. And since it is placed in the wild west of public internet now, it surely needs some extra protecion as the port 22 is quite vulnerable to brute force attacks. Therefore, the Fail2ban app comes to mind…

  • Cockpit – “Cannot Refresh Cache Whilst Offline” Error on Ubuntu Linux

    Cockpit is definitely one of the best Linux server managment dashboard solution out there. However, you might encounter the titular error the first time you install and access its contro panel’s “Software Updates” page. I used below instructions to resovle it. Firstly, vi your NIC’s yaml config file by sudo vi /etc/netplan/00-installer-config.yaml At the end…

  • Ubuntu Networkctl “State Routable (Configuring)” Error Fix

    Today I used “networkctl” to check NIC’s states and found out my wifi link is in the titular “routable (configuring)” state: Then I gave a quick look at netplan’s yaml config files: It seems that the wifi yaml file is already there with seemingly correct content: Then I executed “sudo netplan apply” and successfully bring…