User Tools

Site Tools


admin:samba

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
admin:samba [2025/04/17 14:37] rjversluisadmin:samba [2025/04/20 16:03] (current) rjversluis
Line 1: Line 1:
 ======Samba====== ======Samba======
 +{{:admin:naspi.png?480}}\\
 +
  
  \\  \\
Line 8: Line 10:
 =====WEB Interface===== =====WEB Interface=====
 [[https://webmin.com|WEBmin]] is very powerful, but sometimes its easier to edit the Samba file directly. ;) \\ [[https://webmin.com|WEBmin]] is very powerful, but sometimes its easier to edit the Samba file directly. ;) \\
 +Direct edit is also available in the WEBmin.\\
  
  
  \\  \\
-=====Server=====+=====Samba===== 
 +[[:admin:samba:conf|smb.conf]]
 ====Example share==== ====Example share====
 <code> <code>
Line 29: Line 33:
  fruit:metadata = stream  fruit:metadata = stream
  fruit:posix_rename = yes   fruit:posix_rename = yes 
- fruit:model = MacSamba+ fruit:model = Xserve
  fruit:nfs_aces = no  fruit:nfs_aces = no
  fruit:wipe_intentionally_left_blank_rfork = yes   fruit:wipe_intentionally_left_blank_rfork = yes 
Line 48: Line 52:
  
 ====Windows==== ====Windows====
-To enable Window to find a Samba Server the wsdd2 package must be installed:+To enable the Window Explorer to find a Samba Server the **wsdd2** package must be installed:
 <code> <code>
 sudo apt install wsdd* sudo apt install wsdd*
 </code> </code>
 See also: https://github.com/Netgear/wsdd2 See also: https://github.com/Netgear/wsdd2
 +
 + \\
 +====Users====
 +The easiest way is to add a user to the RPi with the user mananger and then to Samba:
 +<code>
 +sudo smbpasswd -a <linuxuser>
 +</code>
 +
 +
 + \\
 +=====RAID 1=====
 +Mirror two identical SSD's.\\
 +For the basic setup I used this link:\\
 +https://kraisnet.de/index.php/de/themen/11-nuetzliches/34-raid-1-auf-raspberry-pi-einrichten \\
 +
 +====fstab====
 +<code>
 +/dev/md0        /media/cloudraid        ext4    defaults,auto,users,rw  0       0
 +</code>
 +
 +====mdadm====
 +Show the raid 1 details:
 +<code>
 +sudo mdadm --query --detail /dev/md0
 +/dev/md0:
 +           Version : 1.2
 +     Creation Time : Sat Apr 19 11:02:25 2025
 +        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
 +       Persistence : Superblock is persistent
 +
 +     Intent Bitmap : Internal
 +
 +       Update Time : Sun Apr 20 08:38:14 2025
 +             State : active 
 +    Active Devices : 2
 +   Working Devices : 2
 +    Failed Devices : 0
 +     Spare Devices : 0
 +
 +Consistency Policy : bitmap
 +
 +              Name : naspi: (local to host naspi)
 +              UUID : 4bf34efa:443aedd8:c423d0b7:08295b0e
 +            Events : 8152
 +
 +    Number   Major   Minor   RaidDevice State
 +                    1        0      active sync   /dev/sda1
 +                   17        1      active sync   /dev/sdb1</code>
 +
 + \\
 +=====SSMTP=====
 +For sending notifications from for example Raid.\\
 +https://blog.edmdesigner.com/send-email-from-linux-command-line/ \\
  
  
  \\  \\
 =====Links===== =====Links=====
-  * https://www.raspberrypi.com/tutorials/nas-box-raspberry-pi-tutorial/ +  * Samba: https://www.raspberrypi.com/tutorials/nas-box-raspberry-pi-tutorial/ 
-  * https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X +  * TimeMachine: https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X 
-  * https://www.samba.org/samba/GUI/ +  * GUIs: https://www.samba.org/samba/GUI/ 
-  * https://webmin.com+  * WEBmin: https://webmin.com 
 +  * RAID 1: https://kraisnet.de/index.php/de/themen/11-nuetzliches/34-raid-1-auf-raspberry-pi-einrichten 
 +  * SSMTP: https://blog.edmdesigner.com/send-email-from-linux-command-line/ 
 +  * RAID 1 recovery: https://serverfault.com/questions/1039114/on-ubuntu-how-do-you-recover-data-from-a-single-disk-of-a-raid-array-from-anoth
  
admin/samba.1744893432.txt.gz · Last modified: 2025/04/17 14:37 by rjversluis