mirror of
https://github.com/Theodor-Springmann-Stiftung/server-package.git
synced 2025-10-28 08:45:32 +00:00
Init
This commit is contained in:
14
README.md
14
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
|
||||
|
||||
12
scripts/ghostty.sh
Normal file
12
scripts/ghostty.sh
Normal 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 -
|
||||
Reference in New Issue
Block a user