Skip to content

File Servers

Overview

How do I run DietPi-Software and install optimised software ?

To install any of the DietPi optimised software listed below run from the command line:

dietpi-software

Choose Software Optimised and select one or more items. Finally click on Install. DietPi will do all the necessary steps to install and start these software items.

DietPi software

To see all the DietPi configurations options, review DietPi Tools section.

Return to the Optimised Software list

ProFTPD

ProFTPD gives you access to files/music/downloads etc. on your DietPi system quickly and efficiently with minimal overhead.

DietPi file server software ProFTPD

The access to ProFTPD with Windows is achieved as follows:

  • Go to My Computer (Windows Explorer).
  • In the address bar at the top type ftp://dietpi:dietpi@192.168.0.100 press enter.

Change 192.168.0.100 to the IP address of your DietPi system.

The access to ProFTPD with an FTP client is achieved as follows:

  • Username = dietpi
  • Password = The same as your root login password. Default is dietpi
  • Address = Your IP address (e.g.: 192.168.0.100)
  • Port = 21

The destination directory can be changed by replacing /Path/To/Directory to your target directory:

systemctl stop proftpd
sed -i '/DefaultRoot /c\DefaultRoot /Path/To/Directory' /etc/proftpd/proftpd.conf
systemctl start proftpd

Jailing means to lock users to their home folders.

Jailing can be enabled via

systemctl stop proftpd
sed -i '/DefaultRoot /c\DefaultRoot ~' /etc/proftpd/proftpd.conf
systemctl start proftpd

Wikipedia: https://wikipedia.org/wiki/ProFTPD

Samba

The Samba server lets you share files on your DietPi system with ease based on the well known SMB networking protocol.

DietPi file server software samba

The access to the Samba file server is achieved as follows:

  • Address = \\192.168.0.100\dietpi
  • Username = dietpi
  • Password = <your global application password> (default: dietpi)

The Samba password can be changed with

smbpasswd -a dietpi

To add/change the valid user do the following steps:

  • Edit /etc/samba/smb.conf
    • Search the entry [dietpi], change valid users = username_i_require
    • Add the user to Samba with smbpasswd -a username_i_require
  • Restart services with systemctl restart nmbd smbd

You can now connect to the samba server with the username and password you entered above.

The destination directory can be changed by replacing /Path/To/Directory to your target directory:

sed -i '/path = /c\path = /Path/To/Directory' /etc/samba/smb.conf
systemctl restart nmbd smbd

Wikipedia: https://wikipedia.org/wiki/Samba_(software)

YouTube video tutorial (German language): Raspberry Pi als Datei-Server - einfache Installation eines Fileservers Samba unter DietPi.

vsftpd

Very secure FTP file server with feature rich security options.

DietPi file server software vsftpd

The access to vsftpd with Windows is achieved as follows:

  • Go to My Computer (Windows Explorer).
  • In the address bar at the top type ftp://dietpi:dietpi@192.168.0.100 press enter.

Change 192.168.0.100 to the IP address of your DietPi system.

The access to vsftpd with an FTP client is achieved as follows:

  • Username = dietpi
  • Password = The same as your root login password. Default is dietpi
  • Address = Your IP address (e.g.: 192.168.0.100)
  • Port = 21

Wikipedia: https://wikipedia.org/wiki/Vsftpd

NFS

Network file system server.

DietPi file server software NFS

The access to the NFS share with an NFS client is achieved as follows:

  • Address = IP address of your DietPi system (e.g.: 192.168.0.100)
  • Port = 2049

By default NFS will allow anyone to connect. You can limit who can access the NFS share by setting a IP address range:

  • Edit the following file: /etc/exports
  • To only allow users access with an IP address range of 192.168.0.1-255

    /mnt/dietpi_userdata 192.168.0.*(rw,async,no_root_squash,fsid=0,crossmnt,no_subtree_check)
    
  • Restart services via systemctl restart nfs-kernel-server


Wikipedia: https://wikipedia.org/wiki/Network_File_System

Return to the Optimised Software list