Debian Linuxλ︎
Debian Linux provides support for the widest range of hardware of any Linux distribution.
The Debian project established the high-quality .deb
package system which ensures all packages are consitenly defined and manage dependencies.
Installλ︎
Debian provides ISO images which can be burned onto compact disks or USB memory sticks.
The net install image is small and quick to download, containing only the essential packages to run an operating system.
Copy the Debian Linux ISO image to a USB of 1GB size or larger
Creating USB install disks with non-Debian images
Find the name of the USB stick
Copy the image using the name of the USB Stick
dd bs=4M if=path/to/filename.iso of=/dev/disk/by-id/usb-My_flash_drive conv=fsync oflag=direct status=progress
Post Installλ︎
root vs sudoλ︎
Debian recommends using the root account to administer the system, rather than using sudo
as with Ubuntu
su -
command in a terminal changes to the root user, upon entering a successful root password at the prompt
root password is set during install of Debian
Dedicated terminal for root account
Open a terminal application specifically to use the root account when carrying out significant maintenance, e.g. installing many packages during the post install.
Set XDG freedesktop locationsλ︎
# Set XDG_CONFIG_HOME for clean management of configuration files
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:=$HOME/.config}"
export XDG_DATA_HOME="${XDG_DATA_HOME:=$HOME/.local/share}"
export XDG_STATE_HOME="${XDG_STATE_HOME:=$HOME/.local/state}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:=$HOME/.cache}"
export ZDOTDIR="${ZDOTDIR:=$XDG_CONFIG_HOME/zsh}"
Git installλ︎
Clone practicalli/dotfilesλ︎
clone to projects/practicalli/dotfiles
Git configureλ︎
link .config/git to Practicall dotfiles/git directory
Update identity-practicalli-john file with annonymous email address from GitHub settings > Emails section
Kitty Terminalλ︎
Debian packages
- kitty
- kitty-doc
- kitty-shell-integration
- kitty-terminfo
fonts-firacode
use by Practicalli Kitty terminal
Link to practicalli/dotfiles/kitty in .config directory
Zshλ︎
Install zsh package
Zsh Configurationλ︎
Prezto and OhMyZsh are community created configurations that provide a rich experience with very little work.
Prezto recommended
Practicalli recommends Prezto as it has excellent completion capabilities, especially wish fish mode enabled.
OhMyZsh is used within Termux as Prezto has not worked correctly in my experiences.
Prezto provides sane defaults, aliases, functions, auto completion, and prompt themes.
As the user account, zsh
command to change to zsh from bash shell
check if XDG_CONFIG_HOME is set, if not set to $HOME/.config on command line (practicalli dotfiles has a zshenv that does this later in process)
clone prezto to XDG location
Clone Prezto to XDG_CONFIG_HOME
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh}/.zprezto"
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:=$HOME/.config}"
[[ -d $XDG_CONFIG_HOME/zsh ]] && export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
source "$ZDOTDIR/.zshenv"
Generate symbolic links to the zsh configuration files residing in the prezto directory
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
Practicalli creates custom configuration files to keep updating Prezto a simple Git pull.
.zprezto
practicalli customisations for Prezto.zprofile
includes .local/bin on execution path.zshrc
aliases for neovim configurations (astro, practicalli.zshenv
configures XDG locations
.zprezto
.p10k.zsh
.zlogin -> /home/practicalli/.config/zsh/.zprezto/runcoms/zlogin
.zlogout -> /home/practicalli/.config/zsh/.zprezto/runcoms/zlogout
.zpreztorc -> /home/practicalli/projects/practicalli/dotfiles/zsh/.zpreztorc
.zprofile -> /home/practicalli/.config/zsh/.zprezto/runcoms/zprofile
.zshenv -> /home/practicalli/projects/practicalli/dotfiles/zsh/.zshenv
.zsh_history
.zshrc -> /home/practicalli/projects/practicalli/dotfiles/zsh/.zshrc
Change the default shell
Neovimλ︎
Practicalli Neovim install
See the install guide in Practicalli Neovim book
Required packages
curl
- suggested by neovim checkhealthgdu
xclip
provider for accessing operating system clipboard from Neovimluarocks
required for some mason installed toolslazygit
terminal UI git client used by AstroNvim
btm
is suggested but not available as a Debian packages
Nodejsλ︎
Nodejs is required for many of the linters installed by Mason.
node
and npm
are available as packages, although the npm
package has a great many dependencies (many of which seem redundant).
Download from nodejs website
Extract to ~/.local/apps/nodejs
Create a symbolic link to make it simpler to use alternate versions of node and npm
Create symbolic links for node
and npm
to add them to the OS excecution path
ln -s ~/.local/apps/nodejs/current/bin/node ~/.local/bin/node &&
ln -s ~/.local/apps/nodejs/current/bin/npm ~/.local/bin/npm &&
If a different version of nodejs is installed, then all that should be required is deleting and recreating the current
symbolic link in ~/.local/apps/nodejs/
to point to the desired version.
Releasesλ︎
Download latest appimage for neovim from Neovim repository releases page
Add Neovim to shell execution path
Edit .config/zsh/.zprofile
and add $HOME/.local/bin
to paths to search for executables
Set the list of directories that Zsh searches for programs.
Zsh paths searched for executable files
Use the source
command to load the changes in .zprofile
to update the path and include the .local/bin
path
Configure nvimλ︎
Clone astronvim configuration and Practicalli Astronvim configuration
Add aliases to .zshrc
to call different neovim configurations
Shell Aliases for neovim multiple configurations
Practicalli Neovim - Multiple Configurations
Date and Timeλ︎
The date
command on Linux systems is used to show the system date or set a specific date and time. The system date can only be changed by the root account or accounts in the sudo
group.
When using the Gnome desktop the system date is automatically managed, keeping the date and time current.
The timedatectl
command is used to control automatic updating of the system time. This must be disabled to set the date and time to something other than the current.
When the timedateclt is disabled, then the date
command can be used to set a specific date and or time.
date
command will show the current date, confirming that the OS system date was changed.
Linux used to use the ntp service which is available via the Debian
ntp
package, but not used by Gnome desktop
Add Sid packages on Testingλ︎
Packages can be installed from sid
(unstable) when the testing
version of Debian Linux is installed, referred to as "Testing-Unstable Mix".
Configure apt to ensure a testing system stays on testing, without apt upgrading every package to the unstable version.
Define testing as the default Debian release
Set Default Release as testing with security updates
In the Apt sources.list configuration, copy the main testing line and change the version to unstable
Add unstable to package sources
# Testing
deb http://deb.debian.org/debian/ trixie main contrib non-free-firmware non-free
deb-src http://deb.debian.org/debian/ trixie main contrib non-free-firmware non-free
deb http://deb.debian.org/debian/ trixie-updates main contrib non-free-firmware non-free
deb http://deb.debian.org/debian/ trixie-backports main contrib non-free-firmware non-free
deb http://security.debian.org/debian-security trixie-security main contrib non-free-firmware
deb-src http://security.debian.org/debian-security trixie-security main contrib non-free-firmware
# Sid
# deb http://deb.debian.org/debian/ unstable main contrib non-free-firmware non-free
Run apt update to refresh the cache. Use apt -t unstable install <package-name>
to install package foo from unstable rather than testing.