xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

如何使用树莓派搭建一个流媒体服务器 All In One

如何使用树莓派搭建一个流媒体服务器 All In One

Raspberry Pi Stream Media Server

Raspberry Pi Media Player OS

image

image

Plex Media Server

https://support.plex.tv/articles/categories/plex-media-server/

NAS Server

Samba / 桑巴

$ sudo apt-get update
# samba
$ sudo apt-get install samba
# / 根目录
$ sudo mkdir /Share
# chmod 755 === chmod +x
$ chmod 777 /Share
# /home/eric 当前登录用户
$ sudo mkdir Share
# chmod 755 === chmod +x
$ chmod 777 Share

image

# backup config
$ cp /etc/samba/smb.conf /etc/samba/smb.conf.bak

# create Share folder
$ sudo vim /etc/samba/smb.conf

$ sudo cat /etc/samba/smb.conf
[Share]
comment = "RaspberryPi 3B NAS Server"
path = /Share
browseable = yes
writeable = yes
create mask = 0777
directory mask = 0777
public = yes
# restart ❌
$ sudo /etc/init.d/samba restart
sudo: /etc/init.d/samba: command not found

# To match any words starting with space + s, just use grep -E "\ss"
$ ls -al /etc/init.d/ | grep -E "\ss"
-rwxr-xr-x   1 root root 2259 Aug  1  2022 samba-ad-dc
-rwxr-xr-x   1 root root 2224 Apr 15  2018 saned
-rwxr-xr-x   1 root root 2061 Aug  1  2022 smbd
-rwxr-xr-x   1 root root 4056 Jul  2  2022 ssh
-rwxr-xr-x   1 root root 1030 Jan 14  2023 sudo

# smbd which provides the file and printer sharing services ✅
$ sudo /etc/init.d/smbd restart
Restarting smbd (via systemctl): smbd.service.
# OR
$ sudo systemctl restart smbd
# OR
$ sudo systemctl restart smbd.service

image

$ sudo /etc/init.d/smbd restart
$ sudo /etc/init.d/nmbd restart
# OR
$ sudo service smbd restart
$ sudo service nmbd restart

$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0 59.4G  0 disk
|-mmcblk0p1 179:1    0  256M  0 part /boot
`-mmcblk0p2 179:2    0 59.2G  0 part /
$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda           8:0    1 58.6G  0 disk
└─sda1        8:1    1 58.6G  0 part /media/eric/USB64
mmcblk0     179:0    0 59.4G  0 disk
├─mmcblk0p1 179:1    0  256M  0 part /boot
└─mmcblk0p2 179:2    0 59.2G  0 part /

# 把 /dev 下的设备 sda1 挂在到 /Share 文件夹下
$ sudo mount /dev/sda1 /Share
# 最后的 `/` 不需要❓
$ sudo mount /dev/sda1 /Share/

image

NAS client

macOS Shared

image

iOS FileExplorer App

image

Windows Network

image

Android ``

BitTorrent Server

自动下载器

Emby Media Server

https://emby.media/

https://github.com/MediaBrowser/Emby

https://apps.apple.com/us/app/emby/id992180193?platform=mac

Emby Theater for Raspberry Pi

https://emby.media/emby-theater-rpi.html

image

https://github.com/MediaBrowser/emby-theater-electron/releases/download/3.0.16/emby-theater-rpi_3.0.16_arm64.img.xz

demos

$ cat /etc/samba/smb.conf

https://gist.github.com/xgqfrms/b7cdfdea2a7125e59b1a5b7e62b41a00#file-samba-nas-service-md

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs

https://mp.weixin.qq.com/s/opiwcsCd_yw-fDHrLXouMA

https://www.youtube.com/watch?v=EH6P6v3lxsE

https://stackoverflow.com/questions/22520324/use-grep-to-search-for-words-beginning-with-letter-s

https://serverfault.com/questions/135134/samba-not-starting-on-ubuntu/1143814#1143814



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2023-09-15 21:46  xgqfrms  阅读(331)  评论(8编辑  收藏  举报