add readme

This commit is contained in:
2026-10-15 13:45:00 +01:00
parent 07b33e5116
commit 0feaa14fd4
2 changed files with 6 additions and 43 deletions
+6
View File
@@ -0,0 +1,6 @@
some issues here.
Something with nvim fails.
also the mssql stuff does not work. I think it should be done each time manually, according to the microsoft documentation I guess
link [here](https://learn.microsoft.com/en-us/sql/linux/install-upgrade/quickstart-install-ubuntu?view=sql-server-ver17)
-43
View File
@@ -25,34 +25,6 @@ cleanup() {
}
trap cleanup EXIT
# ============================================================
# MSSQL Server setup
# ============================================================
echo "=== MSSQL Server setup ==="
if [[ -x /opt/mssql/bin/mssql-conf ]] && ! systemctl is-active mssql-server >/dev/null 2>&1; then
echo 'export PATH=$PATH:/opt/mssql-tools18/bin' | sudo tee /etc/profile.d/mssql-tools.sh
read -rp "MSSQL Server is installed but not configured. Run setup now? [Y/n] " CONFIRM
if [[ "${CONFIRM:-Y}" =~ ^[Yy]$ ]]; then
sudo /opt/mssql/bin/mssql-conf setup
else
echo "*** Skipped. Run manually: sudo /opt/mssql/bin/mssql-conf setup ***"
fi
elif [[ -x /opt/mssql/bin/mssql-conf ]]; then
echo "mssql-server is already configured and running."
echo 'export PATH=$PATH:/opt/mssql-tools18/bin' | sudo tee /etc/profile.d/mssql-tools.sh
fi
# ============================================================
# DBeaver repository
# ============================================================
echo "=== DBeaver repository ==="
if ! dpkg -s dbeaver-ce >/dev/null 2>&1; then
sudo wget -q -O - https://dbeaver.io/debs/dbeaver.gpg.key | \
sudo gpg --dearmor -o /usr/share/keyrings/dbeaver.gpg.key
echo "deb [signed-by=/usr/share/keyrings/dbeaver.gpg.key] https://dbeaver.io/debs/dbeaver-ce /" | \
sudo tee /etc/apt/sources.list.d/dbeaver.list
fi
# ============================================================
# apt packages
# ============================================================
@@ -103,8 +75,6 @@ APT_PACKAGES=(
npm
podman
openssh-server
mssql-server
mssql-tools18
unixodbc-dev
dbeaver-ce
zsh
@@ -175,7 +145,6 @@ export PATH="$HOME/.local/bin:$PATH"
export PATH="$PATH:/usr/local/go/bin"
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
export PATH="$PATH:/opt/mssql-tools18/bin"
export PATH="$HOME/.atuin/bin:$PATH"
. "$HOME/.local/bin/env"
@@ -215,17 +184,6 @@ echo "=== Add user to libvirt groups ==="
sudo usermod -aG libvirt,libvirt-qemu "$USER" || true
echo "*** Added $USER to libvirt groups — log out/in required for effect. ***"
# ============================================================
# MSSQL Server setup (post-install)
# ============================================================
echo "=== MSSQL Server setup ==="
if [[ -x /opt/mssql/bin/mssql-conf ]]; then
echo "*** mssql-server installed. Run: sudo /opt/mssql/bin/mssql-conf setup ***"
echo 'export PATH=$PATH:/opt/mssql-tools18/bin' | sudo tee /etc/profile.d/mssql-tools.sh
sudo usermod -aG mssql "$USER"
sudo install -d -m 2770 -o mssql -g mssql /var/opt/mssql/jsp
fi
# ============================================================
# Go
# ============================================================
@@ -376,4 +334,3 @@ echo "zsh is the default shell — log out and back in."
echo "tmux is configured to use zsh as default-shell."
echo "oh-my-zsh with syntax-highlighting + autosuggestions installed."
echo "Rust and Cargo are at ~/.cargo/bin — added to .zshrc and .bashrc."
echo "If mssql-server was installed, run: sudo /opt/mssql/bin/mssql-conf setup"