os:linux:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
os:linux:start [2021-08-14 23:54] – Manuel Frei | os:linux:start [2024-06-27 18:37] (current) – Manuel Frei | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Linux ====== | ====== Linux ====== | ||
+ | * [[os: | ||
* [[os: | * [[os: | ||
* [[os: | * [[os: | ||
Line 9: | Line 10: | ||
* [[os: | * [[os: | ||
* [[os: | * [[os: | ||
- | + | * [[apps: | |
- | ==== Backup directory ==== | + | |
+ | ===== Backup directory | ||
rsync -vr / | rsync -vr / | ||
**Hint:** With a / at the end of the first directory, all sub directories are copied directly to the destination folder. Without / it will create the source folder (ex. important_directory) with all sub directories are copied to the destination folder | **Hint:** With a / at the end of the first directory, all sub directories are copied directly to the destination folder. Without / it will create the source folder (ex. important_directory) with all sub directories are copied to the destination folder | ||
- | ==== Forward Mails of A User ==== | + | ===== Forward Mails of A User ===== |
You have a server for example and some mails are sent directly to root. The easiest way to forward them to a real address ist to create a .forward file. | You have a server for example and some mails are sent directly to root. The easiest way to forward them to a real address ist to create a .forward file. | ||
Line 36: | Line 38: | ||
</ | </ | ||
- | ==== Validate XML Against Template ==== | + | ===== Validate XML Against Template |
< | < | ||
Line 46: | Line 48: | ||
</ | </ | ||
- | ==== Links ==== | + | |
+ | ===== fstrim ===== | ||
+ | |||
+ | On major Linux distributions (Debian, Rocky, ...), there is a sytemd timer for fstrim prepared but not activated per default. If you are using SSDs or virtual machines and your filesystem supports it, you can enable the timer to discard unused blocks once per week. | ||
+ | |||
+ | Check if the timer is already enabled. If 0 timers are listed, it means it's not activated. | ||
+ | <code bash> | ||
+ | systemctl list-timers fstrim.timer | ||
+ | </ | ||
+ | |||
+ | Enable and immediately start the timer. | ||
+ | <code bash> | ||
+ | systemctl enable --now fstrim.timer | ||
+ | </ | ||
+ | |||
+ | <code - Example> | ||
+ | [root@server ~]# systemctl list-timers fstrim.timer | ||
+ | NEXT LEFT LAST PASSED UNIT ACTIVATES | ||
+ | |||
+ | 0 timers listed. | ||
+ | Pass --all to see loaded but inactive timers, too. | ||
+ | [root@server ~]# systemctl enable --now fstrim.timer | ||
+ | Created symlink / | ||
+ | [root@server ~]# systemctl list-timers fstrim.timer | ||
+ | NEXT | ||
+ | Mon 2024-07-01 01:28:50 CEST 4 days left - - fstrim.timer fstrim.service | ||
+ | |||
+ | 1 timers listed. | ||
+ | Pass --all to see loaded but inactive timers, too. | ||
+ | </ | ||
+ | |||
+ | ===== Ubuntu Desktop to Ubuntu Server ===== | ||
+ | |||
+ | < | ||
+ | apt-get purge libx11.* libqt.* | ||
+ | apt-get autoremove | ||
+ | </ | ||
+ | |||
+ | Source: [[https:// | ||
+ | |||
+ | ===== Links ===== | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
os/linux/start.1628978080.txt.gz · Last modified: 2021-08-14 23:54 by Manuel Frei