dotfiles/README.md

118 lines
2.3 KiB
Markdown
Raw Normal View History

2019-10-15 12:42:23 +00:00
# Install a new Debian
On a laptop, I typically use
https://cdimage.debian.org/images/unofficial/non-free/images-including-firmware/
to get the Wi-Fi firmwares.
2019-10-15 12:40:52 +00:00
# Pin default release
2021-11-06 09:26:12 +00:00
echo 'APT::Default-Release "bookworm";' > /etc/apt/apt.conf.d/00default
2019-10-15 12:40:52 +00:00
Then add sid (for firefox, at least):
deb https://deb.debian.org/debian sid main
deb-src https://deb.debian.org/debian sid main
# Packages I typically use
2021-11-06 09:26:12 +00:00
```bash
apt install \
2019-10-18 20:51:33 +00:00
bash-completion \
2023-11-23 21:26:38 +00:00
black \
2020-01-08 23:26:53 +00:00
dnsutils \
2019-10-16 09:07:55 +00:00
ecryptfs-utils \
2021-11-06 09:26:12 +00:00
emacs-gtk \
2020-11-03 22:55:07 +00:00
exuberant-ctags \
2019-10-16 09:07:55 +00:00
feh \
firefox \
fonts-liberation \
fonts-symbola \
git \
git-completion \
2021-11-06 09:26:12 +00:00
gnome \
2019-10-16 09:07:55 +00:00
jq \
2019-10-15 13:03:44 +00:00
keepassxc \
2023-11-23 21:28:09 +00:00
lesspipe \
2019-10-16 09:22:37 +00:00
libpq-dev \
2019-10-16 09:07:55 +00:00
python-openssl \
2022-11-04 14:45:55 +00:00
python3-full \
2023-11-23 21:28:09 +00:00
source-highlight \
2019-10-16 09:07:55 +00:00
tk-dev \
2021-11-06 09:26:12 +00:00
unifont
```
and to build Python:
```bash
apt install \
make \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
2019-10-16 09:07:55 +00:00
wget \
2021-11-06 09:26:12 +00:00
curl \
llvm \
libncursesw5-dev \
2019-10-16 09:07:55 +00:00
xz-utils \
2021-11-06 09:26:12 +00:00
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev
2019-10-15 12:40:52 +00:00
```
2019-10-15 12:46:22 +00:00
2019-10-15 09:43:55 +00:00
# Install my dotfiles
2017-02-20 13:10:33 +00:00
2023-12-03 07:41:39 +00:00
I clone the repo in `~/` thanks to a `.gitignore` containing `*`, so
the first setup looks like:
git init
git fetch git@git.afpy.org:mdk/dotfiles.git
git checkout -f main
2017-02-20 13:10:33 +00:00
2018-01-30 20:27:35 +00:00
2017-03-14 16:01:09 +00:00
## Packages I may need
```
apt install firmware-iwlwifi
apt install firmware-nonfree
apt install tlp # Optimize Laptop Battery Life
apt install opensc opensc-pkcs11 # For yubikey
2017-03-14 16:01:09 +00:00
```
2015-11-28 17:05:51 +00:00
2021-09-19 10:04:53 +00:00
With:
echo'CPU_ENERGY_PERF_POLICY_ON_BAT=power > /etc/tlp.d/50-cpu.conf
## Packages I don't want
```
aptitude purge ttf-bitstream-vera
```
see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981577 or simply `echo $'e\xcc\x81a'`
2015-11-28 17:05:51 +00:00
# What I typically do on a new laptop
2023-12-03 07:41:39 +00:00
- Change grub sleep time in `/etc/default/grub` (and run `update-grub`)
- Set `Option "Tapping" "on"` for touchpad in `/usr/share/X11/xorg.conf.d/40-libinput.conf`
- (May have to change button map, like `xinput set-button-map 12 1 2 2 4 5 6 7`, use `xev` from `x11-utils` to see button ids).
- https://wiki.debian.org/TransparentEncryptionForHomeFolder
- Storage=volatile dans /etc/systemd/journald.conf
2018-01-30 20:27:35 +00:00
2018-10-14 22:14:28 +00:00
# Firefox extensions
2023-12-03 07:41:39 +00:00
- [uBlock in medium mode](https://github.com/gorhill/uBlock/wiki/Blocking-mode)
- Multi Account Containers
- Grammalecte