meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:prepare:prepare [2018/12/05 08:29]
niziak
linux:prepare:prepare [2023/07/30 08:53] (current)
niziak
Line 2: Line 2:
  
 ===== Basic ===== ===== Basic =====
 +
 +==== default EDITOR ====
 +<code bash>
 +sudo update-alternatives --list editor
 +sudo update-alternatives --config editor
 +</​code>​
  
 ==== set umask ==== ==== set umask ====
Line 32: Line 38:
  
 ==== NTP: allow time corrections bigger than 1h ==== ==== NTP: allow time corrections bigger than 1h ====
-  - Edit /​etc/​default/​ntp and add "-s" ​argument. +  ​- Disable systemd time service: ''​systemctl disable --now systemd-timesyncd''​ 
-  - Ordered List ItemInstall ntpdate and ntp +  - Install ''​ntpdate''​ and ''​ntp''​ 
-  - Ordered List ItemSwitch ​RTC to UTC time:+  ​- Edit ''​/​etc/​default/​ntp'' ​and add ''​-g'' ​argument.  
 +  - Switch ​RTC to UTC time:
 <code bash> <code bash>
 timedatectl set-local-rtc 0 timedatectl set-local-rtc 0
-ntpd -qg+ntpd -gxn
 hwclock --systohc hwclock --systohc
 </​code>​ </​code>​
Line 80: Line 87:
  
  
 +Remember to set [[sw:​libreoffice#​paper_format]]
  
 ==== set cfq/​deadline scheduler ==== ==== set cfq/​deadline scheduler ====
Line 177: Line 184:
 </​code>​ </​code>​
  
-==== Logitech wireless mouse/​trackball ==== 
-To handle old (not Unifying Receiver) Logitech product: 
-<code bash>​sudo apt-get install lomoco</​code>​ 
-<code bash>​sudo lomoco -i</​code>​ 
-<​code>​ 
-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):​ no 
- Receiver Unlocked (Mouse disconnected):​ no 
- Wait Lock (Searching for mouse): no 
- Device physical shape type: 0 
- SmartScroll (SMS): reporting not supported 
- USB Mouse Polling Interval: ​ 10ms 
-</​code>​ 
- 
-<code bash>​sudo lomoco --pid=C508 -i | grep -w "​Battery status:"</​code>​ 
- 
-For logitech devices there are additional packets: 
-[[https://​wiki.archlinux.org/​index.php/​Logitech_Marble_Mouse]] 
- 
-=== Change trackball pointer speed === 
-Using CTM: 
-<code bash> 
-xinput set-prop "​Logitech USB Receiver"​ "​libinput Accel Speed" 1 
-xinput set-prop "​Logitech USB Receiver"​ "​Coordinate Transformation Matrix"​ \ 
-2.000000, 0.000000, 0.000000, \ 
-0.000000, 2.000000, 0.000000, \ 
-0.000000, 0.000000, 1.000000 
-</​code>​ 
  
 +==== mandb ====
  
 +Disable mandb updates after apt:
 +<code bash>​echo "set man-db/​auto-update false" | debconf-communicate;​ dpkg-reconfigure man-db</​code>​