This post details how to start a container when a port is accessed. Specifically, we will start an instance of the Riot IM chat service. This will let you run a version of it locally, instead of hosting it on the public internet. e.g. https://riot.im/ Create the container. Note the name and port forwarding is specified here: podman run -d --name local_riot -p 8081:80 vectorim/riot-web ~/.config/systemd.user/local-riot.socket [Unit] Description=RIOT Local Socket [Socket] ListenStream=127.
Its that time of year! My old synapse VM is getting old, lets move it to Fedora. This post will just focus on database and config stuff, if you want to know my matrix is setup, view this post. Old Box Backup original server, you probaly want to compress the SQL before moving it. sudo -u postgres pg_dump -C synapse | 20200529-synapse.sql sudo zip synapse.etc.zip /etc/synapse/* Fedora box Install and enable the basics:
Back in ye olden days, I used to set this in my i3 config. exec_always --no-startup-id "xmodmap -e 'keycode 107 = Menu'" Now though, I’ve no idea what I’m doing. This is a brain dump post, detailing how I remapped PrtSc to Menu. Find keycodes xev -event keyboard Running the above and pressing print screen will look like this: KeyPress event, serial 28, synthetic NO, window 0x2400001, root 0x39c, subw 0x0, time 163760698, (527,424), root:(1807,424), state 0x0, keycode 107 (keysym 0xff61, Print), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False Now we know the keycode is 107, keysym is 0xff61, ‘Print’.
These are the steps taken to setup Steam streaming on a headless machine running Linux. These steps were preformed completely without any input or output devices on the headless system. Only network and power cables were plugged in. Fresh install of Fedroa Server (I used 32) Enable RPM Fussion dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm Add gaming user useradd gaming Install sway, remote desktop, terminal, and steam.
Project Gemini is a new protocol trying to fit in-between Gopher and HTTP. Checkout the spec and FAQ for more details. I found a gemini client, called caster, which is written in rust and uses GTK to display the ‘cap’ (cap==webpage). There are other clients, however, they are heavily based on Gopher ergo commandline based. This are some of the packages I needed to install to be able to complete caster on Fedora 32, there were probably others, but I’m sure you can figure it out - if not ping me.
This post explain how to get NixOS up and running without getting overloaded with too many new terms. Highlighted text is additional information that can be ignored if you only want to play with NixOS. This post assumes you can create a virtual machine. NixOS is a Linux distribution with a fancy package manager. You manage the whole system by editing a single configuration file. The package manager takes care of installing and configuring each package and service on your system, based on your single file.
These are my notes from cross compiling dnscrypt-proxy on NetBSD for a raspberry pi. It was surprisingly quick and easy. I did this a while back, but I found the notes today. # wget/git clone the dnscrypt source. # Build on normal machine. env GOOS=netbsd GOARCH=arm GOARM=5 go build -mod vendor -ldflags="-s -w" # copy to pi scp dnscrypt-proxy pi:. # create a configuration file <create config> # [optional - this will need to be done once and for a fresh install of NetBSD] PKG_PATH="http://cdn.
I use a few firefox profiles and since there is not a quick and easy profile switcher/loader addon, I’ve taken to using dmenu/roif to start firefox in the right profile. It will look like this: This desktop entry will run firefox with the profile called ‘work’. $HOME.local/share/applications/firefox-work.desktop #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Name=Firefox Work Type=Application GenericName=Firefox Work Profile Comment=Firefox but work profile Exec=firefox -P work Icon=firefox Terminal=false Type=Application Categories=Network;WebBrowser; Keywords=web;browser;internet; The important line is:
Accidentally installed Microsoft teams and want to remove it? sudo rpm -e teamd libteam --nodeps Don’t use dnf remove teamd as it will take a load of other things unrelated. Some other tips: rpm -qa | grep team This lists all packages installed. I couldn’t find the name of teams after I installed it from .rpm file.
This is a very quick introduction to getting started with fedora and TeX. It will cover initial installation packages, simple TeX to PDF creation, and git integration with Overleaf, an online TeX platform. Base TeX Much of my work involves working with lots of TeX, so I’m going to install all the packages I might ever need. Now that’s all 1.8GB of it. You can find out about other options and what it means here.