/debian-paccao

A minimal Debian 11 installation with i3 with a script that automates the tedious parts for you

Primary LanguageShell

Debian Minimal with i3 window manager

The Debian configuration was based of https://github.com/ChrisTitusTech/Debian-titus installation script and modified to fit my own needs. Credits to them!

Information

This installation changes Debian to the SID (Dev) Branch

Download Debian non-free netinstall to cherrypick your installation

Use the following Debian ISO as the base https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/weekly-builds/amd64/iso-cd/

  • Doublecheck that the link is up to date before downloading.
  • Do NOT grab the EDU download and this includes non-free and firmware

Go through the installation process in debians netinstaller. After rebooting into your main harddrive, you are ready to proceed.

Check installed packages and total amount of current packages/processes

# Check which packages are installed:
apt list --installed
# Check amount of packages installed:
apt list --installed | wc -l
# Check amount of processes are active
ps aux | wc -l

# Alternatively use dpkg
dpkg -l
# Search for a specific package
dpkg -l | grep "zstd"

To install, run the following in a terminal:

su -
apt update &&
apt-get update &&
apt install sudo -y
usermod -aG sudo joel # change 'joel' to your $username
id joel # check that your user has the sudo group.
exit
su joel

If the su - command doesn't work

sudo apt install git -y
git clone https://github.com/paccao/debian-paccao
cd debian-paccao
chmod +x install.sh
sudo ./install.sh

Install script complete! 🎈 After reboot, run the following post-setup things.

  • Install synth-shell for a better bash prompt, go through the interactive installer.
git clone --recursive https://github.com/andresgongora/synth-shell.git
chmod +x synth-shell/setup.sh
cd synth-shell
./setup.sh

IMPORTANT: I only installed synth-shell-prompt and better-history, which lies in my .bashrc file. If you would like other features of synth-shell I recommend that you remove the lines from the bottom of my .bashrc file that you have copied that has anything to do with synth-shell. Then run the provided synth-shell script again to get a clean installation.

git config --global core.editor "vim"
export EDITOR='/usr/bin/vim'
export SUDO_EDITOR='/usr/bin/vim'
sudo update-alternatives --config editor
  • Autostart programs Add autostart programs to .xinitrc file.

  • Disable bell sound in terminal

sudoedit /etc/inputrc

Change the line set bell-style visible to set bell-style none. Alternatively you can comment the old one out and add the new one.

To remove the bell sound from your system completely:

sudoedit /etc/modprobe.d/blacklist.conf

Add the following line to the list:

blacklist pcspkr

Good job!

If you got any problems with the installation, please create an issue here on GitHub and I will look into it. I update this repo with the update-dotfiles.sh script from my personal laptop and don't always test the install script. Most likely some packages could be missing which is an easy fix, however the install script is not set up to continue where it crashed so you would have to hack into it and remove the parts from your locally downloaded script and run it again after fixing issues."

Also, some of my keyboard shortcuts I have defined in dotconfig/i3/config may not work on your system depending on your keyboard layout. I recommend you search for your issues or set up your own i3 config using the arch wiki. The arch wiki is like the holy trinity of resources in the Linux space and you will most likely find fixes to caveats and very specific issues to your system there.

Some helpful commands and tips I can give you:
My default keybinding to open a terminal is Super key + Enter
The alias command will give you a hint on what shortcut aliases you can use, this is based on the .bash_aliases file.
Press F1 to get another view of which commands you can run on your system.

explainshell.com - write a command with flags you are uncertain of and it will explain each part.

Other potentially helpful resources

Custom screen saver which is more secure

How to fix sudo command not found

How to manually start wifi with the terminal

Your network may not work properly by default. If you run apt update and it says it cant resolve the repository, follow this guide:

You can also look at the aliases I have created for wifi related stuff in .bash_aliases

How to configure X server xinit and autostart i3 on login

Helpful blog post to configure your install script

How to install the vim plugin YouCompleteMe:

Other programs you might want to install

ble.sh asdf

custom bashrc prompts (add git branch, show hostname and user or just have a plain simple $.

https://bashrcgenerator.com/