Cov txheej txheem:

DLNA Media Server: 4 Kauj Ruam
DLNA Media Server: 4 Kauj Ruam

Video: DLNA Media Server: 4 Kauj Ruam

Video: DLNA Media Server: 4 Kauj Ruam
Video: Setup a DLNA Server in Windows PC for Media Streaming 2024, Hlis ntuj nqeg
Anonim
DLNA Media Server
DLNA Media Server

Khaws tag nrho koj cov xov xwm tawm hauv ib qho chaw thiab nkag tau yooj yim.

4K streaming ua haujlwm zoo xwb (disk io: ~ 10MB/s, network: ~ 3MB/s)

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau

1. Ib lub txiv kab ntxwv pi ib lub rooj tsavxwm (tab sis koj tuaj yeem siv lwm yam)

2. Micro SD daim npav (> = 4GB)

3. Sab nraud HDD

4. Ib lub thawv - lub hwj chim hp qub

5. Hobby-xim phaj uas tiv taus tsawg kawg 75 C

6. Ib qhov chaw nres nkoj usb rov qab los ntawm lub khoos phis tawj qub

7. Txiv tsawb txuas, kab hluav taws xob, ntsia liaj qhov rooj zoo rov los ntawm lub khoos phis tawj qub serial lossis vga chaw nres nkoj

Kauj Ruam 2: Qhov Kev Lom Zem

Kev Lom Zem
Kev Lom Zem
Kev Lom Zem
Kev Lom Zem
Kev Lom Zem
Kev Lom Zem
  • Txiav daim phaj hobby-xim rau hauv qab, ua qee qhov rau tus pi kom haum rau hauv.
  • Txiav sab pem hauv ntej kom haum rau lub ntsej muag lub zog hluav taws xob thiab pi lan thiab usb chaw nres nkoj (muaj) 2 tus kiv cua nyob rau sab ntawd sib cais los ntawm daim hlau me me (uas kuv tau txiav) thiab rov siv lub kiv cua qhov los ua ke.
  • Rau pawg tshwj xeeb no (txiv kab ntxwv pi ib) muaj 2 cov ntaub ntawv txuas ntxiv (https://forum.armbian.com/topic/755-orange-pi-one-adding-usb-analog-audio-out-tv-out- mic-thiab-ir-tus txais/).
  • Kuv tau muaj hmoo heev rau tub rog ob lub xov tooj ntawm tus pin 3 thiab 4 (thawj zaug yooj yim khawb tus pin); kom paub tseeb tias cov kab hluav taws xob no tsis tawm, siv rab phom los kho nws ntawm lub npua teb - pom tseeb tom qab kuaj tas. Rau lwm tus pi kuv yuav muab cov hlua txuas tom qab ntawm lub phaj ncaj qha rau ntawm lub chaw nres nkoj usb tus pin.
  • Solder 2 cables ntawm txhua lub txiv ntseej ntsaws (Kuv siv lub qub CD-rom audio cable).
  • Txuas cov xov hluav taws xob mus rau pi, tus qauv no txhawb nws ntawm gpio pins 4 (+5V) thiab 6 (hauv av) - cov pins nyob ntawm kab sab hauv ntawm sab nraud ntawm qhov chaw nres nkoj lan.
  • Txuas lwm lub xov tooj hluav taws xob mus rau qhov chaw nres nkoj usb, thiab cov ntaub ntawv txuas rau tus pin 3 thiab 4 ntawm qhov chaw nres nkoj usb.
  • Ntxiv lub hard drive thiab teeb lub hau ntswj.

Kauj Ruam 3: Qhov Nyiam

Qhov Muag
Qhov Muag

Kuv siv armbian (https://www.armbian.com/download/) vim nws yooj yim dua rau nruab minidlna tom qab

Teeb lub network - ip zoo li qub:

pub-hotplug eth0

tsis-pib-nqis eth0 iface eth0 inet zoo li qub chaw nyob netmask (feem ntau 255.255.255.0) rooj vag dns-nameservers

Teeb tus tsav - Kuv yuav format nws li EXT4 (ceev faj txog cov ntaub ntawv uas twb muaj lawm !!!):

fdisk /dev /sda (p - kom pom kev faib faib, d - rho tawm txhua yam yog tias nws yog, n - tsim qhov tshiab, w - sau kev hloov pauv)

koj yuav xav rov pib dua kom lub ntsiav pom nws (lossis yog partprobe tsis ua haujlwm) mkfs.ext4 -L dlna -disk /dev /sda1

Siv automount hloov fstab - kom tsis txhob kaw qhov system uas tsis ua haujlwm thaum rooj plaub ua tsis tiav

apt-tau nruab autofs

hauv /etc/auto.master append/-/etc/auto.ext-usb hauv /etc/auto.ext-usb/srv -fstype = ext4:/dev/disk/by-label/dlna-disk service autofs pib && systemctl pab kom autofs.service

Nruab thiab teeb tsa minidlna

apt-mus nruab minidlna

/etc/minidlna.conf media_dir =/srv kev pabcuam minidlna pib && systemctl pab minidlna.service

Ua kom tus naj npawb ntawm inotify watchers

/etc/sysctl.conf

fs.inotify.max_user_watches = 1048576 sysctl -p

Ntaus ib lub qhov hauv koj lub firewall

apt-tau nruab firewalld

service firewalld start && systemctl pab firewalld.service firewall-cmd --permanent --add-port 8200/tcp firewall-cmd --permanent --add-port 1900/udp firewall-cmd --reload

Txo RAM zaus kom nws txias thiab txuag lub zog

h3consumption -d 408

rov pib dua

Kauj ruam 4: Ntxiv Qee Cov Ntaub Ntawv

Ntxiv Qee Cov Ntaub Ntawv
Ntxiv Qee Cov Ntaub Ntawv
  • Siv filezilla txuas mus rau qhov kev pabcuam sftp thiab luam koj cov ntaub ntawv hauv qab /srv
  • Nruab samba kom nkag tau rau nws

apt-tau nruab samba

# ntxiv qhov no mus rau qhov kawg ntawm /etc/samba/smb.conf [dlna -media] tawm tswv yim = Kuv txoj hauv kev Media = /srv tuaj yeem nkag tau = yog sau tau = yog siv tau cov neeg siv = minidlna # ua tus neeg siv samba smbpasswd -a minidlna # qhib lub kev pabcuam kev pabcuam smbd pib && systemctl pab smbd.service # cia nws dhau los ntawm firewall firewall-cmd --permanent --add-service samba firewall-cmd --reload # pub nkag tau rau minidlna neeg siv apt-tau nruab acl setfacl -R -mu: minidlna: rwx -md: u: minidlna: rwx /srv

Pom zoo: