Compare commits
No commits in common. "bc6854c7f1cb3c57d1c977c36d4138fe1fb52cd2" and "02a7247fa08abbdb8b919983f973f19ee7a66921" have entirely different histories.
bc6854c7f1
...
02a7247fa0
|
@ -14,4 +14,4 @@ For people that love KISS and read sane shell scripts like instructions.
|
||||||
* [dyndns](dyndns): Extensible scripts for automatic DNS updates
|
* [dyndns](dyndns): Extensible scripts for automatic DNS updates
|
||||||
* [letsencrypt](letsencrypt): Automatic TLS certificate renewal
|
* [letsencrypt](letsencrypt): Automatic TLS certificate renewal
|
||||||
* [restic](restic): Simple, deduplicated, and encrypted off-site backup
|
* [restic](restic): Simple, deduplicated, and encrypted off-site backup
|
||||||
* [misc](misc): Miscellaneous useful configuration
|
* [network-manager](network-manager): Useful scripts
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
# 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
|
|
||||||
```
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
# 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
|
||||||
|
```
|
Loading…
Reference in New Issue