meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:prepare:prepare [2023/07/30 08:53] – niziak | linux:prepare:prepare [2025/01/06 10:53] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Linux/Prepare ====== | + | ====== Linux: Prepare ====== |
| ===== Basic ===== | ===== Basic ===== | ||
| + | |||
| + | ==== .bashrc ==== | ||
| + | |||
| + | Adapt old '' | ||
| ==== default EDITOR ==== | ==== default EDITOR ==== | ||
| Line 27: | Line 31: | ||
| </ | </ | ||
| - | |||
| - | ==== add i386 architecture ==== | ||
| - | |||
| - | <code bash> | ||
| - | dpkg --add-architecture i386 | ||
| - | apt-get update | ||
| - | apt-get install gpm tcpdump bmon tinc ppp pptpd mc links2 gparted hdparm smartmontools smart-notifier valgrind openssh-server | ||
| - | apt-get install wireshark mtr | ||
| - | </ | ||
| ==== NTP: allow time corrections bigger than 1h ==== | ==== NTP: allow time corrections bigger than 1h ==== | ||
| Line 88: | Line 83: | ||
| Remember to set [[sw: | Remember to set [[sw: | ||
| - | |||
| - | ==== set cfq/ | ||
| - | |||
| - | <file | / | ||
| - | ACTION==" | ||
| - | ACTION==" | ||
| - | </ | ||
| - | |||
| - | <code bash>cat / | ||
| - | |||
| - | === single queue schedulers === | ||
| - | There are 2 queues, one for read & one for write operations. | ||
| - | * **none** is just a First In First Out standard queue of I/O operations. | ||
| - | * **cfq** (Completely Fair Scheduling) is similar to the Round Robin algorithm and basically allots a fixed execution time for each I/O operation (they are implemented as a circular queue) | ||
| - | * **deadline** is like a priority queue with an aging concept. Basically it adds a deadline for each I/O operation & implements a priority queue | ||
| - | |||
| - | === block multi-queue schedulers === | ||
| - | Supported in kernel >=4.12. It is disabled by default. | ||
| - | To use multi-queue schedulers compile kernel with **CONFIG_SCSI_MQ_DEFAULT=y** or pass parameter **scsi_mod.use_blk_mq=1** in boot loader. | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | <file | / | ||
| - | ACTION==" | ||
| - | ACTION==" | ||
| - | </ | ||
| - | <code bash> | ||
| - | sudo udevadm control --reload | ||
| - | sudo udevadm trigger | ||
| - | cat / | ||
| - | </ | ||
| ==== Disable console beep ==== | ==== Disable console beep ==== | ||
| Line 189: | Line 153: | ||
| Disable mandb updates after apt: | Disable mandb updates after apt: | ||
| <code bash> | <code bash> | ||
| + | |||
| + | ==== smartmontools ==== | ||
| + | |||
| + | <code bash>apt install smartmontools</ | ||
| + | <file sh / | ||
| + | DEVICESCAN -n standby, | ||
| + | -l xerror \ | ||
| + | -l selftest \ | ||
| + | -l offlinests \ | ||
| + | -l scterc,0,0 \ | ||
| + | -e lookahead, | ||
| + | -s (L/ | ||
| + | -f -p -C 197+ -U 198+ -W 10, | ||
| + | </ | ||
| + | |||
| + | NOTE: It ignores disk in standby to do not spin up HDDs, but it ignores 336 checks (x 1800s interval = 7 days), then it will spin up disc. To put disc sleep again it is good to use '' | ||
| + | |||
| + | ==== hd-idle ==== | ||
| + | |||
| + | <code bash>apt install hd-idle</ | ||
| + | |||
| + | <file sh / | ||
| + | HD_IDLE_OPTS=" | ||
| + | </ | ||
| + | systemctl restart hd-idle | ||
| + | |||