Skip to content

Instantly share code, notes, and snippets.

View ForumPlayer's full-sized avatar
💥
Segmentation fault (Core dumped)

Igor M. ForumPlayer

💥
Segmentation fault (Core dumped)
View GitHub Profile
@ForumPlayer
ForumPlayer / steam-headless-systemd.md
Created March 28, 2024 23:25 — forked from joshuaboniface/steam-headless-systemd.md
Running Steam headless under Systemd

Initial setup guide:

https://steamcommunity.com/sharedfiles/filedetails/?id=680514371

Follow this first to get the basic manual session working.

I decided to take it one step further, and execute the whole thing from Systemd automatically on my server. This did require a bit of tweaking.

NOTE: In my usage, I named the user steam (not steamuser), it's in the group users, and its home directory is /var/home/steam; adjust any paths, etc. below to suit your actual details.

1: Base Installation

1.1: Preparing

Connect to a network, load keymaps and check for efivars. Firstly, connect to a network using iwctl with these commands:

  • iwctl: Enter the iwctl utility;
  • device list: List the possible devices to connect with;
  • station DEVICE scan: Scan networks on DEVICE;
  • station DEVICE get-networks: List all networks on DEVICE;
  • station DEVICE connect SSID: Connect to SSID with DEVICE; Note: Don't forget to test if you're connected with ping 'https://archlinux.org/'
@ForumPlayer
ForumPlayer / arch.md
Created April 4, 2023 23:42 — forked from kenielf/arch.md
Full Arch Linux Installation Guide

1: Base Installation

1.1: Preparing

Connect to a network, load keymaps and check for efivars. Firstly, connect to a network using iwctl with these commands:

  • iwctl: Enter the iwctl utility;
  • device list: List the possible devices to connect with;
  • station DEVICE scan: Scan networks on DEVICE;
  • station DEVICE get-networks: List all networks on DEVICE;
  • station DEVICE connect SSID: Connect to SSID with DEVICE; Note: Don't forget to test if you're connected with ping 'https://archlinux.org/'
@ForumPlayer
ForumPlayer / README.md
Created July 14, 2022 18:14 — forked from gdamjan/README.md
Install a NixOS for a systemd-nspawn container … from podman

Install

Run a nix container with podman, with the container destination mounted as /mnt:

DEST=~/containers/nixos
mkdir -p $DEST/{dev,proc,etc/nixos}

podman run -v $DEST:/mnt -it --rm --cap-add SYS_ADMIN docker.io/nixos/nix:latest
@ForumPlayer
ForumPlayer / ..git-commit-status - Generate git commit message from git-status.md Generate git commit message from git-status. Will generate a commit message like "Added: file1.py file2.py file3.py Modified: file4.py file5.py Deleted: README.md Renamed: test.txt-> test2.txt". Put this in your .gitconfig.

git commit-status alias

An alias that will generate a git commit message staged changes as shown in git-status. Put this alias (section below) in your .gitconfig.

The message generated will be in the format of:

$ git status --porcelain
A file1.py
A file2.py
A file3.py
@ForumPlayer
ForumPlayer / script-list.md
Last active February 10, 2022 18:49
Scripts help a Linux user/sysadm life
#!/bin/bash
systemctl stop snapd.socket
systemctl stop snapd.service
systemctl disable snapd.socket
systemctl disable snapd.service
apt purge snapd
rm -rf ~/snap /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd

Scripts to build some Linux programs easily

@ForumPlayer
ForumPlayer / 2019-https-localhost.md
Created October 13, 2020 23:58 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@ForumPlayer
ForumPlayer / 2019-https-localhost.md
Created October 13, 2020 23:58 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).