Skip to content

通过知识获得解放,通过技术获得自由

Menu
  • 专题目录
  • 液压相关
    • 液压技术
    • 液压相邻技术
    • 液压应用
  • 计算机相关
    • 计算机和软件
    • 网络和网站技术
  • 哲学
  • 关于本站
Menu

基于树莓派的下载器[0]

Posted on 2023年11月14日 by

树莓派作为下载器,以其低功耗和隔离,能够适应无需pc的下载和共享。

本处的设置解决的痛点:

1)PC下载台耗电,不适应一直在线

2)SD卡和HDD速度太慢,采用SSD较好的兼顾

3)不能采用PVE的SSD,避免SSD的寿命降低太快

4)系统或者SSD寿命消耗掉后,能够快速恢复,无需大规模重装

  • 前提条件

1)树莓派4B 8G+raspiOS

2)SSD

3)ssh

4)vnc

5)温控风扇

6) 开启aarch64内核

7) 开启bbr

8)修改源文件

nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/raspbian/raspbian/ bullseye main non-free contrib
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ bullseye main non-free contrib
nano  /etc/apt/sources.list.d/raspi.list
deb http://mirrors.aliyun.com/raspberrypi/ bullseye main
  • 部署过程

1)设置/data权限

mkdir /data
chown -Rf rslsync:rslsync /data
chmod -Rf 770 /data
usermod -a -G rslsync pi

2)部署reslio

不推荐二进制安装

下载resilio-sync_arm.tar.gz解压到/root
./rslsync --webui.listen 0.0.0.0:8888

推荐采用deb包安装

dpkg -i resilio-sync_2.7.2.1375-1_armhf.deb
systemctl start resilio-sync
systemctl status resilio-sync
systemctl enable resilio-sync
#配置文件/etc/resilio-sync/config.json

 

3)部署smbd

apt install samba
systemctl start smbd
systemctl enable smbd
修改/etc/samba/smb.conf 如下
[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes

 [database]
        comment = Do not arbitrarily modify the database file
        path = /data
        public = no
        writable = yes

4)部署minidlna

apt-get install minidlna
修改/etc/minidlna.conf如下:
media_dir=/data
port=8200
friendly_name=DLNA
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg


systemctl start  minidlna
systemctl enable  minidlna
usermod -a -G pi minidlna
systemctl restart  minidlna

 

  • 效果

1)reslio一直在线

2)同时也是文档同步器

3)DLNA设备能够找到视频并且能够播放

 

补充:

当同步文件较多时,会出现稳定性问题,问题未解决。

 

参考资料

  1. https://blog.csdn.net/u010953115/article/details/52133694
  2. https://help.resilio.com/hc/en-us/articles/206178924-Installing-Sync-package-on-Linux

欢迎回来

希望本站对你有所帮助!

如有疑问请联系info@fanlog.org
2023 年 11 月
一二三四五六日
 12345
6789101112
13141516171819
20212223242526
27282930 
« 6 月    

AI辅助 (17)

© 2025 | Powered by Superbs Personal Blog theme
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT