linux
Ubuntu autoinstall
Download Ubuntu iso
https://releases.ubuntu.com/24.04/ubuntu-24.04-desktop-amd64.iso
wget https://releases.ubuntu.com/24.04/ubuntu-24.04-desktop-amd64.iso -O ~/Downloads/iso/ubuntu-24.04-desktop-amd64.iso
Prepare
sudo apt install qemu-system-x86 # mount ISO by double click #sudo mount -r ~/Downloads/iso/ubuntu-24.04-desktop-amd64.iso /mnt
autoinstall.yaml
Automatically move photos from memory card to hard drive with udev
Create udev rule
cat <<EOF> /etc/udev/rules.d/70-persistent-dcim.rules KERNEL=="sd*1",SUBSYSTEM=="block",ATTR{partition}=="1",ACTION=="add",RUN+="/usr/sbin/mvdcim.sh \$KERNEL" EOF
Create mvdcim.sh script
PulseAudio
PulseAudio CLI
pulseaudio --check pulseaudio -k pulseaudio -D
PulseAudio CLI
https://rastating.github.io/setting-default-audio-device-in-ubuntu-18-04/
https://wiki.archlinux.org/index.php/PulseAudio/Examples
pactl list short sinks pactl list short sources pactl set-sink-volume 35 17% # restart systemctl --user restart pulseaudio
Equalizer
parted
Install
Ubuntu 20.04 Focal Fossa LTS
Schedule
https://wiki.ubuntu.com/FocalFossa/ReleaseSchedule
ReleaseNotes
https://wiki.ubuntu.com/FocalFossa/ReleaseNotes
Known issues
https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Known_issues
Download
Releases: http://releases.ubuntu.com/20.04/
Cloud image (minimal): https://cloud-images.ubuntu.com/minimal/daily/focal/current/focal-minimal-cloudimg-amd64.img
Netboot: http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/images/netboot/mini.iso
Torrent: http://releases.ubuntu.com/20.04/ubuntu-20.04-desktop-amd64.iso.torrent
Repository
logrotate
Install
apt-get install -y logrotate
/etc/logrotate.d/rsyslog
/var/log/syslog { rotate 7 daily size 100M missingok notifempty delaycompress compress postrotate /usr/lib/rsyslog/rsyslog-rotate endscript } /var/log/mail.info /var/log/mail.warn /var/log/mail.err /var/log/mail.log /var/log/daemon.log /var/log/kern.log /var/log/auth.log /var/log/user.log /var/log/lpr.log /var/log/cron.log /var/log/debug /var/log/messages { rotate 4 weekly missingok notifempty compress delaycompress sharedscripts postrotate /usr/lib/rsyslog/rsyslog-rotate endscript }
Force logrotate
ddrescue
Install
apt install -y gddrescue dpkg -i gddrescue_1.22-1_amd64.deb
Rescue
ddrescue /dev/sda sda.dd sda.ddrescue.log
restic
Install
sudo apt install -y restic
Configure systemd
sysctl
configure parameter
# determine the maximum size of a shared memory segment cat /proc/sys/kernel/shmmax # set default shared memory limit for shmmax (16 GB) echo 17179869184 > /proc/sys/kernel/shmmax # add the following line to /etc/sysctl.conf to make a change permanent echo "kernel.shmmax=4294967296" >> /etc/sysctl.d/90-shmmax.conf # load parameter /sbin/sysctl -p /etc/sysctl.d/90-shmmax.conf
reduce swap usage
https://en.wikipedia.org/wiki/Swappiness