Compare commits

...

2 Commits

Author SHA1 Message Date
Adrian bc6854c7f1 Cron log enhancements 2020-07-21 21:32:31 +02:00
Adrian cd1b7fd72c Misc config 2020-07-21 21:07:59 +02:00
4 changed files with 26 additions and 14 deletions

View File

@ -14,4 +14,4 @@ For people that love KISS and read sane shell scripts like instructions.
* [dyndns](dyndns): Extensible scripts for automatic DNS updates
* [letsencrypt](letsencrypt): Automatic TLS certificate renewal
* [restic](restic): Simple, deduplicated, and encrypted off-site backup
* [network-manager](network-manager): Useful scripts
* [misc](misc): Miscellaneous useful configuration

25
misc/README.md 100644
View File

@ -0,0 +1,25 @@
# Miscellaneous
## Manage ethernet devices with NetworkManager
```sh
touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
```
## Automatically switch off wifi when ethernet is connected
```sh
sudo cp 99-no-wifi-on-ethernet /etc/NetworkManager/dispatcher.d
```
## Do not log successful cron commands
```sh
sudo sed -i '$ a EXTRA_OPTS=-L 4' /etc/default/cron
```
## Do not log cron sessions
```sh
sudo sed -i '/pam_unix.so/ i session [success=1 default=ignore] pam_succeed_if.so service in cron quiet' /etc/pam.d/common-session-noninteractive
```

View File

@ -1,13 +0,0 @@
# NetworkManager
## Manage ethernet devices with NetworkManager
```sh
touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
```
## Automatically switch off wifi when ethernet is connected
```sh
sudo cp 99-no-wifi-on-ethernet /etc/NetworkManager/dispatcher.d
```