Tag: Samba

Mount Time Capsule SMB from a Linux host

As it turns out, the Apple Time Capsule only uses SMB protocol version 1 and NTLM for authentication. While this works with macOS without any changes, it often creates problem when trying to mount the the Time Capsule's SMB share on a Linux system. With this parameters, mounting should work out of the box, given you have the cifs-utils (Debian/Ubuntu) installed: sudo mount.cifs //10.0.0.1/Data /mnt/timecapsule/ -o password='yourpw',sec=ntlm,uid=<local user>,vers=1.0 If you have any problems or further insights, feel free to leave a comment....

Samba fileserver on FreeBSD

While building my new NAS, I came across the question how to install a fileserver based on Samba on FreeBSD. Here's how... Kernel options tuning First, let's tune some kernel settings to optimize handling of many files. Edit /etc/sysctl.conf and add the following lines: kern.maxfiles=25600 kern.maxfilesperproc=16384 net.inet.tcp.sendspace=65536 net.inet.tcp.recvspace=65536 Also, we should enable asynchronous I/O. This can be accomplished by adding the following line to the file /boot/loader.conf: aio_load="YES" To get it working without restarting, additionally execute the following command:...

Building a FreeBSD NAS Part 4: Service deployment

In Part 3 of this series I described how to install FreeBSD and set it up properly. Now that the base system setup is complete, we can start providing services... 1. Fileserver with Samba The first and obvious service would be a fileserver. Samba provides a cross platform compatible way of accessing files using the SMB network filesystem debuted in Windows. I created a jail using this commands: ezjail-admin create fileserver 10.0.0.21 ezjail-admin start fileserver I also had to set the time zone manually within the jail using ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime...