minor changes

This commit is contained in:
coelner 2022-03-27 20:17:44 +02:00
parent 0e3e970f16
commit c69c6dba05
8 changed files with 47 additions and 21 deletions

View File

@ -15,9 +15,4 @@ journalctl --disk-usage && journalctl --vacuum-size={size}M
```
or prepare the file`/etc/systemd/journald.conf` and this value:`SystemMaxUse=50M`
create for all btrfs filesystems a regulary scrub timer.
```bash
for p in $(lsblk -nflo FSTYPE,MOUNTPOINT | awk '$1=="btrfs"{print $2}'); do systemctl enable --now "btrfs-scrub@$(systemd-escape -p "$p").timer"; systemctl start "btrfs-scrub@$(systemd-escape -p "$p").service"; done
```
the manual way of creating is eating the correct escape.

View File

@ -2,7 +2,7 @@
keywords:
- IT
---
## Backup NAS
## Backup odroid NAS
```
/dev/mmcblk0
@ -53,10 +53,3 @@ dar -c /mnt/backup/etc_initial --compression=lzo -s 50M -M -R /etc --hash sha1 -
Nextcloud
--täglich Datenbank Dump und cloud_data
-verschlüsselt
systemc tl stop nginx
systemctl stop php5-fpm
rsync -Aax nextcloud/ nextcloud-dirbkp_`date +"%Y%m%d"`/
mysqldump --lock-tables -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak
systemctl start nginx
systemctl start php5-fpm

View File

@ -9,7 +9,7 @@ keywords:
- [ ] Quick strap hama
- [ ] Festbrennweite 85mm 1.8
- [ ] Teleobjekt
- [ ] Nikon CF-N3000: Kamera-Einschlagtuch __
- [ ] _Nikon CF-N3000: Kamera-Einschlagtuch _
- [x] Polfilter Haida Pro II Digital Slim Polfilter Zirkular MC
- [x] Gegenlichtblende/Sonnenblende PROFOX LH-73D 67mm
- [x] Reinigungsutensilien

View File

@ -8,5 +8,12 @@ paperwork
Hardware-OCR
## OCR
https://github.com/ocrmypdf/OCRmyPDF
https://ocrmypdf.readthedocs.io/en/latest/batch.html
To generate manually an OCR pdf rund this after the folder change.
```bash
find . -printf '%p' -name '*.pdf' -exec ocrmypdf '{}' '{}' \;
```
to run this automatically a watcher exisist, but is not default.
## Dateihandling

34
filesystems.md Normal file
View File

@ -0,0 +1,34 @@
# Filesystems
## btrfs
### btrfs scrub
As a copy-on-write (COW) filesystem btrfs can compensate some errors from the underlying storage
##### systemd handling
create for all btrfs filesystems a regulary scrub timer.
```bash
for p in $(lsblk -nflo FSTYPE,MOUNTPOINT | awk '$1=="btrfs"{print $2}'); do systemctl enable --now "btrfs-scrub@$(systemd-escape -p "$p").timer"; systemctl start "btrfs-scrub@$(systemd-escape -p "$p").service"; done
```
the manual way of creating is eating the correct escape.
###
### ATA/SMART
#### hdparm
with hdparm you can activate the write-verify `-R1` handling, if the drive has got this feature. Most consumer devices do not have this. Otherwise hdparm is more for the temporary set of AAM or APM, ATAsecurity, DCO, e.g.
```
/dev/sdb: [SSD]
multcount = 0 (off)
IO_support = 1 (32-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 31130/255/63, sectors = 500118192, start = 0
/dev/sda: [HDDD]
multcount = 16 (on)
IO_support = 1 (32-bit)
readonly = 0 (off)
readahead = 256 (on)
geometry = 60801/255/63, sectors = 976773168, start = 0
```
#### smartmontools
the smartmontools contains mainly two features: the smart daemon and the smartctl tool. `smartctl` controls the SMART features of a drive, `smartd` usually surveille and run tests as a daemon with it.

View File

@ -6,7 +6,7 @@ keywords:
# hardware list
### USB SATA enclosure
currently broken, firmware not updatable
firmware not updatable due missing SPI flash
```
Inateck 2,5" Gehäuse (ASMT 2115 USB)
ASMedia 1153 - B1PU73D7A0 1809
@ -22,6 +22,7 @@ Manufacturer: ASMT
SerialNumber: 00000000000000000000
Port#0: VID=0x174C PID=0x55aa, Device Config: VID=0x174C PID=0x55AA, Rev. 0x0100
```
currently no firmware available
```
Inateck 2,5" Gehäuse (ASMT 2115 USB)
ASMedia 225CM - B4PW1637A2 2143 +SPI Flash

View File

@ -15,10 +15,8 @@ keywords:
### IOT
- living room
- bath
- outdoor
- office
- kitchen
- kitchen
### misc
- xiaomi Mijia LYWSD03MMC
- torch light [18650]

View File

@ -7,8 +7,6 @@ keywords:
- persistent reverse SSH connection with systemd
```
-g Allows remote hosts to connect to local forwarded ports
-N Do not execute a remote command