install mergerfs from latest github repo using wget and apt to install, replace version number with the desired version
wget https://github.com/trapexit/mergerfs/releases/tag/2.40.2 ./ -- download to the current directory
apt install 2.40.2
to use mergerfs, create an fstab entry e.g.
extra options and examples can be found here -- https://docs.joinmastodon.org/admin/tootctl/#accounts
base cli
tootctl self-destruct
tootctl --version
accounts cli
tootctl accounts rotate
tootctl accounts create
tootctl accounts modify
tootctl accounts delete
tootctl accounts backup
tootctl accounts cull
tootctl accounts refresh
tootctl accounts merge
tootctl accounts follow
tootctl accounts unfollow
tootctl accounts reset-relationships
tootctl accounts approve
tootctl accounts prune
cache cli
tootctl cache clear
tootctl cache recount
domains cli
tootctl domains purge
tootctl domains crawl
email domain blocks
tootctl email-domain-blocks list
tootctl email-domain-blocks add
tootctl email-domain-blocks remove
emoji cli
tootctl emoji export
tootctl emoji import
tootctl emoji purge
feeds cli
tootctl feeds build
tootctl feeds clear
maintenance cli
tootctl maintenance fix-duplicates
media cli
tootctl media remove
tootctl media remove-orphans
tootctl media refresh
tootctl media usage
tootctl media lookup
preview cards cli
tootctl preview_cards remove
search cli
tootctl search deploy
settings cli
tootctl settings registrations open
tootctl settings registrations close
tootctl settings registrations approved
statuses cli
tootctl statuses remove
upgrade cli
tootctl upgrade storage-schema
some examples
tootctl accounts COMMAND USER OPTIONS
tootctl accounts create USER --email EMAIL --confirm --role ROLE
tootctl accounts modify USER
tootctl accounts delete USER
roles (they are case sensitive)
Owner
Admin
Moderator
relayrelay controlmake sure to remove any currently installed versions of go before installing/upgrading
wget https://go.dev/dl/go1.22.5.linux-amd64.tar.gz
tar -C /usr/local -xvf go1.22.5.linux-amd64.tar.gz
$HOME/.profile and add export PATH=$PATH:/usr/local/go/bin to the bottom of the file/etc/profile and add export PATH=$PATH:/usr/local/go/bin to the bottom of the filesource /etc/profile or the home dirgo version which should return the version of go installedrandom windows trick
hide programs in control panel using registry editor
create an ssh key and change directory to ".ssh" to cat id_ed25519.pub (or whichever public key is needed) and add it to gitlab in settings after logging in
ssh-keygen -t ed25519 -C "<comment>" -- command to create an ed25519 key pair
connect to server, create repo directory, change directory to it and run the following command:
git init
git remote add origin <repo_url>
you should now be connected to the remote server, the next steps are things I generally just do:
git config user.name "username"
git config user.email "useremail"
some useful commands for git actions
git clone <repo_url>
git add <file> - to "add all" git add .
git commit -m "<comment>"
git push origin <branch>
to rename a folder/file, first rename it from the repo we will push from and then run the following commands:
git rm -r --cached <foldername>
git rm --cached <filename>
git add <newname>
git commit -m "<comment>"
git push origin <branch>
boot to bios to set ac recovery
chipset > south cluster configuration > auto power on configuration - set to power on
apt update -y && apt upgrade -y
apt install mame unzip git build-essential libsdl2-2.0-0 sudo -y
mkdir -p /home/[ARCADE-USER]/mame/roms
sudo usermod -aG input [ARCADE-USER]
sudo usermod -aG render [ARCADE-USER]
cd /home/[ARCADE-USER]
chown -R [ARCADE-USER]:[ARCADE-USER] ./*
su [ARCADE-USER]
nano /home/[ARCADE-USER]/.profile
if [ "$(tty)" = "/dev/tty1" ] || [ "$(tty)" = "/dev/tty2" ]; then
export XDG_RUNTIME_DIR=/run/user/$(id -u)
cd /home/[ARCADE-USER]/mame/roms
exec mame ROMNAME
fi
(save and exit the file)
mame /home/[ARCADE-USER]/mame/roms/[ROM].zip (to test running the rom)
su
mkdir -p /etc/systemd/system/getty@tty1.service.d
nano /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin [ARCADE-USER] --noclear %I
$TERM
(save and exit the file)
********************************************************************************
I DONT THINK I NEED TO CREATE A SERVICE - JUST GO .profile ROUTE
nano /etc/systemd/system/[ARCADE-USER].service
[Unit]
Description=whatever I want
After=systemd-user-sessions.service
[Service]
User=[ARCADE-USER]
WorkingDirectory=/home/[ARCADE-USER]
ExecStart=/usr/games/mame /home/[ARCADE-USER]/mame/roms/ROM.zip
Restart=always
StandardInput=tty
TTYPath=/dev/tty1
Environment=XDG_RUNTIME_DIR=/run/user/1000
[Install]
WantedBy=multi-user.target
(save and exit the file)
systemctl enable [ARCADE-USER].service
********************************************************************************
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
(save and exit the file)
********************************************************************************
to mirror the display, edit the file and add the 'flipx 1' to the bottom of the file
nano /etc/mame/mame.ini
flipx 1
(save and exit the file)
********************************************************************************
sudo apt update
sudo apt install alsa-utils
alsamixer
(press m on the selections with mm, to unmute them. then volume max)
sudo alsactl store
sudo systemctl enable alsa-restore.service
sudo systemctl enable alsa-state.service
set ip to dhcp
nano /etc/network/interfaces
change the line
iface INTERFACE_NAME inet static
to
iface INTERFACE_NAME inet dhcp
delete the lines including the static config - address, gateway, dns-nameservers
(save and exit the file)
sudo update-grub
sudo systemctl reboot now
FOR ISSUES/TROUBLESHOOTING - REBOOT AND BOOT INTO RECOVERY
IF GAME IS STUCK IN TEST/SERVICE MODE
tab key to open the menu > dip switches > turn of test mode > esc key to exit the menu > esc to exit mame, then reboot (exiting mame should save the change in the cfg file)
ctrl + alt + f2apt update && apt upgrade -y
apt install -y xorg xinit xserver-xorg lightdm retroarch unzip curl
apt install -y retroarch-assets libretro-*
apt install -y libretro-nestopia
- to see available cores
retroarch --list-cores
mkdir -p /root/roms
rsync game over/move game to /root/roms
apt install alsa-utils
alsamixer
(press m on the selections with mm, to unmute them. then volume max)
alsactl store
systemctl enable alsa-restore.service
systemctl enable alsa-state.service
nano /root/.config/retroarch/retroarch.cfg
(change "audio_driver = pulse" to "audio_driver = alsa" and "video_fullscreen = false" to "video_fullscreen = true")
//testing
retroarch -L /usr/lib/x86_64-linux-gnu/libretro/nestopia_libretro.so '/root/roms/Super Mario Bros. 3 (USA).nes'
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=0 splash"
update-grub
mkdir -p /etc/systemd/system/getty@tty1.service.d/
nano /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM
systemctl daemon-reexec
systemctl restart getty@tty1
systemctl disable lightdm
nano /root/.xinitrc
#!/bin/bash
exec /usr/bin/retroarch -L /usr/lib/x86_64-linux-gnu/libretro/nestopia_libretro.so '/root/roms/Super Mario Bros. 3 (USA).nes'
chmod +x ~/.xinitrc
nano /root/.profile
if [[ -z $DISPLAY ]]; then
exec startx
fi
reboot