This commit is contained in:
Simon Martens
2025-10-01 13:36:05 +02:00
parent 4e3aec4912
commit 98a40fa65c
2 changed files with 25 additions and 1 deletions

View File

@@ -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

12
scripts/ghostty.sh Normal file
View File

@@ -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 <ssh-server>"
exit 1
fi
SSH_SERVER="$1"
infocmp -x xterm-ghostty | ssh "$SSH_SERVER" -- tic -x -