使用Turnkey File Server镜像快速部署NAS文件服务

TurnkeyLinux出了一款File Server的安装镜像,是基于debian的文件服务器系统,通过安装他可以快速部署NAS系统,实现Samba/sftp/WebDAV/NFS/Webshell/Webmin功能。

以下是官方的说明

File Server - 简单NAS网络附加存储

一个易于使用的文件服务器,将兼容Windows的网络文件共享与基于Web的文件管理器相结合。TurnKey File Server 包括对 SMB、FTP、SFTP、NFS、WebDAV 和 rsync 文件传输协议的支持。服务器配置为允许服务器用户管理私有或公共存储中的文件。基于 Samba 和 WebDAV CGI。

安装Turnkey File Server

从这里下载Turnkey File Server镜像文件(ISO),下面是在虚拟机中安装的过程gif

Turnkey File Server安装全过程

磁盘分区我这里选择 Guided-use entire disk,安装完成后按提示设置 Root Password 方便后期访问,最后一步是提示管理访问地址,如下图所示。

服务管理地址

Turnkey File Server服务管理

SSH

使用root@ip登录服务器,首次登录信息如下:

Welcome to Fileserver, TurnKey GNU/Linux 18.0 (Debian 12/Bookworm)

  System information for Tue Jun 03 06:41:21 2025 (UTC+0000)

    System load:  0.13              Memory usage:  12.2%
    Processes:    125               Swap usage:    4.2%
    Usage of /:   30.0% of 9.75GB   IP address for eth0: 172.31.45.211

  TKLBAM (Backup and Migration):  NOT INITIALIZED

    To initialize TKLBAM, run the "tklbam-init" command to link this
    system to your TurnKey Hub account. For details see the man page or
    go to:

        https://www.turnkeylinux.org/tklbam


    For Advanced commandline config run:    confconsole

  For more info see: https://www.turnkeylinux.org/docs/confconsole

Linux fileserver 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64
root@fileserver ~#

输入confconsole可以进入系统设置,可配置项如下:

confconsole

安装完成后系统使用情况

root@vmd ~# screenfetch
         _,met$$$$$gg.           root@vmd
      ,g$$$$$$$$$$$$$$$P.        OS: Debian 12 bookworm
    ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 6.1.0-37-amd64
   ,$$P'              `$$$.      Uptime: 31m
  ',$$P       ,ggs.     `$$b:    Packages: 582
  `d$$'     ,$P"'   .    $$$     Shell: bash 5.2.15
   $$P      d$'     ,    $$P     Disk: 3.1G / 11G (33%)
   $$:      $$.   -    ,d$$'     CPU: Intel Core i5-4310M @ 2x 2.694GHz
   $$\;      Y$b._   _,d$P'      GPU: Microsoft Corporation Hyper-V virtual VGA
   Y$$.    `.`"Y$$$$P"'          RAM: 395MiB / 895MiB
   `$$b      "-.__
    `Y$$
     `Y$$.
       `$$b.
         `Y$$b.
            `"Y$b._
                `""""
root@vmd ~# inxi
CPU: single core Intel Core i5-4310M (-MT-) speed: 2694 MHz Kernel: 6.1.0-37-amd64 x86_64 Up: 32m
Mem: 421.5/895.8 MiB (47.1%) Storage: 11 GiB (28.1% used) Procs: 124 Shell: Bash inxi: 3.3.26

替换软件源(repo)

apt install curl
bash <(curl -sSL https://linuxmirrors.cn/main.sh)

Samba

访问http://172.31.45.211/,使用root账号登录,完成后即可看到TurnKey File Server服务管理页面,点击 Samba conf via Webmin开始进行Samba设置。

下图就是基于Webmin的Samba管理后台,一切都是可视化,大家可以根据需要进行设置,设置完后记得restart应用。

Samba conf via Webmin

WebDAV

访问https://172.31.45.211/即可进入WebdAV管理后台(WebDAV CGI File Manager),登录账号依然为root,界面如下:

WebDAV CGI File Manager

Webmin

访问https://172.31.45.211:12321即可进入Webmin管理后台,使用root登录后就可以进行一系列配置管理。

Webmin管理后台

https://github.com/turnkeylinux-apps/fileserver

Comments