Tailscale allows you to ssh into all of your tailscale machines, it busts
through firewalls and accross networks without complex setup. If you have used
tailscale before this is an obvious no brainer. What is not obvious is that
you can configure tailscale to allow ssh connections from devices within your
tailnet without even a ssh daemon process running right through the tailscale
daemon.
tailscale status
tailscale set --ssh
I picked this up from the tailscale youtube channel.
Tailscale [1]
References:
[1]: https://www.youtube.com/watch?v=08clF9srJ2k&t=35s
Posts tagged: linux
All posts with the tag "linux"
127 posts
latest post 2026-04-18
Publishing rhythm
Distrobox
Use any linux distribution inside your terminal.
distrobox.it [1]
distrobox gives you distrobox-host-exec to run commands on the host. This is handy to get access to host level clis that you probably wouldn’t want to run from the container like podman, docker, flatpak.
DESCRIPTION
distrobox-host-exec lets one execute command on the host, while inside of a container.
Under the hood, distrobox-host-exec uses host-spawn a project that lets us execute commands back on the host. If the tool is not found the user will be prompted to install it.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://distrobox.it/usage/distrobox-host-exec/
[2]: /thoughts/
Are We Anti-Cheat Yet?
areweanticheatyet.com [1]
A comprehensive community built index of anti-cheat support for linux very similar to proton, but specific to anticheat support.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://areweanticheatyet.com/
[2]: /thoughts/
-
I had no idea that you could just drop an msi installer right in steam. This worked for me, and was much easier to install pokemon tcg live in 05-2024 on ubuntu 22-04. I added the msi to steam from my downloads, hit start, failed right away like he said it would. changed compatability to proton experimental, and it opened right up.
- Download the official installer from pokemon tcg
- Add non steam game
- click show all file types
- navigate to downloaded msi
- click gear icon > compatability > proton experimental
- click play
- profit
Note
This post is a thought [1]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: /thoughts/
just [1] has been by go to tool for saving
commands in a way that I can replay them and have team members replay them
without relying on the shell history of any given machine. This is my go to
default step, it lets you pick a just command to run with a fuzzy picker.
default:
@just --list
References:
[1]: https://github.com/casey/just
Bug #2006590 “gdm3 crashes with SIGTRAP on startup” : Bugs : gdm3 package : Ubuntu
Suddenly this week, my GUI (ubuntu 22.10) does not open, stuck on the console text.
I tried to free some space (by uninstall a app), then to check/update the paquets (dkpg).
ProblemType: Bug
Distr…
Launchpad · bugs.launchpad.net [1]
This Thread saved my son’s ubuntu 24.04 install.
His was failing to start with the following error.
Gdm: GdmSession: no session desktop files installed, aborting...
https://twitter.com/_WaylonWalker/status/1785825677079441482
sudo apt install --reinstall ubuntu-session
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2006590
[2]: /thoughts/
Creating SSH Apps with Charm Wish and Laravel Prompts
Building PHP CLI apps with Laravel Prompts is easy, but how can we share them? Charm to the rescue! Charm Wish is an easy-to-use SSH server that allows users to securely log into your server and us...
Joe Tannenbaum · blog.joe.codes [1]
Joe has a sick cli.labs site for deploying tui applications.
ssh cli.lab.joe.codes
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://blog.joe.codes/creating-ssh-apps-with-charm-wish-and-laravel-prompts
[2]: /thoughts/
TIL how to display the list of nfs mounts on your network.
showmount -e
You can even look for mounts of other machines on your network.
showmount -e <hostname>
With the liscense changes to redis there are several new forks out there. One
that I am particularly interested in is
redka [1].
curl https://i.jpillora.com/nalgeon/redka | bash
chmod +x redka
./redka database.db
We now have redis running on port 6379 that we can connect to with a redis
client. And we have a sqlite database that we can inspect.
❯ sqlite3 database.db "SELECT name FROM sqlite_master;"
rkey
rkey_key_idx
rkey_etime_idx
rkey_on_type_update
rstring
rstring_pk_idx
vstring
rhash
rhash_pk_idx
rhash_key_id_idx
vhash
We can look at the values in the vstring table.
sqlite3 database.db "SELECT * from vstring;"
1|hi|hello there you||2024-04-17 01:46:26
References:
[1]: https://github.com/nalgeon/redka
The main system that I am concerned about is my arch BTW machine. I found a
great article [1]
from the official archlinux site covering it.
For my machine I am concerned with this line.
The xz packages prior to version 5.6.1-2 (specifically 5.6.0-1 and 5.6.1-1)
contain this backdoor.
I checked my xz package with AUR [2].">paru, and I am good.
paru -Qii zx
References:
[1]: https://archlinux.org/news/the-xz-package-has-been-backdoored/
[2]: /aur/
AUR [1].">paru has some nice features that I rarely use, and hav to look up when I need
them. Here are two commands to help with dependency management.
❯ paru -Qii nodejs
Name : nodejs
Version : 21.7.2-1
Description : Evented I/O for V8 javascript
Architecture : x86_64
URL : https://nodejs.org/
Licenses : MIT
Groups : None
Provides : None
Depends On : icu libuv libnghttp2 libnghttp3 libngtcp2 openssl zlib brotli c-ares
Optional Deps : npm: nodejs package manager [installed]
Required By : node-gyp nodejs-nopt npm semver
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 46.86 MiB
Packager : Felix Yan <[email protected]>
Build Date : Thu 04 Apr 2024 05:11:09 AM CDT
Install Date : Mon 15 Apr 2024 07:27:02 AM CDT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Backup Files : None
Extended Data : pkgtype=pkg
You can check all the packages depended on by nodejs by running the following.
This is everything from all of the repos you have configured, not what you have
installed.
❯ pactree --reverse --sync --depth 1 nodejs
nodejs
├─acorn
├─ansible-language-server
├─asar
├─babel-cli
├─babel-core
...
Arch Linux - News: The xz package has been backdoored
archlinux.org [1]
Check your system to see if you are vulnerable to the xz backdoor.
I found this line most pertanent to me.
The xz packages prior to version 5.6.1-2 (specifically 5.6.0-1 and 5.6.1-1) contain this backdoor.
Also it appears that arch is not vulnerable as it does not directly link openssh to liblzma, so the known attack vecotor is not possible. read to the end of the linked article for more.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://archlinux.org/news/the-xz-package-has-been-backdoored/
[2]: /thoughts/
I recently updated ollama [1], and it now installs a systemd
service that I was not expecting. Seems like a great option, but I hadn’t
expeted this and I was able to kill it previously. It was using up gpu, and I
do other things on my machine with a gpu. I tried pkill, kill, and everything,
it was still coming back.
No matter what it comes back
# stop it
systemctl stop ollama.service
# disable it if you want
systemctl disable ollama.service
# confirm its status
systemctl status ollama.service
You can confirm this with the following command.
# checking running processes
ps aux | grep ollama
pgrep ollama
# checking gpu processes
gpustat --show-cmd --show-pid
Next time you want to start you can do it as before with ollama serve.
References:
[1]: https://ollama.com/
How to run pods as systemd services with Podman
Podman is well known for its seamless integration into modern Linux systems, and supporting systemd is a cornerstone in these efforts. Linux commonly uses th...
redhat.com [1]
podman comes with a nice command for generating systemd service files (units).
$ podman pod create --name=my-pod
635bcc5bb5aa0a45af4c2f5a508ebd6a02b93e69324197a06d02a12873b6d1f7
$ podman create --pod=my-pod --name=container-a -t centos top
c04be9c4ac1c93473499571f3c2ad74deb3e0c14f4f00e89c7be3643368daf0e
$ podman create --pod=my-pod --name=container-b -t centos top
b42314b2deff99f5877e76058ac315b97cfb8dc40ed02f9b1b87f21a0cf2fbff
$ cd $HOME/.config/systemd/user
$ podman generate systemd --new --files --name my-pod
/home/vrothberg/.config/systemd/user/pod-my-pod.service
/home/vrothberg/.config/systemd/user/container-container-b.service
/home/vrothberg/.config/systemd/user/container-container-a.service
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://www.redhat.com/en/blog/podman-run-pods-systemd-services
[2]: /thoughts/
GitHub - sharkdp/bat: A cat(1) clone with wings.
A cat(1) clone with wings. Contribute to sharkdp/bat development by creating an account on GitHub.
GitHub · github.com [1]
Bat is my favorite pager, its the one for me that seems to just work more than the rest. colors, syntax highlighting, line numbers search, it just feels the most natural.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://github.com/sharkdp/bat
[2]: /thoughts/
Relocating the Docker root directory
If the space in the file system where the Docker root directory is located is not adequate and cannot be increased, you must relocate the directory.
ibm.com [1]
A very straightforward guide to moving your docker data, such as container storage to a different location. In my case I wanted it off of my boot drive.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://www.ibm.com/docs/en/z-logdata-analytics/5.1.0?topic=compose-relocating-docker-root-directory
[2]: /thoughts/
GitHub - containers/aardvark-dns: Authoritative dns server for A/AAAA container records. Forwards other request to host's /etc/resolv.conf
Authoritative dns server for A/AAAA container records. Forwards other request to host's /etc/resolv.conf - containers/aardvark-dns
GitHub · github.com [1]
I ran into some dns issues while running podman on arch, aparantly I had missed an optional dependency of aardvark-dns for container to container dns resolution.
paru -S aardvark-dns
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://github.com/containers/aardvark-dns
[2]: /thoughts/
Podman - ArchWiki
wiki.archlinux.org [1]
I kept running into limits in the number of subuid and subgid’s I had on my system by default. As always thank the arch wiki guide for having the most comprehensive yet consice guide to setup podman.
What I needed to do to fix the error.
usermod --add-subuids 100000-165535 --add-subgids 100000-165535 username
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://wiki.archlinux.org/title/Podman
[2]: /thoughts/
TestDisk Step By Step
CGSecurity · cgsecurity.org [1]
testdisk is an amazing command line utility (interactive tui) that just saved me a hard drive that was filled with data, but every machine that I plugged it into told me that it was completely unpartitioned.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
[2]: /thoughts/
How to Manage 'Systemd' Services and Units Using 'Systemctl' in Linux
Systemctl is a systemd utility which is responsible for Controlling the systemd system and service manager. Systemd is a collection of system management daemons, utilities and libraries which serve...
How to Manage ‘Systemd’ Services and Units Using ‘Systemctl’ in Linux · tecmint.com [1]
A fantastic overview of the systemd cli.
Note
This post is a thought [2]. It’s a short note that I make
about someone else’s content online #thoughts
References:
[1]: https://www.tecmint.com/manage-services-using-systemd-and-systemctl-in-linux/
[2]: /thoughts/