Linux

Welcome to the new server

Hello from a new server The most recent years this site was run of a Digital Ocean Droplet. A Droplet is their fancy name for a virtual private server (VPS) on shared hardware, but not anymore. Generally I’ve been quite happy on Digital Ocean and they’ve provided a stable service through years. There was how ever a few things which caused an opportunity to move away. I was running on a 32bit OS, and needed to reinstall the Droplet to move to a current OS.

Hello Tailscale, Goodbye fixed IP at home

I have for many years paid to have a fixed IP number at home. The main reason was to allow me to access servers and have the remote access restricted to the home IP number. This was just one of many layers of the security of the server and the SSH setup, but no more. I’ve been playing with (Tailscale)[https://tailscale.com/] which essentially provide an overlay network and allows you to have a secure private network across the public internet.

What's the IP number?

If you’re jumping around on servers and need to figure out what the IPnumber(s) of the server are, here’s a little bash line which usually works (tough with a few catches): ifconfig eth0 | grep inet | awk '{ print $2 }' This command assume the eth0 is the public WAN interface in the server. If there are more network cards this may not be correct - or the only interface for the net.

Show wifi password in clear

Got access to a wifi network, but forgot the password? No a problem. At least not if you have a windows, Mac or Linux machine with access. All these OSes can basically without restrictions show you the wifi password in clear text. Windows Once you have access to the wifi network. Open the commandline and enter the following command replacing “SSID” with the actual name of the wifi network you want to retrive the password to.

Cronjob: Basics and reboot

One of Linux five star things is the cronjobs. They allow you to automatically run stuf (scripts, applications, etc.) at quite specific times. The crontab is the place controlling when the stuff is run and you can list the crontab using the commaand crontab -l for the current user. If you want to edit the crontab, just use the command crontab -e and it launches the crontab in the default editor (set EDITOR env variable to change the editor used).