User Tools

Site Tools


os:linux:start

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
os:linux:start [2014-07-06 10:15] – add mail forward rootos:linux:start [2021-08-14 23:54] Manuel Frei
Line 1: Line 1:
 ====== Linux ====== ====== Linux ======
  
 +  * [[os:linux:kernel-tuning|Kernel-Tuning]]
   * [[os:linux:read_hfsplus|Read HFS+ Partition]]   * [[os:linux:read_hfsplus|Read HFS+ Partition]]
- +  * [[os:linux:multimedia|Multimedia]] 
-== Backup directory ==+  * [[os:linux:create_swap_file|Create Swap File]] 
 +  * [[os:linux:powerdns_apache_postgresql_debian|PowerDNS via Apache2 with PostgreSQL on Debian and PowerDNS-Admin]] 
 +  * [[os:linux:lemur_and_cfssl_with_nginx_and_postgresql_on_centos8:lemur_and_cfssl_with_nginx_and_postgresql_on_centos8]] 
 +  * [[os:linux:file_watcher_service|File Watcher Service]] 
 +  * [[os:linux:tmux|tmux]] 
 +  
 +==== Backup directory ====
   rsync -vr /home/user/important_directory /media/some_hdd/backups/   rsync -vr /home/user/important_directory /media/some_hdd/backups/
  
 **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 14: Line 21:
 /root/.forward /root/.forward
 <code> <code>
-  user@example.org +user@example.org 
-  + 
 </code> </code>
  
 **Immportant:** The last line of the file have to be empty. It won't work without newline. **Immportant:** The last line of the file have to be empty. It won't work without newline.
 +
 +Misconfiguration may result in following log lines of your mail server:
 +<code>
 +Jul  6 10:10:48 myHostName postfix/cleanup[362]: 4E14342D46: message-id=<20140706081048.4E14342D46@mail.example.org>
 +Jul  6 10:10:48 myHostName postfix/qmgr[24720]: 4E14342D46: from=<>, size=2540, nrcpt=1 (queue active)
 +Jul  6 10:10:48 myHostName postfix/bounce[368]: 3D46942C3D: sender non-delivery notification: 4E14342D46
 +Jul  6 10:10:48 myHostName postfix/smtp[367]: 4E14342D46: to=<root@mail.example.org>, relay=none, delay=0.04, delays=0.01/0/0.03/0, dsn=5.4.6, status=bounced (mail for mail.example.org loops back to myself)
 +Jul  6 10:10:48 myHostName postfix/qmgr[24720]: 4E14342D46: removed
 +</code>
 +
 +==== Validate XML Against Template ====
 +
 +<code>
 +xmllint --schema schema.xsd --noout file.xml
 +</code>
 +or
 +<code>
 +xmlstarlet val -s schema.xsd -e file.xml
 +</code>
 +
 +==== Links ====
 +  * [[https://eklitzke.org/stdout-buffering|Stdout Buffering]]
 +  * [[https://eli.thegreenplace.net/2018/measuring-context-switching-and-memory-overheads-for-linux-threads/|Measuring context switching and memory overheads for Linux threads]]
 +  * [[https://linoxide.com/how-to-check-disk-queue-length-in-linux/|How to Check Disk Queue Length in Linux]]
 +
os/linux/start.txt · Last modified: 2024-03-07 17:39 by Manuel Frei