Move journald and audit=0 info from notes to docs
This commit is contained in:
parent
4054c480fd
commit
7fa37c29f0
|
@ -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)
|
||||
|
|
|
@ -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
28
docs/journald.md
Normal 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
|
||||
|
||||
```
|
27
notes.txt
27
notes.txt
|
@ -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
|
||||
########################################
|
||||
|
|
Loading…
Reference in a new issue