A cikin labarin na gaba zamu kalli Gerbera. Wannan yana da ƙarfi UPnP (Universal Toshe da Kunna) uwar garken kafofin watsa labarai Fasali mai wadataccen fasali tare da kyakkyawar hanyar amfani da yanar gizo. Zai ba mu damar watsa labaran dijital (bidiyo, hotuna, sauti, da sauransu) ta hanyar sadarwar gida da Kunna shi a kan nau'ikan na'urori masu jituwa na UPnP, daga wayoyin hannu zuwa kwamfutar hannu da sauransu.
Gerbera ne mai sabar kafofin watsa labarai UParfi UPnP, wanda zamu iya amfani dashi watsa shirye-shiryen mu na dijital akan gidan yanar sadarwar mu ta hanyar kyakkyawar hanyar amfani da yanar gizo. Gerbera tana aiwatar da UPnP MediaServer V 1.0 ƙayyadadden bayani wanda za'a iya samunsa a upnp.org. Wannan sabar yakamata yayi aiki tare da kowane mai yarda da MediaRenderer na UPnP. Idan muna fuskantar matsaloli a wasu samfuran, yakamata mu bincika jerin na'urorin da suka dace don ƙarin bayani.
Halaye na Gerbera
- Zai yardar mana lilo da wasa kafofin watsa labarai ta amfani da UPnP.
- Na goyon bayan da hakar metadata na fayil mp3, ogg, flac, jpeg, da dai sauransu.
- Tsarin daidaitawa sosai. Za mu iya sarrafa halayyar nau'ikan fasali sabar.
- Na goyon bayan da Tsarin sabar mai amfani dangane da metadata da aka samo.
- Kyauta exif tallafi don takaitaccen siffofi.
- Yarda atomatik directory rescanning (lokaci, inotify)
- Yana bayar da kyakkyawar hanyar amfani da yanar gizo tare da ra'ayi na itace game da bayanan bayanai da tsarin fayil, bayar da damar ƙarawa / sharewa / gyarawa da lilo da kafofin watsa labarai.
- Taimako don URL na waje (Zamu iya ƙirƙirar hanyoyin haɗin yanar gizo).
- Tana goyon bayan sauya bayanan tsarin watsa labarai mai sassauƙa ta hanyar plugins / rubutun da ƙari da yawa, gami da wasu fasalolin gwaji.
Shigar da fara Gerbera - UPnP Media Server akan Ubuntu
A cikin rarraba Ubuntu, akwai PPA ya ƙirƙira kuma ya kiyaye ta Stephen Czetty. Daga can za mu iya shigar da Gerbera ta hanyar buɗe tashar (Ctrl + Alt + T) da amfani da waɗannan umarnin:
sudo add-apt-repository ppa:stephenczetty/gerbera sudo apt update && sudo apt install gerbera
Da zarar kun shigar da sabar, zamu fara, kunnawa da ganin matsayin sabis ɗin ta amfani da umarni masu zuwa a cikin wannan tashar:
sudo systemctl start gerbera.service sudo systemctl enable gerbera.service
Za mu bincika idan sabis ɗin ya fara da:
sudo systemctl status gerbera.service
Muhimmanci: Ee Gerbera ba zai iya farawa ba a kan tsarinku, ya kamata ku gwada ayyukan da ke gaba.
Primero duba idan fayil ɗin log (/ var / log / gerbera) an ƙirƙiri shi, in ba haka ba ƙirƙirar shi kamar yadda aka nuna a ƙasa:
sudo touch /var/log/gerbera sudo chown -Rv root:gerbera /var/log/gerbera && sudo chmod -Rv 0660 /var/log/gerbera
Abu na biyu, bayyana ma'anar hanyar sadarwa da kake amfani dashi azaman darajar sauyin yanayi MT_INTERFACE. Tsoho shine 'eth0', amma idan an kira mahaɗan wani abu dabam, canza sunan. A cikin Debian / Ubuntu, zaku iya saita wannan sanyi a cikin / sauransu / tsoho / fayil din gerbera.
Farawa tare da GerI Media Server Server Web UI
Sabis ɗin Gerbera yana saurara a tashar jirgin ruwa 49152, wanda zamu iya amfani dashi don samun damar yanar gizo UI ta hanyar burauzar yanar gizo:
http://dominio.com:49152
o
http://tu-dirección-ip:49152
Idan ka sami kuskuren da aka nuna a cikin sikirin da ke sama, dole ne ku kunna hanyar amfani da yanar gizo daga fayil ɗin sanyi na Gerbera Shirya shi ta buga a cikin m (Ctrl + Alt T):
sudo vim /etc/gerbera/config.xml
Anan za mu canza darajar da aka kunna = »babu» don kunna = »ee» kamar yadda aka nuna a cikin hotunan hoto mai zuwa.
Bayan yin canje-canje na sama, Mun rufe fayil ɗin kuma za mu sake farawa da sabis ɗin Gerbera. Don yin wannan mun rubuta a cikin m (Ctrl + Alt T):
sudo systemctl restart gerbera.service
Yanzu bari mu koma burauzar mu kuma za mu yi ƙoƙarin buɗe UI sau ɗaya a cikin sabon shafin. Wannan lokacin ya kamata ya loda. Za ku ga shafuka biyu a kanta:
- Database. Zai nuna mana fayilolin da za'a iya isa ga jama'a.
- Tsarin fayil. Anan zamu sami damar bincika fayiloli akan tsarin mu kuma zaɓi su don watsawa. Don ƙara fayil, za mu danna kawai alamar da (+), kamar yadda kuke gani a cikin hoton da ke tafe.
Bayan filesara fayiloli don gudana daga tsarin fayil, mahaɗin bayanan yana kama da wannan.
A wannan gaba, zamu iya fara yawo da fayilolin mai jarida ta hanyar hanyar sadarwar mu daga sabar Gerbera. Don gwada shi, zamu iya amfani da wayar hannu, kwamfutar hannu ko wani abin da ke ba mu damar amfani da Aikace-aikacen UPnP don kunna fayilolin.
Idan muna son samun ƙarin bayani game da wannan sabar, kowa na iya tuntuɓar shafin GitHub na aikin ko ta official website.
Na gode Damian don shigarwar ku. Duk cikakke.
Ina amfani da wannan damar don godewa ɗaukacin ƙungiyar Ubunlog. Madalla da aikin da kuke aikatawa.
gaisuwa
Mai biyan kuɗi.
Na gode da karanta mu. Salu2.