Self-Hosting

From Modding Fridays
Jump to navigation Jump to search

WIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIP WIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIP WIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIPWIP


My self-hosting adventure finally begins!

Since the interweb is flooded with tutorials, limited with particular stages of the self-hosting journey, I decided to compile the best my preferred methods into one wiki-post.

The target server is a Oneplus 6 with the Alpine Linux based operating system PostmarketOS installed, which means apk commands are used. Have fun:)

Why doe

Very nicely summed up by Kedio:

For anyone planning to self-host apps and services or simply have a computer readily available as a playground, single-board computers have been one of the typical go-to devices. Smartphones are also emerging as viable alternatives for this purpose. Indeed, with their respectable specs, their ubiquitous availability, their relatively short service life and the existence of Linux OSes such as postmarketOS, it is becoming possible to reuse them as tiny and yet powerful computers. There is arguably also added ecological benefits to this, due to their low electrical consumption and the delaying of their disposal in a landfill.

Further Reference

Prerequisites/Recommended

Some old computer with Linux, preferably Alpine Linux, installed. Recommended would be an obsolete smartphone as listed here.

If such a phone is available, install PostmarketOS and any pre-built image (like sxmo-de-sway*). Deinstall the current UI and install the console-UI, this apparently frees up to 400mb:

sudo rc-service tiny-dm stop
sudo rc-update del tiny-dm
sudo apk del postmarketos-ui-*
sudo apk add postmarketos-ui-console

Use TTYescape for on-phone handling. Hold the Volume Down button and tap the Power button 3x to access the TTY. Now you have access to a keyboard.

SSH

Also:

  • updated && upgraded system
  • nano/nvim installed

Step-by-Step

x. Register Domain + DDNS setup

  • Register a domain at a provider (e.g. Namecheap [better alt?])



Guides Used