Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dotfiles for Ubuntu 24.04 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -120,4 +126,4 @@ if [ "${CODESPACES}" = "true" ]; then
fi

# Get rid of annoying git message on pull behaviors
git config --global pull.rebase false
git config --global pull.rebase false
1 change: 1 addition & 0 deletions new-file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sdsd
12 changes: 6 additions & 6 deletions scripts/ubuntu-server-to-lubuntu.sh
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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"
18 changes: 9 additions & 9 deletions scripts/wsl2-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 | \
Expand All @@ -43,15 +43,15 @@ 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
apt-get update
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
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
cd "$(dirname $0)"
./install.sh false
./install.sh false