Linux

Transcoding for local streaming

My home network has a local streaming service based on a local Plex server. It has a few videos wwhich came in odd formats, and where for practical purposes it would be nice to have everything in the same format.

This is my way of transcoding everything to the same format before adding it to the Plex server.

This little script will take all files in the the same directory as the script (given the 4 extentions) and encoding all to Xvid format. The Xvid format is my current prefered format balancing size and quality - and allow for Chromecasting. It may change to a H265 format once all the oldest Chromecast devices are updated and all can handle H265.

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.
  • They products and features offered by Digital Ocean seems to be more Corporate than my needs.
  • While the price of 7.5 Euro a month for a server doesn’t seem that expensive, it’s been steady for years without any upgrades to CPU or memory.

Sourcing a few recommendations, welcome to the new server - again a VPS - hosted by Hetzner in Germany.

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. Tailscale has a free plan perfectly suitable for my uses and clients for just about any machine, so getting all machines attached to a private network through Tailscale is surprising easy.

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.

netsh wlan show profile name=SSID key=clear