Lxc Container
Use Ubuntu 24 because otherwise the Neaovim Version is to old for Lazy-Vim.
Create Container
You can use the helperscript with this command:
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/ubuntu.sh)"
For the Container ID use a number in the range 200-299. It is useful to give the Container this ID as the ending of the IP-Address later.
Nutzer erstellen
Create a user:
adduser <username>
Add user to sudo group:
usermod -aG sudo <username>
System vorbereiten
Update the system and install Lazy-Vim 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
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
Install Zsh with 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
Replace "~/.zshrc" with:
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+=()
export FZF_BASE=~/.config/fzf/bin/fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
Please give the Server a fixed local IP-Adress.
You can add the ssh login, if you run the following command from the computer you want to access with:
ssh-copy-id <usr>@<ip>