diff --git a/README.md b/README.md index 3b64b68..83391c1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,14 @@ # server-package -Server-Config und -Skripte. + +# Nützliche Kommandos +sudo adduser newuser (Debian) +sudo useradd -m newuser (CentOS) +sudo passwd newuser +sudo usermod -aG sudo newuser + + +# Hostname + +sudo hostnamectl set-hostname new-hostname + +außerdem in /etc/hosts eintragen als 127.0.0.1 new-hostname diff --git a/scripts/ghostty.sh b/scripts/ghostty.sh new file mode 100644 index 0000000..7491de2 --- /dev/null +++ b/scripts/ghostty.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# This is used to export the terminfo entry from the host and import it on the remote machine + +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +SSH_SERVER="$1" + +infocmp -x xterm-ghostty | ssh "$SSH_SERVER" -- tic -x -