Skip to main content

Basic config & Tools

root

# ~/.bashrc: executed by bash(1) for non-login shells.

# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
umask 002

# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "$(dircolors)"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias la='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

. ~/.bash_aliases

.bash_aliases

 alias ag='alias | grep -i $1'
 alias hg='history | grep -i $1'
 alias va='vi ~/.bash_aliases && . ~/.bashrc'
 alias ..='cd ..'
 alias ...='cd ../..'

 alias l='ls -ltra'
 alias ll='ls -l'
 alias la='ls -la'
 alias ltra='ls -ltra'
 alias lr='ls -lr'

 alias rebuild='cd ~ && docker-compose down && docker-compose up --no-deps --build -d'
 alias cddocker='cd /opt/docker'
 alias cdbook='cddocker && cd bookstack'
 alias cdrust='cddocker && cd rustdesk'
 alias cdnpm='cddocker && cd proxy-manager'

 

eigener Benutzer

sudo useradd -m -s /bin/bash gerald
sudo usermod -aG sudo

/etc/sudoers.d/91-gerald

gerald ALL=(ALL) NOPASSWD:ALL

Packages

sudo apt-get install vim git

VIM Ultimate

git clone --depth=1 https://github.com/amix/vimrc.git /opt/vim_runtime
sh /opt/vim_runtime/install_awesome_parameterized.sh /opt/vim_runtime root gerald
# to install for all users with home directories, note that root will not be included
sh /opt/vim_runtime/install_basic_vimrc.sh /opt/vim_runtime --all

Verzeichnisse für Docker

sudo -i
mkdir /opt/docker
cd /opt
chown -R root:docker docker
chmod 775 -R docker
chmod -R g+s docker