Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste ÜberarbeitungBeide Seiten, nächste Überarbeitung | ||
dinge_die_einem_das_leben_erleichtern [2018/10/22 02:09] – [Programme spezifisches] boospy | dinge_die_einem_das_leben_erleichtern [2021/01/21 21:37] – loma | ||
---|---|---|---|
Zeile 51: | Zeile 51: | ||
| < | | < | ||
+ | ===== Kommentierte Zeilen (#) mit CAT nicht anzeigen ===== | ||
+ | Immer wieder ärgert man sich man macht ein '' | ||
+ | < | ||
+ | cat / | ||
+ | </ | ||
===== Ärger mit Prozessen und Diensten ===== | ===== Ärger mit Prozessen und Diensten ===== | ||
Zeile 73: | Zeile 77: | ||
^ Befehl^ Beschreibung | | ^ Befehl^ Beschreibung | | ||
- | | < | + | | < |
- | | < | + | | < |
| dpkg --get-selections ' | | dpkg --get-selections ' | ||
| dpkg --set-selections < Paketliste.txt [[https:// | | dpkg --set-selections < Paketliste.txt [[https:// | ||
Zeile 288: | Zeile 292: | ||
mysql -u amarok -D amarok -h < | mysql -u amarok -D amarok -h < | ||
- | + | === MYSQL User für Backups und CheckMK Überwachung anlegen === | |
+ | < | ||
+ | GRANT SELECT, SHOW DATABASES, LOCK TABLES, EVENT ON *.* TO ' | ||
+ | GRANT SELECT, SHOW DATABASES ON *.* TO ' | ||
+ | GRANT REPLICATION CLIENT ON *.* TO ' | ||
+ | FLUSH PRIVILEGES; | ||
+ | </ | ||
===== Bash History unendlich mit sofortigen schreiben ===== | ===== Bash History unendlich mit sofortigen schreiben ===== | ||
Zeile 315: | Zeile 324: | ||
PROMPT_COMMAND=" | PROMPT_COMMAND=" | ||
- | Note: every command is written immediately after it's run, so if you accidentally paste a password you cannot just "kill -9 %%" | + | Note: every command is written immediately after it's run, so if you accidentally paste a password you cannot just |
+ | < | ||
+ | kill -9 %% | ||
+ | </ | ||
+ | to avoid the history write, you'll need to remove it manually. | ||
Also note that each bash session will load the full history file in memory, but even if your history file grows to 10MB (which will take a long, long time) you won't notice much of an effect on your bash startup time. | Also note that each bash session will load the full history file in memory, but even if your history file grows to 10MB (which will take a long, long time) you won't notice much of an effect on your bash startup time. | ||
Zeile 334: | Zeile 347: | ||
Danach natürlich ein " | Danach natürlich ein " | ||
+ | |||
+ | ===== Festplatten vernichten und bereit für den Mülleimer ===== | ||
+ | Hierzu eignet sich das Tool **nwipe** sehr gut. Es wird auch von DBAN Linux verwendet. Um zum Beispiel die Daten der Festplatte ''/ | ||
+ | < | ||
+ | nwipe -m dodshort --nogui --autonuke /dev/sdq | ||
+ | </ | ||
+ | Mit autonuke bitte vorsichtig sein. Gibt man kein Device an werden alle angeschlossenen Datenträger automatisch gelöscht, auch USB. Dieser Befehl eignet sich sehr gut wenn man den Löschbefehl auf einem Screen absetzten möchte. Ohne Autonuke gibt es ne GUI. Ist alle abgeschlossen, |