Uyifaka njani i-SHOUTcast ku-Ubuntu

ngxola

UKUSHANGATSHWA Itekhnoloji ye ukusasaza iaudiyo, isetyenziswa ngokubanzi Izikhululo zerediyo kwi-intanethi, kwaye yaveliswa nguNullsoft (ngokufanayo neWinamp enkulu neyahlukileyo) emva phaya ngonyaka ka-1999. Ayingomthombo ovulekileyo kodwa i-AOL, umnini wayo wangoku, uyinika njenge-freeware, kodwa ngenxa Inkxaso yeLinux Isetyenziswa ngokubanzi kweli qonga kwaye namhlanje siza kubonisa uyifaka njani i-SHOUTcast ku-Ubuntu.

Ukuthetha ngokungqongqo, siza kufaka I-SHOUTcast yahanjiswa kwiNethiwekhi yeAudio Server 2.0, okanye i-DNAS 2.0, eligama lalo langoku, kwaye nje ukuba kwenziwe oku siya kuba nakho ukuhambisa umculo nge-intanethi kwaye sibe nezethu isikhululo sikanomathotholo. Kodwa izinto zokuqala kuqala, kwaye njengakuzo zonke iimeko ezibonisa ukhuphelo lwesoftware, kodwa kwimeko ye Linux ngaphambi koko siya kuthanda yenza iakhawunti yomsebenzisi ngakumbi ukusebenzisa le iseva yokusasaza kuba njengoko sisazi ukuba akukhuselekanga ukwenza ezi zinto kwiakhawunti yengcambu okanye kwiakhawunti yethu ephambili yomsebenzisi.

Ke, senza 'su' ukuze sibengaphezulu kwaye emva koko:

Usasazo lweadduser

Ukudlulisa ukuhambisa

Nje ukuba password kulo msebenzisi (oceliwe ukuba angene kwakhona ukuze aqinisekise ukuba kulungile) siyakuphelisa oku kwaye kufanelekile kuthi ukuba 'siphume' kumsebenzisi wengcambu kwisiphelo sokuphepha nayiphi na ingozi. Emva koko, singena kunye nomsebenzisi umchachazo ukusebenza apho, ke senza ukhuphelo kunye nemikhombandlela yeseva.

$ mkdir ukhuphelo

$ mkdir umncedisi

Ngoku siza kuzibeka kwisikhombisi esenzelwe ukhuphelo kwaye siqhubeke nokukhuphela i-SHOUTcast kwiiseva zeNullsoft sisebenzisa i-wget enamandla onke, ebandakanywe ngokungagqibekanga ku-Ubuntu:

$ wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz

Ngoku siyikhulula i-tarball:

$ tar xfz sc_serv2_linux_x64-yamva nje.tar.gz

Sizibeka kwifolda yomncedisi kwaye sikopa is_serv kuyo:

cd..

cd umncedisi

$ cp ../download/sc_serv ./

Ngoku sinayo, sizakufuna i config yefayile ye-SHOUTcast, ke siza kwenza ifayile engenanto sisebenzisa umhleli wokubhaliweyo owuthandayo (kwimeko yethu, siza kusebenzisa usiba). Eminye imiba ekufuneka ithathelwe ingqalelo yile yeephasiwedi: igama eliyimfihlo Iphasiwedi esiya kuyisebenzisa ukwenza ulawulo kude nge-interface yomnatha wewebhu, kunye isampampugama_1 Yiyo esetyenziswa ngumdlali wemultimedia ekusasazeni.

$ ipeni sc_serv.conf

Songeza oku kulandelayo:

igama eligqithisiweyo = iphasiwedi
igama lokugqithisa = igama eligqithisiweyo1
requirestreamconfigs = 1
streamadminpassword_1 = iphasiwedi2
umlambo_1 = 1
i-streampassword_1 = iphasiwedi3
isampampu_1 = http: //radio-server.lan: 8000
ifayile yelog = logs / sc_serv.log
w3clog = iinkuni / sc_w3c.log
banfile = ulawulo / sc_serv.ban
ripfile = ulawulo / sc_serv.rip

Kulabo bathanda ukwenza ubumbeko ngokuthe ngqo kwisikhangeli, banokuya kwifolda yokukhuphela kwaye benze i-builder yefayile.sh okanye setup.sh apho, emva koko sifake oku kulandelayo kwisikhangeli sewebhu: http: // localhost : 8000, ukwenza ubumbeko ukuthanda kwethu.

