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 [2018/01/26 12:47] – [parallel packers] niziak | linux:prepare:prepare [2025/01/06 10:53] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Linux/Prepare ====== | + | ====== Linux: Prepare ====== |
| ===== Basic ===== | ===== Basic ===== | ||
| - | ==== add i386 architecture | + | ==== .bashrc |
| + | Adapt old '' | ||
| + | |||
| + | ==== default EDITOR ==== | ||
| <code bash> | <code bash> | ||
| - | dpkg --add-architecture i386 | + | sudo update-alternatives |
| - | apt-get | + | sudo update-alternatives |
| - | apt-get install gpm tcpdump bmon tinc ppp pptpd mc links2 gparted hdparm smartmontools smart-notifier valgrind openssh-server | + | |
| - | apt-get install wireshark mtr | + | |
| </ | </ | ||
| + | |||
| + | ==== set umask ==== | ||
| + | |||
| + | In file: '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | **NOTE!:** Problem appears with non default user umask and '' | ||
| + | After sudo umask is still set to the user umask, which is correct. | ||
| + | But can lead to some unpredicted behavior i.e. installing system-wide packages - new file will be created with incorrect umasks (user umask). | ||
| + | |||
| + | To prevent this: | ||
| + | <file | / | ||
| + | Defaults | ||
| + | Defaults | ||
| + | </ | ||
| + | |||
| ==== NTP: allow time corrections bigger than 1h ==== | ==== NTP: allow time corrections bigger than 1h ==== | ||
| - | - Edit / | + | |
| - | - Ordered List ItemInstall ntpdate and ntp | + | - Install '' |
| - | - Ordered List ItemSwitch | + | |
| + | - Switch | ||
| <code bash> | <code bash> | ||
| timedatectl set-local-rtc 0 | timedatectl set-local-rtc 0 | ||
| - | ntpd -qg | + | ntpd -gxn |
| hwclock --systohc | hwclock --systohc | ||
| </ | </ | ||
| Line 61: | Line 82: | ||
| - | + | Remember to set [[sw: | |
| - | + | ||
| - | ==== set cfq/ | + | |
| - | + | ||
| - | <file | / | + | |
| - | # set cfq scheduler for rotating disks | + | |
| - | ACTION==" | + | |
| - | + | ||
| - | # set deadline scheduler for non-rotating disks | + | |
| - | ACTION==" | + | |
| - | </ | + | |
| ==== Disable console beep ==== | ==== Disable console beep ==== | ||
| Line 137: | Line 148: | ||
| </ | </ | ||
| - | ==== Logitech wireless mouse/ | ||
| - | To handle old (not Unifying Receiver) Logitech product: | ||
| - | <code bash> | ||
| - | <code bash> | ||
| - | < | ||
| - | 003.005: 046d:c508 Receiver for Cordless Optical TrackMan (C-BA4-MSE) Caps: CSR SMS | ||
| - | Receiver type: C508 | ||
| - | Mouse type: Cordless Optical TrackMan | ||
| - | Connect button on mouse pressed: no | ||
| - | Active RF Channel: 1 | ||
| - | Battery status: 7 (full) | ||
| - | Cordless security ID: 0x8e16 | ||
| - | Receiver talking: yes | ||
| - | Lock Request (CONNECT button pressed): no | ||
| - | Mouse Powerup (First time out of the box auto-locking): | ||
| - | Receiver Unlocked (Mouse disconnected): | ||
| - | Wait Lock (Searching for mouse): no | ||
| - | Device physical shape type: 0 | ||
| - | SmartScroll (SMS): reporting not supported | ||
| - | USB Mouse Polling Interval: | ||
| - | </ | ||
| - | <code bash> | + | ==== mandb ==== |
| - | For logitech devices there are additional packets: | + | Disable mandb updates after apt: |
| - | [[https:// | + | <code bash> |
| - | === Change trackball pointer speed === | + | ==== smartmontools ==== |
| - | Using CTM: | + | |
| - | <code bash> | + | |
| - | xinput set-prop " | + | |
| - | xinput set-prop " | + | |
| - | 2.000000, 0.000000, 0.000000, \ | + | |
| - | 0.000000, 2.000000, 0.000000, \ | + | |
| - | 0.000000, 0.000000, 1.000000 | + | |
| - | </ | + | |
| + | <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 | ||