Move journald and audit=0 info from notes to docs

This commit is contained in:
KemoNine 2020-07-31 23:42:20 +00:00
parent 4054c480fd
commit 7fa37c29f0
4 changed files with 36 additions and 27 deletions

View File

@ -5,3 +5,4 @@ This folder contains a bunch of general information on how to get the base of a
* [Base Firmware](base.md)
* [Finalize Arch Setup](finalize_setup.md)
* [Setup swap (you really do need this)](swap.md)
* [journald Tweaks (make it less chatty and resource hungry)](journald.md)

View File

@ -46,4 +46,11 @@ locale-gen
nano -w /etc/hostname
nano -w /etc/hosts
# Turn off kernel audit logging
nano -w /boot/cmdline.txt
add audit=0 at end of cmdline
# Reboot system for all changes to take effect
systemctl reboot
```

28
docs/journald.md Normal file
View File

@ -0,0 +1,28 @@
# journald
The below commands will adjust some ```journald``` settings so it is less chatty and uses fewer resources.
``` sh
mkdir /etc/systemd/journald.conf.d/
cat > /etc/systemd/journald.conf.d/00-wall.conf <<EOF
[Journal]
ForwardToWall=no
EOF
cat > /etc/systemd/journald.conf.d/00-journal-size.conf <<EOF
[Journal]
SystemMaxUse=256M
EOF
cat > /etc/systemd/journald.conf.d/00-audit.conf <<EOF
[Journal]
Audit=no
EOF
cat > /etc/systemd/journald.conf.d/00-console.conf <<EOF
[Journal]
ForwardToConsole=no
TTYPath=
EOF
systemctl mask systemd-journald-audit.socket
systemctl restart systemd-journald
```

View File

@ -1,30 +1,3 @@
########################################
# Tweak journald
########################################
mkdir /etc/systemd/journald.conf.d/
cat > /etc/systemd/journald.conf.d/00-wall.conf <<EOF
[Journal]
ForwardToWall=no
EOF
cat > /etc/systemd/journald.conf.d/00-journal-size.conf <<EOF
[Journal]
SystemMaxUse=256M
EOF
cat > /etc/systemd/journald.conf.d/00-audit.conf <<EOF
[Journal]
Audit=no
EOF
cat > /etc/systemd/journald.conf.d/00-console.conf <<EOF
[Journal]
ForwardToConsole=no
TTYPath=
EOF
systemctl restart systemd-journald
systemctl mask systemd-journald-audit.socket
nano -w /boot/cmdline.txt
add audit=0 at end of cmdline
########################################
# rpi tooling setup
########################################