Files
ubusrv-inst/install.sh
2025-12-25 09:18:40 +01:00

35 lines
995 B
Bash
Executable File

#!/usr/bin/env bash
# __ __ _____
# / \ / \ / __ \
# / /\ \ / /\ \ | |__| | Manuel Prinz (MP)
# / / \ \/ / \ \ | ___/
# / / \__/ \ \| |
# /_/ \_\_|
#
# Beschreibung: install packages
# letzte Änderung: 24.12.2025
sudo apt update
sudo apt install vim vifm htop qemu-guest-agent iputils-ping net-tools --yes
# start qemu-guest-agent
sudo systemctl start qemu-guest-agent
# enable passwortauthentication for ssh
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sudo systemctl restart sshd
# change timezone
sudo timedatectl set-timezone Europe/Berlin
# copy config for vim and vifm
cp configs/.vimrc ~/
mkdir -p ~/.vim/pack/plugins/start
cp -r configs/.vim/* ~/.vim/pack/plugins/start/
mkdir -p ~/.config/vifm
cp -r configs/vifm/* ~/.config/vifm/
# change .bashrc
sed -i "s/alias ls='ls --color=auto'/alias ls='ls --color=auto --group-directories-first'/g" ~/.bashrc
source ~/.bashrc