Compare commits
2 Commits
02a7247fa0
...
bc6854c7f1
Author | SHA1 | Date |
---|---|---|
Adrian | bc6854c7f1 | |
Adrian | cd1b7fd72c |
|
@ -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
|
||||||
* [network-manager](network-manager): Useful scripts
|
* [misc](misc): Miscellaneous useful configuration
|
||||||
|
|
|
@ -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
|
||||||
|
```
|
|
@ -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
|
|
||||||
```
|
|
Loading…
Reference in New Issue