A cikin labarin na gaba zamu kalli Zsync. Wannan shiri ne na canja wurin fayil. Zai ba mu damar zazzage fayil daga sabar nesa lokacin da muke da kwafin fayil ɗaya a kwamfutarmu, amma Zsync kawai zai zazzage sababbin sassan fayil yana kwatanta shi da wanda muka ajiye a yankinmu na gida. Don wannan yana amfani da algorithm iri ɗaya kamar rsync.
Duk da yake an tsara rsync don aiki tare da bayanai tsakanin kwamfutoci a cikin ƙungiya ɗaya, an tsara Zsync don rarraba fayil. Zsync baya buƙatar wata software ta sabar musamman, kawai tana buƙatar sabar yanar gizo don karɓar fayiloli, kuma baya sanya ƙarin ƙarin kaya akan sabar. Wannan ya sa ya zama manufa don rarraba fayil mai girma.
Kodayake shirye-shiryen Intanit suna da rahusa da rahusa, ba uzuri bane don ɓata bayanan mu ta hanyar sauke abubuwa iri iri akai-akai. Misalin wannan shine saukar da sigar haɓaka Ubuntu ko kowane hoto na Gnu / Linux.
Kamar yadda kowa ya sani, masu haɓaka Ubuntu suna saki kowace rana, nau'ikan alfa, nau'ikan beta kowane monthsan watanni, waɗanda aka gwada har sai sun kai ga Hotunan ISO barga A da, masu amfani sun zazzage waɗannan hotunan a duk lokacin da suke da damar gwadawa da yin bitar kowane bugu. Yanzu, godiya ga shirin canja wurin fayil na Zsync, ba zai ƙara zama dole ba. Tare da wannan shirin yana yiwuwa zazzage sababbin sassa kawai na hoton ISO. Wannan zai kiyaye mana lokaci mai yawa da bandwidth. Ari, ana adana albarkatun gefen uwar garke.
Idan muka yi amfani da fayil .ISO kai tsaye ko rafi don zazzage sigar Ubuntu, za mu rasa kusan 1,4 GB na bandwidth duk lokacin da muka sauke sabon hoto. Zsync kawai zazzage sabon sassan fayil ɗin ISO muddin muna da kwafin tsohuwar fayil ɗin fayil ɗin da aka faɗi.
Shigar da Zsync akan Ubuntu
Zsync shine Akwai a cikin tsoffin wuraren ajiyewa na yawancin rarrabawar Gnu / Linux, kodayake ga wannan misalin kawai zamu ga yadda ake girka shi a cikin Debian, Ubuntu ko Linux Mint. Kamar yadda na fada, zamu sami wannan shirin a cikin wuraren ajiya, don haka kawai zamu bude tashar (Ctrl + Alt + T) sannan mu rubuta:
sudo apt-get install zsync
Idan muna buƙatar ƙarin sani game da wannan shirin, zamu iya tuntuɓar halayensa da wasu a cikin aikin yanar gizo.
Amfani
Dole ne a bayyana hakan zsync yana amfani ne kawai tare da zazzagewa .zsync. A halin yanzu, hotunan Debian da Ubuntu ISO (duk dandano) ana samun su kamar .zsync zazzagewa. Misali, ziyarci Ubuntu Daily gina.
Kamar yadda kake gani a hoton da ke sama, ana samun Ubuntu 18.04 LTS yau da kullun azaman fayil ɗin ISO kai tsaye da .zsync. Idan kun zazzage fayil ɗin .ISO, dole ne ku zazzage cikakken ISO duk lokacin da ISO ta karɓi sababbin abubuwa. Amma, idan muka sauke fayil din .zsync, shirin Zsync zai zazzage sababbin canje-canje ne kawai a cikin sabuntawa na gaba. Kuna buƙatar sauke duk hoton ISO a cikin saukarwa ta farko.
Fayil .zsync ya ƙunshi metadata da ake buƙata don aiki tare da shirin Zsync. Wannan fayil ɗin yana ƙunshe da tsarin bincike na lissafi don rsync algorithm.
Zazzage fayil .zsync
Don zazzage fayil .zsync ta amfani da shirin abokin ciniki na Zsync, duk abin da za ku yi shi ne bin bayanin da ke biyowa:
zsync URL-del-archivo.zsync
zsync http://cdimage.ubuntu.com/ubuntu/daily-live/current/bionic-desktop-amd64.iso.zsync
Idan muna da fayil ɗin hoto na sama akan tsarinku wanda ke cikin kundin aiki na yanzu, Zsync zai kirga banbanci tsakanin tsohuwar da sabon fayil akan uwar garken nesa kuma zazzage kawai canje-canje. Za ku ga tsarin lissafi azaman jerin maki ko taurari a cikin Terminal. Da zarar an gama saukarwa, zaku sami hotuna biyu. Sabuwar sigar da tsohon hoto tare da fadada .iso.zs-tsoho.
Idan ba a sami tsohuwar fayil ɗin da muke ƙoƙarin saukewa ba, a cikin kundin adireshin aiki iri ɗaya, Zsync zai zazzage duk fayil ɗin.
Zamu iya soke aikin zazzagewa a kowane lokaci ta latsa maɓallan CTRL + C.
Cire Zsync din
Cire wannan shirin daga tsarinmu zai buƙaci mu buɗe tashar (Ctrl + Alt + T). A ciki zamu rubuta umarni mai zuwa:
sudo apt remove zsync
TAMBAYA za mu iya sanya shi a kan sabar yanar gizonmu ta apache don buga su a kan layi, idan dai mun sanya shi a cikin kundin adireshin jama'a na shafin yanar gizonmu, za mu ƙara:
aikace-aikace / x-zsync zsync
a cikin mime.types
Godiya ga labarin!