This document summarizes François Marier's notes and tricks for supporting Debian machines for friends and family. It discusses hardware issues, keeping packages updated, system monitoring, safety practices, security measures, enabling remote access, backups, and ways to "give back" to the Debian community. The goal is providing an enjoyable computing experience while using free software and without using up too much spare time.
38. safe-rm
$ rm -rf /usr/lib /libfoo.so
/bin/rm: cannot remove `/libfoo.so':
No such file or directory
39. safe-rm
$ rm -rf /usr/lib /libfoo.so
/bin/rm: cannot remove `/libfoo.so':
No such file or directory
$ ls /usr/lib
ls: cannot access /usr/lib: No such
file or directory
56. $ cat /etc/network/iptables.up.rules
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A OUTPUT -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,
ESTABLISHED -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp --dport 22
-j ACCEPT
:LOGDROP - [0:0]
-A LOGDROP -j LOG --log-level 6
-A LOGDROP -j DROP
-A INPUT -j LOGDROP
COMMIT
57. $ cat /etc/network/iptables.up.rules
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A OUTPUT -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,
ESTABLISHED -j ACCEPT
-A INPUT -s 192.168.1.0/24 -p tcp --dport 22
-j ACCEPT
:LOGDROP - [0:0]
-A LOGDROP -j LOG --log-level 6
-A LOGDROP -j DROP
-A INPUT -j LOGDROP
COMMIT
-A INPUT -s 192.168.1.0/24
-p tcp --dport 22 -j ACCEPT