guix-manual.zh_CN.po 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659
  1. # Chinese (simplified) translation of the Guix manual.
  2. # Copyright (C) 2013-2019 the authors of Guix (msgids) and the following authors (msgstr)
  3. # This file is distributed under the same license as the guix manual package.
  4. # Meiyo Peng <meiyo@riseup.net>, 2019.
  5. # 郑俊杰 <873216071@qq.com>, 2021.
  6. # Liu Tao <lyuutau@outlook.com>, 2021.
  7. # Xinglu Chen <public@yoctocell.xyz>, 2021.
  8. # Charles Lee <lchopn@gmail.com>, 2021.
  9. # Went He <1437061699@qq.com>, 2021.
  10. msgid ""
  11. msgstr ""
  12. "Project-Id-Version: guix-manual 1.0.1-pre1\n"
  13. "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
  14. "POT-Creation-Date: 2021-07-15 14:49+0200\n"
  15. "PO-Revision-Date: 2021-08-28 14:43+0000\n"
  16. "Last-Translator: Went He <1437061699@qq.com>\n"
  17. "Language-Team: Chinese (Simplified) <https://translate.fedoraproject.org/projects/guix/documentation-manual/zh_CN/>\n"
  18. "Language: zh_CN\n"
  19. "MIME-Version: 1.0\n"
  20. "Content-Type: text/plain; charset=UTF-8\n"
  21. "Content-Transfer-Encoding: 8bit\n"
  22. "Plural-Forms: nplurals=1; plural=0;\n"
  23. "X-Generator: Weblate 4.8\n"
  24. "X-Bugs: Report translation errors to the Language-Team address.\n"
  25. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  26. #. type: chapter
  27. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  28. #. type: menuentry
  29. #: guix-git/doc/contributing.texi:1 guix-git/doc/contributing.texi:2
  30. #: guix-git/doc/guix.texi:176
  31. #, no-wrap
  32. msgid "Contributing"
  33. msgstr "贡献"
  34. #. type: Plain text
  35. #: guix-git/doc/contributing.texi:9
  36. #, fuzzy
  37. #| msgid "This project is a cooperative effort, and we need your help to make it grow! Please get in touch with us on @email{guix-devel@@gnu.org} and @code{#guix} on the Freenode IRC network. We welcome ideas, bug reports, patches, and anything that may be helpful to the project. We particularly welcome help on packaging (@pxref{Packaging Guidelines})."
  38. msgid "This project is a cooperative effort, and we need your help to make it grow! Please get in touch with us on @email{guix-devel@@gnu.org} and @code{#guix} on the Libera Chat IRC network. We welcome ideas, bug reports, patches, and anything that may be helpful to the project. We particularly welcome help on packaging (@pxref{Packaging Guidelines})."
  39. msgstr "这个项目是大家合作的成果,我们需要你的帮助以更好地发展。请通过@email{guix-devel@@gnu.org} 和 Freenode IRC 上的 @code{#guix} 联系我们。我们欢迎您的想法、bug反馈、补丁,以及任何可能对项目有帮助的贡献。我们特别欢迎帮助我们打包(@pxref{Packaging Guidelines})。"
  40. #. type: cindex
  41. #: guix-git/doc/contributing.texi:10
  42. #, no-wrap
  43. msgid "code of conduct, of contributors"
  44. msgstr "行为准则和贡献者"
  45. #. type: cindex
  46. #: guix-git/doc/contributing.texi:11
  47. #, no-wrap
  48. msgid "contributor covenant"
  49. msgstr "贡献者契约"
  50. #. type: Plain text
  51. #: guix-git/doc/contributing.texi:17
  52. msgid "We want to provide a warm, friendly, and harassment-free environment, so that anyone can contribute to the best of their abilities. To this end our project uses a ``Contributor Covenant'', which was adapted from @url{https://contributor-covenant.org/}. You can find a local version in the @file{CODE-OF-CONDUCT} file in the source tree."
  53. msgstr "我们希望提供一个温暖、友好,并且没有骚扰的的环境,这样每个人都能尽最大努力贡献。为了这个目的,我们的项目遵循“贡献者契约”,这个契约是根据 @url{https://contributor-covenant.org/} 制定的。你可以在源代码目录里的 @file{CODE-OF-CONDUCT} 文件里找到一份本地版。"
  54. #. type: Plain text
  55. #: guix-git/doc/contributing.texi:21
  56. msgid "Contributors are not required to use their legal name in patches and on-line communication; they can use any name or pseudonym of their choice."
  57. msgstr "贡献者在提交补丁和网上交流时不需要使用法律认可的名字。他们可以使用任何名字或者假名。"
  58. #. type: section
  59. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:35
  60. #: guix-git/doc/contributing.texi:36
  61. #, no-wrap
  62. msgid "Building from Git"
  63. msgstr "从Git构建"
  64. #. type: menuentry
  65. #: guix-git/doc/contributing.texi:33
  66. msgid "The latest and greatest."
  67. msgstr "最新的并且最好的。"
  68. #. type: section
  69. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:161
  70. #: guix-git/doc/contributing.texi:162
  71. #, no-wrap
  72. msgid "Running Guix Before It Is Installed"
  73. msgstr "在安装之前运行Guix"
  74. #. type: menuentry
  75. #: guix-git/doc/contributing.texi:33
  76. msgid "Hacker tricks."
  77. msgstr "黑客技巧。"
  78. #. type: section
  79. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:235
  80. #: guix-git/doc/contributing.texi:236
  81. #, no-wrap
  82. msgid "The Perfect Setup"
  83. msgstr "完美的配置"
  84. #. type: menuentry
  85. #: guix-git/doc/contributing.texi:33
  86. msgid "The right tools."
  87. msgstr "正确的工具。"
  88. #. type: section
  89. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:326
  90. #: guix-git/doc/contributing.texi:327
  91. #, no-wrap
  92. msgid "Packaging Guidelines"
  93. msgstr "打包指导"
  94. #. type: menuentry
  95. #: guix-git/doc/contributing.texi:33
  96. msgid "Growing the distribution."
  97. msgstr "帮助发行版成长。"
  98. #. type: section
  99. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:890
  100. #: guix-git/doc/contributing.texi:891
  101. #, no-wrap
  102. msgid "Coding Style"
  103. msgstr "代码风格"
  104. #. type: menuentry
  105. #: guix-git/doc/contributing.texi:33
  106. msgid "Hygiene of the contributor."
  107. msgstr "出资者的卫生状况。"
  108. #. type: section
  109. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:989
  110. #: guix-git/doc/contributing.texi:990
  111. #, no-wrap
  112. msgid "Submitting Patches"
  113. msgstr "提交补丁"
  114. #. type: menuentry
  115. #: guix-git/doc/contributing.texi:33
  116. msgid "Share your work."
  117. msgstr "分享你的工作。"
  118. #. type: section
  119. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1223
  120. #: guix-git/doc/contributing.texi:1224
  121. #, no-wrap
  122. msgid "Tracking Bugs and Patches"
  123. msgstr ""
  124. #. type: menuentry
  125. #: guix-git/doc/contributing.texi:33
  126. msgid "Keeping it all organized."
  127. msgstr ""
  128. #. type: section
  129. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1338
  130. #: guix-git/doc/contributing.texi:1339
  131. #, no-wrap
  132. msgid "Commit Access"
  133. msgstr "提交权利"
  134. #. type: menuentry
  135. #: guix-git/doc/contributing.texi:33
  136. msgid "Pushing to the official repository."
  137. msgstr "推送到管方的仓库。"
  138. #. type: section
  139. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1564
  140. #: guix-git/doc/contributing.texi:1565
  141. #, no-wrap
  142. msgid "Updating the Guix Package"
  143. msgstr "更新Guix软件包"
  144. #. type: menuentry
  145. #: guix-git/doc/contributing.texi:33
  146. msgid "Updating the Guix package definition."
  147. msgstr "更新Guix的软件包定义。"
  148. #. type: section
  149. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1605
  150. #: guix-git/doc/contributing.texi:1606
  151. #, fuzzy, no-wrap
  152. #| msgid "Testing Guix."
  153. msgid "Translating Guix"
  154. msgstr ""
  155. #. type: menuentry
  156. #: guix-git/doc/contributing.texi:33
  157. msgid "Make Guix speak your native language."
  158. msgstr ""
  159. #. type: Plain text
  160. #: guix-git/doc/contributing.texi:40
  161. msgid "If you want to hack Guix itself, it is recommended to use the latest version from the Git repository:"
  162. msgstr "如果你想折腾Guix本身,建议使用Git仓库里最新的版本:"
  163. #. type: example
  164. #: guix-git/doc/contributing.texi:43
  165. #, no-wrap
  166. msgid "git clone https://git.savannah.gnu.org/git/guix.git\n"
  167. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  168. #. type: cindex
  169. #: guix-git/doc/contributing.texi:45
  170. #, no-wrap
  171. msgid "authentication, of a Guix checkout"
  172. msgstr ""
  173. #. type: Plain text
  174. #: guix-git/doc/contributing.texi:50
  175. msgid "How do you ensure that you obtained a genuine copy of the repository? To do that, run @command{guix git authenticate}, passing it the commit and OpenPGP fingerprint of the @dfn{channel introduction} (@pxref{Invoking guix git authenticate}):"
  176. msgstr ""
  177. #. type: example
  178. #: guix-git/doc/contributing.texi:57
  179. #, no-wrap
  180. msgid ""
  181. "git fetch origin keyring:keyring\n"
  182. "guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \\\n"
  183. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\"\n"
  184. msgstr ""
  185. #. type: Plain text
  186. #: guix-git/doc/contributing.texi:62
  187. msgid "This command completes with exit code zero on success; it prints an error message and exits with a non-zero code otherwise."
  188. msgstr ""
  189. #. type: Plain text
  190. #: guix-git/doc/contributing.texi:69
  191. msgid "As you can see, there is a chicken-and-egg problem: you first need to have Guix installed. Typically you would install Guix System (@pxref{System Installation}) or Guix on top of another distro (@pxref{Binary Installation}); in either case, you would verify the OpenPGP signature on the installation medium. This ``bootstraps'' the trust chain."
  192. msgstr ""
  193. #. type: Plain text
  194. #: guix-git/doc/contributing.texi:74
  195. msgid "The easiest way to set up a development environment for Guix is, of course, by using Guix! The following command starts a new shell where all the dependencies and appropriate environment variables are set up to hack on Guix:"
  196. msgstr "设置Guix开发环境的最简单的方式当然是使用Guix!下面这些命令启动一个shell,所有的依赖和环境变量都为折腾Guix设置好了:"
  197. #. type: example
  198. #: guix-git/doc/contributing.texi:77
  199. #, no-wrap
  200. msgid "guix environment guix --pure\n"
  201. msgstr "guix environment guix --pure\n"
  202. #. type: Plain text
  203. #: guix-git/doc/contributing.texi:80
  204. #, fuzzy
  205. msgid "@xref{Invoking guix environment}, for more information on that command."
  206. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  207. #. type: Plain text
  208. #: guix-git/doc/contributing.texi:84
  209. #, fuzzy
  210. msgid "If you are unable to use Guix when building Guix from a checkout, the following are the required packages in addition to those mentioned in the installation instructions (@pxref{Requirements})."
  211. msgstr "当从Git检出构建Guix时,除安装指导(@pxref{Requirements})里提及的软件包之外还需要这些包。"
  212. #. type: item
  213. #: guix-git/doc/contributing.texi:86
  214. #, no-wrap
  215. msgid "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  216. msgstr "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  217. #. type: item
  218. #: guix-git/doc/contributing.texi:87
  219. #, no-wrap
  220. msgid "@url{https://gnu.org/software/automake/, GNU Automake};"
  221. msgstr "@url{https://gnu.org/software/automake/, GNU Automake};"
  222. #. type: item
  223. #: guix-git/doc/contributing.texi:88
  224. #, no-wrap
  225. msgid "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  226. msgstr "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  227. #. type: item
  228. #: guix-git/doc/contributing.texi:89
  229. #, no-wrap
  230. msgid "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  231. msgstr "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  232. #. type: item
  233. #: guix-git/doc/contributing.texi:90
  234. #, no-wrap
  235. msgid "@url{https://www.graphviz.org/, Graphviz};"
  236. msgstr "@url{https://www.graphviz.org/, Graphviz};"
  237. #. type: item
  238. #: guix-git/doc/contributing.texi:91
  239. #, no-wrap
  240. msgid "@url{https://www.gnu.org/software/help2man/, GNU Help2man (optional)}."
  241. msgstr "@url{https://www.gnu.org/software/help2man/, GNU Help2man(可选)}。"
  242. #. type: Plain text
  243. #: guix-git/doc/contributing.texi:96
  244. msgid "On Guix, extra dependencies can be added by instead running @command{guix environment} with @option{--ad-hoc}:"
  245. msgstr ""
  246. #. type: example
  247. #: guix-git/doc/contributing.texi:99
  248. #, no-wrap
  249. msgid "guix environment guix --pure --ad-hoc help2man git strace\n"
  250. msgstr "guix environment guix --pure --ad-hoc help2man git strace\n"
  251. #. type: Plain text
  252. #: guix-git/doc/contributing.texi:103
  253. msgid "Run @command{./bootstrap} to generate the build system infrastructure using Autoconf and Automake. If you get an error like this one:"
  254. msgstr "运行 @command{./bootstrap} 以使用Autoconf和Automake生成构建系统的基础框架。如果你的得到这样的错误:"
  255. #. type: example
  256. #: guix-git/doc/contributing.texi:106
  257. #, no-wrap
  258. msgid "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  259. msgstr "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  260. #. type: Plain text
  261. #: guix-git/doc/contributing.texi:115
  262. msgid "it probably means that Autoconf couldn’t find @file{pkg.m4}, which is provided by pkg-config. Make sure that @file{pkg.m4} is available. The same holds for the @file{guile.m4} set of macros provided by Guile. For instance, if you installed Automake in @file{/usr/local}, it wouldn’t look for @file{.m4} files in @file{/usr/share}. In that case, you have to invoke the following command:"
  263. msgstr "它可能意味着Autoconf无法找到由pkg-config提供的@file{pkg.m4}。请确保@file{pkg.m4}可用。由Guile提供的@file{guile.m4}宏也类似。假如你的Automake安装在@file{/usr/local},那么它不会从@file{/usr/share}里寻找@file{.m4}文件。这种情况下,你必须执行下面这个命令:"
  264. #. type: example
  265. #: guix-git/doc/contributing.texi:118
  266. #, no-wrap
  267. msgid "export ACLOCAL_PATH=/usr/share/aclocal\n"
  268. msgstr "export ACLOCAL_PATH=/usr/share/aclocal\n"
  269. #. type: Plain text
  270. #: guix-git/doc/contributing.texi:122
  271. msgid "@xref{Macro Search Path,,, automake, The GNU Automake Manual}, for more information."
  272. msgstr "参考@xref{Macro Search Path,,, automake, The GNU Automake Manual}."
  273. #. type: Plain text
  274. #: guix-git/doc/contributing.texi:129
  275. msgid "Then, run @command{./configure} as usual. Make sure to pass @code{--localstatedir=@var{directory}} where @var{directory} is the @code{localstatedir} value used by your current installation (@pxref{The Store}, for information about this), usually @file{/var}. Note that you will probably not run @command{make install} at the end (you don't have to) but it's still important to pass the right @code{localstatedir}."
  276. msgstr ""
  277. #. type: Plain text
  278. #: guix-git/doc/contributing.texi:134
  279. #, fuzzy
  280. msgid "Finally, you have to invoke @code{make && make check} to build Guix and run the tests (@pxref{Running the Test Suite}). If anything fails, take a look at installation instructions (@pxref{Installation}) or send a message to the @email{guix-devel@@gnu.org, mailing list}."
  281. msgstr "最后,用@code{make check}执行测试(@pxref{Running the Test Suite})。如果遇到任何错误,请参考“安装指导”(@pxref{Installation})或者给@email{guix-devel@@gnu.org, 邮件列表}发邮件。"
  282. #. type: Plain text
  283. #: guix-git/doc/contributing.texi:137
  284. msgid "From there on, you can authenticate all the commits included in your checkout by running:"
  285. msgstr ""
  286. #. type: example
  287. #: guix-git/doc/contributing.texi:140
  288. #, fuzzy, no-wrap
  289. msgid "make authenticate\n"
  290. msgstr "make check\n"
  291. #. type: Plain text
  292. #: guix-git/doc/contributing.texi:143
  293. msgid "The first run takes a couple of minutes, but subsequent runs are faster."
  294. msgstr ""
  295. #. type: Plain text
  296. #: guix-git/doc/contributing.texi:149
  297. msgid "Or, when your configuration for your local Git repository doesn't match the default one, you can provide the reference for the @code{keyring} branch through the variable @code{GUIX_GIT_KEYRING}. The following example assumes that you have a Git remote called @samp{myremote} pointing to the official repository:"
  298. msgstr ""
  299. #. type: example
  300. #: guix-git/doc/contributing.texi:152
  301. #, no-wrap
  302. msgid "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  303. msgstr ""
  304. #. type: quotation
  305. #: guix-git/doc/contributing.texi:154 guix-git/doc/contributing.texi:1416
  306. #: guix-git/doc/guix.texi:573 guix-git/doc/guix.texi:622
  307. #: guix-git/doc/guix.texi:800 guix-git/doc/guix.texi:1779
  308. #: guix-git/doc/guix.texi:2026 guix-git/doc/guix.texi:2210
  309. #: guix-git/doc/guix.texi:2431 guix-git/doc/guix.texi:2632
  310. #: guix-git/doc/guix.texi:3749 guix-git/doc/guix.texi:4490
  311. #: guix-git/doc/guix.texi:4504 guix-git/doc/guix.texi:4586
  312. #: guix-git/doc/guix.texi:4816 guix-git/doc/guix.texi:5666
  313. #: guix-git/doc/guix.texi:5912 guix-git/doc/guix.texi:6033
  314. #: guix-git/doc/guix.texi:6061 guix-git/doc/guix.texi:6114
  315. #: guix-git/doc/guix.texi:8816 guix-git/doc/guix.texi:8886
  316. #: guix-git/doc/guix.texi:10561 guix-git/doc/guix.texi:10601
  317. #: guix-git/doc/guix.texi:10874 guix-git/doc/guix.texi:10886
  318. #: guix-git/doc/guix.texi:13184 guix-git/doc/guix.texi:13814
  319. #: guix-git/doc/guix.texi:14597 guix-git/doc/guix.texi:15582
  320. #: guix-git/doc/guix.texi:18003 guix-git/doc/guix.texi:18160
  321. #: guix-git/doc/guix.texi:26024 guix-git/doc/guix.texi:29701
  322. #: guix-git/doc/guix.texi:31658 guix-git/doc/guix.texi:33267
  323. #: guix-git/doc/guix.texi:33501 guix-git/doc/guix.texi:33671
  324. #: guix-git/doc/guix.texi:33824 guix-git/doc/guix.texi:33926
  325. #: guix-git/doc/guix.texi:34027 guix-git/doc/guix.texi:34330
  326. #, no-wrap
  327. msgid "Note"
  328. msgstr "注"
  329. #. type: quotation
  330. #: guix-git/doc/contributing.texi:158
  331. msgid "You are advised to run @command{make authenticate} after every @command{git pull} invocation. This ensures you keep receiving valid changes to the repository."
  332. msgstr ""
  333. #. type: Plain text
  334. #: guix-git/doc/contributing.texi:168
  335. msgid "In order to keep a sane working environment, you will find it useful to test the changes made in your local source tree checkout without actually installing them. So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  336. msgstr "为了保持一个合适的工作环境,你会发现在你的本地代码树里测试修改而不用安装它们会很有用。TODO: So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  337. #. type: Plain text
  338. #: guix-git/doc/contributing.texi:179
  339. #, fuzzy
  340. msgid "To that end, all the command-line tools can be used even if you have not run @code{make install}. To do that, you first need to have an environment with all the dependencies available (@pxref{Building from Git}), and then simply prefix each command with @command{./pre-inst-env} (the @file{pre-inst-env} script lives in the top build tree of Guix; it is generated by running @command{./bootstrap} followed by @command{./configure}). As an example, here is how you would build the @code{hello} package as defined in your working tree (this assumes @command{guix-daemon} is already running on your system; it's OK if it's a different version):"
  341. msgstr "这样,即使你没有运行@code{make install},所有的命令行工具都可以使用。为此,你先要有一个包含全部依赖的环境(@pxref{Building from Git}),然后,为所有的命令添加前缀@command{./pre-inst-env}(@file{pre-inst-env}脚本在Guix构建树的最顶层,它由@command{./configure}生成),如@footnote{@command{sudo}命令的@option{-E}参数确保@code{GUILE_LOAD_PATH}被正确设置,从而@command{guix-daemon}和它使用的工具可以找到它们需要的Guile模块。}:"
  342. #. type: example
  343. #: guix-git/doc/contributing.texi:182
  344. #, fuzzy, no-wrap
  345. msgid "$ ./pre-inst-env guix build hello\n"
  346. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  347. #. type: Plain text
  348. #: guix-git/doc/contributing.texi:186
  349. msgid "Similarly, an example for a Guile session using the Guix modules:"
  350. msgstr "同样,一个使用 Guix 模块的 Guile 会话的例子:"
  351. #. type: example
  352. #: guix-git/doc/contributing.texi:189
  353. #, no-wrap
  354. msgid ""
  355. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  356. "\n"
  357. msgstr ""
  358. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  359. "\n"
  360. #. type: example
  361. #: guix-git/doc/contributing.texi:191
  362. #, no-wrap
  363. msgid ";;; (\"x86_64-linux\")\n"
  364. msgstr ";;; (\"x86_64-linux\")\n"
  365. #. type: cindex
  366. #: guix-git/doc/contributing.texi:194
  367. #, no-wrap
  368. msgid "REPL"
  369. msgstr "REPL"
  370. #. type: cindex
  371. #: guix-git/doc/contributing.texi:195
  372. #, no-wrap
  373. msgid "read-eval-print loop"
  374. msgstr "read-eval-print loop"
  375. #. type: Plain text
  376. #: guix-git/doc/contributing.texi:198
  377. msgid "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  378. msgstr "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  379. #. type: example
  380. #: guix-git/doc/contributing.texi:213
  381. #, no-wrap
  382. msgid ""
  383. "$ ./pre-inst-env guile\n"
  384. "scheme@@(guile-user)> ,use(guix)\n"
  385. "scheme@@(guile-user)> ,use(gnu)\n"
  386. "scheme@@(guile-user)> (define snakes\n"
  387. " (fold-packages\n"
  388. " (lambda (package lst)\n"
  389. " (if (string-prefix? \"python\"\n"
  390. " (package-name package))\n"
  391. " (cons package lst)\n"
  392. " lst))\n"
  393. " '()))\n"
  394. "scheme@@(guile-user)> (length snakes)\n"
  395. "$1 = 361\n"
  396. msgstr ""
  397. "$ ./pre-inst-env guile\n"
  398. "scheme@@(guile-user)> ,use(guix)\n"
  399. "scheme@@(guile-user)> ,use(gnu)\n"
  400. "scheme@@(guile-user)> (define snakes\n"
  401. " (fold-packages\n"
  402. " (lambda (package lst)\n"
  403. " (if (string-prefix? \"python\"\n"
  404. " (package-name package))\n"
  405. " (cons package lst)\n"
  406. " lst))\n"
  407. " '()))\n"
  408. "scheme@@(guile-user)> (length snakes)\n"
  409. "$1 = 361\n"
  410. #. type: Plain text
  411. #: guix-git/doc/contributing.texi:221
  412. #, fuzzy
  413. msgid "If you are hacking on the daemon and its supporting code or if @command{guix-daemon} is not already running on your system, you can launch it straight from the build tree@footnote{The @option{-E} flag to @command{sudo} guarantees that @code{GUILE_LOAD_PATH} is correctly set such that @command{guix-daemon} and the tools it uses can find the Guile modules they need.}:"
  414. msgstr "这样,即使你没有运行@code{make install},所有的命令行工具都可以使用。为此,你先要有一个包含全部依赖的环境(@pxref{Building from Git}),然后,为所有的命令添加前缀@command{./pre-inst-env}(@file{pre-inst-env}脚本在Guix构建树的最顶层,它由@command{./configure}生成),如@footnote{@command{sudo}命令的@option{-E}参数确保@code{GUILE_LOAD_PATH}被正确设置,从而@command{guix-daemon}和它使用的工具可以找到它们需要的Guile模块。}:"
  415. #. type: example
  416. #: guix-git/doc/contributing.texi:224
  417. #, fuzzy, no-wrap
  418. msgid "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  419. msgstr ""
  420. "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  421. "$ ./pre-inst-env guix build hello\n"
  422. #. type: Plain text
  423. #: guix-git/doc/contributing.texi:228
  424. msgid "The @command{pre-inst-env} script sets up all the environment variables necessary to support this, including @env{PATH} and @env{GUILE_LOAD_PATH}."
  425. msgstr "@command{pre-inst-env}脚本设置为此好了所有必要的的环境变量,包括@env{PATH}和@env{GUILE_LOAD_PATH}。"
  426. #. type: Plain text
  427. #: guix-git/doc/contributing.texi:233
  428. msgid "Note that @command{./pre-inst-env guix pull} does @emph{not} upgrade the local source tree; it simply updates the @file{~/.config/guix/current} symlink (@pxref{Invoking guix pull}). Run @command{git pull} instead if you want to upgrade your local source tree."
  429. msgstr "@command{./pre-inst-env guix pull} @emph{不} 会更新本地源代码树,它只更新符号链接@file{~/.config/guix/current} (@pxref{Invoking guix pull})。如果你想更新本地源代码树,请运行@command{git pull}。"
  430. #. type: Plain text
  431. #: guix-git/doc/contributing.texi:243
  432. msgid "The Perfect Setup to hack on Guix is basically the perfect setup used for Guile hacking (@pxref{Using Guile in Emacs,,, guile, Guile Reference Manual}). First, you need more than an editor, you need @url{https://www.gnu.org/software/emacs, Emacs}, empowered by the wonderful @url{https://nongnu.org/geiser/, Geiser}. To set that up, run:"
  433. msgstr "折腾 Guix 的完美配置也是折腾 Guile 的完美配置 @pxref{Using Guile in Emacs,,, guile, Guile Reference Manual})。首先,你需要的不仅是一个编辑器,你需要 @url{https://www.gnu.org/software/emacs, Emacs},以及美妙的 @url{http://nongnu.org/geiser/, Geiser}。为此,运行:"
  434. #. type: example
  435. #: guix-git/doc/contributing.texi:246
  436. #, fuzzy, no-wrap
  437. #| msgid "guix package -i emacs guile emacs-geiser\n"
  438. msgid "guix package -i emacs guile emacs-geiser emacs-geiser-guile\n"
  439. msgstr "guix package -i emacs guile emacs-geiser\n"
  440. #. type: Plain text
  441. #: guix-git/doc/contributing.texi:255
  442. msgid "Geiser allows for interactive and incremental development from within Emacs: code compilation and evaluation from within buffers, access to on-line documentation (docstrings), context-sensitive completion, @kbd{M-.} to jump to an object definition, a REPL to try out your code, and more (@pxref{Introduction,,, geiser, Geiser User Manual}). For convenient Guix development, make sure to augment Guile’s load path so that it finds source files from your checkout:"
  443. msgstr "Geiser 允许在 Emacs 里进行交互式的、增长式的开发:buffer 里的代码补全和执行,获取一行的文档 (docstrings),上下文敏感的补全,@kbd{M-.} 跳转到对象定义,测试代码的 REPL,及更多(@pxref{Introduction,,, geiser, Geiser User Manual})。为了方便的 Guix 开发,请确保修改 Guile 的加载路径 (load path) 以使其能从你的项目里找到源代码文件:"
  444. #. type: lisp
  445. #: guix-git/doc/contributing.texi:260
  446. #, no-wrap
  447. msgid ""
  448. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  449. "(with-eval-after-load 'geiser-guile\n"
  450. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  451. msgstr ""
  452. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  453. "(with-eval-after-load 'geiser-guile\n"
  454. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  455. #. type: Plain text
  456. #: guix-git/doc/contributing.texi:268
  457. msgid "To actually edit the code, Emacs already has a neat Scheme mode. But in addition to that, you must not miss @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}. It provides facilities to directly operate on the syntax tree, such as raising an s-expression or wrapping it, swallowing or rejecting the following s-expression, etc."
  458. msgstr "真正编辑代码时别忘了 Emacs 自带了方便的 Scheme 模式。而且,一定不要错过 @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}。它提供了直接操作语法树的的功能,例如,用 S- 表达式替换父节点,为 S- 表达式添加、删除前后的括号,删除后面的 S- 表达式,等等。"
  459. #. type: cindex
  460. #: guix-git/doc/contributing.texi:269
  461. #, no-wrap
  462. msgid "code snippets"
  463. msgstr "代码片段"
  464. #. type: cindex
  465. #: guix-git/doc/contributing.texi:270
  466. #, no-wrap
  467. msgid "templates"
  468. msgstr "模板"
  469. #. type: cindex
  470. #: guix-git/doc/contributing.texi:271
  471. #, no-wrap
  472. msgid "reducing boilerplate"
  473. msgstr "减少样板"
  474. #. type: Plain text
  475. #: guix-git/doc/contributing.texi:278
  476. #, fuzzy
  477. msgid "We also provide templates for common git commit messages and package definitions in the @file{etc/snippets} directory. These templates can be used with @url{https://joaotavora.github.io/yasnippet/, YASnippet} to expand short trigger strings to interactive text snippets. You may want to add the snippets directory to the @var{yas-snippet-dirs} variable in Emacs."
  478. msgstr "在@file{etc/snippets}文件夹里,我们还为普通的git commit信息和软件包定义提供模板。这些模板可以通过@url{http://joaotavora.github.io/yasnippet/, YASnippet}使用,它可以把短的触发字符串扩展成交互式的文字片段。你可能希望将这个文件夹添加到Emacs的@var{yas-snippet-dirs}变量里。"
  479. #. type: lisp
  480. #: guix-git/doc/contributing.texi:283
  481. #, no-wrap
  482. msgid ""
  483. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  484. "(with-eval-after-load 'yasnippet\n"
  485. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  486. msgstr ""
  487. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  488. "(with-eval-after-load 'yasnippet\n"
  489. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  490. #. type: Plain text
  491. #: guix-git/doc/contributing.texi:291
  492. msgid "The commit message snippets depend on @url{https://magit.vc/, Magit} to display staged files. When editing a commit message type @code{add} followed by @kbd{TAB} to insert a commit message template for adding a package; type @code{update} followed by @kbd{TAB} to insert a template for updating a package; type @code{https} followed by @kbd{TAB} to insert a template for changing the home page URI of a package to HTTPS."
  493. msgstr "commit信息片段显示staged文件需要依赖@url{https://magit.vc/, Magit}。编辑commit信息时,输入@code{add},然后按@kbd{TAB}就可以插入一段用于新增软件包的模板;输入@code{update},然后按@kbd{TAB}可以插入一段更新软件包的模板;输入@code{https}然后按@kbd{TAB}可以插入一段修改主页URI为HTTPS的模板。"
  494. #. type: Plain text
  495. #: guix-git/doc/contributing.texi:297
  496. msgid "The main snippet for @code{scheme-mode} is triggered by typing @code{package...} followed by @kbd{TAB}. This snippet also inserts the trigger string @code{origin...}, which can be expanded further. The @code{origin} snippet in turn may insert other trigger strings ending on @code{...}, which also can be expanded further."
  497. msgstr "@code{scheme-mode}最重要的模板可以通过输入@code{package...},然后按@kbd{TAB}触发。这个片段还插入了触发字符串@code{origin...},以进一步展开。@code{origin}片段更进一步的可能插入其它以@code{...}结尾的触发字符串,它们可以被继续展开。"
  498. #. type: cindex
  499. #: guix-git/doc/contributing.texi:298
  500. #, no-wrap
  501. msgid "insert or update copyright"
  502. msgstr ""
  503. #. type: code{#1}
  504. #: guix-git/doc/contributing.texi:299
  505. #, no-wrap
  506. msgid "M-x guix-copyright"
  507. msgstr ""
  508. #. type: code{#1}
  509. #: guix-git/doc/contributing.texi:300
  510. #, no-wrap
  511. msgid "M-x copyright-update"
  512. msgstr ""
  513. #. type: Plain text
  514. #: guix-git/doc/contributing.texi:304
  515. msgid "We additionally provide insertion and automatic update of a copyright in @file{etc/copyright.el}. You may want to set your full name, mail, and load a file."
  516. msgstr ""
  517. #. type: lisp
  518. #: guix-git/doc/contributing.texi:310
  519. #, no-wrap
  520. msgid ""
  521. "(setq user-full-name \"Alice Doe\")\n"
  522. "(setq user-mail-address \"alice@@mail.org\")\n"
  523. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  524. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  525. msgstr ""
  526. #. type: Plain text
  527. #: guix-git/doc/contributing.texi:313
  528. msgid "To insert a copyright at the current line invoke @code{M-x guix-copyright}."
  529. msgstr ""
  530. #. type: Plain text
  531. #: guix-git/doc/contributing.texi:315
  532. msgid "To update a copyright you need to specify a @code{copyright-names-regexp}."
  533. msgstr ""
  534. #. type: lisp
  535. #: guix-git/doc/contributing.texi:319
  536. #, no-wrap
  537. msgid ""
  538. "(setq copyright-names-regexp\n"
  539. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  540. msgstr ""
  541. #. type: Plain text
  542. #: guix-git/doc/contributing.texi:325
  543. msgid "You can check if your copyright is up to date by evaluating @code{M-x copyright-update}. If you want to do it automatically after each buffer save then add @code{(add-hook 'after-save-hook 'copyright-update)} in Emacs."
  544. msgstr ""
  545. #. type: cindex
  546. #: guix-git/doc/contributing.texi:329
  547. #, no-wrap
  548. msgid "packages, creating"
  549. msgstr "软件包, 创建"
  550. #. type: Plain text
  551. #: guix-git/doc/contributing.texi:333
  552. msgid "The GNU distribution is nascent and may well lack some of your favorite packages. This section describes how you can help make the distribution grow."
  553. msgstr "这个GNU发行版正在开发的早期阶段,可能缺少一些你喜欢的软件。这个章节介绍你可以怎样帮助这个发行版成长。"
  554. #. type: Plain text
  555. #: guix-git/doc/contributing.texi:341
  556. msgid "Free software packages are usually distributed in the form of @dfn{source code tarballs}---typically @file{tar.gz} files that contain all the source files. Adding a package to the distribution means essentially two things: adding a @dfn{recipe} that describes how to build the package, including a list of other packages required to build it, and adding @dfn{package metadata} along with that recipe, such as a description and licensing information."
  557. msgstr "自由软件通常以@dfn{源代码包}的形式分发,通常是包含完整代码的@file{tar.gz}包。添加软件包到这个发行版意味着两件事:添加描述如何构建包的@dfn{配方}和一系列依赖软件,以及添加配方之外的@dfn{软件包元数据},如一段文字描述和证书信息。"
  558. #. type: Plain text
  559. #: guix-git/doc/contributing.texi:350
  560. msgid "In Guix all this information is embodied in @dfn{package definitions}. Package definitions provide a high-level view of the package. They are written using the syntax of the Scheme programming language; in fact, for each package we define a variable bound to the package definition, and export that variable from a module (@pxref{Package Modules}). However, in-depth Scheme knowledge is @emph{not} a prerequisite for creating packages. For more information on package definitions, @pxref{Defining Packages}."
  561. msgstr "在Guix里所有这些信息都包含在@dfn{软件包定义}里。软件包定义提供了软件包的高层视角。它们使用Scheme编程语言编写,事实上,对每个软件包我们都定义一个绑定到软件包定义的的变量,并且从模块(@pxref{Package Modules})中导出那个变量。然而,深入的Scheme知识@emph{不}是创建软件包的前提条件。若要了解软件包的更多信息,@pxref{Defining Packages}。"
  562. #. type: Plain text
  563. #: guix-git/doc/contributing.texi:356
  564. msgid "Once a package definition is in place, stored in a file in the Guix source tree, it can be tested using the @command{guix build} command (@pxref{Invoking guix build}). For example, assuming the new package is called @code{gnew}, you may run this command from the Guix build tree (@pxref{Running Guix Before It Is Installed}):"
  565. msgstr "一旦软件包定义准备好了,并且包存在Guix代码树的一个文件里,你可以用@command{guix build} (@pxref{Invoking guix build})命令测试它。假设这个新软件包的名字叫做@code{gnew},你可以在Guix构建树里运行这个命令(@pxref{Running Guix Before It Is Installed}):"
  566. #. type: example
  567. #: guix-git/doc/contributing.texi:359
  568. #, no-wrap
  569. msgid "./pre-inst-env guix build gnew --keep-failed\n"
  570. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  571. #. type: Plain text
  572. #: guix-git/doc/contributing.texi:365
  573. msgid "Using @code{--keep-failed} makes it easier to debug build failures since it provides access to the failed build tree. Another useful command-line option when debugging is @code{--log-file}, to access the build log."
  574. msgstr "使用@code{--keep-failed}参数会保留失败的构建树,这可以使调试构建错误更容易。@code{--log-file}也是一个调试时很有用的参数,它可以用来访问构建日志。"
  575. #. type: Plain text
  576. #: guix-git/doc/contributing.texi:370
  577. msgid "If the package is unknown to the @command{guix} command, it may be that the source file contains a syntax error, or lacks a @code{define-public} clause to export the package variable. To figure it out, you may load the module from Guile to get more information about the actual error:"
  578. msgstr "如果@command{guix}命令找不到这个软件包,那可能是因为源文件包含语法错误,或者缺少导出软件包的@code{define-public}语句。为了查找错误,你可以用Guile导入这个模块以了解这个错误的详情:"
  579. #. type: example
  580. #: guix-git/doc/contributing.texi:373
  581. #, no-wrap
  582. msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  583. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  584. #. type: Plain text
  585. #: guix-git/doc/contributing.texi:380
  586. #, fuzzy
  587. msgid "Once your package builds correctly, please send us a patch (@pxref{Submitting Patches}). Well, if you need help, we will be happy to help you too. Once the patch is committed in the Guix repository, the new package automatically gets built on the supported platforms by @url{https://@value{SUBSTITUTE-SERVER-1}, our continuous integration system}."
  588. msgstr "一旦你的软件包可以正确构建,请给我们发送补丁(@pxref{Submitting Patches})。当然,如果你需要帮助,我们也会很乐意帮助你。一旦补丁被提交到 Guix 仓库里,这个新的软件包会被自动地在支持的平台上构建 @url{@value{SUBSTITUTE-URL}, our continuous integration system}。"
  589. #. type: cindex
  590. #: guix-git/doc/contributing.texi:381
  591. #, no-wrap
  592. msgid "substituter"
  593. msgstr "substitutes"
  594. #. type: Plain text
  595. #: guix-git/doc/contributing.texi:388
  596. #, fuzzy
  597. #| msgid "Users can obtain the new package definition simply by running @command{guix pull} (@pxref{Invoking guix pull}). When @code{@value{SUBSTITUTE-SERVER}} is done building the package, installing the package automatically downloads binaries from there (@pxref{Substitutes}). The only place where human intervention is needed is to review and apply the patch."
  598. msgid "Users can obtain the new package definition simply by running @command{guix pull} (@pxref{Invoking guix pull}). When @code{@value{SUBSTITUTE-SERVER-1}} is done building the package, installing the package automatically downloads binaries from there (@pxref{Substitutes}). The only place where human intervention is needed is to review and apply the patch."
  599. msgstr "用户可以通过运行@command{guix pull}命令获取最新的软件包定义(@pxref{Invoking guix pull})。当@code{@value{SUBSTITUTE-SERVER}}构建好这些软件包之后,安装这些软件包时会自动从服务器(@pxref{Substitutes})上下载构建好的二进制包。唯一需要人工干预的地方是评审和应用代码补丁。"
  600. #. type: subsection
  601. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:404
  602. #: guix-git/doc/contributing.texi:405
  603. #, no-wrap
  604. msgid "Software Freedom"
  605. msgstr "软件自由"
  606. #. type: menuentry
  607. #: guix-git/doc/contributing.texi:402
  608. msgid "What may go into the distribution."
  609. msgstr "什么可以进入这个发行版。"
  610. #. type: subsection
  611. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:432
  612. #: guix-git/doc/contributing.texi:433
  613. #, no-wrap
  614. msgid "Package Naming"
  615. msgstr "软件包命名"
  616. #. type: menuentry
  617. #: guix-git/doc/contributing.texi:402
  618. msgid "What's in a name?"
  619. msgstr "名字里包含什么?"
  620. #. type: subsection
  621. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:465
  622. #: guix-git/doc/contributing.texi:466
  623. #, no-wrap
  624. msgid "Version Numbers"
  625. msgstr "版本号"
  626. #. type: menuentry
  627. #: guix-git/doc/contributing.texi:402
  628. msgid "When the name is not enough."
  629. msgstr "当名字不够时。"
  630. #. type: subsection
  631. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:572
  632. #: guix-git/doc/contributing.texi:573
  633. #, no-wrap
  634. msgid "Synopses and Descriptions"
  635. msgstr "简介和描述"
  636. #. type: menuentry
  637. #: guix-git/doc/contributing.texi:402
  638. msgid "Helping users find the right package."
  639. msgstr "帮助用户寻找合适的软件包。"
  640. #. type: subsection
  641. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:651
  642. #: guix-git/doc/contributing.texi:652
  643. #, no-wrap
  644. msgid "Snippets versus Phases"
  645. msgstr ""
  646. #. type: menuentry
  647. #: guix-git/doc/contributing.texi:402
  648. msgid "Whether to use a snippet, or a build phase."
  649. msgstr ""
  650. #. type: subsection
  651. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:666
  652. #: guix-git/doc/contributing.texi:667 guix-git/doc/guix.texi:1961
  653. #, no-wrap
  654. msgid "Emacs Packages"
  655. msgstr ""
  656. #. type: menuentry
  657. #: guix-git/doc/contributing.texi:402
  658. msgid "Your Elisp fix."
  659. msgstr ""
  660. #. type: subsection
  661. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:706
  662. #: guix-git/doc/contributing.texi:707
  663. #, no-wrap
  664. msgid "Python Modules"
  665. msgstr "Python模块"
  666. #. type: menuentry
  667. #: guix-git/doc/contributing.texi:402
  668. msgid "A touch of British comedy."
  669. msgstr "接触英式的喜剧。"
  670. #. type: subsection
  671. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:782
  672. #: guix-git/doc/contributing.texi:783
  673. #, no-wrap
  674. msgid "Perl Modules"
  675. msgstr "Perl模块"
  676. #. type: menuentry
  677. #: guix-git/doc/contributing.texi:402
  678. msgid "Little pearls."
  679. msgstr "小珍珠。"
  680. #. type: subsection
  681. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:798
  682. #: guix-git/doc/contributing.texi:799
  683. #, no-wrap
  684. msgid "Java Packages"
  685. msgstr "Java包"
  686. #. type: menuentry
  687. #: guix-git/doc/contributing.texi:402
  688. msgid "Coffee break."
  689. msgstr "喝咖啡休息。"
  690. #. type: subsection
  691. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:818
  692. #: guix-git/doc/contributing.texi:819
  693. #, no-wrap
  694. msgid "Rust Crates"
  695. msgstr ""
  696. #. type: menuentry
  697. #: guix-git/doc/contributing.texi:402
  698. msgid "Beware of oxidation."
  699. msgstr "谨防氧化。"
  700. #. type: subsection
  701. #: guix-git/doc/contributing.texi:402 guix-git/doc/contributing.texi:852
  702. #: guix-git/doc/contributing.texi:853
  703. #, no-wrap
  704. msgid "Fonts"
  705. msgstr "字体"
  706. #. type: menuentry
  707. #: guix-git/doc/contributing.texi:402
  708. msgid "Fond of fonts."
  709. msgstr "字体的乐趣。"
  710. #. type: cindex
  711. #: guix-git/doc/contributing.texi:408
  712. #, no-wrap
  713. msgid "free software"
  714. msgstr "自由软件"
  715. #. type: Plain text
  716. #: guix-git/doc/contributing.texi:416
  717. msgid "The GNU operating system has been developed so that users can have freedom in their computing. GNU is @dfn{free software}, meaning that users have the @url{https://www.gnu.org/philosophy/free-sw.html,four essential freedoms}: to run the program, to study and change the program in source code form, to redistribute exact copies, and to distribute modified versions. Packages found in the GNU distribution provide only software that conveys these four freedoms."
  718. msgstr "开发 GNU 操作系统是为了用户拥有计算的自由。GNU是@dfn{自由软件},这意味着它有@url{https://www.gnu.org/philosophy/free-sw.html,四项重要的自由}:运行程序的自由,以源代码形式学习和修改程序的自由,原样重新分发副本的自由,和分发修改后的版本的自由。GNU 发行版里包含的软件包只提供遵守这四项自由的软件。"
  719. #. type: Plain text
  720. #: guix-git/doc/contributing.texi:422
  721. msgid "In addition, the GNU distribution follow the @url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,free software distribution guidelines}. Among other things, these guidelines reject non-free firmware, recommendations of non-free software, and discuss ways to deal with trademarks and patents."
  722. msgstr "此外,GNU 发行版遵循@url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,自由软件发行版准则}。这些准则拒绝非自由的固件和对非自由软件的推荐,并讨论解决商标和专利的方法。"
  723. #. type: Plain text
  724. #: guix-git/doc/contributing.texi:430
  725. msgid "Some otherwise free upstream package sources contain a small and optional subset that violates the above guidelines, for instance because this subset is itself non-free code. When that happens, the offending items are removed with appropriate patches or code snippets in the @code{origin} form of the package (@pxref{Defining Packages}). This way, @code{guix build --source} returns the ``freed'' source rather than the unmodified upstream source."
  726. msgstr "某些上游的软件包源代码包含一小部分违反上述准则的可选的子集,比如这个子集本身就是非自由代码。这时,这些讨厌的代码需要用合适的补丁或者软件包定义(@pxref{Defining Packages})里的@code{origin}里的代码片段移除。这样,@code{guix build --source}就可以返回自由的源代码而不是未经修改的上游源代码。"
  727. #. type: cindex
  728. #: guix-git/doc/contributing.texi:435
  729. #, no-wrap
  730. msgid "package name"
  731. msgstr "软件包名字"
  732. #. type: Plain text
  733. #: guix-git/doc/contributing.texi:443
  734. #, fuzzy
  735. msgid "A package actually has two names associated with it. First, there is the name of the @emph{Scheme variable}, the one following @code{define-public}. By this name, the package can be made known in the Scheme code, for instance as input to another package. Second, there is the string in the @code{name} field of a package definition. This name is used by package management commands such as @command{guix package} and @command{guix build}."
  736. msgstr "一个软件包事实上有两个名字:第一个是@emph{Scheme变量}的名字,即用@code{define-public}定义的名字。通过这个名字,软件包可以被Scheme代码找到,如用作其它软件包的输入。第二个名字是软件包定义里的@code{name}属性的字符串值。这个名字用于软件包管理命令,如:@command{guix package},@command{guix build}"
  737. #. type: Plain text
  738. #: guix-git/doc/contributing.texi:448
  739. msgid "Both are usually the same and correspond to the lowercase conversion of the project name chosen upstream, with underscores replaced with hyphens. For instance, GNUnet is available as @code{gnunet}, and SDL_net as @code{sdl-net}."
  740. msgstr "两个名字通常是相同的,常是上游项目名字转成小写字母并把下划线替换成连字符的结果。比如,GNUnet转成@code{gnunet},SDL_net转成@code{sdl-net}。"
  741. #. type: Plain text
  742. #: guix-git/doc/contributing.texi:456
  743. msgid "A noteworthy exception to this rule is when the project name is only a single character, or if an older maintained project with the same name already exists---regardless of whether it has already been packaged for Guix. Use common sense to make such names unambiguous and meaningful. For example, Guix's package for the shell called ``s'' upstream is @code{s-shell} and @emph{not} @code{s}. Feel free to ask your fellow hackers for inspiration."
  744. msgstr ""
  745. #. type: Plain text
  746. #: guix-git/doc/contributing.texi:461
  747. msgid "We do not add @code{lib} prefixes for library packages, unless these are already part of the official project name. But @pxref{Python Modules} and @ref{Perl Modules} for special rules concerning modules for the Python and Perl languages."
  748. msgstr "我们不给库软件包添加@code{lib}前缀,除非它是项目官方名字的一部分。但是@pxref{Python Modules}和@ref{Perl Modules}有关于Python和Perl语言的特殊规则。"
  749. #. type: Plain text
  750. #: guix-git/doc/contributing.texi:463
  751. msgid "Font package names are handled differently, @pxref{Fonts}."
  752. msgstr "字体软件包的名字处理起来不同,@pxref{Fonts}."
  753. #. type: cindex
  754. #: guix-git/doc/contributing.texi:468
  755. #, no-wrap
  756. msgid "package version"
  757. msgstr "软件包版本"
  758. #. type: Plain text
  759. #: guix-git/doc/contributing.texi:477
  760. msgid "We usually package only the latest version of a given free software project. But sometimes, for instance for incompatible library versions, two (or more) versions of the same package are needed. These require different Scheme variable names. We use the name as defined in @ref{Package Naming} for the most recent version; previous versions use the same name, suffixed by @code{-} and the smallest prefix of the version number that may distinguish the two versions."
  761. msgstr "我们通常只为每个自由软件的最新版本打包。但是有时候,比如对于版本不兼容的库,需要有同一个软件包的两个或更多版本。它们需要使用不同的Scheme变量名。我们为最新的版本使用@ref{Package Naming}里规定的名字,旧的版本使用加上后缀的名字,后缀是@code{-}和可以区分开版本号的版本号的最小前缀。"
  762. #. type: Plain text
  763. #: guix-git/doc/contributing.texi:480
  764. msgid "The name inside the package definition is the same for all versions of a package and does not contain any version number."
  765. msgstr "软件包定义里的名字对于同一个软件包的所有版本都是相同的,并且不含有版本号。"
  766. #. type: Plain text
  767. #: guix-git/doc/contributing.texi:482
  768. msgid "For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:"
  769. msgstr "例如,GTK+的2.24.20和3.9.12两个版本可以这样打包:"
  770. #. type: lisp
  771. #: guix-git/doc/contributing.texi:494
  772. #, no-wrap
  773. msgid ""
  774. "(define-public gtk+\n"
  775. " (package\n"
  776. " (name \"gtk+\")\n"
  777. " (version \"3.9.12\")\n"
  778. " ...))\n"
  779. "(define-public gtk+-2\n"
  780. " (package\n"
  781. " (name \"gtk+\")\n"
  782. " (version \"2.24.20\")\n"
  783. " ...))\n"
  784. msgstr ""
  785. "(define-public gtk+\n"
  786. " (package\n"
  787. " (name \"gtk+\")\n"
  788. " (version \"3.9.12\")\n"
  789. " ...))\n"
  790. "(define-public gtk+-2\n"
  791. " (package\n"
  792. " (name \"gtk+\")\n"
  793. " (version \"2.24.20\")\n"
  794. " ...))\n"
  795. #. type: Plain text
  796. #: guix-git/doc/contributing.texi:496
  797. msgid "If we also wanted GTK+ 3.8.2, this would be packaged as"
  798. msgstr "如果我们还需要GTK+ 3.8.2,就这样打包"
  799. #. type: lisp
  800. #: guix-git/doc/contributing.texi:502
  801. #, no-wrap
  802. msgid ""
  803. "(define-public gtk+-3.8\n"
  804. " (package\n"
  805. " (name \"gtk+\")\n"
  806. " (version \"3.8.2\")\n"
  807. " ...))\n"
  808. msgstr ""
  809. "(define-public gtk+-3.8\n"
  810. " (package\n"
  811. " (name \"gtk+\")\n"
  812. " (version \"3.8.2\")\n"
  813. " ...))\n"
  814. #. type: cindex
  815. #: guix-git/doc/contributing.texi:506
  816. #, no-wrap
  817. msgid "version number, for VCS snapshots"
  818. msgstr "用于版本控制快照的版本号"
  819. #. type: Plain text
  820. #: guix-git/doc/contributing.texi:512
  821. msgid "Occasionally, we package snapshots of upstream's version control system (VCS) instead of formal releases. This should remain exceptional, because it is up to upstream developers to clarify what the stable release is. Yet, it is sometimes necessary. So, what should we put in the @code{version} field?"
  822. msgstr "有时候,我们为软件包上游的版本控制系统(VCS)的快照而不是正式发布版打包。这是特殊情况,因为决定哪个是稳定版的权力应该属于上游开发者。然而,有时候这是必须的。那么,我们该如何决定写在@code{version}里的版本号呢?"
  823. #. type: Plain text
  824. #: guix-git/doc/contributing.texi:520
  825. msgid "Clearly, we need to make the commit identifier of the VCS snapshot visible in the version string, but we also need to make sure that the version string is monotonically increasing so that @command{guix package --upgrade} can determine which version is newer. Since commit identifiers, notably with Git, are not monotonically increasing, we add a revision number that we increase each time we upgrade to a newer snapshot. The resulting version string looks like this:"
  826. msgstr "显然,我们需要让VCS快照的commit ID在版本号中体现出来,但是我们也需要确保版本号单调递增,以便@command{guix package --upgrade}决定哪个版本号更新。由于commit ID,尤其是Git的commit ID,不是单调递增的,我们添加一个每次升级快照时都手动增长的revision数字。最后的版本号字符串看起来是这样:"
  827. #. type: example
  828. #: guix-git/doc/contributing.texi:529
  829. #, no-wrap
  830. msgid ""
  831. "2.0.11-3.cabba9e\n"
  832. " ^ ^ ^\n"
  833. " | | `-- upstream commit ID\n"
  834. " | |\n"
  835. " | `--- Guix package revision\n"
  836. " |\n"
  837. "latest upstream version\n"
  838. msgstr ""
  839. "2.0.11-3.cabba9e\n"
  840. " ^ ^ ^\n"
  841. " | | `-- 上游的commit ID\n"
  842. " | |\n"
  843. " | `--- Guix软件包的revision\n"
  844. " |\n"
  845. "最新的上游版本号\n"
  846. #. type: Plain text
  847. #: guix-git/doc/contributing.texi:539
  848. #, fuzzy
  849. msgid "It is a good idea to strip commit identifiers in the @code{version} field to, say, 7 digits. It avoids an aesthetic annoyance (assuming aesthetics have a role to play here) as well as problems related to OS limits such as the maximum shebang length (127 bytes for the Linux kernel). There are helper functions for doing this for packages using @code{git-fetch} or @code{hg-fetch} (see below). It is best to use the full commit identifiers in @code{origin}s, though, to avoid ambiguities. A typical package definition may look like this:"
  850. msgstr "把@code{版本号}里的commit ID截短,比如只取7个数字,是一个好主意。它避免了美学上的烦恼(假设美学在这里很重要),以及操作系统限制引起的问题(比如Linux内核的127字节)。尽管如此,在@code{origin}里最好使用完整的commit ID,以避免混淆。"
  851. #. type: lisp
  852. #: guix-git/doc/contributing.texi:556
  853. #, no-wrap
  854. msgid ""
  855. "(define my-package\n"
  856. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  857. " (revision \"1\")) ;Guix package revision\n"
  858. " (package\n"
  859. " (version (git-version \"0.9\" revision commit))\n"
  860. " (source (origin\n"
  861. " (method git-fetch)\n"
  862. " (uri (git-reference\n"
  863. " (url \"git://example.org/my-package.git\")\n"
  864. " (commit commit)))\n"
  865. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  866. " (file-name (git-file-name name version))))\n"
  867. " ;; @dots{}\n"
  868. " )))\n"
  869. msgstr ""
  870. "(define my-package\n"
  871. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  872. " (revision \"1\")) ;Guix软件包的revision\n"
  873. " (package\n"
  874. " (version (git-version \"0.9\" revision commit))\n"
  875. " (source (origin\n"
  876. " (method git-fetch)\n"
  877. " (uri (git-reference\n"
  878. " (url \"git://example.org/my-package.git\")\n"
  879. " (commit commit)))\n"
  880. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  881. " (file-name (git-file-name name version))))\n"
  882. " ;; @dots{}\n"
  883. " )))\n"
  884. #. type: deffn
  885. #: guix-git/doc/contributing.texi:558
  886. #, no-wrap
  887. msgid "{Scheme Procedure} git-version @var{VERSION} @var{REVISION} @var{COMMIT}"
  888. msgstr ""
  889. #. type: deffn
  890. #: guix-git/doc/contributing.texi:560
  891. msgid "Return the version string for packages using @code{git-fetch}."
  892. msgstr ""
  893. #. type: lisp
  894. #: guix-git/doc/contributing.texi:564
  895. #, no-wrap
  896. msgid ""
  897. "(git-version \"0.2.3\" \"0\" \"93818c936ee7e2f1ba1b315578bde363a7d43d05\")\n"
  898. "@result{} \"0.2.3-0.93818c9\"\n"
  899. msgstr ""
  900. #. type: deffn
  901. #: guix-git/doc/contributing.texi:567
  902. #, no-wrap
  903. msgid "{Scheme Procedure} hg-version @var{VERSION} @var{REVISION} @var{CHANGESET}"
  904. msgstr ""
  905. #. type: deffn
  906. #: guix-git/doc/contributing.texi:570
  907. msgid "Return the version string for packages using @code{hg-fetch}. It works in the same way as @code{git-version}."
  908. msgstr ""
  909. #. type: cindex
  910. #: guix-git/doc/contributing.texi:575
  911. #, no-wrap
  912. msgid "package description"
  913. msgstr "软件包描述"
  914. #. type: cindex
  915. #: guix-git/doc/contributing.texi:576
  916. #, no-wrap
  917. msgid "package synopsis"
  918. msgstr "软件包简介"
  919. #. type: Plain text
  920. #: guix-git/doc/contributing.texi:583
  921. msgid "As we have seen before, each package in GNU@tie{}Guix includes a synopsis and a description (@pxref{Defining Packages}). Synopses and descriptions are important: They are what @command{guix package --search} searches, and a crucial piece of information to help users determine whether a given package suits their needs. Consequently, packagers should pay attention to what goes into them."
  922. msgstr "我们已经看到,GNU@tie{}Guix里的每个软件包都包含一个简介(synopsis)和一个描述(description)(@pxref{Defining Packages})。简介和描述很重要:它们是@command{guix package --search}搜索的信息,并且是帮助用户决定一个软件包是否符合自己需求的重要信息。因此,打包的人应该关注怎样写它们的内容。"
  923. #. type: Plain text
  924. #: guix-git/doc/contributing.texi:591
  925. msgid "Synopses must start with a capital letter and must not end with a period. They must not start with ``a'' or ``the'', which usually does not bring anything; for instance, prefer ``File-frobbing tool'' over ``A tool that frobs files''. The synopsis should say what the package is---e.g., ``Core GNU utilities (file, text, shell)''---or what it is used for---e.g., the synopsis for GNU@tie{}grep is ``Print lines matching a pattern''."
  926. msgstr "简介必须以大写字母开头,并且不能以句号结尾。它们不能以 ``a'' 或者 ``the'' 等没有意义的词开头。例如 ``File-frobbing tool'' 要比 ``A tool that frobs files'' 更好。简介需要说明软件包是什么--如 ``Core GNU utilities (file, text, shell)'',或者它的用途--如 GNU@tie{}grep 的简介是 ``Print lines matching a pattern''。"
  927. #. type: Plain text
  928. #: guix-git/doc/contributing.texi:601
  929. msgid "Keep in mind that the synopsis must be meaningful for a very wide audience. For example, ``Manipulate alignments in the SAM format'' might make sense for a seasoned bioinformatics researcher, but might be fairly unhelpful or even misleading to a non-specialized audience. It is a good idea to come up with a synopsis that gives an idea of the application domain of the package. In this example, this might give something like ``Manipulate nucleotide sequence alignments'', which hopefully gives the user a better idea of whether this is what they are looking for."
  930. msgstr "记住,简介必须能被广大的听众理解。例如,“以SAM格式修改对齐”可能对经验丰富的生物信息科研工作者来说能理解,但是对普通对听众则是无用的甚至是令人误解的。简介最好说明软件包应用的领域。在这个例子中,应该这样描述“修改核苷酸序列的对齐格式”,这会让用户更容易判断这是不是他们想要的。"
  931. #. type: Plain text
  932. #: guix-git/doc/contributing.texi:609
  933. msgid "Descriptions should take between five and ten lines. Use full sentences, and avoid using acronyms without first introducing them. Please avoid marketing phrases such as ``world-leading'', ``industrial-strength'', and ``next-generation'', and avoid superlatives like ``the most advanced''---they are not helpful to users looking for a package and may even sound suspicious. Instead, try to be factual, mentioning use cases and features."
  934. msgstr "描述应该在5至10句话之间。使用完整的句子,并且避免在未介绍的情况下使用缩写。请避免推广营销性对词汇,如“世界领先”,“行业最强”,“下一代”,并且避免高级的形容词,如“最先进的”--他们对用户寻找软件包是无用的,甚至是可疑的。相反的,尽量务实,提及用例和功能。"
  935. #. type: cindex
  936. #: guix-git/doc/contributing.texi:610
  937. #, no-wrap
  938. msgid "Texinfo markup, in package descriptions"
  939. msgstr "软件包描述里的Texinfo标记"
  940. #. type: Plain text
  941. #: guix-git/doc/contributing.texi:619
  942. msgid "Descriptions can include Texinfo markup, which is useful to introduce ornaments such as @code{@@code} or @code{@@dfn}, bullet lists, or hyperlinks (@pxref{Overview,,, texinfo, GNU Texinfo}). However you should be careful when using some characters for example @samp{@@} and curly braces which are the basic special characters in Texinfo (@pxref{Special Characters,,, texinfo, GNU Texinfo}). User interfaces such as @command{guix package --show} take care of rendering it appropriately."
  943. msgstr "描述可以含有Texinfo标记,这对格式化有帮助,如@code{@@code}、@code{@@dfn}、列表、超链接(@pxref{Overview,,, texinfo, GNU Texinfo})。但是,在使用某些字符时应该小心,如@samp{@@}和花括号是基本的Texinfo特殊字符(@pxref{Special Characters,,, texinfo, GNU Texinfo})。@command{guix package --show}之类的用户界面会解决渲染问题。"
  944. #. type: Plain text
  945. #: guix-git/doc/contributing.texi:625
  946. #, fuzzy
  947. msgid "Synopses and descriptions are translated by volunteers @uref{https://translate.fedoraproject.org/projects/guix/packages, at Weblate} so that as many users as possible can read them in their native language. User interfaces search them and display them in the language specified by the current locale."
  948. msgstr "简介和描述会由@uref{http://translationproject.org/domain/guix-packages.html, Translation Project}项目的志愿者翻译,从而使尽可能多的用户可以用母语阅读。用户界面用当前区域设置的语言搜索和展示这些信息。"
  949. #. type: Plain text
  950. #: guix-git/doc/contributing.texi:630
  951. msgid "To allow @command{xgettext} to extract them as translatable strings, synopses and descriptions @emph{must be literal strings}. This means that you cannot use @code{string-append} or @code{format} to construct these strings:"
  952. msgstr "为了让@command{xgettext}可以把它们提取成待翻译的字符串,简介和描述@emph{必须是文字字符串}。这意味着你不能使用@code{string-append}或@code{format}来合成字符串:"
  953. #. type: lisp
  954. #: guix-git/doc/contributing.texi:636
  955. #, no-wrap
  956. msgid ""
  957. "(package\n"
  958. " ;; @dots{}\n"
  959. " (synopsis \"This is translatable\")\n"
  960. " (description (string-append \"This is \" \"*not*\" \" translatable.\")))\n"
  961. msgstr ""
  962. "(package\n"
  963. " ;; @dots{}\n"
  964. " (synopsis \"这是可以翻译的\")\n"
  965. " (description (string-append \"这是\" \"*不可以*\" \"翻译的\")))\n"
  966. #. type: Plain text
  967. #: guix-git/doc/contributing.texi:644
  968. msgid "Translation is a lot of work so, as a packager, please pay even more attention to your synopses and descriptions as every change may entail additional work for translators. In order to help them, it is possible to make recommendations or instructions visible to them by inserting special comments like this (@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  969. msgstr "翻译是很繁重的工作,所以,作为打包者请更加注意你的简介和介绍,每一个改动都会增加翻译的工作量。为了帮助他们,你可以插入这类可以被他们看到的建议和指示(@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  970. #. type: lisp
  971. #: guix-git/doc/contributing.texi:649
  972. #, no-wrap
  973. msgid ""
  974. ";; TRANSLATORS: \"X11 resize-and-rotate\" should not be translated.\n"
  975. "(description \"ARandR is designed to provide a simple visual front end\n"
  976. "for the X11 resize-and-rotate (RandR) extension. @dots{}\")\n"
  977. msgstr ""
  978. ";; TRANSLATORS: \"X11 resize-and-rotate\"不需要翻译。\n"
  979. "(description \"ARandR为X11 resize-and-rotate (RandR)扩展提供简单的图形界面。@dots{}\")\n"
  980. #. type: cindex
  981. #: guix-git/doc/contributing.texi:654
  982. #, no-wrap
  983. msgid "snippets, when to use"
  984. msgstr ""
  985. #. type: Plain text
  986. #: guix-git/doc/contributing.texi:665
  987. msgid "The boundary between using an origin snippet versus a build phase to modify the sources of a package can be elusive. Origin snippets are typically used to remove unwanted files such as bundled libraries, nonfree sources, or to apply simple substitutions. The source derived from an origin should produce a source that can be used to build the package on any system that the upstream package supports (i.e., act as the corresponding source). In particular, origin snippets must not embed store items in the sources; such patching should rather be done using build phases. Refer to the @code{origin} record documentation for more information (@pxref{origin Reference})."
  988. msgstr ""
  989. #. type: cindex
  990. #: guix-git/doc/contributing.texi:669
  991. #, no-wrap
  992. msgid "emacs, packaging"
  993. msgstr ""
  994. #. type: cindex
  995. #: guix-git/doc/contributing.texi:670
  996. #, no-wrap
  997. msgid "elisp, packaging"
  998. msgstr ""
  999. #. type: Plain text
  1000. #: guix-git/doc/contributing.texi:682
  1001. msgid "Emacs packages should preferably use the Emacs build system (@pxref{emacs-build-system}), for uniformity and the benefits provided by its build phases, such as the auto-generation of the autoloads file and the byte compilation of the sources. Because there is no standardized way to run a test suite for Emacs packages, tests are disabled by default. When a test suite is available, it should be enabled by setting the @code{#:tests?} argument to @code{#true}. By default, the command to run the test is @command{make check}, but any command can be specified via the @code{#:test-command} argument. The @code{#:test-command} argument expects a list containing a command and its arguments, to be invoked during the @code{check} phase."
  1002. msgstr ""
  1003. #. type: Plain text
  1004. #: guix-git/doc/contributing.texi:687
  1005. msgid "The Elisp dependencies of Emacs packages are typically provided as @code{propagated-inputs} when required at run time. As for other packages, build or test dependencies should be specified as @code{native-inputs}."
  1006. msgstr ""
  1007. #. type: Plain text
  1008. #: guix-git/doc/contributing.texi:696
  1009. msgid "Emacs packages sometimes depend on resources directories that should be installed along the Elisp files. The @code{#:include} argument can be used for that purpose, by specifying a list of regexps to match. The best practice when using the @code{#:include} argument is to extend rather than override its default value (accessible via the @code{%default-include} variable). As an example, a yasnippet extension package typically include a @file{snippets} directory, which could be copied to the installation directory using:"
  1010. msgstr ""
  1011. #. type: lisp
  1012. #: guix-git/doc/contributing.texi:699
  1013. #, no-wrap
  1014. msgid "#:include (cons \"^snippets/\" %default-include))\n"
  1015. msgstr ""
  1016. #. type: Plain text
  1017. #: guix-git/doc/contributing.texi:705
  1018. msgid "When encountering problems, it is wise to check for the presence of the @code{Package-Requires} extension header in the package main source file, and whether any dependencies and their versions listed therein are satisfied."
  1019. msgstr ""
  1020. #. type: cindex
  1021. #: guix-git/doc/contributing.texi:709
  1022. #, no-wrap
  1023. msgid "python"
  1024. msgstr "python"
  1025. #. type: Plain text
  1026. #: guix-git/doc/contributing.texi:715
  1027. msgid "We currently package Python 2 and Python 3, under the Scheme variable names @code{python-2} and @code{python} as explained in @ref{Version Numbers}. To avoid confusion and naming clashes with other programming languages, it seems desirable that the name of a package for a Python module contains the word @code{python}."
  1028. msgstr "我们目前为Python 2和Python 3打包,如@ref{Version Numbers}的规则所述,它们的Scheme变量名分别是@code{python-2}和@code{python}。为了避免和其他编程语言的冲突,Python模块的软件包名字最好含有@code{python}。"
  1029. #. type: Plain text
  1030. #: guix-git/doc/contributing.texi:722
  1031. #, fuzzy
  1032. msgid "Some modules are compatible with only one version of Python, others with both. If the package Foo is compiled with Python 3, we name it @code{python-foo}. If it is compiled with Python 2, we name it @code{python2-foo}. Packages should be added when they are necessary; we don't add Python 2 variants of the package unless we are going to use them."
  1033. msgstr "某些模块仅和一个版本的Python兼容,其它的和两个版本都兼容。如果一个叫做Foo的软件包仅和Python 3兼容,我们把它命名为@code{python-foo};如果它仅和Python 2兼容,我们把它命名为@code{python2-foo}。如果它和两个版本都兼容,我们创建两个软件包,名字如前所述。"
  1034. #. type: Plain text
  1035. #: guix-git/doc/contributing.texi:728
  1036. msgid "If a project already contains the word @code{python}, we drop this; for instance, the module python-dateutil is packaged under the names @code{python-dateutil} and @code{python2-dateutil}. If the project name starts with @code{py} (e.g.@: @code{pytz}), we keep it and prefix it as described above."
  1037. msgstr "如果一个项目的名字已经含有@code{python}这个单词,我们把它丢掉;例如,python-dateutil模块打包后的名字是@code{python-dateutil}和@code{python2-dateutil}。如果项目的名字以@code{py}开头(如@: @code{pytz}),我们把它保留,并且添加上面所述的前缀。"
  1038. #. type: subsubsection
  1039. #: guix-git/doc/contributing.texi:729
  1040. #, no-wrap
  1041. msgid "Specifying Dependencies"
  1042. msgstr "指定依赖"
  1043. #. type: cindex
  1044. #: guix-git/doc/contributing.texi:730
  1045. #, no-wrap
  1046. msgid "inputs, for Python packages"
  1047. msgstr "Python软件包的输入"
  1048. #. type: Plain text
  1049. #: guix-git/doc/contributing.texi:735
  1050. msgid "Dependency information for Python packages is usually available in the package source tree, with varying degrees of accuracy: in the @file{setup.py} file, in @file{requirements.txt}, or in @file{tox.ini}."
  1051. msgstr "Python软件包的依赖信息通常在包的源代码树里,各种文件有不同的精确度:@file{setup.py}文件,@file{requirements.txt}文件,@file{tox.ini}文件。"
  1052. #. type: Plain text
  1053. #: guix-git/doc/contributing.texi:741
  1054. msgid "Your mission, when writing a recipe for a Python package, is to map these dependencies to the appropriate type of ``input'' (@pxref{package Reference, inputs}). Although the @code{pypi} importer normally does a good job (@pxref{Invoking guix import}), you may want to check the following check list to determine which dependency goes where."
  1055. msgstr "你在写软件包配方时的任务是把这些依赖转换成相应的“输入”(@pxref{package Reference, inputs})。尽管@code{pypi}导入工具通常可以做得很好(@pxref{Invoking guix import}),你可能想检查下面这个清单,以决定每个依赖放在哪儿。"
  1056. #. type: itemize
  1057. #: guix-git/doc/contributing.texi:749
  1058. msgid "We currently package Python 2 with @code{setuptools} and @code{pip} installed like Python 3.4 has per default. Thus you don't need to specify either of these as an input. @command{guix lint} will warn you if you do."
  1059. msgstr "默认地,我们为Python 2打包时像Python 3一样安装了@code{setuptools}和@code{pip}。所以你不需要把它们两个指定为依赖,否则@command{guix lint}会警告你。"
  1060. #. type: itemize
  1061. #: guix-git/doc/contributing.texi:755
  1062. msgid "Python dependencies required at run time go into @code{propagated-inputs}. They are typically defined with the @code{install_requires} keyword in @file{setup.py}, or in the @file{requirements.txt} file."
  1063. msgstr "运行时需要的Python依赖要放进@code{propagated-inputs}。它们通常由@file{setup.py}文件里的@code{install_requires}关键字或@file{requirements.txt}文件定义。"
  1064. #. type: itemize
  1065. #: guix-git/doc/contributing.texi:763
  1066. msgid "Python packages required only at build time---e.g., those listed with the @code{setup_requires} keyword in @file{setup.py}---or only for testing---e.g., those in @code{tests_require}---go into @code{native-inputs}. The rationale is that (1) they do not need to be propagated because they are not needed at run time, and (2) in a cross-compilation context, it's the ``native'' input that we'd want."
  1067. msgstr "仅在构建时依赖的Python包--如,@file{setup.py}里的@code{setup_requires}关键字列举的包--或仅在测试时依赖的包--如,@code{tests_require}里的包--要放进@code{native-inputs}。因为,(1)在运行时不需要它们,因此不需要propagate,并且(2)在交叉编译时,它们属于“native”输入。"
  1068. #. type: itemize
  1069. #: guix-git/doc/contributing.texi:767
  1070. msgid "Examples are the @code{pytest}, @code{mock}, and @code{nose} test frameworks. Of course if any of these packages is also required at run-time, it needs to go to @code{propagated-inputs}."
  1071. msgstr "例如@code{pytest},@code{mock},@code{nose}测试框架。当然,如果在运行时需要这里的任何一个包,它需要被加进@code{propagated-inputs}。"
  1072. #. type: itemize
  1073. #: guix-git/doc/contributing.texi:772
  1074. msgid "Anything that does not fall in the previous categories goes to @code{inputs}, for example programs or C libraries required for building Python packages containing C extensions."
  1075. msgstr "任何不属于上述类别的包都要被加进@code{inputs},如,构建含有C语言扩展的Python包所需的程序和C语言库。"
  1076. #. type: itemize
  1077. #: guix-git/doc/contributing.texi:778
  1078. msgid "If a Python package has optional dependencies (@code{extras_require}), it is up to you to decide whether to add them or not, based on their usefulness/overhead ratio (@pxref{Submitting Patches, @command{guix size}})."
  1079. msgstr "如果一个Python软件包由可选的依赖(@code{extras_require}),由你根据它们的性价比(用处/负担)决定是否添加它们(@pxref{Submitting Patches, @command{guix size}})。"
  1080. #. type: cindex
  1081. #: guix-git/doc/contributing.texi:785
  1082. #, no-wrap
  1083. msgid "perl"
  1084. msgstr "perl"
  1085. #. type: Plain text
  1086. #: guix-git/doc/contributing.texi:796
  1087. msgid "Perl programs standing for themselves are named as any other package, using the lowercase upstream name. For Perl packages containing a single class, we use the lowercase class name, replace all occurrences of @code{::} by dashes and prepend the prefix @code{perl-}. So the class @code{XML::Parser} becomes @code{perl-xml-parser}. Modules containing several classes keep their lowercase upstream name and are also prepended by @code{perl-}. Such modules tend to have the word @code{perl} somewhere in their name, which gets dropped in favor of the prefix. For instance, @code{libwww-perl} becomes @code{perl-libwww}."
  1088. msgstr "Perl程序和其它软件包的命名规则类似,用小写的上游名字命名。对于仅包含一个类的Perl包,我们使用小写的类名,把所有的@code{::}替换成破折号,并且添加@code{perl-}前缀。所以类@code{XML::Parser}变成@code{perl-xml-parser}。包含多个类的模块保留它们上游的名字,并且添加@code{perl-}前缀。这类模块的名字通常含有@code{perl},这个单词需要被删掉。例如,@code{libwww-perl}变成@code{perl-libwww}。"
  1089. #. type: cindex
  1090. #: guix-git/doc/contributing.texi:801
  1091. #, no-wrap
  1092. msgid "java"
  1093. msgstr "java"
  1094. #. type: Plain text
  1095. #: guix-git/doc/contributing.texi:804
  1096. msgid "Java programs standing for themselves are named as any other package, using the lowercase upstream name."
  1097. msgstr "Java程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1098. #. type: Plain text
  1099. #: guix-git/doc/contributing.texi:810
  1100. msgid "To avoid confusion and naming clashes with other programming languages, it is desirable that the name of a package for a Java package is prefixed with @code{java-}. If a project already contains the word @code{java}, we drop this; for instance, the package @code{ngsjava} is packaged under the name @code{java-ngs}."
  1101. msgstr "为了避免和其它编程语言混淆和命名冲突,Java软件包的名字最好有@code{java-}前缀。如果一个项目的名字已经含有@code{java},我们把它删掉;例如,@code{ngsjava}打包后的名字是@code{java-ngs}。"
  1102. #. type: Plain text
  1103. #: guix-git/doc/contributing.texi:816
  1104. msgid "For Java packages containing a single class or a small class hierarchy, we use the lowercase class name, replace all occurrences of @code{.} by dashes and prepend the prefix @code{java-}. So the class @code{apache.commons.cli} becomes package @code{java-apache-commons-cli}."
  1105. msgstr "对于仅包含一个或很少几个类的Java软件包,我们使用小写的类名,把所有的@code{.}替换成破折号,并且添加@code{java-}前缀。因此,类@code{apache.commons.cli}打包后的名字是@code{java-apache-commons-cli}。"
  1106. #. type: cindex
  1107. #: guix-git/doc/contributing.texi:821
  1108. #, no-wrap
  1109. msgid "rust"
  1110. msgstr ""
  1111. #. type: Plain text
  1112. #: guix-git/doc/contributing.texi:824
  1113. msgid "Rust programs standing for themselves are named as any other package, using the lowercase upstream name."
  1114. msgstr "Rust 程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1115. #. type: Plain text
  1116. #: guix-git/doc/contributing.texi:828
  1117. msgid "To prevent namespace collisions we prefix all other Rust packages with the @code{rust-} prefix. The name should be changed to lowercase as appropriate and dashes should remain in place."
  1118. msgstr ""
  1119. #. type: Plain text
  1120. #: guix-git/doc/contributing.texi:834
  1121. msgid "In the rust ecosystem it is common for multiple incompatible versions of a package to be used at any given time, so all package definitions should have a versioned suffix. The versioned suffix is the left-most non-zero digit (and any leading zeros, of course). This follows the ``caret'' version scheme intended by Cargo. Examples@: @code{rust-clap-2}, @code{rust-rand-0.6}."
  1122. msgstr ""
  1123. #. type: Plain text
  1124. #: guix-git/doc/contributing.texi:844
  1125. msgid "Because of the difficulty in reusing rust packages as pre-compiled inputs for other packages the Cargo build system (@pxref{Build Systems, @code{cargo-build-system}}) presents the @code{#:cargo-inputs} and @code{cargo-development-inputs} keywords as build system arguments. It would be helpful to think of these as similar to @code{propagated-inputs} and @code{native-inputs}. Rust @code{dependencies} and @code{build-dependencies} should go in @code{#:cargo-inputs}, and @code{dev-dependencies} should go in @code{#:cargo-development-inputs}. If a Rust package links to other libraries then the standard placement in @code{inputs} and the like should be used."
  1126. msgstr ""
  1127. #. type: Plain text
  1128. #: guix-git/doc/contributing.texi:850
  1129. msgid "Care should be taken to ensure the correct version of dependencies are used; to this end we try to refrain from skipping the tests or using @code{#:skip-build?} when possible. Of course this is not always possible, as the package may be developed for a different Operating System, depend on features from the Nightly Rust compiler, or the test suite may have atrophied since it was released."
  1130. msgstr ""
  1131. #. type: cindex
  1132. #: guix-git/doc/contributing.texi:855 guix-git/doc/guix.texi:1896
  1133. #, no-wrap
  1134. msgid "fonts"
  1135. msgstr "字体"
  1136. #. type: Plain text
  1137. #: guix-git/doc/contributing.texi:861
  1138. msgid "For fonts that are in general not installed by a user for typesetting purposes, or that are distributed as part of a larger software package, we rely on the general packaging rules for software; for instance, this applies to the fonts delivered as part of the X.Org system or fonts that are part of TeX Live."
  1139. msgstr "对于通常不会被用户安装用于排版的字体,或者随更大的软件包分发的字体,我们使用通常的命名规则。例如,这适用于X.Org系统附带的字体或TeX Live附带的字体。"
  1140. #. type: Plain text
  1141. #: guix-git/doc/contributing.texi:865
  1142. msgid "To make it easier for a user to search for fonts, names for other packages containing only fonts are constructed as follows, independently of the upstream package name."
  1143. msgstr "为了让用户更容易搜索字体,其它仅含有字体的软件包按以下规则命名,不管上游的包名是什么。"
  1144. #. type: Plain text
  1145. #: guix-git/doc/contributing.texi:873
  1146. msgid "The name of a package containing only one font family starts with @code{font-}; it is followed by the foundry name and a dash @code{-} if the foundry is known, and the font family name, in which spaces are replaced by dashes (and as usual, all upper case letters are transformed to lower case). For example, the Gentium font family by SIL is packaged under the name @code{font-sil-gentium}."
  1147. msgstr "仅含有一个字体家族的软件包需要以@code{font-}开头;如果作者名字已知,则添加作者名字和@code{-},接着是字体家族名字(把空格替换成破折号),(和通常一样,把所有的大写字母转换成小写字母)。例如,由SIL设计的Gentium字体家族打包后的名字是@code{font-sil-gentium}。"
  1148. #. type: Plain text
  1149. #: guix-git/doc/contributing.texi:882
  1150. msgid "For a package containing several font families, the name of the collection is used in the place of the font family name. For instance, the Liberation fonts consist of three families, Liberation Sans, Liberation Serif and Liberation Mono. These could be packaged separately under the names @code{font-liberation-sans} and so on; but as they are distributed together under a common name, we prefer to package them together as @code{font-liberation}."
  1151. msgstr "对于一个含有多个字体家族的软件包,用集合的名字替换字体家族的名字。例如,Liberation字体含有三个家族,Liberation Sans、Liberation Serif和Liberation Mono。它们可以用@code{font-liberation-sans}等名字分开打包;但是由于它们以一个共同的名字分发,我们倾向于以@code{font-liberation}名字统一打包。"
  1152. #. type: Plain text
  1153. #: guix-git/doc/contributing.texi:888
  1154. msgid "In the case where several formats of the same font family or font collection are packaged separately, a short form of the format, prepended by a dash, is added to the package name. We use @code{-ttf} for TrueType fonts, @code{-otf} for OpenType fonts and @code{-type1} for PostScript Type 1 fonts."
  1155. msgstr "当同一个字体家族或字体集合的不同格式分开打包时,把破折号和格式(缩写)添加在软件包名字后面。我们用@code{-ttf}代表TrueType字体,@code{-otf}代表OpenType字体,@code{-type1}代表PostScript Type 1字体。"
  1156. #. type: Plain text
  1157. #: guix-git/doc/contributing.texi:896
  1158. msgid "In general our code follows the GNU Coding Standards (@pxref{Top,,, standards, GNU Coding Standards}). However, they do not say much about Scheme, so here are some additional rules."
  1159. msgstr "总的来说,我们的代码遵循GNU代码规范(@pxref{Top,,, standards, GNU代码规范})。但是,这个规范对Scheme的介绍不多,所以这儿提供一些额外的规则。"
  1160. #. type: subsection
  1161. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:904
  1162. #: guix-git/doc/contributing.texi:905
  1163. #, no-wrap
  1164. msgid "Programming Paradigm"
  1165. msgstr "编程范例"
  1166. #. type: menuentry
  1167. #: guix-git/doc/contributing.texi:902
  1168. msgid "How to compose your elements."
  1169. msgstr "怎样合成元素。"
  1170. #. type: subsection
  1171. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:911
  1172. #: guix-git/doc/contributing.texi:912
  1173. #, no-wrap
  1174. msgid "Modules"
  1175. msgstr "模块"
  1176. #. type: menuentry
  1177. #: guix-git/doc/contributing.texi:902
  1178. msgid "Where to store your code?"
  1179. msgstr "在哪里保存代码?"
  1180. #. type: subsection
  1181. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:922
  1182. #: guix-git/doc/contributing.texi:923
  1183. #, no-wrap
  1184. msgid "Data Types and Pattern Matching"
  1185. msgstr "数据类型和模式匹配"
  1186. #. type: menuentry
  1187. #: guix-git/doc/contributing.texi:902
  1188. msgid "Implementing data structures."
  1189. msgstr "实现数据结构。"
  1190. #. type: subsection
  1191. #: guix-git/doc/contributing.texi:902 guix-git/doc/contributing.texi:937
  1192. #: guix-git/doc/contributing.texi:938
  1193. #, no-wrap
  1194. msgid "Formatting Code"
  1195. msgstr "格式化代码"
  1196. #. type: menuentry
  1197. #: guix-git/doc/contributing.texi:902
  1198. msgid "Writing conventions."
  1199. msgstr "书写规范。"
  1200. #. type: Plain text
  1201. #: guix-git/doc/contributing.texi:910
  1202. msgid "Scheme code in Guix is written in a purely functional style. One exception is code that involves input/output, and procedures that implement low-level concepts, such as the @code{memoize} procedure."
  1203. msgstr "Guix里的Scheme代码是以纯函数的风格写的。一个例外是有关输入/输出的代码,和实现底层概念的过程,如@code{memoize}过程。"
  1204. #. type: Plain text
  1205. #: guix-git/doc/contributing.texi:918
  1206. msgid "Guile modules that are meant to be used on the builder side must live in the @code{(guix build @dots{})} name space. They must not refer to other Guix or GNU modules. However, it is OK for a ``host-side'' module to use a build-side module."
  1207. msgstr "用于构建的Guile模块必须放在@code{(guix build @dots{})}命名空间里。它们不允许引用其它Guix或GNU模块。但是,主机端(host-side)模块可以使用构建端(build-side)模块。"
  1208. #. type: Plain text
  1209. #: guix-git/doc/contributing.texi:921
  1210. msgid "Modules that deal with the broader GNU system should be in the @code{(gnu @dots{})} name space rather than @code{(guix @dots{})}."
  1211. msgstr "关于更广的GNU系统的模块应该在@code{(gnu @dots{})}命名空间里而不是@code{(guix @dots{})}。"
  1212. #. type: Plain text
  1213. #: guix-git/doc/contributing.texi:930
  1214. msgid "The tendency in classical Lisp is to use lists to represent everything, and then to browse them ``by hand'' using @code{car}, @code{cdr}, @code{cadr}, and co. There are several problems with that style, notably the fact that it is hard to read, error-prone, and a hindrance to proper type error reports."
  1215. msgstr "经典的Lisp倾向于用列表表示所有的东西,然后用@code{car},@code{cdr},@code{cadr}等手动浏览它们。这种风格有几个问题,特别是难以阅读,易出错,并且妨碍生成合适的类型错误报告。"
  1216. #. type: Plain text
  1217. #: guix-git/doc/contributing.texi:936
  1218. #, fuzzy
  1219. msgid "Guix code should define appropriate data types (for instance, using @code{define-record-type*}) rather than abuse lists. In addition, it should use pattern matching, via Guile’s @code{(ice-9 match)} module, especially when matching lists (@pxref{Pattern Matching,,, guile, GNU Guile Reference Manual})."
  1220. msgstr "Guix代码应该定义合适的数据类型(例如,用@code{define-record-type*})而不是滥用列表。而且,它应该利用Guile的@code{(ice-9 match)}模块使用模式匹配,特别是匹配列表的时候。"
  1221. #. type: cindex
  1222. #: guix-git/doc/contributing.texi:940
  1223. #, no-wrap
  1224. msgid "formatting code"
  1225. msgstr "格式化代码"
  1226. #. type: cindex
  1227. #: guix-git/doc/contributing.texi:941
  1228. #, no-wrap
  1229. msgid "coding style"
  1230. msgstr "代码风格"
  1231. #. type: Plain text
  1232. #: guix-git/doc/contributing.texi:948
  1233. #, fuzzy
  1234. msgid "When writing Scheme code, we follow common wisdom among Scheme programmers. In general, we follow the @url{https://mumble.net/~campbell/scheme/style.txt, Riastradh's Lisp Style Rules}. This document happens to describe the conventions mostly used in Guile’s code too. It is very thoughtful and well written, so please do read it."
  1235. msgstr "在写Scheme代码时,我们遵循Scheme程序员的通用智慧。通常,我们遵循@url{http://mumble.net/~campbell/scheme/style.txt, Riastradh的Lisp风格}。这个文档碰巧描述了在Guile代码里大量使用的惯例。它很周到,而且写的很好,所以务必阅读。"
  1236. #. type: Plain text
  1237. #: guix-git/doc/contributing.texi:955
  1238. msgid "Some special forms introduced in Guix, such as the @code{substitute*} macro, have special indentation rules. These are defined in the @file{.dir-locals.el} file, which Emacs automatically uses. Also note that Emacs-Guix provides @code{guix-devel-mode} mode that indents and highlights Guix code properly (@pxref{Development,,, emacs-guix, The Emacs-Guix Reference Manual})."
  1239. msgstr "一些Guix添加的special form,如@code{substitute*}宏,有特殊的缩进规则。它们的规则在@file{.dir-locals.el}文件里定义,Emacs会自动使用。另外,Emacs-Guix提供的@code{guix-devel-mode}模式可以正确地缩进和高亮Guix代码(@pxref{Development,,, emacs-guix, Emacs-Guix参考手册})。"
  1240. #. type: cindex
  1241. #: guix-git/doc/contributing.texi:956
  1242. #, no-wrap
  1243. msgid "indentation, of code"
  1244. msgstr "代码缩进"
  1245. #. type: cindex
  1246. #: guix-git/doc/contributing.texi:957
  1247. #, no-wrap
  1248. msgid "formatting, of code"
  1249. msgstr "代码格式化"
  1250. #. type: Plain text
  1251. #: guix-git/doc/contributing.texi:960
  1252. msgid "If you do not use Emacs, please make sure to let your editor knows these rules. To automatically indent a package definition, you can also run:"
  1253. msgstr "如果你不使用Emacs,请确保让你的编辑器知道这些规则。为了自动地缩进软件包定义,你也可以运行:"
  1254. #. type: example
  1255. #: guix-git/doc/contributing.texi:963
  1256. #, no-wrap
  1257. msgid "./etc/indent-code.el gnu/packages/@var{file}.scm @var{package}\n"
  1258. msgstr "./etc/indent-code.el gnu/packages/@var{文件}.scm @var{软件包}\n"
  1259. #. type: Plain text
  1260. #: guix-git/doc/contributing.texi:969
  1261. msgid "This automatically indents the definition of @var{package} in @file{gnu/packages/@var{file}.scm} by running Emacs in batch mode. To indent a whole file, omit the second argument:"
  1262. msgstr "这会调用Emacs以批处理模式自动地缩进@file{gnu/packages/@var{文件}.scm}里@var{软件包}的定义。如果想缩进整个文件,省略第二个参数:"
  1263. #. type: example
  1264. #: guix-git/doc/contributing.texi:972
  1265. #, no-wrap
  1266. msgid "./etc/indent-code.el gnu/services/@var{file}.scm\n"
  1267. msgstr "./etc/indent-code.el gnu/services/@var{文件}.scm\n"
  1268. #. type: cindex
  1269. #: guix-git/doc/contributing.texi:974
  1270. #, no-wrap
  1271. msgid "Vim, Scheme code editing"
  1272. msgstr "Vim,编辑Scheme代码"
  1273. #. type: Plain text
  1274. #: guix-git/doc/contributing.texi:980
  1275. msgid "If you are editing code with Vim, we recommend that you run @code{:set autoindent} so that your code is automatically indented as you type. Additionally, @uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}} may help you deal with all these parentheses."
  1276. msgstr "如果你用Vim编辑代码,我们推荐你运行@code{:set autoindent},以使你在输入时自动缩进代码。另外,@uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}}可以帮你处理括号。"
  1277. #. type: Plain text
  1278. #: guix-git/doc/contributing.texi:984
  1279. msgid "We require all top-level procedures to carry a docstring. This requirement can be relaxed for simple private procedures in the @code{(guix build @dots{})} name space, though."
  1280. msgstr "我们要求所有的顶级过程附带一个docstring。这个要求对@code{(guix build @dots{})}命名空间里的简单的私有过程可以放宽。"
  1281. #. type: Plain text
  1282. #: guix-git/doc/contributing.texi:987
  1283. msgid "Procedures should not have more than four positional parameters. Use keyword parameters for procedures that take more than four parameters."
  1284. msgstr "过程不应该有多于四个定位参数。对于接收多于四个定位参数的过程应使用关键字参数。"
  1285. #. type: Plain text
  1286. #: guix-git/doc/contributing.texi:998
  1287. #, fuzzy
  1288. msgid "Development is done using the Git distributed version control system. Thus, access to the repository is not strictly necessary. We welcome contributions in the form of patches as produced by @code{git format-patch} sent to the @email{guix-patches@@gnu.org} mailing list. Seasoned Guix developers may also want to look at the section on commit access (@pxref{Commit Access})."
  1289. msgstr "开发是使用Git分布式版本控制系统完成的。因此,对仓库的访问权限不是必须的。我们欢迎以向@email{guix-patches@@gnu.org}邮件列表发送@code{git format-patch}补丁的方式共享代码。"
  1290. #. type: Plain text
  1291. #: guix-git/doc/contributing.texi:1005
  1292. #, fuzzy
  1293. msgid "This mailing list is backed by a Debbugs instance, which allows us to keep track of submissions (@pxref{Tracking Bugs and Patches}). Each message sent to that mailing list gets a new tracking number assigned; people can then follow up on the submission by sending email to @code{@var{NNN}@@debbugs.gnu.org}, where @var{NNN} is the tracking number (@pxref{Sending a Patch Series})."
  1294. msgstr "这个邮件列表的后端是一个Debbugs实例(可以从@uref{https://bugs.gnu.org/guix-patches}访问),它允许我们跟踪提交的bug。每个发送到那个邮件列表的消息都会被分配一个跟踪数字;之后人们可以通过向@code{@var{NNN}@@debbugs.gnu.org}发送邮件来跟进提交(@var{NNN}是跟踪数字,@pxref{Sending a Patch Series})。"
  1295. #. type: Plain text
  1296. #: guix-git/doc/contributing.texi:1009
  1297. msgid "Please write commit logs in the ChangeLog format (@pxref{Change Logs,,, standards, GNU Coding Standards}); you can check the commit history for examples."
  1298. msgstr "请以ChangeLog格式(@pxref{Change Logs,,, standards, GNU代码规范})写commit日志;你可以浏览commit历史里的例子。"
  1299. #. type: Plain text
  1300. #: guix-git/doc/contributing.texi:1012
  1301. msgid "Before submitting a patch that adds or modifies a package definition, please run through this check list:"
  1302. msgstr "提交添加或者修改软件包定义的补丁之前,请过一遍这个检查列表:"
  1303. #. type: enumerate
  1304. #: guix-git/doc/contributing.texi:1019
  1305. msgid "If the authors of the packaged software provide a cryptographic signature for the release tarball, make an effort to verify the authenticity of the archive. For a detached GPG signature file this would be done with the @code{gpg --verify} command."
  1306. msgstr "如果软件包的作者为发布的文件包提供了密码学签名,请验证文件的真实性。对于独立的 GPG 签名文件,这可以通过 @code{gpg --verify} 命令完成。"
  1307. #. type: enumerate
  1308. #: guix-git/doc/contributing.texi:1023
  1309. msgid "Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines."
  1310. msgstr "花些时间为软件包提供一个合适的简介和描述。更多指导,@xref{Synopses and Descriptions}。"
  1311. #. type: enumerate
  1312. #: guix-git/doc/contributing.texi:1028
  1313. msgid "Run @code{guix lint @var{package}}, where @var{package} is the name of the new or modified package, and fix any errors it reports (@pxref{Invoking guix lint})."
  1314. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1315. #. type: enumerate
  1316. #: guix-git/doc/contributing.texi:1032
  1317. msgid "Make sure the package builds on your platform, using @code{guix build @var{package}}."
  1318. msgstr "用@code{guix build @var{软件包}}命令确保这个软件包可以在你的平台上构建。"
  1319. #. type: enumerate
  1320. #: guix-git/doc/contributing.texi:1040
  1321. #, fuzzy
  1322. #| msgid "We recommend you also try building the package on other supported platforms. As you may not have access to actual hardware platforms, we recommend using the @code{qemu-binfmt-service-type} to emulate them. In order to enable it, add the following service to the list of services in your @code{operating-system} configuration:"
  1323. msgid "We recommend you also try building the package on other supported platforms. As you may not have access to actual hardware platforms, we recommend using the @code{qemu-binfmt-service-type} to emulate them. In order to enable it, add the @code{virtualization} service module and the following service to the list of services in your @code{operating-system} configuration:"
  1324. msgstr "我们建议你同时尝试在别的支持的平台上构建这个软件包。你可能没有别的平台的真实的硬件,我们推荐使用@code{qemu-binfmt-service-type}来模拟它们。为了启用这个功能,把下面这个服务添加到你的@code{操作系统}配置的服务列表里:"
  1325. #. type: lisp
  1326. #: guix-git/doc/contributing.texi:1045
  1327. #, fuzzy, no-wrap
  1328. msgid ""
  1329. "(service qemu-binfmt-service-type\n"
  1330. " (qemu-binfmt-configuration\n"
  1331. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  1332. msgstr ""
  1333. "(service qemu-binfmt-service-type\n"
  1334. " (qemu-binfmt-configuration\n"
  1335. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  1336. " (guix-support? #t)))\n"
  1337. #. type: enumerate
  1338. #: guix-git/doc/contributing.texi:1048
  1339. msgid "Then reconfigure your system."
  1340. msgstr "然后重新配置你的系统。"
  1341. #. type: enumerate
  1342. #: guix-git/doc/contributing.texi:1053
  1343. #, fuzzy
  1344. #| msgid "You can then build packages for different platforms by specifying the @code{--system} option. For example, to build the \"hello\" package for the armhf, aarch64, or mips64 architectures, you would run the following commands, respectively:"
  1345. msgid "You can then build packages for different platforms by specifying the @code{--system} option. For example, to build the \"hello\" package for the armhf or aarch64 architectures, you would run the following commands, respectively:"
  1346. msgstr "你之后可以用@code{--system}参数为不同的平台构建软件包。例如,为armhf,aarch64,或mips64架构构建\"hello\"软件包,你可以依次运行如下的命令:"
  1347. #. type: example
  1348. #: guix-git/doc/contributing.texi:1056
  1349. #, fuzzy, no-wrap
  1350. msgid ""
  1351. "guix build --system=armhf-linux --rounds=2 hello\n"
  1352. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1353. msgstr ""
  1354. "guix build --system=armhf-linux --rounds=2 hello\n"
  1355. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1356. "guix build --system=mips64el-linux --rounds=2 hello\n"
  1357. #. type: cindex
  1358. #: guix-git/doc/contributing.texi:1059
  1359. #, no-wrap
  1360. msgid "bundling"
  1361. msgstr "构建"
  1362. #. type: enumerate
  1363. #: guix-git/doc/contributing.texi:1062
  1364. msgid "Make sure the package does not use bundled copies of software already available as separate packages."
  1365. msgstr "请确保软件包里不捆绑出现已经被打过包的软件的副本。"
  1366. #. type: enumerate
  1367. #: guix-git/doc/contributing.texi:1071
  1368. msgid "Sometimes, packages include copies of the source code of their dependencies as a convenience for users. However, as a distribution, we want to make sure that such packages end up using the copy we already have in the distribution, if there is one. This improves resource usage (the dependency is built and stored only once), and allows the distribution to make transverse changes such as applying security updates for a given software package in a single place and have them affect the whole system---something that bundled copies prevent."
  1369. msgstr "有时,软件包为了方便用户,捆绑了依赖库的源代码。然而,当依赖库在发行版里已经存在时,做为一个发行版,我们希望确保这些软件包使用发行版里已有的副本。这提高资源使用率(依赖库只构建一次,存储一份),并且使发行版更容易管理,如仅在一个地方对某个软件包进行安全更新就可以影响整个系统--捆绑软件会妨碍这么做。"
  1370. #. type: enumerate
  1371. #: guix-git/doc/contributing.texi:1080
  1372. #, fuzzy
  1373. msgid "Take a look at the profile reported by @command{guix size} (@pxref{Invoking guix size}). This will allow you to notice references to other packages unwillingly retained. It may also help determine whether to split the package (@pxref{Packages with Multiple Outputs}), and which optional dependencies should be used. In particular, avoid adding @code{texlive} as a dependency: because of its extreme size, use the @code{texlive-tiny} package or @code{texlive-union} procedure instead."
  1374. msgstr "看一下@command{guix size}(@pxref{Invoking guix size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{有多个输出的软件包}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。"
  1375. #. type: enumerate
  1376. #: guix-git/doc/contributing.texi:1085
  1377. #, fuzzy
  1378. #| msgid "For important changes, check that dependent package (if applicable) are not affected by the change; @code{guix refresh --list-dependent @var{package}} will help you do that (@pxref{Invoking guix refresh})."
  1379. msgid "For important changes, check that dependent packages (if applicable) are not affected by the change; @code{guix refresh --list-dependent @var{package}} will help you do that (@pxref{Invoking guix refresh})."
  1380. msgstr "对于重要的更改,确保依赖它的软件包没有受到影响。@code{guix refresh --list-dependent @var{软件包}}会帮你检查(@pxref{Invoking guix refresh})。"
  1381. #. type: cindex
  1382. #: guix-git/doc/contributing.texi:1087
  1383. #, no-wrap
  1384. msgid "branching strategy"
  1385. msgstr "分支策略"
  1386. #. type: cindex
  1387. #: guix-git/doc/contributing.texi:1088
  1388. #, no-wrap
  1389. msgid "rebuild scheduling strategy"
  1390. msgstr "重新构建的调度策略"
  1391. #. type: enumerate
  1392. #: guix-git/doc/contributing.texi:1091
  1393. msgid "Depending on the number of dependent packages and thus the amount of rebuilding induced, commits go to different branches, along these lines:"
  1394. msgstr "取决于受影响的软件包的数量,即需要重新构建的数量,commit需要被提交到不同的分支,具体如下:"
  1395. #. type: item
  1396. #: guix-git/doc/contributing.texi:1093
  1397. #, no-wrap
  1398. msgid "300 dependent packages or less"
  1399. msgstr "300个或更少的受影响的软件包"
  1400. #. type: table
  1401. #: guix-git/doc/contributing.texi:1095
  1402. msgid "@code{master} branch (non-disruptive changes)."
  1403. msgstr "@code{master}分支(非破坏性的更改)。"
  1404. #. type: item
  1405. #: guix-git/doc/contributing.texi:1096
  1406. #, no-wrap
  1407. msgid "between 300 and 1,800 dependent packages"
  1408. msgstr "300 至 1800 个受影响的软件包"
  1409. #. type: table
  1410. #: guix-git/doc/contributing.texi:1102
  1411. #, fuzzy
  1412. msgid "@code{staging} branch (non-disruptive changes). This branch is intended to be merged in @code{master} every 6 weeks or so. Topical changes (e.g., an update of the GNOME stack) can instead go to a specific branch (say, @code{gnome-updates}). This branch is not expected to be buildable or usable until late in its development process."
  1413. msgstr "@code{staging}分支(非破坏性的更改)。这个分支每隔大约3周会被合并进@code{master}。对某个主题的更改(如对GNOME系列的更新)可以放进一个特定的分支(如@code{gnome-updates})。"
  1414. #. type: item
  1415. #: guix-git/doc/contributing.texi:1103
  1416. #, no-wrap
  1417. msgid "more than 1,800 dependent packages"
  1418. msgstr "超过 1800 个受影响的软件包"
  1419. #. type: table
  1420. #: guix-git/doc/contributing.texi:1108
  1421. #, fuzzy
  1422. msgid "@code{core-updates} branch (may include major and potentially disruptive changes). This branch is intended to be merged in @code{master} every 6 months or so. This branch is not expected to be buildable or usable until late in its development process."
  1423. msgstr "@code{core-updates}分支(可能含有重要的或破坏性的更改)。这个分支每隔大约2.5个月会被合并进@code{master}。"
  1424. #. type: enumerate
  1425. #: guix-git/doc/contributing.texi:1115
  1426. #, fuzzy
  1427. #| msgid "All these branches are @uref{@value{SUBSTITUTE-URL}, tracked by our build farm} and merged into @code{master} once everything has been successfully built. This allows us to fix issues before they hit users, and to reduce the window during which pre-built binaries are not available."
  1428. msgid "All these branches are @uref{https://@value{SUBSTITUTE-SERVER-1}, tracked by our build farm} and merged into @code{master} once everything has been successfully built. This allows us to fix issues before they hit users, and to reduce the window during which pre-built binaries are not available."
  1429. msgstr "所有这些分支都@uref{@value{SUBSTITUTE-URL}, 被构建农场跟踪},并且当一切都被顺利构建时合并进@code{master}。这使我们在影响到用户之前就能改正问题,并且缩小没有准备好预构建的二进制包的窗口期。"
  1430. #. type: enumerate
  1431. #: guix-git/doc/contributing.texi:1124
  1432. msgid "When we decide to start building the @code{staging} or @code{core-updates} branches, they will be forked and renamed with the suffix @code{-frozen}, at which time only bug fixes may be pushed to the frozen branches. The @code{core-updates} and @code{staging} branches will remain open to accept patches for the next cycle. Please ask on the mailing list or IRC if unsure where to place a patch."
  1433. msgstr ""
  1434. #. type: cindex
  1435. #: guix-git/doc/contributing.texi:1126
  1436. #, no-wrap
  1437. msgid "determinism, of build processes"
  1438. msgstr "构建过程的确定性"
  1439. #. type: cindex
  1440. #: guix-git/doc/contributing.texi:1127
  1441. #, no-wrap
  1442. msgid "reproducible builds, checking"
  1443. msgstr "检查可复现的构建"
  1444. #. type: enumerate
  1445. #: guix-git/doc/contributing.texi:1131
  1446. msgid "Check whether the package's build process is deterministic. This typically means checking whether an independent build of the package yields the exact same result that you obtained, bit for bit."
  1447. msgstr "检查软件包的构建过程是不是确定性的。这通常意味着检查对软件包的独立构建是否能得到每一个比特都完全相同的结果。"
  1448. #. type: enumerate
  1449. #: guix-git/doc/contributing.texi:1134
  1450. msgid "A simple way to do that is by building the same package several times in a row on your machine (@pxref{Invoking guix build}):"
  1451. msgstr "为此,一个简单的做法是在你的机器上多次构建同一个软件包(@pxref{Invoking guix build}):"
  1452. #. type: example
  1453. #: guix-git/doc/contributing.texi:1137
  1454. #, no-wrap
  1455. msgid "guix build --rounds=2 my-package\n"
  1456. msgstr "guix build --rounds=2 <我的软件包>\n"
  1457. #. type: enumerate
  1458. #: guix-git/doc/contributing.texi:1141
  1459. msgid "This is enough to catch a class of common non-determinism issues, such as timestamps or randomly-generated output in the build result."
  1460. msgstr "这足以查出一批普通的不确定性问题,如构建结果里存在时间戳或随机生成的输出。"
  1461. #. type: enumerate
  1462. #: guix-git/doc/contributing.texi:1151
  1463. #, fuzzy
  1464. #| msgid "Another option is to use @command{guix challenge} (@pxref{Invoking guix challenge}). You may run it once the package has been committed and built by @code{@value{SUBSTITUTE-SERVER}} to check whether it obtains the same result as you did. Better yet: Find another machine that can build it and run @command{guix publish}. Since the remote build machine is likely different from yours, this can catch non-determinism issues related to the hardware---e.g., use of different instruction set extensions---or to the operating system kernel---e.g., reliance on @code{uname} or @file{/proc} files."
  1465. msgid "Another option is to use @command{guix challenge} (@pxref{Invoking guix challenge}). You may run it once the package has been committed and built by @code{@value{SUBSTITUTE-SERVER-1}} to check whether it obtains the same result as you did. Better yet: Find another machine that can build it and run @command{guix publish}. Since the remote build machine is likely different from yours, this can catch non-determinism issues related to the hardware---e.g., use of different instruction set extensions---or to the operating system kernel---e.g., reliance on @code{uname} or @file{/proc} files."
  1466. msgstr "另一个选择是使用@command{guix challenge}(@pxref{Invoking guix challenge})。当软件包被提交并且被@code{@value{SUBSTITUTE-SERVER}}构建之后,你可以运行这个命令检查你是否得到相同的构建结果。更好的:找另一台可以构建的机器,运行@command{guix publish}。由于远程的构建机器很可能和你的机器不同,这可以捕捉到由硬件不同引起的不确定性问题--如,使用不同的指令集--或不同操作系统内核引起的问题--如,对@code{uname}或@file{/proc}文件的依赖。"
  1467. #. type: enumerate
  1468. #: guix-git/doc/contributing.texi:1157
  1469. msgid "When writing documentation, please use gender-neutral wording when referring to people, such as @uref{https://en.wikipedia.org/wiki/Singular_they, singular ``they''@comma{} ``their''@comma{} ``them''}, and so forth."
  1470. msgstr "在编写文档时,请用性别中立的词语指代人,如@uref{https://en.wikipedia.org/wiki/Singular_they, “他”@comma{} “他的”},等。"
  1471. #. type: enumerate
  1472. #: guix-git/doc/contributing.texi:1161
  1473. msgid "Verify that your patch contains only one set of related changes. Bundling unrelated changes together makes reviewing harder and slower."
  1474. msgstr "检查你的补丁只包含一些相关的更改。把不相关的更改捆绑在一起会让评审更困难和更慢。"
  1475. #. type: enumerate
  1476. #: guix-git/doc/contributing.texi:1164
  1477. msgid "Examples of unrelated changes include the addition of several packages, or a package update along with fixes to that package."
  1478. msgstr "不相关的更改的例子有:同时新增多个软件包,或更新软件包同时修补这个软件包。"
  1479. #. type: enumerate
  1480. #: guix-git/doc/contributing.texi:1169
  1481. msgid "Please follow our code formatting rules, possibly running the @command{etc/indent-code.el} script to do that automatically for you (@pxref{Formatting Code})."
  1482. msgstr "请遵守我们的代码格式规范,最好运行@command{etc/indent-code.el}脚本以自动为你格式化(@pxref{Formatting Code})。"
  1483. #. type: enumerate
  1484. #: guix-git/doc/contributing.texi:1177
  1485. msgid "When possible, use mirrors in the source URL (@pxref{Invoking guix download}). Use reliable URLs, not generated ones. For instance, GitHub archives are not necessarily identical from one generation to the next, so in this case it's often better to clone the repository. Don't use the @command{name} field in the URL: it is not very useful and if the name changes, the URL will probably be wrong."
  1486. msgstr "当可能时,请在源URL里使用镜像@pxref{Invoking guix download}。使用可靠的而不是生成的URL。例如,GitHub的下载文件每次生成时不一定是相同的,所以这时最好克隆仓库。不要在URL里使用@command{name}变量:这没有什么用,而且如果名字变了,URL很可能就错了。"
  1487. #. type: enumerate
  1488. #: guix-git/doc/contributing.texi:1181
  1489. msgid "Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols."
  1490. msgstr ""
  1491. #. type: enumerate
  1492. #: guix-git/doc/contributing.texi:1184
  1493. msgid "Make sure your changes do not break Guix and simulate a @code{guix pull} with:"
  1494. msgstr ""
  1495. #. type: example
  1496. #: guix-git/doc/contributing.texi:1186
  1497. #, no-wrap
  1498. msgid "guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master\n"
  1499. msgstr ""
  1500. #. type: Plain text
  1501. #: guix-git/doc/contributing.texi:1199
  1502. #, fuzzy
  1503. msgid "When posting a patch to the mailing list, use @samp{[PATCH] @dots{}} as a subject, if your patch is to be applied on a branch other than @code{master}, say @code{core-updates}, specify it in the subject like @samp{[PATCH core-updates] @dots{}}. You may use your email client or the @command{git send-email} command (@pxref{Sending a Patch Series}). We prefer to get patches in plain text messages, either inline or as MIME attachments. You are advised to pay attention if your email client changes anything like line breaks or indentation which could potentially break the patches."
  1504. msgstr "在提交补丁到邮件列表时,使用@samp{[PATCH] @dots{}}做为主题。你可以使用你的邮件客户端或者@command{git send-email}命令(@pxref{Sending a Patch Series})。我们倾向于接收纯文本的邮件,无论是在正文里还是在MIME附件里。建议你注意你的邮件客户端是否会自动修改换行或缩进,这可能会损坏补丁。"
  1505. #. type: Plain text
  1506. #: guix-git/doc/contributing.texi:1204
  1507. msgid "Expect some delay when you submit your very first patch to @email{guix-patches@@gnu.org}. You have to wait until you get an acknowledgement with the assigned tracking number. Future acknowledgements should not be delayed."
  1508. msgstr ""
  1509. #. type: Plain text
  1510. #: guix-git/doc/contributing.texi:1207
  1511. msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{NNN}-done@@debbugs.gnu.org}."
  1512. msgstr "当一个bug被修复时,请通过向@email{@var{NNN}-done@@debbugs.gnu.org}发邮件的方式关闭thread。"
  1513. #. type: anchor{#1}
  1514. #: guix-git/doc/contributing.texi:1208 guix-git/doc/contributing.texi:1210
  1515. #, no-wrap
  1516. msgid "Sending a Patch Series"
  1517. msgstr "发送补丁系列"
  1518. #. type: cindex
  1519. #: guix-git/doc/contributing.texi:1210
  1520. #, no-wrap
  1521. msgid "patch series"
  1522. msgstr "补丁系列"
  1523. #. type: code{#1}
  1524. #: guix-git/doc/contributing.texi:1211
  1525. #, no-wrap
  1526. msgid "git send-email"
  1527. msgstr "git send-email"
  1528. #. type: code{#1}
  1529. #: guix-git/doc/contributing.texi:1212
  1530. #, no-wrap
  1531. msgid "git-send-email"
  1532. msgstr "git-send-email"
  1533. #. type: Plain text
  1534. #: guix-git/doc/contributing.texi:1222
  1535. #, fuzzy
  1536. msgid "When sending a patch series (e.g., using @code{git send-email}), please first send one message to @email{guix-patches@@gnu.org}, and then send subsequent patches to @email{@var{NNN}@@debbugs.gnu.org} to make sure they are kept together. See @uref{https://debbugs.gnu.org/Advanced.html, the Debbugs documentation} for more information. You can install @command{git send-email} with @command{guix install git:send-email}."
  1537. msgstr "在发送补丁系列时(如,使用@code{git send-email}),请先向@email{guix-patches@@gnu.org}发送一封邮件,再把后续的补丁发送到@email{@var{NNN}@@debbugs.gnu.org},以确保他们被归在一起。见@uref{https://debbugs.gnu.org/Advanced.html, Debbugs文档}以了解更多信息。"
  1538. #. type: Plain text
  1539. #: guix-git/doc/contributing.texi:1228
  1540. msgid "This section describes how the Guix project tracks its bug reports and patch submissions."
  1541. msgstr ""
  1542. #. type: subsection
  1543. #: guix-git/doc/contributing.texi:1233 guix-git/doc/contributing.texi:1235
  1544. #: guix-git/doc/contributing.texi:1236
  1545. #, no-wrap
  1546. msgid "The Issue Tracker"
  1547. msgstr ""
  1548. #. type: menuentry
  1549. #: guix-git/doc/contributing.texi:1233
  1550. msgid "The official bug and patch tracker."
  1551. msgstr ""
  1552. #. type: subsection
  1553. #: guix-git/doc/contributing.texi:1233 guix-git/doc/contributing.texi:1249
  1554. #: guix-git/doc/contributing.texi:1250
  1555. #, fuzzy, no-wrap
  1556. #| msgid "user interfaces"
  1557. msgid "Debbugs User Interfaces"
  1558. msgstr "用户界面"
  1559. #. type: menuentry
  1560. #: guix-git/doc/contributing.texi:1233
  1561. msgid "Ways to interact with Debbugs."
  1562. msgstr ""
  1563. #. type: subsection
  1564. #: guix-git/doc/contributing.texi:1233 guix-git/doc/contributing.texi:1289
  1565. #: guix-git/doc/contributing.texi:1290
  1566. #, no-wrap
  1567. msgid "Debbugs Usertags"
  1568. msgstr ""
  1569. #. type: menuentry
  1570. #: guix-git/doc/contributing.texi:1233
  1571. msgid "Tag reports with custom labels."
  1572. msgstr ""
  1573. #. type: cindex
  1574. #: guix-git/doc/contributing.texi:1238
  1575. #, no-wrap
  1576. msgid "bug reports, tracking"
  1577. msgstr ""
  1578. #. type: cindex
  1579. #: guix-git/doc/contributing.texi:1239
  1580. #, no-wrap
  1581. msgid "patch submissions, tracking"
  1582. msgstr ""
  1583. #. type: cindex
  1584. #: guix-git/doc/contributing.texi:1240
  1585. #, no-wrap
  1586. msgid "issue tracking"
  1587. msgstr ""
  1588. #. type: cindex
  1589. #: guix-git/doc/contributing.texi:1241
  1590. #, no-wrap
  1591. msgid "Debbugs, issue tracking system"
  1592. msgstr ""
  1593. #. type: Plain text
  1594. #: guix-git/doc/contributing.texi:1248
  1595. msgid "Bug reports and patch submissions are currently tracked using the Debbugs instance at @uref{https://bugs.gnu.org}. Bug reports are filed against the @code{guix} ``package'' (in Debbugs parlance), by sending email to @email{bug-guix@@gnu.org}, while patch submissions are filed against the @code{guix-patches} package by sending email to @email{guix-patches@@gnu.org} (@pxref{Submitting Patches})."
  1596. msgstr ""
  1597. #. type: Plain text
  1598. #: guix-git/doc/contributing.texi:1254
  1599. msgid "A web interface (actually @emph{two} web interfaces!) are available to browse issues:"
  1600. msgstr ""
  1601. #. type: itemize
  1602. #: guix-git/doc/contributing.texi:1263
  1603. msgid "@url{https://issues.guix.gnu.org} provides a pleasant interface@footnote{The web interface at @url{https://issues.guix.gnu.org} is powered by Mumi, a nice piece of software written in Guile, and you can help! See @url{https://git.elephly.net/gitweb.cgi?p=software/mumi.git}.} to browse bug reports and patches, and to participate in discussions;"
  1604. msgstr ""
  1605. #. type: itemize
  1606. #: guix-git/doc/contributing.texi:1265
  1607. #, fuzzy
  1608. msgid "@url{https://bugs.gnu.org/guix} lists bug reports;"
  1609. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  1610. #. type: itemize
  1611. #: guix-git/doc/contributing.texi:1267
  1612. msgid "@url{https://bugs.gnu.org/guix-patches} lists patch submissions."
  1613. msgstr ""
  1614. #. type: Plain text
  1615. #: guix-git/doc/contributing.texi:1272
  1616. msgid "To view discussions related to issue number @var{n}, go to @indicateurl{https://issues.guix.gnu.org/@var{n}} or @indicateurl{https://bugs.gnu.org/@var{n}}."
  1617. msgstr ""
  1618. #. type: Plain text
  1619. #: guix-git/doc/contributing.texi:1275
  1620. msgid "If you use Emacs, you may find it more convenient to interact with issues using @file{debbugs.el}, which you can install with:"
  1621. msgstr ""
  1622. #. type: example
  1623. #: guix-git/doc/contributing.texi:1278
  1624. #, fuzzy, no-wrap
  1625. msgid "guix install emacs-debbugs\n"
  1626. msgstr "guix install emacs-guix\n"
  1627. #. type: Plain text
  1628. #: guix-git/doc/contributing.texi:1281
  1629. msgid "For example, to list all open issues on @code{guix-patches}, hit:"
  1630. msgstr ""
  1631. #. type: example
  1632. #: guix-git/doc/contributing.texi:1284
  1633. #, no-wrap
  1634. msgid "@kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y\n"
  1635. msgstr ""
  1636. #. type: Plain text
  1637. #: guix-git/doc/contributing.texi:1288
  1638. #, fuzzy
  1639. msgid "@xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on this nifty tool!"
  1640. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1641. #. type: cindex
  1642. #: guix-git/doc/contributing.texi:1292
  1643. #, no-wrap
  1644. msgid "usertags, for debbugs"
  1645. msgstr ""
  1646. #. type: cindex
  1647. #: guix-git/doc/contributing.texi:1293
  1648. #, no-wrap
  1649. msgid "Debbugs usertags"
  1650. msgstr ""
  1651. #. type: Plain text
  1652. #: guix-git/doc/contributing.texi:1299
  1653. msgid "Debbugs provides a feature called @dfn{usertags} that allows any user to tag any bug with an arbitrary label. Bugs can be searched by usertag, so this is a handy way to organize bugs@footnote{The list of usertags is public information, and anyone can modify any user's list of usertags, so keep that in mind if you choose to use this feature.}."
  1654. msgstr ""
  1655. #. type: Plain text
  1656. #: guix-git/doc/contributing.texi:1305
  1657. msgid "For example, to view all the bug reports (or patches, in the case of @code{guix-patches}) tagged with the usertag @code{powerpc64le-linux} for the user @code{guix}, open a URL like the following in a web browser: @url{https://debbugs.gnu.org/cgi-bin/pkgreport.cgi?tag=powerpc64le-linux;users=guix}."
  1658. msgstr ""
  1659. #. type: Plain text
  1660. #: guix-git/doc/contributing.texi:1309
  1661. msgid "For more information on how to use usertags, please refer to the documentation for Debbugs or the documentation for whatever tool you use to interact with Debbugs."
  1662. msgstr ""
  1663. #. type: Plain text
  1664. #: guix-git/doc/contributing.texi:1314
  1665. msgid "In Guix, we are experimenting with usertags to keep track of architecture-specific issues. To facilitate collaboration, all our usertags are associated with the single user @code{guix}. The following usertags currently exist for that user:"
  1666. msgstr ""
  1667. #. type: item
  1668. #: guix-git/doc/contributing.texi:1317 guix-git/doc/guix.texi:535
  1669. #, fuzzy, no-wrap
  1670. msgid "powerpc64le-linux"
  1671. msgstr "aarch64-linux"
  1672. #. type: table
  1673. #: guix-git/doc/contributing.texi:1325
  1674. msgid "The purpose of this usertag is to make it easy to find the issues that matter most for the @code{powerpc64le-linux} system type. Please assign this usertag to bugs or patches that affect @code{powerpc64le-linux} but not other system types. In addition, you may use it to identify issues that for some reason are particularly important for the @code{powerpc64le-linux} system type, even if the issue affects other system types, too."
  1675. msgstr ""
  1676. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  1677. #. type: item
  1678. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  1679. #. type: cindex
  1680. #: guix-git/doc/contributing.texi:1326 guix-git/doc/guix.texi:3025
  1681. #: guix-git/doc/guix.texi:4713
  1682. #, no-wrap
  1683. msgid "reproducibility"
  1684. msgstr ""
  1685. #. type: table
  1686. #: guix-git/doc/contributing.texi:1330
  1687. msgid "For issues related to reproducibility. For example, it would be appropriate to assign this usertag to a bug report for a package that fails to build reproducibly."
  1688. msgstr ""
  1689. #. type: Plain text
  1690. #: guix-git/doc/contributing.texi:1337
  1691. msgid "If you're a committer and you want to add a usertag, just start using it with the @code{guix} user. If the usertag proves useful to you, consider updating this section of the manual so that others will know what your usertag means."
  1692. msgstr ""
  1693. #. type: cindex
  1694. #: guix-git/doc/contributing.texi:1341
  1695. #, no-wrap
  1696. msgid "commit access, for developers"
  1697. msgstr ""
  1698. #. type: Plain text
  1699. #: guix-git/doc/contributing.texi:1347
  1700. msgid "Everyone can contribute to Guix without having commit access (@pxref{Submitting Patches}). However, for frequent contributors, having write access to the repository can be convenient. Commit access should not be thought of as a ``badge of honor'' but rather as a responsibility a contributor is willing to take to help the project."
  1701. msgstr ""
  1702. #. type: Plain text
  1703. #: guix-git/doc/contributing.texi:1351
  1704. msgid "The following sections explain how to get commit access, how to be ready to push commits, and the policies and community expectations for commits pushed upstream."
  1705. msgstr ""
  1706. #. type: subsection
  1707. #: guix-git/doc/contributing.texi:1352
  1708. #, fuzzy, no-wrap
  1709. #| msgid "Commit Access"
  1710. msgid "Applying for Commit Access"
  1711. msgstr "提交权利"
  1712. #. type: Plain text
  1713. #: guix-git/doc/contributing.texi:1356
  1714. msgid "When you deem it necessary, consider applying for commit access by following these steps:"
  1715. msgstr ""
  1716. #. type: enumerate
  1717. #: guix-git/doc/contributing.texi:1365
  1718. msgid "Find three committers who would vouch for you. You can view the list of committers at @url{https://savannah.gnu.org/project/memberlist.php?group=guix}. Each of them should email a statement to @email{guix-maintainers@@gnu.org} (a private alias for the collective of maintainers), signed with their OpenPGP key."
  1719. msgstr ""
  1720. #. type: enumerate
  1721. #: guix-git/doc/contributing.texi:1371
  1722. msgid "Committers are expected to have had some interactions with you as a contributor and to be able to judge whether you are sufficiently familiar with the project's practices. It is @emph{not} a judgment on the value of your work, so a refusal should rather be interpreted as ``let's try again later''."
  1723. msgstr ""
  1724. #. type: enumerate
  1725. #: guix-git/doc/contributing.texi:1378
  1726. msgid "Send @email{guix-maintainers@@gnu.org} a message stating your intent, listing the three committers who support your application, signed with the OpenPGP key you will use to sign commits, and giving its fingerprint (see below). See @uref{https://emailselfdefense.fsf.org/en/}, for an introduction to public-key cryptography with GnuPG."
  1727. msgstr ""
  1728. #. type: enumerate
  1729. #: guix-git/doc/contributing.texi:1384
  1730. msgid "Set up GnuPG such that it never uses the SHA1 hash algorithm for digital signatures, which is known to be unsafe since 2019, for instance by adding the following line to @file{~/.gnupg/gpg.conf} (@pxref{GPG Esoteric Options,,, gnupg, The GNU Privacy Guard Manual}):"
  1731. msgstr ""
  1732. #. type: example
  1733. #: guix-git/doc/contributing.texi:1387
  1734. #, no-wrap
  1735. msgid "digest-algo sha512\n"
  1736. msgstr ""
  1737. #. type: enumerate
  1738. #: guix-git/doc/contributing.texi:1392
  1739. msgid "Maintainers ultimately decide whether to grant you commit access, usually following your referrals' recommendation."
  1740. msgstr ""
  1741. #. type: cindex
  1742. #: guix-git/doc/contributing.texi:1394
  1743. #, no-wrap
  1744. msgid "OpenPGP, signed commits"
  1745. msgstr ""
  1746. #. type: enumerate
  1747. #: guix-git/doc/contributing.texi:1399
  1748. msgid "If and once you've been given access, please send a message to @email{guix-devel@@gnu.org} to say so, again signed with the OpenPGP key you will use to sign commits (do that before pushing your first commit). That way, everyone can notice and ensure you control that OpenPGP key."
  1749. msgstr ""
  1750. #. type: quotation
  1751. #: guix-git/doc/contributing.texi:1400 guix-git/doc/guix.texi:16870
  1752. #, no-wrap
  1753. msgid "Important"
  1754. msgstr ""
  1755. #. type: quotation
  1756. #: guix-git/doc/contributing.texi:1402
  1757. msgid "Before you can push for the first time, maintainers must:"
  1758. msgstr ""
  1759. #. type: enumerate
  1760. #: guix-git/doc/contributing.texi:1406
  1761. msgid "add your OpenPGP key to the @code{keyring} branch;"
  1762. msgstr ""
  1763. #. type: enumerate
  1764. #: guix-git/doc/contributing.texi:1409
  1765. msgid "add your OpenPGP fingerprint to the @file{.guix-authorizations} file of the branch(es) you will commit to."
  1766. msgstr ""
  1767. #. type: enumerate
  1768. #: guix-git/doc/contributing.texi:1414
  1769. msgid "Make sure to read the rest of this section and... profit!"
  1770. msgstr ""
  1771. #. type: quotation
  1772. #: guix-git/doc/contributing.texi:1420
  1773. msgid "Maintainers are happy to give commit access to people who have been contributing for some time and have a track record---don't be shy and don't underestimate your work!"
  1774. msgstr ""
  1775. #. type: quotation
  1776. #: guix-git/doc/contributing.texi:1424
  1777. msgid "However, note that the project is working towards a more automated patch review and merging system, which, as a consequence, may lead us to have fewer people with commit access to the main repository. Stay tuned!"
  1778. msgstr ""
  1779. #. type: Plain text
  1780. #: guix-git/doc/contributing.texi:1431
  1781. msgid "All commits that are pushed to the central repository on Savannah must be signed with an OpenPGP key, and the public key should be uploaded to your user account on Savannah and to public key servers, such as @code{keys.openpgp.org}. To configure Git to automatically sign commits, run:"
  1782. msgstr ""
  1783. #. type: example
  1784. #: guix-git/doc/contributing.texi:1434
  1785. #, no-wrap
  1786. msgid ""
  1787. "git config commit.gpgsign true\n"
  1788. "\n"
  1789. msgstr ""
  1790. #. type: example
  1791. #: guix-git/doc/contributing.texi:1437
  1792. #, no-wrap
  1793. msgid ""
  1794. "# Substitute the fingerprint of your public PGP key.\n"
  1795. "git config user.signingkey CABBA6EA1DC0FF33\n"
  1796. msgstr ""
  1797. #. type: Plain text
  1798. #: guix-git/doc/contributing.texi:1442
  1799. msgid "You can prevent yourself from accidentally pushing unsigned commits to Savannah by using the pre-push Git hook located at @file{etc/git/pre-push}:"
  1800. msgstr ""
  1801. #. type: example
  1802. #: guix-git/doc/contributing.texi:1445
  1803. #, no-wrap
  1804. msgid "cp etc/git/pre-push .git/hooks/pre-push\n"
  1805. msgstr ""
  1806. #. type: subsection
  1807. #: guix-git/doc/contributing.texi:1447
  1808. #, fuzzy, no-wrap
  1809. #| msgid "Commit Access"
  1810. msgid "Commit Policy"
  1811. msgstr "提交权利"
  1812. #. type: Plain text
  1813. #: guix-git/doc/contributing.texi:1452
  1814. msgid "If you get commit access, please make sure to follow the policy below (discussions of the policy can take place on @email{guix-devel@@gnu.org})."
  1815. msgstr ""
  1816. #. type: Plain text
  1817. #: guix-git/doc/contributing.texi:1457
  1818. msgid "Non-trivial patches should always be posted to @email{guix-patches@@gnu.org} (trivial patches include fixing typos, etc.). This mailing list fills the patch-tracking database (@pxref{Tracking Bugs and Patches})."
  1819. msgstr ""
  1820. #. type: Plain text
  1821. #: guix-git/doc/contributing.texi:1466
  1822. msgid "For patches that just add a new package, and a simple one, it's OK to commit, if you're confident (which means you successfully built it in a chroot setup, and have done a reasonable copyright and license auditing). Likewise for package upgrades, except upgrades that trigger a lot of rebuilds (for example, upgrading GnuTLS or GLib). We have a mailing list for commit notifications (@email{guix-commits@@gnu.org}), so people can notice. Before pushing your changes, make sure to run @code{git pull --rebase}."
  1823. msgstr ""
  1824. #. type: Plain text
  1825. #: guix-git/doc/contributing.texi:1471
  1826. msgid "When pushing a commit on behalf of somebody else, please add a @code{Signed-off-by} line at the end of the commit log message---e.g., with @command{git am --signoff}. This improves tracking of who did what."
  1827. msgstr ""
  1828. #. type: Plain text
  1829. #: guix-git/doc/contributing.texi:1475
  1830. msgid "When adding channel news entries (@pxref{Channels, Writing Channel News}), make sure they are well-formed by running the following command right before pushing:"
  1831. msgstr ""
  1832. #. type: example
  1833. #: guix-git/doc/contributing.texi:1478
  1834. #, fuzzy, no-wrap
  1835. msgid "make check-channel-news\n"
  1836. msgstr "make check\n"
  1837. #. type: Plain text
  1838. #: guix-git/doc/contributing.texi:1484
  1839. msgid "For anything else, please post to @email{guix-patches@@gnu.org} and leave time for a review, without committing anything (@pxref{Submitting Patches}). If you didn’t receive any reply after two weeks, and if you're confident, it's OK to commit."
  1840. msgstr ""
  1841. #. type: Plain text
  1842. #: guix-git/doc/contributing.texi:1487
  1843. msgid "That last part is subject to being adjusted, allowing individuals to commit directly on non-controversial changes on parts they’re familiar with."
  1844. msgstr ""
  1845. #. type: subsection
  1846. #: guix-git/doc/contributing.texi:1488
  1847. #, no-wrap
  1848. msgid "Addressing Issues"
  1849. msgstr ""
  1850. #. type: Plain text
  1851. #: guix-git/doc/contributing.texi:1499
  1852. msgid "Peer review (@pxref{Submitting Patches}) and tools such as @command{guix lint} (@pxref{Invoking guix lint}) and the test suite (@pxref{Running the Test Suite}) should catch issues before they are pushed. Yet, commits that ``break'' functionality might occasionally go through. When that happens, there are two priorities: mitigating the impact, and understanding what happened to reduce the chance of similar incidents in the future. The responsibility for both these things primarily lies with those involved, but like everything this is a group effort."
  1853. msgstr ""
  1854. #. type: Plain text
  1855. #: guix-git/doc/contributing.texi:1504
  1856. msgid "Some issues can directly affect all users---for instance because they make @command{guix pull} fail or break core functionality, because they break major packages (at build time or run time), or because they introduce known security vulnerabilities."
  1857. msgstr ""
  1858. #. type: cindex
  1859. #: guix-git/doc/contributing.texi:1505
  1860. #, no-wrap
  1861. msgid "reverting commits"
  1862. msgstr ""
  1863. #. type: Plain text
  1864. #: guix-git/doc/contributing.texi:1511
  1865. msgid "The people involved in authoring, reviewing, and pushing such commit(s) should be at the forefront to mitigate their impact in a timely fashion: by pushing a followup commit to fix it (if possible), or by reverting it to leave time to come up with a proper fix, and by communicating with other developers about the problem."
  1866. msgstr ""
  1867. #. type: Plain text
  1868. #: guix-git/doc/contributing.texi:1517
  1869. msgid "If these persons are unavailable to address the issue in time, other committers are entitled to revert the commit(s), explaining in the commit log and on the mailing list what the problem was, with the goal of leaving time to the original committer, reviewer(s), and author(s) to propose a way forward."
  1870. msgstr ""
  1871. #. type: Plain text
  1872. #: guix-git/doc/contributing.texi:1526
  1873. msgid "Once the problem has been dealt with, it is the responsibility of those involved to make sure the situation is understood. If you are working to understand what happened, focus on gathering information and avoid assigning any blame. Do ask those involved to describe what happened, do not ask them to explain the situation---this would implicitly blame them, which is unhelpful. Accountability comes from a consensus about the problem, learning from it and improving processes so that it's less likely to reoccur."
  1874. msgstr ""
  1875. #. type: subsection
  1876. #: guix-git/doc/contributing.texi:1527
  1877. #, fuzzy, no-wrap
  1878. #| msgid "Log Rotation"
  1879. msgid "Commit Revocation"
  1880. msgstr "日志轮替"
  1881. #. type: Plain text
  1882. #: guix-git/doc/contributing.texi:1534
  1883. msgid "In order to reduce the possibility of mistakes, committers will have their Savannah account removed from the Guix Savannah project and their key removed from @file{.guix-authorizations} after 12 months of inactivity; they can ask to regain commit access by emailing the maintainers, without going through the vouching process."
  1884. msgstr ""
  1885. #. type: Plain text
  1886. #: guix-git/doc/contributing.texi:1544
  1887. msgid "Maintainers@footnote{See @uref{https://guix.gnu.org/en/about} for the current list of maintainers. You can email them privately at @email{guix-maintainers@@gnu.org}.} may also revoke an individual's commit rights, as a last resort, if cooperation with the rest of the community has caused too much friction---even within the bounds of the project's code of conduct (@pxref{Contributing}). They would only do so after public or private discussion with the individual and a clear notice. Examples of behavior that hinders cooperation and could lead to such a decision include:"
  1888. msgstr ""
  1889. #. type: item
  1890. #: guix-git/doc/contributing.texi:1546
  1891. #, no-wrap
  1892. msgid "repeated violation of the commit policy stated above;"
  1893. msgstr ""
  1894. #. type: item
  1895. #: guix-git/doc/contributing.texi:1547
  1896. #, no-wrap
  1897. msgid "repeated failure to take peer criticism into account;"
  1898. msgstr ""
  1899. #. type: item
  1900. #: guix-git/doc/contributing.texi:1548
  1901. #, no-wrap
  1902. msgid "breaching trust through a series of grave incidents."
  1903. msgstr ""
  1904. #. type: Plain text
  1905. #: guix-git/doc/contributing.texi:1555
  1906. msgid "When maintainers resort to such a decision, they notify developers on @email{guix-devel@@gnu.org}; inquiries may be sent to @email{guix-maintainers@@gnu.org}. Depending on the situation, the individual may still be welcome to contribute."
  1907. msgstr ""
  1908. #. type: subsection
  1909. #: guix-git/doc/contributing.texi:1556
  1910. #, no-wrap
  1911. msgid "Helping Out"
  1912. msgstr ""
  1913. #. type: Plain text
  1914. #: guix-git/doc/contributing.texi:1563
  1915. msgid "One last thing: the project keeps moving forward because committers not only push their own awesome changes, but also offer some of their time @emph{reviewing} and pushing other people's changes. As a committer, you're welcome to use your expertise and commit rights to help other contributors, too!"
  1916. msgstr ""
  1917. #. type: cindex
  1918. #: guix-git/doc/contributing.texi:1567
  1919. #, fuzzy, no-wrap
  1920. msgid "update-guix-package, updating the guix package"
  1921. msgstr "guix package:调用guix package"
  1922. #. type: Plain text
  1923. #: guix-git/doc/contributing.texi:1573
  1924. msgid "It is sometimes desirable to update the @code{guix} package itself (the package defined in @code{(gnu packages package-management)}), for example to make new daemon features available for use by the @code{guix-service-type} service type. In order to simplify this task, the following command can be used:"
  1925. msgstr ""
  1926. #. type: example
  1927. #: guix-git/doc/contributing.texi:1576
  1928. #, no-wrap
  1929. msgid "make update-guix-package\n"
  1930. msgstr ""
  1931. #. type: Plain text
  1932. #: guix-git/doc/contributing.texi:1583
  1933. msgid "The @code{update-guix-package} make target will use the last known @emph{commit} corresponding to @code{HEAD} in your Guix checkout, compute the hash of the Guix sources corresponding to that commit and update the @code{commit}, @code{revision} and hash of the @code{guix} package definition."
  1934. msgstr ""
  1935. #. type: Plain text
  1936. #: guix-git/doc/contributing.texi:1587
  1937. msgid "To validate that the updated @code{guix} package hashes are correct and that it can be built successfully, the following command can be run from the directory of your Guix checkout:"
  1938. msgstr ""
  1939. #. type: example
  1940. #: guix-git/doc/contributing.texi:1590
  1941. #, fuzzy, no-wrap
  1942. msgid "./pre-inst-env guix build guix\n"
  1943. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  1944. #. type: Plain text
  1945. #: guix-git/doc/contributing.texi:1595
  1946. msgid "To guard against accidentally updating the @code{guix} package to a commit that others can't refer to, a check is made that the commit used has already been pushed to the Savannah-hosted Guix git repository."
  1947. msgstr ""
  1948. #. type: Plain text
  1949. #: guix-git/doc/contributing.texi:1600
  1950. msgid "This check can be disabled, @emph{at your own peril}, by setting the @code{GUIX_ALLOW_ME_TO_USE_PRIVATE_COMMIT} environment variable. When this variable is set, the updated package source is also added to the store. This is used as part of the release process of Guix."
  1951. msgstr ""
  1952. #. type: cindex
  1953. #: guix-git/doc/contributing.texi:1601
  1954. #, fuzzy, no-wrap
  1955. #| msgid "isolation"
  1956. msgid "translation"
  1957. msgstr "隔离"
  1958. #. type: cindex
  1959. #: guix-git/doc/contributing.texi:1602
  1960. #, no-wrap
  1961. msgid "l10n"
  1962. msgstr ""
  1963. #. type: cindex
  1964. #: guix-git/doc/contributing.texi:1603
  1965. #, no-wrap
  1966. msgid "i18n"
  1967. msgstr ""
  1968. #. type: cindex
  1969. #: guix-git/doc/contributing.texi:1604
  1970. #, no-wrap
  1971. msgid "native language support"
  1972. msgstr ""
  1973. #. type: Plain text
  1974. #: guix-git/doc/contributing.texi:1614
  1975. msgid "Writing code and packages is not the only way to provide a meaningful contribution to Guix. Translating to a language you speak is another example of a valuable contribution you can make. This section is designed to describe the translation process. It gives you advice on how you can get involved, what can be translated, what mistakes you should avoid and what we can do to help you!"
  1976. msgstr ""
  1977. #. type: Plain text
  1978. #: guix-git/doc/contributing.texi:1620
  1979. msgid "Guix is a big project that has multiple components that can be translated. We coordinate the translation effort on a @uref{https://translate.fedoraproject.org/projects/guix/,Weblate instance} hosted by our friends at Fedora. You will need an account to submit translations."
  1980. msgstr ""
  1981. #. type: Plain text
  1982. #: guix-git/doc/contributing.texi:1627
  1983. msgid "Some of the software packaged in Guix also contain translations. We do not host a translation platform for them. If you want to translate a package provided by Guix, you should contact their developers or find the information on their website. As an example, you can find the homepage of the @code{hello} package by typing @code{guix show hello}. On the ``homepage'' line, you will see @url{https://www.gnu.org/software/hello/} as the homepage."
  1984. msgstr ""
  1985. #. type: Plain text
  1986. #: guix-git/doc/contributing.texi:1632
  1987. msgid "Many GNU and non-GNU packages can be translated on the @uref{https://translationproject.org,Translation Project}. Some projects with multiple components have their own platform. For instance, GNOME has its own platform, @uref{https://l10n.gnome.org/,Damned Lies}."
  1988. msgstr ""
  1989. #. type: Plain text
  1990. #: guix-git/doc/contributing.texi:1634
  1991. msgid "Guix has five components hosted on Weblate."
  1992. msgstr ""
  1993. #. type: item
  1994. #: guix-git/doc/contributing.texi:1636
  1995. #, no-wrap
  1996. msgid "@code{guix} contains all the strings from the Guix software (the"
  1997. msgstr ""
  1998. #. type: itemize
  1999. #: guix-git/doc/contributing.texi:1638
  2000. msgid "guided system installer, the package manager, etc), excluding packages."
  2001. msgstr ""
  2002. #. type: item
  2003. #: guix-git/doc/contributing.texi:1638
  2004. #, no-wrap
  2005. msgid "@code{packages} contains the synopsis (single-sentence description"
  2006. msgstr ""
  2007. #. type: itemize
  2008. #: guix-git/doc/contributing.texi:1640
  2009. msgid "of a package) and description (longer description) of packages in Guix."
  2010. msgstr ""
  2011. #. type: item
  2012. #: guix-git/doc/contributing.texi:1640
  2013. #, no-wrap
  2014. msgid "@code{website} contains the official Guix website, except for"
  2015. msgstr ""
  2016. #. type: itemize
  2017. #: guix-git/doc/contributing.texi:1642
  2018. msgid "blog posts and multimedia content."
  2019. msgstr ""
  2020. #. type: item
  2021. #: guix-git/doc/contributing.texi:1642
  2022. #, no-wrap
  2023. msgid "@code{documentation-manual} corresponds to this manual."
  2024. msgstr ""
  2025. #. type: item
  2026. #: guix-git/doc/contributing.texi:1643
  2027. #, no-wrap
  2028. msgid "@code{documentation-cookbook} is the component for the cookbook."
  2029. msgstr ""
  2030. #. type: subsubheading
  2031. #: guix-git/doc/contributing.texi:1646
  2032. #, no-wrap
  2033. msgid "General Directions"
  2034. msgstr ""
  2035. #. type: Plain text
  2036. #: guix-git/doc/contributing.texi:1654
  2037. msgid "Once you get an account, you should be able to select a component from @uref{https://translate.fedoraproject.org/projects/guix/,the guix project}, and select a language. If your language does not appear in the list, go to the bottom and click on the ``Start new translation'' button. Select the language you want to translate to from the list, to start your new translation."
  2038. msgstr ""
  2039. #. type: Plain text
  2040. #: guix-git/doc/contributing.texi:1659
  2041. msgid "Like lots of other free software packages, Guix uses @uref{https://www.gnu.org/software/gettext,GNU Gettext} for its translations, with which translatable strings are extracted from the source code to so-called PO files."
  2042. msgstr ""
  2043. #. type: Plain text
  2044. #: guix-git/doc/contributing.texi:1670
  2045. msgid "Even though PO files are text files, changes should not be made with a text editor but with PO editing software. Weblate integrates PO editing functionality. Alternatively, translators can use any of various free-software tools for filling in translations, of which @uref{https://poedit.net/,Poedit} is one example, and (after logging in) @uref{https://docs.weblate.org/en/latest/user/files.html,upload} the changed file. There is also a special @uref{https://www.emacswiki.org/emacs/PoMode,PO editing mode} for users of GNU Emacs. Over time translators find out what software they are happy with and what features they need."
  2046. msgstr ""
  2047. #. type: Plain text
  2048. #: guix-git/doc/contributing.texi:1675
  2049. msgid "On Weblate, you will find various links to the editor, that will show various subsets (or all) of the strings. Have a look around and at the @uref{https://docs.weblate.org/en/latest/,documentation} to familiarize yourself with the platform."
  2050. msgstr ""
  2051. #. type: subsubheading
  2052. #: guix-git/doc/contributing.texi:1676
  2053. #, no-wrap
  2054. msgid "Translation Components"
  2055. msgstr ""
  2056. #. type: Plain text
  2057. #: guix-git/doc/contributing.texi:1681
  2058. msgid "In this section, we provide more detailed guidance on the translation process, as well as details on what you should or should not do. When in doubt, please contact us, we will be happy to help!"
  2059. msgstr ""
  2060. #. type: item
  2061. #: guix-git/doc/contributing.texi:1683 guix-git/doc/guix.texi:8845
  2062. #, no-wrap
  2063. msgid "guix"
  2064. msgstr ""
  2065. #. type: table
  2066. #: guix-git/doc/contributing.texi:1688
  2067. msgid "Guix is written in the Guile programming language, and some strings contain special formatting that is interpreted by Guile. These special formatting should be highlighted by Weblate. They start with @code{~} followed by one or more characters."
  2068. msgstr ""
  2069. #. type: table
  2070. #: guix-git/doc/contributing.texi:1697
  2071. msgid "When printing the string, Guile replaces the special formatting symbols with actual values. For instance, the string @samp{ambiguous package specification `~a'} would be substituted to contain said package specification instead of @code{~a}. To properly translate this string, you must keep the formatting code in your translation, although you can place it where it makes sense in your language. For instance, the French translation says @samp{spécification du paquet « ~a » ambiguë} because the adjective needs to be placed in the end of the sentence."
  2072. msgstr ""
  2073. #. type: table
  2074. #: guix-git/doc/contributing.texi:1701
  2075. msgid "If there are multiple formatting symbols, make sure to respect the order. Guile does not know in which order you intended the string to be read, so it will substitute the symbols in the same order as the English sentence."
  2076. msgstr ""
  2077. #. type: table
  2078. #: guix-git/doc/contributing.texi:1709
  2079. msgid "As an example, you cannot translate @samp{package '~a' has been superseded by '~a'} by @samp{'~a' superseeds package '~a'}, because the meaning would be reversed. If @var{foo} is superseded by @var{bar}, the translation would read @samp{'foo' superseeds package 'bar'}. To work around this problem, it is possible to use more advanced formatting to select a given piece of data, instead of following the default English order. @xref{Formatted Output,,, guile, GNU Guile Reference Manual}, for more information on formatting in Guile."
  2080. msgstr ""
  2081. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2082. #. type: item
  2083. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2084. #. type: cindex
  2085. #: guix-git/doc/contributing.texi:1710 guix-git/doc/guix.texi:2943
  2086. #, no-wrap
  2087. msgid "packages"
  2088. msgstr ""
  2089. #. type: table
  2090. #: guix-git/doc/contributing.texi:1715
  2091. msgid "Package descriptions occasionally contain Texinfo markup (@pxref{Synopses and Descriptions}). Texinfo markup looks like @samp{@@code@{rm -rf@}}, @samp{@@emph@{important@}}, etc. When translating, please leave markup as is."
  2092. msgstr ""
  2093. #. type: table
  2094. #: guix-git/doc/contributing.texi:1724
  2095. msgid "The characters after ``@@'' form the name of the markup, and the text between ``@{'' and ``@}'' is its content. In general, you should not translate the content of markup like @code{@@code}, as it contains literal code that do not change with language. You can translate the content of formatting markup such as @code{@@emph}, @code{@@i}, @code{@@itemize}, @code{@@item}. However, do not translate the name of the markup, or it will not be recognized. Do not translate the word after @code{@@end}, it is the name of the markup that is closed at this position (e.g.@: @code{@@itemize ... @@end itemize})."
  2096. msgstr ""
  2097. #. type: item
  2098. #: guix-git/doc/contributing.texi:1725
  2099. #, no-wrap
  2100. msgid "documentation-manual and documentation-cookbook"
  2101. msgstr ""
  2102. #. type: table
  2103. #: guix-git/doc/contributing.texi:1729
  2104. msgid "The first step to ensure a successful translation of the manual is to find and translate the following strings @emph{first}:"
  2105. msgstr ""
  2106. #. type: item
  2107. #: guix-git/doc/contributing.texi:1731
  2108. #, no-wrap
  2109. msgid "@code{version.texi}: Translate this string as @code{version-xx.texi},"
  2110. msgstr ""
  2111. #. type: itemize
  2112. #: guix-git/doc/contributing.texi:1734
  2113. msgid "where @code{xx} is your language code (the one shown in the URL on weblate)."
  2114. msgstr ""
  2115. #. type: item
  2116. #: guix-git/doc/contributing.texi:1734
  2117. #, no-wrap
  2118. msgid "@code{contributing.texi}: Translate this string as"
  2119. msgstr ""
  2120. #. type: itemize
  2121. #: guix-git/doc/contributing.texi:1736
  2122. msgid "@code{contributing.xx.texi}, where @code{xx} is the same language code."
  2123. msgstr ""
  2124. #. type: item
  2125. #: guix-git/doc/contributing.texi:1736
  2126. #, no-wrap
  2127. msgid "@code{Top}: Do not translate this string, it is important for Texinfo."
  2128. msgstr ""
  2129. #. type: itemize
  2130. #: guix-git/doc/contributing.texi:1739
  2131. msgid "If you translate it, the document will be empty (missing a Top node). Please look for it, and register @code{Top} as its translation."
  2132. msgstr ""
  2133. #. type: table
  2134. #: guix-git/doc/contributing.texi:1744
  2135. msgid "Translating these strings first ensure we can include your translation in the guix repository without breaking the make process or the @command{guix pull} machinery."
  2136. msgstr ""
  2137. #. type: table
  2138. #: guix-git/doc/contributing.texi:1751
  2139. msgid "The manual and the cookbook both use Texinfo. As for @code{packages}, please keep Texinfo markup as is. There are more possible markup types in the manual than in the package descriptions. In general, do not translate the content of @code{@@code}, @code{@@file}, @code{@@var}, @code{@@value}, etc. You should translate the content of formatting markup such as @code{@@emph}, @code{@@i}, etc."
  2140. msgstr ""
  2141. #. type: table
  2142. #: guix-git/doc/contributing.texi:1759
  2143. msgid "The manual contains sections that can be referred to by name by @code{@@ref}, @code{@@xref} and @code{@@pxref}. We have a mechanism in place so you do not have to translate their content. If you keep the English title, we will automatically replace it with your translation of that title. This ensures that Texinfo will always be able to find the node. If you decide to change the translation of the title, the references will automatically be updated and you will not have to update them all yourself."
  2144. msgstr ""
  2145. #. type: table
  2146. #: guix-git/doc/contributing.texi:1769
  2147. msgid "When translating references from the cookbook to the manual, you need to replace the name of the manual and the name of the section. For instance, to translate @code{@@pxref@{Defining Packages,,, guix, GNU Guix Reference Manual@}}, you would replace @code{Defining Packages} with the title of that section in the translated manual @emph{only} if that title is translated. If the title is not translated in your language yet, do not translate it here, or the link will be broken. Replace @code{guix} with @code{guix.xx} where @code{xx} is your language code. @code{GNU Guix Reference Manual} is the text of the link. You can translate it however you wish."
  2148. msgstr ""
  2149. #. type: item
  2150. #: guix-git/doc/contributing.texi:1770
  2151. #, fuzzy, no-wrap
  2152. #| msgid "official website"
  2153. msgid "website"
  2154. msgstr "官方网站"
  2155. #. type: table
  2156. #: guix-git/doc/contributing.texi:1777
  2157. msgid "The website pages are written using SXML, an s-expression version of HTML, the basic language of the web. We have a process to extract translatable strings from the source, and replace complex s-expressions with a more familiar XML markup, where each markup is numbered. Translators can arbitrarily change the ordering, as in the following example."
  2158. msgstr ""
  2159. #. type: example
  2160. #: guix-git/doc/contributing.texi:1784
  2161. #, no-wrap
  2162. msgid ""
  2163. "#. TRANSLATORS: Defining Packages is a section name\n"
  2164. "#. in the English (en) manual.\n"
  2165. "#: apps/base/templates/about.scm:64\n"
  2166. "msgid \"Packages are <1>defined<1.1>en</1.1><1.2>Defining-Packages.html</1.2></1> as native <2>Guile</2> modules.\"\n"
  2167. "msgstr \"Pakete werden als reine <2>Guile</2>-Module <1>definiert<1.1>de</1.1><1.2>Pakete-definieren.html</1.2></1>.\"\n"
  2168. msgstr ""
  2169. #. type: table
  2170. #: guix-git/doc/contributing.texi:1787
  2171. msgid "Note that you need to include the same markups. You cannot skip any."
  2172. msgstr ""
  2173. #. type: Plain text
  2174. #: guix-git/doc/contributing.texi:1795
  2175. msgid "In case you make a mistake, the component might fail to build properly with your language, or even make guix pull fail. To prevent that, we have a process in place to check the content of the files before pushing to our repository. We will not be able to update the translation for your language in Guix, so we will notify you (through weblate and/or by email) so you get a chance to fix the issue."
  2176. msgstr ""
  2177. #. type: subsubheading
  2178. #: guix-git/doc/contributing.texi:1796
  2179. #, no-wrap
  2180. msgid "Outside of Weblate"
  2181. msgstr ""
  2182. #. type: Plain text
  2183. #: guix-git/doc/contributing.texi:1799
  2184. msgid "Currently, some parts of Guix cannot be translated on Weblate, help wanted!"
  2185. msgstr ""
  2186. #. type: item
  2187. #: guix-git/doc/contributing.texi:1801
  2188. #, no-wrap
  2189. msgid "@command{guix pull} news can be translated in @file{news.scm}, but is not"
  2190. msgstr ""
  2191. #. type: itemize
  2192. #: guix-git/doc/contributing.texi:1807
  2193. msgid "available from Weblate. If you want to provide a translation, you can prepare a patch as described above, or simply send us your translation with the name of the news entry you translated and your language. @xref{Writing Channel News}, for more information about channel news."
  2194. msgstr ""
  2195. #. type: item
  2196. #: guix-git/doc/contributing.texi:1807
  2197. #, no-wrap
  2198. msgid "Guix blog posts cannot currently be translated."
  2199. msgstr ""
  2200. #. type: item
  2201. #: guix-git/doc/contributing.texi:1808
  2202. #, no-wrap
  2203. msgid "The installer script (for foreign distributions) is entirely in English."
  2204. msgstr ""
  2205. #. type: item
  2206. #: guix-git/doc/contributing.texi:1809
  2207. #, no-wrap
  2208. msgid "Some of the libraries Guix uses cannot be translated or are translated"
  2209. msgstr ""
  2210. #. type: itemize
  2211. #: guix-git/doc/contributing.texi:1811
  2212. msgid "outside of the Guix project. Guile itself is not internationalized."
  2213. msgstr ""
  2214. #. type: item
  2215. #: guix-git/doc/contributing.texi:1811
  2216. #, no-wrap
  2217. msgid "Other manuals linked from this manual or the cookbook might not be"
  2218. msgstr ""
  2219. #. type: itemize
  2220. #: guix-git/doc/contributing.texi:1813
  2221. msgid "translated."
  2222. msgstr ""
  2223. #. type: subsubheading
  2224. #: guix-git/doc/contributing.texi:1815
  2225. #, no-wrap
  2226. msgid "Translation Infrastructure"
  2227. msgstr ""
  2228. #. type: Plain text
  2229. #: guix-git/doc/contributing.texi:1826
  2230. msgid "Weblate is backed by a git repository from which it discovers new strings to translate and pushes new and updated translations. Normally, it would be enough to give it commit access to our repositories. However, we decided to use a separate repository for two reasons. First, we would have to give Weblate commit access and authorize its signing key, but we do not trust it in the same way we trust guix developers, especially since we do not manage the instance ourselves. Second, if translators mess something up, it can break the generation of the website and/or guix pull for all our users, independently of their language."
  2231. msgstr ""
  2232. #. type: Plain text
  2233. #: guix-git/doc/contributing.texi:1830
  2234. msgid "For these reasons, we use a dedicated repository to host translations, and we synchronize it with our guix and artworks repositories after checking no issue was introduced in the translation."
  2235. msgstr ""
  2236. #. type: Plain text
  2237. #: guix-git/doc/contributing.texi:1836
  2238. msgid "Developers can download the latest PO files from weblate in the Guix repository by running the @command{make download-po} command. It will automatically download the latest files from weblate, reformat them to a canonical form, and check they do not contain issues. The manual needs to be built again to check for additional issues that might crash Texinfo."
  2239. msgstr ""
  2240. #. type: Plain text
  2241. #: guix-git/doc/contributing.texi:1840
  2242. msgid "Before pushing new translation files, developers should add them to the make machinery so the translations are actually available. The process differs for the various components."
  2243. msgstr ""
  2244. #. type: item
  2245. #: guix-git/doc/contributing.texi:1842
  2246. #, no-wrap
  2247. msgid "New po files for the @code{guix} and @code{packages} components must"
  2248. msgstr ""
  2249. #. type: itemize
  2250. #: guix-git/doc/contributing.texi:1845
  2251. msgid "be registered by adding the new language to @file{po/guix/LINGUAS} or @file{po/packages/LINGUAS}."
  2252. msgstr ""
  2253. #. type: item
  2254. #: guix-git/doc/contributing.texi:1845
  2255. #, no-wrap
  2256. msgid "New po files for the @code{documentation-manual} component must be"
  2257. msgstr ""
  2258. #. type: itemize
  2259. #: guix-git/doc/contributing.texi:1851
  2260. msgid "registered by adding the file name to @code{DOC_PO_FILES} in @file{po/doc/local.mk}, the generated @file{%D%/guix.xx.texi} manual to @code{info_TEXINFOS} in @file{doc/local.mk} and the generated @file{%D%/guix.xx.texi} and @file{%D%/contributing.xx.texi} to @code{TRANSLATED_INFO} also in @file{doc/local.mk}."
  2261. msgstr ""
  2262. #. type: item
  2263. #: guix-git/doc/contributing.texi:1851
  2264. #, no-wrap
  2265. msgid "New po files for the @code{documentation-cookbook} component must be"
  2266. msgstr ""
  2267. #. type: itemize
  2268. #: guix-git/doc/contributing.texi:1857
  2269. msgid "registered by adding the file name to @code{DOC_COOKBOOK_PO_FILES} in @file{po/doc/local.mk}, the generated @file{%D%/guix-cookbook.xx.texi} manual to @code{info_TEXINFOS} in @file{doc/local.mk} and the generated @file{%D%/guix-cookbook.xx.texi} to @code{TRANSLATED_INFO} also in @file{doc/local.mk}."
  2270. msgstr ""
  2271. #. type: item
  2272. #: guix-git/doc/contributing.texi:1857
  2273. #, no-wrap
  2274. msgid "New po files for the @code{website} component must be added to the"
  2275. msgstr ""
  2276. #. type: itemize
  2277. #: guix-git/doc/contributing.texi:1862
  2278. msgid "@code{guix-artwork} repository, in @file{website/po/}. @file{website/po/LINGUAS} and @file{website/po/ietf-tags.scm} must be updated accordingly (see @file{website/i18n-howto.txt} for more information on the process)."
  2279. msgstr ""
  2280. #. type: Plain text
  2281. #: guix-git/doc/guix.texi:7
  2282. msgid "@documentencoding UTF-8"
  2283. msgstr "@documentencoding UTF-8"
  2284. #. type: title
  2285. #: guix-git/doc/guix.texi:7 guix-git/doc/guix.texi:126
  2286. #, no-wrap
  2287. msgid "GNU Guix Reference Manual"
  2288. msgstr "GNU Guix 参考手册"
  2289. #. type: include
  2290. #: guix-git/doc/guix.texi:10
  2291. #, no-wrap
  2292. msgid "version.texi"
  2293. msgstr "version-zh_CN.texi"
  2294. #. type: copying
  2295. #: guix-git/doc/guix.texi:99
  2296. msgid "Copyright @copyright{} 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès@* Copyright @copyright{} 2013, 2014, 2016 Andreas Enge@* Copyright @copyright{} 2013 Nikita Karetnikov@* Copyright @copyright{} 2014, 2015, 2016 Alex Kost@* Copyright @copyright{} 2015, 2016 Mathieu Lirzin@* Copyright @copyright{} 2014 Pierre-Antoine Rault@* Copyright @copyright{} 2015 Taylan Ulrich Bayırlı/Kammer@* Copyright @copyright{} 2015, 2016, 2017, 2019, 2020, 2021 Leo Famulari@* Copyright @copyright{} 2015, 2016, 2017, 2018, 2019, 2020 Ricardo Wurmus@* Copyright @copyright{} 2016 Ben Woodcroft@* Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner@* Copyright @copyright{} 2016 John Darrington@* Copyright @copyright{} 2016, 2017 Nikita Gillmann@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020 Jan Nieuwenhuizen@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Julien Lepiller@* Copyright @copyright{} 2016 Alex ter Weele@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Christopher Baines@* Copyright @copyright{} 2017, 2018, 2019 Clément Lassieur@* Copyright @copyright{} 2017, 2018, 2020, 2021 Mathieu Othacehe@* Copyright @copyright{} 2017 Federico Beffa@* Copyright @copyright{} 2017, 2018 Carlo Zancanaro@* Copyright @copyright{} 2017 Thomas Danckaert@* Copyright @copyright{} 2017 humanitiesNerd@* Copyright @copyright{} 2017, 2021 Christine Lemmer-Webber@* Copyright @copyright{} 2017, 2018, 2019, 2020 Marius Bakke@* Copyright @copyright{} 2017, 2019, 2020 Hartmut Goebel@* Copyright @copyright{} 2017, 2019, 2020, 2021 Maxim Cournoyer@* Copyright @copyright{} 2017, 2018, 2019, 2020, 2021 Tobias Geerinckx-Rice@* Copyright @copyright{} 2017 George Clemmer@* Copyright @copyright{} 2017 Andy Wingo@* Copyright @copyright{} 2017, 2018, 2019, 2020 Arun Isaac@* Copyright @copyright{} 2017 nee@* Copyright @copyright{} 2018 Rutger Helling@* Copyright @copyright{} 2018, 2021 Oleg Pykhalov@* Copyright @copyright{} 2018 Mike Gerwitz@* Copyright @copyright{} 2018 Pierre-Antoine Rouby@* Copyright @copyright{} 2018, 2019 Gábor Boskovits@* Copyright @copyright{} 2018, 2019, 2020 Florian Pelz@* Copyright @copyright{} 2018 Laura Lazzati@* Copyright @copyright{} 2018 Alex Vong@* Copyright @copyright{} 2019 Josh Holland@* Copyright @copyright{} 2019, 2020 Diego Nicola Barbato@* Copyright @copyright{} 2019 Ivan Petkov@* Copyright @copyright{} 2019 Jakob L. Kreuze@* Copyright @copyright{} 2019 Kyle Andrews@* Copyright @copyright{} 2019 Alex Griffin@* Copyright @copyright{} 2019, 2020, 2021 Guillaume Le Vaillant@* Copyright @copyright{} 2020 Leo Prikler@* Copyright @copyright{} 2019, 2020 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* Copyright @copyright{} 2020 Damien Cassou@* Copyright @copyright{} 2020 Jakub Kądziołka@* Copyright @copyright{} 2020 Jack Hill@* Copyright @copyright{} 2020 Naga Malleswari@* Copyright @copyright{} 2020, 2021 Brice Waegeneire@* Copyright @copyright{} 2020 R Veera Kumar@* Copyright @copyright{} 2020 Pierre Langlois@* Copyright @copyright{} 2020 pinoaffe@* Copyright @copyright{} 2020 André Batista@* Copyright @copyright{} 2020, 2021 Alexandru-Sergiu Marton@* Copyright @copyright{} 2020 raingloom@* Copyright @copyright{} 2020 Daniel Brooks@* Copyright @copyright{} 2020 John Soo@* Copyright @copyright{} 2020 Jonathan Brielmaier@* Copyright @copyright{} 2020 Edgar Vincent@* Copyright @copyright{} 2021 Maxime Devos@* Copyright @copyright{} 2021 B. Wilson@* Copyright @copyright{} 2021 Xinglu Chen@* Copyright @copyright{} 2021 Raghav Gururajan@* Copyright @copyright{} 2021 Domagoj Stolfa@* Copyright @copyright{} 2021 Hui Lu@* Copyright @copyright{} 2021 pukkamustard@* Copyright @copyright{} 2021 Alice Brenon@*"
  2297. msgstr ""
  2298. #. type: copying
  2299. #: guix-git/doc/guix.texi:106
  2300. msgid "Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''."
  2301. msgstr "Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''."
  2302. #. type: dircategory
  2303. #: guix-git/doc/guix.texi:108
  2304. #, no-wrap
  2305. msgid "System administration"
  2306. msgstr "系统管理"
  2307. #. type: menuentry
  2308. #: guix-git/doc/guix.texi:116
  2309. msgid "Guix: (guix)"
  2310. msgstr "Guix:(guix)"
  2311. #. type: menuentry
  2312. #: guix-git/doc/guix.texi:116
  2313. msgid "Manage installed software and system configuration."
  2314. msgstr "管理安装的软件和系统配置。"
  2315. #. type: menuentry
  2316. #: guix-git/doc/guix.texi:116
  2317. msgid "guix package: (guix)Invoking guix package"
  2318. msgstr "guix package:调用guix package"
  2319. #. type: menuentry
  2320. #: guix-git/doc/guix.texi:116
  2321. msgid "Installing, removing, and upgrading packages."
  2322. msgstr "安装、删除和升级软件包。"
  2323. #. type: menuentry
  2324. #: guix-git/doc/guix.texi:116
  2325. msgid "guix gc: (guix)Invoking guix gc"
  2326. msgstr "guix gc:调用guix gc"
  2327. #. type: menuentry
  2328. #: guix-git/doc/guix.texi:116
  2329. msgid "Reclaiming unused disk space."
  2330. msgstr "回收不使用的硬盘空间。"
  2331. #. type: menuentry
  2332. #: guix-git/doc/guix.texi:116
  2333. msgid "guix pull: (guix)Invoking guix pull"
  2334. msgstr "guix pull:调用guix pull"
  2335. #. type: menuentry
  2336. #: guix-git/doc/guix.texi:116
  2337. msgid "Update the list of available packages."
  2338. msgstr "更新可用的软件包列表。"
  2339. #. type: menuentry
  2340. #: guix-git/doc/guix.texi:116
  2341. msgid "guix system: (guix)Invoking guix system"
  2342. msgstr "guix system:调用guix system"
  2343. #. type: menuentry
  2344. #: guix-git/doc/guix.texi:116
  2345. msgid "Manage the operating system configuration."
  2346. msgstr "管理操作系统配置。"
  2347. #. type: menuentry
  2348. #: guix-git/doc/guix.texi:116
  2349. #, fuzzy
  2350. msgid "guix deploy: (guix)Invoking guix deploy"
  2351. msgstr "guix pull:调用guix pull"
  2352. #. type: menuentry
  2353. #: guix-git/doc/guix.texi:116
  2354. #, fuzzy
  2355. msgid "Manage operating system configurations for remote hosts."
  2356. msgstr "管理操作系统配置。"
  2357. #. type: dircategory
  2358. #: guix-git/doc/guix.texi:118
  2359. #, no-wrap
  2360. msgid "Software development"
  2361. msgstr "软件开发"
  2362. #. type: menuentry
  2363. #: guix-git/doc/guix.texi:123
  2364. msgid "guix environment: (guix)Invoking guix environment"
  2365. msgstr "guix environment:调用guix environment"
  2366. #. type: menuentry
  2367. #: guix-git/doc/guix.texi:123
  2368. msgid "Building development environments with Guix."
  2369. msgstr "用Guix构建开发环境。"
  2370. #. type: menuentry
  2371. #: guix-git/doc/guix.texi:123
  2372. msgid "guix build: (guix)Invoking guix build"
  2373. msgstr "guix build:(guix)调用guix build"
  2374. #. type: menuentry
  2375. #: guix-git/doc/guix.texi:123
  2376. msgid "Building packages."
  2377. msgstr "构建软件包。"
  2378. #. type: menuentry
  2379. #: guix-git/doc/guix.texi:123
  2380. msgid "guix pack: (guix)Invoking guix pack"
  2381. msgstr "guix pack:(guix)调用guix pack"
  2382. #. type: menuentry
  2383. #: guix-git/doc/guix.texi:123
  2384. msgid "Creating binary bundles."
  2385. msgstr "创建二进制bundle。"
  2386. #. type: subtitle
  2387. #: guix-git/doc/guix.texi:127
  2388. #, no-wrap
  2389. msgid "Using the GNU Guix Functional Package Manager"
  2390. msgstr "使用GNU Guix函数式包管理器"
  2391. #. type: author
  2392. #: guix-git/doc/guix.texi:128
  2393. #, no-wrap
  2394. msgid "The GNU Guix Developers"
  2395. msgstr "GNU Guix开发者"
  2396. #. type: titlepage
  2397. #: guix-git/doc/guix.texi:134
  2398. msgid "Edition @value{EDITION} @* @value{UPDATED} @*"
  2399. msgstr "版本@value{EDITION} @* @value{UPDATED} @*"
  2400. #. type: node
  2401. #: guix-git/doc/guix.texi:141
  2402. #, no-wrap
  2403. msgid "Top"
  2404. msgstr "Top"
  2405. #. type: top
  2406. #: guix-git/doc/guix.texi:142
  2407. #, no-wrap
  2408. msgid "GNU Guix"
  2409. msgstr "GNU Guix"
  2410. #. type: Plain text
  2411. #: guix-git/doc/guix.texi:146
  2412. msgid "This document describes GNU Guix version @value{VERSION}, a functional package management tool written for the GNU system."
  2413. msgstr "这份文档介绍GNU Guix版本@value{VERSION},一个为GNU系统编写的函数式包管理器。"
  2414. #. You can replace the following paragraph with information on
  2415. #. type: Plain text
  2416. #: guix-git/doc/guix.texi:158
  2417. #, fuzzy
  2418. msgid "This manual is also available in Simplified Chinese (@pxref{Top,,, guix.zh_CN, GNU Guix参考手册}), French (@pxref{Top,,, guix.fr, Manuel de référence de GNU Guix}), German (@pxref{Top,,, guix.de, Referenzhandbuch zu GNU Guix}), Spanish (@pxref{Top,,, guix.es, Manual de referencia de GNU Guix}), and Russian (@pxref{Top,,, guix.ru, Руководство GNU Guix}). If you would like to translate it in your native language, consider joining @uref{https://translate.fedoraproject.org/projects/guix/documentation-manual, Weblate} (@pxref{Translating Guix})."
  2419. msgstr "这个用户手册还提供简体中文版(@pxref{Top,,, guix.zh_CN, GNU Guix参考手册}),法语版(@pxref{Top,,, guix.fr, Manuel de référence de GNU Guix}),德语版(@pxref{Top,,, guix.de, Referenzhandbuch zu GNU Guix}),和西班牙语版(@pxref{Top,,, guix.es, Manual de referencia de GNU Guix})。如果你想把它翻译成你的母语,请考虑加入@uref{https://translationproject.org/domain/guix-manual.html, Translation Project}。"
  2420. #. type: chapter
  2421. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:186
  2422. #: guix-git/doc/guix.texi:387 guix-git/doc/guix.texi:388
  2423. #, no-wrap
  2424. msgid "Introduction"
  2425. msgstr "介绍"
  2426. #. type: menuentry
  2427. #: guix-git/doc/guix.texi:176
  2428. msgid "What is Guix about?"
  2429. msgstr "Guix是关于什么的?"
  2430. #. type: chapter
  2431. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:191
  2432. #: guix-git/doc/guix.texi:568 guix-git/doc/guix.texi:569
  2433. #, no-wrap
  2434. msgid "Installation"
  2435. msgstr "安装"
  2436. #. type: menuentry
  2437. #: guix-git/doc/guix.texi:176
  2438. msgid "Installing Guix."
  2439. msgstr "安装Guix。"
  2440. #. type: chapter
  2441. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:207
  2442. #: guix-git/doc/guix.texi:2015 guix-git/doc/guix.texi:2016
  2443. #, no-wrap
  2444. msgid "System Installation"
  2445. msgstr "系统安装"
  2446. #. type: menuentry
  2447. #: guix-git/doc/guix.texi:176
  2448. msgid "Installing the whole operating system."
  2449. msgstr "安装整个操作系统。"
  2450. #. type: chapter
  2451. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:2732
  2452. #: guix-git/doc/guix.texi:2733
  2453. #, no-wrap
  2454. msgid "Getting Started"
  2455. msgstr "入门"
  2456. #. type: menuentry
  2457. #: guix-git/doc/guix.texi:176
  2458. msgid "Your first steps."
  2459. msgstr ""
  2460. #. type: chapter
  2461. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:224
  2462. #: guix-git/doc/guix.texi:2940 guix-git/doc/guix.texi:2941
  2463. #, no-wrap
  2464. msgid "Package Management"
  2465. msgstr "软件包管理"
  2466. #. type: menuentry
  2467. #: guix-git/doc/guix.texi:176
  2468. msgid "Package installation, upgrade, etc."
  2469. msgstr "软件包安装、升级等。"
  2470. #. type: chapter
  2471. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:247
  2472. #: guix-git/doc/guix.texi:4995 guix-git/doc/guix.texi:4996
  2473. #, no-wrap
  2474. msgid "Channels"
  2475. msgstr "通道"
  2476. #. type: menuentry
  2477. #: guix-git/doc/guix.texi:176
  2478. msgid "Customizing the package collection."
  2479. msgstr "定制软件包集合。"
  2480. #. type: chapter
  2481. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:261
  2482. #: guix-git/doc/guix.texi:5523 guix-git/doc/guix.texi:5524
  2483. #, no-wrap
  2484. msgid "Development"
  2485. msgstr "开发"
  2486. #. type: menuentry
  2487. #: guix-git/doc/guix.texi:176
  2488. msgid "Guix-aided software development."
  2489. msgstr "Guix辅助的软件开发。"
  2490. #. type: chapter
  2491. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:268
  2492. #: guix-git/doc/guix.texi:6378 guix-git/doc/guix.texi:6379
  2493. #, no-wrap
  2494. msgid "Programming Interface"
  2495. msgstr "编程接口"
  2496. #. type: menuentry
  2497. #: guix-git/doc/guix.texi:176
  2498. msgid "Using Guix in Scheme."
  2499. msgstr "在Scheme里使用Guix。"
  2500. #. type: chapter
  2501. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:287
  2502. #: guix-git/doc/guix.texi:10199 guix-git/doc/guix.texi:10200
  2503. #, no-wrap
  2504. msgid "Utilities"
  2505. msgstr "工具"
  2506. #. type: menuentry
  2507. #: guix-git/doc/guix.texi:176
  2508. msgid "Package management commands."
  2509. msgstr "软件包管理命令。"
  2510. #. type: chapter
  2511. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:312
  2512. #: guix-git/doc/guix.texi:13462 guix-git/doc/guix.texi:13463
  2513. #, no-wrap
  2514. msgid "System Configuration"
  2515. msgstr "系统配置"
  2516. #. type: menuentry
  2517. #: guix-git/doc/guix.texi:176
  2518. msgid "Configuring the operating system."
  2519. msgstr "配置操作系统。"
  2520. #. type: chapter
  2521. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:35094
  2522. #: guix-git/doc/guix.texi:35095
  2523. #, no-wrap
  2524. msgid "Documentation"
  2525. msgstr "文档"
  2526. #. type: menuentry
  2527. #: guix-git/doc/guix.texi:176
  2528. msgid "Browsing software user manuals."
  2529. msgstr "浏览软件用户手册。"
  2530. #. type: chapter
  2531. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:374
  2532. #: guix-git/doc/guix.texi:35158 guix-git/doc/guix.texi:35159
  2533. #, no-wrap
  2534. msgid "Installing Debugging Files"
  2535. msgstr "安装调试文件"
  2536. #. type: menuentry
  2537. #: guix-git/doc/guix.texi:176
  2538. msgid "Feeding the debugger."
  2539. msgstr "为调试工具提供输入。"
  2540. #. type: chapter
  2541. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:35299
  2542. #: guix-git/doc/guix.texi:35300
  2543. #, no-wrap
  2544. msgid "Security Updates"
  2545. msgstr "安全更新"
  2546. #. type: menuentry
  2547. #: guix-git/doc/guix.texi:176
  2548. msgid "Deploying security fixes quickly."
  2549. msgstr "快速部署安全补丁。"
  2550. #. type: chapter
  2551. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:379
  2552. #: guix-git/doc/guix.texi:35414 guix-git/doc/guix.texi:35415
  2553. #, no-wrap
  2554. msgid "Bootstrapping"
  2555. msgstr "引导"
  2556. #. type: menuentry
  2557. #: guix-git/doc/guix.texi:176
  2558. msgid "GNU/Linux built from scratch."
  2559. msgstr "从头开始构建GNU/Linux。"
  2560. #. type: node
  2561. #: guix-git/doc/guix.texi:176 guix-git/doc/guix.texi:35706
  2562. #, no-wrap
  2563. msgid "Porting"
  2564. msgstr "移植"
  2565. #. type: menuentry
  2566. #: guix-git/doc/guix.texi:176
  2567. msgid "Targeting another platform or kernel."
  2568. msgstr "以别的平台或内核为目标。"
  2569. #. type: menuentry
  2570. #: guix-git/doc/guix.texi:176
  2571. msgid "Your help needed!"
  2572. msgstr "你需要帮助!"
  2573. #. type: chapter
  2574. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:35754
  2575. #: guix-git/doc/guix.texi:35755
  2576. #, no-wrap
  2577. msgid "Acknowledgments"
  2578. msgstr "致谢"
  2579. #. type: menuentry
  2580. #: guix-git/doc/guix.texi:181
  2581. msgid "Thanks!"
  2582. msgstr "感谢!"
  2583. #. type: appendix
  2584. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:35776
  2585. #: guix-git/doc/guix.texi:35777
  2586. #, no-wrap
  2587. msgid "GNU Free Documentation License"
  2588. msgstr "GNU自由文档许可证"
  2589. #. type: menuentry
  2590. #: guix-git/doc/guix.texi:181
  2591. msgid "The license of this manual."
  2592. msgstr "这个用户手册的许可证。"
  2593. #. type: unnumbered
  2594. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:35782
  2595. #: guix-git/doc/guix.texi:35783
  2596. #, no-wrap
  2597. msgid "Concept Index"
  2598. msgstr "概念索引"
  2599. #. type: menuentry
  2600. #: guix-git/doc/guix.texi:181
  2601. msgid "Concepts."
  2602. msgstr "概念。"
  2603. #. type: unnumbered
  2604. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:35786
  2605. #: guix-git/doc/guix.texi:35787
  2606. #, no-wrap
  2607. msgid "Programming Index"
  2608. msgstr "编程索引"
  2609. #. type: menuentry
  2610. #: guix-git/doc/guix.texi:181
  2611. msgid "Data types, functions, and variables."
  2612. msgstr "数据类型、函数和变量。"
  2613. #. type: menuentry
  2614. #: guix-git/doc/guix.texi:184
  2615. msgid "--- The Detailed Node Listing ---"
  2616. msgstr "---详细的章节列表---"
  2617. #. type: section
  2618. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:414
  2619. #: guix-git/doc/guix.texi:416 guix-git/doc/guix.texi:417
  2620. #, no-wrap
  2621. msgid "Managing Software the Guix Way"
  2622. msgstr "以Guix的方式管理软件"
  2623. #. type: menuentry
  2624. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:414
  2625. msgid "What's special."
  2626. msgstr "特殊的地方。"
  2627. #. type: section
  2628. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:414
  2629. #: guix-git/doc/guix.texi:471 guix-git/doc/guix.texi:472
  2630. #, no-wrap
  2631. msgid "GNU Distribution"
  2632. msgstr "GNU发行版"
  2633. #. type: menuentry
  2634. #: guix-git/doc/guix.texi:189 guix-git/doc/guix.texi:414
  2635. msgid "The packages and tools."
  2636. msgstr "软件包和工具。"
  2637. #. type: section
  2638. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2639. #: guix-git/doc/guix.texi:610 guix-git/doc/guix.texi:611
  2640. #, no-wrap
  2641. msgid "Binary Installation"
  2642. msgstr "二进制文件安装"
  2643. #. type: menuentry
  2644. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2645. msgid "Getting Guix running in no time!"
  2646. msgstr "立刻运行Guix!"
  2647. #. type: section
  2648. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2649. #: guix-git/doc/guix.texi:838 guix-git/doc/guix.texi:839
  2650. #, no-wrap
  2651. msgid "Requirements"
  2652. msgstr "需求"
  2653. #. type: menuentry
  2654. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2655. msgid "Software needed to build and run Guix."
  2656. msgstr "构建和运行Guix需要的软件。"
  2657. #. type: section
  2658. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2659. #: guix-git/doc/guix.texi:924 guix-git/doc/guix.texi:925
  2660. #, no-wrap
  2661. msgid "Running the Test Suite"
  2662. msgstr "运行测试套件"
  2663. #. type: menuentry
  2664. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2665. msgid "Testing Guix."
  2666. msgstr "测试Guix。"
  2667. #. type: section
  2668. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:201
  2669. #: guix-git/doc/guix.texi:608 guix-git/doc/guix.texi:1021
  2670. #: guix-git/doc/guix.texi:1022
  2671. #, no-wrap
  2672. msgid "Setting Up the Daemon"
  2673. msgstr "设置后台进程"
  2674. #. type: menuentry
  2675. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2676. msgid "Preparing the build daemon's environment."
  2677. msgstr "准备“构建后台进程”的环境。"
  2678. #. type: node
  2679. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2680. #: guix-git/doc/guix.texi:1491
  2681. #, no-wrap
  2682. msgid "Invoking guix-daemon"
  2683. msgstr "调用guix-daemon"
  2684. #. type: menuentry
  2685. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2686. msgid "Running the build daemon."
  2687. msgstr "运行“构建后台进程”"
  2688. #. type: section
  2689. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2690. #: guix-git/doc/guix.texi:1793 guix-git/doc/guix.texi:1794
  2691. #, no-wrap
  2692. msgid "Application Setup"
  2693. msgstr "设置应用程序"
  2694. #. type: menuentry
  2695. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2696. msgid "Application-specific setup."
  2697. msgstr "应用程序相关的设置。"
  2698. #. type: section
  2699. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2700. #: guix-git/doc/guix.texi:1978 guix-git/doc/guix.texi:1979
  2701. #, fuzzy, no-wrap
  2702. msgid "Upgrading Guix"
  2703. msgstr "安装Guix"
  2704. #. type: menuentry
  2705. #: guix-git/doc/guix.texi:199 guix-git/doc/guix.texi:608
  2706. msgid "Upgrading Guix and its build daemon."
  2707. msgstr "升级 Guix 及其构建守护进程。"
  2708. #. type: subsection
  2709. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:1041
  2710. #: guix-git/doc/guix.texi:1043 guix-git/doc/guix.texi:1044
  2711. #, no-wrap
  2712. msgid "Build Environment Setup"
  2713. msgstr "设置构建环境"
  2714. #. type: menuentry
  2715. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:1041
  2716. msgid "Preparing the isolated build environment."
  2717. msgstr "准备隔离的构建环境。"
  2718. #. type: node
  2719. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:1041
  2720. #: guix-git/doc/guix.texi:1162
  2721. #, no-wrap
  2722. msgid "Daemon Offload Setup"
  2723. msgstr "下发工作给后台进程的设置"
  2724. #. type: menuentry
  2725. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:1041
  2726. msgid "Offloading builds to remote machines."
  2727. msgstr "下发构建工作给远程的机器。"
  2728. #. type: subsection
  2729. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:1041
  2730. #: guix-git/doc/guix.texi:1400 guix-git/doc/guix.texi:1401
  2731. #, no-wrap
  2732. msgid "SELinux Support"
  2733. msgstr "SELinux的支持"
  2734. #. type: menuentry
  2735. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:1041
  2736. msgid "Using an SELinux policy for the daemon."
  2737. msgstr "为后台进程使用SELinux规则。"
  2738. #. type: section
  2739. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:1436
  2740. #: guix-git/doc/guix.texi:2049 guix-git/doc/guix.texi:2051
  2741. #: guix-git/doc/guix.texi:2052
  2742. #, no-wrap
  2743. msgid "Limitations"
  2744. msgstr "限制"
  2745. #. type: menuentry
  2746. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2747. msgid "What you can expect."
  2748. msgstr "你可以期待什么。"
  2749. #. type: section
  2750. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2751. #: guix-git/doc/guix.texi:2077 guix-git/doc/guix.texi:2078
  2752. #, no-wrap
  2753. msgid "Hardware Considerations"
  2754. msgstr "硬件的考虑"
  2755. #. type: menuentry
  2756. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2757. msgid "Supported hardware."
  2758. msgstr "支持的硬件。"
  2759. #. type: section
  2760. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2761. #: guix-git/doc/guix.texi:2112 guix-git/doc/guix.texi:2113
  2762. #, no-wrap
  2763. msgid "USB Stick and DVD Installation"
  2764. msgstr "U盘和DVD安装"
  2765. #. type: menuentry
  2766. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2767. msgid "Preparing the installation medium."
  2768. msgstr "准备安装介质。"
  2769. #. type: section
  2770. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2771. #: guix-git/doc/guix.texi:2193 guix-git/doc/guix.texi:2194
  2772. #, no-wrap
  2773. msgid "Preparing for Installation"
  2774. msgstr "准备安装"
  2775. #. type: menuentry
  2776. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2777. msgid "Networking, partitioning, etc."
  2778. msgstr "网络、分区等。"
  2779. #. type: section
  2780. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2781. #: guix-git/doc/guix.texi:2216 guix-git/doc/guix.texi:2217
  2782. #, no-wrap
  2783. msgid "Guided Graphical Installation"
  2784. msgstr "指导的图形安装"
  2785. #. type: menuentry
  2786. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2787. msgid "Easy graphical installation."
  2788. msgstr "简单的图形安装。"
  2789. #. type: section
  2790. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:219
  2791. #: guix-git/doc/guix.texi:2049 guix-git/doc/guix.texi:2247
  2792. #: guix-git/doc/guix.texi:2248
  2793. #, no-wrap
  2794. msgid "Manual Installation"
  2795. msgstr "手动安装"
  2796. #. type: menuentry
  2797. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2798. msgid "Manual installation for wizards."
  2799. msgstr "适合巫师的手动安装。"
  2800. #. type: section
  2801. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2802. #: guix-git/doc/guix.texi:2615 guix-git/doc/guix.texi:2616
  2803. #, no-wrap
  2804. msgid "After System Installation"
  2805. msgstr "系统安装之后"
  2806. #. type: menuentry
  2807. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2808. msgid "When installation succeeded."
  2809. msgstr "当安装成功后。"
  2810. #. type: node
  2811. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2812. #: guix-git/doc/guix.texi:2649
  2813. #, no-wrap
  2814. msgid "Installing Guix in a VM"
  2815. msgstr "在虚拟机里安装 Guix"
  2816. #. type: menuentry
  2817. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2818. msgid "Guix System playground."
  2819. msgstr "Guix系统游乐场。"
  2820. #. type: section
  2821. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2822. #: guix-git/doc/guix.texi:2700 guix-git/doc/guix.texi:2701
  2823. #, no-wrap
  2824. msgid "Building the Installation Image"
  2825. msgstr "构建安装镜像"
  2826. #. type: menuentry
  2827. #: guix-git/doc/guix.texi:217 guix-git/doc/guix.texi:2049
  2828. msgid "How this comes to be."
  2829. msgstr "这是怎样实现的。"
  2830. #. type: node
  2831. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2265
  2832. #: guix-git/doc/guix.texi:2267
  2833. #, no-wrap
  2834. msgid "Keyboard Layout and Networking and Partitioning"
  2835. msgstr "键盘布局、网络和分区"
  2836. #. type: menuentry
  2837. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2265
  2838. msgid "Initial setup."
  2839. msgstr "初始设置。"
  2840. #. type: subsection
  2841. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2265
  2842. #: guix-git/doc/guix.texi:2527 guix-git/doc/guix.texi:2528
  2843. #, no-wrap
  2844. msgid "Proceeding with the Installation"
  2845. msgstr "继续安装步骤"
  2846. #. type: menuentry
  2847. #: guix-git/doc/guix.texi:222 guix-git/doc/guix.texi:2265
  2848. msgid "Installing."
  2849. msgstr "安装。"
  2850. #. type: section
  2851. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2852. #: guix-git/doc/guix.texi:2974 guix-git/doc/guix.texi:2975
  2853. #, no-wrap
  2854. msgid "Features"
  2855. msgstr "功能"
  2856. #. type: menuentry
  2857. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2858. msgid "How Guix will make your life brighter."
  2859. msgstr "Guix怎样让你的生活更美好。"
  2860. #. type: node
  2861. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2862. #: guix-git/doc/guix.texi:3064
  2863. #, no-wrap
  2864. msgid "Invoking guix package"
  2865. msgstr "调用guix package"
  2866. #. type: menuentry
  2867. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2868. msgid "Package installation, removal, etc."
  2869. msgstr "软件包安装,移除等。"
  2870. #. type: section
  2871. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:237
  2872. #: guix-git/doc/guix.texi:2972 guix-git/doc/guix.texi:3680
  2873. #: guix-git/doc/guix.texi:3681
  2874. #, no-wrap
  2875. msgid "Substitutes"
  2876. msgstr "substitutes"
  2877. #. type: menuentry
  2878. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2879. msgid "Downloading pre-built binaries."
  2880. msgstr "下载构建好的二进制文件。"
  2881. #. type: section
  2882. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2883. #: guix-git/doc/guix.texi:4016 guix-git/doc/guix.texi:4017
  2884. #, no-wrap
  2885. msgid "Packages with Multiple Outputs"
  2886. msgstr "有多个输出的软件包"
  2887. #. type: menuentry
  2888. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2889. msgid "Single source package, multiple outputs."
  2890. msgstr "单个输入多个输出的软件包。"
  2891. #. type: node
  2892. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2893. #: guix-git/doc/guix.texi:4070
  2894. #, no-wrap
  2895. msgid "Invoking guix gc"
  2896. msgstr "调用guix gc"
  2897. #. type: menuentry
  2898. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2899. msgid "Running the garbage collector."
  2900. msgstr "运行垃圾回收器。"
  2901. #. type: node
  2902. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2903. #: guix-git/doc/guix.texi:4280
  2904. #, no-wrap
  2905. msgid "Invoking guix pull"
  2906. msgstr "调用guix pull"
  2907. #. type: menuentry
  2908. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2909. msgid "Fetching the latest Guix and distribution."
  2910. msgstr "获取最新的Guix和发行版。"
  2911. #. type: node
  2912. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2913. #: guix-git/doc/guix.texi:4527
  2914. #, fuzzy, no-wrap
  2915. msgid "Invoking guix time-machine"
  2916. msgstr "调用guix archive"
  2917. #. type: menuentry
  2918. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2919. #, fuzzy
  2920. msgid "Running an older revision of Guix."
  2921. msgstr "和其它版本的Guix交互。"
  2922. #. type: section
  2923. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2924. #: guix-git/doc/guix.texi:4582 guix-git/doc/guix.texi:4583
  2925. #, no-wrap
  2926. msgid "Inferiors"
  2927. msgstr ""
  2928. #. type: menuentry
  2929. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2930. msgid "Interacting with another revision of Guix."
  2931. msgstr "和其它版本的Guix交互。"
  2932. #. type: node
  2933. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2934. #: guix-git/doc/guix.texi:4710
  2935. #, no-wrap
  2936. msgid "Invoking guix describe"
  2937. msgstr "调用guix describe"
  2938. #. type: menuentry
  2939. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2940. msgid "Display information about your Guix revision."
  2941. msgstr "显示你的Guix版本信息。"
  2942. #. type: node
  2943. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2944. #: guix-git/doc/guix.texi:4805
  2945. #, no-wrap
  2946. msgid "Invoking guix archive"
  2947. msgstr "调用guix archive"
  2948. #. type: menuentry
  2949. #: guix-git/doc/guix.texi:235 guix-git/doc/guix.texi:2972
  2950. msgid "Exporting and importing store files."
  2951. msgstr "导出和导入仓库文件。"
  2952. #. type: subsection
  2953. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2954. #: guix-git/doc/guix.texi:3706 guix-git/doc/guix.texi:3707
  2955. #, fuzzy, no-wrap
  2956. #| msgid "Official Substitute Server"
  2957. msgid "Official Substitute Servers"
  2958. msgstr "官方的substitute服务器"
  2959. #. type: menuentry
  2960. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2961. msgid "One particular source of substitutes."
  2962. msgstr "substitute的一个特殊来源。"
  2963. #. type: subsection
  2964. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2965. #: guix-git/doc/guix.texi:3736 guix-git/doc/guix.texi:3737
  2966. #, no-wrap
  2967. msgid "Substitute Server Authorization"
  2968. msgstr "授权substitute服务器。"
  2969. #. type: menuentry
  2970. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2971. msgid "How to enable or disable substitutes."
  2972. msgstr "怎么开启或关闭substitute。"
  2973. #. type: subsection
  2974. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2975. #: guix-git/doc/guix.texi:3806 guix-git/doc/guix.texi:3807
  2976. #, no-wrap
  2977. msgid "Getting Substitutes from Other Servers"
  2978. msgstr ""
  2979. #. type: menuentry
  2980. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2981. #, fuzzy
  2982. msgid "Substitute diversity."
  2983. msgstr "substitutes"
  2984. #. type: subsection
  2985. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2986. #: guix-git/doc/guix.texi:3911 guix-git/doc/guix.texi:3912
  2987. #, no-wrap
  2988. msgid "Substitute Authentication"
  2989. msgstr "验证substitute"
  2990. #. type: menuentry
  2991. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2992. msgid "How Guix verifies substitutes."
  2993. msgstr "Guix怎样验证substitute。"
  2994. #. type: subsection
  2995. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  2996. #: guix-git/doc/guix.texi:3946 guix-git/doc/guix.texi:3947
  2997. #, no-wrap
  2998. msgid "Proxy Settings"
  2999. msgstr "代理设置"
  3000. #. type: menuentry
  3001. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  3002. msgid "How to get substitutes via proxy."
  3003. msgstr "怎样通过代理获取substitute。"
  3004. #. type: subsection
  3005. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  3006. #: guix-git/doc/guix.texi:3958 guix-git/doc/guix.texi:3959
  3007. #, no-wrap
  3008. msgid "Substitution Failure"
  3009. msgstr "substitute失败"
  3010. #. type: menuentry
  3011. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  3012. msgid "What happens when substitution fails."
  3013. msgstr "当substitute失败时会发生什么。"
  3014. #. type: subsection
  3015. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  3016. #: guix-git/doc/guix.texi:3986 guix-git/doc/guix.texi:3987
  3017. #, no-wrap
  3018. msgid "On Trusting Binaries"
  3019. msgstr "关于信任二进制文件"
  3020. #. type: menuentry
  3021. #: guix-git/doc/guix.texi:245 guix-git/doc/guix.texi:3704
  3022. msgid "How can you trust that binary blob?"
  3023. msgstr "你怎么能信任二进制的 blob 呢?"
  3024. #. type: section
  3025. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3026. #: guix-git/doc/guix.texi:5028 guix-git/doc/guix.texi:5029
  3027. #, no-wrap
  3028. msgid "Specifying Additional Channels"
  3029. msgstr ""
  3030. #. type: menuentry
  3031. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3032. msgid "Extending the package collection."
  3033. msgstr "拓展软件包集合。"
  3034. #. type: section
  3035. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3036. #: guix-git/doc/guix.texi:5078 guix-git/doc/guix.texi:5079
  3037. #, no-wrap
  3038. msgid "Using a Custom Guix Channel"
  3039. msgstr ""
  3040. #. type: menuentry
  3041. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3042. msgid "Using a customized Guix."
  3043. msgstr ""
  3044. #. type: section
  3045. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3046. #: guix-git/doc/guix.texi:5100 guix-git/doc/guix.texi:5101
  3047. #, no-wrap
  3048. msgid "Replicating Guix"
  3049. msgstr ""
  3050. #. type: menuentry
  3051. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3052. msgid "Running the @emph{exact same} Guix."
  3053. msgstr ""
  3054. #. type: section
  3055. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3056. #: guix-git/doc/guix.texi:5141 guix-git/doc/guix.texi:5142
  3057. #, fuzzy, no-wrap
  3058. msgid "Channel Authentication"
  3059. msgstr "验证substitute"
  3060. #. type: menuentry
  3061. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3062. #, fuzzy
  3063. msgid "How Guix verifies what it fetches."
  3064. msgstr "Guix怎样验证substitute。"
  3065. #. type: section
  3066. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3067. #: guix-git/doc/guix.texi:5181 guix-git/doc/guix.texi:5182
  3068. #, fuzzy, no-wrap
  3069. msgid "Channels with Substitutes"
  3070. msgstr "分享substitute。"
  3071. #. type: menuentry
  3072. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3073. msgid "Using channels with available substitutes."
  3074. msgstr ""
  3075. #. type: section
  3076. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3077. #: guix-git/doc/guix.texi:5206 guix-git/doc/guix.texi:5207
  3078. #, no-wrap
  3079. msgid "Creating a Channel"
  3080. msgstr "创建一个频道"
  3081. #. type: menuentry
  3082. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3083. msgid "How to write your custom channel."
  3084. msgstr ""
  3085. #. type: section
  3086. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3087. #: guix-git/doc/guix.texi:5273 guix-git/doc/guix.texi:5274
  3088. #, fuzzy, no-wrap
  3089. msgid "Package Modules in a Sub-directory"
  3090. msgstr "软件包模块"
  3091. #. type: menuentry
  3092. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3093. #, fuzzy
  3094. msgid "Specifying the channel's package modules location."
  3095. msgstr "指定如何构建软件包。"
  3096. #. type: section
  3097. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3098. #: guix-git/doc/guix.texi:5287 guix-git/doc/guix.texi:5288
  3099. #, no-wrap
  3100. msgid "Declaring Channel Dependencies"
  3101. msgstr ""
  3102. #. type: menuentry
  3103. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3104. msgid "How to depend on other channels."
  3105. msgstr ""
  3106. #. type: section
  3107. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3108. #: guix-git/doc/guix.texi:5329 guix-git/doc/guix.texi:5330
  3109. #, no-wrap
  3110. msgid "Specifying Channel Authorizations"
  3111. msgstr ""
  3112. #. type: menuentry
  3113. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3114. msgid "Defining channel authors authorizations."
  3115. msgstr ""
  3116. #. type: section
  3117. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3118. #: guix-git/doc/guix.texi:5430 guix-git/doc/guix.texi:5431
  3119. #, no-wrap
  3120. msgid "Primary URL"
  3121. msgstr ""
  3122. #. type: menuentry
  3123. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3124. msgid "Distinguishing mirror to original."
  3125. msgstr ""
  3126. #. type: section
  3127. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3128. #: guix-git/doc/guix.texi:5453 guix-git/doc/guix.texi:5454
  3129. #, no-wrap
  3130. msgid "Writing Channel News"
  3131. msgstr ""
  3132. #. type: menuentry
  3133. #: guix-git/doc/guix.texi:259 guix-git/doc/guix.texi:5026
  3134. msgid "Communicating information to channel's users."
  3135. msgstr ""
  3136. #. type: node
  3137. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3138. #: guix-git/doc/guix.texi:5544
  3139. #, no-wrap
  3140. msgid "Invoking guix environment"
  3141. msgstr "调用guix environment"
  3142. #. type: menuentry
  3143. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3144. msgid "Setting up development environments."
  3145. msgstr "设置开发环境。"
  3146. #. type: node
  3147. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3148. #: guix-git/doc/guix.texi:5904
  3149. #, no-wrap
  3150. msgid "Invoking guix pack"
  3151. msgstr "调用guix pack"
  3152. #. type: menuentry
  3153. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3154. msgid "Creating software bundles."
  3155. msgstr "创建软件bundle。"
  3156. #. type: section
  3157. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3158. #: guix-git/doc/guix.texi:6290 guix-git/doc/guix.texi:6291
  3159. #, no-wrap
  3160. msgid "The GCC toolchain"
  3161. msgstr ""
  3162. #. type: menuentry
  3163. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3164. msgid "Working with languages supported by GCC."
  3165. msgstr ""
  3166. #. type: node
  3167. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3168. #: guix-git/doc/guix.texi:6316
  3169. #, fuzzy, no-wrap
  3170. msgid "Invoking guix git authenticate"
  3171. msgstr "调用guix edit。"
  3172. #. type: menuentry
  3173. #: guix-git/doc/guix.texi:266 guix-git/doc/guix.texi:5542
  3174. #, fuzzy
  3175. msgid "Authenticating Git repositories."
  3176. msgstr "认证HTTPS服务器。"
  3177. #. type: section
  3178. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3179. #: guix-git/doc/guix.texi:6420 guix-git/doc/guix.texi:6421
  3180. #, no-wrap
  3181. msgid "Package Modules"
  3182. msgstr "软件包模块"
  3183. #. type: menuentry
  3184. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3185. msgid "Packages from the programmer's viewpoint."
  3186. msgstr "从程序员的角度看软件包。"
  3187. #. type: section
  3188. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:282
  3189. #: guix-git/doc/guix.texi:6418 guix-git/doc/guix.texi:6482
  3190. #: guix-git/doc/guix.texi:6483
  3191. #, no-wrap
  3192. msgid "Defining Packages"
  3193. msgstr "定义软件包"
  3194. #. type: menuentry
  3195. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3196. msgid "Defining new packages."
  3197. msgstr "定义新软件包。"
  3198. #. type: section
  3199. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3200. #: guix-git/doc/guix.texi:7051 guix-git/doc/guix.texi:7052
  3201. #, fuzzy, no-wrap
  3202. msgid "Defining Package Variants"
  3203. msgstr "定义软件包"
  3204. #. type: menuentry
  3205. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3206. #, fuzzy
  3207. msgid "Customizing packages."
  3208. msgstr "构建软件包。"
  3209. #. type: section
  3210. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3211. #: guix-git/doc/guix.texi:7283 guix-git/doc/guix.texi:7284
  3212. #, no-wrap
  3213. msgid "Build Systems"
  3214. msgstr "构建系统"
  3215. #. type: menuentry
  3216. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3217. msgid "Specifying how packages are built."
  3218. msgstr "指定如何构建软件包。"
  3219. #. type: subsection
  3220. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3221. #: guix-git/doc/guix.texi:8313 guix-git/doc/guix.texi:8314
  3222. #: guix-git/doc/guix.texi:8717
  3223. #, fuzzy, no-wrap
  3224. msgid "Build Phases"
  3225. msgstr "构建系统"
  3226. #. type: menuentry
  3227. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3228. msgid "Phases of the build process of a package."
  3229. msgstr ""
  3230. #. type: section
  3231. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3232. #: guix-git/doc/guix.texi:8507 guix-git/doc/guix.texi:8508
  3233. #, fuzzy, no-wrap
  3234. msgid "Build Utilities"
  3235. msgstr "工具"
  3236. #. type: menuentry
  3237. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3238. #, fuzzy
  3239. msgid "Helpers for your package definitions and more."
  3240. msgstr "导入软件包定义。"
  3241. #. type: section
  3242. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3243. #: guix-git/doc/guix.texi:8794 guix-git/doc/guix.texi:8795
  3244. #, no-wrap
  3245. msgid "The Store"
  3246. msgstr "仓库"
  3247. #. type: menuentry
  3248. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3249. msgid "Manipulating the package store."
  3250. msgstr "操纵软件包仓库。"
  3251. #. type: section
  3252. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3253. #: guix-git/doc/guix.texi:8947 guix-git/doc/guix.texi:8948
  3254. #, no-wrap
  3255. msgid "Derivations"
  3256. msgstr ""
  3257. #. type: menuentry
  3258. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3259. msgid "Low-level interface to package derivations."
  3260. msgstr "软件包derivation的底层接口。"
  3261. #. type: section
  3262. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3263. #: guix-git/doc/guix.texi:9141 guix-git/doc/guix.texi:9142
  3264. #, no-wrap
  3265. msgid "The Store Monad"
  3266. msgstr "仓库monad"
  3267. #. type: menuentry
  3268. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3269. msgid "Purely functional interface to the store."
  3270. msgstr "仓库的纯函数式接口。"
  3271. #. type: section
  3272. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3273. #: guix-git/doc/guix.texi:9460 guix-git/doc/guix.texi:9461
  3274. #, no-wrap
  3275. msgid "G-Expressions"
  3276. msgstr "G-表达式"
  3277. #. type: menuentry
  3278. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3279. msgid "Manipulating build expressions."
  3280. msgstr "操纵构建表达式。"
  3281. #. type: node
  3282. #: guix-git/doc/guix.texi:280 guix-git/doc/guix.texi:6418
  3283. #: guix-git/doc/guix.texi:10099
  3284. #, no-wrap
  3285. msgid "Invoking guix repl"
  3286. msgstr "调用guix repl"
  3287. #. type: menuentry
  3288. #: guix-git/doc/guix.texi:280
  3289. #, fuzzy
  3290. msgid "Programming Guix in Guile."
  3291. msgstr "编程索引"
  3292. #. type: node
  3293. #: guix-git/doc/guix.texi:285 guix-git/doc/guix.texi:6685
  3294. #: guix-git/doc/guix.texi:6688
  3295. #, no-wrap
  3296. msgid "package Reference"
  3297. msgstr "软件包引用"
  3298. #. type: menuentry
  3299. #: guix-git/doc/guix.texi:285 guix-git/doc/guix.texi:6685
  3300. msgid "The package data type."
  3301. msgstr "软件包数据类型。"
  3302. #. type: node
  3303. #: guix-git/doc/guix.texi:285 guix-git/doc/guix.texi:6685
  3304. #: guix-git/doc/guix.texi:6860
  3305. #, no-wrap
  3306. msgid "origin Reference"
  3307. msgstr "origin参考手册"
  3308. #. type: menuentry
  3309. #: guix-git/doc/guix.texi:285 guix-git/doc/guix.texi:6685
  3310. msgid "The origin data type."
  3311. msgstr "origin数据类型。"
  3312. #. type: node
  3313. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3314. #: guix-git/doc/guix.texi:10225
  3315. #, no-wrap
  3316. msgid "Invoking guix build"
  3317. msgstr "调用guix build"
  3318. #. type: menuentry
  3319. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3320. msgid "Building packages from the command line."
  3321. msgstr "用命令行构建软件包。"
  3322. #. type: node
  3323. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3324. #: guix-git/doc/guix.texi:11061
  3325. #, no-wrap
  3326. msgid "Invoking guix edit"
  3327. msgstr "调用guix edit。"
  3328. #. type: menuentry
  3329. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3330. msgid "Editing package definitions."
  3331. msgstr "编辑软件包定义。"
  3332. #. type: node
  3333. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3334. #: guix-git/doc/guix.texi:11091
  3335. #, no-wrap
  3336. msgid "Invoking guix download"
  3337. msgstr "调用guix download"
  3338. #. type: menuentry
  3339. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3340. msgid "Downloading a file and printing its hash."
  3341. msgstr "下载一个文件并打印它的hash。"
  3342. #. type: node
  3343. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3344. #: guix-git/doc/guix.texi:11149
  3345. #, no-wrap
  3346. msgid "Invoking guix hash"
  3347. msgstr "调用guix hash"
  3348. #. type: menuentry
  3349. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3350. msgid "Computing the cryptographic hash of a file."
  3351. msgstr "计算一个文件的密码学hash。"
  3352. #. type: node
  3353. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3354. #: guix-git/doc/guix.texi:11221
  3355. #, no-wrap
  3356. msgid "Invoking guix import"
  3357. msgstr "调用guix import"
  3358. #. type: menuentry
  3359. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3360. msgid "Importing package definitions."
  3361. msgstr "导入软件包定义。"
  3362. #. type: node
  3363. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3364. #: guix-git/doc/guix.texi:11747
  3365. #, no-wrap
  3366. msgid "Invoking guix refresh"
  3367. msgstr "调用guix refresh"
  3368. #. type: menuentry
  3369. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3370. msgid "Updating package definitions."
  3371. msgstr "更新软件包定义。"
  3372. #. type: node
  3373. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3374. #: guix-git/doc/guix.texi:12085
  3375. #, no-wrap
  3376. msgid "Invoking guix lint"
  3377. msgstr "调用guix lint"
  3378. #. type: menuentry
  3379. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3380. msgid "Finding errors in package definitions."
  3381. msgstr "从软件包定义里寻找错误。"
  3382. #. type: node
  3383. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3384. #: guix-git/doc/guix.texi:12254
  3385. #, no-wrap
  3386. msgid "Invoking guix size"
  3387. msgstr "调用guix size"
  3388. #. type: menuentry
  3389. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3390. msgid "Profiling disk usage."
  3391. msgstr "分析硬盘使用情况。"
  3392. #. type: node
  3393. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3394. #: guix-git/doc/guix.texi:12398
  3395. #, no-wrap
  3396. msgid "Invoking guix graph"
  3397. msgstr "调用guix graph"
  3398. #. type: menuentry
  3399. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3400. msgid "Visualizing the graph of packages."
  3401. msgstr "展示软件包的关系图。"
  3402. #. type: node
  3403. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3404. #: guix-git/doc/guix.texi:12665
  3405. #, no-wrap
  3406. msgid "Invoking guix publish"
  3407. msgstr "调用guix publish"
  3408. #. type: menuentry
  3409. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3410. msgid "Sharing substitutes."
  3411. msgstr "分享substitute。"
  3412. #. type: node
  3413. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3414. #: guix-git/doc/guix.texi:12934
  3415. #, no-wrap
  3416. msgid "Invoking guix challenge"
  3417. msgstr "调用guix challenge"
  3418. #. type: menuentry
  3419. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3420. msgid "Challenging substitute servers."
  3421. msgstr "挑战subtitute服务器。"
  3422. #. type: node
  3423. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3424. #: guix-git/doc/guix.texi:13117
  3425. #, no-wrap
  3426. msgid "Invoking guix copy"
  3427. msgstr "调用guix copy"
  3428. #. type: menuentry
  3429. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3430. msgid "Copying to and from a remote store."
  3431. msgstr "复制到远程的仓库,或从远程的仓库复制。"
  3432. #. type: node
  3433. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3434. #: guix-git/doc/guix.texi:13180
  3435. #, no-wrap
  3436. msgid "Invoking guix container"
  3437. msgstr "调用guix container"
  3438. #. type: menuentry
  3439. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3440. msgid "Process isolation."
  3441. msgstr "进程隔离。"
  3442. #. type: node
  3443. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3444. #: guix-git/doc/guix.texi:13234
  3445. #, no-wrap
  3446. msgid "Invoking guix weather"
  3447. msgstr "调用guix weather"
  3448. #. type: menuentry
  3449. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3450. msgid "Assessing substitute availability."
  3451. msgstr "评估substitute的可用性。"
  3452. #. type: node
  3453. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3454. #: guix-git/doc/guix.texi:13364
  3455. #, no-wrap
  3456. msgid "Invoking guix processes"
  3457. msgstr "调用guix processes"
  3458. #. type: menuentry
  3459. #: guix-git/doc/guix.texi:303 guix-git/doc/guix.texi:10223
  3460. msgid "Listing client processes."
  3461. msgstr "列出客户端进程。"
  3462. #. type: section
  3463. #: guix-git/doc/guix.texi:305 guix-git/doc/guix.texi:10226
  3464. #, no-wrap
  3465. msgid "Invoking @command{guix build}"
  3466. msgstr "调用@command{guix build}"
  3467. #. type: subsection
  3468. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3469. #: guix-git/doc/guix.texi:10279 guix-git/doc/guix.texi:10280
  3470. #, no-wrap
  3471. msgid "Common Build Options"
  3472. msgstr "普通的构建选项"
  3473. #. type: menuentry
  3474. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3475. msgid "Build options for most commands."
  3476. msgstr "大部分命令的构建选项。"
  3477. #. type: subsection
  3478. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3479. #: guix-git/doc/guix.texi:10434 guix-git/doc/guix.texi:10435
  3480. #, no-wrap
  3481. msgid "Package Transformation Options"
  3482. msgstr "软件包变换选项。"
  3483. #. type: menuentry
  3484. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3485. msgid "Creating variants of packages."
  3486. msgstr "创建软件包的变体。"
  3487. #. type: subsection
  3488. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3489. #: guix-git/doc/guix.texi:10743 guix-git/doc/guix.texi:10744
  3490. #, no-wrap
  3491. msgid "Additional Build Options"
  3492. msgstr "额外的构建选项"
  3493. #. type: menuentry
  3494. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3495. msgid "Options specific to 'guix build'."
  3496. msgstr "只属于'guix build'的选项。"
  3497. #. type: subsection
  3498. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3499. #: guix-git/doc/guix.texi:10981 guix-git/doc/guix.texi:10982
  3500. #, no-wrap
  3501. msgid "Debugging Build Failures"
  3502. msgstr "调试构建错误"
  3503. #. type: menuentry
  3504. #: guix-git/doc/guix.texi:310 guix-git/doc/guix.texi:10277
  3505. msgid "Real life packaging experience."
  3506. msgstr "真实的打包经验。"
  3507. #. type: section
  3508. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3509. #: guix-git/doc/guix.texi:13507 guix-git/doc/guix.texi:13508
  3510. #, no-wrap
  3511. msgid "Using the Configuration System"
  3512. msgstr "使用配置系统"
  3513. #. type: menuentry
  3514. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3515. msgid "Customizing your GNU system."
  3516. msgstr "定制你的GNU系统。"
  3517. #. type: node
  3518. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3519. #: guix-git/doc/guix.texi:13758
  3520. #, no-wrap
  3521. msgid "operating-system Reference"
  3522. msgstr "操作系统参考"
  3523. #. type: menuentry
  3524. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3525. msgid "Detail of operating-system declarations."
  3526. msgstr "操作系统声明详情。"
  3527. #. type: section
  3528. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3529. #: guix-git/doc/guix.texi:14010 guix-git/doc/guix.texi:14011
  3530. #, no-wrap
  3531. msgid "File Systems"
  3532. msgstr "文件系统"
  3533. #. type: menuentry
  3534. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3535. msgid "Configuring file system mounts."
  3536. msgstr "设置文件系统挂载。"
  3537. #. type: section
  3538. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3539. #: guix-git/doc/guix.texi:14333 guix-git/doc/guix.texi:14334
  3540. #, no-wrap
  3541. msgid "Mapped Devices"
  3542. msgstr "映射的设备"
  3543. #. type: menuentry
  3544. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3545. msgid "Block device extra processing."
  3546. msgstr "块设备额外的处理。"
  3547. #. type: section
  3548. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3549. #: guix-git/doc/guix.texi:14481 guix-git/doc/guix.texi:14482
  3550. #, no-wrap
  3551. msgid "User Accounts"
  3552. msgstr "用户帐号"
  3553. #. type: menuentry
  3554. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3555. msgid "Specifying user accounts."
  3556. msgstr "指定用户帐号。"
  3557. #. type: section
  3558. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:2274
  3559. #: guix-git/doc/guix.texi:13505 guix-git/doc/guix.texi:14657
  3560. #: guix-git/doc/guix.texi:14658
  3561. #, no-wrap
  3562. msgid "Keyboard Layout"
  3563. msgstr "键盘布局"
  3564. #. type: menuentry
  3565. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3566. msgid "How the system interprets key strokes."
  3567. msgstr "系统怎样理解按键。"
  3568. #. type: section
  3569. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:1801
  3570. #: guix-git/doc/guix.texi:13505 guix-git/doc/guix.texi:14803
  3571. #: guix-git/doc/guix.texi:14804
  3572. #, no-wrap
  3573. msgid "Locales"
  3574. msgstr "区域"
  3575. #. type: menuentry
  3576. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3577. msgid "Language and cultural convention settings."
  3578. msgstr "语言和文化惯例设置。"
  3579. #. type: section
  3580. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:332
  3581. #: guix-git/doc/guix.texi:13505 guix-git/doc/guix.texi:14943
  3582. #: guix-git/doc/guix.texi:14944
  3583. #, no-wrap
  3584. msgid "Services"
  3585. msgstr "服务"
  3586. #. type: menuentry
  3587. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3588. msgid "Specifying system services."
  3589. msgstr "指定系统服务。"
  3590. #. type: section
  3591. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3592. #: guix-git/doc/guix.texi:32688 guix-git/doc/guix.texi:32689
  3593. #, no-wrap
  3594. msgid "Setuid Programs"
  3595. msgstr "setuid程序"
  3596. #. type: menuentry
  3597. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3598. msgid "Programs running with root privileges."
  3599. msgstr "以root权限运行的程序。"
  3600. #. type: section
  3601. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:1950
  3602. #: guix-git/doc/guix.texi:13505 guix-git/doc/guix.texi:32761
  3603. #: guix-git/doc/guix.texi:32762
  3604. #, no-wrap
  3605. msgid "X.509 Certificates"
  3606. msgstr "X.509证书"
  3607. #. type: menuentry
  3608. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3609. msgid "Authenticating HTTPS servers."
  3610. msgstr "认证HTTPS服务器。"
  3611. #. type: section
  3612. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:1844
  3613. #: guix-git/doc/guix.texi:13505 guix-git/doc/guix.texi:32824
  3614. #: guix-git/doc/guix.texi:32825
  3615. #, no-wrap
  3616. msgid "Name Service Switch"
  3617. msgstr "Name Service Switch"
  3618. #. type: menuentry
  3619. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3620. msgid "Configuring libc's name service switch."
  3621. msgstr "设置libc的name service switch。"
  3622. #. type: section
  3623. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3624. #: guix-git/doc/guix.texi:32962 guix-git/doc/guix.texi:32963
  3625. #, no-wrap
  3626. msgid "Initial RAM Disk"
  3627. msgstr "初始的内存虚拟硬盘"
  3628. #. type: menuentry
  3629. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3630. msgid "Linux-Libre bootstrapping."
  3631. msgstr "Linux-Libre引导。"
  3632. #. type: section
  3633. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3634. #: guix-git/doc/guix.texi:33138 guix-git/doc/guix.texi:33139
  3635. #, no-wrap
  3636. msgid "Bootloader Configuration"
  3637. msgstr "引导设置"
  3638. #. type: menuentry
  3639. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3640. msgid "Configuring the boot loader."
  3641. msgstr "设置引导程序。"
  3642. #. type: node
  3643. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3644. #: guix-git/doc/guix.texi:33432
  3645. #, no-wrap
  3646. msgid "Invoking guix system"
  3647. msgstr "调用guix system"
  3648. #. type: menuentry
  3649. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3650. msgid "Instantiating a system configuration."
  3651. msgstr "实例化一个系统配置。"
  3652. #. type: node
  3653. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3654. #: guix-git/doc/guix.texi:34017
  3655. #, no-wrap
  3656. msgid "Invoking guix deploy"
  3657. msgstr "调用 guix deploy"
  3658. #. type: menuentry
  3659. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3660. #, fuzzy
  3661. msgid "Deploying a system configuration to a remote host."
  3662. msgstr "实例化一个系统配置。"
  3663. #. type: node
  3664. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3665. #: guix-git/doc/guix.texi:34223
  3666. #, no-wrap
  3667. msgid "Running Guix in a VM"
  3668. msgstr "在虚拟机里运行Guix"
  3669. #. type: menuentry
  3670. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3671. msgid "How to run Guix System in a virtual machine."
  3672. msgstr "怎样在虚拟机里运行Guix。"
  3673. #. type: section
  3674. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:367
  3675. #: guix-git/doc/guix.texi:13505 guix-git/doc/guix.texi:34357
  3676. #: guix-git/doc/guix.texi:34358
  3677. #, no-wrap
  3678. msgid "Defining Services"
  3679. msgstr "定义服务"
  3680. #. type: menuentry
  3681. #: guix-git/doc/guix.texi:330 guix-git/doc/guix.texi:13505
  3682. msgid "Adding new service definitions."
  3683. msgstr "添加新的服务定义。"
  3684. #. type: subsection
  3685. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3686. #: guix-git/doc/guix.texi:15028 guix-git/doc/guix.texi:15029
  3687. #, no-wrap
  3688. msgid "Base Services"
  3689. msgstr "基础服务"
  3690. #. type: menuentry
  3691. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3692. msgid "Essential system services."
  3693. msgstr "必要的系统服务。"
  3694. #. type: subsection
  3695. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3696. #: guix-git/doc/guix.texi:15955 guix-git/doc/guix.texi:15956
  3697. #, no-wrap
  3698. msgid "Scheduled Job Execution"
  3699. msgstr "执行计划任务"
  3700. #. type: menuentry
  3701. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3702. msgid "The mcron service."
  3703. msgstr "mcron服务。"
  3704. #. type: subsection
  3705. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3706. #: guix-git/doc/guix.texi:16105 guix-git/doc/guix.texi:16106
  3707. #, no-wrap
  3708. msgid "Log Rotation"
  3709. msgstr "日志轮替"
  3710. #. type: menuentry
  3711. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3712. msgid "The rottlog service."
  3713. msgstr "rottlog服务。"
  3714. #. type: subsection
  3715. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3716. #: guix-git/doc/guix.texi:16218 guix-git/doc/guix.texi:16219
  3717. #, no-wrap
  3718. msgid "Networking Services"
  3719. msgstr "网络服务"
  3720. #. type: menuentry
  3721. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3722. msgid "Network setup, SSH daemon, etc."
  3723. msgstr "网络设置,SSH后台进程,等"
  3724. #. type: subsection
  3725. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3726. #: guix-git/doc/guix.texi:17883 guix-git/doc/guix.texi:17884
  3727. #, no-wrap
  3728. msgid "Unattended Upgrades"
  3729. msgstr ""
  3730. #. type: menuentry
  3731. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3732. msgid "Automated system upgrades."
  3733. msgstr ""
  3734. #. type: subsection
  3735. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3736. #: guix-git/doc/guix.texi:18021 guix-git/doc/guix.texi:18022
  3737. #, no-wrap
  3738. msgid "X Window"
  3739. msgstr "X窗口"
  3740. #. type: menuentry
  3741. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3742. msgid "Graphical display."
  3743. msgstr "图形显示器。"
  3744. #. type: subsection
  3745. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3746. #: guix-git/doc/guix.texi:18406 guix-git/doc/guix.texi:18407
  3747. #, no-wrap
  3748. msgid "Printing Services"
  3749. msgstr "打印服务"
  3750. #. type: menuentry
  3751. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3752. msgid "Local and remote printer support."
  3753. msgstr "本地和远程打印机的支持。"
  3754. #. type: subsection
  3755. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3756. #: guix-git/doc/guix.texi:19253 guix-git/doc/guix.texi:19254
  3757. #, no-wrap
  3758. msgid "Desktop Services"
  3759. msgstr "桌面服务"
  3760. #. type: menuentry
  3761. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3762. msgid "D-Bus and desktop services."
  3763. msgstr "D-Bus和桌面服务。"
  3764. #. type: subsection
  3765. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3766. #: guix-git/doc/guix.texi:19771 guix-git/doc/guix.texi:19772
  3767. #, no-wrap
  3768. msgid "Sound Services"
  3769. msgstr "声音服务"
  3770. #. type: menuentry
  3771. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3772. msgid "ALSA and Pulseaudio services."
  3773. msgstr "ALSA和Pulseaudio服务。"
  3774. #. type: subsection
  3775. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3776. #: guix-git/doc/guix.texi:19911 guix-git/doc/guix.texi:19912
  3777. #, no-wrap
  3778. msgid "Database Services"
  3779. msgstr "数据库服务"
  3780. #. type: menuentry
  3781. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3782. msgid "SQL databases, key-value stores, etc."
  3783. msgstr "SQL数据库,键值仓库,等"
  3784. #. type: subsection
  3785. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3786. #: guix-git/doc/guix.texi:20246 guix-git/doc/guix.texi:20247
  3787. #, no-wrap
  3788. msgid "Mail Services"
  3789. msgstr "邮件服务"
  3790. #. type: menuentry
  3791. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3792. msgid "IMAP, POP3, SMTP, and all that."
  3793. msgstr "IMAP,POP3,SMTP,等"
  3794. #. type: subsection
  3795. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3796. #: guix-git/doc/guix.texi:22105 guix-git/doc/guix.texi:22106
  3797. #, no-wrap
  3798. msgid "Messaging Services"
  3799. msgstr "消息服务"
  3800. #. type: menuentry
  3801. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3802. msgid "Messaging services."
  3803. msgstr "消息服务。"
  3804. #. type: subsection
  3805. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3806. #: guix-git/doc/guix.texi:22608 guix-git/doc/guix.texi:22609
  3807. #, no-wrap
  3808. msgid "Telephony Services"
  3809. msgstr "电话服务"
  3810. #. type: menuentry
  3811. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3812. msgid "Telephony services."
  3813. msgstr "电话服务。"
  3814. #. type: subsection
  3815. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3816. #: guix-git/doc/guix.texi:23839 guix-git/doc/guix.texi:23840
  3817. #, no-wrap
  3818. msgid "Monitoring Services"
  3819. msgstr "监控服务"
  3820. #. type: menuentry
  3821. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3822. msgid "Monitoring services."
  3823. msgstr "监控服务。"
  3824. #. type: subsection
  3825. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3826. #: guix-git/doc/guix.texi:24350 guix-git/doc/guix.texi:24351
  3827. #, no-wrap
  3828. msgid "Kerberos Services"
  3829. msgstr "Kerberos服务"
  3830. #. type: menuentry
  3831. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3832. msgid "Kerberos services."
  3833. msgstr "Kerberos服务。"
  3834. #. type: subsection
  3835. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3836. #: guix-git/doc/guix.texi:24476 guix-git/doc/guix.texi:24477
  3837. #, no-wrap
  3838. msgid "LDAP Services"
  3839. msgstr ""
  3840. #. type: menuentry
  3841. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3842. msgid "LDAP services."
  3843. msgstr ""
  3844. #. type: subsection
  3845. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3846. #: guix-git/doc/guix.texi:24955 guix-git/doc/guix.texi:24956
  3847. #, no-wrap
  3848. msgid "Web Services"
  3849. msgstr "Web服务"
  3850. #. type: menuentry
  3851. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3852. msgid "Web servers."
  3853. msgstr "Web服务。"
  3854. #. type: subsection
  3855. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3856. #: guix-git/doc/guix.texi:26156 guix-git/doc/guix.texi:26157
  3857. #, no-wrap
  3858. msgid "Certificate Services"
  3859. msgstr "证书服务"
  3860. #. type: menuentry
  3861. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3862. msgid "TLS certificates via Let's Encrypt."
  3863. msgstr "Let's Encrypt TLS证书。"
  3864. #. type: subsection
  3865. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3866. #: guix-git/doc/guix.texi:26337 guix-git/doc/guix.texi:26338
  3867. #, no-wrap
  3868. msgid "DNS Services"
  3869. msgstr "DNS服务"
  3870. #. type: menuentry
  3871. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3872. msgid "DNS daemons."
  3873. msgstr "DNS后台进程。"
  3874. #. type: subsection
  3875. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3876. #: guix-git/doc/guix.texi:27085 guix-git/doc/guix.texi:27086
  3877. #, no-wrap
  3878. msgid "VPN Services"
  3879. msgstr "VPN服务"
  3880. #. type: menuentry
  3881. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3882. msgid "VPN daemons."
  3883. msgstr "VPN后台进程。"
  3884. #. type: subsection
  3885. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3886. #: guix-git/doc/guix.texi:27591 guix-git/doc/guix.texi:27592
  3887. #, no-wrap
  3888. msgid "Network File System"
  3889. msgstr "网络文件系统"
  3890. #. type: menuentry
  3891. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3892. msgid "NFS related services."
  3893. msgstr "网络文件系统相关的服务。"
  3894. #. type: subsection
  3895. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3896. #: guix-git/doc/guix.texi:27787 guix-git/doc/guix.texi:27788
  3897. #, no-wrap
  3898. msgid "Continuous Integration"
  3899. msgstr "持续集成"
  3900. #. type: menuentry
  3901. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3902. #, fuzzy
  3903. msgid "Cuirass and Laminar services."
  3904. msgstr "Cuirass服务。"
  3905. #. type: subsection
  3906. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3907. #: guix-git/doc/guix.texi:28073 guix-git/doc/guix.texi:28074
  3908. #, no-wrap
  3909. msgid "Power Management Services"
  3910. msgstr "电源管理服务"
  3911. #. type: menuentry
  3912. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3913. msgid "Extending battery life."
  3914. msgstr "延长电池寿命。"
  3915. #. type: subsection
  3916. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3917. #: guix-git/doc/guix.texi:28607 guix-git/doc/guix.texi:28608
  3918. #, no-wrap
  3919. msgid "Audio Services"
  3920. msgstr "音频服务"
  3921. #. type: menuentry
  3922. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3923. msgid "The MPD."
  3924. msgstr "MPD。"
  3925. #. type: subsection
  3926. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3927. #: guix-git/doc/guix.texi:28726 guix-git/doc/guix.texi:28727
  3928. #, no-wrap
  3929. msgid "Virtualization Services"
  3930. msgstr "虚拟化服务"
  3931. #. type: menuentry
  3932. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3933. msgid "Virtualization services."
  3934. msgstr "虚拟化服务。"
  3935. #. type: subsection
  3936. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3937. #: guix-git/doc/guix.texi:30341 guix-git/doc/guix.texi:30342
  3938. #, no-wrap
  3939. msgid "Version Control Services"
  3940. msgstr "版本控制服务"
  3941. #. type: menuentry
  3942. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3943. msgid "Providing remote access to Git repositories."
  3944. msgstr "远程访问Git仓库。"
  3945. #. type: subsection
  3946. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3947. #: guix-git/doc/guix.texi:31533 guix-git/doc/guix.texi:31534
  3948. #, no-wrap
  3949. msgid "Game Services"
  3950. msgstr "游戏服务"
  3951. #. type: menuentry
  3952. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3953. msgid "Game servers."
  3954. msgstr "游戏服务器。"
  3955. #. type: subsection
  3956. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3957. #: guix-git/doc/guix.texi:31565 guix-git/doc/guix.texi:31566
  3958. #, fuzzy, no-wrap
  3959. msgid "PAM Mount Service"
  3960. msgstr "声音服务"
  3961. #. type: menuentry
  3962. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3963. msgid "Service to mount volumes when logging in."
  3964. msgstr ""
  3965. #. type: subsection
  3966. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3967. #: guix-git/doc/guix.texi:31648 guix-git/doc/guix.texi:31649
  3968. #, fuzzy, no-wrap
  3969. msgid "Guix Services"
  3970. msgstr "音频服务"
  3971. #. type: menuentry
  3972. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3973. msgid "Services relating specifically to Guix."
  3974. msgstr ""
  3975. #. type: subsection
  3976. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3977. #: guix-git/doc/guix.texi:31932 guix-git/doc/guix.texi:31933
  3978. #, fuzzy, no-wrap
  3979. msgid "Linux Services"
  3980. msgstr "邮件服务"
  3981. #. type: menuentry
  3982. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3983. msgid "Services tied to the Linux kernel."
  3984. msgstr ""
  3985. #. type: subsection
  3986. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3987. #: guix-git/doc/guix.texi:32159 guix-git/doc/guix.texi:32160
  3988. #, fuzzy, no-wrap
  3989. msgid "Hurd Services"
  3990. msgstr "声音服务"
  3991. #. type: menuentry
  3992. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3993. msgid "Services specific for a Hurd System."
  3994. msgstr ""
  3995. #. type: subsection
  3996. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  3997. #: guix-git/doc/guix.texi:32201 guix-git/doc/guix.texi:32202
  3998. #, no-wrap
  3999. msgid "Miscellaneous Services"
  4000. msgstr "其它各种服务"
  4001. #. type: menuentry
  4002. #: guix-git/doc/guix.texi:365 guix-git/doc/guix.texi:15026
  4003. msgid "Other services."
  4004. msgstr "其它服务。"
  4005. #. type: subsection
  4006. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4007. #: guix-git/doc/guix.texi:34371 guix-git/doc/guix.texi:34372
  4008. #, no-wrap
  4009. msgid "Service Composition"
  4010. msgstr "合成服务"
  4011. #. type: menuentry
  4012. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4013. msgid "The model for composing services."
  4014. msgstr "服务合成的模型。"
  4015. #. type: subsection
  4016. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4017. #: guix-git/doc/guix.texi:34427 guix-git/doc/guix.texi:34428
  4018. #, no-wrap
  4019. msgid "Service Types and Services"
  4020. msgstr "服务类型和服务"
  4021. #. type: menuentry
  4022. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4023. msgid "Types and services."
  4024. msgstr "类型和服务。"
  4025. #. type: subsection
  4026. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4027. #: guix-git/doc/guix.texi:34564 guix-git/doc/guix.texi:34565
  4028. #, no-wrap
  4029. msgid "Service Reference"
  4030. msgstr "服务参考"
  4031. #. type: menuentry
  4032. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4033. msgid "API reference."
  4034. msgstr "API参考。"
  4035. #. type: subsection
  4036. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4037. #: guix-git/doc/guix.texi:34874 guix-git/doc/guix.texi:34875
  4038. #, no-wrap
  4039. msgid "Shepherd Services"
  4040. msgstr "Shepherd服务"
  4041. #. type: menuentry
  4042. #: guix-git/doc/guix.texi:372 guix-git/doc/guix.texi:34369
  4043. msgid "A particular type of service."
  4044. msgstr "一种特别的服务。"
  4045. #. type: section
  4046. #: guix-git/doc/guix.texi:377 guix-git/doc/guix.texi:35175
  4047. #: guix-git/doc/guix.texi:35177 guix-git/doc/guix.texi:35178
  4048. #, no-wrap
  4049. msgid "Separate Debug Info"
  4050. msgstr ""
  4051. #. type: menuentry
  4052. #: guix-git/doc/guix.texi:377 guix-git/doc/guix.texi:35175
  4053. #, fuzzy
  4054. msgid "Installing 'debug' outputs."
  4055. msgstr "安装调试文件"
  4056. #. type: section
  4057. #: guix-git/doc/guix.texi:377 guix-git/doc/guix.texi:35175
  4058. #: guix-git/doc/guix.texi:35236 guix-git/doc/guix.texi:35237
  4059. #, no-wrap
  4060. msgid "Rebuilding Debug Info"
  4061. msgstr ""
  4062. #. type: menuentry
  4063. #: guix-git/doc/guix.texi:377 guix-git/doc/guix.texi:35175
  4064. msgid "Building missing debug info."
  4065. msgstr ""
  4066. #. type: node
  4067. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:35453
  4068. #: guix-git/doc/guix.texi:35455
  4069. #, no-wrap
  4070. msgid "Reduced Binary Seed Bootstrap"
  4071. msgstr ""
  4072. #. type: menuentry
  4073. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:35453
  4074. msgid "A Bootstrap worthy of GNU."
  4075. msgstr ""
  4076. #. type: section
  4077. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:35453
  4078. #: guix-git/doc/guix.texi:35530 guix-git/doc/guix.texi:35531
  4079. #, no-wrap
  4080. msgid "Preparing to Use the Bootstrap Binaries"
  4081. msgstr ""
  4082. #. type: menuentry
  4083. #: guix-git/doc/guix.texi:382 guix-git/doc/guix.texi:35453
  4084. msgid "Building that what matters most."
  4085. msgstr ""
  4086. #. type: cindex
  4087. #: guix-git/doc/guix.texi:390
  4088. #, no-wrap
  4089. msgid "purpose"
  4090. msgstr "目的"
  4091. #. type: Plain text
  4092. #: guix-git/doc/guix.texi:398
  4093. msgid "GNU Guix@footnote{``Guix'' is pronounced like ``geeks'', or ``ɡiːks'' using the international phonetic alphabet (IPA).} is a package management tool for and distribution of the GNU system. Guix makes it easy for unprivileged users to install, upgrade, or remove software packages, to roll back to a previous package set, to build packages from source, and generally assists with the creation and maintenance of software environments."
  4094. msgstr "GNU Guix@footnote{``Guix''读做``geeks'',或``ɡiːks''(国际音标)}是GNU系统的包管理器和发行版。Guix让无特权的用户可以轻松地安装,升级,或删除软件包,回滚到前一个软件包集合,从源代码构建软件包,及辅助软件环境的创建和维护。"
  4095. #. type: cindex
  4096. #: guix-git/doc/guix.texi:399 guix-git/doc/guix.texi:474
  4097. #, no-wrap
  4098. msgid "Guix System"
  4099. msgstr "Guix系统"
  4100. #. type: cindex
  4101. #: guix-git/doc/guix.texi:400
  4102. #, no-wrap
  4103. msgid "GuixSD, now Guix System"
  4104. msgstr "GuixSD,现在称为Guix系统"
  4105. #. type: cindex
  4106. #: guix-git/doc/guix.texi:401
  4107. #, no-wrap
  4108. msgid "Guix System Distribution, now Guix System"
  4109. msgstr "Guix系统发行版,现在称为Guix系统"
  4110. #. type: Plain text
  4111. #: guix-git/doc/guix.texi:410
  4112. msgid "You can install GNU@tie{}Guix on top of an existing GNU/Linux system where it complements the available tools without interference (@pxref{Installation}), or you can use it as a standalone operating system distribution, @dfn{Guix@tie{}System}@footnote{We used to refer to Guix System as ``Guix System Distribution'' or ``GuixSD''. We now consider it makes more sense to group everything under the ``Guix'' banner since, after all, Guix System is readily available through the @command{guix system} command, even if you're using a different distro underneath!}. @xref{GNU Distribution}."
  4113. msgstr "你可以在现有的GNU/Linux发行版上安装GNU@tie{}Guix(@pxref{Installation}),Guix可以补充已有的工具,并且不会和它们产生冲突。或者你可以把它当作独立的操作系统发行版(@dfn{Guix@tie{}系统}@footnote{我们以前把Guix系统称为``Guix系统发行版''或``GuixSD''。我们现在觉得把一切都统一在``Guix''的旗帜下更合理,因为,毕竟即使在别的发行版上你也可以随时通过@command{guix system}命令获得Guix系统})。@xref{GNU Distribution}."
  4114. #. type: cindex
  4115. #: guix-git/doc/guix.texi:419
  4116. #, no-wrap
  4117. msgid "user interfaces"
  4118. msgstr "用户界面"
  4119. #. type: Plain text
  4120. #: guix-git/doc/guix.texi:425
  4121. #, fuzzy
  4122. msgid "Guix provides a command-line package management interface (@pxref{Package Management}), tools to help with software development (@pxref{Development}), command-line utilities for more advanced usage (@pxref{Utilities}), as well as Scheme programming interfaces (@pxref{Programming Interface})."
  4123. msgstr "Guix提供了命令行软件包管理接口(@pxref{Package Management}),辅助软件开发的工具(@pxref{Development}),高级用法的命令行接口(@pxref{Utilities}),以及Scheme编程语言接口(@pxref{Programming Interface})。"
  4124. #. type: cindex
  4125. #: guix-git/doc/guix.texi:425
  4126. #, no-wrap
  4127. msgid "build daemon"
  4128. msgstr "构建后台进程"
  4129. #. type: Plain text
  4130. #: guix-git/doc/guix.texi:429
  4131. msgid "Its @dfn{build daemon} is responsible for building packages on behalf of users (@pxref{Setting Up the Daemon}) and for downloading pre-built binaries from authorized sources (@pxref{Substitutes})."
  4132. msgstr "@dfn{构建后台进程}为用户构建软件包(@pxref{Setting Up the Daemon}),及从授权的源(@pxref{Substitutes})下载预构建的二进制文件。"
  4133. #. type: cindex
  4134. #: guix-git/doc/guix.texi:430
  4135. #, no-wrap
  4136. msgid "extensibility of the distribution"
  4137. msgstr "发行版的扩展性"
  4138. #. type: cindex
  4139. #: guix-git/doc/guix.texi:431 guix-git/doc/guix.texi:6442
  4140. #, no-wrap
  4141. msgid "customization, of packages"
  4142. msgstr "定制软件包"
  4143. #. type: Plain text
  4144. #: guix-git/doc/guix.texi:440
  4145. msgid "Guix includes package definitions for many GNU and non-GNU packages, all of which @uref{https://www.gnu.org/philosophy/free-sw.html, respect the user's computing freedom}. It is @emph{extensible}: users can write their own package definitions (@pxref{Defining Packages}) and make them available as independent package modules (@pxref{Package Modules}). It is also @emph{customizable}: users can @emph{derive} specialized package definitions from existing ones, including from the command line (@pxref{Package Transformation Options})."
  4146. msgstr "Guix包含很多GNU和非GNU的软件包定义,所有的这些软件包都@uref{https://www.gnu.org/philosophy/free-sw.html, 尊重用户的自由}。它是@emph{可扩展的}:用户可以编写自己的软件包定义(@pxref{Defining Packages}),并且把它们作为独立的软件包模块@pxref{Package Modules}。它也是@emph{可定制的}:用户可以从现有的软件包定义衍生出特殊的软件包,包括从命令行(@pxref{Package Transformation Options})。"
  4147. #. type: cindex
  4148. #: guix-git/doc/guix.texi:441
  4149. #, no-wrap
  4150. msgid "functional package management"
  4151. msgstr "函数式包管理器"
  4152. #. type: cindex
  4153. #: guix-git/doc/guix.texi:442
  4154. #, no-wrap
  4155. msgid "isolation"
  4156. msgstr "隔离"
  4157. #. type: Plain text
  4158. #: guix-git/doc/guix.texi:457
  4159. msgid "Under the hood, Guix implements the @dfn{functional package management} discipline pioneered by Nix (@pxref{Acknowledgments}). In Guix, the package build and installation process is seen as a @emph{function}, in the mathematical sense. That function takes inputs, such as build scripts, a compiler, and libraries, and returns an installed package. As a pure function, its result depends solely on its inputs---for instance, it cannot refer to software or scripts that were not explicitly passed as inputs. A build function always produces the same result when passed a given set of inputs. It cannot alter the environment of the running system in any way; for instance, it cannot create, modify, or delete files outside of its build and installation directories. This is achieved by running build processes in isolated environments (or @dfn{containers}), where only their explicit inputs are visible."
  4160. msgstr "在底层,Guix实现了由Nix(@pxref{Acknowledgments})开创的@dfn{函数式包管理器}。在Guix里,软件包构建和安装过程被视为数学意义上的@emph{函数}。函数获取输入,如构建脚本、编译器和库,并且返回一个安装好的软件包。作为一个纯函数,它的结果只取决于它的输入--例如,它不能引用没有作为显式输入传入的软件和脚本。当传入特定的输入时,一个构建函数总是得到相同的结果。它不能以任何方式修改运行系统的环境,例如,它不能创建,修改,或删除构建和安装环境之外的文件夹。这是通过在隔离的环境(@dfn{容器})里运行构建进程实现的,在这个环境里只能访问到显式的输入。"
  4161. #. type: cindex
  4162. #: guix-git/doc/guix.texi:458 guix-git/doc/guix.texi:8797
  4163. #, no-wrap
  4164. msgid "store"
  4165. msgstr "仓库"
  4166. #. type: Plain text
  4167. #: guix-git/doc/guix.texi:465
  4168. msgid "The result of package build functions is @dfn{cached} in the file system, in a special directory called @dfn{the store} (@pxref{The Store}). Each package is installed in a directory of its own in the store---by default under @file{/gnu/store}. The directory name contains a hash of all the inputs used to build that package; thus, changing an input yields a different directory name."
  4169. msgstr "软件包构建函数的结果被@dfn{缓存}在文件系统里的一个叫做@dfn{仓库}(@pxref{The Store})的特殊文件夹内。每个软件包都被安装在仓库(默认在@file{/gnu/store})里的一个独立的文件夹内。这个文件夹的名字含有用于构建这个软件包的所有输入的hash,所以,修改输入会得到一个不同的文件夹名。"
  4170. #. type: Plain text
  4171. #: guix-git/doc/guix.texi:469
  4172. msgid "This approach is the foundation for the salient features of Guix: support for transactional package upgrade and rollback, per-user installation, and garbage collection of packages (@pxref{Features})."
  4173. msgstr "这种手段是实现Guix的突出功能的基础:对事务型软件包升级和回滚的支持,每个用户独立的安装,软件包垃圾回收@pxref{Features}。"
  4174. #. type: Plain text
  4175. #: guix-git/doc/guix.texi:484
  4176. msgid "Guix comes with a distribution of the GNU system consisting entirely of free software@footnote{The term ``free'' here refers to the @url{https://www.gnu.org/philosophy/free-sw.html,freedom provided to users of that software}.}. The distribution can be installed on its own (@pxref{System Installation}), but it is also possible to install Guix as a package manager on top of an installed GNU/Linux system (@pxref{Installation}). When we need to distinguish between the two, we refer to the standalone distribution as Guix@tie{}System."
  4177. msgstr "Guix提供了一个GNU系统发行版,这个发新版只包含自由软件@footnote{这里的“自由”指的是@url{https://www.gnu.org/philosophy/free-sw.html,软件提供给用户的自由}。}。这个发行版可以独立安装(@pxref{System Installation}),但是把Guix安装为一个已经安装好的GNU/Linux系统的包管理器也是可行的(@pxref{Installation})。当我们需要区分这两者时,我们把独立的发行版称为“Guix系统”。"
  4178. #. type: Plain text
  4179. #: guix-git/doc/guix.texi:490
  4180. msgid "The distribution provides core GNU packages such as GNU libc, GCC, and Binutils, as well as many GNU and non-GNU applications. The complete list of available packages can be browsed @url{https://www.gnu.org/software/guix/packages,on-line} or by running @command{guix package} (@pxref{Invoking guix package}):"
  4181. msgstr "这个发行版提供了GNU核心软件包,如libc、gcc和Binutils,以及很多GNU和非GNU应用程序。可用的软件包的完整列表可以在@url{https://www.gnu.org/software/guix/packages,on-line}浏览,或者通过运行@command{guix package}(@pxref{Invoking guix package})获得:"
  4182. #. type: example
  4183. #: guix-git/doc/guix.texi:493
  4184. #, no-wrap
  4185. msgid "guix package --list-available\n"
  4186. msgstr "guix package --list-available\n"
  4187. #. type: Plain text
  4188. #: guix-git/doc/guix.texi:499
  4189. msgid "Our goal is to provide a practical 100% free software distribution of Linux-based and other variants of GNU, with a focus on the promotion and tight integration of GNU components, and an emphasis on programs and tools that help users exert that freedom."
  4190. msgstr "我们的目标是提供一个基于Linux和其它GNU变体的可用的100%自由的软件发行版,我们的重点是推广和紧密集成GNU组件,以及强调帮助用户行使那些自由的程序和工具。"
  4191. #. type: Plain text
  4192. #: guix-git/doc/guix.texi:501
  4193. msgid "Packages are currently available on the following platforms:"
  4194. msgstr "目前这些平台提供软件包:"
  4195. #. type: item
  4196. #: guix-git/doc/guix.texi:504 guix-git/doc/guix.texi:2121
  4197. #, no-wrap
  4198. msgid "x86_64-linux"
  4199. msgstr "x86_64-linux"
  4200. #. type: table
  4201. #: guix-git/doc/guix.texi:506
  4202. msgid "Intel/AMD @code{x86_64} architecture, Linux-Libre kernel."
  4203. msgstr "Intel/AMD @code{x86_64} 架构,Linux-Libre 内核。"
  4204. #. type: item
  4205. #: guix-git/doc/guix.texi:507 guix-git/doc/guix.texi:2124
  4206. #, no-wrap
  4207. msgid "i686-linux"
  4208. msgstr "i686-linux"
  4209. #. type: table
  4210. #: guix-git/doc/guix.texi:509
  4211. msgid "Intel 32-bit architecture (IA32), Linux-Libre kernel."
  4212. msgstr "Intel 32 位架构(IA32),Linux-Libre 内核。"
  4213. #. type: item
  4214. #: guix-git/doc/guix.texi:510
  4215. #, no-wrap
  4216. msgid "armhf-linux"
  4217. msgstr "armhf-linux"
  4218. #. type: table
  4219. #: guix-git/doc/guix.texi:514
  4220. msgid "ARMv7-A architecture with hard float, Thumb-2 and NEON, using the EABI hard-float application binary interface (ABI), and Linux-Libre kernel."
  4221. msgstr "ARMv7-A架构,带硬件浮点数、Thumb-2和NEON扩展,EABI硬件浮点数应用二进制接口(ABI),和Linux-Libre内核。"
  4222. #. type: item
  4223. #: guix-git/doc/guix.texi:515
  4224. #, no-wrap
  4225. msgid "aarch64-linux"
  4226. msgstr "aarch64-linux"
  4227. #. type: table
  4228. #: guix-git/doc/guix.texi:517
  4229. #, fuzzy
  4230. msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel."
  4231. msgstr "小端序64位MIPS处理器,龙芯系列,n32 ABI,Linux-Libre内核。"
  4232. #. type: item
  4233. #: guix-git/doc/guix.texi:518
  4234. #, no-wrap
  4235. msgid "i586-gnu"
  4236. msgstr ""
  4237. #. type: table
  4238. #: guix-git/doc/guix.texi:521
  4239. msgid "@uref{https://hurd.gnu.org, GNU/Hurd} on the Intel 32-bit architecture (IA32)."
  4240. msgstr ""
  4241. #. type: table
  4242. #: guix-git/doc/guix.texi:527
  4243. msgid "This configuration is experimental and under development. The easiest way for you to give it a try is by setting up an instance of @code{hurd-vm-service-type} on your GNU/Linux machine (@pxref{transparent-emulation-qemu, @code{hurd-vm-service-type}}). @xref{Contributing}, on how to help!"
  4244. msgstr ""
  4245. #. type: item
  4246. #: guix-git/doc/guix.texi:528
  4247. #, fuzzy, no-wrap
  4248. msgid "mips64el-linux (deprecated)"
  4249. msgstr "mips64el-linux"
  4250. #. type: table
  4251. #: guix-git/doc/guix.texi:534
  4252. msgid "little-endian 64-bit MIPS processors, specifically the Loongson series, n32 ABI, and Linux-Libre kernel. This configuration is no longer fully supported; in particular, there is no ongoing work to ensure that this architecture still works. Should someone decide they wish to revive this architecture then the code is still available."
  4253. msgstr ""
  4254. #. type: table
  4255. #: guix-git/doc/guix.texi:545
  4256. msgid "little-endian 64-bit Power ISA processors, Linux-Libre kernel. This includes POWER9 systems such as the @uref{https://www.fsf.org/news/talos-ii-mainboard-and-talos-ii-lite-mainboard-now-fsf-certified-to-respect-your-freedom, RYF Talos II mainboard}. This platform is available as a \"technology preview\": although it is supported, substitutes are not yet available from the build farm (@pxref{Substitutes}), and some packages may fail to build (@pxref{Tracking Bugs and Patches}). That said, the Guix community is actively working on improving this support, and now is a great time to try it and get involved!"
  4257. msgstr ""
  4258. #. type: Plain text
  4259. #: guix-git/doc/guix.texi:555
  4260. msgid "With Guix@tie{}System, you @emph{declare} all aspects of the operating system configuration and Guix takes care of instantiating the configuration in a transactional, reproducible, and stateless fashion (@pxref{System Configuration}). Guix System uses the Linux-libre kernel, the Shepherd initialization system (@pxref{Introduction,,, shepherd, The GNU Shepherd Manual}), the well-known GNU utilities and tool chain, as well as the graphical environment or system services of your choice."
  4261. msgstr "在Guix系统里,你@emph{声明}操作系统所有方面的配置,然后Guix以事务型的,可重复的,和无状态的方式解决实例化配置的问题(@pxref{System Configuration})。Guix系统使用Linux-Libre内核,Shepherd初始化系统@pxref{Introduction,,, shepherd, GNU Shepherd用户手册},知名的GNU工具和工具链,以及你可选的图形界面环境和系统服务。"
  4262. #. type: Plain text
  4263. #: guix-git/doc/guix.texi:558
  4264. #, fuzzy
  4265. msgid "Guix System is available on all the above platforms except @code{mips64el-linux} and @code{powerpc64le-linux}."
  4266. msgstr "Guix系统在上面所有的平台上都可用,除了@code{mips64el-linux}。"
  4267. #. type: Plain text
  4268. #: guix-git/doc/guix.texi:562
  4269. msgid "For information on porting to other architectures or kernels, @pxref{Porting}."
  4270. msgstr "关于移植到其它架构或内核的信息,@pxref{Porting}。"
  4271. #. type: Plain text
  4272. #: guix-git/doc/guix.texi:565
  4273. msgid "Building this distribution is a cooperative effort, and you are invited to join! @xref{Contributing}, for information about how you can help."
  4274. msgstr "构建这个发行版需要努力合作,欢迎你加入!关于你可以怎样提供帮助的信息,@xref{Contributing}。"
  4275. #. type: cindex
  4276. #: guix-git/doc/guix.texi:571
  4277. #, no-wrap
  4278. msgid "installing Guix"
  4279. msgstr "安装Guix"
  4280. #. type: quotation
  4281. #: guix-git/doc/guix.texi:583
  4282. msgid "We recommend the use of this @uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell installer script} to install Guix on top of a running GNU/Linux system, thereafter called a @dfn{foreign distro}.@footnote{This section is concerned with the installation of the package manager, which can be done on top of a running GNU/Linux system. If, instead, you want to install the complete GNU operating system, @pxref{System Installation}.} The script automates the download, installation, and initial configuration of Guix. It should be run as the root user."
  4283. msgstr "我们推荐使用@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}在已有的GNU/Linux系统(即@dfn{foreign distro})上安装Guix。@footnote{这个小节是关于安装包管理器的,可以在GNU/Linux系统上完成。如果你想安装完整的GNU操作系统,@pxref{System Installation}。}这个脚本自动下载、安装并且初始化Guix,它需要以root用户身份运行。"
  4284. #. type: cindex
  4285. #: guix-git/doc/guix.texi:585 guix-git/doc/guix.texi:1796
  4286. #, no-wrap
  4287. msgid "foreign distro"
  4288. msgstr "别的发行版"
  4289. #. type: cindex
  4290. #: guix-git/doc/guix.texi:586
  4291. #, no-wrap
  4292. msgid "directories related to foreign distro"
  4293. msgstr "和foreign distro相关的文件夹"
  4294. #. type: Plain text
  4295. #: guix-git/doc/guix.texi:591
  4296. msgid "When installed on a foreign distro, GNU@tie{}Guix complements the available tools without interference. Its data lives exclusively in two directories, usually @file{/gnu/store} and @file{/var/guix}; other files on your system, such as @file{/etc}, are left untouched."
  4297. msgstr "在foreign distro上安装时,GNU@tie{}Guix可以在不引起冲突的前提下补充现有的工具。它的数据只存放在两个文件夹里,通常是@file{/gnu/store}和@file{/var/guix};系统上的其它文件,如@file{/etc},不会被修改。"
  4298. #. type: Plain text
  4299. #: guix-git/doc/guix.texi:594
  4300. msgid "Once installed, Guix can be updated by running @command{guix pull} (@pxref{Invoking guix pull})."
  4301. msgstr "一旦安装好了,可以通过运行@command{guix pull}升级Guix(@pxref{Invoking guix pull})。"
  4302. #. type: Plain text
  4303. #: guix-git/doc/guix.texi:599
  4304. msgid "If you prefer to perform the installation steps manually or want to tweak them, you may find the following subsections useful. They describe the software requirements of Guix, as well as how to install it manually and get ready to use it."
  4305. msgstr "如果你希望手动执行安装步骤,或者想改变安装步骤,接下来这些小节会很有用。它们介绍Guix的软件依赖,以及如何手动安装和使用Guix。"
  4306. #. type: cindex
  4307. #: guix-git/doc/guix.texi:613
  4308. #, no-wrap
  4309. msgid "installing Guix from binaries"
  4310. msgstr "用二进制文件安装Guix"
  4311. #. type: cindex
  4312. #: guix-git/doc/guix.texi:614
  4313. #, no-wrap
  4314. msgid "installer script"
  4315. msgstr "安装脚本"
  4316. #. type: Plain text
  4317. #: guix-git/doc/guix.texi:620
  4318. msgid "This section describes how to install Guix on an arbitrary system from a self-contained tarball providing binaries for Guix and for all its dependencies. This is often quicker than installing from source, which is described in the next sections. The only requirement is to have GNU@tie{}tar and Xz."
  4319. msgstr "这个小节介绍如何在任意的系统上用独立的Guix二进制文件包安装Guix和它的依赖。这通常比从源代码安装更快,下一小节会介绍如何从源代码安装。唯一的需求是有GNU@tie{}tar和Xz。"
  4320. #. type: quotation
  4321. #: guix-git/doc/guix.texi:628
  4322. #, fuzzy
  4323. msgid "We recommend the use of this @uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell installer script}. The script automates the download, installation, and initial configuration steps described below. It should be run as the root user. As root, you can thus run this:"
  4324. msgstr "我们推荐使用这个@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}。这个脚本自动执行下述的下载、安装并且初始化Guix的过程。它需要以root用户身份运行。"
  4325. #. type: example
  4326. #: guix-git/doc/guix.texi:634
  4327. #, no-wrap
  4328. msgid ""
  4329. "cd /tmp\n"
  4330. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  4331. "chmod +x guix-install.sh\n"
  4332. "./guix-install.sh\n"
  4333. msgstr ""
  4334. #. type: quotation
  4335. #: guix-git/doc/guix.texi:638
  4336. msgid "When you're done, @pxref{Application Setup} for extra configuration you might need, and @ref{Getting Started} for your first steps!"
  4337. msgstr ""
  4338. #. type: Plain text
  4339. #: guix-git/doc/guix.texi:641
  4340. msgid "Installing goes along these lines:"
  4341. msgstr "安装步骤如下:"
  4342. #. type: cindex
  4343. #: guix-git/doc/guix.texi:644
  4344. #, no-wrap
  4345. msgid "downloading Guix binary"
  4346. msgstr "下载Guix二进制文件"
  4347. #. type: enumerate
  4348. #: guix-git/doc/guix.texi:650
  4349. #, fuzzy
  4350. msgid "Download the binary tarball from @indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz}, where @code{x86_64-linux} can be replaced with @code{i686-linux} for an @code{i686} (32-bits) machine already running the kernel Linux, and so on (@pxref{GNU Distribution})."
  4351. msgstr "从@indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz}下载二进制安装包,对于运行Linux内核的@code{x86_64}机器来说@var{系统}是@code{x86_64-linux},以此类推。"
  4352. #. type: enumerate
  4353. #: guix-git/doc/guix.texi:654
  4354. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the tarball against it, along these lines:"
  4355. msgstr "请确保下载相关的@file{.sig}文件,并且用它验证文件包的可靠性,方法如下:"
  4356. #. type: example
  4357. #: guix-git/doc/guix.texi:658
  4358. #, fuzzy, no-wrap
  4359. msgid ""
  4360. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4361. "$ gpg --verify guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4362. msgstr ""
  4363. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4364. "$ gpg --verify guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4365. #. type: Plain text
  4366. #: guix-git/doc/guix.texi:662 guix-git/doc/guix.texi:2139
  4367. msgid "If that command fails because you do not have the required public key, then run this command to import it:"
  4368. msgstr "如果那个命令因为缺少所需的公钥而失败了,那么用这个命令导入它:"
  4369. #. type: example
  4370. #: guix-git/doc/guix.texi:666
  4371. #, no-wrap
  4372. msgid ""
  4373. "$ wget '@value{OPENPGP-SIGNING-KEY-URL}' \\\n"
  4374. " -qO - | gpg --import -\n"
  4375. msgstr ""
  4376. #. type: Plain text
  4377. #: guix-git/doc/guix.texi:670 guix-git/doc/guix.texi:2147
  4378. msgid "and rerun the @code{gpg --verify} command."
  4379. msgstr "再次运行@code{gpg --verify}命令。"
  4380. #. type: Plain text
  4381. #: guix-git/doc/guix.texi:673 guix-git/doc/guix.texi:2150
  4382. msgid "Take note that a warning like ``This key is not certified with a trusted signature!'' is normal."
  4383. msgstr ""
  4384. #. type: enumerate
  4385. #: guix-git/doc/guix.texi:679
  4386. msgid "Now, you need to become the @code{root} user. Depending on your distribution, you may have to run @code{su -} or @code{sudo -i}. As @code{root}, run:"
  4387. msgstr "现在你需要成为@code{root}用户。基于你的发行版,你可能需要执行@code{su -}或@code{sudo -i}。以@code{root}用户身份,执行:"
  4388. #. type: example
  4389. #: guix-git/doc/guix.texi:685
  4390. #, fuzzy, no-wrap
  4391. msgid ""
  4392. "# cd /tmp\n"
  4393. "# tar --warning=no-timestamp -xf \\\n"
  4394. " /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz\n"
  4395. "# mv var/guix /var/ && mv gnu /\n"
  4396. msgstr ""
  4397. "# cd /tmp\n"
  4398. "# tar --warning=no-timestamp -xf \\\n"
  4399. " guix-binary-@value{VERSION}.@var{系统}.tar.xz\n"
  4400. "# mv var/guix /var/ && mv gnu /\n"
  4401. #. type: enumerate
  4402. #: guix-git/doc/guix.texi:690
  4403. #, fuzzy
  4404. msgid "This creates @file{/gnu/store} (@pxref{The Store}) and @file{/var/guix}. The latter contains a ready-to-use profile for @code{root} (see next step)."
  4405. msgstr "这会创建@file{/gnu/store}(@pxref{The Store})和@file{/var/guix}。后一个文件夹为@code{root}用户提供了一个立即可用的profile(见下一步)。"
  4406. #. type: enumerate
  4407. #: guix-git/doc/guix.texi:693
  4408. msgid "Do @emph{not} unpack the tarball on a working Guix system since that would overwrite its own essential files."
  4409. msgstr "@emph{不要}在一个正常的Guix系统上解压这个文件包,因为那会把现有的重要的文件覆盖。"
  4410. #. type: enumerate
  4411. #: guix-git/doc/guix.texi:703
  4412. #, fuzzy
  4413. msgid "The @option{--warning=no-timestamp} option makes sure GNU@tie{}tar does not emit warnings about ``implausibly old time stamps'' (such warnings were triggered by GNU@tie{}tar 1.26 and older; recent versions are fine). They stem from the fact that all the files in the archive have their modification time set to 1 (which means January 1st, 1970). This is done on purpose to make sure the archive content is independent of its creation time, thus making it reproducible."
  4414. msgstr "@code{--warning=no-timestamp}选项使GNU@tie{}tar不输出有关“implausibly old time stamps”的警告(这类警告会被GNU@tie{}tar 1.26或更老的版本触发;新的版本没事)。这类警告是因为文件包里的所有文件的修改时间戳都被设置为0(即1970年1月1日)。这是故意的,为了确保文件包的内容独立于创建的时间,从而使它可再现。"
  4415. #. type: enumerate
  4416. #: guix-git/doc/guix.texi:707
  4417. msgid "Make the profile available under @file{~root/.config/guix/current}, which is where @command{guix pull} will install updates (@pxref{Invoking guix pull}):"
  4418. msgstr "使profile出现在@file{~root/.config/guix/current},这是@command{guix pull}安装更新的位置(@pxref{Invoking guix pull}):"
  4419. #. type: example
  4420. #: guix-git/doc/guix.texi:712
  4421. #, no-wrap
  4422. msgid ""
  4423. "# mkdir -p ~root/.config/guix\n"
  4424. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4425. " ~root/.config/guix/current\n"
  4426. msgstr ""
  4427. "# mkdir -p ~root/.config/guix\n"
  4428. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4429. " ~root/.config/guix/current\n"
  4430. #. type: enumerate
  4431. #: guix-git/doc/guix.texi:716
  4432. #, fuzzy
  4433. msgid "Source @file{etc/profile} to augment @env{PATH} and other relevant environment variables:"
  4434. msgstr "执行@file{etc/profile}以更新@code{PATH}和其它相关的环境变量:"
  4435. #. type: example
  4436. #: guix-git/doc/guix.texi:720
  4437. #, no-wrap
  4438. msgid ""
  4439. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4440. " source $GUIX_PROFILE/etc/profile\n"
  4441. msgstr ""
  4442. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4443. " source $GUIX_PROFILE/etc/profile\n"
  4444. #. type: enumerate
  4445. #: guix-git/doc/guix.texi:725
  4446. msgid "Create the group and user accounts for build users as explained below (@pxref{Build Environment Setup})."
  4447. msgstr "像下面解释的那样为“构建用户”创建用户组和用户(@pxref{Build Environment Setup})。"
  4448. #. type: enumerate
  4449. #: guix-git/doc/guix.texi:728
  4450. msgid "Run the daemon, and set it to automatically start on boot."
  4451. msgstr "运行后台进程,并设置为开机自启动。"
  4452. #. type: enumerate
  4453. #: guix-git/doc/guix.texi:731
  4454. msgid "If your host distro uses the systemd init system, this can be achieved with these commands:"
  4455. msgstr "如果你的主机的发行版使用systemd init系统,可以用这些命令:"
  4456. #. type: example
  4457. #: guix-git/doc/guix.texi:744
  4458. #, fuzzy, no-wrap
  4459. msgid ""
  4460. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  4461. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4462. " /etc/systemd/system/\n"
  4463. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  4464. msgstr ""
  4465. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4466. " /etc/systemd/system/\n"
  4467. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4468. #. type: itemize
  4469. #: guix-git/doc/guix.texi:747 guix-git/doc/guix.texi:12924
  4470. msgid "If your host distro uses the Upstart init system:"
  4471. msgstr "如果你的主机的发行版使用Upstart init系统:"
  4472. #. type: example
  4473. #: guix-git/doc/guix.texi:753
  4474. #, no-wrap
  4475. msgid ""
  4476. "# initctl reload-configuration\n"
  4477. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4478. " /etc/init/\n"
  4479. "# start guix-daemon\n"
  4480. msgstr ""
  4481. "# initctl reload-configuration\n"
  4482. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4483. " /etc/init/\n"
  4484. "# start guix-daemon\n"
  4485. #. type: enumerate
  4486. #: guix-git/doc/guix.texi:756
  4487. msgid "Otherwise, you can still start the daemon manually with:"
  4488. msgstr "此外,你可以手动启动后台进程:"
  4489. #. type: example
  4490. #: guix-git/doc/guix.texi:760
  4491. #, no-wrap
  4492. msgid ""
  4493. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4494. " --build-users-group=guixbuild\n"
  4495. msgstr ""
  4496. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4497. " --build-users-group=guixbuild\n"
  4498. #. type: enumerate
  4499. #: guix-git/doc/guix.texi:765
  4500. msgid "Make the @command{guix} command available to other users on the machine, for instance with:"
  4501. msgstr "使机器上的其他用户也可以使用@command{guix}命令:"
  4502. #. type: example
  4503. #: guix-git/doc/guix.texi:770
  4504. #, no-wrap
  4505. msgid ""
  4506. "# mkdir -p /usr/local/bin\n"
  4507. "# cd /usr/local/bin\n"
  4508. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4509. msgstr ""
  4510. "# mkdir -p /usr/local/bin\n"
  4511. "# cd /usr/local/bin\n"
  4512. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4513. #. type: enumerate
  4514. #: guix-git/doc/guix.texi:774
  4515. msgid "It is also a good idea to make the Info version of this manual available there:"
  4516. msgstr "最好让这个用户手册的Info版也可以被访问:"
  4517. #. type: example
  4518. #: guix-git/doc/guix.texi:780
  4519. #, no-wrap
  4520. msgid ""
  4521. "# mkdir -p /usr/local/share/info\n"
  4522. "# cd /usr/local/share/info\n"
  4523. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4524. " do ln -s $i ; done\n"
  4525. msgstr ""
  4526. "# mkdir -p /usr/local/share/info\n"
  4527. "# cd /usr/local/share/info\n"
  4528. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4529. " do ln -s $i ; done\n"
  4530. #. type: enumerate
  4531. #: guix-git/doc/guix.texi:786
  4532. #, fuzzy
  4533. msgid "That way, assuming @file{/usr/local/share/info} is in the search path, running @command{info guix} will open this manual (@pxref{Other Info Directories,,, texinfo, GNU Texinfo}, for more details on changing the Info search path)."
  4534. msgstr "那样,假设@file{/usr/local/share/info}在搜索路径里,运行@command{info guix}命令就会打开这个用户手册(@pxref{Other Info Directories,,, texinfo, GNU Texinfo},更多关于Info搜索路径的信息)。"
  4535. #. type: cindex
  4536. #: guix-git/doc/guix.texi:788 guix-git/doc/guix.texi:3740
  4537. #: guix-git/doc/guix.texi:15569
  4538. #, no-wrap
  4539. msgid "substitutes, authorization thereof"
  4540. msgstr "substitutes,对其授权"
  4541. #. type: enumerate
  4542. #: guix-git/doc/guix.texi:792
  4543. #, fuzzy
  4544. #| msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER}} or one of its mirrors (@pxref{Substitutes}), authorize them:"
  4545. msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror (@pxref{Substitutes}), authorize them:"
  4546. msgstr "为了使用@code{@value{SUBSTITUTE-SERVER}}或其镜像的substitute(@pxref{Substitutes}),对其授权:"
  4547. #. type: example
  4548. #: guix-git/doc/guix.texi:798
  4549. #, fuzzy, no-wrap
  4550. #| msgid ""
  4551. #| "# guix archive --authorize < \\\n"
  4552. #| " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4553. msgid ""
  4554. "# guix archive --authorize < \\\n"
  4555. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  4556. "# guix archive --authorize < \\\n"
  4557. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  4558. msgstr ""
  4559. "# guix archive --authorize < \\\n"
  4560. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4561. #. type: quotation
  4562. #: guix-git/doc/guix.texi:805
  4563. msgid "If you do not enable substitutes, Guix will end up building @emph{everything} from source on your machine, making each installation and upgrade very expensive. @xref{On Trusting Binaries}, for a discussion of reasons why one might want do disable substitutes."
  4564. msgstr ""
  4565. #. type: enumerate
  4566. #: guix-git/doc/guix.texi:810
  4567. msgid "Each user may need to perform a few additional steps to make their Guix environment ready for use, @pxref{Application Setup}."
  4568. msgstr "每个用户可能需要执行一些额外的步骤以使各自的Guix环境可用,@pxref{Application Setup}。"
  4569. #. type: Plain text
  4570. #: guix-git/doc/guix.texi:813
  4571. msgid "Voilà, the installation is complete!"
  4572. msgstr "瞧,安装完成了!"
  4573. #. type: Plain text
  4574. #: guix-git/doc/guix.texi:816
  4575. msgid "You can confirm that Guix is working by installing a sample package into the root profile:"
  4576. msgstr "你可以通过给root profile安装一个软件包来确认Guix可以正常工作。"
  4577. #. type: example
  4578. #: guix-git/doc/guix.texi:819
  4579. #, no-wrap
  4580. msgid "# guix install hello\n"
  4581. msgstr "# guix install hello\n"
  4582. #. type: Plain text
  4583. #: guix-git/doc/guix.texi:823
  4584. msgid "The binary installation tarball can be (re)produced and verified simply by running the following command in the Guix source tree:"
  4585. msgstr "二进制安装包可以通过在Guix源代码树里运行下面这些命令来重现和验证:"
  4586. #. type: example
  4587. #: guix-git/doc/guix.texi:826
  4588. #, no-wrap
  4589. msgid "make guix-binary.@var{system}.tar.xz\n"
  4590. msgstr "make guix-binary.@var{系统}.tar.xz\n"
  4591. #. type: Plain text
  4592. #: guix-git/doc/guix.texi:830
  4593. msgid "...@: which, in turn, runs:"
  4594. msgstr "...@: 这个命令会执行:"
  4595. #. type: example
  4596. #: guix-git/doc/guix.texi:834
  4597. #, no-wrap
  4598. msgid ""
  4599. "guix pack -s @var{system} --localstatedir \\\n"
  4600. " --profile-name=current-guix guix\n"
  4601. msgstr ""
  4602. "guix pack -s @var{系统} --localstatedir \\\n"
  4603. " --profile-name=current-guix guix\n"
  4604. #. type: Plain text
  4605. #: guix-git/doc/guix.texi:837
  4606. msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  4607. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  4608. #. type: Plain text
  4609. #: guix-git/doc/guix.texi:845
  4610. msgid "This section lists requirements when building Guix from source. The build procedure for Guix is the same as for other GNU software, and is not covered here. Please see the files @file{README} and @file{INSTALL} in the Guix source tree for additional details."
  4611. msgstr "这个小节列举了从源代码构建Guix的需求。构建Guix的步骤和其它GNU软件相同,这里不介绍。请阅读Guix源代码树里的@file{README}和@file{INSTALL}文件以了解更多的信息。"
  4612. #. type: cindex
  4613. #: guix-git/doc/guix.texi:846
  4614. #, no-wrap
  4615. msgid "official website"
  4616. msgstr "官方网站"
  4617. #. type: Plain text
  4618. #: guix-git/doc/guix.texi:849
  4619. msgid "GNU Guix is available for download from its website at @url{https://www.gnu.org/software/guix/}."
  4620. msgstr "GNU Guix可以从它的网站下载@url{https://www.gnu.org/software/guix/}。"
  4621. #. type: Plain text
  4622. #: guix-git/doc/guix.texi:851
  4623. msgid "GNU Guix depends on the following packages:"
  4624. msgstr "GNU Guix依赖这些软件包:"
  4625. #. type: item
  4626. #: guix-git/doc/guix.texi:853
  4627. #, fuzzy, no-wrap
  4628. msgid "@url{https://gnu.org/software/guile/, GNU Guile}, version 3.0.x;"
  4629. msgstr "@url{https://gnu.org/software/guile/, GNU Guile},版本2.2.x;"
  4630. #. type: item
  4631. #: guix-git/doc/guix.texi:854
  4632. #, no-wrap
  4633. msgid "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version"
  4634. msgstr "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt},版本"
  4635. #. type: itemize
  4636. #: guix-git/doc/guix.texi:856
  4637. msgid "0.1.0 or later;"
  4638. msgstr "0.1.0或更新;"
  4639. #. type: itemize
  4640. #: guix-git/doc/guix.texi:860
  4641. msgid "@uref{https://gnutls.org/, GnuTLS}, specifically its Guile bindings (@pxref{Guile Preparations, how to install the GnuTLS bindings for Guile,, gnutls-guile, GnuTLS-Guile});"
  4642. msgstr "@uref{https://gnutls.org/, GnuTLS},特别是它的Guile接口(@pxref{Guile Preparations, 怎样为Guile安装GnuTLS接口,, gnutls-guile, GnuTLS-Guile});"
  4643. #. type: itemize
  4644. #: guix-git/doc/guix.texi:863
  4645. msgid "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3}, version 0.1.0 or later;"
  4646. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4647. #. type: item
  4648. #: guix-git/doc/guix.texi:863
  4649. #, fuzzy, no-wrap
  4650. msgid "@uref{https://notabug.org/guile-zlib/guile-zlib, Guile-zlib},"
  4651. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4652. #. type: itemize
  4653. #: guix-git/doc/guix.texi:865
  4654. #, fuzzy
  4655. msgid "version 0.1.0 or later;"
  4656. msgstr "0.1.0或更新;"
  4657. #. type: item
  4658. #: guix-git/doc/guix.texi:865
  4659. #, fuzzy, no-wrap
  4660. msgid "@uref{https://notabug.org/guile-lzlib/guile-lzlib, Guile-lzlib};"
  4661. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4662. #. type: item
  4663. #: guix-git/doc/guix.texi:866
  4664. #, no-wrap
  4665. msgid "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4666. msgstr "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4667. #. type: itemize
  4668. #: guix-git/doc/guix.texi:870
  4669. #, fuzzy
  4670. msgid "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, version 0.5.0 or later;"
  4671. msgstr "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git},2017年8月及之后的版本;"
  4672. #. type: item
  4673. #: guix-git/doc/guix.texi:870
  4674. #, fuzzy, no-wrap
  4675. msgid "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON}"
  4676. msgstr "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON};"
  4677. #. type: itemize
  4678. #: guix-git/doc/guix.texi:872
  4679. #, fuzzy
  4680. msgid "4.3.0 or later;"
  4681. msgstr "0.1.0或更新;"
  4682. #. type: item
  4683. #: guix-git/doc/guix.texi:872
  4684. #, no-wrap
  4685. msgid "@url{https://www.gnu.org/software/make/, GNU Make}."
  4686. msgstr "@url{https://www.gnu.org/software/make/, GNU Make}。"
  4687. #. type: Plain text
  4688. #: guix-git/doc/guix.texi:876
  4689. msgid "The following dependencies are optional:"
  4690. msgstr "这些依赖是可选的:"
  4691. #. type: itemize
  4692. #: guix-git/doc/guix.texi:884
  4693. #, fuzzy
  4694. msgid "Support for build offloading (@pxref{Daemon Offload Setup}) and @command{guix copy} (@pxref{Invoking guix copy}) depends on @uref{https://github.com/artyom-poptsov/guile-ssh, Guile-SSH}, version 0.13.0 or later."
  4695. msgstr "对下发构建任务(@pxref{Daemon Offload Setup})和@command{guix copy}(@pxref{Invoking guix copy})的支持依赖于@uref{https://github.com/artyom-poptsov/guile-ssh, Guile-SSH},版本0.10.2或更新。"
  4696. #. type: itemize
  4697. #: guix-git/doc/guix.texi:889
  4698. msgid "@uref{https://notabug.org/guile-zstd/guile-zstd, Guile-zstd}, for zstd compression and decompression in @command{guix publish} and for substitutes (@pxref{Invoking guix publish})."
  4699. msgstr ""
  4700. #. type: itemize
  4701. #: guix-git/doc/guix.texi:893
  4702. msgid "@uref{https://ngyro.com/software/guile-semver.html, Guile-Semver} for the @code{crate} importer (@pxref{Invoking guix import})."
  4703. msgstr ""
  4704. #. type: itemize
  4705. #: guix-git/doc/guix.texi:898
  4706. msgid "@uref{https://www.nongnu.org/guile-lib/doc/ref/htmlprag/, Guile-Lib} for the @code{go} importer (@pxref{Invoking guix import}) and for some of the ``updaters'' (@pxref{Invoking guix refresh})."
  4707. msgstr ""
  4708. #. type: itemize
  4709. #: guix-git/doc/guix.texi:902
  4710. msgid "When @url{http://www.bzip.org, libbz2} is available, @command{guix-daemon} can use it to compress build logs."
  4711. msgstr "当@url{http://www.bzip.org, libbz2}存在时,@command{guix-daemon}可以用它压缩构建日志。"
  4712. #. type: Plain text
  4713. #: guix-git/doc/guix.texi:906
  4714. #, fuzzy
  4715. msgid "Unless @option{--disable-daemon} was passed to @command{configure}, the following packages are also needed:"
  4716. msgstr "除非@code{--disable-daemon}参数被传给@command{configure},这些软件包也是需要的依赖:"
  4717. #. type: item
  4718. #: guix-git/doc/guix.texi:908
  4719. #, no-wrap
  4720. msgid "@url{https://gnupg.org/, GNU libgcrypt};"
  4721. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  4722. #. type: item
  4723. #: guix-git/doc/guix.texi:909
  4724. #, no-wrap
  4725. msgid "@url{https://sqlite.org, SQLite 3};"
  4726. msgstr "@url{https://sqlite.org, SQLite 3};"
  4727. #. type: item
  4728. #: guix-git/doc/guix.texi:910
  4729. #, no-wrap
  4730. msgid "@url{https://gcc.gnu.org, GCC's g++}, with support for the"
  4731. msgstr "@url{https://gcc.gnu.org, GCC's g++},支持"
  4732. #. type: itemize
  4733. #: guix-git/doc/guix.texi:912
  4734. msgid "C++11 standard."
  4735. msgstr "C++11标准。"
  4736. #. type: cindex
  4737. #: guix-git/doc/guix.texi:914
  4738. #, no-wrap
  4739. msgid "state directory"
  4740. msgstr "状态文件夹"
  4741. #. type: Plain text
  4742. #: guix-git/doc/guix.texi:923
  4743. #, fuzzy
  4744. msgid "When configuring Guix on a system that already has a Guix installation, be sure to specify the same state directory as the existing installation using the @option{--localstatedir} option of the @command{configure} script (@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards}). Usually, this @var{localstatedir} option is set to the value @file{/var}. The @command{configure} script protects against unintended misconfiguration of @var{localstatedir} so you do not inadvertently corrupt your store (@pxref{The Store})."
  4745. msgstr "当在一个已经安装Guix的系统上配置Guix时,请确保用@command{configure}的@code{--localstatedir}参数指定和现有的安装相同的状态文件夹(@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards})。@command{configure}保护你免于误设置@var{localstatedir},从而不会无意中损坏仓库(@pxref{The Store})。"
  4746. #. type: cindex
  4747. #: guix-git/doc/guix.texi:927
  4748. #, no-wrap
  4749. msgid "test suite"
  4750. msgstr "测试套件"
  4751. #. type: Plain text
  4752. #: guix-git/doc/guix.texi:933
  4753. msgid "After a successful @command{configure} and @code{make} run, it is a good idea to run the test suite. It can help catch issues with the setup or environment, or bugs in Guix itself---and really, reporting test failures is a good way to help improve the software. To run the test suite, type:"
  4754. msgstr "成功执行@command{configure}和@code{make}之后,最好运行测试套件。它可以帮助查找设置和环境的错误,或者是Guix自身的bug--并且,报告测试错误是帮助改进软件的好方法。输入下面的命令以执行测试套件。"
  4755. #. type: example
  4756. #: guix-git/doc/guix.texi:936
  4757. #, no-wrap
  4758. msgid "make check\n"
  4759. msgstr "make check\n"
  4760. #. type: Plain text
  4761. #: guix-git/doc/guix.texi:943
  4762. msgid "Test cases can run in parallel: you can use the @code{-j} option of GNU@tie{}make to speed things up. The first run may take a few minutes on a recent machine; subsequent runs will be faster because the store that is created for test purposes will already have various things in cache."
  4763. msgstr "测试用例可以并行运行:你可以用GNU@tie{}make的@code{-j}参数来加速运行。才一台较新的机器上第一次运行可能会花几分钟,后续的运行会更快,因为为测试创建的仓库已经包含了各种缓存。"
  4764. #. type: Plain text
  4765. #: guix-git/doc/guix.texi:946
  4766. msgid "It is also possible to run a subset of the tests by defining the @code{TESTS} makefile variable as in this example:"
  4767. msgstr "你还可以通过定义makefile的@code{TESTS}变量只运行测试的一个子集:"
  4768. #. type: example
  4769. #: guix-git/doc/guix.texi:949
  4770. #, no-wrap
  4771. msgid "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4772. msgstr "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4773. #. type: Plain text
  4774. #: guix-git/doc/guix.texi:954
  4775. msgid "By default, tests results are displayed at a file level. In order to see the details of every individual test cases, it is possible to define the @code{SCM_LOG_DRIVER_FLAGS} makefile variable as in this example:"
  4776. msgstr "默认情况下,测试结果只展示到文件层级。为了看每个独立的测试用例的详情,可以像这样定义@code{SCM_LOG_DRIVER_FLAGS} makefile变量:"
  4777. #. type: example
  4778. #: guix-git/doc/guix.texi:957
  4779. #, no-wrap
  4780. msgid "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4781. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4782. #. type: Plain text
  4783. #: guix-git/doc/guix.texi:965
  4784. msgid "The underlying SRFI 64 custom Automake test driver used for the 'check' test suite (located at @file{build-aux/test-driver.scm}) also allows selecting which test cases to run at a finer level, via its @option{--select} and @option{--exclude} options. Here's an example, to run all the test cases from the @file{tests/packages.scm} test file whose names start with ``transaction-upgrade-entry'':"
  4785. msgstr ""
  4786. #. type: example
  4787. #: guix-git/doc/guix.texi:969
  4788. #, no-wrap
  4789. msgid ""
  4790. "export SCM_LOG_DRIVER_FLAGS=\"--select=^transaction-upgrade-entry\"\n"
  4791. "make check TESTS=\"tests/packages.scm\"\n"
  4792. msgstr ""
  4793. #. type: Plain text
  4794. #: guix-git/doc/guix.texi:975
  4795. msgid "Those wishing to inspect the results of failed tests directly from the command line can add the @option{--errors-only=yes} option to the @code{SCM_LOG_DRIVER_FLAGS} makefile variable and set the @code{VERBOSE} Automake makefile variable, as in:"
  4796. msgstr ""
  4797. #. type: example
  4798. #: guix-git/doc/guix.texi:978
  4799. #, fuzzy, no-wrap
  4800. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --errors-only=yes\" VERBOSE=1\n"
  4801. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4802. #. type: Plain text
  4803. #: guix-git/doc/guix.texi:983
  4804. msgid "The @option{--show-duration=yes} option can be used to print the duration of the individual test cases, when used in combination with @option{--brief=no}:"
  4805. msgstr ""
  4806. #. type: example
  4807. #: guix-git/doc/guix.texi:986
  4808. #, fuzzy, no-wrap
  4809. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --show-duration=yes\"\n"
  4810. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4811. #. type: Plain text
  4812. #: guix-git/doc/guix.texi:990
  4813. msgid "@xref{Parallel Test Harness,,,automake,GNU Automake} for more information about the Automake Parallel Test Harness."
  4814. msgstr ""
  4815. #. type: Plain text
  4816. #: guix-git/doc/guix.texi:995
  4817. msgid "Upon failure, please email @email{bug-guix@@gnu.org} and attach the @file{test-suite.log} file. Please specify the Guix version being used as well as version numbers of the dependencies (@pxref{Requirements}) in your message."
  4818. msgstr "遇到错误时,请给@email{bug-guix@@gnu.org}发邮件,并附带@file{test-suite.log}文件。请在消息里说明使用的Guix的版本信息和依赖(@pxref{Requirements})的版本信息。"
  4819. #. type: Plain text
  4820. #: guix-git/doc/guix.texi:999
  4821. msgid "Guix also comes with a whole-system test suite that tests complete Guix System instances. It can only run on systems where Guix is already installed, using:"
  4822. msgstr "Guix还附带了一个可以测试整个Guix系统实例的全系统测试套件。它只能在已经安装Guix的系统上运行:"
  4823. #. type: example
  4824. #: guix-git/doc/guix.texi:1002
  4825. #, no-wrap
  4826. msgid "make check-system\n"
  4827. msgstr "make check-system\n"
  4828. #. type: Plain text
  4829. #: guix-git/doc/guix.texi:1006
  4830. msgid "or, again, by defining @code{TESTS} to select a subset of tests to run:"
  4831. msgstr "或者,同样的,通过定义@code{TESTS}只运行测试的一个子集:"
  4832. #. type: example
  4833. #: guix-git/doc/guix.texi:1009
  4834. #, no-wrap
  4835. msgid "make check-system TESTS=\"basic mcron\"\n"
  4836. msgstr "make check-system TESTS=\"basic mcron\"\n"
  4837. #. type: Plain text
  4838. #: guix-git/doc/guix.texi:1017
  4839. msgid "These system tests are defined in the @code{(gnu tests @dots{})} modules. They work by running the operating systems under test with lightweight instrumentation in a virtual machine (VM). They can be computationally intensive or rather cheap, depending on whether substitutes are available for their dependencies (@pxref{Substitutes}). Some of them require a lot of storage space to hold VM images."
  4840. msgstr "这些系统测试是在@code{(gnu tests @dots{})}模块里定义的。它们在虚拟机(VM)里运行轻量的指令。它们的计算量可能很多也可能很少,这取决于它们依赖的substitute(@pxref{Substitutes})是否已经存在。它们之中有些需要很多存储空间以保存虚拟机硬盘。"
  4841. #. type: Plain text
  4842. #: guix-git/doc/guix.texi:1020
  4843. msgid "Again in case of test failures, please send @email{bug-guix@@gnu.org} all the details."
  4844. msgstr "再重复一遍,如果遇到测试错误,请给@email{bug-guix@@gnu.org}发邮件,并附带详细的说明。"
  4845. #. type: cindex
  4846. #: guix-git/doc/guix.texi:1024
  4847. #, no-wrap
  4848. msgid "daemon"
  4849. msgstr "后台进程"
  4850. #. type: Plain text
  4851. #: guix-git/doc/guix.texi:1032
  4852. msgid "Operations such as building a package or running the garbage collector are all performed by a specialized process, the @dfn{build daemon}, on behalf of clients. Only the daemon may access the store and its associated database. Thus, any operation that manipulates the store goes through the daemon. For instance, command-line tools such as @command{guix package} and @command{guix build} communicate with the daemon (@i{via} remote procedure calls) to instruct it what to do."
  4853. msgstr "构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即@dfn{构建后台进程}。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,@command{guix package}和@command{guix build}之类的命令行工具通过和这个后台进程通信(@i{通过}远程过程调用)来指示它该做什么。"
  4854. #. type: Plain text
  4855. #: guix-git/doc/guix.texi:1036
  4856. msgid "The following sections explain how to prepare the build daemon's environment. See also @ref{Substitutes}, for information on how to allow the daemon to download pre-built binaries."
  4857. msgstr "接下来的几个小节介绍如何准备“构建后台进程”的环境。参考@ref{Substitutes},了解怎样允许这个后台进程下载预构建好的二进制文件。"
  4858. #. type: cindex
  4859. #: guix-git/doc/guix.texi:1046 guix-git/doc/guix.texi:1508
  4860. #, no-wrap
  4861. msgid "build environment"
  4862. msgstr "构建环境"
  4863. #. type: Plain text
  4864. #: guix-git/doc/guix.texi:1054
  4865. msgid "In a standard multi-user setup, Guix and its daemon---the @command{guix-daemon} program---are installed by the system administrator; @file{/gnu/store} is owned by @code{root} and @command{guix-daemon} runs as @code{root}. Unprivileged users may use Guix tools to build packages or otherwise access the store, and the daemon will do it on their behalf, ensuring that the store is kept in a consistent state, and allowing built packages to be shared among users."
  4866. msgstr "在一个标准的多用户设置里,Guix和它的后台进程--@command{guix-daemon}程序--是由@code{root}用户安装的,并且@command{guix-daemon}以@code{root}用户身份运行。无特权的用户可以用Guix的工具构建软件包或访问仓库,这个后台进程会代替用户进行这些操作,以确保仓库保持一致的状态,并且允许构建好的软件包可以在不同用户间共享。"
  4867. #. type: cindex
  4868. #: guix-git/doc/guix.texi:1055
  4869. #, no-wrap
  4870. msgid "build users"
  4871. msgstr "构建用户"
  4872. #. type: Plain text
  4873. #: guix-git/doc/guix.texi:1066
  4874. msgid "When @command{guix-daemon} runs as @code{root}, you may not want package build processes themselves to run as @code{root} too, for obvious security reasons. To avoid that, a special pool of @dfn{build users} should be created for use by build processes started by the daemon. These build users need not have a shell and a home directory: they will just be used when the daemon drops @code{root} privileges in build processes. Having several such users allows the daemon to launch distinct build processes under separate UIDs, which guarantees that they do not interfere with each other---an essential feature since builds are regarded as pure functions (@pxref{Introduction})."
  4875. msgstr "当@command{guix-daemon}以@code{root}用户身份运行时,由于安全方面的考虑,你可能不希望软件包构建进程也以@code{root}用户身份运行。为了避免那样,我们需要创建一个@dfn{构建用户}池,以供后台进程启动的构建进程使用。这些构建用户不需要拥有shell和家目录:他们只会在后台进程为构建进程剥夺@code{root}特权时使用。拥有多个这类用户使后台进程可以以不同的UID启动不同的构建进程,这保证它们不会互相干扰--这是一个重要的功能,因为构建被视为纯函数(@pxref{Introduction})。"
  4876. #. type: Plain text
  4877. #: guix-git/doc/guix.texi:1069
  4878. msgid "On a GNU/Linux system, a build user pool may be created like this (using Bash syntax and the @code{shadow} commands):"
  4879. msgstr "在一个GNU/Linux系统上,可以这样创建一个构建用户池(用bash语法和@code{shadow}命令):"
  4880. #. type: example
  4881. #: guix-git/doc/guix.texi:1081
  4882. #, fuzzy, no-wrap
  4883. msgid ""
  4884. "# groupadd --system guixbuild\n"
  4885. "# for i in $(seq -w 1 10);\n"
  4886. " do\n"
  4887. " useradd -g guixbuild -G guixbuild \\\n"
  4888. " -d /var/empty -s $(which nologin) \\\n"
  4889. " -c \"Guix build user $i\" --system \\\n"
  4890. " guixbuilder$i;\n"
  4891. " done\n"
  4892. msgstr ""
  4893. "# groupadd --system guixbuild\n"
  4894. "# for i in `seq -w 1 10`;\n"
  4895. " do\n"
  4896. " useradd -g guixbuild -G guixbuild \\\n"
  4897. " -d /var/empty -s `which nologin` \\\n"
  4898. " -c \"Guix build user $i\" --system \\\n"
  4899. " guixbuilder$i;\n"
  4900. " done\n"
  4901. #. type: Plain text
  4902. #: guix-git/doc/guix.texi:1091
  4903. msgid "The number of build users determines how many build jobs may run in parallel, as specified by the @option{--max-jobs} option (@pxref{Invoking guix-daemon, @option{--max-jobs}}). To use @command{guix system vm} and related commands, you may need to add the build users to the @code{kvm} group so they can access @file{/dev/kvm}, using @code{-G guixbuild,kvm} instead of @code{-G guixbuild} (@pxref{Invoking guix system})."
  4904. msgstr "构建用户的数量决定了有多少个构建任务可以并行执行,即@option{--max-jobs}参数(@pxref{Invoking guix-daemon, @option{--max-jobs}})。为了使用@command{guix system vm}和相关的命令,你需要把构建用户添加到@code{kvm}用户组,以使它们访问@file{/dev/kvm}。为此,把@code{-G guixbuild}替换成@code{-G guixbuild,kvm}(@pxref{Invoking guix system})。"
  4905. #. type: Plain text
  4906. #: guix-git/doc/guix.texi:1100
  4907. msgid "The @code{guix-daemon} program may then be run as @code{root} with the following command@footnote{If your machine uses the systemd init system, dropping the @file{@var{prefix}/lib/systemd/system/guix-daemon.service} file in @file{/etc/systemd/system} will ensure that @command{guix-daemon} is automatically started. Similarly, if your machine uses the Upstart init system, drop the @file{@var{prefix}/lib/upstart/system/guix-daemon.conf} file in @file{/etc/init}.}:"
  4908. msgstr "之后以@code{root}身份用下面的命令运行@code{guix-daemon}程序command@footnote{如果你的机器使用systemd init系统,把@file{@var{prefix}/lib/systemd/system/guix-daemon.service}文件复制到@file{/etc/systemd/system}文件夹里可以使@command{guix-daemon}自启动。类似的,如果你的机器使用Upstart init系统,把@file{@var{prefix}/lib/upstart/system/guix-daemon.conf}文件复制到@file{/etc/init}文件夹里}:"
  4909. #. type: example
  4910. #: guix-git/doc/guix.texi:1103 guix-git/doc/guix.texi:1501
  4911. #, no-wrap
  4912. msgid "# guix-daemon --build-users-group=guixbuild\n"
  4913. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  4914. #. type: cindex
  4915. #: guix-git/doc/guix.texi:1105 guix-git/doc/guix.texi:1506
  4916. #, no-wrap
  4917. msgid "chroot"
  4918. msgstr "chroot"
  4919. #. type: Plain text
  4920. #: guix-git/doc/guix.texi:1110
  4921. msgid "This way, the daemon starts build processes in a chroot, under one of the @code{guixbuilder} users. On GNU/Linux, by default, the chroot environment contains nothing but:"
  4922. msgstr "这样,后台进程在一个chroot环境里,以一个@code{guixbuilder}用户组成员的身份启动构建进程。在GNU/Linux上,默认的,这个chroot环境仅包含这些东西:"
  4923. #. type: itemize
  4924. #: guix-git/doc/guix.texi:1118
  4925. msgid "a minimal @code{/dev} directory, created mostly independently from the host @code{/dev}@footnote{``Mostly'', because while the set of files that appear in the chroot's @code{/dev} is fixed, most of these files can only be created if the host has them.};"
  4926. msgstr "一个和主机@code{/dev}独立的@footnote{大致这样,因为虽然chroot环境里的@code{/dev}包含的文件是固定的,大部分这些文件只有在主机有对应的文件时才能创建。},最小的@code{/dev}文件夹;"
  4927. #. type: itemize
  4928. #: guix-git/doc/guix.texi:1122
  4929. msgid "the @code{/proc} directory; it only shows the processes of the container since a separate PID name space is used;"
  4930. msgstr "@code{/proc}文件夹;它只含有当前容器的进程,因为用了一个独立的进程PID命名空间;"
  4931. #. type: itemize
  4932. #: guix-git/doc/guix.texi:1126
  4933. msgid "@file{/etc/passwd} with an entry for the current user and an entry for user @file{nobody};"
  4934. msgstr "@file{/etc/passwd},仅包含当前用户和@file{nobody};"
  4935. #. type: itemize
  4936. #: guix-git/doc/guix.texi:1129
  4937. msgid "@file{/etc/group} with an entry for the user's group;"
  4938. msgstr "@file{/etc/group},包含用户的组;"
  4939. #. type: itemize
  4940. #: guix-git/doc/guix.texi:1133
  4941. msgid "@file{/etc/hosts} with an entry that maps @code{localhost} to @code{127.0.0.1};"
  4942. msgstr "@file{/etc/hosts},包含@code{localhost}映射到@code{127.0.0.1}的条目;"
  4943. #. type: itemize
  4944. #: guix-git/doc/guix.texi:1136
  4945. msgid "a writable @file{/tmp} directory."
  4946. msgstr "一个可写的@file{/tmp}文件夹。"
  4947. #. type: Plain text
  4948. #: guix-git/doc/guix.texi:1145
  4949. #, fuzzy
  4950. msgid "You can influence the directory where the daemon stores build trees @i{via} the @env{TMPDIR} environment variable. However, the build tree within the chroot is always called @file{/tmp/guix-build-@var{name}.drv-0}, where @var{name} is the derivation name---e.g., @code{coreutils-8.24}. This way, the value of @env{TMPDIR} does not leak inside build environments, which avoids discrepancies in cases where build processes capture the name of their build tree."
  4951. msgstr "你可以@i{通过}@code{TMPDIR}环境变量修改后台进程保存构建树的位置。但是,chroot里的构建树总是在@file{/tmp/guix-build-@var{名字}.drv-0},@var{名字}是derivation的名字--如@code{coreutils-8.24}。这样,@code{TMPDIR}的值就不会泄漏到构建环境里,这可以避免由构建进程读取构建树名字引起的问题。"
  4952. #. type: vindex
  4953. #: guix-git/doc/guix.texi:1146 guix-git/doc/guix.texi:3949
  4954. #, no-wrap
  4955. msgid "http_proxy"
  4956. msgstr "http_proxy"
  4957. #. type: vindex
  4958. #: guix-git/doc/guix.texi:1147 guix-git/doc/guix.texi:3950
  4959. #, fuzzy, no-wrap
  4960. msgid "https_proxy"
  4961. msgstr "http_proxy"
  4962. #. type: Plain text
  4963. #: guix-git/doc/guix.texi:1152
  4964. #, fuzzy
  4965. msgid "The daemon also honors the @env{http_proxy} and @env{https_proxy} environment variables for HTTP and HTTPS downloads it performs, be it for fixed-output derivations (@pxref{Derivations}) or for substitutes (@pxref{Substitutes})."
  4966. msgstr "后台进程通过HTTP下载时还遵守@code{http_proxy}环境变量,无论是下载derivation(@pxref{Derivations}),还是下载substitute(@pxref{Substitutes})。"
  4967. #. type: Plain text
  4968. #: guix-git/doc/guix.texi:1160
  4969. #, fuzzy
  4970. msgid "If you are installing Guix as an unprivileged user, it is still possible to run @command{guix-daemon} provided you pass @option{--disable-chroot}. However, build processes will not be isolated from one another, and not from the rest of the system. Thus, build processes may interfere with each other, and may access programs, libraries, and other files available on the system---making it much harder to view them as @emph{pure} functions."
  4971. msgstr "如果你是以无特权的用户的身份安装Guix,你仍可以运行@command{guix-daemon},只要添加@code{--disable-chroot}参数就行了。但是,构建进程不会互相隔离,也不会和系统的其它部分隔离。因此,构建进程有可能互相干扰,可以访问程序、库和系统上的其它文件--这样就很难把它看作@emph{纯}函数。"
  4972. #. type: subsection
  4973. #: guix-git/doc/guix.texi:1163
  4974. #, no-wrap
  4975. msgid "Using the Offload Facility"
  4976. msgstr "使用任务下发设施"
  4977. #. type: cindex
  4978. #: guix-git/doc/guix.texi:1165 guix-git/doc/guix.texi:1567
  4979. #, no-wrap
  4980. msgid "offloading"
  4981. msgstr "下发"
  4982. #. type: cindex
  4983. #: guix-git/doc/guix.texi:1166
  4984. #, no-wrap
  4985. msgid "build hook"
  4986. msgstr "构建钩子"
  4987. #. type: Plain text
  4988. #: guix-git/doc/guix.texi:1185
  4989. #, fuzzy
  4990. msgid "When desired, the build daemon can @dfn{offload} derivation builds to other machines running Guix, using the @code{offload} @dfn{build hook}@footnote{This feature is available only when @uref{https://github.com/artyom-poptsov/guile-ssh, Guile-SSH} is present.}. When that feature is enabled, a list of user-specified build machines is read from @file{/etc/guix/machines.scm}; every time a build is requested, for instance via @code{guix build}, the daemon attempts to offload it to one of the machines that satisfy the constraints of the derivation, in particular its system types---e.g., @code{x86_64-linux}. A single machine can have multiple system types, either because its architecture natively supports it, via emulation (@pxref{transparent-emulation-qemu, Transparent Emulation with QEMU}), or both. Missing prerequisites for the build are copied over SSH to the target machine, which then proceeds with the build; upon success the output(s) of the build are copied back to the initial machine. The offload facility comes with a basic scheduler that attempts to select the best machine. The best machine is chosen among the available machines based on criteria such as:"
  4991. msgstr "当需要时,构建后台进程可以把构建derivation的任务@dfn{下发}给其它运行Guix的机器,这通过@code{下发} @dfn{构建钩子}实现@footnote{这个功能只有当@uref{https://github.com/artyom-poptsov/guile-ssh, Guile-SSH}存在时才可用。}。当那个功能被启用时,会从@file{/etc/guix/machines.scm}读取一列用户指定的机器;每次发送构建请求时,如执行@code{guix build},后台进程尝试把它下发到某一台满足derivation的约束(特别是系统类型--如@file{x86_64-linux})的机器上。缺少的必备构建依赖通过SSH复制到目标机器,然后继续构建;成功后,构建输出的结果被复制回初始的机器上。"
  4992. #. type: enumerate
  4993. #: guix-git/doc/guix.texi:1191
  4994. msgid "The availability of a build slot. A build machine can have as many build slots (connections) as the value of the @code{parallel-builds} field of its @code{build-machine} object."
  4995. msgstr ""
  4996. #. type: enumerate
  4997. #: guix-git/doc/guix.texi:1195
  4998. msgid "Its relative speed, as defined via the @code{speed} field of its @code{build-machine} object."
  4999. msgstr ""
  5000. #. type: enumerate
  5001. #: guix-git/doc/guix.texi:1200
  5002. msgid "Its load. The normalized machine load must be lower than a threshold value, configurable via the @code{overload-threshold} field of its @code{build-machine} object."
  5003. msgstr ""
  5004. #. type: enumerate
  5005. #: guix-git/doc/guix.texi:1203
  5006. msgid "Disk space availability. More than a 100 MiB must be available."
  5007. msgstr ""
  5008. #. type: Plain text
  5009. #: guix-git/doc/guix.texi:1206
  5010. msgid "The @file{/etc/guix/machines.scm} file typically looks like this:"
  5011. msgstr "@file{/etc/guix/machines.scm}文件通常是这样的:"
  5012. #. type: lisp
  5013. #: guix-git/doc/guix.texi:1214
  5014. #, fuzzy, no-wrap
  5015. msgid ""
  5016. "(list (build-machine\n"
  5017. " (name \"eightysix.example.org\")\n"
  5018. " (systems (list \"x86_64-linux\" \"i686-linux\"))\n"
  5019. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5020. " (user \"bob\")\n"
  5021. " (speed 2.)) ;incredibly fast!\n"
  5022. "\n"
  5023. msgstr ""
  5024. "(list (build-machine\n"
  5025. " (name \"eightysix.example.org\")\n"
  5026. " (system \"x86_64-linux\")\n"
  5027. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5028. " (user \"bob\")\n"
  5029. " (speed 2.)) ;非常快!\n"
  5030. "\n"
  5031. #. type: lisp
  5032. #: guix-git/doc/guix.texi:1223
  5033. #, fuzzy, no-wrap
  5034. msgid ""
  5035. " (build-machine\n"
  5036. " (name \"armeight.example.org\")\n"
  5037. " (systems (list \"aarch64-linux\"))\n"
  5038. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5039. " (user \"alice\")\n"
  5040. " (private-key\n"
  5041. " (string-append (getenv \"HOME\")\n"
  5042. " \"/.ssh/identity-for-guix\"))))\n"
  5043. msgstr ""
  5044. " (build-machine\n"
  5045. " (name \"meeps.example.org\")\n"
  5046. " (system \"mips64el-linux\")\n"
  5047. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5048. " (user \"alice\")\n"
  5049. " (private-key\n"
  5050. " (string-append (getenv \"HOME\")\n"
  5051. " \"/.ssh/identity-for-guix\"))))\n"
  5052. #. type: Plain text
  5053. #: guix-git/doc/guix.texi:1229
  5054. #, fuzzy
  5055. msgid "In the example above we specify a list of two build machines, one for the @code{x86_64} and @code{i686} architectures and one for the @code{aarch64} architecture."
  5056. msgstr "在上面的例子里,我们指定了一个包含两个构建机器的列表,一个是@code{x86_64}架构,一个是@code{mips64el}架构。"
  5057. #. type: Plain text
  5058. #: guix-git/doc/guix.texi:1238
  5059. msgid "In fact, this file is---not surprisingly!---a Scheme file that is evaluated when the @code{offload} hook is started. Its return value must be a list of @code{build-machine} objects. While this example shows a fixed list of build machines, one could imagine, say, using DNS-SD to return a list of potential build machines discovered in the local network (@pxref{Introduction, Guile-Avahi,, guile-avahi, Using Avahi in Guile Scheme Programs}). The @code{build-machine} data type is detailed below."
  5060. msgstr "事实上,这个文件--并不意外地--是一个Scheme文件,当@code{下发}钩子被启动时执行。它的返回值必须是一个包含@code{build-machine}对象的列表。虽然这个例子展示的是一个固定的列表,你可以想象,使用DNS-SD来返回一个包含从局域网内发现的构建机器的列表,@pxref{Introduction, Guile-Avahi,, guile-avahi, 在Guile Scheme程序里使用Avahi}。@code{build-machine}数据类型的详细信息如下。"
  5061. #. type: deftp
  5062. #: guix-git/doc/guix.texi:1239
  5063. #, no-wrap
  5064. msgid "{Data Type} build-machine"
  5065. msgstr "{数据类型} build-machine"
  5066. #. type: deftp
  5067. #: guix-git/doc/guix.texi:1242
  5068. msgid "This data type represents build machines to which the daemon may offload builds. The important fields are:"
  5069. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  5070. #. type: item
  5071. #: guix-git/doc/guix.texi:1245 guix-git/doc/guix.texi:6698
  5072. #: guix-git/doc/guix.texi:14527 guix-git/doc/guix.texi:14621
  5073. #: guix-git/doc/guix.texi:14862 guix-git/doc/guix.texi:16833
  5074. #: guix-git/doc/guix.texi:20112 guix-git/doc/guix.texi:23022
  5075. #: guix-git/doc/guix.texi:24411 guix-git/doc/guix.texi:25023
  5076. #: guix-git/doc/guix.texi:25375 guix-git/doc/guix.texi:25416
  5077. #: guix-git/doc/guix.texi:27568 guix-git/doc/guix.texi:29852
  5078. #: guix-git/doc/guix.texi:29872 guix-git/doc/guix.texi:32408
  5079. #: guix-git/doc/guix.texi:32425 guix-git/doc/guix.texi:32941
  5080. #: guix-git/doc/guix.texi:34677 guix-git/doc/guix.texi:35004
  5081. #, no-wrap
  5082. msgid "name"
  5083. msgstr "名字"
  5084. #. type: table
  5085. #: guix-git/doc/guix.texi:1247
  5086. msgid "The host name of the remote machine."
  5087. msgstr "远程机器的主机名。"
  5088. #. type: item
  5089. #: guix-git/doc/guix.texi:1248
  5090. #, fuzzy, no-wrap
  5091. msgid "systems"
  5092. msgstr "系统"
  5093. #. type: table
  5094. #: guix-git/doc/guix.texi:1251
  5095. #, fuzzy
  5096. msgid "The system types the remote machine supports---e.g., @code{(list \"x86_64-linux\" \"i686-linux\")}."
  5097. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  5098. #. type: code{#1}
  5099. #: guix-git/doc/guix.texi:1252 guix-git/doc/guix.texi:16843
  5100. #, no-wrap
  5101. msgid "user"
  5102. msgstr "用户"
  5103. #. type: table
  5104. #: guix-git/doc/guix.texi:1256
  5105. msgid "The user account to use when connecting to the remote machine over SSH. Note that the SSH key pair must @emph{not} be passphrase-protected, to allow non-interactive logins."
  5106. msgstr "通过SSH连接远程机器时使用的用户帐号。注意,SSH密钥@emph{不}能被密码保护,以支持无交互的登录。"
  5107. #. type: item
  5108. #: guix-git/doc/guix.texi:1257
  5109. #, no-wrap
  5110. msgid "host-key"
  5111. msgstr "主机公钥"
  5112. #. type: table
  5113. #: guix-git/doc/guix.texi:1261
  5114. msgid "This must be the machine's SSH @dfn{public host key} in OpenSSH format. This is used to authenticate the machine when we connect to it. It is a long string that looks like this:"
  5115. msgstr "这必须是机器的OpenSSH格式的SSH@dfn{公钥}。这是用来在连接机器时认证身份的。它是一个像这样的长字符串:"
  5116. #. type: example
  5117. #: guix-git/doc/guix.texi:1264
  5118. #, no-wrap
  5119. msgid "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5120. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5121. #. type: table
  5122. #: guix-git/doc/guix.texi:1269
  5123. msgid "If the machine is running the OpenSSH daemon, @command{sshd}, the host key can be found in a file such as @file{/etc/ssh/ssh_host_ed25519_key.pub}."
  5124. msgstr "如果这个机器正在运行OpenSSH后台进程,@command{sshd},那么主机公钥可以在@file{/etc/ssh/ssh_host_ed25519_key.pub}找到。"
  5125. #. type: table
  5126. #: guix-git/doc/guix.texi:1274
  5127. msgid "If the machine is running the SSH daemon of GNU@tie{}lsh, @command{lshd}, the host key is in @file{/etc/lsh/host-key.pub} or a similar file. It can be converted to the OpenSSH format using @command{lsh-export-key} (@pxref{Converting keys,,, lsh, LSH Manual}):"
  5128. msgstr "如果这个机器正在运行GNU@tie{}lsh,@command{lshd},那么主机公钥可以在@file{/etc/lsh/host-key.pub}或类似的位置找到。它可以通过@command{lsh-export-key}命令转换成OpenSSH格式(@pxref{Converting keys,,, lsh, LSH用户手册}):"
  5129. #. type: example
  5130. #: guix-git/doc/guix.texi:1278
  5131. #, fuzzy, no-wrap
  5132. msgid ""
  5133. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub\n"
  5134. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5135. msgstr ""
  5136. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub \n"
  5137. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5138. #. type: deftp
  5139. #: guix-git/doc/guix.texi:1283
  5140. msgid "A number of optional fields may be specified:"
  5141. msgstr "一些可选的项:"
  5142. #. type: item
  5143. #: guix-git/doc/guix.texi:1286 guix-git/doc/guix.texi:34173
  5144. #, no-wrap
  5145. msgid "@code{port} (default: @code{22})"
  5146. msgstr "@code{port}(默认值:@code{22})"
  5147. #. type: table
  5148. #: guix-git/doc/guix.texi:1288
  5149. msgid "Port number of SSH server on the machine."
  5150. msgstr "机器上的SSH服务器的端口号。"
  5151. #. type: item
  5152. #: guix-git/doc/guix.texi:1289
  5153. #, no-wrap
  5154. msgid "@code{private-key} (default: @file{~root/.ssh/id_rsa})"
  5155. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  5156. #. type: table
  5157. #: guix-git/doc/guix.texi:1292
  5158. msgid "The SSH private key file to use when connecting to the machine, in OpenSSH format. This key must not be protected with a passphrase."
  5159. msgstr "连接机器时使用的SSH私钥,OpenSSH格式。这个私钥不能被密码保护。"
  5160. #. type: table
  5161. #: guix-git/doc/guix.texi:1295
  5162. msgid "Note that the default value is the private key @emph{of the root account}. Make sure it exists if you use the default."
  5163. msgstr "注意,默认值是@emph{root帐号}的私钥。使用默认值时请确保它存在。"
  5164. #. type: item
  5165. #: guix-git/doc/guix.texi:1296
  5166. #, no-wrap
  5167. msgid "@code{compression} (default: @code{\"zlib@@openssh.com,zlib\"})"
  5168. msgstr "@code{compression}(默认值:@code{\"zlib@@openssh.com,zlib\"})"
  5169. #. type: itemx
  5170. #: guix-git/doc/guix.texi:1297
  5171. #, no-wrap
  5172. msgid "@code{compression-level} (default: @code{3})"
  5173. msgstr "@code{compression-level}(默认值:@code{3})"
  5174. #. type: table
  5175. #: guix-git/doc/guix.texi:1299
  5176. msgid "The SSH-level compression methods and compression level requested."
  5177. msgstr "SSH压缩算法和压缩级别。"
  5178. #. type: table
  5179. #: guix-git/doc/guix.texi:1302
  5180. msgid "Note that offloading relies on SSH compression to reduce bandwidth usage when transferring files to and from build machines."
  5181. msgstr "下发任务依赖SSH压缩来减少传输文件到构建机器时使用的带宽。"
  5182. #. type: item
  5183. #: guix-git/doc/guix.texi:1303
  5184. #, no-wrap
  5185. msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  5186. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  5187. #. type: table
  5188. #: guix-git/doc/guix.texi:1306
  5189. msgid "File name of the Unix-domain socket @command{guix-daemon} is listening to on that machine."
  5190. msgstr "那台机器上的@command{guix-daemon}监听的Unix套接字文件名。"
  5191. #. type: item
  5192. #: guix-git/doc/guix.texi:1307
  5193. #, fuzzy, no-wrap
  5194. msgid "@code{overload-threshold} (default: @code{0.6})"
  5195. msgstr "@code{features} (@code{'()})"
  5196. #. type: table
  5197. #: guix-git/doc/guix.texi:1313
  5198. msgid "The load threshold above which a potential offload machine is disregarded by the offload scheduler. The value roughly translates to the total processor usage of the build machine, ranging from 0.0 (0%) to 1.0 (100%). It can also be disabled by setting @code{overload-threshold} to @code{#f}."
  5199. msgstr ""
  5200. #. type: item
  5201. #: guix-git/doc/guix.texi:1314
  5202. #, no-wrap
  5203. msgid "@code{parallel-builds} (default: @code{1})"
  5204. msgstr "@code{parallel-builds}(默认值:@code{1})"
  5205. #. type: table
  5206. #: guix-git/doc/guix.texi:1316
  5207. msgid "The number of builds that may run in parallel on the machine."
  5208. msgstr "那台机器上可以并行运行的构建任务数量。"
  5209. #. type: item
  5210. #: guix-git/doc/guix.texi:1317
  5211. #, no-wrap
  5212. msgid "@code{speed} (default: @code{1.0})"
  5213. msgstr "@code{speed}(默认值:@code{1.0})"
  5214. #. type: table
  5215. #: guix-git/doc/guix.texi:1320
  5216. msgid "A ``relative speed factor''. The offload scheduler will tend to prefer machines with a higher speed factor."
  5217. msgstr "一个相对的速度值。下发调度器会偏好速度更快的机器。"
  5218. #. type: item
  5219. #: guix-git/doc/guix.texi:1321
  5220. #, no-wrap
  5221. msgid "@code{features} (default: @code{'()})"
  5222. msgstr "@code{features} (@code{'()})"
  5223. #. type: table
  5224. #: guix-git/doc/guix.texi:1326
  5225. msgid "A list of strings denoting specific features supported by the machine. An example is @code{\"kvm\"} for machines that have the KVM Linux modules and corresponding hardware support. Derivations can request features by name, and they will be scheduled on matching build machines."
  5226. msgstr "一个表示机器支持的功能的字符串列表。例如,@code{\"kvm\"}表示机器有KVM Linux模块和相关的硬件支持。Derivation可以通过名字请求需要的功能,然后被分发到匹配的机器的任务队列里。"
  5227. #. type: Plain text
  5228. #: guix-git/doc/guix.texi:1332
  5229. msgid "The @command{guix} command must be in the search path on the build machines. You can check whether this is the case by running:"
  5230. msgstr "@command{guix}命令必须在构建机器的搜素路径里。你可以通过这个命令检查:"
  5231. #. type: example
  5232. #: guix-git/doc/guix.texi:1335
  5233. #, no-wrap
  5234. msgid "ssh build-machine guix repl --version\n"
  5235. msgstr "ssh build-machine guix repl --version\n"
  5236. #. type: Plain text
  5237. #: guix-git/doc/guix.texi:1342
  5238. msgid "There is one last thing to do once @file{machines.scm} is in place. As explained above, when offloading, files are transferred back and forth between the machine stores. For this to work, you first need to generate a key pair on each machine to allow the daemon to export signed archives of files from the store (@pxref{Invoking guix archive}):"
  5239. msgstr "@file{machines.scm}到位后,还有一件要做的事。如上所述,下发任务时会在机器的仓库之间传输文件。为此,你需要在每台机器上生成一个密钥对,以使后台进程可以从仓库导出签名后的文件包(@pxref{Invoking guix archive}):"
  5240. #. type: example
  5241. #: guix-git/doc/guix.texi:1345 guix-git/doc/guix.texi:34101
  5242. #, no-wrap
  5243. msgid "# guix archive --generate-key\n"
  5244. msgstr "# guix archive --generate-key\n"
  5245. #. type: Plain text
  5246. #: guix-git/doc/guix.texi:1350
  5247. msgid "Each build machine must authorize the key of the master machine so that it accepts store items it receives from the master:"
  5248. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  5249. #. type: example
  5250. #: guix-git/doc/guix.texi:1353
  5251. #, no-wrap
  5252. msgid "# guix archive --authorize < master-public-key.txt\n"
  5253. msgstr "# guix archive --authorize < master-public-key.txt\n"
  5254. #. type: Plain text
  5255. #: guix-git/doc/guix.texi:1357
  5256. msgid "Likewise, the master machine must authorize the key of each build machine."
  5257. msgstr "类似的,主机器必须认证每台构建机器的公钥:"
  5258. #. type: Plain text
  5259. #: guix-git/doc/guix.texi:1363
  5260. msgid "All the fuss with keys is here to express pairwise mutual trust relations between the master and the build machines. Concretely, when the master receives files from a build machine (and @i{vice versa}), its build daemon can make sure they are genuine, have not been tampered with, and that they are signed by an authorized key."
  5261. msgstr "所有这些有关公钥的繁琐事宜都是为了表达主服务器和构建服务器之间成对的互相信任关系。具体地,当主机器从构建机器接收文件时(反之亦然),它的构建后台进程可以确保文件是原样的,没有被篡改,并且被认证的公钥签名过。"
  5262. #. type: cindex
  5263. #: guix-git/doc/guix.texi:1364
  5264. #, no-wrap
  5265. msgid "offload test"
  5266. msgstr "下发测试"
  5267. #. type: Plain text
  5268. #: guix-git/doc/guix.texi:1367
  5269. msgid "To test whether your setup is operational, run this command on the master node:"
  5270. msgstr "为了测试你的设置是否能正常工作,在主节点上运行这个命令:"
  5271. #. type: example
  5272. #: guix-git/doc/guix.texi:1370
  5273. #, no-wrap
  5274. msgid "# guix offload test\n"
  5275. msgstr "# guix offload test\n"
  5276. #. type: Plain text
  5277. #: guix-git/doc/guix.texi:1376
  5278. #, fuzzy
  5279. msgid "This will attempt to connect to each of the build machines specified in @file{/etc/guix/machines.scm}, make sure Guix is available on each machine, attempt to export to the machine and import from it, and report any error in the process."
  5280. msgstr "这会尝试连接每台在@file{/etc/guix/machines.scm}里指定的构建机器,确保Guile和Guix模块在每台机器上都可用,尝试导出到这些机器和从这些机器导入,并且报告这个过程中遇到的任何错误。"
  5281. #. type: Plain text
  5282. #: guix-git/doc/guix.texi:1379
  5283. msgid "If you want to test a different machine file, just specify it on the command line:"
  5284. msgstr "如果你希望用别的文件测试,只需要在命令行指定它:"
  5285. #. type: example
  5286. #: guix-git/doc/guix.texi:1382
  5287. #, no-wrap
  5288. msgid "# guix offload test machines-qualif.scm\n"
  5289. msgstr "# guix offload test machines-qualif.scm\n"
  5290. #. type: Plain text
  5291. #: guix-git/doc/guix.texi:1386
  5292. msgid "Last, you can test the subset of the machines whose name matches a regular expression like this:"
  5293. msgstr "最后,你可以像这样只测试机器列表里名字匹配某个正则表达式的子集:"
  5294. #. type: example
  5295. #: guix-git/doc/guix.texi:1389
  5296. #, no-wrap
  5297. msgid "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5298. msgstr "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5299. #. type: cindex
  5300. #: guix-git/doc/guix.texi:1391
  5301. #, no-wrap
  5302. msgid "offload status"
  5303. msgstr "下发状态"
  5304. #. type: Plain text
  5305. #: guix-git/doc/guix.texi:1394
  5306. msgid "To display the current load of all build hosts, run this command on the main node:"
  5307. msgstr "若想展示所有构建主机的当前负载,在主节点上运行这个命令:"
  5308. #. type: example
  5309. #: guix-git/doc/guix.texi:1397
  5310. #, no-wrap
  5311. msgid "# guix offload status\n"
  5312. msgstr "# guix offload status\n"
  5313. #. type: cindex
  5314. #: guix-git/doc/guix.texi:1403
  5315. #, no-wrap
  5316. msgid "SELinux, daemon policy"
  5317. msgstr "SELinux,后台进程策略"
  5318. #. type: cindex
  5319. #: guix-git/doc/guix.texi:1404
  5320. #, no-wrap
  5321. msgid "mandatory access control, SELinux"
  5322. msgstr "强制访问控制,SELinux"
  5323. #. type: cindex
  5324. #: guix-git/doc/guix.texi:1405
  5325. #, no-wrap
  5326. msgid "security, guix-daemon"
  5327. msgstr "安全,guix-daemon"
  5328. #. type: Plain text
  5329. #: guix-git/doc/guix.texi:1411
  5330. msgid "Guix includes an SELinux policy file at @file{etc/guix-daemon.cil} that can be installed on a system where SELinux is enabled, in order to label Guix files and to specify the expected behavior of the daemon. Since Guix System does not provide an SELinux base policy, the daemon policy cannot be used on Guix System."
  5331. msgstr "Guix附带一个SELinux策略文件,位置在@file{etc/guix-daemon.cil},它可以在启用SELinux的系统上安装,为Guix的文件添加标签及指定后台进程的期望行为。由于Guix系统不提供SELinux基础策略,这个后台进程策略不能在Guix系统上使用。"
  5332. #. type: subsubsection
  5333. #: guix-git/doc/guix.texi:1412
  5334. #, no-wrap
  5335. msgid "Installing the SELinux policy"
  5336. msgstr "安装SELinux策略"
  5337. #. type: cindex
  5338. #: guix-git/doc/guix.texi:1413
  5339. #, no-wrap
  5340. msgid "SELinux, policy installation"
  5341. msgstr "SELinux,安装策略"
  5342. #. type: Plain text
  5343. #: guix-git/doc/guix.texi:1415
  5344. msgid "To install the policy run this command as root:"
  5345. msgstr "用root用户执行这个命令以安装策略:"
  5346. #. type: example
  5347. #: guix-git/doc/guix.texi:1418
  5348. #, no-wrap
  5349. msgid "semodule -i etc/guix-daemon.cil\n"
  5350. msgstr "semodule -i etc/guix-daemon.cil\n"
  5351. #. type: Plain text
  5352. #: guix-git/doc/guix.texi:1422
  5353. msgid "Then relabel the file system with @code{restorecon} or by a different mechanism provided by your system."
  5354. msgstr "用@code{restorecon}或者你的系统提供的其它机制重新给文件系统打标签。"
  5355. #. type: Plain text
  5356. #: guix-git/doc/guix.texi:1427
  5357. msgid "Once the policy is installed, the file system has been relabeled, and the daemon has been restarted, it should be running in the @code{guix_daemon_t} context. You can confirm this with the following command:"
  5358. msgstr "一旦安装好策略,为文件系统重新打好标签,并且重启了后台进程,它应该在@code{guix_daemon_t}环境里运行。你可以用下面这个命令确认:"
  5359. #. type: example
  5360. #: guix-git/doc/guix.texi:1430
  5361. #, no-wrap
  5362. msgid "ps -Zax | grep guix-daemon\n"
  5363. msgstr "ps -Zax | grep guix-daemon\n"
  5364. #. type: Plain text
  5365. #: guix-git/doc/guix.texi:1435
  5366. msgid "Monitor the SELinux log files as you run a command like @code{guix build hello} to convince yourself that SELinux permits all necessary operations."
  5367. msgstr "运行@code{guix build hello}之类的命令并监控SELinux日志以说服你自己SELinux允许所有的操作。"
  5368. #. type: cindex
  5369. #: guix-git/doc/guix.texi:1437
  5370. #, no-wrap
  5371. msgid "SELinux, limitations"
  5372. msgstr "SELinux,限制"
  5373. #. type: Plain text
  5374. #: guix-git/doc/guix.texi:1442
  5375. msgid "This policy is not perfect. Here is a list of limitations or quirks that should be considered when deploying the provided SELinux policy for the Guix daemon."
  5376. msgstr "这个策略不是完美的。这里有一个关于限制和缺陷的列表,当为Guix后台进程部署提供的SELinux策略时该认真考虑。"
  5377. #. type: enumerate
  5378. #: guix-git/doc/guix.texi:1449
  5379. #, fuzzy
  5380. msgid "@code{guix_daemon_socket_t} isn’t actually used. None of the socket operations involve contexts that have anything to do with @code{guix_daemon_socket_t}. It doesn’t hurt to have this unused label, but it would be preferable to define socket rules for only this label."
  5381. msgstr "@code{guix_daemon_socket_t}没有被实际使用。所有的套接字操作都和@code{guix_daemon_socket_t}没有任何关系。存在这个没被使用的标签并不碍事,但是为这个标签定义套接字规则是更好的选择。"
  5382. #. type: enumerate
  5383. #: guix-git/doc/guix.texi:1460
  5384. msgid "@code{guix gc} cannot access arbitrary links to profiles. By design, the file label of the destination of a symlink is independent of the file label of the link itself. Although all profiles under $localstatedir are labelled, the links to these profiles inherit the label of the directory they are in. For links in the user’s home directory this will be @code{user_home_t}. But for links from the root user’s home directory, or @file{/tmp}, or the HTTP server’s working directory, etc, this won’t work. @code{guix gc} would be prevented from reading and following these links."
  5385. msgstr "@code{guix gc}不可以任意访问指向profile的链接。由于设计的原因,符号链接的目标的文件标签和符号链接本身的文件标签是不同的。尽管$localstatedir里的所有profile都被打上了标签,指向这些profile的符号链接继承它们所在的文件夹的标签。对于普通用户的家目录里的链接,标签是@code{user_home_t}。但是对于root用户的家目录,或@file{/tmp},或HTTP服务器的工作目录等文件夹里的链接不是这样。@code{guix gc}会被阻止读取和跟随这些链接。"
  5386. #. type: enumerate
  5387. #: guix-git/doc/guix.texi:1465
  5388. msgid "The daemon’s feature to listen for TCP connections might no longer work. This might require extra rules, because SELinux treats network sockets differently from files."
  5389. msgstr "后台进程监听TCP连接的功能不再可用。这可能需要额外的规则,因为SELinux区别对待网络套接字和文件。"
  5390. #. type: enumerate
  5391. #: guix-git/doc/guix.texi:1476
  5392. msgid "Currently all files with a name matching the regular expression @code{/gnu/store/.+-(guix-.+|profile)/bin/guix-daemon} are assigned the label @code{guix_daemon_exec_t}; this means that @emph{any} file with that name in any profile would be permitted to run in the @code{guix_daemon_t} domain. This is not ideal. An attacker could build a package that provides this executable and convince a user to install and run it, which lifts it into the @code{guix_daemon_t} domain. At that point SELinux could not prevent it from accessing files that are allowed for processes in that domain."
  5393. msgstr "目前,所有匹配正则表达式@code{/gnu/store/.+-(guix-.+|profile)/bin/guix-daemon}的文件都被赋予@code{guix_daemon_exec_t}标签;这意味着@emph{任何}profile里的任何有这样名字的的文件都会被允许在@code{guix_daemon_t}域里执行。这不够理想。一个攻击者可以构建提供这个可执行程序的软件包,并说服一个用户安装、运行它,以此进入@code{guix_daemon_t}域。那时,SELinux无法阻止它访问所在域的进程可以访问的文件。"
  5394. #. type: enumerate
  5395. #: guix-git/doc/guix.texi:1481
  5396. msgid "You will need to relabel the store directory after all upgrades to @file{guix-daemon}, such as after running @code{guix pull}. Assuming the store is in @file{/gnu}, you can do this with @code{restorecon -vR /gnu}, or by other means provided by your operating system."
  5397. msgstr ""
  5398. #. type: enumerate
  5399. #: guix-git/doc/guix.texi:1489
  5400. msgid "We could generate a much more restrictive policy at installation time, so that only the @emph{exact} file name of the currently installed @code{guix-daemon} executable would be labelled with @code{guix_daemon_exec_t}, instead of using a broad regular expression. The downside is that root would have to install or upgrade the policy at installation time whenever the Guix package that provides the effectively running @code{guix-daemon} executable is upgraded."
  5401. msgstr "我们可以在安装时生成一个更严格的策略,仅当前安装的@code{guix-daemon}的@emph{精确的}的文件名会被打上@code{guix_daemon_exec_t}标签,而不是用一个宽泛的正则表达式。这样的缺点是root必须在每次安装提供@code{guix-daemon}的Guix软件包时安装或升级策略。"
  5402. #. type: section
  5403. #: guix-git/doc/guix.texi:1492
  5404. #, no-wrap
  5405. msgid "Invoking @command{guix-daemon}"
  5406. msgstr "调用@command{guix-daemon}"
  5407. #. type: Plain text
  5408. #: guix-git/doc/guix.texi:1498
  5409. msgid "The @command{guix-daemon} program implements all the functionality to access the store. This includes launching build processes, running the garbage collector, querying the availability of a build result, etc. It is normally run as @code{root} like this:"
  5410. msgstr "@command{guix-daemon}程序实现了所有访问仓库的功能。包括启动构建进程,运行垃圾回收器,查询构建结果,等。它通常以@code{root}身份运行:"
  5411. #. type: Plain text
  5412. #: guix-git/doc/guix.texi:1505
  5413. msgid "For details on how to set it up, @pxref{Setting Up the Daemon}."
  5414. msgstr "关于如何设置它,@pxref{Setting Up the Daemon}。"
  5415. #. type: cindex
  5416. #: guix-git/doc/guix.texi:1507
  5417. #, no-wrap
  5418. msgid "container, build environment"
  5419. msgstr "容器,构建环境"
  5420. #. type: cindex
  5421. #: guix-git/doc/guix.texi:1509 guix-git/doc/guix.texi:3026
  5422. #: guix-git/doc/guix.texi:3930 guix-git/doc/guix.texi:12937
  5423. #, no-wrap
  5424. msgid "reproducible builds"
  5425. msgstr "可复现的构建"
  5426. #. type: Plain text
  5427. #: guix-git/doc/guix.texi:1521
  5428. #, fuzzy
  5429. msgid "By default, @command{guix-daemon} launches build processes under different UIDs, taken from the build group specified with @option{--build-users-group}. In addition, each build process is run in a chroot environment that only contains the subset of the store that the build process depends on, as specified by its derivation (@pxref{Programming Interface, derivation}), plus a set of specific system directories. By default, the latter contains @file{/dev} and @file{/dev/pts}. Furthermore, on GNU/Linux, the build environment is a @dfn{container}: in addition to having its own file system tree, it has a separate mount name space, its own PID name space, network name space, etc. This helps achieve reproducible builds (@pxref{Features})."
  5430. msgstr "默认情况下,@command{guix-daemon}用不同的UID启动构建进程,这些用户是从@code{--build-users-group}参数指定的用户组里获取的。并且,每个构建进程都在一个chroot环境里运行,这个环境只包含构建进程依赖的仓库的子集(由derivation(@pxref{Programming Interface, derivation})的内容决定),以及一些系统文件夹。默认情况下,后者包含@file{/dev}和@file{/dev/pts}。并且,在GNU/Linux上,构建环境是一个@dfn{容器}:它不仅有自己的文件系统树,还有独立的挂载命名空间,独立的PID命名空间,网络命名空间,等。这帮助实现可复现构建的目的(@pxref{Features})。"
  5431. #. type: Plain text
  5432. #: guix-git/doc/guix.texi:1527
  5433. #, fuzzy
  5434. msgid "When the daemon performs a build on behalf of the user, it creates a build directory under @file{/tmp} or under the directory specified by its @env{TMPDIR} environment variable. This directory is shared with the container for the duration of the build, though within the container, the build tree is always called @file{/tmp/guix-build-@var{name}.drv-0}."
  5435. msgstr "当后台进程代替用户执行构建时,它在@file{/tmp}或@code{TMPDIR}环境变量指定的文件夹里创建一个文件夹。在构建期间,这个文件夹被共享给容器,然而容器内,这个构建树总是叫做@file{/tmp/guix-build-@var{name}.drv-0}。"
  5436. #. type: Plain text
  5437. #: guix-git/doc/guix.texi:1531
  5438. #, fuzzy
  5439. msgid "The build directory is automatically deleted upon completion, unless the build failed and the client specified @option{--keep-failed} (@pxref{Common Build Options, @option{--keep-failed}})."
  5440. msgstr "结束时构建文件夹就被自动删除了,除非构建失败并且客户端指定了@option{--keep-failed}参数(@pxref{Invoking guix build, @option{--keep-failed}})。"
  5441. #. type: Plain text
  5442. #: guix-git/doc/guix.texi:1537
  5443. #, fuzzy
  5444. msgid "The daemon listens for connections and spawns one sub-process for each session started by a client (one of the @command{guix} sub-commands). The @command{guix processes} command allows you to get an overview of the activity on your system by viewing each of the active sessions and clients. @xref{Invoking guix processes}, for more information."
  5445. msgstr "后台进程监听连接并且为每个客户端(@command{guix}的子命令)启动的会话生成一个子进程。@command{guix processes}命令允许你获取系统上的活动的概况,浏览每个活动会话和客户端。@xref{Invoking guix processes},以了解更多信息。"
  5446. #. type: Plain text
  5447. #: guix-git/doc/guix.texi:1539
  5448. msgid "The following command-line options are supported:"
  5449. msgstr "下面这些命令行选项受支持:"
  5450. #. type: item
  5451. #: guix-git/doc/guix.texi:1541
  5452. #, no-wrap
  5453. msgid "--build-users-group=@var{group}"
  5454. msgstr "--build-users-group=@var{用户组}"
  5455. #. type: table
  5456. #: guix-git/doc/guix.texi:1544
  5457. msgid "Take users from @var{group} to run build processes (@pxref{Setting Up the Daemon, build users})."
  5458. msgstr "这会从@var{用户组}里选取用户,以运行构建进程(@pxref{Setting Up the Daemon,构建用户})。"
  5459. #. type: item
  5460. #: guix-git/doc/guix.texi:1545 guix-git/doc/guix.texi:10339
  5461. #, no-wrap
  5462. msgid "--no-substitutes"
  5463. msgstr "--no-substitutes"
  5464. #. type: cindex
  5465. #: guix-git/doc/guix.texi:1546 guix-git/doc/guix.texi:3038
  5466. #: guix-git/doc/guix.texi:3683
  5467. #, no-wrap
  5468. msgid "substitutes"
  5469. msgstr "substitutes"
  5470. #. type: table
  5471. #: guix-git/doc/guix.texi:1550 guix-git/doc/guix.texi:10343
  5472. msgid "Do not use substitutes for build products. That is, always build things locally instead of allowing downloads of pre-built binaries (@pxref{Substitutes})."
  5473. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5474. #. type: table
  5475. #: guix-git/doc/guix.texi:1554
  5476. #, fuzzy
  5477. msgid "When the daemon runs with @option{--no-substitutes}, clients can still explicitly enable substitution @i{via} the @code{set-build-options} remote procedure call (@pxref{The Store})."
  5478. msgstr "当后台进程用@code{--no-substitutes}参数启动时,客户端仍然可以显式地@i{通过}@code{set-build-options}远程过程调用来启用substitute(@pxref{The Store})。"
  5479. #. type: anchor{#1}
  5480. #: guix-git/doc/guix.texi:1556
  5481. msgid "daemon-substitute-urls"
  5482. msgstr "daemon-substitute-urls"
  5483. #. type: item
  5484. #: guix-git/doc/guix.texi:1556 guix-git/doc/guix.texi:10326
  5485. #: guix-git/doc/guix.texi:12358 guix-git/doc/guix.texi:13083
  5486. #: guix-git/doc/guix.texi:13308
  5487. #, no-wrap
  5488. msgid "--substitute-urls=@var{urls}"
  5489. msgstr "--substitute-urls=@var{urls}"
  5490. #. type: table
  5491. #: guix-git/doc/guix.texi:1560
  5492. #, fuzzy
  5493. #| msgid "Consider @var{urls} the default whitespace-separated list of substitute source URLs. When this option is omitted, @indicateurl{https://@value{SUBSTITUTE-SERVER}} is used."
  5494. msgid "Consider @var{urls} the default whitespace-separated list of substitute source URLs. When this option is omitted, @indicateurl{@value{SUBSTITUTE-URLS}} is used."
  5495. msgstr "@var{urls}是用空格分隔的substitute源URL列表。当这个选项被省略时,默认使用@indicateurl{https://@value{SUBSTITUTE-SERVER}}。"
  5496. #. type: table
  5497. #: guix-git/doc/guix.texi:1563
  5498. msgid "This means that substitutes may be downloaded from @var{urls}, as long as they are signed by a trusted signature (@pxref{Substitutes})."
  5499. msgstr "这意味着可以从@var{urls}下载substitute,只要它们的签名可信(@pxref{Substitutes})。"
  5500. #. type: table
  5501. #: guix-git/doc/guix.texi:1566
  5502. msgid "@xref{Getting Substitutes from Other Servers}, for more information on how to configure the daemon to get substitutes from other servers."
  5503. msgstr ""
  5504. #. type: item
  5505. #: guix-git/doc/guix.texi:1568 guix-git/doc/guix.texi:10362
  5506. #, fuzzy, no-wrap
  5507. msgid "--no-offload"
  5508. msgstr "下发"
  5509. #. type: table
  5510. #: guix-git/doc/guix.texi:1572 guix-git/doc/guix.texi:10366
  5511. #, fuzzy
  5512. msgid "Do not use offload builds to other machines (@pxref{Daemon Offload Setup}). That is, always build things locally instead of offloading builds to remote machines."
  5513. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5514. #. type: item
  5515. #: guix-git/doc/guix.texi:1573
  5516. #, no-wrap
  5517. msgid "--cache-failures"
  5518. msgstr "--cache-failures"
  5519. #. type: table
  5520. #: guix-git/doc/guix.texi:1575
  5521. msgid "Cache build failures. By default, only successful builds are cached."
  5522. msgstr "缓存失败的构建。默认地,只缓存成功的构建。"
  5523. #. type: table
  5524. #: guix-git/doc/guix.texi:1580
  5525. msgid "When this option is used, @command{guix gc --list-failures} can be used to query the set of store items marked as failed; @command{guix gc --clear-failures} removes store items from the set of cached failures. @xref{Invoking guix gc}."
  5526. msgstr "当这个选项被使用时,可以用@command{guix gc --list-failures}查询被标记为失败的仓库文件;@command{guix gc --clear-failures}从仓库里删除失败的缓存。@xref{Invoking guix gc}。"
  5527. #. type: item
  5528. #: guix-git/doc/guix.texi:1581 guix-git/doc/guix.texi:10392
  5529. #, no-wrap
  5530. msgid "--cores=@var{n}"
  5531. msgstr "--cores=@var{n}"
  5532. #. type: itemx
  5533. #: guix-git/doc/guix.texi:1582 guix-git/doc/guix.texi:10393
  5534. #, no-wrap
  5535. msgid "-c @var{n}"
  5536. msgstr "-c @var{n}"
  5537. #. type: table
  5538. #: guix-git/doc/guix.texi:1585
  5539. msgid "Use @var{n} CPU cores to build each derivation; @code{0} means as many as available."
  5540. msgstr "用@var{n}个CPU核来构建每个derivation;@code{0}表示有多少就用多少。"
  5541. #. type: table
  5542. #: guix-git/doc/guix.texi:1589
  5543. #, fuzzy
  5544. msgid "The default value is @code{0}, but it may be overridden by clients, such as the @option{--cores} option of @command{guix build} (@pxref{Invoking guix build})."
  5545. msgstr "默认值是@code{0},但是它的值可以被客户端覆盖,例如@command{guix build}的@code{--cores}选项(@pxref{Invoking guix build})。"
  5546. #. type: table
  5547. #: guix-git/doc/guix.texi:1593
  5548. #, fuzzy
  5549. msgid "The effect is to define the @env{NIX_BUILD_CORES} environment variable in the build process, which can then use it to exploit internal parallelism---for instance, by running @code{make -j$NIX_BUILD_CORES}."
  5550. msgstr "他的作用是在构建进程里设置@code{NIX_BUILD_CORES}环境变量,从而用它来利用内部的并行机制--例如,通过运行@code{make -j$NIX_BUILD_CORES}。"
  5551. #. type: item
  5552. #: guix-git/doc/guix.texi:1594 guix-git/doc/guix.texi:10397
  5553. #, no-wrap
  5554. msgid "--max-jobs=@var{n}"
  5555. msgstr "--max-jobs=@var{n}"
  5556. #. type: itemx
  5557. #: guix-git/doc/guix.texi:1595 guix-git/doc/guix.texi:10398
  5558. #, no-wrap
  5559. msgid "-M @var{n}"
  5560. msgstr "-M @var{n}"
  5561. #. type: table
  5562. #: guix-git/doc/guix.texi:1600
  5563. msgid "Allow at most @var{n} build jobs in parallel. The default value is @code{1}. Setting it to @code{0} means that no builds will be performed locally; instead, the daemon will offload builds (@pxref{Daemon Offload Setup}), or simply fail."
  5564. msgstr "最多允许@var{n}个并行的构建任务。默认值是@code{1}。设置为@code{0}表示不在本地执行构建;而是下发构建任务(@pxref{Daemon Offload Setup}),或者直接失败。"
  5565. #. type: item
  5566. #: guix-git/doc/guix.texi:1601 guix-git/doc/guix.texi:10367
  5567. #, no-wrap
  5568. msgid "--max-silent-time=@var{seconds}"
  5569. msgstr "--max-silent-time=@var{seconds}"
  5570. #. type: table
  5571. #: guix-git/doc/guix.texi:1604 guix-git/doc/guix.texi:10370
  5572. msgid "When the build or substitution process remains silent for more than @var{seconds}, terminate it and report a build failure."
  5573. msgstr "当构建或substitution进程超过@var{seconds}秒仍然保持静默,就把它结束掉并报告构建失败。"
  5574. #. type: table
  5575. #: guix-git/doc/guix.texi:1606 guix-git/doc/guix.texi:1615
  5576. msgid "The default value is @code{0}, which disables the timeout."
  5577. msgstr "默认值是@code{0},表示关闭超时。"
  5578. #. type: table
  5579. #: guix-git/doc/guix.texi:1609
  5580. #, fuzzy
  5581. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--max-silent-time}})."
  5582. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--max-silent-time}})。"
  5583. #. type: item
  5584. #: guix-git/doc/guix.texi:1610 guix-git/doc/guix.texi:10374
  5585. #, no-wrap
  5586. msgid "--timeout=@var{seconds}"
  5587. msgstr "--timeout=@var{seconds}"
  5588. #. type: table
  5589. #: guix-git/doc/guix.texi:1613 guix-git/doc/guix.texi:10377
  5590. msgid "Likewise, when the build or substitution process lasts for more than @var{seconds}, terminate it and report a build failure."
  5591. msgstr "类似地,当构建或substitution进程执行超过@var{seconds}秒,就把它结束掉并报告构建失败。"
  5592. #. type: table
  5593. #: guix-git/doc/guix.texi:1618
  5594. #, fuzzy
  5595. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--timeout}})."
  5596. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--timeout}})。"
  5597. #. type: item
  5598. #: guix-git/doc/guix.texi:1619
  5599. #, no-wrap
  5600. msgid "--rounds=@var{N}"
  5601. msgstr "--rounds=@var{N}"
  5602. #. type: table
  5603. #: guix-git/doc/guix.texi:1624
  5604. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical. Note that this setting can be overridden by clients such as @command{guix build} (@pxref{Invoking guix build})."
  5605. msgstr "为每个derivation构建@var{n}次,如果连续的构建结果不是每个比特都相同就报告错误。这个设置可以被@command{guix build}之类的客户端覆盖(@pxref{Invoking guix build})。"
  5606. #. type: table
  5607. #: guix-git/doc/guix.texi:1628 guix-git/doc/guix.texi:10361
  5608. #: guix-git/doc/guix.texi:10923
  5609. msgid "When used in conjunction with @option{--keep-failed}, the differing output is kept in the store, under @file{/gnu/store/@dots{}-check}. This makes it easy to look for differences between the two results."
  5610. msgstr "当和@option{--keep-failed}一起使用时,不同的输出保存在@file{/gnu/store/@dots{}-check}。这让检查两个结果的区别更容易。"
  5611. #. type: item
  5612. #: guix-git/doc/guix.texi:1629
  5613. #, no-wrap
  5614. msgid "--debug"
  5615. msgstr "--debug"
  5616. #. type: table
  5617. #: guix-git/doc/guix.texi:1631
  5618. msgid "Produce debugging output."
  5619. msgstr "生成调试输出。"
  5620. #. type: table
  5621. #: guix-git/doc/guix.texi:1635
  5622. #, fuzzy
  5623. msgid "This is useful to debug daemon start-up issues, but then it may be overridden by clients, for example the @option{--verbosity} option of @command{guix build} (@pxref{Invoking guix build})."
  5624. msgstr "这对调试后台进程的启动问题很有用,但是之后它可能会被客户端覆盖,例如@command{guix build}命令的@code{--verbosity}选项(@pxref{Invoking guix build})。"
  5625. #. type: item
  5626. #: guix-git/doc/guix.texi:1636
  5627. #, no-wrap
  5628. msgid "--chroot-directory=@var{dir}"
  5629. msgstr "--chroot-directory=@var{dir}"
  5630. #. type: table
  5631. #: guix-git/doc/guix.texi:1638
  5632. msgid "Add @var{dir} to the build chroot."
  5633. msgstr "把@var{dir}添加到构建的chroot。"
  5634. #. type: table
  5635. #: guix-git/doc/guix.texi:1644
  5636. msgid "Doing this may change the result of build processes---for instance if they use optional dependencies found in @var{dir} when it is available, and not otherwise. For that reason, it is not recommended to do so. Instead, make sure that each derivation declares all the inputs that it needs."
  5637. msgstr "这么做可能会改变构建进程的结果--例如,如果它们使用了在@var{dir}里发现的可选依赖。因此,建议不要这么做,而是确保每个derivation声明所需的全部输入。"
  5638. #. type: item
  5639. #: guix-git/doc/guix.texi:1645
  5640. #, no-wrap
  5641. msgid "--disable-chroot"
  5642. msgstr "--disable-chroot"
  5643. #. type: table
  5644. #: guix-git/doc/guix.texi:1647
  5645. msgid "Disable chroot builds."
  5646. msgstr "关闭chroot构建。"
  5647. #. type: table
  5648. #: guix-git/doc/guix.texi:1652
  5649. msgid "Using this option is not recommended since, again, it would allow build processes to gain access to undeclared dependencies. It is necessary, though, when @command{guix-daemon} is running under an unprivileged user account."
  5650. msgstr "不建议使用这个选项,因为它会允许构建进程访问到没被声明的依赖。但是,当@command{guix-daemon}以没有特权的用户身份运行时,这个选项是必须的。"
  5651. #. type: item
  5652. #: guix-git/doc/guix.texi:1653
  5653. #, no-wrap
  5654. msgid "--log-compression=@var{type}"
  5655. msgstr "--log-compression=@var{type}"
  5656. #. type: table
  5657. #: guix-git/doc/guix.texi:1656
  5658. msgid "Compress build logs according to @var{type}, one of @code{gzip}, @code{bzip2}, or @code{none}."
  5659. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  5660. #. type: table
  5661. #: guix-git/doc/guix.texi:1660
  5662. #, fuzzy
  5663. msgid "Unless @option{--lose-logs} is used, all the build logs are kept in the @var{localstatedir}. To save space, the daemon automatically compresses them with Bzip2 by default."
  5664. msgstr "除非使用了@code{--lose-logs},所有的构建日志都保存在@var{localstatedir}里。为了节省空间,后台进程默认使用bzip2对它们进行压缩。"
  5665. #. type: item
  5666. #: guix-git/doc/guix.texi:1661
  5667. #, no-wrap
  5668. msgid "--discover[=yes|no]"
  5669. msgstr ""
  5670. #. type: table
  5671. #: guix-git/doc/guix.texi:1664 guix-git/doc/guix.texi:15638
  5672. msgid "Whether to discover substitute servers on the local network using mDNS and DNS-SD."
  5673. msgstr ""
  5674. #. type: table
  5675. #: guix-git/doc/guix.texi:1667
  5676. msgid "This feature is still experimental. However, here are a few considerations."
  5677. msgstr ""
  5678. #. type: enumerate
  5679. #: guix-git/doc/guix.texi:1671
  5680. msgid "It might be faster/less expensive than fetching from remote servers;"
  5681. msgstr ""
  5682. #. type: enumerate
  5683. #: guix-git/doc/guix.texi:1674
  5684. msgid "There are no security risks, only genuine substitutes will be used (@pxref{Substitute Authentication});"
  5685. msgstr ""
  5686. #. type: enumerate
  5687. #: guix-git/doc/guix.texi:1678
  5688. msgid "An attacker advertising @command{guix publish} on your LAN cannot serve you malicious binaries, but they can learn what software you’re installing;"
  5689. msgstr ""
  5690. #. type: enumerate
  5691. #: guix-git/doc/guix.texi:1681
  5692. msgid "Servers may serve substitute over HTTP, unencrypted, so anyone on the LAN can see what software you’re installing."
  5693. msgstr ""
  5694. #. type: table
  5695. #: guix-git/doc/guix.texi:1685
  5696. msgid "It is also possible to enable or disable substitute server discovery at run-time by running:"
  5697. msgstr ""
  5698. #. type: example
  5699. #: guix-git/doc/guix.texi:1689
  5700. #, no-wrap
  5701. msgid ""
  5702. "herd discover guix-daemon on\n"
  5703. "herd discover guix-daemon off\n"
  5704. msgstr ""
  5705. #. type: item
  5706. #: guix-git/doc/guix.texi:1691
  5707. #, no-wrap
  5708. msgid "--disable-deduplication"
  5709. msgstr "--disable-deduplication"
  5710. #. type: cindex
  5711. #: guix-git/doc/guix.texi:1692 guix-git/doc/guix.texi:4268
  5712. #, no-wrap
  5713. msgid "deduplication"
  5714. msgstr "去重"
  5715. #. type: table
  5716. #: guix-git/doc/guix.texi:1694
  5717. msgid "Disable automatic file ``deduplication'' in the store."
  5718. msgstr "关闭自动对仓库文件“去重”。"
  5719. #. type: table
  5720. #: guix-git/doc/guix.texi:1701
  5721. msgid "By default, files added to the store are automatically ``deduplicated'': if a newly added file is identical to another one found in the store, the daemon makes the new file a hard link to the other file. This can noticeably reduce disk usage, at the expense of slightly increased input/output load at the end of a build process. This option disables this optimization."
  5722. msgstr "默认地,添加到仓库的文件会被自动“去重”:如果新添加的文件和仓库里找到的某个文件完全相同,后台进程把这个新文件变成另一个文件的硬链接。这可以明显地减少硬盘使用,代价是构建结束后轻微地增加输入/输出负载。这个选项关闭这个优化。"
  5723. #. type: item
  5724. #: guix-git/doc/guix.texi:1702
  5725. #, no-wrap
  5726. msgid "--gc-keep-outputs[=yes|no]"
  5727. msgstr "--gc-keep-outputs[=yes|no]"
  5728. #. type: table
  5729. #: guix-git/doc/guix.texi:1705
  5730. msgid "Tell whether the garbage collector (GC) must keep outputs of live derivations."
  5731. msgstr "垃圾收集器(GC)是否必须保留存活的derivation的输出。"
  5732. #. type: cindex
  5733. #: guix-git/doc/guix.texi:1706 guix-git/doc/guix.texi:4081
  5734. #, no-wrap
  5735. msgid "GC roots"
  5736. msgstr "GC根"
  5737. #. type: cindex
  5738. #: guix-git/doc/guix.texi:1707 guix-git/doc/guix.texi:4082
  5739. #, no-wrap
  5740. msgid "garbage collector roots"
  5741. msgstr "垃圾收集的根"
  5742. #. type: table
  5743. #: guix-git/doc/guix.texi:1713
  5744. #, fuzzy
  5745. msgid "When set to @code{yes}, the GC will keep the outputs of any live derivation available in the store---the @file{.drv} files. The default is @code{no}, meaning that derivation outputs are kept only if they are reachable from a GC root. @xref{Invoking guix gc}, for more on GC roots."
  5746. msgstr "当设置为“yes”时,GC会保留仓库里每个存活的derivation(@code{.drv}文件)的输出。默认是“no”,表示只有当从GC根可以访问时才保留derivation的输出。@xref{Invoking guix gc},了解更多关于GC根的信息。"
  5747. #. type: item
  5748. #: guix-git/doc/guix.texi:1714
  5749. #, no-wrap
  5750. msgid "--gc-keep-derivations[=yes|no]"
  5751. msgstr "--gc-keep-derivations[=yes|no]"
  5752. #. type: table
  5753. #: guix-git/doc/guix.texi:1717
  5754. msgid "Tell whether the garbage collector (GC) must keep derivations corresponding to live outputs."
  5755. msgstr "垃圾收集器(GC)是否必须保留和存活的输出相关的derivation。"
  5756. #. type: table
  5757. #: guix-git/doc/guix.texi:1723
  5758. #, fuzzy
  5759. msgid "When set to @code{yes}, as is the case by default, the GC keeps derivations---i.e., @file{.drv} files---as long as at least one of their outputs is live. This allows users to keep track of the origins of items in their store. Setting it to @code{no} saves a bit of disk space."
  5760. msgstr "当设置为“yes”时(默认),只要derivation(即@code{.drv}文件)的输出至少有一个是存活的,GC就将其保留。这让用户可以追踪仓库里物品的源头。设置为“no”可以节省一点硬盘空间。"
  5761. #. type: table
  5762. #: guix-git/doc/guix.texi:1732
  5763. #, fuzzy
  5764. msgid "In this way, setting @option{--gc-keep-derivations} to @code{yes} causes liveness to flow from outputs to derivations, and setting @option{--gc-keep-outputs} to @code{yes} causes liveness to flow from derivations to outputs. When both are set to @code{yes}, the effect is to keep all the build prerequisites (the sources, compiler, libraries, and other build-time tools) of live objects in the store, regardless of whether these prerequisites are reachable from a GC root. This is convenient for developers since it saves rebuilds or downloads."
  5765. msgstr "这样,设置@code{--gc-keep-derivations}为“yes”使存活性从“输出”传递到“derivation”,设置@code{--gc-keep-outputs}为“yes”使存活性从“derivation”传递到“输出”。当两者都设置为“yes”时,效果是保留所有在仓库里的存活对象的构建先决条件(源代码,编译器,库,和其它构建时的工具),不管这些先决条件是否能从某个GC根访问到。这对开发者来说很方便,因为它避免了重复构建和下载。"
  5766. #. type: item
  5767. #: guix-git/doc/guix.texi:1733
  5768. #, no-wrap
  5769. msgid "--impersonate-linux-2.6"
  5770. msgstr "--impersonate-linux-2.6"
  5771. #. type: table
  5772. #: guix-git/doc/guix.texi:1736
  5773. #, fuzzy
  5774. msgid "On Linux-based systems, impersonate Linux 2.6. This means that the kernel's @command{uname} system call will report 2.6 as the release number."
  5775. msgstr "在基于Linux的系统上,伪装成Linux 2.6。这意味着内核的@code{uname}系统调用会把版本号报告为2.6。"
  5776. #. type: table
  5777. #: guix-git/doc/guix.texi:1739
  5778. msgid "This might be helpful to build programs that (usually wrongfully) depend on the kernel version number."
  5779. msgstr "这可能会有助于构建那些(通常是错误地)依赖内核版本号的程序。"
  5780. #. type: item
  5781. #: guix-git/doc/guix.texi:1740
  5782. #, no-wrap
  5783. msgid "--lose-logs"
  5784. msgstr "--lose-logs"
  5785. #. type: table
  5786. #: guix-git/doc/guix.texi:1743
  5787. #, fuzzy
  5788. msgid "Do not keep build logs. By default they are kept under @file{@var{localstatedir}/guix/log}."
  5789. msgstr "不保留构建日志。默认保存在@code{@var{localstatedir}/guix/log}。"
  5790. #. type: item
  5791. #: guix-git/doc/guix.texi:1744 guix-git/doc/guix.texi:4509
  5792. #: guix-git/doc/guix.texi:5808 guix-git/doc/guix.texi:6208
  5793. #: guix-git/doc/guix.texi:10867 guix-git/doc/guix.texi:12385
  5794. #: guix-git/doc/guix.texi:12636 guix-git/doc/guix.texi:13313
  5795. #: guix-git/doc/guix.texi:33044 guix-git/doc/guix.texi:33843
  5796. #, no-wrap
  5797. msgid "--system=@var{system}"
  5798. msgstr "--system=@var{system}"
  5799. #. type: table
  5800. #: guix-git/doc/guix.texi:1748
  5801. msgid "Assume @var{system} as the current system type. By default it is the architecture/kernel pair found at configure time, such as @code{x86_64-linux}."
  5802. msgstr "假设@var{system}是当前的系统类型。默认值是configure时发现的架构/内核元组,如@code{x86_64-linux}。"
  5803. #. type: item
  5804. #: guix-git/doc/guix.texi:1749 guix-git/doc/guix.texi:10172
  5805. #, no-wrap
  5806. msgid "--listen=@var{endpoint}"
  5807. msgstr "--listen=@var{endpoint}"
  5808. #. type: table
  5809. #: guix-git/doc/guix.texi:1754
  5810. msgid "Listen for connections on @var{endpoint}. @var{endpoint} is interpreted as the file name of a Unix-domain socket if it starts with @code{/} (slash sign). Otherwise, @var{endpoint} is interpreted as a host name or host name and port to listen to. Here are a few examples:"
  5811. msgstr ""
  5812. #. type: item
  5813. #: guix-git/doc/guix.texi:1756
  5814. #, no-wrap
  5815. msgid "--listen=/gnu/var/daemon"
  5816. msgstr ""
  5817. #. type: table
  5818. #: guix-git/doc/guix.texi:1759
  5819. msgid "Listen for connections on the @file{/gnu/var/daemon} Unix-domain socket, creating it if needed."
  5820. msgstr ""
  5821. #. type: item
  5822. #: guix-git/doc/guix.texi:1760
  5823. #, no-wrap
  5824. msgid "--listen=localhost"
  5825. msgstr ""
  5826. #. type: cindex
  5827. #: guix-git/doc/guix.texi:1761 guix-git/doc/guix.texi:8846
  5828. #, no-wrap
  5829. msgid "daemon, remote access"
  5830. msgstr ""
  5831. #. type: cindex
  5832. #: guix-git/doc/guix.texi:1762 guix-git/doc/guix.texi:8847
  5833. #, no-wrap
  5834. msgid "remote access to the daemon"
  5835. msgstr ""
  5836. #. type: cindex
  5837. #: guix-git/doc/guix.texi:1763 guix-git/doc/guix.texi:8848
  5838. #, no-wrap
  5839. msgid "daemon, cluster setup"
  5840. msgstr ""
  5841. #. type: cindex
  5842. #: guix-git/doc/guix.texi:1764 guix-git/doc/guix.texi:8849
  5843. #, no-wrap
  5844. msgid "clusters, daemon setup"
  5845. msgstr ""
  5846. #. type: table
  5847. #: guix-git/doc/guix.texi:1767
  5848. msgid "Listen for TCP connections on the network interface corresponding to @code{localhost}, on port 44146."
  5849. msgstr ""
  5850. #. type: item
  5851. #: guix-git/doc/guix.texi:1768
  5852. #, no-wrap
  5853. msgid "--listen=128.0.0.42:1234"
  5854. msgstr ""
  5855. #. type: table
  5856. #: guix-git/doc/guix.texi:1771
  5857. msgid "Listen for TCP connections on the network interface corresponding to @code{128.0.0.42}, on port 1234."
  5858. msgstr ""
  5859. #. type: table
  5860. #: guix-git/doc/guix.texi:1778
  5861. msgid "This option can be repeated multiple times, in which case @command{guix-daemon} accepts connections on all the specified endpoints. Users can tell client commands what endpoint to connect to by setting the @env{GUIX_DAEMON_SOCKET} environment variable (@pxref{The Store, @env{GUIX_DAEMON_SOCKET}})."
  5862. msgstr ""
  5863. #. type: quotation
  5864. #: guix-git/doc/guix.texi:1785
  5865. msgid "The daemon protocol is @emph{unauthenticated and unencrypted}. Using @option{--listen=@var{host}} is suitable on local networks, such as clusters, where only trusted nodes may connect to the build daemon. In other cases where remote access to the daemon is needed, we recommend using Unix-domain sockets along with SSH."
  5866. msgstr ""
  5867. #. type: table
  5868. #: guix-git/doc/guix.texi:1790
  5869. msgid "When @option{--listen} is omitted, @command{guix-daemon} listens for connections on the Unix-domain socket located at @file{@var{localstatedir}/guix/daemon-socket/socket}."
  5870. msgstr ""
  5871. #. type: Plain text
  5872. #: guix-git/doc/guix.texi:1800
  5873. msgid "When using Guix on top of GNU/Linux distribution other than Guix System---a so-called @dfn{foreign distro}---a few additional steps are needed to get everything in place. Here are some of them."
  5874. msgstr ""
  5875. #. type: anchor{#1}
  5876. #: guix-git/doc/guix.texi:1804
  5877. msgid "locales-and-locpath"
  5878. msgstr ""
  5879. #. type: cindex
  5880. #: guix-git/doc/guix.texi:1804
  5881. #, no-wrap
  5882. msgid "locales, when not on Guix System"
  5883. msgstr ""
  5884. #. type: vindex
  5885. #: guix-git/doc/guix.texi:1805 guix-git/doc/guix.texi:14846
  5886. #, no-wrap
  5887. msgid "LOCPATH"
  5888. msgstr ""
  5889. #. type: vindex
  5890. #: guix-git/doc/guix.texi:1806
  5891. #, no-wrap
  5892. msgid "GUIX_LOCPATH"
  5893. msgstr ""
  5894. #. type: Plain text
  5895. #: guix-git/doc/guix.texi:1811
  5896. msgid "Packages installed @i{via} Guix will not use the locale data of the host system. Instead, you must first install one of the locale packages available with Guix and then define the @env{GUIX_LOCPATH} environment variable:"
  5897. msgstr ""
  5898. #. type: example
  5899. #: guix-git/doc/guix.texi:1815
  5900. #, no-wrap
  5901. msgid ""
  5902. "$ guix install glibc-locales\n"
  5903. "$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale\n"
  5904. msgstr ""
  5905. #. type: Plain text
  5906. #: guix-git/doc/guix.texi:1821
  5907. msgid "Note that the @code{glibc-locales} package contains data for all the locales supported by the GNU@tie{}libc and weighs in at around 917@tie{}MiB@. Alternatively, the @code{glibc-utf8-locales} is smaller but limited to a few UTF-8 locales."
  5908. msgstr ""
  5909. #. type: Plain text
  5910. #: guix-git/doc/guix.texi:1825
  5911. msgid "The @env{GUIX_LOCPATH} variable plays a role similar to @env{LOCPATH} (@pxref{Locale Names, @env{LOCPATH},, libc, The GNU C Library Reference Manual}). There are two important differences though:"
  5912. msgstr ""
  5913. #. type: enumerate
  5914. #: guix-git/doc/guix.texi:1832
  5915. msgid "@env{GUIX_LOCPATH} is honored only by the libc in Guix, and not by the libc provided by foreign distros. Thus, using @env{GUIX_LOCPATH} allows you to make sure the programs of the foreign distro will not end up loading incompatible locale data."
  5916. msgstr ""
  5917. #. type: enumerate
  5918. #: guix-git/doc/guix.texi:1839
  5919. msgid "libc suffixes each entry of @env{GUIX_LOCPATH} with @code{/X.Y}, where @code{X.Y} is the libc version---e.g., @code{2.22}. This means that, should your Guix profile contain a mixture of programs linked against different libc version, each libc version will only try to load locale data in the right format."
  5920. msgstr ""
  5921. #. type: Plain text
  5922. #: guix-git/doc/guix.texi:1843
  5923. msgid "This is important because the locale data format used by different libc versions may be incompatible."
  5924. msgstr ""
  5925. #. type: cindex
  5926. #: guix-git/doc/guix.texi:1846
  5927. #, no-wrap
  5928. msgid "name service switch, glibc"
  5929. msgstr ""
  5930. #. type: cindex
  5931. #: guix-git/doc/guix.texi:1847
  5932. #, no-wrap
  5933. msgid "NSS (name service switch), glibc"
  5934. msgstr ""
  5935. #. type: cindex
  5936. #: guix-git/doc/guix.texi:1848
  5937. #, no-wrap
  5938. msgid "nscd (name service caching daemon)"
  5939. msgstr ""
  5940. #. type: cindex
  5941. #: guix-git/doc/guix.texi:1849
  5942. #, no-wrap
  5943. msgid "name service caching daemon (nscd)"
  5944. msgstr ""
  5945. #. type: Plain text
  5946. #: guix-git/doc/guix.texi:1856
  5947. msgid "When using Guix on a foreign distro, we @emph{strongly recommend} that the system run the GNU C library's @dfn{name service cache daemon}, @command{nscd}, which should be listening on the @file{/var/run/nscd/socket} socket. Failing to do that, applications installed with Guix may fail to look up host names or user accounts, or may even crash. The next paragraphs explain why."
  5948. msgstr ""
  5949. #. type: file{#1}
  5950. #: guix-git/doc/guix.texi:1857
  5951. #, no-wrap
  5952. msgid "nsswitch.conf"
  5953. msgstr ""
  5954. #. type: Plain text
  5955. #: guix-git/doc/guix.texi:1862
  5956. msgid "The GNU C library implements a @dfn{name service switch} (NSS), which is an extensible mechanism for ``name lookups'' in general: host name resolution, user accounts, and more (@pxref{Name Service Switch,,, libc, The GNU C Library Reference Manual})."
  5957. msgstr ""
  5958. #. type: cindex
  5959. #: guix-git/doc/guix.texi:1863
  5960. #, no-wrap
  5961. msgid "Network information service (NIS)"
  5962. msgstr ""
  5963. #. type: cindex
  5964. #: guix-git/doc/guix.texi:1864
  5965. #, no-wrap
  5966. msgid "NIS (Network information service)"
  5967. msgstr ""
  5968. #. type: Plain text
  5969. #: guix-git/doc/guix.texi:1873
  5970. msgid "Being extensible, the NSS supports @dfn{plugins}, which provide new name lookup implementations: for example, the @code{nss-mdns} plugin allow resolution of @code{.local} host names, the @code{nis} plugin allows user account lookup using the Network information service (NIS), and so on. These extra ``lookup services'' are configured system-wide in @file{/etc/nsswitch.conf}, and all the programs running on the system honor those settings (@pxref{NSS Configuration File,,, libc, The GNU C Reference Manual})."
  5971. msgstr ""
  5972. #. type: Plain text
  5973. #: guix-git/doc/guix.texi:1883
  5974. msgid "When they perform a name lookup---for instance by calling the @code{getaddrinfo} function in C---applications first try to connect to the nscd; on success, nscd performs name lookups on their behalf. If the nscd is not running, then they perform the name lookup by themselves, by loading the name lookup services into their own address space and running it. These name lookup services---the @file{libnss_*.so} files---are @code{dlopen}'d, but they may come from the host system's C library, rather than from the C library the application is linked against (the C library coming from Guix)."
  5975. msgstr ""
  5976. #. type: Plain text
  5977. #: guix-git/doc/guix.texi:1888
  5978. msgid "And this is where the problem is: if your application is linked against Guix's C library (say, glibc 2.24) and tries to load NSS plugins from another C library (say, @code{libnss_mdns.so} for glibc 2.22), it will likely crash or have its name lookups fail unexpectedly."
  5979. msgstr ""
  5980. #. type: Plain text
  5981. #: guix-git/doc/guix.texi:1893
  5982. msgid "Running @command{nscd} on the system, among other advantages, eliminates this binary incompatibility problem because those @code{libnss_*.so} files are loaded in the @command{nscd} process, not in applications themselves."
  5983. msgstr ""
  5984. #. type: subsection
  5985. #: guix-git/doc/guix.texi:1894
  5986. #, no-wrap
  5987. msgid "X11 Fonts"
  5988. msgstr ""
  5989. #. type: Plain text
  5990. #: guix-git/doc/guix.texi:1904
  5991. msgid "The majority of graphical applications use Fontconfig to locate and load fonts and perform X11-client-side rendering. The @code{fontconfig} package in Guix looks for fonts in @file{$HOME/.guix-profile} by default. Thus, to allow graphical applications installed with Guix to display fonts, you have to install fonts with Guix as well. Essential font packages include @code{gs-fonts}, @code{font-dejavu}, and @code{font-gnu-freefont}."
  5992. msgstr ""
  5993. #. type: code{#1}
  5994. #: guix-git/doc/guix.texi:1905
  5995. #, no-wrap
  5996. msgid "fc-cache"
  5997. msgstr ""
  5998. #. type: cindex
  5999. #: guix-git/doc/guix.texi:1906
  6000. #, no-wrap
  6001. msgid "font cache"
  6002. msgstr ""
  6003. #. type: Plain text
  6004. #: guix-git/doc/guix.texi:1910
  6005. msgid "Once you have installed or removed fonts, or when you notice an application that does not find fonts, you may need to install Fontconfig and to force an update of its font cache by running:"
  6006. msgstr ""
  6007. #. type: example
  6008. #: guix-git/doc/guix.texi:1914
  6009. #, no-wrap
  6010. msgid ""
  6011. "guix install fontconfig\n"
  6012. "fc-cache -rv\n"
  6013. msgstr ""
  6014. #. type: Plain text
  6015. #: guix-git/doc/guix.texi:1922
  6016. msgid "To display text written in Chinese languages, Japanese, or Korean in graphical applications, consider installing @code{font-adobe-source-han-sans} or @code{font-wqy-zenhei}. The former has multiple outputs, one per language family (@pxref{Packages with Multiple Outputs}). For instance, the following command installs fonts for Chinese languages:"
  6017. msgstr ""
  6018. #. type: example
  6019. #: guix-git/doc/guix.texi:1925
  6020. #, no-wrap
  6021. msgid "guix install font-adobe-source-han-sans:cn\n"
  6022. msgstr ""
  6023. #. type: code{#1}
  6024. #: guix-git/doc/guix.texi:1927
  6025. #, no-wrap
  6026. msgid "xterm"
  6027. msgstr ""
  6028. #. type: Plain text
  6029. #: guix-git/doc/guix.texi:1931
  6030. msgid "Older programs such as @command{xterm} do not use Fontconfig and instead rely on server-side font rendering. Such programs require to specify a full name of a font using XLFD (X Logical Font Description), like this:"
  6031. msgstr ""
  6032. #. type: example
  6033. #: guix-git/doc/guix.texi:1934
  6034. #, no-wrap
  6035. msgid "-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1\n"
  6036. msgstr ""
  6037. #. type: Plain text
  6038. #: guix-git/doc/guix.texi:1938
  6039. msgid "To be able to use such full names for the TrueType fonts installed in your Guix profile, you need to extend the font path of the X server:"
  6040. msgstr ""
  6041. #. type: example
  6042. #: guix-git/doc/guix.texi:1943
  6043. #, no-wrap
  6044. msgid "xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))\n"
  6045. msgstr ""
  6046. #. type: code{#1}
  6047. #: guix-git/doc/guix.texi:1945
  6048. #, no-wrap
  6049. msgid "xlsfonts"
  6050. msgstr ""
  6051. #. type: Plain text
  6052. #: guix-git/doc/guix.texi:1948
  6053. msgid "After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) to make sure your TrueType fonts are listed there."
  6054. msgstr ""
  6055. #. type: code{#1}
  6056. #: guix-git/doc/guix.texi:1952 guix-git/doc/guix.texi:32782
  6057. #, no-wrap
  6058. msgid "nss-certs"
  6059. msgstr ""
  6060. #. type: Plain text
  6061. #: guix-git/doc/guix.texi:1955
  6062. msgid "The @code{nss-certs} package provides X.509 certificates, which allow programs to authenticate Web servers accessed over HTTPS."
  6063. msgstr ""
  6064. #. type: Plain text
  6065. #: guix-git/doc/guix.texi:1960
  6066. msgid "When using Guix on a foreign distro, you can install this package and define the relevant environment variables so that packages know where to look for certificates. @xref{X.509 Certificates}, for detailed information."
  6067. msgstr ""
  6068. #. type: code{#1}
  6069. #: guix-git/doc/guix.texi:1963
  6070. #, no-wrap
  6071. msgid "emacs"
  6072. msgstr ""
  6073. #. type: Plain text
  6074. #: guix-git/doc/guix.texi:1969
  6075. msgid "When you install Emacs packages with Guix, the Elisp files are placed under the @file{share/emacs/site-lisp/} directory of the profile in which they are installed. The Elisp libraries are made available to Emacs through the @env{EMACSLOADPATH} environment variable, which is set when installing Emacs itself."
  6076. msgstr ""
  6077. #. type: Plain text
  6078. #: guix-git/doc/guix.texi:1976
  6079. msgid "Additionally, autoload definitions are automatically evaluated at the initialization of Emacs, by the Guix-specific @code{guix-emacs-autoload-packages} procedure. If, for some reason, you want to avoid auto-loading the Emacs packages installed with Guix, you can do so by running Emacs with the @option{--no-site-file} option (@pxref{Init File,,, emacs, The GNU Emacs Manual})."
  6080. msgstr ""
  6081. #. type: cindex
  6082. #: guix-git/doc/guix.texi:1981
  6083. #, no-wrap
  6084. msgid "Upgrading Guix, on a foreign distro"
  6085. msgstr ""
  6086. #. type: Plain text
  6087. #: guix-git/doc/guix.texi:1984
  6088. msgid "To upgrade Guix, run:"
  6089. msgstr ""
  6090. #. type: example
  6091. #: guix-git/doc/guix.texi:1987 guix-git/doc/guix.texi:2834
  6092. #, no-wrap
  6093. msgid "guix pull\n"
  6094. msgstr "guix pull\n"
  6095. #. type: Plain text
  6096. #: guix-git/doc/guix.texi:1990
  6097. #, fuzzy
  6098. msgid "@xref{Invoking guix pull}, for more information."
  6099. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  6100. #. type: cindex
  6101. #: guix-git/doc/guix.texi:1991
  6102. #, no-wrap
  6103. msgid "upgrading Guix for the root user, on a foreign distro"
  6104. msgstr ""
  6105. #. type: cindex
  6106. #: guix-git/doc/guix.texi:1992
  6107. #, no-wrap
  6108. msgid "upgrading the Guix daemon, on a foreign distro"
  6109. msgstr ""
  6110. #. type: cindex
  6111. #: guix-git/doc/guix.texi:1993
  6112. #, no-wrap
  6113. msgid "@command{guix pull} for the root user, on a foreign distro"
  6114. msgstr ""
  6115. #. type: Plain text
  6116. #: guix-git/doc/guix.texi:1996
  6117. msgid "On a foreign distro, you can upgrade the build daemon by running:"
  6118. msgstr ""
  6119. #. type: example
  6120. #: guix-git/doc/guix.texi:1999
  6121. #, no-wrap
  6122. msgid "sudo -i guix pull\n"
  6123. msgstr "sudo -i guix pull\n"
  6124. #. type: Plain text
  6125. #: guix-git/doc/guix.texi:2004
  6126. msgid "followed by (assuming your distro uses the systemd service management tool):"
  6127. msgstr ""
  6128. #. type: example
  6129. #: guix-git/doc/guix.texi:2007
  6130. #, fuzzy, no-wrap
  6131. msgid "systemctl restart guix-daemon.service\n"
  6132. msgstr "semodule -i etc/guix-daemon.cil\n"
  6133. #. type: Plain text
  6134. #: guix-git/doc/guix.texi:2011
  6135. msgid "On Guix System, upgrading the daemon is achieved by reconfiguring the system (@pxref{Invoking guix system, @code{guix system reconfigure}})."
  6136. msgstr ""
  6137. #. type: cindex
  6138. #: guix-git/doc/guix.texi:2018
  6139. #, no-wrap
  6140. msgid "installing Guix System"
  6141. msgstr ""
  6142. #. type: cindex
  6143. #: guix-git/doc/guix.texi:2019
  6144. #, no-wrap
  6145. msgid "Guix System, installation"
  6146. msgstr ""
  6147. #. type: Plain text
  6148. #: guix-git/doc/guix.texi:2024
  6149. msgid "This section explains how to install Guix System on a machine. Guix, as a package manager, can also be installed on top of a running GNU/Linux system, @pxref{Installation}."
  6150. msgstr ""
  6151. #. type: quotation
  6152. #: guix-git/doc/guix.texi:2033
  6153. msgid "You are reading this documentation with an Info reader. For details on how to use it, hit the @key{RET} key (``return'' or ``enter'') on the link that follows: @pxref{Top, Info reader,, info-stnd, Stand-alone GNU Info}. Hit @kbd{l} afterwards to come back here."
  6154. msgstr ""
  6155. #. type: quotation
  6156. #: guix-git/doc/guix.texi:2036
  6157. msgid "Alternatively, run @command{info info} in another tty to keep the manual available."
  6158. msgstr ""
  6159. #. type: Plain text
  6160. #: guix-git/doc/guix.texi:2057
  6161. msgid "We consider Guix System to be ready for a wide range of ``desktop'' and server use cases. The reliability guarantees it provides---transactional upgrades and rollbacks, reproducibility---make it a solid foundation."
  6162. msgstr ""
  6163. #. type: Plain text
  6164. #: guix-git/doc/guix.texi:2060
  6165. msgid "Nevertheless, before you proceed with the installation, be aware of the following noteworthy limitations applicable to version @value{VERSION}:"
  6166. msgstr ""
  6167. #. type: itemize
  6168. #: guix-git/doc/guix.texi:2065
  6169. msgid "More and more system services are provided (@pxref{Services}), but some may be missing."
  6170. msgstr ""
  6171. #. type: itemize
  6172. #: guix-git/doc/guix.texi:2070
  6173. msgid "GNOME, Xfce, LXDE, and Enlightenment are available (@pxref{Desktop Services}), as well as a number of X11 window managers. However, KDE is currently missing."
  6174. msgstr ""
  6175. #. type: Plain text
  6176. #: guix-git/doc/guix.texi:2075
  6177. msgid "More than a disclaimer, this is an invitation to report issues (and success stories!), and to join us in improving it. @xref{Contributing}, for more info."
  6178. msgstr ""
  6179. #. type: cindex
  6180. #: guix-git/doc/guix.texi:2080
  6181. #, no-wrap
  6182. msgid "hardware support on Guix System"
  6183. msgstr ""
  6184. #. type: Plain text
  6185. #: guix-git/doc/guix.texi:2089
  6186. msgid "GNU@tie{}Guix focuses on respecting the user's computing freedom. It builds around the kernel Linux-libre, which means that only hardware for which free software drivers and firmware exist is supported. Nowadays, a wide range of off-the-shelf hardware is supported on GNU/Linux-libre---from keyboards to graphics cards to scanners and Ethernet controllers. Unfortunately, there are still areas where hardware vendors deny users control over their own computing, and such hardware is not supported on Guix System."
  6187. msgstr ""
  6188. #. type: cindex
  6189. #: guix-git/doc/guix.texi:2090
  6190. #, no-wrap
  6191. msgid "WiFi, hardware support"
  6192. msgstr ""
  6193. #. type: Plain text
  6194. #: guix-git/doc/guix.texi:2099
  6195. msgid "One of the main areas where free drivers or firmware are lacking is WiFi devices. WiFi devices known to work include those using Atheros chips (AR9271 and AR7010), which corresponds to the @code{ath9k} Linux-libre driver, and those using Broadcom/AirForce chips (BCM43xx with Wireless-Core Revision 5), which corresponds to the @code{b43-open} Linux-libre driver. Free firmware exists for both and is available out-of-the-box on Guix System, as part of @code{%base-firmware} (@pxref{operating-system Reference, @code{firmware}})."
  6196. msgstr ""
  6197. #. type: cindex
  6198. #: guix-git/doc/guix.texi:2100
  6199. #, no-wrap
  6200. msgid "RYF, Respects Your Freedom"
  6201. msgstr ""
  6202. #. type: Plain text
  6203. #: guix-git/doc/guix.texi:2106
  6204. msgid "The @uref{https://www.fsf.org/, Free Software Foundation} runs @uref{https://www.fsf.org/ryf, @dfn{Respects Your Freedom}} (RYF), a certification program for hardware products that respect your freedom and your privacy and ensure that you have control over your device. We encourage you to check the list of RYF-certified devices."
  6205. msgstr ""
  6206. #. type: Plain text
  6207. #: guix-git/doc/guix.texi:2110
  6208. msgid "Another useful resource is the @uref{https://www.h-node.org/, H-Node} web site. It contains a catalog of hardware devices with information about their support in GNU/Linux."
  6209. msgstr ""
  6210. #. type: Plain text
  6211. #: guix-git/doc/guix.texi:2119
  6212. msgid "An ISO-9660 installation image that can be written to a USB stick or burnt to a DVD can be downloaded from @indicateurl{@value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso}, where you can replace @code{x86_64-linux} with one of:"
  6213. msgstr ""
  6214. #. type: table
  6215. #: guix-git/doc/guix.texi:2123
  6216. msgid "for a GNU/Linux system on Intel/AMD-compatible 64-bit CPUs;"
  6217. msgstr ""
  6218. #. type: table
  6219. #: guix-git/doc/guix.texi:2126
  6220. msgid "for a 32-bit GNU/Linux system on Intel-compatible CPUs."
  6221. msgstr ""
  6222. #. type: Plain text
  6223. #: guix-git/doc/guix.texi:2131
  6224. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the image against it, along these lines:"
  6225. msgstr ""
  6226. #. type: example
  6227. #: guix-git/doc/guix.texi:2135
  6228. #, no-wrap
  6229. msgid ""
  6230. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6231. "$ gpg --verify guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6232. msgstr ""
  6233. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6234. "$ gpg --verify guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6235. #. type: example
  6236. #: guix-git/doc/guix.texi:2143
  6237. #, no-wrap
  6238. msgid ""
  6239. "$ wget @value{OPENPGP-SIGNING-KEY-URL} \\\n"
  6240. " -qO - | gpg --import -\n"
  6241. msgstr ""
  6242. #. type: Plain text
  6243. #: guix-git/doc/guix.texi:2155
  6244. msgid "This image contains the tools necessary for an installation. It is meant to be copied @emph{as is} to a large-enough USB stick or DVD."
  6245. msgstr ""
  6246. #. type: unnumberedsubsec
  6247. #: guix-git/doc/guix.texi:2156
  6248. #, no-wrap
  6249. msgid "Copying to a USB Stick"
  6250. msgstr ""
  6251. #. type: Plain text
  6252. #: guix-git/doc/guix.texi:2161
  6253. msgid "Insert a USB stick of 1@tie{}GiB or more into your machine, and determine its device name. Assuming that the USB stick is known as @file{/dev/sdX}, copy the image with:"
  6254. msgstr ""
  6255. #. type: example
  6256. #: guix-git/doc/guix.texi:2165
  6257. #, no-wrap
  6258. msgid ""
  6259. "dd if=guix-system-install-@value{VERSION}.x86_64-linux.iso of=/dev/sdX status=progress\n"
  6260. "sync\n"
  6261. msgstr ""
  6262. #. type: Plain text
  6263. #: guix-git/doc/guix.texi:2168
  6264. msgid "Access to @file{/dev/sdX} usually requires root privileges."
  6265. msgstr ""
  6266. #. type: unnumberedsubsec
  6267. #: guix-git/doc/guix.texi:2169
  6268. #, no-wrap
  6269. msgid "Burning on a DVD"
  6270. msgstr ""
  6271. #. type: Plain text
  6272. #: guix-git/doc/guix.texi:2174
  6273. msgid "Insert a blank DVD into your machine, and determine its device name. Assuming that the DVD drive is known as @file{/dev/srX}, copy the image with:"
  6274. msgstr ""
  6275. #. type: example
  6276. #: guix-git/doc/guix.texi:2177
  6277. #, no-wrap
  6278. msgid "growisofs -dvd-compat -Z /dev/srX=guix-system-install-@value{VERSION}.x86_64-linux.iso\n"
  6279. msgstr ""
  6280. #. type: Plain text
  6281. #: guix-git/doc/guix.texi:2180
  6282. msgid "Access to @file{/dev/srX} usually requires root privileges."
  6283. msgstr ""
  6284. #. type: unnumberedsubsec
  6285. #: guix-git/doc/guix.texi:2181
  6286. #, no-wrap
  6287. msgid "Booting"
  6288. msgstr ""
  6289. #. type: Plain text
  6290. #: guix-git/doc/guix.texi:2188
  6291. msgid "Once this is done, you should be able to reboot the system and boot from the USB stick or DVD@. The latter usually requires you to get in the BIOS or UEFI boot menu, where you can choose to boot from the USB stick. In order to boot from Libreboot, switch to the command mode by pressing the @kbd{c} key and type @command{search_grub usb}."
  6292. msgstr ""
  6293. #. type: Plain text
  6294. #: guix-git/doc/guix.texi:2191
  6295. msgid "@xref{Installing Guix in a VM}, if, instead, you would like to install Guix System in a virtual machine (VM)."
  6296. msgstr ""
  6297. #. type: Plain text
  6298. #: guix-git/doc/guix.texi:2201
  6299. msgid "Once you have booted, you can use the guided graphical installer, which makes it easy to get started (@pxref{Guided Graphical Installation}). Alternatively, if you are already familiar with GNU/Linux and if you want more control than what the graphical installer provides, you can choose the ``manual'' installation process (@pxref{Manual Installation})."
  6300. msgstr ""
  6301. #. type: Plain text
  6302. #: guix-git/doc/guix.texi:2209
  6303. msgid "The graphical installer is available on TTY1. You can obtain root shells on TTYs 3 to 6 by hitting @kbd{ctrl-alt-f3}, @kbd{ctrl-alt-f4}, etc. TTY2 shows this documentation and you can reach it with @kbd{ctrl-alt-f2}. Documentation is browsable using the Info reader commands (@pxref{Top,,, info-stnd, Stand-alone GNU Info}). The installation system runs the GPM mouse daemon, which allows you to select text with the left mouse button and to paste it with the middle button."
  6304. msgstr ""
  6305. #. type: quotation
  6306. #: guix-git/doc/guix.texi:2214
  6307. msgid "Installation requires access to the Internet so that any missing dependencies of your system configuration can be downloaded. See the ``Networking'' section below."
  6308. msgstr ""
  6309. #. type: Plain text
  6310. #: guix-git/doc/guix.texi:2221
  6311. msgid "The graphical installer is a text-based user interface. It will guide you, with dialog boxes, through the steps needed to install GNU@tie{}Guix System."
  6312. msgstr ""
  6313. #. type: Plain text
  6314. #: guix-git/doc/guix.texi:2226
  6315. msgid "The first dialog boxes allow you to set up the system as you use it during the installation: you can choose the language, keyboard layout, and set up networking, which will be used during the installation. The image below shows the networking dialog."
  6316. msgstr ""
  6317. #. type: Plain text
  6318. #: guix-git/doc/guix.texi:2228
  6319. msgid "@image{images/installer-network,5in,, networking setup with the graphical installer}"
  6320. msgstr ""
  6321. #. type: Plain text
  6322. #: guix-git/doc/guix.texi:2233
  6323. msgid "Later steps allow you to partition your hard disk, as shown in the image below, to choose whether or not to use encrypted file systems, to enter the host name and root password, and to create an additional account, among other things."
  6324. msgstr ""
  6325. #. type: Plain text
  6326. #: guix-git/doc/guix.texi:2235
  6327. msgid "@image{images/installer-partitions,5in,, partitioning with the graphical installer}"
  6328. msgstr ""
  6329. #. type: Plain text
  6330. #: guix-git/doc/guix.texi:2238
  6331. msgid "Note that, at any time, the installer allows you to exit the current installation step and resume at a previous step, as show in the image below."
  6332. msgstr ""
  6333. #. type: Plain text
  6334. #: guix-git/doc/guix.texi:2240
  6335. msgid "@image{images/installer-resume,5in,, resuming the installation process}"
  6336. msgstr ""
  6337. #. type: Plain text
  6338. #: guix-git/doc/guix.texi:2245
  6339. msgid "Once you're done, the installer produces an operating system configuration and displays it (@pxref{Using the Configuration System}). At that point you can hit ``OK'' and installation will proceed. On success, you can reboot into the new system and enjoy. @xref{After System Installation}, for what's next!"
  6340. msgstr ""
  6341. #. type: Plain text
  6342. #: guix-git/doc/guix.texi:2255
  6343. msgid "This section describes how you would ``manually'' install GNU@tie{}Guix System on your machine. This option requires familiarity with GNU/Linux, with the shell, and with common administration tools. If you think this is not for you, consider using the guided graphical installer (@pxref{Guided Graphical Installation})."
  6344. msgstr ""
  6345. #. type: Plain text
  6346. #: guix-git/doc/guix.texi:2261
  6347. msgid "The installation system provides root shells on TTYs 3 to 6; press @kbd{ctrl-alt-f3}, @kbd{ctrl-alt-f4}, and so on to reach them. It includes many common tools needed to install the system. But it is also a full-blown Guix System, which means that you can install additional packages, should you need it, using @command{guix package} (@pxref{Invoking guix package})."
  6348. msgstr ""
  6349. #. type: subsection
  6350. #: guix-git/doc/guix.texi:2268
  6351. #, no-wrap
  6352. msgid "Keyboard Layout, Networking, and Partitioning"
  6353. msgstr ""
  6354. #. type: Plain text
  6355. #: guix-git/doc/guix.texi:2273
  6356. msgid "Before you can install the system, you may want to adjust the keyboard layout, set up networking, and partition your target hard disk. This section will guide you through this."
  6357. msgstr ""
  6358. #. type: cindex
  6359. #: guix-git/doc/guix.texi:2276 guix-git/doc/guix.texi:14660
  6360. #, no-wrap
  6361. msgid "keyboard layout"
  6362. msgstr ""
  6363. #. type: Plain text
  6364. #: guix-git/doc/guix.texi:2280
  6365. msgid "The installation image uses the US qwerty keyboard layout. If you want to change it, you can use the @command{loadkeys} command. For example, the following command selects the Dvorak keyboard layout:"
  6366. msgstr "安装镜像使用的是美国的 qwerty 键盘布局,如果想更改,可以使用 @command{loadkeys} 命令。 例如,用以下命令选择 Dvorak 键盘布局:"
  6367. #. type: example
  6368. #: guix-git/doc/guix.texi:2283
  6369. #, no-wrap
  6370. msgid "loadkeys dvorak\n"
  6371. msgstr ""
  6372. #. type: Plain text
  6373. #: guix-git/doc/guix.texi:2288
  6374. msgid "See the files under @file{/run/current-system/profile/share/keymaps} for a list of available keyboard layouts. Run @command{man loadkeys} for more information."
  6375. msgstr ""
  6376. #. type: subsubsection
  6377. #: guix-git/doc/guix.texi:2289
  6378. #, no-wrap
  6379. msgid "Networking"
  6380. msgstr ""
  6381. #. type: Plain text
  6382. #: guix-git/doc/guix.texi:2292
  6383. msgid "Run the following command to see what your network interfaces are called:"
  6384. msgstr "运行以下命令查看你的网络接口的名称:"
  6385. #. type: example
  6386. #: guix-git/doc/guix.texi:2295
  6387. #, no-wrap
  6388. msgid "ifconfig -a\n"
  6389. msgstr ""
  6390. #. type: table
  6391. #: guix-git/doc/guix.texi:2299 guix-git/doc/guix.texi:2321
  6392. msgid "@dots{} or, using the GNU/Linux-specific @command{ip} command:"
  6393. msgstr "@dots{} 或者,使用 GNU/Linux 特有的 @command{ip} 命令:"
  6394. #. type: example
  6395. #: guix-git/doc/guix.texi:2302
  6396. #, no-wrap
  6397. msgid "ip address\n"
  6398. msgstr ""
  6399. #. type: Plain text
  6400. #: guix-git/doc/guix.texi:2309
  6401. msgid "Wired interfaces have a name starting with @samp{e}; for example, the interface corresponding to the first on-board Ethernet controller is called @samp{eno1}. Wireless interfaces have a name starting with @samp{w}, like @samp{w1p2s0}."
  6402. msgstr ""
  6403. #. type: item
  6404. #: guix-git/doc/guix.texi:2311
  6405. #, no-wrap
  6406. msgid "Wired connection"
  6407. msgstr "有线连接"
  6408. #. type: table
  6409. #: guix-git/doc/guix.texi:2314
  6410. msgid "To configure a wired network run the following command, substituting @var{interface} with the name of the wired interface you want to use."
  6411. msgstr ""
  6412. #. type: example
  6413. #: guix-git/doc/guix.texi:2317
  6414. #, no-wrap
  6415. msgid "ifconfig @var{interface} up\n"
  6416. msgstr ""
  6417. #. type: example
  6418. #: guix-git/doc/guix.texi:2324
  6419. #, no-wrap
  6420. msgid "ip link set @var{interface} up\n"
  6421. msgstr ""
  6422. #. type: item
  6423. #: guix-git/doc/guix.texi:2326
  6424. #, no-wrap
  6425. msgid "Wireless connection"
  6426. msgstr "无线连接"
  6427. #. type: cindex
  6428. #: guix-git/doc/guix.texi:2327 guix-git/doc/guix.texi:16305
  6429. #, no-wrap
  6430. msgid "wireless"
  6431. msgstr ""
  6432. #. type: cindex
  6433. #: guix-git/doc/guix.texi:2328 guix-git/doc/guix.texi:16306
  6434. #, no-wrap
  6435. msgid "WiFi"
  6436. msgstr ""
  6437. #. type: table
  6438. #: guix-git/doc/guix.texi:2333
  6439. msgid "To configure wireless networking, you can create a configuration file for the @command{wpa_supplicant} configuration tool (its location is not important) using one of the available text editors such as @command{nano}:"
  6440. msgstr ""
  6441. #. type: example
  6442. #: guix-git/doc/guix.texi:2336
  6443. #, no-wrap
  6444. msgid "nano wpa_supplicant.conf\n"
  6445. msgstr ""
  6446. #. type: table
  6447. #: guix-git/doc/guix.texi:2341
  6448. msgid "As an example, the following stanza can go to this file and will work for many wireless networks, provided you give the actual SSID and passphrase for the network you are connecting to:"
  6449. msgstr ""
  6450. #. type: example
  6451. #: guix-git/doc/guix.texi:2348
  6452. #, no-wrap
  6453. msgid ""
  6454. "network=@{\n"
  6455. " ssid=\"@var{my-ssid}\"\n"
  6456. " key_mgmt=WPA-PSK\n"
  6457. " psk=\"the network's secret passphrase\"\n"
  6458. "@}\n"
  6459. msgstr ""
  6460. #. type: table
  6461. #: guix-git/doc/guix.texi:2353
  6462. msgid "Start the wireless service and run it in the background with the following command (substitute @var{interface} with the name of the network interface you want to use):"
  6463. msgstr ""
  6464. #. type: example
  6465. #: guix-git/doc/guix.texi:2356
  6466. #, no-wrap
  6467. msgid "wpa_supplicant -c wpa_supplicant.conf -i @var{interface} -B\n"
  6468. msgstr ""
  6469. #. type: table
  6470. #: guix-git/doc/guix.texi:2359
  6471. msgid "Run @command{man wpa_supplicant} for more information."
  6472. msgstr ""
  6473. #. type: cindex
  6474. #: guix-git/doc/guix.texi:2361
  6475. #, no-wrap
  6476. msgid "DHCP"
  6477. msgstr ""
  6478. #. type: Plain text
  6479. #: guix-git/doc/guix.texi:2364
  6480. msgid "At this point, you need to acquire an IP address. On a network where IP addresses are automatically assigned @i{via} DHCP, you can run:"
  6481. msgstr ""
  6482. #. type: example
  6483. #: guix-git/doc/guix.texi:2367
  6484. #, no-wrap
  6485. msgid "dhclient -v @var{interface}\n"
  6486. msgstr ""
  6487. #. type: Plain text
  6488. #: guix-git/doc/guix.texi:2370
  6489. msgid "Try to ping a server to see if networking is up and running:"
  6490. msgstr ""
  6491. #. type: example
  6492. #: guix-git/doc/guix.texi:2373
  6493. #, no-wrap
  6494. msgid "ping -c 3 gnu.org\n"
  6495. msgstr ""
  6496. #. type: Plain text
  6497. #: guix-git/doc/guix.texi:2377
  6498. msgid "Setting up network access is almost always a requirement because the image does not contain all the software and tools that may be needed."
  6499. msgstr ""
  6500. #. type: cindex
  6501. #: guix-git/doc/guix.texi:2378
  6502. #, fuzzy, no-wrap
  6503. msgid "proxy, during system installation"
  6504. msgstr "系统安装之后"
  6505. #. type: Plain text
  6506. #: guix-git/doc/guix.texi:2381
  6507. msgid "If you need HTTP and HTTPS access to go through a proxy, run the following command:"
  6508. msgstr ""
  6509. #. type: example
  6510. #: guix-git/doc/guix.texi:2384
  6511. #, no-wrap
  6512. msgid "herd set-http-proxy guix-daemon @var{URL}\n"
  6513. msgstr ""
  6514. #. type: Plain text
  6515. #: guix-git/doc/guix.texi:2389
  6516. msgid "where @var{URL} is the proxy URL, for example @code{http://example.org:8118}."
  6517. msgstr ""
  6518. #. type: cindex
  6519. #: guix-git/doc/guix.texi:2390
  6520. #, no-wrap
  6521. msgid "installing over SSH"
  6522. msgstr ""
  6523. #. type: Plain text
  6524. #: guix-git/doc/guix.texi:2393
  6525. msgid "If you want to, you can continue the installation remotely by starting an SSH server:"
  6526. msgstr ""
  6527. #. type: example
  6528. #: guix-git/doc/guix.texi:2396
  6529. #, no-wrap
  6530. msgid "herd start ssh-daemon\n"
  6531. msgstr ""
  6532. #. type: Plain text
  6533. #: guix-git/doc/guix.texi:2400
  6534. msgid "Make sure to either set a password with @command{passwd}, or configure OpenSSH public key authentication before logging in."
  6535. msgstr ""
  6536. #. type: subsubsection
  6537. #: guix-git/doc/guix.texi:2401
  6538. #, no-wrap
  6539. msgid "Disk Partitioning"
  6540. msgstr "磁盘分区"
  6541. #. type: Plain text
  6542. #: guix-git/doc/guix.texi:2405
  6543. msgid "Unless this has already been done, the next step is to partition, and then format the target partition(s)."
  6544. msgstr ""
  6545. #. type: Plain text
  6546. #: guix-git/doc/guix.texi:2410
  6547. msgid "The installation image includes several partitioning tools, including Parted (@pxref{Overview,,, parted, GNU Parted User Manual}), @command{fdisk}, and @command{cfdisk}. Run it and set up your disk with the partition layout you want:"
  6548. msgstr ""
  6549. #. type: example
  6550. #: guix-git/doc/guix.texi:2413
  6551. #, no-wrap
  6552. msgid "cfdisk\n"
  6553. msgstr ""
  6554. #. type: Plain text
  6555. #: guix-git/doc/guix.texi:2419
  6556. msgid "If your disk uses the GUID Partition Table (GPT) format and you plan to install BIOS-based GRUB (which is the default), make sure a BIOS Boot Partition is available (@pxref{BIOS installation,,, grub, GNU GRUB manual})."
  6557. msgstr ""
  6558. #. type: cindex
  6559. #: guix-git/doc/guix.texi:2420
  6560. #, no-wrap
  6561. msgid "EFI, installation"
  6562. msgstr ""
  6563. #. type: cindex
  6564. #: guix-git/doc/guix.texi:2421
  6565. #, no-wrap
  6566. msgid "UEFI, installation"
  6567. msgstr ""
  6568. #. type: cindex
  6569. #: guix-git/doc/guix.texi:2422
  6570. #, no-wrap
  6571. msgid "ESP, EFI system partition"
  6572. msgstr ""
  6573. #. type: Plain text
  6574. #: guix-git/doc/guix.texi:2426
  6575. msgid "If you instead wish to use EFI-based GRUB, a FAT32 @dfn{EFI System Partition} (ESP) is required. This partition can be mounted at @file{/boot/efi} for instance and must have the @code{esp} flag set. E.g., for @command{parted}:"
  6576. msgstr ""
  6577. #. type: example
  6578. #: guix-git/doc/guix.texi:2429
  6579. #, no-wrap
  6580. msgid "parted /dev/sda set 1 esp on\n"
  6581. msgstr ""
  6582. #. type: vindex
  6583. #: guix-git/doc/guix.texi:2432 guix-git/doc/guix.texi:33182
  6584. #, no-wrap
  6585. msgid "grub-bootloader"
  6586. msgstr ""
  6587. #. type: vindex
  6588. #: guix-git/doc/guix.texi:2433 guix-git/doc/guix.texi:33176
  6589. #, no-wrap
  6590. msgid "grub-efi-bootloader"
  6591. msgstr ""
  6592. #. type: quotation
  6593. #: guix-git/doc/guix.texi:2440
  6594. msgid "Unsure whether to use EFI- or BIOS-based GRUB? If the directory @file{/sys/firmware/efi} exists in the installation image, then you should probably perform an EFI installation, using @code{grub-efi-bootloader}. Otherwise you should use the BIOS-based GRUB, known as @code{grub-bootloader}. @xref{Bootloader Configuration}, for more info on bootloaders."
  6595. msgstr ""
  6596. #. type: Plain text
  6597. #: guix-git/doc/guix.texi:2448
  6598. msgid "Once you are done partitioning the target hard disk drive, you have to create a file system on the relevant partition(s)@footnote{Currently Guix System only supports ext4, btrfs, JFS, and F2FS file systems. In particular, code that reads file system UUIDs and labels only works for these file system types.}. For the ESP, if you have one and assuming it is @file{/dev/sda1}, run:"
  6599. msgstr ""
  6600. #. type: example
  6601. #: guix-git/doc/guix.texi:2451
  6602. #, no-wrap
  6603. msgid "mkfs.fat -F32 /dev/sda1\n"
  6604. msgstr ""
  6605. #. type: Plain text
  6606. #: guix-git/doc/guix.texi:2458
  6607. msgid "For the root file system, ext4 is the most widely used format. Other file systems, such as Btrfs, support compression, which is reported to nicely complement file deduplication that the daemon performs independently of the file system (@pxref{Invoking guix-daemon, deduplication})."
  6608. msgstr ""
  6609. #. type: Plain text
  6610. #: guix-git/doc/guix.texi:2465
  6611. msgid "Preferably, assign file systems a label so that you can easily and reliably refer to them in @code{file-system} declarations (@pxref{File Systems}). This is typically done using the @code{-L} option of @command{mkfs.ext4} and related commands. So, assuming the target root partition lives at @file{/dev/sda2}, a file system with the label @code{my-root} can be created with:"
  6612. msgstr ""
  6613. #. type: example
  6614. #: guix-git/doc/guix.texi:2468
  6615. #, no-wrap
  6616. msgid "mkfs.ext4 -L my-root /dev/sda2\n"
  6617. msgstr ""
  6618. #. type: cindex
  6619. #: guix-git/doc/guix.texi:2470 guix-git/doc/guix.texi:13658
  6620. #, no-wrap
  6621. msgid "encrypted disk"
  6622. msgstr ""
  6623. #. type: Plain text
  6624. #: guix-git/doc/guix.texi:2477
  6625. msgid "If you are instead planning to encrypt the root partition, you can use the Cryptsetup/LUKS utilities to do that (see @inlinefmtifelse{html, @uref{https://linux.die.net/man/8/cryptsetup, @code{man cryptsetup}}, @code{man cryptsetup}} for more information). Assuming you want to store the root partition on @file{/dev/sda2}, the command sequence would be along these lines:"
  6626. msgstr ""
  6627. #. type: example
  6628. #: guix-git/doc/guix.texi:2482
  6629. #, no-wrap
  6630. msgid ""
  6631. "cryptsetup luksFormat /dev/sda2\n"
  6632. "cryptsetup open --type luks /dev/sda2 my-partition\n"
  6633. "mkfs.ext4 -L my-root /dev/mapper/my-partition\n"
  6634. msgstr ""
  6635. #. type: Plain text
  6636. #: guix-git/doc/guix.texi:2487
  6637. msgid "Once that is done, mount the target file system under @file{/mnt} with a command like (again, assuming @code{my-root} is the label of the root file system):"
  6638. msgstr ""
  6639. #. type: example
  6640. #: guix-git/doc/guix.texi:2490
  6641. #, no-wrap
  6642. msgid "mount LABEL=my-root /mnt\n"
  6643. msgstr ""
  6644. #. type: Plain text
  6645. #: guix-git/doc/guix.texi:2496
  6646. msgid "Also mount any other file systems you would like to use on the target system relative to this path. If you have opted for @file{/boot/efi} as an EFI mount point for example, mount it at @file{/mnt/boot/efi} now so it is found by @code{guix system init} afterwards."
  6647. msgstr ""
  6648. #. type: Plain text
  6649. #: guix-git/doc/guix.texi:2501
  6650. msgid "Finally, if you plan to use one or more swap partitions (@pxref{Memory Concepts, swap space,, libc, The GNU C Library Reference Manual}), make sure to initialize them with @command{mkswap}. Assuming you have one swap partition on @file{/dev/sda3}, you would run:"
  6651. msgstr ""
  6652. #. type: example
  6653. #: guix-git/doc/guix.texi:2505
  6654. #, no-wrap
  6655. msgid ""
  6656. "mkswap /dev/sda3\n"
  6657. "swapon /dev/sda3\n"
  6658. msgstr ""
  6659. #. type: Plain text
  6660. #: guix-git/doc/guix.texi:2513
  6661. msgid "Alternatively, you may use a swap file. For example, assuming that in the new system you want to use the file @file{/swapfile} as a swap file, you would run@footnote{This example will work for many types of file systems (e.g., ext4). However, for copy-on-write file systems (e.g., btrfs), the required steps may be different. For details, see the manual pages for @command{mkswap} and @command{swapon}.}:"
  6662. msgstr ""
  6663. #. type: example
  6664. #: guix-git/doc/guix.texi:2521
  6665. #, no-wrap
  6666. msgid ""
  6667. "# This is 10 GiB of swap space. Adjust \"count\" to change the size.\n"
  6668. "dd if=/dev/zero of=/mnt/swapfile bs=1MiB count=10240\n"
  6669. "# For security, make the file readable and writable only by root.\n"
  6670. "chmod 600 /mnt/swapfile\n"
  6671. "mkswap /mnt/swapfile\n"
  6672. "swapon /mnt/swapfile\n"
  6673. msgstr ""
  6674. #. type: Plain text
  6675. #: guix-git/doc/guix.texi:2526
  6676. msgid "Note that if you have encrypted the root partition and created a swap file in its file system as described above, then the encryption also protects the swap file, just like any other file in that file system."
  6677. msgstr ""
  6678. #. type: Plain text
  6679. #: guix-git/doc/guix.texi:2532
  6680. msgid "With the target partitions ready and the target root mounted on @file{/mnt}, we're ready to go. First, run:"
  6681. msgstr ""
  6682. #. type: example
  6683. #: guix-git/doc/guix.texi:2535
  6684. #, no-wrap
  6685. msgid "herd start cow-store /mnt\n"
  6686. msgstr ""
  6687. #. type: Plain text
  6688. #: guix-git/doc/guix.texi:2542
  6689. msgid "This makes @file{/gnu/store} copy-on-write, such that packages added to it during the installation phase are written to the target disk on @file{/mnt} rather than kept in memory. This is necessary because the first phase of the @command{guix system init} command (see below) entails downloads or builds to @file{/gnu/store} which, initially, is an in-memory file system."
  6690. msgstr ""
  6691. #. type: Plain text
  6692. #: guix-git/doc/guix.texi:2553
  6693. msgid "Next, you have to edit a file and provide the declaration of the operating system to be installed. To that end, the installation system comes with three text editors. We recommend GNU nano (@pxref{Top,,, nano, GNU nano Manual}), which supports syntax highlighting and parentheses matching; other editors include mg (an Emacs clone), and nvi (a clone of the original BSD @command{vi} editor). We strongly recommend storing that file on the target root file system, say, as @file{/mnt/etc/config.scm}. Failing to do that, you will have lost your configuration file once you have rebooted into the newly-installed system."
  6694. msgstr ""
  6695. #. type: Plain text
  6696. #: guix-git/doc/guix.texi:2560
  6697. msgid "@xref{Using the Configuration System}, for an overview of the configuration file. The example configurations discussed in that section are available under @file{/etc/configuration} in the installation image. Thus, to get started with a system configuration providing a graphical display server (a ``desktop'' system), you can run something along these lines:"
  6698. msgstr ""
  6699. #. type: example
  6700. #: guix-git/doc/guix.texi:2565
  6701. #, no-wrap
  6702. msgid ""
  6703. "# mkdir /mnt/etc\n"
  6704. "# cp /etc/configuration/desktop.scm /mnt/etc/config.scm\n"
  6705. "# nano /mnt/etc/config.scm\n"
  6706. msgstr ""
  6707. #. type: Plain text
  6708. #: guix-git/doc/guix.texi:2569
  6709. msgid "You should pay attention to what your configuration file contains, and in particular:"
  6710. msgstr ""
  6711. #. type: itemize
  6712. #: guix-git/doc/guix.texi:2580
  6713. msgid "Make sure the @code{bootloader-configuration} form refers to the target you want to install GRUB on. It should mention @code{grub-bootloader} if you are installing GRUB in the legacy way, or @code{grub-efi-bootloader} for newer UEFI systems. For legacy systems, the @code{target} field names a device, like @code{/dev/sda}; for UEFI systems it names a path to a mounted EFI partition, like @code{/boot/efi}; do make sure the path is currently mounted and a @code{file-system} entry is specified in your configuration."
  6714. msgstr ""
  6715. #. type: itemize
  6716. #: guix-git/doc/guix.texi:2586
  6717. msgid "Be sure that your file system labels match the value of their respective @code{device} fields in your @code{file-system} configuration, assuming your @code{file-system} configuration uses the @code{file-system-label} procedure in its @code{device} field."
  6718. msgstr ""
  6719. #. type: itemize
  6720. #: guix-git/doc/guix.texi:2590
  6721. msgid "If there are encrypted or RAID partitions, make sure to add a @code{mapped-devices} field to describe them (@pxref{Mapped Devices})."
  6722. msgstr ""
  6723. #. type: Plain text
  6724. #: guix-git/doc/guix.texi:2595
  6725. msgid "Once you are done preparing the configuration file, the new system must be initialized (remember that the target root file system is mounted under @file{/mnt}):"
  6726. msgstr ""
  6727. #. type: example
  6728. #: guix-git/doc/guix.texi:2598
  6729. #, no-wrap
  6730. msgid "guix system init /mnt/etc/config.scm /mnt\n"
  6731. msgstr ""
  6732. #. type: Plain text
  6733. #: guix-git/doc/guix.texi:2605
  6734. msgid "This copies all the necessary files and installs GRUB on @file{/dev/sdX}, unless you pass the @option{--no-bootloader} option. For more information, @pxref{Invoking guix system}. This command may trigger downloads or builds of missing packages, which can take some time."
  6735. msgstr ""
  6736. #. type: Plain text
  6737. #: guix-git/doc/guix.texi:2613
  6738. msgid "Once that command has completed---and hopefully succeeded!---you can run @command{reboot} and boot into the new system. The @code{root} password in the new system is initially empty; other users' passwords need to be initialized by running the @command{passwd} command as @code{root}, unless your configuration specifies otherwise (@pxref{user-account-password, user account passwords}). @xref{After System Installation}, for what's next!"
  6739. msgstr ""
  6740. #. type: Plain text
  6741. #: guix-git/doc/guix.texi:2620
  6742. msgid "Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say:"
  6743. msgstr ""
  6744. #. type: example
  6745. #: guix-git/doc/guix.texi:2624
  6746. #, no-wrap
  6747. msgid ""
  6748. "guix pull\n"
  6749. "sudo guix system reconfigure /etc/config.scm\n"
  6750. msgstr ""
  6751. #. type: Plain text
  6752. #: guix-git/doc/guix.texi:2630
  6753. msgid "This builds a new system generation with the latest packages and services (@pxref{Invoking guix system}). We recommend doing that regularly so that your system includes the latest security updates (@pxref{Security Updates})."
  6754. msgstr ""
  6755. #. type: cindex
  6756. #: guix-git/doc/guix.texi:2633
  6757. #, no-wrap
  6758. msgid "sudo vs. @command{guix pull}"
  6759. msgstr ""
  6760. #. type: quotation
  6761. #: guix-git/doc/guix.texi:2637
  6762. msgid "Note that @command{sudo guix} runs your user's @command{guix} command and @emph{not} root's, because @command{sudo} leaves @env{PATH} unchanged. To explicitly run root's @command{guix}, type @command{sudo -i guix @dots{}}."
  6763. msgstr ""
  6764. #. type: quotation
  6765. #: guix-git/doc/guix.texi:2642
  6766. msgid "The difference matters here, because @command{guix pull} updates the @command{guix} command and package definitions only for the user it is run as. This means that if you choose to use @command{guix system reconfigure} in root's login shell, you'll need to @command{guix pull} separately."
  6767. msgstr ""
  6768. #. type: Plain text
  6769. #: guix-git/doc/guix.texi:2647
  6770. msgid "Now, @pxref{Getting Started}, and join us on @code{#guix} on the Libera Chat IRC network or on @email{guix-devel@@gnu.org} to share your experience!"
  6771. msgstr ""
  6772. #. type: section
  6773. #: guix-git/doc/guix.texi:2650
  6774. #, no-wrap
  6775. msgid "Installing Guix in a Virtual Machine"
  6776. msgstr ""
  6777. #. type: cindex
  6778. #: guix-git/doc/guix.texi:2652
  6779. #, no-wrap
  6780. msgid "virtual machine, Guix System installation"
  6781. msgstr ""
  6782. #. type: cindex
  6783. #: guix-git/doc/guix.texi:2653
  6784. #, no-wrap
  6785. msgid "virtual private server (VPS)"
  6786. msgstr ""
  6787. #. type: cindex
  6788. #: guix-git/doc/guix.texi:2654
  6789. #, no-wrap
  6790. msgid "VPS (virtual private server)"
  6791. msgstr ""
  6792. #. type: Plain text
  6793. #: guix-git/doc/guix.texi:2658
  6794. msgid "If you'd like to install Guix System in a virtual machine (VM) or on a virtual private server (VPS) rather than on your beloved machine, this section is for you."
  6795. msgstr ""
  6796. #. type: Plain text
  6797. #: guix-git/doc/guix.texi:2661
  6798. msgid "To boot a @uref{https://qemu.org/,QEMU} VM for installing Guix System in a disk image, follow these steps:"
  6799. msgstr ""
  6800. #. type: enumerate
  6801. #: guix-git/doc/guix.texi:2666
  6802. msgid "First, retrieve and decompress the Guix system installation image as described previously (@pxref{USB Stick and DVD Installation})."
  6803. msgstr ""
  6804. #. type: enumerate
  6805. #: guix-git/doc/guix.texi:2670
  6806. msgid "Create a disk image that will hold the installed system. To make a qcow2-formatted disk image, use the @command{qemu-img} command:"
  6807. msgstr ""
  6808. #. type: example
  6809. #: guix-git/doc/guix.texi:2673
  6810. #, no-wrap
  6811. msgid "qemu-img create -f qcow2 guix-system.img 50G\n"
  6812. msgstr ""
  6813. #. type: enumerate
  6814. #: guix-git/doc/guix.texi:2677
  6815. msgid "The resulting file will be much smaller than 50 GB (typically less than 1 MB), but it will grow as the virtualized storage device is filled up."
  6816. msgstr ""
  6817. #. type: enumerate
  6818. #: guix-git/doc/guix.texi:2680
  6819. msgid "Boot the USB installation image in an VM:"
  6820. msgstr ""
  6821. #. type: example
  6822. #: guix-git/doc/guix.texi:2686
  6823. #, no-wrap
  6824. msgid ""
  6825. "qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \\\n"
  6826. " -nic user,model=virtio-net-pci -boot menu=on,order=d \\\n"
  6827. " -drive file=guix-system.img \\\n"
  6828. " -drive media=cdrom,file=guix-system-install-@value{VERSION}.@var{system}.iso\n"
  6829. msgstr ""
  6830. #. type: enumerate
  6831. #: guix-git/doc/guix.texi:2690
  6832. msgid "@code{-enable-kvm} is optional, but significantly improves performance, @pxref{Running Guix in a VM}."
  6833. msgstr ""
  6834. #. type: enumerate
  6835. #: guix-git/doc/guix.texi:2694
  6836. msgid "You're now root in the VM, proceed with the installation process. @xref{Preparing for Installation}, and follow the instructions."
  6837. msgstr ""
  6838. #. type: Plain text
  6839. #: guix-git/doc/guix.texi:2699
  6840. msgid "Once installation is complete, you can boot the system that's on your @file{guix-system.img} image. @xref{Running Guix in a VM}, for how to do that."
  6841. msgstr ""
  6842. #. type: cindex
  6843. #: guix-git/doc/guix.texi:2703
  6844. #, no-wrap
  6845. msgid "installation image"
  6846. msgstr ""
  6847. #. type: Plain text
  6848. #: guix-git/doc/guix.texi:2706
  6849. msgid "The installation image described above was built using the @command{guix system} command, specifically:"
  6850. msgstr ""
  6851. #. type: example
  6852. #: guix-git/doc/guix.texi:2709
  6853. #, no-wrap
  6854. msgid "guix system image -t iso9660 gnu/system/install.scm\n"
  6855. msgstr ""
  6856. #. type: Plain text
  6857. #: guix-git/doc/guix.texi:2714
  6858. msgid "Have a look at @file{gnu/system/install.scm} in the source tree, and see also @ref{Invoking guix system} for more information about the installation image."
  6859. msgstr ""
  6860. #. type: section
  6861. #: guix-git/doc/guix.texi:2715
  6862. #, no-wrap
  6863. msgid "Building the Installation Image for ARM Boards"
  6864. msgstr ""
  6865. #. type: Plain text
  6866. #: guix-git/doc/guix.texi:2719
  6867. msgid "Many ARM boards require a specific variant of the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot} bootloader."
  6868. msgstr ""
  6869. #. type: Plain text
  6870. #: guix-git/doc/guix.texi:2723
  6871. msgid "If you build a disk image and the bootloader is not available otherwise (on another boot drive etc), it's advisable to build an image that includes the bootloader, specifically:"
  6872. msgstr ""
  6873. #. type: example
  6874. #: guix-git/doc/guix.texi:2726
  6875. #, no-wrap
  6876. msgid "guix system image --system=armhf-linux -e '((@@ (gnu system install) os-with-u-boot) (@@ (gnu system install) installation-os) \"A20-OLinuXino-Lime2\")'\n"
  6877. msgstr ""
  6878. #. type: Plain text
  6879. #: guix-git/doc/guix.texi:2730
  6880. msgid "@code{A20-OLinuXino-Lime2} is the name of the board. If you specify an invalid board, a list of possible boards will be printed."
  6881. msgstr ""
  6882. #. type: Plain text
  6883. #: guix-git/doc/guix.texi:2740
  6884. msgid "Presumably, you've reached this section because either you have installed Guix on top of another distribution (@pxref{Installation}), or you've installed the standalone Guix System (@pxref{System Installation}). It's time for you to get started using Guix and this section aims to help you do that and give you a feel of what it's like."
  6885. msgstr ""
  6886. #. type: Plain text
  6887. #: guix-git/doc/guix.texi:2744
  6888. msgid "Guix is about installing software, so probably the first thing you'll want to do is to actually look for software. Let's say you're looking for a text editor, you can run:"
  6889. msgstr ""
  6890. #. type: example
  6891. #: guix-git/doc/guix.texi:2747
  6892. #, no-wrap
  6893. msgid "guix search text editor\n"
  6894. msgstr ""
  6895. #. type: Plain text
  6896. #: guix-git/doc/guix.texi:2754
  6897. msgid "This command shows you a number of matching @dfn{packages}, each time showing the package's name, version, a description, and additional info. Once you've found out the one you want to use, let's say Emacs (ah ha!), you can go ahead and install it (run this command as a regular user, @emph{no need for root privileges}!):"
  6898. msgstr ""
  6899. #. type: example
  6900. #: guix-git/doc/guix.texi:2757
  6901. #, fuzzy, no-wrap
  6902. msgid "guix install emacs\n"
  6903. msgstr "guix install emacs-guix\n"
  6904. #. type: cindex
  6905. #: guix-git/doc/guix.texi:2759 guix-git/doc/guix.texi:3071
  6906. #: guix-git/doc/guix.texi:3123
  6907. #, no-wrap
  6908. msgid "profile"
  6909. msgstr ""
  6910. #. type: Plain text
  6911. #: guix-git/doc/guix.texi:2767
  6912. msgid "You've installed your first package, congrats! The package is now visible in your default @dfn{profile}, @file{$HOME/.guix-profile}---a profile is a directory containing installed packages. In the process, you've probably noticed that Guix downloaded pre-built binaries; or, if you explicitly chose to @emph{not} use pre-built binaries, then probably Guix is still building software (@pxref{Substitutes}, for more info)."
  6913. msgstr ""
  6914. #. type: Plain text
  6915. #: guix-git/doc/guix.texi:2770
  6916. msgid "Unless you're using Guix System, the @command{guix install} command must have printed this hint:"
  6917. msgstr ""
  6918. #. type: example
  6919. #: guix-git/doc/guix.texi:2773
  6920. #, no-wrap
  6921. msgid ""
  6922. "hint: Consider setting the necessary environment variables by running:\n"
  6923. "\n"
  6924. msgstr ""
  6925. #. type: example
  6926. #: guix-git/doc/guix.texi:2776
  6927. #, no-wrap
  6928. msgid ""
  6929. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  6930. " . \"$GUIX_PROFILE/etc/profile\"\n"
  6931. "\n"
  6932. msgstr ""
  6933. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  6934. " . \"$GUIX_PROFILE/etc/profile\"\n"
  6935. "\n"
  6936. #. type: example
  6937. #: guix-git/doc/guix.texi:2778
  6938. #, no-wrap
  6939. msgid "Alternately, see `guix package --search-paths -p \"$HOME/.guix-profile\"'.\n"
  6940. msgstr ""
  6941. #. type: Plain text
  6942. #: guix-git/doc/guix.texi:2792
  6943. msgid "Indeed, you must now tell your shell where @command{emacs} and other programs installed with Guix are to be found. Pasting the two lines above will do just that: it will add @code{$HOME/.guix-profile/bin}---which is where the installed package is---to the @code{PATH} environment variable. You can paste these two lines in your shell so they take effect right away, but more importantly you should add them to @file{~/.bash_profile} (or equivalent file if you do not use Bash) so that environment variables are set next time you spawn a shell. You only need to do this once and other search paths environment variables will be taken care of similarly---e.g., if you eventually install @code{python} and Python libraries, @code{PYTHONPATH} will be defined."
  6944. msgstr ""
  6945. #. type: Plain text
  6946. #: guix-git/doc/guix.texi:2795
  6947. msgid "You can go on installing packages at your will. To list installed packages, run:"
  6948. msgstr ""
  6949. #. type: example
  6950. #: guix-git/doc/guix.texi:2798
  6951. #, fuzzy, no-wrap
  6952. msgid "guix package --list-installed\n"
  6953. msgstr "guix package --list-available\n"
  6954. #. type: Plain text
  6955. #: guix-git/doc/guix.texi:2803
  6956. msgid "To remove a package, you would unsurprisingly run @command{guix remove}. A distinguishing feature is the ability to @dfn{roll back} any operation you made---installation, removal, upgrade---by simply typing:"
  6957. msgstr ""
  6958. #. type: example
  6959. #: guix-git/doc/guix.texi:2806
  6960. #, fuzzy, no-wrap
  6961. msgid "guix package --roll-back\n"
  6962. msgstr "guix package --list-available\n"
  6963. #. type: Plain text
  6964. #: guix-git/doc/guix.texi:2811
  6965. msgid "This is because each operation is in fact a @dfn{transaction} that creates a new @dfn{generation}. These generations and the difference between them can be displayed by running:"
  6966. msgstr ""
  6967. #. type: example
  6968. #: guix-git/doc/guix.texi:2814
  6969. #, fuzzy, no-wrap
  6970. msgid "guix package --list-generations\n"
  6971. msgstr "guix package --list-available\n"
  6972. #. type: Plain text
  6973. #: guix-git/doc/guix.texi:2817
  6974. msgid "Now you know the basics of package management!"
  6975. msgstr "现在你知道包管理的基本知识了吧!"
  6976. #. type: quotation
  6977. #: guix-git/doc/guix.texi:2818 guix-git/doc/guix.texi:2877
  6978. #, no-wrap
  6979. msgid "Going further"
  6980. msgstr ""
  6981. #. type: quotation
  6982. #: guix-git/doc/guix.texi:2826
  6983. msgid "@xref{Package Management}, for more about package management. You may like @dfn{declarative} package management with @command{guix package --manifest}, managing separate @dfn{profiles} with @option{--profile}, deleting old generations, collecting garbage, and other nifty features that will come in handy as you become more familiar with Guix. If you are a developer, @pxref{Development} for additional tools. And if you're curious, @pxref{Features}, to peek under the hood."
  6984. msgstr ""
  6985. #. type: Plain text
  6986. #: guix-git/doc/guix.texi:2831
  6987. msgid "Once you've installed a set of packages, you will want to periodically @emph{upgrade} them to the latest and greatest version. To do that, you will first pull the latest revision of Guix and its package collection:"
  6988. msgstr ""
  6989. #. type: Plain text
  6990. #: guix-git/doc/guix.texi:2841
  6991. msgid "The end result is a new @command{guix} command, under @file{~/.config/guix/current/bin}. Unless you're on Guix System, the first time you run @command{guix pull}, be sure to follow the hint that the command prints and, similar to what we saw above, paste these two lines in your terminal and @file{.bash_profile}:"
  6992. msgstr ""
  6993. #. type: example
  6994. #: guix-git/doc/guix.texi:2845
  6995. #, no-wrap
  6996. msgid ""
  6997. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  6998. ". \"$GUIX_PROFILE/etc/profile\"\n"
  6999. msgstr ""
  7000. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7001. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7002. #. type: Plain text
  7003. #: guix-git/doc/guix.texi:2849
  7004. msgid "You must also instruct your shell to point to this new @command{guix}:"
  7005. msgstr ""
  7006. #. type: example
  7007. #: guix-git/doc/guix.texi:2852
  7008. #, no-wrap
  7009. msgid "hash guix\n"
  7010. msgstr ""
  7011. #. type: Plain text
  7012. #: guix-git/doc/guix.texi:2856
  7013. msgid "At this point, you're running a brand new Guix. You can thus go ahead and actually upgrade all the packages you previously installed:"
  7014. msgstr ""
  7015. #. type: example
  7016. #: guix-git/doc/guix.texi:2859
  7017. #, no-wrap
  7018. msgid "guix upgrade\n"
  7019. msgstr ""
  7020. #. type: Plain text
  7021. #: guix-git/doc/guix.texi:2865
  7022. msgid "As you run this command, you will see that binaries are downloaded (or perhaps some packages are built), and eventually you end up with the upgraded packages. Should one of these upgraded packages not be to your liking, remember you can always roll back!"
  7023. msgstr ""
  7024. #. type: Plain text
  7025. #: guix-git/doc/guix.texi:2868
  7026. msgid "You can display the exact revision of Guix you're currently using by running:"
  7027. msgstr ""
  7028. #. type: example
  7029. #: guix-git/doc/guix.texi:2871
  7030. #, no-wrap
  7031. msgid "guix describe\n"
  7032. msgstr "guix describe\n"
  7033. #. type: Plain text
  7034. #: guix-git/doc/guix.texi:2876
  7035. msgid "The information it displays is @emph{all it takes to reproduce the exact same Guix}, be it at a different point in time or on a different machine."
  7036. msgstr ""
  7037. #. type: quotation
  7038. #: guix-git/doc/guix.texi:2882
  7039. msgid "@xref{Invoking guix pull}, for more information. @xref{Channels}, on how to specify additional @dfn{channels} to pull packages from, how to replicate Guix, and more. You may also find @command{time-machine} handy (@pxref{Invoking guix time-machine})."
  7040. msgstr ""
  7041. #. type: Plain text
  7042. #: guix-git/doc/guix.texi:2887
  7043. msgid "If you installed Guix System, one of the first things you'll want to do is to upgrade your system. Once you've run @command{guix pull} to get the latest Guix, you can upgrade the system like this:"
  7044. msgstr ""
  7045. #. type: example
  7046. #: guix-git/doc/guix.texi:2890
  7047. #, no-wrap
  7048. msgid "sudo guix system reconfigure /etc/config.scm\n"
  7049. msgstr ""
  7050. #. type: Plain text
  7051. #: guix-git/doc/guix.texi:2899
  7052. msgid "Upon completion, the system runs the latest versions of its software packages. When you eventually reboot, you'll notice a sub-menu in the bootloader that reads ``Old system generations'': it's what allows you to boot @emph{an older generation of your system}, should the latest generation be ``broken'' or otherwise unsatisfying. Just like for packages, you can always @emph{roll back} to a previous generation @emph{of the whole system}:"
  7053. msgstr ""
  7054. #. type: example
  7055. #: guix-git/doc/guix.texi:2902
  7056. #, no-wrap
  7057. msgid "sudo guix system roll-back\n"
  7058. msgstr ""
  7059. #. type: Plain text
  7060. #: guix-git/doc/guix.texi:2909
  7061. msgid "There are many things you'll probably want to tweak on your system: adding new user accounts, adding new system services, fiddling with the configuration of those services, etc. The system configuration is @emph{entirely} described in the @file{/etc/config.scm} file. @xref{Using the Configuration System}, to learn how to change it."
  7062. msgstr ""
  7063. #. type: Plain text
  7064. #: guix-git/doc/guix.texi:2911
  7065. msgid "Now you know enough to get started!"
  7066. msgstr ""
  7067. #. type: quotation
  7068. #: guix-git/doc/guix.texi:2912
  7069. #, no-wrap
  7070. msgid "Resources"
  7071. msgstr ""
  7072. #. type: quotation
  7073. #: guix-git/doc/guix.texi:2915
  7074. msgid "The rest of this manual provides a reference for all things Guix. Here are some additional resources you may find useful:"
  7075. msgstr ""
  7076. #. type: itemize
  7077. #: guix-git/doc/guix.texi:2920
  7078. msgid "@xref{Top,,, guix-cookbook, The GNU Guix Cookbook}, for a list of ``how-to'' style of recipes for a variety of applications."
  7079. msgstr ""
  7080. #. type: itemize
  7081. #: guix-git/doc/guix.texi:2925
  7082. msgid "The @uref{https://guix.gnu.org/guix-refcard.pdf, GNU Guix Reference Card} lists in two pages most of the commands and options you'll ever need."
  7083. msgstr ""
  7084. #. type: itemize
  7085. #: guix-git/doc/guix.texi:2930
  7086. msgid "The web site contains @uref{https://guix.gnu.org/en/videos/, instructional videos} covering topics such as everyday use of Guix, how to get help, and how to become a contributor."
  7087. msgstr ""
  7088. #. type: itemize
  7089. #: guix-git/doc/guix.texi:2934
  7090. msgid "@xref{Documentation}, to learn how to access documentation on your computer."
  7091. msgstr ""
  7092. #. type: quotation
  7093. #: guix-git/doc/guix.texi:2937
  7094. msgid "We hope you will enjoy Guix as much as the community enjoys building it!"
  7095. msgstr ""
  7096. #. type: Plain text
  7097. #: guix-git/doc/guix.texi:2948
  7098. msgid "The purpose of GNU Guix is to allow users to easily install, upgrade, and remove software packages, without having to know about their build procedures or dependencies. Guix also goes beyond this obvious set of features."
  7099. msgstr ""
  7100. #. type: Plain text
  7101. #: guix-git/doc/guix.texi:2956
  7102. msgid "This chapter describes the main features of Guix, as well as the package management tools it provides. Along with the command-line interface described below (@pxref{Invoking guix package, @code{guix package}}), you may also use the Emacs-Guix interface (@pxref{Top,,, emacs-guix, The Emacs-Guix Reference Manual}), after installing @code{emacs-guix} package (run @kbd{M-x guix-help} command to start with it):"
  7103. msgstr ""
  7104. #. type: example
  7105. #: guix-git/doc/guix.texi:2959
  7106. #, no-wrap
  7107. msgid "guix install emacs-guix\n"
  7108. msgstr "guix install emacs-guix\n"
  7109. #. type: Plain text
  7110. #: guix-git/doc/guix.texi:2980
  7111. msgid "Here we assume you've already made your first steps with Guix (@pxref{Getting Started}) and would like to get an overview about what's going on under the hood."
  7112. msgstr ""
  7113. #. type: Plain text
  7114. #: guix-git/doc/guix.texi:2984
  7115. msgid "When using Guix, each package ends up in the @dfn{package store}, in its own directory---something that resembles @file{/gnu/store/xxx-package-1.2}, where @code{xxx} is a base32 string."
  7116. msgstr ""
  7117. #. type: Plain text
  7118. #: guix-git/doc/guix.texi:2989
  7119. msgid "Instead of referring to these directories, users have their own @dfn{profile}, which points to the packages that they actually want to use. These profiles are stored within each user's home directory, at @code{$HOME/.guix-profile}."
  7120. msgstr ""
  7121. #. type: Plain text
  7122. #: guix-git/doc/guix.texi:2997
  7123. msgid "For example, @code{alice} installs GCC 4.7.2. As a result, @file{/home/alice/.guix-profile/bin/gcc} points to @file{/gnu/store/@dots{}-gcc-4.7.2/bin/gcc}. Now, on the same machine, @code{bob} had already installed GCC 4.8.0. The profile of @code{bob} simply continues to point to @file{/gnu/store/@dots{}-gcc-4.8.0/bin/gcc}---i.e., both versions of GCC coexist on the same system without any interference."
  7124. msgstr ""
  7125. #. type: Plain text
  7126. #: guix-git/doc/guix.texi:3001
  7127. msgid "The @command{guix package} command is the central tool to manage packages (@pxref{Invoking guix package}). It operates on the per-user profiles, and can be used @emph{with normal user privileges}."
  7128. msgstr ""
  7129. #. type: cindex
  7130. #: guix-git/doc/guix.texi:3002 guix-git/doc/guix.texi:3085
  7131. #, no-wrap
  7132. msgid "transactions"
  7133. msgstr ""
  7134. #. type: Plain text
  7135. #: guix-git/doc/guix.texi:3009
  7136. msgid "The command provides the obvious install, remove, and upgrade operations. Each invocation is actually a @emph{transaction}: either the specified operation succeeds, or nothing happens. Thus, if the @command{guix package} process is terminated during the transaction, or if a power outage occurs during the transaction, then the user's profile remains in its previous state, and remains usable."
  7137. msgstr ""
  7138. #. type: Plain text
  7139. #: guix-git/doc/guix.texi:3017
  7140. msgid "In addition, any package transaction may be @emph{rolled back}. So, if, for example, an upgrade installs a new version of a package that turns out to have a serious bug, users may roll back to the previous instance of their profile, which was known to work well. Similarly, the global system configuration on Guix is subject to transactional upgrades and roll-back (@pxref{Using the Configuration System})."
  7141. msgstr ""
  7142. #. type: Plain text
  7143. #: guix-git/doc/guix.texi:3024
  7144. msgid "All packages in the package store may be @emph{garbage-collected}. Guix can determine which packages are still referenced by user profiles, and remove those that are provably no longer referenced (@pxref{Invoking guix gc}). Users may also explicitly remove old generations of their profile so that the packages they refer to can be collected."
  7145. msgstr ""
  7146. #. type: Plain text
  7147. #: guix-git/doc/guix.texi:3037
  7148. msgid "Guix takes a @dfn{purely functional} approach to package management, as described in the introduction (@pxref{Introduction}). Each @file{/gnu/store} package directory name contains a hash of all the inputs that were used to build that package---compiler, libraries, build scripts, etc. This direct correspondence allows users to make sure a given package installation matches the current state of their distribution. It also helps maximize @dfn{build reproducibility}: thanks to the isolated build environments that are used, a given build is likely to yield bit-identical files when performed on different machines (@pxref{Invoking guix-daemon, container})."
  7149. msgstr ""
  7150. #. type: Plain text
  7151. #: guix-git/doc/guix.texi:3048
  7152. msgid "This foundation allows Guix to support @dfn{transparent binary/source deployment}. When a pre-built binary for a @file{/gnu/store} item is available from an external source---a @dfn{substitute}, Guix just downloads it and unpacks it; otherwise, it builds the package from source, locally (@pxref{Substitutes}). Because build results are usually bit-for-bit reproducible, users do not have to trust servers that provide substitutes: they can force a local build and @emph{challenge} providers (@pxref{Invoking guix challenge})."
  7153. msgstr ""
  7154. #. type: Plain text
  7155. #: guix-git/doc/guix.texi:3054
  7156. msgid "Control over the build environment is a feature that is also useful for developers. The @command{guix environment} command allows developers of a package to quickly set up the right development environment for their package, without having to manually install the dependencies of the package into their profile (@pxref{Invoking guix environment})."
  7157. msgstr ""
  7158. #. type: cindex
  7159. #: guix-git/doc/guix.texi:3055
  7160. #, no-wrap
  7161. msgid "replication, of software environments"
  7162. msgstr ""
  7163. #. type: cindex
  7164. #: guix-git/doc/guix.texi:3056
  7165. #, no-wrap
  7166. msgid "provenance tracking, of software artifacts"
  7167. msgstr ""
  7168. #. type: Plain text
  7169. #: guix-git/doc/guix.texi:3063
  7170. msgid "All of Guix and its package definitions is version-controlled, and @command{guix pull} allows you to ``travel in time'' on the history of Guix itself (@pxref{Invoking guix pull}). This makes it possible to replicate a Guix instance on a different machine or at a later point in time, which in turn allows you to @emph{replicate complete software environments}, while retaining precise @dfn{provenance tracking} of the software."
  7171. msgstr ""
  7172. #. type: section
  7173. #: guix-git/doc/guix.texi:3065
  7174. #, no-wrap
  7175. msgid "Invoking @command{guix package}"
  7176. msgstr ""
  7177. #. type: cindex
  7178. #: guix-git/doc/guix.texi:3067
  7179. #, no-wrap
  7180. msgid "installing packages"
  7181. msgstr ""
  7182. #. type: cindex
  7183. #: guix-git/doc/guix.texi:3068
  7184. #, no-wrap
  7185. msgid "removing packages"
  7186. msgstr ""
  7187. #. type: cindex
  7188. #: guix-git/doc/guix.texi:3069
  7189. #, no-wrap
  7190. msgid "package installation"
  7191. msgstr ""
  7192. #. type: cindex
  7193. #: guix-git/doc/guix.texi:3070
  7194. #, no-wrap
  7195. msgid "package removal"
  7196. msgstr ""
  7197. #. type: Plain text
  7198. #: guix-git/doc/guix.texi:3080
  7199. msgid "The @command{guix package} command is the tool that allows users to install, upgrade, and remove packages, as well as rolling back to previous configurations. These operations work on a user @dfn{profile}---a directory of installed packages. Each user has a default profile in @file{$HOME/.guix-profile}. The command operates only on the user's own profile, and works with normal user privileges (@pxref{Features}). Its syntax is:"
  7200. msgstr ""
  7201. #. type: example
  7202. #: guix-git/doc/guix.texi:3083
  7203. #, no-wrap
  7204. msgid "guix package @var{options}\n"
  7205. msgstr ""
  7206. #. type: Plain text
  7207. #: guix-git/doc/guix.texi:3090
  7208. msgid "Primarily, @var{options} specifies the operations to be performed during the transaction. Upon completion, a new profile is created, but previous @dfn{generations} of the profile remain available, should the user want to roll back."
  7209. msgstr ""
  7210. #. type: Plain text
  7211. #: guix-git/doc/guix.texi:3093
  7212. msgid "For example, to remove @code{lua} and install @code{guile} and @code{guile-cairo} in a single transaction:"
  7213. msgstr ""
  7214. #. type: example
  7215. #: guix-git/doc/guix.texi:3096
  7216. #, no-wrap
  7217. msgid "guix package -r lua -i guile guile-cairo\n"
  7218. msgstr ""
  7219. #. type: cindex
  7220. #: guix-git/doc/guix.texi:3098
  7221. #, no-wrap
  7222. msgid "aliases, for @command{guix package}"
  7223. msgstr ""
  7224. #. type: Plain text
  7225. #: guix-git/doc/guix.texi:3100
  7226. msgid "For your convenience, we also provide the following aliases:"
  7227. msgstr ""
  7228. #. type: itemize
  7229. #: guix-git/doc/guix.texi:3104
  7230. msgid "@command{guix search} is an alias for @command{guix package -s},"
  7231. msgstr ""
  7232. #. type: itemize
  7233. #: guix-git/doc/guix.texi:3106
  7234. msgid "@command{guix install} is an alias for @command{guix package -i},"
  7235. msgstr ""
  7236. #. type: itemize
  7237. #: guix-git/doc/guix.texi:3108
  7238. msgid "@command{guix remove} is an alias for @command{guix package -r},"
  7239. msgstr ""
  7240. #. type: itemize
  7241. #: guix-git/doc/guix.texi:3110
  7242. msgid "@command{guix upgrade} is an alias for @command{guix package -u},"
  7243. msgstr ""
  7244. #. type: itemize
  7245. #: guix-git/doc/guix.texi:3112
  7246. msgid "and @command{guix show} is an alias for @command{guix package --show=}."
  7247. msgstr ""
  7248. #. type: Plain text
  7249. #: guix-git/doc/guix.texi:3117
  7250. msgid "These aliases are less expressive than @command{guix package} and provide fewer options, so in some cases you'll probably want to use @command{guix package} directly."
  7251. msgstr ""
  7252. #. type: Plain text
  7253. #: guix-git/doc/guix.texi:3122
  7254. msgid "@command{guix package} also supports a @dfn{declarative approach} whereby the user specifies the exact set of packages to be available and passes it @i{via} the @option{--manifest} option (@pxref{profile-manifest, @option{--manifest}})."
  7255. msgstr ""
  7256. #. type: Plain text
  7257. #: guix-git/doc/guix.texi:3129
  7258. msgid "For each user, a symlink to the user's default profile is automatically created in @file{$HOME/.guix-profile}. This symlink always points to the current generation of the user's default profile. Thus, users can add @file{$HOME/.guix-profile/bin} to their @env{PATH} environment variable, and so on."
  7259. msgstr ""
  7260. #. type: cindex
  7261. #: guix-git/doc/guix.texi:3129 guix-git/doc/guix.texi:3362
  7262. #, no-wrap
  7263. msgid "search paths"
  7264. msgstr ""
  7265. #. type: Plain text
  7266. #: guix-git/doc/guix.texi:3134
  7267. msgid "If you are not using Guix System, consider adding the following lines to your @file{~/.bash_profile} (@pxref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}) so that newly-spawned shells get all the right environment variable definitions:"
  7268. msgstr ""
  7269. #. type: example
  7270. #: guix-git/doc/guix.texi:3138
  7271. #, no-wrap
  7272. msgid ""
  7273. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7274. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7275. msgstr ""
  7276. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7277. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7278. #. type: Plain text
  7279. #: guix-git/doc/guix.texi:3149
  7280. msgid "In a multi-user setup, user profiles are stored in a place registered as a @dfn{garbage-collector root}, which @file{$HOME/.guix-profile} points to (@pxref{Invoking guix gc}). That directory is normally @code{@var{localstatedir}/guix/profiles/per-user/@var{user}}, where @var{localstatedir} is the value passed to @code{configure} as @option{--localstatedir}, and @var{user} is the user name. The @file{per-user} directory is created when @command{guix-daemon} is started, and the @var{user} sub-directory is created by @command{guix package}."
  7281. msgstr ""
  7282. #. type: Plain text
  7283. #: guix-git/doc/guix.texi:3151
  7284. msgid "The @var{options} can be among the following:"
  7285. msgstr ""
  7286. #. type: item
  7287. #: guix-git/doc/guix.texi:3154
  7288. #, no-wrap
  7289. msgid "--install=@var{package} @dots{}"
  7290. msgstr ""
  7291. #. type: itemx
  7292. #: guix-git/doc/guix.texi:3155
  7293. #, no-wrap
  7294. msgid "-i @var{package} @dots{}"
  7295. msgstr ""
  7296. #. type: table
  7297. #: guix-git/doc/guix.texi:3157
  7298. msgid "Install the specified @var{package}s."
  7299. msgstr ""
  7300. #. type: table
  7301. #: guix-git/doc/guix.texi:3162
  7302. msgid "Each @var{package} may specify either a simple package name, such as @code{guile}, or a package name followed by an at-sign and version number, such as @code{guile@@1.8.8} or simply @code{guile@@1.8} (in the latter case, the newest version prefixed by @code{1.8} is selected)."
  7303. msgstr ""
  7304. #. type: table
  7305. #: guix-git/doc/guix.texi:3170
  7306. msgid "If no version number is specified, the newest available version will be selected. In addition, @var{package} may contain a colon, followed by the name of one of the outputs of the package, as in @code{gcc:doc} or @code{binutils@@2.22:lib} (@pxref{Packages with Multiple Outputs}). Packages with a corresponding name (and optionally version) are searched for among the GNU distribution modules (@pxref{Package Modules})."
  7307. msgstr ""
  7308. #. type: cindex
  7309. #: guix-git/doc/guix.texi:3171
  7310. #, no-wrap
  7311. msgid "propagated inputs"
  7312. msgstr ""
  7313. #. type: table
  7314. #: guix-git/doc/guix.texi:3177
  7315. msgid "Sometimes packages have @dfn{propagated inputs}: these are dependencies that automatically get installed along with the required package (@pxref{package-propagated-inputs, @code{propagated-inputs} in @code{package} objects}, for information about propagated inputs in package definitions)."
  7316. msgstr ""
  7317. #. type: anchor{#1}
  7318. #: guix-git/doc/guix.texi:3184
  7319. msgid "package-cmd-propagated-inputs"
  7320. msgstr ""
  7321. #. type: table
  7322. #: guix-git/doc/guix.texi:3184
  7323. msgid "An example is the GNU MPC library: its C header files refer to those of the GNU MPFR library, which in turn refer to those of the GMP library. Thus, when installing MPC, the MPFR and GMP libraries also get installed in the profile; removing MPC also removes MPFR and GMP---unless they had also been explicitly installed by the user."
  7324. msgstr ""
  7325. #. type: table
  7326. #: guix-git/doc/guix.texi:3189
  7327. msgid "Besides, packages sometimes rely on the definition of environment variables for their search paths (see explanation of @option{--search-paths} below). Any missing or possibly incorrect environment variable definitions are reported here."
  7328. msgstr ""
  7329. #. type: item
  7330. #: guix-git/doc/guix.texi:3190
  7331. #, no-wrap
  7332. msgid "--install-from-expression=@var{exp}"
  7333. msgstr ""
  7334. #. type: itemx
  7335. #: guix-git/doc/guix.texi:3191
  7336. #, no-wrap
  7337. msgid "-e @var{exp}"
  7338. msgstr ""
  7339. #. type: table
  7340. #: guix-git/doc/guix.texi:3193
  7341. msgid "Install the package @var{exp} evaluates to."
  7342. msgstr ""
  7343. #. type: table
  7344. #: guix-git/doc/guix.texi:3198
  7345. msgid "@var{exp} must be a Scheme expression that evaluates to a @code{<package>} object. This option is notably useful to disambiguate between same-named variants of a package, with expressions such as @code{(@@ (gnu packages base) guile-final)}."
  7346. msgstr ""
  7347. #. type: table
  7348. #: guix-git/doc/guix.texi:3202
  7349. msgid "Note that this option installs the first output of the specified package, which may be insufficient when needing a specific output of a multiple-output package."
  7350. msgstr ""
  7351. #. type: item
  7352. #: guix-git/doc/guix.texi:3203
  7353. #, no-wrap
  7354. msgid "--install-from-file=@var{file}"
  7355. msgstr ""
  7356. #. type: itemx
  7357. #: guix-git/doc/guix.texi:3204 guix-git/doc/guix.texi:10758
  7358. #, no-wrap
  7359. msgid "-f @var{file}"
  7360. msgstr ""
  7361. #. type: table
  7362. #: guix-git/doc/guix.texi:3206
  7363. msgid "Install the package that the code within @var{file} evaluates to."
  7364. msgstr ""
  7365. #. type: table
  7366. #: guix-git/doc/guix.texi:3209 guix-git/doc/guix.texi:5741
  7367. msgid "As an example, @var{file} might contain a definition like this (@pxref{Defining Packages}):"
  7368. msgstr ""
  7369. #. type: include
  7370. #: guix-git/doc/guix.texi:3211 guix-git/doc/guix.texi:10766
  7371. #, no-wrap
  7372. msgid "package-hello.scm"
  7373. msgstr ""
  7374. #. type: table
  7375. #: guix-git/doc/guix.texi:3218
  7376. msgid "Developers may find it useful to include such a @file{guix.scm} file in the root of their project source tree that can be used to test development snapshots and create reproducible development environments (@pxref{Invoking guix environment})."
  7377. msgstr ""
  7378. #. type: table
  7379. #: guix-git/doc/guix.texi:3223
  7380. msgid "The @var{file} may also contain a JSON representation of one or more package definitions. Running @code{guix package -f} on @file{hello.json} with the following contents would result in installing the package @code{greeter} after building @code{myhello}:"
  7381. msgstr ""
  7382. #. type: example
  7383. #: guix-git/doc/guix.texi:3226 guix-git/doc/guix.texi:10776
  7384. #, no-wrap
  7385. msgid "@verbatiminclude package-hello.json\n"
  7386. msgstr ""
  7387. #. type: item
  7388. #: guix-git/doc/guix.texi:3228
  7389. #, no-wrap
  7390. msgid "--remove=@var{package} @dots{}"
  7391. msgstr ""
  7392. #. type: itemx
  7393. #: guix-git/doc/guix.texi:3229
  7394. #, no-wrap
  7395. msgid "-r @var{package} @dots{}"
  7396. msgstr ""
  7397. #. type: table
  7398. #: guix-git/doc/guix.texi:3231
  7399. msgid "Remove the specified @var{package}s."
  7400. msgstr ""
  7401. #. type: table
  7402. #: guix-git/doc/guix.texi:3236
  7403. msgid "As for @option{--install}, each @var{package} may specify a version number and/or output name in addition to the package name. For instance, @samp{-r glibc:debug} would remove the @code{debug} output of @code{glibc}."
  7404. msgstr ""
  7405. #. type: item
  7406. #: guix-git/doc/guix.texi:3237
  7407. #, no-wrap
  7408. msgid "--upgrade[=@var{regexp} @dots{}]"
  7409. msgstr ""
  7410. #. type: itemx
  7411. #: guix-git/doc/guix.texi:3238
  7412. #, no-wrap
  7413. msgid "-u [@var{regexp} @dots{}]"
  7414. msgstr ""
  7415. #. type: cindex
  7416. #: guix-git/doc/guix.texi:3239
  7417. #, no-wrap
  7418. msgid "upgrading packages"
  7419. msgstr ""
  7420. #. type: table
  7421. #: guix-git/doc/guix.texi:3243
  7422. msgid "Upgrade all the installed packages. If one or more @var{regexp}s are specified, upgrade only installed packages whose name matches a @var{regexp}. Also see the @option{--do-not-upgrade} option below."
  7423. msgstr ""
  7424. #. type: table
  7425. #: guix-git/doc/guix.texi:3248
  7426. msgid "Note that this upgrades package to the latest version of packages found in the distribution currently installed. To update your distribution, you should regularly run @command{guix pull} (@pxref{Invoking guix pull})."
  7427. msgstr ""
  7428. #. type: cindex
  7429. #: guix-git/doc/guix.texi:3249
  7430. #, fuzzy, no-wrap
  7431. msgid "package transformations, upgrades"
  7432. msgstr "软件包变换选项。"
  7433. #. type: table
  7434. #: guix-git/doc/guix.texi:3254
  7435. msgid "When upgrading, package transformations that were originally applied when creating the profile are automatically re-applied (@pxref{Package Transformation Options}). For example, assume you first installed Emacs from the tip of its development branch with:"
  7436. msgstr ""
  7437. #. type: example
  7438. #: guix-git/doc/guix.texi:3257
  7439. #, no-wrap
  7440. msgid "guix install emacs-next --with-branch=emacs-next=master\n"
  7441. msgstr ""
  7442. #. type: table
  7443. #: guix-git/doc/guix.texi:3262
  7444. msgid "Next time you run @command{guix upgrade}, Guix will again pull the tip of the Emacs development branch and build @code{emacs-next} from that checkout."
  7445. msgstr ""
  7446. #. type: table
  7447. #: guix-git/doc/guix.texi:3267
  7448. msgid "Note that transformation options such as @option{--with-branch} and @option{--with-source} depend on external state; it is up to you to ensure that they work as expected. You can also discard a transformations that apply to a package by running:"
  7449. msgstr ""
  7450. #. type: example
  7451. #: guix-git/doc/guix.texi:3270
  7452. #, fuzzy, no-wrap
  7453. msgid "guix install @var{package}\n"
  7454. msgstr "guix install emacs-guix\n"
  7455. #. type: item
  7456. #: guix-git/doc/guix.texi:3272
  7457. #, no-wrap
  7458. msgid "--do-not-upgrade[=@var{regexp} @dots{}]"
  7459. msgstr ""
  7460. #. type: table
  7461. #: guix-git/doc/guix.texi:3277
  7462. msgid "When used together with the @option{--upgrade} option, do @emph{not} upgrade any packages whose name matches a @var{regexp}. For example, to upgrade all packages in the current profile except those containing the substring ``emacs'':"
  7463. msgstr ""
  7464. #. type: example
  7465. #: guix-git/doc/guix.texi:3280
  7466. #, no-wrap
  7467. msgid "$ guix package --upgrade . --do-not-upgrade emacs\n"
  7468. msgstr ""
  7469. #. type: anchor{#1}
  7470. #: guix-git/doc/guix.texi:3282
  7471. #, no-wrap
  7472. msgid "profile-manifest"
  7473. msgstr ""
  7474. #. type: item
  7475. #: guix-git/doc/guix.texi:3282 guix-git/doc/guix.texi:5746
  7476. #: guix-git/doc/guix.texi:6194 guix-git/doc/guix.texi:11870
  7477. #: guix-git/doc/guix.texi:13319
  7478. #, no-wrap
  7479. msgid "--manifest=@var{file}"
  7480. msgstr ""
  7481. #. type: itemx
  7482. #: guix-git/doc/guix.texi:3283 guix-git/doc/guix.texi:5747
  7483. #: guix-git/doc/guix.texi:6195 guix-git/doc/guix.texi:11871
  7484. #, no-wrap
  7485. msgid "-m @var{file}"
  7486. msgstr ""
  7487. #. type: cindex
  7488. #: guix-git/doc/guix.texi:3284
  7489. #, no-wrap
  7490. msgid "profile declaration"
  7491. msgstr ""
  7492. #. type: cindex
  7493. #: guix-git/doc/guix.texi:3285
  7494. #, no-wrap
  7495. msgid "profile manifest"
  7496. msgstr ""
  7497. #. type: table
  7498. #: guix-git/doc/guix.texi:3289
  7499. msgid "Create a new generation of the profile from the manifest object returned by the Scheme code in @var{file}. This option can be repeated several times, in which case the manifests are concatenated."
  7500. msgstr ""
  7501. #. type: table
  7502. #: guix-git/doc/guix.texi:3295
  7503. msgid "This allows you to @emph{declare} the profile's contents rather than constructing it through a sequence of @option{--install} and similar commands. The advantage is that @var{file} can be put under version control, copied to different machines to reproduce the same profile, and so on."
  7504. msgstr ""
  7505. #. type: table
  7506. #: guix-git/doc/guix.texi:3299
  7507. msgid "@var{file} must return a @dfn{manifest} object, which is roughly a list of packages:"
  7508. msgstr ""
  7509. #. type: findex
  7510. #: guix-git/doc/guix.texi:3300
  7511. #, no-wrap
  7512. msgid "packages->manifest"
  7513. msgstr ""
  7514. #. type: lisp
  7515. #: guix-git/doc/guix.texi:3303
  7516. #, no-wrap
  7517. msgid ""
  7518. "(use-package-modules guile emacs)\n"
  7519. "\n"
  7520. msgstr ""
  7521. #. type: lisp
  7522. #: guix-git/doc/guix.texi:3309
  7523. #, no-wrap
  7524. msgid ""
  7525. "(packages->manifest\n"
  7526. " (list emacs\n"
  7527. " guile-2.0\n"
  7528. " ;; Use a specific package output.\n"
  7529. " (list guile-2.0 \"debug\")))\n"
  7530. msgstr ""
  7531. #. type: findex
  7532. #: guix-git/doc/guix.texi:3311
  7533. #, no-wrap
  7534. msgid "specifications->manifest"
  7535. msgstr ""
  7536. #. type: table
  7537. #: guix-git/doc/guix.texi:3318
  7538. msgid "In this example we have to know which modules define the @code{emacs} and @code{guile-2.0} variables to provide the right @code{use-package-modules} line, which can be cumbersome. We can instead provide regular package specifications and let @code{specifications->manifest} look up the corresponding package objects, like this:"
  7539. msgstr ""
  7540. #. type: lisp
  7541. #: guix-git/doc/guix.texi:3322
  7542. #, no-wrap
  7543. msgid ""
  7544. "(specifications->manifest\n"
  7545. " '(\"emacs\" \"guile@@2.2\" \"guile@@2.2:debug\"))\n"
  7546. msgstr ""
  7547. #. type: table
  7548. #: guix-git/doc/guix.texi:3326
  7549. msgid "@xref{export-manifest, @option{--export-manifest}}, to learn how to obtain a manifest file from an existing profile."
  7550. msgstr ""
  7551. #. type: item
  7552. #: guix-git/doc/guix.texi:3327 guix-git/doc/guix.texi:4434
  7553. #, no-wrap
  7554. msgid "--roll-back"
  7555. msgstr ""
  7556. #. type: cindex
  7557. #: guix-git/doc/guix.texi:3328 guix-git/doc/guix.texi:4435
  7558. #: guix-git/doc/guix.texi:33604
  7559. #, no-wrap
  7560. msgid "rolling back"
  7561. msgstr ""
  7562. #. type: cindex
  7563. #: guix-git/doc/guix.texi:3329 guix-git/doc/guix.texi:4436
  7564. #, no-wrap
  7565. msgid "undoing transactions"
  7566. msgstr ""
  7567. #. type: cindex
  7568. #: guix-git/doc/guix.texi:3330 guix-git/doc/guix.texi:4437
  7569. #, no-wrap
  7570. msgid "transactions, undoing"
  7571. msgstr ""
  7572. #. type: table
  7573. #: guix-git/doc/guix.texi:3333
  7574. msgid "Roll back to the previous @dfn{generation} of the profile---i.e., undo the last transaction."
  7575. msgstr ""
  7576. #. type: table
  7577. #: guix-git/doc/guix.texi:3336
  7578. msgid "When combined with options such as @option{--install}, roll back occurs before any other actions."
  7579. msgstr ""
  7580. #. type: table
  7581. #: guix-git/doc/guix.texi:3340
  7582. msgid "When rolling back from the first generation that actually contains installed packages, the profile is made to point to the @dfn{zeroth generation}, which contains no files apart from its own metadata."
  7583. msgstr ""
  7584. #. type: table
  7585. #: guix-git/doc/guix.texi:3344
  7586. msgid "After having rolled back, installing, removing, or upgrading packages overwrites previous future generations. Thus, the history of the generations in a profile is always linear."
  7587. msgstr ""
  7588. #. type: item
  7589. #: guix-git/doc/guix.texi:3345 guix-git/doc/guix.texi:4441
  7590. #, no-wrap
  7591. msgid "--switch-generation=@var{pattern}"
  7592. msgstr ""
  7593. #. type: itemx
  7594. #: guix-git/doc/guix.texi:3346 guix-git/doc/guix.texi:4442
  7595. #, no-wrap
  7596. msgid "-S @var{pattern}"
  7597. msgstr ""
  7598. #. type: cindex
  7599. #: guix-git/doc/guix.texi:3347 guix-git/doc/guix.texi:3577
  7600. #: guix-git/doc/guix.texi:4443 guix-git/doc/guix.texi:33562
  7601. #, no-wrap
  7602. msgid "generations"
  7603. msgstr ""
  7604. #. type: table
  7605. #: guix-git/doc/guix.texi:3349 guix-git/doc/guix.texi:4445
  7606. msgid "Switch to a particular generation defined by @var{pattern}."
  7607. msgstr ""
  7608. #. type: table
  7609. #: guix-git/doc/guix.texi:3355 guix-git/doc/guix.texi:4451
  7610. msgid "@var{pattern} may be either a generation number or a number prefixed with ``+'' or ``-''. The latter means: move forward/backward by a specified number of generations. For example, if you want to return to the latest generation after @option{--roll-back}, use @option{--switch-generation=+1}."
  7611. msgstr ""
  7612. #. type: table
  7613. #: guix-git/doc/guix.texi:3360
  7614. msgid "The difference between @option{--roll-back} and @option{--switch-generation=-1} is that @option{--switch-generation} will not make a zeroth generation, so if a specified generation does not exist, the current generation will not be changed."
  7615. msgstr ""
  7616. #. type: item
  7617. #: guix-git/doc/guix.texi:3361
  7618. #, no-wrap
  7619. msgid "--search-paths[=@var{kind}]"
  7620. msgstr ""
  7621. #. type: table
  7622. #: guix-git/doc/guix.texi:3367
  7623. msgid "Report environment variable definitions, in Bash syntax, that may be needed in order to use the set of installed packages. These environment variables are used to specify @dfn{search paths} for files used by some of the installed packages."
  7624. msgstr ""
  7625. #. type: table
  7626. #: guix-git/doc/guix.texi:3375
  7627. msgid "For example, GCC needs the @env{CPATH} and @env{LIBRARY_PATH} environment variables to be defined so it can look for headers and libraries in the user's profile (@pxref{Environment Variables,,, gcc, Using the GNU Compiler Collection (GCC)}). If GCC and, say, the C library are installed in the profile, then @option{--search-paths} will suggest setting these variables to @file{@var{profile}/include} and @file{@var{profile}/lib}, respectively."
  7628. msgstr ""
  7629. #. type: table
  7630. #: guix-git/doc/guix.texi:3378
  7631. msgid "The typical use case is to define these environment variables in the shell:"
  7632. msgstr ""
  7633. #. type: example
  7634. #: guix-git/doc/guix.texi:3381
  7635. #, no-wrap
  7636. msgid "$ eval `guix package --search-paths`\n"
  7637. msgstr ""
  7638. #. type: table
  7639. #: guix-git/doc/guix.texi:3387
  7640. msgid "@var{kind} may be one of @code{exact}, @code{prefix}, or @code{suffix}, meaning that the returned environment variable definitions will either be exact settings, or prefixes or suffixes of the current value of these variables. When omitted, @var{kind} defaults to @code{exact}."
  7641. msgstr ""
  7642. #. type: table
  7643. #: guix-git/doc/guix.texi:3390
  7644. msgid "This option can also be used to compute the @emph{combined} search paths of several profiles. Consider this example:"
  7645. msgstr ""
  7646. #. type: example
  7647. #: guix-git/doc/guix.texi:3395
  7648. #, no-wrap
  7649. msgid ""
  7650. "$ guix package -p foo -i guile\n"
  7651. "$ guix package -p bar -i guile-json\n"
  7652. "$ guix package -p foo -p bar --search-paths\n"
  7653. msgstr ""
  7654. #. type: table
  7655. #: guix-git/doc/guix.texi:3400
  7656. msgid "The last command above reports about the @env{GUILE_LOAD_PATH} variable, even though, taken individually, neither @file{foo} nor @file{bar} would lead to that recommendation."
  7657. msgstr ""
  7658. #. type: cindex
  7659. #: guix-git/doc/guix.texi:3402
  7660. #, no-wrap
  7661. msgid "profile, choosing"
  7662. msgstr ""
  7663. #. type: item
  7664. #: guix-git/doc/guix.texi:3403 guix-git/doc/guix.texi:4471
  7665. #: guix-git/doc/guix.texi:4800
  7666. #, no-wrap
  7667. msgid "--profile=@var{profile}"
  7668. msgstr ""
  7669. #. type: itemx
  7670. #: guix-git/doc/guix.texi:3404 guix-git/doc/guix.texi:4472
  7671. #: guix-git/doc/guix.texi:4801
  7672. #, no-wrap
  7673. msgid "-p @var{profile}"
  7674. msgstr ""
  7675. #. type: table
  7676. #: guix-git/doc/guix.texi:3406
  7677. msgid "Use @var{profile} instead of the user's default profile."
  7678. msgstr ""
  7679. #. type: table
  7680. #: guix-git/doc/guix.texi:3411
  7681. msgid "@var{profile} must be the name of a file that will be created upon completion. Concretely, @var{profile} will be a mere symbolic link (``symlink'') pointing to the actual profile where packages are installed:"
  7682. msgstr ""
  7683. #. type: example
  7684. #: guix-git/doc/guix.texi:3417
  7685. #, no-wrap
  7686. msgid ""
  7687. "$ guix install hello -p ~/code/my-profile\n"
  7688. "@dots{}\n"
  7689. "$ ~/code/my-profile/bin/hello\n"
  7690. "Hello, world!\n"
  7691. msgstr ""
  7692. #. type: table
  7693. #: guix-git/doc/guix.texi:3421
  7694. msgid "All it takes to get rid of the profile is to remove this symlink and its siblings that point to specific generations:"
  7695. msgstr ""
  7696. #. type: example
  7697. #: guix-git/doc/guix.texi:3424
  7698. #, no-wrap
  7699. msgid "$ rm ~/code/my-profile ~/code/my-profile-*-link\n"
  7700. msgstr ""
  7701. #. type: item
  7702. #: guix-git/doc/guix.texi:3426
  7703. #, no-wrap
  7704. msgid "--list-profiles"
  7705. msgstr ""
  7706. #. type: table
  7707. #: guix-git/doc/guix.texi:3428
  7708. msgid "List all the user's profiles:"
  7709. msgstr ""
  7710. #. type: example
  7711. #: guix-git/doc/guix.texi:3435
  7712. #, no-wrap
  7713. msgid ""
  7714. "$ guix package --list-profiles\n"
  7715. "/home/charlie/.guix-profile\n"
  7716. "/home/charlie/code/my-profile\n"
  7717. "/home/charlie/code/devel-profile\n"
  7718. "/home/charlie/tmp/test\n"
  7719. msgstr ""
  7720. #. type: table
  7721. #: guix-git/doc/guix.texi:3438
  7722. msgid "When running as root, list all the profiles of all the users."
  7723. msgstr ""
  7724. #. type: cindex
  7725. #: guix-git/doc/guix.texi:3439
  7726. #, no-wrap
  7727. msgid "collisions, in a profile"
  7728. msgstr ""
  7729. #. type: cindex
  7730. #: guix-git/doc/guix.texi:3440
  7731. #, no-wrap
  7732. msgid "colliding packages in profiles"
  7733. msgstr ""
  7734. #. type: cindex
  7735. #: guix-git/doc/guix.texi:3441
  7736. #, no-wrap
  7737. msgid "profile collisions"
  7738. msgstr ""
  7739. #. type: item
  7740. #: guix-git/doc/guix.texi:3442
  7741. #, no-wrap
  7742. msgid "--allow-collisions"
  7743. msgstr ""
  7744. #. type: table
  7745. #: guix-git/doc/guix.texi:3444
  7746. msgid "Allow colliding packages in the new profile. Use at your own risk!"
  7747. msgstr ""
  7748. #. type: table
  7749. #: guix-git/doc/guix.texi:3448
  7750. msgid "By default, @command{guix package} reports as an error @dfn{collisions} in the profile. Collisions happen when two or more different versions or variants of a given package end up in the profile."
  7751. msgstr ""
  7752. #. type: item
  7753. #: guix-git/doc/guix.texi:3449 guix-git/doc/guix.texi:4514
  7754. #: guix-git/doc/guix.texi:6280
  7755. #, no-wrap
  7756. msgid "--bootstrap"
  7757. msgstr ""
  7758. #. type: table
  7759. #: guix-git/doc/guix.texi:3452
  7760. msgid "Use the bootstrap Guile to build the profile. This option is only useful to distribution developers."
  7761. msgstr ""
  7762. #. type: Plain text
  7763. #: guix-git/doc/guix.texi:3458
  7764. msgid "In addition to these actions, @command{guix package} supports the following options to query the current state of a profile, or the availability of packages:"
  7765. msgstr ""
  7766. #. type: item
  7767. #: guix-git/doc/guix.texi:3461
  7768. #, no-wrap
  7769. msgid "--search=@var{regexp}"
  7770. msgstr ""
  7771. #. type: itemx
  7772. #: guix-git/doc/guix.texi:3462
  7773. #, no-wrap
  7774. msgid "-s @var{regexp}"
  7775. msgstr ""
  7776. #. type: anchor{#1}
  7777. #: guix-git/doc/guix.texi:3464
  7778. msgid "guix-search"
  7779. msgstr ""
  7780. #. type: cindex
  7781. #: guix-git/doc/guix.texi:3464
  7782. #, no-wrap
  7783. msgid "searching for packages"
  7784. msgstr ""
  7785. #. type: table
  7786. #: guix-git/doc/guix.texi:3470
  7787. msgid "List the available packages whose name, synopsis, or description matches @var{regexp} (in a case-insensitive fashion), sorted by relevance. Print all the metadata of matching packages in @code{recutils} format (@pxref{Top, GNU recutils databases,, recutils, GNU recutils manual})."
  7788. msgstr ""
  7789. #. type: table
  7790. #: guix-git/doc/guix.texi:3473
  7791. msgid "This allows specific fields to be extracted using the @command{recsel} command, for instance:"
  7792. msgstr ""
  7793. #. type: example
  7794. #: guix-git/doc/guix.texi:3479
  7795. #, no-wrap
  7796. msgid ""
  7797. "$ guix package -s malloc | recsel -p name,version,relevance\n"
  7798. "name: jemalloc\n"
  7799. "version: 4.5.0\n"
  7800. "relevance: 6\n"
  7801. "\n"
  7802. msgstr ""
  7803. #. type: example
  7804. #: guix-git/doc/guix.texi:3483
  7805. #, no-wrap
  7806. msgid ""
  7807. "name: glibc\n"
  7808. "version: 2.25\n"
  7809. "relevance: 1\n"
  7810. "\n"
  7811. msgstr ""
  7812. #. type: example
  7813. #: guix-git/doc/guix.texi:3487
  7814. #, no-wrap
  7815. msgid ""
  7816. "name: libgc\n"
  7817. "version: 7.6.0\n"
  7818. "relevance: 1\n"
  7819. msgstr ""
  7820. #. type: table
  7821. #: guix-git/doc/guix.texi:3491
  7822. msgid "Similarly, to show the name of all the packages available under the terms of the GNU@tie{}LGPL version 3:"
  7823. msgstr ""
  7824. #. type: example
  7825. #: guix-git/doc/guix.texi:3495
  7826. #, no-wrap
  7827. msgid ""
  7828. "$ guix package -s \"\" | recsel -p name -e 'license ~ \"LGPL 3\"'\n"
  7829. "name: elfutils\n"
  7830. "\n"
  7831. msgstr ""
  7832. #. type: example
  7833. #: guix-git/doc/guix.texi:3498
  7834. #, no-wrap
  7835. msgid ""
  7836. "name: gmp\n"
  7837. "@dots{}\n"
  7838. msgstr ""
  7839. #. type: table
  7840. #: guix-git/doc/guix.texi:3504
  7841. msgid "It is also possible to refine search results using several @code{-s} flags to @command{guix package}, or several arguments to @command{guix search}. For example, the following command returns a list of board games (this time using the @command{guix search} alias):"
  7842. msgstr ""
  7843. #. type: example
  7844. #: guix-git/doc/guix.texi:3509
  7845. #, no-wrap
  7846. msgid ""
  7847. "$ guix search '\\<board\\>' game | recsel -p name\n"
  7848. "name: gnubg\n"
  7849. "@dots{}\n"
  7850. msgstr ""
  7851. #. type: table
  7852. #: guix-git/doc/guix.texi:3515
  7853. msgid "If we were to omit @code{-s game}, we would also get software packages that deal with printed circuit boards; removing the angle brackets around @code{board} would further add packages that have to do with keyboards."
  7854. msgstr ""
  7855. #. type: table
  7856. #: guix-git/doc/guix.texi:3519
  7857. msgid "And now for a more elaborate example. The following command searches for cryptographic libraries, filters out Haskell, Perl, Python, and Ruby libraries, and prints the name and synopsis of the matching packages:"
  7858. msgstr ""
  7859. #. type: example
  7860. #: guix-git/doc/guix.texi:3523
  7861. #, no-wrap
  7862. msgid ""
  7863. "$ guix search crypto library | \\\n"
  7864. " recsel -e '! (name ~ \"^(ghc|perl|python|ruby)\")' -p name,synopsis\n"
  7865. msgstr ""
  7866. #. type: table
  7867. #: guix-git/doc/guix.texi:3528
  7868. msgid "@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more information on @dfn{selection expressions} for @code{recsel -e}."
  7869. msgstr ""
  7870. #. type: item
  7871. #: guix-git/doc/guix.texi:3529
  7872. #, no-wrap
  7873. msgid "--show=@var{package}"
  7874. msgstr ""
  7875. #. type: table
  7876. #: guix-git/doc/guix.texi:3533
  7877. msgid "Show details about @var{package}, taken from the list of available packages, in @code{recutils} format (@pxref{Top, GNU recutils databases,, recutils, GNU recutils manual})."
  7878. msgstr ""
  7879. #. type: example
  7880. #: guix-git/doc/guix.texi:3538
  7881. #, no-wrap
  7882. msgid ""
  7883. "$ guix package --show=python | recsel -p name,version\n"
  7884. "name: python\n"
  7885. "version: 2.7.6\n"
  7886. "\n"
  7887. msgstr ""
  7888. #. type: example
  7889. #: guix-git/doc/guix.texi:3541
  7890. #, no-wrap
  7891. msgid ""
  7892. "name: python\n"
  7893. "version: 3.3.5\n"
  7894. msgstr ""
  7895. #. type: table
  7896. #: guix-git/doc/guix.texi:3545
  7897. msgid "You may also specify the full name of a package to only get details about a specific version of it (this time using the @command{guix show} alias):"
  7898. msgstr ""
  7899. #. type: example
  7900. #: guix-git/doc/guix.texi:3549
  7901. #, no-wrap
  7902. msgid ""
  7903. "$ guix show python@@3.4 | recsel -p name,version\n"
  7904. "name: python\n"
  7905. "version: 3.4.3\n"
  7906. msgstr ""
  7907. #. type: item
  7908. #: guix-git/doc/guix.texi:3553
  7909. #, no-wrap
  7910. msgid "--list-installed[=@var{regexp}]"
  7911. msgstr ""
  7912. #. type: itemx
  7913. #: guix-git/doc/guix.texi:3554
  7914. #, no-wrap
  7915. msgid "-I [@var{regexp}]"
  7916. msgstr ""
  7917. #. type: table
  7918. #: guix-git/doc/guix.texi:3558
  7919. msgid "List the currently installed packages in the specified profile, with the most recently installed packages shown last. When @var{regexp} is specified, list only installed packages whose name matches @var{regexp}."
  7920. msgstr ""
  7921. #. type: table
  7922. #: guix-git/doc/guix.texi:3564
  7923. msgid "For each installed package, print the following items, separated by tabs: the package name, its version string, the part of the package that is installed (for instance, @code{out} for the default output, @code{include} for its headers, etc.), and the path of this package in the store."
  7924. msgstr ""
  7925. #. type: item
  7926. #: guix-git/doc/guix.texi:3565
  7927. #, no-wrap
  7928. msgid "--list-available[=@var{regexp}]"
  7929. msgstr ""
  7930. #. type: itemx
  7931. #: guix-git/doc/guix.texi:3566
  7932. #, no-wrap
  7933. msgid "-A [@var{regexp}]"
  7934. msgstr ""
  7935. #. type: table
  7936. #: guix-git/doc/guix.texi:3570
  7937. msgid "List packages currently available in the distribution for this system (@pxref{GNU Distribution}). When @var{regexp} is specified, list only available packages whose name matches @var{regexp}."
  7938. msgstr ""
  7939. #. type: table
  7940. #: guix-git/doc/guix.texi:3574
  7941. msgid "For each package, print the following items separated by tabs: its name, its version string, the parts of the package (@pxref{Packages with Multiple Outputs}), and the source location of its definition."
  7942. msgstr ""
  7943. #. type: item
  7944. #: guix-git/doc/guix.texi:3575 guix-git/doc/guix.texi:4427
  7945. #, no-wrap
  7946. msgid "--list-generations[=@var{pattern}]"
  7947. msgstr ""
  7948. #. type: itemx
  7949. #: guix-git/doc/guix.texi:3576 guix-git/doc/guix.texi:4428
  7950. #, no-wrap
  7951. msgid "-l [@var{pattern}]"
  7952. msgstr ""
  7953. #. type: table
  7954. #: guix-git/doc/guix.texi:3582
  7955. msgid "Return a list of generations along with their creation dates; for each generation, show the installed packages, with the most recently installed packages shown last. Note that the zeroth generation is never shown."
  7956. msgstr ""
  7957. #. type: table
  7958. #: guix-git/doc/guix.texi:3587
  7959. msgid "For each installed package, print the following items, separated by tabs: the name of a package, its version string, the part of the package that is installed (@pxref{Packages with Multiple Outputs}), and the location of this package in the store."
  7960. msgstr ""
  7961. #. type: table
  7962. #: guix-git/doc/guix.texi:3590
  7963. msgid "When @var{pattern} is used, the command returns only matching generations. Valid patterns include:"
  7964. msgstr ""
  7965. #. type: item
  7966. #: guix-git/doc/guix.texi:3592
  7967. #, no-wrap
  7968. msgid "@emph{Integers and comma-separated integers}. Both patterns denote"
  7969. msgstr ""
  7970. #. type: itemize
  7971. #: guix-git/doc/guix.texi:3595
  7972. msgid "generation numbers. For instance, @option{--list-generations=1} returns the first one."
  7973. msgstr ""
  7974. #. type: itemize
  7975. #: guix-git/doc/guix.texi:3598
  7976. msgid "And @option{--list-generations=1,8,2} outputs three generations in the specified order. Neither spaces nor trailing commas are allowed."
  7977. msgstr ""
  7978. #. type: item
  7979. #: guix-git/doc/guix.texi:3599
  7980. #, no-wrap
  7981. msgid "@emph{Ranges}. @option{--list-generations=2..9} prints the"
  7982. msgstr ""
  7983. #. type: itemize
  7984. #: guix-git/doc/guix.texi:3602
  7985. msgid "specified generations and everything in between. Note that the start of a range must be smaller than its end."
  7986. msgstr ""
  7987. #. type: itemize
  7988. #: guix-git/doc/guix.texi:3606
  7989. msgid "It is also possible to omit the endpoint. For example, @option{--list-generations=2..}, returns all generations starting from the second one."
  7990. msgstr ""
  7991. #. type: item
  7992. #: guix-git/doc/guix.texi:3607
  7993. #, no-wrap
  7994. msgid "@emph{Durations}. You can also get the last @emph{N}@tie{}days, weeks,"
  7995. msgstr ""
  7996. #. type: itemize
  7997. #: guix-git/doc/guix.texi:3611
  7998. msgid "or months by passing an integer along with the first letter of the duration. For example, @option{--list-generations=20d} lists generations that are up to 20 days old."
  7999. msgstr ""
  8000. #. type: item
  8001. #: guix-git/doc/guix.texi:3613 guix-git/doc/guix.texi:4452
  8002. #, no-wrap
  8003. msgid "--delete-generations[=@var{pattern}]"
  8004. msgstr ""
  8005. #. type: itemx
  8006. #: guix-git/doc/guix.texi:3614 guix-git/doc/guix.texi:4453
  8007. #, no-wrap
  8008. msgid "-d [@var{pattern}]"
  8009. msgstr ""
  8010. #. type: table
  8011. #: guix-git/doc/guix.texi:3617 guix-git/doc/guix.texi:4456
  8012. msgid "When @var{pattern} is omitted, delete all generations except the current one."
  8013. msgstr ""
  8014. #. type: table
  8015. #: guix-git/doc/guix.texi:3623 guix-git/doc/guix.texi:4462
  8016. msgid "This command accepts the same patterns as @option{--list-generations}. When @var{pattern} is specified, delete the matching generations. When @var{pattern} specifies a duration, generations @emph{older} than the specified duration match. For instance, @option{--delete-generations=1m} deletes generations that are more than one month old."
  8017. msgstr ""
  8018. #. type: table
  8019. #: guix-git/doc/guix.texi:3626
  8020. msgid "If the current generation matches, it is @emph{not} deleted. Also, the zeroth generation is never deleted."
  8021. msgstr ""
  8022. #. type: table
  8023. #: guix-git/doc/guix.texi:3629 guix-git/doc/guix.texi:4467
  8024. msgid "Note that deleting generations prevents rolling back to them. Consequently, this command must be used with care."
  8025. msgstr ""
  8026. #. type: cindex
  8027. #: guix-git/doc/guix.texi:3630
  8028. #, no-wrap
  8029. msgid "manifest, exporting"
  8030. msgstr ""
  8031. #. type: anchor{#1}
  8032. #: guix-git/doc/guix.texi:3632
  8033. msgid "export-manifest"
  8034. msgstr ""
  8035. #. type: item
  8036. #: guix-git/doc/guix.texi:3632
  8037. #, no-wrap
  8038. msgid "--export-manifest"
  8039. msgstr ""
  8040. #. type: table
  8041. #: guix-git/doc/guix.texi:3635
  8042. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to the chosen profile(s)."
  8043. msgstr ""
  8044. #. type: table
  8045. #: guix-git/doc/guix.texi:3639
  8046. msgid "This option is meant to help you migrate from the ``imperative'' operating mode---running @command{guix install}, @command{guix upgrade}, etc.---to the declarative mode that @option{--manifest} offers."
  8047. msgstr ""
  8048. #. type: table
  8049. #: guix-git/doc/guix.texi:3644
  8050. msgid "Be aware that the resulting manifest @emph{approximates} what your profile actually contains; for instance, depending on how your profile was created, it can refer to packages or package versions that are not exactly what you specified."
  8051. msgstr ""
  8052. #. type: table
  8053. #: guix-git/doc/guix.texi:3649
  8054. msgid "Keep in mind that a manifest is purely symbolic: it only contains package names and possibly versions, and their meaning varies over time. If you wish to ``pin'' channels to the revisions that were used to build the profile(s), see @option{--export-channels} below."
  8055. msgstr ""
  8056. #. type: cindex
  8057. #: guix-git/doc/guix.texi:3650
  8058. #, fuzzy, no-wrap
  8059. msgid "pinning, channel revisions of a profile"
  8060. msgstr "和其它版本的Guix交互。"
  8061. #. type: item
  8062. #: guix-git/doc/guix.texi:3651
  8063. #, no-wrap
  8064. msgid "--export-channels"
  8065. msgstr ""
  8066. #. type: table
  8067. #: guix-git/doc/guix.texi:3655
  8068. msgid "Write to standard output the list of channels used by the chosen profile(s), in a format suitable for @command{guix pull --channels} or @command{guix time-machine --channels} (@pxref{Channels})."
  8069. msgstr ""
  8070. #. type: table
  8071. #: guix-git/doc/guix.texi:3659
  8072. msgid "Together with @option{--export-manifest}, this option provides information allowing you to replicate the current profile (@pxref{Replicating Guix})."
  8073. msgstr ""
  8074. #. type: table
  8075. #: guix-git/doc/guix.texi:3667
  8076. msgid "However, note that the output of this command @emph{approximates} what was actually used to build this profile. In particular, a single profile might have been built from several different revisions of the same channel. In that case, @option{--export-manifest} chooses the last one and writes the list of other revisions in a comment. If you really need to pick packages from different channel revisions, you can use inferiors in your manifest to do so (@pxref{Inferiors})."
  8077. msgstr ""
  8078. #. type: table
  8079. #: guix-git/doc/guix.texi:3672
  8080. msgid "Together with @option{--export-manifest}, this is a good starting point if you are willing to migrate from the ``imperative'' model to the fully declarative model consisting of a manifest file along with a channels file pinning the exact channel revision(s) you want."
  8081. msgstr ""
  8082. #. type: Plain text
  8083. #: guix-git/doc/guix.texi:3679
  8084. msgid "Finally, since @command{guix package} may actually start build processes, it supports all the common build options (@pxref{Common Build Options}). It also supports package transformation options, such as @option{--with-source}, and preserves them across upgrades (@pxref{Package Transformation Options})."
  8085. msgstr ""
  8086. #. type: cindex
  8087. #: guix-git/doc/guix.texi:3684
  8088. #, no-wrap
  8089. msgid "pre-built binaries"
  8090. msgstr ""
  8091. #. type: Plain text
  8092. #: guix-git/doc/guix.texi:3690
  8093. msgid "Guix supports transparent source/binary deployment, which means that it can either build things locally, or download pre-built items from a server, or both. We call these pre-built items @dfn{substitutes}---they are substitutes for local build results. In many cases, downloading a substitute is much faster than building things locally."
  8094. msgstr ""
  8095. #. type: Plain text
  8096. #: guix-git/doc/guix.texi:3695
  8097. msgid "Substitutes can be anything resulting from a derivation build (@pxref{Derivations}). Of course, in the common case, they are pre-built package binaries, but source tarballs, for instance, which also result from derivation builds, can be available as substitutes."
  8098. msgstr ""
  8099. #. type: cindex
  8100. #: guix-git/doc/guix.texi:3709
  8101. #, no-wrap
  8102. msgid "build farm"
  8103. msgstr ""
  8104. #. type: Plain text
  8105. #: guix-git/doc/guix.texi:3720
  8106. msgid "@code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} are both front-ends to official build farms that build packages from Guix continuously for some architectures, and make them available as substitutes. These are the default source of substitutes; which can be overridden by passing the @option{--substitute-urls} option either to @command{guix-daemon} (@pxref{daemon-substitute-urls,, @code{guix-daemon --substitute-urls}}) or to client tools such as @command{guix package} (@pxref{client-substitute-urls,, client @option{--substitute-urls} option})."
  8107. msgstr ""
  8108. #. type: Plain text
  8109. #: guix-git/doc/guix.texi:3726
  8110. msgid "Substitute URLs can be either HTTP or HTTPS. HTTPS is recommended because communications are encrypted; conversely, using HTTP makes all communications visible to an eavesdropper, who could use the information gathered to determine, for instance, whether your system has unpatched security vulnerabilities."
  8111. msgstr ""
  8112. #. type: Plain text
  8113. #: guix-git/doc/guix.texi:3735
  8114. msgid "Substitutes from the official build farms are enabled by default when using Guix System (@pxref{GNU Distribution}). However, they are disabled by default when using Guix on a foreign distribution, unless you have explicitly enabled them via one of the recommended installation steps (@pxref{Installation}). The following paragraphs describe how to enable or disable substitutes for the official build farm; the same procedure can also be used to enable substitutes for any other substitute server."
  8115. msgstr ""
  8116. #. type: cindex
  8117. #: guix-git/doc/guix.texi:3739
  8118. #, no-wrap
  8119. msgid "security"
  8120. msgstr ""
  8121. #. type: cindex
  8122. #: guix-git/doc/guix.texi:3741
  8123. #, no-wrap
  8124. msgid "access control list (ACL), for substitutes"
  8125. msgstr ""
  8126. #. type: cindex
  8127. #: guix-git/doc/guix.texi:3742
  8128. #, no-wrap
  8129. msgid "ACL (access control list), for substitutes"
  8130. msgstr ""
  8131. #. type: Plain text
  8132. #: guix-git/doc/guix.texi:3748
  8133. msgid "To allow Guix to download substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror, you must add the relevant public key to the access control list (ACL) of archive imports, using the @command{guix archive} command (@pxref{Invoking guix archive}). Doing so implies that you trust the substitute server to not be compromised and to serve genuine substitutes."
  8134. msgstr ""
  8135. #. type: quotation
  8136. #: guix-git/doc/guix.texi:3753
  8137. msgid "If you are using Guix System, you can skip this section: Guix System authorizes substitutes from @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} by default."
  8138. msgstr ""
  8139. #. type: Plain text
  8140. #: guix-git/doc/guix.texi:3761
  8141. msgid "The public keys for each of the project maintained substitute servers are installed along with Guix, in @code{@var{prefix}/share/guix/}, where @var{prefix} is the installation prefix of Guix. If you installed Guix from source, make sure you checked the GPG signature of @file{guix-@value{VERSION}.tar.gz}, which contains this public key file. Then, you can run something like this:"
  8142. msgstr ""
  8143. #. type: example
  8144. #: guix-git/doc/guix.texi:3765
  8145. #, no-wrap
  8146. msgid ""
  8147. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8148. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8149. msgstr ""
  8150. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8151. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8152. #. type: Plain text
  8153. #: guix-git/doc/guix.texi:3769
  8154. msgid "Once this is in place, the output of a command like @code{guix build} should change from something like:"
  8155. msgstr ""
  8156. #. type: example
  8157. #: guix-git/doc/guix.texi:3778
  8158. #, no-wrap
  8159. msgid ""
  8160. "$ guix build emacs --dry-run\n"
  8161. "The following derivations would be built:\n"
  8162. " /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv\n"
  8163. " /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv\n"
  8164. " /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv\n"
  8165. " /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv\n"
  8166. "@dots{}\n"
  8167. msgstr ""
  8168. #. type: Plain text
  8169. #: guix-git/doc/guix.texi:3782
  8170. msgid "to something like:"
  8171. msgstr ""
  8172. #. type: example
  8173. #: guix-git/doc/guix.texi:3791
  8174. #, no-wrap
  8175. msgid ""
  8176. "$ guix build emacs --dry-run\n"
  8177. "112.3 MB would be downloaded:\n"
  8178. " /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3\n"
  8179. " /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d\n"
  8180. " /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16\n"
  8181. " /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7\n"
  8182. "@dots{}\n"
  8183. msgstr ""
  8184. #. type: Plain text
  8185. #: guix-git/doc/guix.texi:3798
  8186. msgid "The text changed from ``The following derivations would be built'' to ``112.3 MB would be downloaded''. This indicates that substitutes from the configured substitute servers are usable and will be downloaded, when possible, for future builds."
  8187. msgstr ""
  8188. #. type: cindex
  8189. #: guix-git/doc/guix.texi:3799
  8190. #, no-wrap
  8191. msgid "substitutes, how to disable"
  8192. msgstr ""
  8193. #. type: Plain text
  8194. #: guix-git/doc/guix.texi:3805
  8195. msgid "The substitute mechanism can be disabled globally by running @code{guix-daemon} with @option{--no-substitutes} (@pxref{Invoking guix-daemon}). It can also be disabled temporarily by passing the @option{--no-substitutes} option to @command{guix package}, @command{guix build}, and other command-line tools."
  8196. msgstr ""
  8197. #. type: cindex
  8198. #: guix-git/doc/guix.texi:3809
  8199. #, fuzzy, no-wrap
  8200. msgid "substitute servers, adding more"
  8201. msgstr "授权substitute服务器。"
  8202. #. type: Plain text
  8203. #: guix-git/doc/guix.texi:3816
  8204. msgid "Guix can look up and fetch substitutes from several servers. This is useful when you are using packages from additional channels for which the official server does not have substitutes but another server provides them. Another situation where this is useful is when you would prefer to download from your organization's substitute server, resorting to the official server only as a fallback or dismissing it altogether."
  8205. msgstr ""
  8206. #. type: Plain text
  8207. #: guix-git/doc/guix.texi:3821
  8208. msgid "You can give Guix a list of substitute server URLs and it will check them in the specified order. You also need to explicitly authorize the public keys of substitute servers to instruct Guix to accept the substitutes they sign."
  8209. msgstr ""
  8210. #. type: Plain text
  8211. #: guix-git/doc/guix.texi:3828
  8212. msgid "On Guix System, this is achieved by modifying the configuration of the @code{guix} service. Since the @code{guix} service is part of the default lists of services, @code{%base-services} and @code{%desktop-services}, you can use @code{modify-services} to change its configuration and add the URLs and substitute keys that you want (@pxref{Service Reference, @code{modify-services}})."
  8213. msgstr ""
  8214. #. type: Plain text
  8215. #: guix-git/doc/guix.texi:3834
  8216. msgid "As an example, suppose you want to fetch substitutes from @code{guix.example.org} and to authorize the signing key of that server, in addition to the default @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}}. The resulting operating system configuration will look something like:"
  8217. msgstr ""
  8218. #. type: lisp
  8219. #: guix-git/doc/guix.texi:3851
  8220. #, no-wrap
  8221. msgid ""
  8222. "(operating-system\n"
  8223. " ;; @dots{}\n"
  8224. " (services\n"
  8225. " ;; Assume we're starting from '%desktop-services'. Replace it\n"
  8226. " ;; with the list of services you're actually using.\n"
  8227. " (modify-services %desktop-services\n"
  8228. " (guix-service-type config =>\n"
  8229. " (guix-configuration\n"
  8230. " (inherit config)\n"
  8231. " (substitute-urls\n"
  8232. " (append (list \"https://guix.example.org\")\n"
  8233. " %default-substitute-urls))\n"
  8234. " (authorized-keys\n"
  8235. " (append (list (local-file \"./key.pub\"))\n"
  8236. " %default-authorized-guix-keys)))))))\n"
  8237. msgstr ""
  8238. #. type: Plain text
  8239. #: guix-git/doc/guix.texi:3858
  8240. msgid "This assumes that the file @file{key.pub} contains the signing key of @code{guix.example.org}. With this change in place in your operating system configuration file (say @file{/etc/config.scm}), you can reconfigure and restart the @code{guix-daemon} service or reboot so the changes take effect:"
  8241. msgstr ""
  8242. #. type: example
  8243. #: guix-git/doc/guix.texi:3862
  8244. #, no-wrap
  8245. msgid ""
  8246. "$ sudo guix system reconfigure /etc/config.scm\n"
  8247. "$ sudo herd restart guix-daemon\n"
  8248. msgstr ""
  8249. #. type: Plain text
  8250. #: guix-git/doc/guix.texi:3866
  8251. msgid "If you're running Guix on a ``foreign distro'', you would instead take the following steps to get substitutes from additional servers:"
  8252. msgstr ""
  8253. #. type: enumerate
  8254. #: guix-git/doc/guix.texi:3875
  8255. msgid "Edit the service configuration file for @code{guix-daemon}; when using systemd, this is normally @file{/etc/systemd/system/guix-daemon.service}. Add the @option{--substitute-urls} option on the @command{guix-daemon} command line and list the URLs of interest (@pxref{daemon-substitute-urls, @code{guix-daemon --substitute-urls}}):"
  8256. msgstr ""
  8257. #. type: example
  8258. #: guix-git/doc/guix.texi:3878
  8259. #, no-wrap
  8260. msgid "@dots{} --substitute-urls='https://guix.example.org @value{SUBSTITUTE-URLS}'\n"
  8261. msgstr ""
  8262. #. type: enumerate
  8263. #: guix-git/doc/guix.texi:3882
  8264. msgid "Restart the daemon. For systemd, it goes like this:"
  8265. msgstr ""
  8266. #. type: example
  8267. #: guix-git/doc/guix.texi:3886
  8268. #, no-wrap
  8269. msgid ""
  8270. "systemctl daemon-reload\n"
  8271. "systemctl restart guix-daemon.service\n"
  8272. msgstr ""
  8273. #. type: enumerate
  8274. #: guix-git/doc/guix.texi:3890
  8275. msgid "Authorize the key of the new server (@pxref{Invoking guix archive}):"
  8276. msgstr ""
  8277. #. type: example
  8278. #: guix-git/doc/guix.texi:3893
  8279. #, fuzzy, no-wrap
  8280. msgid "guix archive --authorize < key.pub\n"
  8281. msgstr "# guix archive --authorize < master-public-key.txt\n"
  8282. #. type: enumerate
  8283. #: guix-git/doc/guix.texi:3897
  8284. msgid "Again this assumes @file{key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  8285. msgstr ""
  8286. #. type: Plain text
  8287. #: guix-git/doc/guix.texi:3906
  8288. msgid "Now you're all set! Substitutes will be preferably taken from @code{https://guix.example.org}, using @code{@value{SUBSTITUTE-SERVER-1}} then @code{@value{SUBSTITUTE-SERVER-2}} as fallback options. Of course you can list as many substitute servers as you like, with the caveat that substitute lookup can be slowed down if too many servers need to be contacted."
  8289. msgstr ""
  8290. #. type: Plain text
  8291. #: guix-git/doc/guix.texi:3910
  8292. msgid "Note that there are also situations where one may want to add the URL of a substitute server @emph{without} authorizing its key. @xref{Substitute Authentication}, to understand this fine point."
  8293. msgstr ""
  8294. #. type: cindex
  8295. #: guix-git/doc/guix.texi:3914
  8296. #, no-wrap
  8297. msgid "digital signatures"
  8298. msgstr ""
  8299. #. type: Plain text
  8300. #: guix-git/doc/guix.texi:3918
  8301. msgid "Guix detects and raises an error when attempting to use a substitute that has been tampered with. Likewise, it ignores substitutes that are not signed, or that are not signed by one of the keys listed in the ACL."
  8302. msgstr ""
  8303. #. type: Plain text
  8304. #: guix-git/doc/guix.texi:3924
  8305. msgid "There is one exception though: if an unauthorized server provides substitutes that are @emph{bit-for-bit identical} to those provided by an authorized server, then the unauthorized server becomes eligible for downloads. For example, assume we have chosen two substitute servers with this option:"
  8306. msgstr ""
  8307. #. type: example
  8308. #: guix-git/doc/guix.texi:3927
  8309. #, no-wrap
  8310. msgid "--substitute-urls=\"https://a.example.org https://b.example.org\"\n"
  8311. msgstr ""
  8312. #. type: Plain text
  8313. #: guix-git/doc/guix.texi:3938
  8314. msgid "If the ACL contains only the key for @samp{b.example.org}, and if @samp{a.example.org} happens to serve the @emph{exact same} substitutes, then Guix will download substitutes from @samp{a.example.org} because it comes first in the list and can be considered a mirror of @samp{b.example.org}. In practice, independent build machines usually produce the same binaries, thanks to bit-reproducible builds (see below)."
  8315. msgstr ""
  8316. #. type: Plain text
  8317. #: guix-git/doc/guix.texi:3945
  8318. msgid "When using HTTPS, the server's X.509 certificate is @emph{not} validated (in other words, the server is not authenticated), contrary to what HTTPS clients such as Web browsers usually do. This is because Guix authenticates substitute information itself, as explained above, which is what we care about (whereas X.509 certificates are about authenticating bindings between domain names and public keys)."
  8319. msgstr ""
  8320. #. type: Plain text
  8321. #: guix-git/doc/guix.texi:3957
  8322. msgid "Substitutes are downloaded over HTTP or HTTPS@. The @env{http_proxy} and @env{https_proxy} environment variables can be set in the environment of @command{guix-daemon} and are honored for downloads of substitutes. Note that the value of those environment variables in the environment where @command{guix build}, @command{guix package}, and other client commands are run has @emph{absolutely no effect}."
  8323. msgstr ""
  8324. #. type: Plain text
  8325. #: guix-git/doc/guix.texi:3966
  8326. msgid "Even when a substitute for a derivation is available, sometimes the substitution attempt will fail. This can happen for a variety of reasons: the substitute server might be offline, the substitute may recently have been deleted, the connection might have been interrupted, etc."
  8327. msgstr ""
  8328. #. type: Plain text
  8329. #: guix-git/doc/guix.texi:3980
  8330. msgid "When substitutes are enabled and a substitute for a derivation is available, but the substitution attempt fails, Guix will attempt to build the derivation locally depending on whether or not @option{--fallback} was given (@pxref{fallback-option,, common build option @option{--fallback}}). Specifically, if @option{--fallback} was omitted, then no local build will be performed, and the derivation is considered to have failed. However, if @option{--fallback} was given, then Guix will attempt to build the derivation locally, and the success or failure of the derivation depends on the success or failure of the local build. Note that when substitutes are disabled or no substitute is available for the derivation in question, a local build will @emph{always} be performed, regardless of whether or not @option{--fallback} was given."
  8331. msgstr ""
  8332. #. type: Plain text
  8333. #: guix-git/doc/guix.texi:3985
  8334. msgid "To get an idea of how many substitutes are available right now, you can try running the @command{guix weather} command (@pxref{Invoking guix weather}). This command provides statistics on the substitutes provided by a server."
  8335. msgstr ""
  8336. #. type: cindex
  8337. #: guix-git/doc/guix.texi:3989
  8338. #, no-wrap
  8339. msgid "trust, of pre-built binaries"
  8340. msgstr ""
  8341. #. type: Plain text
  8342. #: guix-git/doc/guix.texi:3999
  8343. msgid "Today, each individual's control over their own computing is at the mercy of institutions, corporations, and groups with enough power and determination to subvert the computing infrastructure and exploit its weaknesses. While using substitutes can be convenient, we encourage users to also build on their own, or even run their own build farm, such that the project run substitute servers are less of an interesting target. One way to help is by publishing the software you build using @command{guix publish} so that others have one more choice of server to download substitutes from (@pxref{Invoking guix publish})."
  8344. msgstr ""
  8345. #. type: Plain text
  8346. #: guix-git/doc/guix.texi:4011
  8347. msgid "Guix has the foundations to maximize build reproducibility (@pxref{Features}). In most cases, independent builds of a given package or derivation should yield bit-identical results. Thus, through a diverse set of independent package builds, we can strengthen the integrity of our systems. The @command{guix challenge} command aims to help users assess substitute servers, and to assist developers in finding out about non-deterministic package builds (@pxref{Invoking guix challenge}). Similarly, the @option{--check} option of @command{guix build} allows users to check whether previously-installed substitutes are genuine by rebuilding them locally (@pxref{build-check, @command{guix build --check}})."
  8348. msgstr ""
  8349. #. type: Plain text
  8350. #: guix-git/doc/guix.texi:4015
  8351. msgid "In the future, we want Guix to have support to publish and retrieve binaries to/from other users, in a peer-to-peer fashion. If you would like to discuss this project, join us on @email{guix-devel@@gnu.org}."
  8352. msgstr ""
  8353. #. type: cindex
  8354. #: guix-git/doc/guix.texi:4019
  8355. #, no-wrap
  8356. msgid "multiple-output packages"
  8357. msgstr ""
  8358. #. type: cindex
  8359. #: guix-git/doc/guix.texi:4020
  8360. #, no-wrap
  8361. msgid "package outputs"
  8362. msgstr ""
  8363. #. type: cindex
  8364. #: guix-git/doc/guix.texi:4021
  8365. #, no-wrap
  8366. msgid "outputs"
  8367. msgstr ""
  8368. #. type: Plain text
  8369. #: guix-git/doc/guix.texi:4031
  8370. msgid "Often, packages defined in Guix have a single @dfn{output}---i.e., the source package leads to exactly one directory in the store. When running @command{guix install glibc}, one installs the default output of the GNU libc package; the default output is called @code{out}, but its name can be omitted as shown in this command. In this particular case, the default output of @code{glibc} contains all the C header files, shared libraries, static libraries, Info documentation, and other supporting files."
  8371. msgstr ""
  8372. #. type: Plain text
  8373. #: guix-git/doc/guix.texi:4039
  8374. msgid "Sometimes it is more appropriate to separate the various types of files produced from a single source package into separate outputs. For instance, the GLib C library (used by GTK+ and related packages) installs more than 20 MiB of reference documentation as HTML pages. To save space for users who do not need it, the documentation goes to a separate output, called @code{doc}. To install the main GLib output, which contains everything but the documentation, one would run:"
  8375. msgstr ""
  8376. #. type: example
  8377. #: guix-git/doc/guix.texi:4042
  8378. #, no-wrap
  8379. msgid "guix install glib\n"
  8380. msgstr "guix install glib\n"
  8381. #. type: item
  8382. #: guix-git/doc/guix.texi:4044 guix-git/doc/guix.texi:34950
  8383. #: guix-git/doc/guix.texi:35007
  8384. #, no-wrap
  8385. msgid "documentation"
  8386. msgstr ""
  8387. #. type: Plain text
  8388. #: guix-git/doc/guix.texi:4046
  8389. msgid "The command to install its documentation is:"
  8390. msgstr ""
  8391. #. type: example
  8392. #: guix-git/doc/guix.texi:4049
  8393. #, no-wrap
  8394. msgid "guix install glib:doc\n"
  8395. msgstr ""
  8396. #. type: Plain text
  8397. #: guix-git/doc/guix.texi:4060
  8398. msgid "Some packages install programs with different ``dependency footprints''. For instance, the WordNet package installs both command-line tools and graphical user interfaces (GUIs). The former depend solely on the C library, whereas the latter depend on Tcl/Tk and the underlying X libraries. In this case, we leave the command-line tools in the default output, whereas the GUIs are in a separate output. This allows users who do not need the GUIs to save space. The @command{guix size} command can help find out about such situations (@pxref{Invoking guix size}). @command{guix graph} can also be helpful (@pxref{Invoking guix graph})."
  8399. msgstr ""
  8400. #. type: Plain text
  8401. #: guix-git/doc/guix.texi:4068
  8402. msgid "There are several such multiple-output packages in the GNU distribution. Other conventional output names include @code{lib} for libraries and possibly header files, @code{bin} for stand-alone programs, and @code{debug} for debugging information (@pxref{Installing Debugging Files}). The outputs of a packages are listed in the third column of the output of @command{guix package --list-available} (@pxref{Invoking guix package})."
  8403. msgstr ""
  8404. #. type: section
  8405. #: guix-git/doc/guix.texi:4071
  8406. #, no-wrap
  8407. msgid "Invoking @command{guix gc}"
  8408. msgstr ""
  8409. #. type: cindex
  8410. #: guix-git/doc/guix.texi:4073
  8411. #, no-wrap
  8412. msgid "garbage collector"
  8413. msgstr ""
  8414. #. type: cindex
  8415. #: guix-git/doc/guix.texi:4074
  8416. #, no-wrap
  8417. msgid "disk space"
  8418. msgstr ""
  8419. #. type: Plain text
  8420. #: guix-git/doc/guix.texi:4080
  8421. msgid "Packages that are installed, but not used, may be @dfn{garbage-collected}. The @command{guix gc} command allows users to explicitly run the garbage collector to reclaim space from the @file{/gnu/store} directory. It is the @emph{only} way to remove files from @file{/gnu/store}---removing files or directories manually may break it beyond repair!"
  8422. msgstr ""
  8423. #. type: Plain text
  8424. #: guix-git/doc/guix.texi:4091
  8425. msgid "The garbage collector has a set of known @dfn{roots}: any file under @file{/gnu/store} reachable from a root is considered @dfn{live} and cannot be deleted; any other file is considered @dfn{dead} and may be deleted. The set of garbage collector roots (``GC roots'' for short) includes default user profiles; by default, the symlinks under @file{/var/guix/gcroots} represent these GC roots. New GC roots can be added with @command{guix build --root}, for example (@pxref{Invoking guix build}). The @command{guix gc --list-roots} command lists them."
  8426. msgstr ""
  8427. #. type: Plain text
  8428. #: guix-git/doc/guix.texi:4097
  8429. msgid "Prior to running @code{guix gc --collect-garbage} to make space, it is often useful to remove old generations from user profiles; that way, old package builds referenced by those generations can be reclaimed. This is achieved by running @code{guix package --delete-generations} (@pxref{Invoking guix package})."
  8430. msgstr ""
  8431. #. type: Plain text
  8432. #: guix-git/doc/guix.texi:4101
  8433. msgid "Our recommendation is to run a garbage collection periodically, or when you are short on disk space. For instance, to guarantee that at least 5@tie{}GB are available on your disk, simply run:"
  8434. msgstr ""
  8435. #. type: example
  8436. #: guix-git/doc/guix.texi:4104
  8437. #, no-wrap
  8438. msgid "guix gc -F 5G\n"
  8439. msgstr ""
  8440. #. type: Plain text
  8441. #: guix-git/doc/guix.texi:4113
  8442. msgid "It is perfectly safe to run as a non-interactive periodic job (@pxref{Scheduled Job Execution}, for how to set up such a job). Running @command{guix gc} with no arguments will collect as much garbage as it can, but that is often inconvenient: you may find yourself having to rebuild or re-download software that is ``dead'' from the GC viewpoint but that is necessary to build other pieces of software---e.g., the compiler tool chain."
  8443. msgstr ""
  8444. #. type: Plain text
  8445. #: guix-git/doc/guix.texi:4119
  8446. msgid "The @command{guix gc} command has three modes of operation: it can be used to garbage-collect any dead files (the default), to delete specific files (the @option{--delete} option), to print garbage-collector information, or for more advanced queries. The garbage collection options are as follows:"
  8447. msgstr ""
  8448. #. type: item
  8449. #: guix-git/doc/guix.texi:4121
  8450. #, no-wrap
  8451. msgid "--collect-garbage[=@var{min}]"
  8452. msgstr ""
  8453. #. type: itemx
  8454. #: guix-git/doc/guix.texi:4122
  8455. #, no-wrap
  8456. msgid "-C [@var{min}]"
  8457. msgstr ""
  8458. #. type: table
  8459. #: guix-git/doc/guix.texi:4126
  8460. msgid "Collect garbage---i.e., unreachable @file{/gnu/store} files and sub-directories. This is the default operation when no option is specified."
  8461. msgstr ""
  8462. #. type: table
  8463. #: guix-git/doc/guix.texi:4131
  8464. msgid "When @var{min} is given, stop once @var{min} bytes have been collected. @var{min} may be a number of bytes, or it may include a unit as a suffix, such as @code{MiB} for mebibytes and @code{GB} for gigabytes (@pxref{Block size, size specifications,, coreutils, GNU Coreutils})."
  8465. msgstr ""
  8466. #. type: table
  8467. #: guix-git/doc/guix.texi:4133
  8468. msgid "When @var{min} is omitted, collect all the garbage."
  8469. msgstr ""
  8470. #. type: item
  8471. #: guix-git/doc/guix.texi:4134
  8472. #, no-wrap
  8473. msgid "--free-space=@var{free}"
  8474. msgstr ""
  8475. #. type: itemx
  8476. #: guix-git/doc/guix.texi:4135
  8477. #, no-wrap
  8478. msgid "-F @var{free}"
  8479. msgstr ""
  8480. #. type: table
  8481. #: guix-git/doc/guix.texi:4139
  8482. msgid "Collect garbage until @var{free} space is available under @file{/gnu/store}, if possible; @var{free} denotes storage space, such as @code{500MiB}, as described above."
  8483. msgstr ""
  8484. #. type: table
  8485. #: guix-git/doc/guix.texi:4142
  8486. msgid "When @var{free} or more is already available in @file{/gnu/store}, do nothing and exit immediately."
  8487. msgstr ""
  8488. #. type: item
  8489. #: guix-git/doc/guix.texi:4143
  8490. #, no-wrap
  8491. msgid "--delete-generations[=@var{duration}]"
  8492. msgstr ""
  8493. #. type: itemx
  8494. #: guix-git/doc/guix.texi:4144
  8495. #, no-wrap
  8496. msgid "-d [@var{duration}]"
  8497. msgstr ""
  8498. #. type: table
  8499. #: guix-git/doc/guix.texi:4148
  8500. msgid "Before starting the garbage collection process, delete all the generations older than @var{duration}, for all the user profiles; when run as root, this applies to all the profiles @emph{of all the users}."
  8501. msgstr ""
  8502. #. type: table
  8503. #: guix-git/doc/guix.texi:4152
  8504. msgid "For example, this command deletes all the generations of all your profiles that are older than 2 months (except generations that are current), and then proceeds to free space until at least 10 GiB are available:"
  8505. msgstr ""
  8506. #. type: example
  8507. #: guix-git/doc/guix.texi:4155
  8508. #, no-wrap
  8509. msgid "guix gc -d 2m -F 10G\n"
  8510. msgstr ""
  8511. #. type: item
  8512. #: guix-git/doc/guix.texi:4157
  8513. #, no-wrap
  8514. msgid "--delete"
  8515. msgstr ""
  8516. #. type: itemx
  8517. #: guix-git/doc/guix.texi:4158
  8518. #, no-wrap
  8519. msgid "-D"
  8520. msgstr ""
  8521. #. type: table
  8522. #: guix-git/doc/guix.texi:4162
  8523. msgid "Attempt to delete all the store files and directories specified as arguments. This fails if some of the files are not in the store, or if they are still live."
  8524. msgstr ""
  8525. #. type: item
  8526. #: guix-git/doc/guix.texi:4163
  8527. #, no-wrap
  8528. msgid "--list-failures"
  8529. msgstr ""
  8530. #. type: table
  8531. #: guix-git/doc/guix.texi:4165
  8532. msgid "List store items corresponding to cached build failures."
  8533. msgstr ""
  8534. #. type: table
  8535. #: guix-git/doc/guix.texi:4169
  8536. msgid "This prints nothing unless the daemon was started with @option{--cache-failures} (@pxref{Invoking guix-daemon, @option{--cache-failures}})."
  8537. msgstr ""
  8538. #. type: item
  8539. #: guix-git/doc/guix.texi:4170
  8540. #, no-wrap
  8541. msgid "--list-roots"
  8542. msgstr ""
  8543. #. type: table
  8544. #: guix-git/doc/guix.texi:4173
  8545. msgid "List the GC roots owned by the user; when run as root, list @emph{all} the GC roots."
  8546. msgstr ""
  8547. #. type: item
  8548. #: guix-git/doc/guix.texi:4174
  8549. #, no-wrap
  8550. msgid "--list-busy"
  8551. msgstr ""
  8552. #. type: table
  8553. #: guix-git/doc/guix.texi:4177
  8554. msgid "List store items in use by currently running processes. These store items are effectively considered GC roots: they cannot be deleted."
  8555. msgstr ""
  8556. #. type: item
  8557. #: guix-git/doc/guix.texi:4178
  8558. #, no-wrap
  8559. msgid "--clear-failures"
  8560. msgstr ""
  8561. #. type: table
  8562. #: guix-git/doc/guix.texi:4180
  8563. msgid "Remove the specified store items from the failed-build cache."
  8564. msgstr ""
  8565. #. type: table
  8566. #: guix-git/doc/guix.texi:4183
  8567. msgid "Again, this option only makes sense when the daemon is started with @option{--cache-failures}. Otherwise, it does nothing."
  8568. msgstr ""
  8569. #. type: item
  8570. #: guix-git/doc/guix.texi:4184
  8571. #, no-wrap
  8572. msgid "--list-dead"
  8573. msgstr ""
  8574. #. type: table
  8575. #: guix-git/doc/guix.texi:4187
  8576. msgid "Show the list of dead files and directories still present in the store---i.e., files and directories no longer reachable from any root."
  8577. msgstr ""
  8578. #. type: item
  8579. #: guix-git/doc/guix.texi:4188
  8580. #, no-wrap
  8581. msgid "--list-live"
  8582. msgstr ""
  8583. #. type: table
  8584. #: guix-git/doc/guix.texi:4190
  8585. msgid "Show the list of live store files and directories."
  8586. msgstr ""
  8587. #. type: Plain text
  8588. #: guix-git/doc/guix.texi:4194
  8589. msgid "In addition, the references among existing store files can be queried:"
  8590. msgstr ""
  8591. #. type: item
  8592. #: guix-git/doc/guix.texi:4197
  8593. #, no-wrap
  8594. msgid "--references"
  8595. msgstr ""
  8596. #. type: itemx
  8597. #: guix-git/doc/guix.texi:4198
  8598. #, no-wrap
  8599. msgid "--referrers"
  8600. msgstr ""
  8601. #. type: cindex
  8602. #: guix-git/doc/guix.texi:4199 guix-git/doc/guix.texi:12403
  8603. #, no-wrap
  8604. msgid "package dependencies"
  8605. msgstr ""
  8606. #. type: table
  8607. #: guix-git/doc/guix.texi:4202
  8608. msgid "List the references (respectively, the referrers) of store files given as arguments."
  8609. msgstr ""
  8610. #. type: item
  8611. #: guix-git/doc/guix.texi:4203
  8612. #, no-wrap
  8613. msgid "--requisites"
  8614. msgstr ""
  8615. #. type: itemx
  8616. #: guix-git/doc/guix.texi:4204 guix-git/doc/guix.texi:6080
  8617. #, no-wrap
  8618. msgid "-R"
  8619. msgstr ""
  8620. #. type: item
  8621. #: guix-git/doc/guix.texi:4205 guix-git/doc/guix.texi:12259
  8622. #: guix-git/doc/guix.texi:12287 guix-git/doc/guix.texi:12368
  8623. #, no-wrap
  8624. msgid "closure"
  8625. msgstr ""
  8626. #. type: table
  8627. #: guix-git/doc/guix.texi:4210
  8628. msgid "List the requisites of the store files passed as arguments. Requisites include the store files themselves, their references, and the references of these, recursively. In other words, the returned list is the @dfn{transitive closure} of the store files."
  8629. msgstr ""
  8630. #. type: table
  8631. #: guix-git/doc/guix.texi:4214
  8632. msgid "@xref{Invoking guix size}, for a tool to profile the size of the closure of an element. @xref{Invoking guix graph}, for a tool to visualize the graph of references."
  8633. msgstr ""
  8634. #. type: item
  8635. #: guix-git/doc/guix.texi:4215
  8636. #, no-wrap
  8637. msgid "--derivers"
  8638. msgstr ""
  8639. #. type: item
  8640. #: guix-git/doc/guix.texi:4216 guix-git/doc/guix.texi:6394
  8641. #: guix-git/doc/guix.texi:12122 guix-git/doc/guix.texi:12512
  8642. #, no-wrap
  8643. msgid "derivation"
  8644. msgstr ""
  8645. #. type: table
  8646. #: guix-git/doc/guix.texi:4219
  8647. msgid "Return the derivation(s) leading to the given store items (@pxref{Derivations})."
  8648. msgstr ""
  8649. #. type: table
  8650. #: guix-git/doc/guix.texi:4221
  8651. msgid "For example, this command:"
  8652. msgstr ""
  8653. #. type: example
  8654. #: guix-git/doc/guix.texi:4224
  8655. #, no-wrap
  8656. msgid "guix gc --derivers $(guix package -I ^emacs$ | cut -f4)\n"
  8657. msgstr ""
  8658. #. type: table
  8659. #: guix-git/doc/guix.texi:4229
  8660. msgid "returns the @file{.drv} file(s) leading to the @code{emacs} package installed in your profile."
  8661. msgstr ""
  8662. #. type: table
  8663. #: guix-git/doc/guix.texi:4233
  8664. msgid "Note that there may be zero matching @file{.drv} files, for instance because these files have been garbage-collected. There can also be more than one matching @file{.drv} due to fixed-output derivations."
  8665. msgstr ""
  8666. #. type: Plain text
  8667. #: guix-git/doc/guix.texi:4237
  8668. msgid "Lastly, the following options allow you to check the integrity of the store and to control disk usage."
  8669. msgstr ""
  8670. #. type: item
  8671. #: guix-git/doc/guix.texi:4240
  8672. #, no-wrap
  8673. msgid "--verify[=@var{options}]"
  8674. msgstr ""
  8675. #. type: cindex
  8676. #: guix-git/doc/guix.texi:4241
  8677. #, no-wrap
  8678. msgid "integrity, of the store"
  8679. msgstr ""
  8680. #. type: cindex
  8681. #: guix-git/doc/guix.texi:4242
  8682. #, no-wrap
  8683. msgid "integrity checking"
  8684. msgstr ""
  8685. #. type: table
  8686. #: guix-git/doc/guix.texi:4244
  8687. msgid "Verify the integrity of the store."
  8688. msgstr ""
  8689. #. type: table
  8690. #: guix-git/doc/guix.texi:4247
  8691. msgid "By default, make sure that all the store items marked as valid in the database of the daemon actually exist in @file{/gnu/store}."
  8692. msgstr ""
  8693. #. type: table
  8694. #: guix-git/doc/guix.texi:4250
  8695. msgid "When provided, @var{options} must be a comma-separated list containing one or more of @code{contents} and @code{repair}."
  8696. msgstr ""
  8697. #. type: table
  8698. #: guix-git/doc/guix.texi:4256
  8699. msgid "When passing @option{--verify=contents}, the daemon computes the content hash of each store item and compares it against its hash in the database. Hash mismatches are reported as data corruptions. Because it traverses @emph{all the files in the store}, this command can take a long time, especially on systems with a slow disk drive."
  8700. msgstr ""
  8701. #. type: cindex
  8702. #: guix-git/doc/guix.texi:4257
  8703. #, no-wrap
  8704. msgid "repairing the store"
  8705. msgstr ""
  8706. #. type: cindex
  8707. #: guix-git/doc/guix.texi:4258 guix-git/doc/guix.texi:10926
  8708. #, no-wrap
  8709. msgid "corruption, recovering from"
  8710. msgstr ""
  8711. #. type: table
  8712. #: guix-git/doc/guix.texi:4266
  8713. msgid "Using @option{--verify=repair} or @option{--verify=contents,repair} causes the daemon to try to repair corrupt store items by fetching substitutes for them (@pxref{Substitutes}). Because repairing is not atomic, and thus potentially dangerous, it is available only to the system administrator. A lightweight alternative, when you know exactly which items in the store are corrupt, is @command{guix build --repair} (@pxref{Invoking guix build})."
  8714. msgstr ""
  8715. #. type: item
  8716. #: guix-git/doc/guix.texi:4267
  8717. #, no-wrap
  8718. msgid "--optimize"
  8719. msgstr ""
  8720. #. type: table
  8721. #: guix-git/doc/guix.texi:4271
  8722. msgid "Optimize the store by hard-linking identical files---this is @dfn{deduplication}."
  8723. msgstr ""
  8724. #. type: table
  8725. #: guix-git/doc/guix.texi:4277
  8726. msgid "The daemon performs deduplication after each successful build or archive import, unless it was started with @option{--disable-deduplication} (@pxref{Invoking guix-daemon, @option{--disable-deduplication}}). Thus, this option is primarily useful when the daemon was running with @option{--disable-deduplication}."
  8727. msgstr ""
  8728. #. type: section
  8729. #: guix-git/doc/guix.texi:4281
  8730. #, no-wrap
  8731. msgid "Invoking @command{guix pull}"
  8732. msgstr ""
  8733. #. type: cindex
  8734. #: guix-git/doc/guix.texi:4283
  8735. #, no-wrap
  8736. msgid "upgrading Guix"
  8737. msgstr ""
  8738. #. type: cindex
  8739. #: guix-git/doc/guix.texi:4284
  8740. #, no-wrap
  8741. msgid "updating Guix"
  8742. msgstr ""
  8743. #. type: command{#1}
  8744. #: guix-git/doc/guix.texi:4285
  8745. #, no-wrap
  8746. msgid "guix pull"
  8747. msgstr ""
  8748. #. type: cindex
  8749. #: guix-git/doc/guix.texi:4286
  8750. #, no-wrap
  8751. msgid "pull"
  8752. msgstr ""
  8753. #. type: cindex
  8754. #: guix-git/doc/guix.texi:4287
  8755. #, fuzzy, no-wrap
  8756. msgid "security, @command{guix pull}"
  8757. msgstr "调用@command{guix build}"
  8758. #. type: cindex
  8759. #: guix-git/doc/guix.texi:4288
  8760. #, no-wrap
  8761. msgid "authenticity, of code obtained with @command{guix pull}"
  8762. msgstr ""
  8763. #. type: Plain text
  8764. #: guix-git/doc/guix.texi:4298
  8765. msgid "Packages are installed or upgraded to the latest version available in the distribution currently available on your local machine. To update that distribution, along with the Guix tools, you must run @command{guix pull}: the command downloads the latest Guix source code and package descriptions, and deploys it. Source code is downloaded from a @uref{https://git-scm.com, Git} repository, by default the official GNU@tie{}Guix repository, though this can be customized. @command{guix pull} ensures that the code it downloads is @emph{authentic} by verifying that commits are signed by Guix developers."
  8766. msgstr ""
  8767. #. type: Plain text
  8768. #: guix-git/doc/guix.texi:4301
  8769. msgid "Specifically, @command{guix pull} downloads code from the @dfn{channels} (@pxref{Channels}) specified by one of the followings, in this order:"
  8770. msgstr ""
  8771. #. type: enumerate
  8772. #: guix-git/doc/guix.texi:4305
  8773. msgid "the @option{--channels} option;"
  8774. msgstr ""
  8775. #. type: enumerate
  8776. #: guix-git/doc/guix.texi:4307
  8777. msgid "the user's @file{~/.config/guix/channels.scm} file;"
  8778. msgstr ""
  8779. #. type: enumerate
  8780. #: guix-git/doc/guix.texi:4309
  8781. msgid "the system-wide @file{/etc/guix/channels.scm} file;"
  8782. msgstr ""
  8783. #. type: enumerate
  8784. #: guix-git/doc/guix.texi:4312
  8785. msgid "the built-in default channels specified in the @code{%default-channels} variable."
  8786. msgstr ""
  8787. #. type: Plain text
  8788. #: guix-git/doc/guix.texi:4319
  8789. msgid "On completion, @command{guix package} will use packages and package versions from this just-retrieved copy of Guix. Not only that, but all the Guix commands and Scheme modules will also be taken from that latest version. New @command{guix} sub-commands added by the update also become available."
  8790. msgstr ""
  8791. #. type: Plain text
  8792. #: guix-git/doc/guix.texi:4325
  8793. msgid "Any user can update their Guix copy using @command{guix pull}, and the effect is limited to the user who ran @command{guix pull}. For instance, when user @code{root} runs @command{guix pull}, this has no effect on the version of Guix that user @code{alice} sees, and vice versa."
  8794. msgstr ""
  8795. #. type: Plain text
  8796. #: guix-git/doc/guix.texi:4331
  8797. msgid "The result of running @command{guix pull} is a @dfn{profile} available under @file{~/.config/guix/current} containing the latest Guix. Thus, make sure to add it to the beginning of your search path so that you use the latest version, and similarly for the Info manual (@pxref{Documentation}):"
  8798. msgstr ""
  8799. #. type: example
  8800. #: guix-git/doc/guix.texi:4335
  8801. #, no-wrap
  8802. msgid ""
  8803. "export PATH=\"$HOME/.config/guix/current/bin:$PATH\"\n"
  8804. "export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"\n"
  8805. msgstr ""
  8806. #. type: Plain text
  8807. #: guix-git/doc/guix.texi:4339
  8808. msgid "The @option{--list-generations} or @option{-l} option lists past generations produced by @command{guix pull}, along with details about their provenance:"
  8809. msgstr ""
  8810. #. type: example
  8811. #: guix-git/doc/guix.texi:4347
  8812. #, no-wrap
  8813. msgid ""
  8814. "$ guix pull -l\n"
  8815. "Generation 1\tJun 10 2018 00:18:18\n"
  8816. " guix 65956ad\n"
  8817. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8818. " branch: origin/master\n"
  8819. " commit: 65956ad3526ba09e1f7a40722c96c6ef7c0936fe\n"
  8820. "\n"
  8821. msgstr ""
  8822. #. type: example
  8823. #: guix-git/doc/guix.texi:4357
  8824. #, no-wrap
  8825. msgid ""
  8826. "Generation 2\tJun 11 2018 11:02:49\n"
  8827. " guix e0cc7f6\n"
  8828. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8829. " branch: origin/master\n"
  8830. " commit: e0cc7f669bec22c37481dd03a7941c7d11a64f1d\n"
  8831. " 2 new packages: keepalived, libnfnetlink\n"
  8832. " 6 packages upgraded: emacs-nix-mode@@2.0.4,\n"
  8833. " guile2.0-guix@@0.14.0-12.77a1aac, guix@@0.14.0-12.77a1aac,\n"
  8834. " heimdal@@7.5.0, milkytracker@@1.02.00, nix@@2.0.4\n"
  8835. "\n"
  8836. msgstr ""
  8837. #. type: example
  8838. #: guix-git/doc/guix.texi:4365
  8839. #, no-wrap
  8840. msgid ""
  8841. "Generation 3\tJun 13 2018 23:31:07\t(current)\n"
  8842. " guix 844cc1c\n"
  8843. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8844. " branch: origin/master\n"
  8845. " commit: 844cc1c8f394f03b404c5bb3aee086922373490c\n"
  8846. " 28 new packages: emacs-helm-ls-git, emacs-helm-mu, @dots{}\n"
  8847. " 69 packages upgraded: borg@@1.1.6, cheese@@3.28.0, @dots{}\n"
  8848. msgstr ""
  8849. #. type: Plain text
  8850. #: guix-git/doc/guix.texi:4369
  8851. msgid "@xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix."
  8852. msgstr ""
  8853. #. type: Plain text
  8854. #: guix-git/doc/guix.texi:4374
  8855. msgid "This @code{~/.config/guix/current} profile works exactly like the profiles created by @command{guix package} (@pxref{Invoking guix package}). That is, you can list generations, roll back to the previous generation---i.e., the previous Guix---and so on:"
  8856. msgstr ""
  8857. #. type: example
  8858. #: guix-git/doc/guix.texi:4380
  8859. #, no-wrap
  8860. msgid ""
  8861. "$ guix pull --roll-back\n"
  8862. "switched from generation 3 to 2\n"
  8863. "$ guix pull --delete-generations=1\n"
  8864. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  8865. msgstr ""
  8866. #. type: Plain text
  8867. #: guix-git/doc/guix.texi:4384
  8868. msgid "You can also use @command{guix package} (@pxref{Invoking guix package}) to manage the profile by naming it explicitly:"
  8869. msgstr ""
  8870. #. type: example
  8871. #: guix-git/doc/guix.texi:4389
  8872. #, no-wrap
  8873. msgid ""
  8874. "$ guix package -p ~/.config/guix/current --roll-back\n"
  8875. "switched from generation 3 to 2\n"
  8876. "$ guix package -p ~/.config/guix/current --delete-generations=1\n"
  8877. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  8878. msgstr ""
  8879. #. type: Plain text
  8880. #: guix-git/doc/guix.texi:4393
  8881. msgid "The @command{guix pull} command is usually invoked with no arguments, but it supports the following options:"
  8882. msgstr ""
  8883. #. type: item
  8884. #: guix-git/doc/guix.texi:4395 guix-git/doc/guix.texi:4553
  8885. #, no-wrap
  8886. msgid "--url=@var{url}"
  8887. msgstr ""
  8888. #. type: itemx
  8889. #: guix-git/doc/guix.texi:4396 guix-git/doc/guix.texi:4554
  8890. #, no-wrap
  8891. msgid "--commit=@var{commit}"
  8892. msgstr ""
  8893. #. type: itemx
  8894. #: guix-git/doc/guix.texi:4397 guix-git/doc/guix.texi:4555
  8895. #, no-wrap
  8896. msgid "--branch=@var{branch}"
  8897. msgstr ""
  8898. #. type: table
  8899. #: guix-git/doc/guix.texi:4401
  8900. msgid "Download code for the @code{guix} channel from the specified @var{url}, at the given @var{commit} (a valid Git commit ID represented as a hexadecimal string), or @var{branch}."
  8901. msgstr ""
  8902. #. type: cindex
  8903. #: guix-git/doc/guix.texi:4402 guix-git/doc/guix.texi:4999
  8904. #, no-wrap
  8905. msgid "@file{channels.scm}, configuration file"
  8906. msgstr ""
  8907. #. type: cindex
  8908. #: guix-git/doc/guix.texi:4403 guix-git/doc/guix.texi:5000
  8909. #, no-wrap
  8910. msgid "configuration file for channels"
  8911. msgstr ""
  8912. #. type: table
  8913. #: guix-git/doc/guix.texi:4407
  8914. msgid "These options are provided for convenience, but you can also specify your configuration in the @file{~/.config/guix/channels.scm} file or using the @option{--channels} option (see below)."
  8915. msgstr ""
  8916. #. type: item
  8917. #: guix-git/doc/guix.texi:4408 guix-git/doc/guix.texi:4560
  8918. #, no-wrap
  8919. msgid "--channels=@var{file}"
  8920. msgstr ""
  8921. #. type: itemx
  8922. #: guix-git/doc/guix.texi:4409 guix-git/doc/guix.texi:4561
  8923. #, no-wrap
  8924. msgid "-C @var{file}"
  8925. msgstr ""
  8926. #. type: table
  8927. #: guix-git/doc/guix.texi:4415
  8928. msgid "Read the list of channels from @var{file} instead of @file{~/.config/guix/channels.scm} or @file{/etc/guix/channels.scm}. @var{file} must contain Scheme code that evaluates to a list of channel objects. @xref{Channels}, for more information."
  8929. msgstr ""
  8930. #. type: cindex
  8931. #: guix-git/doc/guix.texi:4416
  8932. #, fuzzy, no-wrap
  8933. msgid "channel news"
  8934. msgstr "通道"
  8935. #. type: item
  8936. #: guix-git/doc/guix.texi:4417
  8937. #, no-wrap
  8938. msgid "--news"
  8939. msgstr ""
  8940. #. type: itemx
  8941. #: guix-git/doc/guix.texi:4418 guix-git/doc/guix.texi:5826
  8942. #: guix-git/doc/guix.texi:33896
  8943. #, no-wrap
  8944. msgid "-N"
  8945. msgstr ""
  8946. #. type: table
  8947. #: guix-git/doc/guix.texi:4422
  8948. msgid "Display the list of packages added or upgraded since the previous generation, as well as, occasionally, news written by channel authors for their users (@pxref{Channels, Writing Channel News})."
  8949. msgstr ""
  8950. #. type: table
  8951. #: guix-git/doc/guix.texi:4426
  8952. msgid "The package information is the same as displayed upon @command{guix pull} completion, but without ellipses; it is also similar to the output of @command{guix pull -l} for the last generation (see below)."
  8953. msgstr ""
  8954. #. type: table
  8955. #: guix-git/doc/guix.texi:4433
  8956. msgid "List all the generations of @file{~/.config/guix/current} or, if @var{pattern} is provided, the subset of generations that match @var{pattern}. The syntax of @var{pattern} is the same as with @code{guix package --list-generations} (@pxref{Invoking guix package})."
  8957. msgstr ""
  8958. #. type: table
  8959. #: guix-git/doc/guix.texi:4440
  8960. msgid "Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., undo the last transaction."
  8961. msgstr ""
  8962. #. type: table
  8963. #: guix-git/doc/guix.texi:4464
  8964. msgid "If the current generation matches, it is @emph{not} deleted."
  8965. msgstr ""
  8966. #. type: table
  8967. #: guix-git/doc/guix.texi:4470
  8968. msgid "@xref{Invoking guix describe}, for a way to display information about the current generation only."
  8969. msgstr ""
  8970. #. type: table
  8971. #: guix-git/doc/guix.texi:4474
  8972. msgid "Use @var{profile} instead of @file{~/.config/guix/current}."
  8973. msgstr ""
  8974. #. type: item
  8975. #: guix-git/doc/guix.texi:4475 guix-git/doc/guix.texi:10317
  8976. #, no-wrap
  8977. msgid "--dry-run"
  8978. msgstr ""
  8979. #. type: itemx
  8980. #: guix-git/doc/guix.texi:4476 guix-git/doc/guix.texi:10318
  8981. #: guix-git/doc/guix.texi:12241
  8982. #, no-wrap
  8983. msgid "-n"
  8984. msgstr ""
  8985. #. type: table
  8986. #: guix-git/doc/guix.texi:4479
  8987. msgid "Show which channel commit(s) would be used and what would be built or substituted but do not actually do it."
  8988. msgstr ""
  8989. #. type: item
  8990. #: guix-git/doc/guix.texi:4480 guix-git/doc/guix.texi:33915
  8991. #, no-wrap
  8992. msgid "--allow-downgrades"
  8993. msgstr ""
  8994. #. type: table
  8995. #: guix-git/doc/guix.texi:4483
  8996. msgid "Allow pulling older or unrelated revisions of channels than those currently in use."
  8997. msgstr ""
  8998. #. type: cindex
  8999. #: guix-git/doc/guix.texi:4484
  9000. #, no-wrap
  9001. msgid "downgrade attacks, protection against"
  9002. msgstr ""
  9003. #. type: table
  9004. #: guix-git/doc/guix.texi:4489
  9005. msgid "By default, @command{guix pull} protects against so-called ``downgrade attacks'' whereby the Git repository of a channel would be reset to an earlier or unrelated revision of itself, potentially leading you to install older, known-vulnerable versions of software packages."
  9006. msgstr ""
  9007. #. type: quotation
  9008. #: guix-git/doc/guix.texi:4493 guix-git/doc/guix.texi:33929
  9009. msgid "Make sure you understand its security implications before using @option{--allow-downgrades}."
  9010. msgstr ""
  9011. #. type: item
  9012. #: guix-git/doc/guix.texi:4495
  9013. #, fuzzy, no-wrap
  9014. msgid "--disable-authentication"
  9015. msgstr "--disable-deduplication"
  9016. #. type: table
  9017. #: guix-git/doc/guix.texi:4497
  9018. msgid "Allow pulling channel code without authenticating it."
  9019. msgstr ""
  9020. #. type: cindex
  9021. #: guix-git/doc/guix.texi:4498 guix-git/doc/guix.texi:5145
  9022. #, fuzzy, no-wrap
  9023. msgid "authentication, of channel code"
  9024. msgstr "代码缩进"
  9025. #. type: table
  9026. #: guix-git/doc/guix.texi:4503
  9027. msgid "By default, @command{guix pull} authenticates code downloaded from channels by verifying that its commits are signed by authorized developers, and raises an error if this is not the case. This option instructs it to not perform any such verification."
  9028. msgstr ""
  9029. #. type: quotation
  9030. #: guix-git/doc/guix.texi:4507
  9031. msgid "Make sure you understand its security implications before using @option{--disable-authentication}."
  9032. msgstr ""
  9033. #. type: itemx
  9034. #: guix-git/doc/guix.texi:4510 guix-git/doc/guix.texi:5809
  9035. #: guix-git/doc/guix.texi:6209 guix-git/doc/guix.texi:10868
  9036. #: guix-git/doc/guix.texi:12386 guix-git/doc/guix.texi:12637
  9037. #: guix-git/doc/guix.texi:13314 guix-git/doc/guix.texi:33844
  9038. #, no-wrap
  9039. msgid "-s @var{system}"
  9040. msgstr ""
  9041. #. type: table
  9042. #: guix-git/doc/guix.texi:4513 guix-git/doc/guix.texi:6212
  9043. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host."
  9044. msgstr ""
  9045. #. type: table
  9046. #: guix-git/doc/guix.texi:4517
  9047. msgid "Use the bootstrap Guile to build the latest Guix. This option is only useful to Guix developers."
  9048. msgstr ""
  9049. #. type: Plain text
  9050. #: guix-git/doc/guix.texi:4523
  9051. msgid "The @dfn{channel} mechanism allows you to instruct @command{guix pull} which repository and branch to pull from, as well as @emph{additional} repositories containing package modules that should be deployed. @xref{Channels}, for more information."
  9052. msgstr ""
  9053. #. type: Plain text
  9054. #: guix-git/doc/guix.texi:4526
  9055. msgid "In addition, @command{guix pull} supports all the common build options (@pxref{Common Build Options})."
  9056. msgstr ""
  9057. #. type: section
  9058. #: guix-git/doc/guix.texi:4528
  9059. #, fuzzy, no-wrap
  9060. msgid "Invoking @command{guix time-machine}"
  9061. msgstr "调用@command{guix-daemon}"
  9062. #. type: command{#1}
  9063. #: guix-git/doc/guix.texi:4530
  9064. #, no-wrap
  9065. msgid "guix time-machine"
  9066. msgstr ""
  9067. #. type: cindex
  9068. #: guix-git/doc/guix.texi:4531 guix-git/doc/guix.texi:5103
  9069. #, no-wrap
  9070. msgid "pinning, channels"
  9071. msgstr ""
  9072. #. type: cindex
  9073. #: guix-git/doc/guix.texi:4532 guix-git/doc/guix.texi:4714
  9074. #: guix-git/doc/guix.texi:5104
  9075. #, no-wrap
  9076. msgid "replicating Guix"
  9077. msgstr ""
  9078. #. type: cindex
  9079. #: guix-git/doc/guix.texi:4533 guix-git/doc/guix.texi:5105
  9080. #, no-wrap
  9081. msgid "reproducibility, of Guix"
  9082. msgstr ""
  9083. #. type: Plain text
  9084. #: guix-git/doc/guix.texi:4541
  9085. msgid "The @command{guix time-machine} command provides access to other revisions of Guix, for example to install older versions of packages, or to reproduce a computation in an identical environment. The revision of Guix to be used is defined by a commit or by a channel description file created by @command{guix describe} (@pxref{Invoking guix describe})."
  9086. msgstr ""
  9087. #. type: Plain text
  9088. #: guix-git/doc/guix.texi:4543 guix-git/doc/guix.texi:5558
  9089. #: guix-git/doc/guix.texi:6332 guix-git/doc/guix.texi:10114
  9090. #: guix-git/doc/guix.texi:10237 guix-git/doc/guix.texi:11159
  9091. #: guix-git/doc/guix.texi:11236 guix-git/doc/guix.texi:12216
  9092. #: guix-git/doc/guix.texi:12695 guix-git/doc/guix.texi:13068
  9093. #: guix-git/doc/guix.texi:13157 guix-git/doc/guix.texi:13196
  9094. #: guix-git/doc/guix.texi:13293
  9095. msgid "The general syntax is:"
  9096. msgstr ""
  9097. #. type: example
  9098. #: guix-git/doc/guix.texi:4546
  9099. #, no-wrap
  9100. msgid "guix time-machine @var{options}@dots{} -- @var{command} @var {arg}@dots{}\n"
  9101. msgstr ""
  9102. #. type: Plain text
  9103. #: guix-git/doc/guix.texi:4551
  9104. msgid "where @var{command} and @var{arg}@dots{} are passed unmodified to the @command{guix} command of the specified revision. The @var{options} that define this revision are the same as for @command{guix pull} (@pxref{Invoking guix pull}):"
  9105. msgstr ""
  9106. #. type: table
  9107. #: guix-git/doc/guix.texi:4559
  9108. msgid "Use the @code{guix} channel from the specified @var{url}, at the given @var{commit} (a valid Git commit ID represented as a hexadecimal string), or @var{branch}."
  9109. msgstr ""
  9110. #. type: table
  9111. #: guix-git/doc/guix.texi:4565
  9112. msgid "Read the list of channels from @var{file}. @var{file} must contain Scheme code that evaluates to a list of channel objects. @xref{Channels} for more information."
  9113. msgstr ""
  9114. #. type: Plain text
  9115. #: guix-git/doc/guix.texi:4569
  9116. msgid "As for @command{guix pull}, the absence of any options means that the latest commit on the master branch will be used. The command"
  9117. msgstr ""
  9118. #. type: example
  9119. #: guix-git/doc/guix.texi:4572
  9120. #, no-wrap
  9121. msgid "guix time-machine -- build hello\n"
  9122. msgstr ""
  9123. #. type: Plain text
  9124. #: guix-git/doc/guix.texi:4577
  9125. msgid "will thus build the package @code{hello} as defined in the master branch, which is in general a newer revision of Guix than you have installed. Time travel works in both directions!"
  9126. msgstr ""
  9127. #. type: Plain text
  9128. #: guix-git/doc/guix.texi:4581
  9129. msgid "Note that @command{guix time-machine} can trigger builds of channels and their dependencies, and these are controlled by the standard build options (@pxref{Common Build Options})."
  9130. msgstr ""
  9131. #. type: quotation
  9132. #: guix-git/doc/guix.texi:4589
  9133. msgid "The functionality described here is a ``technology preview'' as of version @value{VERSION}. As such, the interface is subject to change."
  9134. msgstr ""
  9135. #. type: cindex
  9136. #: guix-git/doc/guix.texi:4591 guix-git/doc/guix.texi:10151
  9137. #, no-wrap
  9138. msgid "inferiors"
  9139. msgstr ""
  9140. #. type: cindex
  9141. #: guix-git/doc/guix.texi:4592
  9142. #, no-wrap
  9143. msgid "composition of Guix revisions"
  9144. msgstr ""
  9145. #. type: Plain text
  9146. #: guix-git/doc/guix.texi:4597
  9147. msgid "Sometimes you might need to mix packages from the revision of Guix you're currently running with packages available in a different revision of Guix. Guix @dfn{inferiors} allow you to achieve that by composing different Guix revisions in arbitrary ways."
  9148. msgstr ""
  9149. #. type: cindex
  9150. #: guix-git/doc/guix.texi:4598 guix-git/doc/guix.texi:4663
  9151. #, no-wrap
  9152. msgid "inferior packages"
  9153. msgstr ""
  9154. #. type: Plain text
  9155. #: guix-git/doc/guix.texi:4604
  9156. msgid "Technically, an ``inferior'' is essentially a separate Guix process connected to your main Guix process through a REPL (@pxref{Invoking guix repl}). The @code{(guix inferior)} module allows you to create inferiors and to communicate with them. It also provides a high-level interface to browse and manipulate the packages that an inferior provides---@dfn{inferior packages}."
  9157. msgstr ""
  9158. #. type: Plain text
  9159. #: guix-git/doc/guix.texi:4614
  9160. msgid "When combined with channels (@pxref{Channels}), inferiors provide a simple way to interact with a separate revision of Guix. For example, let's assume you want to install in your profile the current @code{guile} package, along with the @code{guile-json} as it existed in an older revision of Guix---perhaps because the newer @code{guile-json} has an incompatible API and you want to run your code against the old API@. To do that, you could write a manifest for use by @code{guix package --manifest} (@pxref{Invoking guix package}); in that manifest, you would create an inferior for that old Guix revision you care about, and you would look up the @code{guile-json} package in the inferior:"
  9161. msgstr ""
  9162. #. type: lisp
  9163. #: guix-git/doc/guix.texi:4618
  9164. #, no-wrap
  9165. msgid ""
  9166. "(use-modules (guix inferior) (guix channels)\n"
  9167. " (srfi srfi-1)) ;for 'first'\n"
  9168. "\n"
  9169. msgstr ""
  9170. #. type: lisp
  9171. #: guix-git/doc/guix.texi:4627
  9172. #, no-wrap
  9173. msgid ""
  9174. "(define channels\n"
  9175. " ;; This is the old revision from which we want to\n"
  9176. " ;; extract guile-json.\n"
  9177. " (list (channel\n"
  9178. " (name 'guix)\n"
  9179. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9180. " (commit\n"
  9181. " \"65956ad3526ba09e1f7a40722c96c6ef7c0936fe\"))))\n"
  9182. "\n"
  9183. msgstr ""
  9184. #. type: lisp
  9185. #: guix-git/doc/guix.texi:4631
  9186. #, no-wrap
  9187. msgid ""
  9188. "(define inferior\n"
  9189. " ;; An inferior representing the above revision.\n"
  9190. " (inferior-for-channels channels))\n"
  9191. "\n"
  9192. msgstr ""
  9193. #. type: lisp
  9194. #: guix-git/doc/guix.texi:4637
  9195. #, no-wrap
  9196. msgid ""
  9197. ";; Now create a manifest with the current \"guile\" package\n"
  9198. ";; and the old \"guile-json\" package.\n"
  9199. "(packages->manifest\n"
  9200. " (list (first (lookup-inferior-packages inferior \"guile-json\"))\n"
  9201. " (specification->package \"guile\")))\n"
  9202. msgstr ""
  9203. #. type: Plain text
  9204. #: guix-git/doc/guix.texi:4642
  9205. msgid "On its first run, @command{guix package --manifest} might have to build the channel you specified before it can create the inferior; subsequent runs will be much faster because the Guix revision will be cached."
  9206. msgstr ""
  9207. #. type: Plain text
  9208. #: guix-git/doc/guix.texi:4645
  9209. msgid "The @code{(guix inferior)} module provides the following procedures to open an inferior:"
  9210. msgstr ""
  9211. #. type: deffn
  9212. #: guix-git/doc/guix.texi:4646
  9213. #, no-wrap
  9214. msgid "{Scheme Procedure} inferior-for-channels @var{channels} @"
  9215. msgstr ""
  9216. #. type: deffn
  9217. #: guix-git/doc/guix.texi:4651
  9218. msgid "[#:cache-directory] [#:ttl] Return an inferior for @var{channels}, a list of channels. Use the cache at @var{cache-directory}, where entries can be reclaimed after @var{ttl} seconds. This procedure opens a new connection to the build daemon."
  9219. msgstr ""
  9220. #. type: deffn
  9221. #: guix-git/doc/guix.texi:4654
  9222. msgid "As a side effect, this procedure may build or substitute binaries for @var{channels}, which can take time."
  9223. msgstr ""
  9224. #. type: deffn
  9225. #: guix-git/doc/guix.texi:4656
  9226. #, no-wrap
  9227. msgid "{Scheme Procedure} open-inferior @var{directory} @"
  9228. msgstr ""
  9229. #. type: deffn
  9230. #: guix-git/doc/guix.texi:4661
  9231. msgid "[#:command \"bin/guix\"] Open the inferior Guix in @var{directory}, running @code{@var{directory}/@var{command} repl} or equivalent. Return @code{#f} if the inferior could not be launched."
  9232. msgstr ""
  9233. #. type: Plain text
  9234. #: guix-git/doc/guix.texi:4666
  9235. msgid "The procedures listed below allow you to obtain and manipulate inferior packages."
  9236. msgstr ""
  9237. #. type: deffn
  9238. #: guix-git/doc/guix.texi:4667
  9239. #, no-wrap
  9240. msgid "{Scheme Procedure} inferior-packages @var{inferior}"
  9241. msgstr ""
  9242. #. type: deffn
  9243. #: guix-git/doc/guix.texi:4669
  9244. msgid "Return the list of packages known to @var{inferior}."
  9245. msgstr ""
  9246. #. type: deffn
  9247. #: guix-git/doc/guix.texi:4671
  9248. #, no-wrap
  9249. msgid "{Scheme Procedure} lookup-inferior-packages @var{inferior} @var{name} @"
  9250. msgstr ""
  9251. #. type: deffn
  9252. #: guix-git/doc/guix.texi:4676
  9253. msgid "[@var{version}] Return the sorted list of inferior packages matching @var{name} in @var{inferior}, with highest version numbers first. If @var{version} is true, return only packages with a version number prefixed by @var{version}."
  9254. msgstr ""
  9255. #. type: deffn
  9256. #: guix-git/doc/guix.texi:4678
  9257. #, no-wrap
  9258. msgid "{Scheme Procedure} inferior-package? @var{obj}"
  9259. msgstr ""
  9260. #. type: deffn
  9261. #: guix-git/doc/guix.texi:4680
  9262. msgid "Return true if @var{obj} is an inferior package."
  9263. msgstr ""
  9264. #. type: deffn
  9265. #: guix-git/doc/guix.texi:4682
  9266. #, no-wrap
  9267. msgid "{Scheme Procedure} inferior-package-name @var{package}"
  9268. msgstr ""
  9269. #. type: deffnx
  9270. #: guix-git/doc/guix.texi:4683
  9271. #, no-wrap
  9272. msgid "{Scheme Procedure} inferior-package-version @var{package}"
  9273. msgstr ""
  9274. #. type: deffnx
  9275. #: guix-git/doc/guix.texi:4684
  9276. #, no-wrap
  9277. msgid "{Scheme Procedure} inferior-package-synopsis @var{package}"
  9278. msgstr ""
  9279. #. type: deffnx
  9280. #: guix-git/doc/guix.texi:4685
  9281. #, no-wrap
  9282. msgid "{Scheme Procedure} inferior-package-description @var{package}"
  9283. msgstr ""
  9284. #. type: deffnx
  9285. #: guix-git/doc/guix.texi:4686
  9286. #, no-wrap
  9287. msgid "{Scheme Procedure} inferior-package-home-page @var{package}"
  9288. msgstr ""
  9289. #. type: deffnx
  9290. #: guix-git/doc/guix.texi:4687
  9291. #, no-wrap
  9292. msgid "{Scheme Procedure} inferior-package-location @var{package}"
  9293. msgstr ""
  9294. #. type: deffnx
  9295. #: guix-git/doc/guix.texi:4688
  9296. #, no-wrap
  9297. msgid "{Scheme Procedure} inferior-package-inputs @var{package}"
  9298. msgstr ""
  9299. #. type: deffnx
  9300. #: guix-git/doc/guix.texi:4689
  9301. #, no-wrap
  9302. msgid "{Scheme Procedure} inferior-package-native-inputs @var{package}"
  9303. msgstr ""
  9304. #. type: deffnx
  9305. #: guix-git/doc/guix.texi:4690
  9306. #, no-wrap
  9307. msgid "{Scheme Procedure} inferior-package-propagated-inputs @var{package}"
  9308. msgstr ""
  9309. #. type: deffnx
  9310. #: guix-git/doc/guix.texi:4691
  9311. #, no-wrap
  9312. msgid "{Scheme Procedure} inferior-package-transitive-propagated-inputs @var{package}"
  9313. msgstr ""
  9314. #. type: deffnx
  9315. #: guix-git/doc/guix.texi:4692
  9316. #, no-wrap
  9317. msgid "{Scheme Procedure} inferior-package-native-search-paths @var{package}"
  9318. msgstr ""
  9319. #. type: deffnx
  9320. #: guix-git/doc/guix.texi:4693
  9321. #, no-wrap
  9322. msgid "{Scheme Procedure} inferior-package-transitive-native-search-paths @var{package}"
  9323. msgstr ""
  9324. #. type: deffnx
  9325. #: guix-git/doc/guix.texi:4694
  9326. #, no-wrap
  9327. msgid "{Scheme Procedure} inferior-package-search-paths @var{package}"
  9328. msgstr ""
  9329. #. type: deffn
  9330. #: guix-git/doc/guix.texi:4699
  9331. msgid "These procedures are the counterpart of package record accessors (@pxref{package Reference}). Most of them work by querying the inferior @var{package} comes from, so the inferior must still be live when you call these procedures."
  9332. msgstr ""
  9333. #. type: Plain text
  9334. #: guix-git/doc/guix.texi:4709
  9335. msgid "Inferior packages can be used transparently like any other package or file-like object in G-expressions (@pxref{G-Expressions}). They are also transparently handled by the @code{packages->manifest} procedure, which is commonly used in manifests (@pxref{Invoking guix package, the @option{--manifest} option of @command{guix package}}). Thus you can insert an inferior package pretty much anywhere you would insert a regular package: in manifests, in the @code{packages} field of your @code{operating-system} declaration, and so on."
  9336. msgstr ""
  9337. #. type: section
  9338. #: guix-git/doc/guix.texi:4711
  9339. #, no-wrap
  9340. msgid "Invoking @command{guix describe}"
  9341. msgstr ""
  9342. #. type: Plain text
  9343. #: guix-git/doc/guix.texi:4722
  9344. msgid "Often you may want to answer questions like: ``Which revision of Guix am I using?'' or ``Which channels am I using?'' This is useful information in many situations: if you want to @emph{replicate} an environment on a different machine or user account, if you want to report a bug or to determine what change in the channels you are using caused it, or if you want to record your system state for reproducibility purposes. The @command{guix describe} command answers these questions."
  9345. msgstr ""
  9346. #. type: Plain text
  9347. #: guix-git/doc/guix.texi:4726
  9348. msgid "When run from a @command{guix pull}ed @command{guix}, @command{guix describe} displays the channel(s) that it was built from, including their repository URL and commit IDs (@pxref{Channels}):"
  9349. msgstr ""
  9350. #. type: example
  9351. #: guix-git/doc/guix.texi:4734
  9352. #, no-wrap
  9353. msgid ""
  9354. "$ guix describe\n"
  9355. "Generation 10\tSep 03 2018 17:32:44\t(current)\n"
  9356. " guix e0fa68c\n"
  9357. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9358. " branch: master\n"
  9359. " commit: e0fa68c7718fffd33d81af415279d6ddb518f727\n"
  9360. msgstr ""
  9361. #. type: Plain text
  9362. #: guix-git/doc/guix.texi:4743
  9363. msgid "If you're familiar with the Git version control system, this is similar in spirit to @command{git describe}; the output is also similar to that of @command{guix pull --list-generations}, but limited to the current generation (@pxref{Invoking guix pull, the @option{--list-generations} option}). Because the Git commit ID shown above unambiguously refers to a snapshot of Guix, this information is all it takes to describe the revision of Guix you're using, and also to replicate it."
  9364. msgstr ""
  9365. #. type: Plain text
  9366. #: guix-git/doc/guix.texi:4746
  9367. msgid "To make it easier to replicate Guix, @command{guix describe} can also be asked to return a list of channels instead of the human-readable description above:"
  9368. msgstr ""
  9369. #. type: example
  9370. #: guix-git/doc/guix.texi:4759
  9371. #, no-wrap
  9372. msgid ""
  9373. "$ guix describe -f channels\n"
  9374. "(list (channel\n"
  9375. " (name 'guix)\n"
  9376. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9377. " (commit\n"
  9378. " \"e0fa68c7718fffd33d81af415279d6ddb518f727\")\n"
  9379. " (introduction\n"
  9380. " (make-channel-introduction\n"
  9381. " \"9edb3f66fd807b096b48283debdcddccfea34bad\"\n"
  9382. " (openpgp-fingerprint\n"
  9383. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))\n"
  9384. msgstr ""
  9385. #. type: Plain text
  9386. #: guix-git/doc/guix.texi:4768
  9387. msgid "You can save this to a file and feed it to @command{guix pull -C} on some other machine or at a later point in time, which will instantiate @emph{this exact Guix revision} (@pxref{Invoking guix pull, the @option{-C} option}). From there on, since you're able to deploy the same revision of Guix, you can just as well @emph{replicate a complete software environment}. We humbly think that this is @emph{awesome}, and we hope you'll like it too!"
  9388. msgstr ""
  9389. #. type: Plain text
  9390. #: guix-git/doc/guix.texi:4771
  9391. msgid "The details of the options supported by @command{guix describe} are as follows:"
  9392. msgstr ""
  9393. #. type: item
  9394. #: guix-git/doc/guix.texi:4773 guix-git/doc/guix.texi:6010
  9395. #: guix-git/doc/guix.texi:13426
  9396. #, no-wrap
  9397. msgid "--format=@var{format}"
  9398. msgstr ""
  9399. #. type: itemx
  9400. #: guix-git/doc/guix.texi:4774 guix-git/doc/guix.texi:6011
  9401. #: guix-git/doc/guix.texi:13427
  9402. #, no-wrap
  9403. msgid "-f @var{format}"
  9404. msgstr ""
  9405. #. type: table
  9406. #: guix-git/doc/guix.texi:4776 guix-git/doc/guix.texi:13429
  9407. msgid "Produce output in the specified @var{format}, one of:"
  9408. msgstr ""
  9409. #. type: item
  9410. #: guix-git/doc/guix.texi:4778
  9411. #, no-wrap
  9412. msgid "human"
  9413. msgstr ""
  9414. #. type: table
  9415. #: guix-git/doc/guix.texi:4780
  9416. msgid "produce human-readable output;"
  9417. msgstr ""
  9418. #. type: cindex
  9419. #: guix-git/doc/guix.texi:4780 guix-git/doc/guix.texi:4998
  9420. #, no-wrap
  9421. msgid "channels"
  9422. msgstr ""
  9423. #. type: table
  9424. #: guix-git/doc/guix.texi:4784
  9425. msgid "produce a list of channel specifications that can be passed to @command{guix pull -C} or installed as @file{~/.config/guix/channels.scm} (@pxref{Invoking guix pull});"
  9426. msgstr ""
  9427. #. type: item
  9428. #: guix-git/doc/guix.texi:4784
  9429. #, no-wrap
  9430. msgid "channels-sans-intro"
  9431. msgstr ""
  9432. #. type: table
  9433. #: guix-git/doc/guix.texi:4790
  9434. msgid "like @code{channels}, but omit the @code{introduction} field; use it to produce a channel specification suitable for Guix version 1.1.0 or earlier---the @code{introduction} field has to do with channel authentication (@pxref{Channels, Channel Authentication}) and is not supported by these older versions;"
  9435. msgstr ""
  9436. #. type: item
  9437. #: guix-git/doc/guix.texi:4790 guix-git/doc/guix.texi:11454
  9438. #, no-wrap
  9439. msgid "json"
  9440. msgstr ""
  9441. #. type: cindex
  9442. #: guix-git/doc/guix.texi:4791
  9443. #, no-wrap
  9444. msgid "JSON"
  9445. msgstr ""
  9446. #. type: table
  9447. #: guix-git/doc/guix.texi:4793
  9448. msgid "produce a list of channel specifications in JSON format;"
  9449. msgstr ""
  9450. #. type: item
  9451. #: guix-git/doc/guix.texi:4793 guix-git/doc/guix.texi:13431
  9452. #, no-wrap
  9453. msgid "recutils"
  9454. msgstr ""
  9455. #. type: table
  9456. #: guix-git/doc/guix.texi:4795
  9457. msgid "produce a list of channel specifications in Recutils format."
  9458. msgstr ""
  9459. #. type: item
  9460. #: guix-git/doc/guix.texi:4797
  9461. #, no-wrap
  9462. msgid "--list-formats"
  9463. msgstr ""
  9464. #. type: table
  9465. #: guix-git/doc/guix.texi:4799
  9466. msgid "Display available formats for @option{--format} option."
  9467. msgstr ""
  9468. #. type: table
  9469. #: guix-git/doc/guix.texi:4803
  9470. msgid "Display information about @var{profile}."
  9471. msgstr ""
  9472. #. type: section
  9473. #: guix-git/doc/guix.texi:4806
  9474. #, no-wrap
  9475. msgid "Invoking @command{guix archive}"
  9476. msgstr ""
  9477. #. type: command{#1}
  9478. #: guix-git/doc/guix.texi:4808
  9479. #, no-wrap
  9480. msgid "guix archive"
  9481. msgstr ""
  9482. #. type: cindex
  9483. #: guix-git/doc/guix.texi:4809
  9484. #, no-wrap
  9485. msgid "archive"
  9486. msgstr "归档"
  9487. #. type: Plain text
  9488. #: guix-git/doc/guix.texi:4815
  9489. msgid "The @command{guix archive} command allows users to @dfn{export} files from the store into a single archive, and to later @dfn{import} them on a machine that runs Guix. In particular, it allows store files to be transferred from one machine to the store on another machine."
  9490. msgstr ""
  9491. #. type: quotation
  9492. #: guix-git/doc/guix.texi:4819
  9493. msgid "If you're looking for a way to produce archives in a format suitable for tools other than Guix, @pxref{Invoking guix pack}."
  9494. msgstr ""
  9495. #. type: cindex
  9496. #: guix-git/doc/guix.texi:4821
  9497. #, no-wrap
  9498. msgid "exporting store items"
  9499. msgstr ""
  9500. #. type: Plain text
  9501. #: guix-git/doc/guix.texi:4823
  9502. msgid "To export store files as an archive to standard output, run:"
  9503. msgstr ""
  9504. #. type: example
  9505. #: guix-git/doc/guix.texi:4826
  9506. #, no-wrap
  9507. msgid "guix archive --export @var{options} @var{specifications}...\n"
  9508. msgstr ""
  9509. #. type: Plain text
  9510. #: guix-git/doc/guix.texi:4833
  9511. msgid "@var{specifications} may be either store file names or package specifications, as for @command{guix package} (@pxref{Invoking guix package}). For instance, the following command creates an archive containing the @code{gui} output of the @code{git} package and the main output of @code{emacs}:"
  9512. msgstr ""
  9513. #. type: example
  9514. #: guix-git/doc/guix.texi:4836
  9515. #, no-wrap
  9516. msgid "guix archive --export git:gui /gnu/store/...-emacs-24.3 > great.nar\n"
  9517. msgstr ""
  9518. #. type: Plain text
  9519. #: guix-git/doc/guix.texi:4841
  9520. msgid "If the specified packages are not built yet, @command{guix archive} automatically builds them. The build process may be controlled with the common build options (@pxref{Common Build Options})."
  9521. msgstr ""
  9522. #. type: Plain text
  9523. #: guix-git/doc/guix.texi:4844
  9524. msgid "To transfer the @code{emacs} package to a machine connected over SSH, one would run:"
  9525. msgstr ""
  9526. #. type: example
  9527. #: guix-git/doc/guix.texi:4847
  9528. #, no-wrap
  9529. msgid "guix archive --export -r emacs | ssh the-machine guix archive --import\n"
  9530. msgstr ""
  9531. #. type: Plain text
  9532. #: guix-git/doc/guix.texi:4852
  9533. msgid "Similarly, a complete user profile may be transferred from one machine to another like this:"
  9534. msgstr ""
  9535. #. type: example
  9536. #: guix-git/doc/guix.texi:4856
  9537. #, no-wrap
  9538. msgid ""
  9539. "guix archive --export -r $(readlink -f ~/.guix-profile) | \\\n"
  9540. " ssh the-machine guix archive --import\n"
  9541. msgstr ""
  9542. #. type: Plain text
  9543. #: guix-git/doc/guix.texi:4866
  9544. msgid "However, note that, in both examples, all of @code{emacs} and the profile as well as all of their dependencies are transferred (due to @option{-r}), regardless of what is already available in the store on the target machine. The @option{--missing} option can help figure out which items are missing from the target store. The @command{guix copy} command simplifies and optimizes this whole process, so this is probably what you should use in this case (@pxref{Invoking guix copy})."
  9545. msgstr ""
  9546. #. type: cindex
  9547. #: guix-git/doc/guix.texi:4867
  9548. #, no-wrap
  9549. msgid "nar, archive format"
  9550. msgstr ""
  9551. #. type: cindex
  9552. #: guix-git/doc/guix.texi:4868
  9553. #, no-wrap
  9554. msgid "normalized archive (nar)"
  9555. msgstr ""
  9556. #. type: cindex
  9557. #: guix-git/doc/guix.texi:4869
  9558. #, no-wrap
  9559. msgid "nar bundle, archive format"
  9560. msgstr ""
  9561. #. type: Plain text
  9562. #: guix-git/doc/guix.texi:4874
  9563. msgid "Each store item is written in the @dfn{normalized archive} or @dfn{nar} format (described below), and the output of @command{guix archive --export} (and input of @command{guix archive --import}) is a @dfn{nar bundle}."
  9564. msgstr ""
  9565. #. type: Plain text
  9566. #: guix-git/doc/guix.texi:4884
  9567. msgid "The nar format is comparable in spirit to `tar', but with differences that make it more appropriate for our purposes. First, rather than recording all Unix metadata for each file, the nar format only mentions the file type (regular, directory, or symbolic link); Unix permissions and owner/group are dismissed. Second, the order in which directory entries are stored always follows the order of file names according to the C locale collation order. This makes archive production fully deterministic."
  9568. msgstr ""
  9569. #. type: Plain text
  9570. #: guix-git/doc/guix.texi:4888
  9571. msgid "That nar bundle format is essentially the concatenation of zero or more nars along with metadata for each store item it contains: its file name, references, corresponding derivation, and a digital signature."
  9572. msgstr ""
  9573. #. type: Plain text
  9574. #: guix-git/doc/guix.texi:4894
  9575. msgid "When exporting, the daemon digitally signs the contents of the archive, and that digital signature is appended. When importing, the daemon verifies the signature and rejects the import in case of an invalid signature or if the signing key is not authorized."
  9576. msgstr ""
  9577. #. type: Plain text
  9578. #: guix-git/doc/guix.texi:4896
  9579. msgid "The main options are:"
  9580. msgstr ""
  9581. #. type: item
  9582. #: guix-git/doc/guix.texi:4898
  9583. #, no-wrap
  9584. msgid "--export"
  9585. msgstr ""
  9586. #. type: table
  9587. #: guix-git/doc/guix.texi:4901
  9588. msgid "Export the specified store files or packages (see below). Write the resulting archive to the standard output."
  9589. msgstr ""
  9590. #. type: table
  9591. #: guix-git/doc/guix.texi:4904
  9592. msgid "Dependencies are @emph{not} included in the output, unless @option{--recursive} is passed."
  9593. msgstr ""
  9594. #. type: itemx
  9595. #: guix-git/doc/guix.texi:4905 guix-git/doc/guix.texi:11192
  9596. #: guix-git/doc/guix.texi:11294 guix-git/doc/guix.texi:11319
  9597. #: guix-git/doc/guix.texi:11351 guix-git/doc/guix.texi:11529
  9598. #: guix-git/doc/guix.texi:11570 guix-git/doc/guix.texi:11617
  9599. #: guix-git/doc/guix.texi:11642 guix-git/doc/guix.texi:11658
  9600. #: guix-git/doc/guix.texi:11706 guix-git/doc/guix.texi:11736
  9601. #, no-wrap
  9602. msgid "-r"
  9603. msgstr ""
  9604. #. type: item
  9605. #: guix-git/doc/guix.texi:4906 guix-git/doc/guix.texi:11191
  9606. #: guix-git/doc/guix.texi:11293 guix-git/doc/guix.texi:11318
  9607. #: guix-git/doc/guix.texi:11350 guix-git/doc/guix.texi:11528
  9608. #: guix-git/doc/guix.texi:11569 guix-git/doc/guix.texi:11616
  9609. #: guix-git/doc/guix.texi:11641 guix-git/doc/guix.texi:11657
  9610. #: guix-git/doc/guix.texi:11705 guix-git/doc/guix.texi:11735
  9611. #: guix-git/doc/guix.texi:11784
  9612. #, no-wrap
  9613. msgid "--recursive"
  9614. msgstr ""
  9615. #. type: table
  9616. #: guix-git/doc/guix.texi:4911
  9617. msgid "When combined with @option{--export}, this instructs @command{guix archive} to include dependencies of the given items in the archive. Thus, the resulting archive is self-contained: it contains the closure of the exported store items."
  9618. msgstr ""
  9619. #. type: item
  9620. #: guix-git/doc/guix.texi:4912
  9621. #, no-wrap
  9622. msgid "--import"
  9623. msgstr ""
  9624. #. type: table
  9625. #: guix-git/doc/guix.texi:4917
  9626. msgid "Read an archive from the standard input, and import the files listed therein into the store. Abort if the archive has an invalid digital signature, or if it is signed by a public key not among the authorized keys (see @option{--authorize} below)."
  9627. msgstr ""
  9628. #. type: item
  9629. #: guix-git/doc/guix.texi:4918
  9630. #, no-wrap
  9631. msgid "--missing"
  9632. msgstr ""
  9633. #. type: table
  9634. #: guix-git/doc/guix.texi:4922
  9635. msgid "Read a list of store file names from the standard input, one per line, and write on the standard output the subset of these files missing from the store."
  9636. msgstr ""
  9637. #. type: item
  9638. #: guix-git/doc/guix.texi:4923
  9639. #, no-wrap
  9640. msgid "--generate-key[=@var{parameters}]"
  9641. msgstr ""
  9642. #. type: cindex
  9643. #: guix-git/doc/guix.texi:4924
  9644. #, no-wrap
  9645. msgid "signing, archives"
  9646. msgstr ""
  9647. #. type: table
  9648. #: guix-git/doc/guix.texi:4931
  9649. msgid "Generate a new key pair for the daemon. This is a prerequisite before archives can be exported with @option{--export}. This operation is usually instantaneous but it can take time if the system's entropy pool needs to be refilled. On Guix System, @code{guix-service-type} takes care of generating this key pair the first boot."
  9650. msgstr ""
  9651. #. type: table
  9652. #: guix-git/doc/guix.texi:4941
  9653. msgid "The generated key pair is typically stored under @file{/etc/guix}, in @file{signing-key.pub} (public key) and @file{signing-key.sec} (private key, which must be kept secret). When @var{parameters} is omitted, an ECDSA key using the Ed25519 curve is generated, or, for Libgcrypt versions before 1.6.0, it is a 4096-bit RSA key. Alternatively, @var{parameters} can specify @code{genkey} parameters suitable for Libgcrypt (@pxref{General public-key related Functions, @code{gcry_pk_genkey},, gcrypt, The Libgcrypt Reference Manual})."
  9654. msgstr ""
  9655. #. type: item
  9656. #: guix-git/doc/guix.texi:4942
  9657. #, no-wrap
  9658. msgid "--authorize"
  9659. msgstr ""
  9660. #. type: cindex
  9661. #: guix-git/doc/guix.texi:4943
  9662. #, no-wrap
  9663. msgid "authorizing, archives"
  9664. msgstr ""
  9665. #. type: table
  9666. #: guix-git/doc/guix.texi:4947
  9667. msgid "Authorize imports signed by the public key passed on standard input. The public key must be in ``s-expression advanced format''---i.e., the same format as the @file{signing-key.pub} file."
  9668. msgstr ""
  9669. #. type: table
  9670. #: guix-git/doc/guix.texi:4954
  9671. msgid "The list of authorized keys is kept in the human-editable file @file{/etc/guix/acl}. The file contains @url{https://people.csail.mit.edu/rivest/Sexp.txt, ``advanced-format s-expressions''} and is structured as an access-control list in the @url{https://theworld.com/~cme/spki.txt, Simple Public-Key Infrastructure (SPKI)}."
  9672. msgstr ""
  9673. #. type: item
  9674. #: guix-git/doc/guix.texi:4955
  9675. #, no-wrap
  9676. msgid "--extract=@var{directory}"
  9677. msgstr ""
  9678. #. type: itemx
  9679. #: guix-git/doc/guix.texi:4956
  9680. #, no-wrap
  9681. msgid "-x @var{directory}"
  9682. msgstr ""
  9683. #. type: table
  9684. #: guix-git/doc/guix.texi:4960
  9685. msgid "Read a single-item archive as served by substitute servers (@pxref{Substitutes}) and extract it to @var{directory}. This is a low-level operation needed in only very narrow use cases; see below."
  9686. msgstr ""
  9687. #. type: table
  9688. #: guix-git/doc/guix.texi:4963
  9689. msgid "For example, the following command extracts the substitute for Emacs served by @code{@value{SUBSTITUTE-SERVER-1}} to @file{/tmp/emacs}:"
  9690. msgstr ""
  9691. #. type: example
  9692. #: guix-git/doc/guix.texi:4968
  9693. #, no-wrap
  9694. msgid ""
  9695. "$ wget -O - \\\n"
  9696. " https://@value{SUBSTITUTE-SERVER-1}/nar/gzip/@dots{}-emacs-24.5 \\\n"
  9697. " | gunzip | guix archive -x /tmp/emacs\n"
  9698. msgstr ""
  9699. #. type: table
  9700. #: guix-git/doc/guix.texi:4975
  9701. msgid "Single-item archives are different from multiple-item archives produced by @command{guix archive --export}; they contain a single store item, and they do @emph{not} embed a signature. Thus this operation does @emph{no} signature verification and its output should be considered unsafe."
  9702. msgstr ""
  9703. #. type: table
  9704. #: guix-git/doc/guix.texi:4979
  9705. msgid "The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers (@pxref{Invoking guix challenge})."
  9706. msgstr ""
  9707. #. type: item
  9708. #: guix-git/doc/guix.texi:4980
  9709. #, no-wrap
  9710. msgid "--list"
  9711. msgstr ""
  9712. #. type: itemx
  9713. #: guix-git/doc/guix.texi:4981 guix-git/doc/guix.texi:11516
  9714. #: guix-git/doc/guix.texi:11563
  9715. #, no-wrap
  9716. msgid "-t"
  9717. msgstr ""
  9718. #. type: table
  9719. #: guix-git/doc/guix.texi:4985
  9720. msgid "Read a single-item archive as served by substitute servers (@pxref{Substitutes}) and print the list of files it contains, as in this example:"
  9721. msgstr ""
  9722. #. type: example
  9723. #: guix-git/doc/guix.texi:4990
  9724. #, no-wrap
  9725. msgid ""
  9726. "$ wget -O - \\\n"
  9727. " https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-emacs-26.3 \\\n"
  9728. " | lzip -d | guix archive -t\n"
  9729. msgstr ""
  9730. #. type: cindex
  9731. #: guix-git/doc/guix.texi:5001
  9732. #, no-wrap
  9733. msgid "@command{guix pull}, configuration file"
  9734. msgstr ""
  9735. #. type: cindex
  9736. #: guix-git/doc/guix.texi:5002
  9737. #, no-wrap
  9738. msgid "configuration of @command{guix pull}"
  9739. msgstr ""
  9740. #. type: Plain text
  9741. #: guix-git/doc/guix.texi:5013
  9742. msgid "Guix and its package collection are updated by running @command{guix pull} (@pxref{Invoking guix pull}). By default @command{guix pull} downloads and deploys Guix itself from the official GNU@tie{}Guix repository. This can be customized by defining @dfn{channels} in the @file{~/.config/guix/channels.scm} file. A channel specifies a URL and branch of a Git repository to be deployed, and @command{guix pull} can be instructed to pull from one or more channels. In other words, channels can be used to @emph{customize} and to @emph{extend} Guix, as we will see below. Guix is able to take into account security concerns and deal with authenticated updates."
  9743. msgstr ""
  9744. #. type: cindex
  9745. #: guix-git/doc/guix.texi:5031
  9746. #, no-wrap
  9747. msgid "extending the package collection (channels)"
  9748. msgstr ""
  9749. #. type: cindex
  9750. #: guix-git/doc/guix.texi:5032
  9751. #, no-wrap
  9752. msgid "variant packages (channels)"
  9753. msgstr ""
  9754. #. type: Plain text
  9755. #: guix-git/doc/guix.texi:5036
  9756. msgid "You can specify @emph{additional channels} to pull from. To use a channel, write @code{~/.config/guix/channels.scm} to instruct @command{guix pull} to pull from it @emph{in addition} to the default Guix channel(s):"
  9757. msgstr ""
  9758. #. type: vindex
  9759. #: guix-git/doc/guix.texi:5037
  9760. #, no-wrap
  9761. msgid "%default-channels"
  9762. msgstr ""
  9763. #. type: lisp
  9764. #: guix-git/doc/guix.texi:5044
  9765. #, no-wrap
  9766. msgid ""
  9767. ";; Add variant packages to those Guix provides.\n"
  9768. "(cons (channel\n"
  9769. " (name 'variant-packages)\n"
  9770. " (url \"https://example.org/variant-packages.git\"))\n"
  9771. " %default-channels)\n"
  9772. msgstr ""
  9773. #. type: Plain text
  9774. #: guix-git/doc/guix.texi:5054
  9775. msgid "Note that the snippet above is (as always!)@: Scheme code; we use @code{cons} to add a channel the list of channels that the variable @code{%default-channels} is bound to (@pxref{Pairs, @code{cons} and lists,, guile, GNU Guile Reference Manual}). With this file in place, @command{guix pull} builds not only Guix but also the package modules from your own repository. The result in @file{~/.config/guix/current} is the union of Guix with your own package modules:"
  9776. msgstr ""
  9777. #. type: example
  9778. #: guix-git/doc/guix.texi:5069
  9779. #, no-wrap
  9780. msgid ""
  9781. "$ guix pull --list-generations\n"
  9782. "@dots{}\n"
  9783. "Generation 19\tAug 27 2018 16:20:48\n"
  9784. " guix d894ab8\n"
  9785. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9786. " branch: master\n"
  9787. " commit: d894ab8e9bfabcefa6c49d9ba2e834dd5a73a300\n"
  9788. " variant-packages dd3df5e\n"
  9789. " repository URL: https://example.org/variant-packages.git\n"
  9790. " branch: master\n"
  9791. " commit: dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\n"
  9792. " 11 new packages: variant-gimp, variant-emacs-with-cool-features, @dots{}\n"
  9793. " 4 packages upgraded: emacs-racket-mode@@0.0.2-2.1b78827, @dots{}\n"
  9794. msgstr ""
  9795. #. type: Plain text
  9796. #: guix-git/doc/guix.texi:5077
  9797. msgid "The output of @command{guix pull} above shows that Generation@tie{}19 includes both Guix and packages from the @code{variant-personal-packages} channel. Among the new and upgraded packages that are listed, some like @code{variant-gimp} and @code{variant-emacs-with-cool-features} might come from @code{variant-packages}, while others come from the Guix default channel."
  9798. msgstr ""
  9799. #. type: Plain text
  9800. #: guix-git/doc/guix.texi:5086
  9801. msgid "The channel called @code{guix} specifies where Guix itself---its command-line tools as well as its package collection---should be downloaded. For instance, suppose you want to update from another copy of the Guix repository at @code{example.org}, and specifically the @code{super-hacks} branch, you can write in @code{~/.config/guix/channels.scm} this specification:"
  9802. msgstr ""
  9803. #. type: lisp
  9804. #: guix-git/doc/guix.texi:5093
  9805. #, no-wrap
  9806. msgid ""
  9807. ";; Tell 'guix pull' to use another repo.\n"
  9808. "(list (channel\n"
  9809. " (name 'guix)\n"
  9810. " (url \"https://example.org/another-guix.git\")\n"
  9811. " (branch \"super-hacks\")))\n"
  9812. msgstr ""
  9813. #. type: Plain text
  9814. #: guix-git/doc/guix.texi:5099
  9815. msgid "From there on, @command{guix pull} will fetch code from the @code{super-hacks} branch of the repository at @code{example.org}. The authentication concern is addressed below ((@pxref{Channel Authentication})."
  9816. msgstr ""
  9817. #. type: Plain text
  9818. #: guix-git/doc/guix.texi:5110
  9819. msgid "The @command{guix pull --list-generations} output above shows precisely which commits were used to build this instance of Guix. We can thus replicate it, say, on another machine, by providing a channel specification in @file{~/.config/guix/channels.scm} that is ``pinned'' to these commits:"
  9820. msgstr ""
  9821. #. type: lisp
  9822. #: guix-git/doc/guix.texi:5121
  9823. #, no-wrap
  9824. msgid ""
  9825. ";; Deploy specific commits of my channels of interest.\n"
  9826. "(list (channel\n"
  9827. " (name 'guix)\n"
  9828. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9829. " (commit \"6298c3ffd9654d3231a6f25390b056483e8f407c\"))\n"
  9830. " (channel\n"
  9831. " (name 'variant-packages)\n"
  9832. " (url \"https://example.org/variant-packages.git\")\n"
  9833. " (commit \"dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\")))\n"
  9834. msgstr ""
  9835. #. type: Plain text
  9836. #: guix-git/doc/guix.texi:5128
  9837. msgid "The @command{guix describe --format=channels} command can even generate this list of channels directly (@pxref{Invoking guix describe}). The resulting file can be used with the -C options of @command{guix pull} (@pxref{Invoking guix pull}) or @command{guix time-machine} (@pxref{Invoking guix time-machine})."
  9838. msgstr ""
  9839. #. type: Plain text
  9840. #: guix-git/doc/guix.texi:5135
  9841. msgid "At this point the two machines run the @emph{exact same Guix}, with access to the @emph{exact same packages}. The output of @command{guix build gimp} on one machine will be exactly the same, bit for bit, as the output of the same command on the other machine. It also means both machines have access to all the source code of Guix and, transitively, to all the source code of every package it defines."
  9842. msgstr ""
  9843. #. type: Plain text
  9844. #: guix-git/doc/guix.texi:5140
  9845. msgid "This gives you super powers, allowing you to track the provenance of binary artifacts with very fine grain, and to reproduce software environments at will---some sort of ``meta reproducibility'' capabilities, if you will. @xref{Inferiors}, for another way to take advantage of these super powers."
  9846. msgstr ""
  9847. #. type: anchor{#1}
  9848. #: guix-git/doc/guix.texi:5145
  9849. msgid "channel-authentication"
  9850. msgstr ""
  9851. #. type: Plain text
  9852. #: guix-git/doc/guix.texi:5151
  9853. msgid "The @command{guix pull} and @command{guix time-machine} commands @dfn{authenticate} the code retrieved from channels: they make sure each commit that is fetched is signed by an authorized developer. The goal is to protect from unauthorized modifications to the channel that would lead users to run malicious code."
  9854. msgstr ""
  9855. #. type: Plain text
  9856. #: guix-git/doc/guix.texi:5156
  9857. msgid "As a user, you must provide a @dfn{channel introduction} in your channels file so that Guix knows how to authenticate its first commit. A channel specification, including its introduction, looks something along these lines:"
  9858. msgstr ""
  9859. #. type: lisp
  9860. #: guix-git/doc/guix.texi:5166
  9861. #, no-wrap
  9862. msgid ""
  9863. "(channel\n"
  9864. " (name 'some-channel)\n"
  9865. " (url \"https://example.org/some-channel.git\")\n"
  9866. " (introduction\n"
  9867. " (make-channel-introduction\n"
  9868. " \"6f0d8cc0d88abb59c324b2990bfee2876016bb86\"\n"
  9869. " (openpgp-fingerprint\n"
  9870. " \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  9871. msgstr ""
  9872. #. type: Plain text
  9873. #: guix-git/doc/guix.texi:5172
  9874. msgid "The specification above shows the name and URL of the channel. The call to @code{make-channel-introduction} above specifies that authentication of this channel starts at commit @code{6f0d8cc@dots{}}, which is signed by the OpenPGP key with fingerprint @code{CABB A931@dots{}}."
  9875. msgstr ""
  9876. #. type: Plain text
  9877. #: guix-git/doc/guix.texi:5178
  9878. msgid "For the main channel, called @code{guix}, you automatically get that information from your Guix installation. For other channels, include the channel introduction provided by the channel authors in your @file{channels.scm} file. Make sure you retrieve the channel introduction from a trusted source since that is the root of your trust."
  9879. msgstr ""
  9880. #. type: Plain text
  9881. #: guix-git/doc/guix.texi:5180
  9882. msgid "If you're curious about the authentication mechanics, read on!"
  9883. msgstr ""
  9884. #. type: Plain text
  9885. #: guix-git/doc/guix.texi:5191
  9886. msgid "When running @command{guix pull}, Guix will first compile the definitions of every available package. This is an expensive operation for which substitutes (@pxref{Substitutes}) may be available. The following snippet in @file{channels.scm} will ensure that @command{guix pull} uses the latest commit with available substitutes for the package definitions: this is done by querying the continuous integration server at @url{https://ci.guix.gnu.org}."
  9887. msgstr ""
  9888. #. type: lisp
  9889. #: guix-git/doc/guix.texi:5194
  9890. #, no-wrap
  9891. msgid ""
  9892. "(use-modules (guix ci))\n"
  9893. "\n"
  9894. msgstr ""
  9895. #. type: lisp
  9896. #: guix-git/doc/guix.texi:5198
  9897. #, no-wrap
  9898. msgid ""
  9899. "(list (channel-with-substitutes-available\n"
  9900. " %default-guix-channel\n"
  9901. " \"https://ci.guix.gnu.org\"))\n"
  9902. msgstr ""
  9903. #. type: Plain text
  9904. #: guix-git/doc/guix.texi:5205
  9905. msgid "Note that this does not mean that all the packages that you will install after running @command{guix pull} will have available substitutes. It only ensures that @command{guix pull} will not try to compile package definitions. This is particularly useful when using machines with limited resources."
  9906. msgstr ""
  9907. #. type: cindex
  9908. #: guix-git/doc/guix.texi:5209
  9909. #, no-wrap
  9910. msgid "personal packages (channels)"
  9911. msgstr ""
  9912. #. type: cindex
  9913. #: guix-git/doc/guix.texi:5210
  9914. #, no-wrap
  9915. msgid "channels, for personal packages"
  9916. msgstr ""
  9917. #. type: Plain text
  9918. #: guix-git/doc/guix.texi:5218
  9919. msgid "Let's say you have a bunch of custom package variants or personal packages that you think would make little sense to contribute to the Guix project, but would like to have these packages transparently available to you at the command line. You would first write modules containing those package definitions (@pxref{Package Modules}), maintain them in a Git repository, and then you and anyone else can use it as an additional channel to get packages from. Neat, no?"
  9920. msgstr ""
  9921. #. type: quotation
  9922. #: guix-git/doc/guix.texi:5222 guix-git/doc/guix.texi:6068
  9923. #: guix-git/doc/guix.texi:13784 guix-git/doc/guix.texi:19856
  9924. #: guix-git/doc/guix.texi:19863
  9925. #, no-wrap
  9926. msgid "Warning"
  9927. msgstr ""
  9928. #. type: quotation
  9929. #: guix-git/doc/guix.texi:5226
  9930. msgid "Before you, dear user, shout---``woow this is @emph{soooo coool}!''---and publish your personal channel to the world, we would like to share a few words of caution:"
  9931. msgstr ""
  9932. #. type: itemize
  9933. #: guix-git/doc/guix.texi:5234
  9934. msgid "Before publishing a channel, please consider contributing your package definitions to Guix proper (@pxref{Contributing}). Guix as a project is open to free software of all sorts, and packages in Guix proper are readily available to all Guix users and benefit from the project's quality assurance process."
  9935. msgstr ""
  9936. #. type: itemize
  9937. #: guix-git/doc/guix.texi:5243
  9938. msgid "When you maintain package definitions outside Guix, we, Guix developers, consider that @emph{the compatibility burden is on you}. Remember that package modules and package definitions are just Scheme code that uses various programming interfaces (APIs). We want to remain free to change these APIs to keep improving Guix, possibly in ways that break your channel. We never change APIs gratuitously, but we will @emph{not} commit to freezing APIs either."
  9939. msgstr ""
  9940. #. type: itemize
  9941. #: guix-git/doc/guix.texi:5247
  9942. msgid "Corollary: if you're using an external channel and that channel breaks, please @emph{report the issue to the channel authors}, not to the Guix project."
  9943. msgstr ""
  9944. #. type: quotation
  9945. #: guix-git/doc/guix.texi:5254
  9946. msgid "You've been warned! Having said this, we believe external channels are a practical way to exert your freedom to augment Guix' package collection and to share your improvements, which are basic tenets of @uref{https://www.gnu.org/philosophy/free-sw.html, free software}. Please email us at @email{guix-devel@@gnu.org} if you'd like to discuss this."
  9947. msgstr ""
  9948. #. type: Plain text
  9949. #: guix-git/doc/guix.texi:5266
  9950. msgid "To create a channel, create a Git repository containing your own package modules and make it available. The repository can contain anything, but a useful channel will contain Guile modules that export packages. Once you start using a channel, Guix will behave as if the root directory of that channel's Git repository has been added to the Guile load path (@pxref{Load Paths,,, guile, GNU Guile Reference Manual}). For example, if your channel contains a file at @file{my-packages/my-tools.scm} that defines a Guile module, then the module will be available under the name @code{(my-packages my-tools)}, and you will be able to use it like any other module (@pxref{Modules,,, guile, GNU Guile Reference Manual})."
  9951. msgstr ""
  9952. #. type: Plain text
  9953. #: guix-git/doc/guix.texi:5271
  9954. msgid "As a channel author, consider bundling authentication material with your channel so that users can authenticate it. @xref{Channel Authentication}, and @ref{Specifying Channel Authorizations}, for info on how to do it."
  9955. msgstr ""
  9956. #. type: cindex
  9957. #: guix-git/doc/guix.texi:5276
  9958. #, no-wrap
  9959. msgid "subdirectory, channels"
  9960. msgstr ""
  9961. #. type: Plain text
  9962. #: guix-git/doc/guix.texi:5280
  9963. msgid "As a channel author, you may want to keep your channel modules in a sub-directory. If your modules are in the sub-directory @file{guix}, you must add a meta-data file @file{.guix-channel} that contains:"
  9964. msgstr ""
  9965. #. type: lisp
  9966. #: guix-git/doc/guix.texi:5285
  9967. #, no-wrap
  9968. msgid ""
  9969. "(channel\n"
  9970. " (version 0)\n"
  9971. " (directory \"guix\"))\n"
  9972. msgstr ""
  9973. #. type: cindex
  9974. #: guix-git/doc/guix.texi:5290
  9975. #, no-wrap
  9976. msgid "dependencies, channels"
  9977. msgstr ""
  9978. #. type: cindex
  9979. #: guix-git/doc/guix.texi:5291
  9980. #, no-wrap
  9981. msgid "meta-data, channels"
  9982. msgstr ""
  9983. #. type: Plain text
  9984. #: guix-git/doc/guix.texi:5296
  9985. msgid "Channel authors may decide to augment a package collection provided by other channels. They can declare their channel to be dependent on other channels in a meta-data file @file{.guix-channel}, which is to be placed in the root of the channel repository."
  9986. msgstr ""
  9987. #. type: Plain text
  9988. #: guix-git/doc/guix.texi:5298
  9989. msgid "The meta-data file should contain a simple S-expression like this:"
  9990. msgstr ""
  9991. #. type: lisp
  9992. #: guix-git/doc/guix.texi:5306
  9993. #, no-wrap
  9994. msgid ""
  9995. "(channel\n"
  9996. " (version 0)\n"
  9997. " (dependencies\n"
  9998. " (channel\n"
  9999. " (name some-collection)\n"
  10000. " (url \"https://example.org/first-collection.git\")\n"
  10001. "\n"
  10002. msgstr ""
  10003. #. type: lisp
  10004. #: guix-git/doc/guix.texi:5318
  10005. #, no-wrap
  10006. msgid ""
  10007. " ;; The 'introduction' bit below is optional: you would\n"
  10008. " ;; provide it for dependencies that can be authenticated.\n"
  10009. " (introduction\n"
  10010. " (channel-introduction\n"
  10011. " (version 0)\n"
  10012. " (commit \"a8883b58dc82e167c96506cf05095f37c2c2c6cd\")\n"
  10013. " (signer \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10014. " (channel\n"
  10015. " (name some-other-collection)\n"
  10016. " (url \"https://example.org/second-collection.git\")\n"
  10017. " (branch \"testing\"))))\n"
  10018. msgstr ""
  10019. #. type: Plain text
  10020. #: guix-git/doc/guix.texi:5324
  10021. msgid "In the above example this channel is declared to depend on two other channels, which will both be fetched automatically. The modules provided by the channel will be compiled in an environment where the modules of all these declared channels are available."
  10022. msgstr ""
  10023. #. type: Plain text
  10024. #: guix-git/doc/guix.texi:5328
  10025. msgid "For the sake of reliability and maintainability, you should avoid dependencies on channels that you don't control, and you should aim to keep the number of dependencies to a minimum."
  10026. msgstr ""
  10027. #. type: cindex
  10028. #: guix-git/doc/guix.texi:5332
  10029. #, no-wrap
  10030. msgid "channel authorizations"
  10031. msgstr ""
  10032. #. type: anchor{#1}
  10033. #: guix-git/doc/guix.texi:5346
  10034. msgid "channel-authorizations"
  10035. msgstr ""
  10036. #. type: Plain text
  10037. #: guix-git/doc/guix.texi:5346
  10038. msgid "As we saw above, Guix ensures the source code it pulls from channels comes from authorized developers. As a channel author, you need to specify the list of authorized developers in the @file{.guix-authorizations} file in the channel's Git repository. The authentication rule is simple: each commit must be signed by a key listed in the @file{.guix-authorizations} file of its parent commit(s)@footnote{Git commits form a @dfn{directed acyclic graph} (DAG). Each commit can have zero or more parents; ``regular'' commits have one parent and merge commits have two parent commits. Read @uref{https://eagain.net/articles/git-for-computer-scientists/, @i{Git for Computer Scientists}} for a great overview.} The @file{.guix-authorizations} file looks like this:"
  10039. msgstr ""
  10040. #. type: lisp
  10041. #: guix-git/doc/guix.texi:5349
  10042. #, no-wrap
  10043. msgid ""
  10044. ";; Example '.guix-authorizations' file.\n"
  10045. "\n"
  10046. msgstr ""
  10047. #. type: lisp
  10048. #: guix-git/doc/guix.texi:5352
  10049. #, no-wrap
  10050. msgid ""
  10051. "(authorizations\n"
  10052. " (version 0) ;current file format version\n"
  10053. "\n"
  10054. msgstr ""
  10055. #. type: lisp
  10056. #: guix-git/doc/guix.texi:5359
  10057. #, no-wrap
  10058. msgid ""
  10059. " ((\"AD17 A21E F8AE D8F1 CC02 DBD9 F8AE D8F1 765C 61E3\"\n"
  10060. " (name \"alice\"))\n"
  10061. " (\"2A39 3FFF 68F4 EF7A 3D29 12AF 68F4 EF7A 22FB B2D5\"\n"
  10062. " (name \"bob\"))\n"
  10063. " (\"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"\n"
  10064. " (name \"charlie\"))))\n"
  10065. msgstr ""
  10066. #. type: Plain text
  10067. #: guix-git/doc/guix.texi:5363
  10068. msgid "Each fingerprint is followed by optional key/value pairs, as in the example above. Currently these key/value pairs are ignored."
  10069. msgstr ""
  10070. #. type: Plain text
  10071. #: guix-git/doc/guix.texi:5368
  10072. msgid "This authentication rule creates a chicken-and-egg issue: how do we authenticate the first commit? Related to that: how do we deal with channels whose repository history contains unsigned commits and lack @file{.guix-authorizations}? And how do we fork existing channels?"
  10073. msgstr ""
  10074. #. type: cindex
  10075. #: guix-git/doc/guix.texi:5369
  10076. #, fuzzy, no-wrap
  10077. msgid "channel introduction"
  10078. msgstr "介绍"
  10079. #. type: Plain text
  10080. #: guix-git/doc/guix.texi:5376
  10081. msgid "Channel introductions answer these questions by describing the first commit of a channel that should be authenticated. The first time a channel is fetched with @command{guix pull} or @command{guix time-machine}, the command looks up the introductory commit and verifies that it is signed by the specified OpenPGP key. From then on, it authenticates commits according to the rule above."
  10082. msgstr ""
  10083. #. type: Plain text
  10084. #: guix-git/doc/guix.texi:5383
  10085. msgid "Additionally, your channel must provide all the OpenPGP keys that were ever mentioned in @file{.guix-authorizations}, stored as @file{.key} files, which can be either binary or ``ASCII-armored''. By default, those @file{.key} files are searched for in the branch named @code{keyring} but you can specify a different branch name in @code{.guix-channel} like so:"
  10086. msgstr ""
  10087. #. type: lisp
  10088. #: guix-git/doc/guix.texi:5388
  10089. #, no-wrap
  10090. msgid ""
  10091. "(channel\n"
  10092. " (version 0)\n"
  10093. " (keyring-reference \"my-keyring-branch\"))\n"
  10094. msgstr ""
  10095. #. type: Plain text
  10096. #: guix-git/doc/guix.texi:5392
  10097. msgid "To summarize, as the author of a channel, there are three things you have to do to allow users to authenticate your code:"
  10098. msgstr ""
  10099. #. type: enumerate
  10100. #: guix-git/doc/guix.texi:5398
  10101. msgid "Export the OpenPGP keys of past and present committers with @command{gpg --export} and store them in @file{.key} files, by default in a branch named @code{keyring} (we recommend making it an @dfn{orphan branch})."
  10102. msgstr ""
  10103. #. type: enumerate
  10104. #: guix-git/doc/guix.texi:5403
  10105. msgid "Introduce an initial @file{.guix-authorizations} in the channel's repository. Do that in a signed commit (@pxref{Commit Access}, for information on how to sign Git commits.)"
  10106. msgstr ""
  10107. #. type: enumerate
  10108. #: guix-git/doc/guix.texi:5409
  10109. msgid "Advertise the channel introduction, for instance on your channel's web page. The channel introduction, as we saw above, is the commit/key pair---i.e., the commit that introduced @file{.guix-authorizations}, and the fingerprint of the OpenPGP used to sign it."
  10110. msgstr ""
  10111. #. type: Plain text
  10112. #: guix-git/doc/guix.texi:5414
  10113. msgid "Before pushing to your public Git repository, you can run @command{guix git-authenticate} to verify that you did sign all the commits you are about to push with an authorized key:"
  10114. msgstr ""
  10115. #. type: example
  10116. #: guix-git/doc/guix.texi:5417
  10117. #, no-wrap
  10118. msgid "guix git authenticate @var{commit} @var{signer}\n"
  10119. msgstr ""
  10120. #. type: Plain text
  10121. #: guix-git/doc/guix.texi:5422
  10122. msgid "where @var{commit} and @var{signer} are your channel introduction. @xref{Invoking guix git authenticate}, for details."
  10123. msgstr ""
  10124. #. type: Plain text
  10125. #: guix-git/doc/guix.texi:5429
  10126. msgid "Publishing a signed channel requires discipline: any mistake, such as an unsigned commit or a commit signed by an unauthorized key, will prevent users from pulling from your channel---well, that's the whole point of authentication! Pay attention to merges in particular: merge commits are considered authentic if and only if they are signed by a key present in the @file{.guix-authorizations} file of @emph{both} branches."
  10127. msgstr ""
  10128. #. type: cindex
  10129. #: guix-git/doc/guix.texi:5433
  10130. #, no-wrap
  10131. msgid "primary URL, channels"
  10132. msgstr ""
  10133. #. type: Plain text
  10134. #: guix-git/doc/guix.texi:5436
  10135. msgid "Channel authors can indicate the primary URL of their channel's Git repository in the @file{.guix-channel} file, like so:"
  10136. msgstr ""
  10137. #. type: lisp
  10138. #: guix-git/doc/guix.texi:5441
  10139. #, no-wrap
  10140. msgid ""
  10141. "(channel\n"
  10142. " (version 0)\n"
  10143. " (url \"https://example.org/guix.git\"))\n"
  10144. msgstr ""
  10145. #. type: Plain text
  10146. #: guix-git/doc/guix.texi:5448
  10147. msgid "This allows @command{guix pull} to determine whether it is pulling code from a mirror of the channel; when that is the case, it warns the user that the mirror might be stale and displays the primary URL@. That way, users cannot be tricked into fetching code from a stale mirror that does not receive security updates."
  10148. msgstr ""
  10149. #. type: Plain text
  10150. #: guix-git/doc/guix.texi:5452
  10151. msgid "This feature only makes sense for authenticated repositories, such as the official @code{guix} channel, for which @command{guix pull} ensures the code it fetches is authentic."
  10152. msgstr ""
  10153. #. type: cindex
  10154. #: guix-git/doc/guix.texi:5456
  10155. #, no-wrap
  10156. msgid "news, for channels"
  10157. msgstr ""
  10158. #. type: Plain text
  10159. #: guix-git/doc/guix.texi:5460
  10160. msgid "Channel authors may occasionally want to communicate to their users information about important changes in the channel. You'd send them all an email, but that's not convenient."
  10161. msgstr ""
  10162. #. type: Plain text
  10163. #: guix-git/doc/guix.texi:5465
  10164. msgid "Instead, channels can provide a @dfn{news file}; when the channel users run @command{guix pull}, that news file is automatically read and @command{guix pull --news} can display the announcements that correspond to the new commits that have been pulled, if any."
  10165. msgstr ""
  10166. #. type: Plain text
  10167. #: guix-git/doc/guix.texi:5468
  10168. msgid "To do that, channel authors must first declare the name of the news file in their @file{.guix-channel} file:"
  10169. msgstr ""
  10170. #. type: lisp
  10171. #: guix-git/doc/guix.texi:5473
  10172. #, no-wrap
  10173. msgid ""
  10174. "(channel\n"
  10175. " (version 0)\n"
  10176. " (news-file \"etc/news.txt\"))\n"
  10177. msgstr ""
  10178. #. type: Plain text
  10179. #: guix-git/doc/guix.texi:5477
  10180. msgid "The news file itself, @file{etc/news.txt} in this example, must look something like this:"
  10181. msgstr ""
  10182. #. type: lisp
  10183. #: guix-git/doc/guix.texi:5490
  10184. #, no-wrap
  10185. msgid ""
  10186. "(channel-news\n"
  10187. " (version 0)\n"
  10188. " (entry (tag \"the-bug-fix\")\n"
  10189. " (title (en \"Fixed terrible bug\")\n"
  10190. " (fr \"Oh la la\"))\n"
  10191. " (body (en \"@@emph@{Good news@}! It's fixed!\")\n"
  10192. " (eo \"Certe ĝi pli bone funkcias nun!\")))\n"
  10193. " (entry (commit \"bdcabe815cd28144a2d2b4bc3c5057b051fa9906\")\n"
  10194. " (title (en \"Added a great package\")\n"
  10195. " (ca \"Què vol dir guix?\"))\n"
  10196. " (body (en \"Don't miss the @@code@{hello@} package!\"))))\n"
  10197. msgstr ""
  10198. #. type: Plain text
  10199. #: guix-git/doc/guix.texi:5497
  10200. msgid "While the news file is using the Scheme syntax, avoid naming it with a @file{.scm} extension or else it will get picked up when building the channel and yield an error since it is not a valid module. Alternatively, you can move the channel module to a subdirectory and store the news file in another directory."
  10201. msgstr ""
  10202. #. type: Plain text
  10203. #: guix-git/doc/guix.texi:5502
  10204. msgid "The file consists of a list of @dfn{news entries}. Each entry is associated with a commit or tag: it describes changes made in this commit, possibly in preceding commits as well. Users see entries only the first time they obtain the commit the entry refers to."
  10205. msgstr ""
  10206. #. type: Plain text
  10207. #: guix-git/doc/guix.texi:5508
  10208. msgid "The @code{title} field should be a one-line summary while @code{body} can be arbitrarily long, and both can contain Texinfo markup (@pxref{Overview,,, texinfo, GNU Texinfo}). Both the title and body are a list of language tag/message tuples, which allows @command{guix pull} to display news in the language that corresponds to the user's locale."
  10209. msgstr ""
  10210. #. type: Plain text
  10211. #: guix-git/doc/guix.texi:5514
  10212. msgid "If you want to translate news using a gettext-based workflow, you can extract translatable strings with @command{xgettext} (@pxref{xgettext Invocation,,, gettext, GNU Gettext Utilities}). For example, assuming you write news entries in English first, the command below creates a PO file containing the strings to translate:"
  10213. msgstr ""
  10214. #. type: example
  10215. #: guix-git/doc/guix.texi:5517
  10216. #, no-wrap
  10217. msgid "xgettext -o news.po -l scheme -ken etc/news.txt\n"
  10218. msgstr ""
  10219. #. type: Plain text
  10220. #: guix-git/doc/guix.texi:5521
  10221. msgid "To sum up, yes, you could use your channel as a blog. But beware, this is @emph{not quite} what your users might expect."
  10222. msgstr ""
  10223. #. type: cindex
  10224. #: guix-git/doc/guix.texi:5526
  10225. #, no-wrap
  10226. msgid "software development"
  10227. msgstr ""
  10228. #. type: Plain text
  10229. #: guix-git/doc/guix.texi:5530
  10230. msgid "If you are a software developer, Guix provides tools that you should find helpful---independently of the language you're developing in. This is what this chapter is about."
  10231. msgstr ""
  10232. #. type: Plain text
  10233. #: guix-git/doc/guix.texi:5536
  10234. msgid "The @command{guix environment} command provides a convenient way to set up @dfn{development environments} containing all the dependencies and tools necessary to work on the software package of your choice. The @command{guix pack} command allows you to create @dfn{application bundles} that can be easily distributed to users who do not run Guix."
  10235. msgstr ""
  10236. #. type: section
  10237. #: guix-git/doc/guix.texi:5545
  10238. #, no-wrap
  10239. msgid "Invoking @command{guix environment}"
  10240. msgstr ""
  10241. #. type: cindex
  10242. #: guix-git/doc/guix.texi:5547
  10243. #, no-wrap
  10244. msgid "reproducible build environments"
  10245. msgstr ""
  10246. #. type: cindex
  10247. #: guix-git/doc/guix.texi:5548
  10248. #, no-wrap
  10249. msgid "development environments"
  10250. msgstr ""
  10251. #. type: command{#1}
  10252. #: guix-git/doc/guix.texi:5549
  10253. #, no-wrap
  10254. msgid "guix environment"
  10255. msgstr ""
  10256. #. type: cindex
  10257. #: guix-git/doc/guix.texi:5550
  10258. #, no-wrap
  10259. msgid "environment, package build environment"
  10260. msgstr ""
  10261. #. type: Plain text
  10262. #: guix-git/doc/guix.texi:5556
  10263. msgid "The purpose of @command{guix environment} is to assist hackers in creating reproducible development environments without polluting their package profile. The @command{guix environment} tool takes one or more packages, builds all of their inputs, and creates a shell environment to use them."
  10264. msgstr ""
  10265. #. type: example
  10266. #: guix-git/doc/guix.texi:5561
  10267. #, no-wrap
  10268. msgid "guix environment @var{options} @var{package}@dots{}\n"
  10269. msgstr ""
  10270. #. type: Plain text
  10271. #: guix-git/doc/guix.texi:5565
  10272. msgid "The following example spawns a new shell set up for the development of GNU@tie{}Guile:"
  10273. msgstr ""
  10274. #. type: example
  10275. #: guix-git/doc/guix.texi:5568
  10276. #, no-wrap
  10277. msgid "guix environment guile\n"
  10278. msgstr ""
  10279. #. type: Plain text
  10280. #: guix-git/doc/guix.texi:5585
  10281. msgid "If the needed dependencies are not built yet, @command{guix environment} automatically builds them. The environment of the new shell is an augmented version of the environment that @command{guix environment} was run in. It contains the necessary search paths for building the given package added to the existing environment variables. To create a ``pure'' environment, in which the original environment variables have been unset, use the @option{--pure} option@footnote{Users sometimes wrongfully augment environment variables such as @env{PATH} in their @file{~/.bashrc} file. As a consequence, when @command{guix environment} launches it, Bash may read @file{~/.bashrc}, thereby introducing ``impurities'' in these environment variables. It is an error to define such environment variables in @file{.bashrc}; instead, they should be defined in @file{.bash_profile}, which is sourced only by log-in shells. @xref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}, for details on Bash start-up files.}."
  10282. msgstr ""
  10283. #. type: Plain text
  10284. #: guix-git/doc/guix.texi:5591
  10285. msgid "Exiting from a Guix environment is the same as exiting from the shell, and will place the user back in the old environment before @command{guix environment} was invoked. The next garbage collection (@pxref{Invoking guix gc}) will clean up packages that were installed from within the environment and are no longer used outside of it."
  10286. msgstr ""
  10287. #. type: vindex
  10288. #: guix-git/doc/guix.texi:5592
  10289. #, no-wrap
  10290. msgid "GUIX_ENVIRONMENT"
  10291. msgstr ""
  10292. #. type: Plain text
  10293. #: guix-git/doc/guix.texi:5598
  10294. msgid "@command{guix environment} defines the @env{GUIX_ENVIRONMENT} variable in the shell it spawns; its value is the file name of the profile of this environment. This allows users to, say, define a specific prompt for development environments in their @file{.bashrc} (@pxref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}):"
  10295. msgstr ""
  10296. #. type: example
  10297. #: guix-git/doc/guix.texi:5604
  10298. #, no-wrap
  10299. msgid ""
  10300. "if [ -n \"$GUIX_ENVIRONMENT\" ]\n"
  10301. "then\n"
  10302. " export PS1=\"\\u@@\\h \\w [dev]\\$ \"\n"
  10303. "fi\n"
  10304. msgstr ""
  10305. #. type: Plain text
  10306. #: guix-git/doc/guix.texi:5608
  10307. msgid "...@: or to browse the profile:"
  10308. msgstr ""
  10309. #. type: example
  10310. #: guix-git/doc/guix.texi:5611
  10311. #, no-wrap
  10312. msgid "$ ls \"$GUIX_ENVIRONMENT/bin\"\n"
  10313. msgstr ""
  10314. #. type: Plain text
  10315. #: guix-git/doc/guix.texi:5617
  10316. msgid "Additionally, more than one package may be specified, in which case the union of the inputs for the given packages are used. For example, the command below spawns a shell where all of the dependencies of both Guile and Emacs are available:"
  10317. msgstr ""
  10318. #. type: example
  10319. #: guix-git/doc/guix.texi:5620
  10320. #, no-wrap
  10321. msgid "guix environment guile emacs\n"
  10322. msgstr ""
  10323. #. type: Plain text
  10324. #: guix-git/doc/guix.texi:5625
  10325. msgid "Sometimes an interactive shell session is not desired. An arbitrary command may be invoked by placing the @code{--} token to separate the command from the rest of the arguments:"
  10326. msgstr ""
  10327. #. type: example
  10328. #: guix-git/doc/guix.texi:5628
  10329. #, no-wrap
  10330. msgid "guix environment guile -- make -j4\n"
  10331. msgstr ""
  10332. #. type: Plain text
  10333. #: guix-git/doc/guix.texi:5634
  10334. msgid "In other situations, it is more convenient to specify the list of packages needed in the environment. For example, the following command runs @command{python} from an environment containing Python@tie{}2.7 and NumPy:"
  10335. msgstr ""
  10336. #. type: example
  10337. #: guix-git/doc/guix.texi:5637
  10338. #, no-wrap
  10339. msgid "guix environment --ad-hoc python2-numpy python-2.7 -- python\n"
  10340. msgstr ""
  10341. #. type: Plain text
  10342. #: guix-git/doc/guix.texi:5648
  10343. msgid "Furthermore, one might want the dependencies of a package and also some additional packages that are not build-time or runtime dependencies, but are useful when developing nonetheless. Because of this, the @option{--ad-hoc} flag is positional. Packages appearing before @option{--ad-hoc} are interpreted as packages whose dependencies will be added to the environment. Packages appearing after are interpreted as packages that will be added to the environment directly. For example, the following command creates a Guix development environment that additionally includes Git and strace:"
  10344. msgstr ""
  10345. #. type: example
  10346. #: guix-git/doc/guix.texi:5651
  10347. #, fuzzy, no-wrap
  10348. msgid "guix environment --pure guix --ad-hoc git strace\n"
  10349. msgstr "guix environment guix --ad-hoc help2man git strace\n"
  10350. #. type: item
  10351. #: guix-git/doc/guix.texi:5653 guix-git/doc/guix.texi:5814
  10352. #: guix-git/doc/guix.texi:13182 guix-git/doc/guix.texi:33803
  10353. #, no-wrap
  10354. msgid "container"
  10355. msgstr ""
  10356. #. type: Plain text
  10357. #: guix-git/doc/guix.texi:5661
  10358. msgid "Sometimes it is desirable to isolate the environment as much as possible, for maximal purity and reproducibility. In particular, when using Guix on a host distro that is not Guix System, it is desirable to prevent access to @file{/usr/bin} and other system-wide resources from the development environment. For example, the following command spawns a Guile REPL in a ``container'' where only the store and the current working directory are mounted:"
  10359. msgstr ""
  10360. #. type: example
  10361. #: guix-git/doc/guix.texi:5664
  10362. #, no-wrap
  10363. msgid "guix environment --ad-hoc --container guile -- guile\n"
  10364. msgstr ""
  10365. #. type: quotation
  10366. #: guix-git/doc/guix.texi:5668
  10367. msgid "The @option{--container} option requires Linux-libre 3.19 or newer."
  10368. msgstr ""
  10369. #. type: cindex
  10370. #: guix-git/doc/guix.texi:5670
  10371. #, fuzzy, no-wrap
  10372. msgid "certificates"
  10373. msgstr "X.509证书"
  10374. #. type: Plain text
  10375. #: guix-git/doc/guix.texi:5677
  10376. msgid "Another typical use case for containers is to run security-sensitive applications such as a web browser. To run Eolie, we must expose and share some files and directories; we include @code{nss-certs} and expose @file{/etc/ssl/certs/} for HTTPS authentication; finally we preserve the @env{DISPLAY} environment variable since containerized graphical applications won't display without it."
  10377. msgstr ""
  10378. #. type: example
  10379. #: guix-git/doc/guix.texi:5684
  10380. #, no-wrap
  10381. msgid ""
  10382. "guix environment --preserve='^DISPLAY$' --container --network \\\n"
  10383. " --expose=/etc/machine-id \\\n"
  10384. " --expose=/etc/ssl/certs/ \\\n"
  10385. " --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \\\n"
  10386. " --ad-hoc eolie nss-certs dbus -- eolie\n"
  10387. msgstr ""
  10388. #. type: Plain text
  10389. #: guix-git/doc/guix.texi:5687
  10390. msgid "The available options are summarized below."
  10391. msgstr ""
  10392. #. type: item
  10393. #: guix-git/doc/guix.texi:5689 guix-git/doc/guix.texi:6254
  10394. #: guix-git/doc/guix.texi:10937 guix-git/doc/guix.texi:33900
  10395. #, no-wrap
  10396. msgid "--root=@var{file}"
  10397. msgstr ""
  10398. #. type: itemx
  10399. #: guix-git/doc/guix.texi:5690 guix-git/doc/guix.texi:6255
  10400. #: guix-git/doc/guix.texi:10938 guix-git/doc/guix.texi:33901
  10401. #, no-wrap
  10402. msgid "-r @var{file}"
  10403. msgstr ""
  10404. #. type: cindex
  10405. #: guix-git/doc/guix.texi:5691
  10406. #, no-wrap
  10407. msgid "persistent environment"
  10408. msgstr ""
  10409. #. type: cindex
  10410. #: guix-git/doc/guix.texi:5692
  10411. #, no-wrap
  10412. msgid "garbage collector root, for environments"
  10413. msgstr ""
  10414. #. type: table
  10415. #: guix-git/doc/guix.texi:5695
  10416. msgid "Make @var{file} a symlink to the profile for this environment, and register it as a garbage collector root."
  10417. msgstr ""
  10418. #. type: table
  10419. #: guix-git/doc/guix.texi:5698
  10420. msgid "This is useful if you want to protect your environment from garbage collection, to make it ``persistent''."
  10421. msgstr ""
  10422. #. type: table
  10423. #: guix-git/doc/guix.texi:5704
  10424. msgid "When this option is omitted, the environment is protected from garbage collection only for the duration of the @command{guix environment} session. This means that next time you recreate the same environment, you could have to rebuild or re-download packages. @xref{Invoking guix gc}, for more on GC roots."
  10425. msgstr ""
  10426. #. type: item
  10427. #: guix-git/doc/guix.texi:5705 guix-git/doc/guix.texi:6186
  10428. #: guix-git/doc/guix.texi:10783 guix-git/doc/guix.texi:11829
  10429. #: guix-git/doc/guix.texi:12626 guix-git/doc/guix.texi:33835
  10430. #, no-wrap
  10431. msgid "--expression=@var{expr}"
  10432. msgstr ""
  10433. #. type: itemx
  10434. #: guix-git/doc/guix.texi:5706 guix-git/doc/guix.texi:6187
  10435. #: guix-git/doc/guix.texi:10784 guix-git/doc/guix.texi:11830
  10436. #: guix-git/doc/guix.texi:12627 guix-git/doc/guix.texi:33836
  10437. #, no-wrap
  10438. msgid "-e @var{expr}"
  10439. msgstr ""
  10440. #. type: table
  10441. #: guix-git/doc/guix.texi:5709
  10442. msgid "Create an environment for the package or list of packages that @var{expr} evaluates to."
  10443. msgstr ""
  10444. #. type: table
  10445. #: guix-git/doc/guix.texi:5711
  10446. msgid "For example, running:"
  10447. msgstr ""
  10448. #. type: example
  10449. #: guix-git/doc/guix.texi:5714
  10450. #, no-wrap
  10451. msgid "guix environment -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  10452. msgstr ""
  10453. #. type: table
  10454. #: guix-git/doc/guix.texi:5718
  10455. msgid "starts a shell with the environment for this specific variant of the PETSc package."
  10456. msgstr ""
  10457. #. type: table
  10458. #: guix-git/doc/guix.texi:5720
  10459. msgid "Running:"
  10460. msgstr ""
  10461. #. type: example
  10462. #: guix-git/doc/guix.texi:5723
  10463. #, no-wrap
  10464. msgid "guix environment --ad-hoc -e '(@@ (gnu) %base-packages)'\n"
  10465. msgstr ""
  10466. #. type: table
  10467. #: guix-git/doc/guix.texi:5726
  10468. msgid "starts a shell with all the base system packages available."
  10469. msgstr ""
  10470. #. type: table
  10471. #: guix-git/doc/guix.texi:5729
  10472. msgid "The above commands only use the default output of the given packages. To select other outputs, two element tuples can be specified:"
  10473. msgstr ""
  10474. #. type: example
  10475. #: guix-git/doc/guix.texi:5732
  10476. #, no-wrap
  10477. msgid "guix environment --ad-hoc -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  10478. msgstr ""
  10479. #. type: item
  10480. #: guix-git/doc/guix.texi:5734
  10481. #, no-wrap
  10482. msgid "--load=@var{file}"
  10483. msgstr ""
  10484. #. type: itemx
  10485. #: guix-git/doc/guix.texi:5735
  10486. #, no-wrap
  10487. msgid "-l @var{file}"
  10488. msgstr ""
  10489. #. type: table
  10490. #: guix-git/doc/guix.texi:5738
  10491. msgid "Create an environment for the package or list of packages that the code within @var{file} evaluates to."
  10492. msgstr ""
  10493. #. type: lisp
  10494. #: guix-git/doc/guix.texi:5744
  10495. #, no-wrap
  10496. msgid "@verbatiminclude environment-gdb.scm\n"
  10497. msgstr ""
  10498. #. type: table
  10499. #: guix-git/doc/guix.texi:5751
  10500. msgid "Create an environment for the packages contained in the manifest object returned by the Scheme code in @var{file}. This option can be repeated several times, in which case the manifests are concatenated."
  10501. msgstr ""
  10502. #. type: table
  10503. #: guix-git/doc/guix.texi:5755
  10504. msgid "This is similar to the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files."
  10505. msgstr ""
  10506. #. type: item
  10507. #: guix-git/doc/guix.texi:5756
  10508. #, no-wrap
  10509. msgid "--ad-hoc"
  10510. msgstr ""
  10511. #. type: table
  10512. #: guix-git/doc/guix.texi:5761
  10513. msgid "Include all specified packages in the resulting environment, as if an @i{ad hoc} package were defined with them as inputs. This option is useful for quickly creating an environment without having to write a package expression to contain the desired inputs."
  10514. msgstr ""
  10515. #. type: table
  10516. #: guix-git/doc/guix.texi:5763
  10517. msgid "For instance, the command:"
  10518. msgstr ""
  10519. #. type: example
  10520. #: guix-git/doc/guix.texi:5766
  10521. #, no-wrap
  10522. msgid "guix environment --ad-hoc guile guile-sdl -- guile\n"
  10523. msgstr ""
  10524. #. type: table
  10525. #: guix-git/doc/guix.texi:5770
  10526. msgid "runs @command{guile} in an environment where Guile and Guile-SDL are available."
  10527. msgstr ""
  10528. #. type: table
  10529. #: guix-git/doc/guix.texi:5775
  10530. msgid "Note that this example implicitly asks for the default output of @code{guile} and @code{guile-sdl}, but it is possible to ask for a specific output---e.g., @code{glib:bin} asks for the @code{bin} output of @code{glib} (@pxref{Packages with Multiple Outputs})."
  10531. msgstr ""
  10532. #. type: table
  10533. #: guix-git/doc/guix.texi:5781
  10534. msgid "This option may be composed with the default behavior of @command{guix environment}. Packages appearing before @option{--ad-hoc} are interpreted as packages whose dependencies will be added to the environment, the default behavior. Packages appearing after are interpreted as packages that will be added to the environment directly."
  10535. msgstr ""
  10536. #. type: item
  10537. #: guix-git/doc/guix.texi:5782
  10538. #, no-wrap
  10539. msgid "--pure"
  10540. msgstr ""
  10541. #. type: table
  10542. #: guix-git/doc/guix.texi:5786
  10543. msgid "Unset existing environment variables when building the new environment, except those specified with @option{--preserve} (see below). This has the effect of creating an environment in which search paths only contain package inputs."
  10544. msgstr ""
  10545. #. type: item
  10546. #: guix-git/doc/guix.texi:5787
  10547. #, no-wrap
  10548. msgid "--preserve=@var{regexp}"
  10549. msgstr ""
  10550. #. type: itemx
  10551. #: guix-git/doc/guix.texi:5788
  10552. #, no-wrap
  10553. msgid "-E @var{regexp}"
  10554. msgstr ""
  10555. #. type: table
  10556. #: guix-git/doc/guix.texi:5793
  10557. msgid "When used alongside @option{--pure}, preserve the environment variables matching @var{regexp}---in other words, put them on a ``white list'' of environment variables that must be preserved. This option can be repeated several times."
  10558. msgstr ""
  10559. #. type: example
  10560. #: guix-git/doc/guix.texi:5797
  10561. #, no-wrap
  10562. msgid ""
  10563. "guix environment --pure --preserve=^SLURM --ad-hoc openmpi @dots{} \\\n"
  10564. " -- mpirun @dots{}\n"
  10565. msgstr ""
  10566. #. type: table
  10567. #: guix-git/doc/guix.texi:5803
  10568. msgid "This example runs @command{mpirun} in a context where the only environment variables defined are @env{PATH}, environment variables whose name starts with @samp{SLURM}, as well as the usual ``precious'' variables (@env{HOME}, @env{USER}, etc.)."
  10569. msgstr ""
  10570. #. type: item
  10571. #: guix-git/doc/guix.texi:5804
  10572. #, no-wrap
  10573. msgid "--search-paths"
  10574. msgstr ""
  10575. #. type: table
  10576. #: guix-git/doc/guix.texi:5807
  10577. msgid "Display the environment variable definitions that make up the environment."
  10578. msgstr ""
  10579. #. type: table
  10580. #: guix-git/doc/guix.texi:5811
  10581. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}."
  10582. msgstr ""
  10583. #. type: item
  10584. #: guix-git/doc/guix.texi:5812
  10585. #, no-wrap
  10586. msgid "--container"
  10587. msgstr ""
  10588. #. type: itemx
  10589. #: guix-git/doc/guix.texi:5813
  10590. #, no-wrap
  10591. msgid "-C"
  10592. msgstr ""
  10593. #. type: table
  10594. #: guix-git/doc/guix.texi:5820
  10595. msgid "Run @var{command} within an isolated container. The current working directory outside the container is mapped inside the container. Additionally, unless overridden with @option{--user}, a dummy home directory is created that matches the current user's home directory, and @file{/etc/passwd} is configured accordingly."
  10596. msgstr ""
  10597. #. type: table
  10598. #: guix-git/doc/guix.texi:5824
  10599. msgid "The spawned process runs as the current user outside the container. Inside the container, it has the same UID and GID as the current user, unless @option{--user} is passed (see below)."
  10600. msgstr ""
  10601. #. type: item
  10602. #: guix-git/doc/guix.texi:5825 guix-git/doc/guix.texi:33895
  10603. #, no-wrap
  10604. msgid "--network"
  10605. msgstr ""
  10606. #. type: table
  10607. #: guix-git/doc/guix.texi:5830
  10608. msgid "For containers, share the network namespace with the host system. Containers created without this flag only have access to the loopback device."
  10609. msgstr ""
  10610. #. type: item
  10611. #: guix-git/doc/guix.texi:5831
  10612. #, no-wrap
  10613. msgid "--link-profile"
  10614. msgstr ""
  10615. #. type: itemx
  10616. #: guix-git/doc/guix.texi:5832
  10617. #, no-wrap
  10618. msgid "-P"
  10619. msgstr ""
  10620. #. type: table
  10621. #: guix-git/doc/guix.texi:5840
  10622. msgid "For containers, link the environment profile to @file{~/.guix-profile} within the container and set @code{GUIX_ENVIRONMENT} to that. This is equivalent to making @file{~/.guix-profile} a symlink to the actual profile within the container. Linking will fail and abort the environment if the directory already exists, which will certainly be the case if @command{guix environment} was invoked in the user's home directory."
  10623. msgstr ""
  10624. #. type: table
  10625. #: guix-git/doc/guix.texi:5846
  10626. msgid "Certain packages are configured to look in @file{~/.guix-profile} for configuration files and data;@footnote{For example, the @code{fontconfig} package inspects @file{~/.guix-profile/share/fonts} for additional fonts.} @option{--link-profile} allows these programs to behave as expected within the environment."
  10627. msgstr ""
  10628. #. type: item
  10629. #: guix-git/doc/guix.texi:5847 guix-git/doc/guix.texi:12759
  10630. #, no-wrap
  10631. msgid "--user=@var{user}"
  10632. msgstr ""
  10633. #. type: itemx
  10634. #: guix-git/doc/guix.texi:5848 guix-git/doc/guix.texi:12760
  10635. #, no-wrap
  10636. msgid "-u @var{user}"
  10637. msgstr ""
  10638. #. type: table
  10639. #: guix-git/doc/guix.texi:5855
  10640. msgid "For containers, use the username @var{user} in place of the current user. The generated @file{/etc/passwd} entry within the container will contain the name @var{user}, the home directory will be @file{/home/@var{user}}, and no user GECOS data will be copied. Furthermore, the UID and GID inside the container are 1000. @var{user} need not exist on the system."
  10641. msgstr ""
  10642. #. type: table
  10643. #: guix-git/doc/guix.texi:5860
  10644. msgid "Additionally, any shared or exposed path (see @option{--share} and @option{--expose} respectively) whose target is within the current user's home directory will be remapped relative to @file{/home/USER}; this includes the automatic mapping of the current working directory."
  10645. msgstr ""
  10646. #. type: example
  10647. #: guix-git/doc/guix.texi:5867
  10648. #, no-wrap
  10649. msgid ""
  10650. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  10651. "cd $HOME/wd\n"
  10652. "guix environment --container --user=foo \\\n"
  10653. " --expose=$HOME/test \\\n"
  10654. " --expose=/tmp/target=$HOME/target\n"
  10655. msgstr ""
  10656. #. type: table
  10657. #: guix-git/doc/guix.texi:5872
  10658. msgid "While this will limit the leaking of user identity through home paths and each of the user fields, this is only one useful component of a broader privacy/anonymity solution---not one in and of itself."
  10659. msgstr ""
  10660. #. type: item
  10661. #: guix-git/doc/guix.texi:5873
  10662. #, no-wrap
  10663. msgid "--no-cwd"
  10664. msgstr ""
  10665. #. type: table
  10666. #: guix-git/doc/guix.texi:5880
  10667. msgid "For containers, the default behavior is to share the current working directory with the isolated container and immediately change to that directory within the container. If this is undesirable, @option{--no-cwd} will cause the current working directory to @emph{not} be automatically shared and will change to the user's home directory within the container instead. See also @option{--user}."
  10668. msgstr ""
  10669. #. type: item
  10670. #: guix-git/doc/guix.texi:5881
  10671. #, no-wrap
  10672. msgid "--expose=@var{source}[=@var{target}]"
  10673. msgstr ""
  10674. #. type: itemx
  10675. #: guix-git/doc/guix.texi:5882
  10676. #, no-wrap
  10677. msgid "--share=@var{source}[=@var{target}]"
  10678. msgstr ""
  10679. #. type: table
  10680. #: guix-git/doc/guix.texi:5888
  10681. msgid "For containers, @option{--expose} (resp. @option{--share}) exposes the file system @var{source} from the host system as the read-only (resp. writable) file system @var{target} within the container. If @var{target} is not specified, @var{source} is used as the target mount point in the container."
  10682. msgstr ""
  10683. #. type: table
  10684. #: guix-git/doc/guix.texi:5892
  10685. msgid "The example below spawns a Guile REPL in a container in which the user's home directory is accessible read-only via the @file{/exchange} directory:"
  10686. msgstr ""
  10687. #. type: example
  10688. #: guix-git/doc/guix.texi:5895
  10689. #, no-wrap
  10690. msgid "guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile\n"
  10691. msgstr ""
  10692. #. type: Plain text
  10693. #: guix-git/doc/guix.texi:5903
  10694. msgid "@command{guix environment} also supports all of the common build options that @command{guix build} supports (@pxref{Common Build Options}) as well as package transformation options (@pxref{Package Transformation Options})."
  10695. msgstr ""
  10696. #. type: section
  10697. #: guix-git/doc/guix.texi:5905
  10698. #, no-wrap
  10699. msgid "Invoking @command{guix pack}"
  10700. msgstr ""
  10701. #. type: Plain text
  10702. #: guix-git/doc/guix.texi:5911
  10703. msgid "Occasionally you want to pass software to people who are not (yet!) lucky enough to be using Guix. You'd tell them to run @command{guix package -i @var{something}}, but that's not possible in this case. This is where @command{guix pack} comes in."
  10704. msgstr ""
  10705. #. type: quotation
  10706. #: guix-git/doc/guix.texi:5916
  10707. msgid "If you are looking for ways to exchange binaries among machines that already run Guix, @pxref{Invoking guix copy}, @ref{Invoking guix publish}, and @ref{Invoking guix archive}."
  10708. msgstr ""
  10709. #. type: cindex
  10710. #: guix-git/doc/guix.texi:5918
  10711. #, no-wrap
  10712. msgid "pack"
  10713. msgstr ""
  10714. #. type: cindex
  10715. #: guix-git/doc/guix.texi:5919
  10716. #, no-wrap
  10717. msgid "bundle"
  10718. msgstr ""
  10719. #. type: cindex
  10720. #: guix-git/doc/guix.texi:5920
  10721. #, no-wrap
  10722. msgid "application bundle"
  10723. msgstr ""
  10724. #. type: cindex
  10725. #: guix-git/doc/guix.texi:5921
  10726. #, no-wrap
  10727. msgid "software bundle"
  10728. msgstr ""
  10729. #. type: Plain text
  10730. #: guix-git/doc/guix.texi:5930
  10731. msgid "The @command{guix pack} command creates a shrink-wrapped @dfn{pack} or @dfn{software bundle}: it creates a tarball or some other archive containing the binaries of the software you're interested in, and all its dependencies. The resulting archive can be used on any machine that does not have Guix, and people can run the exact same binaries as those you have with Guix. The pack itself is created in a bit-reproducible fashion, so anyone can verify that it really contains the build results that you pretend to be shipping."
  10732. msgstr ""
  10733. #. type: Plain text
  10734. #: guix-git/doc/guix.texi:5933
  10735. msgid "For example, to create a bundle containing Guile, Emacs, Geiser, and all their dependencies, you can run:"
  10736. msgstr ""
  10737. #. type: example
  10738. #: guix-git/doc/guix.texi:5938
  10739. #, no-wrap
  10740. msgid ""
  10741. "$ guix pack guile emacs emacs-geiser\n"
  10742. "@dots{}\n"
  10743. "/gnu/store/@dots{}-pack.tar.gz\n"
  10744. msgstr ""
  10745. #. type: Plain text
  10746. #: guix-git/doc/guix.texi:5946
  10747. msgid "The result here is a tarball containing a @file{/gnu/store} directory with all the relevant packages. The resulting tarball contains a @dfn{profile} with the three packages of interest; the profile is the same as would be created by @command{guix package -i}. It is this mechanism that is used to create Guix's own standalone binary tarball (@pxref{Binary Installation})."
  10748. msgstr ""
  10749. #. type: Plain text
  10750. #: guix-git/doc/guix.texi:5951
  10751. msgid "Users of this pack would have to run @file{/gnu/store/@dots{}-profile/bin/guile} to run Guile, which you may find inconvenient. To work around it, you can create, say, a @file{/opt/gnu/bin} symlink to the profile:"
  10752. msgstr ""
  10753. #. type: example
  10754. #: guix-git/doc/guix.texi:5954
  10755. #, fuzzy, no-wrap
  10756. msgid "guix pack -S /opt/gnu/bin=bin guile emacs emacs-geiser\n"
  10757. msgstr "guix package -i emacs guile emacs-geiser\n"
  10758. #. type: Plain text
  10759. #: guix-git/doc/guix.texi:5958
  10760. msgid "That way, users can happily type @file{/opt/gnu/bin/guile} and enjoy."
  10761. msgstr ""
  10762. #. type: cindex
  10763. #: guix-git/doc/guix.texi:5959
  10764. #, no-wrap
  10765. msgid "relocatable binaries, with @command{guix pack}"
  10766. msgstr ""
  10767. #. type: Plain text
  10768. #: guix-git/doc/guix.texi:5967
  10769. msgid "What if the recipient of your pack does not have root privileges on their machine, and thus cannot unpack it in the root file system? In that case, you will want to use the @option{--relocatable} option (see below). This option produces @dfn{relocatable binaries}, meaning they they can be placed anywhere in the file system hierarchy: in the example above, users can unpack your tarball in their home directory and directly run @file{./opt/gnu/bin/guile}."
  10770. msgstr ""
  10771. #. type: cindex
  10772. #: guix-git/doc/guix.texi:5968
  10773. #, no-wrap
  10774. msgid "Docker, build an image with guix pack"
  10775. msgstr ""
  10776. #. type: Plain text
  10777. #: guix-git/doc/guix.texi:5971
  10778. msgid "Alternatively, you can produce a pack in the Docker image format using the following command:"
  10779. msgstr ""
  10780. #. type: example
  10781. #: guix-git/doc/guix.texi:5974
  10782. #, no-wrap
  10783. msgid "guix pack -f docker -S /bin=bin guile guile-readline\n"
  10784. msgstr ""
  10785. #. type: Plain text
  10786. #: guix-git/doc/guix.texi:5979
  10787. msgid "The result is a tarball that can be passed to the @command{docker load} command, followed by @code{docker run}:"
  10788. msgstr ""
  10789. #. type: example
  10790. #: guix-git/doc/guix.texi:5983
  10791. #, no-wrap
  10792. msgid ""
  10793. "docker load < @var{file}\n"
  10794. "docker run -ti guile-guile-readline /bin/guile\n"
  10795. msgstr ""
  10796. #. type: Plain text
  10797. #: guix-git/doc/guix.texi:5990
  10798. msgid "where @var{file} is the image returned by @var{guix pack}, and @code{guile-guile-readline} is its ``image tag''. See the @uref{https://docs.docker.com/engine/reference/commandline/load/, Docker documentation} for more information."
  10799. msgstr ""
  10800. #. type: cindex
  10801. #: guix-git/doc/guix.texi:5991
  10802. #, no-wrap
  10803. msgid "Singularity, build an image with guix pack"
  10804. msgstr ""
  10805. #. type: cindex
  10806. #: guix-git/doc/guix.texi:5992
  10807. #, no-wrap
  10808. msgid "SquashFS, build an image with guix pack"
  10809. msgstr ""
  10810. #. type: Plain text
  10811. #: guix-git/doc/guix.texi:5995
  10812. msgid "Yet another option is to produce a SquashFS image with the following command:"
  10813. msgstr ""
  10814. #. type: example
  10815. #: guix-git/doc/guix.texi:5998
  10816. #, fuzzy, no-wrap
  10817. msgid "guix pack -f squashfs bash guile emacs emacs-geiser\n"
  10818. msgstr "guix package -i emacs guile emacs-geiser\n"
  10819. #. type: Plain text
  10820. #: guix-git/doc/guix.texi:6006
  10821. msgid "The result is a SquashFS file system image that can either be mounted or directly be used as a file system container image with the @uref{https://www.sylabs.io/docs/, Singularity container execution environment}, using commands like @command{singularity shell} or @command{singularity exec}."
  10822. msgstr ""
  10823. #. type: Plain text
  10824. #: guix-git/doc/guix.texi:6008
  10825. msgid "Several command-line options allow you to customize your pack:"
  10826. msgstr ""
  10827. #. type: table
  10828. #: guix-git/doc/guix.texi:6013
  10829. msgid "Produce a pack in the given @var{format}."
  10830. msgstr ""
  10831. #. type: table
  10832. #: guix-git/doc/guix.texi:6015
  10833. msgid "The available formats are:"
  10834. msgstr ""
  10835. #. type: item
  10836. #: guix-git/doc/guix.texi:6017
  10837. #, no-wrap
  10838. msgid "tarball"
  10839. msgstr ""
  10840. #. type: table
  10841. #: guix-git/doc/guix.texi:6020
  10842. msgid "This is the default format. It produces a tarball containing all the specified binaries and symlinks."
  10843. msgstr ""
  10844. #. type: item
  10845. #: guix-git/doc/guix.texi:6021
  10846. #, no-wrap
  10847. msgid "docker"
  10848. msgstr ""
  10849. #. type: table
  10850. #: guix-git/doc/guix.texi:6027
  10851. msgid "This produces a tarball that follows the @uref{https://github.com/docker/docker/blob/master/image/spec/v1.2.md, Docker Image Specification}. The ``repository name'' as it appears in the output of the @command{docker images} command is computed from package names passed on the command line or in the manifest file."
  10852. msgstr ""
  10853. #. type: item
  10854. #: guix-git/doc/guix.texi:6028
  10855. #, no-wrap
  10856. msgid "squashfs"
  10857. msgstr ""
  10858. #. type: table
  10859. #: guix-git/doc/guix.texi:6032
  10860. msgid "This produces a SquashFS image containing all the specified binaries and symlinks, as well as empty mount points for virtual file systems like procfs."
  10861. msgstr ""
  10862. #. type: quotation
  10863. #: guix-git/doc/guix.texi:6038
  10864. msgid "Singularity @emph{requires} you to provide @file{/bin/sh} in the image. For that reason, @command{guix pack -f squashfs} always implies @code{-S /bin=bin}. Thus, your @command{guix pack} invocation must always start with something like:"
  10865. msgstr ""
  10866. #. type: example
  10867. #: guix-git/doc/guix.texi:6041
  10868. #, no-wrap
  10869. msgid "guix pack -f squashfs bash @dots{}\n"
  10870. msgstr ""
  10871. #. type: quotation
  10872. #: guix-git/doc/guix.texi:6046
  10873. msgid "If you forget the @code{bash} (or similar) package, @command{singularity run} and @command{singularity exec} will fail with an unhelpful ``no such file or directory'' message."
  10874. msgstr ""
  10875. #. type: item
  10876. #: guix-git/doc/guix.texi:6048
  10877. #, fuzzy, no-wrap
  10878. #| msgid "--debug"
  10879. msgid "deb"
  10880. msgstr "--debug"
  10881. #. type: table
  10882. #: guix-git/doc/guix.texi:6056
  10883. msgid "This produces a Debian archive (a package with the @samp{.deb} file extension) containing all the specified binaries and symbolic links, that can be installed on top of any dpkg-based GNU(/Linux) distribution. Advanced options can be revealed via the @option{--help-deb-format} option. They allow embedding control files for more fine-grained control, such as activating specific triggers or providing a maintainer configure script to run arbitrary setup code upon installation."
  10884. msgstr ""
  10885. #. type: example
  10886. #: guix-git/doc/guix.texi:6059
  10887. #, no-wrap
  10888. msgid "guix pack -f deb -C xz -S /usr/bin/hello=bin/hello hello\n"
  10889. msgstr ""
  10890. #. type: quotation
  10891. #: guix-git/doc/guix.texi:6066
  10892. msgid "Because archives produced with @command{guix pack} contain a collection of store items and because each @command{dpkg} package must not have conflicting files, in practice that means you likely won't be able to install more than one such archive on a given system."
  10893. msgstr ""
  10894. #. type: quotation
  10895. #: guix-git/doc/guix.texi:6074
  10896. msgid "@command{dpkg} will assume ownership of any files contained in the pack that it does @emph{not} know about. It is unwise to install Guix-produced @samp{.deb} files on a system where @file{/gnu/store} is shared by other software, such as a Guix installation or other, non-deb packs."
  10897. msgstr ""
  10898. #. type: cindex
  10899. #: guix-git/doc/guix.texi:6078
  10900. #, no-wrap
  10901. msgid "relocatable binaries"
  10902. msgstr ""
  10903. #. type: item
  10904. #: guix-git/doc/guix.texi:6079
  10905. #, no-wrap
  10906. msgid "--relocatable"
  10907. msgstr ""
  10908. #. type: table
  10909. #: guix-git/doc/guix.texi:6083
  10910. msgid "Produce @dfn{relocatable binaries}---i.e., binaries that can be placed anywhere in the file system hierarchy and run from there."
  10911. msgstr ""
  10912. #. type: table
  10913. #: guix-git/doc/guix.texi:6091
  10914. msgid "When this option is passed once, the resulting binaries require support for @dfn{user namespaces} in the kernel Linux; when passed @emph{twice}@footnote{Here's a trick to memorize it: @code{-RR}, which adds PRoot support, can be thought of as the abbreviation of ``Really Relocatable''. Neat, isn't it?}, relocatable binaries fall to back to other techniques if user namespaces are unavailable, and essentially work anywhere---see below for the implications."
  10915. msgstr ""
  10916. #. type: table
  10917. #: guix-git/doc/guix.texi:6093
  10918. msgid "For example, if you create a pack containing Bash with:"
  10919. msgstr ""
  10920. #. type: example
  10921. #: guix-git/doc/guix.texi:6096
  10922. #, no-wrap
  10923. msgid "guix pack -RR -S /mybin=bin bash\n"
  10924. msgstr ""
  10925. #. type: table
  10926. #: guix-git/doc/guix.texi:6101
  10927. msgid "...@: you can copy that pack to a machine that lacks Guix, and from your home directory as a normal user, run:"
  10928. msgstr ""
  10929. #. type: example
  10930. #: guix-git/doc/guix.texi:6105
  10931. #, no-wrap
  10932. msgid ""
  10933. "tar xf pack.tar.gz\n"
  10934. "./mybin/sh\n"
  10935. msgstr ""
  10936. #. type: table
  10937. #: guix-git/doc/guix.texi:6113
  10938. msgid "In that shell, if you type @code{ls /gnu/store}, you'll notice that @file{/gnu/store} shows up and contains all the dependencies of @code{bash}, even though the machine actually lacks @file{/gnu/store} altogether! That is probably the simplest way to deploy Guix-built software on a non-Guix machine."
  10939. msgstr ""
  10940. #. type: quotation
  10941. #: guix-git/doc/guix.texi:6119
  10942. msgid "By default, relocatable binaries rely on the @dfn{user namespace} feature of the kernel Linux, which allows unprivileged users to mount or change root. Old versions of Linux did not support it, and some GNU/Linux distributions turn it off."
  10943. msgstr ""
  10944. #. type: quotation
  10945. #: guix-git/doc/guix.texi:6125
  10946. msgid "To produce relocatable binaries that work even in the absence of user namespaces, pass @option{--relocatable} or @option{-R} @emph{twice}. In that case, binaries will try user namespace support and fall back to another @dfn{execution engine} if user namespaces are not supported. The following execution engines are supported:"
  10947. msgstr ""
  10948. #. type: item
  10949. #: guix-git/doc/guix.texi:6127 guix-git/doc/guix.texi:16403
  10950. #, no-wrap
  10951. msgid "default"
  10952. msgstr ""
  10953. #. type: table
  10954. #: guix-git/doc/guix.texi:6130
  10955. msgid "Try user namespaces and fall back to PRoot if user namespaces are not supported (see below)."
  10956. msgstr ""
  10957. #. type: item
  10958. #: guix-git/doc/guix.texi:6131
  10959. #, fuzzy, no-wrap
  10960. msgid "performance"
  10961. msgstr "格式化代码"
  10962. #. type: table
  10963. #: guix-git/doc/guix.texi:6134
  10964. msgid "Try user namespaces and fall back to Fakechroot if user namespaces are not supported (see below)."
  10965. msgstr ""
  10966. #. type: item
  10967. #: guix-git/doc/guix.texi:6135
  10968. #, fuzzy, no-wrap
  10969. msgid "userns"
  10970. msgstr "用户"
  10971. #. type: table
  10972. #: guix-git/doc/guix.texi:6138
  10973. msgid "Run the program through user namespaces and abort if they are not supported."
  10974. msgstr ""
  10975. #. type: item
  10976. #: guix-git/doc/guix.texi:6139
  10977. #, fuzzy, no-wrap
  10978. msgid "proot"
  10979. msgstr "chroot"
  10980. #. type: table
  10981. #: guix-git/doc/guix.texi:6146
  10982. msgid "Run through PRoot. The @uref{https://proot-me.github.io/, PRoot} program provides the necessary support for file system virtualization. It achieves that by using the @code{ptrace} system call on the running program. This approach has the advantage to work without requiring special kernel support, but it incurs run-time overhead every time a system call is made."
  10983. msgstr ""
  10984. #. type: item
  10985. #: guix-git/doc/guix.texi:6147
  10986. #, fuzzy, no-wrap
  10987. msgid "fakechroot"
  10988. msgstr "chroot"
  10989. #. type: table
  10990. #: guix-git/doc/guix.texi:6155
  10991. msgid "Run through Fakechroot. @uref{https://github.com/dex4er/fakechroot/, Fakechroot} virtualizes file system accesses by intercepting calls to C library functions such as @code{open}, @code{stat}, @code{exec}, and so on. Unlike PRoot, it incurs very little overhead. However, it does not always work: for example, some file system accesses made from within the C library are not intercepted, and file system accesses made @i{via} direct syscalls are not intercepted either, leading to erratic behavior."
  10992. msgstr ""
  10993. #. type: vindex
  10994. #: guix-git/doc/guix.texi:6157
  10995. #, no-wrap
  10996. msgid "GUIX_EXECUTION_ENGINE"
  10997. msgstr ""
  10998. #. type: quotation
  10999. #: guix-git/doc/guix.texi:6161
  11000. msgid "When running a wrapped program, you can explicitly request one of the execution engines listed above by setting the @env{GUIX_EXECUTION_ENGINE} environment variable accordingly."
  11001. msgstr ""
  11002. #. type: cindex
  11003. #: guix-git/doc/guix.texi:6163
  11004. #, no-wrap
  11005. msgid "entry point, for Docker images"
  11006. msgstr ""
  11007. #. type: item
  11008. #: guix-git/doc/guix.texi:6164
  11009. #, fuzzy, no-wrap
  11010. msgid "--entry-point=@var{command}"
  11011. msgstr "--timeout=@var{seconds}"
  11012. #. type: table
  11013. #: guix-git/doc/guix.texi:6169
  11014. msgid "Use @var{command} as the @dfn{entry point} of the resulting pack, if the pack format supports it---currently @code{docker} and @code{squashfs} (Singularity) support it. @var{command} must be relative to the profile contained in the pack."
  11015. msgstr ""
  11016. #. type: table
  11017. #: guix-git/doc/guix.texi:6173
  11018. msgid "The entry point specifies the command that tools like @code{docker run} or @code{singularity run} automatically start by default. For example, you can do:"
  11019. msgstr ""
  11020. #. type: example
  11021. #: guix-git/doc/guix.texi:6176
  11022. #, no-wrap
  11023. msgid "guix pack -f docker --entry-point=bin/guile guile\n"
  11024. msgstr ""
  11025. #. type: table
  11026. #: guix-git/doc/guix.texi:6180
  11027. msgid "The resulting pack can easily be loaded and @code{docker run} with no extra arguments will spawn @code{bin/guile}:"
  11028. msgstr ""
  11029. #. type: example
  11030. #: guix-git/doc/guix.texi:6184
  11031. #, no-wrap
  11032. msgid ""
  11033. "docker load -i pack.tar.gz\n"
  11034. "docker run @var{image-id}\n"
  11035. msgstr ""
  11036. #. type: table
  11037. #: guix-git/doc/guix.texi:6189 guix-git/doc/guix.texi:11832
  11038. #: guix-git/doc/guix.texi:12629
  11039. msgid "Consider the package @var{expr} evaluates to."
  11040. msgstr ""
  11041. #. type: table
  11042. #: guix-git/doc/guix.texi:6193
  11043. msgid "This has the same purpose as the same-named option in @command{guix build} (@pxref{Additional Build Options, @option{--expression} in @command{guix build}})."
  11044. msgstr ""
  11045. #. type: table
  11046. #: guix-git/doc/guix.texi:6199
  11047. msgid "Use the packages contained in the manifest object returned by the Scheme code in @var{file}. This option can be repeated several times, in which case the manifests are concatenated."
  11048. msgstr ""
  11049. #. type: table
  11050. #: guix-git/doc/guix.texi:6207
  11051. msgid "This has a similar purpose as the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files. It allows you to define a collection of packages once and use it both for creating profiles and for creating archives for use on machines that do not have Guix installed. Note that you can specify @emph{either} a manifest file @emph{or} a list of packages, but not both."
  11052. msgstr ""
  11053. #. type: item
  11054. #: guix-git/doc/guix.texi:6213 guix-git/doc/guix.texi:10901
  11055. #, no-wrap
  11056. msgid "--target=@var{triplet}"
  11057. msgstr ""
  11058. #. type: cindex
  11059. #: guix-git/doc/guix.texi:6214 guix-git/doc/guix.texi:6665
  11060. #: guix-git/doc/guix.texi:10902
  11061. #, no-wrap
  11062. msgid "cross-compilation"
  11063. msgstr ""
  11064. #. type: table
  11065. #: guix-git/doc/guix.texi:6218
  11066. msgid "Cross-build for @var{triplet}, which must be a valid GNU triplet, such as @code{\"aarch64-linux-gnu\"} (@pxref{Specifying target triplets, GNU configuration triplets,, autoconf, Autoconf})."
  11067. msgstr ""
  11068. #. type: item
  11069. #: guix-git/doc/guix.texi:6219
  11070. #, no-wrap
  11071. msgid "--compression=@var{tool}"
  11072. msgstr ""
  11073. #. type: itemx
  11074. #: guix-git/doc/guix.texi:6220
  11075. #, no-wrap
  11076. msgid "-C @var{tool}"
  11077. msgstr ""
  11078. #. type: table
  11079. #: guix-git/doc/guix.texi:6224
  11080. #, fuzzy
  11081. msgid "Compress the resulting tarball using @var{tool}---one of @code{gzip}, @code{zstd}, @code{bzip2}, @code{xz}, @code{lzip}, or @code{none} for no compression."
  11082. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  11083. #. type: item
  11084. #: guix-git/doc/guix.texi:6225
  11085. #, no-wrap
  11086. msgid "--symlink=@var{spec}"
  11087. msgstr ""
  11088. #. type: itemx
  11089. #: guix-git/doc/guix.texi:6226
  11090. #, no-wrap
  11091. msgid "-S @var{spec}"
  11092. msgstr ""
  11093. #. type: table
  11094. #: guix-git/doc/guix.texi:6229
  11095. msgid "Add the symlinks specified by @var{spec} to the pack. This option can appear several times."
  11096. msgstr ""
  11097. #. type: table
  11098. #: guix-git/doc/guix.texi:6233
  11099. msgid "@var{spec} has the form @code{@var{source}=@var{target}}, where @var{source} is the symlink that will be created and @var{target} is the symlink target."
  11100. msgstr ""
  11101. #. type: table
  11102. #: guix-git/doc/guix.texi:6236
  11103. msgid "For instance, @code{-S /opt/gnu/bin=bin} creates a @file{/opt/gnu/bin} symlink pointing to the @file{bin} sub-directory of the profile."
  11104. msgstr ""
  11105. #. type: item
  11106. #: guix-git/doc/guix.texi:6237 guix-git/doc/guix.texi:33854
  11107. #, no-wrap
  11108. msgid "--save-provenance"
  11109. msgstr ""
  11110. #. type: table
  11111. #: guix-git/doc/guix.texi:6241
  11112. msgid "Save provenance information for the packages passed on the command line. Provenance information includes the URL and commit of the channels in use (@pxref{Channels})."
  11113. msgstr ""
  11114. #. type: table
  11115. #: guix-git/doc/guix.texi:6247
  11116. msgid "Provenance information is saved in the @file{/gnu/store/@dots{}-profile/manifest} file in the pack, along with the usual package metadata---the name and version of each package, their propagated inputs, and so on. It is useful information to the recipient of the pack, who then knows how the pack was (supposedly) obtained."
  11117. msgstr ""
  11118. #. type: table
  11119. #: guix-git/doc/guix.texi:6253
  11120. msgid "This option is not enabled by default because, like timestamps, provenance information contributes nothing to the build process. In other words, there is an infinity of channel URLs and commit IDs that can lead to the same pack. Recording such ``silent'' metadata in the output thus potentially breaks the source-to-binary bitwise reproducibility property."
  11121. msgstr ""
  11122. #. type: cindex
  11123. #: guix-git/doc/guix.texi:6256
  11124. #, fuzzy, no-wrap
  11125. msgid "garbage collector root, for packs"
  11126. msgstr "垃圾收集的根"
  11127. #. type: table
  11128. #: guix-git/doc/guix.texi:6259
  11129. msgid "Make @var{file} a symlink to the resulting pack, and register it as a garbage collector root."
  11130. msgstr ""
  11131. #. type: item
  11132. #: guix-git/doc/guix.texi:6260
  11133. #, no-wrap
  11134. msgid "--localstatedir"
  11135. msgstr ""
  11136. #. type: itemx
  11137. #: guix-git/doc/guix.texi:6261
  11138. #, no-wrap
  11139. msgid "--profile-name=@var{name}"
  11140. msgstr ""
  11141. #. type: table
  11142. #: guix-git/doc/guix.texi:6266
  11143. msgid "Include the ``local state directory'', @file{/var/guix}, in the resulting pack, and notably the @file{/var/guix/profiles/per-user/root/@var{name}} profile---by default @var{name} is @code{guix-profile}, which corresponds to @file{~root/.guix-profile}."
  11144. msgstr ""
  11145. #. type: table
  11146. #: guix-git/doc/guix.texi:6272
  11147. msgid "@file{/var/guix} contains the store database (@pxref{The Store}) as well as garbage-collector roots (@pxref{Invoking guix gc}). Providing it in the pack means that the store is ``complete'' and manageable by Guix; not providing it pack means that the store is ``dead'': items cannot be added to it or removed from it after extraction of the pack."
  11148. msgstr ""
  11149. #. type: table
  11150. #: guix-git/doc/guix.texi:6275
  11151. msgid "One use case for this is the Guix self-contained binary tarball (@pxref{Binary Installation})."
  11152. msgstr ""
  11153. #. type: item
  11154. #: guix-git/doc/guix.texi:6276 guix-git/doc/guix.texi:33848
  11155. #, no-wrap
  11156. msgid "--derivation"
  11157. msgstr ""
  11158. #. type: itemx
  11159. #: guix-git/doc/guix.texi:6277 guix-git/doc/guix.texi:10933
  11160. #: guix-git/doc/guix.texi:33849
  11161. #, no-wrap
  11162. msgid "-d"
  11163. msgstr ""
  11164. #. type: table
  11165. #: guix-git/doc/guix.texi:6279
  11166. msgid "Print the name of the derivation that builds the pack."
  11167. msgstr ""
  11168. #. type: table
  11169. #: guix-git/doc/guix.texi:6283
  11170. msgid "Use the bootstrap binaries to build the pack. This option is only useful to Guix developers."
  11171. msgstr ""
  11172. #. type: Plain text
  11173. #: guix-git/doc/guix.texi:6288
  11174. msgid "In addition, @command{guix pack} supports all the common build options (@pxref{Common Build Options}) and all the package transformation options (@pxref{Package Transformation Options})."
  11175. msgstr ""
  11176. #. type: cindex
  11177. #: guix-git/doc/guix.texi:6293
  11178. #, no-wrap
  11179. msgid "GCC"
  11180. msgstr ""
  11181. #. type: cindex
  11182. #: guix-git/doc/guix.texi:6294
  11183. #, no-wrap
  11184. msgid "ld-wrapper"
  11185. msgstr ""
  11186. #. type: cindex
  11187. #: guix-git/doc/guix.texi:6295
  11188. #, no-wrap
  11189. msgid "linker wrapper"
  11190. msgstr ""
  11191. #. type: cindex
  11192. #: guix-git/doc/guix.texi:6296
  11193. #, fuzzy, no-wrap
  11194. msgid "toolchain, for C development"
  11195. msgstr "软件开发"
  11196. #. type: cindex
  11197. #: guix-git/doc/guix.texi:6297
  11198. #, no-wrap
  11199. msgid "toolchain, for Fortran development"
  11200. msgstr ""
  11201. #. type: Plain text
  11202. #: guix-git/doc/guix.texi:6304
  11203. msgid "If you need a complete toolchain for compiling and linking C or C++ source code, use the @code{gcc-toolchain} package. This package provides a complete GCC toolchain for C/C++ development, including GCC itself, the GNU C Library (headers and binaries, plus debugging symbols in the @code{debug} output), Binutils, and a linker wrapper."
  11204. msgstr ""
  11205. #. type: Plain text
  11206. #: guix-git/doc/guix.texi:6310
  11207. msgid "The wrapper's purpose is to inspect the @code{-L} and @code{-l} switches passed to the linker, add corresponding @code{-rpath} arguments, and invoke the actual linker with this new set of arguments. You can instruct the wrapper to refuse to link against libraries not in the store by setting the @env{GUIX_LD_WRAPPER_ALLOW_IMPURITIES} environment variable to @code{no}."
  11208. msgstr ""
  11209. #. type: Plain text
  11210. #: guix-git/doc/guix.texi:6314
  11211. msgid "The package @code{gfortran-toolchain} provides a complete GCC toolchain for Fortran development. For other languages, please use @samp{guix search gcc toolchain} (@pxref{guix-search,, Invoking guix package})."
  11212. msgstr ""
  11213. #. type: section
  11214. #: guix-git/doc/guix.texi:6317
  11215. #, fuzzy, no-wrap
  11216. msgid "Invoking @command{guix git authenticate}"
  11217. msgstr "调用@command{guix build}"
  11218. #. type: Plain text
  11219. #: guix-git/doc/guix.texi:6325
  11220. msgid "The @command{guix git authenticate} command authenticates a Git checkout following the same rule as for channels (@pxref{channel-authentication, channel authentication}). That is, starting from a given commit, it ensures that all subsequent commits are signed by an OpenPGP key whose fingerprint appears in the @file{.guix-authorizations} file of its parent commit(s)."
  11221. msgstr ""
  11222. #. type: Plain text
  11223. #: guix-git/doc/guix.texi:6330
  11224. msgid "You will find this command useful if you maintain a channel. But in fact, this authentication mechanism is useful in a broader context, so you might want to use it for Git repositories that have nothing to do with Guix."
  11225. msgstr ""
  11226. #. type: example
  11227. #: guix-git/doc/guix.texi:6335
  11228. #, no-wrap
  11229. msgid "guix git authenticate @var{commit} @var{signer} [@var{options}@dots{}]\n"
  11230. msgstr ""
  11231. #. type: Plain text
  11232. #: guix-git/doc/guix.texi:6344
  11233. msgid "By default, this command authenticates the Git checkout in the current directory; it outputs nothing and exits with exit code zero on success and non-zero on failure. @var{commit} above denotes the first commit where authentication takes place, and @var{signer} is the OpenPGP fingerprint of public key used to sign @var{commit}. Together, they form a ``channel introduction'' (@pxref{channel-authentication, channel introduction}). The options below allow you to fine-tune the process."
  11234. msgstr ""
  11235. #. type: item
  11236. #: guix-git/doc/guix.texi:6346
  11237. #, fuzzy, no-wrap
  11238. msgid "--repository=@var{directory}"
  11239. msgstr "--chroot-directory=@var{dir}"
  11240. #. type: itemx
  11241. #: guix-git/doc/guix.texi:6347
  11242. #, fuzzy, no-wrap
  11243. msgid "-r @var{directory}"
  11244. msgstr "状态文件夹"
  11245. #. type: table
  11246. #: guix-git/doc/guix.texi:6350
  11247. msgid "Open the Git repository in @var{directory} instead of the current directory."
  11248. msgstr ""
  11249. #. type: item
  11250. #: guix-git/doc/guix.texi:6351
  11251. #, no-wrap
  11252. msgid "--keyring=@var{reference}"
  11253. msgstr ""
  11254. #. type: itemx
  11255. #: guix-git/doc/guix.texi:6352
  11256. #, fuzzy, no-wrap
  11257. msgid "-k @var{reference}"
  11258. msgstr "-c @var{n}"
  11259. #. type: table
  11260. #: guix-git/doc/guix.texi:6358
  11261. msgid "Load OpenPGP keyring from @var{reference}, the reference of a branch such as @code{origin/keyring} or @code{my-keyring}. The branch must contain OpenPGP public keys in @file{.key} files, either in binary form or ``ASCII-armored''. By default the keyring is loaded from the branch named @code{keyring}."
  11262. msgstr ""
  11263. #. type: item
  11264. #: guix-git/doc/guix.texi:6359
  11265. #, no-wrap
  11266. msgid "--stats"
  11267. msgstr ""
  11268. #. type: table
  11269. #: guix-git/doc/guix.texi:6361
  11270. msgid "Display commit signing statistics upon completion."
  11271. msgstr ""
  11272. #. type: item
  11273. #: guix-git/doc/guix.texi:6362
  11274. #, fuzzy, no-wrap
  11275. msgid "--cache-key=@var{key}"
  11276. msgstr "--cores=@var{n}"
  11277. #. type: table
  11278. #: guix-git/doc/guix.texi:6366
  11279. msgid "Previously-authenticated commits are cached in a file under @file{~/.cache/guix/authentication}. This option forces the cache to be stored in file @var{key} in that directory."
  11280. msgstr ""
  11281. #. type: item
  11282. #: guix-git/doc/guix.texi:6367
  11283. #, no-wrap
  11284. msgid "--historical-authorizations=@var{file}"
  11285. msgstr ""
  11286. #. type: table
  11287. #: guix-git/doc/guix.texi:6374
  11288. msgid "By default, any commit whose parent commit(s) lack the @file{.guix-authorizations} file is considered inauthentic. In contrast, this option considers the authorizations in @var{file} for any commit that lacks @file{.guix-authorizations}. The format of @var{file} is the same as that of @file{.guix-authorizations} (@pxref{channel-authorizations, @file{.guix-authorizations} format})."
  11289. msgstr ""
  11290. #. type: Plain text
  11291. #: guix-git/doc/guix.texi:6387
  11292. msgid "GNU Guix provides several Scheme programming interfaces (APIs) to define, build, and query packages. The first interface allows users to write high-level package definitions. These definitions refer to familiar packaging concepts, such as the name and version of a package, its build system, and its dependencies. These definitions can then be turned into concrete build actions."
  11293. msgstr ""
  11294. #. type: Plain text
  11295. #: guix-git/doc/guix.texi:6393
  11296. msgid "Build actions are performed by the Guix daemon, on behalf of users. In a standard setup, the daemon has write access to the store---the @file{/gnu/store} directory---whereas users do not. The recommended setup also has the daemon perform builds in chroots, under specific build users, to minimize interference with the rest of the system."
  11297. msgstr ""
  11298. #. type: Plain text
  11299. #: guix-git/doc/guix.texi:6402
  11300. msgid "Lower-level APIs are available to interact with the daemon and the store. To instruct the daemon to perform a build action, users actually provide it with a @dfn{derivation}. A derivation is a low-level representation of the build actions to be taken, and the environment in which they should occur---derivations are to package definitions what assembly is to C programs. The term ``derivation'' comes from the fact that build results @emph{derive} from them."
  11301. msgstr ""
  11302. #. type: Plain text
  11303. #: guix-git/doc/guix.texi:6405
  11304. msgid "This chapter describes all these APIs in turn, starting from high-level package definitions."
  11305. msgstr ""
  11306. #. type: menuentry
  11307. #: guix-git/doc/guix.texi:6418
  11308. #, fuzzy
  11309. msgid "Programming Guix in Guile"
  11310. msgstr "编程索引"
  11311. #. type: Plain text
  11312. #: guix-git/doc/guix.texi:6434
  11313. msgid "From a programming viewpoint, the package definitions of the GNU distribution are provided by Guile modules in the @code{(gnu packages @dots{})} name space@footnote{Note that packages under the @code{(gnu packages @dots{})} module name space are not necessarily ``GNU packages''. This module naming scheme follows the usual Guile module naming convention: @code{gnu} means that these modules are distributed as part of the GNU system, and @code{packages} identifies modules that define packages.} (@pxref{Modules, Guile modules,, guile, GNU Guile Reference Manual}). For instance, the @code{(gnu packages emacs)} module exports a variable named @code{emacs}, which is bound to a @code{<package>} object (@pxref{Defining Packages})."
  11314. msgstr ""
  11315. #. type: Plain text
  11316. #: guix-git/doc/guix.texi:6441
  11317. msgid "The @code{(gnu packages @dots{})} module name space is automatically scanned for packages by the command-line tools. For instance, when running @code{guix install emacs}, all the @code{(gnu packages @dots{})} modules are scanned until one that exports a package object whose name is @code{emacs} is found. This package search facility is implemented in the @code{(gnu packages)} module."
  11318. msgstr ""
  11319. #. type: cindex
  11320. #: guix-git/doc/guix.texi:6443
  11321. #, no-wrap
  11322. msgid "package module search path"
  11323. msgstr ""
  11324. #. type: Plain text
  11325. #: guix-git/doc/guix.texi:6452
  11326. msgid "Users can store package definitions in modules with different names---e.g., @code{(my-packages emacs)}@footnote{Note that the file name and module name must match. For instance, the @code{(my-packages emacs)} module must be stored in a @file{my-packages/emacs.scm} file relative to the load path specified with @option{--load-path} or @env{GUIX_PACKAGE_PATH}. @xref{Modules and the File System,,, guile, GNU Guile Reference Manual}, for details.}. There are two ways to make these package definitions visible to the user interfaces:"
  11327. msgstr ""
  11328. #. type: enumerate
  11329. #: guix-git/doc/guix.texi:6459
  11330. msgid "By adding the directory containing your package modules to the search path with the @code{-L} flag of @command{guix package} and other commands (@pxref{Common Build Options}), or by setting the @env{GUIX_PACKAGE_PATH} environment variable described below."
  11331. msgstr ""
  11332. #. type: enumerate
  11333. #: guix-git/doc/guix.texi:6465
  11334. msgid "By defining a @dfn{channel} and configuring @command{guix pull} so that it pulls from it. A channel is essentially a Git repository containing package modules. @xref{Channels}, for more information on how to define and use channels."
  11335. msgstr ""
  11336. #. type: Plain text
  11337. #: guix-git/doc/guix.texi:6468
  11338. msgid "@env{GUIX_PACKAGE_PATH} works similarly to other search path variables:"
  11339. msgstr ""
  11340. #. type: defvr
  11341. #: guix-git/doc/guix.texi:6469
  11342. #, no-wrap
  11343. msgid "{Environment Variable} GUIX_PACKAGE_PATH"
  11344. msgstr ""
  11345. #. type: defvr
  11346. #: guix-git/doc/guix.texi:6473
  11347. msgid "This is a colon-separated list of directories to search for additional package modules. Directories listed in this variable take precedence over the own modules of the distribution."
  11348. msgstr ""
  11349. #. type: Plain text
  11350. #: guix-git/doc/guix.texi:6481
  11351. msgid "The distribution is fully @dfn{bootstrapped} and @dfn{self-contained}: each package is built based solely on other packages in the distribution. The root of this dependency graph is a small set of @dfn{bootstrap binaries}, provided by the @code{(gnu packages bootstrap)} module. For more information on bootstrapping, @pxref{Bootstrapping}."
  11352. msgstr ""
  11353. #. type: Plain text
  11354. #: guix-git/doc/guix.texi:6489
  11355. msgid "The high-level interface to package definitions is implemented in the @code{(guix packages)} and @code{(guix build-system)} modules. As an example, the package definition, or @dfn{recipe}, for the GNU Hello package looks like this:"
  11356. msgstr ""
  11357. #. type: lisp
  11358. #: guix-git/doc/guix.texi:6497
  11359. #, no-wrap
  11360. msgid ""
  11361. "(define-module (gnu packages hello)\n"
  11362. " #:use-module (guix packages)\n"
  11363. " #:use-module (guix download)\n"
  11364. " #:use-module (guix build-system gnu)\n"
  11365. " #:use-module (guix licenses)\n"
  11366. " #:use-module (gnu packages gawk))\n"
  11367. "\n"
  11368. msgstr ""
  11369. #. type: lisp
  11370. #: guix-git/doc/guix.texi:6516
  11371. #, no-wrap
  11372. msgid ""
  11373. "(define-public hello\n"
  11374. " (package\n"
  11375. " (name \"hello\")\n"
  11376. " (version \"2.10\")\n"
  11377. " (source (origin\n"
  11378. " (method url-fetch)\n"
  11379. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  11380. " \".tar.gz\"))\n"
  11381. " (sha256\n"
  11382. " (base32\n"
  11383. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  11384. " (build-system gnu-build-system)\n"
  11385. " (arguments '(#:configure-flags '(\"--enable-silent-rules\")))\n"
  11386. " (inputs `((\"gawk\" ,gawk)))\n"
  11387. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  11388. " (description \"Guess what GNU Hello prints!\")\n"
  11389. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  11390. " (license gpl3+)))\n"
  11391. msgstr ""
  11392. #. type: Plain text
  11393. #: guix-git/doc/guix.texi:6526
  11394. msgid "Without being a Scheme expert, the reader may have guessed the meaning of the various fields here. This expression binds the variable @code{hello} to a @code{<package>} object, which is essentially a record (@pxref{SRFI-9, Scheme records,, guile, GNU Guile Reference Manual}). This package object can be inspected using procedures found in the @code{(guix packages)} module; for instance, @code{(package-name hello)} returns---surprise!---@code{\"hello\"}."
  11395. msgstr ""
  11396. #. type: Plain text
  11397. #: guix-git/doc/guix.texi:6530
  11398. msgid "With luck, you may be able to import part or all of the definition of the package you are interested in from another repository, using the @code{guix import} command (@pxref{Invoking guix import})."
  11399. msgstr ""
  11400. #. type: Plain text
  11401. #: guix-git/doc/guix.texi:6536
  11402. msgid "In the example above, @code{hello} is defined in a module of its own, @code{(gnu packages hello)}. Technically, this is not strictly necessary, but it is convenient to do so: all the packages defined in modules under @code{(gnu packages @dots{})} are automatically known to the command-line tools (@pxref{Package Modules})."
  11403. msgstr ""
  11404. #. type: Plain text
  11405. #: guix-git/doc/guix.texi:6538
  11406. msgid "There are a few points worth noting in the above package definition:"
  11407. msgstr ""
  11408. #. type: itemize
  11409. #: guix-git/doc/guix.texi:6545
  11410. msgid "The @code{source} field of the package is an @code{<origin>} object (@pxref{origin Reference}, for the complete reference). Here, the @code{url-fetch} method from @code{(guix download)} is used, meaning that the source is a file to be downloaded over FTP or HTTP."
  11411. msgstr ""
  11412. #. type: itemize
  11413. #: guix-git/doc/guix.texi:6548
  11414. msgid "The @code{mirror://gnu} prefix instructs @code{url-fetch} to use one of the GNU mirrors defined in @code{(guix download)}."
  11415. msgstr ""
  11416. #. type: itemize
  11417. #: guix-git/doc/guix.texi:6555
  11418. msgid "The @code{sha256} field specifies the expected SHA256 hash of the file being downloaded. It is mandatory, and allows Guix to check the integrity of the file. The @code{(base32 @dots{})} form introduces the base32 representation of the hash. You can obtain this information with @code{guix download} (@pxref{Invoking guix download}) and @code{guix hash} (@pxref{Invoking guix hash})."
  11419. msgstr ""
  11420. #. type: cindex
  11421. #: guix-git/doc/guix.texi:6556
  11422. #, no-wrap
  11423. msgid "patches"
  11424. msgstr ""
  11425. #. type: itemize
  11426. #: guix-git/doc/guix.texi:6560
  11427. msgid "When needed, the @code{origin} form can also have a @code{patches} field listing patches to be applied, and a @code{snippet} field giving a Scheme expression to modify the source code."
  11428. msgstr ""
  11429. #. type: cindex
  11430. #: guix-git/doc/guix.texi:6562
  11431. #, no-wrap
  11432. msgid "GNU Build System"
  11433. msgstr ""
  11434. #. type: itemize
  11435. #: guix-git/doc/guix.texi:6568
  11436. msgid "The @code{build-system} field specifies the procedure to build the package (@pxref{Build Systems}). Here, @code{gnu-build-system} represents the familiar GNU Build System, where packages may be configured, built, and installed with the usual @code{./configure && make && make check && make install} command sequence."
  11437. msgstr ""
  11438. #. type: itemize
  11439. #: guix-git/doc/guix.texi:6572
  11440. msgid "When you start packaging non-trivial software, you may need tools to manipulate those build phases, manipulate files, and so on. @xref{Build Utilities}, for more on this."
  11441. msgstr ""
  11442. #. type: itemize
  11443. #: guix-git/doc/guix.texi:6578
  11444. msgid "The @code{arguments} field specifies options for the build system (@pxref{Build Systems}). Here it is interpreted by @code{gnu-build-system} as a request run @file{configure} with the @option{--enable-silent-rules} flag."
  11445. msgstr ""
  11446. #. type: findex
  11447. #: guix-git/doc/guix.texi:6579 guix-git/doc/guix.texi:6582
  11448. #, no-wrap
  11449. msgid "quote"
  11450. msgstr ""
  11451. #. type: cindex
  11452. #: guix-git/doc/guix.texi:6580
  11453. #, no-wrap
  11454. msgid "quoting"
  11455. msgstr ""
  11456. #. type: findex
  11457. #: guix-git/doc/guix.texi:6581
  11458. #, no-wrap
  11459. msgid "'"
  11460. msgstr ""
  11461. #. type: itemize
  11462. #: guix-git/doc/guix.texi:6590
  11463. msgid "What about these quote (@code{'}) characters? They are Scheme syntax to introduce a literal list; @code{'} is synonymous with @code{quote}. @xref{Expression Syntax, quoting,, guile, GNU Guile Reference Manual}, for details. Here the value of the @code{arguments} field is a list of arguments passed to the build system down the road, as with @code{apply} (@pxref{Fly Evaluation, @code{apply},, guile, GNU Guile Reference Manual})."
  11464. msgstr ""
  11465. #. type: itemize
  11466. #: guix-git/doc/guix.texi:6596
  11467. msgid "The hash-colon (@code{#:}) sequence defines a Scheme @dfn{keyword} (@pxref{Keywords,,, guile, GNU Guile Reference Manual}), and @code{#:configure-flags} is a keyword used to pass a keyword argument to the build system (@pxref{Coding With Keywords,,, guile, GNU Guile Reference Manual})."
  11468. msgstr ""
  11469. #. type: itemize
  11470. #: guix-git/doc/guix.texi:6602
  11471. msgid "The @code{inputs} field specifies inputs to the build process---i.e., build-time or run-time dependencies of the package. Here, we define an input called @code{\"gawk\"} whose value is that of the @code{gawk} variable; @code{gawk} is itself bound to a @code{<package>} object."
  11472. msgstr ""
  11473. #. type: cindex
  11474. #: guix-git/doc/guix.texi:6603
  11475. #, no-wrap
  11476. msgid "backquote (quasiquote)"
  11477. msgstr ""
  11478. #. type: findex
  11479. #: guix-git/doc/guix.texi:6604
  11480. #, no-wrap
  11481. msgid "`"
  11482. msgstr ""
  11483. #. type: findex
  11484. #: guix-git/doc/guix.texi:6605
  11485. #, no-wrap
  11486. msgid "quasiquote"
  11487. msgstr ""
  11488. #. type: cindex
  11489. #: guix-git/doc/guix.texi:6606
  11490. #, no-wrap
  11491. msgid "comma (unquote)"
  11492. msgstr ""
  11493. #. type: findex
  11494. #: guix-git/doc/guix.texi:6607
  11495. #, no-wrap
  11496. msgid ","
  11497. msgstr ""
  11498. #. type: findex
  11499. #: guix-git/doc/guix.texi:6608
  11500. #, no-wrap
  11501. msgid "unquote"
  11502. msgstr ""
  11503. #. type: findex
  11504. #: guix-git/doc/guix.texi:6609
  11505. #, no-wrap
  11506. msgid ",@@"
  11507. msgstr ""
  11508. #. type: findex
  11509. #: guix-git/doc/guix.texi:6610
  11510. #, no-wrap
  11511. msgid "unquote-splicing"
  11512. msgstr ""
  11513. #. type: itemize
  11514. #: guix-git/doc/guix.texi:6616
  11515. msgid "Again, @code{`} (a backquote, synonymous with @code{quasiquote}) allows us to introduce a literal list in the @code{inputs} field, while @code{,} (a comma, synonymous with @code{unquote}) allows us to insert a value in that list (@pxref{Expression Syntax, unquote,, guile, GNU Guile Reference Manual})."
  11516. msgstr ""
  11517. #. type: itemize
  11518. #: guix-git/doc/guix.texi:6620
  11519. msgid "Note that GCC, Coreutils, Bash, and other essential tools do not need to be specified as inputs here. Instead, @code{gnu-build-system} takes care of ensuring that they are present (@pxref{Build Systems})."
  11520. msgstr ""
  11521. #. type: itemize
  11522. #: guix-git/doc/guix.texi:6624
  11523. msgid "However, any other dependencies need to be specified in the @code{inputs} field. Any dependency not specified here will simply be unavailable to the build process, possibly leading to a build failure."
  11524. msgstr ""
  11525. #. type: Plain text
  11526. #: guix-git/doc/guix.texi:6627
  11527. msgid "@xref{package Reference}, for a full description of possible fields."
  11528. msgstr ""
  11529. #. type: Plain text
  11530. #: guix-git/doc/guix.texi:6638
  11531. msgid "Once a package definition is in place, the package may actually be built using the @code{guix build} command-line tool (@pxref{Invoking guix build}), troubleshooting any build failures you encounter (@pxref{Debugging Build Failures}). You can easily jump back to the package definition using the @command{guix edit} command (@pxref{Invoking guix edit}). @xref{Packaging Guidelines}, for more information on how to test package definitions, and @ref{Invoking guix lint}, for information on how to check a definition for style conformance."
  11532. msgstr ""
  11533. #. type: vindex
  11534. #: guix-git/doc/guix.texi:6638
  11535. #, no-wrap
  11536. msgid "GUIX_PACKAGE_PATH"
  11537. msgstr ""
  11538. #. type: Plain text
  11539. #: guix-git/doc/guix.texi:6642
  11540. msgid "Lastly, @pxref{Channels}, for information on how to extend the distribution by adding your own package definitions in a ``channel''."
  11541. msgstr ""
  11542. #. type: Plain text
  11543. #: guix-git/doc/guix.texi:6646
  11544. msgid "Finally, updating the package definition to a new upstream version can be partly automated by the @command{guix refresh} command (@pxref{Invoking guix refresh})."
  11545. msgstr ""
  11546. #. type: Plain text
  11547. #: guix-git/doc/guix.texi:6652
  11548. msgid "Behind the scenes, a derivation corresponding to the @code{<package>} object is first computed by the @code{package-derivation} procedure. That derivation is stored in a @file{.drv} file under @file{/gnu/store}. The build actions it prescribes may then be realized by using the @code{build-derivations} procedure (@pxref{The Store})."
  11549. msgstr ""
  11550. #. type: deffn
  11551. #: guix-git/doc/guix.texi:6653
  11552. #, no-wrap
  11553. msgid "{Scheme Procedure} package-derivation @var{store} @var{package} [@var{system}]"
  11554. msgstr ""
  11555. #. type: deffn
  11556. #: guix-git/doc/guix.texi:6656
  11557. msgid "Return the @code{<derivation>} object of @var{package} for @var{system} (@pxref{Derivations})."
  11558. msgstr ""
  11559. #. type: deffn
  11560. #: guix-git/doc/guix.texi:6662
  11561. msgid "@var{package} must be a valid @code{<package>} object, and @var{system} must be a string denoting the target system type---e.g., @code{\"x86_64-linux\"} for an x86_64 Linux-based GNU system. @var{store} must be a connection to the daemon, which operates on the store (@pxref{The Store})."
  11562. msgstr ""
  11563. #. type: Plain text
  11564. #: guix-git/doc/guix.texi:6668
  11565. msgid "Similarly, it is possible to compute a derivation that cross-builds a package for some other system:"
  11566. msgstr ""
  11567. #. type: deffn
  11568. #: guix-git/doc/guix.texi:6669
  11569. #, no-wrap
  11570. msgid "{Scheme Procedure} package-cross-derivation @var{store} @"
  11571. msgstr ""
  11572. #. type: deffn
  11573. #: guix-git/doc/guix.texi:6673
  11574. msgid "@var{package} @var{target} [@var{system}] Return the @code{<derivation>} object of @var{package} cross-built from @var{system} to @var{target}."
  11575. msgstr ""
  11576. #. type: deffn
  11577. #: guix-git/doc/guix.texi:6677
  11578. msgid "@var{target} must be a valid GNU triplet denoting the target hardware and operating system, such as @code{\"aarch64-linux-gnu\"} (@pxref{Specifying Target Triplets,,, autoconf, Autoconf})."
  11579. msgstr ""
  11580. #. type: Plain text
  11581. #: guix-git/doc/guix.texi:6681
  11582. msgid "Once you have package definitions, you can easily define @emph{variants} of those packages. @xref{Defining Package Variants}, for more on that."
  11583. msgstr ""
  11584. #. type: subsection
  11585. #: guix-git/doc/guix.texi:6689
  11586. #, no-wrap
  11587. msgid "@code{package} Reference"
  11588. msgstr ""
  11589. #. type: Plain text
  11590. #: guix-git/doc/guix.texi:6693
  11591. msgid "This section summarizes all the options available in @code{package} declarations (@pxref{Defining Packages})."
  11592. msgstr ""
  11593. #. type: deftp
  11594. #: guix-git/doc/guix.texi:6694
  11595. #, no-wrap
  11596. msgid "{Data Type} package"
  11597. msgstr ""
  11598. #. type: deftp
  11599. #: guix-git/doc/guix.texi:6696
  11600. msgid "This is the data type representing a package recipe."
  11601. msgstr ""
  11602. #. type: table
  11603. #: guix-git/doc/guix.texi:6700
  11604. msgid "The name of the package, as a string."
  11605. msgstr ""
  11606. #. type: code{#1}
  11607. #: guix-git/doc/guix.texi:6701
  11608. #, no-wrap
  11609. msgid "version"
  11610. msgstr ""
  11611. #. type: table
  11612. #: guix-git/doc/guix.texi:6704
  11613. msgid "The version of the package, as a string. @xref{Version Numbers}, for guidelines."
  11614. msgstr ""
  11615. #. type: code{#1}
  11616. #: guix-git/doc/guix.texi:6705 guix-git/doc/guix.texi:12105
  11617. #: guix-git/doc/guix.texi:14363 guix-git/doc/guix.texi:14866
  11618. #, no-wrap
  11619. msgid "source"
  11620. msgstr ""
  11621. #. type: table
  11622. #: guix-git/doc/guix.texi:6712
  11623. msgid "An object telling how the source code for the package should be acquired. Most of the time, this is an @code{origin} object, which denotes a file fetched from the Internet (@pxref{origin Reference}). It can also be any other ``file-like'' object such as a @code{local-file}, which denotes a file from the local file system (@pxref{G-Expressions, @code{local-file}})."
  11624. msgstr ""
  11625. #. type: code{#1}
  11626. #: guix-git/doc/guix.texi:6713
  11627. #, no-wrap
  11628. msgid "build-system"
  11629. msgstr ""
  11630. #. type: table
  11631. #: guix-git/doc/guix.texi:6716
  11632. msgid "The build system that should be used to build the package (@pxref{Build Systems})."
  11633. msgstr ""
  11634. #. type: item
  11635. #: guix-git/doc/guix.texi:6717 guix-git/doc/guix.texi:16851
  11636. #, no-wrap
  11637. msgid "@code{arguments} (default: @code{'()})"
  11638. msgstr ""
  11639. #. type: table
  11640. #: guix-git/doc/guix.texi:6720
  11641. msgid "The arguments that should be passed to the build system. This is a list, typically containing sequential keyword-value pairs."
  11642. msgstr ""
  11643. #. type: item
  11644. #: guix-git/doc/guix.texi:6721
  11645. #, no-wrap
  11646. msgid "@code{inputs} (default: @code{'()})"
  11647. msgstr ""
  11648. #. type: itemx
  11649. #: guix-git/doc/guix.texi:6722
  11650. #, no-wrap
  11651. msgid "@code{native-inputs} (default: @code{'()})"
  11652. msgstr ""
  11653. #. type: itemx
  11654. #: guix-git/doc/guix.texi:6723
  11655. #, no-wrap
  11656. msgid "@code{propagated-inputs} (default: @code{'()})"
  11657. msgstr ""
  11658. #. type: cindex
  11659. #: guix-git/doc/guix.texi:6724
  11660. #, no-wrap
  11661. msgid "inputs, of packages"
  11662. msgstr ""
  11663. #. type: table
  11664. #: guix-git/doc/guix.texi:6732
  11665. msgid "These fields list dependencies of the package. Each one is a list of tuples, where each tuple has a label for the input (a string) as its first element, a package, origin, or derivation as its second element, and optionally the name of the output thereof that should be used, which defaults to @code{\"out\"} (@pxref{Packages with Multiple Outputs}, for more on package outputs). For example, the list below specifies three inputs:"
  11666. msgstr ""
  11667. #. type: lisp
  11668. #: guix-git/doc/guix.texi:6737
  11669. #, no-wrap
  11670. msgid ""
  11671. "`((\"libffi\" ,libffi)\n"
  11672. " (\"libunistring\" ,libunistring)\n"
  11673. " (\"glib:bin\" ,glib \"bin\")) ;the \"bin\" output of Glib\n"
  11674. msgstr ""
  11675. #. type: cindex
  11676. #: guix-git/doc/guix.texi:6739
  11677. #, no-wrap
  11678. msgid "cross compilation, package dependencies"
  11679. msgstr ""
  11680. #. type: table
  11681. #: guix-git/doc/guix.texi:6745
  11682. msgid "The distinction between @code{native-inputs} and @code{inputs} is necessary when considering cross-compilation. When cross-compiling, dependencies listed in @code{inputs} are built for the @emph{target} architecture; conversely, dependencies listed in @code{native-inputs} are built for the architecture of the @emph{build} machine."
  11683. msgstr ""
  11684. #. type: table
  11685. #: guix-git/doc/guix.texi:6750
  11686. msgid "@code{native-inputs} is typically used to list tools needed at build time, but not at run time, such as Autoconf, Automake, pkg-config, Gettext, or Bison. @command{guix lint} can report likely mistakes in this area (@pxref{Invoking guix lint})."
  11687. msgstr ""
  11688. #. type: anchor{#1}
  11689. #: guix-git/doc/guix.texi:6758
  11690. msgid "package-propagated-inputs"
  11691. msgstr ""
  11692. #. type: table
  11693. #: guix-git/doc/guix.texi:6758
  11694. msgid "Lastly, @code{propagated-inputs} is similar to @code{inputs}, but the specified packages will be automatically installed to profiles (@pxref{Features, the role of profiles in Guix}) alongside the package they belong to (@pxref{package-cmd-propagated-inputs, @command{guix package}}, for information on how @command{guix package} deals with propagated inputs)."
  11695. msgstr ""
  11696. #. type: table
  11697. #: guix-git/doc/guix.texi:6762
  11698. msgid "For example this is necessary when packaging a C/C++ library that needs headers of another library to compile, or when a pkg-config file refers to another one @i{via} its @code{Requires} field."
  11699. msgstr ""
  11700. #. type: table
  11701. #: guix-git/doc/guix.texi:6769
  11702. msgid "Another example where @code{propagated-inputs} is useful is for languages that lack a facility to record the run-time search path akin to the @code{RUNPATH} of ELF files; this includes Guile, Python, Perl, and more. When packaging libraries written in those languages, ensure they can find library code they depend on at run time by listing run-time dependencies in @code{propagated-inputs} rather than @code{inputs}."
  11703. msgstr ""
  11704. #. type: item
  11705. #: guix-git/doc/guix.texi:6770
  11706. #, no-wrap
  11707. msgid "@code{outputs} (default: @code{'(\"out\")})"
  11708. msgstr ""
  11709. #. type: table
  11710. #: guix-git/doc/guix.texi:6773
  11711. msgid "The list of output names of the package. @xref{Packages with Multiple Outputs}, for typical uses of additional outputs."
  11712. msgstr ""
  11713. #. type: item
  11714. #: guix-git/doc/guix.texi:6774
  11715. #, no-wrap
  11716. msgid "@code{native-search-paths} (default: @code{'()})"
  11717. msgstr ""
  11718. #. type: itemx
  11719. #: guix-git/doc/guix.texi:6775
  11720. #, no-wrap
  11721. msgid "@code{search-paths} (default: @code{'()})"
  11722. msgstr ""
  11723. #. type: table
  11724. #: guix-git/doc/guix.texi:6778
  11725. msgid "A list of @code{search-path-specification} objects describing search-path environment variables honored by the package."
  11726. msgstr ""
  11727. #. type: item
  11728. #: guix-git/doc/guix.texi:6779
  11729. #, no-wrap
  11730. msgid "@code{replacement} (default: @code{#f})"
  11731. msgstr ""
  11732. #. type: table
  11733. #: guix-git/doc/guix.texi:6783
  11734. msgid "This must be either @code{#f} or a package object that will be used as a @dfn{replacement} for this package. @xref{Security Updates, grafts}, for details."
  11735. msgstr ""
  11736. #. type: item
  11737. #: guix-git/doc/guix.texi:6784 guix-git/doc/guix.texi:12097
  11738. #, no-wrap
  11739. msgid "synopsis"
  11740. msgstr ""
  11741. #. type: table
  11742. #: guix-git/doc/guix.texi:6786
  11743. msgid "A one-line description of the package."
  11744. msgstr ""
  11745. #. type: code{#1}
  11746. #: guix-git/doc/guix.texi:6787 guix-git/doc/guix.texi:12098
  11747. #: guix-git/doc/guix.texi:34550 guix-git/doc/guix.texi:34701
  11748. #, no-wrap
  11749. msgid "description"
  11750. msgstr ""
  11751. #. type: table
  11752. #: guix-git/doc/guix.texi:6789
  11753. msgid "A more elaborate description of the package."
  11754. msgstr ""
  11755. #. type: code{#1}
  11756. #: guix-git/doc/guix.texi:6790
  11757. #, no-wrap
  11758. msgid "license"
  11759. msgstr ""
  11760. #. type: cindex
  11761. #: guix-git/doc/guix.texi:6791
  11762. #, no-wrap
  11763. msgid "license, of packages"
  11764. msgstr ""
  11765. #. type: table
  11766. #: guix-git/doc/guix.texi:6794
  11767. msgid "The license of the package; a value from @code{(guix licenses)}, or a list of such values."
  11768. msgstr ""
  11769. #. type: itemx
  11770. #: guix-git/doc/guix.texi:6795 guix-git/doc/guix.texi:12106
  11771. #, no-wrap
  11772. msgid "home-page"
  11773. msgstr ""
  11774. #. type: table
  11775. #: guix-git/doc/guix.texi:6797
  11776. msgid "The URL to the home-page of the package, as a string."
  11777. msgstr ""
  11778. #. type: item
  11779. #: guix-git/doc/guix.texi:6798
  11780. #, fuzzy, no-wrap
  11781. msgid "@code{supported-systems} (default: @code{%supported-systems})"
  11782. msgstr "@code{port}(默认值:@code{22})"
  11783. #. type: table
  11784. #: guix-git/doc/guix.texi:6801
  11785. msgid "The list of systems supported by the package, as strings of the form @code{architecture-kernel}, for example @code{\"x86_64-linux\"}."
  11786. msgstr ""
  11787. #. type: item
  11788. #: guix-git/doc/guix.texi:6802
  11789. #, no-wrap
  11790. msgid "@code{location} (default: source location of the @code{package} form)"
  11791. msgstr ""
  11792. #. type: table
  11793. #: guix-git/doc/guix.texi:6806
  11794. msgid "The source location of the package. It is useful to override this when inheriting from another package, in which case this field is not automatically corrected."
  11795. msgstr ""
  11796. #. type: deffn
  11797. #: guix-git/doc/guix.texi:6809
  11798. #, no-wrap
  11799. msgid "{Scheme Syntax} this-package"
  11800. msgstr ""
  11801. #. type: deffn
  11802. #: guix-git/doc/guix.texi:6812
  11803. msgid "When used in the @emph{lexical scope} of a package field definition, this identifier resolves to the package being defined."
  11804. msgstr ""
  11805. #. type: deffn
  11806. #: guix-git/doc/guix.texi:6815
  11807. msgid "The example below shows how to add a package as a native input of itself when cross-compiling:"
  11808. msgstr ""
  11809. #. type: lisp
  11810. #: guix-git/doc/guix.texi:6820
  11811. #, no-wrap
  11812. msgid ""
  11813. "(package\n"
  11814. " (name \"guile\")\n"
  11815. " ;; ...\n"
  11816. "\n"
  11817. msgstr ""
  11818. #. type: lisp
  11819. #: guix-git/doc/guix.texi:6826
  11820. #, no-wrap
  11821. msgid ""
  11822. " ;; When cross-compiled, Guile, for example, depends on\n"
  11823. " ;; a native version of itself. Add it here.\n"
  11824. " (native-inputs (if (%current-target-system)\n"
  11825. " `((\"self\" ,this-package))\n"
  11826. " '())))\n"
  11827. msgstr ""
  11828. #. type: deffn
  11829. #: guix-git/doc/guix.texi:6829
  11830. msgid "It is an error to refer to @code{this-package} outside a package definition."
  11831. msgstr ""
  11832. #. type: Plain text
  11833. #: guix-git/doc/guix.texi:6835
  11834. msgid "Because packages are regular Scheme objects that capture a complete dependency graph and associated build procedures, it is often useful to write procedures that take a package and return a modified version thereof according to some parameters. Below are a few examples."
  11835. msgstr ""
  11836. #. type: cindex
  11837. #: guix-git/doc/guix.texi:6836
  11838. #, no-wrap
  11839. msgid "tool chain, choosing a package's tool chain"
  11840. msgstr ""
  11841. #. type: deffn
  11842. #: guix-git/doc/guix.texi:6837
  11843. #, no-wrap
  11844. msgid "{Scheme Procedure} package-with-c-toolchain @var{package} @var{toolchain}"
  11845. msgstr ""
  11846. #. type: deffn
  11847. #: guix-git/doc/guix.texi:6842
  11848. msgid "Return a variant of @var{package} that uses @var{toolchain} instead of the default GNU C/C++ toolchain. @var{toolchain} must be a list of inputs (label/package tuples) providing equivalent functionality, such as the @code{gcc-toolchain} package."
  11849. msgstr ""
  11850. #. type: deffn
  11851. #: guix-git/doc/guix.texi:6846
  11852. msgid "The example below returns a variant of the @code{hello} package built with GCC@tie{}10.x and the rest of the GNU tool chain (Binutils and the GNU C Library) instead of the default tool chain:"
  11853. msgstr ""
  11854. #. type: lisp
  11855. #: guix-git/doc/guix.texi:6850
  11856. #, no-wrap
  11857. msgid ""
  11858. "(let ((toolchain (specification->package \"gcc-toolchain@@10\")))\n"
  11859. " (package-with-c-toolchain hello `((\"toolchain\" ,toolchain))))\n"
  11860. msgstr ""
  11861. #. type: deffn
  11862. #: guix-git/doc/guix.texi:6858
  11863. msgid "The build tool chain is part of the @dfn{implicit inputs} of packages---it's usually not listed as part of the various ``inputs'' fields and is instead pulled in by the build system. Consequently, this procedure works by changing the build system of @var{package} so that it pulls in @var{toolchain} instead of the defaults. @ref{Build Systems}, for more on build systems."
  11864. msgstr ""
  11865. #. type: subsection
  11866. #: guix-git/doc/guix.texi:6861
  11867. #, no-wrap
  11868. msgid "@code{origin} Reference"
  11869. msgstr ""
  11870. #. type: Plain text
  11871. #: guix-git/doc/guix.texi:6869
  11872. msgid "This section documents @dfn{origins}. An @code{origin} declaration specifies data that must be ``produced''---downloaded, usually---and whose content hash is known in advance. Origins are primarily used to represent the source code of packages (@pxref{Defining Packages}). For that reason, the @code{origin} form allows you to declare patches to apply to the original source code as well as code snippets to modify it."
  11873. msgstr ""
  11874. #. type: deftp
  11875. #: guix-git/doc/guix.texi:6870
  11876. #, no-wrap
  11877. msgid "{Data Type} origin"
  11878. msgstr ""
  11879. #. type: deftp
  11880. #: guix-git/doc/guix.texi:6872
  11881. msgid "This is the data type representing a source code origin."
  11882. msgstr ""
  11883. #. type: code{#1}
  11884. #: guix-git/doc/guix.texi:6874 guix-git/doc/guix.texi:25394
  11885. #, no-wrap
  11886. msgid "uri"
  11887. msgstr ""
  11888. #. type: table
  11889. #: guix-git/doc/guix.texi:6879
  11890. msgid "An object containing the URI of the source. The object type depends on the @code{method} (see below). For example, when using the @var{url-fetch} method of @code{(guix download)}, the valid @code{uri} values are: a URL represented as a string, or a list thereof."
  11891. msgstr ""
  11892. #. type: cindex
  11893. #: guix-git/doc/guix.texi:6880
  11894. #, no-wrap
  11895. msgid "fixed-output derivations, for download"
  11896. msgstr ""
  11897. #. type: code{#1}
  11898. #: guix-git/doc/guix.texi:6881
  11899. #, no-wrap
  11900. msgid "method"
  11901. msgstr ""
  11902. #. type: table
  11903. #: guix-git/doc/guix.texi:6888
  11904. msgid "A monadic procedure that handles the given URI@. The procedure must accept at least three arguments: the value of the @code{uri} field and the hash algorithm and hash value specified by the @code{hash} field. It must return a store item or a derivation in the store monad (@pxref{The Store Monad}); most methods return a fixed-output derivation (@pxref{Derivations})."
  11905. msgstr ""
  11906. #. type: table
  11907. #: guix-git/doc/guix.texi:6892
  11908. msgid "Commonly used methods include @code{url-fetch}, which fetches data from a URL, and @code{git-fetch}, which fetches data from a Git repository (see below)."
  11909. msgstr ""
  11910. #. type: code{#1}
  11911. #: guix-git/doc/guix.texi:6893
  11912. #, no-wrap
  11913. msgid "sha256"
  11914. msgstr ""
  11915. #. type: table
  11916. #: guix-git/doc/guix.texi:6897
  11917. msgid "A bytevector containing the SHA-256 hash of the source. This is equivalent to providing a @code{content-hash} SHA256 object in the @code{hash} field described below."
  11918. msgstr ""
  11919. #. type: code{#1}
  11920. #: guix-git/doc/guix.texi:6898
  11921. #, no-wrap
  11922. msgid "hash"
  11923. msgstr ""
  11924. #. type: table
  11925. #: guix-git/doc/guix.texi:6901
  11926. msgid "The @code{content-hash} object of the source---see below for how to use @code{content-hash}."
  11927. msgstr ""
  11928. #. type: table
  11929. #: guix-git/doc/guix.texi:6905
  11930. msgid "You can obtain this information using @code{guix download} (@pxref{Invoking guix download}) or @code{guix hash} (@pxref{Invoking guix hash})."
  11931. msgstr ""
  11932. #. type: item
  11933. #: guix-git/doc/guix.texi:6906
  11934. #, no-wrap
  11935. msgid "@code{file-name} (default: @code{#f})"
  11936. msgstr ""
  11937. #. type: table
  11938. #: guix-git/doc/guix.texi:6912
  11939. msgid "The file name under which the source code should be saved. When this is @code{#f}, a sensible default value will be used in most cases. In case the source is fetched from a URL, the file name from the URL will be used. For version control checkouts, it is recommended to provide the file name explicitly because the default is not very descriptive."
  11940. msgstr ""
  11941. #. type: item
  11942. #: guix-git/doc/guix.texi:6913
  11943. #, no-wrap
  11944. msgid "@code{patches} (default: @code{'()})"
  11945. msgstr ""
  11946. #. type: table
  11947. #: guix-git/doc/guix.texi:6916
  11948. msgid "A list of file names, origins, or file-like objects (@pxref{G-Expressions, file-like objects}) pointing to patches to be applied to the source."
  11949. msgstr ""
  11950. #. type: table
  11951. #: guix-git/doc/guix.texi:6920
  11952. msgid "This list of patches must be unconditional. In particular, it cannot depend on the value of @code{%current-system} or @code{%current-target-system}."
  11953. msgstr ""
  11954. #. type: item
  11955. #: guix-git/doc/guix.texi:6921
  11956. #, no-wrap
  11957. msgid "@code{snippet} (default: @code{#f})"
  11958. msgstr ""
  11959. #. type: table
  11960. #: guix-git/doc/guix.texi:6925
  11961. msgid "A G-expression (@pxref{G-Expressions}) or S-expression that will be run in the source directory. This is a convenient way to modify the source, sometimes more convenient than a patch."
  11962. msgstr ""
  11963. #. type: item
  11964. #: guix-git/doc/guix.texi:6926
  11965. #, no-wrap
  11966. msgid "@code{patch-flags} (default: @code{'(\"-p1\")})"
  11967. msgstr ""
  11968. #. type: table
  11969. #: guix-git/doc/guix.texi:6929
  11970. msgid "A list of command-line flags that should be passed to the @code{patch} command."
  11971. msgstr ""
  11972. #. type: item
  11973. #: guix-git/doc/guix.texi:6930
  11974. #, no-wrap
  11975. msgid "@code{patch-inputs} (default: @code{#f})"
  11976. msgstr ""
  11977. #. type: table
  11978. #: guix-git/doc/guix.texi:6934
  11979. msgid "Input packages or derivations to the patching process. When this is @code{#f}, the usual set of inputs necessary for patching are provided, such as GNU@tie{}Patch."
  11980. msgstr ""
  11981. #. type: item
  11982. #: guix-git/doc/guix.texi:6935 guix-git/doc/guix.texi:25267
  11983. #, no-wrap
  11984. msgid "@code{modules} (default: @code{'()})"
  11985. msgstr ""
  11986. #. type: table
  11987. #: guix-git/doc/guix.texi:6938
  11988. msgid "A list of Guile modules that should be loaded during the patching process and while running the code in the @code{snippet} field."
  11989. msgstr ""
  11990. #. type: item
  11991. #: guix-git/doc/guix.texi:6939
  11992. #, no-wrap
  11993. msgid "@code{patch-guile} (default: @code{#f})"
  11994. msgstr ""
  11995. #. type: table
  11996. #: guix-git/doc/guix.texi:6942
  11997. msgid "The Guile package that should be used in the patching process. When this is @code{#f}, a sensible default is used."
  11998. msgstr ""
  11999. #. type: deftp
  12000. #: guix-git/doc/guix.texi:6945
  12001. #, no-wrap
  12002. msgid "{Data Type} content-hash @var{value} [@var{algorithm}]"
  12003. msgstr ""
  12004. #. type: deftp
  12005. #: guix-git/doc/guix.texi:6949
  12006. msgid "Construct a content hash object for the given @var{algorithm}, and with @var{value} as its hash value. When @var{algorithm} is omitted, assume it is @code{sha256}."
  12007. msgstr ""
  12008. #. type: deftp
  12009. #: guix-git/doc/guix.texi:6952
  12010. msgid "@var{value} can be a literal string, in which case it is base32-decoded, or it can be a bytevector."
  12011. msgstr ""
  12012. #. type: deftp
  12013. #: guix-git/doc/guix.texi:6954
  12014. #, fuzzy
  12015. msgid "The following forms are all equivalent:"
  12016. msgstr "这些依赖是可选的:"
  12017. #. type: lisp
  12018. #: guix-git/doc/guix.texi:6963
  12019. #, no-wrap
  12020. msgid ""
  12021. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\")\n"
  12022. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"\n"
  12023. " sha256)\n"
  12024. "(content-hash (base32\n"
  12025. " \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"))\n"
  12026. "(content-hash (base64 \"kkb+RPaP7uyMZmu4eXPVkM4BN8yhRd8BTHLslb6f/Rc=\")\n"
  12027. " sha256)\n"
  12028. msgstr ""
  12029. #. type: deftp
  12030. #: guix-git/doc/guix.texi:6968
  12031. msgid "Technically, @code{content-hash} is currently implemented as a macro. It performs sanity checks at macro-expansion time, when possible, such as ensuring that @var{value} has the right size for @var{algorithm}."
  12032. msgstr ""
  12033. #. type: Plain text
  12034. #: guix-git/doc/guix.texi:6974
  12035. msgid "As we have seen above, how exactly the data an origin refers to is retrieved is determined by its @code{method} field. The @code{(guix download)} module provides the most common method, @code{url-fetch}, described below."
  12036. msgstr ""
  12037. #. type: deffn
  12038. #: guix-git/doc/guix.texi:6975
  12039. #, no-wrap
  12040. msgid "{Scheme Procedure} url-fetch @var{url} @var{hash-algo} @var{hash} @"
  12041. msgstr ""
  12042. #. type: deffn
  12043. #: guix-git/doc/guix.texi:6983
  12044. msgid "[name] [#:executable? #f] Return a fixed-output derivation that fetches data from @var{url} (a string, or a list of strings denoting alternate URLs), which is expected to have hash @var{hash} of type @var{hash-algo} (a symbol). By default, the file name is the base name of URL; optionally, @var{name} can specify a different file name. When @var{executable?} is true, make the downloaded file executable."
  12045. msgstr ""
  12046. #. type: deffn
  12047. #: guix-git/doc/guix.texi:6986
  12048. msgid "When one of the URL starts with @code{mirror://}, then its host part is interpreted as the name of a mirror scheme, taken from @file{%mirror-file}."
  12049. msgstr ""
  12050. #. type: deffn
  12051. #: guix-git/doc/guix.texi:6989
  12052. msgid "Alternatively, when URL starts with @code{file://}, return the corresponding file name in the store."
  12053. msgstr ""
  12054. #. type: Plain text
  12055. #: guix-git/doc/guix.texi:6995
  12056. msgid "Likewise, the @code{(guix git-download)} module defines the @code{git-fetch} origin method, which fetches data from a Git version control repository, and the @code{git-reference} data type to describe the repository and revision to fetch."
  12057. msgstr ""
  12058. #. type: deffn
  12059. #: guix-git/doc/guix.texi:6996
  12060. #, no-wrap
  12061. msgid "{Scheme Procedure} git-fetch @var{ref} @var{hash-algo} @var{hash}"
  12062. msgstr ""
  12063. #. type: deffn
  12064. #: guix-git/doc/guix.texi:7001
  12065. msgid "Return a fixed-output derivation that fetches @var{ref}, a @code{<git-reference>} object. The output is expected to have recursive hash @var{hash} of type @var{hash-algo} (a symbol). Use @var{name} as the file name, or a generic name if @code{#f}."
  12066. msgstr ""
  12067. #. type: deftp
  12068. #: guix-git/doc/guix.texi:7003
  12069. #, fuzzy, no-wrap
  12070. msgid "{Data Type} git-reference"
  12071. msgstr "{数据类型} build-machine"
  12072. #. type: deftp
  12073. #: guix-git/doc/guix.texi:7006
  12074. msgid "This data type represents a Git reference for @code{git-fetch} to retrieve."
  12075. msgstr ""
  12076. #. type: code{#1}
  12077. #: guix-git/doc/guix.texi:7008 guix-git/doc/guix.texi:23029
  12078. #, no-wrap
  12079. msgid "url"
  12080. msgstr ""
  12081. #. type: table
  12082. #: guix-git/doc/guix.texi:7010
  12083. msgid "The URL of the Git repository to clone."
  12084. msgstr ""
  12085. #. type: code{#1}
  12086. #: guix-git/doc/guix.texi:7011
  12087. #, no-wrap
  12088. msgid "commit"
  12089. msgstr ""
  12090. #. type: table
  12091. #: guix-git/doc/guix.texi:7015
  12092. msgid "This string denotes either the commit to fetch (a hexadecimal string, either the full SHA1 commit or a ``short'' commit string; the latter is not recommended) or the tag to fetch."
  12093. msgstr ""
  12094. #. type: item
  12095. #: guix-git/doc/guix.texi:7016
  12096. #, fuzzy, no-wrap
  12097. msgid "@code{recursive?} (default: @code{#f})"
  12098. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  12099. #. type: table
  12100. #: guix-git/doc/guix.texi:7018
  12101. msgid "This Boolean indicates whether to recursively fetch Git sub-modules."
  12102. msgstr ""
  12103. #. type: deftp
  12104. #: guix-git/doc/guix.texi:7022
  12105. msgid "The example below denotes the @code{v2.10} tag of the GNU@tie{}Hello repository:"
  12106. msgstr ""
  12107. #. type: lisp
  12108. #: guix-git/doc/guix.texi:7027
  12109. #, fuzzy, no-wrap
  12110. msgid ""
  12111. "(git-reference\n"
  12112. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12113. " (commit \"v2.10\"))\n"
  12114. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  12115. #. type: deftp
  12116. #: guix-git/doc/guix.texi:7031
  12117. msgid "This is equivalent to the reference below, which explicitly names the commit:"
  12118. msgstr ""
  12119. #. type: lisp
  12120. #: guix-git/doc/guix.texi:7036
  12121. #, no-wrap
  12122. msgid ""
  12123. "(git-reference\n"
  12124. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12125. " (commit \"dc7dc56a00e48fe6f231a58f6537139fe2908fb9\"))\n"
  12126. msgstr ""
  12127. #. type: Plain text
  12128. #: guix-git/doc/guix.texi:7042
  12129. msgid "For Mercurial repositories, the module @code{(guix hg-download)} defines the @code{hg-fetch} origin method and @code{hg-reference} data type for support of the Mercurial version control system."
  12130. msgstr ""
  12131. #. type: deffn
  12132. #: guix-git/doc/guix.texi:7043
  12133. #, no-wrap
  12134. msgid "{Scheme Procedure} hg-fetch @var{ref} @var{hash-algo} @var{hash} @"
  12135. msgstr ""
  12136. #. type: deffn
  12137. #: guix-git/doc/guix.texi:7049
  12138. msgid "[name] Return a fixed-output derivation that fetches @var{ref}, a @code{<hg-reference>} object. The output is expected to have recursive hash @var{hash} of type @var{hash-algo} (a symbol). Use @var{name} as the file name, or a generic name if @code{#false}."
  12139. msgstr ""
  12140. #. type: cindex
  12141. #: guix-git/doc/guix.texi:7054
  12142. #, fuzzy, no-wrap
  12143. msgid "customizing packages"
  12144. msgstr "定制软件包"
  12145. #. type: cindex
  12146. #: guix-git/doc/guix.texi:7055
  12147. #, fuzzy, no-wrap
  12148. msgid "variants, of packages"
  12149. msgstr "创建软件包的变体。"
  12150. #. type: Plain text
  12151. #: guix-git/doc/guix.texi:7065
  12152. msgid "One of the nice things with Guix is that, given a package definition, you can easily @emph{derive} variants of that package---for a different upstream version, with different dependencies, different compilation options, and so on. Some of these custom packages can be defined straight from the command line (@pxref{Package Transformation Options}). This section describes how to define package variants in code. This can be useful in ``manifests'' (@pxref{profile-manifest, @option{--manifest}}) and in your own package collection (@pxref{Creating a Channel}), among others!"
  12153. msgstr ""
  12154. #. type: cindex
  12155. #: guix-git/doc/guix.texi:7066
  12156. #, fuzzy, no-wrap
  12157. msgid "inherit, for package definitions"
  12158. msgstr "从软件包定义里寻找错误。"
  12159. #. type: Plain text
  12160. #: guix-git/doc/guix.texi:7073
  12161. msgid "As discussed earlier, packages are first-class objects in the Scheme language. The @code{(guix packages)} module provides the @code{package} construct to define new package objects (@pxref{package Reference}). The easiest way to define a package variant is using the @code{inherit} keyword together with @code{package}. This allows you to inherit from a package definition while overriding the fields you want."
  12162. msgstr ""
  12163. #. type: Plain text
  12164. #: guix-git/doc/guix.texi:7078
  12165. msgid "For example, given the @code{hello} variable, which contains a definition for the current version of GNU@tie{}Hello, here's how you would define a variant for version 2.2 (released in 2006, it's vintage!):"
  12166. msgstr ""
  12167. #. type: lisp
  12168. #: guix-git/doc/guix.texi:7081
  12169. #, no-wrap
  12170. msgid ""
  12171. "(use-modules (gnu packages base)) ;for 'hello'\n"
  12172. "\n"
  12173. msgstr ""
  12174. #. type: lisp
  12175. #: guix-git/doc/guix.texi:7093
  12176. #, no-wrap
  12177. msgid ""
  12178. "(define hello-2.2\n"
  12179. " (package\n"
  12180. " (inherit hello)\n"
  12181. " (version \"2.2\")\n"
  12182. " (source (origin\n"
  12183. " (method url-fetch)\n"
  12184. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  12185. " \".tar.gz\"))\n"
  12186. " (sha256\n"
  12187. " (base32\n"
  12188. " \"0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9\"))))))\n"
  12189. msgstr ""
  12190. #. type: Plain text
  12191. #: guix-git/doc/guix.texi:7102
  12192. msgid "The example above corresponds to what the @option{--with-source} package transformation option does. Essentially @code{hello-2.2} preserves all the fields of @code{hello}, except @code{version} and @code{source}, which it overrides. Note that the original @code{hello} variable is still there, in the @code{(gnu packages base)} module, unchanged. When you define a custom package like this, you are really @emph{adding} a new package definition; the original one remains available."
  12193. msgstr ""
  12194. #. type: Plain text
  12195. #: guix-git/doc/guix.texi:7108
  12196. msgid "You can just as well define variants with a different set of dependencies than the original package. For example, the default @code{gdb} package depends on @code{guile}, but since that is an optional dependency, you can define a variant that removes that dependency like so:"
  12197. msgstr ""
  12198. #. type: lisp
  12199. #: guix-git/doc/guix.texi:7112
  12200. #, no-wrap
  12201. msgid ""
  12202. "(use-modules (gnu packages gdb) ;for 'gdb'\n"
  12203. " (srfi srfi-1)) ;for 'alist-delete'\n"
  12204. "\n"
  12205. msgstr ""
  12206. #. type: lisp
  12207. #: guix-git/doc/guix.texi:7118
  12208. #, no-wrap
  12209. msgid ""
  12210. "(define gdb-sans-guile\n"
  12211. " (package\n"
  12212. " (inherit gdb)\n"
  12213. " (inputs (alist-delete \"guile\"\n"
  12214. " (package-inputs gdb)))))\n"
  12215. msgstr ""
  12216. #. type: Plain text
  12217. #: guix-git/doc/guix.texi:7124
  12218. msgid "The @code{alist-delete} call above removes the tuple from the @code{inputs} field that has @code{\"guile\"} as its first element (@pxref{SRFI-1 Association Lists,,, guile, GNU Guile Reference Manual})."
  12219. msgstr ""
  12220. #. type: Plain text
  12221. #: guix-git/doc/guix.texi:7132
  12222. msgid "In some cases, you may find it useful to write functions (``procedures'', in Scheme parlance) that return a package based on some parameters. For example, consider the @code{luasocket} library for the Lua programming language. We want to create @code{luasocket} packages for major versions of Lua. One way to do that is to define a procedure that takes a Lua package and returns a @code{luasocket} package that depends on it:"
  12223. msgstr ""
  12224. #. type: lisp
  12225. #: guix-git/doc/guix.texi:7143
  12226. #, no-wrap
  12227. msgid ""
  12228. "(define (make-lua-socket name lua)\n"
  12229. " ;; Return a luasocket package built with LUA.\n"
  12230. " (package\n"
  12231. " (name name)\n"
  12232. " (version \"3.0\")\n"
  12233. " ;; several fields omitted\n"
  12234. " (inputs\n"
  12235. " `((\"lua\" ,lua)))\n"
  12236. " (synopsis \"Socket library for Lua\")))\n"
  12237. "\n"
  12238. msgstr ""
  12239. #. type: lisp
  12240. #: guix-git/doc/guix.texi:7146
  12241. #, no-wrap
  12242. msgid ""
  12243. "(define-public lua5.1-socket\n"
  12244. " (make-lua-socket \"lua5.1-socket\" lua-5.1))\n"
  12245. "\n"
  12246. msgstr ""
  12247. #. type: lisp
  12248. #: guix-git/doc/guix.texi:7149
  12249. #, no-wrap
  12250. msgid ""
  12251. "(define-public lua5.2-socket\n"
  12252. " (make-lua-socket \"lua5.2-socket\" lua-5.2))\n"
  12253. msgstr ""
  12254. #. type: Plain text
  12255. #: guix-git/doc/guix.texi:7157
  12256. msgid "Here we have defined packages @code{lua5.1-socket} and @code{lua5.2-socket} by calling @code{make-lua-socket} with different arguments. @xref{Procedures,,, guile, GNU Guile Reference Manual}, for more info on procedures. Having top-level public definitions for these two packages means that they can be referred to from the command line (@pxref{Package Modules})."
  12257. msgstr ""
  12258. #. type: cindex
  12259. #: guix-git/doc/guix.texi:7158
  12260. #, no-wrap
  12261. msgid "package transformations"
  12262. msgstr ""
  12263. #. type: Plain text
  12264. #: guix-git/doc/guix.texi:7163
  12265. msgid "These are pretty simple package variants. As a convenience, the @code{(guix transformations)} module provides a high-level interface that directly maps to the more sophisticated package transformation options (@pxref{Package Transformation Options}):"
  12266. msgstr ""
  12267. #. type: deffn
  12268. #: guix-git/doc/guix.texi:7164
  12269. #, no-wrap
  12270. msgid "{Scheme Procedure} options->transformation @var{opts}"
  12271. msgstr ""
  12272. #. type: deffn
  12273. #: guix-git/doc/guix.texi:7168
  12274. msgid "Return a procedure that, when passed an object to build (package, derivation, etc.), applies the transformations specified by @var{opts} and returns the resulting objects. @var{opts} must be a list of symbol/string pairs such as:"
  12275. msgstr ""
  12276. #. type: lisp
  12277. #: guix-git/doc/guix.texi:7172
  12278. #, no-wrap
  12279. msgid ""
  12280. "((with-branch . \"guile-gcrypt=master\")\n"
  12281. " (without-tests . \"libgcrypt\"))\n"
  12282. msgstr ""
  12283. #. type: deffn
  12284. #: guix-git/doc/guix.texi:7176
  12285. msgid "Each symbol names a transformation and the corresponding string is an argument to that transformation."
  12286. msgstr ""
  12287. #. type: Plain text
  12288. #: guix-git/doc/guix.texi:7179
  12289. msgid "For instance, a manifest equivalent to this command:"
  12290. msgstr ""
  12291. #. type: example
  12292. #: guix-git/doc/guix.texi:7184
  12293. #, no-wrap
  12294. msgid ""
  12295. "guix build guix \\\n"
  12296. " --with-branch=guile-gcrypt=master \\\n"
  12297. " --with-debug-info=zlib\n"
  12298. msgstr ""
  12299. #. type: Plain text
  12300. #: guix-git/doc/guix.texi:7188
  12301. msgid "... would look like this:"
  12302. msgstr ""
  12303. #. type: lisp
  12304. #: guix-git/doc/guix.texi:7191
  12305. #, no-wrap
  12306. msgid ""
  12307. "(use-modules (guix transformations))\n"
  12308. "\n"
  12309. msgstr ""
  12310. #. type: lisp
  12311. #: guix-git/doc/guix.texi:7197
  12312. #, no-wrap
  12313. msgid ""
  12314. "(define transform\n"
  12315. " ;; The package transformation procedure.\n"
  12316. " (options->transformation\n"
  12317. " '((with-branch . \"guile-gcrypt=master\")\n"
  12318. " (with-debug-info . \"zlib\"))))\n"
  12319. "\n"
  12320. msgstr ""
  12321. #. type: lisp
  12322. #: guix-git/doc/guix.texi:7200
  12323. #, no-wrap
  12324. msgid ""
  12325. "(packages->manifest\n"
  12326. " (list (transform (specification->package \"guix\"))))\n"
  12327. msgstr ""
  12328. #. type: cindex
  12329. #: guix-git/doc/guix.texi:7202
  12330. #, no-wrap
  12331. msgid "input rewriting"
  12332. msgstr ""
  12333. #. type: cindex
  12334. #: guix-git/doc/guix.texi:7203
  12335. #, no-wrap
  12336. msgid "dependency graph rewriting"
  12337. msgstr ""
  12338. #. type: Plain text
  12339. #: guix-git/doc/guix.texi:7210
  12340. msgid "The @code{options->transformation} procedure is convenient, but it's perhaps also not as flexible as you may like. How is it implemented? The astute reader probably noticed that most package transformation options go beyond the superficial changes shown in the first examples of this section: they involve @dfn{input rewriting}, whereby the dependency graph of a package is rewritten by replacing specific inputs by others."
  12341. msgstr ""
  12342. #. type: Plain text
  12343. #: guix-git/doc/guix.texi:7214
  12344. msgid "Dependency graph rewriting, for the purposes of swapping packages in the graph, is what the @code{package-input-rewriting} procedure in @code{(guix packages)} implements."
  12345. msgstr ""
  12346. #. type: deffn
  12347. #: guix-git/doc/guix.texi:7215
  12348. #, no-wrap
  12349. msgid "{Scheme Procedure} package-input-rewriting @var{replacements} @"
  12350. msgstr ""
  12351. #. type: deffn
  12352. #: guix-git/doc/guix.texi:7222
  12353. msgid "[@var{rewrite-name}] [#:deep? #t] Return a procedure that, when passed a package, replaces its direct and indirect dependencies, including implicit inputs when @var{deep?} is true, according to @var{replacements}. @var{replacements} is a list of package pairs; the first element of each pair is the package to replace, and the second one is the replacement."
  12354. msgstr ""
  12355. #. type: deffn
  12356. #: guix-git/doc/guix.texi:7225
  12357. msgid "Optionally, @var{rewrite-name} is a one-argument procedure that takes the name of a package and returns its new name after rewrite."
  12358. msgstr ""
  12359. #. type: table
  12360. #: guix-git/doc/guix.texi:7229 guix-git/doc/guix.texi:10579
  12361. msgid "Consider this example:"
  12362. msgstr ""
  12363. #. type: lisp
  12364. #: guix-git/doc/guix.texi:7235
  12365. #, no-wrap
  12366. msgid ""
  12367. "(define libressl-instead-of-openssl\n"
  12368. " ;; This is a procedure to replace OPENSSL by LIBRESSL,\n"
  12369. " ;; recursively.\n"
  12370. " (package-input-rewriting `((,openssl . ,libressl))))\n"
  12371. "\n"
  12372. msgstr ""
  12373. #. type: lisp
  12374. #: guix-git/doc/guix.texi:7238
  12375. #, no-wrap
  12376. msgid ""
  12377. "(define git-with-libressl\n"
  12378. " (libressl-instead-of-openssl git))\n"
  12379. msgstr ""
  12380. #. type: Plain text
  12381. #: guix-git/doc/guix.texi:7246
  12382. msgid "Here we first define a rewriting procedure that replaces @var{openssl} with @var{libressl}. Then we use it to define a @dfn{variant} of the @var{git} package that uses @var{libressl} instead of @var{openssl}. This is exactly what the @option{--with-input} command-line option does (@pxref{Package Transformation Options, @option{--with-input}})."
  12383. msgstr ""
  12384. #. type: Plain text
  12385. #: guix-git/doc/guix.texi:7249
  12386. msgid "The following variant of @code{package-input-rewriting} can match packages to be replaced by name rather than by identity."
  12387. msgstr ""
  12388. #. type: deffn
  12389. #: guix-git/doc/guix.texi:7250
  12390. #, no-wrap
  12391. msgid "{Scheme Procedure} package-input-rewriting/spec @var{replacements} [#:deep? #t]"
  12392. msgstr ""
  12393. #. type: deffn
  12394. #: guix-git/doc/guix.texi:7257
  12395. msgid "Return a procedure that, given a package, applies the given @var{replacements} to all the package graph, including implicit inputs unless @var{deep?} is false. @var{replacements} is a list of spec/procedures pair; each spec is a package specification such as @code{\"gcc\"} or @code{\"guile@@2\"}, and each procedure takes a matching package and returns a replacement for that package."
  12396. msgstr ""
  12397. #. type: Plain text
  12398. #: guix-git/doc/guix.texi:7260
  12399. msgid "The example above could be rewritten this way:"
  12400. msgstr ""
  12401. #. type: lisp
  12402. #: guix-git/doc/guix.texi:7265
  12403. #, no-wrap
  12404. msgid ""
  12405. "(define libressl-instead-of-openssl\n"
  12406. " ;; Replace all the packages called \"openssl\" with LibreSSL.\n"
  12407. " (package-input-rewriting/spec `((\"openssl\" . ,(const libressl)))))\n"
  12408. msgstr ""
  12409. #. type: Plain text
  12410. #: guix-git/doc/guix.texi:7270
  12411. msgid "The key difference here is that, this time, packages are matched by spec and not by identity. In other words, any package in the graph that is called @code{openssl} will be replaced."
  12412. msgstr ""
  12413. #. type: Plain text
  12414. #: guix-git/doc/guix.texi:7274
  12415. msgid "A more generic procedure to rewrite a package dependency graph is @code{package-mapping}: it supports arbitrary changes to nodes in the graph."
  12416. msgstr ""
  12417. #. type: deffn
  12418. #: guix-git/doc/guix.texi:7275
  12419. #, no-wrap
  12420. msgid "{Scheme Procedure} package-mapping @var{proc} [@var{cut?}] [#:deep? #f]"
  12421. msgstr ""
  12422. #. type: deffn
  12423. #: guix-git/doc/guix.texi:7280
  12424. msgid "Return a procedure that, given a package, applies @var{proc} to all the packages depended on and returns the resulting package. The procedure stops recursion when @var{cut?} returns true for a given package. When @var{deep?} is true, @var{proc} is applied to implicit inputs as well."
  12425. msgstr ""
  12426. #. type: cindex
  12427. #: guix-git/doc/guix.texi:7286
  12428. #, no-wrap
  12429. msgid "build system"
  12430. msgstr ""
  12431. #. type: Plain text
  12432. #: guix-git/doc/guix.texi:7291
  12433. msgid "Each package definition specifies a @dfn{build system} and arguments for that build system (@pxref{Defining Packages}). This @code{build-system} field represents the build procedure of the package, as well as implicit dependencies of that build procedure."
  12434. msgstr ""
  12435. #. type: Plain text
  12436. #: guix-git/doc/guix.texi:7295
  12437. msgid "Build systems are @code{<build-system>} objects. The interface to create and manipulate them is provided by the @code{(guix build-system)} module, and actual build systems are exported by specific modules."
  12438. msgstr ""
  12439. #. type: cindex
  12440. #: guix-git/doc/guix.texi:7296
  12441. #, no-wrap
  12442. msgid "bag (low-level package representation)"
  12443. msgstr ""
  12444. #. type: Plain text
  12445. #: guix-git/doc/guix.texi:7306
  12446. msgid "Under the hood, build systems first compile package objects to @dfn{bags}. A @dfn{bag} is like a package, but with less ornamentation---in other words, a bag is a lower-level representation of a package, which includes all the inputs of that package, including some that were implicitly added by the build system. This intermediate representation is then compiled to a derivation (@pxref{Derivations}). The @code{package-with-c-toolchain} is an example of a way to change the implicit inputs that a package's build system pulls in (@pxref{package Reference, @code{package-with-c-toolchain}})."
  12447. msgstr ""
  12448. #. type: Plain text
  12449. #: guix-git/doc/guix.texi:7314
  12450. msgid "Build systems accept an optional list of @dfn{arguments}. In package definitions, these are passed @i{via} the @code{arguments} field (@pxref{Defining Packages}). They are typically keyword arguments (@pxref{Optional Arguments, keyword arguments in Guile,, guile, GNU Guile Reference Manual}). The value of these arguments is usually evaluated in the @dfn{build stratum}---i.e., by a Guile process launched by the daemon (@pxref{Derivations})."
  12451. msgstr ""
  12452. #. type: Plain text
  12453. #: guix-git/doc/guix.texi:7318
  12454. msgid "The main build system is @code{gnu-build-system}, which implements the standard build procedure for GNU and many other packages. It is provided by the @code{(guix build-system gnu)} module."
  12455. msgstr ""
  12456. #. type: defvr
  12457. #: guix-git/doc/guix.texi:7319
  12458. #, no-wrap
  12459. msgid "{Scheme Variable} gnu-build-system"
  12460. msgstr ""
  12461. #. type: defvr
  12462. #: guix-git/doc/guix.texi:7323
  12463. msgid "@code{gnu-build-system} represents the GNU Build System, and variants thereof (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards})."
  12464. msgstr ""
  12465. #. type: cindex
  12466. #: guix-git/doc/guix.texi:7324 guix-git/doc/guix.texi:8264
  12467. #: guix-git/doc/guix.texi:8719
  12468. #, no-wrap
  12469. msgid "build phases"
  12470. msgstr ""
  12471. #. type: defvr
  12472. #: guix-git/doc/guix.texi:7331
  12473. msgid "In a nutshell, packages using it are configured, built, and installed with the usual @code{./configure && make && make check && make install} command sequence. In practice, a few additional steps are often needed. All these steps are split up in separate @dfn{phases}. @xref{Build Phases}, for more info on build phases and ways to customize them."
  12474. msgstr ""
  12475. #. type: defvr
  12476. #: guix-git/doc/guix.texi:7338
  12477. msgid "In addition, this build system ensures that the ``standard'' environment for GNU packages is available. This includes tools such as GCC, libc, Coreutils, Bash, Make, Diffutils, grep, and sed (see the @code{(guix build-system gnu)} module for a complete list). We call these the @dfn{implicit inputs} of a package, because package definitions do not have to mention them."
  12478. msgstr ""
  12479. #. type: defvr
  12480. #: guix-git/doc/guix.texi:7342
  12481. msgid "This build system supports a number of keyword arguments, which can be passed @i{via} the @code{arguments} field of a package. Here are some of the main parameters:"
  12482. msgstr ""
  12483. #. type: item
  12484. #: guix-git/doc/guix.texi:7344
  12485. #, no-wrap
  12486. msgid "#:phases"
  12487. msgstr ""
  12488. #. type: table
  12489. #: guix-git/doc/guix.texi:7347
  12490. msgid "This argument specifies build-side code that evaluates to an alist of build phases. @xref{Build Phases}, for more information."
  12491. msgstr ""
  12492. #. type: item
  12493. #: guix-git/doc/guix.texi:7348
  12494. #, fuzzy, no-wrap
  12495. msgid "#:configure-flags"
  12496. msgstr "系统配置"
  12497. #. type: table
  12498. #: guix-git/doc/guix.texi:7351
  12499. msgid "This is a list of flags (strings) passed to the @command{configure} script. @xref{Defining Packages}, for an example."
  12500. msgstr ""
  12501. #. type: item
  12502. #: guix-git/doc/guix.texi:7352
  12503. #, no-wrap
  12504. msgid "#:make-flags"
  12505. msgstr ""
  12506. #. type: table
  12507. #: guix-git/doc/guix.texi:7356
  12508. msgid "This list of strings contains flags passed as arguments to @command{make} invocations in the @code{build}, @code{check}, and @code{install} phases."
  12509. msgstr ""
  12510. #. type: item
  12511. #: guix-git/doc/guix.texi:7357
  12512. #, no-wrap
  12513. msgid "#:out-of-source?"
  12514. msgstr ""
  12515. #. type: table
  12516. #: guix-git/doc/guix.texi:7360
  12517. msgid "This Boolean, @code{#f} by default, indicates whether to run builds in a build directory separate from the source tree."
  12518. msgstr ""
  12519. #. type: table
  12520. #: guix-git/doc/guix.texi:7365
  12521. msgid "When it is true, the @code{configure} phase creates a separate build directory, changes to that directory, and runs the @code{configure} script from there. This is useful for packages that require it, such as @code{glibc}."
  12522. msgstr ""
  12523. #. type: item
  12524. #: guix-git/doc/guix.texi:7366
  12525. #, no-wrap
  12526. msgid "#:tests?"
  12527. msgstr ""
  12528. #. type: table
  12529. #: guix-git/doc/guix.texi:7369
  12530. msgid "This Boolean, @code{#t} by default, indicates whether the @code{check} phase should run the package's test suite."
  12531. msgstr ""
  12532. #. type: item
  12533. #: guix-git/doc/guix.texi:7370
  12534. #, no-wrap
  12535. msgid "#:test-target"
  12536. msgstr ""
  12537. #. type: table
  12538. #: guix-git/doc/guix.texi:7373
  12539. msgid "This string, @code{\"check\"} by default, gives the name of the makefile target used by the @code{check} phase."
  12540. msgstr ""
  12541. #. type: item
  12542. #: guix-git/doc/guix.texi:7374
  12543. #, no-wrap
  12544. msgid "#:parallel-build?"
  12545. msgstr ""
  12546. #. type: itemx
  12547. #: guix-git/doc/guix.texi:7375
  12548. #, no-wrap
  12549. msgid "#:parallel-tests?"
  12550. msgstr ""
  12551. #. type: table
  12552. #: guix-git/doc/guix.texi:7382
  12553. msgid "These Boolean values specify whether to build, respectively run the test suite, in parallel, with the @code{-j} flag of @command{make}. When they are true, @code{make} is passed @code{-j@var{n}}, where @var{n} is the number specified as the @option{--cores} option of @command{guix-daemon} or that of the @command{guix} client command (@pxref{Common Build Options, @option{--cores}})."
  12554. msgstr ""
  12555. #. type: cindex
  12556. #: guix-git/doc/guix.texi:7383
  12557. #, no-wrap
  12558. msgid "RUNPATH, validation"
  12559. msgstr ""
  12560. #. type: item
  12561. #: guix-git/doc/guix.texi:7384
  12562. #, no-wrap
  12563. msgid "#:validate-runpath?"
  12564. msgstr ""
  12565. #. type: table
  12566. #: guix-git/doc/guix.texi:7388
  12567. msgid "This Boolean, @code{#t} by default, determines whether to ``validate'' the @code{RUNPATH} of ELF binaries (@code{.so} shared libraries as well as executables) previously installed by the @code{install} phase."
  12568. msgstr ""
  12569. #. type: table
  12570. #: guix-git/doc/guix.texi:7396
  12571. msgid "This validation step consists in making sure that all the shared libraries needed by an ELF binary, which are listed as @code{DT_NEEDED} entries in its @code{PT_DYNAMIC} segment, appear in the @code{DT_RUNPATH} entry of that binary. In other words, it ensures that running or using those binaries will not result in a ``file not found'' error at run time. @xref{Options, @option{-rpath},, ld, The GNU Linker}, for more information on @code{RUNPATH}."
  12572. msgstr ""
  12573. #. type: item
  12574. #: guix-git/doc/guix.texi:7397
  12575. #, fuzzy, no-wrap
  12576. msgid "#:substitutable?"
  12577. msgstr "substitutes"
  12578. #. type: table
  12579. #: guix-git/doc/guix.texi:7401
  12580. msgid "This Boolean, @code{#t} by default, tells whether the package outputs should be substitutable---i.e., whether users should be able to obtain substitutes for them instead of building locally (@pxref{Substitutes})."
  12581. msgstr ""
  12582. #. type: item
  12583. #: guix-git/doc/guix.texi:7402
  12584. #, no-wrap
  12585. msgid "#:allowed-references"
  12586. msgstr ""
  12587. #. type: itemx
  12588. #: guix-git/doc/guix.texi:7403
  12589. #, no-wrap
  12590. msgid "#:disallowed-references"
  12591. msgstr ""
  12592. #. type: table
  12593. #: guix-git/doc/guix.texi:7408
  12594. msgid "When true, these arguments must be a list of dependencies that must not appear among the references of the build results. If, upon build completion, some of these references are retained, the build process fails."
  12595. msgstr ""
  12596. #. type: table
  12597. #: guix-git/doc/guix.texi:7413
  12598. msgid "This is useful to ensure that a package does not erroneously keep a reference to some of it build-time inputs, in cases where doing so would, for example, unnecessarily increase its size (@pxref{Invoking guix size})."
  12599. msgstr ""
  12600. #. type: defvr
  12601. #: guix-git/doc/guix.texi:7416
  12602. msgid "Most other build systems support these keyword arguments."
  12603. msgstr ""
  12604. #. type: Plain text
  12605. #: guix-git/doc/guix.texi:7423
  12606. msgid "Other @code{<build-system>} objects are defined to support other conventions and tools used by free software packages. They inherit most of @code{gnu-build-system}, and differ mainly in the set of inputs implicitly added to the build process, and in the list of phases executed. Some of these build systems are listed below."
  12607. msgstr ""
  12608. #. type: defvr
  12609. #: guix-git/doc/guix.texi:7424
  12610. #, no-wrap
  12611. msgid "{Scheme Variable} ant-build-system"
  12612. msgstr ""
  12613. #. type: defvr
  12614. #: guix-git/doc/guix.texi:7428
  12615. msgid "This variable is exported by @code{(guix build-system ant)}. It implements the build procedure for Java packages that can be built with @url{https://ant.apache.org/, Ant build tool}."
  12616. msgstr ""
  12617. #. type: defvr
  12618. #: guix-git/doc/guix.texi:7433
  12619. msgid "It adds both @code{ant} and the @dfn{Java Development Kit} (JDK) as provided by the @code{icedtea} package to the set of inputs. Different packages can be specified with the @code{#:ant} and @code{#:jdk} parameters, respectively."
  12620. msgstr ""
  12621. #. type: defvr
  12622. #: guix-git/doc/guix.texi:7439
  12623. msgid "When the original package does not provide a suitable Ant build file, the parameter @code{#:jar-name} can be used to generate a minimal Ant build file @file{build.xml} with tasks to build the specified jar archive. In this case the parameter @code{#:source-dir} can be used to specify the source sub-directory, defaulting to ``src''."
  12624. msgstr ""
  12625. #. type: defvr
  12626. #: guix-git/doc/guix.texi:7447
  12627. msgid "The @code{#:main-class} parameter can be used with the minimal ant buildfile to specify the main class of the resulting jar. This makes the jar file executable. The @code{#:test-include} parameter can be used to specify the list of junit tests to run. It defaults to @code{(list \"**/*Test.java\")}. The @code{#:test-exclude} can be used to disable some tests. It defaults to @code{(list \"**/Abstract*.java\")}, because abstract classes cannot be run as tests."
  12628. msgstr ""
  12629. #. type: defvr
  12630. #: guix-git/doc/guix.texi:7451
  12631. msgid "The parameter @code{#:build-target} can be used to specify the Ant task that should be run during the @code{build} phase. By default the ``jar'' task will be run."
  12632. msgstr ""
  12633. #. type: defvr
  12634. #: guix-git/doc/guix.texi:7454
  12635. #, no-wrap
  12636. msgid "{Scheme Variable} android-ndk-build-system"
  12637. msgstr ""
  12638. #. type: cindex
  12639. #: guix-git/doc/guix.texi:7455
  12640. #, no-wrap
  12641. msgid "Android distribution"
  12642. msgstr ""
  12643. #. type: cindex
  12644. #: guix-git/doc/guix.texi:7456
  12645. #, no-wrap
  12646. msgid "Android NDK build system"
  12647. msgstr ""
  12648. #. type: defvr
  12649. #: guix-git/doc/guix.texi:7460
  12650. msgid "This variable is exported by @code{(guix build-system android-ndk)}. It implements a build procedure for Android NDK (native development kit) packages using a Guix-specific build process."
  12651. msgstr ""
  12652. #. type: defvr
  12653. #: guix-git/doc/guix.texi:7464
  12654. msgid "The build system assumes that packages install their public interface (header) files to the subdirectory @file{include} of the @code{out} output and their libraries to the subdirectory @file{lib} the @code{out} output."
  12655. msgstr ""
  12656. #. type: defvr
  12657. #: guix-git/doc/guix.texi:7467
  12658. msgid "It's also assumed that the union of all the dependencies of a package has no conflicting files."
  12659. msgstr ""
  12660. #. type: defvr
  12661. #: guix-git/doc/guix.texi:7470
  12662. msgid "For the time being, cross-compilation is not supported - so right now the libraries and header files are assumed to be host tools."
  12663. msgstr ""
  12664. #. type: defvr
  12665. #: guix-git/doc/guix.texi:7473
  12666. #, no-wrap
  12667. msgid "{Scheme Variable} asdf-build-system/source"
  12668. msgstr ""
  12669. #. type: defvrx
  12670. #: guix-git/doc/guix.texi:7474
  12671. #, no-wrap
  12672. msgid "{Scheme Variable} asdf-build-system/sbcl"
  12673. msgstr ""
  12674. #. type: defvrx
  12675. #: guix-git/doc/guix.texi:7475
  12676. #, no-wrap
  12677. msgid "{Scheme Variable} asdf-build-system/ecl"
  12678. msgstr ""
  12679. #. type: defvr
  12680. #: guix-git/doc/guix.texi:7481
  12681. msgid "These variables, exported by @code{(guix build-system asdf)}, implement build procedures for Common Lisp packages using @url{https://common-lisp.net/project/asdf/, ``ASDF''}. ASDF is a system definition facility for Common Lisp programs and libraries."
  12682. msgstr ""
  12683. #. type: defvr
  12684. #: guix-git/doc/guix.texi:7488
  12685. msgid "The @code{asdf-build-system/source} system installs the packages in source form, and can be loaded using any common lisp implementation, via ASDF@. The others, such as @code{asdf-build-system/sbcl}, install binary systems in the format which a particular implementation understands. These build systems can also be used to produce executable programs, or lisp images which contain a set of packages pre-loaded."
  12686. msgstr ""
  12687. #. type: defvr
  12688. #: guix-git/doc/guix.texi:7492
  12689. msgid "The build system uses naming conventions. For binary packages, the package name should be prefixed with the lisp implementation, such as @code{sbcl-} for @code{asdf-build-system/sbcl}."
  12690. msgstr ""
  12691. #. type: defvr
  12692. #: guix-git/doc/guix.texi:7496
  12693. msgid "Additionally, the corresponding source package should be labeled using the same convention as python packages (see @ref{Python Modules}), using the @code{cl-} prefix."
  12694. msgstr ""
  12695. #. type: defvr
  12696. #: guix-git/doc/guix.texi:7504
  12697. msgid "In order to create executable programs and images, the build-side procedures @code{build-program} and @code{build-image} can be used. They should be called in a build phase after the @code{create-asdf-configuration} phase, so that the system which was just built can be used within the resulting image. @code{build-program} requires a list of Common Lisp expressions to be passed as the @code{#:entry-program} argument."
  12698. msgstr ""
  12699. #. type: defvr
  12700. #: guix-git/doc/guix.texi:7513
  12701. msgid "By default, all the @file{.asd} files present in the sources are read to find system definitions. The @code{#:asd-files} parameter can be used to specify the list of @file{.asd} files to read. Furthermore, if the package defines a system for its tests in a separate file, it will be loaded before the tests are run if it is specified by the @code{#:test-asd-file} parameter. If it is not set, the files @code{<system>-tests.asd}, @code{<system>-test.asd}, @code{tests.asd}, and @code{test.asd} will be tried if they exist."
  12702. msgstr ""
  12703. #. type: defvr
  12704. #: guix-git/doc/guix.texi:7518
  12705. msgid "If for some reason the package must be named in a different way than the naming conventions suggest, or if several systems must be compiled, the @code{#:asd-systems} parameter can be used to specify the list of system names."
  12706. msgstr ""
  12707. #. type: defvr
  12708. #: guix-git/doc/guix.texi:7521
  12709. #, no-wrap
  12710. msgid "{Scheme Variable} cargo-build-system"
  12711. msgstr ""
  12712. #. type: cindex
  12713. #: guix-git/doc/guix.texi:7522
  12714. #, no-wrap
  12715. msgid "Rust programming language"
  12716. msgstr ""
  12717. #. type: cindex
  12718. #: guix-git/doc/guix.texi:7523
  12719. #, no-wrap
  12720. msgid "Cargo (Rust build system)"
  12721. msgstr ""
  12722. #. type: defvr
  12723. #: guix-git/doc/guix.texi:7527
  12724. msgid "This variable is exported by @code{(guix build-system cargo)}. It supports builds of packages using Cargo, the build tool of the @uref{https://www.rust-lang.org, Rust programming language}."
  12725. msgstr ""
  12726. #. type: defvr
  12727. #: guix-git/doc/guix.texi:7530
  12728. msgid "It adds @code{rustc} and @code{cargo} to the set of inputs. A different Rust package can be specified with the @code{#:rust} parameter."
  12729. msgstr ""
  12730. #. type: defvr
  12731. #: guix-git/doc/guix.texi:7540
  12732. msgid "Regular cargo dependencies should be added to the package definition similarly to other packages; those needed only at build time to native-inputs, others to inputs. If you need to add source-only crates then you should add them to via the @code{#:cargo-inputs} parameter as a list of name and spec pairs, where the spec can be a package or a source definition. Note that the spec must evaluate to a path to a gzipped tarball which includes a @code{Cargo.toml} file at its root, or it will be ignored. Similarly, cargo dev-dependencies should be added to the package definition via the @code{#:cargo-development-inputs} parameter."
  12733. msgstr ""
  12734. #. type: defvr
  12735. #: guix-git/doc/guix.texi:7550
  12736. msgid "In its @code{configure} phase, this build system will make any source inputs specified in the @code{#:cargo-inputs} and @code{#:cargo-development-inputs} parameters available to cargo. It will also remove an included @code{Cargo.lock} file to be recreated by @code{cargo} during the @code{build} phase. The @code{package} phase will run @code{cargo package} to create a source crate for future use. The @code{install} phase installs the binaries defined by the crate. Unless @code{install-source? #f} is defined it will also install a source crate repository of itself and unpacked sources, to ease in future hacking on rust packages."
  12737. msgstr ""
  12738. #. type: defvr
  12739. #: guix-git/doc/guix.texi:7552
  12740. #, no-wrap
  12741. msgid "{Scheme Variable} chicken-build-system"
  12742. msgstr ""
  12743. #. type: defvr
  12744. #: guix-git/doc/guix.texi:7557
  12745. msgid "This variable is exported by @code{(guix build-system chicken)}. It builds @uref{https://call-cc.org/, CHICKEN Scheme} modules, also called ``eggs'' or ``extensions''. CHICKEN generates C source code, which then gets compiled by a C compiler, in this case GCC."
  12746. msgstr ""
  12747. #. type: defvr
  12748. #: guix-git/doc/guix.texi:7560
  12749. msgid "This build system adds @code{chicken} to the package inputs, as well as the packages of @code{gnu-build-system}."
  12750. msgstr ""
  12751. #. type: defvr
  12752. #: guix-git/doc/guix.texi:7564
  12753. msgid "The build system can't (yet) deduce the egg's name automatically, so just like with @code{go-build-system} and its @code{#:import-path}, you should define @code{#:egg-name} in the package's @code{arguments} field."
  12754. msgstr ""
  12755. #. type: defvr
  12756. #: guix-git/doc/guix.texi:7566
  12757. msgid "For example, if you are packaging the @code{srfi-1} egg:"
  12758. msgstr ""
  12759. #. type: lisp
  12760. #: guix-git/doc/guix.texi:7569
  12761. #, no-wrap
  12762. msgid "(arguments '(#:egg-name \"srfi-1\"))\n"
  12763. msgstr ""
  12764. #. type: defvr
  12765. #: guix-git/doc/guix.texi:7574
  12766. msgid "Egg dependencies must be defined in @code{propagated-inputs}, not @code{inputs} because CHICKEN doesn't embed absolute references in compiled eggs. Test dependencies should go to @code{native-inputs}, as usual."
  12767. msgstr ""
  12768. #. type: defvr
  12769. #: guix-git/doc/guix.texi:7576
  12770. #, no-wrap
  12771. msgid "{Scheme Variable} copy-build-system"
  12772. msgstr ""
  12773. #. type: defvr
  12774. #: guix-git/doc/guix.texi:7580
  12775. msgid "This variable is exported by @code{(guix build-system copy)}. It supports builds of simple packages that don't require much compiling, mostly just moving files around."
  12776. msgstr ""
  12777. #. type: defvr
  12778. #: guix-git/doc/guix.texi:7585
  12779. msgid "It adds much of the @code{gnu-build-system} packages to the set of inputs. Because of this, the @code{copy-build-system} does not require all the boilerplate code often needed for the @code{trivial-build-system}."
  12780. msgstr ""
  12781. #. type: defvr
  12782. #: guix-git/doc/guix.texi:7590
  12783. msgid "To further simplify the file installation process, an @code{#:install-plan} argument is exposed to let the packager specify which files go where. The install plan is a list of @code{(@var{source} @var{target} [@var{filters}])}. @var{filters} are optional."
  12784. msgstr ""
  12785. #. type: item
  12786. #: guix-git/doc/guix.texi:7592
  12787. #, no-wrap
  12788. msgid "When @var{source} matches a file or directory without trailing slash, install it to @var{target}."
  12789. msgstr ""
  12790. #. type: item
  12791. #: guix-git/doc/guix.texi:7594
  12792. #, no-wrap
  12793. msgid "If @var{target} has a trailing slash, install @var{source} basename beneath @var{target}."
  12794. msgstr ""
  12795. #. type: item
  12796. #: guix-git/doc/guix.texi:7595
  12797. #, no-wrap
  12798. msgid "Otherwise install @var{source} as @var{target}."
  12799. msgstr ""
  12800. #. type: item
  12801. #: guix-git/doc/guix.texi:7598
  12802. #, no-wrap
  12803. msgid "When @var{source} is a directory with a trailing slash, or when @var{filters} are used,"
  12804. msgstr ""
  12805. #. type: itemize
  12806. #: guix-git/doc/guix.texi:7601
  12807. msgid "the trailing slash of @var{target} is implied with the same meaning as above."
  12808. msgstr ""
  12809. #. type: item
  12810. #: guix-git/doc/guix.texi:7602
  12811. #, no-wrap
  12812. msgid "Without @var{filters}, install the full @var{source} @emph{content} to @var{target}."
  12813. msgstr ""
  12814. #. type: item
  12815. #: guix-git/doc/guix.texi:7603
  12816. #, no-wrap
  12817. msgid "With @var{filters} among @code{#:include}, @code{#:include-regexp}, @code{#:exclude},"
  12818. msgstr ""
  12819. #. type: itemize
  12820. #: guix-git/doc/guix.texi:7606
  12821. msgid "@code{#:exclude-regexp}, only select files are installed depending on the filters. Each filters is specified by a list of strings."
  12822. msgstr ""
  12823. #. type: item
  12824. #: guix-git/doc/guix.texi:7607
  12825. #, no-wrap
  12826. msgid "With @code{#:include}, install all the files which the path suffix matches"
  12827. msgstr ""
  12828. #. type: itemize
  12829. #: guix-git/doc/guix.texi:7609
  12830. msgid "at least one of the elements in the given list."
  12831. msgstr ""
  12832. #. type: item
  12833. #: guix-git/doc/guix.texi:7609
  12834. #, no-wrap
  12835. msgid "With @code{#:include-regexp}, install all the files which the"
  12836. msgstr ""
  12837. #. type: itemize
  12838. #: guix-git/doc/guix.texi:7612
  12839. msgid "subpaths match at least one of the regular expressions in the given list."
  12840. msgstr ""
  12841. #. type: item
  12842. #: guix-git/doc/guix.texi:7612
  12843. #, no-wrap
  12844. msgid "The @code{#:exclude} and @code{#:exclude-regexp} filters"
  12845. msgstr ""
  12846. #. type: itemize
  12847. #: guix-git/doc/guix.texi:7617
  12848. msgid "are the complement of their inclusion counterpart. Without @code{#:include} flags, install all files but those matching the exclusion filters. If both inclusions and exclusions are specified, the exclusions are done on top of the inclusions."
  12849. msgstr ""
  12850. #. type: itemize
  12851. #: guix-git/doc/guix.texi:7621
  12852. msgid "In all cases, the paths relative to @var{source} are preserved within @var{target}."
  12853. msgstr ""
  12854. #. type: defvr
  12855. #: guix-git/doc/guix.texi:7624
  12856. msgid "Examples:"
  12857. msgstr ""
  12858. #. type: item
  12859. #: guix-git/doc/guix.texi:7626
  12860. #, no-wrap
  12861. msgid "@code{(\"foo/bar\" \"share/my-app/\")}: Install @file{bar} to @file{share/my-app/bar}."
  12862. msgstr ""
  12863. #. type: item
  12864. #: guix-git/doc/guix.texi:7627
  12865. #, no-wrap
  12866. msgid "@code{(\"foo/bar\" \"share/my-app/baz\")}: Install @file{bar} to @file{share/my-app/baz}."
  12867. msgstr ""
  12868. #. type: item
  12869. #: guix-git/doc/guix.texi:7628
  12870. #, no-wrap
  12871. msgid "@code{(\"foo/\" \"share/my-app\")}: Install the content of @file{foo} inside @file{share/my-app},"
  12872. msgstr ""
  12873. #. type: itemize
  12874. #: guix-git/doc/guix.texi:7630
  12875. msgid "e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}."
  12876. msgstr ""
  12877. #. type: item
  12878. #: guix-git/doc/guix.texi:7630
  12879. #, no-wrap
  12880. msgid "@code{(\"foo/\" \"share/my-app\" #:include (\"sub/file\"))}: Install only @file{foo/sub/file} to"
  12881. msgstr ""
  12882. #. type: itemize
  12883. #: guix-git/doc/guix.texi:7632
  12884. msgid "@file{share/my-app/sub/file}."
  12885. msgstr ""
  12886. #. type: item
  12887. #: guix-git/doc/guix.texi:7632
  12888. #, no-wrap
  12889. msgid "@code{(\"foo/sub\" \"share/my-app\" #:include (\"file\"))}: Install @file{foo/sub/file} to"
  12890. msgstr ""
  12891. #. type: itemize
  12892. #: guix-git/doc/guix.texi:7634
  12893. msgid "@file{share/my-app/file}."
  12894. msgstr ""
  12895. #. type: cindex
  12896. #: guix-git/doc/guix.texi:7638
  12897. #, no-wrap
  12898. msgid "Clojure (programming language)"
  12899. msgstr ""
  12900. #. type: cindex
  12901. #: guix-git/doc/guix.texi:7639
  12902. #, no-wrap
  12903. msgid "simple Clojure build system"
  12904. msgstr ""
  12905. #. type: defvr
  12906. #: guix-git/doc/guix.texi:7640
  12907. #, no-wrap
  12908. msgid "{Scheme Variable} clojure-build-system"
  12909. msgstr ""
  12910. #. type: defvr
  12911. #: guix-git/doc/guix.texi:7645
  12912. msgid "This variable is exported by @code{(guix build-system clojure)}. It implements a simple build procedure for @uref{https://clojure.org/, Clojure} packages using plain old @code{compile} in Clojure. Cross-compilation is not supported yet."
  12913. msgstr ""
  12914. #. type: defvr
  12915. #: guix-git/doc/guix.texi:7649
  12916. msgid "It adds @code{clojure}, @code{icedtea} and @code{zip} to the set of inputs. Different packages can be specified with the @code{#:clojure}, @code{#:jdk} and @code{#:zip} parameters, respectively."
  12917. msgstr ""
  12918. #. type: defvr
  12919. #: guix-git/doc/guix.texi:7655
  12920. msgid "A list of source directories, test directories and jar names can be specified with the @code{#:source-dirs}, @code{#:test-dirs} and @code{#:jar-names} parameters, respectively. Compile directory and main class can be specified with the @code{#:compile-dir} and @code{#:main-class} parameters, respectively. Other parameters are documented below."
  12921. msgstr ""
  12922. #. type: defvr
  12923. #: guix-git/doc/guix.texi:7658
  12924. msgid "This build system is an extension of @code{ant-build-system}, but with the following phases changed:"
  12925. msgstr ""
  12926. #. type: item
  12927. #: guix-git/doc/guix.texi:7661 guix-git/doc/guix.texi:8227
  12928. #: guix-git/doc/guix.texi:8274 guix-git/doc/guix.texi:8343
  12929. #: guix-git/doc/guix.texi:33640
  12930. #, no-wrap
  12931. msgid "build"
  12932. msgstr ""
  12933. #. type: table
  12934. #: guix-git/doc/guix.texi:7670
  12935. msgid "This phase calls @code{compile} in Clojure to compile source files and runs @command{jar} to create jars from both source files and compiled files according to the include list and exclude list specified in @code{#:aot-include} and @code{#:aot-exclude}, respectively. The exclude list has priority over the include list. These lists consist of symbols representing Clojure libraries or the special keyword @code{#:all} representing all Clojure libraries found under the source directories. The parameter @code{#:omit-source?} decides if source should be included into the jars."
  12936. msgstr ""
  12937. #. type: item
  12938. #: guix-git/doc/guix.texi:7671 guix-git/doc/guix.texi:8231
  12939. #: guix-git/doc/guix.texi:8348
  12940. #, no-wrap
  12941. msgid "check"
  12942. msgstr ""
  12943. #. type: table
  12944. #: guix-git/doc/guix.texi:7678
  12945. msgid "This phase runs tests according to the include list and exclude list specified in @code{#:test-include} and @code{#:test-exclude}, respectively. Their meanings are analogous to that of @code{#:aot-include} and @code{#:aot-exclude}, except that the special keyword @code{#:all} now stands for all Clojure libraries found under the test directories. The parameter @code{#:tests?} decides if tests should be run."
  12946. msgstr ""
  12947. #. type: item
  12948. #: guix-git/doc/guix.texi:7679 guix-git/doc/guix.texi:8235
  12949. #: guix-git/doc/guix.texi:8278 guix-git/doc/guix.texi:8354
  12950. #, no-wrap
  12951. msgid "install"
  12952. msgstr ""
  12953. #. type: table
  12954. #: guix-git/doc/guix.texi:7681
  12955. msgid "This phase installs all jars built previously."
  12956. msgstr ""
  12957. #. type: defvr
  12958. #: guix-git/doc/guix.texi:7684
  12959. msgid "Apart from the above, this build system also contains an additional phase:"
  12960. msgstr ""
  12961. #. type: item
  12962. #: guix-git/doc/guix.texi:7687
  12963. #, no-wrap
  12964. msgid "install-doc"
  12965. msgstr ""
  12966. #. type: table
  12967. #: guix-git/doc/guix.texi:7692
  12968. msgid "This phase installs all top-level files with base name matching @code{%doc-regex}. A different regex can be specified with the @code{#:doc-regex} parameter. All files (recursively) inside the documentation directories specified in @code{#:doc-dirs} are installed as well."
  12969. msgstr ""
  12970. #. type: defvr
  12971. #: guix-git/doc/guix.texi:7695
  12972. #, no-wrap
  12973. msgid "{Scheme Variable} cmake-build-system"
  12974. msgstr ""
  12975. #. type: defvr
  12976. #: guix-git/doc/guix.texi:7699
  12977. msgid "This variable is exported by @code{(guix build-system cmake)}. It implements the build procedure for packages using the @url{https://www.cmake.org, CMake build tool}."
  12978. msgstr ""
  12979. #. type: defvr
  12980. #: guix-git/doc/guix.texi:7703
  12981. msgid "It automatically adds the @code{cmake} package to the set of inputs. Which package is used can be specified with the @code{#:cmake} parameter."
  12982. msgstr ""
  12983. #. type: defvr
  12984. #: guix-git/doc/guix.texi:7710
  12985. msgid "The @code{#:configure-flags} parameter is taken as a list of flags passed to the @command{cmake} command. The @code{#:build-type} parameter specifies in abstract terms the flags passed to the compiler; it defaults to @code{\"RelWithDebInfo\"} (short for ``release mode with debugging information''), which roughly means that code is compiled with @code{-O2 -g}, as is the case for Autoconf-based packages by default."
  12986. msgstr ""
  12987. #. type: defvr
  12988. #: guix-git/doc/guix.texi:7712
  12989. #, no-wrap
  12990. msgid "{Scheme Variable} dune-build-system"
  12991. msgstr ""
  12992. #. type: defvr
  12993. #: guix-git/doc/guix.texi:7719
  12994. msgid "This variable is exported by @code{(guix build-system dune)}. It supports builds of packages using @uref{https://dune.build/, Dune}, a build tool for the OCaml programming language. It is implemented as an extension of the @code{ocaml-build-system} which is described below. As such, the @code{#:ocaml} and @code{#:findlib} parameters can be passed to this build system."
  12995. msgstr ""
  12996. #. type: defvr
  12997. #: guix-git/doc/guix.texi:7723
  12998. msgid "It automatically adds the @code{dune} package to the set of inputs. Which package is used can be specified with the @code{#:dune} parameter."
  12999. msgstr ""
  13000. #. type: defvr
  13001. #: guix-git/doc/guix.texi:7727
  13002. msgid "There is no @code{configure} phase because dune packages typically don't need to be configured. The @code{#:build-flags} parameter is taken as a list of flags passed to the @code{dune} command during the build."
  13003. msgstr ""
  13004. #. type: defvr
  13005. #: guix-git/doc/guix.texi:7731
  13006. msgid "The @code{#:jbuild?} parameter can be passed to use the @code{jbuild} command instead of the more recent @code{dune} command while building a package. Its default value is @code{#f}."
  13007. msgstr ""
  13008. #. type: defvr
  13009. #: guix-git/doc/guix.texi:7736
  13010. msgid "The @code{#:package} parameter can be passed to specify a package name, which is useful when a package contains multiple packages and you want to build only one of them. This is equivalent to passing the @code{-p} argument to @code{dune}."
  13011. msgstr ""
  13012. #. type: defvr
  13013. #: guix-git/doc/guix.texi:7741
  13014. msgid "The @code{#:profile} parameter can be passed to specify the @uref{https://dune.readthedocs.io/en/stable/dune-files.html#profile, dune build profile}. This is equivalent to passing the @code{--profile} argument to @code{dune}. Its default value is @code{\"release\"}."
  13015. msgstr ""
  13016. #. type: defvr
  13017. #: guix-git/doc/guix.texi:7744
  13018. #, no-wrap
  13019. msgid "{Scheme Variable} go-build-system"
  13020. msgstr ""
  13021. #. type: defvr
  13022. #: guix-git/doc/guix.texi:7749
  13023. msgid "This variable is exported by @code{(guix build-system go)}. It implements a build procedure for Go packages using the standard @url{https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies, Go build mechanisms}."
  13024. msgstr ""
  13025. #. type: defvr
  13026. #: guix-git/doc/guix.texi:7760
  13027. msgid "The user is expected to provide a value for the key @code{#:import-path} and, in some cases, @code{#:unpack-path}. The @url{https://golang.org/doc/code.html#ImportPaths, import path} corresponds to the file system path expected by the package's build scripts and any referring packages, and provides a unique way to refer to a Go package. It is typically based on a combination of the package source code's remote URI and file system hierarchy structure. In some cases, you will need to unpack the package's source code to a different directory structure than the one indicated by the import path, and @code{#:unpack-path} should be used in such cases."
  13028. msgstr ""
  13029. #. type: defvr
  13030. #: guix-git/doc/guix.texi:7765
  13031. msgid "Packages that provide Go libraries should install their source code into the built output. The key @code{#:install-source?}, which defaults to @code{#t}, controls whether or not the source code is installed. It can be set to @code{#f} for packages that only provide executable files."
  13032. msgstr ""
  13033. #. type: defvr
  13034. #: guix-git/doc/guix.texi:7767
  13035. #, no-wrap
  13036. msgid "{Scheme Variable} glib-or-gtk-build-system"
  13037. msgstr ""
  13038. #. type: defvr
  13039. #: guix-git/doc/guix.texi:7770
  13040. msgid "This variable is exported by @code{(guix build-system glib-or-gtk)}. It is intended for use with packages making use of GLib or GTK+."
  13041. msgstr ""
  13042. #. type: defvr
  13043. #: guix-git/doc/guix.texi:7773
  13044. msgid "This build system adds the following two phases to the ones defined by @code{gnu-build-system}:"
  13045. msgstr ""
  13046. #. type: item
  13047. #: guix-git/doc/guix.texi:7775 guix-git/doc/guix.texi:8251
  13048. #, no-wrap
  13049. msgid "glib-or-gtk-wrap"
  13050. msgstr ""
  13051. #. type: table
  13052. #: guix-git/doc/guix.texi:7782
  13053. msgid "The phase @code{glib-or-gtk-wrap} ensures that programs in @file{bin/} are able to find GLib ``schemas'' and @uref{https://developer.gnome.org/gtk3/stable/gtk-running.html, GTK+ modules}. This is achieved by wrapping the programs in launch scripts that appropriately set the @env{XDG_DATA_DIRS} and @env{GTK_PATH} environment variables."
  13054. msgstr ""
  13055. #. type: table
  13056. #: guix-git/doc/guix.texi:7789
  13057. msgid "It is possible to exclude specific package outputs from that wrapping process by listing their names in the @code{#:glib-or-gtk-wrap-excluded-outputs} parameter. This is useful when an output is known not to contain any GLib or GTK+ binaries, and where wrapping would gratuitously add a dependency of that output on GLib and GTK+."
  13058. msgstr ""
  13059. #. type: item
  13060. #: guix-git/doc/guix.texi:7790 guix-git/doc/guix.texi:8255
  13061. #, no-wrap
  13062. msgid "glib-or-gtk-compile-schemas"
  13063. msgstr ""
  13064. #. type: table
  13065. #: guix-git/doc/guix.texi:7798
  13066. msgid "The phase @code{glib-or-gtk-compile-schemas} makes sure that all @uref{https://developer.gnome.org/gio/stable/glib-compile-schemas.html, GSettings schemas} of GLib are compiled. Compilation is performed by the @command{glib-compile-schemas} program. It is provided by the package @code{glib:bin} which is automatically imported by the build system. The @code{glib} package providing @command{glib-compile-schemas} can be specified with the @code{#:glib} parameter."
  13067. msgstr ""
  13068. #. type: defvr
  13069. #: guix-git/doc/guix.texi:7801
  13070. msgid "Both phases are executed after the @code{install} phase."
  13071. msgstr ""
  13072. #. type: defvr
  13073. #: guix-git/doc/guix.texi:7803
  13074. #, no-wrap
  13075. msgid "{Scheme Variable} guile-build-system"
  13076. msgstr ""
  13077. #. type: defvr
  13078. #: guix-git/doc/guix.texi:7810
  13079. msgid "This build system is for Guile packages that consist exclusively of Scheme code and that are so lean that they don't even have a makefile, let alone a @file{configure} script. It compiles Scheme code using @command{guild compile} (@pxref{Compilation,,, guile, GNU Guile Reference Manual}) and installs the @file{.scm} and @file{.go} files in the right place. It also installs documentation."
  13080. msgstr ""
  13081. #. type: defvr
  13082. #: guix-git/doc/guix.texi:7813
  13083. msgid "This build system supports cross-compilation by using the @option{--target} option of @samp{guild compile}."
  13084. msgstr ""
  13085. #. type: defvr
  13086. #: guix-git/doc/guix.texi:7816
  13087. msgid "Packages built with @code{guile-build-system} must provide a Guile package in their @code{native-inputs} field."
  13088. msgstr ""
  13089. #. type: defvr
  13090. #: guix-git/doc/guix.texi:7818
  13091. #, no-wrap
  13092. msgid "{Scheme Variable} julia-build-system"
  13093. msgstr ""
  13094. #. type: defvr
  13095. #: guix-git/doc/guix.texi:7825
  13096. msgid "This variable is exported by @code{(guix build-system julia)}. It implements the build procedure used by @uref{https://julialang.org/, julia} packages, which essentially is similar to running @samp{julia -e 'using Pkg; Pkg.add(package)'} in an environment where @env{JULIA_LOAD_PATH} contains the paths to all Julia package inputs. Tests are run by calling @code{/test/runtests.jl}."
  13097. msgstr ""
  13098. #. type: defvr
  13099. #: guix-git/doc/guix.texi:7829
  13100. msgid "The Julia package name is read from the file @file{Project.toml}. This value can be overridden by passing the argument @code{#:julia-package-name} (which must be correctly capitalized)."
  13101. msgstr ""
  13102. #. type: defvr
  13103. #: guix-git/doc/guix.texi:7833
  13104. msgid "Julia packages usually manage their binary dependencies via @code{JLLWrappers.jl}, a Julia package that creates a module (named after the wrapped library followed by @code{_jll.jl}."
  13105. msgstr ""
  13106. #. type: defvr
  13107. #: guix-git/doc/guix.texi:7838
  13108. msgid "To add the binary path @code{_jll.jl} packages, you need to patch the files under @file{src/wrappers/}, replacing the call to the macro @code{JLLWrappers.@@generate_wrapper_header}, adding as a second argument containing the store path the binary."
  13109. msgstr ""
  13110. #. type: defvr
  13111. #: guix-git/doc/guix.texi:7842
  13112. msgid "As an example, in the MbedTLS Julia package, we add a build phase (@pxref{Build Phases}) to insert the absolute file name of the wrapped MbedTLS package:"
  13113. msgstr ""
  13114. #. type: lisp
  13115. #: guix-git/doc/guix.texi:7854
  13116. #, no-wrap
  13117. msgid ""
  13118. "(add-after 'unpack 'override-binary-path\n"
  13119. " (lambda* (#:key inputs #:allow-other-keys)\n"
  13120. " (for-each (lambda (wrapper)\n"
  13121. " (substitute* wrapper\n"
  13122. " ((\"generate_wrapper_header.*\")\n"
  13123. " (string-append\n"
  13124. " \"generate_wrapper_header(\\\"MbedTLS\\\", \\\"\"\n"
  13125. " (assoc-ref inputs \"mbedtls-apache\") \"\\\")\\n\"))))\n"
  13126. " ;; There's a Julia file for each platform, override them all.\n"
  13127. " (find-files \"src/wrappers/\" \"\\\\.jl$\"))))\n"
  13128. msgstr ""
  13129. #. type: defvr
  13130. #: guix-git/doc/guix.texi:7862
  13131. msgid "Some older packages that aren't using @file{Package.toml} yet, will require this file to be created, too. The function @code{julia-create-package-toml} helps creating the file. You need to pass the outputs and the source of the package, its name (the same as the @code{file-name} parameter), the package uuid, the package version, and a list of dependencies specified by their name and their uuid."
  13132. msgstr ""
  13133. #. type: defvr
  13134. #: guix-git/doc/guix.texi:7864
  13135. #, no-wrap
  13136. msgid "{Scheme Variable} maven-build-system"
  13137. msgstr ""
  13138. #. type: defvr
  13139. #: guix-git/doc/guix.texi:7871
  13140. msgid "This variable is exported by @code{(guix build-system maven)}. It implements a build procedure for @uref{https://maven.apache.org, Maven} packages. Maven is a dependency and lifecycle management tool for Java. A user of Maven specifies dependencies and plugins in a @file{pom.xml} file that Maven reads. When Maven does not have one of the dependencies or plugins in its repository, it will download them and use them to build the package."
  13141. msgstr ""
  13142. #. type: defvr
  13143. #: guix-git/doc/guix.texi:7881
  13144. msgid "The maven build system ensures that maven will not try to download any dependency by running in offline mode. Maven will fail if a dependency is missing. Before running Maven, the @file{pom.xml} (and subprojects) are modified to specify the version of dependencies and plugins that match the versions available in the guix build environment. Dependencies and plugins must be installed in the fake maven repository at @file{lib/m2}, and are symlinked into a proper repository before maven is run. Maven is instructed to use that repository for the build and installs built artifacts there. Changed files are copied to the @file{lib/m2} directory of the package output."
  13145. msgstr ""
  13146. #. type: defvr
  13147. #: guix-git/doc/guix.texi:7884
  13148. msgid "You can specify a @file{pom.xml} file with the @code{#:pom-file} argument, or let the build system use the default @file{pom.xml} file in the sources."
  13149. msgstr ""
  13150. #. type: defvr
  13151. #: guix-git/doc/guix.texi:7890
  13152. msgid "In case you need to specify a dependency's version manually, you can use the @code{#:local-packages} argument. It takes an association list where the key is the groupId of the package and its value is an association list where the key is the artifactId of the package and its value is the version you want to override in the @file{pom.xml}."
  13153. msgstr ""
  13154. #. type: defvr
  13155. #: guix-git/doc/guix.texi:7896
  13156. msgid "Some packages use dependencies or plugins that are not useful at runtime nor at build time in Guix. You can alter the @file{pom.xml} file to remove them using the @code{#:exclude} argument. Its value is an association list where the key is the groupId of the plugin or dependency you want to remove, and the value is a list of artifactId you want to remove."
  13157. msgstr ""
  13158. #. type: defvr
  13159. #: guix-git/doc/guix.texi:7899
  13160. msgid "You can override the default @code{jdk} and @code{maven} packages with the corresponding argument, @code{#:jdk} and @code{#:maven}."
  13161. msgstr ""
  13162. #. type: defvr
  13163. #: guix-git/doc/guix.texi:7904
  13164. msgid "The @code{#:maven-plugins} argument is a list of maven plugins used during the build, with the same format as the @code{inputs} fields of the package declaration. Its default value is @code{(default-maven-plugins)} which is also exported."
  13165. msgstr ""
  13166. #. type: defvr
  13167. #: guix-git/doc/guix.texi:7906
  13168. #, no-wrap
  13169. msgid "{Scheme Variable} minetest-mod-build-system"
  13170. msgstr ""
  13171. #. type: defvr
  13172. #: guix-git/doc/guix.texi:7912
  13173. msgid "This variable is exported by @code{(guix build-system minetest)}. It implements a build procedure for @uref{https://www.minetest.net, Minetest} mods, which consists of copying Lua code, images and other resources to the location Minetest searches for mods. The build system also minimises PNG images and verifies that Minetest can load the mod without errors."
  13174. msgstr ""
  13175. #. type: defvr
  13176. #: guix-git/doc/guix.texi:7914
  13177. #, no-wrap
  13178. msgid "{Scheme Variable} minify-build-system"
  13179. msgstr ""
  13180. #. type: defvr
  13181. #: guix-git/doc/guix.texi:7917
  13182. msgid "This variable is exported by @code{(guix build-system minify)}. It implements a minification procedure for simple JavaScript packages."
  13183. msgstr ""
  13184. #. type: defvr
  13185. #: guix-git/doc/guix.texi:7923
  13186. msgid "It adds @code{uglify-js} to the set of inputs and uses it to compress all JavaScript files in the @file{src} directory. A different minifier package can be specified with the @code{#:uglify-js} parameter, but it is expected that the package writes the minified code to the standard output."
  13187. msgstr ""
  13188. #. type: defvr
  13189. #: guix-git/doc/guix.texi:7927
  13190. msgid "When the input JavaScript files are not all located in the @file{src} directory, the parameter @code{#:javascript-files} can be used to specify a list of file names to feed to the minifier."
  13191. msgstr ""
  13192. #. type: defvr
  13193. #: guix-git/doc/guix.texi:7929
  13194. #, no-wrap
  13195. msgid "{Scheme Variable} ocaml-build-system"
  13196. msgstr ""
  13197. #. type: defvr
  13198. #: guix-git/doc/guix.texi:7935
  13199. msgid "This variable is exported by @code{(guix build-system ocaml)}. It implements a build procedure for @uref{https://ocaml.org, OCaml} packages, which consists of choosing the correct set of commands to run for each package. OCaml packages can expect many different commands to be run. This build system will try some of them."
  13200. msgstr ""
  13201. #. type: defvr
  13202. #: guix-git/doc/guix.texi:7945
  13203. msgid "When the package has a @file{setup.ml} file present at the top-level, it will run @code{ocaml setup.ml -configure}, @code{ocaml setup.ml -build} and @code{ocaml setup.ml -install}. The build system will assume that this file was generated by @uref{http://oasis.forge.ocamlcore.org/, OASIS} and will take care of setting the prefix and enabling tests if they are not disabled. You can pass configure and build flags with the @code{#:configure-flags} and @code{#:build-flags}. The @code{#:test-flags} key can be passed to change the set of flags used to enable tests. The @code{#:use-make?} key can be used to bypass this system in the build and install phases."
  13204. msgstr ""
  13205. #. type: defvr
  13206. #: guix-git/doc/guix.texi:7950
  13207. msgid "When the package has a @file{configure} file, it is assumed that it is a hand-made configure script that requires a different argument format than in the @code{gnu-build-system}. You can add more flags with the @code{#:configure-flags} key."
  13208. msgstr ""
  13209. #. type: defvr
  13210. #: guix-git/doc/guix.texi:7954
  13211. msgid "When the package has a @file{Makefile} file (or @code{#:use-make?} is @code{#t}), it will be used and more flags can be passed to the build and install phases with the @code{#:make-flags} key."
  13212. msgstr ""
  13213. #. type: defvr
  13214. #: guix-git/doc/guix.texi:7962
  13215. msgid "Finally, some packages do not have these files and use a somewhat standard location for its build system. In that case, the build system will run @code{ocaml pkg/pkg.ml} or @code{ocaml pkg/build.ml} and take care of providing the path to the required findlib module. Additional flags can be passed via the @code{#:build-flags} key. Install is taken care of by @command{opam-installer}. In this case, the @code{opam} package must be added to the @code{native-inputs} field of the package definition."
  13216. msgstr ""
  13217. #. type: defvr
  13218. #: guix-git/doc/guix.texi:7970
  13219. msgid "Note that most OCaml packages assume they will be installed in the same directory as OCaml, which is not what we want in guix. In particular, they will install @file{.so} files in their module's directory, which is usually fine because it is in the OCaml compiler directory. In guix though, these libraries cannot be found and we use @env{CAML_LD_LIBRARY_PATH}. This variable points to @file{lib/ocaml/site-lib/stubslibs} and this is where @file{.so} libraries should be installed."
  13220. msgstr ""
  13221. #. type: defvr
  13222. #: guix-git/doc/guix.texi:7972
  13223. #, no-wrap
  13224. msgid "{Scheme Variable} python-build-system"
  13225. msgstr ""
  13226. #. type: defvr
  13227. #: guix-git/doc/guix.texi:7977
  13228. msgid "This variable is exported by @code{(guix build-system python)}. It implements the more or less standard build procedure used by Python packages, which consists in running @code{python setup.py build} and then @code{python setup.py install --prefix=/gnu/store/@dots{}}."
  13229. msgstr ""
  13230. #. type: defvr
  13231. #: guix-git/doc/guix.texi:7981
  13232. msgid "For packages that install stand-alone Python programs under @code{bin/}, it takes care of wrapping these programs so that their @env{PYTHONPATH} environment variable points to all the Python libraries they depend on."
  13233. msgstr ""
  13234. #. type: defvr
  13235. #: guix-git/doc/guix.texi:7987
  13236. msgid "Which Python package is used to perform the build can be specified with the @code{#:python} parameter. This is a useful way to force a package to be built for a specific version of the Python interpreter, which might be necessary if the package is only compatible with a single interpreter version."
  13237. msgstr ""
  13238. #. type: defvr
  13239. #: guix-git/doc/guix.texi:7992
  13240. msgid "By default guix calls @code{setup.py} under control of @code{setuptools}, much like @command{pip} does. Some packages are not compatible with setuptools (and pip), thus you can disable this by setting the @code{#:use-setuptools?} parameter to @code{#f}."
  13241. msgstr ""
  13242. #. type: defvr
  13243. #: guix-git/doc/guix.texi:7994
  13244. #, no-wrap
  13245. msgid "{Scheme Variable} perl-build-system"
  13246. msgstr ""
  13247. #. type: defvr
  13248. #: guix-git/doc/guix.texi:8006
  13249. msgid "This variable is exported by @code{(guix build-system perl)}. It implements the standard build procedure for Perl packages, which either consists in running @code{perl Build.PL --prefix=/gnu/store/@dots{}}, followed by @code{Build} and @code{Build install}; or in running @code{perl Makefile.PL PREFIX=/gnu/store/@dots{}}, followed by @code{make} and @code{make install}, depending on which of @code{Build.PL} or @code{Makefile.PL} is present in the package distribution. Preference is given to the former if both @code{Build.PL} and @code{Makefile.PL} exist in the package distribution. This preference can be reversed by specifying @code{#t} for the @code{#:make-maker?} parameter."
  13250. msgstr ""
  13251. #. type: defvr
  13252. #: guix-git/doc/guix.texi:8010
  13253. msgid "The initial @code{perl Makefile.PL} or @code{perl Build.PL} invocation passes flags specified by the @code{#:make-maker-flags} or @code{#:module-build-flags} parameter, respectively."
  13254. msgstr ""
  13255. #. type: defvr
  13256. #: guix-git/doc/guix.texi:8012
  13257. msgid "Which Perl package is used can be specified with @code{#:perl}."
  13258. msgstr ""
  13259. #. type: defvr
  13260. #: guix-git/doc/guix.texi:8014
  13261. #, no-wrap
  13262. msgid "{Scheme Variable} renpy-build-system"
  13263. msgstr ""
  13264. #. type: defvr
  13265. #: guix-git/doc/guix.texi:8018
  13266. msgid "This variable is exported by @code{(guix build-system renpy)}. It implements the more or less standard build procedure used by Ren'py games, which consists of loading @code{#:game} once, thereby creating bytecode for it."
  13267. msgstr ""
  13268. #. type: defvr
  13269. #: guix-git/doc/guix.texi:8021
  13270. msgid "It further creates a wrapper script in @code{bin/} and a desktop entry in @code{share/applications}, both of which can be used to launch the game."
  13271. msgstr ""
  13272. #. type: defvr
  13273. #: guix-git/doc/guix.texi:8025
  13274. msgid "Which Ren'py package is used can be specified with @code{#:renpy}. Games can also be installed in outputs other than ``out'' by using @code{#:output}."
  13275. msgstr ""
  13276. #. type: defvr
  13277. #: guix-git/doc/guix.texi:8027
  13278. #, no-wrap
  13279. msgid "{Scheme Variable} qt-build-system"
  13280. msgstr ""
  13281. #. type: defvr
  13282. #: guix-git/doc/guix.texi:8030
  13283. msgid "This variable is exported by @code{(guix build-system qt)}. It is intended for use with applications using Qt or KDE."
  13284. msgstr ""
  13285. #. type: defvr
  13286. #: guix-git/doc/guix.texi:8033
  13287. msgid "This build system adds the following two phases to the ones defined by @code{cmake-build-system}:"
  13288. msgstr ""
  13289. #. type: item
  13290. #: guix-git/doc/guix.texi:8035
  13291. #, no-wrap
  13292. msgid "check-setup"
  13293. msgstr ""
  13294. #. type: table
  13295. #: guix-git/doc/guix.texi:8042
  13296. msgid "The phase @code{check-setup} prepares the environment for running the checks as commonly used by Qt test programs. For now this only sets some environment variables: @code{QT_QPA_PLATFORM=offscreen}, @code{DBUS_FATAL_WARNINGS=0} and @code{CTEST_OUTPUT_ON_FAILURE=1}."
  13297. msgstr ""
  13298. #. type: table
  13299. #: guix-git/doc/guix.texi:8045
  13300. msgid "This phase is added before the @code{check} phase. It's a separate phase to ease adjusting if necessary."
  13301. msgstr ""
  13302. #. type: item
  13303. #: guix-git/doc/guix.texi:8046
  13304. #, no-wrap
  13305. msgid "qt-wrap"
  13306. msgstr ""
  13307. #. type: table
  13308. #: guix-git/doc/guix.texi:8052
  13309. msgid "The phase @code{qt-wrap} searches for Qt5 plugin paths, QML paths and some XDG in the inputs and output. In case some path is found, all programs in the output's @file{bin/}, @file{sbin/}, @file{libexec/} and @file{lib/libexec/} directories are wrapped in scripts defining the necessary environment variables."
  13310. msgstr ""
  13311. #. type: table
  13312. #: guix-git/doc/guix.texi:8058
  13313. msgid "It is possible to exclude specific package outputs from that wrapping process by listing their names in the @code{#:qt-wrap-excluded-outputs} parameter. This is useful when an output is known not to contain any Qt binaries, and where wrapping would gratuitously add a dependency of that output on Qt, KDE, or such."
  13314. msgstr ""
  13315. #. type: table
  13316. #: guix-git/doc/guix.texi:8060
  13317. msgid "This phase is added after the @code{install} phase."
  13318. msgstr ""
  13319. #. type: defvr
  13320. #: guix-git/doc/guix.texi:8063
  13321. #, no-wrap
  13322. msgid "{Scheme Variable} r-build-system"
  13323. msgstr ""
  13324. #. type: defvr
  13325. #: guix-git/doc/guix.texi:8071
  13326. msgid "This variable is exported by @code{(guix build-system r)}. It implements the build procedure used by @uref{https://r-project.org, R} packages, which essentially is little more than running @samp{R CMD INSTALL --library=/gnu/store/@dots{}} in an environment where @env{R_LIBS_SITE} contains the paths to all R package inputs. Tests are run after installation using the R function @code{tools::testInstalledPackage}."
  13327. msgstr ""
  13328. #. type: defvr
  13329. #: guix-git/doc/guix.texi:8073
  13330. #, no-wrap
  13331. msgid "{Scheme Variable} rakudo-build-system"
  13332. msgstr ""
  13333. #. type: defvr
  13334. #: guix-git/doc/guix.texi:8081
  13335. msgid "This variable is exported by @code{(guix build-system rakudo)}. It implements the build procedure used by @uref{https://rakudo.org/, Rakudo} for @uref{https://perl6.org/, Perl6} packages. It installs the package to @code{/gnu/store/@dots{}/NAME-VERSION/share/perl6} and installs the binaries, library files and the resources, as well as wrap the files under the @code{bin/} directory. Tests can be skipped by passing @code{#f} to the @code{tests?} parameter."
  13336. msgstr ""
  13337. #. type: defvr
  13338. #: guix-git/doc/guix.texi:8089
  13339. msgid "Which rakudo package is used can be specified with @code{rakudo}. Which perl6-tap-harness package used for the tests can be specified with @code{#:prove6} or removed by passing @code{#f} to the @code{with-prove6?} parameter. Which perl6-zef package used for tests and installing can be specified with @code{#:zef} or removed by passing @code{#f} to the @code{with-zef?} parameter."
  13340. msgstr ""
  13341. #. type: defvr
  13342. #: guix-git/doc/guix.texi:8091
  13343. #, no-wrap
  13344. msgid "{Scheme Variable} texlive-build-system"
  13345. msgstr ""
  13346. #. type: defvr
  13347. #: guix-git/doc/guix.texi:8096
  13348. msgid "This variable is exported by @code{(guix build-system texlive)}. It is used to build TeX packages in batch mode with a specified engine. The build system sets the @env{TEXINPUTS} variable to find all TeX source files in the inputs."
  13349. msgstr ""
  13350. #. type: defvr
  13351. #: guix-git/doc/guix.texi:8105
  13352. msgid "By default it runs @code{luatex} on all files ending on @code{ins}. A different engine and format can be specified with the @code{#:tex-format} argument. Different build targets can be specified with the @code{#:build-targets} argument, which expects a list of file names. The build system adds only @code{texlive-bin} and @code{texlive-latex-base} (both from @code{(gnu packages tex}) to the inputs. Both can be overridden with the arguments @code{#:texlive-bin} and @code{#:texlive-latex-base}, respectively."
  13353. msgstr ""
  13354. #. type: defvr
  13355. #: guix-git/doc/guix.texi:8108
  13356. msgid "The @code{#:tex-directory} parameter tells the build system where to install the built files under the texmf tree."
  13357. msgstr ""
  13358. #. type: defvr
  13359. #: guix-git/doc/guix.texi:8110
  13360. #, no-wrap
  13361. msgid "{Scheme Variable} ruby-build-system"
  13362. msgstr ""
  13363. #. type: defvr
  13364. #: guix-git/doc/guix.texi:8114
  13365. msgid "This variable is exported by @code{(guix build-system ruby)}. It implements the RubyGems build procedure used by Ruby packages, which involves running @code{gem build} followed by @code{gem install}."
  13366. msgstr ""
  13367. #. type: defvr
  13368. #: guix-git/doc/guix.texi:8122
  13369. msgid "The @code{source} field of a package that uses this build system typically references a gem archive, since this is the format that Ruby developers use when releasing their software. The build system unpacks the gem archive, potentially patches the source, runs the test suite, repackages the gem, and installs it. Additionally, directories and tarballs may be referenced to allow building unreleased gems from Git or a traditional source release tarball."
  13370. msgstr ""
  13371. #. type: defvr
  13372. #: guix-git/doc/guix.texi:8126
  13373. msgid "Which Ruby package is used can be specified with the @code{#:ruby} parameter. A list of additional flags to be passed to the @command{gem} command can be specified with the @code{#:gem-flags} parameter."
  13374. msgstr ""
  13375. #. type: defvr
  13376. #: guix-git/doc/guix.texi:8128
  13377. #, no-wrap
  13378. msgid "{Scheme Variable} waf-build-system"
  13379. msgstr ""
  13380. #. type: defvr
  13381. #: guix-git/doc/guix.texi:8134
  13382. msgid "This variable is exported by @code{(guix build-system waf)}. It implements a build procedure around the @code{waf} script. The common phases---@code{configure}, @code{build}, and @code{install}---are implemented by passing their names as arguments to the @code{waf} script."
  13383. msgstr ""
  13384. #. type: defvr
  13385. #: guix-git/doc/guix.texi:8138
  13386. msgid "The @code{waf} script is executed by the Python interpreter. Which Python package is used to run the script can be specified with the @code{#:python} parameter."
  13387. msgstr ""
  13388. #. type: defvr
  13389. #: guix-git/doc/guix.texi:8140
  13390. #, no-wrap
  13391. msgid "{Scheme Variable} scons-build-system"
  13392. msgstr ""
  13393. #. type: defvr
  13394. #: guix-git/doc/guix.texi:8146
  13395. msgid "This variable is exported by @code{(guix build-system scons)}. It implements the build procedure used by the SCons software construction tool. This build system runs @code{scons} to build the package, @code{scons test} to run tests, and then @code{scons install} to install the package."
  13396. msgstr ""
  13397. #. type: defvr
  13398. #: guix-git/doc/guix.texi:8153
  13399. msgid "Additional flags to be passed to @code{scons} can be specified with the @code{#:scons-flags} parameter. The default build and install targets can be overridden with @code{#:build-targets} and @code{#:install-targets} respectively. The version of Python used to run SCons can be specified by selecting the appropriate SCons package with the @code{#:scons} parameter."
  13400. msgstr ""
  13401. #. type: defvr
  13402. #: guix-git/doc/guix.texi:8155
  13403. #, no-wrap
  13404. msgid "{Scheme Variable} haskell-build-system"
  13405. msgstr ""
  13406. #. type: defvr
  13407. #: guix-git/doc/guix.texi:8169
  13408. msgid "This variable is exported by @code{(guix build-system haskell)}. It implements the Cabal build procedure used by Haskell packages, which involves running @code{runhaskell Setup.hs configure --prefix=/gnu/store/@dots{}} and @code{runhaskell Setup.hs build}. Instead of installing the package by running @code{runhaskell Setup.hs install}, to avoid trying to register libraries in the read-only compiler store directory, the build system uses @code{runhaskell Setup.hs copy}, followed by @code{runhaskell Setup.hs register}. In addition, the build system generates the package documentation by running @code{runhaskell Setup.hs haddock}, unless @code{#:haddock? #f} is passed. Optional Haddock parameters can be passed with the help of the @code{#:haddock-flags} parameter. If the file @code{Setup.hs} is not found, the build system looks for @code{Setup.lhs} instead."
  13409. msgstr ""
  13410. #. type: defvr
  13411. #: guix-git/doc/guix.texi:8172
  13412. msgid "Which Haskell compiler is used can be specified with the @code{#:haskell} parameter which defaults to @code{ghc}."
  13413. msgstr ""
  13414. #. type: defvr
  13415. #: guix-git/doc/guix.texi:8174
  13416. #, no-wrap
  13417. msgid "{Scheme Variable} dub-build-system"
  13418. msgstr ""
  13419. #. type: defvr
  13420. #: guix-git/doc/guix.texi:8179
  13421. msgid "This variable is exported by @code{(guix build-system dub)}. It implements the Dub build procedure used by D packages, which involves running @code{dub build} and @code{dub run}. Installation is done by copying the files manually."
  13422. msgstr ""
  13423. #. type: defvr
  13424. #: guix-git/doc/guix.texi:8182
  13425. msgid "Which D compiler is used can be specified with the @code{#:ldc} parameter which defaults to @code{ldc}."
  13426. msgstr ""
  13427. #. type: anchor{#1}
  13428. #: guix-git/doc/guix.texi:8185
  13429. msgid "emacs-build-system"
  13430. msgstr ""
  13431. #. type: defvr
  13432. #: guix-git/doc/guix.texi:8185
  13433. #, no-wrap
  13434. msgid "{Scheme Variable} emacs-build-system"
  13435. msgstr ""
  13436. #. type: defvr
  13437. #: guix-git/doc/guix.texi:8189
  13438. msgid "This variable is exported by @code{(guix build-system emacs)}. It implements an installation procedure similar to the packaging system of Emacs itself (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  13439. msgstr ""
  13440. #. type: defvr
  13441. #: guix-git/doc/guix.texi:8195
  13442. msgid "It first creates the @code{@code{package}-autoloads.el} file, then it byte compiles all Emacs Lisp files. Differently from the Emacs packaging system, the Info documentation files are moved to the standard documentation directory and the @file{dir} file is deleted. The Elisp package files are installed directly under @file{share/emacs/site-lisp}."
  13443. msgstr ""
  13444. #. type: defvr
  13445. #: guix-git/doc/guix.texi:8197
  13446. #, no-wrap
  13447. msgid "{Scheme Variable} font-build-system"
  13448. msgstr ""
  13449. #. type: defvr
  13450. #: guix-git/doc/guix.texi:8203
  13451. msgid "This variable is exported by @code{(guix build-system font)}. It implements an installation procedure for font packages where upstream provides pre-compiled TrueType, OpenType, etc.@: font files that merely need to be copied into place. It copies font files to standard locations in the output directory."
  13452. msgstr ""
  13453. #. type: defvr
  13454. #: guix-git/doc/guix.texi:8205
  13455. #, no-wrap
  13456. msgid "{Scheme Variable} meson-build-system"
  13457. msgstr ""
  13458. #. type: defvr
  13459. #: guix-git/doc/guix.texi:8209
  13460. msgid "This variable is exported by @code{(guix build-system meson)}. It implements the build procedure for packages that use @url{https://mesonbuild.com, Meson} as their build system."
  13461. msgstr ""
  13462. #. type: defvr
  13463. #: guix-git/doc/guix.texi:8215
  13464. msgid "It adds both Meson and @uref{https://ninja-build.org/, Ninja} to the set of inputs, and they can be changed with the parameters @code{#:meson} and @code{#:ninja} if needed. The default Meson is @code{meson-for-build}, which is special because it doesn't clear the @code{RUNPATH} of binaries and libraries when they are installed."
  13465. msgstr ""
  13466. #. type: defvr
  13467. #: guix-git/doc/guix.texi:8218
  13468. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed to some specific for Meson:"
  13469. msgstr ""
  13470. #. type: item
  13471. #: guix-git/doc/guix.texi:8221 guix-git/doc/guix.texi:8270
  13472. #: guix-git/doc/guix.texi:8338
  13473. #, no-wrap
  13474. msgid "configure"
  13475. msgstr ""
  13476. #. type: table
  13477. #: guix-git/doc/guix.texi:8226
  13478. msgid "The phase runs @code{meson} with the flags specified in @code{#:configure-flags}. The flag @option{--buildtype} is always set to @code{debugoptimized} unless something else is specified in @code{#:build-type}."
  13479. msgstr ""
  13480. #. type: table
  13481. #: guix-git/doc/guix.texi:8230
  13482. msgid "The phase runs @code{ninja} to build the package in parallel by default, but this can be changed with @code{#:parallel-build?}."
  13483. msgstr ""
  13484. #. type: table
  13485. #: guix-git/doc/guix.texi:8234
  13486. msgid "The phase runs @code{ninja} with the target specified in @code{#:test-target}, which is @code{\"test\"} by default."
  13487. msgstr ""
  13488. #. type: table
  13489. #: guix-git/doc/guix.texi:8237
  13490. msgid "The phase runs @code{ninja install} and can not be changed."
  13491. msgstr ""
  13492. #. type: defvr
  13493. #: guix-git/doc/guix.texi:8240
  13494. msgid "Apart from that, the build system also adds the following phases:"
  13495. msgstr ""
  13496. #. type: item
  13497. #: guix-git/doc/guix.texi:8243
  13498. #, no-wrap
  13499. msgid "fix-runpath"
  13500. msgstr ""
  13501. #. type: table
  13502. #: guix-git/doc/guix.texi:8250
  13503. msgid "This phase ensures that all binaries can find the libraries they need. It searches for required libraries in subdirectories of the package being built, and adds those to @code{RUNPATH} where needed. It also removes references to libraries left over from the build phase by @code{meson-for-build}, such as test dependencies, that aren't actually required for the program to run."
  13504. msgstr ""
  13505. #. type: table
  13506. #: guix-git/doc/guix.texi:8254 guix-git/doc/guix.texi:8258
  13507. msgid "This phase is the phase provided by @code{glib-or-gtk-build-system}, and it is not enabled by default. It can be enabled with @code{#:glib-or-gtk?}."
  13508. msgstr ""
  13509. #. type: defvr
  13510. #: guix-git/doc/guix.texi:8261
  13511. #, no-wrap
  13512. msgid "{Scheme Variable} linux-module-build-system"
  13513. msgstr ""
  13514. #. type: defvr
  13515. #: guix-git/doc/guix.texi:8263
  13516. msgid "@code{linux-module-build-system} allows building Linux kernel modules."
  13517. msgstr ""
  13518. #. type: defvr
  13519. #: guix-git/doc/guix.texi:8267
  13520. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed:"
  13521. msgstr ""
  13522. #. type: table
  13523. #: guix-git/doc/guix.texi:8273
  13524. msgid "This phase configures the environment so that the Linux kernel's Makefile can be used to build the external kernel module."
  13525. msgstr ""
  13526. #. type: table
  13527. #: guix-git/doc/guix.texi:8277
  13528. msgid "This phase uses the Linux kernel's Makefile in order to build the external kernel module."
  13529. msgstr ""
  13530. #. type: table
  13531. #: guix-git/doc/guix.texi:8281
  13532. msgid "This phase uses the Linux kernel's Makefile in order to install the external kernel module."
  13533. msgstr ""
  13534. #. type: defvr
  13535. #: guix-git/doc/guix.texi:8286
  13536. msgid "It is possible and useful to specify the Linux kernel to use for building the module (in the @code{arguments} form of a package using the @code{linux-module-build-system}, use the key @code{#:linux} to specify it)."
  13537. msgstr ""
  13538. #. type: defvr
  13539. #: guix-git/doc/guix.texi:8288
  13540. #, no-wrap
  13541. msgid "{Scheme Variable} node-build-system"
  13542. msgstr ""
  13543. #. type: defvr
  13544. #: guix-git/doc/guix.texi:8293
  13545. msgid "This variable is exported by @code{(guix build-system node)}. It implements the build procedure used by @uref{https://nodejs.org, Node.js}, which implements an approximation of the @code{npm install} command, followed by an @code{npm test} command."
  13546. msgstr ""
  13547. #. type: defvr
  13548. #: guix-git/doc/guix.texi:8297
  13549. msgid "Which Node.js package is used to interpret the @code{npm} commands can be specified with the @code{#:node} parameter which defaults to @code{node}."
  13550. msgstr ""
  13551. #. type: Plain text
  13552. #: guix-git/doc/guix.texi:8303
  13553. msgid "Lastly, for packages that do not need anything as sophisticated, a ``trivial'' build system is provided. It is trivial in the sense that it provides basically no support: it does not pull any implicit inputs, and does not have a notion of build phases."
  13554. msgstr ""
  13555. #. type: defvr
  13556. #: guix-git/doc/guix.texi:8304
  13557. #, no-wrap
  13558. msgid "{Scheme Variable} trivial-build-system"
  13559. msgstr ""
  13560. #. type: defvr
  13561. #: guix-git/doc/guix.texi:8306
  13562. msgid "This variable is exported by @code{(guix build-system trivial)}."
  13563. msgstr ""
  13564. #. type: defvr
  13565. #: guix-git/doc/guix.texi:8311
  13566. msgid "This build system requires a @code{#:builder} argument. This argument must be a Scheme expression that builds the package output(s)---as with @code{build-expression->derivation} (@pxref{Derivations, @code{build-expression->derivation}})."
  13567. msgstr ""
  13568. #. type: cindex
  13569. #: guix-git/doc/guix.texi:8316
  13570. #, fuzzy, no-wrap
  13571. msgid "build phases, for packages"
  13572. msgstr "Python软件包的输入"
  13573. #. type: Plain text
  13574. #: guix-git/doc/guix.texi:8322
  13575. msgid "Almost all package build systems implement a notion @dfn{build phases}: a sequence of actions that the build system executes, when you build the package, leading to the installed byproducts in the store. A notable exception is the ``bare-bones'' @code{trivial-build-system} (@pxref{Build Systems})."
  13576. msgstr ""
  13577. #. type: Plain text
  13578. #: guix-git/doc/guix.texi:8326
  13579. msgid "As discussed in the previous section, those build systems provide a standard list of phases. For @code{gnu-build-system}, the main build phases are the following:"
  13580. msgstr ""
  13581. #. type: item
  13582. #: guix-git/doc/guix.texi:8328
  13583. #, no-wrap
  13584. msgid "unpack"
  13585. msgstr ""
  13586. #. type: table
  13587. #: guix-git/doc/guix.texi:8332
  13588. msgid "Unpack the source tarball, and change the current directory to the extracted source tree. If the source is actually a directory, copy it to the build tree, and enter that directory."
  13589. msgstr ""
  13590. #. type: item
  13591. #: guix-git/doc/guix.texi:8333
  13592. #, no-wrap
  13593. msgid "patch-source-shebangs"
  13594. msgstr ""
  13595. #. type: table
  13596. #: guix-git/doc/guix.texi:8337
  13597. msgid "Patch shebangs encountered in source files so they refer to the right store file names. For instance, this changes @code{#!/bin/sh} to @code{#!/gnu/store/@dots{}-bash-4.3/bin/sh}."
  13598. msgstr ""
  13599. #. type: table
  13600. #: guix-git/doc/guix.texi:8342
  13601. msgid "Run the @file{configure} script with a number of default options, such as @option{--prefix=/gnu/store/@dots{}}, as well as the options specified by the @code{#:configure-flags} argument."
  13602. msgstr ""
  13603. #. type: table
  13604. #: guix-git/doc/guix.texi:8347
  13605. msgid "Run @code{make} with the list of flags specified with @code{#:make-flags}. If the @code{#:parallel-build?} argument is true (the default), build with @code{make -j}."
  13606. msgstr ""
  13607. #. type: table
  13608. #: guix-git/doc/guix.texi:8353
  13609. msgid "Run @code{make check}, or some other target specified with @code{#:test-target}, unless @code{#:tests? #f} is passed. If the @code{#:parallel-tests?} argument is true (the default), run @code{make check -j}."
  13610. msgstr ""
  13611. #. type: table
  13612. #: guix-git/doc/guix.texi:8356
  13613. msgid "Run @code{make install} with the flags listed in @code{#:make-flags}."
  13614. msgstr ""
  13615. #. type: item
  13616. #: guix-git/doc/guix.texi:8357
  13617. #, no-wrap
  13618. msgid "patch-shebangs"
  13619. msgstr ""
  13620. #. type: table
  13621. #: guix-git/doc/guix.texi:8359
  13622. msgid "Patch shebangs on the installed executable files."
  13623. msgstr ""
  13624. #. type: item
  13625. #: guix-git/doc/guix.texi:8360
  13626. #, no-wrap
  13627. msgid "strip"
  13628. msgstr ""
  13629. #. type: table
  13630. #: guix-git/doc/guix.texi:8364
  13631. msgid "Strip debugging symbols from ELF files (unless @code{#:strip-binaries?} is false), copying them to the @code{debug} output when available (@pxref{Installing Debugging Files})."
  13632. msgstr ""
  13633. #. type: Plain text
  13634. #: guix-git/doc/guix.texi:8373
  13635. msgid "Other build systems have similar phases, with some variations. For example, @code{cmake-build-system} has same-named phases but its @code{configure} phases runs @code{cmake} instead of @code{./configure}. Others, such as @code{python-build-system}, have a wholly different list of standard phases. All this code runs on the @dfn{build side}: it is evaluated when you actually build the package, in a dedicated build process spawned by the build daemon (@pxref{Invoking guix-daemon})."
  13636. msgstr ""
  13637. #. type: Plain text
  13638. #: guix-git/doc/guix.texi:8380
  13639. msgid "Build phases are represented as association lists or ``alists'' (@pxref{Association Lists,,, guile, GNU Guile Reference Manual}) where each key is a symbol for the name of the phase and the associated value is a procedure that accepts an arbitrary number of arguments. By convention, those procedures receive information about the build in the form of @dfn{keyword parameters}, which they can use or ignore."
  13640. msgstr ""
  13641. #. type: vindex
  13642. #: guix-git/doc/guix.texi:8381
  13643. #, no-wrap
  13644. msgid "%standard-phases"
  13645. msgstr ""
  13646. #. type: Plain text
  13647. #: guix-git/doc/guix.texi:8387
  13648. msgid "For example, here is how @code{(guix build gnu-build-system)} defines @code{%standard-phases}, the variable holding its alist of build phases@footnote{We present a simplified view of those build phases, but do take a look at @code{(guix build gnu-build-system)} to see all the details!}:"
  13649. msgstr ""
  13650. #. type: lisp
  13651. #: guix-git/doc/guix.texi:8390
  13652. #, no-wrap
  13653. msgid ""
  13654. ";; The build phases of 'gnu-build-system'.\n"
  13655. "\n"
  13656. msgstr ""
  13657. #. type: lisp
  13658. #: guix-git/doc/guix.texi:8394
  13659. #, no-wrap
  13660. msgid ""
  13661. "(define* (unpack #:key source #:allow-other-keys)\n"
  13662. " ;; Extract the source tarball.\n"
  13663. " (invoke \"tar\" \"xvf\" source))\n"
  13664. "\n"
  13665. msgstr ""
  13666. #. type: lisp
  13667. #: guix-git/doc/guix.texi:8400
  13668. #, no-wrap
  13669. msgid ""
  13670. "(define* (configure #:key outputs #:allow-other-keys)\n"
  13671. " ;; Run the 'configure' script. Install to output \"out\".\n"
  13672. " (let ((out (assoc-ref outputs \"out\")))\n"
  13673. " (invoke \"./configure\"\n"
  13674. " (string-append \"--prefix=\" out))))\n"
  13675. "\n"
  13676. msgstr ""
  13677. #. type: lisp
  13678. #: guix-git/doc/guix.texi:8404
  13679. #, no-wrap
  13680. msgid ""
  13681. "(define* (build #:allow-other-keys)\n"
  13682. " ;; Compile.\n"
  13683. " (invoke \"make\"))\n"
  13684. "\n"
  13685. msgstr ""
  13686. #. type: lisp
  13687. #: guix-git/doc/guix.texi:8411
  13688. #, no-wrap
  13689. msgid ""
  13690. "(define* (check #:key (test-target \"check\") (tests? #true)\n"
  13691. " #:allow-other-keys)\n"
  13692. " ;; Run the test suite.\n"
  13693. " (if tests?\n"
  13694. " (invoke \"make\" test-target)\n"
  13695. " (display \"test suite not run\\n\")))\n"
  13696. "\n"
  13697. msgstr ""
  13698. #. type: lisp
  13699. #: guix-git/doc/guix.texi:8415
  13700. #, no-wrap
  13701. msgid ""
  13702. "(define* (install #:allow-other-keys)\n"
  13703. " ;; Install files to the prefix 'configure' specified.\n"
  13704. " (invoke \"make\" \"install\"))\n"
  13705. "\n"
  13706. msgstr ""
  13707. #. type: lisp
  13708. #: guix-git/doc/guix.texi:8424
  13709. #, no-wrap
  13710. msgid ""
  13711. "(define %standard-phases\n"
  13712. " ;; The list of standard phases (quite a few are omitted\n"
  13713. " ;; for brevity). Each element is a symbol/procedure pair.\n"
  13714. " (list (cons 'unpack unpack)\n"
  13715. " (cons 'configure configure)\n"
  13716. " (cons 'build build)\n"
  13717. " (cons 'check check)\n"
  13718. " (cons 'install install)))\n"
  13719. msgstr ""
  13720. #. type: Plain text
  13721. #: guix-git/doc/guix.texi:8434
  13722. msgid "This shows how @code{%standard-phases} is defined as a list of symbol/procedure pairs (@pxref{Pairs,,, guile, GNU Guile Reference Manual}). The first pair associates the @code{unpack} procedure with the @code{unpack} symbol---a name; the second pair defines the @code{configure} phase similarly, and so on. When building a package that uses @code{gnu-build-system} with its default list of phases, those phases are executed sequentially. You can see the name of each phase started and completed in the build log of packages that you build."
  13723. msgstr ""
  13724. #. type: Plain text
  13725. #: guix-git/doc/guix.texi:8440
  13726. msgid "Let's now look at the procedures themselves. Each one is defined with @code{define*}: @code{#:key} lists keyword parameters the procedure accepts, possibly with a default value, and @code{#:allow-other-keys} specifies that other keyword parameters are ignored (@pxref{Optional Arguments,,, guile, GNU Guile Reference Manual})."
  13727. msgstr ""
  13728. #. type: Plain text
  13729. #: guix-git/doc/guix.texi:8456
  13730. msgid "The @code{unpack} procedure honors the @code{source} parameter, which the build system uses to pass the file name of the source tarball (or version control checkout), and it ignores other parameters. The @code{configure} phase only cares about the @code{outputs} parameter, an alist mapping package output names to their store file name (@pxref{Packages with Multiple Outputs}). It extracts the file name of for @code{out}, the default output, and passes it to @command{./configure} as the installation prefix, meaning that @command{make install} will eventually copy all the files in that directory (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards}). @code{build} and @code{install} ignore all their arguments. @code{check} honors the @code{test-target} argument, which specifies the name of the Makefile target to run tests; it prints a message and skips tests when @code{tests?} is false."
  13731. msgstr ""
  13732. #. type: cindex
  13733. #: guix-git/doc/guix.texi:8457
  13734. #, no-wrap
  13735. msgid "build phases, customizing"
  13736. msgstr ""
  13737. #. type: Plain text
  13738. #: guix-git/doc/guix.texi:8466
  13739. msgid "The list of phases used for a particular package can be changed with the @code{#:phases} parameter of the build system. Changing the set of build phases boils down to building a new alist of phases based on the @code{%standard-phases} alist described above. This can be done with standard alist procedures such as @code{alist-delete} (@pxref{SRFI-1 Association Lists,,, guile, GNU Guile Reference Manual}); however, it is more convenient to do so with @code{modify-phases} (@pxref{Build Utilities, @code{modify-phases}})."
  13740. msgstr ""
  13741. #. type: Plain text
  13742. #: guix-git/doc/guix.texi:8471
  13743. msgid "Here is an example of a package definition that removes the @code{configure} phase of @code{%standard-phases} and inserts a new phase before the @code{build} phase, called @code{set-prefix-in-makefile}:"
  13744. msgstr ""
  13745. #. type: lisp
  13746. #: guix-git/doc/guix.texi:8491
  13747. #, no-wrap
  13748. msgid ""
  13749. "(define-public example\n"
  13750. " (package\n"
  13751. " (name \"example\")\n"
  13752. " ;; other fields omitted\n"
  13753. " (build-system gnu-build-system)\n"
  13754. " (arguments\n"
  13755. " '(#:phases (modify-phases %standard-phases\n"
  13756. " (delete 'configure)\n"
  13757. " (add-before 'build 'set-prefix-in-makefile\n"
  13758. " (lambda* (#:key outputs #:allow-other-keys)\n"
  13759. " ;; Modify the makefile so that its\n"
  13760. " ;; 'PREFIX' variable points to \"out\".\n"
  13761. " (let ((out (assoc-ref outputs \"out\")))\n"
  13762. " (substitute* \"Makefile\"\n"
  13763. " ((\"PREFIX =.*\")\n"
  13764. " (string-append \"PREFIX = \"\n"
  13765. " out \"\\n\")))\n"
  13766. " #true))))))))\n"
  13767. msgstr ""
  13768. #. type: Plain text
  13769. #: guix-git/doc/guix.texi:8497
  13770. msgid "The new phase that is inserted is written as an anonymous procedure, introduced with @code{lambda*}; it honors the @code{outputs} parameter we have seen before. @xref{Build Utilities}, for more about the helpers used by this phase, and for more examples of @code{modify-phases}."
  13771. msgstr ""
  13772. #. type: cindex
  13773. #: guix-git/doc/guix.texi:8498 guix-git/doc/guix.texi:9471
  13774. #, no-wrap
  13775. msgid "code staging"
  13776. msgstr ""
  13777. #. type: cindex
  13778. #: guix-git/doc/guix.texi:8499 guix-git/doc/guix.texi:9472
  13779. #, fuzzy, no-wrap
  13780. msgid "staging, of code"
  13781. msgstr "代码格式化"
  13782. #. type: Plain text
  13783. #: guix-git/doc/guix.texi:8506
  13784. msgid "Keep in mind that build phases are code evaluated at the time the package is actually built. This explains why the whole @code{modify-phases} expression above is quoted (it comes after the @code{'} or apostrophe): it is @dfn{staged} for later execution. @xref{G-Expressions}, for an explanation of code staging and the @dfn{code strata} involved."
  13785. msgstr ""
  13786. #. type: Plain text
  13787. #: guix-git/doc/guix.texi:8516
  13788. msgid "As soon as you start writing non-trivial package definitions (@pxref{Defining Packages}) or other build actions (@pxref{G-Expressions}), you will likely start looking for helpers for ``shell-like'' actions---creating directories, copying and deleting files recursively, manipulating build phases, and so on. The @code{(guix build utils)} module provides such utility procedures."
  13789. msgstr ""
  13790. #. type: Plain text
  13791. #: guix-git/doc/guix.texi:8520
  13792. msgid "Most build systems load @code{(guix build utils)} (@pxref{Build Systems}). Thus, when writing custom build phases for your package definitions, you can usually assume those procedures are in scope."
  13793. msgstr ""
  13794. #. type: Plain text
  13795. #: guix-git/doc/guix.texi:8525
  13796. msgid "When writing G-expressions, you can import @code{(guix build utils)} on the ``build side'' using @code{with-imported-modules} and then put it in scope with the @code{use-modules} form (@pxref{Using Guile Modules,,, guile, GNU Guile Reference Manual}):"
  13797. msgstr ""
  13798. #. type: lisp
  13799. #: guix-git/doc/guix.texi:8532
  13800. #, no-wrap
  13801. msgid ""
  13802. "(with-imported-modules '((guix build utils)) ;import it\n"
  13803. " (computed-file \"empty-tree\"\n"
  13804. " #~(begin\n"
  13805. " ;; Put it in scope.\n"
  13806. " (use-modules (guix build utils))\n"
  13807. "\n"
  13808. msgstr ""
  13809. #. type: lisp
  13810. #: guix-git/doc/guix.texi:8535
  13811. #, no-wrap
  13812. msgid ""
  13813. " ;; Happily use its 'mkdir-p' procedure.\n"
  13814. " (mkdir-p (string-append #$output \"/a/b/c\")))))\n"
  13815. msgstr ""
  13816. #. type: Plain text
  13817. #: guix-git/doc/guix.texi:8539
  13818. msgid "The remainder of this section is the reference for most of the utility procedures provided by @code{(guix build utils)}."
  13819. msgstr ""
  13820. #. type: subsection
  13821. #: guix-git/doc/guix.texi:8542
  13822. #, no-wrap
  13823. msgid "Dealing with Store File Names"
  13824. msgstr ""
  13825. #. type: Plain text
  13826. #: guix-git/doc/guix.texi:8545
  13827. msgid "This section documents procedures that deal with store file names."
  13828. msgstr ""
  13829. #. type: deffn
  13830. #: guix-git/doc/guix.texi:8546
  13831. #, no-wrap
  13832. msgid "{Scheme Procedure} %store-directory"
  13833. msgstr ""
  13834. #. type: deffn
  13835. #: guix-git/doc/guix.texi:8548
  13836. #, fuzzy
  13837. msgid "Return the directory name of the store."
  13838. msgstr "仓库的纯函数式接口。"
  13839. #. type: deffn
  13840. #: guix-git/doc/guix.texi:8550
  13841. #, no-wrap
  13842. msgid "{Scheme Procedure} store-file-name? @var{file}"
  13843. msgstr ""
  13844. #. type: deffn
  13845. #: guix-git/doc/guix.texi:8552
  13846. msgid "Return true if @var{file} is in the store."
  13847. msgstr ""
  13848. #. type: deffn
  13849. #: guix-git/doc/guix.texi:8554
  13850. #, no-wrap
  13851. msgid "{Scheme Procedure} strip-store-file-name @var{file}"
  13852. msgstr ""
  13853. #. type: deffn
  13854. #: guix-git/doc/guix.texi:8557
  13855. msgid "Strip the @file{/gnu/store} and hash from @var{file}, a store file name. The result is typically a @code{\"@var{package}-@var{version}\"} string."
  13856. msgstr ""
  13857. #. type: deffn
  13858. #: guix-git/doc/guix.texi:8559
  13859. #, no-wrap
  13860. msgid "{Scheme Procedure} package-name->name+version @var{name}"
  13861. msgstr ""
  13862. #. type: deffn
  13863. #: guix-git/doc/guix.texi:8564
  13864. msgid "Given @var{name}, a package name like @code{\"foo-0.9.1b\"}, return two values: @code{\"foo\"} and @code{\"0.9.1b\"}. When the version part is unavailable, @var{name} and @code{#f} are returned. The first hyphen followed by a digit is considered to introduce the version part."
  13865. msgstr ""
  13866. #. type: subsection
  13867. #: guix-git/doc/guix.texi:8566
  13868. #, fuzzy, no-wrap
  13869. msgid "File Types"
  13870. msgstr "文件系统"
  13871. #. type: Plain text
  13872. #: guix-git/doc/guix.texi:8569
  13873. msgid "The procedures below deal with files and file types."
  13874. msgstr ""
  13875. #. type: deffn
  13876. #: guix-git/doc/guix.texi:8570
  13877. #, no-wrap
  13878. msgid "{Scheme Procedure} directory-exists? @var{dir}"
  13879. msgstr ""
  13880. #. type: deffn
  13881. #: guix-git/doc/guix.texi:8572
  13882. msgid "Return @code{#t} if @var{dir} exists and is a directory."
  13883. msgstr ""
  13884. #. type: deffn
  13885. #: guix-git/doc/guix.texi:8574
  13886. #, no-wrap
  13887. msgid "{Scheme Procedure} executable-file? @var{file}"
  13888. msgstr ""
  13889. #. type: deffn
  13890. #: guix-git/doc/guix.texi:8576
  13891. msgid "Return @code{#t} if @var{file} exists and is executable."
  13892. msgstr ""
  13893. #. type: deffn
  13894. #: guix-git/doc/guix.texi:8578
  13895. #, no-wrap
  13896. msgid "{Scheme Procedure} symbolic-link? @var{file}"
  13897. msgstr ""
  13898. #. type: deffn
  13899. #: guix-git/doc/guix.texi:8580
  13900. msgid "Return @code{#t} if @var{file} is a symbolic link (aka. a ``symlink'')."
  13901. msgstr ""
  13902. #. type: deffn
  13903. #: guix-git/doc/guix.texi:8582
  13904. #, no-wrap
  13905. msgid "{Scheme Procedure} elf-file? @var{file}"
  13906. msgstr ""
  13907. #. type: deffnx
  13908. #: guix-git/doc/guix.texi:8583
  13909. #, no-wrap
  13910. msgid "{Scheme Procedure} ar-file? @var{file}"
  13911. msgstr ""
  13912. #. type: deffnx
  13913. #: guix-git/doc/guix.texi:8584
  13914. #, no-wrap
  13915. msgid "{Scheme Procedure} gzip-file? @var{file}"
  13916. msgstr ""
  13917. #. type: deffn
  13918. #: guix-git/doc/guix.texi:8587
  13919. msgid "Return @code{#t} if @var{file} is, respectively, an ELF file, an @code{ar} archive (such as a @file{.a} static library), or a gzip file."
  13920. msgstr ""
  13921. #. type: deffn
  13922. #: guix-git/doc/guix.texi:8589
  13923. #, no-wrap
  13924. msgid "{Scheme Procedure} reset-gzip-timestamp @var{file} [#:keep-mtime? #t]"
  13925. msgstr ""
  13926. #. type: deffn
  13927. #: guix-git/doc/guix.texi:8593
  13928. msgid "If @var{file} is a gzip file, reset its embedded timestamp (as with @command{gzip --no-name}) and return true. Otherwise return @code{#f}. When @var{keep-mtime?} is true, preserve @var{file}'s modification time."
  13929. msgstr ""
  13930. #. type: subsection
  13931. #: guix-git/doc/guix.texi:8595
  13932. #, no-wrap
  13933. msgid "File Manipulation"
  13934. msgstr ""
  13935. #. type: Plain text
  13936. #: guix-git/doc/guix.texi:8602
  13937. msgid "The following procedures and macros help create, modify, and delete files. They provide functionality comparable to common shell utilities such as @command{mkdir -p}, @command{cp -r}, @command{rm -r}, and @command{sed}. They complement Guile's extensive, but low-level, file system interface (@pxref{POSIX,,, guile, GNU Guile Reference Manual})."
  13938. msgstr ""
  13939. #. type: deffn
  13940. #: guix-git/doc/guix.texi:8603
  13941. #, no-wrap
  13942. msgid "{Scheme Syntax} with-directory-excursion @var{directory} @var{body}@dots{}"
  13943. msgstr ""
  13944. #. type: deffn
  13945. #: guix-git/doc/guix.texi:8605
  13946. msgid "Run @var{body} with @var{directory} as the process's current directory."
  13947. msgstr ""
  13948. #. type: deffn
  13949. #: guix-git/doc/guix.texi:8612
  13950. msgid "Essentially, this macro changes the current directory to @var{directory} before evaluating @var{body}, using @code{chdir} (@pxref{Processes,,, guile, GNU Guile Reference Manual}). It changes back to the initial directory when the dynamic extent of @var{body} is left, be it @i{via} normal procedure return or @i{via} a non-local exit such as an exception."
  13951. msgstr ""
  13952. #. type: deffn
  13953. #: guix-git/doc/guix.texi:8614
  13954. #, no-wrap
  13955. msgid "{Scheme Procedure} mkdir-p @var{dir}"
  13956. msgstr ""
  13957. #. type: deffn
  13958. #: guix-git/doc/guix.texi:8616
  13959. msgid "Create directory @var{dir} and all its ancestors."
  13960. msgstr ""
  13961. #. type: deffn
  13962. #: guix-git/doc/guix.texi:8618
  13963. #, no-wrap
  13964. msgid "{Scheme Procedure} install-file @var{file} @var{directory}"
  13965. msgstr ""
  13966. #. type: deffn
  13967. #: guix-git/doc/guix.texi:8621
  13968. msgid "Create @var{directory} if it does not exist and copy @var{file} in there under the same name."
  13969. msgstr ""
  13970. #. type: deffn
  13971. #: guix-git/doc/guix.texi:8623
  13972. #, no-wrap
  13973. msgid "{Scheme Procedure} make-file-writable @var{file}"
  13974. msgstr ""
  13975. #. type: deffn
  13976. #: guix-git/doc/guix.texi:8625
  13977. msgid "Make @var{file} writable for its owner."
  13978. msgstr ""
  13979. #. type: deffn
  13980. #: guix-git/doc/guix.texi:8627
  13981. #, no-wrap
  13982. msgid "{Scheme Procedure} copy-recursively @var{source} @var{destination} @"
  13983. msgstr ""
  13984. #. type: deffn
  13985. #: guix-git/doc/guix.texi:8634
  13986. msgid "[#:log (current-output-port)] [#:follow-symlinks? #f] [#:keep-mtime? #f] Copy @var{source} directory to @var{destination}. Follow symlinks if @var{follow-symlinks?} is true; otherwise, just preserve them. When @var{keep-mtime?} is true, keep the modification time of the files in @var{source} on those of @var{destination}. Write verbose output to the @var{log} port."
  13987. msgstr ""
  13988. #. type: deffn
  13989. #: guix-git/doc/guix.texi:8636
  13990. #, no-wrap
  13991. msgid "{Scheme Procedure} delete-file-recursively @var{dir} @"
  13992. msgstr ""
  13993. #. type: deffn
  13994. #: guix-git/doc/guix.texi:8641
  13995. msgid "[#:follow-mounts? #f] Delete @var{dir} recursively, like @command{rm -rf}, without following symlinks. Don't follow mount points either, unless @var{follow-mounts?} is true. Report but ignore errors."
  13996. msgstr ""
  13997. #. type: deffn
  13998. #: guix-git/doc/guix.texi:8643
  13999. #, no-wrap
  14000. msgid "{Scheme Syntax} substitute* @var{file} @"
  14001. msgstr ""
  14002. #. type: deffn
  14003. #: guix-git/doc/guix.texi:8648
  14004. msgid "((@var{regexp} @var{match-var}@dots{}) @var{body}@dots{}) @dots{} Substitute @var{regexp} in @var{file} by the string returned by @var{body}. @var{body} is evaluated with each @var{match-var} bound to the corresponding positional regexp sub-expression. For example:"
  14005. msgstr ""
  14006. #. type: lisp
  14007. #: guix-git/doc/guix.texi:8655
  14008. #, no-wrap
  14009. msgid ""
  14010. "(substitute* file\n"
  14011. " ((\"hello\")\n"
  14012. " \"good morning\\n\")\n"
  14013. " ((\"foo([a-z]+)bar(.*)$\" all letters end)\n"
  14014. " (string-append \"baz\" letter end)))\n"
  14015. msgstr ""
  14016. #. type: deffn
  14017. #: guix-git/doc/guix.texi:8661
  14018. msgid "Here, anytime a line of @var{file} contains @code{hello}, it is replaced by @code{good morning}. Anytime a line of @var{file} matches the second regexp, @code{all} is bound to the complete match, @code{letters} is bound to the first sub-expression, and @code{end} is bound to the last one."
  14019. msgstr ""
  14020. #. type: deffn
  14021. #: guix-git/doc/guix.texi:8664
  14022. msgid "When one of the @var{match-var} is @code{_}, no variable is bound to the corresponding match substring."
  14023. msgstr ""
  14024. #. type: deffn
  14025. #: guix-git/doc/guix.texi:8667
  14026. msgid "Alternatively, @var{file} may be a list of file names, in which case they are all subject to the substitutions."
  14027. msgstr ""
  14028. #. type: deffn
  14029. #: guix-git/doc/guix.texi:8670
  14030. msgid "Be careful about using @code{$} to match the end of a line; by itself it won't match the terminating newline of a line."
  14031. msgstr ""
  14032. #. type: subsection
  14033. #: guix-git/doc/guix.texi:8672
  14034. #, fuzzy, no-wrap
  14035. msgid "File Search"
  14036. msgstr "文件系统"
  14037. #. type: cindex
  14038. #: guix-git/doc/guix.texi:8674
  14039. #, no-wrap
  14040. msgid "file, searching"
  14041. msgstr ""
  14042. #. type: Plain text
  14043. #: guix-git/doc/guix.texi:8676
  14044. msgid "This section documents procedures to search and filter files."
  14045. msgstr ""
  14046. #. type: deffn
  14047. #: guix-git/doc/guix.texi:8677
  14048. #, no-wrap
  14049. msgid "{Scheme Procedure} file-name-predicate @var{regexp}"
  14050. msgstr ""
  14051. #. type: deffn
  14052. #: guix-git/doc/guix.texi:8680
  14053. msgid "Return a predicate that returns true when passed a file name whose base name matches @var{regexp}."
  14054. msgstr ""
  14055. #. type: deffn
  14056. #: guix-git/doc/guix.texi:8682
  14057. #, no-wrap
  14058. msgid "{Scheme Procedure} find-files @var{dir} [@var{pred}] @"
  14059. msgstr ""
  14060. #. type: deffn
  14061. #: guix-git/doc/guix.texi:8693
  14062. msgid "[#:stat lstat] [#:directories? #f] [#:fail-on-error? #f] Return the lexicographically sorted list of files under @var{dir} for which @var{pred} returns true. @var{pred} is passed two arguments: the absolute file name, and its stat buffer; the default predicate always returns true. @var{pred} can also be a regular expression, in which case it is equivalent to @code{(file-name-predicate @var{pred})}. @var{stat} is used to obtain file information; using @code{lstat} means that symlinks are not followed. If @var{directories?} is true, then directories will also be included. If @var{fail-on-error?} is true, raise an exception upon error."
  14063. msgstr ""
  14064. #. type: Plain text
  14065. #: guix-git/doc/guix.texi:8697
  14066. msgid "Here are a few examples where we assume that the current directory is the root of the Guix source tree:"
  14067. msgstr ""
  14068. #. type: lisp
  14069. #: guix-git/doc/guix.texi:8702
  14070. #, no-wrap
  14071. msgid ""
  14072. ";; List all the regular files in the current directory.\n"
  14073. "(find-files \".\")\n"
  14074. "@result{} (\"./.dir-locals.el\" \"./.gitignore\" @dots{})\n"
  14075. "\n"
  14076. msgstr ""
  14077. #. type: lisp
  14078. #: guix-git/doc/guix.texi:8706
  14079. #, no-wrap
  14080. msgid ""
  14081. ";; List all the .scm files under gnu/services.\n"
  14082. "(find-files \"gnu/services\" \"\\\\.scm$\")\n"
  14083. "@result{} (\"gnu/services/admin.scm\" \"gnu/services/audio.scm\" @dots{})\n"
  14084. "\n"
  14085. msgstr ""
  14086. #. type: lisp
  14087. #: guix-git/doc/guix.texi:8710
  14088. #, no-wrap
  14089. msgid ""
  14090. ";; List ar files in the current directory.\n"
  14091. "(find-files \".\" (lambda (file stat) (ar-file? file)))\n"
  14092. "@result{} (\"./libformat.a\" \"./libstore.a\" @dots{})\n"
  14093. msgstr ""
  14094. #. type: deffn
  14095. #: guix-git/doc/guix.texi:8712
  14096. #, no-wrap
  14097. msgid "{Scheme Procedure} which @var{program}"
  14098. msgstr ""
  14099. #. type: deffn
  14100. #: guix-git/doc/guix.texi:8715
  14101. msgid "Return the complete file name for @var{program} as found in @code{$PATH}, or @code{#f} if @var{program} could not be found."
  14102. msgstr ""
  14103. #. type: Plain text
  14104. #: guix-git/doc/guix.texi:8726
  14105. msgid "The @code{(guix build utils)} also contains tools to manipulate build phases as used by build systems (@pxref{Build Systems}). Build phases are represented as association lists or ``alists'' (@pxref{Association Lists,,, guile, GNU Guile Reference Manual}) where each key is a symbol naming the phase and the associated value is a procedure (@pxref{Build Phases})."
  14106. msgstr ""
  14107. #. type: Plain text
  14108. #: guix-git/doc/guix.texi:8730
  14109. msgid "Guile core and the @code{(srfi srfi-1)} module both provide tools to manipulate alists. The @code{(guix build utils)} module complements those with tools written with build phases in mind."
  14110. msgstr ""
  14111. #. type: cindex
  14112. #: guix-git/doc/guix.texi:8731
  14113. #, fuzzy, no-wrap
  14114. msgid "build phases, modifying"
  14115. msgstr "构建后台进程"
  14116. #. type: deffn
  14117. #: guix-git/doc/guix.texi:8732
  14118. #, no-wrap
  14119. msgid "{Scheme Syntax} modify-phases @var{phases} @var{clause}@dots{}"
  14120. msgstr ""
  14121. #. type: deffn
  14122. #: guix-git/doc/guix.texi:8735
  14123. msgid "Modify @var{phases} sequentially as per each @var{clause}, which may have one of the following forms:"
  14124. msgstr ""
  14125. #. type: lisp
  14126. #: guix-git/doc/guix.texi:8741
  14127. #, no-wrap
  14128. msgid ""
  14129. "(delete @var{old-phase-name})\n"
  14130. "(replace @var{old-phase-name} @var{new-phase})\n"
  14131. "(add-before @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  14132. "(add-after @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  14133. msgstr ""
  14134. #. type: deffn
  14135. #: guix-git/doc/guix.texi:8745
  14136. msgid "Where every @var{phase-name} above is an expression evaluating to a symbol, and @var{new-phase} an expression evaluating to a procedure."
  14137. msgstr ""
  14138. #. type: Plain text
  14139. #: guix-git/doc/guix.texi:8756
  14140. msgid "The example below is taken from the definition of the @code{grep} package. It adds a phase to run after the @code{install} phase, called @code{fix-egrep-and-fgrep}. That phase is a procedure (@code{lambda*} is for anonymous procedures) that takes a @code{#:outputs} keyword argument and ignores extra keyword arguments (@pxref{Optional Arguments,,, guile, GNU Guile Reference Manual}, for more on @code{lambda*} and optional and keyword arguments.) The phase uses @code{substitute*} to modify the installed @file{egrep} and @file{fgrep} scripts so that they refer to @code{grep} by its absolute file name:"
  14141. msgstr ""
  14142. #. type: lisp
  14143. #: guix-git/doc/guix.texi:8770
  14144. #, no-wrap
  14145. msgid ""
  14146. "(modify-phases %standard-phases\n"
  14147. " (add-after 'install 'fix-egrep-and-fgrep\n"
  14148. " ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its\n"
  14149. " ;; absolute file name instead of searching for it in $PATH.\n"
  14150. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14151. " (let* ((out (assoc-ref outputs \"out\"))\n"
  14152. " (bin (string-append out \"/bin\")))\n"
  14153. " (substitute* (list (string-append bin \"/egrep\")\n"
  14154. " (string-append bin \"/fgrep\"))\n"
  14155. " ((\"^exec grep\")\n"
  14156. " (string-append \"exec \" bin \"/grep\")))\n"
  14157. " #t))))\n"
  14158. msgstr ""
  14159. #. type: Plain text
  14160. #: guix-git/doc/guix.texi:8777
  14161. msgid "In the example below, phases are modified in two ways: the standard @code{configure} phase is deleted, presumably because the package does not have a @file{configure} script or anything similar, and the default @code{install} phase is replaced by one that manually copies the executable files to be installed:"
  14162. msgstr ""
  14163. #. type: lisp
  14164. #: guix-git/doc/guix.texi:8790
  14165. #, no-wrap
  14166. msgid ""
  14167. "(modify-phases %standard-phases\n"
  14168. " (delete 'configure) ;no 'configure' script\n"
  14169. " (replace 'install\n"
  14170. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14171. " ;; The package's Makefile doesn't provide an \"install\"\n"
  14172. " ;; rule so do it by ourselves.\n"
  14173. " (let ((bin (string-append (assoc-ref outputs \"out\")\n"
  14174. " \"/bin\")))\n"
  14175. " (install-file \"footswitch\" bin)\n"
  14176. " (install-file \"scythe\" bin)\n"
  14177. " #t))))\n"
  14178. msgstr ""
  14179. #. type: cindex
  14180. #: guix-git/doc/guix.texi:8798
  14181. #, no-wrap
  14182. msgid "store items"
  14183. msgstr ""
  14184. #. type: cindex
  14185. #: guix-git/doc/guix.texi:8799
  14186. #, no-wrap
  14187. msgid "store paths"
  14188. msgstr ""
  14189. #. type: Plain text
  14190. #: guix-git/doc/guix.texi:8810
  14191. msgid "Conceptually, the @dfn{store} is the place where derivations that have been built successfully are stored---by default, @file{/gnu/store}. Sub-directories in the store are referred to as @dfn{store items} or sometimes @dfn{store paths}. The store has an associated database that contains information such as the store paths referred to by each store path, and the list of @emph{valid} store items---results of successful builds. This database resides in @file{@var{localstatedir}/guix/db}, where @var{localstatedir} is the state directory specified @i{via} @option{--localstatedir} at configure time, usually @file{/var}."
  14192. msgstr ""
  14193. #. type: Plain text
  14194. #: guix-git/doc/guix.texi:8815
  14195. msgid "The store is @emph{always} accessed by the daemon on behalf of its clients (@pxref{Invoking guix-daemon}). To manipulate the store, clients connect to the daemon over a Unix-domain socket, send requests to it, and read the result---these are remote procedure calls, or RPCs."
  14196. msgstr ""
  14197. #. type: quotation
  14198. #: guix-git/doc/guix.texi:8820
  14199. msgid "Users must @emph{never} modify files under @file{/gnu/store} directly. This would lead to inconsistencies and break the immutability assumptions of Guix's functional model (@pxref{Introduction})."
  14200. msgstr ""
  14201. #. type: quotation
  14202. #: guix-git/doc/guix.texi:8824
  14203. msgid "@xref{Invoking guix gc, @command{guix gc --verify}}, for information on how to check the integrity of the store and attempt recovery from accidental modifications."
  14204. msgstr ""
  14205. #. type: Plain text
  14206. #: guix-git/doc/guix.texi:8831
  14207. msgid "The @code{(guix store)} module provides procedures to connect to the daemon, and to perform RPCs. These are described below. By default, @code{open-connection}, and thus all the @command{guix} commands, connect to the local daemon or to the URI specified by the @env{GUIX_DAEMON_SOCKET} environment variable."
  14208. msgstr ""
  14209. #. type: defvr
  14210. #: guix-git/doc/guix.texi:8832
  14211. #, no-wrap
  14212. msgid "{Environment Variable} GUIX_DAEMON_SOCKET"
  14213. msgstr ""
  14214. #. type: defvr
  14215. #: guix-git/doc/guix.texi:8837
  14216. msgid "When set, the value of this variable should be a file name or a URI designating the daemon endpoint. When it is a file name, it denotes a Unix-domain socket to connect to. In addition to file names, the supported URI schemes are:"
  14217. msgstr ""
  14218. #. type: code{#1}
  14219. #: guix-git/doc/guix.texi:8839 guix-git/doc/guix.texi:25026
  14220. #, no-wrap
  14221. msgid "file"
  14222. msgstr ""
  14223. #. type: itemx
  14224. #: guix-git/doc/guix.texi:8840
  14225. #, no-wrap
  14226. msgid "unix"
  14227. msgstr ""
  14228. #. type: table
  14229. #: guix-git/doc/guix.texi:8844
  14230. msgid "These are for Unix-domain sockets. @code{file:///var/guix/daemon-socket/socket} is equivalent to @file{/var/guix/daemon-socket/socket}."
  14231. msgstr ""
  14232. #. type: table
  14233. #: guix-git/doc/guix.texi:8853
  14234. msgid "These URIs denote connections over TCP/IP, without encryption nor authentication of the remote host. The URI must specify the host name and optionally a port number (by default port 44146 is used):"
  14235. msgstr ""
  14236. #. type: example
  14237. #: guix-git/doc/guix.texi:8856
  14238. #, no-wrap
  14239. msgid "guix://master.guix.example.org:1234\n"
  14240. msgstr ""
  14241. #. type: table
  14242. #: guix-git/doc/guix.texi:8861
  14243. msgid "This setup is suitable on local networks, such as clusters, where only trusted nodes may connect to the build daemon at @code{master.guix.example.org}."
  14244. msgstr ""
  14245. #. type: table
  14246. #: guix-git/doc/guix.texi:8865
  14247. msgid "The @option{--listen} option of @command{guix-daemon} can be used to instruct it to listen for TCP connections (@pxref{Invoking guix-daemon, @option{--listen}})."
  14248. msgstr ""
  14249. #. type: item
  14250. #: guix-git/doc/guix.texi:8866
  14251. #, no-wrap
  14252. msgid "ssh"
  14253. msgstr ""
  14254. #. type: cindex
  14255. #: guix-git/doc/guix.texi:8867
  14256. #, no-wrap
  14257. msgid "SSH access to build daemons"
  14258. msgstr ""
  14259. #. type: table
  14260. #: guix-git/doc/guix.texi:8873
  14261. msgid "These URIs allow you to connect to a remote daemon over SSH@. This feature requires Guile-SSH (@pxref{Requirements}) and a working @command{guile} binary in @env{PATH} on the destination machine. It supports public key and GSSAPI authentication. A typical URL might look like this:"
  14262. msgstr ""
  14263. #. type: example
  14264. #: guix-git/doc/guix.texi:8876
  14265. #, no-wrap
  14266. msgid "ssh://charlie@@guix.example.org:22\n"
  14267. msgstr ""
  14268. #. type: table
  14269. #: guix-git/doc/guix.texi:8880
  14270. msgid "As for @command{guix copy}, the usual OpenSSH client configuration files are honored (@pxref{Invoking guix copy})."
  14271. msgstr ""
  14272. #. type: defvr
  14273. #: guix-git/doc/guix.texi:8883
  14274. msgid "Additional URI schemes may be supported in the future."
  14275. msgstr ""
  14276. #. type: quotation
  14277. #: guix-git/doc/guix.texi:8890
  14278. msgid "The ability to connect to remote build daemons is considered experimental as of @value{VERSION}. Please get in touch with us to share any problems or suggestions you may have (@pxref{Contributing})."
  14279. msgstr ""
  14280. #. type: deffn
  14281. #: guix-git/doc/guix.texi:8893
  14282. #, no-wrap
  14283. msgid "{Scheme Procedure} open-connection [@var{uri}] [#:reserve-space? #t]"
  14284. msgstr ""
  14285. #. type: deffn
  14286. #: guix-git/doc/guix.texi:8898
  14287. msgid "Connect to the daemon over the Unix-domain socket at @var{uri} (a string). When @var{reserve-space?} is true, instruct it to reserve a little bit of extra space on the file system so that the garbage collector can still operate should the disk become full. Return a server object."
  14288. msgstr ""
  14289. #. type: deffn
  14290. #: guix-git/doc/guix.texi:8901
  14291. msgid "@var{file} defaults to @code{%default-socket-path}, which is the normal location given the options that were passed to @command{configure}."
  14292. msgstr ""
  14293. #. type: deffn
  14294. #: guix-git/doc/guix.texi:8903
  14295. #, no-wrap
  14296. msgid "{Scheme Procedure} close-connection @var{server}"
  14297. msgstr ""
  14298. #. type: deffn
  14299. #: guix-git/doc/guix.texi:8905
  14300. msgid "Close the connection to @var{server}."
  14301. msgstr ""
  14302. #. type: defvr
  14303. #: guix-git/doc/guix.texi:8907
  14304. #, no-wrap
  14305. msgid "{Scheme Variable} current-build-output-port"
  14306. msgstr ""
  14307. #. type: defvr
  14308. #: guix-git/doc/guix.texi:8910
  14309. msgid "This variable is bound to a SRFI-39 parameter, which refers to the port where build and error logs sent by the daemon should be written."
  14310. msgstr ""
  14311. #. type: Plain text
  14312. #: guix-git/doc/guix.texi:8914
  14313. msgid "Procedures that make RPCs all take a server object as their first argument."
  14314. msgstr ""
  14315. #. type: deffn
  14316. #: guix-git/doc/guix.texi:8915
  14317. #, no-wrap
  14318. msgid "{Scheme Procedure} valid-path? @var{server} @var{path}"
  14319. msgstr ""
  14320. #. type: cindex
  14321. #: guix-git/doc/guix.texi:8916
  14322. #, no-wrap
  14323. msgid "invalid store items"
  14324. msgstr ""
  14325. #. type: deffn
  14326. #: guix-git/doc/guix.texi:8921
  14327. msgid "Return @code{#t} when @var{path} designates a valid store item and @code{#f} otherwise (an invalid item may exist on disk but still be invalid, for instance because it is the result of an aborted or failed build)."
  14328. msgstr ""
  14329. #. type: deffn
  14330. #: guix-git/doc/guix.texi:8924
  14331. msgid "A @code{&store-protocol-error} condition is raised if @var{path} is not prefixed by the store directory (@file{/gnu/store})."
  14332. msgstr ""
  14333. #. type: deffn
  14334. #: guix-git/doc/guix.texi:8926
  14335. #, no-wrap
  14336. msgid "{Scheme Procedure} add-text-to-store @var{server} @var{name} @var{text} [@var{references}]"
  14337. msgstr ""
  14338. #. type: deffn
  14339. #: guix-git/doc/guix.texi:8930
  14340. msgid "Add @var{text} under file @var{name} in the store, and return its store path. @var{references} is the list of store paths referred to by the resulting store path."
  14341. msgstr ""
  14342. #. type: deffn
  14343. #: guix-git/doc/guix.texi:8932
  14344. #, no-wrap
  14345. msgid "{Scheme Procedure} build-derivations @var{store} @var{derivations} @"
  14346. msgstr ""
  14347. #. type: deffn
  14348. #: guix-git/doc/guix.texi:8937
  14349. msgid "[@var{mode}] Build @var{derivations}, a list of @code{<derivation>} objects, @file{.drv} file names, or derivation/output pairs, using the specified @var{mode}---@code{(build-mode normal)} by default."
  14350. msgstr ""
  14351. #. type: Plain text
  14352. #: guix-git/doc/guix.texi:8943
  14353. msgid "Note that the @code{(guix monads)} module provides a monad as well as monadic versions of the above procedures, with the goal of making it more convenient to work with code that accesses the store (@pxref{The Store Monad})."
  14354. msgstr ""
  14355. #. type: i{#1}
  14356. #: guix-git/doc/guix.texi:8946
  14357. msgid "This section is currently incomplete."
  14358. msgstr ""
  14359. #. type: cindex
  14360. #: guix-git/doc/guix.texi:8950
  14361. #, no-wrap
  14362. msgid "derivations"
  14363. msgstr ""
  14364. #. type: Plain text
  14365. #: guix-git/doc/guix.texi:8954
  14366. msgid "Low-level build actions and the environment in which they are performed are represented by @dfn{derivations}. A derivation contains the following pieces of information:"
  14367. msgstr ""
  14368. #. type: itemize
  14369. #: guix-git/doc/guix.texi:8959
  14370. msgid "The outputs of the derivation---derivations produce at least one file or directory in the store, but may produce more."
  14371. msgstr ""
  14372. #. type: cindex
  14373. #: guix-git/doc/guix.texi:8961
  14374. #, no-wrap
  14375. msgid "build-time dependencies"
  14376. msgstr ""
  14377. #. type: cindex
  14378. #: guix-git/doc/guix.texi:8962
  14379. #, no-wrap
  14380. msgid "dependencies, build-time"
  14381. msgstr ""
  14382. #. type: itemize
  14383. #: guix-git/doc/guix.texi:8966
  14384. msgid "The inputs of the derivations---i.e., its build-time dependencies---which may be other derivations or plain files in the store (patches, build scripts, etc.)."
  14385. msgstr ""
  14386. #. type: itemize
  14387. #: guix-git/doc/guix.texi:8969
  14388. msgid "The system type targeted by the derivation---e.g., @code{x86_64-linux}."
  14389. msgstr ""
  14390. #. type: itemize
  14391. #: guix-git/doc/guix.texi:8973
  14392. msgid "The file name of a build script in the store, along with the arguments to be passed."
  14393. msgstr ""
  14394. #. type: itemize
  14395. #: guix-git/doc/guix.texi:8976
  14396. msgid "A list of environment variables to be defined."
  14397. msgstr ""
  14398. #. type: cindex
  14399. #: guix-git/doc/guix.texi:8979
  14400. #, no-wrap
  14401. msgid "derivation path"
  14402. msgstr ""
  14403. #. type: Plain text
  14404. #: guix-git/doc/guix.texi:8987
  14405. msgid "Derivations allow clients of the daemon to communicate build actions to the store. They exist in two forms: as an in-memory representation, both on the client- and daemon-side, and as files in the store whose name end in @file{.drv}---these files are referred to as @dfn{derivation paths}. Derivations paths can be passed to the @code{build-derivations} procedure to perform the build actions they prescribe (@pxref{The Store})."
  14406. msgstr ""
  14407. #. type: cindex
  14408. #: guix-git/doc/guix.texi:8988
  14409. #, no-wrap
  14410. msgid "fixed-output derivations"
  14411. msgstr ""
  14412. #. type: Plain text
  14413. #: guix-git/doc/guix.texi:8995
  14414. msgid "Operations such as file downloads and version-control checkouts for which the expected content hash is known in advance are modeled as @dfn{fixed-output derivations}. Unlike regular derivations, the outputs of a fixed-output derivation are independent of its inputs---e.g., a source code download produces the same result regardless of the download method and tools being used."
  14415. msgstr ""
  14416. #. type: item
  14417. #: guix-git/doc/guix.texi:8996 guix-git/doc/guix.texi:12539
  14418. #, no-wrap
  14419. msgid "references"
  14420. msgstr ""
  14421. #. type: cindex
  14422. #: guix-git/doc/guix.texi:8997
  14423. #, no-wrap
  14424. msgid "run-time dependencies"
  14425. msgstr ""
  14426. #. type: cindex
  14427. #: guix-git/doc/guix.texi:8998
  14428. #, no-wrap
  14429. msgid "dependencies, run-time"
  14430. msgstr ""
  14431. #. type: Plain text
  14432. #: guix-git/doc/guix.texi:9005
  14433. msgid "The outputs of derivations---i.e., the build results---have a set of @dfn{references}, as reported by the @code{references} RPC or the @command{guix gc --references} command (@pxref{Invoking guix gc}). References are the set of run-time dependencies of the build results. References are a subset of the inputs of the derivation; this subset is automatically computed by the build daemon by scanning all the files in the outputs."
  14434. msgstr ""
  14435. #. type: Plain text
  14436. #: guix-git/doc/guix.texi:9010
  14437. msgid "The @code{(guix derivations)} module provides a representation of derivations as Scheme objects, along with procedures to create and otherwise manipulate derivations. The lowest-level primitive to create a derivation is the @code{derivation} procedure:"
  14438. msgstr ""
  14439. #. type: deffn
  14440. #: guix-git/doc/guix.texi:9011
  14441. #, no-wrap
  14442. msgid "{Scheme Procedure} derivation @var{store} @var{name} @var{builder} @"
  14443. msgstr ""
  14444. #. type: deffn
  14445. #: guix-git/doc/guix.texi:9020
  14446. msgid "@var{args} [#:outputs '(\"out\")] [#:hash #f] [#:hash-algo #f] @ [#:recursive? #f] [#:inputs '()] [#:env-vars '()] @ [#:system (%current-system)] [#:references-graphs #f] @ [#:allowed-references #f] [#:disallowed-references #f] @ [#:leaked-env-vars #f] [#:local-build? #f] @ [#:substitutable? #t] [#:properties '()] Build a derivation with the given arguments, and return the resulting @code{<derivation>} object."
  14447. msgstr ""
  14448. #. type: deffn
  14449. #: guix-git/doc/guix.texi:9027
  14450. msgid "When @var{hash} and @var{hash-algo} are given, a @dfn{fixed-output derivation} is created---i.e., one whose result is known in advance, such as a file download. If, in addition, @var{recursive?} is true, then that fixed output may be an executable file or a directory and @var{hash} must be the hash of an archive containing this output."
  14451. msgstr ""
  14452. #. type: deffn
  14453. #: guix-git/doc/guix.texi:9032
  14454. msgid "When @var{references-graphs} is true, it must be a list of file name/store path pairs. In that case, the reference graph of each store path is exported in the build environment in the corresponding file, in a simple text format."
  14455. msgstr ""
  14456. #. type: deffn
  14457. #: guix-git/doc/guix.texi:9037
  14458. msgid "When @var{allowed-references} is true, it must be a list of store items or outputs that the derivation's output may refer to. Likewise, @var{disallowed-references}, if true, must be a list of things the outputs may @emph{not} refer to."
  14459. msgstr ""
  14460. #. type: deffn
  14461. #: guix-git/doc/guix.texi:9044
  14462. msgid "When @var{leaked-env-vars} is true, it must be a list of strings denoting environment variables that are allowed to ``leak'' from the daemon's environment to the build environment. This is only applicable to fixed-output derivations---i.e., when @var{hash} is true. The main use is to allow variables such as @code{http_proxy} to be passed to derivations that download files."
  14463. msgstr ""
  14464. #. type: deffn
  14465. #: guix-git/doc/guix.texi:9049
  14466. msgid "When @var{local-build?} is true, declare that the derivation is not a good candidate for offloading and should rather be built locally (@pxref{Daemon Offload Setup}). This is the case for small derivations where the costs of data transfers would outweigh the benefits."
  14467. msgstr ""
  14468. #. type: deffn
  14469. #: guix-git/doc/guix.texi:9054
  14470. msgid "When @var{substitutable?} is false, declare that substitutes of the derivation's output should not be used (@pxref{Substitutes}). This is useful, for instance, when building packages that capture details of the host CPU instruction set."
  14471. msgstr ""
  14472. #. type: deffn
  14473. #: guix-git/doc/guix.texi:9057
  14474. msgid "@var{properties} must be an association list describing ``properties'' of the derivation. It is kept as-is, uninterpreted, in the derivation."
  14475. msgstr ""
  14476. #. type: Plain text
  14477. #: guix-git/doc/guix.texi:9063
  14478. msgid "Here's an example with a shell script as its builder, assuming @var{store} is an open connection to the daemon, and @var{bash} points to a Bash executable in the store:"
  14479. msgstr ""
  14480. #. type: lisp
  14481. #: guix-git/doc/guix.texi:9068
  14482. #, no-wrap
  14483. msgid ""
  14484. "(use-modules (guix utils)\n"
  14485. " (guix store)\n"
  14486. " (guix derivations))\n"
  14487. "\n"
  14488. msgstr ""
  14489. #. type: lisp
  14490. #: guix-git/doc/guix.texi:9077
  14491. #, no-wrap
  14492. msgid ""
  14493. "(let ((builder ; add the Bash script to the store\n"
  14494. " (add-text-to-store store \"my-builder.sh\"\n"
  14495. " \"echo hello world > $out\\n\" '())))\n"
  14496. " (derivation store \"foo\"\n"
  14497. " bash `(\"-e\" ,builder)\n"
  14498. " #:inputs `((,bash) (,builder))\n"
  14499. " #:env-vars '((\"HOME\" . \"/homeless\"))))\n"
  14500. "@result{} #<derivation /gnu/store/@dots{}-foo.drv => /gnu/store/@dots{}-foo>\n"
  14501. msgstr ""
  14502. #. type: Plain text
  14503. #: guix-git/doc/guix.texi:9084
  14504. msgid "As can be guessed, this primitive is cumbersome to use directly. A better approach is to write build scripts in Scheme, of course! The best course of action for that is to write the build code as a ``G-expression'', and to pass it to @code{gexp->derivation}. For more information, @pxref{G-Expressions}."
  14505. msgstr ""
  14506. #. type: Plain text
  14507. #: guix-git/doc/guix.texi:9089
  14508. msgid "Once upon a time, @code{gexp->derivation} did not exist and constructing derivations with build code written in Scheme was achieved with @code{build-expression->derivation}, documented below. This procedure is now deprecated in favor of the much nicer @code{gexp->derivation}."
  14509. msgstr ""
  14510. #. type: deffn
  14511. #: guix-git/doc/guix.texi:9090
  14512. #, no-wrap
  14513. msgid "{Scheme Procedure} build-expression->derivation @var{store} @"
  14514. msgstr ""
  14515. #. type: deffn
  14516. #: guix-git/doc/guix.texi:9106
  14517. msgid "@var{name} @var{exp} @ [#:system (%current-system)] [#:inputs '()] @ [#:outputs '(\"out\")] [#:hash #f] [#:hash-algo #f] @ [#:recursive? #f] [#:env-vars '()] [#:modules '()] @ [#:references-graphs #f] [#:allowed-references #f] @ [#:disallowed-references #f] @ [#:local-build? #f] [#:substitutable? #t] [#:guile-for-build #f] Return a derivation that executes Scheme expression @var{exp} as a builder for derivation @var{name}. @var{inputs} must be a list of @code{(name drv-path sub-drv)} tuples; when @var{sub-drv} is omitted, @code{\"out\"} is assumed. @var{modules} is a list of names of Guile modules from the current search path to be copied in the store, compiled, and made available in the load path during the execution of @var{exp}---e.g., @code{((guix build utils) (guix build gnu-build-system))}."
  14518. msgstr ""
  14519. #. type: deffn
  14520. #: guix-git/doc/guix.texi:9114
  14521. msgid "@var{exp} is evaluated in an environment where @code{%outputs} is bound to a list of output/path pairs, and where @code{%build-inputs} is bound to a list of string/output-path pairs made from @var{inputs}. Optionally, @var{env-vars} is a list of string pairs specifying the name and value of environment variables visible to the builder. The builder terminates by passing the result of @var{exp} to @code{exit}; thus, when @var{exp} returns @code{#f}, the build is considered to have failed."
  14522. msgstr ""
  14523. #. type: deffn
  14524. #: guix-git/doc/guix.texi:9118
  14525. msgid "@var{exp} is built using @var{guile-for-build} (a derivation). When @var{guile-for-build} is omitted or is @code{#f}, the value of the @code{%guile-for-build} fluid is used instead."
  14526. msgstr ""
  14527. #. type: deffn
  14528. #: guix-git/doc/guix.texi:9123
  14529. msgid "See the @code{derivation} procedure for the meaning of @var{references-graphs}, @var{allowed-references}, @var{disallowed-references}, @var{local-build?}, and @var{substitutable?}."
  14530. msgstr ""
  14531. #. type: Plain text
  14532. #: guix-git/doc/guix.texi:9128
  14533. msgid "Here's an example of a single-output derivation that creates a directory containing one file:"
  14534. msgstr ""
  14535. #. type: lisp
  14536. #: guix-git/doc/guix.texi:9136
  14537. #, no-wrap
  14538. msgid ""
  14539. "(let ((builder '(let ((out (assoc-ref %outputs \"out\")))\n"
  14540. " (mkdir out) ; create /gnu/store/@dots{}-goo\n"
  14541. " (call-with-output-file (string-append out \"/test\")\n"
  14542. " (lambda (p)\n"
  14543. " (display '(hello guix) p))))))\n"
  14544. " (build-expression->derivation store \"goo\" builder))\n"
  14545. "\n"
  14546. msgstr ""
  14547. #. type: lisp
  14548. #: guix-git/doc/guix.texi:9138
  14549. #, no-wrap
  14550. msgid "@result{} #<derivation /gnu/store/@dots{}-goo.drv => @dots{}>\n"
  14551. msgstr ""
  14552. #. type: cindex
  14553. #: guix-git/doc/guix.texi:9144
  14554. #, no-wrap
  14555. msgid "monad"
  14556. msgstr ""
  14557. #. type: Plain text
  14558. #: guix-git/doc/guix.texi:9150
  14559. msgid "The procedures that operate on the store described in the previous sections all take an open connection to the build daemon as their first argument. Although the underlying model is functional, they either have side effects or depend on the current state of the store."
  14560. msgstr ""
  14561. #. type: Plain text
  14562. #: guix-git/doc/guix.texi:9156
  14563. msgid "The former is inconvenient: the connection to the build daemon has to be carried around in all those functions, making it impossible to compose functions that do not take that parameter with functions that do. The latter can be problematic: since store operations have side effects and/or depend on external state, they have to be properly sequenced."
  14564. msgstr ""
  14565. #. type: cindex
  14566. #: guix-git/doc/guix.texi:9157
  14567. #, no-wrap
  14568. msgid "monadic values"
  14569. msgstr ""
  14570. #. type: cindex
  14571. #: guix-git/doc/guix.texi:9158
  14572. #, no-wrap
  14573. msgid "monadic functions"
  14574. msgstr ""
  14575. #. type: Plain text
  14576. #: guix-git/doc/guix.texi:9168
  14577. msgid "This is where the @code{(guix monads)} module comes in. This module provides a framework for working with @dfn{monads}, and a particularly useful monad for our uses, the @dfn{store monad}. Monads are a construct that allows two things: associating ``context'' with values (in our case, the context is the store), and building sequences of computations (here computations include accesses to the store). Values in a monad---values that carry this additional context---are called @dfn{monadic values}; procedures that return such values are called @dfn{monadic procedures}."
  14578. msgstr ""
  14579. #. type: Plain text
  14580. #: guix-git/doc/guix.texi:9170
  14581. msgid "Consider this ``normal'' procedure:"
  14582. msgstr ""
  14583. #. type: lisp
  14584. #: guix-git/doc/guix.texi:9179
  14585. #, no-wrap
  14586. msgid ""
  14587. "(define (sh-symlink store)\n"
  14588. " ;; Return a derivation that symlinks the 'bash' executable.\n"
  14589. " (let* ((drv (package-derivation store bash))\n"
  14590. " (out (derivation->output-path drv))\n"
  14591. " (sh (string-append out \"/bin/bash\")))\n"
  14592. " (build-expression->derivation store \"sh\"\n"
  14593. " `(symlink ,sh %output))))\n"
  14594. msgstr ""
  14595. #. type: Plain text
  14596. #: guix-git/doc/guix.texi:9183
  14597. msgid "Using @code{(guix monads)} and @code{(guix gexp)}, it may be rewritten as a monadic function:"
  14598. msgstr ""
  14599. #. type: lisp
  14600. #: guix-git/doc/guix.texi:9191
  14601. #, no-wrap
  14602. msgid ""
  14603. "(define (sh-symlink)\n"
  14604. " ;; Same, but return a monadic value.\n"
  14605. " (mlet %store-monad ((drv (package->derivation bash)))\n"
  14606. " (gexp->derivation \"sh\"\n"
  14607. " #~(symlink (string-append #$drv \"/bin/bash\")\n"
  14608. " #$output))))\n"
  14609. msgstr ""
  14610. #. type: Plain text
  14611. #: guix-git/doc/guix.texi:9198
  14612. msgid "There are several things to note in the second version: the @code{store} parameter is now implicit and is ``threaded'' in the calls to the @code{package->derivation} and @code{gexp->derivation} monadic procedures, and the monadic value returned by @code{package->derivation} is @dfn{bound} using @code{mlet} instead of plain @code{let}."
  14613. msgstr ""
  14614. #. type: Plain text
  14615. #: guix-git/doc/guix.texi:9202
  14616. msgid "As it turns out, the call to @code{package->derivation} can even be omitted since it will take place implicitly, as we will see later (@pxref{G-Expressions}):"
  14617. msgstr ""
  14618. #. type: lisp
  14619. #: guix-git/doc/guix.texi:9208
  14620. #, no-wrap
  14621. msgid ""
  14622. "(define (sh-symlink)\n"
  14623. " (gexp->derivation \"sh\"\n"
  14624. " #~(symlink (string-append #$bash \"/bin/bash\")\n"
  14625. " #$output)))\n"
  14626. msgstr ""
  14627. #. type: Plain text
  14628. #: guix-git/doc/guix.texi:9217
  14629. msgid "Calling the monadic @code{sh-symlink} has no effect. As someone once said, ``you exit a monad like you exit a building on fire: by running''. So, to exit the monad and get the desired effect, one must use @code{run-with-store}:"
  14630. msgstr ""
  14631. #. type: lisp
  14632. #: guix-git/doc/guix.texi:9221
  14633. #, no-wrap
  14634. msgid ""
  14635. "(run-with-store (open-connection) (sh-symlink))\n"
  14636. "@result{} /gnu/store/...-sh-symlink\n"
  14637. msgstr ""
  14638. #. type: Plain text
  14639. #: guix-git/doc/guix.texi:9227
  14640. msgid "Note that the @code{(guix monad-repl)} module extends the Guile REPL with new ``meta-commands'' to make it easier to deal with monadic procedures: @code{run-in-store}, and @code{enter-store-monad}. The former is used to ``run'' a single monadic value through the store:"
  14641. msgstr ""
  14642. #. type: example
  14643. #: guix-git/doc/guix.texi:9231
  14644. #, no-wrap
  14645. msgid ""
  14646. "scheme@@(guile-user)> ,run-in-store (package->derivation hello)\n"
  14647. "$1 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  14648. msgstr ""
  14649. #. type: Plain text
  14650. #: guix-git/doc/guix.texi:9235
  14651. msgid "The latter enters a recursive REPL, where all the return values are automatically run through the store:"
  14652. msgstr ""
  14653. #. type: example
  14654. #: guix-git/doc/guix.texi:9244
  14655. #, no-wrap
  14656. msgid ""
  14657. "scheme@@(guile-user)> ,enter-store-monad\n"
  14658. "store-monad@@(guile-user) [1]> (package->derivation hello)\n"
  14659. "$2 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  14660. "store-monad@@(guile-user) [1]> (text-file \"foo\" \"Hello!\")\n"
  14661. "$3 = \"/gnu/store/@dots{}-foo\"\n"
  14662. "store-monad@@(guile-user) [1]> ,q\n"
  14663. "scheme@@(guile-user)>\n"
  14664. msgstr ""
  14665. #. type: Plain text
  14666. #: guix-git/doc/guix.texi:9249
  14667. msgid "Note that non-monadic values cannot be returned in the @code{store-monad} REPL."
  14668. msgstr ""
  14669. #. type: Plain text
  14670. #: guix-git/doc/guix.texi:9252
  14671. msgid "The main syntactic forms to deal with monads in general are provided by the @code{(guix monads)} module and are described below."
  14672. msgstr ""
  14673. #. type: deffn
  14674. #: guix-git/doc/guix.texi:9253
  14675. #, no-wrap
  14676. msgid "{Scheme Syntax} with-monad @var{monad} @var{body} ..."
  14677. msgstr ""
  14678. #. type: deffn
  14679. #: guix-git/doc/guix.texi:9256
  14680. msgid "Evaluate any @code{>>=} or @code{return} forms in @var{body} as being in @var{monad}."
  14681. msgstr ""
  14682. #. type: deffn
  14683. #: guix-git/doc/guix.texi:9258
  14684. #, no-wrap
  14685. msgid "{Scheme Syntax} return @var{val}"
  14686. msgstr ""
  14687. #. type: deffn
  14688. #: guix-git/doc/guix.texi:9260
  14689. msgid "Return a monadic value that encapsulates @var{val}."
  14690. msgstr ""
  14691. #. type: deffn
  14692. #: guix-git/doc/guix.texi:9262
  14693. #, no-wrap
  14694. msgid "{Scheme Syntax} >>= @var{mval} @var{mproc} ..."
  14695. msgstr ""
  14696. #. type: deffn
  14697. #: guix-git/doc/guix.texi:9269
  14698. msgid "@dfn{Bind} monadic value @var{mval}, passing its ``contents'' to monadic procedures @var{mproc}@dots{}@footnote{This operation is commonly referred to as ``bind'', but that name denotes an unrelated procedure in Guile. Thus we use this somewhat cryptic symbol inherited from the Haskell language.}. There can be one @var{mproc} or several of them, as in this example:"
  14699. msgstr ""
  14700. #. type: lisp
  14701. #: guix-git/doc/guix.texi:9277
  14702. #, no-wrap
  14703. msgid ""
  14704. "(run-with-state\n"
  14705. " (with-monad %state-monad\n"
  14706. " (>>= (return 1)\n"
  14707. " (lambda (x) (return (+ 1 x)))\n"
  14708. " (lambda (x) (return (* 2 x)))))\n"
  14709. " 'some-state)\n"
  14710. "\n"
  14711. msgstr ""
  14712. #. type: lisp
  14713. #: guix-git/doc/guix.texi:9280
  14714. #, no-wrap
  14715. msgid ""
  14716. "@result{} 4\n"
  14717. "@result{} some-state\n"
  14718. msgstr ""
  14719. #. type: deffn
  14720. #: guix-git/doc/guix.texi:9283
  14721. #, no-wrap
  14722. msgid "{Scheme Syntax} mlet @var{monad} ((@var{var} @var{mval}) ...) @"
  14723. msgstr ""
  14724. #. type: deffn
  14725. #: guix-git/doc/guix.texi:9285
  14726. msgid "@var{body} ..."
  14727. msgstr ""
  14728. #. type: deffnx
  14729. #: guix-git/doc/guix.texi:9285
  14730. #, no-wrap
  14731. msgid "{Scheme Syntax} mlet* @var{monad} ((@var{var} @var{mval}) ...) @"
  14732. msgstr ""
  14733. #. type: deffn
  14734. #: guix-git/doc/guix.texi:9297
  14735. msgid "@var{body} ... Bind the variables @var{var} to the monadic values @var{mval} in @var{body}, which is a sequence of expressions. As with the bind operator, this can be thought of as ``unpacking'' the raw, non-monadic value ``contained'' in @var{mval} and making @var{var} refer to that raw, non-monadic value within the scope of the @var{body}. The form (@var{var} -> @var{val}) binds @var{var} to the ``normal'' value @var{val}, as per @code{let}. The binding operations occur in sequence from left to right. The last expression of @var{body} must be a monadic expression, and its result will become the result of the @code{mlet} or @code{mlet*} when run in the @var{monad}."
  14736. msgstr ""
  14737. #. type: deffn
  14738. #: guix-git/doc/guix.texi:9300
  14739. msgid "@code{mlet*} is to @code{mlet} what @code{let*} is to @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual})."
  14740. msgstr ""
  14741. #. type: deffn
  14742. #: guix-git/doc/guix.texi:9302
  14743. #, no-wrap
  14744. msgid "{Scheme System} mbegin @var{monad} @var{mexp} ..."
  14745. msgstr ""
  14746. #. type: deffn
  14747. #: guix-git/doc/guix.texi:9306
  14748. msgid "Bind @var{mexp} and the following monadic expressions in sequence, returning the result of the last expression. Every expression in the sequence must be a monadic expression."
  14749. msgstr ""
  14750. #. type: deffn
  14751. #: guix-git/doc/guix.texi:9310
  14752. msgid "This is akin to @code{mlet}, except that the return values of the monadic expressions are ignored. In that sense, it is analogous to @code{begin}, but applied to monadic expressions."
  14753. msgstr ""
  14754. #. type: deffn
  14755. #: guix-git/doc/guix.texi:9312
  14756. #, no-wrap
  14757. msgid "{Scheme System} mwhen @var{condition} @var{mexp0} @var{mexp*} ..."
  14758. msgstr ""
  14759. #. type: deffn
  14760. #: guix-git/doc/guix.texi:9317
  14761. msgid "When @var{condition} is true, evaluate the sequence of monadic expressions @var{mexp0}..@var{mexp*} as in an @code{mbegin}. When @var{condition} is false, return @code{*unspecified*} in the current monad. Every expression in the sequence must be a monadic expression."
  14762. msgstr ""
  14763. #. type: deffn
  14764. #: guix-git/doc/guix.texi:9319
  14765. #, no-wrap
  14766. msgid "{Scheme System} munless @var{condition} @var{mexp0} @var{mexp*} ..."
  14767. msgstr ""
  14768. #. type: deffn
  14769. #: guix-git/doc/guix.texi:9324
  14770. msgid "When @var{condition} is false, evaluate the sequence of monadic expressions @var{mexp0}..@var{mexp*} as in an @code{mbegin}. When @var{condition} is true, return @code{*unspecified*} in the current monad. Every expression in the sequence must be a monadic expression."
  14771. msgstr ""
  14772. #. type: cindex
  14773. #: guix-git/doc/guix.texi:9326
  14774. #, no-wrap
  14775. msgid "state monad"
  14776. msgstr ""
  14777. #. type: Plain text
  14778. #: guix-git/doc/guix.texi:9330
  14779. msgid "The @code{(guix monads)} module provides the @dfn{state monad}, which allows an additional value---the state---to be @emph{threaded} through monadic procedure calls."
  14780. msgstr ""
  14781. #. type: defvr
  14782. #: guix-git/doc/guix.texi:9331
  14783. #, no-wrap
  14784. msgid "{Scheme Variable} %state-monad"
  14785. msgstr ""
  14786. #. type: defvr
  14787. #: guix-git/doc/guix.texi:9334
  14788. msgid "The state monad. Procedures in the state monad can access and change the state that is threaded."
  14789. msgstr ""
  14790. #. type: defvr
  14791. #: guix-git/doc/guix.texi:9338
  14792. msgid "Consider the example below. The @code{square} procedure returns a value in the state monad. It returns the square of its argument, but also increments the current state value:"
  14793. msgstr ""
  14794. #. type: lisp
  14795. #: guix-git/doc/guix.texi:9345
  14796. #, no-wrap
  14797. msgid ""
  14798. "(define (square x)\n"
  14799. " (mlet %state-monad ((count (current-state)))\n"
  14800. " (mbegin %state-monad\n"
  14801. " (set-current-state (+ 1 count))\n"
  14802. " (return (* x x)))))\n"
  14803. "\n"
  14804. msgstr ""
  14805. #. type: lisp
  14806. #: guix-git/doc/guix.texi:9349
  14807. #, no-wrap
  14808. msgid ""
  14809. "(run-with-state (sequence %state-monad (map square (iota 3))) 0)\n"
  14810. "@result{} (0 1 4)\n"
  14811. "@result{} 3\n"
  14812. msgstr ""
  14813. #. type: defvr
  14814. #: guix-git/doc/guix.texi:9353
  14815. msgid "When ``run'' through @code{%state-monad}, we obtain that additional state value, which is the number of @code{square} calls."
  14816. msgstr ""
  14817. #. type: deffn
  14818. #: guix-git/doc/guix.texi:9355
  14819. #, no-wrap
  14820. msgid "{Monadic Procedure} current-state"
  14821. msgstr ""
  14822. #. type: deffn
  14823. #: guix-git/doc/guix.texi:9357
  14824. msgid "Return the current state as a monadic value."
  14825. msgstr ""
  14826. #. type: deffn
  14827. #: guix-git/doc/guix.texi:9359
  14828. #, no-wrap
  14829. msgid "{Monadic Procedure} set-current-state @var{value}"
  14830. msgstr ""
  14831. #. type: deffn
  14832. #: guix-git/doc/guix.texi:9362
  14833. msgid "Set the current state to @var{value} and return the previous state as a monadic value."
  14834. msgstr ""
  14835. #. type: deffn
  14836. #: guix-git/doc/guix.texi:9364
  14837. #, no-wrap
  14838. msgid "{Monadic Procedure} state-push @var{value}"
  14839. msgstr ""
  14840. #. type: deffn
  14841. #: guix-git/doc/guix.texi:9367
  14842. msgid "Push @var{value} to the current state, which is assumed to be a list, and return the previous state as a monadic value."
  14843. msgstr ""
  14844. #. type: deffn
  14845. #: guix-git/doc/guix.texi:9369
  14846. #, no-wrap
  14847. msgid "{Monadic Procedure} state-pop"
  14848. msgstr ""
  14849. #. type: deffn
  14850. #: guix-git/doc/guix.texi:9372
  14851. msgid "Pop a value from the current state and return it as a monadic value. The state is assumed to be a list."
  14852. msgstr ""
  14853. #. type: deffn
  14854. #: guix-git/doc/guix.texi:9374
  14855. #, no-wrap
  14856. msgid "{Scheme Procedure} run-with-state @var{mval} [@var{state}]"
  14857. msgstr ""
  14858. #. type: deffn
  14859. #: guix-git/doc/guix.texi:9377
  14860. msgid "Run monadic value @var{mval} starting with @var{state} as the initial state. Return two values: the resulting value, and the resulting state."
  14861. msgstr ""
  14862. #. type: Plain text
  14863. #: guix-git/doc/guix.texi:9381
  14864. msgid "The main interface to the store monad, provided by the @code{(guix store)} module, is as follows."
  14865. msgstr ""
  14866. #. type: defvr
  14867. #: guix-git/doc/guix.texi:9382
  14868. #, no-wrap
  14869. msgid "{Scheme Variable} %store-monad"
  14870. msgstr ""
  14871. #. type: defvr
  14872. #: guix-git/doc/guix.texi:9384
  14873. msgid "The store monad---an alias for @code{%state-monad}."
  14874. msgstr ""
  14875. #. type: defvr
  14876. #: guix-git/doc/guix.texi:9388
  14877. msgid "Values in the store monad encapsulate accesses to the store. When its effect is needed, a value of the store monad must be ``evaluated'' by passing it to the @code{run-with-store} procedure (see below)."
  14878. msgstr ""
  14879. #. type: deffn
  14880. #: guix-git/doc/guix.texi:9390
  14881. #, no-wrap
  14882. msgid "{Scheme Procedure} run-with-store @var{store} @var{mval} [#:guile-for-build] [#:system (%current-system)]"
  14883. msgstr ""
  14884. #. type: deffn
  14885. #: guix-git/doc/guix.texi:9393
  14886. msgid "Run @var{mval}, a monadic value in the store monad, in @var{store}, an open store connection."
  14887. msgstr ""
  14888. #. type: deffn
  14889. #: guix-git/doc/guix.texi:9395
  14890. #, no-wrap
  14891. msgid "{Monadic Procedure} text-file @var{name} @var{text} [@var{references}]"
  14892. msgstr ""
  14893. #. type: deffn
  14894. #: guix-git/doc/guix.texi:9399
  14895. msgid "Return as a monadic value the absolute file name in the store of the file containing @var{text}, a string. @var{references} is a list of store items that the resulting text file refers to; it defaults to the empty list."
  14896. msgstr ""
  14897. #. type: deffn
  14898. #: guix-git/doc/guix.texi:9401
  14899. #, no-wrap
  14900. msgid "{Monadic Procedure} binary-file @var{name} @var{data} [@var{references}]"
  14901. msgstr ""
  14902. #. type: deffn
  14903. #: guix-git/doc/guix.texi:9405
  14904. msgid "Return as a monadic value the absolute file name in the store of the file containing @var{data}, a bytevector. @var{references} is a list of store items that the resulting binary file refers to; it defaults to the empty list."
  14905. msgstr ""
  14906. #. type: deffn
  14907. #: guix-git/doc/guix.texi:9407
  14908. #, no-wrap
  14909. msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
  14910. msgstr ""
  14911. #. type: deffn
  14912. #: guix-git/doc/guix.texi:9412
  14913. msgid "[#:recursive? #t] [#:select? (const #t)] Return the name of @var{file} once interned in the store. Use @var{name} as its store name, or the basename of @var{file} if @var{name} is omitted."
  14914. msgstr ""
  14915. #. type: deffn
  14916. #: guix-git/doc/guix.texi:9416 guix-git/doc/guix.texi:9839
  14917. msgid "When @var{recursive?} is true, the contents of @var{file} are added recursively; if @var{file} designates a flat file and @var{recursive?} is true, its contents are added, and its permission bits are kept."
  14918. msgstr ""
  14919. #. type: deffn
  14920. #: guix-git/doc/guix.texi:9421 guix-git/doc/guix.texi:9844
  14921. msgid "When @var{recursive?} is true, call @code{(@var{select?} @var{file} @var{stat})} for each directory entry, where @var{file} is the entry's absolute file name and @var{stat} is the result of @code{lstat}; exclude entries for which @var{select?} does not return true."
  14922. msgstr ""
  14923. #. type: deffn
  14924. #: guix-git/doc/guix.texi:9423
  14925. msgid "The example below adds a file to the store, under two different names:"
  14926. msgstr ""
  14927. #. type: lisp
  14928. #: guix-git/doc/guix.texi:9429
  14929. #, no-wrap
  14930. msgid ""
  14931. "(run-with-store (open-connection)\n"
  14932. " (mlet %store-monad ((a (interned-file \"README\"))\n"
  14933. " (b (interned-file \"README\" \"LEGU-MIN\")))\n"
  14934. " (return (list a b))))\n"
  14935. "\n"
  14936. msgstr ""
  14937. #. type: lisp
  14938. #: guix-git/doc/guix.texi:9431
  14939. #, no-wrap
  14940. msgid "@result{} (\"/gnu/store/rwm@dots{}-README\" \"/gnu/store/44i@dots{}-LEGU-MIN\")\n"
  14941. msgstr ""
  14942. #. type: Plain text
  14943. #: guix-git/doc/guix.texi:9437
  14944. msgid "The @code{(guix packages)} module exports the following package-related monadic procedures:"
  14945. msgstr ""
  14946. #. type: deffn
  14947. #: guix-git/doc/guix.texi:9438
  14948. #, no-wrap
  14949. msgid "{Monadic Procedure} package-file @var{package} [@var{file}] @"
  14950. msgstr ""
  14951. #. type: deffn
  14952. #: guix-git/doc/guix.texi:9446
  14953. msgid "[#:system (%current-system)] [#:target #f] @ [#:output \"out\"] Return as a monadic value in the absolute file name of @var{file} within the @var{output} directory of @var{package}. When @var{file} is omitted, return the name of the @var{output} directory of @var{package}. When @var{target} is true, use it as a cross-compilation target triplet."
  14954. msgstr ""
  14955. #. type: deffn
  14956. #: guix-git/doc/guix.texi:9450
  14957. msgid "Note that this procedure does @emph{not} build @var{package}. Thus, the result might or might not designate an existing file. We recommend not using this procedure unless you know what you are doing."
  14958. msgstr ""
  14959. #. type: deffn
  14960. #: guix-git/doc/guix.texi:9452
  14961. #, no-wrap
  14962. msgid "{Monadic Procedure} package->derivation @var{package} [@var{system}]"
  14963. msgstr ""
  14964. #. type: deffnx
  14965. #: guix-git/doc/guix.texi:9453
  14966. #, no-wrap
  14967. msgid "{Monadic Procedure} package->cross-derivation @var{package} @"
  14968. msgstr ""
  14969. #. type: deffn
  14970. #: guix-git/doc/guix.texi:9457
  14971. msgid "@var{target} [@var{system}] Monadic version of @code{package-derivation} and @code{package-cross-derivation} (@pxref{Defining Packages})."
  14972. msgstr ""
  14973. #. type: cindex
  14974. #: guix-git/doc/guix.texi:9463
  14975. #, no-wrap
  14976. msgid "G-expression"
  14977. msgstr ""
  14978. #. type: cindex
  14979. #: guix-git/doc/guix.texi:9464
  14980. #, no-wrap
  14981. msgid "build code quoting"
  14982. msgstr ""
  14983. #. type: Plain text
  14984. #: guix-git/doc/guix.texi:9470
  14985. msgid "So we have ``derivations'', which represent a sequence of build actions to be performed to produce an item in the store (@pxref{Derivations}). These build actions are performed when asking the daemon to actually build the derivations; they are run by the daemon in a container (@pxref{Invoking guix-daemon})."
  14986. msgstr ""
  14987. #. type: cindex
  14988. #: guix-git/doc/guix.texi:9473
  14989. #, no-wrap
  14990. msgid "strata of code"
  14991. msgstr ""
  14992. #. type: Plain text
  14993. #: guix-git/doc/guix.texi:9485
  14994. msgid "It should come as no surprise that we like to write these build actions in Scheme. When we do that, we end up with two @dfn{strata} of Scheme code@footnote{The term @dfn{stratum} in this context was coined by Manuel Serrano et al.@: in the context of their work on Hop. Oleg Kiselyov, who has written insightful @url{http://okmij.org/ftp/meta-programming/#meta-scheme, essays and code on this topic}, refers to this kind of code generation as @dfn{staging}.}: the ``host code''---code that defines packages, talks to the daemon, etc.---and the ``build code''---code that actually performs build actions, such as making directories, invoking @command{make}, and so on (@pxref{Build Phases})."
  14995. msgstr ""
  14996. #. type: Plain text
  14997. #: guix-git/doc/guix.texi:9492
  14998. msgid "To describe a derivation and its build actions, one typically needs to embed build code inside host code. It boils down to manipulating build code as data, and the homoiconicity of Scheme---code has a direct representation as data---comes in handy for that. But we need more than the normal @code{quasiquote} mechanism in Scheme to construct build expressions."
  14999. msgstr ""
  15000. #. type: Plain text
  15001. #: guix-git/doc/guix.texi:9501
  15002. msgid "The @code{(guix gexp)} module implements @dfn{G-expressions}, a form of S-expressions adapted to build expressions. G-expressions, or @dfn{gexps}, consist essentially of three syntactic forms: @code{gexp}, @code{ungexp}, and @code{ungexp-splicing} (or simply: @code{#~}, @code{#$}, and @code{#$@@}), which are comparable to @code{quasiquote}, @code{unquote}, and @code{unquote-splicing}, respectively (@pxref{Expression Syntax, @code{quasiquote},, guile, GNU Guile Reference Manual}). However, there are major differences:"
  15003. msgstr ""
  15004. #. type: itemize
  15005. #: guix-git/doc/guix.texi:9506
  15006. msgid "Gexps are meant to be written to a file and run or manipulated by other processes."
  15007. msgstr ""
  15008. #. type: itemize
  15009. #: guix-git/doc/guix.texi:9511
  15010. msgid "When a high-level object such as a package or derivation is unquoted inside a gexp, the result is as if its output file name had been introduced."
  15011. msgstr ""
  15012. #. type: itemize
  15013. #: guix-git/doc/guix.texi:9516
  15014. msgid "Gexps carry information about the packages or derivations they refer to, and these dependencies are automatically added as inputs to the build processes that use them."
  15015. msgstr ""
  15016. #. type: cindex
  15017. #: guix-git/doc/guix.texi:9518 guix-git/doc/guix.texi:10075
  15018. #, no-wrap
  15019. msgid "lowering, of high-level objects in gexps"
  15020. msgstr ""
  15021. #. type: Plain text
  15022. #: guix-git/doc/guix.texi:9528
  15023. msgid "This mechanism is not limited to package and derivation objects: @dfn{compilers} able to ``lower'' other high-level objects to derivations or files in the store can be defined, such that these objects can also be inserted into gexps. For example, a useful type of high-level objects that can be inserted in a gexp is ``file-like objects'', which make it easy to add files to the store and to refer to them in derivations and such (see @code{local-file} and @code{plain-file} below)."
  15024. msgstr ""
  15025. #. type: Plain text
  15026. #: guix-git/doc/guix.texi:9530
  15027. msgid "To illustrate the idea, here is an example of a gexp:"
  15028. msgstr ""
  15029. #. type: lisp
  15030. #: guix-git/doc/guix.texi:9538
  15031. #, no-wrap
  15032. msgid ""
  15033. "(define build-exp\n"
  15034. " #~(begin\n"
  15035. " (mkdir #$output)\n"
  15036. " (chdir #$output)\n"
  15037. " (symlink (string-append #$coreutils \"/bin/ls\")\n"
  15038. " \"list-files\")))\n"
  15039. msgstr ""
  15040. #. type: Plain text
  15041. #: guix-git/doc/guix.texi:9543
  15042. msgid "This gexp can be passed to @code{gexp->derivation}; we obtain a derivation that builds a directory containing exactly one symlink to @file{/gnu/store/@dots{}-coreutils-8.22/bin/ls}:"
  15043. msgstr ""
  15044. #. type: lisp
  15045. #: guix-git/doc/guix.texi:9546
  15046. #, no-wrap
  15047. msgid "(gexp->derivation \"the-thing\" build-exp)\n"
  15048. msgstr ""
  15049. #. type: Plain text
  15050. #: guix-git/doc/guix.texi:9554
  15051. msgid "As one would expect, the @code{\"/gnu/store/@dots{}-coreutils-8.22\"} string is substituted to the reference to the @var{coreutils} package in the actual build code, and @var{coreutils} is automatically made an input to the derivation. Likewise, @code{#$output} (equivalent to @code{(ungexp output)}) is replaced by a string containing the directory name of the output of the derivation."
  15052. msgstr ""
  15053. #. type: cindex
  15054. #: guix-git/doc/guix.texi:9555
  15055. #, no-wrap
  15056. msgid "cross compilation"
  15057. msgstr ""
  15058. #. type: Plain text
  15059. #: guix-git/doc/guix.texi:9561
  15060. msgid "In a cross-compilation context, it is useful to distinguish between references to the @emph{native} build of a package---that can run on the host---versus references to cross builds of a package. To that end, the @code{#+} plays the same role as @code{#$}, but is a reference to a native package build:"
  15061. msgstr ""
  15062. #. type: lisp
  15063. #: guix-git/doc/guix.texi:9572
  15064. #, no-wrap
  15065. msgid ""
  15066. "(gexp->derivation \"vi\"\n"
  15067. " #~(begin\n"
  15068. " (mkdir #$output)\n"
  15069. " (mkdir (string-append #$output \"/bin\"))\n"
  15070. " (system* (string-append #+coreutils \"/bin/ln\")\n"
  15071. " \"-s\"\n"
  15072. " (string-append #$emacs \"/bin/emacs\")\n"
  15073. " (string-append #$output \"/bin/vi\")))\n"
  15074. " #:target \"aarch64-linux-gnu\")\n"
  15075. msgstr ""
  15076. #. type: Plain text
  15077. #: guix-git/doc/guix.texi:9578
  15078. msgid "In the example above, the native build of @var{coreutils} is used, so that @command{ln} can actually run on the host; but then the cross-compiled build of @var{emacs} is referenced."
  15079. msgstr ""
  15080. #. type: cindex
  15081. #: guix-git/doc/guix.texi:9579
  15082. #, no-wrap
  15083. msgid "imported modules, for gexps"
  15084. msgstr ""
  15085. #. type: findex
  15086. #: guix-git/doc/guix.texi:9580
  15087. #, no-wrap
  15088. msgid "with-imported-modules"
  15089. msgstr ""
  15090. #. type: Plain text
  15091. #: guix-git/doc/guix.texi:9585
  15092. msgid "Another gexp feature is @dfn{imported modules}: sometimes you want to be able to use certain Guile modules from the ``host environment'' in the gexp, so those modules should be imported in the ``build environment''. The @code{with-imported-modules} form allows you to express that:"
  15093. msgstr ""
  15094. #. type: lisp
  15095. #: guix-git/doc/guix.texi:9596
  15096. #, no-wrap
  15097. msgid ""
  15098. "(let ((build (with-imported-modules '((guix build utils))\n"
  15099. " #~(begin\n"
  15100. " (use-modules (guix build utils))\n"
  15101. " (mkdir-p (string-append #$output \"/bin\"))))))\n"
  15102. " (gexp->derivation \"empty-dir\"\n"
  15103. " #~(begin\n"
  15104. " #$build\n"
  15105. " (display \"success!\\n\")\n"
  15106. " #t)))\n"
  15107. msgstr ""
  15108. #. type: Plain text
  15109. #: guix-git/doc/guix.texi:9602
  15110. msgid "In this example, the @code{(guix build utils)} module is automatically pulled into the isolated build environment of our gexp, such that @code{(use-modules (guix build utils))} works as expected."
  15111. msgstr ""
  15112. #. type: cindex
  15113. #: guix-git/doc/guix.texi:9603
  15114. #, no-wrap
  15115. msgid "module closure"
  15116. msgstr ""
  15117. #. type: findex
  15118. #: guix-git/doc/guix.texi:9604
  15119. #, no-wrap
  15120. msgid "source-module-closure"
  15121. msgstr ""
  15122. #. type: Plain text
  15123. #: guix-git/doc/guix.texi:9611
  15124. msgid "Usually you want the @emph{closure} of the module to be imported---i.e., the module itself and all the modules it depends on---rather than just the module; failing to do that, attempts to use the module will fail because of missing dependent modules. The @code{source-module-closure} procedure computes the closure of a module by looking at its source file headers, which comes in handy in this case:"
  15125. msgstr ""
  15126. #. type: lisp
  15127. #: guix-git/doc/guix.texi:9614
  15128. #, no-wrap
  15129. msgid ""
  15130. "(use-modules (guix modules)) ;for 'source-module-closure'\n"
  15131. "\n"
  15132. msgstr ""
  15133. #. type: lisp
  15134. #: guix-git/doc/guix.texi:9623
  15135. #, no-wrap
  15136. msgid ""
  15137. "(with-imported-modules (source-module-closure\n"
  15138. " '((guix build utils)\n"
  15139. " (gnu build vm)))\n"
  15140. " (gexp->derivation \"something-with-vms\"\n"
  15141. " #~(begin\n"
  15142. " (use-modules (guix build utils)\n"
  15143. " (gnu build vm))\n"
  15144. " @dots{})))\n"
  15145. msgstr ""
  15146. #. type: cindex
  15147. #: guix-git/doc/guix.texi:9625
  15148. #, no-wrap
  15149. msgid "extensions, for gexps"
  15150. msgstr ""
  15151. #. type: findex
  15152. #: guix-git/doc/guix.texi:9626
  15153. #, no-wrap
  15154. msgid "with-extensions"
  15155. msgstr ""
  15156. #. type: Plain text
  15157. #: guix-git/doc/guix.texi:9631
  15158. msgid "In the same vein, sometimes you want to import not just pure-Scheme modules, but also ``extensions'' such as Guile bindings to C libraries or other ``full-blown'' packages. Say you need the @code{guile-json} package available on the build side, here's how you would do it:"
  15159. msgstr ""
  15160. #. type: lisp
  15161. #: guix-git/doc/guix.texi:9634
  15162. #, no-wrap
  15163. msgid ""
  15164. "(use-modules (gnu packages guile)) ;for 'guile-json'\n"
  15165. "\n"
  15166. msgstr ""
  15167. #. type: lisp
  15168. #: guix-git/doc/guix.texi:9640
  15169. #, no-wrap
  15170. msgid ""
  15171. "(with-extensions (list guile-json)\n"
  15172. " (gexp->derivation \"something-with-json\"\n"
  15173. " #~(begin\n"
  15174. " (use-modules (json))\n"
  15175. " @dots{})))\n"
  15176. msgstr ""
  15177. #. type: Plain text
  15178. #: guix-git/doc/guix.texi:9643
  15179. msgid "The syntactic form to construct gexps is summarized below."
  15180. msgstr ""
  15181. #. type: deffn
  15182. #: guix-git/doc/guix.texi:9644
  15183. #, no-wrap
  15184. msgid "{Scheme Syntax} #~@var{exp}"
  15185. msgstr ""
  15186. #. type: deffnx
  15187. #: guix-git/doc/guix.texi:9645
  15188. #, no-wrap
  15189. msgid "{Scheme Syntax} (gexp @var{exp})"
  15190. msgstr ""
  15191. #. type: deffn
  15192. #: guix-git/doc/guix.texi:9648
  15193. msgid "Return a G-expression containing @var{exp}. @var{exp} may contain one or more of the following forms:"
  15194. msgstr ""
  15195. #. type: item
  15196. #: guix-git/doc/guix.texi:9650
  15197. #, no-wrap
  15198. msgid "#$@var{obj}"
  15199. msgstr ""
  15200. #. type: itemx
  15201. #: guix-git/doc/guix.texi:9651
  15202. #, no-wrap
  15203. msgid "(ungexp @var{obj})"
  15204. msgstr ""
  15205. #. type: table
  15206. #: guix-git/doc/guix.texi:9656
  15207. msgid "Introduce a reference to @var{obj}. @var{obj} may have one of the supported types, for example a package or a derivation, in which case the @code{ungexp} form is replaced by its output file name---e.g., @code{\"/gnu/store/@dots{}-coreutils-8.22}."
  15208. msgstr ""
  15209. #. type: table
  15210. #: guix-git/doc/guix.texi:9659
  15211. msgid "If @var{obj} is a list, it is traversed and references to supported objects are substituted similarly."
  15212. msgstr ""
  15213. #. type: table
  15214. #: guix-git/doc/guix.texi:9662
  15215. msgid "If @var{obj} is another gexp, its contents are inserted and its dependencies are added to those of the containing gexp."
  15216. msgstr ""
  15217. #. type: table
  15218. #: guix-git/doc/guix.texi:9664
  15219. msgid "If @var{obj} is another kind of object, it is inserted as is."
  15220. msgstr ""
  15221. #. type: item
  15222. #: guix-git/doc/guix.texi:9665
  15223. #, no-wrap
  15224. msgid "#$@var{obj}:@var{output}"
  15225. msgstr ""
  15226. #. type: itemx
  15227. #: guix-git/doc/guix.texi:9666
  15228. #, no-wrap
  15229. msgid "(ungexp @var{obj} @var{output})"
  15230. msgstr ""
  15231. #. type: table
  15232. #: guix-git/doc/guix.texi:9670
  15233. msgid "This is like the form above, but referring explicitly to the @var{output} of @var{obj}---this is useful when @var{obj} produces multiple outputs (@pxref{Packages with Multiple Outputs})."
  15234. msgstr ""
  15235. #. type: item
  15236. #: guix-git/doc/guix.texi:9671
  15237. #, no-wrap
  15238. msgid "#+@var{obj}"
  15239. msgstr ""
  15240. #. type: itemx
  15241. #: guix-git/doc/guix.texi:9672
  15242. #, no-wrap
  15243. msgid "#+@var{obj}:output"
  15244. msgstr ""
  15245. #. type: itemx
  15246. #: guix-git/doc/guix.texi:9673
  15247. #, no-wrap
  15248. msgid "(ungexp-native @var{obj})"
  15249. msgstr ""
  15250. #. type: itemx
  15251. #: guix-git/doc/guix.texi:9674
  15252. #, no-wrap
  15253. msgid "(ungexp-native @var{obj} @var{output})"
  15254. msgstr ""
  15255. #. type: table
  15256. #: guix-git/doc/guix.texi:9677
  15257. msgid "Same as @code{ungexp}, but produces a reference to the @emph{native} build of @var{obj} when used in a cross compilation context."
  15258. msgstr ""
  15259. #. type: item
  15260. #: guix-git/doc/guix.texi:9678
  15261. #, no-wrap
  15262. msgid "#$output[:@var{output}]"
  15263. msgstr ""
  15264. #. type: itemx
  15265. #: guix-git/doc/guix.texi:9679
  15266. #, no-wrap
  15267. msgid "(ungexp output [@var{output}])"
  15268. msgstr ""
  15269. #. type: table
  15270. #: guix-git/doc/guix.texi:9682
  15271. msgid "Insert a reference to derivation output @var{output}, or to the main output when @var{output} is omitted."
  15272. msgstr ""
  15273. #. type: table
  15274. #: guix-git/doc/guix.texi:9684
  15275. msgid "This only makes sense for gexps passed to @code{gexp->derivation}."
  15276. msgstr ""
  15277. #. type: item
  15278. #: guix-git/doc/guix.texi:9685
  15279. #, no-wrap
  15280. msgid "#$@@@var{lst}"
  15281. msgstr ""
  15282. #. type: itemx
  15283. #: guix-git/doc/guix.texi:9686
  15284. #, no-wrap
  15285. msgid "(ungexp-splicing @var{lst})"
  15286. msgstr ""
  15287. #. type: table
  15288. #: guix-git/doc/guix.texi:9689
  15289. msgid "Like the above, but splices the contents of @var{lst} inside the containing list."
  15290. msgstr ""
  15291. #. type: item
  15292. #: guix-git/doc/guix.texi:9690
  15293. #, no-wrap
  15294. msgid "#+@@@var{lst}"
  15295. msgstr ""
  15296. #. type: itemx
  15297. #: guix-git/doc/guix.texi:9691
  15298. #, no-wrap
  15299. msgid "(ungexp-native-splicing @var{lst})"
  15300. msgstr ""
  15301. #. type: table
  15302. #: guix-git/doc/guix.texi:9694
  15303. msgid "Like the above, but refers to native builds of the objects listed in @var{lst}."
  15304. msgstr ""
  15305. #. type: deffn
  15306. #: guix-git/doc/guix.texi:9699
  15307. msgid "G-expressions created by @code{gexp} or @code{#~} are run-time objects of the @code{gexp?} type (see below)."
  15308. msgstr ""
  15309. #. type: deffn
  15310. #: guix-git/doc/guix.texi:9701
  15311. #, no-wrap
  15312. msgid "{Scheme Syntax} with-imported-modules @var{modules} @var{body}@dots{}"
  15313. msgstr ""
  15314. #. type: deffn
  15315. #: guix-git/doc/guix.texi:9704
  15316. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{modules} in their execution environment."
  15317. msgstr ""
  15318. #. type: deffn
  15319. #: guix-git/doc/guix.texi:9708
  15320. msgid "Each item in @var{modules} can be the name of a module, such as @code{(guix build utils)}, or it can be a module name, followed by an arrow, followed by a file-like object:"
  15321. msgstr ""
  15322. #. type: lisp
  15323. #: guix-git/doc/guix.texi:9714
  15324. #, no-wrap
  15325. msgid ""
  15326. "`((guix build utils)\n"
  15327. " (guix gcrypt)\n"
  15328. " ((guix config) => ,(scheme-file \"config.scm\"\n"
  15329. " #~(define-module @dots{}))))\n"
  15330. msgstr ""
  15331. #. type: deffn
  15332. #: guix-git/doc/guix.texi:9719
  15333. msgid "In the example above, the first two modules are taken from the search path, and the last one is created from the given file-like object."
  15334. msgstr ""
  15335. #. type: deffn
  15336. #: guix-git/doc/guix.texi:9723
  15337. msgid "This form has @emph{lexical} scope: it has an effect on the gexps directly defined in @var{body}@dots{}, but not on those defined, say, in procedures called from @var{body}@dots{}."
  15338. msgstr ""
  15339. #. type: deffn
  15340. #: guix-git/doc/guix.texi:9725
  15341. #, no-wrap
  15342. msgid "{Scheme Syntax} with-extensions @var{extensions} @var{body}@dots{}"
  15343. msgstr ""
  15344. #. type: deffn
  15345. #: guix-git/doc/guix.texi:9730
  15346. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{extensions} in their build and execution environment. @var{extensions} is typically a list of package objects such as those defined in the @code{(gnu packages guile)} module."
  15347. msgstr ""
  15348. #. type: deffn
  15349. #: guix-git/doc/guix.texi:9735
  15350. msgid "Concretely, the packages listed in @var{extensions} are added to the load path while compiling imported modules in @var{body}@dots{}; they are also added to the load path of the gexp returned by @var{body}@dots{}."
  15351. msgstr ""
  15352. #. type: deffn
  15353. #: guix-git/doc/guix.texi:9737
  15354. #, no-wrap
  15355. msgid "{Scheme Procedure} gexp? @var{obj}"
  15356. msgstr ""
  15357. #. type: deffn
  15358. #: guix-git/doc/guix.texi:9739
  15359. msgid "Return @code{#t} if @var{obj} is a G-expression."
  15360. msgstr ""
  15361. #. type: Plain text
  15362. #: guix-git/doc/guix.texi:9745
  15363. msgid "G-expressions are meant to be written to disk, either as code building some derivation, or as plain files in the store. The monadic procedures below allow you to do that (@pxref{The Store Monad}, for more information about monads)."
  15364. msgstr ""
  15365. #. type: deffn
  15366. #: guix-git/doc/guix.texi:9746
  15367. #, no-wrap
  15368. msgid "{Monadic Procedure} gexp->derivation @var{name} @var{exp} @"
  15369. msgstr ""
  15370. #. type: deffn
  15371. #: guix-git/doc/guix.texi:9764
  15372. msgid "[#:system (%current-system)] [#:target #f] [#:graft? #t] @ [#:hash #f] [#:hash-algo #f] @ [#:recursive? #f] [#:env-vars '()] [#:modules '()] @ [#:module-path @code{%load-path}] @ [#:effective-version \"2.2\"] @ [#:references-graphs #f] [#:allowed-references #f] @ [#:disallowed-references #f] @ [#:leaked-env-vars #f] @ [#:script-name (string-append @var{name} \"-builder\")] @ [#:deprecation-warnings #f] @ [#:local-build? #f] [#:substitutable? #t] @ [#:properties '()] [#:guile-for-build #f] Return a derivation @var{name} that runs @var{exp} (a gexp) with @var{guile-for-build} (a derivation) on @var{system}; @var{exp} is stored in a file called @var{script-name}. When @var{target} is true, it is used as the cross-compilation target triplet for packages referred to by @var{exp}."
  15373. msgstr ""
  15374. #. type: deffn
  15375. #: guix-git/doc/guix.texi:9772
  15376. msgid "@var{modules} is deprecated in favor of @code{with-imported-modules}. Its meaning is to make @var{modules} available in the evaluation context of @var{exp}; @var{modules} is a list of names of Guile modules searched in @var{module-path} to be copied in the store, compiled, and made available in the load path during the execution of @var{exp}---e.g., @code{((guix build utils) (guix build gnu-build-system))}."
  15377. msgstr ""
  15378. #. type: deffn
  15379. #: guix-git/doc/guix.texi:9775
  15380. msgid "@var{effective-version} determines the string to use when adding extensions of @var{exp} (see @code{with-extensions}) to the search path---e.g., @code{\"2.2\"}."
  15381. msgstr ""
  15382. #. type: deffn
  15383. #: guix-git/doc/guix.texi:9778
  15384. msgid "@var{graft?} determines whether packages referred to by @var{exp} should be grafted when applicable."
  15385. msgstr ""
  15386. #. type: deffn
  15387. #: guix-git/doc/guix.texi:9781
  15388. msgid "When @var{references-graphs} is true, it must be a list of tuples of one of the following forms:"
  15389. msgstr ""
  15390. #. type: example
  15391. #: guix-git/doc/guix.texi:9788
  15392. #, no-wrap
  15393. msgid ""
  15394. "(@var{file-name} @var{package})\n"
  15395. "(@var{file-name} @var{package} @var{output})\n"
  15396. "(@var{file-name} @var{derivation})\n"
  15397. "(@var{file-name} @var{derivation} @var{output})\n"
  15398. "(@var{file-name} @var{store-item})\n"
  15399. msgstr ""
  15400. #. type: deffn
  15401. #: guix-git/doc/guix.texi:9794
  15402. msgid "The right-hand-side of each element of @var{references-graphs} is automatically made an input of the build process of @var{exp}. In the build environment, each @var{file-name} contains the reference graph of the corresponding item, in a simple text format."
  15403. msgstr ""
  15404. #. type: deffn
  15405. #: guix-git/doc/guix.texi:9800
  15406. msgid "@var{allowed-references} must be either @code{#f} or a list of output names and packages. In the latter case, the list denotes store items that the result is allowed to refer to. Any reference to another store item will lead to a build error. Similarly for @var{disallowed-references}, which can list items that must not be referenced by the outputs."
  15407. msgstr ""
  15408. #. type: deffn
  15409. #: guix-git/doc/guix.texi:9803
  15410. msgid "@var{deprecation-warnings} determines whether to show deprecation warnings while compiling modules. It can be @code{#f}, @code{#t}, or @code{'detailed}."
  15411. msgstr ""
  15412. #. type: deffn
  15413. #: guix-git/doc/guix.texi:9805
  15414. msgid "The other arguments are as for @code{derivation} (@pxref{Derivations})."
  15415. msgstr ""
  15416. #. type: cindex
  15417. #: guix-git/doc/guix.texi:9807
  15418. #, no-wrap
  15419. msgid "file-like objects"
  15420. msgstr ""
  15421. #. type: Plain text
  15422. #: guix-git/doc/guix.texi:9812
  15423. msgid "The @code{local-file}, @code{plain-file}, @code{computed-file}, @code{program-file}, and @code{scheme-file} procedures below return @dfn{file-like objects}. That is, when unquoted in a G-expression, these objects lead to a file in the store. Consider this G-expression:"
  15424. msgstr ""
  15425. #. type: lisp
  15426. #: guix-git/doc/guix.texi:9816
  15427. #, no-wrap
  15428. msgid ""
  15429. "#~(system* #$(file-append glibc \"/sbin/nscd\") \"-f\"\n"
  15430. " #$(local-file \"/tmp/my-nscd.conf\"))\n"
  15431. msgstr ""
  15432. #. type: Plain text
  15433. #: guix-git/doc/guix.texi:9825
  15434. msgid "The effect here is to ``intern'' @file{/tmp/my-nscd.conf} by copying it to the store. Once expanded, for instance @i{via} @code{gexp->derivation}, the G-expression refers to that copy under @file{/gnu/store}; thus, modifying or removing the file in @file{/tmp} does not have any effect on what the G-expression does. @code{plain-file} can be used similarly; it differs in that the file content is directly passed as a string."
  15435. msgstr ""
  15436. #. type: deffn
  15437. #: guix-git/doc/guix.texi:9826
  15438. #, no-wrap
  15439. msgid "{Scheme Procedure} local-file @var{file} [@var{name}] @"
  15440. msgstr ""
  15441. #. type: deffn
  15442. #: guix-git/doc/guix.texi:9835
  15443. msgid "[#:recursive? #f] [#:select? (const #t)] Return an object representing local file @var{file} to add to the store; this object can be used in a gexp. If @var{file} is a literal string denoting a relative file name, it is looked up relative to the source file where it appears; if @var{file} is not a literal string, it is looked up relative to the current working directory at run time. @var{file} will be added to the store under @var{name}--by default the base name of @var{file}."
  15444. msgstr ""
  15445. #. type: deffn
  15446. #: guix-git/doc/guix.texi:9847
  15447. msgid "This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}})."
  15448. msgstr ""
  15449. #. type: deffn
  15450. #: guix-git/doc/guix.texi:9849
  15451. #, no-wrap
  15452. msgid "{Scheme Procedure} plain-file @var{name} @var{content}"
  15453. msgstr ""
  15454. #. type: deffn
  15455. #: guix-git/doc/guix.texi:9852
  15456. msgid "Return an object representing a text file called @var{name} with the given @var{content} (a string or a bytevector) to be added to the store."
  15457. msgstr ""
  15458. #. type: deffn
  15459. #: guix-git/doc/guix.texi:9854
  15460. msgid "This is the declarative counterpart of @code{text-file}."
  15461. msgstr ""
  15462. #. type: deffn
  15463. #: guix-git/doc/guix.texi:9856
  15464. #, no-wrap
  15465. msgid "{Scheme Procedure} computed-file @var{name} @var{gexp} @"
  15466. msgstr ""
  15467. #. type: deffn
  15468. #: guix-git/doc/guix.texi:9863
  15469. msgid "[#:local-build? #t] [#:options '()] Return an object representing the store item @var{name}, a file or directory computed by @var{gexp}. When @var{local-build?} is true (the default), the derivation is built locally. @var{options} is a list of additional arguments to pass to @code{gexp->derivation}."
  15470. msgstr ""
  15471. #. type: deffn
  15472. #: guix-git/doc/guix.texi:9865
  15473. msgid "This is the declarative counterpart of @code{gexp->derivation}."
  15474. msgstr ""
  15475. #. type: deffn
  15476. #: guix-git/doc/guix.texi:9867
  15477. #, no-wrap
  15478. msgid "{Monadic Procedure} gexp->script @var{name} @var{exp} @"
  15479. msgstr ""
  15480. #. type: deffn
  15481. #: guix-git/doc/guix.texi:9873
  15482. msgid "[#:guile (default-guile)] [#:module-path %load-path] @ [#:system (%current-system)] [#:target #f] Return an executable script @var{name} that runs @var{exp} using @var{guile}, with @var{exp}'s imported modules in its search path. Look up @var{exp}'s modules in @var{module-path}."
  15483. msgstr ""
  15484. #. type: deffn
  15485. #: guix-git/doc/guix.texi:9876
  15486. msgid "The example below builds a script that simply invokes the @command{ls} command:"
  15487. msgstr ""
  15488. #. type: lisp
  15489. #: guix-git/doc/guix.texi:9879
  15490. #, no-wrap
  15491. msgid ""
  15492. "(use-modules (guix gexp) (gnu packages base))\n"
  15493. "\n"
  15494. msgstr ""
  15495. #. type: lisp
  15496. #: guix-git/doc/guix.texi:9883
  15497. #, no-wrap
  15498. msgid ""
  15499. "(gexp->script \"list-files\"\n"
  15500. " #~(execl #$(file-append coreutils \"/bin/ls\")\n"
  15501. " \"ls\"))\n"
  15502. msgstr ""
  15503. #. type: deffn
  15504. #: guix-git/doc/guix.texi:9888
  15505. msgid "When ``running'' it through the store (@pxref{The Store Monad, @code{run-with-store}}), we obtain a derivation that produces an executable file @file{/gnu/store/@dots{}-list-files} along these lines:"
  15506. msgstr ""
  15507. #. type: example
  15508. #: guix-git/doc/guix.texi:9893
  15509. #, no-wrap
  15510. msgid ""
  15511. "#!/gnu/store/@dots{}-guile-2.0.11/bin/guile -ds\n"
  15512. "!#\n"
  15513. "(execl \"/gnu/store/@dots{}-coreutils-8.22\"/bin/ls\" \"ls\")\n"
  15514. msgstr ""
  15515. #. type: deffn
  15516. #: guix-git/doc/guix.texi:9896
  15517. #, no-wrap
  15518. msgid "{Scheme Procedure} program-file @var{name} @var{exp} @"
  15519. msgstr ""
  15520. #. type: deffn
  15521. #: guix-git/doc/guix.texi:9901
  15522. msgid "[#:guile #f] [#:module-path %load-path] Return an object representing the executable store item @var{name} that runs @var{gexp}. @var{guile} is the Guile package used to execute that script. Imported modules of @var{gexp} are looked up in @var{module-path}."
  15523. msgstr ""
  15524. #. type: deffn
  15525. #: guix-git/doc/guix.texi:9903
  15526. msgid "This is the declarative counterpart of @code{gexp->script}."
  15527. msgstr ""
  15528. #. type: deffn
  15529. #: guix-git/doc/guix.texi:9905
  15530. #, no-wrap
  15531. msgid "{Monadic Procedure} gexp->file @var{name} @var{exp} @"
  15532. msgstr ""
  15533. #. type: deffn
  15534. #: guix-git/doc/guix.texi:9912
  15535. msgid "[#:set-load-path? #t] [#:module-path %load-path] @ [#:splice? #f] @ [#:guile (default-guile)] Return a derivation that builds a file @var{name} containing @var{exp}. When @var{splice?} is true, @var{exp} is considered to be a list of expressions that will be spliced in the resulting file."
  15536. msgstr ""
  15537. #. type: deffn
  15538. #: guix-git/doc/guix.texi:9917
  15539. msgid "When @var{set-load-path?} is true, emit code in the resulting file to set @code{%load-path} and @code{%load-compiled-path} to honor @var{exp}'s imported modules. Look up @var{exp}'s modules in @var{module-path}."
  15540. msgstr ""
  15541. #. type: deffn
  15542. #: guix-git/doc/guix.texi:9920
  15543. msgid "The resulting file holds references to all the dependencies of @var{exp} or a subset thereof."
  15544. msgstr ""
  15545. #. type: deffn
  15546. #: guix-git/doc/guix.texi:9922
  15547. #, no-wrap
  15548. msgid "{Scheme Procedure} scheme-file @var{name} @var{exp} @"
  15549. msgstr ""
  15550. #. type: deffn
  15551. #: guix-git/doc/guix.texi:9926
  15552. msgid "[#:splice? #f] [#:set-load-path? #t] Return an object representing the Scheme file @var{name} that contains @var{exp}."
  15553. msgstr ""
  15554. #. type: deffn
  15555. #: guix-git/doc/guix.texi:9928
  15556. msgid "This is the declarative counterpart of @code{gexp->file}."
  15557. msgstr ""
  15558. #. type: deffn
  15559. #: guix-git/doc/guix.texi:9930
  15560. #, no-wrap
  15561. msgid "{Monadic Procedure} text-file* @var{name} @var{text} @dots{}"
  15562. msgstr ""
  15563. #. type: deffn
  15564. #: guix-git/doc/guix.texi:9936
  15565. msgid "Return as a monadic value a derivation that builds a text file containing all of @var{text}. @var{text} may list, in addition to strings, objects of any type that can be used in a gexp: packages, derivations, local file objects, etc. The resulting store file holds references to all these."
  15566. msgstr ""
  15567. #. type: deffn
  15568. #: guix-git/doc/guix.texi:9941
  15569. msgid "This variant should be preferred over @code{text-file} anytime the file to create will reference items from the store. This is typically the case when building a configuration file that embeds store file names, like this:"
  15570. msgstr ""
  15571. #. type: lisp
  15572. #: guix-git/doc/guix.texi:9949
  15573. #, no-wrap
  15574. msgid ""
  15575. "(define (profile.sh)\n"
  15576. " ;; Return the name of a shell script in the store that\n"
  15577. " ;; initializes the 'PATH' environment variable.\n"
  15578. " (text-file* \"profile.sh\"\n"
  15579. " \"export PATH=\" coreutils \"/bin:\"\n"
  15580. " grep \"/bin:\" sed \"/bin\\n\"))\n"
  15581. msgstr ""
  15582. #. type: deffn
  15583. #: guix-git/doc/guix.texi:9954
  15584. msgid "In this example, the resulting @file{/gnu/store/@dots{}-profile.sh} file will reference @var{coreutils}, @var{grep}, and @var{sed}, thereby preventing them from being garbage-collected during its lifetime."
  15585. msgstr ""
  15586. #. type: deffn
  15587. #: guix-git/doc/guix.texi:9956
  15588. #, no-wrap
  15589. msgid "{Scheme Procedure} mixed-text-file @var{name} @var{text} @dots{}"
  15590. msgstr ""
  15591. #. type: deffn
  15592. #: guix-git/doc/guix.texi:9960
  15593. msgid "Return an object representing store file @var{name} containing @var{text}. @var{text} is a sequence of strings and file-like objects, as in:"
  15594. msgstr ""
  15595. #. type: lisp
  15596. #: guix-git/doc/guix.texi:9964
  15597. #, no-wrap
  15598. msgid ""
  15599. "(mixed-text-file \"profile\"\n"
  15600. " \"export PATH=\" coreutils \"/bin:\" grep \"/bin\")\n"
  15601. msgstr ""
  15602. #. type: deffn
  15603. #: guix-git/doc/guix.texi:9967
  15604. msgid "This is the declarative counterpart of @code{text-file*}."
  15605. msgstr ""
  15606. #. type: deffn
  15607. #: guix-git/doc/guix.texi:9969
  15608. #, no-wrap
  15609. msgid "{Scheme Procedure} file-union @var{name} @var{files}"
  15610. msgstr ""
  15611. #. type: deffn
  15612. #: guix-git/doc/guix.texi:9974
  15613. msgid "Return a @code{<computed-file>} that builds a directory containing all of @var{files}. Each item in @var{files} must be a two-element list where the first element is the file name to use in the new directory, and the second element is a gexp denoting the target file. Here's an example:"
  15614. msgstr ""
  15615. #. type: lisp
  15616. #: guix-git/doc/guix.texi:9981
  15617. #, no-wrap
  15618. msgid ""
  15619. "(file-union \"etc\"\n"
  15620. " `((\"hosts\" ,(plain-file \"hosts\"\n"
  15621. " \"127.0.0.1 localhost\"))\n"
  15622. " (\"bashrc\" ,(plain-file \"bashrc\"\n"
  15623. " \"alias ls='ls --color=auto'\"))))\n"
  15624. msgstr ""
  15625. #. type: deffn
  15626. #: guix-git/doc/guix.texi:9984
  15627. msgid "This yields an @code{etc} directory containing these two files."
  15628. msgstr ""
  15629. #. type: deffn
  15630. #: guix-git/doc/guix.texi:9986
  15631. #, no-wrap
  15632. msgid "{Scheme Procedure} directory-union @var{name} @var{things}"
  15633. msgstr ""
  15634. #. type: deffn
  15635. #: guix-git/doc/guix.texi:9989
  15636. msgid "Return a directory that is the union of @var{things}, where @var{things} is a list of file-like objects denoting directories. For example:"
  15637. msgstr ""
  15638. #. type: lisp
  15639. #: guix-git/doc/guix.texi:9992
  15640. #, no-wrap
  15641. msgid "(directory-union \"guile+emacs\" (list guile emacs))\n"
  15642. msgstr ""
  15643. #. type: deffn
  15644. #: guix-git/doc/guix.texi:9995
  15645. msgid "yields a directory that is the union of the @code{guile} and @code{emacs} packages."
  15646. msgstr ""
  15647. #. type: deffn
  15648. #: guix-git/doc/guix.texi:9997
  15649. #, no-wrap
  15650. msgid "{Scheme Procedure} file-append @var{obj} @var{suffix} @dots{}"
  15651. msgstr ""
  15652. #. type: deffn
  15653. #: guix-git/doc/guix.texi:10001
  15654. msgid "Return a file-like object that expands to the concatenation of @var{obj} and @var{suffix}, where @var{obj} is a lowerable object and each @var{suffix} is a string."
  15655. msgstr ""
  15656. #. type: deffn
  15657. #: guix-git/doc/guix.texi:10003
  15658. msgid "As an example, consider this gexp:"
  15659. msgstr ""
  15660. #. type: lisp
  15661. #: guix-git/doc/guix.texi:10008
  15662. #, no-wrap
  15663. msgid ""
  15664. "(gexp->script \"run-uname\"\n"
  15665. " #~(system* #$(file-append coreutils\n"
  15666. " \"/bin/uname\")))\n"
  15667. msgstr ""
  15668. #. type: deffn
  15669. #: guix-git/doc/guix.texi:10011
  15670. msgid "The same effect could be achieved with:"
  15671. msgstr ""
  15672. #. type: lisp
  15673. #: guix-git/doc/guix.texi:10016
  15674. #, no-wrap
  15675. msgid ""
  15676. "(gexp->script \"run-uname\"\n"
  15677. " #~(system* (string-append #$coreutils\n"
  15678. " \"/bin/uname\")))\n"
  15679. msgstr ""
  15680. #. type: deffn
  15681. #: guix-git/doc/guix.texi:10022
  15682. msgid "There is one difference though: in the @code{file-append} case, the resulting script contains the absolute file name as a string, whereas in the second case, the resulting script contains a @code{(string-append @dots{})} expression to construct the file name @emph{at run time}."
  15683. msgstr ""
  15684. #. type: deffn
  15685. #: guix-git/doc/guix.texi:10024
  15686. #, no-wrap
  15687. msgid "{Scheme Syntax} let-system @var{system} @var{body}@dots{}"
  15688. msgstr ""
  15689. #. type: deffnx
  15690. #: guix-git/doc/guix.texi:10025
  15691. #, no-wrap
  15692. msgid "{Scheme Syntax} let-system (@var{system} @var{target}) @var{body}@dots{}"
  15693. msgstr ""
  15694. #. type: deffn
  15695. #: guix-git/doc/guix.texi:10028
  15696. #, fuzzy
  15697. msgid "Bind @var{system} to the currently targeted system---e.g., @code{\"x86_64-linux\"}---within @var{body}."
  15698. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  15699. #. type: deffn
  15700. #: guix-git/doc/guix.texi:10033
  15701. msgid "In the second case, additionally bind @var{target} to the current cross-compilation target---a GNU triplet such as @code{\"arm-linux-gnueabihf\"}---or @code{#f} if we are not cross-compiling."
  15702. msgstr ""
  15703. #. type: deffn
  15704. #: guix-git/doc/guix.texi:10036
  15705. msgid "@code{let-system} is useful in the occasional case where the object spliced into the gexp depends on the target system, as in this example:"
  15706. msgstr ""
  15707. #. type: lisp
  15708. #: guix-git/doc/guix.texi:10047
  15709. #, no-wrap
  15710. msgid ""
  15711. "#~(system*\n"
  15712. " #+(let-system system\n"
  15713. " (cond ((string-prefix? \"armhf-\" system)\n"
  15714. " (file-append qemu \"/bin/qemu-system-arm\"))\n"
  15715. " ((string-prefix? \"x86_64-\" system)\n"
  15716. " (file-append qemu \"/bin/qemu-system-x86_64\"))\n"
  15717. " (else\n"
  15718. " (error \"dunno!\"))))\n"
  15719. " \"-net\" \"user\" #$image)\n"
  15720. msgstr ""
  15721. #. type: deffn
  15722. #: guix-git/doc/guix.texi:10050
  15723. #, no-wrap
  15724. msgid "{Scheme Syntax} with-parameters ((@var{parameter} @var{value}) @dots{}) @var{exp}"
  15725. msgstr ""
  15726. #. type: deffn
  15727. #: guix-git/doc/guix.texi:10056
  15728. msgid "This macro is similar to the @code{parameterize} form for dynamically-bound @dfn{parameters} (@pxref{Parameters,,, guile, GNU Guile Reference Manual}). The key difference is that it takes effect when the file-like object returned by @var{exp} is lowered to a derivation or store item."
  15729. msgstr ""
  15730. #. type: deffn
  15731. #: guix-git/doc/guix.texi:10059
  15732. msgid "A typical use of @code{with-parameters} is to force the system in effect for a given object:"
  15733. msgstr ""
  15734. #. type: lisp
  15735. #: guix-git/doc/guix.texi:10063
  15736. #, no-wrap
  15737. msgid ""
  15738. "(with-parameters ((%current-system \"i686-linux\"))\n"
  15739. " coreutils)\n"
  15740. msgstr ""
  15741. #. type: deffn
  15742. #: guix-git/doc/guix.texi:10067
  15743. msgid "The example above returns an object that corresponds to the i686 build of Coreutils, regardless of the current value of @code{%current-system}."
  15744. msgstr ""
  15745. #. type: Plain text
  15746. #: guix-git/doc/guix.texi:10074
  15747. msgid "Of course, in addition to gexps embedded in ``host'' code, there are also modules containing build tools. To make it clear that they are meant to be used in the build stratum, these modules are kept in the @code{(guix build @dots{})} name space."
  15748. msgstr ""
  15749. #. type: Plain text
  15750. #: guix-git/doc/guix.texi:10080
  15751. msgid "Internally, high-level objects are @dfn{lowered}, using their compiler, to either derivations or store items. For instance, lowering a package yields a derivation, and lowering a @code{plain-file} yields a store item. This is achieved using the @code{lower-object} monadic procedure."
  15752. msgstr ""
  15753. #. type: deffn
  15754. #: guix-git/doc/guix.texi:10081
  15755. #, no-wrap
  15756. msgid "{Monadic Procedure} lower-object @var{obj} [@var{system}] @"
  15757. msgstr ""
  15758. #. type: deffn
  15759. #: guix-git/doc/guix.texi:10087
  15760. msgid "[#:target #f] Return as a value in @code{%store-monad} the derivation or store item corresponding to @var{obj} for @var{system}, cross-compiling for @var{target} if @var{target} is true. @var{obj} must be an object that has an associated gexp compiler, such as a @code{<package>}."
  15761. msgstr ""
  15762. #. type: deffn
  15763. #: guix-git/doc/guix.texi:10089
  15764. #, no-wrap
  15765. msgid "{Procedure} gexp->approximate-sexp @var{gexp}"
  15766. msgstr ""
  15767. #. type: deffn
  15768. #: guix-git/doc/guix.texi:10097
  15769. msgid "Sometimes, it may be useful to convert a G-exp into a S-exp. For example, some linters (@pxref{Invoking guix lint}) peek into the build phases of a package to detect potential problems. This conversion can be achieved with this procedure. However, some information can be lost in the process. More specifically, lowerable objects will be silently replaced with some arbitrary object -- currently the list @code{(*approximate*)}, but this may change."
  15770. msgstr ""
  15771. #. type: section
  15772. #: guix-git/doc/guix.texi:10100
  15773. #, no-wrap
  15774. msgid "Invoking @command{guix repl}"
  15775. msgstr ""
  15776. #. type: cindex
  15777. #: guix-git/doc/guix.texi:10102
  15778. #, fuzzy, no-wrap
  15779. msgid "REPL, read-eval-print loop, script"
  15780. msgstr "read-eval-print loop"
  15781. #. type: Plain text
  15782. #: guix-git/doc/guix.texi:10112
  15783. msgid "The @command{guix repl} command makes it easier to program Guix in Guile by launching a Guile @dfn{read-eval-print loop} (REPL) for interactive programming (@pxref{Using Guile Interactively,,, guile, GNU Guile Reference Manual}), or by running Guile scripts (@pxref{Running Guile Scripts,,, guile, GNU Guile Reference Manual}). Compared to just launching the @command{guile} command, @command{guix repl} guarantees that all the Guix modules and all its dependencies are available in the search path."
  15784. msgstr ""
  15785. #. type: example
  15786. #: guix-git/doc/guix.texi:10117
  15787. #, no-wrap
  15788. msgid "guix repl @var{options} [@var{file} @var{args}]\n"
  15789. msgstr ""
  15790. #. type: Plain text
  15791. #: guix-git/doc/guix.texi:10121
  15792. msgid "When a @var{file} argument is provided, @var{file} is executed as a Guile scripts:"
  15793. msgstr ""
  15794. #. type: example
  15795. #: guix-git/doc/guix.texi:10124
  15796. #, no-wrap
  15797. msgid "guix repl my-script.scm\n"
  15798. msgstr ""
  15799. #. type: Plain text
  15800. #: guix-git/doc/guix.texi:10128
  15801. msgid "To pass arguments to the script, use @code{--} to prevent them from being interpreted as arguments to @command{guix repl} itself:"
  15802. msgstr ""
  15803. #. type: example
  15804. #: guix-git/doc/guix.texi:10131
  15805. #, no-wrap
  15806. msgid "guix repl -- my-script.scm --input=foo.txt\n"
  15807. msgstr ""
  15808. #. type: Plain text
  15809. #: guix-git/doc/guix.texi:10136
  15810. msgid "To make a script executable directly from the shell, using the guix executable that is on the user's search path, add the following two lines at the top of the script:"
  15811. msgstr ""
  15812. #. type: example
  15813. #: guix-git/doc/guix.texi:10140
  15814. #, no-wrap
  15815. msgid ""
  15816. "@code{#!/usr/bin/env -S guix repl --}\n"
  15817. "@code{!#}\n"
  15818. msgstr ""
  15819. #. type: Plain text
  15820. #: guix-git/doc/guix.texi:10143
  15821. msgid "Without a file name argument, a Guile REPL is started:"
  15822. msgstr ""
  15823. #. type: example
  15824. #: guix-git/doc/guix.texi:10149
  15825. #, no-wrap
  15826. msgid ""
  15827. "$ guix repl\n"
  15828. "scheme@@(guile-user)> ,use (gnu packages base)\n"
  15829. "scheme@@(guile-user)> coreutils\n"
  15830. "$1 = #<package coreutils@@8.29 gnu/packages/base.scm:327 3e28300>\n"
  15831. msgstr ""
  15832. #. type: Plain text
  15833. #: guix-git/doc/guix.texi:10156
  15834. msgid "In addition, @command{guix repl} implements a simple machine-readable REPL protocol for use by @code{(guix inferior)}, a facility to interact with @dfn{inferiors}, separate processes running a potentially different revision of Guix."
  15835. msgstr ""
  15836. #. type: Plain text
  15837. #: guix-git/doc/guix.texi:10158
  15838. msgid "The available options are as follows:"
  15839. msgstr ""
  15840. #. type: item
  15841. #: guix-git/doc/guix.texi:10160 guix-git/doc/guix.texi:12595
  15842. #, no-wrap
  15843. msgid "--type=@var{type}"
  15844. msgstr ""
  15845. #. type: itemx
  15846. #: guix-git/doc/guix.texi:10161 guix-git/doc/guix.texi:12596
  15847. #: guix-git/doc/guix.texi:33873
  15848. #, no-wrap
  15849. msgid "-t @var{type}"
  15850. msgstr ""
  15851. #. type: table
  15852. #: guix-git/doc/guix.texi:10163
  15853. msgid "Start a REPL of the given @var{TYPE}, which can be one of the following:"
  15854. msgstr ""
  15855. #. type: item
  15856. #: guix-git/doc/guix.texi:10165
  15857. #, no-wrap
  15858. msgid "guile"
  15859. msgstr ""
  15860. #. type: table
  15861. #: guix-git/doc/guix.texi:10167
  15862. msgid "This is default, and it spawns a standard full-featured Guile REPL."
  15863. msgstr ""
  15864. #. type: item
  15865. #: guix-git/doc/guix.texi:10167
  15866. #, no-wrap
  15867. msgid "machine"
  15868. msgstr ""
  15869. #. type: table
  15870. #: guix-git/doc/guix.texi:10170
  15871. msgid "Spawn a REPL that uses the machine-readable protocol. This is the protocol that the @code{(guix inferior)} module speaks."
  15872. msgstr ""
  15873. #. type: table
  15874. #: guix-git/doc/guix.texi:10176
  15875. msgid "By default, @command{guix repl} reads from standard input and writes to standard output. When this option is passed, it will instead listen for connections on @var{endpoint}. Here are examples of valid options:"
  15876. msgstr ""
  15877. #. type: item
  15878. #: guix-git/doc/guix.texi:10178
  15879. #, no-wrap
  15880. msgid "--listen=tcp:37146"
  15881. msgstr ""
  15882. #. type: table
  15883. #: guix-git/doc/guix.texi:10180
  15884. msgid "Accept connections on localhost on port 37146."
  15885. msgstr ""
  15886. #. type: item
  15887. #: guix-git/doc/guix.texi:10181
  15888. #, no-wrap
  15889. msgid "--listen=unix:/tmp/socket"
  15890. msgstr ""
  15891. #. type: table
  15892. #: guix-git/doc/guix.texi:10183
  15893. msgid "Accept connections on the Unix-domain socket @file{/tmp/socket}."
  15894. msgstr ""
  15895. #. type: item
  15896. #: guix-git/doc/guix.texi:10185 guix-git/doc/guix.texi:10289
  15897. #: guix-git/doc/guix.texi:12064 guix-git/doc/guix.texi:12244
  15898. #: guix-git/doc/guix.texi:12389 guix-git/doc/guix.texi:12643
  15899. #, no-wrap
  15900. msgid "--load-path=@var{directory}"
  15901. msgstr ""
  15902. #. type: itemx
  15903. #: guix-git/doc/guix.texi:10186 guix-git/doc/guix.texi:10290
  15904. #: guix-git/doc/guix.texi:12245 guix-git/doc/guix.texi:12390
  15905. #: guix-git/doc/guix.texi:12644
  15906. #, no-wrap
  15907. msgid "-L @var{directory}"
  15908. msgstr ""
  15909. #. type: table
  15910. #: guix-git/doc/guix.texi:10189 guix-git/doc/guix.texi:10293
  15911. #: guix-git/doc/guix.texi:12067 guix-git/doc/guix.texi:12248
  15912. #: guix-git/doc/guix.texi:12393 guix-git/doc/guix.texi:12647
  15913. msgid "Add @var{directory} to the front of the package module search path (@pxref{Package Modules})."
  15914. msgstr ""
  15915. #. type: table
  15916. #: guix-git/doc/guix.texi:10192
  15917. msgid "This allows users to define their own packages and make them visible to the script or REPL."
  15918. msgstr ""
  15919. #. type: itemx
  15920. #: guix-git/doc/guix.texi:10193 guix-git/doc/guix.texi:10752
  15921. #, no-wrap
  15922. msgid "-q"
  15923. msgstr ""
  15924. #. type: table
  15925. #: guix-git/doc/guix.texi:10196
  15926. msgid "Inhibit loading of the @file{~/.guile} file. By default, that configuration file is loaded when spawning a @code{guile} REPL."
  15927. msgstr ""
  15928. #. type: Plain text
  15929. #: guix-git/doc/guix.texi:10206
  15930. msgid "This section describes Guix command-line utilities. Some of them are primarily targeted at developers and users who write new package definitions, while others are more generally useful. They complement the Scheme programming interface of Guix in a convenient way."
  15931. msgstr ""
  15932. #. type: cindex
  15933. #: guix-git/doc/guix.texi:10228
  15934. #, no-wrap
  15935. msgid "package building"
  15936. msgstr ""
  15937. #. type: command{#1}
  15938. #: guix-git/doc/guix.texi:10229
  15939. #, no-wrap
  15940. msgid "guix build"
  15941. msgstr ""
  15942. #. type: Plain text
  15943. #: guix-git/doc/guix.texi:10235
  15944. msgid "The @command{guix build} command builds packages or derivations and their dependencies, and prints the resulting store paths. Note that it does not modify the user's profile---this is the job of the @command{guix package} command (@pxref{Invoking guix package}). Thus, it is mainly useful for distribution developers."
  15945. msgstr ""
  15946. #. type: example
  15947. #: guix-git/doc/guix.texi:10240
  15948. #, no-wrap
  15949. msgid "guix build @var{options} @var{package-or-derivation}@dots{}\n"
  15950. msgstr ""
  15951. #. type: Plain text
  15952. #: guix-git/doc/guix.texi:10245
  15953. msgid "As an example, the following command builds the latest versions of Emacs and of Guile, displays their build logs, and finally displays the resulting directories:"
  15954. msgstr ""
  15955. #. type: example
  15956. #: guix-git/doc/guix.texi:10248
  15957. #, no-wrap
  15958. msgid "guix build emacs guile\n"
  15959. msgstr ""
  15960. #. type: Plain text
  15961. #: guix-git/doc/guix.texi:10251
  15962. msgid "Similarly, the following command builds all the available packages:"
  15963. msgstr ""
  15964. #. type: example
  15965. #: guix-git/doc/guix.texi:10255
  15966. #, no-wrap
  15967. msgid ""
  15968. "guix build --quiet --keep-going \\\n"
  15969. " $(guix package -A | awk '@{ print $1 \"@@\" $2 @}')\n"
  15970. msgstr ""
  15971. #. type: Plain text
  15972. #: guix-git/doc/guix.texi:10263
  15973. msgid "@var{package-or-derivation} may be either the name of a package found in the software distribution such as @code{coreutils} or @code{coreutils@@8.20}, or a derivation such as @file{/gnu/store/@dots{}-coreutils-8.19.drv}. In the former case, a package with the corresponding name (and optionally version) is searched for among the GNU distribution modules (@pxref{Package Modules})."
  15974. msgstr ""
  15975. #. type: Plain text
  15976. #: guix-git/doc/guix.texi:10268
  15977. msgid "Alternatively, the @option{--expression} option may be used to specify a Scheme expression that evaluates to a package; this is useful when disambiguating among several same-named packages or package variants is needed."
  15978. msgstr ""
  15979. #. type: Plain text
  15980. #: guix-git/doc/guix.texi:10271
  15981. msgid "There may be zero or more @var{options}. The available options are described in the subsections below."
  15982. msgstr ""
  15983. #. type: Plain text
  15984. #: guix-git/doc/guix.texi:10286
  15985. msgid "A number of options that control the build process are common to @command{guix build} and other commands that can spawn builds, such as @command{guix package} or @command{guix archive}. These are the following:"
  15986. msgstr ""
  15987. #. type: table
  15988. #: guix-git/doc/guix.texi:10296 guix-git/doc/guix.texi:12070
  15989. #: guix-git/doc/guix.texi:12251 guix-git/doc/guix.texi:12396
  15990. #: guix-git/doc/guix.texi:12650
  15991. msgid "This allows users to define their own packages and make them visible to the command-line tools."
  15992. msgstr ""
  15993. #. type: item
  15994. #: guix-git/doc/guix.texi:10297
  15995. #, no-wrap
  15996. msgid "--keep-failed"
  15997. msgstr ""
  15998. #. type: itemx
  15999. #: guix-git/doc/guix.texi:10298
  16000. #, no-wrap
  16001. msgid "-K"
  16002. msgstr ""
  16003. #. type: table
  16004. #: guix-git/doc/guix.texi:10304
  16005. msgid "Keep the build tree of failed builds. Thus, if a build fails, its build tree is kept under @file{/tmp}, in a directory whose name is shown at the end of the build log. This is useful when debugging build issues. @xref{Debugging Build Failures}, for tips and tricks on how to debug build issues."
  16006. msgstr ""
  16007. #. type: table
  16008. #: guix-git/doc/guix.texi:10308
  16009. msgid "This option implies @option{--no-offload}, and it has no effect when connecting to a remote daemon with a @code{guix://} URI (@pxref{The Store, the @env{GUIX_DAEMON_SOCKET} variable})."
  16010. msgstr ""
  16011. #. type: item
  16012. #: guix-git/doc/guix.texi:10309
  16013. #, no-wrap
  16014. msgid "--keep-going"
  16015. msgstr ""
  16016. #. type: itemx
  16017. #: guix-git/doc/guix.texi:10310
  16018. #, no-wrap
  16019. msgid "-k"
  16020. msgstr ""
  16021. #. type: table
  16022. #: guix-git/doc/guix.texi:10313
  16023. msgid "Keep going when some of the derivations fail to build; return only once all the builds have either completed or failed."
  16024. msgstr ""
  16025. #. type: table
  16026. #: guix-git/doc/guix.texi:10316
  16027. msgid "The default behavior is to stop as soon as one of the specified derivations has failed."
  16028. msgstr ""
  16029. #. type: table
  16030. #: guix-git/doc/guix.texi:10320
  16031. msgid "Do not build the derivations."
  16032. msgstr ""
  16033. #. type: anchor{#1}
  16034. #: guix-git/doc/guix.texi:10322
  16035. msgid "fallback-option"
  16036. msgstr ""
  16037. #. type: item
  16038. #: guix-git/doc/guix.texi:10322
  16039. #, no-wrap
  16040. msgid "--fallback"
  16041. msgstr ""
  16042. #. type: table
  16043. #: guix-git/doc/guix.texi:10325
  16044. msgid "When substituting a pre-built binary fails, fall back to building packages locally (@pxref{Substitution Failure})."
  16045. msgstr ""
  16046. #. type: anchor{#1}
  16047. #: guix-git/doc/guix.texi:10331
  16048. msgid "client-substitute-urls"
  16049. msgstr ""
  16050. #. type: table
  16051. #: guix-git/doc/guix.texi:10331
  16052. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs, overriding the default list of URLs of @command{guix-daemon} (@pxref{daemon-substitute-urls,, @command{guix-daemon} URLs})."
  16053. msgstr ""
  16054. #. type: table
  16055. #: guix-git/doc/guix.texi:10335
  16056. msgid "This means that substitutes may be downloaded from @var{urls}, provided they are signed by a key authorized by the system administrator (@pxref{Substitutes})."
  16057. msgstr ""
  16058. #. type: table
  16059. #: guix-git/doc/guix.texi:10338
  16060. msgid "When @var{urls} is the empty string, substitutes are effectively disabled."
  16061. msgstr ""
  16062. #. type: item
  16063. #: guix-git/doc/guix.texi:10344
  16064. #, no-wrap
  16065. msgid "--no-grafts"
  16066. msgstr ""
  16067. #. type: table
  16068. #: guix-git/doc/guix.texi:10348
  16069. msgid "Do not ``graft'' packages. In practice, this means that package updates available as grafts are not applied. @xref{Security Updates}, for more information on grafts."
  16070. msgstr ""
  16071. #. type: item
  16072. #: guix-git/doc/guix.texi:10349
  16073. #, no-wrap
  16074. msgid "--rounds=@var{n}"
  16075. msgstr ""
  16076. #. type: table
  16077. #: guix-git/doc/guix.texi:10352
  16078. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical."
  16079. msgstr ""
  16080. #. type: table
  16081. #: guix-git/doc/guix.texi:10357
  16082. msgid "This is a useful way to detect non-deterministic builds processes. Non-deterministic build processes are a problem because they make it practically impossible for users to @emph{verify} whether third-party binaries are genuine. @xref{Invoking guix challenge}, for more."
  16083. msgstr ""
  16084. #. type: table
  16085. #: guix-git/doc/guix.texi:10373
  16086. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--max-silent-time}})."
  16087. msgstr ""
  16088. #. type: table
  16089. #: guix-git/doc/guix.texi:10380
  16090. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--timeout}})."
  16091. msgstr ""
  16092. #. type: cindex
  16093. #: guix-git/doc/guix.texi:10383
  16094. #, no-wrap
  16095. msgid "verbosity, of the command-line tools"
  16096. msgstr ""
  16097. #. type: cindex
  16098. #: guix-git/doc/guix.texi:10384
  16099. #, no-wrap
  16100. msgid "build logs, verbosity"
  16101. msgstr ""
  16102. #. type: item
  16103. #: guix-git/doc/guix.texi:10385
  16104. #, no-wrap
  16105. msgid "-v @var{level}"
  16106. msgstr ""
  16107. #. type: itemx
  16108. #: guix-git/doc/guix.texi:10386
  16109. #, no-wrap
  16110. msgid "--verbosity=@var{level}"
  16111. msgstr ""
  16112. #. type: table
  16113. #: guix-git/doc/guix.texi:10391
  16114. msgid "Use the given verbosity @var{level}, an integer. Choosing 0 means that no output is produced, 1 is for quiet output; 2 is similar to 1 but it additionally displays download URLs; 3 shows all the build log output on standard error."
  16115. msgstr ""
  16116. #. type: table
  16117. #: guix-git/doc/guix.texi:10396
  16118. msgid "Allow the use of up to @var{n} CPU cores for the build. The special value @code{0} means to use as many CPU cores as available."
  16119. msgstr ""
  16120. #. type: table
  16121. #: guix-git/doc/guix.texi:10402
  16122. msgid "Allow at most @var{n} build jobs in parallel. @xref{Invoking guix-daemon, @option{--max-jobs}}, for details about this option and the equivalent @command{guix-daemon} option."
  16123. msgstr ""
  16124. #. type: item
  16125. #: guix-git/doc/guix.texi:10403
  16126. #, no-wrap
  16127. msgid "--debug=@var{level}"
  16128. msgstr ""
  16129. #. type: table
  16130. #: guix-git/doc/guix.texi:10407
  16131. msgid "Produce debugging output coming from the build daemon. @var{level} must be an integer between 0 and 5; higher means more verbose output. Setting a level of 4 or more may be helpful when debugging setup issues with the build daemon."
  16132. msgstr ""
  16133. #. type: Plain text
  16134. #: guix-git/doc/guix.texi:10414
  16135. msgid "Behind the scenes, @command{guix build} is essentially an interface to the @code{package-derivation} procedure of the @code{(guix packages)} module, and to the @code{build-derivations} procedure of the @code{(guix derivations)} module."
  16136. msgstr ""
  16137. #. type: Plain text
  16138. #: guix-git/doc/guix.texi:10418
  16139. msgid "In addition to options explicitly passed on the command line, @command{guix build} and other @command{guix} commands that support building honor the @env{GUIX_BUILD_OPTIONS} environment variable."
  16140. msgstr ""
  16141. #. type: defvr
  16142. #: guix-git/doc/guix.texi:10419
  16143. #, no-wrap
  16144. msgid "{Environment Variable} GUIX_BUILD_OPTIONS"
  16145. msgstr ""
  16146. #. type: defvr
  16147. #: guix-git/doc/guix.texi:10424
  16148. msgid "Users can define this variable to a list of command line options that will automatically be used by @command{guix build} and other @command{guix} commands that can perform builds, as in the example below:"
  16149. msgstr ""
  16150. #. type: example
  16151. #: guix-git/doc/guix.texi:10427
  16152. #, no-wrap
  16153. msgid "$ export GUIX_BUILD_OPTIONS=\"--no-substitutes -c 2 -L /foo/bar\"\n"
  16154. msgstr ""
  16155. #. type: defvr
  16156. #: guix-git/doc/guix.texi:10431
  16157. msgid "These options are parsed independently, and the result is appended to the parsed command-line options."
  16158. msgstr ""
  16159. #. type: cindex
  16160. #: guix-git/doc/guix.texi:10437
  16161. #, no-wrap
  16162. msgid "package variants"
  16163. msgstr ""
  16164. #. type: Plain text
  16165. #: guix-git/doc/guix.texi:10445
  16166. msgid "Another set of command-line options supported by @command{guix build} and also @command{guix package} are @dfn{package transformation options}. These are options that make it possible to define @dfn{package variants}---for instance, packages built from different source code. This is a convenient way to create customized packages on the fly without having to type in the definitions of package variants (@pxref{Defining Packages})."
  16167. msgstr ""
  16168. #. type: Plain text
  16169. #: guix-git/doc/guix.texi:10449
  16170. msgid "Package transformation options are preserved across upgrades: @command{guix upgrade} attempts to apply transformation options initially used when creating the profile to the upgraded packages."
  16171. msgstr ""
  16172. #. type: Plain text
  16173. #: guix-git/doc/guix.texi:10454
  16174. msgid "The available options are listed below. Most commands support them and also support a @option{--help-transform} option that lists all the available options and a synopsis (these options are not shown in the @option{--help} output for brevity)."
  16175. msgstr ""
  16176. #. type: item
  16177. #: guix-git/doc/guix.texi:10457
  16178. #, no-wrap
  16179. msgid "--with-source=@var{source}"
  16180. msgstr ""
  16181. #. type: itemx
  16182. #: guix-git/doc/guix.texi:10458
  16183. #, no-wrap
  16184. msgid "--with-source=@var{package}=@var{source}"
  16185. msgstr ""
  16186. #. type: itemx
  16187. #: guix-git/doc/guix.texi:10459
  16188. #, no-wrap
  16189. msgid "--with-source=@var{package}@@@var{version}=@var{source}"
  16190. msgstr ""
  16191. #. type: table
  16192. #: guix-git/doc/guix.texi:10464
  16193. msgid "Use @var{source} as the source of @var{package}, and @var{version} as its version number. @var{source} must be a file name or a URL, as for @command{guix download} (@pxref{Invoking guix download})."
  16194. msgstr ""
  16195. #. type: table
  16196. #: guix-git/doc/guix.texi:10470
  16197. msgid "When @var{package} is omitted, it is taken to be the package name specified on the command line that matches the base of @var{source}---e.g., if @var{source} is @code{/src/guile-2.0.10.tar.gz}, the corresponding package is @code{guile}."
  16198. msgstr ""
  16199. #. type: table
  16200. #: guix-git/doc/guix.texi:10473
  16201. msgid "Likewise, when @var{version} is omitted, the version string is inferred from @var{source}; in the previous example, it is @code{2.0.10}."
  16202. msgstr ""
  16203. #. type: table
  16204. #: guix-git/doc/guix.texi:10478
  16205. msgid "This option allows users to try out versions of packages other than the one provided by the distribution. The example below downloads @file{ed-1.7.tar.gz} from a GNU mirror and uses that as the source for the @code{ed} package:"
  16206. msgstr ""
  16207. #. type: example
  16208. #: guix-git/doc/guix.texi:10481
  16209. #, no-wrap
  16210. msgid "guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz\n"
  16211. msgstr ""
  16212. #. type: table
  16213. #: guix-git/doc/guix.texi:10485
  16214. msgid "As a developer, @option{--with-source} makes it easy to test release candidates:"
  16215. msgstr ""
  16216. #. type: example
  16217. #: guix-git/doc/guix.texi:10488
  16218. #, no-wrap
  16219. msgid "guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz\n"
  16220. msgstr ""
  16221. #. type: table
  16222. #: guix-git/doc/guix.texi:10491
  16223. msgid "@dots{} or to build from a checkout in a pristine environment:"
  16224. msgstr ""
  16225. #. type: example
  16226. #: guix-git/doc/guix.texi:10495
  16227. #, no-wrap
  16228. msgid ""
  16229. "$ git clone git://git.sv.gnu.org/guix.git\n"
  16230. "$ guix build guix --with-source=guix@@1.0=./guix\n"
  16231. msgstr ""
  16232. #. type: item
  16233. #: guix-git/doc/guix.texi:10497
  16234. #, no-wrap
  16235. msgid "--with-input=@var{package}=@var{replacement}"
  16236. msgstr ""
  16237. #. type: table
  16238. #: guix-git/doc/guix.texi:10502
  16239. msgid "Replace dependency on @var{package} by a dependency on @var{replacement}. @var{package} must be a package name, and @var{replacement} must be a package specification such as @code{guile} or @code{guile@@1.8}."
  16240. msgstr ""
  16241. #. type: table
  16242. #: guix-git/doc/guix.texi:10506
  16243. msgid "For instance, the following command builds Guix, but replaces its dependency on the current stable version of Guile with a dependency on the legacy version of Guile, @code{guile@@2.0}:"
  16244. msgstr ""
  16245. #. type: example
  16246. #: guix-git/doc/guix.texi:10509
  16247. #, no-wrap
  16248. msgid "guix build --with-input=guile=guile@@2.0 guix\n"
  16249. msgstr ""
  16250. #. type: table
  16251. #: guix-git/doc/guix.texi:10514
  16252. msgid "This is a recursive, deep replacement. So in this example, both @code{guix} and its dependency @code{guile-json} (which also depends on @code{guile}) get rebuilt against @code{guile@@2.0}."
  16253. msgstr ""
  16254. #. type: table
  16255. #: guix-git/doc/guix.texi:10517
  16256. msgid "This is implemented using the @code{package-input-rewriting} Scheme procedure (@pxref{Defining Packages, @code{package-input-rewriting}})."
  16257. msgstr ""
  16258. #. type: item
  16259. #: guix-git/doc/guix.texi:10518
  16260. #, no-wrap
  16261. msgid "--with-graft=@var{package}=@var{replacement}"
  16262. msgstr ""
  16263. #. type: table
  16264. #: guix-git/doc/guix.texi:10524
  16265. msgid "This is similar to @option{--with-input} but with an important difference: instead of rebuilding the whole dependency chain, @var{replacement} is built and then @dfn{grafted} onto the binaries that were initially referring to @var{package}. @xref{Security Updates}, for more information on grafts."
  16266. msgstr ""
  16267. #. type: table
  16268. #: guix-git/doc/guix.texi:10528
  16269. msgid "For example, the command below grafts version 3.5.4 of GnuTLS onto Wget and all its dependencies, replacing references to the version of GnuTLS they currently refer to:"
  16270. msgstr ""
  16271. #. type: example
  16272. #: guix-git/doc/guix.texi:10531
  16273. #, no-wrap
  16274. msgid "guix build --with-graft=gnutls=gnutls@@3.5.4 wget\n"
  16275. msgstr ""
  16276. #. type: table
  16277. #: guix-git/doc/guix.texi:10540
  16278. msgid "This has the advantage of being much faster than rebuilding everything. But there is a caveat: it works if and only if @var{package} and @var{replacement} are strictly compatible---for example, if they provide a library, the application binary interface (ABI) of those libraries must be compatible. If @var{replacement} is somehow incompatible with @var{package}, then the resulting package may be unusable. Use with care!"
  16279. msgstr ""
  16280. #. type: cindex
  16281. #: guix-git/doc/guix.texi:10541 guix-git/doc/guix.texi:35239
  16282. #, no-wrap
  16283. msgid "debugging info, rebuilding"
  16284. msgstr ""
  16285. #. type: item
  16286. #: guix-git/doc/guix.texi:10542
  16287. #, no-wrap
  16288. msgid "--with-debug-info=@var{package}"
  16289. msgstr ""
  16290. #. type: table
  16291. #: guix-git/doc/guix.texi:10547
  16292. msgid "Build @var{package} in a way that preserves its debugging info and graft it onto packages that depend on it. This is useful if @var{package} does not already provide debugging info as a @code{debug} output (@pxref{Installing Debugging Files})."
  16293. msgstr ""
  16294. #. type: table
  16295. #: guix-git/doc/guix.texi:10553
  16296. msgid "For example, suppose you're experiencing a crash in Inkscape and would like to see what's up in GLib, a library deep down in Inkscape's dependency graph. GLib lacks a @code{debug} output, so debugging is tough. Fortunately, you rebuild GLib with debugging info and tack it on Inkscape:"
  16297. msgstr ""
  16298. #. type: example
  16299. #: guix-git/doc/guix.texi:10556 guix-git/doc/guix.texi:35270
  16300. #, no-wrap
  16301. msgid "guix install inkscape --with-debug-info=glib\n"
  16302. msgstr ""
  16303. #. type: table
  16304. #: guix-git/doc/guix.texi:10560
  16305. msgid "Only GLib needs to be recompiled so this takes a reasonable amount of time. @xref{Installing Debugging Files}, for more info."
  16306. msgstr ""
  16307. #. type: quotation
  16308. #: guix-git/doc/guix.texi:10566
  16309. msgid "Under the hood, this option works by passing the @samp{#:strip-binaries? #f} to the build system of the package of interest (@pxref{Build Systems}). Most build systems support that option but some do not. In that case, an error is raised."
  16310. msgstr ""
  16311. #. type: quotation
  16312. #: guix-git/doc/guix.texi:10570
  16313. msgid "Likewise, if a C/C++ package is built without @code{-g} (which is rarely the case), debugging info will remain unavailable even when @code{#:strip-binaries?} is false."
  16314. msgstr ""
  16315. #. type: cindex
  16316. #: guix-git/doc/guix.texi:10572
  16317. #, no-wrap
  16318. msgid "tool chain, changing the build tool chain of a package"
  16319. msgstr ""
  16320. #. type: item
  16321. #: guix-git/doc/guix.texi:10573
  16322. #, no-wrap
  16323. msgid "--with-c-toolchain=@var{package}=@var{toolchain}"
  16324. msgstr ""
  16325. #. type: table
  16326. #: guix-git/doc/guix.texi:10577
  16327. msgid "This option changes the compilation of @var{package} and everything that depends on it so that they get built with @var{toolchain} instead of the default GNU tool chain for C/C++."
  16328. msgstr ""
  16329. #. type: example
  16330. #: guix-git/doc/guix.texi:10584
  16331. #, no-wrap
  16332. msgid ""
  16333. "guix build octave-cli \\\n"
  16334. " --with-c-toolchain=fftw=gcc-toolchain@@10 \\\n"
  16335. " --with-c-toolchain=fftwf=gcc-toolchain@@10\n"
  16336. msgstr ""
  16337. #. type: table
  16338. #: guix-git/doc/guix.texi:10591
  16339. msgid "The command above builds a variant of the @code{fftw} and @code{fftwf} packages using version 10 of @code{gcc-toolchain} instead of the default tool chain, and then builds a variant of the GNU@tie{}Octave command-line interface using them. GNU@tie{}Octave itself is also built with @code{gcc-toolchain@@10}."
  16340. msgstr ""
  16341. #. type: table
  16342. #: guix-git/doc/guix.texi:10595
  16343. msgid "This other example builds the Hardware Locality (@code{hwloc}) library and its dependents up to @code{intel-mpi-benchmarks} with the Clang C compiler:"
  16344. msgstr ""
  16345. #. type: example
  16346. #: guix-git/doc/guix.texi:10599
  16347. #, no-wrap
  16348. msgid ""
  16349. "guix build --with-c-toolchain=hwloc=clang-toolchain \\\n"
  16350. " intel-mpi-benchmarks\n"
  16351. msgstr ""
  16352. #. type: quotation
  16353. #: guix-git/doc/guix.texi:10608
  16354. msgid "There can be application binary interface (ABI) incompatibilities among tool chains. This is particularly true of the C++ standard library and run-time support libraries such as that of OpenMP@. By rebuilding all dependents with the same tool chain, @option{--with-c-toolchain} minimizes the risks of incompatibility but cannot entirely eliminate them. Choose @var{package} wisely."
  16355. msgstr ""
  16356. #. type: item
  16357. #: guix-git/doc/guix.texi:10610
  16358. #, no-wrap
  16359. msgid "--with-git-url=@var{package}=@var{url}"
  16360. msgstr ""
  16361. #. type: cindex
  16362. #: guix-git/doc/guix.texi:10611
  16363. #, no-wrap
  16364. msgid "Git, using the latest commit"
  16365. msgstr ""
  16366. #. type: cindex
  16367. #: guix-git/doc/guix.texi:10612
  16368. #, no-wrap
  16369. msgid "latest commit, building"
  16370. msgstr ""
  16371. #. type: table
  16372. #: guix-git/doc/guix.texi:10616
  16373. msgid "Build @var{package} from the latest commit of the @code{master} branch of the Git repository at @var{url}. Git sub-modules of the repository are fetched, recursively."
  16374. msgstr ""
  16375. #. type: table
  16376. #: guix-git/doc/guix.texi:10619
  16377. msgid "For example, the following command builds the NumPy Python library against the latest commit of the master branch of Python itself:"
  16378. msgstr ""
  16379. #. type: example
  16380. #: guix-git/doc/guix.texi:10623
  16381. #, no-wrap
  16382. msgid ""
  16383. "guix build python-numpy \\\n"
  16384. " --with-git-url=python=https://github.com/python/cpython\n"
  16385. msgstr ""
  16386. #. type: table
  16387. #: guix-git/doc/guix.texi:10627
  16388. msgid "This option can also be combined with @option{--with-branch} or @option{--with-commit} (see below)."
  16389. msgstr ""
  16390. #. type: cindex
  16391. #: guix-git/doc/guix.texi:10628 guix-git/doc/guix.texi:27790
  16392. #, no-wrap
  16393. msgid "continuous integration"
  16394. msgstr ""
  16395. #. type: table
  16396. #: guix-git/doc/guix.texi:10634
  16397. msgid "Obviously, since it uses the latest commit of the given branch, the result of such a command varies over time. Nevertheless it is a convenient way to rebuild entire software stacks against the latest commit of one or more packages. This is particularly useful in the context of continuous integration (CI)."
  16398. msgstr ""
  16399. #. type: table
  16400. #: guix-git/doc/guix.texi:10638
  16401. msgid "Checkouts are kept in a cache under @file{~/.cache/guix/checkouts} to speed up consecutive accesses to the same repository. You may want to clean it up once in a while to save disk space."
  16402. msgstr ""
  16403. #. type: item
  16404. #: guix-git/doc/guix.texi:10639
  16405. #, no-wrap
  16406. msgid "--with-branch=@var{package}=@var{branch}"
  16407. msgstr ""
  16408. #. type: table
  16409. #: guix-git/doc/guix.texi:10645
  16410. msgid "Build @var{package} from the latest commit of @var{branch}. If the @code{source} field of @var{package} is an origin with the @code{git-fetch} method (@pxref{origin Reference}) or a @code{git-checkout} object, the repository URL is taken from that @code{source}. Otherwise you have to use @option{--with-git-url} to specify the URL of the Git repository."
  16411. msgstr ""
  16412. #. type: table
  16413. #: guix-git/doc/guix.texi:10650
  16414. msgid "For instance, the following command builds @code{guile-sqlite3} from the latest commit of its @code{master} branch, and then builds @code{guix} (which depends on it) and @code{cuirass} (which depends on @code{guix}) against this specific @code{guile-sqlite3} build:"
  16415. msgstr ""
  16416. #. type: example
  16417. #: guix-git/doc/guix.texi:10653
  16418. #, no-wrap
  16419. msgid "guix build --with-branch=guile-sqlite3=master cuirass\n"
  16420. msgstr ""
  16421. #. type: item
  16422. #: guix-git/doc/guix.texi:10655
  16423. #, no-wrap
  16424. msgid "--with-commit=@var{package}=@var{commit}"
  16425. msgstr ""
  16426. #. type: table
  16427. #: guix-git/doc/guix.texi:10659
  16428. msgid "This is similar to @option{--with-branch}, except that it builds from @var{commit} rather than the tip of a branch. @var{commit} must be a valid Git commit SHA1 identifier or a tag."
  16429. msgstr ""
  16430. #. type: item
  16431. #: guix-git/doc/guix.texi:10660
  16432. #, no-wrap
  16433. msgid "--with-patch=@var{package}=@var{file}"
  16434. msgstr ""
  16435. #. type: table
  16436. #: guix-git/doc/guix.texi:10667
  16437. msgid "Add @var{file} to the list of patches applied to @var{package}, where @var{package} is a spec such as @code{python@@3.8} or @code{glibc}. @var{file} must contain a patch; it is applied with the flags specified in the @code{origin} of @var{package} (@pxref{origin Reference}), which by default includes @code{-p1} (@pxref{patch Directories,,, diffutils, Comparing and Merging Files})."
  16438. msgstr ""
  16439. #. type: table
  16440. #: guix-git/doc/guix.texi:10670
  16441. msgid "As an example, the command below rebuilds Coreutils with the GNU C Library (glibc) patched with the given patch:"
  16442. msgstr ""
  16443. #. type: example
  16444. #: guix-git/doc/guix.texi:10673
  16445. #, no-wrap
  16446. msgid "guix build coreutils --with-patch=glibc=./glibc-frob.patch\n"
  16447. msgstr ""
  16448. #. type: table
  16449. #: guix-git/doc/guix.texi:10677
  16450. msgid "In this example, glibc itself as well as everything that leads to Coreutils in the dependency graph is rebuilt."
  16451. msgstr ""
  16452. #. type: cindex
  16453. #: guix-git/doc/guix.texi:10678
  16454. #, fuzzy, no-wrap
  16455. msgid "upstream, latest version"
  16456. msgstr "软件包版本"
  16457. #. type: item
  16458. #: guix-git/doc/guix.texi:10679
  16459. #, fuzzy, no-wrap
  16460. msgid "--with-latest=@var{package}"
  16461. msgstr "--log-compression=@var{type}"
  16462. #. type: table
  16463. #: guix-git/doc/guix.texi:10684
  16464. msgid "So you like living on the bleeding edge? This option is for you! It replaces occurrences of @var{package} in the dependency graph with its latest upstream version, as reported by @command{guix refresh} (@pxref{Invoking guix refresh})."
  16465. msgstr ""
  16466. #. type: table
  16467. #: guix-git/doc/guix.texi:10688
  16468. msgid "It does so by determining the latest upstream release of @var{package} (if possible), downloading it, and authenticating it @emph{if} it comes with an OpenPGP signature."
  16469. msgstr ""
  16470. #. type: table
  16471. #: guix-git/doc/guix.texi:10691
  16472. msgid "As an example, the command below builds Guix against the latest version of Guile-JSON:"
  16473. msgstr ""
  16474. #. type: example
  16475. #: guix-git/doc/guix.texi:10694
  16476. #, no-wrap
  16477. msgid "guix build guix --with-latest=guile-json\n"
  16478. msgstr ""
  16479. #. type: table
  16480. #: guix-git/doc/guix.texi:10703
  16481. msgid "There are limitations. First, in cases where the tool cannot or does not know how to authenticate source code, you are at risk of running malicious code; a warning is emitted in this case. Second, this option simply changes the source used in the existing package definitions, which is not always sufficient: there might be additional dependencies that need to be added, patches to apply, and more generally the quality assurance work that Guix developers normally do will be missing."
  16482. msgstr ""
  16483. #. type: table
  16484. #: guix-git/doc/guix.texi:10708
  16485. msgid "You've been warned! In all the other cases, it's a snappy way to stay on top. We encourage you to submit patches updating the actual package definitions once you have successfully tested an upgrade (@pxref{Contributing})."
  16486. msgstr ""
  16487. #. type: cindex
  16488. #: guix-git/doc/guix.texi:10709
  16489. #, fuzzy, no-wrap
  16490. msgid "test suite, skipping"
  16491. msgstr "测试套件"
  16492. #. type: item
  16493. #: guix-git/doc/guix.texi:10710
  16494. #, no-wrap
  16495. msgid "--without-tests=@var{package}"
  16496. msgstr ""
  16497. #. type: table
  16498. #: guix-git/doc/guix.texi:10716
  16499. msgid "Build @var{package} without running its tests. This can be useful in situations where you want to skip the lengthy test suite of a intermediate package, or if a package's test suite fails in a non-deterministic fashion. It should be used with care because running the test suite is a good way to ensure a package is working as intended."
  16500. msgstr ""
  16501. #. type: table
  16502. #: guix-git/doc/guix.texi:10720
  16503. msgid "Turning off tests leads to a different store item. Consequently, when using this option, anything that depends on @var{package} must be rebuilt, as in this example:"
  16504. msgstr ""
  16505. #. type: example
  16506. #: guix-git/doc/guix.texi:10723
  16507. #, no-wrap
  16508. msgid "guix install --without-tests=python python-notebook\n"
  16509. msgstr ""
  16510. #. type: table
  16511. #: guix-git/doc/guix.texi:10729
  16512. msgid "The command above installs @code{python-notebook} on top of @code{python} built without running its test suite. To do so, it also rebuilds everything that depends on @code{python}, including @code{python-notebook} itself."
  16513. msgstr ""
  16514. #. type: table
  16515. #: guix-git/doc/guix.texi:10735
  16516. msgid "Internally, @option{--without-tests} relies on changing the @code{#:tests?} option of a package's @code{check} phase (@pxref{Build Systems}). Note that some packages use a customized @code{check} phase that does not respect a @code{#:tests? #f} setting. Therefore, @option{--without-tests} has no effect on these packages."
  16517. msgstr ""
  16518. #. type: Plain text
  16519. #: guix-git/doc/guix.texi:10742
  16520. msgid "Wondering how to achieve the same effect using Scheme code, for example in your manifest, or how to write your own package transformation? @xref{Defining Package Variants}, for an overview of the programming interfaces available."
  16521. msgstr ""
  16522. #. type: Plain text
  16523. #: guix-git/doc/guix.texi:10748
  16524. msgid "The command-line options presented below are specific to @command{guix build}."
  16525. msgstr ""
  16526. #. type: item
  16527. #: guix-git/doc/guix.texi:10751
  16528. #, no-wrap
  16529. msgid "--quiet"
  16530. msgstr ""
  16531. #. type: table
  16532. #: guix-git/doc/guix.texi:10756
  16533. msgid "Build quietly, without displaying the build log; this is equivalent to @option{--verbosity=0}. Upon completion, the build log is kept in @file{/var} (or similar) and can always be retrieved using the @option{--log-file} option."
  16534. msgstr ""
  16535. #. type: item
  16536. #: guix-git/doc/guix.texi:10757
  16537. #, no-wrap
  16538. msgid "--file=@var{file}"
  16539. msgstr ""
  16540. #. type: table
  16541. #: guix-git/doc/guix.texi:10761
  16542. msgid "Build the package, derivation, or other file-like object that the code within @var{file} evaluates to (@pxref{G-Expressions, file-like objects})."
  16543. msgstr ""
  16544. #. type: table
  16545. #: guix-git/doc/guix.texi:10764
  16546. msgid "As an example, @var{file} might contain a package definition like this (@pxref{Defining Packages}):"
  16547. msgstr ""
  16548. #. type: table
  16549. #: guix-git/doc/guix.texi:10773
  16550. msgid "The @var{file} may also contain a JSON representation of one or more package definitions. Running @code{guix build -f} on @file{hello.json} with the following contents would result in building the packages @code{myhello} and @code{greeter}:"
  16551. msgstr ""
  16552. #. type: item
  16553. #: guix-git/doc/guix.texi:10778
  16554. #, fuzzy, no-wrap
  16555. msgid "--manifest=@var{manifest}"
  16556. msgstr "--listen=@var{endpoint}"
  16557. #. type: itemx
  16558. #: guix-git/doc/guix.texi:10779
  16559. #, fuzzy, no-wrap
  16560. msgid "-m @var{manifest}"
  16561. msgstr "-c @var{n}"
  16562. #. type: table
  16563. #: guix-git/doc/guix.texi:10782
  16564. msgid "Build all packages listed in the given @var{manifest} (@pxref{profile-manifest, @option{--manifest}})."
  16565. msgstr ""
  16566. #. type: table
  16567. #: guix-git/doc/guix.texi:10786
  16568. msgid "Build the package or derivation @var{expr} evaluates to."
  16569. msgstr ""
  16570. #. type: table
  16571. #: guix-git/doc/guix.texi:10790
  16572. msgid "For example, @var{expr} may be @code{(@@ (gnu packages guile) guile-1.8)}, which unambiguously designates this specific variant of version 1.8 of Guile."
  16573. msgstr ""
  16574. #. type: table
  16575. #: guix-git/doc/guix.texi:10794
  16576. msgid "Alternatively, @var{expr} may be a G-expression, in which case it is used as a build program passed to @code{gexp->derivation} (@pxref{G-Expressions})."
  16577. msgstr ""
  16578. #. type: table
  16579. #: guix-git/doc/guix.texi:10798
  16580. msgid "Lastly, @var{expr} may refer to a zero-argument monadic procedure (@pxref{The Store Monad}). The procedure must return a derivation as a monadic value, which is then passed through @code{run-with-store}."
  16581. msgstr ""
  16582. #. type: item
  16583. #: guix-git/doc/guix.texi:10799
  16584. #, no-wrap
  16585. msgid "--source"
  16586. msgstr ""
  16587. #. type: itemx
  16588. #: guix-git/doc/guix.texi:10800
  16589. #, no-wrap
  16590. msgid "-S"
  16591. msgstr ""
  16592. #. type: table
  16593. #: guix-git/doc/guix.texi:10803
  16594. msgid "Build the source derivations of the packages, rather than the packages themselves."
  16595. msgstr ""
  16596. #. type: table
  16597. #: guix-git/doc/guix.texi:10807
  16598. msgid "For instance, @code{guix build -S gcc} returns something like @file{/gnu/store/@dots{}-gcc-4.7.2.tar.bz2}, which is the GCC source tarball."
  16599. msgstr ""
  16600. #. type: table
  16601. #: guix-git/doc/guix.texi:10811
  16602. msgid "The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages})."
  16603. msgstr ""
  16604. #. type: cindex
  16605. #: guix-git/doc/guix.texi:10812
  16606. #, no-wrap
  16607. msgid "source, verification"
  16608. msgstr ""
  16609. #. type: table
  16610. #: guix-git/doc/guix.texi:10818
  16611. msgid "As with other derivations, the result of building a source derivation can be verified using the @option{--check} option (@pxref{build-check}). This is useful to validate that a (potentially already built or substituted, thus cached) package source matches against its declared hash."
  16612. msgstr ""
  16613. #. type: table
  16614. #: guix-git/doc/guix.texi:10823
  16615. msgid "Note that @command{guix build -S} compiles the sources only of the specified packages. They do not include the sources of statically linked dependencies and by themselves are insufficient for reproducing the packages."
  16616. msgstr ""
  16617. #. type: item
  16618. #: guix-git/doc/guix.texi:10824
  16619. #, no-wrap
  16620. msgid "--sources"
  16621. msgstr ""
  16622. #. type: table
  16623. #: guix-git/doc/guix.texi:10831
  16624. msgid "Fetch and return the source of @var{package-or-derivation} and all their dependencies, recursively. This is a handy way to obtain a local copy of all the source code needed to build @var{packages}, allowing you to eventually build them even without network access. It is an extension of the @option{--source} option and can accept one of the following optional argument values:"
  16625. msgstr ""
  16626. #. type: item
  16627. #: guix-git/doc/guix.texi:10833 guix-git/doc/guix.texi:12450
  16628. #, no-wrap
  16629. msgid "package"
  16630. msgstr ""
  16631. #. type: table
  16632. #: guix-git/doc/guix.texi:10836
  16633. msgid "This value causes the @option{--sources} option to behave in the same way as the @option{--source} option."
  16634. msgstr ""
  16635. #. type: item
  16636. #: guix-git/doc/guix.texi:10837 guix-git/doc/guix.texi:18532
  16637. #, no-wrap
  16638. msgid "all"
  16639. msgstr ""
  16640. #. type: table
  16641. #: guix-git/doc/guix.texi:10840
  16642. msgid "Build the source derivations of all packages, including any source that might be listed as @code{inputs}. This is the default value."
  16643. msgstr ""
  16644. #. type: example
  16645. #: guix-git/doc/guix.texi:10846
  16646. #, no-wrap
  16647. msgid ""
  16648. "$ guix build --sources tzdata\n"
  16649. "The following derivations will be built:\n"
  16650. " /gnu/store/@dots{}-tzdata2015b.tar.gz.drv\n"
  16651. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  16652. msgstr ""
  16653. #. type: item
  16654. #: guix-git/doc/guix.texi:10848
  16655. #, no-wrap
  16656. msgid "transitive"
  16657. msgstr ""
  16658. #. type: table
  16659. #: guix-git/doc/guix.texi:10852
  16660. msgid "Build the source derivations of all packages, as well of all transitive inputs to the packages. This can be used e.g.@: to prefetch package source for later offline building."
  16661. msgstr ""
  16662. #. type: example
  16663. #: guix-git/doc/guix.texi:10863
  16664. #, no-wrap
  16665. msgid ""
  16666. "$ guix build --sources=transitive tzdata\n"
  16667. "The following derivations will be built:\n"
  16668. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  16669. " /gnu/store/@dots{}-findutils-4.4.2.tar.xz.drv\n"
  16670. " /gnu/store/@dots{}-grep-2.21.tar.xz.drv\n"
  16671. " /gnu/store/@dots{}-coreutils-8.23.tar.xz.drv\n"
  16672. " /gnu/store/@dots{}-make-4.1.tar.xz.drv\n"
  16673. " /gnu/store/@dots{}-bash-4.3.tar.xz.drv\n"
  16674. "@dots{}\n"
  16675. msgstr ""
  16676. #. type: table
  16677. #: guix-git/doc/guix.texi:10873
  16678. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host. The @command{guix build} command allows you to repeat this option several times, in which case it builds for all the specified systems; other commands ignore extraneous @option{-s} options."
  16679. msgstr ""
  16680. #. type: quotation
  16681. #: guix-git/doc/guix.texi:10878
  16682. msgid "The @option{--system} flag is for @emph{native} compilation and must not be confused with cross-compilation. See @option{--target} below for information on cross-compilation."
  16683. msgstr ""
  16684. #. type: table
  16685. #: guix-git/doc/guix.texi:10885
  16686. msgid "An example use of this is on Linux-based systems, which can emulate different personalities. For instance, passing @option{--system=i686-linux} on an @code{x86_64-linux} system or @option{--system=armhf-linux} on an @code{aarch64-linux} system allows you to build packages in a complete 32-bit environment."
  16687. msgstr ""
  16688. #. type: quotation
  16689. #: guix-git/doc/guix.texi:10890
  16690. msgid "Building for an @code{armhf-linux} system is unconditionally enabled on @code{aarch64-linux} machines, although certain aarch64 chipsets do not allow for this functionality, notably the ThunderX."
  16691. msgstr ""
  16692. #. type: table
  16693. #: guix-git/doc/guix.texi:10896
  16694. msgid "Similarly, when transparent emulation with QEMU and @code{binfmt_misc} is enabled (@pxref{Virtualization Services, @code{qemu-binfmt-service-type}}), you can build for any system for which a QEMU @code{binfmt_misc} handler is installed."
  16695. msgstr ""
  16696. #. type: table
  16697. #: guix-git/doc/guix.texi:10900
  16698. msgid "Builds for a system other than that of the machine you are using can also be offloaded to a remote machine of the right architecture. @xref{Daemon Offload Setup}, for more information on offloading."
  16699. msgstr ""
  16700. #. type: table
  16701. #: guix-git/doc/guix.texi:10906
  16702. msgid "Cross-build for @var{triplet}, which must be a valid GNU triplet, such as @code{\"aarch64-linux-gnu\"} (@pxref{Specifying Target Triplets, GNU configuration triplets,, autoconf, Autoconf})."
  16703. msgstr ""
  16704. #. type: anchor{#1}
  16705. #: guix-git/doc/guix.texi:10908
  16706. msgid "build-check"
  16707. msgstr ""
  16708. #. type: item
  16709. #: guix-git/doc/guix.texi:10908
  16710. #, no-wrap
  16711. msgid "--check"
  16712. msgstr ""
  16713. #. type: cindex
  16714. #: guix-git/doc/guix.texi:10909
  16715. #, no-wrap
  16716. msgid "determinism, checking"
  16717. msgstr ""
  16718. #. type: cindex
  16719. #: guix-git/doc/guix.texi:10910
  16720. #, no-wrap
  16721. msgid "reproducibility, checking"
  16722. msgstr ""
  16723. #. type: table
  16724. #: guix-git/doc/guix.texi:10914
  16725. msgid "Rebuild @var{package-or-derivation}, which are already available in the store, and raise an error if the build results are not bit-for-bit identical."
  16726. msgstr ""
  16727. #. type: table
  16728. #: guix-git/doc/guix.texi:10919
  16729. msgid "This mechanism allows you to check whether previously installed substitutes are genuine (@pxref{Substitutes}), or whether the build result of a package is deterministic. @xref{Invoking guix challenge}, for more background information and tools."
  16730. msgstr ""
  16731. #. type: item
  16732. #: guix-git/doc/guix.texi:10924
  16733. #, no-wrap
  16734. msgid "--repair"
  16735. msgstr ""
  16736. #. type: cindex
  16737. #: guix-git/doc/guix.texi:10925
  16738. #, no-wrap
  16739. msgid "repairing store items"
  16740. msgstr ""
  16741. #. type: table
  16742. #: guix-git/doc/guix.texi:10929
  16743. msgid "Attempt to repair the specified store items, if they are corrupt, by re-downloading or rebuilding them."
  16744. msgstr ""
  16745. #. type: table
  16746. #: guix-git/doc/guix.texi:10931
  16747. msgid "This operation is not atomic and thus restricted to @code{root}."
  16748. msgstr ""
  16749. #. type: item
  16750. #: guix-git/doc/guix.texi:10932
  16751. #, no-wrap
  16752. msgid "--derivations"
  16753. msgstr ""
  16754. #. type: table
  16755. #: guix-git/doc/guix.texi:10936
  16756. msgid "Return the derivation paths, not the output paths, of the given packages."
  16757. msgstr ""
  16758. #. type: cindex
  16759. #: guix-git/doc/guix.texi:10939
  16760. #, no-wrap
  16761. msgid "GC roots, adding"
  16762. msgstr ""
  16763. #. type: cindex
  16764. #: guix-git/doc/guix.texi:10940
  16765. #, no-wrap
  16766. msgid "garbage collector roots, adding"
  16767. msgstr ""
  16768. #. type: table
  16769. #: guix-git/doc/guix.texi:10943 guix-git/doc/guix.texi:33904
  16770. msgid "Make @var{file} a symlink to the result, and register it as a garbage collector root."
  16771. msgstr ""
  16772. #. type: table
  16773. #: guix-git/doc/guix.texi:10949
  16774. msgid "Consequently, the results of this @command{guix build} invocation are protected from garbage collection until @var{file} is removed. When that option is omitted, build results are eligible for garbage collection as soon as the build completes. @xref{Invoking guix gc}, for more on GC roots."
  16775. msgstr ""
  16776. #. type: item
  16777. #: guix-git/doc/guix.texi:10950
  16778. #, no-wrap
  16779. msgid "--log-file"
  16780. msgstr ""
  16781. #. type: cindex
  16782. #: guix-git/doc/guix.texi:10951
  16783. #, no-wrap
  16784. msgid "build logs, access"
  16785. msgstr ""
  16786. #. type: table
  16787. #: guix-git/doc/guix.texi:10955
  16788. msgid "Return the build log file names or URLs for the given @var{package-or-derivation}, or raise an error if build logs are missing."
  16789. msgstr ""
  16790. #. type: table
  16791. #: guix-git/doc/guix.texi:10958
  16792. msgid "This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent:"
  16793. msgstr ""
  16794. #. type: example
  16795. #: guix-git/doc/guix.texi:10964
  16796. #, no-wrap
  16797. msgid ""
  16798. "guix build --log-file $(guix build -d guile)\n"
  16799. "guix build --log-file $(guix build guile)\n"
  16800. "guix build --log-file guile\n"
  16801. "guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'\n"
  16802. msgstr ""
  16803. #. type: table
  16804. #: guix-git/doc/guix.texi:10969
  16805. msgid "If a log is unavailable locally, and unless @option{--no-substitutes} is passed, the command looks for a corresponding log on one of the substitute servers (as specified with @option{--substitute-urls})."
  16806. msgstr ""
  16807. #. type: table
  16808. #: guix-git/doc/guix.texi:10972
  16809. msgid "So for instance, imagine you want to see the build log of GDB on MIPS, but you are actually on an @code{x86_64} machine:"
  16810. msgstr ""
  16811. #. type: example
  16812. #: guix-git/doc/guix.texi:10976
  16813. #, no-wrap
  16814. msgid ""
  16815. "$ guix build --log-file gdb -s aarch64-linux\n"
  16816. "https://@value{SUBSTITUTE-SERVER-1}/log/@dots{}-gdb-7.10\n"
  16817. msgstr ""
  16818. #. type: table
  16819. #: guix-git/doc/guix.texi:10979
  16820. msgid "You can freely access a huge library of build logs!"
  16821. msgstr ""
  16822. #. type: cindex
  16823. #: guix-git/doc/guix.texi:10984
  16824. #, no-wrap
  16825. msgid "build failures, debugging"
  16826. msgstr ""
  16827. #. type: Plain text
  16828. #: guix-git/doc/guix.texi:10990
  16829. msgid "When defining a new package (@pxref{Defining Packages}), you will probably find yourself spending some time debugging and tweaking the build until it succeeds. To do that, you need to operate the build commands yourself in an environment as close as possible to the one the build daemon uses."
  16830. msgstr ""
  16831. #. type: Plain text
  16832. #: guix-git/doc/guix.texi:10995
  16833. msgid "To that end, the first thing to do is to use the @option{--keep-failed} or @option{-K} option of @command{guix build}, which will keep the failed build tree in @file{/tmp} or whatever directory you specified as @env{TMPDIR} (@pxref{Common Build Options, @option{--keep-failed}})."
  16834. msgstr ""
  16835. #. type: Plain text
  16836. #: guix-git/doc/guix.texi:11001
  16837. msgid "From there on, you can @command{cd} to the failed build tree and source the @file{environment-variables} file, which contains all the environment variable definitions that were in place when the build failed. So let's say you're debugging a build failure in package @code{foo}; a typical session would look like this:"
  16838. msgstr ""
  16839. #. type: example
  16840. #: guix-git/doc/guix.texi:11008
  16841. #, no-wrap
  16842. msgid ""
  16843. "$ guix build foo -K\n"
  16844. "@dots{} @i{build fails}\n"
  16845. "$ cd /tmp/guix-build-foo.drv-0\n"
  16846. "$ source ./environment-variables\n"
  16847. "$ cd foo-1.2\n"
  16848. msgstr ""
  16849. #. type: Plain text
  16850. #: guix-git/doc/guix.texi:11012
  16851. msgid "Now, you can invoke commands as if you were the daemon (almost) and troubleshoot your build process."
  16852. msgstr ""
  16853. #. type: Plain text
  16854. #: guix-git/doc/guix.texi:11018
  16855. msgid "Sometimes it happens that, for example, a package's tests pass when you run them manually but they fail when the daemon runs them. This can happen because the daemon runs builds in containers where, unlike in our environment above, network access is missing, @file{/bin/sh} does not exist, etc. (@pxref{Build Environment Setup})."
  16856. msgstr ""
  16857. #. type: Plain text
  16858. #: guix-git/doc/guix.texi:11021
  16859. msgid "In such cases, you may need to run inspect the build process from within a container similar to the one the build daemon creates:"
  16860. msgstr ""
  16861. #. type: example
  16862. #: guix-git/doc/guix.texi:11029
  16863. #, no-wrap
  16864. msgid ""
  16865. "$ guix build -K foo\n"
  16866. "@dots{}\n"
  16867. "$ cd /tmp/guix-build-foo.drv-0\n"
  16868. "$ guix environment --no-grafts -C foo --ad-hoc strace gdb\n"
  16869. "[env]# source ./environment-variables\n"
  16870. "[env]# cd foo-1.2\n"
  16871. msgstr ""
  16872. #. type: Plain text
  16873. #: guix-git/doc/guix.texi:11038
  16874. msgid "Here, @command{guix environment -C} creates a container and spawns a new shell in it (@pxref{Invoking guix environment}). The @command{--ad-hoc strace gdb} part adds the @command{strace} and @command{gdb} commands to the container, which you may find handy while debugging. The @option{--no-grafts} option makes sure we get the exact same environment, with ungrafted packages (@pxref{Security Updates}, for more info on grafts)."
  16875. msgstr ""
  16876. #. type: Plain text
  16877. #: guix-git/doc/guix.texi:11041
  16878. msgid "To get closer to a container like that used by the build daemon, we can remove @file{/bin/sh}:"
  16879. msgstr ""
  16880. #. type: example
  16881. #: guix-git/doc/guix.texi:11044
  16882. #, no-wrap
  16883. msgid "[env]# rm /bin/sh\n"
  16884. msgstr ""
  16885. #. type: Plain text
  16886. #: guix-git/doc/guix.texi:11048
  16887. msgid "(Don't worry, this is harmless: this is all happening in the throw-away container created by @command{guix environment}.)"
  16888. msgstr ""
  16889. #. type: Plain text
  16890. #: guix-git/doc/guix.texi:11051
  16891. msgid "The @command{strace} command is probably not in the search path, but we can run:"
  16892. msgstr ""
  16893. #. type: example
  16894. #: guix-git/doc/guix.texi:11054
  16895. #, no-wrap
  16896. msgid "[env]# $GUIX_ENVIRONMENT/bin/strace -f -o log make check\n"
  16897. msgstr ""
  16898. #. type: Plain text
  16899. #: guix-git/doc/guix.texi:11059
  16900. msgid "In this way, not only you will have reproduced the environment variables the daemon uses, you will also be running the build process in a container similar to the one the daemon uses."
  16901. msgstr ""
  16902. #. type: section
  16903. #: guix-git/doc/guix.texi:11062
  16904. #, no-wrap
  16905. msgid "Invoking @command{guix edit}"
  16906. msgstr ""
  16907. #. type: command{#1}
  16908. #: guix-git/doc/guix.texi:11064
  16909. #, no-wrap
  16910. msgid "guix edit"
  16911. msgstr ""
  16912. #. type: cindex
  16913. #: guix-git/doc/guix.texi:11065
  16914. #, no-wrap
  16915. msgid "package definition, editing"
  16916. msgstr ""
  16917. #. type: Plain text
  16918. #: guix-git/doc/guix.texi:11070
  16919. msgid "So many packages, so many source files! The @command{guix edit} command facilitates the life of users and packagers by pointing their editor at the source file containing the definition of the specified packages. For instance:"
  16920. msgstr ""
  16921. #. type: example
  16922. #: guix-git/doc/guix.texi:11073
  16923. #, no-wrap
  16924. msgid "guix edit gcc@@4.9 vim\n"
  16925. msgstr ""
  16926. #. type: Plain text
  16927. #: guix-git/doc/guix.texi:11079
  16928. msgid "launches the program specified in the @env{VISUAL} or in the @env{EDITOR} environment variable to view the recipe of GCC@tie{}4.9.3 and that of Vim."
  16929. msgstr ""
  16930. #. type: Plain text
  16931. #: guix-git/doc/guix.texi:11085
  16932. msgid "If you are using a Guix Git checkout (@pxref{Building from Git}), or have created your own packages on @env{GUIX_PACKAGE_PATH} (@pxref{Package Modules}), you will be able to edit the package recipes. In other cases, you will be able to examine the read-only recipes for packages currently in the store."
  16933. msgstr ""
  16934. #. type: Plain text
  16935. #: guix-git/doc/guix.texi:11090
  16936. msgid "Instead of @env{GUIX_PACKAGE_PATH}, the command-line option @option{--load-path=@var{directory}} (or in short @option{-L @var{directory}}) allows you to add @var{directory} to the front of the package module search path and so make your own packages visible."
  16937. msgstr ""
  16938. #. type: section
  16939. #: guix-git/doc/guix.texi:11092
  16940. #, no-wrap
  16941. msgid "Invoking @command{guix download}"
  16942. msgstr ""
  16943. #. type: command{#1}
  16944. #: guix-git/doc/guix.texi:11094
  16945. #, no-wrap
  16946. msgid "guix download"
  16947. msgstr ""
  16948. #. type: cindex
  16949. #: guix-git/doc/guix.texi:11095
  16950. #, no-wrap
  16951. msgid "downloading package sources"
  16952. msgstr ""
  16953. #. type: Plain text
  16954. #: guix-git/doc/guix.texi:11102
  16955. msgid "When writing a package definition, developers typically need to download a source tarball, compute its SHA256 hash, and write that hash in the package definition (@pxref{Defining Packages}). The @command{guix download} tool helps with this task: it downloads a file from the given URI, adds it to the store, and prints both its file name in the store and its SHA256 hash."
  16956. msgstr ""
  16957. #. type: Plain text
  16958. #: guix-git/doc/guix.texi:11109
  16959. msgid "The fact that the downloaded file is added to the store saves bandwidth: when the developer eventually tries to build the newly defined package with @command{guix build}, the source tarball will not have to be downloaded again because it is already in the store. It is also a convenient way to temporarily stash files, which may be deleted eventually (@pxref{Invoking guix gc})."
  16960. msgstr ""
  16961. #. type: Plain text
  16962. #: guix-git/doc/guix.texi:11117
  16963. msgid "The @command{guix download} command supports the same URIs as used in package definitions. In particular, it supports @code{mirror://} URIs. @code{https} URIs (HTTP over TLS) are supported @emph{provided} the Guile bindings for GnuTLS are available in the user's environment; when they are not available, an error is raised. @xref{Guile Preparations, how to install the GnuTLS bindings for Guile,, gnutls-guile, GnuTLS-Guile}, for more information."
  16964. msgstr ""
  16965. #. type: Plain text
  16966. #: guix-git/doc/guix.texi:11122
  16967. msgid "@command{guix download} verifies HTTPS server certificates by loading the certificates of X.509 authorities from the directory pointed to by the @env{SSL_CERT_DIR} environment variable (@pxref{X.509 Certificates}), unless @option{--no-check-certificate} is used."
  16968. msgstr ""
  16969. #. type: Plain text
  16970. #: guix-git/doc/guix.texi:11124 guix-git/doc/guix.texi:12749
  16971. msgid "The following options are available:"
  16972. msgstr ""
  16973. #. type: item
  16974. #: guix-git/doc/guix.texi:11126 guix-git/doc/guix.texi:11170
  16975. #, no-wrap
  16976. msgid "--hash=@var{algorithm}"
  16977. msgstr ""
  16978. #. type: itemx
  16979. #: guix-git/doc/guix.texi:11127 guix-git/doc/guix.texi:11171
  16980. #, no-wrap
  16981. msgid "-H @var{algorithm}"
  16982. msgstr ""
  16983. #. type: table
  16984. #: guix-git/doc/guix.texi:11130
  16985. msgid "Compute a hash using the specified @var{algorithm}. @xref{Invoking guix hash}, for more information."
  16986. msgstr ""
  16987. #. type: item
  16988. #: guix-git/doc/guix.texi:11131 guix-git/doc/guix.texi:11180
  16989. #, no-wrap
  16990. msgid "--format=@var{fmt}"
  16991. msgstr ""
  16992. #. type: itemx
  16993. #: guix-git/doc/guix.texi:11132 guix-git/doc/guix.texi:11181
  16994. #, no-wrap
  16995. msgid "-f @var{fmt}"
  16996. msgstr ""
  16997. #. type: table
  16998. #: guix-git/doc/guix.texi:11135
  16999. msgid "Write the hash in the format specified by @var{fmt}. For more information on the valid values for @var{fmt}, @pxref{Invoking guix hash}."
  17000. msgstr ""
  17001. #. type: item
  17002. #: guix-git/doc/guix.texi:11136
  17003. #, no-wrap
  17004. msgid "--no-check-certificate"
  17005. msgstr ""
  17006. #. type: table
  17007. #: guix-git/doc/guix.texi:11138
  17008. msgid "Do not validate the X.509 certificates of HTTPS servers."
  17009. msgstr ""
  17010. #. type: table
  17011. #: guix-git/doc/guix.texi:11142
  17012. msgid "When using this option, you have @emph{absolutely no guarantee} that you are communicating with the authentic server responsible for the given URL, which makes you vulnerable to ``man-in-the-middle'' attacks."
  17013. msgstr ""
  17014. #. type: item
  17015. #: guix-git/doc/guix.texi:11143
  17016. #, no-wrap
  17017. msgid "--output=@var{file}"
  17018. msgstr ""
  17019. #. type: itemx
  17020. #: guix-git/doc/guix.texi:11144
  17021. #, no-wrap
  17022. msgid "-o @var{file}"
  17023. msgstr ""
  17024. #. type: table
  17025. #: guix-git/doc/guix.texi:11147
  17026. msgid "Save the downloaded file to @var{file} instead of adding it to the store."
  17027. msgstr ""
  17028. #. type: section
  17029. #: guix-git/doc/guix.texi:11150
  17030. #, no-wrap
  17031. msgid "Invoking @command{guix hash}"
  17032. msgstr ""
  17033. #. type: command{#1}
  17034. #: guix-git/doc/guix.texi:11152
  17035. #, no-wrap
  17036. msgid "guix hash"
  17037. msgstr ""
  17038. #. type: Plain text
  17039. #: guix-git/doc/guix.texi:11157
  17040. msgid "The @command{guix hash} command computes the hash of a file. It is primarily a convenience tool for anyone contributing to the distribution: it computes the cryptographic hash of a file, which can be used in the definition of a package (@pxref{Defining Packages})."
  17041. msgstr ""
  17042. #. type: example
  17043. #: guix-git/doc/guix.texi:11162
  17044. #, no-wrap
  17045. msgid "guix hash @var{option} @var{file}\n"
  17046. msgstr ""
  17047. #. type: Plain text
  17048. #: guix-git/doc/guix.texi:11167
  17049. msgid "When @var{file} is @code{-} (a hyphen), @command{guix hash} computes the hash of data read from standard input. @command{guix hash} has the following options:"
  17050. msgstr ""
  17051. #. type: table
  17052. #: guix-git/doc/guix.texi:11174
  17053. msgid "Compute a hash using the specified @var{algorithm}, @code{sha256} by default."
  17054. msgstr ""
  17055. #. type: table
  17056. #: guix-git/doc/guix.texi:11179
  17057. msgid "@var{algorithm} must the name of a cryptographic hash algorithm supported by Libgcrypt @i{via} Guile-Gcrypt---e.g., @code{sha512} or @code{sha3-256} (@pxref{Hash Functions,,, guile-gcrypt, Guile-Gcrypt Reference Manual})."
  17058. msgstr ""
  17059. #. type: table
  17060. #: guix-git/doc/guix.texi:11183
  17061. msgid "Write the hash in the format specified by @var{fmt}."
  17062. msgstr ""
  17063. #. type: table
  17064. #: guix-git/doc/guix.texi:11186
  17065. msgid "Supported formats: @code{base64}, @code{nix-base32}, @code{base32}, @code{base16} (@code{hex} and @code{hexadecimal} can be used as well)."
  17066. msgstr ""
  17067. #. type: table
  17068. #: guix-git/doc/guix.texi:11190
  17069. msgid "If the @option{--format} option is not specified, @command{guix hash} will output the hash in @code{nix-base32}. This representation is used in the definitions of packages."
  17070. msgstr ""
  17071. #. type: table
  17072. #: guix-git/doc/guix.texi:11194
  17073. msgid "Compute the hash on @var{file} recursively."
  17074. msgstr ""
  17075. #. type: table
  17076. #: guix-git/doc/guix.texi:11203
  17077. msgid "In this case, the hash is computed on an archive containing @var{file}, including its children if it is a directory. Some of the metadata of @var{file} is part of the archive; for instance, when @var{file} is a regular file, the hash is different depending on whether @var{file} is executable or not. Metadata such as time stamps has no impact on the hash (@pxref{Invoking guix archive})."
  17078. msgstr ""
  17079. #. type: item
  17080. #: guix-git/doc/guix.texi:11204
  17081. #, no-wrap
  17082. msgid "--exclude-vcs"
  17083. msgstr ""
  17084. #. type: itemx
  17085. #: guix-git/doc/guix.texi:11205 guix-git/doc/guix.texi:12236
  17086. #, no-wrap
  17087. msgid "-x"
  17088. msgstr ""
  17089. #. type: table
  17090. #: guix-git/doc/guix.texi:11208
  17091. msgid "When combined with @option{--recursive}, exclude version control system directories (@file{.bzr}, @file{.git}, @file{.hg}, etc.)."
  17092. msgstr ""
  17093. #. type: vindex
  17094. #: guix-git/doc/guix.texi:11209
  17095. #, no-wrap
  17096. msgid "git-fetch"
  17097. msgstr ""
  17098. #. type: table
  17099. #: guix-git/doc/guix.texi:11213
  17100. msgid "As an example, here is how you would compute the hash of a Git checkout, which is useful when using the @code{git-fetch} method (@pxref{origin Reference}):"
  17101. msgstr ""
  17102. #. type: example
  17103. #: guix-git/doc/guix.texi:11218
  17104. #, no-wrap
  17105. msgid ""
  17106. "$ git clone http://example.org/foo.git\n"
  17107. "$ cd foo\n"
  17108. "$ guix hash -rx .\n"
  17109. msgstr ""
  17110. #. type: cindex
  17111. #: guix-git/doc/guix.texi:11222 guix-git/doc/guix.texi:11227
  17112. #, no-wrap
  17113. msgid "Invoking @command{guix import}"
  17114. msgstr ""
  17115. #. type: cindex
  17116. #: guix-git/doc/guix.texi:11224
  17117. #, no-wrap
  17118. msgid "importing packages"
  17119. msgstr ""
  17120. #. type: cindex
  17121. #: guix-git/doc/guix.texi:11225
  17122. #, no-wrap
  17123. msgid "package import"
  17124. msgstr ""
  17125. #. type: cindex
  17126. #: guix-git/doc/guix.texi:11226
  17127. #, no-wrap
  17128. msgid "package conversion"
  17129. msgstr ""
  17130. #. type: Plain text
  17131. #: guix-git/doc/guix.texi:11234
  17132. msgid "The @command{guix import} command is useful for people who would like to add a package to the distribution with as little work as possible---a legitimate demand. The command knows of a few repositories from which it can ``import'' package metadata. The result is a package definition, or a template thereof, in the format we know (@pxref{Defining Packages})."
  17133. msgstr ""
  17134. #. type: example
  17135. #: guix-git/doc/guix.texi:11239
  17136. #, no-wrap
  17137. msgid "guix import @var{importer} @var{options}@dots{}\n"
  17138. msgstr ""
  17139. #. type: Plain text
  17140. #: guix-git/doc/guix.texi:11244
  17141. msgid "@var{importer} specifies the source from which to import package metadata, and @var{options} specifies a package identifier and other options specific to @var{importer}."
  17142. msgstr ""
  17143. #. type: Plain text
  17144. #: guix-git/doc/guix.texi:11248
  17145. msgid "Some of the importers rely on the ability to run the @command{gpgv} command. For these, GnuPG must be installed and in @code{$PATH}; run @code{guix install gnupg} if needed."
  17146. msgstr ""
  17147. #. type: Plain text
  17148. #: guix-git/doc/guix.texi:11250
  17149. msgid "Currently, the available ``importers'' are:"
  17150. msgstr ""
  17151. #. type: item
  17152. #: guix-git/doc/guix.texi:11252 guix-git/doc/guix.texi:11881
  17153. #, no-wrap
  17154. msgid "gnu"
  17155. msgstr ""
  17156. #. type: table
  17157. #: guix-git/doc/guix.texi:11256
  17158. msgid "Import metadata for the given GNU package. This provides a template for the latest version of that GNU package, including the hash of its source tarball, and its canonical synopsis and description."
  17159. msgstr ""
  17160. #. type: table
  17161. #: guix-git/doc/guix.texi:11259
  17162. msgid "Additional information such as the package dependencies and its license needs to be figured out manually."
  17163. msgstr ""
  17164. #. type: table
  17165. #: guix-git/doc/guix.texi:11262
  17166. msgid "For example, the following command returns a package definition for GNU@tie{}Hello:"
  17167. msgstr ""
  17168. #. type: example
  17169. #: guix-git/doc/guix.texi:11265
  17170. #, no-wrap
  17171. msgid "guix import gnu hello\n"
  17172. msgstr ""
  17173. #. type: table
  17174. #: guix-git/doc/guix.texi:11268 guix-git/doc/guix.texi:11510
  17175. #: guix-git/doc/guix.texi:11560 guix-git/doc/guix.texi:11589
  17176. msgid "Specific command-line options are:"
  17177. msgstr ""
  17178. #. type: item
  17179. #: guix-git/doc/guix.texi:11270 guix-git/doc/guix.texi:12044
  17180. #, no-wrap
  17181. msgid "--key-download=@var{policy}"
  17182. msgstr ""
  17183. #. type: table
  17184. #: guix-git/doc/guix.texi:11274
  17185. msgid "As for @command{guix refresh}, specify the policy to handle missing OpenPGP keys when verifying the package signature. @xref{Invoking guix refresh, @option{--key-download}}."
  17186. msgstr ""
  17187. #. type: item
  17188. #: guix-git/doc/guix.texi:11276 guix-git/doc/guix.texi:11277
  17189. #: guix-git/doc/guix.texi:11905
  17190. #, no-wrap
  17191. msgid "pypi"
  17192. msgstr ""
  17193. #. type: table
  17194. #: guix-git/doc/guix.texi:11284
  17195. msgid "Import metadata from the @uref{https://pypi.python.org/, Python Package Index}. Information is taken from the JSON-formatted description available at @code{pypi.python.org} and usually includes all the relevant information, including package dependencies. For maximum efficiency, it is recommended to install the @command{unzip} utility, so that the importer can unzip Python wheels and gather data from them."
  17196. msgstr ""
  17197. #. type: table
  17198. #: guix-git/doc/guix.texi:11287
  17199. msgid "The command below imports metadata for the @code{itsdangerous} Python package:"
  17200. msgstr ""
  17201. #. type: example
  17202. #: guix-git/doc/guix.texi:11290
  17203. #, no-wrap
  17204. msgid "guix import pypi itsdangerous\n"
  17205. msgstr ""
  17206. #. type: table
  17207. #: guix-git/doc/guix.texi:11298 guix-git/doc/guix.texi:11323
  17208. #: guix-git/doc/guix.texi:11355 guix-git/doc/guix.texi:11533
  17209. #: guix-git/doc/guix.texi:11574 guix-git/doc/guix.texi:11621
  17210. #: guix-git/doc/guix.texi:11646 guix-git/doc/guix.texi:11662
  17211. #: guix-git/doc/guix.texi:11710 guix-git/doc/guix.texi:11740
  17212. msgid "Traverse the dependency graph of the given upstream package recursively and generate package expressions for all those packages that are not yet in Guix."
  17213. msgstr ""
  17214. #. type: item
  17215. #: guix-git/doc/guix.texi:11300 guix-git/doc/guix.texi:11301
  17216. #: guix-git/doc/guix.texi:11907
  17217. #, no-wrap
  17218. msgid "gem"
  17219. msgstr ""
  17220. #. type: table
  17221. #: guix-git/doc/guix.texi:11310
  17222. msgid "Import metadata from @uref{https://rubygems.org/, RubyGems}. Information is taken from the JSON-formatted description available at @code{rubygems.org} and includes most relevant information, including runtime dependencies. There are some caveats, however. The metadata doesn't distinguish between synopses and descriptions, so the same string is used for both fields. Additionally, the details of non-Ruby dependencies required to build native extensions is unavailable and left as an exercise to the packager."
  17223. msgstr ""
  17224. #. type: table
  17225. #: guix-git/doc/guix.texi:11312
  17226. msgid "The command below imports metadata for the @code{rails} Ruby package:"
  17227. msgstr ""
  17228. #. type: example
  17229. #: guix-git/doc/guix.texi:11315
  17230. #, no-wrap
  17231. msgid "guix import gem rails\n"
  17232. msgstr ""
  17233. #. type: item
  17234. #: guix-git/doc/guix.texi:11325
  17235. #, no-wrap
  17236. msgid "contentdb"
  17237. msgstr ""
  17238. #. type: cindex
  17239. #: guix-git/doc/guix.texi:11326
  17240. #, no-wrap
  17241. msgid "minetest"
  17242. msgstr ""
  17243. #. type: cindex
  17244. #: guix-git/doc/guix.texi:11327
  17245. #, no-wrap
  17246. msgid "ContentDB"
  17247. msgstr ""
  17248. #. type: table
  17249. #: guix-git/doc/guix.texi:11336
  17250. msgid "Import metadata from @uref{https://content.minetest.net, ContentDB}. Information is taken from the JSON-formatted metadata provided through @uref{https://content.minetest.net/help/api/, ContentDB's API} and includes most relevant information, including dependencies. There are some caveats, however. The license information is often incomplete. The commit hash is sometimes missing. The descriptions are in the Markdown format, but Guix uses Texinfo instead. Texture packs and subgames are unsupported."
  17251. msgstr ""
  17252. #. type: table
  17253. #: guix-git/doc/guix.texi:11338
  17254. msgid "The command below imports metadata for the Mesecons mod by Jeija:"
  17255. msgstr ""
  17256. #. type: example
  17257. #: guix-git/doc/guix.texi:11341
  17258. #, no-wrap
  17259. msgid "guix import minetest Jeija/mesecons\n"
  17260. msgstr ""
  17261. #. type: table
  17262. #: guix-git/doc/guix.texi:11344
  17263. msgid "The author name can also be left out:"
  17264. msgstr ""
  17265. #. type: example
  17266. #: guix-git/doc/guix.texi:11347
  17267. #, no-wrap
  17268. msgid "guix import minetest mesecons\n"
  17269. msgstr ""
  17270. #. type: item
  17271. #: guix-git/doc/guix.texi:11357 guix-git/doc/guix.texi:11903
  17272. #, no-wrap
  17273. msgid "cpan"
  17274. msgstr ""
  17275. #. type: cindex
  17276. #: guix-git/doc/guix.texi:11358
  17277. #, no-wrap
  17278. msgid "CPAN"
  17279. msgstr ""
  17280. #. type: table
  17281. #: guix-git/doc/guix.texi:11366
  17282. msgid "Import metadata from @uref{https://www.metacpan.org/, MetaCPAN}. Information is taken from the JSON-formatted metadata provided through @uref{https://fastapi.metacpan.org/, MetaCPAN's API} and includes most relevant information, such as module dependencies. License information should be checked closely. If Perl is available in the store, then the @code{corelist} utility will be used to filter core modules out of the list of dependencies."
  17283. msgstr ""
  17284. #. type: table
  17285. #: guix-git/doc/guix.texi:11369
  17286. msgid "The command command below imports metadata for the Acme::Boolean Perl module:"
  17287. msgstr ""
  17288. #. type: example
  17289. #: guix-git/doc/guix.texi:11372
  17290. #, no-wrap
  17291. msgid "guix import cpan Acme::Boolean\n"
  17292. msgstr ""
  17293. #. type: item
  17294. #: guix-git/doc/guix.texi:11374 guix-git/doc/guix.texi:11899
  17295. #, no-wrap
  17296. msgid "cran"
  17297. msgstr ""
  17298. #. type: cindex
  17299. #: guix-git/doc/guix.texi:11375
  17300. #, no-wrap
  17301. msgid "CRAN"
  17302. msgstr ""
  17303. #. type: cindex
  17304. #: guix-git/doc/guix.texi:11376
  17305. #, no-wrap
  17306. msgid "Bioconductor"
  17307. msgstr ""
  17308. #. type: table
  17309. #: guix-git/doc/guix.texi:11380
  17310. msgid "Import metadata from @uref{https://cran.r-project.org/, CRAN}, the central repository for the @uref{https://r-project.org, GNU@tie{}R statistical and graphical environment}."
  17311. msgstr ""
  17312. #. type: table
  17313. #: guix-git/doc/guix.texi:11382
  17314. msgid "Information is extracted from the @file{DESCRIPTION} file of the package."
  17315. msgstr ""
  17316. #. type: table
  17317. #: guix-git/doc/guix.texi:11384
  17318. msgid "The command command below imports metadata for the Cairo R package:"
  17319. msgstr ""
  17320. #. type: example
  17321. #: guix-git/doc/guix.texi:11387
  17322. #, no-wrap
  17323. msgid "guix import cran Cairo\n"
  17324. msgstr ""
  17325. #. type: table
  17326. #: guix-git/doc/guix.texi:11392
  17327. msgid "When @option{--recursive} is added, the importer will traverse the dependency graph of the given upstream package recursively and generate package expressions for all those packages that are not yet in Guix."
  17328. msgstr ""
  17329. #. type: table
  17330. #: guix-git/doc/guix.texi:11399
  17331. msgid "When @option{--style=specification} is added, the importer will generate package definitions whose inputs are package specifications instead of references to package variables. This is useful when generated package definitions are to be appended to existing user modules, as the list of used package modules need not be changed. The default is @option{--style=variable}."
  17332. msgstr ""
  17333. #. type: table
  17334. #: guix-git/doc/guix.texi:11404
  17335. msgid "When @option{--archive=bioconductor} is added, metadata is imported from @uref{https://www.bioconductor.org/, Bioconductor}, a repository of R packages for the analysis and comprehension of high-throughput genomic data in bioinformatics."
  17336. msgstr ""
  17337. #. type: table
  17338. #: guix-git/doc/guix.texi:11407
  17339. msgid "Information is extracted from the @file{DESCRIPTION} file contained in the package archive."
  17340. msgstr ""
  17341. #. type: table
  17342. #: guix-git/doc/guix.texi:11409
  17343. msgid "The command below imports metadata for the GenomicRanges R package:"
  17344. msgstr ""
  17345. #. type: example
  17346. #: guix-git/doc/guix.texi:11412
  17347. #, no-wrap
  17348. msgid "guix import cran --archive=bioconductor GenomicRanges\n"
  17349. msgstr ""
  17350. #. type: table
  17351. #: guix-git/doc/guix.texi:11417
  17352. msgid "Finally, you can also import R packages that have not yet been published on CRAN or Bioconductor as long as they are in a git repository. Use @option{--archive=git} followed by the URL of the git repository:"
  17353. msgstr ""
  17354. #. type: example
  17355. #: guix-git/doc/guix.texi:11420
  17356. #, no-wrap
  17357. msgid "guix import cran --archive=git https://github.com/immunogenomics/harmony\n"
  17358. msgstr ""
  17359. #. type: item
  17360. #: guix-git/doc/guix.texi:11422
  17361. #, no-wrap
  17362. msgid "texlive"
  17363. msgstr ""
  17364. #. type: cindex
  17365. #: guix-git/doc/guix.texi:11423
  17366. #, no-wrap
  17367. msgid "TeX Live"
  17368. msgstr ""
  17369. #. type: cindex
  17370. #: guix-git/doc/guix.texi:11424
  17371. #, no-wrap
  17372. msgid "CTAN"
  17373. msgstr ""
  17374. #. type: table
  17375. #: guix-git/doc/guix.texi:11428
  17376. msgid "Import metadata from @uref{https://www.ctan.org/, CTAN}, the comprehensive TeX archive network for TeX packages that are part of the @uref{https://www.tug.org/texlive/, TeX Live distribution}."
  17377. msgstr ""
  17378. #. type: table
  17379. #: guix-git/doc/guix.texi:11433
  17380. msgid "Information about the package is obtained through the XML API provided by CTAN, while the source code is downloaded from the SVN repository of the Tex Live project. This is done because the CTAN does not keep versioned archives."
  17381. msgstr ""
  17382. #. type: table
  17383. #: guix-git/doc/guix.texi:11436
  17384. msgid "The command command below imports metadata for the @code{fontspec} TeX package:"
  17385. msgstr ""
  17386. #. type: example
  17387. #: guix-git/doc/guix.texi:11439
  17388. #, no-wrap
  17389. msgid "guix import texlive fontspec\n"
  17390. msgstr ""
  17391. #. type: table
  17392. #: guix-git/doc/guix.texi:11445
  17393. msgid "When @option{--archive=@var{directory}} is added, the source code is downloaded not from the @file{latex} sub-directory of the @file{texmf-dist/source} tree in the TeX Live SVN repository, but from the specified sibling @var{directory} under the same root."
  17394. msgstr ""
  17395. #. type: table
  17396. #: guix-git/doc/guix.texi:11449
  17397. msgid "The command below imports metadata for the @code{ifxetex} package from CTAN while fetching the sources from the directory @file{texmf/source/generic}:"
  17398. msgstr ""
  17399. #. type: example
  17400. #: guix-git/doc/guix.texi:11452
  17401. #, no-wrap
  17402. msgid "guix import texlive --archive=generic ifxetex\n"
  17403. msgstr ""
  17404. #. type: cindex
  17405. #: guix-git/doc/guix.texi:11455
  17406. #, no-wrap
  17407. msgid "JSON, import"
  17408. msgstr ""
  17409. #. type: table
  17410. #: guix-git/doc/guix.texi:11458
  17411. msgid "Import package metadata from a local JSON file. Consider the following example package definition in JSON format:"
  17412. msgstr ""
  17413. #. type: example
  17414. #: guix-git/doc/guix.texi:11471
  17415. #, no-wrap
  17416. msgid ""
  17417. "@{\n"
  17418. " \"name\": \"hello\",\n"
  17419. " \"version\": \"2.10\",\n"
  17420. " \"source\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  17421. " \"build-system\": \"gnu\",\n"
  17422. " \"home-page\": \"https://www.gnu.org/software/hello/\",\n"
  17423. " \"synopsis\": \"Hello, GNU world: An example GNU package\",\n"
  17424. " \"description\": \"GNU Hello prints a greeting.\",\n"
  17425. " \"license\": \"GPL-3.0+\",\n"
  17426. " \"native-inputs\": [\"gettext\"]\n"
  17427. "@}\n"
  17428. msgstr ""
  17429. #. type: table
  17430. #: guix-git/doc/guix.texi:11477
  17431. msgid "The field names are the same as for the @code{<package>} record (@xref{Defining Packages}). References to other packages are provided as JSON lists of quoted package specification strings such as @code{guile} or @code{guile@@2.0}."
  17432. msgstr ""
  17433. #. type: table
  17434. #: guix-git/doc/guix.texi:11480
  17435. msgid "The importer also supports a more explicit source definition using the common fields for @code{<origin>} records:"
  17436. msgstr ""
  17437. #. type: example
  17438. #: guix-git/doc/guix.texi:11493
  17439. #, no-wrap
  17440. msgid ""
  17441. "@{\n"
  17442. " @dots{}\n"
  17443. " \"source\": @{\n"
  17444. " \"method\": \"url-fetch\",\n"
  17445. " \"uri\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  17446. " \"sha256\": @{\n"
  17447. " \"base32\": \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"\n"
  17448. " @}\n"
  17449. " @}\n"
  17450. " @dots{}\n"
  17451. "@}\n"
  17452. msgstr ""
  17453. #. type: table
  17454. #: guix-git/doc/guix.texi:11497
  17455. msgid "The command below reads metadata from the JSON file @code{hello.json} and outputs a package expression:"
  17456. msgstr ""
  17457. #. type: example
  17458. #: guix-git/doc/guix.texi:11500
  17459. #, no-wrap
  17460. msgid "guix import json hello.json\n"
  17461. msgstr ""
  17462. #. type: item
  17463. #: guix-git/doc/guix.texi:11502 guix-git/doc/guix.texi:11503
  17464. #: guix-git/doc/guix.texi:11911
  17465. #, no-wrap
  17466. msgid "hackage"
  17467. msgstr ""
  17468. #. type: table
  17469. #: guix-git/doc/guix.texi:11508
  17470. msgid "Import metadata from the Haskell community's central package archive @uref{https://hackage.haskell.org/, Hackage}. Information is taken from Cabal files and includes all the relevant information, including package dependencies."
  17471. msgstr ""
  17472. #. type: item
  17473. #: guix-git/doc/guix.texi:11512
  17474. #, no-wrap
  17475. msgid "--stdin"
  17476. msgstr ""
  17477. #. type: itemx
  17478. #: guix-git/doc/guix.texi:11513
  17479. #, no-wrap
  17480. msgid "-s"
  17481. msgstr ""
  17482. #. type: table
  17483. #: guix-git/doc/guix.texi:11515
  17484. msgid "Read a Cabal file from standard input."
  17485. msgstr ""
  17486. #. type: item
  17487. #: guix-git/doc/guix.texi:11515 guix-git/doc/guix.texi:11562
  17488. #, no-wrap
  17489. msgid "--no-test-dependencies"
  17490. msgstr ""
  17491. #. type: table
  17492. #: guix-git/doc/guix.texi:11518 guix-git/doc/guix.texi:11565
  17493. msgid "Do not include dependencies required only by the test suites."
  17494. msgstr ""
  17495. #. type: item
  17496. #: guix-git/doc/guix.texi:11518
  17497. #, no-wrap
  17498. msgid "--cabal-environment=@var{alist}"
  17499. msgstr ""
  17500. #. type: itemx
  17501. #: guix-git/doc/guix.texi:11519
  17502. #, no-wrap
  17503. msgid "-e @var{alist}"
  17504. msgstr ""
  17505. #. type: table
  17506. #: guix-git/doc/guix.texi:11528
  17507. msgid "@var{alist} is a Scheme alist defining the environment in which the Cabal conditionals are evaluated. The accepted keys are: @code{os}, @code{arch}, @code{impl} and a string representing the name of a flag. The value associated with a flag has to be either the symbol @code{true} or @code{false}. The value associated with other keys has to conform to the Cabal file format definition. The default value associated with the keys @code{os}, @code{arch} and @code{impl} is @samp{linux}, @samp{x86_64} and @samp{ghc}, respectively."
  17508. msgstr ""
  17509. #. type: table
  17510. #: guix-git/doc/guix.texi:11538
  17511. msgid "The command below imports metadata for the latest version of the HTTP Haskell package without including test dependencies and specifying the value of the flag @samp{network-uri} as @code{false}:"
  17512. msgstr ""
  17513. #. type: example
  17514. #: guix-git/doc/guix.texi:11541
  17515. #, no-wrap
  17516. msgid "guix import hackage -t -e \"'((\\\"network-uri\\\" . false))\" HTTP\n"
  17517. msgstr ""
  17518. #. type: table
  17519. #: guix-git/doc/guix.texi:11545
  17520. msgid "A specific package version may optionally be specified by following the package name by an at-sign and a version number as in the following example:"
  17521. msgstr ""
  17522. #. type: example
  17523. #: guix-git/doc/guix.texi:11548
  17524. #, no-wrap
  17525. msgid "guix import hackage mtl@@2.1.3.1\n"
  17526. msgstr ""
  17527. #. type: item
  17528. #: guix-git/doc/guix.texi:11550 guix-git/doc/guix.texi:11551
  17529. #: guix-git/doc/guix.texi:11913
  17530. #, no-wrap
  17531. msgid "stackage"
  17532. msgstr ""
  17533. #. type: table
  17534. #: guix-git/doc/guix.texi:11558
  17535. msgid "The @code{stackage} importer is a wrapper around the @code{hackage} one. It takes a package name, looks up the package version included in a long-term support (LTS) @uref{https://www.stackage.org, Stackage} release and uses the @code{hackage} importer to retrieve its metadata. Note that it is up to you to select an LTS release compatible with the GHC compiler used by Guix."
  17536. msgstr ""
  17537. #. type: item
  17538. #: guix-git/doc/guix.texi:11565
  17539. #, no-wrap
  17540. msgid "--lts-version=@var{version}"
  17541. msgstr ""
  17542. #. type: itemx
  17543. #: guix-git/doc/guix.texi:11566
  17544. #, no-wrap
  17545. msgid "-l @var{version}"
  17546. msgstr ""
  17547. #. type: table
  17548. #: guix-git/doc/guix.texi:11569
  17549. msgid "@var{version} is the desired LTS release version. If omitted the latest release is used."
  17550. msgstr ""
  17551. #. type: table
  17552. #: guix-git/doc/guix.texi:11578
  17553. msgid "The command below imports metadata for the HTTP Haskell package included in the LTS Stackage release version 7.18:"
  17554. msgstr ""
  17555. #. type: example
  17556. #: guix-git/doc/guix.texi:11581
  17557. #, no-wrap
  17558. msgid "guix import stackage --lts-version=7.18 HTTP\n"
  17559. msgstr ""
  17560. #. type: item
  17561. #: guix-git/doc/guix.texi:11583 guix-git/doc/guix.texi:11584
  17562. #: guix-git/doc/guix.texi:11897
  17563. #, no-wrap
  17564. msgid "elpa"
  17565. msgstr ""
  17566. #. type: table
  17567. #: guix-git/doc/guix.texi:11587
  17568. msgid "Import metadata from an Emacs Lisp Package Archive (ELPA) package repository (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  17569. msgstr ""
  17570. #. type: item
  17571. #: guix-git/doc/guix.texi:11591
  17572. #, no-wrap
  17573. msgid "--archive=@var{repo}"
  17574. msgstr ""
  17575. #. type: itemx
  17576. #: guix-git/doc/guix.texi:11592
  17577. #, no-wrap
  17578. msgid "-a @var{repo}"
  17579. msgstr ""
  17580. #. type: table
  17581. #: guix-git/doc/guix.texi:11596
  17582. msgid "@var{repo} identifies the archive repository from which to retrieve the information. Currently the supported repositories and their identifiers are:"
  17583. msgstr ""
  17584. #. type: itemize
  17585. #: guix-git/doc/guix.texi:11600
  17586. msgid "@uref{https://elpa.gnu.org/packages, GNU}, selected by the @code{gnu} identifier. This is the default."
  17587. msgstr ""
  17588. #. type: itemize
  17589. #: guix-git/doc/guix.texi:11606
  17590. msgid "Packages from @code{elpa.gnu.org} are signed with one of the keys contained in the GnuPG keyring at @file{share/emacs/25.1/etc/package-keyring.gpg} (or similar) in the @code{emacs} package (@pxref{Package Installation, ELPA package signatures,, emacs, The GNU Emacs Manual})."
  17591. msgstr ""
  17592. #. type: itemize
  17593. #: guix-git/doc/guix.texi:11610
  17594. msgid "@uref{https://stable.melpa.org/packages, MELPA-Stable}, selected by the @code{melpa-stable} identifier."
  17595. msgstr ""
  17596. #. type: itemize
  17597. #: guix-git/doc/guix.texi:11614
  17598. msgid "@uref{https://melpa.org/packages, MELPA}, selected by the @code{melpa} identifier."
  17599. msgstr ""
  17600. #. type: item
  17601. #: guix-git/doc/guix.texi:11623 guix-git/doc/guix.texi:11624
  17602. #: guix-git/doc/guix.texi:11915
  17603. #, no-wrap
  17604. msgid "crate"
  17605. msgstr ""
  17606. #. type: table
  17607. #: guix-git/doc/guix.texi:11627
  17608. msgid "Import metadata from the crates.io Rust package repository @uref{https://crates.io, crates.io}, as in this example:"
  17609. msgstr ""
  17610. #. type: example
  17611. #: guix-git/doc/guix.texi:11630
  17612. #, no-wrap
  17613. msgid "guix import crate blake2-rfc\n"
  17614. msgstr ""
  17615. #. type: table
  17616. #: guix-git/doc/guix.texi:11633
  17617. msgid "The crate importer also allows you to specify a version string:"
  17618. msgstr ""
  17619. #. type: example
  17620. #: guix-git/doc/guix.texi:11636
  17621. #, no-wrap
  17622. msgid "guix import crate constant-time-eq@@0.1.0\n"
  17623. msgstr ""
  17624. #. type: table
  17625. #: guix-git/doc/guix.texi:11639 guix-git/doc/guix.texi:11655
  17626. #: guix-git/doc/guix.texi:11703 guix-git/doc/guix.texi:11734
  17627. #, fuzzy
  17628. msgid "Additional options include:"
  17629. msgstr "额外的构建选项"
  17630. #. type: item
  17631. #: guix-git/doc/guix.texi:11648
  17632. #, no-wrap
  17633. msgid "opam"
  17634. msgstr ""
  17635. #. type: cindex
  17636. #: guix-git/doc/guix.texi:11649
  17637. #, no-wrap
  17638. msgid "OPAM"
  17639. msgstr ""
  17640. #. type: cindex
  17641. #: guix-git/doc/guix.texi:11650
  17642. #, no-wrap
  17643. msgid "OCaml"
  17644. msgstr ""
  17645. #. type: table
  17646. #: guix-git/doc/guix.texi:11653
  17647. msgid "Import metadata from the @uref{https://opam.ocaml.org/, OPAM} package repository used by the OCaml community."
  17648. msgstr ""
  17649. #. type: item
  17650. #: guix-git/doc/guix.texi:11662
  17651. #, no-wrap
  17652. msgid "--repo"
  17653. msgstr ""
  17654. #. type: table
  17655. #: guix-git/doc/guix.texi:11666
  17656. msgid "By default, packages are searched in the official OPAM repository. This option, which can be used more than once, lets you add other repositories which will be searched for packages. It accepts as valid arguments:"
  17657. msgstr ""
  17658. #. type: item
  17659. #: guix-git/doc/guix.texi:11668
  17660. #, no-wrap
  17661. msgid "the name of a known repository - can be one of @code{opam},"
  17662. msgstr ""
  17663. #. type: itemize
  17664. #: guix-git/doc/guix.texi:11671
  17665. msgid "@code{coq} (equivalent to @code{coq-released}), @code{coq-core-dev}, @code{coq-extra-dev} or @code{grew}."
  17666. msgstr ""
  17667. #. type: item
  17668. #: guix-git/doc/guix.texi:11671
  17669. #, no-wrap
  17670. msgid "the URL of a repository as expected by the"
  17671. msgstr ""
  17672. #. type: itemize
  17673. #: guix-git/doc/guix.texi:11675
  17674. msgid "@code{opam repository add} command (for instance, the URL equivalent of the above @code{opam} name would be @uref{https://opam.ocaml.org})."
  17675. msgstr ""
  17676. #. type: item
  17677. #: guix-git/doc/guix.texi:11675
  17678. #, no-wrap
  17679. msgid "the path to a local copy of a repository (a directory containing a"
  17680. msgstr ""
  17681. #. type: itemize
  17682. #: guix-git/doc/guix.texi:11677
  17683. #, fuzzy
  17684. msgid "@file{packages/} sub-directory)."
  17685. msgstr "软件包模块"
  17686. #. type: table
  17687. #: guix-git/doc/guix.texi:11682
  17688. msgid "Repositories are assumed to be passed to this option by order of preference. The additional repositories will not replace the default @code{opam} repository, which is always kept as a fallback."
  17689. msgstr ""
  17690. #. type: table
  17691. #: guix-git/doc/guix.texi:11687
  17692. msgid "Also, please note that versions are not compared accross repositories. The first repository (from left to right) that has at least one version of a given package will prevail over any others, and the version imported will be the latest one found @emph{in this repository only}."
  17693. msgstr ""
  17694. #. type: cindex
  17695. #: guix-git/doc/guix.texi:11690 guix-git/doc/guix.texi:11691
  17696. #, no-wrap
  17697. msgid "go"
  17698. msgstr ""
  17699. #. type: table
  17700. #: guix-git/doc/guix.texi:11694
  17701. msgid "Import metadata for a Go module using @uref{https://proxy.golang.org, proxy.golang.org}."
  17702. msgstr ""
  17703. #. type: example
  17704. #: guix-git/doc/guix.texi:11697
  17705. #, no-wrap
  17706. msgid "guix import go gopkg.in/yaml.v2\n"
  17707. msgstr ""
  17708. #. type: table
  17709. #: guix-git/doc/guix.texi:11701
  17710. msgid "It is possible to use a package specification with a @code{@@VERSION} suffix to import a specific version."
  17711. msgstr ""
  17712. #. type: item
  17713. #: guix-git/doc/guix.texi:11710
  17714. #, no-wrap
  17715. msgid "--pin-versions"
  17716. msgstr ""
  17717. #. type: table
  17718. #: guix-git/doc/guix.texi:11718
  17719. msgid "When using this option, the importer preserves the exact versions of the Go modules dependencies instead of using their latest available versions. This can be useful when attempting to import packages that recursively depend on former versions of themselves to build. When using this mode, the symbol of the package is made by appending the version to its name, so that multiple versions of the same package can coexist."
  17720. msgstr ""
  17721. #. type: item
  17722. #: guix-git/doc/guix.texi:11720 guix-git/doc/guix.texi:11721
  17723. #: guix-git/doc/guix.texi:11895
  17724. #, no-wrap
  17725. msgid "egg"
  17726. msgstr ""
  17727. #. type: table
  17728. #: guix-git/doc/guix.texi:11728
  17729. msgid "Import metadata for @uref{https://wiki.call-cc.org/eggs, CHICKEN eggs}. The information is taken from @file{PACKAGE.egg} files found in the @uref{git://code.call-cc.org/eggs-5-latest, eggs-5-latest} Git repository. However, it does not provide all the information that we need, there is no ``description'' field, and the licenses used are not always precise (BSD is often used instead of BSD-N)."
  17730. msgstr ""
  17731. #. type: example
  17732. #: guix-git/doc/guix.texi:11731
  17733. #, no-wrap
  17734. msgid "guix import egg sourcehut\n"
  17735. msgstr ""
  17736. #. type: Plain text
  17737. #: guix-git/doc/guix.texi:11746
  17738. msgid "The structure of the @command{guix import} code is modular. It would be useful to have more importers for other package formats, and your help is welcome here (@pxref{Contributing})."
  17739. msgstr ""
  17740. #. type: section
  17741. #: guix-git/doc/guix.texi:11748
  17742. #, no-wrap
  17743. msgid "Invoking @command{guix refresh}"
  17744. msgstr ""
  17745. #. type: command{#1}
  17746. #: guix-git/doc/guix.texi:11750
  17747. #, no-wrap
  17748. msgid "guix refresh"
  17749. msgstr ""
  17750. #. type: Plain text
  17751. #: guix-git/doc/guix.texi:11758
  17752. msgid "The primary audience of the @command{guix refresh} command is packagers. As a user, you may be interested in the @option{--with-latest} option, which can bring you package update superpowers built upon @command{guix refresh} (@pxref{Package Transformation Options, @option{--with-latest}}). By default, @command{guix refresh} reports any packages provided by the distribution that are outdated compared to the latest upstream version, like this:"
  17753. msgstr ""
  17754. #. type: example
  17755. #: guix-git/doc/guix.texi:11763
  17756. #, no-wrap
  17757. msgid ""
  17758. "$ guix refresh\n"
  17759. "gnu/packages/gettext.scm:29:13: gettext would be upgraded from 0.18.1.1 to 0.18.2.1\n"
  17760. "gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0\n"
  17761. msgstr ""
  17762. #. type: Plain text
  17763. #: guix-git/doc/guix.texi:11767
  17764. msgid "Alternatively, one can specify packages to consider, in which case a warning is emitted for packages that lack an updater:"
  17765. msgstr ""
  17766. #. type: example
  17767. #: guix-git/doc/guix.texi:11772
  17768. #, no-wrap
  17769. msgid ""
  17770. "$ guix refresh coreutils guile guile-ssh\n"
  17771. "gnu/packages/ssh.scm:205:2: warning: no updater for guile-ssh\n"
  17772. "gnu/packages/guile.scm:136:12: guile would be upgraded from 2.0.12 to 2.0.13\n"
  17773. msgstr ""
  17774. #. type: Plain text
  17775. #: guix-git/doc/guix.texi:11781
  17776. msgid "@command{guix refresh} browses the upstream repository of each package and determines the highest version number of the releases therein. The command knows how to update specific types of packages: GNU packages, ELPA packages, etc.---see the documentation for @option{--type} below. There are many packages, though, for which it lacks a method to determine whether a new upstream release is available. However, the mechanism is extensible, so feel free to get in touch with us to add a new method!"
  17777. msgstr ""
  17778. #. type: table
  17779. #: guix-git/doc/guix.texi:11786
  17780. msgid "Consider the packages specified, and all the packages upon which they depend."
  17781. msgstr ""
  17782. #. type: example
  17783. #: guix-git/doc/guix.texi:11794
  17784. #, no-wrap
  17785. msgid ""
  17786. "$ guix refresh --recursive coreutils\n"
  17787. "gnu/packages/acl.scm:40:13: acl would be upgraded from 2.2.53 to 2.3.1\n"
  17788. "gnu/packages/m4.scm:30:12: 1.4.18 is already the latest version of m4\n"
  17789. "gnu/packages/xml.scm:68:2: warning: no updater for expat\n"
  17790. "gnu/packages/multiprecision.scm:40:12: 6.1.2 is already the latest version of gmp\n"
  17791. "@dots{}\n"
  17792. msgstr ""
  17793. #. type: Plain text
  17794. #: guix-git/doc/guix.texi:11802
  17795. msgid "Sometimes the upstream name differs from the package name used in Guix, and @command{guix refresh} needs a little help. Most updaters honor the @code{upstream-name} property in package definitions, which can be used to that effect:"
  17796. msgstr ""
  17797. #. type: lisp
  17798. #: guix-git/doc/guix.texi:11809
  17799. #, no-wrap
  17800. msgid ""
  17801. "(define-public network-manager\n"
  17802. " (package\n"
  17803. " (name \"network-manager\")\n"
  17804. " ;; @dots{}\n"
  17805. " (properties '((upstream-name . \"NetworkManager\")))))\n"
  17806. msgstr ""
  17807. #. type: Plain text
  17808. #: guix-git/doc/guix.texi:11818
  17809. msgid "When passed @option{--update}, it modifies distribution source files to update the version numbers and source tarball hashes of those package recipes (@pxref{Defining Packages}). This is achieved by downloading each package's latest source tarball and its associated OpenPGP signature, authenticating the downloaded tarball against its signature using @command{gpgv}, and finally computing its hash---note that GnuPG must be installed and in @code{$PATH}; run @code{guix install gnupg} if needed."
  17810. msgstr ""
  17811. #. type: Plain text
  17812. #: guix-git/doc/guix.texi:11824
  17813. msgid "When the public key used to sign the tarball is missing from the user's keyring, an attempt is made to automatically retrieve it from a public key server; when this is successful, the key is added to the user's keyring; otherwise, @command{guix refresh} reports an error."
  17814. msgstr ""
  17815. #. type: Plain text
  17816. #: guix-git/doc/guix.texi:11826
  17817. msgid "The following options are supported:"
  17818. msgstr ""
  17819. #. type: table
  17820. #: guix-git/doc/guix.texi:11834 guix-git/doc/guix.texi:12631
  17821. msgid "This is useful to precisely refer to a package, as in this example:"
  17822. msgstr ""
  17823. #. type: example
  17824. #: guix-git/doc/guix.texi:11837
  17825. #, no-wrap
  17826. msgid "guix refresh -l -e '(@@@@ (gnu packages commencement) glibc-final)'\n"
  17827. msgstr ""
  17828. #. type: table
  17829. #: guix-git/doc/guix.texi:11841
  17830. msgid "This command lists the dependents of the ``final'' libc (essentially all the packages)."
  17831. msgstr ""
  17832. #. type: item
  17833. #: guix-git/doc/guix.texi:11842
  17834. #, no-wrap
  17835. msgid "--update"
  17836. msgstr ""
  17837. #. type: itemx
  17838. #: guix-git/doc/guix.texi:11843
  17839. #, no-wrap
  17840. msgid "-u"
  17841. msgstr ""
  17842. #. type: table
  17843. #: guix-git/doc/guix.texi:11847
  17844. msgid "Update distribution source files (package recipes) in place. This is usually run from a checkout of the Guix source tree (@pxref{Running Guix Before It Is Installed}):"
  17845. msgstr ""
  17846. #. type: example
  17847. #: guix-git/doc/guix.texi:11850
  17848. #, no-wrap
  17849. msgid "$ ./pre-inst-env guix refresh -s non-core -u\n"
  17850. msgstr ""
  17851. #. type: table
  17852. #: guix-git/doc/guix.texi:11853
  17853. msgid "@xref{Defining Packages}, for more information on package definitions."
  17854. msgstr ""
  17855. #. type: item
  17856. #: guix-git/doc/guix.texi:11854
  17857. #, no-wrap
  17858. msgid "--select=[@var{subset}]"
  17859. msgstr ""
  17860. #. type: itemx
  17861. #: guix-git/doc/guix.texi:11855
  17862. #, no-wrap
  17863. msgid "-s @var{subset}"
  17864. msgstr ""
  17865. #. type: table
  17866. #: guix-git/doc/guix.texi:11858
  17867. msgid "Select all the packages in @var{subset}, one of @code{core} or @code{non-core}."
  17868. msgstr ""
  17869. #. type: table
  17870. #: guix-git/doc/guix.texi:11865
  17871. msgid "The @code{core} subset refers to all the packages at the core of the distribution---i.e., packages that are used to build ``everything else''. This includes GCC, libc, Binutils, Bash, etc. Usually, changing one of these packages in the distribution entails a rebuild of all the others. Thus, such updates are an inconvenience to users in terms of build time or bandwidth used to achieve the upgrade."
  17872. msgstr ""
  17873. #. type: table
  17874. #: guix-git/doc/guix.texi:11869
  17875. msgid "The @code{non-core} subset refers to the remaining packages. It is typically useful in cases where an update of the core packages would be inconvenient."
  17876. msgstr ""
  17877. #. type: table
  17878. #: guix-git/doc/guix.texi:11874
  17879. msgid "Select all the packages from the manifest in @var{file}. This is useful to check if any packages of the user manifest can be updated."
  17880. msgstr ""
  17881. #. type: item
  17882. #: guix-git/doc/guix.texi:11875
  17883. #, no-wrap
  17884. msgid "--type=@var{updater}"
  17885. msgstr ""
  17886. #. type: itemx
  17887. #: guix-git/doc/guix.texi:11876
  17888. #, no-wrap
  17889. msgid "-t @var{updater}"
  17890. msgstr ""
  17891. #. type: table
  17892. #: guix-git/doc/guix.texi:11879
  17893. msgid "Select only packages handled by @var{updater} (may be a comma-separated list of updaters). Currently, @var{updater} may be one of:"
  17894. msgstr ""
  17895. #. type: table
  17896. #: guix-git/doc/guix.texi:11883
  17897. msgid "the updater for GNU packages;"
  17898. msgstr ""
  17899. #. type: item
  17900. #: guix-git/doc/guix.texi:11883
  17901. #, no-wrap
  17902. msgid "savannah"
  17903. msgstr ""
  17904. #. type: table
  17905. #: guix-git/doc/guix.texi:11885
  17906. msgid "the updater for packages hosted at @uref{https://savannah.gnu.org, Savannah};"
  17907. msgstr ""
  17908. #. type: item
  17909. #: guix-git/doc/guix.texi:11885
  17910. #, no-wrap
  17911. msgid "sourceforge"
  17912. msgstr ""
  17913. #. type: table
  17914. #: guix-git/doc/guix.texi:11887
  17915. msgid "the updater for packages hosted at @uref{https://sourceforge.net, SourceForge};"
  17916. msgstr ""
  17917. #. type: item
  17918. #: guix-git/doc/guix.texi:11887
  17919. #, no-wrap
  17920. msgid "gnome"
  17921. msgstr ""
  17922. #. type: table
  17923. #: guix-git/doc/guix.texi:11889
  17924. msgid "the updater for GNOME packages;"
  17925. msgstr ""
  17926. #. type: item
  17927. #: guix-git/doc/guix.texi:11889
  17928. #, no-wrap
  17929. msgid "kde"
  17930. msgstr ""
  17931. #. type: table
  17932. #: guix-git/doc/guix.texi:11891
  17933. msgid "the updater for KDE packages;"
  17934. msgstr ""
  17935. #. type: item
  17936. #: guix-git/doc/guix.texi:11891
  17937. #, no-wrap
  17938. msgid "xorg"
  17939. msgstr ""
  17940. #. type: table
  17941. #: guix-git/doc/guix.texi:11893
  17942. msgid "the updater for X.org packages;"
  17943. msgstr ""
  17944. #. type: item
  17945. #: guix-git/doc/guix.texi:11893
  17946. #, no-wrap
  17947. msgid "kernel.org"
  17948. msgstr ""
  17949. #. type: table
  17950. #: guix-git/doc/guix.texi:11895
  17951. msgid "the updater for packages hosted on kernel.org;"
  17952. msgstr ""
  17953. #. type: table
  17954. #: guix-git/doc/guix.texi:11897
  17955. msgid "the updater for @uref{https://wiki.call-cc.org/eggs/, Egg} packages;"
  17956. msgstr ""
  17957. #. type: table
  17958. #: guix-git/doc/guix.texi:11899
  17959. msgid "the updater for @uref{https://elpa.gnu.org/, ELPA} packages;"
  17960. msgstr ""
  17961. #. type: table
  17962. #: guix-git/doc/guix.texi:11901
  17963. msgid "the updater for @uref{https://cran.r-project.org/, CRAN} packages;"
  17964. msgstr ""
  17965. #. type: item
  17966. #: guix-git/doc/guix.texi:11901
  17967. #, no-wrap
  17968. msgid "bioconductor"
  17969. msgstr ""
  17970. #. type: table
  17971. #: guix-git/doc/guix.texi:11903
  17972. msgid "the updater for @uref{https://www.bioconductor.org/, Bioconductor} R packages;"
  17973. msgstr ""
  17974. #. type: table
  17975. #: guix-git/doc/guix.texi:11905
  17976. msgid "the updater for @uref{https://www.cpan.org/, CPAN} packages;"
  17977. msgstr ""
  17978. #. type: table
  17979. #: guix-git/doc/guix.texi:11907
  17980. msgid "the updater for @uref{https://pypi.python.org, PyPI} packages."
  17981. msgstr ""
  17982. #. type: table
  17983. #: guix-git/doc/guix.texi:11909
  17984. msgid "the updater for @uref{https://rubygems.org, RubyGems} packages."
  17985. msgstr ""
  17986. #. type: item
  17987. #: guix-git/doc/guix.texi:11909
  17988. #, no-wrap
  17989. msgid "github"
  17990. msgstr ""
  17991. #. type: table
  17992. #: guix-git/doc/guix.texi:11911
  17993. msgid "the updater for @uref{https://github.com, GitHub} packages."
  17994. msgstr ""
  17995. #. type: table
  17996. #: guix-git/doc/guix.texi:11913
  17997. msgid "the updater for @uref{https://hackage.haskell.org, Hackage} packages."
  17998. msgstr ""
  17999. #. type: table
  18000. #: guix-git/doc/guix.texi:11915
  18001. msgid "the updater for @uref{https://www.stackage.org, Stackage} packages."
  18002. msgstr ""
  18003. #. type: table
  18004. #: guix-git/doc/guix.texi:11917
  18005. msgid "the updater for @uref{https://crates.io, Crates} packages."
  18006. msgstr ""
  18007. #. type: item
  18008. #: guix-git/doc/guix.texi:11917
  18009. #, no-wrap
  18010. msgid "launchpad"
  18011. msgstr ""
  18012. #. type: table
  18013. #: guix-git/doc/guix.texi:11919
  18014. msgid "the updater for @uref{https://launchpad.net, Launchpad} packages."
  18015. msgstr ""
  18016. #. type: item
  18017. #: guix-git/doc/guix.texi:11919
  18018. #, no-wrap
  18019. msgid "generic-html"
  18020. msgstr ""
  18021. #. type: table
  18022. #: guix-git/doc/guix.texi:11922
  18023. msgid "a generic updater that crawls the HTML page where the source tarball of the package is hosted, when applicable."
  18024. msgstr ""
  18025. #. type: table
  18026. #: guix-git/doc/guix.texi:11926
  18027. msgid "For instance, the following command only checks for updates of Emacs packages hosted at @code{elpa.gnu.org} and for updates of CRAN packages:"
  18028. msgstr ""
  18029. #. type: example
  18030. #: guix-git/doc/guix.texi:11931
  18031. #, no-wrap
  18032. msgid ""
  18033. "$ guix refresh --type=elpa,cran\n"
  18034. "gnu/packages/statistics.scm:819:13: r-testthat would be upgraded from 0.10.0 to 0.11.0\n"
  18035. "gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9\n"
  18036. msgstr ""
  18037. #. type: item
  18038. #: guix-git/doc/guix.texi:11933
  18039. #, no-wrap
  18040. msgid "--list-updaters"
  18041. msgstr ""
  18042. #. type: itemx
  18043. #: guix-git/doc/guix.texi:11934
  18044. #, no-wrap
  18045. msgid "-L"
  18046. msgstr ""
  18047. #. type: table
  18048. #: guix-git/doc/guix.texi:11936
  18049. msgid "List available updaters and exit (see @option{--type} above)."
  18050. msgstr ""
  18051. #. type: table
  18052. #: guix-git/doc/guix.texi:11939
  18053. msgid "For each updater, display the fraction of packages it covers; at the end, display the fraction of packages covered by all these updaters."
  18054. msgstr ""
  18055. #. type: Plain text
  18056. #: guix-git/doc/guix.texi:11943
  18057. msgid "In addition, @command{guix refresh} can be passed one or more package names, as in this example:"
  18058. msgstr ""
  18059. #. type: example
  18060. #: guix-git/doc/guix.texi:11946
  18061. #, no-wrap
  18062. msgid "$ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8\n"
  18063. msgstr ""
  18064. #. type: Plain text
  18065. #: guix-git/doc/guix.texi:11953
  18066. msgid "The command above specifically updates the @code{emacs} and @code{idutils} packages. The @option{--select} option would have no effect in this case. You might also want to update definitions that correspond to the packages installed in your profile:"
  18067. msgstr ""
  18068. #. type: example
  18069. #: guix-git/doc/guix.texi:11957
  18070. #, no-wrap
  18071. msgid ""
  18072. "$ ./pre-inst-env guix refresh -u \\\n"
  18073. " $(guix package --list-installed | cut -f1)\n"
  18074. msgstr ""
  18075. #. type: Plain text
  18076. #: guix-git/doc/guix.texi:11963
  18077. msgid "When considering whether to upgrade a package, it is sometimes convenient to know which packages would be affected by the upgrade and should be checked for compatibility. For this the following option may be used when passing @command{guix refresh} one or more package names:"
  18078. msgstr ""
  18079. #. type: item
  18080. #: guix-git/doc/guix.texi:11966
  18081. #, no-wrap
  18082. msgid "--list-dependent"
  18083. msgstr ""
  18084. #. type: itemx
  18085. #: guix-git/doc/guix.texi:11967 guix-git/doc/guix.texi:12226
  18086. #, no-wrap
  18087. msgid "-l"
  18088. msgstr ""
  18089. #. type: table
  18090. #: guix-git/doc/guix.texi:11970
  18091. msgid "List top-level dependent packages that would need to be rebuilt as a result of upgrading one or more packages."
  18092. msgstr ""
  18093. #. type: table
  18094. #: guix-git/doc/guix.texi:11974
  18095. msgid "@xref{Invoking guix graph, the @code{reverse-package} type of @command{guix graph}}, for information on how to visualize the list of dependents of a package."
  18096. msgstr ""
  18097. #. type: Plain text
  18098. #: guix-git/doc/guix.texi:11980
  18099. msgid "Be aware that the @option{--list-dependent} option only @emph{approximates} the rebuilds that would be required as a result of an upgrade. More rebuilds might be required under some circumstances."
  18100. msgstr ""
  18101. #. type: example
  18102. #: guix-git/doc/guix.texi:11985
  18103. #, no-wrap
  18104. msgid ""
  18105. "$ guix refresh --list-dependent flex\n"
  18106. "Building the following 120 packages would ensure 213 dependent packages are rebuilt:\n"
  18107. "hop@@2.4.0 emacs-geiser@@0.13 notmuch@@0.18 mu@@0.9.9.5 cflow@@1.4 idutils@@4.6 @dots{}\n"
  18108. msgstr ""
  18109. #. type: Plain text
  18110. #: guix-git/doc/guix.texi:11989
  18111. msgid "The command above lists a set of packages that could be built to check for compatibility with an upgraded @code{flex} package."
  18112. msgstr ""
  18113. #. type: item
  18114. #: guix-git/doc/guix.texi:11992
  18115. #, no-wrap
  18116. msgid "--list-transitive"
  18117. msgstr ""
  18118. #. type: table
  18119. #: guix-git/doc/guix.texi:11994
  18120. msgid "List all the packages which one or more packages depend upon."
  18121. msgstr ""
  18122. #. type: example
  18123. #: guix-git/doc/guix.texi:11999
  18124. #, no-wrap
  18125. msgid ""
  18126. "$ guix refresh --list-transitive flex\n"
  18127. "flex@@2.6.4 depends on the following 25 packages: perl@@5.28.0 help2man@@1.47.6\n"
  18128. "bison@@3.0.5 indent@@2.2.10 tar@@1.30 gzip@@1.9 bzip2@@1.0.6 xz@@5.2.4 file@@5.33 @dots{}\n"
  18129. msgstr ""
  18130. #. type: Plain text
  18131. #: guix-git/doc/guix.texi:12005
  18132. msgid "The command above lists a set of packages which, when changed, would cause @code{flex} to be rebuilt."
  18133. msgstr ""
  18134. #. type: Plain text
  18135. #: guix-git/doc/guix.texi:12007
  18136. msgid "The following options can be used to customize GnuPG operation:"
  18137. msgstr ""
  18138. #. type: item
  18139. #: guix-git/doc/guix.texi:12010
  18140. #, no-wrap
  18141. msgid "--gpg=@var{command}"
  18142. msgstr ""
  18143. #. type: table
  18144. #: guix-git/doc/guix.texi:12013
  18145. msgid "Use @var{command} as the GnuPG 2.x command. @var{command} is searched for in @code{$PATH}."
  18146. msgstr ""
  18147. #. type: item
  18148. #: guix-git/doc/guix.texi:12014
  18149. #, no-wrap
  18150. msgid "--keyring=@var{file}"
  18151. msgstr ""
  18152. #. type: table
  18153. #: guix-git/doc/guix.texi:12020
  18154. msgid "Use @var{file} as the keyring for upstream keys. @var{file} must be in the @dfn{keybox format}. Keybox files usually have a name ending in @file{.kbx} and the GNU@tie{}Privacy Guard (GPG) can manipulate these files (@pxref{kbxutil, @command{kbxutil},, gnupg, Using the GNU Privacy Guard}, for information on a tool to manipulate keybox files)."
  18155. msgstr ""
  18156. #. type: table
  18157. #: guix-git/doc/guix.texi:12026
  18158. msgid "When this option is omitted, @command{guix refresh} uses @file{~/.config/guix/upstream/trustedkeys.kbx} as the keyring for upstream signing keys. OpenPGP signatures are checked against keys from this keyring; missing keys are downloaded to this keyring as well (see @option{--key-download} below)."
  18159. msgstr ""
  18160. #. type: table
  18161. #: guix-git/doc/guix.texi:12029
  18162. msgid "You can export keys from your default GPG keyring into a keybox file using commands like this one:"
  18163. msgstr ""
  18164. #. type: example
  18165. #: guix-git/doc/guix.texi:12032
  18166. #, no-wrap
  18167. msgid "gpg --export rms@@gnu.org | kbxutil --import-openpgp >> mykeyring.kbx\n"
  18168. msgstr ""
  18169. #. type: table
  18170. #: guix-git/doc/guix.texi:12035
  18171. msgid "Likewise, you can fetch keys to a specific keybox file like this:"
  18172. msgstr ""
  18173. #. type: example
  18174. #: guix-git/doc/guix.texi:12039
  18175. #, no-wrap
  18176. msgid ""
  18177. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  18178. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  18179. msgstr ""
  18180. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  18181. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  18182. #. type: table
  18183. #: guix-git/doc/guix.texi:12043
  18184. msgid "@xref{GPG Configuration Options, @option{--keyring},, gnupg, Using the GNU Privacy Guard}, for more information on GPG's @option{--keyring} option."
  18185. msgstr ""
  18186. #. type: table
  18187. #: guix-git/doc/guix.texi:12047
  18188. msgid "Handle missing OpenPGP keys according to @var{policy}, which may be one of:"
  18189. msgstr ""
  18190. #. type: item
  18191. #: guix-git/doc/guix.texi:12049 guix-git/doc/guix.texi:21092
  18192. #, no-wrap
  18193. msgid "always"
  18194. msgstr ""
  18195. #. type: table
  18196. #: guix-git/doc/guix.texi:12052
  18197. msgid "Always download missing OpenPGP keys from the key server, and add them to the user's GnuPG keyring."
  18198. msgstr ""
  18199. #. type: item
  18200. #: guix-git/doc/guix.texi:12053 guix-git/doc/guix.texi:21094
  18201. #, no-wrap
  18202. msgid "never"
  18203. msgstr ""
  18204. #. type: table
  18205. #: guix-git/doc/guix.texi:12055
  18206. msgid "Never try to download missing OpenPGP keys. Instead just bail out."
  18207. msgstr ""
  18208. #. type: item
  18209. #: guix-git/doc/guix.texi:12056
  18210. #, no-wrap
  18211. msgid "interactive"
  18212. msgstr ""
  18213. #. type: table
  18214. #: guix-git/doc/guix.texi:12059
  18215. msgid "When a package signed with an unknown OpenPGP key is encountered, ask the user whether to download it or not. This is the default behavior."
  18216. msgstr ""
  18217. #. type: item
  18218. #: guix-git/doc/guix.texi:12061
  18219. #, no-wrap
  18220. msgid "--key-server=@var{host}"
  18221. msgstr ""
  18222. #. type: table
  18223. #: guix-git/doc/guix.texi:12063
  18224. msgid "Use @var{host} as the OpenPGP key server when importing a public key."
  18225. msgstr ""
  18226. #. type: Plain text
  18227. #: guix-git/doc/guix.texi:12083
  18228. msgid "The @code{github} updater uses the @uref{https://developer.github.com/v3/, GitHub API} to query for new releases. When used repeatedly e.g.@: when refreshing all packages, GitHub will eventually refuse to answer any further API requests. By default 60 API requests per hour are allowed, and a full refresh on all GitHub packages in Guix requires more than this. Authentication with GitHub through the use of an API token alleviates these limits. To use an API token, set the environment variable @env{GUIX_GITHUB_TOKEN} to a token procured from @uref{https://github.com/settings/tokens} or otherwise."
  18229. msgstr ""
  18230. #. type: section
  18231. #: guix-git/doc/guix.texi:12086
  18232. #, no-wrap
  18233. msgid "Invoking @command{guix lint}"
  18234. msgstr ""
  18235. #. type: command{#1}
  18236. #: guix-git/doc/guix.texi:12088
  18237. #, no-wrap
  18238. msgid "guix lint"
  18239. msgstr ""
  18240. #. type: cindex
  18241. #: guix-git/doc/guix.texi:12089
  18242. #, no-wrap
  18243. msgid "package, checking for errors"
  18244. msgstr ""
  18245. #. type: Plain text
  18246. #: guix-git/doc/guix.texi:12095
  18247. msgid "The @command{guix lint} command is meant to help package developers avoid common errors and use a consistent style. It runs a number of checks on a given set of packages in order to find common mistakes in their definitions. Available @dfn{checkers} include (see @option{--list-checkers} for a complete list):"
  18248. msgstr ""
  18249. #. type: table
  18250. #: guix-git/doc/guix.texi:12101
  18251. msgid "Validate certain typographical and stylistic rules about package descriptions and synopses."
  18252. msgstr ""
  18253. #. type: item
  18254. #: guix-git/doc/guix.texi:12102
  18255. #, no-wrap
  18256. msgid "inputs-should-be-native"
  18257. msgstr ""
  18258. #. type: table
  18259. #: guix-git/doc/guix.texi:12104
  18260. msgid "Identify inputs that should most likely be native inputs."
  18261. msgstr ""
  18262. #. type: itemx
  18263. #: guix-git/doc/guix.texi:12107
  18264. #, no-wrap
  18265. msgid "mirror-url"
  18266. msgstr ""
  18267. #. type: itemx
  18268. #: guix-git/doc/guix.texi:12108
  18269. #, no-wrap
  18270. msgid "github-url"
  18271. msgstr ""
  18272. #. type: itemx
  18273. #: guix-git/doc/guix.texi:12109
  18274. #, no-wrap
  18275. msgid "source-file-name"
  18276. msgstr ""
  18277. #. type: table
  18278. #: guix-git/doc/guix.texi:12116
  18279. msgid "Probe @code{home-page} and @code{source} URLs and report those that are invalid. Suggest a @code{mirror://} URL when applicable. If the @code{source} URL redirects to a GitHub URL, recommend usage of the GitHub URL@. Check that the source file name is meaningful, e.g.@: is not just a version number or ``git-checkout'', without a declared @code{file-name} (@pxref{origin Reference})."
  18280. msgstr ""
  18281. #. type: item
  18282. #: guix-git/doc/guix.texi:12117
  18283. #, no-wrap
  18284. msgid "source-unstable-tarball"
  18285. msgstr ""
  18286. #. type: table
  18287. #: guix-git/doc/guix.texi:12121
  18288. msgid "Parse the @code{source} URL to determine if a tarball from GitHub is autogenerated or if it is a release tarball. Unfortunately GitHub's autogenerated tarballs are sometimes regenerated."
  18289. msgstr ""
  18290. #. type: table
  18291. #: guix-git/doc/guix.texi:12125
  18292. msgid "Check that the derivation of the given packages can be successfully computed for all the supported systems (@pxref{Derivations})."
  18293. msgstr ""
  18294. #. type: item
  18295. #: guix-git/doc/guix.texi:12126
  18296. #, no-wrap
  18297. msgid "profile-collisions"
  18298. msgstr ""
  18299. #. type: table
  18300. #: guix-git/doc/guix.texi:12132
  18301. msgid "Check whether installing the given packages in a profile would lead to collisions. Collisions occur when several packages with the same name but a different version or a different store file name are propagated. @xref{package Reference, @code{propagated-inputs}}, for more information on propagated inputs."
  18302. msgstr ""
  18303. #. type: item
  18304. #: guix-git/doc/guix.texi:12133
  18305. #, no-wrap
  18306. msgid "archival"
  18307. msgstr ""
  18308. #. type: cindex
  18309. #: guix-git/doc/guix.texi:12134
  18310. #, no-wrap
  18311. msgid "Software Heritage, source code archive"
  18312. msgstr ""
  18313. #. type: cindex
  18314. #: guix-git/doc/guix.texi:12135
  18315. #, no-wrap
  18316. msgid "archival of source code, Software Heritage"
  18317. msgstr ""
  18318. #. type: table
  18319. #: guix-git/doc/guix.texi:12138
  18320. msgid "Checks whether the package's source code is archived at @uref{https://www.softwareheritage.org, Software Heritage}."
  18321. msgstr ""
  18322. #. type: table
  18323. #: guix-git/doc/guix.texi:12146
  18324. msgid "When the source code that is not archived comes from a version-control system (VCS)---e.g., it's obtained with @code{git-fetch}, send Software Heritage a ``save'' request so that it eventually archives it. This ensures that the source will remain available in the long term, and that Guix can fall back to Software Heritage should the source code disappear from its original host. The status of recent ``save'' requests can be @uref{https://archive.softwareheritage.org/save/#requests, viewed on-line}."
  18325. msgstr ""
  18326. #. type: table
  18327. #: guix-git/doc/guix.texi:12151
  18328. msgid "When source code is a tarball obtained with @code{url-fetch}, simply print a message when it is not archived. As of this writing, Software Heritage does not allow requests to save arbitrary tarballs; we are working on ways to ensure that non-VCS source code is also archived."
  18329. msgstr ""
  18330. #. type: table
  18331. #: guix-git/doc/guix.texi:12157
  18332. msgid "Software Heritage @uref{https://archive.softwareheritage.org/api/#rate-limiting, limits the request rate per IP address}. When the limit is reached, @command{guix lint} prints a message and the @code{archival} checker stops doing anything until that limit has been reset."
  18333. msgstr ""
  18334. #. type: item
  18335. #: guix-git/doc/guix.texi:12158
  18336. #, no-wrap
  18337. msgid "cve"
  18338. msgstr ""
  18339. #. type: cindex
  18340. #: guix-git/doc/guix.texi:12159 guix-git/doc/guix.texi:35303
  18341. #, no-wrap
  18342. msgid "security vulnerabilities"
  18343. msgstr ""
  18344. #. type: cindex
  18345. #: guix-git/doc/guix.texi:12160
  18346. #, no-wrap
  18347. msgid "CVE, Common Vulnerabilities and Exposures"
  18348. msgstr ""
  18349. #. type: table
  18350. #: guix-git/doc/guix.texi:12165
  18351. msgid "Report known vulnerabilities found in the Common Vulnerabilities and Exposures (CVE) databases of the current and past year @uref{https://nvd.nist.gov/vuln/data-feeds, published by the US NIST}."
  18352. msgstr ""
  18353. #. type: table
  18354. #: guix-git/doc/guix.texi:12167
  18355. msgid "To view information about a particular vulnerability, visit pages such as:"
  18356. msgstr ""
  18357. #. type: indicateurl{#1}
  18358. #: guix-git/doc/guix.texi:12171
  18359. msgid "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-YYYY-ABCD"
  18360. msgstr ""
  18361. #. type: indicateurl{#1}
  18362. #: guix-git/doc/guix.texi:12173
  18363. msgid "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-YYYY-ABCD"
  18364. msgstr ""
  18365. #. type: table
  18366. #: guix-git/doc/guix.texi:12178
  18367. msgid "where @code{CVE-YYYY-ABCD} is the CVE identifier---e.g., @code{CVE-2015-7554}."
  18368. msgstr ""
  18369. #. type: table
  18370. #: guix-git/doc/guix.texi:12183
  18371. msgid "Package developers can specify in package recipes the @uref{https://nvd.nist.gov/products/cpe,Common Platform Enumeration (CPE)} name and version of the package when they differ from the name or version that Guix uses, as in this example:"
  18372. msgstr ""
  18373. #. type: lisp
  18374. #: guix-git/doc/guix.texi:12191
  18375. #, no-wrap
  18376. msgid ""
  18377. "(package\n"
  18378. " (name \"grub\")\n"
  18379. " ;; @dots{}\n"
  18380. " ;; CPE calls this package \"grub2\".\n"
  18381. " (properties '((cpe-name . \"grub2\")\n"
  18382. " (cpe-version . \"2.3\"))))\n"
  18383. msgstr ""
  18384. #. type: table
  18385. #: guix-git/doc/guix.texi:12198
  18386. msgid "Some entries in the CVE database do not specify which version of a package they apply to, and would thus ``stick around'' forever. Package developers who found CVE alerts and verified they can be ignored can declare them as in this example:"
  18387. msgstr ""
  18388. #. type: lisp
  18389. #: guix-git/doc/guix.texi:12208
  18390. #, no-wrap
  18391. msgid ""
  18392. "(package\n"
  18393. " (name \"t1lib\")\n"
  18394. " ;; @dots{}\n"
  18395. " ;; These CVEs no longer apply and can be safely ignored.\n"
  18396. " (properties `((lint-hidden-cve . (\"CVE-2011-0433\"\n"
  18397. " \"CVE-2011-1553\"\n"
  18398. " \"CVE-2011-1554\"\n"
  18399. " \"CVE-2011-5244\")))))\n"
  18400. msgstr ""
  18401. #. type: item
  18402. #: guix-git/doc/guix.texi:12210
  18403. #, no-wrap
  18404. msgid "formatting"
  18405. msgstr ""
  18406. #. type: table
  18407. #: guix-git/doc/guix.texi:12213
  18408. msgid "Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc."
  18409. msgstr ""
  18410. #. type: example
  18411. #: guix-git/doc/guix.texi:12219
  18412. #, no-wrap
  18413. msgid "guix lint @var{options} @var{package}@dots{}\n"
  18414. msgstr ""
  18415. #. type: Plain text
  18416. #: guix-git/doc/guix.texi:12223
  18417. msgid "If no package is given on the command line, then all packages are checked. The @var{options} may be zero or more of the following:"
  18418. msgstr ""
  18419. #. type: item
  18420. #: guix-git/doc/guix.texi:12225
  18421. #, no-wrap
  18422. msgid "--list-checkers"
  18423. msgstr ""
  18424. #. type: table
  18425. #: guix-git/doc/guix.texi:12229
  18426. msgid "List and describe all the available checkers that will be run on packages and exit."
  18427. msgstr ""
  18428. #. type: item
  18429. #: guix-git/doc/guix.texi:12230
  18430. #, no-wrap
  18431. msgid "--checkers"
  18432. msgstr ""
  18433. #. type: itemx
  18434. #: guix-git/doc/guix.texi:12231
  18435. #, no-wrap
  18436. msgid "-c"
  18437. msgstr ""
  18438. #. type: table
  18439. #: guix-git/doc/guix.texi:12234
  18440. msgid "Only enable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  18441. msgstr ""
  18442. #. type: item
  18443. #: guix-git/doc/guix.texi:12235
  18444. #, no-wrap
  18445. msgid "--exclude"
  18446. msgstr ""
  18447. #. type: table
  18448. #: guix-git/doc/guix.texi:12239
  18449. msgid "Only disable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  18450. msgstr ""
  18451. #. type: item
  18452. #: guix-git/doc/guix.texi:12240
  18453. #, no-wrap
  18454. msgid "--no-network"
  18455. msgstr ""
  18456. #. type: table
  18457. #: guix-git/doc/guix.texi:12243
  18458. msgid "Only enable the checkers that do not depend on Internet access."
  18459. msgstr ""
  18460. #. type: section
  18461. #: guix-git/doc/guix.texi:12255
  18462. #, no-wrap
  18463. msgid "Invoking @command{guix size}"
  18464. msgstr ""
  18465. #. type: code{#1}
  18466. #: guix-git/doc/guix.texi:12257 guix-git/doc/guix.texi:34216
  18467. #, no-wrap
  18468. msgid "size"
  18469. msgstr ""
  18470. #. type: cindex
  18471. #: guix-git/doc/guix.texi:12258
  18472. #, no-wrap
  18473. msgid "package size"
  18474. msgstr ""
  18475. #. type: command{#1}
  18476. #: guix-git/doc/guix.texi:12260
  18477. #, no-wrap
  18478. msgid "guix size"
  18479. msgstr ""
  18480. #. type: Plain text
  18481. #: guix-git/doc/guix.texi:12267
  18482. msgid "The @command{guix size} command helps package developers profile the disk usage of packages. It is easy to overlook the impact of an additional dependency added to a package, or the impact of using a single output for a package that could easily be split (@pxref{Packages with Multiple Outputs}). Such are the typical issues that @command{guix size} can highlight."
  18483. msgstr ""
  18484. #. type: Plain text
  18485. #: guix-git/doc/guix.texi:12272
  18486. msgid "The command can be passed one or more package specifications such as @code{gcc@@4.8} or @code{guile:debug}, or a file name in the store. Consider this example:"
  18487. msgstr ""
  18488. #. type: example
  18489. #: guix-git/doc/guix.texi:12285
  18490. #, no-wrap
  18491. msgid ""
  18492. "$ guix size coreutils\n"
  18493. "store item total self\n"
  18494. "/gnu/store/@dots{}-gcc-5.5.0-lib 60.4 30.1 38.1%\n"
  18495. "/gnu/store/@dots{}-glibc-2.27 30.3 28.8 36.6%\n"
  18496. "/gnu/store/@dots{}-coreutils-8.28 78.9 15.0 19.0%\n"
  18497. "/gnu/store/@dots{}-gmp-6.1.2 63.1 2.7 3.4%\n"
  18498. "/gnu/store/@dots{}-bash-static-4.4.12 1.5 1.5 1.9%\n"
  18499. "/gnu/store/@dots{}-acl-2.2.52 61.1 0.4 0.5%\n"
  18500. "/gnu/store/@dots{}-attr-2.4.47 60.6 0.2 0.3%\n"
  18501. "/gnu/store/@dots{}-libcap-2.25 60.5 0.2 0.2%\n"
  18502. "total: 78.9 MiB\n"
  18503. msgstr ""
  18504. #. type: Plain text
  18505. #: guix-git/doc/guix.texi:12291
  18506. msgid "The store items listed here constitute the @dfn{transitive closure} of Coreutils---i.e., Coreutils and all its dependencies, recursively---as would be returned by:"
  18507. msgstr ""
  18508. #. type: example
  18509. #: guix-git/doc/guix.texi:12294
  18510. #, no-wrap
  18511. msgid "$ guix gc -R /gnu/store/@dots{}-coreutils-8.23\n"
  18512. msgstr ""
  18513. #. type: Plain text
  18514. #: guix-git/doc/guix.texi:12302
  18515. msgid "Here the output shows three columns next to store items. The first column, labeled ``total'', shows the size in mebibytes (MiB) of the closure of the store item---that is, its own size plus the size of all its dependencies. The next column, labeled ``self'', shows the size of the item itself. The last column shows the ratio of the size of the item itself to the space occupied by all the items listed here."
  18516. msgstr ""
  18517. #. type: Plain text
  18518. #: guix-git/doc/guix.texi:12308
  18519. msgid "In this example, we see that the closure of Coreutils weighs in at 79@tie{}MiB, most of which is taken by libc and GCC's run-time support libraries. (That libc and GCC's libraries represent a large fraction of the closure is not a problem @i{per se} because they are always available on the system anyway.)"
  18520. msgstr ""
  18521. #. type: Plain text
  18522. #: guix-git/doc/guix.texi:12311
  18523. msgid "Since the command also accepts store file names, assessing the size of a build result is straightforward:"
  18524. msgstr ""
  18525. #. type: example
  18526. #: guix-git/doc/guix.texi:12314
  18527. #, no-wrap
  18528. msgid "guix size $(guix system build config.scm)\n"
  18529. msgstr ""
  18530. #. type: Plain text
  18531. #: guix-git/doc/guix.texi:12324
  18532. msgid "When the package(s) passed to @command{guix size} are available in the store@footnote{More precisely, @command{guix size} looks for the @emph{ungrafted} variant of the given package(s), as returned by @code{guix build @var{package} --no-grafts}. @xref{Security Updates}, for information on grafts.}, @command{guix size} queries the daemon to determine its dependencies, and measures its size in the store, similar to @command{du -ms --apparent-size} (@pxref{du invocation,,, coreutils, GNU Coreutils})."
  18533. msgstr ""
  18534. #. type: Plain text
  18535. #: guix-git/doc/guix.texi:12329
  18536. msgid "When the given packages are @emph{not} in the store, @command{guix size} reports information based on the available substitutes (@pxref{Substitutes}). This makes it possible it to profile disk usage of store items that are not even on disk, only available remotely."
  18537. msgstr ""
  18538. #. type: Plain text
  18539. #: guix-git/doc/guix.texi:12331
  18540. msgid "You can also specify several package names:"
  18541. msgstr ""
  18542. #. type: example
  18543. #: guix-git/doc/guix.texi:12341
  18544. #, no-wrap
  18545. msgid ""
  18546. "$ guix size coreutils grep sed bash\n"
  18547. "store item total self\n"
  18548. "/gnu/store/@dots{}-coreutils-8.24 77.8 13.8 13.4%\n"
  18549. "/gnu/store/@dots{}-grep-2.22 73.1 0.8 0.8%\n"
  18550. "/gnu/store/@dots{}-bash-4.3.42 72.3 4.7 4.6%\n"
  18551. "/gnu/store/@dots{}-readline-6.3 67.6 1.2 1.2%\n"
  18552. "@dots{}\n"
  18553. "total: 102.3 MiB\n"
  18554. msgstr ""
  18555. #. type: Plain text
  18556. #: guix-git/doc/guix.texi:12347
  18557. msgid "In this example we see that the combination of the four packages takes 102.3@tie{}MiB in total, which is much less than the sum of each closure since they have a lot of dependencies in common."
  18558. msgstr ""
  18559. #. type: Plain text
  18560. #: guix-git/doc/guix.texi:12353
  18561. msgid "When looking at the profile returned by @command{guix size}, you may find yourself wondering why a given package shows up in the profile at all. To understand it, you can use @command{guix graph --path -t references} to display the shortest path between the two packages (@pxref{Invoking guix graph})."
  18562. msgstr ""
  18563. #. type: Plain text
  18564. #: guix-git/doc/guix.texi:12355
  18565. msgid "The available options are:"
  18566. msgstr ""
  18567. #. type: table
  18568. #: guix-git/doc/guix.texi:12361
  18569. msgid "Use substitute information from @var{urls}. @xref{client-substitute-urls, the same option for @code{guix build}}."
  18570. msgstr ""
  18571. #. type: item
  18572. #: guix-git/doc/guix.texi:12362
  18573. #, no-wrap
  18574. msgid "--sort=@var{key}"
  18575. msgstr ""
  18576. #. type: table
  18577. #: guix-git/doc/guix.texi:12364
  18578. msgid "Sort lines according to @var{key}, one of the following options:"
  18579. msgstr ""
  18580. #. type: item
  18581. #: guix-git/doc/guix.texi:12366
  18582. #, no-wrap
  18583. msgid "self"
  18584. msgstr ""
  18585. #. type: table
  18586. #: guix-git/doc/guix.texi:12368
  18587. msgid "the size of each item (the default);"
  18588. msgstr ""
  18589. #. type: table
  18590. #: guix-git/doc/guix.texi:12370
  18591. msgid "the total size of the item's closure."
  18592. msgstr ""
  18593. #. type: item
  18594. #: guix-git/doc/guix.texi:12372
  18595. #, no-wrap
  18596. msgid "--map-file=@var{file}"
  18597. msgstr ""
  18598. #. type: table
  18599. #: guix-git/doc/guix.texi:12374
  18600. msgid "Write a graphical map of disk usage in PNG format to @var{file}."
  18601. msgstr ""
  18602. #. type: table
  18603. #: guix-git/doc/guix.texi:12376
  18604. msgid "For the example above, the map looks like this:"
  18605. msgstr ""
  18606. #. type: table
  18607. #: guix-git/doc/guix.texi:12379
  18608. msgid "@image{images/coreutils-size-map,5in,, map of Coreutils disk usage produced by @command{guix size}}"
  18609. msgstr ""
  18610. #. type: table
  18611. #: guix-git/doc/guix.texi:12384
  18612. msgid "This option requires that @uref{https://wingolog.org/software/guile-charting/, Guile-Charting} be installed and visible in Guile's module search path. When that is not the case, @command{guix size} fails as it tries to load it."
  18613. msgstr ""
  18614. #. type: table
  18615. #: guix-git/doc/guix.texi:12388
  18616. msgid "Consider packages for @var{system}---e.g., @code{x86_64-linux}."
  18617. msgstr ""
  18618. #. type: section
  18619. #: guix-git/doc/guix.texi:12399
  18620. #, no-wrap
  18621. msgid "Invoking @command{guix graph}"
  18622. msgstr ""
  18623. #. type: cindex
  18624. #: guix-git/doc/guix.texi:12401
  18625. #, no-wrap
  18626. msgid "DAG"
  18627. msgstr ""
  18628. #. type: command{#1}
  18629. #: guix-git/doc/guix.texi:12402
  18630. #, no-wrap
  18631. msgid "guix graph"
  18632. msgstr ""
  18633. #. type: Plain text
  18634. #: guix-git/doc/guix.texi:12417
  18635. msgid "Packages and their dependencies form a @dfn{graph}, specifically a directed acyclic graph (DAG). It can quickly become difficult to have a mental model of the package DAG, so the @command{guix graph} command provides a visual representation of the DAG@. By default, @command{guix graph} emits a DAG representation in the input format of @uref{https://www.graphviz.org/, Graphviz}, so its output can be passed directly to the @command{dot} command of Graphviz. It can also emit an HTML page with embedded JavaScript code to display a ``chord diagram'' in a Web browser, using the @uref{https://d3js.org/, d3.js} library, or emit Cypher queries to construct a graph in a graph database supporting the @uref{https://www.opencypher.org/, openCypher} query language. With @option{--path}, it simply displays the shortest path between two packages. The general syntax is:"
  18636. msgstr ""
  18637. #. type: example
  18638. #: guix-git/doc/guix.texi:12420
  18639. #, no-wrap
  18640. msgid "guix graph @var{options} @var{package}@dots{}\n"
  18641. msgstr ""
  18642. #. type: Plain text
  18643. #: guix-git/doc/guix.texi:12425
  18644. msgid "For example, the following command generates a PDF file representing the package DAG for the GNU@tie{}Core Utilities, showing its build-time dependencies:"
  18645. msgstr ""
  18646. #. type: example
  18647. #: guix-git/doc/guix.texi:12428
  18648. #, no-wrap
  18649. msgid "guix graph coreutils | dot -Tpdf > dag.pdf\n"
  18650. msgstr ""
  18651. #. type: Plain text
  18652. #: guix-git/doc/guix.texi:12431
  18653. msgid "The output looks like this:"
  18654. msgstr ""
  18655. #. type: Plain text
  18656. #: guix-git/doc/guix.texi:12433
  18657. msgid "@image{images/coreutils-graph,2in,,Dependency graph of the GNU Coreutils}"
  18658. msgstr ""
  18659. #. type: Plain text
  18660. #: guix-git/doc/guix.texi:12435
  18661. msgid "Nice little graph, no?"
  18662. msgstr ""
  18663. #. type: Plain text
  18664. #: guix-git/doc/guix.texi:12438
  18665. msgid "You may find it more pleasant to navigate the graph interactively with @command{xdot} (from the @code{xdot} package):"
  18666. msgstr ""
  18667. #. type: example
  18668. #: guix-git/doc/guix.texi:12441
  18669. #, no-wrap
  18670. msgid "guix graph coreutils | xdot -\n"
  18671. msgstr ""
  18672. #. type: Plain text
  18673. #: guix-git/doc/guix.texi:12448
  18674. msgid "But there is more than one graph! The one above is concise: it is the graph of package objects, omitting implicit inputs such as GCC, libc, grep, etc. It is often useful to have such a concise graph, but sometimes one may want to see more details. @command{guix graph} supports several types of graphs, allowing you to choose the level of detail:"
  18675. msgstr ""
  18676. #. type: table
  18677. #: guix-git/doc/guix.texi:12454
  18678. msgid "This is the default type used in the example above. It shows the DAG of package objects, excluding implicit dependencies. It is concise, but filters out many details."
  18679. msgstr ""
  18680. #. type: item
  18681. #: guix-git/doc/guix.texi:12455
  18682. #, no-wrap
  18683. msgid "reverse-package"
  18684. msgstr ""
  18685. #. type: table
  18686. #: guix-git/doc/guix.texi:12457
  18687. msgid "This shows the @emph{reverse} DAG of packages. For example:"
  18688. msgstr ""
  18689. #. type: example
  18690. #: guix-git/doc/guix.texi:12460
  18691. #, no-wrap
  18692. msgid "guix graph --type=reverse-package ocaml\n"
  18693. msgstr ""
  18694. #. type: table
  18695. #: guix-git/doc/guix.texi:12465
  18696. msgid "...@: yields the graph of packages that @emph{explicitly} depend on OCaml (if you are also interested in cases where OCaml is an implicit dependency, see @code{reverse-bag} below)."
  18697. msgstr ""
  18698. #. type: table
  18699. #: guix-git/doc/guix.texi:12470
  18700. msgid "Note that for core packages this can yield huge graphs. If all you want is to know the number of packages that depend on a given package, use @command{guix refresh --list-dependent} (@pxref{Invoking guix refresh, @option{--list-dependent}})."
  18701. msgstr ""
  18702. #. type: item
  18703. #: guix-git/doc/guix.texi:12471
  18704. #, no-wrap
  18705. msgid "bag-emerged"
  18706. msgstr ""
  18707. #. type: table
  18708. #: guix-git/doc/guix.texi:12473
  18709. msgid "This is the package DAG, @emph{including} implicit inputs."
  18710. msgstr ""
  18711. #. type: table
  18712. #: guix-git/doc/guix.texi:12475
  18713. msgid "For instance, the following command:"
  18714. msgstr ""
  18715. #. type: example
  18716. #: guix-git/doc/guix.texi:12478
  18717. #, no-wrap
  18718. msgid "guix graph --type=bag-emerged coreutils\n"
  18719. msgstr ""
  18720. #. type: table
  18721. #: guix-git/doc/guix.texi:12481
  18722. msgid "...@: yields this bigger graph:"
  18723. msgstr ""
  18724. #. type: table
  18725. #: guix-git/doc/guix.texi:12483
  18726. msgid "@image{images/coreutils-bag-graph,,5in,Detailed dependency graph of the GNU Coreutils}"
  18727. msgstr ""
  18728. #. type: table
  18729. #: guix-git/doc/guix.texi:12486
  18730. msgid "At the bottom of the graph, we see all the implicit inputs of @var{gnu-build-system} (@pxref{Build Systems, @code{gnu-build-system}})."
  18731. msgstr ""
  18732. #. type: table
  18733. #: guix-git/doc/guix.texi:12490
  18734. msgid "Now, note that the dependencies of these implicit inputs---that is, the @dfn{bootstrap dependencies} (@pxref{Bootstrapping})---are not shown here, for conciseness."
  18735. msgstr ""
  18736. #. type: item
  18737. #: guix-git/doc/guix.texi:12491
  18738. #, no-wrap
  18739. msgid "bag"
  18740. msgstr ""
  18741. #. type: table
  18742. #: guix-git/doc/guix.texi:12494
  18743. msgid "Similar to @code{bag-emerged}, but this time including all the bootstrap dependencies."
  18744. msgstr ""
  18745. #. type: item
  18746. #: guix-git/doc/guix.texi:12495
  18747. #, no-wrap
  18748. msgid "bag-with-origins"
  18749. msgstr ""
  18750. #. type: table
  18751. #: guix-git/doc/guix.texi:12497
  18752. msgid "Similar to @code{bag}, but also showing origins and their dependencies."
  18753. msgstr ""
  18754. #. type: item
  18755. #: guix-git/doc/guix.texi:12498
  18756. #, no-wrap
  18757. msgid "reverse-bag"
  18758. msgstr ""
  18759. #. type: table
  18760. #: guix-git/doc/guix.texi:12501
  18761. msgid "This shows the @emph{reverse} DAG of packages. Unlike @code{reverse-package}, it also takes implicit dependencies into account. For example:"
  18762. msgstr ""
  18763. #. type: example
  18764. #: guix-git/doc/guix.texi:12504
  18765. #, no-wrap
  18766. msgid "guix graph -t reverse-bag dune\n"
  18767. msgstr ""
  18768. #. type: table
  18769. #: guix-git/doc/guix.texi:12511
  18770. msgid "...@: yields the graph of all packages that depend on Dune, directly or indirectly. Since Dune is an @emph{implicit} dependency of many packages @i{via} @code{dune-build-system}, this shows a large number of packages, whereas @code{reverse-package} would show very few if any."
  18771. msgstr ""
  18772. #. type: table
  18773. #: guix-git/doc/guix.texi:12517
  18774. msgid "This is the most detailed representation: It shows the DAG of derivations (@pxref{Derivations}) and plain store items. Compared to the above representation, many additional nodes are visible, including build scripts, patches, Guile modules, etc."
  18775. msgstr ""
  18776. #. type: table
  18777. #: guix-git/doc/guix.texi:12520
  18778. msgid "For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in:"
  18779. msgstr ""
  18780. #. type: example
  18781. #: guix-git/doc/guix.texi:12523
  18782. #, no-wrap
  18783. msgid "guix graph -t derivation $(guix system build -d my-config.scm)\n"
  18784. msgstr ""
  18785. #. type: item
  18786. #: guix-git/doc/guix.texi:12525
  18787. #, no-wrap
  18788. msgid "module"
  18789. msgstr "模块"
  18790. #. type: table
  18791. #: guix-git/doc/guix.texi:12529
  18792. msgid "This is the graph of @dfn{package modules} (@pxref{Package Modules}). For example, the following command shows the graph for the package module that defines the @code{guile} package:"
  18793. msgstr ""
  18794. #. type: example
  18795. #: guix-git/doc/guix.texi:12532
  18796. #, no-wrap
  18797. msgid "guix graph -t module guile | xdot -\n"
  18798. msgstr ""
  18799. #. type: Plain text
  18800. #: guix-git/doc/guix.texi:12537
  18801. msgid "All the types above correspond to @emph{build-time dependencies}. The following graph type represents the @emph{run-time dependencies}:"
  18802. msgstr ""
  18803. #. type: table
  18804. #: guix-git/doc/guix.texi:12542
  18805. msgid "This is the graph of @dfn{references} of a package output, as returned by @command{guix gc --references} (@pxref{Invoking guix gc})."
  18806. msgstr ""
  18807. #. type: table
  18808. #: guix-git/doc/guix.texi:12545
  18809. msgid "If the given package output is not available in the store, @command{guix graph} attempts to obtain dependency information from substitutes."
  18810. msgstr ""
  18811. #. type: table
  18812. #: guix-git/doc/guix.texi:12549
  18813. msgid "Here you can also pass a store file name instead of a package name. For example, the command below produces the reference graph of your profile (which can be big!):"
  18814. msgstr ""
  18815. #. type: example
  18816. #: guix-git/doc/guix.texi:12552
  18817. #, no-wrap
  18818. msgid "guix graph -t references $(readlink -f ~/.guix-profile)\n"
  18819. msgstr ""
  18820. #. type: item
  18821. #: guix-git/doc/guix.texi:12554
  18822. #, no-wrap
  18823. msgid "referrers"
  18824. msgstr ""
  18825. #. type: table
  18826. #: guix-git/doc/guix.texi:12557
  18827. msgid "This is the graph of the @dfn{referrers} of a store item, as returned by @command{guix gc --referrers} (@pxref{Invoking guix gc})."
  18828. msgstr ""
  18829. #. type: table
  18830. #: guix-git/doc/guix.texi:12563
  18831. msgid "This relies exclusively on local information from your store. For instance, let us suppose that the current Inkscape is available in 10 profiles on your machine; @command{guix graph -t referrers inkscape} will show a graph rooted at Inkscape and with those 10 profiles linked to it."
  18832. msgstr ""
  18833. #. type: table
  18834. #: guix-git/doc/guix.texi:12566
  18835. msgid "It can help determine what is preventing a store item from being garbage collected."
  18836. msgstr ""
  18837. #. type: cindex
  18838. #: guix-git/doc/guix.texi:12569
  18839. #, fuzzy, no-wrap
  18840. msgid "shortest path, between packages"
  18841. msgstr "超过1200个受影响的软件包"
  18842. #. type: Plain text
  18843. #: guix-git/doc/guix.texi:12576
  18844. msgid "Often, the graph of the package you are interested in does not fit on your screen, and anyway all you want to know is @emph{why} that package actually depends on some seemingly unrelated package. The @option{--path} option instructs @command{guix graph} to display the shortest path between two packages (or derivations, or store items, etc.):"
  18845. msgstr ""
  18846. #. type: example
  18847. #: guix-git/doc/guix.texi:12590
  18848. #, no-wrap
  18849. msgid ""
  18850. "$ guix graph --path emacs libunistring\n"
  18851. "emacs@@26.3\n"
  18852. "mailutils@@3.9\n"
  18853. "libunistring@@0.9.10\n"
  18854. "$ guix graph --path -t derivation emacs libunistring\n"
  18855. "/gnu/store/@dots{}-emacs-26.3.drv\n"
  18856. "/gnu/store/@dots{}-mailutils-3.9.drv\n"
  18857. "/gnu/store/@dots{}-libunistring-0.9.10.drv\n"
  18858. "$ guix graph --path -t references emacs libunistring\n"
  18859. "/gnu/store/@dots{}-emacs-26.3\n"
  18860. "/gnu/store/@dots{}-libidn2-2.2.0\n"
  18861. "/gnu/store/@dots{}-libunistring-0.9.10\n"
  18862. msgstr ""
  18863. #. type: Plain text
  18864. #: guix-git/doc/guix.texi:12593
  18865. msgid "The available options are the following:"
  18866. msgstr ""
  18867. #. type: table
  18868. #: guix-git/doc/guix.texi:12599
  18869. msgid "Produce a graph output of @var{type}, where @var{type} must be one of the values listed above."
  18870. msgstr ""
  18871. #. type: item
  18872. #: guix-git/doc/guix.texi:12600
  18873. #, no-wrap
  18874. msgid "--list-types"
  18875. msgstr ""
  18876. #. type: table
  18877. #: guix-git/doc/guix.texi:12602
  18878. msgid "List the supported graph types."
  18879. msgstr ""
  18880. #. type: item
  18881. #: guix-git/doc/guix.texi:12603
  18882. #, no-wrap
  18883. msgid "--backend=@var{backend}"
  18884. msgstr ""
  18885. #. type: itemx
  18886. #: guix-git/doc/guix.texi:12604
  18887. #, no-wrap
  18888. msgid "-b @var{backend}"
  18889. msgstr ""
  18890. #. type: table
  18891. #: guix-git/doc/guix.texi:12606
  18892. msgid "Produce a graph using the selected @var{backend}."
  18893. msgstr ""
  18894. #. type: item
  18895. #: guix-git/doc/guix.texi:12607
  18896. #, no-wrap
  18897. msgid "--list-backends"
  18898. msgstr ""
  18899. #. type: table
  18900. #: guix-git/doc/guix.texi:12609
  18901. msgid "List the supported graph backends."
  18902. msgstr ""
  18903. #. type: table
  18904. #: guix-git/doc/guix.texi:12611
  18905. msgid "Currently, the available backends are Graphviz and d3.js."
  18906. msgstr ""
  18907. #. type: item
  18908. #: guix-git/doc/guix.texi:12612
  18909. #, no-wrap
  18910. msgid "--path"
  18911. msgstr ""
  18912. #. type: table
  18913. #: guix-git/doc/guix.texi:12617
  18914. msgid "Display the shortest path between two nodes of the type specified by @option{--type}. The example below shows the shortest path between @code{libreoffice} and @code{llvm} according to the references of @code{libreoffice}:"
  18915. msgstr ""
  18916. #. type: example
  18917. #: guix-git/doc/guix.texi:12624
  18918. #, no-wrap
  18919. msgid ""
  18920. "$ guix graph --path -t references libreoffice llvm\n"
  18921. "/gnu/store/@dots{}-libreoffice-6.4.2.2\n"
  18922. "/gnu/store/@dots{}-libepoxy-1.5.4\n"
  18923. "/gnu/store/@dots{}-mesa-19.3.4\n"
  18924. "/gnu/store/@dots{}-llvm-9.0.1\n"
  18925. msgstr ""
  18926. #. type: example
  18927. #: guix-git/doc/guix.texi:12634
  18928. #, no-wrap
  18929. msgid "guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'\n"
  18930. msgstr ""
  18931. #. type: table
  18932. #: guix-git/doc/guix.texi:12639
  18933. msgid "Display the graph for @var{system}---e.g., @code{i686-linux}."
  18934. msgstr ""
  18935. #. type: table
  18936. #: guix-git/doc/guix.texi:12642
  18937. msgid "The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize."
  18938. msgstr ""
  18939. #. type: Plain text
  18940. #: guix-git/doc/guix.texi:12658
  18941. msgid "On top of that, @command{guix graph} supports all the usual package transformation options (@pxref{Package Transformation Options}). This makes it easy to view the effect of a graph-rewriting transformation such as @option{--with-input}. For example, the command below outputs the graph of @code{git} once @code{openssl} has been replaced by @code{libressl} everywhere in the graph:"
  18942. msgstr ""
  18943. #. type: example
  18944. #: guix-git/doc/guix.texi:12661
  18945. #, no-wrap
  18946. msgid "guix graph git --with-input=openssl=libressl\n"
  18947. msgstr ""
  18948. #. type: Plain text
  18949. #: guix-git/doc/guix.texi:12664
  18950. msgid "So many possibilities, so much fun!"
  18951. msgstr ""
  18952. #. type: section
  18953. #: guix-git/doc/guix.texi:12666
  18954. #, no-wrap
  18955. msgid "Invoking @command{guix publish}"
  18956. msgstr ""
  18957. #. type: command{#1}
  18958. #: guix-git/doc/guix.texi:12668
  18959. #, no-wrap
  18960. msgid "guix publish"
  18961. msgstr ""
  18962. #. type: Plain text
  18963. #: guix-git/doc/guix.texi:12672
  18964. msgid "The purpose of @command{guix publish} is to enable users to easily share their store with others, who can then use it as a substitute server (@pxref{Substitutes})."
  18965. msgstr ""
  18966. #. type: Plain text
  18967. #: guix-git/doc/guix.texi:12678
  18968. msgid "When @command{guix publish} runs, it spawns an HTTP server which allows anyone with network access to obtain substitutes from it. This means that any machine running Guix can also act as if it were a build farm, since the HTTP interface is compatible with Cuirass, the software behind the @code{@value{SUBSTITUTE-SERVER-1}} build farm."
  18969. msgstr ""
  18970. #. type: Plain text
  18971. #: guix-git/doc/guix.texi:12684
  18972. msgid "For security, each substitute is signed, allowing recipients to check their authenticity and integrity (@pxref{Substitutes}). Because @command{guix publish} uses the signing key of the system, which is only readable by the system administrator, it must be started as root; the @option{--user} option makes it drop root privileges early on."
  18973. msgstr ""
  18974. #. type: Plain text
  18975. #: guix-git/doc/guix.texi:12688
  18976. msgid "The signing key pair must be generated before @command{guix publish} is launched, using @command{guix archive --generate-key} (@pxref{Invoking guix archive})."
  18977. msgstr ""
  18978. #. type: Plain text
  18979. #: guix-git/doc/guix.texi:12693
  18980. msgid "When the @option{--advertise} option is passed, the server advertises its availability on the local network using multicast DNS (mDNS) and DNS service discovery (DNS-SD), currently @i{via} Guile-Avahi (@pxref{Top,,, guile-avahi, Using Avahi in Guile Scheme Programs})."
  18981. msgstr ""
  18982. #. type: example
  18983. #: guix-git/doc/guix.texi:12698
  18984. #, no-wrap
  18985. msgid "guix publish @var{options}@dots{}\n"
  18986. msgstr ""
  18987. #. type: Plain text
  18988. #: guix-git/doc/guix.texi:12702
  18989. msgid "Running @command{guix publish} without any additional arguments will spawn an HTTP server on port 8080:"
  18990. msgstr ""
  18991. #. type: example
  18992. #: guix-git/doc/guix.texi:12705
  18993. #, no-wrap
  18994. msgid "guix publish\n"
  18995. msgstr ""
  18996. #. type: Plain text
  18997. #: guix-git/doc/guix.texi:12709
  18998. msgid "Once a publishing server has been authorized, the daemon may download substitutes from it. @xref{Getting Substitutes from Other Servers}."
  18999. msgstr ""
  19000. #. type: Plain text
  19001. #: guix-git/doc/guix.texi:12717
  19002. msgid "By default, @command{guix publish} compresses archives on the fly as it serves them. This ``on-the-fly'' mode is convenient in that it requires no setup and is immediately available. However, when serving lots of clients, we recommend using the @option{--cache} option, which enables caching of the archives before they are sent to clients---see below for details. The @command{guix weather} command provides a handy way to check what a server provides (@pxref{Invoking guix weather})."
  19003. msgstr ""
  19004. #. type: Plain text
  19005. #: guix-git/doc/guix.texi:12724
  19006. msgid "As a bonus, @command{guix publish} also serves as a content-addressed mirror for source files referenced in @code{origin} records (@pxref{origin Reference}). For instance, assuming @command{guix publish} is running on @code{example.org}, the following URL returns the raw @file{hello-2.10.tar.gz} file with the given SHA256 hash (represented in @code{nix-base32} format, @pxref{Invoking guix hash}):"
  19007. msgstr ""
  19008. #. type: example
  19009. #: guix-git/doc/guix.texi:12727
  19010. #, no-wrap
  19011. msgid "http://example.org/file/hello-2.10.tar.gz/sha256/0ssi1@dots{}ndq1i\n"
  19012. msgstr ""
  19013. #. type: Plain text
  19014. #: guix-git/doc/guix.texi:12731
  19015. msgid "Obviously, these URLs only work for files that are in the store; in other cases, they return 404 (``Not Found'')."
  19016. msgstr ""
  19017. #. type: cindex
  19018. #: guix-git/doc/guix.texi:12732
  19019. #, no-wrap
  19020. msgid "build logs, publication"
  19021. msgstr ""
  19022. #. type: Plain text
  19023. #: guix-git/doc/guix.texi:12734
  19024. msgid "Build logs are available from @code{/log} URLs like:"
  19025. msgstr ""
  19026. #. type: example
  19027. #: guix-git/doc/guix.texi:12737
  19028. #, no-wrap
  19029. msgid "http://example.org/log/gwspk@dots{}-guile-2.2.3\n"
  19030. msgstr ""
  19031. #. type: Plain text
  19032. #: guix-git/doc/guix.texi:12747
  19033. msgid "When @command{guix-daemon} is configured to save compressed build logs, as is the case by default (@pxref{Invoking guix-daemon}), @code{/log} URLs return the compressed log as-is, with an appropriate @code{Content-Type} and/or @code{Content-Encoding} header. We recommend running @command{guix-daemon} with @option{--log-compression=gzip} since Web browsers can automatically decompress it, which is not the case with Bzip2 compression."
  19034. msgstr ""
  19035. #. type: item
  19036. #: guix-git/doc/guix.texi:12751
  19037. #, no-wrap
  19038. msgid "--port=@var{port}"
  19039. msgstr ""
  19040. #. type: itemx
  19041. #: guix-git/doc/guix.texi:12752
  19042. #, no-wrap
  19043. msgid "-p @var{port}"
  19044. msgstr ""
  19045. #. type: table
  19046. #: guix-git/doc/guix.texi:12754
  19047. msgid "Listen for HTTP requests on @var{port}."
  19048. msgstr ""
  19049. #. type: item
  19050. #: guix-git/doc/guix.texi:12755
  19051. #, no-wrap
  19052. msgid "--listen=@var{host}"
  19053. msgstr ""
  19054. #. type: table
  19055. #: guix-git/doc/guix.texi:12758
  19056. msgid "Listen on the network interface for @var{host}. The default is to accept connections from any interface."
  19057. msgstr ""
  19058. #. type: table
  19059. #: guix-git/doc/guix.texi:12763
  19060. msgid "Change privileges to @var{user} as soon as possible---i.e., once the server socket is open and the signing key has been read."
  19061. msgstr ""
  19062. #. type: item
  19063. #: guix-git/doc/guix.texi:12764
  19064. #, fuzzy, no-wrap
  19065. msgid "--compression[=@var{method}[:@var{level}]]"
  19066. msgstr "--log-compression=@var{type}"
  19067. #. type: itemx
  19068. #: guix-git/doc/guix.texi:12765
  19069. #, no-wrap
  19070. msgid "-C [@var{method}[:@var{level}]]"
  19071. msgstr ""
  19072. #. type: table
  19073. #: guix-git/doc/guix.texi:12769
  19074. msgid "Compress data using the given @var{method} and @var{level}. @var{method} is one of @code{lzip}, @code{zstd}, and @code{gzip}; when @var{method} is omitted, @code{gzip} is used."
  19075. msgstr ""
  19076. #. type: table
  19077. #: guix-git/doc/guix.texi:12773
  19078. msgid "When @var{level} is zero, disable compression. The range 1 to 9 corresponds to different compression levels: 1 is the fastest, and 9 is the best (CPU-intensive). The default is 3."
  19079. msgstr ""
  19080. #. type: table
  19081. #: guix-git/doc/guix.texi:12780
  19082. msgid "Usually, @code{lzip} compresses noticeably better than @code{gzip} for a small increase in CPU usage; see @uref{https://nongnu.org/lzip/lzip_benchmark.html,benchmarks on the lzip Web page}. However, @code{lzip} achieves low decompression throughput (on the order of 50@tie{}MiB/s on modern hardware), which can be a bottleneck for someone who downloads over a fast network connection."
  19083. msgstr ""
  19084. #. type: table
  19085. #: guix-git/doc/guix.texi:12784
  19086. msgid "The compression ratio of @code{zstd} is between that of @code{lzip} and that of @code{gzip}; its main advantage is a @uref{https://facebook.github.io/zstd/,high decompression speed}."
  19087. msgstr ""
  19088. #. type: table
  19089. #: guix-git/doc/guix.texi:12793
  19090. msgid "Unless @option{--cache} is used, compression occurs on the fly and the compressed streams are not cached. Thus, to reduce load on the machine that runs @command{guix publish}, it may be a good idea to choose a low compression level, to run @command{guix publish} behind a caching proxy, or to use @option{--cache}. Using @option{--cache} has the advantage that it allows @command{guix publish} to add @code{Content-Length} HTTP header to its responses."
  19091. msgstr ""
  19092. #. type: table
  19093. #: guix-git/doc/guix.texi:12798
  19094. msgid "This option can be repeated, in which case every substitute gets compressed using all the selected methods, and all of them are advertised. This is useful when users may not support all the compression methods: they can select the one they support."
  19095. msgstr ""
  19096. #. type: item
  19097. #: guix-git/doc/guix.texi:12799
  19098. #, no-wrap
  19099. msgid "--cache=@var{directory}"
  19100. msgstr ""
  19101. #. type: itemx
  19102. #: guix-git/doc/guix.texi:12800
  19103. #, no-wrap
  19104. msgid "-c @var{directory}"
  19105. msgstr ""
  19106. #. type: table
  19107. #: guix-git/doc/guix.texi:12803
  19108. msgid "Cache archives and meta-data (@code{.narinfo} URLs) to @var{directory} and only serve archives that are in cache."
  19109. msgstr ""
  19110. #. type: table
  19111. #: guix-git/doc/guix.texi:12811
  19112. msgid "When this option is omitted, archives and meta-data are created on-the-fly. This can reduce the available bandwidth, especially when compression is enabled, since this may become CPU-bound. Another drawback of the default mode is that the length of archives is not known in advance, so @command{guix publish} does not add a @code{Content-Length} HTTP header to its responses, which in turn prevents clients from knowing the amount of data being downloaded."
  19113. msgstr ""
  19114. #. type: table
  19115. #: guix-git/doc/guix.texi:12819
  19116. msgid "Conversely, when @option{--cache} is used, the first request for a store item (@i{via} a @code{.narinfo} URL) triggers a background process to @dfn{bake} the archive---computing its @code{.narinfo} and compressing the archive, if needed. Once the archive is cached in @var{directory}, subsequent requests succeed and are served directly from the cache, which guarantees that clients get the best possible bandwidth."
  19117. msgstr ""
  19118. #. type: table
  19119. #: guix-git/doc/guix.texi:12826
  19120. msgid "That first @code{.narinfo} request nonetheless returns 200, provided the requested store item is ``small enough'', below the cache bypass threshold---see @option{--cache-bypass-threshold} below. That way, clients do not have to wait until the archive is baked. For larger store items, the first @code{.narinfo} request returns 404, meaning that clients have to wait until the archive is baked."
  19121. msgstr ""
  19122. #. type: table
  19123. #: guix-git/doc/guix.texi:12830
  19124. msgid "The ``baking'' process is performed by worker threads. By default, one thread per CPU core is created, but this can be customized. See @option{--workers} below."
  19125. msgstr ""
  19126. #. type: table
  19127. #: guix-git/doc/guix.texi:12833
  19128. msgid "When @option{--ttl} is used, cached entries are automatically deleted when they have expired."
  19129. msgstr ""
  19130. #. type: item
  19131. #: guix-git/doc/guix.texi:12834
  19132. #, no-wrap
  19133. msgid "--workers=@var{N}"
  19134. msgstr ""
  19135. #. type: table
  19136. #: guix-git/doc/guix.texi:12837
  19137. msgid "When @option{--cache} is used, request the allocation of @var{N} worker threads to ``bake'' archives."
  19138. msgstr ""
  19139. #. type: item
  19140. #: guix-git/doc/guix.texi:12838
  19141. #, no-wrap
  19142. msgid "--ttl=@var{ttl}"
  19143. msgstr ""
  19144. #. type: table
  19145. #: guix-git/doc/guix.texi:12842
  19146. msgid "Produce @code{Cache-Control} HTTP headers that advertise a time-to-live (TTL) of @var{ttl}. @var{ttl} must denote a duration: @code{5d} means 5 days, @code{1m} means 1 month, and so on."
  19147. msgstr ""
  19148. #. type: table
  19149. #: guix-git/doc/guix.texi:12847
  19150. msgid "This allows the user's Guix to keep substitute information in cache for @var{ttl}. However, note that @code{guix publish} does not itself guarantee that the store items it provides will indeed remain available for as long as @var{ttl}."
  19151. msgstr ""
  19152. #. type: table
  19153. #: guix-git/doc/guix.texi:12851
  19154. msgid "Additionally, when @option{--cache} is used, cached entries that have not been accessed for @var{ttl} and that no longer have a corresponding item in the store, may be deleted."
  19155. msgstr ""
  19156. #. type: item
  19157. #: guix-git/doc/guix.texi:12852
  19158. #, no-wrap
  19159. msgid "--negative-ttl=@var{ttl}"
  19160. msgstr ""
  19161. #. type: table
  19162. #: guix-git/doc/guix.texi:12857
  19163. msgid "Similarly produce @code{Cache-Control} HTTP headers to advertise the time-to-live (TTL) of @emph{negative} lookups---missing store items, for which the HTTP 404 code is returned. By default, no negative TTL is advertised."
  19164. msgstr ""
  19165. #. type: table
  19166. #: guix-git/doc/guix.texi:12861
  19167. msgid "This parameter can help adjust server load and substitute latency by instructing cooperating clients to be more or less patient when a store item is missing."
  19168. msgstr ""
  19169. #. type: item
  19170. #: guix-git/doc/guix.texi:12862
  19171. #, no-wrap
  19172. msgid "--cache-bypass-threshold=@var{size}"
  19173. msgstr ""
  19174. #. type: table
  19175. #: guix-git/doc/guix.texi:12867
  19176. msgid "When used in conjunction with @option{--cache}, store items smaller than @var{size} are immediately available, even when they are not yet in cache. @var{size} is a size in bytes, or it can be suffixed by @code{M} for megabytes and so on. The default is @code{10M}."
  19177. msgstr ""
  19178. #. type: table
  19179. #: guix-git/doc/guix.texi:12872
  19180. msgid "``Cache bypass'' allows you to reduce the publication delay for clients at the expense of possibly additional I/O and CPU use on the server side: depending on the client access patterns, those store items can end up being baked several times until a copy is available in cache."
  19181. msgstr ""
  19182. #. type: table
  19183. #: guix-git/doc/guix.texi:12876
  19184. msgid "Increasing the threshold may be useful for sites that have few users, or to guarantee that users get substitutes even for store items that are not popular."
  19185. msgstr ""
  19186. #. type: item
  19187. #: guix-git/doc/guix.texi:12877
  19188. #, no-wrap
  19189. msgid "--nar-path=@var{path}"
  19190. msgstr ""
  19191. #. type: table
  19192. #: guix-git/doc/guix.texi:12880
  19193. msgid "Use @var{path} as the prefix for the URLs of ``nar'' files (@pxref{Invoking guix archive, normalized archives})."
  19194. msgstr ""
  19195. #. type: table
  19196. #: guix-git/doc/guix.texi:12884
  19197. msgid "By default, nars are served at a URL such as @code{/nar/gzip/@dots{}-coreutils-8.25}. This option allows you to change the @code{/nar} part to @var{path}."
  19198. msgstr ""
  19199. #. type: item
  19200. #: guix-git/doc/guix.texi:12885
  19201. #, no-wrap
  19202. msgid "--public-key=@var{file}"
  19203. msgstr ""
  19204. #. type: itemx
  19205. #: guix-git/doc/guix.texi:12886
  19206. #, no-wrap
  19207. msgid "--private-key=@var{file}"
  19208. msgstr ""
  19209. #. type: table
  19210. #: guix-git/doc/guix.texi:12889 guix-git/doc/guix.texi:27974
  19211. #: guix-git/doc/guix.texi:28011
  19212. msgid "Use the specific @var{file}s as the public/private key pair used to sign the store items being published."
  19213. msgstr ""
  19214. #. type: table
  19215. #: guix-git/doc/guix.texi:12896
  19216. msgid "The files must correspond to the same key pair (the private key is used for signing and the public key is merely advertised in the signature metadata). They must contain keys in the canonical s-expression format as produced by @command{guix archive --generate-key} (@pxref{Invoking guix archive}). By default, @file{/etc/guix/signing-key.pub} and @file{/etc/guix/signing-key.sec} are used."
  19217. msgstr ""
  19218. #. type: item
  19219. #: guix-git/doc/guix.texi:12897
  19220. #, no-wrap
  19221. msgid "--repl[=@var{port}]"
  19222. msgstr ""
  19223. #. type: itemx
  19224. #: guix-git/doc/guix.texi:12898
  19225. #, no-wrap
  19226. msgid "-r [@var{port}]"
  19227. msgstr ""
  19228. #. type: table
  19229. #: guix-git/doc/guix.texi:12902
  19230. msgid "Spawn a Guile REPL server (@pxref{REPL Servers,,, guile, GNU Guile Reference Manual}) on @var{port} (37146 by default). This is used primarily for debugging a running @command{guix publish} server."
  19231. msgstr ""
  19232. #. type: Plain text
  19233. #: guix-git/doc/guix.texi:12908
  19234. msgid "Enabling @command{guix publish} on Guix System is a one-liner: just instantiate a @code{guix-publish-service-type} service in the @code{services} field of the @code{operating-system} declaration (@pxref{guix-publish-service-type, @code{guix-publish-service-type}})."
  19235. msgstr ""
  19236. #. type: Plain text
  19237. #: guix-git/doc/guix.texi:12911
  19238. msgid "If you are instead running Guix on a ``foreign distro'', follow these instructions:"
  19239. msgstr ""
  19240. #. type: itemize
  19241. #: guix-git/doc/guix.texi:12915
  19242. msgid "If your host distro uses the systemd init system:"
  19243. msgstr ""
  19244. #. type: example
  19245. #: guix-git/doc/guix.texi:12920
  19246. #, no-wrap
  19247. msgid ""
  19248. "# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \\\n"
  19249. " /etc/systemd/system/\n"
  19250. "# systemctl start guix-publish && systemctl enable guix-publish\n"
  19251. msgstr ""
  19252. #. type: example
  19253. #: guix-git/doc/guix.texi:12928
  19254. #, no-wrap
  19255. msgid ""
  19256. "# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/init/\n"
  19257. "# start guix-publish\n"
  19258. msgstr ""
  19259. #. type: itemize
  19260. #: guix-git/doc/guix.texi:12932
  19261. msgid "Otherwise, proceed similarly with your distro's init system."
  19262. msgstr ""
  19263. #. type: section
  19264. #: guix-git/doc/guix.texi:12935
  19265. #, no-wrap
  19266. msgid "Invoking @command{guix challenge}"
  19267. msgstr ""
  19268. #. type: cindex
  19269. #: guix-git/doc/guix.texi:12938
  19270. #, no-wrap
  19271. msgid "verifiable builds"
  19272. msgstr ""
  19273. #. type: command{#1}
  19274. #: guix-git/doc/guix.texi:12939
  19275. #, no-wrap
  19276. msgid "guix challenge"
  19277. msgstr ""
  19278. #. type: cindex
  19279. #: guix-git/doc/guix.texi:12940
  19280. #, no-wrap
  19281. msgid "challenge"
  19282. msgstr ""
  19283. #. type: Plain text
  19284. #: guix-git/doc/guix.texi:12945
  19285. msgid "Do the binaries provided by this server really correspond to the source code it claims to build? Is a package build process deterministic? These are the questions the @command{guix challenge} command attempts to answer."
  19286. msgstr ""
  19287. #. type: Plain text
  19288. #: guix-git/doc/guix.texi:12953
  19289. msgid "The former is obviously an important question: Before using a substitute server (@pxref{Substitutes}), one had better @emph{verify} that it provides the right binaries, and thus @emph{challenge} it. The latter is what enables the former: If package builds are deterministic, then independent builds of the package should yield the exact same result, bit for bit; if a server provides a binary different from the one obtained locally, it may be either corrupt or malicious."
  19290. msgstr ""
  19291. #. type: Plain text
  19292. #: guix-git/doc/guix.texi:12962
  19293. msgid "We know that the hash that shows up in @file{/gnu/store} file names is the hash of all the inputs of the process that built the file or directory---compilers, libraries, build scripts, etc. (@pxref{Introduction}). Assuming deterministic build processes, one store file name should map to exactly one build output. @command{guix challenge} checks whether there is, indeed, a single mapping by comparing the build outputs of several independent builds of any given store item."
  19294. msgstr ""
  19295. #. type: Plain text
  19296. #: guix-git/doc/guix.texi:12964
  19297. msgid "The command output looks like this:"
  19298. msgstr ""
  19299. #. type: smallexample
  19300. #: guix-git/doc/guix.texi:12976
  19301. #, no-wrap
  19302. msgid ""
  19303. "$ guix challenge --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  19304. "updating list of substitutes from 'https://@value{SUBSTITUTE-SERVER-1}'... 100.0%\n"
  19305. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  19306. "/gnu/store/@dots{}-openssl-1.0.2d contents differ:\n"
  19307. " local hash: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  19308. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-openssl-1.0.2d: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  19309. " https://guix.example.org/nar/@dots{}-openssl-1.0.2d: 1zy4fmaaqcnjrzzajkdn3f5gmjk754b43qkq47llbyak9z0qjyim\n"
  19310. " differing files:\n"
  19311. " /lib/libcrypto.so.1.1\n"
  19312. " /lib/libssl.so.1.1\n"
  19313. "\n"
  19314. msgstr ""
  19315. #. type: smallexample
  19316. #: guix-git/doc/guix.texi:12983
  19317. #, no-wrap
  19318. msgid ""
  19319. "/gnu/store/@dots{}-git-2.5.0 contents differ:\n"
  19320. " local hash: 00p3bmryhjxrhpn2gxs2fy0a15lnip05l97205pgbk5ra395hyha\n"
  19321. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-git-2.5.0: 069nb85bv4d4a6slrwjdy8v1cn4cwspm3kdbmyb81d6zckj3nq9f\n"
  19322. " https://guix.example.org/nar/@dots{}-git-2.5.0: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73\n"
  19323. " differing file:\n"
  19324. " /libexec/git-core/git-fsck\n"
  19325. "\n"
  19326. msgstr ""
  19327. #. type: smallexample
  19328. #: guix-git/doc/guix.texi:12990
  19329. #, no-wrap
  19330. msgid ""
  19331. "/gnu/store/@dots{}-pius-2.1.1 contents differ:\n"
  19332. " local hash: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  19333. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-pius-2.1.1: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  19334. " https://guix.example.org/nar/@dots{}-pius-2.1.1: 1cy25x1a4fzq5rk0pmvc8xhwyffnqz95h2bpvqsz2mpvlbccy0gs\n"
  19335. " differing file:\n"
  19336. " /share/man/man1/pius.1.gz\n"
  19337. "\n"
  19338. msgstr ""
  19339. #. type: smallexample
  19340. #: guix-git/doc/guix.texi:12992
  19341. #, no-wrap
  19342. msgid ""
  19343. "@dots{}\n"
  19344. "\n"
  19345. msgstr ""
  19346. #. type: smallexample
  19347. #: guix-git/doc/guix.texi:12997
  19348. #, no-wrap
  19349. msgid ""
  19350. "6,406 store items were analyzed:\n"
  19351. " - 4,749 (74.1%) were identical\n"
  19352. " - 525 (8.2%) differed\n"
  19353. " - 1,132 (17.7%) were inconclusive\n"
  19354. msgstr ""
  19355. #. type: Plain text
  19356. #: guix-git/doc/guix.texi:13005
  19357. msgid "In this example, @command{guix challenge} first scans the store to determine the set of locally-built derivations---as opposed to store items that were downloaded from a substitute server---and then queries all the substitute servers. It then reports those store items for which the servers obtained a result different from the local build."
  19358. msgstr ""
  19359. #. type: cindex
  19360. #: guix-git/doc/guix.texi:13006
  19361. #, no-wrap
  19362. msgid "non-determinism, in package builds"
  19363. msgstr ""
  19364. #. type: Plain text
  19365. #: guix-git/doc/guix.texi:13017
  19366. msgid "As an example, @code{guix.example.org} always gets a different answer. Conversely, @code{@value{SUBSTITUTE-SERVER-1}} agrees with local builds, except in the case of Git. This might indicate that the build process of Git is non-deterministic, meaning that its output varies as a function of various things that Guix does not fully control, in spite of building packages in isolated environments (@pxref{Features}). Most common sources of non-determinism include the addition of timestamps in build results, the inclusion of random numbers, and directory listings sorted by inode number. See @uref{https://reproducible-builds.org/docs/}, for more information."
  19367. msgstr ""
  19368. #. type: Plain text
  19369. #: guix-git/doc/guix.texi:13020
  19370. msgid "To find out what is wrong with this Git binary, the easiest approach is to run:"
  19371. msgstr ""
  19372. #. type: example
  19373. #: guix-git/doc/guix.texi:13025
  19374. #, no-wrap
  19375. msgid ""
  19376. "guix challenge git \\\n"
  19377. " --diff=diffoscope \\\n"
  19378. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  19379. msgstr ""
  19380. #. type: Plain text
  19381. #: guix-git/doc/guix.texi:13029
  19382. msgid "This automatically invokes @command{diffoscope}, which displays detailed information about files that differ."
  19383. msgstr ""
  19384. #. type: Plain text
  19385. #: guix-git/doc/guix.texi:13032
  19386. msgid "Alternatively, we can do something along these lines (@pxref{Invoking guix archive}):"
  19387. msgstr ""
  19388. #. type: example
  19389. #: guix-git/doc/guix.texi:13037
  19390. #, no-wrap
  19391. msgid ""
  19392. "$ wget -q -O - https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-git-2.5.0 \\\n"
  19393. " | lzip -d | guix archive -x /tmp/git\n"
  19394. "$ diff -ur --no-dereference /gnu/store/@dots{}-git.2.5.0 /tmp/git\n"
  19395. msgstr ""
  19396. #. type: Plain text
  19397. #: guix-git/doc/guix.texi:13046
  19398. msgid "This command shows the difference between the files resulting from the local build, and the files resulting from the build on @code{@value{SUBSTITUTE-SERVER-1}} (@pxref{Overview, Comparing and Merging Files,, diffutils, Comparing and Merging Files}). The @command{diff} command works great for text files. When binary files differ, a better option is @uref{https://diffoscope.org/, Diffoscope}, a tool that helps visualize differences for all kinds of files."
  19399. msgstr ""
  19400. #. type: Plain text
  19401. #: guix-git/doc/guix.texi:13054
  19402. msgid "Once you have done that work, you can tell whether the differences are due to a non-deterministic build process or to a malicious server. We try hard to remove sources of non-determinism in packages to make it easier to verify substitutes, but of course, this is a process that involves not just Guix, but a large part of the free software community. In the meantime, @command{guix challenge} is one tool to help address the problem."
  19403. msgstr ""
  19404. #. type: Plain text
  19405. #: guix-git/doc/guix.texi:13058
  19406. msgid "If you are writing packages for Guix, you are encouraged to check whether @code{@value{SUBSTITUTE-SERVER-1}} and other substitute servers obtain the same build result as you did with:"
  19407. msgstr ""
  19408. #. type: example
  19409. #: guix-git/doc/guix.texi:13061
  19410. #, no-wrap
  19411. msgid "$ guix challenge @var{package}\n"
  19412. msgstr ""
  19413. #. type: Plain text
  19414. #: guix-git/doc/guix.texi:13066
  19415. msgid "where @var{package} is a package specification such as @code{guile@@2.0} or @code{glibc:debug}."
  19416. msgstr ""
  19417. #. type: example
  19418. #: guix-git/doc/guix.texi:13071
  19419. #, no-wrap
  19420. msgid "guix challenge @var{options} [@var{packages}@dots{}]\n"
  19421. msgstr ""
  19422. #. type: Plain text
  19423. #: guix-git/doc/guix.texi:13078
  19424. msgid "When a difference is found between the hash of a locally-built item and that of a server-provided substitute, or among substitutes provided by different servers, the command displays it as in the example above and its exit code is 2 (other non-zero exit codes denote other kinds of errors)."
  19425. msgstr ""
  19426. #. type: Plain text
  19427. #: guix-git/doc/guix.texi:13080
  19428. msgid "The one option that matters is:"
  19429. msgstr ""
  19430. #. type: table
  19431. #: guix-git/doc/guix.texi:13086
  19432. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs to compare to."
  19433. msgstr ""
  19434. #. type: item
  19435. #: guix-git/doc/guix.texi:13087
  19436. #, fuzzy, no-wrap
  19437. msgid "--diff=@var{mode}"
  19438. msgstr "--rounds=@var{N}"
  19439. #. type: table
  19440. #: guix-git/doc/guix.texi:13089
  19441. msgid "Upon mismatches, show differences according to @var{mode}, one of:"
  19442. msgstr ""
  19443. #. type: item
  19444. #: guix-git/doc/guix.texi:13091
  19445. #, fuzzy, no-wrap
  19446. msgid "@code{simple} (the default)"
  19447. msgstr "@code{speed}(默认值:@code{1.0})"
  19448. #. type: table
  19449. #: guix-git/doc/guix.texi:13093
  19450. msgid "Show the list of files that differ."
  19451. msgstr ""
  19452. #. type: code{#1}
  19453. #: guix-git/doc/guix.texi:13094
  19454. #, no-wrap
  19455. msgid "diffoscope"
  19456. msgstr ""
  19457. #. type: var{#1}
  19458. #: guix-git/doc/guix.texi:13095
  19459. #, no-wrap
  19460. msgid "command"
  19461. msgstr ""
  19462. #. type: table
  19463. #: guix-git/doc/guix.texi:13098
  19464. msgid "Invoke @uref{https://diffoscope.org/, Diffoscope}, passing it two directories whose contents do not match."
  19465. msgstr ""
  19466. #. type: table
  19467. #: guix-git/doc/guix.texi:13101
  19468. msgid "When @var{command} is an absolute file name, run @var{command} instead of Diffoscope."
  19469. msgstr ""
  19470. #. type: item
  19471. #: guix-git/doc/guix.texi:13102 guix-git/doc/guix.texi:16437
  19472. #: guix-git/doc/guix.texi:18529
  19473. #, no-wrap
  19474. msgid "none"
  19475. msgstr ""
  19476. #. type: table
  19477. #: guix-git/doc/guix.texi:13104
  19478. msgid "Do not show further details about the differences."
  19479. msgstr ""
  19480. #. type: table
  19481. #: guix-git/doc/guix.texi:13109
  19482. msgid "Thus, unless @option{--diff=none} is passed, @command{guix challenge} downloads the store items from the given substitute servers so that it can compare them."
  19483. msgstr ""
  19484. #. type: item
  19485. #: guix-git/doc/guix.texi:13110
  19486. #, no-wrap
  19487. msgid "--verbose"
  19488. msgstr ""
  19489. #. type: itemx
  19490. #: guix-git/doc/guix.texi:13111
  19491. #, no-wrap
  19492. msgid "-v"
  19493. msgstr ""
  19494. #. type: table
  19495. #: guix-git/doc/guix.texi:13114
  19496. msgid "Show details about matches (identical contents) in addition to information about mismatches."
  19497. msgstr ""
  19498. #. type: section
  19499. #: guix-git/doc/guix.texi:13118
  19500. #, no-wrap
  19501. msgid "Invoking @command{guix copy}"
  19502. msgstr ""
  19503. #. type: cindex
  19504. #: guix-git/doc/guix.texi:13120
  19505. #, no-wrap
  19506. msgid "copy, of store items, over SSH"
  19507. msgstr ""
  19508. #. type: cindex
  19509. #: guix-git/doc/guix.texi:13121
  19510. #, no-wrap
  19511. msgid "SSH, copy of store items"
  19512. msgstr ""
  19513. #. type: cindex
  19514. #: guix-git/doc/guix.texi:13122
  19515. #, no-wrap
  19516. msgid "sharing store items across machines"
  19517. msgstr ""
  19518. #. type: cindex
  19519. #: guix-git/doc/guix.texi:13123
  19520. #, no-wrap
  19521. msgid "transferring store items across machines"
  19522. msgstr ""
  19523. #. type: Plain text
  19524. #: guix-git/doc/guix.texi:13130
  19525. msgid "The @command{guix copy} command copies items from the store of one machine to that of another machine over a secure shell (SSH) connection@footnote{This command is available only when Guile-SSH was found. @xref{Requirements}, for details.}. For example, the following command copies the @code{coreutils} package, the user's profile, and all their dependencies over to @var{host}, logged in as @var{user}:"
  19526. msgstr ""
  19527. #. type: example
  19528. #: guix-git/doc/guix.texi:13134
  19529. #, no-wrap
  19530. msgid ""
  19531. "guix copy --to=@var{user}@@@var{host} \\\n"
  19532. " coreutils $(readlink -f ~/.guix-profile)\n"
  19533. msgstr ""
  19534. #. type: Plain text
  19535. #: guix-git/doc/guix.texi:13138
  19536. msgid "If some of the items to be copied are already present on @var{host}, they are not actually sent."
  19537. msgstr ""
  19538. #. type: Plain text
  19539. #: guix-git/doc/guix.texi:13141
  19540. msgid "The command below retrieves @code{libreoffice} and @code{gimp} from @var{host}, assuming they are available there:"
  19541. msgstr ""
  19542. #. type: example
  19543. #: guix-git/doc/guix.texi:13144
  19544. #, no-wrap
  19545. msgid "guix copy --from=@var{host} libreoffice gimp\n"
  19546. msgstr ""
  19547. #. type: Plain text
  19548. #: guix-git/doc/guix.texi:13149
  19549. msgid "The SSH connection is established using the Guile-SSH client, which is compatible with OpenSSH: it honors @file{~/.ssh/known_hosts} and @file{~/.ssh/config}, and uses the SSH agent for authentication."
  19550. msgstr ""
  19551. #. type: Plain text
  19552. #: guix-git/doc/guix.texi:13155
  19553. msgid "The key used to sign items that are sent must be accepted by the remote machine. Likewise, the key used by the remote machine to sign items you are retrieving must be in @file{/etc/guix/acl} so it is accepted by your own daemon. @xref{Invoking guix archive}, for more information about store item authentication."
  19554. msgstr ""
  19555. #. type: example
  19556. #: guix-git/doc/guix.texi:13160
  19557. #, no-wrap
  19558. msgid "guix copy [--to=@var{spec}|--from=@var{spec}] @var{items}@dots{}\n"
  19559. msgstr ""
  19560. #. type: Plain text
  19561. #: guix-git/doc/guix.texi:13163
  19562. msgid "You must always specify one of the following options:"
  19563. msgstr ""
  19564. #. type: item
  19565. #: guix-git/doc/guix.texi:13165
  19566. #, no-wrap
  19567. msgid "--to=@var{spec}"
  19568. msgstr ""
  19569. #. type: itemx
  19570. #: guix-git/doc/guix.texi:13166
  19571. #, no-wrap
  19572. msgid "--from=@var{spec}"
  19573. msgstr ""
  19574. #. type: table
  19575. #: guix-git/doc/guix.texi:13170
  19576. msgid "Specify the host to send to or receive from. @var{spec} must be an SSH spec such as @code{example.org}, @code{charlie@@example.org}, or @code{charlie@@example.org:2222}."
  19577. msgstr ""
  19578. #. type: Plain text
  19579. #: guix-git/doc/guix.texi:13174
  19580. msgid "The @var{items} can be either package names, such as @code{gimp}, or store items, such as @file{/gnu/store/@dots{}-idutils-4.6}."
  19581. msgstr ""
  19582. #. type: Plain text
  19583. #: guix-git/doc/guix.texi:13178
  19584. msgid "When specifying the name of a package to send, it is first built if needed, unless @option{--dry-run} was specified. Common build options are supported (@pxref{Common Build Options})."
  19585. msgstr ""
  19586. #. type: section
  19587. #: guix-git/doc/guix.texi:13181
  19588. #, no-wrap
  19589. msgid "Invoking @command{guix container}"
  19590. msgstr ""
  19591. #. type: command{#1}
  19592. #: guix-git/doc/guix.texi:13183
  19593. #, no-wrap
  19594. msgid "guix container"
  19595. msgstr ""
  19596. #. type: quotation
  19597. #: guix-git/doc/guix.texi:13187
  19598. msgid "As of version @value{VERSION}, this tool is experimental. The interface is subject to radical change in the future."
  19599. msgstr ""
  19600. #. type: Plain text
  19601. #: guix-git/doc/guix.texi:13194
  19602. msgid "The purpose of @command{guix container} is to manipulate processes running within an isolated environment, commonly known as a ``container'', typically created by the @command{guix environment} (@pxref{Invoking guix environment}) and @command{guix system container} (@pxref{Invoking guix system}) commands."
  19603. msgstr ""
  19604. #. type: example
  19605. #: guix-git/doc/guix.texi:13199
  19606. #, no-wrap
  19607. msgid "guix container @var{action} @var{options}@dots{}\n"
  19608. msgstr ""
  19609. #. type: Plain text
  19610. #: guix-git/doc/guix.texi:13203
  19611. msgid "@var{action} specifies the operation to perform with a container, and @var{options} specifies the context-specific arguments for the action."
  19612. msgstr ""
  19613. #. type: Plain text
  19614. #: guix-git/doc/guix.texi:13205
  19615. msgid "The following actions are available:"
  19616. msgstr ""
  19617. #. type: item
  19618. #: guix-git/doc/guix.texi:13207
  19619. #, no-wrap
  19620. msgid "exec"
  19621. msgstr ""
  19622. #. type: table
  19623. #: guix-git/doc/guix.texi:13209
  19624. msgid "Execute a command within the context of a running container."
  19625. msgstr ""
  19626. #. type: table
  19627. #: guix-git/doc/guix.texi:13211
  19628. msgid "The syntax is:"
  19629. msgstr ""
  19630. #. type: example
  19631. #: guix-git/doc/guix.texi:13214
  19632. #, no-wrap
  19633. msgid "guix container exec @var{pid} @var{program} @var{arguments}@dots{}\n"
  19634. msgstr ""
  19635. #. type: table
  19636. #: guix-git/doc/guix.texi:13220
  19637. msgid "@var{pid} specifies the process ID of the running container. @var{program} specifies an executable file name within the root file system of the container. @var{arguments} are the additional options that will be passed to @var{program}."
  19638. msgstr ""
  19639. #. type: table
  19640. #: guix-git/doc/guix.texi:13224
  19641. msgid "The following command launches an interactive login shell inside a Guix system container, started by @command{guix system container}, and whose process ID is 9001:"
  19642. msgstr ""
  19643. #. type: example
  19644. #: guix-git/doc/guix.texi:13227
  19645. #, no-wrap
  19646. msgid "guix container exec 9001 /run/current-system/profile/bin/bash --login\n"
  19647. msgstr ""
  19648. #. type: table
  19649. #: guix-git/doc/guix.texi:13231
  19650. msgid "Note that the @var{pid} cannot be the parent process of a container. It must be PID 1 of the container or one of its child processes."
  19651. msgstr ""
  19652. #. type: section
  19653. #: guix-git/doc/guix.texi:13235
  19654. #, no-wrap
  19655. msgid "Invoking @command{guix weather}"
  19656. msgstr ""
  19657. #. type: Plain text
  19658. #: guix-git/doc/guix.texi:13244
  19659. msgid "Occasionally you're grumpy because substitutes are lacking and you end up building packages by yourself (@pxref{Substitutes}). The @command{guix weather} command reports on substitute availability on the specified servers so you can have an idea of whether you'll be grumpy today. It can sometimes be useful info as a user, but it is primarily useful to people running @command{guix publish} (@pxref{Invoking guix publish})."
  19660. msgstr ""
  19661. #. type: cindex
  19662. #: guix-git/doc/guix.texi:13245
  19663. #, no-wrap
  19664. msgid "statistics, for substitutes"
  19665. msgstr ""
  19666. #. type: cindex
  19667. #: guix-git/doc/guix.texi:13246
  19668. #, no-wrap
  19669. msgid "availability of substitutes"
  19670. msgstr ""
  19671. #. type: cindex
  19672. #: guix-git/doc/guix.texi:13247
  19673. #, no-wrap
  19674. msgid "substitute availability"
  19675. msgstr ""
  19676. #. type: cindex
  19677. #: guix-git/doc/guix.texi:13248
  19678. #, no-wrap
  19679. msgid "weather, substitute availability"
  19680. msgstr ""
  19681. #. type: Plain text
  19682. #: guix-git/doc/guix.texi:13250
  19683. msgid "Here's a sample run:"
  19684. msgstr ""
  19685. #. type: example
  19686. #: guix-git/doc/guix.texi:13262
  19687. #, no-wrap
  19688. msgid ""
  19689. "$ guix weather --substitute-urls=https://guix.example.org\n"
  19690. "computing 5,872 package derivations for x86_64-linux...\n"
  19691. "looking for 6,128 store items on https://guix.example.org..\n"
  19692. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  19693. "https://guix.example.org\n"
  19694. " 43.4% substitutes available (2,658 out of 6,128)\n"
  19695. " 7,032.5 MiB of nars (compressed)\n"
  19696. " 19,824.2 MiB on disk (uncompressed)\n"
  19697. " 0.030 seconds per request (182.9 seconds in total)\n"
  19698. " 33.5 requests per second\n"
  19699. "\n"
  19700. msgstr ""
  19701. #. type: example
  19702. #: guix-git/doc/guix.texi:13272
  19703. #, no-wrap
  19704. msgid ""
  19705. " 9.8% (342 out of 3,470) of the missing items are queued\n"
  19706. " 867 queued builds\n"
  19707. " x86_64-linux: 518 (59.7%)\n"
  19708. " i686-linux: 221 (25.5%)\n"
  19709. " aarch64-linux: 128 (14.8%)\n"
  19710. " build rate: 23.41 builds per hour\n"
  19711. " x86_64-linux: 11.16 builds per hour\n"
  19712. " i686-linux: 6.03 builds per hour\n"
  19713. " aarch64-linux: 6.41 builds per hour\n"
  19714. msgstr ""
  19715. #. type: cindex
  19716. #: guix-git/doc/guix.texi:13274
  19717. #, no-wrap
  19718. msgid "continuous integration, statistics"
  19719. msgstr ""
  19720. #. type: Plain text
  19721. #: guix-git/doc/guix.texi:13285
  19722. msgid "As you can see, it reports the fraction of all the packages for which substitutes are available on the server---regardless of whether substitutes are enabled, and regardless of whether this server's signing key is authorized. It also reports the size of the compressed archives (``nars'') provided by the server, the size the corresponding store items occupy in the store (assuming deduplication is turned off), and the server's throughput. The second part gives continuous integration (CI) statistics, if the server supports it. In addition, using the @option{--coverage} option, @command{guix weather} can list ``important'' package substitutes missing on the server (see below)."
  19723. msgstr ""
  19724. #. type: Plain text
  19725. #: guix-git/doc/guix.texi:13291
  19726. msgid "To achieve that, @command{guix weather} queries over HTTP(S) meta-data (@dfn{narinfos}) for all the relevant store items. Like @command{guix challenge}, it ignores signatures on those substitutes, which is innocuous since the command only gathers statistics and cannot install those substitutes."
  19727. msgstr ""
  19728. #. type: example
  19729. #: guix-git/doc/guix.texi:13296
  19730. #, no-wrap
  19731. msgid "guix weather @var{options}@dots{} [@var{packages}@dots{}]\n"
  19732. msgstr ""
  19733. #. type: Plain text
  19734. #: guix-git/doc/guix.texi:13304
  19735. msgid "When @var{packages} is omitted, @command{guix weather} checks the availability of substitutes for @emph{all} the packages, or for those specified with @option{--manifest}; otherwise it only considers the specified packages. It is also possible to query specific system types with @option{--system}. @command{guix weather} exits with a non-zero code when the fraction of available substitutes is below 100%."
  19736. msgstr ""
  19737. #. type: Plain text
  19738. #: guix-git/doc/guix.texi:13306
  19739. msgid "The available options are listed below."
  19740. msgstr ""
  19741. #. type: table
  19742. #: guix-git/doc/guix.texi:13312
  19743. msgid "@var{urls} is the space-separated list of substitute server URLs to query. When this option is omitted, the default set of substitute servers is queried."
  19744. msgstr ""
  19745. #. type: table
  19746. #: guix-git/doc/guix.texi:13318
  19747. msgid "Query substitutes for @var{system}---e.g., @code{aarch64-linux}. This option can be repeated, in which case @command{guix weather} will query substitutes for several system types."
  19748. msgstr ""
  19749. #. type: table
  19750. #: guix-git/doc/guix.texi:13324
  19751. msgid "Instead of querying substitutes for all the packages, only ask for those specified in @var{file}. @var{file} must contain a @dfn{manifest}, as with the @code{-m} option of @command{guix package} (@pxref{Invoking guix package})."
  19752. msgstr ""
  19753. #. type: table
  19754. #: guix-git/doc/guix.texi:13327
  19755. msgid "This option can be repeated several times, in which case the manifests are concatenated."
  19756. msgstr ""
  19757. #. type: item
  19758. #: guix-git/doc/guix.texi:13328
  19759. #, no-wrap
  19760. msgid "--coverage[=@var{count}]"
  19761. msgstr ""
  19762. #. type: itemx
  19763. #: guix-git/doc/guix.texi:13329
  19764. #, no-wrap
  19765. msgid "-c [@var{count}]"
  19766. msgstr ""
  19767. #. type: table
  19768. #: guix-git/doc/guix.texi:13335
  19769. msgid "Report on substitute coverage for packages: list packages with at least @var{count} dependents (zero by default) for which substitutes are unavailable. Dependent packages themselves are not listed: if @var{b} depends on @var{a} and @var{a} has no substitutes, only @var{a} is listed, even though @var{b} usually lacks substitutes as well. The result looks like this:"
  19770. msgstr ""
  19771. #. type: example
  19772. #: guix-git/doc/guix.texi:13349
  19773. #, no-wrap
  19774. msgid ""
  19775. "$ guix weather --substitute-urls=@value{SUBSTITUTE-URLS} -c 10\n"
  19776. "computing 8,983 package derivations for x86_64-linux...\n"
  19777. "looking for 9,343 store items on @value{SUBSTITUTE-URLS}...\n"
  19778. "updating substitutes from '@value{SUBSTITUTE-URLS}'... 100.0%\n"
  19779. "@value{SUBSTITUTE-URLS}\n"
  19780. " 64.7% substitutes available (6,047 out of 9,343)\n"
  19781. "@dots{}\n"
  19782. "2502 packages are missing from '@value{SUBSTITUTE-URLS}' for 'x86_64-linux', among which:\n"
  19783. " 58 kcoreaddons@@5.49.0 /gnu/store/@dots{}-kcoreaddons-5.49.0\n"
  19784. " 46 qgpgme@@1.11.1 /gnu/store/@dots{}-qgpgme-1.11.1\n"
  19785. " 37 perl-http-cookiejar@@0.008 /gnu/store/@dots{}-perl-http-cookiejar-0.008\n"
  19786. " @dots{}\n"
  19787. msgstr ""
  19788. #. type: table
  19789. #: guix-git/doc/guix.texi:13355
  19790. msgid "What this example shows is that @code{kcoreaddons} and presumably the 58 packages that depend on it have no substitutes at @code{@value{SUBSTITUTE-SERVER-1}}; likewise for @code{qgpgme} and the 46 packages that depend on it."
  19791. msgstr ""
  19792. #. type: table
  19793. #: guix-git/doc/guix.texi:13359
  19794. msgid "If you are a Guix developer, or if you are taking care of this build farm, you'll probably want to have a closer look at these packages: they may simply fail to build."
  19795. msgstr ""
  19796. #. type: item
  19797. #: guix-git/doc/guix.texi:13360
  19798. #, no-wrap
  19799. msgid "--display-missing"
  19800. msgstr ""
  19801. #. type: table
  19802. #: guix-git/doc/guix.texi:13362
  19803. msgid "Display the list of store items for which substitutes are missing."
  19804. msgstr ""
  19805. #. type: section
  19806. #: guix-git/doc/guix.texi:13365
  19807. #, no-wrap
  19808. msgid "Invoking @command{guix processes}"
  19809. msgstr ""
  19810. #. type: Plain text
  19811. #: guix-git/doc/guix.texi:13373
  19812. msgid "The @command{guix processes} command can be useful to developers and system administrators, especially on multi-user machines and on build farms: it lists the current sessions (connections to the daemon), as well as information about the processes involved@footnote{Remote sessions, when @command{guix-daemon} is started with @option{--listen} specifying a TCP endpoint, are @emph{not} listed.}. Here's an example of the information it returns:"
  19813. msgstr ""
  19814. #. type: example
  19815. #: guix-git/doc/guix.texi:13379
  19816. #, no-wrap
  19817. msgid ""
  19818. "$ sudo guix processes\n"
  19819. "SessionPID: 19002\n"
  19820. "ClientPID: 19090\n"
  19821. "ClientCommand: guix environment --ad-hoc python\n"
  19822. "\n"
  19823. msgstr ""
  19824. #. type: example
  19825. #: guix-git/doc/guix.texi:13383
  19826. #, no-wrap
  19827. msgid ""
  19828. "SessionPID: 19402\n"
  19829. "ClientPID: 19367\n"
  19830. "ClientCommand: guix publish -u guix-publish -p 3000 -C 9 @dots{}\n"
  19831. "\n"
  19832. msgstr ""
  19833. #. type: example
  19834. #: guix-git/doc/guix.texi:13396
  19835. #, no-wrap
  19836. msgid ""
  19837. "SessionPID: 19444\n"
  19838. "ClientPID: 19419\n"
  19839. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  19840. "LockHeld: /gnu/store/@dots{}-perl-ipc-cmd-0.96.lock\n"
  19841. "LockHeld: /gnu/store/@dots{}-python-six-bootstrap-1.11.0.lock\n"
  19842. "LockHeld: /gnu/store/@dots{}-libjpeg-turbo-2.0.0.lock\n"
  19843. "ChildPID: 20495\n"
  19844. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  19845. "ChildPID: 27733\n"
  19846. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  19847. "ChildPID: 27793\n"
  19848. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  19849. msgstr ""
  19850. #. type: Plain text
  19851. #: guix-git/doc/guix.texi:13403
  19852. msgid "In this example we see that @command{guix-daemon} has three clients: @command{guix environment}, @command{guix publish}, and the Cuirass continuous integration tool; their process identifier (PID) is given by the @code{ClientPID} field. The @code{SessionPID} field gives the PID of the @command{guix-daemon} sub-process of this particular session."
  19853. msgstr ""
  19854. #. type: Plain text
  19855. #: guix-git/doc/guix.texi:13410
  19856. msgid "The @code{LockHeld} fields show which store items are currently locked by this session, which corresponds to store items being built or substituted (the @code{LockHeld} field is not displayed when @command{guix processes} is not running as root). Last, by looking at the @code{ChildPID} and @code{ChildCommand} fields, we understand that these three builds are being offloaded (@pxref{Daemon Offload Setup})."
  19857. msgstr ""
  19858. #. type: Plain text
  19859. #: guix-git/doc/guix.texi:13415
  19860. msgid "The output is in Recutils format so we can use the handy @command{recsel} command to select sessions of interest (@pxref{Selection Expressions,,, recutils, GNU recutils manual}). As an example, the command shows the command line and PID of the client that triggered the build of a Perl package:"
  19861. msgstr ""
  19862. #. type: example
  19863. #: guix-git/doc/guix.texi:13421
  19864. #, no-wrap
  19865. msgid ""
  19866. "$ sudo guix processes | \\\n"
  19867. " recsel -p ClientPID,ClientCommand -e 'LockHeld ~ \"perl\"'\n"
  19868. "ClientPID: 19419\n"
  19869. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  19870. msgstr ""
  19871. #. type: Plain text
  19872. #: guix-git/doc/guix.texi:13424
  19873. #, fuzzy
  19874. msgid "Additional options are listed below."
  19875. msgstr "额外的构建选项"
  19876. #. type: table
  19877. #: guix-git/doc/guix.texi:13434
  19878. msgid "The default option. It outputs a set of Session recutils records that include each @code{ChildProcess} as a field."
  19879. msgstr ""
  19880. #. type: item
  19881. #: guix-git/doc/guix.texi:13435
  19882. #, no-wrap
  19883. msgid "normalized"
  19884. msgstr ""
  19885. #. type: table
  19886. #: guix-git/doc/guix.texi:13442
  19887. msgid "Normalize the output records into record sets (@pxref{Record Sets,,, recutils, GNU recutils manual}). Normalizing into record sets allows joins across record types. The example below lists the PID of each @code{ChildProcess} and the associated PID for @code{Session} that spawned the @code{ChildProcess} where the @code{Session} was started using @command{guix build}."
  19888. msgstr ""
  19889. #. type: example
  19890. #: guix-git/doc/guix.texi:13452
  19891. #, no-wrap
  19892. msgid ""
  19893. "$ guix processes --format=normalized | \\\n"
  19894. " recsel \\\n"
  19895. " -j Session \\\n"
  19896. " -t ChildProcess \\\n"
  19897. " -p Session.PID,PID \\\n"
  19898. " -e 'Session.ClientCommand ~ \"guix build\"'\n"
  19899. "PID: 4435\n"
  19900. "Session_PID: 4278\n"
  19901. "\n"
  19902. msgstr ""
  19903. #. type: example
  19904. #: guix-git/doc/guix.texi:13455
  19905. #, no-wrap
  19906. msgid ""
  19907. "PID: 4554\n"
  19908. "Session_PID: 4278\n"
  19909. "\n"
  19910. msgstr ""
  19911. #. type: example
  19912. #: guix-git/doc/guix.texi:13458
  19913. #, no-wrap
  19914. msgid ""
  19915. "PID: 4646\n"
  19916. "Session_PID: 4278\n"
  19917. msgstr ""
  19918. #. type: cindex
  19919. #: guix-git/doc/guix.texi:13465
  19920. #, no-wrap
  19921. msgid "system configuration"
  19922. msgstr ""
  19923. #. type: Plain text
  19924. #: guix-git/doc/guix.texi:13471
  19925. msgid "Guix System supports a consistent whole-system configuration mechanism. By that we mean that all aspects of the global system configuration---such as the available system services, timezone and locale settings, user accounts---are declared in a single place. Such a @dfn{system configuration} can be @dfn{instantiated}---i.e., effected."
  19926. msgstr ""
  19927. #. type: Plain text
  19928. #: guix-git/doc/guix.texi:13481
  19929. msgid "One of the advantages of putting all the system configuration under the control of Guix is that it supports transactional system upgrades, and makes it possible to roll back to a previous system instantiation, should something go wrong with the new one (@pxref{Features}). Another advantage is that it makes it easy to replicate the exact same configuration across different machines, or at different points in time, without having to resort to additional administration tools layered on top of the own tools of the system."
  19930. msgstr ""
  19931. #. type: Plain text
  19932. #: guix-git/doc/guix.texi:13486
  19933. msgid "This section describes this mechanism. First we focus on the system administrator's viewpoint---explaining how the system is configured and instantiated. Then we show how this mechanism can be extended, for instance to support new system services."
  19934. msgstr ""
  19935. #. type: Plain text
  19936. #: guix-git/doc/guix.texi:13515
  19937. msgid "The operating system is configured by providing an @code{operating-system} declaration in a file that can then be passed to the @command{guix system} command (@pxref{Invoking guix system}). A simple setup, with the default system services, the default Linux-Libre kernel, initial RAM disk, and boot loader looks like this:"
  19938. msgstr ""
  19939. #. type: code{#1}
  19940. #: guix-git/doc/guix.texi:13516 guix-git/doc/guix.texi:34145
  19941. #, no-wrap
  19942. msgid "operating-system"
  19943. msgstr ""
  19944. #. type: include
  19945. #: guix-git/doc/guix.texi:13518
  19946. #, no-wrap
  19947. msgid "os-config-bare-bones.texi"
  19948. msgstr ""
  19949. #. type: Plain text
  19950. #: guix-git/doc/guix.texi:13525
  19951. msgid "This example should be self-describing. Some of the fields defined above, such as @code{host-name} and @code{bootloader}, are mandatory. Others, such as @code{packages} and @code{services}, can be omitted, in which case they get a default value."
  19952. msgstr ""
  19953. #. type: Plain text
  19954. #: guix-git/doc/guix.texi:13530
  19955. msgid "Below we discuss the effect of some of the most important fields (@pxref{operating-system Reference}, for details about all the available fields), and how to @dfn{instantiate} the operating system using @command{guix system}."
  19956. msgstr ""
  19957. #. type: unnumberedsubsec
  19958. #: guix-git/doc/guix.texi:13531
  19959. #, no-wrap
  19960. msgid "Bootloader"
  19961. msgstr ""
  19962. #. type: cindex
  19963. #: guix-git/doc/guix.texi:13533
  19964. #, no-wrap
  19965. msgid "legacy boot, on Intel machines"
  19966. msgstr ""
  19967. #. type: cindex
  19968. #: guix-git/doc/guix.texi:13534
  19969. #, no-wrap
  19970. msgid "BIOS boot, on Intel machines"
  19971. msgstr ""
  19972. #. type: cindex
  19973. #: guix-git/doc/guix.texi:13535
  19974. #, no-wrap
  19975. msgid "UEFI boot"
  19976. msgstr ""
  19977. #. type: cindex
  19978. #: guix-git/doc/guix.texi:13536
  19979. #, no-wrap
  19980. msgid "EFI boot"
  19981. msgstr ""
  19982. #. type: Plain text
  19983. #: guix-git/doc/guix.texi:13542
  19984. msgid "The @code{bootloader} field describes the method that will be used to boot your system. Machines based on Intel processors can boot in ``legacy'' BIOS mode, as in the example above. However, more recent machines rely instead on the @dfn{Unified Extensible Firmware Interface} (UEFI) to boot. In that case, the @code{bootloader} field should contain something along these lines:"
  19985. msgstr ""
  19986. #. type: lisp
  19987. #: guix-git/doc/guix.texi:13547
  19988. #, no-wrap
  19989. msgid ""
  19990. "(bootloader-configuration\n"
  19991. " (bootloader grub-efi-bootloader)\n"
  19992. " (target \"/boot/efi\"))\n"
  19993. msgstr ""
  19994. #. type: Plain text
  19995. #: guix-git/doc/guix.texi:13551
  19996. msgid "@xref{Bootloader Configuration}, for more information on the available configuration options."
  19997. msgstr ""
  19998. #. type: unnumberedsubsec
  19999. #: guix-git/doc/guix.texi:13552
  20000. #, no-wrap
  20001. msgid "Globally-Visible Packages"
  20002. msgstr ""
  20003. #. type: vindex
  20004. #: guix-git/doc/guix.texi:13554
  20005. #, no-wrap
  20006. msgid "%base-packages"
  20007. msgstr ""
  20008. #. type: Plain text
  20009. #: guix-git/doc/guix.texi:13567
  20010. msgid "The @code{packages} field lists packages that will be globally visible on the system, for all user accounts---i.e., in every user's @env{PATH} environment variable---in addition to the per-user profiles (@pxref{Invoking guix package}). The @code{%base-packages} variable provides all the tools one would expect for basic user and administrator tasks---including the GNU Core Utilities, the GNU Networking Utilities, the @command{mg} lightweight text editor, @command{find}, @command{grep}, etc. The example above adds GNU@tie{}Screen to those, taken from the @code{(gnu packages screen)} module (@pxref{Package Modules}). The @code{(list package output)} syntax can be used to add a specific output of a package:"
  20011. msgstr ""
  20012. #. type: lisp
  20013. #: guix-git/doc/guix.texi:13571
  20014. #, no-wrap
  20015. msgid ""
  20016. "(use-modules (gnu packages))\n"
  20017. "(use-modules (gnu packages dns))\n"
  20018. "\n"
  20019. msgstr ""
  20020. #. type: lisp
  20021. #: guix-git/doc/guix.texi:13576
  20022. #, no-wrap
  20023. msgid ""
  20024. "(operating-system\n"
  20025. " ;; ...\n"
  20026. " (packages (cons (list isc-bind \"utils\")\n"
  20027. " %base-packages)))\n"
  20028. msgstr ""
  20029. #. type: findex
  20030. #: guix-git/doc/guix.texi:13578
  20031. #, no-wrap
  20032. msgid "specification->package"
  20033. msgstr ""
  20034. #. type: Plain text
  20035. #: guix-git/doc/guix.texi:13587
  20036. msgid "Referring to packages by variable name, like @code{isc-bind} above, has the advantage of being unambiguous; it also allows typos and such to be diagnosed right away as ``unbound variables''. The downside is that one needs to know which module defines which package, and to augment the @code{use-package-modules} line accordingly. To avoid that, one can use the @code{specification->package} procedure of the @code{(gnu packages)} module, which returns the best package for a given name or name and version:"
  20037. msgstr ""
  20038. #. type: lisp
  20039. #: guix-git/doc/guix.texi:13590
  20040. #, no-wrap
  20041. msgid ""
  20042. "(use-modules (gnu packages))\n"
  20043. "\n"
  20044. msgstr ""
  20045. #. type: lisp
  20046. #: guix-git/doc/guix.texi:13596
  20047. #, no-wrap
  20048. msgid ""
  20049. "(operating-system\n"
  20050. " ;; ...\n"
  20051. " (packages (append (map specification->package\n"
  20052. " '(\"tcpdump\" \"htop\" \"gnupg@@2.0\"))\n"
  20053. " %base-packages)))\n"
  20054. msgstr ""
  20055. #. type: unnumberedsubsec
  20056. #: guix-git/doc/guix.texi:13598
  20057. #, no-wrap
  20058. msgid "System Services"
  20059. msgstr ""
  20060. #. type: cindex
  20061. #: guix-git/doc/guix.texi:13600 guix-git/doc/guix.texi:32928
  20062. #: guix-git/doc/guix.texi:34374
  20063. #, no-wrap
  20064. msgid "services"
  20065. msgstr ""
  20066. #. type: vindex
  20067. #: guix-git/doc/guix.texi:13601
  20068. #, no-wrap
  20069. msgid "%base-services"
  20070. msgstr ""
  20071. #. type: Plain text
  20072. #: guix-git/doc/guix.texi:13611
  20073. msgid "The @code{services} field lists @dfn{system services} to be made available when the system starts (@pxref{Services}). The @code{operating-system} declaration above specifies that, in addition to the basic services, we want the OpenSSH secure shell daemon listening on port 2222 (@pxref{Networking Services, @code{openssh-service-type}}). Under the hood, @code{openssh-service-type} arranges so that @command{sshd} is started with the right command-line options, possibly with supporting configuration files generated as needed (@pxref{Defining Services})."
  20074. msgstr ""
  20075. #. type: cindex
  20076. #: guix-git/doc/guix.texi:13612
  20077. #, no-wrap
  20078. msgid "customization, of services"
  20079. msgstr ""
  20080. #. type: findex
  20081. #: guix-git/doc/guix.texi:13613
  20082. #, no-wrap
  20083. msgid "modify-services"
  20084. msgstr ""
  20085. #. type: Plain text
  20086. #: guix-git/doc/guix.texi:13617
  20087. msgid "Occasionally, instead of using the base services as is, you will want to customize them. To do this, use @code{modify-services} (@pxref{Service Reference, @code{modify-services}}) to modify the list."
  20088. msgstr ""
  20089. #. type: anchor{#1}
  20090. #: guix-git/doc/guix.texi:13623
  20091. msgid "auto-login to TTY"
  20092. msgstr ""
  20093. #. type: Plain text
  20094. #: guix-git/doc/guix.texi:13623
  20095. msgid "For example, suppose you want to modify @code{guix-daemon} and Mingetty (the console log-in) in the @code{%base-services} list (@pxref{Base Services, @code{%base-services}}). To do that, you can write the following in your operating system declaration:"
  20096. msgstr ""
  20097. #. type: lisp
  20098. #: guix-git/doc/guix.texi:13640
  20099. #, no-wrap
  20100. msgid ""
  20101. "(define %my-services\n"
  20102. " ;; My very own list of services.\n"
  20103. " (modify-services %base-services\n"
  20104. " (guix-service-type config =>\n"
  20105. " (guix-configuration\n"
  20106. " (inherit config)\n"
  20107. " ;; Fetch substitutes from example.org.\n"
  20108. " (substitute-urls\n"
  20109. " (list \"https://example.org/guix\"\n"
  20110. " \"https://ci.guix.gnu.org\"))))\n"
  20111. " (mingetty-service-type config =>\n"
  20112. " (mingetty-configuration\n"
  20113. " (inherit config)\n"
  20114. " ;; Automatially log in as \"guest\".\n"
  20115. " (auto-login \"guest\")))))\n"
  20116. "\n"
  20117. msgstr ""
  20118. #. type: lisp
  20119. #: guix-git/doc/guix.texi:13644
  20120. #, no-wrap
  20121. msgid ""
  20122. "(operating-system\n"
  20123. " ;; @dots{}\n"
  20124. " (services %my-services))\n"
  20125. msgstr ""
  20126. #. type: Plain text
  20127. #: guix-git/doc/guix.texi:13657
  20128. msgid "This changes the configuration---i.e., the service parameters---of the @code{guix-service-type} instance, and that of all the @code{mingetty-service-type} instances in the @code{%base-services} list (@pxref{Auto-Login to a Specific TTY, see the cookbook for how to auto-login one user to a specific TTY,, guix-cookbook, GNU Guix Cookbook})). Observe how this is accomplished: first, we arrange for the original configuration to be bound to the identifier @code{config} in the @var{body}, and then we write the @var{body} so that it evaluates to the desired configuration. In particular, notice how we use @code{inherit} to create a new configuration which has the same values as the old configuration, but with a few modifications."
  20129. msgstr ""
  20130. #. type: Plain text
  20131. #: guix-git/doc/guix.texi:13664
  20132. msgid "The configuration for a typical ``desktop'' usage, with an encrypted root partition, the X11 display server, GNOME and Xfce (users can choose which of these desktop environments to use at the log-in screen by pressing @kbd{F1}), network management, power management, and more, would look like this:"
  20133. msgstr ""
  20134. #. type: include
  20135. #: guix-git/doc/guix.texi:13666
  20136. #, no-wrap
  20137. msgid "os-config-desktop.texi"
  20138. msgstr ""
  20139. #. type: Plain text
  20140. #: guix-git/doc/guix.texi:13671
  20141. msgid "A graphical system with a choice of lightweight window managers instead of full-blown desktop environments would look like this:"
  20142. msgstr ""
  20143. #. type: include
  20144. #: guix-git/doc/guix.texi:13673
  20145. #, no-wrap
  20146. msgid "os-config-lightweight-desktop.texi"
  20147. msgstr ""
  20148. #. type: Plain text
  20149. #: guix-git/doc/guix.texi:13679
  20150. msgid "This example refers to the @file{/boot/efi} file system by its UUID, @code{1234-ABCD}. Replace this UUID with the right UUID on your system, as returned by the @command{blkid} command."
  20151. msgstr ""
  20152. #. type: Plain text
  20153. #: guix-git/doc/guix.texi:13683
  20154. msgid "@xref{Desktop Services}, for the exact list of services provided by @code{%desktop-services}. @xref{X.509 Certificates}, for background information about the @code{nss-certs} package that is used here."
  20155. msgstr ""
  20156. #. type: Plain text
  20157. #: guix-git/doc/guix.texi:13690
  20158. msgid "Again, @code{%desktop-services} is just a list of service objects. If you want to remove services from there, you can do so using the procedures for list filtering (@pxref{SRFI-1 Filtering and Partitioning,,, guile, GNU Guile Reference Manual}). For instance, the following expression returns a list that contains all the services in @code{%desktop-services} minus the Avahi service:"
  20159. msgstr ""
  20160. #. type: lisp
  20161. #: guix-git/doc/guix.texi:13695
  20162. #, no-wrap
  20163. msgid ""
  20164. "(remove (lambda (service)\n"
  20165. " (eq? (service-kind service) avahi-service-type))\n"
  20166. " %desktop-services)\n"
  20167. msgstr ""
  20168. #. type: Plain text
  20169. #: guix-git/doc/guix.texi:13698
  20170. msgid "Alternatively, the @code{modify-services} macro can be used:"
  20171. msgstr ""
  20172. #. type: lisp
  20173. #: guix-git/doc/guix.texi:13702
  20174. #, no-wrap
  20175. msgid ""
  20176. "(modify-services %desktop-services\n"
  20177. " (delete avahi-service-type))\n"
  20178. msgstr ""
  20179. #. type: unnumberedsubsec
  20180. #: guix-git/doc/guix.texi:13705
  20181. #, no-wrap
  20182. msgid "Instantiating the System"
  20183. msgstr ""
  20184. #. type: Plain text
  20185. #: guix-git/doc/guix.texi:13712
  20186. msgid "Assuming the @code{operating-system} declaration is stored in the @file{my-system-config.scm} file, the @command{guix system reconfigure my-system-config.scm} command instantiates that configuration, and makes it the default GRUB boot entry (@pxref{Invoking guix system})."
  20187. msgstr ""
  20188. #. type: Plain text
  20189. #: guix-git/doc/guix.texi:13720
  20190. msgid "The normal way to change the system configuration is by updating this file and re-running @command{guix system reconfigure}. One should never have to touch files in @file{/etc} or to run commands that modify the system state such as @command{useradd} or @command{grub-install}. In fact, you must avoid that since that would not only void your warranty but also prevent you from rolling back to previous versions of your system, should you ever need to."
  20191. msgstr ""
  20192. #. type: cindex
  20193. #: guix-git/doc/guix.texi:13721
  20194. #, no-wrap
  20195. msgid "roll-back, of the operating system"
  20196. msgstr ""
  20197. #. type: Plain text
  20198. #: guix-git/doc/guix.texi:13731
  20199. msgid "Speaking of roll-back, each time you run @command{guix system reconfigure}, a new @dfn{generation} of the system is created---without modifying or deleting previous generations. Old system generations get an entry in the bootloader boot menu, allowing you to boot them in case something went wrong with the latest generation. Reassuring, no? The @command{guix system list-generations} command lists the system generations available on disk. It is also possible to roll back the system via the commands @command{guix system roll-back} and @command{guix system switch-generation}."
  20200. msgstr ""
  20201. #. type: Plain text
  20202. #: guix-git/doc/guix.texi:13737
  20203. msgid "Although the @command{guix system reconfigure} command will not modify previous generations, you must take care when the current generation is not the latest (e.g., after invoking @command{guix system roll-back}), since the operation might overwrite a later generation (@pxref{Invoking guix system})."
  20204. msgstr ""
  20205. #. type: unnumberedsubsec
  20206. #: guix-git/doc/guix.texi:13738
  20207. #, no-wrap
  20208. msgid "The Programming Interface"
  20209. msgstr ""
  20210. #. type: Plain text
  20211. #: guix-git/doc/guix.texi:13743
  20212. msgid "At the Scheme level, the bulk of an @code{operating-system} declaration is instantiated with the following monadic procedure (@pxref{The Store Monad}):"
  20213. msgstr ""
  20214. #. type: deffn
  20215. #: guix-git/doc/guix.texi:13744
  20216. #, no-wrap
  20217. msgid "{Monadic Procedure} operating-system-derivation os"
  20218. msgstr ""
  20219. #. type: deffn
  20220. #: guix-git/doc/guix.texi:13747
  20221. msgid "Return a derivation that builds @var{os}, an @code{operating-system} object (@pxref{Derivations})."
  20222. msgstr ""
  20223. #. type: deffn
  20224. #: guix-git/doc/guix.texi:13751
  20225. msgid "The output of the derivation is a single directory that refers to all the packages, configuration files, and other supporting files needed to instantiate @var{os}."
  20226. msgstr ""
  20227. #. type: Plain text
  20228. #: guix-git/doc/guix.texi:13756
  20229. msgid "This procedure is provided by the @code{(gnu system)} module. Along with @code{(gnu services)} (@pxref{Services}), this module contains the guts of Guix System. Make sure to visit it!"
  20230. msgstr ""
  20231. #. type: section
  20232. #: guix-git/doc/guix.texi:13759
  20233. #, no-wrap
  20234. msgid "@code{operating-system} Reference"
  20235. msgstr ""
  20236. #. type: Plain text
  20237. #: guix-git/doc/guix.texi:13764
  20238. msgid "This section summarizes all the options available in @code{operating-system} declarations (@pxref{Using the Configuration System})."
  20239. msgstr ""
  20240. #. type: deftp
  20241. #: guix-git/doc/guix.texi:13765
  20242. #, no-wrap
  20243. msgid "{Data Type} operating-system"
  20244. msgstr ""
  20245. #. type: deftp
  20246. #: guix-git/doc/guix.texi:13769
  20247. msgid "This is the data type representing an operating system configuration. By that, we mean all the global system configuration, not per-user configuration (@pxref{Using the Configuration System})."
  20248. msgstr ""
  20249. #. type: item
  20250. #: guix-git/doc/guix.texi:13771
  20251. #, fuzzy, no-wrap
  20252. msgid "@code{kernel} (default: @code{linux-libre})"
  20253. msgstr "@code{gnome}(默认值:@code{gnome})"
  20254. #. type: table
  20255. #: guix-git/doc/guix.texi:13776
  20256. msgid "The package object of the operating system kernel to use@footnote{Currently only the Linux-libre kernel is fully supported. Using GNU@tie{}mach with the GNU@tie{}Hurd is experimental and only available when building a virtual machine disk image.}."
  20257. msgstr ""
  20258. #. type: code{#1}
  20259. #: guix-git/doc/guix.texi:13777 guix-git/doc/guix.texi:29519
  20260. #, no-wrap
  20261. msgid "hurd"
  20262. msgstr ""
  20263. #. type: item
  20264. #: guix-git/doc/guix.texi:13778
  20265. #, fuzzy, no-wrap
  20266. msgid "@code{hurd} (default: @code{#f})"
  20267. msgstr "@code{port}(默认值:@code{22})"
  20268. #. type: table
  20269. #: guix-git/doc/guix.texi:13783
  20270. msgid "The package object of the Hurd to be started by the kernel. When this field is set, produce a GNU/Hurd operating system. In that case, @code{kernel} must also be set to the @code{gnumach} package---the microkernel the Hurd runs on."
  20271. msgstr ""
  20272. #. type: quotation
  20273. #: guix-git/doc/guix.texi:13786
  20274. msgid "This feature is experimental and only supported for disk images."
  20275. msgstr ""
  20276. #. type: item
  20277. #: guix-git/doc/guix.texi:13788
  20278. #, fuzzy, no-wrap
  20279. msgid "@code{kernel-loadable-modules} (default: '())"
  20280. msgstr "@code{features} (@code{'()})"
  20281. #. type: table
  20282. #: guix-git/doc/guix.texi:13791
  20283. msgid "A list of objects (usually packages) to collect loadable kernel modules from--e.g. @code{(list ddcci-driver-linux)}."
  20284. msgstr ""
  20285. #. type: item
  20286. #: guix-git/doc/guix.texi:13792
  20287. #, fuzzy, no-wrap
  20288. msgid "@code{kernel-arguments} (default: @code{%default-kernel-arguments})"
  20289. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  20290. #. type: table
  20291. #: guix-git/doc/guix.texi:13795
  20292. msgid "List of strings or gexps representing additional arguments to pass on the command-line of the kernel---e.g., @code{(\"console=ttyS0\")}."
  20293. msgstr ""
  20294. #. type: code{#1}
  20295. #: guix-git/doc/guix.texi:13796 guix-git/doc/guix.texi:33141
  20296. #: guix-git/doc/guix.texi:33160
  20297. #, no-wrap
  20298. msgid "bootloader"
  20299. msgstr ""
  20300. #. type: table
  20301. #: guix-git/doc/guix.texi:13798
  20302. msgid "The system bootloader configuration object. @xref{Bootloader Configuration}."
  20303. msgstr ""
  20304. #. type: code{#1}
  20305. #: guix-git/doc/guix.texi:13799 guix-git/doc/guix.texi:33330
  20306. #, no-wrap
  20307. msgid "label"
  20308. msgstr ""
  20309. #. type: table
  20310. #: guix-git/doc/guix.texi:13802
  20311. msgid "This is the label (a string) as it appears in the bootloader's menu entry. The default label includes the kernel name and version."
  20312. msgstr ""
  20313. #. type: item
  20314. #: guix-git/doc/guix.texi:13803 guix-git/doc/guix.texi:15393
  20315. #: guix-git/doc/guix.texi:18353 guix-git/doc/guix.texi:33260
  20316. #, no-wrap
  20317. msgid "@code{keyboard-layout} (default: @code{#f})"
  20318. msgstr ""
  20319. #. type: table
  20320. #: guix-git/doc/guix.texi:13808
  20321. msgid "This field specifies the keyboard layout to use in the console. It can be either @code{#f}, in which case the default keyboard layout is used (usually US English), or a @code{<keyboard-layout>} record. @xref{Keyboard Layout}, for more information."
  20322. msgstr ""
  20323. #. type: table
  20324. #: guix-git/doc/guix.texi:13813
  20325. msgid "This keyboard layout is in effect as soon as the kernel has booted. For instance, it is the keyboard layout in effect when you type a passphrase if your root file system is on a @code{luks-device-mapping} mapped device (@pxref{Mapped Devices})."
  20326. msgstr ""
  20327. #. type: quotation
  20328. #: guix-git/doc/guix.texi:13820
  20329. msgid "This does @emph{not} specify the keyboard layout used by the bootloader, nor that used by the graphical display server. @xref{Bootloader Configuration}, for information on how to specify the bootloader's keyboard layout. @xref{X Window}, for information on how to specify the keyboard layout used by the X Window System."
  20330. msgstr ""
  20331. #. type: item
  20332. #: guix-git/doc/guix.texi:13822
  20333. #, no-wrap
  20334. msgid "@code{initrd-modules} (default: @code{%base-initrd-modules})"
  20335. msgstr ""
  20336. #. type: cindex
  20337. #: guix-git/doc/guix.texi:13823 guix-git/doc/guix.texi:32965
  20338. #: guix-git/doc/guix.texi:33069
  20339. #, no-wrap
  20340. msgid "initrd"
  20341. msgstr ""
  20342. #. type: cindex
  20343. #: guix-git/doc/guix.texi:13824 guix-git/doc/guix.texi:32966
  20344. #: guix-git/doc/guix.texi:33070
  20345. #, no-wrap
  20346. msgid "initial RAM disk"
  20347. msgstr ""
  20348. #. type: table
  20349. #: guix-git/doc/guix.texi:13827
  20350. msgid "The list of Linux kernel modules that need to be available in the initial RAM disk. @xref{Initial RAM Disk}."
  20351. msgstr ""
  20352. #. type: item
  20353. #: guix-git/doc/guix.texi:13828
  20354. #, no-wrap
  20355. msgid "@code{initrd} (default: @code{base-initrd})"
  20356. msgstr ""
  20357. #. type: table
  20358. #: guix-git/doc/guix.texi:13832
  20359. msgid "A procedure that returns an initial RAM disk for the Linux kernel. This field is provided to support low-level customization and should rarely be needed for casual use. @xref{Initial RAM Disk}."
  20360. msgstr ""
  20361. #. type: item
  20362. #: guix-git/doc/guix.texi:13833
  20363. #, fuzzy, no-wrap
  20364. msgid "@code{firmware} (default: @code{%base-firmware})"
  20365. msgstr "@code{mate}(默认值:@code{mate})"
  20366. #. type: cindex
  20367. #: guix-git/doc/guix.texi:13834
  20368. #, no-wrap
  20369. msgid "firmware"
  20370. msgstr ""
  20371. #. type: table
  20372. #: guix-git/doc/guix.texi:13836
  20373. msgid "List of firmware packages loadable by the operating system kernel."
  20374. msgstr ""
  20375. #. type: table
  20376. #: guix-git/doc/guix.texi:13841
  20377. msgid "The default includes firmware needed for Atheros- and Broadcom-based WiFi devices (Linux-libre modules @code{ath9k} and @code{b43-open}, respectively). @xref{Hardware Considerations}, for more info on supported hardware."
  20378. msgstr ""
  20379. #. type: code{#1}
  20380. #: guix-git/doc/guix.texi:13842 guix-git/doc/guix.texi:34164
  20381. #, no-wrap
  20382. msgid "host-name"
  20383. msgstr ""
  20384. #. type: table
  20385. #: guix-git/doc/guix.texi:13844
  20386. msgid "The host name."
  20387. msgstr ""
  20388. #. type: code{#1}
  20389. #: guix-git/doc/guix.texi:13845
  20390. #, no-wrap
  20391. msgid "hosts-file"
  20392. msgstr ""
  20393. #. type: cindex
  20394. #: guix-git/doc/guix.texi:13846
  20395. #, no-wrap
  20396. msgid "hosts file"
  20397. msgstr ""
  20398. #. type: table
  20399. #: guix-git/doc/guix.texi:13851
  20400. msgid "A file-like object (@pxref{G-Expressions, file-like objects}) for use as @file{/etc/hosts} (@pxref{Host Names,,, libc, The GNU C Library Reference Manual}). The default is a file with entries for @code{localhost} and @var{host-name}."
  20401. msgstr ""
  20402. #. type: item
  20403. #: guix-git/doc/guix.texi:13852
  20404. #, no-wrap
  20405. msgid "@code{mapped-devices} (default: @code{'()})"
  20406. msgstr ""
  20407. #. type: table
  20408. #: guix-git/doc/guix.texi:13854
  20409. msgid "A list of mapped devices. @xref{Mapped Devices}."
  20410. msgstr ""
  20411. #. type: code{#1}
  20412. #: guix-git/doc/guix.texi:13855
  20413. #, no-wrap
  20414. msgid "file-systems"
  20415. msgstr ""
  20416. #. type: table
  20417. #: guix-git/doc/guix.texi:13857
  20418. msgid "A list of file systems. @xref{File Systems}."
  20419. msgstr ""
  20420. #. type: cindex
  20421. #: guix-git/doc/guix.texi:13858
  20422. #, no-wrap
  20423. msgid "swap devices"
  20424. msgstr ""
  20425. #. type: cindex
  20426. #: guix-git/doc/guix.texi:13859
  20427. #, no-wrap
  20428. msgid "swap space"
  20429. msgstr ""
  20430. #. type: item
  20431. #: guix-git/doc/guix.texi:13860
  20432. #, no-wrap
  20433. msgid "@code{swap-devices} (default: @code{'()})"
  20434. msgstr ""
  20435. #. type: table
  20436. #: guix-git/doc/guix.texi:13865
  20437. msgid "A list of UUIDs, file system labels, or strings identifying devices or files to be used for ``swap space'' (@pxref{Memory Concepts,,, libc, The GNU C Library Reference Manual}). Here are some examples:"
  20438. msgstr ""
  20439. #. type: item
  20440. #: guix-git/doc/guix.texi:13867
  20441. #, no-wrap
  20442. msgid "(list (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\"))"
  20443. msgstr ""
  20444. #. type: table
  20445. #: guix-git/doc/guix.texi:13871
  20446. msgid "Use the swap partition with the given UUID@. You can learn the UUID of a Linux swap partition by running @command{swaplabel @var{device}}, where @var{device} is the @file{/dev} file name of that partition."
  20447. msgstr ""
  20448. #. type: item
  20449. #: guix-git/doc/guix.texi:13872
  20450. #, no-wrap
  20451. msgid "(list (file-system-label \"swap\"))"
  20452. msgstr ""
  20453. #. type: table
  20454. #: guix-git/doc/guix.texi:13876
  20455. msgid "Use the partition with label @code{swap}. Again, the @command{swaplabel} command allows you to view and change the label of a Linux swap partition."
  20456. msgstr ""
  20457. #. type: item
  20458. #: guix-git/doc/guix.texi:13877
  20459. #, no-wrap
  20460. msgid "(list \"/swapfile\")"
  20461. msgstr ""
  20462. #. type: table
  20463. #: guix-git/doc/guix.texi:13879
  20464. msgid "Use the file @file{/swapfile} as swap space."
  20465. msgstr ""
  20466. #. type: item
  20467. #: guix-git/doc/guix.texi:13880
  20468. #, no-wrap
  20469. msgid "(list \"/dev/sda3\" \"/dev/sdb2\")"
  20470. msgstr ""
  20471. #. type: table
  20472. #: guix-git/doc/guix.texi:13884
  20473. msgid "Use the @file{/dev/sda3} and @file{/dev/sdb2} partitions as swap space. We recommend referring to swap devices by UUIDs or labels as shown above instead."
  20474. msgstr ""
  20475. #. type: table
  20476. #: guix-git/doc/guix.texi:13890
  20477. msgid "It is possible to specify a swap file in a file system on a mapped device (under @file{/dev/mapper}), provided that the necessary device mapping and file system are also specified. @xref{Mapped Devices} and @ref{File Systems}."
  20478. msgstr ""
  20479. #. type: item
  20480. #: guix-git/doc/guix.texi:13891
  20481. #, no-wrap
  20482. msgid "@code{users} (default: @code{%base-user-accounts})"
  20483. msgstr ""
  20484. #. type: itemx
  20485. #: guix-git/doc/guix.texi:13892
  20486. #, fuzzy, no-wrap
  20487. msgid "@code{groups} (default: @code{%base-groups})"
  20488. msgstr "@code{gnome}(默认值:@code{gnome})"
  20489. #. type: table
  20490. #: guix-git/doc/guix.texi:13894
  20491. msgid "List of user accounts and groups. @xref{User Accounts}."
  20492. msgstr ""
  20493. #. type: table
  20494. #: guix-git/doc/guix.texi:13897
  20495. msgid "If the @code{users} list lacks a user account with UID@tie{}0, a ``root'' account with UID@tie{}0 is automatically added."
  20496. msgstr ""
  20497. #. type: item
  20498. #: guix-git/doc/guix.texi:13898
  20499. #, no-wrap
  20500. msgid "@code{skeletons} (default: @code{(default-skeletons)})"
  20501. msgstr ""
  20502. #. type: table
  20503. #: guix-git/doc/guix.texi:13902
  20504. msgid "A list of target file name/file-like object tuples (@pxref{G-Expressions, file-like objects}). These are the skeleton files that will be added to the home directory of newly-created user accounts."
  20505. msgstr ""
  20506. #. type: table
  20507. #: guix-git/doc/guix.texi:13904
  20508. msgid "For instance, a valid value may look like this:"
  20509. msgstr ""
  20510. #. type: lisp
  20511. #: guix-git/doc/guix.texi:13910
  20512. #, no-wrap
  20513. msgid ""
  20514. "`((\".bashrc\" ,(plain-file \"bashrc\" \"echo Hello\\n\"))\n"
  20515. " (\".guile\" ,(plain-file \"guile\"\n"
  20516. " \"(use-modules (ice-9 readline))\n"
  20517. " (activate-readline)\")))\n"
  20518. msgstr ""
  20519. #. type: item
  20520. #: guix-git/doc/guix.texi:13912
  20521. #, fuzzy, no-wrap
  20522. msgid "@code{issue} (default: @code{%default-issue})"
  20523. msgstr "@code{mate}(默认值:@code{mate})"
  20524. #. type: table
  20525. #: guix-git/doc/guix.texi:13915
  20526. msgid "A string denoting the contents of the @file{/etc/issue} file, which is displayed when users log in on a text console."
  20527. msgstr ""
  20528. #. type: item
  20529. #: guix-git/doc/guix.texi:13916
  20530. #, fuzzy, no-wrap
  20531. msgid "@code{packages} (default: @code{%base-packages})"
  20532. msgstr "@code{xfce}(默认值:@code{xfce})"
  20533. #. type: table
  20534. #: guix-git/doc/guix.texi:13920
  20535. msgid "A list of packages to be installed in the global profile, which is accessible at @file{/run/current-system/profile}. Each element is either a package variable or a package/output tuple. Here's a simple example of both:"
  20536. msgstr ""
  20537. #. type: lisp
  20538. #: guix-git/doc/guix.texi:13925
  20539. #, no-wrap
  20540. msgid ""
  20541. "(cons* git ; the default \"out\" output\n"
  20542. " (list git \"send-email\") ; another output of git\n"
  20543. " %base-packages) ; the default set\n"
  20544. msgstr ""
  20545. #. type: table
  20546. #: guix-git/doc/guix.texi:13930
  20547. msgid "The default set includes core utilities and it is good practice to install non-core utilities in user profiles (@pxref{Invoking guix package})."
  20548. msgstr ""
  20549. #. type: code{#1}
  20550. #: guix-git/doc/guix.texi:13931
  20551. #, no-wrap
  20552. msgid "timezone"
  20553. msgstr ""
  20554. #. type: table
  20555. #: guix-git/doc/guix.texi:13933
  20556. msgid "A timezone identifying string---e.g., @code{\"Europe/Paris\"}."
  20557. msgstr ""
  20558. #. type: table
  20559. #: guix-git/doc/guix.texi:13937
  20560. msgid "You can run the @command{tzselect} command to find out which timezone string corresponds to your region. Choosing an invalid timezone name causes @command{guix system} to fail."
  20561. msgstr ""
  20562. #. type: item
  20563. #: guix-git/doc/guix.texi:13938 guix-git/doc/guix.texi:19958
  20564. #, no-wrap
  20565. msgid "@code{locale} (default: @code{\"en_US.utf8\"})"
  20566. msgstr ""
  20567. #. type: table
  20568. #: guix-git/doc/guix.texi:13941
  20569. msgid "The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information."
  20570. msgstr ""
  20571. #. type: item
  20572. #: guix-git/doc/guix.texi:13942
  20573. #, fuzzy, no-wrap
  20574. msgid "@code{locale-definitions} (default: @code{%default-locale-definitions})"
  20575. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  20576. #. type: table
  20577. #: guix-git/doc/guix.texi:13945
  20578. msgid "The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}."
  20579. msgstr ""
  20580. #. type: item
  20581. #: guix-git/doc/guix.texi:13946
  20582. #, no-wrap
  20583. msgid "@code{locale-libcs} (default: @code{(list @var{glibc})})"
  20584. msgstr ""
  20585. #. type: table
  20586. #: guix-git/doc/guix.texi:13950
  20587. msgid "The list of GNU@tie{}libc packages whose locale data and tools are used to build the locale definitions. @xref{Locales}, for compatibility considerations that justify this option."
  20588. msgstr ""
  20589. #. type: item
  20590. #: guix-git/doc/guix.texi:13951
  20591. #, fuzzy, no-wrap
  20592. msgid "@code{name-service-switch} (default: @code{%default-nss})"
  20593. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  20594. #. type: table
  20595. #: guix-git/doc/guix.texi:13955
  20596. msgid "Configuration of the libc name service switch (NSS)---a @code{<name-service-switch>} object. @xref{Name Service Switch}, for details."
  20597. msgstr ""
  20598. #. type: item
  20599. #: guix-git/doc/guix.texi:13956
  20600. #, fuzzy, no-wrap
  20601. msgid "@code{services} (default: @code{%base-services})"
  20602. msgstr "@code{xfce}(默认值:@code{xfce})"
  20603. #. type: table
  20604. #: guix-git/doc/guix.texi:13958
  20605. msgid "A list of service objects denoting system services. @xref{Services}."
  20606. msgstr ""
  20607. #. type: cindex
  20608. #: guix-git/doc/guix.texi:13959
  20609. #, no-wrap
  20610. msgid "essential services"
  20611. msgstr ""
  20612. #. type: item
  20613. #: guix-git/doc/guix.texi:13960
  20614. #, no-wrap
  20615. msgid "@code{essential-services} (default: ...)"
  20616. msgstr ""
  20617. #. type: table
  20618. #: guix-git/doc/guix.texi:13965
  20619. msgid "The list of ``essential services''---i.e., things like instances of @code{system-service-type} and @code{host-name-service-type} (@pxref{Service Reference}), which are derived from the operating system definition itself. As a user you should @emph{never} need to touch this field."
  20620. msgstr ""
  20621. #. type: item
  20622. #: guix-git/doc/guix.texi:13966
  20623. #, no-wrap
  20624. msgid "@code{pam-services} (default: @code{(base-pam-services)})"
  20625. msgstr ""
  20626. #. type: cindex
  20627. #: guix-git/doc/guix.texi:13967
  20628. #, no-wrap
  20629. msgid "PAM"
  20630. msgstr ""
  20631. #. type: cindex
  20632. #: guix-git/doc/guix.texi:13968
  20633. #, no-wrap
  20634. msgid "pluggable authentication modules"
  20635. msgstr ""
  20636. #. type: table
  20637. #: guix-git/doc/guix.texi:13971
  20638. msgid "Linux @dfn{pluggable authentication module} (PAM) services."
  20639. msgstr ""
  20640. #. type: item
  20641. #: guix-git/doc/guix.texi:13972
  20642. #, fuzzy, no-wrap
  20643. msgid "@code{setuid-programs} (default: @code{%setuid-programs})"
  20644. msgstr "@code{features} (@code{'()})"
  20645. #. type: table
  20646. #: guix-git/doc/guix.texi:13975
  20647. msgid "List of @code{<setuid-program>}. @xref{Setuid Programs}, for more information."
  20648. msgstr ""
  20649. #. type: item
  20650. #: guix-git/doc/guix.texi:13976
  20651. #, fuzzy, no-wrap
  20652. msgid "@code{sudoers-file} (default: @code{%sudoers-specification})"
  20653. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  20654. #. type: cindex
  20655. #: guix-git/doc/guix.texi:13977
  20656. #, no-wrap
  20657. msgid "sudoers file"
  20658. msgstr ""
  20659. #. type: table
  20660. #: guix-git/doc/guix.texi:13980
  20661. msgid "The contents of the @file{/etc/sudoers} file as a file-like object (@pxref{G-Expressions, @code{local-file} and @code{plain-file}})."
  20662. msgstr ""
  20663. #. type: table
  20664. #: guix-git/doc/guix.texi:13985
  20665. msgid "This file specifies which users can use the @command{sudo} command, what they are allowed to do, and what privileges they may gain. The default is that only @code{root} and members of the @code{wheel} group may use @code{sudo}."
  20666. msgstr ""
  20667. #. type: deffn
  20668. #: guix-git/doc/guix.texi:13988
  20669. #, no-wrap
  20670. msgid "{Scheme Syntax} this-operating-system"
  20671. msgstr ""
  20672. #. type: deffn
  20673. #: guix-git/doc/guix.texi:13991
  20674. msgid "When used in the @emph{lexical scope} of an operating system field definition, this identifier resolves to the operating system being defined."
  20675. msgstr ""
  20676. #. type: deffn
  20677. #: guix-git/doc/guix.texi:13994
  20678. msgid "The example below shows how to refer to the operating system being defined in the definition of the @code{label} field:"
  20679. msgstr ""
  20680. #. type: lisp
  20681. #: guix-git/doc/guix.texi:13997 guix-git/doc/guix.texi:17574
  20682. #, no-wrap
  20683. msgid ""
  20684. "(use-modules (gnu) (guix))\n"
  20685. "\n"
  20686. msgstr ""
  20687. #. type: lisp
  20688. #: guix-git/doc/guix.texi:14002
  20689. #, no-wrap
  20690. msgid ""
  20691. "(operating-system\n"
  20692. " ;; ...\n"
  20693. " (label (package-full-name\n"
  20694. " (operating-system-kernel this-operating-system))))\n"
  20695. msgstr ""
  20696. #. type: deffn
  20697. #: guix-git/doc/guix.texi:14006
  20698. msgid "It is an error to refer to @code{this-operating-system} outside an operating system definition."
  20699. msgstr ""
  20700. #. type: Plain text
  20701. #: guix-git/doc/guix.texi:14017
  20702. msgid "The list of file systems to be mounted is specified in the @code{file-systems} field of the operating system declaration (@pxref{Using the Configuration System}). Each file system is declared using the @code{file-system} form, like this:"
  20703. msgstr ""
  20704. #. type: lisp
  20705. #: guix-git/doc/guix.texi:14023
  20706. #, no-wrap
  20707. msgid ""
  20708. "(file-system\n"
  20709. " (mount-point \"/home\")\n"
  20710. " (device \"/dev/sda3\")\n"
  20711. " (type \"ext4\"))\n"
  20712. msgstr ""
  20713. #. type: Plain text
  20714. #: guix-git/doc/guix.texi:14027
  20715. msgid "As usual, some of the fields are mandatory---those shown in the example above---while others can be omitted. These are described below."
  20716. msgstr ""
  20717. #. type: deftp
  20718. #: guix-git/doc/guix.texi:14028
  20719. #, no-wrap
  20720. msgid "{Data Type} file-system"
  20721. msgstr ""
  20722. #. type: deftp
  20723. #: guix-git/doc/guix.texi:14031
  20724. msgid "Objects of this type represent file systems to be mounted. They contain the following members:"
  20725. msgstr ""
  20726. #. type: item
  20727. #: guix-git/doc/guix.texi:14033 guix-git/doc/guix.texi:14383
  20728. #, no-wrap
  20729. msgid "type"
  20730. msgstr ""
  20731. #. type: table
  20732. #: guix-git/doc/guix.texi:14036
  20733. msgid "This is a string specifying the type of the file system---e.g., @code{\"ext4\"}."
  20734. msgstr ""
  20735. #. type: code{#1}
  20736. #: guix-git/doc/guix.texi:14037
  20737. #, no-wrap
  20738. msgid "mount-point"
  20739. msgstr ""
  20740. #. type: table
  20741. #: guix-git/doc/guix.texi:14039
  20742. msgid "This designates the place where the file system is to be mounted."
  20743. msgstr ""
  20744. #. type: code{#1}
  20745. #: guix-git/doc/guix.texi:14040
  20746. #, no-wrap
  20747. msgid "device"
  20748. msgstr ""
  20749. #. type: table
  20750. #: guix-git/doc/guix.texi:14050
  20751. msgid "This names the ``source'' of the file system. It can be one of three things: a file system label, a file system UUID, or the name of a @file{/dev} node. Labels and UUIDs offer a way to refer to file systems without having to hard-code their actual device name@footnote{Note that, while it is tempting to use @file{/dev/disk/by-uuid} and similar device names to achieve the same result, this is not recommended: These special device nodes are created by the udev daemon and may be unavailable at the time the device is mounted.}."
  20752. msgstr ""
  20753. #. type: findex
  20754. #: guix-git/doc/guix.texi:14051
  20755. #, no-wrap
  20756. msgid "file-system-label"
  20757. msgstr ""
  20758. #. type: table
  20759. #: guix-git/doc/guix.texi:14056
  20760. msgid "File system labels are created using the @code{file-system-label} procedure, UUIDs are created using @code{uuid}, and @file{/dev} node are plain strings. Here's an example of a file system referred to by its label, as shown by the @command{e2label} command:"
  20761. msgstr ""
  20762. #. type: lisp
  20763. #: guix-git/doc/guix.texi:14062
  20764. #, no-wrap
  20765. msgid ""
  20766. "(file-system\n"
  20767. " (mount-point \"/home\")\n"
  20768. " (type \"ext4\")\n"
  20769. " (device (file-system-label \"my-home\")))\n"
  20770. msgstr ""
  20771. #. type: code{#1}
  20772. #: guix-git/doc/guix.texi:14064 guix-git/doc/guix.texi:31772
  20773. #: guix-git/doc/guix.texi:31788
  20774. #, no-wrap
  20775. msgid "uuid"
  20776. msgstr ""
  20777. #. type: table
  20778. #: guix-git/doc/guix.texi:14072
  20779. msgid "UUIDs are converted from their string representation (as shown by the @command{tune2fs -l} command) using the @code{uuid} form@footnote{The @code{uuid} form expects 16-byte UUIDs as defined in @uref{https://tools.ietf.org/html/rfc4122, RFC@tie{}4122}. This is the form of UUID used by the ext2 family of file systems and others, but it is different from ``UUIDs'' found in FAT file systems, for instance.}, like this:"
  20780. msgstr ""
  20781. #. type: lisp
  20782. #: guix-git/doc/guix.texi:14078
  20783. #, no-wrap
  20784. msgid ""
  20785. "(file-system\n"
  20786. " (mount-point \"/home\")\n"
  20787. " (type \"ext4\")\n"
  20788. " (device (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  20789. msgstr ""
  20790. #. type: table
  20791. #: guix-git/doc/guix.texi:14086
  20792. msgid "When the source of a file system is a mapped device (@pxref{Mapped Devices}), its @code{device} field @emph{must} refer to the mapped device name---e.g., @file{\"/dev/mapper/root-partition\"}. This is required so that the system knows that mounting the file system depends on having the corresponding device mapping established."
  20793. msgstr ""
  20794. #. type: item
  20795. #: guix-git/doc/guix.texi:14087
  20796. #, no-wrap
  20797. msgid "@code{flags} (default: @code{'()})"
  20798. msgstr ""
  20799. #. type: table
  20800. #: guix-git/doc/guix.texi:14097
  20801. msgid "This is a list of symbols denoting mount flags. Recognized flags include @code{read-only}, @code{bind-mount}, @code{no-dev} (disallow access to special files), @code{no-suid} (ignore setuid and setgid bits), @code{no-atime} (do not update file access times), @code{strict-atime} (update file access time), @code{lazy-time} (only update time on the in-memory version of the file inode), and @code{no-exec} (disallow program execution). @xref{Mount-Unmount-Remount,,, libc, The GNU C Library Reference Manual}, for more information on these flags."
  20802. msgstr ""
  20803. #. type: item
  20804. #: guix-git/doc/guix.texi:14098
  20805. #, no-wrap
  20806. msgid "@code{options} (default: @code{#f})"
  20807. msgstr ""
  20808. #. type: table
  20809. #: guix-git/doc/guix.texi:14107
  20810. msgid "This is either @code{#f}, or a string denoting mount options passed to the file system driver. @xref{Mount-Unmount-Remount,,, libc, The GNU C Library Reference Manual}, for details and run @command{man 8 mount} for options for various file systems. Note that the @code{file-system-options->alist} and @code{alist->file-system-options} procedures from @code{(gnu system file-systems)} can be used to convert file system options given as an association list to the string representation, and vice-versa."
  20811. msgstr ""
  20812. #. type: item
  20813. #: guix-git/doc/guix.texi:14108
  20814. #, no-wrap
  20815. msgid "@code{mount?} (default: @code{#t})"
  20816. msgstr ""
  20817. #. type: table
  20818. #: guix-git/doc/guix.texi:14113
  20819. msgid "This value indicates whether to automatically mount the file system when the system is brought up. When set to @code{#f}, the file system gets an entry in @file{/etc/fstab} (read by the @command{mount} command) but is not automatically mounted."
  20820. msgstr ""
  20821. #. type: item
  20822. #: guix-git/doc/guix.texi:14114
  20823. #, no-wrap
  20824. msgid "@code{needed-for-boot?} (default: @code{#f})"
  20825. msgstr ""
  20826. #. type: table
  20827. #: guix-git/doc/guix.texi:14119
  20828. msgid "This Boolean value indicates whether the file system is needed when booting. If that is true, then the file system is mounted when the initial RAM disk (initrd) is loaded. This is always the case, for instance, for the root file system."
  20829. msgstr ""
  20830. #. type: item
  20831. #: guix-git/doc/guix.texi:14120
  20832. #, no-wrap
  20833. msgid "@code{check?} (default: @code{#t})"
  20834. msgstr ""
  20835. #. type: table
  20836. #: guix-git/doc/guix.texi:14123
  20837. msgid "This Boolean indicates whether the file system needs to be checked for errors before being mounted."
  20838. msgstr ""
  20839. #. type: item
  20840. #: guix-git/doc/guix.texi:14124
  20841. #, no-wrap
  20842. msgid "@code{create-mount-point?} (default: @code{#f})"
  20843. msgstr ""
  20844. #. type: table
  20845. #: guix-git/doc/guix.texi:14126
  20846. msgid "When true, the mount point is created if it does not exist yet."
  20847. msgstr ""
  20848. #. type: item
  20849. #: guix-git/doc/guix.texi:14127
  20850. #, fuzzy, no-wrap
  20851. msgid "@code{mount-may-fail?} (default: @code{#f})"
  20852. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  20853. #. type: table
  20854. #: guix-git/doc/guix.texi:14132
  20855. msgid "When true, this indicates that mounting this file system can fail but that should not be considered an error. This is useful in unusual cases; an example of this is @code{efivarfs}, a file system that can only be mounted on EFI/UEFI systems."
  20856. msgstr ""
  20857. #. type: item
  20858. #: guix-git/doc/guix.texi:14133
  20859. #, no-wrap
  20860. msgid "@code{dependencies} (default: @code{'()})"
  20861. msgstr ""
  20862. #. type: table
  20863. #: guix-git/doc/guix.texi:14137
  20864. msgid "This is a list of @code{<file-system>} or @code{<mapped-device>} objects representing file systems that must be mounted or mapped devices that must be opened before (and unmounted or closed after) this one."
  20865. msgstr ""
  20866. #. type: table
  20867. #: guix-git/doc/guix.texi:14141
  20868. msgid "As an example, consider a hierarchy of mounts: @file{/sys/fs/cgroup} is a dependency of @file{/sys/fs/cgroup/cpu} and @file{/sys/fs/cgroup/memory}."
  20869. msgstr ""
  20870. #. type: table
  20871. #: guix-git/doc/guix.texi:14144
  20872. msgid "Another example is a file system that depends on a mapped device, for example for an encrypted partition (@pxref{Mapped Devices})."
  20873. msgstr ""
  20874. #. type: deffn
  20875. #: guix-git/doc/guix.texi:14147
  20876. #, no-wrap
  20877. msgid "{Scheme Procedure} file-system-label @var{str}"
  20878. msgstr ""
  20879. #. type: deffn
  20880. #: guix-git/doc/guix.texi:14150
  20881. msgid "This procedure returns an opaque file system label from @var{str}, a string:"
  20882. msgstr ""
  20883. #. type: lisp
  20884. #: guix-git/doc/guix.texi:14154
  20885. #, no-wrap
  20886. msgid ""
  20887. "(file-system-label \"home\")\n"
  20888. "@result{} #<file-system-label \"home\">\n"
  20889. msgstr ""
  20890. #. type: deffn
  20891. #: guix-git/doc/guix.texi:14158
  20892. msgid "File system labels are used to refer to file systems by label rather than by device name. See above for examples."
  20893. msgstr ""
  20894. #. type: Plain text
  20895. #: guix-git/doc/guix.texi:14162
  20896. msgid "The @code{(gnu system file-systems)} exports the following useful variables."
  20897. msgstr ""
  20898. #. type: defvr
  20899. #: guix-git/doc/guix.texi:14163
  20900. #, no-wrap
  20901. msgid "{Scheme Variable} %base-file-systems"
  20902. msgstr ""
  20903. #. type: defvr
  20904. #: guix-git/doc/guix.texi:14168
  20905. msgid "These are essential file systems that are required on normal systems, such as @code{%pseudo-terminal-file-system} and @code{%immutable-store} (see below). Operating system declarations should always contain at least these."
  20906. msgstr ""
  20907. #. type: defvr
  20908. #: guix-git/doc/guix.texi:14170
  20909. #, no-wrap
  20910. msgid "{Scheme Variable} %pseudo-terminal-file-system"
  20911. msgstr ""
  20912. #. type: defvr
  20913. #: guix-git/doc/guix.texi:14176
  20914. msgid "This is the file system to be mounted as @file{/dev/pts}. It supports @dfn{pseudo-terminals} created @i{via} @code{openpty} and similar functions (@pxref{Pseudo-Terminals,,, libc, The GNU C Library Reference Manual}). Pseudo-terminals are used by terminal emulators such as @command{xterm}."
  20915. msgstr ""
  20916. #. type: defvr
  20917. #: guix-git/doc/guix.texi:14178
  20918. #, no-wrap
  20919. msgid "{Scheme Variable} %shared-memory-file-system"
  20920. msgstr ""
  20921. #. type: defvr
  20922. #: guix-git/doc/guix.texi:14182
  20923. msgid "This file system is mounted as @file{/dev/shm} and is used to support memory sharing across processes (@pxref{Memory-mapped I/O, @code{shm_open},, libc, The GNU C Library Reference Manual})."
  20924. msgstr ""
  20925. #. type: defvr
  20926. #: guix-git/doc/guix.texi:14184
  20927. #, no-wrap
  20928. msgid "{Scheme Variable} %immutable-store"
  20929. msgstr ""
  20930. #. type: defvr
  20931. #: guix-git/doc/guix.texi:14189
  20932. msgid "This file system performs a read-only ``bind mount'' of @file{/gnu/store}, making it read-only for all the users including @code{root}. This prevents against accidental modification by software running as @code{root} or by system administrators."
  20933. msgstr ""
  20934. #. type: defvr
  20935. #: guix-git/doc/guix.texi:14192
  20936. msgid "The daemon itself is still able to write to the store: it remounts it read-write in its own ``name space.''"
  20937. msgstr ""
  20938. #. type: defvr
  20939. #: guix-git/doc/guix.texi:14194
  20940. #, no-wrap
  20941. msgid "{Scheme Variable} %binary-format-file-system"
  20942. msgstr ""
  20943. #. type: defvr
  20944. #: guix-git/doc/guix.texi:14198
  20945. msgid "The @code{binfmt_misc} file system, which allows handling of arbitrary executable file types to be delegated to user space. This requires the @code{binfmt.ko} kernel module to be loaded."
  20946. msgstr ""
  20947. #. type: defvr
  20948. #: guix-git/doc/guix.texi:14200
  20949. #, no-wrap
  20950. msgid "{Scheme Variable} %fuse-control-file-system"
  20951. msgstr ""
  20952. #. type: defvr
  20953. #: guix-git/doc/guix.texi:14204
  20954. msgid "The @code{fusectl} file system, which allows unprivileged users to mount and unmount user-space FUSE file systems. This requires the @code{fuse.ko} kernel module to be loaded."
  20955. msgstr ""
  20956. #. type: Plain text
  20957. #: guix-git/doc/guix.texi:14208
  20958. msgid "The @code{(gnu system uuid)} module provides tools to deal with file system ``unique identifiers'' (UUIDs)."
  20959. msgstr ""
  20960. #. type: deffn
  20961. #: guix-git/doc/guix.texi:14209
  20962. #, no-wrap
  20963. msgid "{Scheme Procedure} uuid @var{str} [@var{type}]"
  20964. msgstr ""
  20965. #. type: deffn
  20966. #: guix-git/doc/guix.texi:14212
  20967. msgid "Return an opaque UUID (unique identifier) object of the given @var{type} (a symbol) by parsing @var{str} (a string):"
  20968. msgstr ""
  20969. #. type: lisp
  20970. #: guix-git/doc/guix.texi:14216
  20971. #, no-wrap
  20972. msgid ""
  20973. "(uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")\n"
  20974. "@result{} #<<uuid> type: dce bv: @dots{}>\n"
  20975. "\n"
  20976. msgstr ""
  20977. #. type: lisp
  20978. #: guix-git/doc/guix.texi:14219
  20979. #, no-wrap
  20980. msgid ""
  20981. "(uuid \"1234-ABCD\" 'fat)\n"
  20982. "@result{} #<<uuid> type: fat bv: @dots{}>\n"
  20983. msgstr ""
  20984. #. type: deffn
  20985. #: guix-git/doc/guix.texi:14223
  20986. msgid "@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat}, @code{ntfs}, or one of the commonly found synonyms for these."
  20987. msgstr ""
  20988. #. type: deffn
  20989. #: guix-git/doc/guix.texi:14226
  20990. msgid "UUIDs are another way to unambiguously refer to file systems in operating system configuration. See the examples above."
  20991. msgstr ""
  20992. #. type: subsection
  20993. #: guix-git/doc/guix.texi:14229 guix-git/doc/guix.texi:14230
  20994. #, fuzzy, no-wrap
  20995. msgid "Btrfs file system"
  20996. msgstr "网络文件系统"
  20997. #. type: Plain text
  20998. #: guix-git/doc/guix.texi:14236
  20999. msgid "The Btrfs has special features, such as subvolumes, that merit being explained in more details. The following section attempts to cover basic as well as complex uses of a Btrfs file system with the Guix System."
  21000. msgstr ""
  21001. #. type: Plain text
  21002. #: guix-git/doc/guix.texi:14239
  21003. msgid "In its simplest usage, a Btrfs file system can be described, for example, by:"
  21004. msgstr ""
  21005. #. type: lisp
  21006. #: guix-git/doc/guix.texi:14245
  21007. #, no-wrap
  21008. msgid ""
  21009. "(file-system\n"
  21010. " (mount-point \"/home\")\n"
  21011. " (type \"btrfs\")\n"
  21012. " (device (file-system-label \"my-home\")))\n"
  21013. msgstr ""
  21014. #. type: Plain text
  21015. #: guix-git/doc/guix.texi:14251
  21016. msgid "The example below is more complex, as it makes use of a Btrfs subvolume, named @code{rootfs}. The parent Btrfs file system is labeled @code{my-btrfs-pool}, and is located on an encrypted device (hence the dependency on @code{mapped-devices}):"
  21017. msgstr ""
  21018. #. type: lisp
  21019. #: guix-git/doc/guix.texi:14259
  21020. #, no-wrap
  21021. msgid ""
  21022. "(file-system\n"
  21023. " (device (file-system-label \"my-btrfs-pool\"))\n"
  21024. " (mount-point \"/\")\n"
  21025. " (type \"btrfs\")\n"
  21026. " (options \"subvol=rootfs\")\n"
  21027. " (dependencies mapped-devices))\n"
  21028. msgstr ""
  21029. #. type: Plain text
  21030. #: guix-git/doc/guix.texi:14270
  21031. msgid "Some bootloaders, for example GRUB, only mount a Btrfs partition at its top level during the early boot, and rely on their configuration to refer to the correct subvolume path within that top level. The bootloaders operating in this way typically produce their configuration on a running system where the Btrfs partitions are already mounted and where the subvolume information is readily available. As an example, @command{grub-mkconfig}, the configuration generator command shipped with GRUB, reads @file{/proc/self/mountinfo} to determine the top-level path of a subvolume."
  21032. msgstr ""
  21033. #. type: Plain text
  21034. #: guix-git/doc/guix.texi:14278
  21035. msgid "The Guix System produces a bootloader configuration using the operating system configuration as its sole input; it is therefore necessary to extract the subvolume name on which @file{/gnu/store} lives (if any) from that operating system configuration. To better illustrate, consider a subvolume named 'rootfs' which contains the root file system data. In such situation, the GRUB bootloader would only see the top level of the root Btrfs partition, e.g.:"
  21036. msgstr ""
  21037. #. type: example
  21038. #: guix-git/doc/guix.texi:14285
  21039. #, no-wrap
  21040. msgid ""
  21041. "/ (top level)\n"
  21042. "├── rootfs (subvolume directory)\n"
  21043. " ├── gnu (normal directory)\n"
  21044. " ├── store (normal directory)\n"
  21045. "[...]\n"
  21046. msgstr ""
  21047. #. type: Plain text
  21048. #: guix-git/doc/guix.texi:14290
  21049. msgid "Thus, the subvolume name must be prepended to the @file{/gnu/store} path of the kernel, initrd binaries and any other files referred to in the GRUB configuration that must be found during the early boot."
  21050. msgstr ""
  21051. #. type: Plain text
  21052. #: guix-git/doc/guix.texi:14293
  21053. msgid "The next example shows a nested hierarchy of subvolumes and directories:"
  21054. msgstr ""
  21055. #. type: example
  21056. #: guix-git/doc/guix.texi:14300
  21057. #, no-wrap
  21058. msgid ""
  21059. "/ (top level)\n"
  21060. "├── rootfs (subvolume)\n"
  21061. " ├── gnu (normal directory)\n"
  21062. " ├── store (subvolume)\n"
  21063. "[...]\n"
  21064. msgstr ""
  21065. #. type: Plain text
  21066. #: guix-git/doc/guix.texi:14307
  21067. msgid "This scenario would work without mounting the 'store' subvolume. Mounting 'rootfs' is sufficient, since the subvolume name matches its intended mount point in the file system hierarchy. Alternatively, the 'store' subvolume could be referred to by setting the @code{subvol} option to either @code{/rootfs/gnu/store} or @code{rootfs/gnu/store}."
  21068. msgstr ""
  21069. #. type: Plain text
  21070. #: guix-git/doc/guix.texi:14309
  21071. msgid "Finally, a more contrived example of nested subvolumes:"
  21072. msgstr ""
  21073. #. type: example
  21074. #: guix-git/doc/guix.texi:14316
  21075. #, no-wrap
  21076. msgid ""
  21077. "/ (top level)\n"
  21078. "├── root-snapshots (subvolume)\n"
  21079. " ├── root-current (subvolume)\n"
  21080. " ├── guix-store (subvolume)\n"
  21081. "[...]\n"
  21082. msgstr ""
  21083. #. type: Plain text
  21084. #: guix-git/doc/guix.texi:14323
  21085. msgid "Here, the 'guix-store' subvolume doesn't match its intended mount point, so it is necessary to mount it. The subvolume must be fully specified, by passing its file name to the @code{subvol} option. To illustrate, the 'guix-store' subvolume could be mounted on @file{/gnu/store} by using a file system declaration such as:"
  21086. msgstr ""
  21087. #. type: lisp
  21088. #: guix-git/doc/guix.texi:14331
  21089. #, no-wrap
  21090. msgid ""
  21091. "(file-system\n"
  21092. " (device (file-system-label \"btrfs-pool-1\"))\n"
  21093. " (mount-point \"/gnu/store\")\n"
  21094. " (type \"btrfs\")\n"
  21095. " (options \"subvol=root-snapshots/root-current/guix-store,\\\n"
  21096. "compress-force=zstd,space_cache=v2\"))\n"
  21097. msgstr ""
  21098. #. type: cindex
  21099. #: guix-git/doc/guix.texi:14336
  21100. #, no-wrap
  21101. msgid "device mapping"
  21102. msgstr ""
  21103. #. type: cindex
  21104. #: guix-git/doc/guix.texi:14337
  21105. #, no-wrap
  21106. msgid "mapped devices"
  21107. msgstr ""
  21108. #. type: Plain text
  21109. #: guix-git/doc/guix.texi:14354
  21110. msgid "The Linux kernel has a notion of @dfn{device mapping}: a block device, such as a hard disk partition, can be @dfn{mapped} into another device, usually in @code{/dev/mapper/}, with additional processing over the data that flows through it@footnote{Note that the GNU@tie{}Hurd makes no difference between the concept of a ``mapped device'' and that of a file system: both boil down to @emph{translating} input/output operations made on a file to operations on its backing store. Thus, the Hurd implements mapped devices, like file systems, using the generic @dfn{translator} mechanism (@pxref{Translators,,, hurd, The GNU Hurd Reference Manual}).}. A typical example is encryption device mapping: all writes to the mapped device are encrypted, and all reads are deciphered, transparently. Guix extends this notion by considering any device or set of devices that are @dfn{transformed} in some way to create a new device; for instance, RAID devices are obtained by @dfn{assembling} several other devices, such as hard disks or partitions, into a new one that behaves as one partition."
  21111. msgstr ""
  21112. #. type: Plain text
  21113. #: guix-git/doc/guix.texi:14357
  21114. msgid "Mapped devices are declared using the @code{mapped-device} form, defined as follows; for examples, see below."
  21115. msgstr ""
  21116. #. type: deftp
  21117. #: guix-git/doc/guix.texi:14358
  21118. #, no-wrap
  21119. msgid "{Data Type} mapped-device"
  21120. msgstr ""
  21121. #. type: deftp
  21122. #: guix-git/doc/guix.texi:14361
  21123. msgid "Objects of this type represent device mappings that will be made when the system boots up."
  21124. msgstr ""
  21125. #. type: table
  21126. #: guix-git/doc/guix.texi:14368
  21127. msgid "This is either a string specifying the name of the block device to be mapped, such as @code{\"/dev/sda3\"}, or a list of such strings when several devices need to be assembled for creating a new one. In case of LVM this is a string specifying name of the volume group to be mapped."
  21128. msgstr ""
  21129. #. type: code{#1}
  21130. #: guix-git/doc/guix.texi:14369 guix-git/doc/guix.texi:33233
  21131. #, no-wrap
  21132. msgid "target"
  21133. msgstr ""
  21134. #. type: table
  21135. #: guix-git/doc/guix.texi:14378
  21136. msgid "This string specifies the name of the resulting mapped device. For kernel mappers such as encrypted devices of type @code{luks-device-mapping}, specifying @code{\"my-partition\"} leads to the creation of the @code{\"/dev/mapper/my-partition\"} device. For RAID devices of type @code{raid-device-mapping}, the full device name such as @code{\"/dev/md0\"} needs to be given. LVM logical volumes of type @code{lvm-device-mapping} need to be specified as @code{\"VGNAME-LVNAME\"}."
  21137. msgstr ""
  21138. #. type: item
  21139. #: guix-git/doc/guix.texi:14379
  21140. #, no-wrap
  21141. msgid "targets"
  21142. msgstr ""
  21143. #. type: table
  21144. #: guix-git/doc/guix.texi:14382
  21145. msgid "This list of strings specifies names of the resulting mapped devices in case there are several. The format is identical to @var{target}."
  21146. msgstr ""
  21147. #. type: table
  21148. #: guix-git/doc/guix.texi:14386
  21149. msgid "This must be a @code{mapped-device-kind} object, which specifies how @var{source} is mapped to @var{target}."
  21150. msgstr ""
  21151. #. type: defvr
  21152. #: guix-git/doc/guix.texi:14389
  21153. #, no-wrap
  21154. msgid "{Scheme Variable} luks-device-mapping"
  21155. msgstr ""
  21156. #. type: defvr
  21157. #: guix-git/doc/guix.texi:14393
  21158. msgid "This defines LUKS block device encryption using the @command{cryptsetup} command from the package with the same name. It relies on the @code{dm-crypt} Linux kernel module."
  21159. msgstr ""
  21160. #. type: defvr
  21161. #: guix-git/doc/guix.texi:14395
  21162. #, no-wrap
  21163. msgid "{Scheme Variable} raid-device-mapping"
  21164. msgstr ""
  21165. #. type: defvr
  21166. #: guix-git/doc/guix.texi:14400
  21167. msgid "This defines a RAID device, which is assembled using the @code{mdadm} command from the package with the same name. It requires a Linux kernel module for the appropriate RAID level to be loaded, such as @code{raid456} for RAID-4, RAID-5 or RAID-6, or @code{raid10} for RAID-10."
  21168. msgstr ""
  21169. #. type: cindex
  21170. #: guix-git/doc/guix.texi:14402
  21171. #, no-wrap
  21172. msgid "LVM, logical volume manager"
  21173. msgstr ""
  21174. #. type: defvr
  21175. #: guix-git/doc/guix.texi:14403
  21176. #, no-wrap
  21177. msgid "{Scheme Variable} lvm-device-mapping"
  21178. msgstr ""
  21179. #. type: defvr
  21180. #: guix-git/doc/guix.texi:14408
  21181. msgid "This defines one or more logical volumes for the Linux @uref{https://www.sourceware.org/lvm2/, Logical Volume Manager (LVM)}. The volume group is activated by the @command{vgchange} command from the @code{lvm2} package."
  21182. msgstr ""
  21183. #. type: cindex
  21184. #: guix-git/doc/guix.texi:14410
  21185. #, no-wrap
  21186. msgid "disk encryption"
  21187. msgstr ""
  21188. #. type: cindex
  21189. #: guix-git/doc/guix.texi:14411
  21190. #, no-wrap
  21191. msgid "LUKS"
  21192. msgstr ""
  21193. #. type: Plain text
  21194. #: guix-git/doc/guix.texi:14419
  21195. msgid "The following example specifies a mapping from @file{/dev/sda3} to @file{/dev/mapper/home} using LUKS---the @url{https://gitlab.com/cryptsetup/cryptsetup,Linux Unified Key Setup}, a standard mechanism for disk encryption. The @file{/dev/mapper/home} device can then be used as the @code{device} of a @code{file-system} declaration (@pxref{File Systems})."
  21196. msgstr ""
  21197. #. type: lisp
  21198. #: guix-git/doc/guix.texi:14425
  21199. #, no-wrap
  21200. msgid ""
  21201. "(mapped-device\n"
  21202. " (source \"/dev/sda3\")\n"
  21203. " (target \"home\")\n"
  21204. " (type luks-device-mapping))\n"
  21205. msgstr ""
  21206. #. type: Plain text
  21207. #: guix-git/doc/guix.texi:14430
  21208. msgid "Alternatively, to become independent of device numbering, one may obtain the LUKS UUID (@dfn{unique identifier}) of the source device by a command like:"
  21209. msgstr ""
  21210. #. type: example
  21211. #: guix-git/doc/guix.texi:14433
  21212. #, no-wrap
  21213. msgid "cryptsetup luksUUID /dev/sda3\n"
  21214. msgstr ""
  21215. #. type: Plain text
  21216. #: guix-git/doc/guix.texi:14436
  21217. msgid "and use it as follows:"
  21218. msgstr ""
  21219. #. type: lisp
  21220. #: guix-git/doc/guix.texi:14442
  21221. #, no-wrap
  21222. msgid ""
  21223. "(mapped-device\n"
  21224. " (source (uuid \"cb67fc72-0d54-4c88-9d4b-b225f30b0f44\"))\n"
  21225. " (target \"home\")\n"
  21226. " (type luks-device-mapping))\n"
  21227. msgstr ""
  21228. #. type: cindex
  21229. #: guix-git/doc/guix.texi:14444
  21230. #, no-wrap
  21231. msgid "swap encryption"
  21232. msgstr ""
  21233. #. type: Plain text
  21234. #: guix-git/doc/guix.texi:14450
  21235. msgid "It is also desirable to encrypt swap space, since swap space may contain sensitive data. One way to accomplish that is to use a swap file in a file system on a device mapped via LUKS encryption. In this way, the swap file is encrypted because the entire device is encrypted. @xref{Preparing for Installation,,Disk Partitioning}, for an example."
  21236. msgstr ""
  21237. #. type: Plain text
  21238. #: guix-git/doc/guix.texi:14453
  21239. msgid "A RAID device formed of the partitions @file{/dev/sda1} and @file{/dev/sdb1} may be declared as follows:"
  21240. msgstr ""
  21241. #. type: lisp
  21242. #: guix-git/doc/guix.texi:14459
  21243. #, no-wrap
  21244. msgid ""
  21245. "(mapped-device\n"
  21246. " (source (list \"/dev/sda1\" \"/dev/sdb1\"))\n"
  21247. " (target \"/dev/md0\")\n"
  21248. " (type raid-device-mapping))\n"
  21249. msgstr ""
  21250. #. type: Plain text
  21251. #: guix-git/doc/guix.texi:14466
  21252. msgid "The @file{/dev/md0} device can then be used as the @code{device} of a @code{file-system} declaration (@pxref{File Systems}). Note that the RAID level need not be given; it is chosen during the initial creation and formatting of the RAID device and is determined automatically later."
  21253. msgstr ""
  21254. #. type: Plain text
  21255. #: guix-git/doc/guix.texi:14469
  21256. msgid "LVM logical volumes ``alpha'' and ``beta'' from volume group ``vg0'' can be declared as follows:"
  21257. msgstr ""
  21258. #. type: lisp
  21259. #: guix-git/doc/guix.texi:14475
  21260. #, no-wrap
  21261. msgid ""
  21262. "(mapped-device\n"
  21263. " (source \"vg0\")\n"
  21264. " (targets (list \"vg0-alpha\" \"vg0-beta\"))\n"
  21265. " (type lvm-device-mapping))\n"
  21266. msgstr ""
  21267. #. type: Plain text
  21268. #: guix-git/doc/guix.texi:14480
  21269. msgid "Devices @file{/dev/mapper/vg0-alpha} and @file{/dev/mapper/vg0-beta} can then be used as the @code{device} of a @code{file-system} declaration (@pxref{File Systems})."
  21270. msgstr ""
  21271. #. type: cindex
  21272. #: guix-git/doc/guix.texi:14484
  21273. #, no-wrap
  21274. msgid "users"
  21275. msgstr ""
  21276. #. type: cindex
  21277. #: guix-git/doc/guix.texi:14485
  21278. #, no-wrap
  21279. msgid "accounts"
  21280. msgstr ""
  21281. #. type: cindex
  21282. #: guix-git/doc/guix.texi:14486
  21283. #, no-wrap
  21284. msgid "user accounts"
  21285. msgstr ""
  21286. #. type: Plain text
  21287. #: guix-git/doc/guix.texi:14490
  21288. msgid "User accounts and groups are entirely managed through the @code{operating-system} declaration. They are specified with the @code{user-account} and @code{user-group} forms:"
  21289. msgstr ""
  21290. #. type: lisp
  21291. #: guix-git/doc/guix.texi:14500
  21292. #, no-wrap
  21293. msgid ""
  21294. "(user-account\n"
  21295. " (name \"alice\")\n"
  21296. " (group \"users\")\n"
  21297. " (supplementary-groups '(\"wheel\" ;allow use of sudo, etc.\n"
  21298. " \"audio\" ;sound card\n"
  21299. " \"video\" ;video devices such as webcams\n"
  21300. " \"cdrom\")) ;the good ol' CD-ROM\n"
  21301. " (comment \"Bob's sister\"))\n"
  21302. msgstr ""
  21303. #. type: Plain text
  21304. #: guix-git/doc/guix.texi:14504
  21305. msgid "Here's a user account that uses a different shell and a custom home directory (the default would be @file{\"/home/bob\"}):"
  21306. msgstr ""
  21307. #. type: lisp
  21308. #: guix-git/doc/guix.texi:14512
  21309. #, no-wrap
  21310. msgid ""
  21311. "(user-account\n"
  21312. " (name \"bob\")\n"
  21313. " (group \"users\")\n"
  21314. " (comment \"Alice's bro\")\n"
  21315. " (shell (file-append zsh \"/bin/zsh\"))\n"
  21316. " (home-directory \"/home/robert\"))\n"
  21317. msgstr ""
  21318. #. type: Plain text
  21319. #: guix-git/doc/guix.texi:14521
  21320. msgid "When booting or upon completion of @command{guix system reconfigure}, the system ensures that only the user accounts and groups specified in the @code{operating-system} declaration exist, and with the specified properties. Thus, account or group creations or modifications made by directly invoking commands such as @command{useradd} are lost upon reconfiguration or reboot. This ensures that the system remains exactly as declared."
  21321. msgstr ""
  21322. #. type: deftp
  21323. #: guix-git/doc/guix.texi:14522
  21324. #, no-wrap
  21325. msgid "{Data Type} user-account"
  21326. msgstr ""
  21327. #. type: deftp
  21328. #: guix-git/doc/guix.texi:14525
  21329. msgid "Objects of this type represent user accounts. The following members may be specified:"
  21330. msgstr ""
  21331. #. type: table
  21332. #: guix-git/doc/guix.texi:14529
  21333. msgid "The name of the user account."
  21334. msgstr ""
  21335. #. type: itemx
  21336. #: guix-git/doc/guix.texi:14530 guix-git/doc/guix.texi:32919
  21337. #, no-wrap
  21338. msgid "group"
  21339. msgstr ""
  21340. #. type: cindex
  21341. #: guix-git/doc/guix.texi:14531 guix-git/doc/guix.texi:14610
  21342. #, no-wrap
  21343. msgid "groups"
  21344. msgstr ""
  21345. #. type: table
  21346. #: guix-git/doc/guix.texi:14534
  21347. msgid "This is the name (a string) or identifier (a number) of the user group this account belongs to."
  21348. msgstr ""
  21349. #. type: item
  21350. #: guix-git/doc/guix.texi:14535
  21351. #, no-wrap
  21352. msgid "@code{supplementary-groups} (default: @code{'()})"
  21353. msgstr ""
  21354. #. type: table
  21355. #: guix-git/doc/guix.texi:14538
  21356. msgid "Optionally, this can be defined as a list of group names that this account belongs to."
  21357. msgstr ""
  21358. #. type: item
  21359. #: guix-git/doc/guix.texi:14539
  21360. #, no-wrap
  21361. msgid "@code{uid} (default: @code{#f})"
  21362. msgstr ""
  21363. #. type: table
  21364. #: guix-git/doc/guix.texi:14543
  21365. msgid "This is the user ID for this account (a number), or @code{#f}. In the latter case, a number is automatically chosen by the system when the account is created."
  21366. msgstr ""
  21367. #. type: item
  21368. #: guix-git/doc/guix.texi:14544
  21369. #, no-wrap
  21370. msgid "@code{comment} (default: @code{\"\"})"
  21371. msgstr ""
  21372. #. type: table
  21373. #: guix-git/doc/guix.texi:14546
  21374. msgid "A comment about the account, such as the account owner's full name."
  21375. msgstr ""
  21376. #. type: code{#1}
  21377. #: guix-git/doc/guix.texi:14547
  21378. #, no-wrap
  21379. msgid "home-directory"
  21380. msgstr ""
  21381. #. type: table
  21382. #: guix-git/doc/guix.texi:14549
  21383. msgid "This is the name of the home directory for the account."
  21384. msgstr ""
  21385. #. type: item
  21386. #: guix-git/doc/guix.texi:14550
  21387. #, no-wrap
  21388. msgid "@code{create-home-directory?} (default: @code{#t})"
  21389. msgstr ""
  21390. #. type: table
  21391. #: guix-git/doc/guix.texi:14553
  21392. msgid "Indicates whether the home directory of this account should be created if it does not exist yet."
  21393. msgstr ""
  21394. #. type: item
  21395. #: guix-git/doc/guix.texi:14554
  21396. #, no-wrap
  21397. msgid "@code{shell} (default: Bash)"
  21398. msgstr ""
  21399. #. type: table
  21400. #: guix-git/doc/guix.texi:14558
  21401. msgid "This is a G-expression denoting the file name of a program to be used as the shell (@pxref{G-Expressions}). For example, you would refer to the Bash executable like this:"
  21402. msgstr ""
  21403. #. type: lisp
  21404. #: guix-git/doc/guix.texi:14561
  21405. #, no-wrap
  21406. msgid "(file-append bash \"/bin/bash\")\n"
  21407. msgstr ""
  21408. #. type: table
  21409. #: guix-git/doc/guix.texi:14565
  21410. msgid "... and to the Zsh executable like that:"
  21411. msgstr ""
  21412. #. type: lisp
  21413. #: guix-git/doc/guix.texi:14568
  21414. #, no-wrap
  21415. msgid "(file-append zsh \"/bin/zsh\")\n"
  21416. msgstr ""
  21417. #. type: item
  21418. #: guix-git/doc/guix.texi:14570 guix-git/doc/guix.texi:14628
  21419. #, no-wrap
  21420. msgid "@code{system?} (default: @code{#f})"
  21421. msgstr ""
  21422. #. type: table
  21423. #: guix-git/doc/guix.texi:14574
  21424. msgid "This Boolean value indicates whether the account is a ``system'' account. System accounts are sometimes treated specially; for instance, graphical login managers do not list them."
  21425. msgstr ""
  21426. #. type: anchor{#1}
  21427. #: guix-git/doc/guix.texi:14576
  21428. msgid "user-account-password"
  21429. msgstr ""
  21430. #. type: cindex
  21431. #: guix-git/doc/guix.texi:14576
  21432. #, no-wrap
  21433. msgid "password, for user accounts"
  21434. msgstr ""
  21435. #. type: item
  21436. #: guix-git/doc/guix.texi:14577 guix-git/doc/guix.texi:14632
  21437. #, no-wrap
  21438. msgid "@code{password} (default: @code{#f})"
  21439. msgstr ""
  21440. #. type: table
  21441. #: guix-git/doc/guix.texi:14583
  21442. msgid "You would normally leave this field to @code{#f}, initialize user passwords as @code{root} with the @command{passwd} command, and then let users change it with @command{passwd}. Passwords set with @command{passwd} are of course preserved across reboot and reconfiguration."
  21443. msgstr ""
  21444. #. type: table
  21445. #: guix-git/doc/guix.texi:14587
  21446. msgid "If you @emph{do} want to set an initial password for an account, then this field must contain the encrypted password, as a string. You can use the @code{crypt} procedure for this purpose:"
  21447. msgstr ""
  21448. #. type: lisp
  21449. #: guix-git/doc/guix.texi:14592
  21450. #, no-wrap
  21451. msgid ""
  21452. "(user-account\n"
  21453. " (name \"charlie\")\n"
  21454. " (group \"users\")\n"
  21455. "\n"
  21456. msgstr ""
  21457. #. type: lisp
  21458. #: guix-git/doc/guix.texi:14595
  21459. #, no-wrap
  21460. msgid ""
  21461. " ;; Specify a SHA-512-hashed initial password.\n"
  21462. " (password (crypt \"InitialPassword!\" \"$6$abc\")))\n"
  21463. msgstr ""
  21464. #. type: quotation
  21465. #: guix-git/doc/guix.texi:14601
  21466. msgid "The hash of this initial password will be available in a file in @file{/gnu/store}, readable by all the users, so this method must be used with care."
  21467. msgstr ""
  21468. #. type: table
  21469. #: guix-git/doc/guix.texi:14606
  21470. msgid "@xref{Passphrase Storage,,, libc, The GNU C Library Reference Manual}, for more information on password encryption, and @ref{Encryption,,, guile, GNU Guile Reference Manual}, for information on Guile's @code{crypt} procedure."
  21471. msgstr ""
  21472. #. type: Plain text
  21473. #: guix-git/doc/guix.texi:14612
  21474. msgid "User group declarations are even simpler:"
  21475. msgstr ""
  21476. #. type: lisp
  21477. #: guix-git/doc/guix.texi:14615
  21478. #, no-wrap
  21479. msgid "(user-group (name \"students\"))\n"
  21480. msgstr ""
  21481. #. type: deftp
  21482. #: guix-git/doc/guix.texi:14617
  21483. #, no-wrap
  21484. msgid "{Data Type} user-group"
  21485. msgstr ""
  21486. #. type: deftp
  21487. #: guix-git/doc/guix.texi:14619
  21488. msgid "This type is for, well, user groups. There are just a few fields:"
  21489. msgstr ""
  21490. #. type: table
  21491. #: guix-git/doc/guix.texi:14623
  21492. msgid "The name of the group."
  21493. msgstr ""
  21494. #. type: item
  21495. #: guix-git/doc/guix.texi:14624 guix-git/doc/guix.texi:29606
  21496. #, no-wrap
  21497. msgid "@code{id} (default: @code{#f})"
  21498. msgstr ""
  21499. #. type: table
  21500. #: guix-git/doc/guix.texi:14627
  21501. msgid "The group identifier (a number). If @code{#f}, a new number is automatically allocated when the group is created."
  21502. msgstr ""
  21503. #. type: table
  21504. #: guix-git/doc/guix.texi:14631
  21505. msgid "This Boolean value indicates whether the group is a ``system'' group. System groups have low numerical IDs."
  21506. msgstr ""
  21507. #. type: table
  21508. #: guix-git/doc/guix.texi:14635
  21509. msgid "What, user groups can have a password? Well, apparently yes. Unless @code{#f}, this field specifies the password of the group."
  21510. msgstr ""
  21511. #. type: Plain text
  21512. #: guix-git/doc/guix.texi:14641
  21513. msgid "For convenience, a variable lists all the basic user groups one may expect:"
  21514. msgstr ""
  21515. #. type: defvr
  21516. #: guix-git/doc/guix.texi:14642
  21517. #, no-wrap
  21518. msgid "{Scheme Variable} %base-groups"
  21519. msgstr ""
  21520. #. type: defvr
  21521. #: guix-git/doc/guix.texi:14647
  21522. msgid "This is the list of basic user groups that users and/or packages expect to be present on the system. This includes groups such as ``root'', ``wheel'', and ``users'', as well as groups used to control access to specific devices such as ``audio'', ``disk'', and ``cdrom''."
  21523. msgstr ""
  21524. #. type: defvr
  21525. #: guix-git/doc/guix.texi:14649
  21526. #, no-wrap
  21527. msgid "{Scheme Variable} %base-user-accounts"
  21528. msgstr ""
  21529. #. type: defvr
  21530. #: guix-git/doc/guix.texi:14652
  21531. msgid "This is the list of basic system accounts that programs may expect to find on a GNU/Linux system, such as the ``nobody'' account."
  21532. msgstr ""
  21533. #. type: defvr
  21534. #: guix-git/doc/guix.texi:14655
  21535. msgid "Note that the ``root'' account is not included here. It is a special-case and is automatically added whether or not it is specified."
  21536. msgstr ""
  21537. #. type: cindex
  21538. #: guix-git/doc/guix.texi:14661
  21539. #, no-wrap
  21540. msgid "keymap"
  21541. msgstr ""
  21542. #. type: Plain text
  21543. #: guix-git/doc/guix.texi:14669
  21544. msgid "To specify what each key of your keyboard does, you need to tell the operating system what @dfn{keyboard layout} you want to use. The default, when nothing is specified, is the US English QWERTY layout for 105-key PC keyboards. However, German speakers will usually prefer the German QWERTZ layout, French speakers will want the AZERTY layout, and so on; hackers might prefer Dvorak or bépo, and they might even want to further customize the effect of some of the keys. This section explains how to get that done."
  21545. msgstr ""
  21546. #. type: cindex
  21547. #: guix-git/doc/guix.texi:14670
  21548. #, no-wrap
  21549. msgid "keyboard layout, definition"
  21550. msgstr ""
  21551. #. type: Plain text
  21552. #: guix-git/doc/guix.texi:14672
  21553. msgid "There are three components that will want to know about your keyboard layout:"
  21554. msgstr ""
  21555. #. type: itemize
  21556. #: guix-git/doc/guix.texi:14679
  21557. msgid "The @emph{bootloader} may want to know what keyboard layout you want to use (@pxref{Bootloader Configuration, @code{keyboard-layout}}). This is useful if you want, for instance, to make sure that you can type the passphrase of your encrypted root partition using the right layout."
  21558. msgstr ""
  21559. #. type: itemize
  21560. #: guix-git/doc/guix.texi:14684
  21561. msgid "The @emph{operating system kernel}, Linux, will need that so that the console is properly configured (@pxref{operating-system Reference, @code{keyboard-layout}})."
  21562. msgstr ""
  21563. #. type: itemize
  21564. #: guix-git/doc/guix.texi:14688
  21565. msgid "The @emph{graphical display server}, usually Xorg, also has its own idea of the keyboard layout (@pxref{X Window, @code{keyboard-layout}})."
  21566. msgstr ""
  21567. #. type: Plain text
  21568. #: guix-git/doc/guix.texi:14692
  21569. msgid "Guix allows you to configure all three separately but, fortunately, it allows you to share the same keyboard layout for all three components."
  21570. msgstr ""
  21571. #. type: cindex
  21572. #: guix-git/doc/guix.texi:14693
  21573. #, no-wrap
  21574. msgid "XKB, keyboard layouts"
  21575. msgstr ""
  21576. #. type: Plain text
  21577. #: guix-git/doc/guix.texi:14701
  21578. msgid "Keyboard layouts are represented by records created by the @code{keyboard-layout} procedure of @code{(gnu system keyboard)}. Following the X Keyboard extension (XKB), each layout has four attributes: a name (often a language code such as ``fi'' for Finnish or ``jp'' for Japanese), an optional variant name, an optional keyboard model name, and a possibly empty list of additional options. In most cases the layout name is all you care about."
  21579. msgstr ""
  21580. #. type: deffn
  21581. #: guix-git/doc/guix.texi:14702
  21582. #, no-wrap
  21583. msgid "{Scheme Procedure} keyboard-layout @var{name} [@var{variant}] @"
  21584. msgstr ""
  21585. #. type: deffn
  21586. #: guix-git/doc/guix.texi:14705
  21587. msgid "[#:model] [#:options '()] Return a new keyboard layout with the given @var{name} and @var{variant}."
  21588. msgstr ""
  21589. #. type: deffn
  21590. #: guix-git/doc/guix.texi:14709
  21591. msgid "@var{name} must be a string such as @code{\"fr\"}; @var{variant} must be a string such as @code{\"bepo\"} or @code{\"nodeadkeys\"}. See the @code{xkeyboard-config} package for valid options."
  21592. msgstr ""
  21593. #. type: Plain text
  21594. #: guix-git/doc/guix.texi:14712
  21595. msgid "Here are a few examples:"
  21596. msgstr ""
  21597. #. type: lisp
  21598. #: guix-git/doc/guix.texi:14717
  21599. #, no-wrap
  21600. msgid ""
  21601. ";; The German QWERTZ layout. Here we assume a standard\n"
  21602. ";; \"pc105\" keyboard model.\n"
  21603. "(keyboard-layout \"de\")\n"
  21604. "\n"
  21605. msgstr ""
  21606. #. type: lisp
  21607. #: guix-git/doc/guix.texi:14720
  21608. #, no-wrap
  21609. msgid ""
  21610. ";; The bépo variant of the French layout.\n"
  21611. "(keyboard-layout \"fr\" \"bepo\")\n"
  21612. "\n"
  21613. msgstr ""
  21614. #. type: lisp
  21615. #: guix-git/doc/guix.texi:14723
  21616. #, no-wrap
  21617. msgid ""
  21618. ";; The Catalan layout.\n"
  21619. "(keyboard-layout \"es\" \"cat\")\n"
  21620. "\n"
  21621. msgstr ""
  21622. #. type: lisp
  21623. #: guix-git/doc/guix.texi:14726
  21624. #, no-wrap
  21625. msgid ""
  21626. ";; Arabic layout with \"Alt-Shift\" to switch to US layout.\n"
  21627. "(keyboard-layout \"ar,us\" #:options '(\"grp:alt_shift_toggle\"))\n"
  21628. "\n"
  21629. msgstr ""
  21630. #. type: lisp
  21631. #: guix-git/doc/guix.texi:14733
  21632. #, no-wrap
  21633. msgid ""
  21634. ";; The Latin American Spanish layout. In addition, the\n"
  21635. ";; \"Caps Lock\" key is used as an additional \"Ctrl\" key,\n"
  21636. ";; and the \"Menu\" key is used as a \"Compose\" key to enter\n"
  21637. ";; accented letters.\n"
  21638. "(keyboard-layout \"latam\"\n"
  21639. " #:options '(\"ctrl:nocaps\" \"compose:menu\"))\n"
  21640. "\n"
  21641. msgstr ""
  21642. #. type: lisp
  21643. #: guix-git/doc/guix.texi:14736
  21644. #, no-wrap
  21645. msgid ""
  21646. ";; The Russian layout for a ThinkPad keyboard.\n"
  21647. "(keyboard-layout \"ru\" #:model \"thinkpad\")\n"
  21648. "\n"
  21649. msgstr ""
  21650. #. type: lisp
  21651. #: guix-git/doc/guix.texi:14741
  21652. #, no-wrap
  21653. msgid ""
  21654. ";; The \"US international\" layout, which is the US layout plus\n"
  21655. ";; dead keys to enter accented characters. This is for an\n"
  21656. ";; Apple MacBook keyboard.\n"
  21657. "(keyboard-layout \"us\" \"intl\" #:model \"macbook78\")\n"
  21658. msgstr ""
  21659. #. type: Plain text
  21660. #: guix-git/doc/guix.texi:14745
  21661. msgid "See the @file{share/X11/xkb} directory of the @code{xkeyboard-config} package for a complete list of supported layouts, variants, and models."
  21662. msgstr ""
  21663. #. type: cindex
  21664. #: guix-git/doc/guix.texi:14746
  21665. #, no-wrap
  21666. msgid "keyboard layout, configuration"
  21667. msgstr ""
  21668. #. type: Plain text
  21669. #: guix-git/doc/guix.texi:14750
  21670. msgid "Let's say you want your system to use the Turkish keyboard layout throughout your system---bootloader, console, and Xorg. Here's what your system configuration would look like:"
  21671. msgstr ""
  21672. #. type: findex
  21673. #: guix-git/doc/guix.texi:14751
  21674. #, no-wrap
  21675. msgid "set-xorg-configuration"
  21676. msgstr ""
  21677. #. type: lisp
  21678. #: guix-git/doc/guix.texi:14755
  21679. #, no-wrap
  21680. msgid ""
  21681. ";; Using the Turkish layout for the bootloader, the console,\n"
  21682. ";; and for Xorg.\n"
  21683. "\n"
  21684. msgstr ""
  21685. #. type: lisp
  21686. #: guix-git/doc/guix.texi:14767
  21687. #, no-wrap
  21688. msgid ""
  21689. "(operating-system\n"
  21690. " ;; ...\n"
  21691. " (keyboard-layout (keyboard-layout \"tr\")) ;for the console\n"
  21692. " (bootloader (bootloader-configuration\n"
  21693. " (bootloader grub-efi-bootloader)\n"
  21694. " (target \"/boot/efi\")\n"
  21695. " (keyboard-layout keyboard-layout))) ;for GRUB\n"
  21696. " (services (cons (set-xorg-configuration\n"
  21697. " (xorg-configuration ;for Xorg\n"
  21698. " (keyboard-layout keyboard-layout)))\n"
  21699. " %desktop-services)))\n"
  21700. msgstr ""
  21701. #. type: Plain text
  21702. #: guix-git/doc/guix.texi:14774
  21703. msgid "In the example above, for GRUB and for Xorg, we just refer to the @code{keyboard-layout} field defined above, but we could just as well refer to a different layout. The @code{set-xorg-configuration} procedure communicates the desired Xorg configuration to the graphical log-in manager, by default GDM."
  21704. msgstr ""
  21705. #. type: Plain text
  21706. #: guix-git/doc/guix.texi:14777
  21707. msgid "We've discussed how to specify the @emph{default} keyboard layout of your system when it starts, but you can also adjust it at run time:"
  21708. msgstr ""
  21709. #. type: itemize
  21710. #: guix-git/doc/guix.texi:14782
  21711. msgid "If you're using GNOME, its settings panel has a ``Region & Language'' entry where you can select one or more keyboard layouts."
  21712. msgstr ""
  21713. #. type: itemize
  21714. #: guix-git/doc/guix.texi:14787
  21715. msgid "Under Xorg, the @command{setxkbmap} command (from the same-named package) allows you to change the current layout. For example, this is how you would change the layout to US Dvorak:"
  21716. msgstr ""
  21717. #. type: example
  21718. #: guix-git/doc/guix.texi:14790
  21719. #, no-wrap
  21720. msgid "setxkbmap us dvorak\n"
  21721. msgstr ""
  21722. #. type: itemize
  21723. #: guix-git/doc/guix.texi:14797
  21724. msgid "The @code{loadkeys} command changes the keyboard layout in effect in the Linux console. However, note that @code{loadkeys} does @emph{not} use the XKB keyboard layout categorization described above. The command below loads the French bépo layout:"
  21725. msgstr ""
  21726. #. type: example
  21727. #: guix-git/doc/guix.texi:14800
  21728. #, no-wrap
  21729. msgid "loadkeys fr-bepo\n"
  21730. msgstr ""
  21731. #. type: cindex
  21732. #: guix-git/doc/guix.texi:14806
  21733. #, no-wrap
  21734. msgid "locale"
  21735. msgstr ""
  21736. #. type: Plain text
  21737. #: guix-git/doc/guix.texi:14813
  21738. msgid "A @dfn{locale} defines cultural conventions for a particular language and region of the world (@pxref{Locales,,, libc, The GNU C Library Reference Manual}). Each locale has a name that typically has the form @code{@var{language}_@var{territory}.@var{codeset}}---e.g., @code{fr_LU.utf8} designates the locale for the French language, with cultural conventions from Luxembourg, and using the UTF-8 encoding."
  21739. msgstr ""
  21740. #. type: cindex
  21741. #: guix-git/doc/guix.texi:14814
  21742. #, no-wrap
  21743. msgid "locale definition"
  21744. msgstr ""
  21745. #. type: Plain text
  21746. #: guix-git/doc/guix.texi:14818
  21747. msgid "Usually, you will want to specify the default locale for the machine using the @code{locale} field of the @code{operating-system} declaration (@pxref{operating-system Reference, @code{locale}})."
  21748. msgstr ""
  21749. #. type: Plain text
  21750. #: guix-git/doc/guix.texi:14827
  21751. msgid "The selected locale is automatically added to the @dfn{locale definitions} known to the system if needed, with its codeset inferred from its name---e.g., @code{bo_CN.utf8} will be assumed to use the @code{UTF-8} codeset. Additional locale definitions can be specified in the @code{locale-definitions} slot of @code{operating-system}---this is useful, for instance, if the codeset could not be inferred from the locale name. The default set of locale definitions includes some widely used locales, but not all the available locales, in order to save space."
  21752. msgstr ""
  21753. #. type: Plain text
  21754. #: guix-git/doc/guix.texi:14830
  21755. msgid "For instance, to add the North Frisian locale for Germany, the value of that field may be:"
  21756. msgstr ""
  21757. #. type: lisp
  21758. #: guix-git/doc/guix.texi:14835
  21759. #, no-wrap
  21760. msgid ""
  21761. "(cons (locale-definition\n"
  21762. " (name \"fy_DE.utf8\") (source \"fy_DE\"))\n"
  21763. " %default-locale-definitions)\n"
  21764. msgstr ""
  21765. #. type: Plain text
  21766. #: guix-git/doc/guix.texi:14839
  21767. msgid "Likewise, to save space, one might want @code{locale-definitions} to list only the locales that are actually used, as in:"
  21768. msgstr ""
  21769. #. type: lisp
  21770. #: guix-git/doc/guix.texi:14844
  21771. #, no-wrap
  21772. msgid ""
  21773. "(list (locale-definition\n"
  21774. " (name \"ja_JP.eucjp\") (source \"ja_JP\")\n"
  21775. " (charset \"EUC-JP\")))\n"
  21776. msgstr ""
  21777. #. type: Plain text
  21778. #: guix-git/doc/guix.texi:14853
  21779. msgid "The compiled locale definitions are available at @file{/run/current-system/locale/X.Y}, where @code{X.Y} is the libc version, which is the default location where the GNU@tie{}libc provided by Guix looks for locale data. This can be overridden using the @env{LOCPATH} environment variable (@pxref{locales-and-locpath, @env{LOCPATH} and locale packages})."
  21780. msgstr ""
  21781. #. type: Plain text
  21782. #: guix-git/doc/guix.texi:14856
  21783. msgid "The @code{locale-definition} form is provided by the @code{(gnu system locale)} module. Details are given below."
  21784. msgstr ""
  21785. #. type: deftp
  21786. #: guix-git/doc/guix.texi:14857
  21787. #, no-wrap
  21788. msgid "{Data Type} locale-definition"
  21789. msgstr ""
  21790. #. type: deftp
  21791. #: guix-git/doc/guix.texi:14859
  21792. msgid "This is the data type of a locale definition."
  21793. msgstr ""
  21794. #. type: table
  21795. #: guix-git/doc/guix.texi:14865
  21796. msgid "The name of the locale. @xref{Locale Names,,, libc, The GNU C Library Reference Manual}, for more information on locale names."
  21797. msgstr ""
  21798. #. type: table
  21799. #: guix-git/doc/guix.texi:14869
  21800. msgid "The name of the source for that locale. This is typically the @code{@var{language}_@var{territory}} part of the locale name."
  21801. msgstr ""
  21802. #. type: item
  21803. #: guix-git/doc/guix.texi:14870
  21804. #, no-wrap
  21805. msgid "@code{charset} (default: @code{\"UTF-8\"})"
  21806. msgstr ""
  21807. #. type: table
  21808. #: guix-git/doc/guix.texi:14874
  21809. msgid "The ``character set'' or ``code set'' for that locale, @uref{https://www.iana.org/assignments/character-sets, as defined by IANA}."
  21810. msgstr ""
  21811. #. type: defvr
  21812. #: guix-git/doc/guix.texi:14878
  21813. #, no-wrap
  21814. msgid "{Scheme Variable} %default-locale-definitions"
  21815. msgstr ""
  21816. #. type: defvr
  21817. #: guix-git/doc/guix.texi:14882
  21818. msgid "A list of commonly used UTF-8 locales, used as the default value of the @code{locale-definitions} field of @code{operating-system} declarations."
  21819. msgstr ""
  21820. #. type: cindex
  21821. #: guix-git/doc/guix.texi:14883
  21822. #, no-wrap
  21823. msgid "locale name"
  21824. msgstr ""
  21825. #. type: cindex
  21826. #: guix-git/doc/guix.texi:14884
  21827. #, no-wrap
  21828. msgid "normalized codeset in locale names"
  21829. msgstr ""
  21830. #. type: defvr
  21831. #: guix-git/doc/guix.texi:14890
  21832. msgid "These locale definitions use the @dfn{normalized codeset} for the part that follows the dot in the name (@pxref{Using gettextized software, normalized codeset,, libc, The GNU C Library Reference Manual}). So for instance it has @code{uk_UA.utf8} but @emph{not}, say, @code{uk_UA.UTF-8}."
  21833. msgstr ""
  21834. #. type: subsection
  21835. #: guix-git/doc/guix.texi:14892
  21836. #, no-wrap
  21837. msgid "Locale Data Compatibility Considerations"
  21838. msgstr ""
  21839. #. type: cindex
  21840. #: guix-git/doc/guix.texi:14894
  21841. #, no-wrap
  21842. msgid "incompatibility, of locale data"
  21843. msgstr ""
  21844. #. type: Plain text
  21845. #: guix-git/doc/guix.texi:14901
  21846. msgid "@code{operating-system} declarations provide a @code{locale-libcs} field to specify the GNU@tie{}libc packages that are used to compile locale declarations (@pxref{operating-system Reference}). ``Why would I care?'', you may ask. Well, it turns out that the binary format of locale data is occasionally incompatible from one libc version to another."
  21847. msgstr ""
  21848. #. type: Plain text
  21849. #: guix-git/doc/guix.texi:14913
  21850. msgid "For instance, a program linked against libc version 2.21 is unable to read locale data produced with libc 2.22; worse, that program @emph{aborts} instead of simply ignoring the incompatible locale data@footnote{Versions 2.23 and later of GNU@tie{}libc will simply skip the incompatible locale data, which is already an improvement.}. Similarly, a program linked against libc 2.22 can read most, but not all, of the locale data from libc 2.21 (specifically, @env{LC_COLLATE} data is incompatible); thus calls to @code{setlocale} may fail, but programs will not abort."
  21851. msgstr ""
  21852. #. type: Plain text
  21853. #: guix-git/doc/guix.texi:14918
  21854. msgid "The ``problem'' with Guix is that users have a lot of freedom: They can choose whether and when to upgrade software in their profiles, and might be using a libc version different from the one the system administrator used to build the system-wide locale data."
  21855. msgstr ""
  21856. #. type: Plain text
  21857. #: guix-git/doc/guix.texi:14922
  21858. msgid "Fortunately, unprivileged users can also install their own locale data and define @env{GUIX_LOCPATH} accordingly (@pxref{locales-and-locpath, @env{GUIX_LOCPATH} and locale packages})."
  21859. msgstr ""
  21860. #. type: Plain text
  21861. #: guix-git/doc/guix.texi:14929
  21862. msgid "Still, it is best if the system-wide locale data at @file{/run/current-system/locale} is built for all the libc versions actually in use on the system, so that all the programs can access it---this is especially crucial on a multi-user system. To do that, the administrator can specify several libc packages in the @code{locale-libcs} field of @code{operating-system}:"
  21863. msgstr ""
  21864. #. type: lisp
  21865. #: guix-git/doc/guix.texi:14932
  21866. #, no-wrap
  21867. msgid ""
  21868. "(use-package-modules base)\n"
  21869. "\n"
  21870. msgstr ""
  21871. #. type: lisp
  21872. #: guix-git/doc/guix.texi:14936
  21873. #, no-wrap
  21874. msgid ""
  21875. "(operating-system\n"
  21876. " ;; @dots{}\n"
  21877. " (locale-libcs (list glibc-2.21 (canonical-package glibc))))\n"
  21878. msgstr ""
  21879. #. type: Plain text
  21880. #: guix-git/doc/guix.texi:14941
  21881. msgid "This example would lead to a system containing locale definitions for both libc 2.21 and the current version of libc in @file{/run/current-system/locale}."
  21882. msgstr ""
  21883. #. type: cindex
  21884. #: guix-git/doc/guix.texi:14946
  21885. #, no-wrap
  21886. msgid "system services"
  21887. msgstr ""
  21888. #. type: Plain text
  21889. #: guix-git/doc/guix.texi:14952
  21890. msgid "An important part of preparing an @code{operating-system} declaration is listing @dfn{system services} and their configuration (@pxref{Using the Configuration System}). System services are typically daemons launched when the system boots, or other actions needed at that time---e.g., configuring network access."
  21891. msgstr ""
  21892. #. type: Plain text
  21893. #: guix-git/doc/guix.texi:14959
  21894. msgid "Guix has a broad definition of ``service'' (@pxref{Service Composition}), but many services are managed by the GNU@tie{}Shepherd (@pxref{Shepherd Services}). On a running system, the @command{herd} command allows you to list the available services, show their status, start and stop them, or do other specific operations (@pxref{Jump Start,,, shepherd, The GNU Shepherd Manual}). For example:"
  21895. msgstr ""
  21896. #. type: example
  21897. #: guix-git/doc/guix.texi:14962
  21898. #, no-wrap
  21899. msgid "# herd status\n"
  21900. msgstr ""
  21901. #. type: Plain text
  21902. #: guix-git/doc/guix.texi:14967
  21903. msgid "The above command, run as @code{root}, lists the currently defined services. The @command{herd doc} command shows a synopsis of the given service and its associated actions:"
  21904. msgstr ""
  21905. #. type: example
  21906. #: guix-git/doc/guix.texi:14971
  21907. #, no-wrap
  21908. msgid ""
  21909. "# herd doc nscd\n"
  21910. "Run libc's name service cache daemon (nscd).\n"
  21911. "\n"
  21912. msgstr ""
  21913. #. type: example
  21914. #: guix-git/doc/guix.texi:14974
  21915. #, no-wrap
  21916. msgid ""
  21917. "# herd doc nscd action invalidate\n"
  21918. "invalidate: Invalidate the given cache--e.g., 'hosts' for host name lookups.\n"
  21919. msgstr ""
  21920. #. type: Plain text
  21921. #: guix-git/doc/guix.texi:14979
  21922. msgid "The @command{start}, @command{stop}, and @command{restart} sub-commands have the effect you would expect. For instance, the commands below stop the nscd service and restart the Xorg display server:"
  21923. msgstr ""
  21924. #. type: example
  21925. #: guix-git/doc/guix.texi:14986
  21926. #, no-wrap
  21927. msgid ""
  21928. "# herd stop nscd\n"
  21929. "Service nscd has been stopped.\n"
  21930. "# herd restart xorg-server\n"
  21931. "Service xorg-server has been stopped.\n"
  21932. "Service xorg-server has been started.\n"
  21933. msgstr ""
  21934. #. type: Plain text
  21935. #: guix-git/doc/guix.texi:14991
  21936. msgid "The following sections document the available services, starting with the core services, that may be used in an @code{operating-system} declaration."
  21937. msgstr ""
  21938. #. type: subsection
  21939. #: guix-git/doc/guix.texi:15026 guix-git/doc/guix.texi:23041
  21940. #: guix-git/doc/guix.texi:23042
  21941. #, fuzzy, no-wrap
  21942. msgid "File-Sharing Services"
  21943. msgstr "消息服务"
  21944. #. type: menuentry
  21945. #: guix-git/doc/guix.texi:15026
  21946. #, fuzzy
  21947. msgid "File-sharing services."
  21948. msgstr "消息服务。"
  21949. #. type: Plain text
  21950. #: guix-git/doc/guix.texi:15034
  21951. msgid "The @code{(gnu services base)} module provides definitions for the basic services that one expects from the system. The services exported by this module are listed below."
  21952. msgstr ""
  21953. #. type: defvr
  21954. #: guix-git/doc/guix.texi:15035
  21955. #, no-wrap
  21956. msgid "{Scheme Variable} %base-services"
  21957. msgstr ""
  21958. #. type: defvr
  21959. #: guix-git/doc/guix.texi:15041
  21960. msgid "This variable contains a list of basic services (@pxref{Service Types and Services}, for more information on service objects) one would expect from the system: a login service (mingetty) on each tty, syslogd, the libc name service cache daemon (nscd), the udev device manager, and more."
  21961. msgstr ""
  21962. #. type: defvr
  21963. #: guix-git/doc/guix.texi:15046
  21964. msgid "This is the default value of the @code{services} field of @code{operating-system} declarations. Usually, when customizing a system, you will want to append services to @code{%base-services}, like this:"
  21965. msgstr ""
  21966. #. type: lisp
  21967. #: guix-git/doc/guix.texi:15051
  21968. #, no-wrap
  21969. msgid ""
  21970. "(append (list (service avahi-service-type)\n"
  21971. " (service openssh-service-type))\n"
  21972. " %base-services)\n"
  21973. msgstr ""
  21974. #. type: defvr
  21975. #: guix-git/doc/guix.texi:15054
  21976. #, no-wrap
  21977. msgid "{Scheme Variable} special-files-service-type"
  21978. msgstr ""
  21979. #. type: defvr
  21980. #: guix-git/doc/guix.texi:15057
  21981. msgid "This is the service that sets up ``special files'' such as @file{/bin/sh}; an instance of it is part of @code{%base-services}."
  21982. msgstr ""
  21983. #. type: defvr
  21984. #: guix-git/doc/guix.texi:15061
  21985. msgid "The value associated with @code{special-files-service-type} services must be a list of tuples where the first element is the ``special file'' and the second element is its target. By default it is:"
  21986. msgstr ""
  21987. #. type: file{#1}
  21988. #: guix-git/doc/guix.texi:15062
  21989. #, no-wrap
  21990. msgid "/bin/sh"
  21991. msgstr ""
  21992. #. type: cindex
  21993. #: guix-git/doc/guix.texi:15063
  21994. #, no-wrap
  21995. msgid "@file{sh}, in @file{/bin}"
  21996. msgstr ""
  21997. #. type: lisp
  21998. #: guix-git/doc/guix.texi:15066
  21999. #, no-wrap
  22000. msgid "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\")))\n"
  22001. msgstr ""
  22002. #. type: file{#1}
  22003. #: guix-git/doc/guix.texi:15068
  22004. #, no-wrap
  22005. msgid "/usr/bin/env"
  22006. msgstr ""
  22007. #. type: cindex
  22008. #: guix-git/doc/guix.texi:15069
  22009. #, no-wrap
  22010. msgid "@file{env}, in @file{/usr/bin}"
  22011. msgstr ""
  22012. #. type: defvr
  22013. #: guix-git/doc/guix.texi:15072
  22014. msgid "If you want to add, say, @code{/usr/bin/env} to your system, you can change it to:"
  22015. msgstr ""
  22016. #. type: lisp
  22017. #: guix-git/doc/guix.texi:15076
  22018. #, no-wrap
  22019. msgid ""
  22020. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  22021. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\")))\n"
  22022. msgstr ""
  22023. #. type: defvr
  22024. #: guix-git/doc/guix.texi:15083
  22025. msgid "Since this is part of @code{%base-services}, you can use @code{modify-services} to customize the set of special files (@pxref{Service Reference, @code{modify-services}}). But the simple way to add a special file is @i{via} the @code{extra-special-file} procedure (see below)."
  22026. msgstr ""
  22027. #. type: deffn
  22028. #: guix-git/doc/guix.texi:15085
  22029. #, no-wrap
  22030. msgid "{Scheme Procedure} extra-special-file @var{file} @var{target}"
  22031. msgstr ""
  22032. #. type: deffn
  22033. #: guix-git/doc/guix.texi:15087
  22034. msgid "Use @var{target} as the ``special file'' @var{file}."
  22035. msgstr ""
  22036. #. type: deffn
  22037. #: guix-git/doc/guix.texi:15091
  22038. msgid "For example, adding the following lines to the @code{services} field of your operating system declaration leads to a @file{/usr/bin/env} symlink:"
  22039. msgstr ""
  22040. #. type: lisp
  22041. #: guix-git/doc/guix.texi:15095
  22042. #, no-wrap
  22043. msgid ""
  22044. "(extra-special-file \"/usr/bin/env\"\n"
  22045. " (file-append coreutils \"/bin/env\"))\n"
  22046. msgstr ""
  22047. #. type: deffn
  22048. #: guix-git/doc/guix.texi:15098
  22049. #, no-wrap
  22050. msgid "{Scheme Procedure} host-name-service @var{name}"
  22051. msgstr ""
  22052. #. type: deffn
  22053. #: guix-git/doc/guix.texi:15100
  22054. msgid "Return a service that sets the host name to @var{name}."
  22055. msgstr ""
  22056. #. type: defvr
  22057. #: guix-git/doc/guix.texi:15102
  22058. #, no-wrap
  22059. msgid "{Scheme Variable} console-font-service-type"
  22060. msgstr ""
  22061. #. type: defvr
  22062. #: guix-git/doc/guix.texi:15107
  22063. msgid "Install the given fonts on the specified ttys (fonts are per virtual console on the kernel Linux). The value of this service is a list of tty/font pairs. The font can be the name of a font provided by the @code{kbd} package or any valid argument to @command{setfont}, as in this example:"
  22064. msgstr ""
  22065. #. type: lisp
  22066. #: guix-git/doc/guix.texi:15116
  22067. #, no-wrap
  22068. msgid ""
  22069. "`((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  22070. " (\"tty2\" . ,(file-append\n"
  22071. " font-tamzen\n"
  22072. " \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  22073. " (\"tty3\" . ,(file-append\n"
  22074. " font-terminus\n"
  22075. " \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  22076. msgstr ""
  22077. #. type: deffn
  22078. #: guix-git/doc/guix.texi:15119
  22079. #, no-wrap
  22080. msgid "{Scheme Procedure} login-service @var{config}"
  22081. msgstr ""
  22082. #. type: deffn
  22083. #: guix-git/doc/guix.texi:15123
  22084. msgid "Return a service to run login according to @var{config}, a @code{<login-configuration>} object, which specifies the message of the day, among other things."
  22085. msgstr ""
  22086. #. type: deftp
  22087. #: guix-git/doc/guix.texi:15125
  22088. #, no-wrap
  22089. msgid "{Data Type} login-configuration"
  22090. msgstr ""
  22091. #. type: deftp
  22092. #: guix-git/doc/guix.texi:15127
  22093. msgid "This is the data type representing the configuration of login."
  22094. msgstr ""
  22095. #. type: code{#1}
  22096. #: guix-git/doc/guix.texi:15130
  22097. #, no-wrap
  22098. msgid "motd"
  22099. msgstr ""
  22100. #. type: cindex
  22101. #: guix-git/doc/guix.texi:15131
  22102. #, no-wrap
  22103. msgid "message of the day"
  22104. msgstr ""
  22105. #. type: table
  22106. #: guix-git/doc/guix.texi:15133
  22107. msgid "A file-like object containing the ``message of the day''."
  22108. msgstr ""
  22109. #. type: item
  22110. #: guix-git/doc/guix.texi:15134 guix-git/doc/guix.texi:18130
  22111. #, no-wrap
  22112. msgid "@code{allow-empty-passwords?} (default: @code{#t})"
  22113. msgstr ""
  22114. #. type: table
  22115. #: guix-git/doc/guix.texi:15137
  22116. msgid "Allow empty passwords by default so that first-time users can log in when the 'root' account has just been created."
  22117. msgstr ""
  22118. #. type: deffn
  22119. #: guix-git/doc/guix.texi:15141
  22120. #, no-wrap
  22121. msgid "{Scheme Procedure} mingetty-service @var{config}"
  22122. msgstr ""
  22123. #. type: deffn
  22124. #: guix-git/doc/guix.texi:15145
  22125. msgid "Return a service to run mingetty according to @var{config}, a @code{<mingetty-configuration>} object, which specifies the tty to run, among other things."
  22126. msgstr ""
  22127. #. type: deftp
  22128. #: guix-git/doc/guix.texi:15147
  22129. #, no-wrap
  22130. msgid "{Data Type} mingetty-configuration"
  22131. msgstr ""
  22132. #. type: deftp
  22133. #: guix-git/doc/guix.texi:15150
  22134. msgid "This is the data type representing the configuration of Mingetty, which provides the default implementation of virtual console log-in."
  22135. msgstr ""
  22136. #. type: code{#1}
  22137. #: guix-git/doc/guix.texi:15153 guix-git/doc/guix.texi:15192
  22138. #: guix-git/doc/guix.texi:32192
  22139. #, no-wrap
  22140. msgid "tty"
  22141. msgstr ""
  22142. #. type: table
  22143. #: guix-git/doc/guix.texi:15155
  22144. msgid "The name of the console this Mingetty runs on---e.g., @code{\"tty1\"}."
  22145. msgstr ""
  22146. #. type: item
  22147. #: guix-git/doc/guix.texi:15156 guix-git/doc/guix.texi:15221
  22148. #: guix-git/doc/guix.texi:15380
  22149. #, no-wrap
  22150. msgid "@code{auto-login} (default: @code{#f})"
  22151. msgstr ""
  22152. #. type: table
  22153. #: guix-git/doc/guix.texi:15160
  22154. msgid "When true, this field must be a string denoting the user name under which the system automatically logs in. When it is @code{#f}, a user name and password must be entered to log in."
  22155. msgstr ""
  22156. #. type: item
  22157. #: guix-git/doc/guix.texi:15161
  22158. #, no-wrap
  22159. msgid "@code{login-program} (default: @code{#f})"
  22160. msgstr ""
  22161. #. type: table
  22162. #: guix-git/doc/guix.texi:15165
  22163. msgid "This must be either @code{#f}, in which case the default log-in program is used (@command{login} from the Shadow tool suite), or a gexp denoting the name of the log-in program."
  22164. msgstr ""
  22165. #. type: item
  22166. #: guix-git/doc/guix.texi:15166
  22167. #, no-wrap
  22168. msgid "@code{login-pause?} (default: @code{#f})"
  22169. msgstr ""
  22170. #. type: table
  22171. #: guix-git/doc/guix.texi:15169
  22172. msgid "When set to @code{#t} in conjunction with @var{auto-login}, the user will have to press a key before the log-in shell is launched."
  22173. msgstr ""
  22174. #. type: item
  22175. #: guix-git/doc/guix.texi:15170
  22176. #, fuzzy, no-wrap
  22177. msgid "@code{clear-on-logout?} (default: @code{#t})"
  22178. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  22179. #. type: table
  22180. #: guix-git/doc/guix.texi:15172
  22181. msgid "When set to @code{#t}, the screen will be cleared after logout."
  22182. msgstr ""
  22183. #. type: item
  22184. #: guix-git/doc/guix.texi:15173
  22185. #, no-wrap
  22186. msgid "@code{mingetty} (default: @var{mingetty})"
  22187. msgstr ""
  22188. #. type: table
  22189. #: guix-git/doc/guix.texi:15175
  22190. msgid "The Mingetty package to use."
  22191. msgstr ""
  22192. #. type: deffn
  22193. #: guix-git/doc/guix.texi:15179
  22194. #, no-wrap
  22195. msgid "{Scheme Procedure} agetty-service @var{config}"
  22196. msgstr ""
  22197. #. type: deffn
  22198. #: guix-git/doc/guix.texi:15183
  22199. msgid "Return a service to run agetty according to @var{config}, an @code{<agetty-configuration>} object, which specifies the tty to run, among other things."
  22200. msgstr ""
  22201. #. type: deftp
  22202. #: guix-git/doc/guix.texi:15185
  22203. #, no-wrap
  22204. msgid "{Data Type} agetty-configuration"
  22205. msgstr ""
  22206. #. type: deftp
  22207. #: guix-git/doc/guix.texi:15189
  22208. msgid "This is the data type representing the configuration of agetty, which implements virtual and serial console log-in. See the @code{agetty(8)} man page for more information."
  22209. msgstr ""
  22210. #. type: table
  22211. #: guix-git/doc/guix.texi:15196
  22212. msgid "The name of the console this agetty runs on, as a string---e.g., @code{\"ttyS0\"}. This argument is optional, it will default to a reasonable default serial port used by the kernel Linux."
  22213. msgstr ""
  22214. #. type: table
  22215. #: guix-git/doc/guix.texi:15200
  22216. msgid "For this, if there is a value for an option @code{agetty.tty} in the kernel command line, agetty will extract the device name of the serial port from it and use that."
  22217. msgstr ""
  22218. #. type: table
  22219. #: guix-git/doc/guix.texi:15204
  22220. msgid "If not and if there is a value for an option @code{console} with a tty in the Linux command line, agetty will extract the device name of the serial port from it and use that."
  22221. msgstr ""
  22222. #. type: table
  22223. #: guix-git/doc/guix.texi:15208
  22224. msgid "In both cases, agetty will leave the other serial device settings (baud rate etc.)@: alone---in the hope that Linux pinned them to the correct values."
  22225. msgstr ""
  22226. #. type: item
  22227. #: guix-git/doc/guix.texi:15209 guix-git/doc/guix.texi:32353
  22228. #, no-wrap
  22229. msgid "@code{baud-rate} (default: @code{#f})"
  22230. msgstr ""
  22231. #. type: table
  22232. #: guix-git/doc/guix.texi:15212
  22233. msgid "A string containing a comma-separated list of one or more baud rates, in descending order."
  22234. msgstr ""
  22235. #. type: item
  22236. #: guix-git/doc/guix.texi:15213
  22237. #, no-wrap
  22238. msgid "@code{term} (default: @code{#f})"
  22239. msgstr ""
  22240. #. type: table
  22241. #: guix-git/doc/guix.texi:15216
  22242. msgid "A string containing the value used for the @env{TERM} environment variable."
  22243. msgstr ""
  22244. #. type: item
  22245. #: guix-git/doc/guix.texi:15217
  22246. #, no-wrap
  22247. msgid "@code{eight-bits?} (default: @code{#f})"
  22248. msgstr ""
  22249. #. type: table
  22250. #: guix-git/doc/guix.texi:15220
  22251. msgid "When @code{#t}, the tty is assumed to be 8-bit clean, and parity detection is disabled."
  22252. msgstr ""
  22253. #. type: table
  22254. #: guix-git/doc/guix.texi:15224 guix-git/doc/guix.texi:15383
  22255. msgid "When passed a login name, as a string, the specified user will be logged in automatically without prompting for their login name or password."
  22256. msgstr ""
  22257. #. type: item
  22258. #: guix-git/doc/guix.texi:15225
  22259. #, no-wrap
  22260. msgid "@code{no-reset?} (default: @code{#f})"
  22261. msgstr ""
  22262. #. type: table
  22263. #: guix-git/doc/guix.texi:15227
  22264. msgid "When @code{#t}, don't reset terminal cflags (control modes)."
  22265. msgstr ""
  22266. #. type: item
  22267. #: guix-git/doc/guix.texi:15228
  22268. #, no-wrap
  22269. msgid "@code{host} (default: @code{#f})"
  22270. msgstr ""
  22271. #. type: table
  22272. #: guix-git/doc/guix.texi:15231
  22273. msgid "This accepts a string containing the ``login_host'', which will be written into the @file{/var/run/utmpx} file."
  22274. msgstr ""
  22275. #. type: item
  22276. #: guix-git/doc/guix.texi:15232
  22277. #, no-wrap
  22278. msgid "@code{remote?} (default: @code{#f})"
  22279. msgstr ""
  22280. #. type: table
  22281. #: guix-git/doc/guix.texi:15236
  22282. msgid "When set to @code{#t} in conjunction with @var{host}, this will add an @code{-r} fakehost option to the command line of the login program specified in @var{login-program}."
  22283. msgstr ""
  22284. #. type: item
  22285. #: guix-git/doc/guix.texi:15237
  22286. #, no-wrap
  22287. msgid "@code{flow-control?} (default: @code{#f})"
  22288. msgstr ""
  22289. #. type: table
  22290. #: guix-git/doc/guix.texi:15239
  22291. msgid "When set to @code{#t}, enable hardware (RTS/CTS) flow control."
  22292. msgstr ""
  22293. #. type: item
  22294. #: guix-git/doc/guix.texi:15240
  22295. #, no-wrap
  22296. msgid "@code{no-issue?} (default: @code{#f})"
  22297. msgstr ""
  22298. #. type: table
  22299. #: guix-git/doc/guix.texi:15243
  22300. msgid "When set to @code{#t}, the contents of the @file{/etc/issue} file will not be displayed before presenting the login prompt."
  22301. msgstr ""
  22302. #. type: item
  22303. #: guix-git/doc/guix.texi:15244
  22304. #, no-wrap
  22305. msgid "@code{init-string} (default: @code{#f})"
  22306. msgstr ""
  22307. #. type: table
  22308. #: guix-git/doc/guix.texi:15247
  22309. msgid "This accepts a string that will be sent to the tty or modem before sending anything else. It can be used to initialize a modem."
  22310. msgstr ""
  22311. #. type: item
  22312. #: guix-git/doc/guix.texi:15248
  22313. #, no-wrap
  22314. msgid "@code{no-clear?} (default: @code{#f})"
  22315. msgstr ""
  22316. #. type: table
  22317. #: guix-git/doc/guix.texi:15251
  22318. msgid "When set to @code{#t}, agetty will not clear the screen before showing the login prompt."
  22319. msgstr ""
  22320. #. type: item
  22321. #: guix-git/doc/guix.texi:15252
  22322. #, no-wrap
  22323. msgid "@code{login-program} (default: (file-append shadow \"/bin/login\"))"
  22324. msgstr ""
  22325. #. type: table
  22326. #: guix-git/doc/guix.texi:15256
  22327. msgid "This must be either a gexp denoting the name of a log-in program, or unset, in which case the default value is the @command{login} from the Shadow tool suite."
  22328. msgstr ""
  22329. #. type: item
  22330. #: guix-git/doc/guix.texi:15257
  22331. #, no-wrap
  22332. msgid "@code{local-line} (default: @code{#f})"
  22333. msgstr ""
  22334. #. type: table
  22335. #: guix-git/doc/guix.texi:15261
  22336. msgid "Control the CLOCAL line flag. This accepts one of three symbols as arguments, @code{'auto}, @code{'always}, or @code{'never}. If @code{#f}, the default value chosen by agetty is @code{'auto}."
  22337. msgstr ""
  22338. #. type: item
  22339. #: guix-git/doc/guix.texi:15262
  22340. #, no-wrap
  22341. msgid "@code{extract-baud?} (default: @code{#f})"
  22342. msgstr ""
  22343. #. type: table
  22344. #: guix-git/doc/guix.texi:15265
  22345. msgid "When set to @code{#t}, instruct agetty to try to extract the baud rate from the status messages produced by certain types of modems."
  22346. msgstr ""
  22347. #. type: item
  22348. #: guix-git/doc/guix.texi:15266
  22349. #, no-wrap
  22350. msgid "@code{skip-login?} (default: @code{#f})"
  22351. msgstr ""
  22352. #. type: table
  22353. #: guix-git/doc/guix.texi:15270
  22354. msgid "When set to @code{#t}, do not prompt the user for a login name. This can be used with @var{login-program} field to use non-standard login systems."
  22355. msgstr ""
  22356. #. type: item
  22357. #: guix-git/doc/guix.texi:15271
  22358. #, no-wrap
  22359. msgid "@code{no-newline?} (default: @code{#f})"
  22360. msgstr ""
  22361. #. type: table
  22362. #: guix-git/doc/guix.texi:15274
  22363. msgid "When set to @code{#t}, do not print a newline before printing the @file{/etc/issue} file."
  22364. msgstr ""
  22365. #. type: item
  22366. #: guix-git/doc/guix.texi:15276
  22367. #, no-wrap
  22368. msgid "@code{login-options} (default: @code{#f})"
  22369. msgstr ""
  22370. #. type: table
  22371. #: guix-git/doc/guix.texi:15281
  22372. msgid "This option accepts a string containing options that are passed to the login program. When used with the @var{login-program}, be aware that a malicious user could try to enter a login name containing embedded options that could be parsed by the login program."
  22373. msgstr ""
  22374. #. type: item
  22375. #: guix-git/doc/guix.texi:15282
  22376. #, no-wrap
  22377. msgid "@code{login-pause} (default: @code{#f})"
  22378. msgstr ""
  22379. #. type: table
  22380. #: guix-git/doc/guix.texi:15286
  22381. msgid "When set to @code{#t}, wait for any key before showing the login prompt. This can be used in conjunction with @var{auto-login} to save memory by lazily spawning shells."
  22382. msgstr ""
  22383. #. type: item
  22384. #: guix-git/doc/guix.texi:15287
  22385. #, no-wrap
  22386. msgid "@code{chroot} (default: @code{#f})"
  22387. msgstr ""
  22388. #. type: table
  22389. #: guix-git/doc/guix.texi:15290
  22390. msgid "Change root to the specified directory. This option accepts a directory path as a string."
  22391. msgstr ""
  22392. #. type: item
  22393. #: guix-git/doc/guix.texi:15291
  22394. #, no-wrap
  22395. msgid "@code{hangup?} (default: @code{#f})"
  22396. msgstr ""
  22397. #. type: table
  22398. #: guix-git/doc/guix.texi:15294
  22399. msgid "Use the Linux system call @code{vhangup} to do a virtual hangup of the specified terminal."
  22400. msgstr ""
  22401. #. type: item
  22402. #: guix-git/doc/guix.texi:15295
  22403. #, no-wrap
  22404. msgid "@code{keep-baud?} (default: @code{#f})"
  22405. msgstr ""
  22406. #. type: table
  22407. #: guix-git/doc/guix.texi:15299
  22408. msgid "When set to @code{#t}, try to keep the existing baud rate. The baud rates from @var{baud-rate} are used when agetty receives a @key{BREAK} character."
  22409. msgstr ""
  22410. #. type: item
  22411. #: guix-git/doc/guix.texi:15300
  22412. #, no-wrap
  22413. msgid "@code{timeout} (default: @code{#f})"
  22414. msgstr ""
  22415. #. type: table
  22416. #: guix-git/doc/guix.texi:15303
  22417. msgid "When set to an integer value, terminate if no user name could be read within @var{timeout} seconds."
  22418. msgstr ""
  22419. #. type: item
  22420. #: guix-git/doc/guix.texi:15304
  22421. #, no-wrap
  22422. msgid "@code{detect-case?} (default: @code{#f})"
  22423. msgstr ""
  22424. #. type: table
  22425. #: guix-git/doc/guix.texi:15310
  22426. msgid "When set to @code{#t}, turn on support for detecting an uppercase-only terminal. This setting will detect a login name containing only uppercase letters as indicating an uppercase-only terminal and turn on some upper-to-lower case conversions. Note that this will not support Unicode characters."
  22427. msgstr ""
  22428. #. type: item
  22429. #: guix-git/doc/guix.texi:15311
  22430. #, no-wrap
  22431. msgid "@code{wait-cr?} (default: @code{#f})"
  22432. msgstr ""
  22433. #. type: table
  22434. #: guix-git/doc/guix.texi:15316
  22435. msgid "When set to @code{#t}, wait for the user or modem to send a carriage-return or linefeed character before displaying @file{/etc/issue} or login prompt. This is typically used with the @var{init-string} option."
  22436. msgstr ""
  22437. #. type: item
  22438. #: guix-git/doc/guix.texi:15317
  22439. #, no-wrap
  22440. msgid "@code{no-hints?} (default: @code{#f})"
  22441. msgstr ""
  22442. #. type: table
  22443. #: guix-git/doc/guix.texi:15320
  22444. msgid "When set to @code{#t}, do not print hints about Num, Caps, and Scroll locks."
  22445. msgstr ""
  22446. #. type: item
  22447. #: guix-git/doc/guix.texi:15321
  22448. #, no-wrap
  22449. msgid "@code{no-hostname?} (default: @code{#f})"
  22450. msgstr ""
  22451. #. type: table
  22452. #: guix-git/doc/guix.texi:15324
  22453. msgid "By default, the hostname is printed. When this option is set to @code{#t}, no hostname will be shown at all."
  22454. msgstr ""
  22455. #. type: item
  22456. #: guix-git/doc/guix.texi:15325
  22457. #, no-wrap
  22458. msgid "@code{long-hostname?} (default: @code{#f})"
  22459. msgstr ""
  22460. #. type: table
  22461. #: guix-git/doc/guix.texi:15329
  22462. msgid "By default, the hostname is only printed until the first dot. When this option is set to @code{#t}, the fully qualified hostname by @code{gethostname} or @code{getaddrinfo} is shown."
  22463. msgstr ""
  22464. #. type: item
  22465. #: guix-git/doc/guix.texi:15330
  22466. #, no-wrap
  22467. msgid "@code{erase-characters} (default: @code{#f})"
  22468. msgstr ""
  22469. #. type: table
  22470. #: guix-git/doc/guix.texi:15333
  22471. msgid "This option accepts a string of additional characters that should be interpreted as backspace when the user types their login name."
  22472. msgstr ""
  22473. #. type: item
  22474. #: guix-git/doc/guix.texi:15334
  22475. #, no-wrap
  22476. msgid "@code{kill-characters} (default: @code{#f})"
  22477. msgstr ""
  22478. #. type: table
  22479. #: guix-git/doc/guix.texi:15338
  22480. msgid "This option accepts a string that should be interpreted to mean ``ignore all previous characters'' (also called a ``kill'' character) when the user types their login name."
  22481. msgstr ""
  22482. #. type: item
  22483. #: guix-git/doc/guix.texi:15339
  22484. #, no-wrap
  22485. msgid "@code{chdir} (default: @code{#f})"
  22486. msgstr ""
  22487. #. type: table
  22488. #: guix-git/doc/guix.texi:15342
  22489. msgid "This option accepts, as a string, a directory path that will be changed to before login."
  22490. msgstr ""
  22491. #. type: item
  22492. #: guix-git/doc/guix.texi:15343
  22493. #, no-wrap
  22494. msgid "@code{delay} (default: @code{#f})"
  22495. msgstr ""
  22496. #. type: table
  22497. #: guix-git/doc/guix.texi:15346
  22498. msgid "This options accepts, as an integer, the number of seconds to sleep before opening the tty and displaying the login prompt."
  22499. msgstr ""
  22500. #. type: item
  22501. #: guix-git/doc/guix.texi:15347
  22502. #, no-wrap
  22503. msgid "@code{nice} (default: @code{#f})"
  22504. msgstr ""
  22505. #. type: table
  22506. #: guix-git/doc/guix.texi:15350
  22507. msgid "This option accepts, as an integer, the nice value with which to run the @command{login} program."
  22508. msgstr ""
  22509. #. type: item
  22510. #: guix-git/doc/guix.texi:15351 guix-git/doc/guix.texi:15639
  22511. #: guix-git/doc/guix.texi:16510 guix-git/doc/guix.texi:24024
  22512. #: guix-git/doc/guix.texi:25500 guix-git/doc/guix.texi:27907
  22513. #: guix-git/doc/guix.texi:28702 guix-git/doc/guix.texi:30402
  22514. #: guix-git/doc/guix.texi:32683
  22515. #, no-wrap
  22516. msgid "@code{extra-options} (default: @code{'()})"
  22517. msgstr ""
  22518. #. type: table
  22519. #: guix-git/doc/guix.texi:15354
  22520. msgid "This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings."
  22521. msgstr ""
  22522. #. type: deffn
  22523. #: guix-git/doc/guix.texi:15358
  22524. #, no-wrap
  22525. msgid "{Scheme Procedure} kmscon-service-type @var{config}"
  22526. msgstr ""
  22527. #. type: deffn
  22528. #: guix-git/doc/guix.texi:15362
  22529. msgid "Return a service to run @uref{https://www.freedesktop.org/wiki/Software/kmscon,kmscon} according to @var{config}, a @code{<kmscon-configuration>} object, which specifies the tty to run, among other things."
  22530. msgstr ""
  22531. #. type: deftp
  22532. #: guix-git/doc/guix.texi:15364
  22533. #, no-wrap
  22534. msgid "{Data Type} kmscon-configuration"
  22535. msgstr ""
  22536. #. type: deftp
  22537. #: guix-git/doc/guix.texi:15367
  22538. msgid "This is the data type representing the configuration of Kmscon, which implements virtual console log-in."
  22539. msgstr ""
  22540. #. type: code{#1}
  22541. #: guix-git/doc/guix.texi:15370
  22542. #, no-wrap
  22543. msgid "virtual-terminal"
  22544. msgstr ""
  22545. #. type: table
  22546. #: guix-git/doc/guix.texi:15372
  22547. msgid "The name of the console this Kmscon runs on---e.g., @code{\"tty1\"}."
  22548. msgstr ""
  22549. #. type: item
  22550. #: guix-git/doc/guix.texi:15373
  22551. #, no-wrap
  22552. msgid "@code{login-program} (default: @code{#~(string-append #$shadow \"/bin/login\")})"
  22553. msgstr ""
  22554. #. type: table
  22555. #: guix-git/doc/guix.texi:15376
  22556. msgid "A gexp denoting the name of the log-in program. The default log-in program is @command{login} from the Shadow tool suite."
  22557. msgstr ""
  22558. #. type: item
  22559. #: guix-git/doc/guix.texi:15377
  22560. #, no-wrap
  22561. msgid "@code{login-arguments} (default: @code{'(\"-p\")})"
  22562. msgstr ""
  22563. #. type: table
  22564. #: guix-git/doc/guix.texi:15379
  22565. msgid "A list of arguments to pass to @command{login}."
  22566. msgstr ""
  22567. #. type: item
  22568. #: guix-git/doc/guix.texi:15384
  22569. #, no-wrap
  22570. msgid "@code{hardware-acceleration?} (default: #f)"
  22571. msgstr ""
  22572. #. type: table
  22573. #: guix-git/doc/guix.texi:15386
  22574. msgid "Whether to use hardware acceleration."
  22575. msgstr ""
  22576. #. type: item
  22577. #: guix-git/doc/guix.texi:15387
  22578. #, fuzzy, no-wrap
  22579. msgid "@code{font-engine} (default: @code{\"pango\"})"
  22580. msgstr "@code{journal-content}(默认值:@code{#f})"
  22581. #. type: table
  22582. #: guix-git/doc/guix.texi:15389
  22583. msgid "Font engine used in Kmscon."
  22584. msgstr ""
  22585. #. type: item
  22586. #: guix-git/doc/guix.texi:15390
  22587. #, fuzzy, no-wrap
  22588. msgid "@code{font-size} (default: @code{12})"
  22589. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  22590. #. type: table
  22591. #: guix-git/doc/guix.texi:15392
  22592. msgid "Font size used in Kmscon."
  22593. msgstr ""
  22594. #. type: table
  22595. #: guix-git/doc/guix.texi:15396
  22596. msgid "If this is @code{#f}, Kmscon uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  22597. msgstr ""
  22598. #. type: table
  22599. #: guix-git/doc/guix.texi:15400
  22600. msgid "Otherwise this must be a @code{keyboard-layout} object specifying the keyboard layout. @xref{Keyboard Layout}, for more information on how to specify the keyboard layout."
  22601. msgstr ""
  22602. #. type: item
  22603. #: guix-git/doc/guix.texi:15401
  22604. #, no-wrap
  22605. msgid "@code{kmscon} (default: @var{kmscon})"
  22606. msgstr ""
  22607. #. type: table
  22608. #: guix-git/doc/guix.texi:15403
  22609. msgid "The Kmscon package to use."
  22610. msgstr ""
  22611. #. type: cindex
  22612. #: guix-git/doc/guix.texi:15407
  22613. #, no-wrap
  22614. msgid "name service cache daemon"
  22615. msgstr ""
  22616. #. type: cindex
  22617. #: guix-git/doc/guix.texi:15408
  22618. #, no-wrap
  22619. msgid "nscd"
  22620. msgstr ""
  22621. #. type: deffn
  22622. #: guix-git/doc/guix.texi:15409
  22623. #, no-wrap
  22624. msgid "{Scheme Procedure} nscd-service [@var{config}] [#:glibc glibc] @"
  22625. msgstr ""
  22626. #. type: deffn
  22627. #: guix-git/doc/guix.texi:15414
  22628. msgid "[#:name-services '()] Return a service that runs the libc name service cache daemon (nscd) with the given @var{config}---an @code{<nscd-configuration>} object. @xref{Name Service Switch}, for an example."
  22629. msgstr ""
  22630. #. type: deffn
  22631. #: guix-git/doc/guix.texi:15416
  22632. msgid "For convenience, the Shepherd service for nscd provides the following actions:"
  22633. msgstr ""
  22634. #. type: item
  22635. #: guix-git/doc/guix.texi:15418
  22636. #, no-wrap
  22637. msgid "invalidate"
  22638. msgstr ""
  22639. #. type: cindex
  22640. #: guix-git/doc/guix.texi:15419
  22641. #, no-wrap
  22642. msgid "cache invalidation, nscd"
  22643. msgstr ""
  22644. #. type: cindex
  22645. #: guix-git/doc/guix.texi:15420
  22646. #, no-wrap
  22647. msgid "nscd, cache invalidation"
  22648. msgstr ""
  22649. #. type: table
  22650. #: guix-git/doc/guix.texi:15422
  22651. msgid "This invalidate the given cache. For instance, running:"
  22652. msgstr ""
  22653. #. type: example
  22654. #: guix-git/doc/guix.texi:15425
  22655. #, no-wrap
  22656. msgid "herd invalidate nscd hosts\n"
  22657. msgstr ""
  22658. #. type: table
  22659. #: guix-git/doc/guix.texi:15429
  22660. msgid "invalidates the host name lookup cache of nscd."
  22661. msgstr ""
  22662. #. type: item
  22663. #: guix-git/doc/guix.texi:15430
  22664. #, no-wrap
  22665. msgid "statistics"
  22666. msgstr ""
  22667. #. type: table
  22668. #: guix-git/doc/guix.texi:15433
  22669. msgid "Running @command{herd statistics nscd} displays information about nscd usage and caches."
  22670. msgstr ""
  22671. #. type: defvr
  22672. #: guix-git/doc/guix.texi:15437
  22673. #, no-wrap
  22674. msgid "{Scheme Variable} %nscd-default-configuration"
  22675. msgstr ""
  22676. #. type: defvr
  22677. #: guix-git/doc/guix.texi:15441
  22678. msgid "This is the default @code{<nscd-configuration>} value (see below) used by @code{nscd-service}. It uses the caches defined by @code{%nscd-default-caches}; see below."
  22679. msgstr ""
  22680. #. type: deftp
  22681. #: guix-git/doc/guix.texi:15443
  22682. #, no-wrap
  22683. msgid "{Data Type} nscd-configuration"
  22684. msgstr ""
  22685. #. type: deftp
  22686. #: guix-git/doc/guix.texi:15446
  22687. msgid "This is the data type representing the name service cache daemon (nscd) configuration."
  22688. msgstr ""
  22689. #. type: item
  22690. #: guix-git/doc/guix.texi:15449
  22691. #, no-wrap
  22692. msgid "@code{name-services} (default: @code{'()})"
  22693. msgstr ""
  22694. #. type: table
  22695. #: guix-git/doc/guix.texi:15452
  22696. msgid "List of packages denoting @dfn{name services} that must be visible to the nscd---e.g., @code{(list @var{nss-mdns})}."
  22697. msgstr ""
  22698. #. type: item
  22699. #: guix-git/doc/guix.texi:15453
  22700. #, no-wrap
  22701. msgid "@code{glibc} (default: @var{glibc})"
  22702. msgstr ""
  22703. #. type: table
  22704. #: guix-git/doc/guix.texi:15456
  22705. msgid "Package object denoting the GNU C Library providing the @command{nscd} command."
  22706. msgstr ""
  22707. #. type: item
  22708. #: guix-git/doc/guix.texi:15457
  22709. #, no-wrap
  22710. msgid "@code{log-file} (default: @code{\"/var/log/nscd.log\"})"
  22711. msgstr ""
  22712. #. type: table
  22713. #: guix-git/doc/guix.texi:15460
  22714. msgid "Name of the nscd log file. This is where debugging output goes when @code{debug-level} is strictly positive."
  22715. msgstr ""
  22716. #. type: item
  22717. #: guix-git/doc/guix.texi:15461
  22718. #, no-wrap
  22719. msgid "@code{debug-level} (default: @code{0})"
  22720. msgstr ""
  22721. #. type: table
  22722. #: guix-git/doc/guix.texi:15464
  22723. msgid "Integer denoting the debugging levels. Higher numbers mean that more debugging output is logged."
  22724. msgstr ""
  22725. #. type: item
  22726. #: guix-git/doc/guix.texi:15465
  22727. #, fuzzy, no-wrap
  22728. msgid "@code{caches} (default: @code{%nscd-default-caches})"
  22729. msgstr "@code{xfce}(默认值:@code{xfce})"
  22730. #. type: table
  22731. #: guix-git/doc/guix.texi:15468
  22732. msgid "List of @code{<nscd-cache>} objects denoting things to be cached; see below."
  22733. msgstr ""
  22734. #. type: deftp
  22735. #: guix-git/doc/guix.texi:15472
  22736. #, no-wrap
  22737. msgid "{Data Type} nscd-cache"
  22738. msgstr ""
  22739. #. type: deftp
  22740. #: guix-git/doc/guix.texi:15474
  22741. msgid "Data type representing a cache database of nscd and its parameters."
  22742. msgstr ""
  22743. #. type: cindex
  22744. #: guix-git/doc/guix.texi:15477 guix-git/doc/guix.texi:19914
  22745. #, no-wrap
  22746. msgid "database"
  22747. msgstr ""
  22748. #. type: table
  22749. #: guix-git/doc/guix.texi:15482
  22750. msgid "This is a symbol representing the name of the database to be cached. Valid values are @code{passwd}, @code{group}, @code{hosts}, and @code{services}, which designate the corresponding NSS database (@pxref{NSS Basics,,, libc, The GNU C Library Reference Manual})."
  22751. msgstr ""
  22752. #. type: code{#1}
  22753. #: guix-git/doc/guix.texi:15483
  22754. #, no-wrap
  22755. msgid "positive-time-to-live"
  22756. msgstr ""
  22757. #. type: itemx
  22758. #: guix-git/doc/guix.texi:15484
  22759. #, no-wrap
  22760. msgid "@code{negative-time-to-live} (default: @code{20})"
  22761. msgstr ""
  22762. #. type: table
  22763. #: guix-git/doc/guix.texi:15487
  22764. msgid "A number representing the number of seconds during which a positive or negative lookup result remains in cache."
  22765. msgstr ""
  22766. #. type: item
  22767. #: guix-git/doc/guix.texi:15488
  22768. #, no-wrap
  22769. msgid "@code{check-files?} (default: @code{#t})"
  22770. msgstr ""
  22771. #. type: table
  22772. #: guix-git/doc/guix.texi:15491
  22773. msgid "Whether to check for updates of the files corresponding to @var{database}."
  22774. msgstr ""
  22775. #. type: table
  22776. #: guix-git/doc/guix.texi:15495
  22777. msgid "For instance, when @var{database} is @code{hosts}, setting this flag instructs nscd to check for updates in @file{/etc/hosts} and to take them into account."
  22778. msgstr ""
  22779. #. type: item
  22780. #: guix-git/doc/guix.texi:15496
  22781. #, no-wrap
  22782. msgid "@code{persistent?} (default: @code{#t})"
  22783. msgstr ""
  22784. #. type: table
  22785. #: guix-git/doc/guix.texi:15498
  22786. msgid "Whether the cache should be stored persistently on disk."
  22787. msgstr ""
  22788. #. type: item
  22789. #: guix-git/doc/guix.texi:15499
  22790. #, no-wrap
  22791. msgid "@code{shared?} (default: @code{#t})"
  22792. msgstr ""
  22793. #. type: table
  22794. #: guix-git/doc/guix.texi:15501
  22795. msgid "Whether the cache should be shared among users."
  22796. msgstr ""
  22797. #. type: item
  22798. #: guix-git/doc/guix.texi:15502
  22799. #, no-wrap
  22800. msgid "@code{max-database-size} (default: 32@tie{}MiB)"
  22801. msgstr ""
  22802. #. type: table
  22803. #: guix-git/doc/guix.texi:15504
  22804. msgid "Maximum size in bytes of the database cache."
  22805. msgstr ""
  22806. #. type: defvr
  22807. #: guix-git/doc/guix.texi:15511
  22808. #, no-wrap
  22809. msgid "{Scheme Variable} %nscd-default-caches"
  22810. msgstr ""
  22811. #. type: defvr
  22812. #: guix-git/doc/guix.texi:15514
  22813. msgid "List of @code{<nscd-cache>} objects used by default by @code{nscd-configuration} (see above)."
  22814. msgstr ""
  22815. #. type: defvr
  22816. #: guix-git/doc/guix.texi:15520
  22817. msgid "It enables persistent and aggressive caching of service and host name lookups. The latter provides better host name lookup performance, resilience in the face of unreliable name servers, and also better privacy---often the result of host name lookups is in local cache, so external name servers do not even need to be queried."
  22818. msgstr ""
  22819. #. type: anchor{#1}
  22820. #: guix-git/doc/guix.texi:15523
  22821. msgid "syslog-configuration-type"
  22822. msgstr ""
  22823. #. type: cindex
  22824. #: guix-git/doc/guix.texi:15523 guix-git/doc/guix.texi:15539
  22825. #, no-wrap
  22826. msgid "syslog"
  22827. msgstr ""
  22828. #. type: cindex
  22829. #: guix-git/doc/guix.texi:15524 guix-git/doc/guix.texi:16110
  22830. #, no-wrap
  22831. msgid "logging"
  22832. msgstr ""
  22833. #. type: deftp
  22834. #: guix-git/doc/guix.texi:15525
  22835. #, no-wrap
  22836. msgid "{Data Type} syslog-configuration"
  22837. msgstr ""
  22838. #. type: deftp
  22839. #: guix-git/doc/guix.texi:15527
  22840. msgid "This data type represents the configuration of the syslog daemon."
  22841. msgstr ""
  22842. #. type: item
  22843. #: guix-git/doc/guix.texi:15529
  22844. #, no-wrap
  22845. msgid "@code{syslogd} (default: @code{#~(string-append #$inetutils \"/libexec/syslogd\")})"
  22846. msgstr ""
  22847. #. type: table
  22848. #: guix-git/doc/guix.texi:15531
  22849. msgid "The syslog daemon to use."
  22850. msgstr ""
  22851. #. type: item
  22852. #: guix-git/doc/guix.texi:15532
  22853. #, no-wrap
  22854. msgid "@code{config-file} (default: @code{%default-syslog.conf})"
  22855. msgstr ""
  22856. #. type: table
  22857. #: guix-git/doc/guix.texi:15534
  22858. msgid "The syslog configuration file to use."
  22859. msgstr ""
  22860. #. type: anchor{#1}
  22861. #: guix-git/doc/guix.texi:15539
  22862. msgid "syslog-service"
  22863. msgstr ""
  22864. #. type: deffn
  22865. #: guix-git/doc/guix.texi:15540
  22866. #, no-wrap
  22867. msgid "{Scheme Procedure} syslog-service @var{config}"
  22868. msgstr ""
  22869. #. type: deffn
  22870. #: guix-git/doc/guix.texi:15542
  22871. msgid "Return a service that runs a syslog daemon according to @var{config}."
  22872. msgstr ""
  22873. #. type: deffn
  22874. #: guix-git/doc/guix.texi:15545
  22875. msgid "@xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax."
  22876. msgstr ""
  22877. #. type: defvr
  22878. #: guix-git/doc/guix.texi:15547
  22879. #, no-wrap
  22880. msgid "{Scheme Variable} guix-service-type"
  22881. msgstr ""
  22882. #. type: defvr
  22883. #: guix-git/doc/guix.texi:15551
  22884. msgid "This is the type of the service that runs the build daemon, @command{guix-daemon} (@pxref{Invoking guix-daemon}). Its value must be a @code{guix-configuration} record as described below."
  22885. msgstr ""
  22886. #. type: anchor{#1}
  22887. #: guix-git/doc/guix.texi:15554
  22888. msgid "guix-configuration-type"
  22889. msgstr ""
  22890. #. type: deftp
  22891. #: guix-git/doc/guix.texi:15554
  22892. #, no-wrap
  22893. msgid "{Data Type} guix-configuration"
  22894. msgstr ""
  22895. #. type: deftp
  22896. #: guix-git/doc/guix.texi:15557
  22897. msgid "This data type represents the configuration of the Guix build daemon. @xref{Invoking guix-daemon}, for more information."
  22898. msgstr ""
  22899. #. type: item
  22900. #: guix-git/doc/guix.texi:15559
  22901. #, no-wrap
  22902. msgid "@code{guix} (default: @var{guix})"
  22903. msgstr ""
  22904. #. type: table
  22905. #: guix-git/doc/guix.texi:15561 guix-git/doc/guix.texi:15838
  22906. msgid "The Guix package to use."
  22907. msgstr ""
  22908. #. type: item
  22909. #: guix-git/doc/guix.texi:15562
  22910. #, no-wrap
  22911. msgid "@code{build-group} (default: @code{\"guixbuild\"})"
  22912. msgstr ""
  22913. #. type: table
  22914. #: guix-git/doc/guix.texi:15564
  22915. msgid "Name of the group for build user accounts."
  22916. msgstr ""
  22917. #. type: item
  22918. #: guix-git/doc/guix.texi:15565
  22919. #, no-wrap
  22920. msgid "@code{build-accounts} (default: @code{10})"
  22921. msgstr ""
  22922. #. type: table
  22923. #: guix-git/doc/guix.texi:15567
  22924. msgid "Number of build user accounts to create."
  22925. msgstr ""
  22926. #. type: item
  22927. #: guix-git/doc/guix.texi:15568
  22928. #, no-wrap
  22929. msgid "@code{authorize-key?} (default: @code{#t})"
  22930. msgstr ""
  22931. #. type: table
  22932. #: guix-git/doc/guix.texi:15575
  22933. msgid "Whether to authorize the substitute keys listed in @code{authorized-keys}---by default that of @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} (@pxref{Substitutes})."
  22934. msgstr ""
  22935. #. type: table
  22936. #: guix-git/doc/guix.texi:15581
  22937. msgid "When @code{authorize-key?} is true, @file{/etc/guix/acl} cannot be changed by invoking @command{guix archive --authorize}. You must instead adjust @code{guix-configuration} as you wish and reconfigure the system. This ensures that your operating system configuration file is self-contained."
  22938. msgstr ""
  22939. #. type: quotation
  22940. #: guix-git/doc/guix.texi:15588
  22941. msgid "When booting or reconfiguring to a system where @code{authorize-key?} is true, the existing @file{/etc/guix/acl} file is backed up as @file{/etc/guix/acl.bak} if it was determined to be a manually modified file. This is to facilitate migration from earlier versions, which allowed for in-place modifications to @file{/etc/guix/acl}."
  22942. msgstr ""
  22943. #. type: vindex
  22944. #: guix-git/doc/guix.texi:15590
  22945. #, no-wrap
  22946. msgid "%default-authorized-guix-keys"
  22947. msgstr ""
  22948. #. type: item
  22949. #: guix-git/doc/guix.texi:15591
  22950. #, fuzzy, no-wrap
  22951. msgid "@code{authorized-keys} (default: @code{%default-authorized-guix-keys})"
  22952. msgstr "@code{mate}(默认值:@code{mate})"
  22953. #. type: table
  22954. #: guix-git/doc/guix.texi:15597
  22955. msgid "The list of authorized key files for archive imports, as a list of string-valued gexps (@pxref{Invoking guix archive}). By default, it contains that of @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} (@pxref{Substitutes}). See @code{substitute-urls} below for an example on how to change it."
  22956. msgstr ""
  22957. #. type: item
  22958. #: guix-git/doc/guix.texi:15598
  22959. #, no-wrap
  22960. msgid "@code{use-substitutes?} (default: @code{#t})"
  22961. msgstr ""
  22962. #. type: table
  22963. #: guix-git/doc/guix.texi:15600
  22964. msgid "Whether to use substitutes."
  22965. msgstr ""
  22966. #. type: item
  22967. #: guix-git/doc/guix.texi:15601 guix-git/doc/guix.texi:28004
  22968. #, fuzzy, no-wrap
  22969. msgid "@code{substitute-urls} (default: @code{%default-substitute-urls})"
  22970. msgstr "@code{mate}(默认值:@code{mate})"
  22971. #. type: table
  22972. #: guix-git/doc/guix.texi:15603 guix-git/doc/guix.texi:28006
  22973. msgid "The list of URLs where to look for substitutes by default."
  22974. msgstr ""
  22975. #. type: table
  22976. #: guix-git/doc/guix.texi:15610
  22977. msgid "Suppose you would like to fetch substitutes from @code{guix.example.org} in addition to @code{@value{SUBSTITUTE-SERVER-1}}. You will need to do two things: (1) add @code{guix.example.org} to @code{substitute-urls}, and (2) authorize its signing key, having done appropriate checks (@pxref{Substitute Server Authorization}). The configuration below does exactly that:"
  22978. msgstr ""
  22979. #. type: lisp
  22980. #: guix-git/doc/guix.texi:15619
  22981. #, no-wrap
  22982. msgid ""
  22983. "(guix-configuration\n"
  22984. " (substitute-urls\n"
  22985. " (append (list \"https://guix.example.org\")\n"
  22986. " %default-substitute-urls))\n"
  22987. " (authorized-keys\n"
  22988. " (append (list (local-file \"./guix.example.org-key.pub\"))\n"
  22989. " %default-authorized-guix-keys)))\n"
  22990. msgstr ""
  22991. #. type: table
  22992. #: guix-git/doc/guix.texi:15624
  22993. msgid "This example assumes that the file @file{./guix.example.org-key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  22994. msgstr ""
  22995. #. type: item
  22996. #: guix-git/doc/guix.texi:15625
  22997. #, no-wrap
  22998. msgid "@code{max-silent-time} (default: @code{0})"
  22999. msgstr ""
  23000. #. type: itemx
  23001. #: guix-git/doc/guix.texi:15626
  23002. #, no-wrap
  23003. msgid "@code{timeout} (default: @code{0})"
  23004. msgstr ""
  23005. #. type: table
  23006. #: guix-git/doc/guix.texi:15630
  23007. msgid "The number of seconds of silence and the number of seconds of activity, respectively, after which a build process times out. A value of zero disables the timeout."
  23008. msgstr ""
  23009. #. type: item
  23010. #: guix-git/doc/guix.texi:15631
  23011. #, no-wrap
  23012. msgid "@code{log-compression} (default: @code{'bzip2})"
  23013. msgstr ""
  23014. #. type: table
  23015. #: guix-git/doc/guix.texi:15634
  23016. msgid "The type of compression used for build logs---one of @code{gzip}, @code{bzip2}, or @code{none}."
  23017. msgstr ""
  23018. #. type: item
  23019. #: guix-git/doc/guix.texi:15635
  23020. #, fuzzy, no-wrap
  23021. msgid "@code{discover?} (default: @code{#f})"
  23022. msgstr "@code{speed}(默认值:@code{1.0})"
  23023. #. type: table
  23024. #: guix-git/doc/guix.texi:15641
  23025. msgid "List of extra command-line options for @command{guix-daemon}."
  23026. msgstr ""
  23027. #. type: item
  23028. #: guix-git/doc/guix.texi:15642
  23029. #, no-wrap
  23030. msgid "@code{log-file} (default: @code{\"/var/log/guix-daemon.log\"})"
  23031. msgstr ""
  23032. #. type: table
  23033. #: guix-git/doc/guix.texi:15645
  23034. msgid "File where @command{guix-daemon}'s standard output and standard error are written."
  23035. msgstr ""
  23036. #. type: cindex
  23037. #: guix-git/doc/guix.texi:15646
  23038. #, no-wrap
  23039. msgid "HTTP proxy, for @code{guix-daemon}"
  23040. msgstr ""
  23041. #. type: cindex
  23042. #: guix-git/doc/guix.texi:15647
  23043. #, no-wrap
  23044. msgid "proxy, for @code{guix-daemon} HTTP access"
  23045. msgstr ""
  23046. #. type: item
  23047. #: guix-git/doc/guix.texi:15648
  23048. #, no-wrap
  23049. msgid "@code{http-proxy} (default: @code{#f})"
  23050. msgstr ""
  23051. #. type: table
  23052. #: guix-git/doc/guix.texi:15651
  23053. msgid "The URL of the HTTP and HTTPS proxy used for downloading fixed-output derivations and substitutes."
  23054. msgstr ""
  23055. #. type: table
  23056. #: guix-git/doc/guix.texi:15654
  23057. msgid "It is also possible to change the daemon's proxy at run time through the @code{set-http-proxy} action, which restarts it:"
  23058. msgstr ""
  23059. #. type: example
  23060. #: guix-git/doc/guix.texi:15657
  23061. #, no-wrap
  23062. msgid "herd set-http-proxy guix-daemon http://localhost:8118\n"
  23063. msgstr ""
  23064. #. type: table
  23065. #: guix-git/doc/guix.texi:15660
  23066. msgid "To clear the proxy settings, run:"
  23067. msgstr ""
  23068. #. type: example
  23069. #: guix-git/doc/guix.texi:15663
  23070. #, fuzzy, no-wrap
  23071. msgid "herd set-http-proxy guix-daemon\n"
  23072. msgstr "安全,guix-daemon"
  23073. #. type: item
  23074. #: guix-git/doc/guix.texi:15665
  23075. #, no-wrap
  23076. msgid "@code{tmpdir} (default: @code{#f})"
  23077. msgstr ""
  23078. #. type: table
  23079. #: guix-git/doc/guix.texi:15667
  23080. msgid "A directory path where the @command{guix-daemon} will perform builds."
  23081. msgstr ""
  23082. #. type: deffn
  23083. #: guix-git/doc/guix.texi:15671
  23084. #, no-wrap
  23085. msgid "{Scheme Procedure} udev-service [#:udev @var{eudev} #:rules @code{'()}]"
  23086. msgstr ""
  23087. #. type: deffn
  23088. #: guix-git/doc/guix.texi:15677
  23089. msgid "Run @var{udev}, which populates the @file{/dev} directory dynamically. udev rules can be provided as a list of files through the @var{rules} variable. The procedures @code{udev-rule}, @code{udev-rules-service} and @code{file->udev-rule} from @code{(gnu services base)} simplify the creation of such rule files."
  23090. msgstr ""
  23091. #. type: deffn
  23092. #: guix-git/doc/guix.texi:15680
  23093. msgid "The @command{herd rules udev} command, as root, returns the name of the directory containing all the active udev rules."
  23094. msgstr ""
  23095. #. type: deffn
  23096. #: guix-git/doc/guix.texi:15682
  23097. #, no-wrap
  23098. msgid "{Scheme Procedure} udev-rule [@var{file-name} @var{contents}]"
  23099. msgstr ""
  23100. #. type: deffn
  23101. #: guix-git/doc/guix.texi:15685
  23102. msgid "Return a udev-rule file named @var{file-name} containing the rules defined by the @var{contents} literal."
  23103. msgstr ""
  23104. #. type: deffn
  23105. #: guix-git/doc/guix.texi:15689
  23106. msgid "In the following example, a rule for a USB device is defined to be stored in the file @file{90-usb-thing.rules}. The rule runs a script upon detecting a USB device with a given product identifier."
  23107. msgstr ""
  23108. #. type: lisp
  23109. #: guix-git/doc/guix.texi:15697
  23110. #, no-wrap
  23111. msgid ""
  23112. "(define %example-udev-rule\n"
  23113. " (udev-rule\n"
  23114. " \"90-usb-thing.rules\"\n"
  23115. " (string-append \"ACTION==\\\"add\\\", SUBSYSTEM==\\\"usb\\\", \"\n"
  23116. " \"ATTR@{product@}==\\\"Example\\\", \"\n"
  23117. " \"RUN+=\\\"/path/to/script\\\"\")))\n"
  23118. msgstr ""
  23119. #. type: deffn
  23120. #: guix-git/doc/guix.texi:15700
  23121. #, no-wrap
  23122. msgid "{Scheme Procedure} udev-rules-service [@var{name} @var{rules}] @"
  23123. msgstr ""
  23124. #. type: deffn
  23125. #: guix-git/doc/guix.texi:15707
  23126. msgid "[#:groups @var{groups}] Return a service that extends @code{udev-service-type } with @var{rules} and @code{account-service-type} with @var{groups} as system groups. This works by creating a singleton service type @code{@var{name}-udev-rules}, of which the returned service is an instance."
  23127. msgstr ""
  23128. #. type: deffn
  23129. #: guix-git/doc/guix.texi:15710
  23130. msgid "Here we show how it can be used to extend @code{udev-service-type} with the previously defined rule @code{%example-udev-rule}."
  23131. msgstr ""
  23132. #. type: lisp
  23133. #: guix-git/doc/guix.texi:15717
  23134. #, no-wrap
  23135. msgid ""
  23136. "(operating-system\n"
  23137. " ;; @dots{}\n"
  23138. " (services\n"
  23139. " (cons (udev-rules-service 'usb-thing %example-udev-rule)\n"
  23140. " %desktop-services)))\n"
  23141. msgstr ""
  23142. #. type: deffn
  23143. #: guix-git/doc/guix.texi:15720
  23144. #, no-wrap
  23145. msgid "{Scheme Procedure} file->udev-rule [@var{file-name} @var{file}]"
  23146. msgstr ""
  23147. #. type: deffn
  23148. #: guix-git/doc/guix.texi:15723
  23149. msgid "Return a udev file named @var{file-name} containing the rules defined within @var{file}, a file-like object."
  23150. msgstr ""
  23151. #. type: deffn
  23152. #: guix-git/doc/guix.texi:15725
  23153. msgid "The following example showcases how we can use an existing rule file."
  23154. msgstr ""
  23155. #. type: lisp
  23156. #: guix-git/doc/guix.texi:15730
  23157. #, no-wrap
  23158. msgid ""
  23159. "(use-modules (guix download) ;for url-fetch\n"
  23160. " (guix packages) ;for origin\n"
  23161. " @dots{})\n"
  23162. "\n"
  23163. msgstr ""
  23164. #. type: lisp
  23165. #: guix-git/doc/guix.texi:15741
  23166. #, no-wrap
  23167. msgid ""
  23168. "(define %android-udev-rules\n"
  23169. " (file->udev-rule\n"
  23170. " \"51-android-udev.rules\"\n"
  23171. " (let ((version \"20170910\"))\n"
  23172. " (origin\n"
  23173. " (method url-fetch)\n"
  23174. " (uri (string-append \"https://raw.githubusercontent.com/M0Rf30/\"\n"
  23175. " \"android-udev-rules/\" version \"/51-android.rules\"))\n"
  23176. " (sha256\n"
  23177. " (base32 \"0lmmagpyb6xsq6zcr2w1cyx9qmjqmajkvrdbhjx32gqf1d9is003\"))))))\n"
  23178. msgstr ""
  23179. #. type: Plain text
  23180. #: guix-git/doc/guix.texi:15750
  23181. msgid "Additionally, Guix package definitions can be included in @var{rules} in order to extend the udev rules with the definitions found under their @file{lib/udev/rules.d} sub-directory. In lieu of the previous @var{file->udev-rule} example, we could have used the @var{android-udev-rules} package which exists in Guix in the @code{(gnu packages android)} module."
  23182. msgstr ""
  23183. #. type: Plain text
  23184. #: guix-git/doc/guix.texi:15759
  23185. msgid "The following example shows how to use the @var{android-udev-rules} package so that the Android tool @command{adb} can detect devices without root privileges. It also details how to create the @code{adbusers} group, which is required for the proper functioning of the rules defined within the @code{android-udev-rules} package. To create such a group, we must define it both as part of the @code{supplementary-groups} of our @code{user-account} declaration, as well as in the @var{groups} of the @code{udev-rules-service} procedure."
  23186. msgstr ""
  23187. #. type: lisp
  23188. #: guix-git/doc/guix.texi:15764
  23189. #, no-wrap
  23190. msgid ""
  23191. "(use-modules (gnu packages android) ;for android-udev-rules\n"
  23192. " (gnu system shadow) ;for user-group\n"
  23193. " @dots{})\n"
  23194. "\n"
  23195. msgstr ""
  23196. #. type: lisp
  23197. #: guix-git/doc/guix.texi:15777
  23198. #, no-wrap
  23199. msgid ""
  23200. "(operating-system\n"
  23201. " ;; @dots{}\n"
  23202. " (users (cons (user-account\n"
  23203. " ;; @dots{}\n"
  23204. " (supplementary-groups\n"
  23205. " '(\"adbusers\" ;for adb\n"
  23206. " \"wheel\" \"netdev\" \"audio\" \"video\")))))\n"
  23207. " ;; @dots{}\n"
  23208. " (services\n"
  23209. " (cons (udev-rules-service 'android android-udev-rules\n"
  23210. " #:groups '(\"adbusers\"))\n"
  23211. " %desktop-services)))\n"
  23212. msgstr ""
  23213. #. type: defvr
  23214. #: guix-git/doc/guix.texi:15779
  23215. #, no-wrap
  23216. msgid "{Scheme Variable} urandom-seed-service-type"
  23217. msgstr ""
  23218. #. type: defvr
  23219. #: guix-git/doc/guix.texi:15784
  23220. msgid "Save some entropy in @code{%random-seed-file} to seed @file{/dev/urandom} when rebooting. It also tries to seed @file{/dev/urandom} from @file{/dev/hwrng} while booting, if @file{/dev/hwrng} exists and is readable."
  23221. msgstr ""
  23222. #. type: defvr
  23223. #: guix-git/doc/guix.texi:15786
  23224. #, no-wrap
  23225. msgid "{Scheme Variable} %random-seed-file"
  23226. msgstr ""
  23227. #. type: defvr
  23228. #: guix-git/doc/guix.texi:15790
  23229. msgid "This is the name of the file where some random bytes are saved by @var{urandom-seed-service} to seed @file{/dev/urandom} when rebooting. It defaults to @file{/var/lib/random-seed}."
  23230. msgstr ""
  23231. #. type: cindex
  23232. #: guix-git/doc/guix.texi:15792
  23233. #, no-wrap
  23234. msgid "mouse"
  23235. msgstr ""
  23236. #. type: cindex
  23237. #: guix-git/doc/guix.texi:15793
  23238. #, no-wrap
  23239. msgid "gpm"
  23240. msgstr ""
  23241. #. type: defvr
  23242. #: guix-git/doc/guix.texi:15794
  23243. #, no-wrap
  23244. msgid "{Scheme Variable} gpm-service-type"
  23245. msgstr ""
  23246. #. type: defvr
  23247. #: guix-git/doc/guix.texi:15799
  23248. msgid "This is the type of the service that runs GPM, the @dfn{general-purpose mouse daemon}, which provides mouse support to the Linux console. GPM allows users to use the mouse in the console, notably to select, copy, and paste text."
  23249. msgstr ""
  23250. #. type: defvr
  23251. #: guix-git/doc/guix.texi:15802
  23252. msgid "The value for services of this type must be a @code{gpm-configuration} (see below). This service is not part of @code{%base-services}."
  23253. msgstr ""
  23254. #. type: deftp
  23255. #: guix-git/doc/guix.texi:15804
  23256. #, no-wrap
  23257. msgid "{Data Type} gpm-configuration"
  23258. msgstr ""
  23259. #. type: deftp
  23260. #: guix-git/doc/guix.texi:15806
  23261. msgid "Data type representing the configuration of GPM."
  23262. msgstr ""
  23263. #. type: item
  23264. #: guix-git/doc/guix.texi:15808
  23265. #, no-wrap
  23266. msgid "@code{options} (default: @code{%default-gpm-options})"
  23267. msgstr ""
  23268. #. type: table
  23269. #: guix-git/doc/guix.texi:15813
  23270. msgid "Command-line options passed to @command{gpm}. The default set of options instruct @command{gpm} to listen to mouse events on @file{/dev/input/mice}. @xref{Command Line,,, gpm, gpm manual}, for more information."
  23271. msgstr ""
  23272. #. type: item
  23273. #: guix-git/doc/guix.texi:15814
  23274. #, no-wrap
  23275. msgid "@code{gpm} (default: @code{gpm})"
  23276. msgstr ""
  23277. #. type: table
  23278. #: guix-git/doc/guix.texi:15816
  23279. msgid "The GPM package to use."
  23280. msgstr ""
  23281. #. type: anchor{#1}
  23282. #: guix-git/doc/guix.texi:15821
  23283. msgid "guix-publish-service-type"
  23284. msgstr ""
  23285. #. type: deffn
  23286. #: guix-git/doc/guix.texi:15821
  23287. #, no-wrap
  23288. msgid "{Scheme Variable} guix-publish-service-type"
  23289. msgstr ""
  23290. #. type: deffn
  23291. #: guix-git/doc/guix.texi:15825
  23292. msgid "This is the service type for @command{guix publish} (@pxref{Invoking guix publish}). Its value must be a @code{guix-publish-configuration} object, as described below."
  23293. msgstr ""
  23294. #. type: deffn
  23295. #: guix-git/doc/guix.texi:15829
  23296. msgid "This assumes that @file{/etc/guix} already contains a signing key pair as created by @command{guix archive --generate-key} (@pxref{Invoking guix archive}). If that is not the case, the service will fail to start."
  23297. msgstr ""
  23298. #. type: deftp
  23299. #: guix-git/doc/guix.texi:15831
  23300. #, no-wrap
  23301. msgid "{Data Type} guix-publish-configuration"
  23302. msgstr ""
  23303. #. type: deftp
  23304. #: guix-git/doc/guix.texi:15834
  23305. msgid "Data type representing the configuration of the @code{guix publish} service."
  23306. msgstr ""
  23307. #. type: item
  23308. #: guix-git/doc/guix.texi:15836
  23309. #, no-wrap
  23310. msgid "@code{guix} (default: @code{guix})"
  23311. msgstr ""
  23312. #. type: item
  23313. #: guix-git/doc/guix.texi:15839 guix-git/doc/guix.texi:30257
  23314. #, no-wrap
  23315. msgid "@code{port} (default: @code{80})"
  23316. msgstr ""
  23317. #. type: table
  23318. #: guix-git/doc/guix.texi:15841
  23319. msgid "The TCP port to listen for connections."
  23320. msgstr ""
  23321. #. type: item
  23322. #: guix-git/doc/guix.texi:15842 guix-git/doc/guix.texi:27887
  23323. #, no-wrap
  23324. msgid "@code{host} (default: @code{\"localhost\"})"
  23325. msgstr ""
  23326. #. type: table
  23327. #: guix-git/doc/guix.texi:15845
  23328. msgid "The host (and thus, network interface) to listen to. Use @code{\"0.0.0.0\"} to listen on all the network interfaces."
  23329. msgstr ""
  23330. #. type: item
  23331. #: guix-git/doc/guix.texi:15846
  23332. #, fuzzy, no-wrap
  23333. msgid "@code{advertise?} (default: @code{#f})"
  23334. msgstr "@code{challenge}(默认值:@code{#f})"
  23335. #. type: table
  23336. #: guix-git/doc/guix.texi:15849
  23337. msgid "When true, advertise the service on the local network @i{via} the DNS-SD protocol, using Avahi."
  23338. msgstr ""
  23339. #. type: table
  23340. #: guix-git/doc/guix.texi:15853
  23341. msgid "This allows neighboring Guix devices with discovery on (see @code{guix-configuration} above) to discover this @command{guix publish} instance and to automatically download substitutes from it."
  23342. msgstr ""
  23343. #. type: item
  23344. #: guix-git/doc/guix.texi:15854
  23345. #, fuzzy, no-wrap
  23346. msgid "@code{compression} (default: @code{'((\"gzip\" 3) (\"zstd\" 3))})"
  23347. msgstr "@code{compression-level}(默认值:@code{3})"
  23348. #. type: table
  23349. #: guix-git/doc/guix.texi:15858
  23350. msgid "This is a list of compression method/level tuple used when compressing substitutes. For example, to compress all substitutes with @emph{both} lzip at level 7 and gzip at level 9, write:"
  23351. msgstr ""
  23352. #. type: lisp
  23353. #: guix-git/doc/guix.texi:15861
  23354. #, no-wrap
  23355. msgid "'((\"lzip\" 7) (\"gzip\" 9))\n"
  23356. msgstr ""
  23357. #. type: table
  23358. #: guix-git/doc/guix.texi:15867
  23359. msgid "Level 9 achieves the best compression ratio at the expense of increased CPU usage, whereas level 1 achieves fast compression. @xref{Invoking guix publish}, for more information on the available compression methods and the tradeoffs involved."
  23360. msgstr ""
  23361. #. type: table
  23362. #: guix-git/doc/guix.texi:15869
  23363. msgid "An empty list disables compression altogether."
  23364. msgstr ""
  23365. #. type: item
  23366. #: guix-git/doc/guix.texi:15870
  23367. #, no-wrap
  23368. msgid "@code{nar-path} (default: @code{\"nar\"})"
  23369. msgstr ""
  23370. #. type: table
  23371. #: guix-git/doc/guix.texi:15873
  23372. msgid "The URL path at which ``nars'' can be fetched. @xref{Invoking guix publish, @option{--nar-path}}, for details."
  23373. msgstr ""
  23374. #. type: item
  23375. #: guix-git/doc/guix.texi:15874
  23376. #, no-wrap
  23377. msgid "@code{cache} (default: @code{#f})"
  23378. msgstr ""
  23379. #. type: table
  23380. #: guix-git/doc/guix.texi:15880
  23381. msgid "When it is @code{#f}, disable caching and instead generate archives on demand. Otherwise, this should be the name of a directory---e.g., @code{\"/var/cache/guix/publish\"}---where @command{guix publish} caches archives and meta-data ready to be sent. @xref{Invoking guix publish, @option{--cache}}, for more information on the tradeoffs involved."
  23382. msgstr ""
  23383. #. type: item
  23384. #: guix-git/doc/guix.texi:15881
  23385. #, no-wrap
  23386. msgid "@code{workers} (default: @code{#f})"
  23387. msgstr ""
  23388. #. type: table
  23389. #: guix-git/doc/guix.texi:15885
  23390. msgid "When it is an integer, this is the number of worker threads used for caching; when @code{#f}, the number of processors is used. @xref{Invoking guix publish, @option{--workers}}, for more information."
  23391. msgstr ""
  23392. #. type: item
  23393. #: guix-git/doc/guix.texi:15886
  23394. #, no-wrap
  23395. msgid "@code{cache-bypass-threshold} (default: 10 MiB)"
  23396. msgstr ""
  23397. #. type: table
  23398. #: guix-git/doc/guix.texi:15891
  23399. msgid "When @code{cache} is true, this is the maximum size in bytes of a store item for which @command{guix publish} may bypass its cache in case of a cache miss. @xref{Invoking guix publish, @option{--cache-bypass-threshold}}, for more information."
  23400. msgstr ""
  23401. #. type: item
  23402. #: guix-git/doc/guix.texi:15892
  23403. #, no-wrap
  23404. msgid "@code{ttl} (default: @code{#f})"
  23405. msgstr ""
  23406. #. type: table
  23407. #: guix-git/doc/guix.texi:15896
  23408. msgid "When it is an integer, this denotes the @dfn{time-to-live} in seconds of the published archives. @xref{Invoking guix publish, @option{--ttl}}, for more information."
  23409. msgstr ""
  23410. #. type: anchor{#1}
  23411. #: guix-git/doc/guix.texi:15900
  23412. msgid "rngd-service"
  23413. msgstr ""
  23414. #. type: deffn
  23415. #: guix-git/doc/guix.texi:15900
  23416. #, no-wrap
  23417. msgid "{Scheme Procedure} rngd-service [#:rng-tools @var{rng-tools}] @"
  23418. msgstr ""
  23419. #. type: deffn
  23420. #: guix-git/doc/guix.texi:15905
  23421. msgid "[#:device \"/dev/hwrng\"] Return a service that runs the @command{rngd} program from @var{rng-tools} to add @var{device} to the kernel's entropy pool. The service will fail if @var{device} does not exist."
  23422. msgstr ""
  23423. #. type: anchor{#1}
  23424. #: guix-git/doc/guix.texi:15908
  23425. msgid "pam-limits-service"
  23426. msgstr ""
  23427. #. type: cindex
  23428. #: guix-git/doc/guix.texi:15908
  23429. #, no-wrap
  23430. msgid "session limits"
  23431. msgstr ""
  23432. #. type: cindex
  23433. #: guix-git/doc/guix.texi:15909
  23434. #, no-wrap
  23435. msgid "ulimit"
  23436. msgstr ""
  23437. #. type: cindex
  23438. #: guix-git/doc/guix.texi:15910
  23439. #, no-wrap
  23440. msgid "priority"
  23441. msgstr ""
  23442. #. type: cindex
  23443. #: guix-git/doc/guix.texi:15911
  23444. #, no-wrap
  23445. msgid "realtime"
  23446. msgstr ""
  23447. #. type: cindex
  23448. #: guix-git/doc/guix.texi:15912
  23449. #, no-wrap
  23450. msgid "jackd"
  23451. msgstr ""
  23452. #. type: cindex
  23453. #: guix-git/doc/guix.texi:15913
  23454. #, no-wrap
  23455. msgid "nofile"
  23456. msgstr ""
  23457. #. type: cindex
  23458. #: guix-git/doc/guix.texi:15914
  23459. #, fuzzy, no-wrap
  23460. msgid "open file descriptors"
  23461. msgstr "简介和描述"
  23462. #. type: deffn
  23463. #: guix-git/doc/guix.texi:15915
  23464. #, no-wrap
  23465. msgid "{Scheme Procedure} pam-limits-service [#:limits @code{'()}]"
  23466. msgstr ""
  23467. #. type: deffn
  23468. #: guix-git/doc/guix.texi:15922
  23469. msgid "Return a service that installs a configuration file for the @uref{http://linux-pam.org/Linux-PAM-html/sag-pam_limits.html, @code{pam_limits} module}. The procedure optionally takes a list of @code{pam-limits-entry} values, which can be used to specify @code{ulimit} limits and @code{nice} priority limits to user sessions."
  23470. msgstr ""
  23471. #. type: deffn
  23472. #: guix-git/doc/guix.texi:15925
  23473. msgid "The following limits definition sets two hard and soft limits for all login sessions of users in the @code{realtime} group:"
  23474. msgstr ""
  23475. #. type: lisp
  23476. #: guix-git/doc/guix.texi:15931
  23477. #, no-wrap
  23478. msgid ""
  23479. "(pam-limits-service\n"
  23480. " (list\n"
  23481. " (pam-limits-entry \"@@realtime\" 'both 'rtprio 99)\n"
  23482. " (pam-limits-entry \"@@realtime\" 'both 'memlock 'unlimited)))\n"
  23483. msgstr ""
  23484. #. type: deffn
  23485. #: guix-git/doc/guix.texi:15937
  23486. msgid "The first entry increases the maximum realtime priority for non-privileged processes; the second entry lifts any restriction of the maximum address space that can be locked in memory. These settings are commonly used for real-time audio systems."
  23487. msgstr ""
  23488. #. type: deffn
  23489. #: guix-git/doc/guix.texi:15940
  23490. msgid "Another useful example is raising the maximum number of open file descriptors that can be used:"
  23491. msgstr ""
  23492. #. type: lisp
  23493. #: guix-git/doc/guix.texi:15945
  23494. #, no-wrap
  23495. msgid ""
  23496. "(pam-limits-service\n"
  23497. " (list\n"
  23498. " (pam-limits-entry \"*\" 'both 'nofile 100000)))\n"
  23499. msgstr ""
  23500. #. type: deffn
  23501. #: guix-git/doc/guix.texi:15953
  23502. msgid "In the above example, the asterisk means the limit should apply to any user. It is important to ensure the chosen value doesn't exceed the maximum system value visible in the @file{/proc/sys/fs/file-max} file, else the users would be prevented from login in. For more information about the Pluggable Authentication Module (PAM) limits, refer to the @samp{pam_limits} man page from the @code{linux-pam} package."
  23503. msgstr ""
  23504. #. type: cindex
  23505. #: guix-git/doc/guix.texi:15958
  23506. #, no-wrap
  23507. msgid "cron"
  23508. msgstr ""
  23509. #. type: cindex
  23510. #: guix-git/doc/guix.texi:15959
  23511. #, no-wrap
  23512. msgid "mcron"
  23513. msgstr ""
  23514. #. type: cindex
  23515. #: guix-git/doc/guix.texi:15960
  23516. #, no-wrap
  23517. msgid "scheduling jobs"
  23518. msgstr ""
  23519. #. type: Plain text
  23520. #: guix-git/doc/guix.texi:15967
  23521. msgid "The @code{(gnu services mcron)} module provides an interface to GNU@tie{}mcron, a daemon to run jobs at scheduled times (@pxref{Top,,, mcron, GNU@tie{}mcron}). GNU@tie{}mcron is similar to the traditional Unix @command{cron} daemon; the main difference is that it is implemented in Guile Scheme, which provides a lot of flexibility when specifying the scheduling of jobs and their actions."
  23522. msgstr ""
  23523. #. type: Plain text
  23524. #: guix-git/doc/guix.texi:15975
  23525. msgid "The example below defines an operating system that runs the @command{updatedb} (@pxref{Invoking updatedb,,, find, Finding Files}) and the @command{guix gc} commands (@pxref{Invoking guix gc}) daily, as well as the @command{mkid} command on behalf of an unprivileged user (@pxref{mkid invocation,,, idutils, ID Database Utilities}). It uses gexps to introduce job definitions that are passed to mcron (@pxref{G-Expressions})."
  23526. msgstr ""
  23527. #. type: lisp
  23528. #: guix-git/doc/guix.texi:15979
  23529. #, no-wrap
  23530. msgid ""
  23531. "(use-modules (guix) (gnu) (gnu services mcron))\n"
  23532. "(use-package-modules base idutils)\n"
  23533. "\n"
  23534. msgstr ""
  23535. #. type: lisp
  23536. #: guix-git/doc/guix.texi:15989
  23537. #, no-wrap
  23538. msgid ""
  23539. "(define updatedb-job\n"
  23540. " ;; Run 'updatedb' at 3AM every day. Here we write the\n"
  23541. " ;; job's action as a Scheme procedure.\n"
  23542. " #~(job '(next-hour '(3))\n"
  23543. " (lambda ()\n"
  23544. " (execl (string-append #$findutils \"/bin/updatedb\")\n"
  23545. " \"updatedb\"\n"
  23546. " \"--prunepaths=/tmp /var/tmp /gnu/store\"))\n"
  23547. " \"updatedb\"))\n"
  23548. "\n"
  23549. msgstr ""
  23550. #. type: lisp
  23551. #: guix-git/doc/guix.texi:15995
  23552. #, no-wrap
  23553. msgid ""
  23554. "(define garbage-collector-job\n"
  23555. " ;; Collect garbage 5 minutes after midnight every day.\n"
  23556. " ;; The job's action is a shell command.\n"
  23557. " #~(job \"5 0 * * *\" ;Vixie cron syntax\n"
  23558. " \"guix gc -F 1G\"))\n"
  23559. "\n"
  23560. msgstr ""
  23561. #. type: lisp
  23562. #: guix-git/doc/guix.texi:16002
  23563. #, no-wrap
  23564. msgid ""
  23565. "(define idutils-job\n"
  23566. " ;; Update the index database as user \"charlie\" at 12:15PM\n"
  23567. " ;; and 19:15PM. This runs from the user's home directory.\n"
  23568. " #~(job '(next-minute-from (next-hour '(12 19)) '(15))\n"
  23569. " (string-append #$idutils \"/bin/mkid src\")\n"
  23570. " #:user \"charlie\"))\n"
  23571. "\n"
  23572. msgstr ""
  23573. #. type: lisp
  23574. #: guix-git/doc/guix.texi:16005
  23575. #, no-wrap
  23576. msgid ""
  23577. "(operating-system\n"
  23578. " ;; @dots{}\n"
  23579. "\n"
  23580. msgstr ""
  23581. #. type: lisp
  23582. #: guix-git/doc/guix.texi:16015
  23583. #, no-wrap
  23584. msgid ""
  23585. " ;; %BASE-SERVICES already includes an instance of\n"
  23586. " ;; 'mcron-service-type', which we extend with additional\n"
  23587. " ;; jobs using 'simple-service'.\n"
  23588. " (services (cons (simple-service 'my-cron-jobs\n"
  23589. " mcron-service-type\n"
  23590. " (list garbage-collector-job\n"
  23591. " updatedb-job\n"
  23592. " idutils-job))\n"
  23593. " %base-services)))\n"
  23594. msgstr ""
  23595. #. type: quotation
  23596. #: guix-git/doc/guix.texi:16017
  23597. #, fuzzy, no-wrap
  23598. #| msgid "Top"
  23599. msgid "Tip"
  23600. msgstr "Top"
  23601. #. type: quotation
  23602. #: guix-git/doc/guix.texi:16023
  23603. msgid "When providing the action of a job specification as a procedure, you should provide an explicit name for the job via the optional 3rd argument as done in the @code{updatedb-job} example above. Otherwise, the job would appear as ``Lambda function'' in the output of @command{herd schedule mcron}, which is not nearly descriptive enough!"
  23604. msgstr ""
  23605. #. type: Plain text
  23606. #: guix-git/doc/guix.texi:16030
  23607. msgid "For more complex jobs defined in Scheme where you need control over the top level, for instance to introduce a @code{use-modules} form, you can move your code to a separate program using the @code{program-file} procedure of the @code{(guix gexp)} module (@pxref{G-Expressions}). The example below illustrates that."
  23608. msgstr ""
  23609. #. type: lisp
  23610. #: guix-git/doc/guix.texi:16046
  23611. #, no-wrap
  23612. msgid ""
  23613. "(define %battery-alert-job\n"
  23614. " ;; Beep when the battery percentage falls below %MIN-LEVEL.\n"
  23615. " #~(job\n"
  23616. " '(next-minute (range 0 60 1))\n"
  23617. " #$(program-file\n"
  23618. " \"battery-alert.scm\"\n"
  23619. " (with-imported-modules (source-module-closure\n"
  23620. " '((guix build utils)))\n"
  23621. " #~(begin\n"
  23622. " (use-modules (guix build utils)\n"
  23623. " (ice-9 popen)\n"
  23624. " (ice-9 regex)\n"
  23625. " (ice-9 textual-ports)\n"
  23626. " (srfi srfi-2))\n"
  23627. "\n"
  23628. msgstr ""
  23629. #. type: lisp
  23630. #: guix-git/doc/guix.texi:16048
  23631. #, no-wrap
  23632. msgid ""
  23633. " (define %min-level 20)\n"
  23634. "\n"
  23635. msgstr ""
  23636. #. type: lisp
  23637. #: guix-git/doc/guix.texi:16059
  23638. #, no-wrap
  23639. msgid ""
  23640. " (setenv \"LC_ALL\" \"C\") ;ensure English output\n"
  23641. " (and-let* ((input-pipe (open-pipe*\n"
  23642. " OPEN_READ\n"
  23643. " #$(file-append acpi \"/bin/acpi\")))\n"
  23644. " (output (get-string-all input-pipe))\n"
  23645. " (m (string-match \"Discharging, ([0-9]+)%\" output))\n"
  23646. " (level (string->number (match:substring m 1)))\n"
  23647. " ((< level %min-level)))\n"
  23648. " (format #t \"warning: Battery level is low (~a%)~%\" level)\n"
  23649. " (invoke #$(file-append beep \"/bin/beep\") \"-r5\")))))))\n"
  23650. msgstr ""
  23651. #. type: Plain text
  23652. #: guix-git/doc/guix.texi:16064
  23653. msgid "@xref{Guile Syntax, mcron job specifications,, mcron, GNU@tie{}mcron}, for more information on mcron job specifications. Below is the reference of the mcron service."
  23654. msgstr ""
  23655. #. type: Plain text
  23656. #: guix-git/doc/guix.texi:16067
  23657. msgid "On a running system, you can use the @code{schedule} action of the service to visualize the mcron jobs that will be executed next:"
  23658. msgstr ""
  23659. #. type: example
  23660. #: guix-git/doc/guix.texi:16070
  23661. #, no-wrap
  23662. msgid "# herd schedule mcron\n"
  23663. msgstr ""
  23664. #. type: Plain text
  23665. #: guix-git/doc/guix.texi:16075
  23666. msgid "The example above lists the next five tasks that will be executed, but you can also specify the number of tasks to display:"
  23667. msgstr ""
  23668. #. type: example
  23669. #: guix-git/doc/guix.texi:16078
  23670. #, no-wrap
  23671. msgid "# herd schedule mcron 10\n"
  23672. msgstr ""
  23673. #. type: defvr
  23674. #: guix-git/doc/guix.texi:16080
  23675. #, no-wrap
  23676. msgid "{Scheme Variable} mcron-service-type"
  23677. msgstr ""
  23678. #. type: defvr
  23679. #: guix-git/doc/guix.texi:16083
  23680. msgid "This is the type of the @code{mcron} service, whose value is an @code{mcron-configuration} object."
  23681. msgstr ""
  23682. #. type: defvr
  23683. #: guix-git/doc/guix.texi:16088
  23684. msgid "This service type can be the target of a service extension that provides it additional job specifications (@pxref{Service Composition}). In other words, it is possible to define services that provide additional mcron jobs to run."
  23685. msgstr ""
  23686. #. type: deftp
  23687. #: guix-git/doc/guix.texi:16090
  23688. #, no-wrap
  23689. msgid "{Data Type} mcron-configuration"
  23690. msgstr ""
  23691. #. type: deftp
  23692. #: guix-git/doc/guix.texi:16092
  23693. msgid "Data type representing the configuration of mcron."
  23694. msgstr ""
  23695. #. type: item
  23696. #: guix-git/doc/guix.texi:16094
  23697. #, no-wrap
  23698. msgid "@code{mcron} (default: @var{mcron})"
  23699. msgstr ""
  23700. #. type: table
  23701. #: guix-git/doc/guix.texi:16096
  23702. msgid "The mcron package to use."
  23703. msgstr ""
  23704. #. type: code{#1}
  23705. #: guix-git/doc/guix.texi:16097 guix-git/doc/guix.texi:16166
  23706. #, no-wrap
  23707. msgid "jobs"
  23708. msgstr ""
  23709. #. type: table
  23710. #: guix-git/doc/guix.texi:16101
  23711. msgid "This is a list of gexps (@pxref{G-Expressions}), where each gexp corresponds to an mcron job specification (@pxref{Syntax, mcron job specifications,, mcron, GNU@tie{}mcron})."
  23712. msgstr ""
  23713. #. type: cindex
  23714. #: guix-git/doc/guix.texi:16108
  23715. #, no-wrap
  23716. msgid "rottlog"
  23717. msgstr ""
  23718. #. type: cindex
  23719. #: guix-git/doc/guix.texi:16109
  23720. #, no-wrap
  23721. msgid "log rotation"
  23722. msgstr ""
  23723. #. type: Plain text
  23724. #: guix-git/doc/guix.texi:16116
  23725. msgid "Log files such as those found in @file{/var/log} tend to grow endlessly, so it's a good idea to @dfn{rotate} them once in a while---i.e., archive their contents in separate files, possibly compressed. The @code{(gnu services admin)} module provides an interface to GNU@tie{}Rot[t]log, a log rotation tool (@pxref{Top,,, rottlog, GNU Rot[t]log Manual})."
  23726. msgstr ""
  23727. #. type: Plain text
  23728. #: guix-git/doc/guix.texi:16122
  23729. msgid "This service is part of @code{%base-services}, and thus enabled by default, with the default settings, for commonly encountered log files. The example below shows how to extend it with an additional @dfn{rotation}, should you need to do that (usually, services that produce log files already take care of that):"
  23730. msgstr ""
  23731. #. type: lisp
  23732. #: guix-git/doc/guix.texi:16126
  23733. #, no-wrap
  23734. msgid ""
  23735. "(use-modules (guix) (gnu))\n"
  23736. "(use-service-modules admin)\n"
  23737. "\n"
  23738. msgstr ""
  23739. #. type: lisp
  23740. #: guix-git/doc/guix.texi:16130
  23741. #, no-wrap
  23742. msgid ""
  23743. "(define my-log-files\n"
  23744. " ;; Log files that I want to rotate.\n"
  23745. " '(\"/var/log/something.log\" \"/var/log/another.log\"))\n"
  23746. "\n"
  23747. msgstr ""
  23748. #. type: lisp
  23749. #: guix-git/doc/guix.texi:16139
  23750. #, no-wrap
  23751. msgid ""
  23752. "(operating-system\n"
  23753. " ;; @dots{}\n"
  23754. " (services (cons (simple-service 'rotate-my-stuff\n"
  23755. " rottlog-service-type\n"
  23756. " (list (log-rotation\n"
  23757. " (frequency 'daily)\n"
  23758. " (files my-log-files))))\n"
  23759. " %base-services)))\n"
  23760. msgstr ""
  23761. #. type: defvr
  23762. #: guix-git/doc/guix.texi:16141
  23763. #, no-wrap
  23764. msgid "{Scheme Variable} rottlog-service-type"
  23765. msgstr ""
  23766. #. type: defvr
  23767. #: guix-git/doc/guix.texi:16144
  23768. msgid "This is the type of the Rottlog service, whose value is a @code{rottlog-configuration} object."
  23769. msgstr ""
  23770. #. type: defvr
  23771. #: guix-git/doc/guix.texi:16147
  23772. msgid "Other services can extend this one with new @code{log-rotation} objects (see below), thereby augmenting the set of files to be rotated."
  23773. msgstr ""
  23774. #. type: defvr
  23775. #: guix-git/doc/guix.texi:16150
  23776. msgid "This service type can define mcron jobs (@pxref{Scheduled Job Execution}) to run the rottlog service."
  23777. msgstr ""
  23778. #. type: deftp
  23779. #: guix-git/doc/guix.texi:16152
  23780. #, no-wrap
  23781. msgid "{Data Type} rottlog-configuration"
  23782. msgstr ""
  23783. #. type: deftp
  23784. #: guix-git/doc/guix.texi:16154
  23785. msgid "Data type representing the configuration of rottlog."
  23786. msgstr ""
  23787. #. type: item
  23788. #: guix-git/doc/guix.texi:16156
  23789. #, no-wrap
  23790. msgid "@code{rottlog} (default: @code{rottlog})"
  23791. msgstr ""
  23792. #. type: table
  23793. #: guix-git/doc/guix.texi:16158
  23794. msgid "The Rottlog package to use."
  23795. msgstr ""
  23796. #. type: item
  23797. #: guix-git/doc/guix.texi:16159
  23798. #, no-wrap
  23799. msgid "@code{rc-file} (default: @code{(file-append rottlog \"/etc/rc\")})"
  23800. msgstr ""
  23801. #. type: table
  23802. #: guix-git/doc/guix.texi:16162
  23803. msgid "The Rottlog configuration file to use (@pxref{Mandatory RC Variables,,, rottlog, GNU Rot[t]log Manual})."
  23804. msgstr ""
  23805. #. type: item
  23806. #: guix-git/doc/guix.texi:16163
  23807. #, no-wrap
  23808. msgid "@code{rotations} (default: @code{%default-rotations})"
  23809. msgstr ""
  23810. #. type: table
  23811. #: guix-git/doc/guix.texi:16165
  23812. msgid "A list of @code{log-rotation} objects as defined below."
  23813. msgstr ""
  23814. #. type: table
  23815. #: guix-git/doc/guix.texi:16169
  23816. msgid "This is a list of gexps where each gexp corresponds to an mcron job specification (@pxref{Scheduled Job Execution})."
  23817. msgstr ""
  23818. #. type: deftp
  23819. #: guix-git/doc/guix.texi:16172
  23820. #, no-wrap
  23821. msgid "{Data Type} log-rotation"
  23822. msgstr ""
  23823. #. type: deftp
  23824. #: guix-git/doc/guix.texi:16174
  23825. msgid "Data type representing the rotation of a group of log files."
  23826. msgstr ""
  23827. #. type: deftp
  23828. #: guix-git/doc/guix.texi:16178
  23829. msgid "Taking an example from the Rottlog manual (@pxref{Period Related File Examples,,, rottlog, GNU Rot[t]log Manual}), a log rotation might be defined like this:"
  23830. msgstr ""
  23831. #. type: lisp
  23832. #: guix-git/doc/guix.texi:16187
  23833. #, no-wrap
  23834. msgid ""
  23835. "(log-rotation\n"
  23836. " (frequency 'daily)\n"
  23837. " (files '(\"/var/log/apache/*\"))\n"
  23838. " (options '(\"storedir apache-archives\"\n"
  23839. " \"rotate 6\"\n"
  23840. " \"notifempty\"\n"
  23841. " \"nocompress\")))\n"
  23842. msgstr ""
  23843. #. type: deftp
  23844. #: guix-git/doc/guix.texi:16190
  23845. msgid "The list of fields is as follows:"
  23846. msgstr ""
  23847. #. type: item
  23848. #: guix-git/doc/guix.texi:16192
  23849. #, no-wrap
  23850. msgid "@code{frequency} (default: @code{'weekly})"
  23851. msgstr ""
  23852. #. type: table
  23853. #: guix-git/doc/guix.texi:16194
  23854. msgid "The log rotation frequency, a symbol."
  23855. msgstr ""
  23856. #. type: code{#1}
  23857. #: guix-git/doc/guix.texi:16195
  23858. #, no-wrap
  23859. msgid "files"
  23860. msgstr ""
  23861. #. type: table
  23862. #: guix-git/doc/guix.texi:16197
  23863. msgid "The list of files or file glob patterns to rotate."
  23864. msgstr ""
  23865. #. type: item
  23866. #: guix-git/doc/guix.texi:16198
  23867. #, no-wrap
  23868. msgid "@code{options} (default: @code{'()})"
  23869. msgstr ""
  23870. #. type: table
  23871. #: guix-git/doc/guix.texi:16201
  23872. msgid "The list of rottlog options for this rotation (@pxref{Configuration parameters,,, rottlog, GNU Rot[t]lg Manual})."
  23873. msgstr ""
  23874. #. type: item
  23875. #: guix-git/doc/guix.texi:16202
  23876. #, no-wrap
  23877. msgid "@code{post-rotate} (default: @code{#f})"
  23878. msgstr ""
  23879. #. type: table
  23880. #: guix-git/doc/guix.texi:16204
  23881. msgid "Either @code{#f} or a gexp to execute once the rotation has completed."
  23882. msgstr ""
  23883. #. type: defvr
  23884. #: guix-git/doc/guix.texi:16207
  23885. #, no-wrap
  23886. msgid "{Scheme Variable} %default-rotations"
  23887. msgstr ""
  23888. #. type: defvr
  23889. #: guix-git/doc/guix.texi:16210
  23890. msgid "Specifies weekly rotation of @code{%rotated-files} and of @file{/var/log/guix-daemon.log}."
  23891. msgstr ""
  23892. #. type: defvr
  23893. #: guix-git/doc/guix.texi:16212
  23894. #, no-wrap
  23895. msgid "{Scheme Variable} %rotated-files"
  23896. msgstr ""
  23897. #. type: defvr
  23898. #: guix-git/doc/guix.texi:16216
  23899. msgid "The list of syslog-controlled files to be rotated. By default it is: @code{'(\"/var/log/messages\" \"/var/log/secure\" \"/var/log/debug\" \\ \"/var/log/maillog\")}."
  23900. msgstr ""
  23901. #. type: Plain text
  23902. #: guix-git/doc/guix.texi:16223
  23903. msgid "The @code{(gnu services networking)} module provides services to configure the network interface."
  23904. msgstr ""
  23905. #. type: cindex
  23906. #: guix-git/doc/guix.texi:16224
  23907. #, no-wrap
  23908. msgid "DHCP, networking service"
  23909. msgstr ""
  23910. #. type: defvr
  23911. #: guix-git/doc/guix.texi:16225
  23912. #, no-wrap
  23913. msgid "{Scheme Variable} dhcp-client-service-type"
  23914. msgstr ""
  23915. #. type: defvr
  23916. #: guix-git/doc/guix.texi:16229
  23917. msgid "This is the type of services that run @var{dhcp}, a Dynamic Host Configuration Protocol (DHCP) client, on all the non-loopback network interfaces. Its value is the DHCP client package to use, @code{isc-dhcp} by default."
  23918. msgstr ""
  23919. #. type: deffn
  23920. #: guix-git/doc/guix.texi:16231
  23921. #, no-wrap
  23922. msgid "{Scheme Procedure} dhcpd-service-type"
  23923. msgstr ""
  23924. #. type: deffn
  23925. #: guix-git/doc/guix.texi:16235
  23926. msgid "This type defines a service that runs a DHCP daemon. To create a service of this type, you must supply a @code{<dhcpd-configuration>}. For example:"
  23927. msgstr ""
  23928. #. type: lisp
  23929. #: guix-git/doc/guix.texi:16241
  23930. #, no-wrap
  23931. msgid ""
  23932. "(service dhcpd-service-type\n"
  23933. " (dhcpd-configuration\n"
  23934. " (config-file (local-file \"my-dhcpd.conf\"))\n"
  23935. " (interfaces '(\"enp0s25\"))))\n"
  23936. msgstr ""
  23937. #. type: deftp
  23938. #: guix-git/doc/guix.texi:16244
  23939. #, no-wrap
  23940. msgid "{Data Type} dhcpd-configuration"
  23941. msgstr ""
  23942. #. type: item
  23943. #: guix-git/doc/guix.texi:16246
  23944. #, no-wrap
  23945. msgid "@code{package} (default: @code{isc-dhcp})"
  23946. msgstr ""
  23947. #. type: table
  23948. #: guix-git/doc/guix.texi:16251
  23949. msgid "The package that provides the DHCP daemon. This package is expected to provide the daemon at @file{sbin/dhcpd} relative to its output directory. The default package is the @uref{https://www.isc.org/products/DHCP, ISC's DHCP server}."
  23950. msgstr ""
  23951. #. type: item
  23952. #: guix-git/doc/guix.texi:16251 guix-git/doc/guix.texi:16507
  23953. #: guix-git/doc/guix.texi:21722
  23954. #, no-wrap
  23955. msgid "@code{config-file} (default: @code{#f})"
  23956. msgstr ""
  23957. #. type: table
  23958. #: guix-git/doc/guix.texi:16256
  23959. msgid "The configuration file to use. This is required. It will be passed to @code{dhcpd} via its @code{-cf} option. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects}). See @code{man dhcpd.conf} for details on the configuration file syntax."
  23960. msgstr ""
  23961. #. type: item
  23962. #: guix-git/doc/guix.texi:16256
  23963. #, no-wrap
  23964. msgid "@code{version} (default: @code{\"4\"})"
  23965. msgstr ""
  23966. #. type: table
  23967. #: guix-git/doc/guix.texi:16261
  23968. msgid "The DHCP version to use. The ISC DHCP server supports the values ``4'', ``6'', and ``4o6''. These correspond to the @code{dhcpd} program options @code{-4}, @code{-6}, and @code{-4o6}. See @code{man dhcpd} for details."
  23969. msgstr ""
  23970. #. type: item
  23971. #: guix-git/doc/guix.texi:16261
  23972. #, no-wrap
  23973. msgid "@code{run-directory} (default: @code{\"/run/dhcpd\"})"
  23974. msgstr ""
  23975. #. type: table
  23976. #: guix-git/doc/guix.texi:16264
  23977. msgid "The run directory to use. At service activation time, this directory will be created if it does not exist."
  23978. msgstr ""
  23979. #. type: item
  23980. #: guix-git/doc/guix.texi:16264
  23981. #, no-wrap
  23982. msgid "@code{pid-file} (default: @code{\"/run/dhcpd/dhcpd.pid\"})"
  23983. msgstr ""
  23984. #. type: table
  23985. #: guix-git/doc/guix.texi:16267
  23986. msgid "The PID file to use. This corresponds to the @code{-pf} option of @code{dhcpd}. See @code{man dhcpd} for details."
  23987. msgstr ""
  23988. #. type: item
  23989. #: guix-git/doc/guix.texi:16267
  23990. #, no-wrap
  23991. msgid "@code{interfaces} (default: @code{'()})"
  23992. msgstr ""
  23993. #. type: table
  23994. #: guix-git/doc/guix.texi:16273
  23995. msgid "The names of the network interfaces on which dhcpd should listen for broadcasts. If this list is not empty, then its elements (which must be strings) will be appended to the @code{dhcpd} invocation when starting the daemon. It may not be necessary to explicitly specify any interfaces here; see @code{man dhcpd} for details."
  23996. msgstr ""
  23997. #. type: defvr
  23998. #: guix-git/doc/guix.texi:16276
  23999. #, no-wrap
  24000. msgid "{Scheme Variable} static-networking-service-type"
  24001. msgstr ""
  24002. #. type: defvr
  24003. #: guix-git/doc/guix.texi:16279
  24004. msgid "This is the type for statically-configured network interfaces."
  24005. msgstr ""
  24006. #. type: deffn
  24007. #: guix-git/doc/guix.texi:16281
  24008. #, no-wrap
  24009. msgid "{Scheme Procedure} static-networking-service @var{interface} @var{ip} @"
  24010. msgstr ""
  24011. #. type: deffn
  24012. #: guix-git/doc/guix.texi:16289
  24013. msgid "[#:netmask #f] [#:gateway #f] [#:name-servers @code{'()}] @ [#:requirement @code{'(udev)}] Return a service that starts @var{interface} with address @var{ip}. If @var{netmask} is true, use it as the network mask. If @var{gateway} is true, it must be a string specifying the default network gateway. @var{requirement} can be used to declare a dependency on another service before configuring the interface."
  24014. msgstr ""
  24015. #. type: deffn
  24016. #: guix-git/doc/guix.texi:16294
  24017. msgid "This procedure can be called several times, one for each network interface of interest. Behind the scenes what it does is extend @code{static-networking-service-type} with additional network interfaces to handle."
  24018. msgstr ""
  24019. #. type: defvr
  24020. #: guix-git/doc/guix.texi:16296 guix-git/doc/guix.texi:29568
  24021. msgid "For example:"
  24022. msgstr ""
  24023. #. type: lisp
  24024. #: guix-git/doc/guix.texi:16301
  24025. #, no-wrap
  24026. msgid ""
  24027. "(static-networking-service \"eno1\" \"192.168.1.82\"\n"
  24028. " #:gateway \"192.168.1.2\"\n"
  24029. " #:name-servers '(\"192.168.1.2\"))\n"
  24030. msgstr ""
  24031. #. type: cindex
  24032. #: guix-git/doc/guix.texi:16304
  24033. #, no-wrap
  24034. msgid "wicd"
  24035. msgstr ""
  24036. #. type: cindex
  24037. #: guix-git/doc/guix.texi:16307
  24038. #, no-wrap
  24039. msgid "network management"
  24040. msgstr ""
  24041. #. type: deffn
  24042. #: guix-git/doc/guix.texi:16308
  24043. #, no-wrap
  24044. msgid "{Scheme Procedure} wicd-service [#:wicd @var{wicd}]"
  24045. msgstr ""
  24046. #. type: deffn
  24047. #: guix-git/doc/guix.texi:16311
  24048. msgid "Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a network management daemon that aims to simplify wired and wireless networking."
  24049. msgstr ""
  24050. #. type: deffn
  24051. #: guix-git/doc/guix.texi:16316
  24052. msgid "This service adds the @var{wicd} package to the global profile, providing several commands to interact with the daemon and configure networking: @command{wicd-client}, a graphical user interface, and the @command{wicd-cli} and @command{wicd-curses} user interfaces."
  24053. msgstr ""
  24054. #. type: cindex
  24055. #: guix-git/doc/guix.texi:16318
  24056. #, no-wrap
  24057. msgid "ModemManager"
  24058. msgstr ""
  24059. #. type: defvr
  24060. #: guix-git/doc/guix.texi:16320
  24061. #, no-wrap
  24062. msgid "{Scheme Variable} modem-manager-service-type"
  24063. msgstr ""
  24064. #. type: defvr
  24065. #: guix-git/doc/guix.texi:16325
  24066. msgid "This is the service type for the @uref{https://wiki.gnome.org/Projects/ModemManager, ModemManager} service. The value for this service type is a @code{modem-manager-configuration} record."
  24067. msgstr ""
  24068. #. type: defvr
  24069. #: guix-git/doc/guix.texi:16328 guix-git/doc/guix.texi:16357
  24070. #: guix-git/doc/guix.texi:16389
  24071. msgid "This service is part of @code{%desktop-services} (@pxref{Desktop Services})."
  24072. msgstr ""
  24073. #. type: deftp
  24074. #: guix-git/doc/guix.texi:16330
  24075. #, no-wrap
  24076. msgid "{Data Type} modem-manager-configuration"
  24077. msgstr ""
  24078. #. type: deftp
  24079. #: guix-git/doc/guix.texi:16332
  24080. msgid "Data type representing the configuration of ModemManager."
  24081. msgstr ""
  24082. #. type: item
  24083. #: guix-git/doc/guix.texi:16334
  24084. #, no-wrap
  24085. msgid "@code{modem-manager} (default: @code{modem-manager})"
  24086. msgstr ""
  24087. #. type: table
  24088. #: guix-git/doc/guix.texi:16336
  24089. msgid "The ModemManager package to use."
  24090. msgstr ""
  24091. #. type: cindex
  24092. #: guix-git/doc/guix.texi:16340
  24093. #, no-wrap
  24094. msgid "USB_ModeSwitch"
  24095. msgstr ""
  24096. #. type: cindex
  24097. #: guix-git/doc/guix.texi:16341
  24098. #, no-wrap
  24099. msgid "Modeswitching"
  24100. msgstr ""
  24101. #. type: defvr
  24102. #: guix-git/doc/guix.texi:16343
  24103. #, no-wrap
  24104. msgid "{Scheme Variable} usb-modeswitch-service-type"
  24105. msgstr ""
  24106. #. type: defvr
  24107. #: guix-git/doc/guix.texi:16348
  24108. msgid "This is the service type for the @uref{https://www.draisberghof.de/usb_modeswitch/, USB_ModeSwitch} service. The value for this service type is a @code{usb-modeswitch-configuration} record."
  24109. msgstr ""
  24110. #. type: defvr
  24111. #: guix-git/doc/guix.texi:16354
  24112. msgid "When plugged in, some USB modems (and other USB devices) initially present themselves as a read-only storage medium and not as a modem. They need to be @dfn{modeswitched} before they are usable. The USB_ModeSwitch service type installs udev rules to automatically modeswitch these devices when they are plugged in."
  24113. msgstr ""
  24114. #. type: deftp
  24115. #: guix-git/doc/guix.texi:16359
  24116. #, no-wrap
  24117. msgid "{Data Type} usb-modeswitch-configuration"
  24118. msgstr ""
  24119. #. type: deftp
  24120. #: guix-git/doc/guix.texi:16361
  24121. msgid "Data type representing the configuration of USB_ModeSwitch."
  24122. msgstr ""
  24123. #. type: item
  24124. #: guix-git/doc/guix.texi:16363
  24125. #, fuzzy, no-wrap
  24126. msgid "@code{usb-modeswitch} (default: @code{usb-modeswitch})"
  24127. msgstr "@code{mate}(默认值:@code{mate})"
  24128. #. type: table
  24129. #: guix-git/doc/guix.texi:16365
  24130. msgid "The USB_ModeSwitch package providing the binaries for modeswitching."
  24131. msgstr ""
  24132. #. type: item
  24133. #: guix-git/doc/guix.texi:16366
  24134. #, fuzzy, no-wrap
  24135. msgid "@code{usb-modeswitch-data} (default: @code{usb-modeswitch-data})"
  24136. msgstr "@code{mate}(默认值:@code{mate})"
  24137. #. type: table
  24138. #: guix-git/doc/guix.texi:16369
  24139. msgid "The package providing the device data and udev rules file used by USB_ModeSwitch."
  24140. msgstr ""
  24141. #. type: item
  24142. #: guix-git/doc/guix.texi:16370
  24143. #, no-wrap
  24144. msgid "@code{config-file} (default: @code{#~(string-append #$usb-modeswitch:dispatcher \"/etc/usb_modeswitch.conf\")})"
  24145. msgstr ""
  24146. #. type: table
  24147. #: guix-git/doc/guix.texi:16375
  24148. msgid "Which config file to use for the USB_ModeSwitch dispatcher. By default the config file shipped with USB_ModeSwitch is used which disables logging to @file{/var/log} among other default settings. If set to @code{#f}, no config file is used."
  24149. msgstr ""
  24150. #. type: cindex
  24151. #: guix-git/doc/guix.texi:16379
  24152. #, no-wrap
  24153. msgid "NetworkManager"
  24154. msgstr ""
  24155. #. type: defvr
  24156. #: guix-git/doc/guix.texi:16381
  24157. #, no-wrap
  24158. msgid "{Scheme Variable} network-manager-service-type"
  24159. msgstr ""
  24160. #. type: defvr
  24161. #: guix-git/doc/guix.texi:16386
  24162. msgid "This is the service type for the @uref{https://wiki.gnome.org/Projects/NetworkManager, NetworkManager} service. The value for this service type is a @code{network-manager-configuration} record."
  24163. msgstr ""
  24164. #. type: deftp
  24165. #: guix-git/doc/guix.texi:16391
  24166. #, no-wrap
  24167. msgid "{Data Type} network-manager-configuration"
  24168. msgstr ""
  24169. #. type: deftp
  24170. #: guix-git/doc/guix.texi:16393
  24171. msgid "Data type representing the configuration of NetworkManager."
  24172. msgstr ""
  24173. #. type: item
  24174. #: guix-git/doc/guix.texi:16395
  24175. #, no-wrap
  24176. msgid "@code{network-manager} (default: @code{network-manager})"
  24177. msgstr ""
  24178. #. type: table
  24179. #: guix-git/doc/guix.texi:16397
  24180. msgid "The NetworkManager package to use."
  24181. msgstr ""
  24182. #. type: item
  24183. #: guix-git/doc/guix.texi:16398
  24184. #, no-wrap
  24185. msgid "@code{dns} (default: @code{\"default\"})"
  24186. msgstr ""
  24187. #. type: table
  24188. #: guix-git/doc/guix.texi:16401
  24189. msgid "Processing mode for DNS, which affects how NetworkManager uses the @code{resolv.conf} configuration file."
  24190. msgstr ""
  24191. #. type: table
  24192. #: guix-git/doc/guix.texi:16406
  24193. msgid "NetworkManager will update @code{resolv.conf} to reflect the nameservers provided by currently active connections."
  24194. msgstr ""
  24195. #. type: item
  24196. #: guix-git/doc/guix.texi:16407
  24197. #, no-wrap
  24198. msgid "dnsmasq"
  24199. msgstr ""
  24200. #. type: table
  24201. #: guix-git/doc/guix.texi:16411
  24202. msgid "NetworkManager will run @code{dnsmasq} as a local caching nameserver, using a @dfn{conditional forwarding} configuration if you are connected to a VPN, and then update @code{resolv.conf} to point to the local nameserver."
  24203. msgstr ""
  24204. #. type: table
  24205. #: guix-git/doc/guix.texi:16417
  24206. msgid "With this setting, you can share your network connection. For example when you want to share your network connection to another laptop @i{via} an Ethernet cable, you can open @command{nm-connection-editor} and configure the Wired connection's method for IPv4 and IPv6 to be ``Shared to other computers'' and reestablish the connection (or reboot)."
  24207. msgstr ""
  24208. #. type: table
  24209. #: guix-git/doc/guix.texi:16424
  24210. msgid "You can also set up a @dfn{host-to-guest connection} to QEMU VMs (@pxref{Installing Guix in a VM}). With a host-to-guest connection, you can e.g.@: access a Web server running on the VM (@pxref{Web Services}) from a Web browser on your host system, or connect to the VM @i{via} SSH (@pxref{Networking Services, @code{openssh-service-type}}). To set up a host-to-guest connection, run this command once:"
  24211. msgstr ""
  24212. #. type: example
  24213. #: guix-git/doc/guix.texi:16431
  24214. #, no-wrap
  24215. msgid ""
  24216. "nmcli connection add type tun \\\n"
  24217. " connection.interface-name tap0 \\\n"
  24218. " tun.mode tap tun.owner $(id -u) \\\n"
  24219. " ipv4.method shared \\\n"
  24220. " ipv4.addresses 172.28.112.1/24\n"
  24221. msgstr ""
  24222. #. type: table
  24223. #: guix-git/doc/guix.texi:16436
  24224. msgid "Then each time you launch your QEMU VM (@pxref{Running Guix in a VM}), pass @option{-nic tap,ifname=tap0,script=no,downscript=no} to @command{qemu-system-...}."
  24225. msgstr ""
  24226. #. type: table
  24227. #: guix-git/doc/guix.texi:16439
  24228. msgid "NetworkManager will not modify @code{resolv.conf}."
  24229. msgstr ""
  24230. #. type: item
  24231. #: guix-git/doc/guix.texi:16441
  24232. #, no-wrap
  24233. msgid "@code{vpn-plugins} (default: @code{'()})"
  24234. msgstr ""
  24235. #. type: table
  24236. #: guix-git/doc/guix.texi:16445
  24237. msgid "This is the list of available plugins for virtual private networks (VPNs). An example of this is the @code{network-manager-openvpn} package, which allows NetworkManager to manage VPNs @i{via} OpenVPN."
  24238. msgstr ""
  24239. #. type: cindex
  24240. #: guix-git/doc/guix.texi:16449
  24241. #, no-wrap
  24242. msgid "Connman"
  24243. msgstr ""
  24244. #. type: deffn
  24245. #: guix-git/doc/guix.texi:16450
  24246. #, no-wrap
  24247. msgid "{Scheme Variable} connman-service-type"
  24248. msgstr ""
  24249. #. type: deffn
  24250. #: guix-git/doc/guix.texi:16453
  24251. msgid "This is the service type to run @url{https://01.org/connman,Connman}, a network connection manager."
  24252. msgstr ""
  24253. #. type: deffn
  24254. #: guix-git/doc/guix.texi:16456
  24255. msgid "Its value must be an @code{connman-configuration} record as in this example:"
  24256. msgstr ""
  24257. #. type: lisp
  24258. #: guix-git/doc/guix.texi:16461
  24259. #, no-wrap
  24260. msgid ""
  24261. "(service connman-service-type\n"
  24262. " (connman-configuration\n"
  24263. " (disable-vpn? #t)))\n"
  24264. msgstr ""
  24265. #. type: deffn
  24266. #: guix-git/doc/guix.texi:16464
  24267. msgid "See below for details about @code{connman-configuration}."
  24268. msgstr ""
  24269. #. type: deftp
  24270. #: guix-git/doc/guix.texi:16466
  24271. #, no-wrap
  24272. msgid "{Data Type} connman-configuration"
  24273. msgstr ""
  24274. #. type: deftp
  24275. #: guix-git/doc/guix.texi:16468
  24276. msgid "Data Type representing the configuration of connman."
  24277. msgstr ""
  24278. #. type: item
  24279. #: guix-git/doc/guix.texi:16470
  24280. #, no-wrap
  24281. msgid "@code{connman} (default: @var{connman})"
  24282. msgstr ""
  24283. #. type: table
  24284. #: guix-git/doc/guix.texi:16472
  24285. msgid "The connman package to use."
  24286. msgstr ""
  24287. #. type: item
  24288. #: guix-git/doc/guix.texi:16473
  24289. #, no-wrap
  24290. msgid "@code{disable-vpn?} (default: @code{#f})"
  24291. msgstr ""
  24292. #. type: table
  24293. #: guix-git/doc/guix.texi:16475
  24294. msgid "When true, disable connman's vpn plugin."
  24295. msgstr ""
  24296. #. type: cindex
  24297. #: guix-git/doc/guix.texi:16478
  24298. #, no-wrap
  24299. msgid "WPA Supplicant"
  24300. msgstr ""
  24301. #. type: defvr
  24302. #: guix-git/doc/guix.texi:16479
  24303. #, no-wrap
  24304. msgid "{Scheme Variable} wpa-supplicant-service-type"
  24305. msgstr ""
  24306. #. type: defvr
  24307. #: guix-git/doc/guix.texi:16483
  24308. msgid "This is the service type to run @url{https://w1.fi/wpa_supplicant/,WPA supplicant}, an authentication daemon required to authenticate against encrypted WiFi or ethernet networks."
  24309. msgstr ""
  24310. #. type: deftp
  24311. #: guix-git/doc/guix.texi:16485
  24312. #, no-wrap
  24313. msgid "{Data Type} wpa-supplicant-configuration"
  24314. msgstr ""
  24315. #. type: deftp
  24316. #: guix-git/doc/guix.texi:16487
  24317. msgid "Data type representing the configuration of WPA Supplicant."
  24318. msgstr ""
  24319. #. type: deftp
  24320. #: guix-git/doc/guix.texi:16489 guix-git/doc/guix.texi:31581
  24321. msgid "It takes the following parameters:"
  24322. msgstr ""
  24323. #. type: item
  24324. #: guix-git/doc/guix.texi:16491
  24325. #, no-wrap
  24326. msgid "@code{wpa-supplicant} (default: @code{wpa-supplicant})"
  24327. msgstr ""
  24328. #. type: table
  24329. #: guix-git/doc/guix.texi:16493
  24330. msgid "The WPA Supplicant package to use."
  24331. msgstr ""
  24332. #. type: item
  24333. #: guix-git/doc/guix.texi:16494
  24334. #, no-wrap
  24335. msgid "@code{requirement} (default: @code{'(user-processes loopback syslogd)}"
  24336. msgstr ""
  24337. #. type: table
  24338. #: guix-git/doc/guix.texi:16496
  24339. msgid "List of services that should be started before WPA Supplicant starts."
  24340. msgstr ""
  24341. #. type: item
  24342. #: guix-git/doc/guix.texi:16497
  24343. #, no-wrap
  24344. msgid "@code{dbus?} (default: @code{#t})"
  24345. msgstr ""
  24346. #. type: table
  24347. #: guix-git/doc/guix.texi:16499
  24348. msgid "Whether to listen for requests on D-Bus."
  24349. msgstr ""
  24350. #. type: item
  24351. #: guix-git/doc/guix.texi:16500
  24352. #, no-wrap
  24353. msgid "@code{pid-file} (default: @code{\"/var/run/wpa_supplicant.pid\"})"
  24354. msgstr ""
  24355. #. type: table
  24356. #: guix-git/doc/guix.texi:16502
  24357. msgid "Where to store the PID file."
  24358. msgstr ""
  24359. #. type: item
  24360. #: guix-git/doc/guix.texi:16503 guix-git/doc/guix.texi:30026
  24361. #: guix-git/doc/guix.texi:30168
  24362. #, no-wrap
  24363. msgid "@code{interface} (default: @code{#f})"
  24364. msgstr ""
  24365. #. type: table
  24366. #: guix-git/doc/guix.texi:16506
  24367. msgid "If this is set, it must specify the name of a network interface that WPA supplicant will control."
  24368. msgstr ""
  24369. #. type: table
  24370. #: guix-git/doc/guix.texi:16509
  24371. msgid "Optional configuration file to use."
  24372. msgstr ""
  24373. #. type: table
  24374. #: guix-git/doc/guix.texi:16512
  24375. msgid "List of additional command-line arguments to pass to the daemon."
  24376. msgstr ""
  24377. #. type: cindex
  24378. #: guix-git/doc/guix.texi:16515
  24379. #, no-wrap
  24380. msgid "hostapd service, for Wi-Fi access points"
  24381. msgstr ""
  24382. #. type: cindex
  24383. #: guix-git/doc/guix.texi:16516
  24384. #, no-wrap
  24385. msgid "Wi-Fi access points, hostapd service"
  24386. msgstr ""
  24387. #. type: defvr
  24388. #: guix-git/doc/guix.texi:16517
  24389. #, no-wrap
  24390. msgid "{Scheme Variable} hostapd-service-type"
  24391. msgstr ""
  24392. #. type: defvr
  24393. #: guix-git/doc/guix.texi:16522
  24394. msgid "This is the service type to run the @uref{https://w1.fi/hostapd/, hostapd} daemon to set up WiFi (IEEE 802.11) access points and authentication servers. Its associated value must be a @code{hostapd-configuration} as shown below:"
  24395. msgstr ""
  24396. #. type: lisp
  24397. #: guix-git/doc/guix.texi:16530
  24398. #, no-wrap
  24399. msgid ""
  24400. ";; Use wlan1 to run the access point for \"My Network\".\n"
  24401. "(service hostapd-service-type\n"
  24402. " (hostapd-configuration\n"
  24403. " (interface \"wlan1\")\n"
  24404. " (ssid \"My Network\")\n"
  24405. " (channel 12)))\n"
  24406. msgstr ""
  24407. #. type: deftp
  24408. #: guix-git/doc/guix.texi:16533
  24409. #, no-wrap
  24410. msgid "{Data Type} hostapd-configuration"
  24411. msgstr ""
  24412. #. type: deftp
  24413. #: guix-git/doc/guix.texi:16536
  24414. msgid "This data type represents the configuration of the hostapd service, with the following fields:"
  24415. msgstr ""
  24416. #. type: item
  24417. #: guix-git/doc/guix.texi:16538
  24418. #, fuzzy, no-wrap
  24419. msgid "@code{package} (default: @code{hostapd})"
  24420. msgstr "@code{mate}(默认值:@code{mate})"
  24421. #. type: table
  24422. #: guix-git/doc/guix.texi:16540
  24423. #, fuzzy
  24424. msgid "The hostapd package to use."
  24425. msgstr "软件包数据类型。"
  24426. #. type: item
  24427. #: guix-git/doc/guix.texi:16541
  24428. #, fuzzy, no-wrap
  24429. msgid "@code{interface} (default: @code{\"wlan0\"})"
  24430. msgstr "@code{display}(默认值:@code{\":0\"})"
  24431. #. type: table
  24432. #: guix-git/doc/guix.texi:16543
  24433. msgid "The network interface to run the WiFi access point."
  24434. msgstr ""
  24435. #. type: code{#1}
  24436. #: guix-git/doc/guix.texi:16544
  24437. #, no-wrap
  24438. msgid "ssid"
  24439. msgstr ""
  24440. #. type: table
  24441. #: guix-git/doc/guix.texi:16547
  24442. msgid "The SSID (@dfn{service set identifier}), a string that identifies this network."
  24443. msgstr ""
  24444. #. type: item
  24445. #: guix-git/doc/guix.texi:16548
  24446. #, fuzzy, no-wrap
  24447. msgid "@code{broadcast-ssid?} (default: @code{#t})"
  24448. msgstr "@code{mate}(默认值:@code{mate})"
  24449. #. type: table
  24450. #: guix-git/doc/guix.texi:16550
  24451. msgid "Whether to broadcast this SSID."
  24452. msgstr ""
  24453. #. type: item
  24454. #: guix-git/doc/guix.texi:16551
  24455. #, fuzzy, no-wrap
  24456. msgid "@code{channel} (default: @code{1})"
  24457. msgstr "@code{challenge}(默认值:@code{#f})"
  24458. #. type: table
  24459. #: guix-git/doc/guix.texi:16553
  24460. msgid "The WiFi channel to use."
  24461. msgstr ""
  24462. #. type: item
  24463. #: guix-git/doc/guix.texi:16554
  24464. #, fuzzy, no-wrap
  24465. msgid "@code{driver} (default: @code{\"nl80211\"})"
  24466. msgstr "@code{display}(默认值:@code{\":0\"})"
  24467. #. type: table
  24468. #: guix-git/doc/guix.texi:16558
  24469. msgid "The driver interface type. @code{\"nl80211\"} is used with all Linux mac80211 drivers. Use @code{\"none\"} if building hostapd as a standalone RADIUS server that does # not control any wireless/wired driver."
  24470. msgstr ""
  24471. #. type: item
  24472. #: guix-git/doc/guix.texi:16559 guix-git/doc/guix.texi:22571
  24473. #: guix-git/doc/guix.texi:25649
  24474. #, no-wrap
  24475. msgid "@code{extra-settings} (default: @code{\"\"})"
  24476. msgstr ""
  24477. #. type: table
  24478. #: guix-git/doc/guix.texi:16563
  24479. msgid "Extra settings to append as-is to the hostapd configuration file. See @uref{https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf} for the configuration file reference."
  24480. msgstr ""
  24481. #. type: defvr
  24482. #: guix-git/doc/guix.texi:16566
  24483. #, no-wrap
  24484. msgid "{Scheme Variable} simulated-wifi-service-type"
  24485. msgstr ""
  24486. #. type: defvr
  24487. #: guix-git/doc/guix.texi:16573
  24488. msgid "This is the type of a service to simulate WiFi networking, which can be useful in virtual machines for testing purposes. The service loads the Linux kernel @uref{https://www.kernel.org/doc/html/latest/networking/mac80211_hwsim/mac80211_hwsim.html, @code{mac80211_hwsim} module} and starts hostapd to create a pseudo WiFi network that can be seen on @code{wlan0}, by default."
  24489. msgstr ""
  24490. #. type: defvr
  24491. #: guix-git/doc/guix.texi:16575
  24492. msgid "The service's value is a @code{hostapd-configuration} record."
  24493. msgstr ""
  24494. #. type: cindex
  24495. #: guix-git/doc/guix.texi:16577
  24496. #, no-wrap
  24497. msgid "iptables"
  24498. msgstr ""
  24499. #. type: defvr
  24500. #: guix-git/doc/guix.texi:16578
  24501. #, no-wrap
  24502. msgid "{Scheme Variable} iptables-service-type"
  24503. msgstr ""
  24504. #. type: defvr
  24505. #: guix-git/doc/guix.texi:16584
  24506. msgid "This is the service type to set up an iptables configuration. iptables is a packet filtering framework supported by the Linux kernel. This service supports configuring iptables for both IPv4 and IPv6. A simple example configuration rejecting all incoming connections except those to the ssh port 22 is shown below."
  24507. msgstr ""
  24508. #. type: lisp
  24509. #: guix-git/doc/guix.texi:16606
  24510. #, no-wrap
  24511. msgid ""
  24512. "(service iptables-service-type\n"
  24513. " (iptables-configuration\n"
  24514. " (ipv4-rules (plain-file \"iptables.rules\" \"*filter\n"
  24515. ":INPUT ACCEPT\n"
  24516. ":FORWARD ACCEPT\n"
  24517. ":OUTPUT ACCEPT\n"
  24518. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  24519. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  24520. "-A INPUT -j REJECT --reject-with icmp-port-unreachable\n"
  24521. "COMMIT\n"
  24522. "\"))\n"
  24523. " (ipv6-rules (plain-file \"ip6tables.rules\" \"*filter\n"
  24524. ":INPUT ACCEPT\n"
  24525. ":FORWARD ACCEPT\n"
  24526. ":OUTPUT ACCEPT\n"
  24527. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  24528. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  24529. "-A INPUT -j REJECT --reject-with icmp6-port-unreachable\n"
  24530. "COMMIT\n"
  24531. "\"))))\n"
  24532. msgstr ""
  24533. #. type: deftp
  24534. #: guix-git/doc/guix.texi:16609
  24535. #, no-wrap
  24536. msgid "{Data Type} iptables-configuration"
  24537. msgstr ""
  24538. #. type: deftp
  24539. #: guix-git/doc/guix.texi:16611
  24540. msgid "The data type representing the configuration of iptables."
  24541. msgstr ""
  24542. #. type: item
  24543. #: guix-git/doc/guix.texi:16613
  24544. #, no-wrap
  24545. msgid "@code{iptables} (default: @code{iptables})"
  24546. msgstr ""
  24547. #. type: table
  24548. #: guix-git/doc/guix.texi:16616
  24549. msgid "The iptables package that provides @code{iptables-restore} and @code{ip6tables-restore}."
  24550. msgstr ""
  24551. #. type: item
  24552. #: guix-git/doc/guix.texi:16616
  24553. #, no-wrap
  24554. msgid "@code{ipv4-rules} (default: @code{%iptables-accept-all-rules})"
  24555. msgstr ""
  24556. #. type: table
  24557. #: guix-git/doc/guix.texi:16620
  24558. msgid "The iptables rules to use. It will be passed to @code{iptables-restore}. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  24559. msgstr ""
  24560. #. type: item
  24561. #: guix-git/doc/guix.texi:16620
  24562. #, no-wrap
  24563. msgid "@code{ipv6-rules} (default: @code{%iptables-accept-all-rules})"
  24564. msgstr ""
  24565. #. type: table
  24566. #: guix-git/doc/guix.texi:16624
  24567. msgid "The ip6tables rules to use. It will be passed to @code{ip6tables-restore}. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  24568. msgstr ""
  24569. #. type: cindex
  24570. #: guix-git/doc/guix.texi:16627
  24571. #, no-wrap
  24572. msgid "nftables"
  24573. msgstr ""
  24574. #. type: defvr
  24575. #: guix-git/doc/guix.texi:16628
  24576. #, no-wrap
  24577. msgid "{Scheme Variable} nftables-service-type"
  24578. msgstr ""
  24579. #. type: defvr
  24580. #: guix-git/doc/guix.texi:16636
  24581. msgid "This is the service type to set up a nftables configuration. nftables is a netfilter project that aims to replace the existing iptables, ip6tables, arptables and ebtables framework. It provides a new packet filtering framework, a new user-space utility @command{nft}, and a compatibility layer for iptables. This service comes with a default ruleset @code{%default-nftables-ruleset} that rejecting all incoming connections except those to the ssh port 22. To use it, simply write:"
  24582. msgstr ""
  24583. #. type: lisp
  24584. #: guix-git/doc/guix.texi:16639
  24585. #, no-wrap
  24586. msgid "(service nftables-service-type)\n"
  24587. msgstr ""
  24588. #. type: deftp
  24589. #: guix-git/doc/guix.texi:16642
  24590. #, fuzzy, no-wrap
  24591. msgid "{Data Type} nftables-configuration"
  24592. msgstr "{数据类型} build-machine"
  24593. #. type: deftp
  24594. #: guix-git/doc/guix.texi:16644
  24595. #, fuzzy
  24596. msgid "The data type representing the configuration of nftables."
  24597. msgstr "管理操作系统配置。"
  24598. #. type: item
  24599. #: guix-git/doc/guix.texi:16646
  24600. #, fuzzy, no-wrap
  24601. msgid "@code{package} (default: @code{nftables})"
  24602. msgstr "@code{xfce}(默认值:@code{xfce})"
  24603. #. type: table
  24604. #: guix-git/doc/guix.texi:16648
  24605. msgid "The nftables package that provides @command{nft}."
  24606. msgstr ""
  24607. #. type: item
  24608. #: guix-git/doc/guix.texi:16648
  24609. #, fuzzy, no-wrap
  24610. msgid "@code{ruleset} (default: @code{%default-nftables-ruleset})"
  24611. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  24612. #. type: table
  24613. #: guix-git/doc/guix.texi:16651
  24614. msgid "The nftables ruleset to use. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  24615. msgstr ""
  24616. #. type: cindex
  24617. #: guix-git/doc/guix.texi:16654
  24618. #, no-wrap
  24619. msgid "NTP (Network Time Protocol), service"
  24620. msgstr ""
  24621. #. type: cindex
  24622. #: guix-git/doc/guix.texi:16655
  24623. #, no-wrap
  24624. msgid "ntpd, service for the Network Time Protocol daemon"
  24625. msgstr ""
  24626. #. type: cindex
  24627. #: guix-git/doc/guix.texi:16656
  24628. #, no-wrap
  24629. msgid "real time clock"
  24630. msgstr ""
  24631. #. type: defvr
  24632. #: guix-git/doc/guix.texi:16657
  24633. #, no-wrap
  24634. msgid "{Scheme Variable} ntp-service-type"
  24635. msgstr ""
  24636. #. type: defvr
  24637. #: guix-git/doc/guix.texi:16661
  24638. msgid "This is the type of the service running the @uref{https://www.ntp.org, Network Time Protocol (NTP)} daemon, @command{ntpd}. The daemon will keep the system clock synchronized with that of the specified NTP servers."
  24639. msgstr ""
  24640. #. type: defvr
  24641. #: guix-git/doc/guix.texi:16664
  24642. msgid "The value of this service is an @code{ntpd-configuration} object, as described below."
  24643. msgstr ""
  24644. #. type: deftp
  24645. #: guix-git/doc/guix.texi:16666
  24646. #, no-wrap
  24647. msgid "{Data Type} ntp-configuration"
  24648. msgstr ""
  24649. #. type: deftp
  24650. #: guix-git/doc/guix.texi:16668
  24651. msgid "This is the data type for the NTP service configuration."
  24652. msgstr ""
  24653. #. type: item
  24654. #: guix-git/doc/guix.texi:16670
  24655. #, no-wrap
  24656. msgid "@code{servers} (default: @code{%ntp-servers})"
  24657. msgstr ""
  24658. #. type: table
  24659. #: guix-git/doc/guix.texi:16674
  24660. msgid "This is the list of servers (@code{<ntp-server>} records) with which @command{ntpd} will be synchronized. See the @code{ntp-server} data type definition below."
  24661. msgstr ""
  24662. #. type: item
  24663. #: guix-git/doc/guix.texi:16675
  24664. #, fuzzy, no-wrap
  24665. msgid "@code{allow-large-adjustment?} (default: @code{#t})"
  24666. msgstr "@code{challenge}(默认值:@code{#f})"
  24667. #. type: table
  24668. #: guix-git/doc/guix.texi:16678
  24669. msgid "This determines whether @command{ntpd} is allowed to make an initial adjustment of more than 1,000 seconds."
  24670. msgstr ""
  24671. #. type: item
  24672. #: guix-git/doc/guix.texi:16679
  24673. #, no-wrap
  24674. msgid "@code{ntp} (default: @code{ntp})"
  24675. msgstr ""
  24676. #. type: table
  24677. #: guix-git/doc/guix.texi:16681
  24678. msgid "The NTP package to use."
  24679. msgstr ""
  24680. #. type: defvr
  24681. #: guix-git/doc/guix.texi:16684
  24682. #, no-wrap
  24683. msgid "{Scheme Variable} %ntp-servers"
  24684. msgstr ""
  24685. #. type: defvr
  24686. #: guix-git/doc/guix.texi:16687
  24687. msgid "List of host names used as the default NTP servers. These are servers of the @uref{https://www.ntppool.org/en/, NTP Pool Project}."
  24688. msgstr ""
  24689. #. type: deftp
  24690. #: guix-git/doc/guix.texi:16689
  24691. #, no-wrap
  24692. msgid "{Data Type} ntp-server"
  24693. msgstr ""
  24694. #. type: deftp
  24695. #: guix-git/doc/guix.texi:16691
  24696. msgid "The data type representing the configuration of a NTP server."
  24697. msgstr ""
  24698. #. type: item
  24699. #: guix-git/doc/guix.texi:16693
  24700. #, fuzzy, no-wrap
  24701. msgid "@code{type} (default: @code{'server})"
  24702. msgstr "@code{mate}(默认值:@code{mate})"
  24703. #. type: table
  24704. #: guix-git/doc/guix.texi:16696
  24705. msgid "The type of the NTP server, given as a symbol. One of @code{'pool}, @code{'server}, @code{'peer}, @code{'broadcast} or @code{'manycastclient}."
  24706. msgstr ""
  24707. #. type: code{#1}
  24708. #: guix-git/doc/guix.texi:16697
  24709. #, no-wrap
  24710. msgid "address"
  24711. msgstr ""
  24712. #. type: table
  24713. #: guix-git/doc/guix.texi:16699
  24714. msgid "The address of the server, as a string."
  24715. msgstr ""
  24716. #. type: code{#1}
  24717. #: guix-git/doc/guix.texi:16700 guix-git/doc/guix.texi:32416
  24718. #: guix-git/doc/guix.texi:32436
  24719. #, no-wrap
  24720. msgid "options"
  24721. msgstr ""
  24722. #. type: table
  24723. #: guix-git/doc/guix.texi:16705
  24724. msgid "NTPD options to use with that specific server, given as a list of option names and/or of option names and values tuples. The following example define a server to use with the options @option{iburst} and @option{prefer}, as well as @option{version} 3 and a @option{maxpoll} time of 16 seconds."
  24725. msgstr ""
  24726. #. type: example
  24727. #: guix-git/doc/guix.texi:16711
  24728. #, no-wrap
  24729. msgid ""
  24730. "(ntp-server\n"
  24731. " (type 'server)\n"
  24732. " (address \"some.ntp.server.org\")\n"
  24733. " (options `(iburst (version 3) (maxpoll 16) prefer))))\n"
  24734. msgstr ""
  24735. #. type: cindex
  24736. #: guix-git/doc/guix.texi:16715
  24737. #, no-wrap
  24738. msgid "OpenNTPD"
  24739. msgstr ""
  24740. #. type: deffn
  24741. #: guix-git/doc/guix.texi:16716
  24742. #, no-wrap
  24743. msgid "{Scheme Procedure} openntpd-service-type"
  24744. msgstr ""
  24745. #. type: deffn
  24746. #: guix-git/doc/guix.texi:16720
  24747. msgid "Run the @command{ntpd}, the Network Time Protocol (NTP) daemon, as implemented by @uref{http://www.openntpd.org, OpenNTPD}. The daemon will keep the system clock synchronized with that of the given servers."
  24748. msgstr ""
  24749. #. type: lisp
  24750. #: guix-git/doc/guix.texi:16729
  24751. #, no-wrap
  24752. msgid ""
  24753. "(service\n"
  24754. " openntpd-service-type\n"
  24755. " (openntpd-configuration\n"
  24756. " (listen-on '(\"127.0.0.1\" \"::1\"))\n"
  24757. " (sensor '(\"udcf0 correction 70000\"))\n"
  24758. " (constraint-from '(\"www.gnu.org\"))\n"
  24759. " (constraints-from '(\"https://www.google.com/\"))))\n"
  24760. "\n"
  24761. msgstr ""
  24762. #. type: defvr
  24763. #: guix-git/doc/guix.texi:16733
  24764. #, no-wrap
  24765. msgid "{Scheme Variable} %openntpd-servers"
  24766. msgstr ""
  24767. #. type: defvr
  24768. #: guix-git/doc/guix.texi:16736
  24769. msgid "This variable is a list of the server addresses defined in @code{%ntp-servers}."
  24770. msgstr ""
  24771. #. type: deftp
  24772. #: guix-git/doc/guix.texi:16738
  24773. #, no-wrap
  24774. msgid "{Data Type} openntpd-configuration"
  24775. msgstr ""
  24776. #. type: item
  24777. #: guix-git/doc/guix.texi:16740
  24778. #, no-wrap
  24779. msgid "@code{openntpd} (default: @code{(file-append openntpd \"/sbin/ntpd\")})"
  24780. msgstr ""
  24781. #. type: table
  24782. #: guix-git/doc/guix.texi:16742
  24783. msgid "The openntpd executable to use."
  24784. msgstr ""
  24785. #. type: item
  24786. #: guix-git/doc/guix.texi:16742
  24787. #, no-wrap
  24788. msgid "@code{listen-on} (default: @code{'(\"127.0.0.1\" \"::1\")})"
  24789. msgstr ""
  24790. #. type: table
  24791. #: guix-git/doc/guix.texi:16744
  24792. msgid "A list of local IP addresses or hostnames the ntpd daemon should listen on."
  24793. msgstr ""
  24794. #. type: item
  24795. #: guix-git/doc/guix.texi:16744
  24796. #, no-wrap
  24797. msgid "@code{query-from} (default: @code{'()})"
  24798. msgstr ""
  24799. #. type: table
  24800. #: guix-git/doc/guix.texi:16746
  24801. msgid "A list of local IP address the ntpd daemon should use for outgoing queries."
  24802. msgstr ""
  24803. #. type: item
  24804. #: guix-git/doc/guix.texi:16746
  24805. #, no-wrap
  24806. msgid "@code{sensor} (default: @code{'()})"
  24807. msgstr ""
  24808. #. type: table
  24809. #: guix-git/doc/guix.texi:16751
  24810. msgid "Specify a list of timedelta sensor devices ntpd should use. @code{ntpd} will listen to each sensor that actually exists and ignore non-existent ones. See @uref{https://man.openbsd.org/ntpd.conf, upstream documentation} for more information."
  24811. msgstr ""
  24812. #. type: item
  24813. #: guix-git/doc/guix.texi:16751
  24814. #, fuzzy, no-wrap
  24815. msgid "@code{server} (default: @code{'()})"
  24816. msgstr "@code{features} (@code{'()})"
  24817. #. type: table
  24818. #: guix-git/doc/guix.texi:16753
  24819. msgid "Specify a list of IP addresses or hostnames of NTP servers to synchronize to."
  24820. msgstr ""
  24821. #. type: item
  24822. #: guix-git/doc/guix.texi:16753
  24823. #, fuzzy, no-wrap
  24824. msgid "@code{servers} (default: @code{%openntp-servers})"
  24825. msgstr "@code{speed}(默认值:@code{1.0})"
  24826. #. type: table
  24827. #: guix-git/doc/guix.texi:16755
  24828. msgid "Specify a list of IP addresses or hostnames of NTP pools to synchronize to."
  24829. msgstr ""
  24830. #. type: item
  24831. #: guix-git/doc/guix.texi:16755
  24832. #, no-wrap
  24833. msgid "@code{constraint-from} (default: @code{'()})"
  24834. msgstr ""
  24835. #. type: table
  24836. #: guix-git/doc/guix.texi:16762
  24837. msgid "@code{ntpd} can be configured to query the ‘Date’ from trusted HTTPS servers via TLS. This time information is not used for precision but acts as an authenticated constraint, thereby reducing the impact of unauthenticated NTP man-in-the-middle attacks. Specify a list of URLs, IP addresses or hostnames of HTTPS servers to provide a constraint."
  24838. msgstr ""
  24839. #. type: item
  24840. #: guix-git/doc/guix.texi:16762
  24841. #, no-wrap
  24842. msgid "@code{constraints-from} (default: @code{'()})"
  24843. msgstr ""
  24844. #. type: table
  24845. #: guix-git/doc/guix.texi:16766
  24846. msgid "As with constraint from, specify a list of URLs, IP addresses or hostnames of HTTPS servers to provide a constraint. Should the hostname resolve to multiple IP addresses, @code{ntpd} will calculate a median constraint from all of them."
  24847. msgstr ""
  24848. #. type: cindex
  24849. #: guix-git/doc/guix.texi:16769
  24850. #, no-wrap
  24851. msgid "inetd"
  24852. msgstr ""
  24853. #. type: deffn
  24854. #: guix-git/doc/guix.texi:16770
  24855. #, no-wrap
  24856. msgid "{Scheme variable} inetd-service-type"
  24857. msgstr ""
  24858. #. type: deffn
  24859. #: guix-git/doc/guix.texi:16775
  24860. msgid "This service runs the @command{inetd} (@pxref{inetd invocation,,, inetutils, GNU Inetutils}) daemon. @command{inetd} listens for connections on internet sockets, and lazily starts the specified server program when a connection is made on one of these sockets."
  24861. msgstr ""
  24862. #. type: deffn
  24863. #: guix-git/doc/guix.texi:16781
  24864. msgid "The value of this service is an @code{inetd-configuration} object. The following example configures the @command{inetd} daemon to provide the built-in @command{echo} service, as well as an smtp service which forwards smtp traffic over ssh to a server @code{smtp-server} behind a gateway @code{hostname}:"
  24865. msgstr ""
  24866. #. type: lisp
  24867. #: guix-git/doc/guix.texi:16804
  24868. #, no-wrap
  24869. msgid ""
  24870. "(service\n"
  24871. " inetd-service-type\n"
  24872. " (inetd-configuration\n"
  24873. " (entries (list\n"
  24874. " (inetd-entry\n"
  24875. " (name \"echo\")\n"
  24876. " (socket-type 'stream)\n"
  24877. " (protocol \"tcp\")\n"
  24878. " (wait? #f)\n"
  24879. " (user \"root\"))\n"
  24880. " (inetd-entry\n"
  24881. " (node \"127.0.0.1\")\n"
  24882. " (name \"smtp\")\n"
  24883. " (socket-type 'stream)\n"
  24884. " (protocol \"tcp\")\n"
  24885. " (wait? #f)\n"
  24886. " (user \"root\")\n"
  24887. " (program (file-append openssh \"/bin/ssh\"))\n"
  24888. " (arguments\n"
  24889. " '(\"ssh\" \"-qT\" \"-i\" \"/path/to/ssh_key\"\n"
  24890. " \"-W\" \"smtp-server:25\" \"user@@hostname\")))))))\n"
  24891. msgstr ""
  24892. #. type: deffn
  24893. #: guix-git/doc/guix.texi:16807
  24894. msgid "See below for more details about @code{inetd-configuration}."
  24895. msgstr ""
  24896. #. type: deftp
  24897. #: guix-git/doc/guix.texi:16809
  24898. #, no-wrap
  24899. msgid "{Data Type} inetd-configuration"
  24900. msgstr ""
  24901. #. type: deftp
  24902. #: guix-git/doc/guix.texi:16811
  24903. msgid "Data type representing the configuration of @command{inetd}."
  24904. msgstr ""
  24905. #. type: item
  24906. #: guix-git/doc/guix.texi:16813
  24907. #, no-wrap
  24908. msgid "@code{program} (default: @code{(file-append inetutils \"/libexec/inetd\")})"
  24909. msgstr ""
  24910. #. type: table
  24911. #: guix-git/doc/guix.texi:16815
  24912. msgid "The @command{inetd} executable to use."
  24913. msgstr ""
  24914. #. type: item
  24915. #: guix-git/doc/guix.texi:16816 guix-git/doc/guix.texi:26491
  24916. #, no-wrap
  24917. msgid "@code{entries} (default: @code{'()})"
  24918. msgstr ""
  24919. #. type: table
  24920. #: guix-git/doc/guix.texi:16819
  24921. msgid "A list of @command{inetd} service entries. Each entry should be created by the @code{inetd-entry} constructor."
  24922. msgstr ""
  24923. #. type: deftp
  24924. #: guix-git/doc/guix.texi:16822
  24925. #, no-wrap
  24926. msgid "{Data Type} inetd-entry"
  24927. msgstr ""
  24928. #. type: deftp
  24929. #: guix-git/doc/guix.texi:16826
  24930. msgid "Data type representing an entry in the @command{inetd} configuration. Each entry corresponds to a socket where @command{inetd} will listen for requests."
  24931. msgstr ""
  24932. #. type: item
  24933. #: guix-git/doc/guix.texi:16828
  24934. #, no-wrap
  24935. msgid "@code{node} (default: @code{#f})"
  24936. msgstr ""
  24937. #. type: table
  24938. #: guix-git/doc/guix.texi:16833
  24939. msgid "Optional string, a comma-separated list of local addresses @command{inetd} should use when listening for this service. @xref{Configuration file,,, inetutils, GNU Inetutils} for a complete description of all options."
  24940. msgstr ""
  24941. #. type: table
  24942. #: guix-git/doc/guix.texi:16835
  24943. msgid "A string, the name must correspond to an entry in @code{/etc/services}."
  24944. msgstr ""
  24945. #. type: code{#1}
  24946. #: guix-git/doc/guix.texi:16835
  24947. #, no-wrap
  24948. msgid "socket-type"
  24949. msgstr ""
  24950. #. type: table
  24951. #: guix-git/doc/guix.texi:16838
  24952. msgid "One of @code{'stream}, @code{'dgram}, @code{'raw}, @code{'rdm} or @code{'seqpacket}."
  24953. msgstr ""
  24954. #. type: code{#1}
  24955. #: guix-git/doc/guix.texi:16838
  24956. #, no-wrap
  24957. msgid "protocol"
  24958. msgstr ""
  24959. #. type: table
  24960. #: guix-git/doc/guix.texi:16840
  24961. msgid "A string, must correspond to an entry in @code{/etc/protocols}."
  24962. msgstr ""
  24963. #. type: item
  24964. #: guix-git/doc/guix.texi:16840
  24965. #, no-wrap
  24966. msgid "@code{wait?} (default: @code{#t})"
  24967. msgstr ""
  24968. #. type: table
  24969. #: guix-git/doc/guix.texi:16843
  24970. msgid "Whether @command{inetd} should wait for the server to exit before listening to new service requests."
  24971. msgstr ""
  24972. #. type: table
  24973. #: guix-git/doc/guix.texi:16848
  24974. msgid "A string containing the user (and, optionally, group) name of the user as whom the server should run. The group name can be specified in a suffix, separated by a colon or period, i.e.@: @code{\"user\"}, @code{\"user:group\"} or @code{\"user.group\"}."
  24975. msgstr ""
  24976. #. type: item
  24977. #: guix-git/doc/guix.texi:16848
  24978. #, no-wrap
  24979. msgid "@code{program} (default: @code{\"internal\"})"
  24980. msgstr ""
  24981. #. type: table
  24982. #: guix-git/doc/guix.texi:16851
  24983. msgid "The server program which will serve the requests, or @code{\"internal\"} if @command{inetd} should use a built-in service."
  24984. msgstr ""
  24985. #. type: table
  24986. #: guix-git/doc/guix.texi:16856
  24987. msgid "A list strings or file-like objects, which are the server program's arguments, starting with the zeroth argument, i.e.@: the name of the program itself. For @command{inetd}'s internal services, this entry must be @code{'()} or @code{'(\"internal\")}."
  24988. msgstr ""
  24989. #. type: deftp
  24990. #: guix-git/doc/guix.texi:16860
  24991. msgid "@xref{Configuration file,,, inetutils, GNU Inetutils} for a more detailed discussion of each configuration field."
  24992. msgstr ""
  24993. #. type: cindex
  24994. #: guix-git/doc/guix.texi:16862
  24995. #, no-wrap
  24996. msgid "opendht, distributed hash table network service"
  24997. msgstr ""
  24998. #. type: cindex
  24999. #: guix-git/doc/guix.texi:16863
  25000. #, no-wrap
  25001. msgid "dhtproxy, for use with jami"
  25002. msgstr ""
  25003. #. type: defvr
  25004. #: guix-git/doc/guix.texi:16864
  25005. #, no-wrap
  25006. msgid "{Scheme Variable} opendht-service-type"
  25007. msgstr ""
  25008. #. type: defvr
  25009. #: guix-git/doc/guix.texi:16869
  25010. msgid "This is the type of the service running a @uref{https://opendht.net, OpenDHT} node, @command{dhtnode}. The daemon can be used to host your own proxy service to the distributed hash table (DHT), for example to connect to with Jami, among other applications."
  25011. msgstr ""
  25012. #. type: quotation
  25013. #: guix-git/doc/guix.texi:16879
  25014. msgid "When using the OpenDHT proxy server, the IP addresses it ``sees'' from the clients should be addresses reachable from other peers. In practice this means that a publicly reachable address is best suited for a proxy server, outside of your private network. For example, hosting the proxy server on a IPv4 private local network and exposing it via port forwarding could work for external peers, but peers local to the proxy would have their private addresses shared with the external peers, leading to connectivity problems."
  25015. msgstr ""
  25016. #. type: defvr
  25017. #: guix-git/doc/guix.texi:16883
  25018. msgid "The value of this service is a @code{opendht-configuration} object, as described below."
  25019. msgstr ""
  25020. #. type: deftp
  25021. #: guix-git/doc/guix.texi:16885
  25022. #, fuzzy, no-wrap
  25023. msgid "{Data Type} opendht-configuration"
  25024. msgstr "系统配置"
  25025. #. type: deftp
  25026. #: guix-git/doc/guix.texi:16887
  25027. #, fuzzy
  25028. msgid "This is the data type for the OpenDHT service configuration."
  25029. msgstr "管理操作系统配置。"
  25030. #. type: deftp
  25031. #: guix-git/doc/guix.texi:16892
  25032. msgid "Available @code{opendht-configuration} fields are:"
  25033. msgstr ""
  25034. #. type: deftypevr
  25035. #: guix-git/doc/guix.texi:16893
  25036. #, no-wrap
  25037. msgid "{@code{opendht-configuration} parameter} package opendht"
  25038. msgstr ""
  25039. #. type: deftypevr
  25040. #: guix-git/doc/guix.texi:16895
  25041. #, fuzzy
  25042. msgid "The @code{opendht} package to use."
  25043. msgstr "软件包数据类型。"
  25044. #. type: deftypevr
  25045. #: guix-git/doc/guix.texi:16898
  25046. #, no-wrap
  25047. msgid "{@code{opendht-configuration} parameter} boolean peer-discovery?"
  25048. msgstr ""
  25049. #. type: deftypevr
  25050. #: guix-git/doc/guix.texi:16900
  25051. msgid "Whether to enable the multicast local peer discovery mechanism."
  25052. msgstr ""
  25053. #. type: deftypevr
  25054. #: guix-git/doc/guix.texi:16902 guix-git/doc/guix.texi:16910
  25055. #: guix-git/doc/guix.texi:16918 guix-git/doc/guix.texi:18562
  25056. #: guix-git/doc/guix.texi:18632 guix-git/doc/guix.texi:18674
  25057. #: guix-git/doc/guix.texi:18694 guix-git/doc/guix.texi:18700
  25058. #: guix-git/doc/guix.texi:18716 guix-git/doc/guix.texi:18804
  25059. #: guix-git/doc/guix.texi:18892 guix-git/doc/guix.texi:19205
  25060. #: guix-git/doc/guix.texi:19218 guix-git/doc/guix.texi:20335
  25061. #: guix-git/doc/guix.texi:21813 guix-git/doc/guix.texi:21919
  25062. #: guix-git/doc/guix.texi:21984 guix-git/doc/guix.texi:21993
  25063. #: guix-git/doc/guix.texi:23226 guix-git/doc/guix.texi:23270
  25064. #: guix-git/doc/guix.texi:23287 guix-git/doc/guix.texi:23295
  25065. #: guix-git/doc/guix.texi:23310 guix-git/doc/guix.texi:23328
  25066. #: guix-git/doc/guix.texi:23352 guix-git/doc/guix.texi:23405
  25067. #: guix-git/doc/guix.texi:23538 guix-git/doc/guix.texi:23572
  25068. #: guix-git/doc/guix.texi:23608 guix-git/doc/guix.texi:23624
  25069. #: guix-git/doc/guix.texi:23652 guix-git/doc/guix.texi:23713
  25070. #: guix-git/doc/guix.texi:23796 guix-git/doc/guix.texi:27206
  25071. #: guix-git/doc/guix.texi:27220 guix-git/doc/guix.texi:27242
  25072. #: guix-git/doc/guix.texi:27361 guix-git/doc/guix.texi:27375
  25073. #: guix-git/doc/guix.texi:27396 guix-git/doc/guix.texi:27417
  25074. #: guix-git/doc/guix.texi:27424 guix-git/doc/guix.texi:27469
  25075. #: guix-git/doc/guix.texi:27476 guix-git/doc/guix.texi:28259
  25076. #: guix-git/doc/guix.texi:28273 guix-git/doc/guix.texi:28445
  25077. #: guix-git/doc/guix.texi:28490 guix-git/doc/guix.texi:28577
  25078. #: guix-git/doc/guix.texi:28779 guix-git/doc/guix.texi:28812
  25079. #: guix-git/doc/guix.texi:28952 guix-git/doc/guix.texi:28963
  25080. #: guix-git/doc/guix.texi:29214 guix-git/doc/guix.texi:30680
  25081. #: guix-git/doc/guix.texi:30689 guix-git/doc/guix.texi:30697
  25082. #: guix-git/doc/guix.texi:30705 guix-git/doc/guix.texi:30721
  25083. #: guix-git/doc/guix.texi:30737 guix-git/doc/guix.texi:30745
  25084. #: guix-git/doc/guix.texi:30753 guix-git/doc/guix.texi:30762
  25085. #: guix-git/doc/guix.texi:30771 guix-git/doc/guix.texi:30787
  25086. #: guix-git/doc/guix.texi:30851 guix-git/doc/guix.texi:30957
  25087. #: guix-git/doc/guix.texi:30965 guix-git/doc/guix.texi:30973
  25088. #: guix-git/doc/guix.texi:30998 guix-git/doc/guix.texi:31052
  25089. #: guix-git/doc/guix.texi:31100 guix-git/doc/guix.texi:31301
  25090. #: guix-git/doc/guix.texi:31308
  25091. msgid "Defaults to @samp{#f}."
  25092. msgstr ""
  25093. #. type: deftypevr
  25094. #: guix-git/doc/guix.texi:16905
  25095. #, no-wrap
  25096. msgid "{@code{opendht-configuration} parameter} boolean enable-logging?"
  25097. msgstr ""
  25098. #. type: deftypevr
  25099. #: guix-git/doc/guix.texi:16908
  25100. msgid "Whether to enable logging messages to syslog. It is disabled by default as it is rather verbose."
  25101. msgstr ""
  25102. #. type: deftypevr
  25103. #: guix-git/doc/guix.texi:16913
  25104. #, no-wrap
  25105. msgid "{@code{opendht-configuration} parameter} boolean debug?"
  25106. msgstr ""
  25107. #. type: deftypevr
  25108. #: guix-git/doc/guix.texi:16916
  25109. msgid "Whether to enable debug-level logging messages. This has no effect if logging is disabled."
  25110. msgstr ""
  25111. #. type: deftypevr
  25112. #: guix-git/doc/guix.texi:16921
  25113. #, no-wrap
  25114. msgid "{@code{opendht-configuration} parameter} maybe-string bootstrap-host"
  25115. msgstr ""
  25116. #. type: deftypevr
  25117. #: guix-git/doc/guix.texi:16927
  25118. msgid "The node host name that is used to make the first connection to the network. A specific port value can be provided by appending the @code{:PORT} suffix. By default, it uses the Jami bootstrap nodes, but any host can be specified here. It's also possible to disable bootsrapping by setting this to the @code{'disabled} symbol."
  25119. msgstr ""
  25120. #. type: deftypevr
  25121. #: guix-git/doc/guix.texi:16929
  25122. msgid "Defaults to @samp{\"bootstrap.jami.net:4222\"}."
  25123. msgstr ""
  25124. #. type: deftypevr
  25125. #: guix-git/doc/guix.texi:16932
  25126. #, no-wrap
  25127. msgid "{@code{opendht-configuration} parameter} maybe-number port"
  25128. msgstr ""
  25129. #. type: deftypevr
  25130. #: guix-git/doc/guix.texi:16935
  25131. msgid "The UDP port to bind to. When set to @code{'disabled}, an available port is automatically selected."
  25132. msgstr ""
  25133. #. type: deftypevr
  25134. #: guix-git/doc/guix.texi:16937
  25135. msgid "Defaults to @samp{4222}."
  25136. msgstr ""
  25137. #. type: deftypevr
  25138. #: guix-git/doc/guix.texi:16940
  25139. #, no-wrap
  25140. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port"
  25141. msgstr ""
  25142. #. type: deftypevr
  25143. #: guix-git/doc/guix.texi:16942
  25144. msgid "Spawn a proxy server listening on the specified port."
  25145. msgstr ""
  25146. #. type: deftypevr
  25147. #: guix-git/doc/guix.texi:16944 guix-git/doc/guix.texi:16951
  25148. #: guix-git/doc/guix.texi:23234 guix-git/doc/guix.texi:23278
  25149. #: guix-git/doc/guix.texi:23491 guix-git/doc/guix.texi:23547
  25150. #: guix-git/doc/guix.texi:23721 guix-git/doc/guix.texi:23732
  25151. #: guix-git/doc/guix.texi:23805 guix-git/doc/guix.texi:24530
  25152. #: guix-git/doc/guix.texi:24573 guix-git/doc/guix.texi:24581
  25153. #: guix-git/doc/guix.texi:24589 guix-git/doc/guix.texi:24597
  25154. #: guix-git/doc/guix.texi:24606 guix-git/doc/guix.texi:24614
  25155. #: guix-git/doc/guix.texi:24621 guix-git/doc/guix.texi:24629
  25156. #: guix-git/doc/guix.texi:24637 guix-git/doc/guix.texi:24647
  25157. #: guix-git/doc/guix.texi:24654 guix-git/doc/guix.texi:24678
  25158. #: guix-git/doc/guix.texi:24686 guix-git/doc/guix.texi:24712
  25159. #: guix-git/doc/guix.texi:24721 guix-git/doc/guix.texi:24730
  25160. #: guix-git/doc/guix.texi:24739 guix-git/doc/guix.texi:24748
  25161. #: guix-git/doc/guix.texi:24757 guix-git/doc/guix.texi:24765
  25162. #: guix-git/doc/guix.texi:24773 guix-git/doc/guix.texi:24780
  25163. #: guix-git/doc/guix.texi:24788 guix-git/doc/guix.texi:24795
  25164. #: guix-git/doc/guix.texi:24803 guix-git/doc/guix.texi:24811
  25165. #: guix-git/doc/guix.texi:24820 guix-git/doc/guix.texi:24829
  25166. #: guix-git/doc/guix.texi:24837 guix-git/doc/guix.texi:24845
  25167. #: guix-git/doc/guix.texi:24853 guix-git/doc/guix.texi:24864
  25168. #: guix-git/doc/guix.texi:24874 guix-git/doc/guix.texi:24885
  25169. #: guix-git/doc/guix.texi:24894 guix-git/doc/guix.texi:24904
  25170. #: guix-git/doc/guix.texi:24912 guix-git/doc/guix.texi:24923
  25171. #: guix-git/doc/guix.texi:24932 guix-git/doc/guix.texi:24942
  25172. #: guix-git/doc/guix.texi:28172 guix-git/doc/guix.texi:28179
  25173. #: guix-git/doc/guix.texi:28186 guix-git/doc/guix.texi:28193
  25174. #: guix-git/doc/guix.texi:28200 guix-git/doc/guix.texi:28207
  25175. #: guix-git/doc/guix.texi:28215 guix-git/doc/guix.texi:28223
  25176. #: guix-git/doc/guix.texi:28230 guix-git/doc/guix.texi:28237
  25177. #: guix-git/doc/guix.texi:28244 guix-git/doc/guix.texi:28251
  25178. #: guix-git/doc/guix.texi:28281 guix-git/doc/guix.texi:28319
  25179. #: guix-git/doc/guix.texi:28326 guix-git/doc/guix.texi:28335
  25180. #: guix-git/doc/guix.texi:28357 guix-git/doc/guix.texi:28365
  25181. #: guix-git/doc/guix.texi:28372 guix-git/doc/guix.texi:28527
  25182. #: guix-git/doc/guix.texi:28547 guix-git/doc/guix.texi:28562
  25183. #: guix-git/doc/guix.texi:28569 guix-git/doc/guix.texi:31253
  25184. #: guix-git/doc/guix.texi:31261 guix-git/doc/guix.texi:31269
  25185. #: guix-git/doc/guix.texi:31277 guix-git/doc/guix.texi:31285
  25186. #: guix-git/doc/guix.texi:31293
  25187. msgid "Defaults to @samp{disabled}."
  25188. msgstr ""
  25189. #. type: deftypevr
  25190. #: guix-git/doc/guix.texi:16947
  25191. #, no-wrap
  25192. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port-tls"
  25193. msgstr ""
  25194. #. type: deftypevr
  25195. #: guix-git/doc/guix.texi:16949
  25196. msgid "Spawn a proxy server listening to TLS connections on the specified port."
  25197. msgstr ""
  25198. #. type: cindex
  25199. #: guix-git/doc/guix.texi:16955
  25200. #, no-wrap
  25201. msgid "Tor"
  25202. msgstr ""
  25203. #. type: defvr
  25204. #: guix-git/doc/guix.texi:16956
  25205. #, no-wrap
  25206. msgid "{Scheme Variable} tor-service-type"
  25207. msgstr ""
  25208. #. type: defvr
  25209. #: guix-git/doc/guix.texi:16961
  25210. msgid "This is the type for a service that runs the @uref{https://torproject.org, Tor} anonymous networking daemon. The service is configured using a @code{<tor-configuration>} record. By default, the Tor daemon runs as the @code{tor} unprivileged user, which is a member of the @code{tor} group."
  25211. msgstr ""
  25212. #. type: deftp
  25213. #: guix-git/doc/guix.texi:16964
  25214. #, no-wrap
  25215. msgid "{Data Type} tor-configuration"
  25216. msgstr ""
  25217. #. type: item
  25218. #: guix-git/doc/guix.texi:16966
  25219. #, no-wrap
  25220. msgid "@code{tor} (default: @code{tor})"
  25221. msgstr ""
  25222. #. type: table
  25223. #: guix-git/doc/guix.texi:16971
  25224. msgid "The package that provides the Tor daemon. This package is expected to provide the daemon at @file{bin/tor} relative to its output directory. The default package is the @uref{https://www.torproject.org, Tor Project's} implementation."
  25225. msgstr ""
  25226. #. type: item
  25227. #: guix-git/doc/guix.texi:16972
  25228. #, no-wrap
  25229. msgid "@code{config-file} (default: @code{(plain-file \"empty\" \"\")})"
  25230. msgstr ""
  25231. #. type: table
  25232. #: guix-git/doc/guix.texi:16978
  25233. msgid "The configuration file to use. It will be appended to a default configuration file, and the final configuration file will be passed to @code{tor} via its @code{-f} option. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects}). See @code{man tor} for details on the configuration file syntax."
  25234. msgstr ""
  25235. #. type: item
  25236. #: guix-git/doc/guix.texi:16979
  25237. #, no-wrap
  25238. msgid "@code{hidden-services} (default: @code{'()})"
  25239. msgstr ""
  25240. #. type: table
  25241. #: guix-git/doc/guix.texi:16985
  25242. msgid "The list of @code{<hidden-service>} records to use. For any hidden service you include in this list, appropriate configuration to enable the hidden service will be automatically added to the default configuration file. You may conveniently create @code{<hidden-service>} records using the @code{tor-hidden-service} procedure described below."
  25243. msgstr ""
  25244. #. type: item
  25245. #: guix-git/doc/guix.texi:16986
  25246. #, no-wrap
  25247. msgid "@code{socks-socket-type} (default: @code{'tcp})"
  25248. msgstr ""
  25249. #. type: table
  25250. #: guix-git/doc/guix.texi:16993
  25251. msgid "The default socket type that Tor should use for its SOCKS socket. This must be either @code{'tcp} or @code{'unix}. If it is @code{'tcp}, then by default Tor will listen on TCP port 9050 on the loopback interface (i.e., localhost). If it is @code{'unix}, then Tor will listen on the UNIX domain socket @file{/var/run/tor/socks-sock}, which will be made writable by members of the @code{tor} group."
  25252. msgstr ""
  25253. #. type: table
  25254. #: guix-git/doc/guix.texi:16998
  25255. msgid "If you want to customize the SOCKS socket in more detail, leave @code{socks-socket-type} at its default value of @code{'tcp} and use @code{config-file} to override the default by providing your own @code{SocksPort} option."
  25256. msgstr ""
  25257. #. type: item
  25258. #: guix-git/doc/guix.texi:16999
  25259. #, fuzzy, no-wrap
  25260. msgid "@code{control-socket?} (default: @code{#f})"
  25261. msgstr "@code{journal-content}(默认值:@code{#f})"
  25262. #. type: table
  25263. #: guix-git/doc/guix.texi:17005
  25264. msgid "Whether or not to provide a ``control socket'' by which Tor can be controlled to, for instance, dynamically instantiate tor onion services. If @code{#t}, Tor will listen for control commands on the UNIX domain socket @file{/var/run/tor/control-sock}, which will be made writable by members of the @code{tor} group."
  25265. msgstr ""
  25266. #. type: cindex
  25267. #: guix-git/doc/guix.texi:17009
  25268. #, no-wrap
  25269. msgid "hidden service"
  25270. msgstr ""
  25271. #. type: deffn
  25272. #: guix-git/doc/guix.texi:17010
  25273. #, no-wrap
  25274. msgid "{Scheme Procedure} tor-hidden-service @var{name} @var{mapping}"
  25275. msgstr ""
  25276. #. type: deffn
  25277. #: guix-git/doc/guix.texi:17013
  25278. msgid "Define a new Tor @dfn{hidden service} called @var{name} and implementing @var{mapping}. @var{mapping} is a list of port/host tuples, such as:"
  25279. msgstr ""
  25280. #. type: example
  25281. #: guix-git/doc/guix.texi:17017
  25282. #, no-wrap
  25283. msgid ""
  25284. " '((22 \"127.0.0.1:22\")\n"
  25285. " (80 \"127.0.0.1:8080\"))\n"
  25286. msgstr ""
  25287. #. type: deffn
  25288. #: guix-git/doc/guix.texi:17021
  25289. msgid "In this example, port 22 of the hidden service is mapped to local port 22, and port 80 is mapped to local port 8080."
  25290. msgstr ""
  25291. #. type: deffn
  25292. #: guix-git/doc/guix.texi:17025
  25293. msgid "This creates a @file{/var/lib/tor/hidden-services/@var{name}} directory, where the @file{hostname} file contains the @code{.onion} host name for the hidden service."
  25294. msgstr ""
  25295. #. type: deffn
  25296. #: guix-git/doc/guix.texi:17028
  25297. msgid "See @uref{https://www.torproject.org/docs/tor-hidden-service.html.en, the Tor project's documentation} for more information."
  25298. msgstr ""
  25299. #. type: Plain text
  25300. #: guix-git/doc/guix.texi:17031
  25301. msgid "The @code{(gnu services rsync)} module provides the following services:"
  25302. msgstr ""
  25303. #. type: Plain text
  25304. #: guix-git/doc/guix.texi:17035
  25305. msgid "You might want an rsync daemon if you have files that you want available so anyone (or just yourself) can download existing files or upload new files."
  25306. msgstr ""
  25307. #. type: deffn
  25308. #: guix-git/doc/guix.texi:17036
  25309. #, no-wrap
  25310. msgid "{Scheme Variable} rsync-service-type"
  25311. msgstr ""
  25312. #. type: deffn
  25313. #: guix-git/doc/guix.texi:17040
  25314. msgid "This is the service type for the @uref{https://rsync.samba.org, rsync} daemon, The value for this service type is a @command{rsync-configuration} record as in this example:"
  25315. msgstr ""
  25316. #. type: lisp
  25317. #: guix-git/doc/guix.texi:17043
  25318. #, no-wrap
  25319. msgid "(service rsync-service-type)\n"
  25320. msgstr ""
  25321. #. type: deffn
  25322. #: guix-git/doc/guix.texi:17046
  25323. msgid "See below for details about @code{rsync-configuration}."
  25324. msgstr ""
  25325. #. type: deftp
  25326. #: guix-git/doc/guix.texi:17048
  25327. #, no-wrap
  25328. msgid "{Data Type} rsync-configuration"
  25329. msgstr ""
  25330. #. type: deftp
  25331. #: guix-git/doc/guix.texi:17050
  25332. msgid "Data type representing the configuration for @code{rsync-service}."
  25333. msgstr ""
  25334. #. type: item
  25335. #: guix-git/doc/guix.texi:17052
  25336. #, no-wrap
  25337. msgid "@code{package} (default: @var{rsync})"
  25338. msgstr ""
  25339. #. type: table
  25340. #: guix-git/doc/guix.texi:17054
  25341. msgid "@code{rsync} package to use."
  25342. msgstr ""
  25343. #. type: item
  25344. #: guix-git/doc/guix.texi:17055
  25345. #, no-wrap
  25346. msgid "@code{port-number} (default: @code{873})"
  25347. msgstr ""
  25348. #. type: table
  25349. #: guix-git/doc/guix.texi:17059
  25350. msgid "TCP port on which @command{rsync} listens for incoming connections. If port is less than @code{1024} @command{rsync} needs to be started as the @code{root} user and group."
  25351. msgstr ""
  25352. #. type: item
  25353. #: guix-git/doc/guix.texi:17060
  25354. #, no-wrap
  25355. msgid "@code{pid-file} (default: @code{\"/var/run/rsyncd/rsyncd.pid\"})"
  25356. msgstr ""
  25357. #. type: table
  25358. #: guix-git/doc/guix.texi:17062
  25359. msgid "Name of the file where @command{rsync} writes its PID."
  25360. msgstr ""
  25361. #. type: item
  25362. #: guix-git/doc/guix.texi:17063
  25363. #, no-wrap
  25364. msgid "@code{lock-file} (default: @code{\"/var/run/rsyncd/rsyncd.lock\"})"
  25365. msgstr ""
  25366. #. type: table
  25367. #: guix-git/doc/guix.texi:17065
  25368. msgid "Name of the file where @command{rsync} writes its lock file."
  25369. msgstr ""
  25370. #. type: item
  25371. #: guix-git/doc/guix.texi:17066
  25372. #, no-wrap
  25373. msgid "@code{log-file} (default: @code{\"/var/log/rsyncd.log\"})"
  25374. msgstr ""
  25375. #. type: table
  25376. #: guix-git/doc/guix.texi:17068
  25377. msgid "Name of the file where @command{rsync} writes its log file."
  25378. msgstr ""
  25379. #. type: item
  25380. #: guix-git/doc/guix.texi:17069
  25381. #, no-wrap
  25382. msgid "@code{use-chroot?} (default: @var{#t})"
  25383. msgstr ""
  25384. #. type: table
  25385. #: guix-git/doc/guix.texi:17071
  25386. msgid "Whether to use chroot for @command{rsync} shared directory."
  25387. msgstr ""
  25388. #. type: item
  25389. #: guix-git/doc/guix.texi:17072
  25390. #, no-wrap
  25391. msgid "@code{share-path} (default: @file{/srv/rsync})"
  25392. msgstr ""
  25393. #. type: table
  25394. #: guix-git/doc/guix.texi:17074
  25395. msgid "Location of the @command{rsync} shared directory."
  25396. msgstr ""
  25397. #. type: item
  25398. #: guix-git/doc/guix.texi:17075
  25399. #, no-wrap
  25400. msgid "@code{share-comment} (default: @code{\"Rsync share\"})"
  25401. msgstr ""
  25402. #. type: table
  25403. #: guix-git/doc/guix.texi:17077
  25404. msgid "Comment of the @command{rsync} shared directory."
  25405. msgstr ""
  25406. #. type: item
  25407. #: guix-git/doc/guix.texi:17078
  25408. #, no-wrap
  25409. msgid "@code{read-only?} (default: @var{#f})"
  25410. msgstr ""
  25411. #. type: table
  25412. #: guix-git/doc/guix.texi:17080
  25413. msgid "Read-write permissions to shared directory."
  25414. msgstr ""
  25415. #. type: item
  25416. #: guix-git/doc/guix.texi:17081
  25417. #, no-wrap
  25418. msgid "@code{timeout} (default: @code{300})"
  25419. msgstr ""
  25420. #. type: table
  25421. #: guix-git/doc/guix.texi:17083
  25422. msgid "I/O timeout in seconds."
  25423. msgstr ""
  25424. #. type: item
  25425. #: guix-git/doc/guix.texi:17084
  25426. #, no-wrap
  25427. msgid "@code{user} (default: @var{\"root\"})"
  25428. msgstr ""
  25429. #. type: table
  25430. #: guix-git/doc/guix.texi:17086
  25431. msgid "Owner of the @code{rsync} process."
  25432. msgstr ""
  25433. #. type: item
  25434. #: guix-git/doc/guix.texi:17087
  25435. #, no-wrap
  25436. msgid "@code{group} (default: @var{\"root\"})"
  25437. msgstr ""
  25438. #. type: table
  25439. #: guix-git/doc/guix.texi:17089
  25440. msgid "Group of the @code{rsync} process."
  25441. msgstr ""
  25442. #. type: item
  25443. #: guix-git/doc/guix.texi:17090
  25444. #, no-wrap
  25445. msgid "@code{uid} (default: @var{\"rsyncd\"})"
  25446. msgstr ""
  25447. #. type: table
  25448. #: guix-git/doc/guix.texi:17093
  25449. msgid "User name or user ID that file transfers to and from that module should take place as when the daemon was run as @code{root}."
  25450. msgstr ""
  25451. #. type: item
  25452. #: guix-git/doc/guix.texi:17094
  25453. #, no-wrap
  25454. msgid "@code{gid} (default: @var{\"rsyncd\"})"
  25455. msgstr ""
  25456. #. type: table
  25457. #: guix-git/doc/guix.texi:17096 guix-git/doc/guix.texi:17539
  25458. msgid "Group name or group ID that will be used when accessing the module."
  25459. msgstr ""
  25460. #. type: Plain text
  25461. #: guix-git/doc/guix.texi:17101
  25462. msgid "The @code{(gnu services syncthing)} module provides the following services:"
  25463. msgstr ""
  25464. #. type: cindex
  25465. #: guix-git/doc/guix.texi:17101
  25466. #, no-wrap
  25467. msgid "syncthing"
  25468. msgstr ""
  25469. #. type: Plain text
  25470. #: guix-git/doc/guix.texi:17106
  25471. msgid "You might want a syncthing daemon if you have files between two or more computers and want to sync them in real time, safely protected from prying eyes."
  25472. msgstr ""
  25473. #. type: deffn
  25474. #: guix-git/doc/guix.texi:17107
  25475. #, no-wrap
  25476. msgid "{Scheme Variable} syncthing-service-type"
  25477. msgstr ""
  25478. #. type: deffn
  25479. #: guix-git/doc/guix.texi:17111
  25480. msgid "This is the service type for the @uref{https://syncthing.net/, syncthing} daemon, The value for this service type is a @command{syncthing-configuration} record as in this example:"
  25481. msgstr ""
  25482. #. type: lisp
  25483. #: guix-git/doc/guix.texi:17115
  25484. #, no-wrap
  25485. msgid ""
  25486. "(service syncthing-service-type\n"
  25487. " (syncthing-configuration (user \"alice\")))\n"
  25488. msgstr ""
  25489. #. type: deffn
  25490. #: guix-git/doc/guix.texi:17118
  25491. msgid "See below for details about @code{syncthing-configuration}."
  25492. msgstr ""
  25493. #. type: deftp
  25494. #: guix-git/doc/guix.texi:17119
  25495. #, fuzzy, no-wrap
  25496. msgid "{Data Type} syncthing-configuration"
  25497. msgstr "{数据类型} build-machine"
  25498. #. type: deftp
  25499. #: guix-git/doc/guix.texi:17121
  25500. #, fuzzy
  25501. msgid "Data type representing the configuration for @code{syncthing-service-type}."
  25502. msgstr "管理操作系统配置。"
  25503. #. type: item
  25504. #: guix-git/doc/guix.texi:17123
  25505. #, fuzzy, no-wrap
  25506. msgid "@code{syncthing} (default: @var{syncthing})"
  25507. msgstr "@code{xfce}(默认值:@code{xfce})"
  25508. #. type: table
  25509. #: guix-git/doc/guix.texi:17125
  25510. #, fuzzy
  25511. msgid "@code{syncthing} package to use."
  25512. msgstr "软件包数据类型。"
  25513. #. type: item
  25514. #: guix-git/doc/guix.texi:17126
  25515. #, fuzzy, no-wrap
  25516. msgid "@code{arguments} (default: @var{'()})"
  25517. msgstr "@code{features} (@code{'()})"
  25518. #. type: table
  25519. #: guix-git/doc/guix.texi:17128
  25520. msgid "List of command-line arguments passing to @code{syncthing} binary."
  25521. msgstr ""
  25522. #. type: item
  25523. #: guix-git/doc/guix.texi:17129
  25524. #, fuzzy, no-wrap
  25525. msgid "@code{logflags} (default: @var{0})"
  25526. msgstr "@code{challenge}(默认值:@code{#f})"
  25527. #. type: table
  25528. #: guix-git/doc/guix.texi:17132
  25529. msgid "Sum of logging flags, see @uref{https://docs.syncthing.net/users/syncthing.html#cmdoption-logflags, Syncthing documentation logflags}."
  25530. msgstr ""
  25531. #. type: item
  25532. #: guix-git/doc/guix.texi:17133
  25533. #, fuzzy, no-wrap
  25534. msgid "@code{user} (default: @var{#f})"
  25535. msgstr "@code{challenge}(默认值:@code{#f})"
  25536. #. type: table
  25537. #: guix-git/doc/guix.texi:17136
  25538. msgid "The user as which the Syncthing service is to be run. This assumes that the specified user exists."
  25539. msgstr ""
  25540. #. type: item
  25541. #: guix-git/doc/guix.texi:17137
  25542. #, fuzzy, no-wrap
  25543. msgid "@code{group} (default: @var{\"users\"})"
  25544. msgstr "@code{gnome}(默认值:@code{gnome})"
  25545. #. type: table
  25546. #: guix-git/doc/guix.texi:17140
  25547. msgid "The group as which the Syncthing service is to be run. This assumes that the specified group exists."
  25548. msgstr ""
  25549. #. type: item
  25550. #: guix-git/doc/guix.texi:17141
  25551. #, fuzzy, no-wrap
  25552. msgid "@code{home} (default: @var{#f})"
  25553. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25554. #. type: table
  25555. #: guix-git/doc/guix.texi:17144
  25556. msgid "Common configuration and data directory. The default configuration directory is @file{$HOME} of the specified Syncthing @code{user}."
  25557. msgstr ""
  25558. #. type: Plain text
  25559. #: guix-git/doc/guix.texi:17150
  25560. msgid "Furthermore, @code{(gnu services ssh)} provides the following services."
  25561. msgstr ""
  25562. #. type: cindex
  25563. #: guix-git/doc/guix.texi:17150 guix-git/doc/guix.texi:17189
  25564. #: guix-git/doc/guix.texi:34307
  25565. #, no-wrap
  25566. msgid "SSH"
  25567. msgstr ""
  25568. #. type: cindex
  25569. #: guix-git/doc/guix.texi:17151 guix-git/doc/guix.texi:17190
  25570. #: guix-git/doc/guix.texi:34308
  25571. #, no-wrap
  25572. msgid "SSH server"
  25573. msgstr ""
  25574. #. type: deffn
  25575. #: guix-git/doc/guix.texi:17153
  25576. #, no-wrap
  25577. msgid "{Scheme Procedure} lsh-service [#:host-key \"/etc/lsh/host-key\"] @"
  25578. msgstr ""
  25579. #. type: deffn
  25580. #: guix-git/doc/guix.texi:17162
  25581. msgid "[#:daemonic? #t] [#:interfaces '()] [#:port-number 22] @ [#:allow-empty-passwords? #f] [#:root-login? #f] @ [#:syslog-output? #t] [#:x11-forwarding? #t] @ [#:tcp/ip-forwarding? #t] [#:password-authentication? #t] @ [#:public-key-authentication? #t] [#:initialize? #t] Run the @command{lshd} program from @var{lsh} to listen on port @var{port-number}. @var{host-key} must designate a file containing the host key, and readable only by root."
  25582. msgstr ""
  25583. #. type: deffn
  25584. #: guix-git/doc/guix.texi:17168
  25585. msgid "When @var{daemonic?} is true, @command{lshd} will detach from the controlling terminal and log its output to syslogd, unless one sets @var{syslog-output?} to false. Obviously, it also makes lsh-service depend on existence of syslogd service. When @var{pid-file?} is true, @command{lshd} writes its PID to the file called @var{pid-file}."
  25586. msgstr ""
  25587. #. type: deffn
  25588. #: guix-git/doc/guix.texi:17172
  25589. msgid "When @var{initialize?} is true, automatically create the seed and host key upon service activation if they do not exist yet. This may take long and require interaction."
  25590. msgstr ""
  25591. #. type: deffn
  25592. #: guix-git/doc/guix.texi:17177
  25593. msgid "When @var{initialize?} is false, it is up to the user to initialize the randomness generator (@pxref{lsh-make-seed,,, lsh, LSH Manual}), and to create a key pair with the private key stored in file @var{host-key} (@pxref{lshd basics,,, lsh, LSH Manual})."
  25594. msgstr ""
  25595. #. type: deffn
  25596. #: guix-git/doc/guix.texi:17181
  25597. msgid "When @var{interfaces} is empty, lshd listens for connections on all the network interfaces; otherwise, @var{interfaces} must be a list of host names or addresses."
  25598. msgstr ""
  25599. #. type: deffn
  25600. #: guix-git/doc/guix.texi:17185
  25601. msgid "@var{allow-empty-passwords?} specifies whether to accept log-ins with empty passwords, and @var{root-login?} specifies whether to accept log-ins as root."
  25602. msgstr ""
  25603. #. type: deffn
  25604. #: guix-git/doc/guix.texi:17187
  25605. msgid "The other options should be self-descriptive."
  25606. msgstr ""
  25607. #. type: deffn
  25608. #: guix-git/doc/guix.texi:17191
  25609. #, no-wrap
  25610. msgid "{Scheme Variable} openssh-service-type"
  25611. msgstr ""
  25612. #. type: deffn
  25613. #: guix-git/doc/guix.texi:17195
  25614. msgid "This is the type for the @uref{http://www.openssh.org, OpenSSH} secure shell daemon, @command{sshd}. Its value must be an @code{openssh-configuration} record as in this example:"
  25615. msgstr ""
  25616. #. type: lisp
  25617. #: guix-git/doc/guix.texi:17204
  25618. #, no-wrap
  25619. msgid ""
  25620. "(service openssh-service-type\n"
  25621. " (openssh-configuration\n"
  25622. " (x11-forwarding? #t)\n"
  25623. " (permit-root-login 'prohibit-password)\n"
  25624. " (authorized-keys\n"
  25625. " `((\"alice\" ,(local-file \"alice.pub\"))\n"
  25626. " (\"bob\" ,(local-file \"bob.pub\"))))))\n"
  25627. msgstr ""
  25628. #. type: deffn
  25629. #: guix-git/doc/guix.texi:17207
  25630. msgid "See below for details about @code{openssh-configuration}."
  25631. msgstr ""
  25632. #. type: deffn
  25633. #: guix-git/doc/guix.texi:17210
  25634. msgid "This service can be extended with extra authorized keys, as in this example:"
  25635. msgstr ""
  25636. #. type: lisp
  25637. #: guix-git/doc/guix.texi:17215
  25638. #, no-wrap
  25639. msgid ""
  25640. "(service-extension openssh-service-type\n"
  25641. " (const `((\"charlie\"\n"
  25642. " ,(local-file \"charlie.pub\")))))\n"
  25643. msgstr ""
  25644. #. type: deftp
  25645. #: guix-git/doc/guix.texi:17218
  25646. #, no-wrap
  25647. msgid "{Data Type} openssh-configuration"
  25648. msgstr ""
  25649. #. type: deftp
  25650. #: guix-git/doc/guix.texi:17220
  25651. msgid "This is the configuration record for OpenSSH's @command{sshd}."
  25652. msgstr ""
  25653. #. type: item
  25654. #: guix-git/doc/guix.texi:17222
  25655. #, fuzzy, no-wrap
  25656. msgid "@code{openssh} (default @var{openssh})"
  25657. msgstr "@code{gnome}(默认值:@code{gnome})"
  25658. #. type: table
  25659. #: guix-git/doc/guix.texi:17224
  25660. #, fuzzy
  25661. msgid "The Openssh package to use."
  25662. msgstr "软件包数据类型。"
  25663. #. type: item
  25664. #: guix-git/doc/guix.texi:17225
  25665. #, no-wrap
  25666. msgid "@code{pid-file} (default: @code{\"/var/run/sshd.pid\"})"
  25667. msgstr ""
  25668. #. type: table
  25669. #: guix-git/doc/guix.texi:17227
  25670. msgid "Name of the file where @command{sshd} writes its PID."
  25671. msgstr ""
  25672. #. type: item
  25673. #: guix-git/doc/guix.texi:17228
  25674. #, no-wrap
  25675. msgid "@code{port-number} (default: @code{22})"
  25676. msgstr ""
  25677. #. type: table
  25678. #: guix-git/doc/guix.texi:17230
  25679. msgid "TCP port on which @command{sshd} listens for incoming connections."
  25680. msgstr ""
  25681. #. type: item
  25682. #: guix-git/doc/guix.texi:17231
  25683. #, no-wrap
  25684. msgid "@code{permit-root-login} (default: @code{#f})"
  25685. msgstr ""
  25686. #. type: table
  25687. #: guix-git/doc/guix.texi:17236
  25688. msgid "This field determines whether and when to allow logins as root. If @code{#f}, root logins are disallowed; if @code{#t}, they are allowed. If it's the symbol @code{'prohibit-password}, then root logins are permitted but not with password-based authentication."
  25689. msgstr ""
  25690. #. type: item
  25691. #: guix-git/doc/guix.texi:17237 guix-git/doc/guix.texi:17398
  25692. #, no-wrap
  25693. msgid "@code{allow-empty-passwords?} (default: @code{#f})"
  25694. msgstr ""
  25695. #. type: table
  25696. #: guix-git/doc/guix.texi:17240
  25697. msgid "When true, users with empty passwords may log in. When false, they may not."
  25698. msgstr ""
  25699. #. type: item
  25700. #: guix-git/doc/guix.texi:17241 guix-git/doc/guix.texi:17401
  25701. #, no-wrap
  25702. msgid "@code{password-authentication?} (default: @code{#t})"
  25703. msgstr ""
  25704. #. type: table
  25705. #: guix-git/doc/guix.texi:17244
  25706. msgid "When true, users may log in with their password. When false, they have other authentication methods."
  25707. msgstr ""
  25708. #. type: item
  25709. #: guix-git/doc/guix.texi:17245
  25710. #, no-wrap
  25711. msgid "@code{public-key-authentication?} (default: @code{#t})"
  25712. msgstr ""
  25713. #. type: table
  25714. #: guix-git/doc/guix.texi:17248
  25715. msgid "When true, users may log in using public key authentication. When false, users have to use other authentication method."
  25716. msgstr ""
  25717. #. type: table
  25718. #: guix-git/doc/guix.texi:17251
  25719. msgid "Authorized public keys are stored in @file{~/.ssh/authorized_keys}. This is used only by protocol version 2."
  25720. msgstr ""
  25721. #. type: item
  25722. #: guix-git/doc/guix.texi:17252
  25723. #, no-wrap
  25724. msgid "@code{x11-forwarding?} (default: @code{#f})"
  25725. msgstr ""
  25726. #. type: table
  25727. #: guix-git/doc/guix.texi:17256
  25728. msgid "When true, forwarding of X11 graphical client connections is enabled---in other words, @command{ssh} options @option{-X} and @option{-Y} will work."
  25729. msgstr ""
  25730. #. type: item
  25731. #: guix-git/doc/guix.texi:17257
  25732. #, no-wrap
  25733. msgid "@code{allow-agent-forwarding?} (default: @code{#t})"
  25734. msgstr ""
  25735. #. type: table
  25736. #: guix-git/doc/guix.texi:17259
  25737. msgid "Whether to allow agent forwarding."
  25738. msgstr ""
  25739. #. type: item
  25740. #: guix-git/doc/guix.texi:17260
  25741. #, no-wrap
  25742. msgid "@code{allow-tcp-forwarding?} (default: @code{#t})"
  25743. msgstr ""
  25744. #. type: table
  25745. #: guix-git/doc/guix.texi:17262
  25746. msgid "Whether to allow TCP forwarding."
  25747. msgstr ""
  25748. #. type: item
  25749. #: guix-git/doc/guix.texi:17263
  25750. #, no-wrap
  25751. msgid "@code{gateway-ports?} (default: @code{#f})"
  25752. msgstr ""
  25753. #. type: table
  25754. #: guix-git/doc/guix.texi:17265
  25755. msgid "Whether to allow gateway ports."
  25756. msgstr ""
  25757. #. type: item
  25758. #: guix-git/doc/guix.texi:17266
  25759. #, no-wrap
  25760. msgid "@code{challenge-response-authentication?} (default: @code{#f})"
  25761. msgstr ""
  25762. #. type: table
  25763. #: guix-git/doc/guix.texi:17269
  25764. msgid "Specifies whether challenge response authentication is allowed (e.g.@: via PAM)."
  25765. msgstr ""
  25766. #. type: item
  25767. #: guix-git/doc/guix.texi:17270
  25768. #, no-wrap
  25769. msgid "@code{use-pam?} (default: @code{#t})"
  25770. msgstr ""
  25771. #. type: table
  25772. #: guix-git/doc/guix.texi:17276
  25773. msgid "Enables the Pluggable Authentication Module interface. If set to @code{#t}, this will enable PAM authentication using @code{challenge-response-authentication?} and @code{password-authentication?}, in addition to PAM account and session module processing for all authentication types."
  25774. msgstr ""
  25775. #. type: table
  25776. #: guix-git/doc/guix.texi:17281
  25777. msgid "Because PAM challenge response authentication usually serves an equivalent role to password authentication, you should disable either @code{challenge-response-authentication?} or @code{password-authentication?}."
  25778. msgstr ""
  25779. #. type: item
  25780. #: guix-git/doc/guix.texi:17282
  25781. #, no-wrap
  25782. msgid "@code{print-last-log?} (default: @code{#t})"
  25783. msgstr ""
  25784. #. type: table
  25785. #: guix-git/doc/guix.texi:17285
  25786. msgid "Specifies whether @command{sshd} should print the date and time of the last user login when a user logs in interactively."
  25787. msgstr ""
  25788. #. type: item
  25789. #: guix-git/doc/guix.texi:17286
  25790. #, no-wrap
  25791. msgid "@code{subsystems} (default: @code{'((\"sftp\" \"internal-sftp\"))})"
  25792. msgstr ""
  25793. #. type: table
  25794. #: guix-git/doc/guix.texi:17288
  25795. msgid "Configures external subsystems (e.g.@: file transfer daemon)."
  25796. msgstr ""
  25797. #. type: table
  25798. #: guix-git/doc/guix.texi:17292
  25799. msgid "This is a list of two-element lists, each of which containing the subsystem name and a command (with optional arguments) to execute upon subsystem request."
  25800. msgstr ""
  25801. #. type: table
  25802. #: guix-git/doc/guix.texi:17295
  25803. msgid "The command @command{internal-sftp} implements an in-process SFTP server. Alternatively, one can specify the @command{sftp-server} command:"
  25804. msgstr ""
  25805. #. type: lisp
  25806. #: guix-git/doc/guix.texi:17300
  25807. #, no-wrap
  25808. msgid ""
  25809. "(service openssh-service-type\n"
  25810. " (openssh-configuration\n"
  25811. " (subsystems\n"
  25812. " `((\"sftp\" ,(file-append openssh \"/libexec/sftp-server\"))))))\n"
  25813. msgstr ""
  25814. #. type: item
  25815. #: guix-git/doc/guix.texi:17302
  25816. #, no-wrap
  25817. msgid "@code{accepted-environment} (default: @code{'()})"
  25818. msgstr ""
  25819. #. type: table
  25820. #: guix-git/doc/guix.texi:17304
  25821. msgid "List of strings describing which environment variables may be exported."
  25822. msgstr ""
  25823. #. type: table
  25824. #: guix-git/doc/guix.texi:17307
  25825. msgid "Each string gets on its own line. See the @code{AcceptEnv} option in @code{man sshd_config}."
  25826. msgstr ""
  25827. #. type: table
  25828. #: guix-git/doc/guix.texi:17312
  25829. msgid "This example allows ssh-clients to export the @env{COLORTERM} variable. It is set by terminal emulators, which support colors. You can use it in your shell's resource file to enable colors for the prompt and commands if this variable is set."
  25830. msgstr ""
  25831. #. type: lisp
  25832. #: guix-git/doc/guix.texi:17317
  25833. #, no-wrap
  25834. msgid ""
  25835. "(service openssh-service-type\n"
  25836. " (openssh-configuration\n"
  25837. " (accepted-environment '(\"COLORTERM\"))))\n"
  25838. msgstr ""
  25839. #. type: item
  25840. #: guix-git/doc/guix.texi:17319
  25841. #, no-wrap
  25842. msgid "@code{authorized-keys} (default: @code{'()})"
  25843. msgstr ""
  25844. #. type: cindex
  25845. #: guix-git/doc/guix.texi:17320
  25846. #, no-wrap
  25847. msgid "authorized keys, SSH"
  25848. msgstr ""
  25849. #. type: cindex
  25850. #: guix-git/doc/guix.texi:17321
  25851. #, no-wrap
  25852. msgid "SSH authorized keys"
  25853. msgstr ""
  25854. #. type: table
  25855. #: guix-git/doc/guix.texi:17325
  25856. msgid "This is the list of authorized keys. Each element of the list is a user name followed by one or more file-like objects that represent SSH public keys. For example:"
  25857. msgstr ""
  25858. #. type: lisp
  25859. #: guix-git/doc/guix.texi:17332
  25860. #, no-wrap
  25861. msgid ""
  25862. "(openssh-configuration\n"
  25863. " (authorized-keys\n"
  25864. " `((\"rekado\" ,(local-file \"rekado.pub\"))\n"
  25865. " (\"chris\" ,(local-file \"chris.pub\"))\n"
  25866. " (\"root\" ,(local-file \"rekado.pub\") ,(local-file \"chris.pub\")))))\n"
  25867. msgstr ""
  25868. #. type: table
  25869. #: guix-git/doc/guix.texi:17337
  25870. msgid "registers the specified public keys for user accounts @code{rekado}, @code{chris}, and @code{root}."
  25871. msgstr ""
  25872. #. type: table
  25873. #: guix-git/doc/guix.texi:17340
  25874. msgid "Additional authorized keys can be specified @i{via} @code{service-extension}."
  25875. msgstr ""
  25876. #. type: table
  25877. #: guix-git/doc/guix.texi:17343
  25878. msgid "Note that this does @emph{not} interfere with the use of @file{~/.ssh/authorized_keys}."
  25879. msgstr ""
  25880. #. type: item
  25881. #: guix-git/doc/guix.texi:17344 guix-git/doc/guix.texi:17775
  25882. #, no-wrap
  25883. msgid "@code{log-level} (default: @code{'info})"
  25884. msgstr ""
  25885. #. type: table
  25886. #: guix-git/doc/guix.texi:17348
  25887. msgid "This is a symbol specifying the logging level: @code{quiet}, @code{fatal}, @code{error}, @code{info}, @code{verbose}, @code{debug}, etc. See the man page for @file{sshd_config} for the full list of level names."
  25888. msgstr ""
  25889. #. type: item
  25890. #: guix-git/doc/guix.texi:17349 guix-git/doc/guix.texi:20171
  25891. #: guix-git/doc/guix.texi:25311
  25892. #, no-wrap
  25893. msgid "@code{extra-content} (default: @code{\"\"})"
  25894. msgstr ""
  25895. #. type: table
  25896. #: guix-git/doc/guix.texi:17354
  25897. msgid "This field can be used to append arbitrary text to the configuration file. It is especially useful for elaborate configurations that cannot be expressed otherwise. This configuration, for example, would generally disable root logins, but permit them from one specific IP address:"
  25898. msgstr ""
  25899. #. type: lisp
  25900. #: guix-git/doc/guix.texi:17360
  25901. #, no-wrap
  25902. msgid ""
  25903. "(openssh-configuration\n"
  25904. " (extra-content \"\\\n"
  25905. "Match Address 192.168.0.1\n"
  25906. " PermitRootLogin yes\"))\n"
  25907. msgstr ""
  25908. #. type: deffn
  25909. #: guix-git/doc/guix.texi:17365
  25910. #, no-wrap
  25911. msgid "{Scheme Procedure} dropbear-service [@var{config}]"
  25912. msgstr ""
  25913. #. type: deffn
  25914. #: guix-git/doc/guix.texi:17369
  25915. msgid "Run the @uref{https://matt.ucc.asn.au/dropbear/dropbear.html,Dropbear SSH daemon} with the given @var{config}, a @code{<dropbear-configuration>} object."
  25916. msgstr ""
  25917. #. type: deffn
  25918. #: guix-git/doc/guix.texi:17372
  25919. msgid "For example, to specify a Dropbear service listening on port 1234, add this call to the operating system's @code{services} field:"
  25920. msgstr ""
  25921. #. type: lisp
  25922. #: guix-git/doc/guix.texi:17376
  25923. #, no-wrap
  25924. msgid ""
  25925. "(dropbear-service (dropbear-configuration\n"
  25926. " (port-number 1234)))\n"
  25927. msgstr ""
  25928. #. type: deftp
  25929. #: guix-git/doc/guix.texi:17379
  25930. #, no-wrap
  25931. msgid "{Data Type} dropbear-configuration"
  25932. msgstr ""
  25933. #. type: deftp
  25934. #: guix-git/doc/guix.texi:17381
  25935. msgid "This data type represents the configuration of a Dropbear SSH daemon."
  25936. msgstr ""
  25937. #. type: item
  25938. #: guix-git/doc/guix.texi:17383
  25939. #, no-wrap
  25940. msgid "@code{dropbear} (default: @var{dropbear})"
  25941. msgstr ""
  25942. #. type: table
  25943. #: guix-git/doc/guix.texi:17385
  25944. msgid "The Dropbear package to use."
  25945. msgstr ""
  25946. #. type: item
  25947. #: guix-git/doc/guix.texi:17386
  25948. #, no-wrap
  25949. msgid "@code{port-number} (default: 22)"
  25950. msgstr ""
  25951. #. type: table
  25952. #: guix-git/doc/guix.texi:17388
  25953. msgid "The TCP port where the daemon waits for incoming connections."
  25954. msgstr ""
  25955. #. type: item
  25956. #: guix-git/doc/guix.texi:17389
  25957. #, no-wrap
  25958. msgid "@code{syslog-output?} (default: @code{#t})"
  25959. msgstr ""
  25960. #. type: table
  25961. #: guix-git/doc/guix.texi:17391
  25962. msgid "Whether to enable syslog output."
  25963. msgstr ""
  25964. #. type: item
  25965. #: guix-git/doc/guix.texi:17392
  25966. #, no-wrap
  25967. msgid "@code{pid-file} (default: @code{\"/var/run/dropbear.pid\"})"
  25968. msgstr ""
  25969. #. type: table
  25970. #: guix-git/doc/guix.texi:17394
  25971. msgid "File name of the daemon's PID file."
  25972. msgstr ""
  25973. #. type: item
  25974. #: guix-git/doc/guix.texi:17395
  25975. #, no-wrap
  25976. msgid "@code{root-login?} (default: @code{#f})"
  25977. msgstr ""
  25978. #. type: table
  25979. #: guix-git/doc/guix.texi:17397
  25980. msgid "Whether to allow @code{root} logins."
  25981. msgstr ""
  25982. #. type: table
  25983. #: guix-git/doc/guix.texi:17400
  25984. msgid "Whether to allow empty passwords."
  25985. msgstr ""
  25986. #. type: table
  25987. #: guix-git/doc/guix.texi:17403
  25988. msgid "Whether to enable password-based authentication."
  25989. msgstr ""
  25990. #. type: cindex
  25991. #: guix-git/doc/guix.texi:17406
  25992. #, no-wrap
  25993. msgid "AutoSSH"
  25994. msgstr ""
  25995. #. type: deffn
  25996. #: guix-git/doc/guix.texi:17407
  25997. #, no-wrap
  25998. msgid "{Scheme Variable} autossh-service-type"
  25999. msgstr ""
  26000. #. type: deffn
  26001. #: guix-git/doc/guix.texi:17415
  26002. msgid "This is the type for the @uref{https://www.harding.motd.ca/autossh, AutoSSH} program that runs a copy of @command{ssh} and monitors it, restarting it as necessary should it die or stop passing traffic. AutoSSH can be run manually from the command-line by passing arguments to the binary @command{autossh} from the package @code{autossh}, but it can also be run as a Guix service. This latter use case is documented here."
  26003. msgstr ""
  26004. #. type: deffn
  26005. #: guix-git/doc/guix.texi:17419
  26006. msgid "AutoSSH can be used to forward local traffic to a remote machine using an SSH tunnel, and it respects the @file{~/.ssh/config} of the user it is run as."
  26007. msgstr ""
  26008. #. type: deffn
  26009. #: guix-git/doc/guix.texi:17424
  26010. msgid "For example, to specify a service running autossh as the user @code{pino} and forwarding all local connections to port @code{8081} to @code{remote:8081} using an SSH tunnel, add this call to the operating system's @code{services} field:"
  26011. msgstr ""
  26012. #. type: lisp
  26013. #: guix-git/doc/guix.texi:17430
  26014. #, no-wrap
  26015. msgid ""
  26016. "(service autossh-service-type\n"
  26017. " (autossh-configuration\n"
  26018. " (user \"pino\")\n"
  26019. " (ssh-options (list \"-T\" \"-N\" \"-L\" \"8081:localhost:8081\" \"remote.net\"))))\n"
  26020. msgstr ""
  26021. #. type: deftp
  26022. #: guix-git/doc/guix.texi:17433
  26023. #, no-wrap
  26024. msgid "{Data Type} autossh-configuration"
  26025. msgstr ""
  26026. #. type: deftp
  26027. #: guix-git/doc/guix.texi:17435
  26028. msgid "This data type represents the configuration of an AutoSSH service."
  26029. msgstr ""
  26030. #. type: item
  26031. #: guix-git/doc/guix.texi:17438
  26032. #, fuzzy, no-wrap
  26033. msgid "@code{user} (default @code{\"autossh\"})"
  26034. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  26035. #. type: table
  26036. #: guix-git/doc/guix.texi:17441
  26037. msgid "The user as which the AutoSSH service is to be run. This assumes that the specified user exists."
  26038. msgstr ""
  26039. #. type: item
  26040. #: guix-git/doc/guix.texi:17442
  26041. #, fuzzy, no-wrap
  26042. msgid "@code{poll} (default @code{600})"
  26043. msgstr "@code{port}(默认值:@code{22})"
  26044. #. type: table
  26045. #: guix-git/doc/guix.texi:17444
  26046. msgid "Specifies the connection poll time in seconds."
  26047. msgstr ""
  26048. #. type: item
  26049. #: guix-git/doc/guix.texi:17445
  26050. #, fuzzy, no-wrap
  26051. msgid "@code{first-poll} (default @code{#f})"
  26052. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  26053. #. type: table
  26054. #: guix-git/doc/guix.texi:17451
  26055. msgid "Specifies how many seconds AutoSSH waits before the first connection test. After this first test, polling is resumed at the pace defined in @code{poll}. When set to @code{#f}, the first poll is not treated specially and will also use the connection poll specified in @code{poll}."
  26056. msgstr ""
  26057. #. type: item
  26058. #: guix-git/doc/guix.texi:17452
  26059. #, fuzzy, no-wrap
  26060. msgid "@code{gate-time} (default @code{30})"
  26061. msgstr "@code{mate}(默认值:@code{mate})"
  26062. #. type: table
  26063. #: guix-git/doc/guix.texi:17455
  26064. msgid "Specifies how many seconds an SSH connection must be active before it is considered successful."
  26065. msgstr ""
  26066. #. type: item
  26067. #: guix-git/doc/guix.texi:17456
  26068. #, fuzzy, no-wrap
  26069. msgid "@code{log-level} (default @code{1})"
  26070. msgstr "@code{speed}(默认值:@code{1.0})"
  26071. #. type: table
  26072. #: guix-git/doc/guix.texi:17459
  26073. msgid "The log level, corresponding to the levels used by syslog---so @code{0} is the most silent while @code{7} is the chattiest."
  26074. msgstr ""
  26075. #. type: item
  26076. #: guix-git/doc/guix.texi:17460
  26077. #, fuzzy, no-wrap
  26078. msgid "@code{max-start} (default @code{#f})"
  26079. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  26080. #. type: table
  26081. #: guix-git/doc/guix.texi:17463
  26082. msgid "The maximum number of times SSH may be (re)started before AutoSSH exits. When set to @code{#f}, no maximum is configured and AutoSSH may restart indefinitely."
  26083. msgstr ""
  26084. #. type: item
  26085. #: guix-git/doc/guix.texi:17464
  26086. #, fuzzy, no-wrap
  26087. msgid "@code{message} (default @code{\"\"})"
  26088. msgstr "@code{display}(默认值:@code{\":0\"})"
  26089. #. type: table
  26090. #: guix-git/doc/guix.texi:17466
  26091. msgid "The message to append to the echo message sent when testing connections."
  26092. msgstr ""
  26093. #. type: item
  26094. #: guix-git/doc/guix.texi:17467
  26095. #, fuzzy, no-wrap
  26096. msgid "@code{port} (default @code{\"0\"})"
  26097. msgstr "@code{port}(默认值:@code{22})"
  26098. #. type: table
  26099. #: guix-git/doc/guix.texi:17477
  26100. msgid "The ports used for monitoring the connection. When set to @code{\"0\"}, monitoring is disabled. When set to @code{\"@var{n}\"} where @var{n} is a positive integer, ports @var{n} and @var{n}+1 are used for monitoring the connection, such that port @var{n} is the base monitoring port and @code{n+1} is the echo port. When set to @code{\"@var{n}:@var{m}\"} where @var{n} and @var{m} are positive integers, the ports @var{n} and @var{m} are used for monitoring the connection, such that port @var{n} is the base monitoring port and @var{m} is the echo port."
  26101. msgstr ""
  26102. #. type: item
  26103. #: guix-git/doc/guix.texi:17478
  26104. #, fuzzy, no-wrap
  26105. msgid "@code{ssh-options} (default @code{'()})"
  26106. msgstr "@code{includes}(默认值:@code{'()})"
  26107. #. type: table
  26108. #: guix-git/doc/guix.texi:17482
  26109. msgid "The list of command-line arguments to pass to @command{ssh} when it is run. Options @option{-f} and @option{-M} are reserved for AutoSSH and may cause undefined behaviour."
  26110. msgstr ""
  26111. #. type: cindex
  26112. #: guix-git/doc/guix.texi:17486
  26113. #, no-wrap
  26114. msgid "WebSSH"
  26115. msgstr ""
  26116. #. type: deffn
  26117. #: guix-git/doc/guix.texi:17487
  26118. #, no-wrap
  26119. msgid "{Scheme Variable} webssh-service-type"
  26120. msgstr ""
  26121. #. type: deffn
  26122. #: guix-git/doc/guix.texi:17493
  26123. msgid "This is the type for the @uref{https://webssh.huashengdun.org/, WebSSH} program that runs a web SSH client. WebSSH can be run manually from the command-line by passing arguments to the binary @command{wssh} from the package @code{webssh}, but it can also be run as a Guix service. This latter use case is documented here."
  26124. msgstr ""
  26125. #. type: deffn
  26126. #: guix-git/doc/guix.texi:17499
  26127. msgid "For example, to specify a service running WebSSH on loopback interface on port @code{8888} with reject policy with a list of allowed to connection hosts, and NGINX as a reverse-proxy to this service listening for HTTPS connection, add this call to the operating system's @code{services} field:"
  26128. msgstr ""
  26129. #. type: lisp
  26130. #: guix-git/doc/guix.texi:17507
  26131. #, no-wrap
  26132. msgid ""
  26133. "(service webssh-service-type\n"
  26134. " (webssh-configuration (address \"127.0.0.1\")\n"
  26135. " (port 8888)\n"
  26136. " (policy 'reject)\n"
  26137. " (known-hosts '(\"localhost ecdsa-sha2-nistp256 AAAA…\"\n"
  26138. " \"127.0.0.1 ecdsa-sha2-nistp256 AAAA…\"))))\n"
  26139. "\n"
  26140. msgstr ""
  26141. #. type: lisp
  26142. #: guix-git/doc/guix.texi:17523
  26143. #, no-wrap
  26144. msgid ""
  26145. "(service nginx-service-type\n"
  26146. " (nginx-configuration\n"
  26147. " (server-blocks\n"
  26148. " (list\n"
  26149. " (nginx-server-configuration\n"
  26150. " (inherit %webssh-configuration-nginx)\n"
  26151. " (server-name '(\"webssh.example.com\"))\n"
  26152. " (listen '(\"443 ssl\"))\n"
  26153. " (ssl-certificate (letsencrypt-certificate \"webssh.example.com\"))\n"
  26154. " (ssl-certificate-key (letsencrypt-key \"webssh.example.com\"))\n"
  26155. " (locations\n"
  26156. " (cons (nginx-location-configuration\n"
  26157. " (uri \"/.well-known\")\n"
  26158. " (body '(\"root /var/www;\")))\n"
  26159. " (nginx-server-configuration-locations %webssh-configuration-nginx))))))))\n"
  26160. msgstr ""
  26161. #. type: deftp
  26162. #: guix-git/doc/guix.texi:17526
  26163. #, no-wrap
  26164. msgid "{Data Type} webssh-configuration"
  26165. msgstr ""
  26166. #. type: deftp
  26167. #: guix-git/doc/guix.texi:17528
  26168. msgid "Data type representing the configuration for @code{webssh-service}."
  26169. msgstr ""
  26170. #. type: item
  26171. #: guix-git/doc/guix.texi:17530
  26172. #, fuzzy, no-wrap
  26173. msgid "@code{package} (default: @var{webssh})"
  26174. msgstr "@code{xfce}(默认值:@code{xfce})"
  26175. #. type: table
  26176. #: guix-git/doc/guix.texi:17532
  26177. msgid "@code{webssh} package to use."
  26178. msgstr ""
  26179. #. type: item
  26180. #: guix-git/doc/guix.texi:17533
  26181. #, fuzzy, no-wrap
  26182. msgid "@code{user-name} (default: @var{\"webssh\"})"
  26183. msgstr "@code{gnome}(默认值:@code{gnome})"
  26184. #. type: table
  26185. #: guix-git/doc/guix.texi:17536
  26186. msgid "User name or user ID that file transfers to and from that module should take place."
  26187. msgstr ""
  26188. #. type: item
  26189. #: guix-git/doc/guix.texi:17537
  26190. #, fuzzy, no-wrap
  26191. msgid "@code{group-name} (default: @var{\"webssh\"})"
  26192. msgstr "@code{gnome}(默认值:@code{gnome})"
  26193. #. type: item
  26194. #: guix-git/doc/guix.texi:17540
  26195. #, fuzzy, no-wrap
  26196. msgid "@code{address} (default: @var{#f})"
  26197. msgstr "@code{challenge}(默认值:@code{#f})"
  26198. #. type: table
  26199. #: guix-git/doc/guix.texi:17542
  26200. msgid "IP address on which @command{webssh} listens for incoming connections."
  26201. msgstr ""
  26202. #. type: item
  26203. #: guix-git/doc/guix.texi:17543
  26204. #, fuzzy, no-wrap
  26205. msgid "@code{port} (default: @var{8888})"
  26206. msgstr "@code{port}(默认值:@code{22})"
  26207. #. type: table
  26208. #: guix-git/doc/guix.texi:17545
  26209. msgid "TCP port on which @command{webssh} listens for incoming connections."
  26210. msgstr ""
  26211. #. type: item
  26212. #: guix-git/doc/guix.texi:17546
  26213. #, fuzzy, no-wrap
  26214. msgid "@code{policy} (default: @var{#f})"
  26215. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  26216. #. type: table
  26217. #: guix-git/doc/guix.texi:17548
  26218. msgid "Connection policy. @var{reject} policy requires to specify @var{known-hosts}."
  26219. msgstr ""
  26220. #. type: item
  26221. #: guix-git/doc/guix.texi:17549
  26222. #, fuzzy, no-wrap
  26223. msgid "@code{known-hosts} (default: @var{'()})"
  26224. msgstr "@code{features} (@code{'()})"
  26225. #. type: table
  26226. #: guix-git/doc/guix.texi:17551
  26227. msgid "List of hosts which allowed for SSH connection from @command{webssh}."
  26228. msgstr ""
  26229. #. type: item
  26230. #: guix-git/doc/guix.texi:17552
  26231. #, fuzzy, no-wrap
  26232. msgid "@code{log-file} (default: @file{\"/var/log/webssh.log\"})"
  26233. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  26234. #. type: table
  26235. #: guix-git/doc/guix.texi:17554
  26236. msgid "Name of the file where @command{webssh} writes its log file."
  26237. msgstr ""
  26238. #. type: item
  26239. #: guix-git/doc/guix.texi:17555
  26240. #, fuzzy, no-wrap
  26241. msgid "@code{log-level} (default: @var{#f})"
  26242. msgstr "@code{challenge}(默认值:@code{#f})"
  26243. #. type: table
  26244. #: guix-git/doc/guix.texi:17557
  26245. msgid "Logging level."
  26246. msgstr ""
  26247. #. type: defvr
  26248. #: guix-git/doc/guix.texi:17561
  26249. #, no-wrap
  26250. msgid "{Scheme Variable} %facebook-host-aliases"
  26251. msgstr ""
  26252. #. type: defvr
  26253. #: guix-git/doc/guix.texi:17567
  26254. msgid "This variable contains a string for use in @file{/etc/hosts} (@pxref{Host Names,,, libc, The GNU C Library Reference Manual}). Each line contains a entry that maps a known server name of the Facebook on-line service---e.g., @code{www.facebook.com}---to the local host---@code{127.0.0.1} or its IPv6 equivalent, @code{::1}."
  26255. msgstr ""
  26256. #. type: defvr
  26257. #: guix-git/doc/guix.texi:17571
  26258. msgid "This variable is typically used in the @code{hosts-file} field of an @code{operating-system} declaration (@pxref{operating-system Reference, @file{/etc/hosts}}):"
  26259. msgstr ""
  26260. #. type: lisp
  26261. #: guix-git/doc/guix.texi:17584
  26262. #, no-wrap
  26263. msgid ""
  26264. "(operating-system\n"
  26265. " (host-name \"mymachine\")\n"
  26266. " ;; ...\n"
  26267. " (hosts-file\n"
  26268. " ;; Create a /etc/hosts file with aliases for \"localhost\"\n"
  26269. " ;; and \"mymachine\", as well as for Facebook servers.\n"
  26270. " (plain-file \"hosts\"\n"
  26271. " (string-append (local-host-aliases host-name)\n"
  26272. " %facebook-host-aliases))))\n"
  26273. msgstr ""
  26274. #. type: defvr
  26275. #: guix-git/doc/guix.texi:17588
  26276. msgid "This mechanism can prevent programs running locally, such as Web browsers, from accessing Facebook."
  26277. msgstr ""
  26278. #. type: Plain text
  26279. #: guix-git/doc/guix.texi:17591
  26280. msgid "The @code{(gnu services avahi)} provides the following definition."
  26281. msgstr ""
  26282. #. type: defvr
  26283. #: guix-git/doc/guix.texi:17592
  26284. #, no-wrap
  26285. msgid "{Scheme Variable} avahi-service-type"
  26286. msgstr ""
  26287. #. type: defvr
  26288. #: guix-git/doc/guix.texi:17597
  26289. msgid "This is the service that runs @command{avahi-daemon}, a system-wide mDNS/DNS-SD responder that allows for service discovery and ``zero-configuration'' host name lookups (see @uref{https://avahi.org/}). Its value must be an @code{avahi-configuration} record---see below."
  26290. msgstr ""
  26291. #. type: defvr
  26292. #: guix-git/doc/guix.texi:17602
  26293. msgid "This service extends the name service cache daemon (nscd) so that it can resolve @code{.local} host names using @uref{https://0pointer.de/lennart/projects/nss-mdns/, nss-mdns}. @xref{Name Service Switch}, for information on host name resolution."
  26294. msgstr ""
  26295. #. type: defvr
  26296. #: guix-git/doc/guix.texi:17605
  26297. msgid "Additionally, add the @var{avahi} package to the system profile so that commands such as @command{avahi-browse} are directly usable."
  26298. msgstr ""
  26299. #. type: deftp
  26300. #: guix-git/doc/guix.texi:17607
  26301. #, no-wrap
  26302. msgid "{Data Type} avahi-configuration"
  26303. msgstr ""
  26304. #. type: deftp
  26305. #: guix-git/doc/guix.texi:17609
  26306. msgid "Data type representation the configuration for Avahi."
  26307. msgstr ""
  26308. #. type: item
  26309. #: guix-git/doc/guix.texi:17612
  26310. #, no-wrap
  26311. msgid "@code{host-name} (default: @code{#f})"
  26312. msgstr ""
  26313. #. type: table
  26314. #: guix-git/doc/guix.texi:17615
  26315. msgid "If different from @code{#f}, use that as the host name to publish for this machine; otherwise, use the machine's actual host name."
  26316. msgstr ""
  26317. #. type: item
  26318. #: guix-git/doc/guix.texi:17616 guix-git/doc/guix.texi:27965
  26319. #, no-wrap
  26320. msgid "@code{publish?} (default: @code{#t})"
  26321. msgstr ""
  26322. #. type: table
  26323. #: guix-git/doc/guix.texi:17619
  26324. msgid "When true, allow host names and services to be published (broadcast) over the network."
  26325. msgstr ""
  26326. #. type: item
  26327. #: guix-git/doc/guix.texi:17620
  26328. #, no-wrap
  26329. msgid "@code{publish-workstation?} (default: @code{#t})"
  26330. msgstr ""
  26331. #. type: table
  26332. #: guix-git/doc/guix.texi:17624
  26333. msgid "When true, @command{avahi-daemon} publishes the machine's host name and IP address via mDNS on the local network. To view the host names published on your local network, you can run:"
  26334. msgstr ""
  26335. #. type: example
  26336. #: guix-git/doc/guix.texi:17627
  26337. #, no-wrap
  26338. msgid "avahi-browse _workstation._tcp\n"
  26339. msgstr ""
  26340. #. type: item
  26341. #: guix-git/doc/guix.texi:17629
  26342. #, no-wrap
  26343. msgid "@code{wide-area?} (default: @code{#f})"
  26344. msgstr ""
  26345. #. type: table
  26346. #: guix-git/doc/guix.texi:17631
  26347. msgid "When true, DNS-SD over unicast DNS is enabled."
  26348. msgstr ""
  26349. #. type: item
  26350. #: guix-git/doc/guix.texi:17632
  26351. #, no-wrap
  26352. msgid "@code{ipv4?} (default: @code{#t})"
  26353. msgstr ""
  26354. #. type: itemx
  26355. #: guix-git/doc/guix.texi:17633
  26356. #, no-wrap
  26357. msgid "@code{ipv6?} (default: @code{#t})"
  26358. msgstr ""
  26359. #. type: table
  26360. #: guix-git/doc/guix.texi:17635
  26361. msgid "These fields determine whether to use IPv4/IPv6 sockets."
  26362. msgstr ""
  26363. #. type: item
  26364. #: guix-git/doc/guix.texi:17636
  26365. #, no-wrap
  26366. msgid "@code{domains-to-browse} (default: @code{'()})"
  26367. msgstr ""
  26368. #. type: table
  26369. #: guix-git/doc/guix.texi:17638
  26370. msgid "This is a list of domains to browse."
  26371. msgstr ""
  26372. #. type: deffn
  26373. #: guix-git/doc/guix.texi:17641
  26374. #, no-wrap
  26375. msgid "{Scheme Variable} openvswitch-service-type"
  26376. msgstr ""
  26377. #. type: deffn
  26378. #: guix-git/doc/guix.texi:17645
  26379. msgid "This is the type of the @uref{https://www.openvswitch.org, Open vSwitch} service, whose value should be an @code{openvswitch-configuration} object."
  26380. msgstr ""
  26381. #. type: deftp
  26382. #: guix-git/doc/guix.texi:17647
  26383. #, no-wrap
  26384. msgid "{Data Type} openvswitch-configuration"
  26385. msgstr ""
  26386. #. type: deftp
  26387. #: guix-git/doc/guix.texi:17651
  26388. msgid "Data type representing the configuration of Open vSwitch, a multilayer virtual switch which is designed to enable massive network automation through programmatic extension."
  26389. msgstr ""
  26390. #. type: item
  26391. #: guix-git/doc/guix.texi:17653
  26392. #, no-wrap
  26393. msgid "@code{package} (default: @var{openvswitch})"
  26394. msgstr ""
  26395. #. type: table
  26396. #: guix-git/doc/guix.texi:17655
  26397. msgid "Package object of the Open vSwitch."
  26398. msgstr ""
  26399. #. type: defvr
  26400. #: guix-git/doc/guix.texi:17659
  26401. #, no-wrap
  26402. msgid "{Scheme Variable} pagekite-service-type"
  26403. msgstr ""
  26404. #. type: defvr
  26405. #: guix-git/doc/guix.texi:17664
  26406. msgid "This is the service type for the @uref{https://pagekite.net, PageKite} service, a tunneling solution for making localhost servers publicly visible, even from behind restrictive firewalls or NAT without forwarded ports. The value for this service type is a @code{pagekite-configuration} record."
  26407. msgstr ""
  26408. #. type: defvr
  26409. #: guix-git/doc/guix.texi:17666
  26410. msgid "Here's an example exposing the local HTTP and SSH daemons:"
  26411. msgstr ""
  26412. #. type: lisp
  26413. #: guix-git/doc/guix.texi:17673
  26414. #, no-wrap
  26415. msgid ""
  26416. "(service pagekite-service-type\n"
  26417. " (pagekite-configuration\n"
  26418. " (kites '(\"http:@@kitename:localhost:80:@@kitesecret\"\n"
  26419. " \"raw/22:@@kitename:localhost:22:@@kitesecret\"))\n"
  26420. " (extra-file \"/etc/pagekite.rc\")))\n"
  26421. msgstr ""
  26422. #. type: deftp
  26423. #: guix-git/doc/guix.texi:17676
  26424. #, fuzzy, no-wrap
  26425. msgid "{Data Type} pagekite-configuration"
  26426. msgstr "管理操作系统配置。"
  26427. #. type: deftp
  26428. #: guix-git/doc/guix.texi:17678
  26429. #, fuzzy
  26430. msgid "Data type representing the configuration of PageKite."
  26431. msgstr "管理操作系统配置。"
  26432. #. type: item
  26433. #: guix-git/doc/guix.texi:17680
  26434. #, fuzzy, no-wrap
  26435. msgid "@code{package} (default: @var{pagekite})"
  26436. msgstr "@code{mate}(默认值:@code{mate})"
  26437. #. type: table
  26438. #: guix-git/doc/guix.texi:17682
  26439. msgid "Package object of PageKite."
  26440. msgstr ""
  26441. #. type: item
  26442. #: guix-git/doc/guix.texi:17683
  26443. #, fuzzy, no-wrap
  26444. msgid "@code{kitename} (default: @code{#f})"
  26445. msgstr "@code{challenge}(默认值:@code{#f})"
  26446. #. type: table
  26447. #: guix-git/doc/guix.texi:17685
  26448. msgid "PageKite name for authenticating to the frontend server."
  26449. msgstr ""
  26450. #. type: item
  26451. #: guix-git/doc/guix.texi:17686
  26452. #, fuzzy, no-wrap
  26453. msgid "@code{kitesecret} (default: @code{#f})"
  26454. msgstr "@code{speed}(默认值:@code{1.0})"
  26455. #. type: table
  26456. #: guix-git/doc/guix.texi:17689
  26457. msgid "Shared secret for authenticating to the frontend server. You should probably put this inside @code{extra-file} instead."
  26458. msgstr ""
  26459. #. type: item
  26460. #: guix-git/doc/guix.texi:17690
  26461. #, fuzzy, no-wrap
  26462. msgid "@code{frontend} (default: @code{#f})"
  26463. msgstr "@code{journal-content}(默认值:@code{#f})"
  26464. #. type: table
  26465. #: guix-git/doc/guix.texi:17693
  26466. msgid "Connect to the named PageKite frontend server instead of the @uref{https://pagekite.net,,pagekite.net} service."
  26467. msgstr ""
  26468. #. type: item
  26469. #: guix-git/doc/guix.texi:17694
  26470. #, no-wrap
  26471. msgid "@code{kites} (default: @code{'(\"http:@@kitename:localhost:80:@@kitesecret\")})"
  26472. msgstr ""
  26473. #. type: table
  26474. #: guix-git/doc/guix.texi:17697
  26475. msgid "List of service kites to use. Exposes HTTP on port 80 by default. The format is @code{proto:kitename:host:port:secret}."
  26476. msgstr ""
  26477. #. type: item
  26478. #: guix-git/doc/guix.texi:17698
  26479. #, fuzzy, no-wrap
  26480. msgid "@code{extra-file} (default: @code{#f})"
  26481. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  26482. #. type: table
  26483. #: guix-git/doc/guix.texi:17701
  26484. msgid "Extra configuration file to read, which you are expected to create manually. Use this to add additional options and manage shared secrets out-of-band."
  26485. msgstr ""
  26486. #. type: defvr
  26487. #: guix-git/doc/guix.texi:17705
  26488. #, no-wrap
  26489. msgid "{Scheme Variable} yggdrasil-service-type"
  26490. msgstr ""
  26491. #. type: defvr
  26492. #: guix-git/doc/guix.texi:17709
  26493. msgid "The service type for connecting to the @uref{https://yggdrasil-network.github.io/, Yggdrasil network}, an early-stage implementation of a fully end-to-end encrypted IPv6 network."
  26494. msgstr ""
  26495. #. type: quotation
  26496. #: guix-git/doc/guix.texi:17716
  26497. msgid "Yggdrasil provides name-independent routing with cryptographically generated addresses. Static addressing means you can keep the same address as long as you want, even if you move to a new location, or generate a new address (by generating new keys) whenever you want. @uref{https://yggdrasil-network.github.io/2018/07/28/addressing.html}"
  26498. msgstr ""
  26499. #. type: defvr
  26500. #: guix-git/doc/guix.texi:17720
  26501. msgid "Pass it a value of @code{yggdrasil-configuration} to connect it to public peers and/or local peers."
  26502. msgstr ""
  26503. #. type: defvr
  26504. #: guix-git/doc/guix.texi:17724
  26505. msgid "Here is an example using public peers and a static address. The static signing and encryption keys are defined in @file{/etc/yggdrasil-private.conf} (the default value for @code{config-file})."
  26506. msgstr ""
  26507. #. type: lisp
  26508. #: guix-git/doc/guix.texi:17736
  26509. #, no-wrap
  26510. msgid ""
  26511. ";; part of the operating-system declaration\n"
  26512. "(service yggdrasil-service-type\n"
  26513. " (yggdrasil-configuration\n"
  26514. " (autoconf? #f) ;; use only the public peers\n"
  26515. " (json-config\n"
  26516. " ;; choose one from\n"
  26517. " ;; https://github.com/yggdrasil-network/public-peers\n"
  26518. " '((peers . #(\"tcp://1.2.3.4:1337\"))))\n"
  26519. " ;; /etc/yggdrasil-private.conf is the default value for config-file\n"
  26520. " ))\n"
  26521. msgstr ""
  26522. #. type: example
  26523. #: guix-git/doc/guix.texi:17743
  26524. #, no-wrap
  26525. msgid ""
  26526. "# sample content for /etc/yggdrasil-private.conf\n"
  26527. "@{\n"
  26528. " # Your public encryption key. Your peers may ask you for this to put\n"
  26529. " # into their AllowedEncryptionPublicKeys configuration.\n"
  26530. " EncryptionPublicKey: 378dc5...\n"
  26531. "\n"
  26532. msgstr ""
  26533. #. type: example
  26534. #: guix-git/doc/guix.texi:17746
  26535. #, no-wrap
  26536. msgid ""
  26537. " # Your private encryption key. DO NOT share this with anyone!\n"
  26538. " EncryptionPrivateKey: 0777...\n"
  26539. "\n"
  26540. msgstr ""
  26541. #. type: example
  26542. #: guix-git/doc/guix.texi:17750
  26543. #, no-wrap
  26544. msgid ""
  26545. " # Your public signing key. You should not ordinarily need to share\n"
  26546. " # this with anyone.\n"
  26547. " SigningPublicKey: e1664...\n"
  26548. "\n"
  26549. msgstr ""
  26550. #. type: example
  26551. #: guix-git/doc/guix.texi:17754
  26552. #, no-wrap
  26553. msgid ""
  26554. " # Your private signing key. DO NOT share this with anyone!\n"
  26555. " SigningPrivateKey: 0589d...\n"
  26556. "@}\n"
  26557. msgstr ""
  26558. #. type: deftp
  26559. #: guix-git/doc/guix.texi:17757
  26560. #, fuzzy, no-wrap
  26561. msgid "{Data Type} yggdrasil-configuration"
  26562. msgstr "{数据类型} build-machine"
  26563. #. type: deftp
  26564. #: guix-git/doc/guix.texi:17759
  26565. #, fuzzy
  26566. msgid "Data type representing the configuration of Yggdrasil."
  26567. msgstr "管理操作系统配置。"
  26568. #. type: item
  26569. #: guix-git/doc/guix.texi:17761
  26570. #, fuzzy, no-wrap
  26571. msgid "@code{package} (default: @code{yggdrasil})"
  26572. msgstr "@code{mate}(默认值:@code{mate})"
  26573. #. type: table
  26574. #: guix-git/doc/guix.texi:17763
  26575. msgid "Package object of Yggdrasil."
  26576. msgstr ""
  26577. #. type: item
  26578. #: guix-git/doc/guix.texi:17764
  26579. #, fuzzy, no-wrap
  26580. msgid "@code{json-config} (default: @code{'()})"
  26581. msgstr "@code{includes}(默认值:@code{'()})"
  26582. #. type: table
  26583. #: guix-git/doc/guix.texi:17770
  26584. msgid "Contents of @file{/etc/yggdrasil.conf}. Will be merged with @file{/etc/yggdrasil-private.conf}. Note that these settings are stored in the Guix store, which is readable to all users. @strong{Do not store your private keys in it}. See the output of @code{yggdrasil -genconf} for a quick overview of valid keys and their default values."
  26585. msgstr ""
  26586. #. type: item
  26587. #: guix-git/doc/guix.texi:17771
  26588. #, fuzzy, no-wrap
  26589. msgid "@code{autoconf?} (default: @code{#f})"
  26590. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  26591. #. type: table
  26592. #: guix-git/doc/guix.texi:17774
  26593. msgid "Whether to use automatic mode. Enabling it makes Yggdrasil use adynamic IP and peer with IPv6 neighbors."
  26594. msgstr ""
  26595. #. type: table
  26596. #: guix-git/doc/guix.texi:17777
  26597. msgid "How much detail to include in logs. Use @code{'debug} for more detail."
  26598. msgstr ""
  26599. #. type: item
  26600. #: guix-git/doc/guix.texi:17778
  26601. #, fuzzy, no-wrap
  26602. msgid "@code{log-to} (default: @code{'stdout})"
  26603. msgstr "@code{port}(默认值:@code{22})"
  26604. #. type: table
  26605. #: guix-git/doc/guix.texi:17782
  26606. msgid "Where to send logs. By default, the service logs standard output to @file{/var/log/yggdrasil.log}. The alternative is @code{'syslog}, which sends output to the running syslog service."
  26607. msgstr ""
  26608. #. type: item
  26609. #: guix-git/doc/guix.texi:17783
  26610. #, fuzzy, no-wrap
  26611. msgid "@code{config-file} (default: @code{\"/etc/yggdrasil-private.conf\"})"
  26612. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  26613. #. type: table
  26614. #: guix-git/doc/guix.texi:17790
  26615. msgid "What HJSON file to load sensitive data from. This is where private keys should be stored, which are necessary to specify if you don't want a randomized address after each restart. Use @code{#f} to disable. Options defined in this file take precedence over @code{json-config}. Use the output of @code{yggdrasil -genconf} as a starting point. To configure a static address, delete everything except these options:"
  26616. msgstr ""
  26617. #. type: code{#1}
  26618. #: guix-git/doc/guix.texi:17792
  26619. #, no-wrap
  26620. msgid "EncryptionPublicKey"
  26621. msgstr ""
  26622. #. type: code{#1}
  26623. #: guix-git/doc/guix.texi:17793
  26624. #, no-wrap
  26625. msgid "EncryptionPrivateKey"
  26626. msgstr ""
  26627. #. type: code{#1}
  26628. #: guix-git/doc/guix.texi:17794
  26629. #, no-wrap
  26630. msgid "SigningPublicKey"
  26631. msgstr ""
  26632. #. type: code{#1}
  26633. #: guix-git/doc/guix.texi:17795
  26634. #, no-wrap
  26635. msgid "SigningPrivateKey"
  26636. msgstr ""
  26637. #. type: cindex
  26638. #: guix-git/doc/guix.texi:17800
  26639. #, no-wrap
  26640. msgid "IPFS"
  26641. msgstr ""
  26642. #. type: defvr
  26643. #: guix-git/doc/guix.texi:17801
  26644. #, no-wrap
  26645. msgid "{Scheme Variable} ipfs-service-type"
  26646. msgstr ""
  26647. #. type: defvr
  26648. #: guix-git/doc/guix.texi:17805
  26649. msgid "The service type for connecting to the @uref{https://ipfs.io,IPFS network}, a global, versioned, peer-to-peer file system. Pass it a @code{ipfs-configuration} to change the ports used for the gateway and API."
  26650. msgstr ""
  26651. #. type: defvr
  26652. #: guix-git/doc/guix.texi:17807
  26653. msgid "Here's an example configuration, using some non-standard ports:"
  26654. msgstr ""
  26655. #. type: lisp
  26656. #: guix-git/doc/guix.texi:17813
  26657. #, no-wrap
  26658. msgid ""
  26659. "(service ipfs-service-type\n"
  26660. " (ipfs-configuration\n"
  26661. " (gateway \"/ip4/127.0.0.1/tcp/8880\")\n"
  26662. " (api \"/ip4/127.0.0.1/tcp/8881\")))\n"
  26663. msgstr ""
  26664. #. type: deftp
  26665. #: guix-git/doc/guix.texi:17816
  26666. #, fuzzy, no-wrap
  26667. msgid "{Data Type} ipfs-configuration"
  26668. msgstr "系统配置"
  26669. #. type: deftp
  26670. #: guix-git/doc/guix.texi:17818
  26671. #, fuzzy
  26672. msgid "Data type representing the configuration of IPFS."
  26673. msgstr "管理操作系统配置。"
  26674. #. type: item
  26675. #: guix-git/doc/guix.texi:17820
  26676. #, fuzzy, no-wrap
  26677. msgid "@code{package} (default: @code{go-ipfs})"
  26678. msgstr "@code{mate}(默认值:@code{mate})"
  26679. #. type: table
  26680. #: guix-git/doc/guix.texi:17822
  26681. msgid "Package object of IPFS."
  26682. msgstr ""
  26683. #. type: item
  26684. #: guix-git/doc/guix.texi:17823
  26685. #, fuzzy, no-wrap
  26686. msgid "@code{gateway} (default: @code{\"/ip4/127.0.0.1/tcp/8082\"})"
  26687. msgstr "@code{speed}(默认值:@code{1.0})"
  26688. #. type: table
  26689. #: guix-git/doc/guix.texi:17825
  26690. msgid "Address of the gateway, in ‘multiaddress’ format."
  26691. msgstr ""
  26692. #. type: item
  26693. #: guix-git/doc/guix.texi:17826
  26694. #, fuzzy, no-wrap
  26695. msgid "@code{api} (default: @code{\"/ip4/127.0.0.1/tcp/5001\"})"
  26696. msgstr "@code{speed}(默认值:@code{1.0})"
  26697. #. type: table
  26698. #: guix-git/doc/guix.texi:17828
  26699. msgid "Address of the API endpoint, in ‘multiaddress’ format."
  26700. msgstr ""
  26701. #. type: cindex
  26702. #: guix-git/doc/guix.texi:17831
  26703. #, no-wrap
  26704. msgid "keepalived"
  26705. msgstr ""
  26706. #. type: deffn
  26707. #: guix-git/doc/guix.texi:17832
  26708. #, no-wrap
  26709. msgid "{Scheme Variable} keepalived-service-type"
  26710. msgstr ""
  26711. #. type: deffn
  26712. #: guix-git/doc/guix.texi:17837
  26713. msgid "This is the type for the @uref{https://www.keepalived.org/, Keepalived} routing software, @command{keepalived}. Its value must be an @code{keepalived-configuration} record as in this example for master machine:"
  26714. msgstr ""
  26715. #. type: lisp
  26716. #: guix-git/doc/guix.texi:17842
  26717. #, fuzzy, no-wrap
  26718. msgid ""
  26719. "(service keepalived-service-type\n"
  26720. " (keepalived-configuration\n"
  26721. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  26722. msgstr ""
  26723. "(service qemu-binfmt-service-type\n"
  26724. " (qemu-binfmt-configuration\n"
  26725. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  26726. " (guix-support? #t)))\n"
  26727. #. type: deffn
  26728. #: guix-git/doc/guix.texi:17845
  26729. msgid "where @file{keepalived-master.conf}:"
  26730. msgstr ""
  26731. #. type: example
  26732. #: guix-git/doc/guix.texi:17857
  26733. #, no-wrap
  26734. msgid ""
  26735. "vrrp_instance my-group @{\n"
  26736. " state MASTER\n"
  26737. " interface enp9s0\n"
  26738. " virtual_router_id 100\n"
  26739. " priority 100\n"
  26740. " unicast_peer @{ 10.0.0.2 @}\n"
  26741. " virtual_ipaddress @{\n"
  26742. " 10.0.0.4/24\n"
  26743. " @}\n"
  26744. "@}\n"
  26745. msgstr ""
  26746. #. type: deffn
  26747. #: guix-git/doc/guix.texi:17860
  26748. msgid "and for backup machine:"
  26749. msgstr ""
  26750. #. type: lisp
  26751. #: guix-git/doc/guix.texi:17865
  26752. #, fuzzy, no-wrap
  26753. msgid ""
  26754. "(service keepalived-service-type\n"
  26755. " (keepalived-configuration\n"
  26756. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  26757. msgstr ""
  26758. "(service qemu-binfmt-service-type\n"
  26759. " (qemu-binfmt-configuration\n"
  26760. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  26761. " (guix-support? #t)))\n"
  26762. #. type: deffn
  26763. #: guix-git/doc/guix.texi:17868
  26764. msgid "where @file{keepalived-backup.conf}:"
  26765. msgstr ""
  26766. #. type: example
  26767. #: guix-git/doc/guix.texi:17880
  26768. #, no-wrap
  26769. msgid ""
  26770. "vrrp_instance my-group @{\n"
  26771. " state BACKUP\n"
  26772. " interface enp9s0\n"
  26773. " virtual_router_id 100\n"
  26774. " priority 99\n"
  26775. " unicast_peer @{ 10.0.0.3 @}\n"
  26776. " virtual_ipaddress @{\n"
  26777. " 10.0.0.4/24\n"
  26778. " @}\n"
  26779. "@}\n"
  26780. msgstr ""
  26781. #. type: cindex
  26782. #: guix-git/doc/guix.texi:17886
  26783. #, no-wrap
  26784. msgid "unattended upgrades"
  26785. msgstr ""
  26786. #. type: cindex
  26787. #: guix-git/doc/guix.texi:17887
  26788. #, no-wrap
  26789. msgid "upgrades, unattended"
  26790. msgstr ""
  26791. #. type: Plain text
  26792. #: guix-git/doc/guix.texi:17892
  26793. msgid "Guix provides a service to perform @emph{unattended upgrades}: periodically, the system automatically reconfigures itself from the latest Guix. Guix System has several properties that make unattended upgrades safe:"
  26794. msgstr ""
  26795. #. type: itemize
  26796. #: guix-git/doc/guix.texi:17897
  26797. msgid "upgrades are transactional (either the upgrade succeeds or it fails, but you cannot end up with an ``in-between'' system state);"
  26798. msgstr ""
  26799. #. type: itemize
  26800. #: guix-git/doc/guix.texi:17901
  26801. msgid "the upgrade log is kept---you can view it with @command{guix system list-generations}---and you can roll back to any previous generation, should the upgraded system fail to behave as intended;"
  26802. msgstr ""
  26803. #. type: itemize
  26804. #: guix-git/doc/guix.texi:17904
  26805. msgid "channel code is authenticated so you know you can only run genuine code (@pxref{Channels});"
  26806. msgstr ""
  26807. #. type: itemize
  26808. #: guix-git/doc/guix.texi:17907
  26809. msgid "@command{guix system reconfigure} prevents downgrades, which makes it immune to @dfn{downgrade attacks}."
  26810. msgstr ""
  26811. #. type: Plain text
  26812. #: guix-git/doc/guix.texi:17912
  26813. msgid "To set up unattended upgrades, add an instance of @code{unattended-upgrade-service-type} like the one below to the list of your operating system services:"
  26814. msgstr ""
  26815. #. type: lisp
  26816. #: guix-git/doc/guix.texi:17915
  26817. #, no-wrap
  26818. msgid "(service unattended-upgrade-service-type)\n"
  26819. msgstr ""
  26820. #. type: Plain text
  26821. #: guix-git/doc/guix.texi:17922
  26822. msgid "The defaults above set up weekly upgrades: every Sunday at midnight. You do not need to provide the operating system configuration file: it uses @file{/run/current-system/configuration.scm}, which ensures it always uses your latest configuration---@pxref{provenance-service-type}, for more information about this file."
  26823. msgstr ""
  26824. #. type: Plain text
  26825. #: guix-git/doc/guix.texi:17928
  26826. msgid "There are several things that can be configured, in particular the periodicity and services (daemons) to be restarted upon completion. When the upgrade is successful, the service takes care of deleting system generations older that some threshold, as per @command{guix system delete-generations}. See the reference below for details."
  26827. msgstr ""
  26828. #. type: Plain text
  26829. #: guix-git/doc/guix.texi:17932
  26830. msgid "To ensure that upgrades are actually happening, you can run @command{guix system describe}. To investigate upgrade failures, visit the unattended upgrade log file (see below)."
  26831. msgstr ""
  26832. #. type: defvr
  26833. #: guix-git/doc/guix.texi:17933
  26834. #, no-wrap
  26835. msgid "{Scheme Variable} unattended-upgrade-service-type"
  26836. msgstr ""
  26837. #. type: defvr
  26838. #: guix-git/doc/guix.texi:17937
  26839. msgid "This is the service type for unattended upgrades. It sets up an mcron job (@pxref{Scheduled Job Execution}) that runs @command{guix system reconfigure} from the latest version of the specified channels."
  26840. msgstr ""
  26841. #. type: defvr
  26842. #: guix-git/doc/guix.texi:17940
  26843. msgid "Its value must be a @code{unattended-upgrade-configuration} record (see below)."
  26844. msgstr ""
  26845. #. type: deftp
  26846. #: guix-git/doc/guix.texi:17942
  26847. #, no-wrap
  26848. msgid "{Data Type} unattended-upgrade-configuration"
  26849. msgstr ""
  26850. #. type: deftp
  26851. #: guix-git/doc/guix.texi:17945
  26852. msgid "This data type represents the configuration of the unattended upgrade service. The following fields are available:"
  26853. msgstr ""
  26854. #. type: item
  26855. #: guix-git/doc/guix.texi:17947
  26856. #, fuzzy, no-wrap
  26857. msgid "@code{schedule} (default: @code{\"30 01 * * 0\"})"
  26858. msgstr "@code{speed}(默认值:@code{1.0})"
  26859. #. type: table
  26860. #: guix-git/doc/guix.texi:17951
  26861. msgid "This is the schedule of upgrades, expressed as a gexp containing an mcron job schedule (@pxref{Guile Syntax, mcron job specifications,, mcron, GNU@tie{}mcron})."
  26862. msgstr ""
  26863. #. type: item
  26864. #: guix-git/doc/guix.texi:17952
  26865. #, fuzzy, no-wrap
  26866. msgid "@code{channels} (default: @code{#~%default-channels})"
  26867. msgstr "@code{challenge}(默认值:@code{#f})"
  26868. #. type: table
  26869. #: guix-git/doc/guix.texi:17956
  26870. msgid "This gexp specifies the channels to use for the upgrade (@pxref{Channels}). By default, the tip of the official @code{guix} channel is used."
  26871. msgstr ""
  26872. #. type: item
  26873. #: guix-git/doc/guix.texi:17957
  26874. #, no-wrap
  26875. msgid "@code{operating-system-file} (default: @code{\"/run/current-system/configuration.scm\"})"
  26876. msgstr ""
  26877. #. type: table
  26878. #: guix-git/doc/guix.texi:17960
  26879. msgid "This field specifies the operating system configuration file to use. The default is to reuse the config file of the current configuration."
  26880. msgstr ""
  26881. #. type: table
  26882. #: guix-git/doc/guix.texi:17966
  26883. msgid "There are cases, though, where referring to @file{/run/current-system/configuration.scm} is not enough, for instance because that file refers to extra files (SSH public keys, extra configuration files, etc.) @i{via} @code{local-file} and similar constructs. For those cases, we recommend something along these lines:"
  26884. msgstr ""
  26885. #. type: lisp
  26886. #: guix-git/doc/guix.texi:17972
  26887. #, no-wrap
  26888. msgid ""
  26889. "(unattended-upgrade-configuration\n"
  26890. " (operating-system-file\n"
  26891. " (file-append (local-file \".\" \"config-dir\" #:recursive? #t)\n"
  26892. " \"/config.scm\")))\n"
  26893. msgstr ""
  26894. #. type: table
  26895. #: guix-git/doc/guix.texi:17979
  26896. msgid "The effect here is to import all of the current directory into the store, and to refer to @file{config.scm} within that directory. Therefore, uses of @code{local-file} within @file{config.scm} will work as expected. @xref{G-Expressions}, for information about @code{local-file} and @code{file-append}."
  26897. msgstr ""
  26898. #. type: item
  26899. #: guix-git/doc/guix.texi:17980
  26900. #, fuzzy, no-wrap
  26901. msgid "@code{services-to-restart} (default: @code{'(mcron)})"
  26902. msgstr "@code{features} (@code{'()})"
  26903. #. type: table
  26904. #: guix-git/doc/guix.texi:17983
  26905. msgid "This field specifies the Shepherd services to restart when the upgrade completes."
  26906. msgstr ""
  26907. #. type: table
  26908. #: guix-git/doc/guix.texi:17990
  26909. msgid "Those services are restarted right away upon completion, as with @command{herd restart}, which ensures that the latest version is running---remember that by default @command{guix system reconfigure} only restarts services that are not currently running, which is conservative: it minimizes disruption but leaves outdated services running."
  26910. msgstr ""
  26911. #. type: table
  26912. #: guix-git/doc/guix.texi:17994
  26913. msgid "Use @command{herd status} to find out candidates for restarting. @xref{Services}, for general information about services. Common services to restart would include @code{ntpd} and @code{ssh-daemon}."
  26914. msgstr ""
  26915. #. type: table
  26916. #: guix-git/doc/guix.texi:17997
  26917. msgid "By default, the @code{mcron} service is restarted. This ensures that the latest version of the unattended upgrade job will be used next time."
  26918. msgstr ""
  26919. #. type: item
  26920. #: guix-git/doc/guix.texi:17998
  26921. #, fuzzy, no-wrap
  26922. msgid "@code{system-expiration} (default: @code{(* 3 30 24 3600)})"
  26923. msgstr "@code{port}(默认值:@code{22})"
  26924. #. type: table
  26925. #: guix-git/doc/guix.texi:18002
  26926. msgid "This is the expiration time in seconds for system generations. System generations older that this amount of time are deleted with @command{guix system delete-generations} when an upgrade completes."
  26927. msgstr ""
  26928. #. type: quotation
  26929. #: guix-git/doc/guix.texi:18007
  26930. msgid "The unattended upgrade service does not run the garbage collector. You will probably want to set up your own mcron job to run @command{guix gc} periodically."
  26931. msgstr ""
  26932. #. type: item
  26933. #: guix-git/doc/guix.texi:18009
  26934. #, fuzzy, no-wrap
  26935. msgid "@code{maximum-duration} (default: @code{3600})"
  26936. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  26937. #. type: table
  26938. #: guix-git/doc/guix.texi:18012
  26939. msgid "Maximum duration in seconds for the upgrade; past that time, the upgrade aborts."
  26940. msgstr ""
  26941. #. type: table
  26942. #: guix-git/doc/guix.texi:18015
  26943. msgid "This is primarily useful to ensure the upgrade does not end up rebuilding or re-downloading ``the world''."
  26944. msgstr ""
  26945. #. type: item
  26946. #: guix-git/doc/guix.texi:18016
  26947. #, fuzzy, no-wrap
  26948. msgid "@code{log-file} (default: @code{\"/var/log/unattended-upgrade.log\"})"
  26949. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  26950. #. type: table
  26951. #: guix-git/doc/guix.texi:18018
  26952. msgid "File where unattended upgrades are logged."
  26953. msgstr ""
  26954. #. type: cindex
  26955. #: guix-git/doc/guix.texi:18024
  26956. #, no-wrap
  26957. msgid "X11"
  26958. msgstr ""
  26959. #. type: cindex
  26960. #: guix-git/doc/guix.texi:18025
  26961. #, no-wrap
  26962. msgid "X Window System"
  26963. msgstr ""
  26964. #. type: cindex
  26965. #: guix-git/doc/guix.texi:18026 guix-git/doc/guix.texi:18286
  26966. #, no-wrap
  26967. msgid "login manager"
  26968. msgstr ""
  26969. #. type: Plain text
  26970. #: guix-git/doc/guix.texi:18031
  26971. msgid "Support for the X Window graphical display system---specifically Xorg---is provided by the @code{(gnu services xorg)} module. Note that there is no @code{xorg-service} procedure. Instead, the X server is started by the @dfn{login manager}, by default the GNOME Display Manager (GDM)."
  26972. msgstr ""
  26973. #. type: cindex
  26974. #: guix-git/doc/guix.texi:18032
  26975. #, no-wrap
  26976. msgid "GDM"
  26977. msgstr ""
  26978. #. type: cindex
  26979. #: guix-git/doc/guix.texi:18033
  26980. #, no-wrap
  26981. msgid "GNOME, login manager"
  26982. msgstr ""
  26983. #. type: Plain text
  26984. #: guix-git/doc/guix.texi:18037
  26985. msgid "GDM of course allows users to log in into window managers and desktop environments other than GNOME; for those using GNOME, GDM is required for features such as automatic screen locking."
  26986. msgstr ""
  26987. #. type: cindex
  26988. #: guix-git/doc/guix.texi:18038
  26989. #, no-wrap
  26990. msgid "window manager"
  26991. msgstr ""
  26992. #. type: Plain text
  26993. #: guix-git/doc/guix.texi:18043
  26994. msgid "To use X11, you must install at least one @dfn{window manager}---for example the @code{windowmaker} or @code{openbox} packages---preferably by adding it to the @code{packages} field of your operating system definition (@pxref{operating-system Reference, system-wide packages})."
  26995. msgstr ""
  26996. #. type: defvr
  26997. #: guix-git/doc/guix.texi:18044
  26998. #, no-wrap
  26999. msgid "{Scheme Variable} gdm-service-type"
  27000. msgstr ""
  27001. #. type: defvr
  27002. #: guix-git/doc/guix.texi:18049
  27003. msgid "This is the type for the @uref{https://wiki.gnome.org/Projects/GDM/, GNOME Desktop Manager} (GDM), a program that manages graphical display servers and handles graphical user logins. Its value must be a @code{gdm-configuration} (see below)."
  27004. msgstr ""
  27005. #. type: cindex
  27006. #: guix-git/doc/guix.texi:18050
  27007. #, no-wrap
  27008. msgid "session types (X11)"
  27009. msgstr ""
  27010. #. type: cindex
  27011. #: guix-git/doc/guix.texi:18051
  27012. #, no-wrap
  27013. msgid "X11 session types"
  27014. msgstr ""
  27015. #. type: defvr
  27016. #: guix-git/doc/guix.texi:18057
  27017. msgid "GDM looks for @dfn{session types} described by the @file{.desktop} files in @file{/run/current-system/profile/share/xsessions} and allows users to choose a session from the log-in screen. Packages such as @code{gnome}, @code{xfce}, and @code{i3} provide @file{.desktop} files; adding them to the system-wide set of packages automatically makes them available at the log-in screen."
  27018. msgstr ""
  27019. #. type: defvr
  27020. #: guix-git/doc/guix.texi:18061
  27021. msgid "In addition, @file{~/.xsession} files are honored. When available, @file{~/.xsession} must be an executable that starts a window manager and/or other X clients."
  27022. msgstr ""
  27023. #. type: deftp
  27024. #: guix-git/doc/guix.texi:18063
  27025. #, no-wrap
  27026. msgid "{Data Type} gdm-configuration"
  27027. msgstr ""
  27028. #. type: item
  27029. #: guix-git/doc/guix.texi:18065 guix-git/doc/guix.texi:18141
  27030. #, no-wrap
  27031. msgid "@code{auto-login?} (default: @code{#f})"
  27032. msgstr ""
  27033. #. type: itemx
  27034. #: guix-git/doc/guix.texi:18066
  27035. #, no-wrap
  27036. msgid "@code{default-user} (default: @code{#f})"
  27037. msgstr ""
  27038. #. type: table
  27039. #: guix-git/doc/guix.texi:18068
  27040. msgid "When @code{auto-login?} is false, GDM presents a log-in screen."
  27041. msgstr ""
  27042. #. type: table
  27043. #: guix-git/doc/guix.texi:18071
  27044. msgid "When @code{auto-login?} is true, GDM logs in directly as @code{default-user}."
  27045. msgstr ""
  27046. #. type: item
  27047. #: guix-git/doc/guix.texi:18072 guix-git/doc/guix.texi:23920
  27048. #: guix-git/doc/guix.texi:25628 guix-git/doc/guix.texi:30046
  27049. #: guix-git/doc/guix.texi:30075 guix-git/doc/guix.texi:30104
  27050. #: guix-git/doc/guix.texi:30131 guix-git/doc/guix.texi:30186
  27051. #: guix-git/doc/guix.texi:30211 guix-git/doc/guix.texi:30238
  27052. #: guix-git/doc/guix.texi:30264 guix-git/doc/guix.texi:30306
  27053. #, no-wrap
  27054. msgid "@code{debug?} (default: @code{#f})"
  27055. msgstr ""
  27056. #. type: table
  27057. #: guix-git/doc/guix.texi:18074
  27058. msgid "When true, GDM writes debug messages to its log."
  27059. msgstr ""
  27060. #. type: item
  27061. #: guix-git/doc/guix.texi:18075
  27062. #, no-wrap
  27063. msgid "@code{gnome-shell-assets} (default: ...)"
  27064. msgstr ""
  27065. #. type: table
  27066. #: guix-git/doc/guix.texi:18077
  27067. msgid "List of GNOME Shell assets needed by GDM: icon theme, fonts, etc."
  27068. msgstr ""
  27069. #. type: item
  27070. #: guix-git/doc/guix.texi:18078
  27071. #, no-wrap
  27072. msgid "@code{xorg-configuration} (default: @code{(xorg-configuration)})"
  27073. msgstr ""
  27074. #. type: table
  27075. #: guix-git/doc/guix.texi:18080 guix-git/doc/guix.texi:18168
  27076. #: guix-git/doc/guix.texi:18252
  27077. msgid "Configuration of the Xorg graphical server."
  27078. msgstr ""
  27079. #. type: item
  27080. #: guix-git/doc/guix.texi:18081
  27081. #, no-wrap
  27082. msgid "@code{xsession} (default: @code{(xinitrc)})"
  27083. msgstr ""
  27084. #. type: table
  27085. #: guix-git/doc/guix.texi:18083 guix-git/doc/guix.texi:18267
  27086. msgid "Script to run before starting a X session."
  27087. msgstr ""
  27088. #. type: item
  27089. #: guix-git/doc/guix.texi:18084
  27090. #, no-wrap
  27091. msgid "@code{dbus-daemon} (default: @code{dbus-daemon-wrapper})"
  27092. msgstr ""
  27093. #. type: table
  27094. #: guix-git/doc/guix.texi:18086
  27095. msgid "File name of the @code{dbus-daemon} executable."
  27096. msgstr ""
  27097. #. type: item
  27098. #: guix-git/doc/guix.texi:18087
  27099. #, no-wrap
  27100. msgid "@code{gdm} (default: @code{gdm})"
  27101. msgstr ""
  27102. #. type: table
  27103. #: guix-git/doc/guix.texi:18089
  27104. msgid "The GDM package to use."
  27105. msgstr ""
  27106. #. type: defvr
  27107. #: guix-git/doc/guix.texi:18092
  27108. #, no-wrap
  27109. msgid "{Scheme Variable} slim-service-type"
  27110. msgstr ""
  27111. #. type: defvr
  27112. #: guix-git/doc/guix.texi:18094
  27113. msgid "This is the type for the SLiM graphical login manager for X11."
  27114. msgstr ""
  27115. #. type: defvr
  27116. #: guix-git/doc/guix.texi:18098
  27117. msgid "Like GDM, SLiM looks for session types described by @file{.desktop} files and allows users to choose a session from the log-in screen using @kbd{F1}. It also honors @file{~/.xsession} files."
  27118. msgstr ""
  27119. #. type: defvr
  27120. #: guix-git/doc/guix.texi:18105
  27121. msgid "Unlike GDM, SLiM does not spawn the user session on a different VT after logging in, which means that you can only start one graphical session. If you want to be able to run multiple graphical sessions at the same time you have to add multiple SLiM services to your system services. The following example shows how to replace the default GDM service with two SLiM services on tty7 and tty8."
  27122. msgstr ""
  27123. #. type: lisp
  27124. #: guix-git/doc/guix.texi:18111
  27125. #, no-wrap
  27126. msgid ""
  27127. "(use-modules (gnu services)\n"
  27128. " (gnu services desktop)\n"
  27129. " (gnu services xorg)\n"
  27130. " (srfi srfi-1)) ;for 'remove'\n"
  27131. "\n"
  27132. msgstr ""
  27133. #. type: lisp
  27134. #: guix-git/doc/guix.texi:18122
  27135. #, no-wrap
  27136. msgid ""
  27137. "(operating-system\n"
  27138. " ;; ...\n"
  27139. " (services (cons* (service slim-service-type (slim-configuration\n"
  27140. " (display \":0\")\n"
  27141. " (vt \"vt7\")))\n"
  27142. " (service slim-service-type (slim-configuration\n"
  27143. " (display \":1\")\n"
  27144. " (vt \"vt8\")))\n"
  27145. " (modify-services %desktop-services\n"
  27146. " (delete gdm-service-type)))))\n"
  27147. msgstr ""
  27148. #. type: deftp
  27149. #: guix-git/doc/guix.texi:18126
  27150. #, no-wrap
  27151. msgid "{Data Type} slim-configuration"
  27152. msgstr ""
  27153. #. type: deftp
  27154. #: guix-git/doc/guix.texi:18128
  27155. msgid "Data type representing the configuration of @code{slim-service-type}."
  27156. msgstr ""
  27157. #. type: table
  27158. #: guix-git/doc/guix.texi:18132
  27159. msgid "Whether to allow logins with empty passwords."
  27160. msgstr ""
  27161. #. type: item
  27162. #: guix-git/doc/guix.texi:18133
  27163. #, fuzzy, no-wrap
  27164. msgid "@code{gnupg?} (default: @code{#f})"
  27165. msgstr "@code{challenge}(默认值:@code{#f})"
  27166. #. type: table
  27167. #: guix-git/doc/guix.texi:18140
  27168. msgid "If enabled, @code{pam-gnupg} will attempt to automatically unlock the user's GPG keys with the login password via @code{gpg-agent}. The keygrips of all keys to be unlocked should be written to @file{~/.pam-gnupg}, and can be queried with @code{gpg -K --with-keygrip}. Presetting passphrases must be enabled by adding @code{allow-preset-passphrase} in @file{~/.gnupg/gpg-agent.conf}."
  27169. msgstr ""
  27170. #. type: itemx
  27171. #: guix-git/doc/guix.texi:18142
  27172. #, no-wrap
  27173. msgid "@code{default-user} (default: @code{\"\"})"
  27174. msgstr ""
  27175. #. type: table
  27176. #: guix-git/doc/guix.texi:18144
  27177. msgid "When @code{auto-login?} is false, SLiM presents a log-in screen."
  27178. msgstr ""
  27179. #. type: table
  27180. #: guix-git/doc/guix.texi:18147
  27181. msgid "When @code{auto-login?} is true, SLiM logs in directly as @code{default-user}."
  27182. msgstr ""
  27183. #. type: item
  27184. #: guix-git/doc/guix.texi:18148
  27185. #, no-wrap
  27186. msgid "@code{theme} (default: @code{%default-slim-theme})"
  27187. msgstr ""
  27188. #. type: itemx
  27189. #: guix-git/doc/guix.texi:18149
  27190. #, no-wrap
  27191. msgid "@code{theme-name} (default: @code{%default-slim-theme-name})"
  27192. msgstr ""
  27193. #. type: table
  27194. #: guix-git/doc/guix.texi:18151
  27195. msgid "The graphical theme to use and its name."
  27196. msgstr ""
  27197. #. type: item
  27198. #: guix-git/doc/guix.texi:18152
  27199. #, no-wrap
  27200. msgid "@code{auto-login-session} (default: @code{#f})"
  27201. msgstr ""
  27202. #. type: table
  27203. #: guix-git/doc/guix.texi:18155
  27204. msgid "If true, this must be the name of the executable to start as the default session---e.g., @code{(file-append windowmaker \"/bin/windowmaker\")}."
  27205. msgstr ""
  27206. #. type: table
  27207. #: guix-git/doc/guix.texi:18159
  27208. msgid "If false, a session described by one of the available @file{.desktop} files in @code{/run/current-system/profile} and @code{~/.guix-profile} will be used."
  27209. msgstr ""
  27210. #. type: quotation
  27211. #: guix-git/doc/guix.texi:18164
  27212. msgid "You must install at least one window manager in the system profile or in your user profile. Failing to do that, if @code{auto-login-session} is false, you will be unable to log in."
  27213. msgstr ""
  27214. #. type: item
  27215. #: guix-git/doc/guix.texi:18166 guix-git/doc/guix.texi:18250
  27216. #, no-wrap
  27217. msgid "@code{xorg-configuration} (default @code{(xorg-configuration)})"
  27218. msgstr ""
  27219. #. type: item
  27220. #: guix-git/doc/guix.texi:18169
  27221. #, no-wrap
  27222. msgid "@code{display} (default @code{\":0\"})"
  27223. msgstr "@code{display}(默认值:@code{\":0\"})"
  27224. #. type: table
  27225. #: guix-git/doc/guix.texi:18171
  27226. msgid "The display on which to start the Xorg graphical server."
  27227. msgstr ""
  27228. #. type: item
  27229. #: guix-git/doc/guix.texi:18172
  27230. #, no-wrap
  27231. msgid "@code{vt} (default @code{\"vt7\"})"
  27232. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  27233. #. type: table
  27234. #: guix-git/doc/guix.texi:18174
  27235. msgid "The VT on which to start the Xorg graphical server."
  27236. msgstr ""
  27237. #. type: item
  27238. #: guix-git/doc/guix.texi:18175
  27239. #, no-wrap
  27240. msgid "@code{xauth} (default: @code{xauth})"
  27241. msgstr ""
  27242. #. type: table
  27243. #: guix-git/doc/guix.texi:18177
  27244. msgid "The XAuth package to use."
  27245. msgstr ""
  27246. #. type: item
  27247. #: guix-git/doc/guix.texi:18178
  27248. #, no-wrap
  27249. msgid "@code{shepherd} (default: @code{shepherd})"
  27250. msgstr ""
  27251. #. type: table
  27252. #: guix-git/doc/guix.texi:18181
  27253. msgid "The Shepherd package used when invoking @command{halt} and @command{reboot}."
  27254. msgstr ""
  27255. #. type: item
  27256. #: guix-git/doc/guix.texi:18182
  27257. #, no-wrap
  27258. msgid "@code{sessreg} (default: @code{sessreg})"
  27259. msgstr ""
  27260. #. type: table
  27261. #: guix-git/doc/guix.texi:18184
  27262. msgid "The sessreg package used in order to register the session."
  27263. msgstr ""
  27264. #. type: item
  27265. #: guix-git/doc/guix.texi:18185
  27266. #, no-wrap
  27267. msgid "@code{slim} (default: @code{slim})"
  27268. msgstr ""
  27269. #. type: table
  27270. #: guix-git/doc/guix.texi:18187
  27271. msgid "The SLiM package to use."
  27272. msgstr ""
  27273. #. type: defvr
  27274. #: guix-git/doc/guix.texi:18190
  27275. #, no-wrap
  27276. msgid "{Scheme Variable} %default-theme"
  27277. msgstr ""
  27278. #. type: defvrx
  27279. #: guix-git/doc/guix.texi:18191
  27280. #, no-wrap
  27281. msgid "{Scheme Variable} %default-theme-name"
  27282. msgstr ""
  27283. #. type: defvr
  27284. #: guix-git/doc/guix.texi:18193
  27285. msgid "The default SLiM theme and its name."
  27286. msgstr ""
  27287. #. type: deftp
  27288. #: guix-git/doc/guix.texi:18196 guix-git/doc/guix.texi:18303
  27289. #, no-wrap
  27290. msgid "{Data Type} sddm-configuration"
  27291. msgstr ""
  27292. #. type: deftp
  27293. #: guix-git/doc/guix.texi:18198
  27294. msgid "This is the data type representing the SDDM service configuration."
  27295. msgstr ""
  27296. #. type: item
  27297. #: guix-git/doc/guix.texi:18200
  27298. #, no-wrap
  27299. msgid "@code{display-server} (default: \"x11\")"
  27300. msgstr ""
  27301. #. type: table
  27302. #: guix-git/doc/guix.texi:18203
  27303. msgid "Select display server to use for the greeter. Valid values are @samp{\"x11\"} or @samp{\"wayland\"}."
  27304. msgstr ""
  27305. #. type: item
  27306. #: guix-git/doc/guix.texi:18204
  27307. #, no-wrap
  27308. msgid "@code{numlock} (default: \"on\")"
  27309. msgstr ""
  27310. #. type: table
  27311. #: guix-git/doc/guix.texi:18206
  27312. msgid "Valid values are @samp{\"on\"}, @samp{\"off\"} or @samp{\"none\"}."
  27313. msgstr ""
  27314. #. type: item
  27315. #: guix-git/doc/guix.texi:18207
  27316. #, no-wrap
  27317. msgid "@code{halt-command} (default @code{#~(string-apppend #$shepherd \"/sbin/halt\")})"
  27318. msgstr ""
  27319. #. type: table
  27320. #: guix-git/doc/guix.texi:18209
  27321. msgid "Command to run when halting."
  27322. msgstr ""
  27323. #. type: item
  27324. #: guix-git/doc/guix.texi:18210
  27325. #, no-wrap
  27326. msgid "@code{reboot-command} (default @code{#~(string-append #$shepherd \"/sbin/reboot\")})"
  27327. msgstr ""
  27328. #. type: table
  27329. #: guix-git/doc/guix.texi:18212
  27330. msgid "Command to run when rebooting."
  27331. msgstr ""
  27332. #. type: item
  27333. #: guix-git/doc/guix.texi:18213
  27334. #, no-wrap
  27335. msgid "@code{theme} (default \"maldives\")"
  27336. msgstr ""
  27337. #. type: table
  27338. #: guix-git/doc/guix.texi:18216
  27339. msgid "Theme to use. Default themes provided by SDDM are @samp{\"elarun\"}, @samp{\"maldives\"} or @samp{\"maya\"}."
  27340. msgstr ""
  27341. #. type: item
  27342. #: guix-git/doc/guix.texi:18217
  27343. #, no-wrap
  27344. msgid "@code{themes-directory} (default \"/run/current-system/profile/share/sddm/themes\")"
  27345. msgstr ""
  27346. #. type: table
  27347. #: guix-git/doc/guix.texi:18219
  27348. msgid "Directory to look for themes."
  27349. msgstr ""
  27350. #. type: item
  27351. #: guix-git/doc/guix.texi:18220
  27352. #, no-wrap
  27353. msgid "@code{faces-directory} (default \"/run/current-system/profile/share/sddm/faces\")"
  27354. msgstr ""
  27355. #. type: table
  27356. #: guix-git/doc/guix.texi:18222
  27357. msgid "Directory to look for faces."
  27358. msgstr ""
  27359. #. type: item
  27360. #: guix-git/doc/guix.texi:18223
  27361. #, no-wrap
  27362. msgid "@code{default-path} (default \"/run/current-system/profile/bin\")"
  27363. msgstr ""
  27364. #. type: table
  27365. #: guix-git/doc/guix.texi:18225
  27366. msgid "Default PATH to use."
  27367. msgstr ""
  27368. #. type: item
  27369. #: guix-git/doc/guix.texi:18226
  27370. #, fuzzy, no-wrap
  27371. msgid "@code{minimum-uid} (default: 1000)"
  27372. msgstr "@code{includes}(默认值:@code{'()})"
  27373. #. type: table
  27374. #: guix-git/doc/guix.texi:18228
  27375. msgid "Minimum UID displayed in SDDM and allowed for log-in."
  27376. msgstr ""
  27377. #. type: item
  27378. #: guix-git/doc/guix.texi:18229
  27379. #, fuzzy, no-wrap
  27380. msgid "@code{maximum-uid} (default: 2000)"
  27381. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27382. #. type: table
  27383. #: guix-git/doc/guix.texi:18231
  27384. msgid "Maximum UID to display in SDDM."
  27385. msgstr ""
  27386. #. type: item
  27387. #: guix-git/doc/guix.texi:18232
  27388. #, no-wrap
  27389. msgid "@code{remember-last-user?} (default #t)"
  27390. msgstr ""
  27391. #. type: table
  27392. #: guix-git/doc/guix.texi:18234
  27393. msgid "Remember last user."
  27394. msgstr ""
  27395. #. type: item
  27396. #: guix-git/doc/guix.texi:18235
  27397. #, no-wrap
  27398. msgid "@code{remember-last-session?} (default #t)"
  27399. msgstr ""
  27400. #. type: table
  27401. #: guix-git/doc/guix.texi:18237
  27402. msgid "Remember last session."
  27403. msgstr ""
  27404. #. type: item
  27405. #: guix-git/doc/guix.texi:18238
  27406. #, no-wrap
  27407. msgid "@code{hide-users} (default \"\")"
  27408. msgstr ""
  27409. #. type: table
  27410. #: guix-git/doc/guix.texi:18240
  27411. msgid "Usernames to hide from SDDM greeter."
  27412. msgstr ""
  27413. #. type: item
  27414. #: guix-git/doc/guix.texi:18241
  27415. #, no-wrap
  27416. msgid "@code{hide-shells} (default @code{#~(string-append #$shadow \"/sbin/nologin\")})"
  27417. msgstr ""
  27418. #. type: table
  27419. #: guix-git/doc/guix.texi:18243
  27420. msgid "Users with shells listed will be hidden from the SDDM greeter."
  27421. msgstr ""
  27422. #. type: item
  27423. #: guix-git/doc/guix.texi:18244
  27424. #, no-wrap
  27425. msgid "@code{session-command} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/wayland-session\")})"
  27426. msgstr ""
  27427. #. type: table
  27428. #: guix-git/doc/guix.texi:18246
  27429. msgid "Script to run before starting a wayland session."
  27430. msgstr ""
  27431. #. type: item
  27432. #: guix-git/doc/guix.texi:18247
  27433. #, no-wrap
  27434. msgid "@code{sessions-directory} (default \"/run/current-system/profile/share/wayland-sessions\")"
  27435. msgstr ""
  27436. #. type: table
  27437. #: guix-git/doc/guix.texi:18249
  27438. msgid "Directory to look for desktop files starting wayland sessions."
  27439. msgstr ""
  27440. #. type: item
  27441. #: guix-git/doc/guix.texi:18253
  27442. #, no-wrap
  27443. msgid "@code{xauth-path} (default @code{#~(string-append #$xauth \"/bin/xauth\")})"
  27444. msgstr ""
  27445. #. type: table
  27446. #: guix-git/doc/guix.texi:18255
  27447. msgid "Path to xauth."
  27448. msgstr ""
  27449. #. type: item
  27450. #: guix-git/doc/guix.texi:18256
  27451. #, no-wrap
  27452. msgid "@code{xephyr-path} (default @code{#~(string-append #$xorg-server \"/bin/Xephyr\")})"
  27453. msgstr ""
  27454. #. type: table
  27455. #: guix-git/doc/guix.texi:18258
  27456. msgid "Path to Xephyr."
  27457. msgstr ""
  27458. #. type: item
  27459. #: guix-git/doc/guix.texi:18259
  27460. #, no-wrap
  27461. msgid "@code{xdisplay-start} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xsetup\")})"
  27462. msgstr ""
  27463. #. type: table
  27464. #: guix-git/doc/guix.texi:18261
  27465. msgid "Script to run after starting xorg-server."
  27466. msgstr ""
  27467. #. type: item
  27468. #: guix-git/doc/guix.texi:18262
  27469. #, no-wrap
  27470. msgid "@code{xdisplay-stop} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xstop\")})"
  27471. msgstr ""
  27472. #. type: table
  27473. #: guix-git/doc/guix.texi:18264
  27474. msgid "Script to run before stopping xorg-server."
  27475. msgstr ""
  27476. #. type: item
  27477. #: guix-git/doc/guix.texi:18265
  27478. #, no-wrap
  27479. msgid "@code{xsession-command} (default: @code{xinitrc})"
  27480. msgstr ""
  27481. #. type: item
  27482. #: guix-git/doc/guix.texi:18268
  27483. #, no-wrap
  27484. msgid "@code{xsessions-directory} (default: \"/run/current-system/profile/share/xsessions\")"
  27485. msgstr ""
  27486. #. type: table
  27487. #: guix-git/doc/guix.texi:18270
  27488. msgid "Directory to look for desktop files starting X sessions."
  27489. msgstr ""
  27490. #. type: item
  27491. #: guix-git/doc/guix.texi:18271
  27492. #, no-wrap
  27493. msgid "@code{minimum-vt} (default: 7)"
  27494. msgstr ""
  27495. #. type: table
  27496. #: guix-git/doc/guix.texi:18273
  27497. msgid "Minimum VT to use."
  27498. msgstr ""
  27499. #. type: item
  27500. #: guix-git/doc/guix.texi:18274
  27501. #, no-wrap
  27502. msgid "@code{auto-login-user} (default \"\")"
  27503. msgstr ""
  27504. #. type: table
  27505. #: guix-git/doc/guix.texi:18276
  27506. msgid "User to use for auto-login."
  27507. msgstr ""
  27508. #. type: item
  27509. #: guix-git/doc/guix.texi:18277
  27510. #, no-wrap
  27511. msgid "@code{auto-login-session} (default \"\")"
  27512. msgstr ""
  27513. #. type: table
  27514. #: guix-git/doc/guix.texi:18279
  27515. msgid "Desktop file to use for auto-login."
  27516. msgstr ""
  27517. #. type: item
  27518. #: guix-git/doc/guix.texi:18280
  27519. #, no-wrap
  27520. msgid "@code{relogin?} (default #f)"
  27521. msgstr ""
  27522. #. type: table
  27523. #: guix-git/doc/guix.texi:18282
  27524. msgid "Relogin after logout."
  27525. msgstr ""
  27526. #. type: cindex
  27527. #: guix-git/doc/guix.texi:18287
  27528. #, no-wrap
  27529. msgid "X11 login"
  27530. msgstr ""
  27531. #. type: defvr
  27532. #: guix-git/doc/guix.texi:18288
  27533. #, no-wrap
  27534. msgid "{Scheme Variable} sddm-service-type"
  27535. msgstr ""
  27536. #. type: defvr
  27537. #: guix-git/doc/guix.texi:18292
  27538. msgid "This is the type of the service to run the @uref{https://github.com/sddm/sddm,SDDM display manager}. Its value must be a @code{sddm-configuration} record (see below)."
  27539. msgstr ""
  27540. #. type: defvr
  27541. #: guix-git/doc/guix.texi:18294
  27542. msgid "Here's an example use:"
  27543. msgstr ""
  27544. #. type: lisp
  27545. #: guix-git/doc/guix.texi:18300
  27546. #, no-wrap
  27547. msgid ""
  27548. "(service sddm-service-type\n"
  27549. " (sddm-configuration\n"
  27550. " (auto-login-user \"alice\")\n"
  27551. " (auto-login-session \"xfce.desktop\")))\n"
  27552. msgstr ""
  27553. #. type: deftp
  27554. #: guix-git/doc/guix.texi:18306
  27555. #, fuzzy
  27556. msgid "This data type represents the configuration of the SDDM login manager. The available fields are:"
  27557. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  27558. #. type: item
  27559. #: guix-git/doc/guix.texi:18308
  27560. #, fuzzy, no-wrap
  27561. msgid "@code{sddm} (default: @code{sddm})"
  27562. msgstr "@code{speed}(默认值:@code{1.0})"
  27563. #. type: table
  27564. #: guix-git/doc/guix.texi:18310
  27565. #, fuzzy
  27566. msgid "The SDDM package to use."
  27567. msgstr "软件包数据类型。"
  27568. #. type: item
  27569. #: guix-git/doc/guix.texi:18311
  27570. #, fuzzy, no-wrap
  27571. msgid "@code{display-server} (default: @code{\"x11\"})"
  27572. msgstr "@code{display}(默认值:@code{\":0\"})"
  27573. #. type: table
  27574. #: guix-git/doc/guix.texi:18313
  27575. msgid "This must be either @code{\"x11\"} or @code{\"wayland\"}."
  27576. msgstr ""
  27577. #. type: item
  27578. #: guix-git/doc/guix.texi:18316
  27579. #, fuzzy, no-wrap
  27580. msgid "@code{auto-login-user} (default: @code{\"\"})"
  27581. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27582. #. type: table
  27583. #: guix-git/doc/guix.texi:18319
  27584. msgid "If non-empty, this is the user account under which to log in automatically."
  27585. msgstr ""
  27586. #. type: item
  27587. #: guix-git/doc/guix.texi:18320
  27588. #, fuzzy, no-wrap
  27589. msgid "@code{auto-login-session} (default: @code{\"\"})"
  27590. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  27591. #. type: table
  27592. #: guix-git/doc/guix.texi:18323
  27593. msgid "If non-empty, this is the @file{.desktop} file name to use as the auto-login session."
  27594. msgstr ""
  27595. #. type: cindex
  27596. #: guix-git/doc/guix.texi:18326
  27597. #, no-wrap
  27598. msgid "Xorg, configuration"
  27599. msgstr ""
  27600. #. type: deftp
  27601. #: guix-git/doc/guix.texi:18327
  27602. #, no-wrap
  27603. msgid "{Data Type} xorg-configuration"
  27604. msgstr ""
  27605. #. type: deftp
  27606. #: guix-git/doc/guix.texi:18332
  27607. msgid "This data type represents the configuration of the Xorg graphical display server. Note that there is no Xorg service; instead, the X server is started by a ``display manager'' such as GDM, SDDM, and SLiM@. Thus, the configuration of these display managers aggregates an @code{xorg-configuration} record."
  27608. msgstr ""
  27609. #. type: item
  27610. #: guix-git/doc/guix.texi:18334
  27611. #, no-wrap
  27612. msgid "@code{modules} (default: @code{%default-xorg-modules})"
  27613. msgstr ""
  27614. #. type: table
  27615. #: guix-git/doc/guix.texi:18337
  27616. msgid "This is a list of @dfn{module packages} loaded by the Xorg server---e.g., @code{xf86-video-vesa}, @code{xf86-input-keyboard}, and so on."
  27617. msgstr ""
  27618. #. type: item
  27619. #: guix-git/doc/guix.texi:18338
  27620. #, no-wrap
  27621. msgid "@code{fonts} (default: @code{%default-xorg-fonts})"
  27622. msgstr ""
  27623. #. type: table
  27624. #: guix-git/doc/guix.texi:18340
  27625. msgid "This is a list of font directories to add to the server's @dfn{font path}."
  27626. msgstr ""
  27627. #. type: item
  27628. #: guix-git/doc/guix.texi:18341
  27629. #, no-wrap
  27630. msgid "@code{drivers} (default: @code{'()})"
  27631. msgstr ""
  27632. #. type: table
  27633. #: guix-git/doc/guix.texi:18345
  27634. msgid "This must be either the empty list, in which case Xorg chooses a graphics driver automatically, or a list of driver names that will be tried in this order---e.g., @code{(\"modesetting\" \"vesa\")}."
  27635. msgstr ""
  27636. #. type: item
  27637. #: guix-git/doc/guix.texi:18346
  27638. #, no-wrap
  27639. msgid "@code{resolutions} (default: @code{'()})"
  27640. msgstr ""
  27641. #. type: table
  27642. #: guix-git/doc/guix.texi:18350
  27643. msgid "When @code{resolutions} is the empty list, Xorg chooses an appropriate screen resolution. Otherwise, it must be a list of resolutions---e.g., @code{((1024 768) (640 480))}."
  27644. msgstr ""
  27645. #. type: cindex
  27646. #: guix-git/doc/guix.texi:18351
  27647. #, no-wrap
  27648. msgid "keyboard layout, for Xorg"
  27649. msgstr ""
  27650. #. type: cindex
  27651. #: guix-git/doc/guix.texi:18352
  27652. #, no-wrap
  27653. msgid "keymap, for Xorg"
  27654. msgstr ""
  27655. #. type: table
  27656. #: guix-git/doc/guix.texi:18356
  27657. msgid "If this is @code{#f}, Xorg uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  27658. msgstr ""
  27659. #. type: table
  27660. #: guix-git/doc/guix.texi:18360
  27661. msgid "Otherwise this must be a @code{keyboard-layout} object specifying the keyboard layout in use when Xorg is running. @xref{Keyboard Layout}, for more information on how to specify the keyboard layout."
  27662. msgstr ""
  27663. #. type: item
  27664. #: guix-git/doc/guix.texi:18361 guix-git/doc/guix.texi:20066
  27665. #: guix-git/doc/guix.texi:32678
  27666. #, no-wrap
  27667. msgid "@code{extra-config} (default: @code{'()})"
  27668. msgstr ""
  27669. #. type: table
  27670. #: guix-git/doc/guix.texi:18364 guix-git/doc/guix.texi:32682
  27671. msgid "This is a list of strings or objects appended to the configuration file. It is used to pass extra text to be added verbatim to the configuration file."
  27672. msgstr ""
  27673. #. type: item
  27674. #: guix-git/doc/guix.texi:18365
  27675. #, no-wrap
  27676. msgid "@code{server} (default: @code{xorg-server})"
  27677. msgstr ""
  27678. #. type: table
  27679. #: guix-git/doc/guix.texi:18367
  27680. msgid "This is the package providing the Xorg server."
  27681. msgstr ""
  27682. #. type: item
  27683. #: guix-git/doc/guix.texi:18368
  27684. #, no-wrap
  27685. msgid "@code{server-arguments} (default: @code{%default-xorg-server-arguments})"
  27686. msgstr ""
  27687. #. type: table
  27688. #: guix-git/doc/guix.texi:18371
  27689. msgid "This is the list of command-line arguments to pass to the X server. The default is @code{-nolisten tcp}."
  27690. msgstr ""
  27691. #. type: deffn
  27692. #: guix-git/doc/guix.texi:18374
  27693. #, no-wrap
  27694. msgid "{Scheme Procedure} set-xorg-configuration @var{config} @"
  27695. msgstr ""
  27696. #. type: deffn
  27697. #: guix-git/doc/guix.texi:18378
  27698. msgid "[@var{login-manager-service-type}] Tell the log-in manager (of type @var{login-manager-service-type}) to use @var{config}, an @code{<xorg-configuration>} record."
  27699. msgstr ""
  27700. #. type: deffn
  27701. #: guix-git/doc/guix.texi:18382
  27702. msgid "Since the Xorg configuration is embedded in the log-in manager's configuration---e.g., @code{gdm-configuration}---this procedure provides a shorthand to set the Xorg configuration."
  27703. msgstr ""
  27704. #. type: deffn
  27705. #: guix-git/doc/guix.texi:18384
  27706. #, no-wrap
  27707. msgid "{Scheme Procedure} xorg-start-command [@var{config}]"
  27708. msgstr ""
  27709. #. type: deffn
  27710. #: guix-git/doc/guix.texi:18388
  27711. msgid "Return a @code{startx} script in which the modules, fonts, etc. specified in @var{config}, are available. The result should be used in place of @code{startx}."
  27712. msgstr ""
  27713. #. type: deffn
  27714. #: guix-git/doc/guix.texi:18390
  27715. msgid "Usually the X server is started by a login manager."
  27716. msgstr ""
  27717. #. type: deffn
  27718. #: guix-git/doc/guix.texi:18393
  27719. #, no-wrap
  27720. msgid "{Scheme Procedure} screen-locker-service @var{package} [@var{program}]"
  27721. msgstr ""
  27722. #. type: deffn
  27723. #: guix-git/doc/guix.texi:18397
  27724. msgid "Add @var{package}, a package for a screen locker or screen saver whose command is @var{program}, to the set of setuid programs and add a PAM entry for it. For example:"
  27725. msgstr ""
  27726. #. type: lisp
  27727. #: guix-git/doc/guix.texi:18400
  27728. #, no-wrap
  27729. msgid "(screen-locker-service xlockmore \"xlock\")\n"
  27730. msgstr ""
  27731. #. type: deffn
  27732. #: guix-git/doc/guix.texi:18403
  27733. msgid "makes the good ol' XlockMore usable."
  27734. msgstr ""
  27735. #. type: cindex
  27736. #: guix-git/doc/guix.texi:18409
  27737. #, no-wrap
  27738. msgid "printer support with CUPS"
  27739. msgstr ""
  27740. #. type: Plain text
  27741. #: guix-git/doc/guix.texi:18413
  27742. msgid "The @code{(gnu services cups)} module provides a Guix service definition for the CUPS printing service. To add printer support to a Guix system, add a @code{cups-service} to the operating system definition:"
  27743. msgstr ""
  27744. #. type: deffn
  27745. #: guix-git/doc/guix.texi:18414
  27746. #, no-wrap
  27747. msgid "{Scheme Variable} cups-service-type"
  27748. msgstr ""
  27749. #. type: deffn
  27750. #: guix-git/doc/guix.texi:18418
  27751. msgid "The service type for the CUPS print server. Its value should be a valid CUPS configuration (see below). To use the default settings, simply write:"
  27752. msgstr ""
  27753. #. type: lisp
  27754. #: guix-git/doc/guix.texi:18420
  27755. #, no-wrap
  27756. msgid "(service cups-service-type)\n"
  27757. msgstr ""
  27758. #. type: Plain text
  27759. #: guix-git/doc/guix.texi:18430
  27760. msgid "The CUPS configuration controls the basic things about your CUPS installation: what interfaces it listens on, what to do if a print job fails, how much logging to do, and so on. To actually add a printer, you have to visit the @url{http://localhost:631} URL, or use a tool such as GNOME's printer configuration services. By default, configuring a CUPS service will generate a self-signed certificate if needed, for secure connections to the print server."
  27761. msgstr ""
  27762. #. type: Plain text
  27763. #: guix-git/doc/guix.texi:18436
  27764. msgid "Suppose you want to enable the Web interface of CUPS and also add support for Epson printers @i{via} the @code{epson-inkjet-printer-escpr} package and for HP printers @i{via} the @code{hplip-minimal} package. You can do that directly, like this (you need to use the @code{(gnu packages cups)} module):"
  27765. msgstr ""
  27766. #. type: lisp
  27767. #: guix-git/doc/guix.texi:18443
  27768. #, no-wrap
  27769. msgid ""
  27770. "(service cups-service-type\n"
  27771. " (cups-configuration\n"
  27772. " (web-interface? #t)\n"
  27773. " (extensions\n"
  27774. " (list cups-filters epson-inkjet-printer-escpr hplip-minimal))))\n"
  27775. msgstr ""
  27776. #. type: Plain text
  27777. #: guix-git/doc/guix.texi:18448
  27778. msgid "Note: If you wish to use the Qt5 based GUI which comes with the hplip package then it is suggested that you install the @code{hplip} package, either in your OS configuration file or as your user."
  27779. msgstr ""
  27780. #. type: Plain text
  27781. #: guix-git/doc/guix.texi:18455
  27782. msgid "The available configuration parameters follow. Each parameter definition is preceded by its type; for example, @samp{string-list foo} indicates that the @code{foo} parameter should be specified as a list of strings. There is also a way to specify the configuration as a string, if you have an old @code{cupsd.conf} file that you want to port over from some other system; see the end for more details."
  27783. msgstr ""
  27784. #. type: Plain text
  27785. #: guix-git/doc/guix.texi:18466
  27786. msgid "Available @code{cups-configuration} fields are:"
  27787. msgstr ""
  27788. #. type: deftypevr
  27789. #: guix-git/doc/guix.texi:18467
  27790. #, no-wrap
  27791. msgid "{@code{cups-configuration} parameter} package cups"
  27792. msgstr ""
  27793. #. type: deftypevr
  27794. #: guix-git/doc/guix.texi:18469 guix-git/doc/guix.texi:19231
  27795. msgid "The CUPS package."
  27796. msgstr ""
  27797. #. type: deftypevr
  27798. #: guix-git/doc/guix.texi:18471
  27799. #, no-wrap
  27800. msgid "{@code{cups-configuration} parameter} package-list extensions (default: @code{(list brlaser cups-filters epson-inkjet-printer-escpr foomatic-filters hplip-minimal splix)})"
  27801. msgstr ""
  27802. #. type: deftypevr
  27803. #: guix-git/doc/guix.texi:18473
  27804. msgid "Drivers and other extensions to the CUPS package."
  27805. msgstr ""
  27806. #. type: deftypevr
  27807. #: guix-git/doc/guix.texi:18475
  27808. #, no-wrap
  27809. msgid "{@code{cups-configuration} parameter} files-configuration files-configuration"
  27810. msgstr ""
  27811. #. type: deftypevr
  27812. #: guix-git/doc/guix.texi:18478
  27813. msgid "Configuration of where to write logs, what directories to use for print spools, and related privileged configuration parameters."
  27814. msgstr ""
  27815. #. type: deftypevr
  27816. #: guix-git/doc/guix.texi:18480
  27817. msgid "Available @code{files-configuration} fields are:"
  27818. msgstr ""
  27819. #. type: deftypevr
  27820. #: guix-git/doc/guix.texi:18481
  27821. #, no-wrap
  27822. msgid "{@code{files-configuration} parameter} log-location access-log"
  27823. msgstr ""
  27824. #. type: deftypevr
  27825. #: guix-git/doc/guix.texi:18489
  27826. msgid "Defines the access log filename. Specifying a blank filename disables access log generation. The value @code{stderr} causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value @code{syslog} causes log entries to be sent to the system log daemon. The server name may be included in filenames using the string @code{%s}, as in @code{/var/log/cups/%s-access_log}."
  27827. msgstr ""
  27828. #. type: deftypevr
  27829. #: guix-git/doc/guix.texi:18491
  27830. msgid "Defaults to @samp{\"/var/log/cups/access_log\"}."
  27831. msgstr ""
  27832. #. type: deftypevr
  27833. #: guix-git/doc/guix.texi:18493
  27834. #, no-wrap
  27835. msgid "{@code{files-configuration} parameter} file-name cache-dir"
  27836. msgstr ""
  27837. #. type: deftypevr
  27838. #: guix-git/doc/guix.texi:18495
  27839. msgid "Where CUPS should cache data."
  27840. msgstr ""
  27841. #. type: deftypevr
  27842. #: guix-git/doc/guix.texi:18497
  27843. msgid "Defaults to @samp{\"/var/cache/cups\"}."
  27844. msgstr ""
  27845. #. type: deftypevr
  27846. #: guix-git/doc/guix.texi:18499
  27847. #, no-wrap
  27848. msgid "{@code{files-configuration} parameter} string config-file-perm"
  27849. msgstr ""
  27850. #. type: deftypevr
  27851. #: guix-git/doc/guix.texi:18502
  27852. msgid "Specifies the permissions for all configuration files that the scheduler writes."
  27853. msgstr ""
  27854. #. type: deftypevr
  27855. #: guix-git/doc/guix.texi:18508
  27856. msgid "Note that the permissions for the printers.conf file are currently masked to only allow access from the scheduler user (typically root). This is done because printer device URIs sometimes contain sensitive authentication information that should not be generally known on the system. There is no way to disable this security feature."
  27857. msgstr ""
  27858. #. type: deftypevr
  27859. #: guix-git/doc/guix.texi:18510
  27860. msgid "Defaults to @samp{\"0640\"}."
  27861. msgstr ""
  27862. #. type: deftypevr
  27863. #: guix-git/doc/guix.texi:18512
  27864. #, no-wrap
  27865. msgid "{@code{files-configuration} parameter} log-location error-log"
  27866. msgstr ""
  27867. #. type: deftypevr
  27868. #: guix-git/doc/guix.texi:18520
  27869. msgid "Defines the error log filename. Specifying a blank filename disables error log generation. The value @code{stderr} causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value @code{syslog} causes log entries to be sent to the system log daemon. The server name may be included in filenames using the string @code{%s}, as in @code{/var/log/cups/%s-error_log}."
  27870. msgstr ""
  27871. #. type: deftypevr
  27872. #: guix-git/doc/guix.texi:18522
  27873. msgid "Defaults to @samp{\"/var/log/cups/error_log\"}."
  27874. msgstr ""
  27875. #. type: deftypevr
  27876. #: guix-git/doc/guix.texi:18524
  27877. #, no-wrap
  27878. msgid "{@code{files-configuration} parameter} string fatal-errors"
  27879. msgstr ""
  27880. #. type: deftypevr
  27881. #: guix-git/doc/guix.texi:18527
  27882. msgid "Specifies which errors are fatal, causing the scheduler to exit. The kind strings are:"
  27883. msgstr ""
  27884. #. type: table
  27885. #: guix-git/doc/guix.texi:18531
  27886. msgid "No errors are fatal."
  27887. msgstr ""
  27888. #. type: table
  27889. #: guix-git/doc/guix.texi:18534
  27890. msgid "All of the errors below are fatal."
  27891. msgstr ""
  27892. #. type: item
  27893. #: guix-git/doc/guix.texi:18535
  27894. #, no-wrap
  27895. msgid "browse"
  27896. msgstr ""
  27897. #. type: table
  27898. #: guix-git/doc/guix.texi:18538
  27899. msgid "Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon."
  27900. msgstr ""
  27901. #. type: item
  27902. #: guix-git/doc/guix.texi:18539
  27903. #, no-wrap
  27904. msgid "config"
  27905. msgstr ""
  27906. #. type: table
  27907. #: guix-git/doc/guix.texi:18541
  27908. msgid "Configuration file syntax errors are fatal."
  27909. msgstr ""
  27910. #. type: item
  27911. #: guix-git/doc/guix.texi:18542
  27912. #, no-wrap
  27913. msgid "listen"
  27914. msgstr ""
  27915. #. type: table
  27916. #: guix-git/doc/guix.texi:18545
  27917. msgid "Listen or Port errors are fatal, except for IPv6 failures on the loopback or @code{any} addresses."
  27918. msgstr ""
  27919. #. type: item
  27920. #: guix-git/doc/guix.texi:18546
  27921. #, no-wrap
  27922. msgid "log"
  27923. msgstr ""
  27924. #. type: table
  27925. #: guix-git/doc/guix.texi:18548
  27926. msgid "Log file creation or write errors are fatal."
  27927. msgstr ""
  27928. #. type: item
  27929. #: guix-git/doc/guix.texi:18549
  27930. #, no-wrap
  27931. msgid "permissions"
  27932. msgstr ""
  27933. #. type: table
  27934. #: guix-git/doc/guix.texi:18552
  27935. msgid "Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions."
  27936. msgstr ""
  27937. #. type: deftypevr
  27938. #: guix-git/doc/guix.texi:18555
  27939. msgid "Defaults to @samp{\"all -browse\"}."
  27940. msgstr ""
  27941. #. type: deftypevr
  27942. #: guix-git/doc/guix.texi:18557
  27943. #, no-wrap
  27944. msgid "{@code{files-configuration} parameter} boolean file-device?"
  27945. msgstr ""
  27946. #. type: deftypevr
  27947. #: guix-git/doc/guix.texi:18560
  27948. msgid "Specifies whether the file pseudo-device can be used for new printer queues. The URI @uref{file:///dev/null} is always allowed."
  27949. msgstr ""
  27950. #. type: deftypevr
  27951. #: guix-git/doc/guix.texi:18564
  27952. #, no-wrap
  27953. msgid "{@code{files-configuration} parameter} string group"
  27954. msgstr ""
  27955. #. type: deftypevr
  27956. #: guix-git/doc/guix.texi:18567
  27957. msgid "Specifies the group name or ID that will be used when executing external programs."
  27958. msgstr ""
  27959. #. type: deftypevr
  27960. #: guix-git/doc/guix.texi:18569 guix-git/doc/guix.texi:18649
  27961. msgid "Defaults to @samp{\"lp\"}."
  27962. msgstr ""
  27963. #. type: deftypevr
  27964. #: guix-git/doc/guix.texi:18571
  27965. #, no-wrap
  27966. msgid "{@code{files-configuration} parameter} string log-file-perm"
  27967. msgstr ""
  27968. #. type: deftypevr
  27969. #: guix-git/doc/guix.texi:18573
  27970. msgid "Specifies the permissions for all log files that the scheduler writes."
  27971. msgstr ""
  27972. #. type: deftypevr
  27973. #: guix-git/doc/guix.texi:18575
  27974. msgid "Defaults to @samp{\"0644\"}."
  27975. msgstr ""
  27976. #. type: deftypevr
  27977. #: guix-git/doc/guix.texi:18577
  27978. #, no-wrap
  27979. msgid "{@code{files-configuration} parameter} log-location page-log"
  27980. msgstr ""
  27981. #. type: deftypevr
  27982. #: guix-git/doc/guix.texi:18585
  27983. msgid "Defines the page log filename. Specifying a blank filename disables page log generation. The value @code{stderr} causes log entries to be sent to the standard error file when the scheduler is running in the foreground, or to the system log daemon when run in the background. The value @code{syslog} causes log entries to be sent to the system log daemon. The server name may be included in filenames using the string @code{%s}, as in @code{/var/log/cups/%s-page_log}."
  27984. msgstr ""
  27985. #. type: deftypevr
  27986. #: guix-git/doc/guix.texi:18587
  27987. msgid "Defaults to @samp{\"/var/log/cups/page_log\"}."
  27988. msgstr ""
  27989. #. type: deftypevr
  27990. #: guix-git/doc/guix.texi:18589
  27991. #, no-wrap
  27992. msgid "{@code{files-configuration} parameter} string remote-root"
  27993. msgstr ""
  27994. #. type: deftypevr
  27995. #: guix-git/doc/guix.texi:18592
  27996. msgid "Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is @code{remroot}."
  27997. msgstr ""
  27998. #. type: deftypevr
  27999. #: guix-git/doc/guix.texi:18594
  28000. msgid "Defaults to @samp{\"remroot\"}."
  28001. msgstr ""
  28002. #. type: deftypevr
  28003. #: guix-git/doc/guix.texi:18596
  28004. #, no-wrap
  28005. msgid "{@code{files-configuration} parameter} file-name request-root"
  28006. msgstr ""
  28007. #. type: deftypevr
  28008. #: guix-git/doc/guix.texi:18599
  28009. msgid "Specifies the directory that contains print jobs and other HTTP request data."
  28010. msgstr ""
  28011. #. type: deftypevr
  28012. #: guix-git/doc/guix.texi:18601
  28013. msgid "Defaults to @samp{\"/var/spool/cups\"}."
  28014. msgstr ""
  28015. #. type: deftypevr
  28016. #: guix-git/doc/guix.texi:18603
  28017. #, no-wrap
  28018. msgid "{@code{files-configuration} parameter} sandboxing sandboxing"
  28019. msgstr ""
  28020. #. type: deftypevr
  28021. #: guix-git/doc/guix.texi:18608
  28022. msgid "Specifies the level of security sandboxing that is applied to print filters, backends, and other child processes of the scheduler; either @code{relaxed} or @code{strict}. This directive is currently only used/supported on macOS."
  28023. msgstr ""
  28024. #. type: deftypevr
  28025. #: guix-git/doc/guix.texi:18610
  28026. msgid "Defaults to @samp{strict}."
  28027. msgstr ""
  28028. #. type: deftypevr
  28029. #: guix-git/doc/guix.texi:18612
  28030. #, no-wrap
  28031. msgid "{@code{files-configuration} parameter} file-name server-keychain"
  28032. msgstr ""
  28033. #. type: deftypevr
  28034. #: guix-git/doc/guix.texi:18617
  28035. msgid "Specifies the location of TLS certificates and private keys. CUPS will look for public and private keys in this directory: @file{.crt} files for PEM-encoded certificates and corresponding @file{.key} files for PEM-encoded private keys."
  28036. msgstr ""
  28037. #. type: deftypevr
  28038. #: guix-git/doc/guix.texi:18619
  28039. msgid "Defaults to @samp{\"/etc/cups/ssl\"}."
  28040. msgstr ""
  28041. #. type: deftypevr
  28042. #: guix-git/doc/guix.texi:18621
  28043. #, no-wrap
  28044. msgid "{@code{files-configuration} parameter} file-name server-root"
  28045. msgstr ""
  28046. #. type: deftypevr
  28047. #: guix-git/doc/guix.texi:18623
  28048. msgid "Specifies the directory containing the server configuration files."
  28049. msgstr ""
  28050. #. type: deftypevr
  28051. #: guix-git/doc/guix.texi:18625
  28052. msgid "Defaults to @samp{\"/etc/cups\"}."
  28053. msgstr ""
  28054. #. type: deftypevr
  28055. #: guix-git/doc/guix.texi:18627
  28056. #, no-wrap
  28057. msgid "{@code{files-configuration} parameter} boolean sync-on-close?"
  28058. msgstr ""
  28059. #. type: deftypevr
  28060. #: guix-git/doc/guix.texi:18630
  28061. msgid "Specifies whether the scheduler calls fsync(2) after writing configuration or state files."
  28062. msgstr ""
  28063. #. type: deftypevr
  28064. #: guix-git/doc/guix.texi:18634
  28065. #, no-wrap
  28066. msgid "{@code{files-configuration} parameter} space-separated-string-list system-group"
  28067. msgstr ""
  28068. #. type: deftypevr
  28069. #: guix-git/doc/guix.texi:18636
  28070. msgid "Specifies the group(s) to use for @code{@@SYSTEM} group authentication."
  28071. msgstr ""
  28072. #. type: deftypevr
  28073. #: guix-git/doc/guix.texi:18638
  28074. #, no-wrap
  28075. msgid "{@code{files-configuration} parameter} file-name temp-dir"
  28076. msgstr ""
  28077. #. type: deftypevr
  28078. #: guix-git/doc/guix.texi:18640
  28079. msgid "Specifies the directory where temporary files are stored."
  28080. msgstr ""
  28081. #. type: deftypevr
  28082. #: guix-git/doc/guix.texi:18642
  28083. msgid "Defaults to @samp{\"/var/spool/cups/tmp\"}."
  28084. msgstr ""
  28085. #. type: deftypevr
  28086. #: guix-git/doc/guix.texi:18644
  28087. #, no-wrap
  28088. msgid "{@code{files-configuration} parameter} string user"
  28089. msgstr ""
  28090. #. type: deftypevr
  28091. #: guix-git/doc/guix.texi:18647
  28092. msgid "Specifies the user name or ID that is used when running external programs."
  28093. msgstr ""
  28094. #. type: deftypevr
  28095. #: guix-git/doc/guix.texi:18651
  28096. #, no-wrap
  28097. msgid "{@code{files-configuration} parameter} string set-env"
  28098. msgstr ""
  28099. #. type: deftypevr
  28100. #: guix-git/doc/guix.texi:18653
  28101. msgid "Set the specified environment variable to be passed to child processes."
  28102. msgstr ""
  28103. #. type: deftypevr
  28104. #: guix-git/doc/guix.texi:18655
  28105. msgid "Defaults to @samp{\"variable value\"}."
  28106. msgstr ""
  28107. #. type: deftypevr
  28108. #: guix-git/doc/guix.texi:18658
  28109. #, no-wrap
  28110. msgid "{@code{cups-configuration} parameter} access-log-level access-log-level"
  28111. msgstr ""
  28112. #. type: deftypevr
  28113. #: guix-git/doc/guix.texi:18665
  28114. msgid "Specifies the logging level for the AccessLog file. The @code{config} level logs when printers and classes are added, deleted, or modified and when configuration files are accessed or updated. The @code{actions} level logs when print jobs are submitted, held, released, modified, or canceled, and any of the conditions for @code{config}. The @code{all} level logs all requests."
  28115. msgstr ""
  28116. #. type: deftypevr
  28117. #: guix-git/doc/guix.texi:18667
  28118. msgid "Defaults to @samp{actions}."
  28119. msgstr ""
  28120. #. type: deftypevr
  28121. #: guix-git/doc/guix.texi:18669
  28122. #, no-wrap
  28123. msgid "{@code{cups-configuration} parameter} boolean auto-purge-jobs?"
  28124. msgstr ""
  28125. #. type: deftypevr
  28126. #: guix-git/doc/guix.texi:18672
  28127. msgid "Specifies whether to purge job history data automatically when it is no longer required for quotas."
  28128. msgstr ""
  28129. #. type: deftypevr
  28130. #: guix-git/doc/guix.texi:18676
  28131. #, no-wrap
  28132. msgid "{@code{cups-configuration} parameter} comma-separated-string-list browse-dns-sd-sub-types"
  28133. msgstr ""
  28134. #. type: deftypevr
  28135. #: guix-git/doc/guix.texi:18680
  28136. msgid "Specifies a list of DNS-SD sub-types to advertise for each shared printer. For example, @samp{\"_cups\" \"_print\"} will tell network clients that both CUPS sharing and IPP Everywhere are supported."
  28137. msgstr ""
  28138. #. type: deftypevr
  28139. #: guix-git/doc/guix.texi:18682
  28140. msgid "Defaults to @samp{\"_cups\"}."
  28141. msgstr ""
  28142. #. type: deftypevr
  28143. #: guix-git/doc/guix.texi:18684
  28144. #, no-wrap
  28145. msgid "{@code{cups-configuration} parameter} browse-local-protocols browse-local-protocols"
  28146. msgstr ""
  28147. #. type: deftypevr
  28148. #: guix-git/doc/guix.texi:18686
  28149. msgid "Specifies which protocols to use for local printer sharing."
  28150. msgstr ""
  28151. #. type: deftypevr
  28152. #: guix-git/doc/guix.texi:18688
  28153. msgid "Defaults to @samp{dnssd}."
  28154. msgstr ""
  28155. #. type: deftypevr
  28156. #: guix-git/doc/guix.texi:18690
  28157. #, no-wrap
  28158. msgid "{@code{cups-configuration} parameter} boolean browse-web-if?"
  28159. msgstr ""
  28160. #. type: deftypevr
  28161. #: guix-git/doc/guix.texi:18692
  28162. msgid "Specifies whether the CUPS web interface is advertised."
  28163. msgstr ""
  28164. #. type: deftypevr
  28165. #: guix-git/doc/guix.texi:18696
  28166. #, no-wrap
  28167. msgid "{@code{cups-configuration} parameter} boolean browsing?"
  28168. msgstr ""
  28169. #. type: deftypevr
  28170. #: guix-git/doc/guix.texi:18698
  28171. msgid "Specifies whether shared printers are advertised."
  28172. msgstr ""
  28173. #. type: deftypevr
  28174. #: guix-git/doc/guix.texi:18702
  28175. #, no-wrap
  28176. msgid "{@code{cups-configuration} parameter} string classification"
  28177. msgstr ""
  28178. #. type: deftypevr
  28179. #: guix-git/doc/guix.texi:18707
  28180. msgid "Specifies the security classification of the server. Any valid banner name can be used, including @samp{\"classified\"}, @samp{\"confidential\"}, @samp{\"secret\"}, @samp{\"topsecret\"}, and @samp{\"unclassified\"}, or the banner can be omitted to disable secure printing functions."
  28181. msgstr ""
  28182. #. type: deftypevr
  28183. #: guix-git/doc/guix.texi:18709 guix-git/doc/guix.texi:19040
  28184. #: guix-git/doc/guix.texi:21023 guix-git/doc/guix.texi:21035
  28185. #: guix-git/doc/guix.texi:21063 guix-git/doc/guix.texi:21820
  28186. #: guix-git/doc/guix.texi:21834 guix-git/doc/guix.texi:21841
  28187. #: guix-git/doc/guix.texi:21848 guix-git/doc/guix.texi:21878
  28188. #: guix-git/doc/guix.texi:21976 guix-git/doc/guix.texi:24095
  28189. #: guix-git/doc/guix.texi:24121 guix-git/doc/guix.texi:24157
  28190. #: guix-git/doc/guix.texi:24203 guix-git/doc/guix.texi:24222
  28191. #: guix-git/doc/guix.texi:24261 guix-git/doc/guix.texi:24320
  28192. #: guix-git/doc/guix.texi:24330 guix-git/doc/guix.texi:28918
  28193. #: guix-git/doc/guix.texi:28926 guix-git/doc/guix.texi:28934
  28194. #: guix-git/doc/guix.texi:28942 guix-git/doc/guix.texi:29221
  28195. #: guix-git/doc/guix.texi:30523 guix-git/doc/guix.texi:30531
  28196. #: guix-git/doc/guix.texi:30539 guix-git/doc/guix.texi:30647
  28197. #: guix-git/doc/guix.texi:30672 guix-git/doc/guix.texi:30803
  28198. #: guix-git/doc/guix.texi:30811 guix-git/doc/guix.texi:30819
  28199. #: guix-git/doc/guix.texi:30827 guix-git/doc/guix.texi:30835
  28200. #: guix-git/doc/guix.texi:30843 guix-git/doc/guix.texi:30866
  28201. #: guix-git/doc/guix.texi:30874 guix-git/doc/guix.texi:30926
  28202. #: guix-git/doc/guix.texi:30942 guix-git/doc/guix.texi:30950
  28203. #: guix-git/doc/guix.texi:30989 guix-git/doc/guix.texi:31012
  28204. #: guix-git/doc/guix.texi:31034 guix-git/doc/guix.texi:31041
  28205. #: guix-git/doc/guix.texi:31076 guix-git/doc/guix.texi:31084
  28206. #: guix-git/doc/guix.texi:31108 guix-git/doc/guix.texi:31140
  28207. #: guix-git/doc/guix.texi:31169 guix-git/doc/guix.texi:31176
  28208. #: guix-git/doc/guix.texi:31183 guix-git/doc/guix.texi:31191
  28209. #: guix-git/doc/guix.texi:31205 guix-git/doc/guix.texi:31214
  28210. #: guix-git/doc/guix.texi:31224 guix-git/doc/guix.texi:31231
  28211. #: guix-git/doc/guix.texi:31238 guix-git/doc/guix.texi:31245
  28212. #: guix-git/doc/guix.texi:31316 guix-git/doc/guix.texi:31323
  28213. #: guix-git/doc/guix.texi:31330 guix-git/doc/guix.texi:31339
  28214. #: guix-git/doc/guix.texi:31355 guix-git/doc/guix.texi:31362
  28215. #: guix-git/doc/guix.texi:31369 guix-git/doc/guix.texi:31376
  28216. #: guix-git/doc/guix.texi:31384 guix-git/doc/guix.texi:31392
  28217. msgid "Defaults to @samp{\"\"}."
  28218. msgstr ""
  28219. #. type: deftypevr
  28220. #: guix-git/doc/guix.texi:18711
  28221. #, no-wrap
  28222. msgid "{@code{cups-configuration} parameter} boolean classify-override?"
  28223. msgstr ""
  28224. #. type: deftypevr
  28225. #: guix-git/doc/guix.texi:18714
  28226. msgid "Specifies whether users may override the classification (cover page) of individual print jobs using the @code{job-sheets} option."
  28227. msgstr ""
  28228. #. type: deftypevr
  28229. #: guix-git/doc/guix.texi:18718
  28230. #, no-wrap
  28231. msgid "{@code{cups-configuration} parameter} default-auth-type default-auth-type"
  28232. msgstr ""
  28233. #. type: deftypevr
  28234. #: guix-git/doc/guix.texi:18720
  28235. msgid "Specifies the default type of authentication to use."
  28236. msgstr ""
  28237. #. type: deftypevr
  28238. #: guix-git/doc/guix.texi:18722
  28239. msgid "Defaults to @samp{Basic}."
  28240. msgstr ""
  28241. #. type: deftypevr
  28242. #: guix-git/doc/guix.texi:18724
  28243. #, no-wrap
  28244. msgid "{@code{cups-configuration} parameter} default-encryption default-encryption"
  28245. msgstr ""
  28246. #. type: deftypevr
  28247. #: guix-git/doc/guix.texi:18726
  28248. msgid "Specifies whether encryption will be used for authenticated requests."
  28249. msgstr ""
  28250. #. type: deftypevr
  28251. #: guix-git/doc/guix.texi:18728
  28252. msgid "Defaults to @samp{Required}."
  28253. msgstr ""
  28254. #. type: deftypevr
  28255. #: guix-git/doc/guix.texi:18730
  28256. #, no-wrap
  28257. msgid "{@code{cups-configuration} parameter} string default-language"
  28258. msgstr ""
  28259. #. type: deftypevr
  28260. #: guix-git/doc/guix.texi:18732
  28261. msgid "Specifies the default language to use for text and web content."
  28262. msgstr ""
  28263. #. type: deftypevr
  28264. #: guix-git/doc/guix.texi:18734
  28265. msgid "Defaults to @samp{\"en\"}."
  28266. msgstr ""
  28267. #. type: deftypevr
  28268. #: guix-git/doc/guix.texi:18736
  28269. #, no-wrap
  28270. msgid "{@code{cups-configuration} parameter} string default-paper-size"
  28271. msgstr ""
  28272. #. type: deftypevr
  28273. #: guix-git/doc/guix.texi:18741
  28274. msgid "Specifies the default paper size for new print queues. @samp{\"Auto\"} uses a locale-specific default, while @samp{\"None\"} specifies there is no default paper size. Specific size names are typically @samp{\"Letter\"} or @samp{\"A4\"}."
  28275. msgstr ""
  28276. #. type: deftypevr
  28277. #: guix-git/doc/guix.texi:18743
  28278. msgid "Defaults to @samp{\"Auto\"}."
  28279. msgstr ""
  28280. #. type: deftypevr
  28281. #: guix-git/doc/guix.texi:18745
  28282. #, no-wrap
  28283. msgid "{@code{cups-configuration} parameter} string default-policy"
  28284. msgstr ""
  28285. #. type: deftypevr
  28286. #: guix-git/doc/guix.texi:18747
  28287. msgid "Specifies the default access policy to use."
  28288. msgstr ""
  28289. #. type: deftypevr
  28290. #: guix-git/doc/guix.texi:18749
  28291. msgid "Defaults to @samp{\"default\"}."
  28292. msgstr ""
  28293. #. type: deftypevr
  28294. #: guix-git/doc/guix.texi:18751
  28295. #, no-wrap
  28296. msgid "{@code{cups-configuration} parameter} boolean default-shared?"
  28297. msgstr ""
  28298. #. type: deftypevr
  28299. #: guix-git/doc/guix.texi:18753
  28300. msgid "Specifies whether local printers are shared by default."
  28301. msgstr ""
  28302. #. type: deftypevr
  28303. #: guix-git/doc/guix.texi:18755 guix-git/doc/guix.texi:18835
  28304. #: guix-git/doc/guix.texi:19125 guix-git/doc/guix.texi:21910
  28305. #: guix-git/doc/guix.texi:21961 guix-git/doc/guix.texi:21968
  28306. #: guix-git/doc/guix.texi:23250 guix-git/doc/guix.texi:23438
  28307. #: guix-git/doc/guix.texi:23555 guix-git/doc/guix.texi:23591
  28308. #: guix-git/doc/guix.texi:23642 guix-git/doc/guix.texi:23661
  28309. #: guix-git/doc/guix.texi:23671 guix-git/doc/guix.texi:23681
  28310. #: guix-git/doc/guix.texi:23740 guix-git/doc/guix.texi:23762
  28311. #: guix-git/doc/guix.texi:23787 guix-git/doc/guix.texi:23813
  28312. #: guix-git/doc/guix.texi:23831 guix-git/doc/guix.texi:27019
  28313. #: guix-git/doc/guix.texi:27047 guix-git/doc/guix.texi:27183
  28314. #: guix-git/doc/guix.texi:27190 guix-git/doc/guix.texi:27198
  28315. #: guix-git/doc/guix.texi:27235 guix-git/doc/guix.texi:27249
  28316. #: guix-git/doc/guix.texi:27338 guix-git/doc/guix.texi:27345
  28317. #: guix-git/doc/guix.texi:27353 guix-git/doc/guix.texi:28126
  28318. #: guix-git/doc/guix.texi:28266 guix-git/doc/guix.texi:28452
  28319. #: guix-git/doc/guix.texi:28459 guix-git/doc/guix.texi:28481
  28320. #: guix-git/doc/guix.texi:28520 guix-git/doc/guix.texi:28540
  28321. #: guix-git/doc/guix.texi:28554 guix-git/doc/guix.texi:28767
  28322. #: guix-git/doc/guix.texi:30625 guix-git/doc/guix.texi:30713
  28323. #: guix-git/doc/guix.texi:30729 guix-git/doc/guix.texi:30779
  28324. msgid "Defaults to @samp{#t}."
  28325. msgstr ""
  28326. #. type: deftypevr
  28327. #: guix-git/doc/guix.texi:18757
  28328. #, no-wrap
  28329. msgid "{@code{cups-configuration} parameter} non-negative-integer dirty-clean-interval"
  28330. msgstr ""
  28331. #. type: deftypevr
  28332. #: guix-git/doc/guix.texi:18761
  28333. msgid "Specifies the delay for updating of configuration and state files, in seconds. A value of 0 causes the update to happen as soon as possible, typically within a few milliseconds."
  28334. msgstr ""
  28335. #. type: deftypevr
  28336. #: guix-git/doc/guix.texi:18763 guix-git/doc/guix.texi:18811
  28337. #: guix-git/doc/guix.texi:18820 guix-git/doc/guix.texi:19132
  28338. #: guix-git/doc/guix.texi:23600 guix-git/doc/guix.texi:23633
  28339. msgid "Defaults to @samp{30}."
  28340. msgstr ""
  28341. #. type: deftypevr
  28342. #: guix-git/doc/guix.texi:18765
  28343. #, no-wrap
  28344. msgid "{@code{cups-configuration} parameter} error-policy error-policy"
  28345. msgstr ""
  28346. #. type: deftypevr
  28347. #: guix-git/doc/guix.texi:18771
  28348. msgid "Specifies what to do when an error occurs. Possible values are @code{abort-job}, which will discard the failed print job; @code{retry-job}, which will retry the job at a later time; @code{retry-current-job}, which retries the failed job immediately; and @code{stop-printer}, which stops the printer."
  28349. msgstr ""
  28350. #. type: deftypevr
  28351. #: guix-git/doc/guix.texi:18773
  28352. msgid "Defaults to @samp{stop-printer}."
  28353. msgstr ""
  28354. #. type: deftypevr
  28355. #: guix-git/doc/guix.texi:18775
  28356. #, no-wrap
  28357. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-limit"
  28358. msgstr ""
  28359. #. type: deftypevr
  28360. #: guix-git/doc/guix.texi:18783
  28361. msgid "Specifies the maximum cost of filters that are run concurrently, which can be used to minimize disk, memory, and CPU resource problems. A limit of 0 disables filter limiting. An average print to a non-PostScript printer needs a filter limit of about 200. A PostScript printer needs about half that (100). Setting the limit below these thresholds will effectively limit the scheduler to printing a single job at any time."
  28362. msgstr ""
  28363. #. type: deftypevr
  28364. #: guix-git/doc/guix.texi:18785 guix-git/doc/guix.texi:18793
  28365. #: guix-git/doc/guix.texi:18842 guix-git/doc/guix.texi:18958
  28366. #: guix-git/doc/guix.texi:18972 guix-git/doc/guix.texi:18979
  28367. #: guix-git/doc/guix.texi:20465 guix-git/doc/guix.texi:20481
  28368. #: guix-git/doc/guix.texi:21138 guix-git/doc/guix.texi:21150
  28369. #: guix-git/doc/guix.texi:21929 guix-git/doc/guix.texi:21938
  28370. #: guix-git/doc/guix.texi:21946 guix-git/doc/guix.texi:21954
  28371. #: guix-git/doc/guix.texi:28142 guix-git/doc/guix.texi:28467
  28372. #: guix-git/doc/guix.texi:30618 guix-git/doc/guix.texi:30918
  28373. #: guix-git/doc/guix.texi:31092
  28374. msgid "Defaults to @samp{0}."
  28375. msgstr ""
  28376. #. type: deftypevr
  28377. #: guix-git/doc/guix.texi:18787
  28378. #, no-wrap
  28379. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-nice"
  28380. msgstr ""
  28381. #. type: deftypevr
  28382. #: guix-git/doc/guix.texi:18791
  28383. msgid "Specifies the scheduling priority of filters that are run to print a job. The nice value ranges from 0, the highest priority, to 19, the lowest priority."
  28384. msgstr ""
  28385. #. type: deftypevr
  28386. #: guix-git/doc/guix.texi:18795
  28387. #, no-wrap
  28388. msgid "{@code{cups-configuration} parameter} host-name-lookups host-name-lookups"
  28389. msgstr ""
  28390. #. type: deftypevr
  28391. #: guix-git/doc/guix.texi:18802
  28392. msgid "Specifies whether to do reverse lookups on connecting clients. The @code{double} setting causes @code{cupsd} to verify that the hostname resolved from the address matches one of the addresses returned for that hostname. Double lookups also prevent clients with unregistered addresses from connecting to your server. Only set this option to @code{#t} or @code{double} if absolutely required."
  28393. msgstr ""
  28394. #. type: deftypevr
  28395. #: guix-git/doc/guix.texi:18806
  28396. #, no-wrap
  28397. msgid "{@code{cups-configuration} parameter} non-negative-integer job-kill-delay"
  28398. msgstr ""
  28399. #. type: deftypevr
  28400. #: guix-git/doc/guix.texi:18809
  28401. msgid "Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job."
  28402. msgstr ""
  28403. #. type: deftypevr
  28404. #: guix-git/doc/guix.texi:18813
  28405. #, no-wrap
  28406. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-interval"
  28407. msgstr ""
  28408. #. type: deftypevr
  28409. #: guix-git/doc/guix.texi:18818
  28410. msgid "Specifies the interval between retries of jobs in seconds. This is typically used for fax queues but can also be used with normal print queues whose error policy is @code{retry-job} or @code{retry-current-job}."
  28411. msgstr ""
  28412. #. type: deftypevr
  28413. #: guix-git/doc/guix.texi:18822
  28414. #, no-wrap
  28415. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-limit"
  28416. msgstr ""
  28417. #. type: deftypevr
  28418. #: guix-git/doc/guix.texi:18827
  28419. msgid "Specifies the number of retries that are done for jobs. This is typically used for fax queues but can also be used with normal print queues whose error policy is @code{retry-job} or @code{retry-current-job}."
  28420. msgstr ""
  28421. #. type: deftypevr
  28422. #: guix-git/doc/guix.texi:18829 guix-git/doc/guix.texi:23564
  28423. #: guix-git/doc/guix.texi:29019 guix-git/doc/guix.texi:29039
  28424. #: guix-git/doc/guix.texi:29055 guix-git/doc/guix.texi:29069
  28425. #: guix-git/doc/guix.texi:29076 guix-git/doc/guix.texi:29083
  28426. #: guix-git/doc/guix.texi:29090 guix-git/doc/guix.texi:29250
  28427. #: guix-git/doc/guix.texi:29266 guix-git/doc/guix.texi:29273
  28428. #: guix-git/doc/guix.texi:29280 guix-git/doc/guix.texi:29291
  28429. #: guix-git/doc/guix.texi:30570 guix-git/doc/guix.texi:30578
  28430. #: guix-git/doc/guix.texi:30586 guix-git/doc/guix.texi:30610
  28431. msgid "Defaults to @samp{5}."
  28432. msgstr ""
  28433. #. type: deftypevr
  28434. #: guix-git/doc/guix.texi:18831
  28435. #, no-wrap
  28436. msgid "{@code{cups-configuration} parameter} boolean keep-alive?"
  28437. msgstr ""
  28438. #. type: deftypevr
  28439. #: guix-git/doc/guix.texi:18833
  28440. msgid "Specifies whether to support HTTP keep-alive connections."
  28441. msgstr ""
  28442. #. type: deftypevr
  28443. #: guix-git/doc/guix.texi:18837
  28444. #, no-wrap
  28445. msgid "{@code{cups-configuration} parameter} non-negative-integer limit-request-body"
  28446. msgstr ""
  28447. #. type: deftypevr
  28448. #: guix-git/doc/guix.texi:18840
  28449. msgid "Specifies the maximum size of print files, IPP requests, and HTML form data. A limit of 0 disables the limit check."
  28450. msgstr ""
  28451. #. type: deftypevr
  28452. #: guix-git/doc/guix.texi:18844
  28453. #, no-wrap
  28454. msgid "{@code{cups-configuration} parameter} multiline-string-list listen"
  28455. msgstr ""
  28456. #. type: deftypevr
  28457. #: guix-git/doc/guix.texi:18851
  28458. msgid "Listens on the specified interfaces for connections. Valid values are of the form @var{address}:@var{port}, where @var{address} is either an IPv6 address enclosed in brackets, an IPv4 address, or @code{*} to indicate all addresses. Values can also be file names of local UNIX domain sockets. The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks."
  28459. msgstr ""
  28460. #. type: deftypevr
  28461. #: guix-git/doc/guix.texi:18853
  28462. #, no-wrap
  28463. msgid "{@code{cups-configuration} parameter} non-negative-integer listen-back-log"
  28464. msgstr ""
  28465. #. type: deftypevr
  28466. #: guix-git/doc/guix.texi:18860
  28467. msgid "Specifies the number of pending connections that will be allowed. This normally only affects very busy servers that have reached the MaxClients limit, but can also be triggered by large numbers of simultaneous connections. When the limit is reached, the operating system will refuse additional connections until the scheduler can accept the pending ones."
  28468. msgstr ""
  28469. #. type: deftypevr
  28470. #: guix-git/doc/guix.texi:18862
  28471. msgid "Defaults to @samp{128}."
  28472. msgstr ""
  28473. #. type: deftypevr
  28474. #: guix-git/doc/guix.texi:18864
  28475. #, no-wrap
  28476. msgid "{@code{cups-configuration} parameter} location-access-control-list location-access-controls"
  28477. msgstr ""
  28478. #. type: deftypevr
  28479. #: guix-git/doc/guix.texi:18866
  28480. msgid "Specifies a set of additional access controls."
  28481. msgstr ""
  28482. #. type: deftypevr
  28483. #: guix-git/doc/guix.texi:18868
  28484. msgid "Available @code{location-access-controls} fields are:"
  28485. msgstr ""
  28486. #. type: deftypevr
  28487. #: guix-git/doc/guix.texi:18869
  28488. #, no-wrap
  28489. msgid "{@code{location-access-controls} parameter} file-name path"
  28490. msgstr ""
  28491. #. type: deftypevr
  28492. #: guix-git/doc/guix.texi:18871
  28493. msgid "Specifies the URI path to which the access control applies."
  28494. msgstr ""
  28495. #. type: deftypevr
  28496. #: guix-git/doc/guix.texi:18873
  28497. #, no-wrap
  28498. msgid "{@code{location-access-controls} parameter} access-control-list access-controls"
  28499. msgstr ""
  28500. #. type: deftypevr
  28501. #: guix-git/doc/guix.texi:18876
  28502. msgid "Access controls for all access to this path, in the same format as the @code{access-controls} of @code{operation-access-control}."
  28503. msgstr ""
  28504. #. type: deftypevr
  28505. #: guix-git/doc/guix.texi:18878 guix-git/doc/guix.texi:18884
  28506. #: guix-git/doc/guix.texi:18898 guix-git/doc/guix.texi:18905
  28507. #: guix-git/doc/guix.texi:19047 guix-git/doc/guix.texi:19106
  28508. #: guix-git/doc/guix.texi:19184 guix-git/doc/guix.texi:19198
  28509. #: guix-git/doc/guix.texi:20345 guix-git/doc/guix.texi:20354
  28510. #: guix-git/doc/guix.texi:21624 guix-git/doc/guix.texi:21827
  28511. #: guix-git/doc/guix.texi:21855 guix-git/doc/guix.texi:21885
  28512. #: guix-git/doc/guix.texi:22000 guix-git/doc/guix.texi:22013
  28513. #: guix-git/doc/guix.texi:22020 guix-git/doc/guix.texi:23770
  28514. #: guix-git/doc/guix.texi:24165 guix-git/doc/guix.texi:24269
  28515. #: guix-git/doc/guix.texi:24696 guix-git/doc/guix.texi:24704
  28516. #: guix-git/doc/guix.texi:24949 guix-git/doc/guix.texi:27078
  28517. #: guix-git/doc/guix.texi:27256 guix-git/doc/guix.texi:27455
  28518. #: guix-git/doc/guix.texi:28910 guix-git/doc/guix.texi:28970
  28519. #: guix-git/doc/guix.texi:28978 guix-git/doc/guix.texi:30633
  28520. #: guix-git/doc/guix.texi:30640 guix-git/doc/guix.texi:30982
  28521. #: guix-git/doc/guix.texi:31060 guix-git/doc/guix.texi:31154
  28522. #: guix-git/doc/guix.texi:31162 guix-git/doc/guix.texi:31198
  28523. #: guix-git/doc/guix.texi:31348 guix-git/doc/guix.texi:31399
  28524. #: guix-git/doc/guix.texi:31408
  28525. msgid "Defaults to @samp{()}."
  28526. msgstr ""
  28527. #. type: deftypevr
  28528. #: guix-git/doc/guix.texi:18880
  28529. #, no-wrap
  28530. msgid "{@code{location-access-controls} parameter} method-access-control-list method-access-controls"
  28531. msgstr ""
  28532. #. type: deftypevr
  28533. #: guix-git/doc/guix.texi:18882
  28534. msgid "Access controls for method-specific access to this path."
  28535. msgstr ""
  28536. #. type: deftypevr
  28537. #: guix-git/doc/guix.texi:18886
  28538. msgid "Available @code{method-access-controls} fields are:"
  28539. msgstr ""
  28540. #. type: deftypevr
  28541. #: guix-git/doc/guix.texi:18887
  28542. #, no-wrap
  28543. msgid "{@code{method-access-controls} parameter} boolean reverse?"
  28544. msgstr ""
  28545. #. type: deftypevr
  28546. #: guix-git/doc/guix.texi:18890
  28547. msgid "If @code{#t}, apply access controls to all methods except the listed methods. Otherwise apply to only the listed methods."
  28548. msgstr ""
  28549. #. type: deftypevr
  28550. #: guix-git/doc/guix.texi:18894
  28551. #, no-wrap
  28552. msgid "{@code{method-access-controls} parameter} method-list methods"
  28553. msgstr ""
  28554. #. type: deftypevr
  28555. #: guix-git/doc/guix.texi:18896
  28556. msgid "Methods to which this access control applies."
  28557. msgstr ""
  28558. #. type: deftypevr
  28559. #: guix-git/doc/guix.texi:18900
  28560. #, no-wrap
  28561. msgid "{@code{method-access-controls} parameter} access-control-list access-controls"
  28562. msgstr ""
  28563. #. type: deftypevr
  28564. #: guix-git/doc/guix.texi:18903
  28565. msgid "Access control directives, as a list of strings. Each string should be one directive, such as @samp{\"Order allow,deny\"}."
  28566. msgstr ""
  28567. #. type: deftypevr
  28568. #: guix-git/doc/guix.texi:18909
  28569. #, no-wrap
  28570. msgid "{@code{cups-configuration} parameter} non-negative-integer log-debug-history"
  28571. msgstr ""
  28572. #. type: deftypevr
  28573. #: guix-git/doc/guix.texi:18913
  28574. msgid "Specifies the number of debugging messages that are retained for logging if an error occurs in a print job. Debug messages are logged regardless of the LogLevel setting."
  28575. msgstr ""
  28576. #. type: deftypevr
  28577. #: guix-git/doc/guix.texi:18915 guix-git/doc/guix.texi:18936
  28578. #: guix-git/doc/guix.texi:18943 guix-git/doc/guix.texi:21384
  28579. #: guix-git/doc/guix.texi:23302 guix-git/doc/guix.texi:23317
  28580. #: guix-git/doc/guix.texi:27440
  28581. msgid "Defaults to @samp{100}."
  28582. msgstr ""
  28583. #. type: deftypevr
  28584. #: guix-git/doc/guix.texi:18917
  28585. #, no-wrap
  28586. msgid "{@code{cups-configuration} parameter} log-level log-level"
  28587. msgstr ""
  28588. #. type: deftypevr
  28589. #: guix-git/doc/guix.texi:18920
  28590. msgid "Specifies the level of logging for the ErrorLog file. The value @code{none} stops all logging while @code{debug2} logs everything."
  28591. msgstr ""
  28592. #. type: deftypevr
  28593. #: guix-git/doc/guix.texi:18922 guix-git/doc/guix.texi:23779
  28594. msgid "Defaults to @samp{info}."
  28595. msgstr ""
  28596. #. type: deftypevr
  28597. #: guix-git/doc/guix.texi:18924
  28598. #, no-wrap
  28599. msgid "{@code{cups-configuration} parameter} log-time-format log-time-format"
  28600. msgstr ""
  28601. #. type: deftypevr
  28602. #: guix-git/doc/guix.texi:18927
  28603. msgid "Specifies the format of the date and time in the log files. The value @code{standard} logs whole seconds while @code{usecs} logs microseconds."
  28604. msgstr ""
  28605. #. type: deftypevr
  28606. #: guix-git/doc/guix.texi:18929
  28607. msgid "Defaults to @samp{standard}."
  28608. msgstr ""
  28609. #. type: deftypevr
  28610. #: guix-git/doc/guix.texi:18931
  28611. #, no-wrap
  28612. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients"
  28613. msgstr ""
  28614. #. type: deftypevr
  28615. #: guix-git/doc/guix.texi:18934
  28616. msgid "Specifies the maximum number of simultaneous clients that are allowed by the scheduler."
  28617. msgstr ""
  28618. #. type: deftypevr
  28619. #: guix-git/doc/guix.texi:18938
  28620. #, no-wrap
  28621. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients-per-host"
  28622. msgstr ""
  28623. #. type: deftypevr
  28624. #: guix-git/doc/guix.texi:18941
  28625. msgid "Specifies the maximum number of simultaneous clients that are allowed from a single address."
  28626. msgstr ""
  28627. #. type: deftypevr
  28628. #: guix-git/doc/guix.texi:18945
  28629. #, no-wrap
  28630. msgid "{@code{cups-configuration} parameter} non-negative-integer max-copies"
  28631. msgstr ""
  28632. #. type: deftypevr
  28633. #: guix-git/doc/guix.texi:18948
  28634. msgid "Specifies the maximum number of copies that a user can print of each job."
  28635. msgstr ""
  28636. #. type: deftypevr
  28637. #: guix-git/doc/guix.texi:18950
  28638. msgid "Defaults to @samp{9999}."
  28639. msgstr ""
  28640. #. type: deftypevr
  28641. #: guix-git/doc/guix.texi:18952
  28642. #, no-wrap
  28643. msgid "{@code{cups-configuration} parameter} non-negative-integer max-hold-time"
  28644. msgstr ""
  28645. #. type: deftypevr
  28646. #: guix-git/doc/guix.texi:18956
  28647. msgid "Specifies the maximum time a job may remain in the @code{indefinite} hold state before it is canceled. A value of 0 disables cancellation of held jobs."
  28648. msgstr ""
  28649. #. type: deftypevr
  28650. #: guix-git/doc/guix.texi:18960
  28651. #, no-wrap
  28652. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs"
  28653. msgstr ""
  28654. #. type: deftypevr
  28655. #: guix-git/doc/guix.texi:18963
  28656. msgid "Specifies the maximum number of simultaneous jobs that are allowed. Set to 0 to allow an unlimited number of jobs."
  28657. msgstr ""
  28658. #. type: deftypevr
  28659. #: guix-git/doc/guix.texi:18965
  28660. msgid "Defaults to @samp{500}."
  28661. msgstr ""
  28662. #. type: deftypevr
  28663. #: guix-git/doc/guix.texi:18967
  28664. #, no-wrap
  28665. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-printer"
  28666. msgstr ""
  28667. #. type: deftypevr
  28668. #: guix-git/doc/guix.texi:18970
  28669. msgid "Specifies the maximum number of simultaneous jobs that are allowed per printer. A value of 0 allows up to MaxJobs jobs per printer."
  28670. msgstr ""
  28671. #. type: deftypevr
  28672. #: guix-git/doc/guix.texi:18974
  28673. #, no-wrap
  28674. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-user"
  28675. msgstr ""
  28676. #. type: deftypevr
  28677. #: guix-git/doc/guix.texi:18977
  28678. msgid "Specifies the maximum number of simultaneous jobs that are allowed per user. A value of 0 allows up to MaxJobs jobs per user."
  28679. msgstr ""
  28680. #. type: deftypevr
  28681. #: guix-git/doc/guix.texi:18981
  28682. #, no-wrap
  28683. msgid "{@code{cups-configuration} parameter} non-negative-integer max-job-time"
  28684. msgstr ""
  28685. #. type: deftypevr
  28686. #: guix-git/doc/guix.texi:18984
  28687. msgid "Specifies the maximum time a job may take to print before it is canceled, in seconds. Set to 0 to disable cancellation of ``stuck'' jobs."
  28688. msgstr ""
  28689. #. type: deftypevr
  28690. #: guix-git/doc/guix.texi:18986
  28691. msgid "Defaults to @samp{10800}."
  28692. msgstr ""
  28693. #. type: deftypevr
  28694. #: guix-git/doc/guix.texi:18988
  28695. #, no-wrap
  28696. msgid "{@code{cups-configuration} parameter} non-negative-integer max-log-size"
  28697. msgstr ""
  28698. #. type: deftypevr
  28699. #: guix-git/doc/guix.texi:18991
  28700. msgid "Specifies the maximum size of the log files before they are rotated, in bytes. The value 0 disables log rotation."
  28701. msgstr ""
  28702. #. type: deftypevr
  28703. #: guix-git/doc/guix.texi:18993
  28704. msgid "Defaults to @samp{1048576}."
  28705. msgstr ""
  28706. #. type: deftypevr
  28707. #: guix-git/doc/guix.texi:18995
  28708. #, no-wrap
  28709. msgid "{@code{cups-configuration} parameter} non-negative-integer multiple-operation-timeout"
  28710. msgstr ""
  28711. #. type: deftypevr
  28712. #: guix-git/doc/guix.texi:18998
  28713. msgid "Specifies the maximum amount of time to allow between files in a multiple file print job, in seconds."
  28714. msgstr ""
  28715. #. type: deftypevr
  28716. #: guix-git/doc/guix.texi:19000 guix-git/doc/guix.texi:19211
  28717. #: guix-git/doc/guix.texi:27012
  28718. msgid "Defaults to @samp{300}."
  28719. msgstr ""
  28720. #. type: deftypevr
  28721. #: guix-git/doc/guix.texi:19002
  28722. #, no-wrap
  28723. msgid "{@code{cups-configuration} parameter} string page-log-format"
  28724. msgstr ""
  28725. #. type: deftypevr
  28726. #: guix-git/doc/guix.texi:19007
  28727. msgid "Specifies the format of PageLog lines. Sequences beginning with percent (@samp{%}) characters are replaced with the corresponding information, while all other characters are copied literally. The following percent sequences are recognized:"
  28728. msgstr ""
  28729. #. type: item
  28730. #: guix-git/doc/guix.texi:19009
  28731. #, no-wrap
  28732. msgid "%%"
  28733. msgstr ""
  28734. #. type: table
  28735. #: guix-git/doc/guix.texi:19011
  28736. msgid "insert a single percent character"
  28737. msgstr ""
  28738. #. type: item
  28739. #: guix-git/doc/guix.texi:19012
  28740. #, no-wrap
  28741. msgid "%@{name@}"
  28742. msgstr ""
  28743. #. type: table
  28744. #: guix-git/doc/guix.texi:19014
  28745. msgid "insert the value of the specified IPP attribute"
  28746. msgstr ""
  28747. #. type: item
  28748. #: guix-git/doc/guix.texi:19015
  28749. #, no-wrap
  28750. msgid "%C"
  28751. msgstr ""
  28752. #. type: table
  28753. #: guix-git/doc/guix.texi:19017
  28754. msgid "insert the number of copies for the current page"
  28755. msgstr ""
  28756. #. type: item
  28757. #: guix-git/doc/guix.texi:19018
  28758. #, no-wrap
  28759. msgid "%P"
  28760. msgstr ""
  28761. #. type: table
  28762. #: guix-git/doc/guix.texi:19020
  28763. msgid "insert the current page number"
  28764. msgstr ""
  28765. #. type: item
  28766. #: guix-git/doc/guix.texi:19021
  28767. #, no-wrap
  28768. msgid "%T"
  28769. msgstr ""
  28770. #. type: table
  28771. #: guix-git/doc/guix.texi:19023
  28772. msgid "insert the current date and time in common log format"
  28773. msgstr ""
  28774. #. type: item
  28775. #: guix-git/doc/guix.texi:19024
  28776. #, no-wrap
  28777. msgid "%j"
  28778. msgstr ""
  28779. #. type: table
  28780. #: guix-git/doc/guix.texi:19026
  28781. msgid "insert the job ID"
  28782. msgstr ""
  28783. #. type: item
  28784. #: guix-git/doc/guix.texi:19027 guix-git/doc/guix.texi:20983
  28785. #, no-wrap
  28786. msgid "%p"
  28787. msgstr ""
  28788. #. type: table
  28789. #: guix-git/doc/guix.texi:19029
  28790. msgid "insert the printer name"
  28791. msgstr ""
  28792. #. type: item
  28793. #: guix-git/doc/guix.texi:19030 guix-git/doc/guix.texi:21006
  28794. #, no-wrap
  28795. msgid "%u"
  28796. msgstr ""
  28797. #. type: table
  28798. #: guix-git/doc/guix.texi:19032
  28799. msgid "insert the username"
  28800. msgstr ""
  28801. #. type: deftypevr
  28802. #: guix-git/doc/guix.texi:19038
  28803. msgid "A value of the empty string disables page logging. The string @code{%p %u %j %T %P %C %@{job-billing@} %@{job-originating-host-name@} %@{job-name@} %@{media@} %@{sides@}} creates a page log with the standard items."
  28804. msgstr ""
  28805. #. type: deftypevr
  28806. #: guix-git/doc/guix.texi:19042
  28807. #, no-wrap
  28808. msgid "{@code{cups-configuration} parameter} environment-variables environment-variables"
  28809. msgstr ""
  28810. #. type: deftypevr
  28811. #: guix-git/doc/guix.texi:19045
  28812. msgid "Passes the specified environment variable(s) to child processes; a list of strings."
  28813. msgstr ""
  28814. #. type: deftypevr
  28815. #: guix-git/doc/guix.texi:19049
  28816. #, no-wrap
  28817. msgid "{@code{cups-configuration} parameter} policy-configuration-list policies"
  28818. msgstr ""
  28819. #. type: deftypevr
  28820. #: guix-git/doc/guix.texi:19051
  28821. msgid "Specifies named access control policies."
  28822. msgstr ""
  28823. #. type: deftypevr
  28824. #: guix-git/doc/guix.texi:19053
  28825. msgid "Available @code{policy-configuration} fields are:"
  28826. msgstr ""
  28827. #. type: deftypevr
  28828. #: guix-git/doc/guix.texi:19054
  28829. #, no-wrap
  28830. msgid "{@code{policy-configuration} parameter} string name"
  28831. msgstr ""
  28832. #. type: deftypevr
  28833. #: guix-git/doc/guix.texi:19056
  28834. msgid "Name of the policy."
  28835. msgstr ""
  28836. #. type: deftypevr
  28837. #: guix-git/doc/guix.texi:19058
  28838. #, no-wrap
  28839. msgid "{@code{policy-configuration} parameter} string job-private-access"
  28840. msgstr ""
  28841. #. type: deftypevr
  28842. #: guix-git/doc/guix.texi:19068
  28843. msgid "Specifies an access list for a job's private values. @code{@@ACL} maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. @code{@@OWNER} maps to the job's owner. @code{@@SYSTEM} maps to the groups listed for the @code{system-group} field of the @code{files-configuration}, which is reified into the @code{cups-files.conf(5)} file. Other possible elements of the access list include specific user names, and @code{@@@var{group}} to indicate members of a specific group. The access list may also be simply @code{all} or @code{default}."
  28844. msgstr ""
  28845. #. type: deftypevr
  28846. #: guix-git/doc/guix.texi:19070 guix-git/doc/guix.texi:19092
  28847. msgid "Defaults to @samp{\"@@OWNER @@SYSTEM\"}."
  28848. msgstr ""
  28849. #. type: deftypevr
  28850. #: guix-git/doc/guix.texi:19072
  28851. #, no-wrap
  28852. msgid "{@code{policy-configuration} parameter} string job-private-values"
  28853. msgstr ""
  28854. #. type: deftypevr
  28855. #: guix-git/doc/guix.texi:19075 guix-git/doc/guix.texi:19097
  28856. msgid "Specifies the list of job values to make private, or @code{all}, @code{default}, or @code{none}."
  28857. msgstr ""
  28858. #. type: deftypevr
  28859. #: guix-git/doc/guix.texi:19078
  28860. msgid "Defaults to @samp{\"job-name job-originating-host-name job-originating-user-name phone\"}."
  28861. msgstr ""
  28862. #. type: deftypevr
  28863. #: guix-git/doc/guix.texi:19080
  28864. #, no-wrap
  28865. msgid "{@code{policy-configuration} parameter} string subscription-private-access"
  28866. msgstr ""
  28867. #. type: deftypevr
  28868. #: guix-git/doc/guix.texi:19090
  28869. msgid "Specifies an access list for a subscription's private values. @code{@@ACL} maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. @code{@@OWNER} maps to the job's owner. @code{@@SYSTEM} maps to the groups listed for the @code{system-group} field of the @code{files-configuration}, which is reified into the @code{cups-files.conf(5)} file. Other possible elements of the access list include specific user names, and @code{@@@var{group}} to indicate members of a specific group. The access list may also be simply @code{all} or @code{default}."
  28870. msgstr ""
  28871. #. type: deftypevr
  28872. #: guix-git/doc/guix.texi:19094
  28873. #, no-wrap
  28874. msgid "{@code{policy-configuration} parameter} string subscription-private-values"
  28875. msgstr ""
  28876. #. type: deftypevr
  28877. #: guix-git/doc/guix.texi:19100
  28878. msgid "Defaults to @samp{\"notify-events notify-pull-method notify-recipient-uri notify-subscriber-user-name notify-user-data\"}."
  28879. msgstr ""
  28880. #. type: deftypevr
  28881. #: guix-git/doc/guix.texi:19102
  28882. #, no-wrap
  28883. msgid "{@code{policy-configuration} parameter} operation-access-control-list access-controls"
  28884. msgstr ""
  28885. #. type: deftypevr
  28886. #: guix-git/doc/guix.texi:19104
  28887. msgid "Access control by IPP operation."
  28888. msgstr ""
  28889. #. type: deftypevr
  28890. #: guix-git/doc/guix.texi:19109
  28891. #, no-wrap
  28892. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-files"
  28893. msgstr ""
  28894. #. type: deftypevr
  28895. #: guix-git/doc/guix.texi:19114
  28896. msgid "Specifies whether job files (documents) are preserved after a job is printed. If a numeric value is specified, job files are preserved for the indicated number of seconds after printing. Otherwise a boolean value applies indefinitely."
  28897. msgstr ""
  28898. #. type: deftypevr
  28899. #: guix-git/doc/guix.texi:19116
  28900. msgid "Defaults to @samp{86400}."
  28901. msgstr ""
  28902. #. type: deftypevr
  28903. #: guix-git/doc/guix.texi:19118
  28904. #, no-wrap
  28905. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-history"
  28906. msgstr ""
  28907. #. type: deftypevr
  28908. #: guix-git/doc/guix.texi:19123
  28909. msgid "Specifies whether the job history is preserved after a job is printed. If a numeric value is specified, the job history is preserved for the indicated number of seconds after printing. If @code{#t}, the job history is preserved until the MaxJobs limit is reached."
  28910. msgstr ""
  28911. #. type: deftypevr
  28912. #: guix-git/doc/guix.texi:19127
  28913. #, no-wrap
  28914. msgid "{@code{cups-configuration} parameter} non-negative-integer reload-timeout"
  28915. msgstr ""
  28916. #. type: deftypevr
  28917. #: guix-git/doc/guix.texi:19130
  28918. msgid "Specifies the amount of time to wait for job completion before restarting the scheduler."
  28919. msgstr ""
  28920. #. type: deftypevr
  28921. #: guix-git/doc/guix.texi:19134
  28922. #, no-wrap
  28923. msgid "{@code{cups-configuration} parameter} string rip-cache"
  28924. msgstr ""
  28925. #. type: deftypevr
  28926. #: guix-git/doc/guix.texi:19137
  28927. msgid "Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer."
  28928. msgstr ""
  28929. #. type: deftypevr
  28930. #: guix-git/doc/guix.texi:19139
  28931. msgid "Defaults to @samp{\"128m\"}."
  28932. msgstr ""
  28933. #. type: deftypevr
  28934. #: guix-git/doc/guix.texi:19141
  28935. #, no-wrap
  28936. msgid "{@code{cups-configuration} parameter} string server-admin"
  28937. msgstr ""
  28938. #. type: deftypevr
  28939. #: guix-git/doc/guix.texi:19143
  28940. msgid "Specifies the email address of the server administrator."
  28941. msgstr ""
  28942. #. type: deftypevr
  28943. #: guix-git/doc/guix.texi:19145
  28944. msgid "Defaults to @samp{\"root@@localhost.localdomain\"}."
  28945. msgstr ""
  28946. #. type: deftypevr
  28947. #: guix-git/doc/guix.texi:19147
  28948. #, no-wrap
  28949. msgid "{@code{cups-configuration} parameter} host-name-list-or-* server-alias"
  28950. msgstr ""
  28951. #. type: deftypevr
  28952. #: guix-git/doc/guix.texi:19155
  28953. msgid "The ServerAlias directive is used for HTTP Host header validation when clients connect to the scheduler from external interfaces. Using the special name @code{*} can expose your system to known browser-based DNS rebinding attacks, even when accessing sites through a firewall. If the auto-discovery of alternate names does not work, we recommend listing each alternate name with a ServerAlias directive instead of using @code{*}."
  28954. msgstr ""
  28955. #. type: deftypevr
  28956. #: guix-git/doc/guix.texi:19157
  28957. msgid "Defaults to @samp{*}."
  28958. msgstr ""
  28959. #. type: deftypevr
  28960. #: guix-git/doc/guix.texi:19159
  28961. #, no-wrap
  28962. msgid "{@code{cups-configuration} parameter} string server-name"
  28963. msgstr ""
  28964. #. type: deftypevr
  28965. #: guix-git/doc/guix.texi:19161
  28966. msgid "Specifies the fully-qualified host name of the server."
  28967. msgstr ""
  28968. #. type: deftypevr
  28969. #: guix-git/doc/guix.texi:19163 guix-git/doc/guix.texi:24292
  28970. #: guix-git/doc/guix.texi:24337
  28971. msgid "Defaults to @samp{\"localhost\"}."
  28972. msgstr ""
  28973. #. type: deftypevr
  28974. #: guix-git/doc/guix.texi:19165
  28975. #, no-wrap
  28976. msgid "{@code{cups-configuration} parameter} server-tokens server-tokens"
  28977. msgstr ""
  28978. #. type: deftypevr
  28979. #: guix-git/doc/guix.texi:19173
  28980. msgid "Specifies what information is included in the Server header of HTTP responses. @code{None} disables the Server header. @code{ProductOnly} reports @code{CUPS}. @code{Major} reports @code{CUPS 2}. @code{Minor} reports @code{CUPS 2.0}. @code{Minimal} reports @code{CUPS 2.0.0}. @code{OS} reports @code{CUPS 2.0.0 (@var{uname})} where @var{uname} is the output of the @code{uname} command. @code{Full} reports @code{CUPS 2.0.0 (@var{uname}) IPP/2.0}."
  28981. msgstr ""
  28982. #. type: deftypevr
  28983. #: guix-git/doc/guix.texi:19175
  28984. msgid "Defaults to @samp{Minimal}."
  28985. msgstr ""
  28986. #. type: deftypevr
  28987. #: guix-git/doc/guix.texi:19177
  28988. #, no-wrap
  28989. msgid "{@code{cups-configuration} parameter} multiline-string-list ssl-listen"
  28990. msgstr ""
  28991. #. type: deftypevr
  28992. #: guix-git/doc/guix.texi:19182
  28993. msgid "Listens on the specified interfaces for encrypted connections. Valid values are of the form @var{address}:@var{port}, where @var{address} is either an IPv6 address enclosed in brackets, an IPv4 address, or @code{*} to indicate all addresses."
  28994. msgstr ""
  28995. #. type: deftypevr
  28996. #: guix-git/doc/guix.texi:19186
  28997. #, no-wrap
  28998. msgid "{@code{cups-configuration} parameter} ssl-options ssl-options"
  28999. msgstr ""
  29000. #. type: deftypevr
  29001. #: guix-git/doc/guix.texi:19196
  29002. msgid "Sets encryption options. By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites. Security is reduced when @code{Allow} options are used, and enhanced when @code{Deny} options are used. The @code{AllowRC4} option enables the 128-bit RC4 cipher suites, which are required for some older clients. The @code{AllowSSL3} option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0. The @code{DenyCBC} option disables all CBC cipher suites. The @code{DenyTLS1.0} option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1."
  29003. msgstr ""
  29004. #. type: deftypevr
  29005. #: guix-git/doc/guix.texi:19200
  29006. #, no-wrap
  29007. msgid "{@code{cups-configuration} parameter} boolean strict-conformance?"
  29008. msgstr ""
  29009. #. type: deftypevr
  29010. #: guix-git/doc/guix.texi:19203
  29011. msgid "Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications."
  29012. msgstr ""
  29013. #. type: deftypevr
  29014. #: guix-git/doc/guix.texi:19207
  29015. #, no-wrap
  29016. msgid "{@code{cups-configuration} parameter} non-negative-integer timeout"
  29017. msgstr ""
  29018. #. type: deftypevr
  29019. #: guix-git/doc/guix.texi:19209
  29020. msgid "Specifies the HTTP request timeout, in seconds."
  29021. msgstr ""
  29022. #. type: deftypevr
  29023. #: guix-git/doc/guix.texi:19214
  29024. #, no-wrap
  29025. msgid "{@code{cups-configuration} parameter} boolean web-interface?"
  29026. msgstr ""
  29027. #. type: deftypevr
  29028. #: guix-git/doc/guix.texi:19216
  29029. msgid "Specifies whether the web interface is enabled."
  29030. msgstr ""
  29031. #. type: Plain text
  29032. #: guix-git/doc/guix.texi:19226
  29033. msgid "At this point you're probably thinking ``oh dear, Guix manual, I like you but you can stop already with the configuration options''. Indeed. However, one more point: it could be that you have an existing @code{cupsd.conf} that you want to use. In that case, you can pass an @code{opaque-cups-configuration} as the configuration of a @code{cups-service-type}."
  29034. msgstr ""
  29035. #. type: Plain text
  29036. #: guix-git/doc/guix.texi:19228
  29037. msgid "Available @code{opaque-cups-configuration} fields are:"
  29038. msgstr ""
  29039. #. type: deftypevr
  29040. #: guix-git/doc/guix.texi:19229
  29041. #, no-wrap
  29042. msgid "{@code{opaque-cups-configuration} parameter} package cups"
  29043. msgstr ""
  29044. #. type: deftypevr
  29045. #: guix-git/doc/guix.texi:19233
  29046. #, no-wrap
  29047. msgid "{@code{opaque-cups-configuration} parameter} string cupsd.conf"
  29048. msgstr ""
  29049. #. type: deftypevr
  29050. #: guix-git/doc/guix.texi:19235
  29051. msgid "The contents of the @code{cupsd.conf}, as a string."
  29052. msgstr ""
  29053. #. type: deftypevr
  29054. #: guix-git/doc/guix.texi:19237
  29055. #, no-wrap
  29056. msgid "{@code{opaque-cups-configuration} parameter} string cups-files.conf"
  29057. msgstr ""
  29058. #. type: deftypevr
  29059. #: guix-git/doc/guix.texi:19239
  29060. msgid "The contents of the @code{cups-files.conf} file, as a string."
  29061. msgstr ""
  29062. #. type: Plain text
  29063. #: guix-git/doc/guix.texi:19244
  29064. msgid "For example, if your @code{cupsd.conf} and @code{cups-files.conf} are in strings of the same name, you could instantiate a CUPS service like this:"
  29065. msgstr ""
  29066. #. type: lisp
  29067. #: guix-git/doc/guix.texi:19250
  29068. #, no-wrap
  29069. msgid ""
  29070. "(service cups-service-type\n"
  29071. " (opaque-cups-configuration\n"
  29072. " (cupsd.conf cupsd.conf)\n"
  29073. " (cups-files.conf cups-files.conf)))\n"
  29074. msgstr ""
  29075. #. type: Plain text
  29076. #: guix-git/doc/guix.texi:19261
  29077. msgid "The @code{(gnu services desktop)} module provides services that are usually useful in the context of a ``desktop'' setup---that is, on a machine running a graphical display server, possibly with graphical user interfaces, etc. It also defines services that provide specific desktop environments like GNOME, Xfce or MATE."
  29078. msgstr ""
  29079. #. type: Plain text
  29080. #: guix-git/doc/guix.texi:19265
  29081. msgid "To simplify things, the module defines a variable containing the set of services that users typically expect on a machine with a graphical environment and networking:"
  29082. msgstr ""
  29083. #. type: defvr
  29084. #: guix-git/doc/guix.texi:19266
  29085. #, no-wrap
  29086. msgid "{Scheme Variable} %desktop-services"
  29087. msgstr ""
  29088. #. type: defvr
  29089. #: guix-git/doc/guix.texi:19269
  29090. msgid "This is a list of services that builds upon @code{%base-services} and adds or adjusts services for a typical ``desktop'' setup."
  29091. msgstr ""
  29092. #. type: defvr
  29093. #: guix-git/doc/guix.texi:19280
  29094. msgid "In particular, it adds a graphical login manager (@pxref{X Window, @code{gdm-service-type}}), screen lockers, a network management tool (@pxref{Networking Services, @code{network-manager-service-type}}) with modem support (@pxref{Networking Services, @code{modem-manager-service-type}}), energy and color management services, the @code{elogind} login and seat manager, the Polkit privilege service, the GeoClue location service, the AccountsService daemon that allows authorized users change system passwords, an NTP client (@pxref{Networking Services}), the Avahi daemon, and has the name service switch service configured to be able to use @code{nss-mdns} (@pxref{Name Service Switch, mDNS})."
  29095. msgstr ""
  29096. #. type: Plain text
  29097. #: guix-git/doc/guix.texi:19285
  29098. msgid "The @code{%desktop-services} variable can be used as the @code{services} field of an @code{operating-system} declaration (@pxref{operating-system Reference, @code{services}})."
  29099. msgstr ""
  29100. #. type: Plain text
  29101. #: guix-git/doc/guix.texi:19308
  29102. msgid "Additionally, the @code{gnome-desktop-service-type}, @code{xfce-desktop-service}, @code{mate-desktop-service-type}, @code{lxqt-desktop-service-type} and @code{enlightenment-desktop-service-type} procedures can add GNOME, Xfce, MATE and/or Enlightenment to a system. To ``add GNOME'' means that system-level services like the backlight adjustment helpers and the power management utilities are added to the system, extending @code{polkit} and @code{dbus} appropriately, allowing GNOME to operate with elevated privileges on a limited number of special-purpose system interfaces. Additionally, adding a service made by @code{gnome-desktop-service-type} adds the GNOME metapackage to the system profile. Likewise, adding the Xfce service not only adds the @code{xfce} metapackage to the system profile, but it also gives the Thunar file manager the ability to open a ``root-mode'' file management window, if the user authenticates using the administrator's password via the standard polkit graphical interface. To ``add MATE'' means that @code{polkit} and @code{dbus} are extended appropriately, allowing MATE to operate with elevated privileges on a limited number of special-purpose system interfaces. Additionally, adding a service of type @code{mate-desktop-service-type} adds the MATE metapackage to the system profile. ``Adding Enlightenment'' means that @code{dbus} is extended appropriately, and several of Enlightenment's binaries are set as setuid, allowing Enlightenment's screen locker and other functionality to work as expected."
  29103. msgstr ""
  29104. #. type: Plain text
  29105. #: guix-git/doc/guix.texi:19317
  29106. msgid "The desktop environments in Guix use the Xorg display server by default. If you'd like to use the newer display server protocol called Wayland, you need to use the @code{sddm-service} instead of GDM as the graphical login manager. You should then select the ``GNOME (Wayland)'' session in SDDM@. Alternatively you can also try starting GNOME on Wayland manually from a TTY with the command ``XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session``. Currently only GNOME has support for Wayland."
  29107. msgstr ""
  29108. #. type: defvr
  29109. #: guix-git/doc/guix.texi:19318
  29110. #, no-wrap
  29111. msgid "{Scheme Variable} gnome-desktop-service-type"
  29112. msgstr ""
  29113. #. type: defvr
  29114. #: guix-git/doc/guix.texi:19322
  29115. msgid "This is the type of the service that adds the @uref{https://www.gnome.org, GNOME} desktop environment. Its value is a @code{gnome-desktop-configuration} object (see below)."
  29116. msgstr ""
  29117. #. type: defvr
  29118. #: guix-git/doc/guix.texi:19325
  29119. msgid "This service adds the @code{gnome} package to the system profile, and extends polkit with the actions from @code{gnome-settings-daemon}."
  29120. msgstr ""
  29121. #. type: deftp
  29122. #: guix-git/doc/guix.texi:19327
  29123. #, no-wrap
  29124. msgid "{Data Type} gnome-desktop-configuration"
  29125. msgstr ""
  29126. #. type: deftp
  29127. #: guix-git/doc/guix.texi:19329
  29128. msgid "Configuration record for the GNOME desktop environment."
  29129. msgstr ""
  29130. #. type: item
  29131. #: guix-git/doc/guix.texi:19331
  29132. #, no-wrap
  29133. msgid "@code{gnome} (default: @code{gnome})"
  29134. msgstr "@code{gnome}(默认值:@code{gnome})"
  29135. #. type: table
  29136. #: guix-git/doc/guix.texi:19333
  29137. msgid "The GNOME package to use."
  29138. msgstr ""
  29139. #. type: defvr
  29140. #: guix-git/doc/guix.texi:19336
  29141. #, no-wrap
  29142. msgid "{Scheme Variable} xfce-desktop-service-type"
  29143. msgstr ""
  29144. #. type: defvr
  29145. #: guix-git/doc/guix.texi:19340
  29146. msgid "This is the type of a service to run the @uref{Xfce, https://xfce.org/} desktop environment. Its value is an @code{xfce-desktop-configuration} object (see below)."
  29147. msgstr ""
  29148. #. type: defvr
  29149. #: guix-git/doc/guix.texi:19345
  29150. msgid "This service adds the @code{xfce} package to the system profile, and extends polkit with the ability for @code{thunar} to manipulate the file system as root from within a user session, after the user has authenticated with the administrator's password."
  29151. msgstr ""
  29152. #. type: defvr
  29153. #: guix-git/doc/guix.texi:19351
  29154. msgid "Note that @code{xfce4-panel} and its plugin packages should be installed in the same profile to ensure compatibility. When using this service, you should add extra plugins (@code{xfce4-whiskermenu-plugin}, @code{xfce4-weather-plugin}, etc.) to the @code{packages} field of your @code{operating-system}."
  29155. msgstr ""
  29156. #. type: deftp
  29157. #: guix-git/doc/guix.texi:19353
  29158. #, no-wrap
  29159. msgid "{Data Type} xfce-desktop-configuration"
  29160. msgstr ""
  29161. #. type: deftp
  29162. #: guix-git/doc/guix.texi:19355
  29163. msgid "Configuration record for the Xfce desktop environment."
  29164. msgstr ""
  29165. #. type: item
  29166. #: guix-git/doc/guix.texi:19357
  29167. #, no-wrap
  29168. msgid "@code{xfce} (default: @code{xfce})"
  29169. msgstr "@code{xfce}(默认值:@code{xfce})"
  29170. #. type: table
  29171. #: guix-git/doc/guix.texi:19359
  29172. msgid "The Xfce package to use."
  29173. msgstr ""
  29174. #. type: deffn
  29175. #: guix-git/doc/guix.texi:19362
  29176. #, no-wrap
  29177. msgid "{Scheme Variable} mate-desktop-service-type"
  29178. msgstr ""
  29179. #. type: deffn
  29180. #: guix-git/doc/guix.texi:19366
  29181. msgid "This is the type of the service that runs the @uref{https://mate-desktop.org/, MATE desktop environment}. Its value is a @code{mate-desktop-configuration} object (see below)."
  29182. msgstr ""
  29183. #. type: deffn
  29184. #: guix-git/doc/guix.texi:19370
  29185. msgid "This service adds the @code{mate} package to the system profile, and extends polkit with the actions from @code{mate-settings-daemon}."
  29186. msgstr ""
  29187. #. type: deftp
  29188. #: guix-git/doc/guix.texi:19372
  29189. #, no-wrap
  29190. msgid "{Data Type} mate-desktop-configuration"
  29191. msgstr ""
  29192. #. type: deftp
  29193. #: guix-git/doc/guix.texi:19374
  29194. msgid "Configuration record for the MATE desktop environment."
  29195. msgstr ""
  29196. #. type: item
  29197. #: guix-git/doc/guix.texi:19376
  29198. #, no-wrap
  29199. msgid "@code{mate} (default: @code{mate})"
  29200. msgstr "@code{mate}(默认值:@code{mate})"
  29201. #. type: table
  29202. #: guix-git/doc/guix.texi:19378
  29203. msgid "The MATE package to use."
  29204. msgstr ""
  29205. #. type: deffn
  29206. #: guix-git/doc/guix.texi:19381
  29207. #, no-wrap
  29208. msgid "{Scheme Variable} lxqt-desktop-service-type"
  29209. msgstr ""
  29210. #. type: deffn
  29211. #: guix-git/doc/guix.texi:19385
  29212. msgid "This is the type of the service that runs the @uref{https://lxqt-project.org, LXQt desktop environment}. Its value is a @code{lxqt-desktop-configuration} object (see below)."
  29213. msgstr ""
  29214. #. type: deffn
  29215. #: guix-git/doc/guix.texi:19388
  29216. msgid "This service adds the @code{lxqt} package to the system profile."
  29217. msgstr ""
  29218. #. type: deftp
  29219. #: guix-git/doc/guix.texi:19390
  29220. #, no-wrap
  29221. msgid "{Data Type} lxqt-desktop-configuration"
  29222. msgstr ""
  29223. #. type: deftp
  29224. #: guix-git/doc/guix.texi:19392
  29225. msgid "Configuration record for the LXQt desktop environment."
  29226. msgstr ""
  29227. #. type: item
  29228. #: guix-git/doc/guix.texi:19394
  29229. #, fuzzy, no-wrap
  29230. msgid "@code{lxqt} (default: @code{lxqt})"
  29231. msgstr "@code{xfce}(默认值:@code{xfce})"
  29232. #. type: table
  29233. #: guix-git/doc/guix.texi:19396
  29234. #, fuzzy
  29235. msgid "The LXQT package to use."
  29236. msgstr "软件包数据类型。"
  29237. #. type: deffn
  29238. #: guix-git/doc/guix.texi:19399
  29239. #, no-wrap
  29240. msgid "{Scheme Variable} enlightenment-desktop-service-type"
  29241. msgstr ""
  29242. #. type: deffn
  29243. #: guix-git/doc/guix.texi:19402
  29244. msgid "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with actions from @code{efl}."
  29245. msgstr ""
  29246. #. type: deftp
  29247. #: guix-git/doc/guix.texi:19404
  29248. #, no-wrap
  29249. msgid "{Data Type} enlightenment-desktop-service-configuration"
  29250. msgstr ""
  29251. #. type: item
  29252. #: guix-git/doc/guix.texi:19406
  29253. #, no-wrap
  29254. msgid "@code{enlightenment} (default: @code{enlightenment})"
  29255. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  29256. #. type: table
  29257. #: guix-git/doc/guix.texi:19408
  29258. msgid "The enlightenment package to use."
  29259. msgstr ""
  29260. #. type: Plain text
  29261. #: guix-git/doc/guix.texi:19416
  29262. msgid "Because the GNOME, Xfce and MATE desktop services pull in so many packages, the default @code{%desktop-services} variable doesn't include any of them by default. To add GNOME, Xfce or MATE, just @code{cons} them onto @code{%desktop-services} in the @code{services} field of your @code{operating-system}:"
  29263. msgstr ""
  29264. #. type: lisp
  29265. #: guix-git/doc/guix.texi:19427
  29266. #, no-wrap
  29267. msgid ""
  29268. "(use-modules (gnu))\n"
  29269. "(use-service-modules desktop)\n"
  29270. "(operating-system\n"
  29271. " ...\n"
  29272. " ;; cons* adds items to the list given as its last argument.\n"
  29273. " (services (cons* (service gnome-desktop-service-type)\n"
  29274. " (service xfce-desktop-service)\n"
  29275. " %desktop-services))\n"
  29276. " ...)\n"
  29277. msgstr ""
  29278. #. type: Plain text
  29279. #: guix-git/doc/guix.texi:19431
  29280. msgid "These desktop environments will then be available as options in the graphical login window."
  29281. msgstr ""
  29282. #. type: Plain text
  29283. #: guix-git/doc/guix.texi:19435
  29284. msgid "The actual service definitions included in @code{%desktop-services} and provided by @code{(gnu services dbus)} and @code{(gnu services desktop)} are described below."
  29285. msgstr ""
  29286. #. type: deffn
  29287. #: guix-git/doc/guix.texi:19436
  29288. #, no-wrap
  29289. msgid "{Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()]"
  29290. msgstr ""
  29291. #. type: deffn
  29292. #: guix-git/doc/guix.texi:19439
  29293. msgid "Return a service that runs the ``system bus'', using @var{dbus}, with support for @var{services}."
  29294. msgstr ""
  29295. #. type: deffn
  29296. #: guix-git/doc/guix.texi:19443
  29297. msgid "@uref{https://dbus.freedesktop.org/, D-Bus} is an inter-process communication facility. Its system bus is used to allow system services to communicate and to be notified of system-wide events."
  29298. msgstr ""
  29299. #. type: deffn
  29300. #: guix-git/doc/guix.texi:19448
  29301. msgid "@var{services} must be a list of packages that provide an @file{etc/dbus-1/system.d} directory containing additional D-Bus configuration and policy files. For example, to allow avahi-daemon to use the system bus, @var{services} must be equal to @code{(list avahi)}."
  29302. msgstr ""
  29303. #. type: deffn
  29304. #: guix-git/doc/guix.texi:19450
  29305. #, no-wrap
  29306. msgid "{Scheme Procedure} elogind-service [#:config @var{config}]"
  29307. msgstr ""
  29308. #. type: deffn
  29309. #: guix-git/doc/guix.texi:19456
  29310. msgid "Return a service that runs the @code{elogind} login and seat management daemon. @uref{https://github.com/elogind/elogind, Elogind} exposes a D-Bus interface that can be used to know which users are logged in, know what kind of sessions they have open, suspend the system, inhibit system suspend, reboot the system, and other tasks."
  29311. msgstr ""
  29312. #. type: deffn
  29313. #: guix-git/doc/guix.texi:19460
  29314. msgid "Elogind handles most system-level power events for a computer, for example suspending the system when a lid is closed, or shutting it down when the power button is pressed."
  29315. msgstr ""
  29316. #. type: deffn
  29317. #: guix-git/doc/guix.texi:19465
  29318. msgid "The @var{config} keyword argument specifies the configuration for elogind, and should be the result of an @code{(elogind-configuration (@var{parameter} @var{value})...)} invocation. Available parameters and their default values are:"
  29319. msgstr ""
  29320. #. type: item
  29321. #: guix-git/doc/guix.texi:19467
  29322. #, no-wrap
  29323. msgid "kill-user-processes?"
  29324. msgstr ""
  29325. #. type: code{#1}
  29326. #: guix-git/doc/guix.texi:19469 guix-git/doc/guix.texi:19489
  29327. #: guix-git/doc/guix.texi:19491 guix-git/doc/guix.texi:19493
  29328. #: guix-git/doc/guix.texi:19505
  29329. msgid "#f"
  29330. msgstr ""
  29331. #. type: item
  29332. #: guix-git/doc/guix.texi:19469
  29333. #, no-wrap
  29334. msgid "kill-only-users"
  29335. msgstr ""
  29336. #. type: code{#1}
  29337. #: guix-git/doc/guix.texi:19471 guix-git/doc/guix.texi:19511
  29338. msgid "()"
  29339. msgstr ""
  29340. #. type: item
  29341. #: guix-git/doc/guix.texi:19471
  29342. #, no-wrap
  29343. msgid "kill-exclude-users"
  29344. msgstr ""
  29345. #. type: code{#1}
  29346. #: guix-git/doc/guix.texi:19473
  29347. msgid "(\"root\")"
  29348. msgstr ""
  29349. #. type: item
  29350. #: guix-git/doc/guix.texi:19473
  29351. #, no-wrap
  29352. msgid "inhibit-delay-max-seconds"
  29353. msgstr ""
  29354. #. type: code{#1}
  29355. #: guix-git/doc/guix.texi:19475
  29356. msgid "5"
  29357. msgstr ""
  29358. #. type: item
  29359. #: guix-git/doc/guix.texi:19475
  29360. #, no-wrap
  29361. msgid "handle-power-key"
  29362. msgstr ""
  29363. #. type: code{#1}
  29364. #: guix-git/doc/guix.texi:19477
  29365. msgid "poweroff"
  29366. msgstr ""
  29367. #. type: item
  29368. #: guix-git/doc/guix.texi:19477
  29369. #, no-wrap
  29370. msgid "handle-suspend-key"
  29371. msgstr ""
  29372. #. type: code{#1}
  29373. #: guix-git/doc/guix.texi:19479 guix-git/doc/guix.texi:19483
  29374. msgid "suspend"
  29375. msgstr ""
  29376. #. type: item
  29377. #: guix-git/doc/guix.texi:19479
  29378. #, no-wrap
  29379. msgid "handle-hibernate-key"
  29380. msgstr ""
  29381. #. type: code{#1}
  29382. #: guix-git/doc/guix.texi:19481
  29383. msgid "hibernate"
  29384. msgstr ""
  29385. #. type: item
  29386. #: guix-git/doc/guix.texi:19481
  29387. #, no-wrap
  29388. msgid "handle-lid-switch"
  29389. msgstr ""
  29390. #. type: item
  29391. #: guix-git/doc/guix.texi:19483
  29392. #, no-wrap
  29393. msgid "handle-lid-switch-docked"
  29394. msgstr ""
  29395. #. type: code{#1}
  29396. #: guix-git/doc/guix.texi:19485 guix-git/doc/guix.texi:19487
  29397. #: guix-git/doc/guix.texi:19499
  29398. msgid "ignore"
  29399. msgstr ""
  29400. #. type: item
  29401. #: guix-git/doc/guix.texi:19485
  29402. #, no-wrap
  29403. msgid "handle-lid-switch-external-power"
  29404. msgstr ""
  29405. #. type: item
  29406. #: guix-git/doc/guix.texi:19487
  29407. #, no-wrap
  29408. msgid "power-key-ignore-inhibited?"
  29409. msgstr ""
  29410. #. type: item
  29411. #: guix-git/doc/guix.texi:19489
  29412. #, no-wrap
  29413. msgid "suspend-key-ignore-inhibited?"
  29414. msgstr ""
  29415. #. type: item
  29416. #: guix-git/doc/guix.texi:19491
  29417. #, no-wrap
  29418. msgid "hibernate-key-ignore-inhibited?"
  29419. msgstr ""
  29420. #. type: item
  29421. #: guix-git/doc/guix.texi:19493
  29422. #, no-wrap
  29423. msgid "lid-switch-ignore-inhibited?"
  29424. msgstr ""
  29425. #. type: code{#1}
  29426. #: guix-git/doc/guix.texi:19495 guix-git/doc/guix.texi:19507
  29427. msgid "#t"
  29428. msgstr ""
  29429. #. type: item
  29430. #: guix-git/doc/guix.texi:19495
  29431. #, no-wrap
  29432. msgid "holdoff-timeout-seconds"
  29433. msgstr ""
  29434. #. type: code{#1}
  29435. #: guix-git/doc/guix.texi:19497
  29436. msgid "30"
  29437. msgstr ""
  29438. #. type: item
  29439. #: guix-git/doc/guix.texi:19497
  29440. #, no-wrap
  29441. msgid "idle-action"
  29442. msgstr ""
  29443. #. type: item
  29444. #: guix-git/doc/guix.texi:19499
  29445. #, no-wrap
  29446. msgid "idle-action-seconds"
  29447. msgstr ""
  29448. #. type: code{#1}
  29449. #: guix-git/doc/guix.texi:19501
  29450. msgid "(* 30 60)"
  29451. msgstr ""
  29452. #. type: item
  29453. #: guix-git/doc/guix.texi:19501
  29454. #, no-wrap
  29455. msgid "runtime-directory-size-percent"
  29456. msgstr ""
  29457. #. type: code{#1}
  29458. #: guix-git/doc/guix.texi:19503
  29459. msgid "10"
  29460. msgstr ""
  29461. #. type: item
  29462. #: guix-git/doc/guix.texi:19503
  29463. #, no-wrap
  29464. msgid "runtime-directory-size"
  29465. msgstr ""
  29466. #. type: item
  29467. #: guix-git/doc/guix.texi:19505
  29468. #, no-wrap
  29469. msgid "remove-ipc?"
  29470. msgstr ""
  29471. #. type: item
  29472. #: guix-git/doc/guix.texi:19507
  29473. #, no-wrap
  29474. msgid "suspend-state"
  29475. msgstr ""
  29476. #. type: code{#1}
  29477. #: guix-git/doc/guix.texi:19509
  29478. msgid "(\"mem\" \"standby\" \"freeze\")"
  29479. msgstr ""
  29480. #. type: item
  29481. #: guix-git/doc/guix.texi:19509
  29482. #, no-wrap
  29483. msgid "suspend-mode"
  29484. msgstr ""
  29485. #. type: item
  29486. #: guix-git/doc/guix.texi:19511
  29487. #, no-wrap
  29488. msgid "hibernate-state"
  29489. msgstr ""
  29490. #. type: code{#1}
  29491. #: guix-git/doc/guix.texi:19513 guix-git/doc/guix.texi:19517
  29492. msgid "(\"disk\")"
  29493. msgstr ""
  29494. #. type: item
  29495. #: guix-git/doc/guix.texi:19513
  29496. #, no-wrap
  29497. msgid "hibernate-mode"
  29498. msgstr ""
  29499. #. type: code{#1}
  29500. #: guix-git/doc/guix.texi:19515
  29501. msgid "(\"platform\" \"shutdown\")"
  29502. msgstr ""
  29503. #. type: item
  29504. #: guix-git/doc/guix.texi:19515
  29505. #, no-wrap
  29506. msgid "hybrid-sleep-state"
  29507. msgstr ""
  29508. #. type: item
  29509. #: guix-git/doc/guix.texi:19517
  29510. #, no-wrap
  29511. msgid "hybrid-sleep-mode"
  29512. msgstr ""
  29513. #. type: code{#1}
  29514. #: guix-git/doc/guix.texi:19519
  29515. msgid "(\"suspend\" \"platform\" \"shutdown\")"
  29516. msgstr ""
  29517. #. type: deffn
  29518. #: guix-git/doc/guix.texi:19522
  29519. #, no-wrap
  29520. msgid "{Scheme Procedure} accountsservice-service @"
  29521. msgstr ""
  29522. #. type: deffn
  29523. #: guix-git/doc/guix.texi:19530
  29524. msgid "[#:accountsservice @var{accountsservice}] Return a service that runs AccountsService, a system service that can list available accounts, change their passwords, and so on. AccountsService integrates with PolicyKit to enable unprivileged users to acquire the capability to modify their system configuration. @uref{https://www.freedesktop.org/wiki/Software/AccountsService/, the accountsservice web site} for more information."
  29525. msgstr ""
  29526. #. type: deffn
  29527. #: guix-git/doc/guix.texi:19533
  29528. msgid "The @var{accountsservice} keyword argument is the @code{accountsservice} package to expose as a service."
  29529. msgstr ""
  29530. #. type: deffn
  29531. #: guix-git/doc/guix.texi:19535
  29532. #, no-wrap
  29533. msgid "{Scheme Procedure} polkit-service @"
  29534. msgstr ""
  29535. #. type: deffn
  29536. #: guix-git/doc/guix.texi:19544
  29537. msgid "[#:polkit @var{polkit}] Return a service that runs the @uref{https://www.freedesktop.org/wiki/Software/polkit/, Polkit privilege management service}, which allows system administrators to grant access to privileged operations in a structured way. By querying the Polkit service, a privileged system component can know when it should grant additional capabilities to ordinary users. For example, an ordinary user can be granted the capability to suspend the system if the user is logged in locally."
  29538. msgstr ""
  29539. #. type: defvr
  29540. #: guix-git/doc/guix.texi:19546
  29541. #, no-wrap
  29542. msgid "{Scheme Variable} polkit-wheel-service"
  29543. msgstr ""
  29544. #. type: defvr
  29545. #: guix-git/doc/guix.texi:19551
  29546. msgid "Service that adds the @code{wheel} group as admins to the Polkit service. This makes it so that users in the @code{wheel} group are queried for their own passwords when performing administrative actions instead of @code{root}'s, similar to the behaviour used by @code{sudo}."
  29547. msgstr ""
  29548. #. type: defvr
  29549. #: guix-git/doc/guix.texi:19553
  29550. #, no-wrap
  29551. msgid "{Scheme Variable} upower-service-type"
  29552. msgstr ""
  29553. #. type: defvr
  29554. #: guix-git/doc/guix.texi:19557
  29555. msgid "Service that runs @uref{https://upower.freedesktop.org/, @command{upowerd}}, a system-wide monitor for power consumption and battery levels, with the given configuration settings."
  29556. msgstr ""
  29557. #. type: defvr
  29558. #: guix-git/doc/guix.texi:19560
  29559. msgid "It implements the @code{org.freedesktop.UPower} D-Bus interface, and is notably used by GNOME."
  29560. msgstr ""
  29561. #. type: deftp
  29562. #: guix-git/doc/guix.texi:19562
  29563. #, no-wrap
  29564. msgid "{Data Type} upower-configuration"
  29565. msgstr ""
  29566. #. type: deftp
  29567. #: guix-git/doc/guix.texi:19564
  29568. msgid "Data type representation the configuration for UPower."
  29569. msgstr ""
  29570. #. type: item
  29571. #: guix-git/doc/guix.texi:19567
  29572. #, no-wrap
  29573. msgid "@code{upower} (default: @var{upower})"
  29574. msgstr ""
  29575. #. type: table
  29576. #: guix-git/doc/guix.texi:19569
  29577. msgid "Package to use for @code{upower}."
  29578. msgstr ""
  29579. #. type: item
  29580. #: guix-git/doc/guix.texi:19570
  29581. #, no-wrap
  29582. msgid "@code{watts-up-pro?} (default: @code{#f})"
  29583. msgstr ""
  29584. #. type: table
  29585. #: guix-git/doc/guix.texi:19572
  29586. msgid "Enable the Watts Up Pro device."
  29587. msgstr ""
  29588. #. type: item
  29589. #: guix-git/doc/guix.texi:19573
  29590. #, no-wrap
  29591. msgid "@code{poll-batteries?} (default: @code{#t})"
  29592. msgstr ""
  29593. #. type: table
  29594. #: guix-git/doc/guix.texi:19575
  29595. msgid "Enable polling the kernel for battery level changes."
  29596. msgstr ""
  29597. #. type: item
  29598. #: guix-git/doc/guix.texi:19576
  29599. #, no-wrap
  29600. msgid "@code{ignore-lid?} (default: @code{#f})"
  29601. msgstr ""
  29602. #. type: table
  29603. #: guix-git/doc/guix.texi:19578
  29604. msgid "Ignore the lid state, this can be useful if it's incorrect on a device."
  29605. msgstr ""
  29606. #. type: item
  29607. #: guix-git/doc/guix.texi:19579
  29608. #, no-wrap
  29609. msgid "@code{use-percentage-for-policy?} (default: @code{#f})"
  29610. msgstr ""
  29611. #. type: table
  29612. #: guix-git/doc/guix.texi:19582
  29613. msgid "Whether battery percentage based policy should be used. The default is to use the time left, change to @code{#t} to use the percentage."
  29614. msgstr ""
  29615. #. type: item
  29616. #: guix-git/doc/guix.texi:19583
  29617. #, no-wrap
  29618. msgid "@code{percentage-low} (default: @code{10})"
  29619. msgstr ""
  29620. #. type: table
  29621. #: guix-git/doc/guix.texi:19586
  29622. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low."
  29623. msgstr ""
  29624. #. type: item
  29625. #: guix-git/doc/guix.texi:19587
  29626. #, no-wrap
  29627. msgid "@code{percentage-critical} (default: @code{3})"
  29628. msgstr ""
  29629. #. type: table
  29630. #: guix-git/doc/guix.texi:19590
  29631. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical."
  29632. msgstr ""
  29633. #. type: item
  29634. #: guix-git/doc/guix.texi:19591
  29635. #, no-wrap
  29636. msgid "@code{percentage-action} (default: @code{2})"
  29637. msgstr ""
  29638. #. type: table
  29639. #: guix-git/doc/guix.texi:19594
  29640. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which action will be taken."
  29641. msgstr ""
  29642. #. type: item
  29643. #: guix-git/doc/guix.texi:19595
  29644. #, no-wrap
  29645. msgid "@code{time-low} (default: @code{1200})"
  29646. msgstr ""
  29647. #. type: table
  29648. #: guix-git/doc/guix.texi:19598
  29649. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered low."
  29650. msgstr ""
  29651. #. type: item
  29652. #: guix-git/doc/guix.texi:19599
  29653. #, no-wrap
  29654. msgid "@code{time-critical} (default: @code{300})"
  29655. msgstr ""
  29656. #. type: table
  29657. #: guix-git/doc/guix.texi:19602
  29658. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered critical."
  29659. msgstr ""
  29660. #. type: item
  29661. #: guix-git/doc/guix.texi:19603
  29662. #, no-wrap
  29663. msgid "@code{time-action} (default: @code{120})"
  29664. msgstr ""
  29665. #. type: table
  29666. #: guix-git/doc/guix.texi:19606
  29667. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which action will be taken."
  29668. msgstr ""
  29669. #. type: item
  29670. #: guix-git/doc/guix.texi:19607
  29671. #, no-wrap
  29672. msgid "@code{critical-power-action} (default: @code{'hybrid-sleep})"
  29673. msgstr ""
  29674. #. type: table
  29675. #: guix-git/doc/guix.texi:19610
  29676. msgid "The action taken when @code{percentage-action} or @code{time-action} is reached (depending on the configuration of @code{use-percentage-for-policy?})."
  29677. msgstr ""
  29678. #. type: table
  29679. #: guix-git/doc/guix.texi:19612
  29680. msgid "Possible values are:"
  29681. msgstr ""
  29682. #. type: code{#1}
  29683. #: guix-git/doc/guix.texi:19616
  29684. msgid "'power-off"
  29685. msgstr ""
  29686. #. type: code{#1}
  29687. #: guix-git/doc/guix.texi:19619
  29688. msgid "'hibernate"
  29689. msgstr ""
  29690. #. type: itemize
  29691. #: guix-git/doc/guix.texi:19622
  29692. msgid "@code{'hybrid-sleep}."
  29693. msgstr ""
  29694. #. type: deffn
  29695. #: guix-git/doc/guix.texi:19627
  29696. #, no-wrap
  29697. msgid "{Scheme Procedure} udisks-service [#:udisks @var{udisks}]"
  29698. msgstr ""
  29699. #. type: deffn
  29700. #: guix-git/doc/guix.texi:19637
  29701. msgid "Return a service for @uref{https://udisks.freedesktop.org/docs/latest/, UDisks}, a @dfn{disk management} daemon that provides user interfaces with notifications and ways to mount/unmount disks. Programs that talk to UDisks include the @command{udisksctl} command, part of UDisks, and GNOME Disks. Note that Udisks relies on the @command{mount} command, so it will only be able to use the file-system utilities installed in the system profile. For example if you want to be able to mount NTFS file-systems in read and write fashion, you'll need to have @code{ntfs-3g} installed system-wide."
  29702. msgstr ""
  29703. #. type: deffn
  29704. #: guix-git/doc/guix.texi:19639
  29705. #, no-wrap
  29706. msgid "{Scheme Variable} colord-service-type"
  29707. msgstr ""
  29708. #. type: deffn
  29709. #: guix-git/doc/guix.texi:19646
  29710. msgid "This is the type of the service that runs @command{colord}, a system service with a D-Bus interface to manage the color profiles of input and output devices such as screens and scanners. It is notably used by the GNOME Color Manager graphical tool. See @uref{https://www.freedesktop.org/software/colord/, the colord web site} for more information."
  29711. msgstr ""
  29712. #. type: cindex
  29713. #: guix-git/doc/guix.texi:19648
  29714. #, no-wrap
  29715. msgid "scanner access"
  29716. msgstr ""
  29717. #. type: defvr
  29718. #: guix-git/doc/guix.texi:19649
  29719. #, no-wrap
  29720. msgid "{Scheme Variable} sane-service-type"
  29721. msgstr ""
  29722. #. type: defvr
  29723. #: guix-git/doc/guix.texi:19655
  29724. msgid "This service provides access to scanners @i{via} @uref{http://www.sane-project.org, SANE} by installing the necessary udev rules. It is included in @code{%desktop-services} (@pxref{Desktop Services}) and relies by default on @code{sane-backends-minimal} package (see below) for hardware support."
  29725. msgstr ""
  29726. #. type: defvr
  29727. #: guix-git/doc/guix.texi:19657
  29728. #, no-wrap
  29729. msgid "{Scheme Variable} sane-backends-minimal"
  29730. msgstr ""
  29731. #. type: defvr
  29732. #: guix-git/doc/guix.texi:19660
  29733. msgid "The default package which the @code{sane-service-type} installs. It supports many recent scanners."
  29734. msgstr ""
  29735. #. type: defvr
  29736. #: guix-git/doc/guix.texi:19662
  29737. #, no-wrap
  29738. msgid "{Scheme Variable} sane-backends"
  29739. msgstr ""
  29740. #. type: defvr
  29741. #: guix-git/doc/guix.texi:19669
  29742. msgid "This package includes support for all scanners that @code{sane-backends-minimal} supports, plus older Hewlett-Packard scanners supported by @code{hplip} package. In order to use this on a system which relies on @code{%desktop-services}, you may use @code{modify-services} (@pxref{Service Reference, @code{modify-services}}) as illustrated below:"
  29743. msgstr ""
  29744. #. type: lisp
  29745. #: guix-git/doc/guix.texi:19678
  29746. #, no-wrap
  29747. msgid ""
  29748. "(use-modules (gnu))\n"
  29749. "(use-service-modules\n"
  29750. " @dots{}\n"
  29751. " desktop)\n"
  29752. "(use-package-modules\n"
  29753. " @dots{}\n"
  29754. " scanner)\n"
  29755. "\n"
  29756. msgstr ""
  29757. #. type: lisp
  29758. #: guix-git/doc/guix.texi:19683
  29759. #, no-wrap
  29760. msgid ""
  29761. "(define %my-desktop-services\n"
  29762. " ;; List of desktop services that supports a broader range of scanners.\n"
  29763. " (modify-services %desktop-services\n"
  29764. " (sane-service-type _ => sane-backends)))\n"
  29765. "\n"
  29766. msgstr ""
  29767. #. type: lisp
  29768. #: guix-git/doc/guix.texi:19687
  29769. #, no-wrap
  29770. msgid ""
  29771. "(operating-system\n"
  29772. " @dots{}\n"
  29773. " (services %my-desktop-services)\n"
  29774. msgstr ""
  29775. #. type: deffn
  29776. #: guix-git/doc/guix.texi:19690
  29777. #, no-wrap
  29778. msgid "{Scheme Procedure} geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()]"
  29779. msgstr ""
  29780. #. type: deffn
  29781. #: guix-git/doc/guix.texi:19699
  29782. msgid "Return a configuration allowing an application to access GeoClue location data. @var{name} is the Desktop ID of the application, without the @code{.desktop} part. If @var{allowed?} is true, the application will have access to location information by default. The boolean @var{system?} value indicates whether an application is a system component or not. Finally @var{users} is a list of UIDs of all users for which this application is allowed location info access. An empty users list means that all users are allowed."
  29783. msgstr ""
  29784. #. type: defvr
  29785. #: guix-git/doc/guix.texi:19701
  29786. #, no-wrap
  29787. msgid "{Scheme Variable} %standard-geoclue-applications"
  29788. msgstr ""
  29789. #. type: defvr
  29790. #: guix-git/doc/guix.texi:19708
  29791. msgid "The standard list of well-known GeoClue application configurations, granting authority to the GNOME date-and-time utility to ask for the current location in order to set the time zone, and allowing the IceCat and Epiphany web browsers to request location information. IceCat and Epiphany both query the user before allowing a web page to know the user's location."
  29792. msgstr ""
  29793. #. type: deffn
  29794. #: guix-git/doc/guix.texi:19710
  29795. #, no-wrap
  29796. msgid "{Scheme Procedure} geoclue-service [#:colord @var{colord}] @"
  29797. msgstr ""
  29798. #. type: deffn
  29799. #: guix-git/doc/guix.texi:19723
  29800. msgid "[#:whitelist '()] @ [#:wifi-geolocation-url \"https://location.services.mozilla.com/v1/geolocate?key=geoclue\"] @ [#:submit-data? #f] [#:wifi-submission-url \"https://location.services.mozilla.com/v1/submit?key=geoclue\"] @ [#:submission-nick \"geoclue\"] @ [#:applications %standard-geoclue-applications] Return a service that runs the GeoClue location service. This service provides a D-Bus interface to allow applications to request access to a user's physical location, and optionally to add information to online location databases. See @uref{https://wiki.freedesktop.org/www/Software/GeoClue/, the GeoClue web site} for more information."
  29801. msgstr ""
  29802. #. type: deffn
  29803. #: guix-git/doc/guix.texi:19725
  29804. #, no-wrap
  29805. msgid "{Scheme Procedure} bluetooth-service [#:bluez @var{bluez}] @"
  29806. msgstr ""
  29807. #. type: deffn
  29808. #: guix-git/doc/guix.texi:19732
  29809. msgid "[@w{#:auto-enable? #f}] Return a service that runs the @command{bluetoothd} daemon, which manages all the Bluetooth devices and provides a number of D-Bus interfaces. When AUTO-ENABLE? is true, the bluetooth controller is powered automatically at boot, which can be useful when using a bluetooth keyboard or mouse."
  29810. msgstr ""
  29811. #. type: deffn
  29812. #: guix-git/doc/guix.texi:19734
  29813. msgid "Users need to be in the @code{lp} group to access the D-Bus service."
  29814. msgstr ""
  29815. #. type: defvr
  29816. #: guix-git/doc/guix.texi:19736
  29817. #, no-wrap
  29818. msgid "{Scheme Variable} gnome-keyring-service-type"
  29819. msgstr ""
  29820. #. type: defvr
  29821. #: guix-git/doc/guix.texi:19740
  29822. msgid "This is the type of the service that adds the @uref{https://wiki.gnome.org/Projects/GnomeKeyring, GNOME Keyring}. Its value is a @code{gnome-keyring-configuration} object (see below)."
  29823. msgstr ""
  29824. #. type: defvr
  29825. #: guix-git/doc/guix.texi:19744
  29826. msgid "This service adds the @code{gnome-keyring} package to the system profile and extends PAM with entries using @code{pam_gnome_keyring.so}, unlocking a user's login keyring when they log in or setting its password with passwd."
  29827. msgstr ""
  29828. #. type: deftp
  29829. #: guix-git/doc/guix.texi:19746
  29830. #, no-wrap
  29831. msgid "{Data Type} gnome-keyring-configuration"
  29832. msgstr ""
  29833. #. type: deftp
  29834. #: guix-git/doc/guix.texi:19748
  29835. msgid "Configuration record for the GNOME Keyring service."
  29836. msgstr ""
  29837. #. type: item
  29838. #: guix-git/doc/guix.texi:19750
  29839. #, fuzzy, no-wrap
  29840. msgid "@code{keyring} (default: @code{gnome-keyring})"
  29841. msgstr "@code{gnome}(默认值:@code{gnome})"
  29842. #. type: table
  29843. #: guix-git/doc/guix.texi:19752
  29844. msgid "The GNOME keyring package to use."
  29845. msgstr ""
  29846. #. type: code{#1}
  29847. #: guix-git/doc/guix.texi:19753
  29848. #, fuzzy, no-wrap
  29849. msgid "pam-services"
  29850. msgstr "基础服务"
  29851. #. type: table
  29852. #: guix-git/doc/guix.texi:19758
  29853. msgid "A list of @code{(@var{service} . @var{kind})} pairs denoting PAM services to extend, where @var{service} is the name of an existing service to extend and @var{kind} is one of @code{login} or @code{passwd}."
  29854. msgstr ""
  29855. #. type: table
  29856. #: guix-git/doc/guix.texi:19764
  29857. msgid "If @code{login} is given, it adds an optional @code{pam_gnome_keyring.so} to the auth block without arguments and to the session block with @code{auto_start}. If @code{passwd} is given, it adds an optional @code{pam_gnome_keyring.so} to the password block without arguments."
  29858. msgstr ""
  29859. #. type: table
  29860. #: guix-git/doc/guix.texi:19767
  29861. msgid "By default, this field contains ``gdm-password'' with the value @code{login} and ``passwd'' is with the value @code{passwd}."
  29862. msgstr ""
  29863. #. type: cindex
  29864. #: guix-git/doc/guix.texi:19774
  29865. #, no-wrap
  29866. msgid "sound support"
  29867. msgstr ""
  29868. #. type: cindex
  29869. #: guix-git/doc/guix.texi:19775
  29870. #, no-wrap
  29871. msgid "ALSA"
  29872. msgstr ""
  29873. #. type: cindex
  29874. #: guix-git/doc/guix.texi:19776
  29875. #, no-wrap
  29876. msgid "PulseAudio, sound support"
  29877. msgstr ""
  29878. #. type: Plain text
  29879. #: guix-git/doc/guix.texi:19781
  29880. msgid "The @code{(gnu services sound)} module provides a service to configure the Advanced Linux Sound Architecture (ALSA) system, which makes PulseAudio the preferred ALSA output driver."
  29881. msgstr ""
  29882. #. type: deffn
  29883. #: guix-git/doc/guix.texi:19782
  29884. #, no-wrap
  29885. msgid "{Scheme Variable} alsa-service-type"
  29886. msgstr ""
  29887. #. type: deffn
  29888. #: guix-git/doc/guix.texi:19787
  29889. msgid "This is the type for the @uref{https://alsa-project.org/, Advanced Linux Sound Architecture} (ALSA) system, which generates the @file{/etc/asound.conf} configuration file. The value for this type is a @command{alsa-configuration} record as in this example:"
  29890. msgstr ""
  29891. #. type: lisp
  29892. #: guix-git/doc/guix.texi:19790
  29893. #, no-wrap
  29894. msgid "(service alsa-service-type)\n"
  29895. msgstr ""
  29896. #. type: deffn
  29897. #: guix-git/doc/guix.texi:19793
  29898. msgid "See below for details about @code{alsa-configuration}."
  29899. msgstr ""
  29900. #. type: deftp
  29901. #: guix-git/doc/guix.texi:19795
  29902. #, no-wrap
  29903. msgid "{Data Type} alsa-configuration"
  29904. msgstr ""
  29905. #. type: deftp
  29906. #: guix-git/doc/guix.texi:19797
  29907. msgid "Data type representing the configuration for @code{alsa-service}."
  29908. msgstr ""
  29909. #. type: item
  29910. #: guix-git/doc/guix.texi:19799
  29911. #, no-wrap
  29912. msgid "@code{alsa-plugins} (default: @var{alsa-plugins})"
  29913. msgstr ""
  29914. #. type: table
  29915. #: guix-git/doc/guix.texi:19801
  29916. msgid "@code{alsa-plugins} package to use."
  29917. msgstr ""
  29918. #. type: item
  29919. #: guix-git/doc/guix.texi:19802
  29920. #, no-wrap
  29921. msgid "@code{pulseaudio?} (default: @var{#t})"
  29922. msgstr ""
  29923. #. type: table
  29924. #: guix-git/doc/guix.texi:19805
  29925. msgid "Whether ALSA applications should transparently be made to use the @uref{https://www.pulseaudio.org/, PulseAudio} sound server."
  29926. msgstr ""
  29927. #. type: table
  29928. #: guix-git/doc/guix.texi:19809
  29929. msgid "Using PulseAudio allows you to run several sound-producing applications at the same time and to individual control them @i{via} @command{pavucontrol}, among other things."
  29930. msgstr ""
  29931. #. type: item
  29932. #: guix-git/doc/guix.texi:19810
  29933. #, no-wrap
  29934. msgid "@code{extra-options} (default: @var{\"\"})"
  29935. msgstr ""
  29936. #. type: table
  29937. #: guix-git/doc/guix.texi:19812
  29938. msgid "String to append to the @file{/etc/asound.conf} file."
  29939. msgstr ""
  29940. #. type: Plain text
  29941. #: guix-git/doc/guix.texi:19818
  29942. msgid "Individual users who want to override the system configuration of ALSA can do it with the @file{~/.asoundrc} file:"
  29943. msgstr ""
  29944. #. type: example
  29945. #: guix-git/doc/guix.texi:19824
  29946. #, no-wrap
  29947. msgid ""
  29948. "# In guix, we have to specify the absolute path for plugins.\n"
  29949. "pcm_type.jack @{\n"
  29950. " lib \"/home/alice/.guix-profile/lib/alsa-lib/libasound_module_pcm_jack.so\"\n"
  29951. "@}\n"
  29952. "\n"
  29953. msgstr ""
  29954. #. type: example
  29955. #: guix-git/doc/guix.texi:19833
  29956. #, no-wrap
  29957. msgid ""
  29958. "# Routing ALSA to jack:\n"
  29959. "# <http://jackaudio.org/faq/routing_alsa.html>.\n"
  29960. "pcm.rawjack @{\n"
  29961. " type jack\n"
  29962. " playback_ports @{\n"
  29963. " 0 system:playback_1\n"
  29964. " 1 system:playback_2\n"
  29965. " @}\n"
  29966. "\n"
  29967. msgstr ""
  29968. #. type: example
  29969. #: guix-git/doc/guix.texi:19839
  29970. #, no-wrap
  29971. msgid ""
  29972. " capture_ports @{\n"
  29973. " 0 system:capture_1\n"
  29974. " 1 system:capture_2\n"
  29975. " @}\n"
  29976. "@}\n"
  29977. "\n"
  29978. msgstr ""
  29979. #. type: example
  29980. #: guix-git/doc/guix.texi:19846
  29981. #, no-wrap
  29982. msgid ""
  29983. "pcm.!default @{\n"
  29984. " type plug\n"
  29985. " slave @{\n"
  29986. " pcm \"rawjack\"\n"
  29987. " @}\n"
  29988. "@}\n"
  29989. msgstr ""
  29990. #. type: Plain text
  29991. #: guix-git/doc/guix.texi:19850
  29992. msgid "See @uref{https://www.alsa-project.org/main/index.php/Asoundrc} for the details."
  29993. msgstr ""
  29994. #. type: deffn
  29995. #: guix-git/doc/guix.texi:19851
  29996. #, no-wrap
  29997. msgid "{Scheme Variable} pulseaudio-service-type"
  29998. msgstr ""
  29999. #. type: deffn
  30000. #: guix-git/doc/guix.texi:19855
  30001. msgid "This is the type for the @uref{https://www.pulseaudio.org/, PulseAudio} sound server. It exists to allow system overrides of the default settings via @code{pulseaudio-configuration}, see below."
  30002. msgstr ""
  30003. #. type: quotation
  30004. #: guix-git/doc/guix.texi:19861
  30005. msgid "This service overrides per-user configuration files. If you want PulseAudio to honor configuration files in @file{~/.config/pulse} you have to unset the environment variables @env{PULSE_CONFIG} and @env{PULSE_CLIENTCONFIG} in your @file{~/.bash_profile}."
  30006. msgstr ""
  30007. #. type: quotation
  30008. #: guix-git/doc/guix.texi:19869
  30009. msgid "This service on its own does not ensure, that the @code{pulseaudio} package exists on your machine. It merely adds configuration files for it, as detailed below. In the (admittedly unlikely) case, that you find yourself without a @code{pulseaudio} package, consider enabling it through the @code{alsa-service-type} above."
  30010. msgstr ""
  30011. #. type: deftp
  30012. #: guix-git/doc/guix.texi:19872
  30013. #, fuzzy, no-wrap
  30014. msgid "{Data Type} pulseaudio-configuration"
  30015. msgstr "{数据类型} build-machine"
  30016. #. type: deftp
  30017. #: guix-git/doc/guix.texi:19874
  30018. msgid "Data type representing the configuration for @code{pulseaudio-service}."
  30019. msgstr ""
  30020. #. type: item
  30021. #: guix-git/doc/guix.texi:19876
  30022. #, fuzzy, no-wrap
  30023. msgid "@code{client-conf} (default: @code{'()})"
  30024. msgstr "@code{includes}(默认值:@code{'()})"
  30025. #. type: table
  30026. #: guix-git/doc/guix.texi:19881
  30027. msgid "List of settings to set in @file{client.conf}. Accepts a list of strings or a symbol-value pairs. A string will be inserted as-is with a newline added. A pair will be formatted as ``key = value'', again with a newline added."
  30028. msgstr ""
  30029. #. type: item
  30030. #: guix-git/doc/guix.texi:19882
  30031. #, fuzzy, no-wrap
  30032. msgid "@code{daemon-conf} (default: @code{'((flat-volumes . no))})"
  30033. msgstr "@code{mate}(默认值:@code{mate})"
  30034. #. type: table
  30035. #: guix-git/doc/guix.texi:19885
  30036. msgid "List of settings to set in @file{daemon.conf}, formatted just like @var{client-conf}."
  30037. msgstr ""
  30038. #. type: item
  30039. #: guix-git/doc/guix.texi:19886
  30040. #, no-wrap
  30041. msgid "@code{script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/default.pa\")})"
  30042. msgstr ""
  30043. #. type: table
  30044. #: guix-git/doc/guix.texi:19888
  30045. msgid "Script file to use as @file{default.pa}."
  30046. msgstr ""
  30047. #. type: item
  30048. #: guix-git/doc/guix.texi:19889
  30049. #, no-wrap
  30050. msgid "@code{system-script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/system.pa\")})"
  30051. msgstr ""
  30052. #. type: table
  30053. #: guix-git/doc/guix.texi:19891
  30054. msgid "Script file to use as @file{system.pa}."
  30055. msgstr ""
  30056. #. type: deffn
  30057. #: guix-git/doc/guix.texi:19894
  30058. #, no-wrap
  30059. msgid "{Scheme Variable} ladspa-service-type"
  30060. msgstr ""
  30061. #. type: deffn
  30062. #: guix-git/doc/guix.texi:19897
  30063. msgid "This service sets the @var{LADSPA_PATH} variable, so that programs, which respect it, e.g. PulseAudio, can load LADSPA plugins."
  30064. msgstr ""
  30065. #. type: deffn
  30066. #: guix-git/doc/guix.texi:19900
  30067. msgid "The following example will setup the service to enable modules from the @code{swh-plugins} package:"
  30068. msgstr ""
  30069. #. type: lisp
  30070. #: guix-git/doc/guix.texi:19904
  30071. #, no-wrap
  30072. msgid ""
  30073. "(service ladspa-service-type\n"
  30074. " (ladspa-configuration (plugins (list swh-plugins))))\n"
  30075. msgstr ""
  30076. #. type: deffn
  30077. #: guix-git/doc/guix.texi:19908
  30078. msgid "See @uref{http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html} for the details."
  30079. msgstr ""
  30080. #. type: cindex
  30081. #: guix-git/doc/guix.texi:19915
  30082. #, no-wrap
  30083. msgid "SQL"
  30084. msgstr ""
  30085. #. type: Plain text
  30086. #: guix-git/doc/guix.texi:19917
  30087. msgid "The @code{(gnu services databases)} module provides the following services."
  30088. msgstr ""
  30089. #. type: subsubheading
  30090. #: guix-git/doc/guix.texi:19918
  30091. #, no-wrap
  30092. msgid "PostgreSQL"
  30093. msgstr ""
  30094. #. type: Plain text
  30095. #: guix-git/doc/guix.texi:19922
  30096. msgid "The following example describes a PostgreSQL service with the default configuration."
  30097. msgstr ""
  30098. #. type: lisp
  30099. #: guix-git/doc/guix.texi:19927
  30100. #, no-wrap
  30101. msgid ""
  30102. "(service postgresql-service-type\n"
  30103. " (postgresql-configuration\n"
  30104. " (postgresql postgresql-10)))\n"
  30105. msgstr ""
  30106. #. type: Plain text
  30107. #: guix-git/doc/guix.texi:19933
  30108. msgid "If the services fails to start, it may be due to an incompatible cluster already present in @var{data-directory}. Adjust it (or, if you don't need the cluster anymore, delete @var{data-directory}), then restart the service."
  30109. msgstr ""
  30110. #. type: Plain text
  30111. #: guix-git/doc/guix.texi:19940
  30112. msgid "Peer authentication is used by default and the @code{postgres} user account has no shell, which prevents the direct execution of @code{psql} commands as this user. To use @code{psql}, you can temporarily log in as @code{postgres} using a shell, create a PostgreSQL superuser with the same name as one of the system users and then create the associated database."
  30113. msgstr ""
  30114. #. type: example
  30115. #: guix-git/doc/guix.texi:19945
  30116. #, no-wrap
  30117. msgid ""
  30118. "sudo -u postgres -s /bin/sh\n"
  30119. "createuser --interactive\n"
  30120. "createdb $MY_USER_LOGIN # Replace appropriately.\n"
  30121. msgstr ""
  30122. #. type: deftp
  30123. #: guix-git/doc/guix.texi:19947
  30124. #, no-wrap
  30125. msgid "{Data Type} postgresql-configuration"
  30126. msgstr ""
  30127. #. type: deftp
  30128. #: guix-git/doc/guix.texi:19950
  30129. msgid "Data type representing the configuration for the @code{postgresql-service-type}."
  30130. msgstr ""
  30131. #. type: code{#1}
  30132. #: guix-git/doc/guix.texi:19952
  30133. #, no-wrap
  30134. msgid "postgresql"
  30135. msgstr ""
  30136. #. type: table
  30137. #: guix-git/doc/guix.texi:19954
  30138. msgid "PostgreSQL package to use for the service."
  30139. msgstr ""
  30140. #. type: item
  30141. #: guix-git/doc/guix.texi:19955
  30142. #, fuzzy, no-wrap
  30143. msgid "@code{port} (default: @code{5432})"
  30144. msgstr "@code{port}(默认值:@code{22})"
  30145. #. type: table
  30146. #: guix-git/doc/guix.texi:19957
  30147. msgid "Port on which PostgreSQL should listen."
  30148. msgstr ""
  30149. #. type: table
  30150. #: guix-git/doc/guix.texi:19960
  30151. msgid "Locale to use as the default when creating the database cluster."
  30152. msgstr ""
  30153. #. type: item
  30154. #: guix-git/doc/guix.texi:19961
  30155. #, fuzzy, no-wrap
  30156. msgid "@code{config-file} (default: @code{(postgresql-config-file)})"
  30157. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  30158. #. type: table
  30159. #: guix-git/doc/guix.texi:19965
  30160. msgid "The configuration file to use when running PostgreSQL@. The default behaviour uses the postgresql-config-file record with the default values for the fields."
  30161. msgstr ""
  30162. #. type: item
  30163. #: guix-git/doc/guix.texi:19966
  30164. #, fuzzy, no-wrap
  30165. msgid "@code{log-directory} (default: @code{\"/var/log/postgresql\"})"
  30166. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30167. #. type: table
  30168. #: guix-git/doc/guix.texi:19970
  30169. msgid "The directory where @command{pg_ctl} output will be written in a file named @code{\"pg_ctl.log\"}. This file can be useful to debug PostgreSQL configuration errors for instance."
  30170. msgstr ""
  30171. #. type: item
  30172. #: guix-git/doc/guix.texi:19971
  30173. #, fuzzy, no-wrap
  30174. msgid "@code{data-directory} (default: @code{\"/var/lib/postgresql/data\"})"
  30175. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30176. #. type: table
  30177. #: guix-git/doc/guix.texi:19973
  30178. msgid "Directory in which to store the data."
  30179. msgstr ""
  30180. #. type: item
  30181. #: guix-git/doc/guix.texi:19974
  30182. #, fuzzy, no-wrap
  30183. msgid "@code{extension-packages} (default: @code{'()})"
  30184. msgstr "@code{includes}(默认值:@code{'()})"
  30185. #. type: cindex
  30186. #: guix-git/doc/guix.texi:19975
  30187. #, no-wrap
  30188. msgid "postgresql extension-packages"
  30189. msgstr ""
  30190. #. type: table
  30191. #: guix-git/doc/guix.texi:19980
  30192. msgid "Additional extensions are loaded from packages listed in @var{extension-packages}. Extensions are available at runtime. For instance, to create a geographic database using the @code{postgis} extension, a user can configure the postgresql-service as in this example:"
  30193. msgstr ""
  30194. #. type: cindex
  30195. #: guix-git/doc/guix.texi:19981
  30196. #, no-wrap
  30197. msgid "postgis"
  30198. msgstr ""
  30199. #. type: lisp
  30200. #: guix-git/doc/guix.texi:19984
  30201. #, no-wrap
  30202. msgid ""
  30203. "(use-package-modules databases geo)\n"
  30204. "\n"
  30205. msgstr ""
  30206. #. type: lisp
  30207. #: guix-git/doc/guix.texi:19997
  30208. #, no-wrap
  30209. msgid ""
  30210. "(operating-system\n"
  30211. " ...\n"
  30212. " ;; postgresql is required to run `psql' but postgis is not required for\n"
  30213. " ;; proper operation.\n"
  30214. " (packages (cons* postgresql %base-packages))\n"
  30215. " (services\n"
  30216. " (cons*\n"
  30217. " (service postgresql-service-type\n"
  30218. " (postgresql-configuration\n"
  30219. " (postgresql postgresql-10)\n"
  30220. " (extension-packages (list postgis))))\n"
  30221. " %base-services)))\n"
  30222. msgstr ""
  30223. #. type: table
  30224. #: guix-git/doc/guix.texi:20001
  30225. msgid "Then the extension becomes visible and you can initialise an empty geographic database in this way:"
  30226. msgstr ""
  30227. #. type: example
  30228. #: guix-git/doc/guix.texi:20008
  30229. #, no-wrap
  30230. msgid ""
  30231. "psql -U postgres\n"
  30232. "> create database postgistest;\n"
  30233. "> \\connect postgistest;\n"
  30234. "> create extension postgis;\n"
  30235. "> create extension postgis_topology;\n"
  30236. msgstr ""
  30237. #. type: table
  30238. #: guix-git/doc/guix.texi:20013
  30239. msgid "There is no need to add this field for contrib extensions such as hstore or dblink as they are already loadable by postgresql. This field is only required to add extensions provided by other packages."
  30240. msgstr ""
  30241. #. type: deftp
  30242. #: guix-git/doc/guix.texi:20017
  30243. #, no-wrap
  30244. msgid "{Data Type} postgresql-config-file"
  30245. msgstr ""
  30246. #. type: deftp
  30247. #: guix-git/doc/guix.texi:20023
  30248. msgid "Data type representing the PostgreSQL configuration file. As shown in the following example, this can be used to customize the configuration of PostgreSQL@. Note that you can use any G-expression or filename in place of this record, if you already have a configuration file you'd like to use for example."
  30249. msgstr ""
  30250. #. type: lisp
  30251. #: guix-git/doc/guix.texi:20043
  30252. #, no-wrap
  30253. msgid ""
  30254. "(service postgresql-service-type\n"
  30255. " (postgresql-configuration\n"
  30256. " (config-file\n"
  30257. " (postgresql-config-file\n"
  30258. " (log-destination \"stderr\")\n"
  30259. " (hba-file\n"
  30260. " (plain-file \"pg_hba.conf\"\n"
  30261. " \"\n"
  30262. "local\tall\tall\t\t\ttrust\n"
  30263. "host\tall\tall\t127.0.0.1/32 \tmd5\n"
  30264. "host\tall\tall\t::1/128 \tmd5\"))\n"
  30265. " (extra-config\n"
  30266. " '((\"session_preload_libraries\" \"auto_explain\")\n"
  30267. " (\"random_page_cost\" 2)\n"
  30268. " (\"auto_explain.log_min_duration\" \"100 ms\")\n"
  30269. " (\"work_mem\" \"500 MB\")\n"
  30270. " (\"logging_collector\" #t)\n"
  30271. " (\"log_directory\" \"/var/log/postgresql\")))))))\n"
  30272. msgstr ""
  30273. #. type: item
  30274. #: guix-git/doc/guix.texi:20046
  30275. #, fuzzy, no-wrap
  30276. msgid "@code{log-destination} (default: @code{\"syslog\"})"
  30277. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  30278. #. type: table
  30279. #: guix-git/doc/guix.texi:20049
  30280. msgid "The logging method to use for PostgreSQL@. Multiple values are accepted, separated by commas."
  30281. msgstr ""
  30282. #. type: item
  30283. #: guix-git/doc/guix.texi:20050
  30284. #, fuzzy, no-wrap
  30285. msgid "@code{hba-file} (default: @code{%default-postgres-hba})"
  30286. msgstr "@code{mate}(默认值:@code{mate})"
  30287. #. type: table
  30288. #: guix-git/doc/guix.texi:20053
  30289. msgid "Filename or G-expression for the host-based authentication configuration."
  30290. msgstr ""
  30291. #. type: item
  30292. #: guix-git/doc/guix.texi:20054
  30293. #, fuzzy, no-wrap
  30294. msgid "@code{ident-file} (default: @code{%default-postgres-ident})"
  30295. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  30296. #. type: table
  30297. #: guix-git/doc/guix.texi:20056
  30298. msgid "Filename or G-expression for the user name mapping configuration."
  30299. msgstr ""
  30300. #. type: item
  30301. #: guix-git/doc/guix.texi:20057
  30302. #, fuzzy, no-wrap
  30303. msgid "@code{socket-directory} (default: @code{#false})"
  30304. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30305. #. type: table
  30306. #: guix-git/doc/guix.texi:20062
  30307. msgid "Specifies the directory of the Unix-domain socket(s) on which PostgreSQL is to listen for connections from client applications. If set to @code{\"\"} PostgreSQL does not listen on any Unix-domain sockets, in which case only TCP/IP sockets can be used to connect to the server."
  30308. msgstr ""
  30309. #. type: table
  30310. #: guix-git/doc/guix.texi:20065
  30311. msgid "By default, the @code{#false} value means the PostgreSQL default value will be used, which is currently @samp{/tmp}."
  30312. msgstr ""
  30313. #. type: table
  30314. #: guix-git/doc/guix.texi:20070
  30315. msgid "List of additional keys and values to include in the PostgreSQL config file. Each entry in the list should be a list where the first element is the key, and the remaining elements are the values."
  30316. msgstr ""
  30317. #. type: table
  30318. #: guix-git/doc/guix.texi:20076
  30319. msgid "The values can be numbers, booleans or strings and will be mapped to PostgreSQL parameters types @code{Boolean}, @code{String}, @code{Numeric}, @code{Numeric with Unit} and @code{Enumerated} described @uref{https://www.postgresql.org/docs/current/config-setting.html, here}."
  30320. msgstr ""
  30321. #. type: deffn
  30322. #: guix-git/doc/guix.texi:20080
  30323. #, no-wrap
  30324. msgid "{Scheme Variable} postgresql-role-service-type"
  30325. msgstr ""
  30326. #. type: deffn
  30327. #: guix-git/doc/guix.texi:20083
  30328. msgid "This service allows to create PostgreSQL roles and databases after PostgreSQL service start. Here is an example of its use."
  30329. msgstr ""
  30330. #. type: lisp
  30331. #: guix-git/doc/guix.texi:20091
  30332. #, no-wrap
  30333. msgid ""
  30334. "(service postgresql-role-service-type\n"
  30335. " (postgresql-role-configuration\n"
  30336. " (roles\n"
  30337. " (list (postgresql-role\n"
  30338. " (name \"test\")\n"
  30339. " (create-database? #t))))))\n"
  30340. msgstr ""
  30341. #. type: deffn
  30342. #: guix-git/doc/guix.texi:20095
  30343. msgid "This service can be extended with extra roles, as in this example:"
  30344. msgstr ""
  30345. #. type: lisp
  30346. #: guix-git/doc/guix.texi:20101
  30347. #, no-wrap
  30348. msgid ""
  30349. "(service-extension postgresql-role-service-type\n"
  30350. " (const (postgresql-role\n"
  30351. " (name \"alice\")\n"
  30352. " (create-database? #t))))\n"
  30353. msgstr ""
  30354. #. type: deftp
  30355. #: guix-git/doc/guix.texi:20104
  30356. #, fuzzy, no-wrap
  30357. msgid "{Data Type} postgresql-role"
  30358. msgstr "{数据类型} build-machine"
  30359. #. type: deftp
  30360. #: guix-git/doc/guix.texi:20110
  30361. msgid "PostgreSQL manages database access permissions using the concept of roles. A role can be thought of as either a database user, or a group of database users, depending on how the role is set up. Roles can own database objects (for example, tables) and can assign privileges on those objects to other roles to control who has access to which objects."
  30362. msgstr ""
  30363. #. type: table
  30364. #: guix-git/doc/guix.texi:20114
  30365. #, fuzzy
  30366. msgid "The role name."
  30367. msgstr "仓库monad"
  30368. #. type: item
  30369. #: guix-git/doc/guix.texi:20115
  30370. #, fuzzy, no-wrap
  30371. msgid "@code{permissions} (default: @code{'(createdb login)})"
  30372. msgstr "@code{includes}(默认值:@code{'()})"
  30373. #. type: table
  30374. #: guix-git/doc/guix.texi:20119
  30375. msgid "The role permissions list. Supported permissions are @code{bypassrls}, @code{createdb}, @code{createrole}, @code{login}, @code{replication} and @code{superuser}."
  30376. msgstr ""
  30377. #. type: item
  30378. #: guix-git/doc/guix.texi:20120
  30379. #, fuzzy, no-wrap
  30380. msgid "@code{create-database?} (default: @code{#f})"
  30381. msgstr "@code{challenge}(默认值:@code{#f})"
  30382. #. type: table
  30383. #: guix-git/doc/guix.texi:20122
  30384. msgid "Whether to create a database with the same name as the role."
  30385. msgstr ""
  30386. #. type: deftp
  30387. #: guix-git/doc/guix.texi:20126
  30388. #, fuzzy, no-wrap
  30389. msgid "{Data Type} postgresql-role-configuration"
  30390. msgstr "管理操作系统配置。"
  30391. #. type: deftp
  30392. #: guix-git/doc/guix.texi:20129
  30393. #, fuzzy
  30394. msgid "Data type representing the configuration of @var{postgresql-role-service-type}."
  30395. msgstr "管理操作系统配置。"
  30396. #. type: item
  30397. #: guix-git/doc/guix.texi:20131
  30398. #, fuzzy, no-wrap
  30399. msgid "@code{host} (default: @code{\"/var/run/postgresql\"})"
  30400. msgstr "@code{port}(默认值:@code{22})"
  30401. #. type: table
  30402. #: guix-git/doc/guix.texi:20133
  30403. msgid "The PostgreSQL host to connect to."
  30404. msgstr ""
  30405. #. type: item
  30406. #: guix-git/doc/guix.texi:20134
  30407. #, fuzzy, no-wrap
  30408. msgid "@code{log} (default: @code{\"/var/log/postgresql_roles.log\"})"
  30409. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  30410. #. type: table
  30411. #: guix-git/doc/guix.texi:20136
  30412. #, fuzzy
  30413. msgid "File name of the log file."
  30414. msgstr "远程机器的主机名。"
  30415. #. type: item
  30416. #: guix-git/doc/guix.texi:20137
  30417. #, fuzzy, no-wrap
  30418. msgid "@code{roles} (default: @code{'()})"
  30419. msgstr "@code{features} (@code{'()})"
  30420. #. type: table
  30421. #: guix-git/doc/guix.texi:20139
  30422. msgid "The initial PostgreSQL roles to create."
  30423. msgstr ""
  30424. #. type: subsubheading
  30425. #: guix-git/doc/guix.texi:20142
  30426. #, no-wrap
  30427. msgid "MariaDB/MySQL"
  30428. msgstr ""
  30429. #. type: defvr
  30430. #: guix-git/doc/guix.texi:20144
  30431. #, no-wrap
  30432. msgid "{Scheme Variable} mysql-service-type"
  30433. msgstr ""
  30434. #. type: defvr
  30435. #: guix-git/doc/guix.texi:20148
  30436. msgid "This is the service type for a MySQL or MariaDB database server. Its value is a @code{mysql-configuration} object that specifies which package to use, as well as various settings for the @command{mysqld} daemon."
  30437. msgstr ""
  30438. #. type: deftp
  30439. #: guix-git/doc/guix.texi:20150
  30440. #, no-wrap
  30441. msgid "{Data Type} mysql-configuration"
  30442. msgstr ""
  30443. #. type: deftp
  30444. #: guix-git/doc/guix.texi:20152
  30445. #, fuzzy
  30446. msgid "Data type representing the configuration of @var{mysql-service-type}."
  30447. msgstr "管理操作系统配置。"
  30448. #. type: item
  30449. #: guix-git/doc/guix.texi:20154
  30450. #, no-wrap
  30451. msgid "@code{mysql} (default: @var{mariadb})"
  30452. msgstr ""
  30453. #. type: table
  30454. #: guix-git/doc/guix.texi:20157
  30455. msgid "Package object of the MySQL database server, can be either @var{mariadb} or @var{mysql}."
  30456. msgstr ""
  30457. #. type: table
  30458. #: guix-git/doc/guix.texi:20160
  30459. msgid "For MySQL, a temporary root password will be displayed at activation time. For MariaDB, the root password is empty."
  30460. msgstr ""
  30461. #. type: item
  30462. #: guix-git/doc/guix.texi:20161 guix-git/doc/guix.texi:23981
  30463. #, no-wrap
  30464. msgid "@code{bind-address} (default: @code{\"127.0.0.1\"})"
  30465. msgstr ""
  30466. #. type: table
  30467. #: guix-git/doc/guix.texi:20164
  30468. msgid "The IP on which to listen for network connections. Use @code{\"0.0.0.0\"} to bind to all available network interfaces."
  30469. msgstr ""
  30470. #. type: item
  30471. #: guix-git/doc/guix.texi:20165
  30472. #, no-wrap
  30473. msgid "@code{port} (default: @code{3306})"
  30474. msgstr ""
  30475. #. type: table
  30476. #: guix-git/doc/guix.texi:20167
  30477. msgid "TCP port on which the database server listens for incoming connections."
  30478. msgstr ""
  30479. #. type: item
  30480. #: guix-git/doc/guix.texi:20168
  30481. #, fuzzy, no-wrap
  30482. msgid "@code{socket} (default: @code{\"/run/mysqld/mysqld.sock\"})"
  30483. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  30484. #. type: table
  30485. #: guix-git/doc/guix.texi:20170
  30486. msgid "Socket file to use for local (non-network) connections."
  30487. msgstr ""
  30488. #. type: table
  30489. #: guix-git/doc/guix.texi:20173
  30490. msgid "Additional settings for the @file{my.cnf} configuration file."
  30491. msgstr ""
  30492. #. type: item
  30493. #: guix-git/doc/guix.texi:20174
  30494. #, fuzzy, no-wrap
  30495. msgid "@code{extra-environment} (default: @code{#~'()})"
  30496. msgstr "@code{features} (@code{'()})"
  30497. #. type: table
  30498. #: guix-git/doc/guix.texi:20176
  30499. msgid "List of environment variables passed to the @command{mysqld} process."
  30500. msgstr ""
  30501. #. type: item
  30502. #: guix-git/doc/guix.texi:20177
  30503. #, fuzzy, no-wrap
  30504. msgid "@code{auto-upgrade?} (default: @code{#t})"
  30505. msgstr "@code{mate}(默认值:@code{mate})"
  30506. #. type: table
  30507. #: guix-git/doc/guix.texi:20182
  30508. msgid "Whether to automatically run @command{mysql_upgrade} after starting the service. This is necessary to upgrade the @dfn{system schema} after ``major'' updates (such as switching from MariaDB 10.4 to 10.5), but can be disabled if you would rather do that manually."
  30509. msgstr ""
  30510. #. type: subsubheading
  30511. #: guix-git/doc/guix.texi:20186
  30512. #, no-wrap
  30513. msgid "Memcached"
  30514. msgstr ""
  30515. #. type: defvr
  30516. #: guix-git/doc/guix.texi:20188
  30517. #, no-wrap
  30518. msgid "{Scheme Variable} memcached-service-type"
  30519. msgstr ""
  30520. #. type: defvr
  30521. #: guix-git/doc/guix.texi:20192
  30522. msgid "This is the service type for the @uref{https://memcached.org/, Memcached} service, which provides a distributed in memory cache. The value for the service type is a @code{memcached-configuration} object."
  30523. msgstr ""
  30524. #. type: lisp
  30525. #: guix-git/doc/guix.texi:20196
  30526. #, no-wrap
  30527. msgid "(service memcached-service-type)\n"
  30528. msgstr ""
  30529. #. type: deftp
  30530. #: guix-git/doc/guix.texi:20198
  30531. #, no-wrap
  30532. msgid "{Data Type} memcached-configuration"
  30533. msgstr ""
  30534. #. type: deftp
  30535. #: guix-git/doc/guix.texi:20200
  30536. msgid "Data type representing the configuration of memcached."
  30537. msgstr ""
  30538. #. type: item
  30539. #: guix-git/doc/guix.texi:20202
  30540. #, no-wrap
  30541. msgid "@code{memcached} (default: @code{memcached})"
  30542. msgstr ""
  30543. #. type: table
  30544. #: guix-git/doc/guix.texi:20204
  30545. msgid "The Memcached package to use."
  30546. msgstr ""
  30547. #. type: item
  30548. #: guix-git/doc/guix.texi:20205
  30549. #, no-wrap
  30550. msgid "@code{interfaces} (default: @code{'(\"0.0.0.0\")})"
  30551. msgstr ""
  30552. #. type: table
  30553. #: guix-git/doc/guix.texi:20207
  30554. msgid "Network interfaces on which to listen."
  30555. msgstr ""
  30556. #. type: item
  30557. #: guix-git/doc/guix.texi:20208
  30558. #, no-wrap
  30559. msgid "@code{tcp-port} (default: @code{11211})"
  30560. msgstr ""
  30561. #. type: table
  30562. #: guix-git/doc/guix.texi:20210
  30563. msgid "Port on which to accept connections."
  30564. msgstr ""
  30565. #. type: item
  30566. #: guix-git/doc/guix.texi:20211
  30567. #, no-wrap
  30568. msgid "@code{udp-port} (default: @code{11211})"
  30569. msgstr ""
  30570. #. type: table
  30571. #: guix-git/doc/guix.texi:20214
  30572. msgid "Port on which to accept UDP connections on, a value of 0 will disable listening on a UDP socket."
  30573. msgstr ""
  30574. #. type: item
  30575. #: guix-git/doc/guix.texi:20215
  30576. #, no-wrap
  30577. msgid "@code{additional-options} (default: @code{'()})"
  30578. msgstr ""
  30579. #. type: table
  30580. #: guix-git/doc/guix.texi:20217
  30581. msgid "Additional command line options to pass to @code{memcached}."
  30582. msgstr ""
  30583. #. type: subsubheading
  30584. #: guix-git/doc/guix.texi:20220
  30585. #, no-wrap
  30586. msgid "Redis"
  30587. msgstr ""
  30588. #. type: defvr
  30589. #: guix-git/doc/guix.texi:20222
  30590. #, no-wrap
  30591. msgid "{Scheme Variable} redis-service-type"
  30592. msgstr ""
  30593. #. type: defvr
  30594. #: guix-git/doc/guix.texi:20225
  30595. msgid "This is the service type for the @uref{https://redis.io/, Redis} key/value store, whose value is a @code{redis-configuration} object."
  30596. msgstr ""
  30597. #. type: deftp
  30598. #: guix-git/doc/guix.texi:20227
  30599. #, no-wrap
  30600. msgid "{Data Type} redis-configuration"
  30601. msgstr ""
  30602. #. type: deftp
  30603. #: guix-git/doc/guix.texi:20229
  30604. msgid "Data type representing the configuration of redis."
  30605. msgstr ""
  30606. #. type: item
  30607. #: guix-git/doc/guix.texi:20231
  30608. #, no-wrap
  30609. msgid "@code{redis} (default: @code{redis})"
  30610. msgstr ""
  30611. #. type: table
  30612. #: guix-git/doc/guix.texi:20233
  30613. msgid "The Redis package to use."
  30614. msgstr ""
  30615. #. type: item
  30616. #: guix-git/doc/guix.texi:20234
  30617. #, no-wrap
  30618. msgid "@code{bind} (default: @code{\"127.0.0.1\"})"
  30619. msgstr ""
  30620. #. type: table
  30621. #: guix-git/doc/guix.texi:20236
  30622. msgid "Network interface on which to listen."
  30623. msgstr ""
  30624. #. type: item
  30625. #: guix-git/doc/guix.texi:20237
  30626. #, no-wrap
  30627. msgid "@code{port} (default: @code{6379})"
  30628. msgstr ""
  30629. #. type: table
  30630. #: guix-git/doc/guix.texi:20240
  30631. msgid "Port on which to accept connections on, a value of 0 will disable listening on a TCP socket."
  30632. msgstr ""
  30633. #. type: item
  30634. #: guix-git/doc/guix.texi:20241
  30635. #, no-wrap
  30636. msgid "@code{working-directory} (default: @code{\"/var/lib/redis\"})"
  30637. msgstr ""
  30638. #. type: table
  30639. #: guix-git/doc/guix.texi:20243
  30640. msgid "Directory in which to store the database and related files."
  30641. msgstr ""
  30642. #. type: cindex
  30643. #: guix-git/doc/guix.texi:20249
  30644. #, no-wrap
  30645. msgid "mail"
  30646. msgstr ""
  30647. #. type: cindex
  30648. #: guix-git/doc/guix.texi:20250
  30649. #, no-wrap
  30650. msgid "email"
  30651. msgstr ""
  30652. #. type: Plain text
  30653. #: guix-git/doc/guix.texi:20255
  30654. msgid "The @code{(gnu services mail)} module provides Guix service definitions for email services: IMAP, POP3, and LMTP servers, as well as mail transport agents (MTAs). Lots of acronyms! These services are detailed in the subsections below."
  30655. msgstr ""
  30656. #. type: subsubheading
  30657. #: guix-git/doc/guix.texi:20256
  30658. #, no-wrap
  30659. msgid "Dovecot Service"
  30660. msgstr ""
  30661. #. type: deffn
  30662. #: guix-git/doc/guix.texi:20258
  30663. #, no-wrap
  30664. msgid "{Scheme Procedure} dovecot-service [#:config (dovecot-configuration)]"
  30665. msgstr ""
  30666. #. type: deffn
  30667. #: guix-git/doc/guix.texi:20260
  30668. msgid "Return a service that runs the Dovecot IMAP/POP3/LMTP mail server."
  30669. msgstr ""
  30670. #. type: Plain text
  30671. #: guix-git/doc/guix.texi:20270
  30672. msgid "By default, Dovecot does not need much configuration; the default configuration object created by @code{(dovecot-configuration)} will suffice if your mail is delivered to @code{~/Maildir}. A self-signed certificate will be generated for TLS-protected connections, though Dovecot will also listen on cleartext ports by default. There are a number of options, though, which mail administrators might need to change, and as is the case with other services, Guix allows the system administrator to specify these parameters via a uniform Scheme interface."
  30673. msgstr ""
  30674. #. type: Plain text
  30675. #: guix-git/doc/guix.texi:20273
  30676. msgid "For example, to specify that mail is located at @code{maildir~/.mail}, one would instantiate the Dovecot service like this:"
  30677. msgstr ""
  30678. #. type: lisp
  30679. #: guix-git/doc/guix.texi:20278
  30680. #, no-wrap
  30681. msgid ""
  30682. "(dovecot-service #:config\n"
  30683. " (dovecot-configuration\n"
  30684. " (mail-location \"maildir:~/.mail\")))\n"
  30685. msgstr ""
  30686. #. type: Plain text
  30687. #: guix-git/doc/guix.texi:20286
  30688. msgid "The available configuration parameters follow. Each parameter definition is preceded by its type; for example, @samp{string-list foo} indicates that the @code{foo} parameter should be specified as a list of strings. There is also a way to specify the configuration as a string, if you have an old @code{dovecot.conf} file that you want to port over from some other system; see the end for more details."
  30689. msgstr ""
  30690. #. type: Plain text
  30691. #: guix-git/doc/guix.texi:20296
  30692. msgid "Available @code{dovecot-configuration} fields are:"
  30693. msgstr ""
  30694. #. type: deftypevr
  30695. #: guix-git/doc/guix.texi:20297
  30696. #, no-wrap
  30697. msgid "{@code{dovecot-configuration} parameter} package dovecot"
  30698. msgstr ""
  30699. #. type: deftypevr
  30700. #: guix-git/doc/guix.texi:20299 guix-git/doc/guix.texi:21648
  30701. msgid "The dovecot package."
  30702. msgstr ""
  30703. #. type: deftypevr
  30704. #: guix-git/doc/guix.texi:20301
  30705. #, no-wrap
  30706. msgid "{@code{dovecot-configuration} parameter} comma-separated-string-list listen"
  30707. msgstr ""
  30708. #. type: deftypevr
  30709. #: guix-git/doc/guix.texi:20307
  30710. msgid "A list of IPs or hosts where to listen for connections. @samp{*} listens on all IPv4 interfaces, @samp{::} listens on all IPv6 interfaces. If you want to specify non-default ports or anything more complex, customize the address and port fields of the @samp{inet-listener} of the specific services you are interested in."
  30711. msgstr ""
  30712. #. type: deftypevr
  30713. #: guix-git/doc/guix.texi:20309
  30714. #, no-wrap
  30715. msgid "{@code{dovecot-configuration} parameter} protocol-configuration-list protocols"
  30716. msgstr ""
  30717. #. type: deftypevr
  30718. #: guix-git/doc/guix.texi:20312
  30719. msgid "List of protocols we want to serve. Available protocols include @samp{imap}, @samp{pop3}, and @samp{lmtp}."
  30720. msgstr ""
  30721. #. type: deftypevr
  30722. #: guix-git/doc/guix.texi:20314
  30723. msgid "Available @code{protocol-configuration} fields are:"
  30724. msgstr ""
  30725. #. type: deftypevr
  30726. #: guix-git/doc/guix.texi:20315
  30727. #, no-wrap
  30728. msgid "{@code{protocol-configuration} parameter} string name"
  30729. msgstr ""
  30730. #. type: deftypevr
  30731. #: guix-git/doc/guix.texi:20317
  30732. msgid "The name of the protocol."
  30733. msgstr ""
  30734. #. type: deftypevr
  30735. #: guix-git/doc/guix.texi:20319
  30736. #, no-wrap
  30737. msgid "{@code{protocol-configuration} parameter} string auth-socket-path"
  30738. msgstr ""
  30739. #. type: deftypevr
  30740. #: guix-git/doc/guix.texi:20323
  30741. msgid "UNIX socket path to the master authentication server to find users. This is used by imap (for shared users) and lda. It defaults to @samp{\"/var/run/dovecot/auth-userdb\"}."
  30742. msgstr ""
  30743. #. type: deftypevr
  30744. #: guix-git/doc/guix.texi:20325
  30745. #, no-wrap
  30746. msgid "{@code{protocol-configuration} parameter} boolean imap-metadata?"
  30747. msgstr ""
  30748. #. type: deftypevr
  30749. #: guix-git/doc/guix.texi:20330
  30750. msgid "Whether to enable the @code{IMAP METADATA} extension as defined in @uref{https://tools.ietf.org/html/rfc5464,RFC@tie{}5464}, which provides a means for clients to set and retrieve per-mailbox, per-user metadata and annotations over IMAP."
  30751. msgstr ""
  30752. #. type: deftypevr
  30753. #: guix-git/doc/guix.texi:20333
  30754. msgid "If this is @samp{#t}, you must also specify a dictionary @i{via} the @code{mail-attribute-dict} setting."
  30755. msgstr ""
  30756. #. type: deftypevr
  30757. #: guix-git/doc/guix.texi:20338
  30758. #, no-wrap
  30759. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-notify-capabilities"
  30760. msgstr ""
  30761. #. type: deftypevr
  30762. #: guix-git/doc/guix.texi:20343
  30763. msgid "Which NOTIFY capabilities to report to clients that first connect to the ManageSieve service, before authentication. These may differ from the capabilities offered to authenticated users. If this field is left empty, report what the Sieve interpreter supports by default."
  30764. msgstr ""
  30765. #. type: deftypevr
  30766. #: guix-git/doc/guix.texi:20347
  30767. #, no-wrap
  30768. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-sieve-capability"
  30769. msgstr ""
  30770. #. type: deftypevr
  30771. #: guix-git/doc/guix.texi:20352
  30772. msgid "Which SIEVE capabilities to report to clients that first connect to the ManageSieve service, before authentication. These may differ from the capabilities offered to authenticated users. If this field is left empty, report what the Sieve interpreter supports by default."
  30773. msgstr ""
  30774. #. type: deftypevr
  30775. #: guix-git/doc/guix.texi:20357
  30776. #, no-wrap
  30777. msgid "{@code{protocol-configuration} parameter} space-separated-string-list mail-plugins"
  30778. msgstr ""
  30779. #. type: deftypevr
  30780. #: guix-git/doc/guix.texi:20359
  30781. msgid "Space separated list of plugins to load."
  30782. msgstr ""
  30783. #. type: deftypevr
  30784. #: guix-git/doc/guix.texi:20361
  30785. #, no-wrap
  30786. msgid "{@code{protocol-configuration} parameter} non-negative-integer mail-max-userip-connections"
  30787. msgstr ""
  30788. #. type: deftypevr
  30789. #: guix-git/doc/guix.texi:20365
  30790. msgid "Maximum number of IMAP connections allowed for a user from each IP address. NOTE: The username is compared case-sensitively. Defaults to @samp{10}."
  30791. msgstr ""
  30792. #. type: deftypevr
  30793. #: guix-git/doc/guix.texi:20369
  30794. #, no-wrap
  30795. msgid "{@code{dovecot-configuration} parameter} service-configuration-list services"
  30796. msgstr ""
  30797. #. type: deftypevr
  30798. #: guix-git/doc/guix.texi:20373
  30799. msgid "List of services to enable. Available services include @samp{imap}, @samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and @samp{lmtp}."
  30800. msgstr ""
  30801. #. type: deftypevr
  30802. #: guix-git/doc/guix.texi:20375
  30803. msgid "Available @code{service-configuration} fields are:"
  30804. msgstr ""
  30805. #. type: deftypevr
  30806. #: guix-git/doc/guix.texi:20376
  30807. #, no-wrap
  30808. msgid "{@code{service-configuration} parameter} string kind"
  30809. msgstr ""
  30810. #. type: deftypevr
  30811. #: guix-git/doc/guix.texi:20381
  30812. msgid "The service kind. Valid values include @code{director}, @code{imap-login}, @code{pop3-login}, @code{lmtp}, @code{imap}, @code{pop3}, @code{auth}, @code{auth-worker}, @code{dict}, @code{tcpwrap}, @code{quota-warning}, or anything else."
  30813. msgstr ""
  30814. #. type: deftypevr
  30815. #: guix-git/doc/guix.texi:20383
  30816. #, no-wrap
  30817. msgid "{@code{service-configuration} parameter} listener-configuration-list listeners"
  30818. msgstr ""
  30819. #. type: deftypevr
  30820. #: guix-git/doc/guix.texi:20388
  30821. msgid "Listeners for the service. A listener is either a @code{unix-listener-configuration}, a @code{fifo-listener-configuration}, or an @code{inet-listener-configuration}. Defaults to @samp{()}."
  30822. msgstr ""
  30823. #. type: deftypevr
  30824. #: guix-git/doc/guix.texi:20390
  30825. msgid "Available @code{unix-listener-configuration} fields are:"
  30826. msgstr ""
  30827. #. type: deftypevr
  30828. #: guix-git/doc/guix.texi:20391
  30829. #, no-wrap
  30830. msgid "{@code{unix-listener-configuration} parameter} string path"
  30831. msgstr ""
  30832. #. type: deftypevr
  30833. #: guix-git/doc/guix.texi:20394 guix-git/doc/guix.texi:20417
  30834. msgid "Path to the file, relative to @code{base-dir} field. This is also used as the section name."
  30835. msgstr ""
  30836. #. type: deftypevr
  30837. #: guix-git/doc/guix.texi:20396
  30838. #, no-wrap
  30839. msgid "{@code{unix-listener-configuration} parameter} string mode"
  30840. msgstr ""
  30841. #. type: deftypevr
  30842. #: guix-git/doc/guix.texi:20399 guix-git/doc/guix.texi:20422
  30843. msgid "The access mode for the socket. Defaults to @samp{\"0600\"}."
  30844. msgstr ""
  30845. #. type: deftypevr
  30846. #: guix-git/doc/guix.texi:20401
  30847. #, no-wrap
  30848. msgid "{@code{unix-listener-configuration} parameter} string user"
  30849. msgstr ""
  30850. #. type: deftypevr
  30851. #: guix-git/doc/guix.texi:20404 guix-git/doc/guix.texi:20427
  30852. msgid "The user to own the socket. Defaults to @samp{\"\"}."
  30853. msgstr ""
  30854. #. type: deftypevr
  30855. #: guix-git/doc/guix.texi:20406
  30856. #, no-wrap
  30857. msgid "{@code{unix-listener-configuration} parameter} string group"
  30858. msgstr ""
  30859. #. type: deftypevr
  30860. #: guix-git/doc/guix.texi:20409 guix-git/doc/guix.texi:20432
  30861. msgid "The group to own the socket. Defaults to @samp{\"\"}."
  30862. msgstr ""
  30863. #. type: deftypevr
  30864. #: guix-git/doc/guix.texi:20413
  30865. msgid "Available @code{fifo-listener-configuration} fields are:"
  30866. msgstr ""
  30867. #. type: deftypevr
  30868. #: guix-git/doc/guix.texi:20414
  30869. #, no-wrap
  30870. msgid "{@code{fifo-listener-configuration} parameter} string path"
  30871. msgstr ""
  30872. #. type: deftypevr
  30873. #: guix-git/doc/guix.texi:20419
  30874. #, no-wrap
  30875. msgid "{@code{fifo-listener-configuration} parameter} string mode"
  30876. msgstr ""
  30877. #. type: deftypevr
  30878. #: guix-git/doc/guix.texi:20424
  30879. #, no-wrap
  30880. msgid "{@code{fifo-listener-configuration} parameter} string user"
  30881. msgstr ""
  30882. #. type: deftypevr
  30883. #: guix-git/doc/guix.texi:20429
  30884. #, no-wrap
  30885. msgid "{@code{fifo-listener-configuration} parameter} string group"
  30886. msgstr ""
  30887. #. type: deftypevr
  30888. #: guix-git/doc/guix.texi:20436
  30889. msgid "Available @code{inet-listener-configuration} fields are:"
  30890. msgstr ""
  30891. #. type: deftypevr
  30892. #: guix-git/doc/guix.texi:20437
  30893. #, no-wrap
  30894. msgid "{@code{inet-listener-configuration} parameter} string protocol"
  30895. msgstr ""
  30896. #. type: deftypevr
  30897. #: guix-git/doc/guix.texi:20439
  30898. msgid "The protocol to listen for."
  30899. msgstr ""
  30900. #. type: deftypevr
  30901. #: guix-git/doc/guix.texi:20441
  30902. #, no-wrap
  30903. msgid "{@code{inet-listener-configuration} parameter} string address"
  30904. msgstr ""
  30905. #. type: deftypevr
  30906. #: guix-git/doc/guix.texi:20444
  30907. msgid "The address on which to listen, or empty for all addresses. Defaults to @samp{\"\"}."
  30908. msgstr ""
  30909. #. type: deftypevr
  30910. #: guix-git/doc/guix.texi:20446
  30911. #, no-wrap
  30912. msgid "{@code{inet-listener-configuration} parameter} non-negative-integer port"
  30913. msgstr ""
  30914. #. type: deftypevr
  30915. #: guix-git/doc/guix.texi:20448
  30916. msgid "The port on which to listen."
  30917. msgstr ""
  30918. #. type: deftypevr
  30919. #: guix-git/doc/guix.texi:20450
  30920. #, no-wrap
  30921. msgid "{@code{inet-listener-configuration} parameter} boolean ssl?"
  30922. msgstr ""
  30923. #. type: deftypevr
  30924. #: guix-git/doc/guix.texi:20454
  30925. msgid "Whether to use SSL for this service; @samp{yes}, @samp{no}, or @samp{required}. Defaults to @samp{#t}."
  30926. msgstr ""
  30927. #. type: deftypevr
  30928. #: guix-git/doc/guix.texi:20458
  30929. #, no-wrap
  30930. msgid "{@code{service-configuration} parameter} non-negative-integer client-limit"
  30931. msgstr ""
  30932. #. type: deftypevr
  30933. #: guix-git/doc/guix.texi:20463
  30934. msgid "Maximum number of simultaneous client connections per process. Once this number of connections is received, the next incoming connection will prompt Dovecot to spawn another process. If set to 0, @code{default-client-limit} is used instead."
  30935. msgstr ""
  30936. #. type: deftypevr
  30937. #: guix-git/doc/guix.texi:20468
  30938. #, no-wrap
  30939. msgid "{@code{service-configuration} parameter} non-negative-integer service-count"
  30940. msgstr ""
  30941. #. type: deftypevr
  30942. #: guix-git/doc/guix.texi:20473
  30943. msgid "Number of connections to handle before starting a new process. Typically the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0 is faster. <doc/wiki/LoginProcess.txt>. Defaults to @samp{1}."
  30944. msgstr ""
  30945. #. type: deftypevr
  30946. #: guix-git/doc/guix.texi:20476
  30947. #, no-wrap
  30948. msgid "{@code{service-configuration} parameter} non-negative-integer process-limit"
  30949. msgstr ""
  30950. #. type: deftypevr
  30951. #: guix-git/doc/guix.texi:20479
  30952. msgid "Maximum number of processes that can exist for this service. If set to 0, @code{default-process-limit} is used instead."
  30953. msgstr ""
  30954. #. type: deftypevr
  30955. #: guix-git/doc/guix.texi:20484
  30956. #, no-wrap
  30957. msgid "{@code{service-configuration} parameter} non-negative-integer process-min-avail"
  30958. msgstr ""
  30959. #. type: deftypevr
  30960. #: guix-git/doc/guix.texi:20487
  30961. msgid "Number of processes to always keep waiting for more connections. Defaults to @samp{0}."
  30962. msgstr ""
  30963. #. type: deftypevr
  30964. #: guix-git/doc/guix.texi:20489
  30965. #, no-wrap
  30966. msgid "{@code{service-configuration} parameter} non-negative-integer vsz-limit"
  30967. msgstr ""
  30968. #. type: deftypevr
  30969. #: guix-git/doc/guix.texi:20493
  30970. msgid "If you set @samp{service-count 0}, you probably need to grow this. Defaults to @samp{256000000}."
  30971. msgstr ""
  30972. #. type: deftypevr
  30973. #: guix-git/doc/guix.texi:20497
  30974. #, no-wrap
  30975. msgid "{@code{dovecot-configuration} parameter} dict-configuration dict"
  30976. msgstr ""
  30977. #. type: deftypevr
  30978. #: guix-git/doc/guix.texi:20500
  30979. msgid "Dict configuration, as created by the @code{dict-configuration} constructor."
  30980. msgstr ""
  30981. #. type: deftypevr
  30982. #: guix-git/doc/guix.texi:20502
  30983. msgid "Available @code{dict-configuration} fields are:"
  30984. msgstr ""
  30985. #. type: deftypevr
  30986. #: guix-git/doc/guix.texi:20503
  30987. #, no-wrap
  30988. msgid "{@code{dict-configuration} parameter} free-form-fields entries"
  30989. msgstr ""
  30990. #. type: deftypevr
  30991. #: guix-git/doc/guix.texi:20506
  30992. msgid "A list of key-value pairs that this dict should hold. Defaults to @samp{()}."
  30993. msgstr ""
  30994. #. type: deftypevr
  30995. #: guix-git/doc/guix.texi:20510
  30996. #, no-wrap
  30997. msgid "{@code{dovecot-configuration} parameter} passdb-configuration-list passdbs"
  30998. msgstr ""
  30999. #. type: deftypevr
  31000. #: guix-git/doc/guix.texi:20513
  31001. msgid "A list of passdb configurations, each one created by the @code{passdb-configuration} constructor."
  31002. msgstr ""
  31003. #. type: deftypevr
  31004. #: guix-git/doc/guix.texi:20515
  31005. msgid "Available @code{passdb-configuration} fields are:"
  31006. msgstr ""
  31007. #. type: deftypevr
  31008. #: guix-git/doc/guix.texi:20516
  31009. #, no-wrap
  31010. msgid "{@code{passdb-configuration} parameter} string driver"
  31011. msgstr ""
  31012. #. type: deftypevr
  31013. #: guix-git/doc/guix.texi:20521
  31014. msgid "The driver that the passdb should use. Valid values include @samp{pam}, @samp{passwd}, @samp{shadow}, @samp{bsdauth}, and @samp{static}. Defaults to @samp{\"pam\"}."
  31015. msgstr ""
  31016. #. type: deftypevr
  31017. #: guix-git/doc/guix.texi:20523
  31018. #, no-wrap
  31019. msgid "{@code{passdb-configuration} parameter} space-separated-string-list args"
  31020. msgstr ""
  31021. #. type: deftypevr
  31022. #: guix-git/doc/guix.texi:20526
  31023. msgid "Space separated list of arguments to the passdb driver. Defaults to @samp{\"\"}."
  31024. msgstr ""
  31025. #. type: deftypevr
  31026. #: guix-git/doc/guix.texi:20530
  31027. #, no-wrap
  31028. msgid "{@code{dovecot-configuration} parameter} userdb-configuration-list userdbs"
  31029. msgstr ""
  31030. #. type: deftypevr
  31031. #: guix-git/doc/guix.texi:20533
  31032. msgid "List of userdb configurations, each one created by the @code{userdb-configuration} constructor."
  31033. msgstr ""
  31034. #. type: deftypevr
  31035. #: guix-git/doc/guix.texi:20535
  31036. msgid "Available @code{userdb-configuration} fields are:"
  31037. msgstr ""
  31038. #. type: deftypevr
  31039. #: guix-git/doc/guix.texi:20536
  31040. #, no-wrap
  31041. msgid "{@code{userdb-configuration} parameter} string driver"
  31042. msgstr ""
  31043. #. type: deftypevr
  31044. #: guix-git/doc/guix.texi:20540
  31045. msgid "The driver that the userdb should use. Valid values include @samp{passwd} and @samp{static}. Defaults to @samp{\"passwd\"}."
  31046. msgstr ""
  31047. #. type: deftypevr
  31048. #: guix-git/doc/guix.texi:20542
  31049. #, no-wrap
  31050. msgid "{@code{userdb-configuration} parameter} space-separated-string-list args"
  31051. msgstr ""
  31052. #. type: deftypevr
  31053. #: guix-git/doc/guix.texi:20545
  31054. msgid "Space separated list of arguments to the userdb driver. Defaults to @samp{\"\"}."
  31055. msgstr ""
  31056. #. type: deftypevr
  31057. #: guix-git/doc/guix.texi:20547
  31058. #, no-wrap
  31059. msgid "{@code{userdb-configuration} parameter} free-form-args override-fields"
  31060. msgstr ""
  31061. #. type: deftypevr
  31062. #: guix-git/doc/guix.texi:20550
  31063. msgid "Override fields from passwd. Defaults to @samp{()}."
  31064. msgstr ""
  31065. #. type: deftypevr
  31066. #: guix-git/doc/guix.texi:20554
  31067. #, no-wrap
  31068. msgid "{@code{dovecot-configuration} parameter} plugin-configuration plugin-configuration"
  31069. msgstr ""
  31070. #. type: deftypevr
  31071. #: guix-git/doc/guix.texi:20557
  31072. msgid "Plug-in configuration, created by the @code{plugin-configuration} constructor."
  31073. msgstr ""
  31074. #. type: deftypevr
  31075. #: guix-git/doc/guix.texi:20559
  31076. #, no-wrap
  31077. msgid "{@code{dovecot-configuration} parameter} list-of-namespace-configuration namespaces"
  31078. msgstr ""
  31079. #. type: deftypevr
  31080. #: guix-git/doc/guix.texi:20562
  31081. msgid "List of namespaces. Each item in the list is created by the @code{namespace-configuration} constructor."
  31082. msgstr ""
  31083. #. type: deftypevr
  31084. #: guix-git/doc/guix.texi:20564
  31085. msgid "Available @code{namespace-configuration} fields are:"
  31086. msgstr ""
  31087. #. type: deftypevr
  31088. #: guix-git/doc/guix.texi:20565
  31089. #, no-wrap
  31090. msgid "{@code{namespace-configuration} parameter} string name"
  31091. msgstr ""
  31092. #. type: deftypevr
  31093. #: guix-git/doc/guix.texi:20567
  31094. msgid "Name for this namespace."
  31095. msgstr ""
  31096. #. type: deftypevr
  31097. #: guix-git/doc/guix.texi:20569
  31098. #, no-wrap
  31099. msgid "{@code{namespace-configuration} parameter} string type"
  31100. msgstr ""
  31101. #. type: deftypevr
  31102. #: guix-git/doc/guix.texi:20572
  31103. msgid "Namespace type: @samp{private}, @samp{shared} or @samp{public}. Defaults to @samp{\"private\"}."
  31104. msgstr ""
  31105. #. type: deftypevr
  31106. #: guix-git/doc/guix.texi:20574
  31107. #, no-wrap
  31108. msgid "{@code{namespace-configuration} parameter} string separator"
  31109. msgstr ""
  31110. #. type: deftypevr
  31111. #: guix-git/doc/guix.texi:20580
  31112. msgid "Hierarchy separator to use. You should use the same separator for all namespaces or some clients get confused. @samp{/} is usually a good one. The default however depends on the underlying mail storage format. Defaults to @samp{\"\"}."
  31113. msgstr ""
  31114. #. type: deftypevr
  31115. #: guix-git/doc/guix.texi:20582
  31116. #, no-wrap
  31117. msgid "{@code{namespace-configuration} parameter} string prefix"
  31118. msgstr ""
  31119. #. type: deftypevr
  31120. #: guix-git/doc/guix.texi:20586
  31121. msgid "Prefix required to access this namespace. This needs to be different for all namespaces. For example @samp{Public/}. Defaults to @samp{\"\"}."
  31122. msgstr ""
  31123. #. type: deftypevr
  31124. #: guix-git/doc/guix.texi:20588
  31125. #, no-wrap
  31126. msgid "{@code{namespace-configuration} parameter} string location"
  31127. msgstr ""
  31128. #. type: deftypevr
  31129. #: guix-git/doc/guix.texi:20592
  31130. msgid "Physical location of the mailbox. This is in the same format as mail_location, which is also the default for it. Defaults to @samp{\"\"}."
  31131. msgstr ""
  31132. #. type: deftypevr
  31133. #: guix-git/doc/guix.texi:20594
  31134. #, no-wrap
  31135. msgid "{@code{namespace-configuration} parameter} boolean inbox?"
  31136. msgstr ""
  31137. #. type: deftypevr
  31138. #: guix-git/doc/guix.texi:20598
  31139. msgid "There can be only one INBOX, and this setting defines which namespace has it. Defaults to @samp{#f}."
  31140. msgstr ""
  31141. #. type: deftypevr
  31142. #: guix-git/doc/guix.texi:20600
  31143. #, no-wrap
  31144. msgid "{@code{namespace-configuration} parameter} boolean hidden?"
  31145. msgstr ""
  31146. #. type: deftypevr
  31147. #: guix-git/doc/guix.texi:20608
  31148. msgid "If namespace is hidden, it's not advertised to clients via NAMESPACE extension. You'll most likely also want to set @samp{list? #f}. This is mostly useful when converting from another server with different namespaces which you want to deprecate but still keep working. For example you can create hidden namespaces with prefixes @samp{~/mail/}, @samp{~%u/mail/} and @samp{mail/}. Defaults to @samp{#f}."
  31149. msgstr ""
  31150. #. type: deftypevr
  31151. #: guix-git/doc/guix.texi:20610
  31152. #, no-wrap
  31153. msgid "{@code{namespace-configuration} parameter} boolean list?"
  31154. msgstr ""
  31155. #. type: deftypevr
  31156. #: guix-git/doc/guix.texi:20616
  31157. msgid "Show the mailboxes under this namespace with the LIST command. This makes the namespace visible for clients that do not support the NAMESPACE extension. The special @code{children} value lists child mailboxes, but hides the namespace prefix. Defaults to @samp{#t}."
  31158. msgstr ""
  31159. #. type: deftypevr
  31160. #: guix-git/doc/guix.texi:20618
  31161. #, no-wrap
  31162. msgid "{@code{namespace-configuration} parameter} boolean subscriptions?"
  31163. msgstr ""
  31164. #. type: deftypevr
  31165. #: guix-git/doc/guix.texi:20623
  31166. msgid "Namespace handles its own subscriptions. If set to @code{#f}, the parent namespace handles them. The empty prefix should always have this as @code{#t}). Defaults to @samp{#t}."
  31167. msgstr ""
  31168. #. type: deftypevr
  31169. #: guix-git/doc/guix.texi:20625
  31170. #, no-wrap
  31171. msgid "{@code{namespace-configuration} parameter} mailbox-configuration-list mailboxes"
  31172. msgstr ""
  31173. #. type: deftypevr
  31174. #: guix-git/doc/guix.texi:20628
  31175. msgid "List of predefined mailboxes in this namespace. Defaults to @samp{()}."
  31176. msgstr ""
  31177. #. type: deftypevr
  31178. #: guix-git/doc/guix.texi:20630
  31179. msgid "Available @code{mailbox-configuration} fields are:"
  31180. msgstr ""
  31181. #. type: deftypevr
  31182. #: guix-git/doc/guix.texi:20631
  31183. #, no-wrap
  31184. msgid "{@code{mailbox-configuration} parameter} string name"
  31185. msgstr ""
  31186. #. type: deftypevr
  31187. #: guix-git/doc/guix.texi:20633
  31188. msgid "Name for this mailbox."
  31189. msgstr ""
  31190. #. type: deftypevr
  31191. #: guix-git/doc/guix.texi:20635
  31192. #, no-wrap
  31193. msgid "{@code{mailbox-configuration} parameter} string auto"
  31194. msgstr ""
  31195. #. type: deftypevr
  31196. #: guix-git/doc/guix.texi:20639
  31197. msgid "@samp{create} will automatically create this mailbox. @samp{subscribe} will both create and subscribe to the mailbox. Defaults to @samp{\"no\"}."
  31198. msgstr ""
  31199. #. type: deftypevr
  31200. #: guix-git/doc/guix.texi:20641
  31201. #, no-wrap
  31202. msgid "{@code{mailbox-configuration} parameter} space-separated-string-list special-use"
  31203. msgstr ""
  31204. #. type: deftypevr
  31205. #: guix-git/doc/guix.texi:20646
  31206. msgid "List of IMAP @code{SPECIAL-USE} attributes as specified by RFC 6154. Valid values are @code{\\All}, @code{\\Archive}, @code{\\Drafts}, @code{\\Flagged}, @code{\\Junk}, @code{\\Sent}, and @code{\\Trash}. Defaults to @samp{()}."
  31207. msgstr ""
  31208. #. type: deftypevr
  31209. #: guix-git/doc/guix.texi:20652
  31210. #, no-wrap
  31211. msgid "{@code{dovecot-configuration} parameter} file-name base-dir"
  31212. msgstr ""
  31213. #. type: deftypevr
  31214. #: guix-git/doc/guix.texi:20655
  31215. msgid "Base directory where to store runtime data. Defaults to @samp{\"/var/run/dovecot/\"}."
  31216. msgstr ""
  31217. #. type: deftypevr
  31218. #: guix-git/doc/guix.texi:20657
  31219. #, no-wrap
  31220. msgid "{@code{dovecot-configuration} parameter} string login-greeting"
  31221. msgstr ""
  31222. #. type: deftypevr
  31223. #: guix-git/doc/guix.texi:20660
  31224. msgid "Greeting message for clients. Defaults to @samp{\"Dovecot ready.\"}."
  31225. msgstr ""
  31226. #. type: deftypevr
  31227. #: guix-git/doc/guix.texi:20662
  31228. #, no-wrap
  31229. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-trusted-networks"
  31230. msgstr ""
  31231. #. type: deftypevr
  31232. #: guix-git/doc/guix.texi:20669
  31233. msgid "List of trusted network ranges. Connections from these IPs are allowed to override their IP addresses and ports (for logging and for authentication checks). @samp{disable-plaintext-auth} is also ignored for these networks. Typically you would specify your IMAP proxy servers here. Defaults to @samp{()}."
  31234. msgstr ""
  31235. #. type: deftypevr
  31236. #: guix-git/doc/guix.texi:20671
  31237. #, no-wrap
  31238. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-access-sockets"
  31239. msgstr ""
  31240. #. type: deftypevr
  31241. #: guix-git/doc/guix.texi:20674
  31242. msgid "List of login access check sockets (e.g.@: tcpwrap). Defaults to @samp{()}."
  31243. msgstr ""
  31244. #. type: deftypevr
  31245. #: guix-git/doc/guix.texi:20676
  31246. #, no-wrap
  31247. msgid "{@code{dovecot-configuration} parameter} boolean verbose-proctitle?"
  31248. msgstr ""
  31249. #. type: deftypevr
  31250. #: guix-git/doc/guix.texi:20682
  31251. msgid "Show more verbose process titles (in ps). Currently shows user name and IP address. Useful for seeing who is actually using the IMAP processes (e.g.@: shared mailboxes or if the same uid is used for multiple accounts). Defaults to @samp{#f}."
  31252. msgstr ""
  31253. #. type: deftypevr
  31254. #: guix-git/doc/guix.texi:20684
  31255. #, no-wrap
  31256. msgid "{@code{dovecot-configuration} parameter} boolean shutdown-clients?"
  31257. msgstr ""
  31258. #. type: deftypevr
  31259. #: guix-git/doc/guix.texi:20690
  31260. msgid "Should all processes be killed when Dovecot master process shuts down. Setting this to @code{#f} means that Dovecot can be upgraded without forcing existing client connections to close (although that could also be a problem if the upgrade is e.g.@: due to a security fix). Defaults to @samp{#t}."
  31261. msgstr ""
  31262. #. type: deftypevr
  31263. #: guix-git/doc/guix.texi:20692
  31264. #, no-wrap
  31265. msgid "{@code{dovecot-configuration} parameter} non-negative-integer doveadm-worker-count"
  31266. msgstr ""
  31267. #. type: deftypevr
  31268. #: guix-git/doc/guix.texi:20696
  31269. msgid "If non-zero, run mail commands via this many connections to doveadm server, instead of running them directly in the same process. Defaults to @samp{0}."
  31270. msgstr ""
  31271. #. type: deftypevr
  31272. #: guix-git/doc/guix.texi:20698
  31273. #, no-wrap
  31274. msgid "{@code{dovecot-configuration} parameter} string doveadm-socket-path"
  31275. msgstr ""
  31276. #. type: deftypevr
  31277. #: guix-git/doc/guix.texi:20701
  31278. msgid "UNIX socket or host:port used for connecting to doveadm server. Defaults to @samp{\"doveadm-server\"}."
  31279. msgstr ""
  31280. #. type: deftypevr
  31281. #: guix-git/doc/guix.texi:20703
  31282. #, no-wrap
  31283. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list import-environment"
  31284. msgstr ""
  31285. #. type: deftypevr
  31286. #: guix-git/doc/guix.texi:20707
  31287. msgid "List of environment variables that are preserved on Dovecot startup and passed down to all of its child processes. You can also give key=value pairs to always set specific settings."
  31288. msgstr ""
  31289. #. type: deftypevr
  31290. #: guix-git/doc/guix.texi:20709
  31291. #, no-wrap
  31292. msgid "{@code{dovecot-configuration} parameter} boolean disable-plaintext-auth?"
  31293. msgstr ""
  31294. #. type: deftypevr
  31295. #: guix-git/doc/guix.texi:20716
  31296. msgid "Disable LOGIN command and all other plaintext authentications unless SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP matches the local IP (i.e.@: you're connecting from the same computer), the connection is considered secure and plaintext authentication is allowed. See also ssl=required setting. Defaults to @samp{#t}."
  31297. msgstr ""
  31298. #. type: deftypevr
  31299. #: guix-git/doc/guix.texi:20718
  31300. #, no-wrap
  31301. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-cache-size"
  31302. msgstr ""
  31303. #. type: deftypevr
  31304. #: guix-git/doc/guix.texi:20723
  31305. msgid "Authentication cache size (e.g.@: @samp{#e10e6}). 0 means it's disabled. Note that bsdauth, PAM and vpopmail require @samp{cache-key} to be set for caching to be used. Defaults to @samp{0}."
  31306. msgstr ""
  31307. #. type: deftypevr
  31308. #: guix-git/doc/guix.texi:20725
  31309. #, no-wrap
  31310. msgid "{@code{dovecot-configuration} parameter} string auth-cache-ttl"
  31311. msgstr ""
  31312. #. type: deftypevr
  31313. #: guix-git/doc/guix.texi:20733
  31314. msgid "Time to live for cached data. After TTL expires the cached record is no longer used, *except* if the main database lookup returns internal failure. We also try to handle password changes automatically: If user's previous authentication was successful, but this one wasn't, the cache isn't used. For now this works only with plaintext authentication. Defaults to @samp{\"1 hour\"}."
  31315. msgstr ""
  31316. #. type: deftypevr
  31317. #: guix-git/doc/guix.texi:20735
  31318. #, no-wrap
  31319. msgid "{@code{dovecot-configuration} parameter} string auth-cache-negative-ttl"
  31320. msgstr ""
  31321. #. type: deftypevr
  31322. #: guix-git/doc/guix.texi:20739
  31323. msgid "TTL for negative hits (user not found, password mismatch). 0 disables caching them completely. Defaults to @samp{\"1 hour\"}."
  31324. msgstr ""
  31325. #. type: deftypevr
  31326. #: guix-git/doc/guix.texi:20741
  31327. #, no-wrap
  31328. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-realms"
  31329. msgstr ""
  31330. #. type: deftypevr
  31331. #: guix-git/doc/guix.texi:20747
  31332. msgid "List of realms for SASL authentication mechanisms that need them. You can leave it empty if you don't want to support multiple realms. Many clients simply use the first one listed here, so keep the default realm first. Defaults to @samp{()}."
  31333. msgstr ""
  31334. #. type: deftypevr
  31335. #: guix-git/doc/guix.texi:20749
  31336. #, no-wrap
  31337. msgid "{@code{dovecot-configuration} parameter} string auth-default-realm"
  31338. msgstr ""
  31339. #. type: deftypevr
  31340. #: guix-git/doc/guix.texi:20754
  31341. msgid "Default realm/domain to use if none was specified. This is used for both SASL realms and appending @@domain to username in plaintext logins. Defaults to @samp{\"\"}."
  31342. msgstr ""
  31343. #. type: deftypevr
  31344. #: guix-git/doc/guix.texi:20756
  31345. #, no-wrap
  31346. msgid "{@code{dovecot-configuration} parameter} string auth-username-chars"
  31347. msgstr ""
  31348. #. type: deftypevr
  31349. #: guix-git/doc/guix.texi:20763
  31350. msgid "List of allowed characters in username. If the user-given username contains a character not listed in here, the login automatically fails. This is just an extra check to make sure user can't exploit any potential quote escaping vulnerabilities with SQL/LDAP databases. If you want to allow all characters, set this value to empty. Defaults to @samp{\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@@\"}."
  31351. msgstr ""
  31352. #. type: deftypevr
  31353. #: guix-git/doc/guix.texi:20765
  31354. #, no-wrap
  31355. msgid "{@code{dovecot-configuration} parameter} string auth-username-translation"
  31356. msgstr ""
  31357. #. type: deftypevr
  31358. #: guix-git/doc/guix.texi:20771
  31359. msgid "Username character translations before it's looked up from databases. The value contains series of from -> to characters. For example @samp{#@@/@@} means that @samp{#} and @samp{/} characters are translated to @samp{@@}. Defaults to @samp{\"\"}."
  31360. msgstr ""
  31361. #. type: deftypevr
  31362. #: guix-git/doc/guix.texi:20773
  31363. #, no-wrap
  31364. msgid "{@code{dovecot-configuration} parameter} string auth-username-format"
  31365. msgstr ""
  31366. #. type: deftypevr
  31367. #: guix-git/doc/guix.texi:20780
  31368. msgid "Username formatting before it's looked up from databases. You can use the standard variables here, e.g.@: %Lu would lowercase the username, %n would drop away the domain if it was given, or @samp{%n-AT-%d} would change the @samp{@@} into @samp{-AT-}. This translation is done after @samp{auth-username-translation} changes. Defaults to @samp{\"%Lu\"}."
  31369. msgstr ""
  31370. #. type: deftypevr
  31371. #: guix-git/doc/guix.texi:20782
  31372. #, no-wrap
  31373. msgid "{@code{dovecot-configuration} parameter} string auth-master-user-separator"
  31374. msgstr ""
  31375. #. type: deftypevr
  31376. #: guix-git/doc/guix.texi:20790
  31377. msgid "If you want to allow master users to log in by specifying the master username within the normal username string (i.e.@: not using SASL mechanism's support for it), you can specify the separator character here. The format is then <username><separator><master username>. UW-IMAP uses @samp{*} as the separator, so that could be a good choice. Defaults to @samp{\"\"}."
  31378. msgstr ""
  31379. #. type: deftypevr
  31380. #: guix-git/doc/guix.texi:20792
  31381. #, no-wrap
  31382. msgid "{@code{dovecot-configuration} parameter} string auth-anonymous-username"
  31383. msgstr ""
  31384. #. type: deftypevr
  31385. #: guix-git/doc/guix.texi:20796
  31386. msgid "Username to use for users logging in with ANONYMOUS SASL mechanism. Defaults to @samp{\"anonymous\"}."
  31387. msgstr ""
  31388. #. type: deftypevr
  31389. #: guix-git/doc/guix.texi:20798
  31390. #, no-wrap
  31391. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-worker-max-count"
  31392. msgstr ""
  31393. #. type: deftypevr
  31394. #: guix-git/doc/guix.texi:20803
  31395. msgid "Maximum number of dovecot-auth worker processes. They're used to execute blocking passdb and userdb queries (e.g.@: MySQL and PAM). They're automatically created and destroyed as needed. Defaults to @samp{30}."
  31396. msgstr ""
  31397. #. type: deftypevr
  31398. #: guix-git/doc/guix.texi:20805
  31399. #, no-wrap
  31400. msgid "{@code{dovecot-configuration} parameter} string auth-gssapi-hostname"
  31401. msgstr ""
  31402. #. type: deftypevr
  31403. #: guix-git/doc/guix.texi:20810
  31404. msgid "Host name to use in GSSAPI principal names. The default is to use the name returned by gethostname(). Use @samp{$ALL} (with quotes) to allow all keytab entries. Defaults to @samp{\"\"}."
  31405. msgstr ""
  31406. #. type: deftypevr
  31407. #: guix-git/doc/guix.texi:20812
  31408. #, no-wrap
  31409. msgid "{@code{dovecot-configuration} parameter} string auth-krb5-keytab"
  31410. msgstr ""
  31411. #. type: deftypevr
  31412. #: guix-git/doc/guix.texi:20818
  31413. msgid "Kerberos keytab to use for the GSSAPI mechanism. Will use the system default (usually @file{/etc/krb5.keytab}) if not specified. You may need to change the auth service to run as root to be able to read this file. Defaults to @samp{\"\"}."
  31414. msgstr ""
  31415. #. type: deftypevr
  31416. #: guix-git/doc/guix.texi:20820
  31417. #, no-wrap
  31418. msgid "{@code{dovecot-configuration} parameter} boolean auth-use-winbind?"
  31419. msgstr ""
  31420. #. type: deftypevr
  31421. #: guix-git/doc/guix.texi:20825
  31422. msgid "Do NTLM and GSS-SPNEGO authentication using Samba's winbind daemon and @samp{ntlm-auth} helper. <doc/wiki/Authentication/Mechanisms/Winbind.txt>. Defaults to @samp{#f}."
  31423. msgstr ""
  31424. #. type: deftypevr
  31425. #: guix-git/doc/guix.texi:20827
  31426. #, no-wrap
  31427. msgid "{@code{dovecot-configuration} parameter} file-name auth-winbind-helper-path"
  31428. msgstr ""
  31429. #. type: deftypevr
  31430. #: guix-git/doc/guix.texi:20830
  31431. msgid "Path for Samba's @samp{ntlm-auth} helper binary. Defaults to @samp{\"/usr/bin/ntlm_auth\"}."
  31432. msgstr ""
  31433. #. type: deftypevr
  31434. #: guix-git/doc/guix.texi:20832
  31435. #, no-wrap
  31436. msgid "{@code{dovecot-configuration} parameter} string auth-failure-delay"
  31437. msgstr ""
  31438. #. type: deftypevr
  31439. #: guix-git/doc/guix.texi:20835
  31440. msgid "Time to delay before replying to failed authentications. Defaults to @samp{\"2 secs\"}."
  31441. msgstr ""
  31442. #. type: deftypevr
  31443. #: guix-git/doc/guix.texi:20837
  31444. #, no-wrap
  31445. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-require-client-cert?"
  31446. msgstr ""
  31447. #. type: deftypevr
  31448. #: guix-git/doc/guix.texi:20841
  31449. msgid "Require a valid SSL client certificate or the authentication fails. Defaults to @samp{#f}."
  31450. msgstr ""
  31451. #. type: deftypevr
  31452. #: guix-git/doc/guix.texi:20843
  31453. #, no-wrap
  31454. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-username-from-cert?"
  31455. msgstr ""
  31456. #. type: deftypevr
  31457. #: guix-git/doc/guix.texi:20848
  31458. msgid "Take the username from client's SSL certificate, using @code{X509_NAME_get_text_by_NID()} which returns the subject's DN's CommonName. Defaults to @samp{#f}."
  31459. msgstr ""
  31460. #. type: deftypevr
  31461. #: guix-git/doc/guix.texi:20850
  31462. #, no-wrap
  31463. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-mechanisms"
  31464. msgstr ""
  31465. #. type: deftypevr
  31466. #: guix-git/doc/guix.texi:20856
  31467. msgid "List of wanted authentication mechanisms. Supported mechanisms are: @samp{plain}, @samp{login}, @samp{digest-md5}, @samp{cram-md5}, @samp{ntlm}, @samp{rpa}, @samp{apop}, @samp{anonymous}, @samp{gssapi}, @samp{otp}, @samp{skey}, and @samp{gss-spnego}. NOTE: See also @samp{disable-plaintext-auth} setting."
  31468. msgstr ""
  31469. #. type: deftypevr
  31470. #: guix-git/doc/guix.texi:20858
  31471. #, no-wrap
  31472. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-servers"
  31473. msgstr ""
  31474. #. type: deftypevr
  31475. #: guix-git/doc/guix.texi:20863
  31476. msgid "List of IPs or hostnames to all director servers, including ourself. Ports can be specified as ip:port. The default port is the same as what director service's @samp{inet-listener} is using. Defaults to @samp{()}."
  31477. msgstr ""
  31478. #. type: deftypevr
  31479. #: guix-git/doc/guix.texi:20865
  31480. #, no-wrap
  31481. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-mail-servers"
  31482. msgstr ""
  31483. #. type: deftypevr
  31484. #: guix-git/doc/guix.texi:20869
  31485. msgid "List of IPs or hostnames to all backend mail servers. Ranges are allowed too, like 10.0.0.10-10.0.0.30. Defaults to @samp{()}."
  31486. msgstr ""
  31487. #. type: deftypevr
  31488. #: guix-git/doc/guix.texi:20871
  31489. #, no-wrap
  31490. msgid "{@code{dovecot-configuration} parameter} string director-user-expire"
  31491. msgstr ""
  31492. #. type: deftypevr
  31493. #: guix-git/doc/guix.texi:20875
  31494. msgid "How long to redirect users to a specific server after it no longer has any connections. Defaults to @samp{\"15 min\"}."
  31495. msgstr ""
  31496. #. type: deftypevr
  31497. #: guix-git/doc/guix.texi:20877
  31498. #, no-wrap
  31499. msgid "{@code{dovecot-configuration} parameter} string director-username-hash"
  31500. msgstr ""
  31501. #. type: deftypevr
  31502. #: guix-git/doc/guix.texi:20882
  31503. msgid "How the username is translated before being hashed. Useful values include %Ln if user can log in with or without @@domain, %Ld if mailboxes are shared within domain. Defaults to @samp{\"%Lu\"}."
  31504. msgstr ""
  31505. #. type: deftypevr
  31506. #: guix-git/doc/guix.texi:20884
  31507. #, no-wrap
  31508. msgid "{@code{dovecot-configuration} parameter} string log-path"
  31509. msgstr ""
  31510. #. type: deftypevr
  31511. #: guix-git/doc/guix.texi:20888
  31512. msgid "Log file to use for error messages. @samp{syslog} logs to syslog, @samp{/dev/stderr} logs to stderr. Defaults to @samp{\"syslog\"}."
  31513. msgstr ""
  31514. #. type: deftypevr
  31515. #: guix-git/doc/guix.texi:20890
  31516. #, no-wrap
  31517. msgid "{@code{dovecot-configuration} parameter} string info-log-path"
  31518. msgstr ""
  31519. #. type: deftypevr
  31520. #: guix-git/doc/guix.texi:20894
  31521. msgid "Log file to use for informational messages. Defaults to @samp{log-path}. Defaults to @samp{\"\"}."
  31522. msgstr ""
  31523. #. type: deftypevr
  31524. #: guix-git/doc/guix.texi:20896
  31525. #, no-wrap
  31526. msgid "{@code{dovecot-configuration} parameter} string debug-log-path"
  31527. msgstr ""
  31528. #. type: deftypevr
  31529. #: guix-git/doc/guix.texi:20900
  31530. msgid "Log file to use for debug messages. Defaults to @samp{info-log-path}. Defaults to @samp{\"\"}."
  31531. msgstr ""
  31532. #. type: deftypevr
  31533. #: guix-git/doc/guix.texi:20902
  31534. #, no-wrap
  31535. msgid "{@code{dovecot-configuration} parameter} string syslog-facility"
  31536. msgstr ""
  31537. #. type: deftypevr
  31538. #: guix-git/doc/guix.texi:20907
  31539. msgid "Syslog facility to use if you're logging to syslog. Usually if you don't want to use @samp{mail}, you'll use local0..local7. Also other standard facilities are supported. Defaults to @samp{\"mail\"}."
  31540. msgstr ""
  31541. #. type: deftypevr
  31542. #: guix-git/doc/guix.texi:20909
  31543. #, no-wrap
  31544. msgid "{@code{dovecot-configuration} parameter} boolean auth-verbose?"
  31545. msgstr ""
  31546. #. type: deftypevr
  31547. #: guix-git/doc/guix.texi:20913
  31548. msgid "Log unsuccessful authentication attempts and the reasons why they failed. Defaults to @samp{#f}."
  31549. msgstr ""
  31550. #. type: deftypevr
  31551. #: guix-git/doc/guix.texi:20915
  31552. #, no-wrap
  31553. msgid "{@code{dovecot-configuration} parameter} string auth-verbose-passwords"
  31554. msgstr ""
  31555. #. type: deftypevr
  31556. #: guix-git/doc/guix.texi:20922
  31557. msgid "In case of password mismatches, log the attempted password. Valid values are no, plain and sha1. sha1 can be useful for detecting brute force password attempts vs. user simply trying the same password over and over again. You can also truncate the value to n chars by appending \":n\" (e.g.@: sha1:6). Defaults to @samp{\"no\"}."
  31558. msgstr ""
  31559. #. type: deftypevr
  31560. #: guix-git/doc/guix.texi:20924
  31561. #, no-wrap
  31562. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug?"
  31563. msgstr ""
  31564. #. type: deftypevr
  31565. #: guix-git/doc/guix.texi:20928
  31566. msgid "Even more verbose logging for debugging purposes. Shows for example SQL queries. Defaults to @samp{#f}."
  31567. msgstr ""
  31568. #. type: deftypevr
  31569. #: guix-git/doc/guix.texi:20930
  31570. #, no-wrap
  31571. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug-passwords?"
  31572. msgstr ""
  31573. #. type: deftypevr
  31574. #: guix-git/doc/guix.texi:20935
  31575. msgid "In case of password mismatches, log the passwords and used scheme so the problem can be debugged. Enabling this also enables @samp{auth-debug}. Defaults to @samp{#f}."
  31576. msgstr ""
  31577. #. type: deftypevr
  31578. #: guix-git/doc/guix.texi:20937
  31579. #, no-wrap
  31580. msgid "{@code{dovecot-configuration} parameter} boolean mail-debug?"
  31581. msgstr ""
  31582. #. type: deftypevr
  31583. #: guix-git/doc/guix.texi:20941
  31584. msgid "Enable mail process debugging. This can help you figure out why Dovecot isn't finding your mails. Defaults to @samp{#f}."
  31585. msgstr ""
  31586. #. type: deftypevr
  31587. #: guix-git/doc/guix.texi:20943
  31588. #, no-wrap
  31589. msgid "{@code{dovecot-configuration} parameter} boolean verbose-ssl?"
  31590. msgstr ""
  31591. #. type: deftypevr
  31592. #: guix-git/doc/guix.texi:20946
  31593. msgid "Show protocol level SSL errors. Defaults to @samp{#f}."
  31594. msgstr ""
  31595. #. type: deftypevr
  31596. #: guix-git/doc/guix.texi:20948
  31597. #, no-wrap
  31598. msgid "{@code{dovecot-configuration} parameter} string log-timestamp"
  31599. msgstr ""
  31600. #. type: deftypevr
  31601. #: guix-git/doc/guix.texi:20952
  31602. msgid "Prefix for each line written to log file. % codes are in strftime(3) format. Defaults to @samp{\"\\\"%b %d %H:%M:%S \\\"\"}."
  31603. msgstr ""
  31604. #. type: deftypevr
  31605. #: guix-git/doc/guix.texi:20954
  31606. #, no-wrap
  31607. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-log-format-elements"
  31608. msgstr ""
  31609. #. type: deftypevr
  31610. #: guix-git/doc/guix.texi:20958
  31611. msgid "List of elements we want to log. The elements which have a non-empty variable value are joined together to form a comma-separated string."
  31612. msgstr ""
  31613. #. type: deftypevr
  31614. #: guix-git/doc/guix.texi:20960
  31615. #, no-wrap
  31616. msgid "{@code{dovecot-configuration} parameter} string login-log-format"
  31617. msgstr ""
  31618. #. type: deftypevr
  31619. #: guix-git/doc/guix.texi:20964
  31620. msgid "Login log format. %s contains @samp{login-log-format-elements} string, %$ contains the data we want to log. Defaults to @samp{\"%$: %s\"}."
  31621. msgstr ""
  31622. #. type: deftypevr
  31623. #: guix-git/doc/guix.texi:20966
  31624. #, no-wrap
  31625. msgid "{@code{dovecot-configuration} parameter} string mail-log-prefix"
  31626. msgstr ""
  31627. #. type: deftypevr
  31628. #: guix-git/doc/guix.texi:20970
  31629. msgid "Log prefix for mail processes. See doc/wiki/Variables.txt for list of possible variables you can use. Defaults to @samp{\"\\\"%s(%u)<%@{pid@}><%@{session@}>: \\\"\"}."
  31630. msgstr ""
  31631. #. type: deftypevr
  31632. #: guix-git/doc/guix.texi:20972
  31633. #, no-wrap
  31634. msgid "{@code{dovecot-configuration} parameter} string deliver-log-format"
  31635. msgstr ""
  31636. #. type: deftypevr
  31637. #: guix-git/doc/guix.texi:20974
  31638. msgid "Format to use for logging mail deliveries. You can use variables:"
  31639. msgstr ""
  31640. #. type: item
  31641. #: guix-git/doc/guix.texi:20975
  31642. #, no-wrap
  31643. msgid "%$"
  31644. msgstr ""
  31645. #. type: table
  31646. #: guix-git/doc/guix.texi:20977
  31647. msgid "Delivery status message (e.g.@: @samp{saved to INBOX})"
  31648. msgstr ""
  31649. #. type: item
  31650. #: guix-git/doc/guix.texi:20977
  31651. #, no-wrap
  31652. msgid "%m"
  31653. msgstr ""
  31654. #. type: table
  31655. #: guix-git/doc/guix.texi:20979
  31656. msgid "Message-ID"
  31657. msgstr ""
  31658. #. type: item
  31659. #: guix-git/doc/guix.texi:20979 guix-git/doc/guix.texi:21522
  31660. #, no-wrap
  31661. msgid "%s"
  31662. msgstr ""
  31663. #. type: table
  31664. #: guix-git/doc/guix.texi:20981
  31665. msgid "Subject"
  31666. msgstr ""
  31667. #. type: item
  31668. #: guix-git/doc/guix.texi:20981
  31669. #, no-wrap
  31670. msgid "%f"
  31671. msgstr ""
  31672. #. type: table
  31673. #: guix-git/doc/guix.texi:20983
  31674. msgid "From address"
  31675. msgstr ""
  31676. #. type: table
  31677. #: guix-git/doc/guix.texi:20985
  31678. msgid "Physical size"
  31679. msgstr ""
  31680. #. type: item
  31681. #: guix-git/doc/guix.texi:20985
  31682. #, no-wrap
  31683. msgid "%w"
  31684. msgstr ""
  31685. #. type: table
  31686. #: guix-git/doc/guix.texi:20987
  31687. msgid "Virtual size."
  31688. msgstr ""
  31689. #. type: deftypevr
  31690. #: guix-git/doc/guix.texi:20989
  31691. msgid "Defaults to @samp{\"msgid=%m: %$\"}."
  31692. msgstr ""
  31693. #. type: deftypevr
  31694. #: guix-git/doc/guix.texi:20991
  31695. #, no-wrap
  31696. msgid "{@code{dovecot-configuration} parameter} string mail-location"
  31697. msgstr ""
  31698. #. type: deftypevr
  31699. #: guix-git/doc/guix.texi:20996
  31700. msgid "Location for users' mailboxes. The default is empty, which means that Dovecot tries to find the mailboxes automatically. This won't work if the user doesn't yet have any mail, so you should explicitly tell Dovecot the full location."
  31701. msgstr ""
  31702. #. type: deftypevr
  31703. #: guix-git/doc/guix.texi:21002
  31704. msgid "If you're using mbox, giving a path to the INBOX file (e.g.@: @file{/var/mail/%u}) isn't enough. You'll also need to tell Dovecot where the other mailboxes are kept. This is called the @emph{root mail directory}, and it must be the first path given in the @samp{mail-location} setting."
  31705. msgstr ""
  31706. #. type: deftypevr
  31707. #: guix-git/doc/guix.texi:21004
  31708. msgid "There are a few special variables you can use, e.g.:"
  31709. msgstr ""
  31710. #. type: table
  31711. #: guix-git/doc/guix.texi:21008
  31712. msgid "username"
  31713. msgstr ""
  31714. #. type: item
  31715. #: guix-git/doc/guix.texi:21008 guix-git/doc/guix.texi:21518
  31716. #, no-wrap
  31717. msgid "%n"
  31718. msgstr ""
  31719. #. type: table
  31720. #: guix-git/doc/guix.texi:21010
  31721. msgid "user part in user@@domain, same as %u if there's no domain"
  31722. msgstr ""
  31723. #. type: item
  31724. #: guix-git/doc/guix.texi:21010
  31725. #, no-wrap
  31726. msgid "%d"
  31727. msgstr ""
  31728. #. type: table
  31729. #: guix-git/doc/guix.texi:21012
  31730. msgid "domain part in user@@domain, empty if there's no domain"
  31731. msgstr ""
  31732. #. type: item
  31733. #: guix-git/doc/guix.texi:21012
  31734. #, no-wrap
  31735. msgid "%h"
  31736. msgstr ""
  31737. #. type: table
  31738. #: guix-git/doc/guix.texi:21014
  31739. msgid "home director"
  31740. msgstr ""
  31741. #. type: deftypevr
  31742. #: guix-git/doc/guix.texi:21017
  31743. msgid "See doc/wiki/Variables.txt for full list. Some examples:"
  31744. msgstr ""
  31745. #. type: item
  31746. #: guix-git/doc/guix.texi:21018
  31747. #, no-wrap
  31748. msgid "maildir:~/Maildir"
  31749. msgstr ""
  31750. #. type: item
  31751. #: guix-git/doc/guix.texi:21019
  31752. #, no-wrap
  31753. msgid "mbox:~/mail:INBOX=/var/mail/%u"
  31754. msgstr ""
  31755. #. type: item
  31756. #: guix-git/doc/guix.texi:21020
  31757. #, no-wrap
  31758. msgid "mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%"
  31759. msgstr ""
  31760. #. type: deftypevr
  31761. #: guix-git/doc/guix.texi:21025
  31762. #, no-wrap
  31763. msgid "{@code{dovecot-configuration} parameter} string mail-uid"
  31764. msgstr ""
  31765. #. type: deftypevr
  31766. #: guix-git/doc/guix.texi:21030
  31767. msgid "System user and group used to access mails. If you use multiple, userdb can override these by returning uid or gid fields. You can use either numbers or names. <doc/wiki/UserIds.txt>. Defaults to @samp{\"\"}."
  31768. msgstr ""
  31769. #. type: deftypevr
  31770. #: guix-git/doc/guix.texi:21032
  31771. #, no-wrap
  31772. msgid "{@code{dovecot-configuration} parameter} string mail-gid"
  31773. msgstr ""
  31774. #. type: deftypevr
  31775. #: guix-git/doc/guix.texi:21037
  31776. #, no-wrap
  31777. msgid "{@code{dovecot-configuration} parameter} string mail-privileged-group"
  31778. msgstr ""
  31779. #. type: deftypevr
  31780. #: guix-git/doc/guix.texi:21043
  31781. msgid "Group to enable temporarily for privileged operations. Currently this is used only with INBOX when either its initial creation or dotlocking fails. Typically this is set to @samp{\"mail\"} to give access to @file{/var/mail}. Defaults to @samp{\"\"}."
  31782. msgstr ""
  31783. #. type: deftypevr
  31784. #: guix-git/doc/guix.texi:21045
  31785. #, no-wrap
  31786. msgid "{@code{dovecot-configuration} parameter} string mail-access-groups"
  31787. msgstr ""
  31788. #. type: deftypevr
  31789. #: guix-git/doc/guix.texi:21053
  31790. msgid "Grant access to these supplementary groups for mail processes. Typically these are used to set up access to shared mailboxes. Note that it may be dangerous to set these if users can create symlinks (e.g.@: if @samp{mail} group is set here, @code{ln -s /var/mail ~/mail/var} could allow a user to delete others' mailboxes, or @code{ln -s /secret/shared/box ~/mail/mybox} would allow reading it). Defaults to @samp{\"\"}."
  31791. msgstr ""
  31792. #. type: deftypevr
  31793. #: guix-git/doc/guix.texi:21055
  31794. #, no-wrap
  31795. msgid "{@code{dovecot-configuration} parameter} string mail-attribute-dict"
  31796. msgstr ""
  31797. #. type: deftypevr
  31798. #: guix-git/doc/guix.texi:21058
  31799. msgid "The location of a dictionary used to store @code{IMAP METADATA} as defined by @uref{https://tools.ietf.org/html/rfc5464, RFC@tie{}5464}."
  31800. msgstr ""
  31801. #. type: deftypevr
  31802. #: guix-git/doc/guix.texi:21061
  31803. msgid "The IMAP METADATA commands are available only if the ``imap'' protocol configuration's @code{imap-metadata?} field is @samp{#t}."
  31804. msgstr ""
  31805. #. type: deftypevr
  31806. #: guix-git/doc/guix.texi:21066
  31807. #, no-wrap
  31808. msgid "{@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?"
  31809. msgstr ""
  31810. #. type: deftypevr
  31811. #: guix-git/doc/guix.texi:21072
  31812. msgid "Allow full file system access to clients. There's no access checks other than what the operating system does for the active UID/GID@. It works with both maildir and mboxes, allowing you to prefix mailboxes names with e.g.@: @file{/path/} or @file{~user/}. Defaults to @samp{#f}."
  31813. msgstr ""
  31814. #. type: deftypevr
  31815. #: guix-git/doc/guix.texi:21074
  31816. #, no-wrap
  31817. msgid "{@code{dovecot-configuration} parameter} boolean mmap-disable?"
  31818. msgstr ""
  31819. #. type: deftypevr
  31820. #: guix-git/doc/guix.texi:21078
  31821. msgid "Don't use @code{mmap()} at all. This is required if you store indexes to shared file systems (NFS or clustered file system). Defaults to @samp{#f}."
  31822. msgstr ""
  31823. #. type: deftypevr
  31824. #: guix-git/doc/guix.texi:21080
  31825. #, no-wrap
  31826. msgid "{@code{dovecot-configuration} parameter} boolean dotlock-use-excl?"
  31827. msgstr ""
  31828. #. type: deftypevr
  31829. #: guix-git/doc/guix.texi:21085
  31830. msgid "Rely on @samp{O_EXCL} to work when creating dotlock files. NFS supports @samp{O_EXCL} since version 3, so this should be safe to use nowadays by default. Defaults to @samp{#t}."
  31831. msgstr ""
  31832. #. type: deftypevr
  31833. #: guix-git/doc/guix.texi:21087
  31834. #, no-wrap
  31835. msgid "{@code{dovecot-configuration} parameter} string mail-fsync"
  31836. msgstr ""
  31837. #. type: deftypevr
  31838. #: guix-git/doc/guix.texi:21089
  31839. msgid "When to use fsync() or fdatasync() calls:"
  31840. msgstr ""
  31841. #. type: item
  31842. #: guix-git/doc/guix.texi:21090
  31843. #, no-wrap
  31844. msgid "optimized"
  31845. msgstr ""
  31846. #. type: table
  31847. #: guix-git/doc/guix.texi:21092
  31848. msgid "Whenever necessary to avoid losing important data"
  31849. msgstr ""
  31850. #. type: table
  31851. #: guix-git/doc/guix.texi:21094
  31852. msgid "Useful with e.g.@: NFS when @code{write()}s are delayed"
  31853. msgstr ""
  31854. #. type: table
  31855. #: guix-git/doc/guix.texi:21096
  31856. msgid "Never use it (best performance, but crashes can lose data)."
  31857. msgstr ""
  31858. #. type: deftypevr
  31859. #: guix-git/doc/guix.texi:21098
  31860. msgid "Defaults to @samp{\"optimized\"}."
  31861. msgstr ""
  31862. #. type: deftypevr
  31863. #: guix-git/doc/guix.texi:21100
  31864. #, no-wrap
  31865. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-storage?"
  31866. msgstr ""
  31867. #. type: deftypevr
  31868. #: guix-git/doc/guix.texi:21105
  31869. msgid "Mail storage exists in NFS@. Set this to yes to make Dovecot flush NFS caches whenever needed. If you're using only a single mail server this isn't needed. Defaults to @samp{#f}."
  31870. msgstr ""
  31871. #. type: deftypevr
  31872. #: guix-git/doc/guix.texi:21107
  31873. #, no-wrap
  31874. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-index?"
  31875. msgstr ""
  31876. #. type: deftypevr
  31877. #: guix-git/doc/guix.texi:21111
  31878. msgid "Mail index files also exist in NFS@. Setting this to yes requires @samp{mmap-disable? #t} and @samp{fsync-disable? #f}. Defaults to @samp{#f}."
  31879. msgstr ""
  31880. #. type: deftypevr
  31881. #: guix-git/doc/guix.texi:21113
  31882. #, no-wrap
  31883. msgid "{@code{dovecot-configuration} parameter} string lock-method"
  31884. msgstr ""
  31885. #. type: deftypevr
  31886. #: guix-git/doc/guix.texi:21119
  31887. msgid "Locking method for index files. Alternatives are fcntl, flock and dotlock. Dotlocking uses some tricks which may create more disk I/O than other locking methods. NFS users: flock doesn't work, remember to change @samp{mmap-disable}. Defaults to @samp{\"fcntl\"}."
  31888. msgstr ""
  31889. #. type: deftypevr
  31890. #: guix-git/doc/guix.texi:21121
  31891. #, no-wrap
  31892. msgid "{@code{dovecot-configuration} parameter} file-name mail-temp-dir"
  31893. msgstr ""
  31894. #. type: deftypevr
  31895. #: guix-git/doc/guix.texi:21125
  31896. msgid "Directory in which LDA/LMTP temporarily stores incoming mails >128 kB. Defaults to @samp{\"/tmp\"}."
  31897. msgstr ""
  31898. #. type: deftypevr
  31899. #: guix-git/doc/guix.texi:21127
  31900. #, no-wrap
  31901. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-uid"
  31902. msgstr ""
  31903. #. type: deftypevr
  31904. #: guix-git/doc/guix.texi:21133
  31905. msgid "Valid UID range for users. This is mostly to make sure that users can't log in as daemons or other system users. Note that denying root logins is hardcoded to dovecot binary and can't be done even if @samp{first-valid-uid} is set to 0. Defaults to @samp{500}."
  31906. msgstr ""
  31907. #. type: deftypevr
  31908. #: guix-git/doc/guix.texi:21135
  31909. #, no-wrap
  31910. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-uid"
  31911. msgstr ""
  31912. #. type: deftypevr
  31913. #: guix-git/doc/guix.texi:21140
  31914. #, no-wrap
  31915. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-gid"
  31916. msgstr ""
  31917. #. type: deftypevr
  31918. #: guix-git/doc/guix.texi:21145
  31919. msgid "Valid GID range for users. Users having non-valid GID as primary group ID aren't allowed to log in. If user belongs to supplementary groups with non-valid GIDs, those groups are not set. Defaults to @samp{1}."
  31920. msgstr ""
  31921. #. type: deftypevr
  31922. #: guix-git/doc/guix.texi:21147
  31923. #, no-wrap
  31924. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-gid"
  31925. msgstr ""
  31926. #. type: deftypevr
  31927. #: guix-git/doc/guix.texi:21152
  31928. #, no-wrap
  31929. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-max-keyword-length"
  31930. msgstr ""
  31931. #. type: deftypevr
  31932. #: guix-git/doc/guix.texi:21156
  31933. msgid "Maximum allowed length for mail keyword name. It's only forced when trying to create new keywords. Defaults to @samp{50}."
  31934. msgstr ""
  31935. #. type: deftypevr
  31936. #: guix-git/doc/guix.texi:21158
  31937. #, no-wrap
  31938. msgid "{@code{dovecot-configuration} parameter} colon-separated-file-name-list valid-chroot-dirs"
  31939. msgstr ""
  31940. #. type: deftypevr
  31941. #: guix-git/doc/guix.texi:21168
  31942. msgid "List of directories under which chrooting is allowed for mail processes (i.e.@: @file{/var/mail} will allow chrooting to @file{/var/mail/foo/bar} too). This setting doesn't affect @samp{login-chroot} @samp{mail-chroot} or auth chroot settings. If this setting is empty, @samp{/./} in home dirs are ignored. WARNING: Never add directories here which local users can modify, that may lead to root exploit. Usually this should be done only if you don't allow shell access for users. <doc/wiki/Chrooting.txt>. Defaults to @samp{()}."
  31943. msgstr ""
  31944. #. type: deftypevr
  31945. #: guix-git/doc/guix.texi:21170
  31946. #, no-wrap
  31947. msgid "{@code{dovecot-configuration} parameter} string mail-chroot"
  31948. msgstr ""
  31949. #. type: deftypevr
  31950. #: guix-git/doc/guix.texi:21179
  31951. msgid "Default chroot directory for mail processes. This can be overridden for specific users in user database by giving @samp{/./} in user's home directory (e.g.@: @samp{/home/./user} chroots into @file{/home}). Note that usually there is no real need to do chrooting, Dovecot doesn't allow users to access files outside their mail directory anyway. If your home directories are prefixed with the chroot directory, append @samp{/.} to @samp{mail-chroot}. <doc/wiki/Chrooting.txt>. Defaults to @samp{\"\"}."
  31952. msgstr ""
  31953. #. type: deftypevr
  31954. #: guix-git/doc/guix.texi:21181
  31955. #, no-wrap
  31956. msgid "{@code{dovecot-configuration} parameter} file-name auth-socket-path"
  31957. msgstr ""
  31958. #. type: deftypevr
  31959. #: guix-git/doc/guix.texi:21185
  31960. msgid "UNIX socket path to master authentication server to find users. This is used by imap (for shared users) and lda. Defaults to @samp{\"/var/run/dovecot/auth-userdb\"}."
  31961. msgstr ""
  31962. #. type: deftypevr
  31963. #: guix-git/doc/guix.texi:21187
  31964. #, no-wrap
  31965. msgid "{@code{dovecot-configuration} parameter} file-name mail-plugin-dir"
  31966. msgstr ""
  31967. #. type: deftypevr
  31968. #: guix-git/doc/guix.texi:21190
  31969. msgid "Directory where to look up mail plugins. Defaults to @samp{\"/usr/lib/dovecot\"}."
  31970. msgstr ""
  31971. #. type: deftypevr
  31972. #: guix-git/doc/guix.texi:21192
  31973. #, no-wrap
  31974. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mail-plugins"
  31975. msgstr ""
  31976. #. type: deftypevr
  31977. #: guix-git/doc/guix.texi:21196
  31978. msgid "List of plugins to load for all services. Plugins specific to IMAP, LDA, etc.@: are added to this list in their own .conf files. Defaults to @samp{()}."
  31979. msgstr ""
  31980. #. type: deftypevr
  31981. #: guix-git/doc/guix.texi:21198
  31982. #, no-wrap
  31983. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-cache-min-mail-count"
  31984. msgstr ""
  31985. #. type: deftypevr
  31986. #: guix-git/doc/guix.texi:21203
  31987. msgid "The minimum number of mails in a mailbox before updates are done to cache file. This allows optimizing Dovecot's behavior to do less disk writes at the cost of more disk reads. Defaults to @samp{0}."
  31988. msgstr ""
  31989. #. type: deftypevr
  31990. #: guix-git/doc/guix.texi:21205
  31991. #, no-wrap
  31992. msgid "{@code{dovecot-configuration} parameter} string mailbox-idle-check-interval"
  31993. msgstr ""
  31994. #. type: deftypevr
  31995. #: guix-git/doc/guix.texi:21212
  31996. msgid "When IDLE command is running, mailbox is checked once in a while to see if there are any new mails or other changes. This setting defines the minimum time to wait between those checks. Dovecot can also use dnotify, inotify and kqueue to find out immediately when changes occur. Defaults to @samp{\"30 secs\"}."
  31997. msgstr ""
  31998. #. type: deftypevr
  31999. #: guix-git/doc/guix.texi:21214
  32000. #, no-wrap
  32001. msgid "{@code{dovecot-configuration} parameter} boolean mail-save-crlf?"
  32002. msgstr ""
  32003. #. type: deftypevr
  32004. #: guix-git/doc/guix.texi:21221
  32005. msgid "Save mails with CR+LF instead of plain LF@. This makes sending those mails take less CPU, especially with sendfile() syscall with Linux and FreeBSD@. But it also creates a bit more disk I/O which may just make it slower. Also note that if other software reads the mboxes/maildirs, they may handle the extra CRs wrong and cause problems. Defaults to @samp{#f}."
  32006. msgstr ""
  32007. #. type: deftypevr
  32008. #: guix-git/doc/guix.texi:21223
  32009. #, no-wrap
  32010. msgid "{@code{dovecot-configuration} parameter} boolean maildir-stat-dirs?"
  32011. msgstr ""
  32012. #. type: deftypevr
  32013. #: guix-git/doc/guix.texi:21231
  32014. msgid "By default LIST command returns all entries in maildir beginning with a dot. Enabling this option makes Dovecot return only entries which are directories. This is done by stat()ing each entry, so it causes more disk I/O. (For systems setting struct @samp{dirent->d_type} this check is free and it's done always regardless of this setting). Defaults to @samp{#f}."
  32015. msgstr ""
  32016. #. type: deftypevr
  32017. #: guix-git/doc/guix.texi:21233
  32018. #, no-wrap
  32019. msgid "{@code{dovecot-configuration} parameter} boolean maildir-copy-with-hardlinks?"
  32020. msgstr ""
  32021. #. type: deftypevr
  32022. #: guix-git/doc/guix.texi:21238
  32023. msgid "When copying a message, do it with hard links whenever possible. This makes the performance much better, and it's unlikely to have any side effects. Defaults to @samp{#t}."
  32024. msgstr ""
  32025. #. type: deftypevr
  32026. #: guix-git/doc/guix.texi:21240
  32027. #, no-wrap
  32028. msgid "{@code{dovecot-configuration} parameter} boolean maildir-very-dirty-syncs?"
  32029. msgstr ""
  32030. #. type: deftypevr
  32031. #: guix-git/doc/guix.texi:21245
  32032. msgid "Assume Dovecot is the only MUA accessing Maildir: Scan cur/ directory only when its mtime changes unexpectedly or when we can't find the mail otherwise. Defaults to @samp{#f}."
  32033. msgstr ""
  32034. #. type: deftypevr
  32035. #: guix-git/doc/guix.texi:21247
  32036. #, no-wrap
  32037. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-read-locks"
  32038. msgstr ""
  32039. #. type: deftypevr
  32040. #: guix-git/doc/guix.texi:21250
  32041. msgid "Which locking methods to use for locking mbox. There are four available:"
  32042. msgstr ""
  32043. #. type: item
  32044. #: guix-git/doc/guix.texi:21252
  32045. #, no-wrap
  32046. msgid "dotlock"
  32047. msgstr ""
  32048. #. type: table
  32049. #: guix-git/doc/guix.texi:21256
  32050. msgid "Create <mailbox>.lock file. This is the oldest and most NFS-safe solution. If you want to use /var/mail/ like directory, the users will need write access to that directory."
  32051. msgstr ""
  32052. #. type: item
  32053. #: guix-git/doc/guix.texi:21256
  32054. #, no-wrap
  32055. msgid "dotlock-try"
  32056. msgstr ""
  32057. #. type: table
  32058. #: guix-git/doc/guix.texi:21259
  32059. msgid "Same as dotlock, but if it fails because of permissions or because there isn't enough disk space, just skip it."
  32060. msgstr ""
  32061. #. type: item
  32062. #: guix-git/doc/guix.texi:21259
  32063. #, no-wrap
  32064. msgid "fcntl"
  32065. msgstr ""
  32066. #. type: table
  32067. #: guix-git/doc/guix.texi:21261
  32068. msgid "Use this if possible. Works with NFS too if lockd is used."
  32069. msgstr ""
  32070. #. type: item
  32071. #: guix-git/doc/guix.texi:21261
  32072. #, no-wrap
  32073. msgid "flock"
  32074. msgstr ""
  32075. #. type: table
  32076. #: guix-git/doc/guix.texi:21263 guix-git/doc/guix.texi:21265
  32077. msgid "May not exist in all systems. Doesn't work with NFS."
  32078. msgstr ""
  32079. #. type: item
  32080. #: guix-git/doc/guix.texi:21263
  32081. #, no-wrap
  32082. msgid "lockf"
  32083. msgstr ""
  32084. #. type: deftypevr
  32085. #: guix-git/doc/guix.texi:21271
  32086. msgid "You can use multiple locking methods; if you do the order they're declared in is important to avoid deadlocks if other MTAs/MUAs are using multiple locking methods as well. Some operating systems don't allow using some of them simultaneously."
  32087. msgstr ""
  32088. #. type: deftypevr
  32089. #: guix-git/doc/guix.texi:21273
  32090. #, no-wrap
  32091. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-write-locks"
  32092. msgstr ""
  32093. #. type: deftypevr
  32094. #: guix-git/doc/guix.texi:21277
  32095. #, no-wrap
  32096. msgid "{@code{dovecot-configuration} parameter} string mbox-lock-timeout"
  32097. msgstr ""
  32098. #. type: deftypevr
  32099. #: guix-git/doc/guix.texi:21280
  32100. msgid "Maximum time to wait for lock (all of them) before aborting. Defaults to @samp{\"5 mins\"}."
  32101. msgstr ""
  32102. #. type: deftypevr
  32103. #: guix-git/doc/guix.texi:21282
  32104. #, no-wrap
  32105. msgid "{@code{dovecot-configuration} parameter} string mbox-dotlock-change-timeout"
  32106. msgstr ""
  32107. #. type: deftypevr
  32108. #: guix-git/doc/guix.texi:21286
  32109. msgid "If dotlock exists but the mailbox isn't modified in any way, override the lock file after this much time. Defaults to @samp{\"2 mins\"}."
  32110. msgstr ""
  32111. #. type: deftypevr
  32112. #: guix-git/doc/guix.texi:21288
  32113. #, no-wrap
  32114. msgid "{@code{dovecot-configuration} parameter} boolean mbox-dirty-syncs?"
  32115. msgstr ""
  32116. #. type: deftypevr
  32117. #: guix-git/doc/guix.texi:21299
  32118. msgid "When mbox changes unexpectedly we have to fully read it to find out what changed. If the mbox is large this can take a long time. Since the change is usually just a newly appended mail, it'd be faster to simply read the new mails. If this setting is enabled, Dovecot does this but still safely fallbacks to re-reading the whole mbox file whenever something in mbox isn't how it's expected to be. The only real downside to this setting is that if some other MUA changes message flags, Dovecot doesn't notice it immediately. Note that a full sync is done with SELECT, EXAMINE, EXPUNGE and CHECK commands. Defaults to @samp{#t}."
  32119. msgstr ""
  32120. #. type: deftypevr
  32121. #: guix-git/doc/guix.texi:21301
  32122. #, no-wrap
  32123. msgid "{@code{dovecot-configuration} parameter} boolean mbox-very-dirty-syncs?"
  32124. msgstr ""
  32125. #. type: deftypevr
  32126. #: guix-git/doc/guix.texi:21306
  32127. msgid "Like @samp{mbox-dirty-syncs}, but don't do full syncs even with SELECT, EXAMINE, EXPUNGE or CHECK commands. If this is set, @samp{mbox-dirty-syncs} is ignored. Defaults to @samp{#f}."
  32128. msgstr ""
  32129. #. type: deftypevr
  32130. #: guix-git/doc/guix.texi:21308
  32131. #, no-wrap
  32132. msgid "{@code{dovecot-configuration} parameter} boolean mbox-lazy-writes?"
  32133. msgstr ""
  32134. #. type: deftypevr
  32135. #: guix-git/doc/guix.texi:21314
  32136. msgid "Delay writing mbox headers until doing a full write sync (EXPUNGE and CHECK commands and when closing the mailbox). This is especially useful for POP3 where clients often delete all mails. The downside is that our changes aren't immediately visible to other MUAs. Defaults to @samp{#t}."
  32137. msgstr ""
  32138. #. type: deftypevr
  32139. #: guix-git/doc/guix.texi:21316
  32140. #, no-wrap
  32141. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mbox-min-index-size"
  32142. msgstr ""
  32143. #. type: deftypevr
  32144. #: guix-git/doc/guix.texi:21321
  32145. msgid "If mbox size is smaller than this (e.g.@: 100k), don't write index files. If an index file already exists it's still read, just not updated. Defaults to @samp{0}."
  32146. msgstr ""
  32147. #. type: deftypevr
  32148. #: guix-git/doc/guix.texi:21323
  32149. #, no-wrap
  32150. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mdbox-rotate-size"
  32151. msgstr ""
  32152. #. type: deftypevr
  32153. #: guix-git/doc/guix.texi:21326
  32154. msgid "Maximum dbox file size until it's rotated. Defaults to @samp{10000000}."
  32155. msgstr ""
  32156. #. type: deftypevr
  32157. #: guix-git/doc/guix.texi:21328
  32158. #, no-wrap
  32159. msgid "{@code{dovecot-configuration} parameter} string mdbox-rotate-interval"
  32160. msgstr ""
  32161. #. type: deftypevr
  32162. #: guix-git/doc/guix.texi:21333
  32163. msgid "Maximum dbox file age until it's rotated. Typically in days. Day begins from midnight, so 1d = today, 2d = yesterday, etc. 0 = check disabled. Defaults to @samp{\"1d\"}."
  32164. msgstr ""
  32165. #. type: deftypevr
  32166. #: guix-git/doc/guix.texi:21335
  32167. #, no-wrap
  32168. msgid "{@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space?"
  32169. msgstr ""
  32170. #. type: deftypevr
  32171. #: guix-git/doc/guix.texi:21340
  32172. msgid "When creating new mdbox files, immediately preallocate their size to @samp{mdbox-rotate-size}. This setting currently works only in Linux with some file systems (ext4, xfs). Defaults to @samp{#f}."
  32173. msgstr ""
  32174. #. type: deftypevr
  32175. #: guix-git/doc/guix.texi:21342
  32176. #, no-wrap
  32177. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-dir"
  32178. msgstr ""
  32179. #. type: deftypevr
  32180. #: guix-git/doc/guix.texi:21346
  32181. msgid "sdbox and mdbox support saving mail attachments to external files, which also allows single instance storage for them. Other backends don't support this for now."
  32182. msgstr ""
  32183. #. type: deftypevr
  32184. #: guix-git/doc/guix.texi:21348
  32185. msgid "WARNING: This feature hasn't been tested much yet. Use at your own risk."
  32186. msgstr ""
  32187. #. type: deftypevr
  32188. #: guix-git/doc/guix.texi:21351
  32189. msgid "Directory root where to store mail attachments. Disabled, if empty. Defaults to @samp{\"\"}."
  32190. msgstr ""
  32191. #. type: deftypevr
  32192. #: guix-git/doc/guix.texi:21353
  32193. #, no-wrap
  32194. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-attachment-min-size"
  32195. msgstr ""
  32196. #. type: deftypevr
  32197. #: guix-git/doc/guix.texi:21358
  32198. msgid "Attachments smaller than this aren't saved externally. It's also possible to write a plugin to disable saving specific attachments externally. Defaults to @samp{128000}."
  32199. msgstr ""
  32200. #. type: deftypevr
  32201. #: guix-git/doc/guix.texi:21360
  32202. #, no-wrap
  32203. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-fs"
  32204. msgstr ""
  32205. #. type: deftypevr
  32206. #: guix-git/doc/guix.texi:21362
  32207. msgid "File system backend to use for saving attachments:"
  32208. msgstr ""
  32209. #. type: item
  32210. #: guix-git/doc/guix.texi:21363
  32211. #, no-wrap
  32212. msgid "posix"
  32213. msgstr ""
  32214. #. type: table
  32215. #: guix-git/doc/guix.texi:21365
  32216. msgid "No SiS done by Dovecot (but this might help FS's own deduplication)"
  32217. msgstr ""
  32218. #. type: item
  32219. #: guix-git/doc/guix.texi:21365
  32220. #, no-wrap
  32221. msgid "sis posix"
  32222. msgstr ""
  32223. #. type: table
  32224. #: guix-git/doc/guix.texi:21367
  32225. msgid "SiS with immediate byte-by-byte comparison during saving"
  32226. msgstr ""
  32227. #. type: item
  32228. #: guix-git/doc/guix.texi:21367
  32229. #, no-wrap
  32230. msgid "sis-queue posix"
  32231. msgstr ""
  32232. #. type: table
  32233. #: guix-git/doc/guix.texi:21369
  32234. msgid "SiS with delayed comparison and deduplication."
  32235. msgstr ""
  32236. #. type: deftypevr
  32237. #: guix-git/doc/guix.texi:21371
  32238. msgid "Defaults to @samp{\"sis posix\"}."
  32239. msgstr ""
  32240. #. type: deftypevr
  32241. #: guix-git/doc/guix.texi:21373
  32242. #, no-wrap
  32243. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-hash"
  32244. msgstr ""
  32245. #. type: deftypevr
  32246. #: guix-git/doc/guix.texi:21379
  32247. msgid "Hash format to use in attachment filenames. You can add any text and variables: @code{%@{md4@}}, @code{%@{md5@}}, @code{%@{sha1@}}, @code{%@{sha256@}}, @code{%@{sha512@}}, @code{%@{size@}}. Variables can be truncated, e.g.@: @code{%@{sha256:80@}} returns only first 80 bits. Defaults to @samp{\"%@{sha1@}\"}."
  32248. msgstr ""
  32249. #. type: deftypevr
  32250. #: guix-git/doc/guix.texi:21381
  32251. #, no-wrap
  32252. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-process-limit"
  32253. msgstr ""
  32254. #. type: deftypevr
  32255. #: guix-git/doc/guix.texi:21386
  32256. #, no-wrap
  32257. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-client-limit"
  32258. msgstr ""
  32259. #. type: deftypevr
  32260. #: guix-git/doc/guix.texi:21389 guix-git/doc/guix.texi:29004
  32261. msgid "Defaults to @samp{1000}."
  32262. msgstr ""
  32263. #. type: deftypevr
  32264. #: guix-git/doc/guix.texi:21391
  32265. #, no-wrap
  32266. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-vsz-limit"
  32267. msgstr ""
  32268. #. type: deftypevr
  32269. #: guix-git/doc/guix.texi:21396
  32270. msgid "Default VSZ (virtual memory size) limit for service processes. This is mainly intended to catch and kill processes that leak memory before they eat up everything. Defaults to @samp{256000000}."
  32271. msgstr ""
  32272. #. type: deftypevr
  32273. #: guix-git/doc/guix.texi:21398
  32274. #, no-wrap
  32275. msgid "{@code{dovecot-configuration} parameter} string default-login-user"
  32276. msgstr ""
  32277. #. type: deftypevr
  32278. #: guix-git/doc/guix.texi:21403
  32279. msgid "Login user is internally used by login processes. This is the most untrusted user in Dovecot system. It shouldn't have access to anything at all. Defaults to @samp{\"dovenull\"}."
  32280. msgstr ""
  32281. #. type: deftypevr
  32282. #: guix-git/doc/guix.texi:21405
  32283. #, no-wrap
  32284. msgid "{@code{dovecot-configuration} parameter} string default-internal-user"
  32285. msgstr ""
  32286. #. type: deftypevr
  32287. #: guix-git/doc/guix.texi:21410
  32288. msgid "Internal user is used by unprivileged processes. It should be separate from login user, so that login processes can't disturb other processes. Defaults to @samp{\"dovecot\"}."
  32289. msgstr ""
  32290. #. type: deftypevr
  32291. #: guix-git/doc/guix.texi:21412
  32292. #, no-wrap
  32293. msgid "{@code{dovecot-configuration} parameter} string ssl?"
  32294. msgstr ""
  32295. #. type: deftypevr
  32296. #: guix-git/doc/guix.texi:21415
  32297. msgid "SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>. Defaults to @samp{\"required\"}."
  32298. msgstr ""
  32299. #. type: deftypevr
  32300. #: guix-git/doc/guix.texi:21417
  32301. #, no-wrap
  32302. msgid "{@code{dovecot-configuration} parameter} string ssl-cert"
  32303. msgstr ""
  32304. #. type: deftypevr
  32305. #: guix-git/doc/guix.texi:21420
  32306. msgid "PEM encoded X.509 SSL/TLS certificate (public key). Defaults to @samp{\"</etc/dovecot/default.pem\"}."
  32307. msgstr ""
  32308. #. type: deftypevr
  32309. #: guix-git/doc/guix.texi:21422
  32310. #, no-wrap
  32311. msgid "{@code{dovecot-configuration} parameter} string ssl-key"
  32312. msgstr ""
  32313. #. type: deftypevr
  32314. #: guix-git/doc/guix.texi:21427
  32315. msgid "PEM encoded SSL/TLS private key. The key is opened before dropping root privileges, so keep the key file unreadable by anyone but root. Defaults to @samp{\"</etc/dovecot/private/default.pem\"}."
  32316. msgstr ""
  32317. #. type: deftypevr
  32318. #: guix-git/doc/guix.texi:21429
  32319. #, no-wrap
  32320. msgid "{@code{dovecot-configuration} parameter} string ssl-key-password"
  32321. msgstr ""
  32322. #. type: deftypevr
  32323. #: guix-git/doc/guix.texi:21435
  32324. msgid "If key file is password protected, give the password here. Alternatively give it when starting dovecot with -p parameter. Since this file is often world-readable, you may want to place this setting instead to a different. Defaults to @samp{\"\"}."
  32325. msgstr ""
  32326. #. type: deftypevr
  32327. #: guix-git/doc/guix.texi:21437
  32328. #, no-wrap
  32329. msgid "{@code{dovecot-configuration} parameter} string ssl-ca"
  32330. msgstr ""
  32331. #. type: deftypevr
  32332. #: guix-git/doc/guix.texi:21443
  32333. msgid "PEM encoded trusted certificate authority. Set this only if you intend to use @samp{ssl-verify-client-cert? #t}. The file should contain the CA certificate(s) followed by the matching CRL(s). (e.g.@: @samp{ssl-ca </etc/ssl/certs/ca.pem}). Defaults to @samp{\"\"}."
  32334. msgstr ""
  32335. #. type: deftypevr
  32336. #: guix-git/doc/guix.texi:21445
  32337. #, no-wrap
  32338. msgid "{@code{dovecot-configuration} parameter} boolean ssl-require-crl?"
  32339. msgstr ""
  32340. #. type: deftypevr
  32341. #: guix-git/doc/guix.texi:21448
  32342. msgid "Require that CRL check succeeds for client certificates. Defaults to @samp{#t}."
  32343. msgstr ""
  32344. #. type: deftypevr
  32345. #: guix-git/doc/guix.texi:21450
  32346. #, no-wrap
  32347. msgid "{@code{dovecot-configuration} parameter} boolean ssl-verify-client-cert?"
  32348. msgstr ""
  32349. #. type: deftypevr
  32350. #: guix-git/doc/guix.texi:21454
  32351. msgid "Request client to send a certificate. If you also want to require it, set @samp{auth-ssl-require-client-cert? #t} in auth section. Defaults to @samp{#f}."
  32352. msgstr ""
  32353. #. type: deftypevr
  32354. #: guix-git/doc/guix.texi:21456
  32355. #, no-wrap
  32356. msgid "{@code{dovecot-configuration} parameter} string ssl-cert-username-field"
  32357. msgstr ""
  32358. #. type: deftypevr
  32359. #: guix-git/doc/guix.texi:21461
  32360. msgid "Which field from certificate to use for username. commonName and x500UniqueIdentifier are the usual choices. You'll also need to set @samp{auth-ssl-username-from-cert? #t}. Defaults to @samp{\"commonName\"}."
  32361. msgstr ""
  32362. #. type: deftypevr
  32363. #: guix-git/doc/guix.texi:21463
  32364. #, no-wrap
  32365. msgid "{@code{dovecot-configuration} parameter} string ssl-min-protocol"
  32366. msgstr ""
  32367. #. type: deftypevr
  32368. #: guix-git/doc/guix.texi:21466
  32369. msgid "Minimum SSL protocol version to accept. Defaults to @samp{\"TLSv1\"}."
  32370. msgstr ""
  32371. #. type: deftypevr
  32372. #: guix-git/doc/guix.texi:21468
  32373. #, no-wrap
  32374. msgid "{@code{dovecot-configuration} parameter} string ssl-cipher-list"
  32375. msgstr ""
  32376. #. type: deftypevr
  32377. #: guix-git/doc/guix.texi:21471
  32378. msgid "SSL ciphers to use. Defaults to @samp{\"ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@@STRENGTH\"}."
  32379. msgstr ""
  32380. #. type: deftypevr
  32381. #: guix-git/doc/guix.texi:21473
  32382. #, no-wrap
  32383. msgid "{@code{dovecot-configuration} parameter} string ssl-crypto-device"
  32384. msgstr ""
  32385. #. type: deftypevr
  32386. #: guix-git/doc/guix.texi:21476
  32387. msgid "SSL crypto device to use, for valid values run \"openssl engine\". Defaults to @samp{\"\"}."
  32388. msgstr ""
  32389. #. type: deftypevr
  32390. #: guix-git/doc/guix.texi:21478
  32391. #, no-wrap
  32392. msgid "{@code{dovecot-configuration} parameter} string postmaster-address"
  32393. msgstr ""
  32394. #. type: deftypevr
  32395. #: guix-git/doc/guix.texi:21482
  32396. msgid "Address to use when sending rejection mails. %d expands to recipient domain. Defaults to @samp{\"postmaster@@%d\"}."
  32397. msgstr ""
  32398. #. type: deftypevr
  32399. #: guix-git/doc/guix.texi:21484
  32400. #, no-wrap
  32401. msgid "{@code{dovecot-configuration} parameter} string hostname"
  32402. msgstr ""
  32403. #. type: deftypevr
  32404. #: guix-git/doc/guix.texi:21488
  32405. msgid "Hostname to use in various parts of sent mails (e.g.@: in Message-Id) and in LMTP replies. Default is the system's real hostname@@domain. Defaults to @samp{\"\"}."
  32406. msgstr ""
  32407. #. type: deftypevr
  32408. #: guix-git/doc/guix.texi:21490
  32409. #, no-wrap
  32410. msgid "{@code{dovecot-configuration} parameter} boolean quota-full-tempfail?"
  32411. msgstr ""
  32412. #. type: deftypevr
  32413. #: guix-git/doc/guix.texi:21494
  32414. msgid "If user is over quota, return with temporary failure instead of bouncing the mail. Defaults to @samp{#f}."
  32415. msgstr ""
  32416. #. type: deftypevr
  32417. #: guix-git/doc/guix.texi:21496
  32418. #, no-wrap
  32419. msgid "{@code{dovecot-configuration} parameter} file-name sendmail-path"
  32420. msgstr ""
  32421. #. type: deftypevr
  32422. #: guix-git/doc/guix.texi:21499
  32423. msgid "Binary to use for sending mails. Defaults to @samp{\"/usr/sbin/sendmail\"}."
  32424. msgstr ""
  32425. #. type: deftypevr
  32426. #: guix-git/doc/guix.texi:21501
  32427. #, no-wrap
  32428. msgid "{@code{dovecot-configuration} parameter} string submission-host"
  32429. msgstr ""
  32430. #. type: deftypevr
  32431. #: guix-git/doc/guix.texi:21505
  32432. msgid "If non-empty, send mails via this SMTP host[:port] instead of sendmail. Defaults to @samp{\"\"}."
  32433. msgstr ""
  32434. #. type: deftypevr
  32435. #: guix-git/doc/guix.texi:21507
  32436. #, no-wrap
  32437. msgid "{@code{dovecot-configuration} parameter} string rejection-subject"
  32438. msgstr ""
  32439. #. type: deftypevr
  32440. #: guix-git/doc/guix.texi:21511
  32441. msgid "Subject: header to use for rejection mails. You can use the same variables as for @samp{rejection-reason} below. Defaults to @samp{\"Rejected: %s\"}."
  32442. msgstr ""
  32443. #. type: deftypevr
  32444. #: guix-git/doc/guix.texi:21513
  32445. #, no-wrap
  32446. msgid "{@code{dovecot-configuration} parameter} string rejection-reason"
  32447. msgstr ""
  32448. #. type: deftypevr
  32449. #: guix-git/doc/guix.texi:21516
  32450. msgid "Human readable error message for rejection mails. You can use variables:"
  32451. msgstr ""
  32452. #. type: table
  32453. #: guix-git/doc/guix.texi:21520
  32454. msgid "CRLF"
  32455. msgstr ""
  32456. #. type: item
  32457. #: guix-git/doc/guix.texi:21520
  32458. #, no-wrap
  32459. msgid "%r"
  32460. msgstr ""
  32461. #. type: table
  32462. #: guix-git/doc/guix.texi:21522
  32463. msgid "reason"
  32464. msgstr ""
  32465. #. type: table
  32466. #: guix-git/doc/guix.texi:21524
  32467. msgid "original subject"
  32468. msgstr ""
  32469. #. type: item
  32470. #: guix-git/doc/guix.texi:21524
  32471. #, no-wrap
  32472. msgid "%t"
  32473. msgstr ""
  32474. #. type: table
  32475. #: guix-git/doc/guix.texi:21526
  32476. msgid "recipient"
  32477. msgstr ""
  32478. #. type: deftypevr
  32479. #: guix-git/doc/guix.texi:21528
  32480. msgid "Defaults to @samp{\"Your message to <%t> was automatically rejected:%n%r\"}."
  32481. msgstr ""
  32482. #. type: deftypevr
  32483. #: guix-git/doc/guix.texi:21530
  32484. #, no-wrap
  32485. msgid "{@code{dovecot-configuration} parameter} string recipient-delimiter"
  32486. msgstr ""
  32487. #. type: deftypevr
  32488. #: guix-git/doc/guix.texi:21534
  32489. msgid "Delimiter character between local-part and detail in email address. Defaults to @samp{\"+\"}."
  32490. msgstr ""
  32491. #. type: deftypevr
  32492. #: guix-git/doc/guix.texi:21536
  32493. #, no-wrap
  32494. msgid "{@code{dovecot-configuration} parameter} string lda-original-recipient-header"
  32495. msgstr ""
  32496. #. type: deftypevr
  32497. #: guix-git/doc/guix.texi:21542
  32498. msgid "Header where the original recipient address (SMTP's RCPT TO: address) is taken from if not available elsewhere. With dovecot-lda -a parameter overrides this. A commonly used header for this is X-Original-To. Defaults to @samp{\"\"}."
  32499. msgstr ""
  32500. #. type: deftypevr
  32501. #: guix-git/doc/guix.texi:21544
  32502. #, no-wrap
  32503. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autocreate?"
  32504. msgstr ""
  32505. #. type: deftypevr
  32506. #: guix-git/doc/guix.texi:21548
  32507. msgid "Should saving a mail to a nonexistent mailbox automatically create it?. Defaults to @samp{#f}."
  32508. msgstr ""
  32509. #. type: deftypevr
  32510. #: guix-git/doc/guix.texi:21550
  32511. #, no-wrap
  32512. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autosubscribe?"
  32513. msgstr ""
  32514. #. type: deftypevr
  32515. #: guix-git/doc/guix.texi:21554
  32516. msgid "Should automatically created mailboxes be also automatically subscribed?. Defaults to @samp{#f}."
  32517. msgstr ""
  32518. #. type: deftypevr
  32519. #: guix-git/doc/guix.texi:21556
  32520. #, no-wrap
  32521. msgid "{@code{dovecot-configuration} parameter} non-negative-integer imap-max-line-length"
  32522. msgstr ""
  32523. #. type: deftypevr
  32524. #: guix-git/doc/guix.texi:21562
  32525. msgid "Maximum IMAP command line length. Some clients generate very long command lines with huge mailboxes, so you may need to raise this if you get \"Too long argument\" or \"IMAP command line too large\" errors often. Defaults to @samp{64000}."
  32526. msgstr ""
  32527. #. type: deftypevr
  32528. #: guix-git/doc/guix.texi:21564
  32529. #, no-wrap
  32530. msgid "{@code{dovecot-configuration} parameter} string imap-logout-format"
  32531. msgstr ""
  32532. #. type: deftypevr
  32533. #: guix-git/doc/guix.texi:21566
  32534. msgid "IMAP logout format string:"
  32535. msgstr ""
  32536. #. type: item
  32537. #: guix-git/doc/guix.texi:21567
  32538. #, no-wrap
  32539. msgid "%i"
  32540. msgstr ""
  32541. #. type: table
  32542. #: guix-git/doc/guix.texi:21569
  32543. msgid "total number of bytes read from client"
  32544. msgstr ""
  32545. #. type: item
  32546. #: guix-git/doc/guix.texi:21569
  32547. #, no-wrap
  32548. msgid "%o"
  32549. msgstr ""
  32550. #. type: table
  32551. #: guix-git/doc/guix.texi:21571
  32552. msgid "total number of bytes sent to client."
  32553. msgstr ""
  32554. #. type: deftypevr
  32555. #: guix-git/doc/guix.texi:21574
  32556. msgid "See @file{doc/wiki/Variables.txt} for a list of all the variables you can use. Defaults to @samp{\"in=%i out=%o deleted=%@{deleted@} expunged=%@{expunged@} trashed=%@{trashed@} hdr_count=%@{fetch_hdr_count@} hdr_bytes=%@{fetch_hdr_bytes@} body_count=%@{fetch_body_count@} body_bytes=%@{fetch_body_bytes@}\"}."
  32557. msgstr ""
  32558. #. type: deftypevr
  32559. #: guix-git/doc/guix.texi:21576
  32560. #, no-wrap
  32561. msgid "{@code{dovecot-configuration} parameter} string imap-capability"
  32562. msgstr ""
  32563. #. type: deftypevr
  32564. #: guix-git/doc/guix.texi:21580
  32565. msgid "Override the IMAP CAPABILITY response. If the value begins with '+', add the given capabilities on top of the defaults (e.g.@: +XFOO XBAR). Defaults to @samp{\"\"}."
  32566. msgstr ""
  32567. #. type: deftypevr
  32568. #: guix-git/doc/guix.texi:21582
  32569. #, no-wrap
  32570. msgid "{@code{dovecot-configuration} parameter} string imap-idle-notify-interval"
  32571. msgstr ""
  32572. #. type: deftypevr
  32573. #: guix-git/doc/guix.texi:21586
  32574. msgid "How long to wait between \"OK Still here\" notifications when client is IDLEing. Defaults to @samp{\"2 mins\"}."
  32575. msgstr ""
  32576. #. type: deftypevr
  32577. #: guix-git/doc/guix.texi:21588
  32578. #, no-wrap
  32579. msgid "{@code{dovecot-configuration} parameter} string imap-id-send"
  32580. msgstr ""
  32581. #. type: deftypevr
  32582. #: guix-git/doc/guix.texi:21594
  32583. msgid "ID field names and values to send to clients. Using * as the value makes Dovecot use the default value. The following fields have default values currently: name, version, os, os-version, support-url, support-email. Defaults to @samp{\"\"}."
  32584. msgstr ""
  32585. #. type: deftypevr
  32586. #: guix-git/doc/guix.texi:21596
  32587. #, no-wrap
  32588. msgid "{@code{dovecot-configuration} parameter} string imap-id-log"
  32589. msgstr ""
  32590. #. type: deftypevr
  32591. #: guix-git/doc/guix.texi:21599
  32592. msgid "ID fields sent by client to log. * means everything. Defaults to @samp{\"\"}."
  32593. msgstr ""
  32594. #. type: deftypevr
  32595. #: guix-git/doc/guix.texi:21601
  32596. #, no-wrap
  32597. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list imap-client-workarounds"
  32598. msgstr ""
  32599. #. type: deftypevr
  32600. #: guix-git/doc/guix.texi:21603
  32601. msgid "Workarounds for various client bugs:"
  32602. msgstr ""
  32603. #. type: item
  32604. #: guix-git/doc/guix.texi:21605
  32605. #, no-wrap
  32606. msgid "delay-newmail"
  32607. msgstr ""
  32608. #. type: table
  32609. #: guix-git/doc/guix.texi:21612
  32610. msgid "Send EXISTS/RECENT new mail notifications only when replying to NOOP and CHECK commands. Some clients ignore them otherwise, for example OSX Mail (<v2.1). Outlook Express breaks more badly though, without this it may show user \"Message no longer in server\" errors. Note that OE6 still breaks even with this workaround if synchronization is set to \"Headers Only\"."
  32611. msgstr ""
  32612. #. type: item
  32613. #: guix-git/doc/guix.texi:21613
  32614. #, no-wrap
  32615. msgid "tb-extra-mailbox-sep"
  32616. msgstr ""
  32617. #. type: table
  32618. #: guix-git/doc/guix.texi:21617
  32619. msgid "Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) and adds extra @samp{/} suffixes to mailbox names. This option causes Dovecot to ignore the extra @samp{/} instead of treating it as invalid mailbox name."
  32620. msgstr ""
  32621. #. type: item
  32622. #: guix-git/doc/guix.texi:21618
  32623. #, no-wrap
  32624. msgid "tb-lsub-flags"
  32625. msgstr ""
  32626. #. type: table
  32627. #: guix-git/doc/guix.texi:21622
  32628. msgid "Show \\Noselect flags for LSUB replies with LAYOUT=fs (e.g.@: mbox). This makes Thunderbird realize they aren't selectable and show them greyed out, instead of only later giving \"not selectable\" popup error."
  32629. msgstr ""
  32630. #. type: deftypevr
  32631. #: guix-git/doc/guix.texi:21626
  32632. #, no-wrap
  32633. msgid "{@code{dovecot-configuration} parameter} string imap-urlauth-host"
  32634. msgstr ""
  32635. #. type: deftypevr
  32636. #: guix-git/doc/guix.texi:21629
  32637. msgid "Host allowed in URLAUTH URLs sent by client. \"*\" allows all. Defaults to @samp{\"\"}."
  32638. msgstr ""
  32639. #. type: Plain text
  32640. #: guix-git/doc/guix.texi:21637
  32641. msgid "Whew! Lots of configuration options. The nice thing about it though is that Guix has a complete interface to Dovecot's configuration language. This allows not only a nice way to declare configurations, but also offers reflective capabilities as well: users can write code to inspect and transform configurations from within Scheme."
  32642. msgstr ""
  32643. #. type: Plain text
  32644. #: guix-git/doc/guix.texi:21643
  32645. msgid "However, it could be that you just want to get a @code{dovecot.conf} up and running. In that case, you can pass an @code{opaque-dovecot-configuration} as the @code{#:config} parameter to @code{dovecot-service}. As its name indicates, an opaque configuration does not have easy reflective capabilities."
  32646. msgstr ""
  32647. #. type: Plain text
  32648. #: guix-git/doc/guix.texi:21645
  32649. msgid "Available @code{opaque-dovecot-configuration} fields are:"
  32650. msgstr ""
  32651. #. type: deftypevr
  32652. #: guix-git/doc/guix.texi:21646
  32653. #, no-wrap
  32654. msgid "{@code{opaque-dovecot-configuration} parameter} package dovecot"
  32655. msgstr ""
  32656. #. type: deftypevr
  32657. #: guix-git/doc/guix.texi:21650
  32658. #, no-wrap
  32659. msgid "{@code{opaque-dovecot-configuration} parameter} string string"
  32660. msgstr ""
  32661. #. type: deftypevr
  32662. #: guix-git/doc/guix.texi:21652
  32663. msgid "The contents of the @code{dovecot.conf}, as a string."
  32664. msgstr ""
  32665. #. type: Plain text
  32666. #: guix-git/doc/guix.texi:21656
  32667. msgid "For example, if your @code{dovecot.conf} is just the empty string, you could instantiate a dovecot service like this:"
  32668. msgstr ""
  32669. #. type: lisp
  32670. #: guix-git/doc/guix.texi:21661
  32671. #, no-wrap
  32672. msgid ""
  32673. "(dovecot-service #:config\n"
  32674. " (opaque-dovecot-configuration\n"
  32675. " (string \"\")))\n"
  32676. msgstr ""
  32677. #. type: subsubheading
  32678. #: guix-git/doc/guix.texi:21663
  32679. #, no-wrap
  32680. msgid "OpenSMTPD Service"
  32681. msgstr ""
  32682. #. type: deffn
  32683. #: guix-git/doc/guix.texi:21665
  32684. #, no-wrap
  32685. msgid "{Scheme Variable} opensmtpd-service-type"
  32686. msgstr ""
  32687. #. type: deffn
  32688. #: guix-git/doc/guix.texi:21669
  32689. msgid "This is the type of the @uref{https://www.opensmtpd.org, OpenSMTPD} service, whose value should be an @code{opensmtpd-configuration} object as in this example:"
  32690. msgstr ""
  32691. #. type: lisp
  32692. #: guix-git/doc/guix.texi:21674
  32693. #, no-wrap
  32694. msgid ""
  32695. "(service opensmtpd-service-type\n"
  32696. " (opensmtpd-configuration\n"
  32697. " (config-file (local-file \"./my-smtpd.conf\"))))\n"
  32698. msgstr ""
  32699. #. type: deftp
  32700. #: guix-git/doc/guix.texi:21677
  32701. #, no-wrap
  32702. msgid "{Data Type} opensmtpd-configuration"
  32703. msgstr ""
  32704. #. type: deftp
  32705. #: guix-git/doc/guix.texi:21679
  32706. msgid "Data type representing the configuration of opensmtpd."
  32707. msgstr ""
  32708. #. type: item
  32709. #: guix-git/doc/guix.texi:21681
  32710. #, no-wrap
  32711. msgid "@code{package} (default: @var{opensmtpd})"
  32712. msgstr ""
  32713. #. type: table
  32714. #: guix-git/doc/guix.texi:21683
  32715. msgid "Package object of the OpenSMTPD SMTP server."
  32716. msgstr ""
  32717. #. type: item
  32718. #: guix-git/doc/guix.texi:21684
  32719. #, fuzzy, no-wrap
  32720. msgid "@code{config-file} (default: @code{%default-opensmtpd-file})"
  32721. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  32722. #. type: table
  32723. #: guix-git/doc/guix.texi:21689
  32724. msgid "File-like object of the OpenSMTPD configuration file to use. By default it listens on the loopback network interface, and allows for mail from users and daemons on the local machine, as well as permitting email to remote servers. Run @command{man smtpd.conf} for more information."
  32725. msgstr ""
  32726. #. type: subsubheading
  32727. #: guix-git/doc/guix.texi:21693
  32728. #, no-wrap
  32729. msgid "Exim Service"
  32730. msgstr ""
  32731. #. type: cindex
  32732. #: guix-git/doc/guix.texi:21695
  32733. #, no-wrap
  32734. msgid "mail transfer agent (MTA)"
  32735. msgstr ""
  32736. #. type: cindex
  32737. #: guix-git/doc/guix.texi:21696
  32738. #, no-wrap
  32739. msgid "MTA (mail transfer agent)"
  32740. msgstr ""
  32741. #. type: cindex
  32742. #: guix-git/doc/guix.texi:21697
  32743. #, no-wrap
  32744. msgid "SMTP"
  32745. msgstr ""
  32746. #. type: deffn
  32747. #: guix-git/doc/guix.texi:21699
  32748. #, no-wrap
  32749. msgid "{Scheme Variable} exim-service-type"
  32750. msgstr ""
  32751. #. type: deffn
  32752. #: guix-git/doc/guix.texi:21703
  32753. msgid "This is the type of the @uref{https://exim.org, Exim} mail transfer agent (MTA), whose value should be an @code{exim-configuration} object as in this example:"
  32754. msgstr ""
  32755. #. type: lisp
  32756. #: guix-git/doc/guix.texi:21708
  32757. #, no-wrap
  32758. msgid ""
  32759. "(service exim-service-type\n"
  32760. " (exim-configuration\n"
  32761. " (config-file (local-file \"./my-exim.conf\"))))\n"
  32762. msgstr ""
  32763. #. type: Plain text
  32764. #: guix-git/doc/guix.texi:21714
  32765. msgid "In order to use an @code{exim-service-type} service you must also have a @code{mail-aliases-service-type} service present in your @code{operating-system} (even if it has no aliases)."
  32766. msgstr ""
  32767. #. type: deftp
  32768. #: guix-git/doc/guix.texi:21715
  32769. #, no-wrap
  32770. msgid "{Data Type} exim-configuration"
  32771. msgstr ""
  32772. #. type: deftp
  32773. #: guix-git/doc/guix.texi:21717
  32774. msgid "Data type representing the configuration of exim."
  32775. msgstr ""
  32776. #. type: item
  32777. #: guix-git/doc/guix.texi:21719
  32778. #, no-wrap
  32779. msgid "@code{package} (default: @var{exim})"
  32780. msgstr ""
  32781. #. type: table
  32782. #: guix-git/doc/guix.texi:21721
  32783. msgid "Package object of the Exim server."
  32784. msgstr ""
  32785. #. type: table
  32786. #: guix-git/doc/guix.texi:21728
  32787. msgid "File-like object of the Exim configuration file to use. If its value is @code{#f} then use the default configuration file from the package provided in @code{package}. The resulting configuration file is loaded after setting the @code{exim_user} and @code{exim_group} configuration variables."
  32788. msgstr ""
  32789. #. type: subsubheading
  32790. #: guix-git/doc/guix.texi:21732
  32791. #, fuzzy, no-wrap
  32792. msgid "Getmail service"
  32793. msgstr "邮件服务"
  32794. #. type: cindex
  32795. #: guix-git/doc/guix.texi:21734
  32796. #, no-wrap
  32797. msgid "IMAP"
  32798. msgstr ""
  32799. #. type: cindex
  32800. #: guix-git/doc/guix.texi:21735
  32801. #, no-wrap
  32802. msgid "POP"
  32803. msgstr ""
  32804. #. type: deffn
  32805. #: guix-git/doc/guix.texi:21737
  32806. #, no-wrap
  32807. msgid "{Scheme Variable} getmail-service-type"
  32808. msgstr ""
  32809. #. type: deffn
  32810. #: guix-git/doc/guix.texi:21740
  32811. msgid "This is the type of the @uref{http://pyropus.ca/software/getmail/, Getmail} mail retriever, whose value should be an @code{getmail-configuration}."
  32812. msgstr ""
  32813. #. type: Plain text
  32814. #: guix-git/doc/guix.texi:21743
  32815. msgid "Available @code{getmail-configuration} fields are:"
  32816. msgstr ""
  32817. #. type: deftypevr
  32818. #: guix-git/doc/guix.texi:21744
  32819. #, no-wrap
  32820. msgid "{@code{getmail-configuration} parameter} symbol name"
  32821. msgstr ""
  32822. #. type: deftypevr
  32823. #: guix-git/doc/guix.texi:21746
  32824. msgid "A symbol to identify the getmail service."
  32825. msgstr ""
  32826. #. type: deftypevr
  32827. #: guix-git/doc/guix.texi:21748
  32828. msgid "Defaults to @samp{\"unset\"}."
  32829. msgstr ""
  32830. #. type: deftypevr
  32831. #: guix-git/doc/guix.texi:21751
  32832. #, no-wrap
  32833. msgid "{@code{getmail-configuration} parameter} package package"
  32834. msgstr ""
  32835. #. type: deftypevr
  32836. #: guix-git/doc/guix.texi:21753
  32837. #, fuzzy
  32838. msgid "The getmail package to use."
  32839. msgstr "软件包数据类型。"
  32840. #. type: deftypevr
  32841. #: guix-git/doc/guix.texi:21756
  32842. #, no-wrap
  32843. msgid "{@code{getmail-configuration} parameter} string user"
  32844. msgstr ""
  32845. #. type: deftypevr
  32846. #: guix-git/doc/guix.texi:21758
  32847. msgid "The user to run getmail as."
  32848. msgstr ""
  32849. #. type: deftypevr
  32850. #: guix-git/doc/guix.texi:21760 guix-git/doc/guix.texi:21767
  32851. msgid "Defaults to @samp{\"getmail\"}."
  32852. msgstr ""
  32853. #. type: deftypevr
  32854. #: guix-git/doc/guix.texi:21763
  32855. #, no-wrap
  32856. msgid "{@code{getmail-configuration} parameter} string group"
  32857. msgstr ""
  32858. #. type: deftypevr
  32859. #: guix-git/doc/guix.texi:21765
  32860. msgid "The group to run getmail as."
  32861. msgstr ""
  32862. #. type: deftypevr
  32863. #: guix-git/doc/guix.texi:21770
  32864. #, no-wrap
  32865. msgid "{@code{getmail-configuration} parameter} string directory"
  32866. msgstr ""
  32867. #. type: deftypevr
  32868. #: guix-git/doc/guix.texi:21772
  32869. msgid "The getmail directory to use."
  32870. msgstr ""
  32871. #. type: deftypevr
  32872. #: guix-git/doc/guix.texi:21774
  32873. msgid "Defaults to @samp{\"/var/lib/getmail/default\"}."
  32874. msgstr ""
  32875. #. type: deftypevr
  32876. #: guix-git/doc/guix.texi:21777
  32877. #, no-wrap
  32878. msgid "{@code{getmail-configuration} parameter} getmail-configuration-file rcfile"
  32879. msgstr ""
  32880. #. type: deftypevr
  32881. #: guix-git/doc/guix.texi:21779
  32882. msgid "The getmail configuration file to use."
  32883. msgstr ""
  32884. #. type: deftypevr
  32885. #: guix-git/doc/guix.texi:21781
  32886. msgid "Available @code{getmail-configuration-file} fields are:"
  32887. msgstr ""
  32888. #. type: deftypevr
  32889. #: guix-git/doc/guix.texi:21782
  32890. #, no-wrap
  32891. msgid "{@code{getmail-configuration-file} parameter} getmail-retriever-configuration retriever"
  32892. msgstr ""
  32893. #. type: deftypevr
  32894. #: guix-git/doc/guix.texi:21784
  32895. msgid "What mail account to retrieve mail from, and how to access that account."
  32896. msgstr ""
  32897. #. type: deftypevr
  32898. #: guix-git/doc/guix.texi:21786
  32899. msgid "Available @code{getmail-retriever-configuration} fields are:"
  32900. msgstr ""
  32901. #. type: deftypevr
  32902. #: guix-git/doc/guix.texi:21787
  32903. #, no-wrap
  32904. msgid "{@code{getmail-retriever-configuration} parameter} string type"
  32905. msgstr ""
  32906. #. type: deftypevr
  32907. #: guix-git/doc/guix.texi:21790
  32908. msgid "The type of mail retriever to use. Valid values include @samp{passwd} and @samp{static}."
  32909. msgstr ""
  32910. #. type: deftypevr
  32911. #: guix-git/doc/guix.texi:21792
  32912. msgid "Defaults to @samp{\"SimpleIMAPSSLRetriever\"}."
  32913. msgstr ""
  32914. #. type: deftypevr
  32915. #: guix-git/doc/guix.texi:21795
  32916. #, no-wrap
  32917. msgid "{@code{getmail-retriever-configuration} parameter} string server"
  32918. msgstr ""
  32919. #. type: deftypevr
  32920. #: guix-git/doc/guix.texi:21797 guix-git/doc/guix.texi:21804
  32921. msgid "Username to login to the mail server with."
  32922. msgstr ""
  32923. #. type: deftypevr
  32924. #: guix-git/doc/guix.texi:21799 guix-git/doc/guix.texi:21806
  32925. #: guix-git/doc/guix.texi:21870
  32926. msgid "Defaults to @samp{unset}."
  32927. msgstr ""
  32928. #. type: deftypevr
  32929. #: guix-git/doc/guix.texi:21802
  32930. #, no-wrap
  32931. msgid "{@code{getmail-retriever-configuration} parameter} string username"
  32932. msgstr ""
  32933. #. type: deftypevr
  32934. #: guix-git/doc/guix.texi:21809
  32935. #, no-wrap
  32936. msgid "{@code{getmail-retriever-configuration} parameter} non-negative-integer port"
  32937. msgstr ""
  32938. #. type: deftypevr
  32939. #: guix-git/doc/guix.texi:21811
  32940. msgid "Port number to connect to."
  32941. msgstr ""
  32942. #. type: deftypevr
  32943. #: guix-git/doc/guix.texi:21816
  32944. #, no-wrap
  32945. msgid "{@code{getmail-retriever-configuration} parameter} string password"
  32946. msgstr ""
  32947. #. type: deftypevr
  32948. #: guix-git/doc/guix.texi:21818 guix-git/doc/guix.texi:21825
  32949. msgid "Override fields from passwd."
  32950. msgstr ""
  32951. #. type: deftypevr
  32952. #: guix-git/doc/guix.texi:21823
  32953. #, no-wrap
  32954. msgid "{@code{getmail-retriever-configuration} parameter} list password-command"
  32955. msgstr ""
  32956. #. type: deftypevr
  32957. #: guix-git/doc/guix.texi:21830
  32958. #, no-wrap
  32959. msgid "{@code{getmail-retriever-configuration} parameter} string keyfile"
  32960. msgstr ""
  32961. #. type: deftypevr
  32962. #: guix-git/doc/guix.texi:21832
  32963. msgid "PEM-formatted key file to use for the TLS negotiation."
  32964. msgstr ""
  32965. #. type: deftypevr
  32966. #: guix-git/doc/guix.texi:21837
  32967. #, no-wrap
  32968. msgid "{@code{getmail-retriever-configuration} parameter} string certfile"
  32969. msgstr ""
  32970. #. type: deftypevr
  32971. #: guix-git/doc/guix.texi:21839
  32972. msgid "PEM-formatted certificate file to use for the TLS negotiation."
  32973. msgstr ""
  32974. #. type: deftypevr
  32975. #: guix-git/doc/guix.texi:21844
  32976. #, no-wrap
  32977. msgid "{@code{getmail-retriever-configuration} parameter} string ca-certs"
  32978. msgstr ""
  32979. #. type: deftypevr
  32980. #: guix-git/doc/guix.texi:21846
  32981. #, fuzzy
  32982. msgid "CA certificates to use."
  32983. msgstr "证书服务"
  32984. #. type: deftypevr
  32985. #: guix-git/doc/guix.texi:21851
  32986. #, no-wrap
  32987. msgid "{@code{getmail-retriever-configuration} parameter} parameter-alist extra-parameters"
  32988. msgstr ""
  32989. #. type: deftypevr
  32990. #: guix-git/doc/guix.texi:21853
  32991. msgid "Extra retriever parameters."
  32992. msgstr ""
  32993. #. type: deftypevr
  32994. #: guix-git/doc/guix.texi:21860
  32995. #, no-wrap
  32996. msgid "{@code{getmail-configuration-file} parameter} getmail-destination-configuration destination"
  32997. msgstr ""
  32998. #. type: deftypevr
  32999. #: guix-git/doc/guix.texi:21862
  33000. msgid "What to do with retrieved messages."
  33001. msgstr ""
  33002. #. type: deftypevr
  33003. #: guix-git/doc/guix.texi:21864
  33004. msgid "Available @code{getmail-destination-configuration} fields are:"
  33005. msgstr ""
  33006. #. type: deftypevr
  33007. #: guix-git/doc/guix.texi:21865
  33008. #, no-wrap
  33009. msgid "{@code{getmail-destination-configuration} parameter} string type"
  33010. msgstr ""
  33011. #. type: deftypevr
  33012. #: guix-git/doc/guix.texi:21868
  33013. msgid "The type of mail destination. Valid values include @samp{Maildir}, @samp{Mboxrd} and @samp{MDA_external}."
  33014. msgstr ""
  33015. #. type: deftypevr
  33016. #: guix-git/doc/guix.texi:21873
  33017. #, no-wrap
  33018. msgid "{@code{getmail-destination-configuration} parameter} string-or-filelike path"
  33019. msgstr ""
  33020. #. type: deftypevr
  33021. #: guix-git/doc/guix.texi:21876
  33022. msgid "The path option for the mail destination. The behaviour depends on the chosen type."
  33023. msgstr ""
  33024. #. type: deftypevr
  33025. #: guix-git/doc/guix.texi:21881
  33026. #, no-wrap
  33027. msgid "{@code{getmail-destination-configuration} parameter} parameter-alist extra-parameters"
  33028. msgstr ""
  33029. #. type: deftypevr
  33030. #: guix-git/doc/guix.texi:21883
  33031. msgid "Extra destination parameters"
  33032. msgstr ""
  33033. #. type: deftypevr
  33034. #: guix-git/doc/guix.texi:21890
  33035. #, no-wrap
  33036. msgid "{@code{getmail-configuration-file} parameter} getmail-options-configuration options"
  33037. msgstr ""
  33038. #. type: deftypevr
  33039. #: guix-git/doc/guix.texi:21892
  33040. msgid "Configure getmail."
  33041. msgstr ""
  33042. #. type: deftypevr
  33043. #: guix-git/doc/guix.texi:21894
  33044. msgid "Available @code{getmail-options-configuration} fields are:"
  33045. msgstr ""
  33046. #. type: deftypevr
  33047. #: guix-git/doc/guix.texi:21895
  33048. #, no-wrap
  33049. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer verbose"
  33050. msgstr ""
  33051. #. type: deftypevr
  33052. #: guix-git/doc/guix.texi:21900
  33053. msgid "If set to @samp{0}, getmail will only print warnings and errors. A value of @samp{1} means that messages will be printed about retrieving and deleting messages. If set to @samp{2}, getmail will print messages about each of its actions."
  33054. msgstr ""
  33055. #. type: deftypevr
  33056. #: guix-git/doc/guix.texi:21902 guix-git/doc/guix.texi:28474
  33057. #: guix-git/doc/guix.texi:29062 guix-git/doc/guix.texi:29207
  33058. msgid "Defaults to @samp{1}."
  33059. msgstr ""
  33060. #. type: deftypevr
  33061. #: guix-git/doc/guix.texi:21905
  33062. #, no-wrap
  33063. msgid "{@code{getmail-options-configuration} parameter} boolean read-all"
  33064. msgstr ""
  33065. #. type: deftypevr
  33066. #: guix-git/doc/guix.texi:21908
  33067. msgid "If true, getmail will retrieve all available messages. Otherwise it will only retrieve messages it hasn't seen previously."
  33068. msgstr ""
  33069. #. type: deftypevr
  33070. #: guix-git/doc/guix.texi:21913
  33071. #, no-wrap
  33072. msgid "{@code{getmail-options-configuration} parameter} boolean delete"
  33073. msgstr ""
  33074. #. type: deftypevr
  33075. #: guix-git/doc/guix.texi:21917
  33076. msgid "If set to true, messages will be deleted from the server after retrieving and successfully delivering them. Otherwise, messages will be left on the server."
  33077. msgstr ""
  33078. #. type: deftypevr
  33079. #: guix-git/doc/guix.texi:21922
  33080. #, no-wrap
  33081. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-after"
  33082. msgstr ""
  33083. #. type: deftypevr
  33084. #: guix-git/doc/guix.texi:21927
  33085. msgid "Getmail will delete messages this number of days after seeing them, if they have been delivered. This means messages will be left on the server this number of days after delivering them. A value of @samp{0} disabled this feature."
  33086. msgstr ""
  33087. #. type: deftypevr
  33088. #: guix-git/doc/guix.texi:21932
  33089. #, no-wrap
  33090. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-bigger-than"
  33091. msgstr ""
  33092. #. type: deftypevr
  33093. #: guix-git/doc/guix.texi:21936
  33094. msgid "Delete messages larger than this of bytes after retrieving them, even if the delete and delete-after options are disabled. A value of @samp{0} disables this feature."
  33095. msgstr ""
  33096. #. type: deftypevr
  33097. #: guix-git/doc/guix.texi:21941
  33098. #, no-wrap
  33099. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-bytes-per-session"
  33100. msgstr ""
  33101. #. type: deftypevr
  33102. #: guix-git/doc/guix.texi:21944
  33103. msgid "Retrieve messages totalling up to this number of bytes before closing the session with the server. A value of @samp{0} disables this feature."
  33104. msgstr ""
  33105. #. type: deftypevr
  33106. #: guix-git/doc/guix.texi:21949
  33107. #, no-wrap
  33108. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-message-size"
  33109. msgstr ""
  33110. #. type: deftypevr
  33111. #: guix-git/doc/guix.texi:21952
  33112. msgid "Don't retrieve messages larger than this number of bytes. A value of @samp{0} disables this feature."
  33113. msgstr ""
  33114. #. type: deftypevr
  33115. #: guix-git/doc/guix.texi:21957
  33116. #, no-wrap
  33117. msgid "{@code{getmail-options-configuration} parameter} boolean delivered-to"
  33118. msgstr ""
  33119. #. type: deftypevr
  33120. #: guix-git/doc/guix.texi:21959
  33121. msgid "If true, getmail will add a Delivered-To header to messages."
  33122. msgstr ""
  33123. #. type: deftypevr
  33124. #: guix-git/doc/guix.texi:21964
  33125. #, no-wrap
  33126. msgid "{@code{getmail-options-configuration} parameter} boolean received"
  33127. msgstr ""
  33128. #. type: deftypevr
  33129. #: guix-git/doc/guix.texi:21966
  33130. msgid "If set, getmail adds a Received header to the messages."
  33131. msgstr ""
  33132. #. type: deftypevr
  33133. #: guix-git/doc/guix.texi:21971
  33134. #, no-wrap
  33135. msgid "{@code{getmail-options-configuration} parameter} string message-log"
  33136. msgstr ""
  33137. #. type: deftypevr
  33138. #: guix-git/doc/guix.texi:21974
  33139. msgid "Getmail will record a log of its actions to the named file. A value of @samp{\"\"} disables this feature."
  33140. msgstr ""
  33141. #. type: deftypevr
  33142. #: guix-git/doc/guix.texi:21979
  33143. #, no-wrap
  33144. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-syslog"
  33145. msgstr ""
  33146. #. type: deftypevr
  33147. #: guix-git/doc/guix.texi:21982
  33148. msgid "If true, getmail will record a log of its actions using the system logger."
  33149. msgstr ""
  33150. #. type: deftypevr
  33151. #: guix-git/doc/guix.texi:21987
  33152. #, no-wrap
  33153. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-verbose"
  33154. msgstr ""
  33155. #. type: deftypevr
  33156. #: guix-git/doc/guix.texi:21991
  33157. msgid "If true, getmail will log information about messages not retrieved and the reason for not retrieving them, as well as starting and ending information lines."
  33158. msgstr ""
  33159. #. type: deftypevr
  33160. #: guix-git/doc/guix.texi:21996
  33161. #, no-wrap
  33162. msgid "{@code{getmail-options-configuration} parameter} parameter-alist extra-parameters"
  33163. msgstr ""
  33164. #. type: deftypevr
  33165. #: guix-git/doc/guix.texi:21998
  33166. msgid "Extra options to include."
  33167. msgstr ""
  33168. #. type: deftypevr
  33169. #: guix-git/doc/guix.texi:22007
  33170. #, no-wrap
  33171. msgid "{@code{getmail-configuration} parameter} list idle"
  33172. msgstr ""
  33173. #. type: deftypevr
  33174. #: guix-git/doc/guix.texi:22011
  33175. msgid "A list of mailboxes that getmail should wait on the server for new mail notifications. This depends on the server supporting the IDLE extension."
  33176. msgstr ""
  33177. #. type: deftypevr
  33178. #: guix-git/doc/guix.texi:22016
  33179. #, no-wrap
  33180. msgid "{@code{getmail-configuration} parameter} list environment-variables"
  33181. msgstr ""
  33182. #. type: deftypevr
  33183. #: guix-git/doc/guix.texi:22018
  33184. msgid "Environment variables to set for getmail."
  33185. msgstr ""
  33186. #. type: subsubheading
  33187. #: guix-git/doc/guix.texi:22023
  33188. #, no-wrap
  33189. msgid "Mail Aliases Service"
  33190. msgstr ""
  33191. #. type: cindex
  33192. #: guix-git/doc/guix.texi:22025
  33193. #, no-wrap
  33194. msgid "email aliases"
  33195. msgstr ""
  33196. #. type: cindex
  33197. #: guix-git/doc/guix.texi:22026
  33198. #, no-wrap
  33199. msgid "aliases, for email addresses"
  33200. msgstr ""
  33201. #. type: deffn
  33202. #: guix-git/doc/guix.texi:22028
  33203. #, no-wrap
  33204. msgid "{Scheme Variable} mail-aliases-service-type"
  33205. msgstr ""
  33206. #. type: deffn
  33207. #: guix-git/doc/guix.texi:22031
  33208. msgid "This is the type of the service which provides @code{/etc/aliases}, specifying how to deliver mail to users on this system."
  33209. msgstr ""
  33210. #. type: lisp
  33211. #: guix-git/doc/guix.texi:22036
  33212. #, no-wrap
  33213. msgid ""
  33214. "(service mail-aliases-service-type\n"
  33215. " '((\"postmaster\" \"bob\")\n"
  33216. " (\"bob\" \"bob@@example.com\" \"bob@@example2.com\")))\n"
  33217. msgstr ""
  33218. #. type: Plain text
  33219. #: guix-git/doc/guix.texi:22044
  33220. msgid "The configuration for a @code{mail-aliases-service-type} service is an association list denoting how to deliver mail that comes to this system. Each entry is of the form @code{(alias addresses ...)}, with @code{alias} specifying the local alias and @code{addresses} specifying where to deliver this user's mail."
  33221. msgstr ""
  33222. #. type: Plain text
  33223. #: guix-git/doc/guix.texi:22050
  33224. msgid "The aliases aren't required to exist as users on the local system. In the above example, there doesn't need to be a @code{postmaster} entry in the @code{operating-system}'s @code{user-accounts} in order to deliver the @code{postmaster} mail to @code{bob} (which subsequently would deliver mail to @code{bob@@example.com} and @code{bob@@example2.com})."
  33225. msgstr ""
  33226. #. type: cindex
  33227. #: guix-git/doc/guix.texi:22051 guix-git/doc/guix.texi:22052
  33228. #, no-wrap
  33229. msgid "GNU Mailutils IMAP4 Daemon"
  33230. msgstr ""
  33231. #. type: deffn
  33232. #: guix-git/doc/guix.texi:22054
  33233. #, no-wrap
  33234. msgid "{Scheme Variable} imap4d-service-type"
  33235. msgstr ""
  33236. #. type: deffn
  33237. #: guix-git/doc/guix.texi:22058
  33238. msgid "This is the type of the GNU Mailutils IMAP4 Daemon (@pxref{imap4d,,, mailutils, GNU Mailutils Manual}), whose value should be an @code{imap4d-configuration} object as in this example:"
  33239. msgstr ""
  33240. #. type: lisp
  33241. #: guix-git/doc/guix.texi:22063
  33242. #, no-wrap
  33243. msgid ""
  33244. "(service imap4d-service-type\n"
  33245. " (imap4d-configuration\n"
  33246. " (config-file (local-file \"imap4d.conf\"))))\n"
  33247. msgstr ""
  33248. #. type: deftp
  33249. #: guix-git/doc/guix.texi:22066
  33250. #, no-wrap
  33251. msgid "{Data Type} imap4d-configuration"
  33252. msgstr ""
  33253. #. type: deftp
  33254. #: guix-git/doc/guix.texi:22068
  33255. msgid "Data type representing the configuration of @command{imap4d}."
  33256. msgstr ""
  33257. #. type: item
  33258. #: guix-git/doc/guix.texi:22070
  33259. #, no-wrap
  33260. msgid "@code{package} (default: @code{mailutils})"
  33261. msgstr ""
  33262. #. type: table
  33263. #: guix-git/doc/guix.texi:22072
  33264. msgid "The package that provides @command{imap4d}."
  33265. msgstr ""
  33266. #. type: item
  33267. #: guix-git/doc/guix.texi:22073
  33268. #, no-wrap
  33269. msgid "@code{config-file} (default: @code{%default-imap4d-config-file})"
  33270. msgstr ""
  33271. #. type: table
  33272. #: guix-git/doc/guix.texi:22077
  33273. msgid "File-like object of the configuration file to use, by default it will listen on TCP port 143 of @code{localhost}. @xref{Conf-imap4d,,, mailutils, GNU Mailutils Manual}, for details."
  33274. msgstr ""
  33275. #. type: subsubheading
  33276. #: guix-git/doc/guix.texi:22081
  33277. #, fuzzy, no-wrap
  33278. msgid "Radicale Service"
  33279. msgstr "邮件服务"
  33280. #. type: cindex
  33281. #: guix-git/doc/guix.texi:22082
  33282. #, no-wrap
  33283. msgid "CalDAV"
  33284. msgstr ""
  33285. #. type: cindex
  33286. #: guix-git/doc/guix.texi:22083
  33287. #, no-wrap
  33288. msgid "CardDAV"
  33289. msgstr ""
  33290. #. type: deffn
  33291. #: guix-git/doc/guix.texi:22085
  33292. #, no-wrap
  33293. msgid "{Scheme Variable} radicale-service-type"
  33294. msgstr ""
  33295. #. type: deffn
  33296. #: guix-git/doc/guix.texi:22088
  33297. msgid "This is the type of the @uref{https://radicale.org, Radicale} CalDAV/CardDAV server whose value should be a @code{radicale-configuration}."
  33298. msgstr ""
  33299. #. type: deftp
  33300. #: guix-git/doc/guix.texi:22090
  33301. #, fuzzy, no-wrap
  33302. msgid "{Data Type} radicale-configuration"
  33303. msgstr "{数据类型} build-machine"
  33304. #. type: deftp
  33305. #: guix-git/doc/guix.texi:22092
  33306. #, fuzzy
  33307. msgid "Data type representing the configuration of @command{radicale}."
  33308. msgstr "管理操作系统配置。"
  33309. #. type: item
  33310. #: guix-git/doc/guix.texi:22094
  33311. #, fuzzy, no-wrap
  33312. msgid "@code{package} (default: @code{radicale})"
  33313. msgstr "@code{mate}(默认值:@code{mate})"
  33314. #. type: table
  33315. #: guix-git/doc/guix.texi:22096
  33316. msgid "The package that provides @command{radicale}."
  33317. msgstr ""
  33318. #. type: item
  33319. #: guix-git/doc/guix.texi:22097
  33320. #, fuzzy, no-wrap
  33321. msgid "@code{config-file} (default: @code{%default-radicale-config-file})"
  33322. msgstr "@code{gnome}(默认值:@code{gnome})"
  33323. #. type: table
  33324. #: guix-git/doc/guix.texi:22101
  33325. msgid "File-like object of the configuration file to use, by default it will listen on TCP port 5232 of @code{localhost} and use the @code{htpasswd} file at @file{/var/lib/radicale/users} with no (@code{plain}) encryption."
  33326. msgstr ""
  33327. #. type: cindex
  33328. #: guix-git/doc/guix.texi:22108
  33329. #, no-wrap
  33330. msgid "messaging"
  33331. msgstr ""
  33332. #. type: cindex
  33333. #: guix-git/doc/guix.texi:22109
  33334. #, no-wrap
  33335. msgid "jabber"
  33336. msgstr ""
  33337. #. type: cindex
  33338. #: guix-git/doc/guix.texi:22110
  33339. #, no-wrap
  33340. msgid "XMPP"
  33341. msgstr ""
  33342. #. type: Plain text
  33343. #: guix-git/doc/guix.texi:22114
  33344. msgid "The @code{(gnu services messaging)} module provides Guix service definitions for messaging services. Currently it provides the following services:"
  33345. msgstr ""
  33346. #. type: subsubheading
  33347. #: guix-git/doc/guix.texi:22115
  33348. #, no-wrap
  33349. msgid "Prosody Service"
  33350. msgstr ""
  33351. #. type: deffn
  33352. #: guix-git/doc/guix.texi:22117
  33353. #, no-wrap
  33354. msgid "{Scheme Variable} prosody-service-type"
  33355. msgstr ""
  33356. #. type: deffn
  33357. #: guix-git/doc/guix.texi:22121
  33358. msgid "This is the type for the @uref{https://prosody.im, Prosody XMPP communication server}. Its value must be a @code{prosody-configuration} record as in this example:"
  33359. msgstr ""
  33360. #. type: lisp
  33361. #: guix-git/doc/guix.texi:22136
  33362. #, no-wrap
  33363. msgid ""
  33364. "(service prosody-service-type\n"
  33365. " (prosody-configuration\n"
  33366. " (modules-enabled (cons* \"groups\" \"mam\" %default-modules-enabled))\n"
  33367. " (int-components\n"
  33368. " (list\n"
  33369. " (int-component-configuration\n"
  33370. " (hostname \"conference.example.net\")\n"
  33371. " (plugin \"muc\")\n"
  33372. " (mod-muc (mod-muc-configuration)))))\n"
  33373. " (virtualhosts\n"
  33374. " (list\n"
  33375. " (virtualhost-configuration\n"
  33376. " (domain \"example.net\"))))))\n"
  33377. msgstr ""
  33378. #. type: deffn
  33379. #: guix-git/doc/guix.texi:22139
  33380. msgid "See below for details about @code{prosody-configuration}."
  33381. msgstr ""
  33382. #. type: Plain text
  33383. #: guix-git/doc/guix.texi:22145
  33384. msgid "By default, Prosody does not need much configuration. Only one @code{virtualhosts} field is needed: it specifies the domain you wish Prosody to serve."
  33385. msgstr ""
  33386. #. type: Plain text
  33387. #: guix-git/doc/guix.texi:22148
  33388. msgid "You can perform various sanity checks on the generated configuration with the @code{prosodyctl check} command."
  33389. msgstr ""
  33390. #. type: Plain text
  33391. #: guix-git/doc/guix.texi:22152
  33392. msgid "Prosodyctl will also help you to import certificates from the @code{letsencrypt} directory so that the @code{prosody} user can access them. See @url{https://prosody.im/doc/letsencrypt}."
  33393. msgstr ""
  33394. #. type: example
  33395. #: guix-git/doc/guix.texi:22155
  33396. #, no-wrap
  33397. msgid "prosodyctl --root cert import /etc/letsencrypt/live\n"
  33398. msgstr ""
  33399. #. type: Plain text
  33400. #: guix-git/doc/guix.texi:22162
  33401. msgid "The available configuration parameters follow. Each parameter definition is preceded by its type; for example, @samp{string-list foo} indicates that the @code{foo} parameter should be specified as a list of strings. Types starting with @code{maybe-} denote parameters that won't show up in @code{prosody.cfg.lua} when their value is @code{'disabled}."
  33402. msgstr ""
  33403. #. type: Plain text
  33404. #: guix-git/doc/guix.texi:22166
  33405. msgid "There is also a way to specify the configuration as a string, if you have an old @code{prosody.cfg.lua} file that you want to port over from some other system; see the end for more details."
  33406. msgstr ""
  33407. #. type: Plain text
  33408. #: guix-git/doc/guix.texi:22169
  33409. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a file name."
  33410. msgstr ""
  33411. #. type: Plain text
  33412. #: guix-git/doc/guix.texi:22179
  33413. msgid "Available @code{prosody-configuration} fields are:"
  33414. msgstr ""
  33415. #. type: deftypevr
  33416. #: guix-git/doc/guix.texi:22180
  33417. #, no-wrap
  33418. msgid "{@code{prosody-configuration} parameter} package prosody"
  33419. msgstr ""
  33420. #. type: deftypevr
  33421. #: guix-git/doc/guix.texi:22182
  33422. msgid "The Prosody package."
  33423. msgstr ""
  33424. #. type: deftypevr
  33425. #: guix-git/doc/guix.texi:22184
  33426. #, no-wrap
  33427. msgid "{@code{prosody-configuration} parameter} file-name data-path"
  33428. msgstr ""
  33429. #. type: deftypevr
  33430. #: guix-git/doc/guix.texi:22188
  33431. msgid "Location of the Prosody data storage directory. See @url{https://prosody.im/doc/configure}. Defaults to @samp{\"/var/lib/prosody\"}."
  33432. msgstr ""
  33433. #. type: deftypevr
  33434. #: guix-git/doc/guix.texi:22190
  33435. #, no-wrap
  33436. msgid "{@code{prosody-configuration} parameter} file-object-list plugin-paths"
  33437. msgstr ""
  33438. #. type: deftypevr
  33439. #: guix-git/doc/guix.texi:22194
  33440. msgid "Additional plugin directories. They are searched in all the specified paths in order. See @url{https://prosody.im/doc/plugins_directory}. Defaults to @samp{()}."
  33441. msgstr ""
  33442. #. type: deftypevr
  33443. #: guix-git/doc/guix.texi:22196
  33444. #, no-wrap
  33445. msgid "{@code{prosody-configuration} parameter} file-name certificates"
  33446. msgstr ""
  33447. #. type: deftypevr
  33448. #: guix-git/doc/guix.texi:22201
  33449. msgid "Every virtual host and component needs a certificate so that clients and servers can securely verify its identity. Prosody will automatically load certificates/keys from the directory specified here. Defaults to @samp{\"/etc/prosody/certs\"}."
  33450. msgstr ""
  33451. #. type: deftypevr
  33452. #: guix-git/doc/guix.texi:22203
  33453. #, no-wrap
  33454. msgid "{@code{prosody-configuration} parameter} string-list admins"
  33455. msgstr ""
  33456. #. type: deftypevr
  33457. #: guix-git/doc/guix.texi:22209
  33458. msgid "This is a list of accounts that are admins for the server. Note that you must create the accounts separately. See @url{https://prosody.im/doc/admins} and @url{https://prosody.im/doc/creating_accounts}. Example: @code{(admins '(\"user1@@example.com\" \"user2@@example.net\"))} Defaults to @samp{()}."
  33459. msgstr ""
  33460. #. type: deftypevr
  33461. #: guix-git/doc/guix.texi:22211
  33462. #, no-wrap
  33463. msgid "{@code{prosody-configuration} parameter} boolean use-libevent?"
  33464. msgstr ""
  33465. #. type: deftypevr
  33466. #: guix-git/doc/guix.texi:22215
  33467. msgid "Enable use of libevent for better performance under high load. See @url{https://prosody.im/doc/libevent}. Defaults to @samp{#f}."
  33468. msgstr ""
  33469. #. type: deftypevr
  33470. #: guix-git/doc/guix.texi:22217
  33471. #, no-wrap
  33472. msgid "{@code{prosody-configuration} parameter} module-list modules-enabled"
  33473. msgstr ""
  33474. #. type: deftypevr
  33475. #: guix-git/doc/guix.texi:22223
  33476. msgid "This is the list of modules Prosody will load on startup. It looks for @code{mod_modulename.lua} in the plugins folder, so make sure that exists too. Documentation on modules can be found at: @url{https://prosody.im/doc/modules}. Defaults to @samp{(\"roster\" \"saslauth\" \"tls\" \"dialback\" \"disco\" \"carbons\" \"private\" \"blocklist\" \"vcard\" \"version\" \"uptime\" \"time\" \"ping\" \"pep\" \"register\" \"admin_adhoc\")}."
  33477. msgstr ""
  33478. #. type: deftypevr
  33479. #: guix-git/doc/guix.texi:22225
  33480. #, no-wrap
  33481. msgid "{@code{prosody-configuration} parameter} string-list modules-disabled"
  33482. msgstr ""
  33483. #. type: deftypevr
  33484. #: guix-git/doc/guix.texi:22229
  33485. msgid "@samp{\"offline\"}, @samp{\"c2s\"} and @samp{\"s2s\"} are auto-loaded, but should you want to disable them then add them to this list. Defaults to @samp{()}."
  33486. msgstr ""
  33487. #. type: deftypevr
  33488. #: guix-git/doc/guix.texi:22231
  33489. #, no-wrap
  33490. msgid "{@code{prosody-configuration} parameter} file-object groups-file"
  33491. msgstr ""
  33492. #. type: deftypevr
  33493. #: guix-git/doc/guix.texi:22236
  33494. msgid "Path to a text file where the shared groups are defined. If this path is empty then @samp{mod_groups} does nothing. See @url{https://prosody.im/doc/modules/mod_groups}. Defaults to @samp{\"/var/lib/prosody/sharedgroups.txt\"}."
  33495. msgstr ""
  33496. #. type: deftypevr
  33497. #: guix-git/doc/guix.texi:22238
  33498. #, no-wrap
  33499. msgid "{@code{prosody-configuration} parameter} boolean allow-registration?"
  33500. msgstr ""
  33501. #. type: deftypevr
  33502. #: guix-git/doc/guix.texi:22242
  33503. msgid "Disable account creation by default, for security. See @url{https://prosody.im/doc/creating_accounts}. Defaults to @samp{#f}."
  33504. msgstr ""
  33505. #. type: deftypevr
  33506. #: guix-git/doc/guix.texi:22244
  33507. #, no-wrap
  33508. msgid "{@code{prosody-configuration} parameter} maybe-ssl-configuration ssl"
  33509. msgstr ""
  33510. #. type: deftypevr
  33511. #: guix-git/doc/guix.texi:22249
  33512. msgid "These are the SSL/TLS-related settings. Most of them are disabled so to use Prosody's defaults. If you do not completely understand these options, do not add them to your config, it is easy to lower the security of your server using them. See @url{https://prosody.im/doc/advanced_ssl_config}."
  33513. msgstr ""
  33514. #. type: deftypevr
  33515. #: guix-git/doc/guix.texi:22251
  33516. msgid "Available @code{ssl-configuration} fields are:"
  33517. msgstr ""
  33518. #. type: deftypevr
  33519. #: guix-git/doc/guix.texi:22252
  33520. #, no-wrap
  33521. msgid "{@code{ssl-configuration} parameter} maybe-string protocol"
  33522. msgstr ""
  33523. #. type: deftypevr
  33524. #: guix-git/doc/guix.texi:22254
  33525. msgid "This determines what handshake to use."
  33526. msgstr ""
  33527. #. type: deftypevr
  33528. #: guix-git/doc/guix.texi:22256
  33529. #, no-wrap
  33530. msgid "{@code{ssl-configuration} parameter} maybe-file-name key"
  33531. msgstr ""
  33532. #. type: deftypevr
  33533. #: guix-git/doc/guix.texi:22258
  33534. msgid "Path to your private key file."
  33535. msgstr ""
  33536. #. type: deftypevr
  33537. #: guix-git/doc/guix.texi:22260
  33538. #, no-wrap
  33539. msgid "{@code{ssl-configuration} parameter} maybe-file-name certificate"
  33540. msgstr ""
  33541. #. type: deftypevr
  33542. #: guix-git/doc/guix.texi:22262
  33543. msgid "Path to your certificate file."
  33544. msgstr ""
  33545. #. type: deftypevr
  33546. #: guix-git/doc/guix.texi:22264
  33547. #, no-wrap
  33548. msgid "{@code{ssl-configuration} parameter} file-object capath"
  33549. msgstr ""
  33550. #. type: deftypevr
  33551. #: guix-git/doc/guix.texi:22268
  33552. msgid "Path to directory containing root certificates that you wish Prosody to trust when verifying the certificates of remote servers. Defaults to @samp{\"/etc/ssl/certs\"}."
  33553. msgstr ""
  33554. #. type: deftypevr
  33555. #: guix-git/doc/guix.texi:22270
  33556. #, no-wrap
  33557. msgid "{@code{ssl-configuration} parameter} maybe-file-object cafile"
  33558. msgstr ""
  33559. #. type: deftypevr
  33560. #: guix-git/doc/guix.texi:22273
  33561. msgid "Path to a file containing root certificates that you wish Prosody to trust. Similar to @code{capath} but with all certificates concatenated together."
  33562. msgstr ""
  33563. #. type: deftypevr
  33564. #: guix-git/doc/guix.texi:22275
  33565. #, no-wrap
  33566. msgid "{@code{ssl-configuration} parameter} maybe-string-list verify"
  33567. msgstr ""
  33568. #. type: deftypevr
  33569. #: guix-git/doc/guix.texi:22278
  33570. msgid "A list of verification options (these mostly map to OpenSSL's @code{set_verify()} flags)."
  33571. msgstr ""
  33572. #. type: deftypevr
  33573. #: guix-git/doc/guix.texi:22280
  33574. #, no-wrap
  33575. msgid "{@code{ssl-configuration} parameter} maybe-string-list options"
  33576. msgstr ""
  33577. #. type: deftypevr
  33578. #: guix-git/doc/guix.texi:22284
  33579. msgid "A list of general options relating to SSL/TLS@. These map to OpenSSL's @code{set_options()}. For a full list of options available in LuaSec, see the LuaSec source."
  33580. msgstr ""
  33581. #. type: deftypevr
  33582. #: guix-git/doc/guix.texi:22286
  33583. #, no-wrap
  33584. msgid "{@code{ssl-configuration} parameter} maybe-non-negative-integer depth"
  33585. msgstr ""
  33586. #. type: deftypevr
  33587. #: guix-git/doc/guix.texi:22289
  33588. msgid "How long a chain of certificate authorities to check when looking for a trusted root certificate."
  33589. msgstr ""
  33590. #. type: deftypevr
  33591. #: guix-git/doc/guix.texi:22291
  33592. #, no-wrap
  33593. msgid "{@code{ssl-configuration} parameter} maybe-string ciphers"
  33594. msgstr ""
  33595. #. type: deftypevr
  33596. #: guix-git/doc/guix.texi:22294
  33597. msgid "An OpenSSL cipher string. This selects what ciphers Prosody will offer to clients, and in what order."
  33598. msgstr ""
  33599. #. type: deftypevr
  33600. #: guix-git/doc/guix.texi:22296
  33601. #, no-wrap
  33602. msgid "{@code{ssl-configuration} parameter} maybe-file-name dhparam"
  33603. msgstr ""
  33604. #. type: deftypevr
  33605. #: guix-git/doc/guix.texi:22300
  33606. msgid "A path to a file containing parameters for Diffie-Hellman key exchange. You can create such a file with: @code{openssl dhparam -out /etc/prosody/certs/dh-2048.pem 2048}"
  33607. msgstr ""
  33608. #. type: deftypevr
  33609. #: guix-git/doc/guix.texi:22302
  33610. #, no-wrap
  33611. msgid "{@code{ssl-configuration} parameter} maybe-string curve"
  33612. msgstr ""
  33613. #. type: deftypevr
  33614. #: guix-git/doc/guix.texi:22305
  33615. msgid "Curve for Elliptic curve Diffie-Hellman. Prosody's default is @samp{\"secp384r1\"}."
  33616. msgstr ""
  33617. #. type: deftypevr
  33618. #: guix-git/doc/guix.texi:22307
  33619. #, no-wrap
  33620. msgid "{@code{ssl-configuration} parameter} maybe-string-list verifyext"
  33621. msgstr ""
  33622. #. type: deftypevr
  33623. #: guix-git/doc/guix.texi:22309
  33624. msgid "A list of ``extra'' verification options."
  33625. msgstr ""
  33626. #. type: deftypevr
  33627. #: guix-git/doc/guix.texi:22311
  33628. #, no-wrap
  33629. msgid "{@code{ssl-configuration} parameter} maybe-string password"
  33630. msgstr ""
  33631. #. type: deftypevr
  33632. #: guix-git/doc/guix.texi:22313
  33633. msgid "Password for encrypted private keys."
  33634. msgstr ""
  33635. #. type: deftypevr
  33636. #: guix-git/doc/guix.texi:22317
  33637. #, no-wrap
  33638. msgid "{@code{prosody-configuration} parameter} boolean c2s-require-encryption?"
  33639. msgstr ""
  33640. #. type: deftypevr
  33641. #: guix-git/doc/guix.texi:22321
  33642. msgid "Whether to force all client-to-server connections to be encrypted or not. See @url{https://prosody.im/doc/modules/mod_tls}. Defaults to @samp{#f}."
  33643. msgstr ""
  33644. #. type: deftypevr
  33645. #: guix-git/doc/guix.texi:22323
  33646. #, no-wrap
  33647. msgid "{@code{prosody-configuration} parameter} string-list disable-sasl-mechanisms"
  33648. msgstr ""
  33649. #. type: deftypevr
  33650. #: guix-git/doc/guix.texi:22327
  33651. msgid "Set of mechanisms that will never be offered. See @url{https://prosody.im/doc/modules/mod_saslauth}. Defaults to @samp{(\"DIGEST-MD5\")}."
  33652. msgstr ""
  33653. #. type: deftypevr
  33654. #: guix-git/doc/guix.texi:22329
  33655. #, no-wrap
  33656. msgid "{@code{prosody-configuration} parameter} boolean s2s-require-encryption?"
  33657. msgstr ""
  33658. #. type: deftypevr
  33659. #: guix-git/doc/guix.texi:22333
  33660. msgid "Whether to force all server-to-server connections to be encrypted or not. See @url{https://prosody.im/doc/modules/mod_tls}. Defaults to @samp{#f}."
  33661. msgstr ""
  33662. #. type: deftypevr
  33663. #: guix-git/doc/guix.texi:22335
  33664. #, no-wrap
  33665. msgid "{@code{prosody-configuration} parameter} boolean s2s-secure-auth?"
  33666. msgstr ""
  33667. #. type: deftypevr
  33668. #: guix-git/doc/guix.texi:22341
  33669. msgid "Whether to require encryption and certificate authentication. This provides ideal security, but requires servers you communicate with to support encryption AND present valid, trusted certificates. See @url{https://prosody.im/doc/s2s#security}. Defaults to @samp{#f}."
  33670. msgstr ""
  33671. #. type: deftypevr
  33672. #: guix-git/doc/guix.texi:22343
  33673. #, no-wrap
  33674. msgid "{@code{prosody-configuration} parameter} string-list s2s-insecure-domains"
  33675. msgstr ""
  33676. #. type: deftypevr
  33677. #: guix-git/doc/guix.texi:22349
  33678. msgid "Many servers don't support encryption or have invalid or self-signed certificates. You can list domains here that will not be required to authenticate using certificates. They will be authenticated using DNS@. See @url{https://prosody.im/doc/s2s#security}. Defaults to @samp{()}."
  33679. msgstr ""
  33680. #. type: deftypevr
  33681. #: guix-git/doc/guix.texi:22351
  33682. #, no-wrap
  33683. msgid "{@code{prosody-configuration} parameter} string-list s2s-secure-domains"
  33684. msgstr ""
  33685. #. type: deftypevr
  33686. #: guix-git/doc/guix.texi:22356
  33687. msgid "Even if you leave @code{s2s-secure-auth?} disabled, you can still require valid certificates for some domains by specifying a list here. See @url{https://prosody.im/doc/s2s#security}. Defaults to @samp{()}."
  33688. msgstr ""
  33689. #. type: deftypevr
  33690. #: guix-git/doc/guix.texi:22358
  33691. #, no-wrap
  33692. msgid "{@code{prosody-configuration} parameter} string authentication"
  33693. msgstr ""
  33694. #. type: deftypevr
  33695. #: guix-git/doc/guix.texi:22366
  33696. msgid "Select the authentication backend to use. The default provider stores passwords in plaintext and uses Prosody's configured data storage to store the authentication data. If you do not trust your server please see @url{https://prosody.im/doc/modules/mod_auth_internal_hashed} for information about using the hashed backend. See also @url{https://prosody.im/doc/authentication} Defaults to @samp{\"internal_plain\"}."
  33697. msgstr ""
  33698. #. type: deftypevr
  33699. #: guix-git/doc/guix.texi:22368
  33700. #, no-wrap
  33701. msgid "{@code{prosody-configuration} parameter} maybe-string log"
  33702. msgstr ""
  33703. #. type: deftypevr
  33704. #: guix-git/doc/guix.texi:22372
  33705. msgid "Set logging options. Advanced logging configuration is not yet supported by the Prosody service. See @url{https://prosody.im/doc/logging}. Defaults to @samp{\"*syslog\"}."
  33706. msgstr ""
  33707. #. type: deftypevr
  33708. #: guix-git/doc/guix.texi:22374
  33709. #, no-wrap
  33710. msgid "{@code{prosody-configuration} parameter} file-name pidfile"
  33711. msgstr ""
  33712. #. type: deftypevr
  33713. #: guix-git/doc/guix.texi:22377
  33714. msgid "File to write pid in. See @url{https://prosody.im/doc/modules/mod_posix}. Defaults to @samp{\"/var/run/prosody/prosody.pid\"}."
  33715. msgstr ""
  33716. #. type: deftypevr
  33717. #: guix-git/doc/guix.texi:22379
  33718. #, no-wrap
  33719. msgid "{@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size"
  33720. msgstr ""
  33721. #. type: deftypevr
  33722. #: guix-git/doc/guix.texi:22381
  33723. msgid "Maximum allowed size of the HTTP body (in bytes)."
  33724. msgstr ""
  33725. #. type: deftypevr
  33726. #: guix-git/doc/guix.texi:22383
  33727. #, no-wrap
  33728. msgid "{@code{prosody-configuration} parameter} maybe-string http-external-url"
  33729. msgstr ""
  33730. #. type: deftypevr
  33731. #: guix-git/doc/guix.texi:22388
  33732. msgid "Some modules expose their own URL in various ways. This URL is built from the protocol, host and port used. If Prosody sits behind a proxy, the public URL will be @code{http-external-url} instead. See @url{https://prosody.im/doc/http#external_url}."
  33733. msgstr ""
  33734. #. type: deftypevr
  33735. #: guix-git/doc/guix.texi:22390
  33736. #, no-wrap
  33737. msgid "{@code{prosody-configuration} parameter} virtualhost-configuration-list virtualhosts"
  33738. msgstr ""
  33739. #. type: deftypevr
  33740. #: guix-git/doc/guix.texi:22395
  33741. msgid "A host in Prosody is a domain on which user accounts can be created. For example if you want your users to have addresses like @samp{\"john.smith@@example.com\"} then you need to add a host @samp{\"example.com\"}. All options in this list will apply only to this host."
  33742. msgstr ""
  33743. #. type: deftypevr
  33744. #: guix-git/doc/guix.texi:22401
  33745. msgid "Note: the name @emph{virtual} host is used in configuration to avoid confusion with the actual physical host that Prosody is installed on. A single Prosody instance can serve many domains, each one defined as a VirtualHost entry in Prosody's configuration. Conversely a server that hosts a single domain would have just one VirtualHost entry."
  33746. msgstr ""
  33747. #. type: deftypevr
  33748. #: guix-git/doc/guix.texi:22403
  33749. msgid "See @url{https://prosody.im/doc/configure#virtual_host_settings}."
  33750. msgstr ""
  33751. #. type: deftypevr
  33752. #: guix-git/doc/guix.texi:22405
  33753. msgid "Available @code{virtualhost-configuration} fields are:"
  33754. msgstr ""
  33755. #. type: deftypevr
  33756. #: guix-git/doc/guix.texi:22407 guix-git/doc/guix.texi:22429
  33757. #: guix-git/doc/guix.texi:22482
  33758. msgid "all these @code{prosody-configuration} fields: @code{admins}, @code{use-libevent?}, @code{modules-enabled}, @code{modules-disabled}, @code{groups-file}, @code{allow-registration?}, @code{ssl}, @code{c2s-require-encryption?}, @code{disable-sasl-mechanisms}, @code{s2s-require-encryption?}, @code{s2s-secure-auth?}, @code{s2s-insecure-domains}, @code{s2s-secure-domains}, @code{authentication}, @code{log}, @code{http-max-content-size}, @code{http-external-url}, @code{raw-content}, plus:"
  33759. msgstr ""
  33760. #. type: deftypevr
  33761. #: guix-git/doc/guix.texi:22407
  33762. #, no-wrap
  33763. msgid "{@code{virtualhost-configuration} parameter} string domain"
  33764. msgstr ""
  33765. #. type: deftypevr
  33766. #: guix-git/doc/guix.texi:22409
  33767. msgid "Domain you wish Prosody to serve."
  33768. msgstr ""
  33769. #. type: deftypevr
  33770. #: guix-git/doc/guix.texi:22413
  33771. #, no-wrap
  33772. msgid "{@code{prosody-configuration} parameter} int-component-configuration-list int-components"
  33773. msgstr ""
  33774. #. type: deftypevr
  33775. #: guix-git/doc/guix.texi:22418
  33776. msgid "Components are extra services on a server which are available to clients, usually on a subdomain of the main server (such as @samp{\"mycomponent.example.com\"}). Example components might be chatroom servers, user directories, or gateways to other protocols."
  33777. msgstr ""
  33778. #. type: deftypevr
  33779. #: guix-git/doc/guix.texi:22422
  33780. msgid "Internal components are implemented with Prosody-specific plugins. To add an internal component, you simply fill the hostname field, and the plugin you wish to use for the component."
  33781. msgstr ""
  33782. #. type: deftypevr
  33783. #: guix-git/doc/guix.texi:22425
  33784. msgid "See @url{https://prosody.im/doc/components}. Defaults to @samp{()}."
  33785. msgstr ""
  33786. #. type: deftypevr
  33787. #: guix-git/doc/guix.texi:22427
  33788. msgid "Available @code{int-component-configuration} fields are:"
  33789. msgstr ""
  33790. #. type: deftypevr
  33791. #: guix-git/doc/guix.texi:22429
  33792. #, no-wrap
  33793. msgid "{@code{int-component-configuration} parameter} string hostname"
  33794. msgstr ""
  33795. #. type: deftypevr
  33796. #: guix-git/doc/guix.texi:22431 guix-git/doc/guix.texi:22488
  33797. msgid "Hostname of the component."
  33798. msgstr ""
  33799. #. type: deftypevr
  33800. #: guix-git/doc/guix.texi:22433
  33801. #, no-wrap
  33802. msgid "{@code{int-component-configuration} parameter} string plugin"
  33803. msgstr ""
  33804. #. type: deftypevr
  33805. #: guix-git/doc/guix.texi:22435
  33806. msgid "Plugin you wish to use for the component."
  33807. msgstr ""
  33808. #. type: deftypevr
  33809. #: guix-git/doc/guix.texi:22437
  33810. #, no-wrap
  33811. msgid "{@code{int-component-configuration} parameter} maybe-mod-muc-configuration mod-muc"
  33812. msgstr ""
  33813. #. type: deftypevr
  33814. #: guix-git/doc/guix.texi:22440
  33815. msgid "Multi-user chat (MUC) is Prosody's module for allowing you to create hosted chatrooms/conferences for XMPP users."
  33816. msgstr ""
  33817. #. type: deftypevr
  33818. #: guix-git/doc/guix.texi:22444
  33819. msgid "General information on setting up and using multi-user chatrooms can be found in the ``Chatrooms'' documentation (@url{https://prosody.im/doc/chatrooms}), which you should read if you are new to XMPP chatrooms."
  33820. msgstr ""
  33821. #. type: deftypevr
  33822. #: guix-git/doc/guix.texi:22446
  33823. msgid "See also @url{https://prosody.im/doc/modules/mod_muc}."
  33824. msgstr ""
  33825. #. type: deftypevr
  33826. #: guix-git/doc/guix.texi:22448
  33827. msgid "Available @code{mod-muc-configuration} fields are:"
  33828. msgstr ""
  33829. #. type: deftypevr
  33830. #: guix-git/doc/guix.texi:22449
  33831. #, no-wrap
  33832. msgid "{@code{mod-muc-configuration} parameter} string name"
  33833. msgstr ""
  33834. #. type: deftypevr
  33835. #: guix-git/doc/guix.texi:22452
  33836. msgid "The name to return in service discovery responses. Defaults to @samp{\"Prosody Chatrooms\"}."
  33837. msgstr ""
  33838. #. type: deftypevr
  33839. #: guix-git/doc/guix.texi:22454
  33840. #, no-wrap
  33841. msgid "{@code{mod-muc-configuration} parameter} string-or-boolean restrict-room-creation"
  33842. msgstr ""
  33843. #. type: deftypevr
  33844. #: guix-git/doc/guix.texi:22461
  33845. msgid "If @samp{#t}, this will only allow admins to create new chatrooms. Otherwise anyone can create a room. The value @samp{\"local\"} restricts room creation to users on the service's parent domain. E.g.@: @samp{user@@example.com} can create rooms on @samp{rooms.example.com}. The value @samp{\"admin\"} restricts to service administrators only. Defaults to @samp{#f}."
  33846. msgstr ""
  33847. #. type: deftypevr
  33848. #: guix-git/doc/guix.texi:22463
  33849. #, no-wrap
  33850. msgid "{@code{mod-muc-configuration} parameter} non-negative-integer max-history-messages"
  33851. msgstr ""
  33852. #. type: deftypevr
  33853. #: guix-git/doc/guix.texi:22467
  33854. msgid "Maximum number of history messages that will be sent to the member that has just joined the room. Defaults to @samp{20}."
  33855. msgstr ""
  33856. #. type: deftypevr
  33857. #: guix-git/doc/guix.texi:22473
  33858. #, no-wrap
  33859. msgid "{@code{prosody-configuration} parameter} ext-component-configuration-list ext-components"
  33860. msgstr ""
  33861. #. type: deftypevr
  33862. #: guix-git/doc/guix.texi:22478
  33863. msgid "External components use XEP-0114, which most standalone components support. To add an external component, you simply fill the hostname field. See @url{https://prosody.im/doc/components}. Defaults to @samp{()}."
  33864. msgstr ""
  33865. #. type: deftypevr
  33866. #: guix-git/doc/guix.texi:22480
  33867. msgid "Available @code{ext-component-configuration} fields are:"
  33868. msgstr ""
  33869. #. type: deftypevr
  33870. #: guix-git/doc/guix.texi:22482
  33871. #, no-wrap
  33872. msgid "{@code{ext-component-configuration} parameter} string component-secret"
  33873. msgstr ""
  33874. #. type: deftypevr
  33875. #: guix-git/doc/guix.texi:22484
  33876. msgid "Password which the component will use to log in."
  33877. msgstr ""
  33878. #. type: deftypevr
  33879. #: guix-git/doc/guix.texi:22486
  33880. #, no-wrap
  33881. msgid "{@code{ext-component-configuration} parameter} string hostname"
  33882. msgstr ""
  33883. #. type: deftypevr
  33884. #: guix-git/doc/guix.texi:22492
  33885. #, no-wrap
  33886. msgid "{@code{prosody-configuration} parameter} non-negative-integer-list component-ports"
  33887. msgstr ""
  33888. #. type: deftypevr
  33889. #: guix-git/doc/guix.texi:22495
  33890. msgid "Port(s) Prosody listens on for component connections. Defaults to @samp{(5347)}."
  33891. msgstr ""
  33892. #. type: deftypevr
  33893. #: guix-git/doc/guix.texi:22497
  33894. #, no-wrap
  33895. msgid "{@code{prosody-configuration} parameter} string component-interface"
  33896. msgstr ""
  33897. #. type: deftypevr
  33898. #: guix-git/doc/guix.texi:22500
  33899. msgid "Interface Prosody listens on for component connections. Defaults to @samp{\"127.0.0.1\"}."
  33900. msgstr ""
  33901. #. type: deftypevr
  33902. #: guix-git/doc/guix.texi:22502
  33903. #, no-wrap
  33904. msgid "{@code{prosody-configuration} parameter} maybe-raw-content raw-content"
  33905. msgstr ""
  33906. #. type: deftypevr
  33907. #: guix-git/doc/guix.texi:22504
  33908. msgid "Raw content that will be added to the configuration file."
  33909. msgstr ""
  33910. #. type: Plain text
  33911. #: guix-git/doc/guix.texi:22512
  33912. msgid "It could be that you just want to get a @code{prosody.cfg.lua} up and running. In that case, you can pass an @code{opaque-prosody-configuration} record as the value of @code{prosody-service-type}. As its name indicates, an opaque configuration does not have easy reflective capabilities. Available @code{opaque-prosody-configuration} fields are:"
  33913. msgstr ""
  33914. #. type: deftypevr
  33915. #: guix-git/doc/guix.texi:22513
  33916. #, no-wrap
  33917. msgid "{@code{opaque-prosody-configuration} parameter} package prosody"
  33918. msgstr ""
  33919. #. type: deftypevr
  33920. #: guix-git/doc/guix.texi:22515
  33921. msgid "The prosody package."
  33922. msgstr ""
  33923. #. type: deftypevr
  33924. #: guix-git/doc/guix.texi:22517
  33925. #, no-wrap
  33926. msgid "{@code{opaque-prosody-configuration} parameter} string prosody.cfg.lua"
  33927. msgstr ""
  33928. #. type: deftypevr
  33929. #: guix-git/doc/guix.texi:22519
  33930. msgid "The contents of the @code{prosody.cfg.lua} to use."
  33931. msgstr ""
  33932. #. type: Plain text
  33933. #: guix-git/doc/guix.texi:22523
  33934. msgid "For example, if your @code{prosody.cfg.lua} is just the empty string, you could instantiate a prosody service like this:"
  33935. msgstr ""
  33936. #. type: lisp
  33937. #: guix-git/doc/guix.texi:22528
  33938. #, no-wrap
  33939. msgid ""
  33940. "(service prosody-service-type\n"
  33941. " (opaque-prosody-configuration\n"
  33942. " (prosody.cfg.lua \"\")))\n"
  33943. msgstr ""
  33944. #. type: subsubheading
  33945. #: guix-git/doc/guix.texi:22532
  33946. #, no-wrap
  33947. msgid "BitlBee Service"
  33948. msgstr ""
  33949. #. type: cindex
  33950. #: guix-git/doc/guix.texi:22534 guix-git/doc/guix.texi:22578
  33951. #, no-wrap
  33952. msgid "IRC (Internet Relay Chat)"
  33953. msgstr ""
  33954. #. type: cindex
  33955. #: guix-git/doc/guix.texi:22535
  33956. #, no-wrap
  33957. msgid "IRC gateway"
  33958. msgstr ""
  33959. #. type: Plain text
  33960. #: guix-git/doc/guix.texi:22538
  33961. msgid "@url{https://bitlbee.org,BitlBee} is a gateway that provides an IRC interface to a variety of messaging protocols such as XMPP."
  33962. msgstr ""
  33963. #. type: defvr
  33964. #: guix-git/doc/guix.texi:22539
  33965. #, no-wrap
  33966. msgid "{Scheme Variable} bitlbee-service-type"
  33967. msgstr ""
  33968. #. type: defvr
  33969. #: guix-git/doc/guix.texi:22543
  33970. msgid "This is the service type for the @url{https://bitlbee.org,BitlBee} IRC gateway daemon. Its value is a @code{bitlbee-configuration} (see below)."
  33971. msgstr ""
  33972. #. type: defvr
  33973. #: guix-git/doc/guix.texi:22546
  33974. msgid "To have BitlBee listen on port 6667 on localhost, add this line to your services:"
  33975. msgstr ""
  33976. #. type: lisp
  33977. #: guix-git/doc/guix.texi:22549
  33978. #, no-wrap
  33979. msgid "(service bitlbee-service-type)\n"
  33980. msgstr ""
  33981. #. type: deftp
  33982. #: guix-git/doc/guix.texi:22552
  33983. #, no-wrap
  33984. msgid "{Data Type} bitlbee-configuration"
  33985. msgstr ""
  33986. #. type: deftp
  33987. #: guix-git/doc/guix.texi:22554
  33988. msgid "This is the configuration for BitlBee, with the following fields:"
  33989. msgstr ""
  33990. #. type: item
  33991. #: guix-git/doc/guix.texi:22556
  33992. #, no-wrap
  33993. msgid "@code{interface} (default: @code{\"127.0.0.1\"})"
  33994. msgstr ""
  33995. #. type: itemx
  33996. #: guix-git/doc/guix.texi:22557
  33997. #, no-wrap
  33998. msgid "@code{port} (default: @code{6667})"
  33999. msgstr ""
  34000. #. type: table
  34001. #: guix-git/doc/guix.texi:22560
  34002. msgid "Listen on the network interface corresponding to the IP address specified in @var{interface}, on @var{port}."
  34003. msgstr ""
  34004. #. type: table
  34005. #: guix-git/doc/guix.texi:22564
  34006. msgid "When @var{interface} is @code{127.0.0.1}, only local clients can connect; when it is @code{0.0.0.0}, connections can come from any networking interface."
  34007. msgstr ""
  34008. #. type: item
  34009. #: guix-git/doc/guix.texi:22565
  34010. #, fuzzy, no-wrap
  34011. msgid "@code{bitlbee} (default: @code{bitlbee})"
  34012. msgstr "@code{mate}(默认值:@code{mate})"
  34013. #. type: table
  34014. #: guix-git/doc/guix.texi:22567
  34015. msgid "The BitlBee package to use."
  34016. msgstr ""
  34017. #. type: item
  34018. #: guix-git/doc/guix.texi:22568
  34019. #, no-wrap
  34020. msgid "@code{plugins} (default: @code{'()})"
  34021. msgstr ""
  34022. #. type: table
  34023. #: guix-git/doc/guix.texi:22570
  34024. msgid "List of plugin packages to use---e.g., @code{bitlbee-discord}."
  34025. msgstr ""
  34026. #. type: table
  34027. #: guix-git/doc/guix.texi:22573
  34028. msgid "Configuration snippet added as-is to the BitlBee configuration file."
  34029. msgstr ""
  34030. #. type: subsubheading
  34031. #: guix-git/doc/guix.texi:22576
  34032. #, no-wrap
  34033. msgid "Quassel Service"
  34034. msgstr ""
  34035. #. type: Plain text
  34036. #: guix-git/doc/guix.texi:22582
  34037. msgid "@url{https://quassel-irc.org/,Quassel} is a distributed IRC client, meaning that one or more clients can attach to and detach from the central core."
  34038. msgstr ""
  34039. #. type: defvr
  34040. #: guix-git/doc/guix.texi:22583
  34041. #, no-wrap
  34042. msgid "{Scheme Variable} quassel-service-type"
  34043. msgstr ""
  34044. #. type: defvr
  34045. #: guix-git/doc/guix.texi:22587
  34046. msgid "This is the service type for the @url{https://quassel-irc.org/,Quassel} IRC backend daemon. Its value is a @code{quassel-configuration} (see below)."
  34047. msgstr ""
  34048. #. type: deftp
  34049. #: guix-git/doc/guix.texi:22589
  34050. #, no-wrap
  34051. msgid "{Data Type} quassel-configuration"
  34052. msgstr ""
  34053. #. type: deftp
  34054. #: guix-git/doc/guix.texi:22591
  34055. msgid "This is the configuration for Quassel, with the following fields:"
  34056. msgstr ""
  34057. #. type: item
  34058. #: guix-git/doc/guix.texi:22593
  34059. #, no-wrap
  34060. msgid "@code{quassel} (default: @code{quassel})"
  34061. msgstr ""
  34062. #. type: table
  34063. #: guix-git/doc/guix.texi:22595
  34064. msgid "The Quassel package to use."
  34065. msgstr ""
  34066. #. type: item
  34067. #: guix-git/doc/guix.texi:22596
  34068. #, no-wrap
  34069. msgid "@code{interface} (default: @code{\"::,0.0.0.0\"})"
  34070. msgstr ""
  34071. #. type: item
  34072. #: guix-git/doc/guix.texi:22597
  34073. #, no-wrap
  34074. msgid "@code{port} (default: @code{4242})"
  34075. msgstr ""
  34076. #. type: table
  34077. #: guix-git/doc/guix.texi:22601
  34078. msgid "Listen on the network interface(s) corresponding to the IPv4 or IPv6 interfaces specified in the comma delimited @var{interface}, on @var{port}."
  34079. msgstr ""
  34080. #. type: item
  34081. #: guix-git/doc/guix.texi:22602
  34082. #, no-wrap
  34083. msgid "@code{loglevel} (default: @code{\"Info\"})"
  34084. msgstr ""
  34085. #. type: table
  34086. #: guix-git/doc/guix.texi:22605
  34087. msgid "The level of logging desired. Accepted values are Debug, Info, Warning and Error."
  34088. msgstr ""
  34089. #. type: cindex
  34090. #: guix-git/doc/guix.texi:22611
  34091. #, fuzzy, no-wrap
  34092. #| msgid "Telephony services."
  34093. msgid "telephony, services"
  34094. msgstr "电话服务。"
  34095. #. type: Plain text
  34096. #: guix-git/doc/guix.texi:22615
  34097. msgid "The @code{(gnu services telephony)} module contains Guix service definitions for telephony services. Currently it provides the following services:"
  34098. msgstr ""
  34099. #. type: subsubheading
  34100. #: guix-git/doc/guix.texi:22616
  34101. #, no-wrap
  34102. msgid "Jami"
  34103. msgstr ""
  34104. #. type: cindex
  34105. #: guix-git/doc/guix.texi:22618
  34106. #, fuzzy, no-wrap
  34107. msgid "jami, service"
  34108. msgstr "DNS服务"
  34109. #. type: Plain text
  34110. #: guix-git/doc/guix.texi:22624
  34111. msgid "This section describes how to configure a Jami server that can be used to host video (or audio) conferences, among other uses. The following example demonstrates how to specify Jami account archives (backups) to be provisioned automatically:"
  34112. msgstr ""
  34113. #. type: lisp
  34114. #: guix-git/doc/guix.texi:22633
  34115. #, no-wrap
  34116. msgid ""
  34117. "(service jami-service-type\n"
  34118. " (jami-configuration\n"
  34119. " (accounts\n"
  34120. " (list (jami-account\n"
  34121. " (archive \"/etc/jami/unencrypted-account-1.gz\"))\n"
  34122. " (jami-account\n"
  34123. " (archive \"/etc/jami/unencrypted-account-2.gz\"))))))\n"
  34124. msgstr ""
  34125. #. type: Plain text
  34126. #: guix-git/doc/guix.texi:22638
  34127. msgid "When the accounts field is specified, the Jami account files of the service found under @file{/var/lib/jami} are recreated every time the service starts."
  34128. msgstr ""
  34129. #. type: Plain text
  34130. #: guix-git/doc/guix.texi:22643
  34131. msgid "Jami accounts and their corresponding backup archives can be generated using either the @code{jami-qt} or @code{jami-gnome} Jami clients. The accounts should not be password-protected, but it is wise to ensure their files are only readable by @samp{root}."
  34132. msgstr ""
  34133. #. type: Plain text
  34134. #: guix-git/doc/guix.texi:22646
  34135. msgid "The next example shows how to declare that only some contacts should be allowed to communicate with a given account:"
  34136. msgstr ""
  34137. #. type: lisp
  34138. #: guix-git/doc/guix.texi:22658
  34139. #, no-wrap
  34140. msgid ""
  34141. "(service jami-service-type\n"
  34142. " (jami-configuration\n"
  34143. " (accounts\n"
  34144. " (list (jami-account\n"
  34145. " (archive \"/etc/jami/unencrypted-account-1.gz\")\n"
  34146. " (peer-discovery? #t)\n"
  34147. " (rendezvous-point? #t)\n"
  34148. " (allowed-contacts\n"
  34149. " '(\"1dbcb0f5f37324228235564b79f2b9737e9a008f\"\n"
  34150. " \"2dbcb0f5f37324228235564b79f2b9737e9a008f\")))))))\n"
  34151. msgstr ""
  34152. #. type: Plain text
  34153. #: guix-git/doc/guix.texi:22664
  34154. msgid "In this mode, only the declared @code{allowed-contacts} can initiate communication with the Jami account. This can be used, for example, with rendezvous point accounts to create a private video conferencing space."
  34155. msgstr ""
  34156. #. type: Plain text
  34157. #: guix-git/doc/guix.texi:22667
  34158. msgid "To put the system administrator in full control of the conferences hosted on their system, the Jami service supports the following actions:"
  34159. msgstr ""
  34160. #. type: example
  34161. #: guix-git/doc/guix.texi:22679
  34162. #, no-wrap
  34163. msgid ""
  34164. "# herd doc jami list-actions\n"
  34165. "(list-accounts\n"
  34166. " list-account-details\n"
  34167. " list-banned-contacts\n"
  34168. " list-contacts\n"
  34169. " list-moderators\n"
  34170. " add-moderator\n"
  34171. " ban-contact\n"
  34172. " enable-account\n"
  34173. " disable-account)\n"
  34174. msgstr ""
  34175. #. type: Plain text
  34176. #: guix-git/doc/guix.texi:22686
  34177. msgid "The above actions aim to provide the most valuable actions for moderation purposes, not to cover the whole Jami API. Users wanting to interact with the Jami daemon from Guile may be interested in experimenting with the @code{(gnu build jami-service)} module, which powers the above Shepherd actions."
  34178. msgstr ""
  34179. #. type: Plain text
  34180. #: guix-git/doc/guix.texi:22692
  34181. msgid "The @code{add-moderator} and @code{ban-contact} actions accept a contact @emph{fingerprint} (40 characters long hash) as first argument and an account fingerprint or username as second argument:"
  34182. msgstr ""
  34183. #. type: example
  34184. #: guix-git/doc/guix.texi:22696
  34185. #, no-wrap
  34186. msgid ""
  34187. "# herd add-moderator jami 1dbcb0f5f37324228235564b79f2b9737e9a008f \\\n"
  34188. " f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34189. "\n"
  34190. msgstr ""
  34191. #. type: example
  34192. #: guix-git/doc/guix.texi:22700
  34193. #, no-wrap
  34194. msgid ""
  34195. "# herd list-moderators jami\n"
  34196. "Moderators for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  34197. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34198. "\n"
  34199. msgstr ""
  34200. #. type: Plain text
  34201. #: guix-git/doc/guix.texi:22705
  34202. msgid "In the case of @code{ban-contact}, the second username argument is optional; when omitted, the account is banned from all Jami accounts:"
  34203. msgstr ""
  34204. #. type: example
  34205. #: guix-git/doc/guix.texi:22708
  34206. #, no-wrap
  34207. msgid ""
  34208. "# herd ban-contact jami 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34209. "\n"
  34210. msgstr ""
  34211. #. type: example
  34212. #: guix-git/doc/guix.texi:22712
  34213. #, no-wrap
  34214. msgid ""
  34215. "# herd list-banned-contacts jami\n"
  34216. "Banned contacts for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  34217. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  34218. "\n"
  34219. msgstr ""
  34220. #. type: Plain text
  34221. #: guix-git/doc/guix.texi:22716
  34222. msgid "Banned contacts are also stripped from their moderation privileges."
  34223. msgstr ""
  34224. #. type: Plain text
  34225. #: guix-git/doc/guix.texi:22721
  34226. msgid "The @code{disable-account} action allows to completely disconnect an account from the network, making it unreachable, while @code{enable-account} does the inverse. They accept a single account username or fingerprint as first argument:"
  34227. msgstr ""
  34228. #. type: example
  34229. #: guix-git/doc/guix.texi:22724
  34230. #, no-wrap
  34231. msgid ""
  34232. "# herd disable-account jami f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34233. "\n"
  34234. msgstr ""
  34235. #. type: example
  34236. #: guix-git/doc/guix.texi:22728
  34237. #, no-wrap
  34238. msgid ""
  34239. "# herd list-accounts jami\n"
  34240. "The following Jami accounts are available:\n"
  34241. " - f3345f2775ddfe07a4b0d95daea111d15fbc1199 (dummy) [disabled]\n"
  34242. "\n"
  34243. msgstr ""
  34244. #. type: Plain text
  34245. #: guix-git/doc/guix.texi:22739
  34246. msgid "The @code{list-account-details} action prints the detailed parameters of each accounts in the Recutils format, which means the @command{recsel} command can be used to select accounts of interest (@pxref{Selection Expressions,,,recutils, GNU recutils manual}). Note that period characters (@samp{.}) found in the account parameter keys are mapped to underscores (@samp{_}) in the output, to meet the requirements of the Recutils format. The following example shows how to print the account fingerprints for all accounts operating in the rendezvous point mode:"
  34247. msgstr ""
  34248. #. type: example
  34249. #: guix-git/doc/guix.texi:22744
  34250. #, no-wrap
  34251. msgid ""
  34252. "# herd list-account-details jami | \\\n"
  34253. " recsel -p Account.username -e 'Account.rendezVous ~ \"true\"'\n"
  34254. "Account_username: f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  34255. msgstr ""
  34256. #. type: Plain text
  34257. #: guix-git/doc/guix.texi:22747
  34258. msgid "The remaining actions should be self-explanatory."
  34259. msgstr ""
  34260. #. type: Plain text
  34261. #: guix-git/doc/guix.texi:22749
  34262. msgid "The complete set of available configuration options is detailed below."
  34263. msgstr ""
  34264. #. type: deftp
  34265. #: guix-git/doc/guix.texi:22753
  34266. #, fuzzy, no-wrap
  34267. msgid "{Data Type} jami-configuration"
  34268. msgstr "{数据类型} build-machine"
  34269. #. type: deftp
  34270. #: guix-git/doc/guix.texi:22755
  34271. msgid "Available @code{jami-configuration} fields are:"
  34272. msgstr ""
  34273. #. type: item
  34274. #: guix-git/doc/guix.texi:22757
  34275. #, fuzzy, no-wrap
  34276. msgid "@code{jamid} (default: @code{libring}) (type: package)"
  34277. msgstr "@code{xfce}(默认值:@code{xfce})"
  34278. #. type: table
  34279. #: guix-git/doc/guix.texi:22759
  34280. #, fuzzy
  34281. msgid "The Jami daemon package to use."
  34282. msgstr "软件包数据类型。"
  34283. #. type: item
  34284. #: guix-git/doc/guix.texi:22760
  34285. #, fuzzy, no-wrap
  34286. msgid "@code{dbus} (default: @code{dbus}) (type: package)"
  34287. msgstr "@code{xfce}(默认值:@code{xfce})"
  34288. #. type: table
  34289. #: guix-git/doc/guix.texi:22762
  34290. #, fuzzy
  34291. msgid "The D-Bus package to use to start the required D-Bus session."
  34292. msgstr "软件包数据类型。"
  34293. #. type: item
  34294. #: guix-git/doc/guix.texi:22763
  34295. #, fuzzy, no-wrap
  34296. msgid "@code{nss-certs} (default: @code{nss-certs}) (type: package)"
  34297. msgstr "@code{xfce}(默认值:@code{xfce})"
  34298. #. type: table
  34299. #: guix-git/doc/guix.texi:22765
  34300. #, fuzzy
  34301. msgid "The nss-certs package to use to provide TLS certificates."
  34302. msgstr "软件包数据类型。"
  34303. #. type: item
  34304. #: guix-git/doc/guix.texi:22766
  34305. #, fuzzy, no-wrap
  34306. msgid "@code{enable-logging?} (default: @code{#t}) (type: boolean)"
  34307. msgstr "@code{speed}(默认值:@code{1.0})"
  34308. #. type: table
  34309. #: guix-git/doc/guix.texi:22768
  34310. msgid "Whether to enable logging to syslog."
  34311. msgstr ""
  34312. #. type: item
  34313. #: guix-git/doc/guix.texi:22769
  34314. #, fuzzy, no-wrap
  34315. msgid "@code{debug?} (default: @code{#f}) (type: boolean)"
  34316. msgstr "@code{challenge}(默认值:@code{#f})"
  34317. #. type: table
  34318. #: guix-git/doc/guix.texi:22771
  34319. msgid "Whether to enable debug level messages."
  34320. msgstr ""
  34321. #. type: item
  34322. #: guix-git/doc/guix.texi:22772
  34323. #, fuzzy, no-wrap
  34324. msgid "@code{auto-answer?} (default: @code{#f}) (type: boolean)"
  34325. msgstr "@code{port}(默认值:@code{22})"
  34326. #. type: table
  34327. #: guix-git/doc/guix.texi:22774
  34328. msgid "Whether to force automatic answer to incoming calls."
  34329. msgstr ""
  34330. #. type: item
  34331. #: guix-git/doc/guix.texi:22775
  34332. #, fuzzy, no-wrap
  34333. msgid "@code{accounts} (default: @code{disabled}) (type: maybe-jami-account-list)"
  34334. msgstr "@code{gnome}(默认值:@code{gnome})"
  34335. #. type: table
  34336. #: guix-git/doc/guix.texi:22780
  34337. msgid "A list of Jami accounts to be (re-)provisioned every time the Jami daemon service starts. When providing this field, the account directories under @file{/var/lib/jami/} are recreated every time the service starts, ensuring a consistent state."
  34338. msgstr ""
  34339. #. type: deftp
  34340. #: guix-git/doc/guix.texi:22786
  34341. #, fuzzy, no-wrap
  34342. msgid "{Data Type} jami-account"
  34343. msgstr "{数据类型} build-machine"
  34344. #. type: deftp
  34345. #: guix-git/doc/guix.texi:22788
  34346. msgid "Available @code{jami-account} fields are:"
  34347. msgstr ""
  34348. #. type: item
  34349. #: guix-git/doc/guix.texi:22790
  34350. #, no-wrap
  34351. msgid "@code{archive} (type: string-or-computed-file)"
  34352. msgstr ""
  34353. #. type: table
  34354. #: guix-git/doc/guix.texi:22796
  34355. msgid "The account archive (backup) file name of the account. This is used to provision the account when the service starts. The account archive should @emph{not} be encrypted. It is highly recommended to make it readable only to the @samp{root} user (i.e., not in the store), to guard against leaking the secret key material of the Jami account it contains."
  34356. msgstr ""
  34357. #. type: item
  34358. #: guix-git/doc/guix.texi:22797
  34359. #, no-wrap
  34360. msgid "@code{allowed-contacts} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  34361. msgstr ""
  34362. #. type: table
  34363. #: guix-git/doc/guix.texi:22804
  34364. msgid "The list of allowed contacts for the account, entered as their 40 characters long fingerprint. Messages or calls from accounts not in that list will be rejected. When unspecified, the configuration of the account archive is used as-is with respect to contacts and public inbound calls/messaging allowance, which typically defaults to allow any contact to communicate with the account."
  34365. msgstr ""
  34366. #. type: item
  34367. #: guix-git/doc/guix.texi:22805
  34368. #, no-wrap
  34369. msgid "@code{moderators} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  34370. msgstr ""
  34371. #. type: table
  34372. #: guix-git/doc/guix.texi:22811
  34373. msgid "The list of contacts that should have moderation privileges (to ban, mute, etc. other users) in rendezvous conferences, entered as their 40 characters long fingerprint. When unspecified, the configuration of the account archive is used as-is with respect to moderation, which typically defaults to allow anyone to moderate."
  34374. msgstr ""
  34375. #. type: item
  34376. #: guix-git/doc/guix.texi:22812
  34377. #, fuzzy, no-wrap
  34378. msgid "@code{rendezvous-point?} (default: @code{disabled}) (type: maybe-boolean)"
  34379. msgstr "@code{port}(默认值:@code{22})"
  34380. #. type: table
  34381. #: guix-git/doc/guix.texi:22816
  34382. msgid "Whether the account should operate in the rendezvous mode. In this mode, all the incoming audio/video calls are mixed into a conference. When left unspecified, the value from the account archive prevails."
  34383. msgstr ""
  34384. #. type: item
  34385. #: guix-git/doc/guix.texi:22817
  34386. #, fuzzy, no-wrap
  34387. msgid "@code{peer-discovery?} (default: @code{disabled}) (type: maybe-boolean)"
  34388. msgstr "@code{speed}(默认值:@code{1.0})"
  34389. #. type: table
  34390. #: guix-git/doc/guix.texi:22823
  34391. msgid "Whether peer discovery should be enabled. Peer discovery is used to discover other OpenDHT nodes on the local network, which can be useful to maintain communication between devices on such network even when the connection to the the Internet has been lost. When left unspecified, the value from the account archive prevails."
  34392. msgstr ""
  34393. #. type: item
  34394. #: guix-git/doc/guix.texi:22824
  34395. #, fuzzy, no-wrap
  34396. msgid "@code{bootstrap-hostnames} (default: @code{disabled}) (type: maybe-string-list)"
  34397. msgstr "@code{mate}(默认值:@code{mate})"
  34398. #. type: table
  34399. #: guix-git/doc/guix.texi:22828
  34400. msgid "A list of hostnames or IPs pointing to OpenDHT nodes, that should be used to initially join the OpenDHT network. When left unspecified, the value from the account archive prevails."
  34401. msgstr ""
  34402. #. type: item
  34403. #: guix-git/doc/guix.texi:22829
  34404. #, fuzzy, no-wrap
  34405. msgid "@code{name-server-uri} (default: @code{disabled}) (type: maybe-string)"
  34406. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  34407. #. type: table
  34408. #: guix-git/doc/guix.texi:22832
  34409. msgid "The URI of the name server to use, that can be used to retrieve the account fingerprint for a registered username."
  34410. msgstr ""
  34411. #. type: cindex
  34412. #: guix-git/doc/guix.texi:22837 guix-git/doc/guix.texi:22839
  34413. #, no-wrap
  34414. msgid "Murmur (VoIP server)"
  34415. msgstr ""
  34416. #. type: cindex
  34417. #: guix-git/doc/guix.texi:22840
  34418. #, no-wrap
  34419. msgid "VoIP server"
  34420. msgstr ""
  34421. #. type: Plain text
  34422. #: guix-git/doc/guix.texi:22844
  34423. msgid "This section describes how to set up and run a Murmur server. Murmur is the server of the @uref{https://mumble.info, Mumble} voice-over-IP (VoIP) suite."
  34424. msgstr ""
  34425. #. type: deftp
  34426. #: guix-git/doc/guix.texi:22845
  34427. #, no-wrap
  34428. msgid "{Data Type} murmur-configuration"
  34429. msgstr ""
  34430. #. type: deftp
  34431. #: guix-git/doc/guix.texi:22848
  34432. msgid "The service type for the Murmur server. An example configuration can look like this:"
  34433. msgstr ""
  34434. #. type: lisp
  34435. #: guix-git/doc/guix.texi:22857
  34436. #, no-wrap
  34437. msgid ""
  34438. "(service murmur-service-type\n"
  34439. " (murmur-configuration\n"
  34440. " (welcome-text\n"
  34441. " \"Welcome to this Mumble server running on Guix!\")\n"
  34442. " (cert-required? #t) ;disallow text password logins\n"
  34443. " (ssl-cert \"/etc/letsencrypt/live/mumble.example.com/fullchain.pem\")\n"
  34444. " (ssl-key \"/etc/letsencrypt/live/mumble.example.com/privkey.pem\")))\n"
  34445. msgstr ""
  34446. #. type: deftp
  34447. #: guix-git/doc/guix.texi:22861
  34448. msgid "After reconfiguring your system, you can manually set the murmur @code{SuperUser} password with the command that is printed during the activation phase."
  34449. msgstr ""
  34450. #. type: deftp
  34451. #: guix-git/doc/guix.texi:22870
  34452. msgid "It is recommended to register a normal Mumble user account and grant it admin or moderator rights. You can use the @code{mumble} client to login as new normal user, register yourself, and log out. For the next step login with the name @code{SuperUser} use the @code{SuperUser} password that you set previously, and grant your newly registered mumble user administrator or moderator rights and create some channels."
  34453. msgstr ""
  34454. #. type: deftp
  34455. #: guix-git/doc/guix.texi:22872
  34456. msgid "Available @code{murmur-configuration} fields are:"
  34457. msgstr ""
  34458. #. type: item
  34459. #: guix-git/doc/guix.texi:22874
  34460. #, no-wrap
  34461. msgid "@code{package} (default: @code{mumble})"
  34462. msgstr ""
  34463. #. type: table
  34464. #: guix-git/doc/guix.texi:22876
  34465. msgid "Package that contains @code{bin/murmurd}."
  34466. msgstr ""
  34467. #. type: item
  34468. #: guix-git/doc/guix.texi:22877
  34469. #, no-wrap
  34470. msgid "@code{user} (default: @code{\"murmur\"})"
  34471. msgstr ""
  34472. #. type: table
  34473. #: guix-git/doc/guix.texi:22879
  34474. msgid "User who will run the Murmur server."
  34475. msgstr ""
  34476. #. type: item
  34477. #: guix-git/doc/guix.texi:22880
  34478. #, no-wrap
  34479. msgid "@code{group} (default: @code{\"murmur\"})"
  34480. msgstr ""
  34481. #. type: table
  34482. #: guix-git/doc/guix.texi:22882
  34483. msgid "Group of the user who will run the murmur server."
  34484. msgstr ""
  34485. #. type: item
  34486. #: guix-git/doc/guix.texi:22883
  34487. #, no-wrap
  34488. msgid "@code{port} (default: @code{64738})"
  34489. msgstr ""
  34490. #. type: table
  34491. #: guix-git/doc/guix.texi:22885
  34492. msgid "Port on which the server will listen."
  34493. msgstr ""
  34494. #. type: item
  34495. #: guix-git/doc/guix.texi:22886
  34496. #, no-wrap
  34497. msgid "@code{welcome-text} (default: @code{\"\"})"
  34498. msgstr ""
  34499. #. type: table
  34500. #: guix-git/doc/guix.texi:22888
  34501. msgid "Welcome text sent to clients when they connect."
  34502. msgstr ""
  34503. #. type: item
  34504. #: guix-git/doc/guix.texi:22889
  34505. #, no-wrap
  34506. msgid "@code{server-password} (default: @code{\"\"})"
  34507. msgstr ""
  34508. #. type: table
  34509. #: guix-git/doc/guix.texi:22891
  34510. msgid "Password the clients have to enter in order to connect."
  34511. msgstr ""
  34512. #. type: item
  34513. #: guix-git/doc/guix.texi:22892
  34514. #, no-wrap
  34515. msgid "@code{max-users} (default: @code{100})"
  34516. msgstr ""
  34517. #. type: table
  34518. #: guix-git/doc/guix.texi:22894
  34519. msgid "Maximum of users that can be connected to the server at once."
  34520. msgstr ""
  34521. #. type: item
  34522. #: guix-git/doc/guix.texi:22895
  34523. #, no-wrap
  34524. msgid "@code{max-user-bandwidth} (default: @code{#f})"
  34525. msgstr ""
  34526. #. type: table
  34527. #: guix-git/doc/guix.texi:22897
  34528. msgid "Maximum voice traffic a user can send per second."
  34529. msgstr ""
  34530. #. type: item
  34531. #: guix-git/doc/guix.texi:22898
  34532. #, no-wrap
  34533. msgid "@code{database-file} (default: @code{\"/var/lib/murmur/db.sqlite\"})"
  34534. msgstr ""
  34535. #. type: table
  34536. #: guix-git/doc/guix.texi:22901
  34537. msgid "File name of the sqlite database. The service's user will become the owner of the directory."
  34538. msgstr ""
  34539. #. type: item
  34540. #: guix-git/doc/guix.texi:22902
  34541. #, no-wrap
  34542. msgid "@code{log-file} (default: @code{\"/var/log/murmur/murmur.log\"})"
  34543. msgstr ""
  34544. #. type: table
  34545. #: guix-git/doc/guix.texi:22905
  34546. msgid "File name of the log file. The service's user will become the owner of the directory."
  34547. msgstr ""
  34548. #. type: item
  34549. #: guix-git/doc/guix.texi:22906
  34550. #, no-wrap
  34551. msgid "@code{autoban-attempts} (default: @code{10})"
  34552. msgstr ""
  34553. #. type: table
  34554. #: guix-git/doc/guix.texi:22909
  34555. msgid "Maximum number of logins a user can make in @code{autoban-timeframe} without getting auto banned for @code{autoban-time}."
  34556. msgstr ""
  34557. #. type: item
  34558. #: guix-git/doc/guix.texi:22910
  34559. #, no-wrap
  34560. msgid "@code{autoban-timeframe} (default: @code{120})"
  34561. msgstr ""
  34562. #. type: table
  34563. #: guix-git/doc/guix.texi:22912
  34564. msgid "Timeframe for autoban in seconds."
  34565. msgstr ""
  34566. #. type: item
  34567. #: guix-git/doc/guix.texi:22913
  34568. #, no-wrap
  34569. msgid "@code{autoban-time} (default: @code{300})"
  34570. msgstr ""
  34571. #. type: table
  34572. #: guix-git/doc/guix.texi:22916
  34573. msgid "Amount of time in seconds for which a client gets banned when violating the autoban limits."
  34574. msgstr ""
  34575. #. type: item
  34576. #: guix-git/doc/guix.texi:22917
  34577. #, no-wrap
  34578. msgid "@code{opus-threshold} (default: @code{100})"
  34579. msgstr ""
  34580. #. type: table
  34581. #: guix-git/doc/guix.texi:22920
  34582. msgid "Percentage of clients that need to support opus before switching over to opus audio codec."
  34583. msgstr ""
  34584. #. type: item
  34585. #: guix-git/doc/guix.texi:22921
  34586. #, no-wrap
  34587. msgid "@code{channel-nesting-limit} (default: @code{10})"
  34588. msgstr ""
  34589. #. type: table
  34590. #: guix-git/doc/guix.texi:22923
  34591. msgid "How deep channels can be nested at maximum."
  34592. msgstr ""
  34593. #. type: item
  34594. #: guix-git/doc/guix.texi:22924
  34595. #, no-wrap
  34596. msgid "@code{channelname-regex} (default: @code{#f})"
  34597. msgstr ""
  34598. #. type: table
  34599. #: guix-git/doc/guix.texi:22926
  34600. msgid "A string in form of a Qt regular expression that channel names must conform to."
  34601. msgstr ""
  34602. #. type: item
  34603. #: guix-git/doc/guix.texi:22927
  34604. #, no-wrap
  34605. msgid "@code{username-regex} (default: @code{#f})"
  34606. msgstr ""
  34607. #. type: table
  34608. #: guix-git/doc/guix.texi:22929
  34609. msgid "A string in form of a Qt regular expression that user names must conform to."
  34610. msgstr ""
  34611. #. type: item
  34612. #: guix-git/doc/guix.texi:22930
  34613. #, no-wrap
  34614. msgid "@code{text-message-length} (default: @code{5000})"
  34615. msgstr ""
  34616. #. type: table
  34617. #: guix-git/doc/guix.texi:22932
  34618. msgid "Maximum size in bytes that a user can send in one text chat message."
  34619. msgstr ""
  34620. #. type: item
  34621. #: guix-git/doc/guix.texi:22933
  34622. #, no-wrap
  34623. msgid "@code{image-message-length} (default: @code{(* 128 1024)})"
  34624. msgstr ""
  34625. #. type: table
  34626. #: guix-git/doc/guix.texi:22935
  34627. msgid "Maximum size in bytes that a user can send in one image message."
  34628. msgstr ""
  34629. #. type: item
  34630. #: guix-git/doc/guix.texi:22936
  34631. #, no-wrap
  34632. msgid "@code{cert-required?} (default: @code{#f})"
  34633. msgstr ""
  34634. #. type: table
  34635. #: guix-git/doc/guix.texi:22939
  34636. msgid "If it is set to @code{#t} clients that use weak password authentication will not be accepted. Users must have completed the certificate wizard to join."
  34637. msgstr ""
  34638. #. type: item
  34639. #: guix-git/doc/guix.texi:22940
  34640. #, no-wrap
  34641. msgid "@code{remember-channel?} (default: @code{#f})"
  34642. msgstr ""
  34643. #. type: table
  34644. #: guix-git/doc/guix.texi:22943
  34645. msgid "Should murmur remember the last channel each user was in when they disconnected and put them into the remembered channel when they rejoin."
  34646. msgstr ""
  34647. #. type: item
  34648. #: guix-git/doc/guix.texi:22944
  34649. #, no-wrap
  34650. msgid "@code{allow-html?} (default: @code{#f})"
  34651. msgstr ""
  34652. #. type: table
  34653. #: guix-git/doc/guix.texi:22946
  34654. msgid "Should html be allowed in text messages, user comments, and channel descriptions."
  34655. msgstr ""
  34656. #. type: item
  34657. #: guix-git/doc/guix.texi:22947
  34658. #, no-wrap
  34659. msgid "@code{allow-ping?} (default: @code{#f})"
  34660. msgstr ""
  34661. #. type: table
  34662. #: guix-git/doc/guix.texi:22951
  34663. msgid "Setting to true exposes the current user count, the maximum user count, and the server's maximum bandwidth per client to unauthenticated users. In the Mumble client, this information is shown in the Connect dialog."
  34664. msgstr ""
  34665. #. type: table
  34666. #: guix-git/doc/guix.texi:22953
  34667. msgid "Disabling this setting will prevent public listing of the server."
  34668. msgstr ""
  34669. #. type: item
  34670. #: guix-git/doc/guix.texi:22954
  34671. #, no-wrap
  34672. msgid "@code{bonjour?} (default: @code{#f})"
  34673. msgstr ""
  34674. #. type: table
  34675. #: guix-git/doc/guix.texi:22956
  34676. msgid "Should the server advertise itself in the local network through the bonjour protocol."
  34677. msgstr ""
  34678. #. type: item
  34679. #: guix-git/doc/guix.texi:22957
  34680. #, no-wrap
  34681. msgid "@code{send-version?} (default: @code{#f})"
  34682. msgstr ""
  34683. #. type: table
  34684. #: guix-git/doc/guix.texi:22959
  34685. msgid "Should the murmur server version be exposed in ping requests."
  34686. msgstr ""
  34687. #. type: item
  34688. #: guix-git/doc/guix.texi:22960
  34689. #, no-wrap
  34690. msgid "@code{log-days} (default: @code{31})"
  34691. msgstr ""
  34692. #. type: table
  34693. #: guix-git/doc/guix.texi:22964
  34694. msgid "Murmur also stores logs in the database, which are accessible via RPC. The default is 31 days of months, but you can set this setting to 0 to keep logs forever, or -1 to disable logging to the database."
  34695. msgstr ""
  34696. #. type: item
  34697. #: guix-git/doc/guix.texi:22965
  34698. #, no-wrap
  34699. msgid "@code{obfuscate-ips?} (default: @code{#t})"
  34700. msgstr ""
  34701. #. type: table
  34702. #: guix-git/doc/guix.texi:22967
  34703. msgid "Should logged ips be obfuscated to protect the privacy of users."
  34704. msgstr ""
  34705. #. type: item
  34706. #: guix-git/doc/guix.texi:22968
  34707. #, no-wrap
  34708. msgid "@code{ssl-cert} (default: @code{#f})"
  34709. msgstr ""
  34710. #. type: table
  34711. #: guix-git/doc/guix.texi:22970
  34712. msgid "File name of the SSL/TLS certificate used for encrypted connections."
  34713. msgstr ""
  34714. #. type: lisp
  34715. #: guix-git/doc/guix.texi:22973
  34716. #, no-wrap
  34717. msgid "(ssl-cert \"/etc/letsencrypt/live/example.com/fullchain.pem\")\n"
  34718. msgstr ""
  34719. #. type: item
  34720. #: guix-git/doc/guix.texi:22974
  34721. #, no-wrap
  34722. msgid "@code{ssl-key} (default: @code{#f})"
  34723. msgstr ""
  34724. #. type: table
  34725. #: guix-git/doc/guix.texi:22976
  34726. msgid "Filepath to the ssl private key used for encrypted connections."
  34727. msgstr ""
  34728. #. type: lisp
  34729. #: guix-git/doc/guix.texi:22978
  34730. #, no-wrap
  34731. msgid "(ssl-key \"/etc/letsencrypt/live/example.com/privkey.pem\")\n"
  34732. msgstr ""
  34733. #. type: item
  34734. #: guix-git/doc/guix.texi:22980
  34735. #, no-wrap
  34736. msgid "@code{ssl-dh-params} (default: @code{#f})"
  34737. msgstr ""
  34738. #. type: table
  34739. #: guix-git/doc/guix.texi:22985
  34740. msgid "File name of a PEM-encoded file with Diffie-Hellman parameters for the SSL/TLS encryption. Alternatively you set it to @code{\"@@ffdhe2048\"}, @code{\"@@ffdhe3072\"}, @code{\"@@ffdhe4096\"}, @code{\"@@ffdhe6144\"} or @code{\"@@ffdhe8192\"} to use bundled parameters from RFC 7919."
  34741. msgstr ""
  34742. #. type: item
  34743. #: guix-git/doc/guix.texi:22986
  34744. #, no-wrap
  34745. msgid "@code{ssl-ciphers} (default: @code{#f})"
  34746. msgstr ""
  34747. #. type: table
  34748. #: guix-git/doc/guix.texi:22989
  34749. msgid "The @code{ssl-ciphers} option chooses the cipher suites to make available for use in SSL/TLS."
  34750. msgstr ""
  34751. #. type: table
  34752. #: guix-git/doc/guix.texi:22993
  34753. msgid "This option is specified using @uref{https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT, OpenSSL cipher list notation}."
  34754. msgstr ""
  34755. #. type: table
  34756. #: guix-git/doc/guix.texi:22998
  34757. msgid "It is recommended that you try your cipher string using 'openssl ciphers <string>' before setting it here, to get a feel for which cipher suites you will get. After setting this option, it is recommend that you inspect your Murmur log to ensure that Murmur is using the cipher suites that you expected it to."
  34758. msgstr ""
  34759. #. type: table
  34760. #: guix-git/doc/guix.texi:23002
  34761. msgid "Note: Changing this option may impact the backwards compatibility of your Murmur server, and can remove the ability for older Mumble clients to be able to connect to it."
  34762. msgstr ""
  34763. #. type: item
  34764. #: guix-git/doc/guix.texi:23003
  34765. #, no-wrap
  34766. msgid "@code{public-registration} (default: @code{#f})"
  34767. msgstr ""
  34768. #. type: table
  34769. #: guix-git/doc/guix.texi:23005
  34770. msgid "Must be a @code{<murmur-public-registration-configuration>} record or @code{#f}."
  34771. msgstr ""
  34772. #. type: table
  34773. #: guix-git/doc/guix.texi:23010
  34774. msgid "You can optionally register your server in the public server list that the @code{mumble} client shows on startup. You cannot register your server if you have set a @code{server-password}, or set @code{allow-ping} to @code{#f}."
  34775. msgstr ""
  34776. #. type: table
  34777. #: guix-git/doc/guix.texi:23012
  34778. msgid "It might take a few hours until it shows up in the public list."
  34779. msgstr ""
  34780. #. type: item
  34781. #: guix-git/doc/guix.texi:23013 guix-git/doc/guix.texi:25249
  34782. #, no-wrap
  34783. msgid "@code{file} (default: @code{#f})"
  34784. msgstr ""
  34785. #. type: table
  34786. #: guix-git/doc/guix.texi:23015
  34787. msgid "Optional alternative override for this configuration."
  34788. msgstr ""
  34789. #. type: deftp
  34790. #: guix-git/doc/guix.texi:23018
  34791. #, no-wrap
  34792. msgid "{Data Type} murmur-public-registration-configuration"
  34793. msgstr ""
  34794. #. type: deftp
  34795. #: guix-git/doc/guix.texi:23020
  34796. msgid "Configuration for public registration of a murmur service."
  34797. msgstr ""
  34798. #. type: table
  34799. #: guix-git/doc/guix.texi:23024
  34800. msgid "This is a display name for your server. Not to be confused with the hostname."
  34801. msgstr ""
  34802. #. type: itemx
  34803. #: guix-git/doc/guix.texi:23025 guix-git/doc/guix.texi:31777
  34804. #: guix-git/doc/guix.texi:32925
  34805. #, no-wrap
  34806. msgid "password"
  34807. msgstr ""
  34808. #. type: table
  34809. #: guix-git/doc/guix.texi:23028
  34810. msgid "A password to identify your registration. Subsequent updates will need the same password. Don't lose your password."
  34811. msgstr ""
  34812. #. type: table
  34813. #: guix-git/doc/guix.texi:23032
  34814. msgid "This should be a @code{http://} or @code{https://} link to your web site."
  34815. msgstr ""
  34816. #. type: item
  34817. #: guix-git/doc/guix.texi:23033 guix-git/doc/guix.texi:26128
  34818. #, no-wrap
  34819. msgid "@code{hostname} (default: @code{#f})"
  34820. msgstr ""
  34821. #. type: table
  34822. #: guix-git/doc/guix.texi:23036
  34823. msgid "By default your server will be listed by its IP address. If it is set your server will be linked by this host name instead."
  34824. msgstr ""
  34825. #. type: Plain text
  34826. #: guix-git/doc/guix.texi:23046
  34827. msgid "The @code{(gnu services file-sharing)} module provides services that assist with transferring files over peer-to-peer file-sharing networks."
  34828. msgstr ""
  34829. #. type: subsubheading
  34830. #: guix-git/doc/guix.texi:23047
  34831. #, fuzzy, no-wrap
  34832. msgid "Transmission Daemon Service"
  34833. msgstr "版本控制服务"
  34834. #. type: Plain text
  34835. #: guix-git/doc/guix.texi:23055
  34836. msgid "@uref{https://transmissionbt.com/, Transmission} is a flexible BitTorrent client that offers a variety of graphical and command-line interfaces. A @code{transmission-daemon-service-type} service provides Transmission's headless variant, @command{transmission-daemon}, as a system service, allowing users to share files via BitTorrent even when they are not logged in."
  34837. msgstr ""
  34838. #. type: deffn
  34839. #: guix-git/doc/guix.texi:23056
  34840. #, no-wrap
  34841. msgid "{Scheme Variable} transmission-daemon-service-type"
  34842. msgstr ""
  34843. #. type: deffn
  34844. #: guix-git/doc/guix.texi:23060
  34845. msgid "The service type for the Transmission Daemon BitTorrent client. Its value must be a @code{transmission-daemon-configuration} object as in this example:"
  34846. msgstr ""
  34847. #. type: lisp
  34848. #: guix-git/doc/guix.texi:23071
  34849. #, no-wrap
  34850. msgid ""
  34851. "(service transmission-daemon-service-type\n"
  34852. " (transmission-daemon-configuration\n"
  34853. " ;; Restrict access to the RPC (\"control\") interface\n"
  34854. " (rpc-authentication-required? #t)\n"
  34855. " (rpc-username \"transmission\")\n"
  34856. " (rpc-password\n"
  34857. " (transmission-password-hash\n"
  34858. " \"transmission\" ; desired password\n"
  34859. " \"uKd1uMs9\")) ; arbitrary salt value\n"
  34860. "\n"
  34861. msgstr ""
  34862. #. type: lisp
  34863. #: guix-git/doc/guix.texi:23076
  34864. #, no-wrap
  34865. msgid ""
  34866. " ;; Accept requests from this and other hosts on the\n"
  34867. " ;; local network\n"
  34868. " (rpc-whitelist-enabled? #t)\n"
  34869. " (rpc-whitelist '(\"::1\" \"127.0.0.1\" \"192.168.0.*\"))\n"
  34870. "\n"
  34871. msgstr ""
  34872. #. type: lisp
  34873. #: guix-git/doc/guix.texi:23080
  34874. #, no-wrap
  34875. msgid ""
  34876. " ;; Limit bandwidth use during work hours\n"
  34877. " (alt-speed-down (* 1024 2)) ; 2 MB/s\n"
  34878. " (alt-speed-up 512) ; 512 kB/s\n"
  34879. "\n"
  34880. msgstr ""
  34881. #. type: lisp
  34882. #: guix-git/doc/guix.texi:23087
  34883. #, no-wrap
  34884. msgid ""
  34885. " (alt-speed-time-enabled? #t)\n"
  34886. " (alt-speed-time-day 'weekdays)\n"
  34887. " (alt-speed-time-begin\n"
  34888. " (+ (* 60 8) 30)) ; 8:30 am\n"
  34889. " (alt-speed-time-end\n"
  34890. " (+ (* 60 (+ 12 5)) 30)))) ; 5:30 pm\n"
  34891. msgstr ""
  34892. #. type: Plain text
  34893. #: guix-git/doc/guix.texi:23100
  34894. msgid "Once the service is started, users can interact with the daemon through its Web interface (at @code{http://localhost:9091/}) or by using the @command{transmission-remote} command-line tool, available in the @code{transmission} package. (Emacs users may want to also consider the @code{emacs-transmission} package.) Both communicate with the daemon through its remote procedure call (RPC) interface, which by default is available to all users on the system; you may wish to change this by assigning values to the @code{rpc-authentication-required?}, @code{rpc-username} and @code{rpc-password} settings, as shown in the example above and documented further below."
  34895. msgstr ""
  34896. #. type: Plain text
  34897. #: guix-git/doc/guix.texi:23108
  34898. msgid "The value for @code{rpc-password} must be a password hash of the type generated and used by Transmission clients. This can be copied verbatim from an existing @file{settings.json} file, if another Transmission client is already being used. Otherwise, the @code{transmission-password-hash} and @code{transmission-random-salt} procedures provided by this module can be used to obtain a suitable hash value."
  34899. msgstr ""
  34900. #. type: deffn
  34901. #: guix-git/doc/guix.texi:23109
  34902. #, no-wrap
  34903. msgid "{Scheme Procedure} transmission-password-hash @var{password} @var{salt}"
  34904. msgstr ""
  34905. #. type: deffn
  34906. #: guix-git/doc/guix.texi:23113
  34907. msgid "Returns a string containing the result of hashing @var{password} together with @var{salt}, in the format recognized by Transmission clients for their @code{rpc-password} configuration setting."
  34908. msgstr ""
  34909. #. type: deffn
  34910. #: guix-git/doc/guix.texi:23117
  34911. msgid "@var{salt} must be an eight-character string. The @code{transmission-random-salt} procedure can be used to generate a suitable salt value at random."
  34912. msgstr ""
  34913. #. type: deffn
  34914. #: guix-git/doc/guix.texi:23119
  34915. #, no-wrap
  34916. msgid "{Scheme Procedure} transmission-random-salt"
  34917. msgstr ""
  34918. #. type: deffn
  34919. #: guix-git/doc/guix.texi:23123
  34920. msgid "Returns a string containing a random, eight-character salt value of the type generated and used by Transmission clients, suitable for passing to the @code{transmission-password-hash} procedure."
  34921. msgstr ""
  34922. #. type: Plain text
  34923. #: guix-git/doc/guix.texi:23129
  34924. msgid "These procedures are accessible from within a Guile REPL started with the @command{guix repl} command (@pxref{Invoking guix repl}). This is useful for obtaining a random salt value to provide as the second parameter to `transmission-password-hash`, as in this example session:"
  34925. msgstr ""
  34926. #. type: example
  34927. #: guix-git/doc/guix.texi:23135
  34928. #, no-wrap
  34929. msgid ""
  34930. "$ guix repl\n"
  34931. "scheme@@(guix-user)> ,use (gnu services file-sharing)\n"
  34932. "scheme@@(guix-user)> (transmission-random-salt)\n"
  34933. "$1 = \"uKd1uMs9\"\n"
  34934. msgstr ""
  34935. #. type: Plain text
  34936. #: guix-git/doc/guix.texi:23138
  34937. msgid "Alternatively, a complete password hash can generated in a single step:"
  34938. msgstr ""
  34939. #. type: example
  34940. #: guix-git/doc/guix.texi:23143
  34941. #, no-wrap
  34942. msgid ""
  34943. "scheme@@(guix-user)> (transmission-password-hash \"transmission\"\n"
  34944. "(transmission-random-salt))\n"
  34945. "$2 = \"@{c8bbc6d1740cd8dc819a6e25563b67812c1c19c9VtFPfdsX\"\n"
  34946. msgstr ""
  34947. #. type: Plain text
  34948. #: guix-git/doc/guix.texi:23148
  34949. msgid "The resulting string can be used as-is for the value of @code{rpc-password}, allowing the password to be kept hidden even in the operating-system configuration."
  34950. msgstr ""
  34951. #. type: Plain text
  34952. #: guix-git/doc/guix.texi:23157
  34953. msgid "Torrent files downloaded by the daemon are directly accessible only to users in the ``transmission'' user group, who receive read-only access to the directory specified by the @code{download-dir} configuration setting (and also the directory specified by @code{incomplete-dir}, if @code{incomplete-dir-enabled?} is @code{#t}). Downloaded files can be moved to another directory or deleted altogether using @command{transmission-remote} with its @code{--move} and @code{--remove-and-delete} options."
  34954. msgstr ""
  34955. #. type: Plain text
  34956. #: guix-git/doc/guix.texi:23164
  34957. msgid "If the @code{watch-dir-enabled?} setting is set to @code{#t}, users in the ``transmission'' group are able also to place @file{.torrent} files in the directory specified by @code{watch-dir} to have the corresponding torrents added by the daemon. (The @code{trash-original-torrent-files?} setting controls whether the daemon deletes these files after processing them.)"
  34958. msgstr ""
  34959. #. type: Plain text
  34960. #: guix-git/doc/guix.texi:23169
  34961. msgid "Some of the daemon's configuration settings can be changed temporarily by @command{transmission-remote} and similar tools. To undo these changes, use the service's @code{reload} action to have the daemon reload its settings from disk:"
  34962. msgstr ""
  34963. #. type: example
  34964. #: guix-git/doc/guix.texi:23172
  34965. #, no-wrap
  34966. msgid "# herd reload transmission-daemon\n"
  34967. msgstr ""
  34968. #. type: Plain text
  34969. #: guix-git/doc/guix.texi:23176
  34970. msgid "The full set of available configuration settings is defined by the @code{transmission-daemon-configuration} data type."
  34971. msgstr ""
  34972. #. type: deftp
  34973. #: guix-git/doc/guix.texi:23177
  34974. #, fuzzy, no-wrap
  34975. msgid "{Data Type} transmission-daemon-configuration"
  34976. msgstr "{数据类型} build-machine"
  34977. #. type: deftp
  34978. #: guix-git/doc/guix.texi:23181
  34979. msgid "The data type representing configuration settings for Transmission Daemon. These correspond directly to the settings recognized by Transmission clients in their @file{settings.json} file."
  34980. msgstr ""
  34981. #. type: Plain text
  34982. #: guix-git/doc/guix.texi:23195
  34983. msgid "Available @code{transmission-daemon-configuration} fields are:"
  34984. msgstr ""
  34985. #. type: deftypevr
  34986. #: guix-git/doc/guix.texi:23196
  34987. #, no-wrap
  34988. msgid "{@code{transmission-daemon-configuration} parameter} package transmission"
  34989. msgstr ""
  34990. #. type: deftypevr
  34991. #: guix-git/doc/guix.texi:23198
  34992. #, fuzzy
  34993. msgid "The Transmission package to use."
  34994. msgstr "软件包数据类型。"
  34995. #. type: deftypevr
  34996. #: guix-git/doc/guix.texi:23201
  34997. #, no-wrap
  34998. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer stop-wait-period"
  34999. msgstr ""
  35000. #. type: deftypevr
  35001. #: guix-git/doc/guix.texi:23207
  35002. msgid "The period, in seconds, to wait when stopping the service for @command{transmission-daemon} to exit before killing its process. This allows the daemon time to complete its housekeeping and send a final update to trackers as it shuts down. On slow hosts, or hosts with a slow network connection, this value may need to be increased."
  35003. msgstr ""
  35004. #. type: deftypevr
  35005. #: guix-git/doc/guix.texi:23209 guix-git/doc/guix.texi:23581
  35006. #: guix-git/doc/guix.texi:30881 guix-git/doc/guix.texi:31116
  35007. #: guix-git/doc/guix.texi:31124 guix-git/doc/guix.texi:31132
  35008. msgid "Defaults to @samp{10}."
  35009. msgstr ""
  35010. #. type: deftypevr
  35011. #: guix-git/doc/guix.texi:23212
  35012. #, no-wrap
  35013. msgid "{@code{transmission-daemon-configuration} parameter} string download-dir"
  35014. msgstr ""
  35015. #. type: deftypevr
  35016. #: guix-git/doc/guix.texi:23214
  35017. msgid "The directory to which torrent files are downloaded."
  35018. msgstr ""
  35019. #. type: deftypevr
  35020. #: guix-git/doc/guix.texi:23216
  35021. msgid "Defaults to @samp{\"/var/lib/transmission-daemon/downloads\"}."
  35022. msgstr ""
  35023. #. type: deftypevr
  35024. #: guix-git/doc/guix.texi:23219
  35025. #, no-wrap
  35026. msgid "{@code{transmission-daemon-configuration} parameter} boolean incomplete-dir-enabled?"
  35027. msgstr ""
  35028. #. type: deftypevr
  35029. #: guix-git/doc/guix.texi:23224
  35030. msgid "If @code{#t}, files will be held in @code{incomplete-dir} while their torrent is being downloaded, then moved to @code{download-dir} once the torrent is complete. Otherwise, files for all torrents (including those still being downloaded) will be placed in @code{download-dir}."
  35031. msgstr ""
  35032. #. type: deftypevr
  35033. #: guix-git/doc/guix.texi:23229
  35034. #, no-wrap
  35035. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string incomplete-dir"
  35036. msgstr ""
  35037. #. type: deftypevr
  35038. #: guix-git/doc/guix.texi:23232
  35039. msgid "The directory in which files from incompletely downloaded torrents will be held when @code{incomplete-dir-enabled?} is @code{#t}."
  35040. msgstr ""
  35041. #. type: deftypevr
  35042. #: guix-git/doc/guix.texi:23237
  35043. #, no-wrap
  35044. msgid "{@code{transmission-daemon-configuration} parameter} umask umask"
  35045. msgstr ""
  35046. #. type: deftypevr
  35047. #: guix-git/doc/guix.texi:23240
  35048. msgid "The file mode creation mask used for downloaded files. (See the @command{umask} man page for more information.)"
  35049. msgstr ""
  35050. #. type: deftypevr
  35051. #: guix-git/doc/guix.texi:23242
  35052. msgid "Defaults to @samp{18}."
  35053. msgstr ""
  35054. #. type: deftypevr
  35055. #: guix-git/doc/guix.texi:23245
  35056. #, no-wrap
  35057. msgid "{@code{transmission-daemon-configuration} parameter} boolean rename-partial-files?"
  35058. msgstr ""
  35059. #. type: deftypevr
  35060. #: guix-git/doc/guix.texi:23248
  35061. msgid "When @code{#t}, ``.part'' is appended to the name of partially downloaded files."
  35062. msgstr ""
  35063. #. type: deftypevr
  35064. #: guix-git/doc/guix.texi:23253
  35065. #, no-wrap
  35066. msgid "{@code{transmission-daemon-configuration} parameter} preallocation-mode preallocation"
  35067. msgstr ""
  35068. #. type: deftypevr
  35069. #: guix-git/doc/guix.texi:23258
  35070. msgid "The mode by which space should be preallocated for downloaded files, one of @code{none}, @code{fast} (or @code{sparse}) and @code{full}. Specifying @code{full} will minimize disk fragmentation at a cost to file-creation speed."
  35071. msgstr ""
  35072. #. type: deftypevr
  35073. #: guix-git/doc/guix.texi:23260
  35074. msgid "Defaults to @samp{fast}."
  35075. msgstr ""
  35076. #. type: deftypevr
  35077. #: guix-git/doc/guix.texi:23263
  35078. #, no-wrap
  35079. msgid "{@code{transmission-daemon-configuration} parameter} boolean watch-dir-enabled?"
  35080. msgstr ""
  35081. #. type: deftypevr
  35082. #: guix-git/doc/guix.texi:23268
  35083. msgid "If @code{#t}, the directory specified by @code{watch-dir} will be watched for new @file{.torrent} files and the torrents they describe added automatically (and the original files removed, if @code{trash-original-torrent-files?} is @code{#t})."
  35084. msgstr ""
  35085. #. type: deftypevr
  35086. #: guix-git/doc/guix.texi:23273
  35087. #, no-wrap
  35088. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string watch-dir"
  35089. msgstr ""
  35090. #. type: deftypevr
  35091. #: guix-git/doc/guix.texi:23276
  35092. msgid "The directory to be watched for @file{.torrent} files indicating new torrents to be added, when @code{watch-dir-enabled} is @code{#t}."
  35093. msgstr ""
  35094. #. type: deftypevr
  35095. #: guix-git/doc/guix.texi:23281
  35096. #, no-wrap
  35097. msgid "{@code{transmission-daemon-configuration} parameter} boolean trash-original-torrent-files?"
  35098. msgstr ""
  35099. #. type: deftypevr
  35100. #: guix-git/doc/guix.texi:23285
  35101. msgid "When @code{#t}, @file{.torrent} files will be deleted from the watch directory once their torrent has been added (see @code{watch-directory-enabled?})."
  35102. msgstr ""
  35103. #. type: deftypevr
  35104. #: guix-git/doc/guix.texi:23290
  35105. #, no-wrap
  35106. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-down-enabled?"
  35107. msgstr ""
  35108. #. type: deftypevr
  35109. #: guix-git/doc/guix.texi:23293
  35110. msgid "When @code{#t}, the daemon's download speed will be limited to the rate specified by @code{speed-limit-down}."
  35111. msgstr ""
  35112. #. type: deftypevr
  35113. #: guix-git/doc/guix.texi:23298
  35114. #, no-wrap
  35115. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-down"
  35116. msgstr ""
  35117. #. type: deftypevr
  35118. #: guix-git/doc/guix.texi:23300
  35119. msgid "The default global-maximum download speed, in kilobytes per second."
  35120. msgstr ""
  35121. #. type: deftypevr
  35122. #: guix-git/doc/guix.texi:23305
  35123. #, no-wrap
  35124. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-up-enabled?"
  35125. msgstr ""
  35126. #. type: deftypevr
  35127. #: guix-git/doc/guix.texi:23308
  35128. msgid "When @code{#t}, the daemon's upload speed will be limited to the rate specified by @code{speed-limit-up}."
  35129. msgstr ""
  35130. #. type: deftypevr
  35131. #: guix-git/doc/guix.texi:23313
  35132. #, no-wrap
  35133. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-up"
  35134. msgstr ""
  35135. #. type: deftypevr
  35136. #: guix-git/doc/guix.texi:23315
  35137. msgid "The default global-maximum upload speed, in kilobytes per second."
  35138. msgstr ""
  35139. #. type: deftypevr
  35140. #: guix-git/doc/guix.texi:23320
  35141. #, no-wrap
  35142. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-enabled?"
  35143. msgstr ""
  35144. #. type: deftypevr
  35145. #: guix-git/doc/guix.texi:23326
  35146. msgid "When @code{#t}, the alternate speed limits @code{alt-speed-down} and @code{alt-speed-up} are used (in place of @code{speed-limit-down} and @code{speed-limit-up}, if they are enabled) to constrain the daemon's bandwidth usage. This can be scheduled to occur automatically at certain times during the week; see @code{alt-speed-time-enabled?}."
  35147. msgstr ""
  35148. #. type: deftypevr
  35149. #: guix-git/doc/guix.texi:23331
  35150. #, no-wrap
  35151. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-down"
  35152. msgstr ""
  35153. #. type: deftypevr
  35154. #: guix-git/doc/guix.texi:23333
  35155. msgid "The alternate global-maximum download speed, in kilobytes per second."
  35156. msgstr ""
  35157. #. type: deftypevr
  35158. #: guix-git/doc/guix.texi:23335 guix-git/doc/guix.texi:23342
  35159. #: guix-git/doc/guix.texi:23514 guix-git/doc/guix.texi:30888
  35160. #: guix-git/doc/guix.texi:30903
  35161. msgid "Defaults to @samp{50}."
  35162. msgstr ""
  35163. #. type: deftypevr
  35164. #: guix-git/doc/guix.texi:23338
  35165. #, no-wrap
  35166. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-up"
  35167. msgstr ""
  35168. #. type: deftypevr
  35169. #: guix-git/doc/guix.texi:23340
  35170. msgid "The alternate global-maximum upload speed, in kilobytes per second."
  35171. msgstr ""
  35172. #. type: deftypevr
  35173. #: guix-git/doc/guix.texi:23345
  35174. #, no-wrap
  35175. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-time-enabled?"
  35176. msgstr ""
  35177. #. type: deftypevr
  35178. #: guix-git/doc/guix.texi:23350
  35179. msgid "When @code{#t}, the alternate speed limits @code{alt-speed-down} and @code{alt-speed-up} will be enabled automatically during the periods specified by @code{alt-speed-time-day}, @code{alt-speed-time-begin} and @code{alt-time-speed-end}."
  35180. msgstr ""
  35181. #. type: deftypevr
  35182. #: guix-git/doc/guix.texi:23355
  35183. #, no-wrap
  35184. msgid "{@code{transmission-daemon-configuration} parameter} day-list alt-speed-time-day"
  35185. msgstr ""
  35186. #. type: deftypevr
  35187. #: guix-git/doc/guix.texi:23360
  35188. msgid "The days of the week on which the alternate-speed schedule should be used, specified either as a list of days (@code{sunday}, @code{monday}, and so on) or using one of the symbols @code{weekdays}, @code{weekends} or @code{all}."
  35189. msgstr ""
  35190. #. type: deftypevr
  35191. #: guix-git/doc/guix.texi:23362
  35192. msgid "Defaults to @samp{all}."
  35193. msgstr ""
  35194. #. type: deftypevr
  35195. #: guix-git/doc/guix.texi:23365
  35196. #, no-wrap
  35197. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-begin"
  35198. msgstr ""
  35199. #. type: deftypevr
  35200. #: guix-git/doc/guix.texi:23368
  35201. msgid "The time of day at which to enable the alternate speed limits, expressed as a number of minutes since midnight."
  35202. msgstr ""
  35203. #. type: deftypevr
  35204. #: guix-git/doc/guix.texi:23370
  35205. msgid "Defaults to @samp{540}."
  35206. msgstr ""
  35207. #. type: deftypevr
  35208. #: guix-git/doc/guix.texi:23373
  35209. #, no-wrap
  35210. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-end"
  35211. msgstr ""
  35212. #. type: deftypevr
  35213. #: guix-git/doc/guix.texi:23376
  35214. msgid "The time of day at which to disable the alternate speed limits, expressed as a number of minutes since midnight."
  35215. msgstr ""
  35216. #. type: deftypevr
  35217. #: guix-git/doc/guix.texi:23378
  35218. msgid "Defaults to @samp{1020}."
  35219. msgstr ""
  35220. #. type: deftypevr
  35221. #: guix-git/doc/guix.texi:23381
  35222. #, no-wrap
  35223. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv4"
  35224. msgstr ""
  35225. #. type: deftypevr
  35226. #: guix-git/doc/guix.texi:23384
  35227. msgid "The IP address at which to listen for peer connections, or ``0.0.0.0'' to listen at all available IP addresses."
  35228. msgstr ""
  35229. #. type: deftypevr
  35230. #: guix-git/doc/guix.texi:23386 guix-git/doc/guix.texi:23689
  35231. #: guix-git/doc/guix.texi:28802
  35232. msgid "Defaults to @samp{\"0.0.0.0\"}."
  35233. msgstr ""
  35234. #. type: deftypevr
  35235. #: guix-git/doc/guix.texi:23389
  35236. #, no-wrap
  35237. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv6"
  35238. msgstr ""
  35239. #. type: deftypevr
  35240. #: guix-git/doc/guix.texi:23392
  35241. msgid "The IPv6 address at which to listen for peer connections, or ``::'' to listen at all available IPv6 addresses."
  35242. msgstr ""
  35243. #. type: deftypevr
  35244. #: guix-git/doc/guix.texi:23394
  35245. msgid "Defaults to @samp{\"::\"}."
  35246. msgstr ""
  35247. #. type: deftypevr
  35248. #: guix-git/doc/guix.texi:23397
  35249. #, no-wrap
  35250. msgid "{@code{transmission-daemon-configuration} parameter} boolean peer-port-random-on-start?"
  35251. msgstr ""
  35252. #. type: deftypevr
  35253. #: guix-git/doc/guix.texi:23403
  35254. msgid "If @code{#t}, when the daemon starts it will select a port at random on which to listen for peer connections, from the range specified (inclusively) by @code{peer-port-random-low} and @code{peer-port-random-high}. Otherwise, it listens on the port specified by @code{peer-port}."
  35255. msgstr ""
  35256. #. type: deftypevr
  35257. #: guix-git/doc/guix.texi:23408
  35258. #, no-wrap
  35259. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-low"
  35260. msgstr ""
  35261. #. type: deftypevr
  35262. #: guix-git/doc/guix.texi:23411
  35263. msgid "The lowest selectable port number when @code{peer-port-random-on-start?} is @code{#t}."
  35264. msgstr ""
  35265. #. type: deftypevr
  35266. #: guix-git/doc/guix.texi:23413
  35267. msgid "Defaults to @samp{49152}."
  35268. msgstr ""
  35269. #. type: deftypevr
  35270. #: guix-git/doc/guix.texi:23416
  35271. #, no-wrap
  35272. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-high"
  35273. msgstr ""
  35274. #. type: deftypevr
  35275. #: guix-git/doc/guix.texi:23419
  35276. msgid "The highest selectable port number when @code{peer-port-random-on-start} is @code{#t}."
  35277. msgstr ""
  35278. #. type: deftypevr
  35279. #: guix-git/doc/guix.texi:23421
  35280. msgid "Defaults to @samp{65535}."
  35281. msgstr ""
  35282. #. type: deftypevr
  35283. #: guix-git/doc/guix.texi:23424
  35284. #, no-wrap
  35285. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port"
  35286. msgstr ""
  35287. #. type: deftypevr
  35288. #: guix-git/doc/guix.texi:23427
  35289. msgid "The port on which to listen for peer connections when @code{peer-port-random-on-start?} is @code{#f}."
  35290. msgstr ""
  35291. #. type: deftypevr
  35292. #: guix-git/doc/guix.texi:23429
  35293. msgid "Defaults to @samp{51413}."
  35294. msgstr ""
  35295. #. type: deftypevr
  35296. #: guix-git/doc/guix.texi:23432
  35297. #, no-wrap
  35298. msgid "{@code{transmission-daemon-configuration} parameter} boolean port-forwarding-enabled?"
  35299. msgstr ""
  35300. #. type: deftypevr
  35301. #: guix-git/doc/guix.texi:23436
  35302. msgid "If @code{#t}, the daemon will attempt to configure port-forwarding on an upstream gateway automatically using @acronym{UPnP} and @acronym{NAT-PMP}."
  35303. msgstr ""
  35304. #. type: deftypevr
  35305. #: guix-git/doc/guix.texi:23441
  35306. #, no-wrap
  35307. msgid "{@code{transmission-daemon-configuration} parameter} encryption-mode encryption"
  35308. msgstr ""
  35309. #. type: deftypevr
  35310. #: guix-git/doc/guix.texi:23446
  35311. msgid "The encryption preference for peer connections, one of @code{prefer-unencrypted-connections}, @code{prefer-encrypted-connections} or @code{require-encrypted-connections}."
  35312. msgstr ""
  35313. #. type: deftypevr
  35314. #: guix-git/doc/guix.texi:23448
  35315. msgid "Defaults to @samp{prefer-encrypted-connections}."
  35316. msgstr ""
  35317. #. type: deftypevr
  35318. #: guix-git/doc/guix.texi:23451
  35319. #, no-wrap
  35320. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string peer-congestion-algorithm"
  35321. msgstr ""
  35322. #. type: deftypevr
  35323. #: guix-git/doc/guix.texi:23456
  35324. msgid "The TCP congestion-control algorithm to use for peer connections, specified using a string recognized by the operating system in calls to @code{setsockopt} (or set to @code{disabled}, in which case the operating-system default is used)."
  35325. msgstr ""
  35326. #. type: deftypevr
  35327. #: guix-git/doc/guix.texi:23465
  35328. msgid "Note that on GNU/Linux systems, the kernel must be configured to allow processes to use a congestion-control algorithm not in the default set; otherwise, it will deny these requests with ``Operation not permitted''. To see which algorithms are available on your system and which are currently permitted for use, look at the contents of the files @file{tcp_available_congestion_control} and @file{tcp_allowed_congestion_control} in the @file{/proc/sys/net/ipv4} directory."
  35329. msgstr ""
  35330. #. type: deftypevr
  35331. #: guix-git/doc/guix.texi:23473
  35332. msgid "As an example, to have Transmission Daemon use @uref{http://www-ece.rice.edu/networks/TCP-LP/,the TCP Low Priority congestion-control algorithm}, you'll need to modify your kernel configuration to build in support for the algorithm, then update your operating-system configuration to allow its use by adding a @code{sysctl-service-type} service (or updating the existing one's configuration) with lines like the following:"
  35333. msgstr ""
  35334. #. type: lisp
  35335. #: guix-git/doc/guix.texi:23480
  35336. #, no-wrap
  35337. msgid ""
  35338. "(service sysctl-service-type\n"
  35339. " (sysctl-configuration\n"
  35340. " (settings\n"
  35341. " (\"net.ipv4.tcp_allowed_congestion_control\" .\n"
  35342. " \"reno cubic lp\"))))\n"
  35343. msgstr ""
  35344. #. type: deftypevr
  35345. #: guix-git/doc/guix.texi:23483
  35346. msgid "The Transmission Daemon configuration can then be updated with"
  35347. msgstr ""
  35348. #. type: lisp
  35349. #: guix-git/doc/guix.texi:23486
  35350. #, no-wrap
  35351. msgid "(peer-congestion-algorithm \"lp\")\n"
  35352. msgstr ""
  35353. #. type: deftypevr
  35354. #: guix-git/doc/guix.texi:23489
  35355. msgid "and the system reconfigured to have the changes take effect."
  35356. msgstr ""
  35357. #. type: deftypevr
  35358. #: guix-git/doc/guix.texi:23494
  35359. #, no-wrap
  35360. msgid "{@code{transmission-daemon-configuration} parameter} tcp-type-of-service peer-socket-tos"
  35361. msgstr ""
  35362. #. type: deftypevr
  35363. #: guix-git/doc/guix.texi:23498
  35364. msgid "The type of service to request in outgoing @acronym{TCP} packets, one of @code{default}, @code{low-cost}, @code{throughput}, @code{low-delay} and @code{reliability}."
  35365. msgstr ""
  35366. #. type: deftypevr
  35367. #: guix-git/doc/guix.texi:23500
  35368. msgid "Defaults to @samp{default}."
  35369. msgstr ""
  35370. #. type: deftypevr
  35371. #: guix-git/doc/guix.texi:23503
  35372. #, no-wrap
  35373. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-global"
  35374. msgstr ""
  35375. #. type: deftypevr
  35376. #: guix-git/doc/guix.texi:23505
  35377. msgid "The global limit on the number of connected peers."
  35378. msgstr ""
  35379. #. type: deftypevr
  35380. #: guix-git/doc/guix.texi:23507
  35381. msgid "Defaults to @samp{200}."
  35382. msgstr ""
  35383. #. type: deftypevr
  35384. #: guix-git/doc/guix.texi:23510
  35385. #, no-wrap
  35386. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-per-torrent"
  35387. msgstr ""
  35388. #. type: deftypevr
  35389. #: guix-git/doc/guix.texi:23512
  35390. msgid "The per-torrent limit on the number of connected peers."
  35391. msgstr ""
  35392. #. type: deftypevr
  35393. #: guix-git/doc/guix.texi:23517
  35394. #, no-wrap
  35395. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer upload-slots-per-torrent"
  35396. msgstr ""
  35397. #. type: deftypevr
  35398. #: guix-git/doc/guix.texi:23520
  35399. msgid "The maximum number of peers to which the daemon will upload data simultaneously for each torrent."
  35400. msgstr ""
  35401. #. type: deftypevr
  35402. #: guix-git/doc/guix.texi:23522
  35403. msgid "Defaults to @samp{14}."
  35404. msgstr ""
  35405. #. type: deftypevr
  35406. #: guix-git/doc/guix.texi:23525
  35407. #, no-wrap
  35408. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-id-ttl-hours"
  35409. msgstr ""
  35410. #. type: deftypevr
  35411. #: guix-git/doc/guix.texi:23528
  35412. msgid "The maximum lifespan, in hours, of the peer ID associated with each public torrent before it is regenerated."
  35413. msgstr ""
  35414. #. type: deftypevr
  35415. #: guix-git/doc/guix.texi:23530
  35416. msgid "Defaults to @samp{6}."
  35417. msgstr ""
  35418. #. type: deftypevr
  35419. #: guix-git/doc/guix.texi:23533
  35420. #, no-wrap
  35421. msgid "{@code{transmission-daemon-configuration} parameter} boolean blocklist-enabled?"
  35422. msgstr ""
  35423. #. type: deftypevr
  35424. #: guix-git/doc/guix.texi:23536
  35425. msgid "When @code{#t}, the daemon will ignore peers mentioned in the blocklist it has most recently downloaded from @code{blocklist-url}."
  35426. msgstr ""
  35427. #. type: deftypevr
  35428. #: guix-git/doc/guix.texi:23541
  35429. #, no-wrap
  35430. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string blocklist-url"
  35431. msgstr ""
  35432. #. type: deftypevr
  35433. #: guix-git/doc/guix.texi:23545
  35434. msgid "The URL of a peer blocklist (in @acronym{P2P}-plaintext or eMule @file{.dat} format) to be periodically downloaded and applied when @code{blocklist-enabled?} is @code{#t}."
  35435. msgstr ""
  35436. #. type: deftypevr
  35437. #: guix-git/doc/guix.texi:23550
  35438. #, no-wrap
  35439. msgid "{@code{transmission-daemon-configuration} parameter} boolean download-queue-enabled?"
  35440. msgstr ""
  35441. #. type: deftypevr
  35442. #: guix-git/doc/guix.texi:23553
  35443. msgid "If @code{#t}, the daemon will be limited to downloading at most @code{download-queue-size} non-stalled torrents simultaneously."
  35444. msgstr ""
  35445. #. type: deftypevr
  35446. #: guix-git/doc/guix.texi:23558
  35447. #, no-wrap
  35448. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer download-queue-size"
  35449. msgstr ""
  35450. #. type: deftypevr
  35451. #: guix-git/doc/guix.texi:23562
  35452. msgid "The size of the daemon's download queue, which limits the number of non-stalled torrents it will download at any one time when @code{download-queue-enabled?} is @code{#t}."
  35453. msgstr ""
  35454. #. type: deftypevr
  35455. #: guix-git/doc/guix.texi:23567
  35456. #, no-wrap
  35457. msgid "{@code{transmission-daemon-configuration} parameter} boolean seed-queue-enabled?"
  35458. msgstr ""
  35459. #. type: deftypevr
  35460. #: guix-git/doc/guix.texi:23570
  35461. msgid "If @code{#t}, the daemon will be limited to seeding at most @code{seed-queue-size} non-stalled torrents simultaneously."
  35462. msgstr ""
  35463. #. type: deftypevr
  35464. #: guix-git/doc/guix.texi:23575
  35465. #, no-wrap
  35466. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer seed-queue-size"
  35467. msgstr ""
  35468. #. type: deftypevr
  35469. #: guix-git/doc/guix.texi:23579
  35470. msgid "The size of the daemon's seed queue, which limits the number of non-stalled torrents it will seed at any one time when @code{seed-queue-enabled?} is @code{#t}."
  35471. msgstr ""
  35472. #. type: deftypevr
  35473. #: guix-git/doc/guix.texi:23584
  35474. #, no-wrap
  35475. msgid "{@code{transmission-daemon-configuration} parameter} boolean queue-stalled-enabled?"
  35476. msgstr ""
  35477. #. type: deftypevr
  35478. #: guix-git/doc/guix.texi:23589
  35479. msgid "When @code{#t}, the daemon will consider torrents for which it has not shared data in the past @code{queue-stalled-minutes} minutes to be stalled and not count them against its @code{download-queue-size} and @code{seed-queue-size} limits."
  35480. msgstr ""
  35481. #. type: deftypevr
  35482. #: guix-git/doc/guix.texi:23594
  35483. #, no-wrap
  35484. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer queue-stalled-minutes"
  35485. msgstr ""
  35486. #. type: deftypevr
  35487. #: guix-git/doc/guix.texi:23598
  35488. msgid "The maximum period, in minutes, a torrent may be idle before it is considered to be stalled, when @code{queue-stalled-enabled?} is @code{#t}."
  35489. msgstr ""
  35490. #. type: deftypevr
  35491. #: guix-git/doc/guix.texi:23603
  35492. #, no-wrap
  35493. msgid "{@code{transmission-daemon-configuration} parameter} boolean ratio-limit-enabled?"
  35494. msgstr ""
  35495. #. type: deftypevr
  35496. #: guix-git/doc/guix.texi:23606
  35497. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it reaches the ratio specified by @code{ratio-limit}."
  35498. msgstr ""
  35499. #. type: deftypevr
  35500. #: guix-git/doc/guix.texi:23611
  35501. #, no-wrap
  35502. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-rational ratio-limit"
  35503. msgstr ""
  35504. #. type: deftypevr
  35505. #: guix-git/doc/guix.texi:23614
  35506. msgid "The ratio at which a torrent being seeded will be paused, when @code{ratio-limit-enabled?} is @code{#t}."
  35507. msgstr ""
  35508. #. type: deftypevr
  35509. #: guix-git/doc/guix.texi:23616
  35510. msgid "Defaults to @samp{2.0}."
  35511. msgstr ""
  35512. #. type: deftypevr
  35513. #: guix-git/doc/guix.texi:23619
  35514. #, no-wrap
  35515. msgid "{@code{transmission-daemon-configuration} parameter} boolean idle-seeding-limit-enabled?"
  35516. msgstr ""
  35517. #. type: deftypevr
  35518. #: guix-git/doc/guix.texi:23622
  35519. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it has been idle for @code{idle-seeding-limit} minutes."
  35520. msgstr ""
  35521. #. type: deftypevr
  35522. #: guix-git/doc/guix.texi:23627
  35523. #, no-wrap
  35524. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer idle-seeding-limit"
  35525. msgstr ""
  35526. #. type: deftypevr
  35527. #: guix-git/doc/guix.texi:23631
  35528. msgid "The maximum period, in minutes, a torrent being seeded may be idle before it is paused, when @code{idle-seeding-limit-enabled?} is @code{#t}."
  35529. msgstr ""
  35530. #. type: deftypevr
  35531. #: guix-git/doc/guix.texi:23636
  35532. #, no-wrap
  35533. msgid "{@code{transmission-daemon-configuration} parameter} boolean dht-enabled?"
  35534. msgstr ""
  35535. #. type: deftypevr
  35536. #: guix-git/doc/guix.texi:23640
  35537. msgid "Enable @uref{http://bittorrent.org/beps/bep_0005.html,the distributed hash table (@acronym{DHT}) protocol}, which supports the use of trackerless torrents."
  35538. msgstr ""
  35539. #. type: deftypevr
  35540. #: guix-git/doc/guix.texi:23645
  35541. #, no-wrap
  35542. msgid "{@code{transmission-daemon-configuration} parameter} boolean lpd-enabled?"
  35543. msgstr ""
  35544. #. type: deftypevr
  35545. #: guix-git/doc/guix.texi:23650
  35546. msgid "Enable @uref{https://en.wikipedia.org/wiki/Local_Peer_Discovery,local peer discovery} (@acronym{LPD}), which allows the discovery of peers on the local network and may reduce the amount of data sent over the public Internet."
  35547. msgstr ""
  35548. #. type: deftypevr
  35549. #: guix-git/doc/guix.texi:23655
  35550. #, no-wrap
  35551. msgid "{@code{transmission-daemon-configuration} parameter} boolean pex-enabled?"
  35552. msgstr ""
  35553. #. type: deftypevr
  35554. #: guix-git/doc/guix.texi:23659
  35555. msgid "Enable @uref{https://en.wikipedia.org/wiki/Peer_exchange,peer exchange} (@acronym{PEX}), which reduces the daemon's reliance on external trackers and may improve its performance."
  35556. msgstr ""
  35557. #. type: deftypevr
  35558. #: guix-git/doc/guix.texi:23664
  35559. #, no-wrap
  35560. msgid "{@code{transmission-daemon-configuration} parameter} boolean utp-enabled?"
  35561. msgstr ""
  35562. #. type: deftypevr
  35563. #: guix-git/doc/guix.texi:23669
  35564. msgid "Enable @uref{http://bittorrent.org/beps/bep_0029.html,the micro transport protocol} (@acronym{uTP}), which aims to reduce the impact of BitTorrent traffic on other users of the local network while maintaining full utilization of the available bandwidth."
  35565. msgstr ""
  35566. #. type: deftypevr
  35567. #: guix-git/doc/guix.texi:23674
  35568. #, no-wrap
  35569. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-enabled?"
  35570. msgstr ""
  35571. #. type: deftypevr
  35572. #: guix-git/doc/guix.texi:23679
  35573. msgid "If @code{#t}, enable the remote procedure call (@acronym{RPC}) interface, which allows remote control of the daemon via its Web interface, the @command{transmission-remote} command-line client, and similar tools."
  35574. msgstr ""
  35575. #. type: deftypevr
  35576. #: guix-git/doc/guix.texi:23684
  35577. #, no-wrap
  35578. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-bind-address"
  35579. msgstr ""
  35580. #. type: deftypevr
  35581. #: guix-git/doc/guix.texi:23687
  35582. msgid "The IP address at which to listen for @acronym{RPC} connections, or ``0.0.0.0'' to listen at all available IP addresses."
  35583. msgstr ""
  35584. #. type: deftypevr
  35585. #: guix-git/doc/guix.texi:23692
  35586. #, no-wrap
  35587. msgid "{@code{transmission-daemon-configuration} parameter} port-number rpc-port"
  35588. msgstr ""
  35589. #. type: deftypevr
  35590. #: guix-git/doc/guix.texi:23694
  35591. msgid "The port on which to listen for @acronym{RPC} connections."
  35592. msgstr ""
  35593. #. type: deftypevr
  35594. #: guix-git/doc/guix.texi:23696
  35595. msgid "Defaults to @samp{9091}."
  35596. msgstr ""
  35597. #. type: deftypevr
  35598. #: guix-git/doc/guix.texi:23699
  35599. #, no-wrap
  35600. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-url"
  35601. msgstr ""
  35602. #. type: deftypevr
  35603. #: guix-git/doc/guix.texi:23701
  35604. msgid "The path prefix to use in the @acronym{RPC}-endpoint @acronym{URL}."
  35605. msgstr ""
  35606. #. type: deftypevr
  35607. #: guix-git/doc/guix.texi:23703
  35608. msgid "Defaults to @samp{\"/transmission/\"}."
  35609. msgstr ""
  35610. #. type: deftypevr
  35611. #: guix-git/doc/guix.texi:23706
  35612. #, no-wrap
  35613. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-authentication-required?"
  35614. msgstr ""
  35615. #. type: deftypevr
  35616. #: guix-git/doc/guix.texi:23711
  35617. msgid "When @code{#t}, clients must authenticate (see @code{rpc-username} and @code{rpc-password}) when using the @acronym{RPC} interface. Note this has the side effect of disabling host-name whitelisting (see @code{rpc-host-whitelist-enabled?}."
  35618. msgstr ""
  35619. #. type: deftypevr
  35620. #: guix-git/doc/guix.texi:23716
  35621. #, no-wrap
  35622. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string rpc-username"
  35623. msgstr ""
  35624. #. type: deftypevr
  35625. #: guix-git/doc/guix.texi:23719
  35626. msgid "The username required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}."
  35627. msgstr ""
  35628. #. type: deftypevr
  35629. #: guix-git/doc/guix.texi:23724
  35630. #, no-wrap
  35631. msgid "{@code{transmission-daemon-configuration} parameter} maybe-transmission-password-hash rpc-password"
  35632. msgstr ""
  35633. #. type: deftypevr
  35634. #: guix-git/doc/guix.texi:23730
  35635. msgid "The password required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}. This must be specified using a password hash in the format recognized by Transmission clients, either copied from an existing @file{settings.json} file or generated using the @code{transmission-password-hash} procedure."
  35636. msgstr ""
  35637. #. type: deftypevr
  35638. #: guix-git/doc/guix.texi:23735
  35639. #, no-wrap
  35640. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-whitelist-enabled?"
  35641. msgstr ""
  35642. #. type: deftypevr
  35643. #: guix-git/doc/guix.texi:23738
  35644. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they originate from an address specified in @code{rpc-whitelist}."
  35645. msgstr ""
  35646. #. type: deftypevr
  35647. #: guix-git/doc/guix.texi:23743
  35648. #, no-wrap
  35649. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-whitelist"
  35650. msgstr ""
  35651. #. type: deftypevr
  35652. #: guix-git/doc/guix.texi:23747
  35653. msgid "The list of IP and IPv6 addresses from which @acronym{RPC} requests will be accepted when @code{rpc-whitelist-enabled?} is @code{#t}. Wildcards may be specified using @samp{*}."
  35654. msgstr ""
  35655. #. type: deftypevr
  35656. #: guix-git/doc/guix.texi:23749
  35657. msgid "Defaults to @samp{(\"127.0.0.1\" \"::1\")}."
  35658. msgstr ""
  35659. #. type: deftypevr
  35660. #: guix-git/doc/guix.texi:23752
  35661. #, no-wrap
  35662. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-host-whitelist-enabled?"
  35663. msgstr ""
  35664. #. type: deftypevr
  35665. #: guix-git/doc/guix.texi:23757
  35666. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they are addressed to a host named in @code{rpc-host-whitelist}. Note that requests to ``localhost'' or ``localhost.'', or to a numeric address, are always accepted regardless of these settings."
  35667. msgstr ""
  35668. #. type: deftypevr
  35669. #: guix-git/doc/guix.texi:23760
  35670. msgid "Note also this functionality is disabled when @code{rpc-authentication-required?} is @code{#t}."
  35671. msgstr ""
  35672. #. type: deftypevr
  35673. #: guix-git/doc/guix.texi:23765
  35674. #, no-wrap
  35675. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-host-whitelist"
  35676. msgstr ""
  35677. #. type: deftypevr
  35678. #: guix-git/doc/guix.texi:23768
  35679. msgid "The list of host names recognized by the @acronym{RPC} server when @code{rpc-host-whitelist-enabled?} is @code{#t}."
  35680. msgstr ""
  35681. #. type: deftypevr
  35682. #: guix-git/doc/guix.texi:23773
  35683. #, no-wrap
  35684. msgid "{@code{transmission-daemon-configuration} parameter} message-level message-level"
  35685. msgstr ""
  35686. #. type: deftypevr
  35687. #: guix-git/doc/guix.texi:23777
  35688. msgid "The minimum severity level of messages to be logged (to @file{/var/log/transmission.log}) by the daemon, one of @code{none} (no logging), @code{error}, @code{info} and @code{debug}."
  35689. msgstr ""
  35690. #. type: deftypevr
  35691. #: guix-git/doc/guix.texi:23782
  35692. #, no-wrap
  35693. msgid "{@code{transmission-daemon-configuration} parameter} boolean start-added-torrents?"
  35694. msgstr ""
  35695. #. type: deftypevr
  35696. #: guix-git/doc/guix.texi:23785
  35697. msgid "When @code{#t}, torrents are started as soon as they are added; otherwise, they are added in ``paused'' state."
  35698. msgstr ""
  35699. #. type: deftypevr
  35700. #: guix-git/doc/guix.texi:23790
  35701. #, no-wrap
  35702. msgid "{@code{transmission-daemon-configuration} parameter} boolean script-torrent-done-enabled?"
  35703. msgstr ""
  35704. #. type: deftypevr
  35705. #: guix-git/doc/guix.texi:23794
  35706. msgid "When @code{#t}, the script specified by @code{script-torrent-done-filename} will be invoked each time a torrent completes."
  35707. msgstr ""
  35708. #. type: deftypevr
  35709. #: guix-git/doc/guix.texi:23799
  35710. #, no-wrap
  35711. msgid "{@code{transmission-daemon-configuration} parameter} maybe-file-object script-torrent-done-filename"
  35712. msgstr ""
  35713. #. type: deftypevr
  35714. #: guix-git/doc/guix.texi:23803
  35715. msgid "A file name or file-like object specifying a script to run each time a torrent completes, when @code{script-torrent-done-enabled?} is @code{#t}."
  35716. msgstr ""
  35717. #. type: deftypevr
  35718. #: guix-git/doc/guix.texi:23808
  35719. #, no-wrap
  35720. msgid "{@code{transmission-daemon-configuration} parameter} boolean scrape-paused-torrents-enabled?"
  35721. msgstr ""
  35722. #. type: deftypevr
  35723. #: guix-git/doc/guix.texi:23811
  35724. msgid "When @code{#t}, the daemon will scrape trackers for a torrent even when the torrent is paused."
  35725. msgstr ""
  35726. #. type: deftypevr
  35727. #: guix-git/doc/guix.texi:23816
  35728. #, no-wrap
  35729. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer cache-size-mb"
  35730. msgstr ""
  35731. #. type: deftypevr
  35732. #: guix-git/doc/guix.texi:23820
  35733. msgid "The amount of memory, in megabytes, to allocate for the daemon's in-memory cache. A larger value may increase performance by reducing the frequency of disk I/O."
  35734. msgstr ""
  35735. #. type: deftypevr
  35736. #: guix-git/doc/guix.texi:23822
  35737. msgid "Defaults to @samp{4}."
  35738. msgstr ""
  35739. #. type: deftypevr
  35740. #: guix-git/doc/guix.texi:23825
  35741. #, no-wrap
  35742. msgid "{@code{transmission-daemon-configuration} parameter} boolean prefetch-enabled?"
  35743. msgstr ""
  35744. #. type: deftypevr
  35745. #: guix-git/doc/guix.texi:23829
  35746. msgid "When @code{#t}, the daemon will try to improve I/O performance by hinting to the operating system which data is likely to be read next from disk to satisfy requests from peers."
  35747. msgstr ""
  35748. #. type: subsubheading
  35749. #: guix-git/doc/guix.texi:23842
  35750. #, no-wrap
  35751. msgid "Tailon Service"
  35752. msgstr ""
  35753. #. type: Plain text
  35754. #: guix-git/doc/guix.texi:23846
  35755. msgid "@uref{https://tailon.readthedocs.io/, Tailon} is a web application for viewing and searching log files."
  35756. msgstr ""
  35757. #. type: Plain text
  35758. #: guix-git/doc/guix.texi:23849
  35759. msgid "The following example will configure the service with default values. By default, Tailon can be accessed on port 8080 (@code{http://localhost:8080})."
  35760. msgstr ""
  35761. #. type: lisp
  35762. #: guix-git/doc/guix.texi:23852
  35763. #, no-wrap
  35764. msgid "(service tailon-service-type)\n"
  35765. msgstr ""
  35766. #. type: Plain text
  35767. #: guix-git/doc/guix.texi:23856
  35768. msgid "The following example customises more of the Tailon configuration, adding @command{sed} to the list of allowed commands."
  35769. msgstr ""
  35770. #. type: lisp
  35771. #: guix-git/doc/guix.texi:23863
  35772. #, no-wrap
  35773. msgid ""
  35774. "(service tailon-service-type\n"
  35775. " (tailon-configuration\n"
  35776. " (config-file\n"
  35777. " (tailon-configuration-file\n"
  35778. " (allowed-commands '(\"tail\" \"grep\" \"awk\" \"sed\"))))))\n"
  35779. msgstr ""
  35780. #. type: deftp
  35781. #: guix-git/doc/guix.texi:23866
  35782. #, no-wrap
  35783. msgid "{Data Type} tailon-configuration"
  35784. msgstr ""
  35785. #. type: deftp
  35786. #: guix-git/doc/guix.texi:23869
  35787. msgid "Data type representing the configuration of Tailon. This type has the following parameters:"
  35788. msgstr ""
  35789. #. type: item
  35790. #: guix-git/doc/guix.texi:23871
  35791. #, no-wrap
  35792. msgid "@code{config-file} (default: @code{(tailon-configuration-file)})"
  35793. msgstr ""
  35794. #. type: table
  35795. #: guix-git/doc/guix.texi:23875
  35796. msgid "The configuration file to use for Tailon. This can be set to a @dfn{tailon-configuration-file} record value, or any gexp (@pxref{G-Expressions})."
  35797. msgstr ""
  35798. #. type: table
  35799. #: guix-git/doc/guix.texi:23878
  35800. msgid "For example, to instead use a local file, the @code{local-file} function can be used:"
  35801. msgstr ""
  35802. #. type: lisp
  35803. #: guix-git/doc/guix.texi:23883
  35804. #, no-wrap
  35805. msgid ""
  35806. "(service tailon-service-type\n"
  35807. " (tailon-configuration\n"
  35808. " (config-file (local-file \"./my-tailon.conf\"))))\n"
  35809. msgstr ""
  35810. #. type: item
  35811. #: guix-git/doc/guix.texi:23885
  35812. #, no-wrap
  35813. msgid "@code{package} (default: @code{tailon})"
  35814. msgstr ""
  35815. #. type: table
  35816. #: guix-git/doc/guix.texi:23887
  35817. msgid "The tailon package to use."
  35818. msgstr ""
  35819. #. type: deftp
  35820. #: guix-git/doc/guix.texi:23891
  35821. #, no-wrap
  35822. msgid "{Data Type} tailon-configuration-file"
  35823. msgstr ""
  35824. #. type: deftp
  35825. #: guix-git/doc/guix.texi:23894
  35826. msgid "Data type representing the configuration options for Tailon. This type has the following parameters:"
  35827. msgstr ""
  35828. #. type: item
  35829. #: guix-git/doc/guix.texi:23896
  35830. #, no-wrap
  35831. msgid "@code{files} (default: @code{(list \"/var/log\")})"
  35832. msgstr ""
  35833. #. type: table
  35834. #: guix-git/doc/guix.texi:23901
  35835. msgid "List of files to display. The list can include strings for a single file or directory, or a list, where the first item is the name of a subsection, and the remaining items are the files or directories in that subsection."
  35836. msgstr ""
  35837. #. type: item
  35838. #: guix-git/doc/guix.texi:23902
  35839. #, no-wrap
  35840. msgid "@code{bind} (default: @code{\"localhost:8080\"})"
  35841. msgstr ""
  35842. #. type: table
  35843. #: guix-git/doc/guix.texi:23904
  35844. msgid "Address and port to which Tailon should bind on."
  35845. msgstr ""
  35846. #. type: item
  35847. #: guix-git/doc/guix.texi:23905
  35848. #, no-wrap
  35849. msgid "@code{relative-root} (default: @code{#f})"
  35850. msgstr ""
  35851. #. type: table
  35852. #: guix-git/doc/guix.texi:23907
  35853. msgid "URL path to use for Tailon, set to @code{#f} to not use a path."
  35854. msgstr ""
  35855. #. type: item
  35856. #: guix-git/doc/guix.texi:23908
  35857. #, no-wrap
  35858. msgid "@code{allow-transfers?} (default: @code{#t})"
  35859. msgstr ""
  35860. #. type: table
  35861. #: guix-git/doc/guix.texi:23910
  35862. msgid "Allow downloading the log files in the web interface."
  35863. msgstr ""
  35864. #. type: item
  35865. #: guix-git/doc/guix.texi:23911
  35866. #, no-wrap
  35867. msgid "@code{follow-names?} (default: @code{#t})"
  35868. msgstr ""
  35869. #. type: table
  35870. #: guix-git/doc/guix.texi:23913
  35871. msgid "Allow tailing of not-yet existent files."
  35872. msgstr ""
  35873. #. type: item
  35874. #: guix-git/doc/guix.texi:23914
  35875. #, no-wrap
  35876. msgid "@code{tail-lines} (default: @code{200})"
  35877. msgstr ""
  35878. #. type: table
  35879. #: guix-git/doc/guix.texi:23916
  35880. msgid "Number of lines to read initially from each file."
  35881. msgstr ""
  35882. #. type: item
  35883. #: guix-git/doc/guix.texi:23917
  35884. #, no-wrap
  35885. msgid "@code{allowed-commands} (default: @code{(list \"tail\" \"grep\" \"awk\")})"
  35886. msgstr ""
  35887. #. type: table
  35888. #: guix-git/doc/guix.texi:23919
  35889. msgid "Commands to allow running. By default, @code{sed} is disabled."
  35890. msgstr ""
  35891. #. type: table
  35892. #: guix-git/doc/guix.texi:23922
  35893. msgid "Set @code{debug?} to @code{#t} to show debug messages."
  35894. msgstr ""
  35895. #. type: item
  35896. #: guix-git/doc/guix.texi:23923
  35897. #, no-wrap
  35898. msgid "@code{wrap-lines} (default: @code{#t})"
  35899. msgstr ""
  35900. #. type: table
  35901. #: guix-git/doc/guix.texi:23927
  35902. msgid "Initial line wrapping state in the web interface. Set to @code{#t} to initially wrap lines (the default), or to @code{#f} to initially not wrap lines."
  35903. msgstr ""
  35904. #. type: item
  35905. #: guix-git/doc/guix.texi:23928
  35906. #, no-wrap
  35907. msgid "@code{http-auth} (default: @code{#f})"
  35908. msgstr ""
  35909. #. type: table
  35910. #: guix-git/doc/guix.texi:23932
  35911. msgid "HTTP authentication type to use. Set to @code{#f} to disable authentication (the default). Supported values are @code{\"digest\"} or @code{\"basic\"}."
  35912. msgstr ""
  35913. #. type: item
  35914. #: guix-git/doc/guix.texi:23933
  35915. #, no-wrap
  35916. msgid "@code{users} (default: @code{#f})"
  35917. msgstr ""
  35918. #. type: table
  35919. #: guix-git/doc/guix.texi:23938
  35920. msgid "If HTTP authentication is enabled (see @code{http-auth}), access will be restricted to the credentials provided here. To configure users, use a list of pairs, where the first element of the pair is the username, and the 2nd element of the pair is the password."
  35921. msgstr ""
  35922. #. type: lisp
  35923. #: guix-git/doc/guix.texi:23944
  35924. #, no-wrap
  35925. msgid ""
  35926. "(tailon-configuration-file\n"
  35927. " (http-auth \"basic\")\n"
  35928. " (users '((\"user1\" . \"password1\")\n"
  35929. " (\"user2\" . \"password2\"))))\n"
  35930. msgstr ""
  35931. #. type: subsubheading
  35932. #: guix-git/doc/guix.texi:23950
  35933. #, no-wrap
  35934. msgid "Darkstat Service"
  35935. msgstr ""
  35936. #. type: cindex
  35937. #: guix-git/doc/guix.texi:23951
  35938. #, no-wrap
  35939. msgid "darkstat"
  35940. msgstr ""
  35941. #. type: Plain text
  35942. #: guix-git/doc/guix.texi:23954
  35943. msgid "Darkstat is a packet sniffer that captures network traffic, calculates statistics about usage, and serves reports over HTTP."
  35944. msgstr ""
  35945. #. type: defvar
  35946. #: guix-git/doc/guix.texi:23955
  35947. #, no-wrap
  35948. msgid "{Scheme Variable} darkstat-service-type"
  35949. msgstr ""
  35950. #. type: defvar
  35951. #: guix-git/doc/guix.texi:23960
  35952. msgid "This is the service type for the @uref{https://unix4lyfe.org/darkstat/, darkstat} service, its value must be a @code{darkstat-configuration} record as in this example:"
  35953. msgstr ""
  35954. #. type: lisp
  35955. #: guix-git/doc/guix.texi:23965
  35956. #, no-wrap
  35957. msgid ""
  35958. "(service darkstat-service-type\n"
  35959. " (darkstat-configuration\n"
  35960. " (interface \"eno1\")))\n"
  35961. msgstr ""
  35962. #. type: deftp
  35963. #: guix-git/doc/guix.texi:23968
  35964. #, no-wrap
  35965. msgid "{Data Type} darkstat-configuration"
  35966. msgstr ""
  35967. #. type: deftp
  35968. #: guix-git/doc/guix.texi:23970
  35969. msgid "Data type representing the configuration of @command{darkstat}."
  35970. msgstr ""
  35971. #. type: item
  35972. #: guix-git/doc/guix.texi:23972
  35973. #, no-wrap
  35974. msgid "@code{package} (default: @code{darkstat})"
  35975. msgstr ""
  35976. #. type: table
  35977. #: guix-git/doc/guix.texi:23974
  35978. msgid "The darkstat package to use."
  35979. msgstr ""
  35980. #. type: code{#1}
  35981. #: guix-git/doc/guix.texi:23975
  35982. #, no-wrap
  35983. msgid "interface"
  35984. msgstr ""
  35985. #. type: table
  35986. #: guix-git/doc/guix.texi:23977
  35987. msgid "Capture traffic on the specified network interface."
  35988. msgstr ""
  35989. #. type: item
  35990. #: guix-git/doc/guix.texi:23978
  35991. #, no-wrap
  35992. msgid "@code{port} (default: @code{\"667\"})"
  35993. msgstr ""
  35994. #. type: table
  35995. #: guix-git/doc/guix.texi:23980
  35996. msgid "Bind the web interface to the specified port."
  35997. msgstr ""
  35998. #. type: table
  35999. #: guix-git/doc/guix.texi:23983 guix-git/doc/guix.texi:24018
  36000. msgid "Bind the web interface to the specified address."
  36001. msgstr ""
  36002. #. type: item
  36003. #: guix-git/doc/guix.texi:23984
  36004. #, no-wrap
  36005. msgid "@code{base} (default: @code{\"/\"})"
  36006. msgstr ""
  36007. #. type: table
  36008. #: guix-git/doc/guix.texi:23987
  36009. msgid "Specify the path of the base URL@. This can be useful if @command{darkstat} is accessed via a reverse proxy."
  36010. msgstr ""
  36011. #. type: subsubheading
  36012. #: guix-git/doc/guix.texi:23991
  36013. #, no-wrap
  36014. msgid "Prometheus Node Exporter Service"
  36015. msgstr ""
  36016. #. type: cindex
  36017. #: guix-git/doc/guix.texi:23993
  36018. #, no-wrap
  36019. msgid "prometheus-node-exporter"
  36020. msgstr ""
  36021. #. type: Plain text
  36022. #: guix-git/doc/guix.texi:23998
  36023. msgid "The Prometheus ``node exporter'' makes hardware and operating system statistics provided by the Linux kernel available for the Prometheus monitoring system. This service should be deployed on all physical nodes and virtual machines, where monitoring these statistics is desirable."
  36024. msgstr ""
  36025. #. type: defvar
  36026. #: guix-git/doc/guix.texi:23999
  36027. #, no-wrap
  36028. msgid "{Scheme variable} prometheus-node-exporter-service-type"
  36029. msgstr ""
  36030. #. type: defvar
  36031. #: guix-git/doc/guix.texi:24003
  36032. msgid "This is the service type for the @uref{https://github.com/prometheus/node_exporter/, prometheus-node-exporter} service, its value must be a @code{prometheus-node-exporter-configuration}."
  36033. msgstr ""
  36034. #. type: lisp
  36035. #: guix-git/doc/guix.texi:24006
  36036. #, no-wrap
  36037. msgid "(service prometheus-node-exporter-service-type)\n"
  36038. msgstr ""
  36039. #. type: deftp
  36040. #: guix-git/doc/guix.texi:24009
  36041. #, no-wrap
  36042. msgid "{Data Type} prometheus-node-exporter-configuration"
  36043. msgstr ""
  36044. #. type: deftp
  36045. #: guix-git/doc/guix.texi:24011
  36046. msgid "Data type representing the configuration of @command{node_exporter}."
  36047. msgstr ""
  36048. #. type: item
  36049. #: guix-git/doc/guix.texi:24013
  36050. #, no-wrap
  36051. msgid "@code{package} (default: @code{go-github-com-prometheus-node-exporter})"
  36052. msgstr ""
  36053. #. type: table
  36054. #: guix-git/doc/guix.texi:24015
  36055. msgid "The prometheus-node-exporter package to use."
  36056. msgstr ""
  36057. #. type: item
  36058. #: guix-git/doc/guix.texi:24016
  36059. #, no-wrap
  36060. msgid "@code{web-listen-address} (default: @code{\":9100\"})"
  36061. msgstr ""
  36062. #. type: item
  36063. #: guix-git/doc/guix.texi:24019
  36064. #, fuzzy, no-wrap
  36065. msgid "@code{textfile-directory} (default: @code{\"/var/lib/prometheus/node-exporter\"})"
  36066. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  36067. #. type: table
  36068. #: guix-git/doc/guix.texi:24023
  36069. msgid "This directory can be used to export metrics specific to this machine. Files containing metrics in the text format, with the filename ending in @code{.prom} should be placed in this directory."
  36070. msgstr ""
  36071. #. type: table
  36072. #: guix-git/doc/guix.texi:24026
  36073. msgid "Extra options to pass to the Prometheus node exporter."
  36074. msgstr ""
  36075. #. type: subsubheading
  36076. #: guix-git/doc/guix.texi:24030
  36077. #, no-wrap
  36078. msgid "Zabbix server"
  36079. msgstr ""
  36080. #. type: cindex
  36081. #: guix-git/doc/guix.texi:24031
  36082. #, no-wrap
  36083. msgid "zabbix zabbix-server"
  36084. msgstr ""
  36085. #. type: Plain text
  36086. #: guix-git/doc/guix.texi:24034
  36087. msgid "Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption:"
  36088. msgstr ""
  36089. #. type: item
  36090. #: guix-git/doc/guix.texi:24036
  36091. #, no-wrap
  36092. msgid "High performance, high capacity (able to monitor hundreds of thousands of devices)."
  36093. msgstr ""
  36094. #. type: item
  36095. #: guix-git/doc/guix.texi:24037
  36096. #, no-wrap
  36097. msgid "Auto-discovery of servers and network devices and interfaces."
  36098. msgstr ""
  36099. #. type: item
  36100. #: guix-git/doc/guix.texi:24038
  36101. #, no-wrap
  36102. msgid "Low-level discovery, allows to automatically start monitoring new items, file systems or network interfaces among others."
  36103. msgstr ""
  36104. #. type: item
  36105. #: guix-git/doc/guix.texi:24039
  36106. #, no-wrap
  36107. msgid "Distributed monitoring with centralized web administration."
  36108. msgstr ""
  36109. #. type: item
  36110. #: guix-git/doc/guix.texi:24040
  36111. #, no-wrap
  36112. msgid "Native high performance agents."
  36113. msgstr ""
  36114. #. type: item
  36115. #: guix-git/doc/guix.texi:24041
  36116. #, no-wrap
  36117. msgid "SLA, and ITIL KPI metrics on reporting."
  36118. msgstr ""
  36119. #. type: item
  36120. #: guix-git/doc/guix.texi:24042
  36121. #, no-wrap
  36122. msgid "High-level (business) view of monitored resources through user-defined visual console screens and dashboards."
  36123. msgstr ""
  36124. #. type: item
  36125. #: guix-git/doc/guix.texi:24043
  36126. #, no-wrap
  36127. msgid "Remote command execution through Zabbix proxies."
  36128. msgstr ""
  36129. #. type: Plain text
  36130. #: guix-git/doc/guix.texi:24049
  36131. msgid "Available @code{zabbix-server-configuration} fields are:"
  36132. msgstr ""
  36133. #. type: deftypevr
  36134. #: guix-git/doc/guix.texi:24050
  36135. #, no-wrap
  36136. msgid "{@code{zabbix-server-configuration} parameter} package zabbix-server"
  36137. msgstr ""
  36138. #. type: deftypevr
  36139. #: guix-git/doc/guix.texi:24052
  36140. msgid "The zabbix-server package."
  36141. msgstr ""
  36142. #. type: deftypevr
  36143. #: guix-git/doc/guix.texi:24055
  36144. #, no-wrap
  36145. msgid "{@code{zabbix-server-configuration} parameter} string user"
  36146. msgstr ""
  36147. #. type: deftypevr
  36148. #: guix-git/doc/guix.texi:24057
  36149. msgid "User who will run the Zabbix server."
  36150. msgstr ""
  36151. #. type: deftypevr
  36152. #: guix-git/doc/guix.texi:24059 guix-git/doc/guix.texi:24066
  36153. #: guix-git/doc/guix.texi:24080 guix-git/doc/guix.texi:24087
  36154. #: guix-git/doc/guix.texi:24188 guix-git/doc/guix.texi:24195
  36155. #: guix-git/doc/guix.texi:24306 guix-git/doc/guix.texi:24313
  36156. msgid "Defaults to @samp{\"zabbix\"}."
  36157. msgstr ""
  36158. #. type: deftypevr
  36159. #: guix-git/doc/guix.texi:24062
  36160. #, no-wrap
  36161. msgid "{@code{zabbix-server-configuration} parameter} group group"
  36162. msgstr ""
  36163. #. type: deftypevr
  36164. #: guix-git/doc/guix.texi:24064
  36165. msgid "Group who will run the Zabbix server."
  36166. msgstr ""
  36167. #. type: deftypevr
  36168. #: guix-git/doc/guix.texi:24069
  36169. #, no-wrap
  36170. msgid "{@code{zabbix-server-configuration} parameter} string db-host"
  36171. msgstr ""
  36172. #. type: deftypevr
  36173. #: guix-git/doc/guix.texi:24071 guix-git/doc/guix.texi:24290
  36174. msgid "Database host name."
  36175. msgstr ""
  36176. #. type: deftypevr
  36177. #: guix-git/doc/guix.texi:24073
  36178. msgid "Defaults to @samp{\"127.0.0.1\"}."
  36179. msgstr ""
  36180. #. type: deftypevr
  36181. #: guix-git/doc/guix.texi:24076
  36182. #, no-wrap
  36183. msgid "{@code{zabbix-server-configuration} parameter} string db-name"
  36184. msgstr ""
  36185. #. type: deftypevr
  36186. #: guix-git/doc/guix.texi:24078 guix-git/doc/guix.texi:24304
  36187. msgid "Database name."
  36188. msgstr ""
  36189. #. type: deftypevr
  36190. #: guix-git/doc/guix.texi:24083
  36191. #, no-wrap
  36192. msgid "{@code{zabbix-server-configuration} parameter} string db-user"
  36193. msgstr ""
  36194. #. type: deftypevr
  36195. #: guix-git/doc/guix.texi:24085 guix-git/doc/guix.texi:24311
  36196. msgid "Database user."
  36197. msgstr ""
  36198. #. type: deftypevr
  36199. #: guix-git/doc/guix.texi:24090
  36200. #, no-wrap
  36201. msgid "{@code{zabbix-server-configuration} parameter} string db-password"
  36202. msgstr ""
  36203. #. type: deftypevr
  36204. #: guix-git/doc/guix.texi:24093
  36205. msgid "Database password. Please, use @code{include-files} with @code{DBPassword=SECRET} inside a specified file instead."
  36206. msgstr ""
  36207. #. type: deftypevr
  36208. #: guix-git/doc/guix.texi:24098
  36209. #, no-wrap
  36210. msgid "{@code{zabbix-server-configuration} parameter} number db-port"
  36211. msgstr ""
  36212. #. type: deftypevr
  36213. #: guix-git/doc/guix.texi:24100 guix-git/doc/guix.texi:24297
  36214. msgid "Database port."
  36215. msgstr ""
  36216. #. type: deftypevr
  36217. #: guix-git/doc/guix.texi:24102 guix-git/doc/guix.texi:24299
  36218. msgid "Defaults to @samp{5432}."
  36219. msgstr ""
  36220. #. type: deftypevr
  36221. #: guix-git/doc/guix.texi:24105
  36222. #, no-wrap
  36223. msgid "{@code{zabbix-server-configuration} parameter} string log-type"
  36224. msgstr ""
  36225. #. type: deftypevr
  36226. #: guix-git/doc/guix.texi:24107 guix-git/doc/guix.texi:24208
  36227. msgid "Specifies where log messages are written to:"
  36228. msgstr ""
  36229. #. type: itemize
  36230. #: guix-git/doc/guix.texi:24111 guix-git/doc/guix.texi:24212
  36231. msgid "@code{system} - syslog."
  36232. msgstr ""
  36233. #. type: itemize
  36234. #: guix-git/doc/guix.texi:24114 guix-git/doc/guix.texi:24215
  36235. msgid "@code{file} - file specified with @code{log-file} parameter."
  36236. msgstr ""
  36237. #. type: itemize
  36238. #: guix-git/doc/guix.texi:24117 guix-git/doc/guix.texi:24218
  36239. msgid "@code{console} - standard output."
  36240. msgstr ""
  36241. #. type: deftypevr
  36242. #: guix-git/doc/guix.texi:24124
  36243. #, no-wrap
  36244. msgid "{@code{zabbix-server-configuration} parameter} string log-file"
  36245. msgstr ""
  36246. #. type: deftypevr
  36247. #: guix-git/doc/guix.texi:24126 guix-git/doc/guix.texi:24227
  36248. msgid "Log file name for @code{log-type} @code{file} parameter."
  36249. msgstr ""
  36250. #. type: deftypevr
  36251. #: guix-git/doc/guix.texi:24128
  36252. msgid "Defaults to @samp{\"/var/log/zabbix/server.log\"}."
  36253. msgstr ""
  36254. #. type: deftypevr
  36255. #: guix-git/doc/guix.texi:24131
  36256. #, no-wrap
  36257. msgid "{@code{zabbix-server-configuration} parameter} string pid-file"
  36258. msgstr ""
  36259. #. type: deftypevr
  36260. #: guix-git/doc/guix.texi:24133 guix-git/doc/guix.texi:24234
  36261. msgid "Name of PID file."
  36262. msgstr ""
  36263. #. type: deftypevr
  36264. #: guix-git/doc/guix.texi:24135
  36265. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_server.pid\"}."
  36266. msgstr ""
  36267. #. type: deftypevr
  36268. #: guix-git/doc/guix.texi:24138
  36269. #, no-wrap
  36270. msgid "{@code{zabbix-server-configuration} parameter} string ssl-ca-location"
  36271. msgstr ""
  36272. #. type: deftypevr
  36273. #: guix-git/doc/guix.texi:24141
  36274. msgid "The location of certificate authority (CA) files for SSL server certificate verification."
  36275. msgstr ""
  36276. #. type: deftypevr
  36277. #: guix-git/doc/guix.texi:24143
  36278. msgid "Defaults to @samp{\"/etc/ssl/certs/ca-certificates.crt\"}."
  36279. msgstr ""
  36280. #. type: deftypevr
  36281. #: guix-git/doc/guix.texi:24146
  36282. #, no-wrap
  36283. msgid "{@code{zabbix-server-configuration} parameter} string ssl-cert-location"
  36284. msgstr ""
  36285. #. type: deftypevr
  36286. #: guix-git/doc/guix.texi:24148
  36287. msgid "Location of SSL client certificates."
  36288. msgstr ""
  36289. #. type: deftypevr
  36290. #: guix-git/doc/guix.texi:24150
  36291. msgid "Defaults to @samp{\"/etc/ssl/certs\"}."
  36292. msgstr ""
  36293. #. type: deftypevr
  36294. #: guix-git/doc/guix.texi:24153
  36295. #, no-wrap
  36296. msgid "{@code{zabbix-server-configuration} parameter} string extra-options"
  36297. msgstr ""
  36298. #. type: deftypevr
  36299. #: guix-git/doc/guix.texi:24155 guix-git/doc/guix.texi:24259
  36300. msgid "Extra options will be appended to Zabbix server configuration file."
  36301. msgstr ""
  36302. #. type: deftypevr
  36303. #: guix-git/doc/guix.texi:24160
  36304. #, no-wrap
  36305. msgid "{@code{zabbix-server-configuration} parameter} include-files include-files"
  36306. msgstr ""
  36307. #. type: deftypevr
  36308. #: guix-git/doc/guix.texi:24163 guix-git/doc/guix.texi:24267
  36309. msgid "You may include individual files or all files in a directory in the configuration file."
  36310. msgstr ""
  36311. #. type: subsubheading
  36312. #: guix-git/doc/guix.texi:24170
  36313. #, no-wrap
  36314. msgid "Zabbix agent"
  36315. msgstr ""
  36316. #. type: cindex
  36317. #: guix-git/doc/guix.texi:24171
  36318. #, no-wrap
  36319. msgid "zabbix zabbix-agent"
  36320. msgstr ""
  36321. #. type: Plain text
  36322. #: guix-git/doc/guix.texi:24174
  36323. msgid "Zabbix agent gathers information for Zabbix server."
  36324. msgstr ""
  36325. #. type: Plain text
  36326. #: guix-git/doc/guix.texi:24178
  36327. msgid "Available @code{zabbix-agent-configuration} fields are:"
  36328. msgstr ""
  36329. #. type: deftypevr
  36330. #: guix-git/doc/guix.texi:24179
  36331. #, no-wrap
  36332. msgid "{@code{zabbix-agent-configuration} parameter} package zabbix-agent"
  36333. msgstr ""
  36334. #. type: deftypevr
  36335. #: guix-git/doc/guix.texi:24181
  36336. msgid "The zabbix-agent package."
  36337. msgstr ""
  36338. #. type: deftypevr
  36339. #: guix-git/doc/guix.texi:24184
  36340. #, no-wrap
  36341. msgid "{@code{zabbix-agent-configuration} parameter} string user"
  36342. msgstr ""
  36343. #. type: deftypevr
  36344. #: guix-git/doc/guix.texi:24186
  36345. msgid "User who will run the Zabbix agent."
  36346. msgstr ""
  36347. #. type: deftypevr
  36348. #: guix-git/doc/guix.texi:24191
  36349. #, no-wrap
  36350. msgid "{@code{zabbix-agent-configuration} parameter} group group"
  36351. msgstr ""
  36352. #. type: deftypevr
  36353. #: guix-git/doc/guix.texi:24193
  36354. msgid "Group who will run the Zabbix agent."
  36355. msgstr ""
  36356. #. type: deftypevr
  36357. #: guix-git/doc/guix.texi:24198
  36358. #, no-wrap
  36359. msgid "{@code{zabbix-agent-configuration} parameter} string hostname"
  36360. msgstr ""
  36361. #. type: deftypevr
  36362. #: guix-git/doc/guix.texi:24201
  36363. msgid "Unique, case sensitive hostname which is required for active checks and must match hostname as configured on the server."
  36364. msgstr ""
  36365. #. type: deftypevr
  36366. #: guix-git/doc/guix.texi:24206
  36367. #, no-wrap
  36368. msgid "{@code{zabbix-agent-configuration} parameter} string log-type"
  36369. msgstr ""
  36370. #. type: deftypevr
  36371. #: guix-git/doc/guix.texi:24225
  36372. #, no-wrap
  36373. msgid "{@code{zabbix-agent-configuration} parameter} string log-file"
  36374. msgstr ""
  36375. #. type: deftypevr
  36376. #: guix-git/doc/guix.texi:24229
  36377. msgid "Defaults to @samp{\"/var/log/zabbix/agent.log\"}."
  36378. msgstr ""
  36379. #. type: deftypevr
  36380. #: guix-git/doc/guix.texi:24232
  36381. #, no-wrap
  36382. msgid "{@code{zabbix-agent-configuration} parameter} string pid-file"
  36383. msgstr ""
  36384. #. type: deftypevr
  36385. #: guix-git/doc/guix.texi:24236
  36386. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_agent.pid\"}."
  36387. msgstr ""
  36388. #. type: deftypevr
  36389. #: guix-git/doc/guix.texi:24239
  36390. #, no-wrap
  36391. msgid "{@code{zabbix-agent-configuration} parameter} list server"
  36392. msgstr ""
  36393. #. type: deftypevr
  36394. #: guix-git/doc/guix.texi:24243
  36395. msgid "List of IP addresses, optionally in CIDR notation, or hostnames of Zabbix servers and Zabbix proxies. Incoming connections will be accepted only from the hosts listed here."
  36396. msgstr ""
  36397. #. type: deftypevr
  36398. #: guix-git/doc/guix.texi:24245 guix-git/doc/guix.texi:24254
  36399. msgid "Defaults to @samp{(\"127.0.0.1\")}."
  36400. msgstr ""
  36401. #. type: deftypevr
  36402. #: guix-git/doc/guix.texi:24248
  36403. #, no-wrap
  36404. msgid "{@code{zabbix-agent-configuration} parameter} list server-active"
  36405. msgstr ""
  36406. #. type: deftypevr
  36407. #: guix-git/doc/guix.texi:24252
  36408. msgid "List of IP:port (or hostname:port) pairs of Zabbix servers and Zabbix proxies for active checks. If port is not specified, default port is used. If this parameter is not specified, active checks are disabled."
  36409. msgstr ""
  36410. #. type: deftypevr
  36411. #: guix-git/doc/guix.texi:24257
  36412. #, no-wrap
  36413. msgid "{@code{zabbix-agent-configuration} parameter} string extra-options"
  36414. msgstr ""
  36415. #. type: deftypevr
  36416. #: guix-git/doc/guix.texi:24264
  36417. #, no-wrap
  36418. msgid "{@code{zabbix-agent-configuration} parameter} include-files include-files"
  36419. msgstr ""
  36420. #. type: subsubheading
  36421. #: guix-git/doc/guix.texi:24274
  36422. #, no-wrap
  36423. msgid "Zabbix front-end"
  36424. msgstr ""
  36425. #. type: cindex
  36426. #: guix-git/doc/guix.texi:24275
  36427. #, no-wrap
  36428. msgid "zabbix zabbix-front-end"
  36429. msgstr ""
  36430. #. type: Plain text
  36431. #: guix-git/doc/guix.texi:24278
  36432. msgid "This service provides a WEB interface to Zabbix server."
  36433. msgstr ""
  36434. #. type: Plain text
  36435. #: guix-git/doc/guix.texi:24282
  36436. msgid "Available @code{zabbix-front-end-configuration} fields are:"
  36437. msgstr ""
  36438. #. type: deftypevr
  36439. #: guix-git/doc/guix.texi:24283
  36440. #, no-wrap
  36441. msgid "{@code{zabbix-front-end-configuration} parameter} nginx-server-configuration-list nginx"
  36442. msgstr ""
  36443. #. type: deftypevr
  36444. #: guix-git/doc/guix.texi:24285 guix-git/doc/guix.texi:30515
  36445. msgid "NGINX configuration."
  36446. msgstr ""
  36447. #. type: deftypevr
  36448. #: guix-git/doc/guix.texi:24288
  36449. #, no-wrap
  36450. msgid "{@code{zabbix-front-end-configuration} parameter} string db-host"
  36451. msgstr ""
  36452. #. type: deftypevr
  36453. #: guix-git/doc/guix.texi:24295
  36454. #, no-wrap
  36455. msgid "{@code{zabbix-front-end-configuration} parameter} number db-port"
  36456. msgstr ""
  36457. #. type: deftypevr
  36458. #: guix-git/doc/guix.texi:24302
  36459. #, no-wrap
  36460. msgid "{@code{zabbix-front-end-configuration} parameter} string db-name"
  36461. msgstr ""
  36462. #. type: deftypevr
  36463. #: guix-git/doc/guix.texi:24309
  36464. #, no-wrap
  36465. msgid "{@code{zabbix-front-end-configuration} parameter} string db-user"
  36466. msgstr ""
  36467. #. type: deftypevr
  36468. #: guix-git/doc/guix.texi:24316
  36469. #, no-wrap
  36470. msgid "{@code{zabbix-front-end-configuration} parameter} string db-password"
  36471. msgstr ""
  36472. #. type: deftypevr
  36473. #: guix-git/doc/guix.texi:24318
  36474. msgid "Database password. Please, use @code{db-secret-file} instead."
  36475. msgstr ""
  36476. #. type: deftypevr
  36477. #: guix-git/doc/guix.texi:24323
  36478. #, no-wrap
  36479. msgid "{@code{zabbix-front-end-configuration} parameter} string db-secret-file"
  36480. msgstr ""
  36481. #. type: deftypevr
  36482. #: guix-git/doc/guix.texi:24328
  36483. msgid "Secret file containing the credentials for the Zabbix front-end. The value must be a local file name, not a G-expression. You are expected to create this file manually. Its contents will be copied into @file{zabbix.conf.php} as the value of @code{$DB['PASSWORD']}."
  36484. msgstr ""
  36485. #. type: deftypevr
  36486. #: guix-git/doc/guix.texi:24333
  36487. #, no-wrap
  36488. msgid "{@code{zabbix-front-end-configuration} parameter} string zabbix-host"
  36489. msgstr ""
  36490. #. type: deftypevr
  36491. #: guix-git/doc/guix.texi:24335
  36492. msgid "Zabbix server hostname."
  36493. msgstr ""
  36494. #. type: deftypevr
  36495. #: guix-git/doc/guix.texi:24340
  36496. #, no-wrap
  36497. msgid "{@code{zabbix-front-end-configuration} parameter} number zabbix-port"
  36498. msgstr ""
  36499. #. type: deftypevr
  36500. #: guix-git/doc/guix.texi:24342
  36501. msgid "Zabbix server port."
  36502. msgstr ""
  36503. #. type: deftypevr
  36504. #: guix-git/doc/guix.texi:24344
  36505. msgid "Defaults to @samp{10051}."
  36506. msgstr ""
  36507. #. type: cindex
  36508. #: guix-git/doc/guix.texi:24352
  36509. #, no-wrap
  36510. msgid "Kerberos"
  36511. msgstr ""
  36512. #. type: Plain text
  36513. #: guix-git/doc/guix.texi:24356
  36514. msgid "The @code{(gnu services kerberos)} module provides services relating to the authentication protocol @dfn{Kerberos}."
  36515. msgstr ""
  36516. #. type: subsubheading
  36517. #: guix-git/doc/guix.texi:24357
  36518. #, no-wrap
  36519. msgid "Krb5 Service"
  36520. msgstr ""
  36521. #. type: Plain text
  36522. #: guix-git/doc/guix.texi:24364
  36523. msgid "Programs using a Kerberos client library normally expect a configuration file in @file{/etc/krb5.conf}. This service generates such a file from a definition provided in the operating system declaration. It does not cause any daemon to be started."
  36524. msgstr ""
  36525. #. type: Plain text
  36526. #: guix-git/doc/guix.texi:24368
  36527. msgid "No ``keytab'' files are provided by this service---you must explicitly create them. This service is known to work with the MIT client library, @code{mit-krb5}. Other implementations have not been tested."
  36528. msgstr ""
  36529. #. type: defvr
  36530. #: guix-git/doc/guix.texi:24369
  36531. #, no-wrap
  36532. msgid "{Scheme Variable} krb5-service-type"
  36533. msgstr ""
  36534. #. type: defvr
  36535. #: guix-git/doc/guix.texi:24371
  36536. msgid "A service type for Kerberos 5 clients."
  36537. msgstr ""
  36538. #. type: Plain text
  36539. #: guix-git/doc/guix.texi:24375
  36540. msgid "Here is an example of its use:"
  36541. msgstr ""
  36542. #. type: lisp
  36543. #: guix-git/doc/guix.texi:24389
  36544. #, no-wrap
  36545. msgid ""
  36546. "(service krb5-service-type\n"
  36547. " (krb5-configuration\n"
  36548. " (default-realm \"EXAMPLE.COM\")\n"
  36549. " (allow-weak-crypto? #t)\n"
  36550. " (realms (list\n"
  36551. " (krb5-realm\n"
  36552. " (name \"EXAMPLE.COM\")\n"
  36553. " (admin-server \"groucho.example.com\")\n"
  36554. " (kdc \"karl.example.com\"))\n"
  36555. " (krb5-realm\n"
  36556. " (name \"ARGRX.EDU\")\n"
  36557. " (admin-server \"kerb-admin.argrx.edu\")\n"
  36558. " (kdc \"keys.argrx.edu\"))))))\n"
  36559. msgstr ""
  36560. #. type: Plain text
  36561. #: guix-git/doc/guix.texi:24393
  36562. msgid "This example provides a Kerberos@tie{}5 client configuration which:"
  36563. msgstr ""
  36564. #. type: item
  36565. #: guix-git/doc/guix.texi:24394
  36566. #, no-wrap
  36567. msgid "Recognizes two realms, @i{viz:} ``EXAMPLE.COM'' and ``ARGRX.EDU'', both"
  36568. msgstr ""
  36569. #. type: itemize
  36570. #: guix-git/doc/guix.texi:24396
  36571. msgid "of which have distinct administration servers and key distribution centers;"
  36572. msgstr ""
  36573. #. type: item
  36574. #: guix-git/doc/guix.texi:24396
  36575. #, no-wrap
  36576. msgid "Will default to the realm ``EXAMPLE.COM'' if the realm is not explicitly"
  36577. msgstr ""
  36578. #. type: itemize
  36579. #: guix-git/doc/guix.texi:24398
  36580. msgid "specified by clients;"
  36581. msgstr ""
  36582. #. type: item
  36583. #: guix-git/doc/guix.texi:24398
  36584. #, no-wrap
  36585. msgid "Accepts services which only support encryption types known to be weak."
  36586. msgstr ""
  36587. #. type: Plain text
  36588. #: guix-git/doc/guix.texi:24406
  36589. msgid "The @code{krb5-realm} and @code{krb5-configuration} types have many fields. Only the most commonly used ones are described here. For a full list, and more detailed explanation of each, see the MIT @uref{https://web.mit.edu/kerberos/krb5-devel/doc/admin/conf_files/krb5_conf.html,,krb5.conf} documentation."
  36590. msgstr ""
  36591. #. type: deftp
  36592. #: guix-git/doc/guix.texi:24408
  36593. #, no-wrap
  36594. msgid "{Data Type} krb5-realm"
  36595. msgstr ""
  36596. #. type: cindex
  36597. #: guix-git/doc/guix.texi:24409
  36598. #, no-wrap
  36599. msgid "realm, kerberos"
  36600. msgstr ""
  36601. #. type: table
  36602. #: guix-git/doc/guix.texi:24415
  36603. msgid "This field is a string identifying the name of the realm. A common convention is to use the fully qualified DNS name of your organization, converted to upper case."
  36604. msgstr ""
  36605. #. type: code{#1}
  36606. #: guix-git/doc/guix.texi:24416
  36607. #, no-wrap
  36608. msgid "admin-server"
  36609. msgstr ""
  36610. #. type: table
  36611. #: guix-git/doc/guix.texi:24419
  36612. msgid "This field is a string identifying the host where the administration server is running."
  36613. msgstr ""
  36614. #. type: code{#1}
  36615. #: guix-git/doc/guix.texi:24420
  36616. #, no-wrap
  36617. msgid "kdc"
  36618. msgstr ""
  36619. #. type: table
  36620. #: guix-git/doc/guix.texi:24423
  36621. msgid "This field is a string identifying the key distribution center for the realm."
  36622. msgstr ""
  36623. #. type: deftp
  36624. #: guix-git/doc/guix.texi:24426
  36625. #, no-wrap
  36626. msgid "{Data Type} krb5-configuration"
  36627. msgstr ""
  36628. #. type: item
  36629. #: guix-git/doc/guix.texi:24429
  36630. #, no-wrap
  36631. msgid "@code{allow-weak-crypto?} (default: @code{#f})"
  36632. msgstr ""
  36633. #. type: table
  36634. #: guix-git/doc/guix.texi:24432
  36635. msgid "If this flag is @code{#t} then services which only offer encryption algorithms known to be weak will be accepted."
  36636. msgstr ""
  36637. #. type: item
  36638. #: guix-git/doc/guix.texi:24433
  36639. #, no-wrap
  36640. msgid "@code{default-realm} (default: @code{#f})"
  36641. msgstr ""
  36642. #. type: table
  36643. #: guix-git/doc/guix.texi:24440
  36644. msgid "This field should be a string identifying the default Kerberos realm for the client. You should set this field to the name of your Kerberos realm. If this value is @code{#f} then a realm must be specified with every Kerberos principal when invoking programs such as @command{kinit}."
  36645. msgstr ""
  36646. #. type: code{#1}
  36647. #: guix-git/doc/guix.texi:24441
  36648. #, no-wrap
  36649. msgid "realms"
  36650. msgstr ""
  36651. #. type: table
  36652. #: guix-git/doc/guix.texi:24446
  36653. msgid "This should be a non-empty list of @code{krb5-realm} objects, which clients may access. Normally, one of them will have a @code{name} field matching the @code{default-realm} field."
  36654. msgstr ""
  36655. #. type: subsubheading
  36656. #: guix-git/doc/guix.texi:24450
  36657. #, no-wrap
  36658. msgid "PAM krb5 Service"
  36659. msgstr ""
  36660. #. type: cindex
  36661. #: guix-git/doc/guix.texi:24451
  36662. #, no-wrap
  36663. msgid "pam-krb5"
  36664. msgstr ""
  36665. #. type: Plain text
  36666. #: guix-git/doc/guix.texi:24457
  36667. msgid "The @code{pam-krb5} service allows for login authentication and password management via Kerberos. You will need this service if you want PAM enabled applications to authenticate users using Kerberos."
  36668. msgstr ""
  36669. #. type: defvr
  36670. #: guix-git/doc/guix.texi:24458
  36671. #, no-wrap
  36672. msgid "{Scheme Variable} pam-krb5-service-type"
  36673. msgstr ""
  36674. #. type: defvr
  36675. #: guix-git/doc/guix.texi:24460
  36676. msgid "A service type for the Kerberos 5 PAM module."
  36677. msgstr ""
  36678. #. type: deftp
  36679. #: guix-git/doc/guix.texi:24462
  36680. #, no-wrap
  36681. msgid "{Data Type} pam-krb5-configuration"
  36682. msgstr ""
  36683. #. type: deftp
  36684. #: guix-git/doc/guix.texi:24465
  36685. msgid "Data type representing the configuration of the Kerberos 5 PAM module. This type has the following parameters:"
  36686. msgstr ""
  36687. #. type: item
  36688. #: guix-git/doc/guix.texi:24466
  36689. #, no-wrap
  36690. msgid "@code{pam-krb5} (default: @code{pam-krb5})"
  36691. msgstr ""
  36692. #. type: table
  36693. #: guix-git/doc/guix.texi:24468
  36694. msgid "The pam-krb5 package to use."
  36695. msgstr ""
  36696. #. type: item
  36697. #: guix-git/doc/guix.texi:24469
  36698. #, no-wrap
  36699. msgid "@code{minimum-uid} (default: @code{1000})"
  36700. msgstr ""
  36701. #. type: table
  36702. #: guix-git/doc/guix.texi:24472
  36703. msgid "The smallest user ID for which Kerberos authentications should be attempted. Local accounts with lower values will silently fail to authenticate."
  36704. msgstr ""
  36705. #. type: cindex
  36706. #: guix-git/doc/guix.texi:24478
  36707. #, no-wrap
  36708. msgid "LDAP"
  36709. msgstr ""
  36710. #. type: cindex
  36711. #: guix-git/doc/guix.texi:24479
  36712. #, no-wrap
  36713. msgid "nslcd, LDAP service"
  36714. msgstr ""
  36715. #. type: Plain text
  36716. #: guix-git/doc/guix.texi:24486
  36717. msgid "The @code{(gnu services authentication)} module provides the @code{nslcd-service-type}, which can be used to authenticate against an LDAP server. In addition to configuring the service itself, you may want to add @code{ldap} as a name service to the Name Service Switch. @xref{Name Service Switch} for detailed information."
  36718. msgstr ""
  36719. #. type: Plain text
  36720. #: guix-git/doc/guix.texi:24490
  36721. msgid "Here is a simple operating system declaration with a default configuration of the @code{nslcd-service-type} and a Name Service Switch configuration that consults the @code{ldap} name service last:"
  36722. msgstr ""
  36723. #. type: lisp
  36724. #: guix-git/doc/guix.texi:24513
  36725. #, no-wrap
  36726. msgid ""
  36727. "(use-service-modules authentication)\n"
  36728. "(use-modules (gnu system nss))\n"
  36729. "...\n"
  36730. "(operating-system\n"
  36731. " ...\n"
  36732. " (services\n"
  36733. " (cons*\n"
  36734. " (service nslcd-service-type)\n"
  36735. " (service dhcp-client-service-type)\n"
  36736. " %base-services))\n"
  36737. " (name-service-switch\n"
  36738. " (let ((services (list (name-service (name \"db\"))\n"
  36739. " (name-service (name \"files\"))\n"
  36740. " (name-service (name \"ldap\")))))\n"
  36741. " (name-service-switch\n"
  36742. " (inherit %mdns-host-lookup-nss)\n"
  36743. " (password services)\n"
  36744. " (shadow services)\n"
  36745. " (group services)\n"
  36746. " (netgroup services)\n"
  36747. " (gshadow services)))))\n"
  36748. msgstr ""
  36749. #. type: Plain text
  36750. #: guix-git/doc/guix.texi:24518
  36751. msgid "Available @code{nslcd-configuration} fields are:"
  36752. msgstr ""
  36753. #. type: deftypevr
  36754. #: guix-git/doc/guix.texi:24519
  36755. #, no-wrap
  36756. msgid "{@code{nslcd-configuration} parameter} package nss-pam-ldapd"
  36757. msgstr ""
  36758. #. type: deftypevr
  36759. #: guix-git/doc/guix.texi:24521
  36760. msgid "The @code{nss-pam-ldapd} package to use."
  36761. msgstr ""
  36762. #. type: deftypevr
  36763. #: guix-git/doc/guix.texi:24524
  36764. #, no-wrap
  36765. msgid "{@code{nslcd-configuration} parameter} maybe-number threads"
  36766. msgstr ""
  36767. #. type: deftypevr
  36768. #: guix-git/doc/guix.texi:24528
  36769. msgid "The number of threads to start that can handle requests and perform LDAP queries. Each thread opens a separate connection to the LDAP server. The default is to start 5 threads."
  36770. msgstr ""
  36771. #. type: deftypevr
  36772. #: guix-git/doc/guix.texi:24533
  36773. #, no-wrap
  36774. msgid "{@code{nslcd-configuration} parameter} string uid"
  36775. msgstr ""
  36776. #. type: deftypevr
  36777. #: guix-git/doc/guix.texi:24535
  36778. msgid "This specifies the user id with which the daemon should be run."
  36779. msgstr ""
  36780. #. type: deftypevr
  36781. #: guix-git/doc/guix.texi:24537 guix-git/doc/guix.texi:24544
  36782. msgid "Defaults to @samp{\"nslcd\"}."
  36783. msgstr ""
  36784. #. type: deftypevr
  36785. #: guix-git/doc/guix.texi:24540
  36786. #, no-wrap
  36787. msgid "{@code{nslcd-configuration} parameter} string gid"
  36788. msgstr ""
  36789. #. type: deftypevr
  36790. #: guix-git/doc/guix.texi:24542
  36791. msgid "This specifies the group id with which the daemon should be run."
  36792. msgstr ""
  36793. #. type: deftypevr
  36794. #: guix-git/doc/guix.texi:24547
  36795. #, no-wrap
  36796. msgid "{@code{nslcd-configuration} parameter} log-option log"
  36797. msgstr ""
  36798. #. type: deftypevr
  36799. #: guix-git/doc/guix.texi:24555
  36800. msgid "This option controls the way logging is done via a list containing SCHEME and LEVEL@. The SCHEME argument may either be the symbols @samp{none} or @samp{syslog}, or an absolute file name. The LEVEL argument is optional and specifies the log level. The log level may be one of the following symbols: @samp{crit}, @samp{error}, @samp{warning}, @samp{notice}, @samp{info} or @samp{debug}. All messages with the specified log level or higher are logged."
  36801. msgstr ""
  36802. #. type: deftypevr
  36803. #: guix-git/doc/guix.texi:24557
  36804. msgid "Defaults to @samp{(\"/var/log/nslcd\" info)}."
  36805. msgstr ""
  36806. #. type: deftypevr
  36807. #: guix-git/doc/guix.texi:24560
  36808. #, no-wrap
  36809. msgid "{@code{nslcd-configuration} parameter} list uri"
  36810. msgstr ""
  36811. #. type: deftypevr
  36812. #: guix-git/doc/guix.texi:24563
  36813. msgid "The list of LDAP server URIs. Normally, only the first server will be used with the following servers as fall-back."
  36814. msgstr ""
  36815. #. type: deftypevr
  36816. #: guix-git/doc/guix.texi:24565
  36817. msgid "Defaults to @samp{(\"ldap://localhost:389/\")}."
  36818. msgstr ""
  36819. #. type: deftypevr
  36820. #: guix-git/doc/guix.texi:24568
  36821. #, no-wrap
  36822. msgid "{@code{nslcd-configuration} parameter} maybe-string ldap-version"
  36823. msgstr ""
  36824. #. type: deftypevr
  36825. #: guix-git/doc/guix.texi:24571
  36826. msgid "The version of the LDAP protocol to use. The default is to use the maximum version supported by the LDAP library."
  36827. msgstr ""
  36828. #. type: deftypevr
  36829. #: guix-git/doc/guix.texi:24576
  36830. #, no-wrap
  36831. msgid "{@code{nslcd-configuration} parameter} maybe-string binddn"
  36832. msgstr ""
  36833. #. type: deftypevr
  36834. #: guix-git/doc/guix.texi:24579
  36835. msgid "Specifies the distinguished name with which to bind to the directory server for lookups. The default is to bind anonymously."
  36836. msgstr ""
  36837. #. type: deftypevr
  36838. #: guix-git/doc/guix.texi:24584
  36839. #, no-wrap
  36840. msgid "{@code{nslcd-configuration} parameter} maybe-string bindpw"
  36841. msgstr ""
  36842. #. type: deftypevr
  36843. #: guix-git/doc/guix.texi:24587
  36844. msgid "Specifies the credentials with which to bind. This option is only applicable when used with binddn."
  36845. msgstr ""
  36846. #. type: deftypevr
  36847. #: guix-git/doc/guix.texi:24592
  36848. #, no-wrap
  36849. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmoddn"
  36850. msgstr ""
  36851. #. type: deftypevr
  36852. #: guix-git/doc/guix.texi:24595
  36853. msgid "Specifies the distinguished name to use when the root user tries to modify a user's password using the PAM module."
  36854. msgstr ""
  36855. #. type: deftypevr
  36856. #: guix-git/doc/guix.texi:24600
  36857. #, no-wrap
  36858. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmodpw"
  36859. msgstr ""
  36860. #. type: deftypevr
  36861. #: guix-git/doc/guix.texi:24604
  36862. msgid "Specifies the credentials with which to bind if the root user tries to change a user's password. This option is only applicable when used with rootpwmoddn"
  36863. msgstr ""
  36864. #. type: deftypevr
  36865. #: guix-git/doc/guix.texi:24609
  36866. #, no-wrap
  36867. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-mech"
  36868. msgstr ""
  36869. #. type: deftypevr
  36870. #: guix-git/doc/guix.texi:24612
  36871. msgid "Specifies the SASL mechanism to be used when performing SASL authentication."
  36872. msgstr ""
  36873. #. type: deftypevr
  36874. #: guix-git/doc/guix.texi:24617
  36875. #, no-wrap
  36876. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-realm"
  36877. msgstr ""
  36878. #. type: deftypevr
  36879. #: guix-git/doc/guix.texi:24619
  36880. msgid "Specifies the SASL realm to be used when performing SASL authentication."
  36881. msgstr ""
  36882. #. type: deftypevr
  36883. #: guix-git/doc/guix.texi:24624
  36884. #, no-wrap
  36885. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authcid"
  36886. msgstr ""
  36887. #. type: deftypevr
  36888. #: guix-git/doc/guix.texi:24627
  36889. msgid "Specifies the authentication identity to be used when performing SASL authentication."
  36890. msgstr ""
  36891. #. type: deftypevr
  36892. #: guix-git/doc/guix.texi:24632
  36893. #, no-wrap
  36894. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authzid"
  36895. msgstr ""
  36896. #. type: deftypevr
  36897. #: guix-git/doc/guix.texi:24635
  36898. msgid "Specifies the authorization identity to be used when performing SASL authentication."
  36899. msgstr ""
  36900. #. type: deftypevr
  36901. #: guix-git/doc/guix.texi:24640
  36902. #, no-wrap
  36903. msgid "{@code{nslcd-configuration} parameter} maybe-boolean sasl-canonicalize?"
  36904. msgstr ""
  36905. #. type: deftypevr
  36906. #: guix-git/doc/guix.texi:24645
  36907. msgid "Determines whether the LDAP server host name should be canonicalised. If this is enabled the LDAP library will do a reverse host name lookup. By default, it is left up to the LDAP library whether this check is performed or not."
  36908. msgstr ""
  36909. #. type: deftypevr
  36910. #: guix-git/doc/guix.texi:24650
  36911. #, no-wrap
  36912. msgid "{@code{nslcd-configuration} parameter} maybe-string krb5-ccname"
  36913. msgstr ""
  36914. #. type: deftypevr
  36915. #: guix-git/doc/guix.texi:24652
  36916. msgid "Set the name for the GSS-API Kerberos credentials cache."
  36917. msgstr ""
  36918. #. type: deftypevr
  36919. #: guix-git/doc/guix.texi:24657
  36920. #, no-wrap
  36921. msgid "{@code{nslcd-configuration} parameter} string base"
  36922. msgstr ""
  36923. #. type: deftypevr
  36924. #: guix-git/doc/guix.texi:24659
  36925. msgid "The directory search base."
  36926. msgstr ""
  36927. #. type: deftypevr
  36928. #: guix-git/doc/guix.texi:24661
  36929. msgid "Defaults to @samp{\"dc=example,dc=com\"}."
  36930. msgstr ""
  36931. #. type: deftypevr
  36932. #: guix-git/doc/guix.texi:24664
  36933. #, no-wrap
  36934. msgid "{@code{nslcd-configuration} parameter} scope-option scope"
  36935. msgstr ""
  36936. #. type: deftypevr
  36937. #: guix-git/doc/guix.texi:24668
  36938. msgid "Specifies the search scope (subtree, onelevel, base or children). The default scope is subtree; base scope is almost never useful for name service lookups; children scope is not supported on all servers."
  36939. msgstr ""
  36940. #. type: deftypevr
  36941. #: guix-git/doc/guix.texi:24670
  36942. msgid "Defaults to @samp{(subtree)}."
  36943. msgstr ""
  36944. #. type: deftypevr
  36945. #: guix-git/doc/guix.texi:24673
  36946. #, no-wrap
  36947. msgid "{@code{nslcd-configuration} parameter} maybe-deref-option deref"
  36948. msgstr ""
  36949. #. type: deftypevr
  36950. #: guix-git/doc/guix.texi:24676
  36951. msgid "Specifies the policy for dereferencing aliases. The default policy is to never dereference aliases."
  36952. msgstr ""
  36953. #. type: deftypevr
  36954. #: guix-git/doc/guix.texi:24681
  36955. #, no-wrap
  36956. msgid "{@code{nslcd-configuration} parameter} maybe-boolean referrals"
  36957. msgstr ""
  36958. #. type: deftypevr
  36959. #: guix-git/doc/guix.texi:24684
  36960. msgid "Specifies whether automatic referral chasing should be enabled. The default behaviour is to chase referrals."
  36961. msgstr ""
  36962. #. type: deftypevr
  36963. #: guix-git/doc/guix.texi:24689
  36964. #, no-wrap
  36965. msgid "{@code{nslcd-configuration} parameter} list-of-map-entries maps"
  36966. msgstr ""
  36967. #. type: deftypevr
  36968. #: guix-git/doc/guix.texi:24694
  36969. msgid "This option allows for custom attributes to be looked up instead of the default RFC 2307 attributes. It is a list of maps, each consisting of the name of a map, the RFC 2307 attribute to match and the query expression for the attribute as it is available in the directory."
  36970. msgstr ""
  36971. #. type: deftypevr
  36972. #: guix-git/doc/guix.texi:24699
  36973. #, no-wrap
  36974. msgid "{@code{nslcd-configuration} parameter} list-of-filter-entries filters"
  36975. msgstr ""
  36976. #. type: deftypevr
  36977. #: guix-git/doc/guix.texi:24702
  36978. msgid "A list of filters consisting of the name of a map to which the filter applies and an LDAP search filter expression."
  36979. msgstr ""
  36980. #. type: deftypevr
  36981. #: guix-git/doc/guix.texi:24707
  36982. #, no-wrap
  36983. msgid "{@code{nslcd-configuration} parameter} maybe-number bind-timelimit"
  36984. msgstr ""
  36985. #. type: deftypevr
  36986. #: guix-git/doc/guix.texi:24710
  36987. msgid "Specifies the time limit in seconds to use when connecting to the directory server. The default value is 10 seconds."
  36988. msgstr ""
  36989. #. type: deftypevr
  36990. #: guix-git/doc/guix.texi:24715
  36991. #, no-wrap
  36992. msgid "{@code{nslcd-configuration} parameter} maybe-number timelimit"
  36993. msgstr ""
  36994. #. type: deftypevr
  36995. #: guix-git/doc/guix.texi:24719
  36996. msgid "Specifies the time limit (in seconds) to wait for a response from the LDAP server. A value of zero, which is the default, is to wait indefinitely for searches to be completed."
  36997. msgstr ""
  36998. #. type: deftypevr
  36999. #: guix-git/doc/guix.texi:24724
  37000. #, no-wrap
  37001. msgid "{@code{nslcd-configuration} parameter} maybe-number idle-timelimit"
  37002. msgstr ""
  37003. #. type: deftypevr
  37004. #: guix-git/doc/guix.texi:24728
  37005. msgid "Specifies the period if inactivity (in seconds) after which the con‐ nection to the LDAP server will be closed. The default is not to time out connections."
  37006. msgstr ""
  37007. #. type: deftypevr
  37008. #: guix-git/doc/guix.texi:24733
  37009. #, no-wrap
  37010. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-sleeptime"
  37011. msgstr ""
  37012. #. type: deftypevr
  37013. #: guix-git/doc/guix.texi:24737
  37014. msgid "Specifies the number of seconds to sleep when connecting to all LDAP servers fails. By default one second is waited between the first failure and the first retry."
  37015. msgstr ""
  37016. #. type: deftypevr
  37017. #: guix-git/doc/guix.texi:24742
  37018. #, no-wrap
  37019. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-retrytime"
  37020. msgstr ""
  37021. #. type: deftypevr
  37022. #: guix-git/doc/guix.texi:24746
  37023. msgid "Specifies the time after which the LDAP server is considered to be permanently unavailable. Once this time is reached retries will be done only once per this time period. The default value is 10 seconds."
  37024. msgstr ""
  37025. #. type: deftypevr
  37026. #: guix-git/doc/guix.texi:24751
  37027. #, no-wrap
  37028. msgid "{@code{nslcd-configuration} parameter} maybe-ssl-option ssl"
  37029. msgstr ""
  37030. #. type: deftypevr
  37031. #: guix-git/doc/guix.texi:24755
  37032. msgid "Specifies whether to use SSL/TLS or not (the default is not to). If 'start-tls is specified then StartTLS is used rather than raw LDAP over SSL."
  37033. msgstr ""
  37034. #. type: deftypevr
  37035. #: guix-git/doc/guix.texi:24760
  37036. #, no-wrap
  37037. msgid "{@code{nslcd-configuration} parameter} maybe-tls-reqcert-option tls-reqcert"
  37038. msgstr ""
  37039. #. type: deftypevr
  37040. #: guix-git/doc/guix.texi:24763
  37041. msgid "Specifies what checks to perform on a server-supplied certificate. The meaning of the values is described in the ldap.conf(5) manual page."
  37042. msgstr ""
  37043. #. type: deftypevr
  37044. #: guix-git/doc/guix.texi:24768
  37045. #, no-wrap
  37046. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertdir"
  37047. msgstr ""
  37048. #. type: deftypevr
  37049. #: guix-git/doc/guix.texi:24771
  37050. msgid "Specifies the directory containing X.509 certificates for peer authen‐ tication. This parameter is ignored when using GnuTLS."
  37051. msgstr ""
  37052. #. type: deftypevr
  37053. #: guix-git/doc/guix.texi:24776
  37054. #, no-wrap
  37055. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertfile"
  37056. msgstr ""
  37057. #. type: deftypevr
  37058. #: guix-git/doc/guix.texi:24778
  37059. msgid "Specifies the path to the X.509 certificate for peer authentication."
  37060. msgstr ""
  37061. #. type: deftypevr
  37062. #: guix-git/doc/guix.texi:24783
  37063. #, no-wrap
  37064. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-randfile"
  37065. msgstr ""
  37066. #. type: deftypevr
  37067. #: guix-git/doc/guix.texi:24786
  37068. msgid "Specifies the path to an entropy source. This parameter is ignored when using GnuTLS."
  37069. msgstr ""
  37070. #. type: deftypevr
  37071. #: guix-git/doc/guix.texi:24791
  37072. #, no-wrap
  37073. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-ciphers"
  37074. msgstr ""
  37075. #. type: deftypevr
  37076. #: guix-git/doc/guix.texi:24793
  37077. msgid "Specifies the ciphers to use for TLS as a string."
  37078. msgstr ""
  37079. #. type: deftypevr
  37080. #: guix-git/doc/guix.texi:24798
  37081. #, no-wrap
  37082. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cert"
  37083. msgstr ""
  37084. #. type: deftypevr
  37085. #: guix-git/doc/guix.texi:24801
  37086. msgid "Specifies the path to the file containing the local certificate for client TLS authentication."
  37087. msgstr ""
  37088. #. type: deftypevr
  37089. #: guix-git/doc/guix.texi:24806
  37090. #, no-wrap
  37091. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-key"
  37092. msgstr ""
  37093. #. type: deftypevr
  37094. #: guix-git/doc/guix.texi:24809
  37095. msgid "Specifies the path to the file containing the private key for client TLS authentication."
  37096. msgstr ""
  37097. #. type: deftypevr
  37098. #: guix-git/doc/guix.texi:24814
  37099. #, no-wrap
  37100. msgid "{@code{nslcd-configuration} parameter} maybe-number pagesize"
  37101. msgstr ""
  37102. #. type: deftypevr
  37103. #: guix-git/doc/guix.texi:24818
  37104. msgid "Set this to a number greater than 0 to request paged results from the LDAP server in accordance with RFC2696. The default (0) is to not request paged results."
  37105. msgstr ""
  37106. #. type: deftypevr
  37107. #: guix-git/doc/guix.texi:24823
  37108. #, no-wrap
  37109. msgid "{@code{nslcd-configuration} parameter} maybe-ignore-users-option nss-initgroups-ignoreusers"
  37110. msgstr ""
  37111. #. type: deftypevr
  37112. #: guix-git/doc/guix.texi:24827
  37113. msgid "This option prevents group membership lookups through LDAP for the specified users. Alternatively, the value 'all-local may be used. With that value nslcd builds a full list of non-LDAP users on startup."
  37114. msgstr ""
  37115. #. type: deftypevr
  37116. #: guix-git/doc/guix.texi:24832
  37117. #, no-wrap
  37118. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-min-uid"
  37119. msgstr ""
  37120. #. type: deftypevr
  37121. #: guix-git/doc/guix.texi:24835
  37122. msgid "This option ensures that LDAP users with a numeric user id lower than the specified value are ignored."
  37123. msgstr ""
  37124. #. type: deftypevr
  37125. #: guix-git/doc/guix.texi:24840
  37126. #, no-wrap
  37127. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-uid-offset"
  37128. msgstr ""
  37129. #. type: deftypevr
  37130. #: guix-git/doc/guix.texi:24843
  37131. msgid "This option specifies an offset that is added to all LDAP numeric user ids. This can be used to avoid user id collisions with local users."
  37132. msgstr ""
  37133. #. type: deftypevr
  37134. #: guix-git/doc/guix.texi:24848
  37135. #, no-wrap
  37136. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-gid-offset"
  37137. msgstr ""
  37138. #. type: deftypevr
  37139. #: guix-git/doc/guix.texi:24851
  37140. msgid "This option specifies an offset that is added to all LDAP numeric group ids. This can be used to avoid user id collisions with local groups."
  37141. msgstr ""
  37142. #. type: deftypevr
  37143. #: guix-git/doc/guix.texi:24856
  37144. #, no-wrap
  37145. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-nested-groups"
  37146. msgstr ""
  37147. #. type: deftypevr
  37148. #: guix-git/doc/guix.texi:24862
  37149. msgid "If this option is set, the member attribute of a group may point to another group. Members of nested groups are also returned in the higher level group and parent groups are returned when finding groups for a specific user. The default is not to perform extra searches for nested groups."
  37150. msgstr ""
  37151. #. type: deftypevr
  37152. #: guix-git/doc/guix.texi:24867
  37153. #, no-wrap
  37154. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-getgrent-skipmembers"
  37155. msgstr ""
  37156. #. type: deftypevr
  37157. #: guix-git/doc/guix.texi:24872
  37158. msgid "If this option is set, the group member list is not retrieved when looking up groups. Lookups for finding which groups a user belongs to will remain functional so the user will likely still get the correct groups assigned on login."
  37159. msgstr ""
  37160. #. type: deftypevr
  37161. #: guix-git/doc/guix.texi:24877
  37162. #, no-wrap
  37163. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-disable-enumeration"
  37164. msgstr ""
  37165. #. type: deftypevr
  37166. #: guix-git/doc/guix.texi:24883
  37167. msgid "If this option is set, functions which cause all user/group entries to be loaded from the directory will not succeed in doing so. This can dramatically reduce LDAP server load in situations where there are a great number of users and/or groups. This option is not recommended for most configurations."
  37168. msgstr ""
  37169. #. type: deftypevr
  37170. #: guix-git/doc/guix.texi:24888
  37171. #, no-wrap
  37172. msgid "{@code{nslcd-configuration} parameter} maybe-string validnames"
  37173. msgstr ""
  37174. #. type: deftypevr
  37175. #: guix-git/doc/guix.texi:24892
  37176. msgid "This option can be used to specify how user and group names are verified within the system. This pattern is used to check all user and group names that are requested and returned from LDAP."
  37177. msgstr ""
  37178. #. type: deftypevr
  37179. #: guix-git/doc/guix.texi:24897
  37180. #, no-wrap
  37181. msgid "{@code{nslcd-configuration} parameter} maybe-boolean ignorecase"
  37182. msgstr ""
  37183. #. type: deftypevr
  37184. #: guix-git/doc/guix.texi:24902
  37185. msgid "This specifies whether or not to perform searches using case-insensitive matching. Enabling this could open up the system to authorization bypass vulnerabilities and introduce nscd cache poisoning vulnerabilities which allow denial of service."
  37186. msgstr ""
  37187. #. type: deftypevr
  37188. #: guix-git/doc/guix.texi:24907
  37189. #, no-wrap
  37190. msgid "{@code{nslcd-configuration} parameter} maybe-boolean pam-authc-ppolicy"
  37191. msgstr ""
  37192. #. type: deftypevr
  37193. #: guix-git/doc/guix.texi:24910
  37194. msgid "This option specifies whether password policy controls are requested and handled from the LDAP server when performing user authentication."
  37195. msgstr ""
  37196. #. type: deftypevr
  37197. #: guix-git/doc/guix.texi:24915
  37198. #, no-wrap
  37199. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authc-search"
  37200. msgstr ""
  37201. #. type: deftypevr
  37202. #: guix-git/doc/guix.texi:24921
  37203. msgid "By default nslcd performs an LDAP search with the user's credentials after BIND (authentication) to ensure that the BIND operation was successful. The default search is a simple check to see if the user's DN exists. A search filter can be specified that will be used instead. It should return at least one entry."
  37204. msgstr ""
  37205. #. type: deftypevr
  37206. #: guix-git/doc/guix.texi:24926
  37207. #, no-wrap
  37208. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authz-search"
  37209. msgstr ""
  37210. #. type: deftypevr
  37211. #: guix-git/doc/guix.texi:24930
  37212. msgid "This option allows flexible fine tuning of the authorisation check that should be performed. The search filter specified is executed and if any entries match, access is granted, otherwise access is denied."
  37213. msgstr ""
  37214. #. type: deftypevr
  37215. #: guix-git/doc/guix.texi:24935
  37216. #, no-wrap
  37217. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-password-prohibit-message"
  37218. msgstr ""
  37219. #. type: deftypevr
  37220. #: guix-git/doc/guix.texi:24940
  37221. msgid "If this option is set password modification using pam_ldap will be denied and the specified message will be presented to the user instead. The message can be used to direct the user to an alternative means of changing their password."
  37222. msgstr ""
  37223. #. type: deftypevr
  37224. #: guix-git/doc/guix.texi:24945
  37225. #, no-wrap
  37226. msgid "{@code{nslcd-configuration} parameter} list pam-services"
  37227. msgstr ""
  37228. #. type: deftypevr
  37229. #: guix-git/doc/guix.texi:24947
  37230. msgid "List of pam service names for which LDAP authentication should suffice."
  37231. msgstr ""
  37232. #. type: cindex
  37233. #: guix-git/doc/guix.texi:24958
  37234. #, no-wrap
  37235. msgid "web"
  37236. msgstr ""
  37237. #. type: cindex
  37238. #: guix-git/doc/guix.texi:24959
  37239. #, no-wrap
  37240. msgid "www"
  37241. msgstr ""
  37242. #. type: cindex
  37243. #: guix-git/doc/guix.texi:24960
  37244. #, no-wrap
  37245. msgid "HTTP"
  37246. msgstr ""
  37247. #. type: Plain text
  37248. #: guix-git/doc/guix.texi:24963
  37249. msgid "The @code{(gnu services web)} module provides the Apache HTTP Server, the nginx web server, and also a fastcgi wrapper daemon."
  37250. msgstr ""
  37251. #. type: subsubheading
  37252. #: guix-git/doc/guix.texi:24964
  37253. #, no-wrap
  37254. msgid "Apache HTTP Server"
  37255. msgstr ""
  37256. #. type: deffn
  37257. #: guix-git/doc/guix.texi:24966
  37258. #, no-wrap
  37259. msgid "{Scheme Variable} httpd-service-type"
  37260. msgstr ""
  37261. #. type: deffn
  37262. #: guix-git/doc/guix.texi:24970
  37263. msgid "Service type for the @uref{https://httpd.apache.org/,Apache HTTP} server (@dfn{httpd}). The value for this service type is a @code{httpd-configuration} record."
  37264. msgstr ""
  37265. #. type: deffn
  37266. #: guix-git/doc/guix.texi:24972 guix-git/doc/guix.texi:25153
  37267. msgid "A simple example configuration is given below."
  37268. msgstr ""
  37269. #. type: lisp
  37270. #: guix-git/doc/guix.texi:24980
  37271. #, no-wrap
  37272. msgid ""
  37273. "(service httpd-service-type\n"
  37274. " (httpd-configuration\n"
  37275. " (config\n"
  37276. " (httpd-config-file\n"
  37277. " (server-name \"www.example.com\")\n"
  37278. " (document-root \"/srv/http/www.example.com\")))))\n"
  37279. msgstr ""
  37280. #. type: deffn
  37281. #: guix-git/doc/guix.texi:24984
  37282. msgid "Other services can also extend the @code{httpd-service-type} to add to the configuration."
  37283. msgstr ""
  37284. #. type: lisp
  37285. #: guix-git/doc/guix.texi:24993 guix-git/doc/guix.texi:25133
  37286. #, no-wrap
  37287. msgid ""
  37288. "(simple-service 'www.example.com-server httpd-service-type\n"
  37289. " (list\n"
  37290. " (httpd-virtualhost\n"
  37291. " \"*:80\"\n"
  37292. " (list (string-join '(\"ServerName www.example.com\"\n"
  37293. " \"DocumentRoot /srv/http/www.example.com\")\n"
  37294. " \"\\n\")))))\n"
  37295. msgstr ""
  37296. #. type: Plain text
  37297. #: guix-git/doc/guix.texi:24999
  37298. msgid "The details for the @code{httpd-configuration}, @code{httpd-module}, @code{httpd-config-file} and @code{httpd-virtualhost} record types are given below."
  37299. msgstr ""
  37300. #. type: deffn
  37301. #: guix-git/doc/guix.texi:25000
  37302. #, no-wrap
  37303. msgid "{Data Type} httpd-configuration"
  37304. msgstr ""
  37305. #. type: deffn
  37306. #: guix-git/doc/guix.texi:25002
  37307. msgid "This data type represents the configuration for the httpd service."
  37308. msgstr ""
  37309. #. type: item
  37310. #: guix-git/doc/guix.texi:25004
  37311. #, no-wrap
  37312. msgid "@code{package} (default: @code{httpd})"
  37313. msgstr ""
  37314. #. type: table
  37315. #: guix-git/doc/guix.texi:25006
  37316. msgid "The httpd package to use."
  37317. msgstr ""
  37318. #. type: item
  37319. #: guix-git/doc/guix.texi:25007 guix-git/doc/guix.texi:25096
  37320. #, no-wrap
  37321. msgid "@code{pid-file} (default: @code{\"/var/run/httpd\"})"
  37322. msgstr ""
  37323. #. type: table
  37324. #: guix-git/doc/guix.texi:25009
  37325. msgid "The pid file used by the shepherd-service."
  37326. msgstr ""
  37327. #. type: item
  37328. #: guix-git/doc/guix.texi:25010
  37329. #, no-wrap
  37330. msgid "@code{config} (default: @code{(httpd-config-file)})"
  37331. msgstr ""
  37332. #. type: table
  37333. #: guix-git/doc/guix.texi:25015
  37334. msgid "The configuration file to use with the httpd service. The default value is a @code{httpd-config-file} record, but this can also be a different G-expression that generates a file, for example a @code{plain-file}. A file outside of the store can also be specified through a string."
  37335. msgstr ""
  37336. #. type: deffn
  37337. #: guix-git/doc/guix.texi:25019
  37338. #, no-wrap
  37339. msgid "{Data Type} httpd-module"
  37340. msgstr ""
  37341. #. type: deffn
  37342. #: guix-git/doc/guix.texi:25021
  37343. msgid "This data type represents a module for the httpd service."
  37344. msgstr ""
  37345. #. type: table
  37346. #: guix-git/doc/guix.texi:25025
  37347. msgid "The name of the module."
  37348. msgstr ""
  37349. #. type: table
  37350. #: guix-git/doc/guix.texi:25031
  37351. msgid "The file for the module. This can be relative to the httpd package being used, the absolute location of a file, or a G-expression for a file within the store, for example @code{(file-append mod-wsgi \"/modules/mod_wsgi.so\")}."
  37352. msgstr ""
  37353. #. type: defvr
  37354. #: guix-git/doc/guix.texi:25035
  37355. #, no-wrap
  37356. msgid "{Scheme Variable} %default-httpd-modules"
  37357. msgstr ""
  37358. #. type: defvr
  37359. #: guix-git/doc/guix.texi:25037
  37360. msgid "A default list of @code{httpd-module} objects."
  37361. msgstr ""
  37362. #. type: deffn
  37363. #: guix-git/doc/guix.texi:25039
  37364. #, no-wrap
  37365. msgid "{Data Type} httpd-config-file"
  37366. msgstr ""
  37367. #. type: deffn
  37368. #: guix-git/doc/guix.texi:25041
  37369. msgid "This data type represents a configuration file for the httpd service."
  37370. msgstr ""
  37371. #. type: item
  37372. #: guix-git/doc/guix.texi:25043
  37373. #, no-wrap
  37374. msgid "@code{modules} (default: @code{%default-httpd-modules})"
  37375. msgstr ""
  37376. #. type: table
  37377. #: guix-git/doc/guix.texi:25046
  37378. msgid "The modules to load. Additional modules can be added here, or loaded by additional configuration."
  37379. msgstr ""
  37380. #. type: table
  37381. #: guix-git/doc/guix.texi:25049
  37382. msgid "For example, in order to handle requests for PHP files, you can use Apache’s @code{mod_proxy_fcgi} module along with @code{php-fpm-service-type}:"
  37383. msgstr ""
  37384. #. type: lisp
  37385. #: guix-git/doc/guix.texi:25071
  37386. #, no-wrap
  37387. msgid ""
  37388. "(service httpd-service-type\n"
  37389. " (httpd-configuration\n"
  37390. " (config\n"
  37391. " (httpd-config-file\n"
  37392. " (modules (cons*\n"
  37393. " (httpd-module\n"
  37394. " (name \"proxy_module\")\n"
  37395. " (file \"modules/mod_proxy.so\"))\n"
  37396. " (httpd-module\n"
  37397. " (name \"proxy_fcgi_module\")\n"
  37398. " (file \"modules/mod_proxy_fcgi.so\"))\n"
  37399. " %default-httpd-modules))\n"
  37400. " (extra-config (list \"\\\n"
  37401. "<FilesMatch \\\\.php$>\n"
  37402. " SetHandler \\\"proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/\\\"\n"
  37403. "</FilesMatch>\"))))))\n"
  37404. "(service php-fpm-service-type\n"
  37405. " (php-fpm-configuration\n"
  37406. " (socket \"/var/run/php-fpm.sock\")\n"
  37407. " (socket-group \"httpd\")))\n"
  37408. msgstr ""
  37409. #. type: item
  37410. #: guix-git/doc/guix.texi:25073
  37411. #, no-wrap
  37412. msgid "@code{server-root} (default: @code{httpd})"
  37413. msgstr ""
  37414. #. type: table
  37415. #: guix-git/doc/guix.texi:25077
  37416. msgid "The @code{ServerRoot} in the configuration file, defaults to the httpd package. Directives including @code{Include} and @code{LoadModule} are taken as relative to the server root."
  37417. msgstr ""
  37418. #. type: item
  37419. #: guix-git/doc/guix.texi:25078
  37420. #, no-wrap
  37421. msgid "@code{server-name} (default: @code{#f})"
  37422. msgstr ""
  37423. #. type: table
  37424. #: guix-git/doc/guix.texi:25082
  37425. msgid "The @code{ServerName} in the configuration file, used to specify the request scheme, hostname and port that the server uses to identify itself."
  37426. msgstr ""
  37427. #. type: table
  37428. #: guix-git/doc/guix.texi:25086
  37429. msgid "This doesn't need to be set in the server config, and can be specified in virtual hosts. The default is @code{#f} to not specify a @code{ServerName}."
  37430. msgstr ""
  37431. #. type: item
  37432. #: guix-git/doc/guix.texi:25087
  37433. #, no-wrap
  37434. msgid "@code{document-root} (default: @code{\"/srv/http\"})"
  37435. msgstr ""
  37436. #. type: table
  37437. #: guix-git/doc/guix.texi:25089
  37438. msgid "The @code{DocumentRoot} from which files will be served."
  37439. msgstr ""
  37440. #. type: item
  37441. #: guix-git/doc/guix.texi:25090
  37442. #, no-wrap
  37443. msgid "@code{listen} (default: @code{'(\"80\")})"
  37444. msgstr ""
  37445. #. type: table
  37446. #: guix-git/doc/guix.texi:25095
  37447. msgid "The list of values for the @code{Listen} directives in the config file. The value should be a list of strings, when each string can specify the port number to listen on, and optionally the IP address and protocol to use."
  37448. msgstr ""
  37449. #. type: table
  37450. #: guix-git/doc/guix.texi:25100
  37451. msgid "The @code{PidFile} to use. This should match the @code{pid-file} set in the @code{httpd-configuration} so that the Shepherd service is configured correctly."
  37452. msgstr ""
  37453. #. type: item
  37454. #: guix-git/doc/guix.texi:25101
  37455. #, no-wrap
  37456. msgid "@code{error-log} (default: @code{\"/var/log/httpd/error_log\"})"
  37457. msgstr ""
  37458. #. type: table
  37459. #: guix-git/doc/guix.texi:25103
  37460. msgid "The @code{ErrorLog} to which the server will log errors."
  37461. msgstr ""
  37462. #. type: item
  37463. #: guix-git/doc/guix.texi:25104 guix-git/doc/guix.texi:25665
  37464. #, no-wrap
  37465. msgid "@code{user} (default: @code{\"httpd\"})"
  37466. msgstr ""
  37467. #. type: table
  37468. #: guix-git/doc/guix.texi:25106
  37469. msgid "The @code{User} which the server will answer requests as."
  37470. msgstr ""
  37471. #. type: item
  37472. #: guix-git/doc/guix.texi:25107
  37473. #, no-wrap
  37474. msgid "@code{group} (default: @code{\"httpd\"})"
  37475. msgstr ""
  37476. #. type: table
  37477. #: guix-git/doc/guix.texi:25109
  37478. msgid "The @code{Group} which the server will answer requests as."
  37479. msgstr ""
  37480. #. type: item
  37481. #: guix-git/doc/guix.texi:25110
  37482. #, no-wrap
  37483. msgid "@code{extra-config} (default: @code{(list \"TypesConfig etc/httpd/mime.types\")})"
  37484. msgstr ""
  37485. #. type: table
  37486. #: guix-git/doc/guix.texi:25113
  37487. msgid "A flat list of strings and G-expressions which will be added to the end of the configuration file."
  37488. msgstr ""
  37489. #. type: table
  37490. #: guix-git/doc/guix.texi:25116
  37491. msgid "Any values which the service is extended with will be appended to this list."
  37492. msgstr ""
  37493. #. type: deffn
  37494. #: guix-git/doc/guix.texi:25120
  37495. #, no-wrap
  37496. msgid "{Data Type} httpd-virtualhost"
  37497. msgstr ""
  37498. #. type: deffn
  37499. #: guix-git/doc/guix.texi:25122
  37500. msgid "This data type represents a virtualhost configuration block for the httpd service."
  37501. msgstr ""
  37502. #. type: deffn
  37503. #: guix-git/doc/guix.texi:25124
  37504. msgid "These should be added to the extra-config for the httpd-service."
  37505. msgstr ""
  37506. #. type: code{#1}
  37507. #: guix-git/doc/guix.texi:25136
  37508. #, no-wrap
  37509. msgid "addresses-and-ports"
  37510. msgstr ""
  37511. #. type: table
  37512. #: guix-git/doc/guix.texi:25138
  37513. msgid "The addresses and ports for the @code{VirtualHost} directive."
  37514. msgstr ""
  37515. #. type: code{#1}
  37516. #: guix-git/doc/guix.texi:25139
  37517. #, no-wrap
  37518. msgid "contents"
  37519. msgstr ""
  37520. #. type: table
  37521. #: guix-git/doc/guix.texi:25142
  37522. msgid "The contents of the @code{VirtualHost} directive, this should be a list of strings and G-expressions."
  37523. msgstr ""
  37524. #. type: subsubheading
  37525. #: guix-git/doc/guix.texi:25146
  37526. #, no-wrap
  37527. msgid "NGINX"
  37528. msgstr ""
  37529. #. type: deffn
  37530. #: guix-git/doc/guix.texi:25148
  37531. #, no-wrap
  37532. msgid "{Scheme Variable} nginx-service-type"
  37533. msgstr ""
  37534. #. type: deffn
  37535. #: guix-git/doc/guix.texi:25151
  37536. msgid "Service type for the @uref{https://nginx.org/,NGinx} web server. The value for this service type is a @code{<nginx-configuration>} record."
  37537. msgstr ""
  37538. #. type: lisp
  37539. #: guix-git/doc/guix.texi:25161 guix-git/doc/guix.texi:25215
  37540. #, no-wrap
  37541. msgid ""
  37542. "(service nginx-service-type\n"
  37543. " (nginx-configuration\n"
  37544. " (server-blocks\n"
  37545. " (list (nginx-server-configuration\n"
  37546. " (server-name '(\"www.example.com\"))\n"
  37547. " (root \"/srv/http/www.example.com\"))))))\n"
  37548. msgstr ""
  37549. #. type: deffn
  37550. #: guix-git/doc/guix.texi:25166
  37551. msgid "In addition to adding server blocks to the service configuration directly, this service can be extended by other services to add server blocks, as in this example:"
  37552. msgstr ""
  37553. #. type: lisp
  37554. #: guix-git/doc/guix.texi:25172
  37555. #, no-wrap
  37556. msgid ""
  37557. "(simple-service 'my-extra-server nginx-service-type\n"
  37558. " (list (nginx-server-configuration\n"
  37559. " (root \"/srv/http/extra-website\")\n"
  37560. " (try-files (list \"$uri\" \"$uri/index.html\")))))\n"
  37561. msgstr ""
  37562. #. type: Plain text
  37563. #: guix-git/doc/guix.texi:25183
  37564. msgid "At startup, @command{nginx} has not yet read its configuration file, so it uses a default file to log error messages. If it fails to load its configuration file, that is where error messages are logged. After the configuration file is loaded, the default error log file changes as per configuration. In our case, startup error messages can be found in @file{/var/run/nginx/logs/error.log}, and after configuration in @file{/var/log/nginx/error.log}. The second location can be changed with the @var{log-directory} configuration option."
  37565. msgstr ""
  37566. #. type: deffn
  37567. #: guix-git/doc/guix.texi:25184
  37568. #, no-wrap
  37569. msgid "{Data Type} nginx-configuration"
  37570. msgstr ""
  37571. #. type: deffn
  37572. #: guix-git/doc/guix.texi:25188
  37573. msgid "This data type represents the configuration for NGinx. Some configuration can be done through this and the other provided record types, or alternatively, a config file can be provided."
  37574. msgstr ""
  37575. #. type: item
  37576. #: guix-git/doc/guix.texi:25190
  37577. #, no-wrap
  37578. msgid "@code{nginx} (default: @code{nginx})"
  37579. msgstr ""
  37580. #. type: table
  37581. #: guix-git/doc/guix.texi:25192
  37582. msgid "The nginx package to use."
  37583. msgstr ""
  37584. #. type: item
  37585. #: guix-git/doc/guix.texi:25193
  37586. #, no-wrap
  37587. msgid "@code{log-directory} (default: @code{\"/var/log/nginx\"})"
  37588. msgstr ""
  37589. #. type: table
  37590. #: guix-git/doc/guix.texi:25195
  37591. msgid "The directory to which NGinx will write log files."
  37592. msgstr ""
  37593. #. type: item
  37594. #: guix-git/doc/guix.texi:25196
  37595. #, no-wrap
  37596. msgid "@code{run-directory} (default: @code{\"/var/run/nginx\"})"
  37597. msgstr ""
  37598. #. type: table
  37599. #: guix-git/doc/guix.texi:25199
  37600. msgid "The directory in which NGinx will create a pid file, and write temporary files."
  37601. msgstr ""
  37602. #. type: item
  37603. #: guix-git/doc/guix.texi:25200
  37604. #, no-wrap
  37605. msgid "@code{server-blocks} (default: @code{'()})"
  37606. msgstr ""
  37607. #. type: table
  37608. #: guix-git/doc/guix.texi:25204
  37609. msgid "A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}."
  37610. msgstr ""
  37611. #. type: table
  37612. #: guix-git/doc/guix.texi:25208
  37613. msgid "The following example would setup NGinx to serve @code{www.example.com} from the @code{/srv/http/www.example.com} directory, without using HTTPS."
  37614. msgstr ""
  37615. #. type: item
  37616. #: guix-git/doc/guix.texi:25217
  37617. #, no-wrap
  37618. msgid "@code{upstream-blocks} (default: @code{'()})"
  37619. msgstr ""
  37620. #. type: table
  37621. #: guix-git/doc/guix.texi:25221
  37622. msgid "A list of @dfn{upstream blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-upstream-configuration>}."
  37623. msgstr ""
  37624. #. type: table
  37625. #: guix-git/doc/guix.texi:25228
  37626. msgid "Configuring upstreams through the @code{upstream-blocks} can be useful when combined with @code{locations} in the @code{<nginx-server-configuration>} records. The following example creates a server configuration with one location configuration, that will proxy requests to a upstream configuration, which will handle requests with two servers."
  37627. msgstr ""
  37628. #. type: lisp
  37629. #: guix-git/doc/guix.texi:25247
  37630. #, no-wrap
  37631. msgid ""
  37632. "(service\n"
  37633. " nginx-service-type\n"
  37634. " (nginx-configuration\n"
  37635. " (server-blocks\n"
  37636. " (list (nginx-server-configuration\n"
  37637. " (server-name '(\"www.example.com\"))\n"
  37638. " (root \"/srv/http/www.example.com\")\n"
  37639. " (locations\n"
  37640. " (list\n"
  37641. " (nginx-location-configuration\n"
  37642. " (uri \"/path1\")\n"
  37643. " (body '(\"proxy_pass http://server-proxy;\"))))))))\n"
  37644. " (upstream-blocks\n"
  37645. " (list (nginx-upstream-configuration\n"
  37646. " (name \"server-proxy\")\n"
  37647. " (servers (list \"server1.example.com\"\n"
  37648. " \"server2.example.com\")))))))\n"
  37649. msgstr ""
  37650. #. type: table
  37651. #: guix-git/doc/guix.texi:25255
  37652. msgid "If a configuration @var{file} is provided, this will be used, rather than generating a configuration file from the provided @code{log-directory}, @code{run-directory}, @code{server-blocks} and @code{upstream-blocks}. For proper operation, these arguments should match what is in @var{file} to ensure that the directories are created when the service is activated."
  37653. msgstr ""
  37654. #. type: table
  37655. #: guix-git/doc/guix.texi:25259
  37656. msgid "This can be useful if you have an existing configuration file, or it's not possible to do what is required through the other parts of the nginx-configuration record."
  37657. msgstr ""
  37658. #. type: item
  37659. #: guix-git/doc/guix.texi:25260
  37660. #, no-wrap
  37661. msgid "@code{server-names-hash-bucket-size} (default: @code{#f})"
  37662. msgstr ""
  37663. #. type: table
  37664. #: guix-git/doc/guix.texi:25263
  37665. msgid "Bucket size for the server names hash tables, defaults to @code{#f} to use the size of the processors cache line."
  37666. msgstr ""
  37667. #. type: item
  37668. #: guix-git/doc/guix.texi:25264
  37669. #, no-wrap
  37670. msgid "@code{server-names-hash-bucket-max-size} (default: @code{#f})"
  37671. msgstr ""
  37672. #. type: table
  37673. #: guix-git/doc/guix.texi:25266
  37674. msgid "Maximum bucket size for the server names hash tables."
  37675. msgstr ""
  37676. #. type: table
  37677. #: guix-git/doc/guix.texi:25270
  37678. msgid "List of nginx dynamic modules to load. This should be a list of file names of loadable modules, as in this example:"
  37679. msgstr ""
  37680. #. type: lisp
  37681. #: guix-git/doc/guix.texi:25278
  37682. #, no-wrap
  37683. msgid ""
  37684. "(modules\n"
  37685. " (list\n"
  37686. " (file-append nginx-accept-language-module \"\\\n"
  37687. "/etc/nginx/modules/ngx_http_accept_language_module.so\")\n"
  37688. " (file-append nginx-lua-module \"\\\n"
  37689. "/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  37690. msgstr ""
  37691. #. type: item
  37692. #: guix-git/doc/guix.texi:25280
  37693. #, fuzzy, no-wrap
  37694. msgid "@code{lua-package-path} (default: @code{'()})"
  37695. msgstr "@code{features} (@code{'()})"
  37696. #. type: table
  37697. #: guix-git/doc/guix.texi:25283
  37698. msgid "List of nginx lua packages to load. This should be a list of package names of loadable lua modules, as in this example:"
  37699. msgstr ""
  37700. #. type: lisp
  37701. #: guix-git/doc/guix.texi:25290
  37702. #, no-wrap
  37703. msgid ""
  37704. "(lua-package-path (list lua-resty-core\n"
  37705. " lua-resty-lrucache\n"
  37706. " lua-resty-signal\n"
  37707. " lua-tablepool\n"
  37708. " lua-resty-shell))\n"
  37709. msgstr ""
  37710. #. type: item
  37711. #: guix-git/doc/guix.texi:25292
  37712. #, fuzzy, no-wrap
  37713. msgid "@code{lua-package-cpath} (default: @code{'()})"
  37714. msgstr "@code{features} (@code{'()})"
  37715. #. type: table
  37716. #: guix-git/doc/guix.texi:25295
  37717. msgid "List of nginx lua C packages to load. This should be a list of package names of loadable lua C modules, as in this example:"
  37718. msgstr ""
  37719. #. type: lisp
  37720. #: guix-git/doc/guix.texi:25298
  37721. #, no-wrap
  37722. msgid "(lua-package-cpath (list lua-resty-signal))\n"
  37723. msgstr ""
  37724. #. type: item
  37725. #: guix-git/doc/guix.texi:25300
  37726. #, fuzzy, no-wrap
  37727. msgid "@code{global-directives} (default: @code{'((events . ()))})"
  37728. msgstr "@code{features} (@code{'()})"
  37729. #. type: table
  37730. #: guix-git/doc/guix.texi:25303
  37731. msgid "Association list of global directives for the top level of the nginx configuration. Values may themselves be association lists."
  37732. msgstr ""
  37733. #. type: lisp
  37734. #: guix-git/doc/guix.texi:25309
  37735. #, no-wrap
  37736. msgid ""
  37737. "(global-directives\n"
  37738. " `((worker_processes . 16)\n"
  37739. " (pcre_jit . on)\n"
  37740. " (events . ((worker_connections . 1024)))))\n"
  37741. msgstr ""
  37742. #. type: table
  37743. #: guix-git/doc/guix.texi:25314
  37744. msgid "Extra content for the @code{http} block. Should be string or a string valued G-expression."
  37745. msgstr ""
  37746. #. type: deftp
  37747. #: guix-git/doc/guix.texi:25318
  37748. #, no-wrap
  37749. msgid "{Data Type} nginx-server-configuration"
  37750. msgstr ""
  37751. #. type: deftp
  37752. #: guix-git/doc/guix.texi:25321
  37753. msgid "Data type representing the configuration of an nginx server block. This type has the following parameters:"
  37754. msgstr ""
  37755. #. type: item
  37756. #: guix-git/doc/guix.texi:25323
  37757. #, no-wrap
  37758. msgid "@code{listen} (default: @code{'(\"80\" \"443 ssl\")})"
  37759. msgstr ""
  37760. #. type: table
  37761. #: guix-git/doc/guix.texi:25328
  37762. msgid "Each @code{listen} directive sets the address and port for IP, or the path for a UNIX-domain socket on which the server will accept requests. Both address and port, or only address or only port can be specified. An address may also be a hostname, for example:"
  37763. msgstr ""
  37764. #. type: lisp
  37765. #: guix-git/doc/guix.texi:25331
  37766. #, no-wrap
  37767. msgid "'(\"127.0.0.1:8000\" \"127.0.0.1\" \"8000\" \"*:8000\" \"localhost:8000\")\n"
  37768. msgstr ""
  37769. #. type: item
  37770. #: guix-git/doc/guix.texi:25333
  37771. #, no-wrap
  37772. msgid "@code{server-name} (default: @code{(list 'default)})"
  37773. msgstr ""
  37774. #. type: table
  37775. #: guix-git/doc/guix.texi:25336
  37776. msgid "A list of server names this server represents. @code{'default} represents the default server for connections matching no other server."
  37777. msgstr ""
  37778. #. type: item
  37779. #: guix-git/doc/guix.texi:25337
  37780. #, no-wrap
  37781. msgid "@code{root} (default: @code{\"/srv/http\"})"
  37782. msgstr ""
  37783. #. type: table
  37784. #: guix-git/doc/guix.texi:25339
  37785. msgid "Root of the website nginx will serve."
  37786. msgstr ""
  37787. #. type: item
  37788. #: guix-git/doc/guix.texi:25340
  37789. #, no-wrap
  37790. msgid "@code{locations} (default: @code{'()})"
  37791. msgstr ""
  37792. #. type: table
  37793. #: guix-git/doc/guix.texi:25344
  37794. msgid "A list of @dfn{nginx-location-configuration} or @dfn{nginx-named-location-configuration} records to use within this server block."
  37795. msgstr ""
  37796. #. type: item
  37797. #: guix-git/doc/guix.texi:25345
  37798. #, no-wrap
  37799. msgid "@code{index} (default: @code{(list \"index.html\")})"
  37800. msgstr ""
  37801. #. type: table
  37802. #: guix-git/doc/guix.texi:25348
  37803. msgid "Index files to look for when clients ask for a directory. If it cannot be found, Nginx will send the list of files in the directory."
  37804. msgstr ""
  37805. #. type: item
  37806. #: guix-git/doc/guix.texi:25349
  37807. #, no-wrap
  37808. msgid "@code{try-files} (default: @code{'()})"
  37809. msgstr ""
  37810. #. type: table
  37811. #: guix-git/doc/guix.texi:25352
  37812. msgid "A list of files whose existence is checked in the specified order. @code{nginx} will use the first file it finds to process the request."
  37813. msgstr ""
  37814. #. type: item
  37815. #: guix-git/doc/guix.texi:25353
  37816. #, no-wrap
  37817. msgid "@code{ssl-certificate} (default: @code{#f})"
  37818. msgstr ""
  37819. #. type: table
  37820. #: guix-git/doc/guix.texi:25356
  37821. msgid "Where to find the certificate for secure connections. Set it to @code{#f} if you don't have a certificate or you don't want to use HTTPS."
  37822. msgstr ""
  37823. #. type: item
  37824. #: guix-git/doc/guix.texi:25357
  37825. #, no-wrap
  37826. msgid "@code{ssl-certificate-key} (default: @code{#f})"
  37827. msgstr ""
  37828. #. type: table
  37829. #: guix-git/doc/guix.texi:25360
  37830. msgid "Where to find the private key for secure connections. Set it to @code{#f} if you don't have a key or you don't want to use HTTPS."
  37831. msgstr ""
  37832. #. type: item
  37833. #: guix-git/doc/guix.texi:25361
  37834. #, no-wrap
  37835. msgid "@code{server-tokens?} (default: @code{#f})"
  37836. msgstr ""
  37837. #. type: table
  37838. #: guix-git/doc/guix.texi:25363
  37839. msgid "Whether the server should add its configuration to response."
  37840. msgstr ""
  37841. #. type: item
  37842. #: guix-git/doc/guix.texi:25364
  37843. #, no-wrap
  37844. msgid "@code{raw-content} (default: @code{'()})"
  37845. msgstr ""
  37846. #. type: table
  37847. #: guix-git/doc/guix.texi:25366
  37848. msgid "A list of raw lines added to the server block."
  37849. msgstr ""
  37850. #. type: deftp
  37851. #: guix-git/doc/guix.texi:25370
  37852. #, no-wrap
  37853. msgid "{Data Type} nginx-upstream-configuration"
  37854. msgstr ""
  37855. #. type: deftp
  37856. #: guix-git/doc/guix.texi:25373
  37857. msgid "Data type representing the configuration of an nginx @code{upstream} block. This type has the following parameters:"
  37858. msgstr ""
  37859. #. type: table
  37860. #: guix-git/doc/guix.texi:25377
  37861. msgid "Name for this group of servers."
  37862. msgstr ""
  37863. #. type: code{#1}
  37864. #: guix-git/doc/guix.texi:25378
  37865. #, no-wrap
  37866. msgid "servers"
  37867. msgstr ""
  37868. #. type: table
  37869. #: guix-git/doc/guix.texi:25385
  37870. msgid "Specify the addresses of the servers in the group. The address can be specified as a IP address (e.g.@: @samp{127.0.0.1}), domain name (e.g.@: @samp{backend1.example.com}) or a path to a UNIX socket using the prefix @samp{unix:}. For addresses using an IP address or domain name, the default port is 80, and a different port can be specified explicitly."
  37871. msgstr ""
  37872. #. type: deftp
  37873. #: guix-git/doc/guix.texi:25389
  37874. #, no-wrap
  37875. msgid "{Data Type} nginx-location-configuration"
  37876. msgstr ""
  37877. #. type: deftp
  37878. #: guix-git/doc/guix.texi:25392
  37879. msgid "Data type representing the configuration of an nginx @code{location} block. This type has the following parameters:"
  37880. msgstr ""
  37881. #. type: table
  37882. #: guix-git/doc/guix.texi:25396
  37883. msgid "URI which this location block matches."
  37884. msgstr ""
  37885. #. type: anchor{#1}
  37886. #: guix-git/doc/guix.texi:25398
  37887. msgid "nginx-location-configuration body"
  37888. msgstr ""
  37889. #. type: code{#1}
  37890. #: guix-git/doc/guix.texi:25398 guix-git/doc/guix.texi:25419
  37891. #, no-wrap
  37892. msgid "body"
  37893. msgstr ""
  37894. #. type: table
  37895. #: guix-git/doc/guix.texi:25405
  37896. msgid "Body of the location block, specified as a list of strings. This can contain many configuration directives. For example, to pass requests to a upstream server group defined using an @code{nginx-upstream-configuration} block, the following directive would be specified in the body @samp{(list \"proxy_pass http://upstream-name;\")}."
  37897. msgstr ""
  37898. #. type: deftp
  37899. #: guix-git/doc/guix.texi:25409
  37900. #, no-wrap
  37901. msgid "{Data Type} nginx-named-location-configuration"
  37902. msgstr ""
  37903. #. type: deftp
  37904. #: guix-git/doc/guix.texi:25414
  37905. msgid "Data type representing the configuration of an nginx named location block. Named location blocks are used for request redirection, and not used for regular request processing. This type has the following parameters:"
  37906. msgstr ""
  37907. #. type: table
  37908. #: guix-git/doc/guix.texi:25418
  37909. msgid "Name to identify this location block."
  37910. msgstr ""
  37911. #. type: table
  37912. #: guix-git/doc/guix.texi:25424
  37913. msgid "@xref{nginx-location-configuration body}, as the body for named location blocks can be used in a similar way to the @code{nginx-location-configuration body}. One restriction is that the body of a named location block cannot contain location blocks."
  37914. msgstr ""
  37915. #. type: subsubheading
  37916. #: guix-git/doc/guix.texi:25428
  37917. #, no-wrap
  37918. msgid "Varnish Cache"
  37919. msgstr ""
  37920. #. type: cindex
  37921. #: guix-git/doc/guix.texi:25429
  37922. #, no-wrap
  37923. msgid "Varnish"
  37924. msgstr ""
  37925. #. type: Plain text
  37926. #: guix-git/doc/guix.texi:25434
  37927. msgid "Varnish is a fast cache server that sits in between web applications and end users. It proxies requests from clients and caches the accessed URLs such that multiple requests for the same resource only creates one request to the back-end."
  37928. msgstr ""
  37929. #. type: defvr
  37930. #: guix-git/doc/guix.texi:25435
  37931. #, no-wrap
  37932. msgid "{Scheme Variable} varnish-service-type"
  37933. msgstr ""
  37934. #. type: defvr
  37935. #: guix-git/doc/guix.texi:25437
  37936. msgid "Service type for the Varnish daemon."
  37937. msgstr ""
  37938. #. type: deftp
  37939. #: guix-git/doc/guix.texi:25439
  37940. #, no-wrap
  37941. msgid "{Data Type} varnish-configuration"
  37942. msgstr ""
  37943. #. type: deftp
  37944. #: guix-git/doc/guix.texi:25442
  37945. msgid "Data type representing the @code{varnish} service configuration. This type has the following parameters:"
  37946. msgstr ""
  37947. #. type: item
  37948. #: guix-git/doc/guix.texi:25444
  37949. #, no-wrap
  37950. msgid "@code{package} (default: @code{varnish})"
  37951. msgstr ""
  37952. #. type: table
  37953. #: guix-git/doc/guix.texi:25446
  37954. msgid "The Varnish package to use."
  37955. msgstr ""
  37956. #. type: item
  37957. #: guix-git/doc/guix.texi:25447
  37958. #, no-wrap
  37959. msgid "@code{name} (default: @code{\"default\"})"
  37960. msgstr ""
  37961. #. type: table
  37962. #: guix-git/doc/guix.texi:25452
  37963. msgid "A name for this Varnish instance. Varnish will create a directory in @file{/var/varnish/} with this name and keep temporary files there. If the name starts with a forward slash, it is interpreted as an absolute directory name."
  37964. msgstr ""
  37965. #. type: table
  37966. #: guix-git/doc/guix.texi:25455
  37967. msgid "Pass the @code{-n} argument to other Varnish programs to connect to the named instance, e.g.@: @command{varnishncsa -n default}."
  37968. msgstr ""
  37969. #. type: item
  37970. #: guix-git/doc/guix.texi:25456
  37971. #, no-wrap
  37972. msgid "@code{backend} (default: @code{\"localhost:8080\"})"
  37973. msgstr ""
  37974. #. type: table
  37975. #: guix-git/doc/guix.texi:25458
  37976. msgid "The backend to use. This option has no effect if @code{vcl} is set."
  37977. msgstr ""
  37978. #. type: item
  37979. #: guix-git/doc/guix.texi:25459
  37980. #, no-wrap
  37981. msgid "@code{vcl} (default: #f)"
  37982. msgstr ""
  37983. #. type: table
  37984. #: guix-git/doc/guix.texi:25464
  37985. msgid "The @dfn{VCL} (Varnish Configuration Language) program to run. If this is @code{#f}, Varnish will proxy @code{backend} using the default configuration. Otherwise this must be a file-like object with valid VCL syntax."
  37986. msgstr ""
  37987. #. type: table
  37988. #: guix-git/doc/guix.texi:25468
  37989. msgid "For example, to mirror @url{https://www.gnu.org,www.gnu.org} with VCL you can do something along these lines:"
  37990. msgstr ""
  37991. #. type: lisp
  37992. #: guix-git/doc/guix.texi:25474
  37993. #, no-wrap
  37994. msgid ""
  37995. "(define %gnu-mirror\n"
  37996. " (plain-file \"gnu.vcl\"\n"
  37997. " \"vcl 4.1;\n"
  37998. "backend gnu @{ .host = \\\"www.gnu.org\\\"; @}\"))\n"
  37999. "\n"
  38000. msgstr ""
  38001. #. type: lisp
  38002. #: guix-git/doc/guix.texi:25482
  38003. #, no-wrap
  38004. msgid ""
  38005. "(operating-system\n"
  38006. " ;; @dots{}\n"
  38007. " (services (cons (service varnish-service-type\n"
  38008. " (varnish-configuration\n"
  38009. " (listen '(\":80\"))\n"
  38010. " (vcl %gnu-mirror)))\n"
  38011. " %base-services)))\n"
  38012. msgstr ""
  38013. #. type: table
  38014. #: guix-git/doc/guix.texi:25486
  38015. msgid "The configuration of an already running Varnish instance can be inspected and changed using the @command{varnishadm} program."
  38016. msgstr ""
  38017. #. type: table
  38018. #: guix-git/doc/guix.texi:25490
  38019. msgid "Consult the @url{https://varnish-cache.org/docs/,Varnish User Guide} and @url{https://book.varnish-software.com/4.0/,Varnish Book} for comprehensive documentation on Varnish and its configuration language."
  38020. msgstr ""
  38021. #. type: item
  38022. #: guix-git/doc/guix.texi:25491
  38023. #, no-wrap
  38024. msgid "@code{listen} (default: @code{'(\"localhost:80\")})"
  38025. msgstr ""
  38026. #. type: table
  38027. #: guix-git/doc/guix.texi:25493
  38028. msgid "List of addresses Varnish will listen on."
  38029. msgstr ""
  38030. #. type: item
  38031. #: guix-git/doc/guix.texi:25494
  38032. #, no-wrap
  38033. msgid "@code{storage} (default: @code{'(\"malloc,128m\")})"
  38034. msgstr ""
  38035. #. type: table
  38036. #: guix-git/doc/guix.texi:25496
  38037. msgid "List of storage backends that will be available in VCL."
  38038. msgstr ""
  38039. #. type: item
  38040. #: guix-git/doc/guix.texi:25497
  38041. #, no-wrap
  38042. msgid "@code{parameters} (default: @code{'()})"
  38043. msgstr ""
  38044. #. type: table
  38045. #: guix-git/doc/guix.texi:25499
  38046. msgid "List of run-time parameters in the form @code{'((\"parameter\" . \"value\"))}."
  38047. msgstr ""
  38048. #. type: table
  38049. #: guix-git/doc/guix.texi:25502
  38050. msgid "Additional arguments to pass to the @command{varnishd} process."
  38051. msgstr ""
  38052. #. type: cindex
  38053. #: guix-git/doc/guix.texi:25506 guix-git/doc/guix.texi:25507
  38054. #, no-wrap
  38055. msgid "Patchwork"
  38056. msgstr ""
  38057. #. type: Plain text
  38058. #: guix-git/doc/guix.texi:25510
  38059. msgid "Patchwork is a patch tracking system. It can collect patches sent to a mailing list, and display them in a web interface."
  38060. msgstr ""
  38061. #. type: defvr
  38062. #: guix-git/doc/guix.texi:25511
  38063. #, no-wrap
  38064. msgid "{Scheme Variable} patchwork-service-type"
  38065. msgstr ""
  38066. #. type: defvr
  38067. #: guix-git/doc/guix.texi:25513
  38068. #, fuzzy
  38069. msgid "Service type for Patchwork."
  38070. msgstr "分享你的工作。"
  38071. #. type: Plain text
  38072. #: guix-git/doc/guix.texi:25517
  38073. msgid "The following example is an example of a minimal service for Patchwork, for the @code{patchwork.example.com} domain."
  38074. msgstr ""
  38075. #. type: lisp
  38076. #: guix-git/doc/guix.texi:25537
  38077. #, no-wrap
  38078. msgid ""
  38079. "(service patchwork-service-type\n"
  38080. " (patchwork-configuration\n"
  38081. " (domain \"patchwork.example.com\")\n"
  38082. " (settings-module\n"
  38083. " (patchwork-settings-module\n"
  38084. " (allowed-hosts (list domain))\n"
  38085. " (default-from-email \"patchwork@@patchwork.example.com\")))\n"
  38086. " (getmail-retriever-config\n"
  38087. " (getmail-retriever-configuration\n"
  38088. " (type \"SimpleIMAPSSLRetriever\")\n"
  38089. " (server \"imap.example.com\")\n"
  38090. " (port 993)\n"
  38091. " (username \"patchwork\")\n"
  38092. " (password-command\n"
  38093. " (list (file-append coreutils \"/bin/cat\")\n"
  38094. " \"/etc/getmail-patchwork-imap-password\"))\n"
  38095. " (extra-parameters\n"
  38096. " '((mailboxes . (\"Patches\"))))))))\n"
  38097. "\n"
  38098. msgstr ""
  38099. #. type: Plain text
  38100. #: guix-git/doc/guix.texi:25543
  38101. msgid "There are three records for configuring the Patchwork service. The @code{<patchwork-configuration>} relates to the configuration for Patchwork within the HTTPD service."
  38102. msgstr ""
  38103. #. type: Plain text
  38104. #: guix-git/doc/guix.texi:25547
  38105. msgid "The @code{settings-module} field within the @code{<patchwork-configuration>} record can be populated with the @code{<patchwork-settings-module>} record, which describes a settings module that is generated within the Guix store."
  38106. msgstr ""
  38107. #. type: Plain text
  38108. #: guix-git/doc/guix.texi:25551
  38109. msgid "For the @code{database-configuration} field within the @code{<patchwork-settings-module>}, the @code{<patchwork-database-configuration>} must be used."
  38110. msgstr ""
  38111. #. type: deftp
  38112. #: guix-git/doc/guix.texi:25552
  38113. #, no-wrap
  38114. msgid "{Data Type} patchwork-configuration"
  38115. msgstr ""
  38116. #. type: deftp
  38117. #: guix-git/doc/guix.texi:25555
  38118. msgid "Data type representing the Patchwork service configuration. This type has the following parameters:"
  38119. msgstr ""
  38120. #. type: item
  38121. #: guix-git/doc/guix.texi:25557
  38122. #, fuzzy, no-wrap
  38123. msgid "@code{patchwork} (default: @code{patchwork})"
  38124. msgstr "@code{mate}(默认值:@code{mate})"
  38125. #. type: table
  38126. #: guix-git/doc/guix.texi:25559
  38127. #, fuzzy
  38128. msgid "The Patchwork package to use."
  38129. msgstr "软件包数据类型。"
  38130. #. type: code{#1}
  38131. #: guix-git/doc/guix.texi:25560
  38132. #, no-wrap
  38133. msgid "domain"
  38134. msgstr ""
  38135. #. type: table
  38136. #: guix-git/doc/guix.texi:25563
  38137. msgid "The domain to use for Patchwork, this is used in the HTTPD service virtual host."
  38138. msgstr ""
  38139. #. type: code{#1}
  38140. #: guix-git/doc/guix.texi:25564
  38141. #, no-wrap
  38142. msgid "settings-module"
  38143. msgstr ""
  38144. #. type: table
  38145. #: guix-git/doc/guix.texi:25570
  38146. msgid "The settings module to use for Patchwork. As a Django application, Patchwork is configured with a Python module containing the settings. This can either be an instance of the @code{<patchwork-settings-module>} record, any other record that represents the settings in the store, or a directory outside of the store."
  38147. msgstr ""
  38148. #. type: item
  38149. #: guix-git/doc/guix.texi:25571
  38150. #, fuzzy, no-wrap
  38151. msgid "@code{static-path} (default: @code{\"/static/\"})"
  38152. msgstr "@code{mate}(默认值:@code{mate})"
  38153. #. type: table
  38154. #: guix-git/doc/guix.texi:25573
  38155. msgid "The path under which the HTTPD service should serve the static files."
  38156. msgstr ""
  38157. #. type: code{#1}
  38158. #: guix-git/doc/guix.texi:25574
  38159. #, no-wrap
  38160. msgid "getmail-retriever-config"
  38161. msgstr ""
  38162. #. type: table
  38163. #: guix-git/doc/guix.texi:25578
  38164. msgid "The getmail-retriever-configuration record value to use with Patchwork. Getmail will be configured with this value, the messages will be delivered to Patchwork."
  38165. msgstr ""
  38166. #. type: deftp
  38167. #: guix-git/doc/guix.texi:25582
  38168. #, no-wrap
  38169. msgid "{Data Type} patchwork-settings-module"
  38170. msgstr ""
  38171. #. type: deftp
  38172. #: guix-git/doc/guix.texi:25587
  38173. msgid "Data type representing a settings module for Patchwork. Some of these settings relate directly to Patchwork, but others relate to Django, the web framework used by Patchwork, or the Django Rest Framework library. This type has the following parameters:"
  38174. msgstr ""
  38175. #. type: item
  38176. #: guix-git/doc/guix.texi:25589
  38177. #, no-wrap
  38178. msgid "@code{database-configuration} (default: @code{(patchwork-database-configuration)})"
  38179. msgstr ""
  38180. #. type: table
  38181. #: guix-git/doc/guix.texi:25592
  38182. msgid "The database connection settings used for Patchwork. See the @code{<patchwork-database-configuration>} record type for more information."
  38183. msgstr ""
  38184. #. type: item
  38185. #: guix-git/doc/guix.texi:25593
  38186. #, fuzzy, no-wrap
  38187. msgid "@code{secret-key-file} (default: @code{\"/etc/patchwork/django-secret-key\"})"
  38188. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  38189. #. type: table
  38190. #: guix-git/doc/guix.texi:25596
  38191. msgid "Patchwork, as a Django web application uses a secret key for cryptographically signing values. This file should contain a unique unpredictable value."
  38192. msgstr ""
  38193. #. type: table
  38194. #: guix-git/doc/guix.texi:25599
  38195. msgid "If this file does not exist, it will be created and populated with a random value by the patchwork-setup shepherd service."
  38196. msgstr ""
  38197. #. type: table
  38198. #: guix-git/doc/guix.texi:25601
  38199. msgid "This setting relates to Django."
  38200. msgstr ""
  38201. #. type: code{#1}
  38202. #: guix-git/doc/guix.texi:25602
  38203. #, no-wrap
  38204. msgid "allowed-hosts"
  38205. msgstr ""
  38206. #. type: table
  38207. #: guix-git/doc/guix.texi:25605
  38208. msgid "A list of valid hosts for this Patchwork service. This should at least include the domain specified in the @code{<patchwork-configuration>} record."
  38209. msgstr ""
  38210. #. type: table
  38211. #: guix-git/doc/guix.texi:25607 guix-git/doc/guix.texi:25621
  38212. #: guix-git/doc/guix.texi:25627 guix-git/doc/guix.texi:25633
  38213. msgid "This is a Django setting."
  38214. msgstr ""
  38215. #. type: code{#1}
  38216. #: guix-git/doc/guix.texi:25608
  38217. #, no-wrap
  38218. msgid "default-from-email"
  38219. msgstr ""
  38220. #. type: table
  38221. #: guix-git/doc/guix.texi:25610
  38222. msgid "The email address from which Patchwork should send email by default."
  38223. msgstr ""
  38224. #. type: table
  38225. #: guix-git/doc/guix.texi:25612 guix-git/doc/guix.texi:25638
  38226. #: guix-git/doc/guix.texi:25643 guix-git/doc/guix.texi:25648
  38227. msgid "This is a Patchwork setting."
  38228. msgstr ""
  38229. #. type: item
  38230. #: guix-git/doc/guix.texi:25613
  38231. #, fuzzy, no-wrap
  38232. msgid "@code{static-url} (default: @code{#f})"
  38233. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38234. #. type: table
  38235. #: guix-git/doc/guix.texi:25616
  38236. msgid "The URL to use when serving static assets. It can be part of a URL, or a full URL, but must end in a @code{/}."
  38237. msgstr ""
  38238. #. type: table
  38239. #: guix-git/doc/guix.texi:25619
  38240. msgid "If the default value is used, the @code{static-path} value from the @code{<patchwork-configuration>} record will be used."
  38241. msgstr ""
  38242. #. type: item
  38243. #: guix-git/doc/guix.texi:25622
  38244. #, fuzzy, no-wrap
  38245. msgid "@code{admins} (default: @code{'()})"
  38246. msgstr "@code{includes}(默认值:@code{'()})"
  38247. #. type: table
  38248. #: guix-git/doc/guix.texi:25625
  38249. msgid "Email addresses to send the details of errors that occur. Each value should be a list containing two elements, the name and then the email address."
  38250. msgstr ""
  38251. #. type: table
  38252. #: guix-git/doc/guix.texi:25631
  38253. msgid "Whether to run Patchwork in debug mode. If set to @code{#t}, detailed error messages will be shown."
  38254. msgstr ""
  38255. #. type: item
  38256. #: guix-git/doc/guix.texi:25634
  38257. #, fuzzy, no-wrap
  38258. msgid "@code{enable-rest-api?} (default: @code{#t})"
  38259. msgstr "@code{challenge}(默认值:@code{#f})"
  38260. #. type: table
  38261. #: guix-git/doc/guix.texi:25636
  38262. msgid "Whether to enable the Patchwork REST API."
  38263. msgstr ""
  38264. #. type: item
  38265. #: guix-git/doc/guix.texi:25639
  38266. #, fuzzy, no-wrap
  38267. msgid "@code{enable-xmlrpc?} (default: @code{#t})"
  38268. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  38269. #. type: table
  38270. #: guix-git/doc/guix.texi:25641
  38271. msgid "Whether to enable the XML RPC API."
  38272. msgstr ""
  38273. #. type: item
  38274. #: guix-git/doc/guix.texi:25644
  38275. #, fuzzy, no-wrap
  38276. msgid "@code{force-https-links?} (default: @code{#t})"
  38277. msgstr "@code{challenge}(默认值:@code{#f})"
  38278. #. type: table
  38279. #: guix-git/doc/guix.texi:25646
  38280. msgid "Whether to use HTTPS links on Patchwork pages."
  38281. msgstr ""
  38282. #. type: table
  38283. #: guix-git/doc/guix.texi:25651
  38284. msgid "Extra code to place at the end of the Patchwork settings module."
  38285. msgstr ""
  38286. #. type: deftp
  38287. #: guix-git/doc/guix.texi:25655
  38288. #, no-wrap
  38289. msgid "{Data Type} patchwork-database-configuration"
  38290. msgstr ""
  38291. #. type: deftp
  38292. #: guix-git/doc/guix.texi:25657
  38293. msgid "Data type representing the database configuration for Patchwork."
  38294. msgstr ""
  38295. #. type: item
  38296. #: guix-git/doc/guix.texi:25659
  38297. #, fuzzy, no-wrap
  38298. msgid "@code{engine} (default: @code{\"django.db.backends.postgresql_psycopg2\"})"
  38299. msgstr "@code{gnome}(默认值:@code{gnome})"
  38300. #. type: table
  38301. #: guix-git/doc/guix.texi:25661
  38302. msgid "The database engine to use."
  38303. msgstr ""
  38304. #. type: item
  38305. #: guix-git/doc/guix.texi:25662
  38306. #, fuzzy, no-wrap
  38307. msgid "@code{name} (default: @code{\"patchwork\"})"
  38308. msgstr "@code{mate}(默认值:@code{mate})"
  38309. #. type: table
  38310. #: guix-git/doc/guix.texi:25664
  38311. #, fuzzy
  38312. msgid "The name of the database to use."
  38313. msgstr "远程机器的主机名。"
  38314. #. type: table
  38315. #: guix-git/doc/guix.texi:25667
  38316. msgid "The user to connect to the database as."
  38317. msgstr ""
  38318. #. type: item
  38319. #: guix-git/doc/guix.texi:25668
  38320. #, fuzzy, no-wrap
  38321. msgid "@code{password} (default: @code{\"\"})"
  38322. msgstr "@code{port}(默认值:@code{22})"
  38323. #. type: table
  38324. #: guix-git/doc/guix.texi:25670
  38325. msgid "The password to use when connecting to the database."
  38326. msgstr ""
  38327. #. type: item
  38328. #: guix-git/doc/guix.texi:25671
  38329. #, fuzzy, no-wrap
  38330. msgid "@code{host} (default: @code{\"\"})"
  38331. msgstr "@code{port}(默认值:@code{22})"
  38332. #. type: table
  38333. #: guix-git/doc/guix.texi:25673
  38334. msgid "The host to make the database connection to."
  38335. msgstr ""
  38336. #. type: item
  38337. #: guix-git/doc/guix.texi:25674
  38338. #, fuzzy, no-wrap
  38339. msgid "@code{port} (default: @code{\"\"})"
  38340. msgstr "@code{port}(默认值:@code{22})"
  38341. #. type: table
  38342. #: guix-git/doc/guix.texi:25676
  38343. msgid "The port on which to connect to the database."
  38344. msgstr ""
  38345. #. type: subsubheading
  38346. #: guix-git/doc/guix.texi:25680
  38347. #, no-wrap
  38348. msgid "Mumi"
  38349. msgstr ""
  38350. #. type: cindex
  38351. #: guix-git/doc/guix.texi:25682
  38352. #, fuzzy, no-wrap
  38353. msgid "Mumi, Debbugs Web interface"
  38354. msgstr "用户界面"
  38355. #. type: cindex
  38356. #: guix-git/doc/guix.texi:25683
  38357. #, fuzzy, no-wrap
  38358. msgid "Debbugs, Mumi Web interface"
  38359. msgstr "用户界面"
  38360. #. type: Plain text
  38361. #: guix-git/doc/guix.texi:25688
  38362. msgid "@uref{https://git.elephly.net/gitweb.cgi?p=software/mumi.git, Mumi} is a Web interface to the Debbugs bug tracker, by default for @uref{https://bugs.gnu.org, the GNU instance}. Mumi is a Web server, but it also fetches and indexes mail retrieved from Debbugs."
  38363. msgstr ""
  38364. #. type: defvr
  38365. #: guix-git/doc/guix.texi:25689
  38366. #, no-wrap
  38367. msgid "{Scheme Variable} mumi-service-type"
  38368. msgstr ""
  38369. #. type: defvr
  38370. #: guix-git/doc/guix.texi:25691
  38371. msgid "This is the service type for Mumi."
  38372. msgstr ""
  38373. #. type: deftp
  38374. #: guix-git/doc/guix.texi:25693
  38375. #, fuzzy, no-wrap
  38376. msgid "{Data Type} mumi-configuration"
  38377. msgstr "{数据类型} build-machine"
  38378. #. type: deftp
  38379. #: guix-git/doc/guix.texi:25696
  38380. msgid "Data type representing the Mumi service configuration. This type has the following fields:"
  38381. msgstr ""
  38382. #. type: item
  38383. #: guix-git/doc/guix.texi:25698
  38384. #, fuzzy, no-wrap
  38385. msgid "@code{mumi} (default: @code{mumi})"
  38386. msgstr "@code{mate}(默认值:@code{mate})"
  38387. #. type: table
  38388. #: guix-git/doc/guix.texi:25700
  38389. #, fuzzy
  38390. msgid "The Mumi package to use."
  38391. msgstr "软件包数据类型。"
  38392. #. type: item
  38393. #: guix-git/doc/guix.texi:25701
  38394. #, fuzzy, no-wrap
  38395. msgid "@code{mailer?} (default: @code{#true})"
  38396. msgstr "@code{mate}(默认值:@code{mate})"
  38397. #. type: table
  38398. #: guix-git/doc/guix.texi:25703
  38399. msgid "Whether to enable or disable the mailer component."
  38400. msgstr ""
  38401. #. type: code{#1}
  38402. #: guix-git/doc/guix.texi:25704
  38403. #, no-wrap
  38404. msgid "mumi-configuration-sender"
  38405. msgstr ""
  38406. #. type: table
  38407. #: guix-git/doc/guix.texi:25706
  38408. msgid "The email address used as the sender for comments."
  38409. msgstr ""
  38410. #. type: code{#1}
  38411. #: guix-git/doc/guix.texi:25707
  38412. #, fuzzy, no-wrap
  38413. msgid "mumi-configuration-smtp"
  38414. msgstr "系统配置"
  38415. #. type: table
  38416. #: guix-git/doc/guix.texi:25712
  38417. msgid "A URI to configure the SMTP settings for Mailutils. This could be something like @code{sendmail:///path/to/bin/msmtp} or any other URI supported by Mailutils. @xref{SMTP Mailboxes, SMTP Mailboxes,, mailutils, GNU@tie{}Mailutils}."
  38418. msgstr ""
  38419. #. type: subsubheading
  38420. #: guix-git/doc/guix.texi:25717
  38421. #, no-wrap
  38422. msgid "FastCGI"
  38423. msgstr ""
  38424. #. type: cindex
  38425. #: guix-git/doc/guix.texi:25718
  38426. #, no-wrap
  38427. msgid "fastcgi"
  38428. msgstr ""
  38429. #. type: cindex
  38430. #: guix-git/doc/guix.texi:25719
  38431. #, no-wrap
  38432. msgid "fcgiwrap"
  38433. msgstr ""
  38434. #. type: Plain text
  38435. #: guix-git/doc/guix.texi:25726
  38436. msgid "FastCGI is an interface between the front-end and the back-end of a web service. It is a somewhat legacy facility; new web services should generally just talk HTTP between the front-end and the back-end. However there are a number of back-end services such as PHP or the optimized HTTP Git repository access that use FastCGI, so we have support for it in Guix."
  38437. msgstr ""
  38438. #. type: Plain text
  38439. #: guix-git/doc/guix.texi:25733
  38440. msgid "To use FastCGI, you configure the front-end web server (e.g., nginx) to dispatch some subset of its requests to the fastcgi backend, which listens on a local TCP or UNIX socket. There is an intermediary @code{fcgiwrap} program that sits between the actual backend process and the web server. The front-end indicates which backend program to run, passing that information to the @code{fcgiwrap} process."
  38441. msgstr ""
  38442. #. type: defvr
  38443. #: guix-git/doc/guix.texi:25734
  38444. #, no-wrap
  38445. msgid "{Scheme Variable} fcgiwrap-service-type"
  38446. msgstr ""
  38447. #. type: defvr
  38448. #: guix-git/doc/guix.texi:25736
  38449. msgid "A service type for the @code{fcgiwrap} FastCGI proxy."
  38450. msgstr ""
  38451. #. type: deftp
  38452. #: guix-git/doc/guix.texi:25738
  38453. #, no-wrap
  38454. msgid "{Data Type} fcgiwrap-configuration"
  38455. msgstr ""
  38456. #. type: deftp
  38457. #: guix-git/doc/guix.texi:25741
  38458. msgid "Data type representing the configuration of the @code{fcgiwrap} service. This type has the following parameters:"
  38459. msgstr ""
  38460. #. type: item
  38461. #: guix-git/doc/guix.texi:25742
  38462. #, no-wrap
  38463. msgid "@code{package} (default: @code{fcgiwrap})"
  38464. msgstr ""
  38465. #. type: table
  38466. #: guix-git/doc/guix.texi:25744
  38467. msgid "The fcgiwrap package to use."
  38468. msgstr ""
  38469. #. type: item
  38470. #: guix-git/doc/guix.texi:25745
  38471. #, no-wrap
  38472. msgid "@code{socket} (default: @code{tcp:127.0.0.1:9000})"
  38473. msgstr ""
  38474. #. type: table
  38475. #: guix-git/doc/guix.texi:25751
  38476. msgid "The socket on which the @code{fcgiwrap} process should listen, as a string. Valid @var{socket} values include @code{unix:@var{/path/to/unix/socket}}, @code{tcp:@var{dot.ted.qu.ad}:@var{port}} and @code{tcp6:[@var{ipv6_addr}]:port}."
  38477. msgstr ""
  38478. #. type: item
  38479. #: guix-git/doc/guix.texi:25752
  38480. #, no-wrap
  38481. msgid "@code{user} (default: @code{fcgiwrap})"
  38482. msgstr ""
  38483. #. type: itemx
  38484. #: guix-git/doc/guix.texi:25753
  38485. #, no-wrap
  38486. msgid "@code{group} (default: @code{fcgiwrap})"
  38487. msgstr ""
  38488. #. type: table
  38489. #: guix-git/doc/guix.texi:25758
  38490. msgid "The user and group names, as strings, under which to run the @code{fcgiwrap} process. The @code{fastcgi} service will ensure that if the user asks for the specific user or group names @code{fcgiwrap} that the corresponding user and/or group is present on the system."
  38491. msgstr ""
  38492. #. type: table
  38493. #: guix-git/doc/guix.texi:25765
  38494. msgid "It is possible to configure a FastCGI-backed web service to pass HTTP authentication information from the front-end to the back-end, and to allow @code{fcgiwrap} to run the back-end process as a corresponding local user. To enable this capability on the back-end, run @code{fcgiwrap} as the @code{root} user and group. Note that this capability also has to be configured on the front-end as well."
  38495. msgstr ""
  38496. #. type: cindex
  38497. #: guix-git/doc/guix.texi:25768
  38498. #, no-wrap
  38499. msgid "php-fpm"
  38500. msgstr ""
  38501. #. type: Plain text
  38502. #: guix-git/doc/guix.texi:25771
  38503. msgid "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size."
  38504. msgstr ""
  38505. #. type: Plain text
  38506. #: guix-git/doc/guix.texi:25773
  38507. msgid "These features include:"
  38508. msgstr ""
  38509. #. type: item
  38510. #: guix-git/doc/guix.texi:25774
  38511. #, no-wrap
  38512. msgid "Adaptive process spawning"
  38513. msgstr ""
  38514. #. type: item
  38515. #: guix-git/doc/guix.texi:25775
  38516. #, no-wrap
  38517. msgid "Basic statistics (similar to Apache's mod_status)"
  38518. msgstr ""
  38519. #. type: item
  38520. #: guix-git/doc/guix.texi:25776
  38521. #, no-wrap
  38522. msgid "Advanced process management with graceful stop/start"
  38523. msgstr ""
  38524. #. type: item
  38525. #: guix-git/doc/guix.texi:25777
  38526. #, no-wrap
  38527. msgid "Ability to start workers with different uid/gid/chroot/environment"
  38528. msgstr ""
  38529. #. type: itemize
  38530. #: guix-git/doc/guix.texi:25779
  38531. msgid "and different php.ini (replaces safe_mode)"
  38532. msgstr ""
  38533. #. type: item
  38534. #: guix-git/doc/guix.texi:25779
  38535. #, no-wrap
  38536. msgid "Stdout & stderr logging"
  38537. msgstr ""
  38538. #. type: item
  38539. #: guix-git/doc/guix.texi:25780
  38540. #, no-wrap
  38541. msgid "Emergency restart in case of accidental opcode cache destruction"
  38542. msgstr ""
  38543. #. type: item
  38544. #: guix-git/doc/guix.texi:25781
  38545. #, no-wrap
  38546. msgid "Accelerated upload support"
  38547. msgstr ""
  38548. #. type: item
  38549. #: guix-git/doc/guix.texi:25782
  38550. #, no-wrap
  38551. msgid "Support for a \"slowlog\""
  38552. msgstr ""
  38553. #. type: item
  38554. #: guix-git/doc/guix.texi:25783
  38555. #, no-wrap
  38556. msgid "Enhancements to FastCGI, such as fastcgi_finish_request() -"
  38557. msgstr ""
  38558. #. type: itemize
  38559. #: guix-git/doc/guix.texi:25786
  38560. msgid "a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)"
  38561. msgstr ""
  38562. #. type: Plain text
  38563. #: guix-git/doc/guix.texi:25788
  38564. msgid "...@: and much more."
  38565. msgstr ""
  38566. #. type: defvr
  38567. #: guix-git/doc/guix.texi:25789
  38568. #, no-wrap
  38569. msgid "{Scheme Variable} php-fpm-service-type"
  38570. msgstr ""
  38571. #. type: defvr
  38572. #: guix-git/doc/guix.texi:25791
  38573. msgid "A Service type for @code{php-fpm}."
  38574. msgstr ""
  38575. #. type: deftp
  38576. #: guix-git/doc/guix.texi:25793
  38577. #, no-wrap
  38578. msgid "{Data Type} php-fpm-configuration"
  38579. msgstr ""
  38580. #. type: deftp
  38581. #: guix-git/doc/guix.texi:25795
  38582. msgid "Data Type for php-fpm service configuration."
  38583. msgstr ""
  38584. #. type: item
  38585. #: guix-git/doc/guix.texi:25796
  38586. #, no-wrap
  38587. msgid "@code{php} (default: @code{php})"
  38588. msgstr ""
  38589. #. type: table
  38590. #: guix-git/doc/guix.texi:25798
  38591. msgid "The php package to use."
  38592. msgstr ""
  38593. #. type: item
  38594. #: guix-git/doc/guix.texi:25798
  38595. #, no-wrap
  38596. msgid "@code{socket} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.sock\")})"
  38597. msgstr ""
  38598. #. type: table
  38599. #: guix-git/doc/guix.texi:25800
  38600. msgid "The address on which to accept FastCGI requests. Valid syntaxes are:"
  38601. msgstr ""
  38602. #. type: code{#1}
  38603. #: guix-git/doc/guix.texi:25801
  38604. #, no-wrap
  38605. msgid "\"ip.add.re.ss:port\""
  38606. msgstr ""
  38607. #. type: table
  38608. #: guix-git/doc/guix.texi:25803
  38609. msgid "Listen on a TCP socket to a specific address on a specific port."
  38610. msgstr ""
  38611. #. type: code{#1}
  38612. #: guix-git/doc/guix.texi:25803
  38613. #, no-wrap
  38614. msgid "\"port\""
  38615. msgstr ""
  38616. #. type: table
  38617. #: guix-git/doc/guix.texi:25805
  38618. msgid "Listen on a TCP socket to all addresses on a specific port."
  38619. msgstr ""
  38620. #. type: code{#1}
  38621. #: guix-git/doc/guix.texi:25805
  38622. #, no-wrap
  38623. msgid "\"/path/to/unix/socket\""
  38624. msgstr ""
  38625. #. type: table
  38626. #: guix-git/doc/guix.texi:25807
  38627. msgid "Listen on a unix socket."
  38628. msgstr ""
  38629. #. type: item
  38630. #: guix-git/doc/guix.texi:25809
  38631. #, no-wrap
  38632. msgid "@code{user} (default: @code{php-fpm})"
  38633. msgstr ""
  38634. #. type: table
  38635. #: guix-git/doc/guix.texi:25811
  38636. msgid "User who will own the php worker processes."
  38637. msgstr ""
  38638. #. type: item
  38639. #: guix-git/doc/guix.texi:25811
  38640. #, no-wrap
  38641. msgid "@code{group} (default: @code{php-fpm})"
  38642. msgstr ""
  38643. #. type: table
  38644. #: guix-git/doc/guix.texi:25813
  38645. msgid "Group of the worker processes."
  38646. msgstr ""
  38647. #. type: item
  38648. #: guix-git/doc/guix.texi:25813
  38649. #, no-wrap
  38650. msgid "@code{socket-user} (default: @code{php-fpm})"
  38651. msgstr ""
  38652. #. type: table
  38653. #: guix-git/doc/guix.texi:25815
  38654. msgid "User who can speak to the php-fpm socket."
  38655. msgstr ""
  38656. #. type: item
  38657. #: guix-git/doc/guix.texi:25815
  38658. #, fuzzy, no-wrap
  38659. msgid "@code{socket-group} (default: @code{nginx})"
  38660. msgstr "@code{gnome}(默认值:@code{gnome})"
  38661. #. type: table
  38662. #: guix-git/doc/guix.texi:25817
  38663. msgid "Group that can speak to the php-fpm socket."
  38664. msgstr ""
  38665. #. type: item
  38666. #: guix-git/doc/guix.texi:25817
  38667. #, no-wrap
  38668. msgid "@code{pid-file} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.pid\")})"
  38669. msgstr ""
  38670. #. type: table
  38671. #: guix-git/doc/guix.texi:25820
  38672. msgid "The process id of the php-fpm process is written to this file once the service has started."
  38673. msgstr ""
  38674. #. type: item
  38675. #: guix-git/doc/guix.texi:25820
  38676. #, no-wrap
  38677. msgid "@code{log-file} (default: @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.log\")})"
  38678. msgstr ""
  38679. #. type: table
  38680. #: guix-git/doc/guix.texi:25822
  38681. msgid "Log for the php-fpm master process."
  38682. msgstr ""
  38683. #. type: item
  38684. #: guix-git/doc/guix.texi:25822
  38685. #, no-wrap
  38686. msgid "@code{process-manager} (default: @code{(php-fpm-dynamic-process-manager-configuration)})"
  38687. msgstr ""
  38688. #. type: table
  38689. #: guix-git/doc/guix.texi:25825
  38690. msgid "Detailed settings for the php-fpm process manager. Must be one of:"
  38691. msgstr ""
  38692. #. type: code{#1}
  38693. #: guix-git/doc/guix.texi:25826
  38694. #, no-wrap
  38695. msgid "<php-fpm-dynamic-process-manager-configuration>"
  38696. msgstr ""
  38697. #. type: code{#1}
  38698. #: guix-git/doc/guix.texi:25827
  38699. #, no-wrap
  38700. msgid "<php-fpm-static-process-manager-configuration>"
  38701. msgstr ""
  38702. #. type: code{#1}
  38703. #: guix-git/doc/guix.texi:25828
  38704. #, no-wrap
  38705. msgid "<php-fpm-on-demand-process-manager-configuration>"
  38706. msgstr ""
  38707. #. type: item
  38708. #: guix-git/doc/guix.texi:25830
  38709. #, no-wrap
  38710. msgid "@code{display-errors} (default @code{#f})"
  38711. msgstr ""
  38712. #. type: table
  38713. #: guix-git/doc/guix.texi:25835
  38714. msgid "Determines whether php errors and warning should be sent to clients and displayed in their browsers. This is useful for local php development, but a security risk for public sites, as error messages can reveal passwords and personal data."
  38715. msgstr ""
  38716. #. type: item
  38717. #: guix-git/doc/guix.texi:25835
  38718. #, no-wrap
  38719. msgid "@code{timezone} (default @code{#f})"
  38720. msgstr ""
  38721. #. type: table
  38722. #: guix-git/doc/guix.texi:25837
  38723. msgid "Specifies @code{php_admin_value[date.timezone]} parameter."
  38724. msgstr ""
  38725. #. type: item
  38726. #: guix-git/doc/guix.texi:25837
  38727. #, no-wrap
  38728. msgid "@code{workers-logfile} (default @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.www.log\")})"
  38729. msgstr ""
  38730. #. type: table
  38731. #: guix-git/doc/guix.texi:25840
  38732. msgid "This file will log the @code{stderr} outputs of php worker processes. Can be set to @code{#f} to disable logging."
  38733. msgstr ""
  38734. #. type: item
  38735. #: guix-git/doc/guix.texi:25840
  38736. #, no-wrap
  38737. msgid "@code{file} (default @code{#f})"
  38738. msgstr ""
  38739. #. type: table
  38740. #: guix-git/doc/guix.texi:25843
  38741. msgid "An optional override of the whole configuration. You can use the @code{mixed-text-file} function or an absolute filepath for it."
  38742. msgstr ""
  38743. #. type: item
  38744. #: guix-git/doc/guix.texi:25843
  38745. #, fuzzy, no-wrap
  38746. msgid "@code{php-ini-file} (default @code{#f})"
  38747. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  38748. #. type: table
  38749. #: guix-git/doc/guix.texi:25847
  38750. msgid "An optional override of the default php settings. It may be any ``file-like'' object (@pxref{G-Expressions, file-like objects}). You can use the @code{mixed-text-file} function or an absolute filepath for it."
  38751. msgstr ""
  38752. #. type: table
  38753. #: guix-git/doc/guix.texi:25851
  38754. msgid "For local development it is useful to set a higher timeout and memory limit for spawned php processes. This be accomplished with the following operating system configuration snippet:"
  38755. msgstr ""
  38756. #. type: lisp
  38757. #: guix-git/doc/guix.texi:25856
  38758. #, no-wrap
  38759. msgid ""
  38760. "(define %local-php-ini\n"
  38761. " (plain-file \"php.ini\"\n"
  38762. " \"memory_limit = 2G\n"
  38763. "max_execution_time = 1800\"))\n"
  38764. "\n"
  38765. msgstr ""
  38766. #. type: lisp
  38767. #: guix-git/doc/guix.texi:25863
  38768. #, no-wrap
  38769. msgid ""
  38770. "(operating-system\n"
  38771. " ;; @dots{}\n"
  38772. " (services (cons (service php-fpm-service-type\n"
  38773. " (php-fpm-configuration\n"
  38774. " (php-ini-file %local-php-ini)))\n"
  38775. " %base-services)))\n"
  38776. msgstr ""
  38777. #. type: table
  38778. #: guix-git/doc/guix.texi:25868
  38779. msgid "Consult the @url{https://www.php.net/manual/en/ini.core.php,core php.ini directives} for comprehensive documentation on the acceptable @file{php.ini} directives."
  38780. msgstr ""
  38781. #. type: deftp
  38782. #: guix-git/doc/guix.texi:25871
  38783. #, no-wrap
  38784. msgid "{Data type} php-fpm-dynamic-process-manager-configuration"
  38785. msgstr ""
  38786. #. type: deftp
  38787. #: guix-git/doc/guix.texi:25875
  38788. msgid "Data Type for the @code{dynamic} php-fpm process manager. With the @code{dynamic} process manager, spare worker processes are kept around based on its configured limits."
  38789. msgstr ""
  38790. #. type: item
  38791. #: guix-git/doc/guix.texi:25876 guix-git/doc/guix.texi:25892
  38792. #: guix-git/doc/guix.texi:25902
  38793. #, no-wrap
  38794. msgid "@code{max-children} (default: @code{5})"
  38795. msgstr ""
  38796. #. type: table
  38797. #: guix-git/doc/guix.texi:25878 guix-git/doc/guix.texi:25894
  38798. #: guix-git/doc/guix.texi:25904
  38799. msgid "Maximum of worker processes."
  38800. msgstr ""
  38801. #. type: item
  38802. #: guix-git/doc/guix.texi:25878
  38803. #, no-wrap
  38804. msgid "@code{start-servers} (default: @code{2})"
  38805. msgstr ""
  38806. #. type: table
  38807. #: guix-git/doc/guix.texi:25880
  38808. msgid "How many worker processes should be started on start-up."
  38809. msgstr ""
  38810. #. type: item
  38811. #: guix-git/doc/guix.texi:25880
  38812. #, no-wrap
  38813. msgid "@code{min-spare-servers} (default: @code{1})"
  38814. msgstr ""
  38815. #. type: table
  38816. #: guix-git/doc/guix.texi:25882
  38817. msgid "How many spare worker processes should be kept around at minimum."
  38818. msgstr ""
  38819. #. type: item
  38820. #: guix-git/doc/guix.texi:25882
  38821. #, no-wrap
  38822. msgid "@code{max-spare-servers} (default: @code{3})"
  38823. msgstr ""
  38824. #. type: table
  38825. #: guix-git/doc/guix.texi:25884
  38826. msgid "How many spare worker processes should be kept around at maximum."
  38827. msgstr ""
  38828. #. type: deftp
  38829. #: guix-git/doc/guix.texi:25887
  38830. #, no-wrap
  38831. msgid "{Data type} php-fpm-static-process-manager-configuration"
  38832. msgstr ""
  38833. #. type: deftp
  38834. #: guix-git/doc/guix.texi:25891
  38835. msgid "Data Type for the @code{static} php-fpm process manager. With the @code{static} process manager, an unchanging number of worker processes are created."
  38836. msgstr ""
  38837. #. type: deftp
  38838. #: guix-git/doc/guix.texi:25897
  38839. #, no-wrap
  38840. msgid "{Data type} php-fpm-on-demand-process-manager-configuration"
  38841. msgstr ""
  38842. #. type: deftp
  38843. #: guix-git/doc/guix.texi:25901
  38844. msgid "Data Type for the @code{on-demand} php-fpm process manager. With the @code{on-demand} process manager, worker processes are only created as requests arrive."
  38845. msgstr ""
  38846. #. type: item
  38847. #: guix-git/doc/guix.texi:25904
  38848. #, no-wrap
  38849. msgid "@code{process-idle-timeout} (default: @code{10})"
  38850. msgstr ""
  38851. #. type: table
  38852. #: guix-git/doc/guix.texi:25906
  38853. msgid "The time in seconds after which a process with no requests is killed."
  38854. msgstr ""
  38855. #. type: deffn
  38856. #: guix-git/doc/guix.texi:25910
  38857. #, no-wrap
  38858. msgid "{Scheme Procedure} nginx-php-location @"
  38859. msgstr ""
  38860. #. type: deffn
  38861. #: guix-git/doc/guix.texi:25916
  38862. msgid "[#:nginx-package nginx] @ [socket (string-append \"/var/run/php\" @ (version-major (package-version php)) @ \"-fpm.sock\")] A helper function to quickly add php to an @code{nginx-server-configuration}."
  38863. msgstr ""
  38864. #. type: Plain text
  38865. #: guix-git/doc/guix.texi:25919
  38866. msgid "A simple services setup for nginx with php can look like this:"
  38867. msgstr ""
  38868. #. type: lisp
  38869. #: guix-git/doc/guix.texi:25932
  38870. #, no-wrap
  38871. msgid ""
  38872. "(services (cons* (service dhcp-client-service-type)\n"
  38873. " (service php-fpm-service-type)\n"
  38874. " (service nginx-service-type\n"
  38875. " (nginx-server-configuration\n"
  38876. " (server-name '(\"example.com\"))\n"
  38877. " (root \"/srv/http/\")\n"
  38878. " (locations\n"
  38879. " (list (nginx-php-location)))\n"
  38880. " (listen '(\"80\"))\n"
  38881. " (ssl-certificate #f)\n"
  38882. " (ssl-certificate-key #f)))\n"
  38883. " %base-services))\n"
  38884. msgstr ""
  38885. #. type: cindex
  38886. #: guix-git/doc/guix.texi:25934
  38887. #, no-wrap
  38888. msgid "cat-avatar-generator"
  38889. msgstr ""
  38890. #. type: Plain text
  38891. #: guix-git/doc/guix.texi:25938
  38892. msgid "The cat avatar generator is a simple service to demonstrate the use of php-fpm in @code{Nginx}. It is used to generate cat avatar from a seed, for instance the hash of a user's email address."
  38893. msgstr ""
  38894. #. type: deffn
  38895. #: guix-git/doc/guix.texi:25939
  38896. #, no-wrap
  38897. msgid "{Scheme Procedure} cat-avatar-generator-service @"
  38898. msgstr ""
  38899. #. type: deffn
  38900. #: guix-git/doc/guix.texi:25947
  38901. msgid "[#:cache-dir \"/var/cache/cat-avatar-generator\"] @ [#:package cat-avatar-generator] @ [#:configuration (nginx-server-configuration)] Returns an nginx-server-configuration that inherits @code{configuration}. It extends the nginx configuration to add a server block that serves @code{package}, a version of cat-avatar-generator. During execution, cat-avatar-generator will be able to use @code{cache-dir} as its cache directory."
  38902. msgstr ""
  38903. #. type: Plain text
  38904. #: guix-git/doc/guix.texi:25950
  38905. msgid "A simple setup for cat-avatar-generator can look like this:"
  38906. msgstr ""
  38907. #. type: lisp
  38908. #: guix-git/doc/guix.texi:25957
  38909. #, no-wrap
  38910. msgid ""
  38911. "(services (cons* (cat-avatar-generator-service\n"
  38912. " #:configuration\n"
  38913. " (nginx-server-configuration\n"
  38914. " (server-name '(\"example.com\"))))\n"
  38915. " ...\n"
  38916. " %base-services))\n"
  38917. msgstr ""
  38918. #. type: subsubheading
  38919. #: guix-git/doc/guix.texi:25959
  38920. #, no-wrap
  38921. msgid "Hpcguix-web"
  38922. msgstr ""
  38923. #. type: cindex
  38924. #: guix-git/doc/guix.texi:25961
  38925. #, no-wrap
  38926. msgid "hpcguix-web"
  38927. msgstr ""
  38928. #. type: Plain text
  38929. #: guix-git/doc/guix.texi:25966
  38930. msgid "The @uref{https://github.com/UMCUGenetics/hpcguix-web/, hpcguix-web} program is a customizable web interface to browse Guix packages, initially designed for users of high-performance computing (HPC) clusters."
  38931. msgstr ""
  38932. #. type: defvr
  38933. #: guix-git/doc/guix.texi:25967
  38934. #, no-wrap
  38935. msgid "{Scheme Variable} hpcguix-web-service-type"
  38936. msgstr ""
  38937. #. type: defvr
  38938. #: guix-git/doc/guix.texi:25969
  38939. msgid "The service type for @code{hpcguix-web}."
  38940. msgstr ""
  38941. #. type: deftp
  38942. #: guix-git/doc/guix.texi:25971
  38943. #, no-wrap
  38944. msgid "{Data Type} hpcguix-web-configuration"
  38945. msgstr ""
  38946. #. type: deftp
  38947. #: guix-git/doc/guix.texi:25973
  38948. msgid "Data type for the hpcguix-web service configuration."
  38949. msgstr ""
  38950. #. type: code{#1}
  38951. #: guix-git/doc/guix.texi:25975
  38952. #, no-wrap
  38953. msgid "specs"
  38954. msgstr ""
  38955. #. type: table
  38956. #: guix-git/doc/guix.texi:25978
  38957. msgid "A gexp (@pxref{G-Expressions}) specifying the hpcguix-web service configuration. The main items available in this spec are:"
  38958. msgstr ""
  38959. #. type: item
  38960. #: guix-git/doc/guix.texi:25980
  38961. #, no-wrap
  38962. msgid "@code{title-prefix} (default: @code{\"hpcguix | \"})"
  38963. msgstr ""
  38964. #. type: table
  38965. #: guix-git/doc/guix.texi:25982
  38966. msgid "The page title prefix."
  38967. msgstr ""
  38968. #. type: item
  38969. #: guix-git/doc/guix.texi:25983
  38970. #, no-wrap
  38971. msgid "@code{guix-command} (default: @code{\"guix\"})"
  38972. msgstr ""
  38973. #. type: table
  38974. #: guix-git/doc/guix.texi:25985
  38975. msgid "The @command{guix} command."
  38976. msgstr ""
  38977. #. type: item
  38978. #: guix-git/doc/guix.texi:25986
  38979. #, no-wrap
  38980. msgid "@code{package-filter-proc} (default: @code{(const #t)})"
  38981. msgstr ""
  38982. #. type: table
  38983. #: guix-git/doc/guix.texi:25988
  38984. msgid "A procedure specifying how to filter packages that are displayed."
  38985. msgstr ""
  38986. #. type: item
  38987. #: guix-git/doc/guix.texi:25989
  38988. #, no-wrap
  38989. msgid "@code{package-page-extension-proc} (default: @code{(const '())})"
  38990. msgstr ""
  38991. #. type: table
  38992. #: guix-git/doc/guix.texi:25991
  38993. msgid "Extension package for @code{hpcguix-web}."
  38994. msgstr ""
  38995. #. type: item
  38996. #: guix-git/doc/guix.texi:25992
  38997. #, no-wrap
  38998. msgid "@code{menu} (default: @code{'()})"
  38999. msgstr ""
  39000. #. type: table
  39001. #: guix-git/doc/guix.texi:25994
  39002. msgid "Additional entry in page @code{menu}."
  39003. msgstr ""
  39004. #. type: item
  39005. #: guix-git/doc/guix.texi:25995
  39006. #, no-wrap
  39007. msgid "@code{channels} (default: @code{%default-channels})"
  39008. msgstr ""
  39009. #. type: table
  39010. #: guix-git/doc/guix.texi:25997
  39011. msgid "List of channels from which the package list is built (@pxref{Channels})."
  39012. msgstr ""
  39013. #. type: item
  39014. #: guix-git/doc/guix.texi:25998
  39015. #, no-wrap
  39016. msgid "@code{package-list-expiration} (default: @code{(* 12 3600)})"
  39017. msgstr ""
  39018. #. type: table
  39019. #: guix-git/doc/guix.texi:26001
  39020. msgid "The expiration time, in seconds, after which the package list is rebuilt from the latest instances of the given channels."
  39021. msgstr ""
  39022. #. type: table
  39023. #: guix-git/doc/guix.texi:26006
  39024. msgid "See the hpcguix-web repository for a @uref{https://github.com/UMCUGenetics/hpcguix-web/blob/master/hpcweb-configuration.scm, complete example}."
  39025. msgstr ""
  39026. #. type: item
  39027. #: guix-git/doc/guix.texi:26007
  39028. #, no-wrap
  39029. msgid "@code{package} (default: @code{hpcguix-web})"
  39030. msgstr ""
  39031. #. type: table
  39032. #: guix-git/doc/guix.texi:26009
  39033. msgid "The hpcguix-web package to use."
  39034. msgstr ""
  39035. #. type: Plain text
  39036. #: guix-git/doc/guix.texi:26013
  39037. msgid "A typical hpcguix-web service declaration looks like this:"
  39038. msgstr ""
  39039. #. type: lisp
  39040. #: guix-git/doc/guix.texi:26022
  39041. #, no-wrap
  39042. msgid ""
  39043. "(service hpcguix-web-service-type\n"
  39044. " (hpcguix-web-configuration\n"
  39045. " (specs\n"
  39046. " #~(define site-config\n"
  39047. " (hpcweb-configuration\n"
  39048. " (title-prefix \"Guix-HPC - \")\n"
  39049. " (menu '((\"/about\" \"ABOUT\"))))))))\n"
  39050. msgstr ""
  39051. #. type: quotation
  39052. #: guix-git/doc/guix.texi:26029
  39053. msgid "The hpcguix-web service periodically updates the package list it publishes by pulling channels from Git. To that end, it needs to access X.509 certificates so that it can authenticate Git servers when communicating over HTTPS, and it assumes that @file{/etc/ssl/certs} contains those certificates."
  39054. msgstr ""
  39055. #. type: quotation
  39056. #: guix-git/doc/guix.texi:26033
  39057. msgid "Thus, make sure to add @code{nss-certs} or another certificate package to the @code{packages} field of your configuration. @ref{X.509 Certificates}, for more information on X.509 certificates."
  39058. msgstr ""
  39059. #. type: cindex
  39060. #: guix-git/doc/guix.texi:26035 guix-git/doc/guix.texi:26037
  39061. #, no-wrap
  39062. msgid "gmnisrv"
  39063. msgstr ""
  39064. #. type: Plain text
  39065. #: guix-git/doc/guix.texi:26040
  39066. msgid "The @uref{https://git.sr.ht/~sircmpwn/gmnisrv, gmnisrv} program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server."
  39067. msgstr ""
  39068. #. type: deffn
  39069. #: guix-git/doc/guix.texi:26041
  39070. #, no-wrap
  39071. msgid "{Scheme Variable} gmnisrv-service-type"
  39072. msgstr ""
  39073. #. type: deffn
  39074. #: guix-git/doc/guix.texi:26044
  39075. msgid "This is the type of the gmnisrv service, whose value should be a @code{gmnisrv-configuration} object, as in this example:"
  39076. msgstr ""
  39077. #. type: lisp
  39078. #: guix-git/doc/guix.texi:26049
  39079. #, no-wrap
  39080. msgid ""
  39081. "(service gmnisrv-service-type\n"
  39082. " (gmnisrv-configuration\n"
  39083. " (config-file (local-file \"./my-gmnisrv.ini\"))))\n"
  39084. msgstr ""
  39085. #. type: deftp
  39086. #: guix-git/doc/guix.texi:26052
  39087. #, no-wrap
  39088. msgid "{Data Type} gmnisrv-configuration"
  39089. msgstr ""
  39090. #. type: deftp
  39091. #: guix-git/doc/guix.texi:26054
  39092. #, fuzzy
  39093. msgid "Data type representing the configuration of gmnisrv."
  39094. msgstr "管理操作系统配置。"
  39095. #. type: item
  39096. #: guix-git/doc/guix.texi:26056
  39097. #, fuzzy, no-wrap
  39098. msgid "@code{package} (default: @var{gmnisrv})"
  39099. msgstr "@code{gnome}(默认值:@code{gnome})"
  39100. #. type: table
  39101. #: guix-git/doc/guix.texi:26058
  39102. msgid "Package object of the gmnisrv server."
  39103. msgstr ""
  39104. #. type: item
  39105. #: guix-git/doc/guix.texi:26059
  39106. #, fuzzy, no-wrap
  39107. msgid "@code{config-file} (default: @code{%default-gmnisrv-config-file})"
  39108. msgstr "@code{gnome}(默认值:@code{gnome})"
  39109. #. type: table
  39110. #: guix-git/doc/guix.texi:26065
  39111. msgid "File-like object of the gmnisrv configuration file to use. The default configuration listens on port 1965 and serves files from @file{/srv/gemini}. Certificates are stored in @file{/var/lib/gemini/certs}. For more information, run @command{man gmnisrv} and @command{man gmnisrv.ini}."
  39112. msgstr ""
  39113. #. type: subsubheading
  39114. #: guix-git/doc/guix.texi:26069
  39115. #, no-wrap
  39116. msgid "Agate"
  39117. msgstr ""
  39118. #. type: cindex
  39119. #: guix-git/doc/guix.texi:26071
  39120. #, no-wrap
  39121. msgid "agate"
  39122. msgstr ""
  39123. #. type: Plain text
  39124. #: guix-git/doc/guix.texi:26076
  39125. msgid "The @uref{gemini://qwertqwefsday.eu/agate.gmi, Agate} (@uref{https://github.com/mbrubeck/agate, GitHub page over HTTPS}) program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server written in Rust."
  39126. msgstr ""
  39127. #. type: deffn
  39128. #: guix-git/doc/guix.texi:26077
  39129. #, no-wrap
  39130. msgid "{Scheme Variable} agate-service-type"
  39131. msgstr ""
  39132. #. type: deffn
  39133. #: guix-git/doc/guix.texi:26080
  39134. msgid "This is the type of the agate service, whose value should be an @code{agate-service-type} object, as in this example:"
  39135. msgstr ""
  39136. #. type: lisp
  39137. #: guix-git/doc/guix.texi:26087
  39138. #, no-wrap
  39139. msgid ""
  39140. "(service agate-service-type\n"
  39141. "\t (agate-configuration\n"
  39142. "\t (content \"/srv/gemini\")\n"
  39143. "\t (cert \"/srv/cert.pem\")\n"
  39144. "\t (key \"/srv/key.rsa\")))\n"
  39145. msgstr ""
  39146. #. type: deffn
  39147. #: guix-git/doc/guix.texi:26092
  39148. msgid "The example above represents the minimal tweaking necessary to get Agate up and running. Specifying the path to the certificate and key is always necessary, as the Gemini protocol requires TLS by default."
  39149. msgstr ""
  39150. #. type: deffn
  39151. #: guix-git/doc/guix.texi:26095
  39152. msgid "To obtain a certificate and a key, you could, for example, use OpenSSL, running a command similar to the following example:"
  39153. msgstr ""
  39154. #. type: example
  39155. #: guix-git/doc/guix.texi:26099
  39156. #, no-wrap
  39157. msgid ""
  39158. "openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \\\n"
  39159. " -days 3650 -nodes -subj \"/CN=example.com\"\n"
  39160. msgstr ""
  39161. #. type: deffn
  39162. #: guix-git/doc/guix.texi:26104
  39163. msgid "Of course, you'll have to replace @i{example.com} with your own domain name, and then point the Agate configuration towards the path of the generated key and certificate."
  39164. msgstr ""
  39165. #. type: deftp
  39166. #: guix-git/doc/guix.texi:26107
  39167. #, fuzzy, no-wrap
  39168. msgid "{Data Type} agate-configuration"
  39169. msgstr "管理操作系统配置。"
  39170. #. type: deftp
  39171. #: guix-git/doc/guix.texi:26109
  39172. #, fuzzy
  39173. msgid "Data type representing the configuration of Agate."
  39174. msgstr "管理操作系统配置。"
  39175. #. type: item
  39176. #: guix-git/doc/guix.texi:26111
  39177. #, fuzzy, no-wrap
  39178. msgid "@code{package} (default: @code{agate})"
  39179. msgstr "@code{mate}(默认值:@code{mate})"
  39180. #. type: table
  39181. #: guix-git/doc/guix.texi:26113
  39182. #, fuzzy
  39183. msgid "The package object of the Agate server."
  39184. msgstr "软件包数据类型。"
  39185. #. type: item
  39186. #: guix-git/doc/guix.texi:26114
  39187. #, fuzzy, no-wrap
  39188. msgid "@code{content} (default: @file{\"/srv/gemini\"})"
  39189. msgstr "@code{mate}(默认值:@code{mate})"
  39190. #. type: table
  39191. #: guix-git/doc/guix.texi:26116
  39192. msgid "The directory from which Agate will serve files."
  39193. msgstr ""
  39194. #. type: item
  39195. #: guix-git/doc/guix.texi:26117
  39196. #, fuzzy, no-wrap
  39197. msgid "@code{cert} (default: @code{#f})"
  39198. msgstr "@code{port}(默认值:@code{22})"
  39199. #. type: table
  39200. #: guix-git/doc/guix.texi:26120
  39201. msgid "The path to the TLS certificate PEM file to be used for encrypted connections. Must be filled in with a value from the user."
  39202. msgstr ""
  39203. #. type: item
  39204. #: guix-git/doc/guix.texi:26121 guix-git/doc/guix.texi:26557
  39205. #, no-wrap
  39206. msgid "@code{key} (default: @code{#f})"
  39207. msgstr ""
  39208. #. type: table
  39209. #: guix-git/doc/guix.texi:26124
  39210. msgid "The path to the PKCS8 private key file to be used for encrypted connections. Must be filled in with a value from the user."
  39211. msgstr ""
  39212. #. type: item
  39213. #: guix-git/doc/guix.texi:26125
  39214. #, fuzzy, no-wrap
  39215. msgid "@code{addr} (default: @code{'(\"0.0.0.0:1965\" \"[::]:1965\")})"
  39216. msgstr "@code{display}(默认值:@code{\":0\"})"
  39217. #. type: table
  39218. #: guix-git/doc/guix.texi:26127
  39219. msgid "A list of the addresses to listen on."
  39220. msgstr ""
  39221. #. type: table
  39222. #: guix-git/doc/guix.texi:26130
  39223. msgid "The domain name of this Gemini server. Optional."
  39224. msgstr ""
  39225. #. type: item
  39226. #: guix-git/doc/guix.texi:26131
  39227. #, fuzzy, no-wrap
  39228. msgid "@code{lang} (default: @code{#f})"
  39229. msgstr "@code{challenge}(默认值:@code{#f})"
  39230. #. type: table
  39231. #: guix-git/doc/guix.texi:26133
  39232. msgid "RFC 4646 language code(s) for text/gemini documents. Optional."
  39233. msgstr ""
  39234. #. type: item
  39235. #: guix-git/doc/guix.texi:26134
  39236. #, fuzzy, no-wrap
  39237. msgid "@code{silent?} (default: @code{#f})"
  39238. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39239. #. type: table
  39240. #: guix-git/doc/guix.texi:26136
  39241. msgid "Set to @code{#t} to disable logging output."
  39242. msgstr ""
  39243. #. type: item
  39244. #: guix-git/doc/guix.texi:26137
  39245. #, fuzzy, no-wrap
  39246. msgid "@code{serve-secret?} (default: @code{#f})"
  39247. msgstr "@code{speed}(默认值:@code{1.0})"
  39248. #. type: table
  39249. #: guix-git/doc/guix.texi:26140
  39250. msgid "Set to @code{#t} to serve secret files (files/directories starting with a dot)."
  39251. msgstr ""
  39252. #. type: item
  39253. #: guix-git/doc/guix.texi:26141
  39254. #, fuzzy, no-wrap
  39255. msgid "@code{log-ip?} (default: @code{#t})"
  39256. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39257. #. type: table
  39258. #: guix-git/doc/guix.texi:26143
  39259. msgid "Whether or not to output IP addresses when logging."
  39260. msgstr ""
  39261. #. type: item
  39262. #: guix-git/doc/guix.texi:26144
  39263. #, fuzzy, no-wrap
  39264. msgid "@code{user} (default: @code{\"agate\"})"
  39265. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  39266. #. type: table
  39267. #: guix-git/doc/guix.texi:26146
  39268. msgid "Owner of the @code{agate} process."
  39269. msgstr ""
  39270. #. type: item
  39271. #: guix-git/doc/guix.texi:26147
  39272. #, fuzzy, no-wrap
  39273. msgid "@code{group} (default: @code{\"agate\"})"
  39274. msgstr "@code{gnome}(默认值:@code{gnome})"
  39275. #. type: table
  39276. #: guix-git/doc/guix.texi:26149
  39277. msgid "Owner's group of the @code{agate} process."
  39278. msgstr ""
  39279. #. type: item
  39280. #: guix-git/doc/guix.texi:26150
  39281. #, fuzzy, no-wrap
  39282. msgid "@code{log-file} (default: @file{\"/var/log/agate.log\"})"
  39283. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  39284. #. type: table
  39285. #: guix-git/doc/guix.texi:26152
  39286. msgid "The file which should store the logging output of Agate."
  39287. msgstr ""
  39288. #. type: cindex
  39289. #: guix-git/doc/guix.texi:26159
  39290. #, no-wrap
  39291. msgid "Web"
  39292. msgstr ""
  39293. #. type: cindex
  39294. #: guix-git/doc/guix.texi:26160
  39295. #, no-wrap
  39296. msgid "HTTP, HTTPS"
  39297. msgstr ""
  39298. #. type: cindex
  39299. #: guix-git/doc/guix.texi:26161
  39300. #, no-wrap
  39301. msgid "Let's Encrypt"
  39302. msgstr ""
  39303. #. type: cindex
  39304. #: guix-git/doc/guix.texi:26162
  39305. #, no-wrap
  39306. msgid "TLS certificates"
  39307. msgstr ""
  39308. #. type: Plain text
  39309. #: guix-git/doc/guix.texi:26169
  39310. msgid "The @code{(gnu services certbot)} module provides a service to automatically obtain a valid TLS certificate from the Let's Encrypt certificate authority. These certificates can then be used to serve content securely over HTTPS or other TLS-based protocols, with the knowledge that the client will be able to verify the server's authenticity."
  39311. msgstr ""
  39312. #. type: Plain text
  39313. #: guix-git/doc/guix.texi:26181
  39314. msgid "@url{https://letsencrypt.org/, Let's Encrypt} provides the @code{certbot} tool to automate the certification process. This tool first securely generates a key on the server. It then makes a request to the Let's Encrypt certificate authority (CA) to sign the key. The CA checks that the request originates from the host in question by using a challenge-response protocol, requiring the server to provide its response over HTTP@. If that protocol completes successfully, the CA signs the key, resulting in a certificate. That certificate is valid for a limited period of time, and therefore to continue to provide TLS services, the server needs to periodically ask the CA to renew its signature."
  39315. msgstr ""
  39316. #. type: Plain text
  39317. #: guix-git/doc/guix.texi:26188
  39318. msgid "The certbot service automates this process: the initial key generation, the initial certification request to the Let's Encrypt service, the web server challenge/response integration, writing the certificate to disk, the automated periodic renewals, and the deployment tasks associated with the renewal (e.g.@: reloading services, copying keys with different permissions)."
  39319. msgstr ""
  39320. #. type: Plain text
  39321. #: guix-git/doc/guix.texi:26194
  39322. msgid "Certbot is run twice a day, at a random minute within the hour. It won't do anything until your certificates are due for renewal or revoked, but running it regularly would give your service a chance of staying online in case a Let's Encrypt-initiated revocation happened for some reason."
  39323. msgstr ""
  39324. #. type: Plain text
  39325. #: guix-git/doc/guix.texi:26198
  39326. msgid "By using this service, you agree to the ACME Subscriber Agreement, which can be found there: @url{https://acme-v01.api.letsencrypt.org/directory}."
  39327. msgstr ""
  39328. #. type: defvr
  39329. #: guix-git/doc/guix.texi:26199
  39330. #, no-wrap
  39331. msgid "{Scheme Variable} certbot-service-type"
  39332. msgstr ""
  39333. #. type: defvr
  39334. #: guix-git/doc/guix.texi:26202
  39335. msgid "A service type for the @code{certbot} Let's Encrypt client. Its value must be a @code{certbot-configuration} record as in this example:"
  39336. msgstr ""
  39337. #. type: lisp
  39338. #: guix-git/doc/guix.texi:26209
  39339. #, no-wrap
  39340. msgid ""
  39341. "(define %nginx-deploy-hook\n"
  39342. " (program-file\n"
  39343. " \"nginx-deploy-hook\"\n"
  39344. " #~(let ((pid (call-with-input-file \"/var/run/nginx/pid\" read)))\n"
  39345. " (kill pid SIGHUP))))\n"
  39346. "\n"
  39347. msgstr ""
  39348. #. type: lisp
  39349. #: guix-git/doc/guix.texi:26220
  39350. #, no-wrap
  39351. msgid ""
  39352. "(service certbot-service-type\n"
  39353. " (certbot-configuration\n"
  39354. " (email \"foo@@example.net\")\n"
  39355. " (certificates\n"
  39356. " (list\n"
  39357. " (certificate-configuration\n"
  39358. " (domains '(\"example.net\" \"www.example.net\"))\n"
  39359. " (deploy-hook %nginx-deploy-hook))\n"
  39360. " (certificate-configuration\n"
  39361. " (domains '(\"bar.example.net\")))))))\n"
  39362. msgstr ""
  39363. #. type: defvr
  39364. #: guix-git/doc/guix.texi:26223
  39365. msgid "See below for details about @code{certbot-configuration}."
  39366. msgstr ""
  39367. #. type: deftp
  39368. #: guix-git/doc/guix.texi:26225
  39369. #, no-wrap
  39370. msgid "{Data Type} certbot-configuration"
  39371. msgstr ""
  39372. #. type: deftp
  39373. #: guix-git/doc/guix.texi:26228
  39374. msgid "Data type representing the configuration of the @code{certbot} service. This type has the following parameters:"
  39375. msgstr ""
  39376. #. type: item
  39377. #: guix-git/doc/guix.texi:26230
  39378. #, no-wrap
  39379. msgid "@code{package} (default: @code{certbot})"
  39380. msgstr ""
  39381. #. type: table
  39382. #: guix-git/doc/guix.texi:26232
  39383. msgid "The certbot package to use."
  39384. msgstr ""
  39385. #. type: item
  39386. #: guix-git/doc/guix.texi:26233
  39387. #, no-wrap
  39388. msgid "@code{webroot} (default: @code{/var/www})"
  39389. msgstr ""
  39390. #. type: table
  39391. #: guix-git/doc/guix.texi:26236
  39392. msgid "The directory from which to serve the Let's Encrypt challenge/response files."
  39393. msgstr ""
  39394. #. type: item
  39395. #: guix-git/doc/guix.texi:26237
  39396. #, no-wrap
  39397. msgid "@code{certificates} (default: @code{()})"
  39398. msgstr ""
  39399. #. type: table
  39400. #: guix-git/doc/guix.texi:26241
  39401. msgid "A list of @code{certificates-configuration}s for which to generate certificates and request signatures. Each certificate has a @code{name} and several @code{domains}."
  39402. msgstr ""
  39403. #. type: item
  39404. #: guix-git/doc/guix.texi:26242
  39405. #, fuzzy, no-wrap
  39406. msgid "@code{email} (default: @code{#f})"
  39407. msgstr "@code{challenge}(默认值:@code{#f})"
  39408. #. type: table
  39409. #: guix-git/doc/guix.texi:26246
  39410. msgid "Optional email address used for registration and recovery contact. Setting this is encouraged as it allows you to receive important notifications about the account and issued certificates."
  39411. msgstr ""
  39412. #. type: item
  39413. #: guix-git/doc/guix.texi:26247 guix-git/doc/guix.texi:27991
  39414. #, fuzzy, no-wrap
  39415. msgid "@code{server} (default: @code{#f})"
  39416. msgstr "@code{speed}(默认值:@code{1.0})"
  39417. #. type: table
  39418. #: guix-git/doc/guix.texi:26250
  39419. msgid "Optional URL of ACME server. Setting this overrides certbot's default, which is the Let's Encrypt server."
  39420. msgstr ""
  39421. #. type: item
  39422. #: guix-git/doc/guix.texi:26251
  39423. #, no-wrap
  39424. msgid "@code{rsa-key-size} (default: @code{2048})"
  39425. msgstr ""
  39426. #. type: table
  39427. #: guix-git/doc/guix.texi:26253
  39428. msgid "Size of the RSA key."
  39429. msgstr ""
  39430. #. type: item
  39431. #: guix-git/doc/guix.texi:26254
  39432. #, no-wrap
  39433. msgid "@code{default-location} (default: @i{see below})"
  39434. msgstr ""
  39435. #. type: table
  39436. #: guix-git/doc/guix.texi:26263
  39437. msgid "The default @code{nginx-location-configuration}. Because @code{certbot} needs to be able to serve challenges and responses, it needs to be able to run a web server. It does so by extending the @code{nginx} web service with an @code{nginx-server-configuration} listening on the @var{domains} on port 80, and which has a @code{nginx-location-configuration} for the @code{/.well-known/} URI path subspace used by Let's Encrypt. @xref{Web Services}, for more on these nginx configuration data types."
  39438. msgstr ""
  39439. #. type: table
  39440. #: guix-git/doc/guix.texi:26267
  39441. msgid "Requests to other URL paths will be matched by the @code{default-location}, which if present is added to all @code{nginx-server-configuration}s."
  39442. msgstr ""
  39443. #. type: table
  39444. #: guix-git/doc/guix.texi:26271
  39445. msgid "By default, the @code{default-location} will issue a redirect from @code{http://@var{domain}/...} to @code{https://@var{domain}/...}, leaving you to define what to serve on your site via @code{https}."
  39446. msgstr ""
  39447. #. type: table
  39448. #: guix-git/doc/guix.texi:26273
  39449. msgid "Pass @code{#f} to not issue a default location."
  39450. msgstr ""
  39451. #. type: deftp
  39452. #: guix-git/doc/guix.texi:26276
  39453. #, no-wrap
  39454. msgid "{Data Type} certificate-configuration"
  39455. msgstr ""
  39456. #. type: deftp
  39457. #: guix-git/doc/guix.texi:26279
  39458. msgid "Data type representing the configuration of a certificate. This type has the following parameters:"
  39459. msgstr ""
  39460. #. type: item
  39461. #: guix-git/doc/guix.texi:26281
  39462. #, no-wrap
  39463. msgid "@code{name} (default: @i{see below})"
  39464. msgstr ""
  39465. #. type: table
  39466. #: guix-git/doc/guix.texi:26285
  39467. msgid "This name is used by Certbot for housekeeping and in file paths; it doesn't affect the content of the certificate itself. To see certificate names, run @code{certbot certificates}."
  39468. msgstr ""
  39469. #. type: table
  39470. #: guix-git/doc/guix.texi:26287
  39471. msgid "Its default is the first provided domain."
  39472. msgstr ""
  39473. #. type: item
  39474. #: guix-git/doc/guix.texi:26288
  39475. #, no-wrap
  39476. msgid "@code{domains} (default: @code{()})"
  39477. msgstr ""
  39478. #. type: table
  39479. #: guix-git/doc/guix.texi:26291
  39480. msgid "The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate."
  39481. msgstr ""
  39482. #. type: item
  39483. #: guix-git/doc/guix.texi:26292
  39484. #, no-wrap
  39485. msgid "@code{challenge} (default: @code{#f})"
  39486. msgstr "@code{challenge}(默认值:@code{#f})"
  39487. #. type: table
  39488. #: guix-git/doc/guix.texi:26299
  39489. msgid "The challenge type that has to be run by certbot. If @code{#f} is specified, default to the HTTP challenge. If a value is specified, defaults to the manual plugin (see @code{authentication-hook}, @code{cleanup-hook} and the documentation at @url{https://certbot.eff.org/docs/using.html#hooks}), and gives Let's Encrypt permission to log the public IP address of the requesting machine."
  39490. msgstr ""
  39491. #. type: item
  39492. #: guix-git/doc/guix.texi:26300
  39493. #, fuzzy, no-wrap
  39494. msgid "@code{csr} (default: @code{#f})"
  39495. msgstr "@code{port}(默认值:@code{22})"
  39496. #. type: table
  39497. #: guix-git/doc/guix.texi:26307
  39498. msgid "File name of Certificate Signing Request (CSR) in DER or PEM format. If @code{#f} is specified, this argument will not be passed to certbot. If a value is specified, certbot will use it to obtain a certificate, instead of using a self-generated CSR. The domain-name(s) mentioned in @code{domains}, must be consistent with the domain-name(s) mentioned in CSR file."
  39499. msgstr ""
  39500. #. type: item
  39501. #: guix-git/doc/guix.texi:26308
  39502. #, no-wrap
  39503. msgid "@code{authentication-hook} (default: @code{#f})"
  39504. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  39505. #. type: table
  39506. #: guix-git/doc/guix.texi:26314
  39507. msgid "Command to be run in a shell once for each certificate challenge to be answered. For this command, the shell variable @code{$CERTBOT_DOMAIN} will contain the domain being authenticated, @code{$CERTBOT_VALIDATION} contains the validation string and @code{$CERTBOT_TOKEN} contains the file name of the resource requested when performing an HTTP-01 challenge."
  39508. msgstr ""
  39509. #. type: item
  39510. #: guix-git/doc/guix.texi:26315
  39511. #, no-wrap
  39512. msgid "@code{cleanup-hook} (default: @code{#f})"
  39513. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  39514. #. type: table
  39515. #: guix-git/doc/guix.texi:26321
  39516. msgid "Command to be run in a shell once for each certificate challenge that have been answered by the @code{auth-hook}. For this command, the shell variables available in the @code{auth-hook} script are still available, and additionally @code{$CERTBOT_AUTH_OUTPUT} will contain the standard output of the @code{auth-hook} script."
  39517. msgstr ""
  39518. #. type: item
  39519. #: guix-git/doc/guix.texi:26322
  39520. #, no-wrap
  39521. msgid "@code{deploy-hook} (default: @code{#f})"
  39522. msgstr ""
  39523. #. type: table
  39524. #: guix-git/doc/guix.texi:26330
  39525. msgid "Command to be run in a shell once for each successfully issued certificate. For this command, the shell variable @code{$RENEWED_LINEAGE} will point to the config live subdirectory (for example, @samp{\"/etc/letsencrypt/live/example.com\"}) containing the new certificates and keys; the shell variable @code{$RENEWED_DOMAINS} will contain a space-delimited list of renewed certificate domains (for example, @samp{\"example.com www.example.com\"}."
  39526. msgstr ""
  39527. #. type: Plain text
  39528. #: guix-git/doc/guix.texi:26337
  39529. msgid "For each @code{certificate-configuration}, the certificate is saved to @code{/etc/letsencrypt/live/@var{name}/fullchain.pem} and the key is saved to @code{/etc/letsencrypt/live/@var{name}/privkey.pem}."
  39530. msgstr ""
  39531. #. type: cindex
  39532. #: guix-git/doc/guix.texi:26339
  39533. #, no-wrap
  39534. msgid "DNS (domain name system)"
  39535. msgstr ""
  39536. #. type: cindex
  39537. #: guix-git/doc/guix.texi:26340
  39538. #, no-wrap
  39539. msgid "domain name system (DNS)"
  39540. msgstr ""
  39541. #. type: Plain text
  39542. #: guix-git/doc/guix.texi:26348
  39543. msgid "The @code{(gnu services dns)} module provides services related to the @dfn{domain name system} (DNS). It provides a server service for hosting an @emph{authoritative} DNS server for multiple zones, slave or master. This service uses @uref{https://www.knot-dns.cz/, Knot DNS}. And also a caching and forwarding DNS server for the LAN, which uses @uref{http://www.thekelleys.org.uk/dnsmasq/doc.html, dnsmasq}."
  39544. msgstr ""
  39545. #. type: subsubheading
  39546. #: guix-git/doc/guix.texi:26349
  39547. #, no-wrap
  39548. msgid "Knot Service"
  39549. msgstr ""
  39550. #. type: Plain text
  39551. #: guix-git/doc/guix.texi:26353
  39552. msgid "An example configuration of an authoritative server for two zones, one master and one slave, is:"
  39553. msgstr ""
  39554. #. type: lisp
  39555. #: guix-git/doc/guix.texi:26360
  39556. #, no-wrap
  39557. msgid ""
  39558. "(define-zone-entries example.org.zone\n"
  39559. ";; Name TTL Class Type Data\n"
  39560. " (\"@@\" \"\" \"IN\" \"A\" \"127.0.0.1\")\n"
  39561. " (\"@@\" \"\" \"IN\" \"NS\" \"ns\")\n"
  39562. " (\"ns\" \"\" \"IN\" \"A\" \"127.0.0.1\"))\n"
  39563. "\n"
  39564. msgstr ""
  39565. #. type: lisp
  39566. #: guix-git/doc/guix.texi:26367
  39567. #, no-wrap
  39568. msgid ""
  39569. "(define master-zone\n"
  39570. " (knot-zone-configuration\n"
  39571. " (domain \"example.org\")\n"
  39572. " (zone (zone-file\n"
  39573. " (origin \"example.org\")\n"
  39574. " (entries example.org.zone)))))\n"
  39575. "\n"
  39576. msgstr ""
  39577. #. type: lisp
  39578. #: guix-git/doc/guix.texi:26373
  39579. #, no-wrap
  39580. msgid ""
  39581. "(define slave-zone\n"
  39582. " (knot-zone-configuration\n"
  39583. " (domain \"plop.org\")\n"
  39584. " (dnssec-policy \"default\")\n"
  39585. " (master (list \"plop-master\"))))\n"
  39586. "\n"
  39587. msgstr ""
  39588. #. type: lisp
  39589. #: guix-git/doc/guix.texi:26378
  39590. #, no-wrap
  39591. msgid ""
  39592. "(define plop-master\n"
  39593. " (knot-remote-configuration\n"
  39594. " (id \"plop-master\")\n"
  39595. " (address (list \"208.76.58.171\"))))\n"
  39596. "\n"
  39597. msgstr ""
  39598. #. type: lisp
  39599. #: guix-git/doc/guix.texi:26387
  39600. #, no-wrap
  39601. msgid ""
  39602. "(operating-system\n"
  39603. " ;; ...\n"
  39604. " (services (cons* (service knot-service-type\n"
  39605. " (knot-configuration\n"
  39606. " (remotes (list plop-master))\n"
  39607. " (zones (list master-zone slave-zone))))\n"
  39608. " ;; ...\n"
  39609. " %base-services)))\n"
  39610. msgstr ""
  39611. #. type: deffn
  39612. #: guix-git/doc/guix.texi:26389
  39613. #, no-wrap
  39614. msgid "{Scheme Variable} knot-service-type"
  39615. msgstr ""
  39616. #. type: deffn
  39617. #: guix-git/doc/guix.texi:26391
  39618. msgid "This is the type for the Knot DNS server."
  39619. msgstr ""
  39620. #. type: deffn
  39621. #: guix-git/doc/guix.texi:26399
  39622. msgid "Knot DNS is an authoritative DNS server, meaning that it can serve multiple zones, that is to say domain names you would buy from a registrar. This server is not a resolver, meaning that it can only resolve names for which it is authoritative. This server can be configured to serve zones as a master server or a slave server as a per-zone basis. Slave zones will get their data from masters, and will serve it as an authoritative server. From the point of view of a resolver, there is no difference between master and slave."
  39623. msgstr ""
  39624. #. type: deffn
  39625. #: guix-git/doc/guix.texi:26401
  39626. msgid "The following data types are used to configure the Knot DNS server:"
  39627. msgstr ""
  39628. #. type: deftp
  39629. #: guix-git/doc/guix.texi:26403
  39630. #, no-wrap
  39631. msgid "{Data Type} knot-key-configuration"
  39632. msgstr ""
  39633. #. type: deftp
  39634. #: guix-git/doc/guix.texi:26406
  39635. msgid "Data type representing a key. This type has the following parameters:"
  39636. msgstr ""
  39637. #. type: item
  39638. #: guix-git/doc/guix.texi:26408 guix-git/doc/guix.texi:26428
  39639. #: guix-git/doc/guix.texi:26543 guix-git/doc/guix.texi:26569
  39640. #: guix-git/doc/guix.texi:26604
  39641. #, no-wrap
  39642. msgid "@code{id} (default: @code{\"\"})"
  39643. msgstr ""
  39644. #. type: table
  39645. #: guix-git/doc/guix.texi:26411 guix-git/doc/guix.texi:26431
  39646. msgid "An identifier for other configuration fields to refer to this key. IDs must be unique and must not be empty."
  39647. msgstr ""
  39648. #. type: item
  39649. #: guix-git/doc/guix.texi:26412
  39650. #, no-wrap
  39651. msgid "@code{algorithm} (default: @code{#f})"
  39652. msgstr ""
  39653. #. type: table
  39654. #: guix-git/doc/guix.texi:26416
  39655. msgid "The algorithm to use. Choose between @code{#f}, @code{'hmac-md5}, @code{'hmac-sha1}, @code{'hmac-sha224}, @code{'hmac-sha256}, @code{'hmac-sha384} and @code{'hmac-sha512}."
  39656. msgstr ""
  39657. #. type: item
  39658. #: guix-git/doc/guix.texi:26417
  39659. #, no-wrap
  39660. msgid "@code{secret} (default: @code{\"\"})"
  39661. msgstr ""
  39662. #. type: table
  39663. #: guix-git/doc/guix.texi:26419
  39664. msgid "The secret key itself."
  39665. msgstr ""
  39666. #. type: deftp
  39667. #: guix-git/doc/guix.texi:26423
  39668. #, no-wrap
  39669. msgid "{Data Type} knot-acl-configuration"
  39670. msgstr ""
  39671. #. type: deftp
  39672. #: guix-git/doc/guix.texi:26426
  39673. msgid "Data type representing an Access Control List (ACL) configuration. This type has the following parameters:"
  39674. msgstr ""
  39675. #. type: item
  39676. #: guix-git/doc/guix.texi:26432 guix-git/doc/guix.texi:26547
  39677. #, no-wrap
  39678. msgid "@code{address} (default: @code{'()})"
  39679. msgstr ""
  39680. #. type: table
  39681. #: guix-git/doc/guix.texi:26436
  39682. msgid "An ordered list of IP addresses, network subnets, or network ranges represented with strings. The query must match one of them. Empty value means that address match is not required."
  39683. msgstr ""
  39684. #. type: item
  39685. #: guix-git/doc/guix.texi:26437
  39686. #, no-wrap
  39687. msgid "@code{key} (default: @code{'()})"
  39688. msgstr ""
  39689. #. type: table
  39690. #: guix-git/doc/guix.texi:26441
  39691. msgid "An ordered list of references to keys represented with strings. The string must match a key ID defined in a @code{knot-key-configuration}. No key means that a key is not require to match that ACL."
  39692. msgstr ""
  39693. #. type: item
  39694. #: guix-git/doc/guix.texi:26442
  39695. #, no-wrap
  39696. msgid "@code{action} (default: @code{'()})"
  39697. msgstr ""
  39698. #. type: table
  39699. #: guix-git/doc/guix.texi:26446
  39700. msgid "An ordered list of actions that are permitted or forbidden by this ACL@. Possible values are lists of zero or more elements from @code{'transfer}, @code{'notify} and @code{'update}."
  39701. msgstr ""
  39702. #. type: item
  39703. #: guix-git/doc/guix.texi:26447
  39704. #, no-wrap
  39705. msgid "@code{deny?} (default: @code{#f})"
  39706. msgstr ""
  39707. #. type: table
  39708. #: guix-git/doc/guix.texi:26450
  39709. msgid "When true, the ACL defines restrictions. Listed actions are forbidden. When false, listed actions are allowed."
  39710. msgstr ""
  39711. #. type: deftp
  39712. #: guix-git/doc/guix.texi:26454
  39713. #, no-wrap
  39714. msgid "{Data Type} zone-entry"
  39715. msgstr ""
  39716. #. type: deftp
  39717. #: guix-git/doc/guix.texi:26457
  39718. msgid "Data type representing a record entry in a zone file. This type has the following parameters:"
  39719. msgstr ""
  39720. #. type: item
  39721. #: guix-git/doc/guix.texi:26459
  39722. #, no-wrap
  39723. msgid "@code{name} (default: @code{\"@@\"})"
  39724. msgstr ""
  39725. #. type: table
  39726. #: guix-git/doc/guix.texi:26465
  39727. msgid "The name of the record. @code{\"@@\"} refers to the origin of the zone. Names are relative to the origin of the zone. For example, in the @code{example.org} zone, @code{\"ns.example.org\"} actually refers to @code{ns.example.org.example.org}. Names ending with a dot are absolute, which means that @code{\"ns.example.org.\"} refers to @code{ns.example.org}."
  39728. msgstr ""
  39729. #. type: item
  39730. #: guix-git/doc/guix.texi:26466
  39731. #, no-wrap
  39732. msgid "@code{ttl} (default: @code{\"\"})"
  39733. msgstr ""
  39734. #. type: table
  39735. #: guix-git/doc/guix.texi:26468
  39736. msgid "The Time-To-Live (TTL) of this record. If not set, the default TTL is used."
  39737. msgstr ""
  39738. #. type: item
  39739. #: guix-git/doc/guix.texi:26469
  39740. #, no-wrap
  39741. msgid "@code{class} (default: @code{\"IN\"})"
  39742. msgstr ""
  39743. #. type: table
  39744. #: guix-git/doc/guix.texi:26472
  39745. msgid "The class of the record. Knot currently supports only @code{\"IN\"} and partially @code{\"CH\"}."
  39746. msgstr ""
  39747. #. type: item
  39748. #: guix-git/doc/guix.texi:26473
  39749. #, no-wrap
  39750. msgid "@code{type} (default: @code{\"A\"})"
  39751. msgstr ""
  39752. #. type: table
  39753. #: guix-git/doc/guix.texi:26477
  39754. msgid "The type of the record. Common types include A (IPv4 address), AAAA (IPv6 address), NS (Name Server) and MX (Mail eXchange). Many other types are defined."
  39755. msgstr ""
  39756. #. type: item
  39757. #: guix-git/doc/guix.texi:26478
  39758. #, no-wrap
  39759. msgid "@code{data} (default: @code{\"\"})"
  39760. msgstr ""
  39761. #. type: table
  39762. #: guix-git/doc/guix.texi:26482
  39763. msgid "The data contained in the record. For instance an IP address associated with an A record, or a domain name associated with an NS record. Remember that domain names are relative to the origin unless they end with a dot."
  39764. msgstr ""
  39765. #. type: deftp
  39766. #: guix-git/doc/guix.texi:26486
  39767. #, no-wrap
  39768. msgid "{Data Type} zone-file"
  39769. msgstr ""
  39770. #. type: deftp
  39771. #: guix-git/doc/guix.texi:26489
  39772. msgid "Data type representing the content of a zone file. This type has the following parameters:"
  39773. msgstr ""
  39774. #. type: table
  39775. #: guix-git/doc/guix.texi:26498
  39776. msgid "The list of entries. The SOA record is taken care of, so you don't need to put it in the list of entries. This list should probably contain an entry for your primary authoritative DNS server. Other than using a list of entries directly, you can use @code{define-zone-entries} to define a object containing the list of entries more easily, that you can later pass to the @code{entries} field of the @code{zone-file}."
  39777. msgstr ""
  39778. #. type: item
  39779. #: guix-git/doc/guix.texi:26499
  39780. #, no-wrap
  39781. msgid "@code{origin} (default: @code{\"\"})"
  39782. msgstr ""
  39783. #. type: table
  39784. #: guix-git/doc/guix.texi:26501
  39785. msgid "The name of your zone. This parameter cannot be empty."
  39786. msgstr ""
  39787. #. type: item
  39788. #: guix-git/doc/guix.texi:26502
  39789. #, no-wrap
  39790. msgid "@code{ns} (default: @code{\"ns\"})"
  39791. msgstr ""
  39792. #. type: table
  39793. #: guix-git/doc/guix.texi:26507
  39794. msgid "The domain of your primary authoritative DNS server. The name is relative to the origin, unless it ends with a dot. It is mandatory that this primary DNS server corresponds to an NS record in the zone and that it is associated to an IP address in the list of entries."
  39795. msgstr ""
  39796. #. type: item
  39797. #: guix-git/doc/guix.texi:26508
  39798. #, no-wrap
  39799. msgid "@code{mail} (default: @code{\"hostmaster\"})"
  39800. msgstr ""
  39801. #. type: table
  39802. #: guix-git/doc/guix.texi:26511
  39803. msgid "An email address people can contact you at, as the owner of the zone. This is translated as @code{<mail>@@<origin>}."
  39804. msgstr ""
  39805. #. type: item
  39806. #: guix-git/doc/guix.texi:26512
  39807. #, no-wrap
  39808. msgid "@code{serial} (default: @code{1})"
  39809. msgstr ""
  39810. #. type: table
  39811. #: guix-git/doc/guix.texi:26516
  39812. msgid "The serial number of the zone. As this is used to keep track of changes by both slaves and resolvers, it is mandatory that it @emph{never} decreases. Always increment it when you make a change in your zone."
  39813. msgstr ""
  39814. #. type: item
  39815. #: guix-git/doc/guix.texi:26517
  39816. #, no-wrap
  39817. msgid "@code{refresh} (default: @code{(* 2 24 3600)})"
  39818. msgstr ""
  39819. #. type: table
  39820. #: guix-git/doc/guix.texi:26521
  39821. msgid "The frequency at which slaves will do a zone transfer. This value is a number of seconds. It can be computed by multiplications or with @code{(string->duration)}."
  39822. msgstr ""
  39823. #. type: item
  39824. #: guix-git/doc/guix.texi:26522
  39825. #, no-wrap
  39826. msgid "@code{retry} (default: @code{(* 15 60)})"
  39827. msgstr ""
  39828. #. type: table
  39829. #: guix-git/doc/guix.texi:26525
  39830. msgid "The period after which a slave will retry to contact its master when it fails to do so a first time."
  39831. msgstr ""
  39832. #. type: item
  39833. #: guix-git/doc/guix.texi:26526
  39834. #, no-wrap
  39835. msgid "@code{expiry} (default: @code{(* 14 24 3600)})"
  39836. msgstr ""
  39837. #. type: table
  39838. #: guix-git/doc/guix.texi:26530
  39839. msgid "Default TTL of records. Existing records are considered correct for at most this amount of time. After this period, resolvers will invalidate their cache and check again that it still exists."
  39840. msgstr ""
  39841. #. type: item
  39842. #: guix-git/doc/guix.texi:26531
  39843. #, no-wrap
  39844. msgid "@code{nx} (default: @code{3600})"
  39845. msgstr ""
  39846. #. type: table
  39847. #: guix-git/doc/guix.texi:26534
  39848. msgid "Default TTL of inexistent records. This delay is usually short because you want your new domains to reach everyone quickly."
  39849. msgstr ""
  39850. #. type: deftp
  39851. #: guix-git/doc/guix.texi:26538
  39852. #, no-wrap
  39853. msgid "{Data Type} knot-remote-configuration"
  39854. msgstr ""
  39855. #. type: deftp
  39856. #: guix-git/doc/guix.texi:26541
  39857. msgid "Data type representing a remote configuration. This type has the following parameters:"
  39858. msgstr ""
  39859. #. type: table
  39860. #: guix-git/doc/guix.texi:26546
  39861. msgid "An identifier for other configuration fields to refer to this remote. IDs must be unique and must not be empty."
  39862. msgstr ""
  39863. #. type: table
  39864. #: guix-git/doc/guix.texi:26551
  39865. msgid "An ordered list of destination IP addresses. Addresses are tried in sequence. An optional port can be given with the @@ separator. For instance: @code{(list \"1.2.3.4\" \"2.3.4.5@@53\")}. Default port is 53."
  39866. msgstr ""
  39867. #. type: item
  39868. #: guix-git/doc/guix.texi:26552
  39869. #, no-wrap
  39870. msgid "@code{via} (default: @code{'()})"
  39871. msgstr ""
  39872. #. type: table
  39873. #: guix-git/doc/guix.texi:26556
  39874. msgid "An ordered list of source IP addresses. An empty list will have Knot choose an appropriate source IP@. An optional port can be given with the @@ separator. The default is to choose at random."
  39875. msgstr ""
  39876. #. type: table
  39877. #: guix-git/doc/guix.texi:26560
  39878. msgid "A reference to a key, that is a string containing the identifier of a key defined in a @code{knot-key-configuration} field."
  39879. msgstr ""
  39880. #. type: deftp
  39881. #: guix-git/doc/guix.texi:26564
  39882. #, no-wrap
  39883. msgid "{Data Type} knot-keystore-configuration"
  39884. msgstr ""
  39885. #. type: deftp
  39886. #: guix-git/doc/guix.texi:26567
  39887. msgid "Data type representing a keystore to hold dnssec keys. This type has the following parameters:"
  39888. msgstr ""
  39889. #. type: table
  39890. #: guix-git/doc/guix.texi:26571
  39891. msgid "The id of the keystore. It must not be empty."
  39892. msgstr ""
  39893. #. type: item
  39894. #: guix-git/doc/guix.texi:26572
  39895. #, no-wrap
  39896. msgid "@code{backend} (default: @code{'pem})"
  39897. msgstr ""
  39898. #. type: table
  39899. #: guix-git/doc/guix.texi:26574
  39900. msgid "The backend to store the keys in. Can be @code{'pem} or @code{'pkcs11}."
  39901. msgstr ""
  39902. #. type: item
  39903. #: guix-git/doc/guix.texi:26575
  39904. #, no-wrap
  39905. msgid "@code{config} (default: @code{\"/var/lib/knot/keys/keys\"})"
  39906. msgstr ""
  39907. #. type: table
  39908. #: guix-git/doc/guix.texi:26579
  39909. msgid "The configuration string of the backend. An example for the PKCS#11 is: @code{\"pkcs11:token=knot;pin-value=1234 /gnu/store/.../lib/pkcs11/libsofthsm2.so\"}. For the pem backend, the string represents a path in the file system."
  39910. msgstr ""
  39911. #. type: deftp
  39912. #: guix-git/doc/guix.texi:26583
  39913. #, no-wrap
  39914. msgid "{Data Type} knot-policy-configuration"
  39915. msgstr ""
  39916. #. type: deftp
  39917. #: guix-git/doc/guix.texi:26587
  39918. msgid "Data type representing a dnssec policy. Knot DNS is able to automatically sign your zones. It can either generate and manage your keys automatically or use keys that you generate."
  39919. msgstr ""
  39920. #. type: deftp
  39921. #: guix-git/doc/guix.texi:26594
  39922. msgid "Dnssec is usually implemented using two keys: a Key Signing Key (KSK) that is used to sign the second, and a Zone Signing Key (ZSK) that is used to sign the zone. In order to be trusted, the KSK needs to be present in the parent zone (usually a top-level domain). If your registrar supports dnssec, you will have to send them your KSK's hash so they can add a DS record in their zone. This is not automated and need to be done each time you change your KSK."
  39923. msgstr ""
  39924. #. type: deftp
  39925. #: guix-git/doc/guix.texi:26600
  39926. msgid "The policy also defines the lifetime of keys. Usually, ZSK can be changed easily and use weaker cryptographic functions (they use lower parameters) in order to sign records quickly, so they are changed often. The KSK however requires manual interaction with the registrar, so they are changed less often and use stronger parameters because they sign only one record."
  39927. msgstr ""
  39928. #. type: deftp
  39929. #: guix-git/doc/guix.texi:26602
  39930. msgid "This type has the following parameters:"
  39931. msgstr ""
  39932. #. type: table
  39933. #: guix-git/doc/guix.texi:26606
  39934. msgid "The id of the policy. It must not be empty."
  39935. msgstr ""
  39936. #. type: item
  39937. #: guix-git/doc/guix.texi:26607
  39938. #, no-wrap
  39939. msgid "@code{keystore} (default: @code{\"default\"})"
  39940. msgstr ""
  39941. #. type: table
  39942. #: guix-git/doc/guix.texi:26612
  39943. msgid "A reference to a keystore, that is a string containing the identifier of a keystore defined in a @code{knot-keystore-configuration} field. The @code{\"default\"} identifier means the default keystore (a kasp database that was setup by this service)."
  39944. msgstr ""
  39945. #. type: item
  39946. #: guix-git/doc/guix.texi:26613
  39947. #, no-wrap
  39948. msgid "@code{manual?} (default: @code{#f})"
  39949. msgstr ""
  39950. #. type: table
  39951. #: guix-git/doc/guix.texi:26615
  39952. msgid "Whether the key management is manual or automatic."
  39953. msgstr ""
  39954. #. type: item
  39955. #: guix-git/doc/guix.texi:26616
  39956. #, no-wrap
  39957. msgid "@code{single-type-signing?} (default: @code{#f})"
  39958. msgstr ""
  39959. #. type: table
  39960. #: guix-git/doc/guix.texi:26618
  39961. msgid "When @code{#t}, use the Single-Type Signing Scheme."
  39962. msgstr ""
  39963. #. type: item
  39964. #: guix-git/doc/guix.texi:26619
  39965. #, no-wrap
  39966. msgid "@code{algorithm} (default: @code{\"ecdsap256sha256\"})"
  39967. msgstr ""
  39968. #. type: table
  39969. #: guix-git/doc/guix.texi:26621
  39970. msgid "An algorithm of signing keys and issued signatures."
  39971. msgstr ""
  39972. #. type: item
  39973. #: guix-git/doc/guix.texi:26622
  39974. #, no-wrap
  39975. msgid "@code{ksk-size} (default: @code{256})"
  39976. msgstr ""
  39977. #. type: table
  39978. #: guix-git/doc/guix.texi:26625
  39979. msgid "The length of the KSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  39980. msgstr ""
  39981. #. type: item
  39982. #: guix-git/doc/guix.texi:26626
  39983. #, no-wrap
  39984. msgid "@code{zsk-size} (default: @code{256})"
  39985. msgstr ""
  39986. #. type: table
  39987. #: guix-git/doc/guix.texi:26629
  39988. msgid "The length of the ZSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  39989. msgstr ""
  39990. #. type: item
  39991. #: guix-git/doc/guix.texi:26630
  39992. #, no-wrap
  39993. msgid "@code{dnskey-ttl} (default: @code{'default})"
  39994. msgstr ""
  39995. #. type: table
  39996. #: guix-git/doc/guix.texi:26633
  39997. msgid "The TTL value for DNSKEY records added into zone apex. The special @code{'default} value means same as the zone SOA TTL."
  39998. msgstr ""
  39999. #. type: item
  40000. #: guix-git/doc/guix.texi:26634
  40001. #, no-wrap
  40002. msgid "@code{zsk-lifetime} (default: @code{(* 30 24 3600)})"
  40003. msgstr ""
  40004. #. type: table
  40005. #: guix-git/doc/guix.texi:26636
  40006. msgid "The period between ZSK publication and the next rollover initiation."
  40007. msgstr ""
  40008. #. type: item
  40009. #: guix-git/doc/guix.texi:26637
  40010. #, no-wrap
  40011. msgid "@code{propagation-delay} (default: @code{(* 24 3600)})"
  40012. msgstr ""
  40013. #. type: table
  40014. #: guix-git/doc/guix.texi:26640
  40015. msgid "An extra delay added for each key rollover step. This value should be high enough to cover propagation of data from the master server to all slaves."
  40016. msgstr ""
  40017. #. type: item
  40018. #: guix-git/doc/guix.texi:26641
  40019. #, no-wrap
  40020. msgid "@code{rrsig-lifetime} (default: @code{(* 14 24 3600)})"
  40021. msgstr ""
  40022. #. type: table
  40023. #: guix-git/doc/guix.texi:26643
  40024. msgid "A validity period of newly issued signatures."
  40025. msgstr ""
  40026. #. type: item
  40027. #: guix-git/doc/guix.texi:26644
  40028. #, no-wrap
  40029. msgid "@code{rrsig-refresh} (default: @code{(* 7 24 3600)})"
  40030. msgstr ""
  40031. #. type: table
  40032. #: guix-git/doc/guix.texi:26646
  40033. msgid "A period how long before a signature expiration the signature will be refreshed."
  40034. msgstr ""
  40035. #. type: item
  40036. #: guix-git/doc/guix.texi:26647
  40037. #, no-wrap
  40038. msgid "@code{nsec3?} (default: @code{#f})"
  40039. msgstr ""
  40040. #. type: table
  40041. #: guix-git/doc/guix.texi:26649
  40042. msgid "When @code{#t}, NSEC3 will be used instead of NSEC."
  40043. msgstr ""
  40044. #. type: item
  40045. #: guix-git/doc/guix.texi:26650
  40046. #, no-wrap
  40047. msgid "@code{nsec3-iterations} (default: @code{5})"
  40048. msgstr ""
  40049. #. type: table
  40050. #: guix-git/doc/guix.texi:26652
  40051. msgid "The number of additional times the hashing is performed."
  40052. msgstr ""
  40053. #. type: item
  40054. #: guix-git/doc/guix.texi:26653
  40055. #, no-wrap
  40056. msgid "@code{nsec3-salt-length} (default: @code{8})"
  40057. msgstr ""
  40058. #. type: table
  40059. #: guix-git/doc/guix.texi:26656
  40060. msgid "The length of a salt field in octets, which is appended to the original owner name before hashing."
  40061. msgstr ""
  40062. #. type: item
  40063. #: guix-git/doc/guix.texi:26657
  40064. #, no-wrap
  40065. msgid "@code{nsec3-salt-lifetime} (default: @code{(* 30 24 3600)})"
  40066. msgstr ""
  40067. #. type: table
  40068. #: guix-git/doc/guix.texi:26659
  40069. msgid "The validity period of newly issued salt field."
  40070. msgstr ""
  40071. #. type: deftp
  40072. #: guix-git/doc/guix.texi:26663
  40073. #, no-wrap
  40074. msgid "{Data Type} knot-zone-configuration"
  40075. msgstr ""
  40076. #. type: deftp
  40077. #: guix-git/doc/guix.texi:26666
  40078. msgid "Data type representing a zone served by Knot. This type has the following parameters:"
  40079. msgstr ""
  40080. #. type: item
  40081. #: guix-git/doc/guix.texi:26668
  40082. #, no-wrap
  40083. msgid "@code{domain} (default: @code{\"\"})"
  40084. msgstr ""
  40085. #. type: table
  40086. #: guix-git/doc/guix.texi:26670
  40087. msgid "The domain served by this configuration. It must not be empty."
  40088. msgstr ""
  40089. #. type: item
  40090. #: guix-git/doc/guix.texi:26671
  40091. #, no-wrap
  40092. msgid "@code{file} (default: @code{\"\"})"
  40093. msgstr ""
  40094. #. type: table
  40095. #: guix-git/doc/guix.texi:26674
  40096. msgid "The file where this zone is saved. This parameter is ignored by master zones. Empty means default location that depends on the domain name."
  40097. msgstr ""
  40098. #. type: item
  40099. #: guix-git/doc/guix.texi:26675
  40100. #, no-wrap
  40101. msgid "@code{zone} (default: @code{(zone-file)})"
  40102. msgstr ""
  40103. #. type: table
  40104. #: guix-git/doc/guix.texi:26678
  40105. msgid "The content of the zone file. This parameter is ignored by slave zones. It must contain a zone-file record."
  40106. msgstr ""
  40107. #. type: item
  40108. #: guix-git/doc/guix.texi:26679
  40109. #, no-wrap
  40110. msgid "@code{master} (default: @code{'()})"
  40111. msgstr ""
  40112. #. type: table
  40113. #: guix-git/doc/guix.texi:26682
  40114. msgid "A list of master remotes. When empty, this zone is a master. When set, this zone is a slave. This is a list of remotes identifiers."
  40115. msgstr ""
  40116. #. type: item
  40117. #: guix-git/doc/guix.texi:26683
  40118. #, no-wrap
  40119. msgid "@code{ddns-master} (default: @code{#f})"
  40120. msgstr ""
  40121. #. type: table
  40122. #: guix-git/doc/guix.texi:26686
  40123. msgid "The main master. When empty, it defaults to the first master in the list of masters."
  40124. msgstr ""
  40125. #. type: item
  40126. #: guix-git/doc/guix.texi:26687
  40127. #, no-wrap
  40128. msgid "@code{notify} (default: @code{'()})"
  40129. msgstr ""
  40130. #. type: table
  40131. #: guix-git/doc/guix.texi:26689
  40132. msgid "A list of slave remote identifiers."
  40133. msgstr ""
  40134. #. type: item
  40135. #: guix-git/doc/guix.texi:26690
  40136. #, no-wrap
  40137. msgid "@code{acl} (default: @code{'()})"
  40138. msgstr ""
  40139. #. type: table
  40140. #: guix-git/doc/guix.texi:26692
  40141. msgid "A list of acl identifiers."
  40142. msgstr ""
  40143. #. type: item
  40144. #: guix-git/doc/guix.texi:26693
  40145. #, no-wrap
  40146. msgid "@code{semantic-checks?} (default: @code{#f})"
  40147. msgstr ""
  40148. #. type: table
  40149. #: guix-git/doc/guix.texi:26695
  40150. msgid "When set, this adds more semantic checks to the zone."
  40151. msgstr ""
  40152. #. type: item
  40153. #: guix-git/doc/guix.texi:26696
  40154. #, no-wrap
  40155. msgid "@code{disable-any?} (default: @code{#f})"
  40156. msgstr ""
  40157. #. type: table
  40158. #: guix-git/doc/guix.texi:26698
  40159. msgid "When set, this forbids queries of the ANY type."
  40160. msgstr ""
  40161. #. type: item
  40162. #: guix-git/doc/guix.texi:26699
  40163. #, no-wrap
  40164. msgid "@code{zonefile-sync} (default: @code{0})"
  40165. msgstr ""
  40166. #. type: table
  40167. #: guix-git/doc/guix.texi:26702
  40168. msgid "The delay between a modification in memory and on disk. 0 means immediate synchronization."
  40169. msgstr ""
  40170. #. type: item
  40171. #: guix-git/doc/guix.texi:26703
  40172. #, no-wrap
  40173. msgid "@code{zonefile-load} (default: @code{#f})"
  40174. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40175. #. type: table
  40176. #: guix-git/doc/guix.texi:26706
  40177. msgid "The way the zone file contents are applied during zone load. Possible values are:"
  40178. msgstr ""
  40179. #. type: item
  40180. #: guix-git/doc/guix.texi:26708
  40181. #, no-wrap
  40182. msgid "@code{#f} for using the default value from Knot,"
  40183. msgstr ""
  40184. #. type: item
  40185. #: guix-git/doc/guix.texi:26709
  40186. #, no-wrap
  40187. msgid "@code{'none} for not using the zone file at all,"
  40188. msgstr ""
  40189. #. type: item
  40190. #: guix-git/doc/guix.texi:26710
  40191. #, no-wrap
  40192. msgid "@code{'difference} for computing the difference between already available"
  40193. msgstr ""
  40194. #. type: itemize
  40195. #: guix-git/doc/guix.texi:26712
  40196. msgid "contents and zone contents and applying it to the current zone contents,"
  40197. msgstr ""
  40198. #. type: item
  40199. #: guix-git/doc/guix.texi:26712
  40200. #, no-wrap
  40201. msgid "@code{'difference-no-serial} for the same as @code{'difference}, but"
  40202. msgstr ""
  40203. #. type: itemize
  40204. #: guix-git/doc/guix.texi:26715
  40205. msgid "ignoring the SOA serial in the zone file, while the server takes care of it automatically."
  40206. msgstr ""
  40207. #. type: item
  40208. #: guix-git/doc/guix.texi:26715
  40209. #, no-wrap
  40210. msgid "@code{'whole} for loading zone contents from the zone file."
  40211. msgstr ""
  40212. #. type: item
  40213. #: guix-git/doc/guix.texi:26718
  40214. #, no-wrap
  40215. msgid "@code{journal-content} (default: @code{#f})"
  40216. msgstr "@code{journal-content}(默认值:@code{#f})"
  40217. #. type: table
  40218. #: guix-git/doc/guix.texi:26723
  40219. msgid "The way the journal is used to store zone and its changes. Possible values are @code{'none} to not use it at all, @code{'changes} to store changes and @code{'all} to store contents. @code{#f} does not set this option, so the default value from Knot is used."
  40220. msgstr ""
  40221. #. type: item
  40222. #: guix-git/doc/guix.texi:26724
  40223. #, no-wrap
  40224. msgid "@code{max-journal-usage} (default: @code{#f})"
  40225. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  40226. #. type: table
  40227. #: guix-git/doc/guix.texi:26727
  40228. msgid "The maximum size for the journal on disk. @code{#f} does not set this option, so the default value from Knot is used."
  40229. msgstr ""
  40230. #. type: item
  40231. #: guix-git/doc/guix.texi:26728
  40232. #, no-wrap
  40233. msgid "@code{max-journal-depth} (default: @code{#f})"
  40234. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  40235. #. type: table
  40236. #: guix-git/doc/guix.texi:26731
  40237. msgid "The maximum size of the history. @code{#f} does not set this option, so the default value from Knot is used."
  40238. msgstr ""
  40239. #. type: item
  40240. #: guix-git/doc/guix.texi:26732
  40241. #, no-wrap
  40242. msgid "@code{max-zone-size} (default: @code{#f})"
  40243. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  40244. #. type: table
  40245. #: guix-git/doc/guix.texi:26736
  40246. msgid "The maximum size of the zone file. This limit is enforced for incoming transfer and updates. @code{#f} does not set this option, so the default value from Knot is used."
  40247. msgstr ""
  40248. #. type: item
  40249. #: guix-git/doc/guix.texi:26737
  40250. #, no-wrap
  40251. msgid "@code{dnssec-policy} (default: @code{#f})"
  40252. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  40253. #. type: table
  40254. #: guix-git/doc/guix.texi:26741
  40255. msgid "A reference to a @code{knot-policy-configuration} record, or the special name @code{\"default\"}. If the value is @code{#f}, there is no dnssec signing on this zone."
  40256. msgstr ""
  40257. #. type: item
  40258. #: guix-git/doc/guix.texi:26742
  40259. #, no-wrap
  40260. msgid "@code{serial-policy} (default: @code{'increment})"
  40261. msgstr ""
  40262. #. type: table
  40263. #: guix-git/doc/guix.texi:26744
  40264. msgid "A policy between @code{'increment} and @code{'unixtime}."
  40265. msgstr ""
  40266. #. type: deftp
  40267. #: guix-git/doc/guix.texi:26748
  40268. #, no-wrap
  40269. msgid "{Data Type} knot-configuration"
  40270. msgstr ""
  40271. #. type: deftp
  40272. #: guix-git/doc/guix.texi:26751
  40273. msgid "Data type representing the Knot configuration. This type has the following parameters:"
  40274. msgstr ""
  40275. #. type: item
  40276. #: guix-git/doc/guix.texi:26753
  40277. #, no-wrap
  40278. msgid "@code{knot} (default: @code{knot})"
  40279. msgstr ""
  40280. #. type: table
  40281. #: guix-git/doc/guix.texi:26755
  40282. msgid "The Knot package."
  40283. msgstr ""
  40284. #. type: item
  40285. #: guix-git/doc/guix.texi:26756
  40286. #, no-wrap
  40287. msgid "@code{run-directory} (default: @code{\"/var/run/knot\"})"
  40288. msgstr ""
  40289. #. type: table
  40290. #: guix-git/doc/guix.texi:26758
  40291. msgid "The run directory. This directory will be used for pid file and sockets."
  40292. msgstr ""
  40293. #. type: item
  40294. #: guix-git/doc/guix.texi:26759
  40295. #, no-wrap
  40296. msgid "@code{includes} (default: @code{'()})"
  40297. msgstr "@code{includes}(默认值:@code{'()})"
  40298. #. type: table
  40299. #: guix-git/doc/guix.texi:26762
  40300. msgid "A list of strings or file-like objects denoting other files that must be included at the top of the configuration file."
  40301. msgstr ""
  40302. #. type: cindex
  40303. #: guix-git/doc/guix.texi:26763
  40304. #, no-wrap
  40305. msgid "secrets, Knot service"
  40306. msgstr "秘密,Knot服务。"
  40307. #. type: table
  40308. #: guix-git/doc/guix.texi:26769
  40309. msgid "This can be used to manage secrets out-of-band. For example, secret keys may be stored in an out-of-band file not managed by Guix, and thus not visible in @file{/gnu/store}---e.g., you could store secret key configuration in @file{/etc/knot/secrets.conf} and add this file to the @code{includes} list."
  40310. msgstr ""
  40311. #. type: table
  40312. #: guix-git/doc/guix.texi:26774
  40313. msgid "One can generate a secret tsig key (for nsupdate and zone transfers with the keymgr command from the knot package. Note that the package is not automatically installed by the service. The following example shows how to generate a new tsig key:"
  40314. msgstr ""
  40315. #. type: example
  40316. #: guix-git/doc/guix.texi:26778
  40317. #, no-wrap
  40318. msgid ""
  40319. "keymgr -t mysecret > /etc/knot/secrets.conf\n"
  40320. "chmod 600 /etc/knot/secrets.conf\n"
  40321. msgstr ""
  40322. #. type: table
  40323. #: guix-git/doc/guix.texi:26784
  40324. msgid "Also note that the generated key will be named @var{mysecret}, so it is the name that needs to be used in the @var{key} field of the @code{knot-acl-configuration} record and in other places that need to refer to that key."
  40325. msgstr ""
  40326. #. type: table
  40327. #: guix-git/doc/guix.texi:26786
  40328. msgid "It can also be used to add configuration not supported by this interface."
  40329. msgstr ""
  40330. #. type: item
  40331. #: guix-git/doc/guix.texi:26787
  40332. #, no-wrap
  40333. msgid "@code{listen-v4} (default: @code{\"0.0.0.0\"})"
  40334. msgstr ""
  40335. #. type: table
  40336. #: guix-git/doc/guix.texi:26789 guix-git/doc/guix.texi:26792
  40337. msgid "An ip address on which to listen."
  40338. msgstr ""
  40339. #. type: item
  40340. #: guix-git/doc/guix.texi:26790
  40341. #, no-wrap
  40342. msgid "@code{listen-v6} (default: @code{\"::\"})"
  40343. msgstr ""
  40344. #. type: item
  40345. #: guix-git/doc/guix.texi:26793
  40346. #, no-wrap
  40347. msgid "@code{listen-port} (default: @code{53})"
  40348. msgstr ""
  40349. #. type: table
  40350. #: guix-git/doc/guix.texi:26795
  40351. msgid "A port on which to listen."
  40352. msgstr ""
  40353. #. type: item
  40354. #: guix-git/doc/guix.texi:26796
  40355. #, no-wrap
  40356. msgid "@code{keys} (default: @code{'()})"
  40357. msgstr ""
  40358. #. type: table
  40359. #: guix-git/doc/guix.texi:26798
  40360. msgid "The list of knot-key-configuration used by this configuration."
  40361. msgstr ""
  40362. #. type: item
  40363. #: guix-git/doc/guix.texi:26799
  40364. #, no-wrap
  40365. msgid "@code{acls} (default: @code{'()})"
  40366. msgstr ""
  40367. #. type: table
  40368. #: guix-git/doc/guix.texi:26801
  40369. msgid "The list of knot-acl-configuration used by this configuration."
  40370. msgstr ""
  40371. #. type: item
  40372. #: guix-git/doc/guix.texi:26802
  40373. #, no-wrap
  40374. msgid "@code{remotes} (default: @code{'()})"
  40375. msgstr ""
  40376. #. type: table
  40377. #: guix-git/doc/guix.texi:26804
  40378. msgid "The list of knot-remote-configuration used by this configuration."
  40379. msgstr ""
  40380. #. type: item
  40381. #: guix-git/doc/guix.texi:26805
  40382. #, no-wrap
  40383. msgid "@code{zones} (default: @code{'()})"
  40384. msgstr ""
  40385. #. type: table
  40386. #: guix-git/doc/guix.texi:26807
  40387. msgid "The list of knot-zone-configuration used by this configuration."
  40388. msgstr ""
  40389. #. type: subsubheading
  40390. #: guix-git/doc/guix.texi:26811
  40391. #, fuzzy, no-wrap
  40392. msgid "Knot Resolver Service"
  40393. msgstr "Kerberos服务"
  40394. #. type: deffn
  40395. #: guix-git/doc/guix.texi:26813
  40396. #, no-wrap
  40397. msgid "{Scheme Variable} knot-resolver-service-type"
  40398. msgstr ""
  40399. #. type: deffn
  40400. #: guix-git/doc/guix.texi:26816
  40401. msgid "This is the type of the knot resolver service, whose value should be an @code{knot-resolver-configuration} object as in this example:"
  40402. msgstr ""
  40403. #. type: lisp
  40404. #: guix-git/doc/guix.texi:26826
  40405. #, no-wrap
  40406. msgid ""
  40407. "(service knot-resolver-service-type\n"
  40408. " (knot-resolver-configuration\n"
  40409. " (kresd-config-file (plain-file \"kresd.conf\" \"\n"
  40410. "net.listen('192.168.0.1', 5353)\n"
  40411. "user('knot-resolver', 'knot-resolver')\n"
  40412. "modules = @{ 'hints > iterate', 'stats', 'predict' @}\n"
  40413. "cache.size = 100 * MB\n"
  40414. "\"))))\n"
  40415. msgstr ""
  40416. #. type: deffn
  40417. #: guix-git/doc/guix.texi:26829
  40418. msgid "For more information, refer its @url{https://knot-resolver.readthedocs.org/en/stable/daemon.html#configuration, manual}."
  40419. msgstr ""
  40420. #. type: deftp
  40421. #: guix-git/doc/guix.texi:26831
  40422. #, no-wrap
  40423. msgid "{Data Type} knot-resolver-configuration"
  40424. msgstr ""
  40425. #. type: deftp
  40426. #: guix-git/doc/guix.texi:26833
  40427. #, fuzzy
  40428. msgid "Data type representing the configuration of knot-resolver."
  40429. msgstr "管理操作系统配置。"
  40430. #. type: item
  40431. #: guix-git/doc/guix.texi:26835
  40432. #, fuzzy, no-wrap
  40433. msgid "@code{package} (default: @var{knot-resolver})"
  40434. msgstr "@code{gnome}(默认值:@code{gnome})"
  40435. #. type: table
  40436. #: guix-git/doc/guix.texi:26837
  40437. msgid "Package object of the knot DNS resolver."
  40438. msgstr ""
  40439. #. type: item
  40440. #: guix-git/doc/guix.texi:26838
  40441. #, fuzzy, no-wrap
  40442. msgid "@code{kresd-config-file} (default: %kresd.conf)"
  40443. msgstr "@code{compression-level}(默认值:@code{3})"
  40444. #. type: table
  40445. #: guix-git/doc/guix.texi:26841
  40446. msgid "File-like object of the kresd configuration file to use, by default it will listen on @code{127.0.0.1} and @code{::1}."
  40447. msgstr ""
  40448. #. type: item
  40449. #: guix-git/doc/guix.texi:26842
  40450. #, fuzzy, no-wrap
  40451. msgid "@code{garbage-collection-interval} (default: 1000)"
  40452. msgstr "@code{parallel-builds}(默认值:@code{1})"
  40453. #. type: table
  40454. #: guix-git/doc/guix.texi:26844
  40455. msgid "Number of milliseconds for @code{kres-cache-gc} to periodically trim the cache."
  40456. msgstr ""
  40457. #. type: subsubheading
  40458. #: guix-git/doc/guix.texi:26849
  40459. #, no-wrap
  40460. msgid "Dnsmasq Service"
  40461. msgstr ""
  40462. #. type: deffn
  40463. #: guix-git/doc/guix.texi:26851
  40464. #, no-wrap
  40465. msgid "{Scheme Variable} dnsmasq-service-type"
  40466. msgstr ""
  40467. #. type: deffn
  40468. #: guix-git/doc/guix.texi:26854
  40469. msgid "This is the type of the dnsmasq service, whose value should be an @code{dnsmasq-configuration} object as in this example:"
  40470. msgstr ""
  40471. #. type: lisp
  40472. #: guix-git/doc/guix.texi:26860
  40473. #, no-wrap
  40474. msgid ""
  40475. "(service dnsmasq-service-type\n"
  40476. " (dnsmasq-configuration\n"
  40477. " (no-resolv? #t)\n"
  40478. " (servers '(\"192.168.1.1\"))))\n"
  40479. msgstr ""
  40480. #. type: deftp
  40481. #: guix-git/doc/guix.texi:26863
  40482. #, no-wrap
  40483. msgid "{Data Type} dnsmasq-configuration"
  40484. msgstr ""
  40485. #. type: deftp
  40486. #: guix-git/doc/guix.texi:26865
  40487. msgid "Data type representing the configuration of dnsmasq."
  40488. msgstr ""
  40489. #. type: item
  40490. #: guix-git/doc/guix.texi:26867
  40491. #, no-wrap
  40492. msgid "@code{package} (default: @var{dnsmasq})"
  40493. msgstr ""
  40494. #. type: table
  40495. #: guix-git/doc/guix.texi:26869
  40496. msgid "Package object of the dnsmasq server."
  40497. msgstr ""
  40498. #. type: item
  40499. #: guix-git/doc/guix.texi:26870
  40500. #, no-wrap
  40501. msgid "@code{no-hosts?} (default: @code{#f})"
  40502. msgstr ""
  40503. #. type: table
  40504. #: guix-git/doc/guix.texi:26872
  40505. msgid "When true, don't read the hostnames in /etc/hosts."
  40506. msgstr ""
  40507. #. type: item
  40508. #: guix-git/doc/guix.texi:26873
  40509. #, no-wrap
  40510. msgid "@code{port} (default: @code{53})"
  40511. msgstr ""
  40512. #. type: table
  40513. #: guix-git/doc/guix.texi:26876
  40514. msgid "The port to listen on. Setting this to zero completely disables DNS responses, leaving only DHCP and/or TFTP functions."
  40515. msgstr ""
  40516. #. type: item
  40517. #: guix-git/doc/guix.texi:26877
  40518. #, no-wrap
  40519. msgid "@code{local-service?} (default: @code{#t})"
  40520. msgstr ""
  40521. #. type: table
  40522. #: guix-git/doc/guix.texi:26880
  40523. msgid "Accept DNS queries only from hosts whose address is on a local subnet, ie a subnet for which an interface exists on the server."
  40524. msgstr ""
  40525. #. type: item
  40526. #: guix-git/doc/guix.texi:26881
  40527. #, no-wrap
  40528. msgid "@code{listen-addresses} (default: @code{'()})"
  40529. msgstr ""
  40530. #. type: table
  40531. #: guix-git/doc/guix.texi:26883
  40532. msgid "Listen on the given IP addresses."
  40533. msgstr ""
  40534. #. type: item
  40535. #: guix-git/doc/guix.texi:26884
  40536. #, no-wrap
  40537. msgid "@code{resolv-file} (default: @code{\"/etc/resolv.conf\"})"
  40538. msgstr ""
  40539. #. type: table
  40540. #: guix-git/doc/guix.texi:26886
  40541. msgid "The file to read the IP address of the upstream nameservers from."
  40542. msgstr ""
  40543. #. type: item
  40544. #: guix-git/doc/guix.texi:26887
  40545. #, no-wrap
  40546. msgid "@code{no-resolv?} (default: @code{#f})"
  40547. msgstr ""
  40548. #. type: table
  40549. #: guix-git/doc/guix.texi:26889
  40550. msgid "When true, don't read @var{resolv-file}."
  40551. msgstr ""
  40552. #. type: item
  40553. #: guix-git/doc/guix.texi:26890
  40554. #, no-wrap
  40555. msgid "@code{servers} (default: @code{'()})"
  40556. msgstr ""
  40557. #. type: table
  40558. #: guix-git/doc/guix.texi:26892
  40559. msgid "Specify IP address of upstream servers directly."
  40560. msgstr ""
  40561. #. type: item
  40562. #: guix-git/doc/guix.texi:26893
  40563. #, fuzzy, no-wrap
  40564. msgid "@code{addresses} (default: @code{'()})"
  40565. msgstr "@code{features} (@code{'()})"
  40566. #. type: table
  40567. #: guix-git/doc/guix.texi:26897
  40568. msgid "For each entry, specify an IP address to return for any host in the given domains. Queries in the domains are never forwarded and always replied to with the specified IP address."
  40569. msgstr ""
  40570. #. type: table
  40571. #: guix-git/doc/guix.texi:26899
  40572. msgid "This is useful for redirecting hosts locally, for example:"
  40573. msgstr ""
  40574. #. type: lisp
  40575. #: guix-git/doc/guix.texi:26908
  40576. #, no-wrap
  40577. msgid ""
  40578. "(service dnsmasq-service-type\n"
  40579. " (dnsmasq-configuration\n"
  40580. " (addresses\n"
  40581. " '(; Redirect to a local web-server.\n"
  40582. " \"/example.org/127.0.0.1\"\n"
  40583. " ; Redirect subdomain to a specific IP.\n"
  40584. " \"/subdomain.example.org/192.168.1.42\"))))\n"
  40585. msgstr ""
  40586. #. type: table
  40587. #: guix-git/doc/guix.texi:26911
  40588. msgid "Note that rules in @file{/etc/hosts} take precedence over this."
  40589. msgstr ""
  40590. #. type: item
  40591. #: guix-git/doc/guix.texi:26912
  40592. #, no-wrap
  40593. msgid "@code{cache-size} (default: @code{150})"
  40594. msgstr ""
  40595. #. type: table
  40596. #: guix-git/doc/guix.texi:26915
  40597. msgid "Set the size of dnsmasq's cache. Setting the cache size to zero disables caching."
  40598. msgstr ""
  40599. #. type: item
  40600. #: guix-git/doc/guix.texi:26916
  40601. #, no-wrap
  40602. msgid "@code{negative-cache?} (default: @code{#t})"
  40603. msgstr ""
  40604. #. type: table
  40605. #: guix-git/doc/guix.texi:26918
  40606. msgid "When false, disable negative caching."
  40607. msgstr ""
  40608. #. type: item
  40609. #: guix-git/doc/guix.texi:26919
  40610. #, fuzzy, no-wrap
  40611. msgid "@code{tftp-enable?} (default: @code{#f})"
  40612. msgstr "@code{challenge}(默认值:@code{#f})"
  40613. #. type: table
  40614. #: guix-git/doc/guix.texi:26921
  40615. msgid "Whether to enable the built-in TFTP server."
  40616. msgstr ""
  40617. #. type: item
  40618. #: guix-git/doc/guix.texi:26922
  40619. #, fuzzy, no-wrap
  40620. msgid "@code{tftp-no-fail?} (default: @code{#f})"
  40621. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40622. #. type: table
  40623. #: guix-git/doc/guix.texi:26924
  40624. msgid "If true, does not fail dnsmasq if the TFTP server could not start up."
  40625. msgstr ""
  40626. #. type: item
  40627. #: guix-git/doc/guix.texi:26925
  40628. #, fuzzy, no-wrap
  40629. msgid "@code{tftp-single-port?} (default: @code{#f})"
  40630. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40631. #. type: table
  40632. #: guix-git/doc/guix.texi:26927
  40633. msgid "Whether to use only one single port for TFTP."
  40634. msgstr ""
  40635. #. type: item
  40636. #: guix-git/doc/guix.texi:26928
  40637. #, fuzzy, no-wrap
  40638. msgid "@code{tftp-secure?} (default: @code{#f})"
  40639. msgstr "@code{xfce}(默认值:@code{xfce})"
  40640. #. type: table
  40641. #: guix-git/doc/guix.texi:26930
  40642. msgid "If true, only files owned by the user running the dnsmasq process are accessible."
  40643. msgstr ""
  40644. #. type: table
  40645. #: guix-git/doc/guix.texi:26934
  40646. msgid "If dnsmasq is being run as root, different rules apply: @code{tftp-secure?} has no effect, but only files which have the world-readable bit set are accessible."
  40647. msgstr ""
  40648. #. type: item
  40649. #: guix-git/doc/guix.texi:26935
  40650. #, fuzzy, no-wrap
  40651. msgid "@code{tftp-max} (default: @code{#f})"
  40652. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40653. #. type: table
  40654. #: guix-git/doc/guix.texi:26937
  40655. msgid "If set, sets the maximal number of concurrent connections allowed."
  40656. msgstr ""
  40657. #. type: item
  40658. #: guix-git/doc/guix.texi:26938
  40659. #, fuzzy, no-wrap
  40660. msgid "@code{tftp-mtu} (default: @code{#f})"
  40661. msgstr "@code{port}(默认值:@code{22})"
  40662. #. type: table
  40663. #: guix-git/doc/guix.texi:26940
  40664. msgid "If set, sets the MTU for TFTP packets to that value."
  40665. msgstr ""
  40666. #. type: item
  40667. #: guix-git/doc/guix.texi:26941
  40668. #, fuzzy, no-wrap
  40669. msgid "@code{tftp-no-blocksize?} (default: @code{#f})"
  40670. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  40671. #. type: table
  40672. #: guix-git/doc/guix.texi:26943
  40673. msgid "If true, stops the TFTP server from negotiating the blocksize with a client."
  40674. msgstr ""
  40675. #. type: item
  40676. #: guix-git/doc/guix.texi:26944
  40677. #, fuzzy, no-wrap
  40678. msgid "@code{tftp-lowercase?} (default: @code{#f})"
  40679. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40680. #. type: table
  40681. #: guix-git/doc/guix.texi:26946
  40682. msgid "Whether to convert all filenames in TFTP requests to lowercase."
  40683. msgstr ""
  40684. #. type: item
  40685. #: guix-git/doc/guix.texi:26947
  40686. #, fuzzy, no-wrap
  40687. msgid "@code{tftp-port-range} (default: @code{#f})"
  40688. msgstr "@code{challenge}(默认值:@code{#f})"
  40689. #. type: table
  40690. #: guix-git/doc/guix.texi:26950
  40691. msgid "If set, fixes the dynamical ports (one per client) to the given range (@code{\"<start>,<end>\"})."
  40692. msgstr ""
  40693. #. type: item
  40694. #: guix-git/doc/guix.texi:26951
  40695. #, fuzzy, no-wrap
  40696. msgid "@code{tftp-root} (default: @code{/var/empty,lo})"
  40697. msgstr "@code{port}(默认值:@code{22})"
  40698. #. type: table
  40699. #: guix-git/doc/guix.texi:26958
  40700. msgid "Look for files to transfer using TFTP relative to the given directory. When this is set, TFTP paths which include @samp{..} are rejected, to stop clients getting outside the specified root. Absolute paths (starting with @samp{/}) are allowed, but they must be within the TFTP-root. If the optional interface argument is given, the directory is only used for TFTP requests via that interface."
  40701. msgstr ""
  40702. #. type: item
  40703. #: guix-git/doc/guix.texi:26959
  40704. #, fuzzy, no-wrap
  40705. msgid "@code{tftp-unique-root} (default: @code{#f})"
  40706. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  40707. #. type: table
  40708. #: guix-git/doc/guix.texi:26964
  40709. msgid "If set, add the IP or hardware address of the TFTP client as a path component on the end of the TFTP-root. Only valid if a TFTP root is set and the directory exists. Defaults to adding IP address (in standard dotted-quad format)."
  40710. msgstr ""
  40711. #. type: table
  40712. #: guix-git/doc/guix.texi:26973
  40713. msgid "For instance, if @option{--tftp-root} is @samp{/tftp} and client @samp{1.2.3.4} requests file @file{myfile} then the effective path will be @file{/tftp/1.2.3.4/myfile} if @file{/tftp/1.2.3.4} exists or @file{/tftp/myfile} otherwise. When @samp{=mac} is specified it will append the MAC address instead, using lowercase zero padded digits separated by dashes, e.g.: @samp{01-02-03-04-aa-bb}. Note that resolving MAC addresses is only possible if the client is in the local network or obtained a DHCP lease from dnsmasq."
  40714. msgstr ""
  40715. #. type: subsubheading
  40716. #: guix-git/doc/guix.texi:26977
  40717. #, no-wrap
  40718. msgid "ddclient Service"
  40719. msgstr ""
  40720. #. type: cindex
  40721. #: guix-git/doc/guix.texi:26979
  40722. #, no-wrap
  40723. msgid "ddclient"
  40724. msgstr ""
  40725. #. type: Plain text
  40726. #: guix-git/doc/guix.texi:26983
  40727. msgid "The ddclient service described below runs the ddclient daemon, which takes care of automatically updating DNS entries for service providers such as @uref{https://dyn.com/dns/, Dyn}."
  40728. msgstr ""
  40729. #. type: Plain text
  40730. #: guix-git/doc/guix.texi:26986
  40731. msgid "The following example show instantiates the service with its default configuration:"
  40732. msgstr ""
  40733. #. type: lisp
  40734. #: guix-git/doc/guix.texi:26989
  40735. #, no-wrap
  40736. msgid "(service ddclient-service-type)\n"
  40737. msgstr ""
  40738. #. type: Plain text
  40739. #: guix-git/doc/guix.texi:26998
  40740. msgid "Note that ddclient needs to access credentials that are stored in a @dfn{secret file}, by default @file{/etc/ddclient/secrets} (see @code{secret-file} below). You are expected to create this file manually, in an ``out-of-band'' fashion (you @emph{could} make this file part of the service configuration, for instance by using @code{plain-file}, but it will be world-readable @i{via} @file{/gnu/store}). See the examples in the @file{share/ddclient} directory of the @code{ddclient} package."
  40741. msgstr ""
  40742. #. type: Plain text
  40743. #: guix-git/doc/guix.texi:27002
  40744. msgid "Available @code{ddclient-configuration} fields are:"
  40745. msgstr ""
  40746. #. type: deftypevr
  40747. #: guix-git/doc/guix.texi:27003
  40748. #, no-wrap
  40749. msgid "{@code{ddclient-configuration} parameter} package ddclient"
  40750. msgstr ""
  40751. #. type: deftypevr
  40752. #: guix-git/doc/guix.texi:27005
  40753. msgid "The ddclient package."
  40754. msgstr ""
  40755. #. type: deftypevr
  40756. #: guix-git/doc/guix.texi:27008
  40757. #, no-wrap
  40758. msgid "{@code{ddclient-configuration} parameter} integer daemon"
  40759. msgstr ""
  40760. #. type: deftypevr
  40761. #: guix-git/doc/guix.texi:27010
  40762. msgid "The period after which ddclient will retry to check IP and domain name."
  40763. msgstr ""
  40764. #. type: deftypevr
  40765. #: guix-git/doc/guix.texi:27015
  40766. #, no-wrap
  40767. msgid "{@code{ddclient-configuration} parameter} boolean syslog"
  40768. msgstr ""
  40769. #. type: deftypevr
  40770. #: guix-git/doc/guix.texi:27017
  40771. msgid "Use syslog for the output."
  40772. msgstr ""
  40773. #. type: deftypevr
  40774. #: guix-git/doc/guix.texi:27022
  40775. #, no-wrap
  40776. msgid "{@code{ddclient-configuration} parameter} string mail"
  40777. msgstr ""
  40778. #. type: deftypevr
  40779. #: guix-git/doc/guix.texi:27024
  40780. msgid "Mail to user."
  40781. msgstr ""
  40782. #. type: deftypevr
  40783. #: guix-git/doc/guix.texi:27026 guix-git/doc/guix.texi:27033
  40784. #: guix-git/doc/guix.texi:28829
  40785. msgid "Defaults to @samp{\"root\"}."
  40786. msgstr ""
  40787. #. type: deftypevr
  40788. #: guix-git/doc/guix.texi:27029
  40789. #, no-wrap
  40790. msgid "{@code{ddclient-configuration} parameter} string mail-failure"
  40791. msgstr ""
  40792. #. type: deftypevr
  40793. #: guix-git/doc/guix.texi:27031
  40794. msgid "Mail failed update to user."
  40795. msgstr ""
  40796. #. type: deftypevr
  40797. #: guix-git/doc/guix.texi:27036
  40798. #, no-wrap
  40799. msgid "{@code{ddclient-configuration} parameter} string pid"
  40800. msgstr ""
  40801. #. type: deftypevr
  40802. #: guix-git/doc/guix.texi:27038
  40803. msgid "The ddclient PID file."
  40804. msgstr ""
  40805. #. type: deftypevr
  40806. #: guix-git/doc/guix.texi:27040
  40807. msgid "Defaults to @samp{\"/var/run/ddclient/ddclient.pid\"}."
  40808. msgstr ""
  40809. #. type: deftypevr
  40810. #: guix-git/doc/guix.texi:27043
  40811. #, no-wrap
  40812. msgid "{@code{ddclient-configuration} parameter} boolean ssl"
  40813. msgstr ""
  40814. #. type: deftypevr
  40815. #: guix-git/doc/guix.texi:27045
  40816. msgid "Enable SSL support."
  40817. msgstr ""
  40818. #. type: deftypevr
  40819. #: guix-git/doc/guix.texi:27050
  40820. #, no-wrap
  40821. msgid "{@code{ddclient-configuration} parameter} string user"
  40822. msgstr ""
  40823. #. type: deftypevr
  40824. #: guix-git/doc/guix.texi:27053
  40825. msgid "Specifies the user name or ID that is used when running ddclient program."
  40826. msgstr ""
  40827. #. type: deftypevr
  40828. #: guix-git/doc/guix.texi:27055 guix-git/doc/guix.texi:27062
  40829. msgid "Defaults to @samp{\"ddclient\"}."
  40830. msgstr ""
  40831. #. type: deftypevr
  40832. #: guix-git/doc/guix.texi:27058
  40833. #, no-wrap
  40834. msgid "{@code{ddclient-configuration} parameter} string group"
  40835. msgstr ""
  40836. #. type: deftypevr
  40837. #: guix-git/doc/guix.texi:27060
  40838. msgid "Group of the user who will run the ddclient program."
  40839. msgstr ""
  40840. #. type: deftypevr
  40841. #: guix-git/doc/guix.texi:27065
  40842. #, no-wrap
  40843. msgid "{@code{ddclient-configuration} parameter} string secret-file"
  40844. msgstr ""
  40845. #. type: deftypevr
  40846. #: guix-git/doc/guix.texi:27069
  40847. msgid "Secret file which will be appended to @file{ddclient.conf} file. This file contains credentials for use by ddclient. You are expected to create it manually."
  40848. msgstr ""
  40849. #. type: deftypevr
  40850. #: guix-git/doc/guix.texi:27071
  40851. msgid "Defaults to @samp{\"/etc/ddclient/secrets.conf\"}."
  40852. msgstr ""
  40853. #. type: deftypevr
  40854. #: guix-git/doc/guix.texi:27074
  40855. #, no-wrap
  40856. msgid "{@code{ddclient-configuration} parameter} list extra-options"
  40857. msgstr ""
  40858. #. type: deftypevr
  40859. #: guix-git/doc/guix.texi:27076
  40860. msgid "Extra options will be appended to @file{ddclient.conf} file."
  40861. msgstr ""
  40862. #. type: cindex
  40863. #: guix-git/doc/guix.texi:27087
  40864. #, no-wrap
  40865. msgid "VPN (virtual private network)"
  40866. msgstr ""
  40867. #. type: cindex
  40868. #: guix-git/doc/guix.texi:27088
  40869. #, no-wrap
  40870. msgid "virtual private network (VPN)"
  40871. msgstr ""
  40872. #. type: Plain text
  40873. #: guix-git/doc/guix.texi:27092
  40874. msgid "The @code{(gnu services vpn)} module provides services related to @dfn{virtual private networks} (VPNs)."
  40875. msgstr ""
  40876. #. type: subsubheading
  40877. #: guix-git/doc/guix.texi:27093
  40878. #, no-wrap
  40879. msgid "Bitmask"
  40880. msgstr ""
  40881. #. type: defvr
  40882. #: guix-git/doc/guix.texi:27095
  40883. #, no-wrap
  40884. msgid "{Scheme Variable} bitmask-service-type"
  40885. msgstr ""
  40886. #. type: defvr
  40887. #: guix-git/doc/guix.texi:27100
  40888. msgid "A service type for the @uref{https://bitmask.net, Bitmask} VPN client. It makes the client available in the system and loads its polkit policy. Please note that the client expects an active polkit-agent, which is either run by your desktop-environment or should be run manually."
  40889. msgstr ""
  40890. #. type: subsubheading
  40891. #: guix-git/doc/guix.texi:27102
  40892. #, no-wrap
  40893. msgid "OpenVPN"
  40894. msgstr ""
  40895. #. type: Plain text
  40896. #: guix-git/doc/guix.texi:27106
  40897. msgid "It provides a @emph{client} service for your machine to connect to a VPN, and a @emph{server} service for your machine to host a VPN@."
  40898. msgstr ""
  40899. #. type: deffn
  40900. #: guix-git/doc/guix.texi:27107
  40901. #, no-wrap
  40902. msgid "{Scheme Procedure} openvpn-client-service @"
  40903. msgstr ""
  40904. #. type: deffn
  40905. #: guix-git/doc/guix.texi:27109
  40906. msgid "[#:config (openvpn-client-configuration)]"
  40907. msgstr ""
  40908. #. type: deffn
  40909. #: guix-git/doc/guix.texi:27111
  40910. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a client."
  40911. msgstr ""
  40912. #. type: deffn
  40913. #: guix-git/doc/guix.texi:27113
  40914. #, no-wrap
  40915. msgid "{Scheme Procedure} openvpn-server-service @"
  40916. msgstr ""
  40917. #. type: deffn
  40918. #: guix-git/doc/guix.texi:27115
  40919. msgid "[#:config (openvpn-server-configuration)]"
  40920. msgstr ""
  40921. #. type: deffn
  40922. #: guix-git/doc/guix.texi:27117
  40923. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a server."
  40924. msgstr ""
  40925. #. type: deffn
  40926. #: guix-git/doc/guix.texi:27119
  40927. msgid "Both can be run simultaneously."
  40928. msgstr ""
  40929. #. type: Plain text
  40930. #: guix-git/doc/guix.texi:27124
  40931. msgid "Available @code{openvpn-client-configuration} fields are:"
  40932. msgstr ""
  40933. #. type: deftypevr
  40934. #: guix-git/doc/guix.texi:27125
  40935. #, no-wrap
  40936. msgid "{@code{openvpn-client-configuration} parameter} package openvpn"
  40937. msgstr ""
  40938. #. type: deftypevr
  40939. #: guix-git/doc/guix.texi:27127 guix-git/doc/guix.texi:27282
  40940. msgid "The OpenVPN package."
  40941. msgstr ""
  40942. #. type: deftypevr
  40943. #: guix-git/doc/guix.texi:27130
  40944. #, no-wrap
  40945. msgid "{@code{openvpn-client-configuration} parameter} string pid-file"
  40946. msgstr ""
  40947. #. type: deftypevr
  40948. #: guix-git/doc/guix.texi:27132 guix-git/doc/guix.texi:27287
  40949. msgid "The OpenVPN pid file."
  40950. msgstr ""
  40951. #. type: deftypevr
  40952. #: guix-git/doc/guix.texi:27134 guix-git/doc/guix.texi:27289
  40953. msgid "Defaults to @samp{\"/var/run/openvpn/openvpn.pid\"}."
  40954. msgstr ""
  40955. #. type: deftypevr
  40956. #: guix-git/doc/guix.texi:27137
  40957. #, no-wrap
  40958. msgid "{@code{openvpn-client-configuration} parameter} proto proto"
  40959. msgstr ""
  40960. #. type: deftypevr
  40961. #: guix-git/doc/guix.texi:27140 guix-git/doc/guix.texi:27295
  40962. msgid "The protocol (UDP or TCP) used to open a channel between clients and servers."
  40963. msgstr ""
  40964. #. type: deftypevr
  40965. #: guix-git/doc/guix.texi:27142 guix-git/doc/guix.texi:27297
  40966. msgid "Defaults to @samp{udp}."
  40967. msgstr ""
  40968. #. type: deftypevr
  40969. #: guix-git/doc/guix.texi:27145
  40970. #, no-wrap
  40971. msgid "{@code{openvpn-client-configuration} parameter} dev dev"
  40972. msgstr ""
  40973. #. type: deftypevr
  40974. #: guix-git/doc/guix.texi:27147 guix-git/doc/guix.texi:27302
  40975. msgid "The device type used to represent the VPN connection."
  40976. msgstr ""
  40977. #. type: deftypevr
  40978. #: guix-git/doc/guix.texi:27149 guix-git/doc/guix.texi:27304
  40979. msgid "Defaults to @samp{tun}."
  40980. msgstr ""
  40981. #. type: Plain text
  40982. #: guix-git/doc/guix.texi:27155 guix-git/doc/guix.texi:27310
  40983. msgid "If you do not have some of these files (eg.@: you use a username and password), you can disable any of the following three fields by setting it to @code{'disabled}."
  40984. msgstr ""
  40985. #. type: deftypevr
  40986. #: guix-git/doc/guix.texi:27156
  40987. #, no-wrap
  40988. msgid "{@code{openvpn-client-configuration} parameter} maybe-string ca"
  40989. msgstr ""
  40990. #. type: deftypevr
  40991. #: guix-git/doc/guix.texi:27158 guix-git/doc/guix.texi:27313
  40992. msgid "The certificate authority to check connections against."
  40993. msgstr ""
  40994. #. type: deftypevr
  40995. #: guix-git/doc/guix.texi:27160 guix-git/doc/guix.texi:27315
  40996. msgid "Defaults to @samp{\"/etc/openvpn/ca.crt\"}."
  40997. msgstr ""
  40998. #. type: deftypevr
  40999. #: guix-git/doc/guix.texi:27163
  41000. #, no-wrap
  41001. msgid "{@code{openvpn-client-configuration} parameter} maybe-string cert"
  41002. msgstr ""
  41003. #. type: deftypevr
  41004. #: guix-git/doc/guix.texi:27166 guix-git/doc/guix.texi:27321
  41005. msgid "The certificate of the machine the daemon is running on. It should be signed by the authority given in @code{ca}."
  41006. msgstr ""
  41007. #. type: deftypevr
  41008. #: guix-git/doc/guix.texi:27168 guix-git/doc/guix.texi:27323
  41009. msgid "Defaults to @samp{\"/etc/openvpn/client.crt\"}."
  41010. msgstr ""
  41011. #. type: deftypevr
  41012. #: guix-git/doc/guix.texi:27171
  41013. #, no-wrap
  41014. msgid "{@code{openvpn-client-configuration} parameter} maybe-string key"
  41015. msgstr ""
  41016. #. type: deftypevr
  41017. #: guix-git/doc/guix.texi:27174 guix-git/doc/guix.texi:27329
  41018. msgid "The key of the machine the daemon is running on. It must be the key whose certificate is @code{cert}."
  41019. msgstr ""
  41020. #. type: deftypevr
  41021. #: guix-git/doc/guix.texi:27176 guix-git/doc/guix.texi:27331
  41022. msgid "Defaults to @samp{\"/etc/openvpn/client.key\"}."
  41023. msgstr ""
  41024. #. type: deftypevr
  41025. #: guix-git/doc/guix.texi:27179
  41026. #, no-wrap
  41027. msgid "{@code{openvpn-client-configuration} parameter} boolean comp-lzo?"
  41028. msgstr ""
  41029. #. type: deftypevr
  41030. #: guix-git/doc/guix.texi:27181 guix-git/doc/guix.texi:27336
  41031. msgid "Whether to use the lzo compression algorithm."
  41032. msgstr ""
  41033. #. type: deftypevr
  41034. #: guix-git/doc/guix.texi:27186
  41035. #, no-wrap
  41036. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-key?"
  41037. msgstr ""
  41038. #. type: deftypevr
  41039. #: guix-git/doc/guix.texi:27188 guix-git/doc/guix.texi:27343
  41040. msgid "Don't re-read key files across SIGUSR1 or --ping-restart."
  41041. msgstr ""
  41042. #. type: deftypevr
  41043. #: guix-git/doc/guix.texi:27193
  41044. #, no-wrap
  41045. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-tun?"
  41046. msgstr ""
  41047. #. type: deftypevr
  41048. #: guix-git/doc/guix.texi:27196 guix-git/doc/guix.texi:27351
  41049. msgid "Don't close and reopen TUN/TAP device or run up/down scripts across SIGUSR1 or --ping-restart restarts."
  41050. msgstr ""
  41051. #. type: deftypevr
  41052. #: guix-git/doc/guix.texi:27201
  41053. #, no-wrap
  41054. msgid "{@code{openvpn-client-configuration} parameter} boolean fast-io?"
  41055. msgstr ""
  41056. #. type: deftypevr
  41057. #: guix-git/doc/guix.texi:27204 guix-git/doc/guix.texi:27359
  41058. msgid "(Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation."
  41059. msgstr ""
  41060. #. type: deftypevr
  41061. #: guix-git/doc/guix.texi:27208
  41062. #, no-wrap
  41063. msgid "{@code{openvpn-client-configuration} parameter} number verbosity"
  41064. msgstr ""
  41065. #. type: deftypevr
  41066. #: guix-git/doc/guix.texi:27210 guix-git/doc/guix.texi:27365
  41067. msgid "Verbosity level."
  41068. msgstr ""
  41069. #. type: deftypevr
  41070. #: guix-git/doc/guix.texi:27212 guix-git/doc/guix.texi:27367
  41071. #: guix-git/doc/guix.texi:29097 guix-git/doc/guix.texi:29321
  41072. msgid "Defaults to @samp{3}."
  41073. msgstr ""
  41074. #. type: deftypevr
  41075. #: guix-git/doc/guix.texi:27215
  41076. #, no-wrap
  41077. msgid "{@code{openvpn-client-configuration} parameter} tls-auth-client tls-auth"
  41078. msgstr ""
  41079. #. type: deftypevr
  41080. #: guix-git/doc/guix.texi:27218 guix-git/doc/guix.texi:27373
  41081. msgid "Add an additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks."
  41082. msgstr ""
  41083. #. type: deftypevr
  41084. #: guix-git/doc/guix.texi:27223
  41085. #, no-wrap
  41086. msgid "{@code{openvpn-client-configuration} parameter} maybe-string auth-user-pass"
  41087. msgstr ""
  41088. #. type: deftypevr
  41089. #: guix-git/doc/guix.texi:27227
  41090. msgid "Authenticate with server using username/password. The option is a file containing username/password on 2 lines. Do not use a file-like object as it would be added to the store and readable by any user."
  41091. msgstr ""
  41092. #. type: deftypevr
  41093. #: guix-git/doc/guix.texi:27229
  41094. msgid "Defaults to @samp{'disabled}."
  41095. msgstr ""
  41096. #. type: deftypevr
  41097. #: guix-git/doc/guix.texi:27231
  41098. #, no-wrap
  41099. msgid "{@code{openvpn-client-configuration} parameter} key-usage verify-key-usage?"
  41100. msgstr ""
  41101. #. type: deftypevr
  41102. #: guix-git/doc/guix.texi:27233
  41103. msgid "Whether to check the server certificate has server usage extension."
  41104. msgstr ""
  41105. #. type: deftypevr
  41106. #: guix-git/doc/guix.texi:27238
  41107. #, no-wrap
  41108. msgid "{@code{openvpn-client-configuration} parameter} bind bind?"
  41109. msgstr ""
  41110. #. type: deftypevr
  41111. #: guix-git/doc/guix.texi:27240
  41112. msgid "Bind to a specific local port number."
  41113. msgstr ""
  41114. #. type: deftypevr
  41115. #: guix-git/doc/guix.texi:27245
  41116. #, no-wrap
  41117. msgid "{@code{openvpn-client-configuration} parameter} resolv-retry resolv-retry?"
  41118. msgstr ""
  41119. #. type: deftypevr
  41120. #: guix-git/doc/guix.texi:27247
  41121. msgid "Retry resolving server address."
  41122. msgstr ""
  41123. #. type: deftypevr
  41124. #: guix-git/doc/guix.texi:27252
  41125. #, no-wrap
  41126. msgid "{@code{openvpn-client-configuration} parameter} openvpn-remote-list remote"
  41127. msgstr ""
  41128. #. type: deftypevr
  41129. #: guix-git/doc/guix.texi:27254
  41130. msgid "A list of remote servers to connect to."
  41131. msgstr ""
  41132. #. type: deftypevr
  41133. #: guix-git/doc/guix.texi:27258
  41134. msgid "Available @code{openvpn-remote-configuration} fields are:"
  41135. msgstr ""
  41136. #. type: deftypevr
  41137. #: guix-git/doc/guix.texi:27259
  41138. #, no-wrap
  41139. msgid "{@code{openvpn-remote-configuration} parameter} string name"
  41140. msgstr ""
  41141. #. type: deftypevr
  41142. #: guix-git/doc/guix.texi:27261
  41143. msgid "Server name."
  41144. msgstr ""
  41145. #. type: deftypevr
  41146. #: guix-git/doc/guix.texi:27263
  41147. msgid "Defaults to @samp{\"my-server\"}."
  41148. msgstr ""
  41149. #. type: deftypevr
  41150. #: guix-git/doc/guix.texi:27266
  41151. #, no-wrap
  41152. msgid "{@code{openvpn-remote-configuration} parameter} number port"
  41153. msgstr ""
  41154. #. type: deftypevr
  41155. #: guix-git/doc/guix.texi:27268
  41156. msgid "Port number the server listens to."
  41157. msgstr ""
  41158. #. type: deftypevr
  41159. #: guix-git/doc/guix.texi:27270 guix-git/doc/guix.texi:27382
  41160. msgid "Defaults to @samp{1194}."
  41161. msgstr ""
  41162. #. type: Plain text
  41163. #: guix-git/doc/guix.texi:27279
  41164. msgid "Available @code{openvpn-server-configuration} fields are:"
  41165. msgstr ""
  41166. #. type: deftypevr
  41167. #: guix-git/doc/guix.texi:27280
  41168. #, no-wrap
  41169. msgid "{@code{openvpn-server-configuration} parameter} package openvpn"
  41170. msgstr ""
  41171. #. type: deftypevr
  41172. #: guix-git/doc/guix.texi:27285
  41173. #, no-wrap
  41174. msgid "{@code{openvpn-server-configuration} parameter} string pid-file"
  41175. msgstr ""
  41176. #. type: deftypevr
  41177. #: guix-git/doc/guix.texi:27292
  41178. #, no-wrap
  41179. msgid "{@code{openvpn-server-configuration} parameter} proto proto"
  41180. msgstr ""
  41181. #. type: deftypevr
  41182. #: guix-git/doc/guix.texi:27300
  41183. #, no-wrap
  41184. msgid "{@code{openvpn-server-configuration} parameter} dev dev"
  41185. msgstr ""
  41186. #. type: deftypevr
  41187. #: guix-git/doc/guix.texi:27311
  41188. #, no-wrap
  41189. msgid "{@code{openvpn-server-configuration} parameter} maybe-string ca"
  41190. msgstr ""
  41191. #. type: deftypevr
  41192. #: guix-git/doc/guix.texi:27318
  41193. #, no-wrap
  41194. msgid "{@code{openvpn-server-configuration} parameter} maybe-string cert"
  41195. msgstr ""
  41196. #. type: deftypevr
  41197. #: guix-git/doc/guix.texi:27326
  41198. #, no-wrap
  41199. msgid "{@code{openvpn-server-configuration} parameter} maybe-string key"
  41200. msgstr ""
  41201. #. type: deftypevr
  41202. #: guix-git/doc/guix.texi:27334
  41203. #, no-wrap
  41204. msgid "{@code{openvpn-server-configuration} parameter} boolean comp-lzo?"
  41205. msgstr ""
  41206. #. type: deftypevr
  41207. #: guix-git/doc/guix.texi:27341
  41208. #, no-wrap
  41209. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-key?"
  41210. msgstr ""
  41211. #. type: deftypevr
  41212. #: guix-git/doc/guix.texi:27348
  41213. #, no-wrap
  41214. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-tun?"
  41215. msgstr ""
  41216. #. type: deftypevr
  41217. #: guix-git/doc/guix.texi:27356
  41218. #, no-wrap
  41219. msgid "{@code{openvpn-server-configuration} parameter} boolean fast-io?"
  41220. msgstr ""
  41221. #. type: deftypevr
  41222. #: guix-git/doc/guix.texi:27363
  41223. #, no-wrap
  41224. msgid "{@code{openvpn-server-configuration} parameter} number verbosity"
  41225. msgstr ""
  41226. #. type: deftypevr
  41227. #: guix-git/doc/guix.texi:27370
  41228. #, no-wrap
  41229. msgid "{@code{openvpn-server-configuration} parameter} tls-auth-server tls-auth"
  41230. msgstr ""
  41231. #. type: deftypevr
  41232. #: guix-git/doc/guix.texi:27378
  41233. #, no-wrap
  41234. msgid "{@code{openvpn-server-configuration} parameter} number port"
  41235. msgstr ""
  41236. #. type: deftypevr
  41237. #: guix-git/doc/guix.texi:27380
  41238. msgid "Specifies the port number on which the server listens."
  41239. msgstr ""
  41240. #. type: deftypevr
  41241. #: guix-git/doc/guix.texi:27385
  41242. #, no-wrap
  41243. msgid "{@code{openvpn-server-configuration} parameter} ip-mask server"
  41244. msgstr ""
  41245. #. type: deftypevr
  41246. #: guix-git/doc/guix.texi:27387
  41247. msgid "An ip and mask specifying the subnet inside the virtual network."
  41248. msgstr ""
  41249. #. type: deftypevr
  41250. #: guix-git/doc/guix.texi:27389
  41251. msgid "Defaults to @samp{\"10.8.0.0 255.255.255.0\"}."
  41252. msgstr ""
  41253. #. type: deftypevr
  41254. #: guix-git/doc/guix.texi:27392
  41255. #, no-wrap
  41256. msgid "{@code{openvpn-server-configuration} parameter} cidr6 server-ipv6"
  41257. msgstr ""
  41258. #. type: deftypevr
  41259. #: guix-git/doc/guix.texi:27394
  41260. msgid "A CIDR notation specifying the IPv6 subnet inside the virtual network."
  41261. msgstr ""
  41262. #. type: deftypevr
  41263. #: guix-git/doc/guix.texi:27399
  41264. #, no-wrap
  41265. msgid "{@code{openvpn-server-configuration} parameter} string dh"
  41266. msgstr ""
  41267. #. type: deftypevr
  41268. #: guix-git/doc/guix.texi:27401
  41269. msgid "The Diffie-Hellman parameters file."
  41270. msgstr ""
  41271. #. type: deftypevr
  41272. #: guix-git/doc/guix.texi:27403
  41273. msgid "Defaults to @samp{\"/etc/openvpn/dh2048.pem\"}."
  41274. msgstr ""
  41275. #. type: deftypevr
  41276. #: guix-git/doc/guix.texi:27406
  41277. #, no-wrap
  41278. msgid "{@code{openvpn-server-configuration} parameter} string ifconfig-pool-persist"
  41279. msgstr ""
  41280. #. type: deftypevr
  41281. #: guix-git/doc/guix.texi:27408
  41282. msgid "The file that records client IPs."
  41283. msgstr ""
  41284. #. type: deftypevr
  41285. #: guix-git/doc/guix.texi:27410
  41286. msgid "Defaults to @samp{\"/etc/openvpn/ipp.txt\"}."
  41287. msgstr ""
  41288. #. type: deftypevr
  41289. #: guix-git/doc/guix.texi:27413
  41290. #, no-wrap
  41291. msgid "{@code{openvpn-server-configuration} parameter} gateway redirect-gateway?"
  41292. msgstr ""
  41293. #. type: deftypevr
  41294. #: guix-git/doc/guix.texi:27415
  41295. msgid "When true, the server will act as a gateway for its clients."
  41296. msgstr ""
  41297. #. type: deftypevr
  41298. #: guix-git/doc/guix.texi:27420
  41299. #, no-wrap
  41300. msgid "{@code{openvpn-server-configuration} parameter} boolean client-to-client?"
  41301. msgstr ""
  41302. #. type: deftypevr
  41303. #: guix-git/doc/guix.texi:27422
  41304. msgid "When true, clients are allowed to talk to each other inside the VPN."
  41305. msgstr ""
  41306. #. type: deftypevr
  41307. #: guix-git/doc/guix.texi:27427
  41308. #, no-wrap
  41309. msgid "{@code{openvpn-server-configuration} parameter} keepalive keepalive"
  41310. msgstr ""
  41311. #. type: deftypevr
  41312. #: guix-git/doc/guix.texi:27433
  41313. msgid "Causes ping-like messages to be sent back and forth over the link so that each side knows when the other side has gone down. @code{keepalive} requires a pair. The first element is the period of the ping sending, and the second element is the timeout before considering the other side down."
  41314. msgstr ""
  41315. #. type: deftypevr
  41316. #: guix-git/doc/guix.texi:27436
  41317. #, no-wrap
  41318. msgid "{@code{openvpn-server-configuration} parameter} number max-clients"
  41319. msgstr ""
  41320. #. type: deftypevr
  41321. #: guix-git/doc/guix.texi:27438
  41322. msgid "The maximum number of clients."
  41323. msgstr ""
  41324. #. type: deftypevr
  41325. #: guix-git/doc/guix.texi:27443
  41326. #, no-wrap
  41327. msgid "{@code{openvpn-server-configuration} parameter} string status"
  41328. msgstr ""
  41329. #. type: deftypevr
  41330. #: guix-git/doc/guix.texi:27446
  41331. msgid "The status file. This file shows a small report on current connection. It is truncated and rewritten every minute."
  41332. msgstr ""
  41333. #. type: deftypevr
  41334. #: guix-git/doc/guix.texi:27448
  41335. msgid "Defaults to @samp{\"/var/run/openvpn/status\"}."
  41336. msgstr ""
  41337. #. type: deftypevr
  41338. #: guix-git/doc/guix.texi:27451
  41339. #, no-wrap
  41340. msgid "{@code{openvpn-server-configuration} parameter} openvpn-ccd-list client-config-dir"
  41341. msgstr ""
  41342. #. type: deftypevr
  41343. #: guix-git/doc/guix.texi:27453
  41344. msgid "The list of configuration for some clients."
  41345. msgstr ""
  41346. #. type: deftypevr
  41347. #: guix-git/doc/guix.texi:27457
  41348. msgid "Available @code{openvpn-ccd-configuration} fields are:"
  41349. msgstr ""
  41350. #. type: deftypevr
  41351. #: guix-git/doc/guix.texi:27458
  41352. #, no-wrap
  41353. msgid "{@code{openvpn-ccd-configuration} parameter} string name"
  41354. msgstr ""
  41355. #. type: deftypevr
  41356. #: guix-git/doc/guix.texi:27460
  41357. msgid "Client name."
  41358. msgstr ""
  41359. #. type: deftypevr
  41360. #: guix-git/doc/guix.texi:27462
  41361. msgid "Defaults to @samp{\"client\"}."
  41362. msgstr ""
  41363. #. type: deftypevr
  41364. #: guix-git/doc/guix.texi:27465
  41365. #, no-wrap
  41366. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask iroute"
  41367. msgstr ""
  41368. #. type: deftypevr
  41369. #: guix-git/doc/guix.texi:27467
  41370. msgid "Client own network"
  41371. msgstr ""
  41372. #. type: deftypevr
  41373. #: guix-git/doc/guix.texi:27472
  41374. #, no-wrap
  41375. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask ifconfig-push"
  41376. msgstr ""
  41377. #. type: deftypevr
  41378. #: guix-git/doc/guix.texi:27474
  41379. msgid "Client VPN IP."
  41380. msgstr ""
  41381. #. type: subheading
  41382. #: guix-git/doc/guix.texi:27483
  41383. #, no-wrap
  41384. msgid "strongSwan"
  41385. msgstr ""
  41386. #. type: Plain text
  41387. #: guix-git/doc/guix.texi:27487
  41388. msgid "Currently, the strongSwan service only provides legacy-style configuration with @file{ipsec.conf} and @file{ipsec.secrets} files."
  41389. msgstr ""
  41390. #. type: defvr
  41391. #: guix-git/doc/guix.texi:27488
  41392. #, no-wrap
  41393. msgid "{Scheme Variable} strongswan-service-type"
  41394. msgstr ""
  41395. #. type: defvr
  41396. #: guix-git/doc/guix.texi:27492
  41397. msgid "A service type for configuring strongSwan for IPsec @acronym{VPN, Virtual Private Networking}. Its value must be a @code{strongswan-configuration} record as in this example:"
  41398. msgstr ""
  41399. #. type: lisp
  41400. #: guix-git/doc/guix.texi:27498
  41401. #, no-wrap
  41402. msgid ""
  41403. "(service strongswan-service-type\n"
  41404. " (strongswan-configuration\n"
  41405. " (ipsec-conf \"/etc/ipsec.conf\")\n"
  41406. " (ipsec-secrets \"/etc/ipsec.secrets\")))\n"
  41407. msgstr ""
  41408. #. type: deftp
  41409. #: guix-git/doc/guix.texi:27502
  41410. #, fuzzy, no-wrap
  41411. msgid "{Data Type} strongswan-configuration"
  41412. msgstr "系统配置"
  41413. #. type: deftp
  41414. #: guix-git/doc/guix.texi:27504
  41415. #, fuzzy
  41416. msgid "Data type representing the configuration of the StrongSwan service."
  41417. msgstr "管理操作系统配置。"
  41418. #. type: code{#1}
  41419. #: guix-git/doc/guix.texi:27506
  41420. #, no-wrap
  41421. msgid "strongswan"
  41422. msgstr ""
  41423. #. type: table
  41424. #: guix-git/doc/guix.texi:27508
  41425. #, fuzzy
  41426. msgid "The strongSwan package to use for this service."
  41427. msgstr "软件包数据类型。"
  41428. #. type: item
  41429. #: guix-git/doc/guix.texi:27509
  41430. #, fuzzy, no-wrap
  41431. msgid "@code{ipsec-conf} (default: @code{#f})"
  41432. msgstr "@code{port}(默认值:@code{22})"
  41433. #. type: table
  41434. #: guix-git/doc/guix.texi:27512
  41435. msgid "The file name of your @file{ipsec.conf}. If not @code{#f}, then this and @code{ipsec-secrets} must both be strings."
  41436. msgstr ""
  41437. #. type: item
  41438. #: guix-git/doc/guix.texi:27513
  41439. #, fuzzy, no-wrap
  41440. msgid "@code{ipsec-secrets} (default @code{#f})"
  41441. msgstr "@code{speed}(默认值:@code{1.0})"
  41442. #. type: table
  41443. #: guix-git/doc/guix.texi:27516
  41444. msgid "The file name of your @file{ipsec.secrets}. If not @code{#f}, then this and @code{ipsec-conf} must both be strings."
  41445. msgstr ""
  41446. #. type: subsubheading
  41447. #: guix-git/doc/guix.texi:27520
  41448. #, no-wrap
  41449. msgid "Wireguard"
  41450. msgstr ""
  41451. #. type: defvr
  41452. #: guix-git/doc/guix.texi:27522
  41453. #, no-wrap
  41454. msgid "{Scheme Variable} wireguard-service-type"
  41455. msgstr ""
  41456. #. type: defvr
  41457. #: guix-git/doc/guix.texi:27525
  41458. msgid "A service type for a Wireguard tunnel interface. Its value must be a @code{wireguard-configuration} record as in this example:"
  41459. msgstr ""
  41460. #. type: lisp
  41461. #: guix-git/doc/guix.texi:27536
  41462. #, no-wrap
  41463. msgid ""
  41464. "(service wireguard-service-type\n"
  41465. " (wireguard-configuration\n"
  41466. " (peers\n"
  41467. " (list\n"
  41468. " (wireguard-peer\n"
  41469. " (name \"my-peer\")\n"
  41470. " (endpoint \"my.wireguard.com:51820\")\n"
  41471. " (public-key \"hzpKg9X1yqu1axN6iJp0mWf6BZGo8m1wteKwtTmDGF4=\")\n"
  41472. " (allowed-ips '(\"10.0.0.2/32\")))))))\n"
  41473. msgstr ""
  41474. #. type: deftp
  41475. #: guix-git/doc/guix.texi:27540
  41476. #, fuzzy, no-wrap
  41477. msgid "{Data Type} wireguard-configuration"
  41478. msgstr "{数据类型} build-machine"
  41479. #. type: deftp
  41480. #: guix-git/doc/guix.texi:27542
  41481. #, fuzzy
  41482. msgid "Data type representing the configuration of the Wireguard service."
  41483. msgstr "管理操作系统配置。"
  41484. #. type: code{#1}
  41485. #: guix-git/doc/guix.texi:27544
  41486. #, no-wrap
  41487. msgid "wireguard"
  41488. msgstr ""
  41489. #. type: table
  41490. #: guix-git/doc/guix.texi:27546
  41491. #, fuzzy
  41492. msgid "The wireguard package to use for this service."
  41493. msgstr "软件包数据类型。"
  41494. #. type: item
  41495. #: guix-git/doc/guix.texi:27547
  41496. #, fuzzy, no-wrap
  41497. msgid "@code{interface} (default: @code{\"wg0\"})"
  41498. msgstr "@code{display}(默认值:@code{\":0\"})"
  41499. #. type: table
  41500. #: guix-git/doc/guix.texi:27549
  41501. msgid "The interface name for the VPN."
  41502. msgstr ""
  41503. #. type: item
  41504. #: guix-git/doc/guix.texi:27550
  41505. #, fuzzy, no-wrap
  41506. msgid "@code{addresses} (default: @code{'(\"10.0.0.1/32\")})"
  41507. msgstr "@code{display}(默认值:@code{\":0\"})"
  41508. #. type: table
  41509. #: guix-git/doc/guix.texi:27552
  41510. msgid "The IP addresses to be assigned to the above interface."
  41511. msgstr ""
  41512. #. type: item
  41513. #: guix-git/doc/guix.texi:27553
  41514. #, fuzzy, no-wrap
  41515. msgid "@code{private-key} (default: @code{\"/etc/wireguard/private.key\"})"
  41516. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41517. #. type: table
  41518. #: guix-git/doc/guix.texi:27556
  41519. msgid "The private key file for the interface. It is automatically generated if the file does not exist."
  41520. msgstr ""
  41521. #. type: item
  41522. #: guix-git/doc/guix.texi:27557
  41523. #, fuzzy, no-wrap
  41524. msgid "@code{peers} (default: @code{'()})"
  41525. msgstr "@code{features} (@code{'()})"
  41526. #. type: table
  41527. #: guix-git/doc/guix.texi:27560
  41528. msgid "The authorized peers on this interface. This is a list of @var{wireguard-peer} records."
  41529. msgstr ""
  41530. #. type: deftp
  41531. #: guix-git/doc/guix.texi:27564
  41532. #, fuzzy, no-wrap
  41533. msgid "{Data Type} wireguard-peer"
  41534. msgstr "{数据类型} build-machine"
  41535. #. type: deftp
  41536. #: guix-git/doc/guix.texi:27566
  41537. #, fuzzy
  41538. msgid "Data type representing a Wireguard peer attached to a given interface."
  41539. msgstr "管理操作系统配置。"
  41540. #. type: table
  41541. #: guix-git/doc/guix.texi:27570
  41542. #, fuzzy
  41543. msgid "The peer name."
  41544. msgstr "仓库monad"
  41545. #. type: item
  41546. #: guix-git/doc/guix.texi:27571
  41547. #, fuzzy, no-wrap
  41548. msgid "@code{endpoint} (default: @code{#f})"
  41549. msgstr "@code{port}(默认值:@code{22})"
  41550. #. type: table
  41551. #: guix-git/doc/guix.texi:27574
  41552. msgid "The optional endpoint for the peer, such as @code{\"demo.wireguard.com:51820\"}."
  41553. msgstr ""
  41554. #. type: itemx
  41555. #: guix-git/doc/guix.texi:27575 guix-git/doc/guix.texi:27970
  41556. #: guix-git/doc/guix.texi:28007 guix-git/doc/guix.texi:32926
  41557. #, no-wrap
  41558. msgid "public-key"
  41559. msgstr ""
  41560. #. type: table
  41561. #: guix-git/doc/guix.texi:27577
  41562. msgid "The peer public-key represented as a base64 string."
  41563. msgstr ""
  41564. #. type: code{#1}
  41565. #: guix-git/doc/guix.texi:27578
  41566. #, no-wrap
  41567. msgid "allowed-ips"
  41568. msgstr ""
  41569. #. type: table
  41570. #: guix-git/doc/guix.texi:27581
  41571. msgid "A list of IP addresses from which incoming traffic for this peer is allowed and to which incoming traffic for this peer is directed."
  41572. msgstr ""
  41573. #. type: item
  41574. #: guix-git/doc/guix.texi:27582
  41575. #, fuzzy, no-wrap
  41576. msgid "@code{keep-alive} (default: @code{#f})"
  41577. msgstr "@code{challenge}(默认值:@code{#f})"
  41578. #. type: table
  41579. #: guix-git/doc/guix.texi:27587
  41580. msgid "An optional time interval in seconds. A packet will be sent to the server endpoint once per time interval. This helps receiving incoming connections from this peer when you are behind a NAT or a firewall."
  41581. msgstr ""
  41582. #. type: cindex
  41583. #: guix-git/doc/guix.texi:27593
  41584. #, no-wrap
  41585. msgid "NFS"
  41586. msgstr ""
  41587. #. type: Plain text
  41588. #: guix-git/doc/guix.texi:27598
  41589. msgid "The @code{(gnu services nfs)} module provides the following services, which are most commonly used in relation to mounting or exporting directory trees as @dfn{network file systems} (NFS)."
  41590. msgstr ""
  41591. #. type: Plain text
  41592. #: guix-git/doc/guix.texi:27602
  41593. msgid "While it is possible to use the individual components that together make up a Network File System service, we recommended to configure an NFS server with the @code{nfs-service-type}."
  41594. msgstr ""
  41595. #. type: subsubheading
  41596. #: guix-git/doc/guix.texi:27603
  41597. #, fuzzy, no-wrap
  41598. msgid "NFS Service"
  41599. msgstr "DNS服务"
  41600. #. type: cindex
  41601. #: guix-git/doc/guix.texi:27604
  41602. #, fuzzy, no-wrap
  41603. msgid "NFS, server"
  41604. msgstr "Web服务。"
  41605. #. type: Plain text
  41606. #: guix-git/doc/guix.texi:27609
  41607. msgid "The NFS service takes care of setting up all NFS component services, kernel configuration file systems, and installs configuration files in the locations that NFS expects."
  41608. msgstr ""
  41609. #. type: defvr
  41610. #: guix-git/doc/guix.texi:27610
  41611. #, no-wrap
  41612. msgid "{Scheme Variable} nfs-service-type"
  41613. msgstr ""
  41614. #. type: defvr
  41615. #: guix-git/doc/guix.texi:27612
  41616. msgid "A service type for a complete NFS server."
  41617. msgstr ""
  41618. #. type: deftp
  41619. #: guix-git/doc/guix.texi:27614
  41620. #, fuzzy, no-wrap
  41621. msgid "{Data Type} nfs-configuration"
  41622. msgstr "系统配置"
  41623. #. type: deftp
  41624. #: guix-git/doc/guix.texi:27617
  41625. msgid "This data type represents the configuration of the NFS service and all of its subsystems."
  41626. msgstr ""
  41627. #. type: deftp
  41628. #: guix-git/doc/guix.texi:27619
  41629. #, fuzzy
  41630. msgid "It has the following parameters:"
  41631. msgstr "GNU Guix依赖这些软件包:"
  41632. #. type: item
  41633. #: guix-git/doc/guix.texi:27620 guix-git/doc/guix.texi:27745
  41634. #: guix-git/doc/guix.texi:27770
  41635. #, no-wrap
  41636. msgid "@code{nfs-utils} (default: @code{nfs-utils})"
  41637. msgstr ""
  41638. #. type: table
  41639. #: guix-git/doc/guix.texi:27622
  41640. #, fuzzy
  41641. msgid "The nfs-utils package to use."
  41642. msgstr "软件包数据类型。"
  41643. #. type: item
  41644. #: guix-git/doc/guix.texi:27623
  41645. #, fuzzy, no-wrap
  41646. msgid "@code{nfs-versions} (default: @code{'(\"4.2\" \"4.1\" \"4.0\")})"
  41647. msgstr "@code{features} (@code{'()})"
  41648. #. type: table
  41649. #: guix-git/doc/guix.texi:27626
  41650. msgid "If a list of string values is provided, the @command{rpc.nfsd} daemon will be limited to supporting the given versions of the NFS protocol."
  41651. msgstr ""
  41652. #. type: item
  41653. #: guix-git/doc/guix.texi:27627
  41654. #, fuzzy, no-wrap
  41655. msgid "@code{exports} (default: @code{'()})"
  41656. msgstr "@code{port}(默认值:@code{22})"
  41657. #. type: table
  41658. #: guix-git/doc/guix.texi:27632
  41659. msgid "This is a list of directories the NFS server should export. Each entry is a list consisting of two elements: a directory name and a string containing all options. This is an example in which the directory @file{/export} is served to all NFS clients as a read-only share:"
  41660. msgstr ""
  41661. #. type: lisp
  41662. #: guix-git/doc/guix.texi:27638
  41663. #, no-wrap
  41664. msgid ""
  41665. "(nfs-configuration\n"
  41666. " (exports\n"
  41667. " '((\"/export\"\n"
  41668. " \"*(ro,insecure,no_subtree_check,crossmnt,fsid=0)\"))))\n"
  41669. msgstr ""
  41670. #. type: item
  41671. #: guix-git/doc/guix.texi:27640
  41672. #, fuzzy, no-wrap
  41673. msgid "@code{rpcmountd-port} (default: @code{#f})"
  41674. msgstr "@code{port}(默认值:@code{22})"
  41675. #. type: table
  41676. #: guix-git/doc/guix.texi:27642
  41677. msgid "The network port that the @command{rpc.mountd} daemon should use."
  41678. msgstr ""
  41679. #. type: item
  41680. #: guix-git/doc/guix.texi:27643
  41681. #, fuzzy, no-wrap
  41682. msgid "@code{rpcstatd-port} (default: @code{#f})"
  41683. msgstr "@code{port}(默认值:@code{22})"
  41684. #. type: table
  41685. #: guix-git/doc/guix.texi:27645
  41686. msgid "The network port that the @command{rpc.statd} daemon should use."
  41687. msgstr ""
  41688. #. type: item
  41689. #: guix-git/doc/guix.texi:27646 guix-git/doc/guix.texi:27694
  41690. #, no-wrap
  41691. msgid "@code{rpcbind} (default: @code{rpcbind})"
  41692. msgstr ""
  41693. #. type: table
  41694. #: guix-git/doc/guix.texi:27648 guix-git/doc/guix.texi:27696
  41695. msgid "The rpcbind package to use."
  41696. msgstr ""
  41697. #. type: item
  41698. #: guix-git/doc/guix.texi:27649
  41699. #, fuzzy, no-wrap
  41700. msgid "@code{idmap-domain} (default: @code{\"localdomain\"})"
  41701. msgstr "@code{mate}(默认值:@code{mate})"
  41702. #. type: table
  41703. #: guix-git/doc/guix.texi:27651
  41704. msgid "The local NFSv4 domain name."
  41705. msgstr ""
  41706. #. type: item
  41707. #: guix-git/doc/guix.texi:27652
  41708. #, fuzzy, no-wrap
  41709. msgid "@code{nfsd-port} (default: @code{2049})"
  41710. msgstr "@code{port}(默认值:@code{22})"
  41711. #. type: table
  41712. #: guix-git/doc/guix.texi:27654
  41713. msgid "The network port that the @command{nfsd} daemon should use."
  41714. msgstr ""
  41715. #. type: item
  41716. #: guix-git/doc/guix.texi:27655
  41717. #, fuzzy, no-wrap
  41718. msgid "@code{nfsd-threads} (default: @code{8})"
  41719. msgstr "@code{features} (@code{'()})"
  41720. #. type: table
  41721. #: guix-git/doc/guix.texi:27657
  41722. msgid "The number of threads used by the @command{nfsd} daemon."
  41723. msgstr ""
  41724. #. type: item
  41725. #: guix-git/doc/guix.texi:27658
  41726. #, fuzzy, no-wrap
  41727. msgid "@code{nfsd-tcp?} (default: @code{#t})"
  41728. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  41729. #. type: table
  41730. #: guix-git/doc/guix.texi:27660
  41731. msgid "Whether the @command{nfsd} daemon should listen on a TCP socket."
  41732. msgstr ""
  41733. #. type: item
  41734. #: guix-git/doc/guix.texi:27661
  41735. #, fuzzy, no-wrap
  41736. msgid "@code{nfsd-udp?} (default: @code{#f})"
  41737. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  41738. #. type: table
  41739. #: guix-git/doc/guix.texi:27663
  41740. msgid "Whether the @command{nfsd} daemon should listen on a UDP socket."
  41741. msgstr ""
  41742. #. type: item
  41743. #: guix-git/doc/guix.texi:27664 guix-git/doc/guix.texi:27748
  41744. #: guix-git/doc/guix.texi:27773
  41745. #, no-wrap
  41746. msgid "@code{pipefs-directory} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  41747. msgstr ""
  41748. #. type: table
  41749. #: guix-git/doc/guix.texi:27666 guix-git/doc/guix.texi:27750
  41750. #: guix-git/doc/guix.texi:27775
  41751. msgid "The directory where the pipefs file system is mounted."
  41752. msgstr ""
  41753. #. type: item
  41754. #: guix-git/doc/guix.texi:27667
  41755. #, fuzzy, no-wrap
  41756. msgid "@code{debug} (default: @code{'()\"})"
  41757. msgstr "@code{features} (@code{'()})"
  41758. #. type: table
  41759. #: guix-git/doc/guix.texi:27671
  41760. msgid "A list of subsystems for which debugging output should be enabled. This is a list of symbols. Any of these symbols are valid: @code{nfsd}, @code{nfs}, @code{rpc}, @code{idmap}, @code{statd}, or @code{mountd}."
  41761. msgstr ""
  41762. #. type: Plain text
  41763. #: guix-git/doc/guix.texi:27676
  41764. msgid "If you don't need a complete NFS service or prefer to build it yourself you can use the individual component services that are documented below."
  41765. msgstr ""
  41766. #. type: subsubheading
  41767. #: guix-git/doc/guix.texi:27677
  41768. #, no-wrap
  41769. msgid "RPC Bind Service"
  41770. msgstr ""
  41771. #. type: cindex
  41772. #: guix-git/doc/guix.texi:27678
  41773. #, no-wrap
  41774. msgid "rpcbind"
  41775. msgstr ""
  41776. #. type: Plain text
  41777. #: guix-git/doc/guix.texi:27684
  41778. msgid "The RPC Bind service provides a facility to map program numbers into universal addresses. Many NFS related services use this facility. Hence it is automatically started when a dependent service starts."
  41779. msgstr ""
  41780. #. type: defvr
  41781. #: guix-git/doc/guix.texi:27685
  41782. #, no-wrap
  41783. msgid "{Scheme Variable} rpcbind-service-type"
  41784. msgstr ""
  41785. #. type: defvr
  41786. #: guix-git/doc/guix.texi:27687
  41787. msgid "A service type for the RPC portmapper daemon."
  41788. msgstr ""
  41789. #. type: deftp
  41790. #: guix-git/doc/guix.texi:27690
  41791. #, no-wrap
  41792. msgid "{Data Type} rpcbind-configuration"
  41793. msgstr ""
  41794. #. type: deftp
  41795. #: guix-git/doc/guix.texi:27693
  41796. msgid "Data type representing the configuration of the RPC Bind Service. This type has the following parameters:"
  41797. msgstr ""
  41798. #. type: item
  41799. #: guix-git/doc/guix.texi:27697
  41800. #, no-wrap
  41801. msgid "@code{warm-start?} (default: @code{#t})"
  41802. msgstr ""
  41803. #. type: table
  41804. #: guix-git/doc/guix.texi:27701
  41805. msgid "If this parameter is @code{#t}, then the daemon will read a state file on startup thus reloading state information saved by a previous instance."
  41806. msgstr ""
  41807. #. type: subsubheading
  41808. #: guix-git/doc/guix.texi:27705
  41809. #, no-wrap
  41810. msgid "Pipefs Pseudo File System"
  41811. msgstr ""
  41812. #. type: cindex
  41813. #: guix-git/doc/guix.texi:27706
  41814. #, no-wrap
  41815. msgid "pipefs"
  41816. msgstr ""
  41817. #. type: cindex
  41818. #: guix-git/doc/guix.texi:27707
  41819. #, no-wrap
  41820. msgid "rpc_pipefs"
  41821. msgstr ""
  41822. #. type: Plain text
  41823. #: guix-git/doc/guix.texi:27711
  41824. msgid "The pipefs file system is used to transfer NFS related data between the kernel and user space programs."
  41825. msgstr ""
  41826. #. type: defvr
  41827. #: guix-git/doc/guix.texi:27712
  41828. #, no-wrap
  41829. msgid "{Scheme Variable} pipefs-service-type"
  41830. msgstr ""
  41831. #. type: defvr
  41832. #: guix-git/doc/guix.texi:27714
  41833. msgid "A service type for the pipefs pseudo file system."
  41834. msgstr ""
  41835. #. type: deftp
  41836. #: guix-git/doc/guix.texi:27716
  41837. #, no-wrap
  41838. msgid "{Data Type} pipefs-configuration"
  41839. msgstr ""
  41840. #. type: deftp
  41841. #: guix-git/doc/guix.texi:27719
  41842. msgid "Data type representing the configuration of the pipefs pseudo file system service. This type has the following parameters:"
  41843. msgstr ""
  41844. #. type: item
  41845. #: guix-git/doc/guix.texi:27720
  41846. #, no-wrap
  41847. msgid "@code{mount-point} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  41848. msgstr ""
  41849. #. type: table
  41850. #: guix-git/doc/guix.texi:27722
  41851. msgid "The directory to which the file system is to be attached."
  41852. msgstr ""
  41853. #. type: subsubheading
  41854. #: guix-git/doc/guix.texi:27726
  41855. #, no-wrap
  41856. msgid "GSS Daemon Service"
  41857. msgstr ""
  41858. #. type: cindex
  41859. #: guix-git/doc/guix.texi:27727
  41860. #, no-wrap
  41861. msgid "GSSD"
  41862. msgstr ""
  41863. #. type: cindex
  41864. #: guix-git/doc/guix.texi:27728
  41865. #, no-wrap
  41866. msgid "GSS"
  41867. msgstr ""
  41868. #. type: cindex
  41869. #: guix-git/doc/guix.texi:27729
  41870. #, no-wrap
  41871. msgid "global security system"
  41872. msgstr ""
  41873. #. type: Plain text
  41874. #: guix-git/doc/guix.texi:27736
  41875. msgid "The @dfn{global security system} (GSS) daemon provides strong security for RPC based protocols. Before exchanging RPC requests an RPC client must establish a security context. Typically this is done using the Kerberos command @command{kinit} or automatically at login time using PAM services (@pxref{Kerberos Services})."
  41876. msgstr ""
  41877. #. type: defvr
  41878. #: guix-git/doc/guix.texi:27737
  41879. #, no-wrap
  41880. msgid "{Scheme Variable} gss-service-type"
  41881. msgstr ""
  41882. #. type: defvr
  41883. #: guix-git/doc/guix.texi:27739
  41884. msgid "A service type for the Global Security System (GSS) daemon."
  41885. msgstr ""
  41886. #. type: deftp
  41887. #: guix-git/doc/guix.texi:27741
  41888. #, no-wrap
  41889. msgid "{Data Type} gss-configuration"
  41890. msgstr ""
  41891. #. type: deftp
  41892. #: guix-git/doc/guix.texi:27744
  41893. msgid "Data type representing the configuration of the GSS daemon service. This type has the following parameters:"
  41894. msgstr ""
  41895. #. type: table
  41896. #: guix-git/doc/guix.texi:27747
  41897. msgid "The package in which the @command{rpc.gssd} command is to be found."
  41898. msgstr ""
  41899. #. type: subsubheading
  41900. #: guix-git/doc/guix.texi:27755
  41901. #, no-wrap
  41902. msgid "IDMAP Daemon Service"
  41903. msgstr ""
  41904. #. type: cindex
  41905. #: guix-git/doc/guix.texi:27756
  41906. #, no-wrap
  41907. msgid "idmapd"
  41908. msgstr ""
  41909. #. type: cindex
  41910. #: guix-git/doc/guix.texi:27757
  41911. #, no-wrap
  41912. msgid "name mapper"
  41913. msgstr ""
  41914. #. type: Plain text
  41915. #: guix-git/doc/guix.texi:27761
  41916. msgid "The idmap daemon service provides mapping between user IDs and user names. Typically it is required in order to access file systems mounted via NFSv4."
  41917. msgstr ""
  41918. #. type: defvr
  41919. #: guix-git/doc/guix.texi:27762
  41920. #, no-wrap
  41921. msgid "{Scheme Variable} idmap-service-type"
  41922. msgstr ""
  41923. #. type: defvr
  41924. #: guix-git/doc/guix.texi:27764
  41925. msgid "A service type for the Identity Mapper (IDMAP) daemon."
  41926. msgstr ""
  41927. #. type: deftp
  41928. #: guix-git/doc/guix.texi:27766
  41929. #, no-wrap
  41930. msgid "{Data Type} idmap-configuration"
  41931. msgstr ""
  41932. #. type: deftp
  41933. #: guix-git/doc/guix.texi:27769
  41934. msgid "Data type representing the configuration of the IDMAP daemon service. This type has the following parameters:"
  41935. msgstr ""
  41936. #. type: table
  41937. #: guix-git/doc/guix.texi:27772
  41938. msgid "The package in which the @command{rpc.idmapd} command is to be found."
  41939. msgstr ""
  41940. #. type: item
  41941. #: guix-git/doc/guix.texi:27776
  41942. #, no-wrap
  41943. msgid "@code{domain} (default: @code{#f})"
  41944. msgstr ""
  41945. #. type: table
  41946. #: guix-git/doc/guix.texi:27780
  41947. msgid "The local NFSv4 domain name. This must be a string or @code{#f}. If it is @code{#f} then the daemon will use the host's fully qualified domain name."
  41948. msgstr ""
  41949. #. type: item
  41950. #: guix-git/doc/guix.texi:27781
  41951. #, fuzzy, no-wrap
  41952. msgid "@code{verbosity} (default: @code{0})"
  41953. msgstr "@code{port}(默认值:@code{22})"
  41954. #. type: table
  41955. #: guix-git/doc/guix.texi:27783
  41956. #, fuzzy
  41957. msgid "The verbosity level of the daemon."
  41958. msgstr "远程机器的主机名。"
  41959. #. type: Plain text
  41960. #: guix-git/doc/guix.texi:27794
  41961. msgid "@uref{https://guix.gnu.org/cuirass/, Cuirass} is a continuous integration tool for Guix. It can be used both for development and for providing substitutes to others (@pxref{Substitutes})."
  41962. msgstr ""
  41963. #. type: Plain text
  41964. #: guix-git/doc/guix.texi:27796
  41965. msgid "The @code{(gnu services cuirass)} module provides the following service."
  41966. msgstr ""
  41967. #. type: defvr
  41968. #: guix-git/doc/guix.texi:27797
  41969. #, no-wrap
  41970. msgid "{Scheme Procedure} cuirass-service-type"
  41971. msgstr ""
  41972. #. type: defvr
  41973. #: guix-git/doc/guix.texi:27800
  41974. msgid "The type of the Cuirass service. Its value must be a @code{cuirass-configuration} object, as described below."
  41975. msgstr ""
  41976. #. type: Plain text
  41977. #: guix-git/doc/guix.texi:27805
  41978. msgid "To add build jobs, you have to set the @code{specifications} field of the configuration. For instance, the following example will build all the packages provided by the @code{my-channel} channel."
  41979. msgstr ""
  41980. #. type: lisp
  41981. #: guix-git/doc/guix.texi:27816
  41982. #, no-wrap
  41983. msgid ""
  41984. "(define %cuirass-specs\n"
  41985. " #~(list (specification\n"
  41986. " (name \"my-channel\")\n"
  41987. " (build '(channels my-channel))\n"
  41988. " (channels\n"
  41989. " (cons (channel\n"
  41990. " (name 'my-channel)\n"
  41991. " (url \"https://my-channel.git\"))\n"
  41992. " %default-channels)))))\n"
  41993. "\n"
  41994. msgstr ""
  41995. #. type: lisp
  41996. #: guix-git/doc/guix.texi:27820 guix-git/doc/guix.texi:27834
  41997. #, no-wrap
  41998. msgid ""
  41999. "(service cuirass-service-type\n"
  42000. " (cuirass-configuration\n"
  42001. " (specifications %cuirass-specs)))\n"
  42002. msgstr ""
  42003. #. type: Plain text
  42004. #: guix-git/doc/guix.texi:27824
  42005. msgid "To build the @code{linux-libre} package defined by the default Guix channel, one can use the following configuration."
  42006. msgstr ""
  42007. #. type: lisp
  42008. #: guix-git/doc/guix.texi:27830
  42009. #, no-wrap
  42010. msgid ""
  42011. "(define %cuirass-specs\n"
  42012. " #~(list (specification\n"
  42013. " (name \"my-linux\")\n"
  42014. " (build '(packages \"linux-libre\")))))\n"
  42015. "\n"
  42016. msgstr ""
  42017. #. type: Plain text
  42018. #: guix-git/doc/guix.texi:27839
  42019. msgid "The other configuration possibilities, as well as the specification record itself are described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  42020. msgstr ""
  42021. #. type: Plain text
  42022. #: guix-git/doc/guix.texi:27843
  42023. msgid "While information related to build jobs is located directly in the specifications, global settings for the @command{cuirass} process are accessible in other @code{cuirass-configuration} fields."
  42024. msgstr ""
  42025. #. type: deftp
  42026. #: guix-git/doc/guix.texi:27844
  42027. #, no-wrap
  42028. msgid "{Data Type} cuirass-configuration"
  42029. msgstr ""
  42030. #. type: deftp
  42031. #: guix-git/doc/guix.texi:27846
  42032. msgid "Data type representing the configuration of Cuirass."
  42033. msgstr ""
  42034. #. type: item
  42035. #: guix-git/doc/guix.texi:27848 guix-git/doc/guix.texi:27985
  42036. #, no-wrap
  42037. msgid "@code{cuirass} (default: @code{cuirass})"
  42038. msgstr ""
  42039. #. type: table
  42040. #: guix-git/doc/guix.texi:27850 guix-git/doc/guix.texi:27987
  42041. msgid "The Cuirass package to use."
  42042. msgstr ""
  42043. #. type: item
  42044. #: guix-git/doc/guix.texi:27851
  42045. #, no-wrap
  42046. msgid "@code{log-file} (default: @code{\"/var/log/cuirass.log\"})"
  42047. msgstr ""
  42048. #. type: table
  42049. #: guix-git/doc/guix.texi:27853 guix-git/doc/guix.texi:27957
  42050. #: guix-git/doc/guix.texi:28000
  42051. msgid "Location of the log file."
  42052. msgstr ""
  42053. #. type: item
  42054. #: guix-git/doc/guix.texi:27854
  42055. #, fuzzy, no-wrap
  42056. msgid "@code{web-log-file} (default: @code{\"/var/log/cuirass-web.log\"})"
  42057. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42058. #. type: table
  42059. #: guix-git/doc/guix.texi:27856
  42060. msgid "Location of the log file used by the web interface."
  42061. msgstr ""
  42062. #. type: item
  42063. #: guix-git/doc/guix.texi:27857
  42064. #, no-wrap
  42065. msgid "@code{cache-directory} (default: @code{\"/var/cache/cuirass\"})"
  42066. msgstr ""
  42067. #. type: table
  42068. #: guix-git/doc/guix.texi:27859
  42069. msgid "Location of the repository cache."
  42070. msgstr ""
  42071. #. type: item
  42072. #: guix-git/doc/guix.texi:27860
  42073. #, no-wrap
  42074. msgid "@code{user} (default: @code{\"cuirass\"})"
  42075. msgstr ""
  42076. #. type: table
  42077. #: guix-git/doc/guix.texi:27862
  42078. msgid "Owner of the @code{cuirass} process."
  42079. msgstr ""
  42080. #. type: item
  42081. #: guix-git/doc/guix.texi:27863
  42082. #, no-wrap
  42083. msgid "@code{group} (default: @code{\"cuirass\"})"
  42084. msgstr ""
  42085. #. type: table
  42086. #: guix-git/doc/guix.texi:27865
  42087. msgid "Owner's group of the @code{cuirass} process."
  42088. msgstr ""
  42089. #. type: item
  42090. #: guix-git/doc/guix.texi:27866
  42091. #, no-wrap
  42092. msgid "@code{interval} (default: @code{60})"
  42093. msgstr ""
  42094. #. type: table
  42095. #: guix-git/doc/guix.texi:27869
  42096. msgid "Number of seconds between the poll of the repositories followed by the Cuirass jobs."
  42097. msgstr ""
  42098. #. type: item
  42099. #: guix-git/doc/guix.texi:27870
  42100. #, fuzzy, no-wrap
  42101. msgid "@code{parameters} (default: @code{#f})"
  42102. msgstr "@code{port}(默认值:@code{22})"
  42103. #. type: table
  42104. #: guix-git/doc/guix.texi:27873
  42105. msgid "Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass})."
  42106. msgstr ""
  42107. #. type: item
  42108. #: guix-git/doc/guix.texi:27874
  42109. #, fuzzy, no-wrap
  42110. msgid "@code{remote-server} (default: @code{#f})"
  42111. msgstr "@code{speed}(默认值:@code{1.0})"
  42112. #. type: table
  42113. #: guix-git/doc/guix.texi:27877
  42114. msgid "A @code{cuirass-remote-server-configuration} record to use the build remote mechanism or @code{#f} to use the default build mechanism."
  42115. msgstr ""
  42116. #. type: item
  42117. #: guix-git/doc/guix.texi:27878
  42118. #, fuzzy, no-wrap
  42119. msgid "@code{database} (default: @code{\"dbname=cuirass host=/var/run/postgresql\"})"
  42120. msgstr "@code{port}(默认值:@code{22})"
  42121. #. type: table
  42122. #: guix-git/doc/guix.texi:27883
  42123. msgid "Use @var{database} as the database containing the jobs and the past build results. Since Cuirass uses PostgreSQL as a database engine, @var{database} must be a string such as @code{\"dbname=cuirass host=localhost\"}."
  42124. msgstr ""
  42125. #. type: item
  42126. #: guix-git/doc/guix.texi:27884
  42127. #, no-wrap
  42128. msgid "@code{port} (default: @code{8081})"
  42129. msgstr ""
  42130. #. type: table
  42131. #: guix-git/doc/guix.texi:27886
  42132. msgid "Port number used by the HTTP server."
  42133. msgstr ""
  42134. #. type: table
  42135. #: guix-git/doc/guix.texi:27890
  42136. msgid "Listen on the network interface for @var{host}. The default is to accept connections from localhost."
  42137. msgstr ""
  42138. #. type: item
  42139. #: guix-git/doc/guix.texi:27891
  42140. #, no-wrap
  42141. msgid "@code{specifications} (default: @code{#~'()})"
  42142. msgstr ""
  42143. #. type: table
  42144. #: guix-git/doc/guix.texi:27895
  42145. msgid "A gexp (@pxref{G-Expressions}) that evaluates to a list of specifications records. The specification record is described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  42146. msgstr ""
  42147. #. type: item
  42148. #: guix-git/doc/guix.texi:27896
  42149. #, no-wrap
  42150. msgid "@code{use-substitutes?} (default: @code{#f})"
  42151. msgstr ""
  42152. #. type: table
  42153. #: guix-git/doc/guix.texi:27899
  42154. msgid "This allows using substitutes to avoid building every dependencies of a job from source."
  42155. msgstr ""
  42156. #. type: item
  42157. #: guix-git/doc/guix.texi:27900 guix-git/doc/guix.texi:34918
  42158. #, no-wrap
  42159. msgid "@code{one-shot?} (default: @code{#f})"
  42160. msgstr ""
  42161. #. type: table
  42162. #: guix-git/doc/guix.texi:27902
  42163. msgid "Only evaluate specifications and build derivations once."
  42164. msgstr ""
  42165. #. type: item
  42166. #: guix-git/doc/guix.texi:27903
  42167. #, no-wrap
  42168. msgid "@code{fallback?} (default: @code{#f})"
  42169. msgstr ""
  42170. #. type: table
  42171. #: guix-git/doc/guix.texi:27906
  42172. msgid "When substituting a pre-built binary fails, fall back to building packages locally."
  42173. msgstr ""
  42174. #. type: table
  42175. #: guix-git/doc/guix.texi:27909
  42176. msgid "Extra options to pass when running the Cuirass processes."
  42177. msgstr ""
  42178. #. type: cindex
  42179. #: guix-git/doc/guix.texi:27913
  42180. #, fuzzy, no-wrap
  42181. msgid "remote build"
  42182. msgstr "可复现的构建"
  42183. #. type: subsubheading
  42184. #: guix-git/doc/guix.texi:27914
  42185. #, no-wrap
  42186. msgid "Cuirass remote building"
  42187. msgstr ""
  42188. #. type: Plain text
  42189. #: guix-git/doc/guix.texi:27917
  42190. msgid "Cuirass supports two mechanisms to build derivations."
  42191. msgstr ""
  42192. #. type: item
  42193. #: guix-git/doc/guix.texi:27919
  42194. #, fuzzy, no-wrap
  42195. msgid "Using the local Guix daemon."
  42196. msgstr "运行“构建后台进程”"
  42197. #. type: itemize
  42198. #: guix-git/doc/guix.texi:27923
  42199. msgid "This is the default build mechanism. Once the build jobs are evaluated, they are sent to the local Guix daemon. Cuirass then listens to the Guix daemon output to detect the various build events."
  42200. msgstr ""
  42201. #. type: item
  42202. #: guix-git/doc/guix.texi:27924
  42203. #, fuzzy, no-wrap
  42204. msgid "Using the remote build mechanism."
  42205. msgstr "准备隔离的构建环境。"
  42206. #. type: itemize
  42207. #: guix-git/doc/guix.texi:27928
  42208. msgid "The build jobs are not submitted to the local Guix daemon. Instead, a remote server dispatches build requests to the connect remote workers, according to the build priorities."
  42209. msgstr ""
  42210. #. type: Plain text
  42211. #: guix-git/doc/guix.texi:27935
  42212. msgid "To enable this build mode a @code{cuirass-remote-server-configuration} record must be passed as @code{remote-server} argument of the @code{cuirass-configuration} record. The @code{cuirass-remote-server-configuration} record is described below."
  42213. msgstr ""
  42214. #. type: Plain text
  42215. #: guix-git/doc/guix.texi:27940
  42216. msgid "This build mode scales way better than the default build mode. This is the build mode that is used on the GNU Guix build farm at @url{https://ci.guix.gnu.org}. It should be preferred when using Cuirass to build large amount of packages."
  42217. msgstr ""
  42218. #. type: deftp
  42219. #: guix-git/doc/guix.texi:27941
  42220. #, fuzzy, no-wrap
  42221. msgid "{Data Type} cuirass-remote-server-configuration"
  42222. msgstr "{数据类型} build-machine"
  42223. #. type: deftp
  42224. #: guix-git/doc/guix.texi:27943
  42225. #, fuzzy
  42226. msgid "Data type representing the configuration of the Cuirass remote-server."
  42227. msgstr "管理操作系统配置。"
  42228. #. type: item
  42229. #: guix-git/doc/guix.texi:27945
  42230. #, fuzzy, no-wrap
  42231. msgid "@code{backend-port} (default: @code{5555})"
  42232. msgstr "@code{port}(默认值:@code{22})"
  42233. #. type: table
  42234. #: guix-git/doc/guix.texi:27948
  42235. msgid "The TCP port for communicating with @code{remote-worker} processes using ZMQ. It defaults to @code{5555}."
  42236. msgstr ""
  42237. #. type: item
  42238. #: guix-git/doc/guix.texi:27949
  42239. #, fuzzy, no-wrap
  42240. msgid "@code{log-port} (default: @code{5556})"
  42241. msgstr "@code{port}(默认值:@code{22})"
  42242. #. type: table
  42243. #: guix-git/doc/guix.texi:27951
  42244. msgid "The TCP port of the log server. It defaults to @code{5556}."
  42245. msgstr ""
  42246. #. type: item
  42247. #: guix-git/doc/guix.texi:27952
  42248. #, fuzzy, no-wrap
  42249. msgid "@code{publish-port} (default: @code{5557})"
  42250. msgstr "@code{port}(默认值:@code{22})"
  42251. #. type: table
  42252. #: guix-git/doc/guix.texi:27954
  42253. msgid "The TCP port of the publish server. It defaults to @code{5557}."
  42254. msgstr ""
  42255. #. type: item
  42256. #: guix-git/doc/guix.texi:27955
  42257. #, fuzzy, no-wrap
  42258. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-server.log\"})"
  42259. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42260. #. type: item
  42261. #: guix-git/doc/guix.texi:27958
  42262. #, fuzzy, no-wrap
  42263. msgid "@code{cache} (default: @code{\"/var/cache/cuirass/remote\"})"
  42264. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42265. #. type: table
  42266. #: guix-git/doc/guix.texi:27960
  42267. msgid "Use @var{cache} directory to cache build log files."
  42268. msgstr ""
  42269. #. type: item
  42270. #: guix-git/doc/guix.texi:27961
  42271. #, fuzzy, no-wrap
  42272. msgid "@code{trigger-url} (default: @code{#f})"
  42273. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42274. #. type: table
  42275. #: guix-git/doc/guix.texi:27964
  42276. msgid "Once a substitute is successfully fetched, trigger substitute baking at @var{trigger-url}."
  42277. msgstr ""
  42278. #. type: table
  42279. #: guix-git/doc/guix.texi:27969
  42280. msgid "If set to false, do not start a publish server and ignore the @code{publish-port} argument. This can be useful if there is already a standalone publish server standing next to the remote server."
  42281. msgstr ""
  42282. #. type: code{#1}
  42283. #: guix-git/doc/guix.texi:27971 guix-git/doc/guix.texi:28008
  42284. #, no-wrap
  42285. msgid "private-key"
  42286. msgstr ""
  42287. #. type: Plain text
  42288. #: guix-git/doc/guix.texi:27980
  42289. msgid "At least one remote worker must also be started on any machine of the local network to actually perform the builds and report their status."
  42290. msgstr ""
  42291. #. type: deftp
  42292. #: guix-git/doc/guix.texi:27981
  42293. #, fuzzy, no-wrap
  42294. msgid "{Data Type} cuirass-remote-worker-configuration"
  42295. msgstr "{数据类型} build-machine"
  42296. #. type: deftp
  42297. #: guix-git/doc/guix.texi:27983
  42298. #, fuzzy
  42299. msgid "Data type representing the configuration of the Cuirass remote-worker."
  42300. msgstr "管理操作系统配置。"
  42301. #. type: item
  42302. #: guix-git/doc/guix.texi:27988
  42303. #, fuzzy, no-wrap
  42304. msgid "@code{workers} (default: @code{1})"
  42305. msgstr "@code{features} (@code{'()})"
  42306. #. type: table
  42307. #: guix-git/doc/guix.texi:27990
  42308. msgid "Start @var{workers} parallel workers."
  42309. msgstr ""
  42310. #. type: table
  42311. #: guix-git/doc/guix.texi:27994
  42312. msgid "Do not use Avahi discovery and connect to the given @code{server} IP address instead."
  42313. msgstr ""
  42314. #. type: item
  42315. #: guix-git/doc/guix.texi:27995
  42316. #, fuzzy, no-wrap
  42317. msgid "@code{systems} (default: @code{(list (%current-system))})"
  42318. msgstr "@code{port}(默认值:@code{22})"
  42319. #. type: table
  42320. #: guix-git/doc/guix.texi:27997
  42321. msgid "Only request builds for the given @var{systems}."
  42322. msgstr ""
  42323. #. type: item
  42324. #: guix-git/doc/guix.texi:27998
  42325. #, fuzzy, no-wrap
  42326. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-worker.log\"})"
  42327. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42328. #. type: item
  42329. #: guix-git/doc/guix.texi:28001
  42330. #, fuzzy, no-wrap
  42331. msgid "@code{publish-port} (default: @code{5558})"
  42332. msgstr "@code{port}(默认值:@code{22})"
  42333. #. type: table
  42334. #: guix-git/doc/guix.texi:28003
  42335. msgid "The TCP port of the publish server. It defaults to @code{5558}."
  42336. msgstr ""
  42337. #. type: subsubheading
  42338. #: guix-git/doc/guix.texi:28015
  42339. #, no-wrap
  42340. msgid "Laminar"
  42341. msgstr ""
  42342. #. type: Plain text
  42343. #: guix-git/doc/guix.texi:28020
  42344. msgid "@uref{https://laminar.ohwg.net/, Laminar} is a lightweight and modular Continuous Integration service. It doesn't have a configuration web UI instead uses version-controllable configuration files and scripts."
  42345. msgstr ""
  42346. #. type: Plain text
  42347. #: guix-git/doc/guix.texi:28023
  42348. msgid "Laminar encourages the use of existing tools such as bash and cron instead of reinventing them."
  42349. msgstr ""
  42350. #. type: defvr
  42351. #: guix-git/doc/guix.texi:28024
  42352. #, no-wrap
  42353. msgid "{Scheme Procedure} laminar-service-type"
  42354. msgstr ""
  42355. #. type: defvr
  42356. #: guix-git/doc/guix.texi:28027
  42357. msgid "The type of the Laminar service. Its value must be a @code{laminar-configuration} object, as described below."
  42358. msgstr ""
  42359. #. type: defvr
  42360. #: guix-git/doc/guix.texi:28031
  42361. msgid "All configuration values have defaults, a minimal configuration to get Laminar running is shown below. By default, the web interface is available on port 8080."
  42362. msgstr ""
  42363. #. type: lisp
  42364. #: guix-git/doc/guix.texi:28034
  42365. #, no-wrap
  42366. msgid "(service laminar-service-type)\n"
  42367. msgstr ""
  42368. #. type: deftp
  42369. #: guix-git/doc/guix.texi:28037
  42370. #, fuzzy, no-wrap
  42371. msgid "{Data Type} laminar-configuration"
  42372. msgstr "{数据类型} build-machine"
  42373. #. type: deftp
  42374. #: guix-git/doc/guix.texi:28039
  42375. #, fuzzy
  42376. msgid "Data type representing the configuration of Laminar."
  42377. msgstr "管理操作系统配置。"
  42378. #. type: item
  42379. #: guix-git/doc/guix.texi:28041
  42380. #, fuzzy, no-wrap
  42381. msgid "@code{laminar} (default: @code{laminar})"
  42382. msgstr "@code{mate}(默认值:@code{mate})"
  42383. #. type: table
  42384. #: guix-git/doc/guix.texi:28043
  42385. #, fuzzy
  42386. msgid "The Laminar package to use."
  42387. msgstr "软件包数据类型。"
  42388. #. type: item
  42389. #: guix-git/doc/guix.texi:28044
  42390. #, fuzzy, no-wrap
  42391. msgid "@code{home-directory} (default: @code{\"/var/lib/laminar\"})"
  42392. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  42393. #. type: table
  42394. #: guix-git/doc/guix.texi:28046
  42395. msgid "The directory for job configurations and run directories."
  42396. msgstr ""
  42397. #. type: item
  42398. #: guix-git/doc/guix.texi:28047
  42399. #, fuzzy, no-wrap
  42400. msgid "@code{bind-http} (default: @code{\"*:8080\"})"
  42401. msgstr "@code{port}(默认值:@code{22})"
  42402. #. type: table
  42403. #: guix-git/doc/guix.texi:28050
  42404. msgid "The interface/port or unix socket on which laminard should listen for incoming connections to the web frontend."
  42405. msgstr ""
  42406. #. type: item
  42407. #: guix-git/doc/guix.texi:28051
  42408. #, fuzzy, no-wrap
  42409. msgid "@code{bind-rpc} (default: @code{\"unix-abstract:laminar\"})"
  42410. msgstr "@code{gnome}(默认值:@code{gnome})"
  42411. #. type: table
  42412. #: guix-git/doc/guix.texi:28054
  42413. msgid "The interface/port or unix socket on which laminard should listen for incoming commands such as build triggers."
  42414. msgstr ""
  42415. #. type: item
  42416. #: guix-git/doc/guix.texi:28055
  42417. #, fuzzy, no-wrap
  42418. msgid "@code{title} (default: @code{\"Laminar\"})"
  42419. msgstr "@code{mate}(默认值:@code{mate})"
  42420. #. type: table
  42421. #: guix-git/doc/guix.texi:28057
  42422. #, fuzzy
  42423. msgid "The page title to show in the web frontend."
  42424. msgstr "rottlog服务。"
  42425. #. type: item
  42426. #: guix-git/doc/guix.texi:28058
  42427. #, fuzzy, no-wrap
  42428. msgid "@code{keep-rundirs} (default: @code{0})"
  42429. msgstr "@code{features} (@code{'()})"
  42430. #. type: table
  42431. #: guix-git/doc/guix.texi:28062
  42432. msgid "Set to an integer defining how many rundirs to keep per job. The lowest-numbered ones will be deleted. The default is 0, meaning all run dirs will be immediately deleted."
  42433. msgstr ""
  42434. #. type: item
  42435. #: guix-git/doc/guix.texi:28063
  42436. #, fuzzy, no-wrap
  42437. msgid "@code{archive-url} (default: @code{#f})"
  42438. msgstr "@code{challenge}(默认值:@code{#f})"
  42439. #. type: table
  42440. #: guix-git/doc/guix.texi:28066
  42441. msgid "The web frontend served by laminard will use this URL to form links to artefacts archived jobs."
  42442. msgstr ""
  42443. #. type: item
  42444. #: guix-git/doc/guix.texi:28067
  42445. #, fuzzy, no-wrap
  42446. msgid "@code{base-url} (default: @code{#f})"
  42447. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42448. #. type: table
  42449. #: guix-git/doc/guix.texi:28069
  42450. msgid "Base URL to use for links to laminar itself."
  42451. msgstr ""
  42452. #. type: cindex
  42453. #: guix-git/doc/guix.texi:28076
  42454. #, no-wrap
  42455. msgid "tlp"
  42456. msgstr ""
  42457. #. type: cindex
  42458. #: guix-git/doc/guix.texi:28077
  42459. #, no-wrap
  42460. msgid "power management with TLP"
  42461. msgstr ""
  42462. #. type: subsubheading
  42463. #: guix-git/doc/guix.texi:28078
  42464. #, no-wrap
  42465. msgid "TLP daemon"
  42466. msgstr ""
  42467. #. type: Plain text
  42468. #: guix-git/doc/guix.texi:28082
  42469. msgid "The @code{(gnu services pm)} module provides a Guix service definition for the Linux power management tool TLP."
  42470. msgstr ""
  42471. #. type: Plain text
  42472. #: guix-git/doc/guix.texi:28088
  42473. msgid "TLP enables various powersaving modes in userspace and kernel. Contrary to @code{upower-service}, it is not a passive, monitoring tool, as it will apply custom settings each time a new power source is detected. More information can be found at @uref{https://linrunner.de/en/tlp/tlp.html, TLP home page}."
  42474. msgstr ""
  42475. #. type: deffn
  42476. #: guix-git/doc/guix.texi:28089
  42477. #, no-wrap
  42478. msgid "{Scheme Variable} tlp-service-type"
  42479. msgstr ""
  42480. #. type: deffn
  42481. #: guix-git/doc/guix.texi:28093
  42482. msgid "The service type for the TLP tool. The default settings are optimised for battery life on most systems, but you can tweak them to your heart's content by adding a valid @code{tlp-configuration}:"
  42483. msgstr ""
  42484. #. type: lisp
  42485. #: guix-git/doc/guix.texi:28098
  42486. #, no-wrap
  42487. msgid ""
  42488. "(service tlp-service-type\n"
  42489. " (tlp-configuration\n"
  42490. " (cpu-scaling-governor-on-ac (list \"performance\"))\n"
  42491. " (sched-powersave-on-bat? #t)))\n"
  42492. msgstr ""
  42493. #. type: Plain text
  42494. #: guix-git/doc/guix.texi:28106
  42495. msgid "Each parameter definition is preceded by its type; for example, @samp{boolean foo} indicates that the @code{foo} parameter should be specified as a boolean. Types starting with @code{maybe-} denote parameters that won't show up in TLP config file when their value is @code{'disabled}."
  42496. msgstr ""
  42497. #. type: Plain text
  42498. #: guix-git/doc/guix.texi:28116
  42499. msgid "Available @code{tlp-configuration} fields are:"
  42500. msgstr ""
  42501. #. type: deftypevr
  42502. #: guix-git/doc/guix.texi:28117
  42503. #, no-wrap
  42504. msgid "{@code{tlp-configuration} parameter} package tlp"
  42505. msgstr ""
  42506. #. type: deftypevr
  42507. #: guix-git/doc/guix.texi:28119
  42508. msgid "The TLP package."
  42509. msgstr ""
  42510. #. type: deftypevr
  42511. #: guix-git/doc/guix.texi:28122
  42512. #, no-wrap
  42513. msgid "{@code{tlp-configuration} parameter} boolean tlp-enable?"
  42514. msgstr ""
  42515. #. type: deftypevr
  42516. #: guix-git/doc/guix.texi:28124
  42517. msgid "Set to true if you wish to enable TLP."
  42518. msgstr ""
  42519. #. type: deftypevr
  42520. #: guix-git/doc/guix.texi:28129
  42521. #, no-wrap
  42522. msgid "{@code{tlp-configuration} parameter} string tlp-default-mode"
  42523. msgstr ""
  42524. #. type: deftypevr
  42525. #: guix-git/doc/guix.texi:28132
  42526. msgid "Default mode when no power supply can be detected. Alternatives are AC and BAT."
  42527. msgstr ""
  42528. #. type: deftypevr
  42529. #: guix-git/doc/guix.texi:28134
  42530. msgid "Defaults to @samp{\"AC\"}."
  42531. msgstr ""
  42532. #. type: deftypevr
  42533. #: guix-git/doc/guix.texi:28137
  42534. #, no-wrap
  42535. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-ac"
  42536. msgstr ""
  42537. #. type: deftypevr
  42538. #: guix-git/doc/guix.texi:28140
  42539. msgid "Number of seconds Linux kernel has to wait after the disk goes idle, before syncing on AC."
  42540. msgstr ""
  42541. #. type: deftypevr
  42542. #: guix-git/doc/guix.texi:28145
  42543. #, no-wrap
  42544. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-bat"
  42545. msgstr ""
  42546. #. type: deftypevr
  42547. #: guix-git/doc/guix.texi:28147
  42548. msgid "Same as @code{disk-idle-ac} but on BAT mode."
  42549. msgstr ""
  42550. #. type: deftypevr
  42551. #: guix-git/doc/guix.texi:28149
  42552. msgid "Defaults to @samp{2}."
  42553. msgstr ""
  42554. #. type: deftypevr
  42555. #: guix-git/doc/guix.texi:28152
  42556. #, no-wrap
  42557. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-ac"
  42558. msgstr ""
  42559. #. type: deftypevr
  42560. #: guix-git/doc/guix.texi:28154
  42561. msgid "Dirty pages flushing periodicity, expressed in seconds."
  42562. msgstr ""
  42563. #. type: deftypevr
  42564. #: guix-git/doc/guix.texi:28156 guix-git/doc/guix.texi:28379
  42565. #: guix-git/doc/guix.texi:30594 guix-git/doc/guix.texi:30602
  42566. msgid "Defaults to @samp{15}."
  42567. msgstr ""
  42568. #. type: deftypevr
  42569. #: guix-git/doc/guix.texi:28159
  42570. #, no-wrap
  42571. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-bat"
  42572. msgstr ""
  42573. #. type: deftypevr
  42574. #: guix-git/doc/guix.texi:28161
  42575. msgid "Same as @code{max-lost-work-secs-on-ac} but on BAT mode."
  42576. msgstr ""
  42577. #. type: deftypevr
  42578. #: guix-git/doc/guix.texi:28163
  42579. msgid "Defaults to @samp{60}."
  42580. msgstr ""
  42581. #. type: deftypevr
  42582. #: guix-git/doc/guix.texi:28166
  42583. #, no-wrap
  42584. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-ac"
  42585. msgstr ""
  42586. #. type: deftypevr
  42587. #: guix-git/doc/guix.texi:28170
  42588. msgid "CPU frequency scaling governor on AC mode. With intel_pstate driver, alternatives are powersave and performance. With acpi-cpufreq driver, alternatives are ondemand, powersave, performance and conservative."
  42589. msgstr ""
  42590. #. type: deftypevr
  42591. #: guix-git/doc/guix.texi:28175
  42592. #, no-wrap
  42593. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-bat"
  42594. msgstr ""
  42595. #. type: deftypevr
  42596. #: guix-git/doc/guix.texi:28177
  42597. msgid "Same as @code{cpu-scaling-governor-on-ac} but on BAT mode."
  42598. msgstr ""
  42599. #. type: deftypevr
  42600. #: guix-git/doc/guix.texi:28182
  42601. #, no-wrap
  42602. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-ac"
  42603. msgstr ""
  42604. #. type: deftypevr
  42605. #: guix-git/doc/guix.texi:28184
  42606. msgid "Set the min available frequency for the scaling governor on AC."
  42607. msgstr ""
  42608. #. type: deftypevr
  42609. #: guix-git/doc/guix.texi:28189
  42610. #, no-wrap
  42611. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-ac"
  42612. msgstr ""
  42613. #. type: deftypevr
  42614. #: guix-git/doc/guix.texi:28191
  42615. msgid "Set the max available frequency for the scaling governor on AC."
  42616. msgstr ""
  42617. #. type: deftypevr
  42618. #: guix-git/doc/guix.texi:28196
  42619. #, no-wrap
  42620. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-bat"
  42621. msgstr ""
  42622. #. type: deftypevr
  42623. #: guix-git/doc/guix.texi:28198
  42624. msgid "Set the min available frequency for the scaling governor on BAT."
  42625. msgstr ""
  42626. #. type: deftypevr
  42627. #: guix-git/doc/guix.texi:28203
  42628. #, no-wrap
  42629. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-bat"
  42630. msgstr ""
  42631. #. type: deftypevr
  42632. #: guix-git/doc/guix.texi:28205
  42633. msgid "Set the max available frequency for the scaling governor on BAT."
  42634. msgstr ""
  42635. #. type: deftypevr
  42636. #: guix-git/doc/guix.texi:28210
  42637. #, no-wrap
  42638. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-ac"
  42639. msgstr ""
  42640. #. type: deftypevr
  42641. #: guix-git/doc/guix.texi:28213
  42642. msgid "Limit the min P-state to control the power dissipation of the CPU, in AC mode. Values are stated as a percentage of the available performance."
  42643. msgstr ""
  42644. #. type: deftypevr
  42645. #: guix-git/doc/guix.texi:28218
  42646. #, no-wrap
  42647. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-ac"
  42648. msgstr ""
  42649. #. type: deftypevr
  42650. #: guix-git/doc/guix.texi:28221
  42651. msgid "Limit the max P-state to control the power dissipation of the CPU, in AC mode. Values are stated as a percentage of the available performance."
  42652. msgstr ""
  42653. #. type: deftypevr
  42654. #: guix-git/doc/guix.texi:28226
  42655. #, no-wrap
  42656. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-bat"
  42657. msgstr ""
  42658. #. type: deftypevr
  42659. #: guix-git/doc/guix.texi:28228
  42660. msgid "Same as @code{cpu-min-perf-on-ac} on BAT mode."
  42661. msgstr ""
  42662. #. type: deftypevr
  42663. #: guix-git/doc/guix.texi:28233
  42664. #, no-wrap
  42665. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-bat"
  42666. msgstr ""
  42667. #. type: deftypevr
  42668. #: guix-git/doc/guix.texi:28235
  42669. msgid "Same as @code{cpu-max-perf-on-ac} on BAT mode."
  42670. msgstr ""
  42671. #. type: deftypevr
  42672. #: guix-git/doc/guix.texi:28240
  42673. #, no-wrap
  42674. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-ac?"
  42675. msgstr ""
  42676. #. type: deftypevr
  42677. #: guix-git/doc/guix.texi:28242
  42678. msgid "Enable CPU turbo boost feature on AC mode."
  42679. msgstr ""
  42680. #. type: deftypevr
  42681. #: guix-git/doc/guix.texi:28247
  42682. #, no-wrap
  42683. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-bat?"
  42684. msgstr ""
  42685. #. type: deftypevr
  42686. #: guix-git/doc/guix.texi:28249
  42687. msgid "Same as @code{cpu-boost-on-ac?} on BAT mode."
  42688. msgstr ""
  42689. #. type: deftypevr
  42690. #: guix-git/doc/guix.texi:28254
  42691. #, no-wrap
  42692. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-ac?"
  42693. msgstr ""
  42694. #. type: deftypevr
  42695. #: guix-git/doc/guix.texi:28257
  42696. msgid "Allow Linux kernel to minimize the number of CPU cores/hyper-threads used under light load conditions."
  42697. msgstr ""
  42698. #. type: deftypevr
  42699. #: guix-git/doc/guix.texi:28262
  42700. #, no-wrap
  42701. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-bat?"
  42702. msgstr ""
  42703. #. type: deftypevr
  42704. #: guix-git/doc/guix.texi:28264
  42705. msgid "Same as @code{sched-powersave-on-ac?} but on BAT mode."
  42706. msgstr ""
  42707. #. type: deftypevr
  42708. #: guix-git/doc/guix.texi:28269
  42709. #, no-wrap
  42710. msgid "{@code{tlp-configuration} parameter} boolean nmi-watchdog?"
  42711. msgstr ""
  42712. #. type: deftypevr
  42713. #: guix-git/doc/guix.texi:28271
  42714. msgid "Enable Linux kernel NMI watchdog."
  42715. msgstr ""
  42716. #. type: deftypevr
  42717. #: guix-git/doc/guix.texi:28276
  42718. #, no-wrap
  42719. msgid "{@code{tlp-configuration} parameter} maybe-string phc-controls"
  42720. msgstr ""
  42721. #. type: deftypevr
  42722. #: guix-git/doc/guix.texi:28279
  42723. msgid "For Linux kernels with PHC patch applied, change CPU voltages. An example value would be @samp{\"F:V F:V F:V F:V\"}."
  42724. msgstr ""
  42725. #. type: deftypevr
  42726. #: guix-git/doc/guix.texi:28284
  42727. #, no-wrap
  42728. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-ac"
  42729. msgstr ""
  42730. #. type: deftypevr
  42731. #: guix-git/doc/guix.texi:28287
  42732. msgid "Set CPU performance versus energy saving policy on AC@. Alternatives are performance, normal, powersave."
  42733. msgstr ""
  42734. #. type: deftypevr
  42735. #: guix-git/doc/guix.texi:28289 guix-git/doc/guix.texi:28387
  42736. #: guix-git/doc/guix.texi:28417
  42737. msgid "Defaults to @samp{\"performance\"}."
  42738. msgstr ""
  42739. #. type: deftypevr
  42740. #: guix-git/doc/guix.texi:28292
  42741. #, no-wrap
  42742. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-bat"
  42743. msgstr ""
  42744. #. type: deftypevr
  42745. #: guix-git/doc/guix.texi:28294
  42746. msgid "Same as @code{energy-perf-policy-ac} but on BAT mode."
  42747. msgstr ""
  42748. #. type: deftypevr
  42749. #: guix-git/doc/guix.texi:28296 guix-git/doc/guix.texi:28394
  42750. msgid "Defaults to @samp{\"powersave\"}."
  42751. msgstr ""
  42752. #. type: deftypevr
  42753. #: guix-git/doc/guix.texi:28299
  42754. #, no-wrap
  42755. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disks-devices"
  42756. msgstr ""
  42757. #. type: deftypevr
  42758. #: guix-git/doc/guix.texi:28301
  42759. msgid "Hard disk devices."
  42760. msgstr ""
  42761. #. type: deftypevr
  42762. #: guix-git/doc/guix.texi:28304
  42763. #, no-wrap
  42764. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-ac"
  42765. msgstr ""
  42766. #. type: deftypevr
  42767. #: guix-git/doc/guix.texi:28306
  42768. msgid "Hard disk advanced power management level."
  42769. msgstr ""
  42770. #. type: deftypevr
  42771. #: guix-git/doc/guix.texi:28309
  42772. #, no-wrap
  42773. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-bat"
  42774. msgstr ""
  42775. #. type: deftypevr
  42776. #: guix-git/doc/guix.texi:28311
  42777. msgid "Same as @code{disk-apm-bat} but on BAT mode."
  42778. msgstr ""
  42779. #. type: deftypevr
  42780. #: guix-git/doc/guix.texi:28314
  42781. #, no-wrap
  42782. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-ac"
  42783. msgstr ""
  42784. #. type: deftypevr
  42785. #: guix-git/doc/guix.texi:28317
  42786. msgid "Hard disk spin down timeout. One value has to be specified for each declared hard disk."
  42787. msgstr ""
  42788. #. type: deftypevr
  42789. #: guix-git/doc/guix.texi:28322
  42790. #, no-wrap
  42791. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-bat"
  42792. msgstr ""
  42793. #. type: deftypevr
  42794. #: guix-git/doc/guix.texi:28324
  42795. msgid "Same as @code{disk-spindown-timeout-on-ac} but on BAT mode."
  42796. msgstr ""
  42797. #. type: deftypevr
  42798. #: guix-git/doc/guix.texi:28329
  42799. #, no-wrap
  42800. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-iosched"
  42801. msgstr ""
  42802. #. type: deftypevr
  42803. #: guix-git/doc/guix.texi:28333
  42804. msgid "Select IO scheduler for disk devices. One value has to be specified for each declared hard disk. Example alternatives are cfq, deadline and noop."
  42805. msgstr ""
  42806. #. type: deftypevr
  42807. #: guix-git/doc/guix.texi:28338
  42808. #, no-wrap
  42809. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-ac"
  42810. msgstr ""
  42811. #. type: deftypevr
  42812. #: guix-git/doc/guix.texi:28341
  42813. msgid "SATA aggressive link power management (ALPM) level. Alternatives are min_power, medium_power, max_performance."
  42814. msgstr ""
  42815. #. type: deftypevr
  42816. #: guix-git/doc/guix.texi:28343
  42817. msgid "Defaults to @samp{\"max_performance\"}."
  42818. msgstr ""
  42819. #. type: deftypevr
  42820. #: guix-git/doc/guix.texi:28346
  42821. #, no-wrap
  42822. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-bat"
  42823. msgstr ""
  42824. #. type: deftypevr
  42825. #: guix-git/doc/guix.texi:28348
  42826. msgid "Same as @code{sata-linkpwr-ac} but on BAT mode."
  42827. msgstr ""
  42828. #. type: deftypevr
  42829. #: guix-git/doc/guix.texi:28350
  42830. msgid "Defaults to @samp{\"min_power\"}."
  42831. msgstr ""
  42832. #. type: deftypevr
  42833. #: guix-git/doc/guix.texi:28353
  42834. #, no-wrap
  42835. msgid "{@code{tlp-configuration} parameter} maybe-string sata-linkpwr-blacklist"
  42836. msgstr ""
  42837. #. type: deftypevr
  42838. #: guix-git/doc/guix.texi:28355
  42839. msgid "Exclude specified SATA host devices for link power management."
  42840. msgstr ""
  42841. #. type: deftypevr
  42842. #: guix-git/doc/guix.texi:28360
  42843. #, no-wrap
  42844. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-ac?"
  42845. msgstr ""
  42846. #. type: deftypevr
  42847. #: guix-git/doc/guix.texi:28363
  42848. msgid "Enable Runtime Power Management for AHCI controller and disks on AC mode."
  42849. msgstr ""
  42850. #. type: deftypevr
  42851. #: guix-git/doc/guix.texi:28368
  42852. #, no-wrap
  42853. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-bat?"
  42854. msgstr ""
  42855. #. type: deftypevr
  42856. #: guix-git/doc/guix.texi:28370
  42857. msgid "Same as @code{ahci-runtime-pm-on-ac} on BAT mode."
  42858. msgstr ""
  42859. #. type: deftypevr
  42860. #: guix-git/doc/guix.texi:28375
  42861. #, no-wrap
  42862. msgid "{@code{tlp-configuration} parameter} non-negative-integer ahci-runtime-pm-timeout"
  42863. msgstr ""
  42864. #. type: deftypevr
  42865. #: guix-git/doc/guix.texi:28377
  42866. msgid "Seconds of inactivity before disk is suspended."
  42867. msgstr ""
  42868. #. type: deftypevr
  42869. #: guix-git/doc/guix.texi:28382
  42870. #, no-wrap
  42871. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-ac"
  42872. msgstr ""
  42873. #. type: deftypevr
  42874. #: guix-git/doc/guix.texi:28385
  42875. msgid "PCI Express Active State Power Management level. Alternatives are default, performance, powersave."
  42876. msgstr ""
  42877. #. type: deftypevr
  42878. #: guix-git/doc/guix.texi:28390
  42879. #, no-wrap
  42880. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-bat"
  42881. msgstr ""
  42882. #. type: deftypevr
  42883. #: guix-git/doc/guix.texi:28392
  42884. msgid "Same as @code{pcie-aspm-ac} but on BAT mode."
  42885. msgstr ""
  42886. #. type: deftypevr
  42887. #: guix-git/doc/guix.texi:28397
  42888. #, no-wrap
  42889. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-ac"
  42890. msgstr ""
  42891. #. type: deftypevr
  42892. #: guix-git/doc/guix.texi:28400
  42893. msgid "Radeon graphics clock speed level. Alternatives are low, mid, high, auto, default."
  42894. msgstr ""
  42895. #. type: deftypevr
  42896. #: guix-git/doc/guix.texi:28402
  42897. msgid "Defaults to @samp{\"high\"}."
  42898. msgstr ""
  42899. #. type: deftypevr
  42900. #: guix-git/doc/guix.texi:28405
  42901. #, no-wrap
  42902. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-bat"
  42903. msgstr ""
  42904. #. type: deftypevr
  42905. #: guix-git/doc/guix.texi:28407
  42906. msgid "Same as @code{radeon-power-ac} but on BAT mode."
  42907. msgstr ""
  42908. #. type: deftypevr
  42909. #: guix-git/doc/guix.texi:28409
  42910. msgid "Defaults to @samp{\"low\"}."
  42911. msgstr ""
  42912. #. type: deftypevr
  42913. #: guix-git/doc/guix.texi:28412
  42914. #, no-wrap
  42915. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-ac"
  42916. msgstr ""
  42917. #. type: deftypevr
  42918. #: guix-git/doc/guix.texi:28415
  42919. msgid "Radeon dynamic power management method (DPM). Alternatives are battery, performance."
  42920. msgstr ""
  42921. #. type: deftypevr
  42922. #: guix-git/doc/guix.texi:28420
  42923. #, no-wrap
  42924. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-bat"
  42925. msgstr ""
  42926. #. type: deftypevr
  42927. #: guix-git/doc/guix.texi:28422
  42928. msgid "Same as @code{radeon-dpm-state-ac} but on BAT mode."
  42929. msgstr ""
  42930. #. type: deftypevr
  42931. #: guix-git/doc/guix.texi:28424
  42932. msgid "Defaults to @samp{\"battery\"}."
  42933. msgstr ""
  42934. #. type: deftypevr
  42935. #: guix-git/doc/guix.texi:28427
  42936. #, no-wrap
  42937. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-ac"
  42938. msgstr ""
  42939. #. type: deftypevr
  42940. #: guix-git/doc/guix.texi:28429
  42941. msgid "Radeon DPM performance level. Alternatives are auto, low, high."
  42942. msgstr ""
  42943. #. type: deftypevr
  42944. #: guix-git/doc/guix.texi:28431 guix-git/doc/guix.texi:28438
  42945. #: guix-git/doc/guix.texi:28512
  42946. msgid "Defaults to @samp{\"auto\"}."
  42947. msgstr ""
  42948. #. type: deftypevr
  42949. #: guix-git/doc/guix.texi:28434
  42950. #, no-wrap
  42951. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-bat"
  42952. msgstr ""
  42953. #. type: deftypevr
  42954. #: guix-git/doc/guix.texi:28436
  42955. msgid "Same as @code{radeon-dpm-perf-ac} but on BAT mode."
  42956. msgstr ""
  42957. #. type: deftypevr
  42958. #: guix-git/doc/guix.texi:28441
  42959. #, no-wrap
  42960. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-ac?"
  42961. msgstr ""
  42962. #. type: deftypevr
  42963. #: guix-git/doc/guix.texi:28443
  42964. msgid "Wifi power saving mode."
  42965. msgstr ""
  42966. #. type: deftypevr
  42967. #: guix-git/doc/guix.texi:28448
  42968. #, no-wrap
  42969. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-bat?"
  42970. msgstr ""
  42971. #. type: deftypevr
  42972. #: guix-git/doc/guix.texi:28450
  42973. msgid "Same as @code{wifi-power-ac?} but on BAT mode."
  42974. msgstr ""
  42975. #. type: deftypevr
  42976. #: guix-git/doc/guix.texi:28455
  42977. #, no-wrap
  42978. msgid "{@code{tlp-configuration} parameter} y-n-boolean wol-disable?"
  42979. msgstr ""
  42980. #. type: deftypevr
  42981. #: guix-git/doc/guix.texi:28457
  42982. msgid "Disable wake on LAN."
  42983. msgstr ""
  42984. #. type: deftypevr
  42985. #: guix-git/doc/guix.texi:28462
  42986. #, no-wrap
  42987. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-ac"
  42988. msgstr ""
  42989. #. type: deftypevr
  42990. #: guix-git/doc/guix.texi:28465
  42991. msgid "Timeout duration in seconds before activating audio power saving on Intel HDA and AC97 devices. A value of 0 disables power saving."
  42992. msgstr ""
  42993. #. type: deftypevr
  42994. #: guix-git/doc/guix.texi:28470
  42995. #, no-wrap
  42996. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-bat"
  42997. msgstr ""
  42998. #. type: deftypevr
  42999. #: guix-git/doc/guix.texi:28472
  43000. msgid "Same as @code{sound-powersave-ac} but on BAT mode."
  43001. msgstr ""
  43002. #. type: deftypevr
  43003. #: guix-git/doc/guix.texi:28477
  43004. #, no-wrap
  43005. msgid "{@code{tlp-configuration} parameter} y-n-boolean sound-power-save-controller?"
  43006. msgstr ""
  43007. #. type: deftypevr
  43008. #: guix-git/doc/guix.texi:28479
  43009. msgid "Disable controller in powersaving mode on Intel HDA devices."
  43010. msgstr ""
  43011. #. type: deftypevr
  43012. #: guix-git/doc/guix.texi:28484
  43013. #, no-wrap
  43014. msgid "{@code{tlp-configuration} parameter} boolean bay-poweroff-on-bat?"
  43015. msgstr ""
  43016. #. type: deftypevr
  43017. #: guix-git/doc/guix.texi:28488
  43018. msgid "Enable optical drive in UltraBay/MediaBay on BAT mode. Drive can be powered on again by releasing (and reinserting) the eject lever or by pressing the disc eject button on newer models."
  43019. msgstr ""
  43020. #. type: deftypevr
  43021. #: guix-git/doc/guix.texi:28493
  43022. #, no-wrap
  43023. msgid "{@code{tlp-configuration} parameter} string bay-device"
  43024. msgstr ""
  43025. #. type: deftypevr
  43026. #: guix-git/doc/guix.texi:28495
  43027. msgid "Name of the optical drive device to power off."
  43028. msgstr ""
  43029. #. type: deftypevr
  43030. #: guix-git/doc/guix.texi:28497
  43031. msgid "Defaults to @samp{\"sr0\"}."
  43032. msgstr ""
  43033. #. type: deftypevr
  43034. #: guix-git/doc/guix.texi:28500
  43035. #, no-wrap
  43036. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-ac"
  43037. msgstr ""
  43038. #. type: deftypevr
  43039. #: guix-git/doc/guix.texi:28503
  43040. msgid "Runtime Power Management for PCI(e) bus devices. Alternatives are on and auto."
  43041. msgstr ""
  43042. #. type: deftypevr
  43043. #: guix-git/doc/guix.texi:28505
  43044. msgid "Defaults to @samp{\"on\"}."
  43045. msgstr ""
  43046. #. type: deftypevr
  43047. #: guix-git/doc/guix.texi:28508
  43048. #, no-wrap
  43049. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-bat"
  43050. msgstr ""
  43051. #. type: deftypevr
  43052. #: guix-git/doc/guix.texi:28510
  43053. msgid "Same as @code{runtime-pm-ac} but on BAT mode."
  43054. msgstr ""
  43055. #. type: deftypevr
  43056. #: guix-git/doc/guix.texi:28515
  43057. #, no-wrap
  43058. msgid "{@code{tlp-configuration} parameter} boolean runtime-pm-all?"
  43059. msgstr ""
  43060. #. type: deftypevr
  43061. #: guix-git/doc/guix.texi:28518
  43062. msgid "Runtime Power Management for all PCI(e) bus devices, except blacklisted ones."
  43063. msgstr ""
  43064. #. type: deftypevr
  43065. #: guix-git/doc/guix.texi:28523
  43066. #, no-wrap
  43067. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list runtime-pm-blacklist"
  43068. msgstr ""
  43069. #. type: deftypevr
  43070. #: guix-git/doc/guix.texi:28525
  43071. msgid "Exclude specified PCI(e) device addresses from Runtime Power Management."
  43072. msgstr ""
  43073. #. type: deftypevr
  43074. #: guix-git/doc/guix.texi:28530
  43075. #, no-wrap
  43076. msgid "{@code{tlp-configuration} parameter} space-separated-string-list runtime-pm-driver-blacklist"
  43077. msgstr ""
  43078. #. type: deftypevr
  43079. #: guix-git/doc/guix.texi:28533
  43080. msgid "Exclude PCI(e) devices assigned to the specified drivers from Runtime Power Management."
  43081. msgstr ""
  43082. #. type: deftypevr
  43083. #: guix-git/doc/guix.texi:28536
  43084. #, no-wrap
  43085. msgid "{@code{tlp-configuration} parameter} boolean usb-autosuspend?"
  43086. msgstr ""
  43087. #. type: deftypevr
  43088. #: guix-git/doc/guix.texi:28538
  43089. msgid "Enable USB autosuspend feature."
  43090. msgstr ""
  43091. #. type: deftypevr
  43092. #: guix-git/doc/guix.texi:28543
  43093. #, no-wrap
  43094. msgid "{@code{tlp-configuration} parameter} maybe-string usb-blacklist"
  43095. msgstr ""
  43096. #. type: deftypevr
  43097. #: guix-git/doc/guix.texi:28545
  43098. msgid "Exclude specified devices from USB autosuspend."
  43099. msgstr ""
  43100. #. type: deftypevr
  43101. #: guix-git/doc/guix.texi:28550
  43102. #, no-wrap
  43103. msgid "{@code{tlp-configuration} parameter} boolean usb-blacklist-wwan?"
  43104. msgstr ""
  43105. #. type: deftypevr
  43106. #: guix-git/doc/guix.texi:28552
  43107. msgid "Exclude WWAN devices from USB autosuspend."
  43108. msgstr ""
  43109. #. type: deftypevr
  43110. #: guix-git/doc/guix.texi:28557
  43111. #, no-wrap
  43112. msgid "{@code{tlp-configuration} parameter} maybe-string usb-whitelist"
  43113. msgstr ""
  43114. #. type: deftypevr
  43115. #: guix-git/doc/guix.texi:28560
  43116. msgid "Include specified devices into USB autosuspend, even if they are already excluded by the driver or via @code{usb-blacklist-wwan?}."
  43117. msgstr ""
  43118. #. type: deftypevr
  43119. #: guix-git/doc/guix.texi:28565
  43120. #, no-wrap
  43121. msgid "{@code{tlp-configuration} parameter} maybe-boolean usb-autosuspend-disable-on-shutdown?"
  43122. msgstr ""
  43123. #. type: deftypevr
  43124. #: guix-git/doc/guix.texi:28567
  43125. msgid "Enable USB autosuspend before shutdown."
  43126. msgstr ""
  43127. #. type: deftypevr
  43128. #: guix-git/doc/guix.texi:28572
  43129. #, no-wrap
  43130. msgid "{@code{tlp-configuration} parameter} boolean restore-device-state-on-startup?"
  43131. msgstr ""
  43132. #. type: deftypevr
  43133. #: guix-git/doc/guix.texi:28575
  43134. msgid "Restore radio device state (bluetooth, wifi, wwan) from previous shutdown on system startup."
  43135. msgstr ""
  43136. #. type: cindex
  43137. #: guix-git/doc/guix.texi:28580
  43138. #, no-wrap
  43139. msgid "thermald"
  43140. msgstr ""
  43141. #. type: cindex
  43142. #: guix-git/doc/guix.texi:28581
  43143. #, no-wrap
  43144. msgid "CPU frequency scaling with thermald"
  43145. msgstr ""
  43146. #. type: subsubheading
  43147. #: guix-git/doc/guix.texi:28582
  43148. #, no-wrap
  43149. msgid "Thermald daemon"
  43150. msgstr ""
  43151. #. type: Plain text
  43152. #: guix-git/doc/guix.texi:28586
  43153. msgid "The @code{(gnu services pm)} module provides an interface to thermald, a CPU frequency scaling service which helps prevent overheating."
  43154. msgstr ""
  43155. #. type: defvr
  43156. #: guix-git/doc/guix.texi:28587
  43157. #, no-wrap
  43158. msgid "{Scheme Variable} thermald-service-type"
  43159. msgstr ""
  43160. #. type: defvr
  43161. #: guix-git/doc/guix.texi:28592
  43162. msgid "This is the service type for @uref{https://01.org/linux-thermal-daemon/, thermald}, the Linux Thermal Daemon, which is responsible for controlling the thermal state of processors and preventing overheating."
  43163. msgstr ""
  43164. #. type: deftp
  43165. #: guix-git/doc/guix.texi:28594
  43166. #, no-wrap
  43167. msgid "{Data Type} thermald-configuration"
  43168. msgstr ""
  43169. #. type: deftp
  43170. #: guix-git/doc/guix.texi:28596
  43171. msgid "Data type representing the configuration of @code{thermald-service-type}."
  43172. msgstr ""
  43173. #. type: item
  43174. #: guix-git/doc/guix.texi:28598
  43175. #, no-wrap
  43176. msgid "@code{ignore-cpuid-check?} (default: @code{#f})"
  43177. msgstr ""
  43178. #. type: table
  43179. #: guix-git/doc/guix.texi:28600
  43180. msgid "Ignore cpuid check for supported CPU models."
  43181. msgstr ""
  43182. #. type: item
  43183. #: guix-git/doc/guix.texi:28601
  43184. #, no-wrap
  43185. msgid "@code{thermald} (default: @var{thermald})"
  43186. msgstr ""
  43187. #. type: table
  43188. #: guix-git/doc/guix.texi:28603
  43189. msgid "Package object of thermald."
  43190. msgstr ""
  43191. #. type: Plain text
  43192. #: guix-git/doc/guix.texi:28612
  43193. msgid "The @code{(gnu services audio)} module provides a service to start MPD (the Music Player Daemon)."
  43194. msgstr ""
  43195. #. type: cindex
  43196. #: guix-git/doc/guix.texi:28613
  43197. #, no-wrap
  43198. msgid "mpd"
  43199. msgstr ""
  43200. #. type: subsubheading
  43201. #: guix-git/doc/guix.texi:28614
  43202. #, no-wrap
  43203. msgid "Music Player Daemon"
  43204. msgstr ""
  43205. #. type: Plain text
  43206. #: guix-git/doc/guix.texi:28619
  43207. msgid "The Music Player Daemon (MPD) is a service that can play music while being controlled from the local machine or over the network by a variety of clients."
  43208. msgstr ""
  43209. #. type: Plain text
  43210. #: guix-git/doc/guix.texi:28622
  43211. msgid "The following example shows how one might run @code{mpd} as user @code{\"bob\"} on port @code{6666}. It uses pulseaudio for output."
  43212. msgstr ""
  43213. #. type: lisp
  43214. #: guix-git/doc/guix.texi:28628
  43215. #, no-wrap
  43216. msgid ""
  43217. "(service mpd-service-type\n"
  43218. " (mpd-configuration\n"
  43219. " (user \"bob\")\n"
  43220. " (port \"6666\")))\n"
  43221. msgstr ""
  43222. #. type: defvr
  43223. #: guix-git/doc/guix.texi:28630
  43224. #, no-wrap
  43225. msgid "{Scheme Variable} mpd-service-type"
  43226. msgstr ""
  43227. #. type: defvr
  43228. #: guix-git/doc/guix.texi:28632
  43229. msgid "The service type for @command{mpd}"
  43230. msgstr ""
  43231. #. type: deftp
  43232. #: guix-git/doc/guix.texi:28634
  43233. #, no-wrap
  43234. msgid "{Data Type} mpd-configuration"
  43235. msgstr ""
  43236. #. type: deftp
  43237. #: guix-git/doc/guix.texi:28636
  43238. msgid "Data type representing the configuration of @command{mpd}."
  43239. msgstr ""
  43240. #. type: item
  43241. #: guix-git/doc/guix.texi:28638
  43242. #, no-wrap
  43243. msgid "@code{user} (default: @code{\"mpd\"})"
  43244. msgstr ""
  43245. #. type: table
  43246. #: guix-git/doc/guix.texi:28640
  43247. msgid "The user to run mpd as."
  43248. msgstr ""
  43249. #. type: item
  43250. #: guix-git/doc/guix.texi:28641
  43251. #, no-wrap
  43252. msgid "@code{music-dir} (default: @code{\"~/Music\"})"
  43253. msgstr ""
  43254. #. type: table
  43255. #: guix-git/doc/guix.texi:28643
  43256. msgid "The directory to scan for music files."
  43257. msgstr ""
  43258. #. type: item
  43259. #: guix-git/doc/guix.texi:28644
  43260. #, no-wrap
  43261. msgid "@code{playlist-dir} (default: @code{\"~/.mpd/playlists\"})"
  43262. msgstr ""
  43263. #. type: table
  43264. #: guix-git/doc/guix.texi:28646
  43265. msgid "The directory to store playlists."
  43266. msgstr ""
  43267. #. type: item
  43268. #: guix-git/doc/guix.texi:28647
  43269. #, no-wrap
  43270. msgid "@code{db-file} (default: @code{\"~/.mpd/tag_cache\"})"
  43271. msgstr ""
  43272. #. type: table
  43273. #: guix-git/doc/guix.texi:28649
  43274. msgid "The location of the music database."
  43275. msgstr ""
  43276. #. type: item
  43277. #: guix-git/doc/guix.texi:28650
  43278. #, no-wrap
  43279. msgid "@code{state-file} (default: @code{\"~/.mpd/state\"})"
  43280. msgstr ""
  43281. #. type: table
  43282. #: guix-git/doc/guix.texi:28652
  43283. msgid "The location of the file that stores current MPD's state."
  43284. msgstr ""
  43285. #. type: item
  43286. #: guix-git/doc/guix.texi:28653
  43287. #, no-wrap
  43288. msgid "@code{sticker-file} (default: @code{\"~/.mpd/sticker.sql\"})"
  43289. msgstr ""
  43290. #. type: table
  43291. #: guix-git/doc/guix.texi:28655
  43292. msgid "The location of the sticker database."
  43293. msgstr ""
  43294. #. type: item
  43295. #: guix-git/doc/guix.texi:28656
  43296. #, no-wrap
  43297. msgid "@code{port} (default: @code{\"6600\"})"
  43298. msgstr ""
  43299. #. type: table
  43300. #: guix-git/doc/guix.texi:28658
  43301. msgid "The port to run mpd on."
  43302. msgstr ""
  43303. #. type: item
  43304. #: guix-git/doc/guix.texi:28659
  43305. #, no-wrap
  43306. msgid "@code{address} (default: @code{\"any\"})"
  43307. msgstr ""
  43308. #. type: table
  43309. #: guix-git/doc/guix.texi:28662
  43310. msgid "The address that mpd will bind to. To use a Unix domain socket, an absolute path can be specified here."
  43311. msgstr ""
  43312. #. type: item
  43313. #: guix-git/doc/guix.texi:28663
  43314. #, fuzzy, no-wrap
  43315. msgid "@code{outputs} (default: @code{\"(list (mpd-output))\"})"
  43316. msgstr "@code{features} (@code{'()})"
  43317. #. type: table
  43318. #: guix-git/doc/guix.texi:28665
  43319. msgid "The audio outputs that MPD can use. By default this is a single output using pulseaudio."
  43320. msgstr ""
  43321. #. type: deftp
  43322. #: guix-git/doc/guix.texi:28669
  43323. #, no-wrap
  43324. msgid "{Data Type} mpd-output"
  43325. msgstr ""
  43326. #. type: deftp
  43327. #: guix-git/doc/guix.texi:28671
  43328. msgid "Data type representing an @command{mpd} audio output."
  43329. msgstr ""
  43330. #. type: item
  43331. #: guix-git/doc/guix.texi:28673
  43332. #, fuzzy, no-wrap
  43333. msgid "@code{name} (default: @code{\"MPD\"})"
  43334. msgstr "@code{gnome}(默认值:@code{gnome})"
  43335. #. type: table
  43336. #: guix-git/doc/guix.texi:28675
  43337. msgid "The name of the audio output."
  43338. msgstr ""
  43339. #. type: item
  43340. #: guix-git/doc/guix.texi:28676
  43341. #, fuzzy, no-wrap
  43342. msgid "@code{type} (default: @code{\"pulse\"})"
  43343. msgstr "@code{mate}(默认值:@code{mate})"
  43344. #. type: table
  43345. #: guix-git/doc/guix.texi:28678
  43346. msgid "The type of audio output."
  43347. msgstr ""
  43348. #. type: item
  43349. #: guix-git/doc/guix.texi:28679
  43350. #, fuzzy, no-wrap
  43351. msgid "@code{enabled?} (default: @code{#t})"
  43352. msgstr "@code{speed}(默认值:@code{1.0})"
  43353. #. type: table
  43354. #: guix-git/doc/guix.texi:28684
  43355. msgid "Specifies whether this audio output is enabled when MPD is started. By default, all audio outputs are enabled. This is just the default setting when there is no state file; with a state file, the previous state is restored."
  43356. msgstr ""
  43357. #. type: item
  43358. #: guix-git/doc/guix.texi:28685
  43359. #, fuzzy, no-wrap
  43360. msgid "@code{tags?} (default: @code{#t})"
  43361. msgstr "@code{mate}(默认值:@code{mate})"
  43362. #. type: table
  43363. #: guix-git/doc/guix.texi:28689
  43364. msgid "If set to @code{#f}, then MPD will not send tags to this output. This is only useful for output plugins that can receive tags, for example the @code{httpd} output plugin."
  43365. msgstr ""
  43366. #. type: item
  43367. #: guix-git/doc/guix.texi:28690
  43368. #, fuzzy, no-wrap
  43369. msgid "@code{always-on?} (default: @code{#f})"
  43370. msgstr "@code{challenge}(默认值:@code{#f})"
  43371. #. type: table
  43372. #: guix-git/doc/guix.texi:28694
  43373. msgid "If set to @code{#t}, then MPD attempts to keep this audio output always open. This may be useful for streaming servers, when you don’t want to disconnect all listeners even when playback is accidentally stopped."
  43374. msgstr ""
  43375. #. type: code{#1}
  43376. #: guix-git/doc/guix.texi:28695
  43377. #, no-wrap
  43378. msgid "mixer-type"
  43379. msgstr ""
  43380. #. type: table
  43381. #: guix-git/doc/guix.texi:28701
  43382. msgid "This field accepts a symbol that specifies which mixer should be used for this audio output: the @code{hardware} mixer, the @code{software} mixer, the @code{null} mixer (allows setting the volume, but with no effect; this can be used as a trick to implement an external mixer External Mixer) or no mixer (@code{none})."
  43383. msgstr ""
  43384. #. type: table
  43385. #: guix-git/doc/guix.texi:28705
  43386. msgid "An association list of option symbols to string values to be appended to the audio output configuration."
  43387. msgstr ""
  43388. #. type: Plain text
  43389. #: guix-git/doc/guix.texi:28711
  43390. msgid "The following example shows a configuration of @code{mpd} that provides an HTTP audio streaming output."
  43391. msgstr ""
  43392. #. type: lisp
  43393. #: guix-git/doc/guix.texi:28723
  43394. #, no-wrap
  43395. msgid ""
  43396. "(service mpd-service-type\n"
  43397. " (mpd-configuration\n"
  43398. " (outputs\n"
  43399. " (list (mpd-output\n"
  43400. " (name \"streaming\")\n"
  43401. " (type \"httpd\")\n"
  43402. " (mixer-type 'null)\n"
  43403. " (extra-options\n"
  43404. " `((encoder . \"vorbis\")\n"
  43405. " (port . \"8080\"))))))))\n"
  43406. msgstr ""
  43407. #. type: Plain text
  43408. #: guix-git/doc/guix.texi:28732
  43409. msgid "The @code{(gnu services virtualization)} module provides services for the libvirt and virtlog daemons, as well as other virtualization-related services."
  43410. msgstr ""
  43411. #. type: subsubheading
  43412. #: guix-git/doc/guix.texi:28733
  43413. #, no-wrap
  43414. msgid "Libvirt daemon"
  43415. msgstr ""
  43416. #. type: Plain text
  43417. #: guix-git/doc/guix.texi:28738
  43418. msgid "@code{libvirtd} is the server side daemon component of the libvirt virtualization management system. This daemon runs on host servers and performs required management tasks for virtualized guests."
  43419. msgstr ""
  43420. #. type: deffn
  43421. #: guix-git/doc/guix.texi:28739
  43422. #, no-wrap
  43423. msgid "{Scheme Variable} libvirt-service-type"
  43424. msgstr ""
  43425. #. type: deffn
  43426. #: guix-git/doc/guix.texi:28742
  43427. msgid "This is the type of the @uref{https://libvirt.org, libvirt daemon}. Its value must be a @code{libvirt-configuration}."
  43428. msgstr ""
  43429. #. type: lisp
  43430. #: guix-git/doc/guix.texi:28748
  43431. #, no-wrap
  43432. msgid ""
  43433. "(service libvirt-service-type\n"
  43434. " (libvirt-configuration\n"
  43435. " (unix-sock-group \"libvirt\")\n"
  43436. " (tls-port \"16555\")))\n"
  43437. msgstr ""
  43438. #. type: Plain text
  43439. #: guix-git/doc/guix.texi:28753
  43440. msgid "Available @code{libvirt-configuration} fields are:"
  43441. msgstr ""
  43442. #. type: deftypevr
  43443. #: guix-git/doc/guix.texi:28754
  43444. #, no-wrap
  43445. msgid "{@code{libvirt-configuration} parameter} package libvirt"
  43446. msgstr ""
  43447. #. type: deftypevr
  43448. #: guix-git/doc/guix.texi:28756
  43449. msgid "Libvirt package."
  43450. msgstr ""
  43451. #. type: deftypevr
  43452. #: guix-git/doc/guix.texi:28759
  43453. #, no-wrap
  43454. msgid "{@code{libvirt-configuration} parameter} boolean listen-tls?"
  43455. msgstr ""
  43456. #. type: deftypevr
  43457. #: guix-git/doc/guix.texi:28762
  43458. msgid "Flag listening for secure TLS connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  43459. msgstr ""
  43460. #. type: deftypevr
  43461. #: guix-git/doc/guix.texi:28765
  43462. msgid "It is necessary to setup a CA and issue server certificates before using this capability."
  43463. msgstr ""
  43464. #. type: deftypevr
  43465. #: guix-git/doc/guix.texi:28770
  43466. #, no-wrap
  43467. msgid "{@code{libvirt-configuration} parameter} boolean listen-tcp?"
  43468. msgstr ""
  43469. #. type: deftypevr
  43470. #: guix-git/doc/guix.texi:28773
  43471. msgid "Listen for unencrypted TCP connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  43472. msgstr ""
  43473. #. type: deftypevr
  43474. #: guix-git/doc/guix.texi:28777
  43475. msgid "Using the TCP socket requires SASL authentication by default. Only SASL mechanisms which support data encryption are allowed. This is DIGEST_MD5 and GSSAPI (Kerberos5)."
  43476. msgstr ""
  43477. #. type: deftypevr
  43478. #: guix-git/doc/guix.texi:28782
  43479. #, no-wrap
  43480. msgid "{@code{libvirt-configuration} parameter} string tls-port"
  43481. msgstr ""
  43482. #. type: deftypevr
  43483. #: guix-git/doc/guix.texi:28785
  43484. msgid "Port for accepting secure TLS connections. This can be a port number, or service name."
  43485. msgstr ""
  43486. #. type: deftypevr
  43487. #: guix-git/doc/guix.texi:28787
  43488. msgid "Defaults to @samp{\"16514\"}."
  43489. msgstr ""
  43490. #. type: deftypevr
  43491. #: guix-git/doc/guix.texi:28790
  43492. #, no-wrap
  43493. msgid "{@code{libvirt-configuration} parameter} string tcp-port"
  43494. msgstr ""
  43495. #. type: deftypevr
  43496. #: guix-git/doc/guix.texi:28793
  43497. msgid "Port for accepting insecure TCP connections. This can be a port number, or service name."
  43498. msgstr ""
  43499. #. type: deftypevr
  43500. #: guix-git/doc/guix.texi:28795
  43501. msgid "Defaults to @samp{\"16509\"}."
  43502. msgstr ""
  43503. #. type: deftypevr
  43504. #: guix-git/doc/guix.texi:28798
  43505. #, no-wrap
  43506. msgid "{@code{libvirt-configuration} parameter} string listen-addr"
  43507. msgstr ""
  43508. #. type: deftypevr
  43509. #: guix-git/doc/guix.texi:28800
  43510. msgid "IP address or hostname used for client connections."
  43511. msgstr ""
  43512. #. type: deftypevr
  43513. #: guix-git/doc/guix.texi:28805
  43514. #, no-wrap
  43515. msgid "{@code{libvirt-configuration} parameter} boolean mdns-adv?"
  43516. msgstr ""
  43517. #. type: deftypevr
  43518. #: guix-git/doc/guix.texi:28807
  43519. msgid "Flag toggling mDNS advertisement of the libvirt service."
  43520. msgstr ""
  43521. #. type: deftypevr
  43522. #: guix-git/doc/guix.texi:28810
  43523. msgid "Alternatively can disable for all services on a host by stopping the Avahi daemon."
  43524. msgstr ""
  43525. #. type: deftypevr
  43526. #: guix-git/doc/guix.texi:28815
  43527. #, no-wrap
  43528. msgid "{@code{libvirt-configuration} parameter} string mdns-name"
  43529. msgstr ""
  43530. #. type: deftypevr
  43531. #: guix-git/doc/guix.texi:28818
  43532. msgid "Default mDNS advertisement name. This must be unique on the immediate broadcast network."
  43533. msgstr ""
  43534. #. type: deftypevr
  43535. #: guix-git/doc/guix.texi:28820
  43536. msgid "Defaults to @samp{\"Virtualization Host <hostname>\"}."
  43537. msgstr ""
  43538. #. type: deftypevr
  43539. #: guix-git/doc/guix.texi:28823
  43540. #, no-wrap
  43541. msgid "{@code{libvirt-configuration} parameter} string unix-sock-group"
  43542. msgstr ""
  43543. #. type: deftypevr
  43544. #: guix-git/doc/guix.texi:28827
  43545. msgid "UNIX domain socket group ownership. This can be used to allow a 'trusted' set of users access to management capabilities without becoming root."
  43546. msgstr ""
  43547. #. type: deftypevr
  43548. #: guix-git/doc/guix.texi:28832
  43549. #, no-wrap
  43550. msgid "{@code{libvirt-configuration} parameter} string unix-sock-ro-perms"
  43551. msgstr ""
  43552. #. type: deftypevr
  43553. #: guix-git/doc/guix.texi:28835
  43554. msgid "UNIX socket permissions for the R/O socket. This is used for monitoring VM status only."
  43555. msgstr ""
  43556. #. type: deftypevr
  43557. #: guix-git/doc/guix.texi:28837 guix-git/doc/guix.texi:28855
  43558. msgid "Defaults to @samp{\"0777\"}."
  43559. msgstr ""
  43560. #. type: deftypevr
  43561. #: guix-git/doc/guix.texi:28840
  43562. #, no-wrap
  43563. msgid "{@code{libvirt-configuration} parameter} string unix-sock-rw-perms"
  43564. msgstr ""
  43565. #. type: deftypevr
  43566. #: guix-git/doc/guix.texi:28844
  43567. msgid "UNIX socket permissions for the R/W socket. Default allows only root. If PolicyKit is enabled on the socket, the default will change to allow everyone (eg, 0777)"
  43568. msgstr ""
  43569. #. type: deftypevr
  43570. #: guix-git/doc/guix.texi:28846
  43571. msgid "Defaults to @samp{\"0770\"}."
  43572. msgstr ""
  43573. #. type: deftypevr
  43574. #: guix-git/doc/guix.texi:28849
  43575. #, no-wrap
  43576. msgid "{@code{libvirt-configuration} parameter} string unix-sock-admin-perms"
  43577. msgstr ""
  43578. #. type: deftypevr
  43579. #: guix-git/doc/guix.texi:28853
  43580. msgid "UNIX socket permissions for the admin socket. Default allows only owner (root), do not change it unless you are sure to whom you are exposing the access to."
  43581. msgstr ""
  43582. #. type: deftypevr
  43583. #: guix-git/doc/guix.texi:28858
  43584. #, no-wrap
  43585. msgid "{@code{libvirt-configuration} parameter} string unix-sock-dir"
  43586. msgstr ""
  43587. #. type: deftypevr
  43588. #: guix-git/doc/guix.texi:28860
  43589. msgid "The directory in which sockets will be found/created."
  43590. msgstr ""
  43591. #. type: deftypevr
  43592. #: guix-git/doc/guix.texi:28862
  43593. msgid "Defaults to @samp{\"/var/run/libvirt\"}."
  43594. msgstr ""
  43595. #. type: deftypevr
  43596. #: guix-git/doc/guix.texi:28865
  43597. #, no-wrap
  43598. msgid "{@code{libvirt-configuration} parameter} string auth-unix-ro"
  43599. msgstr ""
  43600. #. type: deftypevr
  43601. #: guix-git/doc/guix.texi:28868
  43602. msgid "Authentication scheme for UNIX read-only sockets. By default socket permissions allow anyone to connect"
  43603. msgstr ""
  43604. #. type: deftypevr
  43605. #: guix-git/doc/guix.texi:28870 guix-git/doc/guix.texi:28879
  43606. msgid "Defaults to @samp{\"polkit\"}."
  43607. msgstr ""
  43608. #. type: deftypevr
  43609. #: guix-git/doc/guix.texi:28873
  43610. #, no-wrap
  43611. msgid "{@code{libvirt-configuration} parameter} string auth-unix-rw"
  43612. msgstr ""
  43613. #. type: deftypevr
  43614. #: guix-git/doc/guix.texi:28877
  43615. msgid "Authentication scheme for UNIX read-write sockets. By default socket permissions only allow root. If PolicyKit support was compiled into libvirt, the default will be to use 'polkit' auth."
  43616. msgstr ""
  43617. #. type: deftypevr
  43618. #: guix-git/doc/guix.texi:28882
  43619. #, no-wrap
  43620. msgid "{@code{libvirt-configuration} parameter} string auth-tcp"
  43621. msgstr ""
  43622. #. type: deftypevr
  43623. #: guix-git/doc/guix.texi:28886
  43624. msgid "Authentication scheme for TCP sockets. If you don't enable SASL, then all TCP traffic is cleartext. Don't do this outside of a dev/test scenario."
  43625. msgstr ""
  43626. #. type: deftypevr
  43627. #: guix-git/doc/guix.texi:28888
  43628. msgid "Defaults to @samp{\"sasl\"}."
  43629. msgstr ""
  43630. #. type: deftypevr
  43631. #: guix-git/doc/guix.texi:28891
  43632. #, no-wrap
  43633. msgid "{@code{libvirt-configuration} parameter} string auth-tls"
  43634. msgstr ""
  43635. #. type: deftypevr
  43636. #: guix-git/doc/guix.texi:28895
  43637. msgid "Authentication scheme for TLS sockets. TLS sockets already have encryption provided by the TLS layer, and limited authentication is done by certificates."
  43638. msgstr ""
  43639. #. type: deftypevr
  43640. #: guix-git/doc/guix.texi:28898
  43641. msgid "It is possible to make use of any SASL authentication mechanism as well, by using 'sasl' for this option"
  43642. msgstr ""
  43643. #. type: deftypevr
  43644. #: guix-git/doc/guix.texi:28900
  43645. msgid "Defaults to @samp{\"none\"}."
  43646. msgstr ""
  43647. #. type: deftypevr
  43648. #: guix-git/doc/guix.texi:28903
  43649. #, no-wrap
  43650. msgid "{@code{libvirt-configuration} parameter} optional-list access-drivers"
  43651. msgstr ""
  43652. #. type: deftypevr
  43653. #: guix-git/doc/guix.texi:28905
  43654. msgid "API access control scheme."
  43655. msgstr ""
  43656. #. type: deftypevr
  43657. #: guix-git/doc/guix.texi:28908
  43658. msgid "By default an authenticated user is allowed access to all APIs. Access drivers can place restrictions on this."
  43659. msgstr ""
  43660. #. type: deftypevr
  43661. #: guix-git/doc/guix.texi:28913
  43662. #, no-wrap
  43663. msgid "{@code{libvirt-configuration} parameter} string key-file"
  43664. msgstr ""
  43665. #. type: deftypevr
  43666. #: guix-git/doc/guix.texi:28916
  43667. msgid "Server key file path. If set to an empty string, then no private key is loaded."
  43668. msgstr ""
  43669. #. type: deftypevr
  43670. #: guix-git/doc/guix.texi:28921
  43671. #, no-wrap
  43672. msgid "{@code{libvirt-configuration} parameter} string cert-file"
  43673. msgstr ""
  43674. #. type: deftypevr
  43675. #: guix-git/doc/guix.texi:28924
  43676. msgid "Server key file path. If set to an empty string, then no certificate is loaded."
  43677. msgstr ""
  43678. #. type: deftypevr
  43679. #: guix-git/doc/guix.texi:28929
  43680. #, no-wrap
  43681. msgid "{@code{libvirt-configuration} parameter} string ca-file"
  43682. msgstr ""
  43683. #. type: deftypevr
  43684. #: guix-git/doc/guix.texi:28932
  43685. msgid "Server key file path. If set to an empty string, then no CA certificate is loaded."
  43686. msgstr ""
  43687. #. type: deftypevr
  43688. #: guix-git/doc/guix.texi:28937
  43689. #, no-wrap
  43690. msgid "{@code{libvirt-configuration} parameter} string crl-file"
  43691. msgstr ""
  43692. #. type: deftypevr
  43693. #: guix-git/doc/guix.texi:28940
  43694. msgid "Certificate revocation list path. If set to an empty string, then no CRL is loaded."
  43695. msgstr ""
  43696. #. type: deftypevr
  43697. #: guix-git/doc/guix.texi:28945
  43698. #, no-wrap
  43699. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-sanity-cert"
  43700. msgstr ""
  43701. #. type: deftypevr
  43702. #: guix-git/doc/guix.texi:28947
  43703. msgid "Disable verification of our own server certificates."
  43704. msgstr ""
  43705. #. type: deftypevr
  43706. #: guix-git/doc/guix.texi:28950
  43707. msgid "When libvirtd starts it performs some sanity checks against its own certificates."
  43708. msgstr ""
  43709. #. type: deftypevr
  43710. #: guix-git/doc/guix.texi:28955
  43711. #, no-wrap
  43712. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-verify-cert"
  43713. msgstr ""
  43714. #. type: deftypevr
  43715. #: guix-git/doc/guix.texi:28957
  43716. msgid "Disable verification of client certificates."
  43717. msgstr ""
  43718. #. type: deftypevr
  43719. #: guix-git/doc/guix.texi:28961
  43720. msgid "Client certificate verification is the primary authentication mechanism. Any client which does not present a certificate signed by the CA will be rejected."
  43721. msgstr ""
  43722. #. type: deftypevr
  43723. #: guix-git/doc/guix.texi:28966
  43724. #, no-wrap
  43725. msgid "{@code{libvirt-configuration} parameter} optional-list tls-allowed-dn-list"
  43726. msgstr ""
  43727. #. type: deftypevr
  43728. #: guix-git/doc/guix.texi:28968
  43729. msgid "Whitelist of allowed x509 Distinguished Name."
  43730. msgstr ""
  43731. #. type: deftypevr
  43732. #: guix-git/doc/guix.texi:28973
  43733. #, no-wrap
  43734. msgid "{@code{libvirt-configuration} parameter} optional-list sasl-allowed-usernames"
  43735. msgstr ""
  43736. #. type: deftypevr
  43737. #: guix-git/doc/guix.texi:28976
  43738. msgid "Whitelist of allowed SASL usernames. The format for username depends on the SASL authentication mechanism."
  43739. msgstr ""
  43740. #. type: deftypevr
  43741. #: guix-git/doc/guix.texi:28981
  43742. #, no-wrap
  43743. msgid "{@code{libvirt-configuration} parameter} string tls-priority"
  43744. msgstr ""
  43745. #. type: deftypevr
  43746. #: guix-git/doc/guix.texi:28985
  43747. msgid "Override the compile time default TLS priority string. The default is usually @samp{\"NORMAL\"} unless overridden at build time. Only set this is it is desired for libvirt to deviate from the global default settings."
  43748. msgstr ""
  43749. #. type: deftypevr
  43750. #: guix-git/doc/guix.texi:28987
  43751. msgid "Defaults to @samp{\"NORMAL\"}."
  43752. msgstr ""
  43753. #. type: deftypevr
  43754. #: guix-git/doc/guix.texi:28990
  43755. #, no-wrap
  43756. msgid "{@code{libvirt-configuration} parameter} integer max-clients"
  43757. msgstr ""
  43758. #. type: deftypevr
  43759. #: guix-git/doc/guix.texi:28993 guix-git/doc/guix.texi:29417
  43760. msgid "Maximum number of concurrent client connections to allow over all sockets combined."
  43761. msgstr ""
  43762. #. type: deftypevr
  43763. #: guix-git/doc/guix.texi:28995
  43764. msgid "Defaults to @samp{5000}."
  43765. msgstr ""
  43766. #. type: deftypevr
  43767. #: guix-git/doc/guix.texi:28998
  43768. #, no-wrap
  43769. msgid "{@code{libvirt-configuration} parameter} integer max-queued-clients"
  43770. msgstr ""
  43771. #. type: deftypevr
  43772. #: guix-git/doc/guix.texi:29002
  43773. msgid "Maximum length of queue of connections waiting to be accepted by the daemon. Note, that some protocols supporting retransmission may obey this so that a later reattempt at connection succeeds."
  43774. msgstr ""
  43775. #. type: deftypevr
  43776. #: guix-git/doc/guix.texi:29007
  43777. #, no-wrap
  43778. msgid "{@code{libvirt-configuration} parameter} integer max-anonymous-clients"
  43779. msgstr ""
  43780. #. type: deftypevr
  43781. #: guix-git/doc/guix.texi:29010
  43782. msgid "Maximum length of queue of accepted but not yet authenticated clients. Set this to zero to turn this feature off"
  43783. msgstr ""
  43784. #. type: deftypevr
  43785. #: guix-git/doc/guix.texi:29012 guix-git/doc/guix.texi:29030
  43786. #: guix-git/doc/guix.texi:29046
  43787. msgid "Defaults to @samp{20}."
  43788. msgstr ""
  43789. #. type: deftypevr
  43790. #: guix-git/doc/guix.texi:29015
  43791. #, no-wrap
  43792. msgid "{@code{libvirt-configuration} parameter} integer min-workers"
  43793. msgstr ""
  43794. #. type: deftypevr
  43795. #: guix-git/doc/guix.texi:29017
  43796. msgid "Number of workers to start up initially."
  43797. msgstr ""
  43798. #. type: deftypevr
  43799. #: guix-git/doc/guix.texi:29022
  43800. #, no-wrap
  43801. msgid "{@code{libvirt-configuration} parameter} integer max-workers"
  43802. msgstr ""
  43803. #. type: deftypevr
  43804. #: guix-git/doc/guix.texi:29024
  43805. msgid "Maximum number of worker threads."
  43806. msgstr ""
  43807. #. type: deftypevr
  43808. #: guix-git/doc/guix.texi:29028
  43809. msgid "If the number of active clients exceeds @code{min-workers}, then more threads are spawned, up to max_workers limit. Typically you'd want max_workers to equal maximum number of clients allowed."
  43810. msgstr ""
  43811. #. type: deftypevr
  43812. #: guix-git/doc/guix.texi:29033
  43813. #, no-wrap
  43814. msgid "{@code{libvirt-configuration} parameter} integer prio-workers"
  43815. msgstr ""
  43816. #. type: deftypevr
  43817. #: guix-git/doc/guix.texi:29037
  43818. msgid "Number of priority workers. If all workers from above pool are stuck, some calls marked as high priority (notably domainDestroy) can be executed in this pool."
  43819. msgstr ""
  43820. #. type: deftypevr
  43821. #: guix-git/doc/guix.texi:29042
  43822. #, no-wrap
  43823. msgid "{@code{libvirt-configuration} parameter} integer max-requests"
  43824. msgstr ""
  43825. #. type: deftypevr
  43826. #: guix-git/doc/guix.texi:29044
  43827. msgid "Total global limit on concurrent RPC calls."
  43828. msgstr ""
  43829. #. type: deftypevr
  43830. #: guix-git/doc/guix.texi:29049
  43831. #, no-wrap
  43832. msgid "{@code{libvirt-configuration} parameter} integer max-client-requests"
  43833. msgstr ""
  43834. #. type: deftypevr
  43835. #: guix-git/doc/guix.texi:29053
  43836. msgid "Limit on concurrent requests from a single client connection. To avoid one client monopolizing the server this should be a small fraction of the global max_requests and max_workers parameter."
  43837. msgstr ""
  43838. #. type: deftypevr
  43839. #: guix-git/doc/guix.texi:29058
  43840. #, no-wrap
  43841. msgid "{@code{libvirt-configuration} parameter} integer admin-min-workers"
  43842. msgstr ""
  43843. #. type: deftypevr
  43844. #: guix-git/doc/guix.texi:29060
  43845. msgid "Same as @code{min-workers} but for the admin interface."
  43846. msgstr ""
  43847. #. type: deftypevr
  43848. #: guix-git/doc/guix.texi:29065
  43849. #, no-wrap
  43850. msgid "{@code{libvirt-configuration} parameter} integer admin-max-workers"
  43851. msgstr ""
  43852. #. type: deftypevr
  43853. #: guix-git/doc/guix.texi:29067
  43854. msgid "Same as @code{max-workers} but for the admin interface."
  43855. msgstr ""
  43856. #. type: deftypevr
  43857. #: guix-git/doc/guix.texi:29072
  43858. #, no-wrap
  43859. msgid "{@code{libvirt-configuration} parameter} integer admin-max-clients"
  43860. msgstr ""
  43861. #. type: deftypevr
  43862. #: guix-git/doc/guix.texi:29074
  43863. msgid "Same as @code{max-clients} but for the admin interface."
  43864. msgstr ""
  43865. #. type: deftypevr
  43866. #: guix-git/doc/guix.texi:29079
  43867. #, no-wrap
  43868. msgid "{@code{libvirt-configuration} parameter} integer admin-max-queued-clients"
  43869. msgstr ""
  43870. #. type: deftypevr
  43871. #: guix-git/doc/guix.texi:29081
  43872. msgid "Same as @code{max-queued-clients} but for the admin interface."
  43873. msgstr ""
  43874. #. type: deftypevr
  43875. #: guix-git/doc/guix.texi:29086
  43876. #, no-wrap
  43877. msgid "{@code{libvirt-configuration} parameter} integer admin-max-client-requests"
  43878. msgstr ""
  43879. #. type: deftypevr
  43880. #: guix-git/doc/guix.texi:29088
  43881. msgid "Same as @code{max-client-requests} but for the admin interface."
  43882. msgstr ""
  43883. #. type: deftypevr
  43884. #: guix-git/doc/guix.texi:29093
  43885. #, no-wrap
  43886. msgid "{@code{libvirt-configuration} parameter} integer log-level"
  43887. msgstr ""
  43888. #. type: deftypevr
  43889. #: guix-git/doc/guix.texi:29095 guix-git/doc/guix.texi:29319
  43890. msgid "Logging level. 4 errors, 3 warnings, 2 information, 1 debug."
  43891. msgstr ""
  43892. #. type: deftypevr
  43893. #: guix-git/doc/guix.texi:29100
  43894. #, no-wrap
  43895. msgid "{@code{libvirt-configuration} parameter} string log-filters"
  43896. msgstr ""
  43897. #. type: deftypevr
  43898. #: guix-git/doc/guix.texi:29102 guix-git/doc/guix.texi:29326
  43899. msgid "Logging filters."
  43900. msgstr ""
  43901. #. type: deftypevr
  43902. #: guix-git/doc/guix.texi:29105
  43903. msgid "A filter allows to select a different logging level for a given category of logs. The format for a filter is one of:"
  43904. msgstr ""
  43905. #. type: itemize
  43906. #: guix-git/doc/guix.texi:29109 guix-git/doc/guix.texi:29333
  43907. msgid "x:name"
  43908. msgstr ""
  43909. #. type: itemize
  43910. #: guix-git/doc/guix.texi:29112 guix-git/doc/guix.texi:29336
  43911. msgid "x:+name"
  43912. msgstr ""
  43913. #. type: deftypevr
  43914. #: guix-git/doc/guix.texi:29123
  43915. msgid "where @code{name} is a string which is matched against the category given in the @code{VIR_LOG_INIT()} at the top of each libvirt source file, e.g., @samp{\"remote\"}, @samp{\"qemu\"}, or @samp{\"util.json\"} (the name in the filter can be a substring of the full category name, in order to match multiple similar categories), the optional @samp{\"+\"} prefix tells libvirt to log stack trace for each message matching name, and @code{x} is the minimal level where matching messages should be logged:"
  43916. msgstr ""
  43917. #. type: itemize
  43918. #: guix-git/doc/guix.texi:29127 guix-git/doc/guix.texi:29172
  43919. #: guix-git/doc/guix.texi:29350 guix-git/doc/guix.texi:29395
  43920. msgid "1: DEBUG"
  43921. msgstr ""
  43922. #. type: itemize
  43923. #: guix-git/doc/guix.texi:29130 guix-git/doc/guix.texi:29175
  43924. #: guix-git/doc/guix.texi:29353 guix-git/doc/guix.texi:29398
  43925. msgid "2: INFO"
  43926. msgstr ""
  43927. #. type: itemize
  43928. #: guix-git/doc/guix.texi:29133 guix-git/doc/guix.texi:29178
  43929. #: guix-git/doc/guix.texi:29356 guix-git/doc/guix.texi:29401
  43930. msgid "3: WARNING"
  43931. msgstr ""
  43932. #. type: itemize
  43933. #: guix-git/doc/guix.texi:29136 guix-git/doc/guix.texi:29181
  43934. #: guix-git/doc/guix.texi:29359 guix-git/doc/guix.texi:29404
  43935. msgid "4: ERROR"
  43936. msgstr ""
  43937. #. type: deftypevr
  43938. #: guix-git/doc/guix.texi:29141 guix-git/doc/guix.texi:29364
  43939. msgid "Multiple filters can be defined in a single filters statement, they just need to be separated by spaces."
  43940. msgstr ""
  43941. #. type: deftypevr
  43942. #: guix-git/doc/guix.texi:29143 guix-git/doc/guix.texi:29366
  43943. msgid "Defaults to @samp{\"3:remote 4:event\"}."
  43944. msgstr ""
  43945. #. type: deftypevr
  43946. #: guix-git/doc/guix.texi:29146
  43947. #, no-wrap
  43948. msgid "{@code{libvirt-configuration} parameter} string log-outputs"
  43949. msgstr ""
  43950. #. type: deftypevr
  43951. #: guix-git/doc/guix.texi:29148 guix-git/doc/guix.texi:29371
  43952. msgid "Logging outputs."
  43953. msgstr ""
  43954. #. type: deftypevr
  43955. #: guix-git/doc/guix.texi:29151
  43956. msgid "An output is one of the places to save logging information. The format for an output can be:"
  43957. msgstr ""
  43958. #. type: item
  43959. #: guix-git/doc/guix.texi:29153 guix-git/doc/guix.texi:29376
  43960. #, no-wrap
  43961. msgid "x:stderr"
  43962. msgstr ""
  43963. #. type: table
  43964. #: guix-git/doc/guix.texi:29155 guix-git/doc/guix.texi:29378
  43965. msgid "output goes to stderr"
  43966. msgstr ""
  43967. #. type: item
  43968. #: guix-git/doc/guix.texi:29156 guix-git/doc/guix.texi:29379
  43969. #, no-wrap
  43970. msgid "x:syslog:name"
  43971. msgstr ""
  43972. #. type: table
  43973. #: guix-git/doc/guix.texi:29158 guix-git/doc/guix.texi:29381
  43974. msgid "use syslog for the output and use the given name as the ident"
  43975. msgstr ""
  43976. #. type: item
  43977. #: guix-git/doc/guix.texi:29159 guix-git/doc/guix.texi:29382
  43978. #, no-wrap
  43979. msgid "x:file:file_path"
  43980. msgstr ""
  43981. #. type: table
  43982. #: guix-git/doc/guix.texi:29161 guix-git/doc/guix.texi:29384
  43983. msgid "output to a file, with the given filepath"
  43984. msgstr ""
  43985. #. type: item
  43986. #: guix-git/doc/guix.texi:29162 guix-git/doc/guix.texi:29385
  43987. #, no-wrap
  43988. msgid "x:journald"
  43989. msgstr ""
  43990. #. type: table
  43991. #: guix-git/doc/guix.texi:29164 guix-git/doc/guix.texi:29387
  43992. msgid "output to journald logging system"
  43993. msgstr ""
  43994. #. type: deftypevr
  43995. #: guix-git/doc/guix.texi:29168 guix-git/doc/guix.texi:29391
  43996. msgid "In all case the x prefix is the minimal level, acting as a filter"
  43997. msgstr ""
  43998. #. type: deftypevr
  43999. #: guix-git/doc/guix.texi:29186 guix-git/doc/guix.texi:29409
  44000. msgid "Multiple outputs can be defined, they just need to be separated by spaces."
  44001. msgstr ""
  44002. #. type: deftypevr
  44003. #: guix-git/doc/guix.texi:29188 guix-git/doc/guix.texi:29411
  44004. msgid "Defaults to @samp{\"3:stderr\"}."
  44005. msgstr ""
  44006. #. type: deftypevr
  44007. #: guix-git/doc/guix.texi:29191
  44008. #, no-wrap
  44009. msgid "{@code{libvirt-configuration} parameter} integer audit-level"
  44010. msgstr ""
  44011. #. type: deftypevr
  44012. #: guix-git/doc/guix.texi:29193
  44013. msgid "Allows usage of the auditing subsystem to be altered"
  44014. msgstr ""
  44015. #. type: itemize
  44016. #: guix-git/doc/guix.texi:29197
  44017. msgid "0: disable all auditing"
  44018. msgstr ""
  44019. #. type: itemize
  44020. #: guix-git/doc/guix.texi:29200
  44021. msgid "1: enable auditing, only if enabled on host"
  44022. msgstr ""
  44023. #. type: itemize
  44024. #: guix-git/doc/guix.texi:29203
  44025. msgid "2: enable auditing, and exit if disabled on host."
  44026. msgstr ""
  44027. #. type: deftypevr
  44028. #: guix-git/doc/guix.texi:29210
  44029. #, no-wrap
  44030. msgid "{@code{libvirt-configuration} parameter} boolean audit-logging"
  44031. msgstr ""
  44032. #. type: deftypevr
  44033. #: guix-git/doc/guix.texi:29212
  44034. msgid "Send audit messages via libvirt logging infrastructure."
  44035. msgstr ""
  44036. #. type: deftypevr
  44037. #: guix-git/doc/guix.texi:29217
  44038. #, no-wrap
  44039. msgid "{@code{libvirt-configuration} parameter} optional-string host-uuid"
  44040. msgstr ""
  44041. #. type: deftypevr
  44042. #: guix-git/doc/guix.texi:29219
  44043. msgid "Host UUID@. UUID must not have all digits be the same."
  44044. msgstr ""
  44045. #. type: deftypevr
  44046. #: guix-git/doc/guix.texi:29224
  44047. #, no-wrap
  44048. msgid "{@code{libvirt-configuration} parameter} string host-uuid-source"
  44049. msgstr ""
  44050. #. type: deftypevr
  44051. #: guix-git/doc/guix.texi:29226
  44052. msgid "Source to read host UUID."
  44053. msgstr ""
  44054. #. type: itemize
  44055. #: guix-git/doc/guix.texi:29230
  44056. msgid "@code{smbios}: fetch the UUID from @code{dmidecode -s system-uuid}"
  44057. msgstr ""
  44058. #. type: itemize
  44059. #: guix-git/doc/guix.texi:29233
  44060. msgid "@code{machine-id}: fetch the UUID from @code{/etc/machine-id}"
  44061. msgstr ""
  44062. #. type: deftypevr
  44063. #: guix-git/doc/guix.texi:29238
  44064. msgid "If @code{dmidecode} does not provide a valid UUID a temporary UUID will be generated."
  44065. msgstr ""
  44066. #. type: deftypevr
  44067. #: guix-git/doc/guix.texi:29240
  44068. msgid "Defaults to @samp{\"smbios\"}."
  44069. msgstr ""
  44070. #. type: deftypevr
  44071. #: guix-git/doc/guix.texi:29243
  44072. #, no-wrap
  44073. msgid "{@code{libvirt-configuration} parameter} integer keepalive-interval"
  44074. msgstr ""
  44075. #. type: deftypevr
  44076. #: guix-git/doc/guix.texi:29248
  44077. msgid "A keepalive message is sent to a client after @code{keepalive_interval} seconds of inactivity to check if the client is still responding. If set to -1, libvirtd will never send keepalive requests; however clients can still send them and the daemon will send responses."
  44078. msgstr ""
  44079. #. type: deftypevr
  44080. #: guix-git/doc/guix.texi:29253
  44081. #, no-wrap
  44082. msgid "{@code{libvirt-configuration} parameter} integer keepalive-count"
  44083. msgstr ""
  44084. #. type: deftypevr
  44085. #: guix-git/doc/guix.texi:29257
  44086. msgid "Maximum number of keepalive messages that are allowed to be sent to the client without getting any response before the connection is considered broken."
  44087. msgstr ""
  44088. #. type: deftypevr
  44089. #: guix-git/doc/guix.texi:29264
  44090. msgid "In other words, the connection is automatically closed approximately after @code{keepalive_interval * (keepalive_count + 1)} seconds since the last message received from the client. When @code{keepalive-count} is set to 0, connections will be automatically closed after @code{keepalive-interval} seconds of inactivity without sending any keepalive messages."
  44091. msgstr ""
  44092. #. type: deftypevr
  44093. #: guix-git/doc/guix.texi:29269
  44094. #, no-wrap
  44095. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-interval"
  44096. msgstr ""
  44097. #. type: deftypevr
  44098. #: guix-git/doc/guix.texi:29271 guix-git/doc/guix.texi:29278
  44099. msgid "Same as above but for admin interface."
  44100. msgstr ""
  44101. #. type: deftypevr
  44102. #: guix-git/doc/guix.texi:29276
  44103. #, no-wrap
  44104. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-count"
  44105. msgstr ""
  44106. #. type: deftypevr
  44107. #: guix-git/doc/guix.texi:29283
  44108. #, no-wrap
  44109. msgid "{@code{libvirt-configuration} parameter} integer ovs-timeout"
  44110. msgstr ""
  44111. #. type: deftypevr
  44112. #: guix-git/doc/guix.texi:29285
  44113. msgid "Timeout for Open vSwitch calls."
  44114. msgstr ""
  44115. #. type: deftypevr
  44116. #: guix-git/doc/guix.texi:29289
  44117. msgid "The @code{ovs-vsctl} utility is used for the configuration and its timeout option is set by default to 5 seconds to avoid potential infinite waits blocking libvirt."
  44118. msgstr ""
  44119. #. type: subsubheading
  44120. #: guix-git/doc/guix.texi:29296
  44121. #, no-wrap
  44122. msgid "Virtlog daemon"
  44123. msgstr ""
  44124. #. type: Plain text
  44125. #: guix-git/doc/guix.texi:29299
  44126. msgid "The virtlogd service is a server side daemon component of libvirt that is used to manage logs from virtual machine consoles."
  44127. msgstr ""
  44128. #. type: Plain text
  44129. #: guix-git/doc/guix.texi:29305
  44130. msgid "This daemon is not used directly by libvirt client applications, rather it is called on their behalf by @code{libvirtd}. By maintaining the logs in a standalone daemon, the main @code{libvirtd} daemon can be restarted without risk of losing logs. The @code{virtlogd} daemon has the ability to re-exec() itself upon receiving @code{SIGUSR1}, to allow live upgrades without downtime."
  44131. msgstr ""
  44132. #. type: deffn
  44133. #: guix-git/doc/guix.texi:29306
  44134. #, no-wrap
  44135. msgid "{Scheme Variable} virtlog-service-type"
  44136. msgstr ""
  44137. #. type: deffn
  44138. #: guix-git/doc/guix.texi:29309
  44139. msgid "This is the type of the virtlog daemon. Its value must be a @code{virtlog-configuration}."
  44140. msgstr ""
  44141. #. type: lisp
  44142. #: guix-git/doc/guix.texi:29314
  44143. #, no-wrap
  44144. msgid ""
  44145. "(service virtlog-service-type\n"
  44146. " (virtlog-configuration\n"
  44147. " (max-clients 1000)))\n"
  44148. msgstr ""
  44149. #. type: deftypevr
  44150. #: guix-git/doc/guix.texi:29317
  44151. #, no-wrap
  44152. msgid "{@code{virtlog-configuration} parameter} integer log-level"
  44153. msgstr ""
  44154. #. type: deftypevr
  44155. #: guix-git/doc/guix.texi:29324
  44156. #, no-wrap
  44157. msgid "{@code{virtlog-configuration} parameter} string log-filters"
  44158. msgstr ""
  44159. #. type: deftypevr
  44160. #: guix-git/doc/guix.texi:29329
  44161. msgid "A filter allows to select a different logging level for a given category of logs The format for a filter is one of:"
  44162. msgstr ""
  44163. #. type: deftypevr
  44164. #: guix-git/doc/guix.texi:29346
  44165. msgid "where @code{name} is a string which is matched against the category given in the @code{VIR_LOG_INIT()} at the top of each libvirt source file, e.g., \"remote\", \"qemu\", or \"util.json\" (the name in the filter can be a substring of the full category name, in order to match multiple similar categories), the optional \"+\" prefix tells libvirt to log stack trace for each message matching name, and @code{x} is the minimal level where matching messages should be logged:"
  44166. msgstr ""
  44167. #. type: deftypevr
  44168. #: guix-git/doc/guix.texi:29369
  44169. #, no-wrap
  44170. msgid "{@code{virtlog-configuration} parameter} string log-outputs"
  44171. msgstr ""
  44172. #. type: deftypevr
  44173. #: guix-git/doc/guix.texi:29374
  44174. msgid "An output is one of the places to save logging information The format for an output can be:"
  44175. msgstr ""
  44176. #. type: deftypevr
  44177. #: guix-git/doc/guix.texi:29414
  44178. #, no-wrap
  44179. msgid "{@code{virtlog-configuration} parameter} integer max-clients"
  44180. msgstr ""
  44181. #. type: deftypevr
  44182. #: guix-git/doc/guix.texi:29419
  44183. msgid "Defaults to @samp{1024}."
  44184. msgstr ""
  44185. #. type: deftypevr
  44186. #: guix-git/doc/guix.texi:29422
  44187. #, no-wrap
  44188. msgid "{@code{virtlog-configuration} parameter} integer max-size"
  44189. msgstr ""
  44190. #. type: deftypevr
  44191. #: guix-git/doc/guix.texi:29424
  44192. msgid "Maximum file size before rolling over."
  44193. msgstr ""
  44194. #. type: deftypevr
  44195. #: guix-git/doc/guix.texi:29426
  44196. msgid "Defaults to @samp{2MB}"
  44197. msgstr ""
  44198. #. type: deftypevr
  44199. #: guix-git/doc/guix.texi:29429
  44200. #, no-wrap
  44201. msgid "{@code{virtlog-configuration} parameter} integer max-backups"
  44202. msgstr ""
  44203. #. type: deftypevr
  44204. #: guix-git/doc/guix.texi:29431
  44205. msgid "Maximum number of backup files to keep."
  44206. msgstr ""
  44207. #. type: deftypevr
  44208. #: guix-git/doc/guix.texi:29433
  44209. msgid "Defaults to @samp{3}"
  44210. msgstr ""
  44211. #. type: anchor{#1}
  44212. #: guix-git/doc/guix.texi:29437
  44213. msgid "transparent-emulation-qemu"
  44214. msgstr ""
  44215. #. type: subsubheading
  44216. #: guix-git/doc/guix.texi:29437
  44217. #, no-wrap
  44218. msgid "Transparent Emulation with QEMU"
  44219. msgstr ""
  44220. #. type: cindex
  44221. #: guix-git/doc/guix.texi:29439
  44222. #, no-wrap
  44223. msgid "emulation"
  44224. msgstr ""
  44225. #. type: code{#1}
  44226. #: guix-git/doc/guix.texi:29440
  44227. #, no-wrap
  44228. msgid "binfmt_misc"
  44229. msgstr ""
  44230. #. type: Plain text
  44231. #: guix-git/doc/guix.texi:29448
  44232. msgid "@code{qemu-binfmt-service-type} provides support for transparent emulation of program binaries built for different architectures---e.g., it allows you to transparently execute an ARMv7 program on an x86_64 machine. It achieves this by combining the @uref{https://www.qemu.org, QEMU} emulator and the @code{binfmt_misc} feature of the kernel Linux. This feature only allows you to emulate GNU/Linux on a different architecture, but see below for GNU/Hurd support."
  44233. msgstr ""
  44234. #. type: defvr
  44235. #: guix-git/doc/guix.texi:29449
  44236. #, no-wrap
  44237. msgid "{Scheme Variable} qemu-binfmt-service-type"
  44238. msgstr ""
  44239. #. type: defvr
  44240. #: guix-git/doc/guix.texi:29454
  44241. msgid "This is the type of the QEMU/binfmt service for transparent emulation. Its value must be a @code{qemu-binfmt-configuration} object, which specifies the QEMU package to use as well as the architecture we want to emulated:"
  44242. msgstr ""
  44243. #. type: lisp
  44244. #: guix-git/doc/guix.texi:29459
  44245. #, fuzzy, no-wrap
  44246. msgid ""
  44247. "(service qemu-binfmt-service-type\n"
  44248. " (qemu-binfmt-configuration\n"
  44249. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  44250. msgstr ""
  44251. "(service qemu-binfmt-service-type\n"
  44252. " (qemu-binfmt-configuration\n"
  44253. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  44254. " (guix-support? #t)))\n"
  44255. #. type: defvr
  44256. #: guix-git/doc/guix.texi:29465
  44257. msgid "In this example, we enable transparent emulation for the ARM and aarch64 platforms. Running @code{herd stop qemu-binfmt} turns it off, and running @code{herd start qemu-binfmt} turns it back on (@pxref{Invoking herd, the @command{herd} command,, shepherd, The GNU Shepherd Manual})."
  44258. msgstr ""
  44259. #. type: deftp
  44260. #: guix-git/doc/guix.texi:29467
  44261. #, no-wrap
  44262. msgid "{Data Type} qemu-binfmt-configuration"
  44263. msgstr ""
  44264. #. type: deftp
  44265. #: guix-git/doc/guix.texi:29469
  44266. msgid "This is the configuration for the @code{qemu-binfmt} service."
  44267. msgstr ""
  44268. #. type: item
  44269. #: guix-git/doc/guix.texi:29471
  44270. #, no-wrap
  44271. msgid "@code{platforms} (default: @code{'()})"
  44272. msgstr ""
  44273. #. type: table
  44274. #: guix-git/doc/guix.texi:29474
  44275. msgid "The list of emulated QEMU platforms. Each item must be a @dfn{platform object} as returned by @code{lookup-qemu-platforms} (see below)."
  44276. msgstr ""
  44277. #. type: table
  44278. #: guix-git/doc/guix.texi:29477
  44279. msgid "For example, let's suppose you're on an x86_64 machine and you have this service:"
  44280. msgstr ""
  44281. #. type: lisp
  44282. #: guix-git/doc/guix.texi:29482
  44283. #, fuzzy, no-wrap
  44284. msgid ""
  44285. "(service qemu-binfmt-service-type\n"
  44286. " (qemu-binfmt-configuration\n"
  44287. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  44288. msgstr ""
  44289. "(service qemu-binfmt-service-type\n"
  44290. " (qemu-binfmt-configuration\n"
  44291. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  44292. " (guix-support? #t)))\n"
  44293. #. type: table
  44294. #: guix-git/doc/guix.texi:29485
  44295. msgid "You can run:"
  44296. msgstr ""
  44297. #. type: example
  44298. #: guix-git/doc/guix.texi:29488
  44299. #, no-wrap
  44300. msgid "guix build -s armhf-linux inkscape\n"
  44301. msgstr ""
  44302. #. type: table
  44303. #: guix-git/doc/guix.texi:29495
  44304. msgid "and it will build Inkscape for ARMv7 @emph{as if it were a native build}, transparently using QEMU to emulate the ARMv7 CPU@. Pretty handy if you'd like to test a package build for an architecture you don't have access to!"
  44305. msgstr ""
  44306. #. type: item
  44307. #: guix-git/doc/guix.texi:29496
  44308. #, no-wrap
  44309. msgid "@code{qemu} (default: @code{qemu})"
  44310. msgstr ""
  44311. #. type: table
  44312. #: guix-git/doc/guix.texi:29498 guix-git/doc/guix.texi:29592
  44313. msgid "The QEMU package to use."
  44314. msgstr ""
  44315. #. type: deffn
  44316. #: guix-git/doc/guix.texi:29501
  44317. #, no-wrap
  44318. msgid "{Scheme Procedure} lookup-qemu-platforms @var{platforms}@dots{}"
  44319. msgstr ""
  44320. #. type: deffn
  44321. #: guix-git/doc/guix.texi:29506
  44322. msgid "Return the list of QEMU platform objects corresponding to @var{platforms}@dots{}. @var{platforms} must be a list of strings corresponding to platform names, such as @code{\"arm\"}, @code{\"sparc\"}, @code{\"mips64el\"}, and so on."
  44323. msgstr ""
  44324. #. type: deffn
  44325. #: guix-git/doc/guix.texi:29508
  44326. #, no-wrap
  44327. msgid "{Scheme Procedure} qemu-platform? @var{obj}"
  44328. msgstr ""
  44329. #. type: deffn
  44330. #: guix-git/doc/guix.texi:29510
  44331. msgid "Return true if @var{obj} is a platform object."
  44332. msgstr ""
  44333. #. type: deffn
  44334. #: guix-git/doc/guix.texi:29512
  44335. #, no-wrap
  44336. msgid "{Scheme Procedure} qemu-platform-name @var{platform}"
  44337. msgstr ""
  44338. #. type: deffn
  44339. #: guix-git/doc/guix.texi:29514
  44340. msgid "Return the name of @var{platform}---a string such as @code{\"arm\"}."
  44341. msgstr ""
  44342. #. type: subsubheading
  44343. #: guix-git/doc/guix.texi:29517
  44344. #, no-wrap
  44345. msgid "The Hurd in a Virtual Machine"
  44346. msgstr ""
  44347. #. type: cindex
  44348. #: guix-git/doc/guix.texi:29520
  44349. #, no-wrap
  44350. msgid "the Hurd"
  44351. msgstr ""
  44352. #. type: cindex
  44353. #: guix-git/doc/guix.texi:29521
  44354. #, no-wrap
  44355. msgid "childhurd"
  44356. msgstr ""
  44357. #. type: Plain text
  44358. #: guix-git/doc/guix.texi:29529
  44359. msgid "Service @code{hurd-vm} provides support for running GNU/Hurd in a virtual machine (VM), a so-called @dfn{childhurd}. This service is meant to be used on GNU/Linux and the given GNU/Hurd operating system configuration is cross-compiled. The virtual machine is a Shepherd service that can be referred to by the names @code{hurd-vm} and @code{childhurd} and be controlled with commands such as:"
  44360. msgstr ""
  44361. #. type: example
  44362. #: guix-git/doc/guix.texi:29533
  44363. #, no-wrap
  44364. msgid ""
  44365. "herd start hurd-vm\n"
  44366. "herd stop childhurd\n"
  44367. msgstr ""
  44368. #. type: Plain text
  44369. #: guix-git/doc/guix.texi:29537
  44370. msgid "When the service is running, you can view its console by connecting to it with a VNC client, for example with:"
  44371. msgstr ""
  44372. #. type: example
  44373. #: guix-git/doc/guix.texi:29541
  44374. #, no-wrap
  44375. msgid ""
  44376. "guix environment --ad-hoc tigervnc-client -- \\\n"
  44377. " vncviewer localhost:5900\n"
  44378. msgstr ""
  44379. #. type: Plain text
  44380. #: guix-git/doc/guix.texi:29547
  44381. msgid "The default configuration (see @code{hurd-vm-configuration} below) spawns a secure shell (SSH) server in your GNU/Hurd system, which QEMU (the virtual machine emulator) redirects to port 10222 on the host. Thus, you can connect over SSH to the childhurd with:"
  44382. msgstr ""
  44383. #. type: example
  44384. #: guix-git/doc/guix.texi:29550
  44385. #, no-wrap
  44386. msgid "ssh root@@localhost -p 10022\n"
  44387. msgstr ""
  44388. #. type: Plain text
  44389. #: guix-git/doc/guix.texi:29559
  44390. msgid "The childhurd is volatile and stateless: it starts with a fresh root file system every time you restart it. By default though, all the files under @file{/etc/childhurd} on the host are copied as is to the root file system of the childhurd when it boots. This allows you to initialize ``secrets'' inside the VM: SSH host keys, authorized substitute keys, and so on---see the explanation of @code{secret-root} below."
  44391. msgstr ""
  44392. #. type: defvr
  44393. #: guix-git/doc/guix.texi:29560
  44394. #, no-wrap
  44395. msgid "{Scheme Variable} hurd-vm-service-type"
  44396. msgstr ""
  44397. #. type: defvr
  44398. #: guix-git/doc/guix.texi:29566
  44399. msgid "This is the type of the Hurd in a Virtual Machine service. Its value must be a @code{hurd-vm-configuration} object, which specifies the operating system (@pxref{operating-system Reference}) and the disk size for the Hurd Virtual Machine, the QEMU package to use as well as the options for running it."
  44400. msgstr ""
  44401. #. type: lisp
  44402. #: guix-git/doc/guix.texi:29574
  44403. #, no-wrap
  44404. msgid ""
  44405. "(service hurd-vm-service-type\n"
  44406. " (hurd-vm-configuration\n"
  44407. " (disk-size (* 5000 (expt 2 20))) ;5G\n"
  44408. " (memory-size 1024))) ;1024MiB\n"
  44409. msgstr ""
  44410. #. type: defvr
  44411. #: guix-git/doc/guix.texi:29578
  44412. msgid "would create a disk image big enough to build GNU@tie{}Hello, with some extra memory."
  44413. msgstr ""
  44414. #. type: deftp
  44415. #: guix-git/doc/guix.texi:29580
  44416. #, fuzzy, no-wrap
  44417. msgid "{Data Type} hurd-vm-configuration"
  44418. msgstr "{数据类型} build-machine"
  44419. #. type: deftp
  44420. #: guix-git/doc/guix.texi:29583
  44421. msgid "The data type representing the configuration for @code{hurd-vm-service-type}."
  44422. msgstr ""
  44423. #. type: item
  44424. #: guix-git/doc/guix.texi:29585
  44425. #, fuzzy, no-wrap
  44426. msgid "@code{os} (default: @var{%hurd-vm-operating-system})"
  44427. msgstr "@code{mate}(默认值:@code{mate})"
  44428. #. type: table
  44429. #: guix-git/doc/guix.texi:29589
  44430. msgid "The operating system to instantiate. This default is bare-bones with a permissive OpenSSH secure shell daemon listening on port 2222 (@pxref{Networking Services, @code{openssh-service-type}})."
  44431. msgstr ""
  44432. #. type: item
  44433. #: guix-git/doc/guix.texi:29590
  44434. #, fuzzy, no-wrap
  44435. msgid "@code{qemu} (default: @code{qemu-minimal})"
  44436. msgstr "@code{mate}(默认值:@code{mate})"
  44437. #. type: item
  44438. #: guix-git/doc/guix.texi:29593
  44439. #, fuzzy, no-wrap
  44440. msgid "@code{image} (default: @var{hurd-vm-disk-image})"
  44441. msgstr "@code{mate}(默认值:@code{mate})"
  44442. #. type: table
  44443. #: guix-git/doc/guix.texi:29596
  44444. msgid "The procedure used to build the disk-image built from this configuration."
  44445. msgstr ""
  44446. #. type: item
  44447. #: guix-git/doc/guix.texi:29597
  44448. #, fuzzy, no-wrap
  44449. msgid "@code{disk-size} (default: @code{'guess})"
  44450. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  44451. #. type: table
  44452. #: guix-git/doc/guix.texi:29599
  44453. #, fuzzy
  44454. msgid "The size of the disk image."
  44455. msgstr "这个用户手册的许可证。"
  44456. #. type: item
  44457. #: guix-git/doc/guix.texi:29600
  44458. #, fuzzy, no-wrap
  44459. msgid "@code{memory-size} (default: @code{512})"
  44460. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  44461. #. type: table
  44462. #: guix-git/doc/guix.texi:29602
  44463. msgid "The memory size of the Virtual Machine in mebibytes."
  44464. msgstr ""
  44465. #. type: item
  44466. #: guix-git/doc/guix.texi:29603
  44467. #, fuzzy, no-wrap
  44468. msgid "@code{options} (default: @code{'(\"--snapshot\")})"
  44469. msgstr "@code{includes}(默认值:@code{'()})"
  44470. #. type: table
  44471. #: guix-git/doc/guix.texi:29605
  44472. msgid "The extra options for running QEMU."
  44473. msgstr ""
  44474. #. type: table
  44475. #: guix-git/doc/guix.texi:29610
  44476. msgid "If set, a non-zero positive integer used to parameterize Childhurd instances. It is appended to the service's name, e.g. @code{childhurd1}."
  44477. msgstr ""
  44478. #. type: item
  44479. #: guix-git/doc/guix.texi:29611
  44480. #, no-wrap
  44481. msgid "@code{net-options} (default: @var{hurd-vm-net-options})"
  44482. msgstr ""
  44483. #. type: table
  44484. #: guix-git/doc/guix.texi:29613
  44485. msgid "The procedure used to produce the list of QEMU networking options."
  44486. msgstr ""
  44487. #. type: table
  44488. #: guix-git/doc/guix.texi:29615
  44489. msgid "By default, it produces"
  44490. msgstr ""
  44491. #. type: lisp
  44492. #: guix-git/doc/guix.texi:29623
  44493. #, no-wrap
  44494. msgid ""
  44495. "'(\"--device\" \"rtl8139,netdev=net0\"\n"
  44496. " \"--netdev\" (string-append\n"
  44497. " \"user,id=net0,\"\n"
  44498. " \"hostfwd=tcp:127.0.0.1:@var{secrets-port}-:1004,\"\n"
  44499. " \"hostfwd=tcp:127.0.0.1:@var{ssh-port}-:2222,\"\n"
  44500. " \"hostfwd=tcp:127.0.0.1:@var{vnc-port}-:5900\"))\n"
  44501. msgstr ""
  44502. #. type: table
  44503. #: guix-git/doc/guix.texi:29626
  44504. msgid "with forwarded ports:"
  44505. msgstr ""
  44506. #. type: example
  44507. #: guix-git/doc/guix.texi:29631
  44508. #, no-wrap
  44509. msgid ""
  44510. "@var{secrets-port}: @code{(+ 11004 (* 1000 @var{ID}))}\n"
  44511. "@var{ssh-port}: @code{(+ 10022 (* 1000 @var{ID}))}\n"
  44512. "@var{vnc-port}: @code{(+ 15900 (* 1000 @var{ID}))}\n"
  44513. msgstr ""
  44514. #. type: item
  44515. #: guix-git/doc/guix.texi:29633
  44516. #, fuzzy, no-wrap
  44517. msgid "@code{secret-root} (default: @file{/etc/childhurd})"
  44518. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  44519. #. type: table
  44520. #: guix-git/doc/guix.texi:29638
  44521. msgid "The root directory with out-of-band secrets to be installed into the childhurd once it runs. Childhurds are volatile which means that on every startup, secrets such as the SSH host keys and Guix signing key are recreated."
  44522. msgstr ""
  44523. #. type: table
  44524. #: guix-git/doc/guix.texi:29642
  44525. msgid "If the @file{/etc/childhurd} directory does not exist, the @code{secret-service} running in the Childhurd will be sent an empty list of secrets."
  44526. msgstr ""
  44527. #. type: table
  44528. #: guix-git/doc/guix.texi:29645
  44529. msgid "By default, the service automatically populates @file{/etc/childhurd} with the following non-volatile secrets, unless they already exist:"
  44530. msgstr ""
  44531. #. type: example
  44532. #: guix-git/doc/guix.texi:29654
  44533. #, no-wrap
  44534. msgid ""
  44535. "/etc/childhurd/etc/guix/acl\n"
  44536. "/etc/childhurd/etc/guix/signing-key.pub\n"
  44537. "/etc/childhurd/etc/guix/signing-key.sec\n"
  44538. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key\n"
  44539. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key\n"
  44540. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub\n"
  44541. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub\n"
  44542. msgstr ""
  44543. #. type: table
  44544. #: guix-git/doc/guix.texi:29658
  44545. msgid "These files are automatically sent to the guest Hurd VM when it boots, including permissions."
  44546. msgstr ""
  44547. #. type: cindex
  44548. #: guix-git/doc/guix.texi:29659
  44549. #, fuzzy, no-wrap
  44550. msgid "childhurd, offloading"
  44551. msgstr "下发"
  44552. #. type: cindex
  44553. #: guix-git/doc/guix.texi:29660
  44554. #, fuzzy, no-wrap
  44555. msgid "Hurd, offloading"
  44556. msgstr "下发"
  44557. #. type: table
  44558. #: guix-git/doc/guix.texi:29664
  44559. msgid "Having these files in place means that only a couple of things are missing to allow the host to offload @code{i586-gnu} builds to the childhurd:"
  44560. msgstr ""
  44561. #. type: enumerate
  44562. #: guix-git/doc/guix.texi:29669
  44563. msgid "Authorizing the childhurd's key on the host so that the host accepts build results coming from the childhurd, which can be done like so:"
  44564. msgstr ""
  44565. #. type: example
  44566. #: guix-git/doc/guix.texi:29673
  44567. #, fuzzy, no-wrap
  44568. msgid ""
  44569. "guix archive --authorize < \\\n"
  44570. " /etc/childhurd/etc/guix/signing-key.pub\n"
  44571. msgstr "# guix archive --authorize < master-public-key.txt\n"
  44572. #. type: enumerate
  44573. #: guix-git/doc/guix.texi:29678
  44574. msgid "Adding the childhurd to @file{/etc/guix/machines.scm} (@pxref{Daemon Offload Setup})."
  44575. msgstr ""
  44576. #. type: table
  44577. #: guix-git/doc/guix.texi:29682
  44578. msgid "We're working towards making that happen automatically---get in touch with us at @email{guix-devel@@gnu.org} to discuss it!"
  44579. msgstr ""
  44580. #. type: Plain text
  44581. #: guix-git/doc/guix.texi:29689
  44582. msgid "Note that by default the VM image is volatile, i.e., once stopped the contents are lost. If you want a stateful image instead, override the configuration's @code{image} and @code{options} without the @code{--snapshot} flag using something along these lines:"
  44583. msgstr ""
  44584. #. type: lisp
  44585. #: guix-git/doc/guix.texi:29695
  44586. #, no-wrap
  44587. msgid ""
  44588. "(service hurd-vm-service-type\n"
  44589. " (hurd-vm-configuration\n"
  44590. " (image (const \"/out/of/store/writable/hurd.img\"))\n"
  44591. " (options '())))\n"
  44592. msgstr ""
  44593. #. type: subsubheading
  44594. #: guix-git/doc/guix.texi:29697
  44595. #, no-wrap
  44596. msgid "Ganeti"
  44597. msgstr ""
  44598. #. type: cindex
  44599. #: guix-git/doc/guix.texi:29699
  44600. #, no-wrap
  44601. msgid "ganeti"
  44602. msgstr ""
  44603. #. type: quotation
  44604. #: guix-git/doc/guix.texi:29706
  44605. msgid "This service is considered experimental. Configuration options may be changed in a backwards-incompatible manner, and not all features have been thorougly tested. Users of this service are encouraged to share their experience at @email{guix-devel@@gnu.org}."
  44606. msgstr ""
  44607. #. type: Plain text
  44608. #: guix-git/doc/guix.texi:29716
  44609. msgid "Ganeti is a virtual machine management system. It is designed to keep virtual machines running on a cluster of servers even in the event of hardware failures, and to make maintenance and recovery tasks easy. It consists of multiple services which are described later in this section. In addition to the Ganeti service, you will need the OpenSSH service (@pxref{Networking Services, @code{openssh-service-type}}), and update the @file{/etc/hosts} file (@pxref{operating-system Reference, @code{hosts-file}}) with the cluster name and address (or use a DNS server)."
  44610. msgstr ""
  44611. #. type: Plain text
  44612. #: guix-git/doc/guix.texi:29721
  44613. msgid "All nodes participating in a Ganeti cluster should have the same Ganeti and @file{/etc/hosts} configuration. Here is an example configuration for a Ganeti cluster node that supports multiple storage backends, and installs the @code{debootstrap} and @code{guix} @dfn{OS providers}:"
  44614. msgstr ""
  44615. #. type: lisp
  44616. #: guix-git/doc/guix.texi:29731
  44617. #, no-wrap
  44618. msgid ""
  44619. "(use-package-modules virtualization)\n"
  44620. "(use-service-modules base ganeti networking ssh)\n"
  44621. "(operating-system\n"
  44622. " ;; @dots{}\n"
  44623. " (host-name \"node1\")\n"
  44624. " (hosts-file (plain-file \"hosts\" (format #f \"\n"
  44625. "127.0.0.1 localhost\n"
  44626. "::1 localhost\n"
  44627. "\n"
  44628. msgstr ""
  44629. #. type: lisp
  44630. #: guix-git/doc/guix.texi:29736
  44631. #, no-wrap
  44632. msgid ""
  44633. "192.168.1.200 ganeti.example.com\n"
  44634. "192.168.1.201 node1.example.com node1\n"
  44635. "192.168.1.202 node2.example.com node2\n"
  44636. "\")))\n"
  44637. "\n"
  44638. msgstr ""
  44639. #. type: lisp
  44640. #: guix-git/doc/guix.texi:29750
  44641. #, no-wrap
  44642. msgid ""
  44643. " ;; Install QEMU so we can use KVM-based instances, and LVM, DRBD and Ceph\n"
  44644. " ;; in order to use the \"plain\", \"drbd\" and \"rbd\" storage backends.\n"
  44645. " (packages (append (map specification->package\n"
  44646. " '(\"qemu\" \"lvm2\" \"drbd-utils\" \"ceph\"\n"
  44647. " ;; Add the debootstrap and guix OS providers.\n"
  44648. " \"ganeti-instance-guix\" \"ganeti-instance-debootstrap\"))\n"
  44649. " %base-packages))\n"
  44650. " (services\n"
  44651. " (append (list (static-networking-service \"eth0\" \"192.168.1.201\"\n"
  44652. " #:netmask \"255.255.255.0\"\n"
  44653. " #:gateway \"192.168.1.254\"\n"
  44654. " #:name-servers '(\"192.168.1.252\"\n"
  44655. " \"192.168.1.253\"))\n"
  44656. "\n"
  44657. msgstr ""
  44658. #. type: lisp
  44659. #: guix-git/doc/guix.texi:29755
  44660. #, no-wrap
  44661. msgid ""
  44662. " ;; Ganeti uses SSH to communicate between nodes.\n"
  44663. " (service openssh-service-type\n"
  44664. " (openssh-configuration\n"
  44665. " (permit-root-login 'prohibit-password)))\n"
  44666. "\n"
  44667. msgstr ""
  44668. #. type: lisp
  44669. #: guix-git/doc/guix.texi:29765
  44670. #, no-wrap
  44671. msgid ""
  44672. " (service ganeti-service-type\n"
  44673. " (ganeti-configuration\n"
  44674. " ;; This list specifies allowed file system paths\n"
  44675. " ;; for storing virtual machine images.\n"
  44676. " (file-storage-paths '(\"/srv/ganeti/file-storage\"))\n"
  44677. " ;; This variable configures a single \"variant\" for\n"
  44678. " ;; both Debootstrap and Guix that works with KVM.\n"
  44679. " (os %default-ganeti-os))))\n"
  44680. " %base-services)))\n"
  44681. msgstr ""
  44682. #. type: Plain text
  44683. #: guix-git/doc/guix.texi:29773
  44684. msgid "Users are advised to read the @url{http://docs.ganeti.org/ganeti/master/html/admin.html,Ganeti administrators guide} to learn about the various cluster options and day-to-day operations. There is also a @url{https://guix.gnu.org/blog/2020/running-a-ganeti-cluster-on-guix/,blog post} describing how to configure and initialize a small cluster."
  44685. msgstr ""
  44686. #. type: defvr
  44687. #: guix-git/doc/guix.texi:29774
  44688. #, no-wrap
  44689. msgid "{Scheme Variable} ganeti-service-type"
  44690. msgstr ""
  44691. #. type: defvr
  44692. #: guix-git/doc/guix.texi:29777
  44693. msgid "This is a service type that includes all the various services that Ganeti nodes should run."
  44694. msgstr ""
  44695. #. type: defvr
  44696. #: guix-git/doc/guix.texi:29782
  44697. msgid "Its value is a @code{ganeti-configuration} object that defines the package to use for CLI operations, as well as configuration for the various daemons. Allowed file storage paths and available guest operating systems are also configured through this data type."
  44698. msgstr ""
  44699. #. type: deftp
  44700. #: guix-git/doc/guix.texi:29784
  44701. #, no-wrap
  44702. msgid "{Data Type} ganeti-configuration"
  44703. msgstr ""
  44704. #. type: deftp
  44705. #: guix-git/doc/guix.texi:29786
  44706. msgid "The @code{ganeti} service takes the following configuration options:"
  44707. msgstr ""
  44708. #. type: item
  44709. #: guix-git/doc/guix.texi:29788 guix-git/doc/guix.texi:30016
  44710. #: guix-git/doc/guix.texi:30066 guix-git/doc/guix.texi:30096
  44711. #: guix-git/doc/guix.texi:30123 guix-git/doc/guix.texi:30155
  44712. #: guix-git/doc/guix.texi:30208 guix-git/doc/guix.texi:30228
  44713. #: guix-git/doc/guix.texi:30254 guix-git/doc/guix.texi:30287
  44714. #: guix-git/doc/guix.texi:30327
  44715. #, fuzzy, no-wrap
  44716. msgid "@code{ganeti} (default: @code{ganeti})"
  44717. msgstr "@code{gnome}(默认值:@code{gnome})"
  44718. #. type: table
  44719. #: guix-git/doc/guix.texi:29793
  44720. msgid "The @code{ganeti} package to use. It will be installed to the system profile and make @command{gnt-cluster}, @command{gnt-instance}, etc available. Note that the value specified here does not affect the other services as each refer to a specific @code{ganeti} package (see below)."
  44721. msgstr ""
  44722. #. type: item
  44723. #: guix-git/doc/guix.texi:29794
  44724. #, fuzzy, no-wrap
  44725. msgid "@code{noded-configuration} (default: @code{(ganeti-noded-configuration)})"
  44726. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  44727. #. type: itemx
  44728. #: guix-git/doc/guix.texi:29795
  44729. #, fuzzy, no-wrap
  44730. msgid "@code{confd-configuration} (default: @code{(ganeti-confd-configuration)})"
  44731. msgstr "@code{journal-content}(默认值:@code{#f})"
  44732. #. type: itemx
  44733. #: guix-git/doc/guix.texi:29796
  44734. #, no-wrap
  44735. msgid "@code{wconfd-configuration} (default: @code{(ganeti-wconfd-configuration)})"
  44736. msgstr ""
  44737. #. type: itemx
  44738. #: guix-git/doc/guix.texi:29797
  44739. #, no-wrap
  44740. msgid "@code{luxid-configuration} (default: @code{(ganeti-luxid-configuration)})"
  44741. msgstr ""
  44742. #. type: itemx
  44743. #: guix-git/doc/guix.texi:29798
  44744. #, fuzzy, no-wrap
  44745. msgid "@code{rapi-configuration} (default: @code{(ganeti-rapi-configuration)})"
  44746. msgstr "@code{journal-content}(默认值:@code{#f})"
  44747. #. type: itemx
  44748. #: guix-git/doc/guix.texi:29799
  44749. #, fuzzy, no-wrap
  44750. msgid "@code{kvmd-configuration} (default: @code{(ganeti-kvmd-configuration)})"
  44751. msgstr "@code{mate}(默认值:@code{mate})"
  44752. #. type: itemx
  44753. #: guix-git/doc/guix.texi:29800
  44754. #, fuzzy, no-wrap
  44755. msgid "@code{mond-configuration} (default: @code{(ganeti-mond-configuration)})"
  44756. msgstr "@code{journal-content}(默认值:@code{#f})"
  44757. #. type: itemx
  44758. #: guix-git/doc/guix.texi:29801
  44759. #, fuzzy, no-wrap
  44760. msgid "@code{metad-configuration} (default: @code{(ganeti-metad-configuration)})"
  44761. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  44762. #. type: itemx
  44763. #: guix-git/doc/guix.texi:29802
  44764. #, fuzzy, no-wrap
  44765. msgid "@code{watcher-configuration} (default: @code{(ganeti-watcher-configuration)})"
  44766. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  44767. #. type: itemx
  44768. #: guix-git/doc/guix.texi:29803
  44769. #, fuzzy, no-wrap
  44770. msgid "@code{cleaner-configuration} (default: @code{(ganeti-cleaner-configuration)})"
  44771. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  44772. #. type: table
  44773. #: guix-git/doc/guix.texi:29808
  44774. msgid "These options control the various daemons and cron jobs that are distributed with Ganeti. The possible values for these are described in detail below. To override a setting, you must use the configuration type for that service:"
  44775. msgstr ""
  44776. #. type: lisp
  44777. #: guix-git/doc/guix.texi:29818
  44778. #, no-wrap
  44779. msgid ""
  44780. "(service ganeti-service-type\n"
  44781. " (ganeti-configuration\n"
  44782. " (rapi-configuration\n"
  44783. " (ganeti-rapi-configuration\n"
  44784. " (interface \"eth1\"))))\n"
  44785. " (watcher-configuration\n"
  44786. " (ganeti-watcher-configuration\n"
  44787. " (rapi-ip \"10.0.0.1\"))))\n"
  44788. msgstr ""
  44789. #. type: item
  44790. #: guix-git/doc/guix.texi:29820
  44791. #, fuzzy, no-wrap
  44792. msgid "@code{file-storage-paths} (default: @code{'()})"
  44793. msgstr "@code{features} (@code{'()})"
  44794. #. type: table
  44795. #: guix-git/doc/guix.texi:29822
  44796. msgid "List of allowed directories for file storage backend."
  44797. msgstr ""
  44798. #. type: item
  44799. #: guix-git/doc/guix.texi:29823
  44800. #, fuzzy, no-wrap
  44801. msgid "@code{os} (default: @code{%default-ganeti-os})"
  44802. msgstr "@code{gnome}(默认值:@code{gnome})"
  44803. #. type: table
  44804. #: guix-git/doc/guix.texi:29825
  44805. msgid "List of @code{<ganeti-os>} records."
  44806. msgstr ""
  44807. #. type: deftp
  44808. #: guix-git/doc/guix.texi:29829
  44809. msgid "In essence @code{ganeti-service-type} is shorthand for declaring each service individually:"
  44810. msgstr ""
  44811. #. type: lisp
  44812. #: guix-git/doc/guix.texi:29840
  44813. #, no-wrap
  44814. msgid ""
  44815. "(service ganeti-noded-service-type)\n"
  44816. "(service ganeti-confd-service-type)\n"
  44817. "(service ganeti-wconfd-service-type)\n"
  44818. "(service ganeti-luxid-service-type)\n"
  44819. "(service ganeti-kvmd-service-type)\n"
  44820. "(service ganeti-mond-service-type)\n"
  44821. "(service ganeti-metad-service-type)\n"
  44822. "(service ganeti-watcher-service-type)\n"
  44823. "(service ganeti-cleaner-service-type)\n"
  44824. msgstr ""
  44825. #. type: deftp
  44826. #: guix-git/doc/guix.texi:29844
  44827. msgid "Plus a service extension for @code{etc-service-type} that configures the file storage backend and OS variants."
  44828. msgstr ""
  44829. #. type: deftp
  44830. #: guix-git/doc/guix.texi:29847
  44831. #, fuzzy, no-wrap
  44832. msgid "{Data Type} ganeti-os"
  44833. msgstr "{数据类型} build-machine"
  44834. #. type: deftp
  44835. #: guix-git/doc/guix.texi:29850
  44836. msgid "This data type is suitable for passing to the @code{os} parameter of @code{ganeti-configuration}. It takes the following parameters:"
  44837. msgstr ""
  44838. #. type: table
  44839. #: guix-git/doc/guix.texi:29856
  44840. msgid "The name for this OS provider. It is only used to specify where the configuration ends up. Setting it to ``debootstrap'' will create @file{/etc/ganeti/instance-debootstrap}."
  44841. msgstr ""
  44842. #. type: code{#1}
  44843. #: guix-git/doc/guix.texi:29857
  44844. #, no-wrap
  44845. msgid "extension"
  44846. msgstr ""
  44847. #. type: table
  44848. #: guix-git/doc/guix.texi:29860
  44849. msgid "The file extension for variants of this OS type. For example @file{.conf} or @file{.scm}."
  44850. msgstr ""
  44851. #. type: item
  44852. #: guix-git/doc/guix.texi:29861
  44853. #, fuzzy, no-wrap
  44854. msgid "@code{variants} (default: @code{'()})"
  44855. msgstr "@code{features} (@code{'()})"
  44856. #. type: table
  44857. #: guix-git/doc/guix.texi:29863
  44858. msgid "List of @code{ganeti-os-variant} objects for this OS."
  44859. msgstr ""
  44860. #. type: deftp
  44861. #: guix-git/doc/guix.texi:29867
  44862. #, fuzzy, no-wrap
  44863. msgid "{Data Type} ganeti-os-variant"
  44864. msgstr "{数据类型} build-machine"
  44865. #. type: deftp
  44866. #: guix-git/doc/guix.texi:29870
  44867. msgid "This is the data type for a Ganeti OS variant. It takes the following parameters:"
  44868. msgstr ""
  44869. #. type: table
  44870. #: guix-git/doc/guix.texi:29874
  44871. #, fuzzy
  44872. msgid "The name of this variant."
  44873. msgstr "这个用户手册的许可证。"
  44874. #. type: code{#1}
  44875. #: guix-git/doc/guix.texi:29875
  44876. #, fuzzy, no-wrap
  44877. msgid "configuration"
  44878. msgstr "系统配置"
  44879. #. type: table
  44880. #: guix-git/doc/guix.texi:29877
  44881. msgid "A configuration file for this variant."
  44882. msgstr ""
  44883. #. type: defvr
  44884. #: guix-git/doc/guix.texi:29880
  44885. #, no-wrap
  44886. msgid "{Scheme Variable} %default-debootstrap-hooks"
  44887. msgstr ""
  44888. #. type: defvr
  44889. #: guix-git/doc/guix.texi:29882
  44890. msgid "This variable contains hooks to configure networking and the GRUB bootloader."
  44891. msgstr ""
  44892. #. type: defvr
  44893. #: guix-git/doc/guix.texi:29884
  44894. #, no-wrap
  44895. msgid "{Scheme Variable} %default-debootstrap-extra-pkgs"
  44896. msgstr ""
  44897. #. type: defvr
  44898. #: guix-git/doc/guix.texi:29886
  44899. msgid "This variable contains a list of packages suitable for a fully-virtualized guest."
  44900. msgstr ""
  44901. #. type: deftp
  44902. #: guix-git/doc/guix.texi:29888
  44903. #, no-wrap
  44904. msgid "{Data Type} debootstrap-configuration"
  44905. msgstr ""
  44906. #. type: deftp
  44907. #: guix-git/doc/guix.texi:29891
  44908. msgid "This data type creates configuration files suitable for the debootstrap OS provider."
  44909. msgstr ""
  44910. #. type: item
  44911. #: guix-git/doc/guix.texi:29893
  44912. #, fuzzy, no-wrap
  44913. msgid "@code{hooks} (default: @code{%default-debootstrap-hooks})"
  44914. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  44915. #. type: table
  44916. #: guix-git/doc/guix.texi:29897
  44917. msgid "When not @code{#f}, this must be a G-expression that specifies a directory with scripts that will run when the OS is installed. It can also be a list of @code{(name . file-like)} pairs. For example:"
  44918. msgstr ""
  44919. #. type: lisp
  44920. #: guix-git/doc/guix.texi:29900
  44921. #, no-wrap
  44922. msgid "`((99-hello-world . ,(plain-file \"#!/bin/sh\\necho Hello, World\")))\n"
  44923. msgstr ""
  44924. #. type: table
  44925. #: guix-git/doc/guix.texi:29905
  44926. msgid "That will create a directory with one executable named @code{99-hello-world} and run it every time this variant is installed. If set to @code{#f}, hooks in @file{/etc/ganeti/instance-debootstrap/hooks} will be used, if any."
  44927. msgstr ""
  44928. #. type: item
  44929. #: guix-git/doc/guix.texi:29905
  44930. #, fuzzy, no-wrap
  44931. msgid "@code{proxy} (default: @code{#f})"
  44932. msgstr "@code{port}(默认值:@code{22})"
  44933. #. type: table
  44934. #: guix-git/doc/guix.texi:29907
  44935. msgid "Optional HTTP proxy to use."
  44936. msgstr ""
  44937. #. type: item
  44938. #: guix-git/doc/guix.texi:29907
  44939. #, fuzzy, no-wrap
  44940. msgid "@code{mirror} (default: @code{#f})"
  44941. msgstr "@code{port}(默认值:@code{22})"
  44942. #. type: table
  44943. #: guix-git/doc/guix.texi:29910
  44944. msgid "The Debian mirror. Typically something like @code{http://ftp.no.debian.org/debian}. The default varies depending on the distribution."
  44945. msgstr ""
  44946. #. type: item
  44947. #: guix-git/doc/guix.texi:29910
  44948. #, fuzzy, no-wrap
  44949. msgid "@code{arch} (default: @code{#f})"
  44950. msgstr "@code{challenge}(默认值:@code{#f})"
  44951. #. type: table
  44952. #: guix-git/doc/guix.texi:29913
  44953. msgid "The dpkg architecture. Set to @code{armhf} to debootstrap an ARMv7 instance on an AArch64 host. Default is to use the current system architecture."
  44954. msgstr ""
  44955. #. type: item
  44956. #: guix-git/doc/guix.texi:29913
  44957. #, fuzzy, no-wrap
  44958. msgid "@code{suite} (default: @code{\"stable\"})"
  44959. msgstr "@code{mate}(默认值:@code{mate})"
  44960. #. type: table
  44961. #: guix-git/doc/guix.texi:29916
  44962. msgid "When set, this must be a Debian distribution ``suite'' such as @code{buster} or @code{focal}. If set to @code{#f}, the default for the OS provider is used."
  44963. msgstr ""
  44964. #. type: item
  44965. #: guix-git/doc/guix.texi:29916
  44966. #, no-wrap
  44967. msgid "@code{extra-pkgs} (default: @code{%default-debootstrap-extra-pkgs})"
  44968. msgstr ""
  44969. #. type: table
  44970. #: guix-git/doc/guix.texi:29919
  44971. msgid "List of extra packages that will get installed by dpkg in addition to the minimal system."
  44972. msgstr ""
  44973. #. type: item
  44974. #: guix-git/doc/guix.texi:29919
  44975. #, fuzzy, no-wrap
  44976. msgid "@code{components} (default: @code{#f})"
  44977. msgstr "@code{journal-content}(默认值:@code{#f})"
  44978. #. type: table
  44979. #: guix-git/doc/guix.texi:29922
  44980. msgid "When set, must be a list of Debian repository ``components''. For example @code{'(\"main\" \"contrib\")}."
  44981. msgstr ""
  44982. #. type: item
  44983. #: guix-git/doc/guix.texi:29922
  44984. #, fuzzy, no-wrap
  44985. msgid "@code{generate-cache?} (default: @code{#t})"
  44986. msgstr "@code{mate}(默认值:@code{mate})"
  44987. #. type: table
  44988. #: guix-git/doc/guix.texi:29924
  44989. msgid "Whether to automatically cache the generated debootstrap archive."
  44990. msgstr ""
  44991. #. type: item
  44992. #: guix-git/doc/guix.texi:29924
  44993. #, fuzzy, no-wrap
  44994. msgid "@code{clean-cache} (default: @code{14})"
  44995. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  44996. #. type: table
  44997. #: guix-git/doc/guix.texi:29927
  44998. msgid "Discard the cache after this amount of days. Use @code{#f} to never clear the cache."
  44999. msgstr ""
  45000. #. type: item
  45001. #: guix-git/doc/guix.texi:29927
  45002. #, fuzzy, no-wrap
  45003. msgid "@code{partition-style} (default: @code{'msdos})"
  45004. msgstr "@code{compression-level}(默认值:@code{3})"
  45005. #. type: table
  45006. #: guix-git/doc/guix.texi:29930
  45007. msgid "The type of partition to create. When set, it must be one of @code{'msdos}, @code{'none} or a string."
  45008. msgstr ""
  45009. #. type: item
  45010. #: guix-git/doc/guix.texi:29930
  45011. #, fuzzy, no-wrap
  45012. msgid "@code{partition-alignment} (default: @code{2048})"
  45013. msgstr "@code{port}(默认值:@code{22})"
  45014. #. type: table
  45015. #: guix-git/doc/guix.texi:29932
  45016. msgid "Alignment of the partition in sectors."
  45017. msgstr ""
  45018. #. type: deffn
  45019. #: guix-git/doc/guix.texi:29935
  45020. #, no-wrap
  45021. msgid "{Scheme Procedure} debootstrap-variant @var{name} @var{configuration}"
  45022. msgstr ""
  45023. #. type: deffn
  45024. #: guix-git/doc/guix.texi:29938
  45025. msgid "This is a helper procedure that creates a @code{ganeti-os-variant} record. It takes two parameters: a name and a @code{debootstrap-configuration} object."
  45026. msgstr ""
  45027. #. type: deffn
  45028. #: guix-git/doc/guix.texi:29940
  45029. #, no-wrap
  45030. msgid "{Scheme Procedure} debootstrap-os @var{variants}@dots{}"
  45031. msgstr ""
  45032. #. type: deffn
  45033. #: guix-git/doc/guix.texi:29943
  45034. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants created with @code{debootstrap-variant}."
  45035. msgstr ""
  45036. #. type: deffn
  45037. #: guix-git/doc/guix.texi:29945
  45038. #, no-wrap
  45039. msgid "{Scheme Procedure} guix-variant @var{name} @var{configuration}"
  45040. msgstr ""
  45041. #. type: deffn
  45042. #: guix-git/doc/guix.texi:29950
  45043. msgid "This is a helper procedure that creates a @code{ganeti-os-variant} record for use with the Guix OS provider. It takes a name and a G-expression that returns a ``file-like'' (@pxref{G-Expressions, file-like objects}) object containing a Guix System configuration."
  45044. msgstr ""
  45045. #. type: deffn
  45046. #: guix-git/doc/guix.texi:29952
  45047. #, no-wrap
  45048. msgid "{Scheme Procedure} guix-os @var{variants}@dots{}"
  45049. msgstr ""
  45050. #. type: deffn
  45051. #: guix-git/doc/guix.texi:29955
  45052. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants produced by @code{guix-variant}."
  45053. msgstr ""
  45054. #. type: defvr
  45055. #: guix-git/doc/guix.texi:29957
  45056. #, no-wrap
  45057. msgid "{Scheme Variable} %default-debootstrap-variants"
  45058. msgstr ""
  45059. #. type: defvr
  45060. #: guix-git/doc/guix.texi:29961
  45061. msgid "This is a convenience variable to make the debootstrap provider work ``out of the box'' without users having to declare variants manually. It contains a single debootstrap variant with the default configuration:"
  45062. msgstr ""
  45063. #. type: lisp
  45064. #: guix-git/doc/guix.texi:29966
  45065. #, no-wrap
  45066. msgid ""
  45067. "(list (debootstrap-variant\n"
  45068. " \"default\"\n"
  45069. " (debootstrap-configuration)))\n"
  45070. msgstr ""
  45071. #. type: defvr
  45072. #: guix-git/doc/guix.texi:29969
  45073. #, no-wrap
  45074. msgid "{Scheme Variable} %default-guix-variants"
  45075. msgstr ""
  45076. #. type: defvr
  45077. #: guix-git/doc/guix.texi:29973
  45078. msgid "This is a convenience variable to make the Guix OS provider work without additional configuration. It creates a virtual machine that has an SSH server, a serial console, and authorizes the Ganeti hosts SSH keys."
  45079. msgstr ""
  45080. #. type: lisp
  45081. #: guix-git/doc/guix.texi:29979
  45082. #, no-wrap
  45083. msgid ""
  45084. "(list (guix-variant\n"
  45085. " \"default\"\n"
  45086. " (file-append ganeti-instance-guix\n"
  45087. " \"/share/doc/ganeti-instance-guix/examples/dynamic.scm\")))\n"
  45088. msgstr ""
  45089. #. type: Plain text
  45090. #: guix-git/doc/guix.texi:29985
  45091. msgid "Users can implement support for OS providers unbeknownst to Guix by extending the @code{ganeti-os} and @code{ganeti-os-variant} records appropriately. For example:"
  45092. msgstr ""
  45093. #. type: lisp
  45094. #: guix-git/doc/guix.texi:29994
  45095. #, no-wrap
  45096. msgid ""
  45097. "(ganeti-os\n"
  45098. " (name \"custom\")\n"
  45099. " (extension \".conf\")\n"
  45100. " (variants\n"
  45101. " (list (ganeti-os-variant\n"
  45102. " (name \"foo\")\n"
  45103. " (configuration (plain-file \"bar\" \"this is fine\"))))))\n"
  45104. msgstr ""
  45105. #. type: Plain text
  45106. #: guix-git/doc/guix.texi:29999
  45107. msgid "That creates @file{/etc/ganeti/instance-custom/variants/foo.conf} which points to a file in the store with contents @code{this is fine}. It also creates @file{/etc/ganeti/instance-custom/variants/variants.list} with contents @code{foo}."
  45108. msgstr ""
  45109. #. type: Plain text
  45110. #: guix-git/doc/guix.texi:30002
  45111. msgid "Obviously this may not work for all OS providers out there. If you find the interface limiting, please reach out to @email{guix-devel@@gnu.org}."
  45112. msgstr ""
  45113. #. type: Plain text
  45114. #: guix-git/doc/guix.texi:30005
  45115. msgid "The rest of this section documents the various services that are included by @code{ganeti-service-type}."
  45116. msgstr ""
  45117. #. type: defvr
  45118. #: guix-git/doc/guix.texi:30006
  45119. #, no-wrap
  45120. msgid "{Scheme Variable} ganeti-noded-service-type"
  45121. msgstr ""
  45122. #. type: defvr
  45123. #: guix-git/doc/guix.texi:30010
  45124. msgid "@command{ganeti-noded} is the daemon responsible for node-specific functions within the Ganeti system. The value of this service must be a @code{ganeti-noded-configuration} object."
  45125. msgstr ""
  45126. #. type: deftp
  45127. #: guix-git/doc/guix.texi:30012
  45128. #, no-wrap
  45129. msgid "{Data Type} ganeti-noded-configuration"
  45130. msgstr ""
  45131. #. type: deftp
  45132. #: guix-git/doc/guix.texi:30014
  45133. msgid "This is the configuration for the @code{ganeti-noded} service."
  45134. msgstr ""
  45135. #. type: table
  45136. #: guix-git/doc/guix.texi:30018 guix-git/doc/guix.texi:30068
  45137. #: guix-git/doc/guix.texi:30098 guix-git/doc/guix.texi:30125
  45138. #: guix-git/doc/guix.texi:30157 guix-git/doc/guix.texi:30210
  45139. #: guix-git/doc/guix.texi:30230 guix-git/doc/guix.texi:30256
  45140. #: guix-git/doc/guix.texi:30289
  45141. msgid "The @code{ganeti} package to use for this service."
  45142. msgstr ""
  45143. #. type: item
  45144. #: guix-git/doc/guix.texi:30019
  45145. #, fuzzy, no-wrap
  45146. msgid "@code{port} (default: @code{1811})"
  45147. msgstr "@code{port}(默认值:@code{22})"
  45148. #. type: table
  45149. #: guix-git/doc/guix.texi:30021
  45150. msgid "The TCP port on which the node daemon listens for network requests."
  45151. msgstr ""
  45152. #. type: item
  45153. #: guix-git/doc/guix.texi:30022 guix-git/doc/guix.texi:30072
  45154. #: guix-git/doc/guix.texi:30164 guix-git/doc/guix.texi:30234
  45155. #, fuzzy, no-wrap
  45156. msgid "@code{address} (default: @code{\"0.0.0.0\"})"
  45157. msgstr "@code{display}(默认值:@code{\":0\"})"
  45158. #. type: table
  45159. #: guix-git/doc/guix.texi:30025
  45160. msgid "The network address that the daemon will bind to. The default address means bind to all available addresses."
  45161. msgstr ""
  45162. #. type: table
  45163. #: guix-git/doc/guix.texi:30029
  45164. msgid "When this is set, it must be a specific network interface (e.g.@: @code{eth0}) that the daemon will bind to."
  45165. msgstr ""
  45166. #. type: item
  45167. #: guix-git/doc/guix.texi:30030 guix-git/doc/guix.texi:30172
  45168. #, fuzzy, no-wrap
  45169. msgid "@code{max-clients} (default: @code{20})"
  45170. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  45171. #. type: table
  45172. #: guix-git/doc/guix.texi:30034
  45173. msgid "This sets a limit on the maximum number of simultaneous client connections that the daemon will handle. Connections above this count are accepted, but no responses will be sent until enough connections have closed."
  45174. msgstr ""
  45175. #. type: item
  45176. #: guix-git/doc/guix.texi:30035 guix-git/doc/guix.texi:30177
  45177. #, fuzzy, no-wrap
  45178. msgid "@code{ssl?} (default: @code{#t})"
  45179. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  45180. #. type: table
  45181. #: guix-git/doc/guix.texi:30039
  45182. msgid "Whether to use SSL/TLS to encrypt network communications. The certificate is automatically provisioned by the cluster and can be rotated with @command{gnt-cluster renew-crypto}."
  45183. msgstr ""
  45184. #. type: item
  45185. #: guix-git/doc/guix.texi:30040 guix-git/doc/guix.texi:30180
  45186. #, fuzzy, no-wrap
  45187. msgid "@code{ssl-key} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  45188. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45189. #. type: table
  45190. #: guix-git/doc/guix.texi:30042 guix-git/doc/guix.texi:30182
  45191. msgid "This can be used to provide a specific encryption key for TLS communications."
  45192. msgstr ""
  45193. #. type: item
  45194. #: guix-git/doc/guix.texi:30043 guix-git/doc/guix.texi:30183
  45195. #, fuzzy, no-wrap
  45196. msgid "@code{ssl-cert} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  45197. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  45198. #. type: table
  45199. #: guix-git/doc/guix.texi:30045 guix-git/doc/guix.texi:30185
  45200. msgid "This can be used to provide a specific certificate for TLS communications."
  45201. msgstr ""
  45202. #. type: table
  45203. #: guix-git/doc/guix.texi:30049 guix-git/doc/guix.texi:30189
  45204. msgid "When true, the daemon performs additional logging for debugging purposes. Note that this will leak encryption details to the log files, use with caution."
  45205. msgstr ""
  45206. #. type: defvr
  45207. #: guix-git/doc/guix.texi:30053
  45208. #, no-wrap
  45209. msgid "{Scheme Variable} ganeti-confd-service-type"
  45210. msgstr ""
  45211. #. type: defvr
  45212. #: guix-git/doc/guix.texi:30059
  45213. msgid "@command{ganeti-confd} answers queries related to the configuration of a Ganeti cluster. The purpose of this daemon is to have a highly available and fast way to query cluster configuration values. It is automatically active on all @dfn{master candidates}. The value of this service must be a @code{ganeti-confd-configuration} object."
  45214. msgstr ""
  45215. #. type: deftp
  45216. #: guix-git/doc/guix.texi:30062
  45217. #, no-wrap
  45218. msgid "{Data Type} ganeti-confd-configuration"
  45219. msgstr ""
  45220. #. type: deftp
  45221. #: guix-git/doc/guix.texi:30064
  45222. msgid "This is the configuration for the @code{ganeti-confd} service."
  45223. msgstr ""
  45224. #. type: item
  45225. #: guix-git/doc/guix.texi:30069
  45226. #, fuzzy, no-wrap
  45227. msgid "@code{port} (default: @code{1814})"
  45228. msgstr "@code{port}(默认值:@code{22})"
  45229. #. type: table
  45230. #: guix-git/doc/guix.texi:30071
  45231. msgid "The UDP port on which to listen for network requests."
  45232. msgstr ""
  45233. #. type: table
  45234. #: guix-git/doc/guix.texi:30074
  45235. msgid "Network address that the daemon will bind to."
  45236. msgstr ""
  45237. #. type: table
  45238. #: guix-git/doc/guix.texi:30077 guix-git/doc/guix.texi:30106
  45239. #: guix-git/doc/guix.texi:30133 guix-git/doc/guix.texi:30213
  45240. #: guix-git/doc/guix.texi:30240 guix-git/doc/guix.texi:30266
  45241. msgid "When true, the daemon performs additional logging for debugging purposes."
  45242. msgstr ""
  45243. #. type: defvr
  45244. #: guix-git/doc/guix.texi:30081
  45245. #, no-wrap
  45246. msgid "{Scheme Variable} ganeti-wconfd-service-type"
  45247. msgstr ""
  45248. #. type: defvr
  45249. #: guix-git/doc/guix.texi:30087
  45250. msgid "@command{ganeti-wconfd} is the daemon that has authoritative knowledge about the cluster configuration and is the only entity that can accept changes to it. All jobs that need to modify the configuration will do so by sending appropriate requests to this daemon. It only runs on the @dfn{master node} and will automatically disable itself on other nodes."
  45251. msgstr ""
  45252. #. type: defvr
  45253. #: guix-git/doc/guix.texi:30090
  45254. msgid "The value of this service must be a @code{ganeti-wconfd-configuration} object."
  45255. msgstr ""
  45256. #. type: deftp
  45257. #: guix-git/doc/guix.texi:30092
  45258. #, no-wrap
  45259. msgid "{Data Type} ganeti-wconfd-configuration"
  45260. msgstr ""
  45261. #. type: deftp
  45262. #: guix-git/doc/guix.texi:30094 guix-git/doc/guix.texi:30121
  45263. msgid "This is the configuration for the @code{ganeti-wconfd} service."
  45264. msgstr ""
  45265. #. type: item
  45266. #: guix-git/doc/guix.texi:30099 guix-git/doc/guix.texi:30126
  45267. #, fuzzy, no-wrap
  45268. msgid "@code{no-voting?} (default: @code{#f})"
  45269. msgstr "@code{journal-content}(默认值:@code{#f})"
  45270. #. type: table
  45271. #: guix-git/doc/guix.texi:30103
  45272. msgid "The daemon will refuse to start if the majority of cluster nodes does not agree that it is running on the master node. Set to @code{#t} to start even if a quorum can not be reached (dangerous, use with caution)."
  45273. msgstr ""
  45274. #. type: defvr
  45275. #: guix-git/doc/guix.texi:30110
  45276. #, no-wrap
  45277. msgid "{Scheme Variable} ganeti-luxid-service-type"
  45278. msgstr ""
  45279. #. type: defvr
  45280. #: guix-git/doc/guix.texi:30115
  45281. msgid "@command{ganeti-luxid} is a daemon used to answer queries related to the configuration and the current live state of a Ganeti cluster. Additionally, it is the authoritative daemon for the Ganeti job queue. Jobs can be submitted via this daemon and it schedules and starts them."
  45282. msgstr ""
  45283. #. type: defvr
  45284. #: guix-git/doc/guix.texi:30117
  45285. msgid "It takes a @code{ganeti-luxid-configuration} object."
  45286. msgstr ""
  45287. #. type: deftp
  45288. #: guix-git/doc/guix.texi:30119
  45289. #, fuzzy, no-wrap
  45290. msgid "{Data Type} ganeti-luxid-configuration"
  45291. msgstr "{数据类型} build-machine"
  45292. #. type: table
  45293. #: guix-git/doc/guix.texi:30130
  45294. msgid "The daemon will refuse to start if it cannot verify that the majority of cluster nodes believes that it is running on the master node. Set to @code{#t} to ignore such checks and start anyway (this can be dangerous)."
  45295. msgstr ""
  45296. #. type: defvr
  45297. #: guix-git/doc/guix.texi:30137
  45298. #, no-wrap
  45299. msgid "{Scheme Variable} ganeti-rapi-service-type"
  45300. msgstr ""
  45301. #. type: defvr
  45302. #: guix-git/doc/guix.texi:30141
  45303. msgid "@command{ganeti-rapi} provides a remote API for Ganeti clusters. It runs on the master node and can be used to perform cluster actions programmatically via a JSON-based RPC protocol."
  45304. msgstr ""
  45305. #. type: defvr
  45306. #: guix-git/doc/guix.texi:30147
  45307. msgid "Most query operations are allowed without authentication (unless @var{require-authentication?} is set), whereas write operations require explicit authorization via the @file{/var/lib/ganeti/rapi/users} file. See the @url{http://docs.ganeti.org/ganeti/master/html/rapi.html, Ganeti Remote API documentation} for more information."
  45308. msgstr ""
  45309. #. type: defvr
  45310. #: guix-git/doc/guix.texi:30149
  45311. msgid "The value of this service must be a @code{ganeti-rapi-configuration} object."
  45312. msgstr ""
  45313. #. type: deftp
  45314. #: guix-git/doc/guix.texi:30151
  45315. #, no-wrap
  45316. msgid "{Data Type} ganeti-rapi-configuration"
  45317. msgstr ""
  45318. #. type: deftp
  45319. #: guix-git/doc/guix.texi:30153
  45320. msgid "This is the configuration for the @code{ganeti-rapi} service."
  45321. msgstr ""
  45322. #. type: item
  45323. #: guix-git/doc/guix.texi:30158
  45324. #, fuzzy, no-wrap
  45325. msgid "@code{require-authentication?} (default: @code{#f})"
  45326. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  45327. #. type: table
  45328. #: guix-git/doc/guix.texi:30160
  45329. msgid "Whether to require authentication even for read-only operations."
  45330. msgstr ""
  45331. #. type: item
  45332. #: guix-git/doc/guix.texi:30161
  45333. #, fuzzy, no-wrap
  45334. msgid "@code{port} (default: @code{5080})"
  45335. msgstr "@code{port}(默认值:@code{22})"
  45336. #. type: table
  45337. #: guix-git/doc/guix.texi:30163
  45338. msgid "The TCP port on which to listen to API requests."
  45339. msgstr ""
  45340. #. type: table
  45341. #: guix-git/doc/guix.texi:30167
  45342. msgid "The network address that the service will bind to. By default it listens on all configured addresses."
  45343. msgstr ""
  45344. #. type: table
  45345. #: guix-git/doc/guix.texi:30171
  45346. msgid "When set, it must specify a specific network interface such as @code{eth0} that the daemon will bind to."
  45347. msgstr ""
  45348. #. type: table
  45349. #: guix-git/doc/guix.texi:30176
  45350. msgid "The maximum number of simultaneous client requests to handle. Further connections are allowed, but no responses are sent until enough connections have closed."
  45351. msgstr ""
  45352. #. type: table
  45353. #: guix-git/doc/guix.texi:30179
  45354. msgid "Whether to use SSL/TLS encryption on the RAPI port."
  45355. msgstr ""
  45356. #. type: defvr
  45357. #: guix-git/doc/guix.texi:30193
  45358. #, no-wrap
  45359. msgid "{Scheme Variable} ganeti-kvmd-service-type"
  45360. msgstr ""
  45361. #. type: defvr
  45362. #: guix-git/doc/guix.texi:30201
  45363. msgid "@command{ganeti-kvmd} is responsible for determining whether a given KVM instance was shut down by an administrator or a user. Normally Ganeti will restart an instance that was not stopped through Ganeti itself. If the cluster option @code{user_shutdown} is true, this daemon monitors the @code{QMP} socket provided by QEMU and listens for shutdown events, and marks the instance as @dfn{USER_down} instead of @dfn{ERROR_down} when it shuts down gracefully by itself."
  45364. msgstr ""
  45365. #. type: defvr
  45366. #: guix-git/doc/guix.texi:30203
  45367. msgid "It takes a @code{ganeti-kvmd-configuration} object."
  45368. msgstr ""
  45369. #. type: deftp
  45370. #: guix-git/doc/guix.texi:30205
  45371. #, no-wrap
  45372. msgid "{Data Type} ganeti-kvmd-configuration"
  45373. msgstr ""
  45374. #. type: defvr
  45375. #: guix-git/doc/guix.texi:30217
  45376. #, no-wrap
  45377. msgid "{Scheme Variable} ganeti-mond-service-type"
  45378. msgstr ""
  45379. #. type: defvr
  45380. #: guix-git/doc/guix.texi:30221
  45381. msgid "@command{ganeti-mond} is an optional daemon that provides Ganeti monitoring functionality. It is responsible for running data collectors and publish the collected information through a HTTP interface."
  45382. msgstr ""
  45383. #. type: defvr
  45384. #: guix-git/doc/guix.texi:30223
  45385. msgid "It takes a @code{ganeti-mond-configuration} object."
  45386. msgstr ""
  45387. #. type: deftp
  45388. #: guix-git/doc/guix.texi:30225
  45389. #, no-wrap
  45390. msgid "{Data Type} ganeti-mond-configuration"
  45391. msgstr ""
  45392. #. type: item
  45393. #: guix-git/doc/guix.texi:30231
  45394. #, fuzzy, no-wrap
  45395. msgid "@code{port} (default: @code{1815})"
  45396. msgstr "@code{port}(默认值:@code{22})"
  45397. #. type: table
  45398. #: guix-git/doc/guix.texi:30233 guix-git/doc/guix.texi:30259
  45399. msgid "The port on which the daemon will listen."
  45400. msgstr ""
  45401. #. type: table
  45402. #: guix-git/doc/guix.texi:30237
  45403. msgid "The network address that the daemon will bind to. By default it binds to all available interfaces."
  45404. msgstr ""
  45405. #. type: defvr
  45406. #: guix-git/doc/guix.texi:30244
  45407. #, no-wrap
  45408. msgid "{Scheme Variable} ganeti-metad-service-type"
  45409. msgstr ""
  45410. #. type: defvr
  45411. #: guix-git/doc/guix.texi:30247
  45412. msgid "@command{ganeti-metad} is an optional daemon that can be used to provide information about the cluster to instances or OS install scripts."
  45413. msgstr ""
  45414. #. type: defvr
  45415. #: guix-git/doc/guix.texi:30249
  45416. msgid "It takes a @code{ganeti-metad-configuration} object."
  45417. msgstr ""
  45418. #. type: deftp
  45419. #: guix-git/doc/guix.texi:30251
  45420. #, fuzzy, no-wrap
  45421. msgid "{Data Type} ganeti-metad-configuration"
  45422. msgstr "{数据类型} build-machine"
  45423. #. type: item
  45424. #: guix-git/doc/guix.texi:30260
  45425. #, fuzzy, no-wrap
  45426. msgid "@code{address} (default: @code{#f})"
  45427. msgstr "@code{challenge}(默认值:@code{#f})"
  45428. #. type: table
  45429. #: guix-git/doc/guix.texi:30263
  45430. msgid "If set, the daemon will bind to this address only. If left unset, the behavior depends on the cluster configuration."
  45431. msgstr ""
  45432. #. type: defvr
  45433. #: guix-git/doc/guix.texi:30270
  45434. #, no-wrap
  45435. msgid "{Scheme Variable} ganeti-watcher-service-type"
  45436. msgstr ""
  45437. #. type: defvr
  45438. #: guix-git/doc/guix.texi:30278
  45439. msgid "@command{ganeti-watcher} is a script designed to run periodically and ensure the health of a cluster. It will automatically restart instances that have stopped without Ganeti's consent, and repairs DRBD links in case a node has rebooted. It also archives old cluster jobs and restarts Ganeti daemons that are not running. If the cluster parameter @code{ensure_node_health} is set, the watcher will also shutdown instances and DRBD devices if the node it is running on is declared offline by known master candidates."
  45440. msgstr ""
  45441. #. type: defvr
  45442. #: guix-git/doc/guix.texi:30280
  45443. msgid "It can be paused on all nodes with @command{gnt-cluster watcher pause}."
  45444. msgstr ""
  45445. #. type: defvr
  45446. #: guix-git/doc/guix.texi:30282
  45447. msgid "The service takes a @code{ganeti-watcher-configuration} object."
  45448. msgstr ""
  45449. #. type: deftp
  45450. #: guix-git/doc/guix.texi:30284
  45451. #, no-wrap
  45452. msgid "{Data Type} ganeti-watcher-configuration"
  45453. msgstr ""
  45454. #. type: item
  45455. #: guix-git/doc/guix.texi:30290
  45456. #, no-wrap
  45457. msgid "@code{schedule} (default: @code{'(next-second-from (next-minute (range 0 60 5)))})"
  45458. msgstr ""
  45459. #. type: table
  45460. #: guix-git/doc/guix.texi:30292
  45461. msgid "How often to run the script. The default is every five minutes."
  45462. msgstr ""
  45463. #. type: item
  45464. #: guix-git/doc/guix.texi:30293
  45465. #, fuzzy, no-wrap
  45466. msgid "@code{rapi-ip} (default: @code{#f})"
  45467. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  45468. #. type: table
  45469. #: guix-git/doc/guix.texi:30296
  45470. msgid "This option needs to be specified only if the RAPI daemon is configured to use a particular interface or address. By default the cluster address is used."
  45471. msgstr ""
  45472. #. type: item
  45473. #: guix-git/doc/guix.texi:30297
  45474. #, fuzzy, no-wrap
  45475. msgid "@code{job-age} (default: @code{(* 6 3600)})"
  45476. msgstr "@code{features} (@code{'()})"
  45477. #. type: table
  45478. #: guix-git/doc/guix.texi:30300
  45479. msgid "Archive cluster jobs older than this age, specified in seconds. The default is 6 hours. This keeps @command{gnt-job list} manageable."
  45480. msgstr ""
  45481. #. type: item
  45482. #: guix-git/doc/guix.texi:30301
  45483. #, fuzzy, no-wrap
  45484. msgid "@code{verify-disks?} (default: @code{#t})"
  45485. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  45486. #. type: table
  45487. #: guix-git/doc/guix.texi:30305
  45488. msgid "If this is @code{#f}, the watcher will not try to repair broken DRBD links automatically. Administrators will need to use @command{gnt-cluster verify-disks} manually instead."
  45489. msgstr ""
  45490. #. type: table
  45491. #: guix-git/doc/guix.texi:30308
  45492. msgid "When @code{#t}, the script performs additional logging for debugging purposes."
  45493. msgstr ""
  45494. #. type: defvr
  45495. #: guix-git/doc/guix.texi:30312
  45496. #, no-wrap
  45497. msgid "{Scheme Variable} ganeti-cleaner-service-type"
  45498. msgstr ""
  45499. #. type: defvr
  45500. #: guix-git/doc/guix.texi:30320
  45501. msgid "@command{ganeti-cleaner} is a script designed to run periodically and remove old files from the cluster. This service type controls two @dfn{cron jobs}: one intended for the master node that permanently purges old cluster jobs, and one intended for every node that removes expired X509 certificates, keys, and outdated @command{ganeti-watcher} information. Like all Ganeti services, it is safe to include even on non-master nodes as it will disable itself as necessary."
  45502. msgstr ""
  45503. #. type: defvr
  45504. #: guix-git/doc/guix.texi:30322
  45505. msgid "It takes a @code{ganeti-cleaner-configuration} object."
  45506. msgstr ""
  45507. #. type: deftp
  45508. #: guix-git/doc/guix.texi:30324
  45509. #, no-wrap
  45510. msgid "{Data Type} ganeti-cleaner-configuration"
  45511. msgstr ""
  45512. #. type: table
  45513. #: guix-git/doc/guix.texi:30329
  45514. msgid "The @code{ganeti} package to use for the @command{gnt-cleaner} command."
  45515. msgstr ""
  45516. #. type: item
  45517. #: guix-git/doc/guix.texi:30330
  45518. #, fuzzy, no-wrap
  45519. msgid "@code{master-schedule} (default: @code{\"45 1 * * *\"})"
  45520. msgstr "@code{speed}(默认值:@code{1.0})"
  45521. #. type: table
  45522. #: guix-git/doc/guix.texi:30333
  45523. msgid "How often to run the master cleaning job. The default is once per day, at 01:45:00."
  45524. msgstr ""
  45525. #. type: item
  45526. #: guix-git/doc/guix.texi:30334
  45527. #, fuzzy, no-wrap
  45528. msgid "@code{node-schedule} (default: @code{\"45 2 * * *\"})"
  45529. msgstr "@code{display}(默认值:@code{\":0\"})"
  45530. #. type: table
  45531. #: guix-git/doc/guix.texi:30337
  45532. msgid "How often to run the node cleaning job. The default is once per day, at 02:45:00."
  45533. msgstr ""
  45534. #. type: Plain text
  45535. #: guix-git/doc/guix.texi:30351
  45536. msgid "The @code{(gnu services version-control)} module provides a service to allow remote access to local Git repositories. There are three options: the @code{git-daemon-service}, which provides access to repositories via the @code{git://} unsecured TCP-based protocol, extending the @code{nginx} web server to proxy some requests to @code{git-http-backend}, or providing a web interface with @code{cgit-service-type}."
  45537. msgstr ""
  45538. #. type: deffn
  45539. #: guix-git/doc/guix.texi:30352
  45540. #, no-wrap
  45541. msgid "{Scheme Procedure} git-daemon-service [#:config (git-daemon-configuration)]"
  45542. msgstr ""
  45543. #. type: deffn
  45544. #: guix-git/doc/guix.texi:30356
  45545. msgid "Return a service that runs @command{git daemon}, a simple TCP server to expose repositories over the Git protocol for anonymous access."
  45546. msgstr ""
  45547. #. type: deffn
  45548. #: guix-git/doc/guix.texi:30362
  45549. msgid "The optional @var{config} argument should be a @code{<git-daemon-configuration>} object, by default it allows read-only access to exported@footnote{By creating the magic file @file{git-daemon-export-ok} in the repository directory.} repositories under @file{/srv/git}."
  45550. msgstr ""
  45551. #. type: deftp
  45552. #: guix-git/doc/guix.texi:30365
  45553. #, no-wrap
  45554. msgid "{Data Type} git-daemon-configuration"
  45555. msgstr ""
  45556. #. type: deftp
  45557. #: guix-git/doc/guix.texi:30367
  45558. msgid "Data type representing the configuration for @code{git-daemon-service}."
  45559. msgstr ""
  45560. #. type: item
  45561. #: guix-git/doc/guix.texi:30369
  45562. #, fuzzy, no-wrap
  45563. msgid "@code{package} (default: @code{git})"
  45564. msgstr "@code{mate}(默认值:@code{mate})"
  45565. #. type: table
  45566. #: guix-git/doc/guix.texi:30371 guix-git/doc/guix.texi:30431
  45567. msgid "Package object of the Git distributed version control system."
  45568. msgstr ""
  45569. #. type: item
  45570. #: guix-git/doc/guix.texi:30372 guix-git/doc/guix.texi:30435
  45571. #, fuzzy, no-wrap
  45572. msgid "@code{export-all?} (default: @code{#f})"
  45573. msgstr "@code{port}(默认值:@code{22})"
  45574. #. type: table
  45575. #: guix-git/doc/guix.texi:30375
  45576. msgid "Whether to allow access for all Git repositories, even if they do not have the @file{git-daemon-export-ok} file."
  45577. msgstr ""
  45578. #. type: item
  45579. #: guix-git/doc/guix.texi:30376
  45580. #, no-wrap
  45581. msgid "@code{base-path} (default: @file{/srv/git})"
  45582. msgstr ""
  45583. #. type: table
  45584. #: guix-git/doc/guix.texi:30382
  45585. msgid "Whether to remap all the path requests as relative to the given path. If you run @command{git daemon} with @code{(base-path \"/srv/git\")} on @samp{example.com}, then if you later try to pull @indicateurl{git://example.com/hello.git}, git daemon will interpret the path as @file{/srv/git/hello.git}."
  45586. msgstr ""
  45587. #. type: item
  45588. #: guix-git/doc/guix.texi:30383
  45589. #, fuzzy, no-wrap
  45590. msgid "@code{user-path} (default: @code{#f})"
  45591. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  45592. #. type: table
  45593. #: guix-git/doc/guix.texi:30391
  45594. msgid "Whether to allow @code{~user} notation to be used in requests. When specified with empty string, requests to @indicateurl{git://host/~alice/foo} is taken as a request to access @code{foo} repository in the home directory of user @code{alice}. If @code{(user-path \"@var{path}\")} is specified, the same request is taken as a request to access @file{@var{path}/foo} repository in the home directory of user @code{alice}."
  45595. msgstr ""
  45596. #. type: item
  45597. #: guix-git/doc/guix.texi:30392
  45598. #, fuzzy, no-wrap
  45599. msgid "@code{listen} (default: @code{'()})"
  45600. msgstr "@code{features} (@code{'()})"
  45601. #. type: table
  45602. #: guix-git/doc/guix.texi:30395
  45603. msgid "Whether to listen on specific IP addresses or hostnames, defaults to all."
  45604. msgstr ""
  45605. #. type: item
  45606. #: guix-git/doc/guix.texi:30396
  45607. #, fuzzy, no-wrap
  45608. msgid "@code{port} (default: @code{#f})"
  45609. msgstr "@code{port}(默认值:@code{22})"
  45610. #. type: table
  45611. #: guix-git/doc/guix.texi:30398
  45612. msgid "Whether to listen on an alternative port, which defaults to 9418."
  45613. msgstr ""
  45614. #. type: item
  45615. #: guix-git/doc/guix.texi:30399
  45616. #, fuzzy, no-wrap
  45617. msgid "@code{whitelist} (default: @code{'()})"
  45618. msgstr "@code{features} (@code{'()})"
  45619. #. type: table
  45620. #: guix-git/doc/guix.texi:30401
  45621. msgid "If not empty, only allow access to this list of directories."
  45622. msgstr ""
  45623. #. type: table
  45624. #: guix-git/doc/guix.texi:30405
  45625. msgid "Extra options will be passed to @command{git daemon}, please run @command{man git-daemon} for more information."
  45626. msgstr ""
  45627. #. type: Plain text
  45628. #: guix-git/doc/guix.texi:30419
  45629. msgid "The @code{git://} protocol lacks authentication. When you pull from a repository fetched via @code{git://}, you don't know whether the data you receive was modified or is even coming from the specified host, and your connection is subject to eavesdropping. It's better to use an authenticated and encrypted transport, such as @code{https}. Although Git allows you to serve repositories using unsophisticated file-based web servers, there is a faster protocol implemented by the @code{git-http-backend} program. This program is the back-end of a proper Git web service. It is designed to sit behind a FastCGI proxy. @xref{Web Services}, for more on running the necessary @code{fcgiwrap} daemon."
  45630. msgstr ""
  45631. #. type: Plain text
  45632. #: guix-git/doc/guix.texi:30422
  45633. msgid "Guix has a separate configuration data type for serving Git repositories over HTTP."
  45634. msgstr ""
  45635. #. type: deftp
  45636. #: guix-git/doc/guix.texi:30423
  45637. #, no-wrap
  45638. msgid "{Data Type} git-http-configuration"
  45639. msgstr ""
  45640. #. type: deftp
  45641. #: guix-git/doc/guix.texi:30427
  45642. msgid "Data type representing the configuration for a future @code{git-http-service-type}; can currently be used to configure Nginx through @code{git-http-nginx-location-configuration}."
  45643. msgstr ""
  45644. #. type: item
  45645. #: guix-git/doc/guix.texi:30429
  45646. #, no-wrap
  45647. msgid "@code{package} (default: @var{git})"
  45648. msgstr ""
  45649. #. type: item
  45650. #: guix-git/doc/guix.texi:30432
  45651. #, no-wrap
  45652. msgid "@code{git-root} (default: @file{/srv/git})"
  45653. msgstr ""
  45654. #. type: table
  45655. #: guix-git/doc/guix.texi:30434
  45656. msgid "Directory containing the Git repositories to expose to the world."
  45657. msgstr ""
  45658. #. type: table
  45659. #: guix-git/doc/guix.texi:30438
  45660. msgid "Whether to expose access for all Git repositories in @var{git-root}, even if they do not have the @file{git-daemon-export-ok} file."
  45661. msgstr ""
  45662. #. type: item
  45663. #: guix-git/doc/guix.texi:30439
  45664. #, fuzzy, no-wrap
  45665. msgid "@code{uri-path} (default: @samp{/git/})"
  45666. msgstr "@code{mate}(默认值:@code{mate})"
  45667. #. type: table
  45668. #: guix-git/doc/guix.texi:30444
  45669. msgid "Path prefix for Git access. With the default @samp{/git/} prefix, this will map @indicateurl{http://@var{server}/git/@var{repo}.git} to @file{/srv/git/@var{repo}.git}. Requests whose URI paths do not begin with this prefix are not passed on to this Git instance."
  45670. msgstr ""
  45671. #. type: item
  45672. #: guix-git/doc/guix.texi:30445
  45673. #, no-wrap
  45674. msgid "@code{fcgiwrap-socket} (default: @code{127.0.0.1:9000})"
  45675. msgstr ""
  45676. #. type: table
  45677. #: guix-git/doc/guix.texi:30448
  45678. msgid "The socket on which the @code{fcgiwrap} daemon is listening. @xref{Web Services}."
  45679. msgstr ""
  45680. #. type: Plain text
  45681. #: guix-git/doc/guix.texi:30455
  45682. msgid "There is no @code{git-http-service-type}, currently; instead you can create an @code{nginx-location-configuration} from a @code{git-http-configuration} and then add that location to a web server."
  45683. msgstr ""
  45684. #. type: deffn
  45685. #: guix-git/doc/guix.texi:30456
  45686. #, no-wrap
  45687. msgid "{Scheme Procedure} git-http-nginx-location-configuration @"
  45688. msgstr ""
  45689. #. type: deffn
  45690. #: guix-git/doc/guix.texi:30461
  45691. msgid "[config=(git-http-configuration)] Compute an @code{nginx-location-configuration} that corresponds to the given Git http configuration. An example nginx service definition to serve the default @file{/srv/git} over HTTPS might be:"
  45692. msgstr ""
  45693. #. type: lisp
  45694. #: guix-git/doc/guix.texi:30478
  45695. #, no-wrap
  45696. msgid ""
  45697. "(service nginx-service-type\n"
  45698. " (nginx-configuration\n"
  45699. " (server-blocks\n"
  45700. " (list\n"
  45701. " (nginx-server-configuration\n"
  45702. " (listen '(\"443 ssl\"))\n"
  45703. " (server-name \"git.my-host.org\")\n"
  45704. " (ssl-certificate\n"
  45705. " \"/etc/letsencrypt/live/git.my-host.org/fullchain.pem\")\n"
  45706. " (ssl-certificate-key\n"
  45707. " \"/etc/letsencrypt/live/git.my-host.org/privkey.pem\")\n"
  45708. " (locations\n"
  45709. " (list\n"
  45710. " (git-http-nginx-location-configuration\n"
  45711. " (git-http-configuration (uri-path \"/\"))))))))))\n"
  45712. msgstr ""
  45713. #. type: deffn
  45714. #: guix-git/doc/guix.texi:30485
  45715. msgid "This example assumes that you are using Let's Encrypt to get your TLS certificate. @xref{Certificate Services}. The default @code{certbot} service will redirect all HTTP traffic on @code{git.my-host.org} to HTTPS@. You will also need to add an @code{fcgiwrap} proxy to your system services. @xref{Web Services}."
  45716. msgstr ""
  45717. #. type: subsubheading
  45718. #: guix-git/doc/guix.texi:30487
  45719. #, no-wrap
  45720. msgid "Cgit Service"
  45721. msgstr ""
  45722. #. type: cindex
  45723. #: guix-git/doc/guix.texi:30489
  45724. #, no-wrap
  45725. msgid "Cgit service"
  45726. msgstr ""
  45727. #. type: cindex
  45728. #: guix-git/doc/guix.texi:30490
  45729. #, no-wrap
  45730. msgid "Git, web interface"
  45731. msgstr ""
  45732. #. type: Plain text
  45733. #: guix-git/doc/guix.texi:30493
  45734. msgid "@uref{https://git.zx2c4.com/cgit/, Cgit} is a web frontend for Git repositories written in C."
  45735. msgstr ""
  45736. #. type: Plain text
  45737. #: guix-git/doc/guix.texi:30496
  45738. msgid "The following example will configure the service with default values. By default, Cgit can be accessed on port 80 (@code{http://localhost:80})."
  45739. msgstr ""
  45740. #. type: lisp
  45741. #: guix-git/doc/guix.texi:30499
  45742. #, no-wrap
  45743. msgid "(service cgit-service-type)\n"
  45744. msgstr ""
  45745. #. type: Plain text
  45746. #: guix-git/doc/guix.texi:30503
  45747. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string."
  45748. msgstr ""
  45749. #. type: Plain text
  45750. #: guix-git/doc/guix.texi:30507
  45751. msgid "Available @code{cgit-configuration} fields are:"
  45752. msgstr ""
  45753. #. type: deftypevr
  45754. #: guix-git/doc/guix.texi:30508
  45755. #, no-wrap
  45756. msgid "{@code{cgit-configuration} parameter} package package"
  45757. msgstr ""
  45758. #. type: deftypevr
  45759. #: guix-git/doc/guix.texi:30510
  45760. msgid "The CGIT package."
  45761. msgstr ""
  45762. #. type: deftypevr
  45763. #: guix-git/doc/guix.texi:30513
  45764. #, no-wrap
  45765. msgid "{@code{cgit-configuration} parameter} nginx-server-configuration-list nginx"
  45766. msgstr ""
  45767. #. type: deftypevr
  45768. #: guix-git/doc/guix.texi:30518
  45769. #, no-wrap
  45770. msgid "{@code{cgit-configuration} parameter} file-object about-filter"
  45771. msgstr ""
  45772. #. type: deftypevr
  45773. #: guix-git/doc/guix.texi:30521
  45774. msgid "Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository)."
  45775. msgstr ""
  45776. #. type: deftypevr
  45777. #: guix-git/doc/guix.texi:30526
  45778. #, no-wrap
  45779. msgid "{@code{cgit-configuration} parameter} string agefile"
  45780. msgstr ""
  45781. #. type: deftypevr
  45782. #: guix-git/doc/guix.texi:30529
  45783. msgid "Specifies a path, relative to each repository path, which can be used to specify the date and time of the youngest commit in the repository."
  45784. msgstr ""
  45785. #. type: deftypevr
  45786. #: guix-git/doc/guix.texi:30534
  45787. #, no-wrap
  45788. msgid "{@code{cgit-configuration} parameter} file-object auth-filter"
  45789. msgstr ""
  45790. #. type: deftypevr
  45791. #: guix-git/doc/guix.texi:30537
  45792. msgid "Specifies a command that will be invoked for authenticating repository access."
  45793. msgstr ""
  45794. #. type: deftypevr
  45795. #: guix-git/doc/guix.texi:30542
  45796. #, no-wrap
  45797. msgid "{@code{cgit-configuration} parameter} string branch-sort"
  45798. msgstr ""
  45799. #. type: deftypevr
  45800. #: guix-git/doc/guix.texi:30545
  45801. msgid "Flag which, when set to @samp{age}, enables date ordering in the branch ref list, and when set @samp{name} enables ordering by branch name."
  45802. msgstr ""
  45803. #. type: deftypevr
  45804. #: guix-git/doc/guix.texi:30547
  45805. msgid "Defaults to @samp{\"name\"}."
  45806. msgstr ""
  45807. #. type: deftypevr
  45808. #: guix-git/doc/guix.texi:30550
  45809. #, no-wrap
  45810. msgid "{@code{cgit-configuration} parameter} string cache-root"
  45811. msgstr ""
  45812. #. type: deftypevr
  45813. #: guix-git/doc/guix.texi:30552
  45814. msgid "Path used to store the cgit cache entries."
  45815. msgstr ""
  45816. #. type: deftypevr
  45817. #: guix-git/doc/guix.texi:30554
  45818. msgid "Defaults to @samp{\"/var/cache/cgit\"}."
  45819. msgstr ""
  45820. #. type: deftypevr
  45821. #: guix-git/doc/guix.texi:30557
  45822. #, no-wrap
  45823. msgid "{@code{cgit-configuration} parameter} integer cache-static-ttl"
  45824. msgstr ""
  45825. #. type: deftypevr
  45826. #: guix-git/doc/guix.texi:30560
  45827. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed with a fixed SHA1."
  45828. msgstr ""
  45829. #. type: deftypevr
  45830. #: guix-git/doc/guix.texi:30562 guix-git/doc/guix.texi:31005
  45831. msgid "Defaults to @samp{-1}."
  45832. msgstr ""
  45833. #. type: deftypevr
  45834. #: guix-git/doc/guix.texi:30565
  45835. #, no-wrap
  45836. msgid "{@code{cgit-configuration} parameter} integer cache-dynamic-ttl"
  45837. msgstr ""
  45838. #. type: deftypevr
  45839. #: guix-git/doc/guix.texi:30568
  45840. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed without a fixed SHA1."
  45841. msgstr ""
  45842. #. type: deftypevr
  45843. #: guix-git/doc/guix.texi:30573
  45844. #, no-wrap
  45845. msgid "{@code{cgit-configuration} parameter} integer cache-repo-ttl"
  45846. msgstr ""
  45847. #. type: deftypevr
  45848. #: guix-git/doc/guix.texi:30576
  45849. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository summary page."
  45850. msgstr ""
  45851. #. type: deftypevr
  45852. #: guix-git/doc/guix.texi:30581
  45853. #, no-wrap
  45854. msgid "{@code{cgit-configuration} parameter} integer cache-root-ttl"
  45855. msgstr ""
  45856. #. type: deftypevr
  45857. #: guix-git/doc/guix.texi:30584
  45858. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository index page."
  45859. msgstr ""
  45860. #. type: deftypevr
  45861. #: guix-git/doc/guix.texi:30589
  45862. #, no-wrap
  45863. msgid "{@code{cgit-configuration} parameter} integer cache-scanrc-ttl"
  45864. msgstr ""
  45865. #. type: deftypevr
  45866. #: guix-git/doc/guix.texi:30592
  45867. msgid "Number which specifies the time-to-live, in minutes, for the result of scanning a path for Git repositories."
  45868. msgstr ""
  45869. #. type: deftypevr
  45870. #: guix-git/doc/guix.texi:30597
  45871. #, no-wrap
  45872. msgid "{@code{cgit-configuration} parameter} integer cache-about-ttl"
  45873. msgstr ""
  45874. #. type: deftypevr
  45875. #: guix-git/doc/guix.texi:30600
  45876. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository about page."
  45877. msgstr ""
  45878. #. type: deftypevr
  45879. #: guix-git/doc/guix.texi:30605
  45880. #, no-wrap
  45881. msgid "{@code{cgit-configuration} parameter} integer cache-snapshot-ttl"
  45882. msgstr ""
  45883. #. type: deftypevr
  45884. #: guix-git/doc/guix.texi:30608
  45885. msgid "Number which specifies the time-to-live, in minutes, for the cached version of snapshots."
  45886. msgstr ""
  45887. #. type: deftypevr
  45888. #: guix-git/doc/guix.texi:30613
  45889. #, no-wrap
  45890. msgid "{@code{cgit-configuration} parameter} integer cache-size"
  45891. msgstr ""
  45892. #. type: deftypevr
  45893. #: guix-git/doc/guix.texi:30616
  45894. msgid "The maximum number of entries in the cgit cache. When set to @samp{0}, caching is disabled."
  45895. msgstr ""
  45896. #. type: deftypevr
  45897. #: guix-git/doc/guix.texi:30621
  45898. #, no-wrap
  45899. msgid "{@code{cgit-configuration} parameter} boolean case-sensitive-sort?"
  45900. msgstr ""
  45901. #. type: deftypevr
  45902. #: guix-git/doc/guix.texi:30623
  45903. msgid "Sort items in the repo list case sensitively."
  45904. msgstr ""
  45905. #. type: deftypevr
  45906. #: guix-git/doc/guix.texi:30628
  45907. #, no-wrap
  45908. msgid "{@code{cgit-configuration} parameter} list clone-prefix"
  45909. msgstr ""
  45910. #. type: deftypevr
  45911. #: guix-git/doc/guix.texi:30631
  45912. msgid "List of common prefixes which, when combined with a repository URL, generates valid clone URLs for the repository."
  45913. msgstr ""
  45914. #. type: deftypevr
  45915. #: guix-git/doc/guix.texi:30636
  45916. #, no-wrap
  45917. msgid "{@code{cgit-configuration} parameter} list clone-url"
  45918. msgstr ""
  45919. #. type: deftypevr
  45920. #: guix-git/doc/guix.texi:30638
  45921. msgid "List of @code{clone-url} templates."
  45922. msgstr ""
  45923. #. type: deftypevr
  45924. #: guix-git/doc/guix.texi:30643
  45925. #, no-wrap
  45926. msgid "{@code{cgit-configuration} parameter} file-object commit-filter"
  45927. msgstr ""
  45928. #. type: deftypevr
  45929. #: guix-git/doc/guix.texi:30645
  45930. msgid "Command which will be invoked to format commit messages."
  45931. msgstr ""
  45932. #. type: deftypevr
  45933. #: guix-git/doc/guix.texi:30650
  45934. #, no-wrap
  45935. msgid "{@code{cgit-configuration} parameter} string commit-sort"
  45936. msgstr ""
  45937. #. type: deftypevr
  45938. #: guix-git/doc/guix.texi:30654 guix-git/doc/guix.texi:31212
  45939. msgid "Flag which, when set to @samp{date}, enables strict date ordering in the commit log, and when set to @samp{topo} enables strict topological ordering."
  45940. msgstr ""
  45941. #. type: deftypevr
  45942. #: guix-git/doc/guix.texi:30656
  45943. msgid "Defaults to @samp{\"git log\"}."
  45944. msgstr ""
  45945. #. type: deftypevr
  45946. #: guix-git/doc/guix.texi:30659
  45947. #, no-wrap
  45948. msgid "{@code{cgit-configuration} parameter} file-object css"
  45949. msgstr ""
  45950. #. type: deftypevr
  45951. #: guix-git/doc/guix.texi:30661
  45952. msgid "URL which specifies the css document to include in all cgit pages."
  45953. msgstr ""
  45954. #. type: deftypevr
  45955. #: guix-git/doc/guix.texi:30663
  45956. msgid "Defaults to @samp{\"/share/cgit/cgit.css\"}."
  45957. msgstr ""
  45958. #. type: deftypevr
  45959. #: guix-git/doc/guix.texi:30666
  45960. #, no-wrap
  45961. msgid "{@code{cgit-configuration} parameter} file-object email-filter"
  45962. msgstr ""
  45963. #. type: deftypevr
  45964. #: guix-git/doc/guix.texi:30670
  45965. msgid "Specifies a command which will be invoked to format names and email address of committers, authors, and taggers, as represented in various places throughout the cgit interface."
  45966. msgstr ""
  45967. #. type: deftypevr
  45968. #: guix-git/doc/guix.texi:30675
  45969. #, no-wrap
  45970. msgid "{@code{cgit-configuration} parameter} boolean embedded?"
  45971. msgstr ""
  45972. #. type: deftypevr
  45973. #: guix-git/doc/guix.texi:30678
  45974. msgid "Flag which, when set to @samp{#t}, will make cgit generate a HTML fragment suitable for embedding in other HTML pages."
  45975. msgstr ""
  45976. #. type: deftypevr
  45977. #: guix-git/doc/guix.texi:30683
  45978. #, no-wrap
  45979. msgid "{@code{cgit-configuration} parameter} boolean enable-commit-graph?"
  45980. msgstr ""
  45981. #. type: deftypevr
  45982. #: guix-git/doc/guix.texi:30687
  45983. msgid "Flag which, when set to @samp{#t}, will make cgit print an ASCII-art commit history graph to the left of the commit messages in the repository log page."
  45984. msgstr ""
  45985. #. type: deftypevr
  45986. #: guix-git/doc/guix.texi:30692
  45987. #, no-wrap
  45988. msgid "{@code{cgit-configuration} parameter} boolean enable-filter-overrides?"
  45989. msgstr ""
  45990. #. type: deftypevr
  45991. #: guix-git/doc/guix.texi:30695
  45992. msgid "Flag which, when set to @samp{#t}, allows all filter settings to be overridden in repository-specific cgitrc files."
  45993. msgstr ""
  45994. #. type: deftypevr
  45995. #: guix-git/doc/guix.texi:30700
  45996. #, no-wrap
  45997. msgid "{@code{cgit-configuration} parameter} boolean enable-follow-links?"
  45998. msgstr ""
  45999. #. type: deftypevr
  46000. #: guix-git/doc/guix.texi:30703
  46001. msgid "Flag which, when set to @samp{#t}, allows users to follow a file in the log view."
  46002. msgstr ""
  46003. #. type: deftypevr
  46004. #: guix-git/doc/guix.texi:30708
  46005. #, no-wrap
  46006. msgid "{@code{cgit-configuration} parameter} boolean enable-http-clone?"
  46007. msgstr ""
  46008. #. type: deftypevr
  46009. #: guix-git/doc/guix.texi:30711
  46010. msgid "If set to @samp{#t}, cgit will act as an dumb HTTP endpoint for Git clones."
  46011. msgstr ""
  46012. #. type: deftypevr
  46013. #: guix-git/doc/guix.texi:30716
  46014. #, no-wrap
  46015. msgid "{@code{cgit-configuration} parameter} boolean enable-index-links?"
  46016. msgstr ""
  46017. #. type: deftypevr
  46018. #: guix-git/doc/guix.texi:30719
  46019. msgid "Flag which, when set to @samp{#t}, will make cgit generate extra links \"summary\", \"commit\", \"tree\" for each repo in the repository index."
  46020. msgstr ""
  46021. #. type: deftypevr
  46022. #: guix-git/doc/guix.texi:30724
  46023. #, no-wrap
  46024. msgid "{@code{cgit-configuration} parameter} boolean enable-index-owner?"
  46025. msgstr ""
  46026. #. type: deftypevr
  46027. #: guix-git/doc/guix.texi:30727
  46028. msgid "Flag which, when set to @samp{#t}, will make cgit display the owner of each repo in the repository index."
  46029. msgstr ""
  46030. #. type: deftypevr
  46031. #: guix-git/doc/guix.texi:30732
  46032. #, no-wrap
  46033. msgid "{@code{cgit-configuration} parameter} boolean enable-log-filecount?"
  46034. msgstr ""
  46035. #. type: deftypevr
  46036. #: guix-git/doc/guix.texi:30735
  46037. msgid "Flag which, when set to @samp{#t}, will make cgit print the number of modified files for each commit on the repository log page."
  46038. msgstr ""
  46039. #. type: deftypevr
  46040. #: guix-git/doc/guix.texi:30740
  46041. #, no-wrap
  46042. msgid "{@code{cgit-configuration} parameter} boolean enable-log-linecount?"
  46043. msgstr ""
  46044. #. type: deftypevr
  46045. #: guix-git/doc/guix.texi:30743
  46046. msgid "Flag which, when set to @samp{#t}, will make cgit print the number of added and removed lines for each commit on the repository log page."
  46047. msgstr ""
  46048. #. type: deftypevr
  46049. #: guix-git/doc/guix.texi:30748
  46050. #, no-wrap
  46051. msgid "{@code{cgit-configuration} parameter} boolean enable-remote-branches?"
  46052. msgstr ""
  46053. #. type: deftypevr
  46054. #: guix-git/doc/guix.texi:30751 guix-git/doc/guix.texi:31275
  46055. msgid "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views."
  46056. msgstr ""
  46057. #. type: deftypevr
  46058. #: guix-git/doc/guix.texi:30756
  46059. #, no-wrap
  46060. msgid "{@code{cgit-configuration} parameter} boolean enable-subject-links?"
  46061. msgstr ""
  46062. #. type: deftypevr
  46063. #: guix-git/doc/guix.texi:30760
  46064. msgid "Flag which, when set to @code{1}, will make cgit use the subject of the parent commit as link text when generating links to parent commits in commit view."
  46065. msgstr ""
  46066. #. type: deftypevr
  46067. #: guix-git/doc/guix.texi:30765
  46068. #, no-wrap
  46069. msgid "{@code{cgit-configuration} parameter} boolean enable-html-serving?"
  46070. msgstr ""
  46071. #. type: deftypevr
  46072. #: guix-git/doc/guix.texi:30769
  46073. msgid "Flag which, when set to @samp{#t}, will make cgit use the subject of the parent commit as link text when generating links to parent commits in commit view."
  46074. msgstr ""
  46075. #. type: deftypevr
  46076. #: guix-git/doc/guix.texi:30774
  46077. #, no-wrap
  46078. msgid "{@code{cgit-configuration} parameter} boolean enable-tree-linenumbers?"
  46079. msgstr ""
  46080. #. type: deftypevr
  46081. #: guix-git/doc/guix.texi:30777
  46082. msgid "Flag which, when set to @samp{#t}, will make cgit generate linenumber links for plaintext blobs printed in the tree view."
  46083. msgstr ""
  46084. #. type: deftypevr
  46085. #: guix-git/doc/guix.texi:30782
  46086. #, no-wrap
  46087. msgid "{@code{cgit-configuration} parameter} boolean enable-git-config?"
  46088. msgstr ""
  46089. #. type: deftypevr
  46090. #: guix-git/doc/guix.texi:30785
  46091. msgid "Flag which, when set to @samp{#f}, will allow cgit to use Git config to set any repo specific settings."
  46092. msgstr ""
  46093. #. type: deftypevr
  46094. #: guix-git/doc/guix.texi:30790
  46095. #, no-wrap
  46096. msgid "{@code{cgit-configuration} parameter} file-object favicon"
  46097. msgstr ""
  46098. #. type: deftypevr
  46099. #: guix-git/doc/guix.texi:30792
  46100. msgid "URL used as link to a shortcut icon for cgit."
  46101. msgstr ""
  46102. #. type: deftypevr
  46103. #: guix-git/doc/guix.texi:30794
  46104. msgid "Defaults to @samp{\"/favicon.ico\"}."
  46105. msgstr ""
  46106. #. type: deftypevr
  46107. #: guix-git/doc/guix.texi:30797
  46108. #, no-wrap
  46109. msgid "{@code{cgit-configuration} parameter} string footer"
  46110. msgstr ""
  46111. #. type: deftypevr
  46112. #: guix-git/doc/guix.texi:30801
  46113. msgid "The content of the file specified with this option will be included verbatim at the bottom of all pages (i.e.@: it replaces the standard \"generated by...\"@: message)."
  46114. msgstr ""
  46115. #. type: deftypevr
  46116. #: guix-git/doc/guix.texi:30806
  46117. #, no-wrap
  46118. msgid "{@code{cgit-configuration} parameter} string head-include"
  46119. msgstr ""
  46120. #. type: deftypevr
  46121. #: guix-git/doc/guix.texi:30809
  46122. msgid "The content of the file specified with this option will be included verbatim in the HTML HEAD section on all pages."
  46123. msgstr ""
  46124. #. type: deftypevr
  46125. #: guix-git/doc/guix.texi:30814
  46126. #, no-wrap
  46127. msgid "{@code{cgit-configuration} parameter} string header"
  46128. msgstr ""
  46129. #. type: deftypevr
  46130. #: guix-git/doc/guix.texi:30817
  46131. msgid "The content of the file specified with this option will be included verbatim at the top of all pages."
  46132. msgstr ""
  46133. #. type: deftypevr
  46134. #: guix-git/doc/guix.texi:30822
  46135. #, no-wrap
  46136. msgid "{@code{cgit-configuration} parameter} file-object include"
  46137. msgstr ""
  46138. #. type: deftypevr
  46139. #: guix-git/doc/guix.texi:30825
  46140. msgid "Name of a configfile to include before the rest of the current config- file is parsed."
  46141. msgstr ""
  46142. #. type: deftypevr
  46143. #: guix-git/doc/guix.texi:30830
  46144. #, no-wrap
  46145. msgid "{@code{cgit-configuration} parameter} string index-header"
  46146. msgstr ""
  46147. #. type: deftypevr
  46148. #: guix-git/doc/guix.texi:30833
  46149. msgid "The content of the file specified with this option will be included verbatim above the repository index."
  46150. msgstr ""
  46151. #. type: deftypevr
  46152. #: guix-git/doc/guix.texi:30838
  46153. #, no-wrap
  46154. msgid "{@code{cgit-configuration} parameter} string index-info"
  46155. msgstr ""
  46156. #. type: deftypevr
  46157. #: guix-git/doc/guix.texi:30841
  46158. msgid "The content of the file specified with this option will be included verbatim below the heading on the repository index page."
  46159. msgstr ""
  46160. #. type: deftypevr
  46161. #: guix-git/doc/guix.texi:30846
  46162. #, no-wrap
  46163. msgid "{@code{cgit-configuration} parameter} boolean local-time?"
  46164. msgstr ""
  46165. #. type: deftypevr
  46166. #: guix-git/doc/guix.texi:30849
  46167. msgid "Flag which, if set to @samp{#t}, makes cgit print commit and tag times in the servers timezone."
  46168. msgstr ""
  46169. #. type: deftypevr
  46170. #: guix-git/doc/guix.texi:30854
  46171. #, no-wrap
  46172. msgid "{@code{cgit-configuration} parameter} file-object logo"
  46173. msgstr ""
  46174. #. type: deftypevr
  46175. #: guix-git/doc/guix.texi:30857
  46176. msgid "URL which specifies the source of an image which will be used as a logo on all cgit pages."
  46177. msgstr ""
  46178. #. type: deftypevr
  46179. #: guix-git/doc/guix.texi:30859
  46180. msgid "Defaults to @samp{\"/share/cgit/cgit.png\"}."
  46181. msgstr ""
  46182. #. type: deftypevr
  46183. #: guix-git/doc/guix.texi:30862
  46184. #, no-wrap
  46185. msgid "{@code{cgit-configuration} parameter} string logo-link"
  46186. msgstr ""
  46187. #. type: deftypevr
  46188. #: guix-git/doc/guix.texi:30864 guix-git/doc/guix.texi:31321
  46189. msgid "URL loaded when clicking on the cgit logo image."
  46190. msgstr ""
  46191. #. type: deftypevr
  46192. #: guix-git/doc/guix.texi:30869
  46193. #, no-wrap
  46194. msgid "{@code{cgit-configuration} parameter} file-object owner-filter"
  46195. msgstr ""
  46196. #. type: deftypevr
  46197. #: guix-git/doc/guix.texi:30872
  46198. msgid "Command which will be invoked to format the Owner column of the main page."
  46199. msgstr ""
  46200. #. type: deftypevr
  46201. #: guix-git/doc/guix.texi:30877
  46202. #, no-wrap
  46203. msgid "{@code{cgit-configuration} parameter} integer max-atom-items"
  46204. msgstr ""
  46205. #. type: deftypevr
  46206. #: guix-git/doc/guix.texi:30879
  46207. msgid "Number of items to display in atom feeds view."
  46208. msgstr ""
  46209. #. type: deftypevr
  46210. #: guix-git/doc/guix.texi:30884
  46211. #, no-wrap
  46212. msgid "{@code{cgit-configuration} parameter} integer max-commit-count"
  46213. msgstr ""
  46214. #. type: deftypevr
  46215. #: guix-git/doc/guix.texi:30886
  46216. msgid "Number of entries to list per page in \"log\" view."
  46217. msgstr ""
  46218. #. type: deftypevr
  46219. #: guix-git/doc/guix.texi:30891
  46220. #, no-wrap
  46221. msgid "{@code{cgit-configuration} parameter} integer max-message-length"
  46222. msgstr ""
  46223. #. type: deftypevr
  46224. #: guix-git/doc/guix.texi:30893
  46225. msgid "Number of commit message characters to display in \"log\" view."
  46226. msgstr ""
  46227. #. type: deftypevr
  46228. #: guix-git/doc/guix.texi:30895 guix-git/doc/guix.texi:30911
  46229. msgid "Defaults to @samp{80}."
  46230. msgstr ""
  46231. #. type: deftypevr
  46232. #: guix-git/doc/guix.texi:30898
  46233. #, no-wrap
  46234. msgid "{@code{cgit-configuration} parameter} integer max-repo-count"
  46235. msgstr ""
  46236. #. type: deftypevr
  46237. #: guix-git/doc/guix.texi:30901
  46238. msgid "Specifies the number of entries to list per page on the repository index page."
  46239. msgstr ""
  46240. #. type: deftypevr
  46241. #: guix-git/doc/guix.texi:30906
  46242. #, no-wrap
  46243. msgid "{@code{cgit-configuration} parameter} integer max-repodesc-length"
  46244. msgstr ""
  46245. #. type: deftypevr
  46246. #: guix-git/doc/guix.texi:30909
  46247. msgid "Specifies the maximum number of repo description characters to display on the repository index page."
  46248. msgstr ""
  46249. #. type: deftypevr
  46250. #: guix-git/doc/guix.texi:30914
  46251. #, no-wrap
  46252. msgid "{@code{cgit-configuration} parameter} integer max-blob-size"
  46253. msgstr ""
  46254. #. type: deftypevr
  46255. #: guix-git/doc/guix.texi:30916
  46256. msgid "Specifies the maximum size of a blob to display HTML for in KBytes."
  46257. msgstr ""
  46258. #. type: deftypevr
  46259. #: guix-git/doc/guix.texi:30921
  46260. #, no-wrap
  46261. msgid "{@code{cgit-configuration} parameter} string max-stats"
  46262. msgstr ""
  46263. #. type: deftypevr
  46264. #: guix-git/doc/guix.texi:30924
  46265. msgid "Maximum statistics period. Valid values are @samp{week},@samp{month}, @samp{quarter} and @samp{year}."
  46266. msgstr ""
  46267. #. type: deftypevr
  46268. #: guix-git/doc/guix.texi:30929
  46269. #, no-wrap
  46270. msgid "{@code{cgit-configuration} parameter} mimetype-alist mimetype"
  46271. msgstr ""
  46272. #. type: deftypevr
  46273. #: guix-git/doc/guix.texi:30931
  46274. msgid "Mimetype for the specified filename extension."
  46275. msgstr ""
  46276. #. type: deftypevr
  46277. #: guix-git/doc/guix.texi:30935
  46278. msgid "Defaults to @samp{((gif \"image/gif\") (html \"text/html\") (jpg \"image/jpeg\") (jpeg \"image/jpeg\") (pdf \"application/pdf\") (png \"image/png\") (svg \"image/svg+xml\"))}."
  46279. msgstr ""
  46280. #. type: deftypevr
  46281. #: guix-git/doc/guix.texi:30938
  46282. #, no-wrap
  46283. msgid "{@code{cgit-configuration} parameter} file-object mimetype-file"
  46284. msgstr ""
  46285. #. type: deftypevr
  46286. #: guix-git/doc/guix.texi:30940
  46287. msgid "Specifies the file to use for automatic mimetype lookup."
  46288. msgstr ""
  46289. #. type: deftypevr
  46290. #: guix-git/doc/guix.texi:30945
  46291. #, no-wrap
  46292. msgid "{@code{cgit-configuration} parameter} string module-link"
  46293. msgstr ""
  46294. #. type: deftypevr
  46295. #: guix-git/doc/guix.texi:30948
  46296. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing."
  46297. msgstr ""
  46298. #. type: deftypevr
  46299. #: guix-git/doc/guix.texi:30953
  46300. #, no-wrap
  46301. msgid "{@code{cgit-configuration} parameter} boolean nocache?"
  46302. msgstr ""
  46303. #. type: deftypevr
  46304. #: guix-git/doc/guix.texi:30955
  46305. msgid "If set to the value @samp{#t} caching will be disabled."
  46306. msgstr ""
  46307. #. type: deftypevr
  46308. #: guix-git/doc/guix.texi:30960
  46309. #, no-wrap
  46310. msgid "{@code{cgit-configuration} parameter} boolean noplainemail?"
  46311. msgstr ""
  46312. #. type: deftypevr
  46313. #: guix-git/doc/guix.texi:30963
  46314. msgid "If set to @samp{#t} showing full author email addresses will be disabled."
  46315. msgstr ""
  46316. #. type: deftypevr
  46317. #: guix-git/doc/guix.texi:30968
  46318. #, no-wrap
  46319. msgid "{@code{cgit-configuration} parameter} boolean noheader?"
  46320. msgstr ""
  46321. #. type: deftypevr
  46322. #: guix-git/doc/guix.texi:30971
  46323. msgid "Flag which, when set to @samp{#t}, will make cgit omit the standard header on all pages."
  46324. msgstr ""
  46325. #. type: deftypevr
  46326. #: guix-git/doc/guix.texi:30976
  46327. #, no-wrap
  46328. msgid "{@code{cgit-configuration} parameter} project-list project-list"
  46329. msgstr ""
  46330. #. type: deftypevr
  46331. #: guix-git/doc/guix.texi:30980
  46332. msgid "A list of subdirectories inside of @code{repository-directory}, relative to it, that should loaded as Git repositories. An empty list means that all subdirectories will be loaded."
  46333. msgstr ""
  46334. #. type: deftypevr
  46335. #: guix-git/doc/guix.texi:30985
  46336. #, no-wrap
  46337. msgid "{@code{cgit-configuration} parameter} file-object readme"
  46338. msgstr ""
  46339. #. type: deftypevr
  46340. #: guix-git/doc/guix.texi:30987
  46341. msgid "Text which will be used as default value for @code{cgit-repo-readme}."
  46342. msgstr ""
  46343. #. type: deftypevr
  46344. #: guix-git/doc/guix.texi:30992
  46345. #, no-wrap
  46346. msgid "{@code{cgit-configuration} parameter} boolean remove-suffix?"
  46347. msgstr ""
  46348. #. type: deftypevr
  46349. #: guix-git/doc/guix.texi:30996
  46350. msgid "If set to @code{#t} and @code{repository-directory} is enabled, if any repositories are found with a suffix of @code{.git}, this suffix will be removed for the URL and name."
  46351. msgstr ""
  46352. #. type: deftypevr
  46353. #: guix-git/doc/guix.texi:31001
  46354. #, no-wrap
  46355. msgid "{@code{cgit-configuration} parameter} integer renamelimit"
  46356. msgstr ""
  46357. #. type: deftypevr
  46358. #: guix-git/doc/guix.texi:31003
  46359. msgid "Maximum number of files to consider when detecting renames."
  46360. msgstr ""
  46361. #. type: deftypevr
  46362. #: guix-git/doc/guix.texi:31008
  46363. #, no-wrap
  46364. msgid "{@code{cgit-configuration} parameter} string repository-sort"
  46365. msgstr ""
  46366. #. type: deftypevr
  46367. #: guix-git/doc/guix.texi:31010
  46368. msgid "The way in which repositories in each section are sorted."
  46369. msgstr ""
  46370. #. type: deftypevr
  46371. #: guix-git/doc/guix.texi:31015
  46372. #, no-wrap
  46373. msgid "{@code{cgit-configuration} parameter} robots-list robots"
  46374. msgstr ""
  46375. #. type: deftypevr
  46376. #: guix-git/doc/guix.texi:31017
  46377. msgid "Text used as content for the @code{robots} meta-tag."
  46378. msgstr ""
  46379. #. type: deftypevr
  46380. #: guix-git/doc/guix.texi:31019
  46381. msgid "Defaults to @samp{(\"noindex\" \"nofollow\")}."
  46382. msgstr ""
  46383. #. type: deftypevr
  46384. #: guix-git/doc/guix.texi:31022
  46385. #, no-wrap
  46386. msgid "{@code{cgit-configuration} parameter} string root-desc"
  46387. msgstr ""
  46388. #. type: deftypevr
  46389. #: guix-git/doc/guix.texi:31024
  46390. msgid "Text printed below the heading on the repository index page."
  46391. msgstr ""
  46392. #. type: deftypevr
  46393. #: guix-git/doc/guix.texi:31026
  46394. msgid "Defaults to @samp{\"a fast webinterface for the git dscm\"}."
  46395. msgstr ""
  46396. #. type: deftypevr
  46397. #: guix-git/doc/guix.texi:31029
  46398. #, no-wrap
  46399. msgid "{@code{cgit-configuration} parameter} string root-readme"
  46400. msgstr ""
  46401. #. type: deftypevr
  46402. #: guix-git/doc/guix.texi:31032
  46403. msgid "The content of the file specified with this option will be included verbatim below the ``about'' link on the repository index page."
  46404. msgstr ""
  46405. #. type: deftypevr
  46406. #: guix-git/doc/guix.texi:31037
  46407. #, no-wrap
  46408. msgid "{@code{cgit-configuration} parameter} string root-title"
  46409. msgstr ""
  46410. #. type: deftypevr
  46411. #: guix-git/doc/guix.texi:31039
  46412. msgid "Text printed as heading on the repository index page."
  46413. msgstr ""
  46414. #. type: deftypevr
  46415. #: guix-git/doc/guix.texi:31044
  46416. #, no-wrap
  46417. msgid "{@code{cgit-configuration} parameter} boolean scan-hidden-path"
  46418. msgstr ""
  46419. #. type: deftypevr
  46420. #: guix-git/doc/guix.texi:31050
  46421. msgid "If set to @samp{#t} and repository-directory is enabled, repository-directory will recurse into directories whose name starts with a period. Otherwise, repository-directory will stay away from such directories, considered as ``hidden''. Note that this does not apply to the @file{.git} directory in non-bare repos."
  46422. msgstr ""
  46423. #. type: deftypevr
  46424. #: guix-git/doc/guix.texi:31055
  46425. #, no-wrap
  46426. msgid "{@code{cgit-configuration} parameter} list snapshots"
  46427. msgstr ""
  46428. #. type: deftypevr
  46429. #: guix-git/doc/guix.texi:31058
  46430. msgid "Text which specifies the default set of snapshot formats that cgit generates links for."
  46431. msgstr ""
  46432. #. type: deftypevr
  46433. #: guix-git/doc/guix.texi:31063
  46434. #, no-wrap
  46435. msgid "{@code{cgit-configuration} parameter} repository-directory repository-directory"
  46436. msgstr ""
  46437. #. type: deftypevr
  46438. #: guix-git/doc/guix.texi:31066
  46439. msgid "Name of the directory to scan for repositories (represents @code{scan-path})."
  46440. msgstr ""
  46441. #. type: deftypevr
  46442. #: guix-git/doc/guix.texi:31068
  46443. msgid "Defaults to @samp{\"/srv/git\"}."
  46444. msgstr ""
  46445. #. type: deftypevr
  46446. #: guix-git/doc/guix.texi:31071
  46447. #, no-wrap
  46448. msgid "{@code{cgit-configuration} parameter} string section"
  46449. msgstr ""
  46450. #. type: deftypevr
  46451. #: guix-git/doc/guix.texi:31074 guix-git/doc/guix.texi:31390
  46452. msgid "The name of the current repository section - all repositories defined after this option will inherit the current section name."
  46453. msgstr ""
  46454. #. type: deftypevr
  46455. #: guix-git/doc/guix.texi:31079
  46456. #, no-wrap
  46457. msgid "{@code{cgit-configuration} parameter} string section-sort"
  46458. msgstr ""
  46459. #. type: deftypevr
  46460. #: guix-git/doc/guix.texi:31082
  46461. msgid "Flag which, when set to @samp{1}, will sort the sections on the repository listing by name."
  46462. msgstr ""
  46463. #. type: deftypevr
  46464. #: guix-git/doc/guix.texi:31087
  46465. #, no-wrap
  46466. msgid "{@code{cgit-configuration} parameter} integer section-from-path"
  46467. msgstr ""
  46468. #. type: deftypevr
  46469. #: guix-git/doc/guix.texi:31090
  46470. msgid "A number which, if defined prior to repository-directory, specifies how many path elements from each repo path to use as a default section name."
  46471. msgstr ""
  46472. #. type: deftypevr
  46473. #: guix-git/doc/guix.texi:31095
  46474. #, no-wrap
  46475. msgid "{@code{cgit-configuration} parameter} boolean side-by-side-diffs?"
  46476. msgstr ""
  46477. #. type: deftypevr
  46478. #: guix-git/doc/guix.texi:31098
  46479. msgid "If set to @samp{#t} shows side-by-side diffs instead of unidiffs per default."
  46480. msgstr ""
  46481. #. type: deftypevr
  46482. #: guix-git/doc/guix.texi:31103
  46483. #, no-wrap
  46484. msgid "{@code{cgit-configuration} parameter} file-object source-filter"
  46485. msgstr ""
  46486. #. type: deftypevr
  46487. #: guix-git/doc/guix.texi:31106
  46488. msgid "Specifies a command which will be invoked to format plaintext blobs in the tree view."
  46489. msgstr ""
  46490. #. type: deftypevr
  46491. #: guix-git/doc/guix.texi:31111
  46492. #, no-wrap
  46493. msgid "{@code{cgit-configuration} parameter} integer summary-branches"
  46494. msgstr ""
  46495. #. type: deftypevr
  46496. #: guix-git/doc/guix.texi:31114
  46497. msgid "Specifies the number of branches to display in the repository ``summary'' view."
  46498. msgstr ""
  46499. #. type: deftypevr
  46500. #: guix-git/doc/guix.texi:31119
  46501. #, no-wrap
  46502. msgid "{@code{cgit-configuration} parameter} integer summary-log"
  46503. msgstr ""
  46504. #. type: deftypevr
  46505. #: guix-git/doc/guix.texi:31122
  46506. msgid "Specifies the number of log entries to display in the repository ``summary'' view."
  46507. msgstr ""
  46508. #. type: deftypevr
  46509. #: guix-git/doc/guix.texi:31127
  46510. #, no-wrap
  46511. msgid "{@code{cgit-configuration} parameter} integer summary-tags"
  46512. msgstr ""
  46513. #. type: deftypevr
  46514. #: guix-git/doc/guix.texi:31130
  46515. msgid "Specifies the number of tags to display in the repository ``summary'' view."
  46516. msgstr ""
  46517. #. type: deftypevr
  46518. #: guix-git/doc/guix.texi:31135
  46519. #, no-wrap
  46520. msgid "{@code{cgit-configuration} parameter} string strict-export"
  46521. msgstr ""
  46522. #. type: deftypevr
  46523. #: guix-git/doc/guix.texi:31138
  46524. msgid "Filename which, if specified, needs to be present within the repository for cgit to allow access to that repository."
  46525. msgstr ""
  46526. #. type: deftypevr
  46527. #: guix-git/doc/guix.texi:31143
  46528. #, no-wrap
  46529. msgid "{@code{cgit-configuration} parameter} string virtual-root"
  46530. msgstr ""
  46531. #. type: deftypevr
  46532. #: guix-git/doc/guix.texi:31145
  46533. msgid "URL which, if specified, will be used as root for all cgit links."
  46534. msgstr ""
  46535. #. type: deftypevr
  46536. #: guix-git/doc/guix.texi:31147
  46537. msgid "Defaults to @samp{\"/\"}."
  46538. msgstr ""
  46539. #. type: deftypevr
  46540. #: guix-git/doc/guix.texi:31150
  46541. #, no-wrap
  46542. msgid "{@code{cgit-configuration} parameter} repository-cgit-configuration-list repositories"
  46543. msgstr ""
  46544. #. type: deftypevr
  46545. #: guix-git/doc/guix.texi:31152
  46546. msgid "A list of @dfn{cgit-repo} records to use with config."
  46547. msgstr ""
  46548. #. type: deftypevr
  46549. #: guix-git/doc/guix.texi:31156
  46550. msgid "Available @code{repository-cgit-configuration} fields are:"
  46551. msgstr ""
  46552. #. type: deftypevr
  46553. #: guix-git/doc/guix.texi:31157
  46554. #, no-wrap
  46555. msgid "{@code{repository-cgit-configuration} parameter} repo-list snapshots"
  46556. msgstr ""
  46557. #. type: deftypevr
  46558. #: guix-git/doc/guix.texi:31160
  46559. msgid "A mask of snapshot formats for this repo that cgit generates links for, restricted by the global @code{snapshots} setting."
  46560. msgstr ""
  46561. #. type: deftypevr
  46562. #: guix-git/doc/guix.texi:31165
  46563. #, no-wrap
  46564. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object source-filter"
  46565. msgstr ""
  46566. #. type: deftypevr
  46567. #: guix-git/doc/guix.texi:31167
  46568. msgid "Override the default @code{source-filter}."
  46569. msgstr ""
  46570. #. type: deftypevr
  46571. #: guix-git/doc/guix.texi:31172
  46572. #, no-wrap
  46573. msgid "{@code{repository-cgit-configuration} parameter} repo-string url"
  46574. msgstr ""
  46575. #. type: deftypevr
  46576. #: guix-git/doc/guix.texi:31174
  46577. msgid "The relative URL used to access the repository."
  46578. msgstr ""
  46579. #. type: deftypevr
  46580. #: guix-git/doc/guix.texi:31179
  46581. #, no-wrap
  46582. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object about-filter"
  46583. msgstr ""
  46584. #. type: deftypevr
  46585. #: guix-git/doc/guix.texi:31181
  46586. msgid "Override the default @code{about-filter}."
  46587. msgstr ""
  46588. #. type: deftypevr
  46589. #: guix-git/doc/guix.texi:31186
  46590. #, no-wrap
  46591. msgid "{@code{repository-cgit-configuration} parameter} repo-string branch-sort"
  46592. msgstr ""
  46593. #. type: deftypevr
  46594. #: guix-git/doc/guix.texi:31189
  46595. msgid "Flag which, when set to @samp{age}, enables date ordering in the branch ref list, and when set to @samp{name} enables ordering by branch name."
  46596. msgstr ""
  46597. #. type: deftypevr
  46598. #: guix-git/doc/guix.texi:31194
  46599. #, no-wrap
  46600. msgid "{@code{repository-cgit-configuration} parameter} repo-list clone-url"
  46601. msgstr ""
  46602. #. type: deftypevr
  46603. #: guix-git/doc/guix.texi:31196
  46604. msgid "A list of URLs which can be used to clone repo."
  46605. msgstr ""
  46606. #. type: deftypevr
  46607. #: guix-git/doc/guix.texi:31201
  46608. #, no-wrap
  46609. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object commit-filter"
  46610. msgstr ""
  46611. #. type: deftypevr
  46612. #: guix-git/doc/guix.texi:31203
  46613. msgid "Override the default @code{commit-filter}."
  46614. msgstr ""
  46615. #. type: deftypevr
  46616. #: guix-git/doc/guix.texi:31208
  46617. #, no-wrap
  46618. msgid "{@code{repository-cgit-configuration} parameter} repo-string commit-sort"
  46619. msgstr ""
  46620. #. type: deftypevr
  46621. #: guix-git/doc/guix.texi:31217
  46622. #, no-wrap
  46623. msgid "{@code{repository-cgit-configuration} parameter} repo-string defbranch"
  46624. msgstr ""
  46625. #. type: deftypevr
  46626. #: guix-git/doc/guix.texi:31222
  46627. msgid "The name of the default branch for this repository. If no such branch exists in the repository, the first branch name (when sorted) is used as default instead. By default branch pointed to by HEAD, or ``master'' if there is no suitable HEAD."
  46628. msgstr ""
  46629. #. type: deftypevr
  46630. #: guix-git/doc/guix.texi:31227
  46631. #, no-wrap
  46632. msgid "{@code{repository-cgit-configuration} parameter} repo-string desc"
  46633. msgstr ""
  46634. #. type: deftypevr
  46635. #: guix-git/doc/guix.texi:31229
  46636. msgid "The value to show as repository description."
  46637. msgstr ""
  46638. #. type: deftypevr
  46639. #: guix-git/doc/guix.texi:31234
  46640. #, no-wrap
  46641. msgid "{@code{repository-cgit-configuration} parameter} repo-string homepage"
  46642. msgstr ""
  46643. #. type: deftypevr
  46644. #: guix-git/doc/guix.texi:31236
  46645. msgid "The value to show as repository homepage."
  46646. msgstr ""
  46647. #. type: deftypevr
  46648. #: guix-git/doc/guix.texi:31241
  46649. #, no-wrap
  46650. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object email-filter"
  46651. msgstr ""
  46652. #. type: deftypevr
  46653. #: guix-git/doc/guix.texi:31243
  46654. msgid "Override the default @code{email-filter}."
  46655. msgstr ""
  46656. #. type: deftypevr
  46657. #: guix-git/doc/guix.texi:31248
  46658. #, no-wrap
  46659. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-commit-graph?"
  46660. msgstr ""
  46661. #. type: deftypevr
  46662. #: guix-git/doc/guix.texi:31251
  46663. msgid "A flag which can be used to disable the global setting @code{enable-commit-graph?}."
  46664. msgstr ""
  46665. #. type: deftypevr
  46666. #: guix-git/doc/guix.texi:31256
  46667. #, no-wrap
  46668. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-filecount?"
  46669. msgstr ""
  46670. #. type: deftypevr
  46671. #: guix-git/doc/guix.texi:31259
  46672. msgid "A flag which can be used to disable the global setting @code{enable-log-filecount?}."
  46673. msgstr ""
  46674. #. type: deftypevr
  46675. #: guix-git/doc/guix.texi:31264
  46676. #, no-wrap
  46677. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-linecount?"
  46678. msgstr ""
  46679. #. type: deftypevr
  46680. #: guix-git/doc/guix.texi:31267
  46681. msgid "A flag which can be used to disable the global setting @code{enable-log-linecount?}."
  46682. msgstr ""
  46683. #. type: deftypevr
  46684. #: guix-git/doc/guix.texi:31272
  46685. #, no-wrap
  46686. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-remote-branches?"
  46687. msgstr ""
  46688. #. type: deftypevr
  46689. #: guix-git/doc/guix.texi:31280
  46690. #, no-wrap
  46691. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-subject-links?"
  46692. msgstr ""
  46693. #. type: deftypevr
  46694. #: guix-git/doc/guix.texi:31283
  46695. msgid "A flag which can be used to override the global setting @code{enable-subject-links?}."
  46696. msgstr ""
  46697. #. type: deftypevr
  46698. #: guix-git/doc/guix.texi:31288
  46699. #, no-wrap
  46700. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-html-serving?"
  46701. msgstr ""
  46702. #. type: deftypevr
  46703. #: guix-git/doc/guix.texi:31291
  46704. msgid "A flag which can be used to override the global setting @code{enable-html-serving?}."
  46705. msgstr ""
  46706. #. type: deftypevr
  46707. #: guix-git/doc/guix.texi:31296
  46708. #, no-wrap
  46709. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean hide?"
  46710. msgstr ""
  46711. #. type: deftypevr
  46712. #: guix-git/doc/guix.texi:31299
  46713. msgid "Flag which, when set to @code{#t}, hides the repository from the repository index."
  46714. msgstr ""
  46715. #. type: deftypevr
  46716. #: guix-git/doc/guix.texi:31304
  46717. #, no-wrap
  46718. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean ignore?"
  46719. msgstr ""
  46720. #. type: deftypevr
  46721. #: guix-git/doc/guix.texi:31306
  46722. msgid "Flag which, when set to @samp{#t}, ignores the repository."
  46723. msgstr ""
  46724. #. type: deftypevr
  46725. #: guix-git/doc/guix.texi:31311
  46726. #, no-wrap
  46727. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object logo"
  46728. msgstr ""
  46729. #. type: deftypevr
  46730. #: guix-git/doc/guix.texi:31314
  46731. msgid "URL which specifies the source of an image which will be used as a logo on this repo’s pages."
  46732. msgstr ""
  46733. #. type: deftypevr
  46734. #: guix-git/doc/guix.texi:31319
  46735. #, no-wrap
  46736. msgid "{@code{repository-cgit-configuration} parameter} repo-string logo-link"
  46737. msgstr ""
  46738. #. type: deftypevr
  46739. #: guix-git/doc/guix.texi:31326
  46740. #, no-wrap
  46741. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object owner-filter"
  46742. msgstr ""
  46743. #. type: deftypevr
  46744. #: guix-git/doc/guix.texi:31328
  46745. msgid "Override the default @code{owner-filter}."
  46746. msgstr ""
  46747. #. type: deftypevr
  46748. #: guix-git/doc/guix.texi:31333
  46749. #, no-wrap
  46750. msgid "{@code{repository-cgit-configuration} parameter} repo-string module-link"
  46751. msgstr ""
  46752. #. type: deftypevr
  46753. #: guix-git/doc/guix.texi:31337
  46754. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing. The arguments for the formatstring are the path and SHA1 of the submodule commit."
  46755. msgstr ""
  46756. #. type: deftypevr
  46757. #: guix-git/doc/guix.texi:31342
  46758. #, no-wrap
  46759. msgid "{@code{repository-cgit-configuration} parameter} module-link-path module-link-path"
  46760. msgstr ""
  46761. #. type: deftypevr
  46762. #: guix-git/doc/guix.texi:31346
  46763. msgid "Text which will be used as the formatstring for a hyperlink when a submodule with the specified subdirectory path is printed in a directory listing."
  46764. msgstr ""
  46765. #. type: deftypevr
  46766. #: guix-git/doc/guix.texi:31351
  46767. #, no-wrap
  46768. msgid "{@code{repository-cgit-configuration} parameter} repo-string max-stats"
  46769. msgstr ""
  46770. #. type: deftypevr
  46771. #: guix-git/doc/guix.texi:31353
  46772. msgid "Override the default maximum statistics period."
  46773. msgstr ""
  46774. #. type: deftypevr
  46775. #: guix-git/doc/guix.texi:31358
  46776. #, no-wrap
  46777. msgid "{@code{repository-cgit-configuration} parameter} repo-string name"
  46778. msgstr ""
  46779. #. type: deftypevr
  46780. #: guix-git/doc/guix.texi:31360
  46781. msgid "The value to show as repository name."
  46782. msgstr ""
  46783. #. type: deftypevr
  46784. #: guix-git/doc/guix.texi:31365
  46785. #, no-wrap
  46786. msgid "{@code{repository-cgit-configuration} parameter} repo-string owner"
  46787. msgstr ""
  46788. #. type: deftypevr
  46789. #: guix-git/doc/guix.texi:31367
  46790. msgid "A value used to identify the owner of the repository."
  46791. msgstr ""
  46792. #. type: deftypevr
  46793. #: guix-git/doc/guix.texi:31372
  46794. #, no-wrap
  46795. msgid "{@code{repository-cgit-configuration} parameter} repo-string path"
  46796. msgstr ""
  46797. #. type: deftypevr
  46798. #: guix-git/doc/guix.texi:31374
  46799. msgid "An absolute path to the repository directory."
  46800. msgstr ""
  46801. #. type: deftypevr
  46802. #: guix-git/doc/guix.texi:31379
  46803. #, no-wrap
  46804. msgid "{@code{repository-cgit-configuration} parameter} repo-string readme"
  46805. msgstr ""
  46806. #. type: deftypevr
  46807. #: guix-git/doc/guix.texi:31382
  46808. msgid "A path (relative to repo) which specifies a file to include verbatim as the ``About'' page for this repo."
  46809. msgstr ""
  46810. #. type: deftypevr
  46811. #: guix-git/doc/guix.texi:31387
  46812. #, no-wrap
  46813. msgid "{@code{repository-cgit-configuration} parameter} repo-string section"
  46814. msgstr ""
  46815. #. type: deftypevr
  46816. #: guix-git/doc/guix.texi:31395
  46817. #, no-wrap
  46818. msgid "{@code{repository-cgit-configuration} parameter} repo-list extra-options"
  46819. msgstr ""
  46820. #. type: deftypevr
  46821. #: guix-git/doc/guix.texi:31397 guix-git/doc/guix.texi:31406
  46822. msgid "Extra options will be appended to cgitrc file."
  46823. msgstr ""
  46824. #. type: deftypevr
  46825. #: guix-git/doc/guix.texi:31404
  46826. #, no-wrap
  46827. msgid "{@code{cgit-configuration} parameter} list extra-options"
  46828. msgstr ""
  46829. #. type: Plain text
  46830. #: guix-git/doc/guix.texi:31418
  46831. msgid "However, it could be that you just want to get a @code{cgitrc} up and running. In that case, you can pass an @code{opaque-cgit-configuration} as a record to @code{cgit-service-type}. As its name indicates, an opaque configuration does not have easy reflective capabilities."
  46832. msgstr ""
  46833. #. type: Plain text
  46834. #: guix-git/doc/guix.texi:31420
  46835. msgid "Available @code{opaque-cgit-configuration} fields are:"
  46836. msgstr ""
  46837. #. type: deftypevr
  46838. #: guix-git/doc/guix.texi:31421
  46839. #, no-wrap
  46840. msgid "{@code{opaque-cgit-configuration} parameter} package cgit"
  46841. msgstr ""
  46842. #. type: deftypevr
  46843. #: guix-git/doc/guix.texi:31423
  46844. msgid "The cgit package."
  46845. msgstr ""
  46846. #. type: deftypevr
  46847. #: guix-git/doc/guix.texi:31425
  46848. #, no-wrap
  46849. msgid "{@code{opaque-cgit-configuration} parameter} string string"
  46850. msgstr ""
  46851. #. type: deftypevr
  46852. #: guix-git/doc/guix.texi:31427
  46853. msgid "The contents of the @code{cgitrc}, as a string."
  46854. msgstr ""
  46855. #. type: Plain text
  46856. #: guix-git/doc/guix.texi:31431
  46857. msgid "For example, if your @code{cgitrc} is just the empty string, you could instantiate a cgit service like this:"
  46858. msgstr ""
  46859. #. type: lisp
  46860. #: guix-git/doc/guix.texi:31436
  46861. #, no-wrap
  46862. msgid ""
  46863. "(service cgit-service-type\n"
  46864. " (opaque-cgit-configuration\n"
  46865. " (cgitrc \"\")))\n"
  46866. msgstr ""
  46867. #. type: subsubheading
  46868. #: guix-git/doc/guix.texi:31438
  46869. #, no-wrap
  46870. msgid "Gitolite Service"
  46871. msgstr ""
  46872. #. type: cindex
  46873. #: guix-git/doc/guix.texi:31440
  46874. #, no-wrap
  46875. msgid "Gitolite service"
  46876. msgstr ""
  46877. #. type: cindex
  46878. #: guix-git/doc/guix.texi:31441
  46879. #, no-wrap
  46880. msgid "Git, hosting"
  46881. msgstr ""
  46882. #. type: Plain text
  46883. #: guix-git/doc/guix.texi:31444
  46884. msgid "@uref{https://gitolite.com/gitolite/, Gitolite} is a tool for hosting Git repositories on a central server."
  46885. msgstr ""
  46886. #. type: Plain text
  46887. #: guix-git/doc/guix.texi:31447
  46888. msgid "Gitolite can handle multiple repositories and users, and supports flexible configuration of the permissions for the users on the repositories."
  46889. msgstr ""
  46890. #. type: Plain text
  46891. #: guix-git/doc/guix.texi:31450
  46892. msgid "The following example will configure Gitolite using the default @code{git} user, and the provided SSH public key."
  46893. msgstr ""
  46894. #. type: lisp
  46895. #: guix-git/doc/guix.texi:31457
  46896. #, no-wrap
  46897. msgid ""
  46898. "(service gitolite-service-type\n"
  46899. " (gitolite-configuration\n"
  46900. " (admin-pubkey (plain-file\n"
  46901. " \"yourname.pub\"\n"
  46902. " \"ssh-rsa AAAA... guix@@example.com\"))))\n"
  46903. msgstr ""
  46904. #. type: Plain text
  46905. #: guix-git/doc/guix.texi:31462
  46906. msgid "Gitolite is configured through a special admin repository which you can clone, for example, if you setup Gitolite on @code{example.com}, you would run the following command to clone the admin repository."
  46907. msgstr ""
  46908. #. type: example
  46909. #: guix-git/doc/guix.texi:31465
  46910. #, no-wrap
  46911. msgid "git clone git@@example.com:gitolite-admin\n"
  46912. msgstr ""
  46913. #. type: Plain text
  46914. #: guix-git/doc/guix.texi:31471
  46915. msgid "When the Gitolite service is activated, the provided @code{admin-pubkey} will be inserted in to the @file{keydir} directory in the gitolite-admin repository. If this results in a change in the repository, it will be committed using the message ``gitolite setup by GNU Guix''."
  46916. msgstr ""
  46917. #. type: deftp
  46918. #: guix-git/doc/guix.texi:31472
  46919. #, no-wrap
  46920. msgid "{Data Type} gitolite-configuration"
  46921. msgstr ""
  46922. #. type: deftp
  46923. #: guix-git/doc/guix.texi:31474
  46924. msgid "Data type representing the configuration for @code{gitolite-service-type}."
  46925. msgstr ""
  46926. #. type: item
  46927. #: guix-git/doc/guix.texi:31476
  46928. #, no-wrap
  46929. msgid "@code{package} (default: @var{gitolite})"
  46930. msgstr ""
  46931. #. type: table
  46932. #: guix-git/doc/guix.texi:31478
  46933. msgid "Gitolite package to use."
  46934. msgstr ""
  46935. #. type: item
  46936. #: guix-git/doc/guix.texi:31479
  46937. #, no-wrap
  46938. msgid "@code{user} (default: @var{git})"
  46939. msgstr ""
  46940. #. type: table
  46941. #: guix-git/doc/guix.texi:31482
  46942. msgid "User to use for Gitolite. This will be user that you use when accessing Gitolite over SSH."
  46943. msgstr ""
  46944. #. type: item
  46945. #: guix-git/doc/guix.texi:31483
  46946. #, no-wrap
  46947. msgid "@code{group} (default: @var{git})"
  46948. msgstr ""
  46949. #. type: table
  46950. #: guix-git/doc/guix.texi:31485
  46951. msgid "Group to use for Gitolite."
  46952. msgstr ""
  46953. #. type: item
  46954. #: guix-git/doc/guix.texi:31486
  46955. #, no-wrap
  46956. msgid "@code{home-directory} (default: @var{\"/var/lib/gitolite\"})"
  46957. msgstr ""
  46958. #. type: table
  46959. #: guix-git/doc/guix.texi:31488
  46960. msgid "Directory in which to store the Gitolite configuration and repositories."
  46961. msgstr ""
  46962. #. type: item
  46963. #: guix-git/doc/guix.texi:31489
  46964. #, no-wrap
  46965. msgid "@code{rc-file} (default: @var{(gitolite-rc-file)})"
  46966. msgstr ""
  46967. #. type: table
  46968. #: guix-git/doc/guix.texi:31492
  46969. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}), representing the configuration for Gitolite."
  46970. msgstr ""
  46971. #. type: item
  46972. #: guix-git/doc/guix.texi:31493
  46973. #, no-wrap
  46974. msgid "@code{admin-pubkey} (default: @var{#f})"
  46975. msgstr ""
  46976. #. type: table
  46977. #: guix-git/doc/guix.texi:31497
  46978. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}) used to setup Gitolite. This will be inserted in to the @file{keydir} directory within the gitolite-admin repository."
  46979. msgstr ""
  46980. #. type: table
  46981. #: guix-git/doc/guix.texi:31499
  46982. msgid "To specify the SSH key as a string, use the @code{plain-file} function."
  46983. msgstr ""
  46984. #. type: lisp
  46985. #: guix-git/doc/guix.texi:31502
  46986. #, no-wrap
  46987. msgid "(plain-file \"yourname.pub\" \"ssh-rsa AAAA... guix@@example.com\")\n"
  46988. msgstr ""
  46989. #. type: deftp
  46990. #: guix-git/doc/guix.texi:31507
  46991. #, no-wrap
  46992. msgid "{Data Type} gitolite-rc-file"
  46993. msgstr ""
  46994. #. type: deftp
  46995. #: guix-git/doc/guix.texi:31509
  46996. msgid "Data type representing the Gitolite RC file."
  46997. msgstr ""
  46998. #. type: item
  46999. #: guix-git/doc/guix.texi:31511
  47000. #, no-wrap
  47001. msgid "@code{umask} (default: @code{#o0077})"
  47002. msgstr ""
  47003. #. type: table
  47004. #: guix-git/doc/guix.texi:31514
  47005. msgid "This controls the permissions Gitolite sets on the repositories and their contents."
  47006. msgstr ""
  47007. #. type: table
  47008. #: guix-git/doc/guix.texi:31518
  47009. msgid "A value like @code{#o0027} will give read access to the group used by Gitolite (by default: @code{git}). This is necessary when using Gitolite with software like cgit or gitweb."
  47010. msgstr ""
  47011. #. type: item
  47012. #: guix-git/doc/guix.texi:31519
  47013. #, no-wrap
  47014. msgid "@code{git-config-keys} (default: @code{\"\"})"
  47015. msgstr ""
  47016. #. type: table
  47017. #: guix-git/doc/guix.texi:31522
  47018. msgid "Gitolite allows you to set git config values using the @samp{config} keyword. This setting allows control over the config keys to accept."
  47019. msgstr ""
  47020. #. type: item
  47021. #: guix-git/doc/guix.texi:31523
  47022. #, no-wrap
  47023. msgid "@code{roles} (default: @code{'((\"READERS\" . 1) (\"WRITERS\" . ))})"
  47024. msgstr ""
  47025. #. type: table
  47026. #: guix-git/doc/guix.texi:31525
  47027. msgid "Set the role names allowed to be used by users running the perms command."
  47028. msgstr ""
  47029. #. type: item
  47030. #: guix-git/doc/guix.texi:31526
  47031. #, no-wrap
  47032. msgid "@code{enable} (default: @code{'(\"help\" \"desc\" \"info\" \"perms\" \"writable\" \"ssh-authkeys\" \"git-config\" \"daemon\" \"gitweb\")})"
  47033. msgstr ""
  47034. #. type: table
  47035. #: guix-git/doc/guix.texi:31528
  47036. msgid "This setting controls the commands and features to enable within Gitolite."
  47037. msgstr ""
  47038. #. type: subsubheading
  47039. #: guix-git/doc/guix.texi:31536
  47040. #, no-wrap
  47041. msgid "The Battle for Wesnoth Service"
  47042. msgstr ""
  47043. #. type: cindex
  47044. #: guix-git/doc/guix.texi:31537
  47045. #, no-wrap
  47046. msgid "wesnothd"
  47047. msgstr ""
  47048. #. type: Plain text
  47049. #: guix-git/doc/guix.texi:31541
  47050. msgid "@uref{https://wesnoth.org, The Battle for Wesnoth} is a fantasy, turn based tactical strategy game, with several single player campaigns, and multiplayer games (both networked and local)."
  47051. msgstr ""
  47052. #. type: defvar
  47053. #: guix-git/doc/guix.texi:31542
  47054. #, no-wrap
  47055. msgid "{Scheme Variable} wesnothd-service-type"
  47056. msgstr ""
  47057. #. type: defvar
  47058. #: guix-git/doc/guix.texi:31546
  47059. msgid "Service type for the wesnothd service. Its value must be a @code{wesnothd-configuration} object. To run wesnothd in the default configuration, instantiate it as:"
  47060. msgstr ""
  47061. #. type: lisp
  47062. #: guix-git/doc/guix.texi:31549
  47063. #, no-wrap
  47064. msgid "(service wesnothd-service-type)\n"
  47065. msgstr ""
  47066. #. type: deftp
  47067. #: guix-git/doc/guix.texi:31552
  47068. #, no-wrap
  47069. msgid "{Data Type} wesnothd-configuration"
  47070. msgstr ""
  47071. #. type: deftp
  47072. #: guix-git/doc/guix.texi:31554
  47073. msgid "Data type representing the configuration of @command{wesnothd}."
  47074. msgstr ""
  47075. #. type: item
  47076. #: guix-git/doc/guix.texi:31556
  47077. #, no-wrap
  47078. msgid "@code{package} (default: @code{wesnoth-server})"
  47079. msgstr ""
  47080. #. type: table
  47081. #: guix-git/doc/guix.texi:31558
  47082. msgid "The wesnoth server package to use."
  47083. msgstr ""
  47084. #. type: item
  47085. #: guix-git/doc/guix.texi:31559
  47086. #, no-wrap
  47087. msgid "@code{port} (default: @code{15000})"
  47088. msgstr ""
  47089. #. type: table
  47090. #: guix-git/doc/guix.texi:31561
  47091. msgid "The port to bind the server to."
  47092. msgstr ""
  47093. #. type: cindex
  47094. #: guix-git/doc/guix.texi:31567
  47095. #, no-wrap
  47096. msgid "pam-mount"
  47097. msgstr ""
  47098. #. type: Plain text
  47099. #: guix-git/doc/guix.texi:31572
  47100. msgid "The @code{(gnu services pam-mount)} module provides a service allowing users to mount volumes when they log in. It should be able to mount any volume format supported by the system."
  47101. msgstr ""
  47102. #. type: defvar
  47103. #: guix-git/doc/guix.texi:31573
  47104. #, no-wrap
  47105. msgid "{Scheme Variable} pam-mount-service-type"
  47106. msgstr ""
  47107. #. type: defvar
  47108. #: guix-git/doc/guix.texi:31575
  47109. msgid "Service type for PAM Mount support."
  47110. msgstr ""
  47111. #. type: deftp
  47112. #: guix-git/doc/guix.texi:31577
  47113. #, no-wrap
  47114. msgid "{Data Type} pam-mount-configuration"
  47115. msgstr ""
  47116. #. type: deftp
  47117. #: guix-git/doc/guix.texi:31579
  47118. #, fuzzy
  47119. msgid "Data type representing the configuration of PAM Mount."
  47120. msgstr "管理操作系统配置。"
  47121. #. type: code{#1}
  47122. #: guix-git/doc/guix.texi:31583
  47123. #, fuzzy, no-wrap
  47124. msgid "rules"
  47125. msgstr "模块"
  47126. #. type: table
  47127. #: guix-git/doc/guix.texi:31586
  47128. msgid "The configuration rules that will be used to generate @file{/etc/security/pam_mount.conf.xml}."
  47129. msgstr ""
  47130. #. type: table
  47131. #: guix-git/doc/guix.texi:31590
  47132. msgid "The configuration rules are SXML elements (@pxref{SXML,,, guile, GNU Guile Reference Manual}), and the default ones don't mount anything for anyone at login:"
  47133. msgstr ""
  47134. #. type: lisp
  47135. #: guix-git/doc/guix.texi:31605
  47136. #, no-wrap
  47137. msgid ""
  47138. "`((debug (@@ (enable \"0\")))\n"
  47139. " (mntoptions (@@ (allow ,(string-join\n"
  47140. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  47141. " \"encryption\" \"fsck\" \"nonempty\"\n"
  47142. " \"allow_root\" \"allow_other\")\n"
  47143. " \",\"))))\n"
  47144. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  47145. " (logout (@@ (wait \"0\")\n"
  47146. " (hup \"0\")\n"
  47147. " (term \"no\")\n"
  47148. " (kill \"no\")))\n"
  47149. " (mkmountpoint (@@ (enable \"1\")\n"
  47150. " (remove \"true\"))))\n"
  47151. msgstr ""
  47152. #. type: table
  47153. #: guix-git/doc/guix.texi:31611
  47154. msgid "Some @code{volume} elements must be added to automatically mount volumes at login. Here's an example allowing the user @code{alice} to mount her encrypted @env{HOME} directory and allowing the user @code{bob} to mount the partition where he stores his data:"
  47155. msgstr ""
  47156. #. type: lisp
  47157. #: guix-git/doc/guix.texi:31636
  47158. #, no-wrap
  47159. msgid ""
  47160. "(define pam-mount-rules\n"
  47161. "`((debug (@@ (enable \"0\")))\n"
  47162. " (volume (@@ (user \"alice\")\n"
  47163. " (fstype \"crypt\")\n"
  47164. " (path \"/dev/sda2\")\n"
  47165. " (mountpoint \"/home/alice\")))\n"
  47166. " (volume (@@ (user \"bob\")\n"
  47167. " (fstype \"auto\")\n"
  47168. " (path \"/dev/sdb3\")\n"
  47169. " (mountpoint \"/home/bob/data\")\n"
  47170. " (options \"defaults,autodefrag,compress\")))\n"
  47171. " (mntoptions (@@ (allow ,(string-join\n"
  47172. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  47173. " \"encryption\" \"fsck\" \"nonempty\"\n"
  47174. " \"allow_root\" \"allow_other\")\n"
  47175. " \",\"))))\n"
  47176. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  47177. " (logout (@@ (wait \"0\")\n"
  47178. " (hup \"0\")\n"
  47179. " (term \"no\")\n"
  47180. " (kill \"no\")))\n"
  47181. " (mkmountpoint (@@ (enable \"1\")\n"
  47182. " (remove \"true\")))))\n"
  47183. "\n"
  47184. msgstr ""
  47185. #. type: lisp
  47186. #: guix-git/doc/guix.texi:31640
  47187. #, no-wrap
  47188. msgid ""
  47189. "(service pam-mount-service-type\n"
  47190. " (pam-mount-configuration\n"
  47191. " (rules pam-mount-rules)))\n"
  47192. msgstr ""
  47193. #. type: table
  47194. #: guix-git/doc/guix.texi:31644
  47195. msgid "The complete list of possible options can be found in the man page for @uref{http://pam-mount.sourceforge.net/pam_mount.conf.5.html, pam_mount.conf}."
  47196. msgstr ""
  47197. #. type: subsubheading
  47198. #: guix-git/doc/guix.texi:31651
  47199. #, no-wrap
  47200. msgid "Guix Build Coordinator"
  47201. msgstr ""
  47202. #. type: Plain text
  47203. #: guix-git/doc/guix.texi:31657
  47204. msgid "The @uref{https://git.cbaines.net/guix/build-coordinator/,Guix Build Coordinator} aids in distributing derivation builds among machines running an @dfn{agent}. The build daemon is still used to build the derivations, but the Guix Build Coordinator manages allocating builds and working with the results."
  47205. msgstr ""
  47206. #. type: quotation
  47207. #: guix-git/doc/guix.texi:31662
  47208. msgid "This service is considered experimental. Configuration options may be changed in a backwards-incompatible manner, and not all features have been thorougly tested."
  47209. msgstr ""
  47210. #. type: Plain text
  47211. #: guix-git/doc/guix.texi:31669
  47212. msgid "The Guix Build Coordinator consists of one @dfn{coordinator}, and one or more connected @dfn{agent} processes. The coordinator process handles clients submitting builds, and allocating builds to agents. The agent processes talk to a build daemon to actually perform the builds, then send the results back to the coordinator."
  47213. msgstr ""
  47214. #. type: Plain text
  47215. #: guix-git/doc/guix.texi:31673
  47216. msgid "There is a script to run the coordinator component of the Guix Build Coordinator, but the Guix service uses a custom Guile script instead, to provide better integration with G-expressions used in the configuration."
  47217. msgstr ""
  47218. #. type: defvar
  47219. #: guix-git/doc/guix.texi:31674
  47220. #, no-wrap
  47221. msgid "{Scheme Variable} guix-build-coordinator-service-type"
  47222. msgstr ""
  47223. #. type: defvar
  47224. #: guix-git/doc/guix.texi:31677
  47225. msgid "Service type for the Guix Build Coordinator. Its value must be a @code{guix-build-coordinator-configuration} object."
  47226. msgstr ""
  47227. #. type: deftp
  47228. #: guix-git/doc/guix.texi:31679
  47229. #, fuzzy, no-wrap
  47230. msgid "{Data Type} guix-build-coordinator-configuration"
  47231. msgstr "{数据类型} build-machine"
  47232. #. type: deftp
  47233. #: guix-git/doc/guix.texi:31681
  47234. msgid "Data type representing the configuration of the Guix Build Coordinator."
  47235. msgstr ""
  47236. #. type: item
  47237. #: guix-git/doc/guix.texi:31683 guix-git/doc/guix.texi:31727
  47238. #: guix-git/doc/guix.texi:31853
  47239. #, fuzzy, no-wrap
  47240. msgid "@code{package} (default: @code{guix-build-coordinator})"
  47241. msgstr "@code{gnome}(默认值:@code{gnome})"
  47242. #. type: table
  47243. #: guix-git/doc/guix.texi:31685 guix-git/doc/guix.texi:31729
  47244. #: guix-git/doc/guix.texi:31855
  47245. msgid "The Guix Build Coordinator package to use."
  47246. msgstr ""
  47247. #. type: item
  47248. #: guix-git/doc/guix.texi:31686
  47249. #, fuzzy, no-wrap
  47250. msgid "@code{user} (default: @code{\"guix-build-coordinator\"})"
  47251. msgstr "@code{gnome}(默认值:@code{gnome})"
  47252. #. type: table
  47253. #: guix-git/doc/guix.texi:31688 guix-git/doc/guix.texi:31732
  47254. #: guix-git/doc/guix.texi:31858 guix-git/doc/guix.texi:31904
  47255. #, fuzzy
  47256. msgid "The system user to run the service as."
  47257. msgstr "mcron服务。"
  47258. #. type: item
  47259. #: guix-git/doc/guix.texi:31689
  47260. #, fuzzy, no-wrap
  47261. msgid "@code{group} (default: @code{\"guix-build-coordinator\"})"
  47262. msgstr "@code{gnome}(默认值:@code{gnome})"
  47263. #. type: table
  47264. #: guix-git/doc/guix.texi:31691 guix-git/doc/guix.texi:31907
  47265. msgid "The system group to run the service as."
  47266. msgstr ""
  47267. #. type: item
  47268. #: guix-git/doc/guix.texi:31692
  47269. #, no-wrap
  47270. msgid "@code{database-uri-string} (default: @code{\"sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db\"})"
  47271. msgstr ""
  47272. #. type: table
  47273. #: guix-git/doc/guix.texi:31694
  47274. msgid "The URI to use for the database."
  47275. msgstr ""
  47276. #. type: item
  47277. #: guix-git/doc/guix.texi:31695
  47278. #, fuzzy, no-wrap
  47279. msgid "@code{agent-communication-uri} (default: @code{\"http://0.0.0.0:8745\"})"
  47280. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47281. #. type: table
  47282. #: guix-git/doc/guix.texi:31697
  47283. msgid "The URI describing how to listen to requests from agent processes."
  47284. msgstr ""
  47285. #. type: item
  47286. #: guix-git/doc/guix.texi:31698
  47287. #, fuzzy, no-wrap
  47288. msgid "@code{client-communication-uri} (default: @code{\"http://127.0.0.1:8746\"})"
  47289. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47290. #. type: table
  47291. #: guix-git/doc/guix.texi:31702
  47292. msgid "The URI describing how to listen to requests from clients. The client API allows submitting builds and currently isn't authenticated, so take care when configuring this value."
  47293. msgstr ""
  47294. #. type: item
  47295. #: guix-git/doc/guix.texi:31703
  47296. #, no-wrap
  47297. msgid "@code{allocation-strategy} (default: @code{#~basic-build-allocation-strategy})"
  47298. msgstr ""
  47299. #. type: table
  47300. #: guix-git/doc/guix.texi:31707
  47301. msgid "A G-expression for the allocation strategy to be used. This is a procedure that takes the datastore as an argument and populates the allocation plan in the database."
  47302. msgstr ""
  47303. #. type: item
  47304. #: guix-git/doc/guix.texi:31708
  47305. #, fuzzy, no-wrap
  47306. msgid "@code{hooks} (default: @var{'()})"
  47307. msgstr "@code{features} (@code{'()})"
  47308. #. type: table
  47309. #: guix-git/doc/guix.texi:31711
  47310. msgid "An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed."
  47311. msgstr ""
  47312. #. type: item
  47313. #: guix-git/doc/guix.texi:31712
  47314. #, fuzzy, no-wrap
  47315. msgid "@code{guile} (default: @code{guile-3.0-latest})"
  47316. msgstr "@code{mate}(默认值:@code{mate})"
  47317. #. type: table
  47318. #: guix-git/doc/guix.texi:31714
  47319. msgid "The Guile package with which to run the Guix Build Coordinator."
  47320. msgstr ""
  47321. #. type: defvar
  47322. #: guix-git/doc/guix.texi:31718
  47323. #, no-wrap
  47324. msgid "{Scheme Variable} guix-build-coordinator-agent-service-type"
  47325. msgstr ""
  47326. #. type: defvar
  47327. #: guix-git/doc/guix.texi:31721
  47328. msgid "Service type for a Guix Build Coordinator agent. Its value must be a @code{guix-build-coordinator-agent-configuration} object."
  47329. msgstr ""
  47330. #. type: deftp
  47331. #: guix-git/doc/guix.texi:31723
  47332. #, no-wrap
  47333. msgid "{Data Type} guix-build-coordinator-agent-configuration"
  47334. msgstr ""
  47335. #. type: deftp
  47336. #: guix-git/doc/guix.texi:31725
  47337. msgid "Data type representing the configuration a Guix Build Coordinator agent."
  47338. msgstr ""
  47339. #. type: item
  47340. #: guix-git/doc/guix.texi:31730
  47341. #, fuzzy, no-wrap
  47342. msgid "@code{user} (default: @code{\"guix-build-coordinator-agent\"})"
  47343. msgstr "@code{gnome}(默认值:@code{gnome})"
  47344. #. type: item
  47345. #: guix-git/doc/guix.texi:31733
  47346. #, fuzzy, no-wrap
  47347. msgid "@code{coordinator} (default: @code{\"http://localhost:8745\"})"
  47348. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  47349. #. type: table
  47350. #: guix-git/doc/guix.texi:31735 guix-git/doc/guix.texi:31861
  47351. msgid "The URI to use when connecting to the coordinator."
  47352. msgstr ""
  47353. #. type: code{#1}
  47354. #: guix-git/doc/guix.texi:31736
  47355. #, fuzzy, no-wrap
  47356. msgid "authentication"
  47357. msgstr "验证substitute"
  47358. #. type: table
  47359. #: guix-git/doc/guix.texi:31739
  47360. msgid "Record describing how this agent should authenticate with the coordinator. Possible record types are described below."
  47361. msgstr ""
  47362. #. type: item
  47363. #: guix-git/doc/guix.texi:31740 guix-git/doc/guix.texi:31862
  47364. #, fuzzy, no-wrap
  47365. msgid "@code{systems} (default: @code{#f})"
  47366. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47367. #. type: table
  47368. #: guix-git/doc/guix.texi:31743
  47369. msgid "The systems for which this agent should fetch builds. The agent process will use the current system it's running on as the default."
  47370. msgstr ""
  47371. #. type: item
  47372. #: guix-git/doc/guix.texi:31744
  47373. #, fuzzy, no-wrap
  47374. msgid "@code{max-parallel-builds} (default: @code{1})"
  47375. msgstr "@code{parallel-builds}(默认值:@code{1})"
  47376. #. type: table
  47377. #: guix-git/doc/guix.texi:31746
  47378. #, fuzzy
  47379. msgid "The number of builds to perform in parallel."
  47380. msgstr "那台机器上可以并行运行的构建任务数量。"
  47381. #. type: item
  47382. #: guix-git/doc/guix.texi:31747
  47383. #, fuzzy, no-wrap
  47384. #| msgid "@code{max-journal-usage} (default: @code{#f})"
  47385. msgid "@code{max-1min-load-average} (default: @code{#f})"
  47386. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  47387. #. type: table
  47388. #: guix-git/doc/guix.texi:31751
  47389. msgid "Load average value to look at when considering starting new builds, if the 1 minute load average exceeds this value, the agent will wait before starting new builds."
  47390. msgstr ""
  47391. #. type: table
  47392. #: guix-git/doc/guix.texi:31755
  47393. msgid "This will be unspecified if the value is @code{#f}, and the agent will use the number of cores reported by the system as the max 1 minute load average."
  47394. msgstr ""
  47395. #. type: item
  47396. #: guix-git/doc/guix.texi:31756
  47397. #, fuzzy, no-wrap
  47398. msgid "@code{derivation-substitute-urls} (default: @code{#f})"
  47399. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47400. #. type: table
  47401. #: guix-git/doc/guix.texi:31759
  47402. msgid "URLs from which to attempt to fetch substitutes for derivations, if the derivations aren't already available."
  47403. msgstr ""
  47404. #. type: item
  47405. #: guix-git/doc/guix.texi:31760
  47406. #, fuzzy, no-wrap
  47407. msgid "@code{non-derivation-substitute-urls} (default: @code{#f})"
  47408. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  47409. #. type: table
  47410. #: guix-git/doc/guix.texi:31763
  47411. msgid "URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren't already available."
  47412. msgstr ""
  47413. #. type: deftp
  47414. #: guix-git/doc/guix.texi:31767
  47415. #, fuzzy, no-wrap
  47416. msgid "{Data Type} guix-build-coordinator-agent-password-auth"
  47417. msgstr "{数据类型} build-machine"
  47418. #. type: deftp
  47419. #: guix-git/doc/guix.texi:31770
  47420. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password."
  47421. msgstr ""
  47422. #. type: table
  47423. #: guix-git/doc/guix.texi:31776 guix-git/doc/guix.texi:31792
  47424. msgid "The UUID of the agent. This should be generated by the coordinator process, stored in the coordinator database, and used by the intended agent."
  47425. msgstr ""
  47426. #. type: table
  47427. #: guix-git/doc/guix.texi:31779
  47428. msgid "The password to use when connecting to the coordinator."
  47429. msgstr ""
  47430. #. type: deftp
  47431. #: guix-git/doc/guix.texi:31783
  47432. #, fuzzy, no-wrap
  47433. msgid "{Data Type} guix-build-coordinator-agent-password-file-auth"
  47434. msgstr "{数据类型} build-machine"
  47435. #. type: deftp
  47436. #: guix-git/doc/guix.texi:31786
  47437. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password read from a file."
  47438. msgstr ""
  47439. #. type: code{#1}
  47440. #: guix-git/doc/guix.texi:31793
  47441. #, no-wrap
  47442. msgid "password-file"
  47443. msgstr ""
  47444. #. type: table
  47445. #: guix-git/doc/guix.texi:31796
  47446. msgid "A file containing the password to use when connecting to the coordinator."
  47447. msgstr ""
  47448. #. type: deftp
  47449. #: guix-git/doc/guix.texi:31800
  47450. #, fuzzy, no-wrap
  47451. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth"
  47452. msgstr "{数据类型} build-machine"
  47453. #. type: deftp
  47454. #: guix-git/doc/guix.texi:31803
  47455. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token and agent name."
  47456. msgstr ""
  47457. #. type: code{#1}
  47458. #: guix-git/doc/guix.texi:31805 guix-git/doc/guix.texi:31822
  47459. #, fuzzy, no-wrap
  47460. msgid "agent-name"
  47461. msgstr "通道"
  47462. #. type: table
  47463. #: guix-git/doc/guix.texi:31809 guix-git/doc/guix.texi:31826
  47464. msgid "Name of an agent, this is used to match up to an existing entry in the database if there is one. When no existing entry is found, a new entry is automatically added."
  47465. msgstr ""
  47466. #. type: code{#1}
  47467. #: guix-git/doc/guix.texi:31810
  47468. #, no-wrap
  47469. msgid "token"
  47470. msgstr ""
  47471. #. type: table
  47472. #: guix-git/doc/guix.texi:31813
  47473. msgid "Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  47474. msgstr ""
  47475. #. type: deftp
  47476. #: guix-git/doc/guix.texi:31817
  47477. #, fuzzy, no-wrap
  47478. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth-with-file"
  47479. msgstr "{数据类型} build-machine"
  47480. #. type: deftp
  47481. #: guix-git/doc/guix.texi:31820
  47482. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token read from a file and agent name."
  47483. msgstr ""
  47484. #. type: code{#1}
  47485. #: guix-git/doc/guix.texi:31827
  47486. #, no-wrap
  47487. msgid "token-file"
  47488. msgstr ""
  47489. #. type: table
  47490. #: guix-git/doc/guix.texi:31830
  47491. msgid "File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  47492. msgstr ""
  47493. #. type: Plain text
  47494. #: guix-git/doc/guix.texi:31840
  47495. msgid "The Guix Build Coordinator package contains a script to query an instance of the Guix Data Service for derivations to build, and then submit builds for those derivations to the coordinator. The service type below assists in running this script. This is an additional tool that may be useful when building derivations contained within an instance of the Guix Data Service."
  47496. msgstr ""
  47497. #. type: defvar
  47498. #: guix-git/doc/guix.texi:31841
  47499. #, no-wrap
  47500. msgid "{Scheme Variable} guix-build-coordinator-queue-builds-service-type"
  47501. msgstr ""
  47502. #. type: defvar
  47503. #: guix-git/doc/guix.texi:31846
  47504. msgid "Service type for the guix-build-coordinator-queue-builds-from-guix-data-service script. Its value must be a @code{guix-build-coordinator-queue-builds-configuration} object."
  47505. msgstr ""
  47506. #. type: deftp
  47507. #: guix-git/doc/guix.texi:31848
  47508. #, no-wrap
  47509. msgid "{Data Type} guix-build-coordinator-queue-builds-configuration"
  47510. msgstr ""
  47511. #. type: deftp
  47512. #: guix-git/doc/guix.texi:31851
  47513. msgid "Data type representing the options to the queue builds from guix data service script."
  47514. msgstr ""
  47515. #. type: item
  47516. #: guix-git/doc/guix.texi:31856
  47517. #, fuzzy, no-wrap
  47518. msgid "@code{user} (default: @code{\"guix-build-coordinator-queue-builds\"})"
  47519. msgstr "@code{gnome}(默认值:@code{gnome})"
  47520. #. type: item
  47521. #: guix-git/doc/guix.texi:31859
  47522. #, fuzzy, no-wrap
  47523. msgid "@code{coordinator} (default: @code{\"http://localhost:8746\"})"
  47524. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  47525. #. type: table
  47526. #: guix-git/doc/guix.texi:31864
  47527. msgid "The systems for which to fetch derivations to build."
  47528. msgstr ""
  47529. #. type: item
  47530. #: guix-git/doc/guix.texi:31865
  47531. #, fuzzy, no-wrap
  47532. msgid "@code{systems-and-targets} (default: @code{#f})"
  47533. msgstr "@code{challenge}(默认值:@code{#f})"
  47534. #. type: table
  47535. #: guix-git/doc/guix.texi:31868
  47536. msgid "An association list of system and target pairs for which to fetch derivations to build."
  47537. msgstr ""
  47538. #. type: item
  47539. #: guix-git/doc/guix.texi:31869
  47540. #, no-wrap
  47541. msgid "@code{guix-data-service} (default: @code{\"https://data.guix.gnu.org\"})"
  47542. msgstr ""
  47543. #. type: table
  47544. #: guix-git/doc/guix.texi:31872
  47545. msgid "The Guix Data Service instance from which to query to find out about derivations to build."
  47546. msgstr ""
  47547. #. type: item
  47548. #: guix-git/doc/guix.texi:31873
  47549. #, no-wrap
  47550. msgid "@code{processed-commits-file} (default: @code{\"/var/cache/guix-build-coordinator-queue-builds/processed-commits\"})"
  47551. msgstr ""
  47552. #. type: table
  47553. #: guix-git/doc/guix.texi:31876
  47554. msgid "A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted."
  47555. msgstr ""
  47556. #. type: subsubheading
  47557. #: guix-git/doc/guix.texi:31880
  47558. #, fuzzy, no-wrap
  47559. msgid "Guix Data Service"
  47560. msgstr "数据库服务"
  47561. #. type: Plain text
  47562. #: guix-git/doc/guix.texi:31884
  47563. msgid "The @uref{http://data.guix.gnu.org,Guix Data Service} processes, stores and provides data about GNU Guix. This includes information about packages, derivations and lint warnings."
  47564. msgstr ""
  47565. #. type: Plain text
  47566. #: guix-git/doc/guix.texi:31887
  47567. msgid "The data is stored in a PostgreSQL database, and available through a web interface."
  47568. msgstr ""
  47569. #. type: defvar
  47570. #: guix-git/doc/guix.texi:31888
  47571. #, no-wrap
  47572. msgid "{Scheme Variable} guix-data-service-type"
  47573. msgstr ""
  47574. #. type: defvar
  47575. #: guix-git/doc/guix.texi:31893
  47576. msgid "Service type for the Guix Data Service. Its value must be a @code{guix-data-service-configuration} object. The service optionally extends the getmail service, as the guix-commits mailing list is used to find out about changes in the Guix git repository."
  47577. msgstr ""
  47578. #. type: deftp
  47579. #: guix-git/doc/guix.texi:31895
  47580. #, no-wrap
  47581. msgid "{Data Type} guix-data-service-configuration"
  47582. msgstr ""
  47583. #. type: deftp
  47584. #: guix-git/doc/guix.texi:31897
  47585. msgid "Data type representing the configuration of the Guix Data Service."
  47586. msgstr ""
  47587. #. type: item
  47588. #: guix-git/doc/guix.texi:31899
  47589. #, fuzzy, no-wrap
  47590. msgid "@code{package} (default: @code{guix-data-service})"
  47591. msgstr "@code{xfce}(默认值:@code{xfce})"
  47592. #. type: table
  47593. #: guix-git/doc/guix.texi:31901
  47594. msgid "The Guix Data Service package to use."
  47595. msgstr ""
  47596. #. type: item
  47597. #: guix-git/doc/guix.texi:31902
  47598. #, fuzzy, no-wrap
  47599. msgid "@code{user} (default: @code{\"guix-data-service\"})"
  47600. msgstr "@code{xfce}(默认值:@code{xfce})"
  47601. #. type: item
  47602. #: guix-git/doc/guix.texi:31905
  47603. #, fuzzy, no-wrap
  47604. msgid "@code{group} (default: @code{\"guix-data-service\"})"
  47605. msgstr "@code{gnome}(默认值:@code{gnome})"
  47606. #. type: item
  47607. #: guix-git/doc/guix.texi:31908
  47608. #, fuzzy, no-wrap
  47609. msgid "@code{port} (default: @code{8765})"
  47610. msgstr "@code{port}(默认值:@code{22})"
  47611. #. type: table
  47612. #: guix-git/doc/guix.texi:31910
  47613. #, fuzzy
  47614. msgid "The port to bind the web service to."
  47615. msgstr "rottlog服务。"
  47616. #. type: item
  47617. #: guix-git/doc/guix.texi:31911
  47618. #, fuzzy, no-wrap
  47619. msgid "@code{host} (default: @code{\"127.0.0.1\"})"
  47620. msgstr "@code{speed}(默认值:@code{1.0})"
  47621. #. type: table
  47622. #: guix-git/doc/guix.texi:31913
  47623. #, fuzzy
  47624. msgid "The host to bind the web service to."
  47625. msgstr "rottlog服务。"
  47626. #. type: item
  47627. #: guix-git/doc/guix.texi:31914
  47628. #, fuzzy, no-wrap
  47629. msgid "@code{getmail-idle-mailboxes} (default: @code{#f})"
  47630. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  47631. #. type: table
  47632. #: guix-git/doc/guix.texi:31917
  47633. msgid "If set, this is the list of mailboxes that the getmail service will be configured to listen to."
  47634. msgstr ""
  47635. #. type: item
  47636. #: guix-git/doc/guix.texi:31918
  47637. #, fuzzy, no-wrap
  47638. msgid "@code{commits-getmail-retriever-configuration} (default: @code{#f})"
  47639. msgstr "@code{journal-content}(默认值:@code{#f})"
  47640. #. type: table
  47641. #: guix-git/doc/guix.texi:31922
  47642. msgid "If set, this is the @code{getmail-retriever-configuration} object with which to configure getmail to fetch mail from the guix-commits mailing list."
  47643. msgstr ""
  47644. #. type: item
  47645. #: guix-git/doc/guix.texi:31923
  47646. #, no-wrap
  47647. msgid "@code{extra-options} (default: @var{'()})"
  47648. msgstr ""
  47649. #. type: table
  47650. #: guix-git/doc/guix.texi:31925
  47651. msgid "Extra command line options for @code{guix-data-service}."
  47652. msgstr ""
  47653. #. type: item
  47654. #: guix-git/doc/guix.texi:31926
  47655. #, fuzzy, no-wrap
  47656. msgid "@code{extra-process-jobs-options} (default: @var{'()})"
  47657. msgstr "@code{features} (@code{'()})"
  47658. #. type: table
  47659. #: guix-git/doc/guix.texi:31928
  47660. msgid "Extra command line options for @code{guix-data-service-process-jobs}."
  47661. msgstr ""
  47662. #. type: cindex
  47663. #: guix-git/doc/guix.texi:31935
  47664. #, no-wrap
  47665. msgid "oom"
  47666. msgstr ""
  47667. #. type: cindex
  47668. #: guix-git/doc/guix.texi:31936
  47669. #, no-wrap
  47670. msgid "out of memory killer"
  47671. msgstr ""
  47672. #. type: cindex
  47673. #: guix-git/doc/guix.texi:31937
  47674. #, no-wrap
  47675. msgid "earlyoom"
  47676. msgstr ""
  47677. #. type: cindex
  47678. #: guix-git/doc/guix.texi:31938
  47679. #, no-wrap
  47680. msgid "early out of memory daemon"
  47681. msgstr ""
  47682. #. type: subsubheading
  47683. #: guix-git/doc/guix.texi:31939
  47684. #, fuzzy, no-wrap
  47685. msgid "Early OOM Service"
  47686. msgstr "邮件服务"
  47687. #. type: Plain text
  47688. #: guix-git/doc/guix.texi:31946
  47689. msgid "@uref{https://github.com/rfjakob/earlyoom,Early OOM}, also known as Earlyoom, is a minimalist out of memory (OOM) daemon that runs in user space and provides a more responsive and configurable alternative to the in-kernel OOM killer. It is useful to prevent the system from becoming unresponsive when it runs out of memory."
  47690. msgstr ""
  47691. #. type: deffn
  47692. #: guix-git/doc/guix.texi:31947
  47693. #, no-wrap
  47694. msgid "{Scheme Variable} earlyoom-service-type"
  47695. msgstr ""
  47696. #. type: deffn
  47697. #: guix-git/doc/guix.texi:31952
  47698. msgid "The service type for running @command{earlyoom}, the Early OOM daemon. Its value must be a @code{earlyoom-configuration} object, described below. The service can be instantiated in its default configuration with:"
  47699. msgstr ""
  47700. #. type: lisp
  47701. #: guix-git/doc/guix.texi:31955
  47702. #, no-wrap
  47703. msgid "(service earlyoom-service-type)\n"
  47704. msgstr ""
  47705. #. type: deftp
  47706. #: guix-git/doc/guix.texi:31958
  47707. #, no-wrap
  47708. msgid "{Data Type} earlyoom-configuration"
  47709. msgstr ""
  47710. #. type: deftp
  47711. #: guix-git/doc/guix.texi:31960
  47712. msgid "This is the configuration record for the @code{earlyoom-service-type}."
  47713. msgstr ""
  47714. #. type: item
  47715. #: guix-git/doc/guix.texi:31962
  47716. #, fuzzy, no-wrap
  47717. msgid "@code{earlyoom} (default: @var{earlyoom})"
  47718. msgstr "@code{gnome}(默认值:@code{gnome})"
  47719. #. type: table
  47720. #: guix-git/doc/guix.texi:31964
  47721. #, fuzzy
  47722. msgid "The Earlyoom package to use."
  47723. msgstr "软件包数据类型。"
  47724. #. type: item
  47725. #: guix-git/doc/guix.texi:31965
  47726. #, fuzzy, no-wrap
  47727. msgid "@code{minimum-available-memory} (default: @code{10})"
  47728. msgstr "@code{parallel-builds}(默认值:@code{1})"
  47729. #. type: table
  47730. #: guix-git/doc/guix.texi:31967
  47731. msgid "The threshold for the minimum @emph{available} memory, in percentages."
  47732. msgstr ""
  47733. #. type: item
  47734. #: guix-git/doc/guix.texi:31968
  47735. #, fuzzy, no-wrap
  47736. msgid "@code{minimum-free-swap} (default: @code{10})"
  47737. msgstr "@code{speed}(默认值:@code{1.0})"
  47738. #. type: table
  47739. #: guix-git/doc/guix.texi:31970
  47740. msgid "The threshold for the minimum free swap memory, in percentages."
  47741. msgstr ""
  47742. #. type: item
  47743. #: guix-git/doc/guix.texi:31971
  47744. #, fuzzy, no-wrap
  47745. msgid "@code{prefer-regexp} (default: @code{#f})"
  47746. msgstr "@code{challenge}(默认值:@code{#f})"
  47747. #. type: table
  47748. #: guix-git/doc/guix.texi:31974
  47749. msgid "A regular expression (as a string) to match the names of the processes that should be preferably killed."
  47750. msgstr ""
  47751. #. type: item
  47752. #: guix-git/doc/guix.texi:31975
  47753. #, fuzzy, no-wrap
  47754. msgid "@code{avoid-regexp} (default: @code{#f})"
  47755. msgstr "@code{challenge}(默认值:@code{#f})"
  47756. #. type: table
  47757. #: guix-git/doc/guix.texi:31978
  47758. msgid "A regular expression (as a string) to match the names of the processes that should @emph{not} be killed."
  47759. msgstr ""
  47760. #. type: item
  47761. #: guix-git/doc/guix.texi:31979
  47762. #, fuzzy, no-wrap
  47763. msgid "@code{memory-report-interval} (default: @code{0})"
  47764. msgstr "@code{port}(默认值:@code{22})"
  47765. #. type: table
  47766. #: guix-git/doc/guix.texi:31982
  47767. msgid "The interval in seconds at which a memory report is printed. It is disabled by default."
  47768. msgstr ""
  47769. #. type: item
  47770. #: guix-git/doc/guix.texi:31983
  47771. #, fuzzy, no-wrap
  47772. msgid "@code{ignore-positive-oom-score-adj?} (default: @code{#f})"
  47773. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  47774. #. type: table
  47775. #: guix-git/doc/guix.texi:31986
  47776. msgid "A boolean indicating whether the positive adjustments set in @file{/proc/*/oom_score_adj} should be ignored."
  47777. msgstr ""
  47778. #. type: item
  47779. #: guix-git/doc/guix.texi:31987
  47780. #, fuzzy, no-wrap
  47781. msgid "@code{show-debug-messages?} (default: @code{#f})"
  47782. msgstr "@code{challenge}(默认值:@code{#f})"
  47783. #. type: table
  47784. #: guix-git/doc/guix.texi:31990
  47785. msgid "A boolean indicating whether debug messages should be printed. The logs are saved at @file{/var/log/earlyoom.log}."
  47786. msgstr ""
  47787. #. type: item
  47788. #: guix-git/doc/guix.texi:31991
  47789. #, fuzzy, no-wrap
  47790. msgid "@code{send-notification-command} (default: @code{#f})"
  47791. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47792. #. type: table
  47793. #: guix-git/doc/guix.texi:31994
  47794. msgid "This can be used to provide a custom command used for sending notifications."
  47795. msgstr ""
  47796. #. type: cindex
  47797. #: guix-git/doc/guix.texi:31997
  47798. #, no-wrap
  47799. msgid "modprobe"
  47800. msgstr ""
  47801. #. type: cindex
  47802. #: guix-git/doc/guix.texi:31998
  47803. #, no-wrap
  47804. msgid "kernel module loader"
  47805. msgstr ""
  47806. #. type: subsubheading
  47807. #: guix-git/doc/guix.texi:31999
  47808. #, no-wrap
  47809. msgid "Kernel Module Loader Service"
  47810. msgstr ""
  47811. #. type: Plain text
  47812. #: guix-git/doc/guix.texi:32005
  47813. msgid "The kernel module loader service allows one to load loadable kernel modules at boot. This is especially useful for modules that don't autoload and need to be manually loaded, as is the case with @code{ddcci}."
  47814. msgstr ""
  47815. #. type: deffn
  47816. #: guix-git/doc/guix.texi:32006
  47817. #, no-wrap
  47818. msgid "{Scheme Variable} kernel-module-loader-service-type"
  47819. msgstr ""
  47820. #. type: deffn
  47821. #: guix-git/doc/guix.texi:32012
  47822. msgid "The service type for loading loadable kernel modules at boot with @command{modprobe}. Its value must be a list of strings representing module names. For example loading the drivers provided by @code{ddcci-driver-linux}, in debugging mode by passing some module parameters, can be done as follow:"
  47823. msgstr ""
  47824. #. type: lisp
  47825. #: guix-git/doc/guix.texi:32017
  47826. #, no-wrap
  47827. msgid ""
  47828. "(use-modules (gnu) (gnu services))\n"
  47829. "(use-package-modules linux)\n"
  47830. "(use-service-modules linux)\n"
  47831. "\n"
  47832. msgstr ""
  47833. #. type: lisp
  47834. #: guix-git/doc/guix.texi:32021
  47835. #, no-wrap
  47836. msgid ""
  47837. "(define ddcci-config\n"
  47838. " (plain-file \"ddcci.conf\"\n"
  47839. " \"options ddcci dyndbg delay=120\"))\n"
  47840. "\n"
  47841. msgstr ""
  47842. #. type: lisp
  47843. #: guix-git/doc/guix.texi:32031
  47844. #, no-wrap
  47845. msgid ""
  47846. "(operating-system\n"
  47847. " ...\n"
  47848. " (services (cons* (service kernel-module-loader-service-type\n"
  47849. " '(\"ddcci\" \"ddcci_backlight\"))\n"
  47850. " (simple-service 'ddcci-config etc-service-type\n"
  47851. " (list `(\"modprobe.d/ddcci.conf\"\n"
  47852. " ,ddcci-config)))\n"
  47853. " %base-services))\n"
  47854. " (kernel-loadable-modules (list ddcci-driver-linux)))\n"
  47855. msgstr ""
  47856. #. type: cindex
  47857. #: guix-git/doc/guix.texi:32034
  47858. #, fuzzy, no-wrap
  47859. #| msgid "daemon"
  47860. msgid "rasdaemon"
  47861. msgstr "后台进程"
  47862. #. type: cindex
  47863. #: guix-git/doc/guix.texi:32035
  47864. #, no-wrap
  47865. msgid "Platform Reliability, Availability and Serviceability daemon"
  47866. msgstr ""
  47867. #. type: subsubheading
  47868. #: guix-git/doc/guix.texi:32036
  47869. #, fuzzy, no-wrap
  47870. msgid "Rasdaemon Service"
  47871. msgstr "邮件服务"
  47872. #. type: Plain text
  47873. #: guix-git/doc/guix.texi:32041
  47874. msgid "The Rasdaemon service provides a daemon which monitors platform @acronym{RAS, Reliability@comma{} Availability@comma{} and Serviceability} reports from Linux kernel trace events, logging them to syslogd."
  47875. msgstr ""
  47876. #. type: Plain text
  47877. #: guix-git/doc/guix.texi:32044
  47878. msgid "Reliability, Availability and Serviceability is a concept used on servers meant to measure their robustness."
  47879. msgstr ""
  47880. #. type: Plain text
  47881. #: guix-git/doc/guix.texi:32047
  47882. msgid "@strong{Relability} is the probability that a system will produce correct outputs:"
  47883. msgstr ""
  47884. #. type: item
  47885. #: guix-git/doc/guix.texi:32049
  47886. #, no-wrap
  47887. msgid "Generally measured as Mean Time Between Failures (MTBF), and"
  47888. msgstr ""
  47889. #. type: item
  47890. #: guix-git/doc/guix.texi:32050
  47891. #, no-wrap
  47892. msgid "Enhanced by features that help to avoid, detect and repair hardware"
  47893. msgstr ""
  47894. #. type: itemize
  47895. #: guix-git/doc/guix.texi:32052
  47896. msgid "faults"
  47897. msgstr ""
  47898. #. type: Plain text
  47899. #: guix-git/doc/guix.texi:32056
  47900. msgid "@strong{Availability} is the probability that a system is operational at a given time:"
  47901. msgstr ""
  47902. #. type: item
  47903. #: guix-git/doc/guix.texi:32058
  47904. #, no-wrap
  47905. msgid "Generally measured as a percentage of downtime per a period of time, and"
  47906. msgstr ""
  47907. #. type: item
  47908. #: guix-git/doc/guix.texi:32059
  47909. #, no-wrap
  47910. msgid "Often uses mechanisms to detect and correct hardware faults in runtime."
  47911. msgstr ""
  47912. #. type: Plain text
  47913. #: guix-git/doc/guix.texi:32064
  47914. msgid "@strong{Serviceability} is the simplicity and speed with which a system can be repaired or maintained:"
  47915. msgstr ""
  47916. #. type: item
  47917. #: guix-git/doc/guix.texi:32066
  47918. #, no-wrap
  47919. msgid "Generally measured on Mean Time Between Repair (MTBR)."
  47920. msgstr ""
  47921. #. type: Plain text
  47922. #: guix-git/doc/guix.texi:32071
  47923. msgid "Among the monitoring measures, the most usual ones include:"
  47924. msgstr ""
  47925. #. type: item
  47926. #: guix-git/doc/guix.texi:32073
  47927. #, no-wrap
  47928. msgid "CPU – detect errors at instruction execution and at L1/L2/L3 caches;"
  47929. msgstr ""
  47930. #. type: item
  47931. #: guix-git/doc/guix.texi:32074
  47932. #, no-wrap
  47933. msgid "Memory – add error correction logic (ECC) to detect and correct errors;"
  47934. msgstr ""
  47935. #. type: item
  47936. #: guix-git/doc/guix.texi:32075
  47937. #, no-wrap
  47938. msgid "I/O – add CRC checksums for transferred data;"
  47939. msgstr ""
  47940. #. type: item
  47941. #: guix-git/doc/guix.texi:32076
  47942. #, no-wrap
  47943. msgid "Storage – RAID, journal file systems, checksums, Self-Monitoring,"
  47944. msgstr ""
  47945. #. type: itemize
  47946. #: guix-git/doc/guix.texi:32078
  47947. msgid "Analysis and Reporting Technology (SMART)."
  47948. msgstr ""
  47949. #. type: Plain text
  47950. #: guix-git/doc/guix.texi:32084
  47951. msgid "By monitoring the number of occurrences of error detections, it is possible to identify if the probability of hardware errors is increasing, and, on such case, do a preventive maintenance to replace a degraded component while those errors are correctable."
  47952. msgstr ""
  47953. #. type: Plain text
  47954. #: guix-git/doc/guix.texi:32088
  47955. msgid "For detailed information about the types of error events gathered and how to make sense of them, see the kernel administrator's guide at @url{https://www.kernel.org/doc/html/latest/admin-guide/ras.html}."
  47956. msgstr ""
  47957. #. type: defvr
  47958. #: guix-git/doc/guix.texi:32089
  47959. #, no-wrap
  47960. msgid "{Scheme Variable} rasdaemon-service-type"
  47961. msgstr ""
  47962. #. type: defvr
  47963. #: guix-git/doc/guix.texi:32092
  47964. msgid "Service type for the @command{rasdaemon} service. It accepts a @code{rasdaemon-configuration} object. Instantiating like"
  47965. msgstr ""
  47966. #. type: lisp
  47967. #: guix-git/doc/guix.texi:32095
  47968. #, no-wrap
  47969. msgid "(service rasdaemon-service-type)\n"
  47970. msgstr ""
  47971. #. type: defvr
  47972. #: guix-git/doc/guix.texi:32099
  47973. msgid "will load with a default configuration, which monitors all events and logs to syslogd."
  47974. msgstr ""
  47975. #. type: deftp
  47976. #: guix-git/doc/guix.texi:32101
  47977. #, fuzzy, no-wrap
  47978. msgid "{Data Type} rasdaemon-configuration"
  47979. msgstr "{数据类型} build-machine"
  47980. #. type: deftp
  47981. #: guix-git/doc/guix.texi:32103
  47982. #, fuzzy
  47983. msgid "The data type representing the configuration of @command{rasdaemon}."
  47984. msgstr "管理操作系统配置。"
  47985. #. type: item
  47986. #: guix-git/doc/guix.texi:32105
  47987. #, fuzzy, no-wrap
  47988. msgid "@code{record?} (default: @code{#f})"
  47989. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  47990. #. type: table
  47991. #: guix-git/doc/guix.texi:32110
  47992. msgid "A boolean indicating whether to record the events in an SQLite database. This provides a more structured access to the information contained in the log file. The database location is hard-coded to @file{/var/lib/rasdaemon/ras-mc_event.db}."
  47993. msgstr ""
  47994. #. type: cindex
  47995. #: guix-git/doc/guix.texi:32114
  47996. #, no-wrap
  47997. msgid "zram"
  47998. msgstr ""
  47999. #. type: cindex
  48000. #: guix-git/doc/guix.texi:32115
  48001. #, no-wrap
  48002. msgid "compressed swap"
  48003. msgstr ""
  48004. #. type: cindex
  48005. #: guix-git/doc/guix.texi:32116
  48006. #, no-wrap
  48007. msgid "Compressed RAM-based block devices"
  48008. msgstr ""
  48009. #. type: subsubheading
  48010. #: guix-git/doc/guix.texi:32117
  48011. #, fuzzy, no-wrap
  48012. msgid "Zram Device Service"
  48013. msgstr "游戏服务"
  48014. #. type: Plain text
  48015. #: guix-git/doc/guix.texi:32123
  48016. msgid "The Zram device service provides a compressed swap device in system memory. The Linux Kernel documentation has more information about @uref{https://www.kernel.org/doc/html/latest/admin-guide/blockdev/zram.html,zram} devices."
  48017. msgstr ""
  48018. #. type: deffn
  48019. #: guix-git/doc/guix.texi:32124
  48020. #, no-wrap
  48021. msgid "{Scheme Variable} zram-device-service-type"
  48022. msgstr ""
  48023. #. type: deffn
  48024. #: guix-git/doc/guix.texi:32128
  48025. msgid "This service creates the zram block device, formats it as swap and enables it as a swap device. The service's value is a @code{zram-device-configuration} record."
  48026. msgstr ""
  48027. #. type: deftp
  48028. #: guix-git/doc/guix.texi:32129
  48029. #, no-wrap
  48030. msgid "{Data Type} zram-device-configuration"
  48031. msgstr ""
  48032. #. type: deftp
  48033. #: guix-git/doc/guix.texi:32132
  48034. msgid "This is the data type representing the configuration for the zram-device service."
  48035. msgstr ""
  48036. #. type: item
  48037. #: guix-git/doc/guix.texi:32134
  48038. #, fuzzy, no-wrap
  48039. msgid "@code{size} (default @code{\"1G\"})"
  48040. msgstr "@code{speed}(默认值:@code{1.0})"
  48041. #. type: table
  48042. #: guix-git/doc/guix.texi:32138
  48043. msgid "This is the amount of space you wish to provide for the zram device. It accepts a string and can be a number of bytes or use a suffix, eg.: @code{\"512M\"} or @code{1024000}."
  48044. msgstr ""
  48045. #. type: item
  48046. #: guix-git/doc/guix.texi:32138
  48047. #, fuzzy, no-wrap
  48048. msgid "@code{compression-algorithm} (default @code{'lzo})"
  48049. msgstr "@code{compression-level}(默认值:@code{3})"
  48050. #. type: table
  48051. #: guix-git/doc/guix.texi:32142
  48052. msgid "This is the compression algorithm you wish to use. It is difficult to list all the possible compression options, but common ones supported by Guix's Linux Libre Kernel include @code{'lzo}, @code{'lz4} and @code{'zstd}."
  48053. msgstr ""
  48054. #. type: item
  48055. #: guix-git/doc/guix.texi:32142
  48056. #, fuzzy, no-wrap
  48057. msgid "@code{memory-limit} (default @code{0})"
  48058. msgstr "@code{port}(默认值:@code{22})"
  48059. #. type: table
  48060. #: guix-git/doc/guix.texi:32149
  48061. msgid "This is the maximum amount of memory which the zram device can use. Setting it to '0' disables the limit. While it is generally expected that compression will be 2:1, it is possible that uncompressable data can be written to swap and this is a method to limit how much memory can be used. It accepts a string and can be a number of bytes or use a suffix, eg.: @code{\"2G\"}."
  48062. msgstr ""
  48063. #. type: item
  48064. #: guix-git/doc/guix.texi:32149
  48065. #, fuzzy, no-wrap
  48066. msgid "@code{priority} (default @code{-1})"
  48067. msgstr "@code{port}(默认值:@code{22})"
  48068. #. type: table
  48069. #: guix-git/doc/guix.texi:32154
  48070. msgid "This is the priority of the swap device created from the zram device. @code{swapon} accepts values between -1 and 32767, with higher values indicating higher priority. Higher priority swap will generally be used first."
  48071. msgstr ""
  48072. #. type: defvr
  48073. #: guix-git/doc/guix.texi:32162
  48074. #, no-wrap
  48075. msgid "{Scheme Variable} hurd-console-service-type"
  48076. msgstr ""
  48077. #. type: defvr
  48078. #: guix-git/doc/guix.texi:32164
  48079. msgid "This service starts the fancy @code{VGA} console client on the Hurd."
  48080. msgstr ""
  48081. #. type: defvr
  48082. #: guix-git/doc/guix.texi:32166
  48083. msgid "The service's value is a @code{hurd-console-configuration} record."
  48084. msgstr ""
  48085. #. type: deftp
  48086. #: guix-git/doc/guix.texi:32168
  48087. #, no-wrap
  48088. msgid "{Data Type} hurd-console-configuration"
  48089. msgstr ""
  48090. #. type: deftp
  48091. #: guix-git/doc/guix.texi:32171
  48092. msgid "This is the data type representing the configuration for the hurd-console-service."
  48093. msgstr ""
  48094. #. type: item
  48095. #: guix-git/doc/guix.texi:32173 guix-git/doc/guix.texi:32189
  48096. #, fuzzy, no-wrap
  48097. msgid "@code{hurd} (default: @var{hurd})"
  48098. msgstr "@code{port}(默认值:@code{22})"
  48099. #. type: table
  48100. #: guix-git/doc/guix.texi:32175 guix-git/doc/guix.texi:32191
  48101. #, fuzzy
  48102. msgid "The Hurd package to use."
  48103. msgstr "软件包数据类型。"
  48104. #. type: defvr
  48105. #: guix-git/doc/guix.texi:32178
  48106. #, no-wrap
  48107. msgid "{Scheme Variable} hurd-getty-service-type"
  48108. msgstr ""
  48109. #. type: defvr
  48110. #: guix-git/doc/guix.texi:32180
  48111. msgid "This service starts a tty using the Hurd @code{getty} program."
  48112. msgstr ""
  48113. #. type: defvr
  48114. #: guix-git/doc/guix.texi:32182
  48115. msgid "The service's value is a @code{hurd-getty-configuration} record."
  48116. msgstr ""
  48117. #. type: deftp
  48118. #: guix-git/doc/guix.texi:32184
  48119. #, no-wrap
  48120. msgid "{Data Type} hurd-getty-configuration"
  48121. msgstr ""
  48122. #. type: deftp
  48123. #: guix-git/doc/guix.texi:32187
  48124. msgid "This is the data type representing the configuration for the hurd-getty-service."
  48125. msgstr ""
  48126. #. type: table
  48127. #: guix-git/doc/guix.texi:32194
  48128. msgid "The name of the console this Getty runs on---e.g., @code{\"tty1\"}."
  48129. msgstr ""
  48130. #. type: item
  48131. #: guix-git/doc/guix.texi:32195
  48132. #, fuzzy, no-wrap
  48133. msgid "@code{baud-rate} (default: @code{38400})"
  48134. msgstr "@code{mate}(默认值:@code{mate})"
  48135. #. type: table
  48136. #: guix-git/doc/guix.texi:32197
  48137. msgid "An integer specifying the baud rate of the tty."
  48138. msgstr ""
  48139. #. type: cindex
  48140. #: guix-git/doc/guix.texi:32204
  48141. #, no-wrap
  48142. msgid "fingerprint"
  48143. msgstr ""
  48144. #. type: subsubheading
  48145. #: guix-git/doc/guix.texi:32205
  48146. #, no-wrap
  48147. msgid "Fingerprint Service"
  48148. msgstr ""
  48149. #. type: Plain text
  48150. #: guix-git/doc/guix.texi:32209
  48151. msgid "The @code{(gnu services authentication)} module provides a DBus service to read and identify fingerprints via a fingerprint sensor."
  48152. msgstr ""
  48153. #. type: defvr
  48154. #: guix-git/doc/guix.texi:32210
  48155. #, no-wrap
  48156. msgid "{Scheme Variable} fprintd-service-type"
  48157. msgstr ""
  48158. #. type: defvr
  48159. #: guix-git/doc/guix.texi:32213
  48160. msgid "The service type for @command{fprintd}, which provides the fingerprint reading capability."
  48161. msgstr ""
  48162. #. type: lisp
  48163. #: guix-git/doc/guix.texi:32216
  48164. #, no-wrap
  48165. msgid "(service fprintd-service-type)\n"
  48166. msgstr ""
  48167. #. type: cindex
  48168. #: guix-git/doc/guix.texi:32219
  48169. #, no-wrap
  48170. msgid "sysctl"
  48171. msgstr ""
  48172. #. type: subsubheading
  48173. #: guix-git/doc/guix.texi:32220
  48174. #, no-wrap
  48175. msgid "System Control Service"
  48176. msgstr ""
  48177. #. type: Plain text
  48178. #: guix-git/doc/guix.texi:32224
  48179. msgid "The @code{(gnu services sysctl)} provides a service to configure kernel parameters at boot."
  48180. msgstr ""
  48181. #. type: defvr
  48182. #: guix-git/doc/guix.texi:32225
  48183. #, no-wrap
  48184. msgid "{Scheme Variable} sysctl-service-type"
  48185. msgstr ""
  48186. #. type: defvr
  48187. #: guix-git/doc/guix.texi:32229
  48188. msgid "The service type for @command{sysctl}, which modifies kernel parameters under @file{/proc/sys/}. To enable IPv4 forwarding, it can be instantiated as:"
  48189. msgstr ""
  48190. #. type: lisp
  48191. #: guix-git/doc/guix.texi:32234
  48192. #, no-wrap
  48193. msgid ""
  48194. "(service sysctl-service-type\n"
  48195. " (sysctl-configuration\n"
  48196. " (settings '((\"net.ipv4.ip_forward\" . \"1\")))))\n"
  48197. msgstr ""
  48198. #. type: defvr
  48199. #: guix-git/doc/guix.texi:32241
  48200. msgid "Since @code{sysctl-service-type} is used in the default lists of services, @code{%base-services} and @code{%desktop-services}, you can use @code{modify-services} to change its configuration and add the kernel parameters that you want (@pxref{Service Reference, @code{modify-services}})."
  48201. msgstr ""
  48202. #. type: lisp
  48203. #: guix-git/doc/guix.texi:32248
  48204. #, no-wrap
  48205. msgid ""
  48206. "(modify-services %base-services\n"
  48207. " (sysctl-service-type config =>\n"
  48208. " (sysctl-configuration\n"
  48209. " (settings (append '((\"net.ipv4.ip_forward\" . \"1\"))\n"
  48210. " %default-sysctl-settings)))))\n"
  48211. msgstr ""
  48212. #. type: deftp
  48213. #: guix-git/doc/guix.texi:32252
  48214. #, no-wrap
  48215. msgid "{Data Type} sysctl-configuration"
  48216. msgstr ""
  48217. #. type: deftp
  48218. #: guix-git/doc/guix.texi:32254
  48219. msgid "The data type representing the configuration of @command{sysctl}."
  48220. msgstr ""
  48221. #. type: item
  48222. #: guix-git/doc/guix.texi:32256
  48223. #, no-wrap
  48224. msgid "@code{sysctl} (default: @code{(file-append procps \"/sbin/sysctl\"})"
  48225. msgstr ""
  48226. #. type: table
  48227. #: guix-git/doc/guix.texi:32258
  48228. msgid "The @command{sysctl} executable to use."
  48229. msgstr ""
  48230. #. type: item
  48231. #: guix-git/doc/guix.texi:32259
  48232. #, fuzzy, no-wrap
  48233. msgid "@code{settings} (default: @code{%default-sysctl-settings})"
  48234. msgstr "@code{mate}(默认值:@code{mate})"
  48235. #. type: table
  48236. #: guix-git/doc/guix.texi:32261
  48237. msgid "An association list specifies kernel parameters and their values."
  48238. msgstr ""
  48239. #. type: defvr
  48240. #: guix-git/doc/guix.texi:32264
  48241. #, no-wrap
  48242. msgid "{Scheme Variable} %default-sysctl-settings"
  48243. msgstr ""
  48244. #. type: defvr
  48245. #: guix-git/doc/guix.texi:32267
  48246. msgid "An association list specifying the default @command{sysctl} parameters on Guix System."
  48247. msgstr ""
  48248. #. type: cindex
  48249. #: guix-git/doc/guix.texi:32269
  48250. #, no-wrap
  48251. msgid "pcscd"
  48252. msgstr ""
  48253. #. type: subsubheading
  48254. #: guix-git/doc/guix.texi:32270
  48255. #, no-wrap
  48256. msgid "PC/SC Smart Card Daemon Service"
  48257. msgstr ""
  48258. #. type: Plain text
  48259. #: guix-git/doc/guix.texi:32277
  48260. msgid "The @code{(gnu services security-token)} module provides the following service to run @command{pcscd}, the PC/SC Smart Card Daemon. @command{pcscd} is the daemon program for pcsc-lite and the MuscleCard framework. It is a resource manager that coordinates communications with smart card readers, smart cards and cryptographic tokens that are connected to the system."
  48261. msgstr ""
  48262. #. type: defvr
  48263. #: guix-git/doc/guix.texi:32278
  48264. #, no-wrap
  48265. msgid "{Scheme Variable} pcscd-service-type"
  48266. msgstr ""
  48267. #. type: defvr
  48268. #: guix-git/doc/guix.texi:32282
  48269. msgid "Service type for the @command{pcscd} service. Its value must be a @code{pcscd-configuration} object. To run pcscd in the default configuration, instantiate it as:"
  48270. msgstr ""
  48271. #. type: lisp
  48272. #: guix-git/doc/guix.texi:32285
  48273. #, no-wrap
  48274. msgid "(service pcscd-service-type)\n"
  48275. msgstr ""
  48276. #. type: deftp
  48277. #: guix-git/doc/guix.texi:32288
  48278. #, no-wrap
  48279. msgid "{Data Type} pcscd-configuration"
  48280. msgstr ""
  48281. #. type: deftp
  48282. #: guix-git/doc/guix.texi:32290
  48283. msgid "The data type representing the configuration of @command{pcscd}."
  48284. msgstr ""
  48285. #. type: item
  48286. #: guix-git/doc/guix.texi:32292
  48287. #, no-wrap
  48288. msgid "@code{pcsc-lite} (default: @code{pcsc-lite})"
  48289. msgstr ""
  48290. #. type: table
  48291. #: guix-git/doc/guix.texi:32294
  48292. msgid "The pcsc-lite package that provides pcscd."
  48293. msgstr ""
  48294. #. type: item
  48295. #: guix-git/doc/guix.texi:32294
  48296. #, no-wrap
  48297. msgid "@code{usb-drivers} (default: @code{(list ccid)})"
  48298. msgstr ""
  48299. #. type: table
  48300. #: guix-git/doc/guix.texi:32297
  48301. msgid "List of packages that provide USB drivers to pcscd. Drivers are expected to be under @file{pcsc/drivers} in the store directory of the package."
  48302. msgstr ""
  48303. #. type: cindex
  48304. #: guix-git/doc/guix.texi:32300
  48305. #, no-wrap
  48306. msgid "lirc"
  48307. msgstr ""
  48308. #. type: subsubheading
  48309. #: guix-git/doc/guix.texi:32301
  48310. #, no-wrap
  48311. msgid "Lirc Service"
  48312. msgstr ""
  48313. #. type: Plain text
  48314. #: guix-git/doc/guix.texi:32304
  48315. msgid "The @code{(gnu services lirc)} module provides the following service."
  48316. msgstr ""
  48317. #. type: deffn
  48318. #: guix-git/doc/guix.texi:32305
  48319. #, no-wrap
  48320. msgid "{Scheme Procedure} lirc-service [#:lirc lirc] @"
  48321. msgstr ""
  48322. #. type: deffn
  48323. #: guix-git/doc/guix.texi:32310
  48324. msgid "[#:device #f] [#:driver #f] [#:config-file #f] @ [#:extra-options '()] Return a service that runs @url{http://www.lirc.org,LIRC}, a daemon that decodes infrared signals from remote controls."
  48325. msgstr ""
  48326. #. type: deffn
  48327. #: guix-git/doc/guix.texi:32314
  48328. msgid "Optionally, @var{device}, @var{driver} and @var{config-file} (configuration file name) may be specified. See @command{lircd} manual for details."
  48329. msgstr ""
  48330. #. type: deffn
  48331. #: guix-git/doc/guix.texi:32317
  48332. msgid "Finally, @var{extra-options} is a list of additional command-line options passed to @command{lircd}."
  48333. msgstr ""
  48334. #. type: cindex
  48335. #: guix-git/doc/guix.texi:32319
  48336. #, no-wrap
  48337. msgid "spice"
  48338. msgstr ""
  48339. #. type: subsubheading
  48340. #: guix-git/doc/guix.texi:32320
  48341. #, no-wrap
  48342. msgid "Spice Service"
  48343. msgstr ""
  48344. #. type: Plain text
  48345. #: guix-git/doc/guix.texi:32323
  48346. msgid "The @code{(gnu services spice)} module provides the following service."
  48347. msgstr ""
  48348. #. type: deffn
  48349. #: guix-git/doc/guix.texi:32324
  48350. #, no-wrap
  48351. msgid "{Scheme Procedure} spice-vdagent-service [#:spice-vdagent]"
  48352. msgstr ""
  48353. #. type: deffn
  48354. #: guix-git/doc/guix.texi:32328
  48355. msgid "Returns a service that runs @url{https://www.spice-space.org,VDAGENT}, a daemon that enables sharing the clipboard with a vm and setting the guest display resolution when the graphical console window resizes."
  48356. msgstr ""
  48357. #. type: cindex
  48358. #: guix-git/doc/guix.texi:32330
  48359. #, no-wrap
  48360. msgid "inputattach"
  48361. msgstr ""
  48362. #. type: subsubheading
  48363. #: guix-git/doc/guix.texi:32331
  48364. #, no-wrap
  48365. msgid "inputattach Service"
  48366. msgstr ""
  48367. #. type: cindex
  48368. #: guix-git/doc/guix.texi:32333
  48369. #, no-wrap
  48370. msgid "tablet input, for Xorg"
  48371. msgstr ""
  48372. #. type: cindex
  48373. #: guix-git/doc/guix.texi:32334
  48374. #, no-wrap
  48375. msgid "touchscreen input, for Xorg"
  48376. msgstr ""
  48377. #. type: Plain text
  48378. #: guix-git/doc/guix.texi:32338
  48379. msgid "The @uref{https://linuxwacom.github.io/, inputattach} service allows you to use input devices such as Wacom tablets, touchscreens, or joysticks with the Xorg display server."
  48380. msgstr ""
  48381. #. type: deffn
  48382. #: guix-git/doc/guix.texi:32339
  48383. #, no-wrap
  48384. msgid "{Scheme Variable} inputattach-service-type"
  48385. msgstr ""
  48386. #. type: deffn
  48387. #: guix-git/doc/guix.texi:32342
  48388. msgid "Type of a service that runs @command{inputattach} on a device and dispatches events from it."
  48389. msgstr ""
  48390. #. type: deftp
  48391. #: guix-git/doc/guix.texi:32344
  48392. #, no-wrap
  48393. msgid "{Data Type} inputattach-configuration"
  48394. msgstr ""
  48395. #. type: item
  48396. #: guix-git/doc/guix.texi:32346
  48397. #, no-wrap
  48398. msgid "@code{device-type} (default: @code{\"wacom\"})"
  48399. msgstr ""
  48400. #. type: table
  48401. #: guix-git/doc/guix.texi:32349
  48402. msgid "The type of device to connect to. Run @command{inputattach --help}, from the @code{inputattach} package, to see the list of supported device types."
  48403. msgstr ""
  48404. #. type: item
  48405. #: guix-git/doc/guix.texi:32350
  48406. #, no-wrap
  48407. msgid "@code{device} (default: @code{\"/dev/ttyS0\"})"
  48408. msgstr ""
  48409. #. type: table
  48410. #: guix-git/doc/guix.texi:32352
  48411. msgid "The device file to connect to the device."
  48412. msgstr ""
  48413. #. type: table
  48414. #: guix-git/doc/guix.texi:32356
  48415. msgid "Baud rate to use for the serial connection. Should be a number or @code{#f}."
  48416. msgstr ""
  48417. #. type: item
  48418. #: guix-git/doc/guix.texi:32357
  48419. #, no-wrap
  48420. msgid "@code{log-file} (default: @code{#f})"
  48421. msgstr ""
  48422. #. type: table
  48423. #: guix-git/doc/guix.texi:32359
  48424. msgid "If true, this must be the name of a file to log messages to."
  48425. msgstr ""
  48426. #. type: subsubheading
  48427. #: guix-git/doc/guix.texi:32362
  48428. #, fuzzy, no-wrap
  48429. msgid "Dictionary Service"
  48430. msgstr "定义服务"
  48431. #. type: cindex
  48432. #: guix-git/doc/guix.texi:32363
  48433. #, no-wrap
  48434. msgid "dictionary"
  48435. msgstr ""
  48436. #. type: Plain text
  48437. #: guix-git/doc/guix.texi:32365
  48438. msgid "The @code{(gnu services dict)} module provides the following service:"
  48439. msgstr ""
  48440. #. type: defvr
  48441. #: guix-git/doc/guix.texi:32366
  48442. #, no-wrap
  48443. msgid "{Scheme Variable} dicod-service-type"
  48444. msgstr ""
  48445. #. type: defvr
  48446. #: guix-git/doc/guix.texi:32369
  48447. msgid "This is the type of the service that runs the @command{dicod} daemon, an implementation of DICT server (@pxref{Dicod,,, dico, GNU Dico Manual})."
  48448. msgstr ""
  48449. #. type: deffn
  48450. #: guix-git/doc/guix.texi:32371
  48451. #, no-wrap
  48452. msgid "{Scheme Procedure} dicod-service [#:config (dicod-configuration)]"
  48453. msgstr ""
  48454. #. type: deffn
  48455. #: guix-git/doc/guix.texi:32374
  48456. msgid "Return a service that runs the @command{dicod} daemon, an implementation of DICT server (@pxref{Dicod,,, dico, GNU Dico Manual})."
  48457. msgstr ""
  48458. #. type: deffn
  48459. #: guix-git/doc/guix.texi:32378
  48460. msgid "The optional @var{config} argument specifies the configuration for @command{dicod}, which should be a @code{<dicod-configuration>} object, by default it serves the GNU Collaborative International Dictionary of English."
  48461. msgstr ""
  48462. #. type: deffn
  48463. #: guix-git/doc/guix.texi:32382
  48464. msgid "You can add @command{open localhost} to your @file{~/.dico} file to make @code{localhost} the default server for @command{dico} client (@pxref{Initialization File,,, dico, GNU Dico Manual})."
  48465. msgstr ""
  48466. #. type: deftp
  48467. #: guix-git/doc/guix.texi:32384
  48468. #, no-wrap
  48469. msgid "{Data Type} dicod-configuration"
  48470. msgstr ""
  48471. #. type: deftp
  48472. #: guix-git/doc/guix.texi:32386
  48473. msgid "Data type representing the configuration of dicod."
  48474. msgstr ""
  48475. #. type: item
  48476. #: guix-git/doc/guix.texi:32388
  48477. #, no-wrap
  48478. msgid "@code{dico} (default: @var{dico})"
  48479. msgstr ""
  48480. #. type: table
  48481. #: guix-git/doc/guix.texi:32390
  48482. msgid "Package object of the GNU Dico dictionary server."
  48483. msgstr ""
  48484. #. type: item
  48485. #: guix-git/doc/guix.texi:32391
  48486. #, no-wrap
  48487. msgid "@code{interfaces} (default: @var{'(\"localhost\")})"
  48488. msgstr ""
  48489. #. type: table
  48490. #: guix-git/doc/guix.texi:32395
  48491. msgid "This is the list of IP addresses and ports and possibly socket file names to listen to (@pxref{Server Settings, @code{listen} directive,, dico, GNU Dico Manual})."
  48492. msgstr ""
  48493. #. type: item
  48494. #: guix-git/doc/guix.texi:32396
  48495. #, no-wrap
  48496. msgid "@code{handlers} (default: @var{'()})"
  48497. msgstr ""
  48498. #. type: table
  48499. #: guix-git/doc/guix.texi:32398
  48500. msgid "List of @code{<dicod-handler>} objects denoting handlers (module instances)."
  48501. msgstr ""
  48502. #. type: item
  48503. #: guix-git/doc/guix.texi:32399
  48504. #, no-wrap
  48505. msgid "@code{databases} (default: @var{(list %dicod-database:gcide)})"
  48506. msgstr ""
  48507. #. type: table
  48508. #: guix-git/doc/guix.texi:32401
  48509. msgid "List of @code{<dicod-database>} objects denoting dictionaries to be served."
  48510. msgstr ""
  48511. #. type: deftp
  48512. #: guix-git/doc/guix.texi:32404
  48513. #, no-wrap
  48514. msgid "{Data Type} dicod-handler"
  48515. msgstr ""
  48516. #. type: deftp
  48517. #: guix-git/doc/guix.texi:32406
  48518. msgid "Data type representing a dictionary handler (module instance)."
  48519. msgstr ""
  48520. #. type: table
  48521. #: guix-git/doc/guix.texi:32410
  48522. msgid "Name of the handler (module instance)."
  48523. msgstr ""
  48524. #. type: item
  48525. #: guix-git/doc/guix.texi:32411
  48526. #, no-wrap
  48527. msgid "@code{module} (default: @var{#f})"
  48528. msgstr ""
  48529. #. type: table
  48530. #: guix-git/doc/guix.texi:32415
  48531. msgid "Name of the dicod module of the handler (instance). If it is @code{#f}, the module has the same name as the handler. (@pxref{Modules,,, dico, GNU Dico Manual})."
  48532. msgstr ""
  48533. #. type: table
  48534. #: guix-git/doc/guix.texi:32418
  48535. msgid "List of strings or gexps representing the arguments for the module handler"
  48536. msgstr ""
  48537. #. type: deftp
  48538. #: guix-git/doc/guix.texi:32421
  48539. #, no-wrap
  48540. msgid "{Data Type} dicod-database"
  48541. msgstr ""
  48542. #. type: deftp
  48543. #: guix-git/doc/guix.texi:32423
  48544. msgid "Data type representing a dictionary database."
  48545. msgstr ""
  48546. #. type: table
  48547. #: guix-git/doc/guix.texi:32427
  48548. msgid "Name of the database, will be used in DICT commands."
  48549. msgstr ""
  48550. #. type: code{#1}
  48551. #: guix-git/doc/guix.texi:32428
  48552. #, no-wrap
  48553. msgid "handler"
  48554. msgstr ""
  48555. #. type: table
  48556. #: guix-git/doc/guix.texi:32431
  48557. msgid "Name of the dicod handler (module instance) used by this database (@pxref{Handlers,,, dico, GNU Dico Manual})."
  48558. msgstr ""
  48559. #. type: item
  48560. #: guix-git/doc/guix.texi:32432
  48561. #, no-wrap
  48562. msgid "@code{complex?} (default: @var{#f})"
  48563. msgstr ""
  48564. #. type: table
  48565. #: guix-git/doc/guix.texi:32435
  48566. msgid "Whether the database configuration complex. The complex configuration will need a corresponding @code{<dicod-handler>} object, otherwise not."
  48567. msgstr ""
  48568. #. type: table
  48569. #: guix-git/doc/guix.texi:32439
  48570. msgid "List of strings or gexps representing the arguments for the database (@pxref{Databases,,, dico, GNU Dico Manual})."
  48571. msgstr ""
  48572. #. type: defvr
  48573. #: guix-git/doc/guix.texi:32442
  48574. #, no-wrap
  48575. msgid "{Scheme Variable} %dicod-database:gcide"
  48576. msgstr ""
  48577. #. type: defvr
  48578. #: guix-git/doc/guix.texi:32445
  48579. msgid "A @code{<dicod-database>} object serving the GNU Collaborative International Dictionary of English using the @code{gcide} package."
  48580. msgstr ""
  48581. #. type: Plain text
  48582. #: guix-git/doc/guix.texi:32448
  48583. msgid "The following is an example @code{dicod-service} configuration."
  48584. msgstr ""
  48585. #. type: lisp
  48586. #: guix-git/doc/guix.texi:32463
  48587. #, no-wrap
  48588. msgid ""
  48589. "(dicod-service #:config\n"
  48590. " (dicod-configuration\n"
  48591. " (handlers (list (dicod-handler\n"
  48592. " (name \"wordnet\")\n"
  48593. " (module \"dictorg\")\n"
  48594. " (options\n"
  48595. " (list #~(string-append \"dbdir=\" #$wordnet))))))\n"
  48596. " (databases (list (dicod-database\n"
  48597. " (name \"wordnet\")\n"
  48598. " (complex? #t)\n"
  48599. " (handler \"wordnet\")\n"
  48600. " (options '(\"database=wn\")))\n"
  48601. " %dicod-database:gcide))))\n"
  48602. msgstr ""
  48603. #. type: cindex
  48604. #: guix-git/doc/guix.texi:32465
  48605. #, no-wrap
  48606. msgid "Docker"
  48607. msgstr ""
  48608. #. type: subsubheading
  48609. #: guix-git/doc/guix.texi:32466
  48610. #, no-wrap
  48611. msgid "Docker Service"
  48612. msgstr ""
  48613. #. type: Plain text
  48614. #: guix-git/doc/guix.texi:32469
  48615. msgid "The @code{(gnu services docker)} module provides the following services."
  48616. msgstr ""
  48617. #. type: defvr
  48618. #: guix-git/doc/guix.texi:32470
  48619. #, no-wrap
  48620. msgid "{Scheme Variable} docker-service-type"
  48621. msgstr ""
  48622. #. type: defvr
  48623. #: guix-git/doc/guix.texi:32475
  48624. msgid "This is the type of the service that runs @url{https://www.docker.com,Docker}, a daemon that can execute application bundles (sometimes referred to as ``containers'') in isolated environments."
  48625. msgstr ""
  48626. #. type: deftp
  48627. #: guix-git/doc/guix.texi:32478
  48628. #, no-wrap
  48629. msgid "{Data Type} docker-configuration"
  48630. msgstr ""
  48631. #. type: deftp
  48632. #: guix-git/doc/guix.texi:32480
  48633. msgid "This is the data type representing the configuration of Docker and Containerd."
  48634. msgstr ""
  48635. #. type: item
  48636. #: guix-git/doc/guix.texi:32483
  48637. #, fuzzy, no-wrap
  48638. msgid "@code{docker} (default: @code{docker})"
  48639. msgstr "@code{xfce}(默认值:@code{xfce})"
  48640. #. type: table
  48641. #: guix-git/doc/guix.texi:32485
  48642. msgid "The Docker daemon package to use."
  48643. msgstr ""
  48644. #. type: item
  48645. #: guix-git/doc/guix.texi:32486
  48646. #, fuzzy, no-wrap
  48647. msgid "@code{docker-cli} (default: @code{docker-cli})"
  48648. msgstr "@code{xfce}(默认值:@code{xfce})"
  48649. #. type: table
  48650. #: guix-git/doc/guix.texi:32488
  48651. msgid "The Docker client package to use."
  48652. msgstr ""
  48653. #. type: item
  48654. #: guix-git/doc/guix.texi:32489
  48655. #, no-wrap
  48656. msgid "@code{containerd} (default: @var{containerd})"
  48657. msgstr ""
  48658. #. type: table
  48659. #: guix-git/doc/guix.texi:32491
  48660. msgid "The Containerd package to use."
  48661. msgstr ""
  48662. #. type: item
  48663. #: guix-git/doc/guix.texi:32492
  48664. #, no-wrap
  48665. msgid "@code{proxy} (default @var{docker-libnetwork-cmd-proxy})"
  48666. msgstr ""
  48667. #. type: table
  48668. #: guix-git/doc/guix.texi:32494
  48669. msgid "The Docker user-land networking proxy package to use."
  48670. msgstr ""
  48671. #. type: item
  48672. #: guix-git/doc/guix.texi:32495
  48673. #, fuzzy, no-wrap
  48674. msgid "@code{enable-proxy?} (default @code{#t})"
  48675. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  48676. #. type: table
  48677. #: guix-git/doc/guix.texi:32497
  48678. msgid "Enable or disable the use of the Docker user-land networking proxy."
  48679. msgstr ""
  48680. #. type: item
  48681. #: guix-git/doc/guix.texi:32498
  48682. #, fuzzy, no-wrap
  48683. msgid "@code{debug?} (default @code{#f})"
  48684. msgstr "@code{challenge}(默认值:@code{#f})"
  48685. #. type: table
  48686. #: guix-git/doc/guix.texi:32500
  48687. #, fuzzy
  48688. msgid "Enable or disable debug output."
  48689. msgstr "怎么开启或关闭substitute。"
  48690. #. type: item
  48691. #: guix-git/doc/guix.texi:32501
  48692. #, fuzzy, no-wrap
  48693. msgid "@code{enable-iptables?} (default @code{#t})"
  48694. msgstr "@code{mate}(默认值:@code{mate})"
  48695. #. type: table
  48696. #: guix-git/doc/guix.texi:32503
  48697. msgid "Enable or disable the addition of iptables rules."
  48698. msgstr ""
  48699. #. type: cindex
  48700. #: guix-git/doc/guix.texi:32507
  48701. #, no-wrap
  48702. msgid "Singularity, container service"
  48703. msgstr ""
  48704. #. type: defvr
  48705. #: guix-git/doc/guix.texi:32508
  48706. #, no-wrap
  48707. msgid "{Scheme Variable} singularity-service-type"
  48708. msgstr ""
  48709. #. type: defvr
  48710. #: guix-git/doc/guix.texi:32513
  48711. msgid "This is the type of the service that allows you to run @url{https://www.sylabs.io/singularity/, Singularity}, a Docker-style tool to create and run application bundles (aka. ``containers''). The value for this service is the Singularity package to use."
  48712. msgstr ""
  48713. #. type: defvr
  48714. #: guix-git/doc/guix.texi:32517
  48715. msgid "The service does not install a daemon; instead, it installs helper programs as setuid-root (@pxref{Setuid Programs}) such that unprivileged users can invoke @command{singularity run} and similar commands."
  48716. msgstr ""
  48717. #. type: cindex
  48718. #: guix-git/doc/guix.texi:32519
  48719. #, no-wrap
  48720. msgid "Audit"
  48721. msgstr ""
  48722. #. type: subsubheading
  48723. #: guix-git/doc/guix.texi:32520
  48724. #, fuzzy, no-wrap
  48725. msgid "Auditd Service"
  48726. msgstr "音频服务"
  48727. #. type: Plain text
  48728. #: guix-git/doc/guix.texi:32523
  48729. msgid "The @code{(gnu services auditd)} module provides the following service."
  48730. msgstr ""
  48731. #. type: defvr
  48732. #: guix-git/doc/guix.texi:32524
  48733. #, no-wrap
  48734. msgid "{Scheme Variable} auditd-service-type"
  48735. msgstr ""
  48736. #. type: defvr
  48737. #: guix-git/doc/guix.texi:32529
  48738. msgid "This is the type of the service that runs @url{https://people.redhat.com/sgrubb/audit/,auditd}, a daemon that tracks security-relevant information on your system."
  48739. msgstr ""
  48740. #. type: defvr
  48741. #: guix-git/doc/guix.texi:32531
  48742. msgid "Examples of things that can be tracked:"
  48743. msgstr ""
  48744. #. type: enumerate
  48745. #: guix-git/doc/guix.texi:32535
  48746. #, fuzzy
  48747. msgid "File accesses"
  48748. msgstr "文件系统"
  48749. #. type: enumerate
  48750. #: guix-git/doc/guix.texi:32537
  48751. #, fuzzy
  48752. msgid "System calls"
  48753. msgstr "系统安装"
  48754. #. type: enumerate
  48755. #: guix-git/doc/guix.texi:32539
  48756. msgid "Invoked commands"
  48757. msgstr ""
  48758. #. type: enumerate
  48759. #: guix-git/doc/guix.texi:32541
  48760. msgid "Failed login attempts"
  48761. msgstr ""
  48762. #. type: enumerate
  48763. #: guix-git/doc/guix.texi:32543
  48764. msgid "Firewall filtering"
  48765. msgstr ""
  48766. #. type: enumerate
  48767. #: guix-git/doc/guix.texi:32545
  48768. #, fuzzy
  48769. msgid "Network access"
  48770. msgstr "网络服务"
  48771. #. type: defvr
  48772. #: guix-git/doc/guix.texi:32556
  48773. msgid "@command{auditctl} from the @code{audit} package can be used in order to add or remove events to be tracked (until the next reboot). In order to permanently track events, put the command line arguments of auditctl into a file called @code{audit.rules} in the configuration directory (see below). @command{aureport} from the @code{audit} package can be used in order to view a report of all recorded events. The audit daemon by default logs into the file @file{/var/log/audit.log}."
  48774. msgstr ""
  48775. #. type: deftp
  48776. #: guix-git/doc/guix.texi:32559
  48777. #, fuzzy, no-wrap
  48778. msgid "{Data Type} auditd-configuration"
  48779. msgstr "{数据类型} build-machine"
  48780. #. type: deftp
  48781. #: guix-git/doc/guix.texi:32561
  48782. msgid "This is the data type representing the configuration of auditd."
  48783. msgstr ""
  48784. #. type: item
  48785. #: guix-git/doc/guix.texi:32564
  48786. #, fuzzy, no-wrap
  48787. msgid "@code{audit} (default: @code{audit})"
  48788. msgstr "@code{mate}(默认值:@code{mate})"
  48789. #. type: table
  48790. #: guix-git/doc/guix.texi:32566
  48791. #, fuzzy
  48792. msgid "The audit package to use."
  48793. msgstr "软件包数据类型。"
  48794. #. type: item
  48795. #: guix-git/doc/guix.texi:32567
  48796. #, no-wrap
  48797. msgid "@code{configuration-directory} (default: @code{%default-auditd-configuration-directory})"
  48798. msgstr ""
  48799. #. type: table
  48800. #: guix-git/doc/guix.texi:32571
  48801. msgid "The directory containing the configuration file for the audit package, which must be named @code{auditd.conf}, and optionally some audit rules to instantiate on startup."
  48802. msgstr ""
  48803. #. type: cindex
  48804. #: guix-git/doc/guix.texi:32575
  48805. #, no-wrap
  48806. msgid "rshiny"
  48807. msgstr ""
  48808. #. type: subsubheading
  48809. #: guix-git/doc/guix.texi:32576
  48810. #, fuzzy, no-wrap
  48811. msgid "R-Shiny service"
  48812. msgstr "电话服务。"
  48813. #. type: Plain text
  48814. #: guix-git/doc/guix.texi:32579
  48815. msgid "The @code{(gnu services science)} module provides the following service."
  48816. msgstr ""
  48817. #. type: defvr
  48818. #: guix-git/doc/guix.texi:32580
  48819. #, no-wrap
  48820. msgid "{Scheme Variable} rshiny-service-type"
  48821. msgstr ""
  48822. #. type: defvr
  48823. #: guix-git/doc/guix.texi:32585
  48824. msgid "This is a type of service which is used to run a webapp created with @code{r-shiny}. This service sets the @env{R_LIBS_USER} environment variable and runs the provided script to call @code{runApp}."
  48825. msgstr ""
  48826. #. type: deftp
  48827. #: guix-git/doc/guix.texi:32586
  48828. #, no-wrap
  48829. msgid "{Data Type} rshiny-configuration"
  48830. msgstr ""
  48831. #. type: deftp
  48832. #: guix-git/doc/guix.texi:32588
  48833. msgid "This is the data type representing the configuration of rshiny."
  48834. msgstr ""
  48835. #. type: item
  48836. #: guix-git/doc/guix.texi:32591
  48837. #, fuzzy, no-wrap
  48838. msgid "@code{package} (default: @code{r-shiny})"
  48839. msgstr "@code{challenge}(默认值:@code{#f})"
  48840. #. type: table
  48841. #: guix-git/doc/guix.texi:32593
  48842. #, fuzzy
  48843. msgid "The package to use."
  48844. msgstr "软件包数据类型。"
  48845. #. type: item
  48846. #: guix-git/doc/guix.texi:32594
  48847. #, fuzzy, no-wrap
  48848. msgid "@code{binary} (defaunlt @code{\"rshiny\"})"
  48849. msgstr "@code{display}(默认值:@code{\":0\"})"
  48850. #. type: table
  48851. #: guix-git/doc/guix.texi:32597
  48852. msgid "The name of the binary or shell script located at @code{package/bin/} to run when the service is run."
  48853. msgstr ""
  48854. #. type: table
  48855. #: guix-git/doc/guix.texi:32599
  48856. msgid "The common way to create this file is as follows:"
  48857. msgstr ""
  48858. #. type: lisp
  48859. #: guix-git/doc/guix.texi:32617
  48860. #, no-wrap
  48861. msgid ""
  48862. "@dots{}\n"
  48863. "(let* ((out (assoc-ref %outputs \"out\"))\n"
  48864. " (targetdir (string-append out \"/share/\" ,name))\n"
  48865. " (app (string-append out \"/bin/\" ,name))\n"
  48866. " (Rbin (string-append (assoc-ref %build-inputs \"r-min\")\n"
  48867. " \"/bin/Rscript\")))\n"
  48868. " ;; @dots{}\n"
  48869. " (mkdir-p (string-append out \"/bin\"))\n"
  48870. " (call-with-output-file app\n"
  48871. " (lambda (port)\n"
  48872. " (format port\n"
  48873. "\"#!~a\n"
  48874. "library(shiny)\n"
  48875. "setwd(\\\"~a\\\")\n"
  48876. "runApp(launch.browser=0, port=4202)~%\\n\"\n"
  48877. " Rbin targetdir))))\n"
  48878. msgstr ""
  48879. #. type: cindex
  48880. #: guix-git/doc/guix.texi:32623
  48881. #, no-wrap
  48882. msgid "Nix"
  48883. msgstr ""
  48884. #. type: subsubheading
  48885. #: guix-git/doc/guix.texi:32624
  48886. #, fuzzy, no-wrap
  48887. msgid "Nix service"
  48888. msgstr "DNS服务"
  48889. #. type: Plain text
  48890. #: guix-git/doc/guix.texi:32627
  48891. msgid "The @code{(gnu services nix)} module provides the following service."
  48892. msgstr ""
  48893. #. type: defvr
  48894. #: guix-git/doc/guix.texi:32628
  48895. #, no-wrap
  48896. msgid "{Scheme Variable} nix-service-type"
  48897. msgstr ""
  48898. #. type: defvr
  48899. #: guix-git/doc/guix.texi:32633
  48900. msgid "This is the type of the service that runs build daemon of the @url{https://nixos.org/nix/, Nix} package manager. Here is an example showing how to use it:"
  48901. msgstr ""
  48902. #. type: lisp
  48903. #: guix-git/doc/guix.texi:32638
  48904. #, no-wrap
  48905. msgid ""
  48906. "(use-modules (gnu))\n"
  48907. "(use-service-modules nix)\n"
  48908. "(use-package-modules package-management)\n"
  48909. "\n"
  48910. msgstr ""
  48911. #. type: lisp
  48912. #: guix-git/doc/guix.texi:32643
  48913. #, no-wrap
  48914. msgid ""
  48915. "(operating-system\n"
  48916. " ;; @dots{}\n"
  48917. " (packages (append (list nix)\n"
  48918. " %base-packages))\n"
  48919. "\n"
  48920. msgstr ""
  48921. #. type: lisp
  48922. #: guix-git/doc/guix.texi:32646
  48923. #, no-wrap
  48924. msgid ""
  48925. " (services (append (list (service nix-service-type))\n"
  48926. " %base-services)))\n"
  48927. msgstr ""
  48928. #. type: defvr
  48929. #: guix-git/doc/guix.texi:32649
  48930. msgid "After @command{guix system reconfigure} configure Nix for your user:"
  48931. msgstr ""
  48932. #. type: item
  48933. #: guix-git/doc/guix.texi:32651
  48934. #, no-wrap
  48935. msgid "Add a Nix channel and update it. See"
  48936. msgstr ""
  48937. #. type: itemize
  48938. #: guix-git/doc/guix.texi:32653
  48939. msgid "@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}."
  48940. msgstr ""
  48941. #. type: item
  48942. #: guix-git/doc/guix.texi:32654
  48943. #, no-wrap
  48944. msgid "Create a symlink to your profile and activate Nix profile:"
  48945. msgstr ""
  48946. #. type: example
  48947. #: guix-git/doc/guix.texi:32660
  48948. #, no-wrap
  48949. msgid ""
  48950. "$ ln -s \"/nix/var/nix/profiles/per-user/$USER/profile\" ~/.nix-profile\n"
  48951. "$ source /run/current-system/profile/etc/profile.d/nix.sh\n"
  48952. msgstr ""
  48953. #. type: deftp
  48954. #: guix-git/doc/guix.texi:32664
  48955. #, fuzzy, no-wrap
  48956. msgid "{Data Type} nix-configuration"
  48957. msgstr "{数据类型} build-machine"
  48958. #. type: deftp
  48959. #: guix-git/doc/guix.texi:32666
  48960. msgid "This data type represents the configuration of the Nix daemon."
  48961. msgstr ""
  48962. #. type: item
  48963. #: guix-git/doc/guix.texi:32668
  48964. #, fuzzy, no-wrap
  48965. msgid "@code{nix} (default: @code{nix})"
  48966. msgstr "@code{xfce}(默认值:@code{xfce})"
  48967. #. type: table
  48968. #: guix-git/doc/guix.texi:32670
  48969. #, fuzzy
  48970. msgid "The Nix package to use."
  48971. msgstr "软件包数据类型。"
  48972. #. type: item
  48973. #: guix-git/doc/guix.texi:32671
  48974. #, fuzzy, no-wrap
  48975. msgid "@code{sandbox} (default: @code{#t})"
  48976. msgstr "@code{speed}(默认值:@code{1.0})"
  48977. #. type: table
  48978. #: guix-git/doc/guix.texi:32673
  48979. msgid "Specifies whether builds are sandboxed by default."
  48980. msgstr ""
  48981. #. type: item
  48982. #: guix-git/doc/guix.texi:32674
  48983. #, fuzzy, no-wrap
  48984. msgid "@code{build-sandbox-items} (default: @code{'()})"
  48985. msgstr "@code{includes}(默认值:@code{'()})"
  48986. #. type: table
  48987. #: guix-git/doc/guix.texi:32677
  48988. msgid "This is a list of strings or objects appended to the @code{build-sandbox-items} field of the configuration file."
  48989. msgstr ""
  48990. #. type: table
  48991. #: guix-git/doc/guix.texi:32685
  48992. msgid "Extra command line options for @code{nix-service-type}."
  48993. msgstr ""
  48994. #. type: cindex
  48995. #: guix-git/doc/guix.texi:32691
  48996. #, no-wrap
  48997. msgid "setuid programs"
  48998. msgstr ""
  48999. #. type: Plain text
  49000. #: guix-git/doc/guix.texi:32701
  49001. msgid "Some programs need to run with ``root'' privileges, even when they are launched by unprivileged users. A notorious example is the @command{passwd} program, which users can run to change their password, and which needs to access the @file{/etc/passwd} and @file{/etc/shadow} files---something normally restricted to root, for obvious security reasons. To address that, these executables are @dfn{setuid-root}, meaning that they always run with root privileges (@pxref{How Change Persona,,, libc, The GNU C Library Reference Manual}, for more info about the setuid mechanism)."
  49002. msgstr ""
  49003. #. type: Plain text
  49004. #: guix-git/doc/guix.texi:32708
  49005. msgid "The store itself @emph{cannot} contain setuid programs: that would be a security issue since any user on the system can write derivations that populate the store (@pxref{The Store}). Thus, a different mechanism is used: instead of changing the setuid bit directly on files that are in the store, we let the system administrator @emph{declare} which programs should be setuid root."
  49006. msgstr ""
  49007. #. type: Plain text
  49008. #: guix-git/doc/guix.texi:32715
  49009. msgid "The @code{setuid-programs} field of an @code{operating-system} declaration contains a list of @code{<setuid-program>} denoting the names of programs to have a setuid or setgid bit set (@pxref{Using the Configuration System}). For instance, the @command{passwd} program, which is part of the Shadow package, with a setuid root can be designated like this:"
  49010. msgstr ""
  49011. #. type: example
  49012. #: guix-git/doc/guix.texi:32719
  49013. #, no-wrap
  49014. msgid ""
  49015. "(setuid-program\n"
  49016. " (program (file-append #$shadow \"/bin/passwd\")))\n"
  49017. msgstr ""
  49018. #. type: deftp
  49019. #: guix-git/doc/guix.texi:32721
  49020. #, fuzzy, no-wrap
  49021. msgid "{Data Type} setuid-program"
  49022. msgstr "{数据类型} build-machine"
  49023. #. type: deftp
  49024. #: guix-git/doc/guix.texi:32723
  49025. #, fuzzy
  49026. msgid "This data type represents a program with a setuid or setgid bit set."
  49027. msgstr "管理操作系统配置。"
  49028. #. type: code{#1}
  49029. #: guix-git/doc/guix.texi:32725
  49030. #, no-wrap
  49031. msgid "program"
  49032. msgstr ""
  49033. #. type: table
  49034. #: guix-git/doc/guix.texi:32727
  49035. msgid "A file-like object having its setuid and/or setgid bit set."
  49036. msgstr ""
  49037. #. type: item
  49038. #: guix-git/doc/guix.texi:32728
  49039. #, fuzzy, no-wrap
  49040. msgid "@code{setuid?} (default: @code{#t})"
  49041. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49042. #. type: table
  49043. #: guix-git/doc/guix.texi:32730
  49044. msgid "Whether to set user setuid bit."
  49045. msgstr ""
  49046. #. type: item
  49047. #: guix-git/doc/guix.texi:32731
  49048. #, fuzzy, no-wrap
  49049. msgid "@code{setgid?} (default: @code{#f})"
  49050. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49051. #. type: table
  49052. #: guix-git/doc/guix.texi:32733
  49053. msgid "Whether to set group setgid bit."
  49054. msgstr ""
  49055. #. type: item
  49056. #: guix-git/doc/guix.texi:32734
  49057. #, fuzzy, no-wrap
  49058. msgid "@code{user} (default: @code{0})"
  49059. msgstr "@code{port}(默认值:@code{22})"
  49060. #. type: table
  49061. #: guix-git/doc/guix.texi:32737
  49062. msgid "UID (integer) or user name (string) for the user owner of the program, defaults to root."
  49063. msgstr ""
  49064. #. type: item
  49065. #: guix-git/doc/guix.texi:32738
  49066. #, fuzzy, no-wrap
  49067. msgid "@code{group} (default: @code{0})"
  49068. msgstr "@code{gnome}(默认值:@code{gnome})"
  49069. #. type: table
  49070. #: guix-git/doc/guix.texi:32741
  49071. msgid "GID (integer) goup name (string) for the group owner of the program, defaults to root."
  49072. msgstr ""
  49073. #. type: Plain text
  49074. #: guix-git/doc/guix.texi:32747
  49075. msgid "A default set of setuid programs is defined by the @code{%setuid-programs} variable of the @code{(gnu system)} module."
  49076. msgstr ""
  49077. #. type: defvr
  49078. #: guix-git/doc/guix.texi:32748
  49079. #, no-wrap
  49080. msgid "{Scheme Variable} %setuid-programs"
  49081. msgstr ""
  49082. #. type: defvr
  49083. #: guix-git/doc/guix.texi:32751
  49084. msgid "A list of @code{<setuid-program>} denoting common programs that are setuid-root."
  49085. msgstr ""
  49086. #. type: defvr
  49087. #: guix-git/doc/guix.texi:32754
  49088. msgid "The list includes commands such as @command{passwd}, @command{ping}, @command{su}, and @command{sudo}."
  49089. msgstr ""
  49090. #. type: Plain text
  49091. #: guix-git/doc/guix.texi:32760
  49092. msgid "Under the hood, the actual setuid programs are created in the @file{/run/setuid-programs} directory at system activation time. The files in this directory refer to the ``real'' binaries, which are in the store."
  49093. msgstr ""
  49094. #. type: cindex
  49095. #: guix-git/doc/guix.texi:32764
  49096. #, no-wrap
  49097. msgid "HTTPS, certificates"
  49098. msgstr ""
  49099. #. type: cindex
  49100. #: guix-git/doc/guix.texi:32765
  49101. #, no-wrap
  49102. msgid "X.509 certificates"
  49103. msgstr ""
  49104. #. type: cindex
  49105. #: guix-git/doc/guix.texi:32766
  49106. #, no-wrap
  49107. msgid "TLS"
  49108. msgstr ""
  49109. #. type: Plain text
  49110. #: guix-git/doc/guix.texi:32773
  49111. msgid "Web servers available over HTTPS (that is, HTTP over the transport-layer security mechanism, TLS) send client programs an @dfn{X.509 certificate} that the client can then use to @emph{authenticate} the server. To do that, clients verify that the server's certificate is signed by a so-called @dfn{certificate authority} (CA). But to verify the CA's signature, clients must have first acquired the CA's certificate."
  49112. msgstr ""
  49113. #. type: Plain text
  49114. #: guix-git/doc/guix.texi:32777
  49115. msgid "Web browsers such as GNU@tie{}IceCat include their own set of CA certificates, such that they are able to verify CA signatures out-of-the-box."
  49116. msgstr ""
  49117. #. type: Plain text
  49118. #: guix-git/doc/guix.texi:32781
  49119. msgid "However, most other programs that can talk HTTPS---@command{wget}, @command{git}, @command{w3m}, etc.---need to be told where CA certificates can be found."
  49120. msgstr ""
  49121. #. type: Plain text
  49122. #: guix-git/doc/guix.texi:32788
  49123. msgid "In Guix, this is done by adding a package that provides certificates to the @code{packages} field of the @code{operating-system} declaration (@pxref{operating-system Reference}). Guix includes one such package, @code{nss-certs}, which is a set of CA certificates provided as part of Mozilla's Network Security Services."
  49124. msgstr ""
  49125. #. type: Plain text
  49126. #: guix-git/doc/guix.texi:32793
  49127. msgid "Note that it is @emph{not} part of @code{%base-packages}, so you need to explicitly add it. The @file{/etc/ssl/certs} directory, which is where most applications and libraries look for certificates by default, points to the certificates installed globally."
  49128. msgstr ""
  49129. #. type: Plain text
  49130. #: guix-git/doc/guix.texi:32803
  49131. msgid "Unprivileged users, including users of Guix on a foreign distro, can also install their own certificate package in their profile. A number of environment variables need to be defined so that applications and libraries know where to find them. Namely, the OpenSSL library honors the @env{SSL_CERT_DIR} and @env{SSL_CERT_FILE} variables. Some applications add their own environment variables; for instance, the Git version control system honors the certificate bundle pointed to by the @env{GIT_SSL_CAINFO} environment variable. Thus, you would typically run something like:"
  49132. msgstr ""
  49133. #. type: example
  49134. #: guix-git/doc/guix.texi:32809
  49135. #, no-wrap
  49136. msgid ""
  49137. "guix install nss-certs\n"
  49138. "export SSL_CERT_DIR=\"$HOME/.guix-profile/etc/ssl/certs\"\n"
  49139. "export SSL_CERT_FILE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  49140. "export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"\n"
  49141. msgstr ""
  49142. #. type: Plain text
  49143. #: guix-git/doc/guix.texi:32814
  49144. msgid "As another example, R requires the @env{CURL_CA_BUNDLE} environment variable to point to a certificate bundle, so you would have to run something like this:"
  49145. msgstr ""
  49146. #. type: example
  49147. #: guix-git/doc/guix.texi:32818
  49148. #, no-wrap
  49149. msgid ""
  49150. "guix install nss-certs\n"
  49151. "export CURL_CA_BUNDLE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  49152. msgstr ""
  49153. #. type: Plain text
  49154. #: guix-git/doc/guix.texi:32822
  49155. msgid "For other applications you may want to look up the required environment variable in the relevant documentation."
  49156. msgstr ""
  49157. #. type: cindex
  49158. #: guix-git/doc/guix.texi:32827
  49159. #, no-wrap
  49160. msgid "name service switch"
  49161. msgstr ""
  49162. #. type: cindex
  49163. #: guix-git/doc/guix.texi:32828
  49164. #, no-wrap
  49165. msgid "NSS"
  49166. msgstr ""
  49167. #. type: Plain text
  49168. #: guix-git/doc/guix.texi:32837
  49169. msgid "The @code{(gnu system nss)} module provides bindings to the configuration file of the libc @dfn{name service switch} or @dfn{NSS} (@pxref{NSS Configuration File,,, libc, The GNU C Library Reference Manual}). In a nutshell, the NSS is a mechanism that allows libc to be extended with new ``name'' lookup methods for system databases, which includes host names, service names, user accounts, and more (@pxref{Name Service Switch, System Databases and Name Service Switch,, libc, The GNU C Library Reference Manual})."
  49170. msgstr ""
  49171. #. type: Plain text
  49172. #: guix-git/doc/guix.texi:32844
  49173. msgid "The NSS configuration specifies, for each system database, which lookup method is to be used, and how the various methods are chained together---for instance, under which circumstances NSS should try the next method in the list. The NSS configuration is given in the @code{name-service-switch} field of @code{operating-system} declarations (@pxref{operating-system Reference, @code{name-service-switch}})."
  49174. msgstr ""
  49175. #. type: cindex
  49176. #: guix-git/doc/guix.texi:32845
  49177. #, no-wrap
  49178. msgid "nss-mdns"
  49179. msgstr ""
  49180. #. type: cindex
  49181. #: guix-git/doc/guix.texi:32846
  49182. #, no-wrap
  49183. msgid ".local, host name lookup"
  49184. msgstr ""
  49185. #. type: Plain text
  49186. #: guix-git/doc/guix.texi:32851
  49187. msgid "As an example, the declaration below configures the NSS to use the @uref{https://0pointer.de/lennart/projects/nss-mdns/, @code{nss-mdns} back-end}, which supports host name lookups over multicast DNS (mDNS) for host names ending in @code{.local}:"
  49188. msgstr ""
  49189. #. type: lisp
  49190. #: guix-git/doc/guix.texi:32855
  49191. #, no-wrap
  49192. msgid ""
  49193. "(name-service-switch\n"
  49194. " (hosts (list %files ;first, check /etc/hosts\n"
  49195. "\n"
  49196. msgstr ""
  49197. #. type: lisp
  49198. #: guix-git/doc/guix.texi:32860
  49199. #, no-wrap
  49200. msgid ""
  49201. " ;; If the above did not succeed, try\n"
  49202. " ;; with 'mdns_minimal'.\n"
  49203. " (name-service\n"
  49204. " (name \"mdns_minimal\")\n"
  49205. "\n"
  49206. msgstr ""
  49207. #. type: lisp
  49208. #: guix-git/doc/guix.texi:32866
  49209. #, no-wrap
  49210. msgid ""
  49211. " ;; 'mdns_minimal' is authoritative for\n"
  49212. " ;; '.local'. When it returns \"not found\",\n"
  49213. " ;; no need to try the next methods.\n"
  49214. " (reaction (lookup-specification\n"
  49215. " (not-found => return))))\n"
  49216. "\n"
  49217. msgstr ""
  49218. #. type: lisp
  49219. #: guix-git/doc/guix.texi:32870
  49220. #, no-wrap
  49221. msgid ""
  49222. " ;; Then fall back to DNS.\n"
  49223. " (name-service\n"
  49224. " (name \"dns\"))\n"
  49225. "\n"
  49226. msgstr ""
  49227. #. type: lisp
  49228. #: guix-git/doc/guix.texi:32874
  49229. #, no-wrap
  49230. msgid ""
  49231. " ;; Finally, try with the \"full\" 'mdns'.\n"
  49232. " (name-service\n"
  49233. " (name \"mdns\")))))\n"
  49234. msgstr ""
  49235. #. type: Plain text
  49236. #: guix-git/doc/guix.texi:32879
  49237. msgid "Do not worry: the @code{%mdns-host-lookup-nss} variable (see below) contains this configuration, so you will not have to type it if all you want is to have @code{.local} host lookup working."
  49238. msgstr ""
  49239. #. type: Plain text
  49240. #: guix-git/doc/guix.texi:32887
  49241. msgid "Note that, in this case, in addition to setting the @code{name-service-switch} of the @code{operating-system} declaration, you also need to use @code{avahi-service-type} (@pxref{Networking Services, @code{avahi-service-type}}), or @code{%desktop-services}, which includes it (@pxref{Desktop Services}). Doing this makes @code{nss-mdns} accessible to the name service cache daemon (@pxref{Base Services, @code{nscd-service}})."
  49242. msgstr ""
  49243. #. type: Plain text
  49244. #: guix-git/doc/guix.texi:32890
  49245. msgid "For convenience, the following variables provide typical NSS configurations."
  49246. msgstr ""
  49247. #. type: defvr
  49248. #: guix-git/doc/guix.texi:32891
  49249. #, no-wrap
  49250. msgid "{Scheme Variable} %default-nss"
  49251. msgstr ""
  49252. #. type: defvr
  49253. #: guix-git/doc/guix.texi:32894
  49254. msgid "This is the default name service switch configuration, a @code{name-service-switch} object."
  49255. msgstr ""
  49256. #. type: defvr
  49257. #: guix-git/doc/guix.texi:32896
  49258. #, no-wrap
  49259. msgid "{Scheme Variable} %mdns-host-lookup-nss"
  49260. msgstr ""
  49261. #. type: defvr
  49262. #: guix-git/doc/guix.texi:32899
  49263. msgid "This is the name service switch configuration with support for host name lookup over multicast DNS (mDNS) for host names ending in @code{.local}."
  49264. msgstr ""
  49265. #. type: Plain text
  49266. #: guix-git/doc/guix.texi:32909
  49267. msgid "The reference for name service switch configuration is given below. It is a direct mapping of the configuration file format of the C library , so please refer to the C library manual for more information (@pxref{NSS Configuration File,,, libc, The GNU C Library Reference Manual}). Compared to the configuration file format of libc NSS, it has the advantage not only of adding this warm parenthetic feel that we like, but also static checks: you will know about syntax errors and typos as soon as you run @command{guix system}."
  49268. msgstr ""
  49269. #. type: deftp
  49270. #: guix-git/doc/guix.texi:32910
  49271. #, no-wrap
  49272. msgid "{Data Type} name-service-switch"
  49273. msgstr ""
  49274. #. type: deftp
  49275. #: guix-git/doc/guix.texi:32915
  49276. msgid "This is the data type representation the configuration of libc's name service switch (NSS). Each field below represents one of the supported system databases."
  49277. msgstr ""
  49278. #. type: item
  49279. #: guix-git/doc/guix.texi:32917
  49280. #, no-wrap
  49281. msgid "aliases"
  49282. msgstr ""
  49283. #. type: itemx
  49284. #: guix-git/doc/guix.texi:32918
  49285. #, no-wrap
  49286. msgid "ethers"
  49287. msgstr ""
  49288. #. type: itemx
  49289. #: guix-git/doc/guix.texi:32920
  49290. #, no-wrap
  49291. msgid "gshadow"
  49292. msgstr ""
  49293. #. type: itemx
  49294. #: guix-git/doc/guix.texi:32921
  49295. #, no-wrap
  49296. msgid "hosts"
  49297. msgstr ""
  49298. #. type: itemx
  49299. #: guix-git/doc/guix.texi:32922
  49300. #, no-wrap
  49301. msgid "initgroups"
  49302. msgstr ""
  49303. #. type: itemx
  49304. #: guix-git/doc/guix.texi:32923
  49305. #, no-wrap
  49306. msgid "netgroup"
  49307. msgstr ""
  49308. #. type: itemx
  49309. #: guix-git/doc/guix.texi:32924
  49310. #, no-wrap
  49311. msgid "networks"
  49312. msgstr ""
  49313. #. type: itemx
  49314. #: guix-git/doc/guix.texi:32927
  49315. #, no-wrap
  49316. msgid "rpc"
  49317. msgstr ""
  49318. #. type: itemx
  49319. #: guix-git/doc/guix.texi:32929
  49320. #, no-wrap
  49321. msgid "shadow"
  49322. msgstr ""
  49323. #. type: table
  49324. #: guix-git/doc/guix.texi:32932
  49325. msgid "The system databases handled by the NSS@. Each of these fields must be a list of @code{<name-service>} objects (see below)."
  49326. msgstr ""
  49327. #. type: deftp
  49328. #: guix-git/doc/guix.texi:32935
  49329. #, no-wrap
  49330. msgid "{Data Type} name-service"
  49331. msgstr ""
  49332. #. type: deftp
  49333. #: guix-git/doc/guix.texi:32939
  49334. msgid "This is the data type representing an actual name service and the associated lookup action."
  49335. msgstr ""
  49336. #. type: table
  49337. #: guix-git/doc/guix.texi:32944
  49338. msgid "A string denoting the name service (@pxref{Services in the NSS configuration,,, libc, The GNU C Library Reference Manual})."
  49339. msgstr ""
  49340. #. type: table
  49341. #: guix-git/doc/guix.texi:32949
  49342. msgid "Note that name services listed here must be visible to nscd. This is achieved by passing the @code{#:name-services} argument to @code{nscd-service} the list of packages providing the needed name services (@pxref{Base Services, @code{nscd-service}})."
  49343. msgstr ""
  49344. #. type: item
  49345. #: guix-git/doc/guix.texi:32950
  49346. #, no-wrap
  49347. msgid "reaction"
  49348. msgstr ""
  49349. #. type: table
  49350. #: guix-git/doc/guix.texi:32954
  49351. msgid "An action specified using the @code{lookup-specification} macro (@pxref{Actions in the NSS configuration,,, libc, The GNU C Library Reference Manual}). For example:"
  49352. msgstr ""
  49353. #. type: lisp
  49354. #: guix-git/doc/guix.texi:32958
  49355. #, no-wrap
  49356. msgid ""
  49357. "(lookup-specification (unavailable => continue)\n"
  49358. " (success => return))\n"
  49359. msgstr ""
  49360. #. type: Plain text
  49361. #: guix-git/doc/guix.texi:32972
  49362. msgid "For bootstrapping purposes, the Linux-Libre kernel is passed an @dfn{initial RAM disk}, or @dfn{initrd}. An initrd contains a temporary root file system as well as an initialization script. The latter is responsible for mounting the real root file system, and for loading any kernel modules that may be needed to achieve that."
  49363. msgstr ""
  49364. #. type: Plain text
  49365. #: guix-git/doc/guix.texi:32981
  49366. msgid "The @code{initrd-modules} field of an @code{operating-system} declaration allows you to specify Linux-libre kernel modules that must be available in the initrd. In particular, this is where you would list modules needed to actually drive the hard disk where your root partition is---although the default value of @code{initrd-modules} should cover most use cases. For example, assuming you need the @code{megaraid_sas} module in addition to the default modules to be able to access your root file system, you would write:"
  49367. msgstr ""
  49368. #. type: lisp
  49369. #: guix-git/doc/guix.texi:32986
  49370. #, no-wrap
  49371. msgid ""
  49372. "(operating-system\n"
  49373. " ;; @dots{}\n"
  49374. " (initrd-modules (cons \"megaraid_sas\" %base-initrd-modules)))\n"
  49375. msgstr ""
  49376. #. type: defvr
  49377. #: guix-git/doc/guix.texi:32988
  49378. #, no-wrap
  49379. msgid "{Scheme Variable} %base-initrd-modules"
  49380. msgstr ""
  49381. #. type: defvr
  49382. #: guix-git/doc/guix.texi:32990
  49383. msgid "This is the list of kernel modules included in the initrd by default."
  49384. msgstr ""
  49385. #. type: Plain text
  49386. #: guix-git/doc/guix.texi:32998
  49387. msgid "Furthermore, if you need lower-level customization, the @code{initrd} field of an @code{operating-system} declaration allows you to specify which initrd you would like to use. The @code{(gnu system linux-initrd)} module provides three ways to build an initrd: the high-level @code{base-initrd} procedure and the low-level @code{raw-initrd} and @code{expression->initrd} procedures."
  49388. msgstr ""
  49389. #. type: Plain text
  49390. #: guix-git/doc/guix.texi:33003
  49391. msgid "The @code{base-initrd} procedure is intended to cover most common uses. For example, if you want to add a bunch of kernel modules to be loaded at boot time, you can define the @code{initrd} field of the operating system declaration like this:"
  49392. msgstr ""
  49393. #. type: lisp
  49394. #: guix-git/doc/guix.texi:33011
  49395. #, no-wrap
  49396. msgid ""
  49397. "(initrd (lambda (file-systems . rest)\n"
  49398. " ;; Create a standard initrd but set up networking\n"
  49399. " ;; with the parameters QEMU expects by default.\n"
  49400. " (apply base-initrd file-systems\n"
  49401. " #:qemu-networking? #t\n"
  49402. " rest)))\n"
  49403. msgstr ""
  49404. #. type: Plain text
  49405. #: guix-git/doc/guix.texi:33016
  49406. msgid "The @code{base-initrd} procedure also handles common use cases that involves using the system as a QEMU guest, or as a ``live'' system with volatile root file system."
  49407. msgstr ""
  49408. #. type: Plain text
  49409. #: guix-git/doc/guix.texi:33023
  49410. msgid "The @code{base-initrd} procedure is built from @code{raw-initrd} procedure. Unlike @code{base-initrd}, @code{raw-initrd} doesn't do anything high-level, such as trying to guess which kernel modules and packages should be included to the initrd. An example use of @code{raw-initrd} is when a user has a custom Linux kernel configuration and default kernel modules included by @code{base-initrd} are not available."
  49411. msgstr ""
  49412. #. type: Plain text
  49413. #: guix-git/doc/guix.texi:33028
  49414. msgid "The initial RAM disk produced by @code{base-initrd} or @code{raw-initrd} honors several options passed on the Linux kernel command line (that is, arguments passed @i{via} the @code{linux} command of GRUB, or the @code{-append} option of QEMU), notably:"
  49415. msgstr ""
  49416. #. type: item
  49417. #: guix-git/doc/guix.texi:33030
  49418. #, no-wrap
  49419. msgid "--load=@var{boot}"
  49420. msgstr ""
  49421. #. type: table
  49422. #: guix-git/doc/guix.texi:33033
  49423. msgid "Tell the initial RAM disk to load @var{boot}, a file containing a Scheme program, once it has mounted the root file system."
  49424. msgstr ""
  49425. #. type: table
  49426. #: guix-git/doc/guix.texi:33037
  49427. msgid "Guix uses this option to yield control to a boot program that runs the service activation programs and then spawns the GNU@tie{}Shepherd, the initialization system."
  49428. msgstr ""
  49429. #. type: item
  49430. #: guix-git/doc/guix.texi:33038
  49431. #, no-wrap
  49432. msgid "--root=@var{root}"
  49433. msgstr ""
  49434. #. type: table
  49435. #: guix-git/doc/guix.texi:33043
  49436. msgid "Mount @var{root} as the root file system. @var{root} can be a device name like @code{/dev/sda1}, a file system label, or a file system UUID. When unspecified, the device name from the root file system of the operating system declaration is used."
  49437. msgstr ""
  49438. #. type: table
  49439. #: guix-git/doc/guix.texi:33047
  49440. msgid "Have @file{/run/booted-system} and @file{/run/current-system} point to @var{system}."
  49441. msgstr ""
  49442. #. type: item
  49443. #: guix-git/doc/guix.texi:33048
  49444. #, no-wrap
  49445. msgid "modprobe.blacklist=@var{modules}@dots{}"
  49446. msgstr ""
  49447. #. type: cindex
  49448. #: guix-git/doc/guix.texi:33049
  49449. #, no-wrap
  49450. msgid "module, black-listing"
  49451. msgstr ""
  49452. #. type: cindex
  49453. #: guix-git/doc/guix.texi:33050
  49454. #, no-wrap
  49455. msgid "black list, of kernel modules"
  49456. msgstr ""
  49457. #. type: table
  49458. #: guix-git/doc/guix.texi:33055
  49459. msgid "Instruct the initial RAM disk as well as the @command{modprobe} command (from the kmod package) to refuse to load @var{modules}. @var{modules} must be a comma-separated list of module names---e.g., @code{usbkbd,9pnet}."
  49460. msgstr ""
  49461. #. type: item
  49462. #: guix-git/doc/guix.texi:33056
  49463. #, no-wrap
  49464. msgid "--repl"
  49465. msgstr ""
  49466. #. type: table
  49467. #: guix-git/doc/guix.texi:33062
  49468. msgid "Start a read-eval-print loop (REPL) from the initial RAM disk before it tries to load kernel modules and to mount the root file system. Our marketing team calls it @dfn{boot-to-Guile}. The Schemer in you will love it. @xref{Using Guile Interactively,,, guile, GNU Guile Reference Manual}, for more information on Guile's REPL."
  49469. msgstr ""
  49470. #. type: Plain text
  49471. #: guix-git/doc/guix.texi:33068
  49472. msgid "Now that you know all the features that initial RAM disks produced by @code{base-initrd} and @code{raw-initrd} provide, here is how to use it and customize it further."
  49473. msgstr ""
  49474. #. type: deffn
  49475. #: guix-git/doc/guix.texi:33071
  49476. #, no-wrap
  49477. msgid "{Scheme Procedure} raw-initrd @var{file-systems} @"
  49478. msgstr ""
  49479. #. type: deffn
  49480. #: guix-git/doc/guix.texi:33085
  49481. msgid "[#:linux-modules '()] [#:mapped-devices '()] @ [#:keyboard-layout #f] @ [#:helper-packages '()] [#:qemu-networking? #f] [#:volatile-root? #f] Return a derivation that builds a raw initrd. @var{file-systems} is a list of file systems to be mounted by the initrd, possibly in addition to the root file system specified on the kernel command line via @option{--root}. @var{linux-modules} is a list of kernel modules to be loaded at boot time. @var{mapped-devices} is a list of device mappings to realize before @var{file-systems} are mounted (@pxref{Mapped Devices}). @var{helper-packages} is a list of packages to be copied in the initrd. It may include @code{e2fsck/static} or other packages needed by the initrd to check the root file system."
  49482. msgstr ""
  49483. #. type: deffn
  49484. #: guix-git/doc/guix.texi:33091 guix-git/doc/guix.texi:33115
  49485. msgid "When true, @var{keyboard-layout} is a @code{<keyboard-layout>} record denoting the desired console keyboard layout. This is done before @var{mapped-devices} are set up and before @var{file-systems} are mounted such that, should the user need to enter a passphrase or use the REPL, this happens using the intended keyboard layout."
  49486. msgstr ""
  49487. #. type: deffn
  49488. #: guix-git/doc/guix.texi:33095
  49489. msgid "When @var{qemu-networking?} is true, set up networking with the standard QEMU parameters. When @var{virtio?} is true, load additional modules so that the initrd can be used as a QEMU guest with para-virtualized I/O drivers."
  49490. msgstr ""
  49491. #. type: deffn
  49492. #: guix-git/doc/guix.texi:33098
  49493. msgid "When @var{volatile-root?} is true, the root file system is writable but any changes to it are lost."
  49494. msgstr ""
  49495. #. type: deffn
  49496. #: guix-git/doc/guix.texi:33100
  49497. #, no-wrap
  49498. msgid "{Scheme Procedure} base-initrd @var{file-systems} @"
  49499. msgstr ""
  49500. #. type: deffn
  49501. #: guix-git/doc/guix.texi:33109
  49502. msgid "[#:mapped-devices '()] [#:keyboard-layout #f] @ [#:qemu-networking? #f] [#:volatile-root? #f] @ [#:linux-modules '()] Return as a file-like object a generic initrd, with kernel modules taken from @var{linux}. @var{file-systems} is a list of file-systems to be mounted by the initrd, possibly in addition to the root file system specified on the kernel command line via @option{--root}. @var{mapped-devices} is a list of device mappings to realize before @var{file-systems} are mounted."
  49503. msgstr ""
  49504. #. type: deffn
  49505. #: guix-git/doc/guix.texi:33117
  49506. msgid "@var{qemu-networking?} and @var{volatile-root?} behaves as in @code{raw-initrd}."
  49507. msgstr ""
  49508. #. type: deffn
  49509. #: guix-git/doc/guix.texi:33122
  49510. msgid "The initrd is automatically populated with all the kernel modules necessary for @var{file-systems} and for the given options. Additional kernel modules can be listed in @var{linux-modules}. They will be added to the initrd, and loaded at boot time in the order in which they appear."
  49511. msgstr ""
  49512. #. type: Plain text
  49513. #: guix-git/doc/guix.texi:33129
  49514. msgid "Needless to say, the initrds we produce and use embed a statically-linked Guile, and the initialization program is a Guile program. That gives a lot of flexibility. The @code{expression->initrd} procedure builds such an initrd, given the program to run in that initrd."
  49515. msgstr ""
  49516. #. type: deffn
  49517. #: guix-git/doc/guix.texi:33130
  49518. #, no-wrap
  49519. msgid "{Scheme Procedure} expression->initrd @var{exp} @"
  49520. msgstr ""
  49521. #. type: deffn
  49522. #: guix-git/doc/guix.texi:33136
  49523. msgid "[#:guile %guile-static-stripped] [#:name \"guile-initrd\"] Return as a file-like object a Linux initrd (a gzipped cpio archive) containing @var{guile} and that evaluates @var{exp}, a G-expression, upon booting. All the derivations referenced by @var{exp} are automatically copied to the initrd."
  49524. msgstr ""
  49525. #. type: cindex
  49526. #: guix-git/doc/guix.texi:33142
  49527. #, no-wrap
  49528. msgid "boot loader"
  49529. msgstr ""
  49530. #. type: Plain text
  49531. #: guix-git/doc/guix.texi:33149
  49532. msgid "The operating system supports multiple bootloaders. The bootloader is configured using @code{bootloader-configuration} declaration. All the fields of this structure are bootloader agnostic except for one field, @code{bootloader} that indicates the bootloader to be configured and installed."
  49533. msgstr ""
  49534. #. type: Plain text
  49535. #: guix-git/doc/guix.texi:33154
  49536. msgid "Some of the bootloaders do not honor every field of @code{bootloader-configuration}. For instance, the extlinux bootloader does not support themes and thus ignores the @code{theme} field."
  49537. msgstr ""
  49538. #. type: deftp
  49539. #: guix-git/doc/guix.texi:33155
  49540. #, no-wrap
  49541. msgid "{Data Type} bootloader-configuration"
  49542. msgstr ""
  49543. #. type: deftp
  49544. #: guix-git/doc/guix.texi:33157
  49545. msgid "The type of a bootloader configuration declaration."
  49546. msgstr ""
  49547. #. type: cindex
  49548. #: guix-git/doc/guix.texi:33161
  49549. #, no-wrap
  49550. msgid "EFI, bootloader"
  49551. msgstr ""
  49552. #. type: cindex
  49553. #: guix-git/doc/guix.texi:33162
  49554. #, no-wrap
  49555. msgid "UEFI, bootloader"
  49556. msgstr ""
  49557. #. type: cindex
  49558. #: guix-git/doc/guix.texi:33163
  49559. #, no-wrap
  49560. msgid "BIOS, bootloader"
  49561. msgstr ""
  49562. #. type: table
  49563. #: guix-git/doc/guix.texi:33168
  49564. msgid "The bootloader to use, as a @code{bootloader} object. For now @code{grub-bootloader}, @code{grub-efi-bootloader}, @code{grub-efi-netboot-bootloader}, @code{extlinux-bootloader} and @code{u-boot-bootloader} are supported."
  49565. msgstr ""
  49566. #. type: cindex
  49567. #: guix-git/doc/guix.texi:33169
  49568. #, no-wrap
  49569. msgid "ARM, bootloaders"
  49570. msgstr ""
  49571. #. type: cindex
  49572. #: guix-git/doc/guix.texi:33170
  49573. #, no-wrap
  49574. msgid "AArch64, bootloaders"
  49575. msgstr ""
  49576. #. type: table
  49577. #: guix-git/doc/guix.texi:33175
  49578. msgid "Available bootloaders are described in @code{(gnu bootloader @dots{})} modules. In particular, @code{(gnu bootloader u-boot)} contains definitions of bootloaders for a wide range of ARM and AArch64 systems, using the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot bootloader}."
  49579. msgstr ""
  49580. #. type: table
  49581. #: guix-git/doc/guix.texi:33181
  49582. msgid "@code{grub-efi-bootloader} allows to boot on modern systems using the @dfn{Unified Extensible Firmware Interface} (UEFI). This is what you should use if the installation image contains a @file{/sys/firmware/efi} directory when you boot it on your system."
  49583. msgstr ""
  49584. #. type: table
  49585. #: guix-git/doc/guix.texi:33185
  49586. msgid "@code{grub-bootloader} allows you to boot in particular Intel-based machines in ``legacy'' BIOS mode."
  49587. msgstr ""
  49588. #. type: vindex
  49589. #: guix-git/doc/guix.texi:33186
  49590. #, no-wrap
  49591. msgid "grub-efi-netboot-bootloader"
  49592. msgstr ""
  49593. #. type: table
  49594. #: guix-git/doc/guix.texi:33190
  49595. msgid "@code{grub-efi-netboot-bootloader} allows you to boot your system over network through TFTP@. In combination with an NFS root file system this allows you to build a diskless Guix system."
  49596. msgstr ""
  49597. #. type: table
  49598. #: guix-git/doc/guix.texi:33196
  49599. msgid "The installation of the @code{grub-efi-netboot-bootloader} generates the content of the TFTP root directory at @code{target} (@pxref{Bootloader Configuration, @code{target}}), to be served by a TFTP server. You may want to mount your TFTP server directory onto @code{target} to move the required files to the TFTP server automatically."
  49600. msgstr ""
  49601. #. type: table
  49602. #: guix-git/doc/guix.texi:33205
  49603. msgid "If you plan to use an NFS root file system as well (actually if you mount the store from an NFS share), then the TFTP server needs to serve the file @file{/boot/grub/grub.cfg} and other files from the store (like GRUBs background image, the kernel (@pxref{operating-system Reference, @code{kernel}}) and the initrd (@pxref{operating-system Reference, @code{initrd}})), too. All these files from the store will be accessed by GRUB through TFTP with their normal store path, for example as @file{tftp://tftp-server/gnu/store/…-initrd/initrd.cpio.gz}."
  49604. msgstr ""
  49605. #. type: table
  49606. #: guix-git/doc/guix.texi:33213
  49607. msgid "Two symlinks are created to make this possible. The first symlink is @code{target}@file{/efi/Guix/boot/grub/grub.cfg} pointing to @file{../../../boot/grub/grub.cfg}, where @code{target} may be @file{/boot}. In this case the link is not leaving the served TFTP root directory, but otherwise it does. The second link is @code{target}@file{/gnu/store} and points to @file{../gnu/store}. This link is leaving the served TFTP root directory."
  49608. msgstr ""
  49609. #. type: table
  49610. #: guix-git/doc/guix.texi:33218
  49611. msgid "The assumption behind all this is that you have an NFS server exporting the root file system for your Guix system, and additionally a TFTP server exporting your @code{target} directory—usually @file{/boot}—from that same root file system for your Guix system. In this constellation the symlinks will work."
  49612. msgstr ""
  49613. #. type: table
  49614. #: guix-git/doc/guix.texi:33222
  49615. msgid "For other constellations you will have to program your own bootloader installer, which then takes care to make necessary files from the store accessible through TFTP, for example by copying them into the TFTP root directory at @code{target}."
  49616. msgstr ""
  49617. #. type: table
  49618. #: guix-git/doc/guix.texi:33227
  49619. msgid "It is important to note that symlinks pointing outside the TFTP root directory may need to be allowed in the configuration of your TFTP server. Further the store link exposes the whole store through TFTP@. Both points need to be considered carefully for security aspects."
  49620. msgstr ""
  49621. #. type: table
  49622. #: guix-git/doc/guix.texi:33232
  49623. msgid "Beside the @code{grub-efi-netboot-bootloader}, the already mentioned TFTP and NFS servers, you also need a properly configured DHCP server to make the booting over netboot possible. For all this we can currently only recommend you to look for instructions about @acronym{PXE, Preboot eXecution Environment}."
  49624. msgstr ""
  49625. #. type: table
  49626. #: guix-git/doc/guix.texi:33236
  49627. msgid "This is a string denoting the target onto which to install the bootloader."
  49628. msgstr ""
  49629. #. type: table
  49630. #: guix-git/doc/guix.texi:33245
  49631. msgid "The interpretation depends on the bootloader in question. For @code{grub-bootloader}, for example, it should be a device name understood by the bootloader @command{installer} command, such as @code{/dev/sda} or @code{(hd0)} (@pxref{Invoking grub-install,,, grub, GNU GRUB Manual}). For @code{grub-efi-bootloader}, it should be the mount point of the EFI file system, usually @file{/boot/efi}. For @code{grub-efi-netboot-bootloader}, @code{target} should be the mount point corresponding to the TFTP root directory of your TFTP server."
  49632. msgstr ""
  49633. #. type: item
  49634. #: guix-git/doc/guix.texi:33246
  49635. #, no-wrap
  49636. msgid "@code{menu-entries} (default: @code{()})"
  49637. msgstr ""
  49638. #. type: table
  49639. #: guix-git/doc/guix.texi:33250
  49640. msgid "A possibly empty list of @code{menu-entry} objects (see below), denoting entries to appear in the bootloader menu, in addition to the current system entry and the entry pointing to previous system generations."
  49641. msgstr ""
  49642. #. type: item
  49643. #: guix-git/doc/guix.texi:33251
  49644. #, no-wrap
  49645. msgid "@code{default-entry} (default: @code{0})"
  49646. msgstr ""
  49647. #. type: table
  49648. #: guix-git/doc/guix.texi:33254
  49649. msgid "The index of the default boot menu entry. Index 0 is for the entry of the current system."
  49650. msgstr ""
  49651. #. type: item
  49652. #: guix-git/doc/guix.texi:33255
  49653. #, no-wrap
  49654. msgid "@code{timeout} (default: @code{5})"
  49655. msgstr ""
  49656. #. type: table
  49657. #: guix-git/doc/guix.texi:33258
  49658. msgid "The number of seconds to wait for keyboard input before booting. Set to 0 to boot immediately, and to -1 to wait indefinitely."
  49659. msgstr ""
  49660. #. type: cindex
  49661. #: guix-git/doc/guix.texi:33259
  49662. #, no-wrap
  49663. msgid "keyboard layout, for the bootloader"
  49664. msgstr ""
  49665. #. type: table
  49666. #: guix-git/doc/guix.texi:33263
  49667. msgid "If this is @code{#f}, the bootloader's menu (if any) uses the default keyboard layout, usually US@tie{}English (``qwerty'')."
  49668. msgstr ""
  49669. #. type: table
  49670. #: guix-git/doc/guix.texi:33266
  49671. msgid "Otherwise, this must be a @code{keyboard-layout} object (@pxref{Keyboard Layout})."
  49672. msgstr ""
  49673. #. type: quotation
  49674. #: guix-git/doc/guix.texi:33270
  49675. msgid "This option is currently ignored by bootloaders other than @code{grub} and @code{grub-efi}."
  49676. msgstr ""
  49677. #. type: item
  49678. #: guix-git/doc/guix.texi:33272
  49679. #, no-wrap
  49680. msgid "@code{theme} (default: @var{#f})"
  49681. msgstr ""
  49682. #. type: table
  49683. #: guix-git/doc/guix.texi:33276
  49684. msgid "The bootloader theme object describing the theme to use. If no theme is provided, some bootloaders might use a default theme, that's true for GRUB."
  49685. msgstr ""
  49686. #. type: item
  49687. #: guix-git/doc/guix.texi:33277
  49688. #, fuzzy, no-wrap
  49689. msgid "@code{terminal-outputs} (default: @code{'(gfxterm)})"
  49690. msgstr "@code{features} (@code{'()})"
  49691. #. type: table
  49692. #: guix-git/doc/guix.texi:33284
  49693. msgid "The output terminals used for the bootloader boot menu, as a list of symbols. GRUB accepts the values: @code{console}, @code{serial}, @code{serial_@{0-3@}}, @code{gfxterm}, @code{vga_text}, @code{mda_text}, @code{morse}, and @code{pkmodem}. This field corresponds to the GRUB variable @code{GRUB_TERMINAL_OUTPUT} (@pxref{Simple configuration,,, grub,GNU GRUB manual})."
  49694. msgstr ""
  49695. #. type: item
  49696. #: guix-git/doc/guix.texi:33285
  49697. #, no-wrap
  49698. msgid "@code{terminal-inputs} (default: @code{'()})"
  49699. msgstr ""
  49700. #. type: table
  49701. #: guix-git/doc/guix.texi:33293
  49702. msgid "The input terminals used for the bootloader boot menu, as a list of symbols. For GRUB, the default is the native platform terminal as determined at run-time. GRUB accepts the values: @code{console}, @code{serial}, @code{serial_@{0-3@}}, @code{at_keyboard}, and @code{usb_keyboard}. This field corresponds to the GRUB variable @code{GRUB_TERMINAL_INPUT} (@pxref{Simple configuration,,, grub,GNU GRUB manual})."
  49703. msgstr ""
  49704. #. type: item
  49705. #: guix-git/doc/guix.texi:33294
  49706. #, no-wrap
  49707. msgid "@code{serial-unit} (default: @code{#f})"
  49708. msgstr ""
  49709. #. type: table
  49710. #: guix-git/doc/guix.texi:33298
  49711. msgid "The serial unit used by the bootloader, as an integer from 0 to 3. For GRUB, it is chosen at run-time; currently GRUB chooses 0, which corresponds to COM1 (@pxref{Serial terminal,,, grub,GNU GRUB manual})."
  49712. msgstr ""
  49713. #. type: item
  49714. #: guix-git/doc/guix.texi:33299
  49715. #, no-wrap
  49716. msgid "@code{serial-speed} (default: @code{#f})"
  49717. msgstr ""
  49718. #. type: table
  49719. #: guix-git/doc/guix.texi:33303
  49720. msgid "The speed of the serial interface, as an integer. For GRUB, the default value is chosen at run-time; currently GRUB chooses 9600@tie{}bps (@pxref{Serial terminal,,, grub,GNU GRUB manual})."
  49721. msgstr ""
  49722. #. type: cindex
  49723. #: guix-git/doc/guix.texi:33307
  49724. #, no-wrap
  49725. msgid "dual boot"
  49726. msgstr ""
  49727. #. type: cindex
  49728. #: guix-git/doc/guix.texi:33308
  49729. #, no-wrap
  49730. msgid "boot menu"
  49731. msgstr ""
  49732. #. type: Plain text
  49733. #: guix-git/doc/guix.texi:33314
  49734. msgid "Should you want to list additional boot menu entries @i{via} the @code{menu-entries} field above, you will need to create them with the @code{menu-entry} form. For example, imagine you want to be able to boot another distro (hard to imagine!), you can define a menu entry along these lines:"
  49735. msgstr ""
  49736. #. type: lisp
  49737. #: guix-git/doc/guix.texi:33321
  49738. #, no-wrap
  49739. msgid ""
  49740. "(menu-entry\n"
  49741. " (label \"The Other Distro\")\n"
  49742. " (linux \"/boot/old/vmlinux-2.6.32\")\n"
  49743. " (linux-arguments '(\"root=/dev/sda2\"))\n"
  49744. " (initrd \"/boot/old/initrd\"))\n"
  49745. msgstr ""
  49746. #. type: Plain text
  49747. #: guix-git/doc/guix.texi:33324
  49748. msgid "Details below."
  49749. msgstr ""
  49750. #. type: deftp
  49751. #: guix-git/doc/guix.texi:33325
  49752. #, no-wrap
  49753. msgid "{Data Type} menu-entry"
  49754. msgstr ""
  49755. #. type: deftp
  49756. #: guix-git/doc/guix.texi:33327
  49757. msgid "The type of an entry in the bootloader menu."
  49758. msgstr ""
  49759. #. type: table
  49760. #: guix-git/doc/guix.texi:33332
  49761. msgid "The label to show in the menu---e.g., @code{\"GNU\"}."
  49762. msgstr ""
  49763. #. type: item
  49764. #: guix-git/doc/guix.texi:33333
  49765. #, fuzzy, no-wrap
  49766. msgid "@code{linux} (default: @code{#f})"
  49767. msgstr "@code{challenge}(默认值:@code{#f})"
  49768. #. type: table
  49769. #: guix-git/doc/guix.texi:33335
  49770. msgid "The Linux kernel image to boot, for example:"
  49771. msgstr ""
  49772. #. type: lisp
  49773. #: guix-git/doc/guix.texi:33338
  49774. #, no-wrap
  49775. msgid "(file-append linux-libre \"/bzImage\")\n"
  49776. msgstr ""
  49777. #. type: table
  49778. #: guix-git/doc/guix.texi:33343
  49779. msgid "For GRUB, it is also possible to specify a device explicitly in the file path using GRUB's device naming convention (@pxref{Naming convention,,, grub, GNU GRUB manual}), for example:"
  49780. msgstr ""
  49781. #. type: example
  49782. #: guix-git/doc/guix.texi:33346
  49783. #, no-wrap
  49784. msgid "\"(hd0,msdos1)/boot/vmlinuz\"\n"
  49785. msgstr ""
  49786. #. type: table
  49787. #: guix-git/doc/guix.texi:33350
  49788. msgid "If the device is specified explicitly as above, then the @code{device} field is ignored entirely."
  49789. msgstr ""
  49790. #. type: item
  49791. #: guix-git/doc/guix.texi:33351
  49792. #, no-wrap
  49793. msgid "@code{linux-arguments} (default: @code{()})"
  49794. msgstr ""
  49795. #. type: table
  49796. #: guix-git/doc/guix.texi:33354
  49797. msgid "The list of extra Linux kernel command-line arguments---e.g., @code{(\"console=ttyS0\")}."
  49798. msgstr ""
  49799. #. type: item
  49800. #: guix-git/doc/guix.texi:33355
  49801. #, fuzzy, no-wrap
  49802. msgid "@code{initrd} (default: @code{#f})"
  49803. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  49804. #. type: table
  49805. #: guix-git/doc/guix.texi:33358
  49806. msgid "A G-Expression or string denoting the file name of the initial RAM disk to use (@pxref{G-Expressions})."
  49807. msgstr ""
  49808. #. type: item
  49809. #: guix-git/doc/guix.texi:33359
  49810. #, no-wrap
  49811. msgid "@code{device} (default: @code{#f})"
  49812. msgstr ""
  49813. #. type: table
  49814. #: guix-git/doc/guix.texi:33362
  49815. msgid "The device where the kernel and initrd are to be found---i.e., for GRUB, @dfn{root} for this menu entry (@pxref{root,,, grub, GNU GRUB manual})."
  49816. msgstr ""
  49817. #. type: table
  49818. #: guix-git/doc/guix.texi:33368
  49819. msgid "This may be a file system label (a string), a file system UUID (a bytevector, @pxref{File Systems}), or @code{#f}, in which case the bootloader will search the device containing the file specified by the @code{linux} field (@pxref{search,,, grub, GNU GRUB manual}). It must @emph{not} be an OS device name such as @file{/dev/sda1}."
  49820. msgstr ""
  49821. #. type: item
  49822. #: guix-git/doc/guix.texi:33369
  49823. #, fuzzy, no-wrap
  49824. msgid "@code{multiboot-kernel} (default: @code{#f})"
  49825. msgstr "@code{challenge}(默认值:@code{#f})"
  49826. #. type: table
  49827. #: guix-git/doc/guix.texi:33373
  49828. msgid "The kernel to boot in Multiboot-mode (@pxref{multiboot,,, grub, GNU GRUB manual}). When this field is set, a Multiboot menu-entry is generated. For example:"
  49829. msgstr ""
  49830. #. type: lisp
  49831. #: guix-git/doc/guix.texi:33376
  49832. #, no-wrap
  49833. msgid "(file-append mach \"/boot/gnumach\")\n"
  49834. msgstr ""
  49835. #. type: item
  49836. #: guix-git/doc/guix.texi:33378
  49837. #, fuzzy, no-wrap
  49838. msgid "@code{multiboot-arguments} (default: @code{()})"
  49839. msgstr "@code{features} (@code{'()})"
  49840. #. type: table
  49841. #: guix-git/doc/guix.texi:33380
  49842. msgid "The list of extra command-line arguments for the multiboot-kernel."
  49843. msgstr ""
  49844. #. type: item
  49845. #: guix-git/doc/guix.texi:33381
  49846. #, fuzzy, no-wrap
  49847. msgid "@code{multiboot-modules} (default: @code{()})"
  49848. msgstr "@code{features} (@code{'()})"
  49849. #. type: table
  49850. #: guix-git/doc/guix.texi:33383
  49851. msgid "The list of commands for loading Multiboot modules. For example:"
  49852. msgstr ""
  49853. #. type: lisp
  49854. #: guix-git/doc/guix.texi:33389
  49855. #, no-wrap
  49856. msgid ""
  49857. "(list (list (file-append hurd \"/hurd/ext2fs.static\") \"ext2fs\"\n"
  49858. " @dots{})\n"
  49859. " (list (file-append libc \"/lib/ld.so.1\") \"exec\"\n"
  49860. " @dots{}))\n"
  49861. msgstr ""
  49862. #. type: cindex
  49863. #: guix-git/doc/guix.texi:33394 guix-git/doc/guix.texi:33453
  49864. #, no-wrap
  49865. msgid "HDPI"
  49866. msgstr ""
  49867. #. type: cindex
  49868. #: guix-git/doc/guix.texi:33395 guix-git/doc/guix.texi:33454
  49869. #, no-wrap
  49870. msgid "HiDPI"
  49871. msgstr ""
  49872. #. type: cindex
  49873. #: guix-git/doc/guix.texi:33396 guix-git/doc/guix.texi:33455
  49874. #, fuzzy, no-wrap
  49875. msgid "resolution"
  49876. msgstr "隔离"
  49877. #. type: Plain text
  49878. #: guix-git/doc/guix.texi:33400
  49879. msgid "For now only GRUB has theme support. GRUB themes are created using the @code{grub-theme} form, which is not fully documented yet."
  49880. msgstr ""
  49881. #. type: deftp
  49882. #: guix-git/doc/guix.texi:33401
  49883. #, fuzzy, no-wrap
  49884. msgid "{Data Type} grub-theme"
  49885. msgstr "{数据类型} build-machine"
  49886. #. type: deftp
  49887. #: guix-git/doc/guix.texi:33403
  49888. msgid "Data type representing the configuration of the GRUB theme."
  49889. msgstr ""
  49890. #. type: item
  49891. #: guix-git/doc/guix.texi:33405
  49892. #, fuzzy, no-wrap
  49893. msgid "@code{gfxmode} (default: @code{'(\"auto\")})"
  49894. msgstr "@code{mate}(默认值:@code{mate})"
  49895. #. type: table
  49896. #: guix-git/doc/guix.texi:33408
  49897. msgid "The GRUB @code{gfxmode} to set (a list of screen resolution strings, @pxref{gfxmode,,, grub, GNU GRUB manual})."
  49898. msgstr ""
  49899. #. type: deffn
  49900. #: guix-git/doc/guix.texi:33411
  49901. #, no-wrap
  49902. msgid "{Scheme Procedure} grub-theme"
  49903. msgstr ""
  49904. #. type: deffn
  49905. #: guix-git/doc/guix.texi:33415
  49906. msgid "Return the default GRUB theme used by the operating system if no @code{theme} field is specified in @code{bootloader-configuration} record."
  49907. msgstr ""
  49908. #. type: deffn
  49909. #: guix-git/doc/guix.texi:33418
  49910. msgid "It comes with a fancy background image displaying the GNU and Guix logos."
  49911. msgstr ""
  49912. #. type: Plain text
  49913. #: guix-git/doc/guix.texi:33422
  49914. msgid "For example, to override the default resolution, you may use something like"
  49915. msgstr ""
  49916. #. type: lisp
  49917. #: guix-git/doc/guix.texi:33430
  49918. #, no-wrap
  49919. msgid ""
  49920. "(bootloader\n"
  49921. " (bootloader-configuration\n"
  49922. " ;; @dots{}\n"
  49923. " (theme (grub-theme\n"
  49924. " (inherit (grub-theme))\n"
  49925. " (gfxmode '(\"1024x786x32\" \"auto\"))))))\n"
  49926. msgstr ""
  49927. #. type: section
  49928. #: guix-git/doc/guix.texi:33433
  49929. #, no-wrap
  49930. msgid "Invoking @code{guix system}"
  49931. msgstr ""
  49932. #. type: Plain text
  49933. #: guix-git/doc/guix.texi:33438
  49934. msgid "Once you have written an operating system declaration as seen in the previous section, it can be @dfn{instantiated} using the @command{guix system} command. The synopsis is:"
  49935. msgstr ""
  49936. #. type: example
  49937. #: guix-git/doc/guix.texi:33441
  49938. #, no-wrap
  49939. msgid "guix system @var{options}@dots{} @var{action} @var{file}\n"
  49940. msgstr ""
  49941. #. type: Plain text
  49942. #: guix-git/doc/guix.texi:33447
  49943. msgid "@var{file} must be the name of a file containing an @code{operating-system} declaration. @var{action} specifies how the operating system is instantiated. Currently the following values are supported:"
  49944. msgstr ""
  49945. #. type: item
  49946. #: guix-git/doc/guix.texi:33449
  49947. #, no-wrap
  49948. msgid "search"
  49949. msgstr ""
  49950. #. type: table
  49951. #: guix-git/doc/guix.texi:33452
  49952. msgid "Display available service type definitions that match the given regular expressions, sorted by relevance:"
  49953. msgstr ""
  49954. #. type: example
  49955. #: guix-git/doc/guix.texi:33474
  49956. #, no-wrap
  49957. msgid ""
  49958. "$ guix system search console\n"
  49959. "name: console-fonts\n"
  49960. "location: gnu/services/base.scm:806:2\n"
  49961. "extends: shepherd-root\n"
  49962. "description: Install the given fonts on the specified ttys (fonts are per\n"
  49963. "+ virtual console on GNU/Linux). The value of this service is a list of\n"
  49964. "+ tty/font pairs. The font can be the name of a font provided by the `kbd'\n"
  49965. "+ package or any valid argument to `setfont', as in this example:\n"
  49966. "+\n"
  49967. "+ '((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  49968. "+ (\"tty2\" . (file-append\n"
  49969. "+ font-tamzen\n"
  49970. "+ \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  49971. "+ (\"tty3\" . (file-append\n"
  49972. "+ font-terminus\n"
  49973. "+ \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  49974. "relevance: 9\n"
  49975. "\n"
  49976. msgstr ""
  49977. #. type: example
  49978. #: guix-git/doc/guix.texi:33480
  49979. #, no-wrap
  49980. msgid ""
  49981. "name: mingetty\n"
  49982. "location: gnu/services/base.scm:1190:2\n"
  49983. "extends: shepherd-root\n"
  49984. "description: Provide console login using the `mingetty' program.\n"
  49985. "relevance: 2\n"
  49986. "\n"
  49987. msgstr ""
  49988. #. type: example
  49989. #: guix-git/doc/guix.texi:33487
  49990. #, no-wrap
  49991. msgid ""
  49992. "name: login\n"
  49993. "location: gnu/services/base.scm:860:2\n"
  49994. "extends: pam\n"
  49995. "description: Provide a console log-in service as specified by its\n"
  49996. "+ configuration value, a `login-configuration' object.\n"
  49997. "relevance: 2\n"
  49998. "\n"
  49999. msgstr ""
  50000. #. type: example
  50001. #: guix-git/doc/guix.texi:33489
  50002. #, no-wrap
  50003. msgid "@dots{}\n"
  50004. msgstr ""
  50005. #. type: table
  50006. #: guix-git/doc/guix.texi:33494
  50007. msgid "As for @command{guix package --search}, the result is written in @code{recutils} format, which makes it easy to filter the output (@pxref{Top, GNU recutils databases,, recutils, GNU recutils manual})."
  50008. msgstr ""
  50009. #. type: item
  50010. #: guix-git/doc/guix.texi:33495
  50011. #, no-wrap
  50012. msgid "reconfigure"
  50013. msgstr ""
  50014. #. type: table
  50015. #: guix-git/doc/guix.texi:33500
  50016. msgid "Build the operating system described in @var{file}, activate it, and switch to it@footnote{This action (and the related actions @code{switch-generation} and @code{roll-back}) are usable only on systems already running Guix System.}."
  50017. msgstr ""
  50018. #. type: quotation
  50019. #: guix-git/doc/guix.texi:33508
  50020. msgid "It is highly recommended to run @command{guix pull} once before you run @command{guix system reconfigure} for the first time (@pxref{Invoking guix pull}). Failing to do that you would see an older version of Guix once @command{reconfigure} has completed."
  50021. msgstr ""
  50022. #. type: table
  50023. #: guix-git/doc/guix.texi:33516
  50024. msgid "This effects all the configuration specified in @var{file}: user accounts, system services, global package list, setuid programs, etc. The command starts system services specified in @var{file} that are not currently running; if a service is currently running this command will arrange for it to be upgraded the next time it is stopped (e.g.@: by @code{herd stop X} or @code{herd restart X})."
  50025. msgstr ""
  50026. #. type: table
  50027. #: guix-git/doc/guix.texi:33522
  50028. msgid "This command creates a new generation whose number is one greater than the current generation (as reported by @command{guix system list-generations}). If that generation already exists, it will be overwritten. This behavior mirrors that of @command{guix package} (@pxref{Invoking guix package})."
  50029. msgstr ""
  50030. #. type: table
  50031. #: guix-git/doc/guix.texi:33527
  50032. msgid "It also adds a bootloader menu entry for the new OS configuration, ---unless @option{--no-bootloader} is passed. For GRUB, it moves entries for older configurations to a submenu, allowing you to choose an older system generation at boot time should you need it."
  50033. msgstr ""
  50034. #. type: cindex
  50035. #: guix-git/doc/guix.texi:33528 guix-git/doc/guix.texi:33853
  50036. #: guix-git/doc/guix.texi:34805
  50037. #, fuzzy, no-wrap
  50038. msgid "provenance tracking, of the operating system"
  50039. msgstr "配置操作系统。"
  50040. #. type: table
  50041. #: guix-git/doc/guix.texi:33533
  50042. msgid "Upon completion, the new system is deployed under @file{/run/current-system}. This directory contains @dfn{provenance meta-data}: the list of channels in use (@pxref{Channels}) and @var{file} itself, when available. You can view it by running:"
  50043. msgstr ""
  50044. #. type: example
  50045. #: guix-git/doc/guix.texi:33536
  50046. #, no-wrap
  50047. msgid "guix system describe\n"
  50048. msgstr "guix system describe\n"
  50049. #. type: table
  50050. #: guix-git/doc/guix.texi:33542
  50051. msgid "This information is useful should you later want to inspect how this particular generation was built. In fact, assuming @var{file} is self-contained, you can later rebuild generation @var{n} of your operating system with:"
  50052. msgstr ""
  50053. #. type: example
  50054. #: guix-git/doc/guix.texi:33548
  50055. #, no-wrap
  50056. msgid ""
  50057. "guix time-machine \\\n"
  50058. " -C /var/guix/profiles/system-@var{n}-link/channels.scm -- \\\n"
  50059. " system reconfigure \\\n"
  50060. " /var/guix/profiles/system-@var{n}-link/configuration.scm\n"
  50061. msgstr ""
  50062. #. type: table
  50063. #: guix-git/doc/guix.texi:33554
  50064. msgid "You can think of it as some sort of built-in version control! Your system is not just a binary artifact: @emph{it carries its own source}. @xref{Service Reference, @code{provenance-service-type}}, for more information on provenance tracking."
  50065. msgstr ""
  50066. #. type: table
  50067. #: guix-git/doc/guix.texi:33560
  50068. msgid "By default, @command{reconfigure} @emph{prevents you from downgrading your system}, which could (re)introduce security vulnerabilities and also cause problems with ``stateful'' services such as database management systems. You can override that behavior by passing @option{--allow-downgrades}."
  50069. msgstr ""
  50070. #. type: item
  50071. #: guix-git/doc/guix.texi:33561
  50072. #, no-wrap
  50073. msgid "switch-generation"
  50074. msgstr ""
  50075. #. type: table
  50076. #: guix-git/doc/guix.texi:33570
  50077. msgid "Switch to an existing system generation. This action atomically switches the system profile to the specified system generation. It also rearranges the system's existing bootloader menu entries. It makes the menu entry for the specified system generation the default, and it moves the entries for the other generations to a submenu, if supported by the bootloader being used. The next time the system boots, it will use the specified system generation."
  50078. msgstr ""
  50079. #. type: table
  50080. #: guix-git/doc/guix.texi:33574
  50081. msgid "The bootloader itself is not being reinstalled when using this command. Thus, the installed bootloader is used with an updated configuration file."
  50082. msgstr ""
  50083. #. type: table
  50084. #: guix-git/doc/guix.texi:33578
  50085. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to system generation 7:"
  50086. msgstr ""
  50087. #. type: example
  50088. #: guix-git/doc/guix.texi:33581
  50089. #, no-wrap
  50090. msgid "guix system switch-generation 7\n"
  50091. msgstr ""
  50092. #. type: table
  50093. #: guix-git/doc/guix.texi:33589
  50094. msgid "The target generation can also be specified relative to the current generation with the form @code{+N} or @code{-N}, where @code{+3} means ``3 generations ahead of the current generation,'' and @code{-1} means ``1 generation prior to the current generation.'' When specifying a negative value such as @code{-1}, you must precede it with @code{--} to prevent it from being parsed as an option. For example:"
  50095. msgstr ""
  50096. #. type: example
  50097. #: guix-git/doc/guix.texi:33592
  50098. #, no-wrap
  50099. msgid "guix system switch-generation -- -1\n"
  50100. msgstr ""
  50101. #. type: table
  50102. #: guix-git/doc/guix.texi:33600
  50103. msgid "Currently, the effect of invoking this action is @emph{only} to switch the system profile to an existing generation and rearrange the bootloader menu entries. To actually start using the target system generation, you must reboot after running this action. In the future, it will be updated to do the same things as @command{reconfigure}, like activating and deactivating services."
  50104. msgstr ""
  50105. #. type: table
  50106. #: guix-git/doc/guix.texi:33602
  50107. msgid "This action will fail if the specified generation does not exist."
  50108. msgstr ""
  50109. #. type: item
  50110. #: guix-git/doc/guix.texi:33603
  50111. #, no-wrap
  50112. msgid "roll-back"
  50113. msgstr ""
  50114. #. type: table
  50115. #: guix-git/doc/guix.texi:33609
  50116. msgid "Switch to the preceding system generation. The next time the system boots, it will use the preceding system generation. This is the inverse of @command{reconfigure}, and it is exactly the same as invoking @command{switch-generation} with an argument of @code{-1}."
  50117. msgstr ""
  50118. #. type: table
  50119. #: guix-git/doc/guix.texi:33613
  50120. msgid "Currently, as with @command{switch-generation}, you must reboot after running this action to actually start using the preceding system generation."
  50121. msgstr ""
  50122. #. type: item
  50123. #: guix-git/doc/guix.texi:33614
  50124. #, no-wrap
  50125. msgid "delete-generations"
  50126. msgstr ""
  50127. #. type: cindex
  50128. #: guix-git/doc/guix.texi:33615
  50129. #, no-wrap
  50130. msgid "deleting system generations"
  50131. msgstr ""
  50132. #. type: cindex
  50133. #: guix-git/doc/guix.texi:33616
  50134. #, no-wrap
  50135. msgid "saving space"
  50136. msgstr ""
  50137. #. type: table
  50138. #: guix-git/doc/guix.texi:33620
  50139. msgid "Delete system generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  50140. msgstr ""
  50141. #. type: table
  50142. #: guix-git/doc/guix.texi:33624
  50143. msgid "This works in the same way as @samp{guix package --delete-generations} (@pxref{Invoking guix package, @option{--delete-generations}}). With no arguments, all system generations but the current one are deleted:"
  50144. msgstr ""
  50145. #. type: example
  50146. #: guix-git/doc/guix.texi:33627
  50147. #, no-wrap
  50148. msgid "guix system delete-generations\n"
  50149. msgstr ""
  50150. #. type: table
  50151. #: guix-git/doc/guix.texi:33631
  50152. msgid "You can also select the generations you want to delete. The example below deletes all the system generations that are more than two month old:"
  50153. msgstr ""
  50154. #. type: example
  50155. #: guix-git/doc/guix.texi:33634
  50156. #, no-wrap
  50157. msgid "guix system delete-generations 2m\n"
  50158. msgstr ""
  50159. #. type: table
  50160. #: guix-git/doc/guix.texi:33639
  50161. msgid "Running this command automatically reinstalls the bootloader with an updated list of menu entries---e.g., the ``old generations'' sub-menu in GRUB no longer lists the generations that have been deleted."
  50162. msgstr ""
  50163. #. type: table
  50164. #: guix-git/doc/guix.texi:33644
  50165. msgid "Build the derivation of the operating system, which includes all the configuration files and programs needed to boot and run the system. This action does not actually install anything."
  50166. msgstr ""
  50167. #. type: item
  50168. #: guix-git/doc/guix.texi:33645
  50169. #, no-wrap
  50170. msgid "init"
  50171. msgstr ""
  50172. #. type: table
  50173. #: guix-git/doc/guix.texi:33649
  50174. msgid "Populate the given directory with all the files necessary to run the operating system specified in @var{file}. This is useful for first-time installations of Guix System. For instance:"
  50175. msgstr ""
  50176. #. type: example
  50177. #: guix-git/doc/guix.texi:33652
  50178. #, no-wrap
  50179. msgid "guix system init my-os-config.scm /mnt\n"
  50180. msgstr ""
  50181. #. type: table
  50182. #: guix-git/doc/guix.texi:33659
  50183. msgid "copies to @file{/mnt} all the store items required by the configuration specified in @file{my-os-config.scm}. This includes configuration files, packages, and so on. It also creates other essential files needed for the system to operate correctly---e.g., the @file{/etc}, @file{/var}, and @file{/run} directories, and the @file{/bin/sh} file."
  50184. msgstr ""
  50185. #. type: table
  50186. #: guix-git/doc/guix.texi:33663
  50187. msgid "This command also installs bootloader on the target specified in @file{my-os-config}, unless the @option{--no-bootloader} option was passed."
  50188. msgstr ""
  50189. #. type: item
  50190. #: guix-git/doc/guix.texi:33664
  50191. #, no-wrap
  50192. msgid "vm"
  50193. msgstr ""
  50194. #. type: cindex
  50195. #: guix-git/doc/guix.texi:33665 guix-git/doc/guix.texi:34226
  50196. #, no-wrap
  50197. msgid "virtual machine"
  50198. msgstr ""
  50199. #. type: cindex
  50200. #: guix-git/doc/guix.texi:33666
  50201. #, no-wrap
  50202. msgid "VM"
  50203. msgstr ""
  50204. #. type: anchor{#1}
  50205. #: guix-git/doc/guix.texi:33670
  50206. msgid "guix system vm"
  50207. msgstr ""
  50208. #. type: table
  50209. #: guix-git/doc/guix.texi:33670
  50210. msgid "Build a virtual machine that contains the operating system declared in @var{file}, and return a script to run that virtual machine (VM)."
  50211. msgstr ""
  50212. #. type: quotation
  50213. #: guix-git/doc/guix.texi:33678
  50214. msgid "The @code{vm} action and others below can use KVM support in the Linux-libre kernel. Specifically, if the machine has hardware virtualization support, the corresponding KVM kernel module should be loaded, and the @file{/dev/kvm} device node must exist and be readable and writable by the user and by the build users of the daemon (@pxref{Build Environment Setup})."
  50215. msgstr ""
  50216. #. type: table
  50217. #: guix-git/doc/guix.texi:33683
  50218. msgid "Arguments given to the script are passed to QEMU as in the example below, which enables networking and requests 1@tie{}GiB of RAM for the emulated machine:"
  50219. msgstr ""
  50220. #. type: example
  50221. #: guix-git/doc/guix.texi:33686
  50222. #, no-wrap
  50223. msgid "$ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  50224. msgstr ""
  50225. #. type: table
  50226. #: guix-git/doc/guix.texi:33689
  50227. msgid "The VM shares its store with the host system."
  50228. msgstr ""
  50229. #. type: table
  50230. #: guix-git/doc/guix.texi:33694
  50231. msgid "Additional file systems can be shared between the host and the VM using the @option{--share} and @option{--expose} command-line options: the former specifies a directory to be shared with write access, while the latter provides read-only access to the shared directory."
  50232. msgstr ""
  50233. #. type: table
  50234. #: guix-git/doc/guix.texi:33698
  50235. msgid "The example below creates a VM in which the user's home directory is accessible read-only, and where the @file{/exchange} directory is a read-write mapping of @file{$HOME/tmp} on the host:"
  50236. msgstr ""
  50237. #. type: example
  50238. #: guix-git/doc/guix.texi:33702
  50239. #, no-wrap
  50240. msgid ""
  50241. "guix system vm my-config.scm \\\n"
  50242. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  50243. msgstr ""
  50244. #. type: table
  50245. #: guix-git/doc/guix.texi:33707
  50246. msgid "On GNU/Linux, the default is to boot directly to the kernel; this has the advantage of requiring only a very tiny root disk image since the store of the host can then be mounted."
  50247. msgstr ""
  50248. #. type: table
  50249. #: guix-git/doc/guix.texi:33713
  50250. msgid "The @option{--full-boot} option forces a complete boot sequence, starting with the bootloader. This requires more disk space since a root image containing at least the kernel, initrd, and bootloader data files must be created. The @option{--image-size} option can be used to specify the size of the image."
  50251. msgstr ""
  50252. #. type: cindex
  50253. #: guix-git/doc/guix.texi:33714
  50254. #, no-wrap
  50255. msgid "System images, creation in various formats"
  50256. msgstr ""
  50257. #. type: cindex
  50258. #: guix-git/doc/guix.texi:33715
  50259. #, no-wrap
  50260. msgid "Creating system images in various formats"
  50261. msgstr ""
  50262. #. type: item
  50263. #: guix-git/doc/guix.texi:33716
  50264. #, no-wrap
  50265. msgid "image"
  50266. msgstr ""
  50267. #. type: itemx
  50268. #: guix-git/doc/guix.texi:33717
  50269. #, no-wrap
  50270. msgid "docker-image"
  50271. msgstr ""
  50272. #. type: table
  50273. #: guix-git/doc/guix.texi:33725
  50274. msgid "Return a virtual machine, disk image, or Docker image of the operating system declared in @var{file} that stands alone. By default, @command{guix system} estimates the size of the image needed to store the system, but you can use the @option{--image-size} option to specify a value. Docker images are built to contain exactly what they need, so the @option{--image-size} option is ignored in the case of @code{docker-image}."
  50275. msgstr ""
  50276. #. type: cindex
  50277. #: guix-git/doc/guix.texi:33726
  50278. #, no-wrap
  50279. msgid "image, creating disk images"
  50280. msgstr ""
  50281. #. type: table
  50282. #: guix-git/doc/guix.texi:33738
  50283. msgid "The @code{image} command can produce various image types. The image type can be selected using the @option{--image-type} option. It defaults to @code{efi-raw}. When its value is @code{iso9660}, the @option{--label} option can be used to specify a volume ID with @code{image}. By default, the root file system of a disk image is mounted non-volatile; the @option{--volatile} option can be provided to make it volatile instead. When using @code{image}, the bootloader installed on the generated image is taken from the provided @code{operating-system} definition. The following example demonstrates how to generate an image that uses the @code{grub-efi-bootloader} bootloader and boot it with QEMU:"
  50284. msgstr ""
  50285. #. type: example
  50286. #: guix-git/doc/guix.texi:33746
  50287. #, no-wrap
  50288. msgid ""
  50289. "image=$(guix system image --image-type=qcow2 \\\n"
  50290. " gnu/system/examples/lightweight-desktop.tmpl)\n"
  50291. "cp $image /tmp/my-image.qcow2\n"
  50292. "chmod +w /tmp/my-image.qcow2\n"
  50293. "qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 \\\n"
  50294. " -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin\n"
  50295. msgstr ""
  50296. #. type: table
  50297. #: guix-git/doc/guix.texi:33752
  50298. msgid "When using the @code{efi-raw} image type, a raw disk image is produced; it can be copied as is to a USB stick, for instance. Assuming @code{/dev/sdc} is the device corresponding to a USB stick, one can copy the image to it using the following command:"
  50299. msgstr ""
  50300. #. type: example
  50301. #: guix-git/doc/guix.texi:33755
  50302. #, no-wrap
  50303. msgid "# dd if=$(guix system image my-os.scm) of=/dev/sdc status=progress\n"
  50304. msgstr ""
  50305. #. type: table
  50306. #: guix-git/doc/guix.texi:33759
  50307. msgid "The @code{--list-image-types} command lists all the available image types."
  50308. msgstr ""
  50309. #. type: cindex
  50310. #: guix-git/doc/guix.texi:33760
  50311. #, no-wrap
  50312. msgid "creating virtual machine images"
  50313. msgstr ""
  50314. #. type: table
  50315. #: guix-git/doc/guix.texi:33769
  50316. msgid "When using the @code{qcow2} image type, the returned image is in qcow2 format, which the QEMU emulator can efficiently use. @xref{Running Guix in a VM}, for more information on how to run the image in a virtual machine. The @code{grub-bootloader} bootloader is always used independently of what is declared in the @code{operating-system} file passed as argument. This is to make it easier to work with QEMU, which uses the SeaBIOS BIOS by default, expecting a bootloader to be installed in the Master Boot Record (MBR)."
  50317. msgstr ""
  50318. #. type: cindex
  50319. #: guix-git/doc/guix.texi:33770
  50320. #, no-wrap
  50321. msgid "docker-image, creating docker images"
  50322. msgstr ""
  50323. #. type: table
  50324. #: guix-git/doc/guix.texi:33776
  50325. msgid "When using @code{docker-image}, a Docker image is produced. Guix builds the image from scratch, not from a pre-existing Docker base image. As a result, it contains @emph{exactly} what you define in the operating system configuration file. You can then load the image and launch a Docker container using commands like the following:"
  50326. msgstr ""
  50327. #. type: example
  50328. #: guix-git/doc/guix.texi:33781
  50329. #, no-wrap
  50330. msgid ""
  50331. "image_id=\"$(docker load < guix-system-docker-image.tar.gz)\"\n"
  50332. "container_id=\"$(docker create $image_id)\"\n"
  50333. "docker start $container_id\n"
  50334. msgstr ""
  50335. #. type: table
  50336. #: guix-git/doc/guix.texi:33788
  50337. msgid "This command starts a new Docker container from the specified image. It will boot the Guix system in the usual manner, which means it will start any services you have defined in the operating system configuration. You can get an interactive shell running in the container using @command{docker exec}:"
  50338. msgstr ""
  50339. #. type: example
  50340. #: guix-git/doc/guix.texi:33791
  50341. #, no-wrap
  50342. msgid "docker exec -ti $container_id /run/current-system/profile/bin/bash --login\n"
  50343. msgstr ""
  50344. #. type: table
  50345. #: guix-git/doc/guix.texi:33798
  50346. msgid "Depending on what you run in the Docker container, it may be necessary to give the container additional permissions. For example, if you intend to build software using Guix inside of the Docker container, you may need to pass the @option{--privileged} option to @code{docker create}."
  50347. msgstr ""
  50348. #. type: table
  50349. #: guix-git/doc/guix.texi:33802
  50350. msgid "Last, the @option{--network} option applies to @command{guix system docker-image}: it produces an image where network is supposedly shared with the host, and thus without services like nscd or NetworkManager."
  50351. msgstr ""
  50352. #. type: table
  50353. #: guix-git/doc/guix.texi:33810
  50354. msgid "Return a script to run the operating system declared in @var{file} within a container. Containers are a set of lightweight isolation mechanisms provided by the kernel Linux-libre. Containers are substantially less resource-demanding than full virtual machines since the kernel, shared objects, and other resources can be shared with the host system; this also means they provide thinner isolation."
  50355. msgstr ""
  50356. #. type: table
  50357. #: guix-git/doc/guix.texi:33814
  50358. msgid "Currently, the script must be run as root in order to support more than a single user and group. The container shares its store with the host system."
  50359. msgstr ""
  50360. #. type: table
  50361. #: guix-git/doc/guix.texi:33818
  50362. msgid "As with the @code{vm} action (@pxref{guix system vm}), additional file systems to be shared between the host and container can be specified using the @option{--share} and @option{--expose} options:"
  50363. msgstr ""
  50364. #. type: example
  50365. #: guix-git/doc/guix.texi:33822
  50366. #, no-wrap
  50367. msgid ""
  50368. "guix system container my-config.scm \\\n"
  50369. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  50370. msgstr ""
  50371. #. type: quotation
  50372. #: guix-git/doc/guix.texi:33826
  50373. msgid "This option requires Linux-libre 3.19 or newer."
  50374. msgstr ""
  50375. #. type: Plain text
  50376. #: guix-git/doc/guix.texi:33833
  50377. msgid "@var{options} can contain any of the common build options (@pxref{Common Build Options}). In addition, @var{options} can contain one of the following:"
  50378. msgstr ""
  50379. #. type: table
  50380. #: guix-git/doc/guix.texi:33842
  50381. msgid "Consider the operating-system @var{expr} evaluates to. This is an alternative to specifying a file which evaluates to an operating system. This is used to generate the Guix system installer @pxref{Building the Installation Image})."
  50382. msgstr ""
  50383. #. type: table
  50384. #: guix-git/doc/guix.texi:33847
  50385. msgid "Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build})."
  50386. msgstr ""
  50387. #. type: table
  50388. #: guix-git/doc/guix.texi:33852
  50389. msgid "Return the derivation file name of the given operating system without building anything."
  50390. msgstr ""
  50391. #. type: table
  50392. #: guix-git/doc/guix.texi:33861
  50393. msgid "As discussed above, @command{guix system init} and @command{guix system reconfigure} always save provenance information @i{via} a dedicated service (@pxref{Service Reference, @code{provenance-service-type}}). However, other commands don't do that by default. If you wish to, say, create a virtual machine image that contains provenance information, you can run:"
  50394. msgstr ""
  50395. #. type: example
  50396. #: guix-git/doc/guix.texi:33864
  50397. #, no-wrap
  50398. msgid "guix system image -t qcow2 --save-provenance config.scm\n"
  50399. msgstr ""
  50400. #. type: table
  50401. #: guix-git/doc/guix.texi:33871
  50402. msgid "That way, the resulting image will effectively ``embed its own source'' in the form of meta-data in @file{/run/current-system}. With that information, one can rebuild the image to make sure it really contains what it pretends to contain; or they could use that to derive a variant of the image."
  50403. msgstr ""
  50404. #. type: item
  50405. #: guix-git/doc/guix.texi:33872
  50406. #, fuzzy, no-wrap
  50407. msgid "--image-type=@var{type}"
  50408. msgstr "--log-compression=@var{type}"
  50409. #. type: table
  50410. #: guix-git/doc/guix.texi:33875
  50411. msgid "For the @code{image} action, create an image with given @var{type}."
  50412. msgstr ""
  50413. #. type: table
  50414. #: guix-git/doc/guix.texi:33878
  50415. msgid "When this option is omitted, @command{guix system} uses the @code{efi-raw} image type."
  50416. msgstr ""
  50417. #. type: cindex
  50418. #: guix-git/doc/guix.texi:33879
  50419. #, no-wrap
  50420. msgid "ISO-9660 format"
  50421. msgstr ""
  50422. #. type: cindex
  50423. #: guix-git/doc/guix.texi:33880
  50424. #, no-wrap
  50425. msgid "CD image format"
  50426. msgstr ""
  50427. #. type: cindex
  50428. #: guix-git/doc/guix.texi:33881
  50429. #, no-wrap
  50430. msgid "DVD image format"
  50431. msgstr ""
  50432. #. type: table
  50433. #: guix-git/doc/guix.texi:33884
  50434. msgid "@option{--image-type=iso9660} produces an ISO-9660 image, suitable for burning on CDs and DVDs."
  50435. msgstr ""
  50436. #. type: item
  50437. #: guix-git/doc/guix.texi:33885
  50438. #, no-wrap
  50439. msgid "--image-size=@var{size}"
  50440. msgstr ""
  50441. #. type: table
  50442. #: guix-git/doc/guix.texi:33890
  50443. msgid "For the @code{image} action, create an image of the given @var{size}. @var{size} may be a number of bytes, or it may include a unit as a suffix (@pxref{Block size, size specifications,, coreutils, GNU Coreutils})."
  50444. msgstr ""
  50445. #. type: table
  50446. #: guix-git/doc/guix.texi:33894
  50447. msgid "When this option is omitted, @command{guix system} computes an estimate of the image size as a function of the size of the system declared in @var{file}."
  50448. msgstr ""
  50449. #. type: table
  50450. #: guix-git/doc/guix.texi:33899
  50451. msgid "For the @code{container} action, allow containers to access the host network, that is, do not create a network namespace."
  50452. msgstr ""
  50453. #. type: item
  50454. #: guix-git/doc/guix.texi:33905
  50455. #, no-wrap
  50456. msgid "--skip-checks"
  50457. msgstr ""
  50458. #. type: table
  50459. #: guix-git/doc/guix.texi:33907
  50460. msgid "Skip pre-installation safety checks."
  50461. msgstr ""
  50462. #. type: table
  50463. #: guix-git/doc/guix.texi:33914
  50464. msgid "By default, @command{guix system init} and @command{guix system reconfigure} perform safety checks: they make sure the file systems that appear in the @code{operating-system} declaration actually exist (@pxref{File Systems}), and that any Linux kernel modules that may be needed at boot time are listed in @code{initrd-modules} (@pxref{Initial RAM Disk}). Passing this option skips these tests altogether."
  50465. msgstr ""
  50466. #. type: table
  50467. #: guix-git/doc/guix.texi:33917
  50468. msgid "Instruct @command{guix system reconfigure} to allow system downgrades."
  50469. msgstr ""
  50470. #. type: table
  50471. #: guix-git/doc/guix.texi:33925
  50472. msgid "By default, @command{reconfigure} prevents you from downgrading your system. It achieves that by comparing the provenance info of your system (shown by @command{guix system describe}) with that of your @command{guix} command (shown by @command{guix describe}). If the commits for @command{guix} are not descendants of those used for your system, @command{guix system reconfigure} errors out. Passing @option{--allow-downgrades} allows you to bypass these checks."
  50473. msgstr ""
  50474. #. type: cindex
  50475. #: guix-git/doc/guix.texi:33931
  50476. #, no-wrap
  50477. msgid "on-error"
  50478. msgstr ""
  50479. #. type: cindex
  50480. #: guix-git/doc/guix.texi:33932
  50481. #, no-wrap
  50482. msgid "on-error strategy"
  50483. msgstr ""
  50484. #. type: cindex
  50485. #: guix-git/doc/guix.texi:33933
  50486. #, no-wrap
  50487. msgid "error strategy"
  50488. msgstr ""
  50489. #. type: item
  50490. #: guix-git/doc/guix.texi:33934
  50491. #, no-wrap
  50492. msgid "--on-error=@var{strategy}"
  50493. msgstr ""
  50494. #. type: table
  50495. #: guix-git/doc/guix.texi:33937
  50496. msgid "Apply @var{strategy} when an error occurs when reading @var{file}. @var{strategy} may be one of the following:"
  50497. msgstr ""
  50498. #. type: item
  50499. #: guix-git/doc/guix.texi:33939
  50500. #, no-wrap
  50501. msgid "nothing-special"
  50502. msgstr ""
  50503. #. type: table
  50504. #: guix-git/doc/guix.texi:33941
  50505. msgid "Report the error concisely and exit. This is the default strategy."
  50506. msgstr ""
  50507. #. type: item
  50508. #: guix-git/doc/guix.texi:33942
  50509. #, no-wrap
  50510. msgid "backtrace"
  50511. msgstr ""
  50512. #. type: table
  50513. #: guix-git/doc/guix.texi:33944
  50514. msgid "Likewise, but also display a backtrace."
  50515. msgstr ""
  50516. #. type: item
  50517. #: guix-git/doc/guix.texi:33945
  50518. #, no-wrap
  50519. msgid "debug"
  50520. msgstr ""
  50521. #. type: table
  50522. #: guix-git/doc/guix.texi:33951
  50523. msgid "Report the error and enter Guile's debugger. From there, you can run commands such as @code{,bt} to get a backtrace, @code{,locals} to display local variable values, and more generally inspect the state of the program. @xref{Debug Commands,,, guile, GNU Guile Reference Manual}, for a list of available debugging commands."
  50524. msgstr ""
  50525. #. type: Plain text
  50526. #: guix-git/doc/guix.texi:33958
  50527. msgid "Once you have built, configured, re-configured, and re-re-configured your Guix installation, you may find it useful to list the operating system generations available on disk---and that you can choose from the bootloader boot menu:"
  50528. msgstr ""
  50529. #. type: item
  50530. #: guix-git/doc/guix.texi:33961
  50531. #, no-wrap
  50532. msgid "describe"
  50533. msgstr ""
  50534. #. type: table
  50535. #: guix-git/doc/guix.texi:33964
  50536. msgid "Describe the current system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available."
  50537. msgstr ""
  50538. #. type: item
  50539. #: guix-git/doc/guix.texi:33965
  50540. #, no-wrap
  50541. msgid "list-generations"
  50542. msgstr ""
  50543. #. type: table
  50544. #: guix-git/doc/guix.texi:33970
  50545. msgid "List a summary of each generation of the operating system available on disk, in a human-readable way. This is similar to the @option{--list-generations} option of @command{guix package} (@pxref{Invoking guix package})."
  50546. msgstr ""
  50547. #. type: table
  50548. #: guix-git/doc/guix.texi:33975
  50549. msgid "Optionally, one can specify a pattern, with the same syntax that is used in @command{guix package --list-generations}, to restrict the list of generations displayed. For instance, the following command displays generations that are up to 10 days old:"
  50550. msgstr ""
  50551. #. type: example
  50552. #: guix-git/doc/guix.texi:33978
  50553. #, no-wrap
  50554. msgid "$ guix system list-generations 10d\n"
  50555. msgstr ""
  50556. #. type: Plain text
  50557. #: guix-git/doc/guix.texi:33985
  50558. msgid "The @command{guix system} command has even more to offer! The following sub-commands allow you to visualize how your system services relate to each other:"
  50559. msgstr ""
  50560. #. type: anchor{#1}
  50561. #: guix-git/doc/guix.texi:33987
  50562. msgid "system-extension-graph"
  50563. msgstr ""
  50564. #. type: item
  50565. #: guix-git/doc/guix.texi:33989
  50566. #, no-wrap
  50567. msgid "extension-graph"
  50568. msgstr ""
  50569. #. type: table
  50570. #: guix-git/doc/guix.texi:33996
  50571. msgid "Emit to standard output the @dfn{service extension graph} of the operating system defined in @var{file} (@pxref{Service Composition}, for more information on service extensions). By default the output is in Dot/Graphviz format, but you can choose a different format with @option{--graph-backend}, as with @command{guix graph} (@pxref{Invoking guix graph, @option{--backend}}):"
  50572. msgstr ""
  50573. #. type: table
  50574. #: guix-git/doc/guix.texi:33998
  50575. msgid "The command:"
  50576. msgstr ""
  50577. #. type: example
  50578. #: guix-git/doc/guix.texi:34001
  50579. #, no-wrap
  50580. msgid "$ guix system extension-graph @var{file} | xdot -\n"
  50581. msgstr ""
  50582. #. type: table
  50583. #: guix-git/doc/guix.texi:34004
  50584. msgid "shows the extension relations among services."
  50585. msgstr ""
  50586. #. type: anchor{#1}
  50587. #: guix-git/doc/guix.texi:34006
  50588. msgid "system-shepherd-graph"
  50589. msgstr ""
  50590. #. type: item
  50591. #: guix-git/doc/guix.texi:34006
  50592. #, no-wrap
  50593. msgid "shepherd-graph"
  50594. msgstr ""
  50595. #. type: table
  50596. #: guix-git/doc/guix.texi:34011
  50597. msgid "Emit to standard output the @dfn{dependency graph} of shepherd services of the operating system defined in @var{file}. @xref{Shepherd Services}, for more information and for an example graph."
  50598. msgstr ""
  50599. #. type: table
  50600. #: guix-git/doc/guix.texi:34014
  50601. msgid "Again, the default output format is Dot/Graphviz, but you can pass @option{--graph-backend} to select a different one."
  50602. msgstr ""
  50603. #. type: section
  50604. #: guix-git/doc/guix.texi:34018
  50605. #, fuzzy, no-wrap
  50606. msgid "Invoking @code{guix deploy}"
  50607. msgstr "调用@command{guix-daemon}"
  50608. #. type: Plain text
  50609. #: guix-git/doc/guix.texi:34026
  50610. msgid "We've already seen @code{operating-system} declarations used to manage a machine's configuration locally. Suppose you need to configure multiple machines, though---perhaps you're managing a service on the web that's comprised of several servers. @command{guix deploy} enables you to use those same @code{operating-system} declarations to manage multiple remote hosts at once as a logical ``deployment''."
  50611. msgstr ""
  50612. #. type: quotation
  50613. #: guix-git/doc/guix.texi:34031
  50614. msgid "The functionality described in this section is still under development and is subject to change. Get in touch with us on @email{guix-devel@@gnu.org}!"
  50615. msgstr ""
  50616. #. type: example
  50617. #: guix-git/doc/guix.texi:34035
  50618. #, no-wrap
  50619. msgid "guix deploy @var{file}\n"
  50620. msgstr ""
  50621. #. type: Plain text
  50622. #: guix-git/doc/guix.texi:34039
  50623. msgid "Such an invocation will deploy the machines that the code within @var{file} evaluates to. As an example, @var{file} might contain a definition like this:"
  50624. msgstr ""
  50625. #. type: lisp
  50626. #: guix-git/doc/guix.texi:34046
  50627. #, no-wrap
  50628. msgid ""
  50629. ";; This is a Guix deployment of a \"bare bones\" setup, with\n"
  50630. ";; no X11 display server, to a machine with an SSH daemon\n"
  50631. ";; listening on localhost:2222. A configuration such as this\n"
  50632. ";; may be appropriate for virtual machine with ports\n"
  50633. ";; forwarded to the host's loopback interface.\n"
  50634. "\n"
  50635. msgstr ""
  50636. #. type: lisp
  50637. #: guix-git/doc/guix.texi:34049
  50638. #, no-wrap
  50639. msgid ""
  50640. "(use-service-modules networking ssh)\n"
  50641. "(use-package-modules bootloaders)\n"
  50642. "\n"
  50643. msgstr ""
  50644. #. type: lisp
  50645. #: guix-git/doc/guix.texi:34070
  50646. #, no-wrap
  50647. msgid ""
  50648. "(define %system\n"
  50649. " (operating-system\n"
  50650. " (host-name \"gnu-deployed\")\n"
  50651. " (timezone \"Etc/UTC\")\n"
  50652. " (bootloader (bootloader-configuration\n"
  50653. " (bootloader grub-bootloader)\n"
  50654. " (target \"/dev/vda\")\n"
  50655. " (terminal-outputs '(console))))\n"
  50656. " (file-systems (cons (file-system\n"
  50657. " (mount-point \"/\")\n"
  50658. " (device \"/dev/vda1\")\n"
  50659. " (type \"ext4\"))\n"
  50660. " %base-file-systems))\n"
  50661. " (services\n"
  50662. " (append (list (service dhcp-client-service-type)\n"
  50663. " (service openssh-service-type\n"
  50664. " (openssh-configuration\n"
  50665. " (permit-root-login #t)\n"
  50666. " (allow-empty-passwords? #t))))\n"
  50667. " %base-services))))\n"
  50668. "\n"
  50669. msgstr ""
  50670. #. type: lisp
  50671. #: guix-git/doc/guix.texi:34080
  50672. #, no-wrap
  50673. msgid ""
  50674. "(list (machine\n"
  50675. " (operating-system %system)\n"
  50676. " (environment managed-host-environment-type)\n"
  50677. " (configuration (machine-ssh-configuration\n"
  50678. " (host-name \"localhost\")\n"
  50679. " (system \"x86_64-linux\")\n"
  50680. " (user \"alice\")\n"
  50681. " (identity \"./id_rsa\")\n"
  50682. " (port 2222)))))\n"
  50683. msgstr ""
  50684. #. type: Plain text
  50685. #: guix-git/doc/guix.texi:34093
  50686. msgid "The file should evaluate to a list of @var{machine} objects. This example, upon being deployed, will create a new generation on the remote system realizing the @code{operating-system} declaration @code{%system}. @code{environment} and @code{configuration} specify how the machine should be provisioned---that is, how the computing resources should be created and managed. The above example does not create any resources, as a @code{'managed-host} is a machine that is already running the Guix system and available over the network. This is a particularly simple case; a more complex deployment may involve, for example, starting virtual machines through a Virtual Private Server (VPS) provider. In such a case, a different @var{environment} type would be used."
  50687. msgstr ""
  50688. #. type: Plain text
  50689. #: guix-git/doc/guix.texi:34098
  50690. msgid "Do note that you first need to generate a key pair on the coordinator machine to allow the daemon to export signed archives of files from the store (@pxref{Invoking guix archive}), though this step is automatic on Guix System:"
  50691. msgstr ""
  50692. #. type: Plain text
  50693. #: guix-git/doc/guix.texi:34106
  50694. #, fuzzy
  50695. msgid "Each target machine must authorize the key of the master machine so that it accepts store items it receives from the coordinator:"
  50696. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  50697. #. type: example
  50698. #: guix-git/doc/guix.texi:34109
  50699. #, fuzzy, no-wrap
  50700. msgid "# guix archive --authorize < coordinator-public-key.txt\n"
  50701. msgstr "# guix archive --authorize < master-public-key.txt\n"
  50702. #. type: Plain text
  50703. #: guix-git/doc/guix.texi:34120
  50704. msgid "@code{user}, in this example, specifies the name of the user account to log in as to perform the deployment. Its default value is @code{root}, but root login over SSH may be forbidden in some cases. To work around this, @command{guix deploy} can log in as an unprivileged user and employ @code{sudo} to escalate privileges. This will only work if @code{sudo} is currently installed on the remote and can be invoked non-interactively as @code{user}. That is, the line in @code{sudoers} granting @code{user} the ability to use @code{sudo} must contain the @code{NOPASSWD} tag. This can be accomplished with the following operating system configuration snippet:"
  50705. msgstr ""
  50706. #. type: lisp
  50707. #: guix-git/doc/guix.texi:34124
  50708. #, no-wrap
  50709. msgid ""
  50710. "(use-modules ...\n"
  50711. " (gnu system)) ;for %sudoers-specification\n"
  50712. "\n"
  50713. msgstr ""
  50714. #. type: lisp
  50715. #: guix-git/doc/guix.texi:34126
  50716. #, no-wrap
  50717. msgid ""
  50718. "(define %user \"username\")\n"
  50719. "\n"
  50720. msgstr ""
  50721. #. type: lisp
  50722. #: guix-git/doc/guix.texi:34134
  50723. #, no-wrap
  50724. msgid ""
  50725. "(operating-system\n"
  50726. " ...\n"
  50727. " (sudoers-file\n"
  50728. " (plain-file \"sudoers\"\n"
  50729. " (string-append (plain-file-content %sudoers-specification)\n"
  50730. " (format #f \"~a ALL = NOPASSWD: ALL~%\"\n"
  50731. " %user)))))\n"
  50732. "\n"
  50733. msgstr ""
  50734. #. type: Plain text
  50735. #: guix-git/doc/guix.texi:34139
  50736. msgid "For more information regarding the format of the @file{sudoers} file, consult @command{man sudoers}."
  50737. msgstr ""
  50738. #. type: deftp
  50739. #: guix-git/doc/guix.texi:34140
  50740. #, fuzzy, no-wrap
  50741. msgid "{Data Type} machine"
  50742. msgstr "{数据类型} build-machine"
  50743. #. type: deftp
  50744. #: guix-git/doc/guix.texi:34143
  50745. msgid "This is the data type representing a single machine in a heterogeneous Guix deployment."
  50746. msgstr ""
  50747. #. type: table
  50748. #: guix-git/doc/guix.texi:34147
  50749. #, fuzzy
  50750. msgid "The object of the operating system configuration to deploy."
  50751. msgstr "管理操作系统配置。"
  50752. #. type: code{#1}
  50753. #: guix-git/doc/guix.texi:34148
  50754. #, fuzzy, no-wrap
  50755. msgid "environment"
  50756. msgstr "构建环境"
  50757. #. type: table
  50758. #: guix-git/doc/guix.texi:34150
  50759. msgid "An @code{environment-type} describing how the machine should be provisioned."
  50760. msgstr ""
  50761. #. type: item
  50762. #: guix-git/doc/guix.texi:34151
  50763. #, fuzzy, no-wrap
  50764. msgid "@code{configuration} (default: @code{#f})"
  50765. msgstr "@code{journal-content}(默认值:@code{#f})"
  50766. #. type: table
  50767. #: guix-git/doc/guix.texi:34156
  50768. msgid "An object describing the configuration for the machine's @code{environment}. If the @code{environment} has a default configuration, @code{#f} may be used. If @code{#f} is used for an environment with no default configuration, however, an error will be thrown."
  50769. msgstr ""
  50770. #. type: deftp
  50771. #: guix-git/doc/guix.texi:34159
  50772. #, fuzzy, no-wrap
  50773. msgid "{Data Type} machine-ssh-configuration"
  50774. msgstr "{数据类型} build-machine"
  50775. #. type: deftp
  50776. #: guix-git/doc/guix.texi:34162
  50777. msgid "This is the data type representing the SSH client parameters for a machine with an @code{environment} of @code{managed-host-environment-type}."
  50778. msgstr ""
  50779. #. type: item
  50780. #: guix-git/doc/guix.texi:34165
  50781. #, fuzzy, no-wrap
  50782. msgid "@code{build-locally?} (default: @code{#t})"
  50783. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50784. #. type: table
  50785. #: guix-git/doc/guix.texi:34167
  50786. msgid "If false, system derivations will be built on the machine being deployed to."
  50787. msgstr ""
  50788. #. type: code{#1}
  50789. #: guix-git/doc/guix.texi:34167
  50790. #, no-wrap
  50791. msgid "system"
  50792. msgstr "系统"
  50793. #. type: table
  50794. #: guix-git/doc/guix.texi:34170
  50795. #, fuzzy
  50796. msgid "The system type describing the architecture of the machine being deployed to---e.g., @code{\"x86_64-linux\"}."
  50797. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  50798. #. type: item
  50799. #: guix-git/doc/guix.texi:34170
  50800. #, fuzzy, no-wrap
  50801. msgid "@code{authorize?} (default: @code{#t})"
  50802. msgstr "@code{mate}(默认值:@code{mate})"
  50803. #. type: table
  50804. #: guix-git/doc/guix.texi:34173
  50805. msgid "If true, the coordinator's signing key will be added to the remote's ACL keyring."
  50806. msgstr ""
  50807. #. type: item
  50808. #: guix-git/doc/guix.texi:34174
  50809. #, fuzzy, no-wrap
  50810. msgid "@code{user} (default: @code{\"root\"})"
  50811. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  50812. #. type: item
  50813. #: guix-git/doc/guix.texi:34175
  50814. #, fuzzy, no-wrap
  50815. msgid "@code{identity} (default: @code{#f})"
  50816. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  50817. #. type: table
  50818. #: guix-git/doc/guix.texi:34178
  50819. msgid "If specified, the path to the SSH private key to use to authenticate with the remote host."
  50820. msgstr ""
  50821. #. type: item
  50822. #: guix-git/doc/guix.texi:34179
  50823. #, fuzzy, no-wrap
  50824. msgid "@code{host-key} (default: @code{#f})"
  50825. msgstr "@code{port}(默认值:@code{22})"
  50826. #. type: table
  50827. #: guix-git/doc/guix.texi:34181
  50828. msgid "This should be the SSH host key of the machine, which looks like this:"
  50829. msgstr ""
  50830. #. type: example
  50831. #: guix-git/doc/guix.texi:34184
  50832. #, fuzzy, no-wrap
  50833. msgid "ssh-ed25519 AAAAC3Nz@dots{} root@@example.org\n"
  50834. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  50835. #. type: table
  50836. #: guix-git/doc/guix.texi:34189
  50837. msgid "When @code{host-key} is @code{#f}, the server is authenticated against the @file{~/.ssh/known_hosts} file, just like the OpenSSH @command{ssh} client does."
  50838. msgstr ""
  50839. #. type: item
  50840. #: guix-git/doc/guix.texi:34190
  50841. #, fuzzy, no-wrap
  50842. msgid "@code{allow-downgrades?} (default: @code{#f})"
  50843. msgstr "@code{challenge}(默认值:@code{#f})"
  50844. #. type: table
  50845. #: guix-git/doc/guix.texi:34192
  50846. msgid "Whether to allow potential downgrades."
  50847. msgstr ""
  50848. #. type: table
  50849. #: guix-git/doc/guix.texi:34200
  50850. msgid "Like @command{guix system reconfigure}, @command{guix deploy} compares the channel commits currently deployed on the remote host (as returned by @command{guix system describe}) to those currently in use (as returned by @command{guix describe}) to determine whether commits currently in use are descendants of those deployed. When this is not the case and @code{allow-downgrades?} is false, it raises an error. This ensures you do not accidentally downgrade remote machines."
  50851. msgstr ""
  50852. #. type: deftp
  50853. #: guix-git/doc/guix.texi:34203
  50854. #, no-wrap
  50855. msgid "{Data Type} digital-ocean-configuration"
  50856. msgstr ""
  50857. #. type: deftp
  50858. #: guix-git/doc/guix.texi:34206
  50859. msgid "This is the data type describing the Droplet that should be created for a machine with an @code{environment} of @code{digital-ocean-environment-type}."
  50860. msgstr ""
  50861. #. type: code{#1}
  50862. #: guix-git/doc/guix.texi:34208
  50863. #, fuzzy, no-wrap
  50864. msgid "ssh-key"
  50865. msgstr "主机公钥"
  50866. #. type: table
  50867. #: guix-git/doc/guix.texi:34211
  50868. msgid "The path to the SSH private key to use to authenticate with the remote host. In the future, this field may not exist."
  50869. msgstr ""
  50870. #. type: code{#1}
  50871. #: guix-git/doc/guix.texi:34211
  50872. #, no-wrap
  50873. msgid "tags"
  50874. msgstr ""
  50875. #. type: table
  50876. #: guix-git/doc/guix.texi:34214
  50877. msgid "A list of string ``tags'' that uniquely identify the machine. Must be given such that no two machines in the deployment have the same set of tags."
  50878. msgstr ""
  50879. #. type: code{#1}
  50880. #: guix-git/doc/guix.texi:34214
  50881. #, no-wrap
  50882. msgid "region"
  50883. msgstr ""
  50884. #. type: table
  50885. #: guix-git/doc/guix.texi:34216
  50886. msgid "A Digital Ocean region slug, such as @code{\"nyc3\"}."
  50887. msgstr ""
  50888. #. type: table
  50889. #: guix-git/doc/guix.texi:34218
  50890. msgid "A Digital Ocean size slug, such as @code{\"s-1vcpu-1gb\"}"
  50891. msgstr ""
  50892. #. type: code{#1}
  50893. #: guix-git/doc/guix.texi:34218
  50894. #, no-wrap
  50895. msgid "enable-ipv6?"
  50896. msgstr ""
  50897. #. type: table
  50898. #: guix-git/doc/guix.texi:34220
  50899. msgid "Whether or not the droplet should be created with IPv6 networking."
  50900. msgstr ""
  50901. #. type: section
  50902. #: guix-git/doc/guix.texi:34224
  50903. #, no-wrap
  50904. msgid "Running Guix in a Virtual Machine"
  50905. msgstr ""
  50906. #. type: Plain text
  50907. #: guix-git/doc/guix.texi:34232
  50908. msgid "To run Guix in a virtual machine (VM), one can use the pre-built Guix VM image distributed at @url{@value{BASE-URL}/guix-system-vm-image-@value{VERSION}.x86_64-linux.qcow2}. This image is a compressed image in QCOW format. You can pass it to an emulator such as @uref{https://qemu.org/, QEMU} (see below for details)."
  50909. msgstr ""
  50910. #. type: Plain text
  50911. #: guix-git/doc/guix.texi:34239
  50912. msgid "This image boots the Xfce graphical environment and it contains some commonly used tools. You can install more software in the image by running @command{guix package} in a terminal (@pxref{Invoking guix package}). You can also reconfigure the system based on its initial configuration file available as @file{/run/current-system/configuration.scm} (@pxref{Using the Configuration System})."
  50913. msgstr ""
  50914. #. type: Plain text
  50915. #: guix-git/doc/guix.texi:34242
  50916. msgid "Instead of using this pre-built image, one can also build their own image using @command{guix system image} (@pxref{Invoking guix system})."
  50917. msgstr ""
  50918. #. type: cindex
  50919. #: guix-git/doc/guix.texi:34243
  50920. #, no-wrap
  50921. msgid "QEMU"
  50922. msgstr ""
  50923. #. type: Plain text
  50924. #: guix-git/doc/guix.texi:34250
  50925. msgid "If you built your own image, you must copy it out of the store (@pxref{The Store}) and give yourself permission to write to the copy before you can use it. When invoking QEMU, you must choose a system emulator that is suitable for your hardware platform. Here is a minimal QEMU invocation that will boot the result of @command{guix system image -t qcow2} on x86_64 hardware:"
  50926. msgstr ""
  50927. #. type: example
  50928. #: guix-git/doc/guix.texi:34257
  50929. #, no-wrap
  50930. msgid ""
  50931. "$ qemu-system-x86_64 \\\n"
  50932. " -nic user,model=virtio-net-pci \\\n"
  50933. " -enable-kvm -m 1024 \\\n"
  50934. " -device virtio-blk,drive=myhd \\\n"
  50935. " -drive if=none,file=/tmp/qemu-image,id=myhd\n"
  50936. msgstr ""
  50937. #. type: Plain text
  50938. #: guix-git/doc/guix.texi:34260
  50939. msgid "Here is what each of these options means:"
  50940. msgstr ""
  50941. #. type: item
  50942. #: guix-git/doc/guix.texi:34262
  50943. #, no-wrap
  50944. msgid "qemu-system-x86_64"
  50945. msgstr ""
  50946. #. type: table
  50947. #: guix-git/doc/guix.texi:34265
  50948. msgid "This specifies the hardware platform to emulate. This should match the host."
  50949. msgstr ""
  50950. #. type: item
  50951. #: guix-git/doc/guix.texi:34266
  50952. #, no-wrap
  50953. msgid "-nic user,model=virtio-net-pci"
  50954. msgstr ""
  50955. #. type: table
  50956. #: guix-git/doc/guix.texi:34274
  50957. msgid "Enable the unprivileged user-mode network stack. The guest OS can access the host but not vice versa. This is the simplest way to get the guest OS online. @code{model} specifies which network device to emulate: @code{virtio-net-pci} is a special device made for virtualized operating systems and recommended for most uses. Assuming your hardware platform is x86_64, you can get a list of available NIC models by running @command{qemu-system-x86_64 -nic model=help}."
  50958. msgstr ""
  50959. #. type: item
  50960. #: guix-git/doc/guix.texi:34275
  50961. #, no-wrap
  50962. msgid "-enable-kvm"
  50963. msgstr ""
  50964. #. type: table
  50965. #: guix-git/doc/guix.texi:34279
  50966. msgid "If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster."
  50967. msgstr ""
  50968. #. type: item
  50969. #: guix-git/doc/guix.texi:34281
  50970. #, no-wrap
  50971. msgid "-m 1024"
  50972. msgstr ""
  50973. #. type: table
  50974. #: guix-git/doc/guix.texi:34284
  50975. msgid "RAM available to the guest OS, in mebibytes. Defaults to 128@tie{}MiB, which may be insufficient for some operations."
  50976. msgstr ""
  50977. #. type: item
  50978. #: guix-git/doc/guix.texi:34285
  50979. #, no-wrap
  50980. msgid "-device virtio-blk,drive=myhd"
  50981. msgstr ""
  50982. #. type: table
  50983. #: guix-git/doc/guix.texi:34290
  50984. msgid "Create a @code{virtio-blk} drive called ``myhd''. @code{virtio-blk} is a ``paravirtualization'' mechanism for block devices that allows QEMU to achieve better performance than if it were emulating a complete disk drive. See the QEMU and KVM documentation for more info."
  50985. msgstr ""
  50986. #. type: item
  50987. #: guix-git/doc/guix.texi:34291
  50988. #, no-wrap
  50989. msgid "-drive if=none,file=/tmp/qemu-image,id=myhd"
  50990. msgstr ""
  50991. #. type: table
  50992. #: guix-git/doc/guix.texi:34294
  50993. msgid "Use our QCOW image, the @file{/tmp/qemu-image} file, as the backing store of the ``myhd'' drive."
  50994. msgstr ""
  50995. #. type: Plain text
  50996. #: guix-git/doc/guix.texi:34304
  50997. msgid "The default @command{run-vm.sh} script that is returned by an invocation of @command{guix system vm} does not add a @command{-nic user} flag by default. To get network access from within the vm add the @code{(dhcp-client-service)} to your system definition and start the VM using @command{$(guix system vm config.scm) -nic user}. An important caveat of using @command{-nic user} for networking is that @command{ping} will not work, because it uses the ICMP protocol. You'll have to use a different command to check for network connectivity, for example @command{guix download}."
  50998. msgstr ""
  50999. #. type: subsection
  51000. #: guix-git/doc/guix.texi:34305
  51001. #, no-wrap
  51002. msgid "Connecting Through SSH"
  51003. msgstr ""
  51004. #. type: Plain text
  51005. #: guix-git/doc/guix.texi:34313
  51006. msgid "To enable SSH inside a VM you need to add an SSH server like @code{openssh-service-type} to your VM (@pxref{Networking Services, @code{openssh-service-type}}). In addition you need to forward the SSH port, 22 by default, to the host. You can do this with"
  51007. msgstr ""
  51008. #. type: example
  51009. #: guix-git/doc/guix.texi:34316
  51010. #, no-wrap
  51011. msgid "$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22\n"
  51012. msgstr ""
  51013. #. type: Plain text
  51014. #: guix-git/doc/guix.texi:34319
  51015. msgid "To connect to the VM you can run"
  51016. msgstr ""
  51017. #. type: example
  51018. #: guix-git/doc/guix.texi:34322
  51019. #, no-wrap
  51020. msgid "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 localhost\n"
  51021. msgstr ""
  51022. #. type: Plain text
  51023. #: guix-git/doc/guix.texi:34329
  51024. msgid "The @command{-p} tells @command{ssh} the port you want to connect to. @command{-o UserKnownHostsFile=/dev/null} prevents @command{ssh} from complaining every time you modify your @command{config.scm} file and the @command{-o StrictHostKeyChecking=no} prevents you from having to allow a connection to an unknown host every time you connect."
  51025. msgstr ""
  51026. #. type: quotation
  51027. #: guix-git/doc/guix.texi:34335
  51028. msgid "If you find the above @samp{hostfwd} example not to be working (e.g., your SSH client hangs attempting to connect to the mapped port of your VM), make sure that your Guix System VM has networking support, such as by using the @code{dhcp-client-service-type} service type."
  51029. msgstr ""
  51030. #. type: subsection
  51031. #: guix-git/doc/guix.texi:34337
  51032. #, no-wrap
  51033. msgid "Using @command{virt-viewer} with Spice"
  51034. msgstr ""
  51035. #. type: Plain text
  51036. #: guix-git/doc/guix.texi:34343
  51037. msgid "As an alternative to the default @command{qemu} graphical client you can use the @command{remote-viewer} from the @command{virt-viewer} package. To connect pass the @command{-spice port=5930,disable-ticketing} flag to @command{qemu}. See previous section for further information on how to do this."
  51038. msgstr ""
  51039. #. type: Plain text
  51040. #: guix-git/doc/guix.texi:34346
  51041. msgid "Spice also allows you to do some nice stuff like share your clipboard with your VM@. To enable that you'll also have to pass the following flags to @command{qemu}:"
  51042. msgstr ""
  51043. #. type: example
  51044. #: guix-git/doc/guix.texi:34352
  51045. #, no-wrap
  51046. msgid ""
  51047. "-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5\n"
  51048. "-chardev spicevmc,name=vdagent,id=vdagent\n"
  51049. "-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,\n"
  51050. "name=com.redhat.spice.0\n"
  51051. msgstr ""
  51052. #. type: Plain text
  51053. #: guix-git/doc/guix.texi:34356
  51054. msgid "You'll also need to add the @code{(spice-vdagent-service)} to your system definition (@pxref{Miscellaneous Services, Spice service})."
  51055. msgstr ""
  51056. #. type: Plain text
  51057. #: guix-git/doc/guix.texi:34363
  51058. msgid "The previous sections show the available services and how one can combine them in an @code{operating-system} declaration. But how do we define them in the first place? And what is a service anyway?"
  51059. msgstr ""
  51060. #. type: cindex
  51061. #: guix-git/doc/guix.texi:34375
  51062. #, no-wrap
  51063. msgid "daemons"
  51064. msgstr ""
  51065. #. type: Plain text
  51066. #: guix-git/doc/guix.texi:34388
  51067. msgid "Here we define a @dfn{service} as, broadly, something that extends the functionality of the operating system. Often a service is a process---a @dfn{daemon}---started when the system boots: a secure shell server, a Web server, the Guix build daemon, etc. Sometimes a service is a daemon whose execution can be triggered by another daemon---e.g., an FTP server started by @command{inetd} or a D-Bus service activated by @command{dbus-daemon}. Occasionally, a service does not map to a daemon. For instance, the ``account'' service collects user accounts and makes sure they exist when the system runs; the ``udev'' service collects device management rules and makes them available to the eudev daemon; the @file{/etc} service populates the @file{/etc} directory of the system."
  51068. msgstr ""
  51069. #. type: cindex
  51070. #: guix-git/doc/guix.texi:34389
  51071. #, no-wrap
  51072. msgid "service extensions"
  51073. msgstr ""
  51074. #. type: Plain text
  51075. #: guix-git/doc/guix.texi:34401
  51076. msgid "Guix system services are connected by @dfn{extensions}. For instance, the secure shell service @emph{extends} the Shepherd---the initialization system, running as PID@tie{}1---by giving it the command lines to start and stop the secure shell daemon (@pxref{Networking Services, @code{openssh-service-type}}); the UPower service extends the D-Bus service by passing it its @file{.service} specification, and extends the udev service by passing it device management rules (@pxref{Desktop Services, @code{upower-service}}); the Guix daemon service extends the Shepherd by passing it the command lines to start and stop the daemon, and extends the account service by passing it a list of required build user accounts (@pxref{Base Services})."
  51077. msgstr ""
  51078. #. type: Plain text
  51079. #: guix-git/doc/guix.texi:34405
  51080. msgid "All in all, services and their ``extends'' relations form a directed acyclic graph (DAG). If we represent services as boxes and extensions as arrows, a typical system might provide something like this:"
  51081. msgstr ""
  51082. #. type: Plain text
  51083. #: guix-git/doc/guix.texi:34407
  51084. msgid "@image{images/service-graph,,5in,Typical service extension graph.}"
  51085. msgstr ""
  51086. #. type: cindex
  51087. #: guix-git/doc/guix.texi:34408
  51088. #, no-wrap
  51089. msgid "system service"
  51090. msgstr ""
  51091. #. type: Plain text
  51092. #: guix-git/doc/guix.texi:34416
  51093. msgid "At the bottom, we see the @dfn{system service}, which produces the directory containing everything to run and boot the system, as returned by the @command{guix system build} command. @xref{Service Reference}, to learn about the other service types shown here. @xref{system-extension-graph, the @command{guix system extension-graph} command}, for information on how to generate this representation for a particular operating system definition."
  51094. msgstr ""
  51095. #. type: cindex
  51096. #: guix-git/doc/guix.texi:34417
  51097. #, no-wrap
  51098. msgid "service types"
  51099. msgstr ""
  51100. #. type: Plain text
  51101. #: guix-git/doc/guix.texi:34423
  51102. msgid "Technically, developers can define @dfn{service types} to express these relations. There can be any number of services of a given type on the system---for instance, a system running two instances of the GNU secure shell server (lsh) has two instances of @code{lsh-service-type}, with different parameters."
  51103. msgstr ""
  51104. #. type: Plain text
  51105. #: guix-git/doc/guix.texi:34426
  51106. msgid "The following section describes the programming interface for service types and services."
  51107. msgstr ""
  51108. #. type: Plain text
  51109. #: guix-git/doc/guix.texi:34433
  51110. msgid "A @dfn{service type} is a node in the DAG described above. Let us start with a simple example, the service type for the Guix build daemon (@pxref{Invoking guix-daemon}):"
  51111. msgstr ""
  51112. #. type: lisp
  51113. #: guix-git/doc/guix.texi:34443
  51114. #, no-wrap
  51115. msgid ""
  51116. "(define guix-service-type\n"
  51117. " (service-type\n"
  51118. " (name 'guix)\n"
  51119. " (extensions\n"
  51120. " (list (service-extension shepherd-root-service-type guix-shepherd-service)\n"
  51121. " (service-extension account-service-type guix-accounts)\n"
  51122. " (service-extension activation-service-type guix-activation)))\n"
  51123. " (default-value (guix-configuration))))\n"
  51124. msgstr ""
  51125. #. type: Plain text
  51126. #: guix-git/doc/guix.texi:34447
  51127. msgid "It defines three things:"
  51128. msgstr ""
  51129. #. type: enumerate
  51130. #: guix-git/doc/guix.texi:34451
  51131. msgid "A name, whose sole purpose is to make inspection and debugging easier."
  51132. msgstr ""
  51133. #. type: enumerate
  51134. #: guix-git/doc/guix.texi:34456
  51135. msgid "A list of @dfn{service extensions}, where each extension designates the target service type and a procedure that, given the parameters of the service, returns a list of objects to extend the service of that type."
  51136. msgstr ""
  51137. #. type: enumerate
  51138. #: guix-git/doc/guix.texi:34459
  51139. msgid "Every service type has at least one service extension. The only exception is the @dfn{boot service type}, which is the ultimate service."
  51140. msgstr ""
  51141. #. type: enumerate
  51142. #: guix-git/doc/guix.texi:34462
  51143. msgid "Optionally, a default value for instances of this type."
  51144. msgstr ""
  51145. #. type: Plain text
  51146. #: guix-git/doc/guix.texi:34465
  51147. msgid "In this example, @code{guix-service-type} extends three services:"
  51148. msgstr ""
  51149. #. type: item
  51150. #: guix-git/doc/guix.texi:34467
  51151. #, no-wrap
  51152. msgid "shepherd-root-service-type"
  51153. msgstr ""
  51154. #. type: table
  51155. #: guix-git/doc/guix.texi:34472
  51156. msgid "The @code{guix-shepherd-service} procedure defines how the Shepherd service is extended. Namely, it returns a @code{<shepherd-service>} object that defines how @command{guix-daemon} is started and stopped (@pxref{Shepherd Services})."
  51157. msgstr ""
  51158. #. type: item
  51159. #: guix-git/doc/guix.texi:34473
  51160. #, no-wrap
  51161. msgid "account-service-type"
  51162. msgstr ""
  51163. #. type: table
  51164. #: guix-git/doc/guix.texi:34478
  51165. msgid "This extension for this service is computed by @code{guix-accounts}, which returns a list of @code{user-group} and @code{user-account} objects representing the build user accounts (@pxref{Invoking guix-daemon})."
  51166. msgstr ""
  51167. #. type: item
  51168. #: guix-git/doc/guix.texi:34479
  51169. #, no-wrap
  51170. msgid "activation-service-type"
  51171. msgstr ""
  51172. #. type: table
  51173. #: guix-git/doc/guix.texi:34483
  51174. msgid "Here @code{guix-activation} is a procedure that returns a gexp, which is a code snippet to run at ``activation time''---e.g., when the service is booted."
  51175. msgstr ""
  51176. #. type: Plain text
  51177. #: guix-git/doc/guix.texi:34486
  51178. msgid "A service of this type is instantiated like this:"
  51179. msgstr ""
  51180. #. type: lisp
  51181. #: guix-git/doc/guix.texi:34492
  51182. #, no-wrap
  51183. msgid ""
  51184. "(service guix-service-type\n"
  51185. " (guix-configuration\n"
  51186. " (build-accounts 5)\n"
  51187. " (extra-options '(\"--gc-keep-derivations\"))))\n"
  51188. msgstr ""
  51189. #. type: Plain text
  51190. #: guix-git/doc/guix.texi:34500
  51191. msgid "The second argument to the @code{service} form is a value representing the parameters of this specific service instance. @xref{guix-configuration-type, @code{guix-configuration}}, for information about the @code{guix-configuration} data type. When the value is omitted, the default value specified by @code{guix-service-type} is used:"
  51192. msgstr ""
  51193. #. type: lisp
  51194. #: guix-git/doc/guix.texi:34503
  51195. #, no-wrap
  51196. msgid "(service guix-service-type)\n"
  51197. msgstr ""
  51198. #. type: Plain text
  51199. #: guix-git/doc/guix.texi:34507
  51200. msgid "@code{guix-service-type} is quite simple because it extends other services but is not extensible itself."
  51201. msgstr ""
  51202. #. type: Plain text
  51203. #: guix-git/doc/guix.texi:34511
  51204. msgid "The service type for an @emph{extensible} service looks like this:"
  51205. msgstr ""
  51206. #. type: lisp
  51207. #: guix-git/doc/guix.texi:34518
  51208. #, no-wrap
  51209. msgid ""
  51210. "(define udev-service-type\n"
  51211. " (service-type (name 'udev)\n"
  51212. " (extensions\n"
  51213. " (list (service-extension shepherd-root-service-type\n"
  51214. " udev-shepherd-service)))\n"
  51215. "\n"
  51216. msgstr ""
  51217. #. type: lisp
  51218. #: guix-git/doc/guix.texi:34526
  51219. #, no-wrap
  51220. msgid ""
  51221. " (compose concatenate) ;concatenate the list of rules\n"
  51222. " (extend (lambda (config rules)\n"
  51223. " (match config\n"
  51224. " (($ <udev-configuration> udev initial-rules)\n"
  51225. " (udev-configuration\n"
  51226. " (udev udev) ;the udev package to use\n"
  51227. " (rules (append initial-rules rules)))))))))\n"
  51228. msgstr ""
  51229. #. type: Plain text
  51230. #: guix-git/doc/guix.texi:34532
  51231. msgid "This is the service type for the @uref{https://wiki.gentoo.org/wiki/Project:Eudev, eudev device management daemon}. Compared to the previous example, in addition to an extension of @code{shepherd-root-service-type}, we see two new fields:"
  51232. msgstr ""
  51233. #. type: item
  51234. #: guix-git/doc/guix.texi:34534
  51235. #, no-wrap
  51236. msgid "compose"
  51237. msgstr ""
  51238. #. type: table
  51239. #: guix-git/doc/guix.texi:34537
  51240. msgid "This is the procedure to @dfn{compose} the list of extensions to services of this type."
  51241. msgstr ""
  51242. #. type: table
  51243. #: guix-git/doc/guix.texi:34540
  51244. msgid "Services can extend the udev service by passing it lists of rules; we compose those extensions simply by concatenating them."
  51245. msgstr ""
  51246. #. type: item
  51247. #: guix-git/doc/guix.texi:34541
  51248. #, no-wrap
  51249. msgid "extend"
  51250. msgstr ""
  51251. #. type: table
  51252. #: guix-git/doc/guix.texi:34544
  51253. msgid "This procedure defines how the value of the service is @dfn{extended} with the composition of the extensions."
  51254. msgstr ""
  51255. #. type: table
  51256. #: guix-git/doc/guix.texi:34549
  51257. msgid "Udev extensions are composed into a list of rules, but the udev service value is itself a @code{<udev-configuration>} record. So here, we extend that record by appending the list of rules it contains to the list of contributed rules."
  51258. msgstr ""
  51259. #. type: table
  51260. #: guix-git/doc/guix.texi:34555
  51261. msgid "This is a string giving an overview of the service type. The string can contain Texinfo markup (@pxref{Overview,,, texinfo, GNU Texinfo}). The @command{guix system search} command searches these strings and displays them (@pxref{Invoking guix system})."
  51262. msgstr ""
  51263. #. type: Plain text
  51264. #: guix-git/doc/guix.texi:34560
  51265. msgid "There can be only one instance of an extensible service type such as @code{udev-service-type}. If there were more, the @code{service-extension} specifications would be ambiguous."
  51266. msgstr ""
  51267. #. type: Plain text
  51268. #: guix-git/doc/guix.texi:34563
  51269. msgid "Still here? The next section provides a reference of the programming interface for services."
  51270. msgstr ""
  51271. #. type: Plain text
  51272. #: guix-git/doc/guix.texi:34571
  51273. msgid "We have seen an overview of service types (@pxref{Service Types and Services}). This section provides a reference on how to manipulate services and service types. This interface is provided by the @code{(gnu services)} module."
  51274. msgstr ""
  51275. #. type: deffn
  51276. #: guix-git/doc/guix.texi:34572
  51277. #, no-wrap
  51278. msgid "{Scheme Procedure} service @var{type} [@var{value}]"
  51279. msgstr ""
  51280. #. type: deffn
  51281. #: guix-git/doc/guix.texi:34576
  51282. msgid "Return a new service of @var{type}, a @code{<service-type>} object (see below). @var{value} can be any object; it represents the parameters of this particular service instance."
  51283. msgstr ""
  51284. #. type: deffn
  51285. #: guix-git/doc/guix.texi:34580
  51286. msgid "When @var{value} is omitted, the default value specified by @var{type} is used; if @var{type} does not specify a default value, an error is raised."
  51287. msgstr ""
  51288. #. type: deffn
  51289. #: guix-git/doc/guix.texi:34582
  51290. msgid "For instance, this:"
  51291. msgstr ""
  51292. #. type: lisp
  51293. #: guix-git/doc/guix.texi:34585
  51294. #, no-wrap
  51295. msgid "(service openssh-service-type)\n"
  51296. msgstr ""
  51297. #. type: deffn
  51298. #: guix-git/doc/guix.texi:34589
  51299. msgid "is equivalent to this:"
  51300. msgstr ""
  51301. #. type: lisp
  51302. #: guix-git/doc/guix.texi:34593
  51303. #, no-wrap
  51304. msgid ""
  51305. "(service openssh-service-type\n"
  51306. " (openssh-configuration))\n"
  51307. msgstr ""
  51308. #. type: deffn
  51309. #: guix-git/doc/guix.texi:34597
  51310. msgid "In both cases the result is an instance of @code{openssh-service-type} with the default configuration."
  51311. msgstr ""
  51312. #. type: deffn
  51313. #: guix-git/doc/guix.texi:34599
  51314. #, no-wrap
  51315. msgid "{Scheme Procedure} service? @var{obj}"
  51316. msgstr ""
  51317. #. type: deffn
  51318. #: guix-git/doc/guix.texi:34601
  51319. msgid "Return true if @var{obj} is a service."
  51320. msgstr ""
  51321. #. type: deffn
  51322. #: guix-git/doc/guix.texi:34603
  51323. #, no-wrap
  51324. msgid "{Scheme Procedure} service-kind @var{service}"
  51325. msgstr ""
  51326. #. type: deffn
  51327. #: guix-git/doc/guix.texi:34605
  51328. msgid "Return the type of @var{service}---i.e., a @code{<service-type>} object."
  51329. msgstr ""
  51330. #. type: deffn
  51331. #: guix-git/doc/guix.texi:34607
  51332. #, no-wrap
  51333. msgid "{Scheme Procedure} service-value @var{service}"
  51334. msgstr ""
  51335. #. type: deffn
  51336. #: guix-git/doc/guix.texi:34610
  51337. msgid "Return the value associated with @var{service}. It represents its parameters."
  51338. msgstr ""
  51339. #. type: Plain text
  51340. #: guix-git/doc/guix.texi:34613
  51341. msgid "Here is an example of how a service is created and manipulated:"
  51342. msgstr ""
  51343. #. type: lisp
  51344. #: guix-git/doc/guix.texi:34622
  51345. #, no-wrap
  51346. msgid ""
  51347. "(define s\n"
  51348. " (service nginx-service-type\n"
  51349. " (nginx-configuration\n"
  51350. " (nginx nginx)\n"
  51351. " (log-directory log-directory)\n"
  51352. " (run-directory run-directory)\n"
  51353. " (file config-file))))\n"
  51354. "\n"
  51355. msgstr ""
  51356. #. type: lisp
  51357. #: guix-git/doc/guix.texi:34625
  51358. #, no-wrap
  51359. msgid ""
  51360. "(service? s)\n"
  51361. "@result{} #t\n"
  51362. "\n"
  51363. msgstr ""
  51364. #. type: lisp
  51365. #: guix-git/doc/guix.texi:34628
  51366. #, no-wrap
  51367. msgid ""
  51368. "(eq? (service-kind s) nginx-service-type)\n"
  51369. "@result{} #t\n"
  51370. msgstr ""
  51371. #. type: Plain text
  51372. #: guix-git/doc/guix.texi:34638
  51373. msgid "The @code{modify-services} form provides a handy way to change the parameters of some of the services of a list such as @code{%base-services} (@pxref{Base Services, @code{%base-services}}). It evaluates to a list of services. Of course, you could always use standard list combinators such as @code{map} and @code{fold} to do that (@pxref{SRFI-1, List Library,, guile, GNU Guile Reference Manual}); @code{modify-services} simply provides a more concise form for this common pattern."
  51374. msgstr ""
  51375. #. type: deffn
  51376. #: guix-git/doc/guix.texi:34639
  51377. #, no-wrap
  51378. msgid "{Scheme Syntax} modify-services @var{services} @"
  51379. msgstr ""
  51380. #. type: deffn
  51381. #: guix-git/doc/guix.texi:34641
  51382. msgid "(@var{type} @var{variable} => @var{body}) @dots{}"
  51383. msgstr ""
  51384. #. type: deffn
  51385. #: guix-git/doc/guix.texi:34644
  51386. msgid "Modify the services listed in @var{services} according to the given clauses. Each clause has the form:"
  51387. msgstr ""
  51388. #. type: example
  51389. #: guix-git/doc/guix.texi:34647
  51390. #, no-wrap
  51391. msgid "(@var{type} @var{variable} => @var{body})\n"
  51392. msgstr ""
  51393. #. type: deffn
  51394. #: guix-git/doc/guix.texi:34654
  51395. msgid "where @var{type} is a service type---e.g., @code{guix-service-type}---and @var{variable} is an identifier that is bound within the @var{body} to the service parameters---e.g., a @code{guix-configuration} instance---of the original service of that @var{type}."
  51396. msgstr ""
  51397. #. type: deffn
  51398. #: guix-git/doc/guix.texi:34661
  51399. msgid "The @var{body} should evaluate to the new service parameters, which will be used to configure the new service. This new service will replace the original in the resulting list. Because a service's service parameters are created using @code{define-record-type*}, you can write a succinct @var{body} that evaluates to the new service parameters by using the @code{inherit} feature that @code{define-record-type*} provides."
  51400. msgstr ""
  51401. #. type: deffn
  51402. #: guix-git/doc/guix.texi:34663
  51403. msgid "@xref{Using the Configuration System}, for example usage."
  51404. msgstr ""
  51405. #. type: Plain text
  51406. #: guix-git/doc/guix.texi:34670
  51407. msgid "Next comes the programming interface for service types. This is something you want to know when writing new service definitions, but not necessarily when simply looking for ways to customize your @code{operating-system} declaration."
  51408. msgstr ""
  51409. #. type: deftp
  51410. #: guix-git/doc/guix.texi:34671
  51411. #, no-wrap
  51412. msgid "{Data Type} service-type"
  51413. msgstr ""
  51414. #. type: cindex
  51415. #: guix-git/doc/guix.texi:34672
  51416. #, no-wrap
  51417. msgid "service type"
  51418. msgstr ""
  51419. #. type: deftp
  51420. #: guix-git/doc/guix.texi:34675
  51421. msgid "This is the representation of a @dfn{service type} (@pxref{Service Types and Services})."
  51422. msgstr ""
  51423. #. type: table
  51424. #: guix-git/doc/guix.texi:34679
  51425. msgid "This is a symbol, used only to simplify inspection and debugging."
  51426. msgstr ""
  51427. #. type: code{#1}
  51428. #: guix-git/doc/guix.texi:34680
  51429. #, no-wrap
  51430. msgid "extensions"
  51431. msgstr ""
  51432. #. type: table
  51433. #: guix-git/doc/guix.texi:34682
  51434. msgid "A non-empty list of @code{<service-extension>} objects (see below)."
  51435. msgstr ""
  51436. #. type: item
  51437. #: guix-git/doc/guix.texi:34683
  51438. #, no-wrap
  51439. msgid "@code{compose} (default: @code{#f})"
  51440. msgstr ""
  51441. #. type: table
  51442. #: guix-git/doc/guix.texi:34687
  51443. msgid "If this is @code{#f}, then the service type denotes services that cannot be extended---i.e., services that do not receive ``values'' from other services."
  51444. msgstr ""
  51445. #. type: table
  51446. #: guix-git/doc/guix.texi:34691
  51447. msgid "Otherwise, it must be a one-argument procedure. The procedure is called by @code{fold-services} and is passed a list of values collected from extensions. It may return any single value."
  51448. msgstr ""
  51449. #. type: item
  51450. #: guix-git/doc/guix.texi:34692
  51451. #, no-wrap
  51452. msgid "@code{extend} (default: @code{#f})"
  51453. msgstr ""
  51454. #. type: table
  51455. #: guix-git/doc/guix.texi:34694
  51456. msgid "If this is @code{#f}, services of this type cannot be extended."
  51457. msgstr ""
  51458. #. type: table
  51459. #: guix-git/doc/guix.texi:34700
  51460. msgid "Otherwise, it must be a two-argument procedure: @code{fold-services} calls it, passing it the initial value of the service as the first argument and the result of applying @code{compose} to the extension values as the second argument. It must return a value that is a valid parameter value for the service instance."
  51461. msgstr ""
  51462. #. type: table
  51463. #: guix-git/doc/guix.texi:34706
  51464. msgid "This is a string, possibly using Texinfo markup, describing in a couple of sentences what the service is about. This string allows users to find about the service through @command{guix system search} (@pxref{Invoking guix system})."
  51465. msgstr ""
  51466. #. type: item
  51467. #: guix-git/doc/guix.texi:34707
  51468. #, fuzzy, no-wrap
  51469. msgid "@code{default-value} (default: @code{&no-default-value})"
  51470. msgstr "@code{mate}(默认值:@code{mate})"
  51471. #. type: table
  51472. #: guix-git/doc/guix.texi:34710
  51473. msgid "The default value associated for instances of this service type. This allows users to use the @code{service} form without its second argument:"
  51474. msgstr ""
  51475. #. type: lisp
  51476. #: guix-git/doc/guix.texi:34713
  51477. #, no-wrap
  51478. msgid "(service @var{type})\n"
  51479. msgstr ""
  51480. #. type: table
  51481. #: guix-git/doc/guix.texi:34717
  51482. msgid "The returned service in this case has the default value specified by @var{type}."
  51483. msgstr ""
  51484. #. type: deftp
  51485. #: guix-git/doc/guix.texi:34720
  51486. msgid "@xref{Service Types and Services}, for examples."
  51487. msgstr ""
  51488. #. type: deffn
  51489. #: guix-git/doc/guix.texi:34722
  51490. #, no-wrap
  51491. msgid "{Scheme Procedure} service-extension @var{target-type} @"
  51492. msgstr ""
  51493. #. type: deffn
  51494. #: guix-git/doc/guix.texi:34728
  51495. msgid "@var{compute} Return a new extension for services of type @var{target-type}. @var{compute} must be a one-argument procedure: @code{fold-services} calls it, passing it the value associated with the service that provides the extension; it must return a valid value for the target service."
  51496. msgstr ""
  51497. #. type: deffn
  51498. #: guix-git/doc/guix.texi:34730
  51499. #, no-wrap
  51500. msgid "{Scheme Procedure} service-extension? @var{obj}"
  51501. msgstr ""
  51502. #. type: deffn
  51503. #: guix-git/doc/guix.texi:34732
  51504. msgid "Return true if @var{obj} is a service extension."
  51505. msgstr ""
  51506. #. type: Plain text
  51507. #: guix-git/doc/guix.texi:34738
  51508. msgid "Occasionally, you might want to simply extend an existing service. This involves creating a new service type and specifying the extension of interest, which can be verbose; the @code{simple-service} procedure provides a shorthand for this."
  51509. msgstr ""
  51510. #. type: deffn
  51511. #: guix-git/doc/guix.texi:34739
  51512. #, no-wrap
  51513. msgid "{Scheme Procedure} simple-service @var{name} @var{target} @var{value}"
  51514. msgstr ""
  51515. #. type: deffn
  51516. #: guix-git/doc/guix.texi:34743
  51517. msgid "Return a service that extends @var{target} with @var{value}. This works by creating a singleton service type @var{name}, of which the returned service is an instance."
  51518. msgstr ""
  51519. #. type: deffn
  51520. #: guix-git/doc/guix.texi:34746
  51521. msgid "For example, this extends mcron (@pxref{Scheduled Job Execution}) with an additional job:"
  51522. msgstr ""
  51523. #. type: lisp
  51524. #: guix-git/doc/guix.texi:34750
  51525. #, no-wrap
  51526. msgid ""
  51527. "(simple-service 'my-mcron-job mcron-service-type\n"
  51528. " #~(job '(next-hour (3)) \"guix gc -F 2G\"))\n"
  51529. msgstr ""
  51530. #. type: Plain text
  51531. #: guix-git/doc/guix.texi:34760
  51532. msgid "At the core of the service abstraction lies the @code{fold-services} procedure, which is responsible for ``compiling'' a list of services down to a single directory that contains everything needed to boot and run the system---the directory shown by the @command{guix system build} command (@pxref{Invoking guix system}). In essence, it propagates service extensions down the service graph, updating each node parameters on the way, until it reaches the root node."
  51533. msgstr ""
  51534. #. type: deffn
  51535. #: guix-git/doc/guix.texi:34761
  51536. #, no-wrap
  51537. msgid "{Scheme Procedure} fold-services @var{services} @"
  51538. msgstr ""
  51539. #. type: deffn
  51540. #: guix-git/doc/guix.texi:34765
  51541. msgid "[#:target-type @var{system-service-type}] Fold @var{services} by propagating their extensions down to the root of type @var{target-type}; return the root service adjusted accordingly."
  51542. msgstr ""
  51543. #. type: Plain text
  51544. #: guix-git/doc/guix.texi:34769
  51545. msgid "Lastly, the @code{(gnu services)} module also defines several essential service types, some of which are listed below."
  51546. msgstr ""
  51547. #. type: defvr
  51548. #: guix-git/doc/guix.texi:34770
  51549. #, no-wrap
  51550. msgid "{Scheme Variable} system-service-type"
  51551. msgstr ""
  51552. #. type: defvr
  51553. #: guix-git/doc/guix.texi:34773
  51554. msgid "This is the root of the service graph. It produces the system directory as returned by the @command{guix system build} command."
  51555. msgstr ""
  51556. #. type: defvr
  51557. #: guix-git/doc/guix.texi:34775
  51558. #, no-wrap
  51559. msgid "{Scheme Variable} boot-service-type"
  51560. msgstr ""
  51561. #. type: defvr
  51562. #: guix-git/doc/guix.texi:34778
  51563. msgid "The type of the ``boot service'', which produces the @dfn{boot script}. The boot script is what the initial RAM disk runs when booting."
  51564. msgstr ""
  51565. #. type: defvr
  51566. #: guix-git/doc/guix.texi:34780
  51567. #, no-wrap
  51568. msgid "{Scheme Variable} etc-service-type"
  51569. msgstr ""
  51570. #. type: defvr
  51571. #: guix-git/doc/guix.texi:34784
  51572. msgid "The type of the @file{/etc} service. This service is used to create files under @file{/etc} and can be extended by passing it name/file tuples such as:"
  51573. msgstr ""
  51574. #. type: lisp
  51575. #: guix-git/doc/guix.texi:34787
  51576. #, no-wrap
  51577. msgid "(list `(\"issue\" ,(plain-file \"issue\" \"Welcome!\\n\")))\n"
  51578. msgstr ""
  51579. #. type: defvr
  51580. #: guix-git/doc/guix.texi:34791
  51581. msgid "In this example, the effect would be to add an @file{/etc/issue} file pointing to the given file."
  51582. msgstr ""
  51583. #. type: defvr
  51584. #: guix-git/doc/guix.texi:34793
  51585. #, no-wrap
  51586. msgid "{Scheme Variable} setuid-program-service-type"
  51587. msgstr ""
  51588. #. type: defvr
  51589. #: guix-git/doc/guix.texi:34797
  51590. msgid "Type for the ``setuid-program service''. This service collects lists of executable file names, passed as gexps, and adds them to the set of setuid-root programs on the system (@pxref{Setuid Programs})."
  51591. msgstr ""
  51592. #. type: defvr
  51593. #: guix-git/doc/guix.texi:34799
  51594. #, no-wrap
  51595. msgid "{Scheme Variable} profile-service-type"
  51596. msgstr ""
  51597. #. type: defvr
  51598. #: guix-git/doc/guix.texi:34803
  51599. msgid "Type of the service that populates the @dfn{system profile}---i.e., the programs under @file{/run/current-system/profile}. Other services can extend it by passing it lists of packages to add to the system profile."
  51600. msgstr ""
  51601. #. type: anchor{#1}
  51602. #: guix-git/doc/guix.texi:34807
  51603. msgid "provenance-service-type"
  51604. msgstr ""
  51605. #. type: defvr
  51606. #: guix-git/doc/guix.texi:34807
  51607. #, no-wrap
  51608. msgid "{Scheme Variable} provenance-service-type"
  51609. msgstr ""
  51610. #. type: defvr
  51611. #: guix-git/doc/guix.texi:34811
  51612. msgid "This is the type of the service that records @dfn{provenance meta-data} in the system itself. It creates several files under @file{/run/current-system}:"
  51613. msgstr ""
  51614. #. type: item
  51615. #: guix-git/doc/guix.texi:34813
  51616. #, fuzzy, no-wrap
  51617. msgid "channels.scm"
  51618. msgstr "通道"
  51619. #. type: table
  51620. #: guix-git/doc/guix.texi:34818
  51621. msgid "This is a ``channel file'' that can be passed to @command{guix pull -C} or @command{guix time-machine -C}, and which describes the channels used to build the system, if that information was available (@pxref{Channels})."
  51622. msgstr ""
  51623. #. type: item
  51624. #: guix-git/doc/guix.texi:34819
  51625. #, fuzzy, no-wrap
  51626. msgid "configuration.scm"
  51627. msgstr "系统配置"
  51628. #. type: table
  51629. #: guix-git/doc/guix.texi:34824
  51630. msgid "This is the file that was passed as the value for this @code{provenance-service-type} service. By default, @command{guix system reconfigure} automatically passes the OS configuration file it received on the command line."
  51631. msgstr ""
  51632. #. type: item
  51633. #: guix-git/doc/guix.texi:34825
  51634. #, no-wrap
  51635. msgid "provenance"
  51636. msgstr ""
  51637. #. type: table
  51638. #: guix-git/doc/guix.texi:34828
  51639. msgid "This contains the same information as the two other files but in a format that is more readily processable."
  51640. msgstr ""
  51641. #. type: defvr
  51642. #: guix-git/doc/guix.texi:34832
  51643. msgid "In general, these two pieces of information (channels and configuration file) are enough to reproduce the operating system ``from source''."
  51644. msgstr ""
  51645. #. type: quotation
  51646. #: guix-git/doc/guix.texi:34833
  51647. #, no-wrap
  51648. msgid "Caveats"
  51649. msgstr ""
  51650. #. type: quotation
  51651. #: guix-git/doc/guix.texi:34840
  51652. msgid "This information is necessary to rebuild your operating system, but it is not always sufficient. In particular, @file{configuration.scm} itself is insufficient if it is not self-contained---if it refers to external Guile modules or to extra files. If you want @file{configuration.scm} to be self-contained, we recommend that modules or files it refers to be part of a channel."
  51653. msgstr ""
  51654. #. type: quotation
  51655. #: guix-git/doc/guix.texi:34848
  51656. msgid "Besides, provenance meta-data is ``silent'' in the sense that it does not change the bits contained in your system, @emph{except for the meta-data bits themselves}. Two different OS configurations or sets of channels can lead to the same system, bit-for-bit; when @code{provenance-service-type} is used, these two systems will have different meta-data and thus different store file names, which makes comparison less trivial."
  51657. msgstr ""
  51658. #. type: defvr
  51659. #: guix-git/doc/guix.texi:34853
  51660. msgid "This service is automatically added to your operating system configuration when you use @command{guix system reconfigure}, @command{guix system init}, or @command{guix deploy}."
  51661. msgstr ""
  51662. #. type: defvr
  51663. #: guix-git/doc/guix.texi:34855
  51664. #, no-wrap
  51665. msgid "{Scheme Variable} linux-loadable-module-service-type"
  51666. msgstr ""
  51667. #. type: defvr
  51668. #: guix-git/doc/guix.texi:34859
  51669. msgid "Type of the service that collects lists of packages containing kernel-loadable modules, and adds them to the set of kernel-loadable modules."
  51670. msgstr ""
  51671. #. type: defvr
  51672. #: guix-git/doc/guix.texi:34862
  51673. msgid "This service type is intended to be extended by other service types, such as below:"
  51674. msgstr ""
  51675. #. type: lisp
  51676. #: guix-git/doc/guix.texi:34868
  51677. #, no-wrap
  51678. msgid ""
  51679. "(simple-service 'installing-module\n"
  51680. " linux-loadable-module-service-type\n"
  51681. " (list module-to-install-1\n"
  51682. " module-to-install-2))\n"
  51683. msgstr ""
  51684. #. type: defvr
  51685. #: guix-git/doc/guix.texi:34872
  51686. msgid "This does not actually load modules at bootup, only adds it to the kernel profile so that it @emph{can} be loaded by other means."
  51687. msgstr ""
  51688. #. type: cindex
  51689. #: guix-git/doc/guix.texi:34877
  51690. #, no-wrap
  51691. msgid "shepherd services"
  51692. msgstr ""
  51693. #. type: cindex
  51694. #: guix-git/doc/guix.texi:34878
  51695. #, no-wrap
  51696. msgid "PID 1"
  51697. msgstr ""
  51698. #. type: cindex
  51699. #: guix-git/doc/guix.texi:34879
  51700. #, no-wrap
  51701. msgid "init system"
  51702. msgstr ""
  51703. #. type: Plain text
  51704. #: guix-git/doc/guix.texi:34885
  51705. msgid "The @code{(gnu services shepherd)} module provides a way to define services managed by the GNU@tie{}Shepherd, which is the initialization system---the first process that is started when the system boots, also known as PID@tie{}1 (@pxref{Introduction,,, shepherd, The GNU Shepherd Manual})."
  51706. msgstr ""
  51707. #. type: Plain text
  51708. #: guix-git/doc/guix.texi:34891
  51709. msgid "Services in the Shepherd can depend on each other. For instance, the SSH daemon may need to be started after the syslog daemon has been started, which in turn can only happen once all the file systems have been mounted. The simple operating system defined earlier (@pxref{Using the Configuration System}) results in a service graph like this:"
  51710. msgstr ""
  51711. #. type: Plain text
  51712. #: guix-git/doc/guix.texi:34893
  51713. msgid "@image{images/shepherd-graph,,5in,Typical shepherd service graph.}"
  51714. msgstr ""
  51715. #. type: Plain text
  51716. #: guix-git/doc/guix.texi:34897
  51717. msgid "You can actually generate such a graph for any operating system definition using the @command{guix system shepherd-graph} command (@pxref{system-shepherd-graph, @command{guix system shepherd-graph}})."
  51718. msgstr ""
  51719. #. type: Plain text
  51720. #: guix-git/doc/guix.texi:34901
  51721. msgid "The @code{%shepherd-root-service} is a service object representing PID@tie{}1, of type @code{shepherd-root-service-type}; it can be extended by passing it lists of @code{<shepherd-service>} objects."
  51722. msgstr ""
  51723. #. type: deftp
  51724. #: guix-git/doc/guix.texi:34902
  51725. #, no-wrap
  51726. msgid "{Data Type} shepherd-service"
  51727. msgstr ""
  51728. #. type: deftp
  51729. #: guix-git/doc/guix.texi:34904
  51730. msgid "The data type representing a service managed by the Shepherd."
  51731. msgstr ""
  51732. #. type: code{#1}
  51733. #: guix-git/doc/guix.texi:34906
  51734. #, no-wrap
  51735. msgid "provision"
  51736. msgstr ""
  51737. #. type: table
  51738. #: guix-git/doc/guix.texi:34908
  51739. msgid "This is a list of symbols denoting what the service provides."
  51740. msgstr ""
  51741. #. type: table
  51742. #: guix-git/doc/guix.texi:34913
  51743. msgid "These are the names that may be passed to @command{herd start}, @command{herd status}, and similar commands (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual}). @xref{Slots of services, the @code{provides} slot,, shepherd, The GNU Shepherd Manual}, for details."
  51744. msgstr ""
  51745. #. type: item
  51746. #: guix-git/doc/guix.texi:34914
  51747. #, fuzzy, no-wrap
  51748. msgid "@code{requirement} (default: @code{'()})"
  51749. msgstr "@code{features} (@code{'()})"
  51750. #. type: table
  51751. #: guix-git/doc/guix.texi:34916
  51752. msgid "List of symbols denoting the Shepherd services this one depends on."
  51753. msgstr ""
  51754. #. type: cindex
  51755. #: guix-git/doc/guix.texi:34917
  51756. #, no-wrap
  51757. msgid "one-shot services, for the Shepherd"
  51758. msgstr ""
  51759. #. type: table
  51760. #: guix-git/doc/guix.texi:34922
  51761. msgid "Whether this service is @dfn{one-shot}. One-shot services stop immediately after their @code{start} action has completed. @xref{Slots of services,,, shepherd, The GNU Shepherd Manual}, for more info."
  51762. msgstr ""
  51763. #. type: item
  51764. #: guix-git/doc/guix.texi:34923
  51765. #, no-wrap
  51766. msgid "@code{respawn?} (default: @code{#t})"
  51767. msgstr ""
  51768. #. type: table
  51769. #: guix-git/doc/guix.texi:34926
  51770. msgid "Whether to restart the service when it stops, for instance when the underlying process dies."
  51771. msgstr ""
  51772. #. type: code{#1}
  51773. #: guix-git/doc/guix.texi:34927
  51774. #, no-wrap
  51775. msgid "start"
  51776. msgstr ""
  51777. #. type: itemx
  51778. #: guix-git/doc/guix.texi:34928
  51779. #, no-wrap
  51780. msgid "@code{stop} (default: @code{#~(const #f)})"
  51781. msgstr ""
  51782. #. type: table
  51783. #: guix-git/doc/guix.texi:34934
  51784. msgid "The @code{start} and @code{stop} fields refer to the Shepherd's facilities to start and stop processes (@pxref{Service De- and Constructors,,, shepherd, The GNU Shepherd Manual}). They are given as G-expressions that get expanded in the Shepherd configuration file (@pxref{G-Expressions})."
  51785. msgstr ""
  51786. #. type: item
  51787. #: guix-git/doc/guix.texi:34935
  51788. #, no-wrap
  51789. msgid "@code{actions} (default: @code{'()})"
  51790. msgstr ""
  51791. #. type: cindex
  51792. #: guix-git/doc/guix.texi:34936
  51793. #, no-wrap
  51794. msgid "actions, of Shepherd services"
  51795. msgstr ""
  51796. #. type: table
  51797. #: guix-git/doc/guix.texi:34941
  51798. msgid "This is a list of @code{shepherd-action} objects (see below) defining @dfn{actions} supported by the service, in addition to the standard @code{start} and @code{stop} actions. Actions listed here become available as @command{herd} sub-commands:"
  51799. msgstr ""
  51800. #. type: example
  51801. #: guix-git/doc/guix.texi:34944
  51802. #, no-wrap
  51803. msgid "herd @var{action} @var{service} [@var{arguments}@dots{}]\n"
  51804. msgstr ""
  51805. #. type: item
  51806. #: guix-git/doc/guix.texi:34946
  51807. #, fuzzy, no-wrap
  51808. msgid "@code{auto-start?} (default: @code{#t})"
  51809. msgstr "@code{port}(默认值:@code{22})"
  51810. #. type: table
  51811. #: guix-git/doc/guix.texi:34949
  51812. msgid "Whether this service should be started automatically by the Shepherd. If it is @code{#f} the service has to be started manually with @code{herd start}."
  51813. msgstr ""
  51814. #. type: table
  51815. #: guix-git/doc/guix.texi:34952
  51816. msgid "A documentation string, as shown when running:"
  51817. msgstr ""
  51818. #. type: example
  51819. #: guix-git/doc/guix.texi:34955
  51820. #, no-wrap
  51821. msgid "herd doc @var{service-name}\n"
  51822. msgstr ""
  51823. #. type: table
  51824. #: guix-git/doc/guix.texi:34959
  51825. msgid "where @var{service-name} is one of the symbols in @code{provision} (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual})."
  51826. msgstr ""
  51827. #. type: item
  51828. #: guix-git/doc/guix.texi:34960
  51829. #, no-wrap
  51830. msgid "@code{modules} (default: @code{%default-modules})"
  51831. msgstr ""
  51832. #. type: table
  51833. #: guix-git/doc/guix.texi:34963
  51834. msgid "This is the list of modules that must be in scope when @code{start} and @code{stop} are evaluated."
  51835. msgstr ""
  51836. #. type: Plain text
  51837. #: guix-git/doc/guix.texi:34971
  51838. msgid "The example below defines a Shepherd service that spawns @command{syslogd}, the system logger from the GNU Networking Utilities (@pxref{syslogd invocation, @command{syslogd},, inetutils, GNU Inetutils}):"
  51839. msgstr ""
  51840. #. type: example
  51841. #: guix-git/doc/guix.texi:34983
  51842. #, no-wrap
  51843. msgid ""
  51844. "(let ((config (plain-file \"syslogd.conf\" \"@dots{}\")))\n"
  51845. " (shepherd-service\n"
  51846. " (documentation \"Run the syslog daemon (syslogd).\")\n"
  51847. " (provision '(syslogd))\n"
  51848. " (requirement '(user-processes))\n"
  51849. " (start #~(make-forkexec-constructor\n"
  51850. " (list #$(file-append inetutils \"/libexec/syslogd\")\n"
  51851. " \"--rcfile\" #$config)\n"
  51852. " #:pid-file \"/var/run/syslog.pid\"))\n"
  51853. " (stop #~(make-kill-destructor))))\n"
  51854. msgstr ""
  51855. #. type: Plain text
  51856. #: guix-git/doc/guix.texi:34998
  51857. msgid "Key elements in this example are the @code{start} and @code{stop} fields: they are @dfn{staged} code snippets that use the @code{make-forkexec-constructor} procedure provided by the Shepherd and its dual, @code{make-kill-destructor} (@pxref{Service De- and Constructors,,, shepherd, The GNU Shepherd Manual}). The @code{start} field will have @command{shepherd} spawn @command{syslogd} with the given option; note that we pass @code{config} after @option{--rcfile}, which is a configuration file declared above (contents of this file are omitted). Likewise, the @code{stop} field tells how this service is to be stopped; in this case, it is stopped by making the @code{kill} system call on its PID@. Code staging is achieved using G-expressions: @code{#~} stages code, while @code{#$} ``escapes'' back to host code (@pxref{G-Expressions})."
  51858. msgstr ""
  51859. #. type: deftp
  51860. #: guix-git/doc/guix.texi:34999
  51861. #, no-wrap
  51862. msgid "{Data Type} shepherd-action"
  51863. msgstr ""
  51864. #. type: deftp
  51865. #: guix-git/doc/guix.texi:35002
  51866. msgid "This is the data type that defines additional actions implemented by a Shepherd service (see above)."
  51867. msgstr ""
  51868. #. type: table
  51869. #: guix-git/doc/guix.texi:35006
  51870. msgid "Symbol naming the action."
  51871. msgstr ""
  51872. #. type: table
  51873. #: guix-git/doc/guix.texi:35009
  51874. msgid "This is a documentation string for the action. It can be viewed by running:"
  51875. msgstr ""
  51876. #. type: example
  51877. #: guix-git/doc/guix.texi:35012
  51878. #, no-wrap
  51879. msgid "herd doc @var{service} action @var{action}\n"
  51880. msgstr ""
  51881. #. type: item
  51882. #: guix-git/doc/guix.texi:35014
  51883. #, no-wrap
  51884. msgid "procedure"
  51885. msgstr ""
  51886. #. type: table
  51887. #: guix-git/doc/guix.texi:35018
  51888. msgid "This should be a gexp that evaluates to a procedure of at least one argument, which is the ``running value'' of the service (@pxref{Slots of services,,, shepherd, The GNU Shepherd Manual})."
  51889. msgstr ""
  51890. #. type: deftp
  51891. #: guix-git/doc/guix.texi:35022
  51892. msgid "The following example defines an action called @code{say-hello} that kindly greets the user:"
  51893. msgstr ""
  51894. #. type: lisp
  51895. #: guix-git/doc/guix.texi:35031
  51896. #, no-wrap
  51897. msgid ""
  51898. "(shepherd-action\n"
  51899. " (name 'say-hello)\n"
  51900. " (documentation \"Say hi!\")\n"
  51901. " (procedure #~(lambda (running . args)\n"
  51902. " (format #t \"Hello, friend! arguments: ~s\\n\"\n"
  51903. " args)\n"
  51904. " #t)))\n"
  51905. msgstr ""
  51906. #. type: deftp
  51907. #: guix-git/doc/guix.texi:35034
  51908. msgid "Assuming this action is added to the @code{example} service, then you can do:"
  51909. msgstr ""
  51910. #. type: example
  51911. #: guix-git/doc/guix.texi:35040
  51912. #, no-wrap
  51913. msgid ""
  51914. "# herd say-hello example\n"
  51915. "Hello, friend! arguments: ()\n"
  51916. "# herd say-hello example a b c\n"
  51917. "Hello, friend! arguments: (\"a\" \"b\" \"c\")\n"
  51918. msgstr ""
  51919. #. type: deftp
  51920. #: guix-git/doc/guix.texi:35045
  51921. msgid "This, as you can see, is a fairly sophisticated way to say hello. @xref{Service Convenience,,, shepherd, The GNU Shepherd Manual}, for more info on actions."
  51922. msgstr ""
  51923. #. type: defvr
  51924. #: guix-git/doc/guix.texi:35047
  51925. #, no-wrap
  51926. msgid "{Scheme Variable} shepherd-root-service-type"
  51927. msgstr ""
  51928. #. type: defvr
  51929. #: guix-git/doc/guix.texi:35049
  51930. msgid "The service type for the Shepherd ``root service''---i.e., PID@tie{}1."
  51931. msgstr ""
  51932. #. type: defvr
  51933. #: guix-git/doc/guix.texi:35054
  51934. msgid "This is the service type that extensions target when they want to create shepherd services (@pxref{Service Types and Services}, for an example). Each extension must pass a list of @code{<shepherd-service>}. Its value must be a @code{shepherd-configuration}, as described below."
  51935. msgstr ""
  51936. #. type: deftp
  51937. #: guix-git/doc/guix.texi:35056
  51938. #, fuzzy, no-wrap
  51939. msgid "{Data Type} shepherd-configuration"
  51940. msgstr "{数据类型} build-machine"
  51941. #. type: deftp
  51942. #: guix-git/doc/guix.texi:35058
  51943. #, fuzzy
  51944. msgid "This data type represents the Shepherd's configuration."
  51945. msgstr "管理操作系统配置。"
  51946. #. type: item
  51947. #: guix-git/doc/guix.texi:35060
  51948. #, fuzzy, no-wrap
  51949. msgid "shepherd (default: @code{shepherd})"
  51950. msgstr "@code{mate}(默认值:@code{mate})"
  51951. #. type: table
  51952. #: guix-git/doc/guix.texi:35062
  51953. #, fuzzy
  51954. msgid "The Shepherd package to use."
  51955. msgstr "软件包数据类型。"
  51956. #. type: item
  51957. #: guix-git/doc/guix.texi:35063
  51958. #, fuzzy, no-wrap
  51959. msgid "services (default: @code{'()})"
  51960. msgstr "@code{features} (@code{'()})"
  51961. #. type: table
  51962. #: guix-git/doc/guix.texi:35067
  51963. msgid "A list of @code{<shepherd-service>} to start. You should probably use the service extension mechanism instead (@pxref{Shepherd Services})."
  51964. msgstr ""
  51965. #. type: Plain text
  51966. #: guix-git/doc/guix.texi:35072
  51967. msgid "The following example specifies the Shepherd package for the operating system:"
  51968. msgstr ""
  51969. #. type: lisp
  51970. #: guix-git/doc/guix.texi:35087
  51971. #, no-wrap
  51972. msgid ""
  51973. "(operating-system\n"
  51974. " ;; ...\n"
  51975. " (services (append (list openssh-service-type))\n"
  51976. " ;; ...\n"
  51977. " %desktop-services)\n"
  51978. " ;; ...\n"
  51979. " ;; Use own Shepherd package.\n"
  51980. " (essential-services\n"
  51981. " (modify-services (operating-system-default-essential-services\n"
  51982. " this-operating-system)\n"
  51983. " (shepherd-root-service-type config => (shepherd-configuration\n"
  51984. " (inherit config)\n"
  51985. " (shepherd my-shepherd))))))\n"
  51986. msgstr ""
  51987. #. type: defvr
  51988. #: guix-git/doc/guix.texi:35089
  51989. #, no-wrap
  51990. msgid "{Scheme Variable} %shepherd-root-service"
  51991. msgstr ""
  51992. #. type: defvr
  51993. #: guix-git/doc/guix.texi:35091
  51994. msgid "This service represents PID@tie{}1."
  51995. msgstr ""
  51996. #. type: cindex
  51997. #: guix-git/doc/guix.texi:35097
  51998. #, no-wrap
  51999. msgid "documentation, searching for"
  52000. msgstr ""
  52001. #. type: cindex
  52002. #: guix-git/doc/guix.texi:35098
  52003. #, no-wrap
  52004. msgid "searching for documentation"
  52005. msgstr ""
  52006. #. type: cindex
  52007. #: guix-git/doc/guix.texi:35099
  52008. #, no-wrap
  52009. msgid "Info, documentation format"
  52010. msgstr ""
  52011. #. type: cindex
  52012. #: guix-git/doc/guix.texi:35100
  52013. #, no-wrap
  52014. msgid "man pages"
  52015. msgstr ""
  52016. #. type: cindex
  52017. #: guix-git/doc/guix.texi:35101
  52018. #, no-wrap
  52019. msgid "manual pages"
  52020. msgstr ""
  52021. #. type: Plain text
  52022. #: guix-git/doc/guix.texi:35108
  52023. msgid "In most cases packages installed with Guix come with documentation. There are two main documentation formats: ``Info'', a browsable hypertext format used for GNU software, and ``manual pages'' (or ``man pages''), the linear documentation format traditionally found on Unix. Info manuals are accessed with the @command{info} command or with Emacs, and man pages are accessed using @command{man}."
  52024. msgstr ""
  52025. #. type: Plain text
  52026. #: guix-git/doc/guix.texi:35112
  52027. msgid "You can look for documentation of software installed on your system by keyword. For example, the following command searches for information about ``TLS'' in Info manuals:"
  52028. msgstr ""
  52029. #. type: example
  52030. #: guix-git/doc/guix.texi:35120
  52031. #, no-wrap
  52032. msgid ""
  52033. "$ info -k TLS\n"
  52034. "\"(emacs)Network Security\" -- STARTTLS\n"
  52035. "\"(emacs)Network Security\" -- TLS\n"
  52036. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_flags\n"
  52037. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_function\n"
  52038. "@dots{}\n"
  52039. msgstr ""
  52040. #. type: Plain text
  52041. #: guix-git/doc/guix.texi:35124
  52042. msgid "The command below searches for the same keyword in man pages:"
  52043. msgstr ""
  52044. #. type: example
  52045. #: guix-git/doc/guix.texi:35130
  52046. #, no-wrap
  52047. msgid ""
  52048. "$ man -k TLS\n"
  52049. "SSL (7) - OpenSSL SSL/TLS library\n"
  52050. "certtool (1) - GnuTLS certificate tool\n"
  52051. "@dots {}\n"
  52052. msgstr ""
  52053. #. type: Plain text
  52054. #: guix-git/doc/guix.texi:35136
  52055. msgid "These searches are purely local to your computer so you have the guarantee that documentation you find corresponds to what you have actually installed, you can access it off-line, and your privacy is respected."
  52056. msgstr ""
  52057. #. type: Plain text
  52058. #: guix-git/doc/guix.texi:35139
  52059. msgid "Once you have these results, you can view the relevant documentation by running, say:"
  52060. msgstr ""
  52061. #. type: example
  52062. #: guix-git/doc/guix.texi:35142
  52063. #, no-wrap
  52064. msgid "$ info \"(gnutls)Core TLS API\"\n"
  52065. msgstr ""
  52066. #. type: Plain text
  52067. #: guix-git/doc/guix.texi:35146
  52068. msgid "or:"
  52069. msgstr ""
  52070. #. type: example
  52071. #: guix-git/doc/guix.texi:35149
  52072. #, no-wrap
  52073. msgid "$ man certtool\n"
  52074. msgstr ""
  52075. #. type: Plain text
  52076. #: guix-git/doc/guix.texi:35157
  52077. msgid "Info manuals contain sections and indices as well as hyperlinks like those found in Web pages. The @command{info} reader (@pxref{Top, Info reader,, info-stnd, Stand-alone GNU Info}) and its Emacs counterpart (@pxref{Misc Help,,, emacs, The GNU Emacs Manual}) provide intuitive key bindings to navigate manuals. @xref{Getting Started,,, info, Info: An Introduction}, for an introduction to Info navigation."
  52078. msgstr ""
  52079. #. type: cindex
  52080. #: guix-git/doc/guix.texi:35161
  52081. #, no-wrap
  52082. msgid "debugging files"
  52083. msgstr ""
  52084. #. type: Plain text
  52085. #: guix-git/doc/guix.texi:35167
  52086. msgid "Program binaries, as produced by the GCC compilers for instance, are typically written in the ELF format, with a section containing @dfn{debugging information}. Debugging information is what allows the debugger, GDB, to map binary code to source code; it is required to debug a compiled program in good conditions."
  52087. msgstr ""
  52088. #. type: Plain text
  52089. #: guix-git/doc/guix.texi:35171
  52090. msgid "This chapter explains how to use separate debug info when packages provide it, and how to rebuild packages with debug info when it's missing."
  52091. msgstr ""
  52092. #. type: Plain text
  52093. #: guix-git/doc/guix.texi:35187
  52094. msgid "The problem with debugging information is that is takes up a fair amount of disk space. For example, debugging information for the GNU C Library weighs in at more than 60 MiB@. Thus, as a user, keeping all the debugging info of all the installed programs is usually not an option. Yet, space savings should not come at the cost of an impediment to debugging---especially in the GNU system, which should make it easier for users to exert their computing freedom (@pxref{GNU Distribution})."
  52095. msgstr ""
  52096. #. type: Plain text
  52097. #: guix-git/doc/guix.texi:35194
  52098. msgid "Thankfully, the GNU Binary Utilities (Binutils) and GDB provide a mechanism that allows users to get the best of both worlds: debugging information can be stripped from the binaries and stored in separate files. GDB is then able to load debugging information from those files, when they are available (@pxref{Separate Debug Files,,, gdb, Debugging with GDB})."
  52099. msgstr ""
  52100. #. type: Plain text
  52101. #: guix-git/doc/guix.texi:35202
  52102. msgid "The GNU distribution takes advantage of this by storing debugging information in the @code{lib/debug} sub-directory of a separate package output unimaginatively called @code{debug} (@pxref{Packages with Multiple Outputs}). Users can choose to install the @code{debug} output of a package when they need it. For instance, the following command installs the debugging information for the GNU C Library and for GNU Guile:"
  52103. msgstr ""
  52104. #. type: example
  52105. #: guix-git/doc/guix.texi:35205
  52106. #, no-wrap
  52107. msgid "guix install glibc:debug guile:debug\n"
  52108. msgstr ""
  52109. #. type: Plain text
  52110. #: guix-git/doc/guix.texi:35211
  52111. msgid "GDB must then be told to look for debug files in the user's profile, by setting the @code{debug-file-directory} variable (consider setting it from the @file{~/.gdbinit} file, @pxref{Startup,,, gdb, Debugging with GDB}):"
  52112. msgstr ""
  52113. #. type: example
  52114. #: guix-git/doc/guix.texi:35214
  52115. #, no-wrap
  52116. msgid "(gdb) set debug-file-directory ~/.guix-profile/lib/debug\n"
  52117. msgstr ""
  52118. #. type: Plain text
  52119. #: guix-git/doc/guix.texi:35218
  52120. msgid "From there on, GDB will pick up debugging information from the @file{.debug} files under @file{~/.guix-profile/lib/debug}."
  52121. msgstr ""
  52122. #. type: Plain text
  52123. #: guix-git/doc/guix.texi:35225
  52124. msgid "In addition, you will most likely want GDB to be able to show the source code being debugged. To do that, you will have to unpack the source code of the package of interest (obtained with @code{guix build --source}, @pxref{Invoking guix build}), and to point GDB to that source directory using the @code{directory} command (@pxref{Source Path, @code{directory},, gdb, Debugging with GDB})."
  52125. msgstr ""
  52126. #. type: Plain text
  52127. #: guix-git/doc/guix.texi:35233
  52128. msgid "The @code{debug} output mechanism in Guix is implemented by the @code{gnu-build-system} (@pxref{Build Systems}). Currently, it is opt-in---debugging information is available only for the packages with definitions explicitly declaring a @code{debug} output. To check whether a package has a @code{debug} output, use @command{guix package --list-available} (@pxref{Invoking guix package})."
  52129. msgstr ""
  52130. #. type: Plain text
  52131. #: guix-git/doc/guix.texi:35235
  52132. msgid "Read on for how to deal with packages lacking a @code{debug} output."
  52133. msgstr ""
  52134. #. type: Plain text
  52135. #: guix-git/doc/guix.texi:35247
  52136. msgid "As we saw above, some packages, but not all, provide debugging info in a @code{debug} output. What can you do when debugging info is missing? The @option{--with-debug-info} option provides a solution to that: it allows you to rebuild the package(s) for which debugging info is missing---and only those---and to graft those onto the application you're debugging. Thus, while it's not as fast as installing a @code{debug} output, it is relatively inexpensive."
  52137. msgstr ""
  52138. #. type: Plain text
  52139. #: guix-git/doc/guix.texi:35252
  52140. msgid "Let's illustrate that. Suppose you're experiencing a bug in Inkscape and would like to see what's going on in GLib, a library that's deep down in its dependency graph. As it turns out, GLib does not have a @code{debug} output and the backtrace GDB shows is all sadness:"
  52141. msgstr ""
  52142. #. type: example
  52143. #: guix-git/doc/guix.texi:35263
  52144. #, no-wrap
  52145. msgid ""
  52146. "(gdb) bt\n"
  52147. "#0 0x00007ffff5f92190 in g_getenv ()\n"
  52148. " from /gnu/store/@dots{}-glib-2.62.6/lib/libglib-2.0.so.0\n"
  52149. "#1 0x00007ffff608a7d6 in gobject_init_ctor ()\n"
  52150. " from /gnu/store/@dots{}-glib-2.62.6/lib/libgobject-2.0.so.0\n"
  52151. "#2 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=1, argv=argv@@entry=0x7fffffffcfd8, \n"
  52152. " env=env@@entry=0x7fffffffcfe8) at dl-init.c:72\n"
  52153. "#3 0x00007ffff7fe2866 in call_init (env=0x7fffffffcfe8, argv=0x7fffffffcfd8, argc=1, l=<optimized out>)\n"
  52154. " at dl-init.c:118\n"
  52155. msgstr ""
  52156. #. type: Plain text
  52157. #: guix-git/doc/guix.texi:35267
  52158. msgid "To address that, you install Inkscape linked against a variant GLib that contains debug info:"
  52159. msgstr ""
  52160. #. type: Plain text
  52161. #: guix-git/doc/guix.texi:35273
  52162. msgid "This time, debugging will be a whole lot nicer:"
  52163. msgstr ""
  52164. #. type: example
  52165. #: guix-git/doc/guix.texi:35291
  52166. #, no-wrap
  52167. msgid ""
  52168. "$ gdb --args sh -c 'exec inkscape'\n"
  52169. "@dots{}\n"
  52170. "(gdb) b g_getenv\n"
  52171. "Function \"g_getenv\" not defined.\n"
  52172. "Make breakpoint pending on future shared library load? (y or [n]) y\n"
  52173. "Breakpoint 1 (g_getenv) pending.\n"
  52174. "(gdb) r\n"
  52175. "Starting program: /gnu/store/@dots{}-profile/bin/sh -c exec\\ inkscape\n"
  52176. "@dots{}\n"
  52177. "(gdb) bt\n"
  52178. "#0 g_getenv (variable=variable@@entry=0x7ffff60c7a2e \"GOBJECT_DEBUG\") at ../glib-2.62.6/glib/genviron.c:252\n"
  52179. "#1 0x00007ffff608a7d6 in gobject_init () at ../glib-2.62.6/gobject/gtype.c:4380\n"
  52180. "#2 gobject_init_ctor () at ../glib-2.62.6/gobject/gtype.c:4493\n"
  52181. "#3 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=3, argv=argv@@entry=0x7fffffffd088, \n"
  52182. " env=env@@entry=0x7fffffffd0a8) at dl-init.c:72\n"
  52183. "@dots{}\n"
  52184. msgstr ""
  52185. #. type: Plain text
  52186. #: guix-git/doc/guix.texi:35294
  52187. msgid "Much better!"
  52188. msgstr ""
  52189. #. type: Plain text
  52190. #: guix-git/doc/guix.texi:35298
  52191. msgid "Note that there can be packages for which @option{--with-debug-info} will not have the desired effect. @xref{Package Transformation Options, @option{--with-debug-info}}, for more information."
  52192. msgstr ""
  52193. #. type: cindex
  52194. #: guix-git/doc/guix.texi:35302
  52195. #, no-wrap
  52196. msgid "security updates"
  52197. msgstr ""
  52198. #. type: Plain text
  52199. #: guix-git/doc/guix.texi:35311
  52200. msgid "Occasionally, important security vulnerabilities are discovered in software packages and must be patched. Guix developers try hard to keep track of known vulnerabilities and to apply fixes as soon as possible in the @code{master} branch of Guix (we do not yet provide a ``stable'' branch containing only security updates). The @command{guix lint} tool helps developers find out about vulnerable versions of software packages in the distribution:"
  52201. msgstr ""
  52202. #. type: smallexample
  52203. #: guix-git/doc/guix.texi:35318
  52204. #, no-wrap
  52205. msgid ""
  52206. "$ guix lint -c cve\n"
  52207. "gnu/packages/base.scm:652:2: glibc@@2.21: probably vulnerable to CVE-2015-1781, CVE-2015-7547\n"
  52208. "gnu/packages/gcc.scm:334:2: gcc@@4.9.3: probably vulnerable to CVE-2015-5276\n"
  52209. "gnu/packages/image.scm:312:2: openjpeg@@2.1.0: probably vulnerable to CVE-2016-1923, CVE-2016-1924\n"
  52210. "@dots{}\n"
  52211. msgstr ""
  52212. #. type: Plain text
  52213. #: guix-git/doc/guix.texi:35321
  52214. msgid "@xref{Invoking guix lint}, for more information."
  52215. msgstr ""
  52216. #. type: Plain text
  52217. #: guix-git/doc/guix.texi:35330
  52218. msgid "Guix follows a functional package management discipline (@pxref{Introduction}), which implies that, when a package is changed, @emph{every package that depends on it} must be rebuilt. This can significantly slow down the deployment of fixes in core packages such as libc or Bash, since basically the whole distribution would need to be rebuilt. Using pre-built binaries helps (@pxref{Substitutes}), but deployment may still take more time than desired."
  52219. msgstr ""
  52220. #. type: cindex
  52221. #: guix-git/doc/guix.texi:35331
  52222. #, no-wrap
  52223. msgid "grafts"
  52224. msgstr ""
  52225. #. type: Plain text
  52226. #: guix-git/doc/guix.texi:35339
  52227. msgid "To address this, Guix implements @dfn{grafts}, a mechanism that allows for fast deployment of critical updates without the costs associated with a whole-distribution rebuild. The idea is to rebuild only the package that needs to be patched, and then to ``graft'' it onto packages explicitly installed by the user and that were previously referring to the original package. The cost of grafting is typically very low, and order of magnitudes lower than a full rebuild of the dependency chain."
  52228. msgstr ""
  52229. #. type: cindex
  52230. #: guix-git/doc/guix.texi:35340
  52231. #, no-wrap
  52232. msgid "replacements of packages, for grafts"
  52233. msgstr ""
  52234. #. type: Plain text
  52235. #: guix-git/doc/guix.texi:35346
  52236. msgid "For instance, suppose a security update needs to be applied to Bash. Guix developers will provide a package definition for the ``fixed'' Bash, say @code{bash-fixed}, in the usual way (@pxref{Defining Packages}). Then, the original package definition is augmented with a @code{replacement} field pointing to the package containing the bug fix:"
  52237. msgstr ""
  52238. #. type: lisp
  52239. #: guix-git/doc/guix.texi:35353
  52240. #, no-wrap
  52241. msgid ""
  52242. "(define bash\n"
  52243. " (package\n"
  52244. " (name \"bash\")\n"
  52245. " ;; @dots{}\n"
  52246. " (replacement bash-fixed)))\n"
  52247. msgstr ""
  52248. #. type: Plain text
  52249. #: guix-git/doc/guix.texi:35363
  52250. msgid "From there on, any package depending directly or indirectly on Bash---as reported by @command{guix gc --requisites} (@pxref{Invoking guix gc})---that is installed is automatically ``rewritten'' to refer to @code{bash-fixed} instead of @code{bash}. This grafting process takes time proportional to the size of the package, usually less than a minute for an ``average'' package on a recent machine. Grafting is recursive: when an indirect dependency requires grafting, then grafting ``propagates'' up to the package that the user is installing."
  52251. msgstr ""
  52252. #. type: Plain text
  52253. #: guix-git/doc/guix.texi:35371
  52254. msgid "Currently, the length of the name and version of the graft and that of the package it replaces (@code{bash-fixed} and @code{bash} in the example above) must be equal. This restriction mostly comes from the fact that grafting works by patching files, including binary files, directly. Other restrictions may apply: for instance, when adding a graft to a package providing a shared library, the original shared library and its replacement must have the same @code{SONAME} and be binary-compatible."
  52255. msgstr ""
  52256. #. type: Plain text
  52257. #: guix-git/doc/guix.texi:35375
  52258. msgid "The @option{--no-grafts} command-line option allows you to forcefully avoid grafting (@pxref{Common Build Options, @option{--no-grafts}}). Thus, the command:"
  52259. msgstr ""
  52260. #. type: example
  52261. #: guix-git/doc/guix.texi:35378
  52262. #, no-wrap
  52263. msgid "guix build bash --no-grafts\n"
  52264. msgstr ""
  52265. #. type: Plain text
  52266. #: guix-git/doc/guix.texi:35382
  52267. msgid "returns the store file name of the original Bash, whereas:"
  52268. msgstr ""
  52269. #. type: example
  52270. #: guix-git/doc/guix.texi:35385
  52271. #, no-wrap
  52272. msgid "guix build bash\n"
  52273. msgstr ""
  52274. #. type: Plain text
  52275. #: guix-git/doc/guix.texi:35390
  52276. msgid "returns the store file name of the ``fixed'', replacement Bash. This allows you to distinguish between the two variants of Bash."
  52277. msgstr ""
  52278. #. type: Plain text
  52279. #: guix-git/doc/guix.texi:35393
  52280. msgid "To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}):"
  52281. msgstr ""
  52282. #. type: example
  52283. #: guix-git/doc/guix.texi:35396
  52284. #, no-wrap
  52285. msgid "guix gc -R $(readlink -f ~/.guix-profile) | grep bash\n"
  52286. msgstr ""
  52287. #. type: Plain text
  52288. #: guix-git/doc/guix.texi:35401
  52289. msgid "@dots{} and compare the store file names that you get with those above. Likewise for a complete Guix system generation:"
  52290. msgstr ""
  52291. #. type: example
  52292. #: guix-git/doc/guix.texi:35404
  52293. #, no-wrap
  52294. msgid "guix gc -R $(guix system build my-config.scm) | grep bash\n"
  52295. msgstr ""
  52296. #. type: Plain text
  52297. #: guix-git/doc/guix.texi:35408
  52298. msgid "Lastly, to check which Bash running processes are using, you can use the @command{lsof} command:"
  52299. msgstr ""
  52300. #. type: example
  52301. #: guix-git/doc/guix.texi:35411
  52302. #, no-wrap
  52303. msgid "lsof | grep /gnu/store/.*bash\n"
  52304. msgstr ""
  52305. #. type: cindex
  52306. #: guix-git/doc/guix.texi:35419
  52307. #, no-wrap
  52308. msgid "bootstrapping"
  52309. msgstr ""
  52310. #. type: Plain text
  52311. #: guix-git/doc/guix.texi:35426
  52312. msgid "Bootstrapping in our context refers to how the distribution gets built ``from nothing''. Remember that the build environment of a derivation contains nothing but its declared inputs (@pxref{Introduction}). So there's an obvious chicken-and-egg problem: how does the first package get built? How does the first compiler get compiled?"
  52313. msgstr ""
  52314. #. type: Plain text
  52315. #: guix-git/doc/guix.texi:35434
  52316. msgid "It is tempting to think of this question as one that only die-hard hackers may care about. However, while the answer to that question is technical in nature, its implications are wide-ranging. How the distribution is bootstrapped defines the extent to which we, as individuals and as a collective of users and hackers, can trust the software we run. It is a central concern from the standpoint of @emph{security} and from a @emph{user freedom} viewpoint."
  52317. msgstr ""
  52318. #. type: cindex
  52319. #: guix-git/doc/guix.texi:35435 guix-git/doc/guix.texi:35647
  52320. #, no-wrap
  52321. msgid "bootstrap binaries"
  52322. msgstr ""
  52323. #. type: Plain text
  52324. #: guix-git/doc/guix.texi:35445
  52325. msgid "The GNU system is primarily made of C code, with libc at its core. The GNU build system itself assumes the availability of a Bourne shell and command-line tools provided by GNU Coreutils, Awk, Findutils, `sed', and `grep'. Furthermore, build programs---programs that run @code{./configure}, @code{make}, etc.---are written in Guile Scheme (@pxref{Derivations}). Consequently, to be able to build anything at all, from scratch, Guix relies on pre-built binaries of Guile, GCC, Binutils, libc, and the other packages mentioned above---the @dfn{bootstrap binaries}."
  52326. msgstr ""
  52327. #. type: Plain text
  52328. #: guix-git/doc/guix.texi:35449
  52329. msgid "These bootstrap binaries are ``taken for granted'', though we can also re-create them if needed (@pxref{Preparing to Use the Bootstrap Binaries})."
  52330. msgstr ""
  52331. #. type: section
  52332. #: guix-git/doc/guix.texi:35456
  52333. #, no-wrap
  52334. msgid "The Reduced Binary Seed Bootstrap"
  52335. msgstr ""
  52336. #. type: Plain text
  52337. #: guix-git/doc/guix.texi:35463
  52338. msgid "Guix---like other GNU/Linux distributions---is traditionally bootstrapped from a set of bootstrap binaries: Bourne shell, command-line tools provided by GNU Coreutils, Awk, Findutils, `sed', and `grep' and Guile, GCC, Binutils, and the GNU C Library (@pxref{Bootstrapping}). Usually, these bootstrap binaries are ``taken for granted.''"
  52339. msgstr ""
  52340. #. type: Plain text
  52341. #: guix-git/doc/guix.texi:35469
  52342. msgid "Taking the bootstrap binaries for granted means that we consider them to be a correct and trustworthy ``seed'' for building the complete system. Therein lies a problem: the combined size of these bootstrap binaries is about 250MB (@pxref{Bootstrappable Builds,,, mes, GNU Mes}). Auditing or even inspecting these is next to impossible."
  52343. msgstr ""
  52344. #. type: Plain text
  52345. #: guix-git/doc/guix.texi:35474
  52346. msgid "For @code{i686-linux} and @code{x86_64-linux}, Guix now features a ``Reduced Binary Seed'' bootstrap @footnote{We would like to say: ``Full Source Bootstrap'' and while we are working towards that goal it would be hyperbole to use that term for what we do now.}."
  52347. msgstr ""
  52348. #. type: Plain text
  52349. #: guix-git/doc/guix.texi:35480
  52350. msgid "The Reduced Binary Seed bootstrap removes the most critical tools---from a trust perspective---from the bootstrap binaries: GCC, Binutils and the GNU C Library are replaced by: @code{bootstrap-mescc-tools} (a tiny assembler and linker) and @code{bootstrap-mes} (a small Scheme Interpreter and a C compiler written in Scheme and the Mes C Library, built for TinyCC and for GCC)."
  52351. msgstr ""
  52352. #. type: Plain text
  52353. #: guix-git/doc/guix.texi:35485
  52354. msgid "Using these new binary seeds the ``missing'' Binutils, GCC, and the GNU C Library are built from source. From here on the more traditional bootstrap process resumes. This approach has reduced the bootstrap binaries in size to about 145MB in Guix v1.1."
  52355. msgstr ""
  52356. #. type: Plain text
  52357. #: guix-git/doc/guix.texi:35493
  52358. msgid "The next step that Guix has taken is to replace the shell and all its utilities with implementations in Guile Scheme, the @emph{Scheme-only bootstrap}. Gash (@pxref{Gash,,, gash, The Gash manual}) is a POSIX-compatible shell that replaces Bash, and it comes with Gash Utils which has minimalist replacements for Awk, the GNU Core Utilities, Grep, Gzip, Sed, and Tar. The rest of the bootstrap binary seeds that were removed are now built from source."
  52359. msgstr ""
  52360. #. type: Plain text
  52361. #: guix-git/doc/guix.texi:35503
  52362. msgid "Building the GNU System from source is currently only possible by adding some historical GNU packages as intermediate steps@footnote{Packages such as @code{gcc-2.95.3}, @code{binutils-2.14}, @code{glibc-2.2.5}, @code{gzip-1.2.4}, @code{tar-1.22}, and some others. For details, see @file{gnu/packages/commencement.scm}.}. As Gash and Gash Utils mature, and GNU packages become more bootstrappable again (e.g., new releases of GNU Sed will also ship as gzipped tarballs again, as alternative to the hard to bootstrap @code{xz}-compression), this set of added packages can hopefully be reduced again."
  52363. msgstr ""
  52364. #. type: Plain text
  52365. #: guix-git/doc/guix.texi:35507
  52366. msgid "The graph below shows the resulting dependency graph for @code{gcc-core-mesboot0}, the bootstrap compiler used for the traditional bootstrap of the rest of the Guix System."
  52367. msgstr ""
  52368. #. type: Plain text
  52369. #: guix-git/doc/guix.texi:35510
  52370. msgid "@image{images/gcc-core-mesboot0-graph,6in,,Dependency graph of gcc-core-mesboot0}"
  52371. msgstr ""
  52372. #. type: Plain text
  52373. #: guix-git/doc/guix.texi:35517
  52374. msgid "The only significant binary bootstrap seeds that remain@footnote{ Ignoring the 68KB @code{mescc-tools}; that will be removed later, together with @code{mes}.} are a Scheme interpreter and a Scheme compiler: GNU Mes and GNU Guile@footnote{Not shown in this graph are the static binaries for @file{bash}, @code{tar}, and @code{xz} that are used to get Guile running.}."
  52375. msgstr ""
  52376. #. type: Plain text
  52377. #: guix-git/doc/guix.texi:35520
  52378. msgid "This further reduction has brought down the size of the binary seed to about 60MB for @code{i686-linux} and @code{x86_64-linux}."
  52379. msgstr ""
  52380. #. type: Plain text
  52381. #: guix-git/doc/guix.texi:35525
  52382. msgid "Work is ongoing to remove all binary blobs from our free software bootstrap stack, working towards a Full Source Bootstrap. Also ongoing is work to bring these bootstraps to the @code{arm-linux} and @code{aarch64-linux} architectures and to the Hurd."
  52383. msgstr ""
  52384. #. type: Plain text
  52385. #: guix-git/doc/guix.texi:35529
  52386. msgid "If you are interested, join us on @samp{#bootstrappable} on the Freenode IRC network or discuss on @email{bug-mes@@gnu.org} or @email{gash-devel@@nongnu.org}."
  52387. msgstr ""
  52388. #. type: Plain text
  52389. #: guix-git/doc/guix.texi:35536
  52390. msgid "@image{images/bootstrap-graph,6in,,Dependency graph of the early bootstrap derivations}"
  52391. msgstr ""
  52392. #. type: Plain text
  52393. #: guix-git/doc/guix.texi:35541
  52394. msgid "The figure above shows the very beginning of the dependency graph of the distribution, corresponding to the package definitions of the @code{(gnu packages bootstrap)} module. A similar figure can be generated with @command{guix graph} (@pxref{Invoking guix graph}), along the lines of:"
  52395. msgstr ""
  52396. #. type: example
  52397. #: guix-git/doc/guix.texi:35546
  52398. #, no-wrap
  52399. msgid ""
  52400. "guix graph -t derivation \\\n"
  52401. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-gcc)' \\\n"
  52402. " | dot -Tps > gcc.ps\n"
  52403. msgstr ""
  52404. #. type: Plain text
  52405. #: guix-git/doc/guix.texi:35549
  52406. msgid "or, for the further Reduced Binary Seed bootstrap"
  52407. msgstr ""
  52408. #. type: example
  52409. #: guix-git/doc/guix.texi:35554
  52410. #, no-wrap
  52411. msgid ""
  52412. "guix graph -t derivation \\\n"
  52413. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-mes)' \\\n"
  52414. " | dot -Tps > mes.ps\n"
  52415. msgstr ""
  52416. #. type: Plain text
  52417. #: guix-git/doc/guix.texi:35563
  52418. msgid "At this level of detail, things are slightly complex. First, Guile itself consists of an ELF executable, along with many source and compiled Scheme files that are dynamically loaded when it runs. This gets stored in the @file{guile-2.0.7.tar.xz} tarball shown in this graph. This tarball is part of Guix's ``source'' distribution, and gets inserted into the store with @code{add-to-store} (@pxref{The Store})."
  52419. msgstr ""
  52420. #. type: Plain text
  52421. #: guix-git/doc/guix.texi:35572
  52422. msgid "But how do we write a derivation that unpacks this tarball and adds it to the store? To solve this problem, the @code{guile-bootstrap-2.0.drv} derivation---the first one that gets built---uses @code{bash} as its builder, which runs @code{build-bootstrap-guile.sh}, which in turn calls @code{tar} to unpack the tarball. Thus, @file{bash}, @file{tar}, @file{xz}, and @file{mkdir} are statically-linked binaries, also part of the Guix source distribution, whose sole purpose is to allow the Guile tarball to be unpacked."
  52423. msgstr ""
  52424. #. type: Plain text
  52425. #: guix-git/doc/guix.texi:35584
  52426. msgid "Once @code{guile-bootstrap-2.0.drv} is built, we have a functioning Guile that can be used to run subsequent build programs. Its first task is to download tarballs containing the other pre-built binaries---this is what the @file{.tar.xz.drv} derivations do. Guix modules such as @code{ftp-client.scm} are used for this purpose. The @code{module-import.drv} derivations import those modules in a directory in the store, using the original layout. The @code{module-import-compiled.drv} derivations compile those modules, and write them in an output directory with the right layout. This corresponds to the @code{#:modules} argument of @code{build-expression->derivation} (@pxref{Derivations})."
  52427. msgstr ""
  52428. #. type: Plain text
  52429. #: guix-git/doc/guix.texi:35589
  52430. msgid "Finally, the various tarballs are unpacked by the derivations @code{gcc-bootstrap-0.drv}, @code{glibc-bootstrap-0.drv}, or @code{bootstrap-mes-0.drv} and @code{bootstrap-mescc-tools-0.drv}, at which point we have a working C tool chain."
  52431. msgstr ""
  52432. #. type: unnumberedsec
  52433. #: guix-git/doc/guix.texi:35590
  52434. #, no-wrap
  52435. msgid "Building the Build Tools"
  52436. msgstr ""
  52437. #. type: Plain text
  52438. #: guix-git/doc/guix.texi:35599
  52439. msgid "Bootstrapping is complete when we have a full tool chain that does not depend on the pre-built bootstrap tools discussed above. This no-dependency requirement is verified by checking whether the files of the final tool chain contain references to the @file{/gnu/store} directories of the bootstrap inputs. The process that leads to this ``final'' tool chain is described by the package definitions found in the @code{(gnu packages commencement)} module."
  52440. msgstr ""
  52441. #. type: Plain text
  52442. #: guix-git/doc/guix.texi:35606
  52443. msgid "The @command{guix graph} command allows us to ``zoom out'' compared to the graph above, by looking at the level of package objects instead of individual derivations---remember that a package may translate to several derivations, typically one derivation to download its source, one to build the Guile modules it needs, and one to actually build the package from source. The command:"
  52444. msgstr ""
  52445. #. type: example
  52446. #: guix-git/doc/guix.texi:35611
  52447. #, no-wrap
  52448. msgid ""
  52449. "guix graph -t bag \\\n"
  52450. " -e '(@@@@ (gnu packages commencement)\n"
  52451. " glibc-final-with-bootstrap-bash)' | xdot -\n"
  52452. msgstr ""
  52453. #. type: Plain text
  52454. #: guix-git/doc/guix.texi:35618
  52455. msgid "displays the dependency graph leading to the ``final'' C library@footnote{You may notice the @code{glibc-intermediate} label, suggesting that it is not @emph{quite} final, but as a good approximation, we will consider it final.}, depicted below."
  52456. msgstr ""
  52457. #. type: Plain text
  52458. #: guix-git/doc/guix.texi:35620
  52459. msgid "@image{images/bootstrap-packages,6in,,Dependency graph of the early packages}"
  52460. msgstr ""
  52461. #. type: Plain text
  52462. #: guix-git/doc/guix.texi:35626
  52463. msgid "The first tool that gets built with the bootstrap binaries is GNU@tie{}Make---noted @code{make-boot0} above---which is a prerequisite for all the following packages. From there Findutils and Diffutils get built."
  52464. msgstr ""
  52465. #. type: Plain text
  52466. #: guix-git/doc/guix.texi:35631
  52467. msgid "Then come the first-stage Binutils and GCC, built as pseudo cross tools---i.e., with @option{--target} equal to @option{--host}. They are used to build libc. Thanks to this cross-build trick, this libc is guaranteed not to hold any reference to the initial tool chain."
  52468. msgstr ""
  52469. #. type: Plain text
  52470. #: guix-git/doc/guix.texi:35637
  52471. msgid "From there the final Binutils and GCC (not shown above) are built. GCC uses @command{ld} from the final Binutils, and links programs against the just-built libc. This tool chain is used to build the other packages used by Guix and by the GNU Build System: Guile, Bash, Coreutils, etc."
  52472. msgstr ""
  52473. #. type: Plain text
  52474. #: guix-git/doc/guix.texi:35643
  52475. msgid "And voilà! At this point we have the complete set of build tools that the GNU Build System expects. These are in the @code{%final-inputs} variable of the @code{(gnu packages commencement)} module, and are implicitly used by any package that uses @code{gnu-build-system} (@pxref{Build Systems, @code{gnu-build-system}})."
  52476. msgstr ""
  52477. #. type: unnumberedsec
  52478. #: guix-git/doc/guix.texi:35645
  52479. #, no-wrap
  52480. msgid "Building the Bootstrap Binaries"
  52481. msgstr ""
  52482. #. type: Plain text
  52483. #: guix-git/doc/guix.texi:35652
  52484. msgid "Because the final tool chain does not depend on the bootstrap binaries, those rarely need to be updated. Nevertheless, it is useful to have an automated way to produce them, should an update occur, and this is what the @code{(gnu packages make-bootstrap)} module provides."
  52485. msgstr ""
  52486. #. type: Plain text
  52487. #: guix-git/doc/guix.texi:35658
  52488. msgid "The following command builds the tarballs containing the bootstrap binaries (Binutils, GCC, glibc, for the traditional bootstrap and linux-libre-headers, bootstrap-mescc-tools, bootstrap-mes for the Reduced Binary Seed bootstrap, and Guile, and a tarball containing a mixture of Coreutils and other basic command-line tools):"
  52489. msgstr ""
  52490. #. type: example
  52491. #: guix-git/doc/guix.texi:35661
  52492. #, no-wrap
  52493. msgid "guix build bootstrap-tarballs\n"
  52494. msgstr ""
  52495. #. type: Plain text
  52496. #: guix-git/doc/guix.texi:35666
  52497. msgid "The generated tarballs are those that should be referred to in the @code{(gnu packages bootstrap)} module mentioned at the beginning of this section."
  52498. msgstr ""
  52499. #. type: Plain text
  52500. #: guix-git/doc/guix.texi:35672
  52501. msgid "Still here? Then perhaps by now you've started to wonder: when do we reach a fixed point? That is an interesting question! The answer is unknown, but if you would like to investigate further (and have significant computational and storage resources to do so), then let us know."
  52502. msgstr ""
  52503. #. type: unnumberedsec
  52504. #: guix-git/doc/guix.texi:35673
  52505. #, no-wrap
  52506. msgid "Reducing the Set of Bootstrap Binaries"
  52507. msgstr ""
  52508. #. type: Plain text
  52509. #: guix-git/doc/guix.texi:35681
  52510. msgid "Our traditional bootstrap includes GCC, GNU Libc, Guile, etc. That's a lot of binary code! Why is that a problem? It's a problem because these big chunks of binary code are practically non-auditable, which makes it hard to establish what source code produced them. Every unauditable binary also leaves us vulnerable to compiler backdoors as described by Ken Thompson in the 1984 paper @emph{Reflections on Trusting Trust}."
  52511. msgstr ""
  52512. #. type: Plain text
  52513. #: guix-git/doc/guix.texi:35687
  52514. msgid "This is mitigated by the fact that our bootstrap binaries were generated from an earlier Guix revision. Nevertheless it lacks the level of transparency that we get in the rest of the package dependency graph, where Guix always gives us a source-to-binary mapping. Thus, our goal is to reduce the set of bootstrap binaries to the bare minimum."
  52515. msgstr ""
  52516. #. type: Plain text
  52517. #: guix-git/doc/guix.texi:35693
  52518. msgid "The @uref{https://bootstrappable.org, Bootstrappable.org web site} lists on-going projects to do that. One of these is about replacing the bootstrap GCC with a sequence of assemblers, interpreters, and compilers of increasing complexity, which could be built from source starting from a simple and auditable assembler."
  52519. msgstr ""
  52520. #. type: Plain text
  52521. #: guix-git/doc/guix.texi:35702
  52522. msgid "Our first major achievement is the replacement of of GCC, the GNU C Library and Binutils by MesCC-Tools (a simple hex linker and macro assembler) and Mes (@pxref{Top, GNU Mes Reference Manual,, mes, GNU Mes}, a Scheme interpreter and C compiler in Scheme). Neither MesCC-Tools nor Mes can be fully bootstrapped yet and thus we inject them as binary seeds. We call this the Reduced Binary Seed bootstrap, as it has halved the size of our bootstrap binaries! Also, it has eliminated the C compiler binary; i686-linux and x86_64-linux Guix packages are now bootstrapped without any binary C compiler."
  52523. msgstr ""
  52524. #. type: Plain text
  52525. #: guix-git/doc/guix.texi:35705
  52526. msgid "Work is ongoing to make MesCC-Tools and Mes fully bootstrappable and we are also looking at any other bootstrap binaries. Your help is welcome!"
  52527. msgstr ""
  52528. #. type: chapter
  52529. #: guix-git/doc/guix.texi:35707
  52530. #, no-wrap
  52531. msgid "Porting to a New Platform"
  52532. msgstr ""
  52533. #. type: Plain text
  52534. #: guix-git/doc/guix.texi:35716
  52535. msgid "As discussed above, the GNU distribution is self-contained, and self-containment is achieved by relying on pre-built ``bootstrap binaries'' (@pxref{Bootstrapping}). These binaries are specific to an operating system kernel, CPU architecture, and application binary interface (ABI). Thus, to port the distribution to a platform that is not yet supported, one must build those bootstrap binaries, and update the @code{(gnu packages bootstrap)} module to use them on that platform."
  52536. msgstr ""
  52537. #. type: Plain text
  52538. #: guix-git/doc/guix.texi:35721
  52539. msgid "Fortunately, Guix can @emph{cross compile} those bootstrap binaries. When everything goes well, and assuming the GNU tool chain supports the target platform, this can be as simple as running a command like this one:"
  52540. msgstr ""
  52541. #. type: example
  52542. #: guix-git/doc/guix.texi:35724
  52543. #, no-wrap
  52544. msgid "guix build --target=armv5tel-linux-gnueabi bootstrap-tarballs\n"
  52545. msgstr ""
  52546. #. type: Plain text
  52547. #: guix-git/doc/guix.texi:35731
  52548. msgid "For this to work, the @code{glibc-dynamic-linker} procedure in @code{(gnu packages bootstrap)} must be augmented to return the right file name for libc's dynamic linker on that platform; likewise, @code{system->linux-architecture} in @code{(gnu packages linux)} must be taught about the new platform."
  52549. msgstr ""
  52550. #. type: Plain text
  52551. #: guix-git/doc/guix.texi:35740
  52552. msgid "Once these are built, the @code{(gnu packages bootstrap)} module needs to be updated to refer to these binaries on the target platform. That is, the hashes and URLs of the bootstrap tarballs for the new platform must be added alongside those of the currently supported platforms. The bootstrap Guile tarball is treated specially: it is expected to be available locally, and @file{gnu/local.mk} has rules to download it for the supported architectures; a rule for the new platform must be added as well."
  52553. msgstr ""
  52554. #. type: Plain text
  52555. #: guix-git/doc/guix.texi:35749
  52556. msgid "In practice, there may be some complications. First, it may be that the extended GNU triplet that specifies an ABI (like the @code{eabi} suffix above) is not recognized by all the GNU tools. Typically, glibc recognizes some of these, whereas GCC uses an extra @option{--with-abi} configure flag (see @code{gcc.scm} for examples of how to handle this). Second, some of the required packages could fail to build for that platform. Lastly, the generated binaries could be broken for some reason."
  52557. msgstr ""
  52558. #. type: include
  52559. #: guix-git/doc/guix.texi:35751
  52560. #, no-wrap
  52561. msgid "contributing.texi"
  52562. msgstr "contributing.zh_CN.texi"
  52563. #. type: Plain text
  52564. #: guix-git/doc/guix.texi:35764
  52565. msgid "Guix is based on the @uref{https://nixos.org/nix/, Nix package manager}, which was designed and implemented by Eelco Dolstra, with contributions from other people (see the @file{nix/AUTHORS} file in Guix). Nix pioneered functional package management, and promoted unprecedented features, such as transactional package upgrades and rollbacks, per-user profiles, and referentially transparent build processes. Without this work, Guix would not exist."
  52566. msgstr ""
  52567. #. type: Plain text
  52568. #: guix-git/doc/guix.texi:35767
  52569. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  52570. msgstr "基于 Nix 的软件发行版 Nixpkgs 和 NixOS 也给 Guix 带来了灵感。"
  52571. #. type: Plain text
  52572. #: guix-git/doc/guix.texi:35773
  52573. msgid "GNU@tie{}Guix itself is a collective work with contributions from a number of people. See the @file{AUTHORS} file in Guix for more information on these fine people. The @file{THANKS} file lists people who have helped by reporting bugs, taking care of the infrastructure, providing artwork and themes, making suggestions, and more---thank you!"
  52574. msgstr ""
  52575. #. type: cindex
  52576. #: guix-git/doc/guix.texi:35778
  52577. #, no-wrap
  52578. msgid "license, GNU Free Documentation License"
  52579. msgstr ""
  52580. #. type: include
  52581. #: guix-git/doc/guix.texi:35779
  52582. #, no-wrap
  52583. msgid "fdl-1.3.texi"
  52584. msgstr ""
  52585. #, fuzzy
  52586. #~ msgid "@code{opam}, the default opam repository,"
  52587. #~ msgstr "@code{mate}(默认值:@code{mate})"
  52588. #, fuzzy
  52589. #~ msgid "of coq packages."
  52590. #~ msgstr "定义新软件包。"
  52591. #~ msgid "Using Debbugs."
  52592. #~ msgstr "用Debbugs。"
  52593. #, fuzzy
  52594. #~| msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  52595. #~ msgid "@xref{Build Phases}, for more info on build phases and ways to customize them."
  52596. #~ msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  52597. #~ msgid ""
  52598. #~ "(service qemu-binfmt-service-type\n"
  52599. #~ " (qemu-binfmt-configuration\n"
  52600. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  52601. #~ " (guix-support? #t)))\n"
  52602. #~ msgstr ""
  52603. #~ "(service qemu-binfmt-service-type\n"
  52604. #~ " (qemu-binfmt-configuration\n"
  52605. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  52606. #~ " (guix-support? #t)))\n"
  52607. #, fuzzy
  52608. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  52609. #~ msgid "@code{queries-log-file} (default: @code{#f})"
  52610. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  52611. #, fuzzy
  52612. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  52613. #~ msgid "@code{web-queries-log-file} (default: @code{#f})"
  52614. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  52615. #, fuzzy
  52616. #~| msgid "@code{max-zone-size} (default: @code{#f})"
  52617. #~ msgid "@code{queue-size} (default: @code{1})"
  52618. #~ msgstr "@code{max-zone-size}(默认值:@code{#f})"
  52619. #, fuzzy
  52620. #~| msgid "The host name of the remote machine."
  52621. #~ msgid "Size of the database writer queue."
  52622. #~ msgstr "远程机器的主机名。"
  52623. #, fuzzy
  52624. #~| msgid "Manage the operating system configuration."
  52625. #~ msgid "Data type representing the configuration of a simple Cuirass instance."
  52626. #~ msgstr "管理操作系统配置。"
  52627. #, fuzzy
  52628. #~| msgid "@code{port} (default: @code{22})"
  52629. #~ msgid "@code{build} (default: @code{all})"
  52630. #~ msgstr "@code{port}(默认值:@code{22})"
  52631. #, fuzzy
  52632. #~| msgid "{Data Type} build-machine"
  52633. #~ msgid "{Data Type} build-manifest"
  52634. #~ msgstr "{数据类型} build-machine"
  52635. #, fuzzy
  52636. #~| msgid "Channels"
  52637. #~ msgid "channel-name"
  52638. #~ msgstr "通道"
  52639. #, fuzzy
  52640. #~| msgid "-c @var{n}"
  52641. #~ msgid "manifest"
  52642. #~ msgstr "-c @var{n}"
  52643. #, fuzzy
  52644. #~| msgid "@code{includes} (default: @code{'()})"
  52645. #~ msgid "@code{non-package-channels} (default: @code{'()})"
  52646. #~ msgstr "@code{includes}(默认值:@code{'()})"
  52647. #, fuzzy
  52648. #~| msgid "@code{port} (default: @code{22})"
  52649. #~ msgid "@code{guix-support?} (default: @code{#t})"
  52650. #~ msgstr "@code{port}(默认值:@code{22})"
  52651. #, fuzzy
  52652. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  52653. #~ msgid "@code{password-file} (default: @code{#f})"
  52654. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  52655. #~ msgid "Generally, branches other than @code{master} are considered @emph{frozen} if there has been a recent evaluation, or there is a corresponding @code{-next} branch. Please ask on the mailing list or IRC if unsure where to place a patch."
  52656. #~ msgstr "通常,@code{master}之外的其它分支如果最近被评审过,或有一个对应的@code{-next}分支,则被视为@emph{冻结}状态。如果不清楚该把补丁放到哪里,请在邮件列表或IRC上提问。"
  52657. #~ msgid "@xref{Invoking guix environment}, for more information on that command. Extra dependencies can be added with @option{--ad-hoc}:"
  52658. #~ msgstr "这个命令更多的信息请参考@xref{Invoking guix environment}。额外的依赖可以通过@option{--ad-hoc}选项添加:"
  52659. #~ msgid "Fiddling with Guix interactively."
  52660. #~ msgstr "交互式地操作Guix。"
  52661. #~ msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel. This is currently in an experimental stage, with limited support. @xref{Contributing}, for how to help!"
  52662. #~ msgstr "小端序64位ARMv8-A处理器,Linux-Libre内核。目前处于实验阶段,支持有限。@xref{Contributing},提供帮助!"
  52663. #~ msgid "@url{https://zlib.net, zlib};"
  52664. #~ msgstr "@url{https://zlib.net, zlib};"
  52665. #~ msgid "Nix, compatibility"
  52666. #~ msgstr "Nix,兼容性"
  52667. #~ msgid "When a working installation of @url{https://nixos.org/nix/, the Nix package manager} is available, you can instead configure Guix with @code{--disable-daemon}. In that case, Nix replaces the three dependencies above."
  52668. #~ msgstr "当一个已经安装的且可用的@url{https://nixos.org/nix/, Nix包管理器}存在时,你可以为Guix配置@code{--disable-daemon}参数。那样Nix可以替换上面的三个依赖。"
  52669. #~ msgid "Guix is compatible with Nix, so it is possible to share the same store between both. To do so, you must pass @command{configure} not only the same @code{--with-store-dir} value, but also the same @code{--localstatedir} value. The latter is essential because it specifies where the database that stores metadata about the store is located, among other things. The default values for Nix are @code{--with-store-dir=/nix/store} and @code{--localstatedir=/nix/var}. Note that @code{--disable-daemon} is not required if your goal is to share the store with Nix."
  52670. #~ msgstr "Guix和Nix兼容,所以两者共享相同的仓库是可行的。如果这样做,你必须传给@command{configure}相同的@code{--with-store-dir},以及相同的@code{--localstatedir}。后者很重要,因为它指定了储存仓库元数据以及其它信息的数据库的位置,。Nix的默认值是@code{--with-store-dir=/nix/store}和@code{--localstatedir=/nix/var}。注意,如果你的目的是和Nix共享仓库,那么@code{--disable-daemon}参数不是必须的。"
  52671. #~ msgid "--no-build-hook"
  52672. #~ msgstr "--no-build-hook"
  52673. #~ msgid "Do not use the @dfn{build hook}."
  52674. #~ msgstr "不要使用@dfn{构建钩子}。"
  52675. #~ msgid "The build hook is a helper program that the daemon can start and to which it submits build requests. This mechanism is used to offload builds to other machines (@pxref{Daemon Offload Setup})."
  52676. #~ msgstr "构建钩子是一个可以被后台进程启动并且提交构建请求的辅助程序。这个机制被用来向其它机器下发构建。(@pxref{Daemon Offload Setup})。"
  52677. #~ msgid "The @code{guix} package must remain available in @code{root}'s profile, or it would become subject to garbage collection---in which case you would find yourself badly handicapped by the lack of the @command{guix} command. In other words, do not remove @code{guix} by running @code{guix package -r guix}."
  52678. #~ msgstr "@code{guix}软件包必须保留在@code{root}的profile里,否则它会被垃圾回收清理掉--那时你会发现缺少@command{guix}命令。换句话说,不要用@code{guix package -r guix}命令删除@code{guix}。"