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
|
|
|
```
|
|
|
|
|
2022-09-02 08:39:22 +00:00
|
|
|
and for pidgin:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
|
|
apt install pidgin \
|
|
|
|
pidgin-plugin-pack # Pour IRC
|
|
|
|
purple-discord
|
|
|
|
```
|
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
|
|
|
|
|
|
|
sh <(curl -s https://raw.githubusercontent.com/JulienPalard/dotfiles/master/install.sh)
|
|
|
|
|
2018-01-30 20:27:35 +00:00
|
|
|
|
2017-03-14 16:01:09 +00:00
|
|
|
## Packages I may need
|
|
|
|
|
|
|
|
```
|
2022-04-23 13:05:51 +00:00
|
|
|
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
|
|
|
|
|
2022-04-23 13:05:51 +00:00
|
|
|
|
|
|
|
## 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
|
|
|
|
|
|
|
|
- Change grub sleep time in `/etc/default/grub` (and run `update-grub`)
|
2017-09-14 21:18:04 +00:00
|
|
|
- Set `Option "Tapping" "on"` for touchpad in `/usr/share/X11/xorg.conf.d/40-libinput.conf`
|
2018-11-09 08:59:52 +00:00
|
|
|
- (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).
|
2015-11-28 17:05:51 +00:00
|
|
|
- https://wiki.debian.org/TransparentEncryptionForHomeFolder
|
|
|
|
- Storage=volatile dans /etc/systemd/journald.conf
|
2017-03-10 18:17:57 +00:00
|
|
|
|
2018-01-30 20:27:35 +00:00
|
|
|
|
2018-10-14 22:14:28 +00:00
|
|
|
# Firefox extensions
|
2017-03-10 18:17:57 +00:00
|
|
|
|
|
|
|
- [Privacy Badger](https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp?utm_source=chrome-app-launcher-info-dialog)
|
2021-04-10 09:19:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Crontab
|
|
|
|
|
|
|
|
```text
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
DISPLAY=:0
|
|
|
|
|
|
|
|
# m h dom mon dow command
|
2021-04-13 15:18:05 +00:00
|
|
|
0 */4 * * * curl https://apod.nasa.gov/apod/astropix.html | grep -o 'image/[^ ]*.jpg' | sed 's#^#https://apod.nasa.gov/apod/#' | head -n 1 | xargs wget -O $HOME/apod.jpg && feh --bg-fill $HOME/apod.jpg && convert -resize 1920x1080^ $HOME/apod.jpg $HOME/apod.png
|