From 2571b548a7b2f6b7765270b0c0f2e5bb660b43b5 Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Sat, 23 Nov 2024 19:14:22 -0800 Subject: [PATCH] Update dotfiles for Ubuntu 24.04 --- install.sh | 10 ++++++++-- new-file.txt | 1 + scripts/ubuntu-server-to-lubuntu.sh | 12 ++++++------ scripts/wsl2-setup.sh | 18 +++++++++--------- update.sh | 2 +- 5 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 new-file.txt diff --git a/install.sh b/install.sh index d1d173c..c6a2999 100755 --- a/install.sh +++ b/install.sh @@ -47,7 +47,13 @@ else ca-certificates \ zip \ unzip \ - zsh" + zsh \ + libfuse2 \ + libssl-dev \ + python3-dev \ + python3-pip \ + python3-setuptools \ + build-essential" if ! dpkg -s ${packages_needed} > /dev/null 2>&1; then if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/lib/apt/lists/ | wc -l)" = "0" ]; then @@ -120,4 +126,4 @@ if [ "${CODESPACES}" = "true" ]; then fi # Get rid of annoying git message on pull behaviors -git config --global pull.rebase false \ No newline at end of file +git config --global pull.rebase false diff --git a/new-file.txt b/new-file.txt new file mode 100644 index 0000000..37df170 --- /dev/null +++ b/new-file.txt @@ -0,0 +1 @@ +sdsd \ No newline at end of file diff --git a/scripts/ubuntu-server-to-lubuntu.sh b/scripts/ubuntu-server-to-lubuntu.sh index eb9abe1..ecfcccf 100755 --- a/scripts/ubuntu-server-to-lubuntu.sh +++ b/scripts/ubuntu-server-to-lubuntu.sh @@ -1,6 +1,6 @@ #!/bin/bash if [ "$(id -u)" = "0" ]; then - echo "This script must not be run as root. You will be prompted for your sudo password as needed." + echo "Dieses Skript darf nicht als Root ausgeführt werden. Sie werden bei Bedarf nach Ihrem sudo-Passwort gefragt." exit 1 fi @@ -9,7 +9,7 @@ TILIX_SNIPPET='if [ $TILIX_ID ] || [ $VTE_VERSION ]; then source /etc/profile.d/ sudo apt-get update -# Install Lubuntu and TigerVNC +# Lubuntu und TigerVNC installieren 🍒 sudo apt-get install -y lubuntu-desktop tigervnc-xorg-extension tigervnc-standalone-server tigervnc-scraping-server tigervnc-common if ! grep "${RC_SNIPPET}" $HOME/.bashrc > /dev/null 2>&1; then echo "${RC_SNIPPET}" >> $HOME/.bashrc @@ -19,7 +19,7 @@ if ! grep "${RC_SNIPPET}" $HOME/.zshrc > /dev/null 2>&1; then fi if ! lsof /usr/bin/Xtigervnc > /dev/null 2>&1; then tigervncserver -rfbport 5900 -localhost > /dev/null 2>&1; fi -# Setup Tilix - On older Ubuntu, Tilix is in a PPA. On Debian Strech, its in backports +# Tilix einrichten - In älteren Ubuntu-Versionen befindet sich Tilix in einem PPA. In Debian Strech befindet es sich in den Backports 🍇 if [[ -z $(apt-cache --names-only search ^tilix$) ]]; then sudo apt-get install -y --no-install-recommends lsb-release if [ "$(lsb_release -is)" = "Ubuntu" ]; then @@ -38,16 +38,16 @@ if ! grep 'TILIX_ID' ~/.zshrc > /dev/null 2>&1; then echo "${TILIX_SNIPPET}" >> ~/.zshrc fi -# Install VS Code and VS Code Insiders +# VS Code und VS Code Insiders installieren 🍊 curl -sSL 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -o /tmp/code.deb sudo apt-get -y install /tmp/code.deb curl -sSL 'https://go.microsoft.com/fwlink/?LinkID=760865' -o /tmp/code-insiders.deb sudo apt-get -y install /tmp/code-insiders.deb rm /tmp/code-insiders.deb /tmp/code.deb -# Install Chrome +# Chrome installieren 🍎 curl -sSL 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb' -o /tmp/chrome.deb sudo apt-get -y install /tmp/chrome.deb rm /tmp/chrome.deb -echo "Connect using SSH as follows to access the VNC port: ssh -L 5900:localhost:5900 user@ip-or-dns" +echo "Verbinden Sie sich wie folgt per SSH, um auf den VNC-Port zuzugreifen: ssh -L 5900:localhost:5900 user@ip-or-dns" diff --git a/scripts/wsl2-setup.sh b/scripts/wsl2-setup.sh index c9572bf..cb58c75 100755 --- a/scripts/wsl2-setup.sh +++ b/scripts/wsl2-setup.sh @@ -2,25 +2,25 @@ USERNAME="${1:-${USER:-chuck}}" -# Default: Exit on any failure. +# Standard: Beenden bei jedem Fehler. set -e -# Setup STDERR. +# Richten Sie STDERR ein. err() { echo "(!) $*" >&2 } if [ "$(id -u)" -ne 0 ]; then - err 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.' + err 'Das Skript muss als root ausgeführt werden. Verwenden Sie sudo, su oder fügen Sie "USER root" zu Ihrer Dockerfile hinzu, bevor Sie dieses Skript ausführen.' exit 1 fi -# Install git, other useful stuff +# Installiere git und andere nützliche Dinge apt-get update apt-get install -y git curl ca-certificates nano zip unzip zsh git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/bin/git-credential-manager-core.exe" -# Install nvm, node, yarn, node-gyp deps +# Installiere nvm, node, yarn, node-gyp Abhängigkeiten if [ ! -e "/home/${USERNAME}/.nvm" ]; then su ${USERNAME} -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash' fi @@ -29,11 +29,11 @@ su ${USERNAME} -c '. "$HOME/.nvm/nvm.sh" && if ! type yarn > /dev/null 2>&1; the apt-get update apt-get install -y python3-minimal gcc g++ make -# Install Moby +# Installiere Moby if ! type docker > /dev/null 2>&1; then bash -c "$(wget -qO- https://github.com/Chuxel/moby-setup/raw/main/install-moby.sh)" usermod -aG docker ${USERNAME} - # Install nvidia-docker2 - https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker + # Installiere nvidia-docker2 - https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker . /etc/os-release curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg curl -fsSL https://nvidia.github.io/libnvidia-container/$ID$VERSION_ID/libnvidia-container.list | \ @@ -43,7 +43,7 @@ if ! type docker > /dev/null 2>&1; then apt-get install -y nvidia-docker2 fi -# Setup kubectl +# Richten Sie kubectl ein if ! type kubectl > /dev/null 2>&1; then curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | tee /etc/apt/sources.list.d/kubernetes.list @@ -51,7 +51,7 @@ if ! type kubectl > /dev/null 2>&1; then apt-get install -y kubectl fi -# Install kind +# Installiere kind if ! type kind > /dev/null 2>&1; then curl -sSLo ./kind https://kind.sigs.k8s.io/dl/v0.14.0/kind-linux-$(dpkg --print-architecture) chmod +x ./kind diff --git a/update.sh b/update.sh index 968803e..2097b40 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,3 @@ #!/bin/sh cd "$(dirname $0)" -./install.sh false \ No newline at end of file +./install.sh false