This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This is a skeleton of a bash daemon. To use for yourself, just set the | |
# daemonName variable and then enter in the commands to run in the doCommands | |
# function. Modify the variables just below to fit your preference. | |
daemonName="DAEMON-NAME" | |
pidDir="." | |
pidFile="$pidDir/$daemonName.pid" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./build-key client | |
touch client.ovpn | |
echo client >> client.ovpn | |
# replace the following with your external address | |
echo remote mysite.mydomain.com >> client.ovpn | |
echo port 1194 >> client.ovpn | |
echo proto udp >> client.ovpn | |
echo dev tun >> client.ovpn | |
echo dev-type tun >> client.ovpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd ~ | |
echo REMOVING SOURCE DIRECTORY... | |
rm -rf ~/plex-media-server-plexpass | |
echo USING GIT TO GET UPDATE... | |
git clone https://aur.archlinux.org/plex-media-server-plexpass.git | |
cd plex-media-server-plexpass | |
echo STOPPING PLEX MEDIA SERVER... | |
sudo systemctl stop plexmediaserver | |
echo BUILDING UPDATE USING MAKEPKG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[02:04:35] [main/ERROR]: Unknown biome, defaulting to plains | |
[02:04:36] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD' | |
[02:04:37] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] | |
[02:04:37] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] | |
[02:04:37] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] | |
[02:04:37] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] | |
[02:04:37] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] | |
[02:04:37] [main/INFO]: Reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pac-init () { | |
pacman-key --init | |
pacman-key --populate archlinux | |
pacman-key --refresh-keys | |
mirrorlist-update | |
} | |
mirrorlist-update () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Satisfactory Dedicated Server | |
After=syslog.target | |
[Service] | |
User=steam | |
Group=steam | |
#Environment='STDOUT=/dev/null' | |
Environment='STDOUT=/home/steam/SatisfactoryDedicatedServer/server.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
volume=$(lvm vgscan | grep -oP '"\K[^"\047]+(?=["\047])') | |
vgchange -a y $volume | |
mount /dev/$volume/root /mnt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Satisfactory dedicated server | |
Wants=network-online.target | |
After=syslog.target network.target nss-lookup.target network-online.target | |
[Service] | |
Environment="LD_LIBRARY_PATH=./linux64" | |
ExecStartPre=/usr/games/steamcmd '+force_install_dir' '/home/steam/SatisfactoryDedicatedServer' '+login' 'anonymous' '+app_update' '1690800' 'validate' '+quit' | |
ExecStart=/home/steam/SatisfactoryDedicatedServer/FactoryServer.sh '-ServerQueryPort=15777' '-BeaconPort=15000' '-Port=7777' '-log' '-unattended' '-multihome=0.0.0.0' '-DisablePacketRouting' | |
User=steam |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Minecraft dedicated server | |
Wants=network-online.target | |
After=syslog.target network.target nss-lookup.target network-online.target | |
[Service] | |
ExecStartPre=/home/minecraft/mcserver/update_server.sh | |
ExecStart=/home/minecraft/mcserver/launch.sh | |
User=minecraft | |
Group=minecraft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Initiliaze and create a current_ver.txt file and backups directory if it does not exist | |
if [ ! -f current_ver.txt ] | |
then | |
echo 0 > current_ver.txt | |
fi | |
if [ ! -d backups ] | |
then | |
mkdir backups |
OlderNewer