admin:samba
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
admin:samba [2025/04/17 16:06] – [Windows] rjversluis | admin:samba [2025/05/11 11:39] (current) – [OpenSCAD] rjversluis | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Samba====== | + | ======NASpi====== |
- | {{: | + | {{: |
\\ | \\ | ||
Line 14: | Line 13: | ||
\\ | \\ | ||
- | =====Server===== | + | =====Samba===== |
+ | [[: | ||
====Example share==== | ====Example share==== | ||
< | < | ||
Line 58: | Line 58: | ||
\\ | \\ | ||
- | =====Samba users===== | + | ====Users==== |
The easiest way is to add a user to the RPi with the user mananger and then to Samba: | The easiest way is to add a user to the RPi with the user mananger and then to Samba: | ||
< | < | ||
Line 65: | Line 65: | ||
+ | \\ | ||
+ | =====RAID 1===== | ||
+ | Mirror two identical SSD' | ||
+ | For the basic setup I used this link:\\ | ||
+ | https:// | ||
+ | |||
+ | ====fstab==== | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ====mdadm==== | ||
+ | Show the raid 1 details: | ||
+ | < | ||
+ | sudo mdadm --query --detail /dev/md0 | ||
+ | /dev/md0: | ||
+ | | ||
+ | | ||
+ | Raid Level : raid1 | ||
+ | Array Size : 1953382336 (1862.89 GiB 2000.26 GB) | ||
+ | Used Dev Size : 1953382336 (1862.89 GiB 2000.26 GB) | ||
+ | Raid Devices : 2 | ||
+ | Total Devices : 2 | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | State : active | ||
+ | Active Devices : 2 | ||
+ | | ||
+ | Failed Devices : 0 | ||
+ | Spare Devices : 0 | ||
+ | |||
+ | Consistency Policy : bitmap | ||
+ | |||
+ | Name : naspi: | ||
+ | UUID : 4bf34efa: | ||
+ | Events : 8152 | ||
+ | |||
+ | Number | ||
+ | | ||
+ | | ||
+ | |||
+ | \\ | ||
+ | =====SSMTP===== | ||
+ | For sending notifications from for example Raid.\\ | ||
+ | https:// | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Fan===== | ||
+ | ==== Install pigpiod==== | ||
+ | <code bash> | ||
+ | ===Start daemon=== | ||
+ | <code bash> | ||
+ | ===Autostart deamon=== | ||
+ | <code bash> | ||
+ | |||
+ | ====Shell script==== | ||
+ | Using GPIO4, header pin 7, for the 100Hz PWM.\\ | ||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | while true | ||
+ | do | ||
+ | TEMP=$(cat / | ||
+ | RV=$(pigs pfs 4 100) | ||
+ | PWM=0 | ||
+ | if (( $TEMP > 45000)) | ||
+ | then | ||
+ | PWM=50 | ||
+ | fi | ||
+ | if (( $TEMP > 50000)) | ||
+ | then | ||
+ | PWM=100 | ||
+ | fi | ||
+ | if (( $TEMP > 55000)) | ||
+ | then | ||
+ | PWM=150 | ||
+ | fi | ||
+ | if (( $TEMP > 60000)) | ||
+ | then | ||
+ | PWM=200 | ||
+ | fi | ||
+ | echo temp=$TEMP pwm=$PWM | ||
+ | pigs p 4 $PWM | ||
+ | sleep 10 | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | ====Startup at reboot==== | ||
+ | crontab -e | ||
+ | <code bash> | ||
+ | |||
+ | ====Connecting the Fan==== | ||
+ | < | ||
+ | FET BS170 connection: | ||
+ | ---------------------------------------- | ||
+ | 6 (GND) Source | ||
+ | 7 (GPIO4) Gate | ||
+ | 2 (+5V) Fan red wire | ||
+ | |||
+ | Fan black wire to FET Drain | ||
+ | A resistor of 47k between GND and FET Gate will shutoff the fan in case the GPIO is in an undefined state.\\ | ||
+ | </ | ||
+ | {{: | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====3D==== | ||
+ | ====OpenSCAD==== | ||
+ | SSDBox and rpi4-box: | ||
+ | * https:// | ||
\\ | \\ | ||
=====Links===== | =====Links===== | ||
- | * https:// | + | * Samba: |
- | * https:// | + | * TimeMachine: |
- | * https:// | + | * GUIs: https:// |
- | * https:// | + | * WEBmin: |
+ | * RAID 1: https:// | ||
+ | * SSMTP: https:// | ||
+ | * RAID 1 recovery: https:// | ||
admin/samba.1744898798.txt.gz · Last modified: 2025/04/17 16:06 by rjversluis