Emva koko siqala iseva ye-SHOUTcast ukusuka kulawulo lomncedisi:

$sc_serv

Ngoku siza kubona ukuba isebenza kweliphi izibuko:

$ netstat -tulpn | grep sc_serv

Sidinga olu lwazi kuba kufuneka sivumele ukufikelela ngaphandle kwizixhobo zethu, ekufuneka sivule kuzo amazibuko ahambelanayo kwi-router (oku kufunyanwa ngokubanzi kukhetho lwe-NAT). Kwakhona, ukuba sine-firewall eyakhelweyo kwikhompyuter yethu, kufuneka sivumele ukungena konxibelelwano oluvela ngaphandle ukuba ziyalelwe kwizibuko apho i-SHOUTcast isebenza khona.

Ngoku sinokuvavanya oku kuqulunqwa kwikhompyuter eyahlukileyo, esivulela kuyo isikhangeli sewebhu kwaye singene kwi-IP yekhompyuter esifaka kuyo i-SHOUTcast, umzekelo: http: 192.168.1.100/8000. Siza kubona ujongano lwe-SHOUTcast phambi kwethu, kodwa ngaphandle uluhlu lokudlala, kuba oku kufuneka siqale umdlali ohambelanayo (iWinamp phakathi kwabo, ewe) kwaye siqwalasele ukudlala ngokuhambisa, into ethi Ukusuka eNullsoft bayasibonisa kwaye ilula kakhulu, kodwa kuba iyinto enqamlezayo kwaye ayiqhelekanga kwiLinux, ngenxa yoko asifuni ukuyifaka ukuze singayandisi ixesha elide.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-2, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   Leo sitsho

    Kulunge kakhulu. Ndiyisebenzisa kunye neWinamp kunye ne-plugin yayo kwikhompyuter yeWindows ukusasaza umqondiso oza kwi-intanethi. Inqaku kukuba ndingathanda ukwenza okufanayo kwiLinux, kodwa nguwuphi umdlali ovumela ukwenza okufanayo?

  2.   jesse sitsho

    Soloko efanayo
    Lowo unikela ngexesha lakhe kunye nomzamo wakhe ekwenzeni iposti, akaqondi ukuba lowo uza kumfunda akamazi ngokufanayo naye, yiyo loo nto emfunile ...
    xa efika emgceni othi, umzekelo: "Ngoku siyayivula i-tarball" kwaye isidenge esifundayo asinalo nofifi lokuba yintoni i-tarball okanye ikhutshwa kanjani, udiniwe kakhulu kukukhupha iziphu ezo ntlobo zeefayile. , elowo nalowo unoyise nonina, ... Okanye ukuba uyafunda: "Sizibeka kwisilawulo kwaye sikopa isincoko se-sc_serv kuyo" ... emva koko ukhumbule umama wakhe kwaye uzibuze ukuba kutheni ungene kule ndawo ukuba uhlala usenzeka into enye kuwe, iposti ikuxelela ukuba iyakukufundisa ukwenza into ibe ingaze ikufundise nto,
    Kwaye ngoku umntu onenzondelelo eza kuza kundixelela ukuba iLinux yeengqondo ezikrelekrele kunye nabo bafuna ukufunda kwaye ngubani umceli mngeni olucelomngeni kubo ...
    Ayilotyala lam, bendikhe ndanayo le crap iminyaka elishumi kwaye ndiyayenza kuba ndifuna ukushiya iifestile, kodwa okwangoku, iseyimeko yobudenge. Ewe, ndiyazi, akukho mntu undinyanzelayo ukuba ndiyisebenzise, ​​kulungile, into endikhalaza ngayo ayisiyongxaki, ndikhalaza ngamaqhinga athi abo bathi iLinux iyamangalisa. kunye noGurus, othetha ngeLinux ngokungathi bayazi, ukuba elowo ukuxelela into eyahlukileyo, kwaye ngamampunge abo
    Namhlanje bendithetha, kodwa hayi kubasebenzisi abadala beLinux, ebehlala eyinyama yeqonga, ukuba ayenzelwanga abo bangenayo, abangazenziyo iingoma ze siren