Even the faintest ink beats the strongest memory.

  • 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…

  • Unable to Log in WP Local APP on Windows 10

    WP Local (or Flywheel Local) has a fantastic functin of providing a “live link” for the wordpress site you are working on on you workstation to be viewable on a public internet link, which you usually need to show to your clients or colleagues. But I was not able to log into this APP on…

  • 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…

  • Reduce Mysql Service Memory Usage On A Centos Server

    I tried below settings to bring down Mysqld service memory usage from 450 MB to less than 300 MB on a very low performance hosting server on cloud. Code to b added in /etc/my.conf is below: [mysqld] table_definition_cache = 400 More research will be needed for me to know what exactly was optimized by this…

  • 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…

  • How to Map WSL’s Linux Drive on Windows 10 Host Machine Like A Network Share

    After installing of a WSL distro, mapping the Linxu drives on the Windows 10 host should in theory a very easy practice.1. windows key + r and type in \\wsl$ You shall see all the distros’ drives in the windows explore window Right click on the folder and select “map as a network drive” then…