Skip to content

Instantly share code, notes, and snippets.

@pothitos
Last active December 9, 2023 20:57
Show Gist options
  • Save pothitos/7eed1f2eb6770caee8fd5e711f5b63e9 to your computer and use it in GitHub Desktop.
Save pothitos/7eed1f2eb6770caee8fd5e711f5b63e9 to your computer and use it in GitHub Desktop.
Linux post-installation checklist

Linux post-installation checklist

Configuration for repositories

mkdir repos
cd repos
git config --global user.name "Nikolaos Pothitos"
git config --global user.email "someone@example.com"
git config --global core.editor "vim"

Friendly to Git prompt installation

git clone git@github.com:magicmonty/bash-git-prompt.git

Custom Bash configuration

git clone git@gist.github.com:2f38f62c56730d4f918237f961c4ef32.git bashrc
cat ~/.bashrc bashrc/bashrc > temporary
mv temporary bashrc/bashrc
ln -sf repos/bashrc/bashrc ~/.bashrc

Ignore case in autocomplete

if [ ! -a ~/.inputrc ]; then echo '$include /etc/inputrc' > ~/.inputrc; fi
echo 'set completion-ignore-case On' >> ~/.inputrc

Custom Vim configuration

git clone git@gist.github.com:2a0b8ce11c6b90a7f49d96f10186c450.git vimrc
ln -s repos/vimrc/vimrc ~/.vimrc

Further packages installation

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Various

Handy Python container

docker run --rm -it -v ~/.gitconfig:/root/.gitconfig \
                    -v ~/.ssh/id_rsa:/root/.ssh/id_rsa \
                    -v ~/repos/vimrc/vimrc:/root/.vimrc \
                    -v ~/.vim/spell:/root/.vim/spell \
                    -v $PWD:/app -w /app --name python python bash

If using git inside a container messes up permissions, you may consider to execute

git config --global --add safe.directory "*"

Check which ports are opened

ss -ltnp

Nvidia brightness adjustment

nvidia-settings -a BacklightBrightness=70

Check the keys in your .ssh directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment