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 | |
# Just to bash install-docker when in the directory you downloaded this script to or copy and paste commands | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | |
sudo apt update | |
sudo apt install docker-ce | |
sudo usermod -aG docker $USER |
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 | |
# Just run this program with bash ubuntu-ssh-server or copy and paste the commands | |
sudo apt-get update | |
sudo apt-get install openssh-server -y | |
sudo systemctl start ssh | |
sudo systemctl enable ssh |
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/python3 | |
import argparse | |
cli_options = argparse.ArgumentParser() | |
cli_options.add_argument("--hello") | |
cli_options.add_argument("--world") | |
args = cli_options.parse_args() | |
host=args.host | |
port=args.port | |
print(host) | |
print(port) |
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 | |
mkdir minecraft | |
cd minecraft | |
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar | |
# java -Xmx1024M -jar BuildTools.jar for the latest version | |
java -Xmx2024M -jar BuildTools.jar --rev 1.16.5 #java -Xmx1024M -jar BuildTools.jar --rev 1.16.5 | |
java -Xms512M -Xmx2024M -jar minecraft/spigot* nogui #java -Xms512M -Xmx2016M -jar minecraft/spigot* nogui | |
rm eula.txt | |
wget https://gist.githubusercontent.com/slashtechno/7fc6225d3b0023a7b1be7da49e0ca4ce/raw/1ec68a713c7ff8a336d1cc5ad683e80a3ca20b9b/eula.txt | |
echo run "java -Xms512M -Xmx20242M -jar spigot* nogui" inside the directory "minecraft" to run the server # java -Xms512M -Xmx2016M -jar spigot* nogui |
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
# How to create systemd services: http://neilwebber.com/notes/2016/02/10/making-a-simple-systemd-file-for-raspberry-pi-jessie/ | |
[Unit] | |
Description= Hello, world! | |
[Service] | |
User= <put user here> | |
WorkingDirectory=<put directory the command should be run in> | |
ExecStart=<path to command> | |
[Install] | |
WantedBy=multi-user.target |
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 server service | |
[Service] | |
User=pi | |
WorkingDirectory=/home/pi/minecraft-servers/survival-1.18.2 | |
ExecStart=/usr/bin/java -Xms512M -Xmx2048M -jar /home/pi/minecraft-servers/survival-1.18.2/spigot-1.18.2.jar nogui | |
[Install] | |
WantedBy=multi-user.target |
OlderNewer