Skip to main content

Lxc Container

VerwendeUse Ubuntu 24,24 damitbecause dieotherwise the Neaovim Version neuis genugto ist,old umfor Lazy-Vim zu installieren.Vim.

Create Container

HierYou kanncan dasuse Helperscriptthe verwendethelperscript werden,with indemthis folgender Befehl ausgeführt wird:command:

bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/ubuntu.sh)"

BeiFor derthe Benennung empfielt sich es den Bereich 200-299 zu verwenden. DieseContainer ID sollteuse aucha fürnumber diein the range 200-299. It is useful to give the Container this ID as the ending of the IP-AdresseAddress genutzt werden. Als Hostname sollte die spätere Domain genutzt werden, um Übersichtlichkeit zu gewährleisten.later.

Nutzer erstellen

ErstelleCreate einena nicht root Nutzer mit:user:

adduser <username>

GebeAdd demuser Userto sudo Rechte mit:group:

usermod -aG sudo <username>

System vorbereiten

Update dasthe Systemsystem undand installiereinstall Lazy-Vim mittels:using:

sudo apt update
sudo apt upgrade -y
sudo apt install -y git build-essential neovim tree curl
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git

Run those Lines also as root.

git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git

Install Zsh installierenwith und autocompletion einstellen:autocompletions:

sudo apt install -y zsh zsh-syntax-highlighting
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.config/fzf
~/.config/fzf/install

Setze in dasReplace "~/.zshrc" Configfile folgende Einstellungen:with:

source ~/.config/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_STRATEGY=(history)

plugins=(cabal colorize colored-man-pages cp copyfile copypath fzf git gitignore last-working-dir sudo vi-mode web-search zsh-interactive-cd)

ZSH_THEME="jonathan"
source ~/.oh-my-zsh/oh-my-zsh.sh

HISTSIZE="100000000000"
SAVEHIST="100000000000"

HISTFILE="/home/elias/.local/share/zsh/zsh_history"
mkdir -p "$(dirname "$HISTFILE")"

setopt HIST_FCNTL_LOCK
unsetopt APPEND_HISTORY
setopt HIST_IGNORE_DUPS
unsetopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_EXPIRE_DUPS_FIRST
setopt SHARE_HISTORY
unsetopt EXTENDED_HISTORY

PROMPT='%F{green}%n%f@%F{magenta}%m%f %F{blue}%B%~%b%f %# '
RPROMPT='[%F{yellow}%?%f]'
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward

source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_HIGHLIGHT_HIGHLIGHTERS+=()

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

NutzePlease nungive das Menu um die Einstellungen zu setzenthe Server einea festefixed local IP-Adresse zuweisen.Adress..