dotfiles/README.md

108 lines
2.6 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
echo 'APT::Default-Release "bullseye";' > /etc/apt/apt.conf.d/00default
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
```
2019-10-16 09:07:55 +00:00
apt-get install \
arandr \
2019-10-18 20:51:33 +00:00
bash-completion \
2019-10-16 09:07:55 +00:00
build-essential \
curl \
2020-01-08 23:26:53 +00:00
dnsutils \
2019-10-16 09:07:55 +00:00
ecryptfs-utils \
emacs-nox \
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 \
i3 \
i3lock-fancy \
jq \
2019-10-15 13:03:44 +00:00
keepassxc \
2019-10-16 09:07:55 +00:00
libbz2-dev \
libffi-dev \
liblzma-dev \
libncurses5-dev \
libncursesw5-dev \
2019-10-16 09:22:37 +00:00
libpq-dev \
2019-10-16 09:07:55 +00:00
libreadline-dev \
libsqlite3-dev \
libssl-dev \
llvm \
make \
network-manager-gnome \
2020-10-27 10:13:29 +00:00
py3status \
2019-10-16 09:07:55 +00:00
python-openssl \
python3-venv \
2020-06-09 20:22:47 +00:00
redshift \
2019-10-16 09:07:55 +00:00
rxvt-unicode \
tk-dev \
unifont \
wget \
xautolock \
2019-10-16 09:12:21 +00:00
xorg \
2019-10-16 09:07:55 +00:00
xz-utils \
zlib1g-dev
2019-10-15 12:40:52 +00:00
```
2019-10-15 12:46:22 +00:00
and `update-alternatives --configure x-terminal-emulator` to choose urxvt.
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
```
apt-get install firmware-iwlwifi
apt-get install firmware-nonfree
2021-09-19 10:04:53 +00:00
apt-get install tlp # Optimize Laptop Battery Life
2018-04-22 10:41:03 +00:00
apt-get 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
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`)
- 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
2018-01-30 20:27:35 +00:00
2018-10-14 22:14:28 +00:00
# Firefox extensions
- [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