guix-manual.zh_CN.po 2.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773
  1. # Chinese (simplified) translation of the Guix manual.
  2. # Copyright (C) 2013-2019 the authors of Guix (msgids)
  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. msgid ""
  10. msgstr ""
  11. "Project-Id-Version: guix-manual 1.0.1-pre1\n"
  12. "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
  13. "POT-Creation-Date: 2021-04-06 13:33+0200\n"
  14. "PO-Revision-Date: 2021-04-25 06:02+0000\n"
  15. "Last-Translator: Charles Lee <lchopn@gmail.com>\n"
  16. "Language-Team: Chinese (Simplified) <https://translate.fedoraproject.org/projects/guix/documentation-manual/zh_CN/>\n"
  17. "Language: zh_CN\n"
  18. "MIME-Version: 1.0\n"
  19. "Content-Type: text/plain; charset=UTF-8\n"
  20. "Content-Transfer-Encoding: 8bit\n"
  21. "Plural-Forms: nplurals=1; plural=0;\n"
  22. "X-Generator: Weblate 4.6\n"
  23. "X-Bugs: Report translation errors to the Language-Team address.\n"
  24. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  25. #. type: chapter
  26. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  27. #. type: menuentry
  28. #: guix-git/doc/contributing.texi:1 guix-git/doc/contributing.texi:2
  29. #: guix-git/doc/guix.texi:168
  30. #, no-wrap
  31. msgid "Contributing"
  32. msgstr "贡献"
  33. #. type: Plain text
  34. #: guix-git/doc/contributing.texi:9
  35. 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})."
  36. msgstr "这个项目是大家合作的成果,我们需要你的帮助以更好地发展。请通过@email{guix-devel@@gnu.org} 和 Freenode IRC 上的 @code{#guix} 联系我们。我们欢迎您的想法、bug反馈、补丁,以及任何可能对项目有帮助的贡献。我们特别欢迎帮助我们打包(@pxref{Packaging Guidelines})。"
  37. #. type: cindex
  38. #: guix-git/doc/contributing.texi:10
  39. #, no-wrap
  40. msgid "code of conduct, of contributors"
  41. msgstr "行为准则和贡献者"
  42. #. type: cindex
  43. #: guix-git/doc/contributing.texi:11
  44. #, no-wrap
  45. msgid "contributor covenant"
  46. msgstr "贡献者契约"
  47. #. type: Plain text
  48. #: guix-git/doc/contributing.texi:17
  49. 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."
  50. msgstr "我们希望提供一个温暖、友好,并且没有骚扰的的环境,这样每个人都能尽最大努力贡献。为了这个目的,我们的项目遵循“贡献者契约”,这个契约是根据 @url{https://contributor-covenant.org/} 制定的。你可以在源代码目录里的 @file{CODE-OF-CONDUCT} 文件里找到一份本地版。"
  51. #. type: Plain text
  52. #: guix-git/doc/contributing.texi:21
  53. 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."
  54. msgstr "贡献者在提交补丁和网上交流时不需要使用法律认可的名字。他们可以使用任何名字或者假名。"
  55. #. type: section
  56. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:34
  57. #: guix-git/doc/contributing.texi:35
  58. #, no-wrap
  59. msgid "Building from Git"
  60. msgstr "从Git构建"
  61. #. type: menuentry
  62. #: guix-git/doc/contributing.texi:32
  63. msgid "The latest and greatest."
  64. msgstr "最新的并且最好的。"
  65. #. type: section
  66. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:160
  67. #: guix-git/doc/contributing.texi:161
  68. #, no-wrap
  69. msgid "Running Guix Before It Is Installed"
  70. msgstr "在安装之前运行Guix"
  71. #. type: menuentry
  72. #: guix-git/doc/contributing.texi:32
  73. msgid "Hacker tricks."
  74. msgstr "黑客技巧。"
  75. #. type: section
  76. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:234
  77. #: guix-git/doc/contributing.texi:235
  78. #, no-wrap
  79. msgid "The Perfect Setup"
  80. msgstr "完美的配置"
  81. #. type: menuentry
  82. #: guix-git/doc/contributing.texi:32
  83. msgid "The right tools."
  84. msgstr "正确的工具。"
  85. #. type: section
  86. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:325
  87. #: guix-git/doc/contributing.texi:326
  88. #, no-wrap
  89. msgid "Packaging Guidelines"
  90. msgstr "打包指导"
  91. #. type: menuentry
  92. #: guix-git/doc/contributing.texi:32
  93. msgid "Growing the distribution."
  94. msgstr "帮助发行版成长。"
  95. #. type: section
  96. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:873
  97. #: guix-git/doc/contributing.texi:874
  98. #, no-wrap
  99. msgid "Coding Style"
  100. msgstr "代码风格"
  101. #. type: menuentry
  102. #: guix-git/doc/contributing.texi:32
  103. msgid "Hygiene of the contributor."
  104. msgstr "出资者的卫生状况。"
  105. #. type: section
  106. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:972
  107. #: guix-git/doc/contributing.texi:973
  108. #, no-wrap
  109. msgid "Submitting Patches"
  110. msgstr "提交补丁"
  111. #. type: menuentry
  112. #: guix-git/doc/contributing.texi:32
  113. msgid "Share your work."
  114. msgstr "分享你的工作。"
  115. #. type: section
  116. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:1198
  117. #: guix-git/doc/contributing.texi:1199
  118. #, no-wrap
  119. msgid "Tracking Bugs and Patches"
  120. msgstr ""
  121. #. type: menuentry
  122. #: guix-git/doc/contributing.texi:32
  123. msgid "Using Debbugs."
  124. msgstr "用Debbugs。"
  125. #. type: section
  126. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:1249
  127. #: guix-git/doc/contributing.texi:1250
  128. #, no-wrap
  129. msgid "Commit Access"
  130. msgstr "提交权利"
  131. #. type: menuentry
  132. #: guix-git/doc/contributing.texi:32
  133. msgid "Pushing to the official repository."
  134. msgstr "推送到管方的仓库。"
  135. #. type: section
  136. #: guix-git/doc/contributing.texi:32 guix-git/doc/contributing.texi:1396
  137. #: guix-git/doc/contributing.texi:1397
  138. #, no-wrap
  139. msgid "Updating the Guix Package"
  140. msgstr "更新Guix软件包"
  141. #. type: menuentry
  142. #: guix-git/doc/contributing.texi:32
  143. msgid "Updating the Guix package definition."
  144. msgstr "更新Guix的软件包定义。"
  145. #. type: Plain text
  146. #: guix-git/doc/contributing.texi:39
  147. msgid "If you want to hack Guix itself, it is recommended to use the latest version from the Git repository:"
  148. msgstr "如果你想折腾Guix本身,建议使用Git仓库里最新的版本:"
  149. #. type: example
  150. #: guix-git/doc/contributing.texi:42
  151. #, no-wrap
  152. msgid "git clone https://git.savannah.gnu.org/git/guix.git\n"
  153. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  154. #. type: cindex
  155. #: guix-git/doc/contributing.texi:44
  156. #, no-wrap
  157. msgid "authentication, of a Guix checkout"
  158. msgstr ""
  159. #. type: Plain text
  160. #: guix-git/doc/contributing.texi:49
  161. 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}):"
  162. msgstr ""
  163. #. type: example
  164. #: guix-git/doc/contributing.texi:56
  165. #, no-wrap
  166. msgid ""
  167. "git fetch origin keyring:keyring\n"
  168. "guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \\\n"
  169. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\"\n"
  170. msgstr ""
  171. #. type: Plain text
  172. #: guix-git/doc/contributing.texi:61
  173. msgid "This command completes with exit code zero on success; it prints an error message and exits with a non-zero code otherwise."
  174. msgstr ""
  175. #. type: Plain text
  176. #: guix-git/doc/contributing.texi:68
  177. 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."
  178. msgstr ""
  179. #. type: Plain text
  180. #: guix-git/doc/contributing.texi:73
  181. 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:"
  182. msgstr "设置Guix开发环境的最简单的方式当然是使用Guix!下面这些命令启动一个shell,所有的依赖和环境变量都为折腾Guix设置好了:"
  183. #. type: example
  184. #: guix-git/doc/contributing.texi:76
  185. #, no-wrap
  186. msgid "guix environment guix --pure\n"
  187. msgstr "guix environment guix --pure\n"
  188. #. type: Plain text
  189. #: guix-git/doc/contributing.texi:79
  190. #, fuzzy
  191. msgid "@xref{Invoking guix environment}, for more information on that command."
  192. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  193. #. type: Plain text
  194. #: guix-git/doc/contributing.texi:83
  195. #, fuzzy
  196. 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})."
  197. msgstr "当从Git检出构建Guix时,除安装指导(@pxref{Requirements})里提及的软件包之外还需要这些包。"
  198. #. type: item
  199. #: guix-git/doc/contributing.texi:85
  200. #, no-wrap
  201. msgid "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  202. msgstr "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  203. #. type: item
  204. #: guix-git/doc/contributing.texi:86
  205. #, no-wrap
  206. msgid "@url{https://gnu.org/software/automake/, GNU Automake};"
  207. msgstr "@url{https://gnu.org/software/automake/, GNU Automake};"
  208. #. type: item
  209. #: guix-git/doc/contributing.texi:87
  210. #, no-wrap
  211. msgid "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  212. msgstr "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  213. #. type: item
  214. #: guix-git/doc/contributing.texi:88
  215. #, no-wrap
  216. msgid "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  217. msgstr "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  218. #. type: item
  219. #: guix-git/doc/contributing.texi:89
  220. #, no-wrap
  221. msgid "@url{https://www.graphviz.org/, Graphviz};"
  222. msgstr "@url{https://www.graphviz.org/, Graphviz};"
  223. #. type: item
  224. #: guix-git/doc/contributing.texi:90
  225. #, no-wrap
  226. msgid "@url{https://www.gnu.org/software/help2man/, GNU Help2man (optional)}."
  227. msgstr "@url{https://www.gnu.org/software/help2man/, GNU Help2man(可选)}。"
  228. #. type: Plain text
  229. #: guix-git/doc/contributing.texi:95
  230. msgid "On Guix, extra dependencies can be added by instead running @command{guix environment} with @option{--ad-hoc}:"
  231. msgstr ""
  232. #. type: example
  233. #: guix-git/doc/contributing.texi:98
  234. #, no-wrap
  235. msgid "guix environment guix --pure --ad-hoc help2man git strace\n"
  236. msgstr "guix environment guix --pure --ad-hoc help2man git strace\n"
  237. #. type: Plain text
  238. #: guix-git/doc/contributing.texi:102
  239. msgid "Run @command{./bootstrap} to generate the build system infrastructure using Autoconf and Automake. If you get an error like this one:"
  240. msgstr "运行 @command{./bootstrap} 以使用Autoconf和Automake生成构建系统的基础框架。如果你的得到这样的错误:"
  241. #. type: example
  242. #: guix-git/doc/contributing.texi:105
  243. #, no-wrap
  244. msgid "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  245. msgstr "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  246. #. type: Plain text
  247. #: guix-git/doc/contributing.texi:114
  248. 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:"
  249. msgstr "它可能意味着Autoconf无法找到由pkg-config提供的@file{pkg.m4}。请确保@file{pkg.m4}可用。由Guile提供的@file{guile.m4}宏也类似。假如你的Automake安装在@file{/usr/local},那么它不会从@file{/usr/share}里寻找@file{.m4}文件。这种情况下,你必须执行下面这个命令:"
  250. #. type: example
  251. #: guix-git/doc/contributing.texi:117
  252. #, no-wrap
  253. msgid "export ACLOCAL_PATH=/usr/share/aclocal\n"
  254. msgstr "export ACLOCAL_PATH=/usr/share/aclocal\n"
  255. #. type: Plain text
  256. #: guix-git/doc/contributing.texi:121
  257. msgid "@xref{Macro Search Path,,, automake, The GNU Automake Manual}, for more information."
  258. msgstr "参考@xref{Macro Search Path,,, automake, The GNU Automake Manual}."
  259. #. type: Plain text
  260. #: guix-git/doc/contributing.texi:128
  261. 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}."
  262. msgstr ""
  263. #. type: Plain text
  264. #: guix-git/doc/contributing.texi:133
  265. #, fuzzy
  266. 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}."
  267. msgstr "最后,用@code{make check}执行测试(@pxref{Running the Test Suite})。如果遇到任何错误,请参考“安装指导”(@pxref{Installation})或者给@email{guix-devel@@gnu.org, 邮件列表}发邮件。"
  268. #. type: Plain text
  269. #: guix-git/doc/contributing.texi:136
  270. msgid "From there on, you can authenticate all the commits included in your checkout by running:"
  271. msgstr ""
  272. #. type: example
  273. #: guix-git/doc/contributing.texi:139
  274. #, fuzzy, no-wrap
  275. msgid "make authenticate\n"
  276. msgstr "make check\n"
  277. #. type: Plain text
  278. #: guix-git/doc/contributing.texi:142
  279. msgid "The first run takes a couple of minutes, but subsequent runs are faster."
  280. msgstr ""
  281. #. type: Plain text
  282. #: guix-git/doc/contributing.texi:148
  283. 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:"
  284. msgstr ""
  285. #. type: example
  286. #: guix-git/doc/contributing.texi:151
  287. #, no-wrap
  288. msgid "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  289. msgstr ""
  290. #. type: quotation
  291. #: guix-git/doc/contributing.texi:153 guix-git/doc/contributing.texi:1316
  292. #: guix-git/doc/guix.texi:565 guix-git/doc/guix.texi:614
  293. #: guix-git/doc/guix.texi:1764 guix-git/doc/guix.texi:2011
  294. #: guix-git/doc/guix.texi:2195 guix-git/doc/guix.texi:2416
  295. #: guix-git/doc/guix.texi:2617 guix-git/doc/guix.texi:3734
  296. #: guix-git/doc/guix.texi:4470 guix-git/doc/guix.texi:4484
  297. #: guix-git/doc/guix.texi:4566 guix-git/doc/guix.texi:4796
  298. #: guix-git/doc/guix.texi:5646 guix-git/doc/guix.texi:5892
  299. #: guix-git/doc/guix.texi:6013 guix-git/doc/guix.texi:6065
  300. #: guix-git/doc/guix.texi:8752 guix-git/doc/guix.texi:8822
  301. #: guix-git/doc/guix.texi:10487 guix-git/doc/guix.texi:10527
  302. #: guix-git/doc/guix.texi:10800 guix-git/doc/guix.texi:10812
  303. #: guix-git/doc/guix.texi:13027 guix-git/doc/guix.texi:13654
  304. #: guix-git/doc/guix.texi:14437 guix-git/doc/guix.texi:15412
  305. #: guix-git/doc/guix.texi:17728 guix-git/doc/guix.texi:17877
  306. #: guix-git/doc/guix.texi:25473 guix-git/doc/guix.texi:29082
  307. #: guix-git/doc/guix.texi:31039 guix-git/doc/guix.texi:32532
  308. #: guix-git/doc/guix.texi:32766 guix-git/doc/guix.texi:32936
  309. #: guix-git/doc/guix.texi:33089 guix-git/doc/guix.texi:33191
  310. #: guix-git/doc/guix.texi:33292
  311. #, no-wrap
  312. msgid "Note"
  313. msgstr "注"
  314. #. type: quotation
  315. #: guix-git/doc/contributing.texi:157
  316. 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."
  317. msgstr ""
  318. #. type: Plain text
  319. #: guix-git/doc/contributing.texi:167
  320. 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."
  321. msgstr "为了保持一个合适的工作环境,你会发现在你的本地代码树里测试修改而不用安装它们会很有用。TODO: So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  322. #. type: Plain text
  323. #: guix-git/doc/contributing.texi:178
  324. #, fuzzy
  325. 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):"
  326. 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模块。}:"
  327. #. type: example
  328. #: guix-git/doc/contributing.texi:181
  329. #, fuzzy, no-wrap
  330. msgid "$ ./pre-inst-env guix build hello\n"
  331. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  332. #. type: Plain text
  333. #: guix-git/doc/contributing.texi:185
  334. msgid "Similarly, an example for a Guile session using the Guix modules:"
  335. msgstr "同样,一个使用 Guix 模块的 Guile 会话的例子:"
  336. #. type: example
  337. #: guix-git/doc/contributing.texi:188
  338. #, no-wrap
  339. msgid ""
  340. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  341. "\n"
  342. msgstr ""
  343. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  344. "\n"
  345. #. type: example
  346. #: guix-git/doc/contributing.texi:190
  347. #, no-wrap
  348. msgid ";;; (\"x86_64-linux\")\n"
  349. msgstr ";;; (\"x86_64-linux\")\n"
  350. #. type: cindex
  351. #: guix-git/doc/contributing.texi:193
  352. #, no-wrap
  353. msgid "REPL"
  354. msgstr "REPL"
  355. #. type: cindex
  356. #: guix-git/doc/contributing.texi:194
  357. #, no-wrap
  358. msgid "read-eval-print loop"
  359. msgstr "read-eval-print loop"
  360. #. type: Plain text
  361. #: guix-git/doc/contributing.texi:197
  362. msgid "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  363. msgstr "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  364. #. type: example
  365. #: guix-git/doc/contributing.texi:212
  366. #, no-wrap
  367. msgid ""
  368. "$ ./pre-inst-env guile\n"
  369. "scheme@@(guile-user)> ,use(guix)\n"
  370. "scheme@@(guile-user)> ,use(gnu)\n"
  371. "scheme@@(guile-user)> (define snakes\n"
  372. " (fold-packages\n"
  373. " (lambda (package lst)\n"
  374. " (if (string-prefix? \"python\"\n"
  375. " (package-name package))\n"
  376. " (cons package lst)\n"
  377. " lst))\n"
  378. " '()))\n"
  379. "scheme@@(guile-user)> (length snakes)\n"
  380. "$1 = 361\n"
  381. msgstr ""
  382. "$ ./pre-inst-env guile\n"
  383. "scheme@@(guile-user)> ,use(guix)\n"
  384. "scheme@@(guile-user)> ,use(gnu)\n"
  385. "scheme@@(guile-user)> (define snakes\n"
  386. " (fold-packages\n"
  387. " (lambda (package lst)\n"
  388. " (if (string-prefix? \"python\"\n"
  389. " (package-name package))\n"
  390. " (cons package lst)\n"
  391. " lst))\n"
  392. " '()))\n"
  393. "scheme@@(guile-user)> (length snakes)\n"
  394. "$1 = 361\n"
  395. #. type: Plain text
  396. #: guix-git/doc/contributing.texi:220
  397. #, fuzzy
  398. 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.}:"
  399. 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模块。}:"
  400. #. type: example
  401. #: guix-git/doc/contributing.texi:223
  402. #, fuzzy, no-wrap
  403. msgid "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  404. msgstr ""
  405. "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  406. "$ ./pre-inst-env guix build hello\n"
  407. #. type: Plain text
  408. #: guix-git/doc/contributing.texi:227
  409. 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}."
  410. msgstr "@command{pre-inst-env}脚本设置为此好了所有必要的的环境变量,包括@env{PATH}和@env{GUILE_LOAD_PATH}。"
  411. #. type: Plain text
  412. #: guix-git/doc/contributing.texi:232
  413. 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."
  414. msgstr "@command{./pre-inst-env guix pull} @emph{不} 会更新本地源代码树,它只更新符号链接@file{~/.config/guix/current} (@pxref{Invoking guix pull})。如果你想更新本地源代码树,请运行@command{git pull}。"
  415. #. type: Plain text
  416. #: guix-git/doc/contributing.texi:242
  417. 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:"
  418. 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}。为此,运行:"
  419. #. type: example
  420. #: guix-git/doc/contributing.texi:245
  421. #, no-wrap
  422. msgid "guix package -i emacs guile emacs-geiser\n"
  423. msgstr "guix package -i emacs guile emacs-geiser\n"
  424. #. type: Plain text
  425. #: guix-git/doc/contributing.texi:254
  426. 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:"
  427. msgstr "Geiser 允许在 Emacs 里进行交互式的、增长式的开发:buffer 里的代码补全和执行,获取一行的文档 (docstrings),上下文敏感的补全,@kbd{M-.} 跳转到对象定义,测试代码的 REPL,及更多(@pxref{Introduction,,, geiser, Geiser User Manual})。为了方便的 Guix 开发,请确保修改 Guile 的加载路径 (load path) 以使其能从你的项目里找到源代码文件:"
  428. #. type: lisp
  429. #: guix-git/doc/contributing.texi:259
  430. #, no-wrap
  431. msgid ""
  432. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  433. "(with-eval-after-load 'geiser-guile\n"
  434. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  435. msgstr ""
  436. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  437. "(with-eval-after-load 'geiser-guile\n"
  438. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  439. #. type: Plain text
  440. #: guix-git/doc/contributing.texi:267
  441. 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."
  442. msgstr "真正编辑代码时别忘了 Emacs 自带了方便的 Scheme 模式。而且,一定不要错过 @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}。它提供了直接操作语法树的的功能,例如,用 S- 表达式替换父节点,为 S- 表达式添加、删除前后的括号,删除后面的 S- 表达式,等等。"
  443. #. type: cindex
  444. #: guix-git/doc/contributing.texi:268
  445. #, no-wrap
  446. msgid "code snippets"
  447. msgstr "代码片段"
  448. #. type: cindex
  449. #: guix-git/doc/contributing.texi:269
  450. #, no-wrap
  451. msgid "templates"
  452. msgstr "模板"
  453. #. type: cindex
  454. #: guix-git/doc/contributing.texi:270
  455. #, no-wrap
  456. msgid "reducing boilerplate"
  457. msgstr "减少样板"
  458. #. type: Plain text
  459. #: guix-git/doc/contributing.texi:277
  460. #, fuzzy
  461. 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."
  462. msgstr "在@file{etc/snippets}文件夹里,我们还为普通的git commit信息和软件包定义提供模板。这些模板可以通过@url{http://joaotavora.github.io/yasnippet/, YASnippet}使用,它可以把短的触发字符串扩展成交互式的文字片段。你可能希望将这个文件夹添加到Emacs的@var{yas-snippet-dirs}变量里。"
  463. #. type: lisp
  464. #: guix-git/doc/contributing.texi:282
  465. #, no-wrap
  466. msgid ""
  467. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  468. "(with-eval-after-load 'yasnippet\n"
  469. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  470. msgstr ""
  471. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  472. "(with-eval-after-load 'yasnippet\n"
  473. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  474. #. type: Plain text
  475. #: guix-git/doc/contributing.texi:290
  476. 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."
  477. msgstr "commit信息片段显示staged文件需要依赖@url{https://magit.vc/, Magit}。编辑commit信息时,输入@code{add},然后按@kbd{TAB}就可以插入一段用于新增软件包的模板;输入@code{update},然后按@kbd{TAB}可以插入一段更新软件包的模板;输入@code{https}然后按@kbd{TAB}可以插入一段修改主页URI为HTTPS的模板。"
  478. #. type: Plain text
  479. #: guix-git/doc/contributing.texi:296
  480. 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."
  481. msgstr "@code{scheme-mode}最重要的模板可以通过输入@code{package...},然后按@kbd{TAB}触发。这个片段还插入了触发字符串@code{origin...},以进一步展开。@code{origin}片段更进一步的可能插入其它以@code{...}结尾的触发字符串,它们可以被继续展开。"
  482. #. type: cindex
  483. #: guix-git/doc/contributing.texi:297
  484. #, no-wrap
  485. msgid "insert or update copyright"
  486. msgstr ""
  487. #. type: code{#1}
  488. #: guix-git/doc/contributing.texi:298
  489. #, no-wrap
  490. msgid "M-x guix-copyright"
  491. msgstr ""
  492. #. type: code{#1}
  493. #: guix-git/doc/contributing.texi:299
  494. #, no-wrap
  495. msgid "M-x copyright-update"
  496. msgstr ""
  497. #. type: Plain text
  498. #: guix-git/doc/contributing.texi:303
  499. 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."
  500. msgstr ""
  501. #. type: lisp
  502. #: guix-git/doc/contributing.texi:309
  503. #, no-wrap
  504. msgid ""
  505. "(setq user-full-name \"Alice Doe\")\n"
  506. "(setq user-mail-address \"alice@@mail.org\")\n"
  507. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  508. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  509. msgstr ""
  510. #. type: Plain text
  511. #: guix-git/doc/contributing.texi:312
  512. msgid "To insert a copyright at the current line invoke @code{M-x guix-copyright}."
  513. msgstr ""
  514. #. type: Plain text
  515. #: guix-git/doc/contributing.texi:314
  516. msgid "To update a copyright you need to specify a @code{copyright-names-regexp}."
  517. msgstr ""
  518. #. type: lisp
  519. #: guix-git/doc/contributing.texi:318
  520. #, no-wrap
  521. msgid ""
  522. "(setq copyright-names-regexp\n"
  523. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  524. msgstr ""
  525. #. type: Plain text
  526. #: guix-git/doc/contributing.texi:324
  527. 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."
  528. msgstr ""
  529. #. type: cindex
  530. #: guix-git/doc/contributing.texi:328
  531. #, no-wrap
  532. msgid "packages, creating"
  533. msgstr "软件包, 创建"
  534. #. type: Plain text
  535. #: guix-git/doc/contributing.texi:332
  536. 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."
  537. msgstr "这个GNU发行版正在开发的早期阶段,可能缺少一些你喜欢的软件。这个章节介绍你可以怎样帮助这个发行版成长。"
  538. #. type: Plain text
  539. #: guix-git/doc/contributing.texi:340
  540. 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."
  541. msgstr "自由软件通常以@dfn{源代码包}的形式分发,通常是包含完整代码的@file{tar.gz}包。添加软件包到这个发行版意味着两件事:添加描述如何构建包的@dfn{配方}和一系列依赖软件,以及添加配方之外的@dfn{软件包元数据},如一段文字描述和证书信息。"
  542. #. type: Plain text
  543. #: guix-git/doc/contributing.texi:349
  544. 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}."
  545. msgstr "在Guix里所有这些信息都包含在@dfn{软件包定义}里。软件包定义提供了软件包的高层视角。它们使用Scheme编程语言编写,事实上,对每个软件包我们都定义一个绑定到软件包定义的的变量,并且从模块(@pxref{Package Modules})中导出那个变量。然而,深入的Scheme知识@emph{不}是创建软件包的前提条件。若要了解软件包的更多信息,@pxref{Defining Packages}。"
  546. #. type: Plain text
  547. #: guix-git/doc/contributing.texi:355
  548. 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}):"
  549. msgstr "一旦软件包定义准备好了,并且包存在Guix代码树的一个文件里,你可以用@command{guix build} (@pxref{Invoking guix build})命令测试它。假设这个新软件包的名字叫做@code{gnew},你可以在Guix构建树里运行这个命令(@pxref{Running Guix Before It Is Installed}):"
  550. #. type: example
  551. #: guix-git/doc/contributing.texi:358
  552. #, no-wrap
  553. msgid "./pre-inst-env guix build gnew --keep-failed\n"
  554. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  555. #. type: Plain text
  556. #: guix-git/doc/contributing.texi:364
  557. 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."
  558. msgstr "使用@code{--keep-failed}参数会保留失败的构建树,这可以使调试构建错误更容易。@code{--log-file}也是一个调试时很有用的参数,它可以用来访问构建日志。"
  559. #. type: Plain text
  560. #: guix-git/doc/contributing.texi:369
  561. 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:"
  562. msgstr "如果@command{guix}命令找不到这个软件包,那可能是因为源文件包含语法错误,或者缺少导出软件包的@code{define-public}语句。为了查找错误,你可以用Guile导入这个模块以了解这个错误的详情:"
  563. #. type: example
  564. #: guix-git/doc/contributing.texi:372
  565. #, no-wrap
  566. msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  567. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  568. #. type: Plain text
  569. #: guix-git/doc/contributing.texi:379
  570. #, fuzzy
  571. 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{@value{SUBSTITUTE-URL}, our continuous integration system}."
  572. msgstr "一旦你的软件包可以正确构建,请给我们发送补丁(@pxref{Submitting Patches})。当然,如果你需要帮助,我们也会很乐意帮助你。一旦补丁被提交到 Guix 仓库里,这个新的软件包会被自动地在支持的平台上构建 @url{@value{SUBSTITUTE-URL}, our continuous integration system}。"
  573. #. type: cindex
  574. #: guix-git/doc/contributing.texi:380
  575. #, no-wrap
  576. msgid "substituter"
  577. msgstr "substitutes"
  578. #. type: Plain text
  579. #: guix-git/doc/contributing.texi:387
  580. 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."
  581. msgstr "用户可以通过运行@command{guix pull}命令获取最新的软件包定义(@pxref{Invoking guix pull})。当@code{@value{SUBSTITUTE-SERVER}}构建好这些软件包之后,安装这些软件包时会自动从服务器(@pxref{Substitutes})上下载构建好的二进制包。唯一需要人工干预的地方是评审和应用代码补丁。"
  582. #. type: subsection
  583. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:403
  584. #: guix-git/doc/contributing.texi:404
  585. #, no-wrap
  586. msgid "Software Freedom"
  587. msgstr "软件自由"
  588. #. type: menuentry
  589. #: guix-git/doc/contributing.texi:401
  590. msgid "What may go into the distribution."
  591. msgstr "什么可以进入这个发行版。"
  592. #. type: subsection
  593. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:431
  594. #: guix-git/doc/contributing.texi:432
  595. #, no-wrap
  596. msgid "Package Naming"
  597. msgstr "软件包命名"
  598. #. type: menuentry
  599. #: guix-git/doc/contributing.texi:401
  600. msgid "What's in a name?"
  601. msgstr "名字里包含什么?"
  602. #. type: subsection
  603. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:464
  604. #: guix-git/doc/contributing.texi:465
  605. #, no-wrap
  606. msgid "Version Numbers"
  607. msgstr "版本号"
  608. #. type: menuentry
  609. #: guix-git/doc/contributing.texi:401
  610. msgid "When the name is not enough."
  611. msgstr "当名字不够时。"
  612. #. type: subsection
  613. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:555
  614. #: guix-git/doc/contributing.texi:556
  615. #, no-wrap
  616. msgid "Synopses and Descriptions"
  617. msgstr "简介和描述"
  618. #. type: menuentry
  619. #: guix-git/doc/contributing.texi:401
  620. msgid "Helping users find the right package."
  621. msgstr "帮助用户寻找合适的软件包。"
  622. #. type: subsection
  623. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:634
  624. #: guix-git/doc/contributing.texi:635
  625. #, no-wrap
  626. msgid "Snippets versus Phases"
  627. msgstr ""
  628. #. type: menuentry
  629. #: guix-git/doc/contributing.texi:401
  630. msgid "Whether to use a snippet, or a build phase."
  631. msgstr ""
  632. #. type: subsection
  633. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:649
  634. #: guix-git/doc/contributing.texi:650 guix-git/doc/guix.texi:1946
  635. #, no-wrap
  636. msgid "Emacs Packages"
  637. msgstr ""
  638. #. type: menuentry
  639. #: guix-git/doc/contributing.texi:401
  640. msgid "Your Elisp fix."
  641. msgstr ""
  642. #. type: subsection
  643. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:689
  644. #: guix-git/doc/contributing.texi:690
  645. #, no-wrap
  646. msgid "Python Modules"
  647. msgstr "Python模块"
  648. #. type: menuentry
  649. #: guix-git/doc/contributing.texi:401
  650. msgid "A touch of British comedy."
  651. msgstr "接触英式的喜剧。"
  652. #. type: subsection
  653. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:765
  654. #: guix-git/doc/contributing.texi:766
  655. #, no-wrap
  656. msgid "Perl Modules"
  657. msgstr "Perl模块"
  658. #. type: menuentry
  659. #: guix-git/doc/contributing.texi:401
  660. msgid "Little pearls."
  661. msgstr "小珍珠。"
  662. #. type: subsection
  663. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:781
  664. #: guix-git/doc/contributing.texi:782
  665. #, no-wrap
  666. msgid "Java Packages"
  667. msgstr "Java包"
  668. #. type: menuentry
  669. #: guix-git/doc/contributing.texi:401
  670. msgid "Coffee break."
  671. msgstr "喝咖啡休息。"
  672. #. type: subsection
  673. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:801
  674. #: guix-git/doc/contributing.texi:802
  675. #, no-wrap
  676. msgid "Rust Crates"
  677. msgstr ""
  678. #. type: menuentry
  679. #: guix-git/doc/contributing.texi:401
  680. msgid "Beware of oxidation."
  681. msgstr "谨防氧化。"
  682. #. type: subsection
  683. #: guix-git/doc/contributing.texi:401 guix-git/doc/contributing.texi:835
  684. #: guix-git/doc/contributing.texi:836
  685. #, no-wrap
  686. msgid "Fonts"
  687. msgstr "字体"
  688. #. type: menuentry
  689. #: guix-git/doc/contributing.texi:401
  690. msgid "Fond of fonts."
  691. msgstr "字体的乐趣。"
  692. #. type: cindex
  693. #: guix-git/doc/contributing.texi:407
  694. #, no-wrap
  695. msgid "free software"
  696. msgstr "自由软件"
  697. #. type: Plain text
  698. #: guix-git/doc/contributing.texi:415
  699. 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."
  700. msgstr "开发 GNU 操作系统是为了用户拥有计算的自由。GNU是@dfn{自由软件},这意味着它有@url{https://www.gnu.org/philosophy/free-sw.html,四项重要的自由}:运行程序的自由,以源代码形式学习和修改程序的自由,原样重新分发副本的自由,和分发修改后的版本的自由。GNU 发行版里包含的软件包只提供遵守这四项自由的软件。"
  701. #. type: Plain text
  702. #: guix-git/doc/contributing.texi:421
  703. 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."
  704. msgstr "此外,GNU 发行版遵循@url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,自由软件发行版准则}。这些准则拒绝非自由的固件和对非自由软件的推荐,并讨论解决商标和专利的方法。"
  705. #. type: Plain text
  706. #: guix-git/doc/contributing.texi:429
  707. 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."
  708. msgstr "某些上游的软件包源代码包含一小部分违反上述准则的可选的子集,比如这个子集本身就是非自由代码。这时,这些讨厌的代码需要用合适的补丁或者软件包定义(@pxref{Defining Packages})里的@code{origin}里的代码片段移除。这样,@code{guix build --source}就可以返回自由的源代码而不是未经修改的上游源代码。"
  709. #. type: cindex
  710. #: guix-git/doc/contributing.texi:434
  711. #, no-wrap
  712. msgid "package name"
  713. msgstr "软件包名字"
  714. #. type: Plain text
  715. #: guix-git/doc/contributing.texi:442
  716. #, fuzzy
  717. 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}."
  718. msgstr "一个软件包事实上有两个名字:第一个是@emph{Scheme变量}的名字,即用@code{define-public}定义的名字。通过这个名字,软件包可以被Scheme代码找到,如用作其它软件包的输入。第二个名字是软件包定义里的@code{name}属性的字符串值。这个名字用于软件包管理命令,如:@command{guix package},@command{guix build}"
  719. #. type: Plain text
  720. #: guix-git/doc/contributing.texi:447
  721. 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}."
  722. msgstr "两个名字通常是相同的,常是上游项目名字转成小写字母并把下划线替换成连字符的结果。比如,GNUnet转成@code{gnunet},SDL_net转成@code{sdl-net}。"
  723. #. type: Plain text
  724. #: guix-git/doc/contributing.texi:455
  725. 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."
  726. msgstr ""
  727. #. type: Plain text
  728. #: guix-git/doc/contributing.texi:460
  729. 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."
  730. msgstr "我们不给库软件包添加@code{lib}前缀,除非它是项目官方名字的一部分。但是@pxref{Python Modules}和@ref{Perl Modules}有关于Python和Perl语言的特殊规则。"
  731. #. type: Plain text
  732. #: guix-git/doc/contributing.texi:462
  733. msgid "Font package names are handled differently, @pxref{Fonts}."
  734. msgstr "字体软件包的名字处理起来不同,@pxref{Fonts}."
  735. #. type: cindex
  736. #: guix-git/doc/contributing.texi:467
  737. #, no-wrap
  738. msgid "package version"
  739. msgstr "软件包版本"
  740. #. type: Plain text
  741. #: guix-git/doc/contributing.texi:476
  742. 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."
  743. msgstr "我们通常只为每个自由软件的最新版本打包。但是有时候,比如对于版本不兼容的库,需要有同一个软件包的两个或更多版本。它们需要使用不同的Scheme变量名。我们为最新的版本使用@ref{Package Naming}里规定的名字,旧的版本使用加上后缀的名字,后缀是@code{-}和可以区分开版本号的版本号的最小前缀。"
  744. #. type: Plain text
  745. #: guix-git/doc/contributing.texi:479
  746. msgid "The name inside the package definition is the same for all versions of a package and does not contain any version number."
  747. msgstr "软件包定义里的名字对于同一个软件包的所有版本都是相同的,并且不含有版本号。"
  748. #. type: Plain text
  749. #: guix-git/doc/contributing.texi:481
  750. msgid "For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:"
  751. msgstr "例如,GTK+的2.24.20和3.9.12两个版本可以这样打包:"
  752. #. type: lisp
  753. #: guix-git/doc/contributing.texi:493
  754. #, no-wrap
  755. msgid ""
  756. "(define-public gtk+\n"
  757. " (package\n"
  758. " (name \"gtk+\")\n"
  759. " (version \"3.9.12\")\n"
  760. " ...))\n"
  761. "(define-public gtk+-2\n"
  762. " (package\n"
  763. " (name \"gtk+\")\n"
  764. " (version \"2.24.20\")\n"
  765. " ...))\n"
  766. msgstr ""
  767. "(define-public gtk+\n"
  768. " (package\n"
  769. " (name \"gtk+\")\n"
  770. " (version \"3.9.12\")\n"
  771. " ...))\n"
  772. "(define-public gtk+-2\n"
  773. " (package\n"
  774. " (name \"gtk+\")\n"
  775. " (version \"2.24.20\")\n"
  776. " ...))\n"
  777. #. type: Plain text
  778. #: guix-git/doc/contributing.texi:495
  779. msgid "If we also wanted GTK+ 3.8.2, this would be packaged as"
  780. msgstr "如果我们还需要GTK+ 3.8.2,就这样打包"
  781. #. type: lisp
  782. #: guix-git/doc/contributing.texi:501
  783. #, no-wrap
  784. msgid ""
  785. "(define-public gtk+-3.8\n"
  786. " (package\n"
  787. " (name \"gtk+\")\n"
  788. " (version \"3.8.2\")\n"
  789. " ...))\n"
  790. msgstr ""
  791. "(define-public gtk+-3.8\n"
  792. " (package\n"
  793. " (name \"gtk+\")\n"
  794. " (version \"3.8.2\")\n"
  795. " ...))\n"
  796. #. type: cindex
  797. #: guix-git/doc/contributing.texi:505
  798. #, no-wrap
  799. msgid "version number, for VCS snapshots"
  800. msgstr "用于版本控制快照的版本号"
  801. #. type: Plain text
  802. #: guix-git/doc/contributing.texi:511
  803. 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?"
  804. msgstr "有时候,我们为软件包上游的版本控制系统(VCS)的快照而不是正式发布版打包。这是特殊情况,因为决定哪个是稳定版的权力应该属于上游开发者。然而,有时候这是必须的。那么,我们该如何决定写在@code{version}里的版本号呢?"
  805. #. type: Plain text
  806. #: guix-git/doc/contributing.texi:519
  807. 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:"
  808. msgstr "显然,我们需要让VCS快照的commit ID在版本号中体现出来,但是我们也需要确保版本号单调递增,以便@command{guix package --upgrade}决定哪个版本号更新。由于commit ID,尤其是Git的commit ID,不是单调递增的,我们添加一个每次升级快照时都手动增长的revision数字。最后的版本号字符串看起来是这样:"
  809. #. type: example
  810. #: guix-git/doc/contributing.texi:528
  811. #, no-wrap
  812. msgid ""
  813. "2.0.11-3.cabba9e\n"
  814. " ^ ^ ^\n"
  815. " | | `-- upstream commit ID\n"
  816. " | |\n"
  817. " | `--- Guix package revision\n"
  818. " |\n"
  819. "latest upstream version\n"
  820. msgstr ""
  821. "2.0.11-3.cabba9e\n"
  822. " ^ ^ ^\n"
  823. " | | `-- 上游的commit ID\n"
  824. " | |\n"
  825. " | `--- Guix软件包的revision\n"
  826. " |\n"
  827. "最新的上游版本号\n"
  828. #. type: Plain text
  829. #: guix-git/doc/contributing.texi:537
  830. #, fuzzy
  831. 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). 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:"
  832. msgstr "把@code{版本号}里的commit ID截短,比如只取7个数字,是一个好主意。它避免了美学上的烦恼(假设美学在这里很重要),以及操作系统限制引起的问题(比如Linux内核的127字节)。尽管如此,在@code{origin}里最好使用完整的commit ID,以避免混淆。"
  833. #. type: lisp
  834. #: guix-git/doc/contributing.texi:553
  835. #, no-wrap
  836. msgid ""
  837. "(define my-package\n"
  838. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  839. " (revision \"1\")) ;Guix package revision\n"
  840. " (package\n"
  841. " (version (git-version \"0.9\" revision commit))\n"
  842. " (source (origin\n"
  843. " (method git-fetch)\n"
  844. " (uri (git-reference\n"
  845. " (url \"git://example.org/my-package.git\")\n"
  846. " (commit commit)))\n"
  847. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  848. " (file-name (git-file-name name version))))\n"
  849. " ;; @dots{}\n"
  850. " )))\n"
  851. msgstr ""
  852. "(define my-package\n"
  853. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  854. " (revision \"1\")) ;Guix软件包的revision\n"
  855. " (package\n"
  856. " (version (git-version \"0.9\" revision commit))\n"
  857. " (source (origin\n"
  858. " (method git-fetch)\n"
  859. " (uri (git-reference\n"
  860. " (url \"git://example.org/my-package.git\")\n"
  861. " (commit commit)))\n"
  862. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  863. " (file-name (git-file-name name version))))\n"
  864. " ;; @dots{}\n"
  865. " )))\n"
  866. #. type: cindex
  867. #: guix-git/doc/contributing.texi:558
  868. #, no-wrap
  869. msgid "package description"
  870. msgstr "软件包描述"
  871. #. type: cindex
  872. #: guix-git/doc/contributing.texi:559
  873. #, no-wrap
  874. msgid "package synopsis"
  875. msgstr "软件包简介"
  876. #. type: Plain text
  877. #: guix-git/doc/contributing.texi:566
  878. 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."
  879. msgstr "我们已经看到,GNU@tie{}Guix里的每个软件包都包含一个简介(synopsis)和一个描述(description)(@pxref{Defining Packages})。简介和描述很重要:它们是@command{guix package --search}搜索的信息,并且是帮助用户决定一个软件包是否符合自己需求的重要信息。因此,打包的人应该关注怎样写它们的内容。"
  880. #. type: Plain text
  881. #: guix-git/doc/contributing.texi:574
  882. 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''."
  883. 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''。"
  884. #. type: Plain text
  885. #: guix-git/doc/contributing.texi:584
  886. 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."
  887. msgstr "记住,简介必须能被广大的听众理解。例如,“以SAM格式修改对齐”可能对经验丰富的生物信息科研工作者来说能理解,但是对普通对听众则是无用的甚至是令人误解的。简介最好说明软件包应用的领域。在这个例子中,应该这样描述“修改核苷酸序列的对齐格式”,这会让用户更容易判断这是不是他们想要的。"
  888. #. type: Plain text
  889. #: guix-git/doc/contributing.texi:592
  890. 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."
  891. msgstr "描述应该在5至10句话之间。使用完整的句子,并且避免在未介绍的情况下使用缩写。请避免推广营销性对词汇,如“世界领先”,“行业最强”,“下一代”,并且避免高级的形容词,如“最先进的”--他们对用户寻找软件包是无用的,甚至是可疑的。相反的,尽量务实,提及用例和功能。"
  892. #. type: cindex
  893. #: guix-git/doc/contributing.texi:593
  894. #, no-wrap
  895. msgid "Texinfo markup, in package descriptions"
  896. msgstr "软件包描述里的Texinfo标记"
  897. #. type: Plain text
  898. #: guix-git/doc/contributing.texi:602
  899. 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."
  900. msgstr "描述可以含有Texinfo标记,这对格式化有帮助,如@code{@@code}、@code{@@dfn}、列表、超链接(@pxref{Overview,,, texinfo, GNU Texinfo})。但是,在使用某些字符时应该小心,如@samp{@@}和花括号是基本的Texinfo特殊字符(@pxref{Special Characters,,, texinfo, GNU Texinfo})。@command{guix package --show}之类的用户界面会解决渲染问题。"
  901. #. type: Plain text
  902. #: guix-git/doc/contributing.texi:608
  903. #, fuzzy
  904. 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."
  905. msgstr "简介和描述会由@uref{http://translationproject.org/domain/guix-packages.html, Translation Project}项目的志愿者翻译,从而使尽可能多的用户可以用母语阅读。用户界面用当前区域设置的语言搜索和展示这些信息。"
  906. #. type: Plain text
  907. #: guix-git/doc/contributing.texi:613
  908. 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:"
  909. msgstr "为了让@command{xgettext}可以把它们提取成待翻译的字符串,简介和描述@emph{必须是文字字符串}。这意味着你不能使用@code{string-append}或@code{format}来合成字符串:"
  910. #. type: lisp
  911. #: guix-git/doc/contributing.texi:619
  912. #, no-wrap
  913. msgid ""
  914. "(package\n"
  915. " ;; @dots{}\n"
  916. " (synopsis \"This is translatable\")\n"
  917. " (description (string-append \"This is \" \"*not*\" \" translatable.\")))\n"
  918. msgstr ""
  919. "(package\n"
  920. " ;; @dots{}\n"
  921. " (synopsis \"这是可以翻译的\")\n"
  922. " (description (string-append \"这是\" \"*不可以*\" \"翻译的\")))\n"
  923. #. type: Plain text
  924. #: guix-git/doc/contributing.texi:627
  925. 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}):"
  926. msgstr "翻译是很繁重的工作,所以,作为打包者请更加注意你的简介和介绍,每一个改动都会增加翻译的工作量。为了帮助他们,你可以插入这类可以被他们看到的建议和指示(@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  927. #. type: lisp
  928. #: guix-git/doc/contributing.texi:632
  929. #, no-wrap
  930. msgid ""
  931. ";; TRANSLATORS: \"X11 resize-and-rotate\" should not be translated.\n"
  932. "(description \"ARandR is designed to provide a simple visual front end\n"
  933. "for the X11 resize-and-rotate (RandR) extension. @dots{}\")\n"
  934. msgstr ""
  935. ";; TRANSLATORS: \"X11 resize-and-rotate\"不需要翻译。\n"
  936. "(description \"ARandR为X11 resize-and-rotate (RandR)扩展提供简单的图形界面。@dots{}\")\n"
  937. #. type: cindex
  938. #: guix-git/doc/contributing.texi:637
  939. #, no-wrap
  940. msgid "snippets, when to use"
  941. msgstr ""
  942. #. type: Plain text
  943. #: guix-git/doc/contributing.texi:648
  944. 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})."
  945. msgstr ""
  946. #. type: cindex
  947. #: guix-git/doc/contributing.texi:652
  948. #, no-wrap
  949. msgid "emacs, packaging"
  950. msgstr ""
  951. #. type: cindex
  952. #: guix-git/doc/contributing.texi:653
  953. #, no-wrap
  954. msgid "elisp, packaging"
  955. msgstr ""
  956. #. type: Plain text
  957. #: guix-git/doc/contributing.texi:665
  958. 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."
  959. msgstr ""
  960. #. type: Plain text
  961. #: guix-git/doc/contributing.texi:670
  962. 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}."
  963. msgstr ""
  964. #. type: Plain text
  965. #: guix-git/doc/contributing.texi:679
  966. 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:"
  967. msgstr ""
  968. #. type: lisp
  969. #: guix-git/doc/contributing.texi:682
  970. #, no-wrap
  971. msgid "#:include (cons \"^snippets/\" %default-include))\n"
  972. msgstr ""
  973. #. type: Plain text
  974. #: guix-git/doc/contributing.texi:688
  975. 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."
  976. msgstr ""
  977. #. type: cindex
  978. #: guix-git/doc/contributing.texi:692
  979. #, no-wrap
  980. msgid "python"
  981. msgstr "python"
  982. #. type: Plain text
  983. #: guix-git/doc/contributing.texi:698
  984. 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}."
  985. msgstr "我们目前为Python 2和Python 3打包,如@ref{Version Numbers}的规则所述,它们的Scheme变量名分别是@code{python-2}和@code{python}。为了避免和其他编程语言的冲突,Python模块的软件包名字最好含有@code{python}。"
  986. #. type: Plain text
  987. #: guix-git/doc/contributing.texi:705
  988. #, fuzzy
  989. 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."
  990. msgstr "某些模块仅和一个版本的Python兼容,其它的和两个版本都兼容。如果一个叫做Foo的软件包仅和Python 3兼容,我们把它命名为@code{python-foo};如果它仅和Python 2兼容,我们把它命名为@code{python2-foo}。如果它和两个版本都兼容,我们创建两个软件包,名字如前所述。"
  991. #. type: Plain text
  992. #: guix-git/doc/contributing.texi:711
  993. 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."
  994. msgstr "如果一个项目的名字已经含有@code{python}这个单词,我们把它丢掉;例如,python-dateutil模块打包后的名字是@code{python-dateutil}和@code{python2-dateutil}。如果项目的名字以@code{py}开头(如@: @code{pytz}),我们把它保留,并且添加上面所述的前缀。"
  995. #. type: subsubsection
  996. #: guix-git/doc/contributing.texi:712
  997. #, no-wrap
  998. msgid "Specifying Dependencies"
  999. msgstr "指定依赖"
  1000. #. type: cindex
  1001. #: guix-git/doc/contributing.texi:713
  1002. #, no-wrap
  1003. msgid "inputs, for Python packages"
  1004. msgstr "Python软件包的输入"
  1005. #. type: Plain text
  1006. #: guix-git/doc/contributing.texi:718
  1007. 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}."
  1008. msgstr "Python软件包的依赖信息通常在包的源代码树里,各种文件有不同的精确度:@file{setup.py}文件,@file{requirements.txt}文件,@file{tox.ini}文件。"
  1009. #. type: Plain text
  1010. #: guix-git/doc/contributing.texi:724
  1011. 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."
  1012. msgstr "你在写软件包配方时的任务是把这些依赖转换成相应的“输入”(@pxref{package Reference, inputs})。尽管@code{pypi}导入工具通常可以做得很好(@pxref{Invoking guix import}),你可能想检查下面这个清单,以决定每个依赖放在哪儿。"
  1013. #. type: itemize
  1014. #: guix-git/doc/contributing.texi:732
  1015. 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."
  1016. msgstr "默认地,我们为Python 2打包时像Python 3一样安装了@code{setuptools}和@code{pip}。所以你不需要把它们两个指定为依赖,否则@command{guix lint}会警告你。"
  1017. #. type: itemize
  1018. #: guix-git/doc/contributing.texi:738
  1019. 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."
  1020. msgstr "运行时需要的Python依赖要放进@code{propagated-inputs}。它们通常由@file{setup.py}文件里的@code{install_requires}关键字或@file{requirements.txt}文件定义。"
  1021. #. type: itemize
  1022. #: guix-git/doc/contributing.texi:746
  1023. 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."
  1024. msgstr "仅在构建时依赖的Python包--如,@file{setup.py}里的@code{setup_requires}关键字列举的包--或仅在测试时依赖的包--如,@code{tests_require}里的包--要放进@code{native-inputs}。因为,(1)在运行时不需要它们,因此不需要propagate,并且(2)在交叉编译时,它们属于“native”输入。"
  1025. #. type: itemize
  1026. #: guix-git/doc/contributing.texi:750
  1027. 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}."
  1028. msgstr "例如@code{pytest},@code{mock},@code{nose}测试框架。当然,如果在运行时需要这里的任何一个包,它需要被加进@code{propagated-inputs}。"
  1029. #. type: itemize
  1030. #: guix-git/doc/contributing.texi:755
  1031. 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."
  1032. msgstr "任何不属于上述类别的包都要被加进@code{inputs},如,构建含有C语言扩展的Python包所需的程序和C语言库。"
  1033. #. type: itemize
  1034. #: guix-git/doc/contributing.texi:761
  1035. 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}})."
  1036. msgstr "如果一个Python软件包由可选的依赖(@code{extras_require}),由你根据它们的性价比(用处/负担)决定是否添加它们(@pxref{Submitting Patches, @command{guix size}})。"
  1037. #. type: cindex
  1038. #: guix-git/doc/contributing.texi:768
  1039. #, no-wrap
  1040. msgid "perl"
  1041. msgstr "perl"
  1042. #. type: Plain text
  1043. #: guix-git/doc/contributing.texi:779
  1044. 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}."
  1045. msgstr "Perl程序和其它软件包的命名规则类似,用小写的上游名字命名。对于仅包含一个类的Perl包,我们使用小写的类名,把所有的@code{::}替换成破折号,并且添加@code{perl-}前缀。所以类@code{XML::Parser}变成@code{perl-xml-parser}。包含多个类的模块保留它们上游的名字,并且添加@code{perl-}前缀。这类模块的名字通常含有@code{perl},这个单词需要被删掉。例如,@code{libwww-perl}变成@code{perl-libwww}。"
  1046. #. type: cindex
  1047. #: guix-git/doc/contributing.texi:784
  1048. #, no-wrap
  1049. msgid "java"
  1050. msgstr "java"
  1051. #. type: Plain text
  1052. #: guix-git/doc/contributing.texi:787
  1053. msgid "Java programs standing for themselves are named as any other package, using the lowercase upstream name."
  1054. msgstr "Java程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1055. #. type: Plain text
  1056. #: guix-git/doc/contributing.texi:793
  1057. 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}."
  1058. msgstr "为了避免和其它编程语言混淆和命名冲突,Java软件包的名字最好有@code{java-}前缀。如果一个项目的名字已经含有@code{java},我们把它删掉;例如,@code{ngsjava}打包后的名字是@code{java-ngs}。"
  1059. #. type: Plain text
  1060. #: guix-git/doc/contributing.texi:799
  1061. 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}."
  1062. msgstr "对于仅包含一个或很少几个类的Java软件包,我们使用小写的类名,把所有的@code{.}替换成破折号,并且添加@code{java-}前缀。因此,类@code{apache.commons.cli}打包后的名字是@code{java-apache-commons-cli}。"
  1063. #. type: cindex
  1064. #: guix-git/doc/contributing.texi:804
  1065. #, no-wrap
  1066. msgid "rust"
  1067. msgstr ""
  1068. #. type: Plain text
  1069. #: guix-git/doc/contributing.texi:807
  1070. msgid "Rust programs standing for themselves are named as any other package, using the lowercase upstream name."
  1071. msgstr "Rust 程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1072. #. type: Plain text
  1073. #: guix-git/doc/contributing.texi:811
  1074. 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."
  1075. msgstr ""
  1076. #. type: Plain text
  1077. #: guix-git/doc/contributing.texi:817
  1078. 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}."
  1079. msgstr ""
  1080. #. type: Plain text
  1081. #: guix-git/doc/contributing.texi:827
  1082. 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."
  1083. msgstr ""
  1084. #. type: Plain text
  1085. #: guix-git/doc/contributing.texi:833
  1086. 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."
  1087. msgstr ""
  1088. #. type: cindex
  1089. #: guix-git/doc/contributing.texi:838 guix-git/doc/guix.texi:1881
  1090. #, no-wrap
  1091. msgid "fonts"
  1092. msgstr "字体"
  1093. #. type: Plain text
  1094. #: guix-git/doc/contributing.texi:844
  1095. 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."
  1096. msgstr "对于通常不会被用户安装用于排版的字体,或者随更大的软件包分发的字体,我们使用通常的命名规则。例如,这适用于X.Org系统附带的字体或TeX Live附带的字体。"
  1097. #. type: Plain text
  1098. #: guix-git/doc/contributing.texi:848
  1099. 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."
  1100. msgstr "为了让用户更容易搜索字体,其它仅含有字体的软件包按以下规则命名,不管上游的包名是什么。"
  1101. #. type: Plain text
  1102. #: guix-git/doc/contributing.texi:856
  1103. 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}."
  1104. msgstr "仅含有一个字体家族的软件包需要以@code{font-}开头;如果作者名字已知,则添加作者名字和@code{-},接着是字体家族名字(把空格替换成破折号),(和通常一样,把所有的大写字母转换成小写字母)。例如,由SIL设计的Gentium字体家族打包后的名字是@code{font-sil-gentium}。"
  1105. #. type: Plain text
  1106. #: guix-git/doc/contributing.texi:865
  1107. 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}."
  1108. msgstr "对于一个含有多个字体家族的软件包,用集合的名字替换字体家族的名字。例如,Liberation字体含有三个家族,Liberation Sans、Liberation Serif和Liberation Mono。它们可以用@code{font-liberation-sans}等名字分开打包;但是由于它们以一个共同的名字分发,我们倾向于以@code{font-liberation}名字统一打包。"
  1109. #. type: Plain text
  1110. #: guix-git/doc/contributing.texi:871
  1111. 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."
  1112. msgstr "当同一个字体家族或字体集合的不同格式分开打包时,把破折号和格式(缩写)添加在软件包名字后面。我们用@code{-ttf}代表TrueType字体,@code{-otf}代表OpenType字体,@code{-type1}代表PostScript Type 1字体。"
  1113. #. type: Plain text
  1114. #: guix-git/doc/contributing.texi:879
  1115. 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."
  1116. msgstr "总的来说,我们的代码遵循GNU代码规范(@pxref{Top,,, standards, GNU代码规范})。但是,这个规范对Scheme的介绍不多,所以这儿提供一些额外的规则。"
  1117. #. type: subsection
  1118. #: guix-git/doc/contributing.texi:885 guix-git/doc/contributing.texi:887
  1119. #: guix-git/doc/contributing.texi:888
  1120. #, no-wrap
  1121. msgid "Programming Paradigm"
  1122. msgstr "编程范例"
  1123. #. type: menuentry
  1124. #: guix-git/doc/contributing.texi:885
  1125. msgid "How to compose your elements."
  1126. msgstr "怎样合成元素。"
  1127. #. type: subsection
  1128. #: guix-git/doc/contributing.texi:885 guix-git/doc/contributing.texi:894
  1129. #: guix-git/doc/contributing.texi:895
  1130. #, no-wrap
  1131. msgid "Modules"
  1132. msgstr "模块"
  1133. #. type: menuentry
  1134. #: guix-git/doc/contributing.texi:885
  1135. msgid "Where to store your code?"
  1136. msgstr "在哪里保存代码?"
  1137. #. type: subsection
  1138. #: guix-git/doc/contributing.texi:885 guix-git/doc/contributing.texi:905
  1139. #: guix-git/doc/contributing.texi:906
  1140. #, no-wrap
  1141. msgid "Data Types and Pattern Matching"
  1142. msgstr "数据类型和模式匹配"
  1143. #. type: menuentry
  1144. #: guix-git/doc/contributing.texi:885
  1145. msgid "Implementing data structures."
  1146. msgstr "实现数据结构。"
  1147. #. type: subsection
  1148. #: guix-git/doc/contributing.texi:885 guix-git/doc/contributing.texi:920
  1149. #: guix-git/doc/contributing.texi:921
  1150. #, no-wrap
  1151. msgid "Formatting Code"
  1152. msgstr "格式化代码"
  1153. #. type: menuentry
  1154. #: guix-git/doc/contributing.texi:885
  1155. msgid "Writing conventions."
  1156. msgstr "书写规范。"
  1157. #. type: Plain text
  1158. #: guix-git/doc/contributing.texi:893
  1159. 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."
  1160. msgstr "Guix里的Scheme代码是以纯函数的风格写的。一个例外是有关输入/输出的代码,和实现底层概念的过程,如@code{memoize}过程。"
  1161. #. type: Plain text
  1162. #: guix-git/doc/contributing.texi:901
  1163. 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."
  1164. msgstr "用于构建的Guile模块必须放在@code{(guix build @dots{})}命名空间里。它们不允许引用其它Guix或GNU模块。但是,主机端(host-side)模块可以使用构建端(build-side)模块。"
  1165. #. type: Plain text
  1166. #: guix-git/doc/contributing.texi:904
  1167. msgid "Modules that deal with the broader GNU system should be in the @code{(gnu @dots{})} name space rather than @code{(guix @dots{})}."
  1168. msgstr "关于更广的GNU系统的模块应该在@code{(gnu @dots{})}命名空间里而不是@code{(guix @dots{})}。"
  1169. #. type: Plain text
  1170. #: guix-git/doc/contributing.texi:913
  1171. 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."
  1172. msgstr "经典的Lisp倾向于用列表表示所有的东西,然后用@code{car},@code{cdr},@code{cadr}等手动浏览它们。这种风格有几个问题,特别是难以阅读,易出错,并且妨碍生成合适的类型错误报告。"
  1173. #. type: Plain text
  1174. #: guix-git/doc/contributing.texi:919
  1175. #, fuzzy
  1176. 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})."
  1177. msgstr "Guix代码应该定义合适的数据类型(例如,用@code{define-record-type*})而不是滥用列表。而且,它应该利用Guile的@code{(ice-9 match)}模块使用模式匹配,特别是匹配列表的时候。"
  1178. #. type: cindex
  1179. #: guix-git/doc/contributing.texi:923
  1180. #, no-wrap
  1181. msgid "formatting code"
  1182. msgstr "格式化代码"
  1183. #. type: cindex
  1184. #: guix-git/doc/contributing.texi:924
  1185. #, no-wrap
  1186. msgid "coding style"
  1187. msgstr "代码风格"
  1188. #. type: Plain text
  1189. #: guix-git/doc/contributing.texi:931
  1190. #, fuzzy
  1191. 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."
  1192. msgstr "在写Scheme代码时,我们遵循Scheme程序员的通用智慧。通常,我们遵循@url{http://mumble.net/~campbell/scheme/style.txt, Riastradh的Lisp风格}。这个文档碰巧描述了在Guile代码里大量使用的惯例。它很周到,而且写的很好,所以务必阅读。"
  1193. #. type: Plain text
  1194. #: guix-git/doc/contributing.texi:938
  1195. 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})."
  1196. msgstr "一些Guix添加的special form,如@code{substitute*}宏,有特殊的缩进规则。它们的规则在@file{.dir-locals.el}文件里定义,Emacs会自动使用。另外,Emacs-Guix提供的@code{guix-devel-mode}模式可以正确地缩进和高亮Guix代码(@pxref{Development,,, emacs-guix, Emacs-Guix参考手册})。"
  1197. #. type: cindex
  1198. #: guix-git/doc/contributing.texi:939
  1199. #, no-wrap
  1200. msgid "indentation, of code"
  1201. msgstr "代码缩进"
  1202. #. type: cindex
  1203. #: guix-git/doc/contributing.texi:940
  1204. #, no-wrap
  1205. msgid "formatting, of code"
  1206. msgstr "代码格式化"
  1207. #. type: Plain text
  1208. #: guix-git/doc/contributing.texi:943
  1209. 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:"
  1210. msgstr "如果你不使用Emacs,请确保让你的编辑器知道这些规则。为了自动地缩进软件包定义,你也可以运行:"
  1211. #. type: example
  1212. #: guix-git/doc/contributing.texi:946
  1213. #, no-wrap
  1214. msgid "./etc/indent-code.el gnu/packages/@var{file}.scm @var{package}\n"
  1215. msgstr "./etc/indent-code.el gnu/packages/@var{文件}.scm @var{软件包}\n"
  1216. #. type: Plain text
  1217. #: guix-git/doc/contributing.texi:952
  1218. 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:"
  1219. msgstr "这会调用Emacs以批处理模式自动地缩进@file{gnu/packages/@var{文件}.scm}里@var{软件包}的定义。如果想缩进整个文件,省略第二个参数:"
  1220. #. type: example
  1221. #: guix-git/doc/contributing.texi:955
  1222. #, no-wrap
  1223. msgid "./etc/indent-code.el gnu/services/@var{file}.scm\n"
  1224. msgstr "./etc/indent-code.el gnu/services/@var{文件}.scm\n"
  1225. #. type: cindex
  1226. #: guix-git/doc/contributing.texi:957
  1227. #, no-wrap
  1228. msgid "Vim, Scheme code editing"
  1229. msgstr "Vim,编辑Scheme代码"
  1230. #. type: Plain text
  1231. #: guix-git/doc/contributing.texi:963
  1232. 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."
  1233. msgstr "如果你用Vim编辑代码,我们推荐你运行@code{:set autoindent},以使你在输入时自动缩进代码。另外,@uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}}可以帮你处理括号。"
  1234. #. type: Plain text
  1235. #: guix-git/doc/contributing.texi:967
  1236. 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."
  1237. msgstr "我们要求所有的顶级过程附带一个docstring。这个要求对@code{(guix build @dots{})}命名空间里的简单的私有过程可以放宽。"
  1238. #. type: Plain text
  1239. #: guix-git/doc/contributing.texi:970
  1240. msgid "Procedures should not have more than four positional parameters. Use keyword parameters for procedures that take more than four parameters."
  1241. msgstr "过程不应该有多于四个定位参数。对于接收多于四个定位参数的过程应使用关键字参数。"
  1242. #. type: Plain text
  1243. #: guix-git/doc/contributing.texi:981
  1244. #, fuzzy
  1245. 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})."
  1246. msgstr "开发是使用Git分布式版本控制系统完成的。因此,对仓库的访问权限不是必须的。我们欢迎以向@email{guix-patches@@gnu.org}邮件列表发送@code{git format-patch}补丁的方式共享代码。"
  1247. #. type: Plain text
  1248. #: guix-git/doc/contributing.texi:988
  1249. #, fuzzy
  1250. 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})."
  1251. msgstr "这个邮件列表的后端是一个Debbugs实例(可以从@uref{https://bugs.gnu.org/guix-patches}访问),它允许我们跟踪提交的bug。每个发送到那个邮件列表的消息都会被分配一个跟踪数字;之后人们可以通过向@code{@var{NNN}@@debbugs.gnu.org}发送邮件来跟进提交(@var{NNN}是跟踪数字,@pxref{Sending a Patch Series})。"
  1252. #. type: Plain text
  1253. #: guix-git/doc/contributing.texi:992
  1254. msgid "Please write commit logs in the ChangeLog format (@pxref{Change Logs,,, standards, GNU Coding Standards}); you can check the commit history for examples."
  1255. msgstr "请以ChangeLog格式(@pxref{Change Logs,,, standards, GNU代码规范})写commit日志;你可以浏览commit历史里的例子。"
  1256. #. type: Plain text
  1257. #: guix-git/doc/contributing.texi:995
  1258. msgid "Before submitting a patch that adds or modifies a package definition, please run through this check list:"
  1259. msgstr "提交添加或者修改软件包定义的补丁之前,请过一遍这个检查列表:"
  1260. #. type: enumerate
  1261. #: guix-git/doc/contributing.texi:1002
  1262. 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."
  1263. msgstr "如果软件包的作者为发布的文件包提供了密码学签名,请验证文件的真实性。对于独立的 GPG 签名文件,这可以通过 @code{gpg --verify} 命令完成。"
  1264. #. type: enumerate
  1265. #: guix-git/doc/contributing.texi:1006
  1266. msgid "Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines."
  1267. msgstr "花些时间为软件包提供一个合适的简介和描述。更多指导,@xref{Synopses and Descriptions}。"
  1268. #. type: enumerate
  1269. #: guix-git/doc/contributing.texi:1011
  1270. 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})."
  1271. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1272. #. type: enumerate
  1273. #: guix-git/doc/contributing.texi:1015
  1274. msgid "Make sure the package builds on your platform, using @code{guix build @var{package}}."
  1275. msgstr "用@code{guix build @var{软件包}}命令确保这个软件包可以在你的平台上构建。"
  1276. #. type: enumerate
  1277. #: guix-git/doc/contributing.texi:1022
  1278. 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:"
  1279. msgstr "我们建议你同时尝试在别的支持的平台上构建这个软件包。你可能没有别的平台的真实的硬件,我们推荐使用@code{qemu-binfmt-service-type}来模拟它们。为了启用这个功能,把下面这个服务添加到你的@code{操作系统}配置的服务列表里:"
  1280. #. type: lisp
  1281. #: guix-git/doc/contributing.texi:1027
  1282. #, fuzzy, no-wrap
  1283. msgid ""
  1284. "(service qemu-binfmt-service-type\n"
  1285. " (qemu-binfmt-configuration\n"
  1286. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  1287. msgstr ""
  1288. "(service qemu-binfmt-service-type\n"
  1289. " (qemu-binfmt-configuration\n"
  1290. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  1291. " (guix-support? #t)))\n"
  1292. #. type: enumerate
  1293. #: guix-git/doc/contributing.texi:1030
  1294. msgid "Then reconfigure your system."
  1295. msgstr "然后重新配置你的系统。"
  1296. #. type: enumerate
  1297. #: guix-git/doc/contributing.texi:1035
  1298. 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:"
  1299. msgstr "你之后可以用@code{--system}参数为不同的平台构建软件包。例如,为armhf,aarch64,或mips64架构构建\"hello\"软件包,你可以依次运行如下的命令:"
  1300. #. type: example
  1301. #: guix-git/doc/contributing.texi:1038
  1302. #, fuzzy, no-wrap
  1303. msgid ""
  1304. "guix build --system=armhf-linux --rounds=2 hello\n"
  1305. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1306. msgstr ""
  1307. "guix build --system=armhf-linux --rounds=2 hello\n"
  1308. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1309. "guix build --system=mips64el-linux --rounds=2 hello\n"
  1310. #. type: cindex
  1311. #: guix-git/doc/contributing.texi:1041
  1312. #, no-wrap
  1313. msgid "bundling"
  1314. msgstr "构建"
  1315. #. type: enumerate
  1316. #: guix-git/doc/contributing.texi:1044
  1317. msgid "Make sure the package does not use bundled copies of software already available as separate packages."
  1318. msgstr "请确保软件包里不捆绑出现已经被打过包的软件的副本。"
  1319. #. type: enumerate
  1320. #: guix-git/doc/contributing.texi:1053
  1321. 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."
  1322. msgstr "有时,软件包为了方便用户,捆绑了依赖库的源代码。然而,当依赖库在发行版里已经存在时,做为一个发行版,我们希望确保这些软件包使用发行版里已有的副本。这提高资源使用率(依赖库只构建一次,存储一份),并且使发行版更容易管理,如仅在一个地方对某个软件包进行安全更新就可以影响整个系统--捆绑软件会妨碍这么做。"
  1323. #. type: enumerate
  1324. #: guix-git/doc/contributing.texi:1062
  1325. #, fuzzy
  1326. 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."
  1327. msgstr "看一下@command{guix size}(@pxref{Invoking guix size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{有多个输出的软件包}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。"
  1328. #. type: enumerate
  1329. #: guix-git/doc/contributing.texi:1067
  1330. 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})."
  1331. msgstr "对于重要的更改,确保依赖它的软件包没有受到影响。@code{guix refresh --list-dependent @var{软件包}}会帮你检查(@pxref{Invoking guix refresh})。"
  1332. #. type: cindex
  1333. #: guix-git/doc/contributing.texi:1069
  1334. #, no-wrap
  1335. msgid "branching strategy"
  1336. msgstr "分支策略"
  1337. #. type: cindex
  1338. #: guix-git/doc/contributing.texi:1070
  1339. #, no-wrap
  1340. msgid "rebuild scheduling strategy"
  1341. msgstr "重新构建的调度策略"
  1342. #. type: enumerate
  1343. #: guix-git/doc/contributing.texi:1073
  1344. msgid "Depending on the number of dependent packages and thus the amount of rebuilding induced, commits go to different branches, along these lines:"
  1345. msgstr "取决于受影响的软件包的数量,即需要重新构建的数量,commit需要被提交到不同的分支,具体如下:"
  1346. #. type: item
  1347. #: guix-git/doc/contributing.texi:1075
  1348. #, no-wrap
  1349. msgid "300 dependent packages or less"
  1350. msgstr "300个或更少的受影响的软件包"
  1351. #. type: table
  1352. #: guix-git/doc/contributing.texi:1077
  1353. msgid "@code{master} branch (non-disruptive changes)."
  1354. msgstr "@code{master}分支(非破坏性的更改)。"
  1355. #. type: item
  1356. #: guix-git/doc/contributing.texi:1078
  1357. #, no-wrap
  1358. msgid "between 300 and 1,800 dependent packages"
  1359. msgstr "300 至 1800 个受影响的软件包"
  1360. #. type: table
  1361. #: guix-git/doc/contributing.texi:1083
  1362. #, fuzzy
  1363. 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})."
  1364. msgstr "@code{staging}分支(非破坏性的更改)。这个分支每隔大约3周会被合并进@code{master}。对某个主题的更改(如对GNOME系列的更新)可以放进一个特定的分支(如@code{gnome-updates})。"
  1365. #. type: item
  1366. #: guix-git/doc/contributing.texi:1084
  1367. #, no-wrap
  1368. msgid "more than 1,800 dependent packages"
  1369. msgstr "超过 1800 个受影响的软件包"
  1370. #. type: table
  1371. #: guix-git/doc/contributing.texi:1088
  1372. #, fuzzy
  1373. 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."
  1374. msgstr "@code{core-updates}分支(可能含有重要的或破坏性的更改)。这个分支每隔大约2.5个月会被合并进@code{master}。"
  1375. #. type: enumerate
  1376. #: guix-git/doc/contributing.texi:1095
  1377. 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."
  1378. msgstr "所有这些分支都@uref{@value{SUBSTITUTE-URL}, 被构建农场跟踪},并且当一切都被顺利构建时合并进@code{master}。这使我们在影响到用户之前就能改正问题,并且缩小没有准备好预构建的二进制包的窗口期。"
  1379. #. type: enumerate
  1380. #: guix-git/doc/contributing.texi:1104
  1381. 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."
  1382. msgstr ""
  1383. #. type: cindex
  1384. #: guix-git/doc/contributing.texi:1106
  1385. #, no-wrap
  1386. msgid "determinism, of build processes"
  1387. msgstr "构建过程的确定性"
  1388. #. type: cindex
  1389. #: guix-git/doc/contributing.texi:1107
  1390. #, no-wrap
  1391. msgid "reproducible builds, checking"
  1392. msgstr "检查可复现的构建"
  1393. #. type: enumerate
  1394. #: guix-git/doc/contributing.texi:1111
  1395. 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."
  1396. msgstr "检查软件包的构建过程是不是确定性的。这通常意味着检查对软件包的独立构建是否能得到每一个比特都完全相同的结果。"
  1397. #. type: enumerate
  1398. #: guix-git/doc/contributing.texi:1114
  1399. 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}):"
  1400. msgstr "为此,一个简单的做法是在你的机器上多次构建同一个软件包(@pxref{Invoking guix build}):"
  1401. #. type: example
  1402. #: guix-git/doc/contributing.texi:1117
  1403. #, no-wrap
  1404. msgid "guix build --rounds=2 my-package\n"
  1405. msgstr "guix build --rounds=2 <我的软件包>\n"
  1406. #. type: enumerate
  1407. #: guix-git/doc/contributing.texi:1121
  1408. msgid "This is enough to catch a class of common non-determinism issues, such as timestamps or randomly-generated output in the build result."
  1409. msgstr "这足以查出一批普通的不确定性问题,如构建结果里存在时间戳或随机生成的输出。"
  1410. #. type: enumerate
  1411. #: guix-git/doc/contributing.texi:1131
  1412. 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."
  1413. msgstr "另一个选择是使用@command{guix challenge}(@pxref{Invoking guix challenge})。当软件包被提交并且被@code{@value{SUBSTITUTE-SERVER}}构建之后,你可以运行这个命令检查你是否得到相同的构建结果。更好的:找另一台可以构建的机器,运行@command{guix publish}。由于远程的构建机器很可能和你的机器不同,这可以捕捉到由硬件不同引起的不确定性问题--如,使用不同的指令集--或不同操作系统内核引起的问题--如,对@code{uname}或@file{/proc}文件的依赖。"
  1414. #. type: enumerate
  1415. #: guix-git/doc/contributing.texi:1137
  1416. 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."
  1417. msgstr "在编写文档时,请用性别中立的词语指代人,如@uref{https://en.wikipedia.org/wiki/Singular_they, “他”@comma{} “他的”},等。"
  1418. #. type: enumerate
  1419. #: guix-git/doc/contributing.texi:1141
  1420. msgid "Verify that your patch contains only one set of related changes. Bundling unrelated changes together makes reviewing harder and slower."
  1421. msgstr "检查你的补丁只包含一些相关的更改。把不相关的更改捆绑在一起会让评审更困难和更慢。"
  1422. #. type: enumerate
  1423. #: guix-git/doc/contributing.texi:1144
  1424. msgid "Examples of unrelated changes include the addition of several packages, or a package update along with fixes to that package."
  1425. msgstr "不相关的更改的例子有:同时新增多个软件包,或更新软件包同时修补这个软件包。"
  1426. #. type: enumerate
  1427. #: guix-git/doc/contributing.texi:1149
  1428. 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})."
  1429. msgstr "请遵守我们的代码格式规范,最好运行@command{etc/indent-code.el}脚本以自动为你格式化(@pxref{Formatting Code})。"
  1430. #. type: enumerate
  1431. #: guix-git/doc/contributing.texi:1157
  1432. 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."
  1433. msgstr "当可能时,请在源URL里使用镜像@pxref{Invoking guix download}。使用可靠的而不是生成的URL。例如,GitHub的下载文件每次生成时不一定是相同的,所以这时最好克隆仓库。不要在URL里使用@command{name}变量:这没有什么用,而且如果名字变了,URL很可能就错了。"
  1434. #. type: enumerate
  1435. #: guix-git/doc/contributing.texi:1161
  1436. msgid "Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols."
  1437. msgstr ""
  1438. #. type: enumerate
  1439. #: guix-git/doc/contributing.texi:1164
  1440. msgid "Make sure your changes do not break Guix and simulate a @code{guix pull} with:"
  1441. msgstr ""
  1442. #. type: example
  1443. #: guix-git/doc/contributing.texi:1166
  1444. #, no-wrap
  1445. msgid "guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master\n"
  1446. msgstr ""
  1447. #. type: Plain text
  1448. #: guix-git/doc/contributing.texi:1179
  1449. #, fuzzy
  1450. 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."
  1451. msgstr "在提交补丁到邮件列表时,使用@samp{[PATCH] @dots{}}做为主题。你可以使用你的邮件客户端或者@command{git send-email}命令(@pxref{Sending a Patch Series})。我们倾向于接收纯文本的邮件,无论是在正文里还是在MIME附件里。建议你注意你的邮件客户端是否会自动修改换行或缩进,这可能会损坏补丁。"
  1452. #. type: Plain text
  1453. #: guix-git/doc/contributing.texi:1182
  1454. msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{NNN}-done@@debbugs.gnu.org}."
  1455. msgstr "当一个bug被修复时,请通过向@email{@var{NNN}-done@@debbugs.gnu.org}发邮件的方式关闭thread。"
  1456. #. type: anchor{#1}
  1457. #: guix-git/doc/contributing.texi:1183 guix-git/doc/contributing.texi:1185
  1458. #, no-wrap
  1459. msgid "Sending a Patch Series"
  1460. msgstr "发送补丁系列"
  1461. #. type: cindex
  1462. #: guix-git/doc/contributing.texi:1185
  1463. #, no-wrap
  1464. msgid "patch series"
  1465. msgstr "补丁系列"
  1466. #. type: code{#1}
  1467. #: guix-git/doc/contributing.texi:1186
  1468. #, no-wrap
  1469. msgid "git send-email"
  1470. msgstr "git send-email"
  1471. #. type: code{#1}
  1472. #: guix-git/doc/contributing.texi:1187
  1473. #, no-wrap
  1474. msgid "git-send-email"
  1475. msgstr "git-send-email"
  1476. #. type: Plain text
  1477. #: guix-git/doc/contributing.texi:1197
  1478. #, fuzzy
  1479. 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}."
  1480. msgstr "在发送补丁系列时(如,使用@code{git send-email}),请先向@email{guix-patches@@gnu.org}发送一封邮件,再把后续的补丁发送到@email{@var{NNN}@@debbugs.gnu.org},以确保他们被归在一起。见@uref{https://debbugs.gnu.org/Advanced.html, Debbugs文档}以了解更多信息。"
  1481. #. type: cindex
  1482. #: guix-git/doc/contributing.texi:1201
  1483. #, no-wrap
  1484. msgid "bug reports, tracking"
  1485. msgstr ""
  1486. #. type: cindex
  1487. #: guix-git/doc/contributing.texi:1202
  1488. #, no-wrap
  1489. msgid "patch submissions, tracking"
  1490. msgstr ""
  1491. #. type: cindex
  1492. #: guix-git/doc/contributing.texi:1203
  1493. #, no-wrap
  1494. msgid "issue tracking"
  1495. msgstr ""
  1496. #. type: cindex
  1497. #: guix-git/doc/contributing.texi:1204
  1498. #, no-wrap
  1499. msgid "Debbugs, issue tracking system"
  1500. msgstr ""
  1501. #. type: Plain text
  1502. #: guix-git/doc/contributing.texi:1211
  1503. 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})."
  1504. msgstr ""
  1505. #. type: Plain text
  1506. #: guix-git/doc/contributing.texi:1214
  1507. msgid "A web interface (actually @emph{two} web interfaces!) are available to browse issues:"
  1508. msgstr ""
  1509. #. type: itemize
  1510. #: guix-git/doc/contributing.texi:1223
  1511. 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;"
  1512. msgstr ""
  1513. #. type: itemize
  1514. #: guix-git/doc/contributing.texi:1225
  1515. #, fuzzy
  1516. msgid "@url{https://bugs.gnu.org/guix} lists bug reports;"
  1517. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  1518. #. type: itemize
  1519. #: guix-git/doc/contributing.texi:1227
  1520. msgid "@url{https://bugs.gnu.org/guix-patches} lists patch submissions."
  1521. msgstr ""
  1522. #. type: Plain text
  1523. #: guix-git/doc/contributing.texi:1232
  1524. 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}}."
  1525. msgstr ""
  1526. #. type: Plain text
  1527. #: guix-git/doc/contributing.texi:1235
  1528. msgid "If you use Emacs, you may find it more convenient to interact with issues using @file{debbugs.el}, which you can install with:"
  1529. msgstr ""
  1530. #. type: example
  1531. #: guix-git/doc/contributing.texi:1238
  1532. #, fuzzy, no-wrap
  1533. msgid "guix install emacs-debbugs\n"
  1534. msgstr "guix install emacs-guix\n"
  1535. #. type: Plain text
  1536. #: guix-git/doc/contributing.texi:1241
  1537. msgid "For example, to list all open issues on @code{guix-patches}, hit:"
  1538. msgstr ""
  1539. #. type: example
  1540. #: guix-git/doc/contributing.texi:1244
  1541. #, no-wrap
  1542. msgid "@kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y\n"
  1543. msgstr ""
  1544. #. type: Plain text
  1545. #: guix-git/doc/contributing.texi:1248
  1546. #, fuzzy
  1547. msgid "@xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on this nifty tool!"
  1548. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1549. #. type: cindex
  1550. #: guix-git/doc/contributing.texi:1252
  1551. #, no-wrap
  1552. msgid "commit access, for developers"
  1553. msgstr ""
  1554. #. type: Plain text
  1555. #: guix-git/doc/contributing.texi:1256
  1556. msgid "For frequent contributors, having write access to the repository is convenient. When you deem it necessary, consider applying for commit access by following these steps:"
  1557. msgstr ""
  1558. #. type: enumerate
  1559. #: guix-git/doc/contributing.texi:1265
  1560. 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."
  1561. msgstr ""
  1562. #. type: enumerate
  1563. #: guix-git/doc/contributing.texi:1271
  1564. 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''."
  1565. msgstr ""
  1566. #. type: enumerate
  1567. #: guix-git/doc/contributing.texi:1278
  1568. 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."
  1569. msgstr ""
  1570. #. type: enumerate
  1571. #: guix-git/doc/contributing.texi:1284
  1572. 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}):"
  1573. msgstr ""
  1574. #. type: example
  1575. #: guix-git/doc/contributing.texi:1287
  1576. #, no-wrap
  1577. msgid "digest-algo sha512\n"
  1578. msgstr ""
  1579. #. type: enumerate
  1580. #: guix-git/doc/contributing.texi:1292
  1581. msgid "Maintainers ultimately decide whether to grant you commit access, usually following your referrals' recommendation."
  1582. msgstr ""
  1583. #. type: cindex
  1584. #: guix-git/doc/contributing.texi:1294
  1585. #, no-wrap
  1586. msgid "OpenPGP, signed commits"
  1587. msgstr ""
  1588. #. type: enumerate
  1589. #: guix-git/doc/contributing.texi:1299
  1590. 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."
  1591. msgstr ""
  1592. #. type: quotation
  1593. #: guix-git/doc/contributing.texi:1300
  1594. #, no-wrap
  1595. msgid "Important"
  1596. msgstr ""
  1597. #. type: quotation
  1598. #: guix-git/doc/contributing.texi:1302
  1599. msgid "Before you can push for the first time, maintainers must:"
  1600. msgstr ""
  1601. #. type: enumerate
  1602. #: guix-git/doc/contributing.texi:1306
  1603. msgid "add your OpenPGP key to the @code{keyring} branch;"
  1604. msgstr ""
  1605. #. type: enumerate
  1606. #: guix-git/doc/contributing.texi:1309
  1607. msgid "add your OpenPGP fingerprint to the @file{.guix-authorizations} file of the branch(es) you will commit to."
  1608. msgstr ""
  1609. #. type: enumerate
  1610. #: guix-git/doc/contributing.texi:1314
  1611. msgid "Make sure to read the rest of this section and... profit!"
  1612. msgstr ""
  1613. #. type: quotation
  1614. #: guix-git/doc/contributing.texi:1320
  1615. 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!"
  1616. msgstr ""
  1617. #. type: quotation
  1618. #: guix-git/doc/contributing.texi:1324
  1619. 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!"
  1620. msgstr ""
  1621. #. type: Plain text
  1622. #: guix-git/doc/contributing.texi:1329
  1623. 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})."
  1624. msgstr ""
  1625. #. type: Plain text
  1626. #: guix-git/doc/contributing.texi:1334
  1627. 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})."
  1628. msgstr ""
  1629. #. type: Plain text
  1630. #: guix-git/doc/contributing.texi:1343
  1631. 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}."
  1632. msgstr ""
  1633. #. type: Plain text
  1634. #: guix-git/doc/contributing.texi:1349
  1635. 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:"
  1636. msgstr ""
  1637. #. type: example
  1638. #: guix-git/doc/contributing.texi:1353
  1639. #, no-wrap
  1640. msgid ""
  1641. "git config commit.gpgsign true\n"
  1642. "git config user.signingkey CABBA6EA1DC0FF33\n"
  1643. msgstr ""
  1644. #. type: Plain text
  1645. #: guix-git/doc/contributing.texi:1358
  1646. msgid "You can prevent yourself from accidentally pushing unsigned commits to Savannah by using the pre-push Git hook called located at @file{etc/git/pre-push}:"
  1647. msgstr ""
  1648. #. type: example
  1649. #: guix-git/doc/contributing.texi:1361
  1650. #, no-wrap
  1651. msgid "cp etc/git/pre-push .git/hooks/pre-push\n"
  1652. msgstr ""
  1653. #. type: Plain text
  1654. #: guix-git/doc/contributing.texi:1367
  1655. 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."
  1656. msgstr ""
  1657. #. type: Plain text
  1658. #: guix-git/doc/contributing.texi:1371
  1659. 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:"
  1660. msgstr ""
  1661. #. type: example
  1662. #: guix-git/doc/contributing.texi:1374
  1663. #, fuzzy, no-wrap
  1664. msgid "make check-channel-news\n"
  1665. msgstr "make check\n"
  1666. #. type: Plain text
  1667. #: guix-git/doc/contributing.texi:1380
  1668. 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."
  1669. msgstr ""
  1670. #. type: Plain text
  1671. #: guix-git/doc/contributing.texi:1383
  1672. msgid "That last part is subject to being adjusted, allowing individuals to commit directly on non-controversial changes on parts they’re familiar with."
  1673. msgstr ""
  1674. #. type: Plain text
  1675. #: guix-git/doc/contributing.texi:1389
  1676. 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."
  1677. msgstr ""
  1678. #. type: Plain text
  1679. #: guix-git/doc/contributing.texi:1395
  1680. 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!"
  1681. msgstr ""
  1682. #. type: cindex
  1683. #: guix-git/doc/contributing.texi:1399
  1684. #, fuzzy, no-wrap
  1685. msgid "update-guix-package, updating the guix package"
  1686. msgstr "guix package:调用guix package"
  1687. #. type: Plain text
  1688. #: guix-git/doc/contributing.texi:1405
  1689. 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:"
  1690. msgstr ""
  1691. #. type: example
  1692. #: guix-git/doc/contributing.texi:1408
  1693. #, no-wrap
  1694. msgid "make update-guix-package\n"
  1695. msgstr ""
  1696. #. type: Plain text
  1697. #: guix-git/doc/contributing.texi:1415
  1698. 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."
  1699. msgstr ""
  1700. #. type: Plain text
  1701. #: guix-git/doc/contributing.texi:1419
  1702. 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:"
  1703. msgstr ""
  1704. #. type: example
  1705. #: guix-git/doc/contributing.texi:1422
  1706. #, fuzzy, no-wrap
  1707. msgid "./pre-inst-env guix build guix\n"
  1708. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  1709. #. type: Plain text
  1710. #: guix-git/doc/contributing.texi:1427
  1711. 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."
  1712. msgstr ""
  1713. #. type: Plain text
  1714. #: guix-git/doc/contributing.texi:1431
  1715. 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."
  1716. msgstr ""
  1717. #. type: Plain text
  1718. #: guix-git/doc/guix.texi:7
  1719. msgid "@documentencoding UTF-8"
  1720. msgstr "@documentencoding UTF-8"
  1721. #. type: title
  1722. #: guix-git/doc/guix.texi:7 guix-git/doc/guix.texi:118
  1723. #, no-wrap
  1724. msgid "GNU Guix Reference Manual"
  1725. msgstr "GNU Guix 参考手册"
  1726. #. type: include
  1727. #: guix-git/doc/guix.texi:10
  1728. #, no-wrap
  1729. msgid "version.texi"
  1730. msgstr "version-zh_CN.texi"
  1731. #. type: copying
  1732. #: guix-git/doc/guix.texi:91
  1733. 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 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 Christopher 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 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 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@*"
  1734. msgstr ""
  1735. #. type: copying
  1736. #: guix-git/doc/guix.texi:98
  1737. 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''."
  1738. 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''."
  1739. #. type: dircategory
  1740. #: guix-git/doc/guix.texi:100
  1741. #, no-wrap
  1742. msgid "System administration"
  1743. msgstr "系统管理"
  1744. #. type: menuentry
  1745. #: guix-git/doc/guix.texi:108
  1746. msgid "Guix: (guix)"
  1747. msgstr "Guix:(guix)"
  1748. #. type: menuentry
  1749. #: guix-git/doc/guix.texi:108
  1750. msgid "Manage installed software and system configuration."
  1751. msgstr "管理安装的软件和系统配置。"
  1752. #. type: menuentry
  1753. #: guix-git/doc/guix.texi:108
  1754. msgid "guix package: (guix)Invoking guix package"
  1755. msgstr "guix package:调用guix package"
  1756. #. type: menuentry
  1757. #: guix-git/doc/guix.texi:108
  1758. msgid "Installing, removing, and upgrading packages."
  1759. msgstr "安装、删除和升级软件包。"
  1760. #. type: menuentry
  1761. #: guix-git/doc/guix.texi:108
  1762. msgid "guix gc: (guix)Invoking guix gc"
  1763. msgstr "guix gc:调用guix gc"
  1764. #. type: menuentry
  1765. #: guix-git/doc/guix.texi:108
  1766. msgid "Reclaiming unused disk space."
  1767. msgstr "回收不使用的硬盘空间。"
  1768. #. type: menuentry
  1769. #: guix-git/doc/guix.texi:108
  1770. msgid "guix pull: (guix)Invoking guix pull"
  1771. msgstr "guix pull:调用guix pull"
  1772. #. type: menuentry
  1773. #: guix-git/doc/guix.texi:108
  1774. msgid "Update the list of available packages."
  1775. msgstr "更新可用的软件包列表。"
  1776. #. type: menuentry
  1777. #: guix-git/doc/guix.texi:108
  1778. msgid "guix system: (guix)Invoking guix system"
  1779. msgstr "guix system:调用guix system"
  1780. #. type: menuentry
  1781. #: guix-git/doc/guix.texi:108
  1782. msgid "Manage the operating system configuration."
  1783. msgstr "管理操作系统配置。"
  1784. #. type: menuentry
  1785. #: guix-git/doc/guix.texi:108
  1786. #, fuzzy
  1787. msgid "guix deploy: (guix)Invoking guix deploy"
  1788. msgstr "guix pull:调用guix pull"
  1789. #. type: menuentry
  1790. #: guix-git/doc/guix.texi:108
  1791. #, fuzzy
  1792. msgid "Manage operating system configurations for remote hosts."
  1793. msgstr "管理操作系统配置。"
  1794. #. type: dircategory
  1795. #: guix-git/doc/guix.texi:110
  1796. #, no-wrap
  1797. msgid "Software development"
  1798. msgstr "软件开发"
  1799. #. type: menuentry
  1800. #: guix-git/doc/guix.texi:115
  1801. msgid "guix environment: (guix)Invoking guix environment"
  1802. msgstr "guix environment:调用guix environment"
  1803. #. type: menuentry
  1804. #: guix-git/doc/guix.texi:115
  1805. msgid "Building development environments with Guix."
  1806. msgstr "用Guix构建开发环境。"
  1807. #. type: menuentry
  1808. #: guix-git/doc/guix.texi:115
  1809. msgid "guix build: (guix)Invoking guix build"
  1810. msgstr "guix build:(guix)调用guix build"
  1811. #. type: menuentry
  1812. #: guix-git/doc/guix.texi:115
  1813. msgid "Building packages."
  1814. msgstr "构建软件包。"
  1815. #. type: menuentry
  1816. #: guix-git/doc/guix.texi:115
  1817. msgid "guix pack: (guix)Invoking guix pack"
  1818. msgstr "guix pack:(guix)调用guix pack"
  1819. #. type: menuentry
  1820. #: guix-git/doc/guix.texi:115
  1821. msgid "Creating binary bundles."
  1822. msgstr "创建二进制bundle。"
  1823. #. type: subtitle
  1824. #: guix-git/doc/guix.texi:119
  1825. #, no-wrap
  1826. msgid "Using the GNU Guix Functional Package Manager"
  1827. msgstr "使用GNU Guix函数式包管理器"
  1828. #. type: author
  1829. #: guix-git/doc/guix.texi:120
  1830. #, no-wrap
  1831. msgid "The GNU Guix Developers"
  1832. msgstr "GNU Guix开发者"
  1833. #. type: titlepage
  1834. #: guix-git/doc/guix.texi:126
  1835. msgid "Edition @value{EDITION} @* @value{UPDATED} @*"
  1836. msgstr "版本@value{EDITION} @* @value{UPDATED} @*"
  1837. #. type: node
  1838. #: guix-git/doc/guix.texi:133
  1839. #, no-wrap
  1840. msgid "Top"
  1841. msgstr "Top"
  1842. #. type: top
  1843. #: guix-git/doc/guix.texi:134
  1844. #, no-wrap
  1845. msgid "GNU Guix"
  1846. msgstr "GNU Guix"
  1847. #. type: Plain text
  1848. #: guix-git/doc/guix.texi:138
  1849. msgid "This document describes GNU Guix version @value{VERSION}, a functional package management tool written for the GNU system."
  1850. msgstr "这份文档介绍GNU Guix版本@value{VERSION},一个为GNU系统编写的函数式包管理器。"
  1851. #. You can replace the following paragraph with information on
  1852. #. type: Plain text
  1853. #: guix-git/doc/guix.texi:150
  1854. #, fuzzy
  1855. 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}."
  1856. 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}。"
  1857. #. type: chapter
  1858. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:178
  1859. #: guix-git/doc/guix.texi:379 guix-git/doc/guix.texi:380
  1860. #, no-wrap
  1861. msgid "Introduction"
  1862. msgstr "介绍"
  1863. #. type: menuentry
  1864. #: guix-git/doc/guix.texi:168
  1865. msgid "What is Guix about?"
  1866. msgstr "Guix是关于什么的?"
  1867. #. type: chapter
  1868. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:183
  1869. #: guix-git/doc/guix.texi:560 guix-git/doc/guix.texi:561
  1870. #, no-wrap
  1871. msgid "Installation"
  1872. msgstr "安装"
  1873. #. type: menuentry
  1874. #: guix-git/doc/guix.texi:168
  1875. msgid "Installing Guix."
  1876. msgstr "安装Guix。"
  1877. #. type: chapter
  1878. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:199
  1879. #: guix-git/doc/guix.texi:2000 guix-git/doc/guix.texi:2001
  1880. #, no-wrap
  1881. msgid "System Installation"
  1882. msgstr "系统安装"
  1883. #. type: menuentry
  1884. #: guix-git/doc/guix.texi:168
  1885. msgid "Installing the whole operating system."
  1886. msgstr "安装整个操作系统。"
  1887. #. type: chapter
  1888. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:2717
  1889. #: guix-git/doc/guix.texi:2718
  1890. #, no-wrap
  1891. msgid "Getting Started"
  1892. msgstr "入门"
  1893. #. type: menuentry
  1894. #: guix-git/doc/guix.texi:168
  1895. msgid "Your first steps."
  1896. msgstr ""
  1897. #. type: chapter
  1898. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:216
  1899. #: guix-git/doc/guix.texi:2925 guix-git/doc/guix.texi:2926
  1900. #, no-wrap
  1901. msgid "Package Management"
  1902. msgstr "软件包管理"
  1903. #. type: menuentry
  1904. #: guix-git/doc/guix.texi:168
  1905. msgid "Package installation, upgrade, etc."
  1906. msgstr "软件包安装、升级等。"
  1907. #. type: chapter
  1908. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:239
  1909. #: guix-git/doc/guix.texi:4975 guix-git/doc/guix.texi:4976
  1910. #, no-wrap
  1911. msgid "Channels"
  1912. msgstr "通道"
  1913. #. type: menuentry
  1914. #: guix-git/doc/guix.texi:168
  1915. msgid "Customizing the package collection."
  1916. msgstr "定制软件包集合。"
  1917. #. type: chapter
  1918. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:253
  1919. #: guix-git/doc/guix.texi:5503 guix-git/doc/guix.texi:5504
  1920. #, no-wrap
  1921. msgid "Development"
  1922. msgstr "开发"
  1923. #. type: menuentry
  1924. #: guix-git/doc/guix.texi:168
  1925. msgid "Guix-aided software development."
  1926. msgstr "Guix辅助的软件开发。"
  1927. #. type: chapter
  1928. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:260
  1929. #: guix-git/doc/guix.texi:6329 guix-git/doc/guix.texi:6330
  1930. #, no-wrap
  1931. msgid "Programming Interface"
  1932. msgstr "编程接口"
  1933. #. type: menuentry
  1934. #: guix-git/doc/guix.texi:168
  1935. msgid "Using Guix in Scheme."
  1936. msgstr "在Scheme里使用Guix。"
  1937. #. type: chapter
  1938. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:279
  1939. #: guix-git/doc/guix.texi:10125 guix-git/doc/guix.texi:10126
  1940. #, no-wrap
  1941. msgid "Utilities"
  1942. msgstr "工具"
  1943. #. type: menuentry
  1944. #: guix-git/doc/guix.texi:168
  1945. msgid "Package management commands."
  1946. msgstr "软件包管理命令。"
  1947. #. type: chapter
  1948. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:304
  1949. #: guix-git/doc/guix.texi:13305 guix-git/doc/guix.texi:13306
  1950. #, no-wrap
  1951. msgid "System Configuration"
  1952. msgstr "系统配置"
  1953. #. type: menuentry
  1954. #: guix-git/doc/guix.texi:168
  1955. msgid "Configuring the operating system."
  1956. msgstr "配置操作系统。"
  1957. #. type: chapter
  1958. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:34336
  1959. #: guix-git/doc/guix.texi:34337
  1960. #, no-wrap
  1961. msgid "Documentation"
  1962. msgstr "文档"
  1963. #. type: menuentry
  1964. #: guix-git/doc/guix.texi:168
  1965. msgid "Browsing software user manuals."
  1966. msgstr "浏览软件用户手册。"
  1967. #. type: chapter
  1968. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:366
  1969. #: guix-git/doc/guix.texi:34400 guix-git/doc/guix.texi:34401
  1970. #, no-wrap
  1971. msgid "Installing Debugging Files"
  1972. msgstr "安装调试文件"
  1973. #. type: menuentry
  1974. #: guix-git/doc/guix.texi:168
  1975. msgid "Feeding the debugger."
  1976. msgstr "为调试工具提供输入。"
  1977. #. type: chapter
  1978. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:34541
  1979. #: guix-git/doc/guix.texi:34542
  1980. #, no-wrap
  1981. msgid "Security Updates"
  1982. msgstr "安全更新"
  1983. #. type: menuentry
  1984. #: guix-git/doc/guix.texi:168
  1985. msgid "Deploying security fixes quickly."
  1986. msgstr "快速部署安全补丁。"
  1987. #. type: chapter
  1988. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:371
  1989. #: guix-git/doc/guix.texi:34656 guix-git/doc/guix.texi:34657
  1990. #, no-wrap
  1991. msgid "Bootstrapping"
  1992. msgstr "引导"
  1993. #. type: menuentry
  1994. #: guix-git/doc/guix.texi:168
  1995. msgid "GNU/Linux built from scratch."
  1996. msgstr "从头开始构建GNU/Linux。"
  1997. #. type: node
  1998. #: guix-git/doc/guix.texi:168 guix-git/doc/guix.texi:34948
  1999. #, no-wrap
  2000. msgid "Porting"
  2001. msgstr "移植"
  2002. #. type: menuentry
  2003. #: guix-git/doc/guix.texi:168
  2004. msgid "Targeting another platform or kernel."
  2005. msgstr "以别的平台或内核为目标。"
  2006. #. type: menuentry
  2007. #: guix-git/doc/guix.texi:168
  2008. msgid "Your help needed!"
  2009. msgstr "你需要帮助!"
  2010. #. type: chapter
  2011. #: guix-git/doc/guix.texi:173 guix-git/doc/guix.texi:34996
  2012. #: guix-git/doc/guix.texi:34997
  2013. #, no-wrap
  2014. msgid "Acknowledgments"
  2015. msgstr "致谢"
  2016. #. type: menuentry
  2017. #: guix-git/doc/guix.texi:173
  2018. msgid "Thanks!"
  2019. msgstr "感谢!"
  2020. #. type: appendix
  2021. #: guix-git/doc/guix.texi:173 guix-git/doc/guix.texi:35018
  2022. #: guix-git/doc/guix.texi:35019
  2023. #, no-wrap
  2024. msgid "GNU Free Documentation License"
  2025. msgstr "GNU自由文档许可证"
  2026. #. type: menuentry
  2027. #: guix-git/doc/guix.texi:173
  2028. msgid "The license of this manual."
  2029. msgstr "这个用户手册的许可证。"
  2030. #. type: unnumbered
  2031. #: guix-git/doc/guix.texi:173 guix-git/doc/guix.texi:35024
  2032. #: guix-git/doc/guix.texi:35025
  2033. #, no-wrap
  2034. msgid "Concept Index"
  2035. msgstr "概念索引"
  2036. #. type: menuentry
  2037. #: guix-git/doc/guix.texi:173
  2038. msgid "Concepts."
  2039. msgstr "概念。"
  2040. #. type: unnumbered
  2041. #: guix-git/doc/guix.texi:173 guix-git/doc/guix.texi:35028
  2042. #: guix-git/doc/guix.texi:35029
  2043. #, no-wrap
  2044. msgid "Programming Index"
  2045. msgstr "编程索引"
  2046. #. type: menuentry
  2047. #: guix-git/doc/guix.texi:173
  2048. msgid "Data types, functions, and variables."
  2049. msgstr "数据类型、函数和变量。"
  2050. #. type: menuentry
  2051. #: guix-git/doc/guix.texi:176
  2052. msgid "--- The Detailed Node Listing ---"
  2053. msgstr "---详细的章节列表---"
  2054. #. type: section
  2055. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:406
  2056. #: guix-git/doc/guix.texi:408 guix-git/doc/guix.texi:409
  2057. #, no-wrap
  2058. msgid "Managing Software the Guix Way"
  2059. msgstr "以Guix的方式管理软件"
  2060. #. type: menuentry
  2061. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:406
  2062. msgid "What's special."
  2063. msgstr "特殊的地方。"
  2064. #. type: section
  2065. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:406
  2066. #: guix-git/doc/guix.texi:463 guix-git/doc/guix.texi:464
  2067. #, no-wrap
  2068. msgid "GNU Distribution"
  2069. msgstr "GNU发行版"
  2070. #. type: menuentry
  2071. #: guix-git/doc/guix.texi:181 guix-git/doc/guix.texi:406
  2072. msgid "The packages and tools."
  2073. msgstr "软件包和工具。"
  2074. #. type: section
  2075. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2076. #: guix-git/doc/guix.texi:602 guix-git/doc/guix.texi:603
  2077. #, no-wrap
  2078. msgid "Binary Installation"
  2079. msgstr "二进制文件安装"
  2080. #. type: menuentry
  2081. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2082. msgid "Getting Guix running in no time!"
  2083. msgstr "立刻运行Guix!"
  2084. #. type: section
  2085. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2086. #: guix-git/doc/guix.texi:820 guix-git/doc/guix.texi:821
  2087. #, no-wrap
  2088. msgid "Requirements"
  2089. msgstr "需求"
  2090. #. type: menuentry
  2091. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2092. msgid "Software needed to build and run Guix."
  2093. msgstr "构建和运行Guix需要的软件。"
  2094. #. type: section
  2095. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2096. #: guix-git/doc/guix.texi:909 guix-git/doc/guix.texi:910
  2097. #, no-wrap
  2098. msgid "Running the Test Suite"
  2099. msgstr "运行测试套件"
  2100. #. type: menuentry
  2101. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2102. msgid "Testing Guix."
  2103. msgstr "测试Guix。"
  2104. #. type: section
  2105. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:193
  2106. #: guix-git/doc/guix.texi:600 guix-git/doc/guix.texi:1006
  2107. #: guix-git/doc/guix.texi:1007
  2108. #, no-wrap
  2109. msgid "Setting Up the Daemon"
  2110. msgstr "设置后台进程"
  2111. #. type: menuentry
  2112. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2113. msgid "Preparing the build daemon's environment."
  2114. msgstr "准备“构建后台进程”的环境。"
  2115. #. type: node
  2116. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2117. #: guix-git/doc/guix.texi:1476
  2118. #, no-wrap
  2119. msgid "Invoking guix-daemon"
  2120. msgstr "调用guix-daemon"
  2121. #. type: menuentry
  2122. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2123. msgid "Running the build daemon."
  2124. msgstr "运行“构建后台进程”"
  2125. #. type: section
  2126. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2127. #: guix-git/doc/guix.texi:1778 guix-git/doc/guix.texi:1779
  2128. #, no-wrap
  2129. msgid "Application Setup"
  2130. msgstr "设置应用程序"
  2131. #. type: menuentry
  2132. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2133. msgid "Application-specific setup."
  2134. msgstr "应用程序相关的设置。"
  2135. #. type: section
  2136. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2137. #: guix-git/doc/guix.texi:1963 guix-git/doc/guix.texi:1964
  2138. #, fuzzy, no-wrap
  2139. msgid "Upgrading Guix"
  2140. msgstr "安装Guix"
  2141. #. type: menuentry
  2142. #: guix-git/doc/guix.texi:191 guix-git/doc/guix.texi:600
  2143. msgid "Upgrading Guix and its build daemon."
  2144. msgstr "升级 Guix 及其构建守护进程。"
  2145. #. type: subsection
  2146. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:1026
  2147. #: guix-git/doc/guix.texi:1028 guix-git/doc/guix.texi:1029
  2148. #, no-wrap
  2149. msgid "Build Environment Setup"
  2150. msgstr "设置构建环境"
  2151. #. type: menuentry
  2152. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:1026
  2153. msgid "Preparing the isolated build environment."
  2154. msgstr "准备隔离的构建环境。"
  2155. #. type: node
  2156. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:1026
  2157. #: guix-git/doc/guix.texi:1147
  2158. #, no-wrap
  2159. msgid "Daemon Offload Setup"
  2160. msgstr "下发工作给后台进程的设置"
  2161. #. type: menuentry
  2162. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:1026
  2163. msgid "Offloading builds to remote machines."
  2164. msgstr "下发构建工作给远程的机器。"
  2165. #. type: subsection
  2166. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:1026
  2167. #: guix-git/doc/guix.texi:1385 guix-git/doc/guix.texi:1386
  2168. #, no-wrap
  2169. msgid "SELinux Support"
  2170. msgstr "SELinux的支持"
  2171. #. type: menuentry
  2172. #: guix-git/doc/guix.texi:197 guix-git/doc/guix.texi:1026
  2173. msgid "Using an SELinux policy for the daemon."
  2174. msgstr "为后台进程使用SELinux规则。"
  2175. #. type: section
  2176. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:1421
  2177. #: guix-git/doc/guix.texi:2034 guix-git/doc/guix.texi:2036
  2178. #: guix-git/doc/guix.texi:2037
  2179. #, no-wrap
  2180. msgid "Limitations"
  2181. msgstr "限制"
  2182. #. type: menuentry
  2183. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2184. msgid "What you can expect."
  2185. msgstr "你可以期待什么。"
  2186. #. type: section
  2187. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2188. #: guix-git/doc/guix.texi:2062 guix-git/doc/guix.texi:2063
  2189. #, no-wrap
  2190. msgid "Hardware Considerations"
  2191. msgstr "硬件的考虑"
  2192. #. type: menuentry
  2193. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2194. msgid "Supported hardware."
  2195. msgstr "支持的硬件。"
  2196. #. type: section
  2197. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2198. #: guix-git/doc/guix.texi:2097 guix-git/doc/guix.texi:2098
  2199. #, no-wrap
  2200. msgid "USB Stick and DVD Installation"
  2201. msgstr "U盘和DVD安装"
  2202. #. type: menuentry
  2203. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2204. msgid "Preparing the installation medium."
  2205. msgstr "准备安装介质。"
  2206. #. type: section
  2207. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2208. #: guix-git/doc/guix.texi:2178 guix-git/doc/guix.texi:2179
  2209. #, no-wrap
  2210. msgid "Preparing for Installation"
  2211. msgstr "准备安装"
  2212. #. type: menuentry
  2213. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2214. msgid "Networking, partitioning, etc."
  2215. msgstr "网络、分区等。"
  2216. #. type: section
  2217. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2218. #: guix-git/doc/guix.texi:2201 guix-git/doc/guix.texi:2202
  2219. #, no-wrap
  2220. msgid "Guided Graphical Installation"
  2221. msgstr "指导的图形安装"
  2222. #. type: menuentry
  2223. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2224. msgid "Easy graphical installation."
  2225. msgstr "简单的图形安装。"
  2226. #. type: section
  2227. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:211
  2228. #: guix-git/doc/guix.texi:2034 guix-git/doc/guix.texi:2232
  2229. #: guix-git/doc/guix.texi:2233
  2230. #, no-wrap
  2231. msgid "Manual Installation"
  2232. msgstr "手动安装"
  2233. #. type: menuentry
  2234. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2235. msgid "Manual installation for wizards."
  2236. msgstr "适合巫师的手动安装。"
  2237. #. type: section
  2238. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2239. #: guix-git/doc/guix.texi:2600 guix-git/doc/guix.texi:2601
  2240. #, no-wrap
  2241. msgid "After System Installation"
  2242. msgstr "系统安装之后"
  2243. #. type: menuentry
  2244. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2245. msgid "When installation succeeded."
  2246. msgstr "当安装成功后。"
  2247. #. type: node
  2248. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2249. #: guix-git/doc/guix.texi:2634
  2250. #, no-wrap
  2251. msgid "Installing Guix in a VM"
  2252. msgstr "在虚拟机里安装 Guix"
  2253. #. type: menuentry
  2254. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2255. msgid "Guix System playground."
  2256. msgstr "Guix系统游乐场。"
  2257. #. type: section
  2258. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2259. #: guix-git/doc/guix.texi:2685 guix-git/doc/guix.texi:2686
  2260. #, no-wrap
  2261. msgid "Building the Installation Image"
  2262. msgstr "构建安装镜像"
  2263. #. type: menuentry
  2264. #: guix-git/doc/guix.texi:209 guix-git/doc/guix.texi:2034
  2265. msgid "How this comes to be."
  2266. msgstr "这是怎样实现的。"
  2267. #. type: node
  2268. #: guix-git/doc/guix.texi:214 guix-git/doc/guix.texi:2250
  2269. #: guix-git/doc/guix.texi:2252
  2270. #, no-wrap
  2271. msgid "Keyboard Layout and Networking and Partitioning"
  2272. msgstr "键盘布局、网络和分区"
  2273. #. type: menuentry
  2274. #: guix-git/doc/guix.texi:214 guix-git/doc/guix.texi:2250
  2275. msgid "Initial setup."
  2276. msgstr "初始设置。"
  2277. #. type: subsection
  2278. #: guix-git/doc/guix.texi:214 guix-git/doc/guix.texi:2250
  2279. #: guix-git/doc/guix.texi:2512 guix-git/doc/guix.texi:2513
  2280. #, no-wrap
  2281. msgid "Proceeding with the Installation"
  2282. msgstr "继续安装步骤"
  2283. #. type: menuentry
  2284. #: guix-git/doc/guix.texi:214 guix-git/doc/guix.texi:2250
  2285. msgid "Installing."
  2286. msgstr "安装。"
  2287. #. type: section
  2288. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2289. #: guix-git/doc/guix.texi:2959 guix-git/doc/guix.texi:2960
  2290. #, no-wrap
  2291. msgid "Features"
  2292. msgstr "功能"
  2293. #. type: menuentry
  2294. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2295. msgid "How Guix will make your life brighter."
  2296. msgstr "Guix怎样让你的生活更美好。"
  2297. #. type: node
  2298. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2299. #: guix-git/doc/guix.texi:3049
  2300. #, no-wrap
  2301. msgid "Invoking guix package"
  2302. msgstr "调用guix package"
  2303. #. type: menuentry
  2304. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2305. msgid "Package installation, removal, etc."
  2306. msgstr "软件包安装,移除等。"
  2307. #. type: section
  2308. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:229
  2309. #: guix-git/doc/guix.texi:2957 guix-git/doc/guix.texi:3665
  2310. #: guix-git/doc/guix.texi:3666
  2311. #, no-wrap
  2312. msgid "Substitutes"
  2313. msgstr "substitutes"
  2314. #. type: menuentry
  2315. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2316. msgid "Downloading pre-built binaries."
  2317. msgstr "下载构建好的二进制文件。"
  2318. #. type: section
  2319. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2320. #: guix-git/doc/guix.texi:3996 guix-git/doc/guix.texi:3997
  2321. #, no-wrap
  2322. msgid "Packages with Multiple Outputs"
  2323. msgstr "有多个输出的软件包"
  2324. #. type: menuentry
  2325. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2326. msgid "Single source package, multiple outputs."
  2327. msgstr "单个输入多个输出的软件包。"
  2328. #. type: node
  2329. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2330. #: guix-git/doc/guix.texi:4050
  2331. #, no-wrap
  2332. msgid "Invoking guix gc"
  2333. msgstr "调用guix gc"
  2334. #. type: menuentry
  2335. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2336. msgid "Running the garbage collector."
  2337. msgstr "运行垃圾回收器。"
  2338. #. type: node
  2339. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2340. #: guix-git/doc/guix.texi:4260
  2341. #, no-wrap
  2342. msgid "Invoking guix pull"
  2343. msgstr "调用guix pull"
  2344. #. type: menuentry
  2345. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2346. msgid "Fetching the latest Guix and distribution."
  2347. msgstr "获取最新的Guix和发行版。"
  2348. #. type: node
  2349. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2350. #: guix-git/doc/guix.texi:4507
  2351. #, fuzzy, no-wrap
  2352. msgid "Invoking guix time-machine"
  2353. msgstr "调用guix archive"
  2354. #. type: menuentry
  2355. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2356. #, fuzzy
  2357. msgid "Running an older revision of Guix."
  2358. msgstr "和其它版本的Guix交互。"
  2359. #. type: section
  2360. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2361. #: guix-git/doc/guix.texi:4562 guix-git/doc/guix.texi:4563
  2362. #, no-wrap
  2363. msgid "Inferiors"
  2364. msgstr ""
  2365. #. type: menuentry
  2366. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2367. msgid "Interacting with another revision of Guix."
  2368. msgstr "和其它版本的Guix交互。"
  2369. #. type: node
  2370. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2371. #: guix-git/doc/guix.texi:4690
  2372. #, no-wrap
  2373. msgid "Invoking guix describe"
  2374. msgstr "调用guix describe"
  2375. #. type: menuentry
  2376. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2377. msgid "Display information about your Guix revision."
  2378. msgstr "显示你的Guix版本信息。"
  2379. #. type: node
  2380. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2381. #: guix-git/doc/guix.texi:4785
  2382. #, no-wrap
  2383. msgid "Invoking guix archive"
  2384. msgstr "调用guix archive"
  2385. #. type: menuentry
  2386. #: guix-git/doc/guix.texi:227 guix-git/doc/guix.texi:2957
  2387. msgid "Exporting and importing store files."
  2388. msgstr "导出和导入仓库文件。"
  2389. #. type: subsection
  2390. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2391. #: guix-git/doc/guix.texi:3691 guix-git/doc/guix.texi:3692
  2392. #, no-wrap
  2393. msgid "Official Substitute Server"
  2394. msgstr "官方的substitute服务器"
  2395. #. type: menuentry
  2396. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2397. msgid "One particular source of substitutes."
  2398. msgstr "substitute的一个特殊来源。"
  2399. #. type: subsection
  2400. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2401. #: guix-git/doc/guix.texi:3720 guix-git/doc/guix.texi:3721
  2402. #, no-wrap
  2403. msgid "Substitute Server Authorization"
  2404. msgstr "授权substitute服务器。"
  2405. #. type: menuentry
  2406. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2407. msgid "How to enable or disable substitutes."
  2408. msgstr "怎么开启或关闭substitute。"
  2409. #. type: subsection
  2410. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2411. #: guix-git/doc/guix.texi:3789 guix-git/doc/guix.texi:3790
  2412. #, no-wrap
  2413. msgid "Getting Substitutes from Other Servers"
  2414. msgstr ""
  2415. #. type: menuentry
  2416. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2417. #, fuzzy
  2418. msgid "Substitute diversity."
  2419. msgstr "substitutes"
  2420. #. type: subsection
  2421. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2422. #: guix-git/doc/guix.texi:3891 guix-git/doc/guix.texi:3892
  2423. #, no-wrap
  2424. msgid "Substitute Authentication"
  2425. msgstr "验证substitute"
  2426. #. type: menuentry
  2427. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2428. msgid "How Guix verifies substitutes."
  2429. msgstr "Guix怎样验证substitute。"
  2430. #. type: subsection
  2431. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2432. #: guix-git/doc/guix.texi:3926 guix-git/doc/guix.texi:3927
  2433. #, no-wrap
  2434. msgid "Proxy Settings"
  2435. msgstr "代理设置"
  2436. #. type: menuentry
  2437. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2438. msgid "How to get substitutes via proxy."
  2439. msgstr "怎样通过代理获取substitute。"
  2440. #. type: subsection
  2441. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2442. #: guix-git/doc/guix.texi:3938 guix-git/doc/guix.texi:3939
  2443. #, no-wrap
  2444. msgid "Substitution Failure"
  2445. msgstr "substitute失败"
  2446. #. type: menuentry
  2447. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2448. msgid "What happens when substitution fails."
  2449. msgstr "当substitute失败时会发生什么。"
  2450. #. type: subsection
  2451. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2452. #: guix-git/doc/guix.texi:3966 guix-git/doc/guix.texi:3967
  2453. #, no-wrap
  2454. msgid "On Trusting Binaries"
  2455. msgstr "关于信任二进制文件"
  2456. #. type: menuentry
  2457. #: guix-git/doc/guix.texi:237 guix-git/doc/guix.texi:3689
  2458. msgid "How can you trust that binary blob?"
  2459. msgstr "你怎么能信任二进制的 blob 呢?"
  2460. #. type: section
  2461. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2462. #: guix-git/doc/guix.texi:5008 guix-git/doc/guix.texi:5009
  2463. #, no-wrap
  2464. msgid "Specifying Additional Channels"
  2465. msgstr ""
  2466. #. type: menuentry
  2467. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2468. msgid "Extending the package collection."
  2469. msgstr "拓展软件包集合。"
  2470. #. type: section
  2471. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2472. #: guix-git/doc/guix.texi:5058 guix-git/doc/guix.texi:5059
  2473. #, no-wrap
  2474. msgid "Using a Custom Guix Channel"
  2475. msgstr ""
  2476. #. type: menuentry
  2477. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2478. msgid "Using a customized Guix."
  2479. msgstr ""
  2480. #. type: section
  2481. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2482. #: guix-git/doc/guix.texi:5080 guix-git/doc/guix.texi:5081
  2483. #, no-wrap
  2484. msgid "Replicating Guix"
  2485. msgstr ""
  2486. #. type: menuentry
  2487. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2488. msgid "Running the @emph{exact same} Guix."
  2489. msgstr ""
  2490. #. type: section
  2491. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2492. #: guix-git/doc/guix.texi:5121 guix-git/doc/guix.texi:5122
  2493. #, fuzzy, no-wrap
  2494. msgid "Channel Authentication"
  2495. msgstr "验证substitute"
  2496. #. type: menuentry
  2497. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2498. #, fuzzy
  2499. msgid "How Guix verifies what it fetches."
  2500. msgstr "Guix怎样验证substitute。"
  2501. #. type: section
  2502. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2503. #: guix-git/doc/guix.texi:5161 guix-git/doc/guix.texi:5162
  2504. #, fuzzy, no-wrap
  2505. msgid "Channels with Substitutes"
  2506. msgstr "分享substitute。"
  2507. #. type: menuentry
  2508. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2509. msgid "Using channels with available substitutes."
  2510. msgstr ""
  2511. #. type: section
  2512. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2513. #: guix-git/doc/guix.texi:5186 guix-git/doc/guix.texi:5187
  2514. #, no-wrap
  2515. msgid "Creating a Channel"
  2516. msgstr "创建一个频道"
  2517. #. type: menuentry
  2518. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2519. msgid "How to write your custom channel."
  2520. msgstr ""
  2521. #. type: section
  2522. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2523. #: guix-git/doc/guix.texi:5253 guix-git/doc/guix.texi:5254
  2524. #, fuzzy, no-wrap
  2525. msgid "Package Modules in a Sub-directory"
  2526. msgstr "软件包模块"
  2527. #. type: menuentry
  2528. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2529. #, fuzzy
  2530. msgid "Specifying the channel's package modules location."
  2531. msgstr "指定如何构建软件包。"
  2532. #. type: section
  2533. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2534. #: guix-git/doc/guix.texi:5267 guix-git/doc/guix.texi:5268
  2535. #, no-wrap
  2536. msgid "Declaring Channel Dependencies"
  2537. msgstr ""
  2538. #. type: menuentry
  2539. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2540. msgid "How to depend on other channels."
  2541. msgstr ""
  2542. #. type: section
  2543. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2544. #: guix-git/doc/guix.texi:5309 guix-git/doc/guix.texi:5310
  2545. #, no-wrap
  2546. msgid "Specifying Channel Authorizations"
  2547. msgstr ""
  2548. #. type: menuentry
  2549. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2550. msgid "Defining channel authors authorizations."
  2551. msgstr ""
  2552. #. type: section
  2553. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2554. #: guix-git/doc/guix.texi:5410 guix-git/doc/guix.texi:5411
  2555. #, no-wrap
  2556. msgid "Primary URL"
  2557. msgstr ""
  2558. #. type: menuentry
  2559. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2560. msgid "Distinguishing mirror to original."
  2561. msgstr ""
  2562. #. type: section
  2563. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2564. #: guix-git/doc/guix.texi:5433 guix-git/doc/guix.texi:5434
  2565. #, no-wrap
  2566. msgid "Writing Channel News"
  2567. msgstr ""
  2568. #. type: menuentry
  2569. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:5006
  2570. msgid "Communicating information to channel's users."
  2571. msgstr ""
  2572. #. type: node
  2573. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2574. #: guix-git/doc/guix.texi:5524
  2575. #, no-wrap
  2576. msgid "Invoking guix environment"
  2577. msgstr "调用guix environment"
  2578. #. type: menuentry
  2579. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2580. msgid "Setting up development environments."
  2581. msgstr "设置开发环境。"
  2582. #. type: node
  2583. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2584. #: guix-git/doc/guix.texi:5884
  2585. #, no-wrap
  2586. msgid "Invoking guix pack"
  2587. msgstr "调用guix pack"
  2588. #. type: menuentry
  2589. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2590. msgid "Creating software bundles."
  2591. msgstr "创建软件bundle。"
  2592. #. type: section
  2593. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2594. #: guix-git/doc/guix.texi:6241 guix-git/doc/guix.texi:6242
  2595. #, no-wrap
  2596. msgid "The GCC toolchain"
  2597. msgstr ""
  2598. #. type: menuentry
  2599. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2600. msgid "Working with languages supported by GCC."
  2601. msgstr ""
  2602. #. type: node
  2603. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2604. #: guix-git/doc/guix.texi:6267
  2605. #, fuzzy, no-wrap
  2606. msgid "Invoking guix git authenticate"
  2607. msgstr "调用guix edit。"
  2608. #. type: menuentry
  2609. #: guix-git/doc/guix.texi:258 guix-git/doc/guix.texi:5522
  2610. #, fuzzy
  2611. msgid "Authenticating Git repositories."
  2612. msgstr "认证HTTPS服务器。"
  2613. #. type: section
  2614. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2615. #: guix-git/doc/guix.texi:6371 guix-git/doc/guix.texi:6372
  2616. #, no-wrap
  2617. msgid "Package Modules"
  2618. msgstr "软件包模块"
  2619. #. type: menuentry
  2620. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2621. msgid "Packages from the programmer's viewpoint."
  2622. msgstr "从程序员的角度看软件包。"
  2623. #. type: section
  2624. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:274
  2625. #: guix-git/doc/guix.texi:6369 guix-git/doc/guix.texi:6433
  2626. #: guix-git/doc/guix.texi:6434
  2627. #, no-wrap
  2628. msgid "Defining Packages"
  2629. msgstr "定义软件包"
  2630. #. type: menuentry
  2631. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2632. msgid "Defining new packages."
  2633. msgstr "定义新软件包。"
  2634. #. type: section
  2635. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2636. #: guix-git/doc/guix.texi:7001 guix-git/doc/guix.texi:7002
  2637. #, fuzzy, no-wrap
  2638. msgid "Defining Package Variants"
  2639. msgstr "定义软件包"
  2640. #. type: menuentry
  2641. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2642. #, fuzzy
  2643. msgid "Customizing packages."
  2644. msgstr "构建软件包。"
  2645. #. type: section
  2646. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2647. #: guix-git/doc/guix.texi:7233 guix-git/doc/guix.texi:7234
  2648. #, no-wrap
  2649. msgid "Build Systems"
  2650. msgstr "构建系统"
  2651. #. type: menuentry
  2652. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2653. msgid "Specifying how packages are built."
  2654. msgstr "指定如何构建软件包。"
  2655. #. type: subsection
  2656. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2657. #: guix-git/doc/guix.texi:8249 guix-git/doc/guix.texi:8250
  2658. #: guix-git/doc/guix.texi:8653
  2659. #, fuzzy, no-wrap
  2660. msgid "Build Phases"
  2661. msgstr "构建系统"
  2662. #. type: menuentry
  2663. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2664. msgid "Phases of the build process of a package."
  2665. msgstr ""
  2666. #. type: section
  2667. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2668. #: guix-git/doc/guix.texi:8443 guix-git/doc/guix.texi:8444
  2669. #, fuzzy, no-wrap
  2670. msgid "Build Utilities"
  2671. msgstr "工具"
  2672. #. type: menuentry
  2673. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2674. #, fuzzy
  2675. msgid "Helpers for your package definitions and more."
  2676. msgstr "导入软件包定义。"
  2677. #. type: section
  2678. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2679. #: guix-git/doc/guix.texi:8730 guix-git/doc/guix.texi:8731
  2680. #, no-wrap
  2681. msgid "The Store"
  2682. msgstr "仓库"
  2683. #. type: menuentry
  2684. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2685. msgid "Manipulating the package store."
  2686. msgstr "操纵软件包仓库。"
  2687. #. type: section
  2688. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2689. #: guix-git/doc/guix.texi:8883 guix-git/doc/guix.texi:8884
  2690. #, no-wrap
  2691. msgid "Derivations"
  2692. msgstr ""
  2693. #. type: menuentry
  2694. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2695. msgid "Low-level interface to package derivations."
  2696. msgstr "软件包derivation的底层接口。"
  2697. #. type: section
  2698. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2699. #: guix-git/doc/guix.texi:9077 guix-git/doc/guix.texi:9078
  2700. #, no-wrap
  2701. msgid "The Store Monad"
  2702. msgstr "仓库monad"
  2703. #. type: menuentry
  2704. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2705. msgid "Purely functional interface to the store."
  2706. msgstr "仓库的纯函数式接口。"
  2707. #. type: section
  2708. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2709. #: guix-git/doc/guix.texi:9396 guix-git/doc/guix.texi:9397
  2710. #, no-wrap
  2711. msgid "G-Expressions"
  2712. msgstr "G-表达式"
  2713. #. type: menuentry
  2714. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2715. msgid "Manipulating build expressions."
  2716. msgstr "操纵构建表达式。"
  2717. #. type: node
  2718. #: guix-git/doc/guix.texi:272 guix-git/doc/guix.texi:6369
  2719. #: guix-git/doc/guix.texi:10025
  2720. #, no-wrap
  2721. msgid "Invoking guix repl"
  2722. msgstr "调用guix repl"
  2723. #. type: menuentry
  2724. #: guix-git/doc/guix.texi:272
  2725. #, fuzzy
  2726. msgid "Programming Guix in Guile."
  2727. msgstr "编程索引"
  2728. #. type: node
  2729. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:6636
  2730. #: guix-git/doc/guix.texi:6639
  2731. #, no-wrap
  2732. msgid "package Reference"
  2733. msgstr "软件包引用"
  2734. #. type: menuentry
  2735. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:6636
  2736. msgid "The package data type."
  2737. msgstr "软件包数据类型。"
  2738. #. type: node
  2739. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:6636
  2740. #: guix-git/doc/guix.texi:6810
  2741. #, no-wrap
  2742. msgid "origin Reference"
  2743. msgstr "origin参考手册"
  2744. #. type: menuentry
  2745. #: guix-git/doc/guix.texi:277 guix-git/doc/guix.texi:6636
  2746. msgid "The origin data type."
  2747. msgstr "origin数据类型。"
  2748. #. type: node
  2749. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2750. #: guix-git/doc/guix.texi:10151
  2751. #, no-wrap
  2752. msgid "Invoking guix build"
  2753. msgstr "调用guix build"
  2754. #. type: menuentry
  2755. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2756. msgid "Building packages from the command line."
  2757. msgstr "用命令行构建软件包。"
  2758. #. type: node
  2759. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2760. #: guix-git/doc/guix.texi:10987
  2761. #, no-wrap
  2762. msgid "Invoking guix edit"
  2763. msgstr "调用guix edit。"
  2764. #. type: menuentry
  2765. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2766. msgid "Editing package definitions."
  2767. msgstr "编辑软件包定义。"
  2768. #. type: node
  2769. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2770. #: guix-git/doc/guix.texi:11017
  2771. #, no-wrap
  2772. msgid "Invoking guix download"
  2773. msgstr "调用guix download"
  2774. #. type: menuentry
  2775. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2776. msgid "Downloading a file and printing its hash."
  2777. msgstr "下载一个文件并打印它的hash。"
  2778. #. type: node
  2779. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2780. #: guix-git/doc/guix.texi:11075
  2781. #, no-wrap
  2782. msgid "Invoking guix hash"
  2783. msgstr "调用guix hash"
  2784. #. type: menuentry
  2785. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2786. msgid "Computing the cryptographic hash of a file."
  2787. msgstr "计算一个文件的密码学hash。"
  2788. #. type: node
  2789. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2790. #: guix-git/doc/guix.texi:11147
  2791. #, no-wrap
  2792. msgid "Invoking guix import"
  2793. msgstr "调用guix import"
  2794. #. type: menuentry
  2795. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2796. msgid "Importing package definitions."
  2797. msgstr "导入软件包定义。"
  2798. #. type: node
  2799. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2800. #: guix-git/doc/guix.texi:11602
  2801. #, no-wrap
  2802. msgid "Invoking guix refresh"
  2803. msgstr "调用guix refresh"
  2804. #. type: menuentry
  2805. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2806. msgid "Updating package definitions."
  2807. msgstr "更新软件包定义。"
  2808. #. type: node
  2809. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2810. #: guix-git/doc/guix.texi:11938
  2811. #, no-wrap
  2812. msgid "Invoking guix lint"
  2813. msgstr "调用guix lint"
  2814. #. type: menuentry
  2815. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2816. msgid "Finding errors in package definitions."
  2817. msgstr "从软件包定义里寻找错误。"
  2818. #. type: node
  2819. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2820. #: guix-git/doc/guix.texi:12107
  2821. #, no-wrap
  2822. msgid "Invoking guix size"
  2823. msgstr "调用guix size"
  2824. #. type: menuentry
  2825. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2826. msgid "Profiling disk usage."
  2827. msgstr "分析硬盘使用情况。"
  2828. #. type: node
  2829. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2830. #: guix-git/doc/guix.texi:12251
  2831. #, no-wrap
  2832. msgid "Invoking guix graph"
  2833. msgstr "调用guix graph"
  2834. #. type: menuentry
  2835. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2836. msgid "Visualizing the graph of packages."
  2837. msgstr "展示软件包的关系图。"
  2838. #. type: node
  2839. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2840. #: guix-git/doc/guix.texi:12518
  2841. #, no-wrap
  2842. msgid "Invoking guix publish"
  2843. msgstr "调用guix publish"
  2844. #. type: menuentry
  2845. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2846. msgid "Sharing substitutes."
  2847. msgstr "分享substitute。"
  2848. #. type: node
  2849. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2850. #: guix-git/doc/guix.texi:12777
  2851. #, no-wrap
  2852. msgid "Invoking guix challenge"
  2853. msgstr "调用guix challenge"
  2854. #. type: menuentry
  2855. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2856. msgid "Challenging substitute servers."
  2857. msgstr "挑战subtitute服务器。"
  2858. #. type: node
  2859. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2860. #: guix-git/doc/guix.texi:12960
  2861. #, no-wrap
  2862. msgid "Invoking guix copy"
  2863. msgstr "调用guix copy"
  2864. #. type: menuentry
  2865. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2866. msgid "Copying to and from a remote store."
  2867. msgstr "复制到远程的仓库,或从远程的仓库复制。"
  2868. #. type: node
  2869. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2870. #: guix-git/doc/guix.texi:13023
  2871. #, no-wrap
  2872. msgid "Invoking guix container"
  2873. msgstr "调用guix container"
  2874. #. type: menuentry
  2875. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2876. msgid "Process isolation."
  2877. msgstr "进程隔离。"
  2878. #. type: node
  2879. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2880. #: guix-git/doc/guix.texi:13077
  2881. #, no-wrap
  2882. msgid "Invoking guix weather"
  2883. msgstr "调用guix weather"
  2884. #. type: menuentry
  2885. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2886. msgid "Assessing substitute availability."
  2887. msgstr "评估substitute的可用性。"
  2888. #. type: node
  2889. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2890. #: guix-git/doc/guix.texi:13207
  2891. #, no-wrap
  2892. msgid "Invoking guix processes"
  2893. msgstr "调用guix processes"
  2894. #. type: menuentry
  2895. #: guix-git/doc/guix.texi:295 guix-git/doc/guix.texi:10149
  2896. msgid "Listing client processes."
  2897. msgstr "列出客户端进程。"
  2898. #. type: section
  2899. #: guix-git/doc/guix.texi:297 guix-git/doc/guix.texi:10152
  2900. #, no-wrap
  2901. msgid "Invoking @command{guix build}"
  2902. msgstr "调用@command{guix build}"
  2903. #. type: subsection
  2904. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2905. #: guix-git/doc/guix.texi:10205 guix-git/doc/guix.texi:10206
  2906. #, no-wrap
  2907. msgid "Common Build Options"
  2908. msgstr "普通的构建选项"
  2909. #. type: menuentry
  2910. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2911. msgid "Build options for most commands."
  2912. msgstr "大部分命令的构建选项。"
  2913. #. type: subsection
  2914. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2915. #: guix-git/doc/guix.texi:10360 guix-git/doc/guix.texi:10361
  2916. #, no-wrap
  2917. msgid "Package Transformation Options"
  2918. msgstr "软件包变换选项。"
  2919. #. type: menuentry
  2920. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2921. msgid "Creating variants of packages."
  2922. msgstr "创建软件包的变体。"
  2923. #. type: subsection
  2924. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2925. #: guix-git/doc/guix.texi:10669 guix-git/doc/guix.texi:10670
  2926. #, no-wrap
  2927. msgid "Additional Build Options"
  2928. msgstr "额外的构建选项"
  2929. #. type: menuentry
  2930. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2931. msgid "Options specific to 'guix build'."
  2932. msgstr "只属于'guix build'的选项。"
  2933. #. type: subsection
  2934. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2935. #: guix-git/doc/guix.texi:10907 guix-git/doc/guix.texi:10908
  2936. #, no-wrap
  2937. msgid "Debugging Build Failures"
  2938. msgstr "调试构建错误"
  2939. #. type: menuentry
  2940. #: guix-git/doc/guix.texi:302 guix-git/doc/guix.texi:10203
  2941. msgid "Real life packaging experience."
  2942. msgstr "真实的打包经验。"
  2943. #. type: section
  2944. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2945. #: guix-git/doc/guix.texi:13350 guix-git/doc/guix.texi:13351
  2946. #, no-wrap
  2947. msgid "Using the Configuration System"
  2948. msgstr "使用配置系统"
  2949. #. type: menuentry
  2950. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2951. msgid "Customizing your GNU system."
  2952. msgstr "定制你的GNU系统。"
  2953. #. type: node
  2954. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2955. #: guix-git/doc/guix.texi:13598
  2956. #, no-wrap
  2957. msgid "operating-system Reference"
  2958. msgstr "操作系统参考"
  2959. #. type: menuentry
  2960. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2961. msgid "Detail of operating-system declarations."
  2962. msgstr "操作系统声明详情。"
  2963. #. type: section
  2964. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2965. #: guix-git/doc/guix.texi:13850 guix-git/doc/guix.texi:13851
  2966. #, no-wrap
  2967. msgid "File Systems"
  2968. msgstr "文件系统"
  2969. #. type: menuentry
  2970. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2971. msgid "Configuring file system mounts."
  2972. msgstr "设置文件系统挂载。"
  2973. #. type: section
  2974. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2975. #: guix-git/doc/guix.texi:14173 guix-git/doc/guix.texi:14174
  2976. #, no-wrap
  2977. msgid "Mapped Devices"
  2978. msgstr "映射的设备"
  2979. #. type: menuentry
  2980. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2981. msgid "Block device extra processing."
  2982. msgstr "块设备额外的处理。"
  2983. #. type: section
  2984. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2985. #: guix-git/doc/guix.texi:14321 guix-git/doc/guix.texi:14322
  2986. #, no-wrap
  2987. msgid "User Accounts"
  2988. msgstr "用户帐号"
  2989. #. type: menuentry
  2990. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  2991. msgid "Specifying user accounts."
  2992. msgstr "指定用户帐号。"
  2993. #. type: section
  2994. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:2259
  2995. #: guix-git/doc/guix.texi:13348 guix-git/doc/guix.texi:14497
  2996. #: guix-git/doc/guix.texi:14498
  2997. #, no-wrap
  2998. msgid "Keyboard Layout"
  2999. msgstr "键盘布局"
  3000. #. type: menuentry
  3001. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3002. msgid "How the system interprets key strokes."
  3003. msgstr "系统怎样理解按键。"
  3004. #. type: section
  3005. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:1786
  3006. #: guix-git/doc/guix.texi:13348 guix-git/doc/guix.texi:14643
  3007. #: guix-git/doc/guix.texi:14644
  3008. #, no-wrap
  3009. msgid "Locales"
  3010. msgstr "区域"
  3011. #. type: menuentry
  3012. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3013. msgid "Language and cultural convention settings."
  3014. msgstr "语言和文化惯例设置。"
  3015. #. type: section
  3016. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:324
  3017. #: guix-git/doc/guix.texi:13348 guix-git/doc/guix.texi:14783
  3018. #: guix-git/doc/guix.texi:14784
  3019. #, no-wrap
  3020. msgid "Services"
  3021. msgstr "服务"
  3022. #. type: menuentry
  3023. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3024. msgid "Specifying system services."
  3025. msgstr "指定系统服务。"
  3026. #. type: section
  3027. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3028. #: guix-git/doc/guix.texi:31980 guix-git/doc/guix.texi:31981
  3029. #, no-wrap
  3030. msgid "Setuid Programs"
  3031. msgstr "setuid程序"
  3032. #. type: menuentry
  3033. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3034. msgid "Programs running with root privileges."
  3035. msgstr "以root权限运行的程序。"
  3036. #. type: section
  3037. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:1935
  3038. #: guix-git/doc/guix.texi:13348 guix-git/doc/guix.texi:32026
  3039. #: guix-git/doc/guix.texi:32027
  3040. #, no-wrap
  3041. msgid "X.509 Certificates"
  3042. msgstr "X.509证书"
  3043. #. type: menuentry
  3044. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3045. msgid "Authenticating HTTPS servers."
  3046. msgstr "认证HTTPS服务器。"
  3047. #. type: section
  3048. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:1829
  3049. #: guix-git/doc/guix.texi:13348 guix-git/doc/guix.texi:32089
  3050. #: guix-git/doc/guix.texi:32090
  3051. #, no-wrap
  3052. msgid "Name Service Switch"
  3053. msgstr "Name Service Switch"
  3054. #. type: menuentry
  3055. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3056. msgid "Configuring libc's name service switch."
  3057. msgstr "设置libc的name service switch。"
  3058. #. type: section
  3059. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3060. #: guix-git/doc/guix.texi:32227 guix-git/doc/guix.texi:32228
  3061. #, no-wrap
  3062. msgid "Initial RAM Disk"
  3063. msgstr "初始的内存虚拟硬盘"
  3064. #. type: menuentry
  3065. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3066. msgid "Linux-Libre bootstrapping."
  3067. msgstr "Linux-Libre引导。"
  3068. #. type: section
  3069. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3070. #: guix-git/doc/guix.texi:32403 guix-git/doc/guix.texi:32404
  3071. #, no-wrap
  3072. msgid "Bootloader Configuration"
  3073. msgstr "引导设置"
  3074. #. type: menuentry
  3075. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3076. msgid "Configuring the boot loader."
  3077. msgstr "设置引导程序。"
  3078. #. type: node
  3079. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3080. #: guix-git/doc/guix.texi:32697
  3081. #, no-wrap
  3082. msgid "Invoking guix system"
  3083. msgstr "调用guix system"
  3084. #. type: menuentry
  3085. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3086. msgid "Instantiating a system configuration."
  3087. msgstr "实例化一个系统配置。"
  3088. #. type: node
  3089. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3090. #: guix-git/doc/guix.texi:33282
  3091. #, no-wrap
  3092. msgid "Invoking guix deploy"
  3093. msgstr "调用 guix deploy"
  3094. #. type: menuentry
  3095. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3096. #, fuzzy
  3097. msgid "Deploying a system configuration to a remote host."
  3098. msgstr "实例化一个系统配置。"
  3099. #. type: node
  3100. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3101. #: guix-git/doc/guix.texi:33488
  3102. #, no-wrap
  3103. msgid "Running Guix in a VM"
  3104. msgstr "在虚拟机里运行Guix"
  3105. #. type: menuentry
  3106. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3107. msgid "How to run Guix System in a virtual machine."
  3108. msgstr "怎样在虚拟机里运行Guix。"
  3109. #. type: section
  3110. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:359
  3111. #: guix-git/doc/guix.texi:13348 guix-git/doc/guix.texi:33618
  3112. #: guix-git/doc/guix.texi:33619
  3113. #, no-wrap
  3114. msgid "Defining Services"
  3115. msgstr "定义服务"
  3116. #. type: menuentry
  3117. #: guix-git/doc/guix.texi:322 guix-git/doc/guix.texi:13348
  3118. msgid "Adding new service definitions."
  3119. msgstr "添加新的服务定义。"
  3120. #. type: subsection
  3121. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3122. #: guix-git/doc/guix.texi:14868 guix-git/doc/guix.texi:14869
  3123. #, no-wrap
  3124. msgid "Base Services"
  3125. msgstr "基础服务"
  3126. #. type: menuentry
  3127. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3128. msgid "Essential system services."
  3129. msgstr "必要的系统服务。"
  3130. #. type: subsection
  3131. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3132. #: guix-git/doc/guix.texi:15784 guix-git/doc/guix.texi:15785
  3133. #, no-wrap
  3134. msgid "Scheduled Job Execution"
  3135. msgstr "执行计划任务"
  3136. #. type: menuentry
  3137. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3138. msgid "The mcron service."
  3139. msgstr "mcron服务。"
  3140. #. type: subsection
  3141. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3142. #: guix-git/doc/guix.texi:15925 guix-git/doc/guix.texi:15926
  3143. #, no-wrap
  3144. msgid "Log Rotation"
  3145. msgstr "日志轮替"
  3146. #. type: menuentry
  3147. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3148. msgid "The rottlog service."
  3149. msgstr "rottlog服务。"
  3150. #. type: subsection
  3151. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3152. #: guix-git/doc/guix.texi:16038 guix-git/doc/guix.texi:16039
  3153. #, no-wrap
  3154. msgid "Networking Services"
  3155. msgstr "网络服务"
  3156. #. type: menuentry
  3157. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3158. msgid "Network setup, SSH daemon, etc."
  3159. msgstr "网络设置,SSH后台进程,等"
  3160. #. type: subsection
  3161. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3162. #: guix-git/doc/guix.texi:17608 guix-git/doc/guix.texi:17609
  3163. #, no-wrap
  3164. msgid "Unattended Upgrades"
  3165. msgstr ""
  3166. #. type: menuentry
  3167. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3168. msgid "Automated system upgrades."
  3169. msgstr ""
  3170. #. type: subsection
  3171. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3172. #: guix-git/doc/guix.texi:17746 guix-git/doc/guix.texi:17747
  3173. #, no-wrap
  3174. msgid "X Window"
  3175. msgstr "X窗口"
  3176. #. type: menuentry
  3177. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3178. msgid "Graphical display."
  3179. msgstr "图形显示器。"
  3180. #. type: subsection
  3181. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3182. #: guix-git/doc/guix.texi:18123 guix-git/doc/guix.texi:18124
  3183. #, no-wrap
  3184. msgid "Printing Services"
  3185. msgstr "打印服务"
  3186. #. type: menuentry
  3187. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3188. msgid "Local and remote printer support."
  3189. msgstr "本地和远程打印机的支持。"
  3190. #. type: subsection
  3191. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3192. #: guix-git/doc/guix.texi:18976 guix-git/doc/guix.texi:18977
  3193. #, no-wrap
  3194. msgid "Desktop Services"
  3195. msgstr "桌面服务"
  3196. #. type: menuentry
  3197. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3198. msgid "D-Bus and desktop services."
  3199. msgstr "D-Bus和桌面服务。"
  3200. #. type: subsection
  3201. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3202. #: guix-git/doc/guix.texi:19494 guix-git/doc/guix.texi:19495
  3203. #, no-wrap
  3204. msgid "Sound Services"
  3205. msgstr "声音服务"
  3206. #. type: menuentry
  3207. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3208. msgid "ALSA and Pulseaudio services."
  3209. msgstr "ALSA和Pulseaudio服务。"
  3210. #. type: subsection
  3211. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3212. #: guix-git/doc/guix.texi:19634 guix-git/doc/guix.texi:19635
  3213. #, no-wrap
  3214. msgid "Database Services"
  3215. msgstr "数据库服务"
  3216. #. type: menuentry
  3217. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3218. msgid "SQL databases, key-value stores, etc."
  3219. msgstr "SQL数据库,键值仓库,等"
  3220. #. type: subsection
  3221. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3222. #: guix-git/doc/guix.texi:19966 guix-git/doc/guix.texi:19967
  3223. #, no-wrap
  3224. msgid "Mail Services"
  3225. msgstr "邮件服务"
  3226. #. type: menuentry
  3227. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3228. msgid "IMAP, POP3, SMTP, and all that."
  3229. msgstr "IMAP,POP3,SMTP,等"
  3230. #. type: subsection
  3231. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3232. #: guix-git/doc/guix.texi:21782 guix-git/doc/guix.texi:21783
  3233. #, no-wrap
  3234. msgid "Messaging Services"
  3235. msgstr "消息服务"
  3236. #. type: menuentry
  3237. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3238. msgid "Messaging services."
  3239. msgstr "消息服务。"
  3240. #. type: subsection
  3241. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3242. #: guix-git/doc/guix.texi:22285 guix-git/doc/guix.texi:22286
  3243. #, no-wrap
  3244. msgid "Telephony Services"
  3245. msgstr "电话服务"
  3246. #. type: menuentry
  3247. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3248. msgid "Telephony services."
  3249. msgstr "电话服务。"
  3250. #. type: subsection
  3251. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3252. #: guix-git/doc/guix.texi:23288 guix-git/doc/guix.texi:23289
  3253. #, no-wrap
  3254. msgid "Monitoring Services"
  3255. msgstr "监控服务"
  3256. #. type: menuentry
  3257. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3258. msgid "Monitoring services."
  3259. msgstr "监控服务。"
  3260. #. type: subsection
  3261. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3262. #: guix-git/doc/guix.texi:23799 guix-git/doc/guix.texi:23800
  3263. #, no-wrap
  3264. msgid "Kerberos Services"
  3265. msgstr "Kerberos服务"
  3266. #. type: menuentry
  3267. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3268. msgid "Kerberos services."
  3269. msgstr "Kerberos服务。"
  3270. #. type: subsection
  3271. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3272. #: guix-git/doc/guix.texi:23925 guix-git/doc/guix.texi:23926
  3273. #, no-wrap
  3274. msgid "LDAP Services"
  3275. msgstr ""
  3276. #. type: menuentry
  3277. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3278. msgid "LDAP services."
  3279. msgstr ""
  3280. #. type: subsection
  3281. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3282. #: guix-git/doc/guix.texi:24404 guix-git/doc/guix.texi:24405
  3283. #, no-wrap
  3284. msgid "Web Services"
  3285. msgstr "Web服务"
  3286. #. type: menuentry
  3287. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3288. msgid "Web servers."
  3289. msgstr "Web服务。"
  3290. #. type: subsection
  3291. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3292. #: guix-git/doc/guix.texi:25605 guix-git/doc/guix.texi:25606
  3293. #, no-wrap
  3294. msgid "Certificate Services"
  3295. msgstr "证书服务"
  3296. #. type: menuentry
  3297. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3298. msgid "TLS certificates via Let's Encrypt."
  3299. msgstr "Let's Encrypt TLS证书。"
  3300. #. type: subsection
  3301. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3302. #: guix-git/doc/guix.texi:25778 guix-git/doc/guix.texi:25779
  3303. #, no-wrap
  3304. msgid "DNS Services"
  3305. msgstr "DNS服务"
  3306. #. type: menuentry
  3307. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3308. msgid "DNS daemons."
  3309. msgstr "DNS后台进程。"
  3310. #. type: subsection
  3311. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3312. #: guix-git/doc/guix.texi:26526 guix-git/doc/guix.texi:26527
  3313. #, no-wrap
  3314. msgid "VPN Services"
  3315. msgstr "VPN服务"
  3316. #. type: menuentry
  3317. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3318. msgid "VPN daemons."
  3319. msgstr "VPN后台进程。"
  3320. #. type: subsection
  3321. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3322. #: guix-git/doc/guix.texi:26981 guix-git/doc/guix.texi:26982
  3323. #, no-wrap
  3324. msgid "Network File System"
  3325. msgstr "网络文件系统"
  3326. #. type: menuentry
  3327. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3328. msgid "NFS related services."
  3329. msgstr "网络文件系统相关的服务。"
  3330. #. type: subsection
  3331. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3332. #: guix-git/doc/guix.texi:27177 guix-git/doc/guix.texi:27178
  3333. #, no-wrap
  3334. msgid "Continuous Integration"
  3335. msgstr "持续集成"
  3336. #. type: menuentry
  3337. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3338. #, fuzzy
  3339. msgid "Cuirass and Laminar services."
  3340. msgstr "Cuirass服务。"
  3341. #. type: subsection
  3342. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3343. #: guix-git/doc/guix.texi:27455 guix-git/doc/guix.texi:27456
  3344. #, no-wrap
  3345. msgid "Power Management Services"
  3346. msgstr "电源管理服务"
  3347. #. type: menuentry
  3348. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3349. msgid "Extending battery life."
  3350. msgstr "延长电池寿命。"
  3351. #. type: subsection
  3352. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3353. #: guix-git/doc/guix.texi:27989 guix-git/doc/guix.texi:27990
  3354. #, no-wrap
  3355. msgid "Audio Services"
  3356. msgstr "音频服务"
  3357. #. type: menuentry
  3358. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3359. msgid "The MPD."
  3360. msgstr "MPD。"
  3361. #. type: subsection
  3362. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3363. #: guix-git/doc/guix.texi:28108 guix-git/doc/guix.texi:28109
  3364. #, no-wrap
  3365. msgid "Virtualization Services"
  3366. msgstr "虚拟化服务"
  3367. #. type: menuentry
  3368. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3369. msgid "Virtualization services."
  3370. msgstr "虚拟化服务。"
  3371. #. type: subsection
  3372. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3373. #: guix-git/doc/guix.texi:29722 guix-git/doc/guix.texi:29723
  3374. #, no-wrap
  3375. msgid "Version Control Services"
  3376. msgstr "版本控制服务"
  3377. #. type: menuentry
  3378. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3379. msgid "Providing remote access to Git repositories."
  3380. msgstr "远程访问Git仓库。"
  3381. #. type: subsection
  3382. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3383. #: guix-git/doc/guix.texi:30914 guix-git/doc/guix.texi:30915
  3384. #, no-wrap
  3385. msgid "Game Services"
  3386. msgstr "游戏服务"
  3387. #. type: menuentry
  3388. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3389. msgid "Game servers."
  3390. msgstr "游戏服务器。"
  3391. #. type: subsection
  3392. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3393. #: guix-git/doc/guix.texi:30946 guix-git/doc/guix.texi:30947
  3394. #, fuzzy, no-wrap
  3395. msgid "PAM Mount Service"
  3396. msgstr "声音服务"
  3397. #. type: menuentry
  3398. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3399. msgid "Service to mount volumes when logging in."
  3400. msgstr ""
  3401. #. type: subsection
  3402. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3403. #: guix-git/doc/guix.texi:31029 guix-git/doc/guix.texi:31030
  3404. #, fuzzy, no-wrap
  3405. msgid "Guix Services"
  3406. msgstr "音频服务"
  3407. #. type: menuentry
  3408. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3409. msgid "Services relating specifically to Guix."
  3410. msgstr ""
  3411. #. type: subsection
  3412. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3413. #: guix-git/doc/guix.texi:31304 guix-git/doc/guix.texi:31305
  3414. #, fuzzy, no-wrap
  3415. msgid "Linux Services"
  3416. msgstr "邮件服务"
  3417. #. type: menuentry
  3418. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3419. msgid "Services tied to the Linux kernel."
  3420. msgstr ""
  3421. #. type: subsection
  3422. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3423. #: guix-git/doc/guix.texi:31451 guix-git/doc/guix.texi:31452
  3424. #, fuzzy, no-wrap
  3425. msgid "Hurd Services"
  3426. msgstr "声音服务"
  3427. #. type: menuentry
  3428. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3429. msgid "Services specific for a Hurd System."
  3430. msgstr ""
  3431. #. type: subsection
  3432. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3433. #: guix-git/doc/guix.texi:31493 guix-git/doc/guix.texi:31494
  3434. #, no-wrap
  3435. msgid "Miscellaneous Services"
  3436. msgstr "其它各种服务"
  3437. #. type: menuentry
  3438. #: guix-git/doc/guix.texi:357 guix-git/doc/guix.texi:14866
  3439. msgid "Other services."
  3440. msgstr "其它服务。"
  3441. #. type: subsection
  3442. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3443. #: guix-git/doc/guix.texi:33632 guix-git/doc/guix.texi:33633
  3444. #, no-wrap
  3445. msgid "Service Composition"
  3446. msgstr "合成服务"
  3447. #. type: menuentry
  3448. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3449. msgid "The model for composing services."
  3450. msgstr "服务合成的模型。"
  3451. #. type: subsection
  3452. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3453. #: guix-git/doc/guix.texi:33688 guix-git/doc/guix.texi:33689
  3454. #, no-wrap
  3455. msgid "Service Types and Services"
  3456. msgstr "服务类型和服务"
  3457. #. type: menuentry
  3458. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3459. msgid "Types and services."
  3460. msgstr "类型和服务。"
  3461. #. type: subsection
  3462. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3463. #: guix-git/doc/guix.texi:33825 guix-git/doc/guix.texi:33826
  3464. #, no-wrap
  3465. msgid "Service Reference"
  3466. msgstr "服务参考"
  3467. #. type: menuentry
  3468. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3469. msgid "API reference."
  3470. msgstr "API参考。"
  3471. #. type: subsection
  3472. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3473. #: guix-git/doc/guix.texi:34116 guix-git/doc/guix.texi:34117
  3474. #, no-wrap
  3475. msgid "Shepherd Services"
  3476. msgstr "Shepherd服务"
  3477. #. type: menuentry
  3478. #: guix-git/doc/guix.texi:364 guix-git/doc/guix.texi:33630
  3479. msgid "A particular type of service."
  3480. msgstr "一种特别的服务。"
  3481. #. type: section
  3482. #: guix-git/doc/guix.texi:369 guix-git/doc/guix.texi:34417
  3483. #: guix-git/doc/guix.texi:34419 guix-git/doc/guix.texi:34420
  3484. #, no-wrap
  3485. msgid "Separate Debug Info"
  3486. msgstr ""
  3487. #. type: menuentry
  3488. #: guix-git/doc/guix.texi:369 guix-git/doc/guix.texi:34417
  3489. #, fuzzy
  3490. msgid "Installing 'debug' outputs."
  3491. msgstr "安装调试文件"
  3492. #. type: section
  3493. #: guix-git/doc/guix.texi:369 guix-git/doc/guix.texi:34417
  3494. #: guix-git/doc/guix.texi:34478 guix-git/doc/guix.texi:34479
  3495. #, no-wrap
  3496. msgid "Rebuilding Debug Info"
  3497. msgstr ""
  3498. #. type: menuentry
  3499. #: guix-git/doc/guix.texi:369 guix-git/doc/guix.texi:34417
  3500. msgid "Building missing debug info."
  3501. msgstr ""
  3502. #. type: node
  3503. #: guix-git/doc/guix.texi:374 guix-git/doc/guix.texi:34695
  3504. #: guix-git/doc/guix.texi:34697
  3505. #, no-wrap
  3506. msgid "Reduced Binary Seed Bootstrap"
  3507. msgstr ""
  3508. #. type: menuentry
  3509. #: guix-git/doc/guix.texi:374 guix-git/doc/guix.texi:34695
  3510. msgid "A Bootstrap worthy of GNU."
  3511. msgstr ""
  3512. #. type: section
  3513. #: guix-git/doc/guix.texi:374 guix-git/doc/guix.texi:34695
  3514. #: guix-git/doc/guix.texi:34772 guix-git/doc/guix.texi:34773
  3515. #, no-wrap
  3516. msgid "Preparing to Use the Bootstrap Binaries"
  3517. msgstr ""
  3518. #. type: menuentry
  3519. #: guix-git/doc/guix.texi:374 guix-git/doc/guix.texi:34695
  3520. msgid "Building that what matters most."
  3521. msgstr ""
  3522. #. type: cindex
  3523. #: guix-git/doc/guix.texi:382
  3524. #, no-wrap
  3525. msgid "purpose"
  3526. msgstr "目的"
  3527. #. type: Plain text
  3528. #: guix-git/doc/guix.texi:390
  3529. 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."
  3530. msgstr "GNU Guix@footnote{``Guix''读做``geeks'',或``ɡiːks''(国际音标)}是GNU系统的包管理器和发行版。Guix让无特权的用户可以轻松地安装,升级,或删除软件包,回滚到前一个软件包集合,从源代码构建软件包,及辅助软件环境的创建和维护。"
  3531. #. type: cindex
  3532. #: guix-git/doc/guix.texi:391 guix-git/doc/guix.texi:466
  3533. #, no-wrap
  3534. msgid "Guix System"
  3535. msgstr "Guix系统"
  3536. #. type: cindex
  3537. #: guix-git/doc/guix.texi:392
  3538. #, no-wrap
  3539. msgid "GuixSD, now Guix System"
  3540. msgstr "GuixSD,现在称为Guix系统"
  3541. #. type: cindex
  3542. #: guix-git/doc/guix.texi:393
  3543. #, no-wrap
  3544. msgid "Guix System Distribution, now Guix System"
  3545. msgstr "Guix系统发行版,现在称为Guix系统"
  3546. #. type: Plain text
  3547. #: guix-git/doc/guix.texi:402
  3548. 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}."
  3549. msgstr "你可以在现有的GNU/Linux发行版上安装GNU@tie{}Guix(@pxref{Installation}),Guix可以补充已有的工具,并且不会和它们产生冲突。或者你可以把它当作独立的操作系统发行版(@dfn{Guix@tie{}系统}@footnote{我们以前把Guix系统称为``Guix系统发行版''或``GuixSD''。我们现在觉得把一切都统一在``Guix''的旗帜下更合理,因为,毕竟即使在别的发行版上你也可以随时通过@command{guix system}命令获得Guix系统})。@xref{GNU Distribution}."
  3550. #. type: cindex
  3551. #: guix-git/doc/guix.texi:411
  3552. #, no-wrap
  3553. msgid "user interfaces"
  3554. msgstr "用户界面"
  3555. #. type: Plain text
  3556. #: guix-git/doc/guix.texi:417
  3557. #, fuzzy
  3558. 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})."
  3559. msgstr "Guix提供了命令行软件包管理接口(@pxref{Package Management}),辅助软件开发的工具(@pxref{Development}),高级用法的命令行接口(@pxref{Utilities}),以及Scheme编程语言接口(@pxref{Programming Interface})。"
  3560. #. type: cindex
  3561. #: guix-git/doc/guix.texi:417
  3562. #, no-wrap
  3563. msgid "build daemon"
  3564. msgstr "构建后台进程"
  3565. #. type: Plain text
  3566. #: guix-git/doc/guix.texi:421
  3567. 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})."
  3568. msgstr "@dfn{构建后台进程}为用户构建软件包(@pxref{Setting Up the Daemon}),及从授权的源(@pxref{Substitutes})下载预构建的二进制文件。"
  3569. #. type: cindex
  3570. #: guix-git/doc/guix.texi:422
  3571. #, no-wrap
  3572. msgid "extensibility of the distribution"
  3573. msgstr "发行版的扩展性"
  3574. #. type: cindex
  3575. #: guix-git/doc/guix.texi:423 guix-git/doc/guix.texi:6393
  3576. #, no-wrap
  3577. msgid "customization, of packages"
  3578. msgstr "定制软件包"
  3579. #. type: Plain text
  3580. #: guix-git/doc/guix.texi:432
  3581. 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})."
  3582. 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})。"
  3583. #. type: cindex
  3584. #: guix-git/doc/guix.texi:433
  3585. #, no-wrap
  3586. msgid "functional package management"
  3587. msgstr "函数式包管理器"
  3588. #. type: cindex
  3589. #: guix-git/doc/guix.texi:434
  3590. #, no-wrap
  3591. msgid "isolation"
  3592. msgstr "隔离"
  3593. #. type: Plain text
  3594. #: guix-git/doc/guix.texi:449
  3595. 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."
  3596. msgstr "在底层,Guix实现了由Nix(@pxref{Acknowledgments})开创的@dfn{函数式包管理器}。在Guix里,软件包构建和安装过程被视为数学意义上的@emph{函数}。函数获取输入,如构建脚本、编译器和库,并且返回一个安装好的软件包。作为一个纯函数,它的结果只取决于它的输入--例如,它不能引用没有作为显式输入传入的软件和脚本。当传入特定的输入时,一个构建函数总是得到相同的结果。它不能以任何方式修改运行系统的环境,例如,它不能创建,修改,或删除构建和安装环境之外的文件夹。这是通过在隔离的环境(@dfn{容器})里运行构建进程实现的,在这个环境里只能访问到显式的输入。"
  3597. #. type: cindex
  3598. #: guix-git/doc/guix.texi:450 guix-git/doc/guix.texi:8733
  3599. #, no-wrap
  3600. msgid "store"
  3601. msgstr "仓库"
  3602. #. type: Plain text
  3603. #: guix-git/doc/guix.texi:457
  3604. 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."
  3605. msgstr "软件包构建函数的结果被@dfn{缓存}在文件系统里的一个叫做@dfn{仓库}(@pxref{The Store})的特殊文件夹内。每个软件包都被安装在仓库(默认在@file{/gnu/store})里的一个独立的文件夹内。这个文件夹的名字含有用于构建这个软件包的所有输入的hash,所以,修改输入会得到一个不同的文件夹名。"
  3606. #. type: Plain text
  3607. #: guix-git/doc/guix.texi:461
  3608. 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})."
  3609. msgstr "这种手段是实现Guix的突出功能的基础:对事务型软件包升级和回滚的支持,每个用户独立的安装,软件包垃圾回收@pxref{Features}。"
  3610. #. type: Plain text
  3611. #: guix-git/doc/guix.texi:476
  3612. 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."
  3613. msgstr "Guix提供了一个GNU系统发行版,这个发新版只包含自由软件@footnote{这里的“自由”指的是@url{https://www.gnu.org/philosophy/free-sw.html,软件提供给用户的自由}。}。这个发行版可以独立安装(@pxref{System Installation}),但是把Guix安装为一个已经安装好的GNU/Linux系统的包管理器也是可行的(@pxref{Installation})。当我们需要区分这两者时,我们把独立的发行版称为“Guix系统”。"
  3614. #. type: Plain text
  3615. #: guix-git/doc/guix.texi:482
  3616. 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}):"
  3617. msgstr "这个发行版提供了GNU核心软件包,如libc、gcc和Binutils,以及很多GNU和非GNU应用程序。可用的软件包的完整列表可以在@url{https://www.gnu.org/software/guix/packages,on-line}浏览,或者通过运行@command{guix package}(@pxref{Invoking guix package})获得:"
  3618. #. type: example
  3619. #: guix-git/doc/guix.texi:485
  3620. #, no-wrap
  3621. msgid "guix package --list-available\n"
  3622. msgstr "guix package --list-available\n"
  3623. #. type: Plain text
  3624. #: guix-git/doc/guix.texi:491
  3625. 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."
  3626. msgstr "我们的目标是提供一个基于Linux和其它GNU变体的可用的100%自由的软件发行版,我们的重点是推广和紧密集成GNU组件,以及强调帮助用户行使那些自由的程序和工具。"
  3627. #. type: Plain text
  3628. #: guix-git/doc/guix.texi:493
  3629. msgid "Packages are currently available on the following platforms:"
  3630. msgstr "目前这些平台提供软件包:"
  3631. #. type: item
  3632. #: guix-git/doc/guix.texi:496 guix-git/doc/guix.texi:2106
  3633. #, no-wrap
  3634. msgid "x86_64-linux"
  3635. msgstr "x86_64-linux"
  3636. #. type: table
  3637. #: guix-git/doc/guix.texi:498
  3638. msgid "Intel/AMD @code{x86_64} architecture, Linux-Libre kernel."
  3639. msgstr "Intel/AMD @code{x86_64} 架构,Linux-Libre 内核。"
  3640. #. type: item
  3641. #: guix-git/doc/guix.texi:499 guix-git/doc/guix.texi:2109
  3642. #, no-wrap
  3643. msgid "i686-linux"
  3644. msgstr "i686-linux"
  3645. #. type: table
  3646. #: guix-git/doc/guix.texi:501
  3647. msgid "Intel 32-bit architecture (IA32), Linux-Libre kernel."
  3648. msgstr "Intel 32 位架构(IA32),Linux-Libre 内核。"
  3649. #. type: item
  3650. #: guix-git/doc/guix.texi:502
  3651. #, no-wrap
  3652. msgid "armhf-linux"
  3653. msgstr "armhf-linux"
  3654. #. type: table
  3655. #: guix-git/doc/guix.texi:506
  3656. msgid "ARMv7-A architecture with hard float, Thumb-2 and NEON, using the EABI hard-float application binary interface (ABI), and Linux-Libre kernel."
  3657. msgstr "ARMv7-A架构,带硬件浮点数、Thumb-2和NEON扩展,EABI硬件浮点数应用二进制接口(ABI),和Linux-Libre内核。"
  3658. #. type: item
  3659. #: guix-git/doc/guix.texi:507
  3660. #, no-wrap
  3661. msgid "aarch64-linux"
  3662. msgstr "aarch64-linux"
  3663. #. type: table
  3664. #: guix-git/doc/guix.texi:509
  3665. #, fuzzy
  3666. msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel."
  3667. msgstr "小端序64位MIPS处理器,龙芯系列,n32 ABI,Linux-Libre内核。"
  3668. #. type: item
  3669. #: guix-git/doc/guix.texi:510
  3670. #, no-wrap
  3671. msgid "i586-gnu"
  3672. msgstr ""
  3673. #. type: table
  3674. #: guix-git/doc/guix.texi:513
  3675. msgid "@uref{https://hurd.gnu.org, GNU/Hurd} on the Intel 32-bit architecture (IA32)."
  3676. msgstr ""
  3677. #. type: table
  3678. #: guix-git/doc/guix.texi:519
  3679. 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!"
  3680. msgstr ""
  3681. #. type: item
  3682. #: guix-git/doc/guix.texi:520
  3683. #, fuzzy, no-wrap
  3684. msgid "mips64el-linux (deprecated)"
  3685. msgstr "mips64el-linux"
  3686. #. type: table
  3687. #: guix-git/doc/guix.texi:526
  3688. 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."
  3689. msgstr ""
  3690. #. type: item
  3691. #: guix-git/doc/guix.texi:527
  3692. #, fuzzy, no-wrap
  3693. msgid "powerpc64le-linux"
  3694. msgstr "aarch64-linux"
  3695. #. type: table
  3696. #: guix-git/doc/guix.texi:537
  3697. 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!"
  3698. msgstr ""
  3699. #. type: Plain text
  3700. #: guix-git/doc/guix.texi:547
  3701. 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."
  3702. msgstr "在Guix系统里,你@emph{声明}操作系统所有方面的配置,然后Guix以事务型的,可重复的,和无状态的方式解决实例化配置的问题(@pxref{System Configuration})。Guix系统使用Linux-Libre内核,Shepherd初始化系统@pxref{Introduction,,, shepherd, GNU Shepherd用户手册},知名的GNU工具和工具链,以及你可选的图形界面环境和系统服务。"
  3703. #. type: Plain text
  3704. #: guix-git/doc/guix.texi:550
  3705. #, fuzzy
  3706. msgid "Guix System is available on all the above platforms except @code{mips64el-linux} and @code{powerpc64le-linux}."
  3707. msgstr "Guix系统在上面所有的平台上都可用,除了@code{mips64el-linux}。"
  3708. #. type: Plain text
  3709. #: guix-git/doc/guix.texi:554
  3710. msgid "For information on porting to other architectures or kernels, @pxref{Porting}."
  3711. msgstr "关于移植到其它架构或内核的信息,@pxref{Porting}。"
  3712. #. type: Plain text
  3713. #: guix-git/doc/guix.texi:557
  3714. msgid "Building this distribution is a cooperative effort, and you are invited to join! @xref{Contributing}, for information about how you can help."
  3715. msgstr "构建这个发行版需要努力合作,欢迎你加入!关于你可以怎样提供帮助的信息,@xref{Contributing}。"
  3716. #. type: cindex
  3717. #: guix-git/doc/guix.texi:563
  3718. #, no-wrap
  3719. msgid "installing Guix"
  3720. msgstr "安装Guix"
  3721. #. type: quotation
  3722. #: guix-git/doc/guix.texi:575
  3723. 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."
  3724. 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用户身份运行。"
  3725. #. type: cindex
  3726. #: guix-git/doc/guix.texi:577 guix-git/doc/guix.texi:1781
  3727. #, no-wrap
  3728. msgid "foreign distro"
  3729. msgstr "别的发行版"
  3730. #. type: cindex
  3731. #: guix-git/doc/guix.texi:578
  3732. #, no-wrap
  3733. msgid "directories related to foreign distro"
  3734. msgstr "和foreign distro相关的文件夹"
  3735. #. type: Plain text
  3736. #: guix-git/doc/guix.texi:583
  3737. 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."
  3738. msgstr "在foreign distro上安装时,GNU@tie{}Guix可以在不引起冲突的前提下补充现有的工具。它的数据只存放在两个文件夹里,通常是@file{/gnu/store}和@file{/var/guix};系统上的其它文件,如@file{/etc},不会被修改。"
  3739. #. type: Plain text
  3740. #: guix-git/doc/guix.texi:586
  3741. msgid "Once installed, Guix can be updated by running @command{guix pull} (@pxref{Invoking guix pull})."
  3742. msgstr "一旦安装好了,可以通过运行@command{guix pull}升级Guix(@pxref{Invoking guix pull})。"
  3743. #. type: Plain text
  3744. #: guix-git/doc/guix.texi:591
  3745. 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."
  3746. msgstr "如果你希望手动执行安装步骤,或者想改变安装步骤,接下来这些小节会很有用。它们介绍Guix的软件依赖,以及如何手动安装和使用Guix。"
  3747. #. type: cindex
  3748. #: guix-git/doc/guix.texi:605
  3749. #, no-wrap
  3750. msgid "installing Guix from binaries"
  3751. msgstr "用二进制文件安装Guix"
  3752. #. type: cindex
  3753. #: guix-git/doc/guix.texi:606
  3754. #, no-wrap
  3755. msgid "installer script"
  3756. msgstr "安装脚本"
  3757. #. type: Plain text
  3758. #: guix-git/doc/guix.texi:612
  3759. 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."
  3760. msgstr "这个小节介绍如何在任意的系统上用独立的Guix二进制文件包安装Guix和它的依赖。这通常比从源代码安装更快,下一小节会介绍如何从源代码安装。唯一的需求是有GNU@tie{}tar和Xz。"
  3761. #. type: quotation
  3762. #: guix-git/doc/guix.texi:620
  3763. #, fuzzy
  3764. 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:"
  3765. msgstr "我们推荐使用这个@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}。这个脚本自动执行下述的下载、安装并且初始化Guix的过程。它需要以root用户身份运行。"
  3766. #. type: example
  3767. #: guix-git/doc/guix.texi:626
  3768. #, no-wrap
  3769. msgid ""
  3770. "cd /tmp\n"
  3771. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  3772. "chmod +x guix-install.sh\n"
  3773. "./guix-install.sh\n"
  3774. msgstr ""
  3775. #. type: quotation
  3776. #: guix-git/doc/guix.texi:630
  3777. msgid "When you're done, @pxref{Application Setup} for extra configuration you might need, and @ref{Getting Started} for your first steps!"
  3778. msgstr ""
  3779. #. type: Plain text
  3780. #: guix-git/doc/guix.texi:633
  3781. msgid "Installing goes along these lines:"
  3782. msgstr "安装步骤如下:"
  3783. #. type: cindex
  3784. #: guix-git/doc/guix.texi:636
  3785. #, no-wrap
  3786. msgid "downloading Guix binary"
  3787. msgstr "下载Guix二进制文件"
  3788. #. type: enumerate
  3789. #: guix-git/doc/guix.texi:642
  3790. #, fuzzy
  3791. 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})."
  3792. msgstr "从@indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz}下载二进制安装包,对于运行Linux内核的@code{x86_64}机器来说@var{系统}是@code{x86_64-linux},以此类推。"
  3793. #. type: enumerate
  3794. #: guix-git/doc/guix.texi:646
  3795. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the tarball against it, along these lines:"
  3796. msgstr "请确保下载相关的@file{.sig}文件,并且用它验证文件包的可靠性,方法如下:"
  3797. #. type: example
  3798. #: guix-git/doc/guix.texi:650
  3799. #, fuzzy, no-wrap
  3800. msgid ""
  3801. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  3802. "$ gpg --verify guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  3803. msgstr ""
  3804. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  3805. "$ gpg --verify guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  3806. #. type: Plain text
  3807. #: guix-git/doc/guix.texi:654 guix-git/doc/guix.texi:2124
  3808. msgid "If that command fails because you do not have the required public key, then run this command to import it:"
  3809. msgstr "如果那个命令因为缺少所需的公钥而失败了,那么用这个命令导入它:"
  3810. #. type: example
  3811. #: guix-git/doc/guix.texi:658
  3812. #, no-wrap
  3813. msgid ""
  3814. "$ wget '@value{OPENPGP-SIGNING-KEY-URL}' \\\n"
  3815. " -qO - | gpg --import -\n"
  3816. msgstr ""
  3817. #. type: Plain text
  3818. #: guix-git/doc/guix.texi:662 guix-git/doc/guix.texi:2132
  3819. msgid "and rerun the @code{gpg --verify} command."
  3820. msgstr "再次运行@code{gpg --verify}命令。"
  3821. #. type: Plain text
  3822. #: guix-git/doc/guix.texi:665 guix-git/doc/guix.texi:2135
  3823. msgid "Take note that a warning like ``This key is not certified with a trusted signature!'' is normal."
  3824. msgstr ""
  3825. #. type: enumerate
  3826. #: guix-git/doc/guix.texi:671
  3827. 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:"
  3828. msgstr "现在你需要成为@code{root}用户。基于你的发行版,你可能需要执行@code{su -}或@code{sudo -i}。以@code{root}用户身份,执行:"
  3829. #. type: example
  3830. #: guix-git/doc/guix.texi:677
  3831. #, fuzzy, no-wrap
  3832. msgid ""
  3833. "# cd /tmp\n"
  3834. "# tar --warning=no-timestamp -xf \\\n"
  3835. " /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz\n"
  3836. "# mv var/guix /var/ && mv gnu /\n"
  3837. msgstr ""
  3838. "# cd /tmp\n"
  3839. "# tar --warning=no-timestamp -xf \\\n"
  3840. " guix-binary-@value{VERSION}.@var{系统}.tar.xz\n"
  3841. "# mv var/guix /var/ && mv gnu /\n"
  3842. #. type: enumerate
  3843. #: guix-git/doc/guix.texi:682
  3844. #, fuzzy
  3845. 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)."
  3846. msgstr "这会创建@file{/gnu/store}(@pxref{The Store})和@file{/var/guix}。后一个文件夹为@code{root}用户提供了一个立即可用的profile(见下一步)。"
  3847. #. type: enumerate
  3848. #: guix-git/doc/guix.texi:685
  3849. msgid "Do @emph{not} unpack the tarball on a working Guix system since that would overwrite its own essential files."
  3850. msgstr "@emph{不要}在一个正常的Guix系统上解压这个文件包,因为那会把现有的重要的文件覆盖。"
  3851. #. type: enumerate
  3852. #: guix-git/doc/guix.texi:695
  3853. #, fuzzy
  3854. 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."
  3855. msgstr "@code{--warning=no-timestamp}选项使GNU@tie{}tar不输出有关“implausibly old time stamps”的警告(这类警告会被GNU@tie{}tar 1.26或更老的版本触发;新的版本没事)。这类警告是因为文件包里的所有文件的修改时间戳都被设置为0(即1970年1月1日)。这是故意的,为了确保文件包的内容独立于创建的时间,从而使它可再现。"
  3856. #. type: enumerate
  3857. #: guix-git/doc/guix.texi:699
  3858. msgid "Make the profile available under @file{~root/.config/guix/current}, which is where @command{guix pull} will install updates (@pxref{Invoking guix pull}):"
  3859. msgstr "使profile出现在@file{~root/.config/guix/current},这是@command{guix pull}安装更新的位置(@pxref{Invoking guix pull}):"
  3860. #. type: example
  3861. #: guix-git/doc/guix.texi:704
  3862. #, no-wrap
  3863. msgid ""
  3864. "# mkdir -p ~root/.config/guix\n"
  3865. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  3866. " ~root/.config/guix/current\n"
  3867. msgstr ""
  3868. "# mkdir -p ~root/.config/guix\n"
  3869. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  3870. " ~root/.config/guix/current\n"
  3871. #. type: enumerate
  3872. #: guix-git/doc/guix.texi:708
  3873. #, fuzzy
  3874. msgid "Source @file{etc/profile} to augment @env{PATH} and other relevant environment variables:"
  3875. msgstr "执行@file{etc/profile}以更新@code{PATH}和其它相关的环境变量:"
  3876. #. type: example
  3877. #: guix-git/doc/guix.texi:712
  3878. #, no-wrap
  3879. msgid ""
  3880. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  3881. " source $GUIX_PROFILE/etc/profile\n"
  3882. msgstr ""
  3883. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  3884. " source $GUIX_PROFILE/etc/profile\n"
  3885. #. type: enumerate
  3886. #: guix-git/doc/guix.texi:717
  3887. msgid "Create the group and user accounts for build users as explained below (@pxref{Build Environment Setup})."
  3888. msgstr "像下面解释的那样为“构建用户”创建用户组和用户(@pxref{Build Environment Setup})。"
  3889. #. type: enumerate
  3890. #: guix-git/doc/guix.texi:720
  3891. msgid "Run the daemon, and set it to automatically start on boot."
  3892. msgstr "运行后台进程,并设置为开机自启动。"
  3893. #. type: enumerate
  3894. #: guix-git/doc/guix.texi:723
  3895. msgid "If your host distro uses the systemd init system, this can be achieved with these commands:"
  3896. msgstr "如果你的主机的发行版使用systemd init系统,可以用这些命令:"
  3897. #. type: example
  3898. #: guix-git/doc/guix.texi:736
  3899. #, fuzzy, no-wrap
  3900. msgid ""
  3901. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  3902. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  3903. " /etc/systemd/system/\n"
  3904. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  3905. msgstr ""
  3906. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  3907. " /etc/systemd/system/\n"
  3908. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  3909. #. type: itemize
  3910. #: guix-git/doc/guix.texi:739 guix-git/doc/guix.texi:12767
  3911. msgid "If your host distro uses the Upstart init system:"
  3912. msgstr "如果你的主机的发行版使用Upstart init系统:"
  3913. #. type: example
  3914. #: guix-git/doc/guix.texi:745
  3915. #, no-wrap
  3916. msgid ""
  3917. "# initctl reload-configuration\n"
  3918. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  3919. " /etc/init/\n"
  3920. "# start guix-daemon\n"
  3921. msgstr ""
  3922. "# initctl reload-configuration\n"
  3923. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  3924. " /etc/init/\n"
  3925. "# start guix-daemon\n"
  3926. #. type: enumerate
  3927. #: guix-git/doc/guix.texi:748
  3928. msgid "Otherwise, you can still start the daemon manually with:"
  3929. msgstr "此外,你可以手动启动后台进程:"
  3930. #. type: example
  3931. #: guix-git/doc/guix.texi:752
  3932. #, no-wrap
  3933. msgid ""
  3934. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  3935. " --build-users-group=guixbuild\n"
  3936. msgstr ""
  3937. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  3938. " --build-users-group=guixbuild\n"
  3939. #. type: enumerate
  3940. #: guix-git/doc/guix.texi:757
  3941. msgid "Make the @command{guix} command available to other users on the machine, for instance with:"
  3942. msgstr "使机器上的其他用户也可以使用@command{guix}命令:"
  3943. #. type: example
  3944. #: guix-git/doc/guix.texi:762
  3945. #, no-wrap
  3946. msgid ""
  3947. "# mkdir -p /usr/local/bin\n"
  3948. "# cd /usr/local/bin\n"
  3949. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  3950. msgstr ""
  3951. "# mkdir -p /usr/local/bin\n"
  3952. "# cd /usr/local/bin\n"
  3953. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  3954. #. type: enumerate
  3955. #: guix-git/doc/guix.texi:766
  3956. msgid "It is also a good idea to make the Info version of this manual available there:"
  3957. msgstr "最好让这个用户手册的Info版也可以被访问:"
  3958. #. type: example
  3959. #: guix-git/doc/guix.texi:772
  3960. #, no-wrap
  3961. msgid ""
  3962. "# mkdir -p /usr/local/share/info\n"
  3963. "# cd /usr/local/share/info\n"
  3964. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  3965. " do ln -s $i ; done\n"
  3966. msgstr ""
  3967. "# mkdir -p /usr/local/share/info\n"
  3968. "# cd /usr/local/share/info\n"
  3969. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  3970. " do ln -s $i ; done\n"
  3971. #. type: enumerate
  3972. #: guix-git/doc/guix.texi:778
  3973. #, fuzzy
  3974. 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)."
  3975. msgstr "那样,假设@file{/usr/local/share/info}在搜索路径里,运行@command{info guix}命令就会打开这个用户手册(@pxref{Other Info Directories,,, texinfo, GNU Texinfo},更多关于Info搜索路径的信息)。"
  3976. #. type: cindex
  3977. #: guix-git/doc/guix.texi:780 guix-git/doc/guix.texi:3724
  3978. #: guix-git/doc/guix.texi:15401
  3979. #, no-wrap
  3980. msgid "substitutes, authorization thereof"
  3981. msgstr "substitutes,对其授权"
  3982. #. type: enumerate
  3983. #: guix-git/doc/guix.texi:783
  3984. msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER}} or one of its mirrors (@pxref{Substitutes}), authorize them:"
  3985. msgstr "为了使用@code{@value{SUBSTITUTE-SERVER}}或其镜像的substitute(@pxref{Substitutes}),对其授权:"
  3986. #. type: example
  3987. #: guix-git/doc/guix.texi:787
  3988. #, no-wrap
  3989. msgid ""
  3990. "# guix archive --authorize < \\\n"
  3991. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  3992. msgstr ""
  3993. "# guix archive --authorize < \\\n"
  3994. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  3995. #. type: enumerate
  3996. #: guix-git/doc/guix.texi:792
  3997. msgid "Each user may need to perform a few additional steps to make their Guix environment ready for use, @pxref{Application Setup}."
  3998. msgstr "每个用户可能需要执行一些额外的步骤以使各自的Guix环境可用,@pxref{Application Setup}。"
  3999. #. type: Plain text
  4000. #: guix-git/doc/guix.texi:795
  4001. msgid "Voilà, the installation is complete!"
  4002. msgstr "瞧,安装完成了!"
  4003. #. type: Plain text
  4004. #: guix-git/doc/guix.texi:798
  4005. msgid "You can confirm that Guix is working by installing a sample package into the root profile:"
  4006. msgstr "你可以通过给root profile安装一个软件包来确认Guix可以正常工作。"
  4007. #. type: example
  4008. #: guix-git/doc/guix.texi:801
  4009. #, no-wrap
  4010. msgid "# guix install hello\n"
  4011. msgstr "# guix install hello\n"
  4012. #. type: Plain text
  4013. #: guix-git/doc/guix.texi:805
  4014. msgid "The binary installation tarball can be (re)produced and verified simply by running the following command in the Guix source tree:"
  4015. msgstr "二进制安装包可以通过在Guix源代码树里运行下面这些命令来重现和验证:"
  4016. #. type: example
  4017. #: guix-git/doc/guix.texi:808
  4018. #, no-wrap
  4019. msgid "make guix-binary.@var{system}.tar.xz\n"
  4020. msgstr "make guix-binary.@var{系统}.tar.xz\n"
  4021. #. type: Plain text
  4022. #: guix-git/doc/guix.texi:812
  4023. msgid "...@: which, in turn, runs:"
  4024. msgstr "...@: 这个命令会执行:"
  4025. #. type: example
  4026. #: guix-git/doc/guix.texi:816
  4027. #, no-wrap
  4028. msgid ""
  4029. "guix pack -s @var{system} --localstatedir \\\n"
  4030. " --profile-name=current-guix guix\n"
  4031. msgstr ""
  4032. "guix pack -s @var{系统} --localstatedir \\\n"
  4033. " --profile-name=current-guix guix\n"
  4034. #. type: Plain text
  4035. #: guix-git/doc/guix.texi:819
  4036. msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  4037. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  4038. #. type: Plain text
  4039. #: guix-git/doc/guix.texi:827
  4040. 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."
  4041. msgstr "这个小节列举了从源代码构建Guix的需求。构建Guix的步骤和其它GNU软件相同,这里不介绍。请阅读Guix源代码树里的@file{README}和@file{INSTALL}文件以了解更多的信息。"
  4042. #. type: cindex
  4043. #: guix-git/doc/guix.texi:828
  4044. #, no-wrap
  4045. msgid "official website"
  4046. msgstr "官方网站"
  4047. #. type: Plain text
  4048. #: guix-git/doc/guix.texi:831
  4049. msgid "GNU Guix is available for download from its website at @url{https://www.gnu.org/software/guix/}."
  4050. msgstr "GNU Guix可以从它的网站下载@url{https://www.gnu.org/software/guix/}。"
  4051. #. type: Plain text
  4052. #: guix-git/doc/guix.texi:833
  4053. msgid "GNU Guix depends on the following packages:"
  4054. msgstr "GNU Guix依赖这些软件包:"
  4055. #. type: item
  4056. #: guix-git/doc/guix.texi:835
  4057. #, fuzzy, no-wrap
  4058. msgid "@url{https://gnu.org/software/guile/, GNU Guile}, version 3.0.x or"
  4059. msgstr "@url{https://gnu.org/software/guile/, GNU Guile},版本2.2.x;"
  4060. #. type: itemize
  4061. #: guix-git/doc/guix.texi:837
  4062. msgid "2.2.x;"
  4063. msgstr ""
  4064. #. type: item
  4065. #: guix-git/doc/guix.texi:837
  4066. #, no-wrap
  4067. msgid "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version"
  4068. msgstr "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt},版本"
  4069. #. type: itemize
  4070. #: guix-git/doc/guix.texi:839
  4071. msgid "0.1.0 or later;"
  4072. msgstr "0.1.0或更新;"
  4073. #. type: itemize
  4074. #: guix-git/doc/guix.texi:843
  4075. 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});"
  4076. msgstr "@uref{https://gnutls.org/, GnuTLS},特别是它的Guile接口(@pxref{Guile Preparations, 怎样为Guile安装GnuTLS接口,, gnutls-guile, GnuTLS-Guile});"
  4077. #. type: itemize
  4078. #: guix-git/doc/guix.texi:846
  4079. msgid "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3}, version 0.1.0 or later;"
  4080. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4081. #. type: item
  4082. #: guix-git/doc/guix.texi:846
  4083. #, fuzzy, no-wrap
  4084. msgid "@uref{https://notabug.org/guile-zlib/guile-zlib, Guile-zlib},"
  4085. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4086. #. type: itemize
  4087. #: guix-git/doc/guix.texi:848
  4088. #, fuzzy
  4089. msgid "version 0.1.0 or later;"
  4090. msgstr "0.1.0或更新;"
  4091. #. type: item
  4092. #: guix-git/doc/guix.texi:848
  4093. #, fuzzy, no-wrap
  4094. msgid "@uref{https://notabug.org/guile-lzlib/guile-lzlib, Guile-lzlib};"
  4095. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4096. #. type: item
  4097. #: guix-git/doc/guix.texi:849
  4098. #, no-wrap
  4099. msgid "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4100. msgstr "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4101. #. type: itemize
  4102. #: guix-git/doc/guix.texi:855
  4103. #, fuzzy
  4104. msgid "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, version 0.3.0 or later;"
  4105. msgstr "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git},2017年8月及之后的版本;"
  4106. #. type: item
  4107. #: guix-git/doc/guix.texi:855
  4108. #, fuzzy, no-wrap
  4109. msgid "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON}"
  4110. msgstr "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON};"
  4111. #. type: itemize
  4112. #: guix-git/doc/guix.texi:857
  4113. #, fuzzy
  4114. msgid "4.3.0 or later;"
  4115. msgstr "0.1.0或更新;"
  4116. #. type: item
  4117. #: guix-git/doc/guix.texi:857
  4118. #, no-wrap
  4119. msgid "@url{https://www.gnu.org/software/make/, GNU Make}."
  4120. msgstr "@url{https://www.gnu.org/software/make/, GNU Make}。"
  4121. #. type: Plain text
  4122. #: guix-git/doc/guix.texi:861
  4123. msgid "The following dependencies are optional:"
  4124. msgstr "这些依赖是可选的:"
  4125. #. type: itemize
  4126. #: guix-git/doc/guix.texi:869
  4127. #, fuzzy
  4128. 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."
  4129. 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或更新。"
  4130. #. type: itemize
  4131. #: guix-git/doc/guix.texi:874
  4132. 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})."
  4133. msgstr ""
  4134. #. type: itemize
  4135. #: guix-git/doc/guix.texi:878
  4136. msgid "@uref{https://ngyro.com/software/guile-semver.html, Guile-Semver} for the @code{crate} importer (@pxref{Invoking guix import})."
  4137. msgstr ""
  4138. #. type: itemize
  4139. #: guix-git/doc/guix.texi:883
  4140. 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})."
  4141. msgstr ""
  4142. #. type: itemize
  4143. #: guix-git/doc/guix.texi:887
  4144. msgid "When @url{http://www.bzip.org, libbz2} is available, @command{guix-daemon} can use it to compress build logs."
  4145. msgstr "当@url{http://www.bzip.org, libbz2}存在时,@command{guix-daemon}可以用它压缩构建日志。"
  4146. #. type: Plain text
  4147. #: guix-git/doc/guix.texi:891
  4148. #, fuzzy
  4149. msgid "Unless @option{--disable-daemon} was passed to @command{configure}, the following packages are also needed:"
  4150. msgstr "除非@code{--disable-daemon}参数被传给@command{configure},这些软件包也是需要的依赖:"
  4151. #. type: item
  4152. #: guix-git/doc/guix.texi:893
  4153. #, no-wrap
  4154. msgid "@url{https://gnupg.org/, GNU libgcrypt};"
  4155. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  4156. #. type: item
  4157. #: guix-git/doc/guix.texi:894
  4158. #, no-wrap
  4159. msgid "@url{https://sqlite.org, SQLite 3};"
  4160. msgstr "@url{https://sqlite.org, SQLite 3};"
  4161. #. type: item
  4162. #: guix-git/doc/guix.texi:895
  4163. #, no-wrap
  4164. msgid "@url{https://gcc.gnu.org, GCC's g++}, with support for the"
  4165. msgstr "@url{https://gcc.gnu.org, GCC's g++},支持"
  4166. #. type: itemize
  4167. #: guix-git/doc/guix.texi:897
  4168. msgid "C++11 standard."
  4169. msgstr "C++11标准。"
  4170. #. type: cindex
  4171. #: guix-git/doc/guix.texi:899
  4172. #, no-wrap
  4173. msgid "state directory"
  4174. msgstr "状态文件夹"
  4175. #. type: Plain text
  4176. #: guix-git/doc/guix.texi:908
  4177. #, fuzzy
  4178. 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})."
  4179. msgstr "当在一个已经安装Guix的系统上配置Guix时,请确保用@command{configure}的@code{--localstatedir}参数指定和现有的安装相同的状态文件夹(@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards})。@command{configure}保护你免于误设置@var{localstatedir},从而不会无意中损坏仓库(@pxref{The Store})。"
  4180. #. type: cindex
  4181. #: guix-git/doc/guix.texi:912
  4182. #, no-wrap
  4183. msgid "test suite"
  4184. msgstr "测试套件"
  4185. #. type: Plain text
  4186. #: guix-git/doc/guix.texi:918
  4187. 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:"
  4188. msgstr "成功执行@command{configure}和@code{make}之后,最好运行测试套件。它可以帮助查找设置和环境的错误,或者是Guix自身的bug--并且,报告测试错误是帮助改进软件的好方法。输入下面的命令以执行测试套件。"
  4189. #. type: example
  4190. #: guix-git/doc/guix.texi:921
  4191. #, no-wrap
  4192. msgid "make check\n"
  4193. msgstr "make check\n"
  4194. #. type: Plain text
  4195. #: guix-git/doc/guix.texi:928
  4196. 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."
  4197. msgstr "测试用例可以并行运行:你可以用GNU@tie{}make的@code{-j}参数来加速运行。才一台较新的机器上第一次运行可能会花几分钟,后续的运行会更快,因为为测试创建的仓库已经包含了各种缓存。"
  4198. #. type: Plain text
  4199. #: guix-git/doc/guix.texi:931
  4200. msgid "It is also possible to run a subset of the tests by defining the @code{TESTS} makefile variable as in this example:"
  4201. msgstr "你还可以通过定义makefile的@code{TESTS}变量只运行测试的一个子集:"
  4202. #. type: example
  4203. #: guix-git/doc/guix.texi:934
  4204. #, no-wrap
  4205. msgid "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4206. msgstr "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  4207. #. type: Plain text
  4208. #: guix-git/doc/guix.texi:939
  4209. 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:"
  4210. msgstr "默认情况下,测试结果只展示到文件层级。为了看每个独立的测试用例的详情,可以像这样定义@code{SCM_LOG_DRIVER_FLAGS} makefile变量:"
  4211. #. type: example
  4212. #: guix-git/doc/guix.texi:942
  4213. #, no-wrap
  4214. msgid "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4215. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4216. #. type: Plain text
  4217. #: guix-git/doc/guix.texi:950
  4218. 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'':"
  4219. msgstr ""
  4220. #. type: example
  4221. #: guix-git/doc/guix.texi:954
  4222. #, no-wrap
  4223. msgid ""
  4224. "export SCM_LOG_DRIVER_FLAGS=\"--select=^transaction-upgrade-entry\"\n"
  4225. "make check TESTS=\"tests/packages.scm\"\n"
  4226. msgstr ""
  4227. #. type: Plain text
  4228. #: guix-git/doc/guix.texi:960
  4229. 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:"
  4230. msgstr ""
  4231. #. type: example
  4232. #: guix-git/doc/guix.texi:963
  4233. #, fuzzy, no-wrap
  4234. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --errors-only=yes\" VERBOSE=1\n"
  4235. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4236. #. type: Plain text
  4237. #: guix-git/doc/guix.texi:968
  4238. 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}:"
  4239. msgstr ""
  4240. #. type: example
  4241. #: guix-git/doc/guix.texi:971
  4242. #, fuzzy, no-wrap
  4243. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --show-duration=yes\"\n"
  4244. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  4245. #. type: Plain text
  4246. #: guix-git/doc/guix.texi:975
  4247. msgid "@xref{Parallel Test Harness,,,automake,GNU Automake} for more information about the Automake Parallel Test Harness."
  4248. msgstr ""
  4249. #. type: Plain text
  4250. #: guix-git/doc/guix.texi:980
  4251. 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."
  4252. msgstr "遇到错误时,请给@email{bug-guix@@gnu.org}发邮件,并附带@file{test-suite.log}文件。请在消息里说明使用的Guix的版本信息和依赖(@pxref{Requirements})的版本信息。"
  4253. #. type: Plain text
  4254. #: guix-git/doc/guix.texi:984
  4255. 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:"
  4256. msgstr "Guix还附带了一个可以测试整个Guix系统实例的全系统测试套件。它只能在已经安装Guix的系统上运行:"
  4257. #. type: example
  4258. #: guix-git/doc/guix.texi:987
  4259. #, no-wrap
  4260. msgid "make check-system\n"
  4261. msgstr "make check-system\n"
  4262. #. type: Plain text
  4263. #: guix-git/doc/guix.texi:991
  4264. msgid "or, again, by defining @code{TESTS} to select a subset of tests to run:"
  4265. msgstr "或者,同样的,通过定义@code{TESTS}只运行测试的一个子集:"
  4266. #. type: example
  4267. #: guix-git/doc/guix.texi:994
  4268. #, no-wrap
  4269. msgid "make check-system TESTS=\"basic mcron\"\n"
  4270. msgstr "make check-system TESTS=\"basic mcron\"\n"
  4271. #. type: Plain text
  4272. #: guix-git/doc/guix.texi:1002
  4273. 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."
  4274. msgstr "这些系统测试是在@code{(gnu tests @dots{})}模块里定义的。它们在虚拟机(VM)里运行轻量的指令。它们的计算量可能很多也可能很少,这取决于它们依赖的substitute(@pxref{Substitutes})是否已经存在。它们之中有些需要很多存储空间以保存虚拟机硬盘。"
  4275. #. type: Plain text
  4276. #: guix-git/doc/guix.texi:1005
  4277. msgid "Again in case of test failures, please send @email{bug-guix@@gnu.org} all the details."
  4278. msgstr "再重复一遍,如果遇到测试错误,请给@email{bug-guix@@gnu.org}发邮件,并附带详细的说明。"
  4279. #. type: cindex
  4280. #: guix-git/doc/guix.texi:1009
  4281. #, no-wrap
  4282. msgid "daemon"
  4283. msgstr "后台进程"
  4284. #. type: Plain text
  4285. #: guix-git/doc/guix.texi:1017
  4286. 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."
  4287. msgstr "构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即@dfn{构建后台进程}。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,@command{guix package}和@command{guix build}之类的命令行工具通过和这个后台进程通信(@i{通过}远程过程调用)来指示它该做什么。"
  4288. #. type: Plain text
  4289. #: guix-git/doc/guix.texi:1021
  4290. 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."
  4291. msgstr "接下来的几个小节介绍如何准备“构建后台进程”的环境。参考@ref{Substitutes},了解怎样允许这个后台进程下载预构建好的二进制文件。"
  4292. #. type: cindex
  4293. #: guix-git/doc/guix.texi:1031 guix-git/doc/guix.texi:1493
  4294. #, no-wrap
  4295. msgid "build environment"
  4296. msgstr "构建环境"
  4297. #. type: Plain text
  4298. #: guix-git/doc/guix.texi:1039
  4299. 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."
  4300. msgstr "在一个标准的多用户设置里,Guix和它的后台进程--@command{guix-daemon}程序--是由@code{root}用户安装的,并且@command{guix-daemon}以@code{root}用户身份运行。无特权的用户可以用Guix的工具构建软件包或访问仓库,这个后台进程会代替用户进行这些操作,以确保仓库保持一致的状态,并且允许构建好的软件包可以在不同用户间共享。"
  4301. #. type: cindex
  4302. #: guix-git/doc/guix.texi:1040
  4303. #, no-wrap
  4304. msgid "build users"
  4305. msgstr "构建用户"
  4306. #. type: Plain text
  4307. #: guix-git/doc/guix.texi:1051
  4308. 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})."
  4309. msgstr "当@command{guix-daemon}以@code{root}用户身份运行时,由于安全方面的考虑,你可能不希望软件包构建进程也以@code{root}用户身份运行。为了避免那样,我们需要创建一个@dfn{构建用户}池,以供后台进程启动的构建进程使用。这些构建用户不需要拥有shell和家目录:他们只会在后台进程为构建进程剥夺@code{root}特权时使用。拥有多个这类用户使后台进程可以以不同的UID启动不同的构建进程,这保证它们不会互相干扰--这是一个重要的功能,因为构建被视为纯函数(@pxref{Introduction})。"
  4310. #. type: Plain text
  4311. #: guix-git/doc/guix.texi:1054
  4312. msgid "On a GNU/Linux system, a build user pool may be created like this (using Bash syntax and the @code{shadow} commands):"
  4313. msgstr "在一个GNU/Linux系统上,可以这样创建一个构建用户池(用bash语法和@code{shadow}命令):"
  4314. #. type: example
  4315. #: guix-git/doc/guix.texi:1066
  4316. #, fuzzy, no-wrap
  4317. msgid ""
  4318. "# groupadd --system guixbuild\n"
  4319. "# for i in $(seq -w 1 10);\n"
  4320. " do\n"
  4321. " useradd -g guixbuild -G guixbuild \\\n"
  4322. " -d /var/empty -s $(which nologin) \\\n"
  4323. " -c \"Guix build user $i\" --system \\\n"
  4324. " guixbuilder$i;\n"
  4325. " done\n"
  4326. msgstr ""
  4327. "# groupadd --system guixbuild\n"
  4328. "# for i in `seq -w 1 10`;\n"
  4329. " do\n"
  4330. " useradd -g guixbuild -G guixbuild \\\n"
  4331. " -d /var/empty -s `which nologin` \\\n"
  4332. " -c \"Guix build user $i\" --system \\\n"
  4333. " guixbuilder$i;\n"
  4334. " done\n"
  4335. #. type: Plain text
  4336. #: guix-git/doc/guix.texi:1076
  4337. 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})."
  4338. 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})。"
  4339. #. type: Plain text
  4340. #: guix-git/doc/guix.texi:1085
  4341. 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}.}:"
  4342. 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}文件夹里}:"
  4343. #. type: example
  4344. #: guix-git/doc/guix.texi:1088 guix-git/doc/guix.texi:1486
  4345. #, no-wrap
  4346. msgid "# guix-daemon --build-users-group=guixbuild\n"
  4347. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  4348. #. type: cindex
  4349. #: guix-git/doc/guix.texi:1090 guix-git/doc/guix.texi:1491
  4350. #, no-wrap
  4351. msgid "chroot"
  4352. msgstr "chroot"
  4353. #. type: Plain text
  4354. #: guix-git/doc/guix.texi:1095
  4355. 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:"
  4356. msgstr "这样,后台进程在一个chroot环境里,以一个@code{guixbuilder}用户组成员的身份启动构建进程。在GNU/Linux上,默认的,这个chroot环境仅包含这些东西:"
  4357. #. type: itemize
  4358. #: guix-git/doc/guix.texi:1103
  4359. 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.};"
  4360. msgstr "一个和主机@code{/dev}独立的@footnote{大致这样,因为虽然chroot环境里的@code{/dev}包含的文件是固定的,大部分这些文件只有在主机有对应的文件时才能创建。},最小的@code{/dev}文件夹;"
  4361. #. type: itemize
  4362. #: guix-git/doc/guix.texi:1107
  4363. msgid "the @code{/proc} directory; it only shows the processes of the container since a separate PID name space is used;"
  4364. msgstr "@code{/proc}文件夹;它只含有当前容器的进程,因为用了一个独立的进程PID命名空间;"
  4365. #. type: itemize
  4366. #: guix-git/doc/guix.texi:1111
  4367. msgid "@file{/etc/passwd} with an entry for the current user and an entry for user @file{nobody};"
  4368. msgstr "@file{/etc/passwd},仅包含当前用户和@file{nobody};"
  4369. #. type: itemize
  4370. #: guix-git/doc/guix.texi:1114
  4371. msgid "@file{/etc/group} with an entry for the user's group;"
  4372. msgstr "@file{/etc/group},包含用户的组;"
  4373. #. type: itemize
  4374. #: guix-git/doc/guix.texi:1118
  4375. msgid "@file{/etc/hosts} with an entry that maps @code{localhost} to @code{127.0.0.1};"
  4376. msgstr "@file{/etc/hosts},包含@code{localhost}映射到@code{127.0.0.1}的条目;"
  4377. #. type: itemize
  4378. #: guix-git/doc/guix.texi:1121
  4379. msgid "a writable @file{/tmp} directory."
  4380. msgstr "一个可写的@file{/tmp}文件夹。"
  4381. #. type: Plain text
  4382. #: guix-git/doc/guix.texi:1130
  4383. #, fuzzy
  4384. 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."
  4385. msgstr "你可以@i{通过}@code{TMPDIR}环境变量修改后台进程保存构建树的位置。但是,chroot里的构建树总是在@file{/tmp/guix-build-@var{名字}.drv-0},@var{名字}是derivation的名字--如@code{coreutils-8.24}。这样,@code{TMPDIR}的值就不会泄漏到构建环境里,这可以避免由构建进程读取构建树名字引起的问题。"
  4386. #. type: vindex
  4387. #: guix-git/doc/guix.texi:1131 guix-git/doc/guix.texi:3929
  4388. #, no-wrap
  4389. msgid "http_proxy"
  4390. msgstr "http_proxy"
  4391. #. type: vindex
  4392. #: guix-git/doc/guix.texi:1132 guix-git/doc/guix.texi:3930
  4393. #, fuzzy, no-wrap
  4394. msgid "https_proxy"
  4395. msgstr "http_proxy"
  4396. #. type: Plain text
  4397. #: guix-git/doc/guix.texi:1137
  4398. #, fuzzy
  4399. 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})."
  4400. msgstr "后台进程通过HTTP下载时还遵守@code{http_proxy}环境变量,无论是下载derivation(@pxref{Derivations}),还是下载substitute(@pxref{Substitutes})。"
  4401. #. type: Plain text
  4402. #: guix-git/doc/guix.texi:1145
  4403. #, fuzzy
  4404. 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."
  4405. msgstr "如果你是以无特权的用户的身份安装Guix,你仍可以运行@command{guix-daemon},只要添加@code{--disable-chroot}参数就行了。但是,构建进程不会互相隔离,也不会和系统的其它部分隔离。因此,构建进程有可能互相干扰,可以访问程序、库和系统上的其它文件--这样就很难把它看作@emph{纯}函数。"
  4406. #. type: subsection
  4407. #: guix-git/doc/guix.texi:1148
  4408. #, no-wrap
  4409. msgid "Using the Offload Facility"
  4410. msgstr "使用任务下发设施"
  4411. #. type: cindex
  4412. #: guix-git/doc/guix.texi:1150 guix-git/doc/guix.texi:1552
  4413. #, no-wrap
  4414. msgid "offloading"
  4415. msgstr "下发"
  4416. #. type: cindex
  4417. #: guix-git/doc/guix.texi:1151
  4418. #, no-wrap
  4419. msgid "build hook"
  4420. msgstr "构建钩子"
  4421. #. type: Plain text
  4422. #: guix-git/doc/guix.texi:1170
  4423. #, fuzzy
  4424. 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:"
  4425. 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复制到目标机器,然后继续构建;成功后,构建输出的结果被复制回初始的机器上。"
  4426. #. type: enumerate
  4427. #: guix-git/doc/guix.texi:1176
  4428. 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."
  4429. msgstr ""
  4430. #. type: enumerate
  4431. #: guix-git/doc/guix.texi:1180
  4432. msgid "Its relative speed, as defined via the @code{speed} field of its @code{build-machine} object."
  4433. msgstr ""
  4434. #. type: enumerate
  4435. #: guix-git/doc/guix.texi:1185
  4436. 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."
  4437. msgstr ""
  4438. #. type: enumerate
  4439. #: guix-git/doc/guix.texi:1188
  4440. msgid "Disk space availability. More than a 100 MiB must be available."
  4441. msgstr ""
  4442. #. type: Plain text
  4443. #: guix-git/doc/guix.texi:1191
  4444. msgid "The @file{/etc/guix/machines.scm} file typically looks like this:"
  4445. msgstr "@file{/etc/guix/machines.scm}文件通常是这样的:"
  4446. #. type: lisp
  4447. #: guix-git/doc/guix.texi:1199
  4448. #, fuzzy, no-wrap
  4449. msgid ""
  4450. "(list (build-machine\n"
  4451. " (name \"eightysix.example.org\")\n"
  4452. " (systems (list \"x86_64-linux\" \"i686-linux\"))\n"
  4453. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  4454. " (user \"bob\")\n"
  4455. " (speed 2.)) ;incredibly fast!\n"
  4456. "\n"
  4457. msgstr ""
  4458. "(list (build-machine\n"
  4459. " (name \"eightysix.example.org\")\n"
  4460. " (system \"x86_64-linux\")\n"
  4461. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  4462. " (user \"bob\")\n"
  4463. " (speed 2.)) ;非常快!\n"
  4464. "\n"
  4465. #. type: lisp
  4466. #: guix-git/doc/guix.texi:1208
  4467. #, fuzzy, no-wrap
  4468. msgid ""
  4469. " (build-machine\n"
  4470. " (name \"armeight.example.org\")\n"
  4471. " (systems (list \"aarch64-linux\"))\n"
  4472. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  4473. " (user \"alice\")\n"
  4474. " (private-key\n"
  4475. " (string-append (getenv \"HOME\")\n"
  4476. " \"/.ssh/identity-for-guix\"))))\n"
  4477. msgstr ""
  4478. " (build-machine\n"
  4479. " (name \"meeps.example.org\")\n"
  4480. " (system \"mips64el-linux\")\n"
  4481. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  4482. " (user \"alice\")\n"
  4483. " (private-key\n"
  4484. " (string-append (getenv \"HOME\")\n"
  4485. " \"/.ssh/identity-for-guix\"))))\n"
  4486. #. type: Plain text
  4487. #: guix-git/doc/guix.texi:1214
  4488. #, fuzzy
  4489. 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."
  4490. msgstr "在上面的例子里,我们指定了一个包含两个构建机器的列表,一个是@code{x86_64}架构,一个是@code{mips64el}架构。"
  4491. #. type: Plain text
  4492. #: guix-git/doc/guix.texi:1223
  4493. 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."
  4494. msgstr "事实上,这个文件--并不意外地--是一个Scheme文件,当@code{下发}钩子被启动时执行。它的返回值必须是一个包含@code{build-machine}对象的列表。虽然这个例子展示的是一个固定的列表,你可以想象,使用DNS-SD来返回一个包含从局域网内发现的构建机器的列表,@pxref{Introduction, Guile-Avahi,, guile-avahi, 在Guile Scheme程序里使用Avahi}。@code{build-machine}数据类型的详细信息如下。"
  4495. #. type: deftp
  4496. #: guix-git/doc/guix.texi:1224
  4497. #, no-wrap
  4498. msgid "{Data Type} build-machine"
  4499. msgstr "{数据类型} build-machine"
  4500. #. type: deftp
  4501. #: guix-git/doc/guix.texi:1227
  4502. msgid "This data type represents build machines to which the daemon may offload builds. The important fields are:"
  4503. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  4504. #. type: item
  4505. #: guix-git/doc/guix.texi:1230 guix-git/doc/guix.texi:6649
  4506. #: guix-git/doc/guix.texi:14367 guix-git/doc/guix.texi:14461
  4507. #: guix-git/doc/guix.texi:14702 guix-git/doc/guix.texi:16651
  4508. #: guix-git/doc/guix.texi:19835 guix-git/doc/guix.texi:22471
  4509. #: guix-git/doc/guix.texi:23860 guix-git/doc/guix.texi:24472
  4510. #: guix-git/doc/guix.texi:24824 guix-git/doc/guix.texi:24865
  4511. #: guix-git/doc/guix.texi:26964 guix-git/doc/guix.texi:29233
  4512. #: guix-git/doc/guix.texi:29253 guix-git/doc/guix.texi:31700
  4513. #: guix-git/doc/guix.texi:31717 guix-git/doc/guix.texi:32206
  4514. #: guix-git/doc/guix.texi:33938 guix-git/doc/guix.texi:34246
  4515. #, no-wrap
  4516. msgid "name"
  4517. msgstr "名字"
  4518. #. type: table
  4519. #: guix-git/doc/guix.texi:1232
  4520. msgid "The host name of the remote machine."
  4521. msgstr "远程机器的主机名。"
  4522. #. type: item
  4523. #: guix-git/doc/guix.texi:1233
  4524. #, fuzzy, no-wrap
  4525. msgid "systems"
  4526. msgstr "系统"
  4527. #. type: table
  4528. #: guix-git/doc/guix.texi:1236
  4529. #, fuzzy
  4530. msgid "The system types the remote machine supports---e.g., @code{(list \"x86_64-linux\" \"i686-linux\")}."
  4531. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  4532. #. type: code{#1}
  4533. #: guix-git/doc/guix.texi:1237 guix-git/doc/guix.texi:16661
  4534. #, no-wrap
  4535. msgid "user"
  4536. msgstr "用户"
  4537. #. type: table
  4538. #: guix-git/doc/guix.texi:1241
  4539. 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."
  4540. msgstr "通过SSH连接远程机器时使用的用户帐号。注意,SSH密钥@emph{不}能被密码保护,以支持无交互的登录。"
  4541. #. type: item
  4542. #: guix-git/doc/guix.texi:1242
  4543. #, no-wrap
  4544. msgid "host-key"
  4545. msgstr "主机公钥"
  4546. #. type: table
  4547. #: guix-git/doc/guix.texi:1246
  4548. 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:"
  4549. msgstr "这必须是机器的OpenSSH格式的SSH@dfn{公钥}。这是用来在连接机器时认证身份的。它是一个像这样的长字符串:"
  4550. #. type: example
  4551. #: guix-git/doc/guix.texi:1249
  4552. #, no-wrap
  4553. msgid "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  4554. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  4555. #. type: table
  4556. #: guix-git/doc/guix.texi:1254
  4557. 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}."
  4558. msgstr "如果这个机器正在运行OpenSSH后台进程,@command{sshd},那么主机公钥可以在@file{/etc/ssh/ssh_host_ed25519_key.pub}找到。"
  4559. #. type: table
  4560. #: guix-git/doc/guix.texi:1259
  4561. 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}):"
  4562. msgstr "如果这个机器正在运行GNU@tie{}lsh,@command{lshd},那么主机公钥可以在@file{/etc/lsh/host-key.pub}或类似的位置找到。它可以通过@command{lsh-export-key}命令转换成OpenSSH格式(@pxref{Converting keys,,, lsh, LSH用户手册}):"
  4563. #. type: example
  4564. #: guix-git/doc/guix.texi:1263
  4565. #, fuzzy, no-wrap
  4566. msgid ""
  4567. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub\n"
  4568. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  4569. msgstr ""
  4570. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub \n"
  4571. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  4572. #. type: deftp
  4573. #: guix-git/doc/guix.texi:1268
  4574. msgid "A number of optional fields may be specified:"
  4575. msgstr "一些可选的项:"
  4576. #. type: item
  4577. #: guix-git/doc/guix.texi:1271 guix-git/doc/guix.texi:33438
  4578. #, no-wrap
  4579. msgid "@code{port} (default: @code{22})"
  4580. msgstr "@code{port}(默认值:@code{22})"
  4581. #. type: table
  4582. #: guix-git/doc/guix.texi:1273
  4583. msgid "Port number of SSH server on the machine."
  4584. msgstr "机器上的SSH服务器的端口号。"
  4585. #. type: item
  4586. #: guix-git/doc/guix.texi:1274
  4587. #, no-wrap
  4588. msgid "@code{private-key} (default: @file{~root/.ssh/id_rsa})"
  4589. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  4590. #. type: table
  4591. #: guix-git/doc/guix.texi:1277
  4592. 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."
  4593. msgstr "连接机器时使用的SSH私钥,OpenSSH格式。这个私钥不能被密码保护。"
  4594. #. type: table
  4595. #: guix-git/doc/guix.texi:1280
  4596. msgid "Note that the default value is the private key @emph{of the root account}. Make sure it exists if you use the default."
  4597. msgstr "注意,默认值是@emph{root帐号}的私钥。使用默认值时请确保它存在。"
  4598. #. type: item
  4599. #: guix-git/doc/guix.texi:1281
  4600. #, no-wrap
  4601. msgid "@code{compression} (default: @code{\"zlib@@openssh.com,zlib\"})"
  4602. msgstr "@code{compression}(默认值:@code{\"zlib@@openssh.com,zlib\"})"
  4603. #. type: itemx
  4604. #: guix-git/doc/guix.texi:1282
  4605. #, no-wrap
  4606. msgid "@code{compression-level} (default: @code{3})"
  4607. msgstr "@code{compression-level}(默认值:@code{3})"
  4608. #. type: table
  4609. #: guix-git/doc/guix.texi:1284
  4610. msgid "The SSH-level compression methods and compression level requested."
  4611. msgstr "SSH压缩算法和压缩级别。"
  4612. #. type: table
  4613. #: guix-git/doc/guix.texi:1287
  4614. msgid "Note that offloading relies on SSH compression to reduce bandwidth usage when transferring files to and from build machines."
  4615. msgstr "下发任务依赖SSH压缩来减少传输文件到构建机器时使用的带宽。"
  4616. #. type: item
  4617. #: guix-git/doc/guix.texi:1288
  4618. #, no-wrap
  4619. msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  4620. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  4621. #. type: table
  4622. #: guix-git/doc/guix.texi:1291
  4623. msgid "File name of the Unix-domain socket @command{guix-daemon} is listening to on that machine."
  4624. msgstr "那台机器上的@command{guix-daemon}监听的Unix套接字文件名。"
  4625. #. type: item
  4626. #: guix-git/doc/guix.texi:1292
  4627. #, fuzzy, no-wrap
  4628. msgid "@code{overload-threshold} (default: @code{0.6})"
  4629. msgstr "@code{features} (@code{'()})"
  4630. #. type: table
  4631. #: guix-git/doc/guix.texi:1298
  4632. 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}."
  4633. msgstr ""
  4634. #. type: item
  4635. #: guix-git/doc/guix.texi:1299
  4636. #, no-wrap
  4637. msgid "@code{parallel-builds} (default: @code{1})"
  4638. msgstr "@code{parallel-builds}(默认值:@code{1})"
  4639. #. type: table
  4640. #: guix-git/doc/guix.texi:1301
  4641. msgid "The number of builds that may run in parallel on the machine."
  4642. msgstr "那台机器上可以并行运行的构建任务数量。"
  4643. #. type: item
  4644. #: guix-git/doc/guix.texi:1302
  4645. #, no-wrap
  4646. msgid "@code{speed} (default: @code{1.0})"
  4647. msgstr "@code{speed}(默认值:@code{1.0})"
  4648. #. type: table
  4649. #: guix-git/doc/guix.texi:1305
  4650. msgid "A ``relative speed factor''. The offload scheduler will tend to prefer machines with a higher speed factor."
  4651. msgstr "一个相对的速度值。下发调度器会偏好速度更快的机器。"
  4652. #. type: item
  4653. #: guix-git/doc/guix.texi:1306
  4654. #, no-wrap
  4655. msgid "@code{features} (default: @code{'()})"
  4656. msgstr "@code{features} (@code{'()})"
  4657. #. type: table
  4658. #: guix-git/doc/guix.texi:1311
  4659. 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."
  4660. msgstr "一个表示机器支持的功能的字符串列表。例如,@code{\"kvm\"}表示机器有KVM Linux模块和相关的硬件支持。Derivation可以通过名字请求需要的功能,然后被分发到匹配的机器的任务队列里。"
  4661. #. type: Plain text
  4662. #: guix-git/doc/guix.texi:1317
  4663. 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:"
  4664. msgstr "@command{guix}命令必须在构建机器的搜素路径里。你可以通过这个命令检查:"
  4665. #. type: example
  4666. #: guix-git/doc/guix.texi:1320
  4667. #, no-wrap
  4668. msgid "ssh build-machine guix repl --version\n"
  4669. msgstr "ssh build-machine guix repl --version\n"
  4670. #. type: Plain text
  4671. #: guix-git/doc/guix.texi:1327
  4672. 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}):"
  4673. msgstr "@file{machines.scm}到位后,还有一件要做的事。如上所述,下发任务时会在机器的仓库之间传输文件。为此,你需要在每台机器上生成一个密钥对,以使后台进程可以从仓库导出签名后的文件包(@pxref{Invoking guix archive}):"
  4674. #. type: example
  4675. #: guix-git/doc/guix.texi:1330 guix-git/doc/guix.texi:33366
  4676. #, no-wrap
  4677. msgid "# guix archive --generate-key\n"
  4678. msgstr "# guix archive --generate-key\n"
  4679. #. type: Plain text
  4680. #: guix-git/doc/guix.texi:1335
  4681. msgid "Each build machine must authorize the key of the master machine so that it accepts store items it receives from the master:"
  4682. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  4683. #. type: example
  4684. #: guix-git/doc/guix.texi:1338
  4685. #, no-wrap
  4686. msgid "# guix archive --authorize < master-public-key.txt\n"
  4687. msgstr "# guix archive --authorize < master-public-key.txt\n"
  4688. #. type: Plain text
  4689. #: guix-git/doc/guix.texi:1342
  4690. msgid "Likewise, the master machine must authorize the key of each build machine."
  4691. msgstr "类似的,主机器必须认证每台构建机器的公钥:"
  4692. #. type: Plain text
  4693. #: guix-git/doc/guix.texi:1348
  4694. 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."
  4695. msgstr "所有这些有关公钥的繁琐事宜都是为了表达主服务器和构建服务器之间成对的互相信任关系。具体地,当主机器从构建机器接收文件时(反之亦然),它的构建后台进程可以确保文件是原样的,没有被篡改,并且被认证的公钥签名过。"
  4696. #. type: cindex
  4697. #: guix-git/doc/guix.texi:1349
  4698. #, no-wrap
  4699. msgid "offload test"
  4700. msgstr "下发测试"
  4701. #. type: Plain text
  4702. #: guix-git/doc/guix.texi:1352
  4703. msgid "To test whether your setup is operational, run this command on the master node:"
  4704. msgstr "为了测试你的设置是否能正常工作,在主节点上运行这个命令:"
  4705. #. type: example
  4706. #: guix-git/doc/guix.texi:1355
  4707. #, no-wrap
  4708. msgid "# guix offload test\n"
  4709. msgstr "# guix offload test\n"
  4710. #. type: Plain text
  4711. #: guix-git/doc/guix.texi:1361
  4712. #, fuzzy
  4713. 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."
  4714. msgstr "这会尝试连接每台在@file{/etc/guix/machines.scm}里指定的构建机器,确保Guile和Guix模块在每台机器上都可用,尝试导出到这些机器和从这些机器导入,并且报告这个过程中遇到的任何错误。"
  4715. #. type: Plain text
  4716. #: guix-git/doc/guix.texi:1364
  4717. msgid "If you want to test a different machine file, just specify it on the command line:"
  4718. msgstr "如果你希望用别的文件测试,只需要在命令行指定它:"
  4719. #. type: example
  4720. #: guix-git/doc/guix.texi:1367
  4721. #, no-wrap
  4722. msgid "# guix offload test machines-qualif.scm\n"
  4723. msgstr "# guix offload test machines-qualif.scm\n"
  4724. #. type: Plain text
  4725. #: guix-git/doc/guix.texi:1371
  4726. msgid "Last, you can test the subset of the machines whose name matches a regular expression like this:"
  4727. msgstr "最后,你可以像这样只测试机器列表里名字匹配某个正则表达式的子集:"
  4728. #. type: example
  4729. #: guix-git/doc/guix.texi:1374
  4730. #, no-wrap
  4731. msgid "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  4732. msgstr "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  4733. #. type: cindex
  4734. #: guix-git/doc/guix.texi:1376
  4735. #, no-wrap
  4736. msgid "offload status"
  4737. msgstr "下发状态"
  4738. #. type: Plain text
  4739. #: guix-git/doc/guix.texi:1379
  4740. msgid "To display the current load of all build hosts, run this command on the main node:"
  4741. msgstr "若想展示所有构建主机的当前负载,在主节点上运行这个命令:"
  4742. #. type: example
  4743. #: guix-git/doc/guix.texi:1382
  4744. #, no-wrap
  4745. msgid "# guix offload status\n"
  4746. msgstr "# guix offload status\n"
  4747. #. type: cindex
  4748. #: guix-git/doc/guix.texi:1388
  4749. #, no-wrap
  4750. msgid "SELinux, daemon policy"
  4751. msgstr "SELinux,后台进程策略"
  4752. #. type: cindex
  4753. #: guix-git/doc/guix.texi:1389
  4754. #, no-wrap
  4755. msgid "mandatory access control, SELinux"
  4756. msgstr "强制访问控制,SELinux"
  4757. #. type: cindex
  4758. #: guix-git/doc/guix.texi:1390
  4759. #, no-wrap
  4760. msgid "security, guix-daemon"
  4761. msgstr "安全,guix-daemon"
  4762. #. type: Plain text
  4763. #: guix-git/doc/guix.texi:1396
  4764. 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."
  4765. msgstr "Guix附带一个SELinux策略文件,位置在@file{etc/guix-daemon.cil},它可以在启用SELinux的系统上安装,为Guix的文件添加标签及指定后台进程的期望行为。由于Guix系统不提供SELinux基础策略,这个后台进程策略不能在Guix系统上使用。"
  4766. #. type: subsubsection
  4767. #: guix-git/doc/guix.texi:1397
  4768. #, no-wrap
  4769. msgid "Installing the SELinux policy"
  4770. msgstr "安装SELinux策略"
  4771. #. type: cindex
  4772. #: guix-git/doc/guix.texi:1398
  4773. #, no-wrap
  4774. msgid "SELinux, policy installation"
  4775. msgstr "SELinux,安装策略"
  4776. #. type: Plain text
  4777. #: guix-git/doc/guix.texi:1400
  4778. msgid "To install the policy run this command as root:"
  4779. msgstr "用root用户执行这个命令以安装策略:"
  4780. #. type: example
  4781. #: guix-git/doc/guix.texi:1403
  4782. #, no-wrap
  4783. msgid "semodule -i etc/guix-daemon.cil\n"
  4784. msgstr "semodule -i etc/guix-daemon.cil\n"
  4785. #. type: Plain text
  4786. #: guix-git/doc/guix.texi:1407
  4787. msgid "Then relabel the file system with @code{restorecon} or by a different mechanism provided by your system."
  4788. msgstr "用@code{restorecon}或者你的系统提供的其它机制重新给文件系统打标签。"
  4789. #. type: Plain text
  4790. #: guix-git/doc/guix.texi:1412
  4791. 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:"
  4792. msgstr "一旦安装好策略,为文件系统重新打好标签,并且重启了后台进程,它应该在@code{guix_daemon_t}环境里运行。你可以用下面这个命令确认:"
  4793. #. type: example
  4794. #: guix-git/doc/guix.texi:1415
  4795. #, no-wrap
  4796. msgid "ps -Zax | grep guix-daemon\n"
  4797. msgstr "ps -Zax | grep guix-daemon\n"
  4798. #. type: Plain text
  4799. #: guix-git/doc/guix.texi:1420
  4800. 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."
  4801. msgstr "运行@code{guix build hello}之类的命令并监控SELinux日志以说服你自己SELinux允许所有的操作。"
  4802. #. type: cindex
  4803. #: guix-git/doc/guix.texi:1422
  4804. #, no-wrap
  4805. msgid "SELinux, limitations"
  4806. msgstr "SELinux,限制"
  4807. #. type: Plain text
  4808. #: guix-git/doc/guix.texi:1427
  4809. 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."
  4810. msgstr "这个策略不是完美的。这里有一个关于限制和缺陷的列表,当为Guix后台进程部署提供的SELinux策略时该认真考虑。"
  4811. #. type: enumerate
  4812. #: guix-git/doc/guix.texi:1434
  4813. #, fuzzy
  4814. 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."
  4815. msgstr "@code{guix_daemon_socket_t}没有被实际使用。所有的套接字操作都和@code{guix_daemon_socket_t}没有任何关系。存在这个没被使用的标签并不碍事,但是为这个标签定义套接字规则是更好的选择。"
  4816. #. type: enumerate
  4817. #: guix-git/doc/guix.texi:1445
  4818. 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."
  4819. msgstr "@code{guix gc}不可以任意访问指向profile的链接。由于设计的原因,符号链接的目标的文件标签和符号链接本身的文件标签是不同的。尽管$localstatedir里的所有profile都被打上了标签,指向这些profile的符号链接继承它们所在的文件夹的标签。对于普通用户的家目录里的链接,标签是@code{user_home_t}。但是对于root用户的家目录,或@file{/tmp},或HTTP服务器的工作目录等文件夹里的链接不是这样。@code{guix gc}会被阻止读取和跟随这些链接。"
  4820. #. type: enumerate
  4821. #: guix-git/doc/guix.texi:1450
  4822. 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."
  4823. msgstr "后台进程监听TCP连接的功能不再可用。这可能需要额外的规则,因为SELinux区别对待网络套接字和文件。"
  4824. #. type: enumerate
  4825. #: guix-git/doc/guix.texi:1461
  4826. 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."
  4827. 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无法阻止它访问所在域的进程可以访问的文件。"
  4828. #. type: enumerate
  4829. #: guix-git/doc/guix.texi:1466
  4830. 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."
  4831. msgstr ""
  4832. #. type: enumerate
  4833. #: guix-git/doc/guix.texi:1474
  4834. 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."
  4835. msgstr "我们可以在安装时生成一个更严格的策略,仅当前安装的@code{guix-daemon}的@emph{精确的}的文件名会被打上@code{guix_daemon_exec_t}标签,而不是用一个宽泛的正则表达式。这样的缺点是root必须在每次安装提供@code{guix-daemon}的Guix软件包时安装或升级策略。"
  4836. #. type: section
  4837. #: guix-git/doc/guix.texi:1477
  4838. #, no-wrap
  4839. msgid "Invoking @command{guix-daemon}"
  4840. msgstr "调用@command{guix-daemon}"
  4841. #. type: Plain text
  4842. #: guix-git/doc/guix.texi:1483
  4843. 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:"
  4844. msgstr "@command{guix-daemon}程序实现了所有访问仓库的功能。包括启动构建进程,运行垃圾回收器,查询构建结果,等。它通常以@code{root}身份运行:"
  4845. #. type: Plain text
  4846. #: guix-git/doc/guix.texi:1490
  4847. msgid "For details on how to set it up, @pxref{Setting Up the Daemon}."
  4848. msgstr "关于如何设置它,@pxref{Setting Up the Daemon}。"
  4849. #. type: cindex
  4850. #: guix-git/doc/guix.texi:1492
  4851. #, no-wrap
  4852. msgid "container, build environment"
  4853. msgstr "容器,构建环境"
  4854. #. type: cindex
  4855. #: guix-git/doc/guix.texi:1494 guix-git/doc/guix.texi:3011
  4856. #: guix-git/doc/guix.texi:3910 guix-git/doc/guix.texi:12780
  4857. #, no-wrap
  4858. msgid "reproducible builds"
  4859. msgstr "可复现的构建"
  4860. #. type: Plain text
  4861. #: guix-git/doc/guix.texi:1506
  4862. #, fuzzy
  4863. 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})."
  4864. 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})。"
  4865. #. type: Plain text
  4866. #: guix-git/doc/guix.texi:1512
  4867. #, fuzzy
  4868. 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}."
  4869. msgstr "当后台进程代替用户执行构建时,它在@file{/tmp}或@code{TMPDIR}环境变量指定的文件夹里创建一个文件夹。在构建期间,这个文件夹被共享给容器,然而容器内,这个构建树总是叫做@file{/tmp/guix-build-@var{name}.drv-0}。"
  4870. #. type: Plain text
  4871. #: guix-git/doc/guix.texi:1516
  4872. #, fuzzy
  4873. 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}})."
  4874. msgstr "结束时构建文件夹就被自动删除了,除非构建失败并且客户端指定了@option{--keep-failed}参数(@pxref{Invoking guix build, @option{--keep-failed}})。"
  4875. #. type: Plain text
  4876. #: guix-git/doc/guix.texi:1522
  4877. #, fuzzy
  4878. 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."
  4879. msgstr "后台进程监听连接并且为每个客户端(@command{guix}的子命令)启动的会话生成一个子进程。@command{guix processes}命令允许你获取系统上的活动的概况,浏览每个活动会话和客户端。@xref{Invoking guix processes},以了解更多信息。"
  4880. #. type: Plain text
  4881. #: guix-git/doc/guix.texi:1524
  4882. msgid "The following command-line options are supported:"
  4883. msgstr "下面这些命令行选项受支持:"
  4884. #. type: item
  4885. #: guix-git/doc/guix.texi:1526
  4886. #, no-wrap
  4887. msgid "--build-users-group=@var{group}"
  4888. msgstr "--build-users-group=@var{用户组}"
  4889. #. type: table
  4890. #: guix-git/doc/guix.texi:1529
  4891. msgid "Take users from @var{group} to run build processes (@pxref{Setting Up the Daemon, build users})."
  4892. msgstr "这会从@var{用户组}里选取用户,以运行构建进程(@pxref{Setting Up the Daemon,构建用户})。"
  4893. #. type: item
  4894. #: guix-git/doc/guix.texi:1530 guix-git/doc/guix.texi:10265
  4895. #, no-wrap
  4896. msgid "--no-substitutes"
  4897. msgstr "--no-substitutes"
  4898. #. type: cindex
  4899. #: guix-git/doc/guix.texi:1531 guix-git/doc/guix.texi:3023
  4900. #: guix-git/doc/guix.texi:3668
  4901. #, no-wrap
  4902. msgid "substitutes"
  4903. msgstr "substitutes"
  4904. #. type: table
  4905. #: guix-git/doc/guix.texi:1535 guix-git/doc/guix.texi:10269
  4906. msgid "Do not use substitutes for build products. That is, always build things locally instead of allowing downloads of pre-built binaries (@pxref{Substitutes})."
  4907. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  4908. #. type: table
  4909. #: guix-git/doc/guix.texi:1539
  4910. #, fuzzy
  4911. 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})."
  4912. msgstr "当后台进程用@code{--no-substitutes}参数启动时,客户端仍然可以显式地@i{通过}@code{set-build-options}远程过程调用来启用substitute(@pxref{The Store})。"
  4913. #. type: anchor{#1}
  4914. #: guix-git/doc/guix.texi:1541
  4915. msgid "daemon-substitute-urls"
  4916. msgstr "daemon-substitute-urls"
  4917. #. type: item
  4918. #: guix-git/doc/guix.texi:1541 guix-git/doc/guix.texi:10252
  4919. #: guix-git/doc/guix.texi:12211 guix-git/doc/guix.texi:12926
  4920. #: guix-git/doc/guix.texi:13151
  4921. #, no-wrap
  4922. msgid "--substitute-urls=@var{urls}"
  4923. msgstr "--substitute-urls=@var{urls}"
  4924. #. type: table
  4925. #: guix-git/doc/guix.texi:1545
  4926. 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."
  4927. msgstr "@var{urls}是用空格分隔的substitute源URL列表。当这个选项被省略时,默认使用@indicateurl{https://@value{SUBSTITUTE-SERVER}}。"
  4928. #. type: table
  4929. #: guix-git/doc/guix.texi:1548
  4930. msgid "This means that substitutes may be downloaded from @var{urls}, as long as they are signed by a trusted signature (@pxref{Substitutes})."
  4931. msgstr "这意味着可以从@var{urls}下载substitute,只要它们的签名可信(@pxref{Substitutes})。"
  4932. #. type: table
  4933. #: guix-git/doc/guix.texi:1551
  4934. msgid "@xref{Getting Substitutes from Other Servers}, for more information on how to configure the daemon to get substitutes from other servers."
  4935. msgstr ""
  4936. #. type: item
  4937. #: guix-git/doc/guix.texi:1553 guix-git/doc/guix.texi:10288
  4938. #, fuzzy, no-wrap
  4939. msgid "--no-offload"
  4940. msgstr "下发"
  4941. #. type: table
  4942. #: guix-git/doc/guix.texi:1557 guix-git/doc/guix.texi:10292
  4943. #, fuzzy
  4944. 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."
  4945. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  4946. #. type: item
  4947. #: guix-git/doc/guix.texi:1558
  4948. #, no-wrap
  4949. msgid "--cache-failures"
  4950. msgstr "--cache-failures"
  4951. #. type: table
  4952. #: guix-git/doc/guix.texi:1560
  4953. msgid "Cache build failures. By default, only successful builds are cached."
  4954. msgstr "缓存失败的构建。默认地,只缓存成功的构建。"
  4955. #. type: table
  4956. #: guix-git/doc/guix.texi:1565
  4957. 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}."
  4958. msgstr "当这个选项被使用时,可以用@command{guix gc --list-failures}查询被标记为失败的仓库文件;@command{guix gc --clear-failures}从仓库里删除失败的缓存。@xref{Invoking guix gc}。"
  4959. #. type: item
  4960. #: guix-git/doc/guix.texi:1566 guix-git/doc/guix.texi:10318
  4961. #, no-wrap
  4962. msgid "--cores=@var{n}"
  4963. msgstr "--cores=@var{n}"
  4964. #. type: itemx
  4965. #: guix-git/doc/guix.texi:1567 guix-git/doc/guix.texi:10319
  4966. #, no-wrap
  4967. msgid "-c @var{n}"
  4968. msgstr "-c @var{n}"
  4969. #. type: table
  4970. #: guix-git/doc/guix.texi:1570
  4971. msgid "Use @var{n} CPU cores to build each derivation; @code{0} means as many as available."
  4972. msgstr "用@var{n}个CPU核来构建每个derivation;@code{0}表示有多少就用多少。"
  4973. #. type: table
  4974. #: guix-git/doc/guix.texi:1574
  4975. #, fuzzy
  4976. 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})."
  4977. msgstr "默认值是@code{0},但是它的值可以被客户端覆盖,例如@command{guix build}的@code{--cores}选项(@pxref{Invoking guix build})。"
  4978. #. type: table
  4979. #: guix-git/doc/guix.texi:1578
  4980. #, fuzzy
  4981. 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}."
  4982. msgstr "他的作用是在构建进程里设置@code{NIX_BUILD_CORES}环境变量,从而用它来利用内部的并行机制--例如,通过运行@code{make -j$NIX_BUILD_CORES}。"
  4983. #. type: item
  4984. #: guix-git/doc/guix.texi:1579 guix-git/doc/guix.texi:10323
  4985. #, no-wrap
  4986. msgid "--max-jobs=@var{n}"
  4987. msgstr "--max-jobs=@var{n}"
  4988. #. type: itemx
  4989. #: guix-git/doc/guix.texi:1580 guix-git/doc/guix.texi:10324
  4990. #, no-wrap
  4991. msgid "-M @var{n}"
  4992. msgstr "-M @var{n}"
  4993. #. type: table
  4994. #: guix-git/doc/guix.texi:1585
  4995. 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."
  4996. msgstr "最多允许@var{n}个并行的构建任务。默认值是@code{1}。设置为@code{0}表示不在本地执行构建;而是下发构建任务(@pxref{Daemon Offload Setup}),或者直接失败。"
  4997. #. type: item
  4998. #: guix-git/doc/guix.texi:1586 guix-git/doc/guix.texi:10293
  4999. #, no-wrap
  5000. msgid "--max-silent-time=@var{seconds}"
  5001. msgstr "--max-silent-time=@var{seconds}"
  5002. #. type: table
  5003. #: guix-git/doc/guix.texi:1589 guix-git/doc/guix.texi:10296
  5004. msgid "When the build or substitution process remains silent for more than @var{seconds}, terminate it and report a build failure."
  5005. msgstr "当构建或substitution进程超过@var{seconds}秒仍然保持静默,就把它结束掉并报告构建失败。"
  5006. #. type: table
  5007. #: guix-git/doc/guix.texi:1591 guix-git/doc/guix.texi:1600
  5008. msgid "The default value is @code{0}, which disables the timeout."
  5009. msgstr "默认值是@code{0},表示关闭超时。"
  5010. #. type: table
  5011. #: guix-git/doc/guix.texi:1594
  5012. #, fuzzy
  5013. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--max-silent-time}})."
  5014. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--max-silent-time}})。"
  5015. #. type: item
  5016. #: guix-git/doc/guix.texi:1595 guix-git/doc/guix.texi:10300
  5017. #, no-wrap
  5018. msgid "--timeout=@var{seconds}"
  5019. msgstr "--timeout=@var{seconds}"
  5020. #. type: table
  5021. #: guix-git/doc/guix.texi:1598 guix-git/doc/guix.texi:10303
  5022. msgid "Likewise, when the build or substitution process lasts for more than @var{seconds}, terminate it and report a build failure."
  5023. msgstr "类似地,当构建或substitution进程执行超过@var{seconds}秒,就把它结束掉并报告构建失败。"
  5024. #. type: table
  5025. #: guix-git/doc/guix.texi:1603
  5026. #, fuzzy
  5027. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--timeout}})."
  5028. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--timeout}})。"
  5029. #. type: item
  5030. #: guix-git/doc/guix.texi:1604
  5031. #, no-wrap
  5032. msgid "--rounds=@var{N}"
  5033. msgstr "--rounds=@var{N}"
  5034. #. type: table
  5035. #: guix-git/doc/guix.texi:1609
  5036. 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})."
  5037. msgstr "为每个derivation构建@var{n}次,如果连续的构建结果不是每个比特都相同就报告错误。这个设置可以被@command{guix build}之类的客户端覆盖(@pxref{Invoking guix build})。"
  5038. #. type: table
  5039. #: guix-git/doc/guix.texi:1613 guix-git/doc/guix.texi:10287
  5040. #: guix-git/doc/guix.texi:10849
  5041. 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."
  5042. msgstr "当和@option{--keep-failed}一起使用时,不同的输出保存在@file{/gnu/store/@dots{}-check}。这让检查两个结果的区别更容易。"
  5043. #. type: item
  5044. #: guix-git/doc/guix.texi:1614
  5045. #, no-wrap
  5046. msgid "--debug"
  5047. msgstr "--debug"
  5048. #. type: table
  5049. #: guix-git/doc/guix.texi:1616
  5050. msgid "Produce debugging output."
  5051. msgstr "生成调试输出。"
  5052. #. type: table
  5053. #: guix-git/doc/guix.texi:1620
  5054. #, fuzzy
  5055. 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})."
  5056. msgstr "这对调试后台进程的启动问题很有用,但是之后它可能会被客户端覆盖,例如@command{guix build}命令的@code{--verbosity}选项(@pxref{Invoking guix build})。"
  5057. #. type: item
  5058. #: guix-git/doc/guix.texi:1621
  5059. #, no-wrap
  5060. msgid "--chroot-directory=@var{dir}"
  5061. msgstr "--chroot-directory=@var{dir}"
  5062. #. type: table
  5063. #: guix-git/doc/guix.texi:1623
  5064. msgid "Add @var{dir} to the build chroot."
  5065. msgstr "把@var{dir}添加到构建的chroot。"
  5066. #. type: table
  5067. #: guix-git/doc/guix.texi:1629
  5068. 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."
  5069. msgstr "这么做可能会改变构建进程的结果--例如,如果它们使用了在@var{dir}里发现的可选依赖。因此,建议不要这么做,而是确保每个derivation声明所需的全部输入。"
  5070. #. type: item
  5071. #: guix-git/doc/guix.texi:1630
  5072. #, no-wrap
  5073. msgid "--disable-chroot"
  5074. msgstr "--disable-chroot"
  5075. #. type: table
  5076. #: guix-git/doc/guix.texi:1632
  5077. msgid "Disable chroot builds."
  5078. msgstr "关闭chroot构建。"
  5079. #. type: table
  5080. #: guix-git/doc/guix.texi:1637
  5081. 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."
  5082. msgstr "不建议使用这个选项,因为它会允许构建进程访问到没被声明的依赖。但是,当@command{guix-daemon}以没有特权的用户身份运行时,这个选项是必须的。"
  5083. #. type: item
  5084. #: guix-git/doc/guix.texi:1638
  5085. #, no-wrap
  5086. msgid "--log-compression=@var{type}"
  5087. msgstr "--log-compression=@var{type}"
  5088. #. type: table
  5089. #: guix-git/doc/guix.texi:1641
  5090. msgid "Compress build logs according to @var{type}, one of @code{gzip}, @code{bzip2}, or @code{none}."
  5091. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  5092. #. type: table
  5093. #: guix-git/doc/guix.texi:1645
  5094. #, fuzzy
  5095. 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."
  5096. msgstr "除非使用了@code{--lose-logs},所有的构建日志都保存在@var{localstatedir}里。为了节省空间,后台进程默认使用bzip2对它们进行压缩。"
  5097. #. type: item
  5098. #: guix-git/doc/guix.texi:1646
  5099. #, no-wrap
  5100. msgid "--discover[=yes|no]"
  5101. msgstr ""
  5102. #. type: table
  5103. #: guix-git/doc/guix.texi:1649 guix-git/doc/guix.texi:15467
  5104. msgid "Whether to discover substitute servers on the local network using mDNS and DNS-SD."
  5105. msgstr ""
  5106. #. type: table
  5107. #: guix-git/doc/guix.texi:1652
  5108. msgid "This feature is still experimental. However, here are a few considerations."
  5109. msgstr ""
  5110. #. type: enumerate
  5111. #: guix-git/doc/guix.texi:1656
  5112. msgid "It might be faster/less expensive than fetching from remote servers;"
  5113. msgstr ""
  5114. #. type: enumerate
  5115. #: guix-git/doc/guix.texi:1659
  5116. msgid "There are no security risks, only genuine substitutes will be used (@pxref{Substitute Authentication});"
  5117. msgstr ""
  5118. #. type: enumerate
  5119. #: guix-git/doc/guix.texi:1663
  5120. msgid "An attacker advertising @command{guix publish} on your LAN cannot serve you malicious binaries, but they can learn what software you’re installing;"
  5121. msgstr ""
  5122. #. type: enumerate
  5123. #: guix-git/doc/guix.texi:1666
  5124. msgid "Servers may serve substitute over HTTP, unencrypted, so anyone on the LAN can see what software you’re installing."
  5125. msgstr ""
  5126. #. type: table
  5127. #: guix-git/doc/guix.texi:1670
  5128. msgid "It is also possible to enable or disable substitute server discovery at run-time by running:"
  5129. msgstr ""
  5130. #. type: example
  5131. #: guix-git/doc/guix.texi:1674
  5132. #, no-wrap
  5133. msgid ""
  5134. "herd discover guix-daemon on\n"
  5135. "herd discover guix-daemon off\n"
  5136. msgstr ""
  5137. #. type: item
  5138. #: guix-git/doc/guix.texi:1676
  5139. #, no-wrap
  5140. msgid "--disable-deduplication"
  5141. msgstr "--disable-deduplication"
  5142. #. type: cindex
  5143. #: guix-git/doc/guix.texi:1677 guix-git/doc/guix.texi:4248
  5144. #, no-wrap
  5145. msgid "deduplication"
  5146. msgstr "去重"
  5147. #. type: table
  5148. #: guix-git/doc/guix.texi:1679
  5149. msgid "Disable automatic file ``deduplication'' in the store."
  5150. msgstr "关闭自动对仓库文件“去重”。"
  5151. #. type: table
  5152. #: guix-git/doc/guix.texi:1686
  5153. 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."
  5154. msgstr "默认地,添加到仓库的文件会被自动“去重”:如果新添加的文件和仓库里找到的某个文件完全相同,后台进程把这个新文件变成另一个文件的硬链接。这可以明显地减少硬盘使用,代价是构建结束后轻微地增加输入/输出负载。这个选项关闭这个优化。"
  5155. #. type: item
  5156. #: guix-git/doc/guix.texi:1687
  5157. #, no-wrap
  5158. msgid "--gc-keep-outputs[=yes|no]"
  5159. msgstr "--gc-keep-outputs[=yes|no]"
  5160. #. type: table
  5161. #: guix-git/doc/guix.texi:1690
  5162. msgid "Tell whether the garbage collector (GC) must keep outputs of live derivations."
  5163. msgstr "垃圾收集器(GC)是否必须保留存活的derivation的输出。"
  5164. #. type: cindex
  5165. #: guix-git/doc/guix.texi:1691 guix-git/doc/guix.texi:4061
  5166. #, no-wrap
  5167. msgid "GC roots"
  5168. msgstr "GC根"
  5169. #. type: cindex
  5170. #: guix-git/doc/guix.texi:1692 guix-git/doc/guix.texi:4062
  5171. #, no-wrap
  5172. msgid "garbage collector roots"
  5173. msgstr "垃圾收集的根"
  5174. #. type: table
  5175. #: guix-git/doc/guix.texi:1698
  5176. #, fuzzy
  5177. 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."
  5178. msgstr "当设置为“yes”时,GC会保留仓库里每个存活的derivation(@code{.drv}文件)的输出。默认是“no”,表示只有当从GC根可以访问时才保留derivation的输出。@xref{Invoking guix gc},了解更多关于GC根的信息。"
  5179. #. type: item
  5180. #: guix-git/doc/guix.texi:1699
  5181. #, no-wrap
  5182. msgid "--gc-keep-derivations[=yes|no]"
  5183. msgstr "--gc-keep-derivations[=yes|no]"
  5184. #. type: table
  5185. #: guix-git/doc/guix.texi:1702
  5186. msgid "Tell whether the garbage collector (GC) must keep derivations corresponding to live outputs."
  5187. msgstr "垃圾收集器(GC)是否必须保留和存活的输出相关的derivation。"
  5188. #. type: table
  5189. #: guix-git/doc/guix.texi:1708
  5190. #, fuzzy
  5191. 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."
  5192. msgstr "当设置为“yes”时(默认),只要derivation(即@code{.drv}文件)的输出至少有一个是存活的,GC就将其保留。这让用户可以追踪仓库里物品的源头。设置为“no”可以节省一点硬盘空间。"
  5193. #. type: table
  5194. #: guix-git/doc/guix.texi:1717
  5195. #, fuzzy
  5196. 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."
  5197. msgstr "这样,设置@code{--gc-keep-derivations}为“yes”使存活性从“输出”传递到“derivation”,设置@code{--gc-keep-outputs}为“yes”使存活性从“derivation”传递到“输出”。当两者都设置为“yes”时,效果是保留所有在仓库里的存活对象的构建先决条件(源代码,编译器,库,和其它构建时的工具),不管这些先决条件是否能从某个GC根访问到。这对开发者来说很方便,因为它避免了重复构建和下载。"
  5198. #. type: item
  5199. #: guix-git/doc/guix.texi:1718
  5200. #, no-wrap
  5201. msgid "--impersonate-linux-2.6"
  5202. msgstr "--impersonate-linux-2.6"
  5203. #. type: table
  5204. #: guix-git/doc/guix.texi:1721
  5205. #, fuzzy
  5206. 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."
  5207. msgstr "在基于Linux的系统上,伪装成Linux 2.6。这意味着内核的@code{uname}系统调用会把版本号报告为2.6。"
  5208. #. type: table
  5209. #: guix-git/doc/guix.texi:1724
  5210. msgid "This might be helpful to build programs that (usually wrongfully) depend on the kernel version number."
  5211. msgstr "这可能会有助于构建那些(通常是错误地)依赖内核版本号的程序。"
  5212. #. type: item
  5213. #: guix-git/doc/guix.texi:1725
  5214. #, no-wrap
  5215. msgid "--lose-logs"
  5216. msgstr "--lose-logs"
  5217. #. type: table
  5218. #: guix-git/doc/guix.texi:1728
  5219. #, fuzzy
  5220. msgid "Do not keep build logs. By default they are kept under @file{@var{localstatedir}/guix/log}."
  5221. msgstr "不保留构建日志。默认保存在@code{@var{localstatedir}/guix/log}。"
  5222. #. type: item
  5223. #: guix-git/doc/guix.texi:1729 guix-git/doc/guix.texi:4489
  5224. #: guix-git/doc/guix.texi:5788 guix-git/doc/guix.texi:6159
  5225. #: guix-git/doc/guix.texi:10793 guix-git/doc/guix.texi:12238
  5226. #: guix-git/doc/guix.texi:12489 guix-git/doc/guix.texi:13156
  5227. #: guix-git/doc/guix.texi:32309 guix-git/doc/guix.texi:33108
  5228. #, no-wrap
  5229. msgid "--system=@var{system}"
  5230. msgstr "--system=@var{system}"
  5231. #. type: table
  5232. #: guix-git/doc/guix.texi:1733
  5233. 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}."
  5234. msgstr "假设@var{system}是当前的系统类型。默认值是configure时发现的架构/内核元组,如@code{x86_64-linux}。"
  5235. #. type: item
  5236. #: guix-git/doc/guix.texi:1734 guix-git/doc/guix.texi:10098
  5237. #, no-wrap
  5238. msgid "--listen=@var{endpoint}"
  5239. msgstr "--listen=@var{endpoint}"
  5240. #. type: table
  5241. #: guix-git/doc/guix.texi:1739
  5242. 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:"
  5243. msgstr ""
  5244. #. type: item
  5245. #: guix-git/doc/guix.texi:1741
  5246. #, no-wrap
  5247. msgid "--listen=/gnu/var/daemon"
  5248. msgstr ""
  5249. #. type: table
  5250. #: guix-git/doc/guix.texi:1744
  5251. msgid "Listen for connections on the @file{/gnu/var/daemon} Unix-domain socket, creating it if needed."
  5252. msgstr ""
  5253. #. type: item
  5254. #: guix-git/doc/guix.texi:1745
  5255. #, no-wrap
  5256. msgid "--listen=localhost"
  5257. msgstr ""
  5258. #. type: cindex
  5259. #: guix-git/doc/guix.texi:1746 guix-git/doc/guix.texi:8782
  5260. #, no-wrap
  5261. msgid "daemon, remote access"
  5262. msgstr ""
  5263. #. type: cindex
  5264. #: guix-git/doc/guix.texi:1747 guix-git/doc/guix.texi:8783
  5265. #, no-wrap
  5266. msgid "remote access to the daemon"
  5267. msgstr ""
  5268. #. type: cindex
  5269. #: guix-git/doc/guix.texi:1748 guix-git/doc/guix.texi:8784
  5270. #, no-wrap
  5271. msgid "daemon, cluster setup"
  5272. msgstr ""
  5273. #. type: cindex
  5274. #: guix-git/doc/guix.texi:1749 guix-git/doc/guix.texi:8785
  5275. #, no-wrap
  5276. msgid "clusters, daemon setup"
  5277. msgstr ""
  5278. #. type: table
  5279. #: guix-git/doc/guix.texi:1752
  5280. msgid "Listen for TCP connections on the network interface corresponding to @code{localhost}, on port 44146."
  5281. msgstr ""
  5282. #. type: item
  5283. #: guix-git/doc/guix.texi:1753
  5284. #, no-wrap
  5285. msgid "--listen=128.0.0.42:1234"
  5286. msgstr ""
  5287. #. type: table
  5288. #: guix-git/doc/guix.texi:1756
  5289. msgid "Listen for TCP connections on the network interface corresponding to @code{128.0.0.42}, on port 1234."
  5290. msgstr ""
  5291. #. type: table
  5292. #: guix-git/doc/guix.texi:1763
  5293. 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}})."
  5294. msgstr ""
  5295. #. type: quotation
  5296. #: guix-git/doc/guix.texi:1770
  5297. 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."
  5298. msgstr ""
  5299. #. type: table
  5300. #: guix-git/doc/guix.texi:1775
  5301. 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}."
  5302. msgstr ""
  5303. #. type: Plain text
  5304. #: guix-git/doc/guix.texi:1785
  5305. 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."
  5306. msgstr ""
  5307. #. type: anchor{#1}
  5308. #: guix-git/doc/guix.texi:1789
  5309. msgid "locales-and-locpath"
  5310. msgstr ""
  5311. #. type: cindex
  5312. #: guix-git/doc/guix.texi:1789
  5313. #, no-wrap
  5314. msgid "locales, when not on Guix System"
  5315. msgstr ""
  5316. #. type: vindex
  5317. #: guix-git/doc/guix.texi:1790 guix-git/doc/guix.texi:14686
  5318. #, no-wrap
  5319. msgid "LOCPATH"
  5320. msgstr ""
  5321. #. type: vindex
  5322. #: guix-git/doc/guix.texi:1791
  5323. #, no-wrap
  5324. msgid "GUIX_LOCPATH"
  5325. msgstr ""
  5326. #. type: Plain text
  5327. #: guix-git/doc/guix.texi:1796
  5328. 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:"
  5329. msgstr ""
  5330. #. type: example
  5331. #: guix-git/doc/guix.texi:1800
  5332. #, no-wrap
  5333. msgid ""
  5334. "$ guix install glibc-locales\n"
  5335. "$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale\n"
  5336. msgstr ""
  5337. #. type: Plain text
  5338. #: guix-git/doc/guix.texi:1806
  5339. 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."
  5340. msgstr ""
  5341. #. type: Plain text
  5342. #: guix-git/doc/guix.texi:1810
  5343. 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:"
  5344. msgstr ""
  5345. #. type: enumerate
  5346. #: guix-git/doc/guix.texi:1817
  5347. 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."
  5348. msgstr ""
  5349. #. type: enumerate
  5350. #: guix-git/doc/guix.texi:1824
  5351. 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."
  5352. msgstr ""
  5353. #. type: Plain text
  5354. #: guix-git/doc/guix.texi:1828
  5355. msgid "This is important because the locale data format used by different libc versions may be incompatible."
  5356. msgstr ""
  5357. #. type: cindex
  5358. #: guix-git/doc/guix.texi:1831
  5359. #, no-wrap
  5360. msgid "name service switch, glibc"
  5361. msgstr ""
  5362. #. type: cindex
  5363. #: guix-git/doc/guix.texi:1832
  5364. #, no-wrap
  5365. msgid "NSS (name service switch), glibc"
  5366. msgstr ""
  5367. #. type: cindex
  5368. #: guix-git/doc/guix.texi:1833
  5369. #, no-wrap
  5370. msgid "nscd (name service caching daemon)"
  5371. msgstr ""
  5372. #. type: cindex
  5373. #: guix-git/doc/guix.texi:1834
  5374. #, no-wrap
  5375. msgid "name service caching daemon (nscd)"
  5376. msgstr ""
  5377. #. type: Plain text
  5378. #: guix-git/doc/guix.texi:1841
  5379. 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."
  5380. msgstr ""
  5381. #. type: file{#1}
  5382. #: guix-git/doc/guix.texi:1842
  5383. #, no-wrap
  5384. msgid "nsswitch.conf"
  5385. msgstr ""
  5386. #. type: Plain text
  5387. #: guix-git/doc/guix.texi:1847
  5388. 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})."
  5389. msgstr ""
  5390. #. type: cindex
  5391. #: guix-git/doc/guix.texi:1848
  5392. #, no-wrap
  5393. msgid "Network information service (NIS)"
  5394. msgstr ""
  5395. #. type: cindex
  5396. #: guix-git/doc/guix.texi:1849
  5397. #, no-wrap
  5398. msgid "NIS (Network information service)"
  5399. msgstr ""
  5400. #. type: Plain text
  5401. #: guix-git/doc/guix.texi:1858
  5402. 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})."
  5403. msgstr ""
  5404. #. type: Plain text
  5405. #: guix-git/doc/guix.texi:1868
  5406. 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)."
  5407. msgstr ""
  5408. #. type: Plain text
  5409. #: guix-git/doc/guix.texi:1873
  5410. 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."
  5411. msgstr ""
  5412. #. type: Plain text
  5413. #: guix-git/doc/guix.texi:1878
  5414. 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."
  5415. msgstr ""
  5416. #. type: subsection
  5417. #: guix-git/doc/guix.texi:1879
  5418. #, no-wrap
  5419. msgid "X11 Fonts"
  5420. msgstr ""
  5421. #. type: Plain text
  5422. #: guix-git/doc/guix.texi:1889
  5423. 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}."
  5424. msgstr ""
  5425. #. type: code{#1}
  5426. #: guix-git/doc/guix.texi:1890
  5427. #, no-wrap
  5428. msgid "fc-cache"
  5429. msgstr ""
  5430. #. type: cindex
  5431. #: guix-git/doc/guix.texi:1891
  5432. #, no-wrap
  5433. msgid "font cache"
  5434. msgstr ""
  5435. #. type: Plain text
  5436. #: guix-git/doc/guix.texi:1895
  5437. 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:"
  5438. msgstr ""
  5439. #. type: example
  5440. #: guix-git/doc/guix.texi:1899
  5441. #, no-wrap
  5442. msgid ""
  5443. "guix install fontconfig\n"
  5444. "fc-cache -rv\n"
  5445. msgstr ""
  5446. #. type: Plain text
  5447. #: guix-git/doc/guix.texi:1907
  5448. 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:"
  5449. msgstr ""
  5450. #. type: example
  5451. #: guix-git/doc/guix.texi:1910
  5452. #, no-wrap
  5453. msgid "guix install font-adobe-source-han-sans:cn\n"
  5454. msgstr ""
  5455. #. type: code{#1}
  5456. #: guix-git/doc/guix.texi:1912
  5457. #, no-wrap
  5458. msgid "xterm"
  5459. msgstr ""
  5460. #. type: Plain text
  5461. #: guix-git/doc/guix.texi:1916
  5462. 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:"
  5463. msgstr ""
  5464. #. type: example
  5465. #: guix-git/doc/guix.texi:1919
  5466. #, no-wrap
  5467. msgid "-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1\n"
  5468. msgstr ""
  5469. #. type: Plain text
  5470. #: guix-git/doc/guix.texi:1923
  5471. 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:"
  5472. msgstr ""
  5473. #. type: example
  5474. #: guix-git/doc/guix.texi:1928
  5475. #, no-wrap
  5476. msgid "xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))\n"
  5477. msgstr ""
  5478. #. type: code{#1}
  5479. #: guix-git/doc/guix.texi:1930
  5480. #, no-wrap
  5481. msgid "xlsfonts"
  5482. msgstr ""
  5483. #. type: Plain text
  5484. #: guix-git/doc/guix.texi:1933
  5485. msgid "After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) to make sure your TrueType fonts are listed there."
  5486. msgstr ""
  5487. #. type: code{#1}
  5488. #: guix-git/doc/guix.texi:1937 guix-git/doc/guix.texi:32047
  5489. #, no-wrap
  5490. msgid "nss-certs"
  5491. msgstr ""
  5492. #. type: Plain text
  5493. #: guix-git/doc/guix.texi:1940
  5494. msgid "The @code{nss-certs} package provides X.509 certificates, which allow programs to authenticate Web servers accessed over HTTPS."
  5495. msgstr ""
  5496. #. type: Plain text
  5497. #: guix-git/doc/guix.texi:1945
  5498. 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."
  5499. msgstr ""
  5500. #. type: code{#1}
  5501. #: guix-git/doc/guix.texi:1948
  5502. #, no-wrap
  5503. msgid "emacs"
  5504. msgstr ""
  5505. #. type: Plain text
  5506. #: guix-git/doc/guix.texi:1954
  5507. 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."
  5508. msgstr ""
  5509. #. type: Plain text
  5510. #: guix-git/doc/guix.texi:1961
  5511. 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})."
  5512. msgstr ""
  5513. #. type: cindex
  5514. #: guix-git/doc/guix.texi:1966
  5515. #, no-wrap
  5516. msgid "Upgrading Guix, on a foreign distro"
  5517. msgstr ""
  5518. #. type: Plain text
  5519. #: guix-git/doc/guix.texi:1969
  5520. msgid "To upgrade Guix, run:"
  5521. msgstr ""
  5522. #. type: example
  5523. #: guix-git/doc/guix.texi:1972 guix-git/doc/guix.texi:2819
  5524. #, no-wrap
  5525. msgid "guix pull\n"
  5526. msgstr "guix pull\n"
  5527. #. type: Plain text
  5528. #: guix-git/doc/guix.texi:1975
  5529. #, fuzzy
  5530. msgid "@xref{Invoking guix pull}, for more information."
  5531. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  5532. #. type: cindex
  5533. #: guix-git/doc/guix.texi:1976
  5534. #, no-wrap
  5535. msgid "upgrading Guix for the root user, on a foreign distro"
  5536. msgstr ""
  5537. #. type: cindex
  5538. #: guix-git/doc/guix.texi:1977
  5539. #, no-wrap
  5540. msgid "upgrading the Guix daemon, on a foreign distro"
  5541. msgstr ""
  5542. #. type: cindex
  5543. #: guix-git/doc/guix.texi:1978
  5544. #, no-wrap
  5545. msgid "@command{guix pull} for the root user, on a foreign distro"
  5546. msgstr ""
  5547. #. type: Plain text
  5548. #: guix-git/doc/guix.texi:1981
  5549. msgid "On a foreign distro, you can upgrade the build daemon by running:"
  5550. msgstr ""
  5551. #. type: example
  5552. #: guix-git/doc/guix.texi:1984
  5553. #, no-wrap
  5554. msgid "sudo -i guix pull\n"
  5555. msgstr "sudo -i guix pull\n"
  5556. #. type: Plain text
  5557. #: guix-git/doc/guix.texi:1989
  5558. msgid "followed by (assuming your distro uses the systemd service management tool):"
  5559. msgstr ""
  5560. #. type: example
  5561. #: guix-git/doc/guix.texi:1992
  5562. #, fuzzy, no-wrap
  5563. msgid "systemctl restart guix-daemon.service\n"
  5564. msgstr "semodule -i etc/guix-daemon.cil\n"
  5565. #. type: Plain text
  5566. #: guix-git/doc/guix.texi:1996
  5567. msgid "On Guix System, upgrading the daemon is achieved by reconfiguring the system (@pxref{Invoking guix system, @code{guix system reconfigure}})."
  5568. msgstr ""
  5569. #. type: cindex
  5570. #: guix-git/doc/guix.texi:2003
  5571. #, no-wrap
  5572. msgid "installing Guix System"
  5573. msgstr ""
  5574. #. type: cindex
  5575. #: guix-git/doc/guix.texi:2004
  5576. #, no-wrap
  5577. msgid "Guix System, installation"
  5578. msgstr ""
  5579. #. type: Plain text
  5580. #: guix-git/doc/guix.texi:2009
  5581. 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}."
  5582. msgstr ""
  5583. #. type: quotation
  5584. #: guix-git/doc/guix.texi:2018
  5585. 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."
  5586. msgstr ""
  5587. #. type: quotation
  5588. #: guix-git/doc/guix.texi:2021
  5589. msgid "Alternatively, run @command{info info} in another tty to keep the manual available."
  5590. msgstr ""
  5591. #. type: Plain text
  5592. #: guix-git/doc/guix.texi:2042
  5593. 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."
  5594. msgstr ""
  5595. #. type: Plain text
  5596. #: guix-git/doc/guix.texi:2045
  5597. msgid "Nevertheless, before you proceed with the installation, be aware of the following noteworthy limitations applicable to version @value{VERSION}:"
  5598. msgstr ""
  5599. #. type: itemize
  5600. #: guix-git/doc/guix.texi:2050
  5601. msgid "More and more system services are provided (@pxref{Services}), but some may be missing."
  5602. msgstr ""
  5603. #. type: itemize
  5604. #: guix-git/doc/guix.texi:2055
  5605. 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."
  5606. msgstr ""
  5607. #. type: Plain text
  5608. #: guix-git/doc/guix.texi:2060
  5609. 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."
  5610. msgstr ""
  5611. #. type: cindex
  5612. #: guix-git/doc/guix.texi:2065
  5613. #, no-wrap
  5614. msgid "hardware support on Guix System"
  5615. msgstr ""
  5616. #. type: Plain text
  5617. #: guix-git/doc/guix.texi:2074
  5618. 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."
  5619. msgstr ""
  5620. #. type: cindex
  5621. #: guix-git/doc/guix.texi:2075
  5622. #, no-wrap
  5623. msgid "WiFi, hardware support"
  5624. msgstr ""
  5625. #. type: Plain text
  5626. #: guix-git/doc/guix.texi:2084
  5627. 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}})."
  5628. msgstr ""
  5629. #. type: cindex
  5630. #: guix-git/doc/guix.texi:2085
  5631. #, no-wrap
  5632. msgid "RYF, Respects Your Freedom"
  5633. msgstr ""
  5634. #. type: Plain text
  5635. #: guix-git/doc/guix.texi:2091
  5636. 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."
  5637. msgstr ""
  5638. #. type: Plain text
  5639. #: guix-git/doc/guix.texi:2095
  5640. 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."
  5641. msgstr ""
  5642. #. type: Plain text
  5643. #: guix-git/doc/guix.texi:2104
  5644. 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:"
  5645. msgstr ""
  5646. #. type: table
  5647. #: guix-git/doc/guix.texi:2108
  5648. msgid "for a GNU/Linux system on Intel/AMD-compatible 64-bit CPUs;"
  5649. msgstr ""
  5650. #. type: table
  5651. #: guix-git/doc/guix.texi:2111
  5652. msgid "for a 32-bit GNU/Linux system on Intel-compatible CPUs."
  5653. msgstr ""
  5654. #. type: Plain text
  5655. #: guix-git/doc/guix.texi:2116
  5656. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the image against it, along these lines:"
  5657. msgstr ""
  5658. #. type: example
  5659. #: guix-git/doc/guix.texi:2120
  5660. #, no-wrap
  5661. msgid ""
  5662. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  5663. "$ gpg --verify guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  5664. msgstr ""
  5665. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  5666. "$ gpg --verify guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  5667. #. type: example
  5668. #: guix-git/doc/guix.texi:2128
  5669. #, no-wrap
  5670. msgid ""
  5671. "$ wget @value{OPENPGP-SIGNING-KEY-URL} \\\n"
  5672. " -qO - | gpg --import -\n"
  5673. msgstr ""
  5674. #. type: Plain text
  5675. #: guix-git/doc/guix.texi:2140
  5676. 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."
  5677. msgstr ""
  5678. #. type: unnumberedsubsec
  5679. #: guix-git/doc/guix.texi:2141
  5680. #, no-wrap
  5681. msgid "Copying to a USB Stick"
  5682. msgstr ""
  5683. #. type: Plain text
  5684. #: guix-git/doc/guix.texi:2146
  5685. 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:"
  5686. msgstr ""
  5687. #. type: example
  5688. #: guix-git/doc/guix.texi:2150
  5689. #, no-wrap
  5690. msgid ""
  5691. "dd if=guix-system-install-@value{VERSION}.x86_64-linux.iso of=/dev/sdX status=progress\n"
  5692. "sync\n"
  5693. msgstr ""
  5694. #. type: Plain text
  5695. #: guix-git/doc/guix.texi:2153
  5696. msgid "Access to @file{/dev/sdX} usually requires root privileges."
  5697. msgstr ""
  5698. #. type: unnumberedsubsec
  5699. #: guix-git/doc/guix.texi:2154
  5700. #, no-wrap
  5701. msgid "Burning on a DVD"
  5702. msgstr ""
  5703. #. type: Plain text
  5704. #: guix-git/doc/guix.texi:2159
  5705. 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:"
  5706. msgstr ""
  5707. #. type: example
  5708. #: guix-git/doc/guix.texi:2162
  5709. #, no-wrap
  5710. msgid "growisofs -dvd-compat -Z /dev/srX=guix-system-install-@value{VERSION}.x86_64-linux.iso\n"
  5711. msgstr ""
  5712. #. type: Plain text
  5713. #: guix-git/doc/guix.texi:2165
  5714. msgid "Access to @file{/dev/srX} usually requires root privileges."
  5715. msgstr ""
  5716. #. type: unnumberedsubsec
  5717. #: guix-git/doc/guix.texi:2166
  5718. #, no-wrap
  5719. msgid "Booting"
  5720. msgstr ""
  5721. #. type: Plain text
  5722. #: guix-git/doc/guix.texi:2173
  5723. 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}."
  5724. msgstr ""
  5725. #. type: Plain text
  5726. #: guix-git/doc/guix.texi:2176
  5727. msgid "@xref{Installing Guix in a VM}, if, instead, you would like to install Guix System in a virtual machine (VM)."
  5728. msgstr ""
  5729. #. type: Plain text
  5730. #: guix-git/doc/guix.texi:2186
  5731. 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})."
  5732. msgstr ""
  5733. #. type: Plain text
  5734. #: guix-git/doc/guix.texi:2194
  5735. 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."
  5736. msgstr ""
  5737. #. type: quotation
  5738. #: guix-git/doc/guix.texi:2199
  5739. msgid "Installation requires access to the Internet so that any missing dependencies of your system configuration can be downloaded. See the ``Networking'' section below."
  5740. msgstr ""
  5741. #. type: Plain text
  5742. #: guix-git/doc/guix.texi:2206
  5743. 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."
  5744. msgstr ""
  5745. #. type: Plain text
  5746. #: guix-git/doc/guix.texi:2211
  5747. 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."
  5748. msgstr ""
  5749. #. type: Plain text
  5750. #: guix-git/doc/guix.texi:2213
  5751. msgid "@image{images/installer-network,5in,, networking setup with the graphical installer}"
  5752. msgstr ""
  5753. #. type: Plain text
  5754. #: guix-git/doc/guix.texi:2218
  5755. 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."
  5756. msgstr ""
  5757. #. type: Plain text
  5758. #: guix-git/doc/guix.texi:2220
  5759. msgid "@image{images/installer-partitions,5in,, partitioning with the graphical installer}"
  5760. msgstr ""
  5761. #. type: Plain text
  5762. #: guix-git/doc/guix.texi:2223
  5763. 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."
  5764. msgstr ""
  5765. #. type: Plain text
  5766. #: guix-git/doc/guix.texi:2225
  5767. msgid "@image{images/installer-resume,5in,, resuming the installation process}"
  5768. msgstr ""
  5769. #. type: Plain text
  5770. #: guix-git/doc/guix.texi:2230
  5771. 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!"
  5772. msgstr ""
  5773. #. type: Plain text
  5774. #: guix-git/doc/guix.texi:2240
  5775. 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})."
  5776. msgstr ""
  5777. #. type: Plain text
  5778. #: guix-git/doc/guix.texi:2246
  5779. 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})."
  5780. msgstr ""
  5781. #. type: subsection
  5782. #: guix-git/doc/guix.texi:2253
  5783. #, no-wrap
  5784. msgid "Keyboard Layout, Networking, and Partitioning"
  5785. msgstr ""
  5786. #. type: Plain text
  5787. #: guix-git/doc/guix.texi:2258
  5788. 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."
  5789. msgstr ""
  5790. #. type: cindex
  5791. #: guix-git/doc/guix.texi:2261 guix-git/doc/guix.texi:14500
  5792. #, no-wrap
  5793. msgid "keyboard layout"
  5794. msgstr ""
  5795. #. type: Plain text
  5796. #: guix-git/doc/guix.texi:2265
  5797. 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:"
  5798. msgstr "安装镜像使用的是美国的 qwerty 键盘布局,如果想更改,可以使用 @command{loadkeys} 命令。 例如,用以下命令选择 Dvorak 键盘布局:"
  5799. #. type: example
  5800. #: guix-git/doc/guix.texi:2268
  5801. #, no-wrap
  5802. msgid "loadkeys dvorak\n"
  5803. msgstr ""
  5804. #. type: Plain text
  5805. #: guix-git/doc/guix.texi:2273
  5806. 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."
  5807. msgstr ""
  5808. #. type: subsubsection
  5809. #: guix-git/doc/guix.texi:2274
  5810. #, no-wrap
  5811. msgid "Networking"
  5812. msgstr ""
  5813. #. type: Plain text
  5814. #: guix-git/doc/guix.texi:2277
  5815. msgid "Run the following command to see what your network interfaces are called:"
  5816. msgstr "运行以下命令查看你的网络接口的名称:"
  5817. #. type: example
  5818. #: guix-git/doc/guix.texi:2280
  5819. #, no-wrap
  5820. msgid "ifconfig -a\n"
  5821. msgstr ""
  5822. #. type: table
  5823. #: guix-git/doc/guix.texi:2284 guix-git/doc/guix.texi:2306
  5824. msgid "@dots{} or, using the GNU/Linux-specific @command{ip} command:"
  5825. msgstr "@dots{} 或者,使用 GNU/Linux 特有的 @command{ip} 命令:"
  5826. #. type: example
  5827. #: guix-git/doc/guix.texi:2287
  5828. #, no-wrap
  5829. msgid "ip address\n"
  5830. msgstr ""
  5831. #. type: Plain text
  5832. #: guix-git/doc/guix.texi:2294
  5833. 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}."
  5834. msgstr ""
  5835. #. type: item
  5836. #: guix-git/doc/guix.texi:2296
  5837. #, no-wrap
  5838. msgid "Wired connection"
  5839. msgstr "有线连接"
  5840. #. type: table
  5841. #: guix-git/doc/guix.texi:2299
  5842. msgid "To configure a wired network run the following command, substituting @var{interface} with the name of the wired interface you want to use."
  5843. msgstr ""
  5844. #. type: example
  5845. #: guix-git/doc/guix.texi:2302
  5846. #, no-wrap
  5847. msgid "ifconfig @var{interface} up\n"
  5848. msgstr ""
  5849. #. type: example
  5850. #: guix-git/doc/guix.texi:2309
  5851. #, no-wrap
  5852. msgid "ip link set @var{interface} up\n"
  5853. msgstr ""
  5854. #. type: item
  5855. #: guix-git/doc/guix.texi:2311
  5856. #, no-wrap
  5857. msgid "Wireless connection"
  5858. msgstr "无线连接"
  5859. #. type: cindex
  5860. #: guix-git/doc/guix.texi:2312 guix-git/doc/guix.texi:16125
  5861. #, no-wrap
  5862. msgid "wireless"
  5863. msgstr ""
  5864. #. type: cindex
  5865. #: guix-git/doc/guix.texi:2313 guix-git/doc/guix.texi:16126
  5866. #, no-wrap
  5867. msgid "WiFi"
  5868. msgstr ""
  5869. #. type: table
  5870. #: guix-git/doc/guix.texi:2318
  5871. 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}:"
  5872. msgstr ""
  5873. #. type: example
  5874. #: guix-git/doc/guix.texi:2321
  5875. #, no-wrap
  5876. msgid "nano wpa_supplicant.conf\n"
  5877. msgstr ""
  5878. #. type: table
  5879. #: guix-git/doc/guix.texi:2326
  5880. 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:"
  5881. msgstr ""
  5882. #. type: example
  5883. #: guix-git/doc/guix.texi:2333
  5884. #, no-wrap
  5885. msgid ""
  5886. "network=@{\n"
  5887. " ssid=\"@var{my-ssid}\"\n"
  5888. " key_mgmt=WPA-PSK\n"
  5889. " psk=\"the network's secret passphrase\"\n"
  5890. "@}\n"
  5891. msgstr ""
  5892. #. type: table
  5893. #: guix-git/doc/guix.texi:2338
  5894. 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):"
  5895. msgstr ""
  5896. #. type: example
  5897. #: guix-git/doc/guix.texi:2341
  5898. #, no-wrap
  5899. msgid "wpa_supplicant -c wpa_supplicant.conf -i @var{interface} -B\n"
  5900. msgstr ""
  5901. #. type: table
  5902. #: guix-git/doc/guix.texi:2344
  5903. msgid "Run @command{man wpa_supplicant} for more information."
  5904. msgstr ""
  5905. #. type: cindex
  5906. #: guix-git/doc/guix.texi:2346
  5907. #, no-wrap
  5908. msgid "DHCP"
  5909. msgstr ""
  5910. #. type: Plain text
  5911. #: guix-git/doc/guix.texi:2349
  5912. 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:"
  5913. msgstr ""
  5914. #. type: example
  5915. #: guix-git/doc/guix.texi:2352
  5916. #, no-wrap
  5917. msgid "dhclient -v @var{interface}\n"
  5918. msgstr ""
  5919. #. type: Plain text
  5920. #: guix-git/doc/guix.texi:2355
  5921. msgid "Try to ping a server to see if networking is up and running:"
  5922. msgstr ""
  5923. #. type: example
  5924. #: guix-git/doc/guix.texi:2358
  5925. #, no-wrap
  5926. msgid "ping -c 3 gnu.org\n"
  5927. msgstr ""
  5928. #. type: Plain text
  5929. #: guix-git/doc/guix.texi:2362
  5930. 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."
  5931. msgstr ""
  5932. #. type: cindex
  5933. #: guix-git/doc/guix.texi:2363
  5934. #, fuzzy, no-wrap
  5935. msgid "proxy, during system installation"
  5936. msgstr "系统安装之后"
  5937. #. type: Plain text
  5938. #: guix-git/doc/guix.texi:2366
  5939. msgid "If you need HTTP and HTTPS access to go through a proxy, run the following command:"
  5940. msgstr ""
  5941. #. type: example
  5942. #: guix-git/doc/guix.texi:2369
  5943. #, no-wrap
  5944. msgid "herd set-http-proxy guix-daemon @var{URL}\n"
  5945. msgstr ""
  5946. #. type: Plain text
  5947. #: guix-git/doc/guix.texi:2374
  5948. msgid "where @var{URL} is the proxy URL, for example @code{http://example.org:8118}."
  5949. msgstr ""
  5950. #. type: cindex
  5951. #: guix-git/doc/guix.texi:2375
  5952. #, no-wrap
  5953. msgid "installing over SSH"
  5954. msgstr ""
  5955. #. type: Plain text
  5956. #: guix-git/doc/guix.texi:2378
  5957. msgid "If you want to, you can continue the installation remotely by starting an SSH server:"
  5958. msgstr ""
  5959. #. type: example
  5960. #: guix-git/doc/guix.texi:2381
  5961. #, no-wrap
  5962. msgid "herd start ssh-daemon\n"
  5963. msgstr ""
  5964. #. type: Plain text
  5965. #: guix-git/doc/guix.texi:2385
  5966. msgid "Make sure to either set a password with @command{passwd}, or configure OpenSSH public key authentication before logging in."
  5967. msgstr ""
  5968. #. type: subsubsection
  5969. #: guix-git/doc/guix.texi:2386
  5970. #, no-wrap
  5971. msgid "Disk Partitioning"
  5972. msgstr "磁盘分区"
  5973. #. type: Plain text
  5974. #: guix-git/doc/guix.texi:2390
  5975. msgid "Unless this has already been done, the next step is to partition, and then format the target partition(s)."
  5976. msgstr ""
  5977. #. type: Plain text
  5978. #: guix-git/doc/guix.texi:2395
  5979. 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:"
  5980. msgstr ""
  5981. #. type: example
  5982. #: guix-git/doc/guix.texi:2398
  5983. #, no-wrap
  5984. msgid "cfdisk\n"
  5985. msgstr ""
  5986. #. type: Plain text
  5987. #: guix-git/doc/guix.texi:2404
  5988. 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})."
  5989. msgstr ""
  5990. #. type: cindex
  5991. #: guix-git/doc/guix.texi:2405
  5992. #, no-wrap
  5993. msgid "EFI, installation"
  5994. msgstr ""
  5995. #. type: cindex
  5996. #: guix-git/doc/guix.texi:2406
  5997. #, no-wrap
  5998. msgid "UEFI, installation"
  5999. msgstr ""
  6000. #. type: cindex
  6001. #: guix-git/doc/guix.texi:2407
  6002. #, no-wrap
  6003. msgid "ESP, EFI system partition"
  6004. msgstr ""
  6005. #. type: Plain text
  6006. #: guix-git/doc/guix.texi:2411
  6007. 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}:"
  6008. msgstr ""
  6009. #. type: example
  6010. #: guix-git/doc/guix.texi:2414
  6011. #, no-wrap
  6012. msgid "parted /dev/sda set 1 esp on\n"
  6013. msgstr ""
  6014. #. type: vindex
  6015. #: guix-git/doc/guix.texi:2417 guix-git/doc/guix.texi:32447
  6016. #, no-wrap
  6017. msgid "grub-bootloader"
  6018. msgstr ""
  6019. #. type: vindex
  6020. #: guix-git/doc/guix.texi:2418 guix-git/doc/guix.texi:32441
  6021. #, no-wrap
  6022. msgid "grub-efi-bootloader"
  6023. msgstr ""
  6024. #. type: quotation
  6025. #: guix-git/doc/guix.texi:2425
  6026. 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."
  6027. msgstr ""
  6028. #. type: Plain text
  6029. #: guix-git/doc/guix.texi:2433
  6030. 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:"
  6031. msgstr ""
  6032. #. type: example
  6033. #: guix-git/doc/guix.texi:2436
  6034. #, no-wrap
  6035. msgid "mkfs.fat -F32 /dev/sda1\n"
  6036. msgstr ""
  6037. #. type: Plain text
  6038. #: guix-git/doc/guix.texi:2443
  6039. 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})."
  6040. msgstr ""
  6041. #. type: Plain text
  6042. #: guix-git/doc/guix.texi:2450
  6043. 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:"
  6044. msgstr ""
  6045. #. type: example
  6046. #: guix-git/doc/guix.texi:2453
  6047. #, no-wrap
  6048. msgid "mkfs.ext4 -L my-root /dev/sda2\n"
  6049. msgstr ""
  6050. #. type: cindex
  6051. #: guix-git/doc/guix.texi:2455 guix-git/doc/guix.texi:13498
  6052. #, no-wrap
  6053. msgid "encrypted disk"
  6054. msgstr ""
  6055. #. type: Plain text
  6056. #: guix-git/doc/guix.texi:2462
  6057. 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:"
  6058. msgstr ""
  6059. #. type: example
  6060. #: guix-git/doc/guix.texi:2467
  6061. #, no-wrap
  6062. msgid ""
  6063. "cryptsetup luksFormat /dev/sda2\n"
  6064. "cryptsetup open --type luks /dev/sda2 my-partition\n"
  6065. "mkfs.ext4 -L my-root /dev/mapper/my-partition\n"
  6066. msgstr ""
  6067. #. type: Plain text
  6068. #: guix-git/doc/guix.texi:2472
  6069. 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):"
  6070. msgstr ""
  6071. #. type: example
  6072. #: guix-git/doc/guix.texi:2475
  6073. #, no-wrap
  6074. msgid "mount LABEL=my-root /mnt\n"
  6075. msgstr ""
  6076. #. type: Plain text
  6077. #: guix-git/doc/guix.texi:2481
  6078. 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."
  6079. msgstr ""
  6080. #. type: Plain text
  6081. #: guix-git/doc/guix.texi:2486
  6082. 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:"
  6083. msgstr ""
  6084. #. type: example
  6085. #: guix-git/doc/guix.texi:2490
  6086. #, no-wrap
  6087. msgid ""
  6088. "mkswap /dev/sda3\n"
  6089. "swapon /dev/sda3\n"
  6090. msgstr ""
  6091. #. type: Plain text
  6092. #: guix-git/doc/guix.texi:2498
  6093. 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}.}:"
  6094. msgstr ""
  6095. #. type: example
  6096. #: guix-git/doc/guix.texi:2506
  6097. #, no-wrap
  6098. msgid ""
  6099. "# This is 10 GiB of swap space. Adjust \"count\" to change the size.\n"
  6100. "dd if=/dev/zero of=/mnt/swapfile bs=1MiB count=10240\n"
  6101. "# For security, make the file readable and writable only by root.\n"
  6102. "chmod 600 /mnt/swapfile\n"
  6103. "mkswap /mnt/swapfile\n"
  6104. "swapon /mnt/swapfile\n"
  6105. msgstr ""
  6106. #. type: Plain text
  6107. #: guix-git/doc/guix.texi:2511
  6108. 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."
  6109. msgstr ""
  6110. #. type: Plain text
  6111. #: guix-git/doc/guix.texi:2517
  6112. msgid "With the target partitions ready and the target root mounted on @file{/mnt}, we're ready to go. First, run:"
  6113. msgstr ""
  6114. #. type: example
  6115. #: guix-git/doc/guix.texi:2520
  6116. #, no-wrap
  6117. msgid "herd start cow-store /mnt\n"
  6118. msgstr ""
  6119. #. type: Plain text
  6120. #: guix-git/doc/guix.texi:2527
  6121. 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."
  6122. msgstr ""
  6123. #. type: Plain text
  6124. #: guix-git/doc/guix.texi:2538
  6125. 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 GNU Zile (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."
  6126. msgstr ""
  6127. #. type: Plain text
  6128. #: guix-git/doc/guix.texi:2545
  6129. 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:"
  6130. msgstr ""
  6131. #. type: example
  6132. #: guix-git/doc/guix.texi:2550
  6133. #, no-wrap
  6134. msgid ""
  6135. "# mkdir /mnt/etc\n"
  6136. "# cp /etc/configuration/desktop.scm /mnt/etc/config.scm\n"
  6137. "# nano /mnt/etc/config.scm\n"
  6138. msgstr ""
  6139. #. type: Plain text
  6140. #: guix-git/doc/guix.texi:2554
  6141. msgid "You should pay attention to what your configuration file contains, and in particular:"
  6142. msgstr ""
  6143. #. type: itemize
  6144. #: guix-git/doc/guix.texi:2565
  6145. 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."
  6146. msgstr ""
  6147. #. type: itemize
  6148. #: guix-git/doc/guix.texi:2571
  6149. 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."
  6150. msgstr ""
  6151. #. type: itemize
  6152. #: guix-git/doc/guix.texi:2575
  6153. msgid "If there are encrypted or RAID partitions, make sure to add a @code{mapped-devices} field to describe them (@pxref{Mapped Devices})."
  6154. msgstr ""
  6155. #. type: Plain text
  6156. #: guix-git/doc/guix.texi:2580
  6157. 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}):"
  6158. msgstr ""
  6159. #. type: example
  6160. #: guix-git/doc/guix.texi:2583
  6161. #, no-wrap
  6162. msgid "guix system init /mnt/etc/config.scm /mnt\n"
  6163. msgstr ""
  6164. #. type: Plain text
  6165. #: guix-git/doc/guix.texi:2590
  6166. 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."
  6167. msgstr ""
  6168. #. type: Plain text
  6169. #: guix-git/doc/guix.texi:2598
  6170. 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!"
  6171. msgstr ""
  6172. #. type: Plain text
  6173. #: guix-git/doc/guix.texi:2605
  6174. msgid "Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say:"
  6175. msgstr ""
  6176. #. type: example
  6177. #: guix-git/doc/guix.texi:2609
  6178. #, no-wrap
  6179. msgid ""
  6180. "guix pull\n"
  6181. "sudo guix system reconfigure /etc/config.scm\n"
  6182. msgstr ""
  6183. #. type: Plain text
  6184. #: guix-git/doc/guix.texi:2615
  6185. 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})."
  6186. msgstr ""
  6187. #. type: cindex
  6188. #: guix-git/doc/guix.texi:2618
  6189. #, no-wrap
  6190. msgid "sudo vs. @command{guix pull}"
  6191. msgstr ""
  6192. #. type: quotation
  6193. #: guix-git/doc/guix.texi:2622
  6194. 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{}}."
  6195. msgstr ""
  6196. #. type: quotation
  6197. #: guix-git/doc/guix.texi:2627
  6198. 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."
  6199. msgstr ""
  6200. #. type: Plain text
  6201. #: guix-git/doc/guix.texi:2632
  6202. msgid "Now, @pxref{Getting Started}, and join us on @code{#guix} on the Freenode IRC network or on @email{guix-devel@@gnu.org} to share your experience!"
  6203. msgstr ""
  6204. #. type: section
  6205. #: guix-git/doc/guix.texi:2635
  6206. #, no-wrap
  6207. msgid "Installing Guix in a Virtual Machine"
  6208. msgstr ""
  6209. #. type: cindex
  6210. #: guix-git/doc/guix.texi:2637
  6211. #, no-wrap
  6212. msgid "virtual machine, Guix System installation"
  6213. msgstr ""
  6214. #. type: cindex
  6215. #: guix-git/doc/guix.texi:2638
  6216. #, no-wrap
  6217. msgid "virtual private server (VPS)"
  6218. msgstr ""
  6219. #. type: cindex
  6220. #: guix-git/doc/guix.texi:2639
  6221. #, no-wrap
  6222. msgid "VPS (virtual private server)"
  6223. msgstr ""
  6224. #. type: Plain text
  6225. #: guix-git/doc/guix.texi:2643
  6226. 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."
  6227. msgstr ""
  6228. #. type: Plain text
  6229. #: guix-git/doc/guix.texi:2646
  6230. msgid "To boot a @uref{https://qemu.org/,QEMU} VM for installing Guix System in a disk image, follow these steps:"
  6231. msgstr ""
  6232. #. type: enumerate
  6233. #: guix-git/doc/guix.texi:2651
  6234. msgid "First, retrieve and decompress the Guix system installation image as described previously (@pxref{USB Stick and DVD Installation})."
  6235. msgstr ""
  6236. #. type: enumerate
  6237. #: guix-git/doc/guix.texi:2655
  6238. msgid "Create a disk image that will hold the installed system. To make a qcow2-formatted disk image, use the @command{qemu-img} command:"
  6239. msgstr ""
  6240. #. type: example
  6241. #: guix-git/doc/guix.texi:2658
  6242. #, no-wrap
  6243. msgid "qemu-img create -f qcow2 guix-system.img 50G\n"
  6244. msgstr ""
  6245. #. type: enumerate
  6246. #: guix-git/doc/guix.texi:2662
  6247. 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."
  6248. msgstr ""
  6249. #. type: enumerate
  6250. #: guix-git/doc/guix.texi:2665
  6251. msgid "Boot the USB installation image in an VM:"
  6252. msgstr ""
  6253. #. type: example
  6254. #: guix-git/doc/guix.texi:2671
  6255. #, no-wrap
  6256. msgid ""
  6257. "qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \\\n"
  6258. " -nic user,model=virtio-net-pci -boot menu=on,order=d \\\n"
  6259. " -drive file=guix-system.img \\\n"
  6260. " -drive media=cdrom,file=guix-system-install-@value{VERSION}.@var{system}.iso\n"
  6261. msgstr ""
  6262. #. type: enumerate
  6263. #: guix-git/doc/guix.texi:2675
  6264. msgid "@code{-enable-kvm} is optional, but significantly improves performance, @pxref{Running Guix in a VM}."
  6265. msgstr ""
  6266. #. type: enumerate
  6267. #: guix-git/doc/guix.texi:2679
  6268. msgid "You're now root in the VM, proceed with the installation process. @xref{Preparing for Installation}, and follow the instructions."
  6269. msgstr ""
  6270. #. type: Plain text
  6271. #: guix-git/doc/guix.texi:2684
  6272. 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."
  6273. msgstr ""
  6274. #. type: cindex
  6275. #: guix-git/doc/guix.texi:2688
  6276. #, no-wrap
  6277. msgid "installation image"
  6278. msgstr ""
  6279. #. type: Plain text
  6280. #: guix-git/doc/guix.texi:2691
  6281. msgid "The installation image described above was built using the @command{guix system} command, specifically:"
  6282. msgstr ""
  6283. #. type: example
  6284. #: guix-git/doc/guix.texi:2694
  6285. #, no-wrap
  6286. msgid "guix system image -t iso9660 gnu/system/install.scm\n"
  6287. msgstr ""
  6288. #. type: Plain text
  6289. #: guix-git/doc/guix.texi:2699
  6290. 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."
  6291. msgstr ""
  6292. #. type: section
  6293. #: guix-git/doc/guix.texi:2700
  6294. #, no-wrap
  6295. msgid "Building the Installation Image for ARM Boards"
  6296. msgstr ""
  6297. #. type: Plain text
  6298. #: guix-git/doc/guix.texi:2704
  6299. msgid "Many ARM boards require a specific variant of the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot} bootloader."
  6300. msgstr ""
  6301. #. type: Plain text
  6302. #: guix-git/doc/guix.texi:2708
  6303. 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:"
  6304. msgstr ""
  6305. #. type: example
  6306. #: guix-git/doc/guix.texi:2711
  6307. #, no-wrap
  6308. msgid "guix system image --system=armhf-linux -e '((@@ (gnu system install) os-with-u-boot) (@@ (gnu system install) installation-os) \"A20-OLinuXino-Lime2\")'\n"
  6309. msgstr ""
  6310. #. type: Plain text
  6311. #: guix-git/doc/guix.texi:2715
  6312. 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."
  6313. msgstr ""
  6314. #. type: Plain text
  6315. #: guix-git/doc/guix.texi:2725
  6316. 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."
  6317. msgstr ""
  6318. #. type: Plain text
  6319. #: guix-git/doc/guix.texi:2729
  6320. 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:"
  6321. msgstr ""
  6322. #. type: example
  6323. #: guix-git/doc/guix.texi:2732
  6324. #, no-wrap
  6325. msgid "guix search text editor\n"
  6326. msgstr ""
  6327. #. type: Plain text
  6328. #: guix-git/doc/guix.texi:2739
  6329. 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}!):"
  6330. msgstr ""
  6331. #. type: example
  6332. #: guix-git/doc/guix.texi:2742
  6333. #, fuzzy, no-wrap
  6334. msgid "guix install emacs\n"
  6335. msgstr "guix install emacs-guix\n"
  6336. #. type: cindex
  6337. #: guix-git/doc/guix.texi:2744 guix-git/doc/guix.texi:3056
  6338. #: guix-git/doc/guix.texi:3108
  6339. #, no-wrap
  6340. msgid "profile"
  6341. msgstr ""
  6342. #. type: Plain text
  6343. #: guix-git/doc/guix.texi:2752
  6344. 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)."
  6345. msgstr ""
  6346. #. type: Plain text
  6347. #: guix-git/doc/guix.texi:2755
  6348. msgid "Unless you're using Guix System, the @command{guix install} command must have printed this hint:"
  6349. msgstr ""
  6350. #. type: example
  6351. #: guix-git/doc/guix.texi:2758
  6352. #, no-wrap
  6353. msgid ""
  6354. "hint: Consider setting the necessary environment variables by running:\n"
  6355. "\n"
  6356. msgstr ""
  6357. #. type: example
  6358. #: guix-git/doc/guix.texi:2761
  6359. #, no-wrap
  6360. msgid ""
  6361. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  6362. " . \"$GUIX_PROFILE/etc/profile\"\n"
  6363. "\n"
  6364. msgstr ""
  6365. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  6366. " . \"$GUIX_PROFILE/etc/profile\"\n"
  6367. "\n"
  6368. #. type: example
  6369. #: guix-git/doc/guix.texi:2763
  6370. #, no-wrap
  6371. msgid "Alternately, see `guix package --search-paths -p \"$HOME/.guix-profile\"'.\n"
  6372. msgstr ""
  6373. #. type: Plain text
  6374. #: guix-git/doc/guix.texi:2777
  6375. 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."
  6376. msgstr ""
  6377. #. type: Plain text
  6378. #: guix-git/doc/guix.texi:2780
  6379. msgid "You can go on installing packages at your will. To list installed packages, run:"
  6380. msgstr ""
  6381. #. type: example
  6382. #: guix-git/doc/guix.texi:2783
  6383. #, fuzzy, no-wrap
  6384. msgid "guix package --list-installed\n"
  6385. msgstr "guix package --list-available\n"
  6386. #. type: Plain text
  6387. #: guix-git/doc/guix.texi:2788
  6388. 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:"
  6389. msgstr ""
  6390. #. type: example
  6391. #: guix-git/doc/guix.texi:2791
  6392. #, fuzzy, no-wrap
  6393. msgid "guix package --roll-back\n"
  6394. msgstr "guix package --list-available\n"
  6395. #. type: Plain text
  6396. #: guix-git/doc/guix.texi:2796
  6397. 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:"
  6398. msgstr ""
  6399. #. type: example
  6400. #: guix-git/doc/guix.texi:2799
  6401. #, fuzzy, no-wrap
  6402. msgid "guix package --list-generations\n"
  6403. msgstr "guix package --list-available\n"
  6404. #. type: Plain text
  6405. #: guix-git/doc/guix.texi:2802
  6406. msgid "Now you know the basics of package management!"
  6407. msgstr "现在你知道包管理的基本知识了吧!"
  6408. #. type: quotation
  6409. #: guix-git/doc/guix.texi:2803 guix-git/doc/guix.texi:2862
  6410. #, no-wrap
  6411. msgid "Going further"
  6412. msgstr ""
  6413. #. type: quotation
  6414. #: guix-git/doc/guix.texi:2811
  6415. 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."
  6416. msgstr ""
  6417. #. type: Plain text
  6418. #: guix-git/doc/guix.texi:2816
  6419. 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:"
  6420. msgstr ""
  6421. #. type: Plain text
  6422. #: guix-git/doc/guix.texi:2826
  6423. 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}:"
  6424. msgstr ""
  6425. #. type: example
  6426. #: guix-git/doc/guix.texi:2830
  6427. #, no-wrap
  6428. msgid ""
  6429. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  6430. ". \"$GUIX_PROFILE/etc/profile\"\n"
  6431. msgstr ""
  6432. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  6433. ". \"$GUIX_PROFILE/etc/profile\"\n"
  6434. #. type: Plain text
  6435. #: guix-git/doc/guix.texi:2834
  6436. msgid "You must also instruct your shell to point to this new @command{guix}:"
  6437. msgstr ""
  6438. #. type: example
  6439. #: guix-git/doc/guix.texi:2837
  6440. #, no-wrap
  6441. msgid "hash guix\n"
  6442. msgstr ""
  6443. #. type: Plain text
  6444. #: guix-git/doc/guix.texi:2841
  6445. 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:"
  6446. msgstr ""
  6447. #. type: example
  6448. #: guix-git/doc/guix.texi:2844
  6449. #, no-wrap
  6450. msgid "guix upgrade\n"
  6451. msgstr ""
  6452. #. type: Plain text
  6453. #: guix-git/doc/guix.texi:2850
  6454. 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!"
  6455. msgstr ""
  6456. #. type: Plain text
  6457. #: guix-git/doc/guix.texi:2853
  6458. msgid "You can display the exact revision of Guix you're currently using by running:"
  6459. msgstr ""
  6460. #. type: example
  6461. #: guix-git/doc/guix.texi:2856
  6462. #, no-wrap
  6463. msgid "guix describe\n"
  6464. msgstr "guix describe\n"
  6465. #. type: Plain text
  6466. #: guix-git/doc/guix.texi:2861
  6467. 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."
  6468. msgstr ""
  6469. #. type: quotation
  6470. #: guix-git/doc/guix.texi:2867
  6471. 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})."
  6472. msgstr ""
  6473. #. type: Plain text
  6474. #: guix-git/doc/guix.texi:2872
  6475. 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:"
  6476. msgstr ""
  6477. #. type: example
  6478. #: guix-git/doc/guix.texi:2875
  6479. #, no-wrap
  6480. msgid "sudo guix system reconfigure /etc/config.scm\n"
  6481. msgstr ""
  6482. #. type: Plain text
  6483. #: guix-git/doc/guix.texi:2884
  6484. 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}:"
  6485. msgstr ""
  6486. #. type: example
  6487. #: guix-git/doc/guix.texi:2887
  6488. #, no-wrap
  6489. msgid "sudo guix system roll-back\n"
  6490. msgstr ""
  6491. #. type: Plain text
  6492. #: guix-git/doc/guix.texi:2894
  6493. 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."
  6494. msgstr ""
  6495. #. type: Plain text
  6496. #: guix-git/doc/guix.texi:2896
  6497. msgid "Now you know enough to get started!"
  6498. msgstr ""
  6499. #. type: quotation
  6500. #: guix-git/doc/guix.texi:2897
  6501. #, no-wrap
  6502. msgid "Resources"
  6503. msgstr ""
  6504. #. type: quotation
  6505. #: guix-git/doc/guix.texi:2900
  6506. msgid "The rest of this manual provides a reference for all things Guix. Here are some additional resources you may find useful:"
  6507. msgstr ""
  6508. #. type: itemize
  6509. #: guix-git/doc/guix.texi:2905
  6510. msgid "@xref{Top,,, guix-cookbook, The GNU Guix Cookbook}, for a list of ``how-to'' style of recipes for a variety of applications."
  6511. msgstr ""
  6512. #. type: itemize
  6513. #: guix-git/doc/guix.texi:2910
  6514. 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."
  6515. msgstr ""
  6516. #. type: itemize
  6517. #: guix-git/doc/guix.texi:2915
  6518. 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."
  6519. msgstr ""
  6520. #. type: itemize
  6521. #: guix-git/doc/guix.texi:2919
  6522. msgid "@xref{Documentation}, to learn how to access documentation on your computer."
  6523. msgstr ""
  6524. #. type: quotation
  6525. #: guix-git/doc/guix.texi:2922
  6526. msgid "We hope you will enjoy Guix as much as the community enjoys building it!"
  6527. msgstr ""
  6528. #. type: cindex
  6529. #: guix-git/doc/guix.texi:2928
  6530. #, no-wrap
  6531. msgid "packages"
  6532. msgstr ""
  6533. #. type: Plain text
  6534. #: guix-git/doc/guix.texi:2933
  6535. 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."
  6536. msgstr ""
  6537. #. type: Plain text
  6538. #: guix-git/doc/guix.texi:2941
  6539. 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):"
  6540. msgstr ""
  6541. #. type: example
  6542. #: guix-git/doc/guix.texi:2944
  6543. #, no-wrap
  6544. msgid "guix install emacs-guix\n"
  6545. msgstr "guix install emacs-guix\n"
  6546. #. type: Plain text
  6547. #: guix-git/doc/guix.texi:2965
  6548. 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."
  6549. msgstr ""
  6550. #. type: Plain text
  6551. #: guix-git/doc/guix.texi:2969
  6552. 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."
  6553. msgstr ""
  6554. #. type: Plain text
  6555. #: guix-git/doc/guix.texi:2974
  6556. 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}."
  6557. msgstr ""
  6558. #. type: Plain text
  6559. #: guix-git/doc/guix.texi:2982
  6560. 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."
  6561. msgstr ""
  6562. #. type: Plain text
  6563. #: guix-git/doc/guix.texi:2986
  6564. 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}."
  6565. msgstr ""
  6566. #. type: cindex
  6567. #: guix-git/doc/guix.texi:2987 guix-git/doc/guix.texi:3070
  6568. #, no-wrap
  6569. msgid "transactions"
  6570. msgstr ""
  6571. #. type: Plain text
  6572. #: guix-git/doc/guix.texi:2994
  6573. 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."
  6574. msgstr ""
  6575. #. type: Plain text
  6576. #: guix-git/doc/guix.texi:3002
  6577. 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})."
  6578. msgstr ""
  6579. #. type: Plain text
  6580. #: guix-git/doc/guix.texi:3009
  6581. 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."
  6582. msgstr ""
  6583. #. type: cindex
  6584. #: guix-git/doc/guix.texi:3010 guix-git/doc/guix.texi:4693
  6585. #, no-wrap
  6586. msgid "reproducibility"
  6587. msgstr ""
  6588. #. type: Plain text
  6589. #: guix-git/doc/guix.texi:3022
  6590. 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})."
  6591. msgstr ""
  6592. #. type: Plain text
  6593. #: guix-git/doc/guix.texi:3033
  6594. 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})."
  6595. msgstr ""
  6596. #. type: Plain text
  6597. #: guix-git/doc/guix.texi:3039
  6598. 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})."
  6599. msgstr ""
  6600. #. type: cindex
  6601. #: guix-git/doc/guix.texi:3040
  6602. #, no-wrap
  6603. msgid "replication, of software environments"
  6604. msgstr ""
  6605. #. type: cindex
  6606. #: guix-git/doc/guix.texi:3041
  6607. #, no-wrap
  6608. msgid "provenance tracking, of software artifacts"
  6609. msgstr ""
  6610. #. type: Plain text
  6611. #: guix-git/doc/guix.texi:3048
  6612. 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."
  6613. msgstr ""
  6614. #. type: section
  6615. #: guix-git/doc/guix.texi:3050
  6616. #, no-wrap
  6617. msgid "Invoking @command{guix package}"
  6618. msgstr ""
  6619. #. type: cindex
  6620. #: guix-git/doc/guix.texi:3052
  6621. #, no-wrap
  6622. msgid "installing packages"
  6623. msgstr ""
  6624. #. type: cindex
  6625. #: guix-git/doc/guix.texi:3053
  6626. #, no-wrap
  6627. msgid "removing packages"
  6628. msgstr ""
  6629. #. type: cindex
  6630. #: guix-git/doc/guix.texi:3054
  6631. #, no-wrap
  6632. msgid "package installation"
  6633. msgstr ""
  6634. #. type: cindex
  6635. #: guix-git/doc/guix.texi:3055
  6636. #, no-wrap
  6637. msgid "package removal"
  6638. msgstr ""
  6639. #. type: Plain text
  6640. #: guix-git/doc/guix.texi:3065
  6641. 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:"
  6642. msgstr ""
  6643. #. type: example
  6644. #: guix-git/doc/guix.texi:3068
  6645. #, no-wrap
  6646. msgid "guix package @var{options}\n"
  6647. msgstr ""
  6648. #. type: Plain text
  6649. #: guix-git/doc/guix.texi:3075
  6650. 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."
  6651. msgstr ""
  6652. #. type: Plain text
  6653. #: guix-git/doc/guix.texi:3078
  6654. msgid "For example, to remove @code{lua} and install @code{guile} and @code{guile-cairo} in a single transaction:"
  6655. msgstr ""
  6656. #. type: example
  6657. #: guix-git/doc/guix.texi:3081
  6658. #, no-wrap
  6659. msgid "guix package -r lua -i guile guile-cairo\n"
  6660. msgstr ""
  6661. #. type: cindex
  6662. #: guix-git/doc/guix.texi:3083
  6663. #, no-wrap
  6664. msgid "aliases, for @command{guix package}"
  6665. msgstr ""
  6666. #. type: Plain text
  6667. #: guix-git/doc/guix.texi:3085
  6668. msgid "For your convenience, we also provide the following aliases:"
  6669. msgstr ""
  6670. #. type: itemize
  6671. #: guix-git/doc/guix.texi:3089
  6672. msgid "@command{guix search} is an alias for @command{guix package -s},"
  6673. msgstr ""
  6674. #. type: itemize
  6675. #: guix-git/doc/guix.texi:3091
  6676. msgid "@command{guix install} is an alias for @command{guix package -i},"
  6677. msgstr ""
  6678. #. type: itemize
  6679. #: guix-git/doc/guix.texi:3093
  6680. msgid "@command{guix remove} is an alias for @command{guix package -r},"
  6681. msgstr ""
  6682. #. type: itemize
  6683. #: guix-git/doc/guix.texi:3095
  6684. msgid "@command{guix upgrade} is an alias for @command{guix package -u},"
  6685. msgstr ""
  6686. #. type: itemize
  6687. #: guix-git/doc/guix.texi:3097
  6688. msgid "and @command{guix show} is an alias for @command{guix package --show=}."
  6689. msgstr ""
  6690. #. type: Plain text
  6691. #: guix-git/doc/guix.texi:3102
  6692. 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."
  6693. msgstr ""
  6694. #. type: Plain text
  6695. #: guix-git/doc/guix.texi:3107
  6696. 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}})."
  6697. msgstr ""
  6698. #. type: Plain text
  6699. #: guix-git/doc/guix.texi:3114
  6700. 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."
  6701. msgstr ""
  6702. #. type: cindex
  6703. #: guix-git/doc/guix.texi:3114 guix-git/doc/guix.texi:3347
  6704. #, no-wrap
  6705. msgid "search paths"
  6706. msgstr ""
  6707. #. type: Plain text
  6708. #: guix-git/doc/guix.texi:3119
  6709. 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:"
  6710. msgstr ""
  6711. #. type: example
  6712. #: guix-git/doc/guix.texi:3123
  6713. #, no-wrap
  6714. msgid ""
  6715. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  6716. "source \"$GUIX_PROFILE/etc/profile\"\n"
  6717. msgstr ""
  6718. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  6719. "source \"$GUIX_PROFILE/etc/profile\"\n"
  6720. #. type: Plain text
  6721. #: guix-git/doc/guix.texi:3134
  6722. 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}."
  6723. msgstr ""
  6724. #. type: Plain text
  6725. #: guix-git/doc/guix.texi:3136
  6726. msgid "The @var{options} can be among the following:"
  6727. msgstr ""
  6728. #. type: item
  6729. #: guix-git/doc/guix.texi:3139
  6730. #, no-wrap
  6731. msgid "--install=@var{package} @dots{}"
  6732. msgstr ""
  6733. #. type: itemx
  6734. #: guix-git/doc/guix.texi:3140
  6735. #, no-wrap
  6736. msgid "-i @var{package} @dots{}"
  6737. msgstr ""
  6738. #. type: table
  6739. #: guix-git/doc/guix.texi:3142
  6740. msgid "Install the specified @var{package}s."
  6741. msgstr ""
  6742. #. type: table
  6743. #: guix-git/doc/guix.texi:3147
  6744. 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)."
  6745. msgstr ""
  6746. #. type: table
  6747. #: guix-git/doc/guix.texi:3155
  6748. 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})."
  6749. msgstr ""
  6750. #. type: cindex
  6751. #: guix-git/doc/guix.texi:3156
  6752. #, no-wrap
  6753. msgid "propagated inputs"
  6754. msgstr ""
  6755. #. type: table
  6756. #: guix-git/doc/guix.texi:3162
  6757. 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)."
  6758. msgstr ""
  6759. #. type: anchor{#1}
  6760. #: guix-git/doc/guix.texi:3169
  6761. msgid "package-cmd-propagated-inputs"
  6762. msgstr ""
  6763. #. type: table
  6764. #: guix-git/doc/guix.texi:3169
  6765. 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."
  6766. msgstr ""
  6767. #. type: table
  6768. #: guix-git/doc/guix.texi:3174
  6769. 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."
  6770. msgstr ""
  6771. #. type: item
  6772. #: guix-git/doc/guix.texi:3175
  6773. #, no-wrap
  6774. msgid "--install-from-expression=@var{exp}"
  6775. msgstr ""
  6776. #. type: itemx
  6777. #: guix-git/doc/guix.texi:3176
  6778. #, no-wrap
  6779. msgid "-e @var{exp}"
  6780. msgstr ""
  6781. #. type: table
  6782. #: guix-git/doc/guix.texi:3178
  6783. msgid "Install the package @var{exp} evaluates to."
  6784. msgstr ""
  6785. #. type: table
  6786. #: guix-git/doc/guix.texi:3183
  6787. 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)}."
  6788. msgstr ""
  6789. #. type: table
  6790. #: guix-git/doc/guix.texi:3187
  6791. 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."
  6792. msgstr ""
  6793. #. type: item
  6794. #: guix-git/doc/guix.texi:3188
  6795. #, no-wrap
  6796. msgid "--install-from-file=@var{file}"
  6797. msgstr ""
  6798. #. type: itemx
  6799. #: guix-git/doc/guix.texi:3189 guix-git/doc/guix.texi:10684
  6800. #, no-wrap
  6801. msgid "-f @var{file}"
  6802. msgstr ""
  6803. #. type: table
  6804. #: guix-git/doc/guix.texi:3191
  6805. msgid "Install the package that the code within @var{file} evaluates to."
  6806. msgstr ""
  6807. #. type: table
  6808. #: guix-git/doc/guix.texi:3194 guix-git/doc/guix.texi:5721
  6809. msgid "As an example, @var{file} might contain a definition like this (@pxref{Defining Packages}):"
  6810. msgstr ""
  6811. #. type: include
  6812. #: guix-git/doc/guix.texi:3196 guix-git/doc/guix.texi:10692
  6813. #, no-wrap
  6814. msgid "package-hello.scm"
  6815. msgstr ""
  6816. #. type: table
  6817. #: guix-git/doc/guix.texi:3203
  6818. 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})."
  6819. msgstr ""
  6820. #. type: table
  6821. #: guix-git/doc/guix.texi:3208
  6822. 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}:"
  6823. msgstr ""
  6824. #. type: example
  6825. #: guix-git/doc/guix.texi:3211 guix-git/doc/guix.texi:10702
  6826. #, no-wrap
  6827. msgid "@verbatiminclude package-hello.json\n"
  6828. msgstr ""
  6829. #. type: item
  6830. #: guix-git/doc/guix.texi:3213
  6831. #, no-wrap
  6832. msgid "--remove=@var{package} @dots{}"
  6833. msgstr ""
  6834. #. type: itemx
  6835. #: guix-git/doc/guix.texi:3214
  6836. #, no-wrap
  6837. msgid "-r @var{package} @dots{}"
  6838. msgstr ""
  6839. #. type: table
  6840. #: guix-git/doc/guix.texi:3216
  6841. msgid "Remove the specified @var{package}s."
  6842. msgstr ""
  6843. #. type: table
  6844. #: guix-git/doc/guix.texi:3221
  6845. 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}."
  6846. msgstr ""
  6847. #. type: item
  6848. #: guix-git/doc/guix.texi:3222
  6849. #, no-wrap
  6850. msgid "--upgrade[=@var{regexp} @dots{}]"
  6851. msgstr ""
  6852. #. type: itemx
  6853. #: guix-git/doc/guix.texi:3223
  6854. #, no-wrap
  6855. msgid "-u [@var{regexp} @dots{}]"
  6856. msgstr ""
  6857. #. type: cindex
  6858. #: guix-git/doc/guix.texi:3224
  6859. #, no-wrap
  6860. msgid "upgrading packages"
  6861. msgstr ""
  6862. #. type: table
  6863. #: guix-git/doc/guix.texi:3228
  6864. 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."
  6865. msgstr ""
  6866. #. type: table
  6867. #: guix-git/doc/guix.texi:3233
  6868. 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})."
  6869. msgstr ""
  6870. #. type: cindex
  6871. #: guix-git/doc/guix.texi:3234
  6872. #, fuzzy, no-wrap
  6873. msgid "package transformations, upgrades"
  6874. msgstr "软件包变换选项。"
  6875. #. type: table
  6876. #: guix-git/doc/guix.texi:3239
  6877. 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:"
  6878. msgstr ""
  6879. #. type: example
  6880. #: guix-git/doc/guix.texi:3242
  6881. #, no-wrap
  6882. msgid "guix install emacs-next --with-branch=emacs-next=master\n"
  6883. msgstr ""
  6884. #. type: table
  6885. #: guix-git/doc/guix.texi:3247
  6886. 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."
  6887. msgstr ""
  6888. #. type: table
  6889. #: guix-git/doc/guix.texi:3252
  6890. 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:"
  6891. msgstr ""
  6892. #. type: example
  6893. #: guix-git/doc/guix.texi:3255
  6894. #, fuzzy, no-wrap
  6895. msgid "guix install @var{package}\n"
  6896. msgstr "guix install emacs-guix\n"
  6897. #. type: item
  6898. #: guix-git/doc/guix.texi:3257
  6899. #, no-wrap
  6900. msgid "--do-not-upgrade[=@var{regexp} @dots{}]"
  6901. msgstr ""
  6902. #. type: table
  6903. #: guix-git/doc/guix.texi:3262
  6904. 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'':"
  6905. msgstr ""
  6906. #. type: example
  6907. #: guix-git/doc/guix.texi:3265
  6908. #, no-wrap
  6909. msgid "$ guix package --upgrade . --do-not-upgrade emacs\n"
  6910. msgstr ""
  6911. #. type: anchor{#1}
  6912. #: guix-git/doc/guix.texi:3267
  6913. #, no-wrap
  6914. msgid "profile-manifest"
  6915. msgstr ""
  6916. #. type: item
  6917. #: guix-git/doc/guix.texi:3267 guix-git/doc/guix.texi:5726
  6918. #: guix-git/doc/guix.texi:6145 guix-git/doc/guix.texi:11725
  6919. #: guix-git/doc/guix.texi:13162
  6920. #, no-wrap
  6921. msgid "--manifest=@var{file}"
  6922. msgstr ""
  6923. #. type: itemx
  6924. #: guix-git/doc/guix.texi:3268 guix-git/doc/guix.texi:5727
  6925. #: guix-git/doc/guix.texi:6146 guix-git/doc/guix.texi:11726
  6926. #, no-wrap
  6927. msgid "-m @var{file}"
  6928. msgstr ""
  6929. #. type: cindex
  6930. #: guix-git/doc/guix.texi:3269
  6931. #, no-wrap
  6932. msgid "profile declaration"
  6933. msgstr ""
  6934. #. type: cindex
  6935. #: guix-git/doc/guix.texi:3270
  6936. #, no-wrap
  6937. msgid "profile manifest"
  6938. msgstr ""
  6939. #. type: table
  6940. #: guix-git/doc/guix.texi:3274
  6941. 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."
  6942. msgstr ""
  6943. #. type: table
  6944. #: guix-git/doc/guix.texi:3280
  6945. 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."
  6946. msgstr ""
  6947. #. type: table
  6948. #: guix-git/doc/guix.texi:3284
  6949. msgid "@var{file} must return a @dfn{manifest} object, which is roughly a list of packages:"
  6950. msgstr ""
  6951. #. type: findex
  6952. #: guix-git/doc/guix.texi:3285
  6953. #, no-wrap
  6954. msgid "packages->manifest"
  6955. msgstr ""
  6956. #. type: lisp
  6957. #: guix-git/doc/guix.texi:3288
  6958. #, no-wrap
  6959. msgid ""
  6960. "(use-package-modules guile emacs)\n"
  6961. "\n"
  6962. msgstr ""
  6963. #. type: lisp
  6964. #: guix-git/doc/guix.texi:3294
  6965. #, no-wrap
  6966. msgid ""
  6967. "(packages->manifest\n"
  6968. " (list emacs\n"
  6969. " guile-2.0\n"
  6970. " ;; Use a specific package output.\n"
  6971. " (list guile-2.0 \"debug\")))\n"
  6972. msgstr ""
  6973. #. type: findex
  6974. #: guix-git/doc/guix.texi:3296
  6975. #, no-wrap
  6976. msgid "specifications->manifest"
  6977. msgstr ""
  6978. #. type: table
  6979. #: guix-git/doc/guix.texi:3303
  6980. 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:"
  6981. msgstr ""
  6982. #. type: lisp
  6983. #: guix-git/doc/guix.texi:3307
  6984. #, no-wrap
  6985. msgid ""
  6986. "(specifications->manifest\n"
  6987. " '(\"emacs\" \"guile@@2.2\" \"guile@@2.2:debug\"))\n"
  6988. msgstr ""
  6989. #. type: table
  6990. #: guix-git/doc/guix.texi:3311
  6991. msgid "@xref{export-manifest, @option{--export-manifest}}, to learn how to obtain a manifest file from an existing profile."
  6992. msgstr ""
  6993. #. type: item
  6994. #: guix-git/doc/guix.texi:3312 guix-git/doc/guix.texi:4414
  6995. #, no-wrap
  6996. msgid "--roll-back"
  6997. msgstr ""
  6998. #. type: cindex
  6999. #: guix-git/doc/guix.texi:3313 guix-git/doc/guix.texi:4415
  7000. #: guix-git/doc/guix.texi:32869
  7001. #, no-wrap
  7002. msgid "rolling back"
  7003. msgstr ""
  7004. #. type: cindex
  7005. #: guix-git/doc/guix.texi:3314 guix-git/doc/guix.texi:4416
  7006. #, no-wrap
  7007. msgid "undoing transactions"
  7008. msgstr ""
  7009. #. type: cindex
  7010. #: guix-git/doc/guix.texi:3315 guix-git/doc/guix.texi:4417
  7011. #, no-wrap
  7012. msgid "transactions, undoing"
  7013. msgstr ""
  7014. #. type: table
  7015. #: guix-git/doc/guix.texi:3318
  7016. msgid "Roll back to the previous @dfn{generation} of the profile---i.e., undo the last transaction."
  7017. msgstr ""
  7018. #. type: table
  7019. #: guix-git/doc/guix.texi:3321
  7020. msgid "When combined with options such as @option{--install}, roll back occurs before any other actions."
  7021. msgstr ""
  7022. #. type: table
  7023. #: guix-git/doc/guix.texi:3325
  7024. 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."
  7025. msgstr ""
  7026. #. type: table
  7027. #: guix-git/doc/guix.texi:3329
  7028. 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."
  7029. msgstr ""
  7030. #. type: item
  7031. #: guix-git/doc/guix.texi:3330 guix-git/doc/guix.texi:4421
  7032. #, no-wrap
  7033. msgid "--switch-generation=@var{pattern}"
  7034. msgstr ""
  7035. #. type: itemx
  7036. #: guix-git/doc/guix.texi:3331 guix-git/doc/guix.texi:4422
  7037. #, no-wrap
  7038. msgid "-S @var{pattern}"
  7039. msgstr ""
  7040. #. type: cindex
  7041. #: guix-git/doc/guix.texi:3332 guix-git/doc/guix.texi:3562
  7042. #: guix-git/doc/guix.texi:4423 guix-git/doc/guix.texi:32827
  7043. #, no-wrap
  7044. msgid "generations"
  7045. msgstr ""
  7046. #. type: table
  7047. #: guix-git/doc/guix.texi:3334 guix-git/doc/guix.texi:4425
  7048. msgid "Switch to a particular generation defined by @var{pattern}."
  7049. msgstr ""
  7050. #. type: table
  7051. #: guix-git/doc/guix.texi:3340 guix-git/doc/guix.texi:4431
  7052. 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}."
  7053. msgstr ""
  7054. #. type: table
  7055. #: guix-git/doc/guix.texi:3345
  7056. 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."
  7057. msgstr ""
  7058. #. type: item
  7059. #: guix-git/doc/guix.texi:3346
  7060. #, no-wrap
  7061. msgid "--search-paths[=@var{kind}]"
  7062. msgstr ""
  7063. #. type: table
  7064. #: guix-git/doc/guix.texi:3352
  7065. 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."
  7066. msgstr ""
  7067. #. type: table
  7068. #: guix-git/doc/guix.texi:3360
  7069. 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."
  7070. msgstr ""
  7071. #. type: table
  7072. #: guix-git/doc/guix.texi:3363
  7073. msgid "The typical use case is to define these environment variables in the shell:"
  7074. msgstr ""
  7075. #. type: example
  7076. #: guix-git/doc/guix.texi:3366
  7077. #, no-wrap
  7078. msgid "$ eval `guix package --search-paths`\n"
  7079. msgstr ""
  7080. #. type: table
  7081. #: guix-git/doc/guix.texi:3372
  7082. 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}."
  7083. msgstr ""
  7084. #. type: table
  7085. #: guix-git/doc/guix.texi:3375
  7086. msgid "This option can also be used to compute the @emph{combined} search paths of several profiles. Consider this example:"
  7087. msgstr ""
  7088. #. type: example
  7089. #: guix-git/doc/guix.texi:3380
  7090. #, no-wrap
  7091. msgid ""
  7092. "$ guix package -p foo -i guile\n"
  7093. "$ guix package -p bar -i guile-json\n"
  7094. "$ guix package -p foo -p bar --search-paths\n"
  7095. msgstr ""
  7096. #. type: table
  7097. #: guix-git/doc/guix.texi:3385
  7098. 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."
  7099. msgstr ""
  7100. #. type: cindex
  7101. #: guix-git/doc/guix.texi:3387
  7102. #, no-wrap
  7103. msgid "profile, choosing"
  7104. msgstr ""
  7105. #. type: item
  7106. #: guix-git/doc/guix.texi:3388 guix-git/doc/guix.texi:4451
  7107. #: guix-git/doc/guix.texi:4780
  7108. #, no-wrap
  7109. msgid "--profile=@var{profile}"
  7110. msgstr ""
  7111. #. type: itemx
  7112. #: guix-git/doc/guix.texi:3389 guix-git/doc/guix.texi:4452
  7113. #: guix-git/doc/guix.texi:4781
  7114. #, no-wrap
  7115. msgid "-p @var{profile}"
  7116. msgstr ""
  7117. #. type: table
  7118. #: guix-git/doc/guix.texi:3391
  7119. msgid "Use @var{profile} instead of the user's default profile."
  7120. msgstr ""
  7121. #. type: table
  7122. #: guix-git/doc/guix.texi:3396
  7123. 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:"
  7124. msgstr ""
  7125. #. type: example
  7126. #: guix-git/doc/guix.texi:3402
  7127. #, no-wrap
  7128. msgid ""
  7129. "$ guix install hello -p ~/code/my-profile\n"
  7130. "@dots{}\n"
  7131. "$ ~/code/my-profile/bin/hello\n"
  7132. "Hello, world!\n"
  7133. msgstr ""
  7134. #. type: table
  7135. #: guix-git/doc/guix.texi:3406
  7136. msgid "All it takes to get rid of the profile is to remove this symlink and its siblings that point to specific generations:"
  7137. msgstr ""
  7138. #. type: example
  7139. #: guix-git/doc/guix.texi:3409
  7140. #, no-wrap
  7141. msgid "$ rm ~/code/my-profile ~/code/my-profile-*-link\n"
  7142. msgstr ""
  7143. #. type: item
  7144. #: guix-git/doc/guix.texi:3411
  7145. #, no-wrap
  7146. msgid "--list-profiles"
  7147. msgstr ""
  7148. #. type: table
  7149. #: guix-git/doc/guix.texi:3413
  7150. msgid "List all the user's profiles:"
  7151. msgstr ""
  7152. #. type: example
  7153. #: guix-git/doc/guix.texi:3420
  7154. #, no-wrap
  7155. msgid ""
  7156. "$ guix package --list-profiles\n"
  7157. "/home/charlie/.guix-profile\n"
  7158. "/home/charlie/code/my-profile\n"
  7159. "/home/charlie/code/devel-profile\n"
  7160. "/home/charlie/tmp/test\n"
  7161. msgstr ""
  7162. #. type: table
  7163. #: guix-git/doc/guix.texi:3423
  7164. msgid "When running as root, list all the profiles of all the users."
  7165. msgstr ""
  7166. #. type: cindex
  7167. #: guix-git/doc/guix.texi:3424
  7168. #, no-wrap
  7169. msgid "collisions, in a profile"
  7170. msgstr ""
  7171. #. type: cindex
  7172. #: guix-git/doc/guix.texi:3425
  7173. #, no-wrap
  7174. msgid "colliding packages in profiles"
  7175. msgstr ""
  7176. #. type: cindex
  7177. #: guix-git/doc/guix.texi:3426
  7178. #, no-wrap
  7179. msgid "profile collisions"
  7180. msgstr ""
  7181. #. type: item
  7182. #: guix-git/doc/guix.texi:3427
  7183. #, no-wrap
  7184. msgid "--allow-collisions"
  7185. msgstr ""
  7186. #. type: table
  7187. #: guix-git/doc/guix.texi:3429
  7188. msgid "Allow colliding packages in the new profile. Use at your own risk!"
  7189. msgstr ""
  7190. #. type: table
  7191. #: guix-git/doc/guix.texi:3433
  7192. 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."
  7193. msgstr ""
  7194. #. type: item
  7195. #: guix-git/doc/guix.texi:3434 guix-git/doc/guix.texi:4494
  7196. #: guix-git/doc/guix.texi:6231
  7197. #, no-wrap
  7198. msgid "--bootstrap"
  7199. msgstr ""
  7200. #. type: table
  7201. #: guix-git/doc/guix.texi:3437
  7202. msgid "Use the bootstrap Guile to build the profile. This option is only useful to distribution developers."
  7203. msgstr ""
  7204. #. type: Plain text
  7205. #: guix-git/doc/guix.texi:3443
  7206. 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:"
  7207. msgstr ""
  7208. #. type: item
  7209. #: guix-git/doc/guix.texi:3446
  7210. #, no-wrap
  7211. msgid "--search=@var{regexp}"
  7212. msgstr ""
  7213. #. type: itemx
  7214. #: guix-git/doc/guix.texi:3447
  7215. #, no-wrap
  7216. msgid "-s @var{regexp}"
  7217. msgstr ""
  7218. #. type: anchor{#1}
  7219. #: guix-git/doc/guix.texi:3449
  7220. msgid "guix-search"
  7221. msgstr ""
  7222. #. type: cindex
  7223. #: guix-git/doc/guix.texi:3449
  7224. #, no-wrap
  7225. msgid "searching for packages"
  7226. msgstr ""
  7227. #. type: table
  7228. #: guix-git/doc/guix.texi:3455
  7229. 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})."
  7230. msgstr ""
  7231. #. type: table
  7232. #: guix-git/doc/guix.texi:3458
  7233. msgid "This allows specific fields to be extracted using the @command{recsel} command, for instance:"
  7234. msgstr ""
  7235. #. type: example
  7236. #: guix-git/doc/guix.texi:3464
  7237. #, no-wrap
  7238. msgid ""
  7239. "$ guix package -s malloc | recsel -p name,version,relevance\n"
  7240. "name: jemalloc\n"
  7241. "version: 4.5.0\n"
  7242. "relevance: 6\n"
  7243. "\n"
  7244. msgstr ""
  7245. #. type: example
  7246. #: guix-git/doc/guix.texi:3468
  7247. #, no-wrap
  7248. msgid ""
  7249. "name: glibc\n"
  7250. "version: 2.25\n"
  7251. "relevance: 1\n"
  7252. "\n"
  7253. msgstr ""
  7254. #. type: example
  7255. #: guix-git/doc/guix.texi:3472
  7256. #, no-wrap
  7257. msgid ""
  7258. "name: libgc\n"
  7259. "version: 7.6.0\n"
  7260. "relevance: 1\n"
  7261. msgstr ""
  7262. #. type: table
  7263. #: guix-git/doc/guix.texi:3476
  7264. msgid "Similarly, to show the name of all the packages available under the terms of the GNU@tie{}LGPL version 3:"
  7265. msgstr ""
  7266. #. type: example
  7267. #: guix-git/doc/guix.texi:3480
  7268. #, no-wrap
  7269. msgid ""
  7270. "$ guix package -s \"\" | recsel -p name -e 'license ~ \"LGPL 3\"'\n"
  7271. "name: elfutils\n"
  7272. "\n"
  7273. msgstr ""
  7274. #. type: example
  7275. #: guix-git/doc/guix.texi:3483
  7276. #, no-wrap
  7277. msgid ""
  7278. "name: gmp\n"
  7279. "@dots{}\n"
  7280. msgstr ""
  7281. #. type: table
  7282. #: guix-git/doc/guix.texi:3489
  7283. 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):"
  7284. msgstr ""
  7285. #. type: example
  7286. #: guix-git/doc/guix.texi:3494
  7287. #, no-wrap
  7288. msgid ""
  7289. "$ guix search '\\<board\\>' game | recsel -p name\n"
  7290. "name: gnubg\n"
  7291. "@dots{}\n"
  7292. msgstr ""
  7293. #. type: table
  7294. #: guix-git/doc/guix.texi:3500
  7295. 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."
  7296. msgstr ""
  7297. #. type: table
  7298. #: guix-git/doc/guix.texi:3504
  7299. 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:"
  7300. msgstr ""
  7301. #. type: example
  7302. #: guix-git/doc/guix.texi:3508
  7303. #, no-wrap
  7304. msgid ""
  7305. "$ guix search crypto library | \\\n"
  7306. " recsel -e '! (name ~ \"^(ghc|perl|python|ruby)\")' -p name,synopsis\n"
  7307. msgstr ""
  7308. #. type: table
  7309. #: guix-git/doc/guix.texi:3513
  7310. msgid "@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more information on @dfn{selection expressions} for @code{recsel -e}."
  7311. msgstr ""
  7312. #. type: item
  7313. #: guix-git/doc/guix.texi:3514
  7314. #, no-wrap
  7315. msgid "--show=@var{package}"
  7316. msgstr ""
  7317. #. type: table
  7318. #: guix-git/doc/guix.texi:3518
  7319. 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})."
  7320. msgstr ""
  7321. #. type: example
  7322. #: guix-git/doc/guix.texi:3523
  7323. #, no-wrap
  7324. msgid ""
  7325. "$ guix package --show=python | recsel -p name,version\n"
  7326. "name: python\n"
  7327. "version: 2.7.6\n"
  7328. "\n"
  7329. msgstr ""
  7330. #. type: example
  7331. #: guix-git/doc/guix.texi:3526
  7332. #, no-wrap
  7333. msgid ""
  7334. "name: python\n"
  7335. "version: 3.3.5\n"
  7336. msgstr ""
  7337. #. type: table
  7338. #: guix-git/doc/guix.texi:3530
  7339. 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):"
  7340. msgstr ""
  7341. #. type: example
  7342. #: guix-git/doc/guix.texi:3534
  7343. #, no-wrap
  7344. msgid ""
  7345. "$ guix show python@@3.4 | recsel -p name,version\n"
  7346. "name: python\n"
  7347. "version: 3.4.3\n"
  7348. msgstr ""
  7349. #. type: item
  7350. #: guix-git/doc/guix.texi:3538
  7351. #, no-wrap
  7352. msgid "--list-installed[=@var{regexp}]"
  7353. msgstr ""
  7354. #. type: itemx
  7355. #: guix-git/doc/guix.texi:3539
  7356. #, no-wrap
  7357. msgid "-I [@var{regexp}]"
  7358. msgstr ""
  7359. #. type: table
  7360. #: guix-git/doc/guix.texi:3543
  7361. 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}."
  7362. msgstr ""
  7363. #. type: table
  7364. #: guix-git/doc/guix.texi:3549
  7365. 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."
  7366. msgstr ""
  7367. #. type: item
  7368. #: guix-git/doc/guix.texi:3550
  7369. #, no-wrap
  7370. msgid "--list-available[=@var{regexp}]"
  7371. msgstr ""
  7372. #. type: itemx
  7373. #: guix-git/doc/guix.texi:3551
  7374. #, no-wrap
  7375. msgid "-A [@var{regexp}]"
  7376. msgstr ""
  7377. #. type: table
  7378. #: guix-git/doc/guix.texi:3555
  7379. 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}."
  7380. msgstr ""
  7381. #. type: table
  7382. #: guix-git/doc/guix.texi:3559
  7383. 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."
  7384. msgstr ""
  7385. #. type: item
  7386. #: guix-git/doc/guix.texi:3560 guix-git/doc/guix.texi:4407
  7387. #, no-wrap
  7388. msgid "--list-generations[=@var{pattern}]"
  7389. msgstr ""
  7390. #. type: itemx
  7391. #: guix-git/doc/guix.texi:3561 guix-git/doc/guix.texi:4408
  7392. #, no-wrap
  7393. msgid "-l [@var{pattern}]"
  7394. msgstr ""
  7395. #. type: table
  7396. #: guix-git/doc/guix.texi:3567
  7397. 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."
  7398. msgstr ""
  7399. #. type: table
  7400. #: guix-git/doc/guix.texi:3572
  7401. 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."
  7402. msgstr ""
  7403. #. type: table
  7404. #: guix-git/doc/guix.texi:3575
  7405. msgid "When @var{pattern} is used, the command returns only matching generations. Valid patterns include:"
  7406. msgstr ""
  7407. #. type: item
  7408. #: guix-git/doc/guix.texi:3577
  7409. #, no-wrap
  7410. msgid "@emph{Integers and comma-separated integers}. Both patterns denote"
  7411. msgstr ""
  7412. #. type: itemize
  7413. #: guix-git/doc/guix.texi:3580
  7414. msgid "generation numbers. For instance, @option{--list-generations=1} returns the first one."
  7415. msgstr ""
  7416. #. type: itemize
  7417. #: guix-git/doc/guix.texi:3583
  7418. msgid "And @option{--list-generations=1,8,2} outputs three generations in the specified order. Neither spaces nor trailing commas are allowed."
  7419. msgstr ""
  7420. #. type: item
  7421. #: guix-git/doc/guix.texi:3584
  7422. #, no-wrap
  7423. msgid "@emph{Ranges}. @option{--list-generations=2..9} prints the"
  7424. msgstr ""
  7425. #. type: itemize
  7426. #: guix-git/doc/guix.texi:3587
  7427. msgid "specified generations and everything in between. Note that the start of a range must be smaller than its end."
  7428. msgstr ""
  7429. #. type: itemize
  7430. #: guix-git/doc/guix.texi:3591
  7431. msgid "It is also possible to omit the endpoint. For example, @option{--list-generations=2..}, returns all generations starting from the second one."
  7432. msgstr ""
  7433. #. type: item
  7434. #: guix-git/doc/guix.texi:3592
  7435. #, no-wrap
  7436. msgid "@emph{Durations}. You can also get the last @emph{N}@tie{}days, weeks,"
  7437. msgstr ""
  7438. #. type: itemize
  7439. #: guix-git/doc/guix.texi:3596
  7440. 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."
  7441. msgstr ""
  7442. #. type: item
  7443. #: guix-git/doc/guix.texi:3598 guix-git/doc/guix.texi:4432
  7444. #, no-wrap
  7445. msgid "--delete-generations[=@var{pattern}]"
  7446. msgstr ""
  7447. #. type: itemx
  7448. #: guix-git/doc/guix.texi:3599 guix-git/doc/guix.texi:4433
  7449. #, no-wrap
  7450. msgid "-d [@var{pattern}]"
  7451. msgstr ""
  7452. #. type: table
  7453. #: guix-git/doc/guix.texi:3602 guix-git/doc/guix.texi:4436
  7454. msgid "When @var{pattern} is omitted, delete all generations except the current one."
  7455. msgstr ""
  7456. #. type: table
  7457. #: guix-git/doc/guix.texi:3608 guix-git/doc/guix.texi:4442
  7458. 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."
  7459. msgstr ""
  7460. #. type: table
  7461. #: guix-git/doc/guix.texi:3611
  7462. msgid "If the current generation matches, it is @emph{not} deleted. Also, the zeroth generation is never deleted."
  7463. msgstr ""
  7464. #. type: table
  7465. #: guix-git/doc/guix.texi:3614 guix-git/doc/guix.texi:4447
  7466. msgid "Note that deleting generations prevents rolling back to them. Consequently, this command must be used with care."
  7467. msgstr ""
  7468. #. type: cindex
  7469. #: guix-git/doc/guix.texi:3615
  7470. #, no-wrap
  7471. msgid "manifest, exporting"
  7472. msgstr ""
  7473. #. type: anchor{#1}
  7474. #: guix-git/doc/guix.texi:3617
  7475. msgid "export-manifest"
  7476. msgstr ""
  7477. #. type: item
  7478. #: guix-git/doc/guix.texi:3617
  7479. #, no-wrap
  7480. msgid "--export-manifest"
  7481. msgstr ""
  7482. #. type: table
  7483. #: guix-git/doc/guix.texi:3620
  7484. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to the chosen profile(s)."
  7485. msgstr ""
  7486. #. type: table
  7487. #: guix-git/doc/guix.texi:3624
  7488. 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."
  7489. msgstr ""
  7490. #. type: table
  7491. #: guix-git/doc/guix.texi:3629
  7492. 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."
  7493. msgstr ""
  7494. #. type: table
  7495. #: guix-git/doc/guix.texi:3634
  7496. 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."
  7497. msgstr ""
  7498. #. type: cindex
  7499. #: guix-git/doc/guix.texi:3635
  7500. #, fuzzy, no-wrap
  7501. msgid "pinning, channel revisions of a profile"
  7502. msgstr "和其它版本的Guix交互。"
  7503. #. type: item
  7504. #: guix-git/doc/guix.texi:3636
  7505. #, no-wrap
  7506. msgid "--export-channels"
  7507. msgstr ""
  7508. #. type: table
  7509. #: guix-git/doc/guix.texi:3640
  7510. 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})."
  7511. msgstr ""
  7512. #. type: table
  7513. #: guix-git/doc/guix.texi:3644
  7514. msgid "Together with @option{--export-manifest}, this option provides information allowing you to replicate the current profile (@pxref{Replicating Guix})."
  7515. msgstr ""
  7516. #. type: table
  7517. #: guix-git/doc/guix.texi:3652
  7518. 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})."
  7519. msgstr ""
  7520. #. type: table
  7521. #: guix-git/doc/guix.texi:3657
  7522. 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."
  7523. msgstr ""
  7524. #. type: Plain text
  7525. #: guix-git/doc/guix.texi:3664
  7526. 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})."
  7527. msgstr ""
  7528. #. type: cindex
  7529. #: guix-git/doc/guix.texi:3669
  7530. #, no-wrap
  7531. msgid "pre-built binaries"
  7532. msgstr ""
  7533. #. type: Plain text
  7534. #: guix-git/doc/guix.texi:3675
  7535. 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."
  7536. msgstr ""
  7537. #. type: Plain text
  7538. #: guix-git/doc/guix.texi:3680
  7539. 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."
  7540. msgstr ""
  7541. #. type: cindex
  7542. #: guix-git/doc/guix.texi:3694
  7543. #, no-wrap
  7544. msgid "build farm"
  7545. msgstr ""
  7546. #. type: Plain text
  7547. #: guix-git/doc/guix.texi:3704
  7548. msgid "The @code{@value{SUBSTITUTE-SERVER}} server is a front-end to an official build farm that builds packages from Guix continuously for some architectures, and makes them available as substitutes. This is the default source of substitutes; it 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})."
  7549. msgstr ""
  7550. #. type: Plain text
  7551. #: guix-git/doc/guix.texi:3710
  7552. 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."
  7553. msgstr ""
  7554. #. type: Plain text
  7555. #: guix-git/doc/guix.texi:3719
  7556. msgid "Substitutes from the official build farm 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."
  7557. msgstr ""
  7558. #. type: cindex
  7559. #: guix-git/doc/guix.texi:3723
  7560. #, no-wrap
  7561. msgid "security"
  7562. msgstr ""
  7563. #. type: cindex
  7564. #: guix-git/doc/guix.texi:3725
  7565. #, no-wrap
  7566. msgid "access control list (ACL), for substitutes"
  7567. msgstr ""
  7568. #. type: cindex
  7569. #: guix-git/doc/guix.texi:3726
  7570. #, no-wrap
  7571. msgid "ACL (access control list), for substitutes"
  7572. msgstr ""
  7573. #. type: Plain text
  7574. #: guix-git/doc/guix.texi:3733
  7575. msgid "To allow Guix to download substitutes from @code{@value{SUBSTITUTE-SERVER}} or a mirror thereof, you must add its 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 @code{@value{SUBSTITUTE-SERVER}} to not be compromised and to serve genuine substitutes."
  7576. msgstr ""
  7577. #. type: quotation
  7578. #: guix-git/doc/guix.texi:3737
  7579. msgid "If you are using Guix System, you can skip this section: Guix System authorizes substitutes from @code{@value{SUBSTITUTE-SERVER}} by default."
  7580. msgstr ""
  7581. #. type: Plain text
  7582. #: guix-git/doc/guix.texi:3745
  7583. msgid "The public key for @code{@value{SUBSTITUTE-SERVER}} is installed along with Guix, in @code{@var{prefix}/share/guix/@value{SUBSTITUTE-SERVER}.pub}, 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:"
  7584. msgstr ""
  7585. #. type: example
  7586. #: guix-git/doc/guix.texi:3748
  7587. #, no-wrap
  7588. msgid "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  7589. msgstr ""
  7590. #. type: Plain text
  7591. #: guix-git/doc/guix.texi:3752
  7592. msgid "Once this is in place, the output of a command like @code{guix build} should change from something like:"
  7593. msgstr ""
  7594. #. type: example
  7595. #: guix-git/doc/guix.texi:3761
  7596. #, no-wrap
  7597. msgid ""
  7598. "$ guix build emacs --dry-run\n"
  7599. "The following derivations would be built:\n"
  7600. " /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv\n"
  7601. " /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv\n"
  7602. " /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv\n"
  7603. " /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv\n"
  7604. "@dots{}\n"
  7605. msgstr ""
  7606. #. type: Plain text
  7607. #: guix-git/doc/guix.texi:3765
  7608. msgid "to something like:"
  7609. msgstr ""
  7610. #. type: example
  7611. #: guix-git/doc/guix.texi:3774
  7612. #, no-wrap
  7613. msgid ""
  7614. "$ guix build emacs --dry-run\n"
  7615. "112.3 MB would be downloaded:\n"
  7616. " /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3\n"
  7617. " /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d\n"
  7618. " /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16\n"
  7619. " /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7\n"
  7620. "@dots{}\n"
  7621. msgstr ""
  7622. #. type: Plain text
  7623. #: guix-git/doc/guix.texi:3781
  7624. msgid "The text changed from ``The following derivations would be built'' to ``112.3 MB would be downloaded''. This indicates that substitutes from @code{@value{SUBSTITUTE-SERVER}} are usable and will be downloaded, when possible, for future builds."
  7625. msgstr ""
  7626. #. type: cindex
  7627. #: guix-git/doc/guix.texi:3782
  7628. #, no-wrap
  7629. msgid "substitutes, how to disable"
  7630. msgstr ""
  7631. #. type: Plain text
  7632. #: guix-git/doc/guix.texi:3788
  7633. 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."
  7634. msgstr ""
  7635. #. type: cindex
  7636. #: guix-git/doc/guix.texi:3792
  7637. #, fuzzy, no-wrap
  7638. msgid "substitute servers, adding more"
  7639. msgstr "授权substitute服务器。"
  7640. #. type: Plain text
  7641. #: guix-git/doc/guix.texi:3799
  7642. 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."
  7643. msgstr ""
  7644. #. type: Plain text
  7645. #: guix-git/doc/guix.texi:3804
  7646. 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."
  7647. msgstr ""
  7648. #. type: Plain text
  7649. #: guix-git/doc/guix.texi:3811
  7650. 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}})."
  7651. msgstr ""
  7652. #. type: Plain text
  7653. #: guix-git/doc/guix.texi:3816
  7654. 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}}. The resulting operating system configuration will look something like:"
  7655. msgstr ""
  7656. #. type: lisp
  7657. #: guix-git/doc/guix.texi:3833
  7658. #, no-wrap
  7659. msgid ""
  7660. "(operating-system\n"
  7661. " ;; @dots{}\n"
  7662. " (services\n"
  7663. " ;; Assume we're starting from '%desktop-services'. Replace it\n"
  7664. " ;; with the list of services you're actually using.\n"
  7665. " (modify-services %desktop-services\n"
  7666. " (guix-service-type config =>\n"
  7667. " (guix-configuration\n"
  7668. " (inherit config)\n"
  7669. " (substitute-urls\n"
  7670. " (append (list \"https://guix.example.org\")\n"
  7671. " %default-substitute-urls))\n"
  7672. " (authorized-keys\n"
  7673. " (append (list (local-file \"./key.pub\"))\n"
  7674. " %default-authorized-guix-keys)))))))\n"
  7675. msgstr ""
  7676. #. type: Plain text
  7677. #: guix-git/doc/guix.texi:3840
  7678. 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:"
  7679. msgstr ""
  7680. #. type: example
  7681. #: guix-git/doc/guix.texi:3844
  7682. #, no-wrap
  7683. msgid ""
  7684. "$ sudo guix system reconfigure /etc/config.scm\n"
  7685. "$ sudo herd restart guix-daemon\n"
  7686. msgstr ""
  7687. #. type: Plain text
  7688. #: guix-git/doc/guix.texi:3848
  7689. msgid "If you're running Guix on a ``foreign distro'', you would instead take the following steps to get substitutes from additional servers:"
  7690. msgstr ""
  7691. #. type: enumerate
  7692. #: guix-git/doc/guix.texi:3857
  7693. 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}}):"
  7694. msgstr ""
  7695. #. type: example
  7696. #: guix-git/doc/guix.texi:3860
  7697. #, no-wrap
  7698. msgid "@dots{} --substitute-urls='https://guix.example.org https://@value{SUBSTITUTE-SERVER}'\n"
  7699. msgstr ""
  7700. #. type: enumerate
  7701. #: guix-git/doc/guix.texi:3864
  7702. msgid "Restart the daemon. For systemd, it goes like this:"
  7703. msgstr ""
  7704. #. type: example
  7705. #: guix-git/doc/guix.texi:3868
  7706. #, no-wrap
  7707. msgid ""
  7708. "systemctl daemon-reload\n"
  7709. "systemctl restart guix-daemon.service\n"
  7710. msgstr ""
  7711. #. type: enumerate
  7712. #: guix-git/doc/guix.texi:3872
  7713. msgid "Authorize the key of the new server (@pxref{Invoking guix archive}):"
  7714. msgstr ""
  7715. #. type: example
  7716. #: guix-git/doc/guix.texi:3875
  7717. #, fuzzy, no-wrap
  7718. msgid "guix archive --authorize < key.pub\n"
  7719. msgstr "# guix archive --authorize < master-public-key.txt\n"
  7720. #. type: enumerate
  7721. #: guix-git/doc/guix.texi:3879
  7722. msgid "Again this assumes @file{key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  7723. msgstr ""
  7724. #. type: Plain text
  7725. #: guix-git/doc/guix.texi:3886
  7726. msgid "Now you're all set! Substitutes will be preferably taken from @code{https://guix.example.org}, using @code{@value{SUBSTITUTE-SERVER}} as a fallback. 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."
  7727. msgstr ""
  7728. #. type: Plain text
  7729. #: guix-git/doc/guix.texi:3890
  7730. 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."
  7731. msgstr ""
  7732. #. type: cindex
  7733. #: guix-git/doc/guix.texi:3894
  7734. #, no-wrap
  7735. msgid "digital signatures"
  7736. msgstr ""
  7737. #. type: Plain text
  7738. #: guix-git/doc/guix.texi:3898
  7739. 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."
  7740. msgstr ""
  7741. #. type: Plain text
  7742. #: guix-git/doc/guix.texi:3904
  7743. 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:"
  7744. msgstr ""
  7745. #. type: example
  7746. #: guix-git/doc/guix.texi:3907
  7747. #, no-wrap
  7748. msgid "--substitute-urls=\"https://a.example.org https://b.example.org\"\n"
  7749. msgstr ""
  7750. #. type: Plain text
  7751. #: guix-git/doc/guix.texi:3918
  7752. 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)."
  7753. msgstr ""
  7754. #. type: Plain text
  7755. #: guix-git/doc/guix.texi:3925
  7756. 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)."
  7757. msgstr ""
  7758. #. type: Plain text
  7759. #: guix-git/doc/guix.texi:3937
  7760. 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}."
  7761. msgstr ""
  7762. #. type: Plain text
  7763. #: guix-git/doc/guix.texi:3946
  7764. 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."
  7765. msgstr ""
  7766. #. type: Plain text
  7767. #: guix-git/doc/guix.texi:3960
  7768. 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."
  7769. msgstr ""
  7770. #. type: Plain text
  7771. #: guix-git/doc/guix.texi:3965
  7772. 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."
  7773. msgstr ""
  7774. #. type: cindex
  7775. #: guix-git/doc/guix.texi:3969
  7776. #, no-wrap
  7777. msgid "trust, of pre-built binaries"
  7778. msgstr ""
  7779. #. type: Plain text
  7780. #: guix-git/doc/guix.texi:3979
  7781. 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 @code{@value{SUBSTITUTE-SERVER}} substitutes can be convenient, we encourage users to also build on their own, or even run their own build farm, such that @code{@value{SUBSTITUTE-SERVER}} is 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})."
  7782. msgstr ""
  7783. #. type: Plain text
  7784. #: guix-git/doc/guix.texi:3991
  7785. 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}})."
  7786. msgstr ""
  7787. #. type: Plain text
  7788. #: guix-git/doc/guix.texi:3995
  7789. 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}."
  7790. msgstr ""
  7791. #. type: cindex
  7792. #: guix-git/doc/guix.texi:3999
  7793. #, no-wrap
  7794. msgid "multiple-output packages"
  7795. msgstr ""
  7796. #. type: cindex
  7797. #: guix-git/doc/guix.texi:4000
  7798. #, no-wrap
  7799. msgid "package outputs"
  7800. msgstr ""
  7801. #. type: cindex
  7802. #: guix-git/doc/guix.texi:4001
  7803. #, no-wrap
  7804. msgid "outputs"
  7805. msgstr ""
  7806. #. type: Plain text
  7807. #: guix-git/doc/guix.texi:4011
  7808. 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."
  7809. msgstr ""
  7810. #. type: Plain text
  7811. #: guix-git/doc/guix.texi:4019
  7812. 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:"
  7813. msgstr ""
  7814. #. type: example
  7815. #: guix-git/doc/guix.texi:4022
  7816. #, no-wrap
  7817. msgid "guix install glib\n"
  7818. msgstr "guix install glib\n"
  7819. #. type: item
  7820. #: guix-git/doc/guix.texi:4024 guix-git/doc/guix.texi:34192
  7821. #: guix-git/doc/guix.texi:34249
  7822. #, no-wrap
  7823. msgid "documentation"
  7824. msgstr ""
  7825. #. type: Plain text
  7826. #: guix-git/doc/guix.texi:4026
  7827. msgid "The command to install its documentation is:"
  7828. msgstr ""
  7829. #. type: example
  7830. #: guix-git/doc/guix.texi:4029
  7831. #, no-wrap
  7832. msgid "guix install glib:doc\n"
  7833. msgstr ""
  7834. #. type: Plain text
  7835. #: guix-git/doc/guix.texi:4040
  7836. 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})."
  7837. msgstr ""
  7838. #. type: Plain text
  7839. #: guix-git/doc/guix.texi:4048
  7840. 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})."
  7841. msgstr ""
  7842. #. type: section
  7843. #: guix-git/doc/guix.texi:4051
  7844. #, no-wrap
  7845. msgid "Invoking @command{guix gc}"
  7846. msgstr ""
  7847. #. type: cindex
  7848. #: guix-git/doc/guix.texi:4053
  7849. #, no-wrap
  7850. msgid "garbage collector"
  7851. msgstr ""
  7852. #. type: cindex
  7853. #: guix-git/doc/guix.texi:4054
  7854. #, no-wrap
  7855. msgid "disk space"
  7856. msgstr ""
  7857. #. type: Plain text
  7858. #: guix-git/doc/guix.texi:4060
  7859. 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!"
  7860. msgstr ""
  7861. #. type: Plain text
  7862. #: guix-git/doc/guix.texi:4071
  7863. 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."
  7864. msgstr ""
  7865. #. type: Plain text
  7866. #: guix-git/doc/guix.texi:4077
  7867. 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})."
  7868. msgstr ""
  7869. #. type: Plain text
  7870. #: guix-git/doc/guix.texi:4081
  7871. 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:"
  7872. msgstr ""
  7873. #. type: example
  7874. #: guix-git/doc/guix.texi:4084
  7875. #, no-wrap
  7876. msgid "guix gc -F 5G\n"
  7877. msgstr ""
  7878. #. type: Plain text
  7879. #: guix-git/doc/guix.texi:4093
  7880. 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."
  7881. msgstr ""
  7882. #. type: Plain text
  7883. #: guix-git/doc/guix.texi:4099
  7884. 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:"
  7885. msgstr ""
  7886. #. type: item
  7887. #: guix-git/doc/guix.texi:4101
  7888. #, no-wrap
  7889. msgid "--collect-garbage[=@var{min}]"
  7890. msgstr ""
  7891. #. type: itemx
  7892. #: guix-git/doc/guix.texi:4102
  7893. #, no-wrap
  7894. msgid "-C [@var{min}]"
  7895. msgstr ""
  7896. #. type: table
  7897. #: guix-git/doc/guix.texi:4106
  7898. msgid "Collect garbage---i.e., unreachable @file{/gnu/store} files and sub-directories. This is the default operation when no option is specified."
  7899. msgstr ""
  7900. #. type: table
  7901. #: guix-git/doc/guix.texi:4111
  7902. 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})."
  7903. msgstr ""
  7904. #. type: table
  7905. #: guix-git/doc/guix.texi:4113
  7906. msgid "When @var{min} is omitted, collect all the garbage."
  7907. msgstr ""
  7908. #. type: item
  7909. #: guix-git/doc/guix.texi:4114
  7910. #, no-wrap
  7911. msgid "--free-space=@var{free}"
  7912. msgstr ""
  7913. #. type: itemx
  7914. #: guix-git/doc/guix.texi:4115
  7915. #, no-wrap
  7916. msgid "-F @var{free}"
  7917. msgstr ""
  7918. #. type: table
  7919. #: guix-git/doc/guix.texi:4119
  7920. 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."
  7921. msgstr ""
  7922. #. type: table
  7923. #: guix-git/doc/guix.texi:4122
  7924. msgid "When @var{free} or more is already available in @file{/gnu/store}, do nothing and exit immediately."
  7925. msgstr ""
  7926. #. type: item
  7927. #: guix-git/doc/guix.texi:4123
  7928. #, no-wrap
  7929. msgid "--delete-generations[=@var{duration}]"
  7930. msgstr ""
  7931. #. type: itemx
  7932. #: guix-git/doc/guix.texi:4124
  7933. #, no-wrap
  7934. msgid "-d [@var{duration}]"
  7935. msgstr ""
  7936. #. type: table
  7937. #: guix-git/doc/guix.texi:4128
  7938. 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}."
  7939. msgstr ""
  7940. #. type: table
  7941. #: guix-git/doc/guix.texi:4132
  7942. 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:"
  7943. msgstr ""
  7944. #. type: example
  7945. #: guix-git/doc/guix.texi:4135
  7946. #, no-wrap
  7947. msgid "guix gc -d 2m -F 10G\n"
  7948. msgstr ""
  7949. #. type: item
  7950. #: guix-git/doc/guix.texi:4137
  7951. #, no-wrap
  7952. msgid "--delete"
  7953. msgstr ""
  7954. #. type: itemx
  7955. #: guix-git/doc/guix.texi:4138
  7956. #, no-wrap
  7957. msgid "-D"
  7958. msgstr ""
  7959. #. type: table
  7960. #: guix-git/doc/guix.texi:4142
  7961. 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."
  7962. msgstr ""
  7963. #. type: item
  7964. #: guix-git/doc/guix.texi:4143
  7965. #, no-wrap
  7966. msgid "--list-failures"
  7967. msgstr ""
  7968. #. type: table
  7969. #: guix-git/doc/guix.texi:4145
  7970. msgid "List store items corresponding to cached build failures."
  7971. msgstr ""
  7972. #. type: table
  7973. #: guix-git/doc/guix.texi:4149
  7974. msgid "This prints nothing unless the daemon was started with @option{--cache-failures} (@pxref{Invoking guix-daemon, @option{--cache-failures}})."
  7975. msgstr ""
  7976. #. type: item
  7977. #: guix-git/doc/guix.texi:4150
  7978. #, no-wrap
  7979. msgid "--list-roots"
  7980. msgstr ""
  7981. #. type: table
  7982. #: guix-git/doc/guix.texi:4153
  7983. msgid "List the GC roots owned by the user; when run as root, list @emph{all} the GC roots."
  7984. msgstr ""
  7985. #. type: item
  7986. #: guix-git/doc/guix.texi:4154
  7987. #, no-wrap
  7988. msgid "--list-busy"
  7989. msgstr ""
  7990. #. type: table
  7991. #: guix-git/doc/guix.texi:4157
  7992. msgid "List store items in use by currently running processes. These store items are effectively considered GC roots: they cannot be deleted."
  7993. msgstr ""
  7994. #. type: item
  7995. #: guix-git/doc/guix.texi:4158
  7996. #, no-wrap
  7997. msgid "--clear-failures"
  7998. msgstr ""
  7999. #. type: table
  8000. #: guix-git/doc/guix.texi:4160
  8001. msgid "Remove the specified store items from the failed-build cache."
  8002. msgstr ""
  8003. #. type: table
  8004. #: guix-git/doc/guix.texi:4163
  8005. msgid "Again, this option only makes sense when the daemon is started with @option{--cache-failures}. Otherwise, it does nothing."
  8006. msgstr ""
  8007. #. type: item
  8008. #: guix-git/doc/guix.texi:4164
  8009. #, no-wrap
  8010. msgid "--list-dead"
  8011. msgstr ""
  8012. #. type: table
  8013. #: guix-git/doc/guix.texi:4167
  8014. 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."
  8015. msgstr ""
  8016. #. type: item
  8017. #: guix-git/doc/guix.texi:4168
  8018. #, no-wrap
  8019. msgid "--list-live"
  8020. msgstr ""
  8021. #. type: table
  8022. #: guix-git/doc/guix.texi:4170
  8023. msgid "Show the list of live store files and directories."
  8024. msgstr ""
  8025. #. type: Plain text
  8026. #: guix-git/doc/guix.texi:4174
  8027. msgid "In addition, the references among existing store files can be queried:"
  8028. msgstr ""
  8029. #. type: item
  8030. #: guix-git/doc/guix.texi:4177
  8031. #, no-wrap
  8032. msgid "--references"
  8033. msgstr ""
  8034. #. type: itemx
  8035. #: guix-git/doc/guix.texi:4178
  8036. #, no-wrap
  8037. msgid "--referrers"
  8038. msgstr ""
  8039. #. type: cindex
  8040. #: guix-git/doc/guix.texi:4179 guix-git/doc/guix.texi:12256
  8041. #, no-wrap
  8042. msgid "package dependencies"
  8043. msgstr ""
  8044. #. type: table
  8045. #: guix-git/doc/guix.texi:4182
  8046. msgid "List the references (respectively, the referrers) of store files given as arguments."
  8047. msgstr ""
  8048. #. type: item
  8049. #: guix-git/doc/guix.texi:4183
  8050. #, no-wrap
  8051. msgid "--requisites"
  8052. msgstr ""
  8053. #. type: itemx
  8054. #: guix-git/doc/guix.texi:4184 guix-git/doc/guix.texi:6031
  8055. #, no-wrap
  8056. msgid "-R"
  8057. msgstr ""
  8058. #. type: item
  8059. #: guix-git/doc/guix.texi:4185 guix-git/doc/guix.texi:12112
  8060. #: guix-git/doc/guix.texi:12140 guix-git/doc/guix.texi:12221
  8061. #, no-wrap
  8062. msgid "closure"
  8063. msgstr ""
  8064. #. type: table
  8065. #: guix-git/doc/guix.texi:4190
  8066. 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."
  8067. msgstr ""
  8068. #. type: table
  8069. #: guix-git/doc/guix.texi:4194
  8070. 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."
  8071. msgstr ""
  8072. #. type: item
  8073. #: guix-git/doc/guix.texi:4195
  8074. #, no-wrap
  8075. msgid "--derivers"
  8076. msgstr ""
  8077. #. type: item
  8078. #: guix-git/doc/guix.texi:4196 guix-git/doc/guix.texi:6345
  8079. #: guix-git/doc/guix.texi:11975 guix-git/doc/guix.texi:12365
  8080. #, no-wrap
  8081. msgid "derivation"
  8082. msgstr ""
  8083. #. type: table
  8084. #: guix-git/doc/guix.texi:4199
  8085. msgid "Return the derivation(s) leading to the given store items (@pxref{Derivations})."
  8086. msgstr ""
  8087. #. type: table
  8088. #: guix-git/doc/guix.texi:4201
  8089. msgid "For example, this command:"
  8090. msgstr ""
  8091. #. type: example
  8092. #: guix-git/doc/guix.texi:4204
  8093. #, no-wrap
  8094. msgid "guix gc --derivers $(guix package -I ^emacs$ | cut -f4)\n"
  8095. msgstr ""
  8096. #. type: table
  8097. #: guix-git/doc/guix.texi:4209
  8098. msgid "returns the @file{.drv} file(s) leading to the @code{emacs} package installed in your profile."
  8099. msgstr ""
  8100. #. type: table
  8101. #: guix-git/doc/guix.texi:4213
  8102. 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."
  8103. msgstr ""
  8104. #. type: Plain text
  8105. #: guix-git/doc/guix.texi:4217
  8106. msgid "Lastly, the following options allow you to check the integrity of the store and to control disk usage."
  8107. msgstr ""
  8108. #. type: item
  8109. #: guix-git/doc/guix.texi:4220
  8110. #, no-wrap
  8111. msgid "--verify[=@var{options}]"
  8112. msgstr ""
  8113. #. type: cindex
  8114. #: guix-git/doc/guix.texi:4221
  8115. #, no-wrap
  8116. msgid "integrity, of the store"
  8117. msgstr ""
  8118. #. type: cindex
  8119. #: guix-git/doc/guix.texi:4222
  8120. #, no-wrap
  8121. msgid "integrity checking"
  8122. msgstr ""
  8123. #. type: table
  8124. #: guix-git/doc/guix.texi:4224
  8125. msgid "Verify the integrity of the store."
  8126. msgstr ""
  8127. #. type: table
  8128. #: guix-git/doc/guix.texi:4227
  8129. 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}."
  8130. msgstr ""
  8131. #. type: table
  8132. #: guix-git/doc/guix.texi:4230
  8133. msgid "When provided, @var{options} must be a comma-separated list containing one or more of @code{contents} and @code{repair}."
  8134. msgstr ""
  8135. #. type: table
  8136. #: guix-git/doc/guix.texi:4236
  8137. 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."
  8138. msgstr ""
  8139. #. type: cindex
  8140. #: guix-git/doc/guix.texi:4237
  8141. #, no-wrap
  8142. msgid "repairing the store"
  8143. msgstr ""
  8144. #. type: cindex
  8145. #: guix-git/doc/guix.texi:4238 guix-git/doc/guix.texi:10852
  8146. #, no-wrap
  8147. msgid "corruption, recovering from"
  8148. msgstr ""
  8149. #. type: table
  8150. #: guix-git/doc/guix.texi:4246
  8151. 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})."
  8152. msgstr ""
  8153. #. type: item
  8154. #: guix-git/doc/guix.texi:4247
  8155. #, no-wrap
  8156. msgid "--optimize"
  8157. msgstr ""
  8158. #. type: table
  8159. #: guix-git/doc/guix.texi:4251
  8160. msgid "Optimize the store by hard-linking identical files---this is @dfn{deduplication}."
  8161. msgstr ""
  8162. #. type: table
  8163. #: guix-git/doc/guix.texi:4257
  8164. 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}."
  8165. msgstr ""
  8166. #. type: section
  8167. #: guix-git/doc/guix.texi:4261
  8168. #, no-wrap
  8169. msgid "Invoking @command{guix pull}"
  8170. msgstr ""
  8171. #. type: cindex
  8172. #: guix-git/doc/guix.texi:4263
  8173. #, no-wrap
  8174. msgid "upgrading Guix"
  8175. msgstr ""
  8176. #. type: cindex
  8177. #: guix-git/doc/guix.texi:4264
  8178. #, no-wrap
  8179. msgid "updating Guix"
  8180. msgstr ""
  8181. #. type: command{#1}
  8182. #: guix-git/doc/guix.texi:4265
  8183. #, no-wrap
  8184. msgid "guix pull"
  8185. msgstr ""
  8186. #. type: cindex
  8187. #: guix-git/doc/guix.texi:4266
  8188. #, no-wrap
  8189. msgid "pull"
  8190. msgstr ""
  8191. #. type: cindex
  8192. #: guix-git/doc/guix.texi:4267
  8193. #, fuzzy, no-wrap
  8194. msgid "security, @command{guix pull}"
  8195. msgstr "调用@command{guix build}"
  8196. #. type: cindex
  8197. #: guix-git/doc/guix.texi:4268
  8198. #, no-wrap
  8199. msgid "authenticity, of code obtained with @command{guix pull}"
  8200. msgstr ""
  8201. #. type: Plain text
  8202. #: guix-git/doc/guix.texi:4278
  8203. 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."
  8204. msgstr ""
  8205. #. type: Plain text
  8206. #: guix-git/doc/guix.texi:4281
  8207. msgid "Specifically, @command{guix pull} downloads code from the @dfn{channels} (@pxref{Channels}) specified by one of the followings, in this order:"
  8208. msgstr ""
  8209. #. type: enumerate
  8210. #: guix-git/doc/guix.texi:4285
  8211. msgid "the @option{--channels} option;"
  8212. msgstr ""
  8213. #. type: enumerate
  8214. #: guix-git/doc/guix.texi:4287
  8215. msgid "the user's @file{~/.config/guix/channels.scm} file;"
  8216. msgstr ""
  8217. #. type: enumerate
  8218. #: guix-git/doc/guix.texi:4289
  8219. msgid "the system-wide @file{/etc/guix/channels.scm} file;"
  8220. msgstr ""
  8221. #. type: enumerate
  8222. #: guix-git/doc/guix.texi:4292
  8223. msgid "the built-in default channels specified in the @code{%default-channels} variable."
  8224. msgstr ""
  8225. #. type: Plain text
  8226. #: guix-git/doc/guix.texi:4299
  8227. 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."
  8228. msgstr ""
  8229. #. type: Plain text
  8230. #: guix-git/doc/guix.texi:4305
  8231. 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."
  8232. msgstr ""
  8233. #. type: Plain text
  8234. #: guix-git/doc/guix.texi:4311
  8235. 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}):"
  8236. msgstr ""
  8237. #. type: example
  8238. #: guix-git/doc/guix.texi:4315
  8239. #, no-wrap
  8240. msgid ""
  8241. "export PATH=\"$HOME/.config/guix/current/bin:$PATH\"\n"
  8242. "export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"\n"
  8243. msgstr ""
  8244. #. type: Plain text
  8245. #: guix-git/doc/guix.texi:4319
  8246. msgid "The @option{--list-generations} or @option{-l} option lists past generations produced by @command{guix pull}, along with details about their provenance:"
  8247. msgstr ""
  8248. #. type: example
  8249. #: guix-git/doc/guix.texi:4327
  8250. #, no-wrap
  8251. msgid ""
  8252. "$ guix pull -l\n"
  8253. "Generation 1\tJun 10 2018 00:18:18\n"
  8254. " guix 65956ad\n"
  8255. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8256. " branch: origin/master\n"
  8257. " commit: 65956ad3526ba09e1f7a40722c96c6ef7c0936fe\n"
  8258. "\n"
  8259. msgstr ""
  8260. #. type: example
  8261. #: guix-git/doc/guix.texi:4337
  8262. #, no-wrap
  8263. msgid ""
  8264. "Generation 2\tJun 11 2018 11:02:49\n"
  8265. " guix e0cc7f6\n"
  8266. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8267. " branch: origin/master\n"
  8268. " commit: e0cc7f669bec22c37481dd03a7941c7d11a64f1d\n"
  8269. " 2 new packages: keepalived, libnfnetlink\n"
  8270. " 6 packages upgraded: emacs-nix-mode@@2.0.4,\n"
  8271. " guile2.0-guix@@0.14.0-12.77a1aac, guix@@0.14.0-12.77a1aac,\n"
  8272. " heimdal@@7.5.0, milkytracker@@1.02.00, nix@@2.0.4\n"
  8273. "\n"
  8274. msgstr ""
  8275. #. type: example
  8276. #: guix-git/doc/guix.texi:4345
  8277. #, no-wrap
  8278. msgid ""
  8279. "Generation 3\tJun 13 2018 23:31:07\t(current)\n"
  8280. " guix 844cc1c\n"
  8281. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8282. " branch: origin/master\n"
  8283. " commit: 844cc1c8f394f03b404c5bb3aee086922373490c\n"
  8284. " 28 new packages: emacs-helm-ls-git, emacs-helm-mu, @dots{}\n"
  8285. " 69 packages upgraded: borg@@1.1.6, cheese@@3.28.0, @dots{}\n"
  8286. msgstr ""
  8287. #. type: Plain text
  8288. #: guix-git/doc/guix.texi:4349
  8289. msgid "@xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix."
  8290. msgstr ""
  8291. #. type: Plain text
  8292. #: guix-git/doc/guix.texi:4354
  8293. 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:"
  8294. msgstr ""
  8295. #. type: example
  8296. #: guix-git/doc/guix.texi:4360
  8297. #, no-wrap
  8298. msgid ""
  8299. "$ guix pull --roll-back\n"
  8300. "switched from generation 3 to 2\n"
  8301. "$ guix pull --delete-generations=1\n"
  8302. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  8303. msgstr ""
  8304. #. type: Plain text
  8305. #: guix-git/doc/guix.texi:4364
  8306. msgid "You can also use @command{guix package} (@pxref{Invoking guix package}) to manage the profile by naming it explicitly:"
  8307. msgstr ""
  8308. #. type: example
  8309. #: guix-git/doc/guix.texi:4369
  8310. #, no-wrap
  8311. msgid ""
  8312. "$ guix package -p ~/.config/guix/current --roll-back\n"
  8313. "switched from generation 3 to 2\n"
  8314. "$ guix package -p ~/.config/guix/current --delete-generations=1\n"
  8315. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  8316. msgstr ""
  8317. #. type: Plain text
  8318. #: guix-git/doc/guix.texi:4373
  8319. msgid "The @command{guix pull} command is usually invoked with no arguments, but it supports the following options:"
  8320. msgstr ""
  8321. #. type: item
  8322. #: guix-git/doc/guix.texi:4375 guix-git/doc/guix.texi:4533
  8323. #, no-wrap
  8324. msgid "--url=@var{url}"
  8325. msgstr ""
  8326. #. type: itemx
  8327. #: guix-git/doc/guix.texi:4376 guix-git/doc/guix.texi:4534
  8328. #, no-wrap
  8329. msgid "--commit=@var{commit}"
  8330. msgstr ""
  8331. #. type: itemx
  8332. #: guix-git/doc/guix.texi:4377 guix-git/doc/guix.texi:4535
  8333. #, no-wrap
  8334. msgid "--branch=@var{branch}"
  8335. msgstr ""
  8336. #. type: table
  8337. #: guix-git/doc/guix.texi:4381
  8338. 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}."
  8339. msgstr ""
  8340. #. type: cindex
  8341. #: guix-git/doc/guix.texi:4382 guix-git/doc/guix.texi:4979
  8342. #, no-wrap
  8343. msgid "@file{channels.scm}, configuration file"
  8344. msgstr ""
  8345. #. type: cindex
  8346. #: guix-git/doc/guix.texi:4383 guix-git/doc/guix.texi:4980
  8347. #, no-wrap
  8348. msgid "configuration file for channels"
  8349. msgstr ""
  8350. #. type: table
  8351. #: guix-git/doc/guix.texi:4387
  8352. 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)."
  8353. msgstr ""
  8354. #. type: item
  8355. #: guix-git/doc/guix.texi:4388 guix-git/doc/guix.texi:4540
  8356. #, no-wrap
  8357. msgid "--channels=@var{file}"
  8358. msgstr ""
  8359. #. type: itemx
  8360. #: guix-git/doc/guix.texi:4389 guix-git/doc/guix.texi:4541
  8361. #, no-wrap
  8362. msgid "-C @var{file}"
  8363. msgstr ""
  8364. #. type: table
  8365. #: guix-git/doc/guix.texi:4395
  8366. 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."
  8367. msgstr ""
  8368. #. type: cindex
  8369. #: guix-git/doc/guix.texi:4396
  8370. #, fuzzy, no-wrap
  8371. msgid "channel news"
  8372. msgstr "通道"
  8373. #. type: item
  8374. #: guix-git/doc/guix.texi:4397
  8375. #, no-wrap
  8376. msgid "--news"
  8377. msgstr ""
  8378. #. type: itemx
  8379. #: guix-git/doc/guix.texi:4398 guix-git/doc/guix.texi:5806
  8380. #: guix-git/doc/guix.texi:33161
  8381. #, no-wrap
  8382. msgid "-N"
  8383. msgstr ""
  8384. #. type: table
  8385. #: guix-git/doc/guix.texi:4402
  8386. 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})."
  8387. msgstr ""
  8388. #. type: table
  8389. #: guix-git/doc/guix.texi:4406
  8390. 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)."
  8391. msgstr ""
  8392. #. type: table
  8393. #: guix-git/doc/guix.texi:4413
  8394. 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})."
  8395. msgstr ""
  8396. #. type: table
  8397. #: guix-git/doc/guix.texi:4420
  8398. msgid "Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., undo the last transaction."
  8399. msgstr ""
  8400. #. type: table
  8401. #: guix-git/doc/guix.texi:4444
  8402. msgid "If the current generation matches, it is @emph{not} deleted."
  8403. msgstr ""
  8404. #. type: table
  8405. #: guix-git/doc/guix.texi:4450
  8406. msgid "@xref{Invoking guix describe}, for a way to display information about the current generation only."
  8407. msgstr ""
  8408. #. type: table
  8409. #: guix-git/doc/guix.texi:4454
  8410. msgid "Use @var{profile} instead of @file{~/.config/guix/current}."
  8411. msgstr ""
  8412. #. type: item
  8413. #: guix-git/doc/guix.texi:4455 guix-git/doc/guix.texi:10243
  8414. #, no-wrap
  8415. msgid "--dry-run"
  8416. msgstr ""
  8417. #. type: itemx
  8418. #: guix-git/doc/guix.texi:4456 guix-git/doc/guix.texi:10244
  8419. #: guix-git/doc/guix.texi:12094
  8420. #, no-wrap
  8421. msgid "-n"
  8422. msgstr ""
  8423. #. type: table
  8424. #: guix-git/doc/guix.texi:4459
  8425. msgid "Show which channel commit(s) would be used and what would be built or substituted but do not actually do it."
  8426. msgstr ""
  8427. #. type: item
  8428. #: guix-git/doc/guix.texi:4460 guix-git/doc/guix.texi:33180
  8429. #, no-wrap
  8430. msgid "--allow-downgrades"
  8431. msgstr ""
  8432. #. type: table
  8433. #: guix-git/doc/guix.texi:4463
  8434. msgid "Allow pulling older or unrelated revisions of channels than those currently in use."
  8435. msgstr ""
  8436. #. type: cindex
  8437. #: guix-git/doc/guix.texi:4464
  8438. #, no-wrap
  8439. msgid "downgrade attacks, protection against"
  8440. msgstr ""
  8441. #. type: table
  8442. #: guix-git/doc/guix.texi:4469
  8443. 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."
  8444. msgstr ""
  8445. #. type: quotation
  8446. #: guix-git/doc/guix.texi:4473 guix-git/doc/guix.texi:33194
  8447. msgid "Make sure you understand its security implications before using @option{--allow-downgrades}."
  8448. msgstr ""
  8449. #. type: item
  8450. #: guix-git/doc/guix.texi:4475
  8451. #, fuzzy, no-wrap
  8452. msgid "--disable-authentication"
  8453. msgstr "--disable-deduplication"
  8454. #. type: table
  8455. #: guix-git/doc/guix.texi:4477
  8456. msgid "Allow pulling channel code without authenticating it."
  8457. msgstr ""
  8458. #. type: cindex
  8459. #: guix-git/doc/guix.texi:4478 guix-git/doc/guix.texi:5125
  8460. #, fuzzy, no-wrap
  8461. msgid "authentication, of channel code"
  8462. msgstr "代码缩进"
  8463. #. type: table
  8464. #: guix-git/doc/guix.texi:4483
  8465. 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."
  8466. msgstr ""
  8467. #. type: quotation
  8468. #: guix-git/doc/guix.texi:4487
  8469. msgid "Make sure you understand its security implications before using @option{--disable-authentication}."
  8470. msgstr ""
  8471. #. type: itemx
  8472. #: guix-git/doc/guix.texi:4490 guix-git/doc/guix.texi:5789
  8473. #: guix-git/doc/guix.texi:6160 guix-git/doc/guix.texi:10794
  8474. #: guix-git/doc/guix.texi:12239 guix-git/doc/guix.texi:12490
  8475. #: guix-git/doc/guix.texi:13157 guix-git/doc/guix.texi:33109
  8476. #, no-wrap
  8477. msgid "-s @var{system}"
  8478. msgstr ""
  8479. #. type: table
  8480. #: guix-git/doc/guix.texi:4493 guix-git/doc/guix.texi:6163
  8481. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host."
  8482. msgstr ""
  8483. #. type: table
  8484. #: guix-git/doc/guix.texi:4497
  8485. msgid "Use the bootstrap Guile to build the latest Guix. This option is only useful to Guix developers."
  8486. msgstr ""
  8487. #. type: Plain text
  8488. #: guix-git/doc/guix.texi:4503
  8489. 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."
  8490. msgstr ""
  8491. #. type: Plain text
  8492. #: guix-git/doc/guix.texi:4506
  8493. msgid "In addition, @command{guix pull} supports all the common build options (@pxref{Common Build Options})."
  8494. msgstr ""
  8495. #. type: section
  8496. #: guix-git/doc/guix.texi:4508
  8497. #, fuzzy, no-wrap
  8498. msgid "Invoking @command{guix time-machine}"
  8499. msgstr "调用@command{guix-daemon}"
  8500. #. type: command{#1}
  8501. #: guix-git/doc/guix.texi:4510
  8502. #, no-wrap
  8503. msgid "guix time-machine"
  8504. msgstr ""
  8505. #. type: cindex
  8506. #: guix-git/doc/guix.texi:4511 guix-git/doc/guix.texi:5083
  8507. #, no-wrap
  8508. msgid "pinning, channels"
  8509. msgstr ""
  8510. #. type: cindex
  8511. #: guix-git/doc/guix.texi:4512 guix-git/doc/guix.texi:4694
  8512. #: guix-git/doc/guix.texi:5084
  8513. #, no-wrap
  8514. msgid "replicating Guix"
  8515. msgstr ""
  8516. #. type: cindex
  8517. #: guix-git/doc/guix.texi:4513 guix-git/doc/guix.texi:5085
  8518. #, no-wrap
  8519. msgid "reproducibility, of Guix"
  8520. msgstr ""
  8521. #. type: Plain text
  8522. #: guix-git/doc/guix.texi:4521
  8523. 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})."
  8524. msgstr ""
  8525. #. type: Plain text
  8526. #: guix-git/doc/guix.texi:4523 guix-git/doc/guix.texi:5538
  8527. #: guix-git/doc/guix.texi:6283 guix-git/doc/guix.texi:10040
  8528. #: guix-git/doc/guix.texi:10163 guix-git/doc/guix.texi:11085
  8529. #: guix-git/doc/guix.texi:11162 guix-git/doc/guix.texi:12069
  8530. #: guix-git/doc/guix.texi:12548 guix-git/doc/guix.texi:12911
  8531. #: guix-git/doc/guix.texi:13000 guix-git/doc/guix.texi:13039
  8532. #: guix-git/doc/guix.texi:13136
  8533. msgid "The general syntax is:"
  8534. msgstr ""
  8535. #. type: example
  8536. #: guix-git/doc/guix.texi:4526
  8537. #, no-wrap
  8538. msgid "guix time-machine @var{options}@dots{} -- @var{command} @var {arg}@dots{}\n"
  8539. msgstr ""
  8540. #. type: Plain text
  8541. #: guix-git/doc/guix.texi:4531
  8542. 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}):"
  8543. msgstr ""
  8544. #. type: table
  8545. #: guix-git/doc/guix.texi:4539
  8546. 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}."
  8547. msgstr ""
  8548. #. type: table
  8549. #: guix-git/doc/guix.texi:4545
  8550. 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."
  8551. msgstr ""
  8552. #. type: Plain text
  8553. #: guix-git/doc/guix.texi:4549
  8554. 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"
  8555. msgstr ""
  8556. #. type: example
  8557. #: guix-git/doc/guix.texi:4552
  8558. #, no-wrap
  8559. msgid "guix time-machine -- build hello\n"
  8560. msgstr ""
  8561. #. type: Plain text
  8562. #: guix-git/doc/guix.texi:4557
  8563. 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!"
  8564. msgstr ""
  8565. #. type: Plain text
  8566. #: guix-git/doc/guix.texi:4561
  8567. 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})."
  8568. msgstr ""
  8569. #. type: quotation
  8570. #: guix-git/doc/guix.texi:4569
  8571. msgid "The functionality described here is a ``technology preview'' as of version @value{VERSION}. As such, the interface is subject to change."
  8572. msgstr ""
  8573. #. type: cindex
  8574. #: guix-git/doc/guix.texi:4571 guix-git/doc/guix.texi:10077
  8575. #, no-wrap
  8576. msgid "inferiors"
  8577. msgstr ""
  8578. #. type: cindex
  8579. #: guix-git/doc/guix.texi:4572
  8580. #, no-wrap
  8581. msgid "composition of Guix revisions"
  8582. msgstr ""
  8583. #. type: Plain text
  8584. #: guix-git/doc/guix.texi:4577
  8585. 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."
  8586. msgstr ""
  8587. #. type: cindex
  8588. #: guix-git/doc/guix.texi:4578 guix-git/doc/guix.texi:4643
  8589. #, no-wrap
  8590. msgid "inferior packages"
  8591. msgstr ""
  8592. #. type: Plain text
  8593. #: guix-git/doc/guix.texi:4584
  8594. 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}."
  8595. msgstr ""
  8596. #. type: Plain text
  8597. #: guix-git/doc/guix.texi:4594
  8598. 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:"
  8599. msgstr ""
  8600. #. type: lisp
  8601. #: guix-git/doc/guix.texi:4598
  8602. #, no-wrap
  8603. msgid ""
  8604. "(use-modules (guix inferior) (guix channels)\n"
  8605. " (srfi srfi-1)) ;for 'first'\n"
  8606. "\n"
  8607. msgstr ""
  8608. #. type: lisp
  8609. #: guix-git/doc/guix.texi:4607
  8610. #, no-wrap
  8611. msgid ""
  8612. "(define channels\n"
  8613. " ;; This is the old revision from which we want to\n"
  8614. " ;; extract guile-json.\n"
  8615. " (list (channel\n"
  8616. " (name 'guix)\n"
  8617. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  8618. " (commit\n"
  8619. " \"65956ad3526ba09e1f7a40722c96c6ef7c0936fe\"))))\n"
  8620. "\n"
  8621. msgstr ""
  8622. #. type: lisp
  8623. #: guix-git/doc/guix.texi:4611
  8624. #, no-wrap
  8625. msgid ""
  8626. "(define inferior\n"
  8627. " ;; An inferior representing the above revision.\n"
  8628. " (inferior-for-channels channels))\n"
  8629. "\n"
  8630. msgstr ""
  8631. #. type: lisp
  8632. #: guix-git/doc/guix.texi:4617
  8633. #, no-wrap
  8634. msgid ""
  8635. ";; Now create a manifest with the current \"guile\" package\n"
  8636. ";; and the old \"guile-json\" package.\n"
  8637. "(packages->manifest\n"
  8638. " (list (first (lookup-inferior-packages inferior \"guile-json\"))\n"
  8639. " (specification->package \"guile\")))\n"
  8640. msgstr ""
  8641. #. type: Plain text
  8642. #: guix-git/doc/guix.texi:4622
  8643. 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."
  8644. msgstr ""
  8645. #. type: Plain text
  8646. #: guix-git/doc/guix.texi:4625
  8647. msgid "The @code{(guix inferior)} module provides the following procedures to open an inferior:"
  8648. msgstr ""
  8649. #. type: deffn
  8650. #: guix-git/doc/guix.texi:4626
  8651. #, no-wrap
  8652. msgid "{Scheme Procedure} inferior-for-channels @var{channels} @"
  8653. msgstr ""
  8654. #. type: deffn
  8655. #: guix-git/doc/guix.texi:4631
  8656. 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."
  8657. msgstr ""
  8658. #. type: deffn
  8659. #: guix-git/doc/guix.texi:4634
  8660. msgid "As a side effect, this procedure may build or substitute binaries for @var{channels}, which can take time."
  8661. msgstr ""
  8662. #. type: deffn
  8663. #: guix-git/doc/guix.texi:4636
  8664. #, no-wrap
  8665. msgid "{Scheme Procedure} open-inferior @var{directory} @"
  8666. msgstr ""
  8667. #. type: deffn
  8668. #: guix-git/doc/guix.texi:4641
  8669. 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."
  8670. msgstr ""
  8671. #. type: Plain text
  8672. #: guix-git/doc/guix.texi:4646
  8673. msgid "The procedures listed below allow you to obtain and manipulate inferior packages."
  8674. msgstr ""
  8675. #. type: deffn
  8676. #: guix-git/doc/guix.texi:4647
  8677. #, no-wrap
  8678. msgid "{Scheme Procedure} inferior-packages @var{inferior}"
  8679. msgstr ""
  8680. #. type: deffn
  8681. #: guix-git/doc/guix.texi:4649
  8682. msgid "Return the list of packages known to @var{inferior}."
  8683. msgstr ""
  8684. #. type: deffn
  8685. #: guix-git/doc/guix.texi:4651
  8686. #, no-wrap
  8687. msgid "{Scheme Procedure} lookup-inferior-packages @var{inferior} @var{name} @"
  8688. msgstr ""
  8689. #. type: deffn
  8690. #: guix-git/doc/guix.texi:4656
  8691. 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}."
  8692. msgstr ""
  8693. #. type: deffn
  8694. #: guix-git/doc/guix.texi:4658
  8695. #, no-wrap
  8696. msgid "{Scheme Procedure} inferior-package? @var{obj}"
  8697. msgstr ""
  8698. #. type: deffn
  8699. #: guix-git/doc/guix.texi:4660
  8700. msgid "Return true if @var{obj} is an inferior package."
  8701. msgstr ""
  8702. #. type: deffn
  8703. #: guix-git/doc/guix.texi:4662
  8704. #, no-wrap
  8705. msgid "{Scheme Procedure} inferior-package-name @var{package}"
  8706. msgstr ""
  8707. #. type: deffnx
  8708. #: guix-git/doc/guix.texi:4663
  8709. #, no-wrap
  8710. msgid "{Scheme Procedure} inferior-package-version @var{package}"
  8711. msgstr ""
  8712. #. type: deffnx
  8713. #: guix-git/doc/guix.texi:4664
  8714. #, no-wrap
  8715. msgid "{Scheme Procedure} inferior-package-synopsis @var{package}"
  8716. msgstr ""
  8717. #. type: deffnx
  8718. #: guix-git/doc/guix.texi:4665
  8719. #, no-wrap
  8720. msgid "{Scheme Procedure} inferior-package-description @var{package}"
  8721. msgstr ""
  8722. #. type: deffnx
  8723. #: guix-git/doc/guix.texi:4666
  8724. #, no-wrap
  8725. msgid "{Scheme Procedure} inferior-package-home-page @var{package}"
  8726. msgstr ""
  8727. #. type: deffnx
  8728. #: guix-git/doc/guix.texi:4667
  8729. #, no-wrap
  8730. msgid "{Scheme Procedure} inferior-package-location @var{package}"
  8731. msgstr ""
  8732. #. type: deffnx
  8733. #: guix-git/doc/guix.texi:4668
  8734. #, no-wrap
  8735. msgid "{Scheme Procedure} inferior-package-inputs @var{package}"
  8736. msgstr ""
  8737. #. type: deffnx
  8738. #: guix-git/doc/guix.texi:4669
  8739. #, no-wrap
  8740. msgid "{Scheme Procedure} inferior-package-native-inputs @var{package}"
  8741. msgstr ""
  8742. #. type: deffnx
  8743. #: guix-git/doc/guix.texi:4670
  8744. #, no-wrap
  8745. msgid "{Scheme Procedure} inferior-package-propagated-inputs @var{package}"
  8746. msgstr ""
  8747. #. type: deffnx
  8748. #: guix-git/doc/guix.texi:4671
  8749. #, no-wrap
  8750. msgid "{Scheme Procedure} inferior-package-transitive-propagated-inputs @var{package}"
  8751. msgstr ""
  8752. #. type: deffnx
  8753. #: guix-git/doc/guix.texi:4672
  8754. #, no-wrap
  8755. msgid "{Scheme Procedure} inferior-package-native-search-paths @var{package}"
  8756. msgstr ""
  8757. #. type: deffnx
  8758. #: guix-git/doc/guix.texi:4673
  8759. #, no-wrap
  8760. msgid "{Scheme Procedure} inferior-package-transitive-native-search-paths @var{package}"
  8761. msgstr ""
  8762. #. type: deffnx
  8763. #: guix-git/doc/guix.texi:4674
  8764. #, no-wrap
  8765. msgid "{Scheme Procedure} inferior-package-search-paths @var{package}"
  8766. msgstr ""
  8767. #. type: deffn
  8768. #: guix-git/doc/guix.texi:4679
  8769. 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."
  8770. msgstr ""
  8771. #. type: Plain text
  8772. #: guix-git/doc/guix.texi:4689
  8773. 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."
  8774. msgstr ""
  8775. #. type: section
  8776. #: guix-git/doc/guix.texi:4691
  8777. #, no-wrap
  8778. msgid "Invoking @command{guix describe}"
  8779. msgstr ""
  8780. #. type: Plain text
  8781. #: guix-git/doc/guix.texi:4702
  8782. 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."
  8783. msgstr ""
  8784. #. type: Plain text
  8785. #: guix-git/doc/guix.texi:4706
  8786. 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}):"
  8787. msgstr ""
  8788. #. type: example
  8789. #: guix-git/doc/guix.texi:4714
  8790. #, no-wrap
  8791. msgid ""
  8792. "$ guix describe\n"
  8793. "Generation 10\tSep 03 2018 17:32:44\t(current)\n"
  8794. " guix e0fa68c\n"
  8795. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  8796. " branch: master\n"
  8797. " commit: e0fa68c7718fffd33d81af415279d6ddb518f727\n"
  8798. msgstr ""
  8799. #. type: Plain text
  8800. #: guix-git/doc/guix.texi:4723
  8801. 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."
  8802. msgstr ""
  8803. #. type: Plain text
  8804. #: guix-git/doc/guix.texi:4726
  8805. 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:"
  8806. msgstr ""
  8807. #. type: example
  8808. #: guix-git/doc/guix.texi:4739
  8809. #, no-wrap
  8810. msgid ""
  8811. "$ guix describe -f channels\n"
  8812. "(list (channel\n"
  8813. " (name 'guix)\n"
  8814. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  8815. " (commit\n"
  8816. " \"e0fa68c7718fffd33d81af415279d6ddb518f727\")\n"
  8817. " (introduction\n"
  8818. " (make-channel-introduction\n"
  8819. " \"9edb3f66fd807b096b48283debdcddccfea34bad\"\n"
  8820. " (openpgp-fingerprint\n"
  8821. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))\n"
  8822. msgstr ""
  8823. #. type: Plain text
  8824. #: guix-git/doc/guix.texi:4748
  8825. 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!"
  8826. msgstr ""
  8827. #. type: Plain text
  8828. #: guix-git/doc/guix.texi:4751
  8829. msgid "The details of the options supported by @command{guix describe} are as follows:"
  8830. msgstr ""
  8831. #. type: item
  8832. #: guix-git/doc/guix.texi:4753 guix-git/doc/guix.texi:5990
  8833. #: guix-git/doc/guix.texi:13269
  8834. #, no-wrap
  8835. msgid "--format=@var{format}"
  8836. msgstr ""
  8837. #. type: itemx
  8838. #: guix-git/doc/guix.texi:4754 guix-git/doc/guix.texi:5991
  8839. #: guix-git/doc/guix.texi:13270
  8840. #, no-wrap
  8841. msgid "-f @var{format}"
  8842. msgstr ""
  8843. #. type: table
  8844. #: guix-git/doc/guix.texi:4756 guix-git/doc/guix.texi:13272
  8845. msgid "Produce output in the specified @var{format}, one of:"
  8846. msgstr ""
  8847. #. type: item
  8848. #: guix-git/doc/guix.texi:4758
  8849. #, no-wrap
  8850. msgid "human"
  8851. msgstr ""
  8852. #. type: table
  8853. #: guix-git/doc/guix.texi:4760
  8854. msgid "produce human-readable output;"
  8855. msgstr ""
  8856. #. type: cindex
  8857. #: guix-git/doc/guix.texi:4760 guix-git/doc/guix.texi:4978
  8858. #, no-wrap
  8859. msgid "channels"
  8860. msgstr ""
  8861. #. type: table
  8862. #: guix-git/doc/guix.texi:4764
  8863. 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});"
  8864. msgstr ""
  8865. #. type: item
  8866. #: guix-git/doc/guix.texi:4764
  8867. #, no-wrap
  8868. msgid "channels-sans-intro"
  8869. msgstr ""
  8870. #. type: table
  8871. #: guix-git/doc/guix.texi:4770
  8872. 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;"
  8873. msgstr ""
  8874. #. type: item
  8875. #: guix-git/doc/guix.texi:4770 guix-git/doc/guix.texi:11348
  8876. #, no-wrap
  8877. msgid "json"
  8878. msgstr ""
  8879. #. type: cindex
  8880. #: guix-git/doc/guix.texi:4771
  8881. #, no-wrap
  8882. msgid "JSON"
  8883. msgstr ""
  8884. #. type: table
  8885. #: guix-git/doc/guix.texi:4773
  8886. msgid "produce a list of channel specifications in JSON format;"
  8887. msgstr ""
  8888. #. type: item
  8889. #: guix-git/doc/guix.texi:4773 guix-git/doc/guix.texi:13274
  8890. #, no-wrap
  8891. msgid "recutils"
  8892. msgstr ""
  8893. #. type: table
  8894. #: guix-git/doc/guix.texi:4775
  8895. msgid "produce a list of channel specifications in Recutils format."
  8896. msgstr ""
  8897. #. type: item
  8898. #: guix-git/doc/guix.texi:4777
  8899. #, no-wrap
  8900. msgid "--list-formats"
  8901. msgstr ""
  8902. #. type: table
  8903. #: guix-git/doc/guix.texi:4779
  8904. msgid "Display available formats for @option{--format} option."
  8905. msgstr ""
  8906. #. type: table
  8907. #: guix-git/doc/guix.texi:4783
  8908. msgid "Display information about @var{profile}."
  8909. msgstr ""
  8910. #. type: section
  8911. #: guix-git/doc/guix.texi:4786
  8912. #, no-wrap
  8913. msgid "Invoking @command{guix archive}"
  8914. msgstr ""
  8915. #. type: command{#1}
  8916. #: guix-git/doc/guix.texi:4788
  8917. #, no-wrap
  8918. msgid "guix archive"
  8919. msgstr ""
  8920. #. type: cindex
  8921. #: guix-git/doc/guix.texi:4789
  8922. #, no-wrap
  8923. msgid "archive"
  8924. msgstr "归档"
  8925. #. type: Plain text
  8926. #: guix-git/doc/guix.texi:4795
  8927. 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."
  8928. msgstr ""
  8929. #. type: quotation
  8930. #: guix-git/doc/guix.texi:4799
  8931. msgid "If you're looking for a way to produce archives in a format suitable for tools other than Guix, @pxref{Invoking guix pack}."
  8932. msgstr ""
  8933. #. type: cindex
  8934. #: guix-git/doc/guix.texi:4801
  8935. #, no-wrap
  8936. msgid "exporting store items"
  8937. msgstr ""
  8938. #. type: Plain text
  8939. #: guix-git/doc/guix.texi:4803
  8940. msgid "To export store files as an archive to standard output, run:"
  8941. msgstr ""
  8942. #. type: example
  8943. #: guix-git/doc/guix.texi:4806
  8944. #, no-wrap
  8945. msgid "guix archive --export @var{options} @var{specifications}...\n"
  8946. msgstr ""
  8947. #. type: Plain text
  8948. #: guix-git/doc/guix.texi:4813
  8949. 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}:"
  8950. msgstr ""
  8951. #. type: example
  8952. #: guix-git/doc/guix.texi:4816
  8953. #, no-wrap
  8954. msgid "guix archive --export git:gui /gnu/store/...-emacs-24.3 > great.nar\n"
  8955. msgstr ""
  8956. #. type: Plain text
  8957. #: guix-git/doc/guix.texi:4821
  8958. 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})."
  8959. msgstr ""
  8960. #. type: Plain text
  8961. #: guix-git/doc/guix.texi:4824
  8962. msgid "To transfer the @code{emacs} package to a machine connected over SSH, one would run:"
  8963. msgstr ""
  8964. #. type: example
  8965. #: guix-git/doc/guix.texi:4827
  8966. #, no-wrap
  8967. msgid "guix archive --export -r emacs | ssh the-machine guix archive --import\n"
  8968. msgstr ""
  8969. #. type: Plain text
  8970. #: guix-git/doc/guix.texi:4832
  8971. msgid "Similarly, a complete user profile may be transferred from one machine to another like this:"
  8972. msgstr ""
  8973. #. type: example
  8974. #: guix-git/doc/guix.texi:4836
  8975. #, no-wrap
  8976. msgid ""
  8977. "guix archive --export -r $(readlink -f ~/.guix-profile) | \\\n"
  8978. " ssh the-machine guix archive --import\n"
  8979. msgstr ""
  8980. #. type: Plain text
  8981. #: guix-git/doc/guix.texi:4846
  8982. 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})."
  8983. msgstr ""
  8984. #. type: cindex
  8985. #: guix-git/doc/guix.texi:4847
  8986. #, no-wrap
  8987. msgid "nar, archive format"
  8988. msgstr ""
  8989. #. type: cindex
  8990. #: guix-git/doc/guix.texi:4848
  8991. #, no-wrap
  8992. msgid "normalized archive (nar)"
  8993. msgstr ""
  8994. #. type: cindex
  8995. #: guix-git/doc/guix.texi:4849
  8996. #, no-wrap
  8997. msgid "nar bundle, archive format"
  8998. msgstr ""
  8999. #. type: Plain text
  9000. #: guix-git/doc/guix.texi:4854
  9001. 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}."
  9002. msgstr ""
  9003. #. type: Plain text
  9004. #: guix-git/doc/guix.texi:4864
  9005. 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."
  9006. msgstr ""
  9007. #. type: Plain text
  9008. #: guix-git/doc/guix.texi:4868
  9009. 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."
  9010. msgstr ""
  9011. #. type: Plain text
  9012. #: guix-git/doc/guix.texi:4874
  9013. 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."
  9014. msgstr ""
  9015. #. type: Plain text
  9016. #: guix-git/doc/guix.texi:4876
  9017. msgid "The main options are:"
  9018. msgstr ""
  9019. #. type: item
  9020. #: guix-git/doc/guix.texi:4878
  9021. #, no-wrap
  9022. msgid "--export"
  9023. msgstr ""
  9024. #. type: table
  9025. #: guix-git/doc/guix.texi:4881
  9026. msgid "Export the specified store files or packages (see below). Write the resulting archive to the standard output."
  9027. msgstr ""
  9028. #. type: table
  9029. #: guix-git/doc/guix.texi:4884
  9030. msgid "Dependencies are @emph{not} included in the output, unless @option{--recursive} is passed."
  9031. msgstr ""
  9032. #. type: itemx
  9033. #: guix-git/doc/guix.texi:4885 guix-git/doc/guix.texi:11118
  9034. #: guix-git/doc/guix.texi:11220 guix-git/doc/guix.texi:11245
  9035. #: guix-git/doc/guix.texi:11423 guix-git/doc/guix.texi:11464
  9036. #: guix-git/doc/guix.texi:11511 guix-git/doc/guix.texi:11536
  9037. #: guix-git/doc/guix.texi:11552 guix-git/doc/guix.texi:11583
  9038. #, no-wrap
  9039. msgid "-r"
  9040. msgstr ""
  9041. #. type: item
  9042. #: guix-git/doc/guix.texi:4886 guix-git/doc/guix.texi:11117
  9043. #: guix-git/doc/guix.texi:11219 guix-git/doc/guix.texi:11244
  9044. #: guix-git/doc/guix.texi:11422 guix-git/doc/guix.texi:11463
  9045. #: guix-git/doc/guix.texi:11510 guix-git/doc/guix.texi:11535
  9046. #: guix-git/doc/guix.texi:11551 guix-git/doc/guix.texi:11582
  9047. #: guix-git/doc/guix.texi:11639
  9048. #, no-wrap
  9049. msgid "--recursive"
  9050. msgstr ""
  9051. #. type: table
  9052. #: guix-git/doc/guix.texi:4891
  9053. 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."
  9054. msgstr ""
  9055. #. type: item
  9056. #: guix-git/doc/guix.texi:4892
  9057. #, no-wrap
  9058. msgid "--import"
  9059. msgstr ""
  9060. #. type: table
  9061. #: guix-git/doc/guix.texi:4897
  9062. 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)."
  9063. msgstr ""
  9064. #. type: item
  9065. #: guix-git/doc/guix.texi:4898
  9066. #, no-wrap
  9067. msgid "--missing"
  9068. msgstr ""
  9069. #. type: table
  9070. #: guix-git/doc/guix.texi:4902
  9071. 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."
  9072. msgstr ""
  9073. #. type: item
  9074. #: guix-git/doc/guix.texi:4903
  9075. #, no-wrap
  9076. msgid "--generate-key[=@var{parameters}]"
  9077. msgstr ""
  9078. #. type: cindex
  9079. #: guix-git/doc/guix.texi:4904
  9080. #, no-wrap
  9081. msgid "signing, archives"
  9082. msgstr ""
  9083. #. type: table
  9084. #: guix-git/doc/guix.texi:4911
  9085. 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."
  9086. msgstr ""
  9087. #. type: table
  9088. #: guix-git/doc/guix.texi:4921
  9089. 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})."
  9090. msgstr ""
  9091. #. type: item
  9092. #: guix-git/doc/guix.texi:4922
  9093. #, no-wrap
  9094. msgid "--authorize"
  9095. msgstr ""
  9096. #. type: cindex
  9097. #: guix-git/doc/guix.texi:4923
  9098. #, no-wrap
  9099. msgid "authorizing, archives"
  9100. msgstr ""
  9101. #. type: table
  9102. #: guix-git/doc/guix.texi:4927
  9103. 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."
  9104. msgstr ""
  9105. #. type: table
  9106. #: guix-git/doc/guix.texi:4934
  9107. 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)}."
  9108. msgstr ""
  9109. #. type: item
  9110. #: guix-git/doc/guix.texi:4935
  9111. #, no-wrap
  9112. msgid "--extract=@var{directory}"
  9113. msgstr ""
  9114. #. type: itemx
  9115. #: guix-git/doc/guix.texi:4936
  9116. #, no-wrap
  9117. msgid "-x @var{directory}"
  9118. msgstr ""
  9119. #. type: table
  9120. #: guix-git/doc/guix.texi:4940
  9121. 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."
  9122. msgstr ""
  9123. #. type: table
  9124. #: guix-git/doc/guix.texi:4943
  9125. msgid "For example, the following command extracts the substitute for Emacs served by @code{@value{SUBSTITUTE-SERVER}} to @file{/tmp/emacs}:"
  9126. msgstr ""
  9127. #. type: example
  9128. #: guix-git/doc/guix.texi:4948
  9129. #, no-wrap
  9130. msgid ""
  9131. "$ wget -O - \\\n"
  9132. " https://@value{SUBSTITUTE-SERVER}/nar/gzip/@dots{}-emacs-24.5 \\\n"
  9133. " | gunzip | guix archive -x /tmp/emacs\n"
  9134. msgstr ""
  9135. #. type: table
  9136. #: guix-git/doc/guix.texi:4955
  9137. 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."
  9138. msgstr ""
  9139. #. type: table
  9140. #: guix-git/doc/guix.texi:4959
  9141. msgid "The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers (@pxref{Invoking guix challenge})."
  9142. msgstr ""
  9143. #. type: item
  9144. #: guix-git/doc/guix.texi:4960
  9145. #, no-wrap
  9146. msgid "--list"
  9147. msgstr ""
  9148. #. type: itemx
  9149. #: guix-git/doc/guix.texi:4961 guix-git/doc/guix.texi:11410
  9150. #: guix-git/doc/guix.texi:11457
  9151. #, no-wrap
  9152. msgid "-t"
  9153. msgstr ""
  9154. #. type: table
  9155. #: guix-git/doc/guix.texi:4965
  9156. 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:"
  9157. msgstr ""
  9158. #. type: example
  9159. #: guix-git/doc/guix.texi:4970
  9160. #, no-wrap
  9161. msgid ""
  9162. "$ wget -O - \\\n"
  9163. " https://@value{SUBSTITUTE-SERVER}/nar/lzip/@dots{}-emacs-26.3 \\\n"
  9164. " | lzip -d | guix archive -t\n"
  9165. msgstr ""
  9166. #. type: cindex
  9167. #: guix-git/doc/guix.texi:4981
  9168. #, no-wrap
  9169. msgid "@command{guix pull}, configuration file"
  9170. msgstr ""
  9171. #. type: cindex
  9172. #: guix-git/doc/guix.texi:4982
  9173. #, no-wrap
  9174. msgid "configuration of @command{guix pull}"
  9175. msgstr ""
  9176. #. type: Plain text
  9177. #: guix-git/doc/guix.texi:4993
  9178. 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."
  9179. msgstr ""
  9180. #. type: cindex
  9181. #: guix-git/doc/guix.texi:5011
  9182. #, no-wrap
  9183. msgid "extending the package collection (channels)"
  9184. msgstr ""
  9185. #. type: cindex
  9186. #: guix-git/doc/guix.texi:5012
  9187. #, no-wrap
  9188. msgid "variant packages (channels)"
  9189. msgstr ""
  9190. #. type: Plain text
  9191. #: guix-git/doc/guix.texi:5016
  9192. 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):"
  9193. msgstr ""
  9194. #. type: vindex
  9195. #: guix-git/doc/guix.texi:5017
  9196. #, no-wrap
  9197. msgid "%default-channels"
  9198. msgstr ""
  9199. #. type: lisp
  9200. #: guix-git/doc/guix.texi:5024
  9201. #, no-wrap
  9202. msgid ""
  9203. ";; Add variant packages to those Guix provides.\n"
  9204. "(cons (channel\n"
  9205. " (name 'variant-packages)\n"
  9206. " (url \"https://example.org/variant-packages.git\"))\n"
  9207. " %default-channels)\n"
  9208. msgstr ""
  9209. #. type: Plain text
  9210. #: guix-git/doc/guix.texi:5034
  9211. 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:"
  9212. msgstr ""
  9213. #. type: example
  9214. #: guix-git/doc/guix.texi:5049
  9215. #, no-wrap
  9216. msgid ""
  9217. "$ guix pull --list-generations\n"
  9218. "@dots{}\n"
  9219. "Generation 19\tAug 27 2018 16:20:48\n"
  9220. " guix d894ab8\n"
  9221. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9222. " branch: master\n"
  9223. " commit: d894ab8e9bfabcefa6c49d9ba2e834dd5a73a300\n"
  9224. " variant-packages dd3df5e\n"
  9225. " repository URL: https://example.org/variant-packages.git\n"
  9226. " branch: master\n"
  9227. " commit: dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\n"
  9228. " 11 new packages: variant-gimp, variant-emacs-with-cool-features, @dots{}\n"
  9229. " 4 packages upgraded: emacs-racket-mode@@0.0.2-2.1b78827, @dots{}\n"
  9230. msgstr ""
  9231. #. type: Plain text
  9232. #: guix-git/doc/guix.texi:5057
  9233. 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."
  9234. msgstr ""
  9235. #. type: Plain text
  9236. #: guix-git/doc/guix.texi:5066
  9237. 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:"
  9238. msgstr ""
  9239. #. type: lisp
  9240. #: guix-git/doc/guix.texi:5073
  9241. #, no-wrap
  9242. msgid ""
  9243. ";; Tell 'guix pull' to use another repo.\n"
  9244. "(list (channel\n"
  9245. " (name 'guix)\n"
  9246. " (url \"https://example.org/another-guix.git\")\n"
  9247. " (branch \"super-hacks\")))\n"
  9248. msgstr ""
  9249. #. type: Plain text
  9250. #: guix-git/doc/guix.texi:5079
  9251. 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})."
  9252. msgstr ""
  9253. #. type: Plain text
  9254. #: guix-git/doc/guix.texi:5090
  9255. 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:"
  9256. msgstr ""
  9257. #. type: lisp
  9258. #: guix-git/doc/guix.texi:5101
  9259. #, no-wrap
  9260. msgid ""
  9261. ";; Deploy specific commits of my channels of interest.\n"
  9262. "(list (channel\n"
  9263. " (name 'guix)\n"
  9264. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9265. " (commit \"6298c3ffd9654d3231a6f25390b056483e8f407c\"))\n"
  9266. " (channel\n"
  9267. " (name 'variant-packages)\n"
  9268. " (url \"https://example.org/variant-packages.git\")\n"
  9269. " (commit \"dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\")))\n"
  9270. msgstr ""
  9271. #. type: Plain text
  9272. #: guix-git/doc/guix.texi:5108
  9273. 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})."
  9274. msgstr ""
  9275. #. type: Plain text
  9276. #: guix-git/doc/guix.texi:5115
  9277. 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."
  9278. msgstr ""
  9279. #. type: Plain text
  9280. #: guix-git/doc/guix.texi:5120
  9281. 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."
  9282. msgstr ""
  9283. #. type: anchor{#1}
  9284. #: guix-git/doc/guix.texi:5125
  9285. msgid "channel-authentication"
  9286. msgstr ""
  9287. #. type: Plain text
  9288. #: guix-git/doc/guix.texi:5131
  9289. 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."
  9290. msgstr ""
  9291. #. type: Plain text
  9292. #: guix-git/doc/guix.texi:5136
  9293. 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:"
  9294. msgstr ""
  9295. #. type: lisp
  9296. #: guix-git/doc/guix.texi:5146
  9297. #, no-wrap
  9298. msgid ""
  9299. "(channel\n"
  9300. " (name 'some-channel)\n"
  9301. " (url \"https://example.org/some-channel.git\")\n"
  9302. " (introduction\n"
  9303. " (make-channel-introduction\n"
  9304. " \"6f0d8cc0d88abb59c324b2990bfee2876016bb86\"\n"
  9305. " (openpgp-fingerprint\n"
  9306. " \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  9307. msgstr ""
  9308. #. type: Plain text
  9309. #: guix-git/doc/guix.texi:5152
  9310. 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{}}."
  9311. msgstr ""
  9312. #. type: Plain text
  9313. #: guix-git/doc/guix.texi:5158
  9314. 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."
  9315. msgstr ""
  9316. #. type: Plain text
  9317. #: guix-git/doc/guix.texi:5160
  9318. msgid "If you're curious about the authentication mechanics, read on!"
  9319. msgstr ""
  9320. #. type: Plain text
  9321. #: guix-git/doc/guix.texi:5171
  9322. 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}."
  9323. msgstr ""
  9324. #. type: lisp
  9325. #: guix-git/doc/guix.texi:5174
  9326. #, no-wrap
  9327. msgid ""
  9328. "(use-modules (guix ci))\n"
  9329. "\n"
  9330. msgstr ""
  9331. #. type: lisp
  9332. #: guix-git/doc/guix.texi:5178
  9333. #, no-wrap
  9334. msgid ""
  9335. "(list (channel-with-substitutes-available\n"
  9336. " %default-guix-channel\n"
  9337. " \"https://ci.guix.gnu.org\"))\n"
  9338. msgstr ""
  9339. #. type: Plain text
  9340. #: guix-git/doc/guix.texi:5185
  9341. 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."
  9342. msgstr ""
  9343. #. type: cindex
  9344. #: guix-git/doc/guix.texi:5189
  9345. #, no-wrap
  9346. msgid "personal packages (channels)"
  9347. msgstr ""
  9348. #. type: cindex
  9349. #: guix-git/doc/guix.texi:5190
  9350. #, no-wrap
  9351. msgid "channels, for personal packages"
  9352. msgstr ""
  9353. #. type: Plain text
  9354. #: guix-git/doc/guix.texi:5198
  9355. 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?"
  9356. msgstr ""
  9357. #. type: quotation
  9358. #: guix-git/doc/guix.texi:5202 guix-git/doc/guix.texi:13624
  9359. #: guix-git/doc/guix.texi:19579 guix-git/doc/guix.texi:19586
  9360. #, no-wrap
  9361. msgid "Warning"
  9362. msgstr ""
  9363. #. type: quotation
  9364. #: guix-git/doc/guix.texi:5206
  9365. 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:"
  9366. msgstr ""
  9367. #. type: itemize
  9368. #: guix-git/doc/guix.texi:5214
  9369. 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."
  9370. msgstr ""
  9371. #. type: itemize
  9372. #: guix-git/doc/guix.texi:5223
  9373. 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."
  9374. msgstr ""
  9375. #. type: itemize
  9376. #: guix-git/doc/guix.texi:5227
  9377. 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."
  9378. msgstr ""
  9379. #. type: quotation
  9380. #: guix-git/doc/guix.texi:5234
  9381. 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."
  9382. msgstr ""
  9383. #. type: Plain text
  9384. #: guix-git/doc/guix.texi:5246
  9385. 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})."
  9386. msgstr ""
  9387. #. type: Plain text
  9388. #: guix-git/doc/guix.texi:5251
  9389. 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."
  9390. msgstr ""
  9391. #. type: cindex
  9392. #: guix-git/doc/guix.texi:5256
  9393. #, no-wrap
  9394. msgid "subdirectory, channels"
  9395. msgstr ""
  9396. #. type: Plain text
  9397. #: guix-git/doc/guix.texi:5260
  9398. 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:"
  9399. msgstr ""
  9400. #. type: lisp
  9401. #: guix-git/doc/guix.texi:5265
  9402. #, no-wrap
  9403. msgid ""
  9404. "(channel\n"
  9405. " (version 0)\n"
  9406. " (directory \"guix\"))\n"
  9407. msgstr ""
  9408. #. type: cindex
  9409. #: guix-git/doc/guix.texi:5270
  9410. #, no-wrap
  9411. msgid "dependencies, channels"
  9412. msgstr ""
  9413. #. type: cindex
  9414. #: guix-git/doc/guix.texi:5271
  9415. #, no-wrap
  9416. msgid "meta-data, channels"
  9417. msgstr ""
  9418. #. type: Plain text
  9419. #: guix-git/doc/guix.texi:5276
  9420. 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."
  9421. msgstr ""
  9422. #. type: Plain text
  9423. #: guix-git/doc/guix.texi:5278
  9424. msgid "The meta-data file should contain a simple S-expression like this:"
  9425. msgstr ""
  9426. #. type: lisp
  9427. #: guix-git/doc/guix.texi:5286
  9428. #, no-wrap
  9429. msgid ""
  9430. "(channel\n"
  9431. " (version 0)\n"
  9432. " (dependencies\n"
  9433. " (channel\n"
  9434. " (name some-collection)\n"
  9435. " (url \"https://example.org/first-collection.git\")\n"
  9436. "\n"
  9437. msgstr ""
  9438. #. type: lisp
  9439. #: guix-git/doc/guix.texi:5298
  9440. #, no-wrap
  9441. msgid ""
  9442. " ;; The 'introduction' bit below is optional: you would\n"
  9443. " ;; provide it for dependencies that can be authenticated.\n"
  9444. " (introduction\n"
  9445. " (channel-introduction\n"
  9446. " (version 0)\n"
  9447. " (commit \"a8883b58dc82e167c96506cf05095f37c2c2c6cd\")\n"
  9448. " (signer \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  9449. " (channel\n"
  9450. " (name some-other-collection)\n"
  9451. " (url \"https://example.org/second-collection.git\")\n"
  9452. " (branch \"testing\"))))\n"
  9453. msgstr ""
  9454. #. type: Plain text
  9455. #: guix-git/doc/guix.texi:5304
  9456. 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."
  9457. msgstr ""
  9458. #. type: Plain text
  9459. #: guix-git/doc/guix.texi:5308
  9460. 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."
  9461. msgstr ""
  9462. #. type: cindex
  9463. #: guix-git/doc/guix.texi:5312
  9464. #, no-wrap
  9465. msgid "channel authorizations"
  9466. msgstr ""
  9467. #. type: anchor{#1}
  9468. #: guix-git/doc/guix.texi:5326
  9469. msgid "channel-authorizations"
  9470. msgstr ""
  9471. #. type: Plain text
  9472. #: guix-git/doc/guix.texi:5326
  9473. 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:"
  9474. msgstr ""
  9475. #. type: lisp
  9476. #: guix-git/doc/guix.texi:5329
  9477. #, no-wrap
  9478. msgid ""
  9479. ";; Example '.guix-authorizations' file.\n"
  9480. "\n"
  9481. msgstr ""
  9482. #. type: lisp
  9483. #: guix-git/doc/guix.texi:5332
  9484. #, no-wrap
  9485. msgid ""
  9486. "(authorizations\n"
  9487. " (version 0) ;current file format version\n"
  9488. "\n"
  9489. msgstr ""
  9490. #. type: lisp
  9491. #: guix-git/doc/guix.texi:5339
  9492. #, no-wrap
  9493. msgid ""
  9494. " ((\"AD17 A21E F8AE D8F1 CC02 DBD9 F8AE D8F1 765C 61E3\"\n"
  9495. " (name \"alice\"))\n"
  9496. " (\"2A39 3FFF 68F4 EF7A 3D29 12AF 68F4 EF7A 22FB B2D5\"\n"
  9497. " (name \"bob\"))\n"
  9498. " (\"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"\n"
  9499. " (name \"charlie\"))))\n"
  9500. msgstr ""
  9501. #. type: Plain text
  9502. #: guix-git/doc/guix.texi:5343
  9503. msgid "Each fingerprint is followed by optional key/value pairs, as in the example above. Currently these key/value pairs are ignored."
  9504. msgstr ""
  9505. #. type: Plain text
  9506. #: guix-git/doc/guix.texi:5348
  9507. 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?"
  9508. msgstr ""
  9509. #. type: cindex
  9510. #: guix-git/doc/guix.texi:5349
  9511. #, fuzzy, no-wrap
  9512. msgid "channel introduction"
  9513. msgstr "介绍"
  9514. #. type: Plain text
  9515. #: guix-git/doc/guix.texi:5356
  9516. 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."
  9517. msgstr ""
  9518. #. type: Plain text
  9519. #: guix-git/doc/guix.texi:5363
  9520. 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:"
  9521. msgstr ""
  9522. #. type: lisp
  9523. #: guix-git/doc/guix.texi:5368
  9524. #, no-wrap
  9525. msgid ""
  9526. "(channel\n"
  9527. " (version 0)\n"
  9528. " (keyring-reference \"my-keyring-branch\"))\n"
  9529. msgstr ""
  9530. #. type: Plain text
  9531. #: guix-git/doc/guix.texi:5372
  9532. msgid "To summarize, as the author of a channel, there are three things you have to do to allow users to authenticate your code:"
  9533. msgstr ""
  9534. #. type: enumerate
  9535. #: guix-git/doc/guix.texi:5378
  9536. 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})."
  9537. msgstr ""
  9538. #. type: enumerate
  9539. #: guix-git/doc/guix.texi:5383
  9540. 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.)"
  9541. msgstr ""
  9542. #. type: enumerate
  9543. #: guix-git/doc/guix.texi:5389
  9544. 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."
  9545. msgstr ""
  9546. #. type: Plain text
  9547. #: guix-git/doc/guix.texi:5394
  9548. 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:"
  9549. msgstr ""
  9550. #. type: example
  9551. #: guix-git/doc/guix.texi:5397
  9552. #, no-wrap
  9553. msgid "guix git authenticate @var{commit} @var{signer}\n"
  9554. msgstr ""
  9555. #. type: Plain text
  9556. #: guix-git/doc/guix.texi:5402
  9557. msgid "where @var{commit} and @var{signer} are your channel introduction. @xref{Invoking guix git authenticate}, for details."
  9558. msgstr ""
  9559. #. type: Plain text
  9560. #: guix-git/doc/guix.texi:5409
  9561. 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."
  9562. msgstr ""
  9563. #. type: cindex
  9564. #: guix-git/doc/guix.texi:5413
  9565. #, no-wrap
  9566. msgid "primary URL, channels"
  9567. msgstr ""
  9568. #. type: Plain text
  9569. #: guix-git/doc/guix.texi:5416
  9570. msgid "Channel authors can indicate the primary URL of their channel's Git repository in the @file{.guix-channel} file, like so:"
  9571. msgstr ""
  9572. #. type: lisp
  9573. #: guix-git/doc/guix.texi:5421
  9574. #, no-wrap
  9575. msgid ""
  9576. "(channel\n"
  9577. " (version 0)\n"
  9578. " (url \"https://example.org/guix.git\"))\n"
  9579. msgstr ""
  9580. #. type: Plain text
  9581. #: guix-git/doc/guix.texi:5428
  9582. 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."
  9583. msgstr ""
  9584. #. type: Plain text
  9585. #: guix-git/doc/guix.texi:5432
  9586. 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."
  9587. msgstr ""
  9588. #. type: cindex
  9589. #: guix-git/doc/guix.texi:5436
  9590. #, no-wrap
  9591. msgid "news, for channels"
  9592. msgstr ""
  9593. #. type: Plain text
  9594. #: guix-git/doc/guix.texi:5440
  9595. 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."
  9596. msgstr ""
  9597. #. type: Plain text
  9598. #: guix-git/doc/guix.texi:5445
  9599. 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."
  9600. msgstr ""
  9601. #. type: Plain text
  9602. #: guix-git/doc/guix.texi:5448
  9603. msgid "To do that, channel authors must first declare the name of the news file in their @file{.guix-channel} file:"
  9604. msgstr ""
  9605. #. type: lisp
  9606. #: guix-git/doc/guix.texi:5453
  9607. #, no-wrap
  9608. msgid ""
  9609. "(channel\n"
  9610. " (version 0)\n"
  9611. " (news-file \"etc/news.txt\"))\n"
  9612. msgstr ""
  9613. #. type: Plain text
  9614. #: guix-git/doc/guix.texi:5457
  9615. msgid "The news file itself, @file{etc/news.txt} in this example, must look something like this:"
  9616. msgstr ""
  9617. #. type: lisp
  9618. #: guix-git/doc/guix.texi:5470
  9619. #, no-wrap
  9620. msgid ""
  9621. "(channel-news\n"
  9622. " (version 0)\n"
  9623. " (entry (tag \"the-bug-fix\")\n"
  9624. " (title (en \"Fixed terrible bug\")\n"
  9625. " (fr \"Oh la la\"))\n"
  9626. " (body (en \"@@emph@{Good news@}! It's fixed!\")\n"
  9627. " (eo \"Certe ĝi pli bone funkcias nun!\")))\n"
  9628. " (entry (commit \"bdcabe815cd28144a2d2b4bc3c5057b051fa9906\")\n"
  9629. " (title (en \"Added a great package\")\n"
  9630. " (ca \"Què vol dir guix?\"))\n"
  9631. " (body (en \"Don't miss the @@code@{hello@} package!\"))))\n"
  9632. msgstr ""
  9633. #. type: Plain text
  9634. #: guix-git/doc/guix.texi:5477
  9635. 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."
  9636. msgstr ""
  9637. #. type: Plain text
  9638. #: guix-git/doc/guix.texi:5482
  9639. 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."
  9640. msgstr ""
  9641. #. type: Plain text
  9642. #: guix-git/doc/guix.texi:5488
  9643. 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."
  9644. msgstr ""
  9645. #. type: Plain text
  9646. #: guix-git/doc/guix.texi:5494
  9647. 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:"
  9648. msgstr ""
  9649. #. type: example
  9650. #: guix-git/doc/guix.texi:5497
  9651. #, no-wrap
  9652. msgid "xgettext -o news.po -l scheme -ken etc/news.txt\n"
  9653. msgstr ""
  9654. #. type: Plain text
  9655. #: guix-git/doc/guix.texi:5501
  9656. 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."
  9657. msgstr ""
  9658. #. type: cindex
  9659. #: guix-git/doc/guix.texi:5506
  9660. #, no-wrap
  9661. msgid "software development"
  9662. msgstr ""
  9663. #. type: Plain text
  9664. #: guix-git/doc/guix.texi:5510
  9665. 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."
  9666. msgstr ""
  9667. #. type: Plain text
  9668. #: guix-git/doc/guix.texi:5516
  9669. 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."
  9670. msgstr ""
  9671. #. type: section
  9672. #: guix-git/doc/guix.texi:5525
  9673. #, no-wrap
  9674. msgid "Invoking @command{guix environment}"
  9675. msgstr ""
  9676. #. type: cindex
  9677. #: guix-git/doc/guix.texi:5527
  9678. #, no-wrap
  9679. msgid "reproducible build environments"
  9680. msgstr ""
  9681. #. type: cindex
  9682. #: guix-git/doc/guix.texi:5528
  9683. #, no-wrap
  9684. msgid "development environments"
  9685. msgstr ""
  9686. #. type: command{#1}
  9687. #: guix-git/doc/guix.texi:5529
  9688. #, no-wrap
  9689. msgid "guix environment"
  9690. msgstr ""
  9691. #. type: cindex
  9692. #: guix-git/doc/guix.texi:5530
  9693. #, no-wrap
  9694. msgid "environment, package build environment"
  9695. msgstr ""
  9696. #. type: Plain text
  9697. #: guix-git/doc/guix.texi:5536
  9698. 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."
  9699. msgstr ""
  9700. #. type: example
  9701. #: guix-git/doc/guix.texi:5541
  9702. #, no-wrap
  9703. msgid "guix environment @var{options} @var{package}@dots{}\n"
  9704. msgstr ""
  9705. #. type: Plain text
  9706. #: guix-git/doc/guix.texi:5545
  9707. msgid "The following example spawns a new shell set up for the development of GNU@tie{}Guile:"
  9708. msgstr ""
  9709. #. type: example
  9710. #: guix-git/doc/guix.texi:5548
  9711. #, no-wrap
  9712. msgid "guix environment guile\n"
  9713. msgstr ""
  9714. #. type: Plain text
  9715. #: guix-git/doc/guix.texi:5565
  9716. 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.}."
  9717. msgstr ""
  9718. #. type: Plain text
  9719. #: guix-git/doc/guix.texi:5571
  9720. 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."
  9721. msgstr ""
  9722. #. type: vindex
  9723. #: guix-git/doc/guix.texi:5572
  9724. #, no-wrap
  9725. msgid "GUIX_ENVIRONMENT"
  9726. msgstr ""
  9727. #. type: Plain text
  9728. #: guix-git/doc/guix.texi:5578
  9729. 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}):"
  9730. msgstr ""
  9731. #. type: example
  9732. #: guix-git/doc/guix.texi:5584
  9733. #, no-wrap
  9734. msgid ""
  9735. "if [ -n \"$GUIX_ENVIRONMENT\" ]\n"
  9736. "then\n"
  9737. " export PS1=\"\\u@@\\h \\w [dev]\\$ \"\n"
  9738. "fi\n"
  9739. msgstr ""
  9740. #. type: Plain text
  9741. #: guix-git/doc/guix.texi:5588
  9742. msgid "...@: or to browse the profile:"
  9743. msgstr ""
  9744. #. type: example
  9745. #: guix-git/doc/guix.texi:5591
  9746. #, no-wrap
  9747. msgid "$ ls \"$GUIX_ENVIRONMENT/bin\"\n"
  9748. msgstr ""
  9749. #. type: Plain text
  9750. #: guix-git/doc/guix.texi:5597
  9751. 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:"
  9752. msgstr ""
  9753. #. type: example
  9754. #: guix-git/doc/guix.texi:5600
  9755. #, no-wrap
  9756. msgid "guix environment guile emacs\n"
  9757. msgstr ""
  9758. #. type: Plain text
  9759. #: guix-git/doc/guix.texi:5605
  9760. 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:"
  9761. msgstr ""
  9762. #. type: example
  9763. #: guix-git/doc/guix.texi:5608
  9764. #, no-wrap
  9765. msgid "guix environment guile -- make -j4\n"
  9766. msgstr ""
  9767. #. type: Plain text
  9768. #: guix-git/doc/guix.texi:5614
  9769. 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:"
  9770. msgstr ""
  9771. #. type: example
  9772. #: guix-git/doc/guix.texi:5617
  9773. #, no-wrap
  9774. msgid "guix environment --ad-hoc python2-numpy python-2.7 -- python\n"
  9775. msgstr ""
  9776. #. type: Plain text
  9777. #: guix-git/doc/guix.texi:5628
  9778. 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:"
  9779. msgstr ""
  9780. #. type: example
  9781. #: guix-git/doc/guix.texi:5631
  9782. #, fuzzy, no-wrap
  9783. msgid "guix environment --pure guix --ad-hoc git strace\n"
  9784. msgstr "guix environment guix --ad-hoc help2man git strace\n"
  9785. #. type: item
  9786. #: guix-git/doc/guix.texi:5633 guix-git/doc/guix.texi:5794
  9787. #: guix-git/doc/guix.texi:13025 guix-git/doc/guix.texi:33068
  9788. #, no-wrap
  9789. msgid "container"
  9790. msgstr ""
  9791. #. type: Plain text
  9792. #: guix-git/doc/guix.texi:5641
  9793. 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:"
  9794. msgstr ""
  9795. #. type: example
  9796. #: guix-git/doc/guix.texi:5644
  9797. #, no-wrap
  9798. msgid "guix environment --ad-hoc --container guile -- guile\n"
  9799. msgstr ""
  9800. #. type: quotation
  9801. #: guix-git/doc/guix.texi:5648
  9802. msgid "The @option{--container} option requires Linux-libre 3.19 or newer."
  9803. msgstr ""
  9804. #. type: cindex
  9805. #: guix-git/doc/guix.texi:5650
  9806. #, fuzzy, no-wrap
  9807. msgid "certificates"
  9808. msgstr "X.509证书"
  9809. #. type: Plain text
  9810. #: guix-git/doc/guix.texi:5657
  9811. 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."
  9812. msgstr ""
  9813. #. type: example
  9814. #: guix-git/doc/guix.texi:5664
  9815. #, no-wrap
  9816. msgid ""
  9817. "guix environment --preserve='^DISPLAY$' --container --network \\\n"
  9818. " --expose=/etc/machine-id \\\n"
  9819. " --expose=/etc/ssl/certs/ \\\n"
  9820. " --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \\\n"
  9821. " --ad-hoc eolie nss-certs dbus -- eolie\n"
  9822. msgstr ""
  9823. #. type: Plain text
  9824. #: guix-git/doc/guix.texi:5667
  9825. msgid "The available options are summarized below."
  9826. msgstr ""
  9827. #. type: item
  9828. #: guix-git/doc/guix.texi:5669 guix-git/doc/guix.texi:6205
  9829. #: guix-git/doc/guix.texi:10863 guix-git/doc/guix.texi:33165
  9830. #, no-wrap
  9831. msgid "--root=@var{file}"
  9832. msgstr ""
  9833. #. type: itemx
  9834. #: guix-git/doc/guix.texi:5670 guix-git/doc/guix.texi:6206
  9835. #: guix-git/doc/guix.texi:10864 guix-git/doc/guix.texi:33166
  9836. #, no-wrap
  9837. msgid "-r @var{file}"
  9838. msgstr ""
  9839. #. type: cindex
  9840. #: guix-git/doc/guix.texi:5671
  9841. #, no-wrap
  9842. msgid "persistent environment"
  9843. msgstr ""
  9844. #. type: cindex
  9845. #: guix-git/doc/guix.texi:5672
  9846. #, no-wrap
  9847. msgid "garbage collector root, for environments"
  9848. msgstr ""
  9849. #. type: table
  9850. #: guix-git/doc/guix.texi:5675
  9851. msgid "Make @var{file} a symlink to the profile for this environment, and register it as a garbage collector root."
  9852. msgstr ""
  9853. #. type: table
  9854. #: guix-git/doc/guix.texi:5678
  9855. msgid "This is useful if you want to protect your environment from garbage collection, to make it ``persistent''."
  9856. msgstr ""
  9857. #. type: table
  9858. #: guix-git/doc/guix.texi:5684
  9859. 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."
  9860. msgstr ""
  9861. #. type: item
  9862. #: guix-git/doc/guix.texi:5685 guix-git/doc/guix.texi:6137
  9863. #: guix-git/doc/guix.texi:10709 guix-git/doc/guix.texi:11684
  9864. #: guix-git/doc/guix.texi:12479 guix-git/doc/guix.texi:33100
  9865. #, no-wrap
  9866. msgid "--expression=@var{expr}"
  9867. msgstr ""
  9868. #. type: itemx
  9869. #: guix-git/doc/guix.texi:5686 guix-git/doc/guix.texi:6138
  9870. #: guix-git/doc/guix.texi:10710 guix-git/doc/guix.texi:11685
  9871. #: guix-git/doc/guix.texi:12480 guix-git/doc/guix.texi:33101
  9872. #, no-wrap
  9873. msgid "-e @var{expr}"
  9874. msgstr ""
  9875. #. type: table
  9876. #: guix-git/doc/guix.texi:5689
  9877. msgid "Create an environment for the package or list of packages that @var{expr} evaluates to."
  9878. msgstr ""
  9879. #. type: table
  9880. #: guix-git/doc/guix.texi:5691
  9881. msgid "For example, running:"
  9882. msgstr ""
  9883. #. type: example
  9884. #: guix-git/doc/guix.texi:5694
  9885. #, no-wrap
  9886. msgid "guix environment -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  9887. msgstr ""
  9888. #. type: table
  9889. #: guix-git/doc/guix.texi:5698
  9890. msgid "starts a shell with the environment for this specific variant of the PETSc package."
  9891. msgstr ""
  9892. #. type: table
  9893. #: guix-git/doc/guix.texi:5700
  9894. msgid "Running:"
  9895. msgstr ""
  9896. #. type: example
  9897. #: guix-git/doc/guix.texi:5703
  9898. #, no-wrap
  9899. msgid "guix environment --ad-hoc -e '(@@ (gnu) %base-packages)'\n"
  9900. msgstr ""
  9901. #. type: table
  9902. #: guix-git/doc/guix.texi:5706
  9903. msgid "starts a shell with all the base system packages available."
  9904. msgstr ""
  9905. #. type: table
  9906. #: guix-git/doc/guix.texi:5709
  9907. msgid "The above commands only use the default output of the given packages. To select other outputs, two element tuples can be specified:"
  9908. msgstr ""
  9909. #. type: example
  9910. #: guix-git/doc/guix.texi:5712
  9911. #, no-wrap
  9912. msgid "guix environment --ad-hoc -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  9913. msgstr ""
  9914. #. type: item
  9915. #: guix-git/doc/guix.texi:5714
  9916. #, no-wrap
  9917. msgid "--load=@var{file}"
  9918. msgstr ""
  9919. #. type: itemx
  9920. #: guix-git/doc/guix.texi:5715
  9921. #, no-wrap
  9922. msgid "-l @var{file}"
  9923. msgstr ""
  9924. #. type: table
  9925. #: guix-git/doc/guix.texi:5718
  9926. msgid "Create an environment for the package or list of packages that the code within @var{file} evaluates to."
  9927. msgstr ""
  9928. #. type: lisp
  9929. #: guix-git/doc/guix.texi:5724
  9930. #, no-wrap
  9931. msgid "@verbatiminclude environment-gdb.scm\n"
  9932. msgstr ""
  9933. #. type: table
  9934. #: guix-git/doc/guix.texi:5731
  9935. 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."
  9936. msgstr ""
  9937. #. type: table
  9938. #: guix-git/doc/guix.texi:5735
  9939. msgid "This is similar to the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files."
  9940. msgstr ""
  9941. #. type: item
  9942. #: guix-git/doc/guix.texi:5736
  9943. #, no-wrap
  9944. msgid "--ad-hoc"
  9945. msgstr ""
  9946. #. type: table
  9947. #: guix-git/doc/guix.texi:5741
  9948. 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."
  9949. msgstr ""
  9950. #. type: table
  9951. #: guix-git/doc/guix.texi:5743
  9952. msgid "For instance, the command:"
  9953. msgstr ""
  9954. #. type: example
  9955. #: guix-git/doc/guix.texi:5746
  9956. #, no-wrap
  9957. msgid "guix environment --ad-hoc guile guile-sdl -- guile\n"
  9958. msgstr ""
  9959. #. type: table
  9960. #: guix-git/doc/guix.texi:5750
  9961. msgid "runs @command{guile} in an environment where Guile and Guile-SDL are available."
  9962. msgstr ""
  9963. #. type: table
  9964. #: guix-git/doc/guix.texi:5755
  9965. 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})."
  9966. msgstr ""
  9967. #. type: table
  9968. #: guix-git/doc/guix.texi:5761
  9969. 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."
  9970. msgstr ""
  9971. #. type: item
  9972. #: guix-git/doc/guix.texi:5762
  9973. #, no-wrap
  9974. msgid "--pure"
  9975. msgstr ""
  9976. #. type: table
  9977. #: guix-git/doc/guix.texi:5766
  9978. 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."
  9979. msgstr ""
  9980. #. type: item
  9981. #: guix-git/doc/guix.texi:5767
  9982. #, no-wrap
  9983. msgid "--preserve=@var{regexp}"
  9984. msgstr ""
  9985. #. type: itemx
  9986. #: guix-git/doc/guix.texi:5768
  9987. #, no-wrap
  9988. msgid "-E @var{regexp}"
  9989. msgstr ""
  9990. #. type: table
  9991. #: guix-git/doc/guix.texi:5773
  9992. 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."
  9993. msgstr ""
  9994. #. type: example
  9995. #: guix-git/doc/guix.texi:5777
  9996. #, no-wrap
  9997. msgid ""
  9998. "guix environment --pure --preserve=^SLURM --ad-hoc openmpi @dots{} \\\n"
  9999. " -- mpirun @dots{}\n"
  10000. msgstr ""
  10001. #. type: table
  10002. #: guix-git/doc/guix.texi:5783
  10003. 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.)."
  10004. msgstr ""
  10005. #. type: item
  10006. #: guix-git/doc/guix.texi:5784
  10007. #, no-wrap
  10008. msgid "--search-paths"
  10009. msgstr ""
  10010. #. type: table
  10011. #: guix-git/doc/guix.texi:5787
  10012. msgid "Display the environment variable definitions that make up the environment."
  10013. msgstr ""
  10014. #. type: table
  10015. #: guix-git/doc/guix.texi:5791
  10016. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}."
  10017. msgstr ""
  10018. #. type: item
  10019. #: guix-git/doc/guix.texi:5792
  10020. #, no-wrap
  10021. msgid "--container"
  10022. msgstr ""
  10023. #. type: itemx
  10024. #: guix-git/doc/guix.texi:5793
  10025. #, no-wrap
  10026. msgid "-C"
  10027. msgstr ""
  10028. #. type: table
  10029. #: guix-git/doc/guix.texi:5800
  10030. 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."
  10031. msgstr ""
  10032. #. type: table
  10033. #: guix-git/doc/guix.texi:5804
  10034. 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)."
  10035. msgstr ""
  10036. #. type: item
  10037. #: guix-git/doc/guix.texi:5805 guix-git/doc/guix.texi:33160
  10038. #, no-wrap
  10039. msgid "--network"
  10040. msgstr ""
  10041. #. type: table
  10042. #: guix-git/doc/guix.texi:5810
  10043. msgid "For containers, share the network namespace with the host system. Containers created without this flag only have access to the loopback device."
  10044. msgstr ""
  10045. #. type: item
  10046. #: guix-git/doc/guix.texi:5811
  10047. #, no-wrap
  10048. msgid "--link-profile"
  10049. msgstr ""
  10050. #. type: itemx
  10051. #: guix-git/doc/guix.texi:5812
  10052. #, no-wrap
  10053. msgid "-P"
  10054. msgstr ""
  10055. #. type: table
  10056. #: guix-git/doc/guix.texi:5820
  10057. 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."
  10058. msgstr ""
  10059. #. type: table
  10060. #: guix-git/doc/guix.texi:5826
  10061. 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."
  10062. msgstr ""
  10063. #. type: item
  10064. #: guix-git/doc/guix.texi:5827 guix-git/doc/guix.texi:12612
  10065. #, no-wrap
  10066. msgid "--user=@var{user}"
  10067. msgstr ""
  10068. #. type: itemx
  10069. #: guix-git/doc/guix.texi:5828 guix-git/doc/guix.texi:12613
  10070. #, no-wrap
  10071. msgid "-u @var{user}"
  10072. msgstr ""
  10073. #. type: table
  10074. #: guix-git/doc/guix.texi:5835
  10075. 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."
  10076. msgstr ""
  10077. #. type: table
  10078. #: guix-git/doc/guix.texi:5840
  10079. 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."
  10080. msgstr ""
  10081. #. type: example
  10082. #: guix-git/doc/guix.texi:5847
  10083. #, no-wrap
  10084. msgid ""
  10085. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  10086. "cd $HOME/wd\n"
  10087. "guix environment --container --user=foo \\\n"
  10088. " --expose=$HOME/test \\\n"
  10089. " --expose=/tmp/target=$HOME/target\n"
  10090. msgstr ""
  10091. #. type: table
  10092. #: guix-git/doc/guix.texi:5852
  10093. 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."
  10094. msgstr ""
  10095. #. type: item
  10096. #: guix-git/doc/guix.texi:5853
  10097. #, no-wrap
  10098. msgid "--no-cwd"
  10099. msgstr ""
  10100. #. type: table
  10101. #: guix-git/doc/guix.texi:5860
  10102. 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}."
  10103. msgstr ""
  10104. #. type: item
  10105. #: guix-git/doc/guix.texi:5861
  10106. #, no-wrap
  10107. msgid "--expose=@var{source}[=@var{target}]"
  10108. msgstr ""
  10109. #. type: itemx
  10110. #: guix-git/doc/guix.texi:5862
  10111. #, no-wrap
  10112. msgid "--share=@var{source}[=@var{target}]"
  10113. msgstr ""
  10114. #. type: table
  10115. #: guix-git/doc/guix.texi:5868
  10116. 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."
  10117. msgstr ""
  10118. #. type: table
  10119. #: guix-git/doc/guix.texi:5872
  10120. 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:"
  10121. msgstr ""
  10122. #. type: example
  10123. #: guix-git/doc/guix.texi:5875
  10124. #, no-wrap
  10125. msgid "guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile\n"
  10126. msgstr ""
  10127. #. type: Plain text
  10128. #: guix-git/doc/guix.texi:5883
  10129. 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})."
  10130. msgstr ""
  10131. #. type: section
  10132. #: guix-git/doc/guix.texi:5885
  10133. #, no-wrap
  10134. msgid "Invoking @command{guix pack}"
  10135. msgstr ""
  10136. #. type: Plain text
  10137. #: guix-git/doc/guix.texi:5891
  10138. 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."
  10139. msgstr ""
  10140. #. type: quotation
  10141. #: guix-git/doc/guix.texi:5896
  10142. 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}."
  10143. msgstr ""
  10144. #. type: cindex
  10145. #: guix-git/doc/guix.texi:5898
  10146. #, no-wrap
  10147. msgid "pack"
  10148. msgstr ""
  10149. #. type: cindex
  10150. #: guix-git/doc/guix.texi:5899
  10151. #, no-wrap
  10152. msgid "bundle"
  10153. msgstr ""
  10154. #. type: cindex
  10155. #: guix-git/doc/guix.texi:5900
  10156. #, no-wrap
  10157. msgid "application bundle"
  10158. msgstr ""
  10159. #. type: cindex
  10160. #: guix-git/doc/guix.texi:5901
  10161. #, no-wrap
  10162. msgid "software bundle"
  10163. msgstr ""
  10164. #. type: Plain text
  10165. #: guix-git/doc/guix.texi:5910
  10166. 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."
  10167. msgstr ""
  10168. #. type: Plain text
  10169. #: guix-git/doc/guix.texi:5913
  10170. msgid "For example, to create a bundle containing Guile, Emacs, Geiser, and all their dependencies, you can run:"
  10171. msgstr ""
  10172. #. type: example
  10173. #: guix-git/doc/guix.texi:5918
  10174. #, no-wrap
  10175. msgid ""
  10176. "$ guix pack guile emacs geiser\n"
  10177. "@dots{}\n"
  10178. "/gnu/store/@dots{}-pack.tar.gz\n"
  10179. msgstr ""
  10180. #. type: Plain text
  10181. #: guix-git/doc/guix.texi:5926
  10182. 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})."
  10183. msgstr ""
  10184. #. type: Plain text
  10185. #: guix-git/doc/guix.texi:5931
  10186. 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:"
  10187. msgstr ""
  10188. #. type: example
  10189. #: guix-git/doc/guix.texi:5934
  10190. #, no-wrap
  10191. msgid "guix pack -S /opt/gnu/bin=bin guile emacs geiser\n"
  10192. msgstr ""
  10193. #. type: Plain text
  10194. #: guix-git/doc/guix.texi:5938
  10195. msgid "That way, users can happily type @file{/opt/gnu/bin/guile} and enjoy."
  10196. msgstr ""
  10197. #. type: cindex
  10198. #: guix-git/doc/guix.texi:5939
  10199. #, no-wrap
  10200. msgid "relocatable binaries, with @command{guix pack}"
  10201. msgstr ""
  10202. #. type: Plain text
  10203. #: guix-git/doc/guix.texi:5947
  10204. 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}."
  10205. msgstr ""
  10206. #. type: cindex
  10207. #: guix-git/doc/guix.texi:5948
  10208. #, no-wrap
  10209. msgid "Docker, build an image with guix pack"
  10210. msgstr ""
  10211. #. type: Plain text
  10212. #: guix-git/doc/guix.texi:5951
  10213. msgid "Alternatively, you can produce a pack in the Docker image format using the following command:"
  10214. msgstr ""
  10215. #. type: example
  10216. #: guix-git/doc/guix.texi:5954
  10217. #, no-wrap
  10218. msgid "guix pack -f docker -S /bin=bin guile guile-readline\n"
  10219. msgstr ""
  10220. #. type: Plain text
  10221. #: guix-git/doc/guix.texi:5959
  10222. msgid "The result is a tarball that can be passed to the @command{docker load} command, followed by @code{docker run}:"
  10223. msgstr ""
  10224. #. type: example
  10225. #: guix-git/doc/guix.texi:5963
  10226. #, no-wrap
  10227. msgid ""
  10228. "docker load < @var{file}\n"
  10229. "docker run -ti guile-guile-readline /bin/guile\n"
  10230. msgstr ""
  10231. #. type: Plain text
  10232. #: guix-git/doc/guix.texi:5970
  10233. 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."
  10234. msgstr ""
  10235. #. type: cindex
  10236. #: guix-git/doc/guix.texi:5971
  10237. #, no-wrap
  10238. msgid "Singularity, build an image with guix pack"
  10239. msgstr ""
  10240. #. type: cindex
  10241. #: guix-git/doc/guix.texi:5972
  10242. #, no-wrap
  10243. msgid "SquashFS, build an image with guix pack"
  10244. msgstr ""
  10245. #. type: Plain text
  10246. #: guix-git/doc/guix.texi:5975
  10247. msgid "Yet another option is to produce a SquashFS image with the following command:"
  10248. msgstr ""
  10249. #. type: example
  10250. #: guix-git/doc/guix.texi:5978
  10251. #, fuzzy, no-wrap
  10252. msgid "guix pack -f squashfs bash guile emacs geiser\n"
  10253. msgstr "guix package -i emacs guile emacs-geiser\n"
  10254. #. type: Plain text
  10255. #: guix-git/doc/guix.texi:5986
  10256. 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}."
  10257. msgstr ""
  10258. #. type: Plain text
  10259. #: guix-git/doc/guix.texi:5988
  10260. msgid "Several command-line options allow you to customize your pack:"
  10261. msgstr ""
  10262. #. type: table
  10263. #: guix-git/doc/guix.texi:5993
  10264. msgid "Produce a pack in the given @var{format}."
  10265. msgstr ""
  10266. #. type: table
  10267. #: guix-git/doc/guix.texi:5995
  10268. msgid "The available formats are:"
  10269. msgstr ""
  10270. #. type: item
  10271. #: guix-git/doc/guix.texi:5997
  10272. #, no-wrap
  10273. msgid "tarball"
  10274. msgstr ""
  10275. #. type: table
  10276. #: guix-git/doc/guix.texi:6000
  10277. msgid "This is the default format. It produces a tarball containing all the specified binaries and symlinks."
  10278. msgstr ""
  10279. #. type: item
  10280. #: guix-git/doc/guix.texi:6001
  10281. #, no-wrap
  10282. msgid "docker"
  10283. msgstr ""
  10284. #. type: table
  10285. #: guix-git/doc/guix.texi:6007
  10286. 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."
  10287. msgstr ""
  10288. #. type: item
  10289. #: guix-git/doc/guix.texi:6008
  10290. #, no-wrap
  10291. msgid "squashfs"
  10292. msgstr ""
  10293. #. type: table
  10294. #: guix-git/doc/guix.texi:6012
  10295. 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."
  10296. msgstr ""
  10297. #. type: quotation
  10298. #: guix-git/doc/guix.texi:6018
  10299. 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:"
  10300. msgstr ""
  10301. #. type: example
  10302. #: guix-git/doc/guix.texi:6021
  10303. #, no-wrap
  10304. msgid "guix pack -f squashfs bash @dots{}\n"
  10305. msgstr ""
  10306. #. type: quotation
  10307. #: guix-git/doc/guix.texi:6026
  10308. 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."
  10309. msgstr ""
  10310. #. type: cindex
  10311. #: guix-git/doc/guix.texi:6029
  10312. #, no-wrap
  10313. msgid "relocatable binaries"
  10314. msgstr ""
  10315. #. type: item
  10316. #: guix-git/doc/guix.texi:6030
  10317. #, no-wrap
  10318. msgid "--relocatable"
  10319. msgstr ""
  10320. #. type: table
  10321. #: guix-git/doc/guix.texi:6034
  10322. msgid "Produce @dfn{relocatable binaries}---i.e., binaries that can be placed anywhere in the file system hierarchy and run from there."
  10323. msgstr ""
  10324. #. type: table
  10325. #: guix-git/doc/guix.texi:6042
  10326. 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."
  10327. msgstr ""
  10328. #. type: table
  10329. #: guix-git/doc/guix.texi:6044
  10330. msgid "For example, if you create a pack containing Bash with:"
  10331. msgstr ""
  10332. #. type: example
  10333. #: guix-git/doc/guix.texi:6047
  10334. #, no-wrap
  10335. msgid "guix pack -RR -S /mybin=bin bash\n"
  10336. msgstr ""
  10337. #. type: table
  10338. #: guix-git/doc/guix.texi:6052
  10339. msgid "...@: you can copy that pack to a machine that lacks Guix, and from your home directory as a normal user, run:"
  10340. msgstr ""
  10341. #. type: example
  10342. #: guix-git/doc/guix.texi:6056
  10343. #, no-wrap
  10344. msgid ""
  10345. "tar xf pack.tar.gz\n"
  10346. "./mybin/sh\n"
  10347. msgstr ""
  10348. #. type: table
  10349. #: guix-git/doc/guix.texi:6064
  10350. 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."
  10351. msgstr ""
  10352. #. type: quotation
  10353. #: guix-git/doc/guix.texi:6070
  10354. 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."
  10355. msgstr ""
  10356. #. type: quotation
  10357. #: guix-git/doc/guix.texi:6076
  10358. 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:"
  10359. msgstr ""
  10360. #. type: item
  10361. #: guix-git/doc/guix.texi:6078 guix-git/doc/guix.texi:16223
  10362. #, no-wrap
  10363. msgid "default"
  10364. msgstr ""
  10365. #. type: table
  10366. #: guix-git/doc/guix.texi:6081
  10367. msgid "Try user namespaces and fall back to PRoot if user namespaces are not supported (see below)."
  10368. msgstr ""
  10369. #. type: item
  10370. #: guix-git/doc/guix.texi:6082
  10371. #, fuzzy, no-wrap
  10372. msgid "performance"
  10373. msgstr "格式化代码"
  10374. #. type: table
  10375. #: guix-git/doc/guix.texi:6085
  10376. msgid "Try user namespaces and fall back to Fakechroot if user namespaces are not supported (see below)."
  10377. msgstr ""
  10378. #. type: item
  10379. #: guix-git/doc/guix.texi:6086
  10380. #, fuzzy, no-wrap
  10381. msgid "userns"
  10382. msgstr "用户"
  10383. #. type: table
  10384. #: guix-git/doc/guix.texi:6089
  10385. msgid "Run the program through user namespaces and abort if they are not supported."
  10386. msgstr ""
  10387. #. type: item
  10388. #: guix-git/doc/guix.texi:6090
  10389. #, fuzzy, no-wrap
  10390. msgid "proot"
  10391. msgstr "chroot"
  10392. #. type: table
  10393. #: guix-git/doc/guix.texi:6097
  10394. 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."
  10395. msgstr ""
  10396. #. type: item
  10397. #: guix-git/doc/guix.texi:6098
  10398. #, fuzzy, no-wrap
  10399. msgid "fakechroot"
  10400. msgstr "chroot"
  10401. #. type: table
  10402. #: guix-git/doc/guix.texi:6106
  10403. 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."
  10404. msgstr ""
  10405. #. type: vindex
  10406. #: guix-git/doc/guix.texi:6108
  10407. #, no-wrap
  10408. msgid "GUIX_EXECUTION_ENGINE"
  10409. msgstr ""
  10410. #. type: quotation
  10411. #: guix-git/doc/guix.texi:6112
  10412. 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."
  10413. msgstr ""
  10414. #. type: cindex
  10415. #: guix-git/doc/guix.texi:6114
  10416. #, no-wrap
  10417. msgid "entry point, for Docker images"
  10418. msgstr ""
  10419. #. type: item
  10420. #: guix-git/doc/guix.texi:6115
  10421. #, fuzzy, no-wrap
  10422. msgid "--entry-point=@var{command}"
  10423. msgstr "--timeout=@var{seconds}"
  10424. #. type: table
  10425. #: guix-git/doc/guix.texi:6120
  10426. 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."
  10427. msgstr ""
  10428. #. type: table
  10429. #: guix-git/doc/guix.texi:6124
  10430. 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:"
  10431. msgstr ""
  10432. #. type: example
  10433. #: guix-git/doc/guix.texi:6127
  10434. #, no-wrap
  10435. msgid "guix pack -f docker --entry-point=bin/guile guile\n"
  10436. msgstr ""
  10437. #. type: table
  10438. #: guix-git/doc/guix.texi:6131
  10439. msgid "The resulting pack can easily be loaded and @code{docker run} with no extra arguments will spawn @code{bin/guile}:"
  10440. msgstr ""
  10441. #. type: example
  10442. #: guix-git/doc/guix.texi:6135
  10443. #, no-wrap
  10444. msgid ""
  10445. "docker load -i pack.tar.gz\n"
  10446. "docker run @var{image-id}\n"
  10447. msgstr ""
  10448. #. type: table
  10449. #: guix-git/doc/guix.texi:6140 guix-git/doc/guix.texi:11687
  10450. #: guix-git/doc/guix.texi:12482
  10451. msgid "Consider the package @var{expr} evaluates to."
  10452. msgstr ""
  10453. #. type: table
  10454. #: guix-git/doc/guix.texi:6144
  10455. 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}})."
  10456. msgstr ""
  10457. #. type: table
  10458. #: guix-git/doc/guix.texi:6150
  10459. 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."
  10460. msgstr ""
  10461. #. type: table
  10462. #: guix-git/doc/guix.texi:6158
  10463. 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."
  10464. msgstr ""
  10465. #. type: item
  10466. #: guix-git/doc/guix.texi:6164 guix-git/doc/guix.texi:10827
  10467. #, no-wrap
  10468. msgid "--target=@var{triplet}"
  10469. msgstr ""
  10470. #. type: cindex
  10471. #: guix-git/doc/guix.texi:6165 guix-git/doc/guix.texi:6616
  10472. #: guix-git/doc/guix.texi:10828
  10473. #, no-wrap
  10474. msgid "cross-compilation"
  10475. msgstr ""
  10476. #. type: table
  10477. #: guix-git/doc/guix.texi:6169
  10478. 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})."
  10479. msgstr ""
  10480. #. type: item
  10481. #: guix-git/doc/guix.texi:6170
  10482. #, no-wrap
  10483. msgid "--compression=@var{tool}"
  10484. msgstr ""
  10485. #. type: itemx
  10486. #: guix-git/doc/guix.texi:6171
  10487. #, no-wrap
  10488. msgid "-C @var{tool}"
  10489. msgstr ""
  10490. #. type: table
  10491. #: guix-git/doc/guix.texi:6175
  10492. #, fuzzy
  10493. 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."
  10494. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  10495. #. type: item
  10496. #: guix-git/doc/guix.texi:6176
  10497. #, no-wrap
  10498. msgid "--symlink=@var{spec}"
  10499. msgstr ""
  10500. #. type: itemx
  10501. #: guix-git/doc/guix.texi:6177
  10502. #, no-wrap
  10503. msgid "-S @var{spec}"
  10504. msgstr ""
  10505. #. type: table
  10506. #: guix-git/doc/guix.texi:6180
  10507. msgid "Add the symlinks specified by @var{spec} to the pack. This option can appear several times."
  10508. msgstr ""
  10509. #. type: table
  10510. #: guix-git/doc/guix.texi:6184
  10511. 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."
  10512. msgstr ""
  10513. #. type: table
  10514. #: guix-git/doc/guix.texi:6187
  10515. 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."
  10516. msgstr ""
  10517. #. type: item
  10518. #: guix-git/doc/guix.texi:6188 guix-git/doc/guix.texi:33119
  10519. #, no-wrap
  10520. msgid "--save-provenance"
  10521. msgstr ""
  10522. #. type: table
  10523. #: guix-git/doc/guix.texi:6192
  10524. 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})."
  10525. msgstr ""
  10526. #. type: table
  10527. #: guix-git/doc/guix.texi:6198
  10528. 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."
  10529. msgstr ""
  10530. #. type: table
  10531. #: guix-git/doc/guix.texi:6204
  10532. 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."
  10533. msgstr ""
  10534. #. type: cindex
  10535. #: guix-git/doc/guix.texi:6207
  10536. #, fuzzy, no-wrap
  10537. msgid "garbage collector root, for packs"
  10538. msgstr "垃圾收集的根"
  10539. #. type: table
  10540. #: guix-git/doc/guix.texi:6210
  10541. msgid "Make @var{file} a symlink to the resulting pack, and register it as a garbage collector root."
  10542. msgstr ""
  10543. #. type: item
  10544. #: guix-git/doc/guix.texi:6211
  10545. #, no-wrap
  10546. msgid "--localstatedir"
  10547. msgstr ""
  10548. #. type: itemx
  10549. #: guix-git/doc/guix.texi:6212
  10550. #, no-wrap
  10551. msgid "--profile-name=@var{name}"
  10552. msgstr ""
  10553. #. type: table
  10554. #: guix-git/doc/guix.texi:6217
  10555. 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}."
  10556. msgstr ""
  10557. #. type: table
  10558. #: guix-git/doc/guix.texi:6223
  10559. 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."
  10560. msgstr ""
  10561. #. type: table
  10562. #: guix-git/doc/guix.texi:6226
  10563. msgid "One use case for this is the Guix self-contained binary tarball (@pxref{Binary Installation})."
  10564. msgstr ""
  10565. #. type: item
  10566. #: guix-git/doc/guix.texi:6227 guix-git/doc/guix.texi:33113
  10567. #, no-wrap
  10568. msgid "--derivation"
  10569. msgstr ""
  10570. #. type: itemx
  10571. #: guix-git/doc/guix.texi:6228 guix-git/doc/guix.texi:10859
  10572. #: guix-git/doc/guix.texi:33114
  10573. #, no-wrap
  10574. msgid "-d"
  10575. msgstr ""
  10576. #. type: table
  10577. #: guix-git/doc/guix.texi:6230
  10578. msgid "Print the name of the derivation that builds the pack."
  10579. msgstr ""
  10580. #. type: table
  10581. #: guix-git/doc/guix.texi:6234
  10582. msgid "Use the bootstrap binaries to build the pack. This option is only useful to Guix developers."
  10583. msgstr ""
  10584. #. type: Plain text
  10585. #: guix-git/doc/guix.texi:6239
  10586. 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})."
  10587. msgstr ""
  10588. #. type: cindex
  10589. #: guix-git/doc/guix.texi:6244
  10590. #, no-wrap
  10591. msgid "GCC"
  10592. msgstr ""
  10593. #. type: cindex
  10594. #: guix-git/doc/guix.texi:6245
  10595. #, no-wrap
  10596. msgid "ld-wrapper"
  10597. msgstr ""
  10598. #. type: cindex
  10599. #: guix-git/doc/guix.texi:6246
  10600. #, no-wrap
  10601. msgid "linker wrapper"
  10602. msgstr ""
  10603. #. type: cindex
  10604. #: guix-git/doc/guix.texi:6247
  10605. #, fuzzy, no-wrap
  10606. msgid "toolchain, for C development"
  10607. msgstr "软件开发"
  10608. #. type: cindex
  10609. #: guix-git/doc/guix.texi:6248
  10610. #, no-wrap
  10611. msgid "toolchain, for Fortran development"
  10612. msgstr ""
  10613. #. type: Plain text
  10614. #: guix-git/doc/guix.texi:6255
  10615. 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."
  10616. msgstr ""
  10617. #. type: Plain text
  10618. #: guix-git/doc/guix.texi:6261
  10619. 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}."
  10620. msgstr ""
  10621. #. type: Plain text
  10622. #: guix-git/doc/guix.texi:6265
  10623. 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})."
  10624. msgstr ""
  10625. #. type: section
  10626. #: guix-git/doc/guix.texi:6268
  10627. #, fuzzy, no-wrap
  10628. msgid "Invoking @command{guix git authenticate}"
  10629. msgstr "调用@command{guix build}"
  10630. #. type: Plain text
  10631. #: guix-git/doc/guix.texi:6276
  10632. 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)."
  10633. msgstr ""
  10634. #. type: Plain text
  10635. #: guix-git/doc/guix.texi:6281
  10636. 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."
  10637. msgstr ""
  10638. #. type: example
  10639. #: guix-git/doc/guix.texi:6286
  10640. #, no-wrap
  10641. msgid "guix git authenticate @var{commit} @var{signer} [@var{options}@dots{}]\n"
  10642. msgstr ""
  10643. #. type: Plain text
  10644. #: guix-git/doc/guix.texi:6295
  10645. 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."
  10646. msgstr ""
  10647. #. type: item
  10648. #: guix-git/doc/guix.texi:6297
  10649. #, fuzzy, no-wrap
  10650. msgid "--repository=@var{directory}"
  10651. msgstr "--chroot-directory=@var{dir}"
  10652. #. type: itemx
  10653. #: guix-git/doc/guix.texi:6298
  10654. #, fuzzy, no-wrap
  10655. msgid "-r @var{directory}"
  10656. msgstr "状态文件夹"
  10657. #. type: table
  10658. #: guix-git/doc/guix.texi:6301
  10659. msgid "Open the Git repository in @var{directory} instead of the current directory."
  10660. msgstr ""
  10661. #. type: item
  10662. #: guix-git/doc/guix.texi:6302
  10663. #, no-wrap
  10664. msgid "--keyring=@var{reference}"
  10665. msgstr ""
  10666. #. type: itemx
  10667. #: guix-git/doc/guix.texi:6303
  10668. #, fuzzy, no-wrap
  10669. msgid "-k @var{reference}"
  10670. msgstr "-c @var{n}"
  10671. #. type: table
  10672. #: guix-git/doc/guix.texi:6309
  10673. 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}."
  10674. msgstr ""
  10675. #. type: item
  10676. #: guix-git/doc/guix.texi:6310
  10677. #, no-wrap
  10678. msgid "--stats"
  10679. msgstr ""
  10680. #. type: table
  10681. #: guix-git/doc/guix.texi:6312
  10682. msgid "Display commit signing statistics upon completion."
  10683. msgstr ""
  10684. #. type: item
  10685. #: guix-git/doc/guix.texi:6313
  10686. #, fuzzy, no-wrap
  10687. msgid "--cache-key=@var{key}"
  10688. msgstr "--cores=@var{n}"
  10689. #. type: table
  10690. #: guix-git/doc/guix.texi:6317
  10691. 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."
  10692. msgstr ""
  10693. #. type: item
  10694. #: guix-git/doc/guix.texi:6318
  10695. #, no-wrap
  10696. msgid "--historical-authorizations=@var{file}"
  10697. msgstr ""
  10698. #. type: table
  10699. #: guix-git/doc/guix.texi:6325
  10700. 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})."
  10701. msgstr ""
  10702. #. type: Plain text
  10703. #: guix-git/doc/guix.texi:6338
  10704. 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."
  10705. msgstr ""
  10706. #. type: Plain text
  10707. #: guix-git/doc/guix.texi:6344
  10708. 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."
  10709. msgstr ""
  10710. #. type: Plain text
  10711. #: guix-git/doc/guix.texi:6353
  10712. 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."
  10713. msgstr ""
  10714. #. type: Plain text
  10715. #: guix-git/doc/guix.texi:6356
  10716. msgid "This chapter describes all these APIs in turn, starting from high-level package definitions."
  10717. msgstr ""
  10718. #. type: menuentry
  10719. #: guix-git/doc/guix.texi:6369
  10720. #, fuzzy
  10721. msgid "Programming Guix in Guile"
  10722. msgstr "编程索引"
  10723. #. type: Plain text
  10724. #: guix-git/doc/guix.texi:6385
  10725. 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})."
  10726. msgstr ""
  10727. #. type: Plain text
  10728. #: guix-git/doc/guix.texi:6392
  10729. 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."
  10730. msgstr ""
  10731. #. type: cindex
  10732. #: guix-git/doc/guix.texi:6394
  10733. #, no-wrap
  10734. msgid "package module search path"
  10735. msgstr ""
  10736. #. type: Plain text
  10737. #: guix-git/doc/guix.texi:6403
  10738. 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:"
  10739. msgstr ""
  10740. #. type: enumerate
  10741. #: guix-git/doc/guix.texi:6410
  10742. 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."
  10743. msgstr ""
  10744. #. type: enumerate
  10745. #: guix-git/doc/guix.texi:6416
  10746. 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."
  10747. msgstr ""
  10748. #. type: Plain text
  10749. #: guix-git/doc/guix.texi:6419
  10750. msgid "@env{GUIX_PACKAGE_PATH} works similarly to other search path variables:"
  10751. msgstr ""
  10752. #. type: defvr
  10753. #: guix-git/doc/guix.texi:6420
  10754. #, no-wrap
  10755. msgid "{Environment Variable} GUIX_PACKAGE_PATH"
  10756. msgstr ""
  10757. #. type: defvr
  10758. #: guix-git/doc/guix.texi:6424
  10759. 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."
  10760. msgstr ""
  10761. #. type: Plain text
  10762. #: guix-git/doc/guix.texi:6432
  10763. 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}."
  10764. msgstr ""
  10765. #. type: Plain text
  10766. #: guix-git/doc/guix.texi:6440
  10767. 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:"
  10768. msgstr ""
  10769. #. type: lisp
  10770. #: guix-git/doc/guix.texi:6448
  10771. #, no-wrap
  10772. msgid ""
  10773. "(define-module (gnu packages hello)\n"
  10774. " #:use-module (guix packages)\n"
  10775. " #:use-module (guix download)\n"
  10776. " #:use-module (guix build-system gnu)\n"
  10777. " #:use-module (guix licenses)\n"
  10778. " #:use-module (gnu packages gawk))\n"
  10779. "\n"
  10780. msgstr ""
  10781. #. type: lisp
  10782. #: guix-git/doc/guix.texi:6467
  10783. #, no-wrap
  10784. msgid ""
  10785. "(define-public hello\n"
  10786. " (package\n"
  10787. " (name \"hello\")\n"
  10788. " (version \"2.10\")\n"
  10789. " (source (origin\n"
  10790. " (method url-fetch)\n"
  10791. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  10792. " \".tar.gz\"))\n"
  10793. " (sha256\n"
  10794. " (base32\n"
  10795. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  10796. " (build-system gnu-build-system)\n"
  10797. " (arguments '(#:configure-flags '(\"--enable-silent-rules\")))\n"
  10798. " (inputs `((\"gawk\" ,gawk)))\n"
  10799. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  10800. " (description \"Guess what GNU Hello prints!\")\n"
  10801. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  10802. " (license gpl3+)))\n"
  10803. msgstr ""
  10804. #. type: Plain text
  10805. #: guix-git/doc/guix.texi:6477
  10806. 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\"}."
  10807. msgstr ""
  10808. #. type: Plain text
  10809. #: guix-git/doc/guix.texi:6481
  10810. 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})."
  10811. msgstr ""
  10812. #. type: Plain text
  10813. #: guix-git/doc/guix.texi:6487
  10814. 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})."
  10815. msgstr ""
  10816. #. type: Plain text
  10817. #: guix-git/doc/guix.texi:6489
  10818. msgid "There are a few points worth noting in the above package definition:"
  10819. msgstr ""
  10820. #. type: itemize
  10821. #: guix-git/doc/guix.texi:6496
  10822. 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."
  10823. msgstr ""
  10824. #. type: itemize
  10825. #: guix-git/doc/guix.texi:6499
  10826. msgid "The @code{mirror://gnu} prefix instructs @code{url-fetch} to use one of the GNU mirrors defined in @code{(guix download)}."
  10827. msgstr ""
  10828. #. type: itemize
  10829. #: guix-git/doc/guix.texi:6506
  10830. 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})."
  10831. msgstr ""
  10832. #. type: cindex
  10833. #: guix-git/doc/guix.texi:6507
  10834. #, no-wrap
  10835. msgid "patches"
  10836. msgstr ""
  10837. #. type: itemize
  10838. #: guix-git/doc/guix.texi:6511
  10839. 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."
  10840. msgstr ""
  10841. #. type: cindex
  10842. #: guix-git/doc/guix.texi:6513
  10843. #, no-wrap
  10844. msgid "GNU Build System"
  10845. msgstr ""
  10846. #. type: itemize
  10847. #: guix-git/doc/guix.texi:6519
  10848. 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."
  10849. msgstr ""
  10850. #. type: itemize
  10851. #: guix-git/doc/guix.texi:6523
  10852. 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."
  10853. msgstr ""
  10854. #. type: itemize
  10855. #: guix-git/doc/guix.texi:6529
  10856. 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."
  10857. msgstr ""
  10858. #. type: findex
  10859. #: guix-git/doc/guix.texi:6530 guix-git/doc/guix.texi:6533
  10860. #, no-wrap
  10861. msgid "quote"
  10862. msgstr ""
  10863. #. type: cindex
  10864. #: guix-git/doc/guix.texi:6531
  10865. #, no-wrap
  10866. msgid "quoting"
  10867. msgstr ""
  10868. #. type: findex
  10869. #: guix-git/doc/guix.texi:6532
  10870. #, no-wrap
  10871. msgid "'"
  10872. msgstr ""
  10873. #. type: itemize
  10874. #: guix-git/doc/guix.texi:6541
  10875. 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})."
  10876. msgstr ""
  10877. #. type: itemize
  10878. #: guix-git/doc/guix.texi:6547
  10879. 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})."
  10880. msgstr ""
  10881. #. type: itemize
  10882. #: guix-git/doc/guix.texi:6553
  10883. 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."
  10884. msgstr ""
  10885. #. type: cindex
  10886. #: guix-git/doc/guix.texi:6554
  10887. #, no-wrap
  10888. msgid "backquote (quasiquote)"
  10889. msgstr ""
  10890. #. type: findex
  10891. #: guix-git/doc/guix.texi:6555
  10892. #, no-wrap
  10893. msgid "`"
  10894. msgstr ""
  10895. #. type: findex
  10896. #: guix-git/doc/guix.texi:6556
  10897. #, no-wrap
  10898. msgid "quasiquote"
  10899. msgstr ""
  10900. #. type: cindex
  10901. #: guix-git/doc/guix.texi:6557
  10902. #, no-wrap
  10903. msgid "comma (unquote)"
  10904. msgstr ""
  10905. #. type: findex
  10906. #: guix-git/doc/guix.texi:6558
  10907. #, no-wrap
  10908. msgid ","
  10909. msgstr ""
  10910. #. type: findex
  10911. #: guix-git/doc/guix.texi:6559
  10912. #, no-wrap
  10913. msgid "unquote"
  10914. msgstr ""
  10915. #. type: findex
  10916. #: guix-git/doc/guix.texi:6560
  10917. #, no-wrap
  10918. msgid ",@@"
  10919. msgstr ""
  10920. #. type: findex
  10921. #: guix-git/doc/guix.texi:6561
  10922. #, no-wrap
  10923. msgid "unquote-splicing"
  10924. msgstr ""
  10925. #. type: itemize
  10926. #: guix-git/doc/guix.texi:6567
  10927. 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})."
  10928. msgstr ""
  10929. #. type: itemize
  10930. #: guix-git/doc/guix.texi:6571
  10931. 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})."
  10932. msgstr ""
  10933. #. type: itemize
  10934. #: guix-git/doc/guix.texi:6575
  10935. 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."
  10936. msgstr ""
  10937. #. type: Plain text
  10938. #: guix-git/doc/guix.texi:6578
  10939. msgid "@xref{package Reference}, for a full description of possible fields."
  10940. msgstr ""
  10941. #. type: Plain text
  10942. #: guix-git/doc/guix.texi:6589
  10943. 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."
  10944. msgstr ""
  10945. #. type: vindex
  10946. #: guix-git/doc/guix.texi:6589
  10947. #, no-wrap
  10948. msgid "GUIX_PACKAGE_PATH"
  10949. msgstr ""
  10950. #. type: Plain text
  10951. #: guix-git/doc/guix.texi:6593
  10952. msgid "Lastly, @pxref{Channels}, for information on how to extend the distribution by adding your own package definitions in a ``channel''."
  10953. msgstr ""
  10954. #. type: Plain text
  10955. #: guix-git/doc/guix.texi:6597
  10956. 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})."
  10957. msgstr ""
  10958. #. type: Plain text
  10959. #: guix-git/doc/guix.texi:6603
  10960. 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})."
  10961. msgstr ""
  10962. #. type: deffn
  10963. #: guix-git/doc/guix.texi:6604
  10964. #, no-wrap
  10965. msgid "{Scheme Procedure} package-derivation @var{store} @var{package} [@var{system}]"
  10966. msgstr ""
  10967. #. type: deffn
  10968. #: guix-git/doc/guix.texi:6607
  10969. msgid "Return the @code{<derivation>} object of @var{package} for @var{system} (@pxref{Derivations})."
  10970. msgstr ""
  10971. #. type: deffn
  10972. #: guix-git/doc/guix.texi:6613
  10973. 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})."
  10974. msgstr ""
  10975. #. type: Plain text
  10976. #: guix-git/doc/guix.texi:6619
  10977. msgid "Similarly, it is possible to compute a derivation that cross-builds a package for some other system:"
  10978. msgstr ""
  10979. #. type: deffn
  10980. #: guix-git/doc/guix.texi:6620
  10981. #, no-wrap
  10982. msgid "{Scheme Procedure} package-cross-derivation @var{store} @"
  10983. msgstr ""
  10984. #. type: deffn
  10985. #: guix-git/doc/guix.texi:6624
  10986. msgid "@var{package} @var{target} [@var{system}] Return the @code{<derivation>} object of @var{package} cross-built from @var{system} to @var{target}."
  10987. msgstr ""
  10988. #. type: deffn
  10989. #: guix-git/doc/guix.texi:6628
  10990. 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})."
  10991. msgstr ""
  10992. #. type: Plain text
  10993. #: guix-git/doc/guix.texi:6632
  10994. msgid "Once you have package definitions, you can easily define @emph{variants} of those packages. @xref{Defining Package Variants}, for more on that."
  10995. msgstr ""
  10996. #. type: subsection
  10997. #: guix-git/doc/guix.texi:6640
  10998. #, no-wrap
  10999. msgid "@code{package} Reference"
  11000. msgstr ""
  11001. #. type: Plain text
  11002. #: guix-git/doc/guix.texi:6644
  11003. msgid "This section summarizes all the options available in @code{package} declarations (@pxref{Defining Packages})."
  11004. msgstr ""
  11005. #. type: deftp
  11006. #: guix-git/doc/guix.texi:6645
  11007. #, no-wrap
  11008. msgid "{Data Type} package"
  11009. msgstr ""
  11010. #. type: deftp
  11011. #: guix-git/doc/guix.texi:6647
  11012. msgid "This is the data type representing a package recipe."
  11013. msgstr ""
  11014. #. type: table
  11015. #: guix-git/doc/guix.texi:6651
  11016. msgid "The name of the package, as a string."
  11017. msgstr ""
  11018. #. type: code{#1}
  11019. #: guix-git/doc/guix.texi:6652
  11020. #, no-wrap
  11021. msgid "version"
  11022. msgstr ""
  11023. #. type: table
  11024. #: guix-git/doc/guix.texi:6654
  11025. msgid "The version of the package, as a string."
  11026. msgstr ""
  11027. #. type: code{#1}
  11028. #: guix-git/doc/guix.texi:6655 guix-git/doc/guix.texi:11958
  11029. #: guix-git/doc/guix.texi:14203 guix-git/doc/guix.texi:14706
  11030. #, no-wrap
  11031. msgid "source"
  11032. msgstr ""
  11033. #. type: table
  11034. #: guix-git/doc/guix.texi:6662
  11035. 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}})."
  11036. msgstr ""
  11037. #. type: code{#1}
  11038. #: guix-git/doc/guix.texi:6663
  11039. #, no-wrap
  11040. msgid "build-system"
  11041. msgstr ""
  11042. #. type: table
  11043. #: guix-git/doc/guix.texi:6666
  11044. msgid "The build system that should be used to build the package (@pxref{Build Systems})."
  11045. msgstr ""
  11046. #. type: item
  11047. #: guix-git/doc/guix.texi:6667 guix-git/doc/guix.texi:16669
  11048. #, no-wrap
  11049. msgid "@code{arguments} (default: @code{'()})"
  11050. msgstr ""
  11051. #. type: table
  11052. #: guix-git/doc/guix.texi:6670
  11053. msgid "The arguments that should be passed to the build system. This is a list, typically containing sequential keyword-value pairs."
  11054. msgstr ""
  11055. #. type: item
  11056. #: guix-git/doc/guix.texi:6671
  11057. #, no-wrap
  11058. msgid "@code{inputs} (default: @code{'()})"
  11059. msgstr ""
  11060. #. type: itemx
  11061. #: guix-git/doc/guix.texi:6672
  11062. #, no-wrap
  11063. msgid "@code{native-inputs} (default: @code{'()})"
  11064. msgstr ""
  11065. #. type: itemx
  11066. #: guix-git/doc/guix.texi:6673
  11067. #, no-wrap
  11068. msgid "@code{propagated-inputs} (default: @code{'()})"
  11069. msgstr ""
  11070. #. type: cindex
  11071. #: guix-git/doc/guix.texi:6674
  11072. #, no-wrap
  11073. msgid "inputs, of packages"
  11074. msgstr ""
  11075. #. type: table
  11076. #: guix-git/doc/guix.texi:6682
  11077. 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:"
  11078. msgstr ""
  11079. #. type: lisp
  11080. #: guix-git/doc/guix.texi:6687
  11081. #, no-wrap
  11082. msgid ""
  11083. "`((\"libffi\" ,libffi)\n"
  11084. " (\"libunistring\" ,libunistring)\n"
  11085. " (\"glib:bin\" ,glib \"bin\")) ;the \"bin\" output of Glib\n"
  11086. msgstr ""
  11087. #. type: cindex
  11088. #: guix-git/doc/guix.texi:6689
  11089. #, no-wrap
  11090. msgid "cross compilation, package dependencies"
  11091. msgstr ""
  11092. #. type: table
  11093. #: guix-git/doc/guix.texi:6695
  11094. 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."
  11095. msgstr ""
  11096. #. type: table
  11097. #: guix-git/doc/guix.texi:6700
  11098. 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})."
  11099. msgstr ""
  11100. #. type: anchor{#1}
  11101. #: guix-git/doc/guix.texi:6708
  11102. msgid "package-propagated-inputs"
  11103. msgstr ""
  11104. #. type: table
  11105. #: guix-git/doc/guix.texi:6708
  11106. 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)."
  11107. msgstr ""
  11108. #. type: table
  11109. #: guix-git/doc/guix.texi:6712
  11110. 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."
  11111. msgstr ""
  11112. #. type: table
  11113. #: guix-git/doc/guix.texi:6719
  11114. 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}."
  11115. msgstr ""
  11116. #. type: item
  11117. #: guix-git/doc/guix.texi:6720
  11118. #, no-wrap
  11119. msgid "@code{outputs} (default: @code{'(\"out\")})"
  11120. msgstr ""
  11121. #. type: table
  11122. #: guix-git/doc/guix.texi:6723
  11123. msgid "The list of output names of the package. @xref{Packages with Multiple Outputs}, for typical uses of additional outputs."
  11124. msgstr ""
  11125. #. type: item
  11126. #: guix-git/doc/guix.texi:6724
  11127. #, no-wrap
  11128. msgid "@code{native-search-paths} (default: @code{'()})"
  11129. msgstr ""
  11130. #. type: itemx
  11131. #: guix-git/doc/guix.texi:6725
  11132. #, no-wrap
  11133. msgid "@code{search-paths} (default: @code{'()})"
  11134. msgstr ""
  11135. #. type: table
  11136. #: guix-git/doc/guix.texi:6728
  11137. msgid "A list of @code{search-path-specification} objects describing search-path environment variables honored by the package."
  11138. msgstr ""
  11139. #. type: item
  11140. #: guix-git/doc/guix.texi:6729
  11141. #, no-wrap
  11142. msgid "@code{replacement} (default: @code{#f})"
  11143. msgstr ""
  11144. #. type: table
  11145. #: guix-git/doc/guix.texi:6733
  11146. 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."
  11147. msgstr ""
  11148. #. type: item
  11149. #: guix-git/doc/guix.texi:6734 guix-git/doc/guix.texi:11950
  11150. #, no-wrap
  11151. msgid "synopsis"
  11152. msgstr ""
  11153. #. type: table
  11154. #: guix-git/doc/guix.texi:6736
  11155. msgid "A one-line description of the package."
  11156. msgstr ""
  11157. #. type: code{#1}
  11158. #: guix-git/doc/guix.texi:6737 guix-git/doc/guix.texi:11951
  11159. #: guix-git/doc/guix.texi:33811 guix-git/doc/guix.texi:33962
  11160. #, no-wrap
  11161. msgid "description"
  11162. msgstr ""
  11163. #. type: table
  11164. #: guix-git/doc/guix.texi:6739
  11165. msgid "A more elaborate description of the package."
  11166. msgstr ""
  11167. #. type: code{#1}
  11168. #: guix-git/doc/guix.texi:6740
  11169. #, no-wrap
  11170. msgid "license"
  11171. msgstr ""
  11172. #. type: cindex
  11173. #: guix-git/doc/guix.texi:6741
  11174. #, no-wrap
  11175. msgid "license, of packages"
  11176. msgstr ""
  11177. #. type: table
  11178. #: guix-git/doc/guix.texi:6744
  11179. msgid "The license of the package; a value from @code{(guix licenses)}, or a list of such values."
  11180. msgstr ""
  11181. #. type: itemx
  11182. #: guix-git/doc/guix.texi:6745 guix-git/doc/guix.texi:11959
  11183. #, no-wrap
  11184. msgid "home-page"
  11185. msgstr ""
  11186. #. type: table
  11187. #: guix-git/doc/guix.texi:6747
  11188. msgid "The URL to the home-page of the package, as a string."
  11189. msgstr ""
  11190. #. type: item
  11191. #: guix-git/doc/guix.texi:6748
  11192. #, fuzzy, no-wrap
  11193. msgid "@code{supported-systems} (default: @code{%supported-systems})"
  11194. msgstr "@code{port}(默认值:@code{22})"
  11195. #. type: table
  11196. #: guix-git/doc/guix.texi:6751
  11197. msgid "The list of systems supported by the package, as strings of the form @code{architecture-kernel}, for example @code{\"x86_64-linux\"}."
  11198. msgstr ""
  11199. #. type: item
  11200. #: guix-git/doc/guix.texi:6752
  11201. #, no-wrap
  11202. msgid "@code{location} (default: source location of the @code{package} form)"
  11203. msgstr ""
  11204. #. type: table
  11205. #: guix-git/doc/guix.texi:6756
  11206. 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."
  11207. msgstr ""
  11208. #. type: deffn
  11209. #: guix-git/doc/guix.texi:6759
  11210. #, no-wrap
  11211. msgid "{Scheme Syntax} this-package"
  11212. msgstr ""
  11213. #. type: deffn
  11214. #: guix-git/doc/guix.texi:6762
  11215. msgid "When used in the @emph{lexical scope} of a package field definition, this identifier resolves to the package being defined."
  11216. msgstr ""
  11217. #. type: deffn
  11218. #: guix-git/doc/guix.texi:6765
  11219. msgid "The example below shows how to add a package as a native input of itself when cross-compiling:"
  11220. msgstr ""
  11221. #. type: lisp
  11222. #: guix-git/doc/guix.texi:6770
  11223. #, no-wrap
  11224. msgid ""
  11225. "(package\n"
  11226. " (name \"guile\")\n"
  11227. " ;; ...\n"
  11228. "\n"
  11229. msgstr ""
  11230. #. type: lisp
  11231. #: guix-git/doc/guix.texi:6776
  11232. #, no-wrap
  11233. msgid ""
  11234. " ;; When cross-compiled, Guile, for example, depends on\n"
  11235. " ;; a native version of itself. Add it here.\n"
  11236. " (native-inputs (if (%current-target-system)\n"
  11237. " `((\"self\" ,this-package))\n"
  11238. " '())))\n"
  11239. msgstr ""
  11240. #. type: deffn
  11241. #: guix-git/doc/guix.texi:6779
  11242. msgid "It is an error to refer to @code{this-package} outside a package definition."
  11243. msgstr ""
  11244. #. type: Plain text
  11245. #: guix-git/doc/guix.texi:6785
  11246. 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."
  11247. msgstr ""
  11248. #. type: cindex
  11249. #: guix-git/doc/guix.texi:6786
  11250. #, no-wrap
  11251. msgid "tool chain, choosing a package's tool chain"
  11252. msgstr ""
  11253. #. type: deffn
  11254. #: guix-git/doc/guix.texi:6787
  11255. #, no-wrap
  11256. msgid "{Scheme Procedure} package-with-c-toolchain @var{package} @var{toolchain}"
  11257. msgstr ""
  11258. #. type: deffn
  11259. #: guix-git/doc/guix.texi:6792
  11260. 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."
  11261. msgstr ""
  11262. #. type: deffn
  11263. #: guix-git/doc/guix.texi:6796
  11264. 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:"
  11265. msgstr ""
  11266. #. type: lisp
  11267. #: guix-git/doc/guix.texi:6800
  11268. #, no-wrap
  11269. msgid ""
  11270. "(let ((toolchain (specification->package \"gcc-toolchain@@10\")))\n"
  11271. " (package-with-c-toolchain hello `((\"toolchain\" ,toolchain))))\n"
  11272. msgstr ""
  11273. #. type: deffn
  11274. #: guix-git/doc/guix.texi:6808
  11275. 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."
  11276. msgstr ""
  11277. #. type: subsection
  11278. #: guix-git/doc/guix.texi:6811
  11279. #, no-wrap
  11280. msgid "@code{origin} Reference"
  11281. msgstr ""
  11282. #. type: Plain text
  11283. #: guix-git/doc/guix.texi:6819
  11284. 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."
  11285. msgstr ""
  11286. #. type: deftp
  11287. #: guix-git/doc/guix.texi:6820
  11288. #, no-wrap
  11289. msgid "{Data Type} origin"
  11290. msgstr ""
  11291. #. type: deftp
  11292. #: guix-git/doc/guix.texi:6822
  11293. msgid "This is the data type representing a source code origin."
  11294. msgstr ""
  11295. #. type: code{#1}
  11296. #: guix-git/doc/guix.texi:6824 guix-git/doc/guix.texi:24843
  11297. #, no-wrap
  11298. msgid "uri"
  11299. msgstr ""
  11300. #. type: table
  11301. #: guix-git/doc/guix.texi:6829
  11302. 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."
  11303. msgstr ""
  11304. #. type: cindex
  11305. #: guix-git/doc/guix.texi:6830
  11306. #, no-wrap
  11307. msgid "fixed-output derivations, for download"
  11308. msgstr ""
  11309. #. type: code{#1}
  11310. #: guix-git/doc/guix.texi:6831
  11311. #, no-wrap
  11312. msgid "method"
  11313. msgstr ""
  11314. #. type: table
  11315. #: guix-git/doc/guix.texi:6838
  11316. 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})."
  11317. msgstr ""
  11318. #. type: table
  11319. #: guix-git/doc/guix.texi:6842
  11320. 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)."
  11321. msgstr ""
  11322. #. type: code{#1}
  11323. #: guix-git/doc/guix.texi:6843
  11324. #, no-wrap
  11325. msgid "sha256"
  11326. msgstr ""
  11327. #. type: table
  11328. #: guix-git/doc/guix.texi:6847
  11329. 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."
  11330. msgstr ""
  11331. #. type: code{#1}
  11332. #: guix-git/doc/guix.texi:6848
  11333. #, no-wrap
  11334. msgid "hash"
  11335. msgstr ""
  11336. #. type: table
  11337. #: guix-git/doc/guix.texi:6851
  11338. msgid "The @code{content-hash} object of the source---see below for how to use @code{content-hash}."
  11339. msgstr ""
  11340. #. type: table
  11341. #: guix-git/doc/guix.texi:6855
  11342. msgid "You can obtain this information using @code{guix download} (@pxref{Invoking guix download}) or @code{guix hash} (@pxref{Invoking guix hash})."
  11343. msgstr ""
  11344. #. type: item
  11345. #: guix-git/doc/guix.texi:6856
  11346. #, no-wrap
  11347. msgid "@code{file-name} (default: @code{#f})"
  11348. msgstr ""
  11349. #. type: table
  11350. #: guix-git/doc/guix.texi:6862
  11351. 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."
  11352. msgstr ""
  11353. #. type: item
  11354. #: guix-git/doc/guix.texi:6863
  11355. #, no-wrap
  11356. msgid "@code{patches} (default: @code{'()})"
  11357. msgstr ""
  11358. #. type: table
  11359. #: guix-git/doc/guix.texi:6866
  11360. 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."
  11361. msgstr ""
  11362. #. type: table
  11363. #: guix-git/doc/guix.texi:6870
  11364. 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}."
  11365. msgstr ""
  11366. #. type: item
  11367. #: guix-git/doc/guix.texi:6871
  11368. #, no-wrap
  11369. msgid "@code{snippet} (default: @code{#f})"
  11370. msgstr ""
  11371. #. type: table
  11372. #: guix-git/doc/guix.texi:6875
  11373. 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."
  11374. msgstr ""
  11375. #. type: item
  11376. #: guix-git/doc/guix.texi:6876
  11377. #, no-wrap
  11378. msgid "@code{patch-flags} (default: @code{'(\"-p1\")})"
  11379. msgstr ""
  11380. #. type: table
  11381. #: guix-git/doc/guix.texi:6879
  11382. msgid "A list of command-line flags that should be passed to the @code{patch} command."
  11383. msgstr ""
  11384. #. type: item
  11385. #: guix-git/doc/guix.texi:6880
  11386. #, no-wrap
  11387. msgid "@code{patch-inputs} (default: @code{#f})"
  11388. msgstr ""
  11389. #. type: table
  11390. #: guix-git/doc/guix.texi:6884
  11391. 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."
  11392. msgstr ""
  11393. #. type: item
  11394. #: guix-git/doc/guix.texi:6885 guix-git/doc/guix.texi:24716
  11395. #, no-wrap
  11396. msgid "@code{modules} (default: @code{'()})"
  11397. msgstr ""
  11398. #. type: table
  11399. #: guix-git/doc/guix.texi:6888
  11400. msgid "A list of Guile modules that should be loaded during the patching process and while running the code in the @code{snippet} field."
  11401. msgstr ""
  11402. #. type: item
  11403. #: guix-git/doc/guix.texi:6889
  11404. #, no-wrap
  11405. msgid "@code{patch-guile} (default: @code{#f})"
  11406. msgstr ""
  11407. #. type: table
  11408. #: guix-git/doc/guix.texi:6892
  11409. msgid "The Guile package that should be used in the patching process. When this is @code{#f}, a sensible default is used."
  11410. msgstr ""
  11411. #. type: deftp
  11412. #: guix-git/doc/guix.texi:6895
  11413. #, no-wrap
  11414. msgid "{Data Type} content-hash @var{value} [@var{algorithm}]"
  11415. msgstr ""
  11416. #. type: deftp
  11417. #: guix-git/doc/guix.texi:6899
  11418. 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}."
  11419. msgstr ""
  11420. #. type: deftp
  11421. #: guix-git/doc/guix.texi:6902
  11422. msgid "@var{value} can be a literal string, in which case it is base32-decoded, or it can be a bytevector."
  11423. msgstr ""
  11424. #. type: deftp
  11425. #: guix-git/doc/guix.texi:6904
  11426. #, fuzzy
  11427. msgid "The following forms are all equivalent:"
  11428. msgstr "这些依赖是可选的:"
  11429. #. type: lisp
  11430. #: guix-git/doc/guix.texi:6913
  11431. #, no-wrap
  11432. msgid ""
  11433. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\")\n"
  11434. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"\n"
  11435. " sha256)\n"
  11436. "(content-hash (base32\n"
  11437. " \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"))\n"
  11438. "(content-hash (base64 \"kkb+RPaP7uyMZmu4eXPVkM4BN8yhRd8BTHLslb6f/Rc=\")\n"
  11439. " sha256)\n"
  11440. msgstr ""
  11441. #. type: deftp
  11442. #: guix-git/doc/guix.texi:6918
  11443. 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}."
  11444. msgstr ""
  11445. #. type: Plain text
  11446. #: guix-git/doc/guix.texi:6924
  11447. 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."
  11448. msgstr ""
  11449. #. type: deffn
  11450. #: guix-git/doc/guix.texi:6925
  11451. #, no-wrap
  11452. msgid "{Scheme Procedure} url-fetch @var{url} @var{hash-algo} @var{hash} @"
  11453. msgstr ""
  11454. #. type: deffn
  11455. #: guix-git/doc/guix.texi:6933
  11456. 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."
  11457. msgstr ""
  11458. #. type: deffn
  11459. #: guix-git/doc/guix.texi:6936
  11460. 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}."
  11461. msgstr ""
  11462. #. type: deffn
  11463. #: guix-git/doc/guix.texi:6939
  11464. msgid "Alternatively, when URL starts with @code{file://}, return the corresponding file name in the store."
  11465. msgstr ""
  11466. #. type: Plain text
  11467. #: guix-git/doc/guix.texi:6945
  11468. 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."
  11469. msgstr ""
  11470. #. type: deffn
  11471. #: guix-git/doc/guix.texi:6946
  11472. #, no-wrap
  11473. msgid "{Scheme Procedure} git-fetch @var{ref} @var{hash-algo} @var{hash}"
  11474. msgstr ""
  11475. #. type: deffn
  11476. #: guix-git/doc/guix.texi:6951
  11477. 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}."
  11478. msgstr ""
  11479. #. type: deftp
  11480. #: guix-git/doc/guix.texi:6953
  11481. #, fuzzy, no-wrap
  11482. msgid "{Data Type} git-reference"
  11483. msgstr "{数据类型} build-machine"
  11484. #. type: deftp
  11485. #: guix-git/doc/guix.texi:6956
  11486. msgid "This data type represents a Git reference for @code{git-fetch} to retrieve."
  11487. msgstr ""
  11488. #. type: code{#1}
  11489. #: guix-git/doc/guix.texi:6958 guix-git/doc/guix.texi:22478
  11490. #, no-wrap
  11491. msgid "url"
  11492. msgstr ""
  11493. #. type: table
  11494. #: guix-git/doc/guix.texi:6960
  11495. msgid "The URL of the Git repository to clone."
  11496. msgstr ""
  11497. #. type: code{#1}
  11498. #: guix-git/doc/guix.texi:6961
  11499. #, no-wrap
  11500. msgid "commit"
  11501. msgstr ""
  11502. #. type: table
  11503. #: guix-git/doc/guix.texi:6965
  11504. 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."
  11505. msgstr ""
  11506. #. type: item
  11507. #: guix-git/doc/guix.texi:6966
  11508. #, fuzzy, no-wrap
  11509. msgid "@code{recursive?} (default: @code{#f})"
  11510. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  11511. #. type: table
  11512. #: guix-git/doc/guix.texi:6968
  11513. msgid "This Boolean indicates whether to recursively fetch Git sub-modules."
  11514. msgstr ""
  11515. #. type: deftp
  11516. #: guix-git/doc/guix.texi:6972
  11517. msgid "The example below denotes the @code{v2.10} tag of the GNU@tie{}Hello repository:"
  11518. msgstr ""
  11519. #. type: lisp
  11520. #: guix-git/doc/guix.texi:6977
  11521. #, fuzzy, no-wrap
  11522. msgid ""
  11523. "(git-reference\n"
  11524. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  11525. " (commit \"v2.10\"))\n"
  11526. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  11527. #. type: deftp
  11528. #: guix-git/doc/guix.texi:6981
  11529. msgid "This is equivalent to the reference below, which explicitly names the commit:"
  11530. msgstr ""
  11531. #. type: lisp
  11532. #: guix-git/doc/guix.texi:6986
  11533. #, no-wrap
  11534. msgid ""
  11535. "(git-reference\n"
  11536. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  11537. " (commit \"dc7dc56a00e48fe6f231a58f6537139fe2908fb9\"))\n"
  11538. msgstr ""
  11539. #. type: Plain text
  11540. #: guix-git/doc/guix.texi:6992
  11541. 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."
  11542. msgstr ""
  11543. #. type: deffn
  11544. #: guix-git/doc/guix.texi:6993
  11545. #, no-wrap
  11546. msgid "{Scheme Procedure} hg-fetch @var{ref} @var{hash-algo} @var{hash} @"
  11547. msgstr ""
  11548. #. type: deffn
  11549. #: guix-git/doc/guix.texi:6999
  11550. 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}."
  11551. msgstr ""
  11552. #. type: cindex
  11553. #: guix-git/doc/guix.texi:7004
  11554. #, fuzzy, no-wrap
  11555. msgid "customizing packages"
  11556. msgstr "定制软件包"
  11557. #. type: cindex
  11558. #: guix-git/doc/guix.texi:7005
  11559. #, fuzzy, no-wrap
  11560. msgid "variants, of packages"
  11561. msgstr "创建软件包的变体。"
  11562. #. type: Plain text
  11563. #: guix-git/doc/guix.texi:7015
  11564. 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!"
  11565. msgstr ""
  11566. #. type: cindex
  11567. #: guix-git/doc/guix.texi:7016
  11568. #, fuzzy, no-wrap
  11569. msgid "inherit, for package definitions"
  11570. msgstr "从软件包定义里寻找错误。"
  11571. #. type: Plain text
  11572. #: guix-git/doc/guix.texi:7023
  11573. 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."
  11574. msgstr ""
  11575. #. type: Plain text
  11576. #: guix-git/doc/guix.texi:7028
  11577. 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!):"
  11578. msgstr ""
  11579. #. type: lisp
  11580. #: guix-git/doc/guix.texi:7031
  11581. #, no-wrap
  11582. msgid ""
  11583. "(use-modules (gnu packages base)) ;for 'hello'\n"
  11584. "\n"
  11585. msgstr ""
  11586. #. type: lisp
  11587. #: guix-git/doc/guix.texi:7043
  11588. #, no-wrap
  11589. msgid ""
  11590. "(define hello-2.2\n"
  11591. " (package\n"
  11592. " (inherit hello)\n"
  11593. " (version \"2.2\")\n"
  11594. " (source (origin\n"
  11595. " (method url-fetch)\n"
  11596. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  11597. " \".tar.gz\"))\n"
  11598. " (sha256\n"
  11599. " (base32\n"
  11600. " \"0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9\"))))))\n"
  11601. msgstr ""
  11602. #. type: Plain text
  11603. #: guix-git/doc/guix.texi:7052
  11604. 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."
  11605. msgstr ""
  11606. #. type: Plain text
  11607. #: guix-git/doc/guix.texi:7058
  11608. 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:"
  11609. msgstr ""
  11610. #. type: lisp
  11611. #: guix-git/doc/guix.texi:7062
  11612. #, no-wrap
  11613. msgid ""
  11614. "(use-modules (gnu packages gdb) ;for 'gdb'\n"
  11615. " (srfi srfi-1)) ;for 'alist-delete'\n"
  11616. "\n"
  11617. msgstr ""
  11618. #. type: lisp
  11619. #: guix-git/doc/guix.texi:7068
  11620. #, no-wrap
  11621. msgid ""
  11622. "(define gdb-sans-guile\n"
  11623. " (package\n"
  11624. " (inherit gdb)\n"
  11625. " (inputs (alist-delete \"guile\"\n"
  11626. " (package-inputs gdb)))))\n"
  11627. msgstr ""
  11628. #. type: Plain text
  11629. #: guix-git/doc/guix.texi:7074
  11630. 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})."
  11631. msgstr ""
  11632. #. type: Plain text
  11633. #: guix-git/doc/guix.texi:7082
  11634. 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:"
  11635. msgstr ""
  11636. #. type: lisp
  11637. #: guix-git/doc/guix.texi:7093
  11638. #, no-wrap
  11639. msgid ""
  11640. "(define (make-lua-socket name lua)\n"
  11641. " ;; Return a luasocket package built with LUA.\n"
  11642. " (package\n"
  11643. " (name name)\n"
  11644. " (version \"3.0\")\n"
  11645. " ;; several fields omitted\n"
  11646. " (inputs\n"
  11647. " `((\"lua\" ,lua)))\n"
  11648. " (synopsis \"Socket library for Lua\")))\n"
  11649. "\n"
  11650. msgstr ""
  11651. #. type: lisp
  11652. #: guix-git/doc/guix.texi:7096
  11653. #, no-wrap
  11654. msgid ""
  11655. "(define-public lua5.1-socket\n"
  11656. " (make-lua-socket \"lua5.1-socket\" lua-5.1))\n"
  11657. "\n"
  11658. msgstr ""
  11659. #. type: lisp
  11660. #: guix-git/doc/guix.texi:7099
  11661. #, no-wrap
  11662. msgid ""
  11663. "(define-public lua5.2-socket\n"
  11664. " (make-lua-socket \"lua5.2-socket\" lua-5.2))\n"
  11665. msgstr ""
  11666. #. type: Plain text
  11667. #: guix-git/doc/guix.texi:7107
  11668. 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})."
  11669. msgstr ""
  11670. #. type: cindex
  11671. #: guix-git/doc/guix.texi:7108
  11672. #, no-wrap
  11673. msgid "package transformations"
  11674. msgstr ""
  11675. #. type: Plain text
  11676. #: guix-git/doc/guix.texi:7113
  11677. 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}):"
  11678. msgstr ""
  11679. #. type: deffn
  11680. #: guix-git/doc/guix.texi:7114
  11681. #, no-wrap
  11682. msgid "{Scheme Procedure} options->transformation @var{opts}"
  11683. msgstr ""
  11684. #. type: deffn
  11685. #: guix-git/doc/guix.texi:7118
  11686. 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:"
  11687. msgstr ""
  11688. #. type: lisp
  11689. #: guix-git/doc/guix.texi:7122
  11690. #, no-wrap
  11691. msgid ""
  11692. "((with-branch . \"guile-gcrypt=master\")\n"
  11693. " (without-tests . \"libgcrypt\"))\n"
  11694. msgstr ""
  11695. #. type: deffn
  11696. #: guix-git/doc/guix.texi:7126
  11697. msgid "Each symbol names a transformation and the corresponding string is an argument to that transformation."
  11698. msgstr ""
  11699. #. type: Plain text
  11700. #: guix-git/doc/guix.texi:7129
  11701. msgid "For instance, a manifest equivalent to this command:"
  11702. msgstr ""
  11703. #. type: example
  11704. #: guix-git/doc/guix.texi:7134
  11705. #, no-wrap
  11706. msgid ""
  11707. "guix build guix \\\n"
  11708. " --with-branch=guile-gcrypt=master \\\n"
  11709. " --with-debug-info=zlib\n"
  11710. msgstr ""
  11711. #. type: Plain text
  11712. #: guix-git/doc/guix.texi:7138
  11713. msgid "... would look like this:"
  11714. msgstr ""
  11715. #. type: lisp
  11716. #: guix-git/doc/guix.texi:7141
  11717. #, no-wrap
  11718. msgid ""
  11719. "(use-modules (guix transformations))\n"
  11720. "\n"
  11721. msgstr ""
  11722. #. type: lisp
  11723. #: guix-git/doc/guix.texi:7147
  11724. #, no-wrap
  11725. msgid ""
  11726. "(define transform\n"
  11727. " ;; The package transformation procedure.\n"
  11728. " (options->transformation\n"
  11729. " '((with-branch . \"guile-gcrypt=master\")\n"
  11730. " (with-debug-info . \"zlib\"))))\n"
  11731. "\n"
  11732. msgstr ""
  11733. #. type: lisp
  11734. #: guix-git/doc/guix.texi:7150
  11735. #, no-wrap
  11736. msgid ""
  11737. "(packages->manifest\n"
  11738. " (list (transform (specification->package \"guix\"))))\n"
  11739. msgstr ""
  11740. #. type: cindex
  11741. #: guix-git/doc/guix.texi:7152
  11742. #, no-wrap
  11743. msgid "input rewriting"
  11744. msgstr ""
  11745. #. type: cindex
  11746. #: guix-git/doc/guix.texi:7153
  11747. #, no-wrap
  11748. msgid "dependency graph rewriting"
  11749. msgstr ""
  11750. #. type: Plain text
  11751. #: guix-git/doc/guix.texi:7160
  11752. 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."
  11753. msgstr ""
  11754. #. type: Plain text
  11755. #: guix-git/doc/guix.texi:7164
  11756. 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."
  11757. msgstr ""
  11758. #. type: deffn
  11759. #: guix-git/doc/guix.texi:7165
  11760. #, no-wrap
  11761. msgid "{Scheme Procedure} package-input-rewriting @var{replacements} @"
  11762. msgstr ""
  11763. #. type: deffn
  11764. #: guix-git/doc/guix.texi:7172
  11765. 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."
  11766. msgstr ""
  11767. #. type: deffn
  11768. #: guix-git/doc/guix.texi:7175
  11769. msgid "Optionally, @var{rewrite-name} is a one-argument procedure that takes the name of a package and returns its new name after rewrite."
  11770. msgstr ""
  11771. #. type: table
  11772. #: guix-git/doc/guix.texi:7179 guix-git/doc/guix.texi:10505
  11773. msgid "Consider this example:"
  11774. msgstr ""
  11775. #. type: lisp
  11776. #: guix-git/doc/guix.texi:7185
  11777. #, no-wrap
  11778. msgid ""
  11779. "(define libressl-instead-of-openssl\n"
  11780. " ;; This is a procedure to replace OPENSSL by LIBRESSL,\n"
  11781. " ;; recursively.\n"
  11782. " (package-input-rewriting `((,openssl . ,libressl))))\n"
  11783. "\n"
  11784. msgstr ""
  11785. #. type: lisp
  11786. #: guix-git/doc/guix.texi:7188
  11787. #, no-wrap
  11788. msgid ""
  11789. "(define git-with-libressl\n"
  11790. " (libressl-instead-of-openssl git))\n"
  11791. msgstr ""
  11792. #. type: Plain text
  11793. #: guix-git/doc/guix.texi:7196
  11794. 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}})."
  11795. msgstr ""
  11796. #. type: Plain text
  11797. #: guix-git/doc/guix.texi:7199
  11798. msgid "The following variant of @code{package-input-rewriting} can match packages to be replaced by name rather than by identity."
  11799. msgstr ""
  11800. #. type: deffn
  11801. #: guix-git/doc/guix.texi:7200
  11802. #, no-wrap
  11803. msgid "{Scheme Procedure} package-input-rewriting/spec @var{replacements} [#:deep? #t]"
  11804. msgstr ""
  11805. #. type: deffn
  11806. #: guix-git/doc/guix.texi:7207
  11807. 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."
  11808. msgstr ""
  11809. #. type: Plain text
  11810. #: guix-git/doc/guix.texi:7210
  11811. msgid "The example above could be rewritten this way:"
  11812. msgstr ""
  11813. #. type: lisp
  11814. #: guix-git/doc/guix.texi:7215
  11815. #, no-wrap
  11816. msgid ""
  11817. "(define libressl-instead-of-openssl\n"
  11818. " ;; Replace all the packages called \"openssl\" with LibreSSL.\n"
  11819. " (package-input-rewriting/spec `((\"openssl\" . ,(const libressl)))))\n"
  11820. msgstr ""
  11821. #. type: Plain text
  11822. #: guix-git/doc/guix.texi:7220
  11823. 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."
  11824. msgstr ""
  11825. #. type: Plain text
  11826. #: guix-git/doc/guix.texi:7224
  11827. msgid "A more generic procedure to rewrite a package dependency graph is @code{package-mapping}: it supports arbitrary changes to nodes in the graph."
  11828. msgstr ""
  11829. #. type: deffn
  11830. #: guix-git/doc/guix.texi:7225
  11831. #, no-wrap
  11832. msgid "{Scheme Procedure} package-mapping @var{proc} [@var{cut?}] [#:deep? #f]"
  11833. msgstr ""
  11834. #. type: deffn
  11835. #: guix-git/doc/guix.texi:7230
  11836. 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."
  11837. msgstr ""
  11838. #. type: cindex
  11839. #: guix-git/doc/guix.texi:7236
  11840. #, no-wrap
  11841. msgid "build system"
  11842. msgstr ""
  11843. #. type: Plain text
  11844. #: guix-git/doc/guix.texi:7241
  11845. 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."
  11846. msgstr ""
  11847. #. type: Plain text
  11848. #: guix-git/doc/guix.texi:7245
  11849. 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."
  11850. msgstr ""
  11851. #. type: cindex
  11852. #: guix-git/doc/guix.texi:7246
  11853. #, no-wrap
  11854. msgid "bag (low-level package representation)"
  11855. msgstr ""
  11856. #. type: Plain text
  11857. #: guix-git/doc/guix.texi:7256
  11858. 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}})."
  11859. msgstr ""
  11860. #. type: Plain text
  11861. #: guix-git/doc/guix.texi:7264
  11862. 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})."
  11863. msgstr ""
  11864. #. type: Plain text
  11865. #: guix-git/doc/guix.texi:7268
  11866. 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."
  11867. msgstr ""
  11868. #. type: defvr
  11869. #: guix-git/doc/guix.texi:7269
  11870. #, no-wrap
  11871. msgid "{Scheme Variable} gnu-build-system"
  11872. msgstr ""
  11873. #. type: defvr
  11874. #: guix-git/doc/guix.texi:7273
  11875. msgid "@code{gnu-build-system} represents the GNU Build System, and variants thereof (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards})."
  11876. msgstr ""
  11877. #. type: cindex
  11878. #: guix-git/doc/guix.texi:7274 guix-git/doc/guix.texi:8200
  11879. #: guix-git/doc/guix.texi:8655
  11880. #, no-wrap
  11881. msgid "build phases"
  11882. msgstr ""
  11883. #. type: defvr
  11884. #: guix-git/doc/guix.texi:7281
  11885. 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."
  11886. msgstr ""
  11887. #. type: defvr
  11888. #: guix-git/doc/guix.texi:7288
  11889. 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."
  11890. msgstr ""
  11891. #. type: defvr
  11892. #: guix-git/doc/guix.texi:7292
  11893. 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:"
  11894. msgstr ""
  11895. #. type: item
  11896. #: guix-git/doc/guix.texi:7294
  11897. #, no-wrap
  11898. msgid "#:phases"
  11899. msgstr ""
  11900. #. type: table
  11901. #: guix-git/doc/guix.texi:7297
  11902. msgid "This argument specifies build-side code that evaluates to an alist of build phases. @xref{Build Phases}, for more information."
  11903. msgstr ""
  11904. #. type: item
  11905. #: guix-git/doc/guix.texi:7298
  11906. #, fuzzy, no-wrap
  11907. msgid "#:configure-flags"
  11908. msgstr "系统配置"
  11909. #. type: table
  11910. #: guix-git/doc/guix.texi:7301
  11911. msgid "This is a list of flags (strings) passed to the @command{configure} script. @xref{Defining Packages}, for an example."
  11912. msgstr ""
  11913. #. type: item
  11914. #: guix-git/doc/guix.texi:7302
  11915. #, no-wrap
  11916. msgid "#:make-flags"
  11917. msgstr ""
  11918. #. type: table
  11919. #: guix-git/doc/guix.texi:7306
  11920. msgid "This list of strings contains flags passed as arguments to @command{make} invocations in the @code{build}, @code{check}, and @code{install} phases."
  11921. msgstr ""
  11922. #. type: item
  11923. #: guix-git/doc/guix.texi:7307
  11924. #, no-wrap
  11925. msgid "#:out-of-source?"
  11926. msgstr ""
  11927. #. type: table
  11928. #: guix-git/doc/guix.texi:7310
  11929. msgid "This Boolean, @code{#f} by default, indicates whether to run builds in a build directory separate from the source tree."
  11930. msgstr ""
  11931. #. type: table
  11932. #: guix-git/doc/guix.texi:7315
  11933. 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}."
  11934. msgstr ""
  11935. #. type: item
  11936. #: guix-git/doc/guix.texi:7316
  11937. #, no-wrap
  11938. msgid "#:tests?"
  11939. msgstr ""
  11940. #. type: table
  11941. #: guix-git/doc/guix.texi:7319
  11942. msgid "This Boolean, @code{#t} by default, indicates whether the @code{check} phase should run the package's test suite."
  11943. msgstr ""
  11944. #. type: item
  11945. #: guix-git/doc/guix.texi:7320
  11946. #, no-wrap
  11947. msgid "#:test-target"
  11948. msgstr ""
  11949. #. type: table
  11950. #: guix-git/doc/guix.texi:7323
  11951. msgid "This string, @code{\"check\"} by default, gives the name of the makefile target used by the @code{check} phase."
  11952. msgstr ""
  11953. #. type: item
  11954. #: guix-git/doc/guix.texi:7324
  11955. #, no-wrap
  11956. msgid "#:parallel-build?"
  11957. msgstr ""
  11958. #. type: itemx
  11959. #: guix-git/doc/guix.texi:7325
  11960. #, no-wrap
  11961. msgid "#:parallel-tests?"
  11962. msgstr ""
  11963. #. type: table
  11964. #: guix-git/doc/guix.texi:7332
  11965. 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}})."
  11966. msgstr ""
  11967. #. type: cindex
  11968. #: guix-git/doc/guix.texi:7333
  11969. #, no-wrap
  11970. msgid "RUNPATH, validation"
  11971. msgstr ""
  11972. #. type: item
  11973. #: guix-git/doc/guix.texi:7334
  11974. #, no-wrap
  11975. msgid "#:validate-runpath?"
  11976. msgstr ""
  11977. #. type: table
  11978. #: guix-git/doc/guix.texi:7338
  11979. 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."
  11980. msgstr ""
  11981. #. type: table
  11982. #: guix-git/doc/guix.texi:7346
  11983. msgid "This validation step consists in making sure that all the shared libraries needed by an ELF binaries, 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}."
  11984. msgstr ""
  11985. #. type: item
  11986. #: guix-git/doc/guix.texi:7347
  11987. #, fuzzy, no-wrap
  11988. msgid "#:substitutable?"
  11989. msgstr "substitutes"
  11990. #. type: table
  11991. #: guix-git/doc/guix.texi:7351
  11992. 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})."
  11993. msgstr ""
  11994. #. type: item
  11995. #: guix-git/doc/guix.texi:7352
  11996. #, no-wrap
  11997. msgid "#:allowed-references"
  11998. msgstr ""
  11999. #. type: itemx
  12000. #: guix-git/doc/guix.texi:7353
  12001. #, no-wrap
  12002. msgid "#:disallowed-references"
  12003. msgstr ""
  12004. #. type: table
  12005. #: guix-git/doc/guix.texi:7358
  12006. 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."
  12007. msgstr ""
  12008. #. type: table
  12009. #: guix-git/doc/guix.texi:7363
  12010. 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})."
  12011. msgstr ""
  12012. #. type: defvr
  12013. #: guix-git/doc/guix.texi:7366
  12014. msgid "Most other build systems support these keyword arguments."
  12015. msgstr ""
  12016. #. type: Plain text
  12017. #: guix-git/doc/guix.texi:7373
  12018. 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."
  12019. msgstr ""
  12020. #. type: defvr
  12021. #: guix-git/doc/guix.texi:7374
  12022. #, no-wrap
  12023. msgid "{Scheme Variable} ant-build-system"
  12024. msgstr ""
  12025. #. type: defvr
  12026. #: guix-git/doc/guix.texi:7378
  12027. 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}."
  12028. msgstr ""
  12029. #. type: defvr
  12030. #: guix-git/doc/guix.texi:7383
  12031. 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."
  12032. msgstr ""
  12033. #. type: defvr
  12034. #: guix-git/doc/guix.texi:7389
  12035. 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''."
  12036. msgstr ""
  12037. #. type: defvr
  12038. #: guix-git/doc/guix.texi:7397
  12039. 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."
  12040. msgstr ""
  12041. #. type: defvr
  12042. #: guix-git/doc/guix.texi:7401
  12043. 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."
  12044. msgstr ""
  12045. #. type: defvr
  12046. #: guix-git/doc/guix.texi:7404
  12047. #, no-wrap
  12048. msgid "{Scheme Variable} android-ndk-build-system"
  12049. msgstr ""
  12050. #. type: cindex
  12051. #: guix-git/doc/guix.texi:7405
  12052. #, no-wrap
  12053. msgid "Android distribution"
  12054. msgstr ""
  12055. #. type: cindex
  12056. #: guix-git/doc/guix.texi:7406
  12057. #, no-wrap
  12058. msgid "Android NDK build system"
  12059. msgstr ""
  12060. #. type: defvr
  12061. #: guix-git/doc/guix.texi:7410
  12062. 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."
  12063. msgstr ""
  12064. #. type: defvr
  12065. #: guix-git/doc/guix.texi:7414
  12066. 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."
  12067. msgstr ""
  12068. #. type: defvr
  12069. #: guix-git/doc/guix.texi:7417
  12070. msgid "It's also assumed that the union of all the dependencies of a package has no conflicting files."
  12071. msgstr ""
  12072. #. type: defvr
  12073. #: guix-git/doc/guix.texi:7420
  12074. msgid "For the time being, cross-compilation is not supported - so right now the libraries and header files are assumed to be host tools."
  12075. msgstr ""
  12076. #. type: defvr
  12077. #: guix-git/doc/guix.texi:7423
  12078. #, no-wrap
  12079. msgid "{Scheme Variable} asdf-build-system/source"
  12080. msgstr ""
  12081. #. type: defvrx
  12082. #: guix-git/doc/guix.texi:7424
  12083. #, no-wrap
  12084. msgid "{Scheme Variable} asdf-build-system/sbcl"
  12085. msgstr ""
  12086. #. type: defvrx
  12087. #: guix-git/doc/guix.texi:7425
  12088. #, no-wrap
  12089. msgid "{Scheme Variable} asdf-build-system/ecl"
  12090. msgstr ""
  12091. #. type: defvr
  12092. #: guix-git/doc/guix.texi:7431
  12093. 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."
  12094. msgstr ""
  12095. #. type: defvr
  12096. #: guix-git/doc/guix.texi:7438
  12097. 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."
  12098. msgstr ""
  12099. #. type: defvr
  12100. #: guix-git/doc/guix.texi:7442
  12101. 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}."
  12102. msgstr ""
  12103. #. type: defvr
  12104. #: guix-git/doc/guix.texi:7446
  12105. 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."
  12106. msgstr ""
  12107. #. type: defvr
  12108. #: guix-git/doc/guix.texi:7454
  12109. 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."
  12110. msgstr ""
  12111. #. type: defvr
  12112. #: guix-git/doc/guix.texi:7463
  12113. 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."
  12114. msgstr ""
  12115. #. type: defvr
  12116. #: guix-git/doc/guix.texi:7468
  12117. 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."
  12118. msgstr ""
  12119. #. type: defvr
  12120. #: guix-git/doc/guix.texi:7471
  12121. #, no-wrap
  12122. msgid "{Scheme Variable} cargo-build-system"
  12123. msgstr ""
  12124. #. type: cindex
  12125. #: guix-git/doc/guix.texi:7472
  12126. #, no-wrap
  12127. msgid "Rust programming language"
  12128. msgstr ""
  12129. #. type: cindex
  12130. #: guix-git/doc/guix.texi:7473
  12131. #, no-wrap
  12132. msgid "Cargo (Rust build system)"
  12133. msgstr ""
  12134. #. type: defvr
  12135. #: guix-git/doc/guix.texi:7477
  12136. 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}."
  12137. msgstr ""
  12138. #. type: defvr
  12139. #: guix-git/doc/guix.texi:7480
  12140. 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."
  12141. msgstr ""
  12142. #. type: defvr
  12143. #: guix-git/doc/guix.texi:7490
  12144. 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."
  12145. msgstr ""
  12146. #. type: defvr
  12147. #: guix-git/doc/guix.texi:7500
  12148. 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."
  12149. msgstr ""
  12150. #. type: defvr
  12151. #: guix-git/doc/guix.texi:7502
  12152. #, no-wrap
  12153. msgid "{Scheme Variable} chicken-build-system"
  12154. msgstr ""
  12155. #. type: defvr
  12156. #: guix-git/doc/guix.texi:7507
  12157. 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."
  12158. msgstr ""
  12159. #. type: defvr
  12160. #: guix-git/doc/guix.texi:7510
  12161. msgid "This build system adds @code{chicken} to the package inputs, as well as the packages of @code{gnu-build-system}."
  12162. msgstr ""
  12163. #. type: defvr
  12164. #: guix-git/doc/guix.texi:7514
  12165. 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."
  12166. msgstr ""
  12167. #. type: defvr
  12168. #: guix-git/doc/guix.texi:7516
  12169. msgid "For example, if you are packaging the @code{srfi-1} egg:"
  12170. msgstr ""
  12171. #. type: lisp
  12172. #: guix-git/doc/guix.texi:7519
  12173. #, no-wrap
  12174. msgid "(arguments '(#:egg-name \"srfi-1\"))\n"
  12175. msgstr ""
  12176. #. type: defvr
  12177. #: guix-git/doc/guix.texi:7524
  12178. 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."
  12179. msgstr ""
  12180. #. type: defvr
  12181. #: guix-git/doc/guix.texi:7526
  12182. #, no-wrap
  12183. msgid "{Scheme Variable} copy-build-system"
  12184. msgstr ""
  12185. #. type: defvr
  12186. #: guix-git/doc/guix.texi:7530
  12187. 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."
  12188. msgstr ""
  12189. #. type: defvr
  12190. #: guix-git/doc/guix.texi:7535
  12191. 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}."
  12192. msgstr ""
  12193. #. type: defvr
  12194. #: guix-git/doc/guix.texi:7540
  12195. 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."
  12196. msgstr ""
  12197. #. type: item
  12198. #: guix-git/doc/guix.texi:7542
  12199. #, no-wrap
  12200. msgid "When @var{source} matches a file or directory without trailing slash, install it to @var{target}."
  12201. msgstr ""
  12202. #. type: item
  12203. #: guix-git/doc/guix.texi:7544
  12204. #, no-wrap
  12205. msgid "If @var{target} has a trailing slash, install @var{source} basename beneath @var{target}."
  12206. msgstr ""
  12207. #. type: item
  12208. #: guix-git/doc/guix.texi:7545
  12209. #, no-wrap
  12210. msgid "Otherwise install @var{source} as @var{target}."
  12211. msgstr ""
  12212. #. type: item
  12213. #: guix-git/doc/guix.texi:7548
  12214. #, no-wrap
  12215. msgid "When @var{source} is a directory with a trailing slash, or when @var{filters} are used,"
  12216. msgstr ""
  12217. #. type: itemize
  12218. #: guix-git/doc/guix.texi:7551
  12219. msgid "the trailing slash of @var{target} is implied with the same meaning as above."
  12220. msgstr ""
  12221. #. type: item
  12222. #: guix-git/doc/guix.texi:7552
  12223. #, no-wrap
  12224. msgid "Without @var{filters}, install the full @var{source} @emph{content} to @var{target}."
  12225. msgstr ""
  12226. #. type: item
  12227. #: guix-git/doc/guix.texi:7553
  12228. #, no-wrap
  12229. msgid "With @var{filters} among @code{#:include}, @code{#:include-regexp}, @code{#:exclude},"
  12230. msgstr ""
  12231. #. type: itemize
  12232. #: guix-git/doc/guix.texi:7556
  12233. msgid "@code{#:exclude-regexp}, only select files are installed depending on the filters. Each filters is specified by a list of strings."
  12234. msgstr ""
  12235. #. type: item
  12236. #: guix-git/doc/guix.texi:7557
  12237. #, no-wrap
  12238. msgid "With @code{#:include}, install all the files which the path suffix matches"
  12239. msgstr ""
  12240. #. type: itemize
  12241. #: guix-git/doc/guix.texi:7559
  12242. msgid "at least one of the elements in the given list."
  12243. msgstr ""
  12244. #. type: item
  12245. #: guix-git/doc/guix.texi:7559
  12246. #, no-wrap
  12247. msgid "With @code{#:include-regexp}, install all the files which the"
  12248. msgstr ""
  12249. #. type: itemize
  12250. #: guix-git/doc/guix.texi:7562
  12251. msgid "subpaths match at least one of the regular expressions in the given list."
  12252. msgstr ""
  12253. #. type: item
  12254. #: guix-git/doc/guix.texi:7562
  12255. #, no-wrap
  12256. msgid "The @code{#:exclude} and @code{#:exclude-regexp} filters"
  12257. msgstr ""
  12258. #. type: itemize
  12259. #: guix-git/doc/guix.texi:7567
  12260. 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."
  12261. msgstr ""
  12262. #. type: itemize
  12263. #: guix-git/doc/guix.texi:7571
  12264. msgid "In all cases, the paths relative to @var{source} are preserved within @var{target}."
  12265. msgstr ""
  12266. #. type: defvr
  12267. #: guix-git/doc/guix.texi:7574
  12268. msgid "Examples:"
  12269. msgstr ""
  12270. #. type: item
  12271. #: guix-git/doc/guix.texi:7576
  12272. #, no-wrap
  12273. msgid "@code{(\"foo/bar\" \"share/my-app/\")}: Install @file{bar} to @file{share/my-app/bar}."
  12274. msgstr ""
  12275. #. type: item
  12276. #: guix-git/doc/guix.texi:7577
  12277. #, no-wrap
  12278. msgid "@code{(\"foo/bar\" \"share/my-app/baz\")}: Install @file{bar} to @file{share/my-app/baz}."
  12279. msgstr ""
  12280. #. type: item
  12281. #: guix-git/doc/guix.texi:7578
  12282. #, no-wrap
  12283. msgid "@code{(\"foo/\" \"share/my-app\")}: Install the content of @file{foo} inside @file{share/my-app},"
  12284. msgstr ""
  12285. #. type: itemize
  12286. #: guix-git/doc/guix.texi:7580
  12287. msgid "e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}."
  12288. msgstr ""
  12289. #. type: item
  12290. #: guix-git/doc/guix.texi:7580
  12291. #, no-wrap
  12292. msgid "@code{(\"foo/\" \"share/my-app\" #:include (\"sub/file\"))}: Install only @file{foo/sub/file} to"
  12293. msgstr ""
  12294. #. type: itemize
  12295. #: guix-git/doc/guix.texi:7582
  12296. msgid "@file{share/my-app/sub/file}."
  12297. msgstr ""
  12298. #. type: item
  12299. #: guix-git/doc/guix.texi:7582
  12300. #, no-wrap
  12301. msgid "@code{(\"foo/sub\" \"share/my-app\" #:include (\"file\"))}: Install @file{foo/sub/file} to"
  12302. msgstr ""
  12303. #. type: itemize
  12304. #: guix-git/doc/guix.texi:7584
  12305. msgid "@file{share/my-app/file}."
  12306. msgstr ""
  12307. #. type: cindex
  12308. #: guix-git/doc/guix.texi:7588
  12309. #, no-wrap
  12310. msgid "Clojure (programming language)"
  12311. msgstr ""
  12312. #. type: cindex
  12313. #: guix-git/doc/guix.texi:7589
  12314. #, no-wrap
  12315. msgid "simple Clojure build system"
  12316. msgstr ""
  12317. #. type: defvr
  12318. #: guix-git/doc/guix.texi:7590
  12319. #, no-wrap
  12320. msgid "{Scheme Variable} clojure-build-system"
  12321. msgstr ""
  12322. #. type: defvr
  12323. #: guix-git/doc/guix.texi:7595
  12324. 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."
  12325. msgstr ""
  12326. #. type: defvr
  12327. #: guix-git/doc/guix.texi:7599
  12328. 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."
  12329. msgstr ""
  12330. #. type: defvr
  12331. #: guix-git/doc/guix.texi:7605
  12332. 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."
  12333. msgstr ""
  12334. #. type: defvr
  12335. #: guix-git/doc/guix.texi:7608
  12336. msgid "This build system is an extension of @code{ant-build-system}, but with the following phases changed:"
  12337. msgstr ""
  12338. #. type: item
  12339. #: guix-git/doc/guix.texi:7611 guix-git/doc/guix.texi:8163
  12340. #: guix-git/doc/guix.texi:8210 guix-git/doc/guix.texi:8279
  12341. #: guix-git/doc/guix.texi:32905
  12342. #, no-wrap
  12343. msgid "build"
  12344. msgstr ""
  12345. #. type: table
  12346. #: guix-git/doc/guix.texi:7620
  12347. 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."
  12348. msgstr ""
  12349. #. type: item
  12350. #: guix-git/doc/guix.texi:7621 guix-git/doc/guix.texi:8167
  12351. #: guix-git/doc/guix.texi:8284
  12352. #, no-wrap
  12353. msgid "check"
  12354. msgstr ""
  12355. #. type: table
  12356. #: guix-git/doc/guix.texi:7628
  12357. 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."
  12358. msgstr ""
  12359. #. type: item
  12360. #: guix-git/doc/guix.texi:7629 guix-git/doc/guix.texi:8171
  12361. #: guix-git/doc/guix.texi:8214 guix-git/doc/guix.texi:8290
  12362. #, no-wrap
  12363. msgid "install"
  12364. msgstr ""
  12365. #. type: table
  12366. #: guix-git/doc/guix.texi:7631
  12367. msgid "This phase installs all jars built previously."
  12368. msgstr ""
  12369. #. type: defvr
  12370. #: guix-git/doc/guix.texi:7634
  12371. msgid "Apart from the above, this build system also contains an additional phase:"
  12372. msgstr ""
  12373. #. type: item
  12374. #: guix-git/doc/guix.texi:7637
  12375. #, no-wrap
  12376. msgid "install-doc"
  12377. msgstr ""
  12378. #. type: table
  12379. #: guix-git/doc/guix.texi:7642
  12380. 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."
  12381. msgstr ""
  12382. #. type: defvr
  12383. #: guix-git/doc/guix.texi:7645
  12384. #, no-wrap
  12385. msgid "{Scheme Variable} cmake-build-system"
  12386. msgstr ""
  12387. #. type: defvr
  12388. #: guix-git/doc/guix.texi:7649
  12389. 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}."
  12390. msgstr ""
  12391. #. type: defvr
  12392. #: guix-git/doc/guix.texi:7653
  12393. 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."
  12394. msgstr ""
  12395. #. type: defvr
  12396. #: guix-git/doc/guix.texi:7660
  12397. 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."
  12398. msgstr ""
  12399. #. type: defvr
  12400. #: guix-git/doc/guix.texi:7662
  12401. #, no-wrap
  12402. msgid "{Scheme Variable} dune-build-system"
  12403. msgstr ""
  12404. #. type: defvr
  12405. #: guix-git/doc/guix.texi:7669
  12406. 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."
  12407. msgstr ""
  12408. #. type: defvr
  12409. #: guix-git/doc/guix.texi:7673
  12410. 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."
  12411. msgstr ""
  12412. #. type: defvr
  12413. #: guix-git/doc/guix.texi:7677
  12414. 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."
  12415. msgstr ""
  12416. #. type: defvr
  12417. #: guix-git/doc/guix.texi:7681
  12418. 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}."
  12419. msgstr ""
  12420. #. type: defvr
  12421. #: guix-git/doc/guix.texi:7686
  12422. 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}."
  12423. msgstr ""
  12424. #. type: defvr
  12425. #: guix-git/doc/guix.texi:7688
  12426. #, no-wrap
  12427. msgid "{Scheme Variable} go-build-system"
  12428. msgstr ""
  12429. #. type: defvr
  12430. #: guix-git/doc/guix.texi:7693
  12431. 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}."
  12432. msgstr ""
  12433. #. type: defvr
  12434. #: guix-git/doc/guix.texi:7704
  12435. 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."
  12436. msgstr ""
  12437. #. type: defvr
  12438. #: guix-git/doc/guix.texi:7709
  12439. 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."
  12440. msgstr ""
  12441. #. type: defvr
  12442. #: guix-git/doc/guix.texi:7711
  12443. #, no-wrap
  12444. msgid "{Scheme Variable} glib-or-gtk-build-system"
  12445. msgstr ""
  12446. #. type: defvr
  12447. #: guix-git/doc/guix.texi:7714
  12448. 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+."
  12449. msgstr ""
  12450. #. type: defvr
  12451. #: guix-git/doc/guix.texi:7717
  12452. msgid "This build system adds the following two phases to the ones defined by @code{gnu-build-system}:"
  12453. msgstr ""
  12454. #. type: item
  12455. #: guix-git/doc/guix.texi:7719 guix-git/doc/guix.texi:8187
  12456. #, no-wrap
  12457. msgid "glib-or-gtk-wrap"
  12458. msgstr ""
  12459. #. type: table
  12460. #: guix-git/doc/guix.texi:7726
  12461. 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."
  12462. msgstr ""
  12463. #. type: table
  12464. #: guix-git/doc/guix.texi:7733
  12465. 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+."
  12466. msgstr ""
  12467. #. type: item
  12468. #: guix-git/doc/guix.texi:7734 guix-git/doc/guix.texi:8191
  12469. #, no-wrap
  12470. msgid "glib-or-gtk-compile-schemas"
  12471. msgstr ""
  12472. #. type: table
  12473. #: guix-git/doc/guix.texi:7742
  12474. 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."
  12475. msgstr ""
  12476. #. type: defvr
  12477. #: guix-git/doc/guix.texi:7745
  12478. msgid "Both phases are executed after the @code{install} phase."
  12479. msgstr ""
  12480. #. type: defvr
  12481. #: guix-git/doc/guix.texi:7747
  12482. #, no-wrap
  12483. msgid "{Scheme Variable} guile-build-system"
  12484. msgstr ""
  12485. #. type: defvr
  12486. #: guix-git/doc/guix.texi:7754
  12487. 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."
  12488. msgstr ""
  12489. #. type: defvr
  12490. #: guix-git/doc/guix.texi:7757
  12491. msgid "This build system supports cross-compilation by using the @option{--target} option of @samp{guild compile}."
  12492. msgstr ""
  12493. #. type: defvr
  12494. #: guix-git/doc/guix.texi:7760
  12495. msgid "Packages built with @code{guile-build-system} must provide a Guile package in their @code{native-inputs} field."
  12496. msgstr ""
  12497. #. type: defvr
  12498. #: guix-git/doc/guix.texi:7762
  12499. #, no-wrap
  12500. msgid "{Scheme Variable} julia-build-system"
  12501. msgstr ""
  12502. #. type: defvr
  12503. #: guix-git/doc/guix.texi:7769
  12504. 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}."
  12505. msgstr ""
  12506. #. type: defvr
  12507. #: guix-git/doc/guix.texi:7773
  12508. 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)."
  12509. msgstr ""
  12510. #. type: defvr
  12511. #: guix-git/doc/guix.texi:7777
  12512. 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}."
  12513. msgstr ""
  12514. #. type: defvr
  12515. #: guix-git/doc/guix.texi:7782
  12516. 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."
  12517. msgstr ""
  12518. #. type: defvr
  12519. #: guix-git/doc/guix.texi:7786
  12520. 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:"
  12521. msgstr ""
  12522. #. type: lisp
  12523. #: guix-git/doc/guix.texi:7798
  12524. #, no-wrap
  12525. msgid ""
  12526. "(add-after 'unpack 'override-binary-path\n"
  12527. " (lambda* (#:key inputs #:allow-other-keys)\n"
  12528. " (for-each (lambda (wrapper)\n"
  12529. " (substitute* wrapper\n"
  12530. " ((\"generate_wrapper_header.*\")\n"
  12531. " (string-append\n"
  12532. " \"generate_wrapper_header(\\\"MbedTLS\\\", \\\"\"\n"
  12533. " (assoc-ref inputs \"mbedtls-apache\") \"\\\")\\n\"))))\n"
  12534. " ;; There's a Julia file for each platform, override them all.\n"
  12535. " (find-files \"src/wrappers/\" \"\\\\.jl$\"))))\n"
  12536. msgstr ""
  12537. #. type: defvr
  12538. #: guix-git/doc/guix.texi:7806
  12539. 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, it's 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."
  12540. msgstr ""
  12541. #. type: defvr
  12542. #: guix-git/doc/guix.texi:7808
  12543. #, no-wrap
  12544. msgid "{Scheme Variable} maven-build-system"
  12545. msgstr ""
  12546. #. type: defvr
  12547. #: guix-git/doc/guix.texi:7815
  12548. 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."
  12549. msgstr ""
  12550. #. type: defvr
  12551. #: guix-git/doc/guix.texi:7825
  12552. 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."
  12553. msgstr ""
  12554. #. type: defvr
  12555. #: guix-git/doc/guix.texi:7828
  12556. 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."
  12557. msgstr ""
  12558. #. type: defvr
  12559. #: guix-git/doc/guix.texi:7834
  12560. 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}."
  12561. msgstr ""
  12562. #. type: defvr
  12563. #: guix-git/doc/guix.texi:7840
  12564. 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."
  12565. msgstr ""
  12566. #. type: defvr
  12567. #: guix-git/doc/guix.texi:7843
  12568. msgid "You can override the default @code{jdk} and @code{maven} packages with the corresponding argument, @code{#:jdk} and @code{#:maven}."
  12569. msgstr ""
  12570. #. type: defvr
  12571. #: guix-git/doc/guix.texi:7848
  12572. 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."
  12573. msgstr ""
  12574. #. type: defvr
  12575. #: guix-git/doc/guix.texi:7850
  12576. #, no-wrap
  12577. msgid "{Scheme Variable} minify-build-system"
  12578. msgstr ""
  12579. #. type: defvr
  12580. #: guix-git/doc/guix.texi:7853
  12581. msgid "This variable is exported by @code{(guix build-system minify)}. It implements a minification procedure for simple JavaScript packages."
  12582. msgstr ""
  12583. #. type: defvr
  12584. #: guix-git/doc/guix.texi:7859
  12585. 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."
  12586. msgstr ""
  12587. #. type: defvr
  12588. #: guix-git/doc/guix.texi:7863
  12589. 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."
  12590. msgstr ""
  12591. #. type: defvr
  12592. #: guix-git/doc/guix.texi:7865
  12593. #, no-wrap
  12594. msgid "{Scheme Variable} ocaml-build-system"
  12595. msgstr ""
  12596. #. type: defvr
  12597. #: guix-git/doc/guix.texi:7871
  12598. 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."
  12599. msgstr ""
  12600. #. type: defvr
  12601. #: guix-git/doc/guix.texi:7881
  12602. 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."
  12603. msgstr ""
  12604. #. type: defvr
  12605. #: guix-git/doc/guix.texi:7886
  12606. 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."
  12607. msgstr ""
  12608. #. type: defvr
  12609. #: guix-git/doc/guix.texi:7890
  12610. 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."
  12611. msgstr ""
  12612. #. type: defvr
  12613. #: guix-git/doc/guix.texi:7898
  12614. 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."
  12615. msgstr ""
  12616. #. type: defvr
  12617. #: guix-git/doc/guix.texi:7906
  12618. 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."
  12619. msgstr ""
  12620. #. type: defvr
  12621. #: guix-git/doc/guix.texi:7908
  12622. #, no-wrap
  12623. msgid "{Scheme Variable} python-build-system"
  12624. msgstr ""
  12625. #. type: defvr
  12626. #: guix-git/doc/guix.texi:7913
  12627. 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{}}."
  12628. msgstr ""
  12629. #. type: defvr
  12630. #: guix-git/doc/guix.texi:7917
  12631. 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."
  12632. msgstr ""
  12633. #. type: defvr
  12634. #: guix-git/doc/guix.texi:7923
  12635. 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."
  12636. msgstr ""
  12637. #. type: defvr
  12638. #: guix-git/doc/guix.texi:7928
  12639. 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}."
  12640. msgstr ""
  12641. #. type: defvr
  12642. #: guix-git/doc/guix.texi:7930
  12643. #, no-wrap
  12644. msgid "{Scheme Variable} perl-build-system"
  12645. msgstr ""
  12646. #. type: defvr
  12647. #: guix-git/doc/guix.texi:7942
  12648. 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."
  12649. msgstr ""
  12650. #. type: defvr
  12651. #: guix-git/doc/guix.texi:7946
  12652. 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."
  12653. msgstr ""
  12654. #. type: defvr
  12655. #: guix-git/doc/guix.texi:7948
  12656. msgid "Which Perl package is used can be specified with @code{#:perl}."
  12657. msgstr ""
  12658. #. type: defvr
  12659. #: guix-git/doc/guix.texi:7950
  12660. #, no-wrap
  12661. msgid "{Scheme Variable} renpy-build-system"
  12662. msgstr ""
  12663. #. type: defvr
  12664. #: guix-git/doc/guix.texi:7954
  12665. 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."
  12666. msgstr ""
  12667. #. type: defvr
  12668. #: guix-git/doc/guix.texi:7957
  12669. 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."
  12670. msgstr ""
  12671. #. type: defvr
  12672. #: guix-git/doc/guix.texi:7961
  12673. 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}."
  12674. msgstr ""
  12675. #. type: defvr
  12676. #: guix-git/doc/guix.texi:7963
  12677. #, no-wrap
  12678. msgid "{Scheme Variable} qt-build-system"
  12679. msgstr ""
  12680. #. type: defvr
  12681. #: guix-git/doc/guix.texi:7966
  12682. msgid "This variable is exported by @code{(guix build-system qt)}. It is intended for use with applications using Qt or KDE."
  12683. msgstr ""
  12684. #. type: defvr
  12685. #: guix-git/doc/guix.texi:7969
  12686. msgid "This build system adds the following two phases to the ones defined by @code{cmake-build-system}:"
  12687. msgstr ""
  12688. #. type: item
  12689. #: guix-git/doc/guix.texi:7971
  12690. #, no-wrap
  12691. msgid "check-setup"
  12692. msgstr ""
  12693. #. type: table
  12694. #: guix-git/doc/guix.texi:7978
  12695. 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}."
  12696. msgstr ""
  12697. #. type: table
  12698. #: guix-git/doc/guix.texi:7981
  12699. msgid "This phase is added before the @code{check} phase. It's a separate phase to ease adjusting if necessary."
  12700. msgstr ""
  12701. #. type: item
  12702. #: guix-git/doc/guix.texi:7982
  12703. #, no-wrap
  12704. msgid "qt-wrap"
  12705. msgstr ""
  12706. #. type: table
  12707. #: guix-git/doc/guix.texi:7988
  12708. 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."
  12709. msgstr ""
  12710. #. type: table
  12711. #: guix-git/doc/guix.texi:7994
  12712. 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."
  12713. msgstr ""
  12714. #. type: table
  12715. #: guix-git/doc/guix.texi:7996
  12716. msgid "This phase is added after the @code{install} phase."
  12717. msgstr ""
  12718. #. type: defvr
  12719. #: guix-git/doc/guix.texi:7999
  12720. #, no-wrap
  12721. msgid "{Scheme Variable} r-build-system"
  12722. msgstr ""
  12723. #. type: defvr
  12724. #: guix-git/doc/guix.texi:8007
  12725. 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}."
  12726. msgstr ""
  12727. #. type: defvr
  12728. #: guix-git/doc/guix.texi:8009
  12729. #, no-wrap
  12730. msgid "{Scheme Variable} rakudo-build-system"
  12731. msgstr ""
  12732. #. type: defvr
  12733. #: guix-git/doc/guix.texi:8017
  12734. 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."
  12735. msgstr ""
  12736. #. type: defvr
  12737. #: guix-git/doc/guix.texi:8025
  12738. 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."
  12739. msgstr ""
  12740. #. type: defvr
  12741. #: guix-git/doc/guix.texi:8027
  12742. #, no-wrap
  12743. msgid "{Scheme Variable} texlive-build-system"
  12744. msgstr ""
  12745. #. type: defvr
  12746. #: guix-git/doc/guix.texi:8032
  12747. 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."
  12748. msgstr ""
  12749. #. type: defvr
  12750. #: guix-git/doc/guix.texi:8041
  12751. 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."
  12752. msgstr ""
  12753. #. type: defvr
  12754. #: guix-git/doc/guix.texi:8044
  12755. msgid "The @code{#:tex-directory} parameter tells the build system where to install the built files under the texmf tree."
  12756. msgstr ""
  12757. #. type: defvr
  12758. #: guix-git/doc/guix.texi:8046
  12759. #, no-wrap
  12760. msgid "{Scheme Variable} ruby-build-system"
  12761. msgstr ""
  12762. #. type: defvr
  12763. #: guix-git/doc/guix.texi:8050
  12764. 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}."
  12765. msgstr ""
  12766. #. type: defvr
  12767. #: guix-git/doc/guix.texi:8058
  12768. 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."
  12769. msgstr ""
  12770. #. type: defvr
  12771. #: guix-git/doc/guix.texi:8062
  12772. 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."
  12773. msgstr ""
  12774. #. type: defvr
  12775. #: guix-git/doc/guix.texi:8064
  12776. #, no-wrap
  12777. msgid "{Scheme Variable} waf-build-system"
  12778. msgstr ""
  12779. #. type: defvr
  12780. #: guix-git/doc/guix.texi:8070
  12781. 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."
  12782. msgstr ""
  12783. #. type: defvr
  12784. #: guix-git/doc/guix.texi:8074
  12785. 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."
  12786. msgstr ""
  12787. #. type: defvr
  12788. #: guix-git/doc/guix.texi:8076
  12789. #, no-wrap
  12790. msgid "{Scheme Variable} scons-build-system"
  12791. msgstr ""
  12792. #. type: defvr
  12793. #: guix-git/doc/guix.texi:8082
  12794. 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."
  12795. msgstr ""
  12796. #. type: defvr
  12797. #: guix-git/doc/guix.texi:8089
  12798. 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."
  12799. msgstr ""
  12800. #. type: defvr
  12801. #: guix-git/doc/guix.texi:8091
  12802. #, no-wrap
  12803. msgid "{Scheme Variable} haskell-build-system"
  12804. msgstr ""
  12805. #. type: defvr
  12806. #: guix-git/doc/guix.texi:8105
  12807. 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."
  12808. msgstr ""
  12809. #. type: defvr
  12810. #: guix-git/doc/guix.texi:8108
  12811. msgid "Which Haskell compiler is used can be specified with the @code{#:haskell} parameter which defaults to @code{ghc}."
  12812. msgstr ""
  12813. #. type: defvr
  12814. #: guix-git/doc/guix.texi:8110
  12815. #, no-wrap
  12816. msgid "{Scheme Variable} dub-build-system"
  12817. msgstr ""
  12818. #. type: defvr
  12819. #: guix-git/doc/guix.texi:8115
  12820. 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."
  12821. msgstr ""
  12822. #. type: defvr
  12823. #: guix-git/doc/guix.texi:8118
  12824. msgid "Which D compiler is used can be specified with the @code{#:ldc} parameter which defaults to @code{ldc}."
  12825. msgstr ""
  12826. #. type: anchor{#1}
  12827. #: guix-git/doc/guix.texi:8121
  12828. msgid "emacs-build-system"
  12829. msgstr ""
  12830. #. type: defvr
  12831. #: guix-git/doc/guix.texi:8121
  12832. #, no-wrap
  12833. msgid "{Scheme Variable} emacs-build-system"
  12834. msgstr ""
  12835. #. type: defvr
  12836. #: guix-git/doc/guix.texi:8125
  12837. 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})."
  12838. msgstr ""
  12839. #. type: defvr
  12840. #: guix-git/doc/guix.texi:8131
  12841. 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}."
  12842. msgstr ""
  12843. #. type: defvr
  12844. #: guix-git/doc/guix.texi:8133
  12845. #, no-wrap
  12846. msgid "{Scheme Variable} font-build-system"
  12847. msgstr ""
  12848. #. type: defvr
  12849. #: guix-git/doc/guix.texi:8139
  12850. 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."
  12851. msgstr ""
  12852. #. type: defvr
  12853. #: guix-git/doc/guix.texi:8141
  12854. #, no-wrap
  12855. msgid "{Scheme Variable} meson-build-system"
  12856. msgstr ""
  12857. #. type: defvr
  12858. #: guix-git/doc/guix.texi:8145
  12859. 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."
  12860. msgstr ""
  12861. #. type: defvr
  12862. #: guix-git/doc/guix.texi:8151
  12863. 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."
  12864. msgstr ""
  12865. #. type: defvr
  12866. #: guix-git/doc/guix.texi:8154
  12867. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed to some specific for Meson:"
  12868. msgstr ""
  12869. #. type: item
  12870. #: guix-git/doc/guix.texi:8157 guix-git/doc/guix.texi:8206
  12871. #: guix-git/doc/guix.texi:8274
  12872. #, no-wrap
  12873. msgid "configure"
  12874. msgstr ""
  12875. #. type: table
  12876. #: guix-git/doc/guix.texi:8162
  12877. 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}."
  12878. msgstr ""
  12879. #. type: table
  12880. #: guix-git/doc/guix.texi:8166
  12881. msgid "The phase runs @code{ninja} to build the package in parallel by default, but this can be changed with @code{#:parallel-build?}."
  12882. msgstr ""
  12883. #. type: table
  12884. #: guix-git/doc/guix.texi:8170
  12885. msgid "The phase runs @code{ninja} with the target specified in @code{#:test-target}, which is @code{\"test\"} by default."
  12886. msgstr ""
  12887. #. type: table
  12888. #: guix-git/doc/guix.texi:8173
  12889. msgid "The phase runs @code{ninja install} and can not be changed."
  12890. msgstr ""
  12891. #. type: defvr
  12892. #: guix-git/doc/guix.texi:8176
  12893. msgid "Apart from that, the build system also adds the following phases:"
  12894. msgstr ""
  12895. #. type: item
  12896. #: guix-git/doc/guix.texi:8179
  12897. #, no-wrap
  12898. msgid "fix-runpath"
  12899. msgstr ""
  12900. #. type: table
  12901. #: guix-git/doc/guix.texi:8186
  12902. 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."
  12903. msgstr ""
  12904. #. type: table
  12905. #: guix-git/doc/guix.texi:8190 guix-git/doc/guix.texi:8194
  12906. 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?}."
  12907. msgstr ""
  12908. #. type: defvr
  12909. #: guix-git/doc/guix.texi:8197
  12910. #, no-wrap
  12911. msgid "{Scheme Variable} linux-module-build-system"
  12912. msgstr ""
  12913. #. type: defvr
  12914. #: guix-git/doc/guix.texi:8199
  12915. msgid "@code{linux-module-build-system} allows building Linux kernel modules."
  12916. msgstr ""
  12917. #. type: defvr
  12918. #: guix-git/doc/guix.texi:8203
  12919. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed:"
  12920. msgstr ""
  12921. #. type: table
  12922. #: guix-git/doc/guix.texi:8209
  12923. msgid "This phase configures the environment so that the Linux kernel's Makefile can be used to build the external kernel module."
  12924. msgstr ""
  12925. #. type: table
  12926. #: guix-git/doc/guix.texi:8213
  12927. msgid "This phase uses the Linux kernel's Makefile in order to build the external kernel module."
  12928. msgstr ""
  12929. #. type: table
  12930. #: guix-git/doc/guix.texi:8217
  12931. msgid "This phase uses the Linux kernel's Makefile in order to install the external kernel module."
  12932. msgstr ""
  12933. #. type: defvr
  12934. #: guix-git/doc/guix.texi:8222
  12935. 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)."
  12936. msgstr ""
  12937. #. type: defvr
  12938. #: guix-git/doc/guix.texi:8224
  12939. #, no-wrap
  12940. msgid "{Scheme Variable} node-build-system"
  12941. msgstr ""
  12942. #. type: defvr
  12943. #: guix-git/doc/guix.texi:8229
  12944. 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."
  12945. msgstr ""
  12946. #. type: defvr
  12947. #: guix-git/doc/guix.texi:8233
  12948. 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}."
  12949. msgstr ""
  12950. #. type: Plain text
  12951. #: guix-git/doc/guix.texi:8239
  12952. 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."
  12953. msgstr ""
  12954. #. type: defvr
  12955. #: guix-git/doc/guix.texi:8240
  12956. #, no-wrap
  12957. msgid "{Scheme Variable} trivial-build-system"
  12958. msgstr ""
  12959. #. type: defvr
  12960. #: guix-git/doc/guix.texi:8242
  12961. msgid "This variable is exported by @code{(guix build-system trivial)}."
  12962. msgstr ""
  12963. #. type: defvr
  12964. #: guix-git/doc/guix.texi:8247
  12965. 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}})."
  12966. msgstr ""
  12967. #. type: cindex
  12968. #: guix-git/doc/guix.texi:8252
  12969. #, fuzzy, no-wrap
  12970. msgid "build phases, for packages"
  12971. msgstr "Python软件包的输入"
  12972. #. type: Plain text
  12973. #: guix-git/doc/guix.texi:8258
  12974. 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})."
  12975. msgstr ""
  12976. #. type: Plain text
  12977. #: guix-git/doc/guix.texi:8262
  12978. 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:"
  12979. msgstr ""
  12980. #. type: item
  12981. #: guix-git/doc/guix.texi:8264
  12982. #, no-wrap
  12983. msgid "unpack"
  12984. msgstr ""
  12985. #. type: table
  12986. #: guix-git/doc/guix.texi:8268
  12987. 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."
  12988. msgstr ""
  12989. #. type: item
  12990. #: guix-git/doc/guix.texi:8269
  12991. #, no-wrap
  12992. msgid "patch-source-shebangs"
  12993. msgstr ""
  12994. #. type: table
  12995. #: guix-git/doc/guix.texi:8273
  12996. 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}."
  12997. msgstr ""
  12998. #. type: table
  12999. #: guix-git/doc/guix.texi:8278
  13000. 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."
  13001. msgstr ""
  13002. #. type: table
  13003. #: guix-git/doc/guix.texi:8283
  13004. 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}."
  13005. msgstr ""
  13006. #. type: table
  13007. #: guix-git/doc/guix.texi:8289
  13008. 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}."
  13009. msgstr ""
  13010. #. type: table
  13011. #: guix-git/doc/guix.texi:8292
  13012. msgid "Run @code{make install} with the flags listed in @code{#:make-flags}."
  13013. msgstr ""
  13014. #. type: item
  13015. #: guix-git/doc/guix.texi:8293
  13016. #, no-wrap
  13017. msgid "patch-shebangs"
  13018. msgstr ""
  13019. #. type: table
  13020. #: guix-git/doc/guix.texi:8295
  13021. msgid "Patch shebangs on the installed executable files."
  13022. msgstr ""
  13023. #. type: item
  13024. #: guix-git/doc/guix.texi:8296
  13025. #, no-wrap
  13026. msgid "strip"
  13027. msgstr ""
  13028. #. type: table
  13029. #: guix-git/doc/guix.texi:8300
  13030. 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})."
  13031. msgstr ""
  13032. #. type: Plain text
  13033. #: guix-git/doc/guix.texi:8309
  13034. 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})."
  13035. msgstr ""
  13036. #. type: Plain text
  13037. #: guix-git/doc/guix.texi:8316
  13038. 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."
  13039. msgstr ""
  13040. #. type: vindex
  13041. #: guix-git/doc/guix.texi:8317
  13042. #, no-wrap
  13043. msgid "%standard-phases"
  13044. msgstr ""
  13045. #. type: Plain text
  13046. #: guix-git/doc/guix.texi:8323
  13047. 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!}:"
  13048. msgstr ""
  13049. #. type: lisp
  13050. #: guix-git/doc/guix.texi:8326
  13051. #, no-wrap
  13052. msgid ""
  13053. ";; The build phases of 'gnu-build-system'.\n"
  13054. "\n"
  13055. msgstr ""
  13056. #. type: lisp
  13057. #: guix-git/doc/guix.texi:8330
  13058. #, no-wrap
  13059. msgid ""
  13060. "(define* (unpack #:key source #:allow-other-keys)\n"
  13061. " ;; Extract the source tarball.\n"
  13062. " (invoke \"tar\" \"xvf\" source))\n"
  13063. "\n"
  13064. msgstr ""
  13065. #. type: lisp
  13066. #: guix-git/doc/guix.texi:8336
  13067. #, no-wrap
  13068. msgid ""
  13069. "(define* (configure #:key outputs #:allow-other-keys)\n"
  13070. " ;; Run the 'configure' script. Install to output \"out\".\n"
  13071. " (let ((out (assoc-ref outputs \"out\")))\n"
  13072. " (invoke \"./configure\"\n"
  13073. " (string-append \"--prefix=\" out))))\n"
  13074. "\n"
  13075. msgstr ""
  13076. #. type: lisp
  13077. #: guix-git/doc/guix.texi:8340
  13078. #, no-wrap
  13079. msgid ""
  13080. "(define* (build #:allow-other-keys)\n"
  13081. " ;; Compile.\n"
  13082. " (invoke \"make\"))\n"
  13083. "\n"
  13084. msgstr ""
  13085. #. type: lisp
  13086. #: guix-git/doc/guix.texi:8347
  13087. #, no-wrap
  13088. msgid ""
  13089. "(define* (check #:key (test-target \"check\") (tests? #true)\n"
  13090. " #:allow-other-keys)\n"
  13091. " ;; Run the test suite.\n"
  13092. " (if tests?\n"
  13093. " (invoke \"make\" test-target)\n"
  13094. " (display \"test suite not run\\n\")))\n"
  13095. "\n"
  13096. msgstr ""
  13097. #. type: lisp
  13098. #: guix-git/doc/guix.texi:8351
  13099. #, no-wrap
  13100. msgid ""
  13101. "(define* (install #:allow-other-keys)\n"
  13102. " ;; Install files to the prefix 'configure' specified.\n"
  13103. " (invoke \"make\" \"install\"))\n"
  13104. "\n"
  13105. msgstr ""
  13106. #. type: lisp
  13107. #: guix-git/doc/guix.texi:8360
  13108. #, no-wrap
  13109. msgid ""
  13110. "(define %standard-phases\n"
  13111. " ;; The list of standard phases (quite a few are omitted\n"
  13112. " ;; for brevity). Each element is a symbol/procedure pair.\n"
  13113. " (list (cons 'unpack unpack)\n"
  13114. " (cons 'configure configure)\n"
  13115. " (cons 'build build)\n"
  13116. " (cons 'check check)\n"
  13117. " (cons 'install install)))\n"
  13118. msgstr ""
  13119. #. type: Plain text
  13120. #: guix-git/doc/guix.texi:8370
  13121. 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."
  13122. msgstr ""
  13123. #. type: Plain text
  13124. #: guix-git/doc/guix.texi:8376
  13125. 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})."
  13126. msgstr ""
  13127. #. type: Plain text
  13128. #: guix-git/doc/guix.texi:8392
  13129. 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."
  13130. msgstr ""
  13131. #. type: cindex
  13132. #: guix-git/doc/guix.texi:8393
  13133. #, no-wrap
  13134. msgid "build phases, customizing"
  13135. msgstr ""
  13136. #. type: Plain text
  13137. #: guix-git/doc/guix.texi:8402
  13138. 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}})."
  13139. msgstr ""
  13140. #. type: Plain text
  13141. #: guix-git/doc/guix.texi:8407
  13142. 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}:"
  13143. msgstr ""
  13144. #. type: lisp
  13145. #: guix-git/doc/guix.texi:8427
  13146. #, no-wrap
  13147. msgid ""
  13148. "(define-public example\n"
  13149. " (package\n"
  13150. " (name \"example\")\n"
  13151. " ;; other fields omitted\n"
  13152. " (build-system gnu-build-system)\n"
  13153. " (arguments\n"
  13154. " '(#:phases (modify-phases %standard-phases\n"
  13155. " (delete 'configure)\n"
  13156. " (add-before 'build 'set-prefix-in-makefile\n"
  13157. " (lambda* (#:key outputs #:allow-other-keys)\n"
  13158. " ;; Modify the makefile so that its\n"
  13159. " ;; 'PREFIX' variable points to \"out\".\n"
  13160. " (let ((out (assoc-ref outputs \"out\")))\n"
  13161. " (substitute* \"Makefile\"\n"
  13162. " ((\"PREFIX =.*\")\n"
  13163. " (string-append \"PREFIX = \"\n"
  13164. " out \"\\n\")))\n"
  13165. " #true))))))))\n"
  13166. msgstr ""
  13167. #. type: Plain text
  13168. #: guix-git/doc/guix.texi:8433
  13169. 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}."
  13170. msgstr ""
  13171. #. type: cindex
  13172. #: guix-git/doc/guix.texi:8434 guix-git/doc/guix.texi:9407
  13173. #, no-wrap
  13174. msgid "code staging"
  13175. msgstr ""
  13176. #. type: cindex
  13177. #: guix-git/doc/guix.texi:8435 guix-git/doc/guix.texi:9408
  13178. #, fuzzy, no-wrap
  13179. msgid "staging, of code"
  13180. msgstr "代码格式化"
  13181. #. type: Plain text
  13182. #: guix-git/doc/guix.texi:8442
  13183. 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."
  13184. msgstr ""
  13185. #. type: Plain text
  13186. #: guix-git/doc/guix.texi:8452
  13187. 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."
  13188. msgstr ""
  13189. #. type: Plain text
  13190. #: guix-git/doc/guix.texi:8456
  13191. 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."
  13192. msgstr ""
  13193. #. type: Plain text
  13194. #: guix-git/doc/guix.texi:8461
  13195. 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}):"
  13196. msgstr ""
  13197. #. type: lisp
  13198. #: guix-git/doc/guix.texi:8468
  13199. #, no-wrap
  13200. msgid ""
  13201. "(with-imported-modules '((guix build utils)) ;import it\n"
  13202. " (computed-file \"empty-tree\"\n"
  13203. " #~(begin\n"
  13204. " ;; Put it in scope.\n"
  13205. " (use-modules (guix build utils))\n"
  13206. "\n"
  13207. msgstr ""
  13208. #. type: lisp
  13209. #: guix-git/doc/guix.texi:8471
  13210. #, no-wrap
  13211. msgid ""
  13212. " ;; Happily use its 'mkdir-p' procedure.\n"
  13213. " (mkdir-p (string-append #$output \"/a/b/c\")))))\n"
  13214. msgstr ""
  13215. #. type: Plain text
  13216. #: guix-git/doc/guix.texi:8475
  13217. msgid "The remainder of this section is the reference for most of the utility procedures provided by @code{(guix build utils)}."
  13218. msgstr ""
  13219. #. type: subsection
  13220. #: guix-git/doc/guix.texi:8478
  13221. #, no-wrap
  13222. msgid "Dealing with Store File Names"
  13223. msgstr ""
  13224. #. type: Plain text
  13225. #: guix-git/doc/guix.texi:8481
  13226. msgid "This section documents procedures that deal with store file names."
  13227. msgstr ""
  13228. #. type: deffn
  13229. #: guix-git/doc/guix.texi:8482
  13230. #, no-wrap
  13231. msgid "{Scheme Procedure} %store-directory"
  13232. msgstr ""
  13233. #. type: deffn
  13234. #: guix-git/doc/guix.texi:8484
  13235. #, fuzzy
  13236. msgid "Return the directory name of the store."
  13237. msgstr "仓库的纯函数式接口。"
  13238. #. type: deffn
  13239. #: guix-git/doc/guix.texi:8486
  13240. #, no-wrap
  13241. msgid "{Scheme Procedure} store-file-name? @var{file}"
  13242. msgstr ""
  13243. #. type: deffn
  13244. #: guix-git/doc/guix.texi:8488
  13245. msgid "Return true if @var{file} is in the store."
  13246. msgstr ""
  13247. #. type: deffn
  13248. #: guix-git/doc/guix.texi:8490
  13249. #, no-wrap
  13250. msgid "{Scheme Procedure} strip-store-file-name @var{file}"
  13251. msgstr ""
  13252. #. type: deffn
  13253. #: guix-git/doc/guix.texi:8493
  13254. 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."
  13255. msgstr ""
  13256. #. type: deffn
  13257. #: guix-git/doc/guix.texi:8495
  13258. #, no-wrap
  13259. msgid "{Scheme Procedure} package-name->name+version @var{name}"
  13260. msgstr ""
  13261. #. type: deffn
  13262. #: guix-git/doc/guix.texi:8500
  13263. 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."
  13264. msgstr ""
  13265. #. type: subsection
  13266. #: guix-git/doc/guix.texi:8502
  13267. #, fuzzy, no-wrap
  13268. msgid "File Types"
  13269. msgstr "文件系统"
  13270. #. type: Plain text
  13271. #: guix-git/doc/guix.texi:8505
  13272. msgid "The procedures below deal with files and file types."
  13273. msgstr ""
  13274. #. type: deffn
  13275. #: guix-git/doc/guix.texi:8506
  13276. #, no-wrap
  13277. msgid "{Scheme Procedure} directory-exists? @var{dir}"
  13278. msgstr ""
  13279. #. type: deffn
  13280. #: guix-git/doc/guix.texi:8508
  13281. msgid "Return @code{#t} if @var{dir} exists and is a directory."
  13282. msgstr ""
  13283. #. type: deffn
  13284. #: guix-git/doc/guix.texi:8510
  13285. #, no-wrap
  13286. msgid "{Scheme Procedure} executable-file? @var{file}"
  13287. msgstr ""
  13288. #. type: deffn
  13289. #: guix-git/doc/guix.texi:8512
  13290. msgid "Return @code{#t} if @var{file} exists and is executable."
  13291. msgstr ""
  13292. #. type: deffn
  13293. #: guix-git/doc/guix.texi:8514
  13294. #, no-wrap
  13295. msgid "{Scheme Procedure} symbolic-link? @var{file}"
  13296. msgstr ""
  13297. #. type: deffn
  13298. #: guix-git/doc/guix.texi:8516
  13299. msgid "Return @code{#t} if @var{file} is a symbolic link (aka. a ``symlink'')."
  13300. msgstr ""
  13301. #. type: deffn
  13302. #: guix-git/doc/guix.texi:8518
  13303. #, no-wrap
  13304. msgid "{Scheme Procedure} elf-file? @var{file}"
  13305. msgstr ""
  13306. #. type: deffnx
  13307. #: guix-git/doc/guix.texi:8519
  13308. #, no-wrap
  13309. msgid "{Scheme Procedure} ar-file? @var{file}"
  13310. msgstr ""
  13311. #. type: deffnx
  13312. #: guix-git/doc/guix.texi:8520
  13313. #, no-wrap
  13314. msgid "{Scheme Procedure} gzip-file? @var{file}"
  13315. msgstr ""
  13316. #. type: deffn
  13317. #: guix-git/doc/guix.texi:8523
  13318. 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."
  13319. msgstr ""
  13320. #. type: deffn
  13321. #: guix-git/doc/guix.texi:8525
  13322. #, no-wrap
  13323. msgid "{Scheme Procedure} reset-gzip-timestamp @var{file} [#:keep-mtime? #t]"
  13324. msgstr ""
  13325. #. type: deffn
  13326. #: guix-git/doc/guix.texi:8529
  13327. 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."
  13328. msgstr ""
  13329. #. type: subsection
  13330. #: guix-git/doc/guix.texi:8531
  13331. #, no-wrap
  13332. msgid "File Manipulation"
  13333. msgstr ""
  13334. #. type: Plain text
  13335. #: guix-git/doc/guix.texi:8538
  13336. 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})."
  13337. msgstr ""
  13338. #. type: deffn
  13339. #: guix-git/doc/guix.texi:8539
  13340. #, no-wrap
  13341. msgid "{Scheme Syntax} with-directory-excursion @var{directory} @var{body}@dots{}"
  13342. msgstr ""
  13343. #. type: deffn
  13344. #: guix-git/doc/guix.texi:8541
  13345. msgid "Run @var{body} with @var{directory} as the process's current directory."
  13346. msgstr ""
  13347. #. type: deffn
  13348. #: guix-git/doc/guix.texi:8548
  13349. 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."
  13350. msgstr ""
  13351. #. type: deffn
  13352. #: guix-git/doc/guix.texi:8550
  13353. #, no-wrap
  13354. msgid "{Scheme Procedure} mkdir-p @var{dir}"
  13355. msgstr ""
  13356. #. type: deffn
  13357. #: guix-git/doc/guix.texi:8552
  13358. msgid "Create directory @var{dir} and all its ancestors."
  13359. msgstr ""
  13360. #. type: deffn
  13361. #: guix-git/doc/guix.texi:8554
  13362. #, no-wrap
  13363. msgid "{Scheme Procedure} install-file @var{file} @var{directory}"
  13364. msgstr ""
  13365. #. type: deffn
  13366. #: guix-git/doc/guix.texi:8557
  13367. msgid "Create @var{directory} if it does not exist and copy @var{file} in there under the same name."
  13368. msgstr ""
  13369. #. type: deffn
  13370. #: guix-git/doc/guix.texi:8559
  13371. #, no-wrap
  13372. msgid "{Scheme Procedure} make-file-writable @var{file}"
  13373. msgstr ""
  13374. #. type: deffn
  13375. #: guix-git/doc/guix.texi:8561
  13376. msgid "Make @var{file} writable for its owner."
  13377. msgstr ""
  13378. #. type: deffn
  13379. #: guix-git/doc/guix.texi:8563
  13380. #, no-wrap
  13381. msgid "{Scheme Procedure} copy-recursively @var{source} @var{destination} @"
  13382. msgstr ""
  13383. #. type: deffn
  13384. #: guix-git/doc/guix.texi:8570
  13385. 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."
  13386. msgstr ""
  13387. #. type: deffn
  13388. #: guix-git/doc/guix.texi:8572
  13389. #, no-wrap
  13390. msgid "{Scheme Procedure} delete-file-recursively @var{dir} @"
  13391. msgstr ""
  13392. #. type: deffn
  13393. #: guix-git/doc/guix.texi:8577
  13394. 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."
  13395. msgstr ""
  13396. #. type: deffn
  13397. #: guix-git/doc/guix.texi:8579
  13398. #, no-wrap
  13399. msgid "{Scheme Syntax} substitute* @var{file} @"
  13400. msgstr ""
  13401. #. type: deffn
  13402. #: guix-git/doc/guix.texi:8584
  13403. 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:"
  13404. msgstr ""
  13405. #. type: lisp
  13406. #: guix-git/doc/guix.texi:8591
  13407. #, no-wrap
  13408. msgid ""
  13409. "(substitute* file\n"
  13410. " ((\"hello\")\n"
  13411. " \"good morning\\n\")\n"
  13412. " ((\"foo([a-z]+)bar(.*)$\" all letters end)\n"
  13413. " (string-append \"baz\" letter end)))\n"
  13414. msgstr ""
  13415. #. type: deffn
  13416. #: guix-git/doc/guix.texi:8597
  13417. 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."
  13418. msgstr ""
  13419. #. type: deffn
  13420. #: guix-git/doc/guix.texi:8600
  13421. msgid "When one of the @var{match-var} is @code{_}, no variable is bound to the corresponding match substring."
  13422. msgstr ""
  13423. #. type: deffn
  13424. #: guix-git/doc/guix.texi:8603
  13425. msgid "Alternatively, @var{file} may be a list of file names, in which case they are all subject to the substitutions."
  13426. msgstr ""
  13427. #. type: deffn
  13428. #: guix-git/doc/guix.texi:8606
  13429. 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."
  13430. msgstr ""
  13431. #. type: subsection
  13432. #: guix-git/doc/guix.texi:8608
  13433. #, fuzzy, no-wrap
  13434. msgid "File Search"
  13435. msgstr "文件系统"
  13436. #. type: cindex
  13437. #: guix-git/doc/guix.texi:8610
  13438. #, no-wrap
  13439. msgid "file, searching"
  13440. msgstr ""
  13441. #. type: Plain text
  13442. #: guix-git/doc/guix.texi:8612
  13443. msgid "This section documents procedures to search and filter files."
  13444. msgstr ""
  13445. #. type: deffn
  13446. #: guix-git/doc/guix.texi:8613
  13447. #, no-wrap
  13448. msgid "{Scheme Procedure} file-name-predicate @var{regexp}"
  13449. msgstr ""
  13450. #. type: deffn
  13451. #: guix-git/doc/guix.texi:8616
  13452. msgid "Return a predicate that returns true when passed a file name whose base name matches @var{regexp}."
  13453. msgstr ""
  13454. #. type: deffn
  13455. #: guix-git/doc/guix.texi:8618
  13456. #, no-wrap
  13457. msgid "{Scheme Procedure} find-files @var{dir} [@var{pred}] @"
  13458. msgstr ""
  13459. #. type: deffn
  13460. #: guix-git/doc/guix.texi:8629
  13461. 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."
  13462. msgstr ""
  13463. #. type: Plain text
  13464. #: guix-git/doc/guix.texi:8633
  13465. msgid "Here are a few examples where we assume that the current directory is the root of the Guix source tree:"
  13466. msgstr ""
  13467. #. type: lisp
  13468. #: guix-git/doc/guix.texi:8638
  13469. #, no-wrap
  13470. msgid ""
  13471. ";; List all the regular files in the current directory.\n"
  13472. "(find-files \".\")\n"
  13473. "@result{} (\"./.dir-locals.el\" \"./.gitignore\" @dots{})\n"
  13474. "\n"
  13475. msgstr ""
  13476. #. type: lisp
  13477. #: guix-git/doc/guix.texi:8642
  13478. #, no-wrap
  13479. msgid ""
  13480. ";; List all the .scm files under gnu/services.\n"
  13481. "(find-files \"gnu/services\" \"\\\\.scm$\")\n"
  13482. "@result{} (\"gnu/services/admin.scm\" \"gnu/services/audio.scm\" @dots{})\n"
  13483. "\n"
  13484. msgstr ""
  13485. #. type: lisp
  13486. #: guix-git/doc/guix.texi:8646
  13487. #, no-wrap
  13488. msgid ""
  13489. ";; List ar files in the current directory.\n"
  13490. "(find-files \".\" (lambda (file stat) (ar-file? file)))\n"
  13491. "@result{} (\"./libformat.a\" \"./libstore.a\" @dots{})\n"
  13492. msgstr ""
  13493. #. type: deffn
  13494. #: guix-git/doc/guix.texi:8648
  13495. #, no-wrap
  13496. msgid "{Scheme Procedure} which @var{program}"
  13497. msgstr ""
  13498. #. type: deffn
  13499. #: guix-git/doc/guix.texi:8651
  13500. msgid "Return the complete file name for @var{program} as found in @code{$PATH}, or @code{#f} if @var{program} could not be found."
  13501. msgstr ""
  13502. #. type: Plain text
  13503. #: guix-git/doc/guix.texi:8662
  13504. 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})."
  13505. msgstr ""
  13506. #. type: Plain text
  13507. #: guix-git/doc/guix.texi:8666
  13508. 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."
  13509. msgstr ""
  13510. #. type: cindex
  13511. #: guix-git/doc/guix.texi:8667
  13512. #, fuzzy, no-wrap
  13513. msgid "build phases, modifying"
  13514. msgstr "构建后台进程"
  13515. #. type: deffn
  13516. #: guix-git/doc/guix.texi:8668
  13517. #, no-wrap
  13518. msgid "{Scheme Syntax} modify-phases @var{phases} @var{clause}@dots{}"
  13519. msgstr ""
  13520. #. type: deffn
  13521. #: guix-git/doc/guix.texi:8671
  13522. msgid "Modify @var{phases} sequentially as per each @var{clause}, which may have one of the following forms:"
  13523. msgstr ""
  13524. #. type: lisp
  13525. #: guix-git/doc/guix.texi:8677
  13526. #, no-wrap
  13527. msgid ""
  13528. "(delete @var{old-phase-name})\n"
  13529. "(replace @var{old-phase-name} @var{new-phase})\n"
  13530. "(add-before @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  13531. "(add-after @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  13532. msgstr ""
  13533. #. type: deffn
  13534. #: guix-git/doc/guix.texi:8681
  13535. msgid "Where every @var{phase-name} above is an expression evaluating to a symbol, and @var{new-phase} an expression evaluating to a procedure."
  13536. msgstr ""
  13537. #. type: Plain text
  13538. #: guix-git/doc/guix.texi:8692
  13539. 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:"
  13540. msgstr ""
  13541. #. type: lisp
  13542. #: guix-git/doc/guix.texi:8706
  13543. #, no-wrap
  13544. msgid ""
  13545. "(modify-phases %standard-phases\n"
  13546. " (add-after 'install 'fix-egrep-and-fgrep\n"
  13547. " ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its\n"
  13548. " ;; absolute file name instead of searching for it in $PATH.\n"
  13549. " (lambda* (#:key outputs #:allow-other-keys)\n"
  13550. " (let* ((out (assoc-ref outputs \"out\"))\n"
  13551. " (bin (string-append out \"/bin\")))\n"
  13552. " (substitute* (list (string-append bin \"/egrep\")\n"
  13553. " (string-append bin \"/fgrep\"))\n"
  13554. " ((\"^exec grep\")\n"
  13555. " (string-append \"exec \" bin \"/grep\")))\n"
  13556. " #t))))\n"
  13557. msgstr ""
  13558. #. type: Plain text
  13559. #: guix-git/doc/guix.texi:8713
  13560. 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:"
  13561. msgstr ""
  13562. #. type: lisp
  13563. #: guix-git/doc/guix.texi:8726
  13564. #, no-wrap
  13565. msgid ""
  13566. "(modify-phases %standard-phases\n"
  13567. " (delete 'configure) ;no 'configure' script\n"
  13568. " (replace 'install\n"
  13569. " (lambda* (#:key outputs #:allow-other-keys)\n"
  13570. " ;; The package's Makefile doesn't provide an \"install\"\n"
  13571. " ;; rule so do it by ourselves.\n"
  13572. " (let ((bin (string-append (assoc-ref outputs \"out\")\n"
  13573. " \"/bin\")))\n"
  13574. " (install-file \"footswitch\" bin)\n"
  13575. " (install-file \"scythe\" bin)\n"
  13576. " #t))))\n"
  13577. msgstr ""
  13578. #. type: cindex
  13579. #: guix-git/doc/guix.texi:8734
  13580. #, no-wrap
  13581. msgid "store items"
  13582. msgstr ""
  13583. #. type: cindex
  13584. #: guix-git/doc/guix.texi:8735
  13585. #, no-wrap
  13586. msgid "store paths"
  13587. msgstr ""
  13588. #. type: Plain text
  13589. #: guix-git/doc/guix.texi:8746
  13590. 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}."
  13591. msgstr ""
  13592. #. type: Plain text
  13593. #: guix-git/doc/guix.texi:8751
  13594. 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."
  13595. msgstr ""
  13596. #. type: quotation
  13597. #: guix-git/doc/guix.texi:8756
  13598. 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})."
  13599. msgstr ""
  13600. #. type: quotation
  13601. #: guix-git/doc/guix.texi:8760
  13602. 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."
  13603. msgstr ""
  13604. #. type: Plain text
  13605. #: guix-git/doc/guix.texi:8767
  13606. 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."
  13607. msgstr ""
  13608. #. type: defvr
  13609. #: guix-git/doc/guix.texi:8768
  13610. #, no-wrap
  13611. msgid "{Environment Variable} GUIX_DAEMON_SOCKET"
  13612. msgstr ""
  13613. #. type: defvr
  13614. #: guix-git/doc/guix.texi:8773
  13615. 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:"
  13616. msgstr ""
  13617. #. type: code{#1}
  13618. #: guix-git/doc/guix.texi:8775 guix-git/doc/guix.texi:24475
  13619. #, no-wrap
  13620. msgid "file"
  13621. msgstr ""
  13622. #. type: itemx
  13623. #: guix-git/doc/guix.texi:8776
  13624. #, no-wrap
  13625. msgid "unix"
  13626. msgstr ""
  13627. #. type: table
  13628. #: guix-git/doc/guix.texi:8780
  13629. msgid "These are for Unix-domain sockets. @code{file:///var/guix/daemon-socket/socket} is equivalent to @file{/var/guix/daemon-socket/socket}."
  13630. msgstr ""
  13631. #. type: item
  13632. #: guix-git/doc/guix.texi:8781
  13633. #, no-wrap
  13634. msgid "guix"
  13635. msgstr ""
  13636. #. type: table
  13637. #: guix-git/doc/guix.texi:8789
  13638. 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):"
  13639. msgstr ""
  13640. #. type: example
  13641. #: guix-git/doc/guix.texi:8792
  13642. #, no-wrap
  13643. msgid "guix://master.guix.example.org:1234\n"
  13644. msgstr ""
  13645. #. type: table
  13646. #: guix-git/doc/guix.texi:8797
  13647. 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}."
  13648. msgstr ""
  13649. #. type: table
  13650. #: guix-git/doc/guix.texi:8801
  13651. 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}})."
  13652. msgstr ""
  13653. #. type: item
  13654. #: guix-git/doc/guix.texi:8802
  13655. #, no-wrap
  13656. msgid "ssh"
  13657. msgstr ""
  13658. #. type: cindex
  13659. #: guix-git/doc/guix.texi:8803
  13660. #, no-wrap
  13661. msgid "SSH access to build daemons"
  13662. msgstr ""
  13663. #. type: table
  13664. #: guix-git/doc/guix.texi:8809
  13665. 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:"
  13666. msgstr ""
  13667. #. type: example
  13668. #: guix-git/doc/guix.texi:8812
  13669. #, no-wrap
  13670. msgid "ssh://charlie@@guix.example.org:22\n"
  13671. msgstr ""
  13672. #. type: table
  13673. #: guix-git/doc/guix.texi:8816
  13674. msgid "As for @command{guix copy}, the usual OpenSSH client configuration files are honored (@pxref{Invoking guix copy})."
  13675. msgstr ""
  13676. #. type: defvr
  13677. #: guix-git/doc/guix.texi:8819
  13678. msgid "Additional URI schemes may be supported in the future."
  13679. msgstr ""
  13680. #. type: quotation
  13681. #: guix-git/doc/guix.texi:8826
  13682. 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})."
  13683. msgstr ""
  13684. #. type: deffn
  13685. #: guix-git/doc/guix.texi:8829
  13686. #, no-wrap
  13687. msgid "{Scheme Procedure} open-connection [@var{uri}] [#:reserve-space? #t]"
  13688. msgstr ""
  13689. #. type: deffn
  13690. #: guix-git/doc/guix.texi:8834
  13691. 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."
  13692. msgstr ""
  13693. #. type: deffn
  13694. #: guix-git/doc/guix.texi:8837
  13695. msgid "@var{file} defaults to @code{%default-socket-path}, which is the normal location given the options that were passed to @command{configure}."
  13696. msgstr ""
  13697. #. type: deffn
  13698. #: guix-git/doc/guix.texi:8839
  13699. #, no-wrap
  13700. msgid "{Scheme Procedure} close-connection @var{server}"
  13701. msgstr ""
  13702. #. type: deffn
  13703. #: guix-git/doc/guix.texi:8841
  13704. msgid "Close the connection to @var{server}."
  13705. msgstr ""
  13706. #. type: defvr
  13707. #: guix-git/doc/guix.texi:8843
  13708. #, no-wrap
  13709. msgid "{Scheme Variable} current-build-output-port"
  13710. msgstr ""
  13711. #. type: defvr
  13712. #: guix-git/doc/guix.texi:8846
  13713. 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."
  13714. msgstr ""
  13715. #. type: Plain text
  13716. #: guix-git/doc/guix.texi:8850
  13717. msgid "Procedures that make RPCs all take a server object as their first argument."
  13718. msgstr ""
  13719. #. type: deffn
  13720. #: guix-git/doc/guix.texi:8851
  13721. #, no-wrap
  13722. msgid "{Scheme Procedure} valid-path? @var{server} @var{path}"
  13723. msgstr ""
  13724. #. type: cindex
  13725. #: guix-git/doc/guix.texi:8852
  13726. #, no-wrap
  13727. msgid "invalid store items"
  13728. msgstr ""
  13729. #. type: deffn
  13730. #: guix-git/doc/guix.texi:8857
  13731. 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)."
  13732. msgstr ""
  13733. #. type: deffn
  13734. #: guix-git/doc/guix.texi:8860
  13735. msgid "A @code{&store-protocol-error} condition is raised if @var{path} is not prefixed by the store directory (@file{/gnu/store})."
  13736. msgstr ""
  13737. #. type: deffn
  13738. #: guix-git/doc/guix.texi:8862
  13739. #, no-wrap
  13740. msgid "{Scheme Procedure} add-text-to-store @var{server} @var{name} @var{text} [@var{references}]"
  13741. msgstr ""
  13742. #. type: deffn
  13743. #: guix-git/doc/guix.texi:8866
  13744. 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."
  13745. msgstr ""
  13746. #. type: deffn
  13747. #: guix-git/doc/guix.texi:8868
  13748. #, no-wrap
  13749. msgid "{Scheme Procedure} build-derivations @var{store} @var{derivations} @"
  13750. msgstr ""
  13751. #. type: deffn
  13752. #: guix-git/doc/guix.texi:8873
  13753. 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."
  13754. msgstr ""
  13755. #. type: Plain text
  13756. #: guix-git/doc/guix.texi:8879
  13757. 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})."
  13758. msgstr ""
  13759. #. type: i{#1}
  13760. #: guix-git/doc/guix.texi:8882
  13761. msgid "This section is currently incomplete."
  13762. msgstr ""
  13763. #. type: cindex
  13764. #: guix-git/doc/guix.texi:8886
  13765. #, no-wrap
  13766. msgid "derivations"
  13767. msgstr ""
  13768. #. type: Plain text
  13769. #: guix-git/doc/guix.texi:8890
  13770. 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:"
  13771. msgstr ""
  13772. #. type: itemize
  13773. #: guix-git/doc/guix.texi:8895
  13774. msgid "The outputs of the derivation---derivations produce at least one file or directory in the store, but may produce more."
  13775. msgstr ""
  13776. #. type: cindex
  13777. #: guix-git/doc/guix.texi:8897
  13778. #, no-wrap
  13779. msgid "build-time dependencies"
  13780. msgstr ""
  13781. #. type: cindex
  13782. #: guix-git/doc/guix.texi:8898
  13783. #, no-wrap
  13784. msgid "dependencies, build-time"
  13785. msgstr ""
  13786. #. type: itemize
  13787. #: guix-git/doc/guix.texi:8902
  13788. 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.)."
  13789. msgstr ""
  13790. #. type: itemize
  13791. #: guix-git/doc/guix.texi:8905
  13792. msgid "The system type targeted by the derivation---e.g., @code{x86_64-linux}."
  13793. msgstr ""
  13794. #. type: itemize
  13795. #: guix-git/doc/guix.texi:8909
  13796. msgid "The file name of a build script in the store, along with the arguments to be passed."
  13797. msgstr ""
  13798. #. type: itemize
  13799. #: guix-git/doc/guix.texi:8912
  13800. msgid "A list of environment variables to be defined."
  13801. msgstr ""
  13802. #. type: cindex
  13803. #: guix-git/doc/guix.texi:8915
  13804. #, no-wrap
  13805. msgid "derivation path"
  13806. msgstr ""
  13807. #. type: Plain text
  13808. #: guix-git/doc/guix.texi:8923
  13809. 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})."
  13810. msgstr ""
  13811. #. type: cindex
  13812. #: guix-git/doc/guix.texi:8924
  13813. #, no-wrap
  13814. msgid "fixed-output derivations"
  13815. msgstr ""
  13816. #. type: Plain text
  13817. #: guix-git/doc/guix.texi:8931
  13818. 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."
  13819. msgstr ""
  13820. #. type: item
  13821. #: guix-git/doc/guix.texi:8932 guix-git/doc/guix.texi:12392
  13822. #, no-wrap
  13823. msgid "references"
  13824. msgstr ""
  13825. #. type: cindex
  13826. #: guix-git/doc/guix.texi:8933
  13827. #, no-wrap
  13828. msgid "run-time dependencies"
  13829. msgstr ""
  13830. #. type: cindex
  13831. #: guix-git/doc/guix.texi:8934
  13832. #, no-wrap
  13833. msgid "dependencies, run-time"
  13834. msgstr ""
  13835. #. type: Plain text
  13836. #: guix-git/doc/guix.texi:8941
  13837. 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."
  13838. msgstr ""
  13839. #. type: Plain text
  13840. #: guix-git/doc/guix.texi:8946
  13841. 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:"
  13842. msgstr ""
  13843. #. type: deffn
  13844. #: guix-git/doc/guix.texi:8947
  13845. #, no-wrap
  13846. msgid "{Scheme Procedure} derivation @var{store} @var{name} @var{builder} @"
  13847. msgstr ""
  13848. #. type: deffn
  13849. #: guix-git/doc/guix.texi:8956
  13850. 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."
  13851. msgstr ""
  13852. #. type: deffn
  13853. #: guix-git/doc/guix.texi:8963
  13854. 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."
  13855. msgstr ""
  13856. #. type: deffn
  13857. #: guix-git/doc/guix.texi:8968
  13858. 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."
  13859. msgstr ""
  13860. #. type: deffn
  13861. #: guix-git/doc/guix.texi:8973
  13862. 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."
  13863. msgstr ""
  13864. #. type: deffn
  13865. #: guix-git/doc/guix.texi:8980
  13866. 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."
  13867. msgstr ""
  13868. #. type: deffn
  13869. #: guix-git/doc/guix.texi:8985
  13870. 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."
  13871. msgstr ""
  13872. #. type: deffn
  13873. #: guix-git/doc/guix.texi:8990
  13874. 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."
  13875. msgstr ""
  13876. #. type: deffn
  13877. #: guix-git/doc/guix.texi:8993
  13878. msgid "@var{properties} must be an association list describing ``properties'' of the derivation. It is kept as-is, uninterpreted, in the derivation."
  13879. msgstr ""
  13880. #. type: Plain text
  13881. #: guix-git/doc/guix.texi:8999
  13882. 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:"
  13883. msgstr ""
  13884. #. type: lisp
  13885. #: guix-git/doc/guix.texi:9004
  13886. #, no-wrap
  13887. msgid ""
  13888. "(use-modules (guix utils)\n"
  13889. " (guix store)\n"
  13890. " (guix derivations))\n"
  13891. "\n"
  13892. msgstr ""
  13893. #. type: lisp
  13894. #: guix-git/doc/guix.texi:9013
  13895. #, no-wrap
  13896. msgid ""
  13897. "(let ((builder ; add the Bash script to the store\n"
  13898. " (add-text-to-store store \"my-builder.sh\"\n"
  13899. " \"echo hello world > $out\\n\" '())))\n"
  13900. " (derivation store \"foo\"\n"
  13901. " bash `(\"-e\" ,builder)\n"
  13902. " #:inputs `((,bash) (,builder))\n"
  13903. " #:env-vars '((\"HOME\" . \"/homeless\"))))\n"
  13904. "@result{} #<derivation /gnu/store/@dots{}-foo.drv => /gnu/store/@dots{}-foo>\n"
  13905. msgstr ""
  13906. #. type: Plain text
  13907. #: guix-git/doc/guix.texi:9020
  13908. 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}."
  13909. msgstr ""
  13910. #. type: Plain text
  13911. #: guix-git/doc/guix.texi:9025
  13912. 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}."
  13913. msgstr ""
  13914. #. type: deffn
  13915. #: guix-git/doc/guix.texi:9026
  13916. #, no-wrap
  13917. msgid "{Scheme Procedure} build-expression->derivation @var{store} @"
  13918. msgstr ""
  13919. #. type: deffn
  13920. #: guix-git/doc/guix.texi:9042
  13921. 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))}."
  13922. msgstr ""
  13923. #. type: deffn
  13924. #: guix-git/doc/guix.texi:9050
  13925. 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."
  13926. msgstr ""
  13927. #. type: deffn
  13928. #: guix-git/doc/guix.texi:9054
  13929. 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."
  13930. msgstr ""
  13931. #. type: deffn
  13932. #: guix-git/doc/guix.texi:9059
  13933. 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?}."
  13934. msgstr ""
  13935. #. type: Plain text
  13936. #: guix-git/doc/guix.texi:9064
  13937. msgid "Here's an example of a single-output derivation that creates a directory containing one file:"
  13938. msgstr ""
  13939. #. type: lisp
  13940. #: guix-git/doc/guix.texi:9072
  13941. #, no-wrap
  13942. msgid ""
  13943. "(let ((builder '(let ((out (assoc-ref %outputs \"out\")))\n"
  13944. " (mkdir out) ; create /gnu/store/@dots{}-goo\n"
  13945. " (call-with-output-file (string-append out \"/test\")\n"
  13946. " (lambda (p)\n"
  13947. " (display '(hello guix) p))))))\n"
  13948. " (build-expression->derivation store \"goo\" builder))\n"
  13949. "\n"
  13950. msgstr ""
  13951. #. type: lisp
  13952. #: guix-git/doc/guix.texi:9074
  13953. #, no-wrap
  13954. msgid "@result{} #<derivation /gnu/store/@dots{}-goo.drv => @dots{}>\n"
  13955. msgstr ""
  13956. #. type: cindex
  13957. #: guix-git/doc/guix.texi:9080
  13958. #, no-wrap
  13959. msgid "monad"
  13960. msgstr ""
  13961. #. type: Plain text
  13962. #: guix-git/doc/guix.texi:9086
  13963. 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."
  13964. msgstr ""
  13965. #. type: Plain text
  13966. #: guix-git/doc/guix.texi:9092
  13967. 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."
  13968. msgstr ""
  13969. #. type: cindex
  13970. #: guix-git/doc/guix.texi:9093
  13971. #, no-wrap
  13972. msgid "monadic values"
  13973. msgstr ""
  13974. #. type: cindex
  13975. #: guix-git/doc/guix.texi:9094
  13976. #, no-wrap
  13977. msgid "monadic functions"
  13978. msgstr ""
  13979. #. type: Plain text
  13980. #: guix-git/doc/guix.texi:9104
  13981. 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}."
  13982. msgstr ""
  13983. #. type: Plain text
  13984. #: guix-git/doc/guix.texi:9106
  13985. msgid "Consider this ``normal'' procedure:"
  13986. msgstr ""
  13987. #. type: lisp
  13988. #: guix-git/doc/guix.texi:9115
  13989. #, no-wrap
  13990. msgid ""
  13991. "(define (sh-symlink store)\n"
  13992. " ;; Return a derivation that symlinks the 'bash' executable.\n"
  13993. " (let* ((drv (package-derivation store bash))\n"
  13994. " (out (derivation->output-path drv))\n"
  13995. " (sh (string-append out \"/bin/bash\")))\n"
  13996. " (build-expression->derivation store \"sh\"\n"
  13997. " `(symlink ,sh %output))))\n"
  13998. msgstr ""
  13999. #. type: Plain text
  14000. #: guix-git/doc/guix.texi:9119
  14001. msgid "Using @code{(guix monads)} and @code{(guix gexp)}, it may be rewritten as a monadic function:"
  14002. msgstr ""
  14003. #. type: lisp
  14004. #: guix-git/doc/guix.texi:9127
  14005. #, no-wrap
  14006. msgid ""
  14007. "(define (sh-symlink)\n"
  14008. " ;; Same, but return a monadic value.\n"
  14009. " (mlet %store-monad ((drv (package->derivation bash)))\n"
  14010. " (gexp->derivation \"sh\"\n"
  14011. " #~(symlink (string-append #$drv \"/bin/bash\")\n"
  14012. " #$output))))\n"
  14013. msgstr ""
  14014. #. type: Plain text
  14015. #: guix-git/doc/guix.texi:9134
  14016. 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}."
  14017. msgstr ""
  14018. #. type: Plain text
  14019. #: guix-git/doc/guix.texi:9138
  14020. 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}):"
  14021. msgstr ""
  14022. #. type: lisp
  14023. #: guix-git/doc/guix.texi:9144
  14024. #, no-wrap
  14025. msgid ""
  14026. "(define (sh-symlink)\n"
  14027. " (gexp->derivation \"sh\"\n"
  14028. " #~(symlink (string-append #$bash \"/bin/bash\")\n"
  14029. " #$output)))\n"
  14030. msgstr ""
  14031. #. type: Plain text
  14032. #: guix-git/doc/guix.texi:9153
  14033. 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}:"
  14034. msgstr ""
  14035. #. type: lisp
  14036. #: guix-git/doc/guix.texi:9157
  14037. #, no-wrap
  14038. msgid ""
  14039. "(run-with-store (open-connection) (sh-symlink))\n"
  14040. "@result{} /gnu/store/...-sh-symlink\n"
  14041. msgstr ""
  14042. #. type: Plain text
  14043. #: guix-git/doc/guix.texi:9163
  14044. 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:"
  14045. msgstr ""
  14046. #. type: example
  14047. #: guix-git/doc/guix.texi:9167
  14048. #, no-wrap
  14049. msgid ""
  14050. "scheme@@(guile-user)> ,run-in-store (package->derivation hello)\n"
  14051. "$1 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  14052. msgstr ""
  14053. #. type: Plain text
  14054. #: guix-git/doc/guix.texi:9171
  14055. msgid "The latter enters a recursive REPL, where all the return values are automatically run through the store:"
  14056. msgstr ""
  14057. #. type: example
  14058. #: guix-git/doc/guix.texi:9180
  14059. #, no-wrap
  14060. msgid ""
  14061. "scheme@@(guile-user)> ,enter-store-monad\n"
  14062. "store-monad@@(guile-user) [1]> (package->derivation hello)\n"
  14063. "$2 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  14064. "store-monad@@(guile-user) [1]> (text-file \"foo\" \"Hello!\")\n"
  14065. "$3 = \"/gnu/store/@dots{}-foo\"\n"
  14066. "store-monad@@(guile-user) [1]> ,q\n"
  14067. "scheme@@(guile-user)>\n"
  14068. msgstr ""
  14069. #. type: Plain text
  14070. #: guix-git/doc/guix.texi:9185
  14071. msgid "Note that non-monadic values cannot be returned in the @code{store-monad} REPL."
  14072. msgstr ""
  14073. #. type: Plain text
  14074. #: guix-git/doc/guix.texi:9188
  14075. msgid "The main syntactic forms to deal with monads in general are provided by the @code{(guix monads)} module and are described below."
  14076. msgstr ""
  14077. #. type: deffn
  14078. #: guix-git/doc/guix.texi:9189
  14079. #, no-wrap
  14080. msgid "{Scheme Syntax} with-monad @var{monad} @var{body} ..."
  14081. msgstr ""
  14082. #. type: deffn
  14083. #: guix-git/doc/guix.texi:9192
  14084. msgid "Evaluate any @code{>>=} or @code{return} forms in @var{body} as being in @var{monad}."
  14085. msgstr ""
  14086. #. type: deffn
  14087. #: guix-git/doc/guix.texi:9194
  14088. #, no-wrap
  14089. msgid "{Scheme Syntax} return @var{val}"
  14090. msgstr ""
  14091. #. type: deffn
  14092. #: guix-git/doc/guix.texi:9196
  14093. msgid "Return a monadic value that encapsulates @var{val}."
  14094. msgstr ""
  14095. #. type: deffn
  14096. #: guix-git/doc/guix.texi:9198
  14097. #, no-wrap
  14098. msgid "{Scheme Syntax} >>= @var{mval} @var{mproc} ..."
  14099. msgstr ""
  14100. #. type: deffn
  14101. #: guix-git/doc/guix.texi:9205
  14102. 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:"
  14103. msgstr ""
  14104. #. type: lisp
  14105. #: guix-git/doc/guix.texi:9213
  14106. #, no-wrap
  14107. msgid ""
  14108. "(run-with-state\n"
  14109. " (with-monad %state-monad\n"
  14110. " (>>= (return 1)\n"
  14111. " (lambda (x) (return (+ 1 x)))\n"
  14112. " (lambda (x) (return (* 2 x)))))\n"
  14113. " 'some-state)\n"
  14114. "\n"
  14115. msgstr ""
  14116. #. type: lisp
  14117. #: guix-git/doc/guix.texi:9216
  14118. #, no-wrap
  14119. msgid ""
  14120. "@result{} 4\n"
  14121. "@result{} some-state\n"
  14122. msgstr ""
  14123. #. type: deffn
  14124. #: guix-git/doc/guix.texi:9219
  14125. #, no-wrap
  14126. msgid "{Scheme Syntax} mlet @var{monad} ((@var{var} @var{mval}) ...) @"
  14127. msgstr ""
  14128. #. type: deffn
  14129. #: guix-git/doc/guix.texi:9221
  14130. msgid "@var{body} ..."
  14131. msgstr ""
  14132. #. type: deffnx
  14133. #: guix-git/doc/guix.texi:9221
  14134. #, no-wrap
  14135. msgid "{Scheme Syntax} mlet* @var{monad} ((@var{var} @var{mval}) ...) @"
  14136. msgstr ""
  14137. #. type: deffn
  14138. #: guix-git/doc/guix.texi:9233
  14139. 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}."
  14140. msgstr ""
  14141. #. type: deffn
  14142. #: guix-git/doc/guix.texi:9236
  14143. msgid "@code{mlet*} is to @code{mlet} what @code{let*} is to @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual})."
  14144. msgstr ""
  14145. #. type: deffn
  14146. #: guix-git/doc/guix.texi:9238
  14147. #, no-wrap
  14148. msgid "{Scheme System} mbegin @var{monad} @var{mexp} ..."
  14149. msgstr ""
  14150. #. type: deffn
  14151. #: guix-git/doc/guix.texi:9242
  14152. 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."
  14153. msgstr ""
  14154. #. type: deffn
  14155. #: guix-git/doc/guix.texi:9246
  14156. 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."
  14157. msgstr ""
  14158. #. type: deffn
  14159. #: guix-git/doc/guix.texi:9248
  14160. #, no-wrap
  14161. msgid "{Scheme System} mwhen @var{condition} @var{mexp0} @var{mexp*} ..."
  14162. msgstr ""
  14163. #. type: deffn
  14164. #: guix-git/doc/guix.texi:9253
  14165. 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."
  14166. msgstr ""
  14167. #. type: deffn
  14168. #: guix-git/doc/guix.texi:9255
  14169. #, no-wrap
  14170. msgid "{Scheme System} munless @var{condition} @var{mexp0} @var{mexp*} ..."
  14171. msgstr ""
  14172. #. type: deffn
  14173. #: guix-git/doc/guix.texi:9260
  14174. 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."
  14175. msgstr ""
  14176. #. type: cindex
  14177. #: guix-git/doc/guix.texi:9262
  14178. #, no-wrap
  14179. msgid "state monad"
  14180. msgstr ""
  14181. #. type: Plain text
  14182. #: guix-git/doc/guix.texi:9266
  14183. 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."
  14184. msgstr ""
  14185. #. type: defvr
  14186. #: guix-git/doc/guix.texi:9267
  14187. #, no-wrap
  14188. msgid "{Scheme Variable} %state-monad"
  14189. msgstr ""
  14190. #. type: defvr
  14191. #: guix-git/doc/guix.texi:9270
  14192. msgid "The state monad. Procedures in the state monad can access and change the state that is threaded."
  14193. msgstr ""
  14194. #. type: defvr
  14195. #: guix-git/doc/guix.texi:9274
  14196. 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:"
  14197. msgstr ""
  14198. #. type: lisp
  14199. #: guix-git/doc/guix.texi:9281
  14200. #, no-wrap
  14201. msgid ""
  14202. "(define (square x)\n"
  14203. " (mlet %state-monad ((count (current-state)))\n"
  14204. " (mbegin %state-monad\n"
  14205. " (set-current-state (+ 1 count))\n"
  14206. " (return (* x x)))))\n"
  14207. "\n"
  14208. msgstr ""
  14209. #. type: lisp
  14210. #: guix-git/doc/guix.texi:9285
  14211. #, no-wrap
  14212. msgid ""
  14213. "(run-with-state (sequence %state-monad (map square (iota 3))) 0)\n"
  14214. "@result{} (0 1 4)\n"
  14215. "@result{} 3\n"
  14216. msgstr ""
  14217. #. type: defvr
  14218. #: guix-git/doc/guix.texi:9289
  14219. msgid "When ``run'' through @code{%state-monad}, we obtain that additional state value, which is the number of @code{square} calls."
  14220. msgstr ""
  14221. #. type: deffn
  14222. #: guix-git/doc/guix.texi:9291
  14223. #, no-wrap
  14224. msgid "{Monadic Procedure} current-state"
  14225. msgstr ""
  14226. #. type: deffn
  14227. #: guix-git/doc/guix.texi:9293
  14228. msgid "Return the current state as a monadic value."
  14229. msgstr ""
  14230. #. type: deffn
  14231. #: guix-git/doc/guix.texi:9295
  14232. #, no-wrap
  14233. msgid "{Monadic Procedure} set-current-state @var{value}"
  14234. msgstr ""
  14235. #. type: deffn
  14236. #: guix-git/doc/guix.texi:9298
  14237. msgid "Set the current state to @var{value} and return the previous state as a monadic value."
  14238. msgstr ""
  14239. #. type: deffn
  14240. #: guix-git/doc/guix.texi:9300
  14241. #, no-wrap
  14242. msgid "{Monadic Procedure} state-push @var{value}"
  14243. msgstr ""
  14244. #. type: deffn
  14245. #: guix-git/doc/guix.texi:9303
  14246. msgid "Push @var{value} to the current state, which is assumed to be a list, and return the previous state as a monadic value."
  14247. msgstr ""
  14248. #. type: deffn
  14249. #: guix-git/doc/guix.texi:9305
  14250. #, no-wrap
  14251. msgid "{Monadic Procedure} state-pop"
  14252. msgstr ""
  14253. #. type: deffn
  14254. #: guix-git/doc/guix.texi:9308
  14255. msgid "Pop a value from the current state and return it as a monadic value. The state is assumed to be a list."
  14256. msgstr ""
  14257. #. type: deffn
  14258. #: guix-git/doc/guix.texi:9310
  14259. #, no-wrap
  14260. msgid "{Scheme Procedure} run-with-state @var{mval} [@var{state}]"
  14261. msgstr ""
  14262. #. type: deffn
  14263. #: guix-git/doc/guix.texi:9313
  14264. msgid "Run monadic value @var{mval} starting with @var{state} as the initial state. Return two values: the resulting value, and the resulting state."
  14265. msgstr ""
  14266. #. type: Plain text
  14267. #: guix-git/doc/guix.texi:9317
  14268. msgid "The main interface to the store monad, provided by the @code{(guix store)} module, is as follows."
  14269. msgstr ""
  14270. #. type: defvr
  14271. #: guix-git/doc/guix.texi:9318
  14272. #, no-wrap
  14273. msgid "{Scheme Variable} %store-monad"
  14274. msgstr ""
  14275. #. type: defvr
  14276. #: guix-git/doc/guix.texi:9320
  14277. msgid "The store monad---an alias for @code{%state-monad}."
  14278. msgstr ""
  14279. #. type: defvr
  14280. #: guix-git/doc/guix.texi:9324
  14281. 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)."
  14282. msgstr ""
  14283. #. type: deffn
  14284. #: guix-git/doc/guix.texi:9326
  14285. #, no-wrap
  14286. msgid "{Scheme Procedure} run-with-store @var{store} @var{mval} [#:guile-for-build] [#:system (%current-system)]"
  14287. msgstr ""
  14288. #. type: deffn
  14289. #: guix-git/doc/guix.texi:9329
  14290. msgid "Run @var{mval}, a monadic value in the store monad, in @var{store}, an open store connection."
  14291. msgstr ""
  14292. #. type: deffn
  14293. #: guix-git/doc/guix.texi:9331
  14294. #, no-wrap
  14295. msgid "{Monadic Procedure} text-file @var{name} @var{text} [@var{references}]"
  14296. msgstr ""
  14297. #. type: deffn
  14298. #: guix-git/doc/guix.texi:9335
  14299. 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."
  14300. msgstr ""
  14301. #. type: deffn
  14302. #: guix-git/doc/guix.texi:9337
  14303. #, no-wrap
  14304. msgid "{Monadic Procedure} binary-file @var{name} @var{data} [@var{references}]"
  14305. msgstr ""
  14306. #. type: deffn
  14307. #: guix-git/doc/guix.texi:9341
  14308. 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."
  14309. msgstr ""
  14310. #. type: deffn
  14311. #: guix-git/doc/guix.texi:9343
  14312. #, no-wrap
  14313. msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
  14314. msgstr ""
  14315. #. type: deffn
  14316. #: guix-git/doc/guix.texi:9348
  14317. 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."
  14318. msgstr ""
  14319. #. type: deffn
  14320. #: guix-git/doc/guix.texi:9352 guix-git/doc/guix.texi:9775
  14321. 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."
  14322. msgstr ""
  14323. #. type: deffn
  14324. #: guix-git/doc/guix.texi:9357 guix-git/doc/guix.texi:9780
  14325. 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."
  14326. msgstr ""
  14327. #. type: deffn
  14328. #: guix-git/doc/guix.texi:9359
  14329. msgid "The example below adds a file to the store, under two different names:"
  14330. msgstr ""
  14331. #. type: lisp
  14332. #: guix-git/doc/guix.texi:9365
  14333. #, no-wrap
  14334. msgid ""
  14335. "(run-with-store (open-connection)\n"
  14336. " (mlet %store-monad ((a (interned-file \"README\"))\n"
  14337. " (b (interned-file \"README\" \"LEGU-MIN\")))\n"
  14338. " (return (list a b))))\n"
  14339. "\n"
  14340. msgstr ""
  14341. #. type: lisp
  14342. #: guix-git/doc/guix.texi:9367
  14343. #, no-wrap
  14344. msgid "@result{} (\"/gnu/store/rwm@dots{}-README\" \"/gnu/store/44i@dots{}-LEGU-MIN\")\n"
  14345. msgstr ""
  14346. #. type: Plain text
  14347. #: guix-git/doc/guix.texi:9373
  14348. msgid "The @code{(guix packages)} module exports the following package-related monadic procedures:"
  14349. msgstr ""
  14350. #. type: deffn
  14351. #: guix-git/doc/guix.texi:9374
  14352. #, no-wrap
  14353. msgid "{Monadic Procedure} package-file @var{package} [@var{file}] @"
  14354. msgstr ""
  14355. #. type: deffn
  14356. #: guix-git/doc/guix.texi:9382
  14357. 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."
  14358. msgstr ""
  14359. #. type: deffn
  14360. #: guix-git/doc/guix.texi:9386
  14361. 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."
  14362. msgstr ""
  14363. #. type: deffn
  14364. #: guix-git/doc/guix.texi:9388
  14365. #, no-wrap
  14366. msgid "{Monadic Procedure} package->derivation @var{package} [@var{system}]"
  14367. msgstr ""
  14368. #. type: deffnx
  14369. #: guix-git/doc/guix.texi:9389
  14370. #, no-wrap
  14371. msgid "{Monadic Procedure} package->cross-derivation @var{package} @"
  14372. msgstr ""
  14373. #. type: deffn
  14374. #: guix-git/doc/guix.texi:9393
  14375. msgid "@var{target} [@var{system}] Monadic version of @code{package-derivation} and @code{package-cross-derivation} (@pxref{Defining Packages})."
  14376. msgstr ""
  14377. #. type: cindex
  14378. #: guix-git/doc/guix.texi:9399
  14379. #, no-wrap
  14380. msgid "G-expression"
  14381. msgstr ""
  14382. #. type: cindex
  14383. #: guix-git/doc/guix.texi:9400
  14384. #, no-wrap
  14385. msgid "build code quoting"
  14386. msgstr ""
  14387. #. type: Plain text
  14388. #: guix-git/doc/guix.texi:9406
  14389. 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})."
  14390. msgstr ""
  14391. #. type: cindex
  14392. #: guix-git/doc/guix.texi:9409
  14393. #, no-wrap
  14394. msgid "strata of code"
  14395. msgstr ""
  14396. #. type: Plain text
  14397. #: guix-git/doc/guix.texi:9421
  14398. 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})."
  14399. msgstr ""
  14400. #. type: Plain text
  14401. #: guix-git/doc/guix.texi:9428
  14402. 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."
  14403. msgstr ""
  14404. #. type: Plain text
  14405. #: guix-git/doc/guix.texi:9437
  14406. 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:"
  14407. msgstr ""
  14408. #. type: itemize
  14409. #: guix-git/doc/guix.texi:9442
  14410. msgid "Gexps are meant to be written to a file and run or manipulated by other processes."
  14411. msgstr ""
  14412. #. type: itemize
  14413. #: guix-git/doc/guix.texi:9447
  14414. 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."
  14415. msgstr ""
  14416. #. type: itemize
  14417. #: guix-git/doc/guix.texi:9452
  14418. 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."
  14419. msgstr ""
  14420. #. type: cindex
  14421. #: guix-git/doc/guix.texi:9454 guix-git/doc/guix.texi:10011
  14422. #, no-wrap
  14423. msgid "lowering, of high-level objects in gexps"
  14424. msgstr ""
  14425. #. type: Plain text
  14426. #: guix-git/doc/guix.texi:9464
  14427. 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)."
  14428. msgstr ""
  14429. #. type: Plain text
  14430. #: guix-git/doc/guix.texi:9466
  14431. msgid "To illustrate the idea, here is an example of a gexp:"
  14432. msgstr ""
  14433. #. type: lisp
  14434. #: guix-git/doc/guix.texi:9474
  14435. #, no-wrap
  14436. msgid ""
  14437. "(define build-exp\n"
  14438. " #~(begin\n"
  14439. " (mkdir #$output)\n"
  14440. " (chdir #$output)\n"
  14441. " (symlink (string-append #$coreutils \"/bin/ls\")\n"
  14442. " \"list-files\")))\n"
  14443. msgstr ""
  14444. #. type: Plain text
  14445. #: guix-git/doc/guix.texi:9479
  14446. 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}:"
  14447. msgstr ""
  14448. #. type: lisp
  14449. #: guix-git/doc/guix.texi:9482
  14450. #, no-wrap
  14451. msgid "(gexp->derivation \"the-thing\" build-exp)\n"
  14452. msgstr ""
  14453. #. type: Plain text
  14454. #: guix-git/doc/guix.texi:9490
  14455. 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."
  14456. msgstr ""
  14457. #. type: cindex
  14458. #: guix-git/doc/guix.texi:9491
  14459. #, no-wrap
  14460. msgid "cross compilation"
  14461. msgstr ""
  14462. #. type: Plain text
  14463. #: guix-git/doc/guix.texi:9497
  14464. 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:"
  14465. msgstr ""
  14466. #. type: lisp
  14467. #: guix-git/doc/guix.texi:9508
  14468. #, no-wrap
  14469. msgid ""
  14470. "(gexp->derivation \"vi\"\n"
  14471. " #~(begin\n"
  14472. " (mkdir #$output)\n"
  14473. " (mkdir (string-append #$output \"/bin\"))\n"
  14474. " (system* (string-append #+coreutils \"/bin/ln\")\n"
  14475. " \"-s\"\n"
  14476. " (string-append #$emacs \"/bin/emacs\")\n"
  14477. " (string-append #$output \"/bin/vi\")))\n"
  14478. " #:target \"aarch64-linux-gnu\")\n"
  14479. msgstr ""
  14480. #. type: Plain text
  14481. #: guix-git/doc/guix.texi:9514
  14482. 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."
  14483. msgstr ""
  14484. #. type: cindex
  14485. #: guix-git/doc/guix.texi:9515
  14486. #, no-wrap
  14487. msgid "imported modules, for gexps"
  14488. msgstr ""
  14489. #. type: findex
  14490. #: guix-git/doc/guix.texi:9516
  14491. #, no-wrap
  14492. msgid "with-imported-modules"
  14493. msgstr ""
  14494. #. type: Plain text
  14495. #: guix-git/doc/guix.texi:9521
  14496. 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:"
  14497. msgstr ""
  14498. #. type: lisp
  14499. #: guix-git/doc/guix.texi:9532
  14500. #, no-wrap
  14501. msgid ""
  14502. "(let ((build (with-imported-modules '((guix build utils))\n"
  14503. " #~(begin\n"
  14504. " (use-modules (guix build utils))\n"
  14505. " (mkdir-p (string-append #$output \"/bin\"))))))\n"
  14506. " (gexp->derivation \"empty-dir\"\n"
  14507. " #~(begin\n"
  14508. " #$build\n"
  14509. " (display \"success!\\n\")\n"
  14510. " #t)))\n"
  14511. msgstr ""
  14512. #. type: Plain text
  14513. #: guix-git/doc/guix.texi:9538
  14514. 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."
  14515. msgstr ""
  14516. #. type: cindex
  14517. #: guix-git/doc/guix.texi:9539
  14518. #, no-wrap
  14519. msgid "module closure"
  14520. msgstr ""
  14521. #. type: findex
  14522. #: guix-git/doc/guix.texi:9540
  14523. #, no-wrap
  14524. msgid "source-module-closure"
  14525. msgstr ""
  14526. #. type: Plain text
  14527. #: guix-git/doc/guix.texi:9547
  14528. 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:"
  14529. msgstr ""
  14530. #. type: lisp
  14531. #: guix-git/doc/guix.texi:9550
  14532. #, no-wrap
  14533. msgid ""
  14534. "(use-modules (guix modules)) ;for 'source-module-closure'\n"
  14535. "\n"
  14536. msgstr ""
  14537. #. type: lisp
  14538. #: guix-git/doc/guix.texi:9559
  14539. #, no-wrap
  14540. msgid ""
  14541. "(with-imported-modules (source-module-closure\n"
  14542. " '((guix build utils)\n"
  14543. " (gnu build vm)))\n"
  14544. " (gexp->derivation \"something-with-vms\"\n"
  14545. " #~(begin\n"
  14546. " (use-modules (guix build utils)\n"
  14547. " (gnu build vm))\n"
  14548. " @dots{})))\n"
  14549. msgstr ""
  14550. #. type: cindex
  14551. #: guix-git/doc/guix.texi:9561
  14552. #, no-wrap
  14553. msgid "extensions, for gexps"
  14554. msgstr ""
  14555. #. type: findex
  14556. #: guix-git/doc/guix.texi:9562
  14557. #, no-wrap
  14558. msgid "with-extensions"
  14559. msgstr ""
  14560. #. type: Plain text
  14561. #: guix-git/doc/guix.texi:9567
  14562. 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:"
  14563. msgstr ""
  14564. #. type: lisp
  14565. #: guix-git/doc/guix.texi:9570
  14566. #, no-wrap
  14567. msgid ""
  14568. "(use-modules (gnu packages guile)) ;for 'guile-json'\n"
  14569. "\n"
  14570. msgstr ""
  14571. #. type: lisp
  14572. #: guix-git/doc/guix.texi:9576
  14573. #, no-wrap
  14574. msgid ""
  14575. "(with-extensions (list guile-json)\n"
  14576. " (gexp->derivation \"something-with-json\"\n"
  14577. " #~(begin\n"
  14578. " (use-modules (json))\n"
  14579. " @dots{})))\n"
  14580. msgstr ""
  14581. #. type: Plain text
  14582. #: guix-git/doc/guix.texi:9579
  14583. msgid "The syntactic form to construct gexps is summarized below."
  14584. msgstr ""
  14585. #. type: deffn
  14586. #: guix-git/doc/guix.texi:9580
  14587. #, no-wrap
  14588. msgid "{Scheme Syntax} #~@var{exp}"
  14589. msgstr ""
  14590. #. type: deffnx
  14591. #: guix-git/doc/guix.texi:9581
  14592. #, no-wrap
  14593. msgid "{Scheme Syntax} (gexp @var{exp})"
  14594. msgstr ""
  14595. #. type: deffn
  14596. #: guix-git/doc/guix.texi:9584
  14597. msgid "Return a G-expression containing @var{exp}. @var{exp} may contain one or more of the following forms:"
  14598. msgstr ""
  14599. #. type: item
  14600. #: guix-git/doc/guix.texi:9586
  14601. #, no-wrap
  14602. msgid "#$@var{obj}"
  14603. msgstr ""
  14604. #. type: itemx
  14605. #: guix-git/doc/guix.texi:9587
  14606. #, no-wrap
  14607. msgid "(ungexp @var{obj})"
  14608. msgstr ""
  14609. #. type: table
  14610. #: guix-git/doc/guix.texi:9592
  14611. 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}."
  14612. msgstr ""
  14613. #. type: table
  14614. #: guix-git/doc/guix.texi:9595
  14615. msgid "If @var{obj} is a list, it is traversed and references to supported objects are substituted similarly."
  14616. msgstr ""
  14617. #. type: table
  14618. #: guix-git/doc/guix.texi:9598
  14619. msgid "If @var{obj} is another gexp, its contents are inserted and its dependencies are added to those of the containing gexp."
  14620. msgstr ""
  14621. #. type: table
  14622. #: guix-git/doc/guix.texi:9600
  14623. msgid "If @var{obj} is another kind of object, it is inserted as is."
  14624. msgstr ""
  14625. #. type: item
  14626. #: guix-git/doc/guix.texi:9601
  14627. #, no-wrap
  14628. msgid "#$@var{obj}:@var{output}"
  14629. msgstr ""
  14630. #. type: itemx
  14631. #: guix-git/doc/guix.texi:9602
  14632. #, no-wrap
  14633. msgid "(ungexp @var{obj} @var{output})"
  14634. msgstr ""
  14635. #. type: table
  14636. #: guix-git/doc/guix.texi:9606
  14637. 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})."
  14638. msgstr ""
  14639. #. type: item
  14640. #: guix-git/doc/guix.texi:9607
  14641. #, no-wrap
  14642. msgid "#+@var{obj}"
  14643. msgstr ""
  14644. #. type: itemx
  14645. #: guix-git/doc/guix.texi:9608
  14646. #, no-wrap
  14647. msgid "#+@var{obj}:output"
  14648. msgstr ""
  14649. #. type: itemx
  14650. #: guix-git/doc/guix.texi:9609
  14651. #, no-wrap
  14652. msgid "(ungexp-native @var{obj})"
  14653. msgstr ""
  14654. #. type: itemx
  14655. #: guix-git/doc/guix.texi:9610
  14656. #, no-wrap
  14657. msgid "(ungexp-native @var{obj} @var{output})"
  14658. msgstr ""
  14659. #. type: table
  14660. #: guix-git/doc/guix.texi:9613
  14661. msgid "Same as @code{ungexp}, but produces a reference to the @emph{native} build of @var{obj} when used in a cross compilation context."
  14662. msgstr ""
  14663. #. type: item
  14664. #: guix-git/doc/guix.texi:9614
  14665. #, no-wrap
  14666. msgid "#$output[:@var{output}]"
  14667. msgstr ""
  14668. #. type: itemx
  14669. #: guix-git/doc/guix.texi:9615
  14670. #, no-wrap
  14671. msgid "(ungexp output [@var{output}])"
  14672. msgstr ""
  14673. #. type: table
  14674. #: guix-git/doc/guix.texi:9618
  14675. msgid "Insert a reference to derivation output @var{output}, or to the main output when @var{output} is omitted."
  14676. msgstr ""
  14677. #. type: table
  14678. #: guix-git/doc/guix.texi:9620
  14679. msgid "This only makes sense for gexps passed to @code{gexp->derivation}."
  14680. msgstr ""
  14681. #. type: item
  14682. #: guix-git/doc/guix.texi:9621
  14683. #, no-wrap
  14684. msgid "#$@@@var{lst}"
  14685. msgstr ""
  14686. #. type: itemx
  14687. #: guix-git/doc/guix.texi:9622
  14688. #, no-wrap
  14689. msgid "(ungexp-splicing @var{lst})"
  14690. msgstr ""
  14691. #. type: table
  14692. #: guix-git/doc/guix.texi:9625
  14693. msgid "Like the above, but splices the contents of @var{lst} inside the containing list."
  14694. msgstr ""
  14695. #. type: item
  14696. #: guix-git/doc/guix.texi:9626
  14697. #, no-wrap
  14698. msgid "#+@@@var{lst}"
  14699. msgstr ""
  14700. #. type: itemx
  14701. #: guix-git/doc/guix.texi:9627
  14702. #, no-wrap
  14703. msgid "(ungexp-native-splicing @var{lst})"
  14704. msgstr ""
  14705. #. type: table
  14706. #: guix-git/doc/guix.texi:9630
  14707. msgid "Like the above, but refers to native builds of the objects listed in @var{lst}."
  14708. msgstr ""
  14709. #. type: deffn
  14710. #: guix-git/doc/guix.texi:9635
  14711. msgid "G-expressions created by @code{gexp} or @code{#~} are run-time objects of the @code{gexp?} type (see below)."
  14712. msgstr ""
  14713. #. type: deffn
  14714. #: guix-git/doc/guix.texi:9637
  14715. #, no-wrap
  14716. msgid "{Scheme Syntax} with-imported-modules @var{modules} @var{body}@dots{}"
  14717. msgstr ""
  14718. #. type: deffn
  14719. #: guix-git/doc/guix.texi:9640
  14720. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{modules} in their execution environment."
  14721. msgstr ""
  14722. #. type: deffn
  14723. #: guix-git/doc/guix.texi:9644
  14724. 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:"
  14725. msgstr ""
  14726. #. type: lisp
  14727. #: guix-git/doc/guix.texi:9650
  14728. #, no-wrap
  14729. msgid ""
  14730. "`((guix build utils)\n"
  14731. " (guix gcrypt)\n"
  14732. " ((guix config) => ,(scheme-file \"config.scm\"\n"
  14733. " #~(define-module @dots{}))))\n"
  14734. msgstr ""
  14735. #. type: deffn
  14736. #: guix-git/doc/guix.texi:9655
  14737. 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."
  14738. msgstr ""
  14739. #. type: deffn
  14740. #: guix-git/doc/guix.texi:9659
  14741. 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{}."
  14742. msgstr ""
  14743. #. type: deffn
  14744. #: guix-git/doc/guix.texi:9661
  14745. #, no-wrap
  14746. msgid "{Scheme Syntax} with-extensions @var{extensions} @var{body}@dots{}"
  14747. msgstr ""
  14748. #. type: deffn
  14749. #: guix-git/doc/guix.texi:9666
  14750. 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."
  14751. msgstr ""
  14752. #. type: deffn
  14753. #: guix-git/doc/guix.texi:9671
  14754. 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{}."
  14755. msgstr ""
  14756. #. type: deffn
  14757. #: guix-git/doc/guix.texi:9673
  14758. #, no-wrap
  14759. msgid "{Scheme Procedure} gexp? @var{obj}"
  14760. msgstr ""
  14761. #. type: deffn
  14762. #: guix-git/doc/guix.texi:9675
  14763. msgid "Return @code{#t} if @var{obj} is a G-expression."
  14764. msgstr ""
  14765. #. type: Plain text
  14766. #: guix-git/doc/guix.texi:9681
  14767. 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)."
  14768. msgstr ""
  14769. #. type: deffn
  14770. #: guix-git/doc/guix.texi:9682
  14771. #, no-wrap
  14772. msgid "{Monadic Procedure} gexp->derivation @var{name} @var{exp} @"
  14773. msgstr ""
  14774. #. type: deffn
  14775. #: guix-git/doc/guix.texi:9700
  14776. 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}."
  14777. msgstr ""
  14778. #. type: deffn
  14779. #: guix-git/doc/guix.texi:9708
  14780. 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))}."
  14781. msgstr ""
  14782. #. type: deffn
  14783. #: guix-git/doc/guix.texi:9711
  14784. 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\"}."
  14785. msgstr ""
  14786. #. type: deffn
  14787. #: guix-git/doc/guix.texi:9714
  14788. msgid "@var{graft?} determines whether packages referred to by @var{exp} should be grafted when applicable."
  14789. msgstr ""
  14790. #. type: deffn
  14791. #: guix-git/doc/guix.texi:9717
  14792. msgid "When @var{references-graphs} is true, it must be a list of tuples of one of the following forms:"
  14793. msgstr ""
  14794. #. type: example
  14795. #: guix-git/doc/guix.texi:9724
  14796. #, no-wrap
  14797. msgid ""
  14798. "(@var{file-name} @var{package})\n"
  14799. "(@var{file-name} @var{package} @var{output})\n"
  14800. "(@var{file-name} @var{derivation})\n"
  14801. "(@var{file-name} @var{derivation} @var{output})\n"
  14802. "(@var{file-name} @var{store-item})\n"
  14803. msgstr ""
  14804. #. type: deffn
  14805. #: guix-git/doc/guix.texi:9730
  14806. 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."
  14807. msgstr ""
  14808. #. type: deffn
  14809. #: guix-git/doc/guix.texi:9736
  14810. 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."
  14811. msgstr ""
  14812. #. type: deffn
  14813. #: guix-git/doc/guix.texi:9739
  14814. msgid "@var{deprecation-warnings} determines whether to show deprecation warnings while compiling modules. It can be @code{#f}, @code{#t}, or @code{'detailed}."
  14815. msgstr ""
  14816. #. type: deffn
  14817. #: guix-git/doc/guix.texi:9741
  14818. msgid "The other arguments are as for @code{derivation} (@pxref{Derivations})."
  14819. msgstr ""
  14820. #. type: cindex
  14821. #: guix-git/doc/guix.texi:9743
  14822. #, no-wrap
  14823. msgid "file-like objects"
  14824. msgstr ""
  14825. #. type: Plain text
  14826. #: guix-git/doc/guix.texi:9748
  14827. 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:"
  14828. msgstr ""
  14829. #. type: lisp
  14830. #: guix-git/doc/guix.texi:9752
  14831. #, no-wrap
  14832. msgid ""
  14833. "#~(system* #$(file-append glibc \"/sbin/nscd\") \"-f\"\n"
  14834. " #$(local-file \"/tmp/my-nscd.conf\"))\n"
  14835. msgstr ""
  14836. #. type: Plain text
  14837. #: guix-git/doc/guix.texi:9761
  14838. 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."
  14839. msgstr ""
  14840. #. type: deffn
  14841. #: guix-git/doc/guix.texi:9762
  14842. #, no-wrap
  14843. msgid "{Scheme Procedure} local-file @var{file} [@var{name}] @"
  14844. msgstr ""
  14845. #. type: deffn
  14846. #: guix-git/doc/guix.texi:9771
  14847. 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}."
  14848. msgstr ""
  14849. #. type: deffn
  14850. #: guix-git/doc/guix.texi:9783
  14851. msgid "This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}})."
  14852. msgstr ""
  14853. #. type: deffn
  14854. #: guix-git/doc/guix.texi:9785
  14855. #, no-wrap
  14856. msgid "{Scheme Procedure} plain-file @var{name} @var{content}"
  14857. msgstr ""
  14858. #. type: deffn
  14859. #: guix-git/doc/guix.texi:9788
  14860. 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."
  14861. msgstr ""
  14862. #. type: deffn
  14863. #: guix-git/doc/guix.texi:9790
  14864. msgid "This is the declarative counterpart of @code{text-file}."
  14865. msgstr ""
  14866. #. type: deffn
  14867. #: guix-git/doc/guix.texi:9792
  14868. #, no-wrap
  14869. msgid "{Scheme Procedure} computed-file @var{name} @var{gexp} @"
  14870. msgstr ""
  14871. #. type: deffn
  14872. #: guix-git/doc/guix.texi:9799
  14873. 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}."
  14874. msgstr ""
  14875. #. type: deffn
  14876. #: guix-git/doc/guix.texi:9801
  14877. msgid "This is the declarative counterpart of @code{gexp->derivation}."
  14878. msgstr ""
  14879. #. type: deffn
  14880. #: guix-git/doc/guix.texi:9803
  14881. #, no-wrap
  14882. msgid "{Monadic Procedure} gexp->script @var{name} @var{exp} @"
  14883. msgstr ""
  14884. #. type: deffn
  14885. #: guix-git/doc/guix.texi:9809
  14886. 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}."
  14887. msgstr ""
  14888. #. type: deffn
  14889. #: guix-git/doc/guix.texi:9812
  14890. msgid "The example below builds a script that simply invokes the @command{ls} command:"
  14891. msgstr ""
  14892. #. type: lisp
  14893. #: guix-git/doc/guix.texi:9815
  14894. #, no-wrap
  14895. msgid ""
  14896. "(use-modules (guix gexp) (gnu packages base))\n"
  14897. "\n"
  14898. msgstr ""
  14899. #. type: lisp
  14900. #: guix-git/doc/guix.texi:9819
  14901. #, no-wrap
  14902. msgid ""
  14903. "(gexp->script \"list-files\"\n"
  14904. " #~(execl #$(file-append coreutils \"/bin/ls\")\n"
  14905. " \"ls\"))\n"
  14906. msgstr ""
  14907. #. type: deffn
  14908. #: guix-git/doc/guix.texi:9824
  14909. 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:"
  14910. msgstr ""
  14911. #. type: example
  14912. #: guix-git/doc/guix.texi:9829
  14913. #, no-wrap
  14914. msgid ""
  14915. "#!/gnu/store/@dots{}-guile-2.0.11/bin/guile -ds\n"
  14916. "!#\n"
  14917. "(execl \"/gnu/store/@dots{}-coreutils-8.22\"/bin/ls\" \"ls\")\n"
  14918. msgstr ""
  14919. #. type: deffn
  14920. #: guix-git/doc/guix.texi:9832
  14921. #, no-wrap
  14922. msgid "{Scheme Procedure} program-file @var{name} @var{exp} @"
  14923. msgstr ""
  14924. #. type: deffn
  14925. #: guix-git/doc/guix.texi:9837
  14926. 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}."
  14927. msgstr ""
  14928. #. type: deffn
  14929. #: guix-git/doc/guix.texi:9839
  14930. msgid "This is the declarative counterpart of @code{gexp->script}."
  14931. msgstr ""
  14932. #. type: deffn
  14933. #: guix-git/doc/guix.texi:9841
  14934. #, no-wrap
  14935. msgid "{Monadic Procedure} gexp->file @var{name} @var{exp} @"
  14936. msgstr ""
  14937. #. type: deffn
  14938. #: guix-git/doc/guix.texi:9848
  14939. 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."
  14940. msgstr ""
  14941. #. type: deffn
  14942. #: guix-git/doc/guix.texi:9853
  14943. 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}."
  14944. msgstr ""
  14945. #. type: deffn
  14946. #: guix-git/doc/guix.texi:9856
  14947. msgid "The resulting file holds references to all the dependencies of @var{exp} or a subset thereof."
  14948. msgstr ""
  14949. #. type: deffn
  14950. #: guix-git/doc/guix.texi:9858
  14951. #, no-wrap
  14952. msgid "{Scheme Procedure} scheme-file @var{name} @var{exp} @"
  14953. msgstr ""
  14954. #. type: deffn
  14955. #: guix-git/doc/guix.texi:9862
  14956. msgid "[#:splice? #f] [#:set-load-path? #t] Return an object representing the Scheme file @var{name} that contains @var{exp}."
  14957. msgstr ""
  14958. #. type: deffn
  14959. #: guix-git/doc/guix.texi:9864
  14960. msgid "This is the declarative counterpart of @code{gexp->file}."
  14961. msgstr ""
  14962. #. type: deffn
  14963. #: guix-git/doc/guix.texi:9866
  14964. #, no-wrap
  14965. msgid "{Monadic Procedure} text-file* @var{name} @var{text} @dots{}"
  14966. msgstr ""
  14967. #. type: deffn
  14968. #: guix-git/doc/guix.texi:9872
  14969. 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."
  14970. msgstr ""
  14971. #. type: deffn
  14972. #: guix-git/doc/guix.texi:9877
  14973. 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:"
  14974. msgstr ""
  14975. #. type: lisp
  14976. #: guix-git/doc/guix.texi:9885
  14977. #, no-wrap
  14978. msgid ""
  14979. "(define (profile.sh)\n"
  14980. " ;; Return the name of a shell script in the store that\n"
  14981. " ;; initializes the 'PATH' environment variable.\n"
  14982. " (text-file* \"profile.sh\"\n"
  14983. " \"export PATH=\" coreutils \"/bin:\"\n"
  14984. " grep \"/bin:\" sed \"/bin\\n\"))\n"
  14985. msgstr ""
  14986. #. type: deffn
  14987. #: guix-git/doc/guix.texi:9890
  14988. 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."
  14989. msgstr ""
  14990. #. type: deffn
  14991. #: guix-git/doc/guix.texi:9892
  14992. #, no-wrap
  14993. msgid "{Scheme Procedure} mixed-text-file @var{name} @var{text} @dots{}"
  14994. msgstr ""
  14995. #. type: deffn
  14996. #: guix-git/doc/guix.texi:9896
  14997. 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:"
  14998. msgstr ""
  14999. #. type: lisp
  15000. #: guix-git/doc/guix.texi:9900
  15001. #, no-wrap
  15002. msgid ""
  15003. "(mixed-text-file \"profile\"\n"
  15004. " \"export PATH=\" coreutils \"/bin:\" grep \"/bin\")\n"
  15005. msgstr ""
  15006. #. type: deffn
  15007. #: guix-git/doc/guix.texi:9903
  15008. msgid "This is the declarative counterpart of @code{text-file*}."
  15009. msgstr ""
  15010. #. type: deffn
  15011. #: guix-git/doc/guix.texi:9905
  15012. #, no-wrap
  15013. msgid "{Scheme Procedure} file-union @var{name} @var{files}"
  15014. msgstr ""
  15015. #. type: deffn
  15016. #: guix-git/doc/guix.texi:9910
  15017. 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:"
  15018. msgstr ""
  15019. #. type: lisp
  15020. #: guix-git/doc/guix.texi:9917
  15021. #, no-wrap
  15022. msgid ""
  15023. "(file-union \"etc\"\n"
  15024. " `((\"hosts\" ,(plain-file \"hosts\"\n"
  15025. " \"127.0.0.1 localhost\"))\n"
  15026. " (\"bashrc\" ,(plain-file \"bashrc\"\n"
  15027. " \"alias ls='ls --color=auto'\"))))\n"
  15028. msgstr ""
  15029. #. type: deffn
  15030. #: guix-git/doc/guix.texi:9920
  15031. msgid "This yields an @code{etc} directory containing these two files."
  15032. msgstr ""
  15033. #. type: deffn
  15034. #: guix-git/doc/guix.texi:9922
  15035. #, no-wrap
  15036. msgid "{Scheme Procedure} directory-union @var{name} @var{things}"
  15037. msgstr ""
  15038. #. type: deffn
  15039. #: guix-git/doc/guix.texi:9925
  15040. 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:"
  15041. msgstr ""
  15042. #. type: lisp
  15043. #: guix-git/doc/guix.texi:9928
  15044. #, no-wrap
  15045. msgid "(directory-union \"guile+emacs\" (list guile emacs))\n"
  15046. msgstr ""
  15047. #. type: deffn
  15048. #: guix-git/doc/guix.texi:9931
  15049. msgid "yields a directory that is the union of the @code{guile} and @code{emacs} packages."
  15050. msgstr ""
  15051. #. type: deffn
  15052. #: guix-git/doc/guix.texi:9933
  15053. #, no-wrap
  15054. msgid "{Scheme Procedure} file-append @var{obj} @var{suffix} @dots{}"
  15055. msgstr ""
  15056. #. type: deffn
  15057. #: guix-git/doc/guix.texi:9937
  15058. 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."
  15059. msgstr ""
  15060. #. type: deffn
  15061. #: guix-git/doc/guix.texi:9939
  15062. msgid "As an example, consider this gexp:"
  15063. msgstr ""
  15064. #. type: lisp
  15065. #: guix-git/doc/guix.texi:9944
  15066. #, no-wrap
  15067. msgid ""
  15068. "(gexp->script \"run-uname\"\n"
  15069. " #~(system* #$(file-append coreutils\n"
  15070. " \"/bin/uname\")))\n"
  15071. msgstr ""
  15072. #. type: deffn
  15073. #: guix-git/doc/guix.texi:9947
  15074. msgid "The same effect could be achieved with:"
  15075. msgstr ""
  15076. #. type: lisp
  15077. #: guix-git/doc/guix.texi:9952
  15078. #, no-wrap
  15079. msgid ""
  15080. "(gexp->script \"run-uname\"\n"
  15081. " #~(system* (string-append #$coreutils\n"
  15082. " \"/bin/uname\")))\n"
  15083. msgstr ""
  15084. #. type: deffn
  15085. #: guix-git/doc/guix.texi:9958
  15086. 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}."
  15087. msgstr ""
  15088. #. type: deffn
  15089. #: guix-git/doc/guix.texi:9960
  15090. #, no-wrap
  15091. msgid "{Scheme Syntax} let-system @var{system} @var{body}@dots{}"
  15092. msgstr ""
  15093. #. type: deffnx
  15094. #: guix-git/doc/guix.texi:9961
  15095. #, no-wrap
  15096. msgid "{Scheme Syntax} let-system (@var{system} @var{target}) @var{body}@dots{}"
  15097. msgstr ""
  15098. #. type: deffn
  15099. #: guix-git/doc/guix.texi:9964
  15100. #, fuzzy
  15101. msgid "Bind @var{system} to the currently targeted system---e.g., @code{\"x86_64-linux\"}---within @var{body}."
  15102. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  15103. #. type: deffn
  15104. #: guix-git/doc/guix.texi:9969
  15105. 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."
  15106. msgstr ""
  15107. #. type: deffn
  15108. #: guix-git/doc/guix.texi:9972
  15109. 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:"
  15110. msgstr ""
  15111. #. type: lisp
  15112. #: guix-git/doc/guix.texi:9983
  15113. #, no-wrap
  15114. msgid ""
  15115. "#~(system*\n"
  15116. " #+(let-system system\n"
  15117. " (cond ((string-prefix? \"armhf-\" system)\n"
  15118. " (file-append qemu \"/bin/qemu-system-arm\"))\n"
  15119. " ((string-prefix? \"x86_64-\" system)\n"
  15120. " (file-append qemu \"/bin/qemu-system-x86_64\"))\n"
  15121. " (else\n"
  15122. " (error \"dunno!\"))))\n"
  15123. " \"-net\" \"user\" #$image)\n"
  15124. msgstr ""
  15125. #. type: deffn
  15126. #: guix-git/doc/guix.texi:9986
  15127. #, no-wrap
  15128. msgid "{Scheme Syntax} with-parameters ((@var{parameter} @var{value}) @dots{}) @var{exp}"
  15129. msgstr ""
  15130. #. type: deffn
  15131. #: guix-git/doc/guix.texi:9992
  15132. 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."
  15133. msgstr ""
  15134. #. type: deffn
  15135. #: guix-git/doc/guix.texi:9995
  15136. msgid "A typical use of @code{with-parameters} is to force the system in effect for a given object:"
  15137. msgstr ""
  15138. #. type: lisp
  15139. #: guix-git/doc/guix.texi:9999
  15140. #, no-wrap
  15141. msgid ""
  15142. "(with-parameters ((%current-system \"i686-linux\"))\n"
  15143. " coreutils)\n"
  15144. msgstr ""
  15145. #. type: deffn
  15146. #: guix-git/doc/guix.texi:10003
  15147. msgid "The example above returns an object that corresponds to the i686 build of Coreutils, regardless of the current value of @code{%current-system}."
  15148. msgstr ""
  15149. #. type: Plain text
  15150. #: guix-git/doc/guix.texi:10010
  15151. 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."
  15152. msgstr ""
  15153. #. type: Plain text
  15154. #: guix-git/doc/guix.texi:10016
  15155. 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."
  15156. msgstr ""
  15157. #. type: deffn
  15158. #: guix-git/doc/guix.texi:10017
  15159. #, no-wrap
  15160. msgid "{Monadic Procedure} lower-object @var{obj} [@var{system}] @"
  15161. msgstr ""
  15162. #. type: deffn
  15163. #: guix-git/doc/guix.texi:10023
  15164. 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>}."
  15165. msgstr ""
  15166. #. type: section
  15167. #: guix-git/doc/guix.texi:10026
  15168. #, no-wrap
  15169. msgid "Invoking @command{guix repl}"
  15170. msgstr ""
  15171. #. type: cindex
  15172. #: guix-git/doc/guix.texi:10028
  15173. #, fuzzy, no-wrap
  15174. msgid "REPL, read-eval-print loop, script"
  15175. msgstr "read-eval-print loop"
  15176. #. type: Plain text
  15177. #: guix-git/doc/guix.texi:10038
  15178. 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."
  15179. msgstr ""
  15180. #. type: example
  15181. #: guix-git/doc/guix.texi:10043
  15182. #, no-wrap
  15183. msgid "guix repl @var{options} [@var{file} @var{args}]\n"
  15184. msgstr ""
  15185. #. type: Plain text
  15186. #: guix-git/doc/guix.texi:10047
  15187. msgid "When a @var{file} argument is provided, @var{file} is executed as a Guile scripts:"
  15188. msgstr ""
  15189. #. type: example
  15190. #: guix-git/doc/guix.texi:10050
  15191. #, no-wrap
  15192. msgid "guix repl my-script.scm\n"
  15193. msgstr ""
  15194. #. type: Plain text
  15195. #: guix-git/doc/guix.texi:10054
  15196. msgid "To pass arguments to the script, use @code{--} to prevent them from being interpreted as arguments to @command{guix repl} itself:"
  15197. msgstr ""
  15198. #. type: example
  15199. #: guix-git/doc/guix.texi:10057
  15200. #, no-wrap
  15201. msgid "guix repl -- my-script.scm --input=foo.txt\n"
  15202. msgstr ""
  15203. #. type: Plain text
  15204. #: guix-git/doc/guix.texi:10062
  15205. 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:"
  15206. msgstr ""
  15207. #. type: example
  15208. #: guix-git/doc/guix.texi:10066
  15209. #, no-wrap
  15210. msgid ""
  15211. "@code{#!/usr/bin/env -S guix repl --}\n"
  15212. "@code{!#}\n"
  15213. msgstr ""
  15214. #. type: Plain text
  15215. #: guix-git/doc/guix.texi:10069
  15216. msgid "Without a file name argument, a Guile REPL is started:"
  15217. msgstr ""
  15218. #. type: example
  15219. #: guix-git/doc/guix.texi:10075
  15220. #, no-wrap
  15221. msgid ""
  15222. "$ guix repl\n"
  15223. "scheme@@(guile-user)> ,use (gnu packages base)\n"
  15224. "scheme@@(guile-user)> coreutils\n"
  15225. "$1 = #<package coreutils@@8.29 gnu/packages/base.scm:327 3e28300>\n"
  15226. msgstr ""
  15227. #. type: Plain text
  15228. #: guix-git/doc/guix.texi:10082
  15229. 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."
  15230. msgstr ""
  15231. #. type: Plain text
  15232. #: guix-git/doc/guix.texi:10084
  15233. msgid "The available options are as follows:"
  15234. msgstr ""
  15235. #. type: item
  15236. #: guix-git/doc/guix.texi:10086 guix-git/doc/guix.texi:12448
  15237. #, no-wrap
  15238. msgid "--type=@var{type}"
  15239. msgstr ""
  15240. #. type: itemx
  15241. #: guix-git/doc/guix.texi:10087 guix-git/doc/guix.texi:12449
  15242. #: guix-git/doc/guix.texi:33138
  15243. #, no-wrap
  15244. msgid "-t @var{type}"
  15245. msgstr ""
  15246. #. type: table
  15247. #: guix-git/doc/guix.texi:10089
  15248. msgid "Start a REPL of the given @var{TYPE}, which can be one of the following:"
  15249. msgstr ""
  15250. #. type: item
  15251. #: guix-git/doc/guix.texi:10091
  15252. #, no-wrap
  15253. msgid "guile"
  15254. msgstr ""
  15255. #. type: table
  15256. #: guix-git/doc/guix.texi:10093
  15257. msgid "This is default, and it spawns a standard full-featured Guile REPL."
  15258. msgstr ""
  15259. #. type: item
  15260. #: guix-git/doc/guix.texi:10093
  15261. #, no-wrap
  15262. msgid "machine"
  15263. msgstr ""
  15264. #. type: table
  15265. #: guix-git/doc/guix.texi:10096
  15266. msgid "Spawn a REPL that uses the machine-readable protocol. This is the protocol that the @code{(guix inferior)} module speaks."
  15267. msgstr ""
  15268. #. type: table
  15269. #: guix-git/doc/guix.texi:10102
  15270. 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:"
  15271. msgstr ""
  15272. #. type: item
  15273. #: guix-git/doc/guix.texi:10104
  15274. #, no-wrap
  15275. msgid "--listen=tcp:37146"
  15276. msgstr ""
  15277. #. type: table
  15278. #: guix-git/doc/guix.texi:10106
  15279. msgid "Accept connections on localhost on port 37146."
  15280. msgstr ""
  15281. #. type: item
  15282. #: guix-git/doc/guix.texi:10107
  15283. #, no-wrap
  15284. msgid "--listen=unix:/tmp/socket"
  15285. msgstr ""
  15286. #. type: table
  15287. #: guix-git/doc/guix.texi:10109
  15288. msgid "Accept connections on the Unix-domain socket @file{/tmp/socket}."
  15289. msgstr ""
  15290. #. type: item
  15291. #: guix-git/doc/guix.texi:10111 guix-git/doc/guix.texi:10215
  15292. #: guix-git/doc/guix.texi:11917 guix-git/doc/guix.texi:12097
  15293. #: guix-git/doc/guix.texi:12242 guix-git/doc/guix.texi:12496
  15294. #, no-wrap
  15295. msgid "--load-path=@var{directory}"
  15296. msgstr ""
  15297. #. type: itemx
  15298. #: guix-git/doc/guix.texi:10112 guix-git/doc/guix.texi:10216
  15299. #: guix-git/doc/guix.texi:12098 guix-git/doc/guix.texi:12243
  15300. #: guix-git/doc/guix.texi:12497
  15301. #, no-wrap
  15302. msgid "-L @var{directory}"
  15303. msgstr ""
  15304. #. type: table
  15305. #: guix-git/doc/guix.texi:10115 guix-git/doc/guix.texi:10219
  15306. #: guix-git/doc/guix.texi:11920 guix-git/doc/guix.texi:12101
  15307. #: guix-git/doc/guix.texi:12246 guix-git/doc/guix.texi:12500
  15308. msgid "Add @var{directory} to the front of the package module search path (@pxref{Package Modules})."
  15309. msgstr ""
  15310. #. type: table
  15311. #: guix-git/doc/guix.texi:10118
  15312. msgid "This allows users to define their own packages and make them visible to the script or REPL."
  15313. msgstr ""
  15314. #. type: itemx
  15315. #: guix-git/doc/guix.texi:10119 guix-git/doc/guix.texi:10678
  15316. #, no-wrap
  15317. msgid "-q"
  15318. msgstr ""
  15319. #. type: table
  15320. #: guix-git/doc/guix.texi:10122
  15321. msgid "Inhibit loading of the @file{~/.guile} file. By default, that configuration file is loaded when spawning a @code{guile} REPL."
  15322. msgstr ""
  15323. #. type: Plain text
  15324. #: guix-git/doc/guix.texi:10132
  15325. 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."
  15326. msgstr ""
  15327. #. type: cindex
  15328. #: guix-git/doc/guix.texi:10154
  15329. #, no-wrap
  15330. msgid "package building"
  15331. msgstr ""
  15332. #. type: command{#1}
  15333. #: guix-git/doc/guix.texi:10155
  15334. #, no-wrap
  15335. msgid "guix build"
  15336. msgstr ""
  15337. #. type: Plain text
  15338. #: guix-git/doc/guix.texi:10161
  15339. 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."
  15340. msgstr ""
  15341. #. type: example
  15342. #: guix-git/doc/guix.texi:10166
  15343. #, no-wrap
  15344. msgid "guix build @var{options} @var{package-or-derivation}@dots{}\n"
  15345. msgstr ""
  15346. #. type: Plain text
  15347. #: guix-git/doc/guix.texi:10171
  15348. 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:"
  15349. msgstr ""
  15350. #. type: example
  15351. #: guix-git/doc/guix.texi:10174
  15352. #, no-wrap
  15353. msgid "guix build emacs guile\n"
  15354. msgstr ""
  15355. #. type: Plain text
  15356. #: guix-git/doc/guix.texi:10177
  15357. msgid "Similarly, the following command builds all the available packages:"
  15358. msgstr ""
  15359. #. type: example
  15360. #: guix-git/doc/guix.texi:10181
  15361. #, no-wrap
  15362. msgid ""
  15363. "guix build --quiet --keep-going \\\n"
  15364. " $(guix package -A | cut -f1,2 --output-delimiter=@@)\n"
  15365. msgstr ""
  15366. #. type: Plain text
  15367. #: guix-git/doc/guix.texi:10189
  15368. 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})."
  15369. msgstr ""
  15370. #. type: Plain text
  15371. #: guix-git/doc/guix.texi:10194
  15372. 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."
  15373. msgstr ""
  15374. #. type: Plain text
  15375. #: guix-git/doc/guix.texi:10197
  15376. msgid "There may be zero or more @var{options}. The available options are described in the subsections below."
  15377. msgstr ""
  15378. #. type: Plain text
  15379. #: guix-git/doc/guix.texi:10212
  15380. 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:"
  15381. msgstr ""
  15382. #. type: table
  15383. #: guix-git/doc/guix.texi:10222 guix-git/doc/guix.texi:11923
  15384. #: guix-git/doc/guix.texi:12104 guix-git/doc/guix.texi:12249
  15385. #: guix-git/doc/guix.texi:12503
  15386. msgid "This allows users to define their own packages and make them visible to the command-line tools."
  15387. msgstr ""
  15388. #. type: item
  15389. #: guix-git/doc/guix.texi:10223
  15390. #, no-wrap
  15391. msgid "--keep-failed"
  15392. msgstr ""
  15393. #. type: itemx
  15394. #: guix-git/doc/guix.texi:10224
  15395. #, no-wrap
  15396. msgid "-K"
  15397. msgstr ""
  15398. #. type: table
  15399. #: guix-git/doc/guix.texi:10230
  15400. 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."
  15401. msgstr ""
  15402. #. type: table
  15403. #: guix-git/doc/guix.texi:10234
  15404. 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})."
  15405. msgstr ""
  15406. #. type: item
  15407. #: guix-git/doc/guix.texi:10235
  15408. #, no-wrap
  15409. msgid "--keep-going"
  15410. msgstr ""
  15411. #. type: itemx
  15412. #: guix-git/doc/guix.texi:10236
  15413. #, no-wrap
  15414. msgid "-k"
  15415. msgstr ""
  15416. #. type: table
  15417. #: guix-git/doc/guix.texi:10239
  15418. msgid "Keep going when some of the derivations fail to build; return only once all the builds have either completed or failed."
  15419. msgstr ""
  15420. #. type: table
  15421. #: guix-git/doc/guix.texi:10242
  15422. msgid "The default behavior is to stop as soon as one of the specified derivations has failed."
  15423. msgstr ""
  15424. #. type: table
  15425. #: guix-git/doc/guix.texi:10246
  15426. msgid "Do not build the derivations."
  15427. msgstr ""
  15428. #. type: anchor{#1}
  15429. #: guix-git/doc/guix.texi:10248
  15430. msgid "fallback-option"
  15431. msgstr ""
  15432. #. type: item
  15433. #: guix-git/doc/guix.texi:10248
  15434. #, no-wrap
  15435. msgid "--fallback"
  15436. msgstr ""
  15437. #. type: table
  15438. #: guix-git/doc/guix.texi:10251
  15439. msgid "When substituting a pre-built binary fails, fall back to building packages locally (@pxref{Substitution Failure})."
  15440. msgstr ""
  15441. #. type: anchor{#1}
  15442. #: guix-git/doc/guix.texi:10257
  15443. msgid "client-substitute-urls"
  15444. msgstr ""
  15445. #. type: table
  15446. #: guix-git/doc/guix.texi:10257
  15447. 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})."
  15448. msgstr ""
  15449. #. type: table
  15450. #: guix-git/doc/guix.texi:10261
  15451. 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})."
  15452. msgstr ""
  15453. #. type: table
  15454. #: guix-git/doc/guix.texi:10264
  15455. msgid "When @var{urls} is the empty string, substitutes are effectively disabled."
  15456. msgstr ""
  15457. #. type: item
  15458. #: guix-git/doc/guix.texi:10270
  15459. #, no-wrap
  15460. msgid "--no-grafts"
  15461. msgstr ""
  15462. #. type: table
  15463. #: guix-git/doc/guix.texi:10274
  15464. 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."
  15465. msgstr ""
  15466. #. type: item
  15467. #: guix-git/doc/guix.texi:10275
  15468. #, no-wrap
  15469. msgid "--rounds=@var{n}"
  15470. msgstr ""
  15471. #. type: table
  15472. #: guix-git/doc/guix.texi:10278
  15473. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical."
  15474. msgstr ""
  15475. #. type: table
  15476. #: guix-git/doc/guix.texi:10283
  15477. 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."
  15478. msgstr ""
  15479. #. type: table
  15480. #: guix-git/doc/guix.texi:10299
  15481. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--max-silent-time}})."
  15482. msgstr ""
  15483. #. type: table
  15484. #: guix-git/doc/guix.texi:10306
  15485. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--timeout}})."
  15486. msgstr ""
  15487. #. type: cindex
  15488. #: guix-git/doc/guix.texi:10309
  15489. #, no-wrap
  15490. msgid "verbosity, of the command-line tools"
  15491. msgstr ""
  15492. #. type: cindex
  15493. #: guix-git/doc/guix.texi:10310
  15494. #, no-wrap
  15495. msgid "build logs, verbosity"
  15496. msgstr ""
  15497. #. type: item
  15498. #: guix-git/doc/guix.texi:10311
  15499. #, no-wrap
  15500. msgid "-v @var{level}"
  15501. msgstr ""
  15502. #. type: itemx
  15503. #: guix-git/doc/guix.texi:10312
  15504. #, no-wrap
  15505. msgid "--verbosity=@var{level}"
  15506. msgstr ""
  15507. #. type: table
  15508. #: guix-git/doc/guix.texi:10317
  15509. 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."
  15510. msgstr ""
  15511. #. type: table
  15512. #: guix-git/doc/guix.texi:10322
  15513. 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."
  15514. msgstr ""
  15515. #. type: table
  15516. #: guix-git/doc/guix.texi:10328
  15517. 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."
  15518. msgstr ""
  15519. #. type: item
  15520. #: guix-git/doc/guix.texi:10329
  15521. #, no-wrap
  15522. msgid "--debug=@var{level}"
  15523. msgstr ""
  15524. #. type: table
  15525. #: guix-git/doc/guix.texi:10333
  15526. 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."
  15527. msgstr ""
  15528. #. type: Plain text
  15529. #: guix-git/doc/guix.texi:10340
  15530. 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."
  15531. msgstr ""
  15532. #. type: Plain text
  15533. #: guix-git/doc/guix.texi:10344
  15534. 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."
  15535. msgstr ""
  15536. #. type: defvr
  15537. #: guix-git/doc/guix.texi:10345
  15538. #, no-wrap
  15539. msgid "{Environment Variable} GUIX_BUILD_OPTIONS"
  15540. msgstr ""
  15541. #. type: defvr
  15542. #: guix-git/doc/guix.texi:10350
  15543. 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:"
  15544. msgstr ""
  15545. #. type: example
  15546. #: guix-git/doc/guix.texi:10353
  15547. #, no-wrap
  15548. msgid "$ export GUIX_BUILD_OPTIONS=\"--no-substitutes -c 2 -L /foo/bar\"\n"
  15549. msgstr ""
  15550. #. type: defvr
  15551. #: guix-git/doc/guix.texi:10357
  15552. msgid "These options are parsed independently, and the result is appended to the parsed command-line options."
  15553. msgstr ""
  15554. #. type: cindex
  15555. #: guix-git/doc/guix.texi:10363
  15556. #, no-wrap
  15557. msgid "package variants"
  15558. msgstr ""
  15559. #. type: Plain text
  15560. #: guix-git/doc/guix.texi:10371
  15561. 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})."
  15562. msgstr ""
  15563. #. type: Plain text
  15564. #: guix-git/doc/guix.texi:10375
  15565. 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."
  15566. msgstr ""
  15567. #. type: Plain text
  15568. #: guix-git/doc/guix.texi:10380
  15569. 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)."
  15570. msgstr ""
  15571. #. type: item
  15572. #: guix-git/doc/guix.texi:10383
  15573. #, no-wrap
  15574. msgid "--with-source=@var{source}"
  15575. msgstr ""
  15576. #. type: itemx
  15577. #: guix-git/doc/guix.texi:10384
  15578. #, no-wrap
  15579. msgid "--with-source=@var{package}=@var{source}"
  15580. msgstr ""
  15581. #. type: itemx
  15582. #: guix-git/doc/guix.texi:10385
  15583. #, no-wrap
  15584. msgid "--with-source=@var{package}@@@var{version}=@var{source}"
  15585. msgstr ""
  15586. #. type: table
  15587. #: guix-git/doc/guix.texi:10390
  15588. 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})."
  15589. msgstr ""
  15590. #. type: table
  15591. #: guix-git/doc/guix.texi:10396
  15592. 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}."
  15593. msgstr ""
  15594. #. type: table
  15595. #: guix-git/doc/guix.texi:10399
  15596. 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}."
  15597. msgstr ""
  15598. #. type: table
  15599. #: guix-git/doc/guix.texi:10404
  15600. 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:"
  15601. msgstr ""
  15602. #. type: example
  15603. #: guix-git/doc/guix.texi:10407
  15604. #, no-wrap
  15605. msgid "guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz\n"
  15606. msgstr ""
  15607. #. type: table
  15608. #: guix-git/doc/guix.texi:10411
  15609. msgid "As a developer, @option{--with-source} makes it easy to test release candidates:"
  15610. msgstr ""
  15611. #. type: example
  15612. #: guix-git/doc/guix.texi:10414
  15613. #, no-wrap
  15614. msgid "guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz\n"
  15615. msgstr ""
  15616. #. type: table
  15617. #: guix-git/doc/guix.texi:10417
  15618. msgid "@dots{} or to build from a checkout in a pristine environment:"
  15619. msgstr ""
  15620. #. type: example
  15621. #: guix-git/doc/guix.texi:10421
  15622. #, no-wrap
  15623. msgid ""
  15624. "$ git clone git://git.sv.gnu.org/guix.git\n"
  15625. "$ guix build guix --with-source=guix@@1.0=./guix\n"
  15626. msgstr ""
  15627. #. type: item
  15628. #: guix-git/doc/guix.texi:10423
  15629. #, no-wrap
  15630. msgid "--with-input=@var{package}=@var{replacement}"
  15631. msgstr ""
  15632. #. type: table
  15633. #: guix-git/doc/guix.texi:10428
  15634. 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}."
  15635. msgstr ""
  15636. #. type: table
  15637. #: guix-git/doc/guix.texi:10432
  15638. 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}:"
  15639. msgstr ""
  15640. #. type: example
  15641. #: guix-git/doc/guix.texi:10435
  15642. #, no-wrap
  15643. msgid "guix build --with-input=guile=guile@@2.0 guix\n"
  15644. msgstr ""
  15645. #. type: table
  15646. #: guix-git/doc/guix.texi:10440
  15647. 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}."
  15648. msgstr ""
  15649. #. type: table
  15650. #: guix-git/doc/guix.texi:10443
  15651. msgid "This is implemented using the @code{package-input-rewriting} Scheme procedure (@pxref{Defining Packages, @code{package-input-rewriting}})."
  15652. msgstr ""
  15653. #. type: item
  15654. #: guix-git/doc/guix.texi:10444
  15655. #, no-wrap
  15656. msgid "--with-graft=@var{package}=@var{replacement}"
  15657. msgstr ""
  15658. #. type: table
  15659. #: guix-git/doc/guix.texi:10450
  15660. 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."
  15661. msgstr ""
  15662. #. type: table
  15663. #: guix-git/doc/guix.texi:10454
  15664. 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:"
  15665. msgstr ""
  15666. #. type: example
  15667. #: guix-git/doc/guix.texi:10457
  15668. #, no-wrap
  15669. msgid "guix build --with-graft=gnutls=gnutls@@3.5.4 wget\n"
  15670. msgstr ""
  15671. #. type: table
  15672. #: guix-git/doc/guix.texi:10466
  15673. 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!"
  15674. msgstr ""
  15675. #. type: cindex
  15676. #: guix-git/doc/guix.texi:10467 guix-git/doc/guix.texi:34481
  15677. #, no-wrap
  15678. msgid "debugging info, rebuilding"
  15679. msgstr ""
  15680. #. type: item
  15681. #: guix-git/doc/guix.texi:10468
  15682. #, no-wrap
  15683. msgid "--with-debug-info=@var{package}"
  15684. msgstr ""
  15685. #. type: table
  15686. #: guix-git/doc/guix.texi:10473
  15687. 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})."
  15688. msgstr ""
  15689. #. type: table
  15690. #: guix-git/doc/guix.texi:10479
  15691. 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:"
  15692. msgstr ""
  15693. #. type: example
  15694. #: guix-git/doc/guix.texi:10482 guix-git/doc/guix.texi:34512
  15695. #, no-wrap
  15696. msgid "guix install inkscape --with-debug-info=glib\n"
  15697. msgstr ""
  15698. #. type: table
  15699. #: guix-git/doc/guix.texi:10486
  15700. msgid "Only GLib needs to be recompiled so this takes a reasonable amount of time. @xref{Installing Debugging Files}, for more info."
  15701. msgstr ""
  15702. #. type: quotation
  15703. #: guix-git/doc/guix.texi:10492
  15704. 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."
  15705. msgstr ""
  15706. #. type: quotation
  15707. #: guix-git/doc/guix.texi:10496
  15708. 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."
  15709. msgstr ""
  15710. #. type: cindex
  15711. #: guix-git/doc/guix.texi:10498
  15712. #, no-wrap
  15713. msgid "tool chain, changing the build tool chain of a package"
  15714. msgstr ""
  15715. #. type: item
  15716. #: guix-git/doc/guix.texi:10499
  15717. #, no-wrap
  15718. msgid "--with-c-toolchain=@var{package}=@var{toolchain}"
  15719. msgstr ""
  15720. #. type: table
  15721. #: guix-git/doc/guix.texi:10503
  15722. 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++."
  15723. msgstr ""
  15724. #. type: example
  15725. #: guix-git/doc/guix.texi:10510
  15726. #, no-wrap
  15727. msgid ""
  15728. "guix build octave-cli \\\n"
  15729. " --with-c-toolchain=fftw=gcc-toolchain@@10 \\\n"
  15730. " --with-c-toolchain=fftwf=gcc-toolchain@@10\n"
  15731. msgstr ""
  15732. #. type: table
  15733. #: guix-git/doc/guix.texi:10517
  15734. 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}."
  15735. msgstr ""
  15736. #. type: table
  15737. #: guix-git/doc/guix.texi:10521
  15738. 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:"
  15739. msgstr ""
  15740. #. type: example
  15741. #: guix-git/doc/guix.texi:10525
  15742. #, no-wrap
  15743. msgid ""
  15744. "guix build --with-c-toolchain=hwloc=clang-toolchain \\\n"
  15745. " intel-mpi-benchmarks\n"
  15746. msgstr ""
  15747. #. type: quotation
  15748. #: guix-git/doc/guix.texi:10534
  15749. 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."
  15750. msgstr ""
  15751. #. type: item
  15752. #: guix-git/doc/guix.texi:10536
  15753. #, no-wrap
  15754. msgid "--with-git-url=@var{package}=@var{url}"
  15755. msgstr ""
  15756. #. type: cindex
  15757. #: guix-git/doc/guix.texi:10537
  15758. #, no-wrap
  15759. msgid "Git, using the latest commit"
  15760. msgstr ""
  15761. #. type: cindex
  15762. #: guix-git/doc/guix.texi:10538
  15763. #, no-wrap
  15764. msgid "latest commit, building"
  15765. msgstr ""
  15766. #. type: table
  15767. #: guix-git/doc/guix.texi:10542
  15768. 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."
  15769. msgstr ""
  15770. #. type: table
  15771. #: guix-git/doc/guix.texi:10545
  15772. msgid "For example, the following command builds the NumPy Python library against the latest commit of the master branch of Python itself:"
  15773. msgstr ""
  15774. #. type: example
  15775. #: guix-git/doc/guix.texi:10549
  15776. #, no-wrap
  15777. msgid ""
  15778. "guix build python-numpy \\\n"
  15779. " --with-git-url=python=https://github.com/python/cpython\n"
  15780. msgstr ""
  15781. #. type: table
  15782. #: guix-git/doc/guix.texi:10553
  15783. msgid "This option can also be combined with @option{--with-branch} or @option{--with-commit} (see below)."
  15784. msgstr ""
  15785. #. type: cindex
  15786. #: guix-git/doc/guix.texi:10554 guix-git/doc/guix.texi:27180
  15787. #, no-wrap
  15788. msgid "continuous integration"
  15789. msgstr ""
  15790. #. type: table
  15791. #: guix-git/doc/guix.texi:10560
  15792. 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)."
  15793. msgstr ""
  15794. #. type: table
  15795. #: guix-git/doc/guix.texi:10564
  15796. 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."
  15797. msgstr ""
  15798. #. type: item
  15799. #: guix-git/doc/guix.texi:10565
  15800. #, no-wrap
  15801. msgid "--with-branch=@var{package}=@var{branch}"
  15802. msgstr ""
  15803. #. type: table
  15804. #: guix-git/doc/guix.texi:10571
  15805. 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."
  15806. msgstr ""
  15807. #. type: table
  15808. #: guix-git/doc/guix.texi:10576
  15809. 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:"
  15810. msgstr ""
  15811. #. type: example
  15812. #: guix-git/doc/guix.texi:10579
  15813. #, no-wrap
  15814. msgid "guix build --with-branch=guile-sqlite3=master cuirass\n"
  15815. msgstr ""
  15816. #. type: item
  15817. #: guix-git/doc/guix.texi:10581
  15818. #, no-wrap
  15819. msgid "--with-commit=@var{package}=@var{commit}"
  15820. msgstr ""
  15821. #. type: table
  15822. #: guix-git/doc/guix.texi:10585
  15823. 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."
  15824. msgstr ""
  15825. #. type: item
  15826. #: guix-git/doc/guix.texi:10586
  15827. #, no-wrap
  15828. msgid "--with-patch=@var{package}=@var{file}"
  15829. msgstr ""
  15830. #. type: table
  15831. #: guix-git/doc/guix.texi:10593
  15832. 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})."
  15833. msgstr ""
  15834. #. type: table
  15835. #: guix-git/doc/guix.texi:10596
  15836. msgid "As an example, the command below rebuilds Coreutils with the GNU C Library (glibc) patched with the given patch:"
  15837. msgstr ""
  15838. #. type: example
  15839. #: guix-git/doc/guix.texi:10599
  15840. #, no-wrap
  15841. msgid "guix build coreutils --with-patch=glibc=./glibc-frob.patch\n"
  15842. msgstr ""
  15843. #. type: table
  15844. #: guix-git/doc/guix.texi:10603
  15845. msgid "In this example, glibc itself as well as everything that leads to Coreutils in the dependency graph is rebuilt."
  15846. msgstr ""
  15847. #. type: cindex
  15848. #: guix-git/doc/guix.texi:10604
  15849. #, fuzzy, no-wrap
  15850. msgid "upstream, latest version"
  15851. msgstr "软件包版本"
  15852. #. type: item
  15853. #: guix-git/doc/guix.texi:10605
  15854. #, fuzzy, no-wrap
  15855. msgid "--with-latest=@var{package}"
  15856. msgstr "--log-compression=@var{type}"
  15857. #. type: table
  15858. #: guix-git/doc/guix.texi:10610
  15859. 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})."
  15860. msgstr ""
  15861. #. type: table
  15862. #: guix-git/doc/guix.texi:10614
  15863. 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."
  15864. msgstr ""
  15865. #. type: table
  15866. #: guix-git/doc/guix.texi:10617
  15867. msgid "As an example, the command below builds Guix against the latest version of Guile-JSON:"
  15868. msgstr ""
  15869. #. type: example
  15870. #: guix-git/doc/guix.texi:10620
  15871. #, no-wrap
  15872. msgid "guix build guix --with-latest=guile-json\n"
  15873. msgstr ""
  15874. #. type: table
  15875. #: guix-git/doc/guix.texi:10629
  15876. 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."
  15877. msgstr ""
  15878. #. type: table
  15879. #: guix-git/doc/guix.texi:10634
  15880. 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})."
  15881. msgstr ""
  15882. #. type: cindex
  15883. #: guix-git/doc/guix.texi:10635
  15884. #, fuzzy, no-wrap
  15885. msgid "test suite, skipping"
  15886. msgstr "测试套件"
  15887. #. type: item
  15888. #: guix-git/doc/guix.texi:10636
  15889. #, no-wrap
  15890. msgid "--without-tests=@var{package}"
  15891. msgstr ""
  15892. #. type: table
  15893. #: guix-git/doc/guix.texi:10642
  15894. 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."
  15895. msgstr ""
  15896. #. type: table
  15897. #: guix-git/doc/guix.texi:10646
  15898. 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:"
  15899. msgstr ""
  15900. #. type: example
  15901. #: guix-git/doc/guix.texi:10649
  15902. #, no-wrap
  15903. msgid "guix install --without-tests=python python-notebook\n"
  15904. msgstr ""
  15905. #. type: table
  15906. #: guix-git/doc/guix.texi:10655
  15907. 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."
  15908. msgstr ""
  15909. #. type: table
  15910. #: guix-git/doc/guix.texi:10661
  15911. 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."
  15912. msgstr ""
  15913. #. type: Plain text
  15914. #: guix-git/doc/guix.texi:10668
  15915. 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."
  15916. msgstr ""
  15917. #. type: Plain text
  15918. #: guix-git/doc/guix.texi:10674
  15919. msgid "The command-line options presented below are specific to @command{guix build}."
  15920. msgstr ""
  15921. #. type: item
  15922. #: guix-git/doc/guix.texi:10677
  15923. #, no-wrap
  15924. msgid "--quiet"
  15925. msgstr ""
  15926. #. type: table
  15927. #: guix-git/doc/guix.texi:10682
  15928. 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."
  15929. msgstr ""
  15930. #. type: item
  15931. #: guix-git/doc/guix.texi:10683
  15932. #, no-wrap
  15933. msgid "--file=@var{file}"
  15934. msgstr ""
  15935. #. type: table
  15936. #: guix-git/doc/guix.texi:10687
  15937. msgid "Build the package, derivation, or other file-like object that the code within @var{file} evaluates to (@pxref{G-Expressions, file-like objects})."
  15938. msgstr ""
  15939. #. type: table
  15940. #: guix-git/doc/guix.texi:10690
  15941. msgid "As an example, @var{file} might contain a package definition like this (@pxref{Defining Packages}):"
  15942. msgstr ""
  15943. #. type: table
  15944. #: guix-git/doc/guix.texi:10699
  15945. 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}:"
  15946. msgstr ""
  15947. #. type: item
  15948. #: guix-git/doc/guix.texi:10704
  15949. #, fuzzy, no-wrap
  15950. msgid "--manifest=@var{manifest}"
  15951. msgstr "--listen=@var{endpoint}"
  15952. #. type: itemx
  15953. #: guix-git/doc/guix.texi:10705
  15954. #, fuzzy, no-wrap
  15955. msgid "-m @var{manifest}"
  15956. msgstr "-c @var{n}"
  15957. #. type: table
  15958. #: guix-git/doc/guix.texi:10708
  15959. msgid "Build all packages listed in the given @var{manifest} (@pxref{profile-manifest, @option{--manifest}})."
  15960. msgstr ""
  15961. #. type: table
  15962. #: guix-git/doc/guix.texi:10712
  15963. msgid "Build the package or derivation @var{expr} evaluates to."
  15964. msgstr ""
  15965. #. type: table
  15966. #: guix-git/doc/guix.texi:10716
  15967. 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."
  15968. msgstr ""
  15969. #. type: table
  15970. #: guix-git/doc/guix.texi:10720
  15971. 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})."
  15972. msgstr ""
  15973. #. type: table
  15974. #: guix-git/doc/guix.texi:10724
  15975. 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}."
  15976. msgstr ""
  15977. #. type: item
  15978. #: guix-git/doc/guix.texi:10725
  15979. #, no-wrap
  15980. msgid "--source"
  15981. msgstr ""
  15982. #. type: itemx
  15983. #: guix-git/doc/guix.texi:10726
  15984. #, no-wrap
  15985. msgid "-S"
  15986. msgstr ""
  15987. #. type: table
  15988. #: guix-git/doc/guix.texi:10729
  15989. msgid "Build the source derivations of the packages, rather than the packages themselves."
  15990. msgstr ""
  15991. #. type: table
  15992. #: guix-git/doc/guix.texi:10733
  15993. 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."
  15994. msgstr ""
  15995. #. type: table
  15996. #: guix-git/doc/guix.texi:10737
  15997. msgid "The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages})."
  15998. msgstr ""
  15999. #. type: cindex
  16000. #: guix-git/doc/guix.texi:10738
  16001. #, no-wrap
  16002. msgid "source, verification"
  16003. msgstr ""
  16004. #. type: table
  16005. #: guix-git/doc/guix.texi:10744
  16006. 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."
  16007. msgstr ""
  16008. #. type: table
  16009. #: guix-git/doc/guix.texi:10749
  16010. 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."
  16011. msgstr ""
  16012. #. type: item
  16013. #: guix-git/doc/guix.texi:10750
  16014. #, no-wrap
  16015. msgid "--sources"
  16016. msgstr ""
  16017. #. type: table
  16018. #: guix-git/doc/guix.texi:10757
  16019. 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:"
  16020. msgstr ""
  16021. #. type: item
  16022. #: guix-git/doc/guix.texi:10759 guix-git/doc/guix.texi:12303
  16023. #, no-wrap
  16024. msgid "package"
  16025. msgstr ""
  16026. #. type: table
  16027. #: guix-git/doc/guix.texi:10762
  16028. msgid "This value causes the @option{--sources} option to behave in the same way as the @option{--source} option."
  16029. msgstr ""
  16030. #. type: item
  16031. #: guix-git/doc/guix.texi:10763 guix-git/doc/guix.texi:18249
  16032. #, no-wrap
  16033. msgid "all"
  16034. msgstr ""
  16035. #. type: table
  16036. #: guix-git/doc/guix.texi:10766
  16037. msgid "Build the source derivations of all packages, including any source that might be listed as @code{inputs}. This is the default value."
  16038. msgstr ""
  16039. #. type: example
  16040. #: guix-git/doc/guix.texi:10772
  16041. #, no-wrap
  16042. msgid ""
  16043. "$ guix build --sources tzdata\n"
  16044. "The following derivations will be built:\n"
  16045. " /gnu/store/@dots{}-tzdata2015b.tar.gz.drv\n"
  16046. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  16047. msgstr ""
  16048. #. type: item
  16049. #: guix-git/doc/guix.texi:10774
  16050. #, no-wrap
  16051. msgid "transitive"
  16052. msgstr ""
  16053. #. type: table
  16054. #: guix-git/doc/guix.texi:10778
  16055. 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."
  16056. msgstr ""
  16057. #. type: example
  16058. #: guix-git/doc/guix.texi:10789
  16059. #, no-wrap
  16060. msgid ""
  16061. "$ guix build --sources=transitive tzdata\n"
  16062. "The following derivations will be built:\n"
  16063. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  16064. " /gnu/store/@dots{}-findutils-4.4.2.tar.xz.drv\n"
  16065. " /gnu/store/@dots{}-grep-2.21.tar.xz.drv\n"
  16066. " /gnu/store/@dots{}-coreutils-8.23.tar.xz.drv\n"
  16067. " /gnu/store/@dots{}-make-4.1.tar.xz.drv\n"
  16068. " /gnu/store/@dots{}-bash-4.3.tar.xz.drv\n"
  16069. "@dots{}\n"
  16070. msgstr ""
  16071. #. type: table
  16072. #: guix-git/doc/guix.texi:10799
  16073. 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."
  16074. msgstr ""
  16075. #. type: quotation
  16076. #: guix-git/doc/guix.texi:10804
  16077. 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."
  16078. msgstr ""
  16079. #. type: table
  16080. #: guix-git/doc/guix.texi:10811
  16081. 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."
  16082. msgstr ""
  16083. #. type: quotation
  16084. #: guix-git/doc/guix.texi:10816
  16085. 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."
  16086. msgstr ""
  16087. #. type: table
  16088. #: guix-git/doc/guix.texi:10822
  16089. 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."
  16090. msgstr ""
  16091. #. type: table
  16092. #: guix-git/doc/guix.texi:10826
  16093. 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."
  16094. msgstr ""
  16095. #. type: table
  16096. #: guix-git/doc/guix.texi:10832
  16097. 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})."
  16098. msgstr ""
  16099. #. type: anchor{#1}
  16100. #: guix-git/doc/guix.texi:10834
  16101. msgid "build-check"
  16102. msgstr ""
  16103. #. type: item
  16104. #: guix-git/doc/guix.texi:10834
  16105. #, no-wrap
  16106. msgid "--check"
  16107. msgstr ""
  16108. #. type: cindex
  16109. #: guix-git/doc/guix.texi:10835
  16110. #, no-wrap
  16111. msgid "determinism, checking"
  16112. msgstr ""
  16113. #. type: cindex
  16114. #: guix-git/doc/guix.texi:10836
  16115. #, no-wrap
  16116. msgid "reproducibility, checking"
  16117. msgstr ""
  16118. #. type: table
  16119. #: guix-git/doc/guix.texi:10840
  16120. 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."
  16121. msgstr ""
  16122. #. type: table
  16123. #: guix-git/doc/guix.texi:10845
  16124. 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."
  16125. msgstr ""
  16126. #. type: item
  16127. #: guix-git/doc/guix.texi:10850
  16128. #, no-wrap
  16129. msgid "--repair"
  16130. msgstr ""
  16131. #. type: cindex
  16132. #: guix-git/doc/guix.texi:10851
  16133. #, no-wrap
  16134. msgid "repairing store items"
  16135. msgstr ""
  16136. #. type: table
  16137. #: guix-git/doc/guix.texi:10855
  16138. msgid "Attempt to repair the specified store items, if they are corrupt, by re-downloading or rebuilding them."
  16139. msgstr ""
  16140. #. type: table
  16141. #: guix-git/doc/guix.texi:10857
  16142. msgid "This operation is not atomic and thus restricted to @code{root}."
  16143. msgstr ""
  16144. #. type: item
  16145. #: guix-git/doc/guix.texi:10858
  16146. #, no-wrap
  16147. msgid "--derivations"
  16148. msgstr ""
  16149. #. type: table
  16150. #: guix-git/doc/guix.texi:10862
  16151. msgid "Return the derivation paths, not the output paths, of the given packages."
  16152. msgstr ""
  16153. #. type: cindex
  16154. #: guix-git/doc/guix.texi:10865
  16155. #, no-wrap
  16156. msgid "GC roots, adding"
  16157. msgstr ""
  16158. #. type: cindex
  16159. #: guix-git/doc/guix.texi:10866
  16160. #, no-wrap
  16161. msgid "garbage collector roots, adding"
  16162. msgstr ""
  16163. #. type: table
  16164. #: guix-git/doc/guix.texi:10869 guix-git/doc/guix.texi:33169
  16165. msgid "Make @var{file} a symlink to the result, and register it as a garbage collector root."
  16166. msgstr ""
  16167. #. type: table
  16168. #: guix-git/doc/guix.texi:10875
  16169. 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."
  16170. msgstr ""
  16171. #. type: item
  16172. #: guix-git/doc/guix.texi:10876
  16173. #, no-wrap
  16174. msgid "--log-file"
  16175. msgstr ""
  16176. #. type: cindex
  16177. #: guix-git/doc/guix.texi:10877
  16178. #, no-wrap
  16179. msgid "build logs, access"
  16180. msgstr ""
  16181. #. type: table
  16182. #: guix-git/doc/guix.texi:10881
  16183. 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."
  16184. msgstr ""
  16185. #. type: table
  16186. #: guix-git/doc/guix.texi:10884
  16187. msgid "This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent:"
  16188. msgstr ""
  16189. #. type: example
  16190. #: guix-git/doc/guix.texi:10890
  16191. #, no-wrap
  16192. msgid ""
  16193. "guix build --log-file $(guix build -d guile)\n"
  16194. "guix build --log-file $(guix build guile)\n"
  16195. "guix build --log-file guile\n"
  16196. "guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'\n"
  16197. msgstr ""
  16198. #. type: table
  16199. #: guix-git/doc/guix.texi:10895
  16200. 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})."
  16201. msgstr ""
  16202. #. type: table
  16203. #: guix-git/doc/guix.texi:10898
  16204. 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:"
  16205. msgstr ""
  16206. #. type: example
  16207. #: guix-git/doc/guix.texi:10902
  16208. #, no-wrap
  16209. msgid ""
  16210. "$ guix build --log-file gdb -s aarch64-linux\n"
  16211. "https://@value{SUBSTITUTE-SERVER}/log/@dots{}-gdb-7.10\n"
  16212. msgstr ""
  16213. #. type: table
  16214. #: guix-git/doc/guix.texi:10905
  16215. msgid "You can freely access a huge library of build logs!"
  16216. msgstr ""
  16217. #. type: cindex
  16218. #: guix-git/doc/guix.texi:10910
  16219. #, no-wrap
  16220. msgid "build failures, debugging"
  16221. msgstr ""
  16222. #. type: Plain text
  16223. #: guix-git/doc/guix.texi:10916
  16224. 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."
  16225. msgstr ""
  16226. #. type: Plain text
  16227. #: guix-git/doc/guix.texi:10921
  16228. 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}})."
  16229. msgstr ""
  16230. #. type: Plain text
  16231. #: guix-git/doc/guix.texi:10927
  16232. 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:"
  16233. msgstr ""
  16234. #. type: example
  16235. #: guix-git/doc/guix.texi:10934
  16236. #, no-wrap
  16237. msgid ""
  16238. "$ guix build foo -K\n"
  16239. "@dots{} @i{build fails}\n"
  16240. "$ cd /tmp/guix-build-foo.drv-0\n"
  16241. "$ source ./environment-variables\n"
  16242. "$ cd foo-1.2\n"
  16243. msgstr ""
  16244. #. type: Plain text
  16245. #: guix-git/doc/guix.texi:10938
  16246. msgid "Now, you can invoke commands as if you were the daemon (almost) and troubleshoot your build process."
  16247. msgstr ""
  16248. #. type: Plain text
  16249. #: guix-git/doc/guix.texi:10944
  16250. 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})."
  16251. msgstr ""
  16252. #. type: Plain text
  16253. #: guix-git/doc/guix.texi:10947
  16254. 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:"
  16255. msgstr ""
  16256. #. type: example
  16257. #: guix-git/doc/guix.texi:10955
  16258. #, no-wrap
  16259. msgid ""
  16260. "$ guix build -K foo\n"
  16261. "@dots{}\n"
  16262. "$ cd /tmp/guix-build-foo.drv-0\n"
  16263. "$ guix environment --no-grafts -C foo --ad-hoc strace gdb\n"
  16264. "[env]# source ./environment-variables\n"
  16265. "[env]# cd foo-1.2\n"
  16266. msgstr ""
  16267. #. type: Plain text
  16268. #: guix-git/doc/guix.texi:10964
  16269. 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)."
  16270. msgstr ""
  16271. #. type: Plain text
  16272. #: guix-git/doc/guix.texi:10967
  16273. msgid "To get closer to a container like that used by the build daemon, we can remove @file{/bin/sh}:"
  16274. msgstr ""
  16275. #. type: example
  16276. #: guix-git/doc/guix.texi:10970
  16277. #, no-wrap
  16278. msgid "[env]# rm /bin/sh\n"
  16279. msgstr ""
  16280. #. type: Plain text
  16281. #: guix-git/doc/guix.texi:10974
  16282. msgid "(Don't worry, this is harmless: this is all happening in the throw-away container created by @command{guix environment}.)"
  16283. msgstr ""
  16284. #. type: Plain text
  16285. #: guix-git/doc/guix.texi:10977
  16286. msgid "The @command{strace} command is probably not in the search path, but we can run:"
  16287. msgstr ""
  16288. #. type: example
  16289. #: guix-git/doc/guix.texi:10980
  16290. #, no-wrap
  16291. msgid "[env]# $GUIX_ENVIRONMENT/bin/strace -f -o log make check\n"
  16292. msgstr ""
  16293. #. type: Plain text
  16294. #: guix-git/doc/guix.texi:10985
  16295. 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."
  16296. msgstr ""
  16297. #. type: section
  16298. #: guix-git/doc/guix.texi:10988
  16299. #, no-wrap
  16300. msgid "Invoking @command{guix edit}"
  16301. msgstr ""
  16302. #. type: command{#1}
  16303. #: guix-git/doc/guix.texi:10990
  16304. #, no-wrap
  16305. msgid "guix edit"
  16306. msgstr ""
  16307. #. type: cindex
  16308. #: guix-git/doc/guix.texi:10991
  16309. #, no-wrap
  16310. msgid "package definition, editing"
  16311. msgstr ""
  16312. #. type: Plain text
  16313. #: guix-git/doc/guix.texi:10996
  16314. 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:"
  16315. msgstr ""
  16316. #. type: example
  16317. #: guix-git/doc/guix.texi:10999
  16318. #, no-wrap
  16319. msgid "guix edit gcc@@4.9 vim\n"
  16320. msgstr ""
  16321. #. type: Plain text
  16322. #: guix-git/doc/guix.texi:11005
  16323. 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."
  16324. msgstr ""
  16325. #. type: Plain text
  16326. #: guix-git/doc/guix.texi:11011
  16327. 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."
  16328. msgstr ""
  16329. #. type: Plain text
  16330. #: guix-git/doc/guix.texi:11016
  16331. 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."
  16332. msgstr ""
  16333. #. type: section
  16334. #: guix-git/doc/guix.texi:11018
  16335. #, no-wrap
  16336. msgid "Invoking @command{guix download}"
  16337. msgstr ""
  16338. #. type: command{#1}
  16339. #: guix-git/doc/guix.texi:11020
  16340. #, no-wrap
  16341. msgid "guix download"
  16342. msgstr ""
  16343. #. type: cindex
  16344. #: guix-git/doc/guix.texi:11021
  16345. #, no-wrap
  16346. msgid "downloading package sources"
  16347. msgstr ""
  16348. #. type: Plain text
  16349. #: guix-git/doc/guix.texi:11028
  16350. 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."
  16351. msgstr ""
  16352. #. type: Plain text
  16353. #: guix-git/doc/guix.texi:11035
  16354. 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})."
  16355. msgstr ""
  16356. #. type: Plain text
  16357. #: guix-git/doc/guix.texi:11043
  16358. 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."
  16359. msgstr ""
  16360. #. type: Plain text
  16361. #: guix-git/doc/guix.texi:11048
  16362. 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."
  16363. msgstr ""
  16364. #. type: Plain text
  16365. #: guix-git/doc/guix.texi:11050 guix-git/doc/guix.texi:12602
  16366. msgid "The following options are available:"
  16367. msgstr ""
  16368. #. type: item
  16369. #: guix-git/doc/guix.texi:11052 guix-git/doc/guix.texi:11096
  16370. #, no-wrap
  16371. msgid "--hash=@var{algorithm}"
  16372. msgstr ""
  16373. #. type: itemx
  16374. #: guix-git/doc/guix.texi:11053 guix-git/doc/guix.texi:11097
  16375. #, no-wrap
  16376. msgid "-H @var{algorithm}"
  16377. msgstr ""
  16378. #. type: table
  16379. #: guix-git/doc/guix.texi:11056
  16380. msgid "Compute a hash using the specified @var{algorithm}. @xref{Invoking guix hash}, for more information."
  16381. msgstr ""
  16382. #. type: item
  16383. #: guix-git/doc/guix.texi:11057 guix-git/doc/guix.texi:11106
  16384. #, no-wrap
  16385. msgid "--format=@var{fmt}"
  16386. msgstr ""
  16387. #. type: itemx
  16388. #: guix-git/doc/guix.texi:11058 guix-git/doc/guix.texi:11107
  16389. #, no-wrap
  16390. msgid "-f @var{fmt}"
  16391. msgstr ""
  16392. #. type: table
  16393. #: guix-git/doc/guix.texi:11061
  16394. 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}."
  16395. msgstr ""
  16396. #. type: item
  16397. #: guix-git/doc/guix.texi:11062
  16398. #, no-wrap
  16399. msgid "--no-check-certificate"
  16400. msgstr ""
  16401. #. type: table
  16402. #: guix-git/doc/guix.texi:11064
  16403. msgid "Do not validate the X.509 certificates of HTTPS servers."
  16404. msgstr ""
  16405. #. type: table
  16406. #: guix-git/doc/guix.texi:11068
  16407. 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."
  16408. msgstr ""
  16409. #. type: item
  16410. #: guix-git/doc/guix.texi:11069
  16411. #, no-wrap
  16412. msgid "--output=@var{file}"
  16413. msgstr ""
  16414. #. type: itemx
  16415. #: guix-git/doc/guix.texi:11070
  16416. #, no-wrap
  16417. msgid "-o @var{file}"
  16418. msgstr ""
  16419. #. type: table
  16420. #: guix-git/doc/guix.texi:11073
  16421. msgid "Save the downloaded file to @var{file} instead of adding it to the store."
  16422. msgstr ""
  16423. #. type: section
  16424. #: guix-git/doc/guix.texi:11076
  16425. #, no-wrap
  16426. msgid "Invoking @command{guix hash}"
  16427. msgstr ""
  16428. #. type: command{#1}
  16429. #: guix-git/doc/guix.texi:11078
  16430. #, no-wrap
  16431. msgid "guix hash"
  16432. msgstr ""
  16433. #. type: Plain text
  16434. #: guix-git/doc/guix.texi:11083
  16435. 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})."
  16436. msgstr ""
  16437. #. type: example
  16438. #: guix-git/doc/guix.texi:11088
  16439. #, no-wrap
  16440. msgid "guix hash @var{option} @var{file}\n"
  16441. msgstr ""
  16442. #. type: Plain text
  16443. #: guix-git/doc/guix.texi:11093
  16444. 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:"
  16445. msgstr ""
  16446. #. type: table
  16447. #: guix-git/doc/guix.texi:11100
  16448. msgid "Compute a hash using the specified @var{algorithm}, @code{sha256} by default."
  16449. msgstr ""
  16450. #. type: table
  16451. #: guix-git/doc/guix.texi:11105
  16452. 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})."
  16453. msgstr ""
  16454. #. type: table
  16455. #: guix-git/doc/guix.texi:11109
  16456. msgid "Write the hash in the format specified by @var{fmt}."
  16457. msgstr ""
  16458. #. type: table
  16459. #: guix-git/doc/guix.texi:11112
  16460. msgid "Supported formats: @code{base64}, @code{nix-base32}, @code{base32}, @code{base16} (@code{hex} and @code{hexadecimal} can be used as well)."
  16461. msgstr ""
  16462. #. type: table
  16463. #: guix-git/doc/guix.texi:11116
  16464. 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."
  16465. msgstr ""
  16466. #. type: table
  16467. #: guix-git/doc/guix.texi:11120
  16468. msgid "Compute the hash on @var{file} recursively."
  16469. msgstr ""
  16470. #. type: table
  16471. #: guix-git/doc/guix.texi:11129
  16472. 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})."
  16473. msgstr ""
  16474. #. type: item
  16475. #: guix-git/doc/guix.texi:11130
  16476. #, no-wrap
  16477. msgid "--exclude-vcs"
  16478. msgstr ""
  16479. #. type: itemx
  16480. #: guix-git/doc/guix.texi:11131 guix-git/doc/guix.texi:12089
  16481. #, no-wrap
  16482. msgid "-x"
  16483. msgstr ""
  16484. #. type: table
  16485. #: guix-git/doc/guix.texi:11134
  16486. msgid "When combined with @option{--recursive}, exclude version control system directories (@file{.bzr}, @file{.git}, @file{.hg}, etc.)."
  16487. msgstr ""
  16488. #. type: vindex
  16489. #: guix-git/doc/guix.texi:11135
  16490. #, no-wrap
  16491. msgid "git-fetch"
  16492. msgstr ""
  16493. #. type: table
  16494. #: guix-git/doc/guix.texi:11139
  16495. 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}):"
  16496. msgstr ""
  16497. #. type: example
  16498. #: guix-git/doc/guix.texi:11144
  16499. #, no-wrap
  16500. msgid ""
  16501. "$ git clone http://example.org/foo.git\n"
  16502. "$ cd foo\n"
  16503. "$ guix hash -rx .\n"
  16504. msgstr ""
  16505. #. type: cindex
  16506. #: guix-git/doc/guix.texi:11148 guix-git/doc/guix.texi:11153
  16507. #, no-wrap
  16508. msgid "Invoking @command{guix import}"
  16509. msgstr ""
  16510. #. type: cindex
  16511. #: guix-git/doc/guix.texi:11150
  16512. #, no-wrap
  16513. msgid "importing packages"
  16514. msgstr ""
  16515. #. type: cindex
  16516. #: guix-git/doc/guix.texi:11151
  16517. #, no-wrap
  16518. msgid "package import"
  16519. msgstr ""
  16520. #. type: cindex
  16521. #: guix-git/doc/guix.texi:11152
  16522. #, no-wrap
  16523. msgid "package conversion"
  16524. msgstr ""
  16525. #. type: Plain text
  16526. #: guix-git/doc/guix.texi:11160
  16527. 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})."
  16528. msgstr ""
  16529. #. type: example
  16530. #: guix-git/doc/guix.texi:11165
  16531. #, no-wrap
  16532. msgid "guix import @var{importer} @var{options}@dots{}\n"
  16533. msgstr ""
  16534. #. type: Plain text
  16535. #: guix-git/doc/guix.texi:11170
  16536. 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}."
  16537. msgstr ""
  16538. #. type: Plain text
  16539. #: guix-git/doc/guix.texi:11174
  16540. 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."
  16541. msgstr ""
  16542. #. type: Plain text
  16543. #: guix-git/doc/guix.texi:11176
  16544. msgid "Currently, the available ``importers'' are:"
  16545. msgstr ""
  16546. #. type: item
  16547. #: guix-git/doc/guix.texi:11178 guix-git/doc/guix.texi:11736
  16548. #, no-wrap
  16549. msgid "gnu"
  16550. msgstr ""
  16551. #. type: table
  16552. #: guix-git/doc/guix.texi:11182
  16553. 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."
  16554. msgstr ""
  16555. #. type: table
  16556. #: guix-git/doc/guix.texi:11185
  16557. msgid "Additional information such as the package dependencies and its license needs to be figured out manually."
  16558. msgstr ""
  16559. #. type: table
  16560. #: guix-git/doc/guix.texi:11188
  16561. msgid "For example, the following command returns a package definition for GNU@tie{}Hello:"
  16562. msgstr ""
  16563. #. type: example
  16564. #: guix-git/doc/guix.texi:11191
  16565. #, no-wrap
  16566. msgid "guix import gnu hello\n"
  16567. msgstr ""
  16568. #. type: table
  16569. #: guix-git/doc/guix.texi:11194 guix-git/doc/guix.texi:11404
  16570. #: guix-git/doc/guix.texi:11454 guix-git/doc/guix.texi:11483
  16571. msgid "Specific command-line options are:"
  16572. msgstr ""
  16573. #. type: item
  16574. #: guix-git/doc/guix.texi:11196 guix-git/doc/guix.texi:11897
  16575. #, no-wrap
  16576. msgid "--key-download=@var{policy}"
  16577. msgstr ""
  16578. #. type: table
  16579. #: guix-git/doc/guix.texi:11200
  16580. 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}}."
  16581. msgstr ""
  16582. #. type: item
  16583. #: guix-git/doc/guix.texi:11202 guix-git/doc/guix.texi:11203
  16584. #: guix-git/doc/guix.texi:11758
  16585. #, no-wrap
  16586. msgid "pypi"
  16587. msgstr ""
  16588. #. type: table
  16589. #: guix-git/doc/guix.texi:11210
  16590. 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."
  16591. msgstr ""
  16592. #. type: table
  16593. #: guix-git/doc/guix.texi:11213
  16594. msgid "The command below imports metadata for the @code{itsdangerous} Python package:"
  16595. msgstr ""
  16596. #. type: example
  16597. #: guix-git/doc/guix.texi:11216
  16598. #, no-wrap
  16599. msgid "guix import pypi itsdangerous\n"
  16600. msgstr ""
  16601. #. type: table
  16602. #: guix-git/doc/guix.texi:11224 guix-git/doc/guix.texi:11249
  16603. #: guix-git/doc/guix.texi:11427 guix-git/doc/guix.texi:11468
  16604. #: guix-git/doc/guix.texi:11515 guix-git/doc/guix.texi:11540
  16605. #: guix-git/doc/guix.texi:11556 guix-git/doc/guix.texi:11587
  16606. 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."
  16607. msgstr ""
  16608. #. type: item
  16609. #: guix-git/doc/guix.texi:11226 guix-git/doc/guix.texi:11227
  16610. #: guix-git/doc/guix.texi:11760
  16611. #, no-wrap
  16612. msgid "gem"
  16613. msgstr ""
  16614. #. type: table
  16615. #: guix-git/doc/guix.texi:11236
  16616. 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."
  16617. msgstr ""
  16618. #. type: table
  16619. #: guix-git/doc/guix.texi:11238
  16620. msgid "The command below imports metadata for the @code{rails} Ruby package:"
  16621. msgstr ""
  16622. #. type: example
  16623. #: guix-git/doc/guix.texi:11241
  16624. #, no-wrap
  16625. msgid "guix import gem rails\n"
  16626. msgstr ""
  16627. #. type: item
  16628. #: guix-git/doc/guix.texi:11251 guix-git/doc/guix.texi:11756
  16629. #, no-wrap
  16630. msgid "cpan"
  16631. msgstr ""
  16632. #. type: cindex
  16633. #: guix-git/doc/guix.texi:11252
  16634. #, no-wrap
  16635. msgid "CPAN"
  16636. msgstr ""
  16637. #. type: table
  16638. #: guix-git/doc/guix.texi:11260
  16639. 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."
  16640. msgstr ""
  16641. #. type: table
  16642. #: guix-git/doc/guix.texi:11263
  16643. msgid "The command command below imports metadata for the Acme::Boolean Perl module:"
  16644. msgstr ""
  16645. #. type: example
  16646. #: guix-git/doc/guix.texi:11266
  16647. #, no-wrap
  16648. msgid "guix import cpan Acme::Boolean\n"
  16649. msgstr ""
  16650. #. type: item
  16651. #: guix-git/doc/guix.texi:11268 guix-git/doc/guix.texi:11752
  16652. #, no-wrap
  16653. msgid "cran"
  16654. msgstr ""
  16655. #. type: cindex
  16656. #: guix-git/doc/guix.texi:11269
  16657. #, no-wrap
  16658. msgid "CRAN"
  16659. msgstr ""
  16660. #. type: cindex
  16661. #: guix-git/doc/guix.texi:11270
  16662. #, no-wrap
  16663. msgid "Bioconductor"
  16664. msgstr ""
  16665. #. type: table
  16666. #: guix-git/doc/guix.texi:11274
  16667. 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}."
  16668. msgstr ""
  16669. #. type: table
  16670. #: guix-git/doc/guix.texi:11276
  16671. msgid "Information is extracted from the @file{DESCRIPTION} file of the package."
  16672. msgstr ""
  16673. #. type: table
  16674. #: guix-git/doc/guix.texi:11278
  16675. msgid "The command command below imports metadata for the Cairo R package:"
  16676. msgstr ""
  16677. #. type: example
  16678. #: guix-git/doc/guix.texi:11281
  16679. #, no-wrap
  16680. msgid "guix import cran Cairo\n"
  16681. msgstr ""
  16682. #. type: table
  16683. #: guix-git/doc/guix.texi:11286
  16684. 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."
  16685. msgstr ""
  16686. #. type: table
  16687. #: guix-git/doc/guix.texi:11293
  16688. 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}."
  16689. msgstr ""
  16690. #. type: table
  16691. #: guix-git/doc/guix.texi:11298
  16692. 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."
  16693. msgstr ""
  16694. #. type: table
  16695. #: guix-git/doc/guix.texi:11301
  16696. msgid "Information is extracted from the @file{DESCRIPTION} file contained in the package archive."
  16697. msgstr ""
  16698. #. type: table
  16699. #: guix-git/doc/guix.texi:11303
  16700. msgid "The command below imports metadata for the GenomicRanges R package:"
  16701. msgstr ""
  16702. #. type: example
  16703. #: guix-git/doc/guix.texi:11306
  16704. #, no-wrap
  16705. msgid "guix import cran --archive=bioconductor GenomicRanges\n"
  16706. msgstr ""
  16707. #. type: table
  16708. #: guix-git/doc/guix.texi:11311
  16709. 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:"
  16710. msgstr ""
  16711. #. type: example
  16712. #: guix-git/doc/guix.texi:11314
  16713. #, no-wrap
  16714. msgid "guix import cran --archive=git https://github.com/immunogenomics/harmony\n"
  16715. msgstr ""
  16716. #. type: item
  16717. #: guix-git/doc/guix.texi:11316
  16718. #, no-wrap
  16719. msgid "texlive"
  16720. msgstr ""
  16721. #. type: cindex
  16722. #: guix-git/doc/guix.texi:11317
  16723. #, no-wrap
  16724. msgid "TeX Live"
  16725. msgstr ""
  16726. #. type: cindex
  16727. #: guix-git/doc/guix.texi:11318
  16728. #, no-wrap
  16729. msgid "CTAN"
  16730. msgstr ""
  16731. #. type: table
  16732. #: guix-git/doc/guix.texi:11322
  16733. 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}."
  16734. msgstr ""
  16735. #. type: table
  16736. #: guix-git/doc/guix.texi:11327
  16737. 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."
  16738. msgstr ""
  16739. #. type: table
  16740. #: guix-git/doc/guix.texi:11330
  16741. msgid "The command command below imports metadata for the @code{fontspec} TeX package:"
  16742. msgstr ""
  16743. #. type: example
  16744. #: guix-git/doc/guix.texi:11333
  16745. #, no-wrap
  16746. msgid "guix import texlive fontspec\n"
  16747. msgstr ""
  16748. #. type: table
  16749. #: guix-git/doc/guix.texi:11339
  16750. 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."
  16751. msgstr ""
  16752. #. type: table
  16753. #: guix-git/doc/guix.texi:11343
  16754. msgid "The command below imports metadata for the @code{ifxetex} package from CTAN while fetching the sources from the directory @file{texmf/source/generic}:"
  16755. msgstr ""
  16756. #. type: example
  16757. #: guix-git/doc/guix.texi:11346
  16758. #, no-wrap
  16759. msgid "guix import texlive --archive=generic ifxetex\n"
  16760. msgstr ""
  16761. #. type: cindex
  16762. #: guix-git/doc/guix.texi:11349
  16763. #, no-wrap
  16764. msgid "JSON, import"
  16765. msgstr ""
  16766. #. type: table
  16767. #: guix-git/doc/guix.texi:11352
  16768. msgid "Import package metadata from a local JSON file. Consider the following example package definition in JSON format:"
  16769. msgstr ""
  16770. #. type: example
  16771. #: guix-git/doc/guix.texi:11365
  16772. #, no-wrap
  16773. msgid ""
  16774. "@{\n"
  16775. " \"name\": \"hello\",\n"
  16776. " \"version\": \"2.10\",\n"
  16777. " \"source\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  16778. " \"build-system\": \"gnu\",\n"
  16779. " \"home-page\": \"https://www.gnu.org/software/hello/\",\n"
  16780. " \"synopsis\": \"Hello, GNU world: An example GNU package\",\n"
  16781. " \"description\": \"GNU Hello prints a greeting.\",\n"
  16782. " \"license\": \"GPL-3.0+\",\n"
  16783. " \"native-inputs\": [\"gettext\"]\n"
  16784. "@}\n"
  16785. msgstr ""
  16786. #. type: table
  16787. #: guix-git/doc/guix.texi:11371
  16788. 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}."
  16789. msgstr ""
  16790. #. type: table
  16791. #: guix-git/doc/guix.texi:11374
  16792. msgid "The importer also supports a more explicit source definition using the common fields for @code{<origin>} records:"
  16793. msgstr ""
  16794. #. type: example
  16795. #: guix-git/doc/guix.texi:11387
  16796. #, no-wrap
  16797. msgid ""
  16798. "@{\n"
  16799. " @dots{}\n"
  16800. " \"source\": @{\n"
  16801. " \"method\": \"url-fetch\",\n"
  16802. " \"uri\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  16803. " \"sha256\": @{\n"
  16804. " \"base32\": \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"\n"
  16805. " @}\n"
  16806. " @}\n"
  16807. " @dots{}\n"
  16808. "@}\n"
  16809. msgstr ""
  16810. #. type: table
  16811. #: guix-git/doc/guix.texi:11391
  16812. msgid "The command below reads metadata from the JSON file @code{hello.json} and outputs a package expression:"
  16813. msgstr ""
  16814. #. type: example
  16815. #: guix-git/doc/guix.texi:11394
  16816. #, no-wrap
  16817. msgid "guix import json hello.json\n"
  16818. msgstr ""
  16819. #. type: item
  16820. #: guix-git/doc/guix.texi:11396 guix-git/doc/guix.texi:11397
  16821. #: guix-git/doc/guix.texi:11764
  16822. #, no-wrap
  16823. msgid "hackage"
  16824. msgstr ""
  16825. #. type: table
  16826. #: guix-git/doc/guix.texi:11402
  16827. 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."
  16828. msgstr ""
  16829. #. type: item
  16830. #: guix-git/doc/guix.texi:11406
  16831. #, no-wrap
  16832. msgid "--stdin"
  16833. msgstr ""
  16834. #. type: itemx
  16835. #: guix-git/doc/guix.texi:11407
  16836. #, no-wrap
  16837. msgid "-s"
  16838. msgstr ""
  16839. #. type: table
  16840. #: guix-git/doc/guix.texi:11409
  16841. msgid "Read a Cabal file from standard input."
  16842. msgstr ""
  16843. #. type: item
  16844. #: guix-git/doc/guix.texi:11409 guix-git/doc/guix.texi:11456
  16845. #, no-wrap
  16846. msgid "--no-test-dependencies"
  16847. msgstr ""
  16848. #. type: table
  16849. #: guix-git/doc/guix.texi:11412 guix-git/doc/guix.texi:11459
  16850. msgid "Do not include dependencies required only by the test suites."
  16851. msgstr ""
  16852. #. type: item
  16853. #: guix-git/doc/guix.texi:11412
  16854. #, no-wrap
  16855. msgid "--cabal-environment=@var{alist}"
  16856. msgstr ""
  16857. #. type: itemx
  16858. #: guix-git/doc/guix.texi:11413
  16859. #, no-wrap
  16860. msgid "-e @var{alist}"
  16861. msgstr ""
  16862. #. type: table
  16863. #: guix-git/doc/guix.texi:11422
  16864. 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."
  16865. msgstr ""
  16866. #. type: table
  16867. #: guix-git/doc/guix.texi:11432
  16868. 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}:"
  16869. msgstr ""
  16870. #. type: example
  16871. #: guix-git/doc/guix.texi:11435
  16872. #, no-wrap
  16873. msgid "guix import hackage -t -e \"'((\\\"network-uri\\\" . false))\" HTTP\n"
  16874. msgstr ""
  16875. #. type: table
  16876. #: guix-git/doc/guix.texi:11439
  16877. 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:"
  16878. msgstr ""
  16879. #. type: example
  16880. #: guix-git/doc/guix.texi:11442
  16881. #, no-wrap
  16882. msgid "guix import hackage mtl@@2.1.3.1\n"
  16883. msgstr ""
  16884. #. type: item
  16885. #: guix-git/doc/guix.texi:11444 guix-git/doc/guix.texi:11445
  16886. #: guix-git/doc/guix.texi:11766
  16887. #, no-wrap
  16888. msgid "stackage"
  16889. msgstr ""
  16890. #. type: table
  16891. #: guix-git/doc/guix.texi:11452
  16892. 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."
  16893. msgstr ""
  16894. #. type: item
  16895. #: guix-git/doc/guix.texi:11459
  16896. #, no-wrap
  16897. msgid "--lts-version=@var{version}"
  16898. msgstr ""
  16899. #. type: itemx
  16900. #: guix-git/doc/guix.texi:11460
  16901. #, no-wrap
  16902. msgid "-l @var{version}"
  16903. msgstr ""
  16904. #. type: table
  16905. #: guix-git/doc/guix.texi:11463
  16906. msgid "@var{version} is the desired LTS release version. If omitted the latest release is used."
  16907. msgstr ""
  16908. #. type: table
  16909. #: guix-git/doc/guix.texi:11472
  16910. msgid "The command below imports metadata for the HTTP Haskell package included in the LTS Stackage release version 7.18:"
  16911. msgstr ""
  16912. #. type: example
  16913. #: guix-git/doc/guix.texi:11475
  16914. #, no-wrap
  16915. msgid "guix import stackage --lts-version=7.18 HTTP\n"
  16916. msgstr ""
  16917. #. type: item
  16918. #: guix-git/doc/guix.texi:11477 guix-git/doc/guix.texi:11478
  16919. #: guix-git/doc/guix.texi:11750
  16920. #, no-wrap
  16921. msgid "elpa"
  16922. msgstr ""
  16923. #. type: table
  16924. #: guix-git/doc/guix.texi:11481
  16925. msgid "Import metadata from an Emacs Lisp Package Archive (ELPA) package repository (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  16926. msgstr ""
  16927. #. type: item
  16928. #: guix-git/doc/guix.texi:11485
  16929. #, no-wrap
  16930. msgid "--archive=@var{repo}"
  16931. msgstr ""
  16932. #. type: itemx
  16933. #: guix-git/doc/guix.texi:11486
  16934. #, no-wrap
  16935. msgid "-a @var{repo}"
  16936. msgstr ""
  16937. #. type: table
  16938. #: guix-git/doc/guix.texi:11490
  16939. msgid "@var{repo} identifies the archive repository from which to retrieve the information. Currently the supported repositories and their identifiers are:"
  16940. msgstr ""
  16941. #. type: itemize
  16942. #: guix-git/doc/guix.texi:11494
  16943. msgid "@uref{https://elpa.gnu.org/packages, GNU}, selected by the @code{gnu} identifier. This is the default."
  16944. msgstr ""
  16945. #. type: itemize
  16946. #: guix-git/doc/guix.texi:11500
  16947. 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})."
  16948. msgstr ""
  16949. #. type: itemize
  16950. #: guix-git/doc/guix.texi:11504
  16951. msgid "@uref{https://stable.melpa.org/packages, MELPA-Stable}, selected by the @code{melpa-stable} identifier."
  16952. msgstr ""
  16953. #. type: itemize
  16954. #: guix-git/doc/guix.texi:11508
  16955. msgid "@uref{https://melpa.org/packages, MELPA}, selected by the @code{melpa} identifier."
  16956. msgstr ""
  16957. #. type: item
  16958. #: guix-git/doc/guix.texi:11517 guix-git/doc/guix.texi:11518
  16959. #: guix-git/doc/guix.texi:11768
  16960. #, no-wrap
  16961. msgid "crate"
  16962. msgstr ""
  16963. #. type: table
  16964. #: guix-git/doc/guix.texi:11521
  16965. msgid "Import metadata from the crates.io Rust package repository @uref{https://crates.io, crates.io}, as in this example:"
  16966. msgstr ""
  16967. #. type: example
  16968. #: guix-git/doc/guix.texi:11524
  16969. #, no-wrap
  16970. msgid "guix import crate blake2-rfc\n"
  16971. msgstr ""
  16972. #. type: table
  16973. #: guix-git/doc/guix.texi:11527
  16974. msgid "The crate importer also allows you to specify a version string:"
  16975. msgstr ""
  16976. #. type: example
  16977. #: guix-git/doc/guix.texi:11530
  16978. #, no-wrap
  16979. msgid "guix import crate constant-time-eq@@0.1.0\n"
  16980. msgstr ""
  16981. #. type: table
  16982. #: guix-git/doc/guix.texi:11533 guix-git/doc/guix.texi:11549
  16983. #: guix-git/doc/guix.texi:11580
  16984. #, fuzzy
  16985. msgid "Additional options include:"
  16986. msgstr "额外的构建选项"
  16987. #. type: item
  16988. #: guix-git/doc/guix.texi:11542
  16989. #, no-wrap
  16990. msgid "opam"
  16991. msgstr ""
  16992. #. type: cindex
  16993. #: guix-git/doc/guix.texi:11543
  16994. #, no-wrap
  16995. msgid "OPAM"
  16996. msgstr ""
  16997. #. type: cindex
  16998. #: guix-git/doc/guix.texi:11544
  16999. #, no-wrap
  17000. msgid "OCaml"
  17001. msgstr ""
  17002. #. type: table
  17003. #: guix-git/doc/guix.texi:11547
  17004. msgid "Import metadata from the @uref{https://opam.ocaml.org/, OPAM} package repository used by the OCaml community."
  17005. msgstr ""
  17006. #. type: item
  17007. #: guix-git/doc/guix.texi:11556
  17008. #, no-wrap
  17009. msgid "--repo"
  17010. msgstr ""
  17011. #. type: table
  17012. #: guix-git/doc/guix.texi:11558
  17013. msgid "Select the given repository (a repository name). Possible values include:"
  17014. msgstr ""
  17015. #. type: item
  17016. #: guix-git/doc/guix.texi:11559
  17017. #, fuzzy, no-wrap
  17018. msgid "@code{opam}, the default opam repository,"
  17019. msgstr "@code{mate}(默认值:@code{mate})"
  17020. #. type: item
  17021. #: guix-git/doc/guix.texi:11560
  17022. #, no-wrap
  17023. msgid "@code{coq} or @code{coq-released}, the stable repository for coq packages,"
  17024. msgstr ""
  17025. #. type: item
  17026. #: guix-git/doc/guix.texi:11561
  17027. #, no-wrap
  17028. msgid "@code{coq-core-dev}, the repository that contains development versions of coq,"
  17029. msgstr ""
  17030. #. type: item
  17031. #: guix-git/doc/guix.texi:11562
  17032. #, no-wrap
  17033. msgid "@code{coq-extra-dev}, the repository that contains development versions"
  17034. msgstr ""
  17035. #. type: itemize
  17036. #: guix-git/doc/guix.texi:11564
  17037. #, fuzzy
  17038. msgid "of coq packages."
  17039. msgstr "定义新软件包。"
  17040. #. type: cindex
  17041. #: guix-git/doc/guix.texi:11567 guix-git/doc/guix.texi:11568
  17042. #, no-wrap
  17043. msgid "go"
  17044. msgstr ""
  17045. #. type: table
  17046. #: guix-git/doc/guix.texi:11571
  17047. msgid "Import metadata for a Go module using @uref{https://proxy.golang.org, proxy.golang.org}."
  17048. msgstr ""
  17049. #. type: example
  17050. #: guix-git/doc/guix.texi:11574
  17051. #, no-wrap
  17052. msgid "guix import go gopkg.in/yaml.v2\n"
  17053. msgstr ""
  17054. #. type: table
  17055. #: guix-git/doc/guix.texi:11578
  17056. msgid "It is possible to use a package specification with a @code{@@VERSION} suffix to import a specific version."
  17057. msgstr ""
  17058. #. type: item
  17059. #: guix-git/doc/guix.texi:11587
  17060. #, no-wrap
  17061. msgid "--pin-versions"
  17062. msgstr ""
  17063. #. type: table
  17064. #: guix-git/doc/guix.texi:11595
  17065. 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."
  17066. msgstr ""
  17067. #. type: Plain text
  17068. #: guix-git/doc/guix.texi:11601
  17069. 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})."
  17070. msgstr ""
  17071. #. type: section
  17072. #: guix-git/doc/guix.texi:11603
  17073. #, no-wrap
  17074. msgid "Invoking @command{guix refresh}"
  17075. msgstr ""
  17076. #. type: command{#1}
  17077. #: guix-git/doc/guix.texi:11605
  17078. #, no-wrap
  17079. msgid "guix refresh"
  17080. msgstr ""
  17081. #. type: Plain text
  17082. #: guix-git/doc/guix.texi:11613
  17083. 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:"
  17084. msgstr ""
  17085. #. type: example
  17086. #: guix-git/doc/guix.texi:11618
  17087. #, no-wrap
  17088. msgid ""
  17089. "$ guix refresh\n"
  17090. "gnu/packages/gettext.scm:29:13: gettext would be upgraded from 0.18.1.1 to 0.18.2.1\n"
  17091. "gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0\n"
  17092. msgstr ""
  17093. #. type: Plain text
  17094. #: guix-git/doc/guix.texi:11622
  17095. msgid "Alternatively, one can specify packages to consider, in which case a warning is emitted for packages that lack an updater:"
  17096. msgstr ""
  17097. #. type: example
  17098. #: guix-git/doc/guix.texi:11627
  17099. #, no-wrap
  17100. msgid ""
  17101. "$ guix refresh coreutils guile guile-ssh\n"
  17102. "gnu/packages/ssh.scm:205:2: warning: no updater for guile-ssh\n"
  17103. "gnu/packages/guile.scm:136:12: guile would be upgraded from 2.0.12 to 2.0.13\n"
  17104. msgstr ""
  17105. #. type: Plain text
  17106. #: guix-git/doc/guix.texi:11636
  17107. 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!"
  17108. msgstr ""
  17109. #. type: table
  17110. #: guix-git/doc/guix.texi:11641
  17111. msgid "Consider the packages specified, and all the packages upon which they depend."
  17112. msgstr ""
  17113. #. type: example
  17114. #: guix-git/doc/guix.texi:11649
  17115. #, no-wrap
  17116. msgid ""
  17117. "$ guix refresh --recursive coreutils\n"
  17118. "gnu/packages/acl.scm:40:13: acl would be upgraded from 2.2.53 to 2.3.1\n"
  17119. "gnu/packages/m4.scm:30:12: 1.4.18 is already the latest version of m4\n"
  17120. "gnu/packages/xml.scm:68:2: warning: no updater for expat\n"
  17121. "gnu/packages/multiprecision.scm:40:12: 6.1.2 is already the latest version of gmp\n"
  17122. "@dots{}\n"
  17123. msgstr ""
  17124. #. type: Plain text
  17125. #: guix-git/doc/guix.texi:11657
  17126. 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:"
  17127. msgstr ""
  17128. #. type: lisp
  17129. #: guix-git/doc/guix.texi:11664
  17130. #, no-wrap
  17131. msgid ""
  17132. "(define-public network-manager\n"
  17133. " (package\n"
  17134. " (name \"network-manager\")\n"
  17135. " ;; @dots{}\n"
  17136. " (properties '((upstream-name . \"NetworkManager\")))))\n"
  17137. msgstr ""
  17138. #. type: Plain text
  17139. #: guix-git/doc/guix.texi:11673
  17140. 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."
  17141. msgstr ""
  17142. #. type: Plain text
  17143. #: guix-git/doc/guix.texi:11679
  17144. 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."
  17145. msgstr ""
  17146. #. type: Plain text
  17147. #: guix-git/doc/guix.texi:11681
  17148. msgid "The following options are supported:"
  17149. msgstr ""
  17150. #. type: table
  17151. #: guix-git/doc/guix.texi:11689 guix-git/doc/guix.texi:12484
  17152. msgid "This is useful to precisely refer to a package, as in this example:"
  17153. msgstr ""
  17154. #. type: example
  17155. #: guix-git/doc/guix.texi:11692
  17156. #, no-wrap
  17157. msgid "guix refresh -l -e '(@@@@ (gnu packages commencement) glibc-final)'\n"
  17158. msgstr ""
  17159. #. type: table
  17160. #: guix-git/doc/guix.texi:11696
  17161. msgid "This command lists the dependents of the ``final'' libc (essentially all the packages)."
  17162. msgstr ""
  17163. #. type: item
  17164. #: guix-git/doc/guix.texi:11697
  17165. #, no-wrap
  17166. msgid "--update"
  17167. msgstr ""
  17168. #. type: itemx
  17169. #: guix-git/doc/guix.texi:11698
  17170. #, no-wrap
  17171. msgid "-u"
  17172. msgstr ""
  17173. #. type: table
  17174. #: guix-git/doc/guix.texi:11702
  17175. 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}):"
  17176. msgstr ""
  17177. #. type: example
  17178. #: guix-git/doc/guix.texi:11705
  17179. #, no-wrap
  17180. msgid "$ ./pre-inst-env guix refresh -s non-core -u\n"
  17181. msgstr ""
  17182. #. type: table
  17183. #: guix-git/doc/guix.texi:11708
  17184. msgid "@xref{Defining Packages}, for more information on package definitions."
  17185. msgstr ""
  17186. #. type: item
  17187. #: guix-git/doc/guix.texi:11709
  17188. #, no-wrap
  17189. msgid "--select=[@var{subset}]"
  17190. msgstr ""
  17191. #. type: itemx
  17192. #: guix-git/doc/guix.texi:11710
  17193. #, no-wrap
  17194. msgid "-s @var{subset}"
  17195. msgstr ""
  17196. #. type: table
  17197. #: guix-git/doc/guix.texi:11713
  17198. msgid "Select all the packages in @var{subset}, one of @code{core} or @code{non-core}."
  17199. msgstr ""
  17200. #. type: table
  17201. #: guix-git/doc/guix.texi:11720
  17202. 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."
  17203. msgstr ""
  17204. #. type: table
  17205. #: guix-git/doc/guix.texi:11724
  17206. 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."
  17207. msgstr ""
  17208. #. type: table
  17209. #: guix-git/doc/guix.texi:11729
  17210. 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."
  17211. msgstr ""
  17212. #. type: item
  17213. #: guix-git/doc/guix.texi:11730
  17214. #, no-wrap
  17215. msgid "--type=@var{updater}"
  17216. msgstr ""
  17217. #. type: itemx
  17218. #: guix-git/doc/guix.texi:11731
  17219. #, no-wrap
  17220. msgid "-t @var{updater}"
  17221. msgstr ""
  17222. #. type: table
  17223. #: guix-git/doc/guix.texi:11734
  17224. msgid "Select only packages handled by @var{updater} (may be a comma-separated list of updaters). Currently, @var{updater} may be one of:"
  17225. msgstr ""
  17226. #. type: table
  17227. #: guix-git/doc/guix.texi:11738
  17228. msgid "the updater for GNU packages;"
  17229. msgstr ""
  17230. #. type: item
  17231. #: guix-git/doc/guix.texi:11738
  17232. #, no-wrap
  17233. msgid "savannah"
  17234. msgstr ""
  17235. #. type: table
  17236. #: guix-git/doc/guix.texi:11740
  17237. msgid "the updater for packages hosted at @uref{https://savannah.gnu.org, Savannah};"
  17238. msgstr ""
  17239. #. type: item
  17240. #: guix-git/doc/guix.texi:11740
  17241. #, no-wrap
  17242. msgid "sourceforge"
  17243. msgstr ""
  17244. #. type: table
  17245. #: guix-git/doc/guix.texi:11742
  17246. msgid "the updater for packages hosted at @uref{https://sourceforge.net, SourceForge};"
  17247. msgstr ""
  17248. #. type: item
  17249. #: guix-git/doc/guix.texi:11742
  17250. #, no-wrap
  17251. msgid "gnome"
  17252. msgstr ""
  17253. #. type: table
  17254. #: guix-git/doc/guix.texi:11744
  17255. msgid "the updater for GNOME packages;"
  17256. msgstr ""
  17257. #. type: item
  17258. #: guix-git/doc/guix.texi:11744
  17259. #, no-wrap
  17260. msgid "kde"
  17261. msgstr ""
  17262. #. type: table
  17263. #: guix-git/doc/guix.texi:11746
  17264. msgid "the updater for KDE packages;"
  17265. msgstr ""
  17266. #. type: item
  17267. #: guix-git/doc/guix.texi:11746
  17268. #, no-wrap
  17269. msgid "xorg"
  17270. msgstr ""
  17271. #. type: table
  17272. #: guix-git/doc/guix.texi:11748
  17273. msgid "the updater for X.org packages;"
  17274. msgstr ""
  17275. #. type: item
  17276. #: guix-git/doc/guix.texi:11748
  17277. #, no-wrap
  17278. msgid "kernel.org"
  17279. msgstr ""
  17280. #. type: table
  17281. #: guix-git/doc/guix.texi:11750
  17282. msgid "the updater for packages hosted on kernel.org;"
  17283. msgstr ""
  17284. #. type: table
  17285. #: guix-git/doc/guix.texi:11752
  17286. msgid "the updater for @uref{https://elpa.gnu.org/, ELPA} packages;"
  17287. msgstr ""
  17288. #. type: table
  17289. #: guix-git/doc/guix.texi:11754
  17290. msgid "the updater for @uref{https://cran.r-project.org/, CRAN} packages;"
  17291. msgstr ""
  17292. #. type: item
  17293. #: guix-git/doc/guix.texi:11754
  17294. #, no-wrap
  17295. msgid "bioconductor"
  17296. msgstr ""
  17297. #. type: table
  17298. #: guix-git/doc/guix.texi:11756
  17299. msgid "the updater for @uref{https://www.bioconductor.org/, Bioconductor} R packages;"
  17300. msgstr ""
  17301. #. type: table
  17302. #: guix-git/doc/guix.texi:11758
  17303. msgid "the updater for @uref{https://www.cpan.org/, CPAN} packages;"
  17304. msgstr ""
  17305. #. type: table
  17306. #: guix-git/doc/guix.texi:11760
  17307. msgid "the updater for @uref{https://pypi.python.org, PyPI} packages."
  17308. msgstr ""
  17309. #. type: table
  17310. #: guix-git/doc/guix.texi:11762
  17311. msgid "the updater for @uref{https://rubygems.org, RubyGems} packages."
  17312. msgstr ""
  17313. #. type: item
  17314. #: guix-git/doc/guix.texi:11762
  17315. #, no-wrap
  17316. msgid "github"
  17317. msgstr ""
  17318. #. type: table
  17319. #: guix-git/doc/guix.texi:11764
  17320. msgid "the updater for @uref{https://github.com, GitHub} packages."
  17321. msgstr ""
  17322. #. type: table
  17323. #: guix-git/doc/guix.texi:11766
  17324. msgid "the updater for @uref{https://hackage.haskell.org, Hackage} packages."
  17325. msgstr ""
  17326. #. type: table
  17327. #: guix-git/doc/guix.texi:11768
  17328. msgid "the updater for @uref{https://www.stackage.org, Stackage} packages."
  17329. msgstr ""
  17330. #. type: table
  17331. #: guix-git/doc/guix.texi:11770
  17332. msgid "the updater for @uref{https://crates.io, Crates} packages."
  17333. msgstr ""
  17334. #. type: item
  17335. #: guix-git/doc/guix.texi:11770
  17336. #, no-wrap
  17337. msgid "launchpad"
  17338. msgstr ""
  17339. #. type: table
  17340. #: guix-git/doc/guix.texi:11772
  17341. msgid "the updater for @uref{https://launchpad.net, Launchpad} packages."
  17342. msgstr ""
  17343. #. type: item
  17344. #: guix-git/doc/guix.texi:11772
  17345. #, no-wrap
  17346. msgid "generic-html"
  17347. msgstr ""
  17348. #. type: table
  17349. #: guix-git/doc/guix.texi:11775
  17350. msgid "a generic updater that crawls the HTML page where the source tarball of the package is hosted, when applicable."
  17351. msgstr ""
  17352. #. type: table
  17353. #: guix-git/doc/guix.texi:11779
  17354. 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:"
  17355. msgstr ""
  17356. #. type: example
  17357. #: guix-git/doc/guix.texi:11784
  17358. #, no-wrap
  17359. msgid ""
  17360. "$ guix refresh --type=elpa,cran\n"
  17361. "gnu/packages/statistics.scm:819:13: r-testthat would be upgraded from 0.10.0 to 0.11.0\n"
  17362. "gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9\n"
  17363. msgstr ""
  17364. #. type: item
  17365. #: guix-git/doc/guix.texi:11786
  17366. #, no-wrap
  17367. msgid "--list-updaters"
  17368. msgstr ""
  17369. #. type: itemx
  17370. #: guix-git/doc/guix.texi:11787
  17371. #, no-wrap
  17372. msgid "-L"
  17373. msgstr ""
  17374. #. type: table
  17375. #: guix-git/doc/guix.texi:11789
  17376. msgid "List available updaters and exit (see @option{--type} above)."
  17377. msgstr ""
  17378. #. type: table
  17379. #: guix-git/doc/guix.texi:11792
  17380. msgid "For each updater, display the fraction of packages it covers; at the end, display the fraction of packages covered by all these updaters."
  17381. msgstr ""
  17382. #. type: Plain text
  17383. #: guix-git/doc/guix.texi:11796
  17384. msgid "In addition, @command{guix refresh} can be passed one or more package names, as in this example:"
  17385. msgstr ""
  17386. #. type: example
  17387. #: guix-git/doc/guix.texi:11799
  17388. #, no-wrap
  17389. msgid "$ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8\n"
  17390. msgstr ""
  17391. #. type: Plain text
  17392. #: guix-git/doc/guix.texi:11806
  17393. 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:"
  17394. msgstr ""
  17395. #. type: example
  17396. #: guix-git/doc/guix.texi:11810
  17397. #, no-wrap
  17398. msgid ""
  17399. "$ ./pre-inst-env guix refresh -u \\\n"
  17400. " $(guix package --list-installed | cut -f1)\n"
  17401. msgstr ""
  17402. #. type: Plain text
  17403. #: guix-git/doc/guix.texi:11816
  17404. 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:"
  17405. msgstr ""
  17406. #. type: item
  17407. #: guix-git/doc/guix.texi:11819
  17408. #, no-wrap
  17409. msgid "--list-dependent"
  17410. msgstr ""
  17411. #. type: itemx
  17412. #: guix-git/doc/guix.texi:11820 guix-git/doc/guix.texi:12079
  17413. #, no-wrap
  17414. msgid "-l"
  17415. msgstr ""
  17416. #. type: table
  17417. #: guix-git/doc/guix.texi:11823
  17418. msgid "List top-level dependent packages that would need to be rebuilt as a result of upgrading one or more packages."
  17419. msgstr ""
  17420. #. type: table
  17421. #: guix-git/doc/guix.texi:11827
  17422. 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."
  17423. msgstr ""
  17424. #. type: Plain text
  17425. #: guix-git/doc/guix.texi:11833
  17426. 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."
  17427. msgstr ""
  17428. #. type: example
  17429. #: guix-git/doc/guix.texi:11838
  17430. #, no-wrap
  17431. msgid ""
  17432. "$ guix refresh --list-dependent flex\n"
  17433. "Building the following 120 packages would ensure 213 dependent packages are rebuilt:\n"
  17434. "hop@@2.4.0 geiser@@0.4 notmuch@@0.18 mu@@0.9.9.5 cflow@@1.4 idutils@@4.6 @dots{}\n"
  17435. msgstr ""
  17436. #. type: Plain text
  17437. #: guix-git/doc/guix.texi:11842
  17438. msgid "The command above lists a set of packages that could be built to check for compatibility with an upgraded @code{flex} package."
  17439. msgstr ""
  17440. #. type: item
  17441. #: guix-git/doc/guix.texi:11845
  17442. #, no-wrap
  17443. msgid "--list-transitive"
  17444. msgstr ""
  17445. #. type: table
  17446. #: guix-git/doc/guix.texi:11847
  17447. msgid "List all the packages which one or more packages depend upon."
  17448. msgstr ""
  17449. #. type: example
  17450. #: guix-git/doc/guix.texi:11852
  17451. #, no-wrap
  17452. msgid ""
  17453. "$ guix refresh --list-transitive flex\n"
  17454. "flex@@2.6.4 depends on the following 25 packages: perl@@5.28.0 help2man@@1.47.6\n"
  17455. "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"
  17456. msgstr ""
  17457. #. type: Plain text
  17458. #: guix-git/doc/guix.texi:11858
  17459. msgid "The command above lists a set of packages which, when changed, would cause @code{flex} to be rebuilt."
  17460. msgstr ""
  17461. #. type: Plain text
  17462. #: guix-git/doc/guix.texi:11860
  17463. msgid "The following options can be used to customize GnuPG operation:"
  17464. msgstr ""
  17465. #. type: item
  17466. #: guix-git/doc/guix.texi:11863
  17467. #, no-wrap
  17468. msgid "--gpg=@var{command}"
  17469. msgstr ""
  17470. #. type: table
  17471. #: guix-git/doc/guix.texi:11866
  17472. msgid "Use @var{command} as the GnuPG 2.x command. @var{command} is searched for in @code{$PATH}."
  17473. msgstr ""
  17474. #. type: item
  17475. #: guix-git/doc/guix.texi:11867
  17476. #, no-wrap
  17477. msgid "--keyring=@var{file}"
  17478. msgstr ""
  17479. #. type: table
  17480. #: guix-git/doc/guix.texi:11873
  17481. 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)."
  17482. msgstr ""
  17483. #. type: table
  17484. #: guix-git/doc/guix.texi:11879
  17485. 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)."
  17486. msgstr ""
  17487. #. type: table
  17488. #: guix-git/doc/guix.texi:11882
  17489. msgid "You can export keys from your default GPG keyring into a keybox file using commands like this one:"
  17490. msgstr ""
  17491. #. type: example
  17492. #: guix-git/doc/guix.texi:11885
  17493. #, no-wrap
  17494. msgid "gpg --export rms@@gnu.org | kbxutil --import-openpgp >> mykeyring.kbx\n"
  17495. msgstr ""
  17496. #. type: table
  17497. #: guix-git/doc/guix.texi:11888
  17498. msgid "Likewise, you can fetch keys to a specific keybox file like this:"
  17499. msgstr ""
  17500. #. type: example
  17501. #: guix-git/doc/guix.texi:11892
  17502. #, no-wrap
  17503. msgid ""
  17504. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  17505. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  17506. msgstr ""
  17507. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  17508. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  17509. #. type: table
  17510. #: guix-git/doc/guix.texi:11896
  17511. msgid "@xref{GPG Configuration Options, @option{--keyring},, gnupg, Using the GNU Privacy Guard}, for more information on GPG's @option{--keyring} option."
  17512. msgstr ""
  17513. #. type: table
  17514. #: guix-git/doc/guix.texi:11900
  17515. msgid "Handle missing OpenPGP keys according to @var{policy}, which may be one of:"
  17516. msgstr ""
  17517. #. type: item
  17518. #: guix-git/doc/guix.texi:11902 guix-git/doc/guix.texi:20769
  17519. #, no-wrap
  17520. msgid "always"
  17521. msgstr ""
  17522. #. type: table
  17523. #: guix-git/doc/guix.texi:11905
  17524. msgid "Always download missing OpenPGP keys from the key server, and add them to the user's GnuPG keyring."
  17525. msgstr ""
  17526. #. type: item
  17527. #: guix-git/doc/guix.texi:11906 guix-git/doc/guix.texi:20771
  17528. #, no-wrap
  17529. msgid "never"
  17530. msgstr ""
  17531. #. type: table
  17532. #: guix-git/doc/guix.texi:11908
  17533. msgid "Never try to download missing OpenPGP keys. Instead just bail out."
  17534. msgstr ""
  17535. #. type: item
  17536. #: guix-git/doc/guix.texi:11909
  17537. #, no-wrap
  17538. msgid "interactive"
  17539. msgstr ""
  17540. #. type: table
  17541. #: guix-git/doc/guix.texi:11912
  17542. 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."
  17543. msgstr ""
  17544. #. type: item
  17545. #: guix-git/doc/guix.texi:11914
  17546. #, no-wrap
  17547. msgid "--key-server=@var{host}"
  17548. msgstr ""
  17549. #. type: table
  17550. #: guix-git/doc/guix.texi:11916
  17551. msgid "Use @var{host} as the OpenPGP key server when importing a public key."
  17552. msgstr ""
  17553. #. type: Plain text
  17554. #: guix-git/doc/guix.texi:11936
  17555. 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."
  17556. msgstr ""
  17557. #. type: section
  17558. #: guix-git/doc/guix.texi:11939
  17559. #, no-wrap
  17560. msgid "Invoking @command{guix lint}"
  17561. msgstr ""
  17562. #. type: command{#1}
  17563. #: guix-git/doc/guix.texi:11941
  17564. #, no-wrap
  17565. msgid "guix lint"
  17566. msgstr ""
  17567. #. type: cindex
  17568. #: guix-git/doc/guix.texi:11942
  17569. #, no-wrap
  17570. msgid "package, checking for errors"
  17571. msgstr ""
  17572. #. type: Plain text
  17573. #: guix-git/doc/guix.texi:11948
  17574. 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):"
  17575. msgstr ""
  17576. #. type: table
  17577. #: guix-git/doc/guix.texi:11954
  17578. msgid "Validate certain typographical and stylistic rules about package descriptions and synopses."
  17579. msgstr ""
  17580. #. type: item
  17581. #: guix-git/doc/guix.texi:11955
  17582. #, no-wrap
  17583. msgid "inputs-should-be-native"
  17584. msgstr ""
  17585. #. type: table
  17586. #: guix-git/doc/guix.texi:11957
  17587. msgid "Identify inputs that should most likely be native inputs."
  17588. msgstr ""
  17589. #. type: itemx
  17590. #: guix-git/doc/guix.texi:11960
  17591. #, no-wrap
  17592. msgid "mirror-url"
  17593. msgstr ""
  17594. #. type: itemx
  17595. #: guix-git/doc/guix.texi:11961
  17596. #, no-wrap
  17597. msgid "github-url"
  17598. msgstr ""
  17599. #. type: itemx
  17600. #: guix-git/doc/guix.texi:11962
  17601. #, no-wrap
  17602. msgid "source-file-name"
  17603. msgstr ""
  17604. #. type: table
  17605. #: guix-git/doc/guix.texi:11969
  17606. 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})."
  17607. msgstr ""
  17608. #. type: item
  17609. #: guix-git/doc/guix.texi:11970
  17610. #, no-wrap
  17611. msgid "source-unstable-tarball"
  17612. msgstr ""
  17613. #. type: table
  17614. #: guix-git/doc/guix.texi:11974
  17615. 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."
  17616. msgstr ""
  17617. #. type: table
  17618. #: guix-git/doc/guix.texi:11978
  17619. msgid "Check that the derivation of the given packages can be successfully computed for all the supported systems (@pxref{Derivations})."
  17620. msgstr ""
  17621. #. type: item
  17622. #: guix-git/doc/guix.texi:11979
  17623. #, no-wrap
  17624. msgid "profile-collisions"
  17625. msgstr ""
  17626. #. type: table
  17627. #: guix-git/doc/guix.texi:11985
  17628. 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."
  17629. msgstr ""
  17630. #. type: item
  17631. #: guix-git/doc/guix.texi:11986
  17632. #, no-wrap
  17633. msgid "archival"
  17634. msgstr ""
  17635. #. type: cindex
  17636. #: guix-git/doc/guix.texi:11987
  17637. #, no-wrap
  17638. msgid "Software Heritage, source code archive"
  17639. msgstr ""
  17640. #. type: cindex
  17641. #: guix-git/doc/guix.texi:11988
  17642. #, no-wrap
  17643. msgid "archival of source code, Software Heritage"
  17644. msgstr ""
  17645. #. type: table
  17646. #: guix-git/doc/guix.texi:11991
  17647. msgid "Checks whether the package's source code is archived at @uref{https://www.softwareheritage.org, Software Heritage}."
  17648. msgstr ""
  17649. #. type: table
  17650. #: guix-git/doc/guix.texi:11999
  17651. 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}."
  17652. msgstr ""
  17653. #. type: table
  17654. #: guix-git/doc/guix.texi:12004
  17655. 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."
  17656. msgstr ""
  17657. #. type: table
  17658. #: guix-git/doc/guix.texi:12010
  17659. 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."
  17660. msgstr ""
  17661. #. type: item
  17662. #: guix-git/doc/guix.texi:12011
  17663. #, no-wrap
  17664. msgid "cve"
  17665. msgstr ""
  17666. #. type: cindex
  17667. #: guix-git/doc/guix.texi:12012 guix-git/doc/guix.texi:34545
  17668. #, no-wrap
  17669. msgid "security vulnerabilities"
  17670. msgstr ""
  17671. #. type: cindex
  17672. #: guix-git/doc/guix.texi:12013
  17673. #, no-wrap
  17674. msgid "CVE, Common Vulnerabilities and Exposures"
  17675. msgstr ""
  17676. #. type: table
  17677. #: guix-git/doc/guix.texi:12018
  17678. 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}."
  17679. msgstr ""
  17680. #. type: table
  17681. #: guix-git/doc/guix.texi:12020
  17682. msgid "To view information about a particular vulnerability, visit pages such as:"
  17683. msgstr ""
  17684. #. type: indicateurl{#1}
  17685. #: guix-git/doc/guix.texi:12024
  17686. msgid "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-YYYY-ABCD"
  17687. msgstr ""
  17688. #. type: indicateurl{#1}
  17689. #: guix-git/doc/guix.texi:12026
  17690. msgid "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-YYYY-ABCD"
  17691. msgstr ""
  17692. #. type: table
  17693. #: guix-git/doc/guix.texi:12031
  17694. msgid "where @code{CVE-YYYY-ABCD} is the CVE identifier---e.g., @code{CVE-2015-7554}."
  17695. msgstr ""
  17696. #. type: table
  17697. #: guix-git/doc/guix.texi:12036
  17698. 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:"
  17699. msgstr ""
  17700. #. type: lisp
  17701. #: guix-git/doc/guix.texi:12044
  17702. #, no-wrap
  17703. msgid ""
  17704. "(package\n"
  17705. " (name \"grub\")\n"
  17706. " ;; @dots{}\n"
  17707. " ;; CPE calls this package \"grub2\".\n"
  17708. " (properties '((cpe-name . \"grub2\")\n"
  17709. " (cpe-version . \"2.3\"))))\n"
  17710. msgstr ""
  17711. #. type: table
  17712. #: guix-git/doc/guix.texi:12051
  17713. 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:"
  17714. msgstr ""
  17715. #. type: lisp
  17716. #: guix-git/doc/guix.texi:12061
  17717. #, no-wrap
  17718. msgid ""
  17719. "(package\n"
  17720. " (name \"t1lib\")\n"
  17721. " ;; @dots{}\n"
  17722. " ;; These CVEs no longer apply and can be safely ignored.\n"
  17723. " (properties `((lint-hidden-cve . (\"CVE-2011-0433\"\n"
  17724. " \"CVE-2011-1553\"\n"
  17725. " \"CVE-2011-1554\"\n"
  17726. " \"CVE-2011-5244\")))))\n"
  17727. msgstr ""
  17728. #. type: item
  17729. #: guix-git/doc/guix.texi:12063
  17730. #, no-wrap
  17731. msgid "formatting"
  17732. msgstr ""
  17733. #. type: table
  17734. #: guix-git/doc/guix.texi:12066
  17735. msgid "Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc."
  17736. msgstr ""
  17737. #. type: example
  17738. #: guix-git/doc/guix.texi:12072
  17739. #, no-wrap
  17740. msgid "guix lint @var{options} @var{package}@dots{}\n"
  17741. msgstr ""
  17742. #. type: Plain text
  17743. #: guix-git/doc/guix.texi:12076
  17744. 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:"
  17745. msgstr ""
  17746. #. type: item
  17747. #: guix-git/doc/guix.texi:12078
  17748. #, no-wrap
  17749. msgid "--list-checkers"
  17750. msgstr ""
  17751. #. type: table
  17752. #: guix-git/doc/guix.texi:12082
  17753. msgid "List and describe all the available checkers that will be run on packages and exit."
  17754. msgstr ""
  17755. #. type: item
  17756. #: guix-git/doc/guix.texi:12083
  17757. #, no-wrap
  17758. msgid "--checkers"
  17759. msgstr ""
  17760. #. type: itemx
  17761. #: guix-git/doc/guix.texi:12084
  17762. #, no-wrap
  17763. msgid "-c"
  17764. msgstr ""
  17765. #. type: table
  17766. #: guix-git/doc/guix.texi:12087
  17767. msgid "Only enable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  17768. msgstr ""
  17769. #. type: item
  17770. #: guix-git/doc/guix.texi:12088
  17771. #, no-wrap
  17772. msgid "--exclude"
  17773. msgstr ""
  17774. #. type: table
  17775. #: guix-git/doc/guix.texi:12092
  17776. msgid "Only disable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  17777. msgstr ""
  17778. #. type: item
  17779. #: guix-git/doc/guix.texi:12093
  17780. #, no-wrap
  17781. msgid "--no-network"
  17782. msgstr ""
  17783. #. type: table
  17784. #: guix-git/doc/guix.texi:12096
  17785. msgid "Only enable the checkers that do not depend on Internet access."
  17786. msgstr ""
  17787. #. type: section
  17788. #: guix-git/doc/guix.texi:12108
  17789. #, no-wrap
  17790. msgid "Invoking @command{guix size}"
  17791. msgstr ""
  17792. #. type: code{#1}
  17793. #: guix-git/doc/guix.texi:12110 guix-git/doc/guix.texi:33481
  17794. #, no-wrap
  17795. msgid "size"
  17796. msgstr ""
  17797. #. type: cindex
  17798. #: guix-git/doc/guix.texi:12111
  17799. #, no-wrap
  17800. msgid "package size"
  17801. msgstr ""
  17802. #. type: command{#1}
  17803. #: guix-git/doc/guix.texi:12113
  17804. #, no-wrap
  17805. msgid "guix size"
  17806. msgstr ""
  17807. #. type: Plain text
  17808. #: guix-git/doc/guix.texi:12120
  17809. 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."
  17810. msgstr ""
  17811. #. type: Plain text
  17812. #: guix-git/doc/guix.texi:12125
  17813. 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:"
  17814. msgstr ""
  17815. #. type: example
  17816. #: guix-git/doc/guix.texi:12138
  17817. #, no-wrap
  17818. msgid ""
  17819. "$ guix size coreutils\n"
  17820. "store item total self\n"
  17821. "/gnu/store/@dots{}-gcc-5.5.0-lib 60.4 30.1 38.1%\n"
  17822. "/gnu/store/@dots{}-glibc-2.27 30.3 28.8 36.6%\n"
  17823. "/gnu/store/@dots{}-coreutils-8.28 78.9 15.0 19.0%\n"
  17824. "/gnu/store/@dots{}-gmp-6.1.2 63.1 2.7 3.4%\n"
  17825. "/gnu/store/@dots{}-bash-static-4.4.12 1.5 1.5 1.9%\n"
  17826. "/gnu/store/@dots{}-acl-2.2.52 61.1 0.4 0.5%\n"
  17827. "/gnu/store/@dots{}-attr-2.4.47 60.6 0.2 0.3%\n"
  17828. "/gnu/store/@dots{}-libcap-2.25 60.5 0.2 0.2%\n"
  17829. "total: 78.9 MiB\n"
  17830. msgstr ""
  17831. #. type: Plain text
  17832. #: guix-git/doc/guix.texi:12144
  17833. 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:"
  17834. msgstr ""
  17835. #. type: example
  17836. #: guix-git/doc/guix.texi:12147
  17837. #, no-wrap
  17838. msgid "$ guix gc -R /gnu/store/@dots{}-coreutils-8.23\n"
  17839. msgstr ""
  17840. #. type: Plain text
  17841. #: guix-git/doc/guix.texi:12155
  17842. 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."
  17843. msgstr ""
  17844. #. type: Plain text
  17845. #: guix-git/doc/guix.texi:12161
  17846. 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.)"
  17847. msgstr ""
  17848. #. type: Plain text
  17849. #: guix-git/doc/guix.texi:12164
  17850. msgid "Since the command also accepts store file names, assessing the size of a build result is straightforward:"
  17851. msgstr ""
  17852. #. type: example
  17853. #: guix-git/doc/guix.texi:12167
  17854. #, no-wrap
  17855. msgid "guix size $(guix system build config.scm)\n"
  17856. msgstr ""
  17857. #. type: Plain text
  17858. #: guix-git/doc/guix.texi:12177
  17859. 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})."
  17860. msgstr ""
  17861. #. type: Plain text
  17862. #: guix-git/doc/guix.texi:12182
  17863. 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."
  17864. msgstr ""
  17865. #. type: Plain text
  17866. #: guix-git/doc/guix.texi:12184
  17867. msgid "You can also specify several package names:"
  17868. msgstr ""
  17869. #. type: example
  17870. #: guix-git/doc/guix.texi:12194
  17871. #, no-wrap
  17872. msgid ""
  17873. "$ guix size coreutils grep sed bash\n"
  17874. "store item total self\n"
  17875. "/gnu/store/@dots{}-coreutils-8.24 77.8 13.8 13.4%\n"
  17876. "/gnu/store/@dots{}-grep-2.22 73.1 0.8 0.8%\n"
  17877. "/gnu/store/@dots{}-bash-4.3.42 72.3 4.7 4.6%\n"
  17878. "/gnu/store/@dots{}-readline-6.3 67.6 1.2 1.2%\n"
  17879. "@dots{}\n"
  17880. "total: 102.3 MiB\n"
  17881. msgstr ""
  17882. #. type: Plain text
  17883. #: guix-git/doc/guix.texi:12200
  17884. 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."
  17885. msgstr ""
  17886. #. type: Plain text
  17887. #: guix-git/doc/guix.texi:12206
  17888. 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})."
  17889. msgstr ""
  17890. #. type: Plain text
  17891. #: guix-git/doc/guix.texi:12208
  17892. msgid "The available options are:"
  17893. msgstr ""
  17894. #. type: table
  17895. #: guix-git/doc/guix.texi:12214
  17896. msgid "Use substitute information from @var{urls}. @xref{client-substitute-urls, the same option for @code{guix build}}."
  17897. msgstr ""
  17898. #. type: item
  17899. #: guix-git/doc/guix.texi:12215
  17900. #, no-wrap
  17901. msgid "--sort=@var{key}"
  17902. msgstr ""
  17903. #. type: table
  17904. #: guix-git/doc/guix.texi:12217
  17905. msgid "Sort lines according to @var{key}, one of the following options:"
  17906. msgstr ""
  17907. #. type: item
  17908. #: guix-git/doc/guix.texi:12219
  17909. #, no-wrap
  17910. msgid "self"
  17911. msgstr ""
  17912. #. type: table
  17913. #: guix-git/doc/guix.texi:12221
  17914. msgid "the size of each item (the default);"
  17915. msgstr ""
  17916. #. type: table
  17917. #: guix-git/doc/guix.texi:12223
  17918. msgid "the total size of the item's closure."
  17919. msgstr ""
  17920. #. type: item
  17921. #: guix-git/doc/guix.texi:12225
  17922. #, no-wrap
  17923. msgid "--map-file=@var{file}"
  17924. msgstr ""
  17925. #. type: table
  17926. #: guix-git/doc/guix.texi:12227
  17927. msgid "Write a graphical map of disk usage in PNG format to @var{file}."
  17928. msgstr ""
  17929. #. type: table
  17930. #: guix-git/doc/guix.texi:12229
  17931. msgid "For the example above, the map looks like this:"
  17932. msgstr ""
  17933. #. type: table
  17934. #: guix-git/doc/guix.texi:12232
  17935. msgid "@image{images/coreutils-size-map,5in,, map of Coreutils disk usage produced by @command{guix size}}"
  17936. msgstr ""
  17937. #. type: table
  17938. #: guix-git/doc/guix.texi:12237
  17939. 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."
  17940. msgstr ""
  17941. #. type: table
  17942. #: guix-git/doc/guix.texi:12241
  17943. msgid "Consider packages for @var{system}---e.g., @code{x86_64-linux}."
  17944. msgstr ""
  17945. #. type: section
  17946. #: guix-git/doc/guix.texi:12252
  17947. #, no-wrap
  17948. msgid "Invoking @command{guix graph}"
  17949. msgstr ""
  17950. #. type: cindex
  17951. #: guix-git/doc/guix.texi:12254
  17952. #, no-wrap
  17953. msgid "DAG"
  17954. msgstr ""
  17955. #. type: command{#1}
  17956. #: guix-git/doc/guix.texi:12255
  17957. #, no-wrap
  17958. msgid "guix graph"
  17959. msgstr ""
  17960. #. type: Plain text
  17961. #: guix-git/doc/guix.texi:12270
  17962. 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:"
  17963. msgstr ""
  17964. #. type: example
  17965. #: guix-git/doc/guix.texi:12273
  17966. #, no-wrap
  17967. msgid "guix graph @var{options} @var{package}@dots{}\n"
  17968. msgstr ""
  17969. #. type: Plain text
  17970. #: guix-git/doc/guix.texi:12278
  17971. 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:"
  17972. msgstr ""
  17973. #. type: example
  17974. #: guix-git/doc/guix.texi:12281
  17975. #, no-wrap
  17976. msgid "guix graph coreutils | dot -Tpdf > dag.pdf\n"
  17977. msgstr ""
  17978. #. type: Plain text
  17979. #: guix-git/doc/guix.texi:12284
  17980. msgid "The output looks like this:"
  17981. msgstr ""
  17982. #. type: Plain text
  17983. #: guix-git/doc/guix.texi:12286
  17984. msgid "@image{images/coreutils-graph,2in,,Dependency graph of the GNU Coreutils}"
  17985. msgstr ""
  17986. #. type: Plain text
  17987. #: guix-git/doc/guix.texi:12288
  17988. msgid "Nice little graph, no?"
  17989. msgstr ""
  17990. #. type: Plain text
  17991. #: guix-git/doc/guix.texi:12291
  17992. msgid "You may find it more pleasant to navigate the graph interactively with @command{xdot} (from the @code{xdot} package):"
  17993. msgstr ""
  17994. #. type: example
  17995. #: guix-git/doc/guix.texi:12294
  17996. #, no-wrap
  17997. msgid "guix graph coreutils | xdot -\n"
  17998. msgstr ""
  17999. #. type: Plain text
  18000. #: guix-git/doc/guix.texi:12301
  18001. 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:"
  18002. msgstr ""
  18003. #. type: table
  18004. #: guix-git/doc/guix.texi:12307
  18005. 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."
  18006. msgstr ""
  18007. #. type: item
  18008. #: guix-git/doc/guix.texi:12308
  18009. #, no-wrap
  18010. msgid "reverse-package"
  18011. msgstr ""
  18012. #. type: table
  18013. #: guix-git/doc/guix.texi:12310
  18014. msgid "This shows the @emph{reverse} DAG of packages. For example:"
  18015. msgstr ""
  18016. #. type: example
  18017. #: guix-git/doc/guix.texi:12313
  18018. #, no-wrap
  18019. msgid "guix graph --type=reverse-package ocaml\n"
  18020. msgstr ""
  18021. #. type: table
  18022. #: guix-git/doc/guix.texi:12318
  18023. 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)."
  18024. msgstr ""
  18025. #. type: table
  18026. #: guix-git/doc/guix.texi:12323
  18027. 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}})."
  18028. msgstr ""
  18029. #. type: item
  18030. #: guix-git/doc/guix.texi:12324
  18031. #, no-wrap
  18032. msgid "bag-emerged"
  18033. msgstr ""
  18034. #. type: table
  18035. #: guix-git/doc/guix.texi:12326
  18036. msgid "This is the package DAG, @emph{including} implicit inputs."
  18037. msgstr ""
  18038. #. type: table
  18039. #: guix-git/doc/guix.texi:12328
  18040. msgid "For instance, the following command:"
  18041. msgstr ""
  18042. #. type: example
  18043. #: guix-git/doc/guix.texi:12331
  18044. #, no-wrap
  18045. msgid "guix graph --type=bag-emerged coreutils\n"
  18046. msgstr ""
  18047. #. type: table
  18048. #: guix-git/doc/guix.texi:12334
  18049. msgid "...@: yields this bigger graph:"
  18050. msgstr ""
  18051. #. type: table
  18052. #: guix-git/doc/guix.texi:12336
  18053. msgid "@image{images/coreutils-bag-graph,,5in,Detailed dependency graph of the GNU Coreutils}"
  18054. msgstr ""
  18055. #. type: table
  18056. #: guix-git/doc/guix.texi:12339
  18057. 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}})."
  18058. msgstr ""
  18059. #. type: table
  18060. #: guix-git/doc/guix.texi:12343
  18061. msgid "Now, note that the dependencies of these implicit inputs---that is, the @dfn{bootstrap dependencies} (@pxref{Bootstrapping})---are not shown here, for conciseness."
  18062. msgstr ""
  18063. #. type: item
  18064. #: guix-git/doc/guix.texi:12344
  18065. #, no-wrap
  18066. msgid "bag"
  18067. msgstr ""
  18068. #. type: table
  18069. #: guix-git/doc/guix.texi:12347
  18070. msgid "Similar to @code{bag-emerged}, but this time including all the bootstrap dependencies."
  18071. msgstr ""
  18072. #. type: item
  18073. #: guix-git/doc/guix.texi:12348
  18074. #, no-wrap
  18075. msgid "bag-with-origins"
  18076. msgstr ""
  18077. #. type: table
  18078. #: guix-git/doc/guix.texi:12350
  18079. msgid "Similar to @code{bag}, but also showing origins and their dependencies."
  18080. msgstr ""
  18081. #. type: item
  18082. #: guix-git/doc/guix.texi:12351
  18083. #, no-wrap
  18084. msgid "reverse-bag"
  18085. msgstr ""
  18086. #. type: table
  18087. #: guix-git/doc/guix.texi:12354
  18088. msgid "This shows the @emph{reverse} DAG of packages. Unlike @code{reverse-package}, it also takes implicit dependencies into account. For example:"
  18089. msgstr ""
  18090. #. type: example
  18091. #: guix-git/doc/guix.texi:12357
  18092. #, no-wrap
  18093. msgid "guix graph -t reverse-bag dune\n"
  18094. msgstr ""
  18095. #. type: table
  18096. #: guix-git/doc/guix.texi:12364
  18097. 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."
  18098. msgstr ""
  18099. #. type: table
  18100. #: guix-git/doc/guix.texi:12370
  18101. 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."
  18102. msgstr ""
  18103. #. type: table
  18104. #: guix-git/doc/guix.texi:12373
  18105. msgid "For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in:"
  18106. msgstr ""
  18107. #. type: example
  18108. #: guix-git/doc/guix.texi:12376
  18109. #, no-wrap
  18110. msgid "guix graph -t derivation $(guix system build -d my-config.scm)\n"
  18111. msgstr ""
  18112. #. type: item
  18113. #: guix-git/doc/guix.texi:12378
  18114. #, no-wrap
  18115. msgid "module"
  18116. msgstr "模块"
  18117. #. type: table
  18118. #: guix-git/doc/guix.texi:12382
  18119. 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:"
  18120. msgstr ""
  18121. #. type: example
  18122. #: guix-git/doc/guix.texi:12385
  18123. #, no-wrap
  18124. msgid "guix graph -t module guile | xdot -\n"
  18125. msgstr ""
  18126. #. type: Plain text
  18127. #: guix-git/doc/guix.texi:12390
  18128. msgid "All the types above correspond to @emph{build-time dependencies}. The following graph type represents the @emph{run-time dependencies}:"
  18129. msgstr ""
  18130. #. type: table
  18131. #: guix-git/doc/guix.texi:12395
  18132. msgid "This is the graph of @dfn{references} of a package output, as returned by @command{guix gc --references} (@pxref{Invoking guix gc})."
  18133. msgstr ""
  18134. #. type: table
  18135. #: guix-git/doc/guix.texi:12398
  18136. msgid "If the given package output is not available in the store, @command{guix graph} attempts to obtain dependency information from substitutes."
  18137. msgstr ""
  18138. #. type: table
  18139. #: guix-git/doc/guix.texi:12402
  18140. 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!):"
  18141. msgstr ""
  18142. #. type: example
  18143. #: guix-git/doc/guix.texi:12405
  18144. #, no-wrap
  18145. msgid "guix graph -t references $(readlink -f ~/.guix-profile)\n"
  18146. msgstr ""
  18147. #. type: item
  18148. #: guix-git/doc/guix.texi:12407
  18149. #, no-wrap
  18150. msgid "referrers"
  18151. msgstr ""
  18152. #. type: table
  18153. #: guix-git/doc/guix.texi:12410
  18154. msgid "This is the graph of the @dfn{referrers} of a store item, as returned by @command{guix gc --referrers} (@pxref{Invoking guix gc})."
  18155. msgstr ""
  18156. #. type: table
  18157. #: guix-git/doc/guix.texi:12416
  18158. 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."
  18159. msgstr ""
  18160. #. type: table
  18161. #: guix-git/doc/guix.texi:12419
  18162. msgid "It can help determine what is preventing a store item from being garbage collected."
  18163. msgstr ""
  18164. #. type: cindex
  18165. #: guix-git/doc/guix.texi:12422
  18166. #, fuzzy, no-wrap
  18167. msgid "shortest path, between packages"
  18168. msgstr "超过1200个受影响的软件包"
  18169. #. type: Plain text
  18170. #: guix-git/doc/guix.texi:12429
  18171. 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.):"
  18172. msgstr ""
  18173. #. type: example
  18174. #: guix-git/doc/guix.texi:12443
  18175. #, no-wrap
  18176. msgid ""
  18177. "$ guix graph --path emacs libunistring\n"
  18178. "emacs@@26.3\n"
  18179. "mailutils@@3.9\n"
  18180. "libunistring@@0.9.10\n"
  18181. "$ guix graph --path -t derivation emacs libunistring\n"
  18182. "/gnu/store/@dots{}-emacs-26.3.drv\n"
  18183. "/gnu/store/@dots{}-mailutils-3.9.drv\n"
  18184. "/gnu/store/@dots{}-libunistring-0.9.10.drv\n"
  18185. "$ guix graph --path -t references emacs libunistring\n"
  18186. "/gnu/store/@dots{}-emacs-26.3\n"
  18187. "/gnu/store/@dots{}-libidn2-2.2.0\n"
  18188. "/gnu/store/@dots{}-libunistring-0.9.10\n"
  18189. msgstr ""
  18190. #. type: Plain text
  18191. #: guix-git/doc/guix.texi:12446
  18192. msgid "The available options are the following:"
  18193. msgstr ""
  18194. #. type: table
  18195. #: guix-git/doc/guix.texi:12452
  18196. msgid "Produce a graph output of @var{type}, where @var{type} must be one of the values listed above."
  18197. msgstr ""
  18198. #. type: item
  18199. #: guix-git/doc/guix.texi:12453
  18200. #, no-wrap
  18201. msgid "--list-types"
  18202. msgstr ""
  18203. #. type: table
  18204. #: guix-git/doc/guix.texi:12455
  18205. msgid "List the supported graph types."
  18206. msgstr ""
  18207. #. type: item
  18208. #: guix-git/doc/guix.texi:12456
  18209. #, no-wrap
  18210. msgid "--backend=@var{backend}"
  18211. msgstr ""
  18212. #. type: itemx
  18213. #: guix-git/doc/guix.texi:12457
  18214. #, no-wrap
  18215. msgid "-b @var{backend}"
  18216. msgstr ""
  18217. #. type: table
  18218. #: guix-git/doc/guix.texi:12459
  18219. msgid "Produce a graph using the selected @var{backend}."
  18220. msgstr ""
  18221. #. type: item
  18222. #: guix-git/doc/guix.texi:12460
  18223. #, no-wrap
  18224. msgid "--list-backends"
  18225. msgstr ""
  18226. #. type: table
  18227. #: guix-git/doc/guix.texi:12462
  18228. msgid "List the supported graph backends."
  18229. msgstr ""
  18230. #. type: table
  18231. #: guix-git/doc/guix.texi:12464
  18232. msgid "Currently, the available backends are Graphviz and d3.js."
  18233. msgstr ""
  18234. #. type: item
  18235. #: guix-git/doc/guix.texi:12465
  18236. #, no-wrap
  18237. msgid "--path"
  18238. msgstr ""
  18239. #. type: table
  18240. #: guix-git/doc/guix.texi:12470
  18241. 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}:"
  18242. msgstr ""
  18243. #. type: example
  18244. #: guix-git/doc/guix.texi:12477
  18245. #, no-wrap
  18246. msgid ""
  18247. "$ guix graph --path -t references libreoffice llvm\n"
  18248. "/gnu/store/@dots{}-libreoffice-6.4.2.2\n"
  18249. "/gnu/store/@dots{}-libepoxy-1.5.4\n"
  18250. "/gnu/store/@dots{}-mesa-19.3.4\n"
  18251. "/gnu/store/@dots{}-llvm-9.0.1\n"
  18252. msgstr ""
  18253. #. type: example
  18254. #: guix-git/doc/guix.texi:12487
  18255. #, no-wrap
  18256. msgid "guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'\n"
  18257. msgstr ""
  18258. #. type: table
  18259. #: guix-git/doc/guix.texi:12492
  18260. msgid "Display the graph for @var{system}---e.g., @code{i686-linux}."
  18261. msgstr ""
  18262. #. type: table
  18263. #: guix-git/doc/guix.texi:12495
  18264. msgid "The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize."
  18265. msgstr ""
  18266. #. type: Plain text
  18267. #: guix-git/doc/guix.texi:12511
  18268. 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:"
  18269. msgstr ""
  18270. #. type: example
  18271. #: guix-git/doc/guix.texi:12514
  18272. #, no-wrap
  18273. msgid "guix graph git --with-input=openssl=libressl\n"
  18274. msgstr ""
  18275. #. type: Plain text
  18276. #: guix-git/doc/guix.texi:12517
  18277. msgid "So many possibilities, so much fun!"
  18278. msgstr ""
  18279. #. type: section
  18280. #: guix-git/doc/guix.texi:12519
  18281. #, no-wrap
  18282. msgid "Invoking @command{guix publish}"
  18283. msgstr ""
  18284. #. type: command{#1}
  18285. #: guix-git/doc/guix.texi:12521
  18286. #, no-wrap
  18287. msgid "guix publish"
  18288. msgstr ""
  18289. #. type: Plain text
  18290. #: guix-git/doc/guix.texi:12525
  18291. 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})."
  18292. msgstr ""
  18293. #. type: Plain text
  18294. #: guix-git/doc/guix.texi:12531
  18295. 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}} build farm."
  18296. msgstr ""
  18297. #. type: Plain text
  18298. #: guix-git/doc/guix.texi:12537
  18299. 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."
  18300. msgstr ""
  18301. #. type: Plain text
  18302. #: guix-git/doc/guix.texi:12541
  18303. msgid "The signing key pair must be generated before @command{guix publish} is launched, using @command{guix archive --generate-key} (@pxref{Invoking guix archive})."
  18304. msgstr ""
  18305. #. type: Plain text
  18306. #: guix-git/doc/guix.texi:12546
  18307. 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})."
  18308. msgstr ""
  18309. #. type: example
  18310. #: guix-git/doc/guix.texi:12551
  18311. #, no-wrap
  18312. msgid "guix publish @var{options}@dots{}\n"
  18313. msgstr ""
  18314. #. type: Plain text
  18315. #: guix-git/doc/guix.texi:12555
  18316. msgid "Running @command{guix publish} without any additional arguments will spawn an HTTP server on port 8080:"
  18317. msgstr ""
  18318. #. type: example
  18319. #: guix-git/doc/guix.texi:12558
  18320. #, no-wrap
  18321. msgid "guix publish\n"
  18322. msgstr ""
  18323. #. type: Plain text
  18324. #: guix-git/doc/guix.texi:12562
  18325. msgid "Once a publishing server has been authorized, the daemon may download substitutes from it. @xref{Getting Substitutes from Other Servers}."
  18326. msgstr ""
  18327. #. type: Plain text
  18328. #: guix-git/doc/guix.texi:12570
  18329. 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})."
  18330. msgstr ""
  18331. #. type: Plain text
  18332. #: guix-git/doc/guix.texi:12577
  18333. 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}):"
  18334. msgstr ""
  18335. #. type: example
  18336. #: guix-git/doc/guix.texi:12580
  18337. #, no-wrap
  18338. msgid "http://example.org/file/hello-2.10.tar.gz/sha256/0ssi1@dots{}ndq1i\n"
  18339. msgstr ""
  18340. #. type: Plain text
  18341. #: guix-git/doc/guix.texi:12584
  18342. msgid "Obviously, these URLs only work for files that are in the store; in other cases, they return 404 (``Not Found'')."
  18343. msgstr ""
  18344. #. type: cindex
  18345. #: guix-git/doc/guix.texi:12585
  18346. #, no-wrap
  18347. msgid "build logs, publication"
  18348. msgstr ""
  18349. #. type: Plain text
  18350. #: guix-git/doc/guix.texi:12587
  18351. msgid "Build logs are available from @code{/log} URLs like:"
  18352. msgstr ""
  18353. #. type: example
  18354. #: guix-git/doc/guix.texi:12590
  18355. #, no-wrap
  18356. msgid "http://example.org/log/gwspk@dots{}-guile-2.2.3\n"
  18357. msgstr ""
  18358. #. type: Plain text
  18359. #: guix-git/doc/guix.texi:12600
  18360. 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."
  18361. msgstr ""
  18362. #. type: item
  18363. #: guix-git/doc/guix.texi:12604
  18364. #, no-wrap
  18365. msgid "--port=@var{port}"
  18366. msgstr ""
  18367. #. type: itemx
  18368. #: guix-git/doc/guix.texi:12605
  18369. #, no-wrap
  18370. msgid "-p @var{port}"
  18371. msgstr ""
  18372. #. type: table
  18373. #: guix-git/doc/guix.texi:12607
  18374. msgid "Listen for HTTP requests on @var{port}."
  18375. msgstr ""
  18376. #. type: item
  18377. #: guix-git/doc/guix.texi:12608
  18378. #, no-wrap
  18379. msgid "--listen=@var{host}"
  18380. msgstr ""
  18381. #. type: table
  18382. #: guix-git/doc/guix.texi:12611
  18383. msgid "Listen on the network interface for @var{host}. The default is to accept connections from any interface."
  18384. msgstr ""
  18385. #. type: table
  18386. #: guix-git/doc/guix.texi:12616
  18387. 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."
  18388. msgstr ""
  18389. #. type: item
  18390. #: guix-git/doc/guix.texi:12617
  18391. #, fuzzy, no-wrap
  18392. msgid "--compression[=@var{method}[:@var{level}]]"
  18393. msgstr "--log-compression=@var{type}"
  18394. #. type: itemx
  18395. #: guix-git/doc/guix.texi:12618
  18396. #, no-wrap
  18397. msgid "-C [@var{method}[:@var{level}]]"
  18398. msgstr ""
  18399. #. type: table
  18400. #: guix-git/doc/guix.texi:12622
  18401. 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."
  18402. msgstr ""
  18403. #. type: table
  18404. #: guix-git/doc/guix.texi:12626
  18405. 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."
  18406. msgstr ""
  18407. #. type: table
  18408. #: guix-git/doc/guix.texi:12633
  18409. 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."
  18410. msgstr ""
  18411. #. type: table
  18412. #: guix-git/doc/guix.texi:12637
  18413. 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}."
  18414. msgstr ""
  18415. #. type: table
  18416. #: guix-git/doc/guix.texi:12646
  18417. 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."
  18418. msgstr ""
  18419. #. type: table
  18420. #: guix-git/doc/guix.texi:12651
  18421. 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."
  18422. msgstr ""
  18423. #. type: item
  18424. #: guix-git/doc/guix.texi:12652
  18425. #, no-wrap
  18426. msgid "--cache=@var{directory}"
  18427. msgstr ""
  18428. #. type: itemx
  18429. #: guix-git/doc/guix.texi:12653
  18430. #, no-wrap
  18431. msgid "-c @var{directory}"
  18432. msgstr ""
  18433. #. type: table
  18434. #: guix-git/doc/guix.texi:12656
  18435. msgid "Cache archives and meta-data (@code{.narinfo} URLs) to @var{directory} and only serve archives that are in cache."
  18436. msgstr ""
  18437. #. type: table
  18438. #: guix-git/doc/guix.texi:12664
  18439. 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."
  18440. msgstr ""
  18441. #. type: table
  18442. #: guix-git/doc/guix.texi:12672
  18443. 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."
  18444. msgstr ""
  18445. #. type: table
  18446. #: guix-git/doc/guix.texi:12679
  18447. 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."
  18448. msgstr ""
  18449. #. type: table
  18450. #: guix-git/doc/guix.texi:12683
  18451. 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."
  18452. msgstr ""
  18453. #. type: table
  18454. #: guix-git/doc/guix.texi:12686
  18455. msgid "When @option{--ttl} is used, cached entries are automatically deleted when they have expired."
  18456. msgstr ""
  18457. #. type: item
  18458. #: guix-git/doc/guix.texi:12687
  18459. #, no-wrap
  18460. msgid "--workers=@var{N}"
  18461. msgstr ""
  18462. #. type: table
  18463. #: guix-git/doc/guix.texi:12690
  18464. msgid "When @option{--cache} is used, request the allocation of @var{N} worker threads to ``bake'' archives."
  18465. msgstr ""
  18466. #. type: item
  18467. #: guix-git/doc/guix.texi:12691
  18468. #, no-wrap
  18469. msgid "--ttl=@var{ttl}"
  18470. msgstr ""
  18471. #. type: table
  18472. #: guix-git/doc/guix.texi:12695
  18473. 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."
  18474. msgstr ""
  18475. #. type: table
  18476. #: guix-git/doc/guix.texi:12700
  18477. 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}."
  18478. msgstr ""
  18479. #. type: table
  18480. #: guix-git/doc/guix.texi:12704
  18481. 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."
  18482. msgstr ""
  18483. #. type: item
  18484. #: guix-git/doc/guix.texi:12705
  18485. #, no-wrap
  18486. msgid "--cache-bypass-threshold=@var{size}"
  18487. msgstr ""
  18488. #. type: table
  18489. #: guix-git/doc/guix.texi:12710
  18490. 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}."
  18491. msgstr ""
  18492. #. type: table
  18493. #: guix-git/doc/guix.texi:12715
  18494. 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."
  18495. msgstr ""
  18496. #. type: table
  18497. #: guix-git/doc/guix.texi:12719
  18498. 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."
  18499. msgstr ""
  18500. #. type: item
  18501. #: guix-git/doc/guix.texi:12720
  18502. #, no-wrap
  18503. msgid "--nar-path=@var{path}"
  18504. msgstr ""
  18505. #. type: table
  18506. #: guix-git/doc/guix.texi:12723
  18507. msgid "Use @var{path} as the prefix for the URLs of ``nar'' files (@pxref{Invoking guix archive, normalized archives})."
  18508. msgstr ""
  18509. #. type: table
  18510. #: guix-git/doc/guix.texi:12727
  18511. 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}."
  18512. msgstr ""
  18513. #. type: item
  18514. #: guix-git/doc/guix.texi:12728
  18515. #, no-wrap
  18516. msgid "--public-key=@var{file}"
  18517. msgstr ""
  18518. #. type: itemx
  18519. #: guix-git/doc/guix.texi:12729
  18520. #, no-wrap
  18521. msgid "--private-key=@var{file}"
  18522. msgstr ""
  18523. #. type: table
  18524. #: guix-git/doc/guix.texi:12732 guix-git/doc/guix.texi:27359
  18525. #: guix-git/doc/guix.texi:27393
  18526. msgid "Use the specific @var{file}s as the public/private key pair used to sign the store items being published."
  18527. msgstr ""
  18528. #. type: table
  18529. #: guix-git/doc/guix.texi:12739
  18530. 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."
  18531. msgstr ""
  18532. #. type: item
  18533. #: guix-git/doc/guix.texi:12740
  18534. #, no-wrap
  18535. msgid "--repl[=@var{port}]"
  18536. msgstr ""
  18537. #. type: itemx
  18538. #: guix-git/doc/guix.texi:12741
  18539. #, no-wrap
  18540. msgid "-r [@var{port}]"
  18541. msgstr ""
  18542. #. type: table
  18543. #: guix-git/doc/guix.texi:12745
  18544. 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."
  18545. msgstr ""
  18546. #. type: Plain text
  18547. #: guix-git/doc/guix.texi:12751
  18548. 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}})."
  18549. msgstr ""
  18550. #. type: Plain text
  18551. #: guix-git/doc/guix.texi:12754
  18552. msgid "If you are instead running Guix on a ``foreign distro'', follow these instructions:"
  18553. msgstr ""
  18554. #. type: itemize
  18555. #: guix-git/doc/guix.texi:12758
  18556. msgid "If your host distro uses the systemd init system:"
  18557. msgstr ""
  18558. #. type: example
  18559. #: guix-git/doc/guix.texi:12763
  18560. #, no-wrap
  18561. msgid ""
  18562. "# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \\\n"
  18563. " /etc/systemd/system/\n"
  18564. "# systemctl start guix-publish && systemctl enable guix-publish\n"
  18565. msgstr ""
  18566. #. type: example
  18567. #: guix-git/doc/guix.texi:12771
  18568. #, no-wrap
  18569. msgid ""
  18570. "# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/init/\n"
  18571. "# start guix-publish\n"
  18572. msgstr ""
  18573. #. type: itemize
  18574. #: guix-git/doc/guix.texi:12775
  18575. msgid "Otherwise, proceed similarly with your distro's init system."
  18576. msgstr ""
  18577. #. type: section
  18578. #: guix-git/doc/guix.texi:12778
  18579. #, no-wrap
  18580. msgid "Invoking @command{guix challenge}"
  18581. msgstr ""
  18582. #. type: cindex
  18583. #: guix-git/doc/guix.texi:12781
  18584. #, no-wrap
  18585. msgid "verifiable builds"
  18586. msgstr ""
  18587. #. type: command{#1}
  18588. #: guix-git/doc/guix.texi:12782
  18589. #, no-wrap
  18590. msgid "guix challenge"
  18591. msgstr ""
  18592. #. type: cindex
  18593. #: guix-git/doc/guix.texi:12783
  18594. #, no-wrap
  18595. msgid "challenge"
  18596. msgstr ""
  18597. #. type: Plain text
  18598. #: guix-git/doc/guix.texi:12788
  18599. 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."
  18600. msgstr ""
  18601. #. type: Plain text
  18602. #: guix-git/doc/guix.texi:12796
  18603. 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."
  18604. msgstr ""
  18605. #. type: Plain text
  18606. #: guix-git/doc/guix.texi:12805
  18607. 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."
  18608. msgstr ""
  18609. #. type: Plain text
  18610. #: guix-git/doc/guix.texi:12807
  18611. msgid "The command output looks like this:"
  18612. msgstr ""
  18613. #. type: smallexample
  18614. #: guix-git/doc/guix.texi:12819
  18615. #, no-wrap
  18616. msgid ""
  18617. "$ guix challenge --substitute-urls=\"https://@value{SUBSTITUTE-SERVER} https://guix.example.org\"\n"
  18618. "updating list of substitutes from 'https://@value{SUBSTITUTE-SERVER}'... 100.0%\n"
  18619. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  18620. "/gnu/store/@dots{}-openssl-1.0.2d contents differ:\n"
  18621. " local hash: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  18622. " https://@value{SUBSTITUTE-SERVER}/nar/@dots{}-openssl-1.0.2d: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  18623. " https://guix.example.org/nar/@dots{}-openssl-1.0.2d: 1zy4fmaaqcnjrzzajkdn3f5gmjk754b43qkq47llbyak9z0qjyim\n"
  18624. " differing files:\n"
  18625. " /lib/libcrypto.so.1.1\n"
  18626. " /lib/libssl.so.1.1\n"
  18627. "\n"
  18628. msgstr ""
  18629. #. type: smallexample
  18630. #: guix-git/doc/guix.texi:12826
  18631. #, no-wrap
  18632. msgid ""
  18633. "/gnu/store/@dots{}-git-2.5.0 contents differ:\n"
  18634. " local hash: 00p3bmryhjxrhpn2gxs2fy0a15lnip05l97205pgbk5ra395hyha\n"
  18635. " https://@value{SUBSTITUTE-SERVER}/nar/@dots{}-git-2.5.0: 069nb85bv4d4a6slrwjdy8v1cn4cwspm3kdbmyb81d6zckj3nq9f\n"
  18636. " https://guix.example.org/nar/@dots{}-git-2.5.0: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73\n"
  18637. " differing file:\n"
  18638. " /libexec/git-core/git-fsck\n"
  18639. "\n"
  18640. msgstr ""
  18641. #. type: smallexample
  18642. #: guix-git/doc/guix.texi:12833
  18643. #, no-wrap
  18644. msgid ""
  18645. "/gnu/store/@dots{}-pius-2.1.1 contents differ:\n"
  18646. " local hash: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  18647. " https://@value{SUBSTITUTE-SERVER}/nar/@dots{}-pius-2.1.1: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  18648. " https://guix.example.org/nar/@dots{}-pius-2.1.1: 1cy25x1a4fzq5rk0pmvc8xhwyffnqz95h2bpvqsz2mpvlbccy0gs\n"
  18649. " differing file:\n"
  18650. " /share/man/man1/pius.1.gz\n"
  18651. "\n"
  18652. msgstr ""
  18653. #. type: smallexample
  18654. #: guix-git/doc/guix.texi:12835
  18655. #, no-wrap
  18656. msgid ""
  18657. "@dots{}\n"
  18658. "\n"
  18659. msgstr ""
  18660. #. type: smallexample
  18661. #: guix-git/doc/guix.texi:12840
  18662. #, no-wrap
  18663. msgid ""
  18664. "6,406 store items were analyzed:\n"
  18665. " - 4,749 (74.1%) were identical\n"
  18666. " - 525 (8.2%) differed\n"
  18667. " - 1,132 (17.7%) were inconclusive\n"
  18668. msgstr ""
  18669. #. type: Plain text
  18670. #: guix-git/doc/guix.texi:12848
  18671. 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."
  18672. msgstr ""
  18673. #. type: cindex
  18674. #: guix-git/doc/guix.texi:12849
  18675. #, no-wrap
  18676. msgid "non-determinism, in package builds"
  18677. msgstr ""
  18678. #. type: Plain text
  18679. #: guix-git/doc/guix.texi:12860
  18680. msgid "As an example, @code{guix.example.org} always gets a different answer. Conversely, @code{@value{SUBSTITUTE-SERVER}} 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."
  18681. msgstr ""
  18682. #. type: Plain text
  18683. #: guix-git/doc/guix.texi:12863
  18684. msgid "To find out what is wrong with this Git binary, the easiest approach is to run:"
  18685. msgstr ""
  18686. #. type: example
  18687. #: guix-git/doc/guix.texi:12868
  18688. #, no-wrap
  18689. msgid ""
  18690. "guix challenge git \\\n"
  18691. " --diff=diffoscope \\\n"
  18692. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER} https://guix.example.org\"\n"
  18693. msgstr ""
  18694. #. type: Plain text
  18695. #: guix-git/doc/guix.texi:12872
  18696. msgid "This automatically invokes @command{diffoscope}, which displays detailed information about files that differ."
  18697. msgstr ""
  18698. #. type: Plain text
  18699. #: guix-git/doc/guix.texi:12875
  18700. msgid "Alternatively, we can do something along these lines (@pxref{Invoking guix archive}):"
  18701. msgstr ""
  18702. #. type: example
  18703. #: guix-git/doc/guix.texi:12880
  18704. #, no-wrap
  18705. msgid ""
  18706. "$ wget -q -O - https://@value{SUBSTITUTE-SERVER}/nar/lzip/@dots{}-git-2.5.0 \\\n"
  18707. " | lzip -d | guix archive -x /tmp/git\n"
  18708. "$ diff -ur --no-dereference /gnu/store/@dots{}-git.2.5.0 /tmp/git\n"
  18709. msgstr ""
  18710. #. type: Plain text
  18711. #: guix-git/doc/guix.texi:12889
  18712. 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}} (@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."
  18713. msgstr ""
  18714. #. type: Plain text
  18715. #: guix-git/doc/guix.texi:12897
  18716. 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."
  18717. msgstr ""
  18718. #. type: Plain text
  18719. #: guix-git/doc/guix.texi:12901
  18720. msgid "If you are writing packages for Guix, you are encouraged to check whether @code{@value{SUBSTITUTE-SERVER}} and other substitute servers obtain the same build result as you did with:"
  18721. msgstr ""
  18722. #. type: example
  18723. #: guix-git/doc/guix.texi:12904
  18724. #, no-wrap
  18725. msgid "$ guix challenge @var{package}\n"
  18726. msgstr ""
  18727. #. type: Plain text
  18728. #: guix-git/doc/guix.texi:12909
  18729. msgid "where @var{package} is a package specification such as @code{guile@@2.0} or @code{glibc:debug}."
  18730. msgstr ""
  18731. #. type: example
  18732. #: guix-git/doc/guix.texi:12914
  18733. #, no-wrap
  18734. msgid "guix challenge @var{options} [@var{packages}@dots{}]\n"
  18735. msgstr ""
  18736. #. type: Plain text
  18737. #: guix-git/doc/guix.texi:12921
  18738. 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)."
  18739. msgstr ""
  18740. #. type: Plain text
  18741. #: guix-git/doc/guix.texi:12923
  18742. msgid "The one option that matters is:"
  18743. msgstr ""
  18744. #. type: table
  18745. #: guix-git/doc/guix.texi:12929
  18746. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs to compare to."
  18747. msgstr ""
  18748. #. type: item
  18749. #: guix-git/doc/guix.texi:12930
  18750. #, fuzzy, no-wrap
  18751. msgid "--diff=@var{mode}"
  18752. msgstr "--rounds=@var{N}"
  18753. #. type: table
  18754. #: guix-git/doc/guix.texi:12932
  18755. msgid "Upon mismatches, show differences according to @var{mode}, one of:"
  18756. msgstr ""
  18757. #. type: item
  18758. #: guix-git/doc/guix.texi:12934
  18759. #, fuzzy, no-wrap
  18760. msgid "@code{simple} (the default)"
  18761. msgstr "@code{speed}(默认值:@code{1.0})"
  18762. #. type: table
  18763. #: guix-git/doc/guix.texi:12936
  18764. msgid "Show the list of files that differ."
  18765. msgstr ""
  18766. #. type: code{#1}
  18767. #: guix-git/doc/guix.texi:12937
  18768. #, no-wrap
  18769. msgid "diffoscope"
  18770. msgstr ""
  18771. #. type: var{#1}
  18772. #: guix-git/doc/guix.texi:12938
  18773. #, no-wrap
  18774. msgid "command"
  18775. msgstr ""
  18776. #. type: table
  18777. #: guix-git/doc/guix.texi:12941
  18778. msgid "Invoke @uref{https://diffoscope.org/, Diffoscope}, passing it two directories whose contents do not match."
  18779. msgstr ""
  18780. #. type: table
  18781. #: guix-git/doc/guix.texi:12944
  18782. msgid "When @var{command} is an absolute file name, run @var{command} instead of Diffoscope."
  18783. msgstr ""
  18784. #. type: item
  18785. #: guix-git/doc/guix.texi:12945 guix-git/doc/guix.texi:16257
  18786. #: guix-git/doc/guix.texi:18246
  18787. #, no-wrap
  18788. msgid "none"
  18789. msgstr ""
  18790. #. type: table
  18791. #: guix-git/doc/guix.texi:12947
  18792. msgid "Do not show further details about the differences."
  18793. msgstr ""
  18794. #. type: table
  18795. #: guix-git/doc/guix.texi:12952
  18796. 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."
  18797. msgstr ""
  18798. #. type: item
  18799. #: guix-git/doc/guix.texi:12953
  18800. #, no-wrap
  18801. msgid "--verbose"
  18802. msgstr ""
  18803. #. type: itemx
  18804. #: guix-git/doc/guix.texi:12954
  18805. #, no-wrap
  18806. msgid "-v"
  18807. msgstr ""
  18808. #. type: table
  18809. #: guix-git/doc/guix.texi:12957
  18810. msgid "Show details about matches (identical contents) in addition to information about mismatches."
  18811. msgstr ""
  18812. #. type: section
  18813. #: guix-git/doc/guix.texi:12961
  18814. #, no-wrap
  18815. msgid "Invoking @command{guix copy}"
  18816. msgstr ""
  18817. #. type: cindex
  18818. #: guix-git/doc/guix.texi:12963
  18819. #, no-wrap
  18820. msgid "copy, of store items, over SSH"
  18821. msgstr ""
  18822. #. type: cindex
  18823. #: guix-git/doc/guix.texi:12964
  18824. #, no-wrap
  18825. msgid "SSH, copy of store items"
  18826. msgstr ""
  18827. #. type: cindex
  18828. #: guix-git/doc/guix.texi:12965
  18829. #, no-wrap
  18830. msgid "sharing store items across machines"
  18831. msgstr ""
  18832. #. type: cindex
  18833. #: guix-git/doc/guix.texi:12966
  18834. #, no-wrap
  18835. msgid "transferring store items across machines"
  18836. msgstr ""
  18837. #. type: Plain text
  18838. #: guix-git/doc/guix.texi:12973
  18839. 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}:"
  18840. msgstr ""
  18841. #. type: example
  18842. #: guix-git/doc/guix.texi:12977
  18843. #, no-wrap
  18844. msgid ""
  18845. "guix copy --to=@var{user}@@@var{host} \\\n"
  18846. " coreutils $(readlink -f ~/.guix-profile)\n"
  18847. msgstr ""
  18848. #. type: Plain text
  18849. #: guix-git/doc/guix.texi:12981
  18850. msgid "If some of the items to be copied are already present on @var{host}, they are not actually sent."
  18851. msgstr ""
  18852. #. type: Plain text
  18853. #: guix-git/doc/guix.texi:12984
  18854. msgid "The command below retrieves @code{libreoffice} and @code{gimp} from @var{host}, assuming they are available there:"
  18855. msgstr ""
  18856. #. type: example
  18857. #: guix-git/doc/guix.texi:12987
  18858. #, no-wrap
  18859. msgid "guix copy --from=@var{host} libreoffice gimp\n"
  18860. msgstr ""
  18861. #. type: Plain text
  18862. #: guix-git/doc/guix.texi:12992
  18863. 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."
  18864. msgstr ""
  18865. #. type: Plain text
  18866. #: guix-git/doc/guix.texi:12998
  18867. 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."
  18868. msgstr ""
  18869. #. type: example
  18870. #: guix-git/doc/guix.texi:13003
  18871. #, no-wrap
  18872. msgid "guix copy [--to=@var{spec}|--from=@var{spec}] @var{items}@dots{}\n"
  18873. msgstr ""
  18874. #. type: Plain text
  18875. #: guix-git/doc/guix.texi:13006
  18876. msgid "You must always specify one of the following options:"
  18877. msgstr ""
  18878. #. type: item
  18879. #: guix-git/doc/guix.texi:13008
  18880. #, no-wrap
  18881. msgid "--to=@var{spec}"
  18882. msgstr ""
  18883. #. type: itemx
  18884. #: guix-git/doc/guix.texi:13009
  18885. #, no-wrap
  18886. msgid "--from=@var{spec}"
  18887. msgstr ""
  18888. #. type: table
  18889. #: guix-git/doc/guix.texi:13013
  18890. 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}."
  18891. msgstr ""
  18892. #. type: Plain text
  18893. #: guix-git/doc/guix.texi:13017
  18894. 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}."
  18895. msgstr ""
  18896. #. type: Plain text
  18897. #: guix-git/doc/guix.texi:13021
  18898. 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})."
  18899. msgstr ""
  18900. #. type: section
  18901. #: guix-git/doc/guix.texi:13024
  18902. #, no-wrap
  18903. msgid "Invoking @command{guix container}"
  18904. msgstr ""
  18905. #. type: command{#1}
  18906. #: guix-git/doc/guix.texi:13026
  18907. #, no-wrap
  18908. msgid "guix container"
  18909. msgstr ""
  18910. #. type: quotation
  18911. #: guix-git/doc/guix.texi:13030
  18912. msgid "As of version @value{VERSION}, this tool is experimental. The interface is subject to radical change in the future."
  18913. msgstr ""
  18914. #. type: Plain text
  18915. #: guix-git/doc/guix.texi:13037
  18916. 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."
  18917. msgstr ""
  18918. #. type: example
  18919. #: guix-git/doc/guix.texi:13042
  18920. #, no-wrap
  18921. msgid "guix container @var{action} @var{options}@dots{}\n"
  18922. msgstr ""
  18923. #. type: Plain text
  18924. #: guix-git/doc/guix.texi:13046
  18925. msgid "@var{action} specifies the operation to perform with a container, and @var{options} specifies the context-specific arguments for the action."
  18926. msgstr ""
  18927. #. type: Plain text
  18928. #: guix-git/doc/guix.texi:13048
  18929. msgid "The following actions are available:"
  18930. msgstr ""
  18931. #. type: item
  18932. #: guix-git/doc/guix.texi:13050
  18933. #, no-wrap
  18934. msgid "exec"
  18935. msgstr ""
  18936. #. type: table
  18937. #: guix-git/doc/guix.texi:13052
  18938. msgid "Execute a command within the context of a running container."
  18939. msgstr ""
  18940. #. type: table
  18941. #: guix-git/doc/guix.texi:13054
  18942. msgid "The syntax is:"
  18943. msgstr ""
  18944. #. type: example
  18945. #: guix-git/doc/guix.texi:13057
  18946. #, no-wrap
  18947. msgid "guix container exec @var{pid} @var{program} @var{arguments}@dots{}\n"
  18948. msgstr ""
  18949. #. type: table
  18950. #: guix-git/doc/guix.texi:13063
  18951. 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}."
  18952. msgstr ""
  18953. #. type: table
  18954. #: guix-git/doc/guix.texi:13067
  18955. 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:"
  18956. msgstr ""
  18957. #. type: example
  18958. #: guix-git/doc/guix.texi:13070
  18959. #, no-wrap
  18960. msgid "guix container exec 9001 /run/current-system/profile/bin/bash --login\n"
  18961. msgstr ""
  18962. #. type: table
  18963. #: guix-git/doc/guix.texi:13074
  18964. 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."
  18965. msgstr ""
  18966. #. type: section
  18967. #: guix-git/doc/guix.texi:13078
  18968. #, no-wrap
  18969. msgid "Invoking @command{guix weather}"
  18970. msgstr ""
  18971. #. type: Plain text
  18972. #: guix-git/doc/guix.texi:13087
  18973. 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})."
  18974. msgstr ""
  18975. #. type: cindex
  18976. #: guix-git/doc/guix.texi:13088
  18977. #, no-wrap
  18978. msgid "statistics, for substitutes"
  18979. msgstr ""
  18980. #. type: cindex
  18981. #: guix-git/doc/guix.texi:13089
  18982. #, no-wrap
  18983. msgid "availability of substitutes"
  18984. msgstr ""
  18985. #. type: cindex
  18986. #: guix-git/doc/guix.texi:13090
  18987. #, no-wrap
  18988. msgid "substitute availability"
  18989. msgstr ""
  18990. #. type: cindex
  18991. #: guix-git/doc/guix.texi:13091
  18992. #, no-wrap
  18993. msgid "weather, substitute availability"
  18994. msgstr ""
  18995. #. type: Plain text
  18996. #: guix-git/doc/guix.texi:13093
  18997. msgid "Here's a sample run:"
  18998. msgstr ""
  18999. #. type: example
  19000. #: guix-git/doc/guix.texi:13105
  19001. #, no-wrap
  19002. msgid ""
  19003. "$ guix weather --substitute-urls=https://guix.example.org\n"
  19004. "computing 5,872 package derivations for x86_64-linux...\n"
  19005. "looking for 6,128 store items on https://guix.example.org..\n"
  19006. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  19007. "https://guix.example.org\n"
  19008. " 43.4% substitutes available (2,658 out of 6,128)\n"
  19009. " 7,032.5 MiB of nars (compressed)\n"
  19010. " 19,824.2 MiB on disk (uncompressed)\n"
  19011. " 0.030 seconds per request (182.9 seconds in total)\n"
  19012. " 33.5 requests per second\n"
  19013. "\n"
  19014. msgstr ""
  19015. #. type: example
  19016. #: guix-git/doc/guix.texi:13115
  19017. #, no-wrap
  19018. msgid ""
  19019. " 9.8% (342 out of 3,470) of the missing items are queued\n"
  19020. " 867 queued builds\n"
  19021. " x86_64-linux: 518 (59.7%)\n"
  19022. " i686-linux: 221 (25.5%)\n"
  19023. " aarch64-linux: 128 (14.8%)\n"
  19024. " build rate: 23.41 builds per hour\n"
  19025. " x86_64-linux: 11.16 builds per hour\n"
  19026. " i686-linux: 6.03 builds per hour\n"
  19027. " aarch64-linux: 6.41 builds per hour\n"
  19028. msgstr ""
  19029. #. type: cindex
  19030. #: guix-git/doc/guix.texi:13117
  19031. #, no-wrap
  19032. msgid "continuous integration, statistics"
  19033. msgstr ""
  19034. #. type: Plain text
  19035. #: guix-git/doc/guix.texi:13128
  19036. 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)."
  19037. msgstr ""
  19038. #. type: Plain text
  19039. #: guix-git/doc/guix.texi:13134
  19040. 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."
  19041. msgstr ""
  19042. #. type: example
  19043. #: guix-git/doc/guix.texi:13139
  19044. #, no-wrap
  19045. msgid "guix weather @var{options}@dots{} [@var{packages}@dots{}]\n"
  19046. msgstr ""
  19047. #. type: Plain text
  19048. #: guix-git/doc/guix.texi:13147
  19049. 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%."
  19050. msgstr ""
  19051. #. type: Plain text
  19052. #: guix-git/doc/guix.texi:13149
  19053. msgid "The available options are listed below."
  19054. msgstr ""
  19055. #. type: table
  19056. #: guix-git/doc/guix.texi:13155
  19057. 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."
  19058. msgstr ""
  19059. #. type: table
  19060. #: guix-git/doc/guix.texi:13161
  19061. 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."
  19062. msgstr ""
  19063. #. type: table
  19064. #: guix-git/doc/guix.texi:13167
  19065. 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})."
  19066. msgstr ""
  19067. #. type: table
  19068. #: guix-git/doc/guix.texi:13170
  19069. msgid "This option can be repeated several times, in which case the manifests are concatenated."
  19070. msgstr ""
  19071. #. type: item
  19072. #: guix-git/doc/guix.texi:13171
  19073. #, no-wrap
  19074. msgid "--coverage[=@var{count}]"
  19075. msgstr ""
  19076. #. type: itemx
  19077. #: guix-git/doc/guix.texi:13172
  19078. #, no-wrap
  19079. msgid "-c [@var{count}]"
  19080. msgstr ""
  19081. #. type: table
  19082. #: guix-git/doc/guix.texi:13178
  19083. 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:"
  19084. msgstr ""
  19085. #. type: example
  19086. #: guix-git/doc/guix.texi:13192
  19087. #, no-wrap
  19088. msgid ""
  19089. "$ guix weather --substitute-urls=@value{SUBSTITUTE-URL} -c 10\n"
  19090. "computing 8,983 package derivations for x86_64-linux...\n"
  19091. "looking for 9,343 store items on @value{SUBSTITUTE-URL}...\n"
  19092. "updating substitutes from '@value{SUBSTITUTE-URL}'... 100.0%\n"
  19093. "@value{SUBSTITUTE-URL}\n"
  19094. " 64.7% substitutes available (6,047 out of 9,343)\n"
  19095. "@dots{}\n"
  19096. "2502 packages are missing from '@value{SUBSTITUTE-URL}' for 'x86_64-linux', among which:\n"
  19097. " 58 kcoreaddons@@5.49.0 /gnu/store/@dots{}-kcoreaddons-5.49.0\n"
  19098. " 46 qgpgme@@1.11.1 /gnu/store/@dots{}-qgpgme-1.11.1\n"
  19099. " 37 perl-http-cookiejar@@0.008 /gnu/store/@dots{}-perl-http-cookiejar-0.008\n"
  19100. " @dots{}\n"
  19101. msgstr ""
  19102. #. type: table
  19103. #: guix-git/doc/guix.texi:13198
  19104. 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}}; likewise for @code{qgpgme} and the 46 packages that depend on it."
  19105. msgstr ""
  19106. #. type: table
  19107. #: guix-git/doc/guix.texi:13202
  19108. 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."
  19109. msgstr ""
  19110. #. type: item
  19111. #: guix-git/doc/guix.texi:13203
  19112. #, no-wrap
  19113. msgid "--display-missing"
  19114. msgstr ""
  19115. #. type: table
  19116. #: guix-git/doc/guix.texi:13205
  19117. msgid "Display the list of store items for which substitutes are missing."
  19118. msgstr ""
  19119. #. type: section
  19120. #: guix-git/doc/guix.texi:13208
  19121. #, no-wrap
  19122. msgid "Invoking @command{guix processes}"
  19123. msgstr ""
  19124. #. type: Plain text
  19125. #: guix-git/doc/guix.texi:13216
  19126. 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:"
  19127. msgstr ""
  19128. #. type: example
  19129. #: guix-git/doc/guix.texi:13222
  19130. #, no-wrap
  19131. msgid ""
  19132. "$ sudo guix processes\n"
  19133. "SessionPID: 19002\n"
  19134. "ClientPID: 19090\n"
  19135. "ClientCommand: guix environment --ad-hoc python\n"
  19136. "\n"
  19137. msgstr ""
  19138. #. type: example
  19139. #: guix-git/doc/guix.texi:13226
  19140. #, no-wrap
  19141. msgid ""
  19142. "SessionPID: 19402\n"
  19143. "ClientPID: 19367\n"
  19144. "ClientCommand: guix publish -u guix-publish -p 3000 -C 9 @dots{}\n"
  19145. "\n"
  19146. msgstr ""
  19147. #. type: example
  19148. #: guix-git/doc/guix.texi:13239
  19149. #, no-wrap
  19150. msgid ""
  19151. "SessionPID: 19444\n"
  19152. "ClientPID: 19419\n"
  19153. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  19154. "LockHeld: /gnu/store/@dots{}-perl-ipc-cmd-0.96.lock\n"
  19155. "LockHeld: /gnu/store/@dots{}-python-six-bootstrap-1.11.0.lock\n"
  19156. "LockHeld: /gnu/store/@dots{}-libjpeg-turbo-2.0.0.lock\n"
  19157. "ChildPID: 20495\n"
  19158. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  19159. "ChildPID: 27733\n"
  19160. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  19161. "ChildPID: 27793\n"
  19162. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  19163. msgstr ""
  19164. #. type: Plain text
  19165. #: guix-git/doc/guix.texi:13246
  19166. 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."
  19167. msgstr ""
  19168. #. type: Plain text
  19169. #: guix-git/doc/guix.texi:13253
  19170. 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})."
  19171. msgstr ""
  19172. #. type: Plain text
  19173. #: guix-git/doc/guix.texi:13258
  19174. 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:"
  19175. msgstr ""
  19176. #. type: example
  19177. #: guix-git/doc/guix.texi:13264
  19178. #, no-wrap
  19179. msgid ""
  19180. "$ sudo guix processes | \\\n"
  19181. " recsel -p ClientPID,ClientCommand -e 'LockHeld ~ \"perl\"'\n"
  19182. "ClientPID: 19419\n"
  19183. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  19184. msgstr ""
  19185. #. type: Plain text
  19186. #: guix-git/doc/guix.texi:13267
  19187. #, fuzzy
  19188. msgid "Additional options are listed below."
  19189. msgstr "额外的构建选项"
  19190. #. type: table
  19191. #: guix-git/doc/guix.texi:13277
  19192. msgid "The default option. It outputs a set of Session recutils records that include each @code{ChildProcess} as a field."
  19193. msgstr ""
  19194. #. type: item
  19195. #: guix-git/doc/guix.texi:13278
  19196. #, no-wrap
  19197. msgid "normalized"
  19198. msgstr ""
  19199. #. type: table
  19200. #: guix-git/doc/guix.texi:13285
  19201. 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}."
  19202. msgstr ""
  19203. #. type: example
  19204. #: guix-git/doc/guix.texi:13295
  19205. #, no-wrap
  19206. msgid ""
  19207. "$ guix processes --format=normalized | \\\n"
  19208. " recsel \\\n"
  19209. " -j Session \\\n"
  19210. " -t ChildProcess \\\n"
  19211. " -p Session.PID,PID \\\n"
  19212. " -e 'Session.ClientCommand ~ \"guix build\"'\n"
  19213. "PID: 4435\n"
  19214. "Session_PID: 4278\n"
  19215. "\n"
  19216. msgstr ""
  19217. #. type: example
  19218. #: guix-git/doc/guix.texi:13298
  19219. #, no-wrap
  19220. msgid ""
  19221. "PID: 4554\n"
  19222. "Session_PID: 4278\n"
  19223. "\n"
  19224. msgstr ""
  19225. #. type: example
  19226. #: guix-git/doc/guix.texi:13301
  19227. #, no-wrap
  19228. msgid ""
  19229. "PID: 4646\n"
  19230. "Session_PID: 4278\n"
  19231. msgstr ""
  19232. #. type: cindex
  19233. #: guix-git/doc/guix.texi:13308
  19234. #, no-wrap
  19235. msgid "system configuration"
  19236. msgstr ""
  19237. #. type: Plain text
  19238. #: guix-git/doc/guix.texi:13314
  19239. 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."
  19240. msgstr ""
  19241. #. type: Plain text
  19242. #: guix-git/doc/guix.texi:13324
  19243. 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."
  19244. msgstr ""
  19245. #. type: Plain text
  19246. #: guix-git/doc/guix.texi:13329
  19247. 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."
  19248. msgstr ""
  19249. #. type: Plain text
  19250. #: guix-git/doc/guix.texi:13358
  19251. 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:"
  19252. msgstr ""
  19253. #. type: code{#1}
  19254. #: guix-git/doc/guix.texi:13359 guix-git/doc/guix.texi:33410
  19255. #, no-wrap
  19256. msgid "operating-system"
  19257. msgstr ""
  19258. #. type: include
  19259. #: guix-git/doc/guix.texi:13361
  19260. #, no-wrap
  19261. msgid "os-config-bare-bones.texi"
  19262. msgstr ""
  19263. #. type: Plain text
  19264. #: guix-git/doc/guix.texi:13368
  19265. 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."
  19266. msgstr ""
  19267. #. type: Plain text
  19268. #: guix-git/doc/guix.texi:13373
  19269. 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}."
  19270. msgstr ""
  19271. #. type: unnumberedsubsec
  19272. #: guix-git/doc/guix.texi:13374
  19273. #, no-wrap
  19274. msgid "Bootloader"
  19275. msgstr ""
  19276. #. type: cindex
  19277. #: guix-git/doc/guix.texi:13376
  19278. #, no-wrap
  19279. msgid "legacy boot, on Intel machines"
  19280. msgstr ""
  19281. #. type: cindex
  19282. #: guix-git/doc/guix.texi:13377
  19283. #, no-wrap
  19284. msgid "BIOS boot, on Intel machines"
  19285. msgstr ""
  19286. #. type: cindex
  19287. #: guix-git/doc/guix.texi:13378
  19288. #, no-wrap
  19289. msgid "UEFI boot"
  19290. msgstr ""
  19291. #. type: cindex
  19292. #: guix-git/doc/guix.texi:13379
  19293. #, no-wrap
  19294. msgid "EFI boot"
  19295. msgstr ""
  19296. #. type: Plain text
  19297. #: guix-git/doc/guix.texi:13385
  19298. 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:"
  19299. msgstr ""
  19300. #. type: lisp
  19301. #: guix-git/doc/guix.texi:13390
  19302. #, no-wrap
  19303. msgid ""
  19304. "(bootloader-configuration\n"
  19305. " (bootloader grub-efi-bootloader)\n"
  19306. " (target \"/boot/efi\"))\n"
  19307. msgstr ""
  19308. #. type: Plain text
  19309. #: guix-git/doc/guix.texi:13394
  19310. msgid "@xref{Bootloader Configuration}, for more information on the available configuration options."
  19311. msgstr ""
  19312. #. type: unnumberedsubsec
  19313. #: guix-git/doc/guix.texi:13395
  19314. #, no-wrap
  19315. msgid "Globally-Visible Packages"
  19316. msgstr ""
  19317. #. type: vindex
  19318. #: guix-git/doc/guix.texi:13397
  19319. #, no-wrap
  19320. msgid "%base-packages"
  19321. msgstr ""
  19322. #. type: Plain text
  19323. #: guix-git/doc/guix.texi:13410
  19324. 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 GNU Zile 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:"
  19325. msgstr ""
  19326. #. type: lisp
  19327. #: guix-git/doc/guix.texi:13414
  19328. #, no-wrap
  19329. msgid ""
  19330. "(use-modules (gnu packages))\n"
  19331. "(use-modules (gnu packages dns))\n"
  19332. "\n"
  19333. msgstr ""
  19334. #. type: lisp
  19335. #: guix-git/doc/guix.texi:13419
  19336. #, no-wrap
  19337. msgid ""
  19338. "(operating-system\n"
  19339. " ;; ...\n"
  19340. " (packages (cons (list bind \"utils\")\n"
  19341. " %base-packages)))\n"
  19342. msgstr ""
  19343. #. type: findex
  19344. #: guix-git/doc/guix.texi:13421
  19345. #, no-wrap
  19346. msgid "specification->package"
  19347. msgstr ""
  19348. #. type: Plain text
  19349. #: guix-git/doc/guix.texi:13430
  19350. msgid "Referring to packages by variable name, like @code{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:"
  19351. msgstr ""
  19352. #. type: lisp
  19353. #: guix-git/doc/guix.texi:13433
  19354. #, no-wrap
  19355. msgid ""
  19356. "(use-modules (gnu packages))\n"
  19357. "\n"
  19358. msgstr ""
  19359. #. type: lisp
  19360. #: guix-git/doc/guix.texi:13439
  19361. #, no-wrap
  19362. msgid ""
  19363. "(operating-system\n"
  19364. " ;; ...\n"
  19365. " (packages (append (map specification->package\n"
  19366. " '(\"tcpdump\" \"htop\" \"gnupg@@2.0\"))\n"
  19367. " %base-packages)))\n"
  19368. msgstr ""
  19369. #. type: unnumberedsubsec
  19370. #: guix-git/doc/guix.texi:13441
  19371. #, no-wrap
  19372. msgid "System Services"
  19373. msgstr ""
  19374. #. type: cindex
  19375. #: guix-git/doc/guix.texi:13443 guix-git/doc/guix.texi:32193
  19376. #: guix-git/doc/guix.texi:33635
  19377. #, no-wrap
  19378. msgid "services"
  19379. msgstr ""
  19380. #. type: vindex
  19381. #: guix-git/doc/guix.texi:13444
  19382. #, no-wrap
  19383. msgid "%base-services"
  19384. msgstr ""
  19385. #. type: Plain text
  19386. #: guix-git/doc/guix.texi:13454
  19387. 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})."
  19388. msgstr ""
  19389. #. type: cindex
  19390. #: guix-git/doc/guix.texi:13455
  19391. #, no-wrap
  19392. msgid "customization, of services"
  19393. msgstr ""
  19394. #. type: findex
  19395. #: guix-git/doc/guix.texi:13456
  19396. #, no-wrap
  19397. msgid "modify-services"
  19398. msgstr ""
  19399. #. type: Plain text
  19400. #: guix-git/doc/guix.texi:13460
  19401. 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."
  19402. msgstr ""
  19403. #. type: Plain text
  19404. #: guix-git/doc/guix.texi:13465
  19405. 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:"
  19406. msgstr ""
  19407. #. type: lisp
  19408. #: guix-git/doc/guix.texi:13482
  19409. #, no-wrap
  19410. msgid ""
  19411. "(define %my-services\n"
  19412. " ;; My very own list of services.\n"
  19413. " (modify-services %base-services\n"
  19414. " (guix-service-type config =>\n"
  19415. " (guix-configuration\n"
  19416. " (inherit config)\n"
  19417. " ;; Fetch substitutes from example.org.\n"
  19418. " (substitute-urls\n"
  19419. " (list \"https://example.org/guix\"\n"
  19420. " \"https://ci.guix.gnu.org\"))))\n"
  19421. " (mingetty-service-type config =>\n"
  19422. " (mingetty-configuration\n"
  19423. " (inherit config)\n"
  19424. " ;; Automatially log in as \"guest\".\n"
  19425. " (auto-login \"guest\")))))\n"
  19426. "\n"
  19427. msgstr ""
  19428. #. type: lisp
  19429. #: guix-git/doc/guix.texi:13486
  19430. #, no-wrap
  19431. msgid ""
  19432. "(operating-system\n"
  19433. " ;; @dots{}\n"
  19434. " (services %my-services))\n"
  19435. msgstr ""
  19436. #. type: Plain text
  19437. #: guix-git/doc/guix.texi:13497
  19438. 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. 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."
  19439. msgstr ""
  19440. #. type: Plain text
  19441. #: guix-git/doc/guix.texi:13504
  19442. 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:"
  19443. msgstr ""
  19444. #. type: include
  19445. #: guix-git/doc/guix.texi:13506
  19446. #, no-wrap
  19447. msgid "os-config-desktop.texi"
  19448. msgstr ""
  19449. #. type: Plain text
  19450. #: guix-git/doc/guix.texi:13511
  19451. msgid "A graphical system with a choice of lightweight window managers instead of full-blown desktop environments would look like this:"
  19452. msgstr ""
  19453. #. type: include
  19454. #: guix-git/doc/guix.texi:13513
  19455. #, no-wrap
  19456. msgid "os-config-lightweight-desktop.texi"
  19457. msgstr ""
  19458. #. type: Plain text
  19459. #: guix-git/doc/guix.texi:13519
  19460. 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."
  19461. msgstr ""
  19462. #. type: Plain text
  19463. #: guix-git/doc/guix.texi:13523
  19464. 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."
  19465. msgstr ""
  19466. #. type: Plain text
  19467. #: guix-git/doc/guix.texi:13530
  19468. 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:"
  19469. msgstr ""
  19470. #. type: lisp
  19471. #: guix-git/doc/guix.texi:13535
  19472. #, no-wrap
  19473. msgid ""
  19474. "(remove (lambda (service)\n"
  19475. " (eq? (service-kind service) avahi-service-type))\n"
  19476. " %desktop-services)\n"
  19477. msgstr ""
  19478. #. type: Plain text
  19479. #: guix-git/doc/guix.texi:13538
  19480. msgid "Alternatively, the @code{modify-services} macro can be used:"
  19481. msgstr ""
  19482. #. type: lisp
  19483. #: guix-git/doc/guix.texi:13542
  19484. #, no-wrap
  19485. msgid ""
  19486. "(modify-services %desktop-services\n"
  19487. " (delete avahi-service-type))\n"
  19488. msgstr ""
  19489. #. type: unnumberedsubsec
  19490. #: guix-git/doc/guix.texi:13545
  19491. #, no-wrap
  19492. msgid "Instantiating the System"
  19493. msgstr ""
  19494. #. type: Plain text
  19495. #: guix-git/doc/guix.texi:13552
  19496. 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})."
  19497. msgstr ""
  19498. #. type: Plain text
  19499. #: guix-git/doc/guix.texi:13560
  19500. 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."
  19501. msgstr ""
  19502. #. type: cindex
  19503. #: guix-git/doc/guix.texi:13561
  19504. #, no-wrap
  19505. msgid "roll-back, of the operating system"
  19506. msgstr ""
  19507. #. type: Plain text
  19508. #: guix-git/doc/guix.texi:13571
  19509. 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}."
  19510. msgstr ""
  19511. #. type: Plain text
  19512. #: guix-git/doc/guix.texi:13577
  19513. 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})."
  19514. msgstr ""
  19515. #. type: unnumberedsubsec
  19516. #: guix-git/doc/guix.texi:13578
  19517. #, no-wrap
  19518. msgid "The Programming Interface"
  19519. msgstr ""
  19520. #. type: Plain text
  19521. #: guix-git/doc/guix.texi:13583
  19522. msgid "At the Scheme level, the bulk of an @code{operating-system} declaration is instantiated with the following monadic procedure (@pxref{The Store Monad}):"
  19523. msgstr ""
  19524. #. type: deffn
  19525. #: guix-git/doc/guix.texi:13584
  19526. #, no-wrap
  19527. msgid "{Monadic Procedure} operating-system-derivation os"
  19528. msgstr ""
  19529. #. type: deffn
  19530. #: guix-git/doc/guix.texi:13587
  19531. msgid "Return a derivation that builds @var{os}, an @code{operating-system} object (@pxref{Derivations})."
  19532. msgstr ""
  19533. #. type: deffn
  19534. #: guix-git/doc/guix.texi:13591
  19535. 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}."
  19536. msgstr ""
  19537. #. type: Plain text
  19538. #: guix-git/doc/guix.texi:13596
  19539. 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!"
  19540. msgstr ""
  19541. #. type: section
  19542. #: guix-git/doc/guix.texi:13599
  19543. #, no-wrap
  19544. msgid "@code{operating-system} Reference"
  19545. msgstr ""
  19546. #. type: Plain text
  19547. #: guix-git/doc/guix.texi:13604
  19548. msgid "This section summarizes all the options available in @code{operating-system} declarations (@pxref{Using the Configuration System})."
  19549. msgstr ""
  19550. #. type: deftp
  19551. #: guix-git/doc/guix.texi:13605
  19552. #, no-wrap
  19553. msgid "{Data Type} operating-system"
  19554. msgstr ""
  19555. #. type: deftp
  19556. #: guix-git/doc/guix.texi:13609
  19557. 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})."
  19558. msgstr ""
  19559. #. type: item
  19560. #: guix-git/doc/guix.texi:13611
  19561. #, fuzzy, no-wrap
  19562. msgid "@code{kernel} (default: @code{linux-libre})"
  19563. msgstr "@code{gnome}(默认值:@code{gnome})"
  19564. #. type: table
  19565. #: guix-git/doc/guix.texi:13616
  19566. 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.}."
  19567. msgstr ""
  19568. #. type: code{#1}
  19569. #: guix-git/doc/guix.texi:13617 guix-git/doc/guix.texi:28901
  19570. #, no-wrap
  19571. msgid "hurd"
  19572. msgstr ""
  19573. #. type: item
  19574. #: guix-git/doc/guix.texi:13618
  19575. #, fuzzy, no-wrap
  19576. msgid "@code{hurd} (default: @code{#f})"
  19577. msgstr "@code{port}(默认值:@code{22})"
  19578. #. type: table
  19579. #: guix-git/doc/guix.texi:13623
  19580. 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."
  19581. msgstr ""
  19582. #. type: quotation
  19583. #: guix-git/doc/guix.texi:13626
  19584. msgid "This feature is experimental and only supported for disk images."
  19585. msgstr ""
  19586. #. type: item
  19587. #: guix-git/doc/guix.texi:13628
  19588. #, fuzzy, no-wrap
  19589. msgid "@code{kernel-loadable-modules} (default: '())"
  19590. msgstr "@code{features} (@code{'()})"
  19591. #. type: table
  19592. #: guix-git/doc/guix.texi:13631
  19593. msgid "A list of objects (usually packages) to collect loadable kernel modules from--e.g. @code{(list ddcci-driver-linux)}."
  19594. msgstr ""
  19595. #. type: item
  19596. #: guix-git/doc/guix.texi:13632
  19597. #, fuzzy, no-wrap
  19598. msgid "@code{kernel-arguments} (default: @code{%default-kernel-arguments})"
  19599. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  19600. #. type: table
  19601. #: guix-git/doc/guix.texi:13635
  19602. msgid "List of strings or gexps representing additional arguments to pass on the command-line of the kernel---e.g., @code{(\"console=ttyS0\")}."
  19603. msgstr ""
  19604. #. type: code{#1}
  19605. #: guix-git/doc/guix.texi:13636 guix-git/doc/guix.texi:32406
  19606. #: guix-git/doc/guix.texi:32425
  19607. #, no-wrap
  19608. msgid "bootloader"
  19609. msgstr ""
  19610. #. type: table
  19611. #: guix-git/doc/guix.texi:13638
  19612. msgid "The system bootloader configuration object. @xref{Bootloader Configuration}."
  19613. msgstr ""
  19614. #. type: code{#1}
  19615. #: guix-git/doc/guix.texi:13639 guix-git/doc/guix.texi:32595
  19616. #, no-wrap
  19617. msgid "label"
  19618. msgstr ""
  19619. #. type: table
  19620. #: guix-git/doc/guix.texi:13642
  19621. 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."
  19622. msgstr ""
  19623. #. type: item
  19624. #: guix-git/doc/guix.texi:13643 guix-git/doc/guix.texi:18070
  19625. #: guix-git/doc/guix.texi:32525
  19626. #, no-wrap
  19627. msgid "@code{keyboard-layout} (default: @code{#f})"
  19628. msgstr ""
  19629. #. type: table
  19630. #: guix-git/doc/guix.texi:13648
  19631. 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."
  19632. msgstr ""
  19633. #. type: table
  19634. #: guix-git/doc/guix.texi:13653
  19635. 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})."
  19636. msgstr ""
  19637. #. type: quotation
  19638. #: guix-git/doc/guix.texi:13660
  19639. 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."
  19640. msgstr ""
  19641. #. type: item
  19642. #: guix-git/doc/guix.texi:13662
  19643. #, no-wrap
  19644. msgid "@code{initrd-modules} (default: @code{%base-initrd-modules})"
  19645. msgstr ""
  19646. #. type: cindex
  19647. #: guix-git/doc/guix.texi:13663 guix-git/doc/guix.texi:32230
  19648. #: guix-git/doc/guix.texi:32334
  19649. #, no-wrap
  19650. msgid "initrd"
  19651. msgstr ""
  19652. #. type: cindex
  19653. #: guix-git/doc/guix.texi:13664 guix-git/doc/guix.texi:32231
  19654. #: guix-git/doc/guix.texi:32335
  19655. #, no-wrap
  19656. msgid "initial RAM disk"
  19657. msgstr ""
  19658. #. type: table
  19659. #: guix-git/doc/guix.texi:13667
  19660. msgid "The list of Linux kernel modules that need to be available in the initial RAM disk. @xref{Initial RAM Disk}."
  19661. msgstr ""
  19662. #. type: item
  19663. #: guix-git/doc/guix.texi:13668
  19664. #, no-wrap
  19665. msgid "@code{initrd} (default: @code{base-initrd})"
  19666. msgstr ""
  19667. #. type: table
  19668. #: guix-git/doc/guix.texi:13672
  19669. 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}."
  19670. msgstr ""
  19671. #. type: item
  19672. #: guix-git/doc/guix.texi:13673
  19673. #, fuzzy, no-wrap
  19674. msgid "@code{firmware} (default: @code{%base-firmware})"
  19675. msgstr "@code{mate}(默认值:@code{mate})"
  19676. #. type: cindex
  19677. #: guix-git/doc/guix.texi:13674
  19678. #, no-wrap
  19679. msgid "firmware"
  19680. msgstr ""
  19681. #. type: table
  19682. #: guix-git/doc/guix.texi:13676
  19683. msgid "List of firmware packages loadable by the operating system kernel."
  19684. msgstr ""
  19685. #. type: table
  19686. #: guix-git/doc/guix.texi:13681
  19687. 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."
  19688. msgstr ""
  19689. #. type: code{#1}
  19690. #: guix-git/doc/guix.texi:13682 guix-git/doc/guix.texi:33429
  19691. #, no-wrap
  19692. msgid "host-name"
  19693. msgstr ""
  19694. #. type: table
  19695. #: guix-git/doc/guix.texi:13684
  19696. msgid "The host name."
  19697. msgstr ""
  19698. #. type: code{#1}
  19699. #: guix-git/doc/guix.texi:13685
  19700. #, no-wrap
  19701. msgid "hosts-file"
  19702. msgstr ""
  19703. #. type: cindex
  19704. #: guix-git/doc/guix.texi:13686
  19705. #, no-wrap
  19706. msgid "hosts file"
  19707. msgstr ""
  19708. #. type: table
  19709. #: guix-git/doc/guix.texi:13691
  19710. 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}."
  19711. msgstr ""
  19712. #. type: item
  19713. #: guix-git/doc/guix.texi:13692
  19714. #, no-wrap
  19715. msgid "@code{mapped-devices} (default: @code{'()})"
  19716. msgstr ""
  19717. #. type: table
  19718. #: guix-git/doc/guix.texi:13694
  19719. msgid "A list of mapped devices. @xref{Mapped Devices}."
  19720. msgstr ""
  19721. #. type: code{#1}
  19722. #: guix-git/doc/guix.texi:13695
  19723. #, no-wrap
  19724. msgid "file-systems"
  19725. msgstr ""
  19726. #. type: table
  19727. #: guix-git/doc/guix.texi:13697
  19728. msgid "A list of file systems. @xref{File Systems}."
  19729. msgstr ""
  19730. #. type: cindex
  19731. #: guix-git/doc/guix.texi:13698
  19732. #, no-wrap
  19733. msgid "swap devices"
  19734. msgstr ""
  19735. #. type: cindex
  19736. #: guix-git/doc/guix.texi:13699
  19737. #, no-wrap
  19738. msgid "swap space"
  19739. msgstr ""
  19740. #. type: item
  19741. #: guix-git/doc/guix.texi:13700
  19742. #, no-wrap
  19743. msgid "@code{swap-devices} (default: @code{'()})"
  19744. msgstr ""
  19745. #. type: table
  19746. #: guix-git/doc/guix.texi:13705
  19747. 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:"
  19748. msgstr ""
  19749. #. type: item
  19750. #: guix-git/doc/guix.texi:13707
  19751. #, no-wrap
  19752. msgid "(list (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\"))"
  19753. msgstr ""
  19754. #. type: table
  19755. #: guix-git/doc/guix.texi:13711
  19756. 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."
  19757. msgstr ""
  19758. #. type: item
  19759. #: guix-git/doc/guix.texi:13712
  19760. #, no-wrap
  19761. msgid "(list (file-system-label \"swap\"))"
  19762. msgstr ""
  19763. #. type: table
  19764. #: guix-git/doc/guix.texi:13716
  19765. 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."
  19766. msgstr ""
  19767. #. type: item
  19768. #: guix-git/doc/guix.texi:13717
  19769. #, no-wrap
  19770. msgid "(list \"/swapfile\")"
  19771. msgstr ""
  19772. #. type: table
  19773. #: guix-git/doc/guix.texi:13719
  19774. msgid "Use the file @file{/swapfile} as swap space."
  19775. msgstr ""
  19776. #. type: item
  19777. #: guix-git/doc/guix.texi:13720
  19778. #, no-wrap
  19779. msgid "(list \"/dev/sda3\" \"/dev/sdb2\")"
  19780. msgstr ""
  19781. #. type: table
  19782. #: guix-git/doc/guix.texi:13724
  19783. 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."
  19784. msgstr ""
  19785. #. type: table
  19786. #: guix-git/doc/guix.texi:13730
  19787. 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}."
  19788. msgstr ""
  19789. #. type: item
  19790. #: guix-git/doc/guix.texi:13731
  19791. #, no-wrap
  19792. msgid "@code{users} (default: @code{%base-user-accounts})"
  19793. msgstr ""
  19794. #. type: itemx
  19795. #: guix-git/doc/guix.texi:13732
  19796. #, fuzzy, no-wrap
  19797. msgid "@code{groups} (default: @code{%base-groups})"
  19798. msgstr "@code{gnome}(默认值:@code{gnome})"
  19799. #. type: table
  19800. #: guix-git/doc/guix.texi:13734
  19801. msgid "List of user accounts and groups. @xref{User Accounts}."
  19802. msgstr ""
  19803. #. type: table
  19804. #: guix-git/doc/guix.texi:13737
  19805. msgid "If the @code{users} list lacks a user account with UID@tie{}0, a ``root'' account with UID@tie{}0 is automatically added."
  19806. msgstr ""
  19807. #. type: item
  19808. #: guix-git/doc/guix.texi:13738
  19809. #, no-wrap
  19810. msgid "@code{skeletons} (default: @code{(default-skeletons)})"
  19811. msgstr ""
  19812. #. type: table
  19813. #: guix-git/doc/guix.texi:13742
  19814. 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."
  19815. msgstr ""
  19816. #. type: table
  19817. #: guix-git/doc/guix.texi:13744
  19818. msgid "For instance, a valid value may look like this:"
  19819. msgstr ""
  19820. #. type: lisp
  19821. #: guix-git/doc/guix.texi:13750
  19822. #, no-wrap
  19823. msgid ""
  19824. "`((\".bashrc\" ,(plain-file \"bashrc\" \"echo Hello\\n\"))\n"
  19825. " (\".guile\" ,(plain-file \"guile\"\n"
  19826. " \"(use-modules (ice-9 readline))\n"
  19827. " (activate-readline)\")))\n"
  19828. msgstr ""
  19829. #. type: item
  19830. #: guix-git/doc/guix.texi:13752
  19831. #, fuzzy, no-wrap
  19832. msgid "@code{issue} (default: @code{%default-issue})"
  19833. msgstr "@code{mate}(默认值:@code{mate})"
  19834. #. type: table
  19835. #: guix-git/doc/guix.texi:13755
  19836. msgid "A string denoting the contents of the @file{/etc/issue} file, which is displayed when users log in on a text console."
  19837. msgstr ""
  19838. #. type: item
  19839. #: guix-git/doc/guix.texi:13756
  19840. #, fuzzy, no-wrap
  19841. msgid "@code{packages} (default: @code{%base-packages})"
  19842. msgstr "@code{xfce}(默认值:@code{xfce})"
  19843. #. type: table
  19844. #: guix-git/doc/guix.texi:13760
  19845. 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:"
  19846. msgstr ""
  19847. #. type: lisp
  19848. #: guix-git/doc/guix.texi:13765
  19849. #, no-wrap
  19850. msgid ""
  19851. "(cons* git ; the default \"out\" output\n"
  19852. " (list git \"send-email\") ; another output of git\n"
  19853. " %base-packages) ; the default set\n"
  19854. msgstr ""
  19855. #. type: table
  19856. #: guix-git/doc/guix.texi:13770
  19857. msgid "The default set includes core utilities and it is good practice to install non-core utilities in user profiles (@pxref{Invoking guix package})."
  19858. msgstr ""
  19859. #. type: code{#1}
  19860. #: guix-git/doc/guix.texi:13771
  19861. #, no-wrap
  19862. msgid "timezone"
  19863. msgstr ""
  19864. #. type: table
  19865. #: guix-git/doc/guix.texi:13773
  19866. msgid "A timezone identifying string---e.g., @code{\"Europe/Paris\"}."
  19867. msgstr ""
  19868. #. type: table
  19869. #: guix-git/doc/guix.texi:13777
  19870. 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."
  19871. msgstr ""
  19872. #. type: item
  19873. #: guix-git/doc/guix.texi:13778 guix-git/doc/guix.texi:19681
  19874. #, no-wrap
  19875. msgid "@code{locale} (default: @code{\"en_US.utf8\"})"
  19876. msgstr ""
  19877. #. type: table
  19878. #: guix-git/doc/guix.texi:13781
  19879. msgid "The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information."
  19880. msgstr ""
  19881. #. type: item
  19882. #: guix-git/doc/guix.texi:13782
  19883. #, fuzzy, no-wrap
  19884. msgid "@code{locale-definitions} (default: @code{%default-locale-definitions})"
  19885. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  19886. #. type: table
  19887. #: guix-git/doc/guix.texi:13785
  19888. msgid "The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}."
  19889. msgstr ""
  19890. #. type: item
  19891. #: guix-git/doc/guix.texi:13786
  19892. #, no-wrap
  19893. msgid "@code{locale-libcs} (default: @code{(list @var{glibc})})"
  19894. msgstr ""
  19895. #. type: table
  19896. #: guix-git/doc/guix.texi:13790
  19897. 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."
  19898. msgstr ""
  19899. #. type: item
  19900. #: guix-git/doc/guix.texi:13791
  19901. #, fuzzy, no-wrap
  19902. msgid "@code{name-service-switch} (default: @code{%default-nss})"
  19903. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  19904. #. type: table
  19905. #: guix-git/doc/guix.texi:13795
  19906. msgid "Configuration of the libc name service switch (NSS)---a @code{<name-service-switch>} object. @xref{Name Service Switch}, for details."
  19907. msgstr ""
  19908. #. type: item
  19909. #: guix-git/doc/guix.texi:13796
  19910. #, fuzzy, no-wrap
  19911. msgid "@code{services} (default: @code{%base-services})"
  19912. msgstr "@code{xfce}(默认值:@code{xfce})"
  19913. #. type: table
  19914. #: guix-git/doc/guix.texi:13798
  19915. msgid "A list of service objects denoting system services. @xref{Services}."
  19916. msgstr ""
  19917. #. type: cindex
  19918. #: guix-git/doc/guix.texi:13799
  19919. #, no-wrap
  19920. msgid "essential services"
  19921. msgstr ""
  19922. #. type: item
  19923. #: guix-git/doc/guix.texi:13800
  19924. #, no-wrap
  19925. msgid "@code{essential-services} (default: ...)"
  19926. msgstr ""
  19927. #. type: table
  19928. #: guix-git/doc/guix.texi:13805
  19929. 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."
  19930. msgstr ""
  19931. #. type: item
  19932. #: guix-git/doc/guix.texi:13806
  19933. #, no-wrap
  19934. msgid "@code{pam-services} (default: @code{(base-pam-services)})"
  19935. msgstr ""
  19936. #. type: cindex
  19937. #: guix-git/doc/guix.texi:13807
  19938. #, no-wrap
  19939. msgid "PAM"
  19940. msgstr ""
  19941. #. type: cindex
  19942. #: guix-git/doc/guix.texi:13808
  19943. #, no-wrap
  19944. msgid "pluggable authentication modules"
  19945. msgstr ""
  19946. #. type: table
  19947. #: guix-git/doc/guix.texi:13811
  19948. msgid "Linux @dfn{pluggable authentication module} (PAM) services."
  19949. msgstr ""
  19950. #. type: item
  19951. #: guix-git/doc/guix.texi:13812
  19952. #, fuzzy, no-wrap
  19953. msgid "@code{setuid-programs} (default: @code{%setuid-programs})"
  19954. msgstr "@code{features} (@code{'()})"
  19955. #. type: table
  19956. #: guix-git/doc/guix.texi:13815
  19957. msgid "List of string-valued G-expressions denoting setuid programs. @xref{Setuid Programs}."
  19958. msgstr ""
  19959. #. type: item
  19960. #: guix-git/doc/guix.texi:13816
  19961. #, fuzzy, no-wrap
  19962. msgid "@code{sudoers-file} (default: @code{%sudoers-specification})"
  19963. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  19964. #. type: cindex
  19965. #: guix-git/doc/guix.texi:13817
  19966. #, no-wrap
  19967. msgid "sudoers file"
  19968. msgstr ""
  19969. #. type: table
  19970. #: guix-git/doc/guix.texi:13820
  19971. msgid "The contents of the @file{/etc/sudoers} file as a file-like object (@pxref{G-Expressions, @code{local-file} and @code{plain-file}})."
  19972. msgstr ""
  19973. #. type: table
  19974. #: guix-git/doc/guix.texi:13825
  19975. 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}."
  19976. msgstr ""
  19977. #. type: deffn
  19978. #: guix-git/doc/guix.texi:13828
  19979. #, no-wrap
  19980. msgid "{Scheme Syntax} this-operating-system"
  19981. msgstr ""
  19982. #. type: deffn
  19983. #: guix-git/doc/guix.texi:13831
  19984. msgid "When used in the @emph{lexical scope} of an operating system field definition, this identifier resolves to the operating system being defined."
  19985. msgstr ""
  19986. #. type: deffn
  19987. #: guix-git/doc/guix.texi:13834
  19988. msgid "The example below shows how to refer to the operating system being defined in the definition of the @code{label} field:"
  19989. msgstr ""
  19990. #. type: lisp
  19991. #: guix-git/doc/guix.texi:13837 guix-git/doc/guix.texi:17299
  19992. #, no-wrap
  19993. msgid ""
  19994. "(use-modules (gnu) (guix))\n"
  19995. "\n"
  19996. msgstr ""
  19997. #. type: lisp
  19998. #: guix-git/doc/guix.texi:13842
  19999. #, no-wrap
  20000. msgid ""
  20001. "(operating-system\n"
  20002. " ;; ...\n"
  20003. " (label (package-full-name\n"
  20004. " (operating-system-kernel this-operating-system))))\n"
  20005. msgstr ""
  20006. #. type: deffn
  20007. #: guix-git/doc/guix.texi:13846
  20008. msgid "It is an error to refer to @code{this-operating-system} outside an operating system definition."
  20009. msgstr ""
  20010. #. type: Plain text
  20011. #: guix-git/doc/guix.texi:13857
  20012. 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:"
  20013. msgstr ""
  20014. #. type: lisp
  20015. #: guix-git/doc/guix.texi:13863
  20016. #, no-wrap
  20017. msgid ""
  20018. "(file-system\n"
  20019. " (mount-point \"/home\")\n"
  20020. " (device \"/dev/sda3\")\n"
  20021. " (type \"ext4\"))\n"
  20022. msgstr ""
  20023. #. type: Plain text
  20024. #: guix-git/doc/guix.texi:13867
  20025. msgid "As usual, some of the fields are mandatory---those shown in the example above---while others can be omitted. These are described below."
  20026. msgstr ""
  20027. #. type: deftp
  20028. #: guix-git/doc/guix.texi:13868
  20029. #, no-wrap
  20030. msgid "{Data Type} file-system"
  20031. msgstr ""
  20032. #. type: deftp
  20033. #: guix-git/doc/guix.texi:13871
  20034. msgid "Objects of this type represent file systems to be mounted. They contain the following members:"
  20035. msgstr ""
  20036. #. type: item
  20037. #: guix-git/doc/guix.texi:13873 guix-git/doc/guix.texi:14223
  20038. #, no-wrap
  20039. msgid "type"
  20040. msgstr ""
  20041. #. type: table
  20042. #: guix-git/doc/guix.texi:13876
  20043. msgid "This is a string specifying the type of the file system---e.g., @code{\"ext4\"}."
  20044. msgstr ""
  20045. #. type: code{#1}
  20046. #: guix-git/doc/guix.texi:13877
  20047. #, no-wrap
  20048. msgid "mount-point"
  20049. msgstr ""
  20050. #. type: table
  20051. #: guix-git/doc/guix.texi:13879
  20052. msgid "This designates the place where the file system is to be mounted."
  20053. msgstr ""
  20054. #. type: code{#1}
  20055. #: guix-git/doc/guix.texi:13880
  20056. #, no-wrap
  20057. msgid "device"
  20058. msgstr ""
  20059. #. type: table
  20060. #: guix-git/doc/guix.texi:13890
  20061. 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.}."
  20062. msgstr ""
  20063. #. type: findex
  20064. #: guix-git/doc/guix.texi:13891
  20065. #, no-wrap
  20066. msgid "file-system-label"
  20067. msgstr ""
  20068. #. type: table
  20069. #: guix-git/doc/guix.texi:13896
  20070. 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:"
  20071. msgstr ""
  20072. #. type: lisp
  20073. #: guix-git/doc/guix.texi:13902
  20074. #, no-wrap
  20075. msgid ""
  20076. "(file-system\n"
  20077. " (mount-point \"/home\")\n"
  20078. " (type \"ext4\")\n"
  20079. " (device (file-system-label \"my-home\")))\n"
  20080. msgstr ""
  20081. #. type: code{#1}
  20082. #: guix-git/doc/guix.texi:13904 guix-git/doc/guix.texi:31144
  20083. #: guix-git/doc/guix.texi:31160
  20084. #, no-wrap
  20085. msgid "uuid"
  20086. msgstr ""
  20087. #. type: table
  20088. #: guix-git/doc/guix.texi:13912
  20089. 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:"
  20090. msgstr ""
  20091. #. type: lisp
  20092. #: guix-git/doc/guix.texi:13918
  20093. #, no-wrap
  20094. msgid ""
  20095. "(file-system\n"
  20096. " (mount-point \"/home\")\n"
  20097. " (type \"ext4\")\n"
  20098. " (device (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  20099. msgstr ""
  20100. #. type: table
  20101. #: guix-git/doc/guix.texi:13926
  20102. 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."
  20103. msgstr ""
  20104. #. type: item
  20105. #: guix-git/doc/guix.texi:13927
  20106. #, no-wrap
  20107. msgid "@code{flags} (default: @code{'()})"
  20108. msgstr ""
  20109. #. type: table
  20110. #: guix-git/doc/guix.texi:13937
  20111. 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."
  20112. msgstr ""
  20113. #. type: item
  20114. #: guix-git/doc/guix.texi:13938
  20115. #, no-wrap
  20116. msgid "@code{options} (default: @code{#f})"
  20117. msgstr ""
  20118. #. type: table
  20119. #: guix-git/doc/guix.texi:13947
  20120. 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."
  20121. msgstr ""
  20122. #. type: item
  20123. #: guix-git/doc/guix.texi:13948
  20124. #, no-wrap
  20125. msgid "@code{mount?} (default: @code{#t})"
  20126. msgstr ""
  20127. #. type: table
  20128. #: guix-git/doc/guix.texi:13953
  20129. 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."
  20130. msgstr ""
  20131. #. type: item
  20132. #: guix-git/doc/guix.texi:13954
  20133. #, no-wrap
  20134. msgid "@code{needed-for-boot?} (default: @code{#f})"
  20135. msgstr ""
  20136. #. type: table
  20137. #: guix-git/doc/guix.texi:13959
  20138. 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."
  20139. msgstr ""
  20140. #. type: item
  20141. #: guix-git/doc/guix.texi:13960
  20142. #, no-wrap
  20143. msgid "@code{check?} (default: @code{#t})"
  20144. msgstr ""
  20145. #. type: table
  20146. #: guix-git/doc/guix.texi:13963
  20147. msgid "This Boolean indicates whether the file system needs to be checked for errors before being mounted."
  20148. msgstr ""
  20149. #. type: item
  20150. #: guix-git/doc/guix.texi:13964
  20151. #, no-wrap
  20152. msgid "@code{create-mount-point?} (default: @code{#f})"
  20153. msgstr ""
  20154. #. type: table
  20155. #: guix-git/doc/guix.texi:13966
  20156. msgid "When true, the mount point is created if it does not exist yet."
  20157. msgstr ""
  20158. #. type: item
  20159. #: guix-git/doc/guix.texi:13967
  20160. #, fuzzy, no-wrap
  20161. msgid "@code{mount-may-fail?} (default: @code{#f})"
  20162. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  20163. #. type: table
  20164. #: guix-git/doc/guix.texi:13972
  20165. 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."
  20166. msgstr ""
  20167. #. type: item
  20168. #: guix-git/doc/guix.texi:13973
  20169. #, no-wrap
  20170. msgid "@code{dependencies} (default: @code{'()})"
  20171. msgstr ""
  20172. #. type: table
  20173. #: guix-git/doc/guix.texi:13977
  20174. 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."
  20175. msgstr ""
  20176. #. type: table
  20177. #: guix-git/doc/guix.texi:13981
  20178. 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}."
  20179. msgstr ""
  20180. #. type: table
  20181. #: guix-git/doc/guix.texi:13984
  20182. msgid "Another example is a file system that depends on a mapped device, for example for an encrypted partition (@pxref{Mapped Devices})."
  20183. msgstr ""
  20184. #. type: deffn
  20185. #: guix-git/doc/guix.texi:13987
  20186. #, no-wrap
  20187. msgid "{Scheme Procedure} file-system-label @var{str}"
  20188. msgstr ""
  20189. #. type: deffn
  20190. #: guix-git/doc/guix.texi:13990
  20191. msgid "This procedure returns an opaque file system label from @var{str}, a string:"
  20192. msgstr ""
  20193. #. type: lisp
  20194. #: guix-git/doc/guix.texi:13994
  20195. #, no-wrap
  20196. msgid ""
  20197. "(file-system-label \"home\")\n"
  20198. "@result{} #<file-system-label \"home\">\n"
  20199. msgstr ""
  20200. #. type: deffn
  20201. #: guix-git/doc/guix.texi:13998
  20202. msgid "File system labels are used to refer to file systems by label rather than by device name. See above for examples."
  20203. msgstr ""
  20204. #. type: Plain text
  20205. #: guix-git/doc/guix.texi:14002
  20206. msgid "The @code{(gnu system file-systems)} exports the following useful variables."
  20207. msgstr ""
  20208. #. type: defvr
  20209. #: guix-git/doc/guix.texi:14003
  20210. #, no-wrap
  20211. msgid "{Scheme Variable} %base-file-systems"
  20212. msgstr ""
  20213. #. type: defvr
  20214. #: guix-git/doc/guix.texi:14008
  20215. 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."
  20216. msgstr ""
  20217. #. type: defvr
  20218. #: guix-git/doc/guix.texi:14010
  20219. #, no-wrap
  20220. msgid "{Scheme Variable} %pseudo-terminal-file-system"
  20221. msgstr ""
  20222. #. type: defvr
  20223. #: guix-git/doc/guix.texi:14016
  20224. 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}."
  20225. msgstr ""
  20226. #. type: defvr
  20227. #: guix-git/doc/guix.texi:14018
  20228. #, no-wrap
  20229. msgid "{Scheme Variable} %shared-memory-file-system"
  20230. msgstr ""
  20231. #. type: defvr
  20232. #: guix-git/doc/guix.texi:14022
  20233. 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})."
  20234. msgstr ""
  20235. #. type: defvr
  20236. #: guix-git/doc/guix.texi:14024
  20237. #, no-wrap
  20238. msgid "{Scheme Variable} %immutable-store"
  20239. msgstr ""
  20240. #. type: defvr
  20241. #: guix-git/doc/guix.texi:14029
  20242. 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."
  20243. msgstr ""
  20244. #. type: defvr
  20245. #: guix-git/doc/guix.texi:14032
  20246. msgid "The daemon itself is still able to write to the store: it remounts it read-write in its own ``name space.''"
  20247. msgstr ""
  20248. #. type: defvr
  20249. #: guix-git/doc/guix.texi:14034
  20250. #, no-wrap
  20251. msgid "{Scheme Variable} %binary-format-file-system"
  20252. msgstr ""
  20253. #. type: defvr
  20254. #: guix-git/doc/guix.texi:14038
  20255. 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."
  20256. msgstr ""
  20257. #. type: defvr
  20258. #: guix-git/doc/guix.texi:14040
  20259. #, no-wrap
  20260. msgid "{Scheme Variable} %fuse-control-file-system"
  20261. msgstr ""
  20262. #. type: defvr
  20263. #: guix-git/doc/guix.texi:14044
  20264. 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."
  20265. msgstr ""
  20266. #. type: Plain text
  20267. #: guix-git/doc/guix.texi:14048
  20268. msgid "The @code{(gnu system uuid)} module provides tools to deal with file system ``unique identifiers'' (UUIDs)."
  20269. msgstr ""
  20270. #. type: deffn
  20271. #: guix-git/doc/guix.texi:14049
  20272. #, no-wrap
  20273. msgid "{Scheme Procedure} uuid @var{str} [@var{type}]"
  20274. msgstr ""
  20275. #. type: deffn
  20276. #: guix-git/doc/guix.texi:14052
  20277. msgid "Return an opaque UUID (unique identifier) object of the given @var{type} (a symbol) by parsing @var{str} (a string):"
  20278. msgstr ""
  20279. #. type: lisp
  20280. #: guix-git/doc/guix.texi:14056
  20281. #, no-wrap
  20282. msgid ""
  20283. "(uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")\n"
  20284. "@result{} #<<uuid> type: dce bv: @dots{}>\n"
  20285. "\n"
  20286. msgstr ""
  20287. #. type: lisp
  20288. #: guix-git/doc/guix.texi:14059
  20289. #, no-wrap
  20290. msgid ""
  20291. "(uuid \"1234-ABCD\" 'fat)\n"
  20292. "@result{} #<<uuid> type: fat bv: @dots{}>\n"
  20293. msgstr ""
  20294. #. type: deffn
  20295. #: guix-git/doc/guix.texi:14063
  20296. msgid "@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat}, @code{ntfs}, or one of the commonly found synonyms for these."
  20297. msgstr ""
  20298. #. type: deffn
  20299. #: guix-git/doc/guix.texi:14066
  20300. msgid "UUIDs are another way to unambiguously refer to file systems in operating system configuration. See the examples above."
  20301. msgstr ""
  20302. #. type: subsection
  20303. #: guix-git/doc/guix.texi:14069 guix-git/doc/guix.texi:14070
  20304. #, fuzzy, no-wrap
  20305. msgid "Btrfs file system"
  20306. msgstr "网络文件系统"
  20307. #. type: Plain text
  20308. #: guix-git/doc/guix.texi:14076
  20309. 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."
  20310. msgstr ""
  20311. #. type: Plain text
  20312. #: guix-git/doc/guix.texi:14079
  20313. msgid "In its simplest usage, a Btrfs file system can be described, for example, by:"
  20314. msgstr ""
  20315. #. type: lisp
  20316. #: guix-git/doc/guix.texi:14085
  20317. #, no-wrap
  20318. msgid ""
  20319. "(file-system\n"
  20320. " (mount-point \"/home\")\n"
  20321. " (type \"btrfs\")\n"
  20322. " (device (file-system-label \"my-home\")))\n"
  20323. msgstr ""
  20324. #. type: Plain text
  20325. #: guix-git/doc/guix.texi:14091
  20326. 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}):"
  20327. msgstr ""
  20328. #. type: lisp
  20329. #: guix-git/doc/guix.texi:14099
  20330. #, no-wrap
  20331. msgid ""
  20332. "(file-system\n"
  20333. " (device (file-system-label \"my-btrfs-pool\"))\n"
  20334. " (mount-point \"/\")\n"
  20335. " (type \"btrfs\")\n"
  20336. " (options \"subvol=rootfs\")\n"
  20337. " (dependencies mapped-devices))\n"
  20338. msgstr ""
  20339. #. type: Plain text
  20340. #: guix-git/doc/guix.texi:14110
  20341. 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."
  20342. msgstr ""
  20343. #. type: Plain text
  20344. #: guix-git/doc/guix.texi:14118
  20345. 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.:"
  20346. msgstr ""
  20347. #. type: example
  20348. #: guix-git/doc/guix.texi:14125
  20349. #, no-wrap
  20350. msgid ""
  20351. "/ (top level)\n"
  20352. "├── rootfs (subvolume directory)\n"
  20353. " ├── gnu (normal directory)\n"
  20354. " ├── store (normal directory)\n"
  20355. "[...]\n"
  20356. msgstr ""
  20357. #. type: Plain text
  20358. #: guix-git/doc/guix.texi:14130
  20359. 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."
  20360. msgstr ""
  20361. #. type: Plain text
  20362. #: guix-git/doc/guix.texi:14133
  20363. msgid "The next example shows a nested hierarchy of subvolumes and directories:"
  20364. msgstr ""
  20365. #. type: example
  20366. #: guix-git/doc/guix.texi:14140
  20367. #, no-wrap
  20368. msgid ""
  20369. "/ (top level)\n"
  20370. "├── rootfs (subvolume)\n"
  20371. " ├── gnu (normal directory)\n"
  20372. " ├── store (subvolume)\n"
  20373. "[...]\n"
  20374. msgstr ""
  20375. #. type: Plain text
  20376. #: guix-git/doc/guix.texi:14147
  20377. 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}."
  20378. msgstr ""
  20379. #. type: Plain text
  20380. #: guix-git/doc/guix.texi:14149
  20381. msgid "Finally, a more contrived example of nested subvolumes:"
  20382. msgstr ""
  20383. #. type: example
  20384. #: guix-git/doc/guix.texi:14156
  20385. #, no-wrap
  20386. msgid ""
  20387. "/ (top level)\n"
  20388. "├── root-snapshots (subvolume)\n"
  20389. " ├── root-current (subvolume)\n"
  20390. " ├── guix-store (subvolume)\n"
  20391. "[...]\n"
  20392. msgstr ""
  20393. #. type: Plain text
  20394. #: guix-git/doc/guix.texi:14163
  20395. 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:"
  20396. msgstr ""
  20397. #. type: lisp
  20398. #: guix-git/doc/guix.texi:14171
  20399. #, no-wrap
  20400. msgid ""
  20401. "(file-system\n"
  20402. " (device (file-system-label \"btrfs-pool-1\"))\n"
  20403. " (mount-point \"/gnu/store\")\n"
  20404. " (type \"btrfs\")\n"
  20405. " (options \"subvol=root-snapshots/root-current/guix-store,\\\n"
  20406. "compress-force=zstd,space_cache=v2\"))\n"
  20407. msgstr ""
  20408. #. type: cindex
  20409. #: guix-git/doc/guix.texi:14176
  20410. #, no-wrap
  20411. msgid "device mapping"
  20412. msgstr ""
  20413. #. type: cindex
  20414. #: guix-git/doc/guix.texi:14177
  20415. #, no-wrap
  20416. msgid "mapped devices"
  20417. msgstr ""
  20418. #. type: Plain text
  20419. #: guix-git/doc/guix.texi:14194
  20420. 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."
  20421. msgstr ""
  20422. #. type: Plain text
  20423. #: guix-git/doc/guix.texi:14197
  20424. msgid "Mapped devices are declared using the @code{mapped-device} form, defined as follows; for examples, see below."
  20425. msgstr ""
  20426. #. type: deftp
  20427. #: guix-git/doc/guix.texi:14198
  20428. #, no-wrap
  20429. msgid "{Data Type} mapped-device"
  20430. msgstr ""
  20431. #. type: deftp
  20432. #: guix-git/doc/guix.texi:14201
  20433. msgid "Objects of this type represent device mappings that will be made when the system boots up."
  20434. msgstr ""
  20435. #. type: table
  20436. #: guix-git/doc/guix.texi:14208
  20437. 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."
  20438. msgstr ""
  20439. #. type: code{#1}
  20440. #: guix-git/doc/guix.texi:14209 guix-git/doc/guix.texi:32498
  20441. #, no-wrap
  20442. msgid "target"
  20443. msgstr ""
  20444. #. type: table
  20445. #: guix-git/doc/guix.texi:14218
  20446. 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\"}."
  20447. msgstr ""
  20448. #. type: item
  20449. #: guix-git/doc/guix.texi:14219
  20450. #, no-wrap
  20451. msgid "targets"
  20452. msgstr ""
  20453. #. type: table
  20454. #: guix-git/doc/guix.texi:14222
  20455. msgid "This list of strings specifies names of the resulting mapped devices in case there are several. The format is identical to @var{target}."
  20456. msgstr ""
  20457. #. type: table
  20458. #: guix-git/doc/guix.texi:14226
  20459. msgid "This must be a @code{mapped-device-kind} object, which specifies how @var{source} is mapped to @var{target}."
  20460. msgstr ""
  20461. #. type: defvr
  20462. #: guix-git/doc/guix.texi:14229
  20463. #, no-wrap
  20464. msgid "{Scheme Variable} luks-device-mapping"
  20465. msgstr ""
  20466. #. type: defvr
  20467. #: guix-git/doc/guix.texi:14233
  20468. 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."
  20469. msgstr ""
  20470. #. type: defvr
  20471. #: guix-git/doc/guix.texi:14235
  20472. #, no-wrap
  20473. msgid "{Scheme Variable} raid-device-mapping"
  20474. msgstr ""
  20475. #. type: defvr
  20476. #: guix-git/doc/guix.texi:14240
  20477. 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."
  20478. msgstr ""
  20479. #. type: cindex
  20480. #: guix-git/doc/guix.texi:14242
  20481. #, no-wrap
  20482. msgid "LVM, logical volume manager"
  20483. msgstr ""
  20484. #. type: defvr
  20485. #: guix-git/doc/guix.texi:14243
  20486. #, no-wrap
  20487. msgid "{Scheme Variable} lvm-device-mapping"
  20488. msgstr ""
  20489. #. type: defvr
  20490. #: guix-git/doc/guix.texi:14248
  20491. 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."
  20492. msgstr ""
  20493. #. type: cindex
  20494. #: guix-git/doc/guix.texi:14250
  20495. #, no-wrap
  20496. msgid "disk encryption"
  20497. msgstr ""
  20498. #. type: cindex
  20499. #: guix-git/doc/guix.texi:14251
  20500. #, no-wrap
  20501. msgid "LUKS"
  20502. msgstr ""
  20503. #. type: Plain text
  20504. #: guix-git/doc/guix.texi:14259
  20505. 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})."
  20506. msgstr ""
  20507. #. type: lisp
  20508. #: guix-git/doc/guix.texi:14265
  20509. #, no-wrap
  20510. msgid ""
  20511. "(mapped-device\n"
  20512. " (source \"/dev/sda3\")\n"
  20513. " (target \"home\")\n"
  20514. " (type luks-device-mapping))\n"
  20515. msgstr ""
  20516. #. type: Plain text
  20517. #: guix-git/doc/guix.texi:14270
  20518. 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:"
  20519. msgstr ""
  20520. #. type: example
  20521. #: guix-git/doc/guix.texi:14273
  20522. #, no-wrap
  20523. msgid "cryptsetup luksUUID /dev/sda3\n"
  20524. msgstr ""
  20525. #. type: Plain text
  20526. #: guix-git/doc/guix.texi:14276
  20527. msgid "and use it as follows:"
  20528. msgstr ""
  20529. #. type: lisp
  20530. #: guix-git/doc/guix.texi:14282
  20531. #, no-wrap
  20532. msgid ""
  20533. "(mapped-device\n"
  20534. " (source (uuid \"cb67fc72-0d54-4c88-9d4b-b225f30b0f44\"))\n"
  20535. " (target \"home\")\n"
  20536. " (type luks-device-mapping))\n"
  20537. msgstr ""
  20538. #. type: cindex
  20539. #: guix-git/doc/guix.texi:14284
  20540. #, no-wrap
  20541. msgid "swap encryption"
  20542. msgstr ""
  20543. #. type: Plain text
  20544. #: guix-git/doc/guix.texi:14290
  20545. 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."
  20546. msgstr ""
  20547. #. type: Plain text
  20548. #: guix-git/doc/guix.texi:14293
  20549. msgid "A RAID device formed of the partitions @file{/dev/sda1} and @file{/dev/sdb1} may be declared as follows:"
  20550. msgstr ""
  20551. #. type: lisp
  20552. #: guix-git/doc/guix.texi:14299
  20553. #, no-wrap
  20554. msgid ""
  20555. "(mapped-device\n"
  20556. " (source (list \"/dev/sda1\" \"/dev/sdb1\"))\n"
  20557. " (target \"/dev/md0\")\n"
  20558. " (type raid-device-mapping))\n"
  20559. msgstr ""
  20560. #. type: Plain text
  20561. #: guix-git/doc/guix.texi:14306
  20562. 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."
  20563. msgstr ""
  20564. #. type: Plain text
  20565. #: guix-git/doc/guix.texi:14309
  20566. msgid "LVM logical volumes ``alpha'' and ``beta'' from volume group ``vg0'' can be declared as follows:"
  20567. msgstr ""
  20568. #. type: lisp
  20569. #: guix-git/doc/guix.texi:14315
  20570. #, no-wrap
  20571. msgid ""
  20572. "(mapped-device\n"
  20573. " (source \"vg0\")\n"
  20574. " (targets (list \"vg0-alpha\" \"vg0-beta\"))\n"
  20575. " (type lvm-device-mapping))\n"
  20576. msgstr ""
  20577. #. type: Plain text
  20578. #: guix-git/doc/guix.texi:14320
  20579. 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})."
  20580. msgstr ""
  20581. #. type: cindex
  20582. #: guix-git/doc/guix.texi:14324
  20583. #, no-wrap
  20584. msgid "users"
  20585. msgstr ""
  20586. #. type: cindex
  20587. #: guix-git/doc/guix.texi:14325
  20588. #, no-wrap
  20589. msgid "accounts"
  20590. msgstr ""
  20591. #. type: cindex
  20592. #: guix-git/doc/guix.texi:14326
  20593. #, no-wrap
  20594. msgid "user accounts"
  20595. msgstr ""
  20596. #. type: Plain text
  20597. #: guix-git/doc/guix.texi:14330
  20598. 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:"
  20599. msgstr ""
  20600. #. type: lisp
  20601. #: guix-git/doc/guix.texi:14340
  20602. #, no-wrap
  20603. msgid ""
  20604. "(user-account\n"
  20605. " (name \"alice\")\n"
  20606. " (group \"users\")\n"
  20607. " (supplementary-groups '(\"wheel\" ;allow use of sudo, etc.\n"
  20608. " \"audio\" ;sound card\n"
  20609. " \"video\" ;video devices such as webcams\n"
  20610. " \"cdrom\")) ;the good ol' CD-ROM\n"
  20611. " (comment \"Bob's sister\"))\n"
  20612. msgstr ""
  20613. #. type: Plain text
  20614. #: guix-git/doc/guix.texi:14344
  20615. msgid "Here's a user account that uses a different shell and a custom home directory (the default would be @file{\"/home/bob\"}):"
  20616. msgstr ""
  20617. #. type: lisp
  20618. #: guix-git/doc/guix.texi:14352
  20619. #, no-wrap
  20620. msgid ""
  20621. "(user-account\n"
  20622. " (name \"bob\")\n"
  20623. " (group \"users\")\n"
  20624. " (comment \"Alice's bro\")\n"
  20625. " (shell (file-append zsh \"/bin/zsh\"))\n"
  20626. " (home-directory \"/home/robert\"))\n"
  20627. msgstr ""
  20628. #. type: Plain text
  20629. #: guix-git/doc/guix.texi:14361
  20630. 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."
  20631. msgstr ""
  20632. #. type: deftp
  20633. #: guix-git/doc/guix.texi:14362
  20634. #, no-wrap
  20635. msgid "{Data Type} user-account"
  20636. msgstr ""
  20637. #. type: deftp
  20638. #: guix-git/doc/guix.texi:14365
  20639. msgid "Objects of this type represent user accounts. The following members may be specified:"
  20640. msgstr ""
  20641. #. type: table
  20642. #: guix-git/doc/guix.texi:14369
  20643. msgid "The name of the user account."
  20644. msgstr ""
  20645. #. type: itemx
  20646. #: guix-git/doc/guix.texi:14370 guix-git/doc/guix.texi:32184
  20647. #, no-wrap
  20648. msgid "group"
  20649. msgstr ""
  20650. #. type: cindex
  20651. #: guix-git/doc/guix.texi:14371 guix-git/doc/guix.texi:14450
  20652. #, no-wrap
  20653. msgid "groups"
  20654. msgstr ""
  20655. #. type: table
  20656. #: guix-git/doc/guix.texi:14374
  20657. msgid "This is the name (a string) or identifier (a number) of the user group this account belongs to."
  20658. msgstr ""
  20659. #. type: item
  20660. #: guix-git/doc/guix.texi:14375
  20661. #, no-wrap
  20662. msgid "@code{supplementary-groups} (default: @code{'()})"
  20663. msgstr ""
  20664. #. type: table
  20665. #: guix-git/doc/guix.texi:14378
  20666. msgid "Optionally, this can be defined as a list of group names that this account belongs to."
  20667. msgstr ""
  20668. #. type: item
  20669. #: guix-git/doc/guix.texi:14379
  20670. #, no-wrap
  20671. msgid "@code{uid} (default: @code{#f})"
  20672. msgstr ""
  20673. #. type: table
  20674. #: guix-git/doc/guix.texi:14383
  20675. 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."
  20676. msgstr ""
  20677. #. type: item
  20678. #: guix-git/doc/guix.texi:14384
  20679. #, no-wrap
  20680. msgid "@code{comment} (default: @code{\"\"})"
  20681. msgstr ""
  20682. #. type: table
  20683. #: guix-git/doc/guix.texi:14386
  20684. msgid "A comment about the account, such as the account owner's full name."
  20685. msgstr ""
  20686. #. type: code{#1}
  20687. #: guix-git/doc/guix.texi:14387
  20688. #, no-wrap
  20689. msgid "home-directory"
  20690. msgstr ""
  20691. #. type: table
  20692. #: guix-git/doc/guix.texi:14389
  20693. msgid "This is the name of the home directory for the account."
  20694. msgstr ""
  20695. #. type: item
  20696. #: guix-git/doc/guix.texi:14390
  20697. #, no-wrap
  20698. msgid "@code{create-home-directory?} (default: @code{#t})"
  20699. msgstr ""
  20700. #. type: table
  20701. #: guix-git/doc/guix.texi:14393
  20702. msgid "Indicates whether the home directory of this account should be created if it does not exist yet."
  20703. msgstr ""
  20704. #. type: item
  20705. #: guix-git/doc/guix.texi:14394
  20706. #, no-wrap
  20707. msgid "@code{shell} (default: Bash)"
  20708. msgstr ""
  20709. #. type: table
  20710. #: guix-git/doc/guix.texi:14398
  20711. 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:"
  20712. msgstr ""
  20713. #. type: lisp
  20714. #: guix-git/doc/guix.texi:14401
  20715. #, no-wrap
  20716. msgid "(file-append bash \"/bin/bash\")\n"
  20717. msgstr ""
  20718. #. type: table
  20719. #: guix-git/doc/guix.texi:14405
  20720. msgid "... and to the Zsh executable like that:"
  20721. msgstr ""
  20722. #. type: lisp
  20723. #: guix-git/doc/guix.texi:14408
  20724. #, no-wrap
  20725. msgid "(file-append zsh \"/bin/zsh\")\n"
  20726. msgstr ""
  20727. #. type: item
  20728. #: guix-git/doc/guix.texi:14410 guix-git/doc/guix.texi:14468
  20729. #, no-wrap
  20730. msgid "@code{system?} (default: @code{#f})"
  20731. msgstr ""
  20732. #. type: table
  20733. #: guix-git/doc/guix.texi:14414
  20734. 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."
  20735. msgstr ""
  20736. #. type: anchor{#1}
  20737. #: guix-git/doc/guix.texi:14416
  20738. msgid "user-account-password"
  20739. msgstr ""
  20740. #. type: cindex
  20741. #: guix-git/doc/guix.texi:14416
  20742. #, no-wrap
  20743. msgid "password, for user accounts"
  20744. msgstr ""
  20745. #. type: item
  20746. #: guix-git/doc/guix.texi:14417 guix-git/doc/guix.texi:14472
  20747. #, no-wrap
  20748. msgid "@code{password} (default: @code{#f})"
  20749. msgstr ""
  20750. #. type: table
  20751. #: guix-git/doc/guix.texi:14423
  20752. 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."
  20753. msgstr ""
  20754. #. type: table
  20755. #: guix-git/doc/guix.texi:14427
  20756. 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:"
  20757. msgstr ""
  20758. #. type: lisp
  20759. #: guix-git/doc/guix.texi:14432
  20760. #, no-wrap
  20761. msgid ""
  20762. "(user-account\n"
  20763. " (name \"charlie\")\n"
  20764. " (group \"users\")\n"
  20765. "\n"
  20766. msgstr ""
  20767. #. type: lisp
  20768. #: guix-git/doc/guix.texi:14435
  20769. #, no-wrap
  20770. msgid ""
  20771. " ;; Specify a SHA-512-hashed initial password.\n"
  20772. " (password (crypt \"InitialPassword!\" \"$6$abc\")))\n"
  20773. msgstr ""
  20774. #. type: quotation
  20775. #: guix-git/doc/guix.texi:14441
  20776. 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."
  20777. msgstr ""
  20778. #. type: table
  20779. #: guix-git/doc/guix.texi:14446
  20780. 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."
  20781. msgstr ""
  20782. #. type: Plain text
  20783. #: guix-git/doc/guix.texi:14452
  20784. msgid "User group declarations are even simpler:"
  20785. msgstr ""
  20786. #. type: lisp
  20787. #: guix-git/doc/guix.texi:14455
  20788. #, no-wrap
  20789. msgid "(user-group (name \"students\"))\n"
  20790. msgstr ""
  20791. #. type: deftp
  20792. #: guix-git/doc/guix.texi:14457
  20793. #, no-wrap
  20794. msgid "{Data Type} user-group"
  20795. msgstr ""
  20796. #. type: deftp
  20797. #: guix-git/doc/guix.texi:14459
  20798. msgid "This type is for, well, user groups. There are just a few fields:"
  20799. msgstr ""
  20800. #. type: table
  20801. #: guix-git/doc/guix.texi:14463
  20802. msgid "The name of the group."
  20803. msgstr ""
  20804. #. type: item
  20805. #: guix-git/doc/guix.texi:14464 guix-git/doc/guix.texi:28988
  20806. #, no-wrap
  20807. msgid "@code{id} (default: @code{#f})"
  20808. msgstr ""
  20809. #. type: table
  20810. #: guix-git/doc/guix.texi:14467
  20811. msgid "The group identifier (a number). If @code{#f}, a new number is automatically allocated when the group is created."
  20812. msgstr ""
  20813. #. type: table
  20814. #: guix-git/doc/guix.texi:14471
  20815. msgid "This Boolean value indicates whether the group is a ``system'' group. System groups have low numerical IDs."
  20816. msgstr ""
  20817. #. type: table
  20818. #: guix-git/doc/guix.texi:14475
  20819. msgid "What, user groups can have a password? Well, apparently yes. Unless @code{#f}, this field specifies the password of the group."
  20820. msgstr ""
  20821. #. type: Plain text
  20822. #: guix-git/doc/guix.texi:14481
  20823. msgid "For convenience, a variable lists all the basic user groups one may expect:"
  20824. msgstr ""
  20825. #. type: defvr
  20826. #: guix-git/doc/guix.texi:14482
  20827. #, no-wrap
  20828. msgid "{Scheme Variable} %base-groups"
  20829. msgstr ""
  20830. #. type: defvr
  20831. #: guix-git/doc/guix.texi:14487
  20832. 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''."
  20833. msgstr ""
  20834. #. type: defvr
  20835. #: guix-git/doc/guix.texi:14489
  20836. #, no-wrap
  20837. msgid "{Scheme Variable} %base-user-accounts"
  20838. msgstr ""
  20839. #. type: defvr
  20840. #: guix-git/doc/guix.texi:14492
  20841. 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."
  20842. msgstr ""
  20843. #. type: defvr
  20844. #: guix-git/doc/guix.texi:14495
  20845. 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."
  20846. msgstr ""
  20847. #. type: cindex
  20848. #: guix-git/doc/guix.texi:14501
  20849. #, no-wrap
  20850. msgid "keymap"
  20851. msgstr ""
  20852. #. type: Plain text
  20853. #: guix-git/doc/guix.texi:14509
  20854. 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."
  20855. msgstr ""
  20856. #. type: cindex
  20857. #: guix-git/doc/guix.texi:14510
  20858. #, no-wrap
  20859. msgid "keyboard layout, definition"
  20860. msgstr ""
  20861. #. type: Plain text
  20862. #: guix-git/doc/guix.texi:14512
  20863. msgid "There are three components that will want to know about your keyboard layout:"
  20864. msgstr ""
  20865. #. type: itemize
  20866. #: guix-git/doc/guix.texi:14519
  20867. 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."
  20868. msgstr ""
  20869. #. type: itemize
  20870. #: guix-git/doc/guix.texi:14524
  20871. msgid "The @emph{operating system kernel}, Linux, will need that so that the console is properly configured (@pxref{operating-system Reference, @code{keyboard-layout}})."
  20872. msgstr ""
  20873. #. type: itemize
  20874. #: guix-git/doc/guix.texi:14528
  20875. msgid "The @emph{graphical display server}, usually Xorg, also has its own idea of the keyboard layout (@pxref{X Window, @code{keyboard-layout}})."
  20876. msgstr ""
  20877. #. type: Plain text
  20878. #: guix-git/doc/guix.texi:14532
  20879. msgid "Guix allows you to configure all three separately but, fortunately, it allows you to share the same keyboard layout for all three components."
  20880. msgstr ""
  20881. #. type: cindex
  20882. #: guix-git/doc/guix.texi:14533
  20883. #, no-wrap
  20884. msgid "XKB, keyboard layouts"
  20885. msgstr ""
  20886. #. type: Plain text
  20887. #: guix-git/doc/guix.texi:14541
  20888. 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."
  20889. msgstr ""
  20890. #. type: deffn
  20891. #: guix-git/doc/guix.texi:14542
  20892. #, no-wrap
  20893. msgid "{Scheme Procedure} keyboard-layout @var{name} [@var{variant}] @"
  20894. msgstr ""
  20895. #. type: deffn
  20896. #: guix-git/doc/guix.texi:14545
  20897. msgid "[#:model] [#:options '()] Return a new keyboard layout with the given @var{name} and @var{variant}."
  20898. msgstr ""
  20899. #. type: deffn
  20900. #: guix-git/doc/guix.texi:14549
  20901. 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."
  20902. msgstr ""
  20903. #. type: Plain text
  20904. #: guix-git/doc/guix.texi:14552
  20905. msgid "Here are a few examples:"
  20906. msgstr ""
  20907. #. type: lisp
  20908. #: guix-git/doc/guix.texi:14557
  20909. #, no-wrap
  20910. msgid ""
  20911. ";; The German QWERTZ layout. Here we assume a standard\n"
  20912. ";; \"pc105\" keyboard model.\n"
  20913. "(keyboard-layout \"de\")\n"
  20914. "\n"
  20915. msgstr ""
  20916. #. type: lisp
  20917. #: guix-git/doc/guix.texi:14560
  20918. #, no-wrap
  20919. msgid ""
  20920. ";; The bépo variant of the French layout.\n"
  20921. "(keyboard-layout \"fr\" \"bepo\")\n"
  20922. "\n"
  20923. msgstr ""
  20924. #. type: lisp
  20925. #: guix-git/doc/guix.texi:14563
  20926. #, no-wrap
  20927. msgid ""
  20928. ";; The Catalan layout.\n"
  20929. "(keyboard-layout \"es\" \"cat\")\n"
  20930. "\n"
  20931. msgstr ""
  20932. #. type: lisp
  20933. #: guix-git/doc/guix.texi:14566
  20934. #, no-wrap
  20935. msgid ""
  20936. ";; Arabic layout with \"Alt-Shift\" to switch to US layout.\n"
  20937. "(keyboard-layout \"ar,us\" #:options '(\"grp:alt_shift_toggle\"))\n"
  20938. "\n"
  20939. msgstr ""
  20940. #. type: lisp
  20941. #: guix-git/doc/guix.texi:14573
  20942. #, no-wrap
  20943. msgid ""
  20944. ";; The Latin American Spanish layout. In addition, the\n"
  20945. ";; \"Caps Lock\" key is used as an additional \"Ctrl\" key,\n"
  20946. ";; and the \"Menu\" key is used as a \"Compose\" key to enter\n"
  20947. ";; accented letters.\n"
  20948. "(keyboard-layout \"latam\"\n"
  20949. " #:options '(\"ctrl:nocaps\" \"compose:menu\"))\n"
  20950. "\n"
  20951. msgstr ""
  20952. #. type: lisp
  20953. #: guix-git/doc/guix.texi:14576
  20954. #, no-wrap
  20955. msgid ""
  20956. ";; The Russian layout for a ThinkPad keyboard.\n"
  20957. "(keyboard-layout \"ru\" #:model \"thinkpad\")\n"
  20958. "\n"
  20959. msgstr ""
  20960. #. type: lisp
  20961. #: guix-git/doc/guix.texi:14581
  20962. #, no-wrap
  20963. msgid ""
  20964. ";; The \"US international\" layout, which is the US layout plus\n"
  20965. ";; dead keys to enter accented characters. This is for an\n"
  20966. ";; Apple MacBook keyboard.\n"
  20967. "(keyboard-layout \"us\" \"intl\" #:model \"macbook78\")\n"
  20968. msgstr ""
  20969. #. type: Plain text
  20970. #: guix-git/doc/guix.texi:14585
  20971. msgid "See the @file{share/X11/xkb} directory of the @code{xkeyboard-config} package for a complete list of supported layouts, variants, and models."
  20972. msgstr ""
  20973. #. type: cindex
  20974. #: guix-git/doc/guix.texi:14586
  20975. #, no-wrap
  20976. msgid "keyboard layout, configuration"
  20977. msgstr ""
  20978. #. type: Plain text
  20979. #: guix-git/doc/guix.texi:14590
  20980. 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:"
  20981. msgstr ""
  20982. #. type: findex
  20983. #: guix-git/doc/guix.texi:14591
  20984. #, no-wrap
  20985. msgid "set-xorg-configuration"
  20986. msgstr ""
  20987. #. type: lisp
  20988. #: guix-git/doc/guix.texi:14595
  20989. #, no-wrap
  20990. msgid ""
  20991. ";; Using the Turkish layout for the bootloader, the console,\n"
  20992. ";; and for Xorg.\n"
  20993. "\n"
  20994. msgstr ""
  20995. #. type: lisp
  20996. #: guix-git/doc/guix.texi:14607
  20997. #, no-wrap
  20998. msgid ""
  20999. "(operating-system\n"
  21000. " ;; ...\n"
  21001. " (keyboard-layout (keyboard-layout \"tr\")) ;for the console\n"
  21002. " (bootloader (bootloader-configuration\n"
  21003. " (bootloader grub-efi-bootloader)\n"
  21004. " (target \"/boot/efi\")\n"
  21005. " (keyboard-layout keyboard-layout))) ;for GRUB\n"
  21006. " (services (cons (set-xorg-configuration\n"
  21007. " (xorg-configuration ;for Xorg\n"
  21008. " (keyboard-layout keyboard-layout)))\n"
  21009. " %desktop-services)))\n"
  21010. msgstr ""
  21011. #. type: Plain text
  21012. #: guix-git/doc/guix.texi:14614
  21013. 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."
  21014. msgstr ""
  21015. #. type: Plain text
  21016. #: guix-git/doc/guix.texi:14617
  21017. 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:"
  21018. msgstr ""
  21019. #. type: itemize
  21020. #: guix-git/doc/guix.texi:14622
  21021. msgid "If you're using GNOME, its settings panel has a ``Region & Language'' entry where you can select one or more keyboard layouts."
  21022. msgstr ""
  21023. #. type: itemize
  21024. #: guix-git/doc/guix.texi:14627
  21025. 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:"
  21026. msgstr ""
  21027. #. type: example
  21028. #: guix-git/doc/guix.texi:14630
  21029. #, no-wrap
  21030. msgid "setxkbmap us dvorak\n"
  21031. msgstr ""
  21032. #. type: itemize
  21033. #: guix-git/doc/guix.texi:14637
  21034. 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:"
  21035. msgstr ""
  21036. #. type: example
  21037. #: guix-git/doc/guix.texi:14640
  21038. #, no-wrap
  21039. msgid "loadkeys fr-bepo\n"
  21040. msgstr ""
  21041. #. type: cindex
  21042. #: guix-git/doc/guix.texi:14646
  21043. #, no-wrap
  21044. msgid "locale"
  21045. msgstr ""
  21046. #. type: Plain text
  21047. #: guix-git/doc/guix.texi:14653
  21048. 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."
  21049. msgstr ""
  21050. #. type: cindex
  21051. #: guix-git/doc/guix.texi:14654
  21052. #, no-wrap
  21053. msgid "locale definition"
  21054. msgstr ""
  21055. #. type: Plain text
  21056. #: guix-git/doc/guix.texi:14658
  21057. 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}})."
  21058. msgstr ""
  21059. #. type: Plain text
  21060. #: guix-git/doc/guix.texi:14667
  21061. 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."
  21062. msgstr ""
  21063. #. type: Plain text
  21064. #: guix-git/doc/guix.texi:14670
  21065. msgid "For instance, to add the North Frisian locale for Germany, the value of that field may be:"
  21066. msgstr ""
  21067. #. type: lisp
  21068. #: guix-git/doc/guix.texi:14675
  21069. #, no-wrap
  21070. msgid ""
  21071. "(cons (locale-definition\n"
  21072. " (name \"fy_DE.utf8\") (source \"fy_DE\"))\n"
  21073. " %default-locale-definitions)\n"
  21074. msgstr ""
  21075. #. type: Plain text
  21076. #: guix-git/doc/guix.texi:14679
  21077. msgid "Likewise, to save space, one might want @code{locale-definitions} to list only the locales that are actually used, as in:"
  21078. msgstr ""
  21079. #. type: lisp
  21080. #: guix-git/doc/guix.texi:14684
  21081. #, no-wrap
  21082. msgid ""
  21083. "(list (locale-definition\n"
  21084. " (name \"ja_JP.eucjp\") (source \"ja_JP\")\n"
  21085. " (charset \"EUC-JP\")))\n"
  21086. msgstr ""
  21087. #. type: Plain text
  21088. #: guix-git/doc/guix.texi:14693
  21089. 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})."
  21090. msgstr ""
  21091. #. type: Plain text
  21092. #: guix-git/doc/guix.texi:14696
  21093. msgid "The @code{locale-definition} form is provided by the @code{(gnu system locale)} module. Details are given below."
  21094. msgstr ""
  21095. #. type: deftp
  21096. #: guix-git/doc/guix.texi:14697
  21097. #, no-wrap
  21098. msgid "{Data Type} locale-definition"
  21099. msgstr ""
  21100. #. type: deftp
  21101. #: guix-git/doc/guix.texi:14699
  21102. msgid "This is the data type of a locale definition."
  21103. msgstr ""
  21104. #. type: table
  21105. #: guix-git/doc/guix.texi:14705
  21106. msgid "The name of the locale. @xref{Locale Names,,, libc, The GNU C Library Reference Manual}, for more information on locale names."
  21107. msgstr ""
  21108. #. type: table
  21109. #: guix-git/doc/guix.texi:14709
  21110. msgid "The name of the source for that locale. This is typically the @code{@var{language}_@var{territory}} part of the locale name."
  21111. msgstr ""
  21112. #. type: item
  21113. #: guix-git/doc/guix.texi:14710
  21114. #, no-wrap
  21115. msgid "@code{charset} (default: @code{\"UTF-8\"})"
  21116. msgstr ""
  21117. #. type: table
  21118. #: guix-git/doc/guix.texi:14714
  21119. msgid "The ``character set'' or ``code set'' for that locale, @uref{https://www.iana.org/assignments/character-sets, as defined by IANA}."
  21120. msgstr ""
  21121. #. type: defvr
  21122. #: guix-git/doc/guix.texi:14718
  21123. #, no-wrap
  21124. msgid "{Scheme Variable} %default-locale-definitions"
  21125. msgstr ""
  21126. #. type: defvr
  21127. #: guix-git/doc/guix.texi:14722
  21128. 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."
  21129. msgstr ""
  21130. #. type: cindex
  21131. #: guix-git/doc/guix.texi:14723
  21132. #, no-wrap
  21133. msgid "locale name"
  21134. msgstr ""
  21135. #. type: cindex
  21136. #: guix-git/doc/guix.texi:14724
  21137. #, no-wrap
  21138. msgid "normalized codeset in locale names"
  21139. msgstr ""
  21140. #. type: defvr
  21141. #: guix-git/doc/guix.texi:14730
  21142. 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}."
  21143. msgstr ""
  21144. #. type: subsection
  21145. #: guix-git/doc/guix.texi:14732
  21146. #, no-wrap
  21147. msgid "Locale Data Compatibility Considerations"
  21148. msgstr ""
  21149. #. type: cindex
  21150. #: guix-git/doc/guix.texi:14734
  21151. #, no-wrap
  21152. msgid "incompatibility, of locale data"
  21153. msgstr ""
  21154. #. type: Plain text
  21155. #: guix-git/doc/guix.texi:14741
  21156. 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."
  21157. msgstr ""
  21158. #. type: Plain text
  21159. #: guix-git/doc/guix.texi:14753
  21160. 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."
  21161. msgstr ""
  21162. #. type: Plain text
  21163. #: guix-git/doc/guix.texi:14758
  21164. 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."
  21165. msgstr ""
  21166. #. type: Plain text
  21167. #: guix-git/doc/guix.texi:14762
  21168. 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})."
  21169. msgstr ""
  21170. #. type: Plain text
  21171. #: guix-git/doc/guix.texi:14769
  21172. 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}:"
  21173. msgstr ""
  21174. #. type: lisp
  21175. #: guix-git/doc/guix.texi:14772
  21176. #, no-wrap
  21177. msgid ""
  21178. "(use-package-modules base)\n"
  21179. "\n"
  21180. msgstr ""
  21181. #. type: lisp
  21182. #: guix-git/doc/guix.texi:14776
  21183. #, no-wrap
  21184. msgid ""
  21185. "(operating-system\n"
  21186. " ;; @dots{}\n"
  21187. " (locale-libcs (list glibc-2.21 (canonical-package glibc))))\n"
  21188. msgstr ""
  21189. #. type: Plain text
  21190. #: guix-git/doc/guix.texi:14781
  21191. 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}."
  21192. msgstr ""
  21193. #. type: cindex
  21194. #: guix-git/doc/guix.texi:14786
  21195. #, no-wrap
  21196. msgid "system services"
  21197. msgstr ""
  21198. #. type: Plain text
  21199. #: guix-git/doc/guix.texi:14792
  21200. 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."
  21201. msgstr ""
  21202. #. type: Plain text
  21203. #: guix-git/doc/guix.texi:14799
  21204. 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:"
  21205. msgstr ""
  21206. #. type: example
  21207. #: guix-git/doc/guix.texi:14802
  21208. #, no-wrap
  21209. msgid "# herd status\n"
  21210. msgstr ""
  21211. #. type: Plain text
  21212. #: guix-git/doc/guix.texi:14807
  21213. 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:"
  21214. msgstr ""
  21215. #. type: example
  21216. #: guix-git/doc/guix.texi:14811
  21217. #, no-wrap
  21218. msgid ""
  21219. "# herd doc nscd\n"
  21220. "Run libc's name service cache daemon (nscd).\n"
  21221. "\n"
  21222. msgstr ""
  21223. #. type: example
  21224. #: guix-git/doc/guix.texi:14814
  21225. #, no-wrap
  21226. msgid ""
  21227. "# herd doc nscd action invalidate\n"
  21228. "invalidate: Invalidate the given cache--e.g., 'hosts' for host name lookups.\n"
  21229. msgstr ""
  21230. #. type: Plain text
  21231. #: guix-git/doc/guix.texi:14819
  21232. 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:"
  21233. msgstr ""
  21234. #. type: example
  21235. #: guix-git/doc/guix.texi:14826
  21236. #, no-wrap
  21237. msgid ""
  21238. "# herd stop nscd\n"
  21239. "Service nscd has been stopped.\n"
  21240. "# herd restart xorg-server\n"
  21241. "Service xorg-server has been stopped.\n"
  21242. "Service xorg-server has been started.\n"
  21243. msgstr ""
  21244. #. type: Plain text
  21245. #: guix-git/doc/guix.texi:14831
  21246. msgid "The following sections document the available services, starting with the core services, that may be used in an @code{operating-system} declaration."
  21247. msgstr ""
  21248. #. type: subsection
  21249. #: guix-git/doc/guix.texi:14866 guix-git/doc/guix.texi:22490
  21250. #: guix-git/doc/guix.texi:22491
  21251. #, fuzzy, no-wrap
  21252. msgid "File-Sharing Services"
  21253. msgstr "消息服务"
  21254. #. type: menuentry
  21255. #: guix-git/doc/guix.texi:14866
  21256. #, fuzzy
  21257. msgid "File-sharing services."
  21258. msgstr "消息服务。"
  21259. #. type: Plain text
  21260. #: guix-git/doc/guix.texi:14874
  21261. 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."
  21262. msgstr ""
  21263. #. type: defvr
  21264. #: guix-git/doc/guix.texi:14875
  21265. #, no-wrap
  21266. msgid "{Scheme Variable} %base-services"
  21267. msgstr ""
  21268. #. type: defvr
  21269. #: guix-git/doc/guix.texi:14881
  21270. 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."
  21271. msgstr ""
  21272. #. type: defvr
  21273. #: guix-git/doc/guix.texi:14886
  21274. 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:"
  21275. msgstr ""
  21276. #. type: lisp
  21277. #: guix-git/doc/guix.texi:14891
  21278. #, no-wrap
  21279. msgid ""
  21280. "(append (list (service avahi-service-type)\n"
  21281. " (service openssh-service-type))\n"
  21282. " %base-services)\n"
  21283. msgstr ""
  21284. #. type: defvr
  21285. #: guix-git/doc/guix.texi:14894
  21286. #, no-wrap
  21287. msgid "{Scheme Variable} special-files-service-type"
  21288. msgstr ""
  21289. #. type: defvr
  21290. #: guix-git/doc/guix.texi:14897
  21291. 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}."
  21292. msgstr ""
  21293. #. type: defvr
  21294. #: guix-git/doc/guix.texi:14901
  21295. 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:"
  21296. msgstr ""
  21297. #. type: file{#1}
  21298. #: guix-git/doc/guix.texi:14902
  21299. #, no-wrap
  21300. msgid "/bin/sh"
  21301. msgstr ""
  21302. #. type: cindex
  21303. #: guix-git/doc/guix.texi:14903
  21304. #, no-wrap
  21305. msgid "@file{sh}, in @file{/bin}"
  21306. msgstr ""
  21307. #. type: lisp
  21308. #: guix-git/doc/guix.texi:14906
  21309. #, no-wrap
  21310. msgid "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\")))\n"
  21311. msgstr ""
  21312. #. type: file{#1}
  21313. #: guix-git/doc/guix.texi:14908
  21314. #, no-wrap
  21315. msgid "/usr/bin/env"
  21316. msgstr ""
  21317. #. type: cindex
  21318. #: guix-git/doc/guix.texi:14909
  21319. #, no-wrap
  21320. msgid "@file{env}, in @file{/usr/bin}"
  21321. msgstr ""
  21322. #. type: defvr
  21323. #: guix-git/doc/guix.texi:14912
  21324. msgid "If you want to add, say, @code{/usr/bin/env} to your system, you can change it to:"
  21325. msgstr ""
  21326. #. type: lisp
  21327. #: guix-git/doc/guix.texi:14916
  21328. #, no-wrap
  21329. msgid ""
  21330. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  21331. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\")))\n"
  21332. msgstr ""
  21333. #. type: defvr
  21334. #: guix-git/doc/guix.texi:14923
  21335. 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)."
  21336. msgstr ""
  21337. #. type: deffn
  21338. #: guix-git/doc/guix.texi:14925
  21339. #, no-wrap
  21340. msgid "{Scheme Procedure} extra-special-file @var{file} @var{target}"
  21341. msgstr ""
  21342. #. type: deffn
  21343. #: guix-git/doc/guix.texi:14927
  21344. msgid "Use @var{target} as the ``special file'' @var{file}."
  21345. msgstr ""
  21346. #. type: deffn
  21347. #: guix-git/doc/guix.texi:14931
  21348. 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:"
  21349. msgstr ""
  21350. #. type: lisp
  21351. #: guix-git/doc/guix.texi:14935
  21352. #, no-wrap
  21353. msgid ""
  21354. "(extra-special-file \"/usr/bin/env\"\n"
  21355. " (file-append coreutils \"/bin/env\"))\n"
  21356. msgstr ""
  21357. #. type: deffn
  21358. #: guix-git/doc/guix.texi:14938
  21359. #, no-wrap
  21360. msgid "{Scheme Procedure} host-name-service @var{name}"
  21361. msgstr ""
  21362. #. type: deffn
  21363. #: guix-git/doc/guix.texi:14940
  21364. msgid "Return a service that sets the host name to @var{name}."
  21365. msgstr ""
  21366. #. type: defvr
  21367. #: guix-git/doc/guix.texi:14942
  21368. #, no-wrap
  21369. msgid "{Scheme Variable} console-font-service-type"
  21370. msgstr ""
  21371. #. type: defvr
  21372. #: guix-git/doc/guix.texi:14947
  21373. 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:"
  21374. msgstr ""
  21375. #. type: lisp
  21376. #: guix-git/doc/guix.texi:14956
  21377. #, no-wrap
  21378. msgid ""
  21379. "`((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  21380. " (\"tty2\" . ,(file-append\n"
  21381. " font-tamzen\n"
  21382. " \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  21383. " (\"tty3\" . ,(file-append\n"
  21384. " font-terminus\n"
  21385. " \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  21386. msgstr ""
  21387. #. type: deffn
  21388. #: guix-git/doc/guix.texi:14959
  21389. #, no-wrap
  21390. msgid "{Scheme Procedure} login-service @var{config}"
  21391. msgstr ""
  21392. #. type: deffn
  21393. #: guix-git/doc/guix.texi:14963
  21394. 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."
  21395. msgstr ""
  21396. #. type: deftp
  21397. #: guix-git/doc/guix.texi:14965
  21398. #, no-wrap
  21399. msgid "{Data Type} login-configuration"
  21400. msgstr ""
  21401. #. type: deftp
  21402. #: guix-git/doc/guix.texi:14967
  21403. msgid "This is the data type representing the configuration of login."
  21404. msgstr ""
  21405. #. type: code{#1}
  21406. #: guix-git/doc/guix.texi:14970
  21407. #, no-wrap
  21408. msgid "motd"
  21409. msgstr ""
  21410. #. type: cindex
  21411. #: guix-git/doc/guix.texi:14971
  21412. #, no-wrap
  21413. msgid "message of the day"
  21414. msgstr ""
  21415. #. type: table
  21416. #: guix-git/doc/guix.texi:14973
  21417. msgid "A file-like object containing the ``message of the day''."
  21418. msgstr ""
  21419. #. type: item
  21420. #: guix-git/doc/guix.texi:14974 guix-git/doc/guix.texi:17855
  21421. #, no-wrap
  21422. msgid "@code{allow-empty-passwords?} (default: @code{#t})"
  21423. msgstr ""
  21424. #. type: table
  21425. #: guix-git/doc/guix.texi:14977
  21426. msgid "Allow empty passwords by default so that first-time users can log in when the 'root' account has just been created."
  21427. msgstr ""
  21428. #. type: deffn
  21429. #: guix-git/doc/guix.texi:14981
  21430. #, no-wrap
  21431. msgid "{Scheme Procedure} mingetty-service @var{config}"
  21432. msgstr ""
  21433. #. type: deffn
  21434. #: guix-git/doc/guix.texi:14985
  21435. 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."
  21436. msgstr ""
  21437. #. type: deftp
  21438. #: guix-git/doc/guix.texi:14987
  21439. #, no-wrap
  21440. msgid "{Data Type} mingetty-configuration"
  21441. msgstr ""
  21442. #. type: deftp
  21443. #: guix-git/doc/guix.texi:14990
  21444. msgid "This is the data type representing the configuration of Mingetty, which provides the default implementation of virtual console log-in."
  21445. msgstr ""
  21446. #. type: code{#1}
  21447. #: guix-git/doc/guix.texi:14993 guix-git/doc/guix.texi:15032
  21448. #: guix-git/doc/guix.texi:31484
  21449. #, no-wrap
  21450. msgid "tty"
  21451. msgstr ""
  21452. #. type: table
  21453. #: guix-git/doc/guix.texi:14995
  21454. msgid "The name of the console this Mingetty runs on---e.g., @code{\"tty1\"}."
  21455. msgstr ""
  21456. #. type: item
  21457. #: guix-git/doc/guix.texi:14996 guix-git/doc/guix.texi:15061
  21458. #: guix-git/doc/guix.texi:15220
  21459. #, no-wrap
  21460. msgid "@code{auto-login} (default: @code{#f})"
  21461. msgstr ""
  21462. #. type: table
  21463. #: guix-git/doc/guix.texi:15000
  21464. 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."
  21465. msgstr ""
  21466. #. type: item
  21467. #: guix-git/doc/guix.texi:15001
  21468. #, no-wrap
  21469. msgid "@code{login-program} (default: @code{#f})"
  21470. msgstr ""
  21471. #. type: table
  21472. #: guix-git/doc/guix.texi:15005
  21473. 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."
  21474. msgstr ""
  21475. #. type: item
  21476. #: guix-git/doc/guix.texi:15006
  21477. #, no-wrap
  21478. msgid "@code{login-pause?} (default: @code{#f})"
  21479. msgstr ""
  21480. #. type: table
  21481. #: guix-git/doc/guix.texi:15009
  21482. 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."
  21483. msgstr ""
  21484. #. type: item
  21485. #: guix-git/doc/guix.texi:15010
  21486. #, fuzzy, no-wrap
  21487. msgid "@code{clear-on-logout?} (default: @code{#t})"
  21488. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  21489. #. type: table
  21490. #: guix-git/doc/guix.texi:15012
  21491. msgid "When set to @code{#t}, the screen will be cleared after logout."
  21492. msgstr ""
  21493. #. type: item
  21494. #: guix-git/doc/guix.texi:15013
  21495. #, no-wrap
  21496. msgid "@code{mingetty} (default: @var{mingetty})"
  21497. msgstr ""
  21498. #. type: table
  21499. #: guix-git/doc/guix.texi:15015
  21500. msgid "The Mingetty package to use."
  21501. msgstr ""
  21502. #. type: deffn
  21503. #: guix-git/doc/guix.texi:15019
  21504. #, no-wrap
  21505. msgid "{Scheme Procedure} agetty-service @var{config}"
  21506. msgstr ""
  21507. #. type: deffn
  21508. #: guix-git/doc/guix.texi:15023
  21509. 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."
  21510. msgstr ""
  21511. #. type: deftp
  21512. #: guix-git/doc/guix.texi:15025
  21513. #, no-wrap
  21514. msgid "{Data Type} agetty-configuration"
  21515. msgstr ""
  21516. #. type: deftp
  21517. #: guix-git/doc/guix.texi:15029
  21518. 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."
  21519. msgstr ""
  21520. #. type: table
  21521. #: guix-git/doc/guix.texi:15036
  21522. 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."
  21523. msgstr ""
  21524. #. type: table
  21525. #: guix-git/doc/guix.texi:15040
  21526. 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."
  21527. msgstr ""
  21528. #. type: table
  21529. #: guix-git/doc/guix.texi:15044
  21530. 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."
  21531. msgstr ""
  21532. #. type: table
  21533. #: guix-git/doc/guix.texi:15048
  21534. 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."
  21535. msgstr ""
  21536. #. type: item
  21537. #: guix-git/doc/guix.texi:15049 guix-git/doc/guix.texi:31645
  21538. #, no-wrap
  21539. msgid "@code{baud-rate} (default: @code{#f})"
  21540. msgstr ""
  21541. #. type: table
  21542. #: guix-git/doc/guix.texi:15052
  21543. msgid "A string containing a comma-separated list of one or more baud rates, in descending order."
  21544. msgstr ""
  21545. #. type: item
  21546. #: guix-git/doc/guix.texi:15053
  21547. #, no-wrap
  21548. msgid "@code{term} (default: @code{#f})"
  21549. msgstr ""
  21550. #. type: table
  21551. #: guix-git/doc/guix.texi:15056
  21552. msgid "A string containing the value used for the @env{TERM} environment variable."
  21553. msgstr ""
  21554. #. type: item
  21555. #: guix-git/doc/guix.texi:15057
  21556. #, no-wrap
  21557. msgid "@code{eight-bits?} (default: @code{#f})"
  21558. msgstr ""
  21559. #. type: table
  21560. #: guix-git/doc/guix.texi:15060
  21561. msgid "When @code{#t}, the tty is assumed to be 8-bit clean, and parity detection is disabled."
  21562. msgstr ""
  21563. #. type: table
  21564. #: guix-git/doc/guix.texi:15064 guix-git/doc/guix.texi:15223
  21565. 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."
  21566. msgstr ""
  21567. #. type: item
  21568. #: guix-git/doc/guix.texi:15065
  21569. #, no-wrap
  21570. msgid "@code{no-reset?} (default: @code{#f})"
  21571. msgstr ""
  21572. #. type: table
  21573. #: guix-git/doc/guix.texi:15067
  21574. msgid "When @code{#t}, don't reset terminal cflags (control modes)."
  21575. msgstr ""
  21576. #. type: item
  21577. #: guix-git/doc/guix.texi:15068
  21578. #, no-wrap
  21579. msgid "@code{host} (default: @code{#f})"
  21580. msgstr ""
  21581. #. type: table
  21582. #: guix-git/doc/guix.texi:15071
  21583. msgid "This accepts a string containing the ``login_host'', which will be written into the @file{/var/run/utmpx} file."
  21584. msgstr ""
  21585. #. type: item
  21586. #: guix-git/doc/guix.texi:15072
  21587. #, no-wrap
  21588. msgid "@code{remote?} (default: @code{#f})"
  21589. msgstr ""
  21590. #. type: table
  21591. #: guix-git/doc/guix.texi:15076
  21592. 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}."
  21593. msgstr ""
  21594. #. type: item
  21595. #: guix-git/doc/guix.texi:15077
  21596. #, no-wrap
  21597. msgid "@code{flow-control?} (default: @code{#f})"
  21598. msgstr ""
  21599. #. type: table
  21600. #: guix-git/doc/guix.texi:15079
  21601. msgid "When set to @code{#t}, enable hardware (RTS/CTS) flow control."
  21602. msgstr ""
  21603. #. type: item
  21604. #: guix-git/doc/guix.texi:15080
  21605. #, no-wrap
  21606. msgid "@code{no-issue?} (default: @code{#f})"
  21607. msgstr ""
  21608. #. type: table
  21609. #: guix-git/doc/guix.texi:15083
  21610. msgid "When set to @code{#t}, the contents of the @file{/etc/issue} file will not be displayed before presenting the login prompt."
  21611. msgstr ""
  21612. #. type: item
  21613. #: guix-git/doc/guix.texi:15084
  21614. #, no-wrap
  21615. msgid "@code{init-string} (default: @code{#f})"
  21616. msgstr ""
  21617. #. type: table
  21618. #: guix-git/doc/guix.texi:15087
  21619. 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."
  21620. msgstr ""
  21621. #. type: item
  21622. #: guix-git/doc/guix.texi:15088
  21623. #, no-wrap
  21624. msgid "@code{no-clear?} (default: @code{#f})"
  21625. msgstr ""
  21626. #. type: table
  21627. #: guix-git/doc/guix.texi:15091
  21628. msgid "When set to @code{#t}, agetty will not clear the screen before showing the login prompt."
  21629. msgstr ""
  21630. #. type: item
  21631. #: guix-git/doc/guix.texi:15092
  21632. #, no-wrap
  21633. msgid "@code{login-program} (default: (file-append shadow \"/bin/login\"))"
  21634. msgstr ""
  21635. #. type: table
  21636. #: guix-git/doc/guix.texi:15096
  21637. 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."
  21638. msgstr ""
  21639. #. type: item
  21640. #: guix-git/doc/guix.texi:15097
  21641. #, no-wrap
  21642. msgid "@code{local-line} (default: @code{#f})"
  21643. msgstr ""
  21644. #. type: table
  21645. #: guix-git/doc/guix.texi:15101
  21646. 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}."
  21647. msgstr ""
  21648. #. type: item
  21649. #: guix-git/doc/guix.texi:15102
  21650. #, no-wrap
  21651. msgid "@code{extract-baud?} (default: @code{#f})"
  21652. msgstr ""
  21653. #. type: table
  21654. #: guix-git/doc/guix.texi:15105
  21655. 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."
  21656. msgstr ""
  21657. #. type: item
  21658. #: guix-git/doc/guix.texi:15106
  21659. #, no-wrap
  21660. msgid "@code{skip-login?} (default: @code{#f})"
  21661. msgstr ""
  21662. #. type: table
  21663. #: guix-git/doc/guix.texi:15110
  21664. 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."
  21665. msgstr ""
  21666. #. type: item
  21667. #: guix-git/doc/guix.texi:15111
  21668. #, no-wrap
  21669. msgid "@code{no-newline?} (default: @code{#f})"
  21670. msgstr ""
  21671. #. type: table
  21672. #: guix-git/doc/guix.texi:15114
  21673. msgid "When set to @code{#t}, do not print a newline before printing the @file{/etc/issue} file."
  21674. msgstr ""
  21675. #. type: item
  21676. #: guix-git/doc/guix.texi:15116
  21677. #, no-wrap
  21678. msgid "@code{login-options} (default: @code{#f})"
  21679. msgstr ""
  21680. #. type: table
  21681. #: guix-git/doc/guix.texi:15121
  21682. 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."
  21683. msgstr ""
  21684. #. type: item
  21685. #: guix-git/doc/guix.texi:15122
  21686. #, no-wrap
  21687. msgid "@code{login-pause} (default: @code{#f})"
  21688. msgstr ""
  21689. #. type: table
  21690. #: guix-git/doc/guix.texi:15126
  21691. 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."
  21692. msgstr ""
  21693. #. type: item
  21694. #: guix-git/doc/guix.texi:15127
  21695. #, no-wrap
  21696. msgid "@code{chroot} (default: @code{#f})"
  21697. msgstr ""
  21698. #. type: table
  21699. #: guix-git/doc/guix.texi:15130
  21700. msgid "Change root to the specified directory. This option accepts a directory path as a string."
  21701. msgstr ""
  21702. #. type: item
  21703. #: guix-git/doc/guix.texi:15131
  21704. #, no-wrap
  21705. msgid "@code{hangup?} (default: @code{#f})"
  21706. msgstr ""
  21707. #. type: table
  21708. #: guix-git/doc/guix.texi:15134
  21709. msgid "Use the Linux system call @code{vhangup} to do a virtual hangup of the specified terminal."
  21710. msgstr ""
  21711. #. type: item
  21712. #: guix-git/doc/guix.texi:15135
  21713. #, no-wrap
  21714. msgid "@code{keep-baud?} (default: @code{#f})"
  21715. msgstr ""
  21716. #. type: table
  21717. #: guix-git/doc/guix.texi:15139
  21718. 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."
  21719. msgstr ""
  21720. #. type: item
  21721. #: guix-git/doc/guix.texi:15140
  21722. #, no-wrap
  21723. msgid "@code{timeout} (default: @code{#f})"
  21724. msgstr ""
  21725. #. type: table
  21726. #: guix-git/doc/guix.texi:15143
  21727. msgid "When set to an integer value, terminate if no user name could be read within @var{timeout} seconds."
  21728. msgstr ""
  21729. #. type: item
  21730. #: guix-git/doc/guix.texi:15144
  21731. #, no-wrap
  21732. msgid "@code{detect-case?} (default: @code{#f})"
  21733. msgstr ""
  21734. #. type: table
  21735. #: guix-git/doc/guix.texi:15150
  21736. 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."
  21737. msgstr ""
  21738. #. type: item
  21739. #: guix-git/doc/guix.texi:15151
  21740. #, no-wrap
  21741. msgid "@code{wait-cr?} (default: @code{#f})"
  21742. msgstr ""
  21743. #. type: table
  21744. #: guix-git/doc/guix.texi:15156
  21745. 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."
  21746. msgstr ""
  21747. #. type: item
  21748. #: guix-git/doc/guix.texi:15157
  21749. #, no-wrap
  21750. msgid "@code{no-hints?} (default: @code{#f})"
  21751. msgstr ""
  21752. #. type: table
  21753. #: guix-git/doc/guix.texi:15160
  21754. msgid "When set to @code{#t}, do not print hints about Num, Caps, and Scroll locks."
  21755. msgstr ""
  21756. #. type: item
  21757. #: guix-git/doc/guix.texi:15161
  21758. #, no-wrap
  21759. msgid "@code{no-hostname?} (default: @code{#f})"
  21760. msgstr ""
  21761. #. type: table
  21762. #: guix-git/doc/guix.texi:15164
  21763. msgid "By default, the hostname is printed. When this option is set to @code{#t}, no hostname will be shown at all."
  21764. msgstr ""
  21765. #. type: item
  21766. #: guix-git/doc/guix.texi:15165
  21767. #, no-wrap
  21768. msgid "@code{long-hostname?} (default: @code{#f})"
  21769. msgstr ""
  21770. #. type: table
  21771. #: guix-git/doc/guix.texi:15169
  21772. 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."
  21773. msgstr ""
  21774. #. type: item
  21775. #: guix-git/doc/guix.texi:15170
  21776. #, no-wrap
  21777. msgid "@code{erase-characters} (default: @code{#f})"
  21778. msgstr ""
  21779. #. type: table
  21780. #: guix-git/doc/guix.texi:15173
  21781. msgid "This option accepts a string of additional characters that should be interpreted as backspace when the user types their login name."
  21782. msgstr ""
  21783. #. type: item
  21784. #: guix-git/doc/guix.texi:15174
  21785. #, no-wrap
  21786. msgid "@code{kill-characters} (default: @code{#f})"
  21787. msgstr ""
  21788. #. type: table
  21789. #: guix-git/doc/guix.texi:15178
  21790. 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."
  21791. msgstr ""
  21792. #. type: item
  21793. #: guix-git/doc/guix.texi:15179
  21794. #, no-wrap
  21795. msgid "@code{chdir} (default: @code{#f})"
  21796. msgstr ""
  21797. #. type: table
  21798. #: guix-git/doc/guix.texi:15182
  21799. msgid "This option accepts, as a string, a directory path that will be changed to before login."
  21800. msgstr ""
  21801. #. type: item
  21802. #: guix-git/doc/guix.texi:15183
  21803. #, no-wrap
  21804. msgid "@code{delay} (default: @code{#f})"
  21805. msgstr ""
  21806. #. type: table
  21807. #: guix-git/doc/guix.texi:15186
  21808. msgid "This options accepts, as an integer, the number of seconds to sleep before opening the tty and displaying the login prompt."
  21809. msgstr ""
  21810. #. type: item
  21811. #: guix-git/doc/guix.texi:15187
  21812. #, no-wrap
  21813. msgid "@code{nice} (default: @code{#f})"
  21814. msgstr ""
  21815. #. type: table
  21816. #: guix-git/doc/guix.texi:15190
  21817. msgid "This option accepts, as an integer, the nice value with which to run the @command{login} program."
  21818. msgstr ""
  21819. #. type: item
  21820. #: guix-git/doc/guix.texi:15191 guix-git/doc/guix.texi:15468
  21821. #: guix-git/doc/guix.texi:16330 guix-git/doc/guix.texi:23473
  21822. #: guix-git/doc/guix.texi:24949 guix-git/doc/guix.texi:27297
  21823. #: guix-git/doc/guix.texi:28084 guix-git/doc/guix.texi:29783
  21824. #: guix-git/doc/guix.texi:31975
  21825. #, no-wrap
  21826. msgid "@code{extra-options} (default: @code{'()})"
  21827. msgstr ""
  21828. #. type: table
  21829. #: guix-git/doc/guix.texi:15194
  21830. msgid "This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings."
  21831. msgstr ""
  21832. #. type: deffn
  21833. #: guix-git/doc/guix.texi:15198
  21834. #, no-wrap
  21835. msgid "{Scheme Procedure} kmscon-service-type @var{config}"
  21836. msgstr ""
  21837. #. type: deffn
  21838. #: guix-git/doc/guix.texi:15202
  21839. 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."
  21840. msgstr ""
  21841. #. type: deftp
  21842. #: guix-git/doc/guix.texi:15204
  21843. #, no-wrap
  21844. msgid "{Data Type} kmscon-configuration"
  21845. msgstr ""
  21846. #. type: deftp
  21847. #: guix-git/doc/guix.texi:15207
  21848. msgid "This is the data type representing the configuration of Kmscon, which implements virtual console log-in."
  21849. msgstr ""
  21850. #. type: code{#1}
  21851. #: guix-git/doc/guix.texi:15210
  21852. #, no-wrap
  21853. msgid "virtual-terminal"
  21854. msgstr ""
  21855. #. type: table
  21856. #: guix-git/doc/guix.texi:15212
  21857. msgid "The name of the console this Kmscon runs on---e.g., @code{\"tty1\"}."
  21858. msgstr ""
  21859. #. type: item
  21860. #: guix-git/doc/guix.texi:15213
  21861. #, no-wrap
  21862. msgid "@code{login-program} (default: @code{#~(string-append #$shadow \"/bin/login\")})"
  21863. msgstr ""
  21864. #. type: table
  21865. #: guix-git/doc/guix.texi:15216
  21866. msgid "A gexp denoting the name of the log-in program. The default log-in program is @command{login} from the Shadow tool suite."
  21867. msgstr ""
  21868. #. type: item
  21869. #: guix-git/doc/guix.texi:15217
  21870. #, no-wrap
  21871. msgid "@code{login-arguments} (default: @code{'(\"-p\")})"
  21872. msgstr ""
  21873. #. type: table
  21874. #: guix-git/doc/guix.texi:15219
  21875. msgid "A list of arguments to pass to @command{login}."
  21876. msgstr ""
  21877. #. type: item
  21878. #: guix-git/doc/guix.texi:15224
  21879. #, no-wrap
  21880. msgid "@code{hardware-acceleration?} (default: #f)"
  21881. msgstr ""
  21882. #. type: table
  21883. #: guix-git/doc/guix.texi:15226
  21884. msgid "Whether to use hardware acceleration."
  21885. msgstr ""
  21886. #. type: item
  21887. #: guix-git/doc/guix.texi:15227
  21888. #, fuzzy, no-wrap
  21889. msgid "@code{font-engine} (default: @code{\"pango\"})"
  21890. msgstr "@code{journal-content}(默认值:@code{#f})"
  21891. #. type: table
  21892. #: guix-git/doc/guix.texi:15229
  21893. msgid "Font engine used in Kmscon."
  21894. msgstr ""
  21895. #. type: item
  21896. #: guix-git/doc/guix.texi:15230
  21897. #, fuzzy, no-wrap
  21898. msgid "@code{font-size} (default: @code{12})"
  21899. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  21900. #. type: table
  21901. #: guix-git/doc/guix.texi:15232
  21902. msgid "Font size used in Kmscon."
  21903. msgstr ""
  21904. #. type: item
  21905. #: guix-git/doc/guix.texi:15233
  21906. #, no-wrap
  21907. msgid "@code{kmscon} (default: @var{kmscon})"
  21908. msgstr ""
  21909. #. type: table
  21910. #: guix-git/doc/guix.texi:15235
  21911. msgid "The Kmscon package to use."
  21912. msgstr ""
  21913. #. type: cindex
  21914. #: guix-git/doc/guix.texi:15239
  21915. #, no-wrap
  21916. msgid "name service cache daemon"
  21917. msgstr ""
  21918. #. type: cindex
  21919. #: guix-git/doc/guix.texi:15240
  21920. #, no-wrap
  21921. msgid "nscd"
  21922. msgstr ""
  21923. #. type: deffn
  21924. #: guix-git/doc/guix.texi:15241
  21925. #, no-wrap
  21926. msgid "{Scheme Procedure} nscd-service [@var{config}] [#:glibc glibc] @"
  21927. msgstr ""
  21928. #. type: deffn
  21929. #: guix-git/doc/guix.texi:15246
  21930. 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."
  21931. msgstr ""
  21932. #. type: deffn
  21933. #: guix-git/doc/guix.texi:15248
  21934. msgid "For convenience, the Shepherd service for nscd provides the following actions:"
  21935. msgstr ""
  21936. #. type: item
  21937. #: guix-git/doc/guix.texi:15250
  21938. #, no-wrap
  21939. msgid "invalidate"
  21940. msgstr ""
  21941. #. type: cindex
  21942. #: guix-git/doc/guix.texi:15251
  21943. #, no-wrap
  21944. msgid "cache invalidation, nscd"
  21945. msgstr ""
  21946. #. type: cindex
  21947. #: guix-git/doc/guix.texi:15252
  21948. #, no-wrap
  21949. msgid "nscd, cache invalidation"
  21950. msgstr ""
  21951. #. type: table
  21952. #: guix-git/doc/guix.texi:15254
  21953. msgid "This invalidate the given cache. For instance, running:"
  21954. msgstr ""
  21955. #. type: example
  21956. #: guix-git/doc/guix.texi:15257
  21957. #, no-wrap
  21958. msgid "herd invalidate nscd hosts\n"
  21959. msgstr ""
  21960. #. type: table
  21961. #: guix-git/doc/guix.texi:15261
  21962. msgid "invalidates the host name lookup cache of nscd."
  21963. msgstr ""
  21964. #. type: item
  21965. #: guix-git/doc/guix.texi:15262
  21966. #, no-wrap
  21967. msgid "statistics"
  21968. msgstr ""
  21969. #. type: table
  21970. #: guix-git/doc/guix.texi:15265
  21971. msgid "Running @command{herd statistics nscd} displays information about nscd usage and caches."
  21972. msgstr ""
  21973. #. type: defvr
  21974. #: guix-git/doc/guix.texi:15269
  21975. #, no-wrap
  21976. msgid "{Scheme Variable} %nscd-default-configuration"
  21977. msgstr ""
  21978. #. type: defvr
  21979. #: guix-git/doc/guix.texi:15273
  21980. 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."
  21981. msgstr ""
  21982. #. type: deftp
  21983. #: guix-git/doc/guix.texi:15275
  21984. #, no-wrap
  21985. msgid "{Data Type} nscd-configuration"
  21986. msgstr ""
  21987. #. type: deftp
  21988. #: guix-git/doc/guix.texi:15278
  21989. msgid "This is the data type representing the name service cache daemon (nscd) configuration."
  21990. msgstr ""
  21991. #. type: item
  21992. #: guix-git/doc/guix.texi:15281
  21993. #, no-wrap
  21994. msgid "@code{name-services} (default: @code{'()})"
  21995. msgstr ""
  21996. #. type: table
  21997. #: guix-git/doc/guix.texi:15284
  21998. msgid "List of packages denoting @dfn{name services} that must be visible to the nscd---e.g., @code{(list @var{nss-mdns})}."
  21999. msgstr ""
  22000. #. type: item
  22001. #: guix-git/doc/guix.texi:15285
  22002. #, no-wrap
  22003. msgid "@code{glibc} (default: @var{glibc})"
  22004. msgstr ""
  22005. #. type: table
  22006. #: guix-git/doc/guix.texi:15288
  22007. msgid "Package object denoting the GNU C Library providing the @command{nscd} command."
  22008. msgstr ""
  22009. #. type: item
  22010. #: guix-git/doc/guix.texi:15289
  22011. #, no-wrap
  22012. msgid "@code{log-file} (default: @code{\"/var/log/nscd.log\"})"
  22013. msgstr ""
  22014. #. type: table
  22015. #: guix-git/doc/guix.texi:15292
  22016. msgid "Name of the nscd log file. This is where debugging output goes when @code{debug-level} is strictly positive."
  22017. msgstr ""
  22018. #. type: item
  22019. #: guix-git/doc/guix.texi:15293
  22020. #, no-wrap
  22021. msgid "@code{debug-level} (default: @code{0})"
  22022. msgstr ""
  22023. #. type: table
  22024. #: guix-git/doc/guix.texi:15296
  22025. msgid "Integer denoting the debugging levels. Higher numbers mean that more debugging output is logged."
  22026. msgstr ""
  22027. #. type: item
  22028. #: guix-git/doc/guix.texi:15297
  22029. #, fuzzy, no-wrap
  22030. msgid "@code{caches} (default: @code{%nscd-default-caches})"
  22031. msgstr "@code{xfce}(默认值:@code{xfce})"
  22032. #. type: table
  22033. #: guix-git/doc/guix.texi:15300
  22034. msgid "List of @code{<nscd-cache>} objects denoting things to be cached; see below."
  22035. msgstr ""
  22036. #. type: deftp
  22037. #: guix-git/doc/guix.texi:15304
  22038. #, no-wrap
  22039. msgid "{Data Type} nscd-cache"
  22040. msgstr ""
  22041. #. type: deftp
  22042. #: guix-git/doc/guix.texi:15306
  22043. msgid "Data type representing a cache database of nscd and its parameters."
  22044. msgstr ""
  22045. #. type: cindex
  22046. #: guix-git/doc/guix.texi:15309 guix-git/doc/guix.texi:19637
  22047. #, no-wrap
  22048. msgid "database"
  22049. msgstr ""
  22050. #. type: table
  22051. #: guix-git/doc/guix.texi:15314
  22052. 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})."
  22053. msgstr ""
  22054. #. type: code{#1}
  22055. #: guix-git/doc/guix.texi:15315
  22056. #, no-wrap
  22057. msgid "positive-time-to-live"
  22058. msgstr ""
  22059. #. type: itemx
  22060. #: guix-git/doc/guix.texi:15316
  22061. #, no-wrap
  22062. msgid "@code{negative-time-to-live} (default: @code{20})"
  22063. msgstr ""
  22064. #. type: table
  22065. #: guix-git/doc/guix.texi:15319
  22066. msgid "A number representing the number of seconds during which a positive or negative lookup result remains in cache."
  22067. msgstr ""
  22068. #. type: item
  22069. #: guix-git/doc/guix.texi:15320
  22070. #, no-wrap
  22071. msgid "@code{check-files?} (default: @code{#t})"
  22072. msgstr ""
  22073. #. type: table
  22074. #: guix-git/doc/guix.texi:15323
  22075. msgid "Whether to check for updates of the files corresponding to @var{database}."
  22076. msgstr ""
  22077. #. type: table
  22078. #: guix-git/doc/guix.texi:15327
  22079. 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."
  22080. msgstr ""
  22081. #. type: item
  22082. #: guix-git/doc/guix.texi:15328
  22083. #, no-wrap
  22084. msgid "@code{persistent?} (default: @code{#t})"
  22085. msgstr ""
  22086. #. type: table
  22087. #: guix-git/doc/guix.texi:15330
  22088. msgid "Whether the cache should be stored persistently on disk."
  22089. msgstr ""
  22090. #. type: item
  22091. #: guix-git/doc/guix.texi:15331
  22092. #, no-wrap
  22093. msgid "@code{shared?} (default: @code{#t})"
  22094. msgstr ""
  22095. #. type: table
  22096. #: guix-git/doc/guix.texi:15333
  22097. msgid "Whether the cache should be shared among users."
  22098. msgstr ""
  22099. #. type: item
  22100. #: guix-git/doc/guix.texi:15334
  22101. #, no-wrap
  22102. msgid "@code{max-database-size} (default: 32@tie{}MiB)"
  22103. msgstr ""
  22104. #. type: table
  22105. #: guix-git/doc/guix.texi:15336
  22106. msgid "Maximum size in bytes of the database cache."
  22107. msgstr ""
  22108. #. type: defvr
  22109. #: guix-git/doc/guix.texi:15343
  22110. #, no-wrap
  22111. msgid "{Scheme Variable} %nscd-default-caches"
  22112. msgstr ""
  22113. #. type: defvr
  22114. #: guix-git/doc/guix.texi:15346
  22115. msgid "List of @code{<nscd-cache>} objects used by default by @code{nscd-configuration} (see above)."
  22116. msgstr ""
  22117. #. type: defvr
  22118. #: guix-git/doc/guix.texi:15352
  22119. 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."
  22120. msgstr ""
  22121. #. type: anchor{#1}
  22122. #: guix-git/doc/guix.texi:15355
  22123. msgid "syslog-configuration-type"
  22124. msgstr ""
  22125. #. type: cindex
  22126. #: guix-git/doc/guix.texi:15355 guix-git/doc/guix.texi:15371
  22127. #, no-wrap
  22128. msgid "syslog"
  22129. msgstr ""
  22130. #. type: cindex
  22131. #: guix-git/doc/guix.texi:15356 guix-git/doc/guix.texi:15930
  22132. #, no-wrap
  22133. msgid "logging"
  22134. msgstr ""
  22135. #. type: deftp
  22136. #: guix-git/doc/guix.texi:15357
  22137. #, no-wrap
  22138. msgid "{Data Type} syslog-configuration"
  22139. msgstr ""
  22140. #. type: deftp
  22141. #: guix-git/doc/guix.texi:15359
  22142. msgid "This data type represents the configuration of the syslog daemon."
  22143. msgstr ""
  22144. #. type: item
  22145. #: guix-git/doc/guix.texi:15361
  22146. #, no-wrap
  22147. msgid "@code{syslogd} (default: @code{#~(string-append #$inetutils \"/libexec/syslogd\")})"
  22148. msgstr ""
  22149. #. type: table
  22150. #: guix-git/doc/guix.texi:15363
  22151. msgid "The syslog daemon to use."
  22152. msgstr ""
  22153. #. type: item
  22154. #: guix-git/doc/guix.texi:15364
  22155. #, no-wrap
  22156. msgid "@code{config-file} (default: @code{%default-syslog.conf})"
  22157. msgstr ""
  22158. #. type: table
  22159. #: guix-git/doc/guix.texi:15366
  22160. msgid "The syslog configuration file to use."
  22161. msgstr ""
  22162. #. type: anchor{#1}
  22163. #: guix-git/doc/guix.texi:15371
  22164. msgid "syslog-service"
  22165. msgstr ""
  22166. #. type: deffn
  22167. #: guix-git/doc/guix.texi:15372
  22168. #, no-wrap
  22169. msgid "{Scheme Procedure} syslog-service @var{config}"
  22170. msgstr ""
  22171. #. type: deffn
  22172. #: guix-git/doc/guix.texi:15374
  22173. msgid "Return a service that runs a syslog daemon according to @var{config}."
  22174. msgstr ""
  22175. #. type: deffn
  22176. #: guix-git/doc/guix.texi:15377
  22177. msgid "@xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax."
  22178. msgstr ""
  22179. #. type: defvr
  22180. #: guix-git/doc/guix.texi:15379
  22181. #, no-wrap
  22182. msgid "{Scheme Variable} guix-service-type"
  22183. msgstr ""
  22184. #. type: defvr
  22185. #: guix-git/doc/guix.texi:15383
  22186. 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."
  22187. msgstr ""
  22188. #. type: anchor{#1}
  22189. #: guix-git/doc/guix.texi:15386
  22190. msgid "guix-configuration-type"
  22191. msgstr ""
  22192. #. type: deftp
  22193. #: guix-git/doc/guix.texi:15386
  22194. #, no-wrap
  22195. msgid "{Data Type} guix-configuration"
  22196. msgstr ""
  22197. #. type: deftp
  22198. #: guix-git/doc/guix.texi:15389
  22199. msgid "This data type represents the configuration of the Guix build daemon. @xref{Invoking guix-daemon}, for more information."
  22200. msgstr ""
  22201. #. type: item
  22202. #: guix-git/doc/guix.texi:15391
  22203. #, no-wrap
  22204. msgid "@code{guix} (default: @var{guix})"
  22205. msgstr ""
  22206. #. type: table
  22207. #: guix-git/doc/guix.texi:15393 guix-git/doc/guix.texi:15667
  22208. msgid "The Guix package to use."
  22209. msgstr ""
  22210. #. type: item
  22211. #: guix-git/doc/guix.texi:15394
  22212. #, no-wrap
  22213. msgid "@code{build-group} (default: @code{\"guixbuild\"})"
  22214. msgstr ""
  22215. #. type: table
  22216. #: guix-git/doc/guix.texi:15396
  22217. msgid "Name of the group for build user accounts."
  22218. msgstr ""
  22219. #. type: item
  22220. #: guix-git/doc/guix.texi:15397
  22221. #, no-wrap
  22222. msgid "@code{build-accounts} (default: @code{10})"
  22223. msgstr ""
  22224. #. type: table
  22225. #: guix-git/doc/guix.texi:15399
  22226. msgid "Number of build user accounts to create."
  22227. msgstr ""
  22228. #. type: item
  22229. #: guix-git/doc/guix.texi:15400
  22230. #, no-wrap
  22231. msgid "@code{authorize-key?} (default: @code{#t})"
  22232. msgstr ""
  22233. #. type: table
  22234. #: guix-git/doc/guix.texi:15405
  22235. msgid "Whether to authorize the substitute keys listed in @code{authorized-keys}---by default that of @code{@value{SUBSTITUTE-SERVER}} (@pxref{Substitutes})."
  22236. msgstr ""
  22237. #. type: table
  22238. #: guix-git/doc/guix.texi:15411
  22239. 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."
  22240. msgstr ""
  22241. #. type: quotation
  22242. #: guix-git/doc/guix.texi:15418
  22243. 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}."
  22244. msgstr ""
  22245. #. type: vindex
  22246. #: guix-git/doc/guix.texi:15420
  22247. #, no-wrap
  22248. msgid "%default-authorized-guix-keys"
  22249. msgstr ""
  22250. #. type: item
  22251. #: guix-git/doc/guix.texi:15421
  22252. #, fuzzy, no-wrap
  22253. msgid "@code{authorized-keys} (default: @code{%default-authorized-guix-keys})"
  22254. msgstr "@code{mate}(默认值:@code{mate})"
  22255. #. type: table
  22256. #: guix-git/doc/guix.texi:15426
  22257. 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}} (@pxref{Substitutes}). See @code{substitute-urls} below for an example on how to change it."
  22258. msgstr ""
  22259. #. type: item
  22260. #: guix-git/doc/guix.texi:15427
  22261. #, no-wrap
  22262. msgid "@code{use-substitutes?} (default: @code{#t})"
  22263. msgstr ""
  22264. #. type: table
  22265. #: guix-git/doc/guix.texi:15429
  22266. msgid "Whether to use substitutes."
  22267. msgstr ""
  22268. #. type: item
  22269. #: guix-git/doc/guix.texi:15430
  22270. #, fuzzy, no-wrap
  22271. msgid "@code{substitute-urls} (default: @code{%default-substitute-urls})"
  22272. msgstr "@code{mate}(默认值:@code{mate})"
  22273. #. type: table
  22274. #: guix-git/doc/guix.texi:15432
  22275. msgid "The list of URLs where to look for substitutes by default."
  22276. msgstr ""
  22277. #. type: table
  22278. #: guix-git/doc/guix.texi:15439
  22279. msgid "Suppose you would like to fetch substitutes from @code{guix.example.org} in addition to @code{@value{SUBSTITUTE-SERVER}}. 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:"
  22280. msgstr ""
  22281. #. type: lisp
  22282. #: guix-git/doc/guix.texi:15448
  22283. #, no-wrap
  22284. msgid ""
  22285. "(guix-configuration\n"
  22286. " (substitute-urls\n"
  22287. " (append (list \"https://guix.example.org\")\n"
  22288. " %default-substitute-urls))\n"
  22289. " (authorized-keys\n"
  22290. " (append (list (local-file \"./guix.example.org-key.pub\"))\n"
  22291. " %default-authorized-guix-keys)))\n"
  22292. msgstr ""
  22293. #. type: table
  22294. #: guix-git/doc/guix.texi:15453
  22295. 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."
  22296. msgstr ""
  22297. #. type: item
  22298. #: guix-git/doc/guix.texi:15454
  22299. #, no-wrap
  22300. msgid "@code{max-silent-time} (default: @code{0})"
  22301. msgstr ""
  22302. #. type: itemx
  22303. #: guix-git/doc/guix.texi:15455
  22304. #, no-wrap
  22305. msgid "@code{timeout} (default: @code{0})"
  22306. msgstr ""
  22307. #. type: table
  22308. #: guix-git/doc/guix.texi:15459
  22309. 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."
  22310. msgstr ""
  22311. #. type: item
  22312. #: guix-git/doc/guix.texi:15460
  22313. #, no-wrap
  22314. msgid "@code{log-compression} (default: @code{'bzip2})"
  22315. msgstr ""
  22316. #. type: table
  22317. #: guix-git/doc/guix.texi:15463
  22318. msgid "The type of compression used for build logs---one of @code{gzip}, @code{bzip2}, or @code{none}."
  22319. msgstr ""
  22320. #. type: item
  22321. #: guix-git/doc/guix.texi:15464
  22322. #, fuzzy, no-wrap
  22323. msgid "@code{discover?} (default: @code{#f})"
  22324. msgstr "@code{speed}(默认值:@code{1.0})"
  22325. #. type: table
  22326. #: guix-git/doc/guix.texi:15470
  22327. msgid "List of extra command-line options for @command{guix-daemon}."
  22328. msgstr ""
  22329. #. type: item
  22330. #: guix-git/doc/guix.texi:15471
  22331. #, no-wrap
  22332. msgid "@code{log-file} (default: @code{\"/var/log/guix-daemon.log\"})"
  22333. msgstr ""
  22334. #. type: table
  22335. #: guix-git/doc/guix.texi:15474
  22336. msgid "File where @command{guix-daemon}'s standard output and standard error are written."
  22337. msgstr ""
  22338. #. type: cindex
  22339. #: guix-git/doc/guix.texi:15475
  22340. #, no-wrap
  22341. msgid "HTTP proxy, for @code{guix-daemon}"
  22342. msgstr ""
  22343. #. type: cindex
  22344. #: guix-git/doc/guix.texi:15476
  22345. #, no-wrap
  22346. msgid "proxy, for @code{guix-daemon} HTTP access"
  22347. msgstr ""
  22348. #. type: item
  22349. #: guix-git/doc/guix.texi:15477
  22350. #, no-wrap
  22351. msgid "@code{http-proxy} (default: @code{#f})"
  22352. msgstr ""
  22353. #. type: table
  22354. #: guix-git/doc/guix.texi:15480
  22355. msgid "The URL of the HTTP and HTTPS proxy used for downloading fixed-output derivations and substitutes."
  22356. msgstr ""
  22357. #. type: table
  22358. #: guix-git/doc/guix.texi:15483
  22359. msgid "It is also possible to change the daemon's proxy at run time through the @code{set-http-proxy} action, which restarts it:"
  22360. msgstr ""
  22361. #. type: example
  22362. #: guix-git/doc/guix.texi:15486
  22363. #, no-wrap
  22364. msgid "herd set-http-proxy guix-daemon http://localhost:8118\n"
  22365. msgstr ""
  22366. #. type: table
  22367. #: guix-git/doc/guix.texi:15489
  22368. msgid "To clear the proxy settings, run:"
  22369. msgstr ""
  22370. #. type: example
  22371. #: guix-git/doc/guix.texi:15492
  22372. #, fuzzy, no-wrap
  22373. msgid "herd set-http-proxy guix-daemon\n"
  22374. msgstr "安全,guix-daemon"
  22375. #. type: item
  22376. #: guix-git/doc/guix.texi:15494
  22377. #, no-wrap
  22378. msgid "@code{tmpdir} (default: @code{#f})"
  22379. msgstr ""
  22380. #. type: table
  22381. #: guix-git/doc/guix.texi:15496
  22382. msgid "A directory path where the @command{guix-daemon} will perform builds."
  22383. msgstr ""
  22384. #. type: deffn
  22385. #: guix-git/doc/guix.texi:15500
  22386. #, no-wrap
  22387. msgid "{Scheme Procedure} udev-service [#:udev @var{eudev} #:rules @code{'()}]"
  22388. msgstr ""
  22389. #. type: deffn
  22390. #: guix-git/doc/guix.texi:15506
  22391. 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."
  22392. msgstr ""
  22393. #. type: deffn
  22394. #: guix-git/doc/guix.texi:15509
  22395. msgid "The @command{herd rules udev} command, as root, returns the name of the directory containing all the active udev rules."
  22396. msgstr ""
  22397. #. type: deffn
  22398. #: guix-git/doc/guix.texi:15511
  22399. #, no-wrap
  22400. msgid "{Scheme Procedure} udev-rule [@var{file-name} @var{contents}]"
  22401. msgstr ""
  22402. #. type: deffn
  22403. #: guix-git/doc/guix.texi:15514
  22404. msgid "Return a udev-rule file named @var{file-name} containing the rules defined by the @var{contents} literal."
  22405. msgstr ""
  22406. #. type: deffn
  22407. #: guix-git/doc/guix.texi:15518
  22408. 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."
  22409. msgstr ""
  22410. #. type: lisp
  22411. #: guix-git/doc/guix.texi:15526
  22412. #, no-wrap
  22413. msgid ""
  22414. "(define %example-udev-rule\n"
  22415. " (udev-rule\n"
  22416. " \"90-usb-thing.rules\"\n"
  22417. " (string-append \"ACTION==\\\"add\\\", SUBSYSTEM==\\\"usb\\\", \"\n"
  22418. " \"ATTR@{product@}==\\\"Example\\\", \"\n"
  22419. " \"RUN+=\\\"/path/to/script\\\"\")))\n"
  22420. msgstr ""
  22421. #. type: deffn
  22422. #: guix-git/doc/guix.texi:15529
  22423. #, no-wrap
  22424. msgid "{Scheme Procedure} udev-rules-service [@var{name} @var{rules}] @"
  22425. msgstr ""
  22426. #. type: deffn
  22427. #: guix-git/doc/guix.texi:15536
  22428. 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."
  22429. msgstr ""
  22430. #. type: deffn
  22431. #: guix-git/doc/guix.texi:15539
  22432. msgid "Here we show how it can be used to extend @code{udev-service-type} with the previously defined rule @code{%example-udev-rule}."
  22433. msgstr ""
  22434. #. type: lisp
  22435. #: guix-git/doc/guix.texi:15546
  22436. #, no-wrap
  22437. msgid ""
  22438. "(operating-system\n"
  22439. " ;; @dots{}\n"
  22440. " (services\n"
  22441. " (cons (udev-rules-service 'usb-thing %example-udev-rule)\n"
  22442. " %desktop-services)))\n"
  22443. msgstr ""
  22444. #. type: deffn
  22445. #: guix-git/doc/guix.texi:15549
  22446. #, no-wrap
  22447. msgid "{Scheme Procedure} file->udev-rule [@var{file-name} @var{file}]"
  22448. msgstr ""
  22449. #. type: deffn
  22450. #: guix-git/doc/guix.texi:15552
  22451. msgid "Return a udev file named @var{file-name} containing the rules defined within @var{file}, a file-like object."
  22452. msgstr ""
  22453. #. type: deffn
  22454. #: guix-git/doc/guix.texi:15554
  22455. msgid "The following example showcases how we can use an existing rule file."
  22456. msgstr ""
  22457. #. type: lisp
  22458. #: guix-git/doc/guix.texi:15559
  22459. #, no-wrap
  22460. msgid ""
  22461. "(use-modules (guix download) ;for url-fetch\n"
  22462. " (guix packages) ;for origin\n"
  22463. " @dots{})\n"
  22464. "\n"
  22465. msgstr ""
  22466. #. type: lisp
  22467. #: guix-git/doc/guix.texi:15570
  22468. #, no-wrap
  22469. msgid ""
  22470. "(define %android-udev-rules\n"
  22471. " (file->udev-rule\n"
  22472. " \"51-android-udev.rules\"\n"
  22473. " (let ((version \"20170910\"))\n"
  22474. " (origin\n"
  22475. " (method url-fetch)\n"
  22476. " (uri (string-append \"https://raw.githubusercontent.com/M0Rf30/\"\n"
  22477. " \"android-udev-rules/\" version \"/51-android.rules\"))\n"
  22478. " (sha256\n"
  22479. " (base32 \"0lmmagpyb6xsq6zcr2w1cyx9qmjqmajkvrdbhjx32gqf1d9is003\"))))))\n"
  22480. msgstr ""
  22481. #. type: Plain text
  22482. #: guix-git/doc/guix.texi:15579
  22483. 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."
  22484. msgstr ""
  22485. #. type: Plain text
  22486. #: guix-git/doc/guix.texi:15588
  22487. 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."
  22488. msgstr ""
  22489. #. type: lisp
  22490. #: guix-git/doc/guix.texi:15593
  22491. #, no-wrap
  22492. msgid ""
  22493. "(use-modules (gnu packages android) ;for android-udev-rules\n"
  22494. " (gnu system shadow) ;for user-group\n"
  22495. " @dots{})\n"
  22496. "\n"
  22497. msgstr ""
  22498. #. type: lisp
  22499. #: guix-git/doc/guix.texi:15606
  22500. #, no-wrap
  22501. msgid ""
  22502. "(operating-system\n"
  22503. " ;; @dots{}\n"
  22504. " (users (cons (user-account\n"
  22505. " ;; @dots{}\n"
  22506. " (supplementary-groups\n"
  22507. " '(\"adbusers\" ;for adb\n"
  22508. " \"wheel\" \"netdev\" \"audio\" \"video\")))))\n"
  22509. " ;; @dots{}\n"
  22510. " (services\n"
  22511. " (cons (udev-rules-service 'android android-udev-rules\n"
  22512. " #:groups '(\"adbusers\"))\n"
  22513. " %desktop-services)))\n"
  22514. msgstr ""
  22515. #. type: defvr
  22516. #: guix-git/doc/guix.texi:15608
  22517. #, no-wrap
  22518. msgid "{Scheme Variable} urandom-seed-service-type"
  22519. msgstr ""
  22520. #. type: defvr
  22521. #: guix-git/doc/guix.texi:15613
  22522. 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."
  22523. msgstr ""
  22524. #. type: defvr
  22525. #: guix-git/doc/guix.texi:15615
  22526. #, no-wrap
  22527. msgid "{Scheme Variable} %random-seed-file"
  22528. msgstr ""
  22529. #. type: defvr
  22530. #: guix-git/doc/guix.texi:15619
  22531. 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}."
  22532. msgstr ""
  22533. #. type: cindex
  22534. #: guix-git/doc/guix.texi:15621
  22535. #, no-wrap
  22536. msgid "mouse"
  22537. msgstr ""
  22538. #. type: cindex
  22539. #: guix-git/doc/guix.texi:15622
  22540. #, no-wrap
  22541. msgid "gpm"
  22542. msgstr ""
  22543. #. type: defvr
  22544. #: guix-git/doc/guix.texi:15623
  22545. #, no-wrap
  22546. msgid "{Scheme Variable} gpm-service-type"
  22547. msgstr ""
  22548. #. type: defvr
  22549. #: guix-git/doc/guix.texi:15628
  22550. 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."
  22551. msgstr ""
  22552. #. type: defvr
  22553. #: guix-git/doc/guix.texi:15631
  22554. 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}."
  22555. msgstr ""
  22556. #. type: deftp
  22557. #: guix-git/doc/guix.texi:15633
  22558. #, no-wrap
  22559. msgid "{Data Type} gpm-configuration"
  22560. msgstr ""
  22561. #. type: deftp
  22562. #: guix-git/doc/guix.texi:15635
  22563. msgid "Data type representing the configuration of GPM."
  22564. msgstr ""
  22565. #. type: item
  22566. #: guix-git/doc/guix.texi:15637
  22567. #, no-wrap
  22568. msgid "@code{options} (default: @code{%default-gpm-options})"
  22569. msgstr ""
  22570. #. type: table
  22571. #: guix-git/doc/guix.texi:15642
  22572. 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."
  22573. msgstr ""
  22574. #. type: item
  22575. #: guix-git/doc/guix.texi:15643
  22576. #, no-wrap
  22577. msgid "@code{gpm} (default: @code{gpm})"
  22578. msgstr ""
  22579. #. type: table
  22580. #: guix-git/doc/guix.texi:15645
  22581. msgid "The GPM package to use."
  22582. msgstr ""
  22583. #. type: anchor{#1}
  22584. #: guix-git/doc/guix.texi:15650
  22585. msgid "guix-publish-service-type"
  22586. msgstr ""
  22587. #. type: deffn
  22588. #: guix-git/doc/guix.texi:15650
  22589. #, no-wrap
  22590. msgid "{Scheme Variable} guix-publish-service-type"
  22591. msgstr ""
  22592. #. type: deffn
  22593. #: guix-git/doc/guix.texi:15654
  22594. 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."
  22595. msgstr ""
  22596. #. type: deffn
  22597. #: guix-git/doc/guix.texi:15658
  22598. 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."
  22599. msgstr ""
  22600. #. type: deftp
  22601. #: guix-git/doc/guix.texi:15660
  22602. #, no-wrap
  22603. msgid "{Data Type} guix-publish-configuration"
  22604. msgstr ""
  22605. #. type: deftp
  22606. #: guix-git/doc/guix.texi:15663
  22607. msgid "Data type representing the configuration of the @code{guix publish} service."
  22608. msgstr ""
  22609. #. type: item
  22610. #: guix-git/doc/guix.texi:15665
  22611. #, no-wrap
  22612. msgid "@code{guix} (default: @code{guix})"
  22613. msgstr ""
  22614. #. type: item
  22615. #: guix-git/doc/guix.texi:15668 guix-git/doc/guix.texi:29638
  22616. #, no-wrap
  22617. msgid "@code{port} (default: @code{80})"
  22618. msgstr ""
  22619. #. type: table
  22620. #: guix-git/doc/guix.texi:15670
  22621. msgid "The TCP port to listen for connections."
  22622. msgstr ""
  22623. #. type: item
  22624. #: guix-git/doc/guix.texi:15671 guix-git/doc/guix.texi:27277
  22625. #, no-wrap
  22626. msgid "@code{host} (default: @code{\"localhost\"})"
  22627. msgstr ""
  22628. #. type: table
  22629. #: guix-git/doc/guix.texi:15674
  22630. msgid "The host (and thus, network interface) to listen to. Use @code{\"0.0.0.0\"} to listen on all the network interfaces."
  22631. msgstr ""
  22632. #. type: item
  22633. #: guix-git/doc/guix.texi:15675
  22634. #, fuzzy, no-wrap
  22635. msgid "@code{advertise?} (default: @code{#f})"
  22636. msgstr "@code{challenge}(默认值:@code{#f})"
  22637. #. type: table
  22638. #: guix-git/doc/guix.texi:15678
  22639. msgid "When true, advertise the service on the local network @i{via} the DNS-SD protocol, using Avahi."
  22640. msgstr ""
  22641. #. type: table
  22642. #: guix-git/doc/guix.texi:15682
  22643. 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."
  22644. msgstr ""
  22645. #. type: item
  22646. #: guix-git/doc/guix.texi:15683
  22647. #, fuzzy, no-wrap
  22648. msgid "@code{compression} (default: @code{'((\"gzip\" 3) (\"zstd\" 3))})"
  22649. msgstr "@code{compression-level}(默认值:@code{3})"
  22650. #. type: table
  22651. #: guix-git/doc/guix.texi:15687
  22652. 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:"
  22653. msgstr ""
  22654. #. type: lisp
  22655. #: guix-git/doc/guix.texi:15690
  22656. #, no-wrap
  22657. msgid "'((\"lzip\" 7) (\"gzip\" 9))\n"
  22658. msgstr ""
  22659. #. type: table
  22660. #: guix-git/doc/guix.texi:15696
  22661. 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."
  22662. msgstr ""
  22663. #. type: table
  22664. #: guix-git/doc/guix.texi:15698
  22665. msgid "An empty list disables compression altogether."
  22666. msgstr ""
  22667. #. type: item
  22668. #: guix-git/doc/guix.texi:15699
  22669. #, no-wrap
  22670. msgid "@code{nar-path} (default: @code{\"nar\"})"
  22671. msgstr ""
  22672. #. type: table
  22673. #: guix-git/doc/guix.texi:15702
  22674. msgid "The URL path at which ``nars'' can be fetched. @xref{Invoking guix publish, @option{--nar-path}}, for details."
  22675. msgstr ""
  22676. #. type: item
  22677. #: guix-git/doc/guix.texi:15703
  22678. #, no-wrap
  22679. msgid "@code{cache} (default: @code{#f})"
  22680. msgstr ""
  22681. #. type: table
  22682. #: guix-git/doc/guix.texi:15709
  22683. 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."
  22684. msgstr ""
  22685. #. type: item
  22686. #: guix-git/doc/guix.texi:15710
  22687. #, no-wrap
  22688. msgid "@code{workers} (default: @code{#f})"
  22689. msgstr ""
  22690. #. type: table
  22691. #: guix-git/doc/guix.texi:15714
  22692. 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."
  22693. msgstr ""
  22694. #. type: item
  22695. #: guix-git/doc/guix.texi:15715
  22696. #, no-wrap
  22697. msgid "@code{cache-bypass-threshold} (default: 10 MiB)"
  22698. msgstr ""
  22699. #. type: table
  22700. #: guix-git/doc/guix.texi:15720
  22701. 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."
  22702. msgstr ""
  22703. #. type: item
  22704. #: guix-git/doc/guix.texi:15721
  22705. #, no-wrap
  22706. msgid "@code{ttl} (default: @code{#f})"
  22707. msgstr ""
  22708. #. type: table
  22709. #: guix-git/doc/guix.texi:15725
  22710. 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."
  22711. msgstr ""
  22712. #. type: anchor{#1}
  22713. #: guix-git/doc/guix.texi:15729
  22714. msgid "rngd-service"
  22715. msgstr ""
  22716. #. type: deffn
  22717. #: guix-git/doc/guix.texi:15729
  22718. #, no-wrap
  22719. msgid "{Scheme Procedure} rngd-service [#:rng-tools @var{rng-tools}] @"
  22720. msgstr ""
  22721. #. type: deffn
  22722. #: guix-git/doc/guix.texi:15734
  22723. 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."
  22724. msgstr ""
  22725. #. type: anchor{#1}
  22726. #: guix-git/doc/guix.texi:15737
  22727. msgid "pam-limits-service"
  22728. msgstr ""
  22729. #. type: cindex
  22730. #: guix-git/doc/guix.texi:15737
  22731. #, no-wrap
  22732. msgid "session limits"
  22733. msgstr ""
  22734. #. type: cindex
  22735. #: guix-git/doc/guix.texi:15738
  22736. #, no-wrap
  22737. msgid "ulimit"
  22738. msgstr ""
  22739. #. type: cindex
  22740. #: guix-git/doc/guix.texi:15739
  22741. #, no-wrap
  22742. msgid "priority"
  22743. msgstr ""
  22744. #. type: cindex
  22745. #: guix-git/doc/guix.texi:15740
  22746. #, no-wrap
  22747. msgid "realtime"
  22748. msgstr ""
  22749. #. type: cindex
  22750. #: guix-git/doc/guix.texi:15741
  22751. #, no-wrap
  22752. msgid "jackd"
  22753. msgstr ""
  22754. #. type: cindex
  22755. #: guix-git/doc/guix.texi:15742
  22756. #, no-wrap
  22757. msgid "nofile"
  22758. msgstr ""
  22759. #. type: cindex
  22760. #: guix-git/doc/guix.texi:15743
  22761. #, fuzzy, no-wrap
  22762. msgid "open file descriptors"
  22763. msgstr "简介和描述"
  22764. #. type: deffn
  22765. #: guix-git/doc/guix.texi:15744
  22766. #, no-wrap
  22767. msgid "{Scheme Procedure} pam-limits-service [#:limits @code{'()}]"
  22768. msgstr ""
  22769. #. type: deffn
  22770. #: guix-git/doc/guix.texi:15751
  22771. 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."
  22772. msgstr ""
  22773. #. type: deffn
  22774. #: guix-git/doc/guix.texi:15754
  22775. msgid "The following limits definition sets two hard and soft limits for all login sessions of users in the @code{realtime} group:"
  22776. msgstr ""
  22777. #. type: lisp
  22778. #: guix-git/doc/guix.texi:15760
  22779. #, no-wrap
  22780. msgid ""
  22781. "(pam-limits-service\n"
  22782. " (list\n"
  22783. " (pam-limits-entry \"@@realtime\" 'both 'rtprio 99)\n"
  22784. " (pam-limits-entry \"@@realtime\" 'both 'memlock 'unlimited)))\n"
  22785. msgstr ""
  22786. #. type: deffn
  22787. #: guix-git/doc/guix.texi:15766
  22788. 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."
  22789. msgstr ""
  22790. #. type: deffn
  22791. #: guix-git/doc/guix.texi:15769
  22792. msgid "Another useful example is raising the maximum number of open file descriptors that can be used:"
  22793. msgstr ""
  22794. #. type: lisp
  22795. #: guix-git/doc/guix.texi:15774
  22796. #, no-wrap
  22797. msgid ""
  22798. "(pam-limits-service\n"
  22799. " (list\n"
  22800. " (pam-limits-entry \"*\" 'both 'nofile 100000)))\n"
  22801. msgstr ""
  22802. #. type: deffn
  22803. #: guix-git/doc/guix.texi:15782
  22804. 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."
  22805. msgstr ""
  22806. #. type: cindex
  22807. #: guix-git/doc/guix.texi:15787
  22808. #, no-wrap
  22809. msgid "cron"
  22810. msgstr ""
  22811. #. type: cindex
  22812. #: guix-git/doc/guix.texi:15788
  22813. #, no-wrap
  22814. msgid "mcron"
  22815. msgstr ""
  22816. #. type: cindex
  22817. #: guix-git/doc/guix.texi:15789
  22818. #, no-wrap
  22819. msgid "scheduling jobs"
  22820. msgstr ""
  22821. #. type: Plain text
  22822. #: guix-git/doc/guix.texi:15796
  22823. 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."
  22824. msgstr ""
  22825. #. type: Plain text
  22826. #: guix-git/doc/guix.texi:15804
  22827. 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})."
  22828. msgstr ""
  22829. #. type: lisp
  22830. #: guix-git/doc/guix.texi:15808
  22831. #, no-wrap
  22832. msgid ""
  22833. "(use-modules (guix) (gnu) (gnu services mcron))\n"
  22834. "(use-package-modules base idutils)\n"
  22835. "\n"
  22836. msgstr ""
  22837. #. type: lisp
  22838. #: guix-git/doc/guix.texi:15817
  22839. #, no-wrap
  22840. msgid ""
  22841. "(define updatedb-job\n"
  22842. " ;; Run 'updatedb' at 3AM every day. Here we write the\n"
  22843. " ;; job's action as a Scheme procedure.\n"
  22844. " #~(job '(next-hour '(3))\n"
  22845. " (lambda ()\n"
  22846. " (execl (string-append #$findutils \"/bin/updatedb\")\n"
  22847. " \"updatedb\"\n"
  22848. " \"--prunepaths=/tmp /var/tmp /gnu/store\"))))\n"
  22849. "\n"
  22850. msgstr ""
  22851. #. type: lisp
  22852. #: guix-git/doc/guix.texi:15823
  22853. #, no-wrap
  22854. msgid ""
  22855. "(define garbage-collector-job\n"
  22856. " ;; Collect garbage 5 minutes after midnight every day.\n"
  22857. " ;; The job's action is a shell command.\n"
  22858. " #~(job \"5 0 * * *\" ;Vixie cron syntax\n"
  22859. " \"guix gc -F 1G\"))\n"
  22860. "\n"
  22861. msgstr ""
  22862. #. type: lisp
  22863. #: guix-git/doc/guix.texi:15830
  22864. #, no-wrap
  22865. msgid ""
  22866. "(define idutils-job\n"
  22867. " ;; Update the index database as user \"charlie\" at 12:15PM\n"
  22868. " ;; and 19:15PM. This runs from the user's home directory.\n"
  22869. " #~(job '(next-minute-from (next-hour '(12 19)) '(15))\n"
  22870. " (string-append #$idutils \"/bin/mkid src\")\n"
  22871. " #:user \"charlie\"))\n"
  22872. "\n"
  22873. msgstr ""
  22874. #. type: lisp
  22875. #: guix-git/doc/guix.texi:15833
  22876. #, no-wrap
  22877. msgid ""
  22878. "(operating-system\n"
  22879. " ;; @dots{}\n"
  22880. "\n"
  22881. msgstr ""
  22882. #. type: lisp
  22883. #: guix-git/doc/guix.texi:15843
  22884. #, no-wrap
  22885. msgid ""
  22886. " ;; %BASE-SERVICES already includes an instance of\n"
  22887. " ;; 'mcron-service-type', which we extend with additional\n"
  22888. " ;; jobs using 'simple-service'.\n"
  22889. " (services (cons (simple-service 'my-cron-jobs\n"
  22890. " mcron-service-type\n"
  22891. " (list garbage-collector-job\n"
  22892. " updatedb-job\n"
  22893. " idutils-job))\n"
  22894. " %base-services)))\n"
  22895. msgstr ""
  22896. #. type: Plain text
  22897. #: guix-git/doc/guix.texi:15850
  22898. 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."
  22899. msgstr ""
  22900. #. type: lisp
  22901. #: guix-git/doc/guix.texi:15866
  22902. #, no-wrap
  22903. msgid ""
  22904. "(define %battery-alert-job\n"
  22905. " ;; Beep when the battery percentage falls below %MIN-LEVEL.\n"
  22906. " #~(job\n"
  22907. " '(next-minute (range 0 60 1))\n"
  22908. " #$(program-file\n"
  22909. " \"battery-alert.scm\"\n"
  22910. " (with-imported-modules (source-module-closure\n"
  22911. " '((guix build utils)))\n"
  22912. " #~(begin\n"
  22913. " (use-modules (guix build utils)\n"
  22914. " (ice-9 popen)\n"
  22915. " (ice-9 regex)\n"
  22916. " (ice-9 textual-ports)\n"
  22917. " (srfi srfi-2))\n"
  22918. "\n"
  22919. msgstr ""
  22920. #. type: lisp
  22921. #: guix-git/doc/guix.texi:15868
  22922. #, no-wrap
  22923. msgid ""
  22924. " (define %min-level 20)\n"
  22925. "\n"
  22926. msgstr ""
  22927. #. type: lisp
  22928. #: guix-git/doc/guix.texi:15879
  22929. #, no-wrap
  22930. msgid ""
  22931. " (setenv \"LC_ALL\" \"C\") ;ensure English output\n"
  22932. " (and-let* ((input-pipe (open-pipe*\n"
  22933. " OPEN_READ\n"
  22934. " #$(file-append acpi \"/bin/acpi\")))\n"
  22935. " (output (get-string-all input-pipe))\n"
  22936. " (m (string-match \"Discharging, ([0-9]+)%\" output))\n"
  22937. " (level (string->number (match:substring m 1)))\n"
  22938. " ((< level %min-level)))\n"
  22939. " (format #t \"warning: Battery level is low (~a%)~%\" level)\n"
  22940. " (invoke #$(file-append beep \"/bin/beep\") \"-r5\")))))))\n"
  22941. msgstr ""
  22942. #. type: Plain text
  22943. #: guix-git/doc/guix.texi:15884
  22944. 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."
  22945. msgstr ""
  22946. #. type: Plain text
  22947. #: guix-git/doc/guix.texi:15887
  22948. 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:"
  22949. msgstr ""
  22950. #. type: example
  22951. #: guix-git/doc/guix.texi:15890
  22952. #, no-wrap
  22953. msgid "# herd schedule mcron\n"
  22954. msgstr ""
  22955. #. type: Plain text
  22956. #: guix-git/doc/guix.texi:15895
  22957. msgid "The example above lists the next five tasks that will be executed, but you can also specify the number of tasks to display:"
  22958. msgstr ""
  22959. #. type: example
  22960. #: guix-git/doc/guix.texi:15898
  22961. #, no-wrap
  22962. msgid "# herd schedule mcron 10\n"
  22963. msgstr ""
  22964. #. type: defvr
  22965. #: guix-git/doc/guix.texi:15900
  22966. #, no-wrap
  22967. msgid "{Scheme Variable} mcron-service-type"
  22968. msgstr ""
  22969. #. type: defvr
  22970. #: guix-git/doc/guix.texi:15903
  22971. msgid "This is the type of the @code{mcron} service, whose value is an @code{mcron-configuration} object."
  22972. msgstr ""
  22973. #. type: defvr
  22974. #: guix-git/doc/guix.texi:15908
  22975. 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."
  22976. msgstr ""
  22977. #. type: deftp
  22978. #: guix-git/doc/guix.texi:15910
  22979. #, no-wrap
  22980. msgid "{Data Type} mcron-configuration"
  22981. msgstr ""
  22982. #. type: deftp
  22983. #: guix-git/doc/guix.texi:15912
  22984. msgid "Data type representing the configuration of mcron."
  22985. msgstr ""
  22986. #. type: item
  22987. #: guix-git/doc/guix.texi:15914
  22988. #, no-wrap
  22989. msgid "@code{mcron} (default: @var{mcron})"
  22990. msgstr ""
  22991. #. type: table
  22992. #: guix-git/doc/guix.texi:15916
  22993. msgid "The mcron package to use."
  22994. msgstr ""
  22995. #. type: code{#1}
  22996. #: guix-git/doc/guix.texi:15917 guix-git/doc/guix.texi:15986
  22997. #, no-wrap
  22998. msgid "jobs"
  22999. msgstr ""
  23000. #. type: table
  23001. #: guix-git/doc/guix.texi:15921
  23002. 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})."
  23003. msgstr ""
  23004. #. type: cindex
  23005. #: guix-git/doc/guix.texi:15928
  23006. #, no-wrap
  23007. msgid "rottlog"
  23008. msgstr ""
  23009. #. type: cindex
  23010. #: guix-git/doc/guix.texi:15929
  23011. #, no-wrap
  23012. msgid "log rotation"
  23013. msgstr ""
  23014. #. type: Plain text
  23015. #: guix-git/doc/guix.texi:15936
  23016. 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})."
  23017. msgstr ""
  23018. #. type: Plain text
  23019. #: guix-git/doc/guix.texi:15942
  23020. 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):"
  23021. msgstr ""
  23022. #. type: lisp
  23023. #: guix-git/doc/guix.texi:15946
  23024. #, no-wrap
  23025. msgid ""
  23026. "(use-modules (guix) (gnu))\n"
  23027. "(use-service-modules admin)\n"
  23028. "\n"
  23029. msgstr ""
  23030. #. type: lisp
  23031. #: guix-git/doc/guix.texi:15950
  23032. #, no-wrap
  23033. msgid ""
  23034. "(define my-log-files\n"
  23035. " ;; Log files that I want to rotate.\n"
  23036. " '(\"/var/log/something.log\" \"/var/log/another.log\"))\n"
  23037. "\n"
  23038. msgstr ""
  23039. #. type: lisp
  23040. #: guix-git/doc/guix.texi:15959
  23041. #, no-wrap
  23042. msgid ""
  23043. "(operating-system\n"
  23044. " ;; @dots{}\n"
  23045. " (services (cons (simple-service 'rotate-my-stuff\n"
  23046. " rottlog-service-type\n"
  23047. " (list (log-rotation\n"
  23048. " (frequency 'daily)\n"
  23049. " (files my-log-files))))\n"
  23050. " %base-services)))\n"
  23051. msgstr ""
  23052. #. type: defvr
  23053. #: guix-git/doc/guix.texi:15961
  23054. #, no-wrap
  23055. msgid "{Scheme Variable} rottlog-service-type"
  23056. msgstr ""
  23057. #. type: defvr
  23058. #: guix-git/doc/guix.texi:15964
  23059. msgid "This is the type of the Rottlog service, whose value is a @code{rottlog-configuration} object."
  23060. msgstr ""
  23061. #. type: defvr
  23062. #: guix-git/doc/guix.texi:15967
  23063. msgid "Other services can extend this one with new @code{log-rotation} objects (see below), thereby augmenting the set of files to be rotated."
  23064. msgstr ""
  23065. #. type: defvr
  23066. #: guix-git/doc/guix.texi:15970
  23067. msgid "This service type can define mcron jobs (@pxref{Scheduled Job Execution}) to run the rottlog service."
  23068. msgstr ""
  23069. #. type: deftp
  23070. #: guix-git/doc/guix.texi:15972
  23071. #, no-wrap
  23072. msgid "{Data Type} rottlog-configuration"
  23073. msgstr ""
  23074. #. type: deftp
  23075. #: guix-git/doc/guix.texi:15974
  23076. msgid "Data type representing the configuration of rottlog."
  23077. msgstr ""
  23078. #. type: item
  23079. #: guix-git/doc/guix.texi:15976
  23080. #, no-wrap
  23081. msgid "@code{rottlog} (default: @code{rottlog})"
  23082. msgstr ""
  23083. #. type: table
  23084. #: guix-git/doc/guix.texi:15978
  23085. msgid "The Rottlog package to use."
  23086. msgstr ""
  23087. #. type: item
  23088. #: guix-git/doc/guix.texi:15979
  23089. #, no-wrap
  23090. msgid "@code{rc-file} (default: @code{(file-append rottlog \"/etc/rc\")})"
  23091. msgstr ""
  23092. #. type: table
  23093. #: guix-git/doc/guix.texi:15982
  23094. msgid "The Rottlog configuration file to use (@pxref{Mandatory RC Variables,,, rottlog, GNU Rot[t]log Manual})."
  23095. msgstr ""
  23096. #. type: item
  23097. #: guix-git/doc/guix.texi:15983
  23098. #, no-wrap
  23099. msgid "@code{rotations} (default: @code{%default-rotations})"
  23100. msgstr ""
  23101. #. type: table
  23102. #: guix-git/doc/guix.texi:15985
  23103. msgid "A list of @code{log-rotation} objects as defined below."
  23104. msgstr ""
  23105. #. type: table
  23106. #: guix-git/doc/guix.texi:15989
  23107. msgid "This is a list of gexps where each gexp corresponds to an mcron job specification (@pxref{Scheduled Job Execution})."
  23108. msgstr ""
  23109. #. type: deftp
  23110. #: guix-git/doc/guix.texi:15992
  23111. #, no-wrap
  23112. msgid "{Data Type} log-rotation"
  23113. msgstr ""
  23114. #. type: deftp
  23115. #: guix-git/doc/guix.texi:15994
  23116. msgid "Data type representing the rotation of a group of log files."
  23117. msgstr ""
  23118. #. type: deftp
  23119. #: guix-git/doc/guix.texi:15998
  23120. 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:"
  23121. msgstr ""
  23122. #. type: lisp
  23123. #: guix-git/doc/guix.texi:16007
  23124. #, no-wrap
  23125. msgid ""
  23126. "(log-rotation\n"
  23127. " (frequency 'daily)\n"
  23128. " (files '(\"/var/log/apache/*\"))\n"
  23129. " (options '(\"storedir apache-archives\"\n"
  23130. " \"rotate 6\"\n"
  23131. " \"notifempty\"\n"
  23132. " \"nocompress\")))\n"
  23133. msgstr ""
  23134. #. type: deftp
  23135. #: guix-git/doc/guix.texi:16010
  23136. msgid "The list of fields is as follows:"
  23137. msgstr ""
  23138. #. type: item
  23139. #: guix-git/doc/guix.texi:16012
  23140. #, no-wrap
  23141. msgid "@code{frequency} (default: @code{'weekly})"
  23142. msgstr ""
  23143. #. type: table
  23144. #: guix-git/doc/guix.texi:16014
  23145. msgid "The log rotation frequency, a symbol."
  23146. msgstr ""
  23147. #. type: code{#1}
  23148. #: guix-git/doc/guix.texi:16015
  23149. #, no-wrap
  23150. msgid "files"
  23151. msgstr ""
  23152. #. type: table
  23153. #: guix-git/doc/guix.texi:16017
  23154. msgid "The list of files or file glob patterns to rotate."
  23155. msgstr ""
  23156. #. type: item
  23157. #: guix-git/doc/guix.texi:16018
  23158. #, no-wrap
  23159. msgid "@code{options} (default: @code{'()})"
  23160. msgstr ""
  23161. #. type: table
  23162. #: guix-git/doc/guix.texi:16021
  23163. msgid "The list of rottlog options for this rotation (@pxref{Configuration parameters,,, rottlog, GNU Rot[t]lg Manual})."
  23164. msgstr ""
  23165. #. type: item
  23166. #: guix-git/doc/guix.texi:16022
  23167. #, no-wrap
  23168. msgid "@code{post-rotate} (default: @code{#f})"
  23169. msgstr ""
  23170. #. type: table
  23171. #: guix-git/doc/guix.texi:16024
  23172. msgid "Either @code{#f} or a gexp to execute once the rotation has completed."
  23173. msgstr ""
  23174. #. type: defvr
  23175. #: guix-git/doc/guix.texi:16027
  23176. #, no-wrap
  23177. msgid "{Scheme Variable} %default-rotations"
  23178. msgstr ""
  23179. #. type: defvr
  23180. #: guix-git/doc/guix.texi:16030
  23181. msgid "Specifies weekly rotation of @code{%rotated-files} and of @file{/var/log/guix-daemon.log}."
  23182. msgstr ""
  23183. #. type: defvr
  23184. #: guix-git/doc/guix.texi:16032
  23185. #, no-wrap
  23186. msgid "{Scheme Variable} %rotated-files"
  23187. msgstr ""
  23188. #. type: defvr
  23189. #: guix-git/doc/guix.texi:16036
  23190. 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\")}."
  23191. msgstr ""
  23192. #. type: Plain text
  23193. #: guix-git/doc/guix.texi:16043
  23194. msgid "The @code{(gnu services networking)} module provides services to configure the network interface."
  23195. msgstr ""
  23196. #. type: cindex
  23197. #: guix-git/doc/guix.texi:16044
  23198. #, no-wrap
  23199. msgid "DHCP, networking service"
  23200. msgstr ""
  23201. #. type: defvr
  23202. #: guix-git/doc/guix.texi:16045
  23203. #, no-wrap
  23204. msgid "{Scheme Variable} dhcp-client-service-type"
  23205. msgstr ""
  23206. #. type: defvr
  23207. #: guix-git/doc/guix.texi:16049
  23208. 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."
  23209. msgstr ""
  23210. #. type: deffn
  23211. #: guix-git/doc/guix.texi:16051
  23212. #, no-wrap
  23213. msgid "{Scheme Procedure} dhcpd-service-type"
  23214. msgstr ""
  23215. #. type: deffn
  23216. #: guix-git/doc/guix.texi:16055
  23217. 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:"
  23218. msgstr ""
  23219. #. type: lisp
  23220. #: guix-git/doc/guix.texi:16061
  23221. #, no-wrap
  23222. msgid ""
  23223. "(service dhcpd-service-type\n"
  23224. " (dhcpd-configuration\n"
  23225. " (config-file (local-file \"my-dhcpd.conf\"))\n"
  23226. " (interfaces '(\"enp0s25\"))))\n"
  23227. msgstr ""
  23228. #. type: deftp
  23229. #: guix-git/doc/guix.texi:16064
  23230. #, no-wrap
  23231. msgid "{Data Type} dhcpd-configuration"
  23232. msgstr ""
  23233. #. type: item
  23234. #: guix-git/doc/guix.texi:16066
  23235. #, no-wrap
  23236. msgid "@code{package} (default: @code{isc-dhcp})"
  23237. msgstr ""
  23238. #. type: table
  23239. #: guix-git/doc/guix.texi:16071
  23240. 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}."
  23241. msgstr ""
  23242. #. type: item
  23243. #: guix-git/doc/guix.texi:16071 guix-git/doc/guix.texi:16327
  23244. #: guix-git/doc/guix.texi:21399
  23245. #, no-wrap
  23246. msgid "@code{config-file} (default: @code{#f})"
  23247. msgstr ""
  23248. #. type: table
  23249. #: guix-git/doc/guix.texi:16076
  23250. 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."
  23251. msgstr ""
  23252. #. type: item
  23253. #: guix-git/doc/guix.texi:16076
  23254. #, no-wrap
  23255. msgid "@code{version} (default: @code{\"4\"})"
  23256. msgstr ""
  23257. #. type: table
  23258. #: guix-git/doc/guix.texi:16081
  23259. 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."
  23260. msgstr ""
  23261. #. type: item
  23262. #: guix-git/doc/guix.texi:16081
  23263. #, no-wrap
  23264. msgid "@code{run-directory} (default: @code{\"/run/dhcpd\"})"
  23265. msgstr ""
  23266. #. type: table
  23267. #: guix-git/doc/guix.texi:16084
  23268. msgid "The run directory to use. At service activation time, this directory will be created if it does not exist."
  23269. msgstr ""
  23270. #. type: item
  23271. #: guix-git/doc/guix.texi:16084
  23272. #, no-wrap
  23273. msgid "@code{pid-file} (default: @code{\"/run/dhcpd/dhcpd.pid\"})"
  23274. msgstr ""
  23275. #. type: table
  23276. #: guix-git/doc/guix.texi:16087
  23277. msgid "The PID file to use. This corresponds to the @code{-pf} option of @code{dhcpd}. See @code{man dhcpd} for details."
  23278. msgstr ""
  23279. #. type: item
  23280. #: guix-git/doc/guix.texi:16087
  23281. #, no-wrap
  23282. msgid "@code{interfaces} (default: @code{'()})"
  23283. msgstr ""
  23284. #. type: table
  23285. #: guix-git/doc/guix.texi:16093
  23286. 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."
  23287. msgstr ""
  23288. #. type: defvr
  23289. #: guix-git/doc/guix.texi:16096
  23290. #, no-wrap
  23291. msgid "{Scheme Variable} static-networking-service-type"
  23292. msgstr ""
  23293. #. type: defvr
  23294. #: guix-git/doc/guix.texi:16099
  23295. msgid "This is the type for statically-configured network interfaces."
  23296. msgstr ""
  23297. #. type: deffn
  23298. #: guix-git/doc/guix.texi:16101
  23299. #, no-wrap
  23300. msgid "{Scheme Procedure} static-networking-service @var{interface} @var{ip} @"
  23301. msgstr ""
  23302. #. type: deffn
  23303. #: guix-git/doc/guix.texi:16109
  23304. 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."
  23305. msgstr ""
  23306. #. type: deffn
  23307. #: guix-git/doc/guix.texi:16114
  23308. 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."
  23309. msgstr ""
  23310. #. type: defvr
  23311. #: guix-git/doc/guix.texi:16116 guix-git/doc/guix.texi:28950
  23312. msgid "For example:"
  23313. msgstr ""
  23314. #. type: lisp
  23315. #: guix-git/doc/guix.texi:16121
  23316. #, no-wrap
  23317. msgid ""
  23318. "(static-networking-service \"eno1\" \"192.168.1.82\"\n"
  23319. " #:gateway \"192.168.1.2\"\n"
  23320. " #:name-servers '(\"192.168.1.2\"))\n"
  23321. msgstr ""
  23322. #. type: cindex
  23323. #: guix-git/doc/guix.texi:16124
  23324. #, no-wrap
  23325. msgid "wicd"
  23326. msgstr ""
  23327. #. type: cindex
  23328. #: guix-git/doc/guix.texi:16127
  23329. #, no-wrap
  23330. msgid "network management"
  23331. msgstr ""
  23332. #. type: deffn
  23333. #: guix-git/doc/guix.texi:16128
  23334. #, no-wrap
  23335. msgid "{Scheme Procedure} wicd-service [#:wicd @var{wicd}]"
  23336. msgstr ""
  23337. #. type: deffn
  23338. #: guix-git/doc/guix.texi:16131
  23339. msgid "Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a network management daemon that aims to simplify wired and wireless networking."
  23340. msgstr ""
  23341. #. type: deffn
  23342. #: guix-git/doc/guix.texi:16136
  23343. 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."
  23344. msgstr ""
  23345. #. type: cindex
  23346. #: guix-git/doc/guix.texi:16138
  23347. #, no-wrap
  23348. msgid "ModemManager"
  23349. msgstr ""
  23350. #. type: defvr
  23351. #: guix-git/doc/guix.texi:16140
  23352. #, no-wrap
  23353. msgid "{Scheme Variable} modem-manager-service-type"
  23354. msgstr ""
  23355. #. type: defvr
  23356. #: guix-git/doc/guix.texi:16145
  23357. 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."
  23358. msgstr ""
  23359. #. type: defvr
  23360. #: guix-git/doc/guix.texi:16148 guix-git/doc/guix.texi:16177
  23361. #: guix-git/doc/guix.texi:16209
  23362. msgid "This service is part of @code{%desktop-services} (@pxref{Desktop Services})."
  23363. msgstr ""
  23364. #. type: deftp
  23365. #: guix-git/doc/guix.texi:16150
  23366. #, no-wrap
  23367. msgid "{Data Type} modem-manager-configuration"
  23368. msgstr ""
  23369. #. type: deftp
  23370. #: guix-git/doc/guix.texi:16152
  23371. msgid "Data type representing the configuration of ModemManager."
  23372. msgstr ""
  23373. #. type: item
  23374. #: guix-git/doc/guix.texi:16154
  23375. #, no-wrap
  23376. msgid "@code{modem-manager} (default: @code{modem-manager})"
  23377. msgstr ""
  23378. #. type: table
  23379. #: guix-git/doc/guix.texi:16156
  23380. msgid "The ModemManager package to use."
  23381. msgstr ""
  23382. #. type: cindex
  23383. #: guix-git/doc/guix.texi:16160
  23384. #, no-wrap
  23385. msgid "USB_ModeSwitch"
  23386. msgstr ""
  23387. #. type: cindex
  23388. #: guix-git/doc/guix.texi:16161
  23389. #, no-wrap
  23390. msgid "Modeswitching"
  23391. msgstr ""
  23392. #. type: defvr
  23393. #: guix-git/doc/guix.texi:16163
  23394. #, no-wrap
  23395. msgid "{Scheme Variable} usb-modeswitch-service-type"
  23396. msgstr ""
  23397. #. type: defvr
  23398. #: guix-git/doc/guix.texi:16168
  23399. 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."
  23400. msgstr ""
  23401. #. type: defvr
  23402. #: guix-git/doc/guix.texi:16174
  23403. 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."
  23404. msgstr ""
  23405. #. type: deftp
  23406. #: guix-git/doc/guix.texi:16179
  23407. #, no-wrap
  23408. msgid "{Data Type} usb-modeswitch-configuration"
  23409. msgstr ""
  23410. #. type: deftp
  23411. #: guix-git/doc/guix.texi:16181
  23412. msgid "Data type representing the configuration of USB_ModeSwitch."
  23413. msgstr ""
  23414. #. type: item
  23415. #: guix-git/doc/guix.texi:16183
  23416. #, fuzzy, no-wrap
  23417. msgid "@code{usb-modeswitch} (default: @code{usb-modeswitch})"
  23418. msgstr "@code{mate}(默认值:@code{mate})"
  23419. #. type: table
  23420. #: guix-git/doc/guix.texi:16185
  23421. msgid "The USB_ModeSwitch package providing the binaries for modeswitching."
  23422. msgstr ""
  23423. #. type: item
  23424. #: guix-git/doc/guix.texi:16186
  23425. #, fuzzy, no-wrap
  23426. msgid "@code{usb-modeswitch-data} (default: @code{usb-modeswitch-data})"
  23427. msgstr "@code{mate}(默认值:@code{mate})"
  23428. #. type: table
  23429. #: guix-git/doc/guix.texi:16189
  23430. msgid "The package providing the device data and udev rules file used by USB_ModeSwitch."
  23431. msgstr ""
  23432. #. type: item
  23433. #: guix-git/doc/guix.texi:16190
  23434. #, no-wrap
  23435. msgid "@code{config-file} (default: @code{#~(string-append #$usb-modeswitch:dispatcher \"/etc/usb_modeswitch.conf\")})"
  23436. msgstr ""
  23437. #. type: table
  23438. #: guix-git/doc/guix.texi:16195
  23439. 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."
  23440. msgstr ""
  23441. #. type: cindex
  23442. #: guix-git/doc/guix.texi:16199
  23443. #, no-wrap
  23444. msgid "NetworkManager"
  23445. msgstr ""
  23446. #. type: defvr
  23447. #: guix-git/doc/guix.texi:16201
  23448. #, no-wrap
  23449. msgid "{Scheme Variable} network-manager-service-type"
  23450. msgstr ""
  23451. #. type: defvr
  23452. #: guix-git/doc/guix.texi:16206
  23453. 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."
  23454. msgstr ""
  23455. #. type: deftp
  23456. #: guix-git/doc/guix.texi:16211
  23457. #, no-wrap
  23458. msgid "{Data Type} network-manager-configuration"
  23459. msgstr ""
  23460. #. type: deftp
  23461. #: guix-git/doc/guix.texi:16213
  23462. msgid "Data type representing the configuration of NetworkManager."
  23463. msgstr ""
  23464. #. type: item
  23465. #: guix-git/doc/guix.texi:16215
  23466. #, no-wrap
  23467. msgid "@code{network-manager} (default: @code{network-manager})"
  23468. msgstr ""
  23469. #. type: table
  23470. #: guix-git/doc/guix.texi:16217
  23471. msgid "The NetworkManager package to use."
  23472. msgstr ""
  23473. #. type: item
  23474. #: guix-git/doc/guix.texi:16218
  23475. #, no-wrap
  23476. msgid "@code{dns} (default: @code{\"default\"})"
  23477. msgstr ""
  23478. #. type: table
  23479. #: guix-git/doc/guix.texi:16221
  23480. msgid "Processing mode for DNS, which affects how NetworkManager uses the @code{resolv.conf} configuration file."
  23481. msgstr ""
  23482. #. type: table
  23483. #: guix-git/doc/guix.texi:16226
  23484. msgid "NetworkManager will update @code{resolv.conf} to reflect the nameservers provided by currently active connections."
  23485. msgstr ""
  23486. #. type: item
  23487. #: guix-git/doc/guix.texi:16227
  23488. #, no-wrap
  23489. msgid "dnsmasq"
  23490. msgstr ""
  23491. #. type: table
  23492. #: guix-git/doc/guix.texi:16231
  23493. 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."
  23494. msgstr ""
  23495. #. type: table
  23496. #: guix-git/doc/guix.texi:16237
  23497. 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)."
  23498. msgstr ""
  23499. #. type: table
  23500. #: guix-git/doc/guix.texi:16244
  23501. 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:"
  23502. msgstr ""
  23503. #. type: example
  23504. #: guix-git/doc/guix.texi:16251
  23505. #, no-wrap
  23506. msgid ""
  23507. "nmcli connection add type tun \\\n"
  23508. " connection.interface-name tap0 \\\n"
  23509. " tun.mode tap tun.owner $(id -u) \\\n"
  23510. " ipv4.method shared \\\n"
  23511. " ipv4.addresses 172.28.112.1/24\n"
  23512. msgstr ""
  23513. #. type: table
  23514. #: guix-git/doc/guix.texi:16256
  23515. 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-...}."
  23516. msgstr ""
  23517. #. type: table
  23518. #: guix-git/doc/guix.texi:16259
  23519. msgid "NetworkManager will not modify @code{resolv.conf}."
  23520. msgstr ""
  23521. #. type: item
  23522. #: guix-git/doc/guix.texi:16261
  23523. #, no-wrap
  23524. msgid "@code{vpn-plugins} (default: @code{'()})"
  23525. msgstr ""
  23526. #. type: table
  23527. #: guix-git/doc/guix.texi:16265
  23528. 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."
  23529. msgstr ""
  23530. #. type: cindex
  23531. #: guix-git/doc/guix.texi:16269
  23532. #, no-wrap
  23533. msgid "Connman"
  23534. msgstr ""
  23535. #. type: deffn
  23536. #: guix-git/doc/guix.texi:16270
  23537. #, no-wrap
  23538. msgid "{Scheme Variable} connman-service-type"
  23539. msgstr ""
  23540. #. type: deffn
  23541. #: guix-git/doc/guix.texi:16273
  23542. msgid "This is the service type to run @url{https://01.org/connman,Connman}, a network connection manager."
  23543. msgstr ""
  23544. #. type: deffn
  23545. #: guix-git/doc/guix.texi:16276
  23546. msgid "Its value must be an @code{connman-configuration} record as in this example:"
  23547. msgstr ""
  23548. #. type: lisp
  23549. #: guix-git/doc/guix.texi:16281
  23550. #, no-wrap
  23551. msgid ""
  23552. "(service connman-service-type\n"
  23553. " (connman-configuration\n"
  23554. " (disable-vpn? #t)))\n"
  23555. msgstr ""
  23556. #. type: deffn
  23557. #: guix-git/doc/guix.texi:16284
  23558. msgid "See below for details about @code{connman-configuration}."
  23559. msgstr ""
  23560. #. type: deftp
  23561. #: guix-git/doc/guix.texi:16286
  23562. #, no-wrap
  23563. msgid "{Data Type} connman-configuration"
  23564. msgstr ""
  23565. #. type: deftp
  23566. #: guix-git/doc/guix.texi:16288
  23567. msgid "Data Type representing the configuration of connman."
  23568. msgstr ""
  23569. #. type: item
  23570. #: guix-git/doc/guix.texi:16290
  23571. #, no-wrap
  23572. msgid "@code{connman} (default: @var{connman})"
  23573. msgstr ""
  23574. #. type: table
  23575. #: guix-git/doc/guix.texi:16292
  23576. msgid "The connman package to use."
  23577. msgstr ""
  23578. #. type: item
  23579. #: guix-git/doc/guix.texi:16293
  23580. #, no-wrap
  23581. msgid "@code{disable-vpn?} (default: @code{#f})"
  23582. msgstr ""
  23583. #. type: table
  23584. #: guix-git/doc/guix.texi:16295
  23585. msgid "When true, disable connman's vpn plugin."
  23586. msgstr ""
  23587. #. type: cindex
  23588. #: guix-git/doc/guix.texi:16298
  23589. #, no-wrap
  23590. msgid "WPA Supplicant"
  23591. msgstr ""
  23592. #. type: defvr
  23593. #: guix-git/doc/guix.texi:16299
  23594. #, no-wrap
  23595. msgid "{Scheme Variable} wpa-supplicant-service-type"
  23596. msgstr ""
  23597. #. type: defvr
  23598. #: guix-git/doc/guix.texi:16303
  23599. 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."
  23600. msgstr ""
  23601. #. type: deftp
  23602. #: guix-git/doc/guix.texi:16305
  23603. #, no-wrap
  23604. msgid "{Data Type} wpa-supplicant-configuration"
  23605. msgstr ""
  23606. #. type: deftp
  23607. #: guix-git/doc/guix.texi:16307
  23608. msgid "Data type representing the configuration of WPA Supplicant."
  23609. msgstr ""
  23610. #. type: deftp
  23611. #: guix-git/doc/guix.texi:16309 guix-git/doc/guix.texi:30962
  23612. msgid "It takes the following parameters:"
  23613. msgstr ""
  23614. #. type: item
  23615. #: guix-git/doc/guix.texi:16311
  23616. #, no-wrap
  23617. msgid "@code{wpa-supplicant} (default: @code{wpa-supplicant})"
  23618. msgstr ""
  23619. #. type: table
  23620. #: guix-git/doc/guix.texi:16313
  23621. msgid "The WPA Supplicant package to use."
  23622. msgstr ""
  23623. #. type: item
  23624. #: guix-git/doc/guix.texi:16314
  23625. #, no-wrap
  23626. msgid "@code{requirement} (default: @code{'(user-processes loopback syslogd)}"
  23627. msgstr ""
  23628. #. type: table
  23629. #: guix-git/doc/guix.texi:16316
  23630. msgid "List of services that should be started before WPA Supplicant starts."
  23631. msgstr ""
  23632. #. type: item
  23633. #: guix-git/doc/guix.texi:16317
  23634. #, no-wrap
  23635. msgid "@code{dbus?} (default: @code{#t})"
  23636. msgstr ""
  23637. #. type: table
  23638. #: guix-git/doc/guix.texi:16319
  23639. msgid "Whether to listen for requests on D-Bus."
  23640. msgstr ""
  23641. #. type: item
  23642. #: guix-git/doc/guix.texi:16320
  23643. #, no-wrap
  23644. msgid "@code{pid-file} (default: @code{\"/var/run/wpa_supplicant.pid\"})"
  23645. msgstr ""
  23646. #. type: table
  23647. #: guix-git/doc/guix.texi:16322
  23648. msgid "Where to store the PID file."
  23649. msgstr ""
  23650. #. type: item
  23651. #: guix-git/doc/guix.texi:16323 guix-git/doc/guix.texi:29407
  23652. #: guix-git/doc/guix.texi:29549
  23653. #, no-wrap
  23654. msgid "@code{interface} (default: @code{#f})"
  23655. msgstr ""
  23656. #. type: table
  23657. #: guix-git/doc/guix.texi:16326
  23658. msgid "If this is set, it must specify the name of a network interface that WPA supplicant will control."
  23659. msgstr ""
  23660. #. type: table
  23661. #: guix-git/doc/guix.texi:16329
  23662. msgid "Optional configuration file to use."
  23663. msgstr ""
  23664. #. type: table
  23665. #: guix-git/doc/guix.texi:16332
  23666. msgid "List of additional command-line arguments to pass to the daemon."
  23667. msgstr ""
  23668. #. type: cindex
  23669. #: guix-git/doc/guix.texi:16335
  23670. #, no-wrap
  23671. msgid "hostapd service, for Wi-Fi access points"
  23672. msgstr ""
  23673. #. type: cindex
  23674. #: guix-git/doc/guix.texi:16336
  23675. #, no-wrap
  23676. msgid "Wi-Fi access points, hostapd service"
  23677. msgstr ""
  23678. #. type: defvr
  23679. #: guix-git/doc/guix.texi:16337
  23680. #, no-wrap
  23681. msgid "{Scheme Variable} hostapd-service-type"
  23682. msgstr ""
  23683. #. type: defvr
  23684. #: guix-git/doc/guix.texi:16342
  23685. 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:"
  23686. msgstr ""
  23687. #. type: lisp
  23688. #: guix-git/doc/guix.texi:16350
  23689. #, no-wrap
  23690. msgid ""
  23691. ";; Use wlan1 to run the access point for \"My Network\".\n"
  23692. "(service hostapd-service-type\n"
  23693. " (hostapd-configuration\n"
  23694. " (interface \"wlan1\")\n"
  23695. " (ssid \"My Network\")\n"
  23696. " (channel 12)))\n"
  23697. msgstr ""
  23698. #. type: deftp
  23699. #: guix-git/doc/guix.texi:16353
  23700. #, no-wrap
  23701. msgid "{Data Type} hostapd-configuration"
  23702. msgstr ""
  23703. #. type: deftp
  23704. #: guix-git/doc/guix.texi:16356
  23705. msgid "This data type represents the configuration of the hostapd service, with the following fields:"
  23706. msgstr ""
  23707. #. type: item
  23708. #: guix-git/doc/guix.texi:16358
  23709. #, fuzzy, no-wrap
  23710. msgid "@code{package} (default: @code{hostapd})"
  23711. msgstr "@code{mate}(默认值:@code{mate})"
  23712. #. type: table
  23713. #: guix-git/doc/guix.texi:16360
  23714. #, fuzzy
  23715. msgid "The hostapd package to use."
  23716. msgstr "软件包数据类型。"
  23717. #. type: item
  23718. #: guix-git/doc/guix.texi:16361
  23719. #, fuzzy, no-wrap
  23720. msgid "@code{interface} (default: @code{\"wlan0\"})"
  23721. msgstr "@code{display}(默认值:@code{\":0\"})"
  23722. #. type: table
  23723. #: guix-git/doc/guix.texi:16363
  23724. msgid "The network interface to run the WiFi access point."
  23725. msgstr ""
  23726. #. type: code{#1}
  23727. #: guix-git/doc/guix.texi:16364
  23728. #, no-wrap
  23729. msgid "ssid"
  23730. msgstr ""
  23731. #. type: table
  23732. #: guix-git/doc/guix.texi:16367
  23733. msgid "The SSID (@dfn{service set identifier}), a string that identifies this network."
  23734. msgstr ""
  23735. #. type: item
  23736. #: guix-git/doc/guix.texi:16368
  23737. #, fuzzy, no-wrap
  23738. msgid "@code{broadcast-ssid?} (default: @code{#t})"
  23739. msgstr "@code{mate}(默认值:@code{mate})"
  23740. #. type: table
  23741. #: guix-git/doc/guix.texi:16370
  23742. msgid "Whether to broadcast this SSID."
  23743. msgstr ""
  23744. #. type: item
  23745. #: guix-git/doc/guix.texi:16371
  23746. #, fuzzy, no-wrap
  23747. msgid "@code{channel} (default: @code{1})"
  23748. msgstr "@code{challenge}(默认值:@code{#f})"
  23749. #. type: table
  23750. #: guix-git/doc/guix.texi:16373
  23751. msgid "The WiFi channel to use."
  23752. msgstr ""
  23753. #. type: item
  23754. #: guix-git/doc/guix.texi:16374
  23755. #, fuzzy, no-wrap
  23756. msgid "@code{driver} (default: @code{\"nl80211\"})"
  23757. msgstr "@code{display}(默认值:@code{\":0\"})"
  23758. #. type: table
  23759. #: guix-git/doc/guix.texi:16378
  23760. 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."
  23761. msgstr ""
  23762. #. type: item
  23763. #: guix-git/doc/guix.texi:16379 guix-git/doc/guix.texi:22248
  23764. #: guix-git/doc/guix.texi:25098
  23765. #, no-wrap
  23766. msgid "@code{extra-settings} (default: @code{\"\"})"
  23767. msgstr ""
  23768. #. type: table
  23769. #: guix-git/doc/guix.texi:16383
  23770. 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."
  23771. msgstr ""
  23772. #. type: defvr
  23773. #: guix-git/doc/guix.texi:16386
  23774. #, no-wrap
  23775. msgid "{Scheme Variable} simulated-wifi-service-type"
  23776. msgstr ""
  23777. #. type: defvr
  23778. #: guix-git/doc/guix.texi:16393
  23779. 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."
  23780. msgstr ""
  23781. #. type: defvr
  23782. #: guix-git/doc/guix.texi:16395
  23783. msgid "The service's value is a @code{hostapd-configuration} record."
  23784. msgstr ""
  23785. #. type: cindex
  23786. #: guix-git/doc/guix.texi:16397
  23787. #, no-wrap
  23788. msgid "iptables"
  23789. msgstr ""
  23790. #. type: defvr
  23791. #: guix-git/doc/guix.texi:16398
  23792. #, no-wrap
  23793. msgid "{Scheme Variable} iptables-service-type"
  23794. msgstr ""
  23795. #. type: defvr
  23796. #: guix-git/doc/guix.texi:16404
  23797. 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."
  23798. msgstr ""
  23799. #. type: lisp
  23800. #: guix-git/doc/guix.texi:16424
  23801. #, no-wrap
  23802. msgid ""
  23803. "(service iptables-service-type\n"
  23804. " (iptables-configuration\n"
  23805. " (ipv4-rules (plain-file \"iptables.rules\" \"*filter\n"
  23806. ":INPUT ACCEPT\n"
  23807. ":FORWARD ACCEPT\n"
  23808. ":OUTPUT ACCEPT\n"
  23809. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  23810. "-A INPUT -j REJECT --reject-with icmp-port-unreachable\n"
  23811. "COMMIT\n"
  23812. "\"))\n"
  23813. " (ipv6-rules (plain-file \"ip6tables.rules\" \"*filter\n"
  23814. ":INPUT ACCEPT\n"
  23815. ":FORWARD ACCEPT\n"
  23816. ":OUTPUT ACCEPT\n"
  23817. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  23818. "-A INPUT -j REJECT --reject-with icmp6-port-unreachable\n"
  23819. "COMMIT\n"
  23820. "\"))))\n"
  23821. msgstr ""
  23822. #. type: deftp
  23823. #: guix-git/doc/guix.texi:16427
  23824. #, no-wrap
  23825. msgid "{Data Type} iptables-configuration"
  23826. msgstr ""
  23827. #. type: deftp
  23828. #: guix-git/doc/guix.texi:16429
  23829. msgid "The data type representing the configuration of iptables."
  23830. msgstr ""
  23831. #. type: item
  23832. #: guix-git/doc/guix.texi:16431
  23833. #, no-wrap
  23834. msgid "@code{iptables} (default: @code{iptables})"
  23835. msgstr ""
  23836. #. type: table
  23837. #: guix-git/doc/guix.texi:16434
  23838. msgid "The iptables package that provides @code{iptables-restore} and @code{ip6tables-restore}."
  23839. msgstr ""
  23840. #. type: item
  23841. #: guix-git/doc/guix.texi:16434
  23842. #, no-wrap
  23843. msgid "@code{ipv4-rules} (default: @code{%iptables-accept-all-rules})"
  23844. msgstr ""
  23845. #. type: table
  23846. #: guix-git/doc/guix.texi:16438
  23847. 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})."
  23848. msgstr ""
  23849. #. type: item
  23850. #: guix-git/doc/guix.texi:16438
  23851. #, no-wrap
  23852. msgid "@code{ipv6-rules} (default: @code{%iptables-accept-all-rules})"
  23853. msgstr ""
  23854. #. type: table
  23855. #: guix-git/doc/guix.texi:16442
  23856. 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})."
  23857. msgstr ""
  23858. #. type: cindex
  23859. #: guix-git/doc/guix.texi:16445
  23860. #, no-wrap
  23861. msgid "nftables"
  23862. msgstr ""
  23863. #. type: defvr
  23864. #: guix-git/doc/guix.texi:16446
  23865. #, no-wrap
  23866. msgid "{Scheme Variable} nftables-service-type"
  23867. msgstr ""
  23868. #. type: defvr
  23869. #: guix-git/doc/guix.texi:16454
  23870. 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:"
  23871. msgstr ""
  23872. #. type: lisp
  23873. #: guix-git/doc/guix.texi:16457
  23874. #, no-wrap
  23875. msgid "(service nftables-service-type)\n"
  23876. msgstr ""
  23877. #. type: deftp
  23878. #: guix-git/doc/guix.texi:16460
  23879. #, fuzzy, no-wrap
  23880. msgid "{Data Type} nftables-configuration"
  23881. msgstr "{数据类型} build-machine"
  23882. #. type: deftp
  23883. #: guix-git/doc/guix.texi:16462
  23884. #, fuzzy
  23885. msgid "The data type representing the configuration of nftables."
  23886. msgstr "管理操作系统配置。"
  23887. #. type: item
  23888. #: guix-git/doc/guix.texi:16464
  23889. #, fuzzy, no-wrap
  23890. msgid "@code{package} (default: @code{nftables})"
  23891. msgstr "@code{xfce}(默认值:@code{xfce})"
  23892. #. type: table
  23893. #: guix-git/doc/guix.texi:16466
  23894. msgid "The nftables package that provides @command{nft}."
  23895. msgstr ""
  23896. #. type: item
  23897. #: guix-git/doc/guix.texi:16466
  23898. #, fuzzy, no-wrap
  23899. msgid "@code{ruleset} (default: @code{%default-nftables-ruleset})"
  23900. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  23901. #. type: table
  23902. #: guix-git/doc/guix.texi:16469
  23903. msgid "The nftables ruleset to use. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  23904. msgstr ""
  23905. #. type: cindex
  23906. #: guix-git/doc/guix.texi:16472
  23907. #, no-wrap
  23908. msgid "NTP (Network Time Protocol), service"
  23909. msgstr ""
  23910. #. type: cindex
  23911. #: guix-git/doc/guix.texi:16473
  23912. #, no-wrap
  23913. msgid "ntpd, service for the Network Time Protocol daemon"
  23914. msgstr ""
  23915. #. type: cindex
  23916. #: guix-git/doc/guix.texi:16474
  23917. #, no-wrap
  23918. msgid "real time clock"
  23919. msgstr ""
  23920. #. type: defvr
  23921. #: guix-git/doc/guix.texi:16475
  23922. #, no-wrap
  23923. msgid "{Scheme Variable} ntp-service-type"
  23924. msgstr ""
  23925. #. type: defvr
  23926. #: guix-git/doc/guix.texi:16479
  23927. 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."
  23928. msgstr ""
  23929. #. type: defvr
  23930. #: guix-git/doc/guix.texi:16482
  23931. msgid "The value of this service is an @code{ntpd-configuration} object, as described below."
  23932. msgstr ""
  23933. #. type: deftp
  23934. #: guix-git/doc/guix.texi:16484
  23935. #, no-wrap
  23936. msgid "{Data Type} ntp-configuration"
  23937. msgstr ""
  23938. #. type: deftp
  23939. #: guix-git/doc/guix.texi:16486
  23940. msgid "This is the data type for the NTP service configuration."
  23941. msgstr ""
  23942. #. type: item
  23943. #: guix-git/doc/guix.texi:16488
  23944. #, no-wrap
  23945. msgid "@code{servers} (default: @code{%ntp-servers})"
  23946. msgstr ""
  23947. #. type: table
  23948. #: guix-git/doc/guix.texi:16492
  23949. 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."
  23950. msgstr ""
  23951. #. type: item
  23952. #: guix-git/doc/guix.texi:16493
  23953. #, fuzzy, no-wrap
  23954. msgid "@code{allow-large-adjustment?} (default: @code{#t})"
  23955. msgstr "@code{challenge}(默认值:@code{#f})"
  23956. #. type: table
  23957. #: guix-git/doc/guix.texi:16496
  23958. msgid "This determines whether @command{ntpd} is allowed to make an initial adjustment of more than 1,000 seconds."
  23959. msgstr ""
  23960. #. type: item
  23961. #: guix-git/doc/guix.texi:16497
  23962. #, no-wrap
  23963. msgid "@code{ntp} (default: @code{ntp})"
  23964. msgstr ""
  23965. #. type: table
  23966. #: guix-git/doc/guix.texi:16499
  23967. msgid "The NTP package to use."
  23968. msgstr ""
  23969. #. type: defvr
  23970. #: guix-git/doc/guix.texi:16502
  23971. #, no-wrap
  23972. msgid "{Scheme Variable} %ntp-servers"
  23973. msgstr ""
  23974. #. type: defvr
  23975. #: guix-git/doc/guix.texi:16505
  23976. 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}."
  23977. msgstr ""
  23978. #. type: deftp
  23979. #: guix-git/doc/guix.texi:16507
  23980. #, no-wrap
  23981. msgid "{Data Type} ntp-server"
  23982. msgstr ""
  23983. #. type: deftp
  23984. #: guix-git/doc/guix.texi:16509
  23985. msgid "The data type representing the configuration of a NTP server."
  23986. msgstr ""
  23987. #. type: item
  23988. #: guix-git/doc/guix.texi:16511
  23989. #, fuzzy, no-wrap
  23990. msgid "@code{type} (default: @code{'server})"
  23991. msgstr "@code{mate}(默认值:@code{mate})"
  23992. #. type: table
  23993. #: guix-git/doc/guix.texi:16514
  23994. msgid "The type of the NTP server, given as a symbol. One of @code{'pool}, @code{'server}, @code{'peer}, @code{'broadcast} or @code{'manycastclient}."
  23995. msgstr ""
  23996. #. type: code{#1}
  23997. #: guix-git/doc/guix.texi:16515
  23998. #, no-wrap
  23999. msgid "address"
  24000. msgstr ""
  24001. #. type: table
  24002. #: guix-git/doc/guix.texi:16517
  24003. msgid "The address of the server, as a string."
  24004. msgstr ""
  24005. #. type: code{#1}
  24006. #: guix-git/doc/guix.texi:16518 guix-git/doc/guix.texi:31708
  24007. #: guix-git/doc/guix.texi:31728
  24008. #, no-wrap
  24009. msgid "options"
  24010. msgstr ""
  24011. #. type: table
  24012. #: guix-git/doc/guix.texi:16523
  24013. 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."
  24014. msgstr ""
  24015. #. type: example
  24016. #: guix-git/doc/guix.texi:16529
  24017. #, no-wrap
  24018. msgid ""
  24019. "(ntp-server\n"
  24020. " (type 'server)\n"
  24021. " (address \"some.ntp.server.org\")\n"
  24022. " (options `(iburst (version 3) (maxpoll 16) prefer))))\n"
  24023. msgstr ""
  24024. #. type: cindex
  24025. #: guix-git/doc/guix.texi:16533
  24026. #, no-wrap
  24027. msgid "OpenNTPD"
  24028. msgstr ""
  24029. #. type: deffn
  24030. #: guix-git/doc/guix.texi:16534
  24031. #, no-wrap
  24032. msgid "{Scheme Procedure} openntpd-service-type"
  24033. msgstr ""
  24034. #. type: deffn
  24035. #: guix-git/doc/guix.texi:16538
  24036. 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."
  24037. msgstr ""
  24038. #. type: lisp
  24039. #: guix-git/doc/guix.texi:16547
  24040. #, no-wrap
  24041. msgid ""
  24042. "(service\n"
  24043. " openntpd-service-type\n"
  24044. " (openntpd-configuration\n"
  24045. " (listen-on '(\"127.0.0.1\" \"::1\"))\n"
  24046. " (sensor '(\"udcf0 correction 70000\"))\n"
  24047. " (constraint-from '(\"www.gnu.org\"))\n"
  24048. " (constraints-from '(\"https://www.google.com/\"))))\n"
  24049. "\n"
  24050. msgstr ""
  24051. #. type: defvr
  24052. #: guix-git/doc/guix.texi:16551
  24053. #, no-wrap
  24054. msgid "{Scheme Variable} %openntpd-servers"
  24055. msgstr ""
  24056. #. type: defvr
  24057. #: guix-git/doc/guix.texi:16554
  24058. msgid "This variable is a list of the server addresses defined in @code{%ntp-servers}."
  24059. msgstr ""
  24060. #. type: deftp
  24061. #: guix-git/doc/guix.texi:16556
  24062. #, no-wrap
  24063. msgid "{Data Type} openntpd-configuration"
  24064. msgstr ""
  24065. #. type: item
  24066. #: guix-git/doc/guix.texi:16558
  24067. #, no-wrap
  24068. msgid "@code{openntpd} (default: @code{(file-append openntpd \"/sbin/ntpd\")})"
  24069. msgstr ""
  24070. #. type: table
  24071. #: guix-git/doc/guix.texi:16560
  24072. msgid "The openntpd executable to use."
  24073. msgstr ""
  24074. #. type: item
  24075. #: guix-git/doc/guix.texi:16560
  24076. #, no-wrap
  24077. msgid "@code{listen-on} (default: @code{'(\"127.0.0.1\" \"::1\")})"
  24078. msgstr ""
  24079. #. type: table
  24080. #: guix-git/doc/guix.texi:16562
  24081. msgid "A list of local IP addresses or hostnames the ntpd daemon should listen on."
  24082. msgstr ""
  24083. #. type: item
  24084. #: guix-git/doc/guix.texi:16562
  24085. #, no-wrap
  24086. msgid "@code{query-from} (default: @code{'()})"
  24087. msgstr ""
  24088. #. type: table
  24089. #: guix-git/doc/guix.texi:16564
  24090. msgid "A list of local IP address the ntpd daemon should use for outgoing queries."
  24091. msgstr ""
  24092. #. type: item
  24093. #: guix-git/doc/guix.texi:16564
  24094. #, no-wrap
  24095. msgid "@code{sensor} (default: @code{'()})"
  24096. msgstr ""
  24097. #. type: table
  24098. #: guix-git/doc/guix.texi:16569
  24099. 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."
  24100. msgstr ""
  24101. #. type: item
  24102. #: guix-git/doc/guix.texi:16569
  24103. #, fuzzy, no-wrap
  24104. msgid "@code{server} (default: @code{'()})"
  24105. msgstr "@code{features} (@code{'()})"
  24106. #. type: table
  24107. #: guix-git/doc/guix.texi:16571
  24108. msgid "Specify a list of IP addresses or hostnames of NTP servers to synchronize to."
  24109. msgstr ""
  24110. #. type: item
  24111. #: guix-git/doc/guix.texi:16571
  24112. #, fuzzy, no-wrap
  24113. msgid "@code{servers} (default: @code{%openntp-servers})"
  24114. msgstr "@code{speed}(默认值:@code{1.0})"
  24115. #. type: table
  24116. #: guix-git/doc/guix.texi:16573
  24117. msgid "Specify a list of IP addresses or hostnames of NTP pools to synchronize to."
  24118. msgstr ""
  24119. #. type: item
  24120. #: guix-git/doc/guix.texi:16573
  24121. #, no-wrap
  24122. msgid "@code{constraint-from} (default: @code{'()})"
  24123. msgstr ""
  24124. #. type: table
  24125. #: guix-git/doc/guix.texi:16580
  24126. 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."
  24127. msgstr ""
  24128. #. type: item
  24129. #: guix-git/doc/guix.texi:16580
  24130. #, no-wrap
  24131. msgid "@code{constraints-from} (default: @code{'()})"
  24132. msgstr ""
  24133. #. type: table
  24134. #: guix-git/doc/guix.texi:16584
  24135. 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."
  24136. msgstr ""
  24137. #. type: cindex
  24138. #: guix-git/doc/guix.texi:16587
  24139. #, no-wrap
  24140. msgid "inetd"
  24141. msgstr ""
  24142. #. type: deffn
  24143. #: guix-git/doc/guix.texi:16588
  24144. #, no-wrap
  24145. msgid "{Scheme variable} inetd-service-type"
  24146. msgstr ""
  24147. #. type: deffn
  24148. #: guix-git/doc/guix.texi:16593
  24149. 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."
  24150. msgstr ""
  24151. #. type: deffn
  24152. #: guix-git/doc/guix.texi:16599
  24153. 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}:"
  24154. msgstr ""
  24155. #. type: lisp
  24156. #: guix-git/doc/guix.texi:16622
  24157. #, no-wrap
  24158. msgid ""
  24159. "(service\n"
  24160. " inetd-service-type\n"
  24161. " (inetd-configuration\n"
  24162. " (entries (list\n"
  24163. " (inetd-entry\n"
  24164. " (name \"echo\")\n"
  24165. " (socket-type 'stream)\n"
  24166. " (protocol \"tcp\")\n"
  24167. " (wait? #f)\n"
  24168. " (user \"root\"))\n"
  24169. " (inetd-entry\n"
  24170. " (node \"127.0.0.1\")\n"
  24171. " (name \"smtp\")\n"
  24172. " (socket-type 'stream)\n"
  24173. " (protocol \"tcp\")\n"
  24174. " (wait? #f)\n"
  24175. " (user \"root\")\n"
  24176. " (program (file-append openssh \"/bin/ssh\"))\n"
  24177. " (arguments\n"
  24178. " '(\"ssh\" \"-qT\" \"-i\" \"/path/to/ssh_key\"\n"
  24179. " \"-W\" \"smtp-server:25\" \"user@@hostname\")))))))\n"
  24180. msgstr ""
  24181. #. type: deffn
  24182. #: guix-git/doc/guix.texi:16625
  24183. msgid "See below for more details about @code{inetd-configuration}."
  24184. msgstr ""
  24185. #. type: deftp
  24186. #: guix-git/doc/guix.texi:16627
  24187. #, no-wrap
  24188. msgid "{Data Type} inetd-configuration"
  24189. msgstr ""
  24190. #. type: deftp
  24191. #: guix-git/doc/guix.texi:16629
  24192. msgid "Data type representing the configuration of @command{inetd}."
  24193. msgstr ""
  24194. #. type: item
  24195. #: guix-git/doc/guix.texi:16631
  24196. #, no-wrap
  24197. msgid "@code{program} (default: @code{(file-append inetutils \"/libexec/inetd\")})"
  24198. msgstr ""
  24199. #. type: table
  24200. #: guix-git/doc/guix.texi:16633
  24201. msgid "The @command{inetd} executable to use."
  24202. msgstr ""
  24203. #. type: item
  24204. #: guix-git/doc/guix.texi:16634 guix-git/doc/guix.texi:25932
  24205. #, no-wrap
  24206. msgid "@code{entries} (default: @code{'()})"
  24207. msgstr ""
  24208. #. type: table
  24209. #: guix-git/doc/guix.texi:16637
  24210. msgid "A list of @command{inetd} service entries. Each entry should be created by the @code{inetd-entry} constructor."
  24211. msgstr ""
  24212. #. type: deftp
  24213. #: guix-git/doc/guix.texi:16640
  24214. #, no-wrap
  24215. msgid "{Data Type} inetd-entry"
  24216. msgstr ""
  24217. #. type: deftp
  24218. #: guix-git/doc/guix.texi:16644
  24219. msgid "Data type representing an entry in the @command{inetd} configuration. Each entry corresponds to a socket where @command{inetd} will listen for requests."
  24220. msgstr ""
  24221. #. type: item
  24222. #: guix-git/doc/guix.texi:16646
  24223. #, no-wrap
  24224. msgid "@code{node} (default: @code{#f})"
  24225. msgstr ""
  24226. #. type: table
  24227. #: guix-git/doc/guix.texi:16651
  24228. 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."
  24229. msgstr ""
  24230. #. type: table
  24231. #: guix-git/doc/guix.texi:16653
  24232. msgid "A string, the name must correspond to an entry in @code{/etc/services}."
  24233. msgstr ""
  24234. #. type: code{#1}
  24235. #: guix-git/doc/guix.texi:16653
  24236. #, no-wrap
  24237. msgid "socket-type"
  24238. msgstr ""
  24239. #. type: table
  24240. #: guix-git/doc/guix.texi:16656
  24241. msgid "One of @code{'stream}, @code{'dgram}, @code{'raw}, @code{'rdm} or @code{'seqpacket}."
  24242. msgstr ""
  24243. #. type: code{#1}
  24244. #: guix-git/doc/guix.texi:16656
  24245. #, no-wrap
  24246. msgid "protocol"
  24247. msgstr ""
  24248. #. type: table
  24249. #: guix-git/doc/guix.texi:16658
  24250. msgid "A string, must correspond to an entry in @code{/etc/protocols}."
  24251. msgstr ""
  24252. #. type: item
  24253. #: guix-git/doc/guix.texi:16658
  24254. #, no-wrap
  24255. msgid "@code{wait?} (default: @code{#t})"
  24256. msgstr ""
  24257. #. type: table
  24258. #: guix-git/doc/guix.texi:16661
  24259. msgid "Whether @command{inetd} should wait for the server to exit before listening to new service requests."
  24260. msgstr ""
  24261. #. type: table
  24262. #: guix-git/doc/guix.texi:16666
  24263. 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\"}."
  24264. msgstr ""
  24265. #. type: item
  24266. #: guix-git/doc/guix.texi:16666
  24267. #, no-wrap
  24268. msgid "@code{program} (default: @code{\"internal\"})"
  24269. msgstr ""
  24270. #. type: table
  24271. #: guix-git/doc/guix.texi:16669
  24272. msgid "The server program which will serve the requests, or @code{\"internal\"} if @command{inetd} should use a built-in service."
  24273. msgstr ""
  24274. #. type: table
  24275. #: guix-git/doc/guix.texi:16674
  24276. 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\")}."
  24277. msgstr ""
  24278. #. type: deftp
  24279. #: guix-git/doc/guix.texi:16678
  24280. msgid "@xref{Configuration file,,, inetutils, GNU Inetutils} for a more detailed discussion of each configuration field."
  24281. msgstr ""
  24282. #. type: cindex
  24283. #: guix-git/doc/guix.texi:16680
  24284. #, no-wrap
  24285. msgid "Tor"
  24286. msgstr ""
  24287. #. type: defvr
  24288. #: guix-git/doc/guix.texi:16681
  24289. #, no-wrap
  24290. msgid "{Scheme Variable} tor-service-type"
  24291. msgstr ""
  24292. #. type: defvr
  24293. #: guix-git/doc/guix.texi:16686
  24294. 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."
  24295. msgstr ""
  24296. #. type: deftp
  24297. #: guix-git/doc/guix.texi:16689
  24298. #, no-wrap
  24299. msgid "{Data Type} tor-configuration"
  24300. msgstr ""
  24301. #. type: item
  24302. #: guix-git/doc/guix.texi:16691
  24303. #, no-wrap
  24304. msgid "@code{tor} (default: @code{tor})"
  24305. msgstr ""
  24306. #. type: table
  24307. #: guix-git/doc/guix.texi:16696
  24308. 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."
  24309. msgstr ""
  24310. #. type: item
  24311. #: guix-git/doc/guix.texi:16697
  24312. #, no-wrap
  24313. msgid "@code{config-file} (default: @code{(plain-file \"empty\" \"\")})"
  24314. msgstr ""
  24315. #. type: table
  24316. #: guix-git/doc/guix.texi:16703
  24317. 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."
  24318. msgstr ""
  24319. #. type: item
  24320. #: guix-git/doc/guix.texi:16704
  24321. #, no-wrap
  24322. msgid "@code{hidden-services} (default: @code{'()})"
  24323. msgstr ""
  24324. #. type: table
  24325. #: guix-git/doc/guix.texi:16710
  24326. 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."
  24327. msgstr ""
  24328. #. type: item
  24329. #: guix-git/doc/guix.texi:16711
  24330. #, no-wrap
  24331. msgid "@code{socks-socket-type} (default: @code{'tcp})"
  24332. msgstr ""
  24333. #. type: table
  24334. #: guix-git/doc/guix.texi:16718
  24335. 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."
  24336. msgstr ""
  24337. #. type: table
  24338. #: guix-git/doc/guix.texi:16723
  24339. 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."
  24340. msgstr ""
  24341. #. type: item
  24342. #: guix-git/doc/guix.texi:16724
  24343. #, fuzzy, no-wrap
  24344. msgid "@code{control-socket?} (default: @code{#f})"
  24345. msgstr "@code{journal-content}(默认值:@code{#f})"
  24346. #. type: table
  24347. #: guix-git/doc/guix.texi:16730
  24348. 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."
  24349. msgstr ""
  24350. #. type: cindex
  24351. #: guix-git/doc/guix.texi:16734
  24352. #, no-wrap
  24353. msgid "hidden service"
  24354. msgstr ""
  24355. #. type: deffn
  24356. #: guix-git/doc/guix.texi:16735
  24357. #, no-wrap
  24358. msgid "{Scheme Procedure} tor-hidden-service @var{name} @var{mapping}"
  24359. msgstr ""
  24360. #. type: deffn
  24361. #: guix-git/doc/guix.texi:16738
  24362. 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:"
  24363. msgstr ""
  24364. #. type: example
  24365. #: guix-git/doc/guix.texi:16742
  24366. #, no-wrap
  24367. msgid ""
  24368. " '((22 \"127.0.0.1:22\")\n"
  24369. " (80 \"127.0.0.1:8080\"))\n"
  24370. msgstr ""
  24371. #. type: deffn
  24372. #: guix-git/doc/guix.texi:16746
  24373. 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."
  24374. msgstr ""
  24375. #. type: deffn
  24376. #: guix-git/doc/guix.texi:16750
  24377. 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."
  24378. msgstr ""
  24379. #. type: deffn
  24380. #: guix-git/doc/guix.texi:16753
  24381. msgid "See @uref{https://www.torproject.org/docs/tor-hidden-service.html.en, the Tor project's documentation} for more information."
  24382. msgstr ""
  24383. #. type: Plain text
  24384. #: guix-git/doc/guix.texi:16756
  24385. msgid "The @code{(gnu services rsync)} module provides the following services:"
  24386. msgstr ""
  24387. #. type: Plain text
  24388. #: guix-git/doc/guix.texi:16760
  24389. 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."
  24390. msgstr ""
  24391. #. type: deffn
  24392. #: guix-git/doc/guix.texi:16761
  24393. #, no-wrap
  24394. msgid "{Scheme Variable} rsync-service-type"
  24395. msgstr ""
  24396. #. type: deffn
  24397. #: guix-git/doc/guix.texi:16765
  24398. 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:"
  24399. msgstr ""
  24400. #. type: lisp
  24401. #: guix-git/doc/guix.texi:16768
  24402. #, no-wrap
  24403. msgid "(service rsync-service-type)\n"
  24404. msgstr ""
  24405. #. type: deffn
  24406. #: guix-git/doc/guix.texi:16771
  24407. msgid "See below for details about @code{rsync-configuration}."
  24408. msgstr ""
  24409. #. type: deftp
  24410. #: guix-git/doc/guix.texi:16773
  24411. #, no-wrap
  24412. msgid "{Data Type} rsync-configuration"
  24413. msgstr ""
  24414. #. type: deftp
  24415. #: guix-git/doc/guix.texi:16775
  24416. msgid "Data type representing the configuration for @code{rsync-service}."
  24417. msgstr ""
  24418. #. type: item
  24419. #: guix-git/doc/guix.texi:16777
  24420. #, no-wrap
  24421. msgid "@code{package} (default: @var{rsync})"
  24422. msgstr ""
  24423. #. type: table
  24424. #: guix-git/doc/guix.texi:16779
  24425. msgid "@code{rsync} package to use."
  24426. msgstr ""
  24427. #. type: item
  24428. #: guix-git/doc/guix.texi:16780
  24429. #, no-wrap
  24430. msgid "@code{port-number} (default: @code{873})"
  24431. msgstr ""
  24432. #. type: table
  24433. #: guix-git/doc/guix.texi:16784
  24434. 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."
  24435. msgstr ""
  24436. #. type: item
  24437. #: guix-git/doc/guix.texi:16785
  24438. #, no-wrap
  24439. msgid "@code{pid-file} (default: @code{\"/var/run/rsyncd/rsyncd.pid\"})"
  24440. msgstr ""
  24441. #. type: table
  24442. #: guix-git/doc/guix.texi:16787
  24443. msgid "Name of the file where @command{rsync} writes its PID."
  24444. msgstr ""
  24445. #. type: item
  24446. #: guix-git/doc/guix.texi:16788
  24447. #, no-wrap
  24448. msgid "@code{lock-file} (default: @code{\"/var/run/rsyncd/rsyncd.lock\"})"
  24449. msgstr ""
  24450. #. type: table
  24451. #: guix-git/doc/guix.texi:16790
  24452. msgid "Name of the file where @command{rsync} writes its lock file."
  24453. msgstr ""
  24454. #. type: item
  24455. #: guix-git/doc/guix.texi:16791
  24456. #, no-wrap
  24457. msgid "@code{log-file} (default: @code{\"/var/log/rsyncd.log\"})"
  24458. msgstr ""
  24459. #. type: table
  24460. #: guix-git/doc/guix.texi:16793
  24461. msgid "Name of the file where @command{rsync} writes its log file."
  24462. msgstr ""
  24463. #. type: item
  24464. #: guix-git/doc/guix.texi:16794
  24465. #, no-wrap
  24466. msgid "@code{use-chroot?} (default: @var{#t})"
  24467. msgstr ""
  24468. #. type: table
  24469. #: guix-git/doc/guix.texi:16796
  24470. msgid "Whether to use chroot for @command{rsync} shared directory."
  24471. msgstr ""
  24472. #. type: item
  24473. #: guix-git/doc/guix.texi:16797
  24474. #, no-wrap
  24475. msgid "@code{share-path} (default: @file{/srv/rsync})"
  24476. msgstr ""
  24477. #. type: table
  24478. #: guix-git/doc/guix.texi:16799
  24479. msgid "Location of the @command{rsync} shared directory."
  24480. msgstr ""
  24481. #. type: item
  24482. #: guix-git/doc/guix.texi:16800
  24483. #, no-wrap
  24484. msgid "@code{share-comment} (default: @code{\"Rsync share\"})"
  24485. msgstr ""
  24486. #. type: table
  24487. #: guix-git/doc/guix.texi:16802
  24488. msgid "Comment of the @command{rsync} shared directory."
  24489. msgstr ""
  24490. #. type: item
  24491. #: guix-git/doc/guix.texi:16803
  24492. #, no-wrap
  24493. msgid "@code{read-only?} (default: @var{#f})"
  24494. msgstr ""
  24495. #. type: table
  24496. #: guix-git/doc/guix.texi:16805
  24497. msgid "Read-write permissions to shared directory."
  24498. msgstr ""
  24499. #. type: item
  24500. #: guix-git/doc/guix.texi:16806
  24501. #, no-wrap
  24502. msgid "@code{timeout} (default: @code{300})"
  24503. msgstr ""
  24504. #. type: table
  24505. #: guix-git/doc/guix.texi:16808
  24506. msgid "I/O timeout in seconds."
  24507. msgstr ""
  24508. #. type: item
  24509. #: guix-git/doc/guix.texi:16809
  24510. #, no-wrap
  24511. msgid "@code{user} (default: @var{\"root\"})"
  24512. msgstr ""
  24513. #. type: table
  24514. #: guix-git/doc/guix.texi:16811
  24515. msgid "Owner of the @code{rsync} process."
  24516. msgstr ""
  24517. #. type: item
  24518. #: guix-git/doc/guix.texi:16812
  24519. #, no-wrap
  24520. msgid "@code{group} (default: @var{\"root\"})"
  24521. msgstr ""
  24522. #. type: table
  24523. #: guix-git/doc/guix.texi:16814
  24524. msgid "Group of the @code{rsync} process."
  24525. msgstr ""
  24526. #. type: item
  24527. #: guix-git/doc/guix.texi:16815
  24528. #, no-wrap
  24529. msgid "@code{uid} (default: @var{\"rsyncd\"})"
  24530. msgstr ""
  24531. #. type: table
  24532. #: guix-git/doc/guix.texi:16818
  24533. 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}."
  24534. msgstr ""
  24535. #. type: item
  24536. #: guix-git/doc/guix.texi:16819
  24537. #, no-wrap
  24538. msgid "@code{gid} (default: @var{\"rsyncd\"})"
  24539. msgstr ""
  24540. #. type: table
  24541. #: guix-git/doc/guix.texi:16821 guix-git/doc/guix.texi:17264
  24542. msgid "Group name or group ID that will be used when accessing the module."
  24543. msgstr ""
  24544. #. type: Plain text
  24545. #: guix-git/doc/guix.texi:16826
  24546. msgid "The @code{(gnu services syncthing)} module provides the following services:"
  24547. msgstr ""
  24548. #. type: cindex
  24549. #: guix-git/doc/guix.texi:16826
  24550. #, no-wrap
  24551. msgid "syncthing"
  24552. msgstr ""
  24553. #. type: Plain text
  24554. #: guix-git/doc/guix.texi:16831
  24555. 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."
  24556. msgstr ""
  24557. #. type: deffn
  24558. #: guix-git/doc/guix.texi:16832
  24559. #, no-wrap
  24560. msgid "{Scheme Variable} syncthing-service-type"
  24561. msgstr ""
  24562. #. type: deffn
  24563. #: guix-git/doc/guix.texi:16836
  24564. 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:"
  24565. msgstr ""
  24566. #. type: lisp
  24567. #: guix-git/doc/guix.texi:16840
  24568. #, no-wrap
  24569. msgid ""
  24570. "(service syncthing-service-type\n"
  24571. " (syncthing-configuration (user \"alice\")))\n"
  24572. msgstr ""
  24573. #. type: deffn
  24574. #: guix-git/doc/guix.texi:16843
  24575. msgid "See below for details about @code{syncthing-configuration}."
  24576. msgstr ""
  24577. #. type: deftp
  24578. #: guix-git/doc/guix.texi:16844
  24579. #, fuzzy, no-wrap
  24580. msgid "{Data Type} syncthing-configuration"
  24581. msgstr "{数据类型} build-machine"
  24582. #. type: deftp
  24583. #: guix-git/doc/guix.texi:16846
  24584. #, fuzzy
  24585. msgid "Data type representing the configuration for @code{syncthing-service-type}."
  24586. msgstr "管理操作系统配置。"
  24587. #. type: item
  24588. #: guix-git/doc/guix.texi:16848
  24589. #, fuzzy, no-wrap
  24590. msgid "@code{syncthing} (default: @var{syncthing})"
  24591. msgstr "@code{xfce}(默认值:@code{xfce})"
  24592. #. type: table
  24593. #: guix-git/doc/guix.texi:16850
  24594. #, fuzzy
  24595. msgid "@code{syncthing} package to use."
  24596. msgstr "软件包数据类型。"
  24597. #. type: item
  24598. #: guix-git/doc/guix.texi:16851
  24599. #, fuzzy, no-wrap
  24600. msgid "@code{arguments} (default: @var{'()})"
  24601. msgstr "@code{features} (@code{'()})"
  24602. #. type: table
  24603. #: guix-git/doc/guix.texi:16853
  24604. msgid "List of command-line arguments passing to @code{syncthing} binary."
  24605. msgstr ""
  24606. #. type: item
  24607. #: guix-git/doc/guix.texi:16854
  24608. #, fuzzy, no-wrap
  24609. msgid "@code{logflags} (default: @var{0})"
  24610. msgstr "@code{challenge}(默认值:@code{#f})"
  24611. #. type: table
  24612. #: guix-git/doc/guix.texi:16857
  24613. msgid "Sum of logging flags, see @uref{https://docs.syncthing.net/users/syncthing.html#cmdoption-logflags, Syncthing documentation logflags}."
  24614. msgstr ""
  24615. #. type: item
  24616. #: guix-git/doc/guix.texi:16858
  24617. #, fuzzy, no-wrap
  24618. msgid "@code{user} (default: @var{#f})"
  24619. msgstr "@code{challenge}(默认值:@code{#f})"
  24620. #. type: table
  24621. #: guix-git/doc/guix.texi:16861
  24622. msgid "The user as which the Syncthing service is to be run. This assumes that the specified user exists."
  24623. msgstr ""
  24624. #. type: item
  24625. #: guix-git/doc/guix.texi:16862
  24626. #, fuzzy, no-wrap
  24627. msgid "@code{group} (default: @var{\"users\"})"
  24628. msgstr "@code{gnome}(默认值:@code{gnome})"
  24629. #. type: table
  24630. #: guix-git/doc/guix.texi:16865
  24631. msgid "The group as which the Syncthing service is to be run. This assumes that the specified group exists."
  24632. msgstr ""
  24633. #. type: item
  24634. #: guix-git/doc/guix.texi:16866
  24635. #, fuzzy, no-wrap
  24636. msgid "@code{home} (default: @var{#f})"
  24637. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  24638. #. type: table
  24639. #: guix-git/doc/guix.texi:16869
  24640. msgid "Common configuration and data directory. The default configuration directory is @file{$HOME} of the specified Syncthing @code{user}."
  24641. msgstr ""
  24642. #. type: Plain text
  24643. #: guix-git/doc/guix.texi:16875
  24644. msgid "Furthermore, @code{(gnu services ssh)} provides the following services."
  24645. msgstr ""
  24646. #. type: cindex
  24647. #: guix-git/doc/guix.texi:16875 guix-git/doc/guix.texi:16914
  24648. #: guix-git/doc/guix.texi:33575
  24649. #, no-wrap
  24650. msgid "SSH"
  24651. msgstr ""
  24652. #. type: cindex
  24653. #: guix-git/doc/guix.texi:16876 guix-git/doc/guix.texi:16915
  24654. #: guix-git/doc/guix.texi:33576
  24655. #, no-wrap
  24656. msgid "SSH server"
  24657. msgstr ""
  24658. #. type: deffn
  24659. #: guix-git/doc/guix.texi:16878
  24660. #, no-wrap
  24661. msgid "{Scheme Procedure} lsh-service [#:host-key \"/etc/lsh/host-key\"] @"
  24662. msgstr ""
  24663. #. type: deffn
  24664. #: guix-git/doc/guix.texi:16887
  24665. 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."
  24666. msgstr ""
  24667. #. type: deffn
  24668. #: guix-git/doc/guix.texi:16893
  24669. 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}."
  24670. msgstr ""
  24671. #. type: deffn
  24672. #: guix-git/doc/guix.texi:16897
  24673. 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."
  24674. msgstr ""
  24675. #. type: deffn
  24676. #: guix-git/doc/guix.texi:16902
  24677. 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})."
  24678. msgstr ""
  24679. #. type: deffn
  24680. #: guix-git/doc/guix.texi:16906
  24681. 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."
  24682. msgstr ""
  24683. #. type: deffn
  24684. #: guix-git/doc/guix.texi:16910
  24685. 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."
  24686. msgstr ""
  24687. #. type: deffn
  24688. #: guix-git/doc/guix.texi:16912
  24689. msgid "The other options should be self-descriptive."
  24690. msgstr ""
  24691. #. type: deffn
  24692. #: guix-git/doc/guix.texi:16916
  24693. #, no-wrap
  24694. msgid "{Scheme Variable} openssh-service-type"
  24695. msgstr ""
  24696. #. type: deffn
  24697. #: guix-git/doc/guix.texi:16920
  24698. 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:"
  24699. msgstr ""
  24700. #. type: lisp
  24701. #: guix-git/doc/guix.texi:16929
  24702. #, no-wrap
  24703. msgid ""
  24704. "(service openssh-service-type\n"
  24705. " (openssh-configuration\n"
  24706. " (x11-forwarding? #t)\n"
  24707. " (permit-root-login 'without-password)\n"
  24708. " (authorized-keys\n"
  24709. " `((\"alice\" ,(local-file \"alice.pub\"))\n"
  24710. " (\"bob\" ,(local-file \"bob.pub\"))))))\n"
  24711. msgstr ""
  24712. #. type: deffn
  24713. #: guix-git/doc/guix.texi:16932
  24714. msgid "See below for details about @code{openssh-configuration}."
  24715. msgstr ""
  24716. #. type: deffn
  24717. #: guix-git/doc/guix.texi:16935
  24718. msgid "This service can be extended with extra authorized keys, as in this example:"
  24719. msgstr ""
  24720. #. type: lisp
  24721. #: guix-git/doc/guix.texi:16940
  24722. #, no-wrap
  24723. msgid ""
  24724. "(service-extension openssh-service-type\n"
  24725. " (const `((\"charlie\"\n"
  24726. " ,(local-file \"charlie.pub\")))))\n"
  24727. msgstr ""
  24728. #. type: deftp
  24729. #: guix-git/doc/guix.texi:16943
  24730. #, no-wrap
  24731. msgid "{Data Type} openssh-configuration"
  24732. msgstr ""
  24733. #. type: deftp
  24734. #: guix-git/doc/guix.texi:16945
  24735. msgid "This is the configuration record for OpenSSH's @command{sshd}."
  24736. msgstr ""
  24737. #. type: item
  24738. #: guix-git/doc/guix.texi:16947
  24739. #, fuzzy, no-wrap
  24740. msgid "@code{openssh} (default @var{openssh})"
  24741. msgstr "@code{gnome}(默认值:@code{gnome})"
  24742. #. type: table
  24743. #: guix-git/doc/guix.texi:16949
  24744. #, fuzzy
  24745. msgid "The Openssh package to use."
  24746. msgstr "软件包数据类型。"
  24747. #. type: item
  24748. #: guix-git/doc/guix.texi:16950
  24749. #, no-wrap
  24750. msgid "@code{pid-file} (default: @code{\"/var/run/sshd.pid\"})"
  24751. msgstr ""
  24752. #. type: table
  24753. #: guix-git/doc/guix.texi:16952
  24754. msgid "Name of the file where @command{sshd} writes its PID."
  24755. msgstr ""
  24756. #. type: item
  24757. #: guix-git/doc/guix.texi:16953
  24758. #, no-wrap
  24759. msgid "@code{port-number} (default: @code{22})"
  24760. msgstr ""
  24761. #. type: table
  24762. #: guix-git/doc/guix.texi:16955
  24763. msgid "TCP port on which @command{sshd} listens for incoming connections."
  24764. msgstr ""
  24765. #. type: item
  24766. #: guix-git/doc/guix.texi:16956
  24767. #, no-wrap
  24768. msgid "@code{permit-root-login} (default: @code{#f})"
  24769. msgstr ""
  24770. #. type: table
  24771. #: guix-git/doc/guix.texi:16961
  24772. 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{'without-password}, then root logins are permitted but not with password-based authentication."
  24773. msgstr ""
  24774. #. type: item
  24775. #: guix-git/doc/guix.texi:16962 guix-git/doc/guix.texi:17123
  24776. #, no-wrap
  24777. msgid "@code{allow-empty-passwords?} (default: @code{#f})"
  24778. msgstr ""
  24779. #. type: table
  24780. #: guix-git/doc/guix.texi:16965
  24781. msgid "When true, users with empty passwords may log in. When false, they may not."
  24782. msgstr ""
  24783. #. type: item
  24784. #: guix-git/doc/guix.texi:16966 guix-git/doc/guix.texi:17126
  24785. #, no-wrap
  24786. msgid "@code{password-authentication?} (default: @code{#t})"
  24787. msgstr ""
  24788. #. type: table
  24789. #: guix-git/doc/guix.texi:16969
  24790. msgid "When true, users may log in with their password. When false, they have other authentication methods."
  24791. msgstr ""
  24792. #. type: item
  24793. #: guix-git/doc/guix.texi:16970
  24794. #, no-wrap
  24795. msgid "@code{public-key-authentication?} (default: @code{#t})"
  24796. msgstr ""
  24797. #. type: table
  24798. #: guix-git/doc/guix.texi:16973
  24799. msgid "When true, users may log in using public key authentication. When false, users have to use other authentication method."
  24800. msgstr ""
  24801. #. type: table
  24802. #: guix-git/doc/guix.texi:16976
  24803. msgid "Authorized public keys are stored in @file{~/.ssh/authorized_keys}. This is used only by protocol version 2."
  24804. msgstr ""
  24805. #. type: item
  24806. #: guix-git/doc/guix.texi:16977
  24807. #, no-wrap
  24808. msgid "@code{x11-forwarding?} (default: @code{#f})"
  24809. msgstr ""
  24810. #. type: table
  24811. #: guix-git/doc/guix.texi:16981
  24812. msgid "When true, forwarding of X11 graphical client connections is enabled---in other words, @command{ssh} options @option{-X} and @option{-Y} will work."
  24813. msgstr ""
  24814. #. type: item
  24815. #: guix-git/doc/guix.texi:16982
  24816. #, no-wrap
  24817. msgid "@code{allow-agent-forwarding?} (default: @code{#t})"
  24818. msgstr ""
  24819. #. type: table
  24820. #: guix-git/doc/guix.texi:16984
  24821. msgid "Whether to allow agent forwarding."
  24822. msgstr ""
  24823. #. type: item
  24824. #: guix-git/doc/guix.texi:16985
  24825. #, no-wrap
  24826. msgid "@code{allow-tcp-forwarding?} (default: @code{#t})"
  24827. msgstr ""
  24828. #. type: table
  24829. #: guix-git/doc/guix.texi:16987
  24830. msgid "Whether to allow TCP forwarding."
  24831. msgstr ""
  24832. #. type: item
  24833. #: guix-git/doc/guix.texi:16988
  24834. #, no-wrap
  24835. msgid "@code{gateway-ports?} (default: @code{#f})"
  24836. msgstr ""
  24837. #. type: table
  24838. #: guix-git/doc/guix.texi:16990
  24839. msgid "Whether to allow gateway ports."
  24840. msgstr ""
  24841. #. type: item
  24842. #: guix-git/doc/guix.texi:16991
  24843. #, no-wrap
  24844. msgid "@code{challenge-response-authentication?} (default: @code{#f})"
  24845. msgstr ""
  24846. #. type: table
  24847. #: guix-git/doc/guix.texi:16994
  24848. msgid "Specifies whether challenge response authentication is allowed (e.g.@: via PAM)."
  24849. msgstr ""
  24850. #. type: item
  24851. #: guix-git/doc/guix.texi:16995
  24852. #, no-wrap
  24853. msgid "@code{use-pam?} (default: @code{#t})"
  24854. msgstr ""
  24855. #. type: table
  24856. #: guix-git/doc/guix.texi:17001
  24857. 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."
  24858. msgstr ""
  24859. #. type: table
  24860. #: guix-git/doc/guix.texi:17006
  24861. 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?}."
  24862. msgstr ""
  24863. #. type: item
  24864. #: guix-git/doc/guix.texi:17007
  24865. #, no-wrap
  24866. msgid "@code{print-last-log?} (default: @code{#t})"
  24867. msgstr ""
  24868. #. type: table
  24869. #: guix-git/doc/guix.texi:17010
  24870. msgid "Specifies whether @command{sshd} should print the date and time of the last user login when a user logs in interactively."
  24871. msgstr ""
  24872. #. type: item
  24873. #: guix-git/doc/guix.texi:17011
  24874. #, no-wrap
  24875. msgid "@code{subsystems} (default: @code{'((\"sftp\" \"internal-sftp\"))})"
  24876. msgstr ""
  24877. #. type: table
  24878. #: guix-git/doc/guix.texi:17013
  24879. msgid "Configures external subsystems (e.g.@: file transfer daemon)."
  24880. msgstr ""
  24881. #. type: table
  24882. #: guix-git/doc/guix.texi:17017
  24883. 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."
  24884. msgstr ""
  24885. #. type: table
  24886. #: guix-git/doc/guix.texi:17020
  24887. msgid "The command @command{internal-sftp} implements an in-process SFTP server. Alternatively, one can specify the @command{sftp-server} command:"
  24888. msgstr ""
  24889. #. type: lisp
  24890. #: guix-git/doc/guix.texi:17025
  24891. #, no-wrap
  24892. msgid ""
  24893. "(service openssh-service-type\n"
  24894. " (openssh-configuration\n"
  24895. " (subsystems\n"
  24896. " `((\"sftp\" ,(file-append openssh \"/libexec/sftp-server\"))))))\n"
  24897. msgstr ""
  24898. #. type: item
  24899. #: guix-git/doc/guix.texi:17027
  24900. #, no-wrap
  24901. msgid "@code{accepted-environment} (default: @code{'()})"
  24902. msgstr ""
  24903. #. type: table
  24904. #: guix-git/doc/guix.texi:17029
  24905. msgid "List of strings describing which environment variables may be exported."
  24906. msgstr ""
  24907. #. type: table
  24908. #: guix-git/doc/guix.texi:17032
  24909. msgid "Each string gets on its own line. See the @code{AcceptEnv} option in @code{man sshd_config}."
  24910. msgstr ""
  24911. #. type: table
  24912. #: guix-git/doc/guix.texi:17037
  24913. 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."
  24914. msgstr ""
  24915. #. type: lisp
  24916. #: guix-git/doc/guix.texi:17042
  24917. #, no-wrap
  24918. msgid ""
  24919. "(service openssh-service-type\n"
  24920. " (openssh-configuration\n"
  24921. " (accepted-environment '(\"COLORTERM\"))))\n"
  24922. msgstr ""
  24923. #. type: item
  24924. #: guix-git/doc/guix.texi:17044
  24925. #, no-wrap
  24926. msgid "@code{authorized-keys} (default: @code{'()})"
  24927. msgstr ""
  24928. #. type: cindex
  24929. #: guix-git/doc/guix.texi:17045
  24930. #, no-wrap
  24931. msgid "authorized keys, SSH"
  24932. msgstr ""
  24933. #. type: cindex
  24934. #: guix-git/doc/guix.texi:17046
  24935. #, no-wrap
  24936. msgid "SSH authorized keys"
  24937. msgstr ""
  24938. #. type: table
  24939. #: guix-git/doc/guix.texi:17050
  24940. 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:"
  24941. msgstr ""
  24942. #. type: lisp
  24943. #: guix-git/doc/guix.texi:17057
  24944. #, no-wrap
  24945. msgid ""
  24946. "(openssh-configuration\n"
  24947. " (authorized-keys\n"
  24948. " `((\"rekado\" ,(local-file \"rekado.pub\"))\n"
  24949. " (\"chris\" ,(local-file \"chris.pub\"))\n"
  24950. " (\"root\" ,(local-file \"rekado.pub\") ,(local-file \"chris.pub\")))))\n"
  24951. msgstr ""
  24952. #. type: table
  24953. #: guix-git/doc/guix.texi:17062
  24954. msgid "registers the specified public keys for user accounts @code{rekado}, @code{chris}, and @code{root}."
  24955. msgstr ""
  24956. #. type: table
  24957. #: guix-git/doc/guix.texi:17065
  24958. msgid "Additional authorized keys can be specified @i{via} @code{service-extension}."
  24959. msgstr ""
  24960. #. type: table
  24961. #: guix-git/doc/guix.texi:17068
  24962. msgid "Note that this does @emph{not} interfere with the use of @file{~/.ssh/authorized_keys}."
  24963. msgstr ""
  24964. #. type: item
  24965. #: guix-git/doc/guix.texi:17069 guix-git/doc/guix.texi:17500
  24966. #, no-wrap
  24967. msgid "@code{log-level} (default: @code{'info})"
  24968. msgstr ""
  24969. #. type: table
  24970. #: guix-git/doc/guix.texi:17073
  24971. 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."
  24972. msgstr ""
  24973. #. type: item
  24974. #: guix-git/doc/guix.texi:17074 guix-git/doc/guix.texi:19894
  24975. #: guix-git/doc/guix.texi:24760
  24976. #, no-wrap
  24977. msgid "@code{extra-content} (default: @code{\"\"})"
  24978. msgstr ""
  24979. #. type: table
  24980. #: guix-git/doc/guix.texi:17079
  24981. 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:"
  24982. msgstr ""
  24983. #. type: lisp
  24984. #: guix-git/doc/guix.texi:17085
  24985. #, no-wrap
  24986. msgid ""
  24987. "(openssh-configuration\n"
  24988. " (extra-content \"\\\n"
  24989. "Match Address 192.168.0.1\n"
  24990. " PermitRootLogin yes\"))\n"
  24991. msgstr ""
  24992. #. type: deffn
  24993. #: guix-git/doc/guix.texi:17090
  24994. #, no-wrap
  24995. msgid "{Scheme Procedure} dropbear-service [@var{config}]"
  24996. msgstr ""
  24997. #. type: deffn
  24998. #: guix-git/doc/guix.texi:17094
  24999. 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."
  25000. msgstr ""
  25001. #. type: deffn
  25002. #: guix-git/doc/guix.texi:17097
  25003. msgid "For example, to specify a Dropbear service listening on port 1234, add this call to the operating system's @code{services} field:"
  25004. msgstr ""
  25005. #. type: lisp
  25006. #: guix-git/doc/guix.texi:17101
  25007. #, no-wrap
  25008. msgid ""
  25009. "(dropbear-service (dropbear-configuration\n"
  25010. " (port-number 1234)))\n"
  25011. msgstr ""
  25012. #. type: deftp
  25013. #: guix-git/doc/guix.texi:17104
  25014. #, no-wrap
  25015. msgid "{Data Type} dropbear-configuration"
  25016. msgstr ""
  25017. #. type: deftp
  25018. #: guix-git/doc/guix.texi:17106
  25019. msgid "This data type represents the configuration of a Dropbear SSH daemon."
  25020. msgstr ""
  25021. #. type: item
  25022. #: guix-git/doc/guix.texi:17108
  25023. #, no-wrap
  25024. msgid "@code{dropbear} (default: @var{dropbear})"
  25025. msgstr ""
  25026. #. type: table
  25027. #: guix-git/doc/guix.texi:17110
  25028. msgid "The Dropbear package to use."
  25029. msgstr ""
  25030. #. type: item
  25031. #: guix-git/doc/guix.texi:17111
  25032. #, no-wrap
  25033. msgid "@code{port-number} (default: 22)"
  25034. msgstr ""
  25035. #. type: table
  25036. #: guix-git/doc/guix.texi:17113
  25037. msgid "The TCP port where the daemon waits for incoming connections."
  25038. msgstr ""
  25039. #. type: item
  25040. #: guix-git/doc/guix.texi:17114
  25041. #, no-wrap
  25042. msgid "@code{syslog-output?} (default: @code{#t})"
  25043. msgstr ""
  25044. #. type: table
  25045. #: guix-git/doc/guix.texi:17116
  25046. msgid "Whether to enable syslog output."
  25047. msgstr ""
  25048. #. type: item
  25049. #: guix-git/doc/guix.texi:17117
  25050. #, no-wrap
  25051. msgid "@code{pid-file} (default: @code{\"/var/run/dropbear.pid\"})"
  25052. msgstr ""
  25053. #. type: table
  25054. #: guix-git/doc/guix.texi:17119
  25055. msgid "File name of the daemon's PID file."
  25056. msgstr ""
  25057. #. type: item
  25058. #: guix-git/doc/guix.texi:17120
  25059. #, no-wrap
  25060. msgid "@code{root-login?} (default: @code{#f})"
  25061. msgstr ""
  25062. #. type: table
  25063. #: guix-git/doc/guix.texi:17122
  25064. msgid "Whether to allow @code{root} logins."
  25065. msgstr ""
  25066. #. type: table
  25067. #: guix-git/doc/guix.texi:17125
  25068. msgid "Whether to allow empty passwords."
  25069. msgstr ""
  25070. #. type: table
  25071. #: guix-git/doc/guix.texi:17128
  25072. msgid "Whether to enable password-based authentication."
  25073. msgstr ""
  25074. #. type: cindex
  25075. #: guix-git/doc/guix.texi:17131
  25076. #, no-wrap
  25077. msgid "AutoSSH"
  25078. msgstr ""
  25079. #. type: deffn
  25080. #: guix-git/doc/guix.texi:17132
  25081. #, no-wrap
  25082. msgid "{Scheme Variable} autossh-service-type"
  25083. msgstr ""
  25084. #. type: deffn
  25085. #: guix-git/doc/guix.texi:17140
  25086. 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."
  25087. msgstr ""
  25088. #. type: deffn
  25089. #: guix-git/doc/guix.texi:17144
  25090. 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."
  25091. msgstr ""
  25092. #. type: deffn
  25093. #: guix-git/doc/guix.texi:17149
  25094. 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:"
  25095. msgstr ""
  25096. #. type: lisp
  25097. #: guix-git/doc/guix.texi:17155
  25098. #, no-wrap
  25099. msgid ""
  25100. "(service autossh-service-type\n"
  25101. " (autossh-configuration\n"
  25102. " (user \"pino\")\n"
  25103. " (ssh-options (list \"-T\" \"-N\" \"-L\" \"8081:localhost:8081\" \"remote.net\"))))\n"
  25104. msgstr ""
  25105. #. type: deftp
  25106. #: guix-git/doc/guix.texi:17158
  25107. #, no-wrap
  25108. msgid "{Data Type} autossh-configuration"
  25109. msgstr ""
  25110. #. type: deftp
  25111. #: guix-git/doc/guix.texi:17160
  25112. msgid "This data type represents the configuration of an AutoSSH service."
  25113. msgstr ""
  25114. #. type: item
  25115. #: guix-git/doc/guix.texi:17163
  25116. #, fuzzy, no-wrap
  25117. msgid "@code{user} (default @code{\"autossh\"})"
  25118. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  25119. #. type: table
  25120. #: guix-git/doc/guix.texi:17166
  25121. msgid "The user as which the AutoSSH service is to be run. This assumes that the specified user exists."
  25122. msgstr ""
  25123. #. type: item
  25124. #: guix-git/doc/guix.texi:17167
  25125. #, fuzzy, no-wrap
  25126. msgid "@code{poll} (default @code{600})"
  25127. msgstr "@code{port}(默认值:@code{22})"
  25128. #. type: table
  25129. #: guix-git/doc/guix.texi:17169
  25130. msgid "Specifies the connection poll time in seconds."
  25131. msgstr ""
  25132. #. type: item
  25133. #: guix-git/doc/guix.texi:17170
  25134. #, fuzzy, no-wrap
  25135. msgid "@code{first-poll} (default @code{#f})"
  25136. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25137. #. type: table
  25138. #: guix-git/doc/guix.texi:17176
  25139. 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}."
  25140. msgstr ""
  25141. #. type: item
  25142. #: guix-git/doc/guix.texi:17177
  25143. #, fuzzy, no-wrap
  25144. msgid "@code{gate-time} (default @code{30})"
  25145. msgstr "@code{mate}(默认值:@code{mate})"
  25146. #. type: table
  25147. #: guix-git/doc/guix.texi:17180
  25148. msgid "Specifies how many seconds an SSH connection must be active before it is considered successful."
  25149. msgstr ""
  25150. #. type: item
  25151. #: guix-git/doc/guix.texi:17181
  25152. #, fuzzy, no-wrap
  25153. msgid "@code{log-level} (default @code{1})"
  25154. msgstr "@code{speed}(默认值:@code{1.0})"
  25155. #. type: table
  25156. #: guix-git/doc/guix.texi:17184
  25157. msgid "The log level, corresponding to the levels used by syslog---so @code{0} is the most silent while @code{7} is the chattiest."
  25158. msgstr ""
  25159. #. type: item
  25160. #: guix-git/doc/guix.texi:17185
  25161. #, fuzzy, no-wrap
  25162. msgid "@code{max-start} (default @code{#f})"
  25163. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  25164. #. type: table
  25165. #: guix-git/doc/guix.texi:17188
  25166. 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."
  25167. msgstr ""
  25168. #. type: item
  25169. #: guix-git/doc/guix.texi:17189
  25170. #, fuzzy, no-wrap
  25171. msgid "@code{message} (default @code{\"\"})"
  25172. msgstr "@code{display}(默认值:@code{\":0\"})"
  25173. #. type: table
  25174. #: guix-git/doc/guix.texi:17191
  25175. msgid "The message to append to the echo message sent when testing connections."
  25176. msgstr ""
  25177. #. type: item
  25178. #: guix-git/doc/guix.texi:17192
  25179. #, fuzzy, no-wrap
  25180. msgid "@code{port} (default @code{\"0\"})"
  25181. msgstr "@code{port}(默认值:@code{22})"
  25182. #. type: table
  25183. #: guix-git/doc/guix.texi:17202
  25184. 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."
  25185. msgstr ""
  25186. #. type: item
  25187. #: guix-git/doc/guix.texi:17203
  25188. #, fuzzy, no-wrap
  25189. msgid "@code{ssh-options} (default @code{'()})"
  25190. msgstr "@code{includes}(默认值:@code{'()})"
  25191. #. type: table
  25192. #: guix-git/doc/guix.texi:17207
  25193. 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."
  25194. msgstr ""
  25195. #. type: cindex
  25196. #: guix-git/doc/guix.texi:17211
  25197. #, no-wrap
  25198. msgid "WebSSH"
  25199. msgstr ""
  25200. #. type: deffn
  25201. #: guix-git/doc/guix.texi:17212
  25202. #, no-wrap
  25203. msgid "{Scheme Variable} webssh-service-type"
  25204. msgstr ""
  25205. #. type: deffn
  25206. #: guix-git/doc/guix.texi:17218
  25207. 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."
  25208. msgstr ""
  25209. #. type: deffn
  25210. #: guix-git/doc/guix.texi:17224
  25211. 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:"
  25212. msgstr ""
  25213. #. type: lisp
  25214. #: guix-git/doc/guix.texi:17232
  25215. #, no-wrap
  25216. msgid ""
  25217. "(service webssh-service-type\n"
  25218. " (webssh-configuration (address \"127.0.0.1\")\n"
  25219. " (port 8888)\n"
  25220. " (policy 'reject)\n"
  25221. " (known-hosts '(\"localhost ecdsa-sha2-nistp256 AAAA…\"\n"
  25222. " \"127.0.0.1 ecdsa-sha2-nistp256 AAAA…\"))))\n"
  25223. "\n"
  25224. msgstr ""
  25225. #. type: lisp
  25226. #: guix-git/doc/guix.texi:17248
  25227. #, no-wrap
  25228. msgid ""
  25229. "(service nginx-service-type\n"
  25230. " (nginx-configuration\n"
  25231. " (server-blocks\n"
  25232. " (list\n"
  25233. " (nginx-server-configuration\n"
  25234. " (inherit %webssh-configuration-nginx)\n"
  25235. " (server-name '(\"webssh.example.com\"))\n"
  25236. " (listen '(\"443 ssl\"))\n"
  25237. " (ssl-certificate (letsencrypt-certificate \"webssh.example.com\"))\n"
  25238. " (ssl-certificate-key (letsencrypt-key \"webssh.example.com\"))\n"
  25239. " (locations\n"
  25240. " (cons (nginx-location-configuration\n"
  25241. " (uri \"/.well-known\")\n"
  25242. " (body '(\"root /var/www;\")))\n"
  25243. " (nginx-server-configuration-locations %webssh-configuration-nginx))))))))\n"
  25244. msgstr ""
  25245. #. type: deftp
  25246. #: guix-git/doc/guix.texi:17251
  25247. #, no-wrap
  25248. msgid "{Data Type} webssh-configuration"
  25249. msgstr ""
  25250. #. type: deftp
  25251. #: guix-git/doc/guix.texi:17253
  25252. msgid "Data type representing the configuration for @code{webssh-service}."
  25253. msgstr ""
  25254. #. type: item
  25255. #: guix-git/doc/guix.texi:17255
  25256. #, fuzzy, no-wrap
  25257. msgid "@code{package} (default: @var{webssh})"
  25258. msgstr "@code{xfce}(默认值:@code{xfce})"
  25259. #. type: table
  25260. #: guix-git/doc/guix.texi:17257
  25261. msgid "@code{webssh} package to use."
  25262. msgstr ""
  25263. #. type: item
  25264. #: guix-git/doc/guix.texi:17258
  25265. #, fuzzy, no-wrap
  25266. msgid "@code{user-name} (default: @var{\"webssh\"})"
  25267. msgstr "@code{gnome}(默认值:@code{gnome})"
  25268. #. type: table
  25269. #: guix-git/doc/guix.texi:17261
  25270. msgid "User name or user ID that file transfers to and from that module should take place."
  25271. msgstr ""
  25272. #. type: item
  25273. #: guix-git/doc/guix.texi:17262
  25274. #, fuzzy, no-wrap
  25275. msgid "@code{group-name} (default: @var{\"webssh\"})"
  25276. msgstr "@code{gnome}(默认值:@code{gnome})"
  25277. #. type: item
  25278. #: guix-git/doc/guix.texi:17265
  25279. #, fuzzy, no-wrap
  25280. msgid "@code{address} (default: @var{#f})"
  25281. msgstr "@code{challenge}(默认值:@code{#f})"
  25282. #. type: table
  25283. #: guix-git/doc/guix.texi:17267
  25284. msgid "IP address on which @command{webssh} listens for incoming connections."
  25285. msgstr ""
  25286. #. type: item
  25287. #: guix-git/doc/guix.texi:17268
  25288. #, fuzzy, no-wrap
  25289. msgid "@code{port} (default: @var{8888})"
  25290. msgstr "@code{port}(默认值:@code{22})"
  25291. #. type: table
  25292. #: guix-git/doc/guix.texi:17270
  25293. msgid "TCP port on which @command{webssh} listens for incoming connections."
  25294. msgstr ""
  25295. #. type: item
  25296. #: guix-git/doc/guix.texi:17271
  25297. #, fuzzy, no-wrap
  25298. msgid "@code{policy} (default: @var{#f})"
  25299. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25300. #. type: table
  25301. #: guix-git/doc/guix.texi:17273
  25302. msgid "Connection policy. @var{reject} policy requires to specify @var{known-hosts}."
  25303. msgstr ""
  25304. #. type: item
  25305. #: guix-git/doc/guix.texi:17274
  25306. #, fuzzy, no-wrap
  25307. msgid "@code{known-hosts} (default: @var{'()})"
  25308. msgstr "@code{features} (@code{'()})"
  25309. #. type: table
  25310. #: guix-git/doc/guix.texi:17276
  25311. msgid "List of hosts which allowed for SSH connection from @command{webssh}."
  25312. msgstr ""
  25313. #. type: item
  25314. #: guix-git/doc/guix.texi:17277
  25315. #, fuzzy, no-wrap
  25316. msgid "@code{log-file} (default: @file{\"/var/log/webssh.log\"})"
  25317. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  25318. #. type: table
  25319. #: guix-git/doc/guix.texi:17279
  25320. msgid "Name of the file where @command{webssh} writes its log file."
  25321. msgstr ""
  25322. #. type: item
  25323. #: guix-git/doc/guix.texi:17280
  25324. #, fuzzy, no-wrap
  25325. msgid "@code{log-level} (default: @var{#f})"
  25326. msgstr "@code{challenge}(默认值:@code{#f})"
  25327. #. type: table
  25328. #: guix-git/doc/guix.texi:17282
  25329. msgid "Logging level."
  25330. msgstr ""
  25331. #. type: defvr
  25332. #: guix-git/doc/guix.texi:17286
  25333. #, no-wrap
  25334. msgid "{Scheme Variable} %facebook-host-aliases"
  25335. msgstr ""
  25336. #. type: defvr
  25337. #: guix-git/doc/guix.texi:17292
  25338. 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}."
  25339. msgstr ""
  25340. #. type: defvr
  25341. #: guix-git/doc/guix.texi:17296
  25342. 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}}):"
  25343. msgstr ""
  25344. #. type: lisp
  25345. #: guix-git/doc/guix.texi:17309
  25346. #, no-wrap
  25347. msgid ""
  25348. "(operating-system\n"
  25349. " (host-name \"mymachine\")\n"
  25350. " ;; ...\n"
  25351. " (hosts-file\n"
  25352. " ;; Create a /etc/hosts file with aliases for \"localhost\"\n"
  25353. " ;; and \"mymachine\", as well as for Facebook servers.\n"
  25354. " (plain-file \"hosts\"\n"
  25355. " (string-append (local-host-aliases host-name)\n"
  25356. " %facebook-host-aliases))))\n"
  25357. msgstr ""
  25358. #. type: defvr
  25359. #: guix-git/doc/guix.texi:17313
  25360. msgid "This mechanism can prevent programs running locally, such as Web browsers, from accessing Facebook."
  25361. msgstr ""
  25362. #. type: Plain text
  25363. #: guix-git/doc/guix.texi:17316
  25364. msgid "The @code{(gnu services avahi)} provides the following definition."
  25365. msgstr ""
  25366. #. type: defvr
  25367. #: guix-git/doc/guix.texi:17317
  25368. #, no-wrap
  25369. msgid "{Scheme Variable} avahi-service-type"
  25370. msgstr ""
  25371. #. type: defvr
  25372. #: guix-git/doc/guix.texi:17322
  25373. 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."
  25374. msgstr ""
  25375. #. type: defvr
  25376. #: guix-git/doc/guix.texi:17327
  25377. 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."
  25378. msgstr ""
  25379. #. type: defvr
  25380. #: guix-git/doc/guix.texi:17330
  25381. msgid "Additionally, add the @var{avahi} package to the system profile so that commands such as @command{avahi-browse} are directly usable."
  25382. msgstr ""
  25383. #. type: deftp
  25384. #: guix-git/doc/guix.texi:17332
  25385. #, no-wrap
  25386. msgid "{Data Type} avahi-configuration"
  25387. msgstr ""
  25388. #. type: deftp
  25389. #: guix-git/doc/guix.texi:17334
  25390. msgid "Data type representation the configuration for Avahi."
  25391. msgstr ""
  25392. #. type: item
  25393. #: guix-git/doc/guix.texi:17337
  25394. #, no-wrap
  25395. msgid "@code{host-name} (default: @code{#f})"
  25396. msgstr ""
  25397. #. type: table
  25398. #: guix-git/doc/guix.texi:17340
  25399. 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."
  25400. msgstr ""
  25401. #. type: item
  25402. #: guix-git/doc/guix.texi:17341
  25403. #, no-wrap
  25404. msgid "@code{publish?} (default: @code{#t})"
  25405. msgstr ""
  25406. #. type: table
  25407. #: guix-git/doc/guix.texi:17344
  25408. msgid "When true, allow host names and services to be published (broadcast) over the network."
  25409. msgstr ""
  25410. #. type: item
  25411. #: guix-git/doc/guix.texi:17345
  25412. #, no-wrap
  25413. msgid "@code{publish-workstation?} (default: @code{#t})"
  25414. msgstr ""
  25415. #. type: table
  25416. #: guix-git/doc/guix.texi:17349
  25417. 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:"
  25418. msgstr ""
  25419. #. type: example
  25420. #: guix-git/doc/guix.texi:17352
  25421. #, no-wrap
  25422. msgid "avahi-browse _workstation._tcp\n"
  25423. msgstr ""
  25424. #. type: item
  25425. #: guix-git/doc/guix.texi:17354
  25426. #, no-wrap
  25427. msgid "@code{wide-area?} (default: @code{#f})"
  25428. msgstr ""
  25429. #. type: table
  25430. #: guix-git/doc/guix.texi:17356
  25431. msgid "When true, DNS-SD over unicast DNS is enabled."
  25432. msgstr ""
  25433. #. type: item
  25434. #: guix-git/doc/guix.texi:17357
  25435. #, no-wrap
  25436. msgid "@code{ipv4?} (default: @code{#t})"
  25437. msgstr ""
  25438. #. type: itemx
  25439. #: guix-git/doc/guix.texi:17358
  25440. #, no-wrap
  25441. msgid "@code{ipv6?} (default: @code{#t})"
  25442. msgstr ""
  25443. #. type: table
  25444. #: guix-git/doc/guix.texi:17360
  25445. msgid "These fields determine whether to use IPv4/IPv6 sockets."
  25446. msgstr ""
  25447. #. type: item
  25448. #: guix-git/doc/guix.texi:17361
  25449. #, no-wrap
  25450. msgid "@code{domains-to-browse} (default: @code{'()})"
  25451. msgstr ""
  25452. #. type: table
  25453. #: guix-git/doc/guix.texi:17363
  25454. msgid "This is a list of domains to browse."
  25455. msgstr ""
  25456. #. type: deffn
  25457. #: guix-git/doc/guix.texi:17366
  25458. #, no-wrap
  25459. msgid "{Scheme Variable} openvswitch-service-type"
  25460. msgstr ""
  25461. #. type: deffn
  25462. #: guix-git/doc/guix.texi:17370
  25463. msgid "This is the type of the @uref{https://www.openvswitch.org, Open vSwitch} service, whose value should be an @code{openvswitch-configuration} object."
  25464. msgstr ""
  25465. #. type: deftp
  25466. #: guix-git/doc/guix.texi:17372
  25467. #, no-wrap
  25468. msgid "{Data Type} openvswitch-configuration"
  25469. msgstr ""
  25470. #. type: deftp
  25471. #: guix-git/doc/guix.texi:17376
  25472. msgid "Data type representing the configuration of Open vSwitch, a multilayer virtual switch which is designed to enable massive network automation through programmatic extension."
  25473. msgstr ""
  25474. #. type: item
  25475. #: guix-git/doc/guix.texi:17378
  25476. #, no-wrap
  25477. msgid "@code{package} (default: @var{openvswitch})"
  25478. msgstr ""
  25479. #. type: table
  25480. #: guix-git/doc/guix.texi:17380
  25481. msgid "Package object of the Open vSwitch."
  25482. msgstr ""
  25483. #. type: defvr
  25484. #: guix-git/doc/guix.texi:17384
  25485. #, no-wrap
  25486. msgid "{Scheme Variable} pagekite-service-type"
  25487. msgstr ""
  25488. #. type: defvr
  25489. #: guix-git/doc/guix.texi:17389
  25490. 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."
  25491. msgstr ""
  25492. #. type: defvr
  25493. #: guix-git/doc/guix.texi:17391
  25494. msgid "Here's an example exposing the local HTTP and SSH daemons:"
  25495. msgstr ""
  25496. #. type: lisp
  25497. #: guix-git/doc/guix.texi:17398
  25498. #, no-wrap
  25499. msgid ""
  25500. "(service pagekite-service-type\n"
  25501. " (pagekite-configuration\n"
  25502. " (kites '(\"http:@@kitename:localhost:80:@@kitesecret\"\n"
  25503. " \"raw/22:@@kitename:localhost:22:@@kitesecret\"))\n"
  25504. " (extra-file \"/etc/pagekite.rc\")))\n"
  25505. msgstr ""
  25506. #. type: deftp
  25507. #: guix-git/doc/guix.texi:17401
  25508. #, fuzzy, no-wrap
  25509. msgid "{Data Type} pagekite-configuration"
  25510. msgstr "管理操作系统配置。"
  25511. #. type: deftp
  25512. #: guix-git/doc/guix.texi:17403
  25513. #, fuzzy
  25514. msgid "Data type representing the configuration of PageKite."
  25515. msgstr "管理操作系统配置。"
  25516. #. type: item
  25517. #: guix-git/doc/guix.texi:17405
  25518. #, fuzzy, no-wrap
  25519. msgid "@code{package} (default: @var{pagekite})"
  25520. msgstr "@code{mate}(默认值:@code{mate})"
  25521. #. type: table
  25522. #: guix-git/doc/guix.texi:17407
  25523. msgid "Package object of PageKite."
  25524. msgstr ""
  25525. #. type: item
  25526. #: guix-git/doc/guix.texi:17408
  25527. #, fuzzy, no-wrap
  25528. msgid "@code{kitename} (default: @code{#f})"
  25529. msgstr "@code{challenge}(默认值:@code{#f})"
  25530. #. type: table
  25531. #: guix-git/doc/guix.texi:17410
  25532. msgid "PageKite name for authenticating to the frontend server."
  25533. msgstr ""
  25534. #. type: item
  25535. #: guix-git/doc/guix.texi:17411
  25536. #, fuzzy, no-wrap
  25537. msgid "@code{kitesecret} (default: @code{#f})"
  25538. msgstr "@code{speed}(默认值:@code{1.0})"
  25539. #. type: table
  25540. #: guix-git/doc/guix.texi:17414
  25541. msgid "Shared secret for authenticating to the frontend server. You should probably put this inside @code{extra-file} instead."
  25542. msgstr ""
  25543. #. type: item
  25544. #: guix-git/doc/guix.texi:17415
  25545. #, fuzzy, no-wrap
  25546. msgid "@code{frontend} (default: @code{#f})"
  25547. msgstr "@code{journal-content}(默认值:@code{#f})"
  25548. #. type: table
  25549. #: guix-git/doc/guix.texi:17418
  25550. msgid "Connect to the named PageKite frontend server instead of the @uref{https://pagekite.net,,pagekite.net} service."
  25551. msgstr ""
  25552. #. type: item
  25553. #: guix-git/doc/guix.texi:17419
  25554. #, no-wrap
  25555. msgid "@code{kites} (default: @code{'(\"http:@@kitename:localhost:80:@@kitesecret\")})"
  25556. msgstr ""
  25557. #. type: table
  25558. #: guix-git/doc/guix.texi:17422
  25559. msgid "List of service kites to use. Exposes HTTP on port 80 by default. The format is @code{proto:kitename:host:port:secret}."
  25560. msgstr ""
  25561. #. type: item
  25562. #: guix-git/doc/guix.texi:17423
  25563. #, fuzzy, no-wrap
  25564. msgid "@code{extra-file} (default: @code{#f})"
  25565. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  25566. #. type: table
  25567. #: guix-git/doc/guix.texi:17426
  25568. 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."
  25569. msgstr ""
  25570. #. type: defvr
  25571. #: guix-git/doc/guix.texi:17430
  25572. #, no-wrap
  25573. msgid "{Scheme Variable} yggdrasil-service-type"
  25574. msgstr ""
  25575. #. type: defvr
  25576. #: guix-git/doc/guix.texi:17434
  25577. 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."
  25578. msgstr ""
  25579. #. type: quotation
  25580. #: guix-git/doc/guix.texi:17441
  25581. 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}"
  25582. msgstr ""
  25583. #. type: defvr
  25584. #: guix-git/doc/guix.texi:17445
  25585. msgid "Pass it a value of @code{yggdrasil-configuration} to connect it to public peers and/or local peers."
  25586. msgstr ""
  25587. #. type: defvr
  25588. #: guix-git/doc/guix.texi:17449
  25589. 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})."
  25590. msgstr ""
  25591. #. type: lisp
  25592. #: guix-git/doc/guix.texi:17461
  25593. #, no-wrap
  25594. msgid ""
  25595. ";; part of the operating-system declaration\n"
  25596. "(service yggdrasil-service-type\n"
  25597. " (yggdrasil-configuration\n"
  25598. " (autoconf? #f) ;; use only the public peers\n"
  25599. " (json-config\n"
  25600. " ;; choose one from\n"
  25601. " ;; https://github.com/yggdrasil-network/public-peers\n"
  25602. " '((peers . #(\"tcp://1.2.3.4:1337\"))))\n"
  25603. " ;; /etc/yggdrasil-private.conf is the default value for config-file\n"
  25604. " ))\n"
  25605. msgstr ""
  25606. #. type: example
  25607. #: guix-git/doc/guix.texi:17468
  25608. #, no-wrap
  25609. msgid ""
  25610. "# sample content for /etc/yggdrasil-private.conf\n"
  25611. "@{\n"
  25612. " # Your public encryption key. Your peers may ask you for this to put\n"
  25613. " # into their AllowedEncryptionPublicKeys configuration.\n"
  25614. " EncryptionPublicKey: 378dc5...\n"
  25615. "\n"
  25616. msgstr ""
  25617. #. type: example
  25618. #: guix-git/doc/guix.texi:17471
  25619. #, no-wrap
  25620. msgid ""
  25621. " # Your private encryption key. DO NOT share this with anyone!\n"
  25622. " EncryptionPrivateKey: 0777...\n"
  25623. "\n"
  25624. msgstr ""
  25625. #. type: example
  25626. #: guix-git/doc/guix.texi:17475
  25627. #, no-wrap
  25628. msgid ""
  25629. " # Your public signing key. You should not ordinarily need to share\n"
  25630. " # this with anyone.\n"
  25631. " SigningPublicKey: e1664...\n"
  25632. "\n"
  25633. msgstr ""
  25634. #. type: example
  25635. #: guix-git/doc/guix.texi:17479
  25636. #, no-wrap
  25637. msgid ""
  25638. " # Your private signing key. DO NOT share this with anyone!\n"
  25639. " SigningPrivateKey: 0589d...\n"
  25640. "@}\n"
  25641. msgstr ""
  25642. #. type: deftp
  25643. #: guix-git/doc/guix.texi:17482
  25644. #, fuzzy, no-wrap
  25645. msgid "{Data Type} yggdrasil-configuration"
  25646. msgstr "{数据类型} build-machine"
  25647. #. type: deftp
  25648. #: guix-git/doc/guix.texi:17484
  25649. #, fuzzy
  25650. msgid "Data type representing the configuration of Yggdrasil."
  25651. msgstr "管理操作系统配置。"
  25652. #. type: item
  25653. #: guix-git/doc/guix.texi:17486
  25654. #, fuzzy, no-wrap
  25655. msgid "@code{package} (default: @code{yggdrasil})"
  25656. msgstr "@code{mate}(默认值:@code{mate})"
  25657. #. type: table
  25658. #: guix-git/doc/guix.texi:17488
  25659. msgid "Package object of Yggdrasil."
  25660. msgstr ""
  25661. #. type: item
  25662. #: guix-git/doc/guix.texi:17489
  25663. #, fuzzy, no-wrap
  25664. msgid "@code{json-config} (default: @code{'()})"
  25665. msgstr "@code{includes}(默认值:@code{'()})"
  25666. #. type: table
  25667. #: guix-git/doc/guix.texi:17495
  25668. 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."
  25669. msgstr ""
  25670. #. type: item
  25671. #: guix-git/doc/guix.texi:17496
  25672. #, fuzzy, no-wrap
  25673. msgid "@code{autoconf?} (default: @code{#f})"
  25674. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  25675. #. type: table
  25676. #: guix-git/doc/guix.texi:17499
  25677. msgid "Whether to use automatic mode. Enabling it makes Yggdrasil use adynamic IP and peer with IPv6 neighbors."
  25678. msgstr ""
  25679. #. type: table
  25680. #: guix-git/doc/guix.texi:17502
  25681. msgid "How much detail to include in logs. Use @code{'debug} for more detail."
  25682. msgstr ""
  25683. #. type: item
  25684. #: guix-git/doc/guix.texi:17503
  25685. #, fuzzy, no-wrap
  25686. msgid "@code{log-to} (default: @code{'stdout})"
  25687. msgstr "@code{port}(默认值:@code{22})"
  25688. #. type: table
  25689. #: guix-git/doc/guix.texi:17507
  25690. 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."
  25691. msgstr ""
  25692. #. type: item
  25693. #: guix-git/doc/guix.texi:17508
  25694. #, fuzzy, no-wrap
  25695. msgid "@code{config-file} (default: @code{\"/etc/yggdrasil-private.conf\"})"
  25696. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  25697. #. type: table
  25698. #: guix-git/doc/guix.texi:17515
  25699. 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:"
  25700. msgstr ""
  25701. #. type: code{#1}
  25702. #: guix-git/doc/guix.texi:17517
  25703. #, no-wrap
  25704. msgid "EncryptionPublicKey"
  25705. msgstr ""
  25706. #. type: code{#1}
  25707. #: guix-git/doc/guix.texi:17518
  25708. #, no-wrap
  25709. msgid "EncryptionPrivateKey"
  25710. msgstr ""
  25711. #. type: code{#1}
  25712. #: guix-git/doc/guix.texi:17519
  25713. #, no-wrap
  25714. msgid "SigningPublicKey"
  25715. msgstr ""
  25716. #. type: code{#1}
  25717. #: guix-git/doc/guix.texi:17520
  25718. #, no-wrap
  25719. msgid "SigningPrivateKey"
  25720. msgstr ""
  25721. #. type: cindex
  25722. #: guix-git/doc/guix.texi:17525
  25723. #, no-wrap
  25724. msgid "IPFS"
  25725. msgstr ""
  25726. #. type: defvr
  25727. #: guix-git/doc/guix.texi:17526
  25728. #, no-wrap
  25729. msgid "{Scheme Variable} ipfs-service-type"
  25730. msgstr ""
  25731. #. type: defvr
  25732. #: guix-git/doc/guix.texi:17530
  25733. 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."
  25734. msgstr ""
  25735. #. type: defvr
  25736. #: guix-git/doc/guix.texi:17532
  25737. msgid "Here's an example configuration, using some non-standard ports:"
  25738. msgstr ""
  25739. #. type: lisp
  25740. #: guix-git/doc/guix.texi:17538
  25741. #, no-wrap
  25742. msgid ""
  25743. "(service ipfs-service-type\n"
  25744. " (ipfs-configuration\n"
  25745. " (gateway \"/ip4/127.0.0.1/tcp/8880\")\n"
  25746. " (api \"/ip4/127.0.0.1/tcp/8881\")))\n"
  25747. msgstr ""
  25748. #. type: deftp
  25749. #: guix-git/doc/guix.texi:17541
  25750. #, fuzzy, no-wrap
  25751. msgid "{Data Type} ipfs-configuration"
  25752. msgstr "系统配置"
  25753. #. type: deftp
  25754. #: guix-git/doc/guix.texi:17543
  25755. #, fuzzy
  25756. msgid "Data type representing the configuration of IPFS."
  25757. msgstr "管理操作系统配置。"
  25758. #. type: item
  25759. #: guix-git/doc/guix.texi:17545
  25760. #, fuzzy, no-wrap
  25761. msgid "@code{package} (default: @code{go-ipfs})"
  25762. msgstr "@code{mate}(默认值:@code{mate})"
  25763. #. type: table
  25764. #: guix-git/doc/guix.texi:17547
  25765. msgid "Package object of IPFS."
  25766. msgstr ""
  25767. #. type: item
  25768. #: guix-git/doc/guix.texi:17548
  25769. #, fuzzy, no-wrap
  25770. msgid "@code{gateway} (default: @code{\"/ip4/127.0.0.1/tcp/8082\"})"
  25771. msgstr "@code{speed}(默认值:@code{1.0})"
  25772. #. type: table
  25773. #: guix-git/doc/guix.texi:17550
  25774. msgid "Address of the gateway, in ‘multiaddress’ format."
  25775. msgstr ""
  25776. #. type: item
  25777. #: guix-git/doc/guix.texi:17551
  25778. #, fuzzy, no-wrap
  25779. msgid "@code{api} (default: @code{\"/ip4/127.0.0.1/tcp/5001\"})"
  25780. msgstr "@code{speed}(默认值:@code{1.0})"
  25781. #. type: table
  25782. #: guix-git/doc/guix.texi:17553
  25783. msgid "Address of the API endpoint, in ‘multiaddress’ format."
  25784. msgstr ""
  25785. #. type: cindex
  25786. #: guix-git/doc/guix.texi:17556
  25787. #, no-wrap
  25788. msgid "keepalived"
  25789. msgstr ""
  25790. #. type: deffn
  25791. #: guix-git/doc/guix.texi:17557
  25792. #, no-wrap
  25793. msgid "{Scheme Variable} keepalived-service-type"
  25794. msgstr ""
  25795. #. type: deffn
  25796. #: guix-git/doc/guix.texi:17562
  25797. 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:"
  25798. msgstr ""
  25799. #. type: lisp
  25800. #: guix-git/doc/guix.texi:17567
  25801. #, fuzzy, no-wrap
  25802. msgid ""
  25803. "(service keepalived-service-type\n"
  25804. " (keepalived-configuration\n"
  25805. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  25806. msgstr ""
  25807. "(service qemu-binfmt-service-type\n"
  25808. " (qemu-binfmt-configuration\n"
  25809. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  25810. " (guix-support? #t)))\n"
  25811. #. type: deffn
  25812. #: guix-git/doc/guix.texi:17570
  25813. msgid "where @file{keepalived-master.conf}:"
  25814. msgstr ""
  25815. #. type: example
  25816. #: guix-git/doc/guix.texi:17582
  25817. #, no-wrap
  25818. msgid ""
  25819. "vrrp_instance my-group @{\n"
  25820. " state MASTER\n"
  25821. " interface enp9s0\n"
  25822. " virtual_router_id 100\n"
  25823. " priority 100\n"
  25824. " unicast_peer @{ 10.0.0.2 @}\n"
  25825. " virtual_ipaddress @{\n"
  25826. " 10.0.0.4/24\n"
  25827. " @}\n"
  25828. "@}\n"
  25829. msgstr ""
  25830. #. type: deffn
  25831. #: guix-git/doc/guix.texi:17585
  25832. msgid "and for backup machine:"
  25833. msgstr ""
  25834. #. type: lisp
  25835. #: guix-git/doc/guix.texi:17590
  25836. #, fuzzy, no-wrap
  25837. msgid ""
  25838. "(service keepalived-service-type\n"
  25839. " (keepalived-configuration\n"
  25840. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  25841. msgstr ""
  25842. "(service qemu-binfmt-service-type\n"
  25843. " (qemu-binfmt-configuration\n"
  25844. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  25845. " (guix-support? #t)))\n"
  25846. #. type: deffn
  25847. #: guix-git/doc/guix.texi:17593
  25848. msgid "where @file{keepalived-backup.conf}:"
  25849. msgstr ""
  25850. #. type: example
  25851. #: guix-git/doc/guix.texi:17605
  25852. #, no-wrap
  25853. msgid ""
  25854. "vrrp_instance my-group @{\n"
  25855. " state BACKUP\n"
  25856. " interface enp9s0\n"
  25857. " virtual_router_id 100\n"
  25858. " priority 99\n"
  25859. " unicast_peer @{ 10.0.0.3 @}\n"
  25860. " virtual_ipaddress @{\n"
  25861. " 10.0.0.4/24\n"
  25862. " @}\n"
  25863. "@}\n"
  25864. msgstr ""
  25865. #. type: cindex
  25866. #: guix-git/doc/guix.texi:17611
  25867. #, no-wrap
  25868. msgid "unattended upgrades"
  25869. msgstr ""
  25870. #. type: cindex
  25871. #: guix-git/doc/guix.texi:17612
  25872. #, no-wrap
  25873. msgid "upgrades, unattended"
  25874. msgstr ""
  25875. #. type: Plain text
  25876. #: guix-git/doc/guix.texi:17617
  25877. 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:"
  25878. msgstr ""
  25879. #. type: itemize
  25880. #: guix-git/doc/guix.texi:17622
  25881. msgid "upgrades are transactional (either the upgrade succeeds or it fails, but you cannot end up with an ``in-between'' system state);"
  25882. msgstr ""
  25883. #. type: itemize
  25884. #: guix-git/doc/guix.texi:17626
  25885. 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;"
  25886. msgstr ""
  25887. #. type: itemize
  25888. #: guix-git/doc/guix.texi:17629
  25889. msgid "channel code is authenticated so you know you can only run genuine code (@pxref{Channels});"
  25890. msgstr ""
  25891. #. type: itemize
  25892. #: guix-git/doc/guix.texi:17632
  25893. msgid "@command{guix system reconfigure} prevents downgrades, which makes it immune to @dfn{downgrade attacks}."
  25894. msgstr ""
  25895. #. type: Plain text
  25896. #: guix-git/doc/guix.texi:17637
  25897. 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:"
  25898. msgstr ""
  25899. #. type: lisp
  25900. #: guix-git/doc/guix.texi:17640
  25901. #, no-wrap
  25902. msgid "(service unattended-upgrade-service-type)\n"
  25903. msgstr ""
  25904. #. type: Plain text
  25905. #: guix-git/doc/guix.texi:17647
  25906. 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."
  25907. msgstr ""
  25908. #. type: Plain text
  25909. #: guix-git/doc/guix.texi:17653
  25910. 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."
  25911. msgstr ""
  25912. #. type: Plain text
  25913. #: guix-git/doc/guix.texi:17657
  25914. 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)."
  25915. msgstr ""
  25916. #. type: defvr
  25917. #: guix-git/doc/guix.texi:17658
  25918. #, no-wrap
  25919. msgid "{Scheme Variable} unattended-upgrade-service-type"
  25920. msgstr ""
  25921. #. type: defvr
  25922. #: guix-git/doc/guix.texi:17662
  25923. 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."
  25924. msgstr ""
  25925. #. type: defvr
  25926. #: guix-git/doc/guix.texi:17665
  25927. msgid "Its value must be a @code{unattended-upgrade-configuration} record (see below)."
  25928. msgstr ""
  25929. #. type: deftp
  25930. #: guix-git/doc/guix.texi:17667
  25931. #, no-wrap
  25932. msgid "{Data Type} unattended-upgrade-configuration"
  25933. msgstr ""
  25934. #. type: deftp
  25935. #: guix-git/doc/guix.texi:17670
  25936. msgid "This data type represents the configuration of the unattended upgrade service. The following fields are available:"
  25937. msgstr ""
  25938. #. type: item
  25939. #: guix-git/doc/guix.texi:17672
  25940. #, fuzzy, no-wrap
  25941. msgid "@code{schedule} (default: @code{\"30 01 * * 0\"})"
  25942. msgstr "@code{speed}(默认值:@code{1.0})"
  25943. #. type: table
  25944. #: guix-git/doc/guix.texi:17676
  25945. 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})."
  25946. msgstr ""
  25947. #. type: item
  25948. #: guix-git/doc/guix.texi:17677
  25949. #, fuzzy, no-wrap
  25950. msgid "@code{channels} (default: @code{#~%default-channels})"
  25951. msgstr "@code{challenge}(默认值:@code{#f})"
  25952. #. type: table
  25953. #: guix-git/doc/guix.texi:17681
  25954. 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."
  25955. msgstr ""
  25956. #. type: item
  25957. #: guix-git/doc/guix.texi:17682
  25958. #, no-wrap
  25959. msgid "@code{operating-system-file} (default: @code{\"/run/current-system/configuration.scm\"})"
  25960. msgstr ""
  25961. #. type: table
  25962. #: guix-git/doc/guix.texi:17685
  25963. msgid "This field specifies the operating system configuration file to use. The default is to reuse the config file of the current configuration."
  25964. msgstr ""
  25965. #. type: table
  25966. #: guix-git/doc/guix.texi:17691
  25967. 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:"
  25968. msgstr ""
  25969. #. type: lisp
  25970. #: guix-git/doc/guix.texi:17697
  25971. #, no-wrap
  25972. msgid ""
  25973. "(unattended-upgrade-configuration\n"
  25974. " (operating-system-file\n"
  25975. " (file-append (local-file \".\" \"config-dir\" #:recursive? #t)\n"
  25976. " \"/config.scm\")))\n"
  25977. msgstr ""
  25978. #. type: table
  25979. #: guix-git/doc/guix.texi:17704
  25980. 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}."
  25981. msgstr ""
  25982. #. type: item
  25983. #: guix-git/doc/guix.texi:17705
  25984. #, fuzzy, no-wrap
  25985. msgid "@code{services-to-restart} (default: @code{'(mcron)})"
  25986. msgstr "@code{features} (@code{'()})"
  25987. #. type: table
  25988. #: guix-git/doc/guix.texi:17708
  25989. msgid "This field specifies the Shepherd services to restart when the upgrade completes."
  25990. msgstr ""
  25991. #. type: table
  25992. #: guix-git/doc/guix.texi:17715
  25993. 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."
  25994. msgstr ""
  25995. #. type: table
  25996. #: guix-git/doc/guix.texi:17719
  25997. 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}."
  25998. msgstr ""
  25999. #. type: table
  26000. #: guix-git/doc/guix.texi:17722
  26001. 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."
  26002. msgstr ""
  26003. #. type: item
  26004. #: guix-git/doc/guix.texi:17723
  26005. #, fuzzy, no-wrap
  26006. msgid "@code{system-expiration} (default: @code{(* 3 30 24 3600)})"
  26007. msgstr "@code{port}(默认值:@code{22})"
  26008. #. type: table
  26009. #: guix-git/doc/guix.texi:17727
  26010. 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."
  26011. msgstr ""
  26012. #. type: quotation
  26013. #: guix-git/doc/guix.texi:17732
  26014. 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."
  26015. msgstr ""
  26016. #. type: item
  26017. #: guix-git/doc/guix.texi:17734
  26018. #, fuzzy, no-wrap
  26019. msgid "@code{maximum-duration} (default: @code{3600})"
  26020. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  26021. #. type: table
  26022. #: guix-git/doc/guix.texi:17737
  26023. msgid "Maximum duration in seconds for the upgrade; past that time, the upgrade aborts."
  26024. msgstr ""
  26025. #. type: table
  26026. #: guix-git/doc/guix.texi:17740
  26027. msgid "This is primarily useful to ensure the upgrade does not end up rebuilding or re-downloading ``the world''."
  26028. msgstr ""
  26029. #. type: item
  26030. #: guix-git/doc/guix.texi:17741
  26031. #, fuzzy, no-wrap
  26032. msgid "@code{log-file} (default: @code{\"/var/log/unattended-upgrade.log\"})"
  26033. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  26034. #. type: table
  26035. #: guix-git/doc/guix.texi:17743
  26036. msgid "File where unattended upgrades are logged."
  26037. msgstr ""
  26038. #. type: cindex
  26039. #: guix-git/doc/guix.texi:17749
  26040. #, no-wrap
  26041. msgid "X11"
  26042. msgstr ""
  26043. #. type: cindex
  26044. #: guix-git/doc/guix.texi:17750
  26045. #, no-wrap
  26046. msgid "X Window System"
  26047. msgstr ""
  26048. #. type: cindex
  26049. #: guix-git/doc/guix.texi:17751 guix-git/doc/guix.texi:18003
  26050. #, no-wrap
  26051. msgid "login manager"
  26052. msgstr ""
  26053. #. type: Plain text
  26054. #: guix-git/doc/guix.texi:17756
  26055. 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)."
  26056. msgstr ""
  26057. #. type: cindex
  26058. #: guix-git/doc/guix.texi:17757
  26059. #, no-wrap
  26060. msgid "GDM"
  26061. msgstr ""
  26062. #. type: cindex
  26063. #: guix-git/doc/guix.texi:17758
  26064. #, no-wrap
  26065. msgid "GNOME, login manager"
  26066. msgstr ""
  26067. #. type: Plain text
  26068. #: guix-git/doc/guix.texi:17762
  26069. 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."
  26070. msgstr ""
  26071. #. type: cindex
  26072. #: guix-git/doc/guix.texi:17763
  26073. #, no-wrap
  26074. msgid "window manager"
  26075. msgstr ""
  26076. #. type: Plain text
  26077. #: guix-git/doc/guix.texi:17768
  26078. 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})."
  26079. msgstr ""
  26080. #. type: defvr
  26081. #: guix-git/doc/guix.texi:17769
  26082. #, no-wrap
  26083. msgid "{Scheme Variable} gdm-service-type"
  26084. msgstr ""
  26085. #. type: defvr
  26086. #: guix-git/doc/guix.texi:17774
  26087. 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)."
  26088. msgstr ""
  26089. #. type: cindex
  26090. #: guix-git/doc/guix.texi:17775
  26091. #, no-wrap
  26092. msgid "session types (X11)"
  26093. msgstr ""
  26094. #. type: cindex
  26095. #: guix-git/doc/guix.texi:17776
  26096. #, no-wrap
  26097. msgid "X11 session types"
  26098. msgstr ""
  26099. #. type: defvr
  26100. #: guix-git/doc/guix.texi:17782
  26101. 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."
  26102. msgstr ""
  26103. #. type: defvr
  26104. #: guix-git/doc/guix.texi:17786
  26105. 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."
  26106. msgstr ""
  26107. #. type: deftp
  26108. #: guix-git/doc/guix.texi:17788
  26109. #, no-wrap
  26110. msgid "{Data Type} gdm-configuration"
  26111. msgstr ""
  26112. #. type: item
  26113. #: guix-git/doc/guix.texi:17790 guix-git/doc/guix.texi:17858
  26114. #, no-wrap
  26115. msgid "@code{auto-login?} (default: @code{#f})"
  26116. msgstr ""
  26117. #. type: itemx
  26118. #: guix-git/doc/guix.texi:17791
  26119. #, no-wrap
  26120. msgid "@code{default-user} (default: @code{#f})"
  26121. msgstr ""
  26122. #. type: table
  26123. #: guix-git/doc/guix.texi:17793
  26124. msgid "When @code{auto-login?} is false, GDM presents a log-in screen."
  26125. msgstr ""
  26126. #. type: table
  26127. #: guix-git/doc/guix.texi:17796
  26128. msgid "When @code{auto-login?} is true, GDM logs in directly as @code{default-user}."
  26129. msgstr ""
  26130. #. type: item
  26131. #: guix-git/doc/guix.texi:17797 guix-git/doc/guix.texi:23369
  26132. #: guix-git/doc/guix.texi:25077 guix-git/doc/guix.texi:29427
  26133. #: guix-git/doc/guix.texi:29456 guix-git/doc/guix.texi:29485
  26134. #: guix-git/doc/guix.texi:29512 guix-git/doc/guix.texi:29567
  26135. #: guix-git/doc/guix.texi:29592 guix-git/doc/guix.texi:29619
  26136. #: guix-git/doc/guix.texi:29645 guix-git/doc/guix.texi:29687
  26137. #, no-wrap
  26138. msgid "@code{debug?} (default: @code{#f})"
  26139. msgstr ""
  26140. #. type: table
  26141. #: guix-git/doc/guix.texi:17799
  26142. msgid "When true, GDM writes debug messages to its log."
  26143. msgstr ""
  26144. #. type: item
  26145. #: guix-git/doc/guix.texi:17800
  26146. #, no-wrap
  26147. msgid "@code{gnome-shell-assets} (default: ...)"
  26148. msgstr ""
  26149. #. type: table
  26150. #: guix-git/doc/guix.texi:17802
  26151. msgid "List of GNOME Shell assets needed by GDM: icon theme, fonts, etc."
  26152. msgstr ""
  26153. #. type: item
  26154. #: guix-git/doc/guix.texi:17803
  26155. #, no-wrap
  26156. msgid "@code{xorg-configuration} (default: @code{(xorg-configuration)})"
  26157. msgstr ""
  26158. #. type: table
  26159. #: guix-git/doc/guix.texi:17805 guix-git/doc/guix.texi:17885
  26160. #: guix-git/doc/guix.texi:17969
  26161. msgid "Configuration of the Xorg graphical server."
  26162. msgstr ""
  26163. #. type: item
  26164. #: guix-git/doc/guix.texi:17806
  26165. #, no-wrap
  26166. msgid "@code{xsession} (default: @code{(xinitrc)})"
  26167. msgstr ""
  26168. #. type: table
  26169. #: guix-git/doc/guix.texi:17808 guix-git/doc/guix.texi:17984
  26170. msgid "Script to run before starting a X session."
  26171. msgstr ""
  26172. #. type: item
  26173. #: guix-git/doc/guix.texi:17809
  26174. #, no-wrap
  26175. msgid "@code{dbus-daemon} (default: @code{dbus-daemon-wrapper})"
  26176. msgstr ""
  26177. #. type: table
  26178. #: guix-git/doc/guix.texi:17811
  26179. msgid "File name of the @code{dbus-daemon} executable."
  26180. msgstr ""
  26181. #. type: item
  26182. #: guix-git/doc/guix.texi:17812
  26183. #, no-wrap
  26184. msgid "@code{gdm} (default: @code{gdm})"
  26185. msgstr ""
  26186. #. type: table
  26187. #: guix-git/doc/guix.texi:17814
  26188. msgid "The GDM package to use."
  26189. msgstr ""
  26190. #. type: defvr
  26191. #: guix-git/doc/guix.texi:17817
  26192. #, no-wrap
  26193. msgid "{Scheme Variable} slim-service-type"
  26194. msgstr ""
  26195. #. type: defvr
  26196. #: guix-git/doc/guix.texi:17819
  26197. msgid "This is the type for the SLiM graphical login manager for X11."
  26198. msgstr ""
  26199. #. type: defvr
  26200. #: guix-git/doc/guix.texi:17823
  26201. 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."
  26202. msgstr ""
  26203. #. type: defvr
  26204. #: guix-git/doc/guix.texi:17830
  26205. 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."
  26206. msgstr ""
  26207. #. type: lisp
  26208. #: guix-git/doc/guix.texi:17836
  26209. #, no-wrap
  26210. msgid ""
  26211. "(use-modules (gnu services)\n"
  26212. " (gnu services desktop)\n"
  26213. " (gnu services xorg)\n"
  26214. " (srfi srfi-1)) ;for 'remove'\n"
  26215. "\n"
  26216. msgstr ""
  26217. #. type: lisp
  26218. #: guix-git/doc/guix.texi:17847
  26219. #, no-wrap
  26220. msgid ""
  26221. "(operating-system\n"
  26222. " ;; ...\n"
  26223. " (services (cons* (service slim-service-type (slim-configuration\n"
  26224. " (display \":0\")\n"
  26225. " (vt \"vt7\")))\n"
  26226. " (service slim-service-type (slim-configuration\n"
  26227. " (display \":1\")\n"
  26228. " (vt \"vt8\")))\n"
  26229. " (modify-services %desktop-services\n"
  26230. " (delete gdm-service-type)))))\n"
  26231. msgstr ""
  26232. #. type: deftp
  26233. #: guix-git/doc/guix.texi:17851
  26234. #, no-wrap
  26235. msgid "{Data Type} slim-configuration"
  26236. msgstr ""
  26237. #. type: deftp
  26238. #: guix-git/doc/guix.texi:17853
  26239. msgid "Data type representing the configuration of @code{slim-service-type}."
  26240. msgstr ""
  26241. #. type: table
  26242. #: guix-git/doc/guix.texi:17857
  26243. msgid "Whether to allow logins with empty passwords."
  26244. msgstr ""
  26245. #. type: itemx
  26246. #: guix-git/doc/guix.texi:17859
  26247. #, no-wrap
  26248. msgid "@code{default-user} (default: @code{\"\"})"
  26249. msgstr ""
  26250. #. type: table
  26251. #: guix-git/doc/guix.texi:17861
  26252. msgid "When @code{auto-login?} is false, SLiM presents a log-in screen."
  26253. msgstr ""
  26254. #. type: table
  26255. #: guix-git/doc/guix.texi:17864
  26256. msgid "When @code{auto-login?} is true, SLiM logs in directly as @code{default-user}."
  26257. msgstr ""
  26258. #. type: item
  26259. #: guix-git/doc/guix.texi:17865
  26260. #, no-wrap
  26261. msgid "@code{theme} (default: @code{%default-slim-theme})"
  26262. msgstr ""
  26263. #. type: itemx
  26264. #: guix-git/doc/guix.texi:17866
  26265. #, no-wrap
  26266. msgid "@code{theme-name} (default: @code{%default-slim-theme-name})"
  26267. msgstr ""
  26268. #. type: table
  26269. #: guix-git/doc/guix.texi:17868
  26270. msgid "The graphical theme to use and its name."
  26271. msgstr ""
  26272. #. type: item
  26273. #: guix-git/doc/guix.texi:17869
  26274. #, no-wrap
  26275. msgid "@code{auto-login-session} (default: @code{#f})"
  26276. msgstr ""
  26277. #. type: table
  26278. #: guix-git/doc/guix.texi:17872
  26279. 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\")}."
  26280. msgstr ""
  26281. #. type: table
  26282. #: guix-git/doc/guix.texi:17876
  26283. 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."
  26284. msgstr ""
  26285. #. type: quotation
  26286. #: guix-git/doc/guix.texi:17881
  26287. 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."
  26288. msgstr ""
  26289. #. type: item
  26290. #: guix-git/doc/guix.texi:17883 guix-git/doc/guix.texi:17967
  26291. #, no-wrap
  26292. msgid "@code{xorg-configuration} (default @code{(xorg-configuration)})"
  26293. msgstr ""
  26294. #. type: item
  26295. #: guix-git/doc/guix.texi:17886
  26296. #, no-wrap
  26297. msgid "@code{display} (default @code{\":0\"})"
  26298. msgstr "@code{display}(默认值:@code{\":0\"})"
  26299. #. type: table
  26300. #: guix-git/doc/guix.texi:17888
  26301. msgid "The display on which to start the Xorg graphical server."
  26302. msgstr ""
  26303. #. type: item
  26304. #: guix-git/doc/guix.texi:17889
  26305. #, no-wrap
  26306. msgid "@code{vt} (default @code{\"vt7\"})"
  26307. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  26308. #. type: table
  26309. #: guix-git/doc/guix.texi:17891
  26310. msgid "The VT on which to start the Xorg graphical server."
  26311. msgstr ""
  26312. #. type: item
  26313. #: guix-git/doc/guix.texi:17892
  26314. #, no-wrap
  26315. msgid "@code{xauth} (default: @code{xauth})"
  26316. msgstr ""
  26317. #. type: table
  26318. #: guix-git/doc/guix.texi:17894
  26319. msgid "The XAuth package to use."
  26320. msgstr ""
  26321. #. type: item
  26322. #: guix-git/doc/guix.texi:17895
  26323. #, no-wrap
  26324. msgid "@code{shepherd} (default: @code{shepherd})"
  26325. msgstr ""
  26326. #. type: table
  26327. #: guix-git/doc/guix.texi:17898
  26328. msgid "The Shepherd package used when invoking @command{halt} and @command{reboot}."
  26329. msgstr ""
  26330. #. type: item
  26331. #: guix-git/doc/guix.texi:17899
  26332. #, no-wrap
  26333. msgid "@code{sessreg} (default: @code{sessreg})"
  26334. msgstr ""
  26335. #. type: table
  26336. #: guix-git/doc/guix.texi:17901
  26337. msgid "The sessreg package used in order to register the session."
  26338. msgstr ""
  26339. #. type: item
  26340. #: guix-git/doc/guix.texi:17902
  26341. #, no-wrap
  26342. msgid "@code{slim} (default: @code{slim})"
  26343. msgstr ""
  26344. #. type: table
  26345. #: guix-git/doc/guix.texi:17904
  26346. msgid "The SLiM package to use."
  26347. msgstr ""
  26348. #. type: defvr
  26349. #: guix-git/doc/guix.texi:17907
  26350. #, no-wrap
  26351. msgid "{Scheme Variable} %default-theme"
  26352. msgstr ""
  26353. #. type: defvrx
  26354. #: guix-git/doc/guix.texi:17908
  26355. #, no-wrap
  26356. msgid "{Scheme Variable} %default-theme-name"
  26357. msgstr ""
  26358. #. type: defvr
  26359. #: guix-git/doc/guix.texi:17910
  26360. msgid "The default SLiM theme and its name."
  26361. msgstr ""
  26362. #. type: deftp
  26363. #: guix-git/doc/guix.texi:17913 guix-git/doc/guix.texi:18020
  26364. #, no-wrap
  26365. msgid "{Data Type} sddm-configuration"
  26366. msgstr ""
  26367. #. type: deftp
  26368. #: guix-git/doc/guix.texi:17915
  26369. msgid "This is the data type representing the SDDM service configuration."
  26370. msgstr ""
  26371. #. type: item
  26372. #: guix-git/doc/guix.texi:17917
  26373. #, no-wrap
  26374. msgid "@code{display-server} (default: \"x11\")"
  26375. msgstr ""
  26376. #. type: table
  26377. #: guix-git/doc/guix.texi:17920
  26378. msgid "Select display server to use for the greeter. Valid values are @samp{\"x11\"} or @samp{\"wayland\"}."
  26379. msgstr ""
  26380. #. type: item
  26381. #: guix-git/doc/guix.texi:17921
  26382. #, no-wrap
  26383. msgid "@code{numlock} (default: \"on\")"
  26384. msgstr ""
  26385. #. type: table
  26386. #: guix-git/doc/guix.texi:17923
  26387. msgid "Valid values are @samp{\"on\"}, @samp{\"off\"} or @samp{\"none\"}."
  26388. msgstr ""
  26389. #. type: item
  26390. #: guix-git/doc/guix.texi:17924
  26391. #, no-wrap
  26392. msgid "@code{halt-command} (default @code{#~(string-apppend #$shepherd \"/sbin/halt\")})"
  26393. msgstr ""
  26394. #. type: table
  26395. #: guix-git/doc/guix.texi:17926
  26396. msgid "Command to run when halting."
  26397. msgstr ""
  26398. #. type: item
  26399. #: guix-git/doc/guix.texi:17927
  26400. #, no-wrap
  26401. msgid "@code{reboot-command} (default @code{#~(string-append #$shepherd \"/sbin/reboot\")})"
  26402. msgstr ""
  26403. #. type: table
  26404. #: guix-git/doc/guix.texi:17929
  26405. msgid "Command to run when rebooting."
  26406. msgstr ""
  26407. #. type: item
  26408. #: guix-git/doc/guix.texi:17930
  26409. #, no-wrap
  26410. msgid "@code{theme} (default \"maldives\")"
  26411. msgstr ""
  26412. #. type: table
  26413. #: guix-git/doc/guix.texi:17933
  26414. msgid "Theme to use. Default themes provided by SDDM are @samp{\"elarun\"}, @samp{\"maldives\"} or @samp{\"maya\"}."
  26415. msgstr ""
  26416. #. type: item
  26417. #: guix-git/doc/guix.texi:17934
  26418. #, no-wrap
  26419. msgid "@code{themes-directory} (default \"/run/current-system/profile/share/sddm/themes\")"
  26420. msgstr ""
  26421. #. type: table
  26422. #: guix-git/doc/guix.texi:17936
  26423. msgid "Directory to look for themes."
  26424. msgstr ""
  26425. #. type: item
  26426. #: guix-git/doc/guix.texi:17937
  26427. #, no-wrap
  26428. msgid "@code{faces-directory} (default \"/run/current-system/profile/share/sddm/faces\")"
  26429. msgstr ""
  26430. #. type: table
  26431. #: guix-git/doc/guix.texi:17939
  26432. msgid "Directory to look for faces."
  26433. msgstr ""
  26434. #. type: item
  26435. #: guix-git/doc/guix.texi:17940
  26436. #, no-wrap
  26437. msgid "@code{default-path} (default \"/run/current-system/profile/bin\")"
  26438. msgstr ""
  26439. #. type: table
  26440. #: guix-git/doc/guix.texi:17942
  26441. msgid "Default PATH to use."
  26442. msgstr ""
  26443. #. type: item
  26444. #: guix-git/doc/guix.texi:17943
  26445. #, fuzzy, no-wrap
  26446. msgid "@code{minimum-uid} (default: 1000)"
  26447. msgstr "@code{includes}(默认值:@code{'()})"
  26448. #. type: table
  26449. #: guix-git/doc/guix.texi:17945
  26450. msgid "Minimum UID displayed in SDDM and allowed for log-in."
  26451. msgstr ""
  26452. #. type: item
  26453. #: guix-git/doc/guix.texi:17946
  26454. #, fuzzy, no-wrap
  26455. msgid "@code{maximum-uid} (default: 2000)"
  26456. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  26457. #. type: table
  26458. #: guix-git/doc/guix.texi:17948
  26459. msgid "Maximum UID to display in SDDM."
  26460. msgstr ""
  26461. #. type: item
  26462. #: guix-git/doc/guix.texi:17949
  26463. #, no-wrap
  26464. msgid "@code{remember-last-user?} (default #t)"
  26465. msgstr ""
  26466. #. type: table
  26467. #: guix-git/doc/guix.texi:17951
  26468. msgid "Remember last user."
  26469. msgstr ""
  26470. #. type: item
  26471. #: guix-git/doc/guix.texi:17952
  26472. #, no-wrap
  26473. msgid "@code{remember-last-session?} (default #t)"
  26474. msgstr ""
  26475. #. type: table
  26476. #: guix-git/doc/guix.texi:17954
  26477. msgid "Remember last session."
  26478. msgstr ""
  26479. #. type: item
  26480. #: guix-git/doc/guix.texi:17955
  26481. #, no-wrap
  26482. msgid "@code{hide-users} (default \"\")"
  26483. msgstr ""
  26484. #. type: table
  26485. #: guix-git/doc/guix.texi:17957
  26486. msgid "Usernames to hide from SDDM greeter."
  26487. msgstr ""
  26488. #. type: item
  26489. #: guix-git/doc/guix.texi:17958
  26490. #, no-wrap
  26491. msgid "@code{hide-shells} (default @code{#~(string-append #$shadow \"/sbin/nologin\")})"
  26492. msgstr ""
  26493. #. type: table
  26494. #: guix-git/doc/guix.texi:17960
  26495. msgid "Users with shells listed will be hidden from the SDDM greeter."
  26496. msgstr ""
  26497. #. type: item
  26498. #: guix-git/doc/guix.texi:17961
  26499. #, no-wrap
  26500. msgid "@code{session-command} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/wayland-session\")})"
  26501. msgstr ""
  26502. #. type: table
  26503. #: guix-git/doc/guix.texi:17963
  26504. msgid "Script to run before starting a wayland session."
  26505. msgstr ""
  26506. #. type: item
  26507. #: guix-git/doc/guix.texi:17964
  26508. #, no-wrap
  26509. msgid "@code{sessions-directory} (default \"/run/current-system/profile/share/wayland-sessions\")"
  26510. msgstr ""
  26511. #. type: table
  26512. #: guix-git/doc/guix.texi:17966
  26513. msgid "Directory to look for desktop files starting wayland sessions."
  26514. msgstr ""
  26515. #. type: item
  26516. #: guix-git/doc/guix.texi:17970
  26517. #, no-wrap
  26518. msgid "@code{xauth-path} (default @code{#~(string-append #$xauth \"/bin/xauth\")})"
  26519. msgstr ""
  26520. #. type: table
  26521. #: guix-git/doc/guix.texi:17972
  26522. msgid "Path to xauth."
  26523. msgstr ""
  26524. #. type: item
  26525. #: guix-git/doc/guix.texi:17973
  26526. #, no-wrap
  26527. msgid "@code{xephyr-path} (default @code{#~(string-append #$xorg-server \"/bin/Xephyr\")})"
  26528. msgstr ""
  26529. #. type: table
  26530. #: guix-git/doc/guix.texi:17975
  26531. msgid "Path to Xephyr."
  26532. msgstr ""
  26533. #. type: item
  26534. #: guix-git/doc/guix.texi:17976
  26535. #, no-wrap
  26536. msgid "@code{xdisplay-start} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xsetup\")})"
  26537. msgstr ""
  26538. #. type: table
  26539. #: guix-git/doc/guix.texi:17978
  26540. msgid "Script to run after starting xorg-server."
  26541. msgstr ""
  26542. #. type: item
  26543. #: guix-git/doc/guix.texi:17979
  26544. #, no-wrap
  26545. msgid "@code{xdisplay-stop} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xstop\")})"
  26546. msgstr ""
  26547. #. type: table
  26548. #: guix-git/doc/guix.texi:17981
  26549. msgid "Script to run before stopping xorg-server."
  26550. msgstr ""
  26551. #. type: item
  26552. #: guix-git/doc/guix.texi:17982
  26553. #, no-wrap
  26554. msgid "@code{xsession-command} (default: @code{xinitrc})"
  26555. msgstr ""
  26556. #. type: item
  26557. #: guix-git/doc/guix.texi:17985
  26558. #, no-wrap
  26559. msgid "@code{xsessions-directory} (default: \"/run/current-system/profile/share/xsessions\")"
  26560. msgstr ""
  26561. #. type: table
  26562. #: guix-git/doc/guix.texi:17987
  26563. msgid "Directory to look for desktop files starting X sessions."
  26564. msgstr ""
  26565. #. type: item
  26566. #: guix-git/doc/guix.texi:17988
  26567. #, no-wrap
  26568. msgid "@code{minimum-vt} (default: 7)"
  26569. msgstr ""
  26570. #. type: table
  26571. #: guix-git/doc/guix.texi:17990
  26572. msgid "Minimum VT to use."
  26573. msgstr ""
  26574. #. type: item
  26575. #: guix-git/doc/guix.texi:17991
  26576. #, no-wrap
  26577. msgid "@code{auto-login-user} (default \"\")"
  26578. msgstr ""
  26579. #. type: table
  26580. #: guix-git/doc/guix.texi:17993
  26581. msgid "User to use for auto-login."
  26582. msgstr ""
  26583. #. type: item
  26584. #: guix-git/doc/guix.texi:17994
  26585. #, no-wrap
  26586. msgid "@code{auto-login-session} (default \"\")"
  26587. msgstr ""
  26588. #. type: table
  26589. #: guix-git/doc/guix.texi:17996
  26590. msgid "Desktop file to use for auto-login."
  26591. msgstr ""
  26592. #. type: item
  26593. #: guix-git/doc/guix.texi:17997
  26594. #, no-wrap
  26595. msgid "@code{relogin?} (default #f)"
  26596. msgstr ""
  26597. #. type: table
  26598. #: guix-git/doc/guix.texi:17999
  26599. msgid "Relogin after logout."
  26600. msgstr ""
  26601. #. type: cindex
  26602. #: guix-git/doc/guix.texi:18004
  26603. #, no-wrap
  26604. msgid "X11 login"
  26605. msgstr ""
  26606. #. type: defvr
  26607. #: guix-git/doc/guix.texi:18005
  26608. #, no-wrap
  26609. msgid "{Scheme Variable} sddm-service-type"
  26610. msgstr ""
  26611. #. type: defvr
  26612. #: guix-git/doc/guix.texi:18009
  26613. 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)."
  26614. msgstr ""
  26615. #. type: defvr
  26616. #: guix-git/doc/guix.texi:18011
  26617. msgid "Here's an example use:"
  26618. msgstr ""
  26619. #. type: lisp
  26620. #: guix-git/doc/guix.texi:18017
  26621. #, no-wrap
  26622. msgid ""
  26623. "(service sddm-service-type\n"
  26624. " (sddm-configuration\n"
  26625. " (auto-login-user \"alice\")\n"
  26626. " (auto-login-session \"xfce.desktop\")))\n"
  26627. msgstr ""
  26628. #. type: deftp
  26629. #: guix-git/doc/guix.texi:18023
  26630. #, fuzzy
  26631. msgid "This data type represents the configuration of the SDDM login manager. The available fields are:"
  26632. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  26633. #. type: item
  26634. #: guix-git/doc/guix.texi:18025
  26635. #, fuzzy, no-wrap
  26636. msgid "@code{sddm} (default: @code{sddm})"
  26637. msgstr "@code{speed}(默认值:@code{1.0})"
  26638. #. type: table
  26639. #: guix-git/doc/guix.texi:18027
  26640. #, fuzzy
  26641. msgid "The SDDM package to use."
  26642. msgstr "软件包数据类型。"
  26643. #. type: item
  26644. #: guix-git/doc/guix.texi:18028
  26645. #, fuzzy, no-wrap
  26646. msgid "@code{display-server} (default: @code{\"x11\"})"
  26647. msgstr "@code{display}(默认值:@code{\":0\"})"
  26648. #. type: table
  26649. #: guix-git/doc/guix.texi:18030
  26650. msgid "This must be either @code{\"x11\"} or @code{\"wayland\"}."
  26651. msgstr ""
  26652. #. type: item
  26653. #: guix-git/doc/guix.texi:18033
  26654. #, fuzzy, no-wrap
  26655. msgid "@code{auto-login-user} (default: @code{\"\"})"
  26656. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  26657. #. type: table
  26658. #: guix-git/doc/guix.texi:18036
  26659. msgid "If non-empty, this is the user account under which to log in automatically."
  26660. msgstr ""
  26661. #. type: item
  26662. #: guix-git/doc/guix.texi:18037
  26663. #, fuzzy, no-wrap
  26664. msgid "@code{auto-login-session} (default: @code{\"\"})"
  26665. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  26666. #. type: table
  26667. #: guix-git/doc/guix.texi:18040
  26668. msgid "If non-empty, this is the @file{.desktop} file name to use as the auto-login session."
  26669. msgstr ""
  26670. #. type: cindex
  26671. #: guix-git/doc/guix.texi:18043
  26672. #, no-wrap
  26673. msgid "Xorg, configuration"
  26674. msgstr ""
  26675. #. type: deftp
  26676. #: guix-git/doc/guix.texi:18044
  26677. #, no-wrap
  26678. msgid "{Data Type} xorg-configuration"
  26679. msgstr ""
  26680. #. type: deftp
  26681. #: guix-git/doc/guix.texi:18049
  26682. 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."
  26683. msgstr ""
  26684. #. type: item
  26685. #: guix-git/doc/guix.texi:18051
  26686. #, no-wrap
  26687. msgid "@code{modules} (default: @code{%default-xorg-modules})"
  26688. msgstr ""
  26689. #. type: table
  26690. #: guix-git/doc/guix.texi:18054
  26691. 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."
  26692. msgstr ""
  26693. #. type: item
  26694. #: guix-git/doc/guix.texi:18055
  26695. #, no-wrap
  26696. msgid "@code{fonts} (default: @code{%default-xorg-fonts})"
  26697. msgstr ""
  26698. #. type: table
  26699. #: guix-git/doc/guix.texi:18057
  26700. msgid "This is a list of font directories to add to the server's @dfn{font path}."
  26701. msgstr ""
  26702. #. type: item
  26703. #: guix-git/doc/guix.texi:18058
  26704. #, no-wrap
  26705. msgid "@code{drivers} (default: @code{'()})"
  26706. msgstr ""
  26707. #. type: table
  26708. #: guix-git/doc/guix.texi:18062
  26709. 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\")}."
  26710. msgstr ""
  26711. #. type: item
  26712. #: guix-git/doc/guix.texi:18063
  26713. #, no-wrap
  26714. msgid "@code{resolutions} (default: @code{'()})"
  26715. msgstr ""
  26716. #. type: table
  26717. #: guix-git/doc/guix.texi:18067
  26718. 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))}."
  26719. msgstr ""
  26720. #. type: cindex
  26721. #: guix-git/doc/guix.texi:18068
  26722. #, no-wrap
  26723. msgid "keyboard layout, for Xorg"
  26724. msgstr ""
  26725. #. type: cindex
  26726. #: guix-git/doc/guix.texi:18069
  26727. #, no-wrap
  26728. msgid "keymap, for Xorg"
  26729. msgstr ""
  26730. #. type: table
  26731. #: guix-git/doc/guix.texi:18073
  26732. msgid "If this is @code{#f}, Xorg uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  26733. msgstr ""
  26734. #. type: table
  26735. #: guix-git/doc/guix.texi:18077
  26736. 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."
  26737. msgstr ""
  26738. #. type: item
  26739. #: guix-git/doc/guix.texi:18078 guix-git/doc/guix.texi:19789
  26740. #: guix-git/doc/guix.texi:31970
  26741. #, no-wrap
  26742. msgid "@code{extra-config} (default: @code{'()})"
  26743. msgstr ""
  26744. #. type: table
  26745. #: guix-git/doc/guix.texi:18081 guix-git/doc/guix.texi:31974
  26746. 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."
  26747. msgstr ""
  26748. #. type: item
  26749. #: guix-git/doc/guix.texi:18082
  26750. #, no-wrap
  26751. msgid "@code{server} (default: @code{xorg-server})"
  26752. msgstr ""
  26753. #. type: table
  26754. #: guix-git/doc/guix.texi:18084
  26755. msgid "This is the package providing the Xorg server."
  26756. msgstr ""
  26757. #. type: item
  26758. #: guix-git/doc/guix.texi:18085
  26759. #, no-wrap
  26760. msgid "@code{server-arguments} (default: @code{%default-xorg-server-arguments})"
  26761. msgstr ""
  26762. #. type: table
  26763. #: guix-git/doc/guix.texi:18088
  26764. msgid "This is the list of command-line arguments to pass to the X server. The default is @code{-nolisten tcp}."
  26765. msgstr ""
  26766. #. type: deffn
  26767. #: guix-git/doc/guix.texi:18091
  26768. #, no-wrap
  26769. msgid "{Scheme Procedure} set-xorg-configuration @var{config} @"
  26770. msgstr ""
  26771. #. type: deffn
  26772. #: guix-git/doc/guix.texi:18095
  26773. 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."
  26774. msgstr ""
  26775. #. type: deffn
  26776. #: guix-git/doc/guix.texi:18099
  26777. 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."
  26778. msgstr ""
  26779. #. type: deffn
  26780. #: guix-git/doc/guix.texi:18101
  26781. #, no-wrap
  26782. msgid "{Scheme Procedure} xorg-start-command [@var{config}]"
  26783. msgstr ""
  26784. #. type: deffn
  26785. #: guix-git/doc/guix.texi:18105
  26786. 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}."
  26787. msgstr ""
  26788. #. type: deffn
  26789. #: guix-git/doc/guix.texi:18107
  26790. msgid "Usually the X server is started by a login manager."
  26791. msgstr ""
  26792. #. type: deffn
  26793. #: guix-git/doc/guix.texi:18110
  26794. #, no-wrap
  26795. msgid "{Scheme Procedure} screen-locker-service @var{package} [@var{program}]"
  26796. msgstr ""
  26797. #. type: deffn
  26798. #: guix-git/doc/guix.texi:18114
  26799. 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:"
  26800. msgstr ""
  26801. #. type: lisp
  26802. #: guix-git/doc/guix.texi:18117
  26803. #, no-wrap
  26804. msgid "(screen-locker-service xlockmore \"xlock\")\n"
  26805. msgstr ""
  26806. #. type: deffn
  26807. #: guix-git/doc/guix.texi:18120
  26808. msgid "makes the good ol' XlockMore usable."
  26809. msgstr ""
  26810. #. type: cindex
  26811. #: guix-git/doc/guix.texi:18126
  26812. #, no-wrap
  26813. msgid "printer support with CUPS"
  26814. msgstr ""
  26815. #. type: Plain text
  26816. #: guix-git/doc/guix.texi:18130
  26817. 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:"
  26818. msgstr ""
  26819. #. type: deffn
  26820. #: guix-git/doc/guix.texi:18131
  26821. #, no-wrap
  26822. msgid "{Scheme Variable} cups-service-type"
  26823. msgstr ""
  26824. #. type: deffn
  26825. #: guix-git/doc/guix.texi:18135
  26826. 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:"
  26827. msgstr ""
  26828. #. type: lisp
  26829. #: guix-git/doc/guix.texi:18137
  26830. #, no-wrap
  26831. msgid "(service cups-service-type)\n"
  26832. msgstr ""
  26833. #. type: Plain text
  26834. #: guix-git/doc/guix.texi:18147
  26835. 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."
  26836. msgstr ""
  26837. #. type: Plain text
  26838. #: guix-git/doc/guix.texi:18153
  26839. 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):"
  26840. msgstr ""
  26841. #. type: lisp
  26842. #: guix-git/doc/guix.texi:18160
  26843. #, no-wrap
  26844. msgid ""
  26845. "(service cups-service-type\n"
  26846. " (cups-configuration\n"
  26847. " (web-interface? #t)\n"
  26848. " (extensions\n"
  26849. " (list cups-filters epson-inkjet-printer-escpr hplip-minimal))))\n"
  26850. msgstr ""
  26851. #. type: Plain text
  26852. #: guix-git/doc/guix.texi:18165
  26853. 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."
  26854. msgstr ""
  26855. #. type: Plain text
  26856. #: guix-git/doc/guix.texi:18172
  26857. 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."
  26858. msgstr ""
  26859. #. type: Plain text
  26860. #: guix-git/doc/guix.texi:18183
  26861. msgid "Available @code{cups-configuration} fields are:"
  26862. msgstr ""
  26863. #. type: deftypevr
  26864. #: guix-git/doc/guix.texi:18184
  26865. #, no-wrap
  26866. msgid "{@code{cups-configuration} parameter} package cups"
  26867. msgstr ""
  26868. #. type: deftypevr
  26869. #: guix-git/doc/guix.texi:18186 guix-git/doc/guix.texi:18954
  26870. msgid "The CUPS package."
  26871. msgstr ""
  26872. #. type: deftypevr
  26873. #: guix-git/doc/guix.texi:18188
  26874. #, no-wrap
  26875. msgid "{@code{cups-configuration} parameter} package-list extensions (default: @code{(list brlaser cups-filters epson-inkjet-printer-escpr foomatic-filters hplip-minimal splix)})"
  26876. msgstr ""
  26877. #. type: deftypevr
  26878. #: guix-git/doc/guix.texi:18190
  26879. msgid "Drivers and other extensions to the CUPS package."
  26880. msgstr ""
  26881. #. type: deftypevr
  26882. #: guix-git/doc/guix.texi:18192
  26883. #, no-wrap
  26884. msgid "{@code{cups-configuration} parameter} files-configuration files-configuration"
  26885. msgstr ""
  26886. #. type: deftypevr
  26887. #: guix-git/doc/guix.texi:18195
  26888. msgid "Configuration of where to write logs, what directories to use for print spools, and related privileged configuration parameters."
  26889. msgstr ""
  26890. #. type: deftypevr
  26891. #: guix-git/doc/guix.texi:18197
  26892. msgid "Available @code{files-configuration} fields are:"
  26893. msgstr ""
  26894. #. type: deftypevr
  26895. #: guix-git/doc/guix.texi:18198
  26896. #, no-wrap
  26897. msgid "{@code{files-configuration} parameter} log-location access-log"
  26898. msgstr ""
  26899. #. type: deftypevr
  26900. #: guix-git/doc/guix.texi:18206
  26901. 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}."
  26902. msgstr ""
  26903. #. type: deftypevr
  26904. #: guix-git/doc/guix.texi:18208
  26905. msgid "Defaults to @samp{\"/var/log/cups/access_log\"}."
  26906. msgstr ""
  26907. #. type: deftypevr
  26908. #: guix-git/doc/guix.texi:18210
  26909. #, no-wrap
  26910. msgid "{@code{files-configuration} parameter} file-name cache-dir"
  26911. msgstr ""
  26912. #. type: deftypevr
  26913. #: guix-git/doc/guix.texi:18212
  26914. msgid "Where CUPS should cache data."
  26915. msgstr ""
  26916. #. type: deftypevr
  26917. #: guix-git/doc/guix.texi:18214
  26918. msgid "Defaults to @samp{\"/var/cache/cups\"}."
  26919. msgstr ""
  26920. #. type: deftypevr
  26921. #: guix-git/doc/guix.texi:18216
  26922. #, no-wrap
  26923. msgid "{@code{files-configuration} parameter} string config-file-perm"
  26924. msgstr ""
  26925. #. type: deftypevr
  26926. #: guix-git/doc/guix.texi:18219
  26927. msgid "Specifies the permissions for all configuration files that the scheduler writes."
  26928. msgstr ""
  26929. #. type: deftypevr
  26930. #: guix-git/doc/guix.texi:18225
  26931. 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."
  26932. msgstr ""
  26933. #. type: deftypevr
  26934. #: guix-git/doc/guix.texi:18227
  26935. msgid "Defaults to @samp{\"0640\"}."
  26936. msgstr ""
  26937. #. type: deftypevr
  26938. #: guix-git/doc/guix.texi:18229
  26939. #, no-wrap
  26940. msgid "{@code{files-configuration} parameter} log-location error-log"
  26941. msgstr ""
  26942. #. type: deftypevr
  26943. #: guix-git/doc/guix.texi:18237
  26944. 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}."
  26945. msgstr ""
  26946. #. type: deftypevr
  26947. #: guix-git/doc/guix.texi:18239
  26948. msgid "Defaults to @samp{\"/var/log/cups/error_log\"}."
  26949. msgstr ""
  26950. #. type: deftypevr
  26951. #: guix-git/doc/guix.texi:18241
  26952. #, no-wrap
  26953. msgid "{@code{files-configuration} parameter} string fatal-errors"
  26954. msgstr ""
  26955. #. type: deftypevr
  26956. #: guix-git/doc/guix.texi:18244
  26957. msgid "Specifies which errors are fatal, causing the scheduler to exit. The kind strings are:"
  26958. msgstr ""
  26959. #. type: table
  26960. #: guix-git/doc/guix.texi:18248
  26961. msgid "No errors are fatal."
  26962. msgstr ""
  26963. #. type: table
  26964. #: guix-git/doc/guix.texi:18251
  26965. msgid "All of the errors below are fatal."
  26966. msgstr ""
  26967. #. type: item
  26968. #: guix-git/doc/guix.texi:18252
  26969. #, no-wrap
  26970. msgid "browse"
  26971. msgstr ""
  26972. #. type: table
  26973. #: guix-git/doc/guix.texi:18255
  26974. msgid "Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon."
  26975. msgstr ""
  26976. #. type: item
  26977. #: guix-git/doc/guix.texi:18256
  26978. #, no-wrap
  26979. msgid "config"
  26980. msgstr ""
  26981. #. type: table
  26982. #: guix-git/doc/guix.texi:18258
  26983. msgid "Configuration file syntax errors are fatal."
  26984. msgstr ""
  26985. #. type: item
  26986. #: guix-git/doc/guix.texi:18259
  26987. #, no-wrap
  26988. msgid "listen"
  26989. msgstr ""
  26990. #. type: table
  26991. #: guix-git/doc/guix.texi:18262
  26992. msgid "Listen or Port errors are fatal, except for IPv6 failures on the loopback or @code{any} addresses."
  26993. msgstr ""
  26994. #. type: item
  26995. #: guix-git/doc/guix.texi:18263
  26996. #, no-wrap
  26997. msgid "log"
  26998. msgstr ""
  26999. #. type: table
  27000. #: guix-git/doc/guix.texi:18265
  27001. msgid "Log file creation or write errors are fatal."
  27002. msgstr ""
  27003. #. type: item
  27004. #: guix-git/doc/guix.texi:18266
  27005. #, no-wrap
  27006. msgid "permissions"
  27007. msgstr ""
  27008. #. type: table
  27009. #: guix-git/doc/guix.texi:18269
  27010. msgid "Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions."
  27011. msgstr ""
  27012. #. type: deftypevr
  27013. #: guix-git/doc/guix.texi:18272
  27014. msgid "Defaults to @samp{\"all -browse\"}."
  27015. msgstr ""
  27016. #. type: deftypevr
  27017. #: guix-git/doc/guix.texi:18274
  27018. #, no-wrap
  27019. msgid "{@code{files-configuration} parameter} boolean file-device?"
  27020. msgstr ""
  27021. #. type: deftypevr
  27022. #: guix-git/doc/guix.texi:18277
  27023. msgid "Specifies whether the file pseudo-device can be used for new printer queues. The URI @uref{file:///dev/null} is always allowed."
  27024. msgstr ""
  27025. #. type: deftypevr
  27026. #: guix-git/doc/guix.texi:18279 guix-git/doc/guix.texi:18349
  27027. #: guix-git/doc/guix.texi:18391 guix-git/doc/guix.texi:18411
  27028. #: guix-git/doc/guix.texi:18417 guix-git/doc/guix.texi:18433
  27029. #: guix-git/doc/guix.texi:18521 guix-git/doc/guix.texi:18615
  27030. #: guix-git/doc/guix.texi:18928 guix-git/doc/guix.texi:18941
  27031. #: guix-git/doc/guix.texi:21490 guix-git/doc/guix.texi:21596
  27032. #: guix-git/doc/guix.texi:21661 guix-git/doc/guix.texi:21670
  27033. #: guix-git/doc/guix.texi:22675 guix-git/doc/guix.texi:22719
  27034. #: guix-git/doc/guix.texi:22736 guix-git/doc/guix.texi:22744
  27035. #: guix-git/doc/guix.texi:22759 guix-git/doc/guix.texi:22777
  27036. #: guix-git/doc/guix.texi:22801 guix-git/doc/guix.texi:22854
  27037. #: guix-git/doc/guix.texi:22987 guix-git/doc/guix.texi:23021
  27038. #: guix-git/doc/guix.texi:23057 guix-git/doc/guix.texi:23073
  27039. #: guix-git/doc/guix.texi:23101 guix-git/doc/guix.texi:23162
  27040. #: guix-git/doc/guix.texi:23245 guix-git/doc/guix.texi:26638
  27041. #: guix-git/doc/guix.texi:26652 guix-git/doc/guix.texi:26674
  27042. #: guix-git/doc/guix.texi:26793 guix-git/doc/guix.texi:26807
  27043. #: guix-git/doc/guix.texi:26828 guix-git/doc/guix.texi:26849
  27044. #: guix-git/doc/guix.texi:26856 guix-git/doc/guix.texi:26901
  27045. #: guix-git/doc/guix.texi:26908 guix-git/doc/guix.texi:27641
  27046. #: guix-git/doc/guix.texi:27655 guix-git/doc/guix.texi:27827
  27047. #: guix-git/doc/guix.texi:27872 guix-git/doc/guix.texi:27959
  27048. #: guix-git/doc/guix.texi:28161 guix-git/doc/guix.texi:28194
  27049. #: guix-git/doc/guix.texi:28334 guix-git/doc/guix.texi:28345
  27050. #: guix-git/doc/guix.texi:28596 guix-git/doc/guix.texi:30061
  27051. #: guix-git/doc/guix.texi:30070 guix-git/doc/guix.texi:30078
  27052. #: guix-git/doc/guix.texi:30086 guix-git/doc/guix.texi:30102
  27053. #: guix-git/doc/guix.texi:30118 guix-git/doc/guix.texi:30126
  27054. #: guix-git/doc/guix.texi:30134 guix-git/doc/guix.texi:30143
  27055. #: guix-git/doc/guix.texi:30152 guix-git/doc/guix.texi:30168
  27056. #: guix-git/doc/guix.texi:30232 guix-git/doc/guix.texi:30338
  27057. #: guix-git/doc/guix.texi:30346 guix-git/doc/guix.texi:30354
  27058. #: guix-git/doc/guix.texi:30379 guix-git/doc/guix.texi:30433
  27059. #: guix-git/doc/guix.texi:30481 guix-git/doc/guix.texi:30682
  27060. #: guix-git/doc/guix.texi:30689
  27061. msgid "Defaults to @samp{#f}."
  27062. msgstr ""
  27063. #. type: deftypevr
  27064. #: guix-git/doc/guix.texi:18281
  27065. #, no-wrap
  27066. msgid "{@code{files-configuration} parameter} string group"
  27067. msgstr ""
  27068. #. type: deftypevr
  27069. #: guix-git/doc/guix.texi:18284
  27070. msgid "Specifies the group name or ID that will be used when executing external programs."
  27071. msgstr ""
  27072. #. type: deftypevr
  27073. #: guix-git/doc/guix.texi:18286 guix-git/doc/guix.texi:18366
  27074. msgid "Defaults to @samp{\"lp\"}."
  27075. msgstr ""
  27076. #. type: deftypevr
  27077. #: guix-git/doc/guix.texi:18288
  27078. #, no-wrap
  27079. msgid "{@code{files-configuration} parameter} string log-file-perm"
  27080. msgstr ""
  27081. #. type: deftypevr
  27082. #: guix-git/doc/guix.texi:18290
  27083. msgid "Specifies the permissions for all log files that the scheduler writes."
  27084. msgstr ""
  27085. #. type: deftypevr
  27086. #: guix-git/doc/guix.texi:18292
  27087. msgid "Defaults to @samp{\"0644\"}."
  27088. msgstr ""
  27089. #. type: deftypevr
  27090. #: guix-git/doc/guix.texi:18294
  27091. #, no-wrap
  27092. msgid "{@code{files-configuration} parameter} log-location page-log"
  27093. msgstr ""
  27094. #. type: deftypevr
  27095. #: guix-git/doc/guix.texi:18302
  27096. 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}."
  27097. msgstr ""
  27098. #. type: deftypevr
  27099. #: guix-git/doc/guix.texi:18304
  27100. msgid "Defaults to @samp{\"/var/log/cups/page_log\"}."
  27101. msgstr ""
  27102. #. type: deftypevr
  27103. #: guix-git/doc/guix.texi:18306
  27104. #, no-wrap
  27105. msgid "{@code{files-configuration} parameter} string remote-root"
  27106. msgstr ""
  27107. #. type: deftypevr
  27108. #: guix-git/doc/guix.texi:18309
  27109. msgid "Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is @code{remroot}."
  27110. msgstr ""
  27111. #. type: deftypevr
  27112. #: guix-git/doc/guix.texi:18311
  27113. msgid "Defaults to @samp{\"remroot\"}."
  27114. msgstr ""
  27115. #. type: deftypevr
  27116. #: guix-git/doc/guix.texi:18313
  27117. #, no-wrap
  27118. msgid "{@code{files-configuration} parameter} file-name request-root"
  27119. msgstr ""
  27120. #. type: deftypevr
  27121. #: guix-git/doc/guix.texi:18316
  27122. msgid "Specifies the directory that contains print jobs and other HTTP request data."
  27123. msgstr ""
  27124. #. type: deftypevr
  27125. #: guix-git/doc/guix.texi:18318
  27126. msgid "Defaults to @samp{\"/var/spool/cups\"}."
  27127. msgstr ""
  27128. #. type: deftypevr
  27129. #: guix-git/doc/guix.texi:18320
  27130. #, no-wrap
  27131. msgid "{@code{files-configuration} parameter} sandboxing sandboxing"
  27132. msgstr ""
  27133. #. type: deftypevr
  27134. #: guix-git/doc/guix.texi:18325
  27135. 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."
  27136. msgstr ""
  27137. #. type: deftypevr
  27138. #: guix-git/doc/guix.texi:18327
  27139. msgid "Defaults to @samp{strict}."
  27140. msgstr ""
  27141. #. type: deftypevr
  27142. #: guix-git/doc/guix.texi:18329
  27143. #, no-wrap
  27144. msgid "{@code{files-configuration} parameter} file-name server-keychain"
  27145. msgstr ""
  27146. #. type: deftypevr
  27147. #: guix-git/doc/guix.texi:18334
  27148. 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."
  27149. msgstr ""
  27150. #. type: deftypevr
  27151. #: guix-git/doc/guix.texi:18336
  27152. msgid "Defaults to @samp{\"/etc/cups/ssl\"}."
  27153. msgstr ""
  27154. #. type: deftypevr
  27155. #: guix-git/doc/guix.texi:18338
  27156. #, no-wrap
  27157. msgid "{@code{files-configuration} parameter} file-name server-root"
  27158. msgstr ""
  27159. #. type: deftypevr
  27160. #: guix-git/doc/guix.texi:18340
  27161. msgid "Specifies the directory containing the server configuration files."
  27162. msgstr ""
  27163. #. type: deftypevr
  27164. #: guix-git/doc/guix.texi:18342
  27165. msgid "Defaults to @samp{\"/etc/cups\"}."
  27166. msgstr ""
  27167. #. type: deftypevr
  27168. #: guix-git/doc/guix.texi:18344
  27169. #, no-wrap
  27170. msgid "{@code{files-configuration} parameter} boolean sync-on-close?"
  27171. msgstr ""
  27172. #. type: deftypevr
  27173. #: guix-git/doc/guix.texi:18347
  27174. msgid "Specifies whether the scheduler calls fsync(2) after writing configuration or state files."
  27175. msgstr ""
  27176. #. type: deftypevr
  27177. #: guix-git/doc/guix.texi:18351
  27178. #, no-wrap
  27179. msgid "{@code{files-configuration} parameter} space-separated-string-list system-group"
  27180. msgstr ""
  27181. #. type: deftypevr
  27182. #: guix-git/doc/guix.texi:18353
  27183. msgid "Specifies the group(s) to use for @code{@@SYSTEM} group authentication."
  27184. msgstr ""
  27185. #. type: deftypevr
  27186. #: guix-git/doc/guix.texi:18355
  27187. #, no-wrap
  27188. msgid "{@code{files-configuration} parameter} file-name temp-dir"
  27189. msgstr ""
  27190. #. type: deftypevr
  27191. #: guix-git/doc/guix.texi:18357
  27192. msgid "Specifies the directory where temporary files are stored."
  27193. msgstr ""
  27194. #. type: deftypevr
  27195. #: guix-git/doc/guix.texi:18359
  27196. msgid "Defaults to @samp{\"/var/spool/cups/tmp\"}."
  27197. msgstr ""
  27198. #. type: deftypevr
  27199. #: guix-git/doc/guix.texi:18361
  27200. #, no-wrap
  27201. msgid "{@code{files-configuration} parameter} string user"
  27202. msgstr ""
  27203. #. type: deftypevr
  27204. #: guix-git/doc/guix.texi:18364
  27205. msgid "Specifies the user name or ID that is used when running external programs."
  27206. msgstr ""
  27207. #. type: deftypevr
  27208. #: guix-git/doc/guix.texi:18368
  27209. #, no-wrap
  27210. msgid "{@code{files-configuration} parameter} string set-env"
  27211. msgstr ""
  27212. #. type: deftypevr
  27213. #: guix-git/doc/guix.texi:18370
  27214. msgid "Set the specified environment variable to be passed to child processes."
  27215. msgstr ""
  27216. #. type: deftypevr
  27217. #: guix-git/doc/guix.texi:18372
  27218. msgid "Defaults to @samp{\"variable value\"}."
  27219. msgstr ""
  27220. #. type: deftypevr
  27221. #: guix-git/doc/guix.texi:18375
  27222. #, no-wrap
  27223. msgid "{@code{cups-configuration} parameter} access-log-level access-log-level"
  27224. msgstr ""
  27225. #. type: deftypevr
  27226. #: guix-git/doc/guix.texi:18382
  27227. 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."
  27228. msgstr ""
  27229. #. type: deftypevr
  27230. #: guix-git/doc/guix.texi:18384
  27231. msgid "Defaults to @samp{actions}."
  27232. msgstr ""
  27233. #. type: deftypevr
  27234. #: guix-git/doc/guix.texi:18386
  27235. #, no-wrap
  27236. msgid "{@code{cups-configuration} parameter} boolean auto-purge-jobs?"
  27237. msgstr ""
  27238. #. type: deftypevr
  27239. #: guix-git/doc/guix.texi:18389
  27240. msgid "Specifies whether to purge job history data automatically when it is no longer required for quotas."
  27241. msgstr ""
  27242. #. type: deftypevr
  27243. #: guix-git/doc/guix.texi:18393
  27244. #, no-wrap
  27245. msgid "{@code{cups-configuration} parameter} comma-separated-string-list browse-dns-sd-sub-types"
  27246. msgstr ""
  27247. #. type: deftypevr
  27248. #: guix-git/doc/guix.texi:18397
  27249. 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."
  27250. msgstr ""
  27251. #. type: deftypevr
  27252. #: guix-git/doc/guix.texi:18399
  27253. msgid "Defaults to @samp{\"_cups\"}."
  27254. msgstr ""
  27255. #. type: deftypevr
  27256. #: guix-git/doc/guix.texi:18401
  27257. #, no-wrap
  27258. msgid "{@code{cups-configuration} parameter} browse-local-protocols browse-local-protocols"
  27259. msgstr ""
  27260. #. type: deftypevr
  27261. #: guix-git/doc/guix.texi:18403
  27262. msgid "Specifies which protocols to use for local printer sharing."
  27263. msgstr ""
  27264. #. type: deftypevr
  27265. #: guix-git/doc/guix.texi:18405
  27266. msgid "Defaults to @samp{dnssd}."
  27267. msgstr ""
  27268. #. type: deftypevr
  27269. #: guix-git/doc/guix.texi:18407
  27270. #, no-wrap
  27271. msgid "{@code{cups-configuration} parameter} boolean browse-web-if?"
  27272. msgstr ""
  27273. #. type: deftypevr
  27274. #: guix-git/doc/guix.texi:18409
  27275. msgid "Specifies whether the CUPS web interface is advertised."
  27276. msgstr ""
  27277. #. type: deftypevr
  27278. #: guix-git/doc/guix.texi:18413
  27279. #, no-wrap
  27280. msgid "{@code{cups-configuration} parameter} boolean browsing?"
  27281. msgstr ""
  27282. #. type: deftypevr
  27283. #: guix-git/doc/guix.texi:18415
  27284. msgid "Specifies whether shared printers are advertised."
  27285. msgstr ""
  27286. #. type: deftypevr
  27287. #: guix-git/doc/guix.texi:18419
  27288. #, no-wrap
  27289. msgid "{@code{cups-configuration} parameter} string classification"
  27290. msgstr ""
  27291. #. type: deftypevr
  27292. #: guix-git/doc/guix.texi:18424
  27293. 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."
  27294. msgstr ""
  27295. #. type: deftypevr
  27296. #: guix-git/doc/guix.texi:18426 guix-git/doc/guix.texi:18763
  27297. #: guix-git/doc/guix.texi:20711 guix-git/doc/guix.texi:20723
  27298. #: guix-git/doc/guix.texi:21497 guix-git/doc/guix.texi:21511
  27299. #: guix-git/doc/guix.texi:21518 guix-git/doc/guix.texi:21525
  27300. #: guix-git/doc/guix.texi:21555 guix-git/doc/guix.texi:21653
  27301. #: guix-git/doc/guix.texi:23544 guix-git/doc/guix.texi:23570
  27302. #: guix-git/doc/guix.texi:23606 guix-git/doc/guix.texi:23652
  27303. #: guix-git/doc/guix.texi:23671 guix-git/doc/guix.texi:23710
  27304. #: guix-git/doc/guix.texi:23769 guix-git/doc/guix.texi:23779
  27305. #: guix-git/doc/guix.texi:28300 guix-git/doc/guix.texi:28308
  27306. #: guix-git/doc/guix.texi:28316 guix-git/doc/guix.texi:28324
  27307. #: guix-git/doc/guix.texi:28603 guix-git/doc/guix.texi:29904
  27308. #: guix-git/doc/guix.texi:29912 guix-git/doc/guix.texi:29920
  27309. #: guix-git/doc/guix.texi:30028 guix-git/doc/guix.texi:30053
  27310. #: guix-git/doc/guix.texi:30184 guix-git/doc/guix.texi:30192
  27311. #: guix-git/doc/guix.texi:30200 guix-git/doc/guix.texi:30208
  27312. #: guix-git/doc/guix.texi:30216 guix-git/doc/guix.texi:30224
  27313. #: guix-git/doc/guix.texi:30247 guix-git/doc/guix.texi:30255
  27314. #: guix-git/doc/guix.texi:30307 guix-git/doc/guix.texi:30323
  27315. #: guix-git/doc/guix.texi:30331 guix-git/doc/guix.texi:30370
  27316. #: guix-git/doc/guix.texi:30393 guix-git/doc/guix.texi:30415
  27317. #: guix-git/doc/guix.texi:30422 guix-git/doc/guix.texi:30457
  27318. #: guix-git/doc/guix.texi:30465 guix-git/doc/guix.texi:30489
  27319. #: guix-git/doc/guix.texi:30521 guix-git/doc/guix.texi:30550
  27320. #: guix-git/doc/guix.texi:30557 guix-git/doc/guix.texi:30564
  27321. #: guix-git/doc/guix.texi:30572 guix-git/doc/guix.texi:30586
  27322. #: guix-git/doc/guix.texi:30595 guix-git/doc/guix.texi:30605
  27323. #: guix-git/doc/guix.texi:30612 guix-git/doc/guix.texi:30619
  27324. #: guix-git/doc/guix.texi:30626 guix-git/doc/guix.texi:30697
  27325. #: guix-git/doc/guix.texi:30704 guix-git/doc/guix.texi:30711
  27326. #: guix-git/doc/guix.texi:30720 guix-git/doc/guix.texi:30736
  27327. #: guix-git/doc/guix.texi:30743 guix-git/doc/guix.texi:30750
  27328. #: guix-git/doc/guix.texi:30757 guix-git/doc/guix.texi:30765
  27329. #: guix-git/doc/guix.texi:30773
  27330. msgid "Defaults to @samp{\"\"}."
  27331. msgstr ""
  27332. #. type: deftypevr
  27333. #: guix-git/doc/guix.texi:18428
  27334. #, no-wrap
  27335. msgid "{@code{cups-configuration} parameter} boolean classify-override?"
  27336. msgstr ""
  27337. #. type: deftypevr
  27338. #: guix-git/doc/guix.texi:18431
  27339. msgid "Specifies whether users may override the classification (cover page) of individual print jobs using the @code{job-sheets} option."
  27340. msgstr ""
  27341. #. type: deftypevr
  27342. #: guix-git/doc/guix.texi:18435
  27343. #, no-wrap
  27344. msgid "{@code{cups-configuration} parameter} default-auth-type default-auth-type"
  27345. msgstr ""
  27346. #. type: deftypevr
  27347. #: guix-git/doc/guix.texi:18437
  27348. msgid "Specifies the default type of authentication to use."
  27349. msgstr ""
  27350. #. type: deftypevr
  27351. #: guix-git/doc/guix.texi:18439
  27352. msgid "Defaults to @samp{Basic}."
  27353. msgstr ""
  27354. #. type: deftypevr
  27355. #: guix-git/doc/guix.texi:18441
  27356. #, no-wrap
  27357. msgid "{@code{cups-configuration} parameter} default-encryption default-encryption"
  27358. msgstr ""
  27359. #. type: deftypevr
  27360. #: guix-git/doc/guix.texi:18443
  27361. msgid "Specifies whether encryption will be used for authenticated requests."
  27362. msgstr ""
  27363. #. type: deftypevr
  27364. #: guix-git/doc/guix.texi:18445
  27365. msgid "Defaults to @samp{Required}."
  27366. msgstr ""
  27367. #. type: deftypevr
  27368. #: guix-git/doc/guix.texi:18447
  27369. #, no-wrap
  27370. msgid "{@code{cups-configuration} parameter} string default-language"
  27371. msgstr ""
  27372. #. type: deftypevr
  27373. #: guix-git/doc/guix.texi:18449
  27374. msgid "Specifies the default language to use for text and web content."
  27375. msgstr ""
  27376. #. type: deftypevr
  27377. #: guix-git/doc/guix.texi:18451
  27378. msgid "Defaults to @samp{\"en\"}."
  27379. msgstr ""
  27380. #. type: deftypevr
  27381. #: guix-git/doc/guix.texi:18453
  27382. #, no-wrap
  27383. msgid "{@code{cups-configuration} parameter} string default-paper-size"
  27384. msgstr ""
  27385. #. type: deftypevr
  27386. #: guix-git/doc/guix.texi:18458
  27387. 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\"}."
  27388. msgstr ""
  27389. #. type: deftypevr
  27390. #: guix-git/doc/guix.texi:18460
  27391. msgid "Defaults to @samp{\"Auto\"}."
  27392. msgstr ""
  27393. #. type: deftypevr
  27394. #: guix-git/doc/guix.texi:18462
  27395. #, no-wrap
  27396. msgid "{@code{cups-configuration} parameter} string default-policy"
  27397. msgstr ""
  27398. #. type: deftypevr
  27399. #: guix-git/doc/guix.texi:18464
  27400. msgid "Specifies the default access policy to use."
  27401. msgstr ""
  27402. #. type: deftypevr
  27403. #: guix-git/doc/guix.texi:18466
  27404. msgid "Defaults to @samp{\"default\"}."
  27405. msgstr ""
  27406. #. type: deftypevr
  27407. #: guix-git/doc/guix.texi:18468
  27408. #, no-wrap
  27409. msgid "{@code{cups-configuration} parameter} boolean default-shared?"
  27410. msgstr ""
  27411. #. type: deftypevr
  27412. #: guix-git/doc/guix.texi:18470
  27413. msgid "Specifies whether local printers are shared by default."
  27414. msgstr ""
  27415. #. type: deftypevr
  27416. #: guix-git/doc/guix.texi:18472 guix-git/doc/guix.texi:18552
  27417. #: guix-git/doc/guix.texi:18848 guix-git/doc/guix.texi:21587
  27418. #: guix-git/doc/guix.texi:21638 guix-git/doc/guix.texi:21645
  27419. #: guix-git/doc/guix.texi:22699 guix-git/doc/guix.texi:22887
  27420. #: guix-git/doc/guix.texi:23004 guix-git/doc/guix.texi:23040
  27421. #: guix-git/doc/guix.texi:23091 guix-git/doc/guix.texi:23110
  27422. #: guix-git/doc/guix.texi:23120 guix-git/doc/guix.texi:23130
  27423. #: guix-git/doc/guix.texi:23189 guix-git/doc/guix.texi:23211
  27424. #: guix-git/doc/guix.texi:23236 guix-git/doc/guix.texi:23262
  27425. #: guix-git/doc/guix.texi:23280 guix-git/doc/guix.texi:26460
  27426. #: guix-git/doc/guix.texi:26488 guix-git/doc/guix.texi:26615
  27427. #: guix-git/doc/guix.texi:26622 guix-git/doc/guix.texi:26630
  27428. #: guix-git/doc/guix.texi:26667 guix-git/doc/guix.texi:26681
  27429. #: guix-git/doc/guix.texi:26770 guix-git/doc/guix.texi:26777
  27430. #: guix-git/doc/guix.texi:26785 guix-git/doc/guix.texi:27508
  27431. #: guix-git/doc/guix.texi:27648 guix-git/doc/guix.texi:27834
  27432. #: guix-git/doc/guix.texi:27841 guix-git/doc/guix.texi:27863
  27433. #: guix-git/doc/guix.texi:27902 guix-git/doc/guix.texi:27922
  27434. #: guix-git/doc/guix.texi:27936 guix-git/doc/guix.texi:28149
  27435. #: guix-git/doc/guix.texi:30006 guix-git/doc/guix.texi:30094
  27436. #: guix-git/doc/guix.texi:30110 guix-git/doc/guix.texi:30160
  27437. msgid "Defaults to @samp{#t}."
  27438. msgstr ""
  27439. #. type: deftypevr
  27440. #: guix-git/doc/guix.texi:18474
  27441. #, no-wrap
  27442. msgid "{@code{cups-configuration} parameter} non-negative-integer dirty-clean-interval"
  27443. msgstr ""
  27444. #. type: deftypevr
  27445. #: guix-git/doc/guix.texi:18478
  27446. 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."
  27447. msgstr ""
  27448. #. type: deftypevr
  27449. #: guix-git/doc/guix.texi:18480 guix-git/doc/guix.texi:18528
  27450. #: guix-git/doc/guix.texi:18537 guix-git/doc/guix.texi:18558
  27451. #: guix-git/doc/guix.texi:18855 guix-git/doc/guix.texi:23049
  27452. #: guix-git/doc/guix.texi:23082
  27453. msgid "Defaults to @samp{30}."
  27454. msgstr ""
  27455. #. type: deftypevr
  27456. #: guix-git/doc/guix.texi:18482
  27457. #, no-wrap
  27458. msgid "{@code{cups-configuration} parameter} error-policy error-policy"
  27459. msgstr ""
  27460. #. type: deftypevr
  27461. #: guix-git/doc/guix.texi:18488
  27462. 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."
  27463. msgstr ""
  27464. #. type: deftypevr
  27465. #: guix-git/doc/guix.texi:18490
  27466. msgid "Defaults to @samp{stop-printer}."
  27467. msgstr ""
  27468. #. type: deftypevr
  27469. #: guix-git/doc/guix.texi:18492
  27470. #, no-wrap
  27471. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-limit"
  27472. msgstr ""
  27473. #. type: deftypevr
  27474. #: guix-git/doc/guix.texi:18500
  27475. 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."
  27476. msgstr ""
  27477. #. type: deftypevr
  27478. #: guix-git/doc/guix.texi:18502 guix-git/doc/guix.texi:18510
  27479. #: guix-git/doc/guix.texi:18565 guix-git/doc/guix.texi:18681
  27480. #: guix-git/doc/guix.texi:18695 guix-git/doc/guix.texi:18702
  27481. #: guix-git/doc/guix.texi:20153 guix-git/doc/guix.texi:20169
  27482. #: guix-git/doc/guix.texi:20815 guix-git/doc/guix.texi:20827
  27483. #: guix-git/doc/guix.texi:21606 guix-git/doc/guix.texi:21615
  27484. #: guix-git/doc/guix.texi:21623 guix-git/doc/guix.texi:21631
  27485. #: guix-git/doc/guix.texi:27524 guix-git/doc/guix.texi:27849
  27486. #: guix-git/doc/guix.texi:29999 guix-git/doc/guix.texi:30299
  27487. #: guix-git/doc/guix.texi:30473
  27488. msgid "Defaults to @samp{0}."
  27489. msgstr ""
  27490. #. type: deftypevr
  27491. #: guix-git/doc/guix.texi:18504
  27492. #, no-wrap
  27493. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-nice"
  27494. msgstr ""
  27495. #. type: deftypevr
  27496. #: guix-git/doc/guix.texi:18508
  27497. 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."
  27498. msgstr ""
  27499. #. type: deftypevr
  27500. #: guix-git/doc/guix.texi:18512
  27501. #, no-wrap
  27502. msgid "{@code{cups-configuration} parameter} host-name-lookups host-name-lookups"
  27503. msgstr ""
  27504. #. type: deftypevr
  27505. #: guix-git/doc/guix.texi:18519
  27506. 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."
  27507. msgstr ""
  27508. #. type: deftypevr
  27509. #: guix-git/doc/guix.texi:18523
  27510. #, no-wrap
  27511. msgid "{@code{cups-configuration} parameter} non-negative-integer job-kill-delay"
  27512. msgstr ""
  27513. #. type: deftypevr
  27514. #: guix-git/doc/guix.texi:18526
  27515. msgid "Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job."
  27516. msgstr ""
  27517. #. type: deftypevr
  27518. #: guix-git/doc/guix.texi:18530
  27519. #, no-wrap
  27520. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-interval"
  27521. msgstr ""
  27522. #. type: deftypevr
  27523. #: guix-git/doc/guix.texi:18535
  27524. 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}."
  27525. msgstr ""
  27526. #. type: deftypevr
  27527. #: guix-git/doc/guix.texi:18539
  27528. #, no-wrap
  27529. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-limit"
  27530. msgstr ""
  27531. #. type: deftypevr
  27532. #: guix-git/doc/guix.texi:18544
  27533. 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}."
  27534. msgstr ""
  27535. #. type: deftypevr
  27536. #: guix-git/doc/guix.texi:18546 guix-git/doc/guix.texi:23013
  27537. #: guix-git/doc/guix.texi:28401 guix-git/doc/guix.texi:28421
  27538. #: guix-git/doc/guix.texi:28437 guix-git/doc/guix.texi:28451
  27539. #: guix-git/doc/guix.texi:28458 guix-git/doc/guix.texi:28465
  27540. #: guix-git/doc/guix.texi:28472 guix-git/doc/guix.texi:28632
  27541. #: guix-git/doc/guix.texi:28648 guix-git/doc/guix.texi:28655
  27542. #: guix-git/doc/guix.texi:28662 guix-git/doc/guix.texi:28673
  27543. #: guix-git/doc/guix.texi:29951 guix-git/doc/guix.texi:29959
  27544. #: guix-git/doc/guix.texi:29967 guix-git/doc/guix.texi:29991
  27545. msgid "Defaults to @samp{5}."
  27546. msgstr ""
  27547. #. type: deftypevr
  27548. #: guix-git/doc/guix.texi:18548
  27549. #, no-wrap
  27550. msgid "{@code{cups-configuration} parameter} boolean keep-alive?"
  27551. msgstr ""
  27552. #. type: deftypevr
  27553. #: guix-git/doc/guix.texi:18550
  27554. msgid "Specifies whether to support HTTP keep-alive connections."
  27555. msgstr ""
  27556. #. type: deftypevr
  27557. #: guix-git/doc/guix.texi:18554
  27558. #, no-wrap
  27559. msgid "{@code{cups-configuration} parameter} non-negative-integer keep-alive-timeout"
  27560. msgstr ""
  27561. #. type: deftypevr
  27562. #: guix-git/doc/guix.texi:18556
  27563. msgid "Specifies how long an idle client connection remains open, in seconds."
  27564. msgstr ""
  27565. #. type: deftypevr
  27566. #: guix-git/doc/guix.texi:18560
  27567. #, no-wrap
  27568. msgid "{@code{cups-configuration} parameter} non-negative-integer limit-request-body"
  27569. msgstr ""
  27570. #. type: deftypevr
  27571. #: guix-git/doc/guix.texi:18563
  27572. msgid "Specifies the maximum size of print files, IPP requests, and HTML form data. A limit of 0 disables the limit check."
  27573. msgstr ""
  27574. #. type: deftypevr
  27575. #: guix-git/doc/guix.texi:18567
  27576. #, no-wrap
  27577. msgid "{@code{cups-configuration} parameter} multiline-string-list listen"
  27578. msgstr ""
  27579. #. type: deftypevr
  27580. #: guix-git/doc/guix.texi:18574
  27581. 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."
  27582. msgstr ""
  27583. #. type: deftypevr
  27584. #: guix-git/doc/guix.texi:18576
  27585. #, no-wrap
  27586. msgid "{@code{cups-configuration} parameter} non-negative-integer listen-back-log"
  27587. msgstr ""
  27588. #. type: deftypevr
  27589. #: guix-git/doc/guix.texi:18583
  27590. 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."
  27591. msgstr ""
  27592. #. type: deftypevr
  27593. #: guix-git/doc/guix.texi:18585
  27594. msgid "Defaults to @samp{128}."
  27595. msgstr ""
  27596. #. type: deftypevr
  27597. #: guix-git/doc/guix.texi:18587
  27598. #, no-wrap
  27599. msgid "{@code{cups-configuration} parameter} location-access-control-list location-access-controls"
  27600. msgstr ""
  27601. #. type: deftypevr
  27602. #: guix-git/doc/guix.texi:18589
  27603. msgid "Specifies a set of additional access controls."
  27604. msgstr ""
  27605. #. type: deftypevr
  27606. #: guix-git/doc/guix.texi:18591
  27607. msgid "Available @code{location-access-controls} fields are:"
  27608. msgstr ""
  27609. #. type: deftypevr
  27610. #: guix-git/doc/guix.texi:18592
  27611. #, no-wrap
  27612. msgid "{@code{location-access-controls} parameter} file-name path"
  27613. msgstr ""
  27614. #. type: deftypevr
  27615. #: guix-git/doc/guix.texi:18594
  27616. msgid "Specifies the URI path to which the access control applies."
  27617. msgstr ""
  27618. #. type: deftypevr
  27619. #: guix-git/doc/guix.texi:18596
  27620. #, no-wrap
  27621. msgid "{@code{location-access-controls} parameter} access-control-list access-controls"
  27622. msgstr ""
  27623. #. type: deftypevr
  27624. #: guix-git/doc/guix.texi:18599
  27625. msgid "Access controls for all access to this path, in the same format as the @code{access-controls} of @code{operation-access-control}."
  27626. msgstr ""
  27627. #. type: deftypevr
  27628. #: guix-git/doc/guix.texi:18601 guix-git/doc/guix.texi:18607
  27629. #: guix-git/doc/guix.texi:18621 guix-git/doc/guix.texi:18628
  27630. #: guix-git/doc/guix.texi:18770 guix-git/doc/guix.texi:18829
  27631. #: guix-git/doc/guix.texi:18907 guix-git/doc/guix.texi:18921
  27632. #: guix-git/doc/guix.texi:21301 guix-git/doc/guix.texi:21504
  27633. #: guix-git/doc/guix.texi:21532 guix-git/doc/guix.texi:21562
  27634. #: guix-git/doc/guix.texi:21677 guix-git/doc/guix.texi:21690
  27635. #: guix-git/doc/guix.texi:21697 guix-git/doc/guix.texi:23219
  27636. #: guix-git/doc/guix.texi:23614 guix-git/doc/guix.texi:23718
  27637. #: guix-git/doc/guix.texi:24145 guix-git/doc/guix.texi:24153
  27638. #: guix-git/doc/guix.texi:24398 guix-git/doc/guix.texi:26519
  27639. #: guix-git/doc/guix.texi:26688 guix-git/doc/guix.texi:26887
  27640. #: guix-git/doc/guix.texi:28292 guix-git/doc/guix.texi:28352
  27641. #: guix-git/doc/guix.texi:28360 guix-git/doc/guix.texi:30014
  27642. #: guix-git/doc/guix.texi:30021 guix-git/doc/guix.texi:30363
  27643. #: guix-git/doc/guix.texi:30441 guix-git/doc/guix.texi:30535
  27644. #: guix-git/doc/guix.texi:30543 guix-git/doc/guix.texi:30579
  27645. #: guix-git/doc/guix.texi:30729 guix-git/doc/guix.texi:30780
  27646. #: guix-git/doc/guix.texi:30789
  27647. msgid "Defaults to @samp{()}."
  27648. msgstr ""
  27649. #. type: deftypevr
  27650. #: guix-git/doc/guix.texi:18603
  27651. #, no-wrap
  27652. msgid "{@code{location-access-controls} parameter} method-access-control-list method-access-controls"
  27653. msgstr ""
  27654. #. type: deftypevr
  27655. #: guix-git/doc/guix.texi:18605
  27656. msgid "Access controls for method-specific access to this path."
  27657. msgstr ""
  27658. #. type: deftypevr
  27659. #: guix-git/doc/guix.texi:18609
  27660. msgid "Available @code{method-access-controls} fields are:"
  27661. msgstr ""
  27662. #. type: deftypevr
  27663. #: guix-git/doc/guix.texi:18610
  27664. #, no-wrap
  27665. msgid "{@code{method-access-controls} parameter} boolean reverse?"
  27666. msgstr ""
  27667. #. type: deftypevr
  27668. #: guix-git/doc/guix.texi:18613
  27669. msgid "If @code{#t}, apply access controls to all methods except the listed methods. Otherwise apply to only the listed methods."
  27670. msgstr ""
  27671. #. type: deftypevr
  27672. #: guix-git/doc/guix.texi:18617
  27673. #, no-wrap
  27674. msgid "{@code{method-access-controls} parameter} method-list methods"
  27675. msgstr ""
  27676. #. type: deftypevr
  27677. #: guix-git/doc/guix.texi:18619
  27678. msgid "Methods to which this access control applies."
  27679. msgstr ""
  27680. #. type: deftypevr
  27681. #: guix-git/doc/guix.texi:18623
  27682. #, no-wrap
  27683. msgid "{@code{method-access-controls} parameter} access-control-list access-controls"
  27684. msgstr ""
  27685. #. type: deftypevr
  27686. #: guix-git/doc/guix.texi:18626
  27687. msgid "Access control directives, as a list of strings. Each string should be one directive, such as @samp{\"Order allow,deny\"}."
  27688. msgstr ""
  27689. #. type: deftypevr
  27690. #: guix-git/doc/guix.texi:18632
  27691. #, no-wrap
  27692. msgid "{@code{cups-configuration} parameter} non-negative-integer log-debug-history"
  27693. msgstr ""
  27694. #. type: deftypevr
  27695. #: guix-git/doc/guix.texi:18636
  27696. 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."
  27697. msgstr ""
  27698. #. type: deftypevr
  27699. #: guix-git/doc/guix.texi:18638 guix-git/doc/guix.texi:18659
  27700. #: guix-git/doc/guix.texi:18666 guix-git/doc/guix.texi:21061
  27701. #: guix-git/doc/guix.texi:22751 guix-git/doc/guix.texi:22766
  27702. #: guix-git/doc/guix.texi:26872
  27703. msgid "Defaults to @samp{100}."
  27704. msgstr ""
  27705. #. type: deftypevr
  27706. #: guix-git/doc/guix.texi:18640
  27707. #, no-wrap
  27708. msgid "{@code{cups-configuration} parameter} log-level log-level"
  27709. msgstr ""
  27710. #. type: deftypevr
  27711. #: guix-git/doc/guix.texi:18643
  27712. msgid "Specifies the level of logging for the ErrorLog file. The value @code{none} stops all logging while @code{debug2} logs everything."
  27713. msgstr ""
  27714. #. type: deftypevr
  27715. #: guix-git/doc/guix.texi:18645 guix-git/doc/guix.texi:23228
  27716. msgid "Defaults to @samp{info}."
  27717. msgstr ""
  27718. #. type: deftypevr
  27719. #: guix-git/doc/guix.texi:18647
  27720. #, no-wrap
  27721. msgid "{@code{cups-configuration} parameter} log-time-format log-time-format"
  27722. msgstr ""
  27723. #. type: deftypevr
  27724. #: guix-git/doc/guix.texi:18650
  27725. 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."
  27726. msgstr ""
  27727. #. type: deftypevr
  27728. #: guix-git/doc/guix.texi:18652
  27729. msgid "Defaults to @samp{standard}."
  27730. msgstr ""
  27731. #. type: deftypevr
  27732. #: guix-git/doc/guix.texi:18654
  27733. #, no-wrap
  27734. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients"
  27735. msgstr ""
  27736. #. type: deftypevr
  27737. #: guix-git/doc/guix.texi:18657
  27738. msgid "Specifies the maximum number of simultaneous clients that are allowed by the scheduler."
  27739. msgstr ""
  27740. #. type: deftypevr
  27741. #: guix-git/doc/guix.texi:18661
  27742. #, no-wrap
  27743. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients-per-host"
  27744. msgstr ""
  27745. #. type: deftypevr
  27746. #: guix-git/doc/guix.texi:18664
  27747. msgid "Specifies the maximum number of simultaneous clients that are allowed from a single address."
  27748. msgstr ""
  27749. #. type: deftypevr
  27750. #: guix-git/doc/guix.texi:18668
  27751. #, no-wrap
  27752. msgid "{@code{cups-configuration} parameter} non-negative-integer max-copies"
  27753. msgstr ""
  27754. #. type: deftypevr
  27755. #: guix-git/doc/guix.texi:18671
  27756. msgid "Specifies the maximum number of copies that a user can print of each job."
  27757. msgstr ""
  27758. #. type: deftypevr
  27759. #: guix-git/doc/guix.texi:18673
  27760. msgid "Defaults to @samp{9999}."
  27761. msgstr ""
  27762. #. type: deftypevr
  27763. #: guix-git/doc/guix.texi:18675
  27764. #, no-wrap
  27765. msgid "{@code{cups-configuration} parameter} non-negative-integer max-hold-time"
  27766. msgstr ""
  27767. #. type: deftypevr
  27768. #: guix-git/doc/guix.texi:18679
  27769. 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."
  27770. msgstr ""
  27771. #. type: deftypevr
  27772. #: guix-git/doc/guix.texi:18683
  27773. #, no-wrap
  27774. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs"
  27775. msgstr ""
  27776. #. type: deftypevr
  27777. #: guix-git/doc/guix.texi:18686
  27778. msgid "Specifies the maximum number of simultaneous jobs that are allowed. Set to 0 to allow an unlimited number of jobs."
  27779. msgstr ""
  27780. #. type: deftypevr
  27781. #: guix-git/doc/guix.texi:18688
  27782. msgid "Defaults to @samp{500}."
  27783. msgstr ""
  27784. #. type: deftypevr
  27785. #: guix-git/doc/guix.texi:18690
  27786. #, no-wrap
  27787. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-printer"
  27788. msgstr ""
  27789. #. type: deftypevr
  27790. #: guix-git/doc/guix.texi:18693
  27791. msgid "Specifies the maximum number of simultaneous jobs that are allowed per printer. A value of 0 allows up to MaxJobs jobs per printer."
  27792. msgstr ""
  27793. #. type: deftypevr
  27794. #: guix-git/doc/guix.texi:18697
  27795. #, no-wrap
  27796. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-user"
  27797. msgstr ""
  27798. #. type: deftypevr
  27799. #: guix-git/doc/guix.texi:18700
  27800. msgid "Specifies the maximum number of simultaneous jobs that are allowed per user. A value of 0 allows up to MaxJobs jobs per user."
  27801. msgstr ""
  27802. #. type: deftypevr
  27803. #: guix-git/doc/guix.texi:18704
  27804. #, no-wrap
  27805. msgid "{@code{cups-configuration} parameter} non-negative-integer max-job-time"
  27806. msgstr ""
  27807. #. type: deftypevr
  27808. #: guix-git/doc/guix.texi:18707
  27809. 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."
  27810. msgstr ""
  27811. #. type: deftypevr
  27812. #: guix-git/doc/guix.texi:18709
  27813. msgid "Defaults to @samp{10800}."
  27814. msgstr ""
  27815. #. type: deftypevr
  27816. #: guix-git/doc/guix.texi:18711
  27817. #, no-wrap
  27818. msgid "{@code{cups-configuration} parameter} non-negative-integer max-log-size"
  27819. msgstr ""
  27820. #. type: deftypevr
  27821. #: guix-git/doc/guix.texi:18714
  27822. msgid "Specifies the maximum size of the log files before they are rotated, in bytes. The value 0 disables log rotation."
  27823. msgstr ""
  27824. #. type: deftypevr
  27825. #: guix-git/doc/guix.texi:18716
  27826. msgid "Defaults to @samp{1048576}."
  27827. msgstr ""
  27828. #. type: deftypevr
  27829. #: guix-git/doc/guix.texi:18718
  27830. #, no-wrap
  27831. msgid "{@code{cups-configuration} parameter} non-negative-integer multiple-operation-timeout"
  27832. msgstr ""
  27833. #. type: deftypevr
  27834. #: guix-git/doc/guix.texi:18721
  27835. msgid "Specifies the maximum amount of time to allow between files in a multiple file print job, in seconds."
  27836. msgstr ""
  27837. #. type: deftypevr
  27838. #: guix-git/doc/guix.texi:18723 guix-git/doc/guix.texi:18934
  27839. #: guix-git/doc/guix.texi:26453
  27840. msgid "Defaults to @samp{300}."
  27841. msgstr ""
  27842. #. type: deftypevr
  27843. #: guix-git/doc/guix.texi:18725
  27844. #, no-wrap
  27845. msgid "{@code{cups-configuration} parameter} string page-log-format"
  27846. msgstr ""
  27847. #. type: deftypevr
  27848. #: guix-git/doc/guix.texi:18730
  27849. 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:"
  27850. msgstr ""
  27851. #. type: item
  27852. #: guix-git/doc/guix.texi:18732
  27853. #, no-wrap
  27854. msgid "%%"
  27855. msgstr ""
  27856. #. type: table
  27857. #: guix-git/doc/guix.texi:18734
  27858. msgid "insert a single percent character"
  27859. msgstr ""
  27860. #. type: item
  27861. #: guix-git/doc/guix.texi:18735
  27862. #, no-wrap
  27863. msgid "%@{name@}"
  27864. msgstr ""
  27865. #. type: table
  27866. #: guix-git/doc/guix.texi:18737
  27867. msgid "insert the value of the specified IPP attribute"
  27868. msgstr ""
  27869. #. type: item
  27870. #: guix-git/doc/guix.texi:18738
  27871. #, no-wrap
  27872. msgid "%C"
  27873. msgstr ""
  27874. #. type: table
  27875. #: guix-git/doc/guix.texi:18740
  27876. msgid "insert the number of copies for the current page"
  27877. msgstr ""
  27878. #. type: item
  27879. #: guix-git/doc/guix.texi:18741
  27880. #, no-wrap
  27881. msgid "%P"
  27882. msgstr ""
  27883. #. type: table
  27884. #: guix-git/doc/guix.texi:18743
  27885. msgid "insert the current page number"
  27886. msgstr ""
  27887. #. type: item
  27888. #: guix-git/doc/guix.texi:18744
  27889. #, no-wrap
  27890. msgid "%T"
  27891. msgstr ""
  27892. #. type: table
  27893. #: guix-git/doc/guix.texi:18746
  27894. msgid "insert the current date and time in common log format"
  27895. msgstr ""
  27896. #. type: item
  27897. #: guix-git/doc/guix.texi:18747
  27898. #, no-wrap
  27899. msgid "%j"
  27900. msgstr ""
  27901. #. type: table
  27902. #: guix-git/doc/guix.texi:18749
  27903. msgid "insert the job ID"
  27904. msgstr ""
  27905. #. type: item
  27906. #: guix-git/doc/guix.texi:18750 guix-git/doc/guix.texi:20671
  27907. #, no-wrap
  27908. msgid "%p"
  27909. msgstr ""
  27910. #. type: table
  27911. #: guix-git/doc/guix.texi:18752
  27912. msgid "insert the printer name"
  27913. msgstr ""
  27914. #. type: item
  27915. #: guix-git/doc/guix.texi:18753 guix-git/doc/guix.texi:20694
  27916. #, no-wrap
  27917. msgid "%u"
  27918. msgstr ""
  27919. #. type: table
  27920. #: guix-git/doc/guix.texi:18755
  27921. msgid "insert the username"
  27922. msgstr ""
  27923. #. type: deftypevr
  27924. #: guix-git/doc/guix.texi:18761
  27925. 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."
  27926. msgstr ""
  27927. #. type: deftypevr
  27928. #: guix-git/doc/guix.texi:18765
  27929. #, no-wrap
  27930. msgid "{@code{cups-configuration} parameter} environment-variables environment-variables"
  27931. msgstr ""
  27932. #. type: deftypevr
  27933. #: guix-git/doc/guix.texi:18768
  27934. msgid "Passes the specified environment variable(s) to child processes; a list of strings."
  27935. msgstr ""
  27936. #. type: deftypevr
  27937. #: guix-git/doc/guix.texi:18772
  27938. #, no-wrap
  27939. msgid "{@code{cups-configuration} parameter} policy-configuration-list policies"
  27940. msgstr ""
  27941. #. type: deftypevr
  27942. #: guix-git/doc/guix.texi:18774
  27943. msgid "Specifies named access control policies."
  27944. msgstr ""
  27945. #. type: deftypevr
  27946. #: guix-git/doc/guix.texi:18776
  27947. msgid "Available @code{policy-configuration} fields are:"
  27948. msgstr ""
  27949. #. type: deftypevr
  27950. #: guix-git/doc/guix.texi:18777
  27951. #, no-wrap
  27952. msgid "{@code{policy-configuration} parameter} string name"
  27953. msgstr ""
  27954. #. type: deftypevr
  27955. #: guix-git/doc/guix.texi:18779
  27956. msgid "Name of the policy."
  27957. msgstr ""
  27958. #. type: deftypevr
  27959. #: guix-git/doc/guix.texi:18781
  27960. #, no-wrap
  27961. msgid "{@code{policy-configuration} parameter} string job-private-access"
  27962. msgstr ""
  27963. #. type: deftypevr
  27964. #: guix-git/doc/guix.texi:18791
  27965. 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-config} 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}."
  27966. msgstr ""
  27967. #. type: deftypevr
  27968. #: guix-git/doc/guix.texi:18793 guix-git/doc/guix.texi:18815
  27969. msgid "Defaults to @samp{\"@@OWNER @@SYSTEM\"}."
  27970. msgstr ""
  27971. #. type: deftypevr
  27972. #: guix-git/doc/guix.texi:18795
  27973. #, no-wrap
  27974. msgid "{@code{policy-configuration} parameter} string job-private-values"
  27975. msgstr ""
  27976. #. type: deftypevr
  27977. #: guix-git/doc/guix.texi:18798 guix-git/doc/guix.texi:18820
  27978. msgid "Specifies the list of job values to make private, or @code{all}, @code{default}, or @code{none}."
  27979. msgstr ""
  27980. #. type: deftypevr
  27981. #: guix-git/doc/guix.texi:18801
  27982. msgid "Defaults to @samp{\"job-name job-originating-host-name job-originating-user-name phone\"}."
  27983. msgstr ""
  27984. #. type: deftypevr
  27985. #: guix-git/doc/guix.texi:18803
  27986. #, no-wrap
  27987. msgid "{@code{policy-configuration} parameter} string subscription-private-access"
  27988. msgstr ""
  27989. #. type: deftypevr
  27990. #: guix-git/doc/guix.texi:18813
  27991. 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-config} 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}."
  27992. msgstr ""
  27993. #. type: deftypevr
  27994. #: guix-git/doc/guix.texi:18817
  27995. #, no-wrap
  27996. msgid "{@code{policy-configuration} parameter} string subscription-private-values"
  27997. msgstr ""
  27998. #. type: deftypevr
  27999. #: guix-git/doc/guix.texi:18823
  28000. msgid "Defaults to @samp{\"notify-events notify-pull-method notify-recipient-uri notify-subscriber-user-name notify-user-data\"}."
  28001. msgstr ""
  28002. #. type: deftypevr
  28003. #: guix-git/doc/guix.texi:18825
  28004. #, no-wrap
  28005. msgid "{@code{policy-configuration} parameter} operation-access-control-list access-controls"
  28006. msgstr ""
  28007. #. type: deftypevr
  28008. #: guix-git/doc/guix.texi:18827
  28009. msgid "Access control by IPP operation."
  28010. msgstr ""
  28011. #. type: deftypevr
  28012. #: guix-git/doc/guix.texi:18832
  28013. #, no-wrap
  28014. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-files"
  28015. msgstr ""
  28016. #. type: deftypevr
  28017. #: guix-git/doc/guix.texi:18837
  28018. 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."
  28019. msgstr ""
  28020. #. type: deftypevr
  28021. #: guix-git/doc/guix.texi:18839
  28022. msgid "Defaults to @samp{86400}."
  28023. msgstr ""
  28024. #. type: deftypevr
  28025. #: guix-git/doc/guix.texi:18841
  28026. #, no-wrap
  28027. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-history"
  28028. msgstr ""
  28029. #. type: deftypevr
  28030. #: guix-git/doc/guix.texi:18846
  28031. 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."
  28032. msgstr ""
  28033. #. type: deftypevr
  28034. #: guix-git/doc/guix.texi:18850
  28035. #, no-wrap
  28036. msgid "{@code{cups-configuration} parameter} non-negative-integer reload-timeout"
  28037. msgstr ""
  28038. #. type: deftypevr
  28039. #: guix-git/doc/guix.texi:18853
  28040. msgid "Specifies the amount of time to wait for job completion before restarting the scheduler."
  28041. msgstr ""
  28042. #. type: deftypevr
  28043. #: guix-git/doc/guix.texi:18857
  28044. #, no-wrap
  28045. msgid "{@code{cups-configuration} parameter} string rip-cache"
  28046. msgstr ""
  28047. #. type: deftypevr
  28048. #: guix-git/doc/guix.texi:18860
  28049. msgid "Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer."
  28050. msgstr ""
  28051. #. type: deftypevr
  28052. #: guix-git/doc/guix.texi:18862
  28053. msgid "Defaults to @samp{\"128m\"}."
  28054. msgstr ""
  28055. #. type: deftypevr
  28056. #: guix-git/doc/guix.texi:18864
  28057. #, no-wrap
  28058. msgid "{@code{cups-configuration} parameter} string server-admin"
  28059. msgstr ""
  28060. #. type: deftypevr
  28061. #: guix-git/doc/guix.texi:18866
  28062. msgid "Specifies the email address of the server administrator."
  28063. msgstr ""
  28064. #. type: deftypevr
  28065. #: guix-git/doc/guix.texi:18868
  28066. msgid "Defaults to @samp{\"root@@localhost.localdomain\"}."
  28067. msgstr ""
  28068. #. type: deftypevr
  28069. #: guix-git/doc/guix.texi:18870
  28070. #, no-wrap
  28071. msgid "{@code{cups-configuration} parameter} host-name-list-or-* server-alias"
  28072. msgstr ""
  28073. #. type: deftypevr
  28074. #: guix-git/doc/guix.texi:18878
  28075. 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{*}."
  28076. msgstr ""
  28077. #. type: deftypevr
  28078. #: guix-git/doc/guix.texi:18880
  28079. msgid "Defaults to @samp{*}."
  28080. msgstr ""
  28081. #. type: deftypevr
  28082. #: guix-git/doc/guix.texi:18882
  28083. #, no-wrap
  28084. msgid "{@code{cups-configuration} parameter} string server-name"
  28085. msgstr ""
  28086. #. type: deftypevr
  28087. #: guix-git/doc/guix.texi:18884
  28088. msgid "Specifies the fully-qualified host name of the server."
  28089. msgstr ""
  28090. #. type: deftypevr
  28091. #: guix-git/doc/guix.texi:18886 guix-git/doc/guix.texi:23741
  28092. #: guix-git/doc/guix.texi:23786
  28093. msgid "Defaults to @samp{\"localhost\"}."
  28094. msgstr ""
  28095. #. type: deftypevr
  28096. #: guix-git/doc/guix.texi:18888
  28097. #, no-wrap
  28098. msgid "{@code{cups-configuration} parameter} server-tokens server-tokens"
  28099. msgstr ""
  28100. #. type: deftypevr
  28101. #: guix-git/doc/guix.texi:18896
  28102. 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}."
  28103. msgstr ""
  28104. #. type: deftypevr
  28105. #: guix-git/doc/guix.texi:18898
  28106. msgid "Defaults to @samp{Minimal}."
  28107. msgstr ""
  28108. #. type: deftypevr
  28109. #: guix-git/doc/guix.texi:18900
  28110. #, no-wrap
  28111. msgid "{@code{cups-configuration} parameter} multiline-string-list ssl-listen"
  28112. msgstr ""
  28113. #. type: deftypevr
  28114. #: guix-git/doc/guix.texi:18905
  28115. 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."
  28116. msgstr ""
  28117. #. type: deftypevr
  28118. #: guix-git/doc/guix.texi:18909
  28119. #, no-wrap
  28120. msgid "{@code{cups-configuration} parameter} ssl-options ssl-options"
  28121. msgstr ""
  28122. #. type: deftypevr
  28123. #: guix-git/doc/guix.texi:18919
  28124. 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."
  28125. msgstr ""
  28126. #. type: deftypevr
  28127. #: guix-git/doc/guix.texi:18923
  28128. #, no-wrap
  28129. msgid "{@code{cups-configuration} parameter} boolean strict-conformance?"
  28130. msgstr ""
  28131. #. type: deftypevr
  28132. #: guix-git/doc/guix.texi:18926
  28133. msgid "Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications."
  28134. msgstr ""
  28135. #. type: deftypevr
  28136. #: guix-git/doc/guix.texi:18930
  28137. #, no-wrap
  28138. msgid "{@code{cups-configuration} parameter} non-negative-integer timeout"
  28139. msgstr ""
  28140. #. type: deftypevr
  28141. #: guix-git/doc/guix.texi:18932
  28142. msgid "Specifies the HTTP request timeout, in seconds."
  28143. msgstr ""
  28144. #. type: deftypevr
  28145. #: guix-git/doc/guix.texi:18937
  28146. #, no-wrap
  28147. msgid "{@code{cups-configuration} parameter} boolean web-interface?"
  28148. msgstr ""
  28149. #. type: deftypevr
  28150. #: guix-git/doc/guix.texi:18939
  28151. msgid "Specifies whether the web interface is enabled."
  28152. msgstr ""
  28153. #. type: Plain text
  28154. #: guix-git/doc/guix.texi:18949
  28155. 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}."
  28156. msgstr ""
  28157. #. type: Plain text
  28158. #: guix-git/doc/guix.texi:18951
  28159. msgid "Available @code{opaque-cups-configuration} fields are:"
  28160. msgstr ""
  28161. #. type: deftypevr
  28162. #: guix-git/doc/guix.texi:18952
  28163. #, no-wrap
  28164. msgid "{@code{opaque-cups-configuration} parameter} package cups"
  28165. msgstr ""
  28166. #. type: deftypevr
  28167. #: guix-git/doc/guix.texi:18956
  28168. #, no-wrap
  28169. msgid "{@code{opaque-cups-configuration} parameter} string cupsd.conf"
  28170. msgstr ""
  28171. #. type: deftypevr
  28172. #: guix-git/doc/guix.texi:18958
  28173. msgid "The contents of the @code{cupsd.conf}, as a string."
  28174. msgstr ""
  28175. #. type: deftypevr
  28176. #: guix-git/doc/guix.texi:18960
  28177. #, no-wrap
  28178. msgid "{@code{opaque-cups-configuration} parameter} string cups-files.conf"
  28179. msgstr ""
  28180. #. type: deftypevr
  28181. #: guix-git/doc/guix.texi:18962
  28182. msgid "The contents of the @code{cups-files.conf} file, as a string."
  28183. msgstr ""
  28184. #. type: Plain text
  28185. #: guix-git/doc/guix.texi:18967
  28186. 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:"
  28187. msgstr ""
  28188. #. type: lisp
  28189. #: guix-git/doc/guix.texi:18973
  28190. #, no-wrap
  28191. msgid ""
  28192. "(service cups-service-type\n"
  28193. " (opaque-cups-configuration\n"
  28194. " (cupsd.conf cupsd.conf)\n"
  28195. " (cups-files.conf cups-files.conf)))\n"
  28196. msgstr ""
  28197. #. type: Plain text
  28198. #: guix-git/doc/guix.texi:18984
  28199. 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."
  28200. msgstr ""
  28201. #. type: Plain text
  28202. #: guix-git/doc/guix.texi:18988
  28203. 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:"
  28204. msgstr ""
  28205. #. type: defvr
  28206. #: guix-git/doc/guix.texi:18989
  28207. #, no-wrap
  28208. msgid "{Scheme Variable} %desktop-services"
  28209. msgstr ""
  28210. #. type: defvr
  28211. #: guix-git/doc/guix.texi:18992
  28212. msgid "This is a list of services that builds upon @code{%base-services} and adds or adjusts services for a typical ``desktop'' setup."
  28213. msgstr ""
  28214. #. type: defvr
  28215. #: guix-git/doc/guix.texi:19003
  28216. 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})."
  28217. msgstr ""
  28218. #. type: Plain text
  28219. #: guix-git/doc/guix.texi:19008
  28220. 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}})."
  28221. msgstr ""
  28222. #. type: Plain text
  28223. #: guix-git/doc/guix.texi:19031
  28224. 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."
  28225. msgstr ""
  28226. #. type: Plain text
  28227. #: guix-git/doc/guix.texi:19040
  28228. 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."
  28229. msgstr ""
  28230. #. type: defvr
  28231. #: guix-git/doc/guix.texi:19041
  28232. #, no-wrap
  28233. msgid "{Scheme Variable} gnome-desktop-service-type"
  28234. msgstr ""
  28235. #. type: defvr
  28236. #: guix-git/doc/guix.texi:19045
  28237. 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)."
  28238. msgstr ""
  28239. #. type: defvr
  28240. #: guix-git/doc/guix.texi:19048
  28241. msgid "This service adds the @code{gnome} package to the system profile, and extends polkit with the actions from @code{gnome-settings-daemon}."
  28242. msgstr ""
  28243. #. type: deftp
  28244. #: guix-git/doc/guix.texi:19050
  28245. #, no-wrap
  28246. msgid "{Data Type} gnome-desktop-configuration"
  28247. msgstr ""
  28248. #. type: deftp
  28249. #: guix-git/doc/guix.texi:19052
  28250. msgid "Configuration record for the GNOME desktop environment."
  28251. msgstr ""
  28252. #. type: item
  28253. #: guix-git/doc/guix.texi:19054
  28254. #, no-wrap
  28255. msgid "@code{gnome} (default: @code{gnome})"
  28256. msgstr "@code{gnome}(默认值:@code{gnome})"
  28257. #. type: table
  28258. #: guix-git/doc/guix.texi:19056
  28259. msgid "The GNOME package to use."
  28260. msgstr ""
  28261. #. type: defvr
  28262. #: guix-git/doc/guix.texi:19059
  28263. #, no-wrap
  28264. msgid "{Scheme Variable} xfce-desktop-service-type"
  28265. msgstr ""
  28266. #. type: defvr
  28267. #: guix-git/doc/guix.texi:19063
  28268. 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)."
  28269. msgstr ""
  28270. #. type: defvr
  28271. #: guix-git/doc/guix.texi:19068
  28272. 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."
  28273. msgstr ""
  28274. #. type: defvr
  28275. #: guix-git/doc/guix.texi:19074
  28276. 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}."
  28277. msgstr ""
  28278. #. type: deftp
  28279. #: guix-git/doc/guix.texi:19076
  28280. #, no-wrap
  28281. msgid "{Data Type} xfce-desktop-configuration"
  28282. msgstr ""
  28283. #. type: deftp
  28284. #: guix-git/doc/guix.texi:19078
  28285. msgid "Configuration record for the Xfce desktop environment."
  28286. msgstr ""
  28287. #. type: item
  28288. #: guix-git/doc/guix.texi:19080
  28289. #, no-wrap
  28290. msgid "@code{xfce} (default: @code{xfce})"
  28291. msgstr "@code{xfce}(默认值:@code{xfce})"
  28292. #. type: table
  28293. #: guix-git/doc/guix.texi:19082
  28294. msgid "The Xfce package to use."
  28295. msgstr ""
  28296. #. type: deffn
  28297. #: guix-git/doc/guix.texi:19085
  28298. #, no-wrap
  28299. msgid "{Scheme Variable} mate-desktop-service-type"
  28300. msgstr ""
  28301. #. type: deffn
  28302. #: guix-git/doc/guix.texi:19089
  28303. 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)."
  28304. msgstr ""
  28305. #. type: deffn
  28306. #: guix-git/doc/guix.texi:19093
  28307. msgid "This service adds the @code{mate} package to the system profile, and extends polkit with the actions from @code{mate-settings-daemon}."
  28308. msgstr ""
  28309. #. type: deftp
  28310. #: guix-git/doc/guix.texi:19095
  28311. #, no-wrap
  28312. msgid "{Data Type} mate-desktop-configuration"
  28313. msgstr ""
  28314. #. type: deftp
  28315. #: guix-git/doc/guix.texi:19097
  28316. msgid "Configuration record for the MATE desktop environment."
  28317. msgstr ""
  28318. #. type: item
  28319. #: guix-git/doc/guix.texi:19099
  28320. #, no-wrap
  28321. msgid "@code{mate} (default: @code{mate})"
  28322. msgstr "@code{mate}(默认值:@code{mate})"
  28323. #. type: table
  28324. #: guix-git/doc/guix.texi:19101
  28325. msgid "The MATE package to use."
  28326. msgstr ""
  28327. #. type: deffn
  28328. #: guix-git/doc/guix.texi:19104
  28329. #, no-wrap
  28330. msgid "{Scheme Variable} lxqt-desktop-service-type"
  28331. msgstr ""
  28332. #. type: deffn
  28333. #: guix-git/doc/guix.texi:19108
  28334. msgid "This is the type of the service that runs the @uref{https://lxqt.github.io, LXQt desktop environment}. Its value is a @code{lxqt-desktop-configuration} object (see below)."
  28335. msgstr ""
  28336. #. type: deffn
  28337. #: guix-git/doc/guix.texi:19111
  28338. msgid "This service adds the @code{lxqt} package to the system profile."
  28339. msgstr ""
  28340. #. type: deftp
  28341. #: guix-git/doc/guix.texi:19113
  28342. #, no-wrap
  28343. msgid "{Data Type} lxqt-desktop-configuration"
  28344. msgstr ""
  28345. #. type: deftp
  28346. #: guix-git/doc/guix.texi:19115
  28347. msgid "Configuration record for the LXQt desktop environment."
  28348. msgstr ""
  28349. #. type: item
  28350. #: guix-git/doc/guix.texi:19117
  28351. #, fuzzy, no-wrap
  28352. msgid "@code{lxqt} (default: @code{lxqt})"
  28353. msgstr "@code{xfce}(默认值:@code{xfce})"
  28354. #. type: table
  28355. #: guix-git/doc/guix.texi:19119
  28356. #, fuzzy
  28357. msgid "The LXQT package to use."
  28358. msgstr "软件包数据类型。"
  28359. #. type: deffn
  28360. #: guix-git/doc/guix.texi:19122
  28361. #, no-wrap
  28362. msgid "{Scheme Variable} enlightenment-desktop-service-type"
  28363. msgstr ""
  28364. #. type: deffn
  28365. #: guix-git/doc/guix.texi:19125
  28366. msgid "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with actions from @code{efl}."
  28367. msgstr ""
  28368. #. type: deftp
  28369. #: guix-git/doc/guix.texi:19127
  28370. #, no-wrap
  28371. msgid "{Data Type} enlightenment-desktop-service-configuration"
  28372. msgstr ""
  28373. #. type: item
  28374. #: guix-git/doc/guix.texi:19129
  28375. #, no-wrap
  28376. msgid "@code{enlightenment} (default: @code{enlightenment})"
  28377. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  28378. #. type: table
  28379. #: guix-git/doc/guix.texi:19131
  28380. msgid "The enlightenment package to use."
  28381. msgstr ""
  28382. #. type: Plain text
  28383. #: guix-git/doc/guix.texi:19139
  28384. 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}:"
  28385. msgstr ""
  28386. #. type: lisp
  28387. #: guix-git/doc/guix.texi:19150
  28388. #, no-wrap
  28389. msgid ""
  28390. "(use-modules (gnu))\n"
  28391. "(use-service-modules desktop)\n"
  28392. "(operating-system\n"
  28393. " ...\n"
  28394. " ;; cons* adds items to the list given as its last argument.\n"
  28395. " (services (cons* (service gnome-desktop-service-type)\n"
  28396. " (service xfce-desktop-service)\n"
  28397. " %desktop-services))\n"
  28398. " ...)\n"
  28399. msgstr ""
  28400. #. type: Plain text
  28401. #: guix-git/doc/guix.texi:19154
  28402. msgid "These desktop environments will then be available as options in the graphical login window."
  28403. msgstr ""
  28404. #. type: Plain text
  28405. #: guix-git/doc/guix.texi:19158
  28406. 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."
  28407. msgstr ""
  28408. #. type: deffn
  28409. #: guix-git/doc/guix.texi:19159
  28410. #, no-wrap
  28411. msgid "{Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()]"
  28412. msgstr ""
  28413. #. type: deffn
  28414. #: guix-git/doc/guix.texi:19162
  28415. msgid "Return a service that runs the ``system bus'', using @var{dbus}, with support for @var{services}."
  28416. msgstr ""
  28417. #. type: deffn
  28418. #: guix-git/doc/guix.texi:19166
  28419. 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."
  28420. msgstr ""
  28421. #. type: deffn
  28422. #: guix-git/doc/guix.texi:19171
  28423. 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)}."
  28424. msgstr ""
  28425. #. type: deffn
  28426. #: guix-git/doc/guix.texi:19173
  28427. #, no-wrap
  28428. msgid "{Scheme Procedure} elogind-service [#:config @var{config}]"
  28429. msgstr ""
  28430. #. type: deffn
  28431. #: guix-git/doc/guix.texi:19179
  28432. 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."
  28433. msgstr ""
  28434. #. type: deffn
  28435. #: guix-git/doc/guix.texi:19183
  28436. 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."
  28437. msgstr ""
  28438. #. type: deffn
  28439. #: guix-git/doc/guix.texi:19188
  28440. 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:"
  28441. msgstr ""
  28442. #. type: item
  28443. #: guix-git/doc/guix.texi:19190
  28444. #, no-wrap
  28445. msgid "kill-user-processes?"
  28446. msgstr ""
  28447. #. type: code{#1}
  28448. #: guix-git/doc/guix.texi:19192 guix-git/doc/guix.texi:19212
  28449. #: guix-git/doc/guix.texi:19214 guix-git/doc/guix.texi:19216
  28450. #: guix-git/doc/guix.texi:19228
  28451. msgid "#f"
  28452. msgstr ""
  28453. #. type: item
  28454. #: guix-git/doc/guix.texi:19192
  28455. #, no-wrap
  28456. msgid "kill-only-users"
  28457. msgstr ""
  28458. #. type: code{#1}
  28459. #: guix-git/doc/guix.texi:19194 guix-git/doc/guix.texi:19234
  28460. msgid "()"
  28461. msgstr ""
  28462. #. type: item
  28463. #: guix-git/doc/guix.texi:19194
  28464. #, no-wrap
  28465. msgid "kill-exclude-users"
  28466. msgstr ""
  28467. #. type: code{#1}
  28468. #: guix-git/doc/guix.texi:19196
  28469. msgid "(\"root\")"
  28470. msgstr ""
  28471. #. type: item
  28472. #: guix-git/doc/guix.texi:19196
  28473. #, no-wrap
  28474. msgid "inhibit-delay-max-seconds"
  28475. msgstr ""
  28476. #. type: code{#1}
  28477. #: guix-git/doc/guix.texi:19198
  28478. msgid "5"
  28479. msgstr ""
  28480. #. type: item
  28481. #: guix-git/doc/guix.texi:19198
  28482. #, no-wrap
  28483. msgid "handle-power-key"
  28484. msgstr ""
  28485. #. type: code{#1}
  28486. #: guix-git/doc/guix.texi:19200
  28487. msgid "poweroff"
  28488. msgstr ""
  28489. #. type: item
  28490. #: guix-git/doc/guix.texi:19200
  28491. #, no-wrap
  28492. msgid "handle-suspend-key"
  28493. msgstr ""
  28494. #. type: code{#1}
  28495. #: guix-git/doc/guix.texi:19202 guix-git/doc/guix.texi:19206
  28496. msgid "suspend"
  28497. msgstr ""
  28498. #. type: item
  28499. #: guix-git/doc/guix.texi:19202
  28500. #, no-wrap
  28501. msgid "handle-hibernate-key"
  28502. msgstr ""
  28503. #. type: code{#1}
  28504. #: guix-git/doc/guix.texi:19204
  28505. msgid "hibernate"
  28506. msgstr ""
  28507. #. type: item
  28508. #: guix-git/doc/guix.texi:19204
  28509. #, no-wrap
  28510. msgid "handle-lid-switch"
  28511. msgstr ""
  28512. #. type: item
  28513. #: guix-git/doc/guix.texi:19206
  28514. #, no-wrap
  28515. msgid "handle-lid-switch-docked"
  28516. msgstr ""
  28517. #. type: code{#1}
  28518. #: guix-git/doc/guix.texi:19208 guix-git/doc/guix.texi:19210
  28519. #: guix-git/doc/guix.texi:19222
  28520. msgid "ignore"
  28521. msgstr ""
  28522. #. type: item
  28523. #: guix-git/doc/guix.texi:19208
  28524. #, no-wrap
  28525. msgid "handle-lid-switch-external-power"
  28526. msgstr ""
  28527. #. type: item
  28528. #: guix-git/doc/guix.texi:19210
  28529. #, no-wrap
  28530. msgid "power-key-ignore-inhibited?"
  28531. msgstr ""
  28532. #. type: item
  28533. #: guix-git/doc/guix.texi:19212
  28534. #, no-wrap
  28535. msgid "suspend-key-ignore-inhibited?"
  28536. msgstr ""
  28537. #. type: item
  28538. #: guix-git/doc/guix.texi:19214
  28539. #, no-wrap
  28540. msgid "hibernate-key-ignore-inhibited?"
  28541. msgstr ""
  28542. #. type: item
  28543. #: guix-git/doc/guix.texi:19216
  28544. #, no-wrap
  28545. msgid "lid-switch-ignore-inhibited?"
  28546. msgstr ""
  28547. #. type: code{#1}
  28548. #: guix-git/doc/guix.texi:19218 guix-git/doc/guix.texi:19230
  28549. msgid "#t"
  28550. msgstr ""
  28551. #. type: item
  28552. #: guix-git/doc/guix.texi:19218
  28553. #, no-wrap
  28554. msgid "holdoff-timeout-seconds"
  28555. msgstr ""
  28556. #. type: code{#1}
  28557. #: guix-git/doc/guix.texi:19220
  28558. msgid "30"
  28559. msgstr ""
  28560. #. type: item
  28561. #: guix-git/doc/guix.texi:19220
  28562. #, no-wrap
  28563. msgid "idle-action"
  28564. msgstr ""
  28565. #. type: item
  28566. #: guix-git/doc/guix.texi:19222
  28567. #, no-wrap
  28568. msgid "idle-action-seconds"
  28569. msgstr ""
  28570. #. type: code{#1}
  28571. #: guix-git/doc/guix.texi:19224
  28572. msgid "(* 30 60)"
  28573. msgstr ""
  28574. #. type: item
  28575. #: guix-git/doc/guix.texi:19224
  28576. #, no-wrap
  28577. msgid "runtime-directory-size-percent"
  28578. msgstr ""
  28579. #. type: code{#1}
  28580. #: guix-git/doc/guix.texi:19226
  28581. msgid "10"
  28582. msgstr ""
  28583. #. type: item
  28584. #: guix-git/doc/guix.texi:19226
  28585. #, no-wrap
  28586. msgid "runtime-directory-size"
  28587. msgstr ""
  28588. #. type: item
  28589. #: guix-git/doc/guix.texi:19228
  28590. #, no-wrap
  28591. msgid "remove-ipc?"
  28592. msgstr ""
  28593. #. type: item
  28594. #: guix-git/doc/guix.texi:19230
  28595. #, no-wrap
  28596. msgid "suspend-state"
  28597. msgstr ""
  28598. #. type: code{#1}
  28599. #: guix-git/doc/guix.texi:19232
  28600. msgid "(\"mem\" \"standby\" \"freeze\")"
  28601. msgstr ""
  28602. #. type: item
  28603. #: guix-git/doc/guix.texi:19232
  28604. #, no-wrap
  28605. msgid "suspend-mode"
  28606. msgstr ""
  28607. #. type: item
  28608. #: guix-git/doc/guix.texi:19234
  28609. #, no-wrap
  28610. msgid "hibernate-state"
  28611. msgstr ""
  28612. #. type: code{#1}
  28613. #: guix-git/doc/guix.texi:19236 guix-git/doc/guix.texi:19240
  28614. msgid "(\"disk\")"
  28615. msgstr ""
  28616. #. type: item
  28617. #: guix-git/doc/guix.texi:19236
  28618. #, no-wrap
  28619. msgid "hibernate-mode"
  28620. msgstr ""
  28621. #. type: code{#1}
  28622. #: guix-git/doc/guix.texi:19238
  28623. msgid "(\"platform\" \"shutdown\")"
  28624. msgstr ""
  28625. #. type: item
  28626. #: guix-git/doc/guix.texi:19238
  28627. #, no-wrap
  28628. msgid "hybrid-sleep-state"
  28629. msgstr ""
  28630. #. type: item
  28631. #: guix-git/doc/guix.texi:19240
  28632. #, no-wrap
  28633. msgid "hybrid-sleep-mode"
  28634. msgstr ""
  28635. #. type: code{#1}
  28636. #: guix-git/doc/guix.texi:19242
  28637. msgid "(\"suspend\" \"platform\" \"shutdown\")"
  28638. msgstr ""
  28639. #. type: deffn
  28640. #: guix-git/doc/guix.texi:19245
  28641. #, no-wrap
  28642. msgid "{Scheme Procedure} accountsservice-service @"
  28643. msgstr ""
  28644. #. type: deffn
  28645. #: guix-git/doc/guix.texi:19253
  28646. 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."
  28647. msgstr ""
  28648. #. type: deffn
  28649. #: guix-git/doc/guix.texi:19256
  28650. msgid "The @var{accountsservice} keyword argument is the @code{accountsservice} package to expose as a service."
  28651. msgstr ""
  28652. #. type: deffn
  28653. #: guix-git/doc/guix.texi:19258
  28654. #, no-wrap
  28655. msgid "{Scheme Procedure} polkit-service @"
  28656. msgstr ""
  28657. #. type: deffn
  28658. #: guix-git/doc/guix.texi:19267
  28659. 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."
  28660. msgstr ""
  28661. #. type: defvr
  28662. #: guix-git/doc/guix.texi:19269
  28663. #, no-wrap
  28664. msgid "{Scheme Variable} polkit-wheel-service"
  28665. msgstr ""
  28666. #. type: defvr
  28667. #: guix-git/doc/guix.texi:19274
  28668. 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}."
  28669. msgstr ""
  28670. #. type: defvr
  28671. #: guix-git/doc/guix.texi:19276
  28672. #, no-wrap
  28673. msgid "{Scheme Variable} upower-service-type"
  28674. msgstr ""
  28675. #. type: defvr
  28676. #: guix-git/doc/guix.texi:19280
  28677. 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."
  28678. msgstr ""
  28679. #. type: defvr
  28680. #: guix-git/doc/guix.texi:19283
  28681. msgid "It implements the @code{org.freedesktop.UPower} D-Bus interface, and is notably used by GNOME."
  28682. msgstr ""
  28683. #. type: deftp
  28684. #: guix-git/doc/guix.texi:19285
  28685. #, no-wrap
  28686. msgid "{Data Type} upower-configuration"
  28687. msgstr ""
  28688. #. type: deftp
  28689. #: guix-git/doc/guix.texi:19287
  28690. msgid "Data type representation the configuration for UPower."
  28691. msgstr ""
  28692. #. type: item
  28693. #: guix-git/doc/guix.texi:19290
  28694. #, no-wrap
  28695. msgid "@code{upower} (default: @var{upower})"
  28696. msgstr ""
  28697. #. type: table
  28698. #: guix-git/doc/guix.texi:19292
  28699. msgid "Package to use for @code{upower}."
  28700. msgstr ""
  28701. #. type: item
  28702. #: guix-git/doc/guix.texi:19293
  28703. #, no-wrap
  28704. msgid "@code{watts-up-pro?} (default: @code{#f})"
  28705. msgstr ""
  28706. #. type: table
  28707. #: guix-git/doc/guix.texi:19295
  28708. msgid "Enable the Watts Up Pro device."
  28709. msgstr ""
  28710. #. type: item
  28711. #: guix-git/doc/guix.texi:19296
  28712. #, no-wrap
  28713. msgid "@code{poll-batteries?} (default: @code{#t})"
  28714. msgstr ""
  28715. #. type: table
  28716. #: guix-git/doc/guix.texi:19298
  28717. msgid "Enable polling the kernel for battery level changes."
  28718. msgstr ""
  28719. #. type: item
  28720. #: guix-git/doc/guix.texi:19299
  28721. #, no-wrap
  28722. msgid "@code{ignore-lid?} (default: @code{#f})"
  28723. msgstr ""
  28724. #. type: table
  28725. #: guix-git/doc/guix.texi:19301
  28726. msgid "Ignore the lid state, this can be useful if it's incorrect on a device."
  28727. msgstr ""
  28728. #. type: item
  28729. #: guix-git/doc/guix.texi:19302
  28730. #, no-wrap
  28731. msgid "@code{use-percentage-for-policy?} (default: @code{#f})"
  28732. msgstr ""
  28733. #. type: table
  28734. #: guix-git/doc/guix.texi:19305
  28735. 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."
  28736. msgstr ""
  28737. #. type: item
  28738. #: guix-git/doc/guix.texi:19306
  28739. #, no-wrap
  28740. msgid "@code{percentage-low} (default: @code{10})"
  28741. msgstr ""
  28742. #. type: table
  28743. #: guix-git/doc/guix.texi:19309
  28744. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low."
  28745. msgstr ""
  28746. #. type: item
  28747. #: guix-git/doc/guix.texi:19310
  28748. #, no-wrap
  28749. msgid "@code{percentage-critical} (default: @code{3})"
  28750. msgstr ""
  28751. #. type: table
  28752. #: guix-git/doc/guix.texi:19313
  28753. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical."
  28754. msgstr ""
  28755. #. type: item
  28756. #: guix-git/doc/guix.texi:19314
  28757. #, no-wrap
  28758. msgid "@code{percentage-action} (default: @code{2})"
  28759. msgstr ""
  28760. #. type: table
  28761. #: guix-git/doc/guix.texi:19317
  28762. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which action will be taken."
  28763. msgstr ""
  28764. #. type: item
  28765. #: guix-git/doc/guix.texi:19318
  28766. #, no-wrap
  28767. msgid "@code{time-low} (default: @code{1200})"
  28768. msgstr ""
  28769. #. type: table
  28770. #: guix-git/doc/guix.texi:19321
  28771. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered low."
  28772. msgstr ""
  28773. #. type: item
  28774. #: guix-git/doc/guix.texi:19322
  28775. #, no-wrap
  28776. msgid "@code{time-critical} (default: @code{300})"
  28777. msgstr ""
  28778. #. type: table
  28779. #: guix-git/doc/guix.texi:19325
  28780. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered critical."
  28781. msgstr ""
  28782. #. type: item
  28783. #: guix-git/doc/guix.texi:19326
  28784. #, no-wrap
  28785. msgid "@code{time-action} (default: @code{120})"
  28786. msgstr ""
  28787. #. type: table
  28788. #: guix-git/doc/guix.texi:19329
  28789. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which action will be taken."
  28790. msgstr ""
  28791. #. type: item
  28792. #: guix-git/doc/guix.texi:19330
  28793. #, no-wrap
  28794. msgid "@code{critical-power-action} (default: @code{'hybrid-sleep})"
  28795. msgstr ""
  28796. #. type: table
  28797. #: guix-git/doc/guix.texi:19333
  28798. msgid "The action taken when @code{percentage-action} or @code{time-action} is reached (depending on the configuration of @code{use-percentage-for-policy?})."
  28799. msgstr ""
  28800. #. type: table
  28801. #: guix-git/doc/guix.texi:19335
  28802. msgid "Possible values are:"
  28803. msgstr ""
  28804. #. type: code{#1}
  28805. #: guix-git/doc/guix.texi:19339
  28806. msgid "'power-off"
  28807. msgstr ""
  28808. #. type: code{#1}
  28809. #: guix-git/doc/guix.texi:19342
  28810. msgid "'hibernate"
  28811. msgstr ""
  28812. #. type: itemize
  28813. #: guix-git/doc/guix.texi:19345
  28814. msgid "@code{'hybrid-sleep}."
  28815. msgstr ""
  28816. #. type: deffn
  28817. #: guix-git/doc/guix.texi:19350
  28818. #, no-wrap
  28819. msgid "{Scheme Procedure} udisks-service [#:udisks @var{udisks}]"
  28820. msgstr ""
  28821. #. type: deffn
  28822. #: guix-git/doc/guix.texi:19360
  28823. 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."
  28824. msgstr ""
  28825. #. type: deffn
  28826. #: guix-git/doc/guix.texi:19362
  28827. #, no-wrap
  28828. msgid "{Scheme Variable} colord-service-type"
  28829. msgstr ""
  28830. #. type: deffn
  28831. #: guix-git/doc/guix.texi:19369
  28832. 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."
  28833. msgstr ""
  28834. #. type: cindex
  28835. #: guix-git/doc/guix.texi:19371
  28836. #, no-wrap
  28837. msgid "scanner access"
  28838. msgstr ""
  28839. #. type: defvr
  28840. #: guix-git/doc/guix.texi:19372
  28841. #, no-wrap
  28842. msgid "{Scheme Variable} sane-service-type"
  28843. msgstr ""
  28844. #. type: defvr
  28845. #: guix-git/doc/guix.texi:19378
  28846. 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."
  28847. msgstr ""
  28848. #. type: defvr
  28849. #: guix-git/doc/guix.texi:19380
  28850. #, no-wrap
  28851. msgid "{Scheme Variable} sane-backends-minimal"
  28852. msgstr ""
  28853. #. type: defvr
  28854. #: guix-git/doc/guix.texi:19383
  28855. msgid "The default package which the @code{sane-service-type} installs. It supports many recent scanners."
  28856. msgstr ""
  28857. #. type: defvr
  28858. #: guix-git/doc/guix.texi:19385
  28859. #, no-wrap
  28860. msgid "{Scheme Variable} sane-backends"
  28861. msgstr ""
  28862. #. type: defvr
  28863. #: guix-git/doc/guix.texi:19392
  28864. 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:"
  28865. msgstr ""
  28866. #. type: lisp
  28867. #: guix-git/doc/guix.texi:19401
  28868. #, no-wrap
  28869. msgid ""
  28870. "(use-modules (gnu))\n"
  28871. "(use-service-modules\n"
  28872. " @dots{}\n"
  28873. " desktop)\n"
  28874. "(use-package-modules\n"
  28875. " @dots{}\n"
  28876. " scanner)\n"
  28877. "\n"
  28878. msgstr ""
  28879. #. type: lisp
  28880. #: guix-git/doc/guix.texi:19406
  28881. #, no-wrap
  28882. msgid ""
  28883. "(define %my-desktop-services\n"
  28884. " ;; List of desktop services that supports a broader range of scanners.\n"
  28885. " (modify-services %desktop-services\n"
  28886. " (sane-service-type _ => sane-backends)))\n"
  28887. "\n"
  28888. msgstr ""
  28889. #. type: lisp
  28890. #: guix-git/doc/guix.texi:19410
  28891. #, no-wrap
  28892. msgid ""
  28893. "(operating-system\n"
  28894. " @dots{}\n"
  28895. " (services %my-desktop-services)\n"
  28896. msgstr ""
  28897. #. type: deffn
  28898. #: guix-git/doc/guix.texi:19413
  28899. #, no-wrap
  28900. msgid "{Scheme Procedure} geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()]"
  28901. msgstr ""
  28902. #. type: deffn
  28903. #: guix-git/doc/guix.texi:19422
  28904. 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."
  28905. msgstr ""
  28906. #. type: defvr
  28907. #: guix-git/doc/guix.texi:19424
  28908. #, no-wrap
  28909. msgid "{Scheme Variable} %standard-geoclue-applications"
  28910. msgstr ""
  28911. #. type: defvr
  28912. #: guix-git/doc/guix.texi:19431
  28913. 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."
  28914. msgstr ""
  28915. #. type: deffn
  28916. #: guix-git/doc/guix.texi:19433
  28917. #, no-wrap
  28918. msgid "{Scheme Procedure} geoclue-service [#:colord @var{colord}] @"
  28919. msgstr ""
  28920. #. type: deffn
  28921. #: guix-git/doc/guix.texi:19446
  28922. 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."
  28923. msgstr ""
  28924. #. type: deffn
  28925. #: guix-git/doc/guix.texi:19448
  28926. #, no-wrap
  28927. msgid "{Scheme Procedure} bluetooth-service [#:bluez @var{bluez}] @"
  28928. msgstr ""
  28929. #. type: deffn
  28930. #: guix-git/doc/guix.texi:19455
  28931. 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."
  28932. msgstr ""
  28933. #. type: deffn
  28934. #: guix-git/doc/guix.texi:19457
  28935. msgid "Users need to be in the @code{lp} group to access the D-Bus service."
  28936. msgstr ""
  28937. #. type: defvr
  28938. #: guix-git/doc/guix.texi:19459
  28939. #, no-wrap
  28940. msgid "{Scheme Variable} gnome-keyring-service-type"
  28941. msgstr ""
  28942. #. type: defvr
  28943. #: guix-git/doc/guix.texi:19463
  28944. 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)."
  28945. msgstr ""
  28946. #. type: defvr
  28947. #: guix-git/doc/guix.texi:19467
  28948. 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."
  28949. msgstr ""
  28950. #. type: deftp
  28951. #: guix-git/doc/guix.texi:19469
  28952. #, no-wrap
  28953. msgid "{Data Type} gnome-keyring-configuration"
  28954. msgstr ""
  28955. #. type: deftp
  28956. #: guix-git/doc/guix.texi:19471
  28957. msgid "Configuration record for the GNOME Keyring service."
  28958. msgstr ""
  28959. #. type: item
  28960. #: guix-git/doc/guix.texi:19473
  28961. #, fuzzy, no-wrap
  28962. msgid "@code{keyring} (default: @code{gnome-keyring})"
  28963. msgstr "@code{gnome}(默认值:@code{gnome})"
  28964. #. type: table
  28965. #: guix-git/doc/guix.texi:19475
  28966. msgid "The GNOME keyring package to use."
  28967. msgstr ""
  28968. #. type: code{#1}
  28969. #: guix-git/doc/guix.texi:19476
  28970. #, fuzzy, no-wrap
  28971. msgid "pam-services"
  28972. msgstr "基础服务"
  28973. #. type: table
  28974. #: guix-git/doc/guix.texi:19481
  28975. 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}."
  28976. msgstr ""
  28977. #. type: table
  28978. #: guix-git/doc/guix.texi:19487
  28979. 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."
  28980. msgstr ""
  28981. #. type: table
  28982. #: guix-git/doc/guix.texi:19490
  28983. msgid "By default, this field contains ``gdm-password'' with the value @code{login} and ``passwd'' is with the value @code{passwd}."
  28984. msgstr ""
  28985. #. type: cindex
  28986. #: guix-git/doc/guix.texi:19497
  28987. #, no-wrap
  28988. msgid "sound support"
  28989. msgstr ""
  28990. #. type: cindex
  28991. #: guix-git/doc/guix.texi:19498
  28992. #, no-wrap
  28993. msgid "ALSA"
  28994. msgstr ""
  28995. #. type: cindex
  28996. #: guix-git/doc/guix.texi:19499
  28997. #, no-wrap
  28998. msgid "PulseAudio, sound support"
  28999. msgstr ""
  29000. #. type: Plain text
  29001. #: guix-git/doc/guix.texi:19504
  29002. 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."
  29003. msgstr ""
  29004. #. type: deffn
  29005. #: guix-git/doc/guix.texi:19505
  29006. #, no-wrap
  29007. msgid "{Scheme Variable} alsa-service-type"
  29008. msgstr ""
  29009. #. type: deffn
  29010. #: guix-git/doc/guix.texi:19510
  29011. 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:"
  29012. msgstr ""
  29013. #. type: lisp
  29014. #: guix-git/doc/guix.texi:19513
  29015. #, no-wrap
  29016. msgid "(service alsa-service-type)\n"
  29017. msgstr ""
  29018. #. type: deffn
  29019. #: guix-git/doc/guix.texi:19516
  29020. msgid "See below for details about @code{alsa-configuration}."
  29021. msgstr ""
  29022. #. type: deftp
  29023. #: guix-git/doc/guix.texi:19518
  29024. #, no-wrap
  29025. msgid "{Data Type} alsa-configuration"
  29026. msgstr ""
  29027. #. type: deftp
  29028. #: guix-git/doc/guix.texi:19520
  29029. msgid "Data type representing the configuration for @code{alsa-service}."
  29030. msgstr ""
  29031. #. type: item
  29032. #: guix-git/doc/guix.texi:19522
  29033. #, no-wrap
  29034. msgid "@code{alsa-plugins} (default: @var{alsa-plugins})"
  29035. msgstr ""
  29036. #. type: table
  29037. #: guix-git/doc/guix.texi:19524
  29038. msgid "@code{alsa-plugins} package to use."
  29039. msgstr ""
  29040. #. type: item
  29041. #: guix-git/doc/guix.texi:19525
  29042. #, no-wrap
  29043. msgid "@code{pulseaudio?} (default: @var{#t})"
  29044. msgstr ""
  29045. #. type: table
  29046. #: guix-git/doc/guix.texi:19528
  29047. msgid "Whether ALSA applications should transparently be made to use the @uref{https://www.pulseaudio.org/, PulseAudio} sound server."
  29048. msgstr ""
  29049. #. type: table
  29050. #: guix-git/doc/guix.texi:19532
  29051. 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."
  29052. msgstr ""
  29053. #. type: item
  29054. #: guix-git/doc/guix.texi:19533
  29055. #, no-wrap
  29056. msgid "@code{extra-options} (default: @var{\"\"})"
  29057. msgstr ""
  29058. #. type: table
  29059. #: guix-git/doc/guix.texi:19535
  29060. msgid "String to append to the @file{/etc/asound.conf} file."
  29061. msgstr ""
  29062. #. type: Plain text
  29063. #: guix-git/doc/guix.texi:19541
  29064. msgid "Individual users who want to override the system configuration of ALSA can do it with the @file{~/.asoundrc} file:"
  29065. msgstr ""
  29066. #. type: example
  29067. #: guix-git/doc/guix.texi:19547
  29068. #, no-wrap
  29069. msgid ""
  29070. "# In guix, we have to specify the absolute path for plugins.\n"
  29071. "pcm_type.jack @{\n"
  29072. " lib \"/home/alice/.guix-profile/lib/alsa-lib/libasound_module_pcm_jack.so\"\n"
  29073. "@}\n"
  29074. "\n"
  29075. msgstr ""
  29076. #. type: example
  29077. #: guix-git/doc/guix.texi:19556
  29078. #, no-wrap
  29079. msgid ""
  29080. "# Routing ALSA to jack:\n"
  29081. "# <http://jackaudio.org/faq/routing_alsa.html>.\n"
  29082. "pcm.rawjack @{\n"
  29083. " type jack\n"
  29084. " playback_ports @{\n"
  29085. " 0 system:playback_1\n"
  29086. " 1 system:playback_2\n"
  29087. " @}\n"
  29088. "\n"
  29089. msgstr ""
  29090. #. type: example
  29091. #: guix-git/doc/guix.texi:19562
  29092. #, no-wrap
  29093. msgid ""
  29094. " capture_ports @{\n"
  29095. " 0 system:capture_1\n"
  29096. " 1 system:capture_2\n"
  29097. " @}\n"
  29098. "@}\n"
  29099. "\n"
  29100. msgstr ""
  29101. #. type: example
  29102. #: guix-git/doc/guix.texi:19569
  29103. #, no-wrap
  29104. msgid ""
  29105. "pcm.!default @{\n"
  29106. " type plug\n"
  29107. " slave @{\n"
  29108. " pcm \"rawjack\"\n"
  29109. " @}\n"
  29110. "@}\n"
  29111. msgstr ""
  29112. #. type: Plain text
  29113. #: guix-git/doc/guix.texi:19573
  29114. msgid "See @uref{https://www.alsa-project.org/main/index.php/Asoundrc} for the details."
  29115. msgstr ""
  29116. #. type: deffn
  29117. #: guix-git/doc/guix.texi:19574
  29118. #, no-wrap
  29119. msgid "{Scheme Variable} pulseaudio-service-type"
  29120. msgstr ""
  29121. #. type: deffn
  29122. #: guix-git/doc/guix.texi:19578
  29123. 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."
  29124. msgstr ""
  29125. #. type: quotation
  29126. #: guix-git/doc/guix.texi:19584
  29127. 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}."
  29128. msgstr ""
  29129. #. type: quotation
  29130. #: guix-git/doc/guix.texi:19592
  29131. 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."
  29132. msgstr ""
  29133. #. type: deftp
  29134. #: guix-git/doc/guix.texi:19595
  29135. #, fuzzy, no-wrap
  29136. msgid "{Data Type} pulseaudio-configuration"
  29137. msgstr "{数据类型} build-machine"
  29138. #. type: deftp
  29139. #: guix-git/doc/guix.texi:19597
  29140. msgid "Data type representing the configuration for @code{pulseaudio-service}."
  29141. msgstr ""
  29142. #. type: item
  29143. #: guix-git/doc/guix.texi:19599
  29144. #, fuzzy, no-wrap
  29145. msgid "@code{client-conf} (default: @code{'()})"
  29146. msgstr "@code{includes}(默认值:@code{'()})"
  29147. #. type: table
  29148. #: guix-git/doc/guix.texi:19604
  29149. 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."
  29150. msgstr ""
  29151. #. type: item
  29152. #: guix-git/doc/guix.texi:19605
  29153. #, fuzzy, no-wrap
  29154. msgid "@code{daemon-conf} (default: @code{'((flat-volumes . no))})"
  29155. msgstr "@code{mate}(默认值:@code{mate})"
  29156. #. type: table
  29157. #: guix-git/doc/guix.texi:19608
  29158. msgid "List of settings to set in @file{daemon.conf}, formatted just like @var{client-conf}."
  29159. msgstr ""
  29160. #. type: item
  29161. #: guix-git/doc/guix.texi:19609
  29162. #, no-wrap
  29163. msgid "@code{script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/default.pa\")})"
  29164. msgstr ""
  29165. #. type: table
  29166. #: guix-git/doc/guix.texi:19611
  29167. msgid "Script file to use as @file{default.pa}."
  29168. msgstr ""
  29169. #. type: item
  29170. #: guix-git/doc/guix.texi:19612
  29171. #, no-wrap
  29172. msgid "@code{system-script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/system.pa\")})"
  29173. msgstr ""
  29174. #. type: table
  29175. #: guix-git/doc/guix.texi:19614
  29176. msgid "Script file to use as @file{system.pa}."
  29177. msgstr ""
  29178. #. type: deffn
  29179. #: guix-git/doc/guix.texi:19617
  29180. #, no-wrap
  29181. msgid "{Scheme Variable} ladspa-service-type"
  29182. msgstr ""
  29183. #. type: deffn
  29184. #: guix-git/doc/guix.texi:19620
  29185. msgid "This service sets the @var{LADSPA_PATH} variable, so that programs, which respect it, e.g. PulseAudio, can load LADSPA plugins."
  29186. msgstr ""
  29187. #. type: deffn
  29188. #: guix-git/doc/guix.texi:19623
  29189. msgid "The following example will setup the service to enable modules from the @code{swh-plugins} package:"
  29190. msgstr ""
  29191. #. type: lisp
  29192. #: guix-git/doc/guix.texi:19627
  29193. #, no-wrap
  29194. msgid ""
  29195. "(service ladspa-service-type\n"
  29196. " (ladspa-configuration (plugins (list swh-plugins))))\n"
  29197. msgstr ""
  29198. #. type: deffn
  29199. #: guix-git/doc/guix.texi:19631
  29200. msgid "See @uref{http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html} for the details."
  29201. msgstr ""
  29202. #. type: cindex
  29203. #: guix-git/doc/guix.texi:19638
  29204. #, no-wrap
  29205. msgid "SQL"
  29206. msgstr ""
  29207. #. type: Plain text
  29208. #: guix-git/doc/guix.texi:19640
  29209. msgid "The @code{(gnu services databases)} module provides the following services."
  29210. msgstr ""
  29211. #. type: subsubheading
  29212. #: guix-git/doc/guix.texi:19641
  29213. #, no-wrap
  29214. msgid "PostgreSQL"
  29215. msgstr ""
  29216. #. type: Plain text
  29217. #: guix-git/doc/guix.texi:19645
  29218. msgid "The following example describes a PostgreSQL service with the default configuration."
  29219. msgstr ""
  29220. #. type: lisp
  29221. #: guix-git/doc/guix.texi:19650
  29222. #, no-wrap
  29223. msgid ""
  29224. "(service postgresql-service-type\n"
  29225. " (postgresql-configuration\n"
  29226. " (postgresql postgresql-10)))\n"
  29227. msgstr ""
  29228. #. type: Plain text
  29229. #: guix-git/doc/guix.texi:19656
  29230. 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."
  29231. msgstr ""
  29232. #. type: Plain text
  29233. #: guix-git/doc/guix.texi:19663
  29234. 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."
  29235. msgstr ""
  29236. #. type: example
  29237. #: guix-git/doc/guix.texi:19668
  29238. #, no-wrap
  29239. msgid ""
  29240. "sudo -u postgres -s /bin/sh\n"
  29241. "createuser --interactive\n"
  29242. "createdb $MY_USER_LOGIN # Replace appropriately.\n"
  29243. msgstr ""
  29244. #. type: deftp
  29245. #: guix-git/doc/guix.texi:19670
  29246. #, no-wrap
  29247. msgid "{Data Type} postgresql-configuration"
  29248. msgstr ""
  29249. #. type: deftp
  29250. #: guix-git/doc/guix.texi:19673
  29251. msgid "Data type representing the configuration for the @code{postgresql-service-type}."
  29252. msgstr ""
  29253. #. type: code{#1}
  29254. #: guix-git/doc/guix.texi:19675
  29255. #, no-wrap
  29256. msgid "postgresql"
  29257. msgstr ""
  29258. #. type: table
  29259. #: guix-git/doc/guix.texi:19677
  29260. msgid "PostgreSQL package to use for the service."
  29261. msgstr ""
  29262. #. type: item
  29263. #: guix-git/doc/guix.texi:19678
  29264. #, fuzzy, no-wrap
  29265. msgid "@code{port} (default: @code{5432})"
  29266. msgstr "@code{port}(默认值:@code{22})"
  29267. #. type: table
  29268. #: guix-git/doc/guix.texi:19680
  29269. msgid "Port on which PostgreSQL should listen."
  29270. msgstr ""
  29271. #. type: table
  29272. #: guix-git/doc/guix.texi:19683
  29273. msgid "Locale to use as the default when creating the database cluster."
  29274. msgstr ""
  29275. #. type: item
  29276. #: guix-git/doc/guix.texi:19684
  29277. #, fuzzy, no-wrap
  29278. msgid "@code{config-file} (default: @code{(postgresql-config-file)})"
  29279. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  29280. #. type: table
  29281. #: guix-git/doc/guix.texi:19688
  29282. 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."
  29283. msgstr ""
  29284. #. type: item
  29285. #: guix-git/doc/guix.texi:19689
  29286. #, fuzzy, no-wrap
  29287. msgid "@code{log-directory} (default: @code{\"/var/log/postgresql\"})"
  29288. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  29289. #. type: table
  29290. #: guix-git/doc/guix.texi:19693
  29291. 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."
  29292. msgstr ""
  29293. #. type: item
  29294. #: guix-git/doc/guix.texi:19694
  29295. #, fuzzy, no-wrap
  29296. msgid "@code{data-directory} (default: @code{\"/var/lib/postgresql/data\"})"
  29297. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  29298. #. type: table
  29299. #: guix-git/doc/guix.texi:19696
  29300. msgid "Directory in which to store the data."
  29301. msgstr ""
  29302. #. type: item
  29303. #: guix-git/doc/guix.texi:19697
  29304. #, fuzzy, no-wrap
  29305. msgid "@code{extension-packages} (default: @code{'()})"
  29306. msgstr "@code{includes}(默认值:@code{'()})"
  29307. #. type: cindex
  29308. #: guix-git/doc/guix.texi:19698
  29309. #, no-wrap
  29310. msgid "postgresql extension-packages"
  29311. msgstr ""
  29312. #. type: table
  29313. #: guix-git/doc/guix.texi:19703
  29314. 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:"
  29315. msgstr ""
  29316. #. type: cindex
  29317. #: guix-git/doc/guix.texi:19704
  29318. #, no-wrap
  29319. msgid "postgis"
  29320. msgstr ""
  29321. #. type: lisp
  29322. #: guix-git/doc/guix.texi:19707
  29323. #, no-wrap
  29324. msgid ""
  29325. "(use-package-modules databases geo)\n"
  29326. "\n"
  29327. msgstr ""
  29328. #. type: lisp
  29329. #: guix-git/doc/guix.texi:19720
  29330. #, no-wrap
  29331. msgid ""
  29332. "(operating-system\n"
  29333. " ...\n"
  29334. " ;; postgresql is required to run `psql' but postgis is not required for\n"
  29335. " ;; proper operation.\n"
  29336. " (packages (cons* postgresql %base-packages))\n"
  29337. " (services\n"
  29338. " (cons*\n"
  29339. " (service postgresql-service-type\n"
  29340. " (postgresql-configuration\n"
  29341. " (postgresql postgresql-10)\n"
  29342. " (extension-packages (list postgis))))\n"
  29343. " %base-services)))\n"
  29344. msgstr ""
  29345. #. type: table
  29346. #: guix-git/doc/guix.texi:19724
  29347. msgid "Then the extension becomes visible and you can initialise an empty geographic database in this way:"
  29348. msgstr ""
  29349. #. type: example
  29350. #: guix-git/doc/guix.texi:19731
  29351. #, no-wrap
  29352. msgid ""
  29353. "psql -U postgres\n"
  29354. "> create database postgistest;\n"
  29355. "> \\connect postgistest;\n"
  29356. "> create extension postgis;\n"
  29357. "> create extension postgis_topology;\n"
  29358. msgstr ""
  29359. #. type: table
  29360. #: guix-git/doc/guix.texi:19736
  29361. 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."
  29362. msgstr ""
  29363. #. type: deftp
  29364. #: guix-git/doc/guix.texi:19740
  29365. #, no-wrap
  29366. msgid "{Data Type} postgresql-config-file"
  29367. msgstr ""
  29368. #. type: deftp
  29369. #: guix-git/doc/guix.texi:19746
  29370. 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."
  29371. msgstr ""
  29372. #. type: lisp
  29373. #: guix-git/doc/guix.texi:19766
  29374. #, no-wrap
  29375. msgid ""
  29376. "(service postgresql-service-type\n"
  29377. " (postgresql-configuration\n"
  29378. " (config-file\n"
  29379. " (postgresql-config-file\n"
  29380. " (log-destination \"stderr\")\n"
  29381. " (hba-file\n"
  29382. " (plain-file \"pg_hba.conf\"\n"
  29383. " \"\n"
  29384. "local\tall\tall\t\t\ttrust\n"
  29385. "host\tall\tall\t127.0.0.1/32 \tmd5\n"
  29386. "host\tall\tall\t::1/128 \tmd5\"))\n"
  29387. " (extra-config\n"
  29388. " '((\"session_preload_libraries\" \"auto_explain\")\n"
  29389. " (\"random_page_cost\" 2)\n"
  29390. " (\"auto_explain.log_min_duration\" \"100 ms\")\n"
  29391. " (\"work_mem\" \"500 MB\")\n"
  29392. " (\"logging_collector\" #t)\n"
  29393. " (\"log_directory\" \"/var/log/postgresql\")))))))\n"
  29394. msgstr ""
  29395. #. type: item
  29396. #: guix-git/doc/guix.texi:19769
  29397. #, fuzzy, no-wrap
  29398. msgid "@code{log-destination} (default: @code{\"syslog\"})"
  29399. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  29400. #. type: table
  29401. #: guix-git/doc/guix.texi:19772
  29402. msgid "The logging method to use for PostgreSQL@. Multiple values are accepted, separated by commas."
  29403. msgstr ""
  29404. #. type: item
  29405. #: guix-git/doc/guix.texi:19773
  29406. #, fuzzy, no-wrap
  29407. msgid "@code{hba-file} (default: @code{%default-postgres-hba})"
  29408. msgstr "@code{mate}(默认值:@code{mate})"
  29409. #. type: table
  29410. #: guix-git/doc/guix.texi:19776
  29411. msgid "Filename or G-expression for the host-based authentication configuration."
  29412. msgstr ""
  29413. #. type: item
  29414. #: guix-git/doc/guix.texi:19777
  29415. #, fuzzy, no-wrap
  29416. msgid "@code{ident-file} (default: @code{%default-postgres-ident})"
  29417. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  29418. #. type: table
  29419. #: guix-git/doc/guix.texi:19779
  29420. msgid "Filename or G-expression for the user name mapping configuration."
  29421. msgstr ""
  29422. #. type: item
  29423. #: guix-git/doc/guix.texi:19780
  29424. #, fuzzy, no-wrap
  29425. msgid "@code{socket-directory} (default: @code{#false})"
  29426. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  29427. #. type: table
  29428. #: guix-git/doc/guix.texi:19785
  29429. 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."
  29430. msgstr ""
  29431. #. type: table
  29432. #: guix-git/doc/guix.texi:19788
  29433. msgid "By default, the @code{#false} value means the PostgreSQL default value will be used, which is currently @samp{/tmp}."
  29434. msgstr ""
  29435. #. type: table
  29436. #: guix-git/doc/guix.texi:19793
  29437. 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."
  29438. msgstr ""
  29439. #. type: table
  29440. #: guix-git/doc/guix.texi:19799
  29441. 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}."
  29442. msgstr ""
  29443. #. type: deffn
  29444. #: guix-git/doc/guix.texi:19803
  29445. #, no-wrap
  29446. msgid "{Scheme Variable} postgresql-role-service-type"
  29447. msgstr ""
  29448. #. type: deffn
  29449. #: guix-git/doc/guix.texi:19806
  29450. msgid "This service allows to create PostgreSQL roles and databases after PostgreSQL service start. Here is an example of its use."
  29451. msgstr ""
  29452. #. type: lisp
  29453. #: guix-git/doc/guix.texi:19814
  29454. #, no-wrap
  29455. msgid ""
  29456. "(service postgresql-role-service-type\n"
  29457. " (postgresql-role-configuration\n"
  29458. " (roles\n"
  29459. " (list (postgresql-role\n"
  29460. " (name \"test\")\n"
  29461. " (create-database? #t))))))\n"
  29462. msgstr ""
  29463. #. type: deffn
  29464. #: guix-git/doc/guix.texi:19818
  29465. msgid "This service can be extended with extra roles, as in this example:"
  29466. msgstr ""
  29467. #. type: lisp
  29468. #: guix-git/doc/guix.texi:19824
  29469. #, no-wrap
  29470. msgid ""
  29471. "(service-extension postgresql-role-service-type\n"
  29472. " (const (postgresql-role\n"
  29473. " (name \"alice\")\n"
  29474. " (create-database? #t))))\n"
  29475. msgstr ""
  29476. #. type: deftp
  29477. #: guix-git/doc/guix.texi:19827
  29478. #, fuzzy, no-wrap
  29479. msgid "{Data Type} postgresql-role"
  29480. msgstr "{数据类型} build-machine"
  29481. #. type: deftp
  29482. #: guix-git/doc/guix.texi:19833
  29483. 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."
  29484. msgstr ""
  29485. #. type: table
  29486. #: guix-git/doc/guix.texi:19837
  29487. #, fuzzy
  29488. msgid "The role name."
  29489. msgstr "仓库monad"
  29490. #. type: item
  29491. #: guix-git/doc/guix.texi:19838
  29492. #, fuzzy, no-wrap
  29493. msgid "@code{permissions} (default: @code{'(createdb login)})"
  29494. msgstr "@code{includes}(默认值:@code{'()})"
  29495. #. type: table
  29496. #: guix-git/doc/guix.texi:19842
  29497. msgid "The role permissions list. Supported permissions are @code{bypassrls}, @code{createdb}, @code{createrole}, @code{login}, @code{replication} and @code{superuser}."
  29498. msgstr ""
  29499. #. type: item
  29500. #: guix-git/doc/guix.texi:19843
  29501. #, fuzzy, no-wrap
  29502. msgid "@code{create-database?} (default: @code{#f})"
  29503. msgstr "@code{challenge}(默认值:@code{#f})"
  29504. #. type: table
  29505. #: guix-git/doc/guix.texi:19845
  29506. msgid "Whether to create a database with the same name as the role."
  29507. msgstr ""
  29508. #. type: deftp
  29509. #: guix-git/doc/guix.texi:19849
  29510. #, fuzzy, no-wrap
  29511. msgid "{Data Type} postgresql-role-configuration"
  29512. msgstr "管理操作系统配置。"
  29513. #. type: deftp
  29514. #: guix-git/doc/guix.texi:19852
  29515. #, fuzzy
  29516. msgid "Data type representing the configuration of @var{postgresql-role-service-type}."
  29517. msgstr "管理操作系统配置。"
  29518. #. type: item
  29519. #: guix-git/doc/guix.texi:19854
  29520. #, fuzzy, no-wrap
  29521. msgid "@code{host} (default: @code{\"/var/run/postgresql\"})"
  29522. msgstr "@code{port}(默认值:@code{22})"
  29523. #. type: table
  29524. #: guix-git/doc/guix.texi:19856
  29525. msgid "The PostgreSQL host to connect to."
  29526. msgstr ""
  29527. #. type: item
  29528. #: guix-git/doc/guix.texi:19857
  29529. #, fuzzy, no-wrap
  29530. msgid "@code{log} (default: @code{\"/var/log/postgresql_roles.log\"})"
  29531. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  29532. #. type: table
  29533. #: guix-git/doc/guix.texi:19859
  29534. #, fuzzy
  29535. msgid "File name of the log file."
  29536. msgstr "远程机器的主机名。"
  29537. #. type: item
  29538. #: guix-git/doc/guix.texi:19860
  29539. #, fuzzy, no-wrap
  29540. msgid "@code{roles} (default: @code{'()})"
  29541. msgstr "@code{features} (@code{'()})"
  29542. #. type: table
  29543. #: guix-git/doc/guix.texi:19862
  29544. msgid "The initial PostgreSQL roles to create."
  29545. msgstr ""
  29546. #. type: subsubheading
  29547. #: guix-git/doc/guix.texi:19865
  29548. #, no-wrap
  29549. msgid "MariaDB/MySQL"
  29550. msgstr ""
  29551. #. type: defvr
  29552. #: guix-git/doc/guix.texi:19867
  29553. #, no-wrap
  29554. msgid "{Scheme Variable} mysql-service-type"
  29555. msgstr ""
  29556. #. type: defvr
  29557. #: guix-git/doc/guix.texi:19871
  29558. 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."
  29559. msgstr ""
  29560. #. type: deftp
  29561. #: guix-git/doc/guix.texi:19873
  29562. #, no-wrap
  29563. msgid "{Data Type} mysql-configuration"
  29564. msgstr ""
  29565. #. type: deftp
  29566. #: guix-git/doc/guix.texi:19875
  29567. #, fuzzy
  29568. msgid "Data type representing the configuration of @var{mysql-service-type}."
  29569. msgstr "管理操作系统配置。"
  29570. #. type: item
  29571. #: guix-git/doc/guix.texi:19877
  29572. #, no-wrap
  29573. msgid "@code{mysql} (default: @var{mariadb})"
  29574. msgstr ""
  29575. #. type: table
  29576. #: guix-git/doc/guix.texi:19880
  29577. msgid "Package object of the MySQL database server, can be either @var{mariadb} or @var{mysql}."
  29578. msgstr ""
  29579. #. type: table
  29580. #: guix-git/doc/guix.texi:19883
  29581. msgid "For MySQL, a temporary root password will be displayed at activation time. For MariaDB, the root password is empty."
  29582. msgstr ""
  29583. #. type: item
  29584. #: guix-git/doc/guix.texi:19884 guix-git/doc/guix.texi:23430
  29585. #, no-wrap
  29586. msgid "@code{bind-address} (default: @code{\"127.0.0.1\"})"
  29587. msgstr ""
  29588. #. type: table
  29589. #: guix-git/doc/guix.texi:19887
  29590. msgid "The IP on which to listen for network connections. Use @code{\"0.0.0.0\"} to bind to all available network interfaces."
  29591. msgstr ""
  29592. #. type: item
  29593. #: guix-git/doc/guix.texi:19888
  29594. #, no-wrap
  29595. msgid "@code{port} (default: @code{3306})"
  29596. msgstr ""
  29597. #. type: table
  29598. #: guix-git/doc/guix.texi:19890
  29599. msgid "TCP port on which the database server listens for incoming connections."
  29600. msgstr ""
  29601. #. type: item
  29602. #: guix-git/doc/guix.texi:19891
  29603. #, fuzzy, no-wrap
  29604. msgid "@code{socket} (default: @code{\"/run/mysqld/mysqld.sock\"})"
  29605. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  29606. #. type: table
  29607. #: guix-git/doc/guix.texi:19893
  29608. msgid "Socket file to use for local (non-network) connections."
  29609. msgstr ""
  29610. #. type: table
  29611. #: guix-git/doc/guix.texi:19896
  29612. msgid "Additional settings for the @file{my.cnf} configuration file."
  29613. msgstr ""
  29614. #. type: item
  29615. #: guix-git/doc/guix.texi:19897
  29616. #, fuzzy, no-wrap
  29617. msgid "@code{auto-upgrade?} (default: @code{#t})"
  29618. msgstr "@code{mate}(默认值:@code{mate})"
  29619. #. type: table
  29620. #: guix-git/doc/guix.texi:19902
  29621. 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."
  29622. msgstr ""
  29623. #. type: subsubheading
  29624. #: guix-git/doc/guix.texi:19906
  29625. #, no-wrap
  29626. msgid "Memcached"
  29627. msgstr ""
  29628. #. type: defvr
  29629. #: guix-git/doc/guix.texi:19908
  29630. #, no-wrap
  29631. msgid "{Scheme Variable} memcached-service-type"
  29632. msgstr ""
  29633. #. type: defvr
  29634. #: guix-git/doc/guix.texi:19912
  29635. 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."
  29636. msgstr ""
  29637. #. type: lisp
  29638. #: guix-git/doc/guix.texi:19916
  29639. #, no-wrap
  29640. msgid "(service memcached-service-type)\n"
  29641. msgstr ""
  29642. #. type: deftp
  29643. #: guix-git/doc/guix.texi:19918
  29644. #, no-wrap
  29645. msgid "{Data Type} memcached-configuration"
  29646. msgstr ""
  29647. #. type: deftp
  29648. #: guix-git/doc/guix.texi:19920
  29649. msgid "Data type representing the configuration of memcached."
  29650. msgstr ""
  29651. #. type: item
  29652. #: guix-git/doc/guix.texi:19922
  29653. #, no-wrap
  29654. msgid "@code{memcached} (default: @code{memcached})"
  29655. msgstr ""
  29656. #. type: table
  29657. #: guix-git/doc/guix.texi:19924
  29658. msgid "The Memcached package to use."
  29659. msgstr ""
  29660. #. type: item
  29661. #: guix-git/doc/guix.texi:19925
  29662. #, no-wrap
  29663. msgid "@code{interfaces} (default: @code{'(\"0.0.0.0\")})"
  29664. msgstr ""
  29665. #. type: table
  29666. #: guix-git/doc/guix.texi:19927
  29667. msgid "Network interfaces on which to listen."
  29668. msgstr ""
  29669. #. type: item
  29670. #: guix-git/doc/guix.texi:19928
  29671. #, no-wrap
  29672. msgid "@code{tcp-port} (default: @code{11211})"
  29673. msgstr ""
  29674. #. type: table
  29675. #: guix-git/doc/guix.texi:19930
  29676. msgid "Port on which to accept connections."
  29677. msgstr ""
  29678. #. type: item
  29679. #: guix-git/doc/guix.texi:19931
  29680. #, no-wrap
  29681. msgid "@code{udp-port} (default: @code{11211})"
  29682. msgstr ""
  29683. #. type: table
  29684. #: guix-git/doc/guix.texi:19934
  29685. msgid "Port on which to accept UDP connections on, a value of 0 will disable listening on a UDP socket."
  29686. msgstr ""
  29687. #. type: item
  29688. #: guix-git/doc/guix.texi:19935
  29689. #, no-wrap
  29690. msgid "@code{additional-options} (default: @code{'()})"
  29691. msgstr ""
  29692. #. type: table
  29693. #: guix-git/doc/guix.texi:19937
  29694. msgid "Additional command line options to pass to @code{memcached}."
  29695. msgstr ""
  29696. #. type: subsubheading
  29697. #: guix-git/doc/guix.texi:19940
  29698. #, no-wrap
  29699. msgid "Redis"
  29700. msgstr ""
  29701. #. type: defvr
  29702. #: guix-git/doc/guix.texi:19942
  29703. #, no-wrap
  29704. msgid "{Scheme Variable} redis-service-type"
  29705. msgstr ""
  29706. #. type: defvr
  29707. #: guix-git/doc/guix.texi:19945
  29708. msgid "This is the service type for the @uref{https://redis.io/, Redis} key/value store, whose value is a @code{redis-configuration} object."
  29709. msgstr ""
  29710. #. type: deftp
  29711. #: guix-git/doc/guix.texi:19947
  29712. #, no-wrap
  29713. msgid "{Data Type} redis-configuration"
  29714. msgstr ""
  29715. #. type: deftp
  29716. #: guix-git/doc/guix.texi:19949
  29717. msgid "Data type representing the configuration of redis."
  29718. msgstr ""
  29719. #. type: item
  29720. #: guix-git/doc/guix.texi:19951
  29721. #, no-wrap
  29722. msgid "@code{redis} (default: @code{redis})"
  29723. msgstr ""
  29724. #. type: table
  29725. #: guix-git/doc/guix.texi:19953
  29726. msgid "The Redis package to use."
  29727. msgstr ""
  29728. #. type: item
  29729. #: guix-git/doc/guix.texi:19954
  29730. #, no-wrap
  29731. msgid "@code{bind} (default: @code{\"127.0.0.1\"})"
  29732. msgstr ""
  29733. #. type: table
  29734. #: guix-git/doc/guix.texi:19956
  29735. msgid "Network interface on which to listen."
  29736. msgstr ""
  29737. #. type: item
  29738. #: guix-git/doc/guix.texi:19957
  29739. #, no-wrap
  29740. msgid "@code{port} (default: @code{6379})"
  29741. msgstr ""
  29742. #. type: table
  29743. #: guix-git/doc/guix.texi:19960
  29744. msgid "Port on which to accept connections on, a value of 0 will disable listening on a TCP socket."
  29745. msgstr ""
  29746. #. type: item
  29747. #: guix-git/doc/guix.texi:19961
  29748. #, no-wrap
  29749. msgid "@code{working-directory} (default: @code{\"/var/lib/redis\"})"
  29750. msgstr ""
  29751. #. type: table
  29752. #: guix-git/doc/guix.texi:19963
  29753. msgid "Directory in which to store the database and related files."
  29754. msgstr ""
  29755. #. type: cindex
  29756. #: guix-git/doc/guix.texi:19969
  29757. #, no-wrap
  29758. msgid "mail"
  29759. msgstr ""
  29760. #. type: cindex
  29761. #: guix-git/doc/guix.texi:19970
  29762. #, no-wrap
  29763. msgid "email"
  29764. msgstr ""
  29765. #. type: Plain text
  29766. #: guix-git/doc/guix.texi:19975
  29767. 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."
  29768. msgstr ""
  29769. #. type: subsubheading
  29770. #: guix-git/doc/guix.texi:19976
  29771. #, no-wrap
  29772. msgid "Dovecot Service"
  29773. msgstr ""
  29774. #. type: deffn
  29775. #: guix-git/doc/guix.texi:19978
  29776. #, no-wrap
  29777. msgid "{Scheme Procedure} dovecot-service [#:config (dovecot-configuration)]"
  29778. msgstr ""
  29779. #. type: deffn
  29780. #: guix-git/doc/guix.texi:19980
  29781. msgid "Return a service that runs the Dovecot IMAP/POP3/LMTP mail server."
  29782. msgstr ""
  29783. #. type: Plain text
  29784. #: guix-git/doc/guix.texi:19990
  29785. 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."
  29786. msgstr ""
  29787. #. type: Plain text
  29788. #: guix-git/doc/guix.texi:19993
  29789. msgid "For example, to specify that mail is located at @code{maildir~/.mail}, one would instantiate the Dovecot service like this:"
  29790. msgstr ""
  29791. #. type: lisp
  29792. #: guix-git/doc/guix.texi:19998
  29793. #, no-wrap
  29794. msgid ""
  29795. "(dovecot-service #:config\n"
  29796. " (dovecot-configuration\n"
  29797. " (mail-location \"maildir:~/.mail\")))\n"
  29798. msgstr ""
  29799. #. type: Plain text
  29800. #: guix-git/doc/guix.texi:20006
  29801. 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."
  29802. msgstr ""
  29803. #. type: Plain text
  29804. #: guix-git/doc/guix.texi:20016
  29805. msgid "Available @code{dovecot-configuration} fields are:"
  29806. msgstr ""
  29807. #. type: deftypevr
  29808. #: guix-git/doc/guix.texi:20017
  29809. #, no-wrap
  29810. msgid "{@code{dovecot-configuration} parameter} package dovecot"
  29811. msgstr ""
  29812. #. type: deftypevr
  29813. #: guix-git/doc/guix.texi:20019 guix-git/doc/guix.texi:21325
  29814. msgid "The dovecot package."
  29815. msgstr ""
  29816. #. type: deftypevr
  29817. #: guix-git/doc/guix.texi:20021
  29818. #, no-wrap
  29819. msgid "{@code{dovecot-configuration} parameter} comma-separated-string-list listen"
  29820. msgstr ""
  29821. #. type: deftypevr
  29822. #: guix-git/doc/guix.texi:20027
  29823. 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."
  29824. msgstr ""
  29825. #. type: deftypevr
  29826. #: guix-git/doc/guix.texi:20029
  29827. #, no-wrap
  29828. msgid "{@code{dovecot-configuration} parameter} protocol-configuration-list protocols"
  29829. msgstr ""
  29830. #. type: deftypevr
  29831. #: guix-git/doc/guix.texi:20032
  29832. msgid "List of protocols we want to serve. Available protocols include @samp{imap}, @samp{pop3}, and @samp{lmtp}."
  29833. msgstr ""
  29834. #. type: deftypevr
  29835. #: guix-git/doc/guix.texi:20034
  29836. msgid "Available @code{protocol-configuration} fields are:"
  29837. msgstr ""
  29838. #. type: deftypevr
  29839. #: guix-git/doc/guix.texi:20035
  29840. #, no-wrap
  29841. msgid "{@code{protocol-configuration} parameter} string name"
  29842. msgstr ""
  29843. #. type: deftypevr
  29844. #: guix-git/doc/guix.texi:20037
  29845. msgid "The name of the protocol."
  29846. msgstr ""
  29847. #. type: deftypevr
  29848. #: guix-git/doc/guix.texi:20039
  29849. #, no-wrap
  29850. msgid "{@code{protocol-configuration} parameter} string auth-socket-path"
  29851. msgstr ""
  29852. #. type: deftypevr
  29853. #: guix-git/doc/guix.texi:20043
  29854. 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\"}."
  29855. msgstr ""
  29856. #. type: deftypevr
  29857. #: guix-git/doc/guix.texi:20045
  29858. #, no-wrap
  29859. msgid "{@code{protocol-configuration} parameter} space-separated-string-list mail-plugins"
  29860. msgstr ""
  29861. #. type: deftypevr
  29862. #: guix-git/doc/guix.texi:20047
  29863. msgid "Space separated list of plugins to load."
  29864. msgstr ""
  29865. #. type: deftypevr
  29866. #: guix-git/doc/guix.texi:20049
  29867. #, no-wrap
  29868. msgid "{@code{protocol-configuration} parameter} non-negative-integer mail-max-userip-connections"
  29869. msgstr ""
  29870. #. type: deftypevr
  29871. #: guix-git/doc/guix.texi:20053
  29872. 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}."
  29873. msgstr ""
  29874. #. type: deftypevr
  29875. #: guix-git/doc/guix.texi:20057
  29876. #, no-wrap
  29877. msgid "{@code{dovecot-configuration} parameter} service-configuration-list services"
  29878. msgstr ""
  29879. #. type: deftypevr
  29880. #: guix-git/doc/guix.texi:20061
  29881. msgid "List of services to enable. Available services include @samp{imap}, @samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and @samp{lmtp}."
  29882. msgstr ""
  29883. #. type: deftypevr
  29884. #: guix-git/doc/guix.texi:20063
  29885. msgid "Available @code{service-configuration} fields are:"
  29886. msgstr ""
  29887. #. type: deftypevr
  29888. #: guix-git/doc/guix.texi:20064
  29889. #, no-wrap
  29890. msgid "{@code{service-configuration} parameter} string kind"
  29891. msgstr ""
  29892. #. type: deftypevr
  29893. #: guix-git/doc/guix.texi:20069
  29894. 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."
  29895. msgstr ""
  29896. #. type: deftypevr
  29897. #: guix-git/doc/guix.texi:20071
  29898. #, no-wrap
  29899. msgid "{@code{service-configuration} parameter} listener-configuration-list listeners"
  29900. msgstr ""
  29901. #. type: deftypevr
  29902. #: guix-git/doc/guix.texi:20076
  29903. 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{()}."
  29904. msgstr ""
  29905. #. type: deftypevr
  29906. #: guix-git/doc/guix.texi:20078
  29907. msgid "Available @code{unix-listener-configuration} fields are:"
  29908. msgstr ""
  29909. #. type: deftypevr
  29910. #: guix-git/doc/guix.texi:20079
  29911. #, no-wrap
  29912. msgid "{@code{unix-listener-configuration} parameter} string path"
  29913. msgstr ""
  29914. #. type: deftypevr
  29915. #: guix-git/doc/guix.texi:20082 guix-git/doc/guix.texi:20105
  29916. msgid "Path to the file, relative to @code{base-dir} field. This is also used as the section name."
  29917. msgstr ""
  29918. #. type: deftypevr
  29919. #: guix-git/doc/guix.texi:20084
  29920. #, no-wrap
  29921. msgid "{@code{unix-listener-configuration} parameter} string mode"
  29922. msgstr ""
  29923. #. type: deftypevr
  29924. #: guix-git/doc/guix.texi:20087 guix-git/doc/guix.texi:20110
  29925. msgid "The access mode for the socket. Defaults to @samp{\"0600\"}."
  29926. msgstr ""
  29927. #. type: deftypevr
  29928. #: guix-git/doc/guix.texi:20089
  29929. #, no-wrap
  29930. msgid "{@code{unix-listener-configuration} parameter} string user"
  29931. msgstr ""
  29932. #. type: deftypevr
  29933. #: guix-git/doc/guix.texi:20092 guix-git/doc/guix.texi:20115
  29934. msgid "The user to own the socket. Defaults to @samp{\"\"}."
  29935. msgstr ""
  29936. #. type: deftypevr
  29937. #: guix-git/doc/guix.texi:20094
  29938. #, no-wrap
  29939. msgid "{@code{unix-listener-configuration} parameter} string group"
  29940. msgstr ""
  29941. #. type: deftypevr
  29942. #: guix-git/doc/guix.texi:20097 guix-git/doc/guix.texi:20120
  29943. msgid "The group to own the socket. Defaults to @samp{\"\"}."
  29944. msgstr ""
  29945. #. type: deftypevr
  29946. #: guix-git/doc/guix.texi:20101
  29947. msgid "Available @code{fifo-listener-configuration} fields are:"
  29948. msgstr ""
  29949. #. type: deftypevr
  29950. #: guix-git/doc/guix.texi:20102
  29951. #, no-wrap
  29952. msgid "{@code{fifo-listener-configuration} parameter} string path"
  29953. msgstr ""
  29954. #. type: deftypevr
  29955. #: guix-git/doc/guix.texi:20107
  29956. #, no-wrap
  29957. msgid "{@code{fifo-listener-configuration} parameter} string mode"
  29958. msgstr ""
  29959. #. type: deftypevr
  29960. #: guix-git/doc/guix.texi:20112
  29961. #, no-wrap
  29962. msgid "{@code{fifo-listener-configuration} parameter} string user"
  29963. msgstr ""
  29964. #. type: deftypevr
  29965. #: guix-git/doc/guix.texi:20117
  29966. #, no-wrap
  29967. msgid "{@code{fifo-listener-configuration} parameter} string group"
  29968. msgstr ""
  29969. #. type: deftypevr
  29970. #: guix-git/doc/guix.texi:20124
  29971. msgid "Available @code{inet-listener-configuration} fields are:"
  29972. msgstr ""
  29973. #. type: deftypevr
  29974. #: guix-git/doc/guix.texi:20125
  29975. #, no-wrap
  29976. msgid "{@code{inet-listener-configuration} parameter} string protocol"
  29977. msgstr ""
  29978. #. type: deftypevr
  29979. #: guix-git/doc/guix.texi:20127
  29980. msgid "The protocol to listen for."
  29981. msgstr ""
  29982. #. type: deftypevr
  29983. #: guix-git/doc/guix.texi:20129
  29984. #, no-wrap
  29985. msgid "{@code{inet-listener-configuration} parameter} string address"
  29986. msgstr ""
  29987. #. type: deftypevr
  29988. #: guix-git/doc/guix.texi:20132
  29989. msgid "The address on which to listen, or empty for all addresses. Defaults to @samp{\"\"}."
  29990. msgstr ""
  29991. #. type: deftypevr
  29992. #: guix-git/doc/guix.texi:20134
  29993. #, no-wrap
  29994. msgid "{@code{inet-listener-configuration} parameter} non-negative-integer port"
  29995. msgstr ""
  29996. #. type: deftypevr
  29997. #: guix-git/doc/guix.texi:20136
  29998. msgid "The port on which to listen."
  29999. msgstr ""
  30000. #. type: deftypevr
  30001. #: guix-git/doc/guix.texi:20138
  30002. #, no-wrap
  30003. msgid "{@code{inet-listener-configuration} parameter} boolean ssl?"
  30004. msgstr ""
  30005. #. type: deftypevr
  30006. #: guix-git/doc/guix.texi:20142
  30007. msgid "Whether to use SSL for this service; @samp{yes}, @samp{no}, or @samp{required}. Defaults to @samp{#t}."
  30008. msgstr ""
  30009. #. type: deftypevr
  30010. #: guix-git/doc/guix.texi:20146
  30011. #, no-wrap
  30012. msgid "{@code{service-configuration} parameter} non-negative-integer client-limit"
  30013. msgstr ""
  30014. #. type: deftypevr
  30015. #: guix-git/doc/guix.texi:20151
  30016. 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."
  30017. msgstr ""
  30018. #. type: deftypevr
  30019. #: guix-git/doc/guix.texi:20156
  30020. #, no-wrap
  30021. msgid "{@code{service-configuration} parameter} non-negative-integer service-count"
  30022. msgstr ""
  30023. #. type: deftypevr
  30024. #: guix-git/doc/guix.texi:20161
  30025. 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}."
  30026. msgstr ""
  30027. #. type: deftypevr
  30028. #: guix-git/doc/guix.texi:20164
  30029. #, no-wrap
  30030. msgid "{@code{service-configuration} parameter} non-negative-integer process-limit"
  30031. msgstr ""
  30032. #. type: deftypevr
  30033. #: guix-git/doc/guix.texi:20167
  30034. msgid "Maximum number of processes that can exist for this service. If set to 0, @code{default-process-limit} is used instead."
  30035. msgstr ""
  30036. #. type: deftypevr
  30037. #: guix-git/doc/guix.texi:20172
  30038. #, no-wrap
  30039. msgid "{@code{service-configuration} parameter} non-negative-integer process-min-avail"
  30040. msgstr ""
  30041. #. type: deftypevr
  30042. #: guix-git/doc/guix.texi:20175
  30043. msgid "Number of processes to always keep waiting for more connections. Defaults to @samp{0}."
  30044. msgstr ""
  30045. #. type: deftypevr
  30046. #: guix-git/doc/guix.texi:20177
  30047. #, no-wrap
  30048. msgid "{@code{service-configuration} parameter} non-negative-integer vsz-limit"
  30049. msgstr ""
  30050. #. type: deftypevr
  30051. #: guix-git/doc/guix.texi:20181
  30052. msgid "If you set @samp{service-count 0}, you probably need to grow this. Defaults to @samp{256000000}."
  30053. msgstr ""
  30054. #. type: deftypevr
  30055. #: guix-git/doc/guix.texi:20185
  30056. #, no-wrap
  30057. msgid "{@code{dovecot-configuration} parameter} dict-configuration dict"
  30058. msgstr ""
  30059. #. type: deftypevr
  30060. #: guix-git/doc/guix.texi:20188
  30061. msgid "Dict configuration, as created by the @code{dict-configuration} constructor."
  30062. msgstr ""
  30063. #. type: deftypevr
  30064. #: guix-git/doc/guix.texi:20190
  30065. msgid "Available @code{dict-configuration} fields are:"
  30066. msgstr ""
  30067. #. type: deftypevr
  30068. #: guix-git/doc/guix.texi:20191
  30069. #, no-wrap
  30070. msgid "{@code{dict-configuration} parameter} free-form-fields entries"
  30071. msgstr ""
  30072. #. type: deftypevr
  30073. #: guix-git/doc/guix.texi:20194
  30074. msgid "A list of key-value pairs that this dict should hold. Defaults to @samp{()}."
  30075. msgstr ""
  30076. #. type: deftypevr
  30077. #: guix-git/doc/guix.texi:20198
  30078. #, no-wrap
  30079. msgid "{@code{dovecot-configuration} parameter} passdb-configuration-list passdbs"
  30080. msgstr ""
  30081. #. type: deftypevr
  30082. #: guix-git/doc/guix.texi:20201
  30083. msgid "A list of passdb configurations, each one created by the @code{passdb-configuration} constructor."
  30084. msgstr ""
  30085. #. type: deftypevr
  30086. #: guix-git/doc/guix.texi:20203
  30087. msgid "Available @code{passdb-configuration} fields are:"
  30088. msgstr ""
  30089. #. type: deftypevr
  30090. #: guix-git/doc/guix.texi:20204
  30091. #, no-wrap
  30092. msgid "{@code{passdb-configuration} parameter} string driver"
  30093. msgstr ""
  30094. #. type: deftypevr
  30095. #: guix-git/doc/guix.texi:20209
  30096. 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\"}."
  30097. msgstr ""
  30098. #. type: deftypevr
  30099. #: guix-git/doc/guix.texi:20211
  30100. #, no-wrap
  30101. msgid "{@code{passdb-configuration} parameter} space-separated-string-list args"
  30102. msgstr ""
  30103. #. type: deftypevr
  30104. #: guix-git/doc/guix.texi:20214
  30105. msgid "Space separated list of arguments to the passdb driver. Defaults to @samp{\"\"}."
  30106. msgstr ""
  30107. #. type: deftypevr
  30108. #: guix-git/doc/guix.texi:20218
  30109. #, no-wrap
  30110. msgid "{@code{dovecot-configuration} parameter} userdb-configuration-list userdbs"
  30111. msgstr ""
  30112. #. type: deftypevr
  30113. #: guix-git/doc/guix.texi:20221
  30114. msgid "List of userdb configurations, each one created by the @code{userdb-configuration} constructor."
  30115. msgstr ""
  30116. #. type: deftypevr
  30117. #: guix-git/doc/guix.texi:20223
  30118. msgid "Available @code{userdb-configuration} fields are:"
  30119. msgstr ""
  30120. #. type: deftypevr
  30121. #: guix-git/doc/guix.texi:20224
  30122. #, no-wrap
  30123. msgid "{@code{userdb-configuration} parameter} string driver"
  30124. msgstr ""
  30125. #. type: deftypevr
  30126. #: guix-git/doc/guix.texi:20228
  30127. msgid "The driver that the userdb should use. Valid values include @samp{passwd} and @samp{static}. Defaults to @samp{\"passwd\"}."
  30128. msgstr ""
  30129. #. type: deftypevr
  30130. #: guix-git/doc/guix.texi:20230
  30131. #, no-wrap
  30132. msgid "{@code{userdb-configuration} parameter} space-separated-string-list args"
  30133. msgstr ""
  30134. #. type: deftypevr
  30135. #: guix-git/doc/guix.texi:20233
  30136. msgid "Space separated list of arguments to the userdb driver. Defaults to @samp{\"\"}."
  30137. msgstr ""
  30138. #. type: deftypevr
  30139. #: guix-git/doc/guix.texi:20235
  30140. #, no-wrap
  30141. msgid "{@code{userdb-configuration} parameter} free-form-args override-fields"
  30142. msgstr ""
  30143. #. type: deftypevr
  30144. #: guix-git/doc/guix.texi:20238
  30145. msgid "Override fields from passwd. Defaults to @samp{()}."
  30146. msgstr ""
  30147. #. type: deftypevr
  30148. #: guix-git/doc/guix.texi:20242
  30149. #, no-wrap
  30150. msgid "{@code{dovecot-configuration} parameter} plugin-configuration plugin-configuration"
  30151. msgstr ""
  30152. #. type: deftypevr
  30153. #: guix-git/doc/guix.texi:20245
  30154. msgid "Plug-in configuration, created by the @code{plugin-configuration} constructor."
  30155. msgstr ""
  30156. #. type: deftypevr
  30157. #: guix-git/doc/guix.texi:20247
  30158. #, no-wrap
  30159. msgid "{@code{dovecot-configuration} parameter} list-of-namespace-configuration namespaces"
  30160. msgstr ""
  30161. #. type: deftypevr
  30162. #: guix-git/doc/guix.texi:20250
  30163. msgid "List of namespaces. Each item in the list is created by the @code{namespace-configuration} constructor."
  30164. msgstr ""
  30165. #. type: deftypevr
  30166. #: guix-git/doc/guix.texi:20252
  30167. msgid "Available @code{namespace-configuration} fields are:"
  30168. msgstr ""
  30169. #. type: deftypevr
  30170. #: guix-git/doc/guix.texi:20253
  30171. #, no-wrap
  30172. msgid "{@code{namespace-configuration} parameter} string name"
  30173. msgstr ""
  30174. #. type: deftypevr
  30175. #: guix-git/doc/guix.texi:20255
  30176. msgid "Name for this namespace."
  30177. msgstr ""
  30178. #. type: deftypevr
  30179. #: guix-git/doc/guix.texi:20257
  30180. #, no-wrap
  30181. msgid "{@code{namespace-configuration} parameter} string type"
  30182. msgstr ""
  30183. #. type: deftypevr
  30184. #: guix-git/doc/guix.texi:20260
  30185. msgid "Namespace type: @samp{private}, @samp{shared} or @samp{public}. Defaults to @samp{\"private\"}."
  30186. msgstr ""
  30187. #. type: deftypevr
  30188. #: guix-git/doc/guix.texi:20262
  30189. #, no-wrap
  30190. msgid "{@code{namespace-configuration} parameter} string separator"
  30191. msgstr ""
  30192. #. type: deftypevr
  30193. #: guix-git/doc/guix.texi:20268
  30194. 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{\"\"}."
  30195. msgstr ""
  30196. #. type: deftypevr
  30197. #: guix-git/doc/guix.texi:20270
  30198. #, no-wrap
  30199. msgid "{@code{namespace-configuration} parameter} string prefix"
  30200. msgstr ""
  30201. #. type: deftypevr
  30202. #: guix-git/doc/guix.texi:20274
  30203. msgid "Prefix required to access this namespace. This needs to be different for all namespaces. For example @samp{Public/}. Defaults to @samp{\"\"}."
  30204. msgstr ""
  30205. #. type: deftypevr
  30206. #: guix-git/doc/guix.texi:20276
  30207. #, no-wrap
  30208. msgid "{@code{namespace-configuration} parameter} string location"
  30209. msgstr ""
  30210. #. type: deftypevr
  30211. #: guix-git/doc/guix.texi:20280
  30212. 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{\"\"}."
  30213. msgstr ""
  30214. #. type: deftypevr
  30215. #: guix-git/doc/guix.texi:20282
  30216. #, no-wrap
  30217. msgid "{@code{namespace-configuration} parameter} boolean inbox?"
  30218. msgstr ""
  30219. #. type: deftypevr
  30220. #: guix-git/doc/guix.texi:20286
  30221. msgid "There can be only one INBOX, and this setting defines which namespace has it. Defaults to @samp{#f}."
  30222. msgstr ""
  30223. #. type: deftypevr
  30224. #: guix-git/doc/guix.texi:20288
  30225. #, no-wrap
  30226. msgid "{@code{namespace-configuration} parameter} boolean hidden?"
  30227. msgstr ""
  30228. #. type: deftypevr
  30229. #: guix-git/doc/guix.texi:20296
  30230. 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}."
  30231. msgstr ""
  30232. #. type: deftypevr
  30233. #: guix-git/doc/guix.texi:20298
  30234. #, no-wrap
  30235. msgid "{@code{namespace-configuration} parameter} boolean list?"
  30236. msgstr ""
  30237. #. type: deftypevr
  30238. #: guix-git/doc/guix.texi:20304
  30239. 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}."
  30240. msgstr ""
  30241. #. type: deftypevr
  30242. #: guix-git/doc/guix.texi:20306
  30243. #, no-wrap
  30244. msgid "{@code{namespace-configuration} parameter} boolean subscriptions?"
  30245. msgstr ""
  30246. #. type: deftypevr
  30247. #: guix-git/doc/guix.texi:20311
  30248. 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}."
  30249. msgstr ""
  30250. #. type: deftypevr
  30251. #: guix-git/doc/guix.texi:20313
  30252. #, no-wrap
  30253. msgid "{@code{namespace-configuration} parameter} mailbox-configuration-list mailboxes"
  30254. msgstr ""
  30255. #. type: deftypevr
  30256. #: guix-git/doc/guix.texi:20316
  30257. msgid "List of predefined mailboxes in this namespace. Defaults to @samp{()}."
  30258. msgstr ""
  30259. #. type: deftypevr
  30260. #: guix-git/doc/guix.texi:20318
  30261. msgid "Available @code{mailbox-configuration} fields are:"
  30262. msgstr ""
  30263. #. type: deftypevr
  30264. #: guix-git/doc/guix.texi:20319
  30265. #, no-wrap
  30266. msgid "{@code{mailbox-configuration} parameter} string name"
  30267. msgstr ""
  30268. #. type: deftypevr
  30269. #: guix-git/doc/guix.texi:20321
  30270. msgid "Name for this mailbox."
  30271. msgstr ""
  30272. #. type: deftypevr
  30273. #: guix-git/doc/guix.texi:20323
  30274. #, no-wrap
  30275. msgid "{@code{mailbox-configuration} parameter} string auto"
  30276. msgstr ""
  30277. #. type: deftypevr
  30278. #: guix-git/doc/guix.texi:20327
  30279. msgid "@samp{create} will automatically create this mailbox. @samp{subscribe} will both create and subscribe to the mailbox. Defaults to @samp{\"no\"}."
  30280. msgstr ""
  30281. #. type: deftypevr
  30282. #: guix-git/doc/guix.texi:20329
  30283. #, no-wrap
  30284. msgid "{@code{mailbox-configuration} parameter} space-separated-string-list special-use"
  30285. msgstr ""
  30286. #. type: deftypevr
  30287. #: guix-git/doc/guix.texi:20334
  30288. 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{()}."
  30289. msgstr ""
  30290. #. type: deftypevr
  30291. #: guix-git/doc/guix.texi:20340
  30292. #, no-wrap
  30293. msgid "{@code{dovecot-configuration} parameter} file-name base-dir"
  30294. msgstr ""
  30295. #. type: deftypevr
  30296. #: guix-git/doc/guix.texi:20343
  30297. msgid "Base directory where to store runtime data. Defaults to @samp{\"/var/run/dovecot/\"}."
  30298. msgstr ""
  30299. #. type: deftypevr
  30300. #: guix-git/doc/guix.texi:20345
  30301. #, no-wrap
  30302. msgid "{@code{dovecot-configuration} parameter} string login-greeting"
  30303. msgstr ""
  30304. #. type: deftypevr
  30305. #: guix-git/doc/guix.texi:20348
  30306. msgid "Greeting message for clients. Defaults to @samp{\"Dovecot ready.\"}."
  30307. msgstr ""
  30308. #. type: deftypevr
  30309. #: guix-git/doc/guix.texi:20350
  30310. #, no-wrap
  30311. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-trusted-networks"
  30312. msgstr ""
  30313. #. type: deftypevr
  30314. #: guix-git/doc/guix.texi:20357
  30315. 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{()}."
  30316. msgstr ""
  30317. #. type: deftypevr
  30318. #: guix-git/doc/guix.texi:20359
  30319. #, no-wrap
  30320. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-access-sockets"
  30321. msgstr ""
  30322. #. type: deftypevr
  30323. #: guix-git/doc/guix.texi:20362
  30324. msgid "List of login access check sockets (e.g.@: tcpwrap). Defaults to @samp{()}."
  30325. msgstr ""
  30326. #. type: deftypevr
  30327. #: guix-git/doc/guix.texi:20364
  30328. #, no-wrap
  30329. msgid "{@code{dovecot-configuration} parameter} boolean verbose-proctitle?"
  30330. msgstr ""
  30331. #. type: deftypevr
  30332. #: guix-git/doc/guix.texi:20370
  30333. 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}."
  30334. msgstr ""
  30335. #. type: deftypevr
  30336. #: guix-git/doc/guix.texi:20372
  30337. #, no-wrap
  30338. msgid "{@code{dovecot-configuration} parameter} boolean shutdown-clients?"
  30339. msgstr ""
  30340. #. type: deftypevr
  30341. #: guix-git/doc/guix.texi:20378
  30342. 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}."
  30343. msgstr ""
  30344. #. type: deftypevr
  30345. #: guix-git/doc/guix.texi:20380
  30346. #, no-wrap
  30347. msgid "{@code{dovecot-configuration} parameter} non-negative-integer doveadm-worker-count"
  30348. msgstr ""
  30349. #. type: deftypevr
  30350. #: guix-git/doc/guix.texi:20384
  30351. 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}."
  30352. msgstr ""
  30353. #. type: deftypevr
  30354. #: guix-git/doc/guix.texi:20386
  30355. #, no-wrap
  30356. msgid "{@code{dovecot-configuration} parameter} string doveadm-socket-path"
  30357. msgstr ""
  30358. #. type: deftypevr
  30359. #: guix-git/doc/guix.texi:20389
  30360. msgid "UNIX socket or host:port used for connecting to doveadm server. Defaults to @samp{\"doveadm-server\"}."
  30361. msgstr ""
  30362. #. type: deftypevr
  30363. #: guix-git/doc/guix.texi:20391
  30364. #, no-wrap
  30365. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list import-environment"
  30366. msgstr ""
  30367. #. type: deftypevr
  30368. #: guix-git/doc/guix.texi:20395
  30369. 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."
  30370. msgstr ""
  30371. #. type: deftypevr
  30372. #: guix-git/doc/guix.texi:20397
  30373. #, no-wrap
  30374. msgid "{@code{dovecot-configuration} parameter} boolean disable-plaintext-auth?"
  30375. msgstr ""
  30376. #. type: deftypevr
  30377. #: guix-git/doc/guix.texi:20404
  30378. 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}."
  30379. msgstr ""
  30380. #. type: deftypevr
  30381. #: guix-git/doc/guix.texi:20406
  30382. #, no-wrap
  30383. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-cache-size"
  30384. msgstr ""
  30385. #. type: deftypevr
  30386. #: guix-git/doc/guix.texi:20411
  30387. 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}."
  30388. msgstr ""
  30389. #. type: deftypevr
  30390. #: guix-git/doc/guix.texi:20413
  30391. #, no-wrap
  30392. msgid "{@code{dovecot-configuration} parameter} string auth-cache-ttl"
  30393. msgstr ""
  30394. #. type: deftypevr
  30395. #: guix-git/doc/guix.texi:20421
  30396. 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\"}."
  30397. msgstr ""
  30398. #. type: deftypevr
  30399. #: guix-git/doc/guix.texi:20423
  30400. #, no-wrap
  30401. msgid "{@code{dovecot-configuration} parameter} string auth-cache-negative-ttl"
  30402. msgstr ""
  30403. #. type: deftypevr
  30404. #: guix-git/doc/guix.texi:20427
  30405. msgid "TTL for negative hits (user not found, password mismatch). 0 disables caching them completely. Defaults to @samp{\"1 hour\"}."
  30406. msgstr ""
  30407. #. type: deftypevr
  30408. #: guix-git/doc/guix.texi:20429
  30409. #, no-wrap
  30410. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-realms"
  30411. msgstr ""
  30412. #. type: deftypevr
  30413. #: guix-git/doc/guix.texi:20435
  30414. 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{()}."
  30415. msgstr ""
  30416. #. type: deftypevr
  30417. #: guix-git/doc/guix.texi:20437
  30418. #, no-wrap
  30419. msgid "{@code{dovecot-configuration} parameter} string auth-default-realm"
  30420. msgstr ""
  30421. #. type: deftypevr
  30422. #: guix-git/doc/guix.texi:20442
  30423. 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{\"\"}."
  30424. msgstr ""
  30425. #. type: deftypevr
  30426. #: guix-git/doc/guix.texi:20444
  30427. #, no-wrap
  30428. msgid "{@code{dovecot-configuration} parameter} string auth-username-chars"
  30429. msgstr ""
  30430. #. type: deftypevr
  30431. #: guix-git/doc/guix.texi:20451
  30432. 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.-_@@\"}."
  30433. msgstr ""
  30434. #. type: deftypevr
  30435. #: guix-git/doc/guix.texi:20453
  30436. #, no-wrap
  30437. msgid "{@code{dovecot-configuration} parameter} string auth-username-translation"
  30438. msgstr ""
  30439. #. type: deftypevr
  30440. #: guix-git/doc/guix.texi:20459
  30441. 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{\"\"}."
  30442. msgstr ""
  30443. #. type: deftypevr
  30444. #: guix-git/doc/guix.texi:20461
  30445. #, no-wrap
  30446. msgid "{@code{dovecot-configuration} parameter} string auth-username-format"
  30447. msgstr ""
  30448. #. type: deftypevr
  30449. #: guix-git/doc/guix.texi:20468
  30450. 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\"}."
  30451. msgstr ""
  30452. #. type: deftypevr
  30453. #: guix-git/doc/guix.texi:20470
  30454. #, no-wrap
  30455. msgid "{@code{dovecot-configuration} parameter} string auth-master-user-separator"
  30456. msgstr ""
  30457. #. type: deftypevr
  30458. #: guix-git/doc/guix.texi:20478
  30459. 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{\"\"}."
  30460. msgstr ""
  30461. #. type: deftypevr
  30462. #: guix-git/doc/guix.texi:20480
  30463. #, no-wrap
  30464. msgid "{@code{dovecot-configuration} parameter} string auth-anonymous-username"
  30465. msgstr ""
  30466. #. type: deftypevr
  30467. #: guix-git/doc/guix.texi:20484
  30468. msgid "Username to use for users logging in with ANONYMOUS SASL mechanism. Defaults to @samp{\"anonymous\"}."
  30469. msgstr ""
  30470. #. type: deftypevr
  30471. #: guix-git/doc/guix.texi:20486
  30472. #, no-wrap
  30473. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-worker-max-count"
  30474. msgstr ""
  30475. #. type: deftypevr
  30476. #: guix-git/doc/guix.texi:20491
  30477. 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}."
  30478. msgstr ""
  30479. #. type: deftypevr
  30480. #: guix-git/doc/guix.texi:20493
  30481. #, no-wrap
  30482. msgid "{@code{dovecot-configuration} parameter} string auth-gssapi-hostname"
  30483. msgstr ""
  30484. #. type: deftypevr
  30485. #: guix-git/doc/guix.texi:20498
  30486. 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{\"\"}."
  30487. msgstr ""
  30488. #. type: deftypevr
  30489. #: guix-git/doc/guix.texi:20500
  30490. #, no-wrap
  30491. msgid "{@code{dovecot-configuration} parameter} string auth-krb5-keytab"
  30492. msgstr ""
  30493. #. type: deftypevr
  30494. #: guix-git/doc/guix.texi:20506
  30495. 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{\"\"}."
  30496. msgstr ""
  30497. #. type: deftypevr
  30498. #: guix-git/doc/guix.texi:20508
  30499. #, no-wrap
  30500. msgid "{@code{dovecot-configuration} parameter} boolean auth-use-winbind?"
  30501. msgstr ""
  30502. #. type: deftypevr
  30503. #: guix-git/doc/guix.texi:20513
  30504. 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}."
  30505. msgstr ""
  30506. #. type: deftypevr
  30507. #: guix-git/doc/guix.texi:20515
  30508. #, no-wrap
  30509. msgid "{@code{dovecot-configuration} parameter} file-name auth-winbind-helper-path"
  30510. msgstr ""
  30511. #. type: deftypevr
  30512. #: guix-git/doc/guix.texi:20518
  30513. msgid "Path for Samba's @samp{ntlm-auth} helper binary. Defaults to @samp{\"/usr/bin/ntlm_auth\"}."
  30514. msgstr ""
  30515. #. type: deftypevr
  30516. #: guix-git/doc/guix.texi:20520
  30517. #, no-wrap
  30518. msgid "{@code{dovecot-configuration} parameter} string auth-failure-delay"
  30519. msgstr ""
  30520. #. type: deftypevr
  30521. #: guix-git/doc/guix.texi:20523
  30522. msgid "Time to delay before replying to failed authentications. Defaults to @samp{\"2 secs\"}."
  30523. msgstr ""
  30524. #. type: deftypevr
  30525. #: guix-git/doc/guix.texi:20525
  30526. #, no-wrap
  30527. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-require-client-cert?"
  30528. msgstr ""
  30529. #. type: deftypevr
  30530. #: guix-git/doc/guix.texi:20529
  30531. msgid "Require a valid SSL client certificate or the authentication fails. Defaults to @samp{#f}."
  30532. msgstr ""
  30533. #. type: deftypevr
  30534. #: guix-git/doc/guix.texi:20531
  30535. #, no-wrap
  30536. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-username-from-cert?"
  30537. msgstr ""
  30538. #. type: deftypevr
  30539. #: guix-git/doc/guix.texi:20536
  30540. 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}."
  30541. msgstr ""
  30542. #. type: deftypevr
  30543. #: guix-git/doc/guix.texi:20538
  30544. #, no-wrap
  30545. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-mechanisms"
  30546. msgstr ""
  30547. #. type: deftypevr
  30548. #: guix-git/doc/guix.texi:20544
  30549. 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."
  30550. msgstr ""
  30551. #. type: deftypevr
  30552. #: guix-git/doc/guix.texi:20546
  30553. #, no-wrap
  30554. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-servers"
  30555. msgstr ""
  30556. #. type: deftypevr
  30557. #: guix-git/doc/guix.texi:20551
  30558. 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{()}."
  30559. msgstr ""
  30560. #. type: deftypevr
  30561. #: guix-git/doc/guix.texi:20553
  30562. #, no-wrap
  30563. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-mail-servers"
  30564. msgstr ""
  30565. #. type: deftypevr
  30566. #: guix-git/doc/guix.texi:20557
  30567. 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{()}."
  30568. msgstr ""
  30569. #. type: deftypevr
  30570. #: guix-git/doc/guix.texi:20559
  30571. #, no-wrap
  30572. msgid "{@code{dovecot-configuration} parameter} string director-user-expire"
  30573. msgstr ""
  30574. #. type: deftypevr
  30575. #: guix-git/doc/guix.texi:20563
  30576. msgid "How long to redirect users to a specific server after it no longer has any connections. Defaults to @samp{\"15 min\"}."
  30577. msgstr ""
  30578. #. type: deftypevr
  30579. #: guix-git/doc/guix.texi:20565
  30580. #, no-wrap
  30581. msgid "{@code{dovecot-configuration} parameter} string director-username-hash"
  30582. msgstr ""
  30583. #. type: deftypevr
  30584. #: guix-git/doc/guix.texi:20570
  30585. 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\"}."
  30586. msgstr ""
  30587. #. type: deftypevr
  30588. #: guix-git/doc/guix.texi:20572
  30589. #, no-wrap
  30590. msgid "{@code{dovecot-configuration} parameter} string log-path"
  30591. msgstr ""
  30592. #. type: deftypevr
  30593. #: guix-git/doc/guix.texi:20576
  30594. msgid "Log file to use for error messages. @samp{syslog} logs to syslog, @samp{/dev/stderr} logs to stderr. Defaults to @samp{\"syslog\"}."
  30595. msgstr ""
  30596. #. type: deftypevr
  30597. #: guix-git/doc/guix.texi:20578
  30598. #, no-wrap
  30599. msgid "{@code{dovecot-configuration} parameter} string info-log-path"
  30600. msgstr ""
  30601. #. type: deftypevr
  30602. #: guix-git/doc/guix.texi:20582
  30603. msgid "Log file to use for informational messages. Defaults to @samp{log-path}. Defaults to @samp{\"\"}."
  30604. msgstr ""
  30605. #. type: deftypevr
  30606. #: guix-git/doc/guix.texi:20584
  30607. #, no-wrap
  30608. msgid "{@code{dovecot-configuration} parameter} string debug-log-path"
  30609. msgstr ""
  30610. #. type: deftypevr
  30611. #: guix-git/doc/guix.texi:20588
  30612. msgid "Log file to use for debug messages. Defaults to @samp{info-log-path}. Defaults to @samp{\"\"}."
  30613. msgstr ""
  30614. #. type: deftypevr
  30615. #: guix-git/doc/guix.texi:20590
  30616. #, no-wrap
  30617. msgid "{@code{dovecot-configuration} parameter} string syslog-facility"
  30618. msgstr ""
  30619. #. type: deftypevr
  30620. #: guix-git/doc/guix.texi:20595
  30621. 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\"}."
  30622. msgstr ""
  30623. #. type: deftypevr
  30624. #: guix-git/doc/guix.texi:20597
  30625. #, no-wrap
  30626. msgid "{@code{dovecot-configuration} parameter} boolean auth-verbose?"
  30627. msgstr ""
  30628. #. type: deftypevr
  30629. #: guix-git/doc/guix.texi:20601
  30630. msgid "Log unsuccessful authentication attempts and the reasons why they failed. Defaults to @samp{#f}."
  30631. msgstr ""
  30632. #. type: deftypevr
  30633. #: guix-git/doc/guix.texi:20603
  30634. #, no-wrap
  30635. msgid "{@code{dovecot-configuration} parameter} string auth-verbose-passwords"
  30636. msgstr ""
  30637. #. type: deftypevr
  30638. #: guix-git/doc/guix.texi:20610
  30639. 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\"}."
  30640. msgstr ""
  30641. #. type: deftypevr
  30642. #: guix-git/doc/guix.texi:20612
  30643. #, no-wrap
  30644. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug?"
  30645. msgstr ""
  30646. #. type: deftypevr
  30647. #: guix-git/doc/guix.texi:20616
  30648. msgid "Even more verbose logging for debugging purposes. Shows for example SQL queries. Defaults to @samp{#f}."
  30649. msgstr ""
  30650. #. type: deftypevr
  30651. #: guix-git/doc/guix.texi:20618
  30652. #, no-wrap
  30653. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug-passwords?"
  30654. msgstr ""
  30655. #. type: deftypevr
  30656. #: guix-git/doc/guix.texi:20623
  30657. 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}."
  30658. msgstr ""
  30659. #. type: deftypevr
  30660. #: guix-git/doc/guix.texi:20625
  30661. #, no-wrap
  30662. msgid "{@code{dovecot-configuration} parameter} boolean mail-debug?"
  30663. msgstr ""
  30664. #. type: deftypevr
  30665. #: guix-git/doc/guix.texi:20629
  30666. msgid "Enable mail process debugging. This can help you figure out why Dovecot isn't finding your mails. Defaults to @samp{#f}."
  30667. msgstr ""
  30668. #. type: deftypevr
  30669. #: guix-git/doc/guix.texi:20631
  30670. #, no-wrap
  30671. msgid "{@code{dovecot-configuration} parameter} boolean verbose-ssl?"
  30672. msgstr ""
  30673. #. type: deftypevr
  30674. #: guix-git/doc/guix.texi:20634
  30675. msgid "Show protocol level SSL errors. Defaults to @samp{#f}."
  30676. msgstr ""
  30677. #. type: deftypevr
  30678. #: guix-git/doc/guix.texi:20636
  30679. #, no-wrap
  30680. msgid "{@code{dovecot-configuration} parameter} string log-timestamp"
  30681. msgstr ""
  30682. #. type: deftypevr
  30683. #: guix-git/doc/guix.texi:20640
  30684. msgid "Prefix for each line written to log file. % codes are in strftime(3) format. Defaults to @samp{\"\\\"%b %d %H:%M:%S \\\"\"}."
  30685. msgstr ""
  30686. #. type: deftypevr
  30687. #: guix-git/doc/guix.texi:20642
  30688. #, no-wrap
  30689. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-log-format-elements"
  30690. msgstr ""
  30691. #. type: deftypevr
  30692. #: guix-git/doc/guix.texi:20646
  30693. 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."
  30694. msgstr ""
  30695. #. type: deftypevr
  30696. #: guix-git/doc/guix.texi:20648
  30697. #, no-wrap
  30698. msgid "{@code{dovecot-configuration} parameter} string login-log-format"
  30699. msgstr ""
  30700. #. type: deftypevr
  30701. #: guix-git/doc/guix.texi:20652
  30702. msgid "Login log format. %s contains @samp{login-log-format-elements} string, %$ contains the data we want to log. Defaults to @samp{\"%$: %s\"}."
  30703. msgstr ""
  30704. #. type: deftypevr
  30705. #: guix-git/doc/guix.texi:20654
  30706. #, no-wrap
  30707. msgid "{@code{dovecot-configuration} parameter} string mail-log-prefix"
  30708. msgstr ""
  30709. #. type: deftypevr
  30710. #: guix-git/doc/guix.texi:20658
  30711. 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@}>: \\\"\"}."
  30712. msgstr ""
  30713. #. type: deftypevr
  30714. #: guix-git/doc/guix.texi:20660
  30715. #, no-wrap
  30716. msgid "{@code{dovecot-configuration} parameter} string deliver-log-format"
  30717. msgstr ""
  30718. #. type: deftypevr
  30719. #: guix-git/doc/guix.texi:20662
  30720. msgid "Format to use for logging mail deliveries. You can use variables:"
  30721. msgstr ""
  30722. #. type: item
  30723. #: guix-git/doc/guix.texi:20663
  30724. #, no-wrap
  30725. msgid "%$"
  30726. msgstr ""
  30727. #. type: table
  30728. #: guix-git/doc/guix.texi:20665
  30729. msgid "Delivery status message (e.g.@: @samp{saved to INBOX})"
  30730. msgstr ""
  30731. #. type: item
  30732. #: guix-git/doc/guix.texi:20665
  30733. #, no-wrap
  30734. msgid "%m"
  30735. msgstr ""
  30736. #. type: table
  30737. #: guix-git/doc/guix.texi:20667
  30738. msgid "Message-ID"
  30739. msgstr ""
  30740. #. type: item
  30741. #: guix-git/doc/guix.texi:20667 guix-git/doc/guix.texi:21199
  30742. #, no-wrap
  30743. msgid "%s"
  30744. msgstr ""
  30745. #. type: table
  30746. #: guix-git/doc/guix.texi:20669
  30747. msgid "Subject"
  30748. msgstr ""
  30749. #. type: item
  30750. #: guix-git/doc/guix.texi:20669
  30751. #, no-wrap
  30752. msgid "%f"
  30753. msgstr ""
  30754. #. type: table
  30755. #: guix-git/doc/guix.texi:20671
  30756. msgid "From address"
  30757. msgstr ""
  30758. #. type: table
  30759. #: guix-git/doc/guix.texi:20673
  30760. msgid "Physical size"
  30761. msgstr ""
  30762. #. type: item
  30763. #: guix-git/doc/guix.texi:20673
  30764. #, no-wrap
  30765. msgid "%w"
  30766. msgstr ""
  30767. #. type: table
  30768. #: guix-git/doc/guix.texi:20675
  30769. msgid "Virtual size."
  30770. msgstr ""
  30771. #. type: deftypevr
  30772. #: guix-git/doc/guix.texi:20677
  30773. msgid "Defaults to @samp{\"msgid=%m: %$\"}."
  30774. msgstr ""
  30775. #. type: deftypevr
  30776. #: guix-git/doc/guix.texi:20679
  30777. #, no-wrap
  30778. msgid "{@code{dovecot-configuration} parameter} string mail-location"
  30779. msgstr ""
  30780. #. type: deftypevr
  30781. #: guix-git/doc/guix.texi:20684
  30782. 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."
  30783. msgstr ""
  30784. #. type: deftypevr
  30785. #: guix-git/doc/guix.texi:20690
  30786. 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."
  30787. msgstr ""
  30788. #. type: deftypevr
  30789. #: guix-git/doc/guix.texi:20692
  30790. msgid "There are a few special variables you can use, e.g.:"
  30791. msgstr ""
  30792. #. type: table
  30793. #: guix-git/doc/guix.texi:20696
  30794. msgid "username"
  30795. msgstr ""
  30796. #. type: item
  30797. #: guix-git/doc/guix.texi:20696 guix-git/doc/guix.texi:21195
  30798. #, no-wrap
  30799. msgid "%n"
  30800. msgstr ""
  30801. #. type: table
  30802. #: guix-git/doc/guix.texi:20698
  30803. msgid "user part in user@@domain, same as %u if there's no domain"
  30804. msgstr ""
  30805. #. type: item
  30806. #: guix-git/doc/guix.texi:20698
  30807. #, no-wrap
  30808. msgid "%d"
  30809. msgstr ""
  30810. #. type: table
  30811. #: guix-git/doc/guix.texi:20700
  30812. msgid "domain part in user@@domain, empty if there's no domain"
  30813. msgstr ""
  30814. #. type: item
  30815. #: guix-git/doc/guix.texi:20700
  30816. #, no-wrap
  30817. msgid "%h"
  30818. msgstr ""
  30819. #. type: table
  30820. #: guix-git/doc/guix.texi:20702
  30821. msgid "home director"
  30822. msgstr ""
  30823. #. type: deftypevr
  30824. #: guix-git/doc/guix.texi:20705
  30825. msgid "See doc/wiki/Variables.txt for full list. Some examples:"
  30826. msgstr ""
  30827. #. type: item
  30828. #: guix-git/doc/guix.texi:20706
  30829. #, no-wrap
  30830. msgid "maildir:~/Maildir"
  30831. msgstr ""
  30832. #. type: item
  30833. #: guix-git/doc/guix.texi:20707
  30834. #, no-wrap
  30835. msgid "mbox:~/mail:INBOX=/var/mail/%u"
  30836. msgstr ""
  30837. #. type: item
  30838. #: guix-git/doc/guix.texi:20708
  30839. #, no-wrap
  30840. msgid "mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%"
  30841. msgstr ""
  30842. #. type: deftypevr
  30843. #: guix-git/doc/guix.texi:20713
  30844. #, no-wrap
  30845. msgid "{@code{dovecot-configuration} parameter} string mail-uid"
  30846. msgstr ""
  30847. #. type: deftypevr
  30848. #: guix-git/doc/guix.texi:20718
  30849. 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{\"\"}."
  30850. msgstr ""
  30851. #. type: deftypevr
  30852. #: guix-git/doc/guix.texi:20720
  30853. #, no-wrap
  30854. msgid "{@code{dovecot-configuration} parameter} string mail-gid"
  30855. msgstr ""
  30856. #. type: deftypevr
  30857. #: guix-git/doc/guix.texi:20725
  30858. #, no-wrap
  30859. msgid "{@code{dovecot-configuration} parameter} string mail-privileged-group"
  30860. msgstr ""
  30861. #. type: deftypevr
  30862. #: guix-git/doc/guix.texi:20731
  30863. 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{\"\"}."
  30864. msgstr ""
  30865. #. type: deftypevr
  30866. #: guix-git/doc/guix.texi:20733
  30867. #, no-wrap
  30868. msgid "{@code{dovecot-configuration} parameter} string mail-access-groups"
  30869. msgstr ""
  30870. #. type: deftypevr
  30871. #: guix-git/doc/guix.texi:20741
  30872. 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{\"\"}."
  30873. msgstr ""
  30874. #. type: deftypevr
  30875. #: guix-git/doc/guix.texi:20743
  30876. #, no-wrap
  30877. msgid "{@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?"
  30878. msgstr ""
  30879. #. type: deftypevr
  30880. #: guix-git/doc/guix.texi:20749
  30881. 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}."
  30882. msgstr ""
  30883. #. type: deftypevr
  30884. #: guix-git/doc/guix.texi:20751
  30885. #, no-wrap
  30886. msgid "{@code{dovecot-configuration} parameter} boolean mmap-disable?"
  30887. msgstr ""
  30888. #. type: deftypevr
  30889. #: guix-git/doc/guix.texi:20755
  30890. 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}."
  30891. msgstr ""
  30892. #. type: deftypevr
  30893. #: guix-git/doc/guix.texi:20757
  30894. #, no-wrap
  30895. msgid "{@code{dovecot-configuration} parameter} boolean dotlock-use-excl?"
  30896. msgstr ""
  30897. #. type: deftypevr
  30898. #: guix-git/doc/guix.texi:20762
  30899. 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}."
  30900. msgstr ""
  30901. #. type: deftypevr
  30902. #: guix-git/doc/guix.texi:20764
  30903. #, no-wrap
  30904. msgid "{@code{dovecot-configuration} parameter} string mail-fsync"
  30905. msgstr ""
  30906. #. type: deftypevr
  30907. #: guix-git/doc/guix.texi:20766
  30908. msgid "When to use fsync() or fdatasync() calls:"
  30909. msgstr ""
  30910. #. type: item
  30911. #: guix-git/doc/guix.texi:20767
  30912. #, no-wrap
  30913. msgid "optimized"
  30914. msgstr ""
  30915. #. type: table
  30916. #: guix-git/doc/guix.texi:20769
  30917. msgid "Whenever necessary to avoid losing important data"
  30918. msgstr ""
  30919. #. type: table
  30920. #: guix-git/doc/guix.texi:20771
  30921. msgid "Useful with e.g.@: NFS when @code{write()}s are delayed"
  30922. msgstr ""
  30923. #. type: table
  30924. #: guix-git/doc/guix.texi:20773
  30925. msgid "Never use it (best performance, but crashes can lose data)."
  30926. msgstr ""
  30927. #. type: deftypevr
  30928. #: guix-git/doc/guix.texi:20775
  30929. msgid "Defaults to @samp{\"optimized\"}."
  30930. msgstr ""
  30931. #. type: deftypevr
  30932. #: guix-git/doc/guix.texi:20777
  30933. #, no-wrap
  30934. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-storage?"
  30935. msgstr ""
  30936. #. type: deftypevr
  30937. #: guix-git/doc/guix.texi:20782
  30938. 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}."
  30939. msgstr ""
  30940. #. type: deftypevr
  30941. #: guix-git/doc/guix.texi:20784
  30942. #, no-wrap
  30943. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-index?"
  30944. msgstr ""
  30945. #. type: deftypevr
  30946. #: guix-git/doc/guix.texi:20788
  30947. 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}."
  30948. msgstr ""
  30949. #. type: deftypevr
  30950. #: guix-git/doc/guix.texi:20790
  30951. #, no-wrap
  30952. msgid "{@code{dovecot-configuration} parameter} string lock-method"
  30953. msgstr ""
  30954. #. type: deftypevr
  30955. #: guix-git/doc/guix.texi:20796
  30956. 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\"}."
  30957. msgstr ""
  30958. #. type: deftypevr
  30959. #: guix-git/doc/guix.texi:20798
  30960. #, no-wrap
  30961. msgid "{@code{dovecot-configuration} parameter} file-name mail-temp-dir"
  30962. msgstr ""
  30963. #. type: deftypevr
  30964. #: guix-git/doc/guix.texi:20802
  30965. msgid "Directory in which LDA/LMTP temporarily stores incoming mails >128 kB. Defaults to @samp{\"/tmp\"}."
  30966. msgstr ""
  30967. #. type: deftypevr
  30968. #: guix-git/doc/guix.texi:20804
  30969. #, no-wrap
  30970. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-uid"
  30971. msgstr ""
  30972. #. type: deftypevr
  30973. #: guix-git/doc/guix.texi:20810
  30974. 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}."
  30975. msgstr ""
  30976. #. type: deftypevr
  30977. #: guix-git/doc/guix.texi:20812
  30978. #, no-wrap
  30979. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-uid"
  30980. msgstr ""
  30981. #. type: deftypevr
  30982. #: guix-git/doc/guix.texi:20817
  30983. #, no-wrap
  30984. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-gid"
  30985. msgstr ""
  30986. #. type: deftypevr
  30987. #: guix-git/doc/guix.texi:20822
  30988. 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}."
  30989. msgstr ""
  30990. #. type: deftypevr
  30991. #: guix-git/doc/guix.texi:20824
  30992. #, no-wrap
  30993. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-gid"
  30994. msgstr ""
  30995. #. type: deftypevr
  30996. #: guix-git/doc/guix.texi:20829
  30997. #, no-wrap
  30998. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-max-keyword-length"
  30999. msgstr ""
  31000. #. type: deftypevr
  31001. #: guix-git/doc/guix.texi:20833
  31002. msgid "Maximum allowed length for mail keyword name. It's only forced when trying to create new keywords. Defaults to @samp{50}."
  31003. msgstr ""
  31004. #. type: deftypevr
  31005. #: guix-git/doc/guix.texi:20835
  31006. #, no-wrap
  31007. msgid "{@code{dovecot-configuration} parameter} colon-separated-file-name-list valid-chroot-dirs"
  31008. msgstr ""
  31009. #. type: deftypevr
  31010. #: guix-git/doc/guix.texi:20845
  31011. 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{()}."
  31012. msgstr ""
  31013. #. type: deftypevr
  31014. #: guix-git/doc/guix.texi:20847
  31015. #, no-wrap
  31016. msgid "{@code{dovecot-configuration} parameter} string mail-chroot"
  31017. msgstr ""
  31018. #. type: deftypevr
  31019. #: guix-git/doc/guix.texi:20856
  31020. 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{\"\"}."
  31021. msgstr ""
  31022. #. type: deftypevr
  31023. #: guix-git/doc/guix.texi:20858
  31024. #, no-wrap
  31025. msgid "{@code{dovecot-configuration} parameter} file-name auth-socket-path"
  31026. msgstr ""
  31027. #. type: deftypevr
  31028. #: guix-git/doc/guix.texi:20862
  31029. 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\"}."
  31030. msgstr ""
  31031. #. type: deftypevr
  31032. #: guix-git/doc/guix.texi:20864
  31033. #, no-wrap
  31034. msgid "{@code{dovecot-configuration} parameter} file-name mail-plugin-dir"
  31035. msgstr ""
  31036. #. type: deftypevr
  31037. #: guix-git/doc/guix.texi:20867
  31038. msgid "Directory where to look up mail plugins. Defaults to @samp{\"/usr/lib/dovecot\"}."
  31039. msgstr ""
  31040. #. type: deftypevr
  31041. #: guix-git/doc/guix.texi:20869
  31042. #, no-wrap
  31043. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mail-plugins"
  31044. msgstr ""
  31045. #. type: deftypevr
  31046. #: guix-git/doc/guix.texi:20873
  31047. 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{()}."
  31048. msgstr ""
  31049. #. type: deftypevr
  31050. #: guix-git/doc/guix.texi:20875
  31051. #, no-wrap
  31052. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-cache-min-mail-count"
  31053. msgstr ""
  31054. #. type: deftypevr
  31055. #: guix-git/doc/guix.texi:20880
  31056. 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}."
  31057. msgstr ""
  31058. #. type: deftypevr
  31059. #: guix-git/doc/guix.texi:20882
  31060. #, no-wrap
  31061. msgid "{@code{dovecot-configuration} parameter} string mailbox-idle-check-interval"
  31062. msgstr ""
  31063. #. type: deftypevr
  31064. #: guix-git/doc/guix.texi:20889
  31065. 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\"}."
  31066. msgstr ""
  31067. #. type: deftypevr
  31068. #: guix-git/doc/guix.texi:20891
  31069. #, no-wrap
  31070. msgid "{@code{dovecot-configuration} parameter} boolean mail-save-crlf?"
  31071. msgstr ""
  31072. #. type: deftypevr
  31073. #: guix-git/doc/guix.texi:20898
  31074. 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}."
  31075. msgstr ""
  31076. #. type: deftypevr
  31077. #: guix-git/doc/guix.texi:20900
  31078. #, no-wrap
  31079. msgid "{@code{dovecot-configuration} parameter} boolean maildir-stat-dirs?"
  31080. msgstr ""
  31081. #. type: deftypevr
  31082. #: guix-git/doc/guix.texi:20908
  31083. 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}."
  31084. msgstr ""
  31085. #. type: deftypevr
  31086. #: guix-git/doc/guix.texi:20910
  31087. #, no-wrap
  31088. msgid "{@code{dovecot-configuration} parameter} boolean maildir-copy-with-hardlinks?"
  31089. msgstr ""
  31090. #. type: deftypevr
  31091. #: guix-git/doc/guix.texi:20915
  31092. 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}."
  31093. msgstr ""
  31094. #. type: deftypevr
  31095. #: guix-git/doc/guix.texi:20917
  31096. #, no-wrap
  31097. msgid "{@code{dovecot-configuration} parameter} boolean maildir-very-dirty-syncs?"
  31098. msgstr ""
  31099. #. type: deftypevr
  31100. #: guix-git/doc/guix.texi:20922
  31101. 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}."
  31102. msgstr ""
  31103. #. type: deftypevr
  31104. #: guix-git/doc/guix.texi:20924
  31105. #, no-wrap
  31106. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-read-locks"
  31107. msgstr ""
  31108. #. type: deftypevr
  31109. #: guix-git/doc/guix.texi:20927
  31110. msgid "Which locking methods to use for locking mbox. There are four available:"
  31111. msgstr ""
  31112. #. type: item
  31113. #: guix-git/doc/guix.texi:20929
  31114. #, no-wrap
  31115. msgid "dotlock"
  31116. msgstr ""
  31117. #. type: table
  31118. #: guix-git/doc/guix.texi:20933
  31119. 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."
  31120. msgstr ""
  31121. #. type: item
  31122. #: guix-git/doc/guix.texi:20933
  31123. #, no-wrap
  31124. msgid "dotlock-try"
  31125. msgstr ""
  31126. #. type: table
  31127. #: guix-git/doc/guix.texi:20936
  31128. msgid "Same as dotlock, but if it fails because of permissions or because there isn't enough disk space, just skip it."
  31129. msgstr ""
  31130. #. type: item
  31131. #: guix-git/doc/guix.texi:20936
  31132. #, no-wrap
  31133. msgid "fcntl"
  31134. msgstr ""
  31135. #. type: table
  31136. #: guix-git/doc/guix.texi:20938
  31137. msgid "Use this if possible. Works with NFS too if lockd is used."
  31138. msgstr ""
  31139. #. type: item
  31140. #: guix-git/doc/guix.texi:20938
  31141. #, no-wrap
  31142. msgid "flock"
  31143. msgstr ""
  31144. #. type: table
  31145. #: guix-git/doc/guix.texi:20940 guix-git/doc/guix.texi:20942
  31146. msgid "May not exist in all systems. Doesn't work with NFS."
  31147. msgstr ""
  31148. #. type: item
  31149. #: guix-git/doc/guix.texi:20940
  31150. #, no-wrap
  31151. msgid "lockf"
  31152. msgstr ""
  31153. #. type: deftypevr
  31154. #: guix-git/doc/guix.texi:20948
  31155. 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."
  31156. msgstr ""
  31157. #. type: deftypevr
  31158. #: guix-git/doc/guix.texi:20950
  31159. #, no-wrap
  31160. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-write-locks"
  31161. msgstr ""
  31162. #. type: deftypevr
  31163. #: guix-git/doc/guix.texi:20954
  31164. #, no-wrap
  31165. msgid "{@code{dovecot-configuration} parameter} string mbox-lock-timeout"
  31166. msgstr ""
  31167. #. type: deftypevr
  31168. #: guix-git/doc/guix.texi:20957
  31169. msgid "Maximum time to wait for lock (all of them) before aborting. Defaults to @samp{\"5 mins\"}."
  31170. msgstr ""
  31171. #. type: deftypevr
  31172. #: guix-git/doc/guix.texi:20959
  31173. #, no-wrap
  31174. msgid "{@code{dovecot-configuration} parameter} string mbox-dotlock-change-timeout"
  31175. msgstr ""
  31176. #. type: deftypevr
  31177. #: guix-git/doc/guix.texi:20963
  31178. 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\"}."
  31179. msgstr ""
  31180. #. type: deftypevr
  31181. #: guix-git/doc/guix.texi:20965
  31182. #, no-wrap
  31183. msgid "{@code{dovecot-configuration} parameter} boolean mbox-dirty-syncs?"
  31184. msgstr ""
  31185. #. type: deftypevr
  31186. #: guix-git/doc/guix.texi:20976
  31187. 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}."
  31188. msgstr ""
  31189. #. type: deftypevr
  31190. #: guix-git/doc/guix.texi:20978
  31191. #, no-wrap
  31192. msgid "{@code{dovecot-configuration} parameter} boolean mbox-very-dirty-syncs?"
  31193. msgstr ""
  31194. #. type: deftypevr
  31195. #: guix-git/doc/guix.texi:20983
  31196. 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}."
  31197. msgstr ""
  31198. #. type: deftypevr
  31199. #: guix-git/doc/guix.texi:20985
  31200. #, no-wrap
  31201. msgid "{@code{dovecot-configuration} parameter} boolean mbox-lazy-writes?"
  31202. msgstr ""
  31203. #. type: deftypevr
  31204. #: guix-git/doc/guix.texi:20991
  31205. 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}."
  31206. msgstr ""
  31207. #. type: deftypevr
  31208. #: guix-git/doc/guix.texi:20993
  31209. #, no-wrap
  31210. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mbox-min-index-size"
  31211. msgstr ""
  31212. #. type: deftypevr
  31213. #: guix-git/doc/guix.texi:20998
  31214. 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}."
  31215. msgstr ""
  31216. #. type: deftypevr
  31217. #: guix-git/doc/guix.texi:21000
  31218. #, no-wrap
  31219. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mdbox-rotate-size"
  31220. msgstr ""
  31221. #. type: deftypevr
  31222. #: guix-git/doc/guix.texi:21003
  31223. msgid "Maximum dbox file size until it's rotated. Defaults to @samp{10000000}."
  31224. msgstr ""
  31225. #. type: deftypevr
  31226. #: guix-git/doc/guix.texi:21005
  31227. #, no-wrap
  31228. msgid "{@code{dovecot-configuration} parameter} string mdbox-rotate-interval"
  31229. msgstr ""
  31230. #. type: deftypevr
  31231. #: guix-git/doc/guix.texi:21010
  31232. 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\"}."
  31233. msgstr ""
  31234. #. type: deftypevr
  31235. #: guix-git/doc/guix.texi:21012
  31236. #, no-wrap
  31237. msgid "{@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space?"
  31238. msgstr ""
  31239. #. type: deftypevr
  31240. #: guix-git/doc/guix.texi:21017
  31241. 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}."
  31242. msgstr ""
  31243. #. type: deftypevr
  31244. #: guix-git/doc/guix.texi:21019
  31245. #, no-wrap
  31246. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-dir"
  31247. msgstr ""
  31248. #. type: deftypevr
  31249. #: guix-git/doc/guix.texi:21023
  31250. 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."
  31251. msgstr ""
  31252. #. type: deftypevr
  31253. #: guix-git/doc/guix.texi:21025
  31254. msgid "WARNING: This feature hasn't been tested much yet. Use at your own risk."
  31255. msgstr ""
  31256. #. type: deftypevr
  31257. #: guix-git/doc/guix.texi:21028
  31258. msgid "Directory root where to store mail attachments. Disabled, if empty. Defaults to @samp{\"\"}."
  31259. msgstr ""
  31260. #. type: deftypevr
  31261. #: guix-git/doc/guix.texi:21030
  31262. #, no-wrap
  31263. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-attachment-min-size"
  31264. msgstr ""
  31265. #. type: deftypevr
  31266. #: guix-git/doc/guix.texi:21035
  31267. 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}."
  31268. msgstr ""
  31269. #. type: deftypevr
  31270. #: guix-git/doc/guix.texi:21037
  31271. #, no-wrap
  31272. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-fs"
  31273. msgstr ""
  31274. #. type: deftypevr
  31275. #: guix-git/doc/guix.texi:21039
  31276. msgid "File system backend to use for saving attachments:"
  31277. msgstr ""
  31278. #. type: item
  31279. #: guix-git/doc/guix.texi:21040
  31280. #, no-wrap
  31281. msgid "posix"
  31282. msgstr ""
  31283. #. type: table
  31284. #: guix-git/doc/guix.texi:21042
  31285. msgid "No SiS done by Dovecot (but this might help FS's own deduplication)"
  31286. msgstr ""
  31287. #. type: item
  31288. #: guix-git/doc/guix.texi:21042
  31289. #, no-wrap
  31290. msgid "sis posix"
  31291. msgstr ""
  31292. #. type: table
  31293. #: guix-git/doc/guix.texi:21044
  31294. msgid "SiS with immediate byte-by-byte comparison during saving"
  31295. msgstr ""
  31296. #. type: item
  31297. #: guix-git/doc/guix.texi:21044
  31298. #, no-wrap
  31299. msgid "sis-queue posix"
  31300. msgstr ""
  31301. #. type: table
  31302. #: guix-git/doc/guix.texi:21046
  31303. msgid "SiS with delayed comparison and deduplication."
  31304. msgstr ""
  31305. #. type: deftypevr
  31306. #: guix-git/doc/guix.texi:21048
  31307. msgid "Defaults to @samp{\"sis posix\"}."
  31308. msgstr ""
  31309. #. type: deftypevr
  31310. #: guix-git/doc/guix.texi:21050
  31311. #, no-wrap
  31312. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-hash"
  31313. msgstr ""
  31314. #. type: deftypevr
  31315. #: guix-git/doc/guix.texi:21056
  31316. 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@}\"}."
  31317. msgstr ""
  31318. #. type: deftypevr
  31319. #: guix-git/doc/guix.texi:21058
  31320. #, no-wrap
  31321. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-process-limit"
  31322. msgstr ""
  31323. #. type: deftypevr
  31324. #: guix-git/doc/guix.texi:21063
  31325. #, no-wrap
  31326. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-client-limit"
  31327. msgstr ""
  31328. #. type: deftypevr
  31329. #: guix-git/doc/guix.texi:21066 guix-git/doc/guix.texi:28386
  31330. msgid "Defaults to @samp{1000}."
  31331. msgstr ""
  31332. #. type: deftypevr
  31333. #: guix-git/doc/guix.texi:21068
  31334. #, no-wrap
  31335. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-vsz-limit"
  31336. msgstr ""
  31337. #. type: deftypevr
  31338. #: guix-git/doc/guix.texi:21073
  31339. 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}."
  31340. msgstr ""
  31341. #. type: deftypevr
  31342. #: guix-git/doc/guix.texi:21075
  31343. #, no-wrap
  31344. msgid "{@code{dovecot-configuration} parameter} string default-login-user"
  31345. msgstr ""
  31346. #. type: deftypevr
  31347. #: guix-git/doc/guix.texi:21080
  31348. 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\"}."
  31349. msgstr ""
  31350. #. type: deftypevr
  31351. #: guix-git/doc/guix.texi:21082
  31352. #, no-wrap
  31353. msgid "{@code{dovecot-configuration} parameter} string default-internal-user"
  31354. msgstr ""
  31355. #. type: deftypevr
  31356. #: guix-git/doc/guix.texi:21087
  31357. 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\"}."
  31358. msgstr ""
  31359. #. type: deftypevr
  31360. #: guix-git/doc/guix.texi:21089
  31361. #, no-wrap
  31362. msgid "{@code{dovecot-configuration} parameter} string ssl?"
  31363. msgstr ""
  31364. #. type: deftypevr
  31365. #: guix-git/doc/guix.texi:21092
  31366. msgid "SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>. Defaults to @samp{\"required\"}."
  31367. msgstr ""
  31368. #. type: deftypevr
  31369. #: guix-git/doc/guix.texi:21094
  31370. #, no-wrap
  31371. msgid "{@code{dovecot-configuration} parameter} string ssl-cert"
  31372. msgstr ""
  31373. #. type: deftypevr
  31374. #: guix-git/doc/guix.texi:21097
  31375. msgid "PEM encoded X.509 SSL/TLS certificate (public key). Defaults to @samp{\"</etc/dovecot/default.pem\"}."
  31376. msgstr ""
  31377. #. type: deftypevr
  31378. #: guix-git/doc/guix.texi:21099
  31379. #, no-wrap
  31380. msgid "{@code{dovecot-configuration} parameter} string ssl-key"
  31381. msgstr ""
  31382. #. type: deftypevr
  31383. #: guix-git/doc/guix.texi:21104
  31384. 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\"}."
  31385. msgstr ""
  31386. #. type: deftypevr
  31387. #: guix-git/doc/guix.texi:21106
  31388. #, no-wrap
  31389. msgid "{@code{dovecot-configuration} parameter} string ssl-key-password"
  31390. msgstr ""
  31391. #. type: deftypevr
  31392. #: guix-git/doc/guix.texi:21112
  31393. 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{\"\"}."
  31394. msgstr ""
  31395. #. type: deftypevr
  31396. #: guix-git/doc/guix.texi:21114
  31397. #, no-wrap
  31398. msgid "{@code{dovecot-configuration} parameter} string ssl-ca"
  31399. msgstr ""
  31400. #. type: deftypevr
  31401. #: guix-git/doc/guix.texi:21120
  31402. 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{\"\"}."
  31403. msgstr ""
  31404. #. type: deftypevr
  31405. #: guix-git/doc/guix.texi:21122
  31406. #, no-wrap
  31407. msgid "{@code{dovecot-configuration} parameter} boolean ssl-require-crl?"
  31408. msgstr ""
  31409. #. type: deftypevr
  31410. #: guix-git/doc/guix.texi:21125
  31411. msgid "Require that CRL check succeeds for client certificates. Defaults to @samp{#t}."
  31412. msgstr ""
  31413. #. type: deftypevr
  31414. #: guix-git/doc/guix.texi:21127
  31415. #, no-wrap
  31416. msgid "{@code{dovecot-configuration} parameter} boolean ssl-verify-client-cert?"
  31417. msgstr ""
  31418. #. type: deftypevr
  31419. #: guix-git/doc/guix.texi:21131
  31420. 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}."
  31421. msgstr ""
  31422. #. type: deftypevr
  31423. #: guix-git/doc/guix.texi:21133
  31424. #, no-wrap
  31425. msgid "{@code{dovecot-configuration} parameter} string ssl-cert-username-field"
  31426. msgstr ""
  31427. #. type: deftypevr
  31428. #: guix-git/doc/guix.texi:21138
  31429. 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\"}."
  31430. msgstr ""
  31431. #. type: deftypevr
  31432. #: guix-git/doc/guix.texi:21140
  31433. #, no-wrap
  31434. msgid "{@code{dovecot-configuration} parameter} string ssl-min-protocol"
  31435. msgstr ""
  31436. #. type: deftypevr
  31437. #: guix-git/doc/guix.texi:21143
  31438. msgid "Minimum SSL protocol version to accept. Defaults to @samp{\"TLSv1\"}."
  31439. msgstr ""
  31440. #. type: deftypevr
  31441. #: guix-git/doc/guix.texi:21145
  31442. #, no-wrap
  31443. msgid "{@code{dovecot-configuration} parameter} string ssl-cipher-list"
  31444. msgstr ""
  31445. #. type: deftypevr
  31446. #: guix-git/doc/guix.texi:21148
  31447. msgid "SSL ciphers to use. Defaults to @samp{\"ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@@STRENGTH\"}."
  31448. msgstr ""
  31449. #. type: deftypevr
  31450. #: guix-git/doc/guix.texi:21150
  31451. #, no-wrap
  31452. msgid "{@code{dovecot-configuration} parameter} string ssl-crypto-device"
  31453. msgstr ""
  31454. #. type: deftypevr
  31455. #: guix-git/doc/guix.texi:21153
  31456. msgid "SSL crypto device to use, for valid values run \"openssl engine\". Defaults to @samp{\"\"}."
  31457. msgstr ""
  31458. #. type: deftypevr
  31459. #: guix-git/doc/guix.texi:21155
  31460. #, no-wrap
  31461. msgid "{@code{dovecot-configuration} parameter} string postmaster-address"
  31462. msgstr ""
  31463. #. type: deftypevr
  31464. #: guix-git/doc/guix.texi:21159
  31465. msgid "Address to use when sending rejection mails. %d expands to recipient domain. Defaults to @samp{\"postmaster@@%d\"}."
  31466. msgstr ""
  31467. #. type: deftypevr
  31468. #: guix-git/doc/guix.texi:21161
  31469. #, no-wrap
  31470. msgid "{@code{dovecot-configuration} parameter} string hostname"
  31471. msgstr ""
  31472. #. type: deftypevr
  31473. #: guix-git/doc/guix.texi:21165
  31474. 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{\"\"}."
  31475. msgstr ""
  31476. #. type: deftypevr
  31477. #: guix-git/doc/guix.texi:21167
  31478. #, no-wrap
  31479. msgid "{@code{dovecot-configuration} parameter} boolean quota-full-tempfail?"
  31480. msgstr ""
  31481. #. type: deftypevr
  31482. #: guix-git/doc/guix.texi:21171
  31483. msgid "If user is over quota, return with temporary failure instead of bouncing the mail. Defaults to @samp{#f}."
  31484. msgstr ""
  31485. #. type: deftypevr
  31486. #: guix-git/doc/guix.texi:21173
  31487. #, no-wrap
  31488. msgid "{@code{dovecot-configuration} parameter} file-name sendmail-path"
  31489. msgstr ""
  31490. #. type: deftypevr
  31491. #: guix-git/doc/guix.texi:21176
  31492. msgid "Binary to use for sending mails. Defaults to @samp{\"/usr/sbin/sendmail\"}."
  31493. msgstr ""
  31494. #. type: deftypevr
  31495. #: guix-git/doc/guix.texi:21178
  31496. #, no-wrap
  31497. msgid "{@code{dovecot-configuration} parameter} string submission-host"
  31498. msgstr ""
  31499. #. type: deftypevr
  31500. #: guix-git/doc/guix.texi:21182
  31501. msgid "If non-empty, send mails via this SMTP host[:port] instead of sendmail. Defaults to @samp{\"\"}."
  31502. msgstr ""
  31503. #. type: deftypevr
  31504. #: guix-git/doc/guix.texi:21184
  31505. #, no-wrap
  31506. msgid "{@code{dovecot-configuration} parameter} string rejection-subject"
  31507. msgstr ""
  31508. #. type: deftypevr
  31509. #: guix-git/doc/guix.texi:21188
  31510. 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\"}."
  31511. msgstr ""
  31512. #. type: deftypevr
  31513. #: guix-git/doc/guix.texi:21190
  31514. #, no-wrap
  31515. msgid "{@code{dovecot-configuration} parameter} string rejection-reason"
  31516. msgstr ""
  31517. #. type: deftypevr
  31518. #: guix-git/doc/guix.texi:21193
  31519. msgid "Human readable error message for rejection mails. You can use variables:"
  31520. msgstr ""
  31521. #. type: table
  31522. #: guix-git/doc/guix.texi:21197
  31523. msgid "CRLF"
  31524. msgstr ""
  31525. #. type: item
  31526. #: guix-git/doc/guix.texi:21197
  31527. #, no-wrap
  31528. msgid "%r"
  31529. msgstr ""
  31530. #. type: table
  31531. #: guix-git/doc/guix.texi:21199
  31532. msgid "reason"
  31533. msgstr ""
  31534. #. type: table
  31535. #: guix-git/doc/guix.texi:21201
  31536. msgid "original subject"
  31537. msgstr ""
  31538. #. type: item
  31539. #: guix-git/doc/guix.texi:21201
  31540. #, no-wrap
  31541. msgid "%t"
  31542. msgstr ""
  31543. #. type: table
  31544. #: guix-git/doc/guix.texi:21203
  31545. msgid "recipient"
  31546. msgstr ""
  31547. #. type: deftypevr
  31548. #: guix-git/doc/guix.texi:21205
  31549. msgid "Defaults to @samp{\"Your message to <%t> was automatically rejected:%n%r\"}."
  31550. msgstr ""
  31551. #. type: deftypevr
  31552. #: guix-git/doc/guix.texi:21207
  31553. #, no-wrap
  31554. msgid "{@code{dovecot-configuration} parameter} string recipient-delimiter"
  31555. msgstr ""
  31556. #. type: deftypevr
  31557. #: guix-git/doc/guix.texi:21211
  31558. msgid "Delimiter character between local-part and detail in email address. Defaults to @samp{\"+\"}."
  31559. msgstr ""
  31560. #. type: deftypevr
  31561. #: guix-git/doc/guix.texi:21213
  31562. #, no-wrap
  31563. msgid "{@code{dovecot-configuration} parameter} string lda-original-recipient-header"
  31564. msgstr ""
  31565. #. type: deftypevr
  31566. #: guix-git/doc/guix.texi:21219
  31567. 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{\"\"}."
  31568. msgstr ""
  31569. #. type: deftypevr
  31570. #: guix-git/doc/guix.texi:21221
  31571. #, no-wrap
  31572. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autocreate?"
  31573. msgstr ""
  31574. #. type: deftypevr
  31575. #: guix-git/doc/guix.texi:21225
  31576. msgid "Should saving a mail to a nonexistent mailbox automatically create it?. Defaults to @samp{#f}."
  31577. msgstr ""
  31578. #. type: deftypevr
  31579. #: guix-git/doc/guix.texi:21227
  31580. #, no-wrap
  31581. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autosubscribe?"
  31582. msgstr ""
  31583. #. type: deftypevr
  31584. #: guix-git/doc/guix.texi:21231
  31585. msgid "Should automatically created mailboxes be also automatically subscribed?. Defaults to @samp{#f}."
  31586. msgstr ""
  31587. #. type: deftypevr
  31588. #: guix-git/doc/guix.texi:21233
  31589. #, no-wrap
  31590. msgid "{@code{dovecot-configuration} parameter} non-negative-integer imap-max-line-length"
  31591. msgstr ""
  31592. #. type: deftypevr
  31593. #: guix-git/doc/guix.texi:21239
  31594. 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}."
  31595. msgstr ""
  31596. #. type: deftypevr
  31597. #: guix-git/doc/guix.texi:21241
  31598. #, no-wrap
  31599. msgid "{@code{dovecot-configuration} parameter} string imap-logout-format"
  31600. msgstr ""
  31601. #. type: deftypevr
  31602. #: guix-git/doc/guix.texi:21243
  31603. msgid "IMAP logout format string:"
  31604. msgstr ""
  31605. #. type: item
  31606. #: guix-git/doc/guix.texi:21244
  31607. #, no-wrap
  31608. msgid "%i"
  31609. msgstr ""
  31610. #. type: table
  31611. #: guix-git/doc/guix.texi:21246
  31612. msgid "total number of bytes read from client"
  31613. msgstr ""
  31614. #. type: item
  31615. #: guix-git/doc/guix.texi:21246
  31616. #, no-wrap
  31617. msgid "%o"
  31618. msgstr ""
  31619. #. type: table
  31620. #: guix-git/doc/guix.texi:21248
  31621. msgid "total number of bytes sent to client."
  31622. msgstr ""
  31623. #. type: deftypevr
  31624. #: guix-git/doc/guix.texi:21251
  31625. 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@}\"}."
  31626. msgstr ""
  31627. #. type: deftypevr
  31628. #: guix-git/doc/guix.texi:21253
  31629. #, no-wrap
  31630. msgid "{@code{dovecot-configuration} parameter} string imap-capability"
  31631. msgstr ""
  31632. #. type: deftypevr
  31633. #: guix-git/doc/guix.texi:21257
  31634. 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{\"\"}."
  31635. msgstr ""
  31636. #. type: deftypevr
  31637. #: guix-git/doc/guix.texi:21259
  31638. #, no-wrap
  31639. msgid "{@code{dovecot-configuration} parameter} string imap-idle-notify-interval"
  31640. msgstr ""
  31641. #. type: deftypevr
  31642. #: guix-git/doc/guix.texi:21263
  31643. msgid "How long to wait between \"OK Still here\" notifications when client is IDLEing. Defaults to @samp{\"2 mins\"}."
  31644. msgstr ""
  31645. #. type: deftypevr
  31646. #: guix-git/doc/guix.texi:21265
  31647. #, no-wrap
  31648. msgid "{@code{dovecot-configuration} parameter} string imap-id-send"
  31649. msgstr ""
  31650. #. type: deftypevr
  31651. #: guix-git/doc/guix.texi:21271
  31652. 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{\"\"}."
  31653. msgstr ""
  31654. #. type: deftypevr
  31655. #: guix-git/doc/guix.texi:21273
  31656. #, no-wrap
  31657. msgid "{@code{dovecot-configuration} parameter} string imap-id-log"
  31658. msgstr ""
  31659. #. type: deftypevr
  31660. #: guix-git/doc/guix.texi:21276
  31661. msgid "ID fields sent by client to log. * means everything. Defaults to @samp{\"\"}."
  31662. msgstr ""
  31663. #. type: deftypevr
  31664. #: guix-git/doc/guix.texi:21278
  31665. #, no-wrap
  31666. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list imap-client-workarounds"
  31667. msgstr ""
  31668. #. type: deftypevr
  31669. #: guix-git/doc/guix.texi:21280
  31670. msgid "Workarounds for various client bugs:"
  31671. msgstr ""
  31672. #. type: item
  31673. #: guix-git/doc/guix.texi:21282
  31674. #, no-wrap
  31675. msgid "delay-newmail"
  31676. msgstr ""
  31677. #. type: table
  31678. #: guix-git/doc/guix.texi:21289
  31679. 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\"."
  31680. msgstr ""
  31681. #. type: item
  31682. #: guix-git/doc/guix.texi:21290
  31683. #, no-wrap
  31684. msgid "tb-extra-mailbox-sep"
  31685. msgstr ""
  31686. #. type: table
  31687. #: guix-git/doc/guix.texi:21294
  31688. 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."
  31689. msgstr ""
  31690. #. type: item
  31691. #: guix-git/doc/guix.texi:21295
  31692. #, no-wrap
  31693. msgid "tb-lsub-flags"
  31694. msgstr ""
  31695. #. type: table
  31696. #: guix-git/doc/guix.texi:21299
  31697. 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."
  31698. msgstr ""
  31699. #. type: deftypevr
  31700. #: guix-git/doc/guix.texi:21303
  31701. #, no-wrap
  31702. msgid "{@code{dovecot-configuration} parameter} string imap-urlauth-host"
  31703. msgstr ""
  31704. #. type: deftypevr
  31705. #: guix-git/doc/guix.texi:21306
  31706. msgid "Host allowed in URLAUTH URLs sent by client. \"*\" allows all. Defaults to @samp{\"\"}."
  31707. msgstr ""
  31708. #. type: Plain text
  31709. #: guix-git/doc/guix.texi:21314
  31710. 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."
  31711. msgstr ""
  31712. #. type: Plain text
  31713. #: guix-git/doc/guix.texi:21320
  31714. 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."
  31715. msgstr ""
  31716. #. type: Plain text
  31717. #: guix-git/doc/guix.texi:21322
  31718. msgid "Available @code{opaque-dovecot-configuration} fields are:"
  31719. msgstr ""
  31720. #. type: deftypevr
  31721. #: guix-git/doc/guix.texi:21323
  31722. #, no-wrap
  31723. msgid "{@code{opaque-dovecot-configuration} parameter} package dovecot"
  31724. msgstr ""
  31725. #. type: deftypevr
  31726. #: guix-git/doc/guix.texi:21327
  31727. #, no-wrap
  31728. msgid "{@code{opaque-dovecot-configuration} parameter} string string"
  31729. msgstr ""
  31730. #. type: deftypevr
  31731. #: guix-git/doc/guix.texi:21329
  31732. msgid "The contents of the @code{dovecot.conf}, as a string."
  31733. msgstr ""
  31734. #. type: Plain text
  31735. #: guix-git/doc/guix.texi:21333
  31736. msgid "For example, if your @code{dovecot.conf} is just the empty string, you could instantiate a dovecot service like this:"
  31737. msgstr ""
  31738. #. type: lisp
  31739. #: guix-git/doc/guix.texi:21338
  31740. #, no-wrap
  31741. msgid ""
  31742. "(dovecot-service #:config\n"
  31743. " (opaque-dovecot-configuration\n"
  31744. " (string \"\")))\n"
  31745. msgstr ""
  31746. #. type: subsubheading
  31747. #: guix-git/doc/guix.texi:21340
  31748. #, no-wrap
  31749. msgid "OpenSMTPD Service"
  31750. msgstr ""
  31751. #. type: deffn
  31752. #: guix-git/doc/guix.texi:21342
  31753. #, no-wrap
  31754. msgid "{Scheme Variable} opensmtpd-service-type"
  31755. msgstr ""
  31756. #. type: deffn
  31757. #: guix-git/doc/guix.texi:21346
  31758. 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:"
  31759. msgstr ""
  31760. #. type: lisp
  31761. #: guix-git/doc/guix.texi:21351
  31762. #, no-wrap
  31763. msgid ""
  31764. "(service opensmtpd-service-type\n"
  31765. " (opensmtpd-configuration\n"
  31766. " (config-file (local-file \"./my-smtpd.conf\"))))\n"
  31767. msgstr ""
  31768. #. type: deftp
  31769. #: guix-git/doc/guix.texi:21354
  31770. #, no-wrap
  31771. msgid "{Data Type} opensmtpd-configuration"
  31772. msgstr ""
  31773. #. type: deftp
  31774. #: guix-git/doc/guix.texi:21356
  31775. msgid "Data type representing the configuration of opensmtpd."
  31776. msgstr ""
  31777. #. type: item
  31778. #: guix-git/doc/guix.texi:21358
  31779. #, no-wrap
  31780. msgid "@code{package} (default: @var{opensmtpd})"
  31781. msgstr ""
  31782. #. type: table
  31783. #: guix-git/doc/guix.texi:21360
  31784. msgid "Package object of the OpenSMTPD SMTP server."
  31785. msgstr ""
  31786. #. type: item
  31787. #: guix-git/doc/guix.texi:21361
  31788. #, fuzzy, no-wrap
  31789. msgid "@code{config-file} (default: @code{%default-opensmtpd-file})"
  31790. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  31791. #. type: table
  31792. #: guix-git/doc/guix.texi:21366
  31793. 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."
  31794. msgstr ""
  31795. #. type: subsubheading
  31796. #: guix-git/doc/guix.texi:21370
  31797. #, no-wrap
  31798. msgid "Exim Service"
  31799. msgstr ""
  31800. #. type: cindex
  31801. #: guix-git/doc/guix.texi:21372
  31802. #, no-wrap
  31803. msgid "mail transfer agent (MTA)"
  31804. msgstr ""
  31805. #. type: cindex
  31806. #: guix-git/doc/guix.texi:21373
  31807. #, no-wrap
  31808. msgid "MTA (mail transfer agent)"
  31809. msgstr ""
  31810. #. type: cindex
  31811. #: guix-git/doc/guix.texi:21374
  31812. #, no-wrap
  31813. msgid "SMTP"
  31814. msgstr ""
  31815. #. type: deffn
  31816. #: guix-git/doc/guix.texi:21376
  31817. #, no-wrap
  31818. msgid "{Scheme Variable} exim-service-type"
  31819. msgstr ""
  31820. #. type: deffn
  31821. #: guix-git/doc/guix.texi:21380
  31822. 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:"
  31823. msgstr ""
  31824. #. type: lisp
  31825. #: guix-git/doc/guix.texi:21385
  31826. #, no-wrap
  31827. msgid ""
  31828. "(service exim-service-type\n"
  31829. " (exim-configuration\n"
  31830. " (config-file (local-file \"./my-exim.conf\"))))\n"
  31831. msgstr ""
  31832. #. type: Plain text
  31833. #: guix-git/doc/guix.texi:21391
  31834. 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)."
  31835. msgstr ""
  31836. #. type: deftp
  31837. #: guix-git/doc/guix.texi:21392
  31838. #, no-wrap
  31839. msgid "{Data Type} exim-configuration"
  31840. msgstr ""
  31841. #. type: deftp
  31842. #: guix-git/doc/guix.texi:21394
  31843. msgid "Data type representing the configuration of exim."
  31844. msgstr ""
  31845. #. type: item
  31846. #: guix-git/doc/guix.texi:21396
  31847. #, no-wrap
  31848. msgid "@code{package} (default: @var{exim})"
  31849. msgstr ""
  31850. #. type: table
  31851. #: guix-git/doc/guix.texi:21398
  31852. msgid "Package object of the Exim server."
  31853. msgstr ""
  31854. #. type: table
  31855. #: guix-git/doc/guix.texi:21405
  31856. 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."
  31857. msgstr ""
  31858. #. type: subsubheading
  31859. #: guix-git/doc/guix.texi:21409
  31860. #, fuzzy, no-wrap
  31861. msgid "Getmail service"
  31862. msgstr "邮件服务"
  31863. #. type: cindex
  31864. #: guix-git/doc/guix.texi:21411
  31865. #, no-wrap
  31866. msgid "IMAP"
  31867. msgstr ""
  31868. #. type: cindex
  31869. #: guix-git/doc/guix.texi:21412
  31870. #, no-wrap
  31871. msgid "POP"
  31872. msgstr ""
  31873. #. type: deffn
  31874. #: guix-git/doc/guix.texi:21414
  31875. #, no-wrap
  31876. msgid "{Scheme Variable} getmail-service-type"
  31877. msgstr ""
  31878. #. type: deffn
  31879. #: guix-git/doc/guix.texi:21417
  31880. msgid "This is the type of the @uref{http://pyropus.ca/software/getmail/, Getmail} mail retriever, whose value should be an @code{getmail-configuration}."
  31881. msgstr ""
  31882. #. type: Plain text
  31883. #: guix-git/doc/guix.texi:21420
  31884. msgid "Available @code{getmail-configuration} fields are:"
  31885. msgstr ""
  31886. #. type: deftypevr
  31887. #: guix-git/doc/guix.texi:21421
  31888. #, no-wrap
  31889. msgid "{@code{getmail-configuration} parameter} symbol name"
  31890. msgstr ""
  31891. #. type: deftypevr
  31892. #: guix-git/doc/guix.texi:21423
  31893. msgid "A symbol to identify the getmail service."
  31894. msgstr ""
  31895. #. type: deftypevr
  31896. #: guix-git/doc/guix.texi:21425
  31897. msgid "Defaults to @samp{\"unset\"}."
  31898. msgstr ""
  31899. #. type: deftypevr
  31900. #: guix-git/doc/guix.texi:21428
  31901. #, no-wrap
  31902. msgid "{@code{getmail-configuration} parameter} package package"
  31903. msgstr ""
  31904. #. type: deftypevr
  31905. #: guix-git/doc/guix.texi:21430
  31906. #, fuzzy
  31907. msgid "The getmail package to use."
  31908. msgstr "软件包数据类型。"
  31909. #. type: deftypevr
  31910. #: guix-git/doc/guix.texi:21433
  31911. #, no-wrap
  31912. msgid "{@code{getmail-configuration} parameter} string user"
  31913. msgstr ""
  31914. #. type: deftypevr
  31915. #: guix-git/doc/guix.texi:21435
  31916. msgid "The user to run getmail as."
  31917. msgstr ""
  31918. #. type: deftypevr
  31919. #: guix-git/doc/guix.texi:21437 guix-git/doc/guix.texi:21444
  31920. msgid "Defaults to @samp{\"getmail\"}."
  31921. msgstr ""
  31922. #. type: deftypevr
  31923. #: guix-git/doc/guix.texi:21440
  31924. #, no-wrap
  31925. msgid "{@code{getmail-configuration} parameter} string group"
  31926. msgstr ""
  31927. #. type: deftypevr
  31928. #: guix-git/doc/guix.texi:21442
  31929. msgid "The group to run getmail as."
  31930. msgstr ""
  31931. #. type: deftypevr
  31932. #: guix-git/doc/guix.texi:21447
  31933. #, no-wrap
  31934. msgid "{@code{getmail-configuration} parameter} string directory"
  31935. msgstr ""
  31936. #. type: deftypevr
  31937. #: guix-git/doc/guix.texi:21449
  31938. msgid "The getmail directory to use."
  31939. msgstr ""
  31940. #. type: deftypevr
  31941. #: guix-git/doc/guix.texi:21451
  31942. msgid "Defaults to @samp{\"/var/lib/getmail/default\"}."
  31943. msgstr ""
  31944. #. type: deftypevr
  31945. #: guix-git/doc/guix.texi:21454
  31946. #, no-wrap
  31947. msgid "{@code{getmail-configuration} parameter} getmail-configuration-file rcfile"
  31948. msgstr ""
  31949. #. type: deftypevr
  31950. #: guix-git/doc/guix.texi:21456
  31951. msgid "The getmail configuration file to use."
  31952. msgstr ""
  31953. #. type: deftypevr
  31954. #: guix-git/doc/guix.texi:21458
  31955. msgid "Available @code{getmail-configuration-file} fields are:"
  31956. msgstr ""
  31957. #. type: deftypevr
  31958. #: guix-git/doc/guix.texi:21459
  31959. #, no-wrap
  31960. msgid "{@code{getmail-configuration-file} parameter} getmail-retriever-configuration retriever"
  31961. msgstr ""
  31962. #. type: deftypevr
  31963. #: guix-git/doc/guix.texi:21461
  31964. msgid "What mail account to retrieve mail from, and how to access that account."
  31965. msgstr ""
  31966. #. type: deftypevr
  31967. #: guix-git/doc/guix.texi:21463
  31968. msgid "Available @code{getmail-retriever-configuration} fields are:"
  31969. msgstr ""
  31970. #. type: deftypevr
  31971. #: guix-git/doc/guix.texi:21464
  31972. #, no-wrap
  31973. msgid "{@code{getmail-retriever-configuration} parameter} string type"
  31974. msgstr ""
  31975. #. type: deftypevr
  31976. #: guix-git/doc/guix.texi:21467
  31977. msgid "The type of mail retriever to use. Valid values include @samp{passwd} and @samp{static}."
  31978. msgstr ""
  31979. #. type: deftypevr
  31980. #: guix-git/doc/guix.texi:21469
  31981. msgid "Defaults to @samp{\"SimpleIMAPSSLRetriever\"}."
  31982. msgstr ""
  31983. #. type: deftypevr
  31984. #: guix-git/doc/guix.texi:21472
  31985. #, no-wrap
  31986. msgid "{@code{getmail-retriever-configuration} parameter} string server"
  31987. msgstr ""
  31988. #. type: deftypevr
  31989. #: guix-git/doc/guix.texi:21474 guix-git/doc/guix.texi:21481
  31990. msgid "Username to login to the mail server with."
  31991. msgstr ""
  31992. #. type: deftypevr
  31993. #: guix-git/doc/guix.texi:21476 guix-git/doc/guix.texi:21483
  31994. #: guix-git/doc/guix.texi:21547
  31995. msgid "Defaults to @samp{unset}."
  31996. msgstr ""
  31997. #. type: deftypevr
  31998. #: guix-git/doc/guix.texi:21479
  31999. #, no-wrap
  32000. msgid "{@code{getmail-retriever-configuration} parameter} string username"
  32001. msgstr ""
  32002. #. type: deftypevr
  32003. #: guix-git/doc/guix.texi:21486
  32004. #, no-wrap
  32005. msgid "{@code{getmail-retriever-configuration} parameter} non-negative-integer port"
  32006. msgstr ""
  32007. #. type: deftypevr
  32008. #: guix-git/doc/guix.texi:21488
  32009. msgid "Port number to connect to."
  32010. msgstr ""
  32011. #. type: deftypevr
  32012. #: guix-git/doc/guix.texi:21493
  32013. #, no-wrap
  32014. msgid "{@code{getmail-retriever-configuration} parameter} string password"
  32015. msgstr ""
  32016. #. type: deftypevr
  32017. #: guix-git/doc/guix.texi:21495 guix-git/doc/guix.texi:21502
  32018. msgid "Override fields from passwd."
  32019. msgstr ""
  32020. #. type: deftypevr
  32021. #: guix-git/doc/guix.texi:21500
  32022. #, no-wrap
  32023. msgid "{@code{getmail-retriever-configuration} parameter} list password-command"
  32024. msgstr ""
  32025. #. type: deftypevr
  32026. #: guix-git/doc/guix.texi:21507
  32027. #, no-wrap
  32028. msgid "{@code{getmail-retriever-configuration} parameter} string keyfile"
  32029. msgstr ""
  32030. #. type: deftypevr
  32031. #: guix-git/doc/guix.texi:21509
  32032. msgid "PEM-formatted key file to use for the TLS negotiation."
  32033. msgstr ""
  32034. #. type: deftypevr
  32035. #: guix-git/doc/guix.texi:21514
  32036. #, no-wrap
  32037. msgid "{@code{getmail-retriever-configuration} parameter} string certfile"
  32038. msgstr ""
  32039. #. type: deftypevr
  32040. #: guix-git/doc/guix.texi:21516
  32041. msgid "PEM-formatted certificate file to use for the TLS negotiation."
  32042. msgstr ""
  32043. #. type: deftypevr
  32044. #: guix-git/doc/guix.texi:21521
  32045. #, no-wrap
  32046. msgid "{@code{getmail-retriever-configuration} parameter} string ca-certs"
  32047. msgstr ""
  32048. #. type: deftypevr
  32049. #: guix-git/doc/guix.texi:21523
  32050. #, fuzzy
  32051. msgid "CA certificates to use."
  32052. msgstr "证书服务"
  32053. #. type: deftypevr
  32054. #: guix-git/doc/guix.texi:21528
  32055. #, no-wrap
  32056. msgid "{@code{getmail-retriever-configuration} parameter} parameter-alist extra-parameters"
  32057. msgstr ""
  32058. #. type: deftypevr
  32059. #: guix-git/doc/guix.texi:21530
  32060. msgid "Extra retriever parameters."
  32061. msgstr ""
  32062. #. type: deftypevr
  32063. #: guix-git/doc/guix.texi:21537
  32064. #, no-wrap
  32065. msgid "{@code{getmail-configuration-file} parameter} getmail-destination-configuration destination"
  32066. msgstr ""
  32067. #. type: deftypevr
  32068. #: guix-git/doc/guix.texi:21539
  32069. msgid "What to do with retrieved messages."
  32070. msgstr ""
  32071. #. type: deftypevr
  32072. #: guix-git/doc/guix.texi:21541
  32073. msgid "Available @code{getmail-destination-configuration} fields are:"
  32074. msgstr ""
  32075. #. type: deftypevr
  32076. #: guix-git/doc/guix.texi:21542
  32077. #, no-wrap
  32078. msgid "{@code{getmail-destination-configuration} parameter} string type"
  32079. msgstr ""
  32080. #. type: deftypevr
  32081. #: guix-git/doc/guix.texi:21545
  32082. msgid "The type of mail destination. Valid values include @samp{Maildir}, @samp{Mboxrd} and @samp{MDA_external}."
  32083. msgstr ""
  32084. #. type: deftypevr
  32085. #: guix-git/doc/guix.texi:21550
  32086. #, no-wrap
  32087. msgid "{@code{getmail-destination-configuration} parameter} string-or-filelike path"
  32088. msgstr ""
  32089. #. type: deftypevr
  32090. #: guix-git/doc/guix.texi:21553
  32091. msgid "The path option for the mail destination. The behaviour depends on the chosen type."
  32092. msgstr ""
  32093. #. type: deftypevr
  32094. #: guix-git/doc/guix.texi:21558
  32095. #, no-wrap
  32096. msgid "{@code{getmail-destination-configuration} parameter} parameter-alist extra-parameters"
  32097. msgstr ""
  32098. #. type: deftypevr
  32099. #: guix-git/doc/guix.texi:21560
  32100. msgid "Extra destination parameters"
  32101. msgstr ""
  32102. #. type: deftypevr
  32103. #: guix-git/doc/guix.texi:21567
  32104. #, no-wrap
  32105. msgid "{@code{getmail-configuration-file} parameter} getmail-options-configuration options"
  32106. msgstr ""
  32107. #. type: deftypevr
  32108. #: guix-git/doc/guix.texi:21569
  32109. msgid "Configure getmail."
  32110. msgstr ""
  32111. #. type: deftypevr
  32112. #: guix-git/doc/guix.texi:21571
  32113. msgid "Available @code{getmail-options-configuration} fields are:"
  32114. msgstr ""
  32115. #. type: deftypevr
  32116. #: guix-git/doc/guix.texi:21572
  32117. #, no-wrap
  32118. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer verbose"
  32119. msgstr ""
  32120. #. type: deftypevr
  32121. #: guix-git/doc/guix.texi:21577
  32122. 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 it's actions."
  32123. msgstr ""
  32124. #. type: deftypevr
  32125. #: guix-git/doc/guix.texi:21579 guix-git/doc/guix.texi:27856
  32126. #: guix-git/doc/guix.texi:28444 guix-git/doc/guix.texi:28589
  32127. msgid "Defaults to @samp{1}."
  32128. msgstr ""
  32129. #. type: deftypevr
  32130. #: guix-git/doc/guix.texi:21582
  32131. #, no-wrap
  32132. msgid "{@code{getmail-options-configuration} parameter} boolean read-all"
  32133. msgstr ""
  32134. #. type: deftypevr
  32135. #: guix-git/doc/guix.texi:21585
  32136. msgid "If true, getmail will retrieve all available messages. Otherwise it will only retrieve messages it hasn't seen previously."
  32137. msgstr ""
  32138. #. type: deftypevr
  32139. #: guix-git/doc/guix.texi:21590
  32140. #, no-wrap
  32141. msgid "{@code{getmail-options-configuration} parameter} boolean delete"
  32142. msgstr ""
  32143. #. type: deftypevr
  32144. #: guix-git/doc/guix.texi:21594
  32145. 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."
  32146. msgstr ""
  32147. #. type: deftypevr
  32148. #: guix-git/doc/guix.texi:21599
  32149. #, no-wrap
  32150. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-after"
  32151. msgstr ""
  32152. #. type: deftypevr
  32153. #: guix-git/doc/guix.texi:21604
  32154. 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."
  32155. msgstr ""
  32156. #. type: deftypevr
  32157. #: guix-git/doc/guix.texi:21609
  32158. #, no-wrap
  32159. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-bigger-than"
  32160. msgstr ""
  32161. #. type: deftypevr
  32162. #: guix-git/doc/guix.texi:21613
  32163. 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."
  32164. msgstr ""
  32165. #. type: deftypevr
  32166. #: guix-git/doc/guix.texi:21618
  32167. #, no-wrap
  32168. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-bytes-per-session"
  32169. msgstr ""
  32170. #. type: deftypevr
  32171. #: guix-git/doc/guix.texi:21621
  32172. 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."
  32173. msgstr ""
  32174. #. type: deftypevr
  32175. #: guix-git/doc/guix.texi:21626
  32176. #, no-wrap
  32177. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-message-size"
  32178. msgstr ""
  32179. #. type: deftypevr
  32180. #: guix-git/doc/guix.texi:21629
  32181. msgid "Don't retrieve messages larger than this number of bytes. A value of @samp{0} disables this feature."
  32182. msgstr ""
  32183. #. type: deftypevr
  32184. #: guix-git/doc/guix.texi:21634
  32185. #, no-wrap
  32186. msgid "{@code{getmail-options-configuration} parameter} boolean delivered-to"
  32187. msgstr ""
  32188. #. type: deftypevr
  32189. #: guix-git/doc/guix.texi:21636
  32190. msgid "If true, getmail will add a Delivered-To header to messages."
  32191. msgstr ""
  32192. #. type: deftypevr
  32193. #: guix-git/doc/guix.texi:21641
  32194. #, no-wrap
  32195. msgid "{@code{getmail-options-configuration} parameter} boolean received"
  32196. msgstr ""
  32197. #. type: deftypevr
  32198. #: guix-git/doc/guix.texi:21643
  32199. msgid "If set, getmail adds a Received header to the messages."
  32200. msgstr ""
  32201. #. type: deftypevr
  32202. #: guix-git/doc/guix.texi:21648
  32203. #, no-wrap
  32204. msgid "{@code{getmail-options-configuration} parameter} string message-log"
  32205. msgstr ""
  32206. #. type: deftypevr
  32207. #: guix-git/doc/guix.texi:21651
  32208. msgid "Getmail will record a log of its actions to the named file. A value of @samp{\"\"} disables this feature."
  32209. msgstr ""
  32210. #. type: deftypevr
  32211. #: guix-git/doc/guix.texi:21656
  32212. #, no-wrap
  32213. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-syslog"
  32214. msgstr ""
  32215. #. type: deftypevr
  32216. #: guix-git/doc/guix.texi:21659
  32217. msgid "If true, getmail will record a log of its actions using the system logger."
  32218. msgstr ""
  32219. #. type: deftypevr
  32220. #: guix-git/doc/guix.texi:21664
  32221. #, no-wrap
  32222. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-verbose"
  32223. msgstr ""
  32224. #. type: deftypevr
  32225. #: guix-git/doc/guix.texi:21668
  32226. 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."
  32227. msgstr ""
  32228. #. type: deftypevr
  32229. #: guix-git/doc/guix.texi:21673
  32230. #, no-wrap
  32231. msgid "{@code{getmail-options-configuration} parameter} parameter-alist extra-parameters"
  32232. msgstr ""
  32233. #. type: deftypevr
  32234. #: guix-git/doc/guix.texi:21675
  32235. msgid "Extra options to include."
  32236. msgstr ""
  32237. #. type: deftypevr
  32238. #: guix-git/doc/guix.texi:21684
  32239. #, no-wrap
  32240. msgid "{@code{getmail-configuration} parameter} list idle"
  32241. msgstr ""
  32242. #. type: deftypevr
  32243. #: guix-git/doc/guix.texi:21688
  32244. 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."
  32245. msgstr ""
  32246. #. type: deftypevr
  32247. #: guix-git/doc/guix.texi:21693
  32248. #, no-wrap
  32249. msgid "{@code{getmail-configuration} parameter} list environment-variables"
  32250. msgstr ""
  32251. #. type: deftypevr
  32252. #: guix-git/doc/guix.texi:21695
  32253. msgid "Environment variables to set for getmail."
  32254. msgstr ""
  32255. #. type: subsubheading
  32256. #: guix-git/doc/guix.texi:21700
  32257. #, no-wrap
  32258. msgid "Mail Aliases Service"
  32259. msgstr ""
  32260. #. type: cindex
  32261. #: guix-git/doc/guix.texi:21702
  32262. #, no-wrap
  32263. msgid "email aliases"
  32264. msgstr ""
  32265. #. type: cindex
  32266. #: guix-git/doc/guix.texi:21703
  32267. #, no-wrap
  32268. msgid "aliases, for email addresses"
  32269. msgstr ""
  32270. #. type: deffn
  32271. #: guix-git/doc/guix.texi:21705
  32272. #, no-wrap
  32273. msgid "{Scheme Variable} mail-aliases-service-type"
  32274. msgstr ""
  32275. #. type: deffn
  32276. #: guix-git/doc/guix.texi:21708
  32277. msgid "This is the type of the service which provides @code{/etc/aliases}, specifying how to deliver mail to users on this system."
  32278. msgstr ""
  32279. #. type: lisp
  32280. #: guix-git/doc/guix.texi:21713
  32281. #, no-wrap
  32282. msgid ""
  32283. "(service mail-aliases-service-type\n"
  32284. " '((\"postmaster\" \"bob\")\n"
  32285. " (\"bob\" \"bob@@example.com\" \"bob@@example2.com\")))\n"
  32286. msgstr ""
  32287. #. type: Plain text
  32288. #: guix-git/doc/guix.texi:21721
  32289. 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."
  32290. msgstr ""
  32291. #. type: Plain text
  32292. #: guix-git/doc/guix.texi:21727
  32293. 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})."
  32294. msgstr ""
  32295. #. type: cindex
  32296. #: guix-git/doc/guix.texi:21728 guix-git/doc/guix.texi:21729
  32297. #, no-wrap
  32298. msgid "GNU Mailutils IMAP4 Daemon"
  32299. msgstr ""
  32300. #. type: deffn
  32301. #: guix-git/doc/guix.texi:21731
  32302. #, no-wrap
  32303. msgid "{Scheme Variable} imap4d-service-type"
  32304. msgstr ""
  32305. #. type: deffn
  32306. #: guix-git/doc/guix.texi:21735
  32307. 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:"
  32308. msgstr ""
  32309. #. type: lisp
  32310. #: guix-git/doc/guix.texi:21740
  32311. #, no-wrap
  32312. msgid ""
  32313. "(service imap4d-service-type\n"
  32314. " (imap4d-configuration\n"
  32315. " (config-file (local-file \"imap4d.conf\"))))\n"
  32316. msgstr ""
  32317. #. type: deftp
  32318. #: guix-git/doc/guix.texi:21743
  32319. #, no-wrap
  32320. msgid "{Data Type} imap4d-configuration"
  32321. msgstr ""
  32322. #. type: deftp
  32323. #: guix-git/doc/guix.texi:21745
  32324. msgid "Data type representing the configuration of @command{imap4d}."
  32325. msgstr ""
  32326. #. type: item
  32327. #: guix-git/doc/guix.texi:21747
  32328. #, no-wrap
  32329. msgid "@code{package} (default: @code{mailutils})"
  32330. msgstr ""
  32331. #. type: table
  32332. #: guix-git/doc/guix.texi:21749
  32333. msgid "The package that provides @command{imap4d}."
  32334. msgstr ""
  32335. #. type: item
  32336. #: guix-git/doc/guix.texi:21750
  32337. #, no-wrap
  32338. msgid "@code{config-file} (default: @code{%default-imap4d-config-file})"
  32339. msgstr ""
  32340. #. type: table
  32341. #: guix-git/doc/guix.texi:21754
  32342. 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."
  32343. msgstr ""
  32344. #. type: subsubheading
  32345. #: guix-git/doc/guix.texi:21758
  32346. #, fuzzy, no-wrap
  32347. msgid "Radicale Service"
  32348. msgstr "邮件服务"
  32349. #. type: cindex
  32350. #: guix-git/doc/guix.texi:21759
  32351. #, no-wrap
  32352. msgid "CalDAV"
  32353. msgstr ""
  32354. #. type: cindex
  32355. #: guix-git/doc/guix.texi:21760
  32356. #, no-wrap
  32357. msgid "CardDAV"
  32358. msgstr ""
  32359. #. type: deffn
  32360. #: guix-git/doc/guix.texi:21762
  32361. #, no-wrap
  32362. msgid "{Scheme Variable} radicale-service-type"
  32363. msgstr ""
  32364. #. type: deffn
  32365. #: guix-git/doc/guix.texi:21765
  32366. msgid "This is the type of the @uref{https://radicale.org, Radicale} CalDAV/CardDAV server whose value should be a @code{radicale-configuration}."
  32367. msgstr ""
  32368. #. type: deftp
  32369. #: guix-git/doc/guix.texi:21767
  32370. #, fuzzy, no-wrap
  32371. msgid "{Data Type} radicale-configuration"
  32372. msgstr "{数据类型} build-machine"
  32373. #. type: deftp
  32374. #: guix-git/doc/guix.texi:21769
  32375. #, fuzzy
  32376. msgid "Data type representing the configuration of @command{radicale}."
  32377. msgstr "管理操作系统配置。"
  32378. #. type: item
  32379. #: guix-git/doc/guix.texi:21771
  32380. #, fuzzy, no-wrap
  32381. msgid "@code{package} (default: @code{radicale})"
  32382. msgstr "@code{mate}(默认值:@code{mate})"
  32383. #. type: table
  32384. #: guix-git/doc/guix.texi:21773
  32385. msgid "The package that provides @command{radicale}."
  32386. msgstr ""
  32387. #. type: item
  32388. #: guix-git/doc/guix.texi:21774
  32389. #, fuzzy, no-wrap
  32390. msgid "@code{config-file} (default: @code{%default-radicale-config-file})"
  32391. msgstr "@code{gnome}(默认值:@code{gnome})"
  32392. #. type: table
  32393. #: guix-git/doc/guix.texi:21778
  32394. 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."
  32395. msgstr ""
  32396. #. type: cindex
  32397. #: guix-git/doc/guix.texi:21785
  32398. #, no-wrap
  32399. msgid "messaging"
  32400. msgstr ""
  32401. #. type: cindex
  32402. #: guix-git/doc/guix.texi:21786
  32403. #, no-wrap
  32404. msgid "jabber"
  32405. msgstr ""
  32406. #. type: cindex
  32407. #: guix-git/doc/guix.texi:21787
  32408. #, no-wrap
  32409. msgid "XMPP"
  32410. msgstr ""
  32411. #. type: Plain text
  32412. #: guix-git/doc/guix.texi:21791
  32413. msgid "The @code{(gnu services messaging)} module provides Guix service definitions for messaging services. Currently it provides the following services:"
  32414. msgstr ""
  32415. #. type: subsubheading
  32416. #: guix-git/doc/guix.texi:21792
  32417. #, no-wrap
  32418. msgid "Prosody Service"
  32419. msgstr ""
  32420. #. type: deffn
  32421. #: guix-git/doc/guix.texi:21794
  32422. #, no-wrap
  32423. msgid "{Scheme Variable} prosody-service-type"
  32424. msgstr ""
  32425. #. type: deffn
  32426. #: guix-git/doc/guix.texi:21798
  32427. 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:"
  32428. msgstr ""
  32429. #. type: lisp
  32430. #: guix-git/doc/guix.texi:21813
  32431. #, no-wrap
  32432. msgid ""
  32433. "(service prosody-service-type\n"
  32434. " (prosody-configuration\n"
  32435. " (modules-enabled (cons* \"groups\" \"mam\" %default-modules-enabled))\n"
  32436. " (int-components\n"
  32437. " (list\n"
  32438. " (int-component-configuration\n"
  32439. " (hostname \"conference.example.net\")\n"
  32440. " (plugin \"muc\")\n"
  32441. " (mod-muc (mod-muc-configuration)))))\n"
  32442. " (virtualhosts\n"
  32443. " (list\n"
  32444. " (virtualhost-configuration\n"
  32445. " (domain \"example.net\"))))))\n"
  32446. msgstr ""
  32447. #. type: deffn
  32448. #: guix-git/doc/guix.texi:21816
  32449. msgid "See below for details about @code{prosody-configuration}."
  32450. msgstr ""
  32451. #. type: Plain text
  32452. #: guix-git/doc/guix.texi:21822
  32453. 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."
  32454. msgstr ""
  32455. #. type: Plain text
  32456. #: guix-git/doc/guix.texi:21825
  32457. msgid "You can perform various sanity checks on the generated configuration with the @code{prosodyctl check} command."
  32458. msgstr ""
  32459. #. type: Plain text
  32460. #: guix-git/doc/guix.texi:21829
  32461. 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}."
  32462. msgstr ""
  32463. #. type: example
  32464. #: guix-git/doc/guix.texi:21832
  32465. #, no-wrap
  32466. msgid "prosodyctl --root cert import /etc/letsencrypt/live\n"
  32467. msgstr ""
  32468. #. type: Plain text
  32469. #: guix-git/doc/guix.texi:21839
  32470. 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}."
  32471. msgstr ""
  32472. #. type: Plain text
  32473. #: guix-git/doc/guix.texi:21843
  32474. 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."
  32475. msgstr ""
  32476. #. type: Plain text
  32477. #: guix-git/doc/guix.texi:21846
  32478. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a file name."
  32479. msgstr ""
  32480. #. type: Plain text
  32481. #: guix-git/doc/guix.texi:21856
  32482. msgid "Available @code{prosody-configuration} fields are:"
  32483. msgstr ""
  32484. #. type: deftypevr
  32485. #: guix-git/doc/guix.texi:21857
  32486. #, no-wrap
  32487. msgid "{@code{prosody-configuration} parameter} package prosody"
  32488. msgstr ""
  32489. #. type: deftypevr
  32490. #: guix-git/doc/guix.texi:21859
  32491. msgid "The Prosody package."
  32492. msgstr ""
  32493. #. type: deftypevr
  32494. #: guix-git/doc/guix.texi:21861
  32495. #, no-wrap
  32496. msgid "{@code{prosody-configuration} parameter} file-name data-path"
  32497. msgstr ""
  32498. #. type: deftypevr
  32499. #: guix-git/doc/guix.texi:21865
  32500. msgid "Location of the Prosody data storage directory. See @url{https://prosody.im/doc/configure}. Defaults to @samp{\"/var/lib/prosody\"}."
  32501. msgstr ""
  32502. #. type: deftypevr
  32503. #: guix-git/doc/guix.texi:21867
  32504. #, no-wrap
  32505. msgid "{@code{prosody-configuration} parameter} file-object-list plugin-paths"
  32506. msgstr ""
  32507. #. type: deftypevr
  32508. #: guix-git/doc/guix.texi:21871
  32509. 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{()}."
  32510. msgstr ""
  32511. #. type: deftypevr
  32512. #: guix-git/doc/guix.texi:21873
  32513. #, no-wrap
  32514. msgid "{@code{prosody-configuration} parameter} file-name certificates"
  32515. msgstr ""
  32516. #. type: deftypevr
  32517. #: guix-git/doc/guix.texi:21878
  32518. 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\"}."
  32519. msgstr ""
  32520. #. type: deftypevr
  32521. #: guix-git/doc/guix.texi:21880
  32522. #, no-wrap
  32523. msgid "{@code{prosody-configuration} parameter} string-list admins"
  32524. msgstr ""
  32525. #. type: deftypevr
  32526. #: guix-git/doc/guix.texi:21886
  32527. 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{()}."
  32528. msgstr ""
  32529. #. type: deftypevr
  32530. #: guix-git/doc/guix.texi:21888
  32531. #, no-wrap
  32532. msgid "{@code{prosody-configuration} parameter} boolean use-libevent?"
  32533. msgstr ""
  32534. #. type: deftypevr
  32535. #: guix-git/doc/guix.texi:21892
  32536. msgid "Enable use of libevent for better performance under high load. See @url{https://prosody.im/doc/libevent}. Defaults to @samp{#f}."
  32537. msgstr ""
  32538. #. type: deftypevr
  32539. #: guix-git/doc/guix.texi:21894
  32540. #, no-wrap
  32541. msgid "{@code{prosody-configuration} parameter} module-list modules-enabled"
  32542. msgstr ""
  32543. #. type: deftypevr
  32544. #: guix-git/doc/guix.texi:21900
  32545. 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\")}."
  32546. msgstr ""
  32547. #. type: deftypevr
  32548. #: guix-git/doc/guix.texi:21902
  32549. #, no-wrap
  32550. msgid "{@code{prosody-configuration} parameter} string-list modules-disabled"
  32551. msgstr ""
  32552. #. type: deftypevr
  32553. #: guix-git/doc/guix.texi:21906
  32554. 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{()}."
  32555. msgstr ""
  32556. #. type: deftypevr
  32557. #: guix-git/doc/guix.texi:21908
  32558. #, no-wrap
  32559. msgid "{@code{prosody-configuration} parameter} file-object groups-file"
  32560. msgstr ""
  32561. #. type: deftypevr
  32562. #: guix-git/doc/guix.texi:21913
  32563. 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\"}."
  32564. msgstr ""
  32565. #. type: deftypevr
  32566. #: guix-git/doc/guix.texi:21915
  32567. #, no-wrap
  32568. msgid "{@code{prosody-configuration} parameter} boolean allow-registration?"
  32569. msgstr ""
  32570. #. type: deftypevr
  32571. #: guix-git/doc/guix.texi:21919
  32572. msgid "Disable account creation by default, for security. See @url{https://prosody.im/doc/creating_accounts}. Defaults to @samp{#f}."
  32573. msgstr ""
  32574. #. type: deftypevr
  32575. #: guix-git/doc/guix.texi:21921
  32576. #, no-wrap
  32577. msgid "{@code{prosody-configuration} parameter} maybe-ssl-configuration ssl"
  32578. msgstr ""
  32579. #. type: deftypevr
  32580. #: guix-git/doc/guix.texi:21926
  32581. 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}."
  32582. msgstr ""
  32583. #. type: deftypevr
  32584. #: guix-git/doc/guix.texi:21928
  32585. msgid "Available @code{ssl-configuration} fields are:"
  32586. msgstr ""
  32587. #. type: deftypevr
  32588. #: guix-git/doc/guix.texi:21929
  32589. #, no-wrap
  32590. msgid "{@code{ssl-configuration} parameter} maybe-string protocol"
  32591. msgstr ""
  32592. #. type: deftypevr
  32593. #: guix-git/doc/guix.texi:21931
  32594. msgid "This determines what handshake to use."
  32595. msgstr ""
  32596. #. type: deftypevr
  32597. #: guix-git/doc/guix.texi:21933
  32598. #, no-wrap
  32599. msgid "{@code{ssl-configuration} parameter} maybe-file-name key"
  32600. msgstr ""
  32601. #. type: deftypevr
  32602. #: guix-git/doc/guix.texi:21935
  32603. msgid "Path to your private key file."
  32604. msgstr ""
  32605. #. type: deftypevr
  32606. #: guix-git/doc/guix.texi:21937
  32607. #, no-wrap
  32608. msgid "{@code{ssl-configuration} parameter} maybe-file-name certificate"
  32609. msgstr ""
  32610. #. type: deftypevr
  32611. #: guix-git/doc/guix.texi:21939
  32612. msgid "Path to your certificate file."
  32613. msgstr ""
  32614. #. type: deftypevr
  32615. #: guix-git/doc/guix.texi:21941
  32616. #, no-wrap
  32617. msgid "{@code{ssl-configuration} parameter} file-object capath"
  32618. msgstr ""
  32619. #. type: deftypevr
  32620. #: guix-git/doc/guix.texi:21945
  32621. 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\"}."
  32622. msgstr ""
  32623. #. type: deftypevr
  32624. #: guix-git/doc/guix.texi:21947
  32625. #, no-wrap
  32626. msgid "{@code{ssl-configuration} parameter} maybe-file-object cafile"
  32627. msgstr ""
  32628. #. type: deftypevr
  32629. #: guix-git/doc/guix.texi:21950
  32630. msgid "Path to a file containing root certificates that you wish Prosody to trust. Similar to @code{capath} but with all certificates concatenated together."
  32631. msgstr ""
  32632. #. type: deftypevr
  32633. #: guix-git/doc/guix.texi:21952
  32634. #, no-wrap
  32635. msgid "{@code{ssl-configuration} parameter} maybe-string-list verify"
  32636. msgstr ""
  32637. #. type: deftypevr
  32638. #: guix-git/doc/guix.texi:21955
  32639. msgid "A list of verification options (these mostly map to OpenSSL's @code{set_verify()} flags)."
  32640. msgstr ""
  32641. #. type: deftypevr
  32642. #: guix-git/doc/guix.texi:21957
  32643. #, no-wrap
  32644. msgid "{@code{ssl-configuration} parameter} maybe-string-list options"
  32645. msgstr ""
  32646. #. type: deftypevr
  32647. #: guix-git/doc/guix.texi:21961
  32648. 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."
  32649. msgstr ""
  32650. #. type: deftypevr
  32651. #: guix-git/doc/guix.texi:21963
  32652. #, no-wrap
  32653. msgid "{@code{ssl-configuration} parameter} maybe-non-negative-integer depth"
  32654. msgstr ""
  32655. #. type: deftypevr
  32656. #: guix-git/doc/guix.texi:21966
  32657. msgid "How long a chain of certificate authorities to check when looking for a trusted root certificate."
  32658. msgstr ""
  32659. #. type: deftypevr
  32660. #: guix-git/doc/guix.texi:21968
  32661. #, no-wrap
  32662. msgid "{@code{ssl-configuration} parameter} maybe-string ciphers"
  32663. msgstr ""
  32664. #. type: deftypevr
  32665. #: guix-git/doc/guix.texi:21971
  32666. msgid "An OpenSSL cipher string. This selects what ciphers Prosody will offer to clients, and in what order."
  32667. msgstr ""
  32668. #. type: deftypevr
  32669. #: guix-git/doc/guix.texi:21973
  32670. #, no-wrap
  32671. msgid "{@code{ssl-configuration} parameter} maybe-file-name dhparam"
  32672. msgstr ""
  32673. #. type: deftypevr
  32674. #: guix-git/doc/guix.texi:21977
  32675. 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}"
  32676. msgstr ""
  32677. #. type: deftypevr
  32678. #: guix-git/doc/guix.texi:21979
  32679. #, no-wrap
  32680. msgid "{@code{ssl-configuration} parameter} maybe-string curve"
  32681. msgstr ""
  32682. #. type: deftypevr
  32683. #: guix-git/doc/guix.texi:21982
  32684. msgid "Curve for Elliptic curve Diffie-Hellman. Prosody's default is @samp{\"secp384r1\"}."
  32685. msgstr ""
  32686. #. type: deftypevr
  32687. #: guix-git/doc/guix.texi:21984
  32688. #, no-wrap
  32689. msgid "{@code{ssl-configuration} parameter} maybe-string-list verifyext"
  32690. msgstr ""
  32691. #. type: deftypevr
  32692. #: guix-git/doc/guix.texi:21986
  32693. msgid "A list of ``extra'' verification options."
  32694. msgstr ""
  32695. #. type: deftypevr
  32696. #: guix-git/doc/guix.texi:21988
  32697. #, no-wrap
  32698. msgid "{@code{ssl-configuration} parameter} maybe-string password"
  32699. msgstr ""
  32700. #. type: deftypevr
  32701. #: guix-git/doc/guix.texi:21990
  32702. msgid "Password for encrypted private keys."
  32703. msgstr ""
  32704. #. type: deftypevr
  32705. #: guix-git/doc/guix.texi:21994
  32706. #, no-wrap
  32707. msgid "{@code{prosody-configuration} parameter} boolean c2s-require-encryption?"
  32708. msgstr ""
  32709. #. type: deftypevr
  32710. #: guix-git/doc/guix.texi:21998
  32711. 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}."
  32712. msgstr ""
  32713. #. type: deftypevr
  32714. #: guix-git/doc/guix.texi:22000
  32715. #, no-wrap
  32716. msgid "{@code{prosody-configuration} parameter} string-list disable-sasl-mechanisms"
  32717. msgstr ""
  32718. #. type: deftypevr
  32719. #: guix-git/doc/guix.texi:22004
  32720. msgid "Set of mechanisms that will never be offered. See @url{https://prosody.im/doc/modules/mod_saslauth}. Defaults to @samp{(\"DIGEST-MD5\")}."
  32721. msgstr ""
  32722. #. type: deftypevr
  32723. #: guix-git/doc/guix.texi:22006
  32724. #, no-wrap
  32725. msgid "{@code{prosody-configuration} parameter} boolean s2s-require-encryption?"
  32726. msgstr ""
  32727. #. type: deftypevr
  32728. #: guix-git/doc/guix.texi:22010
  32729. 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}."
  32730. msgstr ""
  32731. #. type: deftypevr
  32732. #: guix-git/doc/guix.texi:22012
  32733. #, no-wrap
  32734. msgid "{@code{prosody-configuration} parameter} boolean s2s-secure-auth?"
  32735. msgstr ""
  32736. #. type: deftypevr
  32737. #: guix-git/doc/guix.texi:22018
  32738. 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}."
  32739. msgstr ""
  32740. #. type: deftypevr
  32741. #: guix-git/doc/guix.texi:22020
  32742. #, no-wrap
  32743. msgid "{@code{prosody-configuration} parameter} string-list s2s-insecure-domains"
  32744. msgstr ""
  32745. #. type: deftypevr
  32746. #: guix-git/doc/guix.texi:22026
  32747. 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{()}."
  32748. msgstr ""
  32749. #. type: deftypevr
  32750. #: guix-git/doc/guix.texi:22028
  32751. #, no-wrap
  32752. msgid "{@code{prosody-configuration} parameter} string-list s2s-secure-domains"
  32753. msgstr ""
  32754. #. type: deftypevr
  32755. #: guix-git/doc/guix.texi:22033
  32756. 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{()}."
  32757. msgstr ""
  32758. #. type: deftypevr
  32759. #: guix-git/doc/guix.texi:22035
  32760. #, no-wrap
  32761. msgid "{@code{prosody-configuration} parameter} string authentication"
  32762. msgstr ""
  32763. #. type: deftypevr
  32764. #: guix-git/doc/guix.texi:22043
  32765. 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\"}."
  32766. msgstr ""
  32767. #. type: deftypevr
  32768. #: guix-git/doc/guix.texi:22045
  32769. #, no-wrap
  32770. msgid "{@code{prosody-configuration} parameter} maybe-string log"
  32771. msgstr ""
  32772. #. type: deftypevr
  32773. #: guix-git/doc/guix.texi:22049
  32774. 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\"}."
  32775. msgstr ""
  32776. #. type: deftypevr
  32777. #: guix-git/doc/guix.texi:22051
  32778. #, no-wrap
  32779. msgid "{@code{prosody-configuration} parameter} file-name pidfile"
  32780. msgstr ""
  32781. #. type: deftypevr
  32782. #: guix-git/doc/guix.texi:22054
  32783. msgid "File to write pid in. See @url{https://prosody.im/doc/modules/mod_posix}. Defaults to @samp{\"/var/run/prosody/prosody.pid\"}."
  32784. msgstr ""
  32785. #. type: deftypevr
  32786. #: guix-git/doc/guix.texi:22056
  32787. #, no-wrap
  32788. msgid "{@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size"
  32789. msgstr ""
  32790. #. type: deftypevr
  32791. #: guix-git/doc/guix.texi:22058
  32792. msgid "Maximum allowed size of the HTTP body (in bytes)."
  32793. msgstr ""
  32794. #. type: deftypevr
  32795. #: guix-git/doc/guix.texi:22060
  32796. #, no-wrap
  32797. msgid "{@code{prosody-configuration} parameter} maybe-string http-external-url"
  32798. msgstr ""
  32799. #. type: deftypevr
  32800. #: guix-git/doc/guix.texi:22065
  32801. 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}."
  32802. msgstr ""
  32803. #. type: deftypevr
  32804. #: guix-git/doc/guix.texi:22067
  32805. #, no-wrap
  32806. msgid "{@code{prosody-configuration} parameter} virtualhost-configuration-list virtualhosts"
  32807. msgstr ""
  32808. #. type: deftypevr
  32809. #: guix-git/doc/guix.texi:22072
  32810. 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."
  32811. msgstr ""
  32812. #. type: deftypevr
  32813. #: guix-git/doc/guix.texi:22078
  32814. 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."
  32815. msgstr ""
  32816. #. type: deftypevr
  32817. #: guix-git/doc/guix.texi:22080
  32818. msgid "See @url{https://prosody.im/doc/configure#virtual_host_settings}."
  32819. msgstr ""
  32820. #. type: deftypevr
  32821. #: guix-git/doc/guix.texi:22082
  32822. msgid "Available @code{virtualhost-configuration} fields are:"
  32823. msgstr ""
  32824. #. type: deftypevr
  32825. #: guix-git/doc/guix.texi:22084 guix-git/doc/guix.texi:22106
  32826. #: guix-git/doc/guix.texi:22159
  32827. 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:"
  32828. msgstr ""
  32829. #. type: deftypevr
  32830. #: guix-git/doc/guix.texi:22084
  32831. #, no-wrap
  32832. msgid "{@code{virtualhost-configuration} parameter} string domain"
  32833. msgstr ""
  32834. #. type: deftypevr
  32835. #: guix-git/doc/guix.texi:22086
  32836. msgid "Domain you wish Prosody to serve."
  32837. msgstr ""
  32838. #. type: deftypevr
  32839. #: guix-git/doc/guix.texi:22090
  32840. #, no-wrap
  32841. msgid "{@code{prosody-configuration} parameter} int-component-configuration-list int-components"
  32842. msgstr ""
  32843. #. type: deftypevr
  32844. #: guix-git/doc/guix.texi:22095
  32845. 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."
  32846. msgstr ""
  32847. #. type: deftypevr
  32848. #: guix-git/doc/guix.texi:22099
  32849. 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."
  32850. msgstr ""
  32851. #. type: deftypevr
  32852. #: guix-git/doc/guix.texi:22102
  32853. msgid "See @url{https://prosody.im/doc/components}. Defaults to @samp{()}."
  32854. msgstr ""
  32855. #. type: deftypevr
  32856. #: guix-git/doc/guix.texi:22104
  32857. msgid "Available @code{int-component-configuration} fields are:"
  32858. msgstr ""
  32859. #. type: deftypevr
  32860. #: guix-git/doc/guix.texi:22106
  32861. #, no-wrap
  32862. msgid "{@code{int-component-configuration} parameter} string hostname"
  32863. msgstr ""
  32864. #. type: deftypevr
  32865. #: guix-git/doc/guix.texi:22108 guix-git/doc/guix.texi:22165
  32866. msgid "Hostname of the component."
  32867. msgstr ""
  32868. #. type: deftypevr
  32869. #: guix-git/doc/guix.texi:22110
  32870. #, no-wrap
  32871. msgid "{@code{int-component-configuration} parameter} string plugin"
  32872. msgstr ""
  32873. #. type: deftypevr
  32874. #: guix-git/doc/guix.texi:22112
  32875. msgid "Plugin you wish to use for the component."
  32876. msgstr ""
  32877. #. type: deftypevr
  32878. #: guix-git/doc/guix.texi:22114
  32879. #, no-wrap
  32880. msgid "{@code{int-component-configuration} parameter} maybe-mod-muc-configuration mod-muc"
  32881. msgstr ""
  32882. #. type: deftypevr
  32883. #: guix-git/doc/guix.texi:22117
  32884. msgid "Multi-user chat (MUC) is Prosody's module for allowing you to create hosted chatrooms/conferences for XMPP users."
  32885. msgstr ""
  32886. #. type: deftypevr
  32887. #: guix-git/doc/guix.texi:22121
  32888. 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."
  32889. msgstr ""
  32890. #. type: deftypevr
  32891. #: guix-git/doc/guix.texi:22123
  32892. msgid "See also @url{https://prosody.im/doc/modules/mod_muc}."
  32893. msgstr ""
  32894. #. type: deftypevr
  32895. #: guix-git/doc/guix.texi:22125
  32896. msgid "Available @code{mod-muc-configuration} fields are:"
  32897. msgstr ""
  32898. #. type: deftypevr
  32899. #: guix-git/doc/guix.texi:22126
  32900. #, no-wrap
  32901. msgid "{@code{mod-muc-configuration} parameter} string name"
  32902. msgstr ""
  32903. #. type: deftypevr
  32904. #: guix-git/doc/guix.texi:22129
  32905. msgid "The name to return in service discovery responses. Defaults to @samp{\"Prosody Chatrooms\"}."
  32906. msgstr ""
  32907. #. type: deftypevr
  32908. #: guix-git/doc/guix.texi:22131
  32909. #, no-wrap
  32910. msgid "{@code{mod-muc-configuration} parameter} string-or-boolean restrict-room-creation"
  32911. msgstr ""
  32912. #. type: deftypevr
  32913. #: guix-git/doc/guix.texi:22138
  32914. 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}."
  32915. msgstr ""
  32916. #. type: deftypevr
  32917. #: guix-git/doc/guix.texi:22140
  32918. #, no-wrap
  32919. msgid "{@code{mod-muc-configuration} parameter} non-negative-integer max-history-messages"
  32920. msgstr ""
  32921. #. type: deftypevr
  32922. #: guix-git/doc/guix.texi:22144
  32923. msgid "Maximum number of history messages that will be sent to the member that has just joined the room. Defaults to @samp{20}."
  32924. msgstr ""
  32925. #. type: deftypevr
  32926. #: guix-git/doc/guix.texi:22150
  32927. #, no-wrap
  32928. msgid "{@code{prosody-configuration} parameter} ext-component-configuration-list ext-components"
  32929. msgstr ""
  32930. #. type: deftypevr
  32931. #: guix-git/doc/guix.texi:22155
  32932. 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{()}."
  32933. msgstr ""
  32934. #. type: deftypevr
  32935. #: guix-git/doc/guix.texi:22157
  32936. msgid "Available @code{ext-component-configuration} fields are:"
  32937. msgstr ""
  32938. #. type: deftypevr
  32939. #: guix-git/doc/guix.texi:22159
  32940. #, no-wrap
  32941. msgid "{@code{ext-component-configuration} parameter} string component-secret"
  32942. msgstr ""
  32943. #. type: deftypevr
  32944. #: guix-git/doc/guix.texi:22161
  32945. msgid "Password which the component will use to log in."
  32946. msgstr ""
  32947. #. type: deftypevr
  32948. #: guix-git/doc/guix.texi:22163
  32949. #, no-wrap
  32950. msgid "{@code{ext-component-configuration} parameter} string hostname"
  32951. msgstr ""
  32952. #. type: deftypevr
  32953. #: guix-git/doc/guix.texi:22169
  32954. #, no-wrap
  32955. msgid "{@code{prosody-configuration} parameter} non-negative-integer-list component-ports"
  32956. msgstr ""
  32957. #. type: deftypevr
  32958. #: guix-git/doc/guix.texi:22172
  32959. msgid "Port(s) Prosody listens on for component connections. Defaults to @samp{(5347)}."
  32960. msgstr ""
  32961. #. type: deftypevr
  32962. #: guix-git/doc/guix.texi:22174
  32963. #, no-wrap
  32964. msgid "{@code{prosody-configuration} parameter} string component-interface"
  32965. msgstr ""
  32966. #. type: deftypevr
  32967. #: guix-git/doc/guix.texi:22177
  32968. msgid "Interface Prosody listens on for component connections. Defaults to @samp{\"127.0.0.1\"}."
  32969. msgstr ""
  32970. #. type: deftypevr
  32971. #: guix-git/doc/guix.texi:22179
  32972. #, no-wrap
  32973. msgid "{@code{prosody-configuration} parameter} maybe-raw-content raw-content"
  32974. msgstr ""
  32975. #. type: deftypevr
  32976. #: guix-git/doc/guix.texi:22181
  32977. msgid "Raw content that will be added to the configuration file."
  32978. msgstr ""
  32979. #. type: Plain text
  32980. #: guix-git/doc/guix.texi:22189
  32981. 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:"
  32982. msgstr ""
  32983. #. type: deftypevr
  32984. #: guix-git/doc/guix.texi:22190
  32985. #, no-wrap
  32986. msgid "{@code{opaque-prosody-configuration} parameter} package prosody"
  32987. msgstr ""
  32988. #. type: deftypevr
  32989. #: guix-git/doc/guix.texi:22192
  32990. msgid "The prosody package."
  32991. msgstr ""
  32992. #. type: deftypevr
  32993. #: guix-git/doc/guix.texi:22194
  32994. #, no-wrap
  32995. msgid "{@code{opaque-prosody-configuration} parameter} string prosody.cfg.lua"
  32996. msgstr ""
  32997. #. type: deftypevr
  32998. #: guix-git/doc/guix.texi:22196
  32999. msgid "The contents of the @code{prosody.cfg.lua} to use."
  33000. msgstr ""
  33001. #. type: Plain text
  33002. #: guix-git/doc/guix.texi:22200
  33003. msgid "For example, if your @code{prosody.cfg.lua} is just the empty string, you could instantiate a prosody service like this:"
  33004. msgstr ""
  33005. #. type: lisp
  33006. #: guix-git/doc/guix.texi:22205
  33007. #, no-wrap
  33008. msgid ""
  33009. "(service prosody-service-type\n"
  33010. " (opaque-prosody-configuration\n"
  33011. " (prosody.cfg.lua \"\")))\n"
  33012. msgstr ""
  33013. #. type: subsubheading
  33014. #: guix-git/doc/guix.texi:22209
  33015. #, no-wrap
  33016. msgid "BitlBee Service"
  33017. msgstr ""
  33018. #. type: cindex
  33019. #: guix-git/doc/guix.texi:22211 guix-git/doc/guix.texi:22255
  33020. #, no-wrap
  33021. msgid "IRC (Internet Relay Chat)"
  33022. msgstr ""
  33023. #. type: cindex
  33024. #: guix-git/doc/guix.texi:22212
  33025. #, no-wrap
  33026. msgid "IRC gateway"
  33027. msgstr ""
  33028. #. type: Plain text
  33029. #: guix-git/doc/guix.texi:22215
  33030. msgid "@url{https://bitlbee.org,BitlBee} is a gateway that provides an IRC interface to a variety of messaging protocols such as XMPP."
  33031. msgstr ""
  33032. #. type: defvr
  33033. #: guix-git/doc/guix.texi:22216
  33034. #, no-wrap
  33035. msgid "{Scheme Variable} bitlbee-service-type"
  33036. msgstr ""
  33037. #. type: defvr
  33038. #: guix-git/doc/guix.texi:22220
  33039. 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)."
  33040. msgstr ""
  33041. #. type: defvr
  33042. #: guix-git/doc/guix.texi:22223
  33043. msgid "To have BitlBee listen on port 6667 on localhost, add this line to your services:"
  33044. msgstr ""
  33045. #. type: lisp
  33046. #: guix-git/doc/guix.texi:22226
  33047. #, no-wrap
  33048. msgid "(service bitlbee-service-type)\n"
  33049. msgstr ""
  33050. #. type: deftp
  33051. #: guix-git/doc/guix.texi:22229
  33052. #, no-wrap
  33053. msgid "{Data Type} bitlbee-configuration"
  33054. msgstr ""
  33055. #. type: deftp
  33056. #: guix-git/doc/guix.texi:22231
  33057. msgid "This is the configuration for BitlBee, with the following fields:"
  33058. msgstr ""
  33059. #. type: item
  33060. #: guix-git/doc/guix.texi:22233
  33061. #, no-wrap
  33062. msgid "@code{interface} (default: @code{\"127.0.0.1\"})"
  33063. msgstr ""
  33064. #. type: itemx
  33065. #: guix-git/doc/guix.texi:22234
  33066. #, no-wrap
  33067. msgid "@code{port} (default: @code{6667})"
  33068. msgstr ""
  33069. #. type: table
  33070. #: guix-git/doc/guix.texi:22237
  33071. msgid "Listen on the network interface corresponding to the IP address specified in @var{interface}, on @var{port}."
  33072. msgstr ""
  33073. #. type: table
  33074. #: guix-git/doc/guix.texi:22241
  33075. 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."
  33076. msgstr ""
  33077. #. type: item
  33078. #: guix-git/doc/guix.texi:22242
  33079. #, fuzzy, no-wrap
  33080. msgid "@code{bitlbee} (default: @code{bitlbee})"
  33081. msgstr "@code{mate}(默认值:@code{mate})"
  33082. #. type: table
  33083. #: guix-git/doc/guix.texi:22244
  33084. msgid "The BitlBee package to use."
  33085. msgstr ""
  33086. #. type: item
  33087. #: guix-git/doc/guix.texi:22245
  33088. #, no-wrap
  33089. msgid "@code{plugins} (default: @code{'()})"
  33090. msgstr ""
  33091. #. type: table
  33092. #: guix-git/doc/guix.texi:22247
  33093. msgid "List of plugin packages to use---e.g., @code{bitlbee-discord}."
  33094. msgstr ""
  33095. #. type: table
  33096. #: guix-git/doc/guix.texi:22250
  33097. msgid "Configuration snippet added as-is to the BitlBee configuration file."
  33098. msgstr ""
  33099. #. type: subsubheading
  33100. #: guix-git/doc/guix.texi:22253
  33101. #, no-wrap
  33102. msgid "Quassel Service"
  33103. msgstr ""
  33104. #. type: Plain text
  33105. #: guix-git/doc/guix.texi:22259
  33106. 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."
  33107. msgstr ""
  33108. #. type: defvr
  33109. #: guix-git/doc/guix.texi:22260
  33110. #, no-wrap
  33111. msgid "{Scheme Variable} quassel-service-type"
  33112. msgstr ""
  33113. #. type: defvr
  33114. #: guix-git/doc/guix.texi:22264
  33115. 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)."
  33116. msgstr ""
  33117. #. type: deftp
  33118. #: guix-git/doc/guix.texi:22266
  33119. #, no-wrap
  33120. msgid "{Data Type} quassel-configuration"
  33121. msgstr ""
  33122. #. type: deftp
  33123. #: guix-git/doc/guix.texi:22268
  33124. msgid "This is the configuration for Quassel, with the following fields:"
  33125. msgstr ""
  33126. #. type: item
  33127. #: guix-git/doc/guix.texi:22270
  33128. #, no-wrap
  33129. msgid "@code{quassel} (default: @code{quassel})"
  33130. msgstr ""
  33131. #. type: table
  33132. #: guix-git/doc/guix.texi:22272
  33133. msgid "The Quassel package to use."
  33134. msgstr ""
  33135. #. type: item
  33136. #: guix-git/doc/guix.texi:22273
  33137. #, no-wrap
  33138. msgid "@code{interface} (default: @code{\"::,0.0.0.0\"})"
  33139. msgstr ""
  33140. #. type: item
  33141. #: guix-git/doc/guix.texi:22274
  33142. #, no-wrap
  33143. msgid "@code{port} (default: @code{4242})"
  33144. msgstr ""
  33145. #. type: table
  33146. #: guix-git/doc/guix.texi:22278
  33147. msgid "Listen on the network interface(s) corresponding to the IPv4 or IPv6 interfaces specified in the comma delimited @var{interface}, on @var{port}."
  33148. msgstr ""
  33149. #. type: item
  33150. #: guix-git/doc/guix.texi:22279
  33151. #, no-wrap
  33152. msgid "@code{loglevel} (default: @code{\"Info\"})"
  33153. msgstr ""
  33154. #. type: table
  33155. #: guix-git/doc/guix.texi:22282
  33156. msgid "The level of logging desired. Accepted values are Debug, Info, Warning and Error."
  33157. msgstr ""
  33158. #. type: cindex
  33159. #: guix-git/doc/guix.texi:22288
  33160. #, no-wrap
  33161. msgid "Murmur (VoIP server)"
  33162. msgstr ""
  33163. #. type: cindex
  33164. #: guix-git/doc/guix.texi:22289
  33165. #, no-wrap
  33166. msgid "VoIP server"
  33167. msgstr ""
  33168. #. type: Plain text
  33169. #: guix-git/doc/guix.texi:22293
  33170. 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."
  33171. msgstr ""
  33172. #. type: deftp
  33173. #: guix-git/doc/guix.texi:22294
  33174. #, no-wrap
  33175. msgid "{Data Type} murmur-configuration"
  33176. msgstr ""
  33177. #. type: deftp
  33178. #: guix-git/doc/guix.texi:22297
  33179. msgid "The service type for the Murmur server. An example configuration can look like this:"
  33180. msgstr ""
  33181. #. type: lisp
  33182. #: guix-git/doc/guix.texi:22306
  33183. #, no-wrap
  33184. msgid ""
  33185. "(service murmur-service-type\n"
  33186. " (murmur-configuration\n"
  33187. " (welcome-text\n"
  33188. " \"Welcome to this Mumble server running on Guix!\")\n"
  33189. " (cert-required? #t) ;disallow text password logins\n"
  33190. " (ssl-cert \"/etc/letsencrypt/live/mumble.example.com/fullchain.pem\")\n"
  33191. " (ssl-key \"/etc/letsencrypt/live/mumble.example.com/privkey.pem\")))\n"
  33192. msgstr ""
  33193. #. type: deftp
  33194. #: guix-git/doc/guix.texi:22310
  33195. msgid "After reconfiguring your system, you can manually set the murmur @code{SuperUser} password with the command that is printed during the activation phase."
  33196. msgstr ""
  33197. #. type: deftp
  33198. #: guix-git/doc/guix.texi:22319
  33199. 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."
  33200. msgstr ""
  33201. #. type: deftp
  33202. #: guix-git/doc/guix.texi:22321
  33203. msgid "Available @code{murmur-configuration} fields are:"
  33204. msgstr ""
  33205. #. type: item
  33206. #: guix-git/doc/guix.texi:22323
  33207. #, no-wrap
  33208. msgid "@code{package} (default: @code{mumble})"
  33209. msgstr ""
  33210. #. type: table
  33211. #: guix-git/doc/guix.texi:22325
  33212. msgid "Package that contains @code{bin/murmurd}."
  33213. msgstr ""
  33214. #. type: item
  33215. #: guix-git/doc/guix.texi:22326
  33216. #, no-wrap
  33217. msgid "@code{user} (default: @code{\"murmur\"})"
  33218. msgstr ""
  33219. #. type: table
  33220. #: guix-git/doc/guix.texi:22328
  33221. msgid "User who will run the Murmur server."
  33222. msgstr ""
  33223. #. type: item
  33224. #: guix-git/doc/guix.texi:22329
  33225. #, no-wrap
  33226. msgid "@code{group} (default: @code{\"murmur\"})"
  33227. msgstr ""
  33228. #. type: table
  33229. #: guix-git/doc/guix.texi:22331
  33230. msgid "Group of the user who will run the murmur server."
  33231. msgstr ""
  33232. #. type: item
  33233. #: guix-git/doc/guix.texi:22332
  33234. #, no-wrap
  33235. msgid "@code{port} (default: @code{64738})"
  33236. msgstr ""
  33237. #. type: table
  33238. #: guix-git/doc/guix.texi:22334
  33239. msgid "Port on which the server will listen."
  33240. msgstr ""
  33241. #. type: item
  33242. #: guix-git/doc/guix.texi:22335
  33243. #, no-wrap
  33244. msgid "@code{welcome-text} (default: @code{\"\"})"
  33245. msgstr ""
  33246. #. type: table
  33247. #: guix-git/doc/guix.texi:22337
  33248. msgid "Welcome text sent to clients when they connect."
  33249. msgstr ""
  33250. #. type: item
  33251. #: guix-git/doc/guix.texi:22338
  33252. #, no-wrap
  33253. msgid "@code{server-password} (default: @code{\"\"})"
  33254. msgstr ""
  33255. #. type: table
  33256. #: guix-git/doc/guix.texi:22340
  33257. msgid "Password the clients have to enter in order to connect."
  33258. msgstr ""
  33259. #. type: item
  33260. #: guix-git/doc/guix.texi:22341
  33261. #, no-wrap
  33262. msgid "@code{max-users} (default: @code{100})"
  33263. msgstr ""
  33264. #. type: table
  33265. #: guix-git/doc/guix.texi:22343
  33266. msgid "Maximum of users that can be connected to the server at once."
  33267. msgstr ""
  33268. #. type: item
  33269. #: guix-git/doc/guix.texi:22344
  33270. #, no-wrap
  33271. msgid "@code{max-user-bandwidth} (default: @code{#f})"
  33272. msgstr ""
  33273. #. type: table
  33274. #: guix-git/doc/guix.texi:22346
  33275. msgid "Maximum voice traffic a user can send per second."
  33276. msgstr ""
  33277. #. type: item
  33278. #: guix-git/doc/guix.texi:22347
  33279. #, no-wrap
  33280. msgid "@code{database-file} (default: @code{\"/var/lib/murmur/db.sqlite\"})"
  33281. msgstr ""
  33282. #. type: table
  33283. #: guix-git/doc/guix.texi:22350
  33284. msgid "File name of the sqlite database. The service's user will become the owner of the directory."
  33285. msgstr ""
  33286. #. type: item
  33287. #: guix-git/doc/guix.texi:22351
  33288. #, no-wrap
  33289. msgid "@code{log-file} (default: @code{\"/var/log/murmur/murmur.log\"})"
  33290. msgstr ""
  33291. #. type: table
  33292. #: guix-git/doc/guix.texi:22354
  33293. msgid "File name of the log file. The service's user will become the owner of the directory."
  33294. msgstr ""
  33295. #. type: item
  33296. #: guix-git/doc/guix.texi:22355
  33297. #, no-wrap
  33298. msgid "@code{autoban-attempts} (default: @code{10})"
  33299. msgstr ""
  33300. #. type: table
  33301. #: guix-git/doc/guix.texi:22358
  33302. msgid "Maximum number of logins a user can make in @code{autoban-timeframe} without getting auto banned for @code{autoban-time}."
  33303. msgstr ""
  33304. #. type: item
  33305. #: guix-git/doc/guix.texi:22359
  33306. #, no-wrap
  33307. msgid "@code{autoban-timeframe} (default: @code{120})"
  33308. msgstr ""
  33309. #. type: table
  33310. #: guix-git/doc/guix.texi:22361
  33311. msgid "Timeframe for autoban in seconds."
  33312. msgstr ""
  33313. #. type: item
  33314. #: guix-git/doc/guix.texi:22362
  33315. #, no-wrap
  33316. msgid "@code{autoban-time} (default: @code{300})"
  33317. msgstr ""
  33318. #. type: table
  33319. #: guix-git/doc/guix.texi:22365
  33320. msgid "Amount of time in seconds for which a client gets banned when violating the autoban limits."
  33321. msgstr ""
  33322. #. type: item
  33323. #: guix-git/doc/guix.texi:22366
  33324. #, no-wrap
  33325. msgid "@code{opus-threshold} (default: @code{100})"
  33326. msgstr ""
  33327. #. type: table
  33328. #: guix-git/doc/guix.texi:22369
  33329. msgid "Percentage of clients that need to support opus before switching over to opus audio codec."
  33330. msgstr ""
  33331. #. type: item
  33332. #: guix-git/doc/guix.texi:22370
  33333. #, no-wrap
  33334. msgid "@code{channel-nesting-limit} (default: @code{10})"
  33335. msgstr ""
  33336. #. type: table
  33337. #: guix-git/doc/guix.texi:22372
  33338. msgid "How deep channels can be nested at maximum."
  33339. msgstr ""
  33340. #. type: item
  33341. #: guix-git/doc/guix.texi:22373
  33342. #, no-wrap
  33343. msgid "@code{channelname-regex} (default: @code{#f})"
  33344. msgstr ""
  33345. #. type: table
  33346. #: guix-git/doc/guix.texi:22375
  33347. msgid "A string in form of a Qt regular expression that channel names must conform to."
  33348. msgstr ""
  33349. #. type: item
  33350. #: guix-git/doc/guix.texi:22376
  33351. #, no-wrap
  33352. msgid "@code{username-regex} (default: @code{#f})"
  33353. msgstr ""
  33354. #. type: table
  33355. #: guix-git/doc/guix.texi:22378
  33356. msgid "A string in form of a Qt regular expression that user names must conform to."
  33357. msgstr ""
  33358. #. type: item
  33359. #: guix-git/doc/guix.texi:22379
  33360. #, no-wrap
  33361. msgid "@code{text-message-length} (default: @code{5000})"
  33362. msgstr ""
  33363. #. type: table
  33364. #: guix-git/doc/guix.texi:22381
  33365. msgid "Maximum size in bytes that a user can send in one text chat message."
  33366. msgstr ""
  33367. #. type: item
  33368. #: guix-git/doc/guix.texi:22382
  33369. #, no-wrap
  33370. msgid "@code{image-message-length} (default: @code{(* 128 1024)})"
  33371. msgstr ""
  33372. #. type: table
  33373. #: guix-git/doc/guix.texi:22384
  33374. msgid "Maximum size in bytes that a user can send in one image message."
  33375. msgstr ""
  33376. #. type: item
  33377. #: guix-git/doc/guix.texi:22385
  33378. #, no-wrap
  33379. msgid "@code{cert-required?} (default: @code{#f})"
  33380. msgstr ""
  33381. #. type: table
  33382. #: guix-git/doc/guix.texi:22388
  33383. 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."
  33384. msgstr ""
  33385. #. type: item
  33386. #: guix-git/doc/guix.texi:22389
  33387. #, no-wrap
  33388. msgid "@code{remember-channel?} (default: @code{#f})"
  33389. msgstr ""
  33390. #. type: table
  33391. #: guix-git/doc/guix.texi:22392
  33392. msgid "Should murmur remember the last channel each user was in when they disconnected and put them into the remembered channel when they rejoin."
  33393. msgstr ""
  33394. #. type: item
  33395. #: guix-git/doc/guix.texi:22393
  33396. #, no-wrap
  33397. msgid "@code{allow-html?} (default: @code{#f})"
  33398. msgstr ""
  33399. #. type: table
  33400. #: guix-git/doc/guix.texi:22395
  33401. msgid "Should html be allowed in text messages, user comments, and channel descriptions."
  33402. msgstr ""
  33403. #. type: item
  33404. #: guix-git/doc/guix.texi:22396
  33405. #, no-wrap
  33406. msgid "@code{allow-ping?} (default: @code{#f})"
  33407. msgstr ""
  33408. #. type: table
  33409. #: guix-git/doc/guix.texi:22400
  33410. 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."
  33411. msgstr ""
  33412. #. type: table
  33413. #: guix-git/doc/guix.texi:22402
  33414. msgid "Disabling this setting will prevent public listing of the server."
  33415. msgstr ""
  33416. #. type: item
  33417. #: guix-git/doc/guix.texi:22403
  33418. #, no-wrap
  33419. msgid "@code{bonjour?} (default: @code{#f})"
  33420. msgstr ""
  33421. #. type: table
  33422. #: guix-git/doc/guix.texi:22405
  33423. msgid "Should the server advertise itself in the local network through the bonjour protocol."
  33424. msgstr ""
  33425. #. type: item
  33426. #: guix-git/doc/guix.texi:22406
  33427. #, no-wrap
  33428. msgid "@code{send-version?} (default: @code{#f})"
  33429. msgstr ""
  33430. #. type: table
  33431. #: guix-git/doc/guix.texi:22408
  33432. msgid "Should the murmur server version be exposed in ping requests."
  33433. msgstr ""
  33434. #. type: item
  33435. #: guix-git/doc/guix.texi:22409
  33436. #, no-wrap
  33437. msgid "@code{log-days} (default: @code{31})"
  33438. msgstr ""
  33439. #. type: table
  33440. #: guix-git/doc/guix.texi:22413
  33441. 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."
  33442. msgstr ""
  33443. #. type: item
  33444. #: guix-git/doc/guix.texi:22414
  33445. #, no-wrap
  33446. msgid "@code{obfuscate-ips?} (default: @code{#t})"
  33447. msgstr ""
  33448. #. type: table
  33449. #: guix-git/doc/guix.texi:22416
  33450. msgid "Should logged ips be obfuscated to protect the privacy of users."
  33451. msgstr ""
  33452. #. type: item
  33453. #: guix-git/doc/guix.texi:22417
  33454. #, no-wrap
  33455. msgid "@code{ssl-cert} (default: @code{#f})"
  33456. msgstr ""
  33457. #. type: table
  33458. #: guix-git/doc/guix.texi:22419
  33459. msgid "File name of the SSL/TLS certificate used for encrypted connections."
  33460. msgstr ""
  33461. #. type: lisp
  33462. #: guix-git/doc/guix.texi:22422
  33463. #, no-wrap
  33464. msgid "(ssl-cert \"/etc/letsencrypt/live/example.com/fullchain.pem\")\n"
  33465. msgstr ""
  33466. #. type: item
  33467. #: guix-git/doc/guix.texi:22423
  33468. #, no-wrap
  33469. msgid "@code{ssl-key} (default: @code{#f})"
  33470. msgstr ""
  33471. #. type: table
  33472. #: guix-git/doc/guix.texi:22425
  33473. msgid "Filepath to the ssl private key used for encrypted connections."
  33474. msgstr ""
  33475. #. type: lisp
  33476. #: guix-git/doc/guix.texi:22427
  33477. #, no-wrap
  33478. msgid "(ssl-key \"/etc/letsencrypt/live/example.com/privkey.pem\")\n"
  33479. msgstr ""
  33480. #. type: item
  33481. #: guix-git/doc/guix.texi:22429
  33482. #, no-wrap
  33483. msgid "@code{ssl-dh-params} (default: @code{#f})"
  33484. msgstr ""
  33485. #. type: table
  33486. #: guix-git/doc/guix.texi:22434
  33487. 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."
  33488. msgstr ""
  33489. #. type: item
  33490. #: guix-git/doc/guix.texi:22435
  33491. #, no-wrap
  33492. msgid "@code{ssl-ciphers} (default: @code{#f})"
  33493. msgstr ""
  33494. #. type: table
  33495. #: guix-git/doc/guix.texi:22438
  33496. msgid "The @code{ssl-ciphers} option chooses the cipher suites to make available for use in SSL/TLS."
  33497. msgstr ""
  33498. #. type: table
  33499. #: guix-git/doc/guix.texi:22442
  33500. msgid "This option is specified using @uref{https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT, OpenSSL cipher list notation}."
  33501. msgstr ""
  33502. #. type: table
  33503. #: guix-git/doc/guix.texi:22447
  33504. 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."
  33505. msgstr ""
  33506. #. type: table
  33507. #: guix-git/doc/guix.texi:22451
  33508. 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."
  33509. msgstr ""
  33510. #. type: item
  33511. #: guix-git/doc/guix.texi:22452
  33512. #, no-wrap
  33513. msgid "@code{public-registration} (default: @code{#f})"
  33514. msgstr ""
  33515. #. type: table
  33516. #: guix-git/doc/guix.texi:22454
  33517. msgid "Must be a @code{<murmur-public-registration-configuration>} record or @code{#f}."
  33518. msgstr ""
  33519. #. type: table
  33520. #: guix-git/doc/guix.texi:22459
  33521. 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}."
  33522. msgstr ""
  33523. #. type: table
  33524. #: guix-git/doc/guix.texi:22461
  33525. msgid "It might take a few hours until it shows up in the public list."
  33526. msgstr ""
  33527. #. type: item
  33528. #: guix-git/doc/guix.texi:22462 guix-git/doc/guix.texi:24698
  33529. #, no-wrap
  33530. msgid "@code{file} (default: @code{#f})"
  33531. msgstr ""
  33532. #. type: table
  33533. #: guix-git/doc/guix.texi:22464
  33534. msgid "Optional alternative override for this configuration."
  33535. msgstr ""
  33536. #. type: deftp
  33537. #: guix-git/doc/guix.texi:22467
  33538. #, no-wrap
  33539. msgid "{Data Type} murmur-public-registration-configuration"
  33540. msgstr ""
  33541. #. type: deftp
  33542. #: guix-git/doc/guix.texi:22469
  33543. msgid "Configuration for public registration of a murmur service."
  33544. msgstr ""
  33545. #. type: table
  33546. #: guix-git/doc/guix.texi:22473
  33547. msgid "This is a display name for your server. Not to be confused with the hostname."
  33548. msgstr ""
  33549. #. type: itemx
  33550. #: guix-git/doc/guix.texi:22474 guix-git/doc/guix.texi:31149
  33551. #: guix-git/doc/guix.texi:32190
  33552. #, no-wrap
  33553. msgid "password"
  33554. msgstr ""
  33555. #. type: table
  33556. #: guix-git/doc/guix.texi:22477
  33557. msgid "A password to identify your registration. Subsequent updates will need the same password. Don't lose your password."
  33558. msgstr ""
  33559. #. type: table
  33560. #: guix-git/doc/guix.texi:22481
  33561. msgid "This should be a @code{http://} or @code{https://} link to your web site."
  33562. msgstr ""
  33563. #. type: item
  33564. #: guix-git/doc/guix.texi:22482 guix-git/doc/guix.texi:25577
  33565. #, no-wrap
  33566. msgid "@code{hostname} (default: @code{#f})"
  33567. msgstr ""
  33568. #. type: table
  33569. #: guix-git/doc/guix.texi:22485
  33570. 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."
  33571. msgstr ""
  33572. #. type: Plain text
  33573. #: guix-git/doc/guix.texi:22495
  33574. msgid "The @code{(gnu services file-sharing)} module provides services that assist with transferring files over peer-to-peer file-sharing networks."
  33575. msgstr ""
  33576. #. type: subsubheading
  33577. #: guix-git/doc/guix.texi:22496
  33578. #, fuzzy, no-wrap
  33579. msgid "Transmission Daemon Service"
  33580. msgstr "版本控制服务"
  33581. #. type: Plain text
  33582. #: guix-git/doc/guix.texi:22504
  33583. 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."
  33584. msgstr ""
  33585. #. type: deffn
  33586. #: guix-git/doc/guix.texi:22505
  33587. #, no-wrap
  33588. msgid "{Scheme Variable} transmission-daemon-service-type"
  33589. msgstr ""
  33590. #. type: deffn
  33591. #: guix-git/doc/guix.texi:22509
  33592. msgid "The service type for the Transmission Daemon BitTorrent client. Its value must be a @code{transmission-daemon-configuration} object as in this example:"
  33593. msgstr ""
  33594. #. type: lisp
  33595. #: guix-git/doc/guix.texi:22520
  33596. #, no-wrap
  33597. msgid ""
  33598. "(service transmission-daemon-service-type\n"
  33599. " (transmission-daemon-configuration\n"
  33600. " ;; Restrict access to the RPC (\"control\") interface\n"
  33601. " (rpc-authentication-required? #t)\n"
  33602. " (rpc-username \"transmission\")\n"
  33603. " (rpc-password\n"
  33604. " (transmission-password-hash\n"
  33605. " \"transmission\" ; desired password\n"
  33606. " \"uKd1uMs9\")) ; arbitrary salt value\n"
  33607. "\n"
  33608. msgstr ""
  33609. #. type: lisp
  33610. #: guix-git/doc/guix.texi:22525
  33611. #, no-wrap
  33612. msgid ""
  33613. " ;; Accept requests from this and other hosts on the\n"
  33614. " ;; local network\n"
  33615. " (rpc-whitelist-enabled? #t)\n"
  33616. " (rpc-whitelist '(\"::1\" \"127.0.0.1\" \"192.168.0.*\"))\n"
  33617. "\n"
  33618. msgstr ""
  33619. #. type: lisp
  33620. #: guix-git/doc/guix.texi:22529
  33621. #, no-wrap
  33622. msgid ""
  33623. " ;; Limit bandwidth use during work hours\n"
  33624. " (alt-speed-down (* 1024 2)) ; 2 MB/s\n"
  33625. " (alt-speed-up 512) ; 512 kB/s\n"
  33626. "\n"
  33627. msgstr ""
  33628. #. type: lisp
  33629. #: guix-git/doc/guix.texi:22536
  33630. #, no-wrap
  33631. msgid ""
  33632. " (alt-speed-time-enabled? #t)\n"
  33633. " (alt-speed-time-day 'weekdays)\n"
  33634. " (alt-speed-time-begin\n"
  33635. " (+ (* 60 8) 30)) ; 8:30 am\n"
  33636. " (alt-speed-time-end\n"
  33637. " (+ (* 60 (+ 12 5)) 30)))) ; 5:30 pm\n"
  33638. msgstr ""
  33639. #. type: Plain text
  33640. #: guix-git/doc/guix.texi:22549
  33641. 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."
  33642. msgstr ""
  33643. #. type: Plain text
  33644. #: guix-git/doc/guix.texi:22557
  33645. 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."
  33646. msgstr ""
  33647. #. type: deffn
  33648. #: guix-git/doc/guix.texi:22558
  33649. #, no-wrap
  33650. msgid "{Scheme Procedure} transmission-password-hash @var{password} @var{salt}"
  33651. msgstr ""
  33652. #. type: deffn
  33653. #: guix-git/doc/guix.texi:22562
  33654. 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."
  33655. msgstr ""
  33656. #. type: deffn
  33657. #: guix-git/doc/guix.texi:22566
  33658. 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."
  33659. msgstr ""
  33660. #. type: deffn
  33661. #: guix-git/doc/guix.texi:22568
  33662. #, no-wrap
  33663. msgid "{Scheme Procedure} transmission-random-salt"
  33664. msgstr ""
  33665. #. type: deffn
  33666. #: guix-git/doc/guix.texi:22572
  33667. 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."
  33668. msgstr ""
  33669. #. type: Plain text
  33670. #: guix-git/doc/guix.texi:22578
  33671. 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:"
  33672. msgstr ""
  33673. #. type: example
  33674. #: guix-git/doc/guix.texi:22584
  33675. #, no-wrap
  33676. msgid ""
  33677. "$ guix repl\n"
  33678. "scheme@@(guix-user)> ,use (gnu services file-sharing)\n"
  33679. "scheme@@(guix-user)> (transmission-random-salt)\n"
  33680. "$1 = \"uKd1uMs9\"\n"
  33681. msgstr ""
  33682. #. type: Plain text
  33683. #: guix-git/doc/guix.texi:22587
  33684. msgid "Alternatively, a complete password hash can generated in a single step:"
  33685. msgstr ""
  33686. #. type: example
  33687. #: guix-git/doc/guix.texi:22592
  33688. #, no-wrap
  33689. msgid ""
  33690. "scheme@@(guix-user)> (transmission-password-hash \"transmission\"\n"
  33691. "(transmission-random-salt))\n"
  33692. "$2 = \"@{c8bbc6d1740cd8dc819a6e25563b67812c1c19c9VtFPfdsX\"\n"
  33693. msgstr ""
  33694. #. type: Plain text
  33695. #: guix-git/doc/guix.texi:22597
  33696. 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."
  33697. msgstr ""
  33698. #. type: Plain text
  33699. #: guix-git/doc/guix.texi:22606
  33700. 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."
  33701. msgstr ""
  33702. #. type: Plain text
  33703. #: guix-git/doc/guix.texi:22613
  33704. 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.)"
  33705. msgstr ""
  33706. #. type: Plain text
  33707. #: guix-git/doc/guix.texi:22618
  33708. 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:"
  33709. msgstr ""
  33710. #. type: example
  33711. #: guix-git/doc/guix.texi:22621
  33712. #, no-wrap
  33713. msgid "# herd reload transmission-daemon\n"
  33714. msgstr ""
  33715. #. type: Plain text
  33716. #: guix-git/doc/guix.texi:22625
  33717. msgid "The full set of available configuration settings is defined by the @code{transmission-daemon-configuration} data type."
  33718. msgstr ""
  33719. #. type: deftp
  33720. #: guix-git/doc/guix.texi:22626
  33721. #, fuzzy, no-wrap
  33722. msgid "{Data Type} transmission-daemon-configuration"
  33723. msgstr "{数据类型} build-machine"
  33724. #. type: deftp
  33725. #: guix-git/doc/guix.texi:22630
  33726. 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."
  33727. msgstr ""
  33728. #. type: Plain text
  33729. #: guix-git/doc/guix.texi:22644
  33730. msgid "Available @code{transmission-daemon-configuration} fields are:"
  33731. msgstr ""
  33732. #. type: deftypevr
  33733. #: guix-git/doc/guix.texi:22645
  33734. #, no-wrap
  33735. msgid "{@code{transmission-daemon-configuration} parameter} package transmission"
  33736. msgstr ""
  33737. #. type: deftypevr
  33738. #: guix-git/doc/guix.texi:22647
  33739. #, fuzzy
  33740. msgid "The Transmission package to use."
  33741. msgstr "软件包数据类型。"
  33742. #. type: deftypevr
  33743. #: guix-git/doc/guix.texi:22650
  33744. #, no-wrap
  33745. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer stop-wait-period"
  33746. msgstr ""
  33747. #. type: deftypevr
  33748. #: guix-git/doc/guix.texi:22656
  33749. 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."
  33750. msgstr ""
  33751. #. type: deftypevr
  33752. #: guix-git/doc/guix.texi:22658 guix-git/doc/guix.texi:23030
  33753. #: guix-git/doc/guix.texi:30262 guix-git/doc/guix.texi:30497
  33754. #: guix-git/doc/guix.texi:30505 guix-git/doc/guix.texi:30513
  33755. msgid "Defaults to @samp{10}."
  33756. msgstr ""
  33757. #. type: deftypevr
  33758. #: guix-git/doc/guix.texi:22661
  33759. #, no-wrap
  33760. msgid "{@code{transmission-daemon-configuration} parameter} string download-dir"
  33761. msgstr ""
  33762. #. type: deftypevr
  33763. #: guix-git/doc/guix.texi:22663
  33764. msgid "The directory to which torrent files are downloaded."
  33765. msgstr ""
  33766. #. type: deftypevr
  33767. #: guix-git/doc/guix.texi:22665
  33768. msgid "Defaults to @samp{\"/var/lib/transmission-daemon/downloads\"}."
  33769. msgstr ""
  33770. #. type: deftypevr
  33771. #: guix-git/doc/guix.texi:22668
  33772. #, no-wrap
  33773. msgid "{@code{transmission-daemon-configuration} parameter} boolean incomplete-dir-enabled?"
  33774. msgstr ""
  33775. #. type: deftypevr
  33776. #: guix-git/doc/guix.texi:22673
  33777. 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}."
  33778. msgstr ""
  33779. #. type: deftypevr
  33780. #: guix-git/doc/guix.texi:22678
  33781. #, no-wrap
  33782. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string incomplete-dir"
  33783. msgstr ""
  33784. #. type: deftypevr
  33785. #: guix-git/doc/guix.texi:22681
  33786. msgid "The directory in which files from incompletely downloaded torrents will be held when @code{incomplete-dir-enabled?} is @code{#t}."
  33787. msgstr ""
  33788. #. type: deftypevr
  33789. #: guix-git/doc/guix.texi:22683 guix-git/doc/guix.texi:22727
  33790. #: guix-git/doc/guix.texi:22940 guix-git/doc/guix.texi:22996
  33791. #: guix-git/doc/guix.texi:23170 guix-git/doc/guix.texi:23181
  33792. #: guix-git/doc/guix.texi:23254 guix-git/doc/guix.texi:23979
  33793. #: guix-git/doc/guix.texi:24022 guix-git/doc/guix.texi:24030
  33794. #: guix-git/doc/guix.texi:24038 guix-git/doc/guix.texi:24046
  33795. #: guix-git/doc/guix.texi:24055 guix-git/doc/guix.texi:24063
  33796. #: guix-git/doc/guix.texi:24070 guix-git/doc/guix.texi:24078
  33797. #: guix-git/doc/guix.texi:24086 guix-git/doc/guix.texi:24096
  33798. #: guix-git/doc/guix.texi:24103 guix-git/doc/guix.texi:24127
  33799. #: guix-git/doc/guix.texi:24135 guix-git/doc/guix.texi:24161
  33800. #: guix-git/doc/guix.texi:24170 guix-git/doc/guix.texi:24179
  33801. #: guix-git/doc/guix.texi:24188 guix-git/doc/guix.texi:24197
  33802. #: guix-git/doc/guix.texi:24206 guix-git/doc/guix.texi:24214
  33803. #: guix-git/doc/guix.texi:24222 guix-git/doc/guix.texi:24229
  33804. #: guix-git/doc/guix.texi:24237 guix-git/doc/guix.texi:24244
  33805. #: guix-git/doc/guix.texi:24252 guix-git/doc/guix.texi:24260
  33806. #: guix-git/doc/guix.texi:24269 guix-git/doc/guix.texi:24278
  33807. #: guix-git/doc/guix.texi:24286 guix-git/doc/guix.texi:24294
  33808. #: guix-git/doc/guix.texi:24302 guix-git/doc/guix.texi:24313
  33809. #: guix-git/doc/guix.texi:24323 guix-git/doc/guix.texi:24334
  33810. #: guix-git/doc/guix.texi:24343 guix-git/doc/guix.texi:24353
  33811. #: guix-git/doc/guix.texi:24361 guix-git/doc/guix.texi:24372
  33812. #: guix-git/doc/guix.texi:24381 guix-git/doc/guix.texi:24391
  33813. #: guix-git/doc/guix.texi:27554 guix-git/doc/guix.texi:27561
  33814. #: guix-git/doc/guix.texi:27568 guix-git/doc/guix.texi:27575
  33815. #: guix-git/doc/guix.texi:27582 guix-git/doc/guix.texi:27589
  33816. #: guix-git/doc/guix.texi:27597 guix-git/doc/guix.texi:27605
  33817. #: guix-git/doc/guix.texi:27612 guix-git/doc/guix.texi:27619
  33818. #: guix-git/doc/guix.texi:27626 guix-git/doc/guix.texi:27633
  33819. #: guix-git/doc/guix.texi:27663 guix-git/doc/guix.texi:27701
  33820. #: guix-git/doc/guix.texi:27708 guix-git/doc/guix.texi:27717
  33821. #: guix-git/doc/guix.texi:27739 guix-git/doc/guix.texi:27747
  33822. #: guix-git/doc/guix.texi:27754 guix-git/doc/guix.texi:27909
  33823. #: guix-git/doc/guix.texi:27929 guix-git/doc/guix.texi:27944
  33824. #: guix-git/doc/guix.texi:27951 guix-git/doc/guix.texi:30634
  33825. #: guix-git/doc/guix.texi:30642 guix-git/doc/guix.texi:30650
  33826. #: guix-git/doc/guix.texi:30658 guix-git/doc/guix.texi:30666
  33827. #: guix-git/doc/guix.texi:30674
  33828. msgid "Defaults to @samp{disabled}."
  33829. msgstr ""
  33830. #. type: deftypevr
  33831. #: guix-git/doc/guix.texi:22686
  33832. #, no-wrap
  33833. msgid "{@code{transmission-daemon-configuration} parameter} umask umask"
  33834. msgstr ""
  33835. #. type: deftypevr
  33836. #: guix-git/doc/guix.texi:22689
  33837. msgid "The file mode creation mask used for downloaded files. (See the @command{umask} man page for more information.)"
  33838. msgstr ""
  33839. #. type: deftypevr
  33840. #: guix-git/doc/guix.texi:22691
  33841. msgid "Defaults to @samp{18}."
  33842. msgstr ""
  33843. #. type: deftypevr
  33844. #: guix-git/doc/guix.texi:22694
  33845. #, no-wrap
  33846. msgid "{@code{transmission-daemon-configuration} parameter} boolean rename-partial-files?"
  33847. msgstr ""
  33848. #. type: deftypevr
  33849. #: guix-git/doc/guix.texi:22697
  33850. msgid "When @code{#t}, ``.part'' is appended to the name of partially downloaded files."
  33851. msgstr ""
  33852. #. type: deftypevr
  33853. #: guix-git/doc/guix.texi:22702
  33854. #, no-wrap
  33855. msgid "{@code{transmission-daemon-configuration} parameter} preallocation-mode preallocation"
  33856. msgstr ""
  33857. #. type: deftypevr
  33858. #: guix-git/doc/guix.texi:22707
  33859. 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."
  33860. msgstr ""
  33861. #. type: deftypevr
  33862. #: guix-git/doc/guix.texi:22709
  33863. msgid "Defaults to @samp{fast}."
  33864. msgstr ""
  33865. #. type: deftypevr
  33866. #: guix-git/doc/guix.texi:22712
  33867. #, no-wrap
  33868. msgid "{@code{transmission-daemon-configuration} parameter} boolean watch-dir-enabled?"
  33869. msgstr ""
  33870. #. type: deftypevr
  33871. #: guix-git/doc/guix.texi:22717
  33872. 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})."
  33873. msgstr ""
  33874. #. type: deftypevr
  33875. #: guix-git/doc/guix.texi:22722
  33876. #, no-wrap
  33877. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string watch-dir"
  33878. msgstr ""
  33879. #. type: deftypevr
  33880. #: guix-git/doc/guix.texi:22725
  33881. msgid "The directory to be watched for @file{.torrent} files indicating new torrents to be added, when @code{watch-dir-enabled} is @code{#t}."
  33882. msgstr ""
  33883. #. type: deftypevr
  33884. #: guix-git/doc/guix.texi:22730
  33885. #, no-wrap
  33886. msgid "{@code{transmission-daemon-configuration} parameter} boolean trash-original-torrent-files?"
  33887. msgstr ""
  33888. #. type: deftypevr
  33889. #: guix-git/doc/guix.texi:22734
  33890. 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?})."
  33891. msgstr ""
  33892. #. type: deftypevr
  33893. #: guix-git/doc/guix.texi:22739
  33894. #, no-wrap
  33895. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-down-enabled?"
  33896. msgstr ""
  33897. #. type: deftypevr
  33898. #: guix-git/doc/guix.texi:22742
  33899. msgid "When @code{#t}, the daemon's download speed will be limited to the rate specified by @code{speed-limit-down}."
  33900. msgstr ""
  33901. #. type: deftypevr
  33902. #: guix-git/doc/guix.texi:22747
  33903. #, no-wrap
  33904. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-down"
  33905. msgstr ""
  33906. #. type: deftypevr
  33907. #: guix-git/doc/guix.texi:22749
  33908. msgid "The default global-maximum download speed, in kilobytes per second."
  33909. msgstr ""
  33910. #. type: deftypevr
  33911. #: guix-git/doc/guix.texi:22754
  33912. #, no-wrap
  33913. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-up-enabled?"
  33914. msgstr ""
  33915. #. type: deftypevr
  33916. #: guix-git/doc/guix.texi:22757
  33917. msgid "When @code{#t}, the daemon's upload speed will be limited to the rate specified by @code{speed-limit-up}."
  33918. msgstr ""
  33919. #. type: deftypevr
  33920. #: guix-git/doc/guix.texi:22762
  33921. #, no-wrap
  33922. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-up"
  33923. msgstr ""
  33924. #. type: deftypevr
  33925. #: guix-git/doc/guix.texi:22764
  33926. msgid "The default global-maximum upload speed, in kilobytes per second."
  33927. msgstr ""
  33928. #. type: deftypevr
  33929. #: guix-git/doc/guix.texi:22769
  33930. #, no-wrap
  33931. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-enabled?"
  33932. msgstr ""
  33933. #. type: deftypevr
  33934. #: guix-git/doc/guix.texi:22775
  33935. 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?}."
  33936. msgstr ""
  33937. #. type: deftypevr
  33938. #: guix-git/doc/guix.texi:22780
  33939. #, no-wrap
  33940. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-down"
  33941. msgstr ""
  33942. #. type: deftypevr
  33943. #: guix-git/doc/guix.texi:22782
  33944. msgid "The alternate global-maximum download speed, in kilobytes per second."
  33945. msgstr ""
  33946. #. type: deftypevr
  33947. #: guix-git/doc/guix.texi:22784 guix-git/doc/guix.texi:22791
  33948. #: guix-git/doc/guix.texi:22963 guix-git/doc/guix.texi:30269
  33949. #: guix-git/doc/guix.texi:30284
  33950. msgid "Defaults to @samp{50}."
  33951. msgstr ""
  33952. #. type: deftypevr
  33953. #: guix-git/doc/guix.texi:22787
  33954. #, no-wrap
  33955. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-up"
  33956. msgstr ""
  33957. #. type: deftypevr
  33958. #: guix-git/doc/guix.texi:22789
  33959. msgid "The alternate global-maximum upload speed, in kilobytes per second."
  33960. msgstr ""
  33961. #. type: deftypevr
  33962. #: guix-git/doc/guix.texi:22794
  33963. #, no-wrap
  33964. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-time-enabled?"
  33965. msgstr ""
  33966. #. type: deftypevr
  33967. #: guix-git/doc/guix.texi:22799
  33968. 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}."
  33969. msgstr ""
  33970. #. type: deftypevr
  33971. #: guix-git/doc/guix.texi:22804
  33972. #, no-wrap
  33973. msgid "{@code{transmission-daemon-configuration} parameter} day-list alt-speed-time-day"
  33974. msgstr ""
  33975. #. type: deftypevr
  33976. #: guix-git/doc/guix.texi:22809
  33977. 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}."
  33978. msgstr ""
  33979. #. type: deftypevr
  33980. #: guix-git/doc/guix.texi:22811
  33981. msgid "Defaults to @samp{all}."
  33982. msgstr ""
  33983. #. type: deftypevr
  33984. #: guix-git/doc/guix.texi:22814
  33985. #, no-wrap
  33986. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-begin"
  33987. msgstr ""
  33988. #. type: deftypevr
  33989. #: guix-git/doc/guix.texi:22817
  33990. msgid "The time of day at which to enable the alternate speed limits, expressed as a number of minutes since midnight."
  33991. msgstr ""
  33992. #. type: deftypevr
  33993. #: guix-git/doc/guix.texi:22819
  33994. msgid "Defaults to @samp{540}."
  33995. msgstr ""
  33996. #. type: deftypevr
  33997. #: guix-git/doc/guix.texi:22822
  33998. #, no-wrap
  33999. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-end"
  34000. msgstr ""
  34001. #. type: deftypevr
  34002. #: guix-git/doc/guix.texi:22825
  34003. msgid "The time of day at which to disable the alternate speed limits, expressed as a number of minutes since midnight."
  34004. msgstr ""
  34005. #. type: deftypevr
  34006. #: guix-git/doc/guix.texi:22827
  34007. msgid "Defaults to @samp{1020}."
  34008. msgstr ""
  34009. #. type: deftypevr
  34010. #: guix-git/doc/guix.texi:22830
  34011. #, no-wrap
  34012. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv4"
  34013. msgstr ""
  34014. #. type: deftypevr
  34015. #: guix-git/doc/guix.texi:22833
  34016. msgid "The IP address at which to listen for peer connections, or ``0.0.0.0'' to listen at all available IP addresses."
  34017. msgstr ""
  34018. #. type: deftypevr
  34019. #: guix-git/doc/guix.texi:22835 guix-git/doc/guix.texi:23138
  34020. #: guix-git/doc/guix.texi:28184
  34021. msgid "Defaults to @samp{\"0.0.0.0\"}."
  34022. msgstr ""
  34023. #. type: deftypevr
  34024. #: guix-git/doc/guix.texi:22838
  34025. #, no-wrap
  34026. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv6"
  34027. msgstr ""
  34028. #. type: deftypevr
  34029. #: guix-git/doc/guix.texi:22841
  34030. msgid "The IPv6 address at which to listen for peer connections, or ``::'' to listen at all available IPv6 addresses."
  34031. msgstr ""
  34032. #. type: deftypevr
  34033. #: guix-git/doc/guix.texi:22843
  34034. msgid "Defaults to @samp{\"::\"}."
  34035. msgstr ""
  34036. #. type: deftypevr
  34037. #: guix-git/doc/guix.texi:22846
  34038. #, no-wrap
  34039. msgid "{@code{transmission-daemon-configuration} parameter} boolean peer-port-random-on-start?"
  34040. msgstr ""
  34041. #. type: deftypevr
  34042. #: guix-git/doc/guix.texi:22852
  34043. 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}."
  34044. msgstr ""
  34045. #. type: deftypevr
  34046. #: guix-git/doc/guix.texi:22857
  34047. #, no-wrap
  34048. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-low"
  34049. msgstr ""
  34050. #. type: deftypevr
  34051. #: guix-git/doc/guix.texi:22860
  34052. msgid "The lowest selectable port number when @code{peer-port-random-on-start?} is @code{#t}."
  34053. msgstr ""
  34054. #. type: deftypevr
  34055. #: guix-git/doc/guix.texi:22862
  34056. msgid "Defaults to @samp{49152}."
  34057. msgstr ""
  34058. #. type: deftypevr
  34059. #: guix-git/doc/guix.texi:22865
  34060. #, no-wrap
  34061. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-high"
  34062. msgstr ""
  34063. #. type: deftypevr
  34064. #: guix-git/doc/guix.texi:22868
  34065. msgid "The highest selectable port number when @code{peer-port-random-on-start} is @code{#t}."
  34066. msgstr ""
  34067. #. type: deftypevr
  34068. #: guix-git/doc/guix.texi:22870
  34069. msgid "Defaults to @samp{65535}."
  34070. msgstr ""
  34071. #. type: deftypevr
  34072. #: guix-git/doc/guix.texi:22873
  34073. #, no-wrap
  34074. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port"
  34075. msgstr ""
  34076. #. type: deftypevr
  34077. #: guix-git/doc/guix.texi:22876
  34078. msgid "The port on which to listen for peer connections when @code{peer-port-random-on-start?} is @code{#f}."
  34079. msgstr ""
  34080. #. type: deftypevr
  34081. #: guix-git/doc/guix.texi:22878
  34082. msgid "Defaults to @samp{51413}."
  34083. msgstr ""
  34084. #. type: deftypevr
  34085. #: guix-git/doc/guix.texi:22881
  34086. #, no-wrap
  34087. msgid "{@code{transmission-daemon-configuration} parameter} boolean port-forwarding-enabled?"
  34088. msgstr ""
  34089. #. type: deftypevr
  34090. #: guix-git/doc/guix.texi:22885
  34091. msgid "If @code{#t}, the daemon will attempt to configure port-forwarding on an upstream gateway automatically using @acronym{UPnP} and @acronym{NAT-PMP}."
  34092. msgstr ""
  34093. #. type: deftypevr
  34094. #: guix-git/doc/guix.texi:22890
  34095. #, no-wrap
  34096. msgid "{@code{transmission-daemon-configuration} parameter} encryption-mode encryption"
  34097. msgstr ""
  34098. #. type: deftypevr
  34099. #: guix-git/doc/guix.texi:22895
  34100. msgid "The encryption preference for peer connections, one of @code{prefer-unencrypted-connections}, @code{prefer-encrypted-connections} or @code{require-encrypted-connections}."
  34101. msgstr ""
  34102. #. type: deftypevr
  34103. #: guix-git/doc/guix.texi:22897
  34104. msgid "Defaults to @samp{prefer-encrypted-connections}."
  34105. msgstr ""
  34106. #. type: deftypevr
  34107. #: guix-git/doc/guix.texi:22900
  34108. #, no-wrap
  34109. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string peer-congestion-algorithm"
  34110. msgstr ""
  34111. #. type: deftypevr
  34112. #: guix-git/doc/guix.texi:22905
  34113. 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)."
  34114. msgstr ""
  34115. #. type: deftypevr
  34116. #: guix-git/doc/guix.texi:22914
  34117. 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."
  34118. msgstr ""
  34119. #. type: deftypevr
  34120. #: guix-git/doc/guix.texi:22922
  34121. 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:"
  34122. msgstr ""
  34123. #. type: lisp
  34124. #: guix-git/doc/guix.texi:22929
  34125. #, no-wrap
  34126. msgid ""
  34127. "(service sysctl-service-type\n"
  34128. " (sysctl-configuration\n"
  34129. " (settings\n"
  34130. " (\"net.ipv4.tcp_allowed_congestion_control\" .\n"
  34131. " \"reno cubic lp\"))))\n"
  34132. msgstr ""
  34133. #. type: deftypevr
  34134. #: guix-git/doc/guix.texi:22932
  34135. msgid "The Transmission Daemon configuration can then be updated with"
  34136. msgstr ""
  34137. #. type: lisp
  34138. #: guix-git/doc/guix.texi:22935
  34139. #, no-wrap
  34140. msgid "(peer-congestion-algorithm \"lp\")\n"
  34141. msgstr ""
  34142. #. type: deftypevr
  34143. #: guix-git/doc/guix.texi:22938
  34144. msgid "and the system reconfigured to have the changes take effect."
  34145. msgstr ""
  34146. #. type: deftypevr
  34147. #: guix-git/doc/guix.texi:22943
  34148. #, no-wrap
  34149. msgid "{@code{transmission-daemon-configuration} parameter} tcp-type-of-service peer-socket-tos"
  34150. msgstr ""
  34151. #. type: deftypevr
  34152. #: guix-git/doc/guix.texi:22947
  34153. 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}."
  34154. msgstr ""
  34155. #. type: deftypevr
  34156. #: guix-git/doc/guix.texi:22949
  34157. msgid "Defaults to @samp{default}."
  34158. msgstr ""
  34159. #. type: deftypevr
  34160. #: guix-git/doc/guix.texi:22952
  34161. #, no-wrap
  34162. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-global"
  34163. msgstr ""
  34164. #. type: deftypevr
  34165. #: guix-git/doc/guix.texi:22954
  34166. msgid "The global limit on the number of connected peers."
  34167. msgstr ""
  34168. #. type: deftypevr
  34169. #: guix-git/doc/guix.texi:22956
  34170. msgid "Defaults to @samp{200}."
  34171. msgstr ""
  34172. #. type: deftypevr
  34173. #: guix-git/doc/guix.texi:22959
  34174. #, no-wrap
  34175. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-per-torrent"
  34176. msgstr ""
  34177. #. type: deftypevr
  34178. #: guix-git/doc/guix.texi:22961
  34179. msgid "The per-torrent limit on the number of connected peers."
  34180. msgstr ""
  34181. #. type: deftypevr
  34182. #: guix-git/doc/guix.texi:22966
  34183. #, no-wrap
  34184. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer upload-slots-per-torrent"
  34185. msgstr ""
  34186. #. type: deftypevr
  34187. #: guix-git/doc/guix.texi:22969
  34188. msgid "The maximum number of peers to which the daemon will upload data simultaneously for each torrent."
  34189. msgstr ""
  34190. #. type: deftypevr
  34191. #: guix-git/doc/guix.texi:22971
  34192. msgid "Defaults to @samp{14}."
  34193. msgstr ""
  34194. #. type: deftypevr
  34195. #: guix-git/doc/guix.texi:22974
  34196. #, no-wrap
  34197. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-id-ttl-hours"
  34198. msgstr ""
  34199. #. type: deftypevr
  34200. #: guix-git/doc/guix.texi:22977
  34201. msgid "The maximum lifespan, in hours, of the peer ID associated with each public torrent before it is regenerated."
  34202. msgstr ""
  34203. #. type: deftypevr
  34204. #: guix-git/doc/guix.texi:22979
  34205. msgid "Defaults to @samp{6}."
  34206. msgstr ""
  34207. #. type: deftypevr
  34208. #: guix-git/doc/guix.texi:22982
  34209. #, no-wrap
  34210. msgid "{@code{transmission-daemon-configuration} parameter} boolean blocklist-enabled?"
  34211. msgstr ""
  34212. #. type: deftypevr
  34213. #: guix-git/doc/guix.texi:22985
  34214. msgid "When @code{#t}, the daemon will ignore peers mentioned in the blocklist it has most recently downloaded from @code{blocklist-url}."
  34215. msgstr ""
  34216. #. type: deftypevr
  34217. #: guix-git/doc/guix.texi:22990
  34218. #, no-wrap
  34219. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string blocklist-url"
  34220. msgstr ""
  34221. #. type: deftypevr
  34222. #: guix-git/doc/guix.texi:22994
  34223. 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}."
  34224. msgstr ""
  34225. #. type: deftypevr
  34226. #: guix-git/doc/guix.texi:22999
  34227. #, no-wrap
  34228. msgid "{@code{transmission-daemon-configuration} parameter} boolean download-queue-enabled?"
  34229. msgstr ""
  34230. #. type: deftypevr
  34231. #: guix-git/doc/guix.texi:23002
  34232. msgid "If @code{#t}, the daemon will be limited to downloading at most @code{download-queue-size} non-stalled torrents simultaneously."
  34233. msgstr ""
  34234. #. type: deftypevr
  34235. #: guix-git/doc/guix.texi:23007
  34236. #, no-wrap
  34237. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer download-queue-size"
  34238. msgstr ""
  34239. #. type: deftypevr
  34240. #: guix-git/doc/guix.texi:23011
  34241. 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}."
  34242. msgstr ""
  34243. #. type: deftypevr
  34244. #: guix-git/doc/guix.texi:23016
  34245. #, no-wrap
  34246. msgid "{@code{transmission-daemon-configuration} parameter} boolean seed-queue-enabled?"
  34247. msgstr ""
  34248. #. type: deftypevr
  34249. #: guix-git/doc/guix.texi:23019
  34250. msgid "If @code{#t}, the daemon will be limited to seeding at most @code{seed-queue-size} non-stalled torrents simultaneously."
  34251. msgstr ""
  34252. #. type: deftypevr
  34253. #: guix-git/doc/guix.texi:23024
  34254. #, no-wrap
  34255. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer seed-queue-size"
  34256. msgstr ""
  34257. #. type: deftypevr
  34258. #: guix-git/doc/guix.texi:23028
  34259. 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}."
  34260. msgstr ""
  34261. #. type: deftypevr
  34262. #: guix-git/doc/guix.texi:23033
  34263. #, no-wrap
  34264. msgid "{@code{transmission-daemon-configuration} parameter} boolean queue-stalled-enabled?"
  34265. msgstr ""
  34266. #. type: deftypevr
  34267. #: guix-git/doc/guix.texi:23038
  34268. 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."
  34269. msgstr ""
  34270. #. type: deftypevr
  34271. #: guix-git/doc/guix.texi:23043
  34272. #, no-wrap
  34273. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer queue-stalled-minutes"
  34274. msgstr ""
  34275. #. type: deftypevr
  34276. #: guix-git/doc/guix.texi:23047
  34277. 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}."
  34278. msgstr ""
  34279. #. type: deftypevr
  34280. #: guix-git/doc/guix.texi:23052
  34281. #, no-wrap
  34282. msgid "{@code{transmission-daemon-configuration} parameter} boolean ratio-limit-enabled?"
  34283. msgstr ""
  34284. #. type: deftypevr
  34285. #: guix-git/doc/guix.texi:23055
  34286. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it reaches the ratio specified by @code{ratio-limit}."
  34287. msgstr ""
  34288. #. type: deftypevr
  34289. #: guix-git/doc/guix.texi:23060
  34290. #, no-wrap
  34291. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-rational ratio-limit"
  34292. msgstr ""
  34293. #. type: deftypevr
  34294. #: guix-git/doc/guix.texi:23063
  34295. msgid "The ratio at which a torrent being seeded will be paused, when @code{ratio-limit-enabled?} is @code{#t}."
  34296. msgstr ""
  34297. #. type: deftypevr
  34298. #: guix-git/doc/guix.texi:23065
  34299. msgid "Defaults to @samp{2.0}."
  34300. msgstr ""
  34301. #. type: deftypevr
  34302. #: guix-git/doc/guix.texi:23068
  34303. #, no-wrap
  34304. msgid "{@code{transmission-daemon-configuration} parameter} boolean idle-seeding-limit-enabled?"
  34305. msgstr ""
  34306. #. type: deftypevr
  34307. #: guix-git/doc/guix.texi:23071
  34308. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it has been idle for @code{idle-seeding-limit} minutes."
  34309. msgstr ""
  34310. #. type: deftypevr
  34311. #: guix-git/doc/guix.texi:23076
  34312. #, no-wrap
  34313. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer idle-seeding-limit"
  34314. msgstr ""
  34315. #. type: deftypevr
  34316. #: guix-git/doc/guix.texi:23080
  34317. 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}."
  34318. msgstr ""
  34319. #. type: deftypevr
  34320. #: guix-git/doc/guix.texi:23085
  34321. #, no-wrap
  34322. msgid "{@code{transmission-daemon-configuration} parameter} boolean dht-enabled?"
  34323. msgstr ""
  34324. #. type: deftypevr
  34325. #: guix-git/doc/guix.texi:23089
  34326. msgid "Enable @uref{http://bittorrent.org/beps/bep_0005.html,the distributed hash table (@acronym{DHT}) protocol}, which supports the use of trackerless torrents."
  34327. msgstr ""
  34328. #. type: deftypevr
  34329. #: guix-git/doc/guix.texi:23094
  34330. #, no-wrap
  34331. msgid "{@code{transmission-daemon-configuration} parameter} boolean lpd-enabled?"
  34332. msgstr ""
  34333. #. type: deftypevr
  34334. #: guix-git/doc/guix.texi:23099
  34335. 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."
  34336. msgstr ""
  34337. #. type: deftypevr
  34338. #: guix-git/doc/guix.texi:23104
  34339. #, no-wrap
  34340. msgid "{@code{transmission-daemon-configuration} parameter} boolean pex-enabled?"
  34341. msgstr ""
  34342. #. type: deftypevr
  34343. #: guix-git/doc/guix.texi:23108
  34344. 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."
  34345. msgstr ""
  34346. #. type: deftypevr
  34347. #: guix-git/doc/guix.texi:23113
  34348. #, no-wrap
  34349. msgid "{@code{transmission-daemon-configuration} parameter} boolean utp-enabled?"
  34350. msgstr ""
  34351. #. type: deftypevr
  34352. #: guix-git/doc/guix.texi:23118
  34353. 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."
  34354. msgstr ""
  34355. #. type: deftypevr
  34356. #: guix-git/doc/guix.texi:23123
  34357. #, no-wrap
  34358. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-enabled?"
  34359. msgstr ""
  34360. #. type: deftypevr
  34361. #: guix-git/doc/guix.texi:23128
  34362. 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."
  34363. msgstr ""
  34364. #. type: deftypevr
  34365. #: guix-git/doc/guix.texi:23133
  34366. #, no-wrap
  34367. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-bind-address"
  34368. msgstr ""
  34369. #. type: deftypevr
  34370. #: guix-git/doc/guix.texi:23136
  34371. msgid "The IP address at which to listen for @acronym{RPC} connections, or ``0.0.0.0'' to listen at all available IP addresses."
  34372. msgstr ""
  34373. #. type: deftypevr
  34374. #: guix-git/doc/guix.texi:23141
  34375. #, no-wrap
  34376. msgid "{@code{transmission-daemon-configuration} parameter} port-number rpc-port"
  34377. msgstr ""
  34378. #. type: deftypevr
  34379. #: guix-git/doc/guix.texi:23143
  34380. msgid "The port on which to listen for @acronym{RPC} connections."
  34381. msgstr ""
  34382. #. type: deftypevr
  34383. #: guix-git/doc/guix.texi:23145
  34384. msgid "Defaults to @samp{9091}."
  34385. msgstr ""
  34386. #. type: deftypevr
  34387. #: guix-git/doc/guix.texi:23148
  34388. #, no-wrap
  34389. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-url"
  34390. msgstr ""
  34391. #. type: deftypevr
  34392. #: guix-git/doc/guix.texi:23150
  34393. msgid "The path prefix to use in the @acronym{RPC}-endpoint @acronym{URL}."
  34394. msgstr ""
  34395. #. type: deftypevr
  34396. #: guix-git/doc/guix.texi:23152
  34397. msgid "Defaults to @samp{\"/transmission/\"}."
  34398. msgstr ""
  34399. #. type: deftypevr
  34400. #: guix-git/doc/guix.texi:23155
  34401. #, no-wrap
  34402. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-authentication-required?"
  34403. msgstr ""
  34404. #. type: deftypevr
  34405. #: guix-git/doc/guix.texi:23160
  34406. 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?}."
  34407. msgstr ""
  34408. #. type: deftypevr
  34409. #: guix-git/doc/guix.texi:23165
  34410. #, no-wrap
  34411. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string rpc-username"
  34412. msgstr ""
  34413. #. type: deftypevr
  34414. #: guix-git/doc/guix.texi:23168
  34415. msgid "The username required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}."
  34416. msgstr ""
  34417. #. type: deftypevr
  34418. #: guix-git/doc/guix.texi:23173
  34419. #, no-wrap
  34420. msgid "{@code{transmission-daemon-configuration} parameter} maybe-transmission-password-hash rpc-password"
  34421. msgstr ""
  34422. #. type: deftypevr
  34423. #: guix-git/doc/guix.texi:23179
  34424. 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."
  34425. msgstr ""
  34426. #. type: deftypevr
  34427. #: guix-git/doc/guix.texi:23184
  34428. #, no-wrap
  34429. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-whitelist-enabled?"
  34430. msgstr ""
  34431. #. type: deftypevr
  34432. #: guix-git/doc/guix.texi:23187
  34433. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they originate from an address specified in @code{rpc-whitelist}."
  34434. msgstr ""
  34435. #. type: deftypevr
  34436. #: guix-git/doc/guix.texi:23192
  34437. #, no-wrap
  34438. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-whitelist"
  34439. msgstr ""
  34440. #. type: deftypevr
  34441. #: guix-git/doc/guix.texi:23196
  34442. 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{*}."
  34443. msgstr ""
  34444. #. type: deftypevr
  34445. #: guix-git/doc/guix.texi:23198
  34446. msgid "Defaults to @samp{(\"127.0.0.1\" \"::1\")}."
  34447. msgstr ""
  34448. #. type: deftypevr
  34449. #: guix-git/doc/guix.texi:23201
  34450. #, no-wrap
  34451. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-host-whitelist-enabled?"
  34452. msgstr ""
  34453. #. type: deftypevr
  34454. #: guix-git/doc/guix.texi:23206
  34455. 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."
  34456. msgstr ""
  34457. #. type: deftypevr
  34458. #: guix-git/doc/guix.texi:23209
  34459. msgid "Note also this functionality is disabled when @code{rpc-authentication-required?} is @code{#t}."
  34460. msgstr ""
  34461. #. type: deftypevr
  34462. #: guix-git/doc/guix.texi:23214
  34463. #, no-wrap
  34464. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-host-whitelist"
  34465. msgstr ""
  34466. #. type: deftypevr
  34467. #: guix-git/doc/guix.texi:23217
  34468. msgid "The list of host names recognized by the @acronym{RPC} server when @code{rpc-host-whitelist-enabled?} is @code{#t}."
  34469. msgstr ""
  34470. #. type: deftypevr
  34471. #: guix-git/doc/guix.texi:23222
  34472. #, no-wrap
  34473. msgid "{@code{transmission-daemon-configuration} parameter} message-level message-level"
  34474. msgstr ""
  34475. #. type: deftypevr
  34476. #: guix-git/doc/guix.texi:23226
  34477. 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}."
  34478. msgstr ""
  34479. #. type: deftypevr
  34480. #: guix-git/doc/guix.texi:23231
  34481. #, no-wrap
  34482. msgid "{@code{transmission-daemon-configuration} parameter} boolean start-added-torrents?"
  34483. msgstr ""
  34484. #. type: deftypevr
  34485. #: guix-git/doc/guix.texi:23234
  34486. msgid "When @code{#t}, torrents are started as soon as they are added; otherwise, they are added in ``paused'' state."
  34487. msgstr ""
  34488. #. type: deftypevr
  34489. #: guix-git/doc/guix.texi:23239
  34490. #, no-wrap
  34491. msgid "{@code{transmission-daemon-configuration} parameter} boolean script-torrent-done-enabled?"
  34492. msgstr ""
  34493. #. type: deftypevr
  34494. #: guix-git/doc/guix.texi:23243
  34495. msgid "When @code{#t}, the script specified by @code{script-torrent-done-filename} will be invoked each time a torrent completes."
  34496. msgstr ""
  34497. #. type: deftypevr
  34498. #: guix-git/doc/guix.texi:23248
  34499. #, no-wrap
  34500. msgid "{@code{transmission-daemon-configuration} parameter} maybe-file-object script-torrent-done-filename"
  34501. msgstr ""
  34502. #. type: deftypevr
  34503. #: guix-git/doc/guix.texi:23252
  34504. 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}."
  34505. msgstr ""
  34506. #. type: deftypevr
  34507. #: guix-git/doc/guix.texi:23257
  34508. #, no-wrap
  34509. msgid "{@code{transmission-daemon-configuration} parameter} boolean scrape-paused-torrents-enabled?"
  34510. msgstr ""
  34511. #. type: deftypevr
  34512. #: guix-git/doc/guix.texi:23260
  34513. msgid "When @code{#t}, the daemon will scrape trackers for a torrent even when the torrent is paused."
  34514. msgstr ""
  34515. #. type: deftypevr
  34516. #: guix-git/doc/guix.texi:23265
  34517. #, no-wrap
  34518. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer cache-size-mb"
  34519. msgstr ""
  34520. #. type: deftypevr
  34521. #: guix-git/doc/guix.texi:23269
  34522. 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."
  34523. msgstr ""
  34524. #. type: deftypevr
  34525. #: guix-git/doc/guix.texi:23271
  34526. msgid "Defaults to @samp{4}."
  34527. msgstr ""
  34528. #. type: deftypevr
  34529. #: guix-git/doc/guix.texi:23274
  34530. #, no-wrap
  34531. msgid "{@code{transmission-daemon-configuration} parameter} boolean prefetch-enabled?"
  34532. msgstr ""
  34533. #. type: deftypevr
  34534. #: guix-git/doc/guix.texi:23278
  34535. 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."
  34536. msgstr ""
  34537. #. type: subsubheading
  34538. #: guix-git/doc/guix.texi:23291
  34539. #, no-wrap
  34540. msgid "Tailon Service"
  34541. msgstr ""
  34542. #. type: Plain text
  34543. #: guix-git/doc/guix.texi:23295
  34544. msgid "@uref{https://tailon.readthedocs.io/, Tailon} is a web application for viewing and searching log files."
  34545. msgstr ""
  34546. #. type: Plain text
  34547. #: guix-git/doc/guix.texi:23298
  34548. msgid "The following example will configure the service with default values. By default, Tailon can be accessed on port 8080 (@code{http://localhost:8080})."
  34549. msgstr ""
  34550. #. type: lisp
  34551. #: guix-git/doc/guix.texi:23301
  34552. #, no-wrap
  34553. msgid "(service tailon-service-type)\n"
  34554. msgstr ""
  34555. #. type: Plain text
  34556. #: guix-git/doc/guix.texi:23305
  34557. msgid "The following example customises more of the Tailon configuration, adding @command{sed} to the list of allowed commands."
  34558. msgstr ""
  34559. #. type: lisp
  34560. #: guix-git/doc/guix.texi:23312
  34561. #, no-wrap
  34562. msgid ""
  34563. "(service tailon-service-type\n"
  34564. " (tailon-configuration\n"
  34565. " (config-file\n"
  34566. " (tailon-configuration-file\n"
  34567. " (allowed-commands '(\"tail\" \"grep\" \"awk\" \"sed\"))))))\n"
  34568. msgstr ""
  34569. #. type: deftp
  34570. #: guix-git/doc/guix.texi:23315
  34571. #, no-wrap
  34572. msgid "{Data Type} tailon-configuration"
  34573. msgstr ""
  34574. #. type: deftp
  34575. #: guix-git/doc/guix.texi:23318
  34576. msgid "Data type representing the configuration of Tailon. This type has the following parameters:"
  34577. msgstr ""
  34578. #. type: item
  34579. #: guix-git/doc/guix.texi:23320
  34580. #, no-wrap
  34581. msgid "@code{config-file} (default: @code{(tailon-configuration-file)})"
  34582. msgstr ""
  34583. #. type: table
  34584. #: guix-git/doc/guix.texi:23324
  34585. 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})."
  34586. msgstr ""
  34587. #. type: table
  34588. #: guix-git/doc/guix.texi:23327
  34589. msgid "For example, to instead use a local file, the @code{local-file} function can be used:"
  34590. msgstr ""
  34591. #. type: lisp
  34592. #: guix-git/doc/guix.texi:23332
  34593. #, no-wrap
  34594. msgid ""
  34595. "(service tailon-service-type\n"
  34596. " (tailon-configuration\n"
  34597. " (config-file (local-file \"./my-tailon.conf\"))))\n"
  34598. msgstr ""
  34599. #. type: item
  34600. #: guix-git/doc/guix.texi:23334
  34601. #, no-wrap
  34602. msgid "@code{package} (default: @code{tailon})"
  34603. msgstr ""
  34604. #. type: table
  34605. #: guix-git/doc/guix.texi:23336
  34606. msgid "The tailon package to use."
  34607. msgstr ""
  34608. #. type: deftp
  34609. #: guix-git/doc/guix.texi:23340
  34610. #, no-wrap
  34611. msgid "{Data Type} tailon-configuration-file"
  34612. msgstr ""
  34613. #. type: deftp
  34614. #: guix-git/doc/guix.texi:23343
  34615. msgid "Data type representing the configuration options for Tailon. This type has the following parameters:"
  34616. msgstr ""
  34617. #. type: item
  34618. #: guix-git/doc/guix.texi:23345
  34619. #, no-wrap
  34620. msgid "@code{files} (default: @code{(list \"/var/log\")})"
  34621. msgstr ""
  34622. #. type: table
  34623. #: guix-git/doc/guix.texi:23350
  34624. 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."
  34625. msgstr ""
  34626. #. type: item
  34627. #: guix-git/doc/guix.texi:23351
  34628. #, no-wrap
  34629. msgid "@code{bind} (default: @code{\"localhost:8080\"})"
  34630. msgstr ""
  34631. #. type: table
  34632. #: guix-git/doc/guix.texi:23353
  34633. msgid "Address and port to which Tailon should bind on."
  34634. msgstr ""
  34635. #. type: item
  34636. #: guix-git/doc/guix.texi:23354
  34637. #, no-wrap
  34638. msgid "@code{relative-root} (default: @code{#f})"
  34639. msgstr ""
  34640. #. type: table
  34641. #: guix-git/doc/guix.texi:23356
  34642. msgid "URL path to use for Tailon, set to @code{#f} to not use a path."
  34643. msgstr ""
  34644. #. type: item
  34645. #: guix-git/doc/guix.texi:23357
  34646. #, no-wrap
  34647. msgid "@code{allow-transfers?} (default: @code{#t})"
  34648. msgstr ""
  34649. #. type: table
  34650. #: guix-git/doc/guix.texi:23359
  34651. msgid "Allow downloading the log files in the web interface."
  34652. msgstr ""
  34653. #. type: item
  34654. #: guix-git/doc/guix.texi:23360
  34655. #, no-wrap
  34656. msgid "@code{follow-names?} (default: @code{#t})"
  34657. msgstr ""
  34658. #. type: table
  34659. #: guix-git/doc/guix.texi:23362
  34660. msgid "Allow tailing of not-yet existent files."
  34661. msgstr ""
  34662. #. type: item
  34663. #: guix-git/doc/guix.texi:23363
  34664. #, no-wrap
  34665. msgid "@code{tail-lines} (default: @code{200})"
  34666. msgstr ""
  34667. #. type: table
  34668. #: guix-git/doc/guix.texi:23365
  34669. msgid "Number of lines to read initially from each file."
  34670. msgstr ""
  34671. #. type: item
  34672. #: guix-git/doc/guix.texi:23366
  34673. #, no-wrap
  34674. msgid "@code{allowed-commands} (default: @code{(list \"tail\" \"grep\" \"awk\")})"
  34675. msgstr ""
  34676. #. type: table
  34677. #: guix-git/doc/guix.texi:23368
  34678. msgid "Commands to allow running. By default, @code{sed} is disabled."
  34679. msgstr ""
  34680. #. type: table
  34681. #: guix-git/doc/guix.texi:23371
  34682. msgid "Set @code{debug?} to @code{#t} to show debug messages."
  34683. msgstr ""
  34684. #. type: item
  34685. #: guix-git/doc/guix.texi:23372
  34686. #, no-wrap
  34687. msgid "@code{wrap-lines} (default: @code{#t})"
  34688. msgstr ""
  34689. #. type: table
  34690. #: guix-git/doc/guix.texi:23376
  34691. 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."
  34692. msgstr ""
  34693. #. type: item
  34694. #: guix-git/doc/guix.texi:23377
  34695. #, no-wrap
  34696. msgid "@code{http-auth} (default: @code{#f})"
  34697. msgstr ""
  34698. #. type: table
  34699. #: guix-git/doc/guix.texi:23381
  34700. msgid "HTTP authentication type to use. Set to @code{#f} to disable authentication (the default). Supported values are @code{\"digest\"} or @code{\"basic\"}."
  34701. msgstr ""
  34702. #. type: item
  34703. #: guix-git/doc/guix.texi:23382
  34704. #, no-wrap
  34705. msgid "@code{users} (default: @code{#f})"
  34706. msgstr ""
  34707. #. type: table
  34708. #: guix-git/doc/guix.texi:23387
  34709. 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."
  34710. msgstr ""
  34711. #. type: lisp
  34712. #: guix-git/doc/guix.texi:23393
  34713. #, no-wrap
  34714. msgid ""
  34715. "(tailon-configuration-file\n"
  34716. " (http-auth \"basic\")\n"
  34717. " (users '((\"user1\" . \"password1\")\n"
  34718. " (\"user2\" . \"password2\"))))\n"
  34719. msgstr ""
  34720. #. type: subsubheading
  34721. #: guix-git/doc/guix.texi:23399
  34722. #, no-wrap
  34723. msgid "Darkstat Service"
  34724. msgstr ""
  34725. #. type: cindex
  34726. #: guix-git/doc/guix.texi:23400
  34727. #, no-wrap
  34728. msgid "darkstat"
  34729. msgstr ""
  34730. #. type: Plain text
  34731. #: guix-git/doc/guix.texi:23403
  34732. msgid "Darkstat is a packet sniffer that captures network traffic, calculates statistics about usage, and serves reports over HTTP."
  34733. msgstr ""
  34734. #. type: defvar
  34735. #: guix-git/doc/guix.texi:23404
  34736. #, no-wrap
  34737. msgid "{Scheme Variable} darkstat-service-type"
  34738. msgstr ""
  34739. #. type: defvar
  34740. #: guix-git/doc/guix.texi:23409
  34741. 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:"
  34742. msgstr ""
  34743. #. type: lisp
  34744. #: guix-git/doc/guix.texi:23414
  34745. #, no-wrap
  34746. msgid ""
  34747. "(service darkstat-service-type\n"
  34748. " (darkstat-configuration\n"
  34749. " (interface \"eno1\")))\n"
  34750. msgstr ""
  34751. #. type: deftp
  34752. #: guix-git/doc/guix.texi:23417
  34753. #, no-wrap
  34754. msgid "{Data Type} darkstat-configuration"
  34755. msgstr ""
  34756. #. type: deftp
  34757. #: guix-git/doc/guix.texi:23419
  34758. msgid "Data type representing the configuration of @command{darkstat}."
  34759. msgstr ""
  34760. #. type: item
  34761. #: guix-git/doc/guix.texi:23421
  34762. #, no-wrap
  34763. msgid "@code{package} (default: @code{darkstat})"
  34764. msgstr ""
  34765. #. type: table
  34766. #: guix-git/doc/guix.texi:23423
  34767. msgid "The darkstat package to use."
  34768. msgstr ""
  34769. #. type: code{#1}
  34770. #: guix-git/doc/guix.texi:23424
  34771. #, no-wrap
  34772. msgid "interface"
  34773. msgstr ""
  34774. #. type: table
  34775. #: guix-git/doc/guix.texi:23426
  34776. msgid "Capture traffic on the specified network interface."
  34777. msgstr ""
  34778. #. type: item
  34779. #: guix-git/doc/guix.texi:23427
  34780. #, no-wrap
  34781. msgid "@code{port} (default: @code{\"667\"})"
  34782. msgstr ""
  34783. #. type: table
  34784. #: guix-git/doc/guix.texi:23429
  34785. msgid "Bind the web interface to the specified port."
  34786. msgstr ""
  34787. #. type: table
  34788. #: guix-git/doc/guix.texi:23432 guix-git/doc/guix.texi:23467
  34789. msgid "Bind the web interface to the specified address."
  34790. msgstr ""
  34791. #. type: item
  34792. #: guix-git/doc/guix.texi:23433
  34793. #, no-wrap
  34794. msgid "@code{base} (default: @code{\"/\"})"
  34795. msgstr ""
  34796. #. type: table
  34797. #: guix-git/doc/guix.texi:23436
  34798. msgid "Specify the path of the base URL@. This can be useful if @command{darkstat} is accessed via a reverse proxy."
  34799. msgstr ""
  34800. #. type: subsubheading
  34801. #: guix-git/doc/guix.texi:23440
  34802. #, no-wrap
  34803. msgid "Prometheus Node Exporter Service"
  34804. msgstr ""
  34805. #. type: cindex
  34806. #: guix-git/doc/guix.texi:23442
  34807. #, no-wrap
  34808. msgid "prometheus-node-exporter"
  34809. msgstr ""
  34810. #. type: Plain text
  34811. #: guix-git/doc/guix.texi:23447
  34812. 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."
  34813. msgstr ""
  34814. #. type: defvar
  34815. #: guix-git/doc/guix.texi:23448
  34816. #, no-wrap
  34817. msgid "{Scheme variable} prometheus-node-exporter-service-type"
  34818. msgstr ""
  34819. #. type: defvar
  34820. #: guix-git/doc/guix.texi:23452
  34821. 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}."
  34822. msgstr ""
  34823. #. type: lisp
  34824. #: guix-git/doc/guix.texi:23455
  34825. #, no-wrap
  34826. msgid "(service prometheus-node-exporter-service-type)\n"
  34827. msgstr ""
  34828. #. type: deftp
  34829. #: guix-git/doc/guix.texi:23458
  34830. #, no-wrap
  34831. msgid "{Data Type} prometheus-node-exporter-configuration"
  34832. msgstr ""
  34833. #. type: deftp
  34834. #: guix-git/doc/guix.texi:23460
  34835. msgid "Data type representing the configuration of @command{node_exporter}."
  34836. msgstr ""
  34837. #. type: item
  34838. #: guix-git/doc/guix.texi:23462
  34839. #, no-wrap
  34840. msgid "@code{package} (default: @code{go-github-com-prometheus-node-exporter})"
  34841. msgstr ""
  34842. #. type: table
  34843. #: guix-git/doc/guix.texi:23464
  34844. msgid "The prometheus-node-exporter package to use."
  34845. msgstr ""
  34846. #. type: item
  34847. #: guix-git/doc/guix.texi:23465
  34848. #, no-wrap
  34849. msgid "@code{web-listen-address} (default: @code{\":9100\"})"
  34850. msgstr ""
  34851. #. type: item
  34852. #: guix-git/doc/guix.texi:23468
  34853. #, fuzzy, no-wrap
  34854. msgid "@code{textfile-directory} (default: @code{\"/var/lib/prometheus/node-exporter\"})"
  34855. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  34856. #. type: table
  34857. #: guix-git/doc/guix.texi:23472
  34858. 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."
  34859. msgstr ""
  34860. #. type: table
  34861. #: guix-git/doc/guix.texi:23475
  34862. msgid "Extra options to pass to the Prometheus node exporter."
  34863. msgstr ""
  34864. #. type: subsubheading
  34865. #: guix-git/doc/guix.texi:23479
  34866. #, no-wrap
  34867. msgid "Zabbix server"
  34868. msgstr ""
  34869. #. type: cindex
  34870. #: guix-git/doc/guix.texi:23480
  34871. #, no-wrap
  34872. msgid "zabbix zabbix-server"
  34873. msgstr ""
  34874. #. type: Plain text
  34875. #: guix-git/doc/guix.texi:23483
  34876. msgid "Zabbix provides monitoring metrics, among others network utilization, CPU load and disk space consumption:"
  34877. msgstr ""
  34878. #. type: item
  34879. #: guix-git/doc/guix.texi:23485
  34880. #, no-wrap
  34881. msgid "High performance, high capacity (able to monitor hundreds of thousands of devices)."
  34882. msgstr ""
  34883. #. type: item
  34884. #: guix-git/doc/guix.texi:23486
  34885. #, no-wrap
  34886. msgid "Auto-discovery of servers and network devices and interfaces."
  34887. msgstr ""
  34888. #. type: item
  34889. #: guix-git/doc/guix.texi:23487
  34890. #, no-wrap
  34891. msgid "Low-level discovery, allows to automatically start monitoring new items, file systems or network interfaces among others."
  34892. msgstr ""
  34893. #. type: item
  34894. #: guix-git/doc/guix.texi:23488
  34895. #, no-wrap
  34896. msgid "Distributed monitoring with centralized web administration."
  34897. msgstr ""
  34898. #. type: item
  34899. #: guix-git/doc/guix.texi:23489
  34900. #, no-wrap
  34901. msgid "Native high performance agents."
  34902. msgstr ""
  34903. #. type: item
  34904. #: guix-git/doc/guix.texi:23490
  34905. #, no-wrap
  34906. msgid "SLA, and ITIL KPI metrics on reporting."
  34907. msgstr ""
  34908. #. type: item
  34909. #: guix-git/doc/guix.texi:23491
  34910. #, no-wrap
  34911. msgid "High-level (business) view of monitored resources through user-defined visual console screens and dashboards."
  34912. msgstr ""
  34913. #. type: item
  34914. #: guix-git/doc/guix.texi:23492
  34915. #, no-wrap
  34916. msgid "Remote command execution through Zabbix proxies."
  34917. msgstr ""
  34918. #. type: Plain text
  34919. #: guix-git/doc/guix.texi:23498
  34920. msgid "Available @code{zabbix-server-configuration} fields are:"
  34921. msgstr ""
  34922. #. type: deftypevr
  34923. #: guix-git/doc/guix.texi:23499
  34924. #, no-wrap
  34925. msgid "{@code{zabbix-server-configuration} parameter} package zabbix-server"
  34926. msgstr ""
  34927. #. type: deftypevr
  34928. #: guix-git/doc/guix.texi:23501
  34929. msgid "The zabbix-server package."
  34930. msgstr ""
  34931. #. type: deftypevr
  34932. #: guix-git/doc/guix.texi:23504
  34933. #, no-wrap
  34934. msgid "{@code{zabbix-server-configuration} parameter} string user"
  34935. msgstr ""
  34936. #. type: deftypevr
  34937. #: guix-git/doc/guix.texi:23506
  34938. msgid "User who will run the Zabbix server."
  34939. msgstr ""
  34940. #. type: deftypevr
  34941. #: guix-git/doc/guix.texi:23508 guix-git/doc/guix.texi:23515
  34942. #: guix-git/doc/guix.texi:23529 guix-git/doc/guix.texi:23536
  34943. #: guix-git/doc/guix.texi:23637 guix-git/doc/guix.texi:23644
  34944. #: guix-git/doc/guix.texi:23755 guix-git/doc/guix.texi:23762
  34945. msgid "Defaults to @samp{\"zabbix\"}."
  34946. msgstr ""
  34947. #. type: deftypevr
  34948. #: guix-git/doc/guix.texi:23511
  34949. #, no-wrap
  34950. msgid "{@code{zabbix-server-configuration} parameter} group group"
  34951. msgstr ""
  34952. #. type: deftypevr
  34953. #: guix-git/doc/guix.texi:23513
  34954. msgid "Group who will run the Zabbix server."
  34955. msgstr ""
  34956. #. type: deftypevr
  34957. #: guix-git/doc/guix.texi:23518
  34958. #, no-wrap
  34959. msgid "{@code{zabbix-server-configuration} parameter} string db-host"
  34960. msgstr ""
  34961. #. type: deftypevr
  34962. #: guix-git/doc/guix.texi:23520 guix-git/doc/guix.texi:23739
  34963. msgid "Database host name."
  34964. msgstr ""
  34965. #. type: deftypevr
  34966. #: guix-git/doc/guix.texi:23522
  34967. msgid "Defaults to @samp{\"127.0.0.1\"}."
  34968. msgstr ""
  34969. #. type: deftypevr
  34970. #: guix-git/doc/guix.texi:23525
  34971. #, no-wrap
  34972. msgid "{@code{zabbix-server-configuration} parameter} string db-name"
  34973. msgstr ""
  34974. #. type: deftypevr
  34975. #: guix-git/doc/guix.texi:23527 guix-git/doc/guix.texi:23753
  34976. msgid "Database name."
  34977. msgstr ""
  34978. #. type: deftypevr
  34979. #: guix-git/doc/guix.texi:23532
  34980. #, no-wrap
  34981. msgid "{@code{zabbix-server-configuration} parameter} string db-user"
  34982. msgstr ""
  34983. #. type: deftypevr
  34984. #: guix-git/doc/guix.texi:23534 guix-git/doc/guix.texi:23760
  34985. msgid "Database user."
  34986. msgstr ""
  34987. #. type: deftypevr
  34988. #: guix-git/doc/guix.texi:23539
  34989. #, no-wrap
  34990. msgid "{@code{zabbix-server-configuration} parameter} string db-password"
  34991. msgstr ""
  34992. #. type: deftypevr
  34993. #: guix-git/doc/guix.texi:23542
  34994. msgid "Database password. Please, use @code{include-files} with @code{DBPassword=SECRET} inside a specified file instead."
  34995. msgstr ""
  34996. #. type: deftypevr
  34997. #: guix-git/doc/guix.texi:23547
  34998. #, no-wrap
  34999. msgid "{@code{zabbix-server-configuration} parameter} number db-port"
  35000. msgstr ""
  35001. #. type: deftypevr
  35002. #: guix-git/doc/guix.texi:23549 guix-git/doc/guix.texi:23746
  35003. msgid "Database port."
  35004. msgstr ""
  35005. #. type: deftypevr
  35006. #: guix-git/doc/guix.texi:23551 guix-git/doc/guix.texi:23748
  35007. msgid "Defaults to @samp{5432}."
  35008. msgstr ""
  35009. #. type: deftypevr
  35010. #: guix-git/doc/guix.texi:23554
  35011. #, no-wrap
  35012. msgid "{@code{zabbix-server-configuration} parameter} string log-type"
  35013. msgstr ""
  35014. #. type: deftypevr
  35015. #: guix-git/doc/guix.texi:23556 guix-git/doc/guix.texi:23657
  35016. msgid "Specifies where log messages are written to:"
  35017. msgstr ""
  35018. #. type: itemize
  35019. #: guix-git/doc/guix.texi:23560 guix-git/doc/guix.texi:23661
  35020. msgid "@code{system} - syslog."
  35021. msgstr ""
  35022. #. type: itemize
  35023. #: guix-git/doc/guix.texi:23563 guix-git/doc/guix.texi:23664
  35024. msgid "@code{file} - file specified with @code{log-file} parameter."
  35025. msgstr ""
  35026. #. type: itemize
  35027. #: guix-git/doc/guix.texi:23566 guix-git/doc/guix.texi:23667
  35028. msgid "@code{console} - standard output."
  35029. msgstr ""
  35030. #. type: deftypevr
  35031. #: guix-git/doc/guix.texi:23573
  35032. #, no-wrap
  35033. msgid "{@code{zabbix-server-configuration} parameter} string log-file"
  35034. msgstr ""
  35035. #. type: deftypevr
  35036. #: guix-git/doc/guix.texi:23575 guix-git/doc/guix.texi:23676
  35037. msgid "Log file name for @code{log-type} @code{file} parameter."
  35038. msgstr ""
  35039. #. type: deftypevr
  35040. #: guix-git/doc/guix.texi:23577
  35041. msgid "Defaults to @samp{\"/var/log/zabbix/server.log\"}."
  35042. msgstr ""
  35043. #. type: deftypevr
  35044. #: guix-git/doc/guix.texi:23580
  35045. #, no-wrap
  35046. msgid "{@code{zabbix-server-configuration} parameter} string pid-file"
  35047. msgstr ""
  35048. #. type: deftypevr
  35049. #: guix-git/doc/guix.texi:23582 guix-git/doc/guix.texi:23683
  35050. msgid "Name of PID file."
  35051. msgstr ""
  35052. #. type: deftypevr
  35053. #: guix-git/doc/guix.texi:23584
  35054. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_server.pid\"}."
  35055. msgstr ""
  35056. #. type: deftypevr
  35057. #: guix-git/doc/guix.texi:23587
  35058. #, no-wrap
  35059. msgid "{@code{zabbix-server-configuration} parameter} string ssl-ca-location"
  35060. msgstr ""
  35061. #. type: deftypevr
  35062. #: guix-git/doc/guix.texi:23590
  35063. msgid "The location of certificate authority (CA) files for SSL server certificate verification."
  35064. msgstr ""
  35065. #. type: deftypevr
  35066. #: guix-git/doc/guix.texi:23592
  35067. msgid "Defaults to @samp{\"/etc/ssl/certs/ca-certificates.crt\"}."
  35068. msgstr ""
  35069. #. type: deftypevr
  35070. #: guix-git/doc/guix.texi:23595
  35071. #, no-wrap
  35072. msgid "{@code{zabbix-server-configuration} parameter} string ssl-cert-location"
  35073. msgstr ""
  35074. #. type: deftypevr
  35075. #: guix-git/doc/guix.texi:23597
  35076. msgid "Location of SSL client certificates."
  35077. msgstr ""
  35078. #. type: deftypevr
  35079. #: guix-git/doc/guix.texi:23599
  35080. msgid "Defaults to @samp{\"/etc/ssl/certs\"}."
  35081. msgstr ""
  35082. #. type: deftypevr
  35083. #: guix-git/doc/guix.texi:23602
  35084. #, no-wrap
  35085. msgid "{@code{zabbix-server-configuration} parameter} string extra-options"
  35086. msgstr ""
  35087. #. type: deftypevr
  35088. #: guix-git/doc/guix.texi:23604 guix-git/doc/guix.texi:23708
  35089. msgid "Extra options will be appended to Zabbix server configuration file."
  35090. msgstr ""
  35091. #. type: deftypevr
  35092. #: guix-git/doc/guix.texi:23609
  35093. #, no-wrap
  35094. msgid "{@code{zabbix-server-configuration} parameter} include-files include-files"
  35095. msgstr ""
  35096. #. type: deftypevr
  35097. #: guix-git/doc/guix.texi:23612 guix-git/doc/guix.texi:23716
  35098. msgid "You may include individual files or all files in a directory in the configuration file."
  35099. msgstr ""
  35100. #. type: subsubheading
  35101. #: guix-git/doc/guix.texi:23619
  35102. #, no-wrap
  35103. msgid "Zabbix agent"
  35104. msgstr ""
  35105. #. type: cindex
  35106. #: guix-git/doc/guix.texi:23620
  35107. #, no-wrap
  35108. msgid "zabbix zabbix-agent"
  35109. msgstr ""
  35110. #. type: Plain text
  35111. #: guix-git/doc/guix.texi:23623
  35112. msgid "Zabbix agent gathers information for Zabbix server."
  35113. msgstr ""
  35114. #. type: Plain text
  35115. #: guix-git/doc/guix.texi:23627
  35116. msgid "Available @code{zabbix-agent-configuration} fields are:"
  35117. msgstr ""
  35118. #. type: deftypevr
  35119. #: guix-git/doc/guix.texi:23628
  35120. #, no-wrap
  35121. msgid "{@code{zabbix-agent-configuration} parameter} package zabbix-agent"
  35122. msgstr ""
  35123. #. type: deftypevr
  35124. #: guix-git/doc/guix.texi:23630
  35125. msgid "The zabbix-agent package."
  35126. msgstr ""
  35127. #. type: deftypevr
  35128. #: guix-git/doc/guix.texi:23633
  35129. #, no-wrap
  35130. msgid "{@code{zabbix-agent-configuration} parameter} string user"
  35131. msgstr ""
  35132. #. type: deftypevr
  35133. #: guix-git/doc/guix.texi:23635
  35134. msgid "User who will run the Zabbix agent."
  35135. msgstr ""
  35136. #. type: deftypevr
  35137. #: guix-git/doc/guix.texi:23640
  35138. #, no-wrap
  35139. msgid "{@code{zabbix-agent-configuration} parameter} group group"
  35140. msgstr ""
  35141. #. type: deftypevr
  35142. #: guix-git/doc/guix.texi:23642
  35143. msgid "Group who will run the Zabbix agent."
  35144. msgstr ""
  35145. #. type: deftypevr
  35146. #: guix-git/doc/guix.texi:23647
  35147. #, no-wrap
  35148. msgid "{@code{zabbix-agent-configuration} parameter} string hostname"
  35149. msgstr ""
  35150. #. type: deftypevr
  35151. #: guix-git/doc/guix.texi:23650
  35152. msgid "Unique, case sensitive hostname which is required for active checks and must match hostname as configured on the server."
  35153. msgstr ""
  35154. #. type: deftypevr
  35155. #: guix-git/doc/guix.texi:23655
  35156. #, no-wrap
  35157. msgid "{@code{zabbix-agent-configuration} parameter} string log-type"
  35158. msgstr ""
  35159. #. type: deftypevr
  35160. #: guix-git/doc/guix.texi:23674
  35161. #, no-wrap
  35162. msgid "{@code{zabbix-agent-configuration} parameter} string log-file"
  35163. msgstr ""
  35164. #. type: deftypevr
  35165. #: guix-git/doc/guix.texi:23678
  35166. msgid "Defaults to @samp{\"/var/log/zabbix/agent.log\"}."
  35167. msgstr ""
  35168. #. type: deftypevr
  35169. #: guix-git/doc/guix.texi:23681
  35170. #, no-wrap
  35171. msgid "{@code{zabbix-agent-configuration} parameter} string pid-file"
  35172. msgstr ""
  35173. #. type: deftypevr
  35174. #: guix-git/doc/guix.texi:23685
  35175. msgid "Defaults to @samp{\"/var/run/zabbix/zabbix_agent.pid\"}."
  35176. msgstr ""
  35177. #. type: deftypevr
  35178. #: guix-git/doc/guix.texi:23688
  35179. #, no-wrap
  35180. msgid "{@code{zabbix-agent-configuration} parameter} list server"
  35181. msgstr ""
  35182. #. type: deftypevr
  35183. #: guix-git/doc/guix.texi:23692
  35184. 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."
  35185. msgstr ""
  35186. #. type: deftypevr
  35187. #: guix-git/doc/guix.texi:23694 guix-git/doc/guix.texi:23703
  35188. msgid "Defaults to @samp{(\"127.0.0.1\")}."
  35189. msgstr ""
  35190. #. type: deftypevr
  35191. #: guix-git/doc/guix.texi:23697
  35192. #, no-wrap
  35193. msgid "{@code{zabbix-agent-configuration} parameter} list server-active"
  35194. msgstr ""
  35195. #. type: deftypevr
  35196. #: guix-git/doc/guix.texi:23701
  35197. 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."
  35198. msgstr ""
  35199. #. type: deftypevr
  35200. #: guix-git/doc/guix.texi:23706
  35201. #, no-wrap
  35202. msgid "{@code{zabbix-agent-configuration} parameter} string extra-options"
  35203. msgstr ""
  35204. #. type: deftypevr
  35205. #: guix-git/doc/guix.texi:23713
  35206. #, no-wrap
  35207. msgid "{@code{zabbix-agent-configuration} parameter} include-files include-files"
  35208. msgstr ""
  35209. #. type: subsubheading
  35210. #: guix-git/doc/guix.texi:23723
  35211. #, no-wrap
  35212. msgid "Zabbix front-end"
  35213. msgstr ""
  35214. #. type: cindex
  35215. #: guix-git/doc/guix.texi:23724
  35216. #, no-wrap
  35217. msgid "zabbix zabbix-front-end"
  35218. msgstr ""
  35219. #. type: Plain text
  35220. #: guix-git/doc/guix.texi:23727
  35221. msgid "This service provides a WEB interface to Zabbix server."
  35222. msgstr ""
  35223. #. type: Plain text
  35224. #: guix-git/doc/guix.texi:23731
  35225. msgid "Available @code{zabbix-front-end-configuration} fields are:"
  35226. msgstr ""
  35227. #. type: deftypevr
  35228. #: guix-git/doc/guix.texi:23732
  35229. #, no-wrap
  35230. msgid "{@code{zabbix-front-end-configuration} parameter} nginx-server-configuration-list nginx"
  35231. msgstr ""
  35232. #. type: deftypevr
  35233. #: guix-git/doc/guix.texi:23734 guix-git/doc/guix.texi:29896
  35234. msgid "NGINX configuration."
  35235. msgstr ""
  35236. #. type: deftypevr
  35237. #: guix-git/doc/guix.texi:23737
  35238. #, no-wrap
  35239. msgid "{@code{zabbix-front-end-configuration} parameter} string db-host"
  35240. msgstr ""
  35241. #. type: deftypevr
  35242. #: guix-git/doc/guix.texi:23744
  35243. #, no-wrap
  35244. msgid "{@code{zabbix-front-end-configuration} parameter} number db-port"
  35245. msgstr ""
  35246. #. type: deftypevr
  35247. #: guix-git/doc/guix.texi:23751
  35248. #, no-wrap
  35249. msgid "{@code{zabbix-front-end-configuration} parameter} string db-name"
  35250. msgstr ""
  35251. #. type: deftypevr
  35252. #: guix-git/doc/guix.texi:23758
  35253. #, no-wrap
  35254. msgid "{@code{zabbix-front-end-configuration} parameter} string db-user"
  35255. msgstr ""
  35256. #. type: deftypevr
  35257. #: guix-git/doc/guix.texi:23765
  35258. #, no-wrap
  35259. msgid "{@code{zabbix-front-end-configuration} parameter} string db-password"
  35260. msgstr ""
  35261. #. type: deftypevr
  35262. #: guix-git/doc/guix.texi:23767
  35263. msgid "Database password. Please, use @code{db-secret-file} instead."
  35264. msgstr ""
  35265. #. type: deftypevr
  35266. #: guix-git/doc/guix.texi:23772
  35267. #, no-wrap
  35268. msgid "{@code{zabbix-front-end-configuration} parameter} string db-secret-file"
  35269. msgstr ""
  35270. #. type: deftypevr
  35271. #: guix-git/doc/guix.texi:23777
  35272. 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']}."
  35273. msgstr ""
  35274. #. type: deftypevr
  35275. #: guix-git/doc/guix.texi:23782
  35276. #, no-wrap
  35277. msgid "{@code{zabbix-front-end-configuration} parameter} string zabbix-host"
  35278. msgstr ""
  35279. #. type: deftypevr
  35280. #: guix-git/doc/guix.texi:23784
  35281. msgid "Zabbix server hostname."
  35282. msgstr ""
  35283. #. type: deftypevr
  35284. #: guix-git/doc/guix.texi:23789
  35285. #, no-wrap
  35286. msgid "{@code{zabbix-front-end-configuration} parameter} number zabbix-port"
  35287. msgstr ""
  35288. #. type: deftypevr
  35289. #: guix-git/doc/guix.texi:23791
  35290. msgid "Zabbix server port."
  35291. msgstr ""
  35292. #. type: deftypevr
  35293. #: guix-git/doc/guix.texi:23793
  35294. msgid "Defaults to @samp{10051}."
  35295. msgstr ""
  35296. #. type: cindex
  35297. #: guix-git/doc/guix.texi:23801
  35298. #, no-wrap
  35299. msgid "Kerberos"
  35300. msgstr ""
  35301. #. type: Plain text
  35302. #: guix-git/doc/guix.texi:23805
  35303. msgid "The @code{(gnu services kerberos)} module provides services relating to the authentication protocol @dfn{Kerberos}."
  35304. msgstr ""
  35305. #. type: subsubheading
  35306. #: guix-git/doc/guix.texi:23806
  35307. #, no-wrap
  35308. msgid "Krb5 Service"
  35309. msgstr ""
  35310. #. type: Plain text
  35311. #: guix-git/doc/guix.texi:23813
  35312. 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."
  35313. msgstr ""
  35314. #. type: Plain text
  35315. #: guix-git/doc/guix.texi:23817
  35316. 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."
  35317. msgstr ""
  35318. #. type: defvr
  35319. #: guix-git/doc/guix.texi:23818
  35320. #, no-wrap
  35321. msgid "{Scheme Variable} krb5-service-type"
  35322. msgstr ""
  35323. #. type: defvr
  35324. #: guix-git/doc/guix.texi:23820
  35325. msgid "A service type for Kerberos 5 clients."
  35326. msgstr ""
  35327. #. type: Plain text
  35328. #: guix-git/doc/guix.texi:23824
  35329. msgid "Here is an example of its use:"
  35330. msgstr ""
  35331. #. type: lisp
  35332. #: guix-git/doc/guix.texi:23838
  35333. #, no-wrap
  35334. msgid ""
  35335. "(service krb5-service-type\n"
  35336. " (krb5-configuration\n"
  35337. " (default-realm \"EXAMPLE.COM\")\n"
  35338. " (allow-weak-crypto? #t)\n"
  35339. " (realms (list\n"
  35340. " (krb5-realm\n"
  35341. " (name \"EXAMPLE.COM\")\n"
  35342. " (admin-server \"groucho.example.com\")\n"
  35343. " (kdc \"karl.example.com\"))\n"
  35344. " (krb5-realm\n"
  35345. " (name \"ARGRX.EDU\")\n"
  35346. " (admin-server \"kerb-admin.argrx.edu\")\n"
  35347. " (kdc \"keys.argrx.edu\"))))))\n"
  35348. msgstr ""
  35349. #. type: Plain text
  35350. #: guix-git/doc/guix.texi:23842
  35351. msgid "This example provides a Kerberos@tie{}5 client configuration which:"
  35352. msgstr ""
  35353. #. type: item
  35354. #: guix-git/doc/guix.texi:23843
  35355. #, no-wrap
  35356. msgid "Recognizes two realms, @i{viz:} ``EXAMPLE.COM'' and ``ARGRX.EDU'', both"
  35357. msgstr ""
  35358. #. type: itemize
  35359. #: guix-git/doc/guix.texi:23845
  35360. msgid "of which have distinct administration servers and key distribution centers;"
  35361. msgstr ""
  35362. #. type: item
  35363. #: guix-git/doc/guix.texi:23845
  35364. #, no-wrap
  35365. msgid "Will default to the realm ``EXAMPLE.COM'' if the realm is not explicitly"
  35366. msgstr ""
  35367. #. type: itemize
  35368. #: guix-git/doc/guix.texi:23847
  35369. msgid "specified by clients;"
  35370. msgstr ""
  35371. #. type: item
  35372. #: guix-git/doc/guix.texi:23847
  35373. #, no-wrap
  35374. msgid "Accepts services which only support encryption types known to be weak."
  35375. msgstr ""
  35376. #. type: Plain text
  35377. #: guix-git/doc/guix.texi:23855
  35378. 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."
  35379. msgstr ""
  35380. #. type: deftp
  35381. #: guix-git/doc/guix.texi:23857
  35382. #, no-wrap
  35383. msgid "{Data Type} krb5-realm"
  35384. msgstr ""
  35385. #. type: cindex
  35386. #: guix-git/doc/guix.texi:23858
  35387. #, no-wrap
  35388. msgid "realm, kerberos"
  35389. msgstr ""
  35390. #. type: table
  35391. #: guix-git/doc/guix.texi:23864
  35392. 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."
  35393. msgstr ""
  35394. #. type: code{#1}
  35395. #: guix-git/doc/guix.texi:23865
  35396. #, no-wrap
  35397. msgid "admin-server"
  35398. msgstr ""
  35399. #. type: table
  35400. #: guix-git/doc/guix.texi:23868
  35401. msgid "This field is a string identifying the host where the administration server is running."
  35402. msgstr ""
  35403. #. type: code{#1}
  35404. #: guix-git/doc/guix.texi:23869
  35405. #, no-wrap
  35406. msgid "kdc"
  35407. msgstr ""
  35408. #. type: table
  35409. #: guix-git/doc/guix.texi:23872
  35410. msgid "This field is a string identifying the key distribution center for the realm."
  35411. msgstr ""
  35412. #. type: deftp
  35413. #: guix-git/doc/guix.texi:23875
  35414. #, no-wrap
  35415. msgid "{Data Type} krb5-configuration"
  35416. msgstr ""
  35417. #. type: item
  35418. #: guix-git/doc/guix.texi:23878
  35419. #, no-wrap
  35420. msgid "@code{allow-weak-crypto?} (default: @code{#f})"
  35421. msgstr ""
  35422. #. type: table
  35423. #: guix-git/doc/guix.texi:23881
  35424. msgid "If this flag is @code{#t} then services which only offer encryption algorithms known to be weak will be accepted."
  35425. msgstr ""
  35426. #. type: item
  35427. #: guix-git/doc/guix.texi:23882
  35428. #, no-wrap
  35429. msgid "@code{default-realm} (default: @code{#f})"
  35430. msgstr ""
  35431. #. type: table
  35432. #: guix-git/doc/guix.texi:23889
  35433. 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}."
  35434. msgstr ""
  35435. #. type: code{#1}
  35436. #: guix-git/doc/guix.texi:23890
  35437. #, no-wrap
  35438. msgid "realms"
  35439. msgstr ""
  35440. #. type: table
  35441. #: guix-git/doc/guix.texi:23895
  35442. 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."
  35443. msgstr ""
  35444. #. type: subsubheading
  35445. #: guix-git/doc/guix.texi:23899
  35446. #, no-wrap
  35447. msgid "PAM krb5 Service"
  35448. msgstr ""
  35449. #. type: cindex
  35450. #: guix-git/doc/guix.texi:23900
  35451. #, no-wrap
  35452. msgid "pam-krb5"
  35453. msgstr ""
  35454. #. type: Plain text
  35455. #: guix-git/doc/guix.texi:23906
  35456. 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."
  35457. msgstr ""
  35458. #. type: defvr
  35459. #: guix-git/doc/guix.texi:23907
  35460. #, no-wrap
  35461. msgid "{Scheme Variable} pam-krb5-service-type"
  35462. msgstr ""
  35463. #. type: defvr
  35464. #: guix-git/doc/guix.texi:23909
  35465. msgid "A service type for the Kerberos 5 PAM module."
  35466. msgstr ""
  35467. #. type: deftp
  35468. #: guix-git/doc/guix.texi:23911
  35469. #, no-wrap
  35470. msgid "{Data Type} pam-krb5-configuration"
  35471. msgstr ""
  35472. #. type: deftp
  35473. #: guix-git/doc/guix.texi:23914
  35474. msgid "Data type representing the configuration of the Kerberos 5 PAM module. This type has the following parameters:"
  35475. msgstr ""
  35476. #. type: item
  35477. #: guix-git/doc/guix.texi:23915
  35478. #, no-wrap
  35479. msgid "@code{pam-krb5} (default: @code{pam-krb5})"
  35480. msgstr ""
  35481. #. type: table
  35482. #: guix-git/doc/guix.texi:23917
  35483. msgid "The pam-krb5 package to use."
  35484. msgstr ""
  35485. #. type: item
  35486. #: guix-git/doc/guix.texi:23918
  35487. #, no-wrap
  35488. msgid "@code{minimum-uid} (default: @code{1000})"
  35489. msgstr ""
  35490. #. type: table
  35491. #: guix-git/doc/guix.texi:23921
  35492. msgid "The smallest user ID for which Kerberos authentications should be attempted. Local accounts with lower values will silently fail to authenticate."
  35493. msgstr ""
  35494. #. type: cindex
  35495. #: guix-git/doc/guix.texi:23927
  35496. #, no-wrap
  35497. msgid "LDAP"
  35498. msgstr ""
  35499. #. type: cindex
  35500. #: guix-git/doc/guix.texi:23928
  35501. #, no-wrap
  35502. msgid "nslcd, LDAP service"
  35503. msgstr ""
  35504. #. type: Plain text
  35505. #: guix-git/doc/guix.texi:23935
  35506. 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."
  35507. msgstr ""
  35508. #. type: Plain text
  35509. #: guix-git/doc/guix.texi:23939
  35510. 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:"
  35511. msgstr ""
  35512. #. type: lisp
  35513. #: guix-git/doc/guix.texi:23962
  35514. #, no-wrap
  35515. msgid ""
  35516. "(use-service-modules authentication)\n"
  35517. "(use-modules (gnu system nss))\n"
  35518. "...\n"
  35519. "(operating-system\n"
  35520. " ...\n"
  35521. " (services\n"
  35522. " (cons*\n"
  35523. " (service nslcd-service-type)\n"
  35524. " (service dhcp-client-service-type)\n"
  35525. " %base-services))\n"
  35526. " (name-service-switch\n"
  35527. " (let ((services (list (name-service (name \"db\"))\n"
  35528. " (name-service (name \"files\"))\n"
  35529. " (name-service (name \"ldap\")))))\n"
  35530. " (name-service-switch\n"
  35531. " (inherit %mdns-host-lookup-nss)\n"
  35532. " (password services)\n"
  35533. " (shadow services)\n"
  35534. " (group services)\n"
  35535. " (netgroup services)\n"
  35536. " (gshadow services)))))\n"
  35537. msgstr ""
  35538. #. type: Plain text
  35539. #: guix-git/doc/guix.texi:23967
  35540. msgid "Available @code{nslcd-configuration} fields are:"
  35541. msgstr ""
  35542. #. type: deftypevr
  35543. #: guix-git/doc/guix.texi:23968
  35544. #, no-wrap
  35545. msgid "{@code{nslcd-configuration} parameter} package nss-pam-ldapd"
  35546. msgstr ""
  35547. #. type: deftypevr
  35548. #: guix-git/doc/guix.texi:23970
  35549. msgid "The @code{nss-pam-ldapd} package to use."
  35550. msgstr ""
  35551. #. type: deftypevr
  35552. #: guix-git/doc/guix.texi:23973
  35553. #, no-wrap
  35554. msgid "{@code{nslcd-configuration} parameter} maybe-number threads"
  35555. msgstr ""
  35556. #. type: deftypevr
  35557. #: guix-git/doc/guix.texi:23977
  35558. 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."
  35559. msgstr ""
  35560. #. type: deftypevr
  35561. #: guix-git/doc/guix.texi:23982
  35562. #, no-wrap
  35563. msgid "{@code{nslcd-configuration} parameter} string uid"
  35564. msgstr ""
  35565. #. type: deftypevr
  35566. #: guix-git/doc/guix.texi:23984
  35567. msgid "This specifies the user id with which the daemon should be run."
  35568. msgstr ""
  35569. #. type: deftypevr
  35570. #: guix-git/doc/guix.texi:23986 guix-git/doc/guix.texi:23993
  35571. msgid "Defaults to @samp{\"nslcd\"}."
  35572. msgstr ""
  35573. #. type: deftypevr
  35574. #: guix-git/doc/guix.texi:23989
  35575. #, no-wrap
  35576. msgid "{@code{nslcd-configuration} parameter} string gid"
  35577. msgstr ""
  35578. #. type: deftypevr
  35579. #: guix-git/doc/guix.texi:23991
  35580. msgid "This specifies the group id with which the daemon should be run."
  35581. msgstr ""
  35582. #. type: deftypevr
  35583. #: guix-git/doc/guix.texi:23996
  35584. #, no-wrap
  35585. msgid "{@code{nslcd-configuration} parameter} log-option log"
  35586. msgstr ""
  35587. #. type: deftypevr
  35588. #: guix-git/doc/guix.texi:24004
  35589. 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."
  35590. msgstr ""
  35591. #. type: deftypevr
  35592. #: guix-git/doc/guix.texi:24006
  35593. msgid "Defaults to @samp{(\"/var/log/nslcd\" info)}."
  35594. msgstr ""
  35595. #. type: deftypevr
  35596. #: guix-git/doc/guix.texi:24009
  35597. #, no-wrap
  35598. msgid "{@code{nslcd-configuration} parameter} list uri"
  35599. msgstr ""
  35600. #. type: deftypevr
  35601. #: guix-git/doc/guix.texi:24012
  35602. msgid "The list of LDAP server URIs. Normally, only the first server will be used with the following servers as fall-back."
  35603. msgstr ""
  35604. #. type: deftypevr
  35605. #: guix-git/doc/guix.texi:24014
  35606. msgid "Defaults to @samp{(\"ldap://localhost:389/\")}."
  35607. msgstr ""
  35608. #. type: deftypevr
  35609. #: guix-git/doc/guix.texi:24017
  35610. #, no-wrap
  35611. msgid "{@code{nslcd-configuration} parameter} maybe-string ldap-version"
  35612. msgstr ""
  35613. #. type: deftypevr
  35614. #: guix-git/doc/guix.texi:24020
  35615. msgid "The version of the LDAP protocol to use. The default is to use the maximum version supported by the LDAP library."
  35616. msgstr ""
  35617. #. type: deftypevr
  35618. #: guix-git/doc/guix.texi:24025
  35619. #, no-wrap
  35620. msgid "{@code{nslcd-configuration} parameter} maybe-string binddn"
  35621. msgstr ""
  35622. #. type: deftypevr
  35623. #: guix-git/doc/guix.texi:24028
  35624. msgid "Specifies the distinguished name with which to bind to the directory server for lookups. The default is to bind anonymously."
  35625. msgstr ""
  35626. #. type: deftypevr
  35627. #: guix-git/doc/guix.texi:24033
  35628. #, no-wrap
  35629. msgid "{@code{nslcd-configuration} parameter} maybe-string bindpw"
  35630. msgstr ""
  35631. #. type: deftypevr
  35632. #: guix-git/doc/guix.texi:24036
  35633. msgid "Specifies the credentials with which to bind. This option is only applicable when used with binddn."
  35634. msgstr ""
  35635. #. type: deftypevr
  35636. #: guix-git/doc/guix.texi:24041
  35637. #, no-wrap
  35638. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmoddn"
  35639. msgstr ""
  35640. #. type: deftypevr
  35641. #: guix-git/doc/guix.texi:24044
  35642. msgid "Specifies the distinguished name to use when the root user tries to modify a user's password using the PAM module."
  35643. msgstr ""
  35644. #. type: deftypevr
  35645. #: guix-git/doc/guix.texi:24049
  35646. #, no-wrap
  35647. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmodpw"
  35648. msgstr ""
  35649. #. type: deftypevr
  35650. #: guix-git/doc/guix.texi:24053
  35651. 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"
  35652. msgstr ""
  35653. #. type: deftypevr
  35654. #: guix-git/doc/guix.texi:24058
  35655. #, no-wrap
  35656. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-mech"
  35657. msgstr ""
  35658. #. type: deftypevr
  35659. #: guix-git/doc/guix.texi:24061
  35660. msgid "Specifies the SASL mechanism to be used when performing SASL authentication."
  35661. msgstr ""
  35662. #. type: deftypevr
  35663. #: guix-git/doc/guix.texi:24066
  35664. #, no-wrap
  35665. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-realm"
  35666. msgstr ""
  35667. #. type: deftypevr
  35668. #: guix-git/doc/guix.texi:24068
  35669. msgid "Specifies the SASL realm to be used when performing SASL authentication."
  35670. msgstr ""
  35671. #. type: deftypevr
  35672. #: guix-git/doc/guix.texi:24073
  35673. #, no-wrap
  35674. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authcid"
  35675. msgstr ""
  35676. #. type: deftypevr
  35677. #: guix-git/doc/guix.texi:24076
  35678. msgid "Specifies the authentication identity to be used when performing SASL authentication."
  35679. msgstr ""
  35680. #. type: deftypevr
  35681. #: guix-git/doc/guix.texi:24081
  35682. #, no-wrap
  35683. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authzid"
  35684. msgstr ""
  35685. #. type: deftypevr
  35686. #: guix-git/doc/guix.texi:24084
  35687. msgid "Specifies the authorization identity to be used when performing SASL authentication."
  35688. msgstr ""
  35689. #. type: deftypevr
  35690. #: guix-git/doc/guix.texi:24089
  35691. #, no-wrap
  35692. msgid "{@code{nslcd-configuration} parameter} maybe-boolean sasl-canonicalize?"
  35693. msgstr ""
  35694. #. type: deftypevr
  35695. #: guix-git/doc/guix.texi:24094
  35696. 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."
  35697. msgstr ""
  35698. #. type: deftypevr
  35699. #: guix-git/doc/guix.texi:24099
  35700. #, no-wrap
  35701. msgid "{@code{nslcd-configuration} parameter} maybe-string krb5-ccname"
  35702. msgstr ""
  35703. #. type: deftypevr
  35704. #: guix-git/doc/guix.texi:24101
  35705. msgid "Set the name for the GSS-API Kerberos credentials cache."
  35706. msgstr ""
  35707. #. type: deftypevr
  35708. #: guix-git/doc/guix.texi:24106
  35709. #, no-wrap
  35710. msgid "{@code{nslcd-configuration} parameter} string base"
  35711. msgstr ""
  35712. #. type: deftypevr
  35713. #: guix-git/doc/guix.texi:24108
  35714. msgid "The directory search base."
  35715. msgstr ""
  35716. #. type: deftypevr
  35717. #: guix-git/doc/guix.texi:24110
  35718. msgid "Defaults to @samp{\"dc=example,dc=com\"}."
  35719. msgstr ""
  35720. #. type: deftypevr
  35721. #: guix-git/doc/guix.texi:24113
  35722. #, no-wrap
  35723. msgid "{@code{nslcd-configuration} parameter} scope-option scope"
  35724. msgstr ""
  35725. #. type: deftypevr
  35726. #: guix-git/doc/guix.texi:24117
  35727. 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."
  35728. msgstr ""
  35729. #. type: deftypevr
  35730. #: guix-git/doc/guix.texi:24119
  35731. msgid "Defaults to @samp{(subtree)}."
  35732. msgstr ""
  35733. #. type: deftypevr
  35734. #: guix-git/doc/guix.texi:24122
  35735. #, no-wrap
  35736. msgid "{@code{nslcd-configuration} parameter} maybe-deref-option deref"
  35737. msgstr ""
  35738. #. type: deftypevr
  35739. #: guix-git/doc/guix.texi:24125
  35740. msgid "Specifies the policy for dereferencing aliases. The default policy is to never dereference aliases."
  35741. msgstr ""
  35742. #. type: deftypevr
  35743. #: guix-git/doc/guix.texi:24130
  35744. #, no-wrap
  35745. msgid "{@code{nslcd-configuration} parameter} maybe-boolean referrals"
  35746. msgstr ""
  35747. #. type: deftypevr
  35748. #: guix-git/doc/guix.texi:24133
  35749. msgid "Specifies whether automatic referral chasing should be enabled. The default behaviour is to chase referrals."
  35750. msgstr ""
  35751. #. type: deftypevr
  35752. #: guix-git/doc/guix.texi:24138
  35753. #, no-wrap
  35754. msgid "{@code{nslcd-configuration} parameter} list-of-map-entries maps"
  35755. msgstr ""
  35756. #. type: deftypevr
  35757. #: guix-git/doc/guix.texi:24143
  35758. 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."
  35759. msgstr ""
  35760. #. type: deftypevr
  35761. #: guix-git/doc/guix.texi:24148
  35762. #, no-wrap
  35763. msgid "{@code{nslcd-configuration} parameter} list-of-filter-entries filters"
  35764. msgstr ""
  35765. #. type: deftypevr
  35766. #: guix-git/doc/guix.texi:24151
  35767. msgid "A list of filters consisting of the name of a map to which the filter applies and an LDAP search filter expression."
  35768. msgstr ""
  35769. #. type: deftypevr
  35770. #: guix-git/doc/guix.texi:24156
  35771. #, no-wrap
  35772. msgid "{@code{nslcd-configuration} parameter} maybe-number bind-timelimit"
  35773. msgstr ""
  35774. #. type: deftypevr
  35775. #: guix-git/doc/guix.texi:24159
  35776. msgid "Specifies the time limit in seconds to use when connecting to the directory server. The default value is 10 seconds."
  35777. msgstr ""
  35778. #. type: deftypevr
  35779. #: guix-git/doc/guix.texi:24164
  35780. #, no-wrap
  35781. msgid "{@code{nslcd-configuration} parameter} maybe-number timelimit"
  35782. msgstr ""
  35783. #. type: deftypevr
  35784. #: guix-git/doc/guix.texi:24168
  35785. 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."
  35786. msgstr ""
  35787. #. type: deftypevr
  35788. #: guix-git/doc/guix.texi:24173
  35789. #, no-wrap
  35790. msgid "{@code{nslcd-configuration} parameter} maybe-number idle-timelimit"
  35791. msgstr ""
  35792. #. type: deftypevr
  35793. #: guix-git/doc/guix.texi:24177
  35794. 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."
  35795. msgstr ""
  35796. #. type: deftypevr
  35797. #: guix-git/doc/guix.texi:24182
  35798. #, no-wrap
  35799. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-sleeptime"
  35800. msgstr ""
  35801. #. type: deftypevr
  35802. #: guix-git/doc/guix.texi:24186
  35803. 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."
  35804. msgstr ""
  35805. #. type: deftypevr
  35806. #: guix-git/doc/guix.texi:24191
  35807. #, no-wrap
  35808. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-retrytime"
  35809. msgstr ""
  35810. #. type: deftypevr
  35811. #: guix-git/doc/guix.texi:24195
  35812. 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."
  35813. msgstr ""
  35814. #. type: deftypevr
  35815. #: guix-git/doc/guix.texi:24200
  35816. #, no-wrap
  35817. msgid "{@code{nslcd-configuration} parameter} maybe-ssl-option ssl"
  35818. msgstr ""
  35819. #. type: deftypevr
  35820. #: guix-git/doc/guix.texi:24204
  35821. 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."
  35822. msgstr ""
  35823. #. type: deftypevr
  35824. #: guix-git/doc/guix.texi:24209
  35825. #, no-wrap
  35826. msgid "{@code{nslcd-configuration} parameter} maybe-tls-reqcert-option tls-reqcert"
  35827. msgstr ""
  35828. #. type: deftypevr
  35829. #: guix-git/doc/guix.texi:24212
  35830. 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."
  35831. msgstr ""
  35832. #. type: deftypevr
  35833. #: guix-git/doc/guix.texi:24217
  35834. #, no-wrap
  35835. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertdir"
  35836. msgstr ""
  35837. #. type: deftypevr
  35838. #: guix-git/doc/guix.texi:24220
  35839. msgid "Specifies the directory containing X.509 certificates for peer authen‐ tication. This parameter is ignored when using GnuTLS."
  35840. msgstr ""
  35841. #. type: deftypevr
  35842. #: guix-git/doc/guix.texi:24225
  35843. #, no-wrap
  35844. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertfile"
  35845. msgstr ""
  35846. #. type: deftypevr
  35847. #: guix-git/doc/guix.texi:24227
  35848. msgid "Specifies the path to the X.509 certificate for peer authentication."
  35849. msgstr ""
  35850. #. type: deftypevr
  35851. #: guix-git/doc/guix.texi:24232
  35852. #, no-wrap
  35853. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-randfile"
  35854. msgstr ""
  35855. #. type: deftypevr
  35856. #: guix-git/doc/guix.texi:24235
  35857. msgid "Specifies the path to an entropy source. This parameter is ignored when using GnuTLS."
  35858. msgstr ""
  35859. #. type: deftypevr
  35860. #: guix-git/doc/guix.texi:24240
  35861. #, no-wrap
  35862. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-ciphers"
  35863. msgstr ""
  35864. #. type: deftypevr
  35865. #: guix-git/doc/guix.texi:24242
  35866. msgid "Specifies the ciphers to use for TLS as a string."
  35867. msgstr ""
  35868. #. type: deftypevr
  35869. #: guix-git/doc/guix.texi:24247
  35870. #, no-wrap
  35871. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cert"
  35872. msgstr ""
  35873. #. type: deftypevr
  35874. #: guix-git/doc/guix.texi:24250
  35875. msgid "Specifies the path to the file containing the local certificate for client TLS authentication."
  35876. msgstr ""
  35877. #. type: deftypevr
  35878. #: guix-git/doc/guix.texi:24255
  35879. #, no-wrap
  35880. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-key"
  35881. msgstr ""
  35882. #. type: deftypevr
  35883. #: guix-git/doc/guix.texi:24258
  35884. msgid "Specifies the path to the file containing the private key for client TLS authentication."
  35885. msgstr ""
  35886. #. type: deftypevr
  35887. #: guix-git/doc/guix.texi:24263
  35888. #, no-wrap
  35889. msgid "{@code{nslcd-configuration} parameter} maybe-number pagesize"
  35890. msgstr ""
  35891. #. type: deftypevr
  35892. #: guix-git/doc/guix.texi:24267
  35893. 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."
  35894. msgstr ""
  35895. #. type: deftypevr
  35896. #: guix-git/doc/guix.texi:24272
  35897. #, no-wrap
  35898. msgid "{@code{nslcd-configuration} parameter} maybe-ignore-users-option nss-initgroups-ignoreusers"
  35899. msgstr ""
  35900. #. type: deftypevr
  35901. #: guix-git/doc/guix.texi:24276
  35902. 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."
  35903. msgstr ""
  35904. #. type: deftypevr
  35905. #: guix-git/doc/guix.texi:24281
  35906. #, no-wrap
  35907. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-min-uid"
  35908. msgstr ""
  35909. #. type: deftypevr
  35910. #: guix-git/doc/guix.texi:24284
  35911. msgid "This option ensures that LDAP users with a numeric user id lower than the specified value are ignored."
  35912. msgstr ""
  35913. #. type: deftypevr
  35914. #: guix-git/doc/guix.texi:24289
  35915. #, no-wrap
  35916. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-uid-offset"
  35917. msgstr ""
  35918. #. type: deftypevr
  35919. #: guix-git/doc/guix.texi:24292
  35920. 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."
  35921. msgstr ""
  35922. #. type: deftypevr
  35923. #: guix-git/doc/guix.texi:24297
  35924. #, no-wrap
  35925. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-gid-offset"
  35926. msgstr ""
  35927. #. type: deftypevr
  35928. #: guix-git/doc/guix.texi:24300
  35929. 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."
  35930. msgstr ""
  35931. #. type: deftypevr
  35932. #: guix-git/doc/guix.texi:24305
  35933. #, no-wrap
  35934. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-nested-groups"
  35935. msgstr ""
  35936. #. type: deftypevr
  35937. #: guix-git/doc/guix.texi:24311
  35938. 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."
  35939. msgstr ""
  35940. #. type: deftypevr
  35941. #: guix-git/doc/guix.texi:24316
  35942. #, no-wrap
  35943. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-getgrent-skipmembers"
  35944. msgstr ""
  35945. #. type: deftypevr
  35946. #: guix-git/doc/guix.texi:24321
  35947. 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."
  35948. msgstr ""
  35949. #. type: deftypevr
  35950. #: guix-git/doc/guix.texi:24326
  35951. #, no-wrap
  35952. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-disable-enumeration"
  35953. msgstr ""
  35954. #. type: deftypevr
  35955. #: guix-git/doc/guix.texi:24332
  35956. 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."
  35957. msgstr ""
  35958. #. type: deftypevr
  35959. #: guix-git/doc/guix.texi:24337
  35960. #, no-wrap
  35961. msgid "{@code{nslcd-configuration} parameter} maybe-string validnames"
  35962. msgstr ""
  35963. #. type: deftypevr
  35964. #: guix-git/doc/guix.texi:24341
  35965. 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."
  35966. msgstr ""
  35967. #. type: deftypevr
  35968. #: guix-git/doc/guix.texi:24346
  35969. #, no-wrap
  35970. msgid "{@code{nslcd-configuration} parameter} maybe-boolean ignorecase"
  35971. msgstr ""
  35972. #. type: deftypevr
  35973. #: guix-git/doc/guix.texi:24351
  35974. 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."
  35975. msgstr ""
  35976. #. type: deftypevr
  35977. #: guix-git/doc/guix.texi:24356
  35978. #, no-wrap
  35979. msgid "{@code{nslcd-configuration} parameter} maybe-boolean pam-authc-ppolicy"
  35980. msgstr ""
  35981. #. type: deftypevr
  35982. #: guix-git/doc/guix.texi:24359
  35983. msgid "This option specifies whether password policy controls are requested and handled from the LDAP server when performing user authentication."
  35984. msgstr ""
  35985. #. type: deftypevr
  35986. #: guix-git/doc/guix.texi:24364
  35987. #, no-wrap
  35988. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authc-search"
  35989. msgstr ""
  35990. #. type: deftypevr
  35991. #: guix-git/doc/guix.texi:24370
  35992. 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."
  35993. msgstr ""
  35994. #. type: deftypevr
  35995. #: guix-git/doc/guix.texi:24375
  35996. #, no-wrap
  35997. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authz-search"
  35998. msgstr ""
  35999. #. type: deftypevr
  36000. #: guix-git/doc/guix.texi:24379
  36001. 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."
  36002. msgstr ""
  36003. #. type: deftypevr
  36004. #: guix-git/doc/guix.texi:24384
  36005. #, no-wrap
  36006. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-password-prohibit-message"
  36007. msgstr ""
  36008. #. type: deftypevr
  36009. #: guix-git/doc/guix.texi:24389
  36010. 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."
  36011. msgstr ""
  36012. #. type: deftypevr
  36013. #: guix-git/doc/guix.texi:24394
  36014. #, no-wrap
  36015. msgid "{@code{nslcd-configuration} parameter} list pam-services"
  36016. msgstr ""
  36017. #. type: deftypevr
  36018. #: guix-git/doc/guix.texi:24396
  36019. msgid "List of pam service names for which LDAP authentication should suffice."
  36020. msgstr ""
  36021. #. type: cindex
  36022. #: guix-git/doc/guix.texi:24407
  36023. #, no-wrap
  36024. msgid "web"
  36025. msgstr ""
  36026. #. type: cindex
  36027. #: guix-git/doc/guix.texi:24408
  36028. #, no-wrap
  36029. msgid "www"
  36030. msgstr ""
  36031. #. type: cindex
  36032. #: guix-git/doc/guix.texi:24409
  36033. #, no-wrap
  36034. msgid "HTTP"
  36035. msgstr ""
  36036. #. type: Plain text
  36037. #: guix-git/doc/guix.texi:24412
  36038. msgid "The @code{(gnu services web)} module provides the Apache HTTP Server, the nginx web server, and also a fastcgi wrapper daemon."
  36039. msgstr ""
  36040. #. type: subsubheading
  36041. #: guix-git/doc/guix.texi:24413
  36042. #, no-wrap
  36043. msgid "Apache HTTP Server"
  36044. msgstr ""
  36045. #. type: deffn
  36046. #: guix-git/doc/guix.texi:24415
  36047. #, no-wrap
  36048. msgid "{Scheme Variable} httpd-service-type"
  36049. msgstr ""
  36050. #. type: deffn
  36051. #: guix-git/doc/guix.texi:24419
  36052. 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."
  36053. msgstr ""
  36054. #. type: deffn
  36055. #: guix-git/doc/guix.texi:24421 guix-git/doc/guix.texi:24602
  36056. msgid "A simple example configuration is given below."
  36057. msgstr ""
  36058. #. type: lisp
  36059. #: guix-git/doc/guix.texi:24429
  36060. #, no-wrap
  36061. msgid ""
  36062. "(service httpd-service-type\n"
  36063. " (httpd-configuration\n"
  36064. " (config\n"
  36065. " (httpd-config-file\n"
  36066. " (server-name \"www.example.com\")\n"
  36067. " (document-root \"/srv/http/www.example.com\")))))\n"
  36068. msgstr ""
  36069. #. type: deffn
  36070. #: guix-git/doc/guix.texi:24433
  36071. msgid "Other services can also extend the @code{httpd-service-type} to add to the configuration."
  36072. msgstr ""
  36073. #. type: lisp
  36074. #: guix-git/doc/guix.texi:24442 guix-git/doc/guix.texi:24582
  36075. #, no-wrap
  36076. msgid ""
  36077. "(simple-service 'www.example.com-server httpd-service-type\n"
  36078. " (list\n"
  36079. " (httpd-virtualhost\n"
  36080. " \"*:80\"\n"
  36081. " (list (string-join '(\"ServerName www.example.com\"\n"
  36082. " \"DocumentRoot /srv/http/www.example.com\")\n"
  36083. " \"\\n\")))))\n"
  36084. msgstr ""
  36085. #. type: Plain text
  36086. #: guix-git/doc/guix.texi:24448
  36087. msgid "The details for the @code{httpd-configuration}, @code{httpd-module}, @code{httpd-config-file} and @code{httpd-virtualhost} record types are given below."
  36088. msgstr ""
  36089. #. type: deffn
  36090. #: guix-git/doc/guix.texi:24449
  36091. #, no-wrap
  36092. msgid "{Data Type} httpd-configuration"
  36093. msgstr ""
  36094. #. type: deffn
  36095. #: guix-git/doc/guix.texi:24451
  36096. msgid "This data type represents the configuration for the httpd service."
  36097. msgstr ""
  36098. #. type: item
  36099. #: guix-git/doc/guix.texi:24453
  36100. #, no-wrap
  36101. msgid "@code{package} (default: @code{httpd})"
  36102. msgstr ""
  36103. #. type: table
  36104. #: guix-git/doc/guix.texi:24455
  36105. msgid "The httpd package to use."
  36106. msgstr ""
  36107. #. type: item
  36108. #: guix-git/doc/guix.texi:24456 guix-git/doc/guix.texi:24545
  36109. #, no-wrap
  36110. msgid "@code{pid-file} (default: @code{\"/var/run/httpd\"})"
  36111. msgstr ""
  36112. #. type: table
  36113. #: guix-git/doc/guix.texi:24458
  36114. msgid "The pid file used by the shepherd-service."
  36115. msgstr ""
  36116. #. type: item
  36117. #: guix-git/doc/guix.texi:24459
  36118. #, no-wrap
  36119. msgid "@code{config} (default: @code{(httpd-config-file)})"
  36120. msgstr ""
  36121. #. type: table
  36122. #: guix-git/doc/guix.texi:24464
  36123. 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."
  36124. msgstr ""
  36125. #. type: deffn
  36126. #: guix-git/doc/guix.texi:24468
  36127. #, no-wrap
  36128. msgid "{Data Type} httpd-module"
  36129. msgstr ""
  36130. #. type: deffn
  36131. #: guix-git/doc/guix.texi:24470
  36132. msgid "This data type represents a module for the httpd service."
  36133. msgstr ""
  36134. #. type: table
  36135. #: guix-git/doc/guix.texi:24474
  36136. msgid "The name of the module."
  36137. msgstr ""
  36138. #. type: table
  36139. #: guix-git/doc/guix.texi:24480
  36140. 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\")}."
  36141. msgstr ""
  36142. #. type: defvr
  36143. #: guix-git/doc/guix.texi:24484
  36144. #, no-wrap
  36145. msgid "{Scheme Variable} %default-httpd-modules"
  36146. msgstr ""
  36147. #. type: defvr
  36148. #: guix-git/doc/guix.texi:24486
  36149. msgid "A default list of @code{httpd-module} objects."
  36150. msgstr ""
  36151. #. type: deffn
  36152. #: guix-git/doc/guix.texi:24488
  36153. #, no-wrap
  36154. msgid "{Data Type} httpd-config-file"
  36155. msgstr ""
  36156. #. type: deffn
  36157. #: guix-git/doc/guix.texi:24490
  36158. msgid "This data type represents a configuration file for the httpd service."
  36159. msgstr ""
  36160. #. type: item
  36161. #: guix-git/doc/guix.texi:24492
  36162. #, no-wrap
  36163. msgid "@code{modules} (default: @code{%default-httpd-modules})"
  36164. msgstr ""
  36165. #. type: table
  36166. #: guix-git/doc/guix.texi:24495
  36167. msgid "The modules to load. Additional modules can be added here, or loaded by additional configuration."
  36168. msgstr ""
  36169. #. type: table
  36170. #: guix-git/doc/guix.texi:24498
  36171. 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}:"
  36172. msgstr ""
  36173. #. type: lisp
  36174. #: guix-git/doc/guix.texi:24520
  36175. #, no-wrap
  36176. msgid ""
  36177. "(service httpd-service-type\n"
  36178. " (httpd-configuration\n"
  36179. " (config\n"
  36180. " (httpd-config-file\n"
  36181. " (modules (cons*\n"
  36182. " (httpd-module\n"
  36183. " (name \"proxy_module\")\n"
  36184. " (file \"modules/mod_proxy.so\"))\n"
  36185. " (httpd-module\n"
  36186. " (name \"proxy_fcgi_module\")\n"
  36187. " (file \"modules/mod_proxy_fcgi.so\"))\n"
  36188. " %default-httpd-modules))\n"
  36189. " (extra-config (list \"\\\n"
  36190. "<FilesMatch \\\\.php$>\n"
  36191. " SetHandler \\\"proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/\\\"\n"
  36192. "</FilesMatch>\"))))))\n"
  36193. "(service php-fpm-service-type\n"
  36194. " (php-fpm-configuration\n"
  36195. " (socket \"/var/run/php-fpm.sock\")\n"
  36196. " (socket-group \"httpd\")))\n"
  36197. msgstr ""
  36198. #. type: item
  36199. #: guix-git/doc/guix.texi:24522
  36200. #, no-wrap
  36201. msgid "@code{server-root} (default: @code{httpd})"
  36202. msgstr ""
  36203. #. type: table
  36204. #: guix-git/doc/guix.texi:24526
  36205. 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."
  36206. msgstr ""
  36207. #. type: item
  36208. #: guix-git/doc/guix.texi:24527
  36209. #, no-wrap
  36210. msgid "@code{server-name} (default: @code{#f})"
  36211. msgstr ""
  36212. #. type: table
  36213. #: guix-git/doc/guix.texi:24531
  36214. msgid "The @code{ServerName} in the configuration file, used to specify the request scheme, hostname and port that the server uses to identify itself."
  36215. msgstr ""
  36216. #. type: table
  36217. #: guix-git/doc/guix.texi:24535
  36218. 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}."
  36219. msgstr ""
  36220. #. type: item
  36221. #: guix-git/doc/guix.texi:24536
  36222. #, no-wrap
  36223. msgid "@code{document-root} (default: @code{\"/srv/http\"})"
  36224. msgstr ""
  36225. #. type: table
  36226. #: guix-git/doc/guix.texi:24538
  36227. msgid "The @code{DocumentRoot} from which files will be served."
  36228. msgstr ""
  36229. #. type: item
  36230. #: guix-git/doc/guix.texi:24539
  36231. #, no-wrap
  36232. msgid "@code{listen} (default: @code{'(\"80\")})"
  36233. msgstr ""
  36234. #. type: table
  36235. #: guix-git/doc/guix.texi:24544
  36236. 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."
  36237. msgstr ""
  36238. #. type: table
  36239. #: guix-git/doc/guix.texi:24549
  36240. 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."
  36241. msgstr ""
  36242. #. type: item
  36243. #: guix-git/doc/guix.texi:24550
  36244. #, no-wrap
  36245. msgid "@code{error-log} (default: @code{\"/var/log/httpd/error_log\"})"
  36246. msgstr ""
  36247. #. type: table
  36248. #: guix-git/doc/guix.texi:24552
  36249. msgid "The @code{ErrorLog} to which the server will log errors."
  36250. msgstr ""
  36251. #. type: item
  36252. #: guix-git/doc/guix.texi:24553 guix-git/doc/guix.texi:25114
  36253. #, no-wrap
  36254. msgid "@code{user} (default: @code{\"httpd\"})"
  36255. msgstr ""
  36256. #. type: table
  36257. #: guix-git/doc/guix.texi:24555
  36258. msgid "The @code{User} which the server will answer requests as."
  36259. msgstr ""
  36260. #. type: item
  36261. #: guix-git/doc/guix.texi:24556
  36262. #, no-wrap
  36263. msgid "@code{group} (default: @code{\"httpd\"})"
  36264. msgstr ""
  36265. #. type: table
  36266. #: guix-git/doc/guix.texi:24558
  36267. msgid "The @code{Group} which the server will answer requests as."
  36268. msgstr ""
  36269. #. type: item
  36270. #: guix-git/doc/guix.texi:24559
  36271. #, no-wrap
  36272. msgid "@code{extra-config} (default: @code{(list \"TypesConfig etc/httpd/mime.types\")})"
  36273. msgstr ""
  36274. #. type: table
  36275. #: guix-git/doc/guix.texi:24562
  36276. msgid "A flat list of strings and G-expressions which will be added to the end of the configuration file."
  36277. msgstr ""
  36278. #. type: table
  36279. #: guix-git/doc/guix.texi:24565
  36280. msgid "Any values which the service is extended with will be appended to this list."
  36281. msgstr ""
  36282. #. type: deffn
  36283. #: guix-git/doc/guix.texi:24569
  36284. #, no-wrap
  36285. msgid "{Data Type} httpd-virtualhost"
  36286. msgstr ""
  36287. #. type: deffn
  36288. #: guix-git/doc/guix.texi:24571
  36289. msgid "This data type represents a virtualhost configuration block for the httpd service."
  36290. msgstr ""
  36291. #. type: deffn
  36292. #: guix-git/doc/guix.texi:24573
  36293. msgid "These should be added to the extra-config for the httpd-service."
  36294. msgstr ""
  36295. #. type: code{#1}
  36296. #: guix-git/doc/guix.texi:24585
  36297. #, no-wrap
  36298. msgid "addresses-and-ports"
  36299. msgstr ""
  36300. #. type: table
  36301. #: guix-git/doc/guix.texi:24587
  36302. msgid "The addresses and ports for the @code{VirtualHost} directive."
  36303. msgstr ""
  36304. #. type: code{#1}
  36305. #: guix-git/doc/guix.texi:24588
  36306. #, no-wrap
  36307. msgid "contents"
  36308. msgstr ""
  36309. #. type: table
  36310. #: guix-git/doc/guix.texi:24591
  36311. msgid "The contents of the @code{VirtualHost} directive, this should be a list of strings and G-expressions."
  36312. msgstr ""
  36313. #. type: subsubheading
  36314. #: guix-git/doc/guix.texi:24595
  36315. #, no-wrap
  36316. msgid "NGINX"
  36317. msgstr ""
  36318. #. type: deffn
  36319. #: guix-git/doc/guix.texi:24597
  36320. #, no-wrap
  36321. msgid "{Scheme Variable} nginx-service-type"
  36322. msgstr ""
  36323. #. type: deffn
  36324. #: guix-git/doc/guix.texi:24600
  36325. msgid "Service type for the @uref{https://nginx.org/,NGinx} web server. The value for this service type is a @code{<nginx-configuration>} record."
  36326. msgstr ""
  36327. #. type: lisp
  36328. #: guix-git/doc/guix.texi:24610 guix-git/doc/guix.texi:24664
  36329. #, no-wrap
  36330. msgid ""
  36331. "(service nginx-service-type\n"
  36332. " (nginx-configuration\n"
  36333. " (server-blocks\n"
  36334. " (list (nginx-server-configuration\n"
  36335. " (server-name '(\"www.example.com\"))\n"
  36336. " (root \"/srv/http/www.example.com\"))))))\n"
  36337. msgstr ""
  36338. #. type: deffn
  36339. #: guix-git/doc/guix.texi:24615
  36340. 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:"
  36341. msgstr ""
  36342. #. type: lisp
  36343. #: guix-git/doc/guix.texi:24621
  36344. #, no-wrap
  36345. msgid ""
  36346. "(simple-service 'my-extra-server nginx-service-type\n"
  36347. " (list (nginx-server-configuration\n"
  36348. " (root \"/srv/http/extra-website\")\n"
  36349. " (try-files (list \"$uri\" \"$uri/index.html\")))))\n"
  36350. msgstr ""
  36351. #. type: Plain text
  36352. #: guix-git/doc/guix.texi:24632
  36353. 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."
  36354. msgstr ""
  36355. #. type: deffn
  36356. #: guix-git/doc/guix.texi:24633
  36357. #, no-wrap
  36358. msgid "{Data Type} nginx-configuration"
  36359. msgstr ""
  36360. #. type: deffn
  36361. #: guix-git/doc/guix.texi:24637
  36362. 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."
  36363. msgstr ""
  36364. #. type: item
  36365. #: guix-git/doc/guix.texi:24639
  36366. #, no-wrap
  36367. msgid "@code{nginx} (default: @code{nginx})"
  36368. msgstr ""
  36369. #. type: table
  36370. #: guix-git/doc/guix.texi:24641
  36371. msgid "The nginx package to use."
  36372. msgstr ""
  36373. #. type: item
  36374. #: guix-git/doc/guix.texi:24642
  36375. #, no-wrap
  36376. msgid "@code{log-directory} (default: @code{\"/var/log/nginx\"})"
  36377. msgstr ""
  36378. #. type: table
  36379. #: guix-git/doc/guix.texi:24644
  36380. msgid "The directory to which NGinx will write log files."
  36381. msgstr ""
  36382. #. type: item
  36383. #: guix-git/doc/guix.texi:24645
  36384. #, no-wrap
  36385. msgid "@code{run-directory} (default: @code{\"/var/run/nginx\"})"
  36386. msgstr ""
  36387. #. type: table
  36388. #: guix-git/doc/guix.texi:24648
  36389. msgid "The directory in which NGinx will create a pid file, and write temporary files."
  36390. msgstr ""
  36391. #. type: item
  36392. #: guix-git/doc/guix.texi:24649
  36393. #, no-wrap
  36394. msgid "@code{server-blocks} (default: @code{'()})"
  36395. msgstr ""
  36396. #. type: table
  36397. #: guix-git/doc/guix.texi:24653
  36398. msgid "A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}."
  36399. msgstr ""
  36400. #. type: table
  36401. #: guix-git/doc/guix.texi:24657
  36402. 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."
  36403. msgstr ""
  36404. #. type: item
  36405. #: guix-git/doc/guix.texi:24666
  36406. #, no-wrap
  36407. msgid "@code{upstream-blocks} (default: @code{'()})"
  36408. msgstr ""
  36409. #. type: table
  36410. #: guix-git/doc/guix.texi:24670
  36411. msgid "A list of @dfn{upstream blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-upstream-configuration>}."
  36412. msgstr ""
  36413. #. type: table
  36414. #: guix-git/doc/guix.texi:24677
  36415. 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."
  36416. msgstr ""
  36417. #. type: lisp
  36418. #: guix-git/doc/guix.texi:24696
  36419. #, no-wrap
  36420. msgid ""
  36421. "(service\n"
  36422. " nginx-service-type\n"
  36423. " (nginx-configuration\n"
  36424. " (server-blocks\n"
  36425. " (list (nginx-server-configuration\n"
  36426. " (server-name '(\"www.example.com\"))\n"
  36427. " (root \"/srv/http/www.example.com\")\n"
  36428. " (locations\n"
  36429. " (list\n"
  36430. " (nginx-location-configuration\n"
  36431. " (uri \"/path1\")\n"
  36432. " (body '(\"proxy_pass http://server-proxy;\"))))))))\n"
  36433. " (upstream-blocks\n"
  36434. " (list (nginx-upstream-configuration\n"
  36435. " (name \"server-proxy\")\n"
  36436. " (servers (list \"server1.example.com\"\n"
  36437. " \"server2.example.com\")))))))\n"
  36438. msgstr ""
  36439. #. type: table
  36440. #: guix-git/doc/guix.texi:24704
  36441. 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."
  36442. msgstr ""
  36443. #. type: table
  36444. #: guix-git/doc/guix.texi:24708
  36445. 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."
  36446. msgstr ""
  36447. #. type: item
  36448. #: guix-git/doc/guix.texi:24709
  36449. #, no-wrap
  36450. msgid "@code{server-names-hash-bucket-size} (default: @code{#f})"
  36451. msgstr ""
  36452. #. type: table
  36453. #: guix-git/doc/guix.texi:24712
  36454. msgid "Bucket size for the server names hash tables, defaults to @code{#f} to use the size of the processors cache line."
  36455. msgstr ""
  36456. #. type: item
  36457. #: guix-git/doc/guix.texi:24713
  36458. #, no-wrap
  36459. msgid "@code{server-names-hash-bucket-max-size} (default: @code{#f})"
  36460. msgstr ""
  36461. #. type: table
  36462. #: guix-git/doc/guix.texi:24715
  36463. msgid "Maximum bucket size for the server names hash tables."
  36464. msgstr ""
  36465. #. type: table
  36466. #: guix-git/doc/guix.texi:24719
  36467. msgid "List of nginx dynamic modules to load. This should be a list of file names of loadable modules, as in this example:"
  36468. msgstr ""
  36469. #. type: lisp
  36470. #: guix-git/doc/guix.texi:24727
  36471. #, no-wrap
  36472. msgid ""
  36473. "(modules\n"
  36474. " (list\n"
  36475. " (file-append nginx-accept-language-module \"\\\n"
  36476. "/etc/nginx/modules/ngx_http_accept_language_module.so\")\n"
  36477. " (file-append nginx-lua-module \"\\\n"
  36478. "/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  36479. msgstr ""
  36480. #. type: item
  36481. #: guix-git/doc/guix.texi:24729
  36482. #, fuzzy, no-wrap
  36483. msgid "@code{lua-package-path} (default: @code{'()})"
  36484. msgstr "@code{features} (@code{'()})"
  36485. #. type: table
  36486. #: guix-git/doc/guix.texi:24732
  36487. msgid "List of nginx lua packages to load. This should be a list of package names of loadable lua modules, as in this example:"
  36488. msgstr ""
  36489. #. type: lisp
  36490. #: guix-git/doc/guix.texi:24739
  36491. #, no-wrap
  36492. msgid ""
  36493. "(lua-package-path (list lua-resty-core\n"
  36494. " lua-resty-lrucache\n"
  36495. " lua-resty-signal\n"
  36496. " lua-tablepool\n"
  36497. " lua-resty-shell))\n"
  36498. msgstr ""
  36499. #. type: item
  36500. #: guix-git/doc/guix.texi:24741
  36501. #, fuzzy, no-wrap
  36502. msgid "@code{lua-package-cpath} (default: @code{'()})"
  36503. msgstr "@code{features} (@code{'()})"
  36504. #. type: table
  36505. #: guix-git/doc/guix.texi:24744
  36506. 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:"
  36507. msgstr ""
  36508. #. type: lisp
  36509. #: guix-git/doc/guix.texi:24747
  36510. #, no-wrap
  36511. msgid "(lua-package-cpath (list lua-resty-signal))\n"
  36512. msgstr ""
  36513. #. type: item
  36514. #: guix-git/doc/guix.texi:24749
  36515. #, fuzzy, no-wrap
  36516. msgid "@code{global-directives} (default: @code{'((events . ()))})"
  36517. msgstr "@code{features} (@code{'()})"
  36518. #. type: table
  36519. #: guix-git/doc/guix.texi:24752
  36520. msgid "Association list of global directives for the top level of the nginx configuration. Values may themselves be association lists."
  36521. msgstr ""
  36522. #. type: lisp
  36523. #: guix-git/doc/guix.texi:24758
  36524. #, no-wrap
  36525. msgid ""
  36526. "(global-directives\n"
  36527. " `((worker_processes . 16)\n"
  36528. " (pcre_jit . on)\n"
  36529. " (events . ((worker_connections . 1024)))))\n"
  36530. msgstr ""
  36531. #. type: table
  36532. #: guix-git/doc/guix.texi:24763
  36533. msgid "Extra content for the @code{http} block. Should be string or a string valued G-expression."
  36534. msgstr ""
  36535. #. type: deftp
  36536. #: guix-git/doc/guix.texi:24767
  36537. #, no-wrap
  36538. msgid "{Data Type} nginx-server-configuration"
  36539. msgstr ""
  36540. #. type: deftp
  36541. #: guix-git/doc/guix.texi:24770
  36542. msgid "Data type representing the configuration of an nginx server block. This type has the following parameters:"
  36543. msgstr ""
  36544. #. type: item
  36545. #: guix-git/doc/guix.texi:24772
  36546. #, no-wrap
  36547. msgid "@code{listen} (default: @code{'(\"80\" \"443 ssl\")})"
  36548. msgstr ""
  36549. #. type: table
  36550. #: guix-git/doc/guix.texi:24777
  36551. 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:"
  36552. msgstr ""
  36553. #. type: lisp
  36554. #: guix-git/doc/guix.texi:24780
  36555. #, no-wrap
  36556. msgid "'(\"127.0.0.1:8000\" \"127.0.0.1\" \"8000\" \"*:8000\" \"localhost:8000\")\n"
  36557. msgstr ""
  36558. #. type: item
  36559. #: guix-git/doc/guix.texi:24782
  36560. #, no-wrap
  36561. msgid "@code{server-name} (default: @code{(list 'default)})"
  36562. msgstr ""
  36563. #. type: table
  36564. #: guix-git/doc/guix.texi:24785
  36565. msgid "A list of server names this server represents. @code{'default} represents the default server for connections matching no other server."
  36566. msgstr ""
  36567. #. type: item
  36568. #: guix-git/doc/guix.texi:24786
  36569. #, no-wrap
  36570. msgid "@code{root} (default: @code{\"/srv/http\"})"
  36571. msgstr ""
  36572. #. type: table
  36573. #: guix-git/doc/guix.texi:24788
  36574. msgid "Root of the website nginx will serve."
  36575. msgstr ""
  36576. #. type: item
  36577. #: guix-git/doc/guix.texi:24789
  36578. #, no-wrap
  36579. msgid "@code{locations} (default: @code{'()})"
  36580. msgstr ""
  36581. #. type: table
  36582. #: guix-git/doc/guix.texi:24793
  36583. msgid "A list of @dfn{nginx-location-configuration} or @dfn{nginx-named-location-configuration} records to use within this server block."
  36584. msgstr ""
  36585. #. type: item
  36586. #: guix-git/doc/guix.texi:24794
  36587. #, no-wrap
  36588. msgid "@code{index} (default: @code{(list \"index.html\")})"
  36589. msgstr ""
  36590. #. type: table
  36591. #: guix-git/doc/guix.texi:24797
  36592. 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."
  36593. msgstr ""
  36594. #. type: item
  36595. #: guix-git/doc/guix.texi:24798
  36596. #, no-wrap
  36597. msgid "@code{try-files} (default: @code{'()})"
  36598. msgstr ""
  36599. #. type: table
  36600. #: guix-git/doc/guix.texi:24801
  36601. 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."
  36602. msgstr ""
  36603. #. type: item
  36604. #: guix-git/doc/guix.texi:24802
  36605. #, no-wrap
  36606. msgid "@code{ssl-certificate} (default: @code{#f})"
  36607. msgstr ""
  36608. #. type: table
  36609. #: guix-git/doc/guix.texi:24805
  36610. 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."
  36611. msgstr ""
  36612. #. type: item
  36613. #: guix-git/doc/guix.texi:24806
  36614. #, no-wrap
  36615. msgid "@code{ssl-certificate-key} (default: @code{#f})"
  36616. msgstr ""
  36617. #. type: table
  36618. #: guix-git/doc/guix.texi:24809
  36619. 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."
  36620. msgstr ""
  36621. #. type: item
  36622. #: guix-git/doc/guix.texi:24810
  36623. #, no-wrap
  36624. msgid "@code{server-tokens?} (default: @code{#f})"
  36625. msgstr ""
  36626. #. type: table
  36627. #: guix-git/doc/guix.texi:24812
  36628. msgid "Whether the server should add its configuration to response."
  36629. msgstr ""
  36630. #. type: item
  36631. #: guix-git/doc/guix.texi:24813
  36632. #, no-wrap
  36633. msgid "@code{raw-content} (default: @code{'()})"
  36634. msgstr ""
  36635. #. type: table
  36636. #: guix-git/doc/guix.texi:24815
  36637. msgid "A list of raw lines added to the server block."
  36638. msgstr ""
  36639. #. type: deftp
  36640. #: guix-git/doc/guix.texi:24819
  36641. #, no-wrap
  36642. msgid "{Data Type} nginx-upstream-configuration"
  36643. msgstr ""
  36644. #. type: deftp
  36645. #: guix-git/doc/guix.texi:24822
  36646. msgid "Data type representing the configuration of an nginx @code{upstream} block. This type has the following parameters:"
  36647. msgstr ""
  36648. #. type: table
  36649. #: guix-git/doc/guix.texi:24826
  36650. msgid "Name for this group of servers."
  36651. msgstr ""
  36652. #. type: code{#1}
  36653. #: guix-git/doc/guix.texi:24827
  36654. #, no-wrap
  36655. msgid "servers"
  36656. msgstr ""
  36657. #. type: table
  36658. #: guix-git/doc/guix.texi:24834
  36659. 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."
  36660. msgstr ""
  36661. #. type: deftp
  36662. #: guix-git/doc/guix.texi:24838
  36663. #, no-wrap
  36664. msgid "{Data Type} nginx-location-configuration"
  36665. msgstr ""
  36666. #. type: deftp
  36667. #: guix-git/doc/guix.texi:24841
  36668. msgid "Data type representing the configuration of an nginx @code{location} block. This type has the following parameters:"
  36669. msgstr ""
  36670. #. type: table
  36671. #: guix-git/doc/guix.texi:24845
  36672. msgid "URI which this location block matches."
  36673. msgstr ""
  36674. #. type: anchor{#1}
  36675. #: guix-git/doc/guix.texi:24847
  36676. msgid "nginx-location-configuration body"
  36677. msgstr ""
  36678. #. type: code{#1}
  36679. #: guix-git/doc/guix.texi:24847 guix-git/doc/guix.texi:24868
  36680. #, no-wrap
  36681. msgid "body"
  36682. msgstr ""
  36683. #. type: table
  36684. #: guix-git/doc/guix.texi:24854
  36685. 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;\")}."
  36686. msgstr ""
  36687. #. type: deftp
  36688. #: guix-git/doc/guix.texi:24858
  36689. #, no-wrap
  36690. msgid "{Data Type} nginx-named-location-configuration"
  36691. msgstr ""
  36692. #. type: deftp
  36693. #: guix-git/doc/guix.texi:24863
  36694. 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:"
  36695. msgstr ""
  36696. #. type: table
  36697. #: guix-git/doc/guix.texi:24867
  36698. msgid "Name to identify this location block."
  36699. msgstr ""
  36700. #. type: table
  36701. #: guix-git/doc/guix.texi:24873
  36702. 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."
  36703. msgstr ""
  36704. #. type: subsubheading
  36705. #: guix-git/doc/guix.texi:24877
  36706. #, no-wrap
  36707. msgid "Varnish Cache"
  36708. msgstr ""
  36709. #. type: cindex
  36710. #: guix-git/doc/guix.texi:24878
  36711. #, no-wrap
  36712. msgid "Varnish"
  36713. msgstr ""
  36714. #. type: Plain text
  36715. #: guix-git/doc/guix.texi:24883
  36716. 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."
  36717. msgstr ""
  36718. #. type: defvr
  36719. #: guix-git/doc/guix.texi:24884
  36720. #, no-wrap
  36721. msgid "{Scheme Variable} varnish-service-type"
  36722. msgstr ""
  36723. #. type: defvr
  36724. #: guix-git/doc/guix.texi:24886
  36725. msgid "Service type for the Varnish daemon."
  36726. msgstr ""
  36727. #. type: deftp
  36728. #: guix-git/doc/guix.texi:24888
  36729. #, no-wrap
  36730. msgid "{Data Type} varnish-configuration"
  36731. msgstr ""
  36732. #. type: deftp
  36733. #: guix-git/doc/guix.texi:24891
  36734. msgid "Data type representing the @code{varnish} service configuration. This type has the following parameters:"
  36735. msgstr ""
  36736. #. type: item
  36737. #: guix-git/doc/guix.texi:24893
  36738. #, no-wrap
  36739. msgid "@code{package} (default: @code{varnish})"
  36740. msgstr ""
  36741. #. type: table
  36742. #: guix-git/doc/guix.texi:24895
  36743. msgid "The Varnish package to use."
  36744. msgstr ""
  36745. #. type: item
  36746. #: guix-git/doc/guix.texi:24896
  36747. #, no-wrap
  36748. msgid "@code{name} (default: @code{\"default\"})"
  36749. msgstr ""
  36750. #. type: table
  36751. #: guix-git/doc/guix.texi:24901
  36752. 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."
  36753. msgstr ""
  36754. #. type: table
  36755. #: guix-git/doc/guix.texi:24904
  36756. msgid "Pass the @code{-n} argument to other Varnish programs to connect to the named instance, e.g.@: @command{varnishncsa -n default}."
  36757. msgstr ""
  36758. #. type: item
  36759. #: guix-git/doc/guix.texi:24905
  36760. #, no-wrap
  36761. msgid "@code{backend} (default: @code{\"localhost:8080\"})"
  36762. msgstr ""
  36763. #. type: table
  36764. #: guix-git/doc/guix.texi:24907
  36765. msgid "The backend to use. This option has no effect if @code{vcl} is set."
  36766. msgstr ""
  36767. #. type: item
  36768. #: guix-git/doc/guix.texi:24908
  36769. #, no-wrap
  36770. msgid "@code{vcl} (default: #f)"
  36771. msgstr ""
  36772. #. type: table
  36773. #: guix-git/doc/guix.texi:24913
  36774. 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."
  36775. msgstr ""
  36776. #. type: table
  36777. #: guix-git/doc/guix.texi:24917
  36778. msgid "For example, to mirror @url{https://www.gnu.org,www.gnu.org} with VCL you can do something along these lines:"
  36779. msgstr ""
  36780. #. type: lisp
  36781. #: guix-git/doc/guix.texi:24923
  36782. #, no-wrap
  36783. msgid ""
  36784. "(define %gnu-mirror\n"
  36785. " (plain-file \"gnu.vcl\"\n"
  36786. " \"vcl 4.1;\n"
  36787. "backend gnu @{ .host = \\\"www.gnu.org\\\"; @}\"))\n"
  36788. "\n"
  36789. msgstr ""
  36790. #. type: lisp
  36791. #: guix-git/doc/guix.texi:24931
  36792. #, no-wrap
  36793. msgid ""
  36794. "(operating-system\n"
  36795. " ;; @dots{}\n"
  36796. " (services (cons (service varnish-service-type\n"
  36797. " (varnish-configuration\n"
  36798. " (listen '(\":80\"))\n"
  36799. " (vcl %gnu-mirror)))\n"
  36800. " %base-services)))\n"
  36801. msgstr ""
  36802. #. type: table
  36803. #: guix-git/doc/guix.texi:24935
  36804. msgid "The configuration of an already running Varnish instance can be inspected and changed using the @command{varnishadm} program."
  36805. msgstr ""
  36806. #. type: table
  36807. #: guix-git/doc/guix.texi:24939
  36808. 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."
  36809. msgstr ""
  36810. #. type: item
  36811. #: guix-git/doc/guix.texi:24940
  36812. #, no-wrap
  36813. msgid "@code{listen} (default: @code{'(\"localhost:80\")})"
  36814. msgstr ""
  36815. #. type: table
  36816. #: guix-git/doc/guix.texi:24942
  36817. msgid "List of addresses Varnish will listen on."
  36818. msgstr ""
  36819. #. type: item
  36820. #: guix-git/doc/guix.texi:24943
  36821. #, no-wrap
  36822. msgid "@code{storage} (default: @code{'(\"malloc,128m\")})"
  36823. msgstr ""
  36824. #. type: table
  36825. #: guix-git/doc/guix.texi:24945
  36826. msgid "List of storage backends that will be available in VCL."
  36827. msgstr ""
  36828. #. type: item
  36829. #: guix-git/doc/guix.texi:24946
  36830. #, no-wrap
  36831. msgid "@code{parameters} (default: @code{'()})"
  36832. msgstr ""
  36833. #. type: table
  36834. #: guix-git/doc/guix.texi:24948
  36835. msgid "List of run-time parameters in the form @code{'((\"parameter\" . \"value\"))}."
  36836. msgstr ""
  36837. #. type: table
  36838. #: guix-git/doc/guix.texi:24951
  36839. msgid "Additional arguments to pass to the @command{varnishd} process."
  36840. msgstr ""
  36841. #. type: cindex
  36842. #: guix-git/doc/guix.texi:24955 guix-git/doc/guix.texi:24956
  36843. #, no-wrap
  36844. msgid "Patchwork"
  36845. msgstr ""
  36846. #. type: Plain text
  36847. #: guix-git/doc/guix.texi:24959
  36848. msgid "Patchwork is a patch tracking system. It can collect patches sent to a mailing list, and display them in a web interface."
  36849. msgstr ""
  36850. #. type: defvr
  36851. #: guix-git/doc/guix.texi:24960
  36852. #, no-wrap
  36853. msgid "{Scheme Variable} patchwork-service-type"
  36854. msgstr ""
  36855. #. type: defvr
  36856. #: guix-git/doc/guix.texi:24962
  36857. #, fuzzy
  36858. msgid "Service type for Patchwork."
  36859. msgstr "分享你的工作。"
  36860. #. type: Plain text
  36861. #: guix-git/doc/guix.texi:24966
  36862. msgid "The following example is an example of a minimal service for Patchwork, for the @code{patchwork.example.com} domain."
  36863. msgstr ""
  36864. #. type: lisp
  36865. #: guix-git/doc/guix.texi:24986
  36866. #, no-wrap
  36867. msgid ""
  36868. "(service patchwork-service-type\n"
  36869. " (patchwork-configuration\n"
  36870. " (domain \"patchwork.example.com\")\n"
  36871. " (settings-module\n"
  36872. " (patchwork-settings-module\n"
  36873. " (allowed-hosts (list domain))\n"
  36874. " (default-from-email \"patchwork@@patchwork.example.com\")))\n"
  36875. " (getmail-retriever-config\n"
  36876. " (getmail-retriever-configuration\n"
  36877. " (type \"SimpleIMAPSSLRetriever\")\n"
  36878. " (server \"imap.example.com\")\n"
  36879. " (port 993)\n"
  36880. " (username \"patchwork\")\n"
  36881. " (password-command\n"
  36882. " (list (file-append coreutils \"/bin/cat\")\n"
  36883. " \"/etc/getmail-patchwork-imap-password\"))\n"
  36884. " (extra-parameters\n"
  36885. " '((mailboxes . (\"Patches\"))))))))\n"
  36886. "\n"
  36887. msgstr ""
  36888. #. type: Plain text
  36889. #: guix-git/doc/guix.texi:24992
  36890. msgid "There are three records for configuring the Patchwork service. The @code{<patchwork-configuration>} relates to the configuration for Patchwork within the HTTPD service."
  36891. msgstr ""
  36892. #. type: Plain text
  36893. #: guix-git/doc/guix.texi:24996
  36894. 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."
  36895. msgstr ""
  36896. #. type: Plain text
  36897. #: guix-git/doc/guix.texi:25000
  36898. msgid "For the @code{database-configuration} field within the @code{<patchwork-settings-module>}, the @code{<patchwork-database-configuration>} must be used."
  36899. msgstr ""
  36900. #. type: deftp
  36901. #: guix-git/doc/guix.texi:25001
  36902. #, no-wrap
  36903. msgid "{Data Type} patchwork-configuration"
  36904. msgstr ""
  36905. #. type: deftp
  36906. #: guix-git/doc/guix.texi:25004
  36907. msgid "Data type representing the Patchwork service configuration. This type has the following parameters:"
  36908. msgstr ""
  36909. #. type: item
  36910. #: guix-git/doc/guix.texi:25006
  36911. #, fuzzy, no-wrap
  36912. msgid "@code{patchwork} (default: @code{patchwork})"
  36913. msgstr "@code{mate}(默认值:@code{mate})"
  36914. #. type: table
  36915. #: guix-git/doc/guix.texi:25008
  36916. #, fuzzy
  36917. msgid "The Patchwork package to use."
  36918. msgstr "软件包数据类型。"
  36919. #. type: code{#1}
  36920. #: guix-git/doc/guix.texi:25009
  36921. #, no-wrap
  36922. msgid "domain"
  36923. msgstr ""
  36924. #. type: table
  36925. #: guix-git/doc/guix.texi:25012
  36926. msgid "The domain to use for Patchwork, this is used in the HTTPD service virtual host."
  36927. msgstr ""
  36928. #. type: code{#1}
  36929. #: guix-git/doc/guix.texi:25013
  36930. #, no-wrap
  36931. msgid "settings-module"
  36932. msgstr ""
  36933. #. type: table
  36934. #: guix-git/doc/guix.texi:25019
  36935. 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."
  36936. msgstr ""
  36937. #. type: item
  36938. #: guix-git/doc/guix.texi:25020
  36939. #, fuzzy, no-wrap
  36940. msgid "@code{static-path} (default: @code{\"/static/\"})"
  36941. msgstr "@code{mate}(默认值:@code{mate})"
  36942. #. type: table
  36943. #: guix-git/doc/guix.texi:25022
  36944. msgid "The path under which the HTTPD service should serve the static files."
  36945. msgstr ""
  36946. #. type: code{#1}
  36947. #: guix-git/doc/guix.texi:25023
  36948. #, no-wrap
  36949. msgid "getmail-retriever-config"
  36950. msgstr ""
  36951. #. type: table
  36952. #: guix-git/doc/guix.texi:25027
  36953. 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."
  36954. msgstr ""
  36955. #. type: deftp
  36956. #: guix-git/doc/guix.texi:25031
  36957. #, no-wrap
  36958. msgid "{Data Type} patchwork-settings-module"
  36959. msgstr ""
  36960. #. type: deftp
  36961. #: guix-git/doc/guix.texi:25036
  36962. 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:"
  36963. msgstr ""
  36964. #. type: item
  36965. #: guix-git/doc/guix.texi:25038
  36966. #, no-wrap
  36967. msgid "@code{database-configuration} (default: @code{(patchwork-database-configuration)})"
  36968. msgstr ""
  36969. #. type: table
  36970. #: guix-git/doc/guix.texi:25041
  36971. msgid "The database connection settings used for Patchwork. See the @code{<patchwork-database-configuration>} record type for more information."
  36972. msgstr ""
  36973. #. type: item
  36974. #: guix-git/doc/guix.texi:25042
  36975. #, fuzzy, no-wrap
  36976. msgid "@code{secret-key-file} (default: @code{\"/etc/patchwork/django-secret-key\"})"
  36977. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  36978. #. type: table
  36979. #: guix-git/doc/guix.texi:25045
  36980. msgid "Patchwork, as a Django web application uses a secret key for cryptographically signing values. This file should contain a unique unpredictable value."
  36981. msgstr ""
  36982. #. type: table
  36983. #: guix-git/doc/guix.texi:25048
  36984. msgid "If this file does not exist, it will be created and populated with a random value by the patchwork-setup shepherd service."
  36985. msgstr ""
  36986. #. type: table
  36987. #: guix-git/doc/guix.texi:25050
  36988. msgid "This setting relates to Django."
  36989. msgstr ""
  36990. #. type: code{#1}
  36991. #: guix-git/doc/guix.texi:25051
  36992. #, no-wrap
  36993. msgid "allowed-hosts"
  36994. msgstr ""
  36995. #. type: table
  36996. #: guix-git/doc/guix.texi:25054
  36997. msgid "A list of valid hosts for this Patchwork service. This should at least include the domain specified in the @code{<patchwork-configuration>} record."
  36998. msgstr ""
  36999. #. type: table
  37000. #: guix-git/doc/guix.texi:25056 guix-git/doc/guix.texi:25070
  37001. #: guix-git/doc/guix.texi:25076 guix-git/doc/guix.texi:25082
  37002. msgid "This is a Django setting."
  37003. msgstr ""
  37004. #. type: code{#1}
  37005. #: guix-git/doc/guix.texi:25057
  37006. #, no-wrap
  37007. msgid "default-from-email"
  37008. msgstr ""
  37009. #. type: table
  37010. #: guix-git/doc/guix.texi:25059
  37011. msgid "The email address from which Patchwork should send email by default."
  37012. msgstr ""
  37013. #. type: table
  37014. #: guix-git/doc/guix.texi:25061 guix-git/doc/guix.texi:25087
  37015. #: guix-git/doc/guix.texi:25092 guix-git/doc/guix.texi:25097
  37016. msgid "This is a Patchwork setting."
  37017. msgstr ""
  37018. #. type: item
  37019. #: guix-git/doc/guix.texi:25062
  37020. #, fuzzy, no-wrap
  37021. msgid "@code{static-url} (default: @code{#f})"
  37022. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  37023. #. type: table
  37024. #: guix-git/doc/guix.texi:25065
  37025. 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{/}."
  37026. msgstr ""
  37027. #. type: table
  37028. #: guix-git/doc/guix.texi:25068
  37029. msgid "If the default value is used, the @code{static-path} value from the @code{<patchwork-configuration>} record will be used."
  37030. msgstr ""
  37031. #. type: item
  37032. #: guix-git/doc/guix.texi:25071
  37033. #, fuzzy, no-wrap
  37034. msgid "@code{admins} (default: @code{'()})"
  37035. msgstr "@code{includes}(默认值:@code{'()})"
  37036. #. type: table
  37037. #: guix-git/doc/guix.texi:25074
  37038. 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."
  37039. msgstr ""
  37040. #. type: table
  37041. #: guix-git/doc/guix.texi:25080
  37042. msgid "Whether to run Patchwork in debug mode. If set to @code{#t}, detailed error messages will be shown."
  37043. msgstr ""
  37044. #. type: item
  37045. #: guix-git/doc/guix.texi:25083
  37046. #, fuzzy, no-wrap
  37047. msgid "@code{enable-rest-api?} (default: @code{#t})"
  37048. msgstr "@code{challenge}(默认值:@code{#f})"
  37049. #. type: table
  37050. #: guix-git/doc/guix.texi:25085
  37051. msgid "Whether to enable the Patchwork REST API."
  37052. msgstr ""
  37053. #. type: item
  37054. #: guix-git/doc/guix.texi:25088
  37055. #, fuzzy, no-wrap
  37056. msgid "@code{enable-xmlrpc?} (default: @code{#t})"
  37057. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  37058. #. type: table
  37059. #: guix-git/doc/guix.texi:25090
  37060. msgid "Whether to enable the XML RPC API."
  37061. msgstr ""
  37062. #. type: item
  37063. #: guix-git/doc/guix.texi:25093
  37064. #, fuzzy, no-wrap
  37065. msgid "@code{force-https-links?} (default: @code{#t})"
  37066. msgstr "@code{challenge}(默认值:@code{#f})"
  37067. #. type: table
  37068. #: guix-git/doc/guix.texi:25095
  37069. msgid "Whether to use HTTPS links on Patchwork pages."
  37070. msgstr ""
  37071. #. type: table
  37072. #: guix-git/doc/guix.texi:25100
  37073. msgid "Extra code to place at the end of the Patchwork settings module."
  37074. msgstr ""
  37075. #. type: deftp
  37076. #: guix-git/doc/guix.texi:25104
  37077. #, no-wrap
  37078. msgid "{Data Type} patchwork-database-configuration"
  37079. msgstr ""
  37080. #. type: deftp
  37081. #: guix-git/doc/guix.texi:25106
  37082. msgid "Data type representing the database configuration for Patchwork."
  37083. msgstr ""
  37084. #. type: item
  37085. #: guix-git/doc/guix.texi:25108
  37086. #, fuzzy, no-wrap
  37087. msgid "@code{engine} (default: @code{\"django.db.backends.postgresql_psycopg2\"})"
  37088. msgstr "@code{gnome}(默认值:@code{gnome})"
  37089. #. type: table
  37090. #: guix-git/doc/guix.texi:25110
  37091. msgid "The database engine to use."
  37092. msgstr ""
  37093. #. type: item
  37094. #: guix-git/doc/guix.texi:25111
  37095. #, fuzzy, no-wrap
  37096. msgid "@code{name} (default: @code{\"patchwork\"})"
  37097. msgstr "@code{mate}(默认值:@code{mate})"
  37098. #. type: table
  37099. #: guix-git/doc/guix.texi:25113
  37100. #, fuzzy
  37101. msgid "The name of the database to use."
  37102. msgstr "远程机器的主机名。"
  37103. #. type: table
  37104. #: guix-git/doc/guix.texi:25116
  37105. msgid "The user to connect to the database as."
  37106. msgstr ""
  37107. #. type: item
  37108. #: guix-git/doc/guix.texi:25117
  37109. #, fuzzy, no-wrap
  37110. msgid "@code{password} (default: @code{\"\"})"
  37111. msgstr "@code{port}(默认值:@code{22})"
  37112. #. type: table
  37113. #: guix-git/doc/guix.texi:25119
  37114. msgid "The password to use when connecting to the database."
  37115. msgstr ""
  37116. #. type: item
  37117. #: guix-git/doc/guix.texi:25120
  37118. #, fuzzy, no-wrap
  37119. msgid "@code{host} (default: @code{\"\"})"
  37120. msgstr "@code{port}(默认值:@code{22})"
  37121. #. type: table
  37122. #: guix-git/doc/guix.texi:25122
  37123. msgid "The host to make the database connection to."
  37124. msgstr ""
  37125. #. type: item
  37126. #: guix-git/doc/guix.texi:25123
  37127. #, fuzzy, no-wrap
  37128. msgid "@code{port} (default: @code{\"\"})"
  37129. msgstr "@code{port}(默认值:@code{22})"
  37130. #. type: table
  37131. #: guix-git/doc/guix.texi:25125
  37132. msgid "The port on which to connect to the database."
  37133. msgstr ""
  37134. #. type: subsubheading
  37135. #: guix-git/doc/guix.texi:25129
  37136. #, no-wrap
  37137. msgid "Mumi"
  37138. msgstr ""
  37139. #. type: cindex
  37140. #: guix-git/doc/guix.texi:25131
  37141. #, fuzzy, no-wrap
  37142. msgid "Mumi, Debbugs Web interface"
  37143. msgstr "用户界面"
  37144. #. type: cindex
  37145. #: guix-git/doc/guix.texi:25132
  37146. #, fuzzy, no-wrap
  37147. msgid "Debbugs, Mumi Web interface"
  37148. msgstr "用户界面"
  37149. #. type: Plain text
  37150. #: guix-git/doc/guix.texi:25137
  37151. 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."
  37152. msgstr ""
  37153. #. type: defvr
  37154. #: guix-git/doc/guix.texi:25138
  37155. #, no-wrap
  37156. msgid "{Scheme Variable} mumi-service-type"
  37157. msgstr ""
  37158. #. type: defvr
  37159. #: guix-git/doc/guix.texi:25140
  37160. msgid "This is the service type for Mumi."
  37161. msgstr ""
  37162. #. type: deftp
  37163. #: guix-git/doc/guix.texi:25142
  37164. #, fuzzy, no-wrap
  37165. msgid "{Data Type} mumi-configuration"
  37166. msgstr "{数据类型} build-machine"
  37167. #. type: deftp
  37168. #: guix-git/doc/guix.texi:25145
  37169. msgid "Data type representing the Mumi service configuration. This type has the following fields:"
  37170. msgstr ""
  37171. #. type: item
  37172. #: guix-git/doc/guix.texi:25147
  37173. #, fuzzy, no-wrap
  37174. msgid "@code{mumi} (default: @code{mumi})"
  37175. msgstr "@code{mate}(默认值:@code{mate})"
  37176. #. type: table
  37177. #: guix-git/doc/guix.texi:25149
  37178. #, fuzzy
  37179. msgid "The Mumi package to use."
  37180. msgstr "软件包数据类型。"
  37181. #. type: item
  37182. #: guix-git/doc/guix.texi:25150
  37183. #, fuzzy, no-wrap
  37184. msgid "@code{mailer?} (default: @code{#true})"
  37185. msgstr "@code{mate}(默认值:@code{mate})"
  37186. #. type: table
  37187. #: guix-git/doc/guix.texi:25152
  37188. msgid "Whether to enable or disable the mailer component."
  37189. msgstr ""
  37190. #. type: code{#1}
  37191. #: guix-git/doc/guix.texi:25153
  37192. #, no-wrap
  37193. msgid "mumi-configuration-sender"
  37194. msgstr ""
  37195. #. type: table
  37196. #: guix-git/doc/guix.texi:25155
  37197. msgid "The email address used as the sender for comments."
  37198. msgstr ""
  37199. #. type: code{#1}
  37200. #: guix-git/doc/guix.texi:25156
  37201. #, fuzzy, no-wrap
  37202. msgid "mumi-configuration-smtp"
  37203. msgstr "系统配置"
  37204. #. type: table
  37205. #: guix-git/doc/guix.texi:25161
  37206. 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}."
  37207. msgstr ""
  37208. #. type: subsubheading
  37209. #: guix-git/doc/guix.texi:25166
  37210. #, no-wrap
  37211. msgid "FastCGI"
  37212. msgstr ""
  37213. #. type: cindex
  37214. #: guix-git/doc/guix.texi:25167
  37215. #, no-wrap
  37216. msgid "fastcgi"
  37217. msgstr ""
  37218. #. type: cindex
  37219. #: guix-git/doc/guix.texi:25168
  37220. #, no-wrap
  37221. msgid "fcgiwrap"
  37222. msgstr ""
  37223. #. type: Plain text
  37224. #: guix-git/doc/guix.texi:25175
  37225. 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."
  37226. msgstr ""
  37227. #. type: Plain text
  37228. #: guix-git/doc/guix.texi:25182
  37229. 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."
  37230. msgstr ""
  37231. #. type: defvr
  37232. #: guix-git/doc/guix.texi:25183
  37233. #, no-wrap
  37234. msgid "{Scheme Variable} fcgiwrap-service-type"
  37235. msgstr ""
  37236. #. type: defvr
  37237. #: guix-git/doc/guix.texi:25185
  37238. msgid "A service type for the @code{fcgiwrap} FastCGI proxy."
  37239. msgstr ""
  37240. #. type: deftp
  37241. #: guix-git/doc/guix.texi:25187
  37242. #, no-wrap
  37243. msgid "{Data Type} fcgiwrap-configuration"
  37244. msgstr ""
  37245. #. type: deftp
  37246. #: guix-git/doc/guix.texi:25190
  37247. msgid "Data type representing the configuration of the @code{fcgiwrap} service. This type has the following parameters:"
  37248. msgstr ""
  37249. #. type: item
  37250. #: guix-git/doc/guix.texi:25191
  37251. #, no-wrap
  37252. msgid "@code{package} (default: @code{fcgiwrap})"
  37253. msgstr ""
  37254. #. type: table
  37255. #: guix-git/doc/guix.texi:25193
  37256. msgid "The fcgiwrap package to use."
  37257. msgstr ""
  37258. #. type: item
  37259. #: guix-git/doc/guix.texi:25194
  37260. #, no-wrap
  37261. msgid "@code{socket} (default: @code{tcp:127.0.0.1:9000})"
  37262. msgstr ""
  37263. #. type: table
  37264. #: guix-git/doc/guix.texi:25200
  37265. 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}."
  37266. msgstr ""
  37267. #. type: item
  37268. #: guix-git/doc/guix.texi:25201
  37269. #, no-wrap
  37270. msgid "@code{user} (default: @code{fcgiwrap})"
  37271. msgstr ""
  37272. #. type: itemx
  37273. #: guix-git/doc/guix.texi:25202
  37274. #, no-wrap
  37275. msgid "@code{group} (default: @code{fcgiwrap})"
  37276. msgstr ""
  37277. #. type: table
  37278. #: guix-git/doc/guix.texi:25207
  37279. 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."
  37280. msgstr ""
  37281. #. type: table
  37282. #: guix-git/doc/guix.texi:25214
  37283. 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."
  37284. msgstr ""
  37285. #. type: cindex
  37286. #: guix-git/doc/guix.texi:25217
  37287. #, no-wrap
  37288. msgid "php-fpm"
  37289. msgstr ""
  37290. #. type: Plain text
  37291. #: guix-git/doc/guix.texi:25220
  37292. msgid "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size."
  37293. msgstr ""
  37294. #. type: Plain text
  37295. #: guix-git/doc/guix.texi:25222
  37296. msgid "These features include:"
  37297. msgstr ""
  37298. #. type: item
  37299. #: guix-git/doc/guix.texi:25223
  37300. #, no-wrap
  37301. msgid "Adaptive process spawning"
  37302. msgstr ""
  37303. #. type: item
  37304. #: guix-git/doc/guix.texi:25224
  37305. #, no-wrap
  37306. msgid "Basic statistics (similar to Apache's mod_status)"
  37307. msgstr ""
  37308. #. type: item
  37309. #: guix-git/doc/guix.texi:25225
  37310. #, no-wrap
  37311. msgid "Advanced process management with graceful stop/start"
  37312. msgstr ""
  37313. #. type: item
  37314. #: guix-git/doc/guix.texi:25226
  37315. #, no-wrap
  37316. msgid "Ability to start workers with different uid/gid/chroot/environment"
  37317. msgstr ""
  37318. #. type: itemize
  37319. #: guix-git/doc/guix.texi:25228
  37320. msgid "and different php.ini (replaces safe_mode)"
  37321. msgstr ""
  37322. #. type: item
  37323. #: guix-git/doc/guix.texi:25228
  37324. #, no-wrap
  37325. msgid "Stdout & stderr logging"
  37326. msgstr ""
  37327. #. type: item
  37328. #: guix-git/doc/guix.texi:25229
  37329. #, no-wrap
  37330. msgid "Emergency restart in case of accidental opcode cache destruction"
  37331. msgstr ""
  37332. #. type: item
  37333. #: guix-git/doc/guix.texi:25230
  37334. #, no-wrap
  37335. msgid "Accelerated upload support"
  37336. msgstr ""
  37337. #. type: item
  37338. #: guix-git/doc/guix.texi:25231
  37339. #, no-wrap
  37340. msgid "Support for a \"slowlog\""
  37341. msgstr ""
  37342. #. type: item
  37343. #: guix-git/doc/guix.texi:25232
  37344. #, no-wrap
  37345. msgid "Enhancements to FastCGI, such as fastcgi_finish_request() -"
  37346. msgstr ""
  37347. #. type: itemize
  37348. #: guix-git/doc/guix.texi:25235
  37349. msgid "a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)"
  37350. msgstr ""
  37351. #. type: Plain text
  37352. #: guix-git/doc/guix.texi:25237
  37353. msgid "...@: and much more."
  37354. msgstr ""
  37355. #. type: defvr
  37356. #: guix-git/doc/guix.texi:25238
  37357. #, no-wrap
  37358. msgid "{Scheme Variable} php-fpm-service-type"
  37359. msgstr ""
  37360. #. type: defvr
  37361. #: guix-git/doc/guix.texi:25240
  37362. msgid "A Service type for @code{php-fpm}."
  37363. msgstr ""
  37364. #. type: deftp
  37365. #: guix-git/doc/guix.texi:25242
  37366. #, no-wrap
  37367. msgid "{Data Type} php-fpm-configuration"
  37368. msgstr ""
  37369. #. type: deftp
  37370. #: guix-git/doc/guix.texi:25244
  37371. msgid "Data Type for php-fpm service configuration."
  37372. msgstr ""
  37373. #. type: item
  37374. #: guix-git/doc/guix.texi:25245
  37375. #, no-wrap
  37376. msgid "@code{php} (default: @code{php})"
  37377. msgstr ""
  37378. #. type: table
  37379. #: guix-git/doc/guix.texi:25247
  37380. msgid "The php package to use."
  37381. msgstr ""
  37382. #. type: item
  37383. #: guix-git/doc/guix.texi:25247
  37384. #, no-wrap
  37385. msgid "@code{socket} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.sock\")})"
  37386. msgstr ""
  37387. #. type: table
  37388. #: guix-git/doc/guix.texi:25249
  37389. msgid "The address on which to accept FastCGI requests. Valid syntaxes are:"
  37390. msgstr ""
  37391. #. type: code{#1}
  37392. #: guix-git/doc/guix.texi:25250
  37393. #, no-wrap
  37394. msgid "\"ip.add.re.ss:port\""
  37395. msgstr ""
  37396. #. type: table
  37397. #: guix-git/doc/guix.texi:25252
  37398. msgid "Listen on a TCP socket to a specific address on a specific port."
  37399. msgstr ""
  37400. #. type: code{#1}
  37401. #: guix-git/doc/guix.texi:25252
  37402. #, no-wrap
  37403. msgid "\"port\""
  37404. msgstr ""
  37405. #. type: table
  37406. #: guix-git/doc/guix.texi:25254
  37407. msgid "Listen on a TCP socket to all addresses on a specific port."
  37408. msgstr ""
  37409. #. type: code{#1}
  37410. #: guix-git/doc/guix.texi:25254
  37411. #, no-wrap
  37412. msgid "\"/path/to/unix/socket\""
  37413. msgstr ""
  37414. #. type: table
  37415. #: guix-git/doc/guix.texi:25256
  37416. msgid "Listen on a unix socket."
  37417. msgstr ""
  37418. #. type: item
  37419. #: guix-git/doc/guix.texi:25258
  37420. #, no-wrap
  37421. msgid "@code{user} (default: @code{php-fpm})"
  37422. msgstr ""
  37423. #. type: table
  37424. #: guix-git/doc/guix.texi:25260
  37425. msgid "User who will own the php worker processes."
  37426. msgstr ""
  37427. #. type: item
  37428. #: guix-git/doc/guix.texi:25260
  37429. #, no-wrap
  37430. msgid "@code{group} (default: @code{php-fpm})"
  37431. msgstr ""
  37432. #. type: table
  37433. #: guix-git/doc/guix.texi:25262
  37434. msgid "Group of the worker processes."
  37435. msgstr ""
  37436. #. type: item
  37437. #: guix-git/doc/guix.texi:25262
  37438. #, no-wrap
  37439. msgid "@code{socket-user} (default: @code{php-fpm})"
  37440. msgstr ""
  37441. #. type: table
  37442. #: guix-git/doc/guix.texi:25264
  37443. msgid "User who can speak to the php-fpm socket."
  37444. msgstr ""
  37445. #. type: item
  37446. #: guix-git/doc/guix.texi:25264
  37447. #, fuzzy, no-wrap
  37448. msgid "@code{socket-group} (default: @code{nginx})"
  37449. msgstr "@code{gnome}(默认值:@code{gnome})"
  37450. #. type: table
  37451. #: guix-git/doc/guix.texi:25266
  37452. msgid "Group that can speak to the php-fpm socket."
  37453. msgstr ""
  37454. #. type: item
  37455. #: guix-git/doc/guix.texi:25266
  37456. #, no-wrap
  37457. msgid "@code{pid-file} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.pid\")})"
  37458. msgstr ""
  37459. #. type: table
  37460. #: guix-git/doc/guix.texi:25269
  37461. msgid "The process id of the php-fpm process is written to this file once the service has started."
  37462. msgstr ""
  37463. #. type: item
  37464. #: guix-git/doc/guix.texi:25269
  37465. #, no-wrap
  37466. msgid "@code{log-file} (default: @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.log\")})"
  37467. msgstr ""
  37468. #. type: table
  37469. #: guix-git/doc/guix.texi:25271
  37470. msgid "Log for the php-fpm master process."
  37471. msgstr ""
  37472. #. type: item
  37473. #: guix-git/doc/guix.texi:25271
  37474. #, no-wrap
  37475. msgid "@code{process-manager} (default: @code{(php-fpm-dynamic-process-manager-configuration)})"
  37476. msgstr ""
  37477. #. type: table
  37478. #: guix-git/doc/guix.texi:25274
  37479. msgid "Detailed settings for the php-fpm process manager. Must be one of:"
  37480. msgstr ""
  37481. #. type: code{#1}
  37482. #: guix-git/doc/guix.texi:25275
  37483. #, no-wrap
  37484. msgid "<php-fpm-dynamic-process-manager-configuration>"
  37485. msgstr ""
  37486. #. type: code{#1}
  37487. #: guix-git/doc/guix.texi:25276
  37488. #, no-wrap
  37489. msgid "<php-fpm-static-process-manager-configuration>"
  37490. msgstr ""
  37491. #. type: code{#1}
  37492. #: guix-git/doc/guix.texi:25277
  37493. #, no-wrap
  37494. msgid "<php-fpm-on-demand-process-manager-configuration>"
  37495. msgstr ""
  37496. #. type: item
  37497. #: guix-git/doc/guix.texi:25279
  37498. #, no-wrap
  37499. msgid "@code{display-errors} (default @code{#f})"
  37500. msgstr ""
  37501. #. type: table
  37502. #: guix-git/doc/guix.texi:25284
  37503. 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."
  37504. msgstr ""
  37505. #. type: item
  37506. #: guix-git/doc/guix.texi:25284
  37507. #, no-wrap
  37508. msgid "@code{timezone} (default @code{#f})"
  37509. msgstr ""
  37510. #. type: table
  37511. #: guix-git/doc/guix.texi:25286
  37512. msgid "Specifies @code{php_admin_value[date.timezone]} parameter."
  37513. msgstr ""
  37514. #. type: item
  37515. #: guix-git/doc/guix.texi:25286
  37516. #, no-wrap
  37517. msgid "@code{workers-logfile} (default @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.www.log\")})"
  37518. msgstr ""
  37519. #. type: table
  37520. #: guix-git/doc/guix.texi:25289
  37521. msgid "This file will log the @code{stderr} outputs of php worker processes. Can be set to @code{#f} to disable logging."
  37522. msgstr ""
  37523. #. type: item
  37524. #: guix-git/doc/guix.texi:25289
  37525. #, no-wrap
  37526. msgid "@code{file} (default @code{#f})"
  37527. msgstr ""
  37528. #. type: table
  37529. #: guix-git/doc/guix.texi:25292
  37530. msgid "An optional override of the whole configuration. You can use the @code{mixed-text-file} function or an absolute filepath for it."
  37531. msgstr ""
  37532. #. type: item
  37533. #: guix-git/doc/guix.texi:25292
  37534. #, fuzzy, no-wrap
  37535. msgid "@code{php-ini-file} (default @code{#f})"
  37536. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  37537. #. type: table
  37538. #: guix-git/doc/guix.texi:25296
  37539. 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."
  37540. msgstr ""
  37541. #. type: table
  37542. #: guix-git/doc/guix.texi:25300
  37543. 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:"
  37544. msgstr ""
  37545. #. type: lisp
  37546. #: guix-git/doc/guix.texi:25305
  37547. #, no-wrap
  37548. msgid ""
  37549. "(define %local-php-ini\n"
  37550. " (plain-file \"php.ini\"\n"
  37551. " \"memory_limit = 2G\n"
  37552. "max_execution_time = 1800\"))\n"
  37553. "\n"
  37554. msgstr ""
  37555. #. type: lisp
  37556. #: guix-git/doc/guix.texi:25312
  37557. #, no-wrap
  37558. msgid ""
  37559. "(operating-system\n"
  37560. " ;; @dots{}\n"
  37561. " (services (cons (service php-fpm-service-type\n"
  37562. " (php-fpm-configuration\n"
  37563. " (php-ini-file %local-php-ini)))\n"
  37564. " %base-services)))\n"
  37565. msgstr ""
  37566. #. type: table
  37567. #: guix-git/doc/guix.texi:25317
  37568. 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."
  37569. msgstr ""
  37570. #. type: deftp
  37571. #: guix-git/doc/guix.texi:25320
  37572. #, no-wrap
  37573. msgid "{Data type} php-fpm-dynamic-process-manager-configuration"
  37574. msgstr ""
  37575. #. type: deftp
  37576. #: guix-git/doc/guix.texi:25324
  37577. 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 it's configured limits."
  37578. msgstr ""
  37579. #. type: item
  37580. #: guix-git/doc/guix.texi:25325 guix-git/doc/guix.texi:25341
  37581. #: guix-git/doc/guix.texi:25351
  37582. #, no-wrap
  37583. msgid "@code{max-children} (default: @code{5})"
  37584. msgstr ""
  37585. #. type: table
  37586. #: guix-git/doc/guix.texi:25327 guix-git/doc/guix.texi:25343
  37587. #: guix-git/doc/guix.texi:25353
  37588. msgid "Maximum of worker processes."
  37589. msgstr ""
  37590. #. type: item
  37591. #: guix-git/doc/guix.texi:25327
  37592. #, no-wrap
  37593. msgid "@code{start-servers} (default: @code{2})"
  37594. msgstr ""
  37595. #. type: table
  37596. #: guix-git/doc/guix.texi:25329
  37597. msgid "How many worker processes should be started on start-up."
  37598. msgstr ""
  37599. #. type: item
  37600. #: guix-git/doc/guix.texi:25329
  37601. #, no-wrap
  37602. msgid "@code{min-spare-servers} (default: @code{1})"
  37603. msgstr ""
  37604. #. type: table
  37605. #: guix-git/doc/guix.texi:25331
  37606. msgid "How many spare worker processes should be kept around at minimum."
  37607. msgstr ""
  37608. #. type: item
  37609. #: guix-git/doc/guix.texi:25331
  37610. #, no-wrap
  37611. msgid "@code{max-spare-servers} (default: @code{3})"
  37612. msgstr ""
  37613. #. type: table
  37614. #: guix-git/doc/guix.texi:25333
  37615. msgid "How many spare worker processes should be kept around at maximum."
  37616. msgstr ""
  37617. #. type: deftp
  37618. #: guix-git/doc/guix.texi:25336
  37619. #, no-wrap
  37620. msgid "{Data type} php-fpm-static-process-manager-configuration"
  37621. msgstr ""
  37622. #. type: deftp
  37623. #: guix-git/doc/guix.texi:25340
  37624. 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."
  37625. msgstr ""
  37626. #. type: deftp
  37627. #: guix-git/doc/guix.texi:25346
  37628. #, no-wrap
  37629. msgid "{Data type} php-fpm-on-demand-process-manager-configuration"
  37630. msgstr ""
  37631. #. type: deftp
  37632. #: guix-git/doc/guix.texi:25350
  37633. 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."
  37634. msgstr ""
  37635. #. type: item
  37636. #: guix-git/doc/guix.texi:25353
  37637. #, no-wrap
  37638. msgid "@code{process-idle-timeout} (default: @code{10})"
  37639. msgstr ""
  37640. #. type: table
  37641. #: guix-git/doc/guix.texi:25355
  37642. msgid "The time in seconds after which a process with no requests is killed."
  37643. msgstr ""
  37644. #. type: deffn
  37645. #: guix-git/doc/guix.texi:25359
  37646. #, no-wrap
  37647. msgid "{Scheme Procedure} nginx-php-location @"
  37648. msgstr ""
  37649. #. type: deffn
  37650. #: guix-git/doc/guix.texi:25365
  37651. 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}."
  37652. msgstr ""
  37653. #. type: Plain text
  37654. #: guix-git/doc/guix.texi:25368
  37655. msgid "A simple services setup for nginx with php can look like this:"
  37656. msgstr ""
  37657. #. type: lisp
  37658. #: guix-git/doc/guix.texi:25381
  37659. #, no-wrap
  37660. msgid ""
  37661. "(services (cons* (service dhcp-client-service-type)\n"
  37662. " (service php-fpm-service-type)\n"
  37663. " (service nginx-service-type\n"
  37664. " (nginx-server-configuration\n"
  37665. " (server-name '(\"example.com\"))\n"
  37666. " (root \"/srv/http/\")\n"
  37667. " (locations\n"
  37668. " (list (nginx-php-location)))\n"
  37669. " (listen '(\"80\"))\n"
  37670. " (ssl-certificate #f)\n"
  37671. " (ssl-certificate-key #f)))\n"
  37672. " %base-services))\n"
  37673. msgstr ""
  37674. #. type: cindex
  37675. #: guix-git/doc/guix.texi:25383
  37676. #, no-wrap
  37677. msgid "cat-avatar-generator"
  37678. msgstr ""
  37679. #. type: Plain text
  37680. #: guix-git/doc/guix.texi:25387
  37681. 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."
  37682. msgstr ""
  37683. #. type: deffn
  37684. #: guix-git/doc/guix.texi:25388
  37685. #, no-wrap
  37686. msgid "{Scheme Procedure} cat-avatar-generator-service @"
  37687. msgstr ""
  37688. #. type: deffn
  37689. #: guix-git/doc/guix.texi:25396
  37690. 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."
  37691. msgstr ""
  37692. #. type: Plain text
  37693. #: guix-git/doc/guix.texi:25399
  37694. msgid "A simple setup for cat-avatar-generator can look like this:"
  37695. msgstr ""
  37696. #. type: lisp
  37697. #: guix-git/doc/guix.texi:25406
  37698. #, no-wrap
  37699. msgid ""
  37700. "(services (cons* (cat-avatar-generator-service\n"
  37701. " #:configuration\n"
  37702. " (nginx-server-configuration\n"
  37703. " (server-name '(\"example.com\"))))\n"
  37704. " ...\n"
  37705. " %base-services))\n"
  37706. msgstr ""
  37707. #. type: subsubheading
  37708. #: guix-git/doc/guix.texi:25408
  37709. #, no-wrap
  37710. msgid "Hpcguix-web"
  37711. msgstr ""
  37712. #. type: cindex
  37713. #: guix-git/doc/guix.texi:25410
  37714. #, no-wrap
  37715. msgid "hpcguix-web"
  37716. msgstr ""
  37717. #. type: Plain text
  37718. #: guix-git/doc/guix.texi:25415
  37719. 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."
  37720. msgstr ""
  37721. #. type: defvr
  37722. #: guix-git/doc/guix.texi:25416
  37723. #, no-wrap
  37724. msgid "{Scheme Variable} hpcguix-web-service-type"
  37725. msgstr ""
  37726. #. type: defvr
  37727. #: guix-git/doc/guix.texi:25418
  37728. msgid "The service type for @code{hpcguix-web}."
  37729. msgstr ""
  37730. #. type: deftp
  37731. #: guix-git/doc/guix.texi:25420
  37732. #, no-wrap
  37733. msgid "{Data Type} hpcguix-web-configuration"
  37734. msgstr ""
  37735. #. type: deftp
  37736. #: guix-git/doc/guix.texi:25422
  37737. msgid "Data type for the hpcguix-web service configuration."
  37738. msgstr ""
  37739. #. type: code{#1}
  37740. #: guix-git/doc/guix.texi:25424
  37741. #, no-wrap
  37742. msgid "specs"
  37743. msgstr ""
  37744. #. type: table
  37745. #: guix-git/doc/guix.texi:25427
  37746. msgid "A gexp (@pxref{G-Expressions}) specifying the hpcguix-web service configuration. The main items available in this spec are:"
  37747. msgstr ""
  37748. #. type: item
  37749. #: guix-git/doc/guix.texi:25429
  37750. #, no-wrap
  37751. msgid "@code{title-prefix} (default: @code{\"hpcguix | \"})"
  37752. msgstr ""
  37753. #. type: table
  37754. #: guix-git/doc/guix.texi:25431
  37755. msgid "The page title prefix."
  37756. msgstr ""
  37757. #. type: item
  37758. #: guix-git/doc/guix.texi:25432
  37759. #, no-wrap
  37760. msgid "@code{guix-command} (default: @code{\"guix\"})"
  37761. msgstr ""
  37762. #. type: table
  37763. #: guix-git/doc/guix.texi:25434
  37764. msgid "The @command{guix} command."
  37765. msgstr ""
  37766. #. type: item
  37767. #: guix-git/doc/guix.texi:25435
  37768. #, no-wrap
  37769. msgid "@code{package-filter-proc} (default: @code{(const #t)})"
  37770. msgstr ""
  37771. #. type: table
  37772. #: guix-git/doc/guix.texi:25437
  37773. msgid "A procedure specifying how to filter packages that are displayed."
  37774. msgstr ""
  37775. #. type: item
  37776. #: guix-git/doc/guix.texi:25438
  37777. #, no-wrap
  37778. msgid "@code{package-page-extension-proc} (default: @code{(const '())})"
  37779. msgstr ""
  37780. #. type: table
  37781. #: guix-git/doc/guix.texi:25440
  37782. msgid "Extension package for @code{hpcguix-web}."
  37783. msgstr ""
  37784. #. type: item
  37785. #: guix-git/doc/guix.texi:25441
  37786. #, no-wrap
  37787. msgid "@code{menu} (default: @code{'()})"
  37788. msgstr ""
  37789. #. type: table
  37790. #: guix-git/doc/guix.texi:25443
  37791. msgid "Additional entry in page @code{menu}."
  37792. msgstr ""
  37793. #. type: item
  37794. #: guix-git/doc/guix.texi:25444
  37795. #, no-wrap
  37796. msgid "@code{channels} (default: @code{%default-channels})"
  37797. msgstr ""
  37798. #. type: table
  37799. #: guix-git/doc/guix.texi:25446
  37800. msgid "List of channels from which the package list is built (@pxref{Channels})."
  37801. msgstr ""
  37802. #. type: item
  37803. #: guix-git/doc/guix.texi:25447
  37804. #, no-wrap
  37805. msgid "@code{package-list-expiration} (default: @code{(* 12 3600)})"
  37806. msgstr ""
  37807. #. type: table
  37808. #: guix-git/doc/guix.texi:25450
  37809. msgid "The expiration time, in seconds, after which the package list is rebuilt from the latest instances of the given channels."
  37810. msgstr ""
  37811. #. type: table
  37812. #: guix-git/doc/guix.texi:25455
  37813. msgid "See the hpcguix-web repository for a @uref{https://github.com/UMCUGenetics/hpcguix-web/blob/master/hpcweb-configuration.scm, complete example}."
  37814. msgstr ""
  37815. #. type: item
  37816. #: guix-git/doc/guix.texi:25456
  37817. #, no-wrap
  37818. msgid "@code{package} (default: @code{hpcguix-web})"
  37819. msgstr ""
  37820. #. type: table
  37821. #: guix-git/doc/guix.texi:25458
  37822. msgid "The hpcguix-web package to use."
  37823. msgstr ""
  37824. #. type: Plain text
  37825. #: guix-git/doc/guix.texi:25462
  37826. msgid "A typical hpcguix-web service declaration looks like this:"
  37827. msgstr ""
  37828. #. type: lisp
  37829. #: guix-git/doc/guix.texi:25471
  37830. #, no-wrap
  37831. msgid ""
  37832. "(service hpcguix-web-service-type\n"
  37833. " (hpcguix-web-configuration\n"
  37834. " (specs\n"
  37835. " #~(define site-config\n"
  37836. " (hpcweb-configuration\n"
  37837. " (title-prefix \"Guix-HPC - \")\n"
  37838. " (menu '((\"/about\" \"ABOUT\"))))))))\n"
  37839. msgstr ""
  37840. #. type: quotation
  37841. #: guix-git/doc/guix.texi:25478
  37842. 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."
  37843. msgstr ""
  37844. #. type: quotation
  37845. #: guix-git/doc/guix.texi:25482
  37846. 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."
  37847. msgstr ""
  37848. #. type: cindex
  37849. #: guix-git/doc/guix.texi:25484 guix-git/doc/guix.texi:25486
  37850. #, no-wrap
  37851. msgid "gmnisrv"
  37852. msgstr ""
  37853. #. type: Plain text
  37854. #: guix-git/doc/guix.texi:25489
  37855. msgid "The @uref{https://git.sr.ht/~sircmpwn/gmnisrv, gmnisrv} program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server."
  37856. msgstr ""
  37857. #. type: deffn
  37858. #: guix-git/doc/guix.texi:25490
  37859. #, no-wrap
  37860. msgid "{Scheme Variable} gmnisrv-service-type"
  37861. msgstr ""
  37862. #. type: deffn
  37863. #: guix-git/doc/guix.texi:25493
  37864. msgid "This is the type of the gmnisrv service, whose value should be a @code{gmnisrv-configuration} object, as in this example:"
  37865. msgstr ""
  37866. #. type: lisp
  37867. #: guix-git/doc/guix.texi:25498
  37868. #, no-wrap
  37869. msgid ""
  37870. "(service gmnisrv-service-type\n"
  37871. " (gmnisrv-configuration\n"
  37872. " (config-file (local-file \"./my-gmnisrv.ini\"))))\n"
  37873. msgstr ""
  37874. #. type: deftp
  37875. #: guix-git/doc/guix.texi:25501
  37876. #, no-wrap
  37877. msgid "{Data Type} gmnisrv-configuration"
  37878. msgstr ""
  37879. #. type: deftp
  37880. #: guix-git/doc/guix.texi:25503
  37881. #, fuzzy
  37882. msgid "Data type representing the configuration of gmnisrv."
  37883. msgstr "管理操作系统配置。"
  37884. #. type: item
  37885. #: guix-git/doc/guix.texi:25505
  37886. #, fuzzy, no-wrap
  37887. msgid "@code{package} (default: @var{gmnisrv})"
  37888. msgstr "@code{gnome}(默认值:@code{gnome})"
  37889. #. type: table
  37890. #: guix-git/doc/guix.texi:25507
  37891. msgid "Package object of the gmnisrv server."
  37892. msgstr ""
  37893. #. type: item
  37894. #: guix-git/doc/guix.texi:25508
  37895. #, fuzzy, no-wrap
  37896. msgid "@code{config-file} (default: @code{%default-gmnisrv-config-file})"
  37897. msgstr "@code{gnome}(默认值:@code{gnome})"
  37898. #. type: table
  37899. #: guix-git/doc/guix.texi:25514
  37900. 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}."
  37901. msgstr ""
  37902. #. type: subsubheading
  37903. #: guix-git/doc/guix.texi:25518
  37904. #, no-wrap
  37905. msgid "Agate"
  37906. msgstr ""
  37907. #. type: cindex
  37908. #: guix-git/doc/guix.texi:25520
  37909. #, no-wrap
  37910. msgid "agate"
  37911. msgstr ""
  37912. #. type: Plain text
  37913. #: guix-git/doc/guix.texi:25525
  37914. 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."
  37915. msgstr ""
  37916. #. type: deffn
  37917. #: guix-git/doc/guix.texi:25526
  37918. #, no-wrap
  37919. msgid "{Scheme Variable} agate-service-type"
  37920. msgstr ""
  37921. #. type: deffn
  37922. #: guix-git/doc/guix.texi:25529
  37923. msgid "This is the type of the agate service, whose value should be an @code{agate-service-type} object, as in this example:"
  37924. msgstr ""
  37925. #. type: lisp
  37926. #: guix-git/doc/guix.texi:25536
  37927. #, no-wrap
  37928. msgid ""
  37929. "(service agate-service-type\n"
  37930. "\t (agate-configuration\n"
  37931. "\t (content \"/srv/gemini\")\n"
  37932. "\t (cert \"/srv/cert.pem\")\n"
  37933. "\t (key \"/srv/key.rsa\")))\n"
  37934. msgstr ""
  37935. #. type: deffn
  37936. #: guix-git/doc/guix.texi:25541
  37937. 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."
  37938. msgstr ""
  37939. #. type: deffn
  37940. #: guix-git/doc/guix.texi:25544
  37941. msgid "To obtain a certificate and a key, you could, for example, use OpenSSL, running a command similar to the following example:"
  37942. msgstr ""
  37943. #. type: example
  37944. #: guix-git/doc/guix.texi:25548
  37945. #, no-wrap
  37946. msgid ""
  37947. "openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \\\n"
  37948. " -days 3650 -nodes -subj \"/CN=example.com\"\n"
  37949. msgstr ""
  37950. #. type: deffn
  37951. #: guix-git/doc/guix.texi:25553
  37952. 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."
  37953. msgstr ""
  37954. #. type: deftp
  37955. #: guix-git/doc/guix.texi:25556
  37956. #, fuzzy, no-wrap
  37957. msgid "{Data Type} agate-configuration"
  37958. msgstr "管理操作系统配置。"
  37959. #. type: deftp
  37960. #: guix-git/doc/guix.texi:25558
  37961. #, fuzzy
  37962. msgid "Data type representing the configuration of Agate."
  37963. msgstr "管理操作系统配置。"
  37964. #. type: item
  37965. #: guix-git/doc/guix.texi:25560
  37966. #, fuzzy, no-wrap
  37967. msgid "@code{package} (default: @code{agate})"
  37968. msgstr "@code{mate}(默认值:@code{mate})"
  37969. #. type: table
  37970. #: guix-git/doc/guix.texi:25562
  37971. #, fuzzy
  37972. msgid "The package object of the Agate server."
  37973. msgstr "软件包数据类型。"
  37974. #. type: item
  37975. #: guix-git/doc/guix.texi:25563
  37976. #, fuzzy, no-wrap
  37977. msgid "@code{content} (default: @file{\"/srv/gemini\"})"
  37978. msgstr "@code{mate}(默认值:@code{mate})"
  37979. #. type: table
  37980. #: guix-git/doc/guix.texi:25565
  37981. msgid "The directory from which Agate will serve files."
  37982. msgstr ""
  37983. #. type: item
  37984. #: guix-git/doc/guix.texi:25566
  37985. #, fuzzy, no-wrap
  37986. msgid "@code{cert} (default: @code{#f})"
  37987. msgstr "@code{port}(默认值:@code{22})"
  37988. #. type: table
  37989. #: guix-git/doc/guix.texi:25569
  37990. 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."
  37991. msgstr ""
  37992. #. type: item
  37993. #: guix-git/doc/guix.texi:25570 guix-git/doc/guix.texi:25998
  37994. #, no-wrap
  37995. msgid "@code{key} (default: @code{#f})"
  37996. msgstr ""
  37997. #. type: table
  37998. #: guix-git/doc/guix.texi:25573
  37999. 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."
  38000. msgstr ""
  38001. #. type: item
  38002. #: guix-git/doc/guix.texi:25574
  38003. #, fuzzy, no-wrap
  38004. msgid "@code{addr} (default: @code{'(\"0.0.0.0:1965\" \"[::]:1965\")})"
  38005. msgstr "@code{display}(默认值:@code{\":0\"})"
  38006. #. type: table
  38007. #: guix-git/doc/guix.texi:25576
  38008. msgid "A list of the addresses to listen on."
  38009. msgstr ""
  38010. #. type: table
  38011. #: guix-git/doc/guix.texi:25579
  38012. msgid "The domain name of this Gemini server. Optional."
  38013. msgstr ""
  38014. #. type: item
  38015. #: guix-git/doc/guix.texi:25580
  38016. #, fuzzy, no-wrap
  38017. msgid "@code{lang} (default: @code{#f})"
  38018. msgstr "@code{challenge}(默认值:@code{#f})"
  38019. #. type: table
  38020. #: guix-git/doc/guix.texi:25582
  38021. msgid "RFC 4646 language code(s) for text/gemini documents. Optional."
  38022. msgstr ""
  38023. #. type: item
  38024. #: guix-git/doc/guix.texi:25583
  38025. #, fuzzy, no-wrap
  38026. msgid "@code{silent?} (default: @code{#f})"
  38027. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38028. #. type: table
  38029. #: guix-git/doc/guix.texi:25585
  38030. msgid "Set to @code{#t} to disable logging output."
  38031. msgstr ""
  38032. #. type: item
  38033. #: guix-git/doc/guix.texi:25586
  38034. #, fuzzy, no-wrap
  38035. msgid "@code{serve-secret?} (default: @code{#f})"
  38036. msgstr "@code{speed}(默认值:@code{1.0})"
  38037. #. type: table
  38038. #: guix-git/doc/guix.texi:25589
  38039. msgid "Set to @code{#t} to serve secret files (files/directories starting with a dot)."
  38040. msgstr ""
  38041. #. type: item
  38042. #: guix-git/doc/guix.texi:25590
  38043. #, fuzzy, no-wrap
  38044. msgid "@code{log-ip?} (default: @code{#t})"
  38045. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38046. #. type: table
  38047. #: guix-git/doc/guix.texi:25592
  38048. msgid "Whether or not to output IP addresses when logging."
  38049. msgstr ""
  38050. #. type: item
  38051. #: guix-git/doc/guix.texi:25593
  38052. #, fuzzy, no-wrap
  38053. msgid "@code{user} (default: @code{\"agate\"})"
  38054. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  38055. #. type: table
  38056. #: guix-git/doc/guix.texi:25595
  38057. msgid "Owner of the @code{agate} process."
  38058. msgstr ""
  38059. #. type: item
  38060. #: guix-git/doc/guix.texi:25596
  38061. #, fuzzy, no-wrap
  38062. msgid "@code{group} (default: @code{\"agate\"})"
  38063. msgstr "@code{gnome}(默认值:@code{gnome})"
  38064. #. type: table
  38065. #: guix-git/doc/guix.texi:25598
  38066. msgid "Owner's group of the @code{agate} process."
  38067. msgstr ""
  38068. #. type: item
  38069. #: guix-git/doc/guix.texi:25599
  38070. #, fuzzy, no-wrap
  38071. msgid "@code{log-file} (default: @file{\"/var/log/agate.log\"})"
  38072. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  38073. #. type: table
  38074. #: guix-git/doc/guix.texi:25601
  38075. msgid "The file which should store the logging output of Agate."
  38076. msgstr ""
  38077. #. type: cindex
  38078. #: guix-git/doc/guix.texi:25608
  38079. #, no-wrap
  38080. msgid "Web"
  38081. msgstr ""
  38082. #. type: cindex
  38083. #: guix-git/doc/guix.texi:25609
  38084. #, no-wrap
  38085. msgid "HTTP, HTTPS"
  38086. msgstr ""
  38087. #. type: cindex
  38088. #: guix-git/doc/guix.texi:25610
  38089. #, no-wrap
  38090. msgid "Let's Encrypt"
  38091. msgstr ""
  38092. #. type: cindex
  38093. #: guix-git/doc/guix.texi:25611
  38094. #, no-wrap
  38095. msgid "TLS certificates"
  38096. msgstr ""
  38097. #. type: Plain text
  38098. #: guix-git/doc/guix.texi:25618
  38099. 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."
  38100. msgstr ""
  38101. #. type: Plain text
  38102. #: guix-git/doc/guix.texi:25630
  38103. 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."
  38104. msgstr ""
  38105. #. type: Plain text
  38106. #: guix-git/doc/guix.texi:25637
  38107. 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)."
  38108. msgstr ""
  38109. #. type: Plain text
  38110. #: guix-git/doc/guix.texi:25643
  38111. 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."
  38112. msgstr ""
  38113. #. type: Plain text
  38114. #: guix-git/doc/guix.texi:25647
  38115. 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}."
  38116. msgstr ""
  38117. #. type: defvr
  38118. #: guix-git/doc/guix.texi:25648
  38119. #, no-wrap
  38120. msgid "{Scheme Variable} certbot-service-type"
  38121. msgstr ""
  38122. #. type: defvr
  38123. #: guix-git/doc/guix.texi:25651
  38124. 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:"
  38125. msgstr ""
  38126. #. type: lisp
  38127. #: guix-git/doc/guix.texi:25658
  38128. #, no-wrap
  38129. msgid ""
  38130. "(define %nginx-deploy-hook\n"
  38131. " (program-file\n"
  38132. " \"nginx-deploy-hook\"\n"
  38133. " #~(let ((pid (call-with-input-file \"/var/run/nginx/pid\" read)))\n"
  38134. " (kill pid SIGHUP))))\n"
  38135. "\n"
  38136. msgstr ""
  38137. #. type: lisp
  38138. #: guix-git/doc/guix.texi:25669
  38139. #, no-wrap
  38140. msgid ""
  38141. "(service certbot-service-type\n"
  38142. " (certbot-configuration\n"
  38143. " (email \"foo@@example.net\")\n"
  38144. " (certificates\n"
  38145. " (list\n"
  38146. " (certificate-configuration\n"
  38147. " (domains '(\"example.net\" \"www.example.net\"))\n"
  38148. " (deploy-hook %nginx-deploy-hook))\n"
  38149. " (certificate-configuration\n"
  38150. " (domains '(\"bar.example.net\")))))))\n"
  38151. msgstr ""
  38152. #. type: defvr
  38153. #: guix-git/doc/guix.texi:25672
  38154. msgid "See below for details about @code{certbot-configuration}."
  38155. msgstr ""
  38156. #. type: deftp
  38157. #: guix-git/doc/guix.texi:25674
  38158. #, no-wrap
  38159. msgid "{Data Type} certbot-configuration"
  38160. msgstr ""
  38161. #. type: deftp
  38162. #: guix-git/doc/guix.texi:25677
  38163. msgid "Data type representing the configuration of the @code{certbot} service. This type has the following parameters:"
  38164. msgstr ""
  38165. #. type: item
  38166. #: guix-git/doc/guix.texi:25679
  38167. #, no-wrap
  38168. msgid "@code{package} (default: @code{certbot})"
  38169. msgstr ""
  38170. #. type: table
  38171. #: guix-git/doc/guix.texi:25681
  38172. msgid "The certbot package to use."
  38173. msgstr ""
  38174. #. type: item
  38175. #: guix-git/doc/guix.texi:25682
  38176. #, no-wrap
  38177. msgid "@code{webroot} (default: @code{/var/www})"
  38178. msgstr ""
  38179. #. type: table
  38180. #: guix-git/doc/guix.texi:25685
  38181. msgid "The directory from which to serve the Let's Encrypt challenge/response files."
  38182. msgstr ""
  38183. #. type: item
  38184. #: guix-git/doc/guix.texi:25686
  38185. #, no-wrap
  38186. msgid "@code{certificates} (default: @code{()})"
  38187. msgstr ""
  38188. #. type: table
  38189. #: guix-git/doc/guix.texi:25690
  38190. 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}."
  38191. msgstr ""
  38192. #. type: item
  38193. #: guix-git/doc/guix.texi:25691
  38194. #, fuzzy, no-wrap
  38195. msgid "@code{email} (default: @code{#f})"
  38196. msgstr "@code{challenge}(默认值:@code{#f})"
  38197. #. type: table
  38198. #: guix-git/doc/guix.texi:25695
  38199. 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."
  38200. msgstr ""
  38201. #. type: item
  38202. #: guix-git/doc/guix.texi:25696 guix-git/doc/guix.texi:27376
  38203. #, fuzzy, no-wrap
  38204. msgid "@code{server} (default: @code{#f})"
  38205. msgstr "@code{speed}(默认值:@code{1.0})"
  38206. #. type: table
  38207. #: guix-git/doc/guix.texi:25699
  38208. msgid "Optional URL of ACME server. Setting this overrides certbot's default, which is the Let's Encrypt server."
  38209. msgstr ""
  38210. #. type: item
  38211. #: guix-git/doc/guix.texi:25700
  38212. #, no-wrap
  38213. msgid "@code{rsa-key-size} (default: @code{2048})"
  38214. msgstr ""
  38215. #. type: table
  38216. #: guix-git/doc/guix.texi:25702
  38217. msgid "Size of the RSA key."
  38218. msgstr ""
  38219. #. type: item
  38220. #: guix-git/doc/guix.texi:25703
  38221. #, no-wrap
  38222. msgid "@code{default-location} (default: @i{see below})"
  38223. msgstr ""
  38224. #. type: table
  38225. #: guix-git/doc/guix.texi:25712
  38226. 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."
  38227. msgstr ""
  38228. #. type: table
  38229. #: guix-git/doc/guix.texi:25716
  38230. 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."
  38231. msgstr ""
  38232. #. type: table
  38233. #: guix-git/doc/guix.texi:25720
  38234. 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}."
  38235. msgstr ""
  38236. #. type: table
  38237. #: guix-git/doc/guix.texi:25722
  38238. msgid "Pass @code{#f} to not issue a default location."
  38239. msgstr ""
  38240. #. type: deftp
  38241. #: guix-git/doc/guix.texi:25725
  38242. #, no-wrap
  38243. msgid "{Data Type} certificate-configuration"
  38244. msgstr ""
  38245. #. type: deftp
  38246. #: guix-git/doc/guix.texi:25728
  38247. msgid "Data type representing the configuration of a certificate. This type has the following parameters:"
  38248. msgstr ""
  38249. #. type: item
  38250. #: guix-git/doc/guix.texi:25730
  38251. #, no-wrap
  38252. msgid "@code{name} (default: @i{see below})"
  38253. msgstr ""
  38254. #. type: table
  38255. #: guix-git/doc/guix.texi:25734
  38256. 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}."
  38257. msgstr ""
  38258. #. type: table
  38259. #: guix-git/doc/guix.texi:25736
  38260. msgid "Its default is the first provided domain."
  38261. msgstr ""
  38262. #. type: item
  38263. #: guix-git/doc/guix.texi:25737
  38264. #, no-wrap
  38265. msgid "@code{domains} (default: @code{()})"
  38266. msgstr ""
  38267. #. type: table
  38268. #: guix-git/doc/guix.texi:25740
  38269. msgid "The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate."
  38270. msgstr ""
  38271. #. type: item
  38272. #: guix-git/doc/guix.texi:25741
  38273. #, no-wrap
  38274. msgid "@code{challenge} (default: @code{#f})"
  38275. msgstr "@code{challenge}(默认值:@code{#f})"
  38276. #. type: table
  38277. #: guix-git/doc/guix.texi:25748
  38278. 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."
  38279. msgstr ""
  38280. #. type: item
  38281. #: guix-git/doc/guix.texi:25749
  38282. #, no-wrap
  38283. msgid "@code{authentication-hook} (default: @code{#f})"
  38284. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  38285. #. type: table
  38286. #: guix-git/doc/guix.texi:25755
  38287. 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."
  38288. msgstr ""
  38289. #. type: item
  38290. #: guix-git/doc/guix.texi:25756
  38291. #, no-wrap
  38292. msgid "@code{cleanup-hook} (default: @code{#f})"
  38293. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  38294. #. type: table
  38295. #: guix-git/doc/guix.texi:25762
  38296. 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."
  38297. msgstr ""
  38298. #. type: item
  38299. #: guix-git/doc/guix.texi:25763
  38300. #, no-wrap
  38301. msgid "@code{deploy-hook} (default: @code{#f})"
  38302. msgstr ""
  38303. #. type: table
  38304. #: guix-git/doc/guix.texi:25771
  38305. 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\"}."
  38306. msgstr ""
  38307. #. type: Plain text
  38308. #: guix-git/doc/guix.texi:25778
  38309. 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}."
  38310. msgstr ""
  38311. #. type: cindex
  38312. #: guix-git/doc/guix.texi:25780
  38313. #, no-wrap
  38314. msgid "DNS (domain name system)"
  38315. msgstr ""
  38316. #. type: cindex
  38317. #: guix-git/doc/guix.texi:25781
  38318. #, no-wrap
  38319. msgid "domain name system (DNS)"
  38320. msgstr ""
  38321. #. type: Plain text
  38322. #: guix-git/doc/guix.texi:25789
  38323. 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}."
  38324. msgstr ""
  38325. #. type: subsubheading
  38326. #: guix-git/doc/guix.texi:25790
  38327. #, no-wrap
  38328. msgid "Knot Service"
  38329. msgstr ""
  38330. #. type: Plain text
  38331. #: guix-git/doc/guix.texi:25794
  38332. msgid "An example configuration of an authoritative server for two zones, one master and one slave, is:"
  38333. msgstr ""
  38334. #. type: lisp
  38335. #: guix-git/doc/guix.texi:25801
  38336. #, no-wrap
  38337. msgid ""
  38338. "(define-zone-entries example.org.zone\n"
  38339. ";; Name TTL Class Type Data\n"
  38340. " (\"@@\" \"\" \"IN\" \"A\" \"127.0.0.1\")\n"
  38341. " (\"@@\" \"\" \"IN\" \"NS\" \"ns\")\n"
  38342. " (\"ns\" \"\" \"IN\" \"A\" \"127.0.0.1\"))\n"
  38343. "\n"
  38344. msgstr ""
  38345. #. type: lisp
  38346. #: guix-git/doc/guix.texi:25808
  38347. #, no-wrap
  38348. msgid ""
  38349. "(define master-zone\n"
  38350. " (knot-zone-configuration\n"
  38351. " (domain \"example.org\")\n"
  38352. " (zone (zone-file\n"
  38353. " (origin \"example.org\")\n"
  38354. " (entries example.org.zone)))))\n"
  38355. "\n"
  38356. msgstr ""
  38357. #. type: lisp
  38358. #: guix-git/doc/guix.texi:25814
  38359. #, no-wrap
  38360. msgid ""
  38361. "(define slave-zone\n"
  38362. " (knot-zone-configuration\n"
  38363. " (domain \"plop.org\")\n"
  38364. " (dnssec-policy \"default\")\n"
  38365. " (master (list \"plop-master\"))))\n"
  38366. "\n"
  38367. msgstr ""
  38368. #. type: lisp
  38369. #: guix-git/doc/guix.texi:25819
  38370. #, no-wrap
  38371. msgid ""
  38372. "(define plop-master\n"
  38373. " (knot-remote-configuration\n"
  38374. " (id \"plop-master\")\n"
  38375. " (address (list \"208.76.58.171\"))))\n"
  38376. "\n"
  38377. msgstr ""
  38378. #. type: lisp
  38379. #: guix-git/doc/guix.texi:25828
  38380. #, no-wrap
  38381. msgid ""
  38382. "(operating-system\n"
  38383. " ;; ...\n"
  38384. " (services (cons* (service knot-service-type\n"
  38385. " (knot-configuration\n"
  38386. " (remotes (list plop-master))\n"
  38387. " (zones (list master-zone slave-zone))))\n"
  38388. " ;; ...\n"
  38389. " %base-services)))\n"
  38390. msgstr ""
  38391. #. type: deffn
  38392. #: guix-git/doc/guix.texi:25830
  38393. #, no-wrap
  38394. msgid "{Scheme Variable} knot-service-type"
  38395. msgstr ""
  38396. #. type: deffn
  38397. #: guix-git/doc/guix.texi:25832
  38398. msgid "This is the type for the Knot DNS server."
  38399. msgstr ""
  38400. #. type: deffn
  38401. #: guix-git/doc/guix.texi:25840
  38402. 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."
  38403. msgstr ""
  38404. #. type: deffn
  38405. #: guix-git/doc/guix.texi:25842
  38406. msgid "The following data types are used to configure the Knot DNS server:"
  38407. msgstr ""
  38408. #. type: deftp
  38409. #: guix-git/doc/guix.texi:25844
  38410. #, no-wrap
  38411. msgid "{Data Type} knot-key-configuration"
  38412. msgstr ""
  38413. #. type: deftp
  38414. #: guix-git/doc/guix.texi:25847
  38415. msgid "Data type representing a key. This type has the following parameters:"
  38416. msgstr ""
  38417. #. type: item
  38418. #: guix-git/doc/guix.texi:25849 guix-git/doc/guix.texi:25869
  38419. #: guix-git/doc/guix.texi:25984 guix-git/doc/guix.texi:26010
  38420. #: guix-git/doc/guix.texi:26045
  38421. #, no-wrap
  38422. msgid "@code{id} (default: @code{\"\"})"
  38423. msgstr ""
  38424. #. type: table
  38425. #: guix-git/doc/guix.texi:25852 guix-git/doc/guix.texi:25872
  38426. msgid "An identifier for other configuration fields to refer to this key. IDs must be unique and must not be empty."
  38427. msgstr ""
  38428. #. type: item
  38429. #: guix-git/doc/guix.texi:25853
  38430. #, no-wrap
  38431. msgid "@code{algorithm} (default: @code{#f})"
  38432. msgstr ""
  38433. #. type: table
  38434. #: guix-git/doc/guix.texi:25857
  38435. 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}."
  38436. msgstr ""
  38437. #. type: item
  38438. #: guix-git/doc/guix.texi:25858
  38439. #, no-wrap
  38440. msgid "@code{secret} (default: @code{\"\"})"
  38441. msgstr ""
  38442. #. type: table
  38443. #: guix-git/doc/guix.texi:25860
  38444. msgid "The secret key itself."
  38445. msgstr ""
  38446. #. type: deftp
  38447. #: guix-git/doc/guix.texi:25864
  38448. #, no-wrap
  38449. msgid "{Data Type} knot-acl-configuration"
  38450. msgstr ""
  38451. #. type: deftp
  38452. #: guix-git/doc/guix.texi:25867
  38453. msgid "Data type representing an Access Control List (ACL) configuration. This type has the following parameters:"
  38454. msgstr ""
  38455. #. type: item
  38456. #: guix-git/doc/guix.texi:25873 guix-git/doc/guix.texi:25988
  38457. #, no-wrap
  38458. msgid "@code{address} (default: @code{'()})"
  38459. msgstr ""
  38460. #. type: table
  38461. #: guix-git/doc/guix.texi:25877
  38462. 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."
  38463. msgstr ""
  38464. #. type: item
  38465. #: guix-git/doc/guix.texi:25878
  38466. #, no-wrap
  38467. msgid "@code{key} (default: @code{'()})"
  38468. msgstr ""
  38469. #. type: table
  38470. #: guix-git/doc/guix.texi:25882
  38471. 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."
  38472. msgstr ""
  38473. #. type: item
  38474. #: guix-git/doc/guix.texi:25883
  38475. #, no-wrap
  38476. msgid "@code{action} (default: @code{'()})"
  38477. msgstr ""
  38478. #. type: table
  38479. #: guix-git/doc/guix.texi:25887
  38480. 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}."
  38481. msgstr ""
  38482. #. type: item
  38483. #: guix-git/doc/guix.texi:25888
  38484. #, no-wrap
  38485. msgid "@code{deny?} (default: @code{#f})"
  38486. msgstr ""
  38487. #. type: table
  38488. #: guix-git/doc/guix.texi:25891
  38489. msgid "When true, the ACL defines restrictions. Listed actions are forbidden. When false, listed actions are allowed."
  38490. msgstr ""
  38491. #. type: deftp
  38492. #: guix-git/doc/guix.texi:25895
  38493. #, no-wrap
  38494. msgid "{Data Type} zone-entry"
  38495. msgstr ""
  38496. #. type: deftp
  38497. #: guix-git/doc/guix.texi:25898
  38498. msgid "Data type representing a record entry in a zone file. This type has the following parameters:"
  38499. msgstr ""
  38500. #. type: item
  38501. #: guix-git/doc/guix.texi:25900
  38502. #, no-wrap
  38503. msgid "@code{name} (default: @code{\"@@\"})"
  38504. msgstr ""
  38505. #. type: table
  38506. #: guix-git/doc/guix.texi:25906
  38507. 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}."
  38508. msgstr ""
  38509. #. type: item
  38510. #: guix-git/doc/guix.texi:25907
  38511. #, no-wrap
  38512. msgid "@code{ttl} (default: @code{\"\"})"
  38513. msgstr ""
  38514. #. type: table
  38515. #: guix-git/doc/guix.texi:25909
  38516. msgid "The Time-To-Live (TTL) of this record. If not set, the default TTL is used."
  38517. msgstr ""
  38518. #. type: item
  38519. #: guix-git/doc/guix.texi:25910
  38520. #, no-wrap
  38521. msgid "@code{class} (default: @code{\"IN\"})"
  38522. msgstr ""
  38523. #. type: table
  38524. #: guix-git/doc/guix.texi:25913
  38525. msgid "The class of the record. Knot currently supports only @code{\"IN\"} and partially @code{\"CH\"}."
  38526. msgstr ""
  38527. #. type: item
  38528. #: guix-git/doc/guix.texi:25914
  38529. #, no-wrap
  38530. msgid "@code{type} (default: @code{\"A\"})"
  38531. msgstr ""
  38532. #. type: table
  38533. #: guix-git/doc/guix.texi:25918
  38534. 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."
  38535. msgstr ""
  38536. #. type: item
  38537. #: guix-git/doc/guix.texi:25919
  38538. #, no-wrap
  38539. msgid "@code{data} (default: @code{\"\"})"
  38540. msgstr ""
  38541. #. type: table
  38542. #: guix-git/doc/guix.texi:25923
  38543. 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."
  38544. msgstr ""
  38545. #. type: deftp
  38546. #: guix-git/doc/guix.texi:25927
  38547. #, no-wrap
  38548. msgid "{Data Type} zone-file"
  38549. msgstr ""
  38550. #. type: deftp
  38551. #: guix-git/doc/guix.texi:25930
  38552. msgid "Data type representing the content of a zone file. This type has the following parameters:"
  38553. msgstr ""
  38554. #. type: table
  38555. #: guix-git/doc/guix.texi:25939
  38556. 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}."
  38557. msgstr ""
  38558. #. type: item
  38559. #: guix-git/doc/guix.texi:25940
  38560. #, no-wrap
  38561. msgid "@code{origin} (default: @code{\"\"})"
  38562. msgstr ""
  38563. #. type: table
  38564. #: guix-git/doc/guix.texi:25942
  38565. msgid "The name of your zone. This parameter cannot be empty."
  38566. msgstr ""
  38567. #. type: item
  38568. #: guix-git/doc/guix.texi:25943
  38569. #, no-wrap
  38570. msgid "@code{ns} (default: @code{\"ns\"})"
  38571. msgstr ""
  38572. #. type: table
  38573. #: guix-git/doc/guix.texi:25948
  38574. 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."
  38575. msgstr ""
  38576. #. type: item
  38577. #: guix-git/doc/guix.texi:25949
  38578. #, no-wrap
  38579. msgid "@code{mail} (default: @code{\"hostmaster\"})"
  38580. msgstr ""
  38581. #. type: table
  38582. #: guix-git/doc/guix.texi:25952
  38583. msgid "An email address people can contact you at, as the owner of the zone. This is translated as @code{<mail>@@<origin>}."
  38584. msgstr ""
  38585. #. type: item
  38586. #: guix-git/doc/guix.texi:25953
  38587. #, no-wrap
  38588. msgid "@code{serial} (default: @code{1})"
  38589. msgstr ""
  38590. #. type: table
  38591. #: guix-git/doc/guix.texi:25957
  38592. 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."
  38593. msgstr ""
  38594. #. type: item
  38595. #: guix-git/doc/guix.texi:25958
  38596. #, no-wrap
  38597. msgid "@code{refresh} (default: @code{(* 2 24 3600)})"
  38598. msgstr ""
  38599. #. type: table
  38600. #: guix-git/doc/guix.texi:25962
  38601. 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)}."
  38602. msgstr ""
  38603. #. type: item
  38604. #: guix-git/doc/guix.texi:25963
  38605. #, no-wrap
  38606. msgid "@code{retry} (default: @code{(* 15 60)})"
  38607. msgstr ""
  38608. #. type: table
  38609. #: guix-git/doc/guix.texi:25966
  38610. msgid "The period after which a slave will retry to contact its master when it fails to do so a first time."
  38611. msgstr ""
  38612. #. type: item
  38613. #: guix-git/doc/guix.texi:25967
  38614. #, no-wrap
  38615. msgid "@code{expiry} (default: @code{(* 14 24 3600)})"
  38616. msgstr ""
  38617. #. type: table
  38618. #: guix-git/doc/guix.texi:25971
  38619. 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."
  38620. msgstr ""
  38621. #. type: item
  38622. #: guix-git/doc/guix.texi:25972
  38623. #, no-wrap
  38624. msgid "@code{nx} (default: @code{3600})"
  38625. msgstr ""
  38626. #. type: table
  38627. #: guix-git/doc/guix.texi:25975
  38628. msgid "Default TTL of inexistent records. This delay is usually short because you want your new domains to reach everyone quickly."
  38629. msgstr ""
  38630. #. type: deftp
  38631. #: guix-git/doc/guix.texi:25979
  38632. #, no-wrap
  38633. msgid "{Data Type} knot-remote-configuration"
  38634. msgstr ""
  38635. #. type: deftp
  38636. #: guix-git/doc/guix.texi:25982
  38637. msgid "Data type representing a remote configuration. This type has the following parameters:"
  38638. msgstr ""
  38639. #. type: table
  38640. #: guix-git/doc/guix.texi:25987
  38641. msgid "An identifier for other configuration fields to refer to this remote. IDs must be unique and must not be empty."
  38642. msgstr ""
  38643. #. type: table
  38644. #: guix-git/doc/guix.texi:25992
  38645. 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."
  38646. msgstr ""
  38647. #. type: item
  38648. #: guix-git/doc/guix.texi:25993
  38649. #, no-wrap
  38650. msgid "@code{via} (default: @code{'()})"
  38651. msgstr ""
  38652. #. type: table
  38653. #: guix-git/doc/guix.texi:25997
  38654. 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."
  38655. msgstr ""
  38656. #. type: table
  38657. #: guix-git/doc/guix.texi:26001
  38658. msgid "A reference to a key, that is a string containing the identifier of a key defined in a @code{knot-key-configuration} field."
  38659. msgstr ""
  38660. #. type: deftp
  38661. #: guix-git/doc/guix.texi:26005
  38662. #, no-wrap
  38663. msgid "{Data Type} knot-keystore-configuration"
  38664. msgstr ""
  38665. #. type: deftp
  38666. #: guix-git/doc/guix.texi:26008
  38667. msgid "Data type representing a keystore to hold dnssec keys. This type has the following parameters:"
  38668. msgstr ""
  38669. #. type: table
  38670. #: guix-git/doc/guix.texi:26012
  38671. msgid "The id of the keystore. It must not be empty."
  38672. msgstr ""
  38673. #. type: item
  38674. #: guix-git/doc/guix.texi:26013
  38675. #, no-wrap
  38676. msgid "@code{backend} (default: @code{'pem})"
  38677. msgstr ""
  38678. #. type: table
  38679. #: guix-git/doc/guix.texi:26015
  38680. msgid "The backend to store the keys in. Can be @code{'pem} or @code{'pkcs11}."
  38681. msgstr ""
  38682. #. type: item
  38683. #: guix-git/doc/guix.texi:26016
  38684. #, no-wrap
  38685. msgid "@code{config} (default: @code{\"/var/lib/knot/keys/keys\"})"
  38686. msgstr ""
  38687. #. type: table
  38688. #: guix-git/doc/guix.texi:26020
  38689. 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."
  38690. msgstr ""
  38691. #. type: deftp
  38692. #: guix-git/doc/guix.texi:26024
  38693. #, no-wrap
  38694. msgid "{Data Type} knot-policy-configuration"
  38695. msgstr ""
  38696. #. type: deftp
  38697. #: guix-git/doc/guix.texi:26028
  38698. 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."
  38699. msgstr ""
  38700. #. type: deftp
  38701. #: guix-git/doc/guix.texi:26035
  38702. 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."
  38703. msgstr ""
  38704. #. type: deftp
  38705. #: guix-git/doc/guix.texi:26041
  38706. 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."
  38707. msgstr ""
  38708. #. type: deftp
  38709. #: guix-git/doc/guix.texi:26043
  38710. msgid "This type has the following parameters:"
  38711. msgstr ""
  38712. #. type: table
  38713. #: guix-git/doc/guix.texi:26047
  38714. msgid "The id of the policy. It must not be empty."
  38715. msgstr ""
  38716. #. type: item
  38717. #: guix-git/doc/guix.texi:26048
  38718. #, no-wrap
  38719. msgid "@code{keystore} (default: @code{\"default\"})"
  38720. msgstr ""
  38721. #. type: table
  38722. #: guix-git/doc/guix.texi:26053
  38723. 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)."
  38724. msgstr ""
  38725. #. type: item
  38726. #: guix-git/doc/guix.texi:26054
  38727. #, no-wrap
  38728. msgid "@code{manual?} (default: @code{#f})"
  38729. msgstr ""
  38730. #. type: table
  38731. #: guix-git/doc/guix.texi:26056
  38732. msgid "Whether the key management is manual or automatic."
  38733. msgstr ""
  38734. #. type: item
  38735. #: guix-git/doc/guix.texi:26057
  38736. #, no-wrap
  38737. msgid "@code{single-type-signing?} (default: @code{#f})"
  38738. msgstr ""
  38739. #. type: table
  38740. #: guix-git/doc/guix.texi:26059
  38741. msgid "When @code{#t}, use the Single-Type Signing Scheme."
  38742. msgstr ""
  38743. #. type: item
  38744. #: guix-git/doc/guix.texi:26060
  38745. #, no-wrap
  38746. msgid "@code{algorithm} (default: @code{\"ecdsap256sha256\"})"
  38747. msgstr ""
  38748. #. type: table
  38749. #: guix-git/doc/guix.texi:26062
  38750. msgid "An algorithm of signing keys and issued signatures."
  38751. msgstr ""
  38752. #. type: item
  38753. #: guix-git/doc/guix.texi:26063
  38754. #, no-wrap
  38755. msgid "@code{ksk-size} (default: @code{256})"
  38756. msgstr ""
  38757. #. type: table
  38758. #: guix-git/doc/guix.texi:26066
  38759. msgid "The length of the KSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  38760. msgstr ""
  38761. #. type: item
  38762. #: guix-git/doc/guix.texi:26067
  38763. #, no-wrap
  38764. msgid "@code{zsk-size} (default: @code{256})"
  38765. msgstr ""
  38766. #. type: table
  38767. #: guix-git/doc/guix.texi:26070
  38768. msgid "The length of the ZSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  38769. msgstr ""
  38770. #. type: item
  38771. #: guix-git/doc/guix.texi:26071
  38772. #, no-wrap
  38773. msgid "@code{dnskey-ttl} (default: @code{'default})"
  38774. msgstr ""
  38775. #. type: table
  38776. #: guix-git/doc/guix.texi:26074
  38777. msgid "The TTL value for DNSKEY records added into zone apex. The special @code{'default} value means same as the zone SOA TTL."
  38778. msgstr ""
  38779. #. type: item
  38780. #: guix-git/doc/guix.texi:26075
  38781. #, no-wrap
  38782. msgid "@code{zsk-lifetime} (default: @code{(* 30 24 3600)})"
  38783. msgstr ""
  38784. #. type: table
  38785. #: guix-git/doc/guix.texi:26077
  38786. msgid "The period between ZSK publication and the next rollover initiation."
  38787. msgstr ""
  38788. #. type: item
  38789. #: guix-git/doc/guix.texi:26078
  38790. #, no-wrap
  38791. msgid "@code{propagation-delay} (default: @code{(* 24 3600)})"
  38792. msgstr ""
  38793. #. type: table
  38794. #: guix-git/doc/guix.texi:26081
  38795. 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."
  38796. msgstr ""
  38797. #. type: item
  38798. #: guix-git/doc/guix.texi:26082
  38799. #, no-wrap
  38800. msgid "@code{rrsig-lifetime} (default: @code{(* 14 24 3600)})"
  38801. msgstr ""
  38802. #. type: table
  38803. #: guix-git/doc/guix.texi:26084
  38804. msgid "A validity period of newly issued signatures."
  38805. msgstr ""
  38806. #. type: item
  38807. #: guix-git/doc/guix.texi:26085
  38808. #, no-wrap
  38809. msgid "@code{rrsig-refresh} (default: @code{(* 7 24 3600)})"
  38810. msgstr ""
  38811. #. type: table
  38812. #: guix-git/doc/guix.texi:26087
  38813. msgid "A period how long before a signature expiration the signature will be refreshed."
  38814. msgstr ""
  38815. #. type: item
  38816. #: guix-git/doc/guix.texi:26088
  38817. #, no-wrap
  38818. msgid "@code{nsec3?} (default: @code{#f})"
  38819. msgstr ""
  38820. #. type: table
  38821. #: guix-git/doc/guix.texi:26090
  38822. msgid "When @code{#t}, NSEC3 will be used instead of NSEC."
  38823. msgstr ""
  38824. #. type: item
  38825. #: guix-git/doc/guix.texi:26091
  38826. #, no-wrap
  38827. msgid "@code{nsec3-iterations} (default: @code{5})"
  38828. msgstr ""
  38829. #. type: table
  38830. #: guix-git/doc/guix.texi:26093
  38831. msgid "The number of additional times the hashing is performed."
  38832. msgstr ""
  38833. #. type: item
  38834. #: guix-git/doc/guix.texi:26094
  38835. #, no-wrap
  38836. msgid "@code{nsec3-salt-length} (default: @code{8})"
  38837. msgstr ""
  38838. #. type: table
  38839. #: guix-git/doc/guix.texi:26097
  38840. msgid "The length of a salt field in octets, which is appended to the original owner name before hashing."
  38841. msgstr ""
  38842. #. type: item
  38843. #: guix-git/doc/guix.texi:26098
  38844. #, no-wrap
  38845. msgid "@code{nsec3-salt-lifetime} (default: @code{(* 30 24 3600)})"
  38846. msgstr ""
  38847. #. type: table
  38848. #: guix-git/doc/guix.texi:26100
  38849. msgid "The validity period of newly issued salt field."
  38850. msgstr ""
  38851. #. type: deftp
  38852. #: guix-git/doc/guix.texi:26104
  38853. #, no-wrap
  38854. msgid "{Data Type} knot-zone-configuration"
  38855. msgstr ""
  38856. #. type: deftp
  38857. #: guix-git/doc/guix.texi:26107
  38858. msgid "Data type representing a zone served by Knot. This type has the following parameters:"
  38859. msgstr ""
  38860. #. type: item
  38861. #: guix-git/doc/guix.texi:26109
  38862. #, no-wrap
  38863. msgid "@code{domain} (default: @code{\"\"})"
  38864. msgstr ""
  38865. #. type: table
  38866. #: guix-git/doc/guix.texi:26111
  38867. msgid "The domain served by this configuration. It must not be empty."
  38868. msgstr ""
  38869. #. type: item
  38870. #: guix-git/doc/guix.texi:26112
  38871. #, no-wrap
  38872. msgid "@code{file} (default: @code{\"\"})"
  38873. msgstr ""
  38874. #. type: table
  38875. #: guix-git/doc/guix.texi:26115
  38876. 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."
  38877. msgstr ""
  38878. #. type: item
  38879. #: guix-git/doc/guix.texi:26116
  38880. #, no-wrap
  38881. msgid "@code{zone} (default: @code{(zone-file)})"
  38882. msgstr ""
  38883. #. type: table
  38884. #: guix-git/doc/guix.texi:26119
  38885. msgid "The content of the zone file. This parameter is ignored by slave zones. It must contain a zone-file record."
  38886. msgstr ""
  38887. #. type: item
  38888. #: guix-git/doc/guix.texi:26120
  38889. #, no-wrap
  38890. msgid "@code{master} (default: @code{'()})"
  38891. msgstr ""
  38892. #. type: table
  38893. #: guix-git/doc/guix.texi:26123
  38894. 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."
  38895. msgstr ""
  38896. #. type: item
  38897. #: guix-git/doc/guix.texi:26124
  38898. #, no-wrap
  38899. msgid "@code{ddns-master} (default: @code{#f})"
  38900. msgstr ""
  38901. #. type: table
  38902. #: guix-git/doc/guix.texi:26127
  38903. msgid "The main master. When empty, it defaults to the first master in the list of masters."
  38904. msgstr ""
  38905. #. type: item
  38906. #: guix-git/doc/guix.texi:26128
  38907. #, no-wrap
  38908. msgid "@code{notify} (default: @code{'()})"
  38909. msgstr ""
  38910. #. type: table
  38911. #: guix-git/doc/guix.texi:26130
  38912. msgid "A list of slave remote identifiers."
  38913. msgstr ""
  38914. #. type: item
  38915. #: guix-git/doc/guix.texi:26131
  38916. #, no-wrap
  38917. msgid "@code{acl} (default: @code{'()})"
  38918. msgstr ""
  38919. #. type: table
  38920. #: guix-git/doc/guix.texi:26133
  38921. msgid "A list of acl identifiers."
  38922. msgstr ""
  38923. #. type: item
  38924. #: guix-git/doc/guix.texi:26134
  38925. #, no-wrap
  38926. msgid "@code{semantic-checks?} (default: @code{#f})"
  38927. msgstr ""
  38928. #. type: table
  38929. #: guix-git/doc/guix.texi:26136
  38930. msgid "When set, this adds more semantic checks to the zone."
  38931. msgstr ""
  38932. #. type: item
  38933. #: guix-git/doc/guix.texi:26137
  38934. #, no-wrap
  38935. msgid "@code{disable-any?} (default: @code{#f})"
  38936. msgstr ""
  38937. #. type: table
  38938. #: guix-git/doc/guix.texi:26139
  38939. msgid "When set, this forbids queries of the ANY type."
  38940. msgstr ""
  38941. #. type: item
  38942. #: guix-git/doc/guix.texi:26140
  38943. #, no-wrap
  38944. msgid "@code{zonefile-sync} (default: @code{0})"
  38945. msgstr ""
  38946. #. type: table
  38947. #: guix-git/doc/guix.texi:26143
  38948. msgid "The delay between a modification in memory and on disk. 0 means immediate synchronization."
  38949. msgstr ""
  38950. #. type: item
  38951. #: guix-git/doc/guix.texi:26144
  38952. #, no-wrap
  38953. msgid "@code{zonefile-load} (default: @code{#f})"
  38954. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  38955. #. type: table
  38956. #: guix-git/doc/guix.texi:26147
  38957. msgid "The way the zone file contents are applied during zone load. Possible values are:"
  38958. msgstr ""
  38959. #. type: item
  38960. #: guix-git/doc/guix.texi:26149
  38961. #, no-wrap
  38962. msgid "@code{#f} for using the default value from Knot,"
  38963. msgstr ""
  38964. #. type: item
  38965. #: guix-git/doc/guix.texi:26150
  38966. #, no-wrap
  38967. msgid "@code{'none} for not using the zone file at all,"
  38968. msgstr ""
  38969. #. type: item
  38970. #: guix-git/doc/guix.texi:26151
  38971. #, no-wrap
  38972. msgid "@code{'difference} for computing the difference between already available"
  38973. msgstr ""
  38974. #. type: itemize
  38975. #: guix-git/doc/guix.texi:26153
  38976. msgid "contents and zone contents and applying it to the current zone contents,"
  38977. msgstr ""
  38978. #. type: item
  38979. #: guix-git/doc/guix.texi:26153
  38980. #, no-wrap
  38981. msgid "@code{'difference-no-serial} for the same as @code{'difference}, but"
  38982. msgstr ""
  38983. #. type: itemize
  38984. #: guix-git/doc/guix.texi:26156
  38985. msgid "ignoring the SOA serial in the zone file, while the server takes care of it automatically."
  38986. msgstr ""
  38987. #. type: item
  38988. #: guix-git/doc/guix.texi:26156
  38989. #, no-wrap
  38990. msgid "@code{'whole} for loading zone contents from the zone file."
  38991. msgstr ""
  38992. #. type: item
  38993. #: guix-git/doc/guix.texi:26159
  38994. #, no-wrap
  38995. msgid "@code{journal-content} (default: @code{#f})"
  38996. msgstr "@code{journal-content}(默认值:@code{#f})"
  38997. #. type: table
  38998. #: guix-git/doc/guix.texi:26164
  38999. 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."
  39000. msgstr ""
  39001. #. type: item
  39002. #: guix-git/doc/guix.texi:26165
  39003. #, no-wrap
  39004. msgid "@code{max-journal-usage} (default: @code{#f})"
  39005. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  39006. #. type: table
  39007. #: guix-git/doc/guix.texi:26168
  39008. msgid "The maximum size for the journal on disk. @code{#f} does not set this option, so the default value from Knot is used."
  39009. msgstr ""
  39010. #. type: item
  39011. #: guix-git/doc/guix.texi:26169
  39012. #, no-wrap
  39013. msgid "@code{max-journal-depth} (default: @code{#f})"
  39014. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  39015. #. type: table
  39016. #: guix-git/doc/guix.texi:26172
  39017. msgid "The maximum size of the history. @code{#f} does not set this option, so the default value from Knot is used."
  39018. msgstr ""
  39019. #. type: item
  39020. #: guix-git/doc/guix.texi:26173
  39021. #, no-wrap
  39022. msgid "@code{max-zone-size} (default: @code{#f})"
  39023. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  39024. #. type: table
  39025. #: guix-git/doc/guix.texi:26177
  39026. 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."
  39027. msgstr ""
  39028. #. type: item
  39029. #: guix-git/doc/guix.texi:26178
  39030. #, no-wrap
  39031. msgid "@code{dnssec-policy} (default: @code{#f})"
  39032. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  39033. #. type: table
  39034. #: guix-git/doc/guix.texi:26182
  39035. 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."
  39036. msgstr ""
  39037. #. type: item
  39038. #: guix-git/doc/guix.texi:26183
  39039. #, no-wrap
  39040. msgid "@code{serial-policy} (default: @code{'increment})"
  39041. msgstr ""
  39042. #. type: table
  39043. #: guix-git/doc/guix.texi:26185
  39044. msgid "A policy between @code{'increment} and @code{'unixtime}."
  39045. msgstr ""
  39046. #. type: deftp
  39047. #: guix-git/doc/guix.texi:26189
  39048. #, no-wrap
  39049. msgid "{Data Type} knot-configuration"
  39050. msgstr ""
  39051. #. type: deftp
  39052. #: guix-git/doc/guix.texi:26192
  39053. msgid "Data type representing the Knot configuration. This type has the following parameters:"
  39054. msgstr ""
  39055. #. type: item
  39056. #: guix-git/doc/guix.texi:26194
  39057. #, no-wrap
  39058. msgid "@code{knot} (default: @code{knot})"
  39059. msgstr ""
  39060. #. type: table
  39061. #: guix-git/doc/guix.texi:26196
  39062. msgid "The Knot package."
  39063. msgstr ""
  39064. #. type: item
  39065. #: guix-git/doc/guix.texi:26197
  39066. #, no-wrap
  39067. msgid "@code{run-directory} (default: @code{\"/var/run/knot\"})"
  39068. msgstr ""
  39069. #. type: table
  39070. #: guix-git/doc/guix.texi:26199
  39071. msgid "The run directory. This directory will be used for pid file and sockets."
  39072. msgstr ""
  39073. #. type: item
  39074. #: guix-git/doc/guix.texi:26200
  39075. #, no-wrap
  39076. msgid "@code{includes} (default: @code{'()})"
  39077. msgstr "@code{includes}(默认值:@code{'()})"
  39078. #. type: table
  39079. #: guix-git/doc/guix.texi:26203
  39080. msgid "A list of strings or file-like objects denoting other files that must be included at the top of the configuration file."
  39081. msgstr ""
  39082. #. type: cindex
  39083. #: guix-git/doc/guix.texi:26204
  39084. #, no-wrap
  39085. msgid "secrets, Knot service"
  39086. msgstr "秘密,Knot服务。"
  39087. #. type: table
  39088. #: guix-git/doc/guix.texi:26210
  39089. 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."
  39090. msgstr ""
  39091. #. type: table
  39092. #: guix-git/doc/guix.texi:26215
  39093. 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:"
  39094. msgstr ""
  39095. #. type: example
  39096. #: guix-git/doc/guix.texi:26219
  39097. #, no-wrap
  39098. msgid ""
  39099. "keymgr -t mysecret > /etc/knot/secrets.conf\n"
  39100. "chmod 600 /etc/knot/secrets.conf\n"
  39101. msgstr ""
  39102. #. type: table
  39103. #: guix-git/doc/guix.texi:26225
  39104. 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."
  39105. msgstr ""
  39106. #. type: table
  39107. #: guix-git/doc/guix.texi:26227
  39108. msgid "It can also be used to add configuration not supported by this interface."
  39109. msgstr ""
  39110. #. type: item
  39111. #: guix-git/doc/guix.texi:26228
  39112. #, no-wrap
  39113. msgid "@code{listen-v4} (default: @code{\"0.0.0.0\"})"
  39114. msgstr ""
  39115. #. type: table
  39116. #: guix-git/doc/guix.texi:26230 guix-git/doc/guix.texi:26233
  39117. msgid "An ip address on which to listen."
  39118. msgstr ""
  39119. #. type: item
  39120. #: guix-git/doc/guix.texi:26231
  39121. #, no-wrap
  39122. msgid "@code{listen-v6} (default: @code{\"::\"})"
  39123. msgstr ""
  39124. #. type: item
  39125. #: guix-git/doc/guix.texi:26234
  39126. #, no-wrap
  39127. msgid "@code{listen-port} (default: @code{53})"
  39128. msgstr ""
  39129. #. type: table
  39130. #: guix-git/doc/guix.texi:26236
  39131. msgid "A port on which to listen."
  39132. msgstr ""
  39133. #. type: item
  39134. #: guix-git/doc/guix.texi:26237
  39135. #, no-wrap
  39136. msgid "@code{keys} (default: @code{'()})"
  39137. msgstr ""
  39138. #. type: table
  39139. #: guix-git/doc/guix.texi:26239
  39140. msgid "The list of knot-key-configuration used by this configuration."
  39141. msgstr ""
  39142. #. type: item
  39143. #: guix-git/doc/guix.texi:26240
  39144. #, no-wrap
  39145. msgid "@code{acls} (default: @code{'()})"
  39146. msgstr ""
  39147. #. type: table
  39148. #: guix-git/doc/guix.texi:26242
  39149. msgid "The list of knot-acl-configuration used by this configuration."
  39150. msgstr ""
  39151. #. type: item
  39152. #: guix-git/doc/guix.texi:26243
  39153. #, no-wrap
  39154. msgid "@code{remotes} (default: @code{'()})"
  39155. msgstr ""
  39156. #. type: table
  39157. #: guix-git/doc/guix.texi:26245
  39158. msgid "The list of knot-remote-configuration used by this configuration."
  39159. msgstr ""
  39160. #. type: item
  39161. #: guix-git/doc/guix.texi:26246
  39162. #, no-wrap
  39163. msgid "@code{zones} (default: @code{'()})"
  39164. msgstr ""
  39165. #. type: table
  39166. #: guix-git/doc/guix.texi:26248
  39167. msgid "The list of knot-zone-configuration used by this configuration."
  39168. msgstr ""
  39169. #. type: subsubheading
  39170. #: guix-git/doc/guix.texi:26252
  39171. #, fuzzy, no-wrap
  39172. msgid "Knot Resolver Service"
  39173. msgstr "Kerberos服务"
  39174. #. type: deffn
  39175. #: guix-git/doc/guix.texi:26254
  39176. #, no-wrap
  39177. msgid "{Scheme Variable} knot-resolver-service-type"
  39178. msgstr ""
  39179. #. type: deffn
  39180. #: guix-git/doc/guix.texi:26257
  39181. msgid "This is the type of the knot resolver service, whose value should be an @code{knot-resolver-configuration} object as in this example:"
  39182. msgstr ""
  39183. #. type: lisp
  39184. #: guix-git/doc/guix.texi:26267
  39185. #, no-wrap
  39186. msgid ""
  39187. "(service knot-resolver-service-type\n"
  39188. " (knot-resolver-configuration\n"
  39189. " (kresd-config-file (plain-file \"kresd.conf\" \"\n"
  39190. "net.listen('192.168.0.1', 5353)\n"
  39191. "user('knot-resolver', 'knot-resolver')\n"
  39192. "modules = @{ 'hints > iterate', 'stats', 'predict' @}\n"
  39193. "cache.size = 100 * MB\n"
  39194. "\"))))\n"
  39195. msgstr ""
  39196. #. type: deffn
  39197. #: guix-git/doc/guix.texi:26270
  39198. msgid "For more information, refer its @url{https://knot-resolver.readthedocs.org/en/stable/daemon.html#configuration, manual}."
  39199. msgstr ""
  39200. #. type: deftp
  39201. #: guix-git/doc/guix.texi:26272
  39202. #, no-wrap
  39203. msgid "{Data Type} knot-resolver-configuration"
  39204. msgstr ""
  39205. #. type: deftp
  39206. #: guix-git/doc/guix.texi:26274
  39207. #, fuzzy
  39208. msgid "Data type representing the configuration of knot-resolver."
  39209. msgstr "管理操作系统配置。"
  39210. #. type: item
  39211. #: guix-git/doc/guix.texi:26276
  39212. #, fuzzy, no-wrap
  39213. msgid "@code{package} (default: @var{knot-resolver})"
  39214. msgstr "@code{gnome}(默认值:@code{gnome})"
  39215. #. type: table
  39216. #: guix-git/doc/guix.texi:26278
  39217. msgid "Package object of the knot DNS resolver."
  39218. msgstr ""
  39219. #. type: item
  39220. #: guix-git/doc/guix.texi:26279
  39221. #, fuzzy, no-wrap
  39222. msgid "@code{kresd-config-file} (default: %kresd.conf)"
  39223. msgstr "@code{compression-level}(默认值:@code{3})"
  39224. #. type: table
  39225. #: guix-git/doc/guix.texi:26282
  39226. 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}."
  39227. msgstr ""
  39228. #. type: item
  39229. #: guix-git/doc/guix.texi:26283
  39230. #, fuzzy, no-wrap
  39231. msgid "@code{garbage-collection-interval} (default: 1000)"
  39232. msgstr "@code{parallel-builds}(默认值:@code{1})"
  39233. #. type: table
  39234. #: guix-git/doc/guix.texi:26285
  39235. msgid "Number of milliseconds for @code{kres-cache-gc} to periodically trim the cache."
  39236. msgstr ""
  39237. #. type: subsubheading
  39238. #: guix-git/doc/guix.texi:26290
  39239. #, no-wrap
  39240. msgid "Dnsmasq Service"
  39241. msgstr ""
  39242. #. type: deffn
  39243. #: guix-git/doc/guix.texi:26292
  39244. #, no-wrap
  39245. msgid "{Scheme Variable} dnsmasq-service-type"
  39246. msgstr ""
  39247. #. type: deffn
  39248. #: guix-git/doc/guix.texi:26295
  39249. msgid "This is the type of the dnsmasq service, whose value should be an @code{dnsmasq-configuration} object as in this example:"
  39250. msgstr ""
  39251. #. type: lisp
  39252. #: guix-git/doc/guix.texi:26301
  39253. #, no-wrap
  39254. msgid ""
  39255. "(service dnsmasq-service-type\n"
  39256. " (dnsmasq-configuration\n"
  39257. " (no-resolv? #t)\n"
  39258. " (servers '(\"192.168.1.1\"))))\n"
  39259. msgstr ""
  39260. #. type: deftp
  39261. #: guix-git/doc/guix.texi:26304
  39262. #, no-wrap
  39263. msgid "{Data Type} dnsmasq-configuration"
  39264. msgstr ""
  39265. #. type: deftp
  39266. #: guix-git/doc/guix.texi:26306
  39267. msgid "Data type representing the configuration of dnsmasq."
  39268. msgstr ""
  39269. #. type: item
  39270. #: guix-git/doc/guix.texi:26308
  39271. #, no-wrap
  39272. msgid "@code{package} (default: @var{dnsmasq})"
  39273. msgstr ""
  39274. #. type: table
  39275. #: guix-git/doc/guix.texi:26310
  39276. msgid "Package object of the dnsmasq server."
  39277. msgstr ""
  39278. #. type: item
  39279. #: guix-git/doc/guix.texi:26311
  39280. #, no-wrap
  39281. msgid "@code{no-hosts?} (default: @code{#f})"
  39282. msgstr ""
  39283. #. type: table
  39284. #: guix-git/doc/guix.texi:26313
  39285. msgid "When true, don't read the hostnames in /etc/hosts."
  39286. msgstr ""
  39287. #. type: item
  39288. #: guix-git/doc/guix.texi:26314
  39289. #, no-wrap
  39290. msgid "@code{port} (default: @code{53})"
  39291. msgstr ""
  39292. #. type: table
  39293. #: guix-git/doc/guix.texi:26317
  39294. msgid "The port to listen on. Setting this to zero completely disables DNS responses, leaving only DHCP and/or TFTP functions."
  39295. msgstr ""
  39296. #. type: item
  39297. #: guix-git/doc/guix.texi:26318
  39298. #, no-wrap
  39299. msgid "@code{local-service?} (default: @code{#t})"
  39300. msgstr ""
  39301. #. type: table
  39302. #: guix-git/doc/guix.texi:26321
  39303. 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."
  39304. msgstr ""
  39305. #. type: item
  39306. #: guix-git/doc/guix.texi:26322
  39307. #, no-wrap
  39308. msgid "@code{listen-addresses} (default: @code{'()})"
  39309. msgstr ""
  39310. #. type: table
  39311. #: guix-git/doc/guix.texi:26324
  39312. msgid "Listen on the given IP addresses."
  39313. msgstr ""
  39314. #. type: item
  39315. #: guix-git/doc/guix.texi:26325
  39316. #, no-wrap
  39317. msgid "@code{resolv-file} (default: @code{\"/etc/resolv.conf\"})"
  39318. msgstr ""
  39319. #. type: table
  39320. #: guix-git/doc/guix.texi:26327
  39321. msgid "The file to read the IP address of the upstream nameservers from."
  39322. msgstr ""
  39323. #. type: item
  39324. #: guix-git/doc/guix.texi:26328
  39325. #, no-wrap
  39326. msgid "@code{no-resolv?} (default: @code{#f})"
  39327. msgstr ""
  39328. #. type: table
  39329. #: guix-git/doc/guix.texi:26330
  39330. msgid "When true, don't read @var{resolv-file}."
  39331. msgstr ""
  39332. #. type: item
  39333. #: guix-git/doc/guix.texi:26331
  39334. #, no-wrap
  39335. msgid "@code{servers} (default: @code{'()})"
  39336. msgstr ""
  39337. #. type: table
  39338. #: guix-git/doc/guix.texi:26333
  39339. msgid "Specify IP address of upstream servers directly."
  39340. msgstr ""
  39341. #. type: item
  39342. #: guix-git/doc/guix.texi:26334
  39343. #, fuzzy, no-wrap
  39344. msgid "@code{addresses} (default: @code{'()})"
  39345. msgstr "@code{features} (@code{'()})"
  39346. #. type: table
  39347. #: guix-git/doc/guix.texi:26338
  39348. 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."
  39349. msgstr ""
  39350. #. type: table
  39351. #: guix-git/doc/guix.texi:26340
  39352. msgid "This is useful for redirecting hosts locally, for example:"
  39353. msgstr ""
  39354. #. type: lisp
  39355. #: guix-git/doc/guix.texi:26349
  39356. #, no-wrap
  39357. msgid ""
  39358. "(service dnsmasq-service-type\n"
  39359. " (dnsmasq-configuration\n"
  39360. " (addresses\n"
  39361. " '(; Redirect to a local web-server.\n"
  39362. " \"/example.org/127.0.0.1\"\n"
  39363. " ; Redirect subdomain to a specific IP.\n"
  39364. " \"/subdomain.example.org/192.168.1.42\"))))\n"
  39365. msgstr ""
  39366. #. type: table
  39367. #: guix-git/doc/guix.texi:26352
  39368. msgid "Note that rules in @file{/etc/hosts} take precedence over this."
  39369. msgstr ""
  39370. #. type: item
  39371. #: guix-git/doc/guix.texi:26353
  39372. #, no-wrap
  39373. msgid "@code{cache-size} (default: @code{150})"
  39374. msgstr ""
  39375. #. type: table
  39376. #: guix-git/doc/guix.texi:26356
  39377. msgid "Set the size of dnsmasq's cache. Setting the cache size to zero disables caching."
  39378. msgstr ""
  39379. #. type: item
  39380. #: guix-git/doc/guix.texi:26357
  39381. #, no-wrap
  39382. msgid "@code{negative-cache?} (default: @code{#t})"
  39383. msgstr ""
  39384. #. type: table
  39385. #: guix-git/doc/guix.texi:26359
  39386. msgid "When false, disable negative caching."
  39387. msgstr ""
  39388. #. type: item
  39389. #: guix-git/doc/guix.texi:26360
  39390. #, fuzzy, no-wrap
  39391. msgid "@code{tftp-enable?} (default: @code{#f})"
  39392. msgstr "@code{challenge}(默认值:@code{#f})"
  39393. #. type: table
  39394. #: guix-git/doc/guix.texi:26362
  39395. msgid "Whether to enable the built-in TFTP server."
  39396. msgstr ""
  39397. #. type: item
  39398. #: guix-git/doc/guix.texi:26363
  39399. #, fuzzy, no-wrap
  39400. msgid "@code{tftp-no-fail?} (default: @code{#f})"
  39401. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  39402. #. type: table
  39403. #: guix-git/doc/guix.texi:26365
  39404. msgid "If true, does not fail dnsmasq if the TFTP server could not start up."
  39405. msgstr ""
  39406. #. type: item
  39407. #: guix-git/doc/guix.texi:26366
  39408. #, fuzzy, no-wrap
  39409. msgid "@code{tftp-single-port?} (default: @code{#f})"
  39410. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  39411. #. type: table
  39412. #: guix-git/doc/guix.texi:26368
  39413. msgid "Whether to use only one single port for TFTP."
  39414. msgstr ""
  39415. #. type: item
  39416. #: guix-git/doc/guix.texi:26369
  39417. #, fuzzy, no-wrap
  39418. msgid "@code{tftp-secure?} (default: @code{#f})"
  39419. msgstr "@code{xfce}(默认值:@code{xfce})"
  39420. #. type: table
  39421. #: guix-git/doc/guix.texi:26371
  39422. msgid "If true, only files owned by the user running the dnsmasq process are accessible."
  39423. msgstr ""
  39424. #. type: table
  39425. #: guix-git/doc/guix.texi:26375
  39426. 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."
  39427. msgstr ""
  39428. #. type: item
  39429. #: guix-git/doc/guix.texi:26376
  39430. #, fuzzy, no-wrap
  39431. msgid "@code{tftp-max} (default: @code{#f})"
  39432. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  39433. #. type: table
  39434. #: guix-git/doc/guix.texi:26378
  39435. msgid "If set, sets the maximal number of concurrent connections allowed."
  39436. msgstr ""
  39437. #. type: item
  39438. #: guix-git/doc/guix.texi:26379
  39439. #, fuzzy, no-wrap
  39440. msgid "@code{tftp-mtu} (default: @code{#f})"
  39441. msgstr "@code{port}(默认值:@code{22})"
  39442. #. type: table
  39443. #: guix-git/doc/guix.texi:26381
  39444. msgid "If set, sets the MTU for TFTP packets to that value."
  39445. msgstr ""
  39446. #. type: item
  39447. #: guix-git/doc/guix.texi:26382
  39448. #, fuzzy, no-wrap
  39449. msgid "@code{tftp-no-blocksize?} (default: @code{#f})"
  39450. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  39451. #. type: table
  39452. #: guix-git/doc/guix.texi:26384
  39453. msgid "If true, stops the TFTP server from negotiating the blocksize with a client."
  39454. msgstr ""
  39455. #. type: item
  39456. #: guix-git/doc/guix.texi:26385
  39457. #, fuzzy, no-wrap
  39458. msgid "@code{tftp-lowercase?} (default: @code{#f})"
  39459. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  39460. #. type: table
  39461. #: guix-git/doc/guix.texi:26387
  39462. msgid "Whether to convert all filenames in TFTP requests to lowercase."
  39463. msgstr ""
  39464. #. type: item
  39465. #: guix-git/doc/guix.texi:26388
  39466. #, fuzzy, no-wrap
  39467. msgid "@code{tftp-port-range} (default: @code{#f})"
  39468. msgstr "@code{challenge}(默认值:@code{#f})"
  39469. #. type: table
  39470. #: guix-git/doc/guix.texi:26391
  39471. msgid "If set, fixes the dynamical ports (one per client) to the given range (@code{\"<start>,<end>\"})."
  39472. msgstr ""
  39473. #. type: item
  39474. #: guix-git/doc/guix.texi:26392
  39475. #, fuzzy, no-wrap
  39476. msgid "@code{tftp-root} (default: @code{/var/empty,lo})"
  39477. msgstr "@code{port}(默认值:@code{22})"
  39478. #. type: table
  39479. #: guix-git/doc/guix.texi:26399
  39480. 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."
  39481. msgstr ""
  39482. #. type: item
  39483. #: guix-git/doc/guix.texi:26400
  39484. #, fuzzy, no-wrap
  39485. msgid "@code{tftp-unique-root} (default: @code{#f})"
  39486. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  39487. #. type: table
  39488. #: guix-git/doc/guix.texi:26405
  39489. 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)."
  39490. msgstr ""
  39491. #. type: table
  39492. #: guix-git/doc/guix.texi:26414
  39493. 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."
  39494. msgstr ""
  39495. #. type: subsubheading
  39496. #: guix-git/doc/guix.texi:26418
  39497. #, no-wrap
  39498. msgid "ddclient Service"
  39499. msgstr ""
  39500. #. type: cindex
  39501. #: guix-git/doc/guix.texi:26420
  39502. #, no-wrap
  39503. msgid "ddclient"
  39504. msgstr ""
  39505. #. type: Plain text
  39506. #: guix-git/doc/guix.texi:26424
  39507. 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}."
  39508. msgstr ""
  39509. #. type: Plain text
  39510. #: guix-git/doc/guix.texi:26427
  39511. msgid "The following example show instantiates the service with its default configuration:"
  39512. msgstr ""
  39513. #. type: lisp
  39514. #: guix-git/doc/guix.texi:26430
  39515. #, no-wrap
  39516. msgid "(service ddclient-service-type)\n"
  39517. msgstr ""
  39518. #. type: Plain text
  39519. #: guix-git/doc/guix.texi:26439
  39520. 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."
  39521. msgstr ""
  39522. #. type: Plain text
  39523. #: guix-git/doc/guix.texi:26443
  39524. msgid "Available @code{ddclient-configuration} fields are:"
  39525. msgstr ""
  39526. #. type: deftypevr
  39527. #: guix-git/doc/guix.texi:26444
  39528. #, no-wrap
  39529. msgid "{@code{ddclient-configuration} parameter} package ddclient"
  39530. msgstr ""
  39531. #. type: deftypevr
  39532. #: guix-git/doc/guix.texi:26446
  39533. msgid "The ddclient package."
  39534. msgstr ""
  39535. #. type: deftypevr
  39536. #: guix-git/doc/guix.texi:26449
  39537. #, no-wrap
  39538. msgid "{@code{ddclient-configuration} parameter} integer daemon"
  39539. msgstr ""
  39540. #. type: deftypevr
  39541. #: guix-git/doc/guix.texi:26451
  39542. msgid "The period after which ddclient will retry to check IP and domain name."
  39543. msgstr ""
  39544. #. type: deftypevr
  39545. #: guix-git/doc/guix.texi:26456
  39546. #, no-wrap
  39547. msgid "{@code{ddclient-configuration} parameter} boolean syslog"
  39548. msgstr ""
  39549. #. type: deftypevr
  39550. #: guix-git/doc/guix.texi:26458
  39551. msgid "Use syslog for the output."
  39552. msgstr ""
  39553. #. type: deftypevr
  39554. #: guix-git/doc/guix.texi:26463
  39555. #, no-wrap
  39556. msgid "{@code{ddclient-configuration} parameter} string mail"
  39557. msgstr ""
  39558. #. type: deftypevr
  39559. #: guix-git/doc/guix.texi:26465
  39560. msgid "Mail to user."
  39561. msgstr ""
  39562. #. type: deftypevr
  39563. #: guix-git/doc/guix.texi:26467 guix-git/doc/guix.texi:26474
  39564. #: guix-git/doc/guix.texi:28211
  39565. msgid "Defaults to @samp{\"root\"}."
  39566. msgstr ""
  39567. #. type: deftypevr
  39568. #: guix-git/doc/guix.texi:26470
  39569. #, no-wrap
  39570. msgid "{@code{ddclient-configuration} parameter} string mail-failure"
  39571. msgstr ""
  39572. #. type: deftypevr
  39573. #: guix-git/doc/guix.texi:26472
  39574. msgid "Mail failed update to user."
  39575. msgstr ""
  39576. #. type: deftypevr
  39577. #: guix-git/doc/guix.texi:26477
  39578. #, no-wrap
  39579. msgid "{@code{ddclient-configuration} parameter} string pid"
  39580. msgstr ""
  39581. #. type: deftypevr
  39582. #: guix-git/doc/guix.texi:26479
  39583. msgid "The ddclient PID file."
  39584. msgstr ""
  39585. #. type: deftypevr
  39586. #: guix-git/doc/guix.texi:26481
  39587. msgid "Defaults to @samp{\"/var/run/ddclient/ddclient.pid\"}."
  39588. msgstr ""
  39589. #. type: deftypevr
  39590. #: guix-git/doc/guix.texi:26484
  39591. #, no-wrap
  39592. msgid "{@code{ddclient-configuration} parameter} boolean ssl"
  39593. msgstr ""
  39594. #. type: deftypevr
  39595. #: guix-git/doc/guix.texi:26486
  39596. msgid "Enable SSL support."
  39597. msgstr ""
  39598. #. type: deftypevr
  39599. #: guix-git/doc/guix.texi:26491
  39600. #, no-wrap
  39601. msgid "{@code{ddclient-configuration} parameter} string user"
  39602. msgstr ""
  39603. #. type: deftypevr
  39604. #: guix-git/doc/guix.texi:26494
  39605. msgid "Specifies the user name or ID that is used when running ddclient program."
  39606. msgstr ""
  39607. #. type: deftypevr
  39608. #: guix-git/doc/guix.texi:26496 guix-git/doc/guix.texi:26503
  39609. msgid "Defaults to @samp{\"ddclient\"}."
  39610. msgstr ""
  39611. #. type: deftypevr
  39612. #: guix-git/doc/guix.texi:26499
  39613. #, no-wrap
  39614. msgid "{@code{ddclient-configuration} parameter} string group"
  39615. msgstr ""
  39616. #. type: deftypevr
  39617. #: guix-git/doc/guix.texi:26501
  39618. msgid "Group of the user who will run the ddclient program."
  39619. msgstr ""
  39620. #. type: deftypevr
  39621. #: guix-git/doc/guix.texi:26506
  39622. #, no-wrap
  39623. msgid "{@code{ddclient-configuration} parameter} string secret-file"
  39624. msgstr ""
  39625. #. type: deftypevr
  39626. #: guix-git/doc/guix.texi:26510
  39627. 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."
  39628. msgstr ""
  39629. #. type: deftypevr
  39630. #: guix-git/doc/guix.texi:26512
  39631. msgid "Defaults to @samp{\"/etc/ddclient/secrets.conf\"}."
  39632. msgstr ""
  39633. #. type: deftypevr
  39634. #: guix-git/doc/guix.texi:26515
  39635. #, no-wrap
  39636. msgid "{@code{ddclient-configuration} parameter} list extra-options"
  39637. msgstr ""
  39638. #. type: deftypevr
  39639. #: guix-git/doc/guix.texi:26517
  39640. msgid "Extra options will be appended to @file{ddclient.conf} file."
  39641. msgstr ""
  39642. #. type: cindex
  39643. #: guix-git/doc/guix.texi:26528
  39644. #, no-wrap
  39645. msgid "VPN (virtual private network)"
  39646. msgstr ""
  39647. #. type: cindex
  39648. #: guix-git/doc/guix.texi:26529
  39649. #, no-wrap
  39650. msgid "virtual private network (VPN)"
  39651. msgstr ""
  39652. #. type: Plain text
  39653. #: guix-git/doc/guix.texi:26533
  39654. msgid "The @code{(gnu services vpn)} module provides services related to @dfn{virtual private networks} (VPNs)."
  39655. msgstr ""
  39656. #. type: subsubheading
  39657. #: guix-git/doc/guix.texi:26534
  39658. #, no-wrap
  39659. msgid "OpenVPN"
  39660. msgstr ""
  39661. #. type: Plain text
  39662. #: guix-git/doc/guix.texi:26538
  39663. 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@."
  39664. msgstr ""
  39665. #. type: deffn
  39666. #: guix-git/doc/guix.texi:26539
  39667. #, no-wrap
  39668. msgid "{Scheme Procedure} openvpn-client-service @"
  39669. msgstr ""
  39670. #. type: deffn
  39671. #: guix-git/doc/guix.texi:26541
  39672. msgid "[#:config (openvpn-client-configuration)]"
  39673. msgstr ""
  39674. #. type: deffn
  39675. #: guix-git/doc/guix.texi:26543
  39676. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a client."
  39677. msgstr ""
  39678. #. type: deffn
  39679. #: guix-git/doc/guix.texi:26545
  39680. #, no-wrap
  39681. msgid "{Scheme Procedure} openvpn-server-service @"
  39682. msgstr ""
  39683. #. type: deffn
  39684. #: guix-git/doc/guix.texi:26547
  39685. msgid "[#:config (openvpn-server-configuration)]"
  39686. msgstr ""
  39687. #. type: deffn
  39688. #: guix-git/doc/guix.texi:26549
  39689. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a server."
  39690. msgstr ""
  39691. #. type: deffn
  39692. #: guix-git/doc/guix.texi:26551
  39693. msgid "Both can be run simultaneously."
  39694. msgstr ""
  39695. #. type: Plain text
  39696. #: guix-git/doc/guix.texi:26556
  39697. msgid "Available @code{openvpn-client-configuration} fields are:"
  39698. msgstr ""
  39699. #. type: deftypevr
  39700. #: guix-git/doc/guix.texi:26557
  39701. #, no-wrap
  39702. msgid "{@code{openvpn-client-configuration} parameter} package openvpn"
  39703. msgstr ""
  39704. #. type: deftypevr
  39705. #: guix-git/doc/guix.texi:26559 guix-git/doc/guix.texi:26714
  39706. msgid "The OpenVPN package."
  39707. msgstr ""
  39708. #. type: deftypevr
  39709. #: guix-git/doc/guix.texi:26562
  39710. #, no-wrap
  39711. msgid "{@code{openvpn-client-configuration} parameter} string pid-file"
  39712. msgstr ""
  39713. #. type: deftypevr
  39714. #: guix-git/doc/guix.texi:26564 guix-git/doc/guix.texi:26719
  39715. msgid "The OpenVPN pid file."
  39716. msgstr ""
  39717. #. type: deftypevr
  39718. #: guix-git/doc/guix.texi:26566 guix-git/doc/guix.texi:26721
  39719. msgid "Defaults to @samp{\"/var/run/openvpn/openvpn.pid\"}."
  39720. msgstr ""
  39721. #. type: deftypevr
  39722. #: guix-git/doc/guix.texi:26569
  39723. #, no-wrap
  39724. msgid "{@code{openvpn-client-configuration} parameter} proto proto"
  39725. msgstr ""
  39726. #. type: deftypevr
  39727. #: guix-git/doc/guix.texi:26572 guix-git/doc/guix.texi:26727
  39728. msgid "The protocol (UDP or TCP) used to open a channel between clients and servers."
  39729. msgstr ""
  39730. #. type: deftypevr
  39731. #: guix-git/doc/guix.texi:26574 guix-git/doc/guix.texi:26729
  39732. msgid "Defaults to @samp{udp}."
  39733. msgstr ""
  39734. #. type: deftypevr
  39735. #: guix-git/doc/guix.texi:26577
  39736. #, no-wrap
  39737. msgid "{@code{openvpn-client-configuration} parameter} dev dev"
  39738. msgstr ""
  39739. #. type: deftypevr
  39740. #: guix-git/doc/guix.texi:26579 guix-git/doc/guix.texi:26734
  39741. msgid "The device type used to represent the VPN connection."
  39742. msgstr ""
  39743. #. type: deftypevr
  39744. #: guix-git/doc/guix.texi:26581 guix-git/doc/guix.texi:26736
  39745. msgid "Defaults to @samp{tun}."
  39746. msgstr ""
  39747. #. type: Plain text
  39748. #: guix-git/doc/guix.texi:26587 guix-git/doc/guix.texi:26742
  39749. 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}."
  39750. msgstr ""
  39751. #. type: deftypevr
  39752. #: guix-git/doc/guix.texi:26588
  39753. #, no-wrap
  39754. msgid "{@code{openvpn-client-configuration} parameter} maybe-string ca"
  39755. msgstr ""
  39756. #. type: deftypevr
  39757. #: guix-git/doc/guix.texi:26590 guix-git/doc/guix.texi:26745
  39758. msgid "The certificate authority to check connections against."
  39759. msgstr ""
  39760. #. type: deftypevr
  39761. #: guix-git/doc/guix.texi:26592 guix-git/doc/guix.texi:26747
  39762. msgid "Defaults to @samp{\"/etc/openvpn/ca.crt\"}."
  39763. msgstr ""
  39764. #. type: deftypevr
  39765. #: guix-git/doc/guix.texi:26595
  39766. #, no-wrap
  39767. msgid "{@code{openvpn-client-configuration} parameter} maybe-string cert"
  39768. msgstr ""
  39769. #. type: deftypevr
  39770. #: guix-git/doc/guix.texi:26598 guix-git/doc/guix.texi:26753
  39771. msgid "The certificate of the machine the daemon is running on. It should be signed by the authority given in @code{ca}."
  39772. msgstr ""
  39773. #. type: deftypevr
  39774. #: guix-git/doc/guix.texi:26600 guix-git/doc/guix.texi:26755
  39775. msgid "Defaults to @samp{\"/etc/openvpn/client.crt\"}."
  39776. msgstr ""
  39777. #. type: deftypevr
  39778. #: guix-git/doc/guix.texi:26603
  39779. #, no-wrap
  39780. msgid "{@code{openvpn-client-configuration} parameter} maybe-string key"
  39781. msgstr ""
  39782. #. type: deftypevr
  39783. #: guix-git/doc/guix.texi:26606 guix-git/doc/guix.texi:26761
  39784. msgid "The key of the machine the daemon is running on. It must be the key whose certificate is @code{cert}."
  39785. msgstr ""
  39786. #. type: deftypevr
  39787. #: guix-git/doc/guix.texi:26608 guix-git/doc/guix.texi:26763
  39788. msgid "Defaults to @samp{\"/etc/openvpn/client.key\"}."
  39789. msgstr ""
  39790. #. type: deftypevr
  39791. #: guix-git/doc/guix.texi:26611
  39792. #, no-wrap
  39793. msgid "{@code{openvpn-client-configuration} parameter} boolean comp-lzo?"
  39794. msgstr ""
  39795. #. type: deftypevr
  39796. #: guix-git/doc/guix.texi:26613 guix-git/doc/guix.texi:26768
  39797. msgid "Whether to use the lzo compression algorithm."
  39798. msgstr ""
  39799. #. type: deftypevr
  39800. #: guix-git/doc/guix.texi:26618
  39801. #, no-wrap
  39802. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-key?"
  39803. msgstr ""
  39804. #. type: deftypevr
  39805. #: guix-git/doc/guix.texi:26620 guix-git/doc/guix.texi:26775
  39806. msgid "Don't re-read key files across SIGUSR1 or --ping-restart."
  39807. msgstr ""
  39808. #. type: deftypevr
  39809. #: guix-git/doc/guix.texi:26625
  39810. #, no-wrap
  39811. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-tun?"
  39812. msgstr ""
  39813. #. type: deftypevr
  39814. #: guix-git/doc/guix.texi:26628 guix-git/doc/guix.texi:26783
  39815. msgid "Don't close and reopen TUN/TAP device or run up/down scripts across SIGUSR1 or --ping-restart restarts."
  39816. msgstr ""
  39817. #. type: deftypevr
  39818. #: guix-git/doc/guix.texi:26633
  39819. #, no-wrap
  39820. msgid "{@code{openvpn-client-configuration} parameter} boolean fast-io?"
  39821. msgstr ""
  39822. #. type: deftypevr
  39823. #: guix-git/doc/guix.texi:26636 guix-git/doc/guix.texi:26791
  39824. msgid "(Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation."
  39825. msgstr ""
  39826. #. type: deftypevr
  39827. #: guix-git/doc/guix.texi:26640
  39828. #, no-wrap
  39829. msgid "{@code{openvpn-client-configuration} parameter} number verbosity"
  39830. msgstr ""
  39831. #. type: deftypevr
  39832. #: guix-git/doc/guix.texi:26642 guix-git/doc/guix.texi:26797
  39833. msgid "Verbosity level."
  39834. msgstr ""
  39835. #. type: deftypevr
  39836. #: guix-git/doc/guix.texi:26644 guix-git/doc/guix.texi:26799
  39837. #: guix-git/doc/guix.texi:28479 guix-git/doc/guix.texi:28703
  39838. msgid "Defaults to @samp{3}."
  39839. msgstr ""
  39840. #. type: deftypevr
  39841. #: guix-git/doc/guix.texi:26647
  39842. #, no-wrap
  39843. msgid "{@code{openvpn-client-configuration} parameter} tls-auth-client tls-auth"
  39844. msgstr ""
  39845. #. type: deftypevr
  39846. #: guix-git/doc/guix.texi:26650 guix-git/doc/guix.texi:26805
  39847. msgid "Add an additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks."
  39848. msgstr ""
  39849. #. type: deftypevr
  39850. #: guix-git/doc/guix.texi:26655
  39851. #, no-wrap
  39852. msgid "{@code{openvpn-client-configuration} parameter} maybe-string auth-user-pass"
  39853. msgstr ""
  39854. #. type: deftypevr
  39855. #: guix-git/doc/guix.texi:26659
  39856. 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."
  39857. msgstr ""
  39858. #. type: deftypevr
  39859. #: guix-git/doc/guix.texi:26661
  39860. msgid "Defaults to @samp{'disabled}."
  39861. msgstr ""
  39862. #. type: deftypevr
  39863. #: guix-git/doc/guix.texi:26663
  39864. #, no-wrap
  39865. msgid "{@code{openvpn-client-configuration} parameter} key-usage verify-key-usage?"
  39866. msgstr ""
  39867. #. type: deftypevr
  39868. #: guix-git/doc/guix.texi:26665
  39869. msgid "Whether to check the server certificate has server usage extension."
  39870. msgstr ""
  39871. #. type: deftypevr
  39872. #: guix-git/doc/guix.texi:26670
  39873. #, no-wrap
  39874. msgid "{@code{openvpn-client-configuration} parameter} bind bind?"
  39875. msgstr ""
  39876. #. type: deftypevr
  39877. #: guix-git/doc/guix.texi:26672
  39878. msgid "Bind to a specific local port number."
  39879. msgstr ""
  39880. #. type: deftypevr
  39881. #: guix-git/doc/guix.texi:26677
  39882. #, no-wrap
  39883. msgid "{@code{openvpn-client-configuration} parameter} resolv-retry resolv-retry?"
  39884. msgstr ""
  39885. #. type: deftypevr
  39886. #: guix-git/doc/guix.texi:26679
  39887. msgid "Retry resolving server address."
  39888. msgstr ""
  39889. #. type: deftypevr
  39890. #: guix-git/doc/guix.texi:26684
  39891. #, no-wrap
  39892. msgid "{@code{openvpn-client-configuration} parameter} openvpn-remote-list remote"
  39893. msgstr ""
  39894. #. type: deftypevr
  39895. #: guix-git/doc/guix.texi:26686
  39896. msgid "A list of remote servers to connect to."
  39897. msgstr ""
  39898. #. type: deftypevr
  39899. #: guix-git/doc/guix.texi:26690
  39900. msgid "Available @code{openvpn-remote-configuration} fields are:"
  39901. msgstr ""
  39902. #. type: deftypevr
  39903. #: guix-git/doc/guix.texi:26691
  39904. #, no-wrap
  39905. msgid "{@code{openvpn-remote-configuration} parameter} string name"
  39906. msgstr ""
  39907. #. type: deftypevr
  39908. #: guix-git/doc/guix.texi:26693
  39909. msgid "Server name."
  39910. msgstr ""
  39911. #. type: deftypevr
  39912. #: guix-git/doc/guix.texi:26695
  39913. msgid "Defaults to @samp{\"my-server\"}."
  39914. msgstr ""
  39915. #. type: deftypevr
  39916. #: guix-git/doc/guix.texi:26698
  39917. #, no-wrap
  39918. msgid "{@code{openvpn-remote-configuration} parameter} number port"
  39919. msgstr ""
  39920. #. type: deftypevr
  39921. #: guix-git/doc/guix.texi:26700
  39922. msgid "Port number the server listens to."
  39923. msgstr ""
  39924. #. type: deftypevr
  39925. #: guix-git/doc/guix.texi:26702 guix-git/doc/guix.texi:26814
  39926. msgid "Defaults to @samp{1194}."
  39927. msgstr ""
  39928. #. type: Plain text
  39929. #: guix-git/doc/guix.texi:26711
  39930. msgid "Available @code{openvpn-server-configuration} fields are:"
  39931. msgstr ""
  39932. #. type: deftypevr
  39933. #: guix-git/doc/guix.texi:26712
  39934. #, no-wrap
  39935. msgid "{@code{openvpn-server-configuration} parameter} package openvpn"
  39936. msgstr ""
  39937. #. type: deftypevr
  39938. #: guix-git/doc/guix.texi:26717
  39939. #, no-wrap
  39940. msgid "{@code{openvpn-server-configuration} parameter} string pid-file"
  39941. msgstr ""
  39942. #. type: deftypevr
  39943. #: guix-git/doc/guix.texi:26724
  39944. #, no-wrap
  39945. msgid "{@code{openvpn-server-configuration} parameter} proto proto"
  39946. msgstr ""
  39947. #. type: deftypevr
  39948. #: guix-git/doc/guix.texi:26732
  39949. #, no-wrap
  39950. msgid "{@code{openvpn-server-configuration} parameter} dev dev"
  39951. msgstr ""
  39952. #. type: deftypevr
  39953. #: guix-git/doc/guix.texi:26743
  39954. #, no-wrap
  39955. msgid "{@code{openvpn-server-configuration} parameter} maybe-string ca"
  39956. msgstr ""
  39957. #. type: deftypevr
  39958. #: guix-git/doc/guix.texi:26750
  39959. #, no-wrap
  39960. msgid "{@code{openvpn-server-configuration} parameter} maybe-string cert"
  39961. msgstr ""
  39962. #. type: deftypevr
  39963. #: guix-git/doc/guix.texi:26758
  39964. #, no-wrap
  39965. msgid "{@code{openvpn-server-configuration} parameter} maybe-string key"
  39966. msgstr ""
  39967. #. type: deftypevr
  39968. #: guix-git/doc/guix.texi:26766
  39969. #, no-wrap
  39970. msgid "{@code{openvpn-server-configuration} parameter} boolean comp-lzo?"
  39971. msgstr ""
  39972. #. type: deftypevr
  39973. #: guix-git/doc/guix.texi:26773
  39974. #, no-wrap
  39975. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-key?"
  39976. msgstr ""
  39977. #. type: deftypevr
  39978. #: guix-git/doc/guix.texi:26780
  39979. #, no-wrap
  39980. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-tun?"
  39981. msgstr ""
  39982. #. type: deftypevr
  39983. #: guix-git/doc/guix.texi:26788
  39984. #, no-wrap
  39985. msgid "{@code{openvpn-server-configuration} parameter} boolean fast-io?"
  39986. msgstr ""
  39987. #. type: deftypevr
  39988. #: guix-git/doc/guix.texi:26795
  39989. #, no-wrap
  39990. msgid "{@code{openvpn-server-configuration} parameter} number verbosity"
  39991. msgstr ""
  39992. #. type: deftypevr
  39993. #: guix-git/doc/guix.texi:26802
  39994. #, no-wrap
  39995. msgid "{@code{openvpn-server-configuration} parameter} tls-auth-server tls-auth"
  39996. msgstr ""
  39997. #. type: deftypevr
  39998. #: guix-git/doc/guix.texi:26810
  39999. #, no-wrap
  40000. msgid "{@code{openvpn-server-configuration} parameter} number port"
  40001. msgstr ""
  40002. #. type: deftypevr
  40003. #: guix-git/doc/guix.texi:26812
  40004. msgid "Specifies the port number on which the server listens."
  40005. msgstr ""
  40006. #. type: deftypevr
  40007. #: guix-git/doc/guix.texi:26817
  40008. #, no-wrap
  40009. msgid "{@code{openvpn-server-configuration} parameter} ip-mask server"
  40010. msgstr ""
  40011. #. type: deftypevr
  40012. #: guix-git/doc/guix.texi:26819
  40013. msgid "An ip and mask specifying the subnet inside the virtual network."
  40014. msgstr ""
  40015. #. type: deftypevr
  40016. #: guix-git/doc/guix.texi:26821
  40017. msgid "Defaults to @samp{\"10.8.0.0 255.255.255.0\"}."
  40018. msgstr ""
  40019. #. type: deftypevr
  40020. #: guix-git/doc/guix.texi:26824
  40021. #, no-wrap
  40022. msgid "{@code{openvpn-server-configuration} parameter} cidr6 server-ipv6"
  40023. msgstr ""
  40024. #. type: deftypevr
  40025. #: guix-git/doc/guix.texi:26826
  40026. msgid "A CIDR notation specifying the IPv6 subnet inside the virtual network."
  40027. msgstr ""
  40028. #. type: deftypevr
  40029. #: guix-git/doc/guix.texi:26831
  40030. #, no-wrap
  40031. msgid "{@code{openvpn-server-configuration} parameter} string dh"
  40032. msgstr ""
  40033. #. type: deftypevr
  40034. #: guix-git/doc/guix.texi:26833
  40035. msgid "The Diffie-Hellman parameters file."
  40036. msgstr ""
  40037. #. type: deftypevr
  40038. #: guix-git/doc/guix.texi:26835
  40039. msgid "Defaults to @samp{\"/etc/openvpn/dh2048.pem\"}."
  40040. msgstr ""
  40041. #. type: deftypevr
  40042. #: guix-git/doc/guix.texi:26838
  40043. #, no-wrap
  40044. msgid "{@code{openvpn-server-configuration} parameter} string ifconfig-pool-persist"
  40045. msgstr ""
  40046. #. type: deftypevr
  40047. #: guix-git/doc/guix.texi:26840
  40048. msgid "The file that records client IPs."
  40049. msgstr ""
  40050. #. type: deftypevr
  40051. #: guix-git/doc/guix.texi:26842
  40052. msgid "Defaults to @samp{\"/etc/openvpn/ipp.txt\"}."
  40053. msgstr ""
  40054. #. type: deftypevr
  40055. #: guix-git/doc/guix.texi:26845
  40056. #, no-wrap
  40057. msgid "{@code{openvpn-server-configuration} parameter} gateway redirect-gateway?"
  40058. msgstr ""
  40059. #. type: deftypevr
  40060. #: guix-git/doc/guix.texi:26847
  40061. msgid "When true, the server will act as a gateway for its clients."
  40062. msgstr ""
  40063. #. type: deftypevr
  40064. #: guix-git/doc/guix.texi:26852
  40065. #, no-wrap
  40066. msgid "{@code{openvpn-server-configuration} parameter} boolean client-to-client?"
  40067. msgstr ""
  40068. #. type: deftypevr
  40069. #: guix-git/doc/guix.texi:26854
  40070. msgid "When true, clients are allowed to talk to each other inside the VPN."
  40071. msgstr ""
  40072. #. type: deftypevr
  40073. #: guix-git/doc/guix.texi:26859
  40074. #, no-wrap
  40075. msgid "{@code{openvpn-server-configuration} parameter} keepalive keepalive"
  40076. msgstr ""
  40077. #. type: deftypevr
  40078. #: guix-git/doc/guix.texi:26865
  40079. 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."
  40080. msgstr ""
  40081. #. type: deftypevr
  40082. #: guix-git/doc/guix.texi:26868
  40083. #, no-wrap
  40084. msgid "{@code{openvpn-server-configuration} parameter} number max-clients"
  40085. msgstr ""
  40086. #. type: deftypevr
  40087. #: guix-git/doc/guix.texi:26870
  40088. msgid "The maximum number of clients."
  40089. msgstr ""
  40090. #. type: deftypevr
  40091. #: guix-git/doc/guix.texi:26875
  40092. #, no-wrap
  40093. msgid "{@code{openvpn-server-configuration} parameter} string status"
  40094. msgstr ""
  40095. #. type: deftypevr
  40096. #: guix-git/doc/guix.texi:26878
  40097. msgid "The status file. This file shows a small report on current connection. It is truncated and rewritten every minute."
  40098. msgstr ""
  40099. #. type: deftypevr
  40100. #: guix-git/doc/guix.texi:26880
  40101. msgid "Defaults to @samp{\"/var/run/openvpn/status\"}."
  40102. msgstr ""
  40103. #. type: deftypevr
  40104. #: guix-git/doc/guix.texi:26883
  40105. #, no-wrap
  40106. msgid "{@code{openvpn-server-configuration} parameter} openvpn-ccd-list client-config-dir"
  40107. msgstr ""
  40108. #. type: deftypevr
  40109. #: guix-git/doc/guix.texi:26885
  40110. msgid "The list of configuration for some clients."
  40111. msgstr ""
  40112. #. type: deftypevr
  40113. #: guix-git/doc/guix.texi:26889
  40114. msgid "Available @code{openvpn-ccd-configuration} fields are:"
  40115. msgstr ""
  40116. #. type: deftypevr
  40117. #: guix-git/doc/guix.texi:26890
  40118. #, no-wrap
  40119. msgid "{@code{openvpn-ccd-configuration} parameter} string name"
  40120. msgstr ""
  40121. #. type: deftypevr
  40122. #: guix-git/doc/guix.texi:26892
  40123. msgid "Client name."
  40124. msgstr ""
  40125. #. type: deftypevr
  40126. #: guix-git/doc/guix.texi:26894
  40127. msgid "Defaults to @samp{\"client\"}."
  40128. msgstr ""
  40129. #. type: deftypevr
  40130. #: guix-git/doc/guix.texi:26897
  40131. #, no-wrap
  40132. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask iroute"
  40133. msgstr ""
  40134. #. type: deftypevr
  40135. #: guix-git/doc/guix.texi:26899
  40136. msgid "Client own network"
  40137. msgstr ""
  40138. #. type: deftypevr
  40139. #: guix-git/doc/guix.texi:26904
  40140. #, no-wrap
  40141. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask ifconfig-push"
  40142. msgstr ""
  40143. #. type: deftypevr
  40144. #: guix-git/doc/guix.texi:26906
  40145. msgid "Client VPN IP."
  40146. msgstr ""
  40147. #. type: subsubheading
  40148. #: guix-git/doc/guix.texi:26916
  40149. #, no-wrap
  40150. msgid "Wireguard"
  40151. msgstr ""
  40152. #. type: defvr
  40153. #: guix-git/doc/guix.texi:26918
  40154. #, no-wrap
  40155. msgid "{Scheme Variable} wireguard-service-type"
  40156. msgstr ""
  40157. #. type: defvr
  40158. #: guix-git/doc/guix.texi:26921
  40159. msgid "A service type for a Wireguard tunnel interface. Its value must be a @code{wireguard-configuration} record as in this example:"
  40160. msgstr ""
  40161. #. type: lisp
  40162. #: guix-git/doc/guix.texi:26932
  40163. #, no-wrap
  40164. msgid ""
  40165. "(service wireguard-service-type\n"
  40166. " (wireguard-configuration\n"
  40167. " (peers\n"
  40168. " (list\n"
  40169. " (wireguard-peer\n"
  40170. " (name \"my-peer\")\n"
  40171. " (endpoint \"my.wireguard.com:51820\")\n"
  40172. " (public-key \"hzpKg9X1yqu1axN6iJp0mWf6BZGo8m1wteKwtTmDGF4=\")\n"
  40173. " (allowed-ips '(\"10.0.0.2/32\")))))))\n"
  40174. msgstr ""
  40175. #. type: deftp
  40176. #: guix-git/doc/guix.texi:26936
  40177. #, fuzzy, no-wrap
  40178. msgid "{Data Type} wireguard-configuration"
  40179. msgstr "{数据类型} build-machine"
  40180. #. type: deftp
  40181. #: guix-git/doc/guix.texi:26938
  40182. #, fuzzy
  40183. msgid "Data type representing the configuration of the Wireguard service."
  40184. msgstr "管理操作系统配置。"
  40185. #. type: code{#1}
  40186. #: guix-git/doc/guix.texi:26940
  40187. #, no-wrap
  40188. msgid "wireguard"
  40189. msgstr ""
  40190. #. type: table
  40191. #: guix-git/doc/guix.texi:26942
  40192. #, fuzzy
  40193. msgid "The wireguard package to use for this service."
  40194. msgstr "软件包数据类型。"
  40195. #. type: item
  40196. #: guix-git/doc/guix.texi:26943
  40197. #, fuzzy, no-wrap
  40198. msgid "@code{interface} (default: @code{\"wg0\"})"
  40199. msgstr "@code{display}(默认值:@code{\":0\"})"
  40200. #. type: table
  40201. #: guix-git/doc/guix.texi:26945
  40202. msgid "The interface name for the VPN."
  40203. msgstr ""
  40204. #. type: item
  40205. #: guix-git/doc/guix.texi:26946
  40206. #, fuzzy, no-wrap
  40207. msgid "@code{addresses} (default: @code{'(\"10.0.0.1/32\")})"
  40208. msgstr "@code{display}(默认值:@code{\":0\"})"
  40209. #. type: table
  40210. #: guix-git/doc/guix.texi:26948
  40211. msgid "The IP addresses to be assigned to the above interface."
  40212. msgstr ""
  40213. #. type: item
  40214. #: guix-git/doc/guix.texi:26949
  40215. #, fuzzy, no-wrap
  40216. msgid "@code{private-key} (default: @code{\"/etc/wireguard/private.key\"})"
  40217. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40218. #. type: table
  40219. #: guix-git/doc/guix.texi:26952
  40220. msgid "The private key file for the interface. It is automatically generated if the file does not exist."
  40221. msgstr ""
  40222. #. type: item
  40223. #: guix-git/doc/guix.texi:26953
  40224. #, fuzzy, no-wrap
  40225. msgid "@code{peers} (default: @code{'()})"
  40226. msgstr "@code{features} (@code{'()})"
  40227. #. type: table
  40228. #: guix-git/doc/guix.texi:26956
  40229. msgid "The authorized peers on this interface. This is a list of @var{wireguard-peer} records."
  40230. msgstr ""
  40231. #. type: deftp
  40232. #: guix-git/doc/guix.texi:26960
  40233. #, fuzzy, no-wrap
  40234. msgid "{Data Type} wireguard-peer"
  40235. msgstr "{数据类型} build-machine"
  40236. #. type: deftp
  40237. #: guix-git/doc/guix.texi:26962
  40238. #, fuzzy
  40239. msgid "Data type representing a Wireguard peer attached to a given interface."
  40240. msgstr "管理操作系统配置。"
  40241. #. type: table
  40242. #: guix-git/doc/guix.texi:26966
  40243. #, fuzzy
  40244. msgid "The peer name."
  40245. msgstr "仓库monad"
  40246. #. type: item
  40247. #: guix-git/doc/guix.texi:26967
  40248. #, fuzzy, no-wrap
  40249. msgid "@code{endpoint} (default: @code{#f})"
  40250. msgstr "@code{port}(默认值:@code{22})"
  40251. #. type: table
  40252. #: guix-git/doc/guix.texi:26970
  40253. msgid "The optional endpoint for the peer, such as @code{\"demo.wireguard.com:51820\"}."
  40254. msgstr ""
  40255. #. type: itemx
  40256. #: guix-git/doc/guix.texi:26971 guix-git/doc/guix.texi:27355
  40257. #: guix-git/doc/guix.texi:27389 guix-git/doc/guix.texi:32191
  40258. #, no-wrap
  40259. msgid "public-key"
  40260. msgstr ""
  40261. #. type: table
  40262. #: guix-git/doc/guix.texi:26973
  40263. msgid "The peer public-key represented as a base64 string."
  40264. msgstr ""
  40265. #. type: code{#1}
  40266. #: guix-git/doc/guix.texi:26974
  40267. #, no-wrap
  40268. msgid "allowed-ips"
  40269. msgstr ""
  40270. #. type: table
  40271. #: guix-git/doc/guix.texi:26977
  40272. 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."
  40273. msgstr ""
  40274. #. type: cindex
  40275. #: guix-git/doc/guix.texi:26983
  40276. #, no-wrap
  40277. msgid "NFS"
  40278. msgstr ""
  40279. #. type: Plain text
  40280. #: guix-git/doc/guix.texi:26988
  40281. 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)."
  40282. msgstr ""
  40283. #. type: Plain text
  40284. #: guix-git/doc/guix.texi:26992
  40285. 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}."
  40286. msgstr ""
  40287. #. type: subsubheading
  40288. #: guix-git/doc/guix.texi:26993
  40289. #, fuzzy, no-wrap
  40290. msgid "NFS Service"
  40291. msgstr "DNS服务"
  40292. #. type: cindex
  40293. #: guix-git/doc/guix.texi:26994
  40294. #, fuzzy, no-wrap
  40295. msgid "NFS, server"
  40296. msgstr "Web服务。"
  40297. #. type: Plain text
  40298. #: guix-git/doc/guix.texi:26999
  40299. 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."
  40300. msgstr ""
  40301. #. type: defvr
  40302. #: guix-git/doc/guix.texi:27000
  40303. #, no-wrap
  40304. msgid "{Scheme Variable} nfs-service-type"
  40305. msgstr ""
  40306. #. type: defvr
  40307. #: guix-git/doc/guix.texi:27002
  40308. msgid "A service type for a complete NFS server."
  40309. msgstr ""
  40310. #. type: deftp
  40311. #: guix-git/doc/guix.texi:27004
  40312. #, fuzzy, no-wrap
  40313. msgid "{Data Type} nfs-configuration"
  40314. msgstr "系统配置"
  40315. #. type: deftp
  40316. #: guix-git/doc/guix.texi:27007
  40317. msgid "This data type represents the configuration of the NFS service and all of its subsystems."
  40318. msgstr ""
  40319. #. type: deftp
  40320. #: guix-git/doc/guix.texi:27009
  40321. #, fuzzy
  40322. msgid "It has the following parameters:"
  40323. msgstr "GNU Guix依赖这些软件包:"
  40324. #. type: item
  40325. #: guix-git/doc/guix.texi:27010 guix-git/doc/guix.texi:27135
  40326. #: guix-git/doc/guix.texi:27160
  40327. #, no-wrap
  40328. msgid "@code{nfs-utils} (default: @code{nfs-utils})"
  40329. msgstr ""
  40330. #. type: table
  40331. #: guix-git/doc/guix.texi:27012
  40332. #, fuzzy
  40333. msgid "The nfs-utils package to use."
  40334. msgstr "软件包数据类型。"
  40335. #. type: item
  40336. #: guix-git/doc/guix.texi:27013
  40337. #, fuzzy, no-wrap
  40338. msgid "@code{nfs-versions} (default: @code{'(\"4.2\" \"4.1\" \"4.0\")})"
  40339. msgstr "@code{features} (@code{'()})"
  40340. #. type: table
  40341. #: guix-git/doc/guix.texi:27016
  40342. 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."
  40343. msgstr ""
  40344. #. type: item
  40345. #: guix-git/doc/guix.texi:27017
  40346. #, fuzzy, no-wrap
  40347. msgid "@code{exports} (default: @code{'()})"
  40348. msgstr "@code{port}(默认值:@code{22})"
  40349. #. type: table
  40350. #: guix-git/doc/guix.texi:27022
  40351. 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:"
  40352. msgstr ""
  40353. #. type: lisp
  40354. #: guix-git/doc/guix.texi:27028
  40355. #, no-wrap
  40356. msgid ""
  40357. "(nfs-configuration\n"
  40358. " (exports\n"
  40359. " '((\"/export\"\n"
  40360. " \"*(ro,insecure,no_subtree_check,crossmnt,fsid=0)\"))))\n"
  40361. msgstr ""
  40362. #. type: item
  40363. #: guix-git/doc/guix.texi:27030
  40364. #, fuzzy, no-wrap
  40365. msgid "@code{rpcmountd-port} (default: @code{#f})"
  40366. msgstr "@code{port}(默认值:@code{22})"
  40367. #. type: table
  40368. #: guix-git/doc/guix.texi:27032
  40369. msgid "The network port that the @command{rpc.mountd} daemon should use."
  40370. msgstr ""
  40371. #. type: item
  40372. #: guix-git/doc/guix.texi:27033
  40373. #, fuzzy, no-wrap
  40374. msgid "@code{rpcstatd-port} (default: @code{#f})"
  40375. msgstr "@code{port}(默认值:@code{22})"
  40376. #. type: table
  40377. #: guix-git/doc/guix.texi:27035
  40378. msgid "The network port that the @command{rpc.statd} daemon should use."
  40379. msgstr ""
  40380. #. type: item
  40381. #: guix-git/doc/guix.texi:27036 guix-git/doc/guix.texi:27084
  40382. #, no-wrap
  40383. msgid "@code{rpcbind} (default: @code{rpcbind})"
  40384. msgstr ""
  40385. #. type: table
  40386. #: guix-git/doc/guix.texi:27038 guix-git/doc/guix.texi:27086
  40387. msgid "The rpcbind package to use."
  40388. msgstr ""
  40389. #. type: item
  40390. #: guix-git/doc/guix.texi:27039
  40391. #, fuzzy, no-wrap
  40392. msgid "@code{idmap-domain} (default: @code{\"localdomain\"})"
  40393. msgstr "@code{mate}(默认值:@code{mate})"
  40394. #. type: table
  40395. #: guix-git/doc/guix.texi:27041
  40396. msgid "The local NFSv4 domain name."
  40397. msgstr ""
  40398. #. type: item
  40399. #: guix-git/doc/guix.texi:27042
  40400. #, fuzzy, no-wrap
  40401. msgid "@code{nfsd-port} (default: @code{2049})"
  40402. msgstr "@code{port}(默认值:@code{22})"
  40403. #. type: table
  40404. #: guix-git/doc/guix.texi:27044
  40405. msgid "The network port that the @command{nfsd} daemon should use."
  40406. msgstr ""
  40407. #. type: item
  40408. #: guix-git/doc/guix.texi:27045
  40409. #, fuzzy, no-wrap
  40410. msgid "@code{nfsd-threads} (default: @code{8})"
  40411. msgstr "@code{features} (@code{'()})"
  40412. #. type: table
  40413. #: guix-git/doc/guix.texi:27047
  40414. msgid "The number of threads used by the @command{nfsd} daemon."
  40415. msgstr ""
  40416. #. type: item
  40417. #: guix-git/doc/guix.texi:27048
  40418. #, fuzzy, no-wrap
  40419. msgid "@code{nfsd-tcp?} (default: @code{#t})"
  40420. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  40421. #. type: table
  40422. #: guix-git/doc/guix.texi:27050
  40423. msgid "Whether the @command{nfsd} daemon should listen on a TCP socket."
  40424. msgstr ""
  40425. #. type: item
  40426. #: guix-git/doc/guix.texi:27051
  40427. #, fuzzy, no-wrap
  40428. msgid "@code{nfsd-udp?} (default: @code{#f})"
  40429. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40430. #. type: table
  40431. #: guix-git/doc/guix.texi:27053
  40432. msgid "Whether the @command{nfsd} daemon should listen on a UDP socket."
  40433. msgstr ""
  40434. #. type: item
  40435. #: guix-git/doc/guix.texi:27054 guix-git/doc/guix.texi:27138
  40436. #: guix-git/doc/guix.texi:27163
  40437. #, no-wrap
  40438. msgid "@code{pipefs-directory} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  40439. msgstr ""
  40440. #. type: table
  40441. #: guix-git/doc/guix.texi:27056 guix-git/doc/guix.texi:27140
  40442. #: guix-git/doc/guix.texi:27165
  40443. msgid "The directory where the pipefs file system is mounted."
  40444. msgstr ""
  40445. #. type: item
  40446. #: guix-git/doc/guix.texi:27057
  40447. #, fuzzy, no-wrap
  40448. msgid "@code{debug} (default: @code{'()\"})"
  40449. msgstr "@code{features} (@code{'()})"
  40450. #. type: table
  40451. #: guix-git/doc/guix.texi:27061
  40452. 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}."
  40453. msgstr ""
  40454. #. type: Plain text
  40455. #: guix-git/doc/guix.texi:27066
  40456. 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."
  40457. msgstr ""
  40458. #. type: subsubheading
  40459. #: guix-git/doc/guix.texi:27067
  40460. #, no-wrap
  40461. msgid "RPC Bind Service"
  40462. msgstr ""
  40463. #. type: cindex
  40464. #: guix-git/doc/guix.texi:27068
  40465. #, no-wrap
  40466. msgid "rpcbind"
  40467. msgstr ""
  40468. #. type: Plain text
  40469. #: guix-git/doc/guix.texi:27074
  40470. 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."
  40471. msgstr ""
  40472. #. type: defvr
  40473. #: guix-git/doc/guix.texi:27075
  40474. #, no-wrap
  40475. msgid "{Scheme Variable} rpcbind-service-type"
  40476. msgstr ""
  40477. #. type: defvr
  40478. #: guix-git/doc/guix.texi:27077
  40479. msgid "A service type for the RPC portmapper daemon."
  40480. msgstr ""
  40481. #. type: deftp
  40482. #: guix-git/doc/guix.texi:27080
  40483. #, no-wrap
  40484. msgid "{Data Type} rpcbind-configuration"
  40485. msgstr ""
  40486. #. type: deftp
  40487. #: guix-git/doc/guix.texi:27083
  40488. msgid "Data type representing the configuration of the RPC Bind Service. This type has the following parameters:"
  40489. msgstr ""
  40490. #. type: item
  40491. #: guix-git/doc/guix.texi:27087
  40492. #, no-wrap
  40493. msgid "@code{warm-start?} (default: @code{#t})"
  40494. msgstr ""
  40495. #. type: table
  40496. #: guix-git/doc/guix.texi:27091
  40497. 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."
  40498. msgstr ""
  40499. #. type: subsubheading
  40500. #: guix-git/doc/guix.texi:27095
  40501. #, no-wrap
  40502. msgid "Pipefs Pseudo File System"
  40503. msgstr ""
  40504. #. type: cindex
  40505. #: guix-git/doc/guix.texi:27096
  40506. #, no-wrap
  40507. msgid "pipefs"
  40508. msgstr ""
  40509. #. type: cindex
  40510. #: guix-git/doc/guix.texi:27097
  40511. #, no-wrap
  40512. msgid "rpc_pipefs"
  40513. msgstr ""
  40514. #. type: Plain text
  40515. #: guix-git/doc/guix.texi:27101
  40516. msgid "The pipefs file system is used to transfer NFS related data between the kernel and user space programs."
  40517. msgstr ""
  40518. #. type: defvr
  40519. #: guix-git/doc/guix.texi:27102
  40520. #, no-wrap
  40521. msgid "{Scheme Variable} pipefs-service-type"
  40522. msgstr ""
  40523. #. type: defvr
  40524. #: guix-git/doc/guix.texi:27104
  40525. msgid "A service type for the pipefs pseudo file system."
  40526. msgstr ""
  40527. #. type: deftp
  40528. #: guix-git/doc/guix.texi:27106
  40529. #, no-wrap
  40530. msgid "{Data Type} pipefs-configuration"
  40531. msgstr ""
  40532. #. type: deftp
  40533. #: guix-git/doc/guix.texi:27109
  40534. msgid "Data type representing the configuration of the pipefs pseudo file system service. This type has the following parameters:"
  40535. msgstr ""
  40536. #. type: item
  40537. #: guix-git/doc/guix.texi:27110
  40538. #, no-wrap
  40539. msgid "@code{mount-point} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  40540. msgstr ""
  40541. #. type: table
  40542. #: guix-git/doc/guix.texi:27112
  40543. msgid "The directory to which the file system is to be attached."
  40544. msgstr ""
  40545. #. type: subsubheading
  40546. #: guix-git/doc/guix.texi:27116
  40547. #, no-wrap
  40548. msgid "GSS Daemon Service"
  40549. msgstr ""
  40550. #. type: cindex
  40551. #: guix-git/doc/guix.texi:27117
  40552. #, no-wrap
  40553. msgid "GSSD"
  40554. msgstr ""
  40555. #. type: cindex
  40556. #: guix-git/doc/guix.texi:27118
  40557. #, no-wrap
  40558. msgid "GSS"
  40559. msgstr ""
  40560. #. type: cindex
  40561. #: guix-git/doc/guix.texi:27119
  40562. #, no-wrap
  40563. msgid "global security system"
  40564. msgstr ""
  40565. #. type: Plain text
  40566. #: guix-git/doc/guix.texi:27126
  40567. 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})."
  40568. msgstr ""
  40569. #. type: defvr
  40570. #: guix-git/doc/guix.texi:27127
  40571. #, no-wrap
  40572. msgid "{Scheme Variable} gss-service-type"
  40573. msgstr ""
  40574. #. type: defvr
  40575. #: guix-git/doc/guix.texi:27129
  40576. msgid "A service type for the Global Security System (GSS) daemon."
  40577. msgstr ""
  40578. #. type: deftp
  40579. #: guix-git/doc/guix.texi:27131
  40580. #, no-wrap
  40581. msgid "{Data Type} gss-configuration"
  40582. msgstr ""
  40583. #. type: deftp
  40584. #: guix-git/doc/guix.texi:27134
  40585. msgid "Data type representing the configuration of the GSS daemon service. This type has the following parameters:"
  40586. msgstr ""
  40587. #. type: table
  40588. #: guix-git/doc/guix.texi:27137
  40589. msgid "The package in which the @command{rpc.gssd} command is to be found."
  40590. msgstr ""
  40591. #. type: subsubheading
  40592. #: guix-git/doc/guix.texi:27145
  40593. #, no-wrap
  40594. msgid "IDMAP Daemon Service"
  40595. msgstr ""
  40596. #. type: cindex
  40597. #: guix-git/doc/guix.texi:27146
  40598. #, no-wrap
  40599. msgid "idmapd"
  40600. msgstr ""
  40601. #. type: cindex
  40602. #: guix-git/doc/guix.texi:27147
  40603. #, no-wrap
  40604. msgid "name mapper"
  40605. msgstr ""
  40606. #. type: Plain text
  40607. #: guix-git/doc/guix.texi:27151
  40608. 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."
  40609. msgstr ""
  40610. #. type: defvr
  40611. #: guix-git/doc/guix.texi:27152
  40612. #, no-wrap
  40613. msgid "{Scheme Variable} idmap-service-type"
  40614. msgstr ""
  40615. #. type: defvr
  40616. #: guix-git/doc/guix.texi:27154
  40617. msgid "A service type for the Identity Mapper (IDMAP) daemon."
  40618. msgstr ""
  40619. #. type: deftp
  40620. #: guix-git/doc/guix.texi:27156
  40621. #, no-wrap
  40622. msgid "{Data Type} idmap-configuration"
  40623. msgstr ""
  40624. #. type: deftp
  40625. #: guix-git/doc/guix.texi:27159
  40626. msgid "Data type representing the configuration of the IDMAP daemon service. This type has the following parameters:"
  40627. msgstr ""
  40628. #. type: table
  40629. #: guix-git/doc/guix.texi:27162
  40630. msgid "The package in which the @command{rpc.idmapd} command is to be found."
  40631. msgstr ""
  40632. #. type: item
  40633. #: guix-git/doc/guix.texi:27166
  40634. #, no-wrap
  40635. msgid "@code{domain} (default: @code{#f})"
  40636. msgstr ""
  40637. #. type: table
  40638. #: guix-git/doc/guix.texi:27170
  40639. 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."
  40640. msgstr ""
  40641. #. type: item
  40642. #: guix-git/doc/guix.texi:27171
  40643. #, fuzzy, no-wrap
  40644. msgid "@code{verbosity} (default: @code{0})"
  40645. msgstr "@code{port}(默认值:@code{22})"
  40646. #. type: table
  40647. #: guix-git/doc/guix.texi:27173
  40648. #, fuzzy
  40649. msgid "The verbosity level of the daemon."
  40650. msgstr "远程机器的主机名。"
  40651. #. type: Plain text
  40652. #: guix-git/doc/guix.texi:27184
  40653. 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})."
  40654. msgstr ""
  40655. #. type: Plain text
  40656. #: guix-git/doc/guix.texi:27186
  40657. msgid "The @code{(gnu services cuirass)} module provides the following service."
  40658. msgstr ""
  40659. #. type: defvr
  40660. #: guix-git/doc/guix.texi:27187
  40661. #, no-wrap
  40662. msgid "{Scheme Procedure} cuirass-service-type"
  40663. msgstr ""
  40664. #. type: defvr
  40665. #: guix-git/doc/guix.texi:27190
  40666. msgid "The type of the Cuirass service. Its value must be a @code{cuirass-configuration} object, as described below."
  40667. msgstr ""
  40668. #. type: Plain text
  40669. #: guix-git/doc/guix.texi:27195
  40670. 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."
  40671. msgstr ""
  40672. #. type: lisp
  40673. #: guix-git/doc/guix.texi:27206
  40674. #, no-wrap
  40675. msgid ""
  40676. "(define %cuirass-specs\n"
  40677. " #~(list (specification\n"
  40678. " (name \"my-channel\")\n"
  40679. " (build '(channels my-channel))\n"
  40680. " (channels\n"
  40681. " (cons (channel\n"
  40682. " (name 'my-channel)\n"
  40683. " (url \"https://my-channel.git\"))\n"
  40684. " %default-channels)))))\n"
  40685. "\n"
  40686. msgstr ""
  40687. #. type: lisp
  40688. #: guix-git/doc/guix.texi:27210 guix-git/doc/guix.texi:27224
  40689. #, no-wrap
  40690. msgid ""
  40691. "(service cuirass-service-type\n"
  40692. " (cuirass-configuration\n"
  40693. " (specifications %cuirass-specs)))\n"
  40694. msgstr ""
  40695. #. type: Plain text
  40696. #: guix-git/doc/guix.texi:27214
  40697. msgid "To build the @code{linux-libre} package defined by the default Guix channel, one can use the following configuration."
  40698. msgstr ""
  40699. #. type: lisp
  40700. #: guix-git/doc/guix.texi:27220
  40701. #, no-wrap
  40702. msgid ""
  40703. "(define %cuirass-specs\n"
  40704. " #~(list (specification\n"
  40705. " (name \"my-linux\")\n"
  40706. " (build '(packages \"linux-libre\")))))\n"
  40707. "\n"
  40708. msgstr ""
  40709. #. type: Plain text
  40710. #: guix-git/doc/guix.texi:27229
  40711. msgid "The other configuration possibilities, as well as the specification record itself are described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  40712. msgstr ""
  40713. #. type: Plain text
  40714. #: guix-git/doc/guix.texi:27233
  40715. 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."
  40716. msgstr ""
  40717. #. type: deftp
  40718. #: guix-git/doc/guix.texi:27234
  40719. #, no-wrap
  40720. msgid "{Data Type} cuirass-configuration"
  40721. msgstr ""
  40722. #. type: deftp
  40723. #: guix-git/doc/guix.texi:27236
  40724. msgid "Data type representing the configuration of Cuirass."
  40725. msgstr ""
  40726. #. type: item
  40727. #: guix-git/doc/guix.texi:27238 guix-git/doc/guix.texi:27370
  40728. #, no-wrap
  40729. msgid "@code{cuirass} (default: @code{cuirass})"
  40730. msgstr ""
  40731. #. type: table
  40732. #: guix-git/doc/guix.texi:27240 guix-git/doc/guix.texi:27372
  40733. msgid "The Cuirass package to use."
  40734. msgstr ""
  40735. #. type: item
  40736. #: guix-git/doc/guix.texi:27241
  40737. #, no-wrap
  40738. msgid "@code{log-file} (default: @code{\"/var/log/cuirass.log\"})"
  40739. msgstr ""
  40740. #. type: table
  40741. #: guix-git/doc/guix.texi:27243 guix-git/doc/guix.texi:27347
  40742. #: guix-git/doc/guix.texi:27385
  40743. msgid "Location of the log file."
  40744. msgstr ""
  40745. #. type: item
  40746. #: guix-git/doc/guix.texi:27244
  40747. #, fuzzy, no-wrap
  40748. msgid "@code{web-log-file} (default: @code{\"/var/log/cuirass-web.log\"})"
  40749. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  40750. #. type: table
  40751. #: guix-git/doc/guix.texi:27246
  40752. msgid "Location of the log file used by the web interface."
  40753. msgstr ""
  40754. #. type: item
  40755. #: guix-git/doc/guix.texi:27247
  40756. #, no-wrap
  40757. msgid "@code{cache-directory} (default: @code{\"/var/cache/cuirass\"})"
  40758. msgstr ""
  40759. #. type: table
  40760. #: guix-git/doc/guix.texi:27249
  40761. msgid "Location of the repository cache."
  40762. msgstr ""
  40763. #. type: item
  40764. #: guix-git/doc/guix.texi:27250
  40765. #, no-wrap
  40766. msgid "@code{user} (default: @code{\"cuirass\"})"
  40767. msgstr ""
  40768. #. type: table
  40769. #: guix-git/doc/guix.texi:27252
  40770. msgid "Owner of the @code{cuirass} process."
  40771. msgstr ""
  40772. #. type: item
  40773. #: guix-git/doc/guix.texi:27253
  40774. #, no-wrap
  40775. msgid "@code{group} (default: @code{\"cuirass\"})"
  40776. msgstr ""
  40777. #. type: table
  40778. #: guix-git/doc/guix.texi:27255
  40779. msgid "Owner's group of the @code{cuirass} process."
  40780. msgstr ""
  40781. #. type: item
  40782. #: guix-git/doc/guix.texi:27256
  40783. #, no-wrap
  40784. msgid "@code{interval} (default: @code{60})"
  40785. msgstr ""
  40786. #. type: table
  40787. #: guix-git/doc/guix.texi:27259
  40788. msgid "Number of seconds between the poll of the repositories followed by the Cuirass jobs."
  40789. msgstr ""
  40790. #. type: item
  40791. #: guix-git/doc/guix.texi:27260
  40792. #, fuzzy, no-wrap
  40793. msgid "@code{parameters} (default: @code{#f})"
  40794. msgstr "@code{port}(默认值:@code{22})"
  40795. #. type: table
  40796. #: guix-git/doc/guix.texi:27263
  40797. msgid "Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass})."
  40798. msgstr ""
  40799. #. type: item
  40800. #: guix-git/doc/guix.texi:27264
  40801. #, fuzzy, no-wrap
  40802. msgid "@code{remote-server} (default: @code{#f})"
  40803. msgstr "@code{speed}(默认值:@code{1.0})"
  40804. #. type: table
  40805. #: guix-git/doc/guix.texi:27267
  40806. msgid "A @code{cuirass-remote-server-configuration} record to use the build remote mechanism or @code{#f} to use the default build mechanism."
  40807. msgstr ""
  40808. #. type: item
  40809. #: guix-git/doc/guix.texi:27268
  40810. #, fuzzy, no-wrap
  40811. msgid "@code{database} (default: @code{\"dbname=cuirass host=/var/run/postgresql\"})"
  40812. msgstr "@code{port}(默认值:@code{22})"
  40813. #. type: table
  40814. #: guix-git/doc/guix.texi:27273
  40815. 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\"}."
  40816. msgstr ""
  40817. #. type: item
  40818. #: guix-git/doc/guix.texi:27274
  40819. #, no-wrap
  40820. msgid "@code{port} (default: @code{8081})"
  40821. msgstr ""
  40822. #. type: table
  40823. #: guix-git/doc/guix.texi:27276
  40824. msgid "Port number used by the HTTP server."
  40825. msgstr ""
  40826. #. type: table
  40827. #: guix-git/doc/guix.texi:27280
  40828. msgid "Listen on the network interface for @var{host}. The default is to accept connections from localhost."
  40829. msgstr ""
  40830. #. type: item
  40831. #: guix-git/doc/guix.texi:27281
  40832. #, no-wrap
  40833. msgid "@code{specifications} (default: @code{#~'()})"
  40834. msgstr ""
  40835. #. type: table
  40836. #: guix-git/doc/guix.texi:27285
  40837. 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})."
  40838. msgstr ""
  40839. #. type: item
  40840. #: guix-git/doc/guix.texi:27286
  40841. #, no-wrap
  40842. msgid "@code{use-substitutes?} (default: @code{#f})"
  40843. msgstr ""
  40844. #. type: table
  40845. #: guix-git/doc/guix.texi:27289
  40846. msgid "This allows using substitutes to avoid building every dependencies of a job from source."
  40847. msgstr ""
  40848. #. type: item
  40849. #: guix-git/doc/guix.texi:27290 guix-git/doc/guix.texi:34160
  40850. #, no-wrap
  40851. msgid "@code{one-shot?} (default: @code{#f})"
  40852. msgstr ""
  40853. #. type: table
  40854. #: guix-git/doc/guix.texi:27292
  40855. msgid "Only evaluate specifications and build derivations once."
  40856. msgstr ""
  40857. #. type: item
  40858. #: guix-git/doc/guix.texi:27293
  40859. #, no-wrap
  40860. msgid "@code{fallback?} (default: @code{#f})"
  40861. msgstr ""
  40862. #. type: table
  40863. #: guix-git/doc/guix.texi:27296
  40864. msgid "When substituting a pre-built binary fails, fall back to building packages locally."
  40865. msgstr ""
  40866. #. type: table
  40867. #: guix-git/doc/guix.texi:27299
  40868. msgid "Extra options to pass when running the Cuirass processes."
  40869. msgstr ""
  40870. #. type: cindex
  40871. #: guix-git/doc/guix.texi:27303
  40872. #, fuzzy, no-wrap
  40873. msgid "remote build"
  40874. msgstr "可复现的构建"
  40875. #. type: subsubheading
  40876. #: guix-git/doc/guix.texi:27304
  40877. #, no-wrap
  40878. msgid "Cuirass remote building"
  40879. msgstr ""
  40880. #. type: Plain text
  40881. #: guix-git/doc/guix.texi:27307
  40882. msgid "Cuirass supports two mechanisms to build derivations."
  40883. msgstr ""
  40884. #. type: item
  40885. #: guix-git/doc/guix.texi:27309
  40886. #, fuzzy, no-wrap
  40887. msgid "Using the local Guix daemon."
  40888. msgstr "运行“构建后台进程”"
  40889. #. type: itemize
  40890. #: guix-git/doc/guix.texi:27313
  40891. 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."
  40892. msgstr ""
  40893. #. type: item
  40894. #: guix-git/doc/guix.texi:27314
  40895. #, fuzzy, no-wrap
  40896. msgid "Using the remote build mechanism."
  40897. msgstr "准备隔离的构建环境。"
  40898. #. type: itemize
  40899. #: guix-git/doc/guix.texi:27318
  40900. 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."
  40901. msgstr ""
  40902. #. type: Plain text
  40903. #: guix-git/doc/guix.texi:27325
  40904. 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."
  40905. msgstr ""
  40906. #. type: Plain text
  40907. #: guix-git/doc/guix.texi:27330
  40908. 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."
  40909. msgstr ""
  40910. #. type: deftp
  40911. #: guix-git/doc/guix.texi:27331
  40912. #, fuzzy, no-wrap
  40913. msgid "{Data Type} cuirass-remote-server-configuration"
  40914. msgstr "{数据类型} build-machine"
  40915. #. type: deftp
  40916. #: guix-git/doc/guix.texi:27333
  40917. #, fuzzy
  40918. msgid "Data type representing the configuration of the Cuirass remote-server."
  40919. msgstr "管理操作系统配置。"
  40920. #. type: item
  40921. #: guix-git/doc/guix.texi:27335
  40922. #, fuzzy, no-wrap
  40923. msgid "@code{backend-port} (default: @code{5555})"
  40924. msgstr "@code{port}(默认值:@code{22})"
  40925. #. type: table
  40926. #: guix-git/doc/guix.texi:27338
  40927. msgid "The TCP port for communicating with @code{remote-worker} processes using ZMQ. It defaults to @code{5555}."
  40928. msgstr ""
  40929. #. type: item
  40930. #: guix-git/doc/guix.texi:27339
  40931. #, fuzzy, no-wrap
  40932. msgid "@code{log-port} (default: @code{5556})"
  40933. msgstr "@code{port}(默认值:@code{22})"
  40934. #. type: table
  40935. #: guix-git/doc/guix.texi:27341
  40936. msgid "The TCP port of the log server. It defaults to @code{5556}."
  40937. msgstr ""
  40938. #. type: item
  40939. #: guix-git/doc/guix.texi:27342
  40940. #, fuzzy, no-wrap
  40941. msgid "@code{publish-port} (default: @code{5557})"
  40942. msgstr "@code{port}(默认值:@code{22})"
  40943. #. type: table
  40944. #: guix-git/doc/guix.texi:27344
  40945. msgid "The TCP port of the publish server. It defaults to @code{5557}."
  40946. msgstr ""
  40947. #. type: item
  40948. #: guix-git/doc/guix.texi:27345
  40949. #, fuzzy, no-wrap
  40950. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-server.log\"})"
  40951. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  40952. #. type: item
  40953. #: guix-git/doc/guix.texi:27348
  40954. #, fuzzy, no-wrap
  40955. msgid "@code{cache} (default: @code{\"/var/cache/cuirass/remote\"})"
  40956. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  40957. #. type: table
  40958. #: guix-git/doc/guix.texi:27350
  40959. msgid "Use @var{cache} directory to cache build log files."
  40960. msgstr ""
  40961. #. type: item
  40962. #: guix-git/doc/guix.texi:27351
  40963. #, fuzzy, no-wrap
  40964. msgid "@code{trigger-url} (default: @code{#f})"
  40965. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  40966. #. type: table
  40967. #: guix-git/doc/guix.texi:27354
  40968. msgid "Once a substitute is successfully fetched, trigger substitute baking at @var{trigger-url}."
  40969. msgstr ""
  40970. #. type: code{#1}
  40971. #: guix-git/doc/guix.texi:27356 guix-git/doc/guix.texi:27390
  40972. #, no-wrap
  40973. msgid "private-key"
  40974. msgstr ""
  40975. #. type: Plain text
  40976. #: guix-git/doc/guix.texi:27365
  40977. 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."
  40978. msgstr ""
  40979. #. type: deftp
  40980. #: guix-git/doc/guix.texi:27366
  40981. #, fuzzy, no-wrap
  40982. msgid "{Data Type} cuirass-remote-worker-configuration"
  40983. msgstr "{数据类型} build-machine"
  40984. #. type: deftp
  40985. #: guix-git/doc/guix.texi:27368
  40986. #, fuzzy
  40987. msgid "Data type representing the configuration of the Cuirass remote-worker."
  40988. msgstr "管理操作系统配置。"
  40989. #. type: item
  40990. #: guix-git/doc/guix.texi:27373
  40991. #, fuzzy, no-wrap
  40992. msgid "@code{workers} (default: @code{1})"
  40993. msgstr "@code{features} (@code{'()})"
  40994. #. type: table
  40995. #: guix-git/doc/guix.texi:27375
  40996. msgid "Start @var{workers} parallel workers."
  40997. msgstr ""
  40998. #. type: table
  40999. #: guix-git/doc/guix.texi:27379
  41000. msgid "Do not use Avahi discovery and connect to the given @code{server} IP address instead."
  41001. msgstr ""
  41002. #. type: item
  41003. #: guix-git/doc/guix.texi:27380
  41004. #, fuzzy, no-wrap
  41005. msgid "@code{systems} (default: @code{(list (%current-system))})"
  41006. msgstr "@code{port}(默认值:@code{22})"
  41007. #. type: table
  41008. #: guix-git/doc/guix.texi:27382
  41009. msgid "Only request builds for the given @var{systems}."
  41010. msgstr ""
  41011. #. type: item
  41012. #: guix-git/doc/guix.texi:27383
  41013. #, fuzzy, no-wrap
  41014. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-worker.log\"})"
  41015. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  41016. #. type: item
  41017. #: guix-git/doc/guix.texi:27386
  41018. #, fuzzy, no-wrap
  41019. msgid "@code{publish-port} (default: @code{5558})"
  41020. msgstr "@code{port}(默认值:@code{22})"
  41021. #. type: table
  41022. #: guix-git/doc/guix.texi:27388
  41023. msgid "The TCP port of the publish server. It defaults to @code{5558}."
  41024. msgstr ""
  41025. #. type: subsubheading
  41026. #: guix-git/doc/guix.texi:27397
  41027. #, no-wrap
  41028. msgid "Laminar"
  41029. msgstr ""
  41030. #. type: Plain text
  41031. #: guix-git/doc/guix.texi:27402
  41032. 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."
  41033. msgstr ""
  41034. #. type: Plain text
  41035. #: guix-git/doc/guix.texi:27405
  41036. msgid "Laminar encourages the use of existing tools such as bash and cron instead of reinventing them."
  41037. msgstr ""
  41038. #. type: defvr
  41039. #: guix-git/doc/guix.texi:27406
  41040. #, no-wrap
  41041. msgid "{Scheme Procedure} laminar-service-type"
  41042. msgstr ""
  41043. #. type: defvr
  41044. #: guix-git/doc/guix.texi:27409
  41045. msgid "The type of the Laminar service. Its value must be a @code{laminar-configuration} object, as described below."
  41046. msgstr ""
  41047. #. type: defvr
  41048. #: guix-git/doc/guix.texi:27413
  41049. 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."
  41050. msgstr ""
  41051. #. type: lisp
  41052. #: guix-git/doc/guix.texi:27416
  41053. #, no-wrap
  41054. msgid "(service laminar-service-type)\n"
  41055. msgstr ""
  41056. #. type: deftp
  41057. #: guix-git/doc/guix.texi:27419
  41058. #, fuzzy, no-wrap
  41059. msgid "{Data Type} laminar-configuration"
  41060. msgstr "{数据类型} build-machine"
  41061. #. type: deftp
  41062. #: guix-git/doc/guix.texi:27421
  41063. #, fuzzy
  41064. msgid "Data type representing the configuration of Laminar."
  41065. msgstr "管理操作系统配置。"
  41066. #. type: item
  41067. #: guix-git/doc/guix.texi:27423
  41068. #, fuzzy, no-wrap
  41069. msgid "@code{laminar} (default: @code{laminar})"
  41070. msgstr "@code{mate}(默认值:@code{mate})"
  41071. #. type: table
  41072. #: guix-git/doc/guix.texi:27425
  41073. #, fuzzy
  41074. msgid "The Laminar package to use."
  41075. msgstr "软件包数据类型。"
  41076. #. type: item
  41077. #: guix-git/doc/guix.texi:27426
  41078. #, fuzzy, no-wrap
  41079. msgid "@code{home-directory} (default: @code{\"/var/lib/laminar\"})"
  41080. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  41081. #. type: table
  41082. #: guix-git/doc/guix.texi:27428
  41083. msgid "The directory for job configurations and run directories."
  41084. msgstr ""
  41085. #. type: item
  41086. #: guix-git/doc/guix.texi:27429
  41087. #, fuzzy, no-wrap
  41088. msgid "@code{bind-http} (default: @code{\"*:8080\"})"
  41089. msgstr "@code{port}(默认值:@code{22})"
  41090. #. type: table
  41091. #: guix-git/doc/guix.texi:27432
  41092. msgid "The interface/port or unix socket on which laminard should listen for incoming connections to the web frontend."
  41093. msgstr ""
  41094. #. type: item
  41095. #: guix-git/doc/guix.texi:27433
  41096. #, fuzzy, no-wrap
  41097. msgid "@code{bind-rpc} (default: @code{\"unix-abstract:laminar\"})"
  41098. msgstr "@code{gnome}(默认值:@code{gnome})"
  41099. #. type: table
  41100. #: guix-git/doc/guix.texi:27436
  41101. msgid "The interface/port or unix socket on which laminard should listen for incoming commands such as build triggers."
  41102. msgstr ""
  41103. #. type: item
  41104. #: guix-git/doc/guix.texi:27437
  41105. #, fuzzy, no-wrap
  41106. msgid "@code{title} (default: @code{\"Laminar\"})"
  41107. msgstr "@code{mate}(默认值:@code{mate})"
  41108. #. type: table
  41109. #: guix-git/doc/guix.texi:27439
  41110. #, fuzzy
  41111. msgid "The page title to show in the web frontend."
  41112. msgstr "rottlog服务。"
  41113. #. type: item
  41114. #: guix-git/doc/guix.texi:27440
  41115. #, fuzzy, no-wrap
  41116. msgid "@code{keep-rundirs} (default: @code{0})"
  41117. msgstr "@code{features} (@code{'()})"
  41118. #. type: table
  41119. #: guix-git/doc/guix.texi:27444
  41120. 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."
  41121. msgstr ""
  41122. #. type: item
  41123. #: guix-git/doc/guix.texi:27445
  41124. #, fuzzy, no-wrap
  41125. msgid "@code{archive-url} (default: @code{#f})"
  41126. msgstr "@code{challenge}(默认值:@code{#f})"
  41127. #. type: table
  41128. #: guix-git/doc/guix.texi:27448
  41129. msgid "The web frontend served by laminard will use this URL to form links to artefacts archived jobs."
  41130. msgstr ""
  41131. #. type: item
  41132. #: guix-git/doc/guix.texi:27449
  41133. #, fuzzy, no-wrap
  41134. msgid "@code{base-url} (default: @code{#f})"
  41135. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  41136. #. type: table
  41137. #: guix-git/doc/guix.texi:27451
  41138. msgid "Base URL to use for links to laminar itself."
  41139. msgstr ""
  41140. #. type: cindex
  41141. #: guix-git/doc/guix.texi:27458
  41142. #, no-wrap
  41143. msgid "tlp"
  41144. msgstr ""
  41145. #. type: cindex
  41146. #: guix-git/doc/guix.texi:27459
  41147. #, no-wrap
  41148. msgid "power management with TLP"
  41149. msgstr ""
  41150. #. type: subsubheading
  41151. #: guix-git/doc/guix.texi:27460
  41152. #, no-wrap
  41153. msgid "TLP daemon"
  41154. msgstr ""
  41155. #. type: Plain text
  41156. #: guix-git/doc/guix.texi:27464
  41157. msgid "The @code{(gnu services pm)} module provides a Guix service definition for the Linux power management tool TLP."
  41158. msgstr ""
  41159. #. type: Plain text
  41160. #: guix-git/doc/guix.texi:27470
  41161. 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}."
  41162. msgstr ""
  41163. #. type: deffn
  41164. #: guix-git/doc/guix.texi:27471
  41165. #, no-wrap
  41166. msgid "{Scheme Variable} tlp-service-type"
  41167. msgstr ""
  41168. #. type: deffn
  41169. #: guix-git/doc/guix.texi:27475
  41170. 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}:"
  41171. msgstr ""
  41172. #. type: lisp
  41173. #: guix-git/doc/guix.texi:27480
  41174. #, no-wrap
  41175. msgid ""
  41176. "(service tlp-service-type\n"
  41177. " (tlp-configuration\n"
  41178. " (cpu-scaling-governor-on-ac (list \"performance\"))\n"
  41179. " (sched-powersave-on-bat? #t)))\n"
  41180. msgstr ""
  41181. #. type: Plain text
  41182. #: guix-git/doc/guix.texi:27488
  41183. 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}."
  41184. msgstr ""
  41185. #. type: Plain text
  41186. #: guix-git/doc/guix.texi:27498
  41187. msgid "Available @code{tlp-configuration} fields are:"
  41188. msgstr ""
  41189. #. type: deftypevr
  41190. #: guix-git/doc/guix.texi:27499
  41191. #, no-wrap
  41192. msgid "{@code{tlp-configuration} parameter} package tlp"
  41193. msgstr ""
  41194. #. type: deftypevr
  41195. #: guix-git/doc/guix.texi:27501
  41196. msgid "The TLP package."
  41197. msgstr ""
  41198. #. type: deftypevr
  41199. #: guix-git/doc/guix.texi:27504
  41200. #, no-wrap
  41201. msgid "{@code{tlp-configuration} parameter} boolean tlp-enable?"
  41202. msgstr ""
  41203. #. type: deftypevr
  41204. #: guix-git/doc/guix.texi:27506
  41205. msgid "Set to true if you wish to enable TLP."
  41206. msgstr ""
  41207. #. type: deftypevr
  41208. #: guix-git/doc/guix.texi:27511
  41209. #, no-wrap
  41210. msgid "{@code{tlp-configuration} parameter} string tlp-default-mode"
  41211. msgstr ""
  41212. #. type: deftypevr
  41213. #: guix-git/doc/guix.texi:27514
  41214. msgid "Default mode when no power supply can be detected. Alternatives are AC and BAT."
  41215. msgstr ""
  41216. #. type: deftypevr
  41217. #: guix-git/doc/guix.texi:27516
  41218. msgid "Defaults to @samp{\"AC\"}."
  41219. msgstr ""
  41220. #. type: deftypevr
  41221. #: guix-git/doc/guix.texi:27519
  41222. #, no-wrap
  41223. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-ac"
  41224. msgstr ""
  41225. #. type: deftypevr
  41226. #: guix-git/doc/guix.texi:27522
  41227. msgid "Number of seconds Linux kernel has to wait after the disk goes idle, before syncing on AC."
  41228. msgstr ""
  41229. #. type: deftypevr
  41230. #: guix-git/doc/guix.texi:27527
  41231. #, no-wrap
  41232. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-bat"
  41233. msgstr ""
  41234. #. type: deftypevr
  41235. #: guix-git/doc/guix.texi:27529
  41236. msgid "Same as @code{disk-idle-ac} but on BAT mode."
  41237. msgstr ""
  41238. #. type: deftypevr
  41239. #: guix-git/doc/guix.texi:27531
  41240. msgid "Defaults to @samp{2}."
  41241. msgstr ""
  41242. #. type: deftypevr
  41243. #: guix-git/doc/guix.texi:27534
  41244. #, no-wrap
  41245. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-ac"
  41246. msgstr ""
  41247. #. type: deftypevr
  41248. #: guix-git/doc/guix.texi:27536
  41249. msgid "Dirty pages flushing periodicity, expressed in seconds."
  41250. msgstr ""
  41251. #. type: deftypevr
  41252. #: guix-git/doc/guix.texi:27538 guix-git/doc/guix.texi:27761
  41253. #: guix-git/doc/guix.texi:29975 guix-git/doc/guix.texi:29983
  41254. msgid "Defaults to @samp{15}."
  41255. msgstr ""
  41256. #. type: deftypevr
  41257. #: guix-git/doc/guix.texi:27541
  41258. #, no-wrap
  41259. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-bat"
  41260. msgstr ""
  41261. #. type: deftypevr
  41262. #: guix-git/doc/guix.texi:27543
  41263. msgid "Same as @code{max-lost-work-secs-on-ac} but on BAT mode."
  41264. msgstr ""
  41265. #. type: deftypevr
  41266. #: guix-git/doc/guix.texi:27545
  41267. msgid "Defaults to @samp{60}."
  41268. msgstr ""
  41269. #. type: deftypevr
  41270. #: guix-git/doc/guix.texi:27548
  41271. #, no-wrap
  41272. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-ac"
  41273. msgstr ""
  41274. #. type: deftypevr
  41275. #: guix-git/doc/guix.texi:27552
  41276. 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."
  41277. msgstr ""
  41278. #. type: deftypevr
  41279. #: guix-git/doc/guix.texi:27557
  41280. #, no-wrap
  41281. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-bat"
  41282. msgstr ""
  41283. #. type: deftypevr
  41284. #: guix-git/doc/guix.texi:27559
  41285. msgid "Same as @code{cpu-scaling-governor-on-ac} but on BAT mode."
  41286. msgstr ""
  41287. #. type: deftypevr
  41288. #: guix-git/doc/guix.texi:27564
  41289. #, no-wrap
  41290. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-ac"
  41291. msgstr ""
  41292. #. type: deftypevr
  41293. #: guix-git/doc/guix.texi:27566
  41294. msgid "Set the min available frequency for the scaling governor on AC."
  41295. msgstr ""
  41296. #. type: deftypevr
  41297. #: guix-git/doc/guix.texi:27571
  41298. #, no-wrap
  41299. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-ac"
  41300. msgstr ""
  41301. #. type: deftypevr
  41302. #: guix-git/doc/guix.texi:27573
  41303. msgid "Set the max available frequency for the scaling governor on AC."
  41304. msgstr ""
  41305. #. type: deftypevr
  41306. #: guix-git/doc/guix.texi:27578
  41307. #, no-wrap
  41308. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-bat"
  41309. msgstr ""
  41310. #. type: deftypevr
  41311. #: guix-git/doc/guix.texi:27580
  41312. msgid "Set the min available frequency for the scaling governor on BAT."
  41313. msgstr ""
  41314. #. type: deftypevr
  41315. #: guix-git/doc/guix.texi:27585
  41316. #, no-wrap
  41317. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-bat"
  41318. msgstr ""
  41319. #. type: deftypevr
  41320. #: guix-git/doc/guix.texi:27587
  41321. msgid "Set the max available frequency for the scaling governor on BAT."
  41322. msgstr ""
  41323. #. type: deftypevr
  41324. #: guix-git/doc/guix.texi:27592
  41325. #, no-wrap
  41326. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-ac"
  41327. msgstr ""
  41328. #. type: deftypevr
  41329. #: guix-git/doc/guix.texi:27595
  41330. 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."
  41331. msgstr ""
  41332. #. type: deftypevr
  41333. #: guix-git/doc/guix.texi:27600
  41334. #, no-wrap
  41335. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-ac"
  41336. msgstr ""
  41337. #. type: deftypevr
  41338. #: guix-git/doc/guix.texi:27603
  41339. 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."
  41340. msgstr ""
  41341. #. type: deftypevr
  41342. #: guix-git/doc/guix.texi:27608
  41343. #, no-wrap
  41344. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-bat"
  41345. msgstr ""
  41346. #. type: deftypevr
  41347. #: guix-git/doc/guix.texi:27610
  41348. msgid "Same as @code{cpu-min-perf-on-ac} on BAT mode."
  41349. msgstr ""
  41350. #. type: deftypevr
  41351. #: guix-git/doc/guix.texi:27615
  41352. #, no-wrap
  41353. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-bat"
  41354. msgstr ""
  41355. #. type: deftypevr
  41356. #: guix-git/doc/guix.texi:27617
  41357. msgid "Same as @code{cpu-max-perf-on-ac} on BAT mode."
  41358. msgstr ""
  41359. #. type: deftypevr
  41360. #: guix-git/doc/guix.texi:27622
  41361. #, no-wrap
  41362. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-ac?"
  41363. msgstr ""
  41364. #. type: deftypevr
  41365. #: guix-git/doc/guix.texi:27624
  41366. msgid "Enable CPU turbo boost feature on AC mode."
  41367. msgstr ""
  41368. #. type: deftypevr
  41369. #: guix-git/doc/guix.texi:27629
  41370. #, no-wrap
  41371. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-bat?"
  41372. msgstr ""
  41373. #. type: deftypevr
  41374. #: guix-git/doc/guix.texi:27631
  41375. msgid "Same as @code{cpu-boost-on-ac?} on BAT mode."
  41376. msgstr ""
  41377. #. type: deftypevr
  41378. #: guix-git/doc/guix.texi:27636
  41379. #, no-wrap
  41380. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-ac?"
  41381. msgstr ""
  41382. #. type: deftypevr
  41383. #: guix-git/doc/guix.texi:27639
  41384. msgid "Allow Linux kernel to minimize the number of CPU cores/hyper-threads used under light load conditions."
  41385. msgstr ""
  41386. #. type: deftypevr
  41387. #: guix-git/doc/guix.texi:27644
  41388. #, no-wrap
  41389. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-bat?"
  41390. msgstr ""
  41391. #. type: deftypevr
  41392. #: guix-git/doc/guix.texi:27646
  41393. msgid "Same as @code{sched-powersave-on-ac?} but on BAT mode."
  41394. msgstr ""
  41395. #. type: deftypevr
  41396. #: guix-git/doc/guix.texi:27651
  41397. #, no-wrap
  41398. msgid "{@code{tlp-configuration} parameter} boolean nmi-watchdog?"
  41399. msgstr ""
  41400. #. type: deftypevr
  41401. #: guix-git/doc/guix.texi:27653
  41402. msgid "Enable Linux kernel NMI watchdog."
  41403. msgstr ""
  41404. #. type: deftypevr
  41405. #: guix-git/doc/guix.texi:27658
  41406. #, no-wrap
  41407. msgid "{@code{tlp-configuration} parameter} maybe-string phc-controls"
  41408. msgstr ""
  41409. #. type: deftypevr
  41410. #: guix-git/doc/guix.texi:27661
  41411. 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\"}."
  41412. msgstr ""
  41413. #. type: deftypevr
  41414. #: guix-git/doc/guix.texi:27666
  41415. #, no-wrap
  41416. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-ac"
  41417. msgstr ""
  41418. #. type: deftypevr
  41419. #: guix-git/doc/guix.texi:27669
  41420. msgid "Set CPU performance versus energy saving policy on AC@. Alternatives are performance, normal, powersave."
  41421. msgstr ""
  41422. #. type: deftypevr
  41423. #: guix-git/doc/guix.texi:27671 guix-git/doc/guix.texi:27769
  41424. #: guix-git/doc/guix.texi:27799
  41425. msgid "Defaults to @samp{\"performance\"}."
  41426. msgstr ""
  41427. #. type: deftypevr
  41428. #: guix-git/doc/guix.texi:27674
  41429. #, no-wrap
  41430. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-bat"
  41431. msgstr ""
  41432. #. type: deftypevr
  41433. #: guix-git/doc/guix.texi:27676
  41434. msgid "Same as @code{energy-perf-policy-ac} but on BAT mode."
  41435. msgstr ""
  41436. #. type: deftypevr
  41437. #: guix-git/doc/guix.texi:27678 guix-git/doc/guix.texi:27776
  41438. msgid "Defaults to @samp{\"powersave\"}."
  41439. msgstr ""
  41440. #. type: deftypevr
  41441. #: guix-git/doc/guix.texi:27681
  41442. #, no-wrap
  41443. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disks-devices"
  41444. msgstr ""
  41445. #. type: deftypevr
  41446. #: guix-git/doc/guix.texi:27683
  41447. msgid "Hard disk devices."
  41448. msgstr ""
  41449. #. type: deftypevr
  41450. #: guix-git/doc/guix.texi:27686
  41451. #, no-wrap
  41452. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-ac"
  41453. msgstr ""
  41454. #. type: deftypevr
  41455. #: guix-git/doc/guix.texi:27688
  41456. msgid "Hard disk advanced power management level."
  41457. msgstr ""
  41458. #. type: deftypevr
  41459. #: guix-git/doc/guix.texi:27691
  41460. #, no-wrap
  41461. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-bat"
  41462. msgstr ""
  41463. #. type: deftypevr
  41464. #: guix-git/doc/guix.texi:27693
  41465. msgid "Same as @code{disk-apm-bat} but on BAT mode."
  41466. msgstr ""
  41467. #. type: deftypevr
  41468. #: guix-git/doc/guix.texi:27696
  41469. #, no-wrap
  41470. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-ac"
  41471. msgstr ""
  41472. #. type: deftypevr
  41473. #: guix-git/doc/guix.texi:27699
  41474. msgid "Hard disk spin down timeout. One value has to be specified for each declared hard disk."
  41475. msgstr ""
  41476. #. type: deftypevr
  41477. #: guix-git/doc/guix.texi:27704
  41478. #, no-wrap
  41479. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-bat"
  41480. msgstr ""
  41481. #. type: deftypevr
  41482. #: guix-git/doc/guix.texi:27706
  41483. msgid "Same as @code{disk-spindown-timeout-on-ac} but on BAT mode."
  41484. msgstr ""
  41485. #. type: deftypevr
  41486. #: guix-git/doc/guix.texi:27711
  41487. #, no-wrap
  41488. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-iosched"
  41489. msgstr ""
  41490. #. type: deftypevr
  41491. #: guix-git/doc/guix.texi:27715
  41492. 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."
  41493. msgstr ""
  41494. #. type: deftypevr
  41495. #: guix-git/doc/guix.texi:27720
  41496. #, no-wrap
  41497. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-ac"
  41498. msgstr ""
  41499. #. type: deftypevr
  41500. #: guix-git/doc/guix.texi:27723
  41501. msgid "SATA aggressive link power management (ALPM) level. Alternatives are min_power, medium_power, max_performance."
  41502. msgstr ""
  41503. #. type: deftypevr
  41504. #: guix-git/doc/guix.texi:27725
  41505. msgid "Defaults to @samp{\"max_performance\"}."
  41506. msgstr ""
  41507. #. type: deftypevr
  41508. #: guix-git/doc/guix.texi:27728
  41509. #, no-wrap
  41510. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-bat"
  41511. msgstr ""
  41512. #. type: deftypevr
  41513. #: guix-git/doc/guix.texi:27730
  41514. msgid "Same as @code{sata-linkpwr-ac} but on BAT mode."
  41515. msgstr ""
  41516. #. type: deftypevr
  41517. #: guix-git/doc/guix.texi:27732
  41518. msgid "Defaults to @samp{\"min_power\"}."
  41519. msgstr ""
  41520. #. type: deftypevr
  41521. #: guix-git/doc/guix.texi:27735
  41522. #, no-wrap
  41523. msgid "{@code{tlp-configuration} parameter} maybe-string sata-linkpwr-blacklist"
  41524. msgstr ""
  41525. #. type: deftypevr
  41526. #: guix-git/doc/guix.texi:27737
  41527. msgid "Exclude specified SATA host devices for link power management."
  41528. msgstr ""
  41529. #. type: deftypevr
  41530. #: guix-git/doc/guix.texi:27742
  41531. #, no-wrap
  41532. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-ac?"
  41533. msgstr ""
  41534. #. type: deftypevr
  41535. #: guix-git/doc/guix.texi:27745
  41536. msgid "Enable Runtime Power Management for AHCI controller and disks on AC mode."
  41537. msgstr ""
  41538. #. type: deftypevr
  41539. #: guix-git/doc/guix.texi:27750
  41540. #, no-wrap
  41541. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-bat?"
  41542. msgstr ""
  41543. #. type: deftypevr
  41544. #: guix-git/doc/guix.texi:27752
  41545. msgid "Same as @code{ahci-runtime-pm-on-ac} on BAT mode."
  41546. msgstr ""
  41547. #. type: deftypevr
  41548. #: guix-git/doc/guix.texi:27757
  41549. #, no-wrap
  41550. msgid "{@code{tlp-configuration} parameter} non-negative-integer ahci-runtime-pm-timeout"
  41551. msgstr ""
  41552. #. type: deftypevr
  41553. #: guix-git/doc/guix.texi:27759
  41554. msgid "Seconds of inactivity before disk is suspended."
  41555. msgstr ""
  41556. #. type: deftypevr
  41557. #: guix-git/doc/guix.texi:27764
  41558. #, no-wrap
  41559. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-ac"
  41560. msgstr ""
  41561. #. type: deftypevr
  41562. #: guix-git/doc/guix.texi:27767
  41563. msgid "PCI Express Active State Power Management level. Alternatives are default, performance, powersave."
  41564. msgstr ""
  41565. #. type: deftypevr
  41566. #: guix-git/doc/guix.texi:27772
  41567. #, no-wrap
  41568. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-bat"
  41569. msgstr ""
  41570. #. type: deftypevr
  41571. #: guix-git/doc/guix.texi:27774
  41572. msgid "Same as @code{pcie-aspm-ac} but on BAT mode."
  41573. msgstr ""
  41574. #. type: deftypevr
  41575. #: guix-git/doc/guix.texi:27779
  41576. #, no-wrap
  41577. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-ac"
  41578. msgstr ""
  41579. #. type: deftypevr
  41580. #: guix-git/doc/guix.texi:27782
  41581. msgid "Radeon graphics clock speed level. Alternatives are low, mid, high, auto, default."
  41582. msgstr ""
  41583. #. type: deftypevr
  41584. #: guix-git/doc/guix.texi:27784
  41585. msgid "Defaults to @samp{\"high\"}."
  41586. msgstr ""
  41587. #. type: deftypevr
  41588. #: guix-git/doc/guix.texi:27787
  41589. #, no-wrap
  41590. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-bat"
  41591. msgstr ""
  41592. #. type: deftypevr
  41593. #: guix-git/doc/guix.texi:27789
  41594. msgid "Same as @code{radeon-power-ac} but on BAT mode."
  41595. msgstr ""
  41596. #. type: deftypevr
  41597. #: guix-git/doc/guix.texi:27791
  41598. msgid "Defaults to @samp{\"low\"}."
  41599. msgstr ""
  41600. #. type: deftypevr
  41601. #: guix-git/doc/guix.texi:27794
  41602. #, no-wrap
  41603. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-ac"
  41604. msgstr ""
  41605. #. type: deftypevr
  41606. #: guix-git/doc/guix.texi:27797
  41607. msgid "Radeon dynamic power management method (DPM). Alternatives are battery, performance."
  41608. msgstr ""
  41609. #. type: deftypevr
  41610. #: guix-git/doc/guix.texi:27802
  41611. #, no-wrap
  41612. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-bat"
  41613. msgstr ""
  41614. #. type: deftypevr
  41615. #: guix-git/doc/guix.texi:27804
  41616. msgid "Same as @code{radeon-dpm-state-ac} but on BAT mode."
  41617. msgstr ""
  41618. #. type: deftypevr
  41619. #: guix-git/doc/guix.texi:27806
  41620. msgid "Defaults to @samp{\"battery\"}."
  41621. msgstr ""
  41622. #. type: deftypevr
  41623. #: guix-git/doc/guix.texi:27809
  41624. #, no-wrap
  41625. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-ac"
  41626. msgstr ""
  41627. #. type: deftypevr
  41628. #: guix-git/doc/guix.texi:27811
  41629. msgid "Radeon DPM performance level. Alternatives are auto, low, high."
  41630. msgstr ""
  41631. #. type: deftypevr
  41632. #: guix-git/doc/guix.texi:27813 guix-git/doc/guix.texi:27820
  41633. #: guix-git/doc/guix.texi:27894
  41634. msgid "Defaults to @samp{\"auto\"}."
  41635. msgstr ""
  41636. #. type: deftypevr
  41637. #: guix-git/doc/guix.texi:27816
  41638. #, no-wrap
  41639. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-bat"
  41640. msgstr ""
  41641. #. type: deftypevr
  41642. #: guix-git/doc/guix.texi:27818
  41643. msgid "Same as @code{radeon-dpm-perf-ac} but on BAT mode."
  41644. msgstr ""
  41645. #. type: deftypevr
  41646. #: guix-git/doc/guix.texi:27823
  41647. #, no-wrap
  41648. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-ac?"
  41649. msgstr ""
  41650. #. type: deftypevr
  41651. #: guix-git/doc/guix.texi:27825
  41652. msgid "Wifi power saving mode."
  41653. msgstr ""
  41654. #. type: deftypevr
  41655. #: guix-git/doc/guix.texi:27830
  41656. #, no-wrap
  41657. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-bat?"
  41658. msgstr ""
  41659. #. type: deftypevr
  41660. #: guix-git/doc/guix.texi:27832
  41661. msgid "Same as @code{wifi-power-ac?} but on BAT mode."
  41662. msgstr ""
  41663. #. type: deftypevr
  41664. #: guix-git/doc/guix.texi:27837
  41665. #, no-wrap
  41666. msgid "{@code{tlp-configuration} parameter} y-n-boolean wol-disable?"
  41667. msgstr ""
  41668. #. type: deftypevr
  41669. #: guix-git/doc/guix.texi:27839
  41670. msgid "Disable wake on LAN."
  41671. msgstr ""
  41672. #. type: deftypevr
  41673. #: guix-git/doc/guix.texi:27844
  41674. #, no-wrap
  41675. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-ac"
  41676. msgstr ""
  41677. #. type: deftypevr
  41678. #: guix-git/doc/guix.texi:27847
  41679. msgid "Timeout duration in seconds before activating audio power saving on Intel HDA and AC97 devices. A value of 0 disables power saving."
  41680. msgstr ""
  41681. #. type: deftypevr
  41682. #: guix-git/doc/guix.texi:27852
  41683. #, no-wrap
  41684. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-bat"
  41685. msgstr ""
  41686. #. type: deftypevr
  41687. #: guix-git/doc/guix.texi:27854
  41688. msgid "Same as @code{sound-powersave-ac} but on BAT mode."
  41689. msgstr ""
  41690. #. type: deftypevr
  41691. #: guix-git/doc/guix.texi:27859
  41692. #, no-wrap
  41693. msgid "{@code{tlp-configuration} parameter} y-n-boolean sound-power-save-controller?"
  41694. msgstr ""
  41695. #. type: deftypevr
  41696. #: guix-git/doc/guix.texi:27861
  41697. msgid "Disable controller in powersaving mode on Intel HDA devices."
  41698. msgstr ""
  41699. #. type: deftypevr
  41700. #: guix-git/doc/guix.texi:27866
  41701. #, no-wrap
  41702. msgid "{@code{tlp-configuration} parameter} boolean bay-poweroff-on-bat?"
  41703. msgstr ""
  41704. #. type: deftypevr
  41705. #: guix-git/doc/guix.texi:27870
  41706. 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."
  41707. msgstr ""
  41708. #. type: deftypevr
  41709. #: guix-git/doc/guix.texi:27875
  41710. #, no-wrap
  41711. msgid "{@code{tlp-configuration} parameter} string bay-device"
  41712. msgstr ""
  41713. #. type: deftypevr
  41714. #: guix-git/doc/guix.texi:27877
  41715. msgid "Name of the optical drive device to power off."
  41716. msgstr ""
  41717. #. type: deftypevr
  41718. #: guix-git/doc/guix.texi:27879
  41719. msgid "Defaults to @samp{\"sr0\"}."
  41720. msgstr ""
  41721. #. type: deftypevr
  41722. #: guix-git/doc/guix.texi:27882
  41723. #, no-wrap
  41724. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-ac"
  41725. msgstr ""
  41726. #. type: deftypevr
  41727. #: guix-git/doc/guix.texi:27885
  41728. msgid "Runtime Power Management for PCI(e) bus devices. Alternatives are on and auto."
  41729. msgstr ""
  41730. #. type: deftypevr
  41731. #: guix-git/doc/guix.texi:27887
  41732. msgid "Defaults to @samp{\"on\"}."
  41733. msgstr ""
  41734. #. type: deftypevr
  41735. #: guix-git/doc/guix.texi:27890
  41736. #, no-wrap
  41737. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-bat"
  41738. msgstr ""
  41739. #. type: deftypevr
  41740. #: guix-git/doc/guix.texi:27892
  41741. msgid "Same as @code{runtime-pm-ac} but on BAT mode."
  41742. msgstr ""
  41743. #. type: deftypevr
  41744. #: guix-git/doc/guix.texi:27897
  41745. #, no-wrap
  41746. msgid "{@code{tlp-configuration} parameter} boolean runtime-pm-all?"
  41747. msgstr ""
  41748. #. type: deftypevr
  41749. #: guix-git/doc/guix.texi:27900
  41750. msgid "Runtime Power Management for all PCI(e) bus devices, except blacklisted ones."
  41751. msgstr ""
  41752. #. type: deftypevr
  41753. #: guix-git/doc/guix.texi:27905
  41754. #, no-wrap
  41755. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list runtime-pm-blacklist"
  41756. msgstr ""
  41757. #. type: deftypevr
  41758. #: guix-git/doc/guix.texi:27907
  41759. msgid "Exclude specified PCI(e) device addresses from Runtime Power Management."
  41760. msgstr ""
  41761. #. type: deftypevr
  41762. #: guix-git/doc/guix.texi:27912
  41763. #, no-wrap
  41764. msgid "{@code{tlp-configuration} parameter} space-separated-string-list runtime-pm-driver-blacklist"
  41765. msgstr ""
  41766. #. type: deftypevr
  41767. #: guix-git/doc/guix.texi:27915
  41768. msgid "Exclude PCI(e) devices assigned to the specified drivers from Runtime Power Management."
  41769. msgstr ""
  41770. #. type: deftypevr
  41771. #: guix-git/doc/guix.texi:27918
  41772. #, no-wrap
  41773. msgid "{@code{tlp-configuration} parameter} boolean usb-autosuspend?"
  41774. msgstr ""
  41775. #. type: deftypevr
  41776. #: guix-git/doc/guix.texi:27920
  41777. msgid "Enable USB autosuspend feature."
  41778. msgstr ""
  41779. #. type: deftypevr
  41780. #: guix-git/doc/guix.texi:27925
  41781. #, no-wrap
  41782. msgid "{@code{tlp-configuration} parameter} maybe-string usb-blacklist"
  41783. msgstr ""
  41784. #. type: deftypevr
  41785. #: guix-git/doc/guix.texi:27927
  41786. msgid "Exclude specified devices from USB autosuspend."
  41787. msgstr ""
  41788. #. type: deftypevr
  41789. #: guix-git/doc/guix.texi:27932
  41790. #, no-wrap
  41791. msgid "{@code{tlp-configuration} parameter} boolean usb-blacklist-wwan?"
  41792. msgstr ""
  41793. #. type: deftypevr
  41794. #: guix-git/doc/guix.texi:27934
  41795. msgid "Exclude WWAN devices from USB autosuspend."
  41796. msgstr ""
  41797. #. type: deftypevr
  41798. #: guix-git/doc/guix.texi:27939
  41799. #, no-wrap
  41800. msgid "{@code{tlp-configuration} parameter} maybe-string usb-whitelist"
  41801. msgstr ""
  41802. #. type: deftypevr
  41803. #: guix-git/doc/guix.texi:27942
  41804. msgid "Include specified devices into USB autosuspend, even if they are already excluded by the driver or via @code{usb-blacklist-wwan?}."
  41805. msgstr ""
  41806. #. type: deftypevr
  41807. #: guix-git/doc/guix.texi:27947
  41808. #, no-wrap
  41809. msgid "{@code{tlp-configuration} parameter} maybe-boolean usb-autosuspend-disable-on-shutdown?"
  41810. msgstr ""
  41811. #. type: deftypevr
  41812. #: guix-git/doc/guix.texi:27949
  41813. msgid "Enable USB autosuspend before shutdown."
  41814. msgstr ""
  41815. #. type: deftypevr
  41816. #: guix-git/doc/guix.texi:27954
  41817. #, no-wrap
  41818. msgid "{@code{tlp-configuration} parameter} boolean restore-device-state-on-startup?"
  41819. msgstr ""
  41820. #. type: deftypevr
  41821. #: guix-git/doc/guix.texi:27957
  41822. msgid "Restore radio device state (bluetooth, wifi, wwan) from previous shutdown on system startup."
  41823. msgstr ""
  41824. #. type: cindex
  41825. #: guix-git/doc/guix.texi:27962
  41826. #, no-wrap
  41827. msgid "thermald"
  41828. msgstr ""
  41829. #. type: cindex
  41830. #: guix-git/doc/guix.texi:27963
  41831. #, no-wrap
  41832. msgid "CPU frequency scaling with thermald"
  41833. msgstr ""
  41834. #. type: subsubheading
  41835. #: guix-git/doc/guix.texi:27964
  41836. #, no-wrap
  41837. msgid "Thermald daemon"
  41838. msgstr ""
  41839. #. type: Plain text
  41840. #: guix-git/doc/guix.texi:27968
  41841. msgid "The @code{(gnu services pm)} module provides an interface to thermald, a CPU frequency scaling service which helps prevent overheating."
  41842. msgstr ""
  41843. #. type: defvr
  41844. #: guix-git/doc/guix.texi:27969
  41845. #, no-wrap
  41846. msgid "{Scheme Variable} thermald-service-type"
  41847. msgstr ""
  41848. #. type: defvr
  41849. #: guix-git/doc/guix.texi:27974
  41850. 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."
  41851. msgstr ""
  41852. #. type: deftp
  41853. #: guix-git/doc/guix.texi:27976
  41854. #, no-wrap
  41855. msgid "{Data Type} thermald-configuration"
  41856. msgstr ""
  41857. #. type: deftp
  41858. #: guix-git/doc/guix.texi:27978
  41859. msgid "Data type representing the configuration of @code{thermald-service-type}."
  41860. msgstr ""
  41861. #. type: item
  41862. #: guix-git/doc/guix.texi:27980
  41863. #, no-wrap
  41864. msgid "@code{ignore-cpuid-check?} (default: @code{#f})"
  41865. msgstr ""
  41866. #. type: table
  41867. #: guix-git/doc/guix.texi:27982
  41868. msgid "Ignore cpuid check for supported CPU models."
  41869. msgstr ""
  41870. #. type: item
  41871. #: guix-git/doc/guix.texi:27983
  41872. #, no-wrap
  41873. msgid "@code{thermald} (default: @var{thermald})"
  41874. msgstr ""
  41875. #. type: table
  41876. #: guix-git/doc/guix.texi:27985
  41877. msgid "Package object of thermald."
  41878. msgstr ""
  41879. #. type: Plain text
  41880. #: guix-git/doc/guix.texi:27994
  41881. msgid "The @code{(gnu services audio)} module provides a service to start MPD (the Music Player Daemon)."
  41882. msgstr ""
  41883. #. type: cindex
  41884. #: guix-git/doc/guix.texi:27995
  41885. #, no-wrap
  41886. msgid "mpd"
  41887. msgstr ""
  41888. #. type: subsubheading
  41889. #: guix-git/doc/guix.texi:27996
  41890. #, no-wrap
  41891. msgid "Music Player Daemon"
  41892. msgstr ""
  41893. #. type: Plain text
  41894. #: guix-git/doc/guix.texi:28001
  41895. 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."
  41896. msgstr ""
  41897. #. type: Plain text
  41898. #: guix-git/doc/guix.texi:28004
  41899. msgid "The following example shows how one might run @code{mpd} as user @code{\"bob\"} on port @code{6666}. It uses pulseaudio for output."
  41900. msgstr ""
  41901. #. type: lisp
  41902. #: guix-git/doc/guix.texi:28010
  41903. #, no-wrap
  41904. msgid ""
  41905. "(service mpd-service-type\n"
  41906. " (mpd-configuration\n"
  41907. " (user \"bob\")\n"
  41908. " (port \"6666\")))\n"
  41909. msgstr ""
  41910. #. type: defvr
  41911. #: guix-git/doc/guix.texi:28012
  41912. #, no-wrap
  41913. msgid "{Scheme Variable} mpd-service-type"
  41914. msgstr ""
  41915. #. type: defvr
  41916. #: guix-git/doc/guix.texi:28014
  41917. msgid "The service type for @command{mpd}"
  41918. msgstr ""
  41919. #. type: deftp
  41920. #: guix-git/doc/guix.texi:28016
  41921. #, no-wrap
  41922. msgid "{Data Type} mpd-configuration"
  41923. msgstr ""
  41924. #. type: deftp
  41925. #: guix-git/doc/guix.texi:28018
  41926. msgid "Data type representing the configuration of @command{mpd}."
  41927. msgstr ""
  41928. #. type: item
  41929. #: guix-git/doc/guix.texi:28020
  41930. #, no-wrap
  41931. msgid "@code{user} (default: @code{\"mpd\"})"
  41932. msgstr ""
  41933. #. type: table
  41934. #: guix-git/doc/guix.texi:28022
  41935. msgid "The user to run mpd as."
  41936. msgstr ""
  41937. #. type: item
  41938. #: guix-git/doc/guix.texi:28023
  41939. #, no-wrap
  41940. msgid "@code{music-dir} (default: @code{\"~/Music\"})"
  41941. msgstr ""
  41942. #. type: table
  41943. #: guix-git/doc/guix.texi:28025
  41944. msgid "The directory to scan for music files."
  41945. msgstr ""
  41946. #. type: item
  41947. #: guix-git/doc/guix.texi:28026
  41948. #, no-wrap
  41949. msgid "@code{playlist-dir} (default: @code{\"~/.mpd/playlists\"})"
  41950. msgstr ""
  41951. #. type: table
  41952. #: guix-git/doc/guix.texi:28028
  41953. msgid "The directory to store playlists."
  41954. msgstr ""
  41955. #. type: item
  41956. #: guix-git/doc/guix.texi:28029
  41957. #, no-wrap
  41958. msgid "@code{db-file} (default: @code{\"~/.mpd/tag_cache\"})"
  41959. msgstr ""
  41960. #. type: table
  41961. #: guix-git/doc/guix.texi:28031
  41962. msgid "The location of the music database."
  41963. msgstr ""
  41964. #. type: item
  41965. #: guix-git/doc/guix.texi:28032
  41966. #, no-wrap
  41967. msgid "@code{state-file} (default: @code{\"~/.mpd/state\"})"
  41968. msgstr ""
  41969. #. type: table
  41970. #: guix-git/doc/guix.texi:28034
  41971. msgid "The location of the file that stores current MPD's state."
  41972. msgstr ""
  41973. #. type: item
  41974. #: guix-git/doc/guix.texi:28035
  41975. #, no-wrap
  41976. msgid "@code{sticker-file} (default: @code{\"~/.mpd/sticker.sql\"})"
  41977. msgstr ""
  41978. #. type: table
  41979. #: guix-git/doc/guix.texi:28037
  41980. msgid "The location of the sticker database."
  41981. msgstr ""
  41982. #. type: item
  41983. #: guix-git/doc/guix.texi:28038
  41984. #, no-wrap
  41985. msgid "@code{port} (default: @code{\"6600\"})"
  41986. msgstr ""
  41987. #. type: table
  41988. #: guix-git/doc/guix.texi:28040
  41989. msgid "The port to run mpd on."
  41990. msgstr ""
  41991. #. type: item
  41992. #: guix-git/doc/guix.texi:28041
  41993. #, no-wrap
  41994. msgid "@code{address} (default: @code{\"any\"})"
  41995. msgstr ""
  41996. #. type: table
  41997. #: guix-git/doc/guix.texi:28044
  41998. msgid "The address that mpd will bind to. To use a Unix domain socket, an absolute path can be specified here."
  41999. msgstr ""
  42000. #. type: item
  42001. #: guix-git/doc/guix.texi:28045
  42002. #, fuzzy, no-wrap
  42003. msgid "@code{outputs} (default: @code{\"(list (mpd-output))\"})"
  42004. msgstr "@code{features} (@code{'()})"
  42005. #. type: table
  42006. #: guix-git/doc/guix.texi:28047
  42007. msgid "The audio outputs that MPD can use. By default this is a single output using pulseaudio."
  42008. msgstr ""
  42009. #. type: deftp
  42010. #: guix-git/doc/guix.texi:28051
  42011. #, no-wrap
  42012. msgid "{Data Type} mpd-output"
  42013. msgstr ""
  42014. #. type: deftp
  42015. #: guix-git/doc/guix.texi:28053
  42016. msgid "Data type representing an @command{mpd} audio output."
  42017. msgstr ""
  42018. #. type: item
  42019. #: guix-git/doc/guix.texi:28055
  42020. #, fuzzy, no-wrap
  42021. msgid "@code{name} (default: @code{\"MPD\"})"
  42022. msgstr "@code{gnome}(默认值:@code{gnome})"
  42023. #. type: table
  42024. #: guix-git/doc/guix.texi:28057
  42025. msgid "The name of the audio output."
  42026. msgstr ""
  42027. #. type: item
  42028. #: guix-git/doc/guix.texi:28058
  42029. #, fuzzy, no-wrap
  42030. msgid "@code{type} (default: @code{\"pulse\"})"
  42031. msgstr "@code{mate}(默认值:@code{mate})"
  42032. #. type: table
  42033. #: guix-git/doc/guix.texi:28060
  42034. msgid "The type of audio output."
  42035. msgstr ""
  42036. #. type: item
  42037. #: guix-git/doc/guix.texi:28061
  42038. #, fuzzy, no-wrap
  42039. msgid "@code{enabled?} (default: @code{#t})"
  42040. msgstr "@code{speed}(默认值:@code{1.0})"
  42041. #. type: table
  42042. #: guix-git/doc/guix.texi:28066
  42043. 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."
  42044. msgstr ""
  42045. #. type: item
  42046. #: guix-git/doc/guix.texi:28067
  42047. #, fuzzy, no-wrap
  42048. msgid "@code{tags?} (default: @code{#t})"
  42049. msgstr "@code{mate}(默认值:@code{mate})"
  42050. #. type: table
  42051. #: guix-git/doc/guix.texi:28071
  42052. 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."
  42053. msgstr ""
  42054. #. type: item
  42055. #: guix-git/doc/guix.texi:28072
  42056. #, fuzzy, no-wrap
  42057. msgid "@code{always-on?} (default: @code{#f})"
  42058. msgstr "@code{challenge}(默认值:@code{#f})"
  42059. #. type: table
  42060. #: guix-git/doc/guix.texi:28076
  42061. 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."
  42062. msgstr ""
  42063. #. type: code{#1}
  42064. #: guix-git/doc/guix.texi:28077
  42065. #, no-wrap
  42066. msgid "mixer-type"
  42067. msgstr ""
  42068. #. type: table
  42069. #: guix-git/doc/guix.texi:28083
  42070. 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})."
  42071. msgstr ""
  42072. #. type: table
  42073. #: guix-git/doc/guix.texi:28087
  42074. msgid "An association list of option symbols to string values to be appended to the audio output configuration."
  42075. msgstr ""
  42076. #. type: Plain text
  42077. #: guix-git/doc/guix.texi:28093
  42078. msgid "The following example shows a configuration of @code{mpd} that provides an HTTP audio streaming output."
  42079. msgstr ""
  42080. #. type: lisp
  42081. #: guix-git/doc/guix.texi:28105
  42082. #, no-wrap
  42083. msgid ""
  42084. "(service mpd-service-type\n"
  42085. " (mpd-configuration\n"
  42086. " (outputs\n"
  42087. " (list (mpd-output\n"
  42088. " (name \"streaming\")\n"
  42089. " (type \"httpd\")\n"
  42090. " (mixer-type 'null)\n"
  42091. " (extra-options\n"
  42092. " `((encoder . \"vorbis\")\n"
  42093. " (port . \"8080\"))))))))\n"
  42094. msgstr ""
  42095. #. type: Plain text
  42096. #: guix-git/doc/guix.texi:28114
  42097. msgid "The @code{(gnu services virtualization)} module provides services for the libvirt and virtlog daemons, as well as other virtualization-related services."
  42098. msgstr ""
  42099. #. type: subsubheading
  42100. #: guix-git/doc/guix.texi:28115
  42101. #, no-wrap
  42102. msgid "Libvirt daemon"
  42103. msgstr ""
  42104. #. type: Plain text
  42105. #: guix-git/doc/guix.texi:28120
  42106. 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."
  42107. msgstr ""
  42108. #. type: deffn
  42109. #: guix-git/doc/guix.texi:28121
  42110. #, no-wrap
  42111. msgid "{Scheme Variable} libvirt-service-type"
  42112. msgstr ""
  42113. #. type: deffn
  42114. #: guix-git/doc/guix.texi:28124
  42115. msgid "This is the type of the @uref{https://libvirt.org, libvirt daemon}. Its value must be a @code{libvirt-configuration}."
  42116. msgstr ""
  42117. #. type: lisp
  42118. #: guix-git/doc/guix.texi:28130
  42119. #, no-wrap
  42120. msgid ""
  42121. "(service libvirt-service-type\n"
  42122. " (libvirt-configuration\n"
  42123. " (unix-sock-group \"libvirt\")\n"
  42124. " (tls-port \"16555\")))\n"
  42125. msgstr ""
  42126. #. type: Plain text
  42127. #: guix-git/doc/guix.texi:28135
  42128. msgid "Available @code{libvirt-configuration} fields are:"
  42129. msgstr ""
  42130. #. type: deftypevr
  42131. #: guix-git/doc/guix.texi:28136
  42132. #, no-wrap
  42133. msgid "{@code{libvirt-configuration} parameter} package libvirt"
  42134. msgstr ""
  42135. #. type: deftypevr
  42136. #: guix-git/doc/guix.texi:28138
  42137. msgid "Libvirt package."
  42138. msgstr ""
  42139. #. type: deftypevr
  42140. #: guix-git/doc/guix.texi:28141
  42141. #, no-wrap
  42142. msgid "{@code{libvirt-configuration} parameter} boolean listen-tls?"
  42143. msgstr ""
  42144. #. type: deftypevr
  42145. #: guix-git/doc/guix.texi:28144
  42146. msgid "Flag listening for secure TLS connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  42147. msgstr ""
  42148. #. type: deftypevr
  42149. #: guix-git/doc/guix.texi:28147
  42150. msgid "It is necessary to setup a CA and issue server certificates before using this capability."
  42151. msgstr ""
  42152. #. type: deftypevr
  42153. #: guix-git/doc/guix.texi:28152
  42154. #, no-wrap
  42155. msgid "{@code{libvirt-configuration} parameter} boolean listen-tcp?"
  42156. msgstr ""
  42157. #. type: deftypevr
  42158. #: guix-git/doc/guix.texi:28155
  42159. msgid "Listen for unencrypted TCP connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  42160. msgstr ""
  42161. #. type: deftypevr
  42162. #: guix-git/doc/guix.texi:28159
  42163. 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)."
  42164. msgstr ""
  42165. #. type: deftypevr
  42166. #: guix-git/doc/guix.texi:28164
  42167. #, no-wrap
  42168. msgid "{@code{libvirt-configuration} parameter} string tls-port"
  42169. msgstr ""
  42170. #. type: deftypevr
  42171. #: guix-git/doc/guix.texi:28167
  42172. msgid "Port for accepting secure TLS connections. This can be a port number, or service name."
  42173. msgstr ""
  42174. #. type: deftypevr
  42175. #: guix-git/doc/guix.texi:28169
  42176. msgid "Defaults to @samp{\"16514\"}."
  42177. msgstr ""
  42178. #. type: deftypevr
  42179. #: guix-git/doc/guix.texi:28172
  42180. #, no-wrap
  42181. msgid "{@code{libvirt-configuration} parameter} string tcp-port"
  42182. msgstr ""
  42183. #. type: deftypevr
  42184. #: guix-git/doc/guix.texi:28175
  42185. msgid "Port for accepting insecure TCP connections. This can be a port number, or service name."
  42186. msgstr ""
  42187. #. type: deftypevr
  42188. #: guix-git/doc/guix.texi:28177
  42189. msgid "Defaults to @samp{\"16509\"}."
  42190. msgstr ""
  42191. #. type: deftypevr
  42192. #: guix-git/doc/guix.texi:28180
  42193. #, no-wrap
  42194. msgid "{@code{libvirt-configuration} parameter} string listen-addr"
  42195. msgstr ""
  42196. #. type: deftypevr
  42197. #: guix-git/doc/guix.texi:28182
  42198. msgid "IP address or hostname used for client connections."
  42199. msgstr ""
  42200. #. type: deftypevr
  42201. #: guix-git/doc/guix.texi:28187
  42202. #, no-wrap
  42203. msgid "{@code{libvirt-configuration} parameter} boolean mdns-adv?"
  42204. msgstr ""
  42205. #. type: deftypevr
  42206. #: guix-git/doc/guix.texi:28189
  42207. msgid "Flag toggling mDNS advertisement of the libvirt service."
  42208. msgstr ""
  42209. #. type: deftypevr
  42210. #: guix-git/doc/guix.texi:28192
  42211. msgid "Alternatively can disable for all services on a host by stopping the Avahi daemon."
  42212. msgstr ""
  42213. #. type: deftypevr
  42214. #: guix-git/doc/guix.texi:28197
  42215. #, no-wrap
  42216. msgid "{@code{libvirt-configuration} parameter} string mdns-name"
  42217. msgstr ""
  42218. #. type: deftypevr
  42219. #: guix-git/doc/guix.texi:28200
  42220. msgid "Default mDNS advertisement name. This must be unique on the immediate broadcast network."
  42221. msgstr ""
  42222. #. type: deftypevr
  42223. #: guix-git/doc/guix.texi:28202
  42224. msgid "Defaults to @samp{\"Virtualization Host <hostname>\"}."
  42225. msgstr ""
  42226. #. type: deftypevr
  42227. #: guix-git/doc/guix.texi:28205
  42228. #, no-wrap
  42229. msgid "{@code{libvirt-configuration} parameter} string unix-sock-group"
  42230. msgstr ""
  42231. #. type: deftypevr
  42232. #: guix-git/doc/guix.texi:28209
  42233. msgid "UNIX domain socket group ownership. This can be used to allow a 'trusted' set of users access to management capabilities without becoming root."
  42234. msgstr ""
  42235. #. type: deftypevr
  42236. #: guix-git/doc/guix.texi:28214
  42237. #, no-wrap
  42238. msgid "{@code{libvirt-configuration} parameter} string unix-sock-ro-perms"
  42239. msgstr ""
  42240. #. type: deftypevr
  42241. #: guix-git/doc/guix.texi:28217
  42242. msgid "UNIX socket permissions for the R/O socket. This is used for monitoring VM status only."
  42243. msgstr ""
  42244. #. type: deftypevr
  42245. #: guix-git/doc/guix.texi:28219 guix-git/doc/guix.texi:28237
  42246. msgid "Defaults to @samp{\"0777\"}."
  42247. msgstr ""
  42248. #. type: deftypevr
  42249. #: guix-git/doc/guix.texi:28222
  42250. #, no-wrap
  42251. msgid "{@code{libvirt-configuration} parameter} string unix-sock-rw-perms"
  42252. msgstr ""
  42253. #. type: deftypevr
  42254. #: guix-git/doc/guix.texi:28226
  42255. 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)"
  42256. msgstr ""
  42257. #. type: deftypevr
  42258. #: guix-git/doc/guix.texi:28228
  42259. msgid "Defaults to @samp{\"0770\"}."
  42260. msgstr ""
  42261. #. type: deftypevr
  42262. #: guix-git/doc/guix.texi:28231
  42263. #, no-wrap
  42264. msgid "{@code{libvirt-configuration} parameter} string unix-sock-admin-perms"
  42265. msgstr ""
  42266. #. type: deftypevr
  42267. #: guix-git/doc/guix.texi:28235
  42268. 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."
  42269. msgstr ""
  42270. #. type: deftypevr
  42271. #: guix-git/doc/guix.texi:28240
  42272. #, no-wrap
  42273. msgid "{@code{libvirt-configuration} parameter} string unix-sock-dir"
  42274. msgstr ""
  42275. #. type: deftypevr
  42276. #: guix-git/doc/guix.texi:28242
  42277. msgid "The directory in which sockets will be found/created."
  42278. msgstr ""
  42279. #. type: deftypevr
  42280. #: guix-git/doc/guix.texi:28244
  42281. msgid "Defaults to @samp{\"/var/run/libvirt\"}."
  42282. msgstr ""
  42283. #. type: deftypevr
  42284. #: guix-git/doc/guix.texi:28247
  42285. #, no-wrap
  42286. msgid "{@code{libvirt-configuration} parameter} string auth-unix-ro"
  42287. msgstr ""
  42288. #. type: deftypevr
  42289. #: guix-git/doc/guix.texi:28250
  42290. msgid "Authentication scheme for UNIX read-only sockets. By default socket permissions allow anyone to connect"
  42291. msgstr ""
  42292. #. type: deftypevr
  42293. #: guix-git/doc/guix.texi:28252 guix-git/doc/guix.texi:28261
  42294. msgid "Defaults to @samp{\"polkit\"}."
  42295. msgstr ""
  42296. #. type: deftypevr
  42297. #: guix-git/doc/guix.texi:28255
  42298. #, no-wrap
  42299. msgid "{@code{libvirt-configuration} parameter} string auth-unix-rw"
  42300. msgstr ""
  42301. #. type: deftypevr
  42302. #: guix-git/doc/guix.texi:28259
  42303. 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."
  42304. msgstr ""
  42305. #. type: deftypevr
  42306. #: guix-git/doc/guix.texi:28264
  42307. #, no-wrap
  42308. msgid "{@code{libvirt-configuration} parameter} string auth-tcp"
  42309. msgstr ""
  42310. #. type: deftypevr
  42311. #: guix-git/doc/guix.texi:28268
  42312. 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."
  42313. msgstr ""
  42314. #. type: deftypevr
  42315. #: guix-git/doc/guix.texi:28270
  42316. msgid "Defaults to @samp{\"sasl\"}."
  42317. msgstr ""
  42318. #. type: deftypevr
  42319. #: guix-git/doc/guix.texi:28273
  42320. #, no-wrap
  42321. msgid "{@code{libvirt-configuration} parameter} string auth-tls"
  42322. msgstr ""
  42323. #. type: deftypevr
  42324. #: guix-git/doc/guix.texi:28277
  42325. msgid "Authentication scheme for TLS sockets. TLS sockets already have encryption provided by the TLS layer, and limited authentication is done by certificates."
  42326. msgstr ""
  42327. #. type: deftypevr
  42328. #: guix-git/doc/guix.texi:28280
  42329. msgid "It is possible to make use of any SASL authentication mechanism as well, by using 'sasl' for this option"
  42330. msgstr ""
  42331. #. type: deftypevr
  42332. #: guix-git/doc/guix.texi:28282
  42333. msgid "Defaults to @samp{\"none\"}."
  42334. msgstr ""
  42335. #. type: deftypevr
  42336. #: guix-git/doc/guix.texi:28285
  42337. #, no-wrap
  42338. msgid "{@code{libvirt-configuration} parameter} optional-list access-drivers"
  42339. msgstr ""
  42340. #. type: deftypevr
  42341. #: guix-git/doc/guix.texi:28287
  42342. msgid "API access control scheme."
  42343. msgstr ""
  42344. #. type: deftypevr
  42345. #: guix-git/doc/guix.texi:28290
  42346. msgid "By default an authenticated user is allowed access to all APIs. Access drivers can place restrictions on this."
  42347. msgstr ""
  42348. #. type: deftypevr
  42349. #: guix-git/doc/guix.texi:28295
  42350. #, no-wrap
  42351. msgid "{@code{libvirt-configuration} parameter} string key-file"
  42352. msgstr ""
  42353. #. type: deftypevr
  42354. #: guix-git/doc/guix.texi:28298
  42355. msgid "Server key file path. If set to an empty string, then no private key is loaded."
  42356. msgstr ""
  42357. #. type: deftypevr
  42358. #: guix-git/doc/guix.texi:28303
  42359. #, no-wrap
  42360. msgid "{@code{libvirt-configuration} parameter} string cert-file"
  42361. msgstr ""
  42362. #. type: deftypevr
  42363. #: guix-git/doc/guix.texi:28306
  42364. msgid "Server key file path. If set to an empty string, then no certificate is loaded."
  42365. msgstr ""
  42366. #. type: deftypevr
  42367. #: guix-git/doc/guix.texi:28311
  42368. #, no-wrap
  42369. msgid "{@code{libvirt-configuration} parameter} string ca-file"
  42370. msgstr ""
  42371. #. type: deftypevr
  42372. #: guix-git/doc/guix.texi:28314
  42373. msgid "Server key file path. If set to an empty string, then no CA certificate is loaded."
  42374. msgstr ""
  42375. #. type: deftypevr
  42376. #: guix-git/doc/guix.texi:28319
  42377. #, no-wrap
  42378. msgid "{@code{libvirt-configuration} parameter} string crl-file"
  42379. msgstr ""
  42380. #. type: deftypevr
  42381. #: guix-git/doc/guix.texi:28322
  42382. msgid "Certificate revocation list path. If set to an empty string, then no CRL is loaded."
  42383. msgstr ""
  42384. #. type: deftypevr
  42385. #: guix-git/doc/guix.texi:28327
  42386. #, no-wrap
  42387. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-sanity-cert"
  42388. msgstr ""
  42389. #. type: deftypevr
  42390. #: guix-git/doc/guix.texi:28329
  42391. msgid "Disable verification of our own server certificates."
  42392. msgstr ""
  42393. #. type: deftypevr
  42394. #: guix-git/doc/guix.texi:28332
  42395. msgid "When libvirtd starts it performs some sanity checks against its own certificates."
  42396. msgstr ""
  42397. #. type: deftypevr
  42398. #: guix-git/doc/guix.texi:28337
  42399. #, no-wrap
  42400. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-verify-cert"
  42401. msgstr ""
  42402. #. type: deftypevr
  42403. #: guix-git/doc/guix.texi:28339
  42404. msgid "Disable verification of client certificates."
  42405. msgstr ""
  42406. #. type: deftypevr
  42407. #: guix-git/doc/guix.texi:28343
  42408. msgid "Client certificate verification is the primary authentication mechanism. Any client which does not present a certificate signed by the CA will be rejected."
  42409. msgstr ""
  42410. #. type: deftypevr
  42411. #: guix-git/doc/guix.texi:28348
  42412. #, no-wrap
  42413. msgid "{@code{libvirt-configuration} parameter} optional-list tls-allowed-dn-list"
  42414. msgstr ""
  42415. #. type: deftypevr
  42416. #: guix-git/doc/guix.texi:28350
  42417. msgid "Whitelist of allowed x509 Distinguished Name."
  42418. msgstr ""
  42419. #. type: deftypevr
  42420. #: guix-git/doc/guix.texi:28355
  42421. #, no-wrap
  42422. msgid "{@code{libvirt-configuration} parameter} optional-list sasl-allowed-usernames"
  42423. msgstr ""
  42424. #. type: deftypevr
  42425. #: guix-git/doc/guix.texi:28358
  42426. msgid "Whitelist of allowed SASL usernames. The format for username depends on the SASL authentication mechanism."
  42427. msgstr ""
  42428. #. type: deftypevr
  42429. #: guix-git/doc/guix.texi:28363
  42430. #, no-wrap
  42431. msgid "{@code{libvirt-configuration} parameter} string tls-priority"
  42432. msgstr ""
  42433. #. type: deftypevr
  42434. #: guix-git/doc/guix.texi:28367
  42435. 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."
  42436. msgstr ""
  42437. #. type: deftypevr
  42438. #: guix-git/doc/guix.texi:28369
  42439. msgid "Defaults to @samp{\"NORMAL\"}."
  42440. msgstr ""
  42441. #. type: deftypevr
  42442. #: guix-git/doc/guix.texi:28372
  42443. #, no-wrap
  42444. msgid "{@code{libvirt-configuration} parameter} integer max-clients"
  42445. msgstr ""
  42446. #. type: deftypevr
  42447. #: guix-git/doc/guix.texi:28375 guix-git/doc/guix.texi:28799
  42448. msgid "Maximum number of concurrent client connections to allow over all sockets combined."
  42449. msgstr ""
  42450. #. type: deftypevr
  42451. #: guix-git/doc/guix.texi:28377
  42452. msgid "Defaults to @samp{5000}."
  42453. msgstr ""
  42454. #. type: deftypevr
  42455. #: guix-git/doc/guix.texi:28380
  42456. #, no-wrap
  42457. msgid "{@code{libvirt-configuration} parameter} integer max-queued-clients"
  42458. msgstr ""
  42459. #. type: deftypevr
  42460. #: guix-git/doc/guix.texi:28384
  42461. 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."
  42462. msgstr ""
  42463. #. type: deftypevr
  42464. #: guix-git/doc/guix.texi:28389
  42465. #, no-wrap
  42466. msgid "{@code{libvirt-configuration} parameter} integer max-anonymous-clients"
  42467. msgstr ""
  42468. #. type: deftypevr
  42469. #: guix-git/doc/guix.texi:28392
  42470. msgid "Maximum length of queue of accepted but not yet authenticated clients. Set this to zero to turn this feature off"
  42471. msgstr ""
  42472. #. type: deftypevr
  42473. #: guix-git/doc/guix.texi:28394 guix-git/doc/guix.texi:28412
  42474. #: guix-git/doc/guix.texi:28428
  42475. msgid "Defaults to @samp{20}."
  42476. msgstr ""
  42477. #. type: deftypevr
  42478. #: guix-git/doc/guix.texi:28397
  42479. #, no-wrap
  42480. msgid "{@code{libvirt-configuration} parameter} integer min-workers"
  42481. msgstr ""
  42482. #. type: deftypevr
  42483. #: guix-git/doc/guix.texi:28399
  42484. msgid "Number of workers to start up initially."
  42485. msgstr ""
  42486. #. type: deftypevr
  42487. #: guix-git/doc/guix.texi:28404
  42488. #, no-wrap
  42489. msgid "{@code{libvirt-configuration} parameter} integer max-workers"
  42490. msgstr ""
  42491. #. type: deftypevr
  42492. #: guix-git/doc/guix.texi:28406
  42493. msgid "Maximum number of worker threads."
  42494. msgstr ""
  42495. #. type: deftypevr
  42496. #: guix-git/doc/guix.texi:28410
  42497. 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."
  42498. msgstr ""
  42499. #. type: deftypevr
  42500. #: guix-git/doc/guix.texi:28415
  42501. #, no-wrap
  42502. msgid "{@code{libvirt-configuration} parameter} integer prio-workers"
  42503. msgstr ""
  42504. #. type: deftypevr
  42505. #: guix-git/doc/guix.texi:28419
  42506. 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."
  42507. msgstr ""
  42508. #. type: deftypevr
  42509. #: guix-git/doc/guix.texi:28424
  42510. #, no-wrap
  42511. msgid "{@code{libvirt-configuration} parameter} integer max-requests"
  42512. msgstr ""
  42513. #. type: deftypevr
  42514. #: guix-git/doc/guix.texi:28426
  42515. msgid "Total global limit on concurrent RPC calls."
  42516. msgstr ""
  42517. #. type: deftypevr
  42518. #: guix-git/doc/guix.texi:28431
  42519. #, no-wrap
  42520. msgid "{@code{libvirt-configuration} parameter} integer max-client-requests"
  42521. msgstr ""
  42522. #. type: deftypevr
  42523. #: guix-git/doc/guix.texi:28435
  42524. 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."
  42525. msgstr ""
  42526. #. type: deftypevr
  42527. #: guix-git/doc/guix.texi:28440
  42528. #, no-wrap
  42529. msgid "{@code{libvirt-configuration} parameter} integer admin-min-workers"
  42530. msgstr ""
  42531. #. type: deftypevr
  42532. #: guix-git/doc/guix.texi:28442
  42533. msgid "Same as @code{min-workers} but for the admin interface."
  42534. msgstr ""
  42535. #. type: deftypevr
  42536. #: guix-git/doc/guix.texi:28447
  42537. #, no-wrap
  42538. msgid "{@code{libvirt-configuration} parameter} integer admin-max-workers"
  42539. msgstr ""
  42540. #. type: deftypevr
  42541. #: guix-git/doc/guix.texi:28449
  42542. msgid "Same as @code{max-workers} but for the admin interface."
  42543. msgstr ""
  42544. #. type: deftypevr
  42545. #: guix-git/doc/guix.texi:28454
  42546. #, no-wrap
  42547. msgid "{@code{libvirt-configuration} parameter} integer admin-max-clients"
  42548. msgstr ""
  42549. #. type: deftypevr
  42550. #: guix-git/doc/guix.texi:28456
  42551. msgid "Same as @code{max-clients} but for the admin interface."
  42552. msgstr ""
  42553. #. type: deftypevr
  42554. #: guix-git/doc/guix.texi:28461
  42555. #, no-wrap
  42556. msgid "{@code{libvirt-configuration} parameter} integer admin-max-queued-clients"
  42557. msgstr ""
  42558. #. type: deftypevr
  42559. #: guix-git/doc/guix.texi:28463
  42560. msgid "Same as @code{max-queued-clients} but for the admin interface."
  42561. msgstr ""
  42562. #. type: deftypevr
  42563. #: guix-git/doc/guix.texi:28468
  42564. #, no-wrap
  42565. msgid "{@code{libvirt-configuration} parameter} integer admin-max-client-requests"
  42566. msgstr ""
  42567. #. type: deftypevr
  42568. #: guix-git/doc/guix.texi:28470
  42569. msgid "Same as @code{max-client-requests} but for the admin interface."
  42570. msgstr ""
  42571. #. type: deftypevr
  42572. #: guix-git/doc/guix.texi:28475
  42573. #, no-wrap
  42574. msgid "{@code{libvirt-configuration} parameter} integer log-level"
  42575. msgstr ""
  42576. #. type: deftypevr
  42577. #: guix-git/doc/guix.texi:28477 guix-git/doc/guix.texi:28701
  42578. msgid "Logging level. 4 errors, 3 warnings, 2 information, 1 debug."
  42579. msgstr ""
  42580. #. type: deftypevr
  42581. #: guix-git/doc/guix.texi:28482
  42582. #, no-wrap
  42583. msgid "{@code{libvirt-configuration} parameter} string log-filters"
  42584. msgstr ""
  42585. #. type: deftypevr
  42586. #: guix-git/doc/guix.texi:28484 guix-git/doc/guix.texi:28708
  42587. msgid "Logging filters."
  42588. msgstr ""
  42589. #. type: deftypevr
  42590. #: guix-git/doc/guix.texi:28487
  42591. msgid "A filter allows to select a different logging level for a given category of logs. The format for a filter is one of:"
  42592. msgstr ""
  42593. #. type: itemize
  42594. #: guix-git/doc/guix.texi:28491 guix-git/doc/guix.texi:28715
  42595. msgid "x:name"
  42596. msgstr ""
  42597. #. type: itemize
  42598. #: guix-git/doc/guix.texi:28494 guix-git/doc/guix.texi:28718
  42599. msgid "x:+name"
  42600. msgstr ""
  42601. #. type: deftypevr
  42602. #: guix-git/doc/guix.texi:28505
  42603. 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:"
  42604. msgstr ""
  42605. #. type: itemize
  42606. #: guix-git/doc/guix.texi:28509 guix-git/doc/guix.texi:28554
  42607. #: guix-git/doc/guix.texi:28732 guix-git/doc/guix.texi:28777
  42608. msgid "1: DEBUG"
  42609. msgstr ""
  42610. #. type: itemize
  42611. #: guix-git/doc/guix.texi:28512 guix-git/doc/guix.texi:28557
  42612. #: guix-git/doc/guix.texi:28735 guix-git/doc/guix.texi:28780
  42613. msgid "2: INFO"
  42614. msgstr ""
  42615. #. type: itemize
  42616. #: guix-git/doc/guix.texi:28515 guix-git/doc/guix.texi:28560
  42617. #: guix-git/doc/guix.texi:28738 guix-git/doc/guix.texi:28783
  42618. msgid "3: WARNING"
  42619. msgstr ""
  42620. #. type: itemize
  42621. #: guix-git/doc/guix.texi:28518 guix-git/doc/guix.texi:28563
  42622. #: guix-git/doc/guix.texi:28741 guix-git/doc/guix.texi:28786
  42623. msgid "4: ERROR"
  42624. msgstr ""
  42625. #. type: deftypevr
  42626. #: guix-git/doc/guix.texi:28523 guix-git/doc/guix.texi:28746
  42627. msgid "Multiple filters can be defined in a single filters statement, they just need to be separated by spaces."
  42628. msgstr ""
  42629. #. type: deftypevr
  42630. #: guix-git/doc/guix.texi:28525 guix-git/doc/guix.texi:28748
  42631. msgid "Defaults to @samp{\"3:remote 4:event\"}."
  42632. msgstr ""
  42633. #. type: deftypevr
  42634. #: guix-git/doc/guix.texi:28528
  42635. #, no-wrap
  42636. msgid "{@code{libvirt-configuration} parameter} string log-outputs"
  42637. msgstr ""
  42638. #. type: deftypevr
  42639. #: guix-git/doc/guix.texi:28530 guix-git/doc/guix.texi:28753
  42640. msgid "Logging outputs."
  42641. msgstr ""
  42642. #. type: deftypevr
  42643. #: guix-git/doc/guix.texi:28533
  42644. msgid "An output is one of the places to save logging information. The format for an output can be:"
  42645. msgstr ""
  42646. #. type: item
  42647. #: guix-git/doc/guix.texi:28535 guix-git/doc/guix.texi:28758
  42648. #, no-wrap
  42649. msgid "x:stderr"
  42650. msgstr ""
  42651. #. type: table
  42652. #: guix-git/doc/guix.texi:28537 guix-git/doc/guix.texi:28760
  42653. msgid "output goes to stderr"
  42654. msgstr ""
  42655. #. type: item
  42656. #: guix-git/doc/guix.texi:28538 guix-git/doc/guix.texi:28761
  42657. #, no-wrap
  42658. msgid "x:syslog:name"
  42659. msgstr ""
  42660. #. type: table
  42661. #: guix-git/doc/guix.texi:28540 guix-git/doc/guix.texi:28763
  42662. msgid "use syslog for the output and use the given name as the ident"
  42663. msgstr ""
  42664. #. type: item
  42665. #: guix-git/doc/guix.texi:28541 guix-git/doc/guix.texi:28764
  42666. #, no-wrap
  42667. msgid "x:file:file_path"
  42668. msgstr ""
  42669. #. type: table
  42670. #: guix-git/doc/guix.texi:28543 guix-git/doc/guix.texi:28766
  42671. msgid "output to a file, with the given filepath"
  42672. msgstr ""
  42673. #. type: item
  42674. #: guix-git/doc/guix.texi:28544 guix-git/doc/guix.texi:28767
  42675. #, no-wrap
  42676. msgid "x:journald"
  42677. msgstr ""
  42678. #. type: table
  42679. #: guix-git/doc/guix.texi:28546 guix-git/doc/guix.texi:28769
  42680. msgid "output to journald logging system"
  42681. msgstr ""
  42682. #. type: deftypevr
  42683. #: guix-git/doc/guix.texi:28550 guix-git/doc/guix.texi:28773
  42684. msgid "In all case the x prefix is the minimal level, acting as a filter"
  42685. msgstr ""
  42686. #. type: deftypevr
  42687. #: guix-git/doc/guix.texi:28568 guix-git/doc/guix.texi:28791
  42688. msgid "Multiple outputs can be defined, they just need to be separated by spaces."
  42689. msgstr ""
  42690. #. type: deftypevr
  42691. #: guix-git/doc/guix.texi:28570 guix-git/doc/guix.texi:28793
  42692. msgid "Defaults to @samp{\"3:stderr\"}."
  42693. msgstr ""
  42694. #. type: deftypevr
  42695. #: guix-git/doc/guix.texi:28573
  42696. #, no-wrap
  42697. msgid "{@code{libvirt-configuration} parameter} integer audit-level"
  42698. msgstr ""
  42699. #. type: deftypevr
  42700. #: guix-git/doc/guix.texi:28575
  42701. msgid "Allows usage of the auditing subsystem to be altered"
  42702. msgstr ""
  42703. #. type: itemize
  42704. #: guix-git/doc/guix.texi:28579
  42705. msgid "0: disable all auditing"
  42706. msgstr ""
  42707. #. type: itemize
  42708. #: guix-git/doc/guix.texi:28582
  42709. msgid "1: enable auditing, only if enabled on host"
  42710. msgstr ""
  42711. #. type: itemize
  42712. #: guix-git/doc/guix.texi:28585
  42713. msgid "2: enable auditing, and exit if disabled on host."
  42714. msgstr ""
  42715. #. type: deftypevr
  42716. #: guix-git/doc/guix.texi:28592
  42717. #, no-wrap
  42718. msgid "{@code{libvirt-configuration} parameter} boolean audit-logging"
  42719. msgstr ""
  42720. #. type: deftypevr
  42721. #: guix-git/doc/guix.texi:28594
  42722. msgid "Send audit messages via libvirt logging infrastructure."
  42723. msgstr ""
  42724. #. type: deftypevr
  42725. #: guix-git/doc/guix.texi:28599
  42726. #, no-wrap
  42727. msgid "{@code{libvirt-configuration} parameter} optional-string host-uuid"
  42728. msgstr ""
  42729. #. type: deftypevr
  42730. #: guix-git/doc/guix.texi:28601
  42731. msgid "Host UUID@. UUID must not have all digits be the same."
  42732. msgstr ""
  42733. #. type: deftypevr
  42734. #: guix-git/doc/guix.texi:28606
  42735. #, no-wrap
  42736. msgid "{@code{libvirt-configuration} parameter} string host-uuid-source"
  42737. msgstr ""
  42738. #. type: deftypevr
  42739. #: guix-git/doc/guix.texi:28608
  42740. msgid "Source to read host UUID."
  42741. msgstr ""
  42742. #. type: itemize
  42743. #: guix-git/doc/guix.texi:28612
  42744. msgid "@code{smbios}: fetch the UUID from @code{dmidecode -s system-uuid}"
  42745. msgstr ""
  42746. #. type: itemize
  42747. #: guix-git/doc/guix.texi:28615
  42748. msgid "@code{machine-id}: fetch the UUID from @code{/etc/machine-id}"
  42749. msgstr ""
  42750. #. type: deftypevr
  42751. #: guix-git/doc/guix.texi:28620
  42752. msgid "If @code{dmidecode} does not provide a valid UUID a temporary UUID will be generated."
  42753. msgstr ""
  42754. #. type: deftypevr
  42755. #: guix-git/doc/guix.texi:28622
  42756. msgid "Defaults to @samp{\"smbios\"}."
  42757. msgstr ""
  42758. #. type: deftypevr
  42759. #: guix-git/doc/guix.texi:28625
  42760. #, no-wrap
  42761. msgid "{@code{libvirt-configuration} parameter} integer keepalive-interval"
  42762. msgstr ""
  42763. #. type: deftypevr
  42764. #: guix-git/doc/guix.texi:28630
  42765. 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."
  42766. msgstr ""
  42767. #. type: deftypevr
  42768. #: guix-git/doc/guix.texi:28635
  42769. #, no-wrap
  42770. msgid "{@code{libvirt-configuration} parameter} integer keepalive-count"
  42771. msgstr ""
  42772. #. type: deftypevr
  42773. #: guix-git/doc/guix.texi:28639
  42774. 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."
  42775. msgstr ""
  42776. #. type: deftypevr
  42777. #: guix-git/doc/guix.texi:28646
  42778. 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."
  42779. msgstr ""
  42780. #. type: deftypevr
  42781. #: guix-git/doc/guix.texi:28651
  42782. #, no-wrap
  42783. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-interval"
  42784. msgstr ""
  42785. #. type: deftypevr
  42786. #: guix-git/doc/guix.texi:28653 guix-git/doc/guix.texi:28660
  42787. msgid "Same as above but for admin interface."
  42788. msgstr ""
  42789. #. type: deftypevr
  42790. #: guix-git/doc/guix.texi:28658
  42791. #, no-wrap
  42792. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-count"
  42793. msgstr ""
  42794. #. type: deftypevr
  42795. #: guix-git/doc/guix.texi:28665
  42796. #, no-wrap
  42797. msgid "{@code{libvirt-configuration} parameter} integer ovs-timeout"
  42798. msgstr ""
  42799. #. type: deftypevr
  42800. #: guix-git/doc/guix.texi:28667
  42801. msgid "Timeout for Open vSwitch calls."
  42802. msgstr ""
  42803. #. type: deftypevr
  42804. #: guix-git/doc/guix.texi:28671
  42805. 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."
  42806. msgstr ""
  42807. #. type: subsubheading
  42808. #: guix-git/doc/guix.texi:28678
  42809. #, no-wrap
  42810. msgid "Virtlog daemon"
  42811. msgstr ""
  42812. #. type: Plain text
  42813. #: guix-git/doc/guix.texi:28681
  42814. msgid "The virtlogd service is a server side daemon component of libvirt that is used to manage logs from virtual machine consoles."
  42815. msgstr ""
  42816. #. type: Plain text
  42817. #: guix-git/doc/guix.texi:28687
  42818. 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."
  42819. msgstr ""
  42820. #. type: deffn
  42821. #: guix-git/doc/guix.texi:28688
  42822. #, no-wrap
  42823. msgid "{Scheme Variable} virtlog-service-type"
  42824. msgstr ""
  42825. #. type: deffn
  42826. #: guix-git/doc/guix.texi:28691
  42827. msgid "This is the type of the virtlog daemon. Its value must be a @code{virtlog-configuration}."
  42828. msgstr ""
  42829. #. type: lisp
  42830. #: guix-git/doc/guix.texi:28696
  42831. #, no-wrap
  42832. msgid ""
  42833. "(service virtlog-service-type\n"
  42834. " (virtlog-configuration\n"
  42835. " (max-clients 1000)))\n"
  42836. msgstr ""
  42837. #. type: deftypevr
  42838. #: guix-git/doc/guix.texi:28699
  42839. #, no-wrap
  42840. msgid "{@code{virtlog-configuration} parameter} integer log-level"
  42841. msgstr ""
  42842. #. type: deftypevr
  42843. #: guix-git/doc/guix.texi:28706
  42844. #, no-wrap
  42845. msgid "{@code{virtlog-configuration} parameter} string log-filters"
  42846. msgstr ""
  42847. #. type: deftypevr
  42848. #: guix-git/doc/guix.texi:28711
  42849. msgid "A filter allows to select a different logging level for a given category of logs The format for a filter is one of:"
  42850. msgstr ""
  42851. #. type: deftypevr
  42852. #: guix-git/doc/guix.texi:28728
  42853. 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:"
  42854. msgstr ""
  42855. #. type: deftypevr
  42856. #: guix-git/doc/guix.texi:28751
  42857. #, no-wrap
  42858. msgid "{@code{virtlog-configuration} parameter} string log-outputs"
  42859. msgstr ""
  42860. #. type: deftypevr
  42861. #: guix-git/doc/guix.texi:28756
  42862. msgid "An output is one of the places to save logging information The format for an output can be:"
  42863. msgstr ""
  42864. #. type: deftypevr
  42865. #: guix-git/doc/guix.texi:28796
  42866. #, no-wrap
  42867. msgid "{@code{virtlog-configuration} parameter} integer max-clients"
  42868. msgstr ""
  42869. #. type: deftypevr
  42870. #: guix-git/doc/guix.texi:28801
  42871. msgid "Defaults to @samp{1024}."
  42872. msgstr ""
  42873. #. type: deftypevr
  42874. #: guix-git/doc/guix.texi:28804
  42875. #, no-wrap
  42876. msgid "{@code{virtlog-configuration} parameter} integer max-size"
  42877. msgstr ""
  42878. #. type: deftypevr
  42879. #: guix-git/doc/guix.texi:28806
  42880. msgid "Maximum file size before rolling over."
  42881. msgstr ""
  42882. #. type: deftypevr
  42883. #: guix-git/doc/guix.texi:28808
  42884. msgid "Defaults to @samp{2MB}"
  42885. msgstr ""
  42886. #. type: deftypevr
  42887. #: guix-git/doc/guix.texi:28811
  42888. #, no-wrap
  42889. msgid "{@code{virtlog-configuration} parameter} integer max-backups"
  42890. msgstr ""
  42891. #. type: deftypevr
  42892. #: guix-git/doc/guix.texi:28813
  42893. msgid "Maximum number of backup files to keep."
  42894. msgstr ""
  42895. #. type: deftypevr
  42896. #: guix-git/doc/guix.texi:28815
  42897. msgid "Defaults to @samp{3}"
  42898. msgstr ""
  42899. #. type: anchor{#1}
  42900. #: guix-git/doc/guix.texi:28819
  42901. msgid "transparent-emulation-qemu"
  42902. msgstr ""
  42903. #. type: subsubheading
  42904. #: guix-git/doc/guix.texi:28819
  42905. #, no-wrap
  42906. msgid "Transparent Emulation with QEMU"
  42907. msgstr ""
  42908. #. type: cindex
  42909. #: guix-git/doc/guix.texi:28821
  42910. #, no-wrap
  42911. msgid "emulation"
  42912. msgstr ""
  42913. #. type: code{#1}
  42914. #: guix-git/doc/guix.texi:28822
  42915. #, no-wrap
  42916. msgid "binfmt_misc"
  42917. msgstr ""
  42918. #. type: Plain text
  42919. #: guix-git/doc/guix.texi:28830
  42920. 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."
  42921. msgstr ""
  42922. #. type: defvr
  42923. #: guix-git/doc/guix.texi:28831
  42924. #, no-wrap
  42925. msgid "{Scheme Variable} qemu-binfmt-service-type"
  42926. msgstr ""
  42927. #. type: defvr
  42928. #: guix-git/doc/guix.texi:28836
  42929. 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:"
  42930. msgstr ""
  42931. #. type: lisp
  42932. #: guix-git/doc/guix.texi:28841
  42933. #, fuzzy, no-wrap
  42934. msgid ""
  42935. "(service qemu-binfmt-service-type\n"
  42936. " (qemu-binfmt-configuration\n"
  42937. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  42938. msgstr ""
  42939. "(service qemu-binfmt-service-type\n"
  42940. " (qemu-binfmt-configuration\n"
  42941. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  42942. " (guix-support? #t)))\n"
  42943. #. type: defvr
  42944. #: guix-git/doc/guix.texi:28847
  42945. 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})."
  42946. msgstr ""
  42947. #. type: deftp
  42948. #: guix-git/doc/guix.texi:28849
  42949. #, no-wrap
  42950. msgid "{Data Type} qemu-binfmt-configuration"
  42951. msgstr ""
  42952. #. type: deftp
  42953. #: guix-git/doc/guix.texi:28851
  42954. msgid "This is the configuration for the @code{qemu-binfmt} service."
  42955. msgstr ""
  42956. #. type: item
  42957. #: guix-git/doc/guix.texi:28853
  42958. #, no-wrap
  42959. msgid "@code{platforms} (default: @code{'()})"
  42960. msgstr ""
  42961. #. type: table
  42962. #: guix-git/doc/guix.texi:28856
  42963. msgid "The list of emulated QEMU platforms. Each item must be a @dfn{platform object} as returned by @code{lookup-qemu-platforms} (see below)."
  42964. msgstr ""
  42965. #. type: table
  42966. #: guix-git/doc/guix.texi:28859
  42967. msgid "For example, let's suppose you're on an x86_64 machine and you have this service:"
  42968. msgstr ""
  42969. #. type: lisp
  42970. #: guix-git/doc/guix.texi:28864
  42971. #, fuzzy, no-wrap
  42972. msgid ""
  42973. "(service qemu-binfmt-service-type\n"
  42974. " (qemu-binfmt-configuration\n"
  42975. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  42976. msgstr ""
  42977. "(service qemu-binfmt-service-type\n"
  42978. " (qemu-binfmt-configuration\n"
  42979. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  42980. " (guix-support? #t)))\n"
  42981. #. type: table
  42982. #: guix-git/doc/guix.texi:28867
  42983. msgid "You can run:"
  42984. msgstr ""
  42985. #. type: example
  42986. #: guix-git/doc/guix.texi:28870
  42987. #, no-wrap
  42988. msgid "guix build -s armhf-linux inkscape\n"
  42989. msgstr ""
  42990. #. type: table
  42991. #: guix-git/doc/guix.texi:28877
  42992. 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!"
  42993. msgstr ""
  42994. #. type: item
  42995. #: guix-git/doc/guix.texi:28878
  42996. #, no-wrap
  42997. msgid "@code{qemu} (default: @code{qemu})"
  42998. msgstr ""
  42999. #. type: table
  43000. #: guix-git/doc/guix.texi:28880 guix-git/doc/guix.texi:28974
  43001. msgid "The QEMU package to use."
  43002. msgstr ""
  43003. #. type: deffn
  43004. #: guix-git/doc/guix.texi:28883
  43005. #, no-wrap
  43006. msgid "{Scheme Procedure} lookup-qemu-platforms @var{platforms}@dots{}"
  43007. msgstr ""
  43008. #. type: deffn
  43009. #: guix-git/doc/guix.texi:28888
  43010. 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."
  43011. msgstr ""
  43012. #. type: deffn
  43013. #: guix-git/doc/guix.texi:28890
  43014. #, no-wrap
  43015. msgid "{Scheme Procedure} qemu-platform? @var{obj}"
  43016. msgstr ""
  43017. #. type: deffn
  43018. #: guix-git/doc/guix.texi:28892
  43019. msgid "Return true if @var{obj} is a platform object."
  43020. msgstr ""
  43021. #. type: deffn
  43022. #: guix-git/doc/guix.texi:28894
  43023. #, no-wrap
  43024. msgid "{Scheme Procedure} qemu-platform-name @var{platform}"
  43025. msgstr ""
  43026. #. type: deffn
  43027. #: guix-git/doc/guix.texi:28896
  43028. msgid "Return the name of @var{platform}---a string such as @code{\"arm\"}."
  43029. msgstr ""
  43030. #. type: subsubheading
  43031. #: guix-git/doc/guix.texi:28899
  43032. #, no-wrap
  43033. msgid "The Hurd in a Virtual Machine"
  43034. msgstr ""
  43035. #. type: cindex
  43036. #: guix-git/doc/guix.texi:28902
  43037. #, no-wrap
  43038. msgid "the Hurd"
  43039. msgstr ""
  43040. #. type: cindex
  43041. #: guix-git/doc/guix.texi:28903
  43042. #, no-wrap
  43043. msgid "childhurd"
  43044. msgstr ""
  43045. #. type: Plain text
  43046. #: guix-git/doc/guix.texi:28911
  43047. 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:"
  43048. msgstr ""
  43049. #. type: example
  43050. #: guix-git/doc/guix.texi:28915
  43051. #, no-wrap
  43052. msgid ""
  43053. "herd start hurd-vm\n"
  43054. "herd stop childhurd\n"
  43055. msgstr ""
  43056. #. type: Plain text
  43057. #: guix-git/doc/guix.texi:28919
  43058. msgid "When the service is running, you can view its console by connecting to it with a VNC client, for example with:"
  43059. msgstr ""
  43060. #. type: example
  43061. #: guix-git/doc/guix.texi:28923
  43062. #, no-wrap
  43063. msgid ""
  43064. "guix environment --ad-hoc tigervnc-client -- \\\n"
  43065. " vncviewer localhost:5900\n"
  43066. msgstr ""
  43067. #. type: Plain text
  43068. #: guix-git/doc/guix.texi:28929
  43069. 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:"
  43070. msgstr ""
  43071. #. type: example
  43072. #: guix-git/doc/guix.texi:28932
  43073. #, no-wrap
  43074. msgid "ssh root@@localhost -p 10022\n"
  43075. msgstr ""
  43076. #. type: Plain text
  43077. #: guix-git/doc/guix.texi:28941
  43078. 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."
  43079. msgstr ""
  43080. #. type: defvr
  43081. #: guix-git/doc/guix.texi:28942
  43082. #, no-wrap
  43083. msgid "{Scheme Variable} hurd-vm-service-type"
  43084. msgstr ""
  43085. #. type: defvr
  43086. #: guix-git/doc/guix.texi:28948
  43087. 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."
  43088. msgstr ""
  43089. #. type: lisp
  43090. #: guix-git/doc/guix.texi:28956
  43091. #, no-wrap
  43092. msgid ""
  43093. "(service hurd-vm-service-type\n"
  43094. " (hurd-vm-configuration\n"
  43095. " (disk-size (* 5000 (expt 2 20))) ;5G\n"
  43096. " (memory-size 1024))) ;1024MiB\n"
  43097. msgstr ""
  43098. #. type: defvr
  43099. #: guix-git/doc/guix.texi:28960
  43100. msgid "would create a disk image big enough to build GNU@tie{}Hello, with some extra memory."
  43101. msgstr ""
  43102. #. type: deftp
  43103. #: guix-git/doc/guix.texi:28962
  43104. #, fuzzy, no-wrap
  43105. msgid "{Data Type} hurd-vm-configuration"
  43106. msgstr "{数据类型} build-machine"
  43107. #. type: deftp
  43108. #: guix-git/doc/guix.texi:28965
  43109. msgid "The data type representing the configuration for @code{hurd-vm-service-type}."
  43110. msgstr ""
  43111. #. type: item
  43112. #: guix-git/doc/guix.texi:28967
  43113. #, fuzzy, no-wrap
  43114. msgid "@code{os} (default: @var{%hurd-vm-operating-system})"
  43115. msgstr "@code{mate}(默认值:@code{mate})"
  43116. #. type: table
  43117. #: guix-git/doc/guix.texi:28971
  43118. 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}})."
  43119. msgstr ""
  43120. #. type: item
  43121. #: guix-git/doc/guix.texi:28972
  43122. #, fuzzy, no-wrap
  43123. msgid "@code{qemu} (default: @code{qemu-minimal})"
  43124. msgstr "@code{mate}(默认值:@code{mate})"
  43125. #. type: item
  43126. #: guix-git/doc/guix.texi:28975
  43127. #, fuzzy, no-wrap
  43128. msgid "@code{image} (default: @var{hurd-vm-disk-image})"
  43129. msgstr "@code{mate}(默认值:@code{mate})"
  43130. #. type: table
  43131. #: guix-git/doc/guix.texi:28978
  43132. msgid "The procedure used to build the disk-image built from this configuration."
  43133. msgstr ""
  43134. #. type: item
  43135. #: guix-git/doc/guix.texi:28979
  43136. #, fuzzy, no-wrap
  43137. msgid "@code{disk-size} (default: @code{'guess})"
  43138. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  43139. #. type: table
  43140. #: guix-git/doc/guix.texi:28981
  43141. #, fuzzy
  43142. msgid "The size of the disk image."
  43143. msgstr "这个用户手册的许可证。"
  43144. #. type: item
  43145. #: guix-git/doc/guix.texi:28982
  43146. #, fuzzy, no-wrap
  43147. msgid "@code{memory-size} (default: @code{512})"
  43148. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  43149. #. type: table
  43150. #: guix-git/doc/guix.texi:28984
  43151. msgid "The memory size of the Virtual Machine in mebibytes."
  43152. msgstr ""
  43153. #. type: item
  43154. #: guix-git/doc/guix.texi:28985
  43155. #, fuzzy, no-wrap
  43156. msgid "@code{options} (default: @code{'(\"--snapshot\")})"
  43157. msgstr "@code{includes}(默认值:@code{'()})"
  43158. #. type: table
  43159. #: guix-git/doc/guix.texi:28987
  43160. msgid "The extra options for running QEMU."
  43161. msgstr ""
  43162. #. type: table
  43163. #: guix-git/doc/guix.texi:28992
  43164. 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}."
  43165. msgstr ""
  43166. #. type: item
  43167. #: guix-git/doc/guix.texi:28993
  43168. #, no-wrap
  43169. msgid "@code{net-options} (default: @var{hurd-vm-net-options})"
  43170. msgstr ""
  43171. #. type: table
  43172. #: guix-git/doc/guix.texi:28995
  43173. msgid "The procedure used to produce the list of QEMU networking options."
  43174. msgstr ""
  43175. #. type: table
  43176. #: guix-git/doc/guix.texi:28997
  43177. msgid "By default, it produces"
  43178. msgstr ""
  43179. #. type: lisp
  43180. #: guix-git/doc/guix.texi:29004
  43181. #, no-wrap
  43182. msgid ""
  43183. "'(\"--device\" \"rtl8139,netdev=net0\"\n"
  43184. " \"--netdev\" \"user,id=net0\\\n"
  43185. " ,hostfwd=tcp:127.0.0.1:@var{secrets-port}-:1004\\\n"
  43186. " ,hostfwd=tcp:127.0.0.1:@var{ssh-port}-:2222\\\n"
  43187. " ,hostfwd=tcp:127.0.0.1:@var{vnc-port}-:5900\")\n"
  43188. msgstr ""
  43189. #. type: table
  43190. #: guix-git/doc/guix.texi:29007
  43191. msgid "with forwarded ports:"
  43192. msgstr ""
  43193. #. type: example
  43194. #: guix-git/doc/guix.texi:29012
  43195. #, no-wrap
  43196. msgid ""
  43197. "@var{secrets-port}: @code{(+ 11004 (* 1000 @var{ID}))}\n"
  43198. "@var{ssh-port}: @code{(+ 10022 (* 1000 @var{ID}))}\n"
  43199. "@var{vnc-port}: @code{(+ 15900 (* 1000 @var{ID}))}\n"
  43200. msgstr ""
  43201. #. type: item
  43202. #: guix-git/doc/guix.texi:29014
  43203. #, fuzzy, no-wrap
  43204. msgid "@code{secret-root} (default: @file{/etc/childhurd})"
  43205. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  43206. #. type: table
  43207. #: guix-git/doc/guix.texi:29019
  43208. 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."
  43209. msgstr ""
  43210. #. type: table
  43211. #: guix-git/doc/guix.texi:29023
  43212. 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."
  43213. msgstr ""
  43214. #. type: table
  43215. #: guix-git/doc/guix.texi:29026
  43216. msgid "By default, the service automatically populates @file{/etc/childhurd} with the following non-volatile secrets, unless they already exist:"
  43217. msgstr ""
  43218. #. type: example
  43219. #: guix-git/doc/guix.texi:29035
  43220. #, no-wrap
  43221. msgid ""
  43222. "/etc/childhurd/etc/guix/acl\n"
  43223. "/etc/childhurd/etc/guix/signing-key.pub\n"
  43224. "/etc/childhurd/etc/guix/signing-key.sec\n"
  43225. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key\n"
  43226. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key\n"
  43227. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub\n"
  43228. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub\n"
  43229. msgstr ""
  43230. #. type: table
  43231. #: guix-git/doc/guix.texi:29039
  43232. msgid "These files are automatically sent to the guest Hurd VM when it boots, including permissions."
  43233. msgstr ""
  43234. #. type: cindex
  43235. #: guix-git/doc/guix.texi:29040
  43236. #, fuzzy, no-wrap
  43237. msgid "childhurd, offloading"
  43238. msgstr "下发"
  43239. #. type: cindex
  43240. #: guix-git/doc/guix.texi:29041
  43241. #, fuzzy, no-wrap
  43242. msgid "Hurd, offloading"
  43243. msgstr "下发"
  43244. #. type: table
  43245. #: guix-git/doc/guix.texi:29045
  43246. 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:"
  43247. msgstr ""
  43248. #. type: enumerate
  43249. #: guix-git/doc/guix.texi:29050
  43250. 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:"
  43251. msgstr ""
  43252. #. type: example
  43253. #: guix-git/doc/guix.texi:29054
  43254. #, fuzzy, no-wrap
  43255. msgid ""
  43256. "guix archive --authorize < \\\n"
  43257. " /etc/childhurd/etc/guix/signing-key.pub\n"
  43258. msgstr "# guix archive --authorize < master-public-key.txt\n"
  43259. #. type: enumerate
  43260. #: guix-git/doc/guix.texi:29059
  43261. msgid "Adding the childhurd to @file{/etc/guix/machines.scm} (@pxref{Daemon Offload Setup})."
  43262. msgstr ""
  43263. #. type: table
  43264. #: guix-git/doc/guix.texi:29063
  43265. msgid "We're working towards making that happen automatically---get in touch with us at @email{guix-devel@@gnu.org} to discuss it!"
  43266. msgstr ""
  43267. #. type: Plain text
  43268. #: guix-git/doc/guix.texi:29070
  43269. 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:"
  43270. msgstr ""
  43271. #. type: lisp
  43272. #: guix-git/doc/guix.texi:29076
  43273. #, no-wrap
  43274. msgid ""
  43275. "(service hurd-vm-service-type\n"
  43276. " (hurd-vm-configuration\n"
  43277. " (image (const \"/out/of/store/writable/hurd.img\"))\n"
  43278. " (options '())))\n"
  43279. msgstr ""
  43280. #. type: subsubheading
  43281. #: guix-git/doc/guix.texi:29078
  43282. #, no-wrap
  43283. msgid "Ganeti"
  43284. msgstr ""
  43285. #. type: cindex
  43286. #: guix-git/doc/guix.texi:29080
  43287. #, no-wrap
  43288. msgid "ganeti"
  43289. msgstr ""
  43290. #. type: quotation
  43291. #: guix-git/doc/guix.texi:29087
  43292. 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}."
  43293. msgstr ""
  43294. #. type: Plain text
  43295. #: guix-git/doc/guix.texi:29097
  43296. 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)."
  43297. msgstr ""
  43298. #. type: Plain text
  43299. #: guix-git/doc/guix.texi:29102
  43300. 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}:"
  43301. msgstr ""
  43302. #. type: lisp
  43303. #: guix-git/doc/guix.texi:29112
  43304. #, no-wrap
  43305. msgid ""
  43306. "(use-package-modules virtualization)\n"
  43307. "(use-service-modules base ganeti networking ssh)\n"
  43308. "(operating-system\n"
  43309. " ;; @dots{}\n"
  43310. " (host-name \"node1\")\n"
  43311. " (hosts-file (plain-file \"hosts\" (format #f \"\n"
  43312. "127.0.0.1 localhost\n"
  43313. "::1 localhost\n"
  43314. "\n"
  43315. msgstr ""
  43316. #. type: lisp
  43317. #: guix-git/doc/guix.texi:29117
  43318. #, no-wrap
  43319. msgid ""
  43320. "192.168.1.200 ganeti.example.com\n"
  43321. "192.168.1.201 node1.example.com node1\n"
  43322. "192.168.1.202 node2.example.com node2\n"
  43323. "\")))\n"
  43324. "\n"
  43325. msgstr ""
  43326. #. type: lisp
  43327. #: guix-git/doc/guix.texi:29131
  43328. #, no-wrap
  43329. msgid ""
  43330. " ;; Install QEMU so we can use KVM-based instances, and LVM, DRBD and Ceph\n"
  43331. " ;; in order to use the \"plain\", \"drbd\" and \"rbd\" storage backends.\n"
  43332. " (packages (append (map specification->package\n"
  43333. " '(\"qemu\" \"lvm2\" \"drbd-utils\" \"ceph\"\n"
  43334. " ;; Add the debootstrap and guix OS providers.\n"
  43335. " \"ganeti-instance-guix\" \"ganeti-instance-debootstrap\"))\n"
  43336. " %base-packages))\n"
  43337. " (services\n"
  43338. " (append (list (static-networking-service \"eth0\" \"192.168.1.201\"\n"
  43339. " #:netmask \"255.255.255.0\"\n"
  43340. " #:gateway \"192.168.1.254\"\n"
  43341. " #:name-servers '(\"192.168.1.252\"\n"
  43342. " \"192.168.1.253\"))\n"
  43343. "\n"
  43344. msgstr ""
  43345. #. type: lisp
  43346. #: guix-git/doc/guix.texi:29136
  43347. #, no-wrap
  43348. msgid ""
  43349. " ;; Ganeti uses SSH to communicate between nodes.\n"
  43350. " (service openssh-service-type\n"
  43351. " (openssh-configuration\n"
  43352. " (permit-root-login 'without-password)))\n"
  43353. "\n"
  43354. msgstr ""
  43355. #. type: lisp
  43356. #: guix-git/doc/guix.texi:29146
  43357. #, no-wrap
  43358. msgid ""
  43359. " (service ganeti-service-type\n"
  43360. " (ganeti-configuration\n"
  43361. " ;; This list specifies allowed file system paths\n"
  43362. " ;; for storing virtual machine images.\n"
  43363. " (file-storage-paths '(\"/srv/ganeti/file-storage\"))\n"
  43364. " ;; This variable configures a single \"variant\" for\n"
  43365. " ;; both Debootstrap and Guix that works with KVM.\n"
  43366. " (os %default-ganeti-os))))\n"
  43367. " %base-services)))\n"
  43368. msgstr ""
  43369. #. type: Plain text
  43370. #: guix-git/doc/guix.texi:29154
  43371. 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."
  43372. msgstr ""
  43373. #. type: defvr
  43374. #: guix-git/doc/guix.texi:29155
  43375. #, no-wrap
  43376. msgid "{Scheme Variable} ganeti-service-type"
  43377. msgstr ""
  43378. #. type: defvr
  43379. #: guix-git/doc/guix.texi:29158
  43380. msgid "This is a service type that includes all the various services that Ganeti nodes should run."
  43381. msgstr ""
  43382. #. type: defvr
  43383. #: guix-git/doc/guix.texi:29163
  43384. 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."
  43385. msgstr ""
  43386. #. type: deftp
  43387. #: guix-git/doc/guix.texi:29165
  43388. #, no-wrap
  43389. msgid "{Data Type} ganeti-configuration"
  43390. msgstr ""
  43391. #. type: deftp
  43392. #: guix-git/doc/guix.texi:29167
  43393. msgid "The @code{ganeti} service takes the following configuration options:"
  43394. msgstr ""
  43395. #. type: item
  43396. #: guix-git/doc/guix.texi:29169 guix-git/doc/guix.texi:29397
  43397. #: guix-git/doc/guix.texi:29447 guix-git/doc/guix.texi:29477
  43398. #: guix-git/doc/guix.texi:29504 guix-git/doc/guix.texi:29536
  43399. #: guix-git/doc/guix.texi:29589 guix-git/doc/guix.texi:29609
  43400. #: guix-git/doc/guix.texi:29635 guix-git/doc/guix.texi:29668
  43401. #: guix-git/doc/guix.texi:29708
  43402. #, fuzzy, no-wrap
  43403. msgid "@code{ganeti} (default: @code{ganeti})"
  43404. msgstr "@code{gnome}(默认值:@code{gnome})"
  43405. #. type: table
  43406. #: guix-git/doc/guix.texi:29174
  43407. 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)."
  43408. msgstr ""
  43409. #. type: item
  43410. #: guix-git/doc/guix.texi:29175
  43411. #, fuzzy, no-wrap
  43412. msgid "@code{noded-configuration} (default: @code{(ganeti-noded-configuration)})"
  43413. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  43414. #. type: itemx
  43415. #: guix-git/doc/guix.texi:29176
  43416. #, fuzzy, no-wrap
  43417. msgid "@code{confd-configuration} (default: @code{(ganeti-confd-configuration)})"
  43418. msgstr "@code{journal-content}(默认值:@code{#f})"
  43419. #. type: itemx
  43420. #: guix-git/doc/guix.texi:29177
  43421. #, no-wrap
  43422. msgid "@code{wconfd-configuration} (default: @code{(ganeti-wconfd-configuration)})"
  43423. msgstr ""
  43424. #. type: itemx
  43425. #: guix-git/doc/guix.texi:29178
  43426. #, no-wrap
  43427. msgid "@code{luxid-configuration} (default: @code{(ganeti-luxid-configuration)})"
  43428. msgstr ""
  43429. #. type: itemx
  43430. #: guix-git/doc/guix.texi:29179
  43431. #, fuzzy, no-wrap
  43432. msgid "@code{rapi-configuration} (default: @code{(ganeti-rapi-configuration)})"
  43433. msgstr "@code{journal-content}(默认值:@code{#f})"
  43434. #. type: itemx
  43435. #: guix-git/doc/guix.texi:29180
  43436. #, fuzzy, no-wrap
  43437. msgid "@code{kvmd-configuration} (default: @code{(ganeti-kvmd-configuration)})"
  43438. msgstr "@code{mate}(默认值:@code{mate})"
  43439. #. type: itemx
  43440. #: guix-git/doc/guix.texi:29181
  43441. #, fuzzy, no-wrap
  43442. msgid "@code{mond-configuration} (default: @code{(ganeti-mond-configuration)})"
  43443. msgstr "@code{journal-content}(默认值:@code{#f})"
  43444. #. type: itemx
  43445. #: guix-git/doc/guix.texi:29182
  43446. #, fuzzy, no-wrap
  43447. msgid "@code{metad-configuration} (default: @code{(ganeti-metad-configuration)})"
  43448. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  43449. #. type: itemx
  43450. #: guix-git/doc/guix.texi:29183
  43451. #, fuzzy, no-wrap
  43452. msgid "@code{watcher-configuration} (default: @code{(ganeti-watcher-configuration)})"
  43453. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  43454. #. type: itemx
  43455. #: guix-git/doc/guix.texi:29184
  43456. #, fuzzy, no-wrap
  43457. msgid "@code{cleaner-configuration} (default: @code{(ganeti-cleaner-configuration)})"
  43458. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  43459. #. type: table
  43460. #: guix-git/doc/guix.texi:29189
  43461. 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:"
  43462. msgstr ""
  43463. #. type: lisp
  43464. #: guix-git/doc/guix.texi:29199
  43465. #, no-wrap
  43466. msgid ""
  43467. "(service ganeti-service-type\n"
  43468. " (ganeti-configuration\n"
  43469. " (rapi-configuration\n"
  43470. " (ganeti-rapi-configuration\n"
  43471. " (interface \"eth1\"))))\n"
  43472. " (watcher-configuration\n"
  43473. " (ganeti-watcher-configuration\n"
  43474. " (rapi-ip \"10.0.0.1\"))))\n"
  43475. msgstr ""
  43476. #. type: item
  43477. #: guix-git/doc/guix.texi:29201
  43478. #, fuzzy, no-wrap
  43479. msgid "@code{file-storage-paths} (default: @code{'()})"
  43480. msgstr "@code{features} (@code{'()})"
  43481. #. type: table
  43482. #: guix-git/doc/guix.texi:29203
  43483. msgid "List of allowed directories for file storage backend."
  43484. msgstr ""
  43485. #. type: item
  43486. #: guix-git/doc/guix.texi:29204
  43487. #, fuzzy, no-wrap
  43488. msgid "@code{os} (default: @code{%default-ganeti-os})"
  43489. msgstr "@code{gnome}(默认值:@code{gnome})"
  43490. #. type: table
  43491. #: guix-git/doc/guix.texi:29206
  43492. msgid "List of @code{<ganeti-os>} records."
  43493. msgstr ""
  43494. #. type: deftp
  43495. #: guix-git/doc/guix.texi:29210
  43496. msgid "In essence @code{ganeti-service-type} is shorthand for declaring each service individually:"
  43497. msgstr ""
  43498. #. type: lisp
  43499. #: guix-git/doc/guix.texi:29221
  43500. #, no-wrap
  43501. msgid ""
  43502. "(service ganeti-noded-service-type)\n"
  43503. "(service ganeti-confd-service-type)\n"
  43504. "(service ganeti-wconfd-service-type)\n"
  43505. "(service ganeti-luxid-service-type)\n"
  43506. "(service ganeti-kvmd-service-type)\n"
  43507. "(service ganeti-mond-service-type)\n"
  43508. "(service ganeti-metad-service-type)\n"
  43509. "(service ganeti-watcher-service-type)\n"
  43510. "(service ganeti-cleaner-service-type)\n"
  43511. msgstr ""
  43512. #. type: deftp
  43513. #: guix-git/doc/guix.texi:29225
  43514. msgid "Plus a service extension for @code{etc-service-type} that configures the file storage backend and OS variants."
  43515. msgstr ""
  43516. #. type: deftp
  43517. #: guix-git/doc/guix.texi:29228
  43518. #, fuzzy, no-wrap
  43519. msgid "{Data Type} ganeti-os"
  43520. msgstr "{数据类型} build-machine"
  43521. #. type: deftp
  43522. #: guix-git/doc/guix.texi:29231
  43523. msgid "This data type is suitable for passing to the @code{os} parameter of @code{ganeti-configuration}. It takes the following parameters:"
  43524. msgstr ""
  43525. #. type: table
  43526. #: guix-git/doc/guix.texi:29237
  43527. 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}."
  43528. msgstr ""
  43529. #. type: code{#1}
  43530. #: guix-git/doc/guix.texi:29238
  43531. #, no-wrap
  43532. msgid "extension"
  43533. msgstr ""
  43534. #. type: table
  43535. #: guix-git/doc/guix.texi:29241
  43536. msgid "The file extension for variants of this OS type. For example @file{.conf} or @file{.scm}."
  43537. msgstr ""
  43538. #. type: item
  43539. #: guix-git/doc/guix.texi:29242
  43540. #, fuzzy, no-wrap
  43541. msgid "@code{variants} (default: @code{'()})"
  43542. msgstr "@code{features} (@code{'()})"
  43543. #. type: table
  43544. #: guix-git/doc/guix.texi:29244
  43545. msgid "List of @code{ganeti-os-variant} objects for this OS."
  43546. msgstr ""
  43547. #. type: deftp
  43548. #: guix-git/doc/guix.texi:29248
  43549. #, fuzzy, no-wrap
  43550. msgid "{Data Type} ganeti-os-variant"
  43551. msgstr "{数据类型} build-machine"
  43552. #. type: deftp
  43553. #: guix-git/doc/guix.texi:29251
  43554. msgid "This is the data type for a Ganeti OS variant. It takes the following parameters:"
  43555. msgstr ""
  43556. #. type: table
  43557. #: guix-git/doc/guix.texi:29255
  43558. #, fuzzy
  43559. msgid "The name of this variant."
  43560. msgstr "这个用户手册的许可证。"
  43561. #. type: code{#1}
  43562. #: guix-git/doc/guix.texi:29256
  43563. #, fuzzy, no-wrap
  43564. msgid "configuration"
  43565. msgstr "系统配置"
  43566. #. type: table
  43567. #: guix-git/doc/guix.texi:29258
  43568. msgid "A configuration file for this variant."
  43569. msgstr ""
  43570. #. type: defvr
  43571. #: guix-git/doc/guix.texi:29261
  43572. #, no-wrap
  43573. msgid "{Scheme Variable} %default-debootstrap-hooks"
  43574. msgstr ""
  43575. #. type: defvr
  43576. #: guix-git/doc/guix.texi:29263
  43577. msgid "This variable contains hooks to configure networking and the GRUB bootloader."
  43578. msgstr ""
  43579. #. type: defvr
  43580. #: guix-git/doc/guix.texi:29265
  43581. #, no-wrap
  43582. msgid "{Scheme Variable} %default-debootstrap-extra-pkgs"
  43583. msgstr ""
  43584. #. type: defvr
  43585. #: guix-git/doc/guix.texi:29267
  43586. msgid "This variable contains a list of packages suitable for a fully-virtualized guest."
  43587. msgstr ""
  43588. #. type: deftp
  43589. #: guix-git/doc/guix.texi:29269
  43590. #, no-wrap
  43591. msgid "{Data Type} debootstrap-configuration"
  43592. msgstr ""
  43593. #. type: deftp
  43594. #: guix-git/doc/guix.texi:29272
  43595. msgid "This data type creates configuration files suitable for the debootstrap OS provider."
  43596. msgstr ""
  43597. #. type: item
  43598. #: guix-git/doc/guix.texi:29274
  43599. #, fuzzy, no-wrap
  43600. msgid "@code{hooks} (default: @code{%default-debootstrap-hooks})"
  43601. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  43602. #. type: table
  43603. #: guix-git/doc/guix.texi:29278
  43604. 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:"
  43605. msgstr ""
  43606. #. type: lisp
  43607. #: guix-git/doc/guix.texi:29281
  43608. #, no-wrap
  43609. msgid "`((99-hello-world . ,(plain-file \"#!/bin/sh\\necho Hello, World\")))\n"
  43610. msgstr ""
  43611. #. type: table
  43612. #: guix-git/doc/guix.texi:29286
  43613. 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."
  43614. msgstr ""
  43615. #. type: item
  43616. #: guix-git/doc/guix.texi:29286
  43617. #, fuzzy, no-wrap
  43618. msgid "@code{proxy} (default: @code{#f})"
  43619. msgstr "@code{port}(默认值:@code{22})"
  43620. #. type: table
  43621. #: guix-git/doc/guix.texi:29288
  43622. msgid "Optional HTTP proxy to use."
  43623. msgstr ""
  43624. #. type: item
  43625. #: guix-git/doc/guix.texi:29288
  43626. #, fuzzy, no-wrap
  43627. msgid "@code{mirror} (default: @code{#f})"
  43628. msgstr "@code{port}(默认值:@code{22})"
  43629. #. type: table
  43630. #: guix-git/doc/guix.texi:29291
  43631. msgid "The Debian mirror. Typically something like @code{http://ftp.no.debian.org/debian}. The default varies depending on the distribution."
  43632. msgstr ""
  43633. #. type: item
  43634. #: guix-git/doc/guix.texi:29291
  43635. #, fuzzy, no-wrap
  43636. msgid "@code{arch} (default: @code{#f})"
  43637. msgstr "@code{challenge}(默认值:@code{#f})"
  43638. #. type: table
  43639. #: guix-git/doc/guix.texi:29294
  43640. 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."
  43641. msgstr ""
  43642. #. type: item
  43643. #: guix-git/doc/guix.texi:29294
  43644. #, fuzzy, no-wrap
  43645. msgid "@code{suite} (default: @code{\"stable\"})"
  43646. msgstr "@code{mate}(默认值:@code{mate})"
  43647. #. type: table
  43648. #: guix-git/doc/guix.texi:29297
  43649. 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."
  43650. msgstr ""
  43651. #. type: item
  43652. #: guix-git/doc/guix.texi:29297
  43653. #, no-wrap
  43654. msgid "@code{extra-pkgs} (default: @code{%default-debootstrap-extra-pkgs})"
  43655. msgstr ""
  43656. #. type: table
  43657. #: guix-git/doc/guix.texi:29300
  43658. msgid "List of extra packages that will get installed by dpkg in addition to the minimal system."
  43659. msgstr ""
  43660. #. type: item
  43661. #: guix-git/doc/guix.texi:29300
  43662. #, fuzzy, no-wrap
  43663. msgid "@code{components} (default: @code{#f})"
  43664. msgstr "@code{journal-content}(默认值:@code{#f})"
  43665. #. type: table
  43666. #: guix-git/doc/guix.texi:29303
  43667. msgid "When set, must be a list of Debian repository ``components''. For example @code{'(\"main\" \"contrib\")}."
  43668. msgstr ""
  43669. #. type: item
  43670. #: guix-git/doc/guix.texi:29303
  43671. #, fuzzy, no-wrap
  43672. msgid "@code{generate-cache?} (default: @code{#t})"
  43673. msgstr "@code{mate}(默认值:@code{mate})"
  43674. #. type: table
  43675. #: guix-git/doc/guix.texi:29305
  43676. msgid "Whether to automatically cache the generated debootstrap archive."
  43677. msgstr ""
  43678. #. type: item
  43679. #: guix-git/doc/guix.texi:29305
  43680. #, fuzzy, no-wrap
  43681. msgid "@code{clean-cache} (default: @code{14})"
  43682. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  43683. #. type: table
  43684. #: guix-git/doc/guix.texi:29308
  43685. msgid "Discard the cache after this amount of days. Use @code{#f} to never clear the cache."
  43686. msgstr ""
  43687. #. type: item
  43688. #: guix-git/doc/guix.texi:29308
  43689. #, fuzzy, no-wrap
  43690. msgid "@code{partition-style} (default: @code{'msdos})"
  43691. msgstr "@code{compression-level}(默认值:@code{3})"
  43692. #. type: table
  43693. #: guix-git/doc/guix.texi:29311
  43694. msgid "The type of partition to create. When set, it must be one of @code{'msdos}, @code{'none} or a string."
  43695. msgstr ""
  43696. #. type: item
  43697. #: guix-git/doc/guix.texi:29311
  43698. #, fuzzy, no-wrap
  43699. msgid "@code{partition-alignment} (default: @code{2048})"
  43700. msgstr "@code{port}(默认值:@code{22})"
  43701. #. type: table
  43702. #: guix-git/doc/guix.texi:29313
  43703. msgid "Alignment of the partition in sectors."
  43704. msgstr ""
  43705. #. type: deffn
  43706. #: guix-git/doc/guix.texi:29316
  43707. #, no-wrap
  43708. msgid "{Scheme Procedure} debootstrap-variant @var{name} @var{configuration}"
  43709. msgstr ""
  43710. #. type: deffn
  43711. #: guix-git/doc/guix.texi:29319
  43712. 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."
  43713. msgstr ""
  43714. #. type: deffn
  43715. #: guix-git/doc/guix.texi:29321
  43716. #, no-wrap
  43717. msgid "{Scheme Procedure} debootstrap-os @var{variants}@dots{}"
  43718. msgstr ""
  43719. #. type: deffn
  43720. #: guix-git/doc/guix.texi:29324
  43721. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants created with @code{debootstrap-variant}."
  43722. msgstr ""
  43723. #. type: deffn
  43724. #: guix-git/doc/guix.texi:29326
  43725. #, no-wrap
  43726. msgid "{Scheme Procedure} guix-variant @var{name} @var{configuration}"
  43727. msgstr ""
  43728. #. type: deffn
  43729. #: guix-git/doc/guix.texi:29331
  43730. 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."
  43731. msgstr ""
  43732. #. type: deffn
  43733. #: guix-git/doc/guix.texi:29333
  43734. #, no-wrap
  43735. msgid "{Scheme Procedure} guix-os @var{variants}@dots{}"
  43736. msgstr ""
  43737. #. type: deffn
  43738. #: guix-git/doc/guix.texi:29336
  43739. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants produced by @code{guix-variant}."
  43740. msgstr ""
  43741. #. type: defvr
  43742. #: guix-git/doc/guix.texi:29338
  43743. #, no-wrap
  43744. msgid "{Scheme Variable} %default-debootstrap-variants"
  43745. msgstr ""
  43746. #. type: defvr
  43747. #: guix-git/doc/guix.texi:29342
  43748. 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:"
  43749. msgstr ""
  43750. #. type: lisp
  43751. #: guix-git/doc/guix.texi:29347
  43752. #, no-wrap
  43753. msgid ""
  43754. "(list (debootstrap-variant\n"
  43755. " \"default\"\n"
  43756. " (debootstrap-configuration)))\n"
  43757. msgstr ""
  43758. #. type: defvr
  43759. #: guix-git/doc/guix.texi:29350
  43760. #, no-wrap
  43761. msgid "{Scheme Variable} %default-guix-variants"
  43762. msgstr ""
  43763. #. type: defvr
  43764. #: guix-git/doc/guix.texi:29354
  43765. 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."
  43766. msgstr ""
  43767. #. type: lisp
  43768. #: guix-git/doc/guix.texi:29360
  43769. #, no-wrap
  43770. msgid ""
  43771. "(list (guix-variant\n"
  43772. " \"default\"\n"
  43773. " (file-append ganeti-instance-guix\n"
  43774. " \"/share/doc/ganeti-instance-guix/examples/dynamic.scm\")))\n"
  43775. msgstr ""
  43776. #. type: Plain text
  43777. #: guix-git/doc/guix.texi:29366
  43778. 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:"
  43779. msgstr ""
  43780. #. type: lisp
  43781. #: guix-git/doc/guix.texi:29375
  43782. #, no-wrap
  43783. msgid ""
  43784. "(ganeti-os\n"
  43785. " (name \"custom\")\n"
  43786. " (extension \".conf\")\n"
  43787. " (variants\n"
  43788. " (list (ganeti-os-variant\n"
  43789. " (name \"foo\")\n"
  43790. " (configuration (plain-file \"bar\" \"this is fine\"))))))\n"
  43791. msgstr ""
  43792. #. type: Plain text
  43793. #: guix-git/doc/guix.texi:29380
  43794. 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}."
  43795. msgstr ""
  43796. #. type: Plain text
  43797. #: guix-git/doc/guix.texi:29383
  43798. 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}."
  43799. msgstr ""
  43800. #. type: Plain text
  43801. #: guix-git/doc/guix.texi:29386
  43802. msgid "The rest of this section documents the various services that are included by @code{ganeti-service-type}."
  43803. msgstr ""
  43804. #. type: defvr
  43805. #: guix-git/doc/guix.texi:29387
  43806. #, no-wrap
  43807. msgid "{Scheme Variable} ganeti-noded-service-type"
  43808. msgstr ""
  43809. #. type: defvr
  43810. #: guix-git/doc/guix.texi:29391
  43811. 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."
  43812. msgstr ""
  43813. #. type: deftp
  43814. #: guix-git/doc/guix.texi:29393
  43815. #, no-wrap
  43816. msgid "{Data Type} ganeti-noded-configuration"
  43817. msgstr ""
  43818. #. type: deftp
  43819. #: guix-git/doc/guix.texi:29395
  43820. msgid "This is the configuration for the @code{ganeti-noded} service."
  43821. msgstr ""
  43822. #. type: table
  43823. #: guix-git/doc/guix.texi:29399 guix-git/doc/guix.texi:29449
  43824. #: guix-git/doc/guix.texi:29479 guix-git/doc/guix.texi:29506
  43825. #: guix-git/doc/guix.texi:29538 guix-git/doc/guix.texi:29591
  43826. #: guix-git/doc/guix.texi:29611 guix-git/doc/guix.texi:29637
  43827. #: guix-git/doc/guix.texi:29670
  43828. msgid "The @code{ganeti} package to use for this service."
  43829. msgstr ""
  43830. #. type: item
  43831. #: guix-git/doc/guix.texi:29400
  43832. #, fuzzy, no-wrap
  43833. msgid "@code{port} (default: @code{1811})"
  43834. msgstr "@code{port}(默认值:@code{22})"
  43835. #. type: table
  43836. #: guix-git/doc/guix.texi:29402
  43837. msgid "The TCP port on which the node daemon listens for network requests."
  43838. msgstr ""
  43839. #. type: item
  43840. #: guix-git/doc/guix.texi:29403 guix-git/doc/guix.texi:29453
  43841. #: guix-git/doc/guix.texi:29545 guix-git/doc/guix.texi:29615
  43842. #, fuzzy, no-wrap
  43843. msgid "@code{address} (default: @code{\"0.0.0.0\"})"
  43844. msgstr "@code{display}(默认值:@code{\":0\"})"
  43845. #. type: table
  43846. #: guix-git/doc/guix.texi:29406
  43847. msgid "The network address that the daemon will bind to. The default address means bind to all available addresses."
  43848. msgstr ""
  43849. #. type: table
  43850. #: guix-git/doc/guix.texi:29410
  43851. msgid "When this is set, it must be a specific network interface (e.g.@: @code{eth0}) that the daemon will bind to."
  43852. msgstr ""
  43853. #. type: item
  43854. #: guix-git/doc/guix.texi:29411 guix-git/doc/guix.texi:29553
  43855. #, fuzzy, no-wrap
  43856. msgid "@code{max-clients} (default: @code{20})"
  43857. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  43858. #. type: table
  43859. #: guix-git/doc/guix.texi:29415
  43860. 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."
  43861. msgstr ""
  43862. #. type: item
  43863. #: guix-git/doc/guix.texi:29416 guix-git/doc/guix.texi:29558
  43864. #, fuzzy, no-wrap
  43865. msgid "@code{ssl?} (default: @code{#t})"
  43866. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43867. #. type: table
  43868. #: guix-git/doc/guix.texi:29420
  43869. 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}."
  43870. msgstr ""
  43871. #. type: item
  43872. #: guix-git/doc/guix.texi:29421 guix-git/doc/guix.texi:29561
  43873. #, fuzzy, no-wrap
  43874. msgid "@code{ssl-key} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  43875. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  43876. #. type: table
  43877. #: guix-git/doc/guix.texi:29423 guix-git/doc/guix.texi:29563
  43878. msgid "This can be used to provide a specific encryption key for TLS communications."
  43879. msgstr ""
  43880. #. type: item
  43881. #: guix-git/doc/guix.texi:29424 guix-git/doc/guix.texi:29564
  43882. #, fuzzy, no-wrap
  43883. msgid "@code{ssl-cert} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  43884. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  43885. #. type: table
  43886. #: guix-git/doc/guix.texi:29426 guix-git/doc/guix.texi:29566
  43887. msgid "This can be used to provide a specific certificate for TLS communications."
  43888. msgstr ""
  43889. #. type: table
  43890. #: guix-git/doc/guix.texi:29430 guix-git/doc/guix.texi:29570
  43891. 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."
  43892. msgstr ""
  43893. #. type: defvr
  43894. #: guix-git/doc/guix.texi:29434
  43895. #, no-wrap
  43896. msgid "{Scheme Variable} ganeti-confd-service-type"
  43897. msgstr ""
  43898. #. type: defvr
  43899. #: guix-git/doc/guix.texi:29440
  43900. 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."
  43901. msgstr ""
  43902. #. type: deftp
  43903. #: guix-git/doc/guix.texi:29443
  43904. #, no-wrap
  43905. msgid "{Data Type} ganeti-confd-configuration"
  43906. msgstr ""
  43907. #. type: deftp
  43908. #: guix-git/doc/guix.texi:29445
  43909. msgid "This is the configuration for the @code{ganeti-confd} service."
  43910. msgstr ""
  43911. #. type: item
  43912. #: guix-git/doc/guix.texi:29450
  43913. #, fuzzy, no-wrap
  43914. msgid "@code{port} (default: @code{1814})"
  43915. msgstr "@code{port}(默认值:@code{22})"
  43916. #. type: table
  43917. #: guix-git/doc/guix.texi:29452
  43918. msgid "The UDP port on which to listen for network requests."
  43919. msgstr ""
  43920. #. type: table
  43921. #: guix-git/doc/guix.texi:29455
  43922. msgid "Network address that the daemon will bind to."
  43923. msgstr ""
  43924. #. type: table
  43925. #: guix-git/doc/guix.texi:29458 guix-git/doc/guix.texi:29487
  43926. #: guix-git/doc/guix.texi:29514 guix-git/doc/guix.texi:29594
  43927. #: guix-git/doc/guix.texi:29621 guix-git/doc/guix.texi:29647
  43928. msgid "When true, the daemon performs additional logging for debugging purposes."
  43929. msgstr ""
  43930. #. type: defvr
  43931. #: guix-git/doc/guix.texi:29462
  43932. #, no-wrap
  43933. msgid "{Scheme Variable} ganeti-wconfd-service-type"
  43934. msgstr ""
  43935. #. type: defvr
  43936. #: guix-git/doc/guix.texi:29468
  43937. 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."
  43938. msgstr ""
  43939. #. type: defvr
  43940. #: guix-git/doc/guix.texi:29471
  43941. msgid "The value of this service must be a @code{ganeti-wconfd-configuration} object."
  43942. msgstr ""
  43943. #. type: deftp
  43944. #: guix-git/doc/guix.texi:29473
  43945. #, no-wrap
  43946. msgid "{Data Type} ganeti-wconfd-configuration"
  43947. msgstr ""
  43948. #. type: deftp
  43949. #: guix-git/doc/guix.texi:29475 guix-git/doc/guix.texi:29502
  43950. msgid "This is the configuration for the @code{ganeti-wconfd} service."
  43951. msgstr ""
  43952. #. type: item
  43953. #: guix-git/doc/guix.texi:29480 guix-git/doc/guix.texi:29507
  43954. #, fuzzy, no-wrap
  43955. msgid "@code{no-voting?} (default: @code{#f})"
  43956. msgstr "@code{journal-content}(默认值:@code{#f})"
  43957. #. type: table
  43958. #: guix-git/doc/guix.texi:29484
  43959. 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)."
  43960. msgstr ""
  43961. #. type: defvr
  43962. #: guix-git/doc/guix.texi:29491
  43963. #, no-wrap
  43964. msgid "{Scheme Variable} ganeti-luxid-service-type"
  43965. msgstr ""
  43966. #. type: defvr
  43967. #: guix-git/doc/guix.texi:29496
  43968. 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."
  43969. msgstr ""
  43970. #. type: defvr
  43971. #: guix-git/doc/guix.texi:29498
  43972. msgid "It takes a @code{ganeti-luxid-configuration} object."
  43973. msgstr ""
  43974. #. type: deftp
  43975. #: guix-git/doc/guix.texi:29500
  43976. #, fuzzy, no-wrap
  43977. msgid "{Data Type} ganeti-luxid-configuration"
  43978. msgstr "{数据类型} build-machine"
  43979. #. type: table
  43980. #: guix-git/doc/guix.texi:29511
  43981. 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)."
  43982. msgstr ""
  43983. #. type: defvr
  43984. #: guix-git/doc/guix.texi:29518
  43985. #, no-wrap
  43986. msgid "{Scheme Variable} ganeti-rapi-service-type"
  43987. msgstr ""
  43988. #. type: defvr
  43989. #: guix-git/doc/guix.texi:29522
  43990. 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."
  43991. msgstr ""
  43992. #. type: defvr
  43993. #: guix-git/doc/guix.texi:29528
  43994. 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."
  43995. msgstr ""
  43996. #. type: defvr
  43997. #: guix-git/doc/guix.texi:29530
  43998. msgid "The value of this service must be a @code{ganeti-rapi-configuration} object."
  43999. msgstr ""
  44000. #. type: deftp
  44001. #: guix-git/doc/guix.texi:29532
  44002. #, no-wrap
  44003. msgid "{Data Type} ganeti-rapi-configuration"
  44004. msgstr ""
  44005. #. type: deftp
  44006. #: guix-git/doc/guix.texi:29534
  44007. msgid "This is the configuration for the @code{ganeti-rapi} service."
  44008. msgstr ""
  44009. #. type: item
  44010. #: guix-git/doc/guix.texi:29539
  44011. #, fuzzy, no-wrap
  44012. msgid "@code{require-authentication?} (default: @code{#f})"
  44013. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  44014. #. type: table
  44015. #: guix-git/doc/guix.texi:29541
  44016. msgid "Whether to require authentication even for read-only operations."
  44017. msgstr ""
  44018. #. type: item
  44019. #: guix-git/doc/guix.texi:29542
  44020. #, fuzzy, no-wrap
  44021. msgid "@code{port} (default: @code{5080})"
  44022. msgstr "@code{port}(默认值:@code{22})"
  44023. #. type: table
  44024. #: guix-git/doc/guix.texi:29544
  44025. msgid "The TCP port on which to listen to API requests."
  44026. msgstr ""
  44027. #. type: table
  44028. #: guix-git/doc/guix.texi:29548
  44029. msgid "The network address that the service will bind to. By default it listens on all configured addresses."
  44030. msgstr ""
  44031. #. type: table
  44032. #: guix-git/doc/guix.texi:29552
  44033. msgid "When set, it must specify a specific network interface such as @code{eth0} that the daemon will bind to."
  44034. msgstr ""
  44035. #. type: table
  44036. #: guix-git/doc/guix.texi:29557
  44037. msgid "The maximum number of simultaneous client requests to handle. Further connections are allowed, but no responses are sent until enough connections have closed."
  44038. msgstr ""
  44039. #. type: table
  44040. #: guix-git/doc/guix.texi:29560
  44041. msgid "Whether to use SSL/TLS encryption on the RAPI port."
  44042. msgstr ""
  44043. #. type: defvr
  44044. #: guix-git/doc/guix.texi:29574
  44045. #, no-wrap
  44046. msgid "{Scheme Variable} ganeti-kvmd-service-type"
  44047. msgstr ""
  44048. #. type: defvr
  44049. #: guix-git/doc/guix.texi:29582
  44050. 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."
  44051. msgstr ""
  44052. #. type: defvr
  44053. #: guix-git/doc/guix.texi:29584
  44054. msgid "It takes a @code{ganeti-kvmd-configuration} object."
  44055. msgstr ""
  44056. #. type: deftp
  44057. #: guix-git/doc/guix.texi:29586
  44058. #, no-wrap
  44059. msgid "{Data Type} ganeti-kvmd-configuration"
  44060. msgstr ""
  44061. #. type: defvr
  44062. #: guix-git/doc/guix.texi:29598
  44063. #, no-wrap
  44064. msgid "{Scheme Variable} ganeti-mond-service-type"
  44065. msgstr ""
  44066. #. type: defvr
  44067. #: guix-git/doc/guix.texi:29602
  44068. 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."
  44069. msgstr ""
  44070. #. type: defvr
  44071. #: guix-git/doc/guix.texi:29604
  44072. msgid "It takes a @code{ganeti-mond-configuration} object."
  44073. msgstr ""
  44074. #. type: deftp
  44075. #: guix-git/doc/guix.texi:29606
  44076. #, no-wrap
  44077. msgid "{Data Type} ganeti-mond-configuration"
  44078. msgstr ""
  44079. #. type: item
  44080. #: guix-git/doc/guix.texi:29612
  44081. #, fuzzy, no-wrap
  44082. msgid "@code{port} (default: @code{1815})"
  44083. msgstr "@code{port}(默认值:@code{22})"
  44084. #. type: table
  44085. #: guix-git/doc/guix.texi:29614 guix-git/doc/guix.texi:29640
  44086. msgid "The port on which the daemon will listen."
  44087. msgstr ""
  44088. #. type: table
  44089. #: guix-git/doc/guix.texi:29618
  44090. msgid "The network address that the daemon will bind to. By default it binds to all available interfaces."
  44091. msgstr ""
  44092. #. type: defvr
  44093. #: guix-git/doc/guix.texi:29625
  44094. #, no-wrap
  44095. msgid "{Scheme Variable} ganeti-metad-service-type"
  44096. msgstr ""
  44097. #. type: defvr
  44098. #: guix-git/doc/guix.texi:29628
  44099. msgid "@command{ganeti-metad} is an optional daemon that can be used to provide information about the cluster to instances or OS install scripts."
  44100. msgstr ""
  44101. #. type: defvr
  44102. #: guix-git/doc/guix.texi:29630
  44103. msgid "It takes a @code{ganeti-metad-configuration} object."
  44104. msgstr ""
  44105. #. type: deftp
  44106. #: guix-git/doc/guix.texi:29632
  44107. #, fuzzy, no-wrap
  44108. msgid "{Data Type} ganeti-metad-configuration"
  44109. msgstr "{数据类型} build-machine"
  44110. #. type: item
  44111. #: guix-git/doc/guix.texi:29641
  44112. #, fuzzy, no-wrap
  44113. msgid "@code{address} (default: @code{#f})"
  44114. msgstr "@code{challenge}(默认值:@code{#f})"
  44115. #. type: table
  44116. #: guix-git/doc/guix.texi:29644
  44117. msgid "If set, the daemon will bind to this address only. If left unset, the behavior depends on the cluster configuration."
  44118. msgstr ""
  44119. #. type: defvr
  44120. #: guix-git/doc/guix.texi:29651
  44121. #, no-wrap
  44122. msgid "{Scheme Variable} ganeti-watcher-service-type"
  44123. msgstr ""
  44124. #. type: defvr
  44125. #: guix-git/doc/guix.texi:29659
  44126. 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."
  44127. msgstr ""
  44128. #. type: defvr
  44129. #: guix-git/doc/guix.texi:29661
  44130. msgid "It can be paused on all nodes with @command{gnt-cluster watcher pause}."
  44131. msgstr ""
  44132. #. type: defvr
  44133. #: guix-git/doc/guix.texi:29663
  44134. msgid "The service takes a @code{ganeti-watcher-configuration} object."
  44135. msgstr ""
  44136. #. type: deftp
  44137. #: guix-git/doc/guix.texi:29665
  44138. #, no-wrap
  44139. msgid "{Data Type} ganeti-watcher-configuration"
  44140. msgstr ""
  44141. #. type: item
  44142. #: guix-git/doc/guix.texi:29671
  44143. #, no-wrap
  44144. msgid "@code{schedule} (default: @code{'(next-second-from (next-minute (range 0 60 5)))})"
  44145. msgstr ""
  44146. #. type: table
  44147. #: guix-git/doc/guix.texi:29673
  44148. msgid "How often to run the script. The default is every five minutes."
  44149. msgstr ""
  44150. #. type: item
  44151. #: guix-git/doc/guix.texi:29674
  44152. #, fuzzy, no-wrap
  44153. msgid "@code{rapi-ip} (default: @code{#f})"
  44154. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  44155. #. type: table
  44156. #: guix-git/doc/guix.texi:29677
  44157. 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."
  44158. msgstr ""
  44159. #. type: item
  44160. #: guix-git/doc/guix.texi:29678
  44161. #, fuzzy, no-wrap
  44162. msgid "@code{job-age} (default: @code{(* 6 3600)})"
  44163. msgstr "@code{features} (@code{'()})"
  44164. #. type: table
  44165. #: guix-git/doc/guix.texi:29681
  44166. msgid "Archive cluster jobs older than this age, specified in seconds. The default is 6 hours. This keeps @command{gnt-job list} manageable."
  44167. msgstr ""
  44168. #. type: item
  44169. #: guix-git/doc/guix.texi:29682
  44170. #, fuzzy, no-wrap
  44171. msgid "@code{verify-disks?} (default: @code{#t})"
  44172. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  44173. #. type: table
  44174. #: guix-git/doc/guix.texi:29686
  44175. 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."
  44176. msgstr ""
  44177. #. type: table
  44178. #: guix-git/doc/guix.texi:29689
  44179. msgid "When @code{#t}, the script performs additional logging for debugging purposes."
  44180. msgstr ""
  44181. #. type: defvr
  44182. #: guix-git/doc/guix.texi:29693
  44183. #, no-wrap
  44184. msgid "{Scheme Variable} ganeti-cleaner-service-type"
  44185. msgstr ""
  44186. #. type: defvr
  44187. #: guix-git/doc/guix.texi:29701
  44188. 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."
  44189. msgstr ""
  44190. #. type: defvr
  44191. #: guix-git/doc/guix.texi:29703
  44192. msgid "It takes a @code{ganeti-cleaner-configuration} object."
  44193. msgstr ""
  44194. #. type: deftp
  44195. #: guix-git/doc/guix.texi:29705
  44196. #, no-wrap
  44197. msgid "{Data Type} ganeti-cleaner-configuration"
  44198. msgstr ""
  44199. #. type: table
  44200. #: guix-git/doc/guix.texi:29710
  44201. msgid "The @code{ganeti} package to use for the @command{gnt-cleaner} command."
  44202. msgstr ""
  44203. #. type: item
  44204. #: guix-git/doc/guix.texi:29711
  44205. #, fuzzy, no-wrap
  44206. msgid "@code{master-schedule} (default: @code{\"45 1 * * *\"})"
  44207. msgstr "@code{speed}(默认值:@code{1.0})"
  44208. #. type: table
  44209. #: guix-git/doc/guix.texi:29714
  44210. msgid "How often to run the master cleaning job. The default is once per day, at 01:45:00."
  44211. msgstr ""
  44212. #. type: item
  44213. #: guix-git/doc/guix.texi:29715
  44214. #, fuzzy, no-wrap
  44215. msgid "@code{node-schedule} (default: @code{\"45 2 * * *\"})"
  44216. msgstr "@code{display}(默认值:@code{\":0\"})"
  44217. #. type: table
  44218. #: guix-git/doc/guix.texi:29718
  44219. msgid "How often to run the node cleaning job. The default is once per day, at 02:45:00."
  44220. msgstr ""
  44221. #. type: Plain text
  44222. #: guix-git/doc/guix.texi:29732
  44223. 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}."
  44224. msgstr ""
  44225. #. type: deffn
  44226. #: guix-git/doc/guix.texi:29733
  44227. #, no-wrap
  44228. msgid "{Scheme Procedure} git-daemon-service [#:config (git-daemon-configuration)]"
  44229. msgstr ""
  44230. #. type: deffn
  44231. #: guix-git/doc/guix.texi:29737
  44232. msgid "Return a service that runs @command{git daemon}, a simple TCP server to expose repositories over the Git protocol for anonymous access."
  44233. msgstr ""
  44234. #. type: deffn
  44235. #: guix-git/doc/guix.texi:29743
  44236. 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}."
  44237. msgstr ""
  44238. #. type: deftp
  44239. #: guix-git/doc/guix.texi:29746
  44240. #, no-wrap
  44241. msgid "{Data Type} git-daemon-configuration"
  44242. msgstr ""
  44243. #. type: deftp
  44244. #: guix-git/doc/guix.texi:29748
  44245. msgid "Data type representing the configuration for @code{git-daemon-service}."
  44246. msgstr ""
  44247. #. type: item
  44248. #: guix-git/doc/guix.texi:29750
  44249. #, fuzzy, no-wrap
  44250. msgid "@code{package} (default: @code{git})"
  44251. msgstr "@code{mate}(默认值:@code{mate})"
  44252. #. type: table
  44253. #: guix-git/doc/guix.texi:29752 guix-git/doc/guix.texi:29812
  44254. msgid "Package object of the Git distributed version control system."
  44255. msgstr ""
  44256. #. type: item
  44257. #: guix-git/doc/guix.texi:29753 guix-git/doc/guix.texi:29816
  44258. #, fuzzy, no-wrap
  44259. msgid "@code{export-all?} (default: @code{#f})"
  44260. msgstr "@code{port}(默认值:@code{22})"
  44261. #. type: table
  44262. #: guix-git/doc/guix.texi:29756
  44263. msgid "Whether to allow access for all Git repositories, even if they do not have the @file{git-daemon-export-ok} file."
  44264. msgstr ""
  44265. #. type: item
  44266. #: guix-git/doc/guix.texi:29757
  44267. #, no-wrap
  44268. msgid "@code{base-path} (default: @file{/srv/git})"
  44269. msgstr ""
  44270. #. type: table
  44271. #: guix-git/doc/guix.texi:29763
  44272. 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}."
  44273. msgstr ""
  44274. #. type: item
  44275. #: guix-git/doc/guix.texi:29764
  44276. #, fuzzy, no-wrap
  44277. msgid "@code{user-path} (default: @code{#f})"
  44278. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  44279. #. type: table
  44280. #: guix-git/doc/guix.texi:29772
  44281. 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}."
  44282. msgstr ""
  44283. #. type: item
  44284. #: guix-git/doc/guix.texi:29773
  44285. #, fuzzy, no-wrap
  44286. msgid "@code{listen} (default: @code{'()})"
  44287. msgstr "@code{features} (@code{'()})"
  44288. #. type: table
  44289. #: guix-git/doc/guix.texi:29776
  44290. msgid "Whether to listen on specific IP addresses or hostnames, defaults to all."
  44291. msgstr ""
  44292. #. type: item
  44293. #: guix-git/doc/guix.texi:29777
  44294. #, fuzzy, no-wrap
  44295. msgid "@code{port} (default: @code{#f})"
  44296. msgstr "@code{port}(默认值:@code{22})"
  44297. #. type: table
  44298. #: guix-git/doc/guix.texi:29779
  44299. msgid "Whether to listen on an alternative port, which defaults to 9418."
  44300. msgstr ""
  44301. #. type: item
  44302. #: guix-git/doc/guix.texi:29780
  44303. #, fuzzy, no-wrap
  44304. msgid "@code{whitelist} (default: @code{'()})"
  44305. msgstr "@code{features} (@code{'()})"
  44306. #. type: table
  44307. #: guix-git/doc/guix.texi:29782
  44308. msgid "If not empty, only allow access to this list of directories."
  44309. msgstr ""
  44310. #. type: table
  44311. #: guix-git/doc/guix.texi:29786
  44312. msgid "Extra options will be passed to @command{git daemon}, please run @command{man git-daemon} for more information."
  44313. msgstr ""
  44314. #. type: Plain text
  44315. #: guix-git/doc/guix.texi:29800
  44316. 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."
  44317. msgstr ""
  44318. #. type: Plain text
  44319. #: guix-git/doc/guix.texi:29803
  44320. msgid "Guix has a separate configuration data type for serving Git repositories over HTTP."
  44321. msgstr ""
  44322. #. type: deftp
  44323. #: guix-git/doc/guix.texi:29804
  44324. #, no-wrap
  44325. msgid "{Data Type} git-http-configuration"
  44326. msgstr ""
  44327. #. type: deftp
  44328. #: guix-git/doc/guix.texi:29808
  44329. 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}."
  44330. msgstr ""
  44331. #. type: item
  44332. #: guix-git/doc/guix.texi:29810
  44333. #, no-wrap
  44334. msgid "@code{package} (default: @var{git})"
  44335. msgstr ""
  44336. #. type: item
  44337. #: guix-git/doc/guix.texi:29813
  44338. #, no-wrap
  44339. msgid "@code{git-root} (default: @file{/srv/git})"
  44340. msgstr ""
  44341. #. type: table
  44342. #: guix-git/doc/guix.texi:29815
  44343. msgid "Directory containing the Git repositories to expose to the world."
  44344. msgstr ""
  44345. #. type: table
  44346. #: guix-git/doc/guix.texi:29819
  44347. 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."
  44348. msgstr ""
  44349. #. type: item
  44350. #: guix-git/doc/guix.texi:29820
  44351. #, fuzzy, no-wrap
  44352. msgid "@code{uri-path} (default: @samp{/git/})"
  44353. msgstr "@code{mate}(默认值:@code{mate})"
  44354. #. type: table
  44355. #: guix-git/doc/guix.texi:29825
  44356. 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."
  44357. msgstr ""
  44358. #. type: item
  44359. #: guix-git/doc/guix.texi:29826
  44360. #, no-wrap
  44361. msgid "@code{fcgiwrap-socket} (default: @code{127.0.0.1:9000})"
  44362. msgstr ""
  44363. #. type: table
  44364. #: guix-git/doc/guix.texi:29829
  44365. msgid "The socket on which the @code{fcgiwrap} daemon is listening. @xref{Web Services}."
  44366. msgstr ""
  44367. #. type: Plain text
  44368. #: guix-git/doc/guix.texi:29836
  44369. 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."
  44370. msgstr ""
  44371. #. type: deffn
  44372. #: guix-git/doc/guix.texi:29837
  44373. #, no-wrap
  44374. msgid "{Scheme Procedure} git-http-nginx-location-configuration @"
  44375. msgstr ""
  44376. #. type: deffn
  44377. #: guix-git/doc/guix.texi:29842
  44378. 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:"
  44379. msgstr ""
  44380. #. type: lisp
  44381. #: guix-git/doc/guix.texi:29859
  44382. #, no-wrap
  44383. msgid ""
  44384. "(service nginx-service-type\n"
  44385. " (nginx-configuration\n"
  44386. " (server-blocks\n"
  44387. " (list\n"
  44388. " (nginx-server-configuration\n"
  44389. " (listen '(\"443 ssl\"))\n"
  44390. " (server-name \"git.my-host.org\")\n"
  44391. " (ssl-certificate\n"
  44392. " \"/etc/letsencrypt/live/git.my-host.org/fullchain.pem\")\n"
  44393. " (ssl-certificate-key\n"
  44394. " \"/etc/letsencrypt/live/git.my-host.org/privkey.pem\")\n"
  44395. " (locations\n"
  44396. " (list\n"
  44397. " (git-http-nginx-location-configuration\n"
  44398. " (git-http-configuration (uri-path \"/\"))))))))))\n"
  44399. msgstr ""
  44400. #. type: deffn
  44401. #: guix-git/doc/guix.texi:29866
  44402. 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}."
  44403. msgstr ""
  44404. #. type: subsubheading
  44405. #: guix-git/doc/guix.texi:29868
  44406. #, no-wrap
  44407. msgid "Cgit Service"
  44408. msgstr ""
  44409. #. type: cindex
  44410. #: guix-git/doc/guix.texi:29870
  44411. #, no-wrap
  44412. msgid "Cgit service"
  44413. msgstr ""
  44414. #. type: cindex
  44415. #: guix-git/doc/guix.texi:29871
  44416. #, no-wrap
  44417. msgid "Git, web interface"
  44418. msgstr ""
  44419. #. type: Plain text
  44420. #: guix-git/doc/guix.texi:29874
  44421. msgid "@uref{https://git.zx2c4.com/cgit/, Cgit} is a web frontend for Git repositories written in C."
  44422. msgstr ""
  44423. #. type: Plain text
  44424. #: guix-git/doc/guix.texi:29877
  44425. msgid "The following example will configure the service with default values. By default, Cgit can be accessed on port 80 (@code{http://localhost:80})."
  44426. msgstr ""
  44427. #. type: lisp
  44428. #: guix-git/doc/guix.texi:29880
  44429. #, no-wrap
  44430. msgid "(service cgit-service-type)\n"
  44431. msgstr ""
  44432. #. type: Plain text
  44433. #: guix-git/doc/guix.texi:29884
  44434. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string."
  44435. msgstr ""
  44436. #. type: Plain text
  44437. #: guix-git/doc/guix.texi:29888
  44438. msgid "Available @code{cgit-configuration} fields are:"
  44439. msgstr ""
  44440. #. type: deftypevr
  44441. #: guix-git/doc/guix.texi:29889
  44442. #, no-wrap
  44443. msgid "{@code{cgit-configuration} parameter} package package"
  44444. msgstr ""
  44445. #. type: deftypevr
  44446. #: guix-git/doc/guix.texi:29891
  44447. msgid "The CGIT package."
  44448. msgstr ""
  44449. #. type: deftypevr
  44450. #: guix-git/doc/guix.texi:29894
  44451. #, no-wrap
  44452. msgid "{@code{cgit-configuration} parameter} nginx-server-configuration-list nginx"
  44453. msgstr ""
  44454. #. type: deftypevr
  44455. #: guix-git/doc/guix.texi:29899
  44456. #, no-wrap
  44457. msgid "{@code{cgit-configuration} parameter} file-object about-filter"
  44458. msgstr ""
  44459. #. type: deftypevr
  44460. #: guix-git/doc/guix.texi:29902
  44461. msgid "Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository)."
  44462. msgstr ""
  44463. #. type: deftypevr
  44464. #: guix-git/doc/guix.texi:29907
  44465. #, no-wrap
  44466. msgid "{@code{cgit-configuration} parameter} string agefile"
  44467. msgstr ""
  44468. #. type: deftypevr
  44469. #: guix-git/doc/guix.texi:29910
  44470. 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."
  44471. msgstr ""
  44472. #. type: deftypevr
  44473. #: guix-git/doc/guix.texi:29915
  44474. #, no-wrap
  44475. msgid "{@code{cgit-configuration} parameter} file-object auth-filter"
  44476. msgstr ""
  44477. #. type: deftypevr
  44478. #: guix-git/doc/guix.texi:29918
  44479. msgid "Specifies a command that will be invoked for authenticating repository access."
  44480. msgstr ""
  44481. #. type: deftypevr
  44482. #: guix-git/doc/guix.texi:29923
  44483. #, no-wrap
  44484. msgid "{@code{cgit-configuration} parameter} string branch-sort"
  44485. msgstr ""
  44486. #. type: deftypevr
  44487. #: guix-git/doc/guix.texi:29926
  44488. 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."
  44489. msgstr ""
  44490. #. type: deftypevr
  44491. #: guix-git/doc/guix.texi:29928
  44492. msgid "Defaults to @samp{\"name\"}."
  44493. msgstr ""
  44494. #. type: deftypevr
  44495. #: guix-git/doc/guix.texi:29931
  44496. #, no-wrap
  44497. msgid "{@code{cgit-configuration} parameter} string cache-root"
  44498. msgstr ""
  44499. #. type: deftypevr
  44500. #: guix-git/doc/guix.texi:29933
  44501. msgid "Path used to store the cgit cache entries."
  44502. msgstr ""
  44503. #. type: deftypevr
  44504. #: guix-git/doc/guix.texi:29935
  44505. msgid "Defaults to @samp{\"/var/cache/cgit\"}."
  44506. msgstr ""
  44507. #. type: deftypevr
  44508. #: guix-git/doc/guix.texi:29938
  44509. #, no-wrap
  44510. msgid "{@code{cgit-configuration} parameter} integer cache-static-ttl"
  44511. msgstr ""
  44512. #. type: deftypevr
  44513. #: guix-git/doc/guix.texi:29941
  44514. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed with a fixed SHA1."
  44515. msgstr ""
  44516. #. type: deftypevr
  44517. #: guix-git/doc/guix.texi:29943 guix-git/doc/guix.texi:30386
  44518. msgid "Defaults to @samp{-1}."
  44519. msgstr ""
  44520. #. type: deftypevr
  44521. #: guix-git/doc/guix.texi:29946
  44522. #, no-wrap
  44523. msgid "{@code{cgit-configuration} parameter} integer cache-dynamic-ttl"
  44524. msgstr ""
  44525. #. type: deftypevr
  44526. #: guix-git/doc/guix.texi:29949
  44527. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed without a fixed SHA1."
  44528. msgstr ""
  44529. #. type: deftypevr
  44530. #: guix-git/doc/guix.texi:29954
  44531. #, no-wrap
  44532. msgid "{@code{cgit-configuration} parameter} integer cache-repo-ttl"
  44533. msgstr ""
  44534. #. type: deftypevr
  44535. #: guix-git/doc/guix.texi:29957
  44536. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository summary page."
  44537. msgstr ""
  44538. #. type: deftypevr
  44539. #: guix-git/doc/guix.texi:29962
  44540. #, no-wrap
  44541. msgid "{@code{cgit-configuration} parameter} integer cache-root-ttl"
  44542. msgstr ""
  44543. #. type: deftypevr
  44544. #: guix-git/doc/guix.texi:29965
  44545. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository index page."
  44546. msgstr ""
  44547. #. type: deftypevr
  44548. #: guix-git/doc/guix.texi:29970
  44549. #, no-wrap
  44550. msgid "{@code{cgit-configuration} parameter} integer cache-scanrc-ttl"
  44551. msgstr ""
  44552. #. type: deftypevr
  44553. #: guix-git/doc/guix.texi:29973
  44554. msgid "Number which specifies the time-to-live, in minutes, for the result of scanning a path for Git repositories."
  44555. msgstr ""
  44556. #. type: deftypevr
  44557. #: guix-git/doc/guix.texi:29978
  44558. #, no-wrap
  44559. msgid "{@code{cgit-configuration} parameter} integer cache-about-ttl"
  44560. msgstr ""
  44561. #. type: deftypevr
  44562. #: guix-git/doc/guix.texi:29981
  44563. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository about page."
  44564. msgstr ""
  44565. #. type: deftypevr
  44566. #: guix-git/doc/guix.texi:29986
  44567. #, no-wrap
  44568. msgid "{@code{cgit-configuration} parameter} integer cache-snapshot-ttl"
  44569. msgstr ""
  44570. #. type: deftypevr
  44571. #: guix-git/doc/guix.texi:29989
  44572. msgid "Number which specifies the time-to-live, in minutes, for the cached version of snapshots."
  44573. msgstr ""
  44574. #. type: deftypevr
  44575. #: guix-git/doc/guix.texi:29994
  44576. #, no-wrap
  44577. msgid "{@code{cgit-configuration} parameter} integer cache-size"
  44578. msgstr ""
  44579. #. type: deftypevr
  44580. #: guix-git/doc/guix.texi:29997
  44581. msgid "The maximum number of entries in the cgit cache. When set to @samp{0}, caching is disabled."
  44582. msgstr ""
  44583. #. type: deftypevr
  44584. #: guix-git/doc/guix.texi:30002
  44585. #, no-wrap
  44586. msgid "{@code{cgit-configuration} parameter} boolean case-sensitive-sort?"
  44587. msgstr ""
  44588. #. type: deftypevr
  44589. #: guix-git/doc/guix.texi:30004
  44590. msgid "Sort items in the repo list case sensitively."
  44591. msgstr ""
  44592. #. type: deftypevr
  44593. #: guix-git/doc/guix.texi:30009
  44594. #, no-wrap
  44595. msgid "{@code{cgit-configuration} parameter} list clone-prefix"
  44596. msgstr ""
  44597. #. type: deftypevr
  44598. #: guix-git/doc/guix.texi:30012
  44599. msgid "List of common prefixes which, when combined with a repository URL, generates valid clone URLs for the repository."
  44600. msgstr ""
  44601. #. type: deftypevr
  44602. #: guix-git/doc/guix.texi:30017
  44603. #, no-wrap
  44604. msgid "{@code{cgit-configuration} parameter} list clone-url"
  44605. msgstr ""
  44606. #. type: deftypevr
  44607. #: guix-git/doc/guix.texi:30019
  44608. msgid "List of @code{clone-url} templates."
  44609. msgstr ""
  44610. #. type: deftypevr
  44611. #: guix-git/doc/guix.texi:30024
  44612. #, no-wrap
  44613. msgid "{@code{cgit-configuration} parameter} file-object commit-filter"
  44614. msgstr ""
  44615. #. type: deftypevr
  44616. #: guix-git/doc/guix.texi:30026
  44617. msgid "Command which will be invoked to format commit messages."
  44618. msgstr ""
  44619. #. type: deftypevr
  44620. #: guix-git/doc/guix.texi:30031
  44621. #, no-wrap
  44622. msgid "{@code{cgit-configuration} parameter} string commit-sort"
  44623. msgstr ""
  44624. #. type: deftypevr
  44625. #: guix-git/doc/guix.texi:30035 guix-git/doc/guix.texi:30593
  44626. 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."
  44627. msgstr ""
  44628. #. type: deftypevr
  44629. #: guix-git/doc/guix.texi:30037
  44630. msgid "Defaults to @samp{\"git log\"}."
  44631. msgstr ""
  44632. #. type: deftypevr
  44633. #: guix-git/doc/guix.texi:30040
  44634. #, no-wrap
  44635. msgid "{@code{cgit-configuration} parameter} file-object css"
  44636. msgstr ""
  44637. #. type: deftypevr
  44638. #: guix-git/doc/guix.texi:30042
  44639. msgid "URL which specifies the css document to include in all cgit pages."
  44640. msgstr ""
  44641. #. type: deftypevr
  44642. #: guix-git/doc/guix.texi:30044
  44643. msgid "Defaults to @samp{\"/share/cgit/cgit.css\"}."
  44644. msgstr ""
  44645. #. type: deftypevr
  44646. #: guix-git/doc/guix.texi:30047
  44647. #, no-wrap
  44648. msgid "{@code{cgit-configuration} parameter} file-object email-filter"
  44649. msgstr ""
  44650. #. type: deftypevr
  44651. #: guix-git/doc/guix.texi:30051
  44652. 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."
  44653. msgstr ""
  44654. #. type: deftypevr
  44655. #: guix-git/doc/guix.texi:30056
  44656. #, no-wrap
  44657. msgid "{@code{cgit-configuration} parameter} boolean embedded?"
  44658. msgstr ""
  44659. #. type: deftypevr
  44660. #: guix-git/doc/guix.texi:30059
  44661. msgid "Flag which, when set to @samp{#t}, will make cgit generate a HTML fragment suitable for embedding in other HTML pages."
  44662. msgstr ""
  44663. #. type: deftypevr
  44664. #: guix-git/doc/guix.texi:30064
  44665. #, no-wrap
  44666. msgid "{@code{cgit-configuration} parameter} boolean enable-commit-graph?"
  44667. msgstr ""
  44668. #. type: deftypevr
  44669. #: guix-git/doc/guix.texi:30068
  44670. 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."
  44671. msgstr ""
  44672. #. type: deftypevr
  44673. #: guix-git/doc/guix.texi:30073
  44674. #, no-wrap
  44675. msgid "{@code{cgit-configuration} parameter} boolean enable-filter-overrides?"
  44676. msgstr ""
  44677. #. type: deftypevr
  44678. #: guix-git/doc/guix.texi:30076
  44679. msgid "Flag which, when set to @samp{#t}, allows all filter settings to be overridden in repository-specific cgitrc files."
  44680. msgstr ""
  44681. #. type: deftypevr
  44682. #: guix-git/doc/guix.texi:30081
  44683. #, no-wrap
  44684. msgid "{@code{cgit-configuration} parameter} boolean enable-follow-links?"
  44685. msgstr ""
  44686. #. type: deftypevr
  44687. #: guix-git/doc/guix.texi:30084
  44688. msgid "Flag which, when set to @samp{#t}, allows users to follow a file in the log view."
  44689. msgstr ""
  44690. #. type: deftypevr
  44691. #: guix-git/doc/guix.texi:30089
  44692. #, no-wrap
  44693. msgid "{@code{cgit-configuration} parameter} boolean enable-http-clone?"
  44694. msgstr ""
  44695. #. type: deftypevr
  44696. #: guix-git/doc/guix.texi:30092
  44697. msgid "If set to @samp{#t}, cgit will act as an dumb HTTP endpoint for Git clones."
  44698. msgstr ""
  44699. #. type: deftypevr
  44700. #: guix-git/doc/guix.texi:30097
  44701. #, no-wrap
  44702. msgid "{@code{cgit-configuration} parameter} boolean enable-index-links?"
  44703. msgstr ""
  44704. #. type: deftypevr
  44705. #: guix-git/doc/guix.texi:30100
  44706. msgid "Flag which, when set to @samp{#t}, will make cgit generate extra links \"summary\", \"commit\", \"tree\" for each repo in the repository index."
  44707. msgstr ""
  44708. #. type: deftypevr
  44709. #: guix-git/doc/guix.texi:30105
  44710. #, no-wrap
  44711. msgid "{@code{cgit-configuration} parameter} boolean enable-index-owner?"
  44712. msgstr ""
  44713. #. type: deftypevr
  44714. #: guix-git/doc/guix.texi:30108
  44715. msgid "Flag which, when set to @samp{#t}, will make cgit display the owner of each repo in the repository index."
  44716. msgstr ""
  44717. #. type: deftypevr
  44718. #: guix-git/doc/guix.texi:30113
  44719. #, no-wrap
  44720. msgid "{@code{cgit-configuration} parameter} boolean enable-log-filecount?"
  44721. msgstr ""
  44722. #. type: deftypevr
  44723. #: guix-git/doc/guix.texi:30116
  44724. 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."
  44725. msgstr ""
  44726. #. type: deftypevr
  44727. #: guix-git/doc/guix.texi:30121
  44728. #, no-wrap
  44729. msgid "{@code{cgit-configuration} parameter} boolean enable-log-linecount?"
  44730. msgstr ""
  44731. #. type: deftypevr
  44732. #: guix-git/doc/guix.texi:30124
  44733. 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."
  44734. msgstr ""
  44735. #. type: deftypevr
  44736. #: guix-git/doc/guix.texi:30129
  44737. #, no-wrap
  44738. msgid "{@code{cgit-configuration} parameter} boolean enable-remote-branches?"
  44739. msgstr ""
  44740. #. type: deftypevr
  44741. #: guix-git/doc/guix.texi:30132 guix-git/doc/guix.texi:30656
  44742. msgid "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views."
  44743. msgstr ""
  44744. #. type: deftypevr
  44745. #: guix-git/doc/guix.texi:30137
  44746. #, no-wrap
  44747. msgid "{@code{cgit-configuration} parameter} boolean enable-subject-links?"
  44748. msgstr ""
  44749. #. type: deftypevr
  44750. #: guix-git/doc/guix.texi:30141
  44751. 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."
  44752. msgstr ""
  44753. #. type: deftypevr
  44754. #: guix-git/doc/guix.texi:30146
  44755. #, no-wrap
  44756. msgid "{@code{cgit-configuration} parameter} boolean enable-html-serving?"
  44757. msgstr ""
  44758. #. type: deftypevr
  44759. #: guix-git/doc/guix.texi:30150
  44760. 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."
  44761. msgstr ""
  44762. #. type: deftypevr
  44763. #: guix-git/doc/guix.texi:30155
  44764. #, no-wrap
  44765. msgid "{@code{cgit-configuration} parameter} boolean enable-tree-linenumbers?"
  44766. msgstr ""
  44767. #. type: deftypevr
  44768. #: guix-git/doc/guix.texi:30158
  44769. msgid "Flag which, when set to @samp{#t}, will make cgit generate linenumber links for plaintext blobs printed in the tree view."
  44770. msgstr ""
  44771. #. type: deftypevr
  44772. #: guix-git/doc/guix.texi:30163
  44773. #, no-wrap
  44774. msgid "{@code{cgit-configuration} parameter} boolean enable-git-config?"
  44775. msgstr ""
  44776. #. type: deftypevr
  44777. #: guix-git/doc/guix.texi:30166
  44778. msgid "Flag which, when set to @samp{#f}, will allow cgit to use Git config to set any repo specific settings."
  44779. msgstr ""
  44780. #. type: deftypevr
  44781. #: guix-git/doc/guix.texi:30171
  44782. #, no-wrap
  44783. msgid "{@code{cgit-configuration} parameter} file-object favicon"
  44784. msgstr ""
  44785. #. type: deftypevr
  44786. #: guix-git/doc/guix.texi:30173
  44787. msgid "URL used as link to a shortcut icon for cgit."
  44788. msgstr ""
  44789. #. type: deftypevr
  44790. #: guix-git/doc/guix.texi:30175
  44791. msgid "Defaults to @samp{\"/favicon.ico\"}."
  44792. msgstr ""
  44793. #. type: deftypevr
  44794. #: guix-git/doc/guix.texi:30178
  44795. #, no-wrap
  44796. msgid "{@code{cgit-configuration} parameter} string footer"
  44797. msgstr ""
  44798. #. type: deftypevr
  44799. #: guix-git/doc/guix.texi:30182
  44800. 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)."
  44801. msgstr ""
  44802. #. type: deftypevr
  44803. #: guix-git/doc/guix.texi:30187
  44804. #, no-wrap
  44805. msgid "{@code{cgit-configuration} parameter} string head-include"
  44806. msgstr ""
  44807. #. type: deftypevr
  44808. #: guix-git/doc/guix.texi:30190
  44809. msgid "The content of the file specified with this option will be included verbatim in the HTML HEAD section on all pages."
  44810. msgstr ""
  44811. #. type: deftypevr
  44812. #: guix-git/doc/guix.texi:30195
  44813. #, no-wrap
  44814. msgid "{@code{cgit-configuration} parameter} string header"
  44815. msgstr ""
  44816. #. type: deftypevr
  44817. #: guix-git/doc/guix.texi:30198
  44818. msgid "The content of the file specified with this option will be included verbatim at the top of all pages."
  44819. msgstr ""
  44820. #. type: deftypevr
  44821. #: guix-git/doc/guix.texi:30203
  44822. #, no-wrap
  44823. msgid "{@code{cgit-configuration} parameter} file-object include"
  44824. msgstr ""
  44825. #. type: deftypevr
  44826. #: guix-git/doc/guix.texi:30206
  44827. msgid "Name of a configfile to include before the rest of the current config- file is parsed."
  44828. msgstr ""
  44829. #. type: deftypevr
  44830. #: guix-git/doc/guix.texi:30211
  44831. #, no-wrap
  44832. msgid "{@code{cgit-configuration} parameter} string index-header"
  44833. msgstr ""
  44834. #. type: deftypevr
  44835. #: guix-git/doc/guix.texi:30214
  44836. msgid "The content of the file specified with this option will be included verbatim above the repository index."
  44837. msgstr ""
  44838. #. type: deftypevr
  44839. #: guix-git/doc/guix.texi:30219
  44840. #, no-wrap
  44841. msgid "{@code{cgit-configuration} parameter} string index-info"
  44842. msgstr ""
  44843. #. type: deftypevr
  44844. #: guix-git/doc/guix.texi:30222
  44845. msgid "The content of the file specified with this option will be included verbatim below the heading on the repository index page."
  44846. msgstr ""
  44847. #. type: deftypevr
  44848. #: guix-git/doc/guix.texi:30227
  44849. #, no-wrap
  44850. msgid "{@code{cgit-configuration} parameter} boolean local-time?"
  44851. msgstr ""
  44852. #. type: deftypevr
  44853. #: guix-git/doc/guix.texi:30230
  44854. msgid "Flag which, if set to @samp{#t}, makes cgit print commit and tag times in the servers timezone."
  44855. msgstr ""
  44856. #. type: deftypevr
  44857. #: guix-git/doc/guix.texi:30235
  44858. #, no-wrap
  44859. msgid "{@code{cgit-configuration} parameter} file-object logo"
  44860. msgstr ""
  44861. #. type: deftypevr
  44862. #: guix-git/doc/guix.texi:30238
  44863. msgid "URL which specifies the source of an image which will be used as a logo on all cgit pages."
  44864. msgstr ""
  44865. #. type: deftypevr
  44866. #: guix-git/doc/guix.texi:30240
  44867. msgid "Defaults to @samp{\"/share/cgit/cgit.png\"}."
  44868. msgstr ""
  44869. #. type: deftypevr
  44870. #: guix-git/doc/guix.texi:30243
  44871. #, no-wrap
  44872. msgid "{@code{cgit-configuration} parameter} string logo-link"
  44873. msgstr ""
  44874. #. type: deftypevr
  44875. #: guix-git/doc/guix.texi:30245 guix-git/doc/guix.texi:30702
  44876. msgid "URL loaded when clicking on the cgit logo image."
  44877. msgstr ""
  44878. #. type: deftypevr
  44879. #: guix-git/doc/guix.texi:30250
  44880. #, no-wrap
  44881. msgid "{@code{cgit-configuration} parameter} file-object owner-filter"
  44882. msgstr ""
  44883. #. type: deftypevr
  44884. #: guix-git/doc/guix.texi:30253
  44885. msgid "Command which will be invoked to format the Owner column of the main page."
  44886. msgstr ""
  44887. #. type: deftypevr
  44888. #: guix-git/doc/guix.texi:30258
  44889. #, no-wrap
  44890. msgid "{@code{cgit-configuration} parameter} integer max-atom-items"
  44891. msgstr ""
  44892. #. type: deftypevr
  44893. #: guix-git/doc/guix.texi:30260
  44894. msgid "Number of items to display in atom feeds view."
  44895. msgstr ""
  44896. #. type: deftypevr
  44897. #: guix-git/doc/guix.texi:30265
  44898. #, no-wrap
  44899. msgid "{@code{cgit-configuration} parameter} integer max-commit-count"
  44900. msgstr ""
  44901. #. type: deftypevr
  44902. #: guix-git/doc/guix.texi:30267
  44903. msgid "Number of entries to list per page in \"log\" view."
  44904. msgstr ""
  44905. #. type: deftypevr
  44906. #: guix-git/doc/guix.texi:30272
  44907. #, no-wrap
  44908. msgid "{@code{cgit-configuration} parameter} integer max-message-length"
  44909. msgstr ""
  44910. #. type: deftypevr
  44911. #: guix-git/doc/guix.texi:30274
  44912. msgid "Number of commit message characters to display in \"log\" view."
  44913. msgstr ""
  44914. #. type: deftypevr
  44915. #: guix-git/doc/guix.texi:30276 guix-git/doc/guix.texi:30292
  44916. msgid "Defaults to @samp{80}."
  44917. msgstr ""
  44918. #. type: deftypevr
  44919. #: guix-git/doc/guix.texi:30279
  44920. #, no-wrap
  44921. msgid "{@code{cgit-configuration} parameter} integer max-repo-count"
  44922. msgstr ""
  44923. #. type: deftypevr
  44924. #: guix-git/doc/guix.texi:30282
  44925. msgid "Specifies the number of entries to list per page on the repository index page."
  44926. msgstr ""
  44927. #. type: deftypevr
  44928. #: guix-git/doc/guix.texi:30287
  44929. #, no-wrap
  44930. msgid "{@code{cgit-configuration} parameter} integer max-repodesc-length"
  44931. msgstr ""
  44932. #. type: deftypevr
  44933. #: guix-git/doc/guix.texi:30290
  44934. msgid "Specifies the maximum number of repo description characters to display on the repository index page."
  44935. msgstr ""
  44936. #. type: deftypevr
  44937. #: guix-git/doc/guix.texi:30295
  44938. #, no-wrap
  44939. msgid "{@code{cgit-configuration} parameter} integer max-blob-size"
  44940. msgstr ""
  44941. #. type: deftypevr
  44942. #: guix-git/doc/guix.texi:30297
  44943. msgid "Specifies the maximum size of a blob to display HTML for in KBytes."
  44944. msgstr ""
  44945. #. type: deftypevr
  44946. #: guix-git/doc/guix.texi:30302
  44947. #, no-wrap
  44948. msgid "{@code{cgit-configuration} parameter} string max-stats"
  44949. msgstr ""
  44950. #. type: deftypevr
  44951. #: guix-git/doc/guix.texi:30305
  44952. msgid "Maximum statistics period. Valid values are @samp{week},@samp{month}, @samp{quarter} and @samp{year}."
  44953. msgstr ""
  44954. #. type: deftypevr
  44955. #: guix-git/doc/guix.texi:30310
  44956. #, no-wrap
  44957. msgid "{@code{cgit-configuration} parameter} mimetype-alist mimetype"
  44958. msgstr ""
  44959. #. type: deftypevr
  44960. #: guix-git/doc/guix.texi:30312
  44961. msgid "Mimetype for the specified filename extension."
  44962. msgstr ""
  44963. #. type: deftypevr
  44964. #: guix-git/doc/guix.texi:30316
  44965. 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\"))}."
  44966. msgstr ""
  44967. #. type: deftypevr
  44968. #: guix-git/doc/guix.texi:30319
  44969. #, no-wrap
  44970. msgid "{@code{cgit-configuration} parameter} file-object mimetype-file"
  44971. msgstr ""
  44972. #. type: deftypevr
  44973. #: guix-git/doc/guix.texi:30321
  44974. msgid "Specifies the file to use for automatic mimetype lookup."
  44975. msgstr ""
  44976. #. type: deftypevr
  44977. #: guix-git/doc/guix.texi:30326
  44978. #, no-wrap
  44979. msgid "{@code{cgit-configuration} parameter} string module-link"
  44980. msgstr ""
  44981. #. type: deftypevr
  44982. #: guix-git/doc/guix.texi:30329
  44983. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing."
  44984. msgstr ""
  44985. #. type: deftypevr
  44986. #: guix-git/doc/guix.texi:30334
  44987. #, no-wrap
  44988. msgid "{@code{cgit-configuration} parameter} boolean nocache?"
  44989. msgstr ""
  44990. #. type: deftypevr
  44991. #: guix-git/doc/guix.texi:30336
  44992. msgid "If set to the value @samp{#t} caching will be disabled."
  44993. msgstr ""
  44994. #. type: deftypevr
  44995. #: guix-git/doc/guix.texi:30341
  44996. #, no-wrap
  44997. msgid "{@code{cgit-configuration} parameter} boolean noplainemail?"
  44998. msgstr ""
  44999. #. type: deftypevr
  45000. #: guix-git/doc/guix.texi:30344
  45001. msgid "If set to @samp{#t} showing full author email addresses will be disabled."
  45002. msgstr ""
  45003. #. type: deftypevr
  45004. #: guix-git/doc/guix.texi:30349
  45005. #, no-wrap
  45006. msgid "{@code{cgit-configuration} parameter} boolean noheader?"
  45007. msgstr ""
  45008. #. type: deftypevr
  45009. #: guix-git/doc/guix.texi:30352
  45010. msgid "Flag which, when set to @samp{#t}, will make cgit omit the standard header on all pages."
  45011. msgstr ""
  45012. #. type: deftypevr
  45013. #: guix-git/doc/guix.texi:30357
  45014. #, no-wrap
  45015. msgid "{@code{cgit-configuration} parameter} project-list project-list"
  45016. msgstr ""
  45017. #. type: deftypevr
  45018. #: guix-git/doc/guix.texi:30361
  45019. 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."
  45020. msgstr ""
  45021. #. type: deftypevr
  45022. #: guix-git/doc/guix.texi:30366
  45023. #, no-wrap
  45024. msgid "{@code{cgit-configuration} parameter} file-object readme"
  45025. msgstr ""
  45026. #. type: deftypevr
  45027. #: guix-git/doc/guix.texi:30368
  45028. msgid "Text which will be used as default value for @code{cgit-repo-readme}."
  45029. msgstr ""
  45030. #. type: deftypevr
  45031. #: guix-git/doc/guix.texi:30373
  45032. #, no-wrap
  45033. msgid "{@code{cgit-configuration} parameter} boolean remove-suffix?"
  45034. msgstr ""
  45035. #. type: deftypevr
  45036. #: guix-git/doc/guix.texi:30377
  45037. 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."
  45038. msgstr ""
  45039. #. type: deftypevr
  45040. #: guix-git/doc/guix.texi:30382
  45041. #, no-wrap
  45042. msgid "{@code{cgit-configuration} parameter} integer renamelimit"
  45043. msgstr ""
  45044. #. type: deftypevr
  45045. #: guix-git/doc/guix.texi:30384
  45046. msgid "Maximum number of files to consider when detecting renames."
  45047. msgstr ""
  45048. #. type: deftypevr
  45049. #: guix-git/doc/guix.texi:30389
  45050. #, no-wrap
  45051. msgid "{@code{cgit-configuration} parameter} string repository-sort"
  45052. msgstr ""
  45053. #. type: deftypevr
  45054. #: guix-git/doc/guix.texi:30391
  45055. msgid "The way in which repositories in each section are sorted."
  45056. msgstr ""
  45057. #. type: deftypevr
  45058. #: guix-git/doc/guix.texi:30396
  45059. #, no-wrap
  45060. msgid "{@code{cgit-configuration} parameter} robots-list robots"
  45061. msgstr ""
  45062. #. type: deftypevr
  45063. #: guix-git/doc/guix.texi:30398
  45064. msgid "Text used as content for the @code{robots} meta-tag."
  45065. msgstr ""
  45066. #. type: deftypevr
  45067. #: guix-git/doc/guix.texi:30400
  45068. msgid "Defaults to @samp{(\"noindex\" \"nofollow\")}."
  45069. msgstr ""
  45070. #. type: deftypevr
  45071. #: guix-git/doc/guix.texi:30403
  45072. #, no-wrap
  45073. msgid "{@code{cgit-configuration} parameter} string root-desc"
  45074. msgstr ""
  45075. #. type: deftypevr
  45076. #: guix-git/doc/guix.texi:30405
  45077. msgid "Text printed below the heading on the repository index page."
  45078. msgstr ""
  45079. #. type: deftypevr
  45080. #: guix-git/doc/guix.texi:30407
  45081. msgid "Defaults to @samp{\"a fast webinterface for the git dscm\"}."
  45082. msgstr ""
  45083. #. type: deftypevr
  45084. #: guix-git/doc/guix.texi:30410
  45085. #, no-wrap
  45086. msgid "{@code{cgit-configuration} parameter} string root-readme"
  45087. msgstr ""
  45088. #. type: deftypevr
  45089. #: guix-git/doc/guix.texi:30413
  45090. msgid "The content of the file specified with this option will be included verbatim below the ``about'' link on the repository index page."
  45091. msgstr ""
  45092. #. type: deftypevr
  45093. #: guix-git/doc/guix.texi:30418
  45094. #, no-wrap
  45095. msgid "{@code{cgit-configuration} parameter} string root-title"
  45096. msgstr ""
  45097. #. type: deftypevr
  45098. #: guix-git/doc/guix.texi:30420
  45099. msgid "Text printed as heading on the repository index page."
  45100. msgstr ""
  45101. #. type: deftypevr
  45102. #: guix-git/doc/guix.texi:30425
  45103. #, no-wrap
  45104. msgid "{@code{cgit-configuration} parameter} boolean scan-hidden-path"
  45105. msgstr ""
  45106. #. type: deftypevr
  45107. #: guix-git/doc/guix.texi:30431
  45108. 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."
  45109. msgstr ""
  45110. #. type: deftypevr
  45111. #: guix-git/doc/guix.texi:30436
  45112. #, no-wrap
  45113. msgid "{@code{cgit-configuration} parameter} list snapshots"
  45114. msgstr ""
  45115. #. type: deftypevr
  45116. #: guix-git/doc/guix.texi:30439
  45117. msgid "Text which specifies the default set of snapshot formats that cgit generates links for."
  45118. msgstr ""
  45119. #. type: deftypevr
  45120. #: guix-git/doc/guix.texi:30444
  45121. #, no-wrap
  45122. msgid "{@code{cgit-configuration} parameter} repository-directory repository-directory"
  45123. msgstr ""
  45124. #. type: deftypevr
  45125. #: guix-git/doc/guix.texi:30447
  45126. msgid "Name of the directory to scan for repositories (represents @code{scan-path})."
  45127. msgstr ""
  45128. #. type: deftypevr
  45129. #: guix-git/doc/guix.texi:30449
  45130. msgid "Defaults to @samp{\"/srv/git\"}."
  45131. msgstr ""
  45132. #. type: deftypevr
  45133. #: guix-git/doc/guix.texi:30452
  45134. #, no-wrap
  45135. msgid "{@code{cgit-configuration} parameter} string section"
  45136. msgstr ""
  45137. #. type: deftypevr
  45138. #: guix-git/doc/guix.texi:30455 guix-git/doc/guix.texi:30771
  45139. msgid "The name of the current repository section - all repositories defined after this option will inherit the current section name."
  45140. msgstr ""
  45141. #. type: deftypevr
  45142. #: guix-git/doc/guix.texi:30460
  45143. #, no-wrap
  45144. msgid "{@code{cgit-configuration} parameter} string section-sort"
  45145. msgstr ""
  45146. #. type: deftypevr
  45147. #: guix-git/doc/guix.texi:30463
  45148. msgid "Flag which, when set to @samp{1}, will sort the sections on the repository listing by name."
  45149. msgstr ""
  45150. #. type: deftypevr
  45151. #: guix-git/doc/guix.texi:30468
  45152. #, no-wrap
  45153. msgid "{@code{cgit-configuration} parameter} integer section-from-path"
  45154. msgstr ""
  45155. #. type: deftypevr
  45156. #: guix-git/doc/guix.texi:30471
  45157. 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."
  45158. msgstr ""
  45159. #. type: deftypevr
  45160. #: guix-git/doc/guix.texi:30476
  45161. #, no-wrap
  45162. msgid "{@code{cgit-configuration} parameter} boolean side-by-side-diffs?"
  45163. msgstr ""
  45164. #. type: deftypevr
  45165. #: guix-git/doc/guix.texi:30479
  45166. msgid "If set to @samp{#t} shows side-by-side diffs instead of unidiffs per default."
  45167. msgstr ""
  45168. #. type: deftypevr
  45169. #: guix-git/doc/guix.texi:30484
  45170. #, no-wrap
  45171. msgid "{@code{cgit-configuration} parameter} file-object source-filter"
  45172. msgstr ""
  45173. #. type: deftypevr
  45174. #: guix-git/doc/guix.texi:30487
  45175. msgid "Specifies a command which will be invoked to format plaintext blobs in the tree view."
  45176. msgstr ""
  45177. #. type: deftypevr
  45178. #: guix-git/doc/guix.texi:30492
  45179. #, no-wrap
  45180. msgid "{@code{cgit-configuration} parameter} integer summary-branches"
  45181. msgstr ""
  45182. #. type: deftypevr
  45183. #: guix-git/doc/guix.texi:30495
  45184. msgid "Specifies the number of branches to display in the repository ``summary'' view."
  45185. msgstr ""
  45186. #. type: deftypevr
  45187. #: guix-git/doc/guix.texi:30500
  45188. #, no-wrap
  45189. msgid "{@code{cgit-configuration} parameter} integer summary-log"
  45190. msgstr ""
  45191. #. type: deftypevr
  45192. #: guix-git/doc/guix.texi:30503
  45193. msgid "Specifies the number of log entries to display in the repository ``summary'' view."
  45194. msgstr ""
  45195. #. type: deftypevr
  45196. #: guix-git/doc/guix.texi:30508
  45197. #, no-wrap
  45198. msgid "{@code{cgit-configuration} parameter} integer summary-tags"
  45199. msgstr ""
  45200. #. type: deftypevr
  45201. #: guix-git/doc/guix.texi:30511
  45202. msgid "Specifies the number of tags to display in the repository ``summary'' view."
  45203. msgstr ""
  45204. #. type: deftypevr
  45205. #: guix-git/doc/guix.texi:30516
  45206. #, no-wrap
  45207. msgid "{@code{cgit-configuration} parameter} string strict-export"
  45208. msgstr ""
  45209. #. type: deftypevr
  45210. #: guix-git/doc/guix.texi:30519
  45211. msgid "Filename which, if specified, needs to be present within the repository for cgit to allow access to that repository."
  45212. msgstr ""
  45213. #. type: deftypevr
  45214. #: guix-git/doc/guix.texi:30524
  45215. #, no-wrap
  45216. msgid "{@code{cgit-configuration} parameter} string virtual-root"
  45217. msgstr ""
  45218. #. type: deftypevr
  45219. #: guix-git/doc/guix.texi:30526
  45220. msgid "URL which, if specified, will be used as root for all cgit links."
  45221. msgstr ""
  45222. #. type: deftypevr
  45223. #: guix-git/doc/guix.texi:30528
  45224. msgid "Defaults to @samp{\"/\"}."
  45225. msgstr ""
  45226. #. type: deftypevr
  45227. #: guix-git/doc/guix.texi:30531
  45228. #, no-wrap
  45229. msgid "{@code{cgit-configuration} parameter} repository-cgit-configuration-list repositories"
  45230. msgstr ""
  45231. #. type: deftypevr
  45232. #: guix-git/doc/guix.texi:30533
  45233. msgid "A list of @dfn{cgit-repo} records to use with config."
  45234. msgstr ""
  45235. #. type: deftypevr
  45236. #: guix-git/doc/guix.texi:30537
  45237. msgid "Available @code{repository-cgit-configuration} fields are:"
  45238. msgstr ""
  45239. #. type: deftypevr
  45240. #: guix-git/doc/guix.texi:30538
  45241. #, no-wrap
  45242. msgid "{@code{repository-cgit-configuration} parameter} repo-list snapshots"
  45243. msgstr ""
  45244. #. type: deftypevr
  45245. #: guix-git/doc/guix.texi:30541
  45246. msgid "A mask of snapshot formats for this repo that cgit generates links for, restricted by the global @code{snapshots} setting."
  45247. msgstr ""
  45248. #. type: deftypevr
  45249. #: guix-git/doc/guix.texi:30546
  45250. #, no-wrap
  45251. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object source-filter"
  45252. msgstr ""
  45253. #. type: deftypevr
  45254. #: guix-git/doc/guix.texi:30548
  45255. msgid "Override the default @code{source-filter}."
  45256. msgstr ""
  45257. #. type: deftypevr
  45258. #: guix-git/doc/guix.texi:30553
  45259. #, no-wrap
  45260. msgid "{@code{repository-cgit-configuration} parameter} repo-string url"
  45261. msgstr ""
  45262. #. type: deftypevr
  45263. #: guix-git/doc/guix.texi:30555
  45264. msgid "The relative URL used to access the repository."
  45265. msgstr ""
  45266. #. type: deftypevr
  45267. #: guix-git/doc/guix.texi:30560
  45268. #, no-wrap
  45269. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object about-filter"
  45270. msgstr ""
  45271. #. type: deftypevr
  45272. #: guix-git/doc/guix.texi:30562
  45273. msgid "Override the default @code{about-filter}."
  45274. msgstr ""
  45275. #. type: deftypevr
  45276. #: guix-git/doc/guix.texi:30567
  45277. #, no-wrap
  45278. msgid "{@code{repository-cgit-configuration} parameter} repo-string branch-sort"
  45279. msgstr ""
  45280. #. type: deftypevr
  45281. #: guix-git/doc/guix.texi:30570
  45282. 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."
  45283. msgstr ""
  45284. #. type: deftypevr
  45285. #: guix-git/doc/guix.texi:30575
  45286. #, no-wrap
  45287. msgid "{@code{repository-cgit-configuration} parameter} repo-list clone-url"
  45288. msgstr ""
  45289. #. type: deftypevr
  45290. #: guix-git/doc/guix.texi:30577
  45291. msgid "A list of URLs which can be used to clone repo."
  45292. msgstr ""
  45293. #. type: deftypevr
  45294. #: guix-git/doc/guix.texi:30582
  45295. #, no-wrap
  45296. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object commit-filter"
  45297. msgstr ""
  45298. #. type: deftypevr
  45299. #: guix-git/doc/guix.texi:30584
  45300. msgid "Override the default @code{commit-filter}."
  45301. msgstr ""
  45302. #. type: deftypevr
  45303. #: guix-git/doc/guix.texi:30589
  45304. #, no-wrap
  45305. msgid "{@code{repository-cgit-configuration} parameter} repo-string commit-sort"
  45306. msgstr ""
  45307. #. type: deftypevr
  45308. #: guix-git/doc/guix.texi:30598
  45309. #, no-wrap
  45310. msgid "{@code{repository-cgit-configuration} parameter} repo-string defbranch"
  45311. msgstr ""
  45312. #. type: deftypevr
  45313. #: guix-git/doc/guix.texi:30603
  45314. 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."
  45315. msgstr ""
  45316. #. type: deftypevr
  45317. #: guix-git/doc/guix.texi:30608
  45318. #, no-wrap
  45319. msgid "{@code{repository-cgit-configuration} parameter} repo-string desc"
  45320. msgstr ""
  45321. #. type: deftypevr
  45322. #: guix-git/doc/guix.texi:30610
  45323. msgid "The value to show as repository description."
  45324. msgstr ""
  45325. #. type: deftypevr
  45326. #: guix-git/doc/guix.texi:30615
  45327. #, no-wrap
  45328. msgid "{@code{repository-cgit-configuration} parameter} repo-string homepage"
  45329. msgstr ""
  45330. #. type: deftypevr
  45331. #: guix-git/doc/guix.texi:30617
  45332. msgid "The value to show as repository homepage."
  45333. msgstr ""
  45334. #. type: deftypevr
  45335. #: guix-git/doc/guix.texi:30622
  45336. #, no-wrap
  45337. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object email-filter"
  45338. msgstr ""
  45339. #. type: deftypevr
  45340. #: guix-git/doc/guix.texi:30624
  45341. msgid "Override the default @code{email-filter}."
  45342. msgstr ""
  45343. #. type: deftypevr
  45344. #: guix-git/doc/guix.texi:30629
  45345. #, no-wrap
  45346. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-commit-graph?"
  45347. msgstr ""
  45348. #. type: deftypevr
  45349. #: guix-git/doc/guix.texi:30632
  45350. msgid "A flag which can be used to disable the global setting @code{enable-commit-graph?}."
  45351. msgstr ""
  45352. #. type: deftypevr
  45353. #: guix-git/doc/guix.texi:30637
  45354. #, no-wrap
  45355. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-filecount?"
  45356. msgstr ""
  45357. #. type: deftypevr
  45358. #: guix-git/doc/guix.texi:30640
  45359. msgid "A flag which can be used to disable the global setting @code{enable-log-filecount?}."
  45360. msgstr ""
  45361. #. type: deftypevr
  45362. #: guix-git/doc/guix.texi:30645
  45363. #, no-wrap
  45364. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-linecount?"
  45365. msgstr ""
  45366. #. type: deftypevr
  45367. #: guix-git/doc/guix.texi:30648
  45368. msgid "A flag which can be used to disable the global setting @code{enable-log-linecount?}."
  45369. msgstr ""
  45370. #. type: deftypevr
  45371. #: guix-git/doc/guix.texi:30653
  45372. #, no-wrap
  45373. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-remote-branches?"
  45374. msgstr ""
  45375. #. type: deftypevr
  45376. #: guix-git/doc/guix.texi:30661
  45377. #, no-wrap
  45378. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-subject-links?"
  45379. msgstr ""
  45380. #. type: deftypevr
  45381. #: guix-git/doc/guix.texi:30664
  45382. msgid "A flag which can be used to override the global setting @code{enable-subject-links?}."
  45383. msgstr ""
  45384. #. type: deftypevr
  45385. #: guix-git/doc/guix.texi:30669
  45386. #, no-wrap
  45387. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-html-serving?"
  45388. msgstr ""
  45389. #. type: deftypevr
  45390. #: guix-git/doc/guix.texi:30672
  45391. msgid "A flag which can be used to override the global setting @code{enable-html-serving?}."
  45392. msgstr ""
  45393. #. type: deftypevr
  45394. #: guix-git/doc/guix.texi:30677
  45395. #, no-wrap
  45396. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean hide?"
  45397. msgstr ""
  45398. #. type: deftypevr
  45399. #: guix-git/doc/guix.texi:30680
  45400. msgid "Flag which, when set to @code{#t}, hides the repository from the repository index."
  45401. msgstr ""
  45402. #. type: deftypevr
  45403. #: guix-git/doc/guix.texi:30685
  45404. #, no-wrap
  45405. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean ignore?"
  45406. msgstr ""
  45407. #. type: deftypevr
  45408. #: guix-git/doc/guix.texi:30687
  45409. msgid "Flag which, when set to @samp{#t}, ignores the repository."
  45410. msgstr ""
  45411. #. type: deftypevr
  45412. #: guix-git/doc/guix.texi:30692
  45413. #, no-wrap
  45414. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object logo"
  45415. msgstr ""
  45416. #. type: deftypevr
  45417. #: guix-git/doc/guix.texi:30695
  45418. msgid "URL which specifies the source of an image which will be used as a logo on this repo’s pages."
  45419. msgstr ""
  45420. #. type: deftypevr
  45421. #: guix-git/doc/guix.texi:30700
  45422. #, no-wrap
  45423. msgid "{@code{repository-cgit-configuration} parameter} repo-string logo-link"
  45424. msgstr ""
  45425. #. type: deftypevr
  45426. #: guix-git/doc/guix.texi:30707
  45427. #, no-wrap
  45428. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object owner-filter"
  45429. msgstr ""
  45430. #. type: deftypevr
  45431. #: guix-git/doc/guix.texi:30709
  45432. msgid "Override the default @code{owner-filter}."
  45433. msgstr ""
  45434. #. type: deftypevr
  45435. #: guix-git/doc/guix.texi:30714
  45436. #, no-wrap
  45437. msgid "{@code{repository-cgit-configuration} parameter} repo-string module-link"
  45438. msgstr ""
  45439. #. type: deftypevr
  45440. #: guix-git/doc/guix.texi:30718
  45441. 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."
  45442. msgstr ""
  45443. #. type: deftypevr
  45444. #: guix-git/doc/guix.texi:30723
  45445. #, no-wrap
  45446. msgid "{@code{repository-cgit-configuration} parameter} module-link-path module-link-path"
  45447. msgstr ""
  45448. #. type: deftypevr
  45449. #: guix-git/doc/guix.texi:30727
  45450. 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."
  45451. msgstr ""
  45452. #. type: deftypevr
  45453. #: guix-git/doc/guix.texi:30732
  45454. #, no-wrap
  45455. msgid "{@code{repository-cgit-configuration} parameter} repo-string max-stats"
  45456. msgstr ""
  45457. #. type: deftypevr
  45458. #: guix-git/doc/guix.texi:30734
  45459. msgid "Override the default maximum statistics period."
  45460. msgstr ""
  45461. #. type: deftypevr
  45462. #: guix-git/doc/guix.texi:30739
  45463. #, no-wrap
  45464. msgid "{@code{repository-cgit-configuration} parameter} repo-string name"
  45465. msgstr ""
  45466. #. type: deftypevr
  45467. #: guix-git/doc/guix.texi:30741
  45468. msgid "The value to show as repository name."
  45469. msgstr ""
  45470. #. type: deftypevr
  45471. #: guix-git/doc/guix.texi:30746
  45472. #, no-wrap
  45473. msgid "{@code{repository-cgit-configuration} parameter} repo-string owner"
  45474. msgstr ""
  45475. #. type: deftypevr
  45476. #: guix-git/doc/guix.texi:30748
  45477. msgid "A value used to identify the owner of the repository."
  45478. msgstr ""
  45479. #. type: deftypevr
  45480. #: guix-git/doc/guix.texi:30753
  45481. #, no-wrap
  45482. msgid "{@code{repository-cgit-configuration} parameter} repo-string path"
  45483. msgstr ""
  45484. #. type: deftypevr
  45485. #: guix-git/doc/guix.texi:30755
  45486. msgid "An absolute path to the repository directory."
  45487. msgstr ""
  45488. #. type: deftypevr
  45489. #: guix-git/doc/guix.texi:30760
  45490. #, no-wrap
  45491. msgid "{@code{repository-cgit-configuration} parameter} repo-string readme"
  45492. msgstr ""
  45493. #. type: deftypevr
  45494. #: guix-git/doc/guix.texi:30763
  45495. msgid "A path (relative to repo) which specifies a file to include verbatim as the ``About'' page for this repo."
  45496. msgstr ""
  45497. #. type: deftypevr
  45498. #: guix-git/doc/guix.texi:30768
  45499. #, no-wrap
  45500. msgid "{@code{repository-cgit-configuration} parameter} repo-string section"
  45501. msgstr ""
  45502. #. type: deftypevr
  45503. #: guix-git/doc/guix.texi:30776
  45504. #, no-wrap
  45505. msgid "{@code{repository-cgit-configuration} parameter} repo-list extra-options"
  45506. msgstr ""
  45507. #. type: deftypevr
  45508. #: guix-git/doc/guix.texi:30778 guix-git/doc/guix.texi:30787
  45509. msgid "Extra options will be appended to cgitrc file."
  45510. msgstr ""
  45511. #. type: deftypevr
  45512. #: guix-git/doc/guix.texi:30785
  45513. #, no-wrap
  45514. msgid "{@code{cgit-configuration} parameter} list extra-options"
  45515. msgstr ""
  45516. #. type: Plain text
  45517. #: guix-git/doc/guix.texi:30799
  45518. 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."
  45519. msgstr ""
  45520. #. type: Plain text
  45521. #: guix-git/doc/guix.texi:30801
  45522. msgid "Available @code{opaque-cgit-configuration} fields are:"
  45523. msgstr ""
  45524. #. type: deftypevr
  45525. #: guix-git/doc/guix.texi:30802
  45526. #, no-wrap
  45527. msgid "{@code{opaque-cgit-configuration} parameter} package cgit"
  45528. msgstr ""
  45529. #. type: deftypevr
  45530. #: guix-git/doc/guix.texi:30804
  45531. msgid "The cgit package."
  45532. msgstr ""
  45533. #. type: deftypevr
  45534. #: guix-git/doc/guix.texi:30806
  45535. #, no-wrap
  45536. msgid "{@code{opaque-cgit-configuration} parameter} string string"
  45537. msgstr ""
  45538. #. type: deftypevr
  45539. #: guix-git/doc/guix.texi:30808
  45540. msgid "The contents of the @code{cgitrc}, as a string."
  45541. msgstr ""
  45542. #. type: Plain text
  45543. #: guix-git/doc/guix.texi:30812
  45544. msgid "For example, if your @code{cgitrc} is just the empty string, you could instantiate a cgit service like this:"
  45545. msgstr ""
  45546. #. type: lisp
  45547. #: guix-git/doc/guix.texi:30817
  45548. #, no-wrap
  45549. msgid ""
  45550. "(service cgit-service-type\n"
  45551. " (opaque-cgit-configuration\n"
  45552. " (cgitrc \"\")))\n"
  45553. msgstr ""
  45554. #. type: subsubheading
  45555. #: guix-git/doc/guix.texi:30819
  45556. #, no-wrap
  45557. msgid "Gitolite Service"
  45558. msgstr ""
  45559. #. type: cindex
  45560. #: guix-git/doc/guix.texi:30821
  45561. #, no-wrap
  45562. msgid "Gitolite service"
  45563. msgstr ""
  45564. #. type: cindex
  45565. #: guix-git/doc/guix.texi:30822
  45566. #, no-wrap
  45567. msgid "Git, hosting"
  45568. msgstr ""
  45569. #. type: Plain text
  45570. #: guix-git/doc/guix.texi:30825
  45571. msgid "@uref{https://gitolite.com/gitolite/, Gitolite} is a tool for hosting Git repositories on a central server."
  45572. msgstr ""
  45573. #. type: Plain text
  45574. #: guix-git/doc/guix.texi:30828
  45575. msgid "Gitolite can handle multiple repositories and users, and supports flexible configuration of the permissions for the users on the repositories."
  45576. msgstr ""
  45577. #. type: Plain text
  45578. #: guix-git/doc/guix.texi:30831
  45579. msgid "The following example will configure Gitolite using the default @code{git} user, and the provided SSH public key."
  45580. msgstr ""
  45581. #. type: lisp
  45582. #: guix-git/doc/guix.texi:30838
  45583. #, no-wrap
  45584. msgid ""
  45585. "(service gitolite-service-type\n"
  45586. " (gitolite-configuration\n"
  45587. " (admin-pubkey (plain-file\n"
  45588. " \"yourname.pub\"\n"
  45589. " \"ssh-rsa AAAA... guix@@example.com\"))))\n"
  45590. msgstr ""
  45591. #. type: Plain text
  45592. #: guix-git/doc/guix.texi:30843
  45593. 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."
  45594. msgstr ""
  45595. #. type: example
  45596. #: guix-git/doc/guix.texi:30846
  45597. #, no-wrap
  45598. msgid "git clone git@@example.com:gitolite-admin\n"
  45599. msgstr ""
  45600. #. type: Plain text
  45601. #: guix-git/doc/guix.texi:30852
  45602. 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''."
  45603. msgstr ""
  45604. #. type: deftp
  45605. #: guix-git/doc/guix.texi:30853
  45606. #, no-wrap
  45607. msgid "{Data Type} gitolite-configuration"
  45608. msgstr ""
  45609. #. type: deftp
  45610. #: guix-git/doc/guix.texi:30855
  45611. msgid "Data type representing the configuration for @code{gitolite-service-type}."
  45612. msgstr ""
  45613. #. type: item
  45614. #: guix-git/doc/guix.texi:30857
  45615. #, no-wrap
  45616. msgid "@code{package} (default: @var{gitolite})"
  45617. msgstr ""
  45618. #. type: table
  45619. #: guix-git/doc/guix.texi:30859
  45620. msgid "Gitolite package to use."
  45621. msgstr ""
  45622. #. type: item
  45623. #: guix-git/doc/guix.texi:30860
  45624. #, no-wrap
  45625. msgid "@code{user} (default: @var{git})"
  45626. msgstr ""
  45627. #. type: table
  45628. #: guix-git/doc/guix.texi:30863
  45629. msgid "User to use for Gitolite. This will be user that you use when accessing Gitolite over SSH."
  45630. msgstr ""
  45631. #. type: item
  45632. #: guix-git/doc/guix.texi:30864
  45633. #, no-wrap
  45634. msgid "@code{group} (default: @var{git})"
  45635. msgstr ""
  45636. #. type: table
  45637. #: guix-git/doc/guix.texi:30866
  45638. msgid "Group to use for Gitolite."
  45639. msgstr ""
  45640. #. type: item
  45641. #: guix-git/doc/guix.texi:30867
  45642. #, no-wrap
  45643. msgid "@code{home-directory} (default: @var{\"/var/lib/gitolite\"})"
  45644. msgstr ""
  45645. #. type: table
  45646. #: guix-git/doc/guix.texi:30869
  45647. msgid "Directory in which to store the Gitolite configuration and repositories."
  45648. msgstr ""
  45649. #. type: item
  45650. #: guix-git/doc/guix.texi:30870
  45651. #, no-wrap
  45652. msgid "@code{rc-file} (default: @var{(gitolite-rc-file)})"
  45653. msgstr ""
  45654. #. type: table
  45655. #: guix-git/doc/guix.texi:30873
  45656. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}), representing the configuration for Gitolite."
  45657. msgstr ""
  45658. #. type: item
  45659. #: guix-git/doc/guix.texi:30874
  45660. #, no-wrap
  45661. msgid "@code{admin-pubkey} (default: @var{#f})"
  45662. msgstr ""
  45663. #. type: table
  45664. #: guix-git/doc/guix.texi:30878
  45665. 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."
  45666. msgstr ""
  45667. #. type: table
  45668. #: guix-git/doc/guix.texi:30880
  45669. msgid "To specify the SSH key as a string, use the @code{plain-file} function."
  45670. msgstr ""
  45671. #. type: lisp
  45672. #: guix-git/doc/guix.texi:30883
  45673. #, no-wrap
  45674. msgid "(plain-file \"yourname.pub\" \"ssh-rsa AAAA... guix@@example.com\")\n"
  45675. msgstr ""
  45676. #. type: deftp
  45677. #: guix-git/doc/guix.texi:30888
  45678. #, no-wrap
  45679. msgid "{Data Type} gitolite-rc-file"
  45680. msgstr ""
  45681. #. type: deftp
  45682. #: guix-git/doc/guix.texi:30890
  45683. msgid "Data type representing the Gitolite RC file."
  45684. msgstr ""
  45685. #. type: item
  45686. #: guix-git/doc/guix.texi:30892
  45687. #, no-wrap
  45688. msgid "@code{umask} (default: @code{#o0077})"
  45689. msgstr ""
  45690. #. type: table
  45691. #: guix-git/doc/guix.texi:30895
  45692. msgid "This controls the permissions Gitolite sets on the repositories and their contents."
  45693. msgstr ""
  45694. #. type: table
  45695. #: guix-git/doc/guix.texi:30899
  45696. 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."
  45697. msgstr ""
  45698. #. type: item
  45699. #: guix-git/doc/guix.texi:30900
  45700. #, no-wrap
  45701. msgid "@code{git-config-keys} (default: @code{\"\"})"
  45702. msgstr ""
  45703. #. type: table
  45704. #: guix-git/doc/guix.texi:30903
  45705. msgid "Gitolite allows you to set git config values using the @samp{config} keyword. This setting allows control over the config keys to accept."
  45706. msgstr ""
  45707. #. type: item
  45708. #: guix-git/doc/guix.texi:30904
  45709. #, no-wrap
  45710. msgid "@code{roles} (default: @code{'((\"READERS\" . 1) (\"WRITERS\" . ))})"
  45711. msgstr ""
  45712. #. type: table
  45713. #: guix-git/doc/guix.texi:30906
  45714. msgid "Set the role names allowed to be used by users running the perms command."
  45715. msgstr ""
  45716. #. type: item
  45717. #: guix-git/doc/guix.texi:30907
  45718. #, no-wrap
  45719. msgid "@code{enable} (default: @code{'(\"help\" \"desc\" \"info\" \"perms\" \"writable\" \"ssh-authkeys\" \"git-config\" \"daemon\" \"gitweb\")})"
  45720. msgstr ""
  45721. #. type: table
  45722. #: guix-git/doc/guix.texi:30909
  45723. msgid "This setting controls the commands and features to enable within Gitolite."
  45724. msgstr ""
  45725. #. type: subsubheading
  45726. #: guix-git/doc/guix.texi:30917
  45727. #, no-wrap
  45728. msgid "The Battle for Wesnoth Service"
  45729. msgstr ""
  45730. #. type: cindex
  45731. #: guix-git/doc/guix.texi:30918
  45732. #, no-wrap
  45733. msgid "wesnothd"
  45734. msgstr ""
  45735. #. type: Plain text
  45736. #: guix-git/doc/guix.texi:30922
  45737. 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)."
  45738. msgstr ""
  45739. #. type: defvar
  45740. #: guix-git/doc/guix.texi:30923
  45741. #, no-wrap
  45742. msgid "{Scheme Variable} wesnothd-service-type"
  45743. msgstr ""
  45744. #. type: defvar
  45745. #: guix-git/doc/guix.texi:30927
  45746. 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:"
  45747. msgstr ""
  45748. #. type: lisp
  45749. #: guix-git/doc/guix.texi:30930
  45750. #, no-wrap
  45751. msgid "(service wesnothd-service-type)\n"
  45752. msgstr ""
  45753. #. type: deftp
  45754. #: guix-git/doc/guix.texi:30933
  45755. #, no-wrap
  45756. msgid "{Data Type} wesnothd-configuration"
  45757. msgstr ""
  45758. #. type: deftp
  45759. #: guix-git/doc/guix.texi:30935
  45760. msgid "Data type representing the configuration of @command{wesnothd}."
  45761. msgstr ""
  45762. #. type: item
  45763. #: guix-git/doc/guix.texi:30937
  45764. #, no-wrap
  45765. msgid "@code{package} (default: @code{wesnoth-server})"
  45766. msgstr ""
  45767. #. type: table
  45768. #: guix-git/doc/guix.texi:30939
  45769. msgid "The wesnoth server package to use."
  45770. msgstr ""
  45771. #. type: item
  45772. #: guix-git/doc/guix.texi:30940
  45773. #, no-wrap
  45774. msgid "@code{port} (default: @code{15000})"
  45775. msgstr ""
  45776. #. type: table
  45777. #: guix-git/doc/guix.texi:30942
  45778. msgid "The port to bind the server to."
  45779. msgstr ""
  45780. #. type: cindex
  45781. #: guix-git/doc/guix.texi:30948
  45782. #, no-wrap
  45783. msgid "pam-mount"
  45784. msgstr ""
  45785. #. type: Plain text
  45786. #: guix-git/doc/guix.texi:30953
  45787. 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."
  45788. msgstr ""
  45789. #. type: defvar
  45790. #: guix-git/doc/guix.texi:30954
  45791. #, no-wrap
  45792. msgid "{Scheme Variable} pam-mount-service-type"
  45793. msgstr ""
  45794. #. type: defvar
  45795. #: guix-git/doc/guix.texi:30956
  45796. msgid "Service type for PAM Mount support."
  45797. msgstr ""
  45798. #. type: deftp
  45799. #: guix-git/doc/guix.texi:30958
  45800. #, no-wrap
  45801. msgid "{Data Type} pam-mount-configuration"
  45802. msgstr ""
  45803. #. type: deftp
  45804. #: guix-git/doc/guix.texi:30960
  45805. #, fuzzy
  45806. msgid "Data type representing the configuration of PAM Mount."
  45807. msgstr "管理操作系统配置。"
  45808. #. type: code{#1}
  45809. #: guix-git/doc/guix.texi:30964
  45810. #, fuzzy, no-wrap
  45811. msgid "rules"
  45812. msgstr "模块"
  45813. #. type: table
  45814. #: guix-git/doc/guix.texi:30967
  45815. msgid "The configuration rules that will be used to generate @file{/etc/security/pam_mount.conf.xml}."
  45816. msgstr ""
  45817. #. type: table
  45818. #: guix-git/doc/guix.texi:30971
  45819. 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:"
  45820. msgstr ""
  45821. #. type: lisp
  45822. #: guix-git/doc/guix.texi:30986
  45823. #, no-wrap
  45824. msgid ""
  45825. "`((debug (@@ (enable \"0\")))\n"
  45826. " (mntoptions (@@ (allow ,(string-join\n"
  45827. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  45828. " \"encryption\" \"fsck\" \"nonempty\"\n"
  45829. " \"allow_root\" \"allow_other\")\n"
  45830. " \",\"))))\n"
  45831. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  45832. " (logout (@@ (wait \"0\")\n"
  45833. " (hup \"0\")\n"
  45834. " (term \"no\")\n"
  45835. " (kill \"no\")))\n"
  45836. " (mkmountpoint (@@ (enable \"1\")\n"
  45837. " (remove \"true\"))))\n"
  45838. msgstr ""
  45839. #. type: table
  45840. #: guix-git/doc/guix.texi:30992
  45841. 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:"
  45842. msgstr ""
  45843. #. type: lisp
  45844. #: guix-git/doc/guix.texi:31017
  45845. #, no-wrap
  45846. msgid ""
  45847. "(define pam-mount-rules\n"
  45848. "`((debug (@@ (enable \"0\")))\n"
  45849. " (volume (@@ (user \"alice\")\n"
  45850. " (fstype \"crypt\")\n"
  45851. " (path \"/dev/sda2\")\n"
  45852. " (mountpoint \"/home/alice\")))\n"
  45853. " (volume (@@ (user \"bob\")\n"
  45854. " (fstype \"auto\")\n"
  45855. " (path \"/dev/sdb3\")\n"
  45856. " (mountpoint \"/home/bob/data\")\n"
  45857. " (options \"defaults,autodefrag,compress\")))\n"
  45858. " (mntoptions (@@ (allow ,(string-join\n"
  45859. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  45860. " \"encryption\" \"fsck\" \"nonempty\"\n"
  45861. " \"allow_root\" \"allow_other\")\n"
  45862. " \",\"))))\n"
  45863. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  45864. " (logout (@@ (wait \"0\")\n"
  45865. " (hup \"0\")\n"
  45866. " (term \"no\")\n"
  45867. " (kill \"no\")))\n"
  45868. " (mkmountpoint (@@ (enable \"1\")\n"
  45869. " (remove \"true\")))))\n"
  45870. "\n"
  45871. msgstr ""
  45872. #. type: lisp
  45873. #: guix-git/doc/guix.texi:31021
  45874. #, no-wrap
  45875. msgid ""
  45876. "(service pam-mount-service-type\n"
  45877. " (pam-mount-configuration\n"
  45878. " (rules pam-mount-rules)))\n"
  45879. msgstr ""
  45880. #. type: table
  45881. #: guix-git/doc/guix.texi:31025
  45882. 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}."
  45883. msgstr ""
  45884. #. type: subsubheading
  45885. #: guix-git/doc/guix.texi:31032
  45886. #, no-wrap
  45887. msgid "Guix Build Coordinator"
  45888. msgstr ""
  45889. #. type: Plain text
  45890. #: guix-git/doc/guix.texi:31038
  45891. 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."
  45892. msgstr ""
  45893. #. type: quotation
  45894. #: guix-git/doc/guix.texi:31043
  45895. msgid "This service is considered experimental. Configuration options may be changed in a backwards-incompatible manner, and not all features have been thorougly tested."
  45896. msgstr ""
  45897. #. type: Plain text
  45898. #: guix-git/doc/guix.texi:31050
  45899. 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."
  45900. msgstr ""
  45901. #. type: Plain text
  45902. #: guix-git/doc/guix.texi:31054
  45903. 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."
  45904. msgstr ""
  45905. #. type: defvar
  45906. #: guix-git/doc/guix.texi:31055
  45907. #, no-wrap
  45908. msgid "{Scheme Variable} guix-build-coordinator-service-type"
  45909. msgstr ""
  45910. #. type: defvar
  45911. #: guix-git/doc/guix.texi:31058
  45912. msgid "Service type for the Guix Build Coordinator. Its value must be a @code{guix-build-coordinator-configuration} object."
  45913. msgstr ""
  45914. #. type: deftp
  45915. #: guix-git/doc/guix.texi:31060
  45916. #, fuzzy, no-wrap
  45917. msgid "{Data Type} guix-build-coordinator-configuration"
  45918. msgstr "{数据类型} build-machine"
  45919. #. type: deftp
  45920. #: guix-git/doc/guix.texi:31062
  45921. msgid "Data type representing the configuration of the Guix Build Coordinator."
  45922. msgstr ""
  45923. #. type: item
  45924. #: guix-git/doc/guix.texi:31064 guix-git/doc/guix.texi:31108
  45925. #: guix-git/doc/guix.texi:31225
  45926. #, fuzzy, no-wrap
  45927. msgid "@code{package} (default: @code{guix-build-coordinator})"
  45928. msgstr "@code{gnome}(默认值:@code{gnome})"
  45929. #. type: table
  45930. #: guix-git/doc/guix.texi:31066 guix-git/doc/guix.texi:31110
  45931. #: guix-git/doc/guix.texi:31227
  45932. msgid "The Guix Build Coordinator package to use."
  45933. msgstr ""
  45934. #. type: item
  45935. #: guix-git/doc/guix.texi:31067
  45936. #, fuzzy, no-wrap
  45937. msgid "@code{user} (default: @code{\"guix-build-coordinator\"})"
  45938. msgstr "@code{gnome}(默认值:@code{gnome})"
  45939. #. type: table
  45940. #: guix-git/doc/guix.texi:31069 guix-git/doc/guix.texi:31113
  45941. #: guix-git/doc/guix.texi:31230 guix-git/doc/guix.texi:31276
  45942. #, fuzzy
  45943. msgid "The system user to run the service as."
  45944. msgstr "mcron服务。"
  45945. #. type: item
  45946. #: guix-git/doc/guix.texi:31070
  45947. #, fuzzy, no-wrap
  45948. msgid "@code{group} (default: @code{\"guix-build-coordinator\"})"
  45949. msgstr "@code{gnome}(默认值:@code{gnome})"
  45950. #. type: table
  45951. #: guix-git/doc/guix.texi:31072 guix-git/doc/guix.texi:31279
  45952. msgid "The system group to run the service as."
  45953. msgstr ""
  45954. #. type: item
  45955. #: guix-git/doc/guix.texi:31073
  45956. #, no-wrap
  45957. msgid "@code{database-uri-string} (default: @code{\"sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db\"})"
  45958. msgstr ""
  45959. #. type: table
  45960. #: guix-git/doc/guix.texi:31075
  45961. msgid "The URI to use for the database."
  45962. msgstr ""
  45963. #. type: item
  45964. #: guix-git/doc/guix.texi:31076
  45965. #, fuzzy, no-wrap
  45966. msgid "@code{agent-communication-uri} (default: @code{\"http://0.0.0.0:8745\"})"
  45967. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  45968. #. type: table
  45969. #: guix-git/doc/guix.texi:31078
  45970. msgid "The URI describing how to listen to requests from agent processes."
  45971. msgstr ""
  45972. #. type: item
  45973. #: guix-git/doc/guix.texi:31079
  45974. #, fuzzy, no-wrap
  45975. msgid "@code{client-communication-uri} (default: @code{\"http://127.0.0.1:8746\"})"
  45976. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  45977. #. type: table
  45978. #: guix-git/doc/guix.texi:31083
  45979. 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."
  45980. msgstr ""
  45981. #. type: item
  45982. #: guix-git/doc/guix.texi:31084
  45983. #, no-wrap
  45984. msgid "@code{allocation-strategy} (default: @code{#~basic-build-allocation-strategy})"
  45985. msgstr ""
  45986. #. type: table
  45987. #: guix-git/doc/guix.texi:31088
  45988. 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."
  45989. msgstr ""
  45990. #. type: item
  45991. #: guix-git/doc/guix.texi:31089
  45992. #, fuzzy, no-wrap
  45993. msgid "@code{hooks} (default: @var{'()})"
  45994. msgstr "@code{features} (@code{'()})"
  45995. #. type: table
  45996. #: guix-git/doc/guix.texi:31092
  45997. msgid "An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed."
  45998. msgstr ""
  45999. #. type: item
  46000. #: guix-git/doc/guix.texi:31093
  46001. #, fuzzy, no-wrap
  46002. msgid "@code{guile} (default: @code{guile-3.0-latest})"
  46003. msgstr "@code{mate}(默认值:@code{mate})"
  46004. #. type: table
  46005. #: guix-git/doc/guix.texi:31095
  46006. msgid "The Guile package with which to run the Guix Build Coordinator."
  46007. msgstr ""
  46008. #. type: defvar
  46009. #: guix-git/doc/guix.texi:31099
  46010. #, no-wrap
  46011. msgid "{Scheme Variable} guix-build-coordinator-agent-service-type"
  46012. msgstr ""
  46013. #. type: defvar
  46014. #: guix-git/doc/guix.texi:31102
  46015. msgid "Service type for a Guix Build Coordinator agent. Its value must be a @code{guix-build-coordinator-agent-configuration} object."
  46016. msgstr ""
  46017. #. type: deftp
  46018. #: guix-git/doc/guix.texi:31104
  46019. #, no-wrap
  46020. msgid "{Data Type} guix-build-coordinator-agent-configuration"
  46021. msgstr ""
  46022. #. type: deftp
  46023. #: guix-git/doc/guix.texi:31106
  46024. msgid "Data type representing the configuration a Guix Build Coordinator agent."
  46025. msgstr ""
  46026. #. type: item
  46027. #: guix-git/doc/guix.texi:31111
  46028. #, fuzzy, no-wrap
  46029. msgid "@code{user} (default: @code{\"guix-build-coordinator-agent\"})"
  46030. msgstr "@code{gnome}(默认值:@code{gnome})"
  46031. #. type: item
  46032. #: guix-git/doc/guix.texi:31114 guix-git/doc/guix.texi:31231
  46033. #, fuzzy, no-wrap
  46034. msgid "@code{coordinator} (default: @code{\"http://localhost:8745\"})"
  46035. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  46036. #. type: table
  46037. #: guix-git/doc/guix.texi:31116 guix-git/doc/guix.texi:31233
  46038. msgid "The URI to use when connecting to the coordinator."
  46039. msgstr ""
  46040. #. type: code{#1}
  46041. #: guix-git/doc/guix.texi:31117
  46042. #, fuzzy, no-wrap
  46043. msgid "authentication"
  46044. msgstr "验证substitute"
  46045. #. type: table
  46046. #: guix-git/doc/guix.texi:31120
  46047. msgid "Record describing how this agent should authenticate with the coordinator. Possible record types are described below."
  46048. msgstr ""
  46049. #. type: item
  46050. #: guix-git/doc/guix.texi:31121 guix-git/doc/guix.texi:31234
  46051. #, fuzzy, no-wrap
  46052. msgid "@code{systems} (default: @code{#f})"
  46053. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  46054. #. type: table
  46055. #: guix-git/doc/guix.texi:31124
  46056. 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."
  46057. msgstr ""
  46058. #. type: item
  46059. #: guix-git/doc/guix.texi:31125
  46060. #, fuzzy, no-wrap
  46061. msgid "@code{max-parallel-builds} (default: @code{1})"
  46062. msgstr "@code{parallel-builds}(默认值:@code{1})"
  46063. #. type: table
  46064. #: guix-git/doc/guix.texi:31127
  46065. #, fuzzy
  46066. msgid "The number of builds to perform in parallel."
  46067. msgstr "那台机器上可以并行运行的构建任务数量。"
  46068. #. type: item
  46069. #: guix-git/doc/guix.texi:31128
  46070. #, fuzzy, no-wrap
  46071. msgid "@code{derivation-substitute-urls} (default: @code{#f})"
  46072. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  46073. #. type: table
  46074. #: guix-git/doc/guix.texi:31131
  46075. msgid "URLs from which to attempt to fetch substitutes for derivations, if the derivations aren't already available."
  46076. msgstr ""
  46077. #. type: item
  46078. #: guix-git/doc/guix.texi:31132
  46079. #, fuzzy, no-wrap
  46080. msgid "@code{non-derivation-substitute-urls} (default: @code{#f})"
  46081. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  46082. #. type: table
  46083. #: guix-git/doc/guix.texi:31135
  46084. msgid "URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren't already available."
  46085. msgstr ""
  46086. #. type: deftp
  46087. #: guix-git/doc/guix.texi:31139
  46088. #, fuzzy, no-wrap
  46089. msgid "{Data Type} guix-build-coordinator-agent-password-auth"
  46090. msgstr "{数据类型} build-machine"
  46091. #. type: deftp
  46092. #: guix-git/doc/guix.texi:31142
  46093. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password."
  46094. msgstr ""
  46095. #. type: table
  46096. #: guix-git/doc/guix.texi:31148 guix-git/doc/guix.texi:31164
  46097. 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."
  46098. msgstr ""
  46099. #. type: table
  46100. #: guix-git/doc/guix.texi:31151
  46101. msgid "The password to use when connecting to the coordinator."
  46102. msgstr ""
  46103. #. type: deftp
  46104. #: guix-git/doc/guix.texi:31155
  46105. #, fuzzy, no-wrap
  46106. msgid "{Data Type} guix-build-coordinator-agent-password-file-auth"
  46107. msgstr "{数据类型} build-machine"
  46108. #. type: deftp
  46109. #: guix-git/doc/guix.texi:31158
  46110. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password read from a file."
  46111. msgstr ""
  46112. #. type: code{#1}
  46113. #: guix-git/doc/guix.texi:31165
  46114. #, no-wrap
  46115. msgid "password-file"
  46116. msgstr ""
  46117. #. type: table
  46118. #: guix-git/doc/guix.texi:31168
  46119. msgid "A file containing the password to use when connecting to the coordinator."
  46120. msgstr ""
  46121. #. type: deftp
  46122. #: guix-git/doc/guix.texi:31172
  46123. #, fuzzy, no-wrap
  46124. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth"
  46125. msgstr "{数据类型} build-machine"
  46126. #. type: deftp
  46127. #: guix-git/doc/guix.texi:31175
  46128. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token and agent name."
  46129. msgstr ""
  46130. #. type: code{#1}
  46131. #: guix-git/doc/guix.texi:31177 guix-git/doc/guix.texi:31194
  46132. #, fuzzy, no-wrap
  46133. msgid "agent-name"
  46134. msgstr "通道"
  46135. #. type: table
  46136. #: guix-git/doc/guix.texi:31181 guix-git/doc/guix.texi:31198
  46137. 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."
  46138. msgstr ""
  46139. #. type: code{#1}
  46140. #: guix-git/doc/guix.texi:31182
  46141. #, no-wrap
  46142. msgid "token"
  46143. msgstr ""
  46144. #. type: table
  46145. #: guix-git/doc/guix.texi:31185
  46146. msgid "Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  46147. msgstr ""
  46148. #. type: deftp
  46149. #: guix-git/doc/guix.texi:31189
  46150. #, fuzzy, no-wrap
  46151. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth-with-file"
  46152. msgstr "{数据类型} build-machine"
  46153. #. type: deftp
  46154. #: guix-git/doc/guix.texi:31192
  46155. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token read from a file and agent name."
  46156. msgstr ""
  46157. #. type: code{#1}
  46158. #: guix-git/doc/guix.texi:31199
  46159. #, no-wrap
  46160. msgid "token-file"
  46161. msgstr ""
  46162. #. type: table
  46163. #: guix-git/doc/guix.texi:31202
  46164. msgid "File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  46165. msgstr ""
  46166. #. type: Plain text
  46167. #: guix-git/doc/guix.texi:31212
  46168. 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."
  46169. msgstr ""
  46170. #. type: defvar
  46171. #: guix-git/doc/guix.texi:31213
  46172. #, no-wrap
  46173. msgid "{Scheme Variable} guix-build-coordinator-queue-builds-service-type"
  46174. msgstr ""
  46175. #. type: defvar
  46176. #: guix-git/doc/guix.texi:31218
  46177. 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."
  46178. msgstr ""
  46179. #. type: deftp
  46180. #: guix-git/doc/guix.texi:31220
  46181. #, no-wrap
  46182. msgid "{Data Type} guix-build-coordinator-queue-builds-configuration"
  46183. msgstr ""
  46184. #. type: deftp
  46185. #: guix-git/doc/guix.texi:31223
  46186. msgid "Data type representing the options to the queue builds from guix data service script."
  46187. msgstr ""
  46188. #. type: item
  46189. #: guix-git/doc/guix.texi:31228
  46190. #, fuzzy, no-wrap
  46191. msgid "@code{user} (default: @code{\"guix-build-coordinator-queue-builds\"})"
  46192. msgstr "@code{gnome}(默认值:@code{gnome})"
  46193. #. type: table
  46194. #: guix-git/doc/guix.texi:31236
  46195. msgid "The systems for which to fetch derivations to build."
  46196. msgstr ""
  46197. #. type: item
  46198. #: guix-git/doc/guix.texi:31237
  46199. #, fuzzy, no-wrap
  46200. msgid "@code{systems-and-targets} (default: @code{#f})"
  46201. msgstr "@code{challenge}(默认值:@code{#f})"
  46202. #. type: table
  46203. #: guix-git/doc/guix.texi:31240
  46204. msgid "An association list of system and target pairs for which to fetch derivations to build."
  46205. msgstr ""
  46206. #. type: item
  46207. #: guix-git/doc/guix.texi:31241
  46208. #, no-wrap
  46209. msgid "@code{guix-data-service} (default: @code{\"https://data.guix.gnu.org\"})"
  46210. msgstr ""
  46211. #. type: table
  46212. #: guix-git/doc/guix.texi:31244
  46213. msgid "The Guix Data Service instance from which to query to find out about derivations to build."
  46214. msgstr ""
  46215. #. type: item
  46216. #: guix-git/doc/guix.texi:31245
  46217. #, no-wrap
  46218. msgid "@code{processed-commits-file} (default: @code{\"/var/cache/guix-build-coordinator-queue-builds/processed-commits\"})"
  46219. msgstr ""
  46220. #. type: table
  46221. #: guix-git/doc/guix.texi:31248
  46222. msgid "A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted."
  46223. msgstr ""
  46224. #. type: subsubheading
  46225. #: guix-git/doc/guix.texi:31252
  46226. #, fuzzy, no-wrap
  46227. msgid "Guix Data Service"
  46228. msgstr "数据库服务"
  46229. #. type: Plain text
  46230. #: guix-git/doc/guix.texi:31256
  46231. 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."
  46232. msgstr ""
  46233. #. type: Plain text
  46234. #: guix-git/doc/guix.texi:31259
  46235. msgid "The data is stored in a PostgreSQL database, and available through a web interface."
  46236. msgstr ""
  46237. #. type: defvar
  46238. #: guix-git/doc/guix.texi:31260
  46239. #, no-wrap
  46240. msgid "{Scheme Variable} guix-data-service-type"
  46241. msgstr ""
  46242. #. type: defvar
  46243. #: guix-git/doc/guix.texi:31265
  46244. 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."
  46245. msgstr ""
  46246. #. type: deftp
  46247. #: guix-git/doc/guix.texi:31267
  46248. #, no-wrap
  46249. msgid "{Data Type} guix-data-service-configuration"
  46250. msgstr ""
  46251. #. type: deftp
  46252. #: guix-git/doc/guix.texi:31269
  46253. msgid "Data type representing the configuration of the Guix Data Service."
  46254. msgstr ""
  46255. #. type: item
  46256. #: guix-git/doc/guix.texi:31271
  46257. #, fuzzy, no-wrap
  46258. msgid "@code{package} (default: @code{guix-data-service})"
  46259. msgstr "@code{xfce}(默认值:@code{xfce})"
  46260. #. type: table
  46261. #: guix-git/doc/guix.texi:31273
  46262. msgid "The Guix Data Service package to use."
  46263. msgstr ""
  46264. #. type: item
  46265. #: guix-git/doc/guix.texi:31274
  46266. #, fuzzy, no-wrap
  46267. msgid "@code{user} (default: @code{\"guix-data-service\"})"
  46268. msgstr "@code{xfce}(默认值:@code{xfce})"
  46269. #. type: item
  46270. #: guix-git/doc/guix.texi:31277
  46271. #, fuzzy, no-wrap
  46272. msgid "@code{group} (default: @code{\"guix-data-service\"})"
  46273. msgstr "@code{gnome}(默认值:@code{gnome})"
  46274. #. type: item
  46275. #: guix-git/doc/guix.texi:31280
  46276. #, fuzzy, no-wrap
  46277. msgid "@code{port} (default: @code{8765})"
  46278. msgstr "@code{port}(默认值:@code{22})"
  46279. #. type: table
  46280. #: guix-git/doc/guix.texi:31282
  46281. #, fuzzy
  46282. msgid "The port to bind the web service to."
  46283. msgstr "rottlog服务。"
  46284. #. type: item
  46285. #: guix-git/doc/guix.texi:31283
  46286. #, fuzzy, no-wrap
  46287. msgid "@code{host} (default: @code{\"127.0.0.1\"})"
  46288. msgstr "@code{speed}(默认值:@code{1.0})"
  46289. #. type: table
  46290. #: guix-git/doc/guix.texi:31285
  46291. #, fuzzy
  46292. msgid "The host to bind the web service to."
  46293. msgstr "rottlog服务。"
  46294. #. type: item
  46295. #: guix-git/doc/guix.texi:31286
  46296. #, fuzzy, no-wrap
  46297. msgid "@code{getmail-idle-mailboxes} (default: @code{#f})"
  46298. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  46299. #. type: table
  46300. #: guix-git/doc/guix.texi:31289
  46301. msgid "If set, this is the list of mailboxes that the getmail service will be configured to listen to."
  46302. msgstr ""
  46303. #. type: item
  46304. #: guix-git/doc/guix.texi:31290
  46305. #, fuzzy, no-wrap
  46306. msgid "@code{commits-getmail-retriever-configuration} (default: @code{#f})"
  46307. msgstr "@code{journal-content}(默认值:@code{#f})"
  46308. #. type: table
  46309. #: guix-git/doc/guix.texi:31294
  46310. 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."
  46311. msgstr ""
  46312. #. type: item
  46313. #: guix-git/doc/guix.texi:31295
  46314. #, no-wrap
  46315. msgid "@code{extra-options} (default: @var{'()})"
  46316. msgstr ""
  46317. #. type: table
  46318. #: guix-git/doc/guix.texi:31297
  46319. msgid "Extra command line options for @code{guix-data-service}."
  46320. msgstr ""
  46321. #. type: item
  46322. #: guix-git/doc/guix.texi:31298
  46323. #, fuzzy, no-wrap
  46324. msgid "@code{extra-process-jobs-options} (default: @var{'()})"
  46325. msgstr "@code{features} (@code{'()})"
  46326. #. type: table
  46327. #: guix-git/doc/guix.texi:31300
  46328. msgid "Extra command line options for @code{guix-data-service-process-jobs}."
  46329. msgstr ""
  46330. #. type: cindex
  46331. #: guix-git/doc/guix.texi:31307
  46332. #, no-wrap
  46333. msgid "oom"
  46334. msgstr ""
  46335. #. type: cindex
  46336. #: guix-git/doc/guix.texi:31308
  46337. #, no-wrap
  46338. msgid "out of memory killer"
  46339. msgstr ""
  46340. #. type: cindex
  46341. #: guix-git/doc/guix.texi:31309
  46342. #, no-wrap
  46343. msgid "earlyoom"
  46344. msgstr ""
  46345. #. type: cindex
  46346. #: guix-git/doc/guix.texi:31310
  46347. #, no-wrap
  46348. msgid "early out of memory daemon"
  46349. msgstr ""
  46350. #. type: subsubheading
  46351. #: guix-git/doc/guix.texi:31311
  46352. #, fuzzy, no-wrap
  46353. msgid "Early OOM Service"
  46354. msgstr "邮件服务"
  46355. #. type: Plain text
  46356. #: guix-git/doc/guix.texi:31318
  46357. 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."
  46358. msgstr ""
  46359. #. type: deffn
  46360. #: guix-git/doc/guix.texi:31319
  46361. #, no-wrap
  46362. msgid "{Scheme Variable} earlyoom-service-type"
  46363. msgstr ""
  46364. #. type: deffn
  46365. #: guix-git/doc/guix.texi:31324
  46366. 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:"
  46367. msgstr ""
  46368. #. type: lisp
  46369. #: guix-git/doc/guix.texi:31327
  46370. #, no-wrap
  46371. msgid "(service earlyoom-service-type)\n"
  46372. msgstr ""
  46373. #. type: deftp
  46374. #: guix-git/doc/guix.texi:31330
  46375. #, no-wrap
  46376. msgid "{Data Type} earlyoom-configuration"
  46377. msgstr ""
  46378. #. type: deftp
  46379. #: guix-git/doc/guix.texi:31332
  46380. msgid "This is the configuration record for the @code{earlyoom-service-type}."
  46381. msgstr ""
  46382. #. type: item
  46383. #: guix-git/doc/guix.texi:31334
  46384. #, fuzzy, no-wrap
  46385. msgid "@code{earlyoom} (default: @var{earlyoom})"
  46386. msgstr "@code{gnome}(默认值:@code{gnome})"
  46387. #. type: table
  46388. #: guix-git/doc/guix.texi:31336
  46389. #, fuzzy
  46390. msgid "The Earlyoom package to use."
  46391. msgstr "软件包数据类型。"
  46392. #. type: item
  46393. #: guix-git/doc/guix.texi:31337
  46394. #, fuzzy, no-wrap
  46395. msgid "@code{minimum-available-memory} (default: @code{10})"
  46396. msgstr "@code{parallel-builds}(默认值:@code{1})"
  46397. #. type: table
  46398. #: guix-git/doc/guix.texi:31339
  46399. msgid "The threshold for the minimum @emph{available} memory, in percentages."
  46400. msgstr ""
  46401. #. type: item
  46402. #: guix-git/doc/guix.texi:31340
  46403. #, fuzzy, no-wrap
  46404. msgid "@code{minimum-free-swap} (default: @code{10})"
  46405. msgstr "@code{speed}(默认值:@code{1.0})"
  46406. #. type: table
  46407. #: guix-git/doc/guix.texi:31342
  46408. msgid "The threshold for the minimum free swap memory, in percentages."
  46409. msgstr ""
  46410. #. type: item
  46411. #: guix-git/doc/guix.texi:31343
  46412. #, fuzzy, no-wrap
  46413. msgid "@code{prefer-regexp} (default: @code{#f})"
  46414. msgstr "@code{challenge}(默认值:@code{#f})"
  46415. #. type: table
  46416. #: guix-git/doc/guix.texi:31346
  46417. msgid "A regular expression (as a string) to match the names of the processes that should be preferably killed."
  46418. msgstr ""
  46419. #. type: item
  46420. #: guix-git/doc/guix.texi:31347
  46421. #, fuzzy, no-wrap
  46422. msgid "@code{avoid-regexp} (default: @code{#f})"
  46423. msgstr "@code{challenge}(默认值:@code{#f})"
  46424. #. type: table
  46425. #: guix-git/doc/guix.texi:31350
  46426. msgid "A regular expression (as a string) to match the names of the processes that should @emph{not} be killed."
  46427. msgstr ""
  46428. #. type: item
  46429. #: guix-git/doc/guix.texi:31351
  46430. #, fuzzy, no-wrap
  46431. msgid "@code{memory-report-interval} (default: @code{0})"
  46432. msgstr "@code{port}(默认值:@code{22})"
  46433. #. type: table
  46434. #: guix-git/doc/guix.texi:31354
  46435. msgid "The interval in seconds at which a memory report is printed. It is disabled by default."
  46436. msgstr ""
  46437. #. type: item
  46438. #: guix-git/doc/guix.texi:31355
  46439. #, fuzzy, no-wrap
  46440. msgid "@code{ignore-positive-oom-score-adj?} (default: @code{#f})"
  46441. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  46442. #. type: table
  46443. #: guix-git/doc/guix.texi:31358
  46444. msgid "A boolean indicating whether the positive adjustments set in @file{/proc/*/oom_score_adj} should be ignored."
  46445. msgstr ""
  46446. #. type: item
  46447. #: guix-git/doc/guix.texi:31359
  46448. #, fuzzy, no-wrap
  46449. msgid "@code{show-debug-messages?} (default: @code{#f})"
  46450. msgstr "@code{challenge}(默认值:@code{#f})"
  46451. #. type: table
  46452. #: guix-git/doc/guix.texi:31362
  46453. msgid "A boolean indicating whether debug messages should be printed. The logs are saved at @file{/var/log/earlyoom.log}."
  46454. msgstr ""
  46455. #. type: item
  46456. #: guix-git/doc/guix.texi:31363
  46457. #, fuzzy, no-wrap
  46458. msgid "@code{send-notification-command} (default: @code{#f})"
  46459. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  46460. #. type: table
  46461. #: guix-git/doc/guix.texi:31366
  46462. msgid "This can be used to provide a custom command used for sending notifications."
  46463. msgstr ""
  46464. #. type: cindex
  46465. #: guix-git/doc/guix.texi:31369
  46466. #, no-wrap
  46467. msgid "modprobe"
  46468. msgstr ""
  46469. #. type: cindex
  46470. #: guix-git/doc/guix.texi:31370
  46471. #, no-wrap
  46472. msgid "kernel module loader"
  46473. msgstr ""
  46474. #. type: subsubheading
  46475. #: guix-git/doc/guix.texi:31371
  46476. #, no-wrap
  46477. msgid "Kernel Module Loader Service"
  46478. msgstr ""
  46479. #. type: Plain text
  46480. #: guix-git/doc/guix.texi:31377
  46481. 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 it's the case with @code{ddcci}."
  46482. msgstr ""
  46483. #. type: deffn
  46484. #: guix-git/doc/guix.texi:31378
  46485. #, no-wrap
  46486. msgid "{Scheme Variable} kernel-module-loader-service-type"
  46487. msgstr ""
  46488. #. type: deffn
  46489. #: guix-git/doc/guix.texi:31384
  46490. 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:"
  46491. msgstr ""
  46492. #. type: lisp
  46493. #: guix-git/doc/guix.texi:31389
  46494. #, no-wrap
  46495. msgid ""
  46496. "(use-modules (gnu) (gnu services))\n"
  46497. "(use-package-modules linux)\n"
  46498. "(use-service-modules linux)\n"
  46499. "\n"
  46500. msgstr ""
  46501. #. type: lisp
  46502. #: guix-git/doc/guix.texi:31393
  46503. #, no-wrap
  46504. msgid ""
  46505. "(define ddcci-config\n"
  46506. " (plain-file \"ddcci.conf\"\n"
  46507. " \"options ddcci dyndbg delay=120\"))\n"
  46508. "\n"
  46509. msgstr ""
  46510. #. type: lisp
  46511. #: guix-git/doc/guix.texi:31403
  46512. #, no-wrap
  46513. msgid ""
  46514. "(operating-system\n"
  46515. " ...\n"
  46516. " (services (cons* (service kernel-module-loader-service-type\n"
  46517. " '(\"ddcci\" \"ddcci_backlight\"))\n"
  46518. " (simple-service 'ddcci-config etc-service-type\n"
  46519. " (list `(\"modprobe.d/ddcci.conf\"\n"
  46520. " ,ddcci-config)))\n"
  46521. " %base-services))\n"
  46522. " (kernel-loadable-modules (list ddcci-driver-linux)))\n"
  46523. msgstr ""
  46524. #. type: cindex
  46525. #: guix-git/doc/guix.texi:31406
  46526. #, no-wrap
  46527. msgid "zram"
  46528. msgstr ""
  46529. #. type: cindex
  46530. #: guix-git/doc/guix.texi:31407
  46531. #, no-wrap
  46532. msgid "compressed swap"
  46533. msgstr ""
  46534. #. type: cindex
  46535. #: guix-git/doc/guix.texi:31408
  46536. #, no-wrap
  46537. msgid "Compressed RAM-based block devices"
  46538. msgstr ""
  46539. #. type: subsubheading
  46540. #: guix-git/doc/guix.texi:31409
  46541. #, fuzzy, no-wrap
  46542. msgid "Zram Device Service"
  46543. msgstr "游戏服务"
  46544. #. type: Plain text
  46545. #: guix-git/doc/guix.texi:31415
  46546. 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."
  46547. msgstr ""
  46548. #. type: deffn
  46549. #: guix-git/doc/guix.texi:31416
  46550. #, no-wrap
  46551. msgid "{Scheme Variable} zram-device-service-type"
  46552. msgstr ""
  46553. #. type: deffn
  46554. #: guix-git/doc/guix.texi:31420
  46555. 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."
  46556. msgstr ""
  46557. #. type: deftp
  46558. #: guix-git/doc/guix.texi:31421
  46559. #, no-wrap
  46560. msgid "{Data Type} zram-device-configuration"
  46561. msgstr ""
  46562. #. type: deftp
  46563. #: guix-git/doc/guix.texi:31424
  46564. msgid "This is the data type representing the configuration for the zram-device service."
  46565. msgstr ""
  46566. #. type: item
  46567. #: guix-git/doc/guix.texi:31426
  46568. #, fuzzy, no-wrap
  46569. msgid "@code{size} (default @code{\"1G\"})"
  46570. msgstr "@code{speed}(默认值:@code{1.0})"
  46571. #. type: table
  46572. #: guix-git/doc/guix.texi:31430
  46573. 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}."
  46574. msgstr ""
  46575. #. type: item
  46576. #: guix-git/doc/guix.texi:31430
  46577. #, fuzzy, no-wrap
  46578. msgid "@code{compression-algorithm} (default @code{'lzo})"
  46579. msgstr "@code{compression-level}(默认值:@code{3})"
  46580. #. type: table
  46581. #: guix-git/doc/guix.texi:31434
  46582. 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}."
  46583. msgstr ""
  46584. #. type: item
  46585. #: guix-git/doc/guix.texi:31434
  46586. #, fuzzy, no-wrap
  46587. msgid "@code{memory-limit} (default @code{0})"
  46588. msgstr "@code{port}(默认值:@code{22})"
  46589. #. type: table
  46590. #: guix-git/doc/guix.texi:31441
  46591. 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\"}."
  46592. msgstr ""
  46593. #. type: item
  46594. #: guix-git/doc/guix.texi:31441
  46595. #, fuzzy, no-wrap
  46596. msgid "@code{priority} (default @code{-1})"
  46597. msgstr "@code{port}(默认值:@code{22})"
  46598. #. type: table
  46599. #: guix-git/doc/guix.texi:31446
  46600. 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."
  46601. msgstr ""
  46602. #. type: defvr
  46603. #: guix-git/doc/guix.texi:31454
  46604. #, no-wrap
  46605. msgid "{Scheme Variable} hurd-console-service-type"
  46606. msgstr ""
  46607. #. type: defvr
  46608. #: guix-git/doc/guix.texi:31456
  46609. msgid "This service starts the fancy @code{VGA} console client on the Hurd."
  46610. msgstr ""
  46611. #. type: defvr
  46612. #: guix-git/doc/guix.texi:31458
  46613. msgid "The service's value is a @code{hurd-console-configuration} record."
  46614. msgstr ""
  46615. #. type: deftp
  46616. #: guix-git/doc/guix.texi:31460
  46617. #, no-wrap
  46618. msgid "{Data Type} hurd-console-configuration"
  46619. msgstr ""
  46620. #. type: deftp
  46621. #: guix-git/doc/guix.texi:31463
  46622. msgid "This is the data type representing the configuration for the hurd-console-service."
  46623. msgstr ""
  46624. #. type: item
  46625. #: guix-git/doc/guix.texi:31465 guix-git/doc/guix.texi:31481
  46626. #, fuzzy, no-wrap
  46627. msgid "@code{hurd} (default: @var{hurd})"
  46628. msgstr "@code{port}(默认值:@code{22})"
  46629. #. type: table
  46630. #: guix-git/doc/guix.texi:31467 guix-git/doc/guix.texi:31483
  46631. #, fuzzy
  46632. msgid "The Hurd package to use."
  46633. msgstr "软件包数据类型。"
  46634. #. type: defvr
  46635. #: guix-git/doc/guix.texi:31470
  46636. #, no-wrap
  46637. msgid "{Scheme Variable} hurd-getty-service-type"
  46638. msgstr ""
  46639. #. type: defvr
  46640. #: guix-git/doc/guix.texi:31472
  46641. msgid "This service starts a tty using the Hurd @code{getty} program."
  46642. msgstr ""
  46643. #. type: defvr
  46644. #: guix-git/doc/guix.texi:31474
  46645. msgid "The service's value is a @code{hurd-getty-configuration} record."
  46646. msgstr ""
  46647. #. type: deftp
  46648. #: guix-git/doc/guix.texi:31476
  46649. #, no-wrap
  46650. msgid "{Data Type} hurd-getty-configuration"
  46651. msgstr ""
  46652. #. type: deftp
  46653. #: guix-git/doc/guix.texi:31479
  46654. msgid "This is the data type representing the configuration for the hurd-getty-service."
  46655. msgstr ""
  46656. #. type: table
  46657. #: guix-git/doc/guix.texi:31486
  46658. msgid "The name of the console this Getty runs on---e.g., @code{\"tty1\"}."
  46659. msgstr ""
  46660. #. type: item
  46661. #: guix-git/doc/guix.texi:31487
  46662. #, fuzzy, no-wrap
  46663. msgid "@code{baud-rate} (default: @code{38400})"
  46664. msgstr "@code{mate}(默认值:@code{mate})"
  46665. #. type: table
  46666. #: guix-git/doc/guix.texi:31489
  46667. msgid "An integer specifying the baud rate of the tty."
  46668. msgstr ""
  46669. #. type: cindex
  46670. #: guix-git/doc/guix.texi:31496
  46671. #, no-wrap
  46672. msgid "fingerprint"
  46673. msgstr ""
  46674. #. type: subsubheading
  46675. #: guix-git/doc/guix.texi:31497
  46676. #, no-wrap
  46677. msgid "Fingerprint Service"
  46678. msgstr ""
  46679. #. type: Plain text
  46680. #: guix-git/doc/guix.texi:31501
  46681. msgid "The @code{(gnu services authentication)} module provides a DBus service to read and identify fingerprints via a fingerprint sensor."
  46682. msgstr ""
  46683. #. type: defvr
  46684. #: guix-git/doc/guix.texi:31502
  46685. #, no-wrap
  46686. msgid "{Scheme Variable} fprintd-service-type"
  46687. msgstr ""
  46688. #. type: defvr
  46689. #: guix-git/doc/guix.texi:31505
  46690. msgid "The service type for @command{fprintd}, which provides the fingerprint reading capability."
  46691. msgstr ""
  46692. #. type: lisp
  46693. #: guix-git/doc/guix.texi:31508
  46694. #, no-wrap
  46695. msgid "(service fprintd-service-type)\n"
  46696. msgstr ""
  46697. #. type: cindex
  46698. #: guix-git/doc/guix.texi:31511
  46699. #, no-wrap
  46700. msgid "sysctl"
  46701. msgstr ""
  46702. #. type: subsubheading
  46703. #: guix-git/doc/guix.texi:31512
  46704. #, no-wrap
  46705. msgid "System Control Service"
  46706. msgstr ""
  46707. #. type: Plain text
  46708. #: guix-git/doc/guix.texi:31516
  46709. msgid "The @code{(gnu services sysctl)} provides a service to configure kernel parameters at boot."
  46710. msgstr ""
  46711. #. type: defvr
  46712. #: guix-git/doc/guix.texi:31517
  46713. #, no-wrap
  46714. msgid "{Scheme Variable} sysctl-service-type"
  46715. msgstr ""
  46716. #. type: defvr
  46717. #: guix-git/doc/guix.texi:31521
  46718. msgid "The service type for @command{sysctl}, which modifies kernel parameters under @file{/proc/sys/}. To enable IPv4 forwarding, it can be instantiated as:"
  46719. msgstr ""
  46720. #. type: lisp
  46721. #: guix-git/doc/guix.texi:31526
  46722. #, no-wrap
  46723. msgid ""
  46724. "(service sysctl-service-type\n"
  46725. " (sysctl-configuration\n"
  46726. " (settings '((\"net.ipv4.ip_forward\" . \"1\")))))\n"
  46727. msgstr ""
  46728. #. type: defvr
  46729. #: guix-git/doc/guix.texi:31533
  46730. 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}})."
  46731. msgstr ""
  46732. #. type: lisp
  46733. #: guix-git/doc/guix.texi:31540
  46734. #, no-wrap
  46735. msgid ""
  46736. "(modify-services %base-services\n"
  46737. " (sysctl-service-type config =>\n"
  46738. " (sysctl-configuration\n"
  46739. " (settings (append '((\"net.ipv4.ip_forward\" . \"1\"))\n"
  46740. " %default-sysctl-settings)))))\n"
  46741. msgstr ""
  46742. #. type: deftp
  46743. #: guix-git/doc/guix.texi:31544
  46744. #, no-wrap
  46745. msgid "{Data Type} sysctl-configuration"
  46746. msgstr ""
  46747. #. type: deftp
  46748. #: guix-git/doc/guix.texi:31546
  46749. msgid "The data type representing the configuration of @command{sysctl}."
  46750. msgstr ""
  46751. #. type: item
  46752. #: guix-git/doc/guix.texi:31548
  46753. #, no-wrap
  46754. msgid "@code{sysctl} (default: @code{(file-append procps \"/sbin/sysctl\"})"
  46755. msgstr ""
  46756. #. type: table
  46757. #: guix-git/doc/guix.texi:31550
  46758. msgid "The @command{sysctl} executable to use."
  46759. msgstr ""
  46760. #. type: item
  46761. #: guix-git/doc/guix.texi:31551
  46762. #, fuzzy, no-wrap
  46763. msgid "@code{settings} (default: @code{%default-sysctl-settings})"
  46764. msgstr "@code{mate}(默认值:@code{mate})"
  46765. #. type: table
  46766. #: guix-git/doc/guix.texi:31553
  46767. msgid "An association list specifies kernel parameters and their values."
  46768. msgstr ""
  46769. #. type: defvr
  46770. #: guix-git/doc/guix.texi:31556
  46771. #, no-wrap
  46772. msgid "{Scheme Variable} %default-sysctl-settings"
  46773. msgstr ""
  46774. #. type: defvr
  46775. #: guix-git/doc/guix.texi:31559
  46776. msgid "An association list specifying the default @command{sysctl} parameters on Guix System."
  46777. msgstr ""
  46778. #. type: cindex
  46779. #: guix-git/doc/guix.texi:31561
  46780. #, no-wrap
  46781. msgid "pcscd"
  46782. msgstr ""
  46783. #. type: subsubheading
  46784. #: guix-git/doc/guix.texi:31562
  46785. #, no-wrap
  46786. msgid "PC/SC Smart Card Daemon Service"
  46787. msgstr ""
  46788. #. type: Plain text
  46789. #: guix-git/doc/guix.texi:31569
  46790. 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."
  46791. msgstr ""
  46792. #. type: defvr
  46793. #: guix-git/doc/guix.texi:31570
  46794. #, no-wrap
  46795. msgid "{Scheme Variable} pcscd-service-type"
  46796. msgstr ""
  46797. #. type: defvr
  46798. #: guix-git/doc/guix.texi:31574
  46799. 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:"
  46800. msgstr ""
  46801. #. type: lisp
  46802. #: guix-git/doc/guix.texi:31577
  46803. #, no-wrap
  46804. msgid "(service pcscd-service-type)\n"
  46805. msgstr ""
  46806. #. type: deftp
  46807. #: guix-git/doc/guix.texi:31580
  46808. #, no-wrap
  46809. msgid "{Data Type} pcscd-configuration"
  46810. msgstr ""
  46811. #. type: deftp
  46812. #: guix-git/doc/guix.texi:31582
  46813. msgid "The data type representing the configuration of @command{pcscd}."
  46814. msgstr ""
  46815. #. type: item
  46816. #: guix-git/doc/guix.texi:31584
  46817. #, no-wrap
  46818. msgid "@code{pcsc-lite} (default: @code{pcsc-lite})"
  46819. msgstr ""
  46820. #. type: table
  46821. #: guix-git/doc/guix.texi:31586
  46822. msgid "The pcsc-lite package that provides pcscd."
  46823. msgstr ""
  46824. #. type: item
  46825. #: guix-git/doc/guix.texi:31586
  46826. #, no-wrap
  46827. msgid "@code{usb-drivers} (default: @code{(list ccid)})"
  46828. msgstr ""
  46829. #. type: table
  46830. #: guix-git/doc/guix.texi:31589
  46831. 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."
  46832. msgstr ""
  46833. #. type: cindex
  46834. #: guix-git/doc/guix.texi:31592
  46835. #, no-wrap
  46836. msgid "lirc"
  46837. msgstr ""
  46838. #. type: subsubheading
  46839. #: guix-git/doc/guix.texi:31593
  46840. #, no-wrap
  46841. msgid "Lirc Service"
  46842. msgstr ""
  46843. #. type: Plain text
  46844. #: guix-git/doc/guix.texi:31596
  46845. msgid "The @code{(gnu services lirc)} module provides the following service."
  46846. msgstr ""
  46847. #. type: deffn
  46848. #: guix-git/doc/guix.texi:31597
  46849. #, no-wrap
  46850. msgid "{Scheme Procedure} lirc-service [#:lirc lirc] @"
  46851. msgstr ""
  46852. #. type: deffn
  46853. #: guix-git/doc/guix.texi:31602
  46854. 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."
  46855. msgstr ""
  46856. #. type: deffn
  46857. #: guix-git/doc/guix.texi:31606
  46858. msgid "Optionally, @var{device}, @var{driver} and @var{config-file} (configuration file name) may be specified. See @command{lircd} manual for details."
  46859. msgstr ""
  46860. #. type: deffn
  46861. #: guix-git/doc/guix.texi:31609
  46862. msgid "Finally, @var{extra-options} is a list of additional command-line options passed to @command{lircd}."
  46863. msgstr ""
  46864. #. type: cindex
  46865. #: guix-git/doc/guix.texi:31611
  46866. #, no-wrap
  46867. msgid "spice"
  46868. msgstr ""
  46869. #. type: subsubheading
  46870. #: guix-git/doc/guix.texi:31612
  46871. #, no-wrap
  46872. msgid "Spice Service"
  46873. msgstr ""
  46874. #. type: Plain text
  46875. #: guix-git/doc/guix.texi:31615
  46876. msgid "The @code{(gnu services spice)} module provides the following service."
  46877. msgstr ""
  46878. #. type: deffn
  46879. #: guix-git/doc/guix.texi:31616
  46880. #, no-wrap
  46881. msgid "{Scheme Procedure} spice-vdagent-service [#:spice-vdagent]"
  46882. msgstr ""
  46883. #. type: deffn
  46884. #: guix-git/doc/guix.texi:31620
  46885. 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."
  46886. msgstr ""
  46887. #. type: cindex
  46888. #: guix-git/doc/guix.texi:31622
  46889. #, no-wrap
  46890. msgid "inputattach"
  46891. msgstr ""
  46892. #. type: subsubheading
  46893. #: guix-git/doc/guix.texi:31623
  46894. #, no-wrap
  46895. msgid "inputattach Service"
  46896. msgstr ""
  46897. #. type: cindex
  46898. #: guix-git/doc/guix.texi:31625
  46899. #, no-wrap
  46900. msgid "tablet input, for Xorg"
  46901. msgstr ""
  46902. #. type: cindex
  46903. #: guix-git/doc/guix.texi:31626
  46904. #, no-wrap
  46905. msgid "touchscreen input, for Xorg"
  46906. msgstr ""
  46907. #. type: Plain text
  46908. #: guix-git/doc/guix.texi:31630
  46909. 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."
  46910. msgstr ""
  46911. #. type: deffn
  46912. #: guix-git/doc/guix.texi:31631
  46913. #, no-wrap
  46914. msgid "{Scheme Variable} inputattach-service-type"
  46915. msgstr ""
  46916. #. type: deffn
  46917. #: guix-git/doc/guix.texi:31634
  46918. msgid "Type of a service that runs @command{inputattach} on a device and dispatches events from it."
  46919. msgstr ""
  46920. #. type: deftp
  46921. #: guix-git/doc/guix.texi:31636
  46922. #, no-wrap
  46923. msgid "{Data Type} inputattach-configuration"
  46924. msgstr ""
  46925. #. type: item
  46926. #: guix-git/doc/guix.texi:31638
  46927. #, no-wrap
  46928. msgid "@code{device-type} (default: @code{\"wacom\"})"
  46929. msgstr ""
  46930. #. type: table
  46931. #: guix-git/doc/guix.texi:31641
  46932. 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."
  46933. msgstr ""
  46934. #. type: item
  46935. #: guix-git/doc/guix.texi:31642
  46936. #, no-wrap
  46937. msgid "@code{device} (default: @code{\"/dev/ttyS0\"})"
  46938. msgstr ""
  46939. #. type: table
  46940. #: guix-git/doc/guix.texi:31644
  46941. msgid "The device file to connect to the device."
  46942. msgstr ""
  46943. #. type: table
  46944. #: guix-git/doc/guix.texi:31648
  46945. msgid "Baud rate to use for the serial connection. Should be a number or @code{#f}."
  46946. msgstr ""
  46947. #. type: item
  46948. #: guix-git/doc/guix.texi:31649
  46949. #, no-wrap
  46950. msgid "@code{log-file} (default: @code{#f})"
  46951. msgstr ""
  46952. #. type: table
  46953. #: guix-git/doc/guix.texi:31651
  46954. msgid "If true, this must be the name of a file to log messages to."
  46955. msgstr ""
  46956. #. type: subsubheading
  46957. #: guix-git/doc/guix.texi:31654
  46958. #, fuzzy, no-wrap
  46959. msgid "Dictionary Service"
  46960. msgstr "定义服务"
  46961. #. type: cindex
  46962. #: guix-git/doc/guix.texi:31655
  46963. #, no-wrap
  46964. msgid "dictionary"
  46965. msgstr ""
  46966. #. type: Plain text
  46967. #: guix-git/doc/guix.texi:31657
  46968. msgid "The @code{(gnu services dict)} module provides the following service:"
  46969. msgstr ""
  46970. #. type: defvr
  46971. #: guix-git/doc/guix.texi:31658
  46972. #, no-wrap
  46973. msgid "{Scheme Variable} dicod-service-type"
  46974. msgstr ""
  46975. #. type: defvr
  46976. #: guix-git/doc/guix.texi:31661
  46977. 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})."
  46978. msgstr ""
  46979. #. type: deffn
  46980. #: guix-git/doc/guix.texi:31663
  46981. #, no-wrap
  46982. msgid "{Scheme Procedure} dicod-service [#:config (dicod-configuration)]"
  46983. msgstr ""
  46984. #. type: deffn
  46985. #: guix-git/doc/guix.texi:31666
  46986. msgid "Return a service that runs the @command{dicod} daemon, an implementation of DICT server (@pxref{Dicod,,, dico, GNU Dico Manual})."
  46987. msgstr ""
  46988. #. type: deffn
  46989. #: guix-git/doc/guix.texi:31670
  46990. 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."
  46991. msgstr ""
  46992. #. type: deffn
  46993. #: guix-git/doc/guix.texi:31674
  46994. 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})."
  46995. msgstr ""
  46996. #. type: deftp
  46997. #: guix-git/doc/guix.texi:31676
  46998. #, no-wrap
  46999. msgid "{Data Type} dicod-configuration"
  47000. msgstr ""
  47001. #. type: deftp
  47002. #: guix-git/doc/guix.texi:31678
  47003. msgid "Data type representing the configuration of dicod."
  47004. msgstr ""
  47005. #. type: item
  47006. #: guix-git/doc/guix.texi:31680
  47007. #, no-wrap
  47008. msgid "@code{dico} (default: @var{dico})"
  47009. msgstr ""
  47010. #. type: table
  47011. #: guix-git/doc/guix.texi:31682
  47012. msgid "Package object of the GNU Dico dictionary server."
  47013. msgstr ""
  47014. #. type: item
  47015. #: guix-git/doc/guix.texi:31683
  47016. #, no-wrap
  47017. msgid "@code{interfaces} (default: @var{'(\"localhost\")})"
  47018. msgstr ""
  47019. #. type: table
  47020. #: guix-git/doc/guix.texi:31687
  47021. 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})."
  47022. msgstr ""
  47023. #. type: item
  47024. #: guix-git/doc/guix.texi:31688
  47025. #, no-wrap
  47026. msgid "@code{handlers} (default: @var{'()})"
  47027. msgstr ""
  47028. #. type: table
  47029. #: guix-git/doc/guix.texi:31690
  47030. msgid "List of @code{<dicod-handler>} objects denoting handlers (module instances)."
  47031. msgstr ""
  47032. #. type: item
  47033. #: guix-git/doc/guix.texi:31691
  47034. #, no-wrap
  47035. msgid "@code{databases} (default: @var{(list %dicod-database:gcide)})"
  47036. msgstr ""
  47037. #. type: table
  47038. #: guix-git/doc/guix.texi:31693
  47039. msgid "List of @code{<dicod-database>} objects denoting dictionaries to be served."
  47040. msgstr ""
  47041. #. type: deftp
  47042. #: guix-git/doc/guix.texi:31696
  47043. #, no-wrap
  47044. msgid "{Data Type} dicod-handler"
  47045. msgstr ""
  47046. #. type: deftp
  47047. #: guix-git/doc/guix.texi:31698
  47048. msgid "Data type representing a dictionary handler (module instance)."
  47049. msgstr ""
  47050. #. type: table
  47051. #: guix-git/doc/guix.texi:31702
  47052. msgid "Name of the handler (module instance)."
  47053. msgstr ""
  47054. #. type: item
  47055. #: guix-git/doc/guix.texi:31703
  47056. #, no-wrap
  47057. msgid "@code{module} (default: @var{#f})"
  47058. msgstr ""
  47059. #. type: table
  47060. #: guix-git/doc/guix.texi:31707
  47061. 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})."
  47062. msgstr ""
  47063. #. type: table
  47064. #: guix-git/doc/guix.texi:31710
  47065. msgid "List of strings or gexps representing the arguments for the module handler"
  47066. msgstr ""
  47067. #. type: deftp
  47068. #: guix-git/doc/guix.texi:31713
  47069. #, no-wrap
  47070. msgid "{Data Type} dicod-database"
  47071. msgstr ""
  47072. #. type: deftp
  47073. #: guix-git/doc/guix.texi:31715
  47074. msgid "Data type representing a dictionary database."
  47075. msgstr ""
  47076. #. type: table
  47077. #: guix-git/doc/guix.texi:31719
  47078. msgid "Name of the database, will be used in DICT commands."
  47079. msgstr ""
  47080. #. type: code{#1}
  47081. #: guix-git/doc/guix.texi:31720
  47082. #, no-wrap
  47083. msgid "handler"
  47084. msgstr ""
  47085. #. type: table
  47086. #: guix-git/doc/guix.texi:31723
  47087. msgid "Name of the dicod handler (module instance) used by this database (@pxref{Handlers,,, dico, GNU Dico Manual})."
  47088. msgstr ""
  47089. #. type: item
  47090. #: guix-git/doc/guix.texi:31724
  47091. #, no-wrap
  47092. msgid "@code{complex?} (default: @var{#f})"
  47093. msgstr ""
  47094. #. type: table
  47095. #: guix-git/doc/guix.texi:31727
  47096. msgid "Whether the database configuration complex. The complex configuration will need a corresponding @code{<dicod-handler>} object, otherwise not."
  47097. msgstr ""
  47098. #. type: table
  47099. #: guix-git/doc/guix.texi:31731
  47100. msgid "List of strings or gexps representing the arguments for the database (@pxref{Databases,,, dico, GNU Dico Manual})."
  47101. msgstr ""
  47102. #. type: defvr
  47103. #: guix-git/doc/guix.texi:31734
  47104. #, no-wrap
  47105. msgid "{Scheme Variable} %dicod-database:gcide"
  47106. msgstr ""
  47107. #. type: defvr
  47108. #: guix-git/doc/guix.texi:31737
  47109. msgid "A @code{<dicod-database>} object serving the GNU Collaborative International Dictionary of English using the @code{gcide} package."
  47110. msgstr ""
  47111. #. type: Plain text
  47112. #: guix-git/doc/guix.texi:31740
  47113. msgid "The following is an example @code{dicod-service} configuration."
  47114. msgstr ""
  47115. #. type: lisp
  47116. #: guix-git/doc/guix.texi:31755
  47117. #, no-wrap
  47118. msgid ""
  47119. "(dicod-service #:config\n"
  47120. " (dicod-configuration\n"
  47121. " (handlers (list (dicod-handler\n"
  47122. " (name \"wordnet\")\n"
  47123. " (module \"dictorg\")\n"
  47124. " (options\n"
  47125. " (list #~(string-append \"dbdir=\" #$wordnet))))))\n"
  47126. " (databases (list (dicod-database\n"
  47127. " (name \"wordnet\")\n"
  47128. " (complex? #t)\n"
  47129. " (handler \"wordnet\")\n"
  47130. " (options '(\"database=wn\")))\n"
  47131. " %dicod-database:gcide))))\n"
  47132. msgstr ""
  47133. #. type: cindex
  47134. #: guix-git/doc/guix.texi:31757
  47135. #, no-wrap
  47136. msgid "Docker"
  47137. msgstr ""
  47138. #. type: subsubheading
  47139. #: guix-git/doc/guix.texi:31758
  47140. #, no-wrap
  47141. msgid "Docker Service"
  47142. msgstr ""
  47143. #. type: Plain text
  47144. #: guix-git/doc/guix.texi:31761
  47145. msgid "The @code{(gnu services docker)} module provides the following services."
  47146. msgstr ""
  47147. #. type: defvr
  47148. #: guix-git/doc/guix.texi:31762
  47149. #, no-wrap
  47150. msgid "{Scheme Variable} docker-service-type"
  47151. msgstr ""
  47152. #. type: defvr
  47153. #: guix-git/doc/guix.texi:31767
  47154. 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."
  47155. msgstr ""
  47156. #. type: deftp
  47157. #: guix-git/doc/guix.texi:31770
  47158. #, no-wrap
  47159. msgid "{Data Type} docker-configuration"
  47160. msgstr ""
  47161. #. type: deftp
  47162. #: guix-git/doc/guix.texi:31772
  47163. msgid "This is the data type representing the configuration of Docker and Containerd."
  47164. msgstr ""
  47165. #. type: item
  47166. #: guix-git/doc/guix.texi:31775
  47167. #, no-wrap
  47168. msgid "@code{package} (default: @code{docker})"
  47169. msgstr ""
  47170. #. type: table
  47171. #: guix-git/doc/guix.texi:31777
  47172. msgid "The Docker daemon package to use."
  47173. msgstr ""
  47174. #. type: item
  47175. #: guix-git/doc/guix.texi:31778
  47176. #, fuzzy, no-wrap
  47177. msgid "@code{package} (default: @code{docker-cli})"
  47178. msgstr "@code{xfce}(默认值:@code{xfce})"
  47179. #. type: table
  47180. #: guix-git/doc/guix.texi:31780
  47181. msgid "The Docker client package to use."
  47182. msgstr ""
  47183. #. type: item
  47184. #: guix-git/doc/guix.texi:31781
  47185. #, no-wrap
  47186. msgid "@code{containerd} (default: @var{containerd})"
  47187. msgstr ""
  47188. #. type: table
  47189. #: guix-git/doc/guix.texi:31783
  47190. msgid "The Containerd package to use."
  47191. msgstr ""
  47192. #. type: item
  47193. #: guix-git/doc/guix.texi:31784
  47194. #, no-wrap
  47195. msgid "@code{proxy} (default @var{docker-libnetwork-cmd-proxy})"
  47196. msgstr ""
  47197. #. type: table
  47198. #: guix-git/doc/guix.texi:31786
  47199. msgid "The Docker user-land networking proxy package to use."
  47200. msgstr ""
  47201. #. type: item
  47202. #: guix-git/doc/guix.texi:31787
  47203. #, fuzzy, no-wrap
  47204. msgid "@code{enable-proxy?} (default @code{#t})"
  47205. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47206. #. type: table
  47207. #: guix-git/doc/guix.texi:31789
  47208. msgid "Enable or disable the use of the Docker user-land networking proxy."
  47209. msgstr ""
  47210. #. type: item
  47211. #: guix-git/doc/guix.texi:31790
  47212. #, fuzzy, no-wrap
  47213. msgid "@code{debug?} (default @code{#f})"
  47214. msgstr "@code{challenge}(默认值:@code{#f})"
  47215. #. type: table
  47216. #: guix-git/doc/guix.texi:31792
  47217. #, fuzzy
  47218. msgid "Enable or disable debug output."
  47219. msgstr "怎么开启或关闭substitute。"
  47220. #. type: item
  47221. #: guix-git/doc/guix.texi:31793
  47222. #, fuzzy, no-wrap
  47223. msgid "@code{enable-iptables?} (default @code{#t})"
  47224. msgstr "@code{mate}(默认值:@code{mate})"
  47225. #. type: table
  47226. #: guix-git/doc/guix.texi:31795
  47227. msgid "Enable or disable the addition of iptables rules."
  47228. msgstr ""
  47229. #. type: cindex
  47230. #: guix-git/doc/guix.texi:31799
  47231. #, no-wrap
  47232. msgid "Singularity, container service"
  47233. msgstr ""
  47234. #. type: defvr
  47235. #: guix-git/doc/guix.texi:31800
  47236. #, no-wrap
  47237. msgid "{Scheme Variable} singularity-service-type"
  47238. msgstr ""
  47239. #. type: defvr
  47240. #: guix-git/doc/guix.texi:31805
  47241. 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."
  47242. msgstr ""
  47243. #. type: defvr
  47244. #: guix-git/doc/guix.texi:31809
  47245. 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."
  47246. msgstr ""
  47247. #. type: cindex
  47248. #: guix-git/doc/guix.texi:31811
  47249. #, no-wrap
  47250. msgid "Audit"
  47251. msgstr ""
  47252. #. type: subsubheading
  47253. #: guix-git/doc/guix.texi:31812
  47254. #, fuzzy, no-wrap
  47255. msgid "Auditd Service"
  47256. msgstr "音频服务"
  47257. #. type: Plain text
  47258. #: guix-git/doc/guix.texi:31815
  47259. msgid "The @code{(gnu services auditd)} module provides the following service."
  47260. msgstr ""
  47261. #. type: defvr
  47262. #: guix-git/doc/guix.texi:31816
  47263. #, no-wrap
  47264. msgid "{Scheme Variable} auditd-service-type"
  47265. msgstr ""
  47266. #. type: defvr
  47267. #: guix-git/doc/guix.texi:31821
  47268. 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."
  47269. msgstr ""
  47270. #. type: defvr
  47271. #: guix-git/doc/guix.texi:31823
  47272. msgid "Examples of things that can be tracked:"
  47273. msgstr ""
  47274. #. type: enumerate
  47275. #: guix-git/doc/guix.texi:31827
  47276. #, fuzzy
  47277. msgid "File accesses"
  47278. msgstr "文件系统"
  47279. #. type: enumerate
  47280. #: guix-git/doc/guix.texi:31829
  47281. #, fuzzy
  47282. msgid "System calls"
  47283. msgstr "系统安装"
  47284. #. type: enumerate
  47285. #: guix-git/doc/guix.texi:31831
  47286. msgid "Invoked commands"
  47287. msgstr ""
  47288. #. type: enumerate
  47289. #: guix-git/doc/guix.texi:31833
  47290. msgid "Failed login attempts"
  47291. msgstr ""
  47292. #. type: enumerate
  47293. #: guix-git/doc/guix.texi:31835
  47294. msgid "Firewall filtering"
  47295. msgstr ""
  47296. #. type: enumerate
  47297. #: guix-git/doc/guix.texi:31837
  47298. #, fuzzy
  47299. msgid "Network access"
  47300. msgstr "网络服务"
  47301. #. type: defvr
  47302. #: guix-git/doc/guix.texi:31848
  47303. 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}."
  47304. msgstr ""
  47305. #. type: deftp
  47306. #: guix-git/doc/guix.texi:31851
  47307. #, fuzzy, no-wrap
  47308. msgid "{Data Type} auditd-configuration"
  47309. msgstr "{数据类型} build-machine"
  47310. #. type: deftp
  47311. #: guix-git/doc/guix.texi:31853
  47312. msgid "This is the data type representing the configuration of auditd."
  47313. msgstr ""
  47314. #. type: item
  47315. #: guix-git/doc/guix.texi:31856
  47316. #, fuzzy, no-wrap
  47317. msgid "@code{audit} (default: @code{audit})"
  47318. msgstr "@code{mate}(默认值:@code{mate})"
  47319. #. type: table
  47320. #: guix-git/doc/guix.texi:31858
  47321. #, fuzzy
  47322. msgid "The audit package to use."
  47323. msgstr "软件包数据类型。"
  47324. #. type: item
  47325. #: guix-git/doc/guix.texi:31859
  47326. #, no-wrap
  47327. msgid "@code{configuration-directory} (default: @code{%default-auditd-configuration-directory})"
  47328. msgstr ""
  47329. #. type: table
  47330. #: guix-git/doc/guix.texi:31863
  47331. 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."
  47332. msgstr ""
  47333. #. type: cindex
  47334. #: guix-git/doc/guix.texi:31867
  47335. #, no-wrap
  47336. msgid "rshiny"
  47337. msgstr ""
  47338. #. type: subsubheading
  47339. #: guix-git/doc/guix.texi:31868
  47340. #, fuzzy, no-wrap
  47341. msgid "R-Shiny service"
  47342. msgstr "电话服务。"
  47343. #. type: Plain text
  47344. #: guix-git/doc/guix.texi:31871
  47345. msgid "The @code{(gnu services science)} module provides the following service."
  47346. msgstr ""
  47347. #. type: defvr
  47348. #: guix-git/doc/guix.texi:31872
  47349. #, no-wrap
  47350. msgid "{Scheme Variable} rshiny-service-type"
  47351. msgstr ""
  47352. #. type: defvr
  47353. #: guix-git/doc/guix.texi:31877
  47354. 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}."
  47355. msgstr ""
  47356. #. type: deftp
  47357. #: guix-git/doc/guix.texi:31878
  47358. #, no-wrap
  47359. msgid "{Data Type} rshiny-configuration"
  47360. msgstr ""
  47361. #. type: deftp
  47362. #: guix-git/doc/guix.texi:31880
  47363. msgid "This is the data type representing the configuration of rshiny."
  47364. msgstr ""
  47365. #. type: item
  47366. #: guix-git/doc/guix.texi:31883
  47367. #, fuzzy, no-wrap
  47368. msgid "@code{package} (default: @code{r-shiny})"
  47369. msgstr "@code{challenge}(默认值:@code{#f})"
  47370. #. type: table
  47371. #: guix-git/doc/guix.texi:31885
  47372. #, fuzzy
  47373. msgid "The package to use."
  47374. msgstr "软件包数据类型。"
  47375. #. type: item
  47376. #: guix-git/doc/guix.texi:31886
  47377. #, fuzzy, no-wrap
  47378. msgid "@code{binary} (defaunlt @code{\"rshiny\"})"
  47379. msgstr "@code{display}(默认值:@code{\":0\"})"
  47380. #. type: table
  47381. #: guix-git/doc/guix.texi:31889
  47382. msgid "The name of the binary or shell script located at @code{package/bin/} to run when the service is run."
  47383. msgstr ""
  47384. #. type: table
  47385. #: guix-git/doc/guix.texi:31891
  47386. msgid "The common way to create this file is as follows:"
  47387. msgstr ""
  47388. #. type: lisp
  47389. #: guix-git/doc/guix.texi:31909
  47390. #, no-wrap
  47391. msgid ""
  47392. "@dots{}\n"
  47393. "(let* ((out (assoc-ref %outputs \"out\"))\n"
  47394. " (targetdir (string-append out \"/share/\" ,name))\n"
  47395. " (app (string-append out \"/bin/\" ,name))\n"
  47396. " (Rbin (string-append (assoc-ref %build-inputs \"r-min\")\n"
  47397. " \"/bin/Rscript\")))\n"
  47398. " ;; @dots{}\n"
  47399. " (mkdir-p (string-append out \"/bin\"))\n"
  47400. " (call-with-output-file app\n"
  47401. " (lambda (port)\n"
  47402. " (format port\n"
  47403. "\"#!~a\n"
  47404. "library(shiny)\n"
  47405. "setwd(\\\"~a\\\")\n"
  47406. "runApp(launch.browser=0, port=4202)~%\\n\"\n"
  47407. " Rbin targetdir))))\n"
  47408. msgstr ""
  47409. #. type: cindex
  47410. #: guix-git/doc/guix.texi:31915
  47411. #, no-wrap
  47412. msgid "Nix"
  47413. msgstr ""
  47414. #. type: subsubheading
  47415. #: guix-git/doc/guix.texi:31916
  47416. #, fuzzy, no-wrap
  47417. msgid "Nix service"
  47418. msgstr "DNS服务"
  47419. #. type: Plain text
  47420. #: guix-git/doc/guix.texi:31919
  47421. msgid "The @code{(gnu services nix)} module provides the following service."
  47422. msgstr ""
  47423. #. type: defvr
  47424. #: guix-git/doc/guix.texi:31920
  47425. #, no-wrap
  47426. msgid "{Scheme Variable} nix-service-type"
  47427. msgstr ""
  47428. #. type: defvr
  47429. #: guix-git/doc/guix.texi:31925
  47430. 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:"
  47431. msgstr ""
  47432. #. type: lisp
  47433. #: guix-git/doc/guix.texi:31930
  47434. #, no-wrap
  47435. msgid ""
  47436. "(use-modules (gnu))\n"
  47437. "(use-service-modules nix)\n"
  47438. "(use-package-modules package-management)\n"
  47439. "\n"
  47440. msgstr ""
  47441. #. type: lisp
  47442. #: guix-git/doc/guix.texi:31935
  47443. #, no-wrap
  47444. msgid ""
  47445. "(operating-system\n"
  47446. " ;; @dots{}\n"
  47447. " (packages (append (list nix)\n"
  47448. " %base-packages))\n"
  47449. "\n"
  47450. msgstr ""
  47451. #. type: lisp
  47452. #: guix-git/doc/guix.texi:31938
  47453. #, no-wrap
  47454. msgid ""
  47455. " (services (append (list (service nix-service-type))\n"
  47456. " %base-services)))\n"
  47457. msgstr ""
  47458. #. type: defvr
  47459. #: guix-git/doc/guix.texi:31941
  47460. msgid "After @command{guix system reconfigure} configure Nix for your user:"
  47461. msgstr ""
  47462. #. type: item
  47463. #: guix-git/doc/guix.texi:31943
  47464. #, no-wrap
  47465. msgid "Add a Nix channel and update it. See"
  47466. msgstr ""
  47467. #. type: itemize
  47468. #: guix-git/doc/guix.texi:31945
  47469. msgid "@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}."
  47470. msgstr ""
  47471. #. type: item
  47472. #: guix-git/doc/guix.texi:31946
  47473. #, no-wrap
  47474. msgid "Create a symlink to your profile and activate Nix profile:"
  47475. msgstr ""
  47476. #. type: example
  47477. #: guix-git/doc/guix.texi:31952
  47478. #, no-wrap
  47479. msgid ""
  47480. "$ ln -s \"/nix/var/nix/profiles/per-user/$USER/profile\" ~/.nix-profile\n"
  47481. "$ source /run/current-system/profile/etc/profile.d/nix.sh\n"
  47482. msgstr ""
  47483. #. type: deftp
  47484. #: guix-git/doc/guix.texi:31956
  47485. #, fuzzy, no-wrap
  47486. msgid "{Data Type} nix-configuration"
  47487. msgstr "{数据类型} build-machine"
  47488. #. type: deftp
  47489. #: guix-git/doc/guix.texi:31958
  47490. msgid "This data type represents the configuration of the Nix daemon."
  47491. msgstr ""
  47492. #. type: item
  47493. #: guix-git/doc/guix.texi:31960
  47494. #, fuzzy, no-wrap
  47495. msgid "@code{nix} (default: @code{nix})"
  47496. msgstr "@code{xfce}(默认值:@code{xfce})"
  47497. #. type: table
  47498. #: guix-git/doc/guix.texi:31962
  47499. #, fuzzy
  47500. msgid "The Nix package to use."
  47501. msgstr "软件包数据类型。"
  47502. #. type: item
  47503. #: guix-git/doc/guix.texi:31963
  47504. #, fuzzy, no-wrap
  47505. msgid "@code{sandbox} (default: @code{#t})"
  47506. msgstr "@code{speed}(默认值:@code{1.0})"
  47507. #. type: table
  47508. #: guix-git/doc/guix.texi:31965
  47509. msgid "Specifies whether builds are sandboxed by default."
  47510. msgstr ""
  47511. #. type: item
  47512. #: guix-git/doc/guix.texi:31966
  47513. #, fuzzy, no-wrap
  47514. msgid "@code{build-sandbox-items} (default: @code{'()})"
  47515. msgstr "@code{includes}(默认值:@code{'()})"
  47516. #. type: table
  47517. #: guix-git/doc/guix.texi:31969
  47518. msgid "This is a list of strings or objects appended to the @code{build-sandbox-items} field of the configuration file."
  47519. msgstr ""
  47520. #. type: table
  47521. #: guix-git/doc/guix.texi:31977
  47522. msgid "Extra command line options for @code{nix-service-type}."
  47523. msgstr ""
  47524. #. type: cindex
  47525. #: guix-git/doc/guix.texi:31983
  47526. #, no-wrap
  47527. msgid "setuid programs"
  47528. msgstr ""
  47529. #. type: Plain text
  47530. #: guix-git/doc/guix.texi:31993
  47531. 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)."
  47532. msgstr ""
  47533. #. type: Plain text
  47534. #: guix-git/doc/guix.texi:32000
  47535. 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."
  47536. msgstr ""
  47537. #. type: Plain text
  47538. #: guix-git/doc/guix.texi:32006
  47539. msgid "The @code{setuid-programs} field of an @code{operating-system} declaration contains a list of G-expressions denoting the names of programs to be setuid-root (@pxref{Using the Configuration System}). For instance, the @command{passwd} program, which is part of the Shadow package, can be designated by this G-expression (@pxref{G-Expressions}):"
  47540. msgstr ""
  47541. #. type: example
  47542. #: guix-git/doc/guix.texi:32009
  47543. #, no-wrap
  47544. msgid "#~(string-append #$shadow \"/bin/passwd\")\n"
  47545. msgstr ""
  47546. #. type: Plain text
  47547. #: guix-git/doc/guix.texi:32013
  47548. msgid "A default set of setuid programs is defined by the @code{%setuid-programs} variable of the @code{(gnu system)} module."
  47549. msgstr ""
  47550. #. type: defvr
  47551. #: guix-git/doc/guix.texi:32014
  47552. #, no-wrap
  47553. msgid "{Scheme Variable} %setuid-programs"
  47554. msgstr ""
  47555. #. type: defvr
  47556. #: guix-git/doc/guix.texi:32016
  47557. msgid "A list of G-expressions denoting common programs that are setuid-root."
  47558. msgstr ""
  47559. #. type: defvr
  47560. #: guix-git/doc/guix.texi:32019
  47561. msgid "The list includes commands such as @command{passwd}, @command{ping}, @command{su}, and @command{sudo}."
  47562. msgstr ""
  47563. #. type: Plain text
  47564. #: guix-git/doc/guix.texi:32025
  47565. 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."
  47566. msgstr ""
  47567. #. type: cindex
  47568. #: guix-git/doc/guix.texi:32029
  47569. #, no-wrap
  47570. msgid "HTTPS, certificates"
  47571. msgstr ""
  47572. #. type: cindex
  47573. #: guix-git/doc/guix.texi:32030
  47574. #, no-wrap
  47575. msgid "X.509 certificates"
  47576. msgstr ""
  47577. #. type: cindex
  47578. #: guix-git/doc/guix.texi:32031
  47579. #, no-wrap
  47580. msgid "TLS"
  47581. msgstr ""
  47582. #. type: Plain text
  47583. #: guix-git/doc/guix.texi:32038
  47584. 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."
  47585. msgstr ""
  47586. #. type: Plain text
  47587. #: guix-git/doc/guix.texi:32042
  47588. 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."
  47589. msgstr ""
  47590. #. type: Plain text
  47591. #: guix-git/doc/guix.texi:32046
  47592. 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."
  47593. msgstr ""
  47594. #. type: Plain text
  47595. #: guix-git/doc/guix.texi:32053
  47596. 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."
  47597. msgstr ""
  47598. #. type: Plain text
  47599. #: guix-git/doc/guix.texi:32058
  47600. 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."
  47601. msgstr ""
  47602. #. type: Plain text
  47603. #: guix-git/doc/guix.texi:32068
  47604. 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:"
  47605. msgstr ""
  47606. #. type: example
  47607. #: guix-git/doc/guix.texi:32074
  47608. #, no-wrap
  47609. msgid ""
  47610. "guix install nss-certs\n"
  47611. "export SSL_CERT_DIR=\"$HOME/.guix-profile/etc/ssl/certs\"\n"
  47612. "export SSL_CERT_FILE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  47613. "export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"\n"
  47614. msgstr ""
  47615. #. type: Plain text
  47616. #: guix-git/doc/guix.texi:32079
  47617. 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:"
  47618. msgstr ""
  47619. #. type: example
  47620. #: guix-git/doc/guix.texi:32083
  47621. #, no-wrap
  47622. msgid ""
  47623. "guix install nss-certs\n"
  47624. "export CURL_CA_BUNDLE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  47625. msgstr ""
  47626. #. type: Plain text
  47627. #: guix-git/doc/guix.texi:32087
  47628. msgid "For other applications you may want to look up the required environment variable in the relevant documentation."
  47629. msgstr ""
  47630. #. type: cindex
  47631. #: guix-git/doc/guix.texi:32092
  47632. #, no-wrap
  47633. msgid "name service switch"
  47634. msgstr ""
  47635. #. type: cindex
  47636. #: guix-git/doc/guix.texi:32093
  47637. #, no-wrap
  47638. msgid "NSS"
  47639. msgstr ""
  47640. #. type: Plain text
  47641. #: guix-git/doc/guix.texi:32102
  47642. 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})."
  47643. msgstr ""
  47644. #. type: Plain text
  47645. #: guix-git/doc/guix.texi:32109
  47646. 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}})."
  47647. msgstr ""
  47648. #. type: cindex
  47649. #: guix-git/doc/guix.texi:32110
  47650. #, no-wrap
  47651. msgid "nss-mdns"
  47652. msgstr ""
  47653. #. type: cindex
  47654. #: guix-git/doc/guix.texi:32111
  47655. #, no-wrap
  47656. msgid ".local, host name lookup"
  47657. msgstr ""
  47658. #. type: Plain text
  47659. #: guix-git/doc/guix.texi:32116
  47660. 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}:"
  47661. msgstr ""
  47662. #. type: lisp
  47663. #: guix-git/doc/guix.texi:32120
  47664. #, no-wrap
  47665. msgid ""
  47666. "(name-service-switch\n"
  47667. " (hosts (list %files ;first, check /etc/hosts\n"
  47668. "\n"
  47669. msgstr ""
  47670. #. type: lisp
  47671. #: guix-git/doc/guix.texi:32125
  47672. #, no-wrap
  47673. msgid ""
  47674. " ;; If the above did not succeed, try\n"
  47675. " ;; with 'mdns_minimal'.\n"
  47676. " (name-service\n"
  47677. " (name \"mdns_minimal\")\n"
  47678. "\n"
  47679. msgstr ""
  47680. #. type: lisp
  47681. #: guix-git/doc/guix.texi:32131
  47682. #, no-wrap
  47683. msgid ""
  47684. " ;; 'mdns_minimal' is authoritative for\n"
  47685. " ;; '.local'. When it returns \"not found\",\n"
  47686. " ;; no need to try the next methods.\n"
  47687. " (reaction (lookup-specification\n"
  47688. " (not-found => return))))\n"
  47689. "\n"
  47690. msgstr ""
  47691. #. type: lisp
  47692. #: guix-git/doc/guix.texi:32135
  47693. #, no-wrap
  47694. msgid ""
  47695. " ;; Then fall back to DNS.\n"
  47696. " (name-service\n"
  47697. " (name \"dns\"))\n"
  47698. "\n"
  47699. msgstr ""
  47700. #. type: lisp
  47701. #: guix-git/doc/guix.texi:32139
  47702. #, no-wrap
  47703. msgid ""
  47704. " ;; Finally, try with the \"full\" 'mdns'.\n"
  47705. " (name-service\n"
  47706. " (name \"mdns\")))))\n"
  47707. msgstr ""
  47708. #. type: Plain text
  47709. #: guix-git/doc/guix.texi:32144
  47710. 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."
  47711. msgstr ""
  47712. #. type: Plain text
  47713. #: guix-git/doc/guix.texi:32152
  47714. 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}})."
  47715. msgstr ""
  47716. #. type: Plain text
  47717. #: guix-git/doc/guix.texi:32155
  47718. msgid "For convenience, the following variables provide typical NSS configurations."
  47719. msgstr ""
  47720. #. type: defvr
  47721. #: guix-git/doc/guix.texi:32156
  47722. #, no-wrap
  47723. msgid "{Scheme Variable} %default-nss"
  47724. msgstr ""
  47725. #. type: defvr
  47726. #: guix-git/doc/guix.texi:32159
  47727. msgid "This is the default name service switch configuration, a @code{name-service-switch} object."
  47728. msgstr ""
  47729. #. type: defvr
  47730. #: guix-git/doc/guix.texi:32161
  47731. #, no-wrap
  47732. msgid "{Scheme Variable} %mdns-host-lookup-nss"
  47733. msgstr ""
  47734. #. type: defvr
  47735. #: guix-git/doc/guix.texi:32164
  47736. 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}."
  47737. msgstr ""
  47738. #. type: Plain text
  47739. #: guix-git/doc/guix.texi:32174
  47740. 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}."
  47741. msgstr ""
  47742. #. type: deftp
  47743. #: guix-git/doc/guix.texi:32175
  47744. #, no-wrap
  47745. msgid "{Data Type} name-service-switch"
  47746. msgstr ""
  47747. #. type: deftp
  47748. #: guix-git/doc/guix.texi:32180
  47749. 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."
  47750. msgstr ""
  47751. #. type: item
  47752. #: guix-git/doc/guix.texi:32182
  47753. #, no-wrap
  47754. msgid "aliases"
  47755. msgstr ""
  47756. #. type: itemx
  47757. #: guix-git/doc/guix.texi:32183
  47758. #, no-wrap
  47759. msgid "ethers"
  47760. msgstr ""
  47761. #. type: itemx
  47762. #: guix-git/doc/guix.texi:32185
  47763. #, no-wrap
  47764. msgid "gshadow"
  47765. msgstr ""
  47766. #. type: itemx
  47767. #: guix-git/doc/guix.texi:32186
  47768. #, no-wrap
  47769. msgid "hosts"
  47770. msgstr ""
  47771. #. type: itemx
  47772. #: guix-git/doc/guix.texi:32187
  47773. #, no-wrap
  47774. msgid "initgroups"
  47775. msgstr ""
  47776. #. type: itemx
  47777. #: guix-git/doc/guix.texi:32188
  47778. #, no-wrap
  47779. msgid "netgroup"
  47780. msgstr ""
  47781. #. type: itemx
  47782. #: guix-git/doc/guix.texi:32189
  47783. #, no-wrap
  47784. msgid "networks"
  47785. msgstr ""
  47786. #. type: itemx
  47787. #: guix-git/doc/guix.texi:32192
  47788. #, no-wrap
  47789. msgid "rpc"
  47790. msgstr ""
  47791. #. type: itemx
  47792. #: guix-git/doc/guix.texi:32194
  47793. #, no-wrap
  47794. msgid "shadow"
  47795. msgstr ""
  47796. #. type: table
  47797. #: guix-git/doc/guix.texi:32197
  47798. msgid "The system databases handled by the NSS@. Each of these fields must be a list of @code{<name-service>} objects (see below)."
  47799. msgstr ""
  47800. #. type: deftp
  47801. #: guix-git/doc/guix.texi:32200
  47802. #, no-wrap
  47803. msgid "{Data Type} name-service"
  47804. msgstr ""
  47805. #. type: deftp
  47806. #: guix-git/doc/guix.texi:32204
  47807. msgid "This is the data type representing an actual name service and the associated lookup action."
  47808. msgstr ""
  47809. #. type: table
  47810. #: guix-git/doc/guix.texi:32209
  47811. msgid "A string denoting the name service (@pxref{Services in the NSS configuration,,, libc, The GNU C Library Reference Manual})."
  47812. msgstr ""
  47813. #. type: table
  47814. #: guix-git/doc/guix.texi:32214
  47815. 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}})."
  47816. msgstr ""
  47817. #. type: item
  47818. #: guix-git/doc/guix.texi:32215
  47819. #, no-wrap
  47820. msgid "reaction"
  47821. msgstr ""
  47822. #. type: table
  47823. #: guix-git/doc/guix.texi:32219
  47824. 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:"
  47825. msgstr ""
  47826. #. type: lisp
  47827. #: guix-git/doc/guix.texi:32223
  47828. #, no-wrap
  47829. msgid ""
  47830. "(lookup-specification (unavailable => continue)\n"
  47831. " (success => return))\n"
  47832. msgstr ""
  47833. #. type: Plain text
  47834. #: guix-git/doc/guix.texi:32237
  47835. 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."
  47836. msgstr ""
  47837. #. type: Plain text
  47838. #: guix-git/doc/guix.texi:32246
  47839. 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:"
  47840. msgstr ""
  47841. #. type: lisp
  47842. #: guix-git/doc/guix.texi:32251
  47843. #, no-wrap
  47844. msgid ""
  47845. "(operating-system\n"
  47846. " ;; @dots{}\n"
  47847. " (initrd-modules (cons \"megaraid_sas\" %base-initrd-modules)))\n"
  47848. msgstr ""
  47849. #. type: defvr
  47850. #: guix-git/doc/guix.texi:32253
  47851. #, no-wrap
  47852. msgid "{Scheme Variable} %base-initrd-modules"
  47853. msgstr ""
  47854. #. type: defvr
  47855. #: guix-git/doc/guix.texi:32255
  47856. msgid "This is the list of kernel modules included in the initrd by default."
  47857. msgstr ""
  47858. #. type: Plain text
  47859. #: guix-git/doc/guix.texi:32263
  47860. 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."
  47861. msgstr ""
  47862. #. type: Plain text
  47863. #: guix-git/doc/guix.texi:32268
  47864. 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:"
  47865. msgstr ""
  47866. #. type: lisp
  47867. #: guix-git/doc/guix.texi:32276
  47868. #, no-wrap
  47869. msgid ""
  47870. "(initrd (lambda (file-systems . rest)\n"
  47871. " ;; Create a standard initrd but set up networking\n"
  47872. " ;; with the parameters QEMU expects by default.\n"
  47873. " (apply base-initrd file-systems\n"
  47874. " #:qemu-networking? #t\n"
  47875. " rest)))\n"
  47876. msgstr ""
  47877. #. type: Plain text
  47878. #: guix-git/doc/guix.texi:32281
  47879. 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."
  47880. msgstr ""
  47881. #. type: Plain text
  47882. #: guix-git/doc/guix.texi:32288
  47883. 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."
  47884. msgstr ""
  47885. #. type: Plain text
  47886. #: guix-git/doc/guix.texi:32293
  47887. 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:"
  47888. msgstr ""
  47889. #. type: item
  47890. #: guix-git/doc/guix.texi:32295
  47891. #, no-wrap
  47892. msgid "--load=@var{boot}"
  47893. msgstr ""
  47894. #. type: table
  47895. #: guix-git/doc/guix.texi:32298
  47896. msgid "Tell the initial RAM disk to load @var{boot}, a file containing a Scheme program, once it has mounted the root file system."
  47897. msgstr ""
  47898. #. type: table
  47899. #: guix-git/doc/guix.texi:32302
  47900. 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."
  47901. msgstr ""
  47902. #. type: item
  47903. #: guix-git/doc/guix.texi:32303
  47904. #, no-wrap
  47905. msgid "--root=@var{root}"
  47906. msgstr ""
  47907. #. type: table
  47908. #: guix-git/doc/guix.texi:32308
  47909. 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."
  47910. msgstr ""
  47911. #. type: table
  47912. #: guix-git/doc/guix.texi:32312
  47913. msgid "Have @file{/run/booted-system} and @file{/run/current-system} point to @var{system}."
  47914. msgstr ""
  47915. #. type: item
  47916. #: guix-git/doc/guix.texi:32313
  47917. #, no-wrap
  47918. msgid "modprobe.blacklist=@var{modules}@dots{}"
  47919. msgstr ""
  47920. #. type: cindex
  47921. #: guix-git/doc/guix.texi:32314
  47922. #, no-wrap
  47923. msgid "module, black-listing"
  47924. msgstr ""
  47925. #. type: cindex
  47926. #: guix-git/doc/guix.texi:32315
  47927. #, no-wrap
  47928. msgid "black list, of kernel modules"
  47929. msgstr ""
  47930. #. type: table
  47931. #: guix-git/doc/guix.texi:32320
  47932. 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}."
  47933. msgstr ""
  47934. #. type: item
  47935. #: guix-git/doc/guix.texi:32321
  47936. #, no-wrap
  47937. msgid "--repl"
  47938. msgstr ""
  47939. #. type: table
  47940. #: guix-git/doc/guix.texi:32327
  47941. 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."
  47942. msgstr ""
  47943. #. type: Plain text
  47944. #: guix-git/doc/guix.texi:32333
  47945. 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."
  47946. msgstr ""
  47947. #. type: deffn
  47948. #: guix-git/doc/guix.texi:32336
  47949. #, no-wrap
  47950. msgid "{Scheme Procedure} raw-initrd @var{file-systems} @"
  47951. msgstr ""
  47952. #. type: deffn
  47953. #: guix-git/doc/guix.texi:32350
  47954. 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."
  47955. msgstr ""
  47956. #. type: deffn
  47957. #: guix-git/doc/guix.texi:32356 guix-git/doc/guix.texi:32380
  47958. 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."
  47959. msgstr ""
  47960. #. type: deffn
  47961. #: guix-git/doc/guix.texi:32360
  47962. 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."
  47963. msgstr ""
  47964. #. type: deffn
  47965. #: guix-git/doc/guix.texi:32363
  47966. msgid "When @var{volatile-root?} is true, the root file system is writable but any changes to it are lost."
  47967. msgstr ""
  47968. #. type: deffn
  47969. #: guix-git/doc/guix.texi:32365
  47970. #, no-wrap
  47971. msgid "{Scheme Procedure} base-initrd @var{file-systems} @"
  47972. msgstr ""
  47973. #. type: deffn
  47974. #: guix-git/doc/guix.texi:32374
  47975. 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."
  47976. msgstr ""
  47977. #. type: deffn
  47978. #: guix-git/doc/guix.texi:32382
  47979. msgid "@var{qemu-networking?} and @var{volatile-root?} behaves as in @code{raw-initrd}."
  47980. msgstr ""
  47981. #. type: deffn
  47982. #: guix-git/doc/guix.texi:32387
  47983. 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."
  47984. msgstr ""
  47985. #. type: Plain text
  47986. #: guix-git/doc/guix.texi:32394
  47987. 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."
  47988. msgstr ""
  47989. #. type: deffn
  47990. #: guix-git/doc/guix.texi:32395
  47991. #, no-wrap
  47992. msgid "{Scheme Procedure} expression->initrd @var{exp} @"
  47993. msgstr ""
  47994. #. type: deffn
  47995. #: guix-git/doc/guix.texi:32401
  47996. msgid "[#:guile %guile-3.0-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."
  47997. msgstr ""
  47998. #. type: cindex
  47999. #: guix-git/doc/guix.texi:32407
  48000. #, no-wrap
  48001. msgid "boot loader"
  48002. msgstr ""
  48003. #. type: Plain text
  48004. #: guix-git/doc/guix.texi:32414
  48005. 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."
  48006. msgstr ""
  48007. #. type: Plain text
  48008. #: guix-git/doc/guix.texi:32419
  48009. 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."
  48010. msgstr ""
  48011. #. type: deftp
  48012. #: guix-git/doc/guix.texi:32420
  48013. #, no-wrap
  48014. msgid "{Data Type} bootloader-configuration"
  48015. msgstr ""
  48016. #. type: deftp
  48017. #: guix-git/doc/guix.texi:32422
  48018. msgid "The type of a bootloader configuration declaration."
  48019. msgstr ""
  48020. #. type: cindex
  48021. #: guix-git/doc/guix.texi:32426
  48022. #, no-wrap
  48023. msgid "EFI, bootloader"
  48024. msgstr ""
  48025. #. type: cindex
  48026. #: guix-git/doc/guix.texi:32427
  48027. #, no-wrap
  48028. msgid "UEFI, bootloader"
  48029. msgstr ""
  48030. #. type: cindex
  48031. #: guix-git/doc/guix.texi:32428
  48032. #, no-wrap
  48033. msgid "BIOS, bootloader"
  48034. msgstr ""
  48035. #. type: table
  48036. #: guix-git/doc/guix.texi:32433
  48037. 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."
  48038. msgstr ""
  48039. #. type: cindex
  48040. #: guix-git/doc/guix.texi:32434
  48041. #, no-wrap
  48042. msgid "ARM, bootloaders"
  48043. msgstr ""
  48044. #. type: cindex
  48045. #: guix-git/doc/guix.texi:32435
  48046. #, no-wrap
  48047. msgid "AArch64, bootloaders"
  48048. msgstr ""
  48049. #. type: table
  48050. #: guix-git/doc/guix.texi:32440
  48051. 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}."
  48052. msgstr ""
  48053. #. type: table
  48054. #: guix-git/doc/guix.texi:32446
  48055. 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."
  48056. msgstr ""
  48057. #. type: table
  48058. #: guix-git/doc/guix.texi:32450
  48059. msgid "@code{grub-bootloader} allows you to boot in particular Intel-based machines in ``legacy'' BIOS mode."
  48060. msgstr ""
  48061. #. type: vindex
  48062. #: guix-git/doc/guix.texi:32451
  48063. #, no-wrap
  48064. msgid "grub-efi-netboot-bootloader"
  48065. msgstr ""
  48066. #. type: table
  48067. #: guix-git/doc/guix.texi:32455
  48068. 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."
  48069. msgstr ""
  48070. #. type: table
  48071. #: guix-git/doc/guix.texi:32461
  48072. 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."
  48073. msgstr ""
  48074. #. type: table
  48075. #: guix-git/doc/guix.texi:32470
  48076. 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}."
  48077. msgstr ""
  48078. #. type: table
  48079. #: guix-git/doc/guix.texi:32478
  48080. 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."
  48081. msgstr ""
  48082. #. type: table
  48083. #: guix-git/doc/guix.texi:32483
  48084. 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."
  48085. msgstr ""
  48086. #. type: table
  48087. #: guix-git/doc/guix.texi:32487
  48088. 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}."
  48089. msgstr ""
  48090. #. type: table
  48091. #: guix-git/doc/guix.texi:32492
  48092. 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."
  48093. msgstr ""
  48094. #. type: table
  48095. #: guix-git/doc/guix.texi:32497
  48096. 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}."
  48097. msgstr ""
  48098. #. type: table
  48099. #: guix-git/doc/guix.texi:32501
  48100. msgid "This is a string denoting the target onto which to install the bootloader."
  48101. msgstr ""
  48102. #. type: table
  48103. #: guix-git/doc/guix.texi:32510
  48104. 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."
  48105. msgstr ""
  48106. #. type: item
  48107. #: guix-git/doc/guix.texi:32511
  48108. #, no-wrap
  48109. msgid "@code{menu-entries} (default: @code{()})"
  48110. msgstr ""
  48111. #. type: table
  48112. #: guix-git/doc/guix.texi:32515
  48113. 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."
  48114. msgstr ""
  48115. #. type: item
  48116. #: guix-git/doc/guix.texi:32516
  48117. #, no-wrap
  48118. msgid "@code{default-entry} (default: @code{0})"
  48119. msgstr ""
  48120. #. type: table
  48121. #: guix-git/doc/guix.texi:32519
  48122. msgid "The index of the default boot menu entry. Index 0 is for the entry of the current system."
  48123. msgstr ""
  48124. #. type: item
  48125. #: guix-git/doc/guix.texi:32520
  48126. #, no-wrap
  48127. msgid "@code{timeout} (default: @code{5})"
  48128. msgstr ""
  48129. #. type: table
  48130. #: guix-git/doc/guix.texi:32523
  48131. msgid "The number of seconds to wait for keyboard input before booting. Set to 0 to boot immediately, and to -1 to wait indefinitely."
  48132. msgstr ""
  48133. #. type: cindex
  48134. #: guix-git/doc/guix.texi:32524
  48135. #, no-wrap
  48136. msgid "keyboard layout, for the bootloader"
  48137. msgstr ""
  48138. #. type: table
  48139. #: guix-git/doc/guix.texi:32528
  48140. msgid "If this is @code{#f}, the bootloader's menu (if any) uses the default keyboard layout, usually US@tie{}English (``qwerty'')."
  48141. msgstr ""
  48142. #. type: table
  48143. #: guix-git/doc/guix.texi:32531
  48144. msgid "Otherwise, this must be a @code{keyboard-layout} object (@pxref{Keyboard Layout})."
  48145. msgstr ""
  48146. #. type: quotation
  48147. #: guix-git/doc/guix.texi:32535
  48148. msgid "This option is currently ignored by bootloaders other than @code{grub} and @code{grub-efi}."
  48149. msgstr ""
  48150. #. type: item
  48151. #: guix-git/doc/guix.texi:32537
  48152. #, no-wrap
  48153. msgid "@code{theme} (default: @var{#f})"
  48154. msgstr ""
  48155. #. type: table
  48156. #: guix-git/doc/guix.texi:32541
  48157. 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."
  48158. msgstr ""
  48159. #. type: item
  48160. #: guix-git/doc/guix.texi:32542
  48161. #, fuzzy, no-wrap
  48162. msgid "@code{terminal-outputs} (default: @code{'(gfxterm)})"
  48163. msgstr "@code{features} (@code{'()})"
  48164. #. type: table
  48165. #: guix-git/doc/guix.texi:32549
  48166. 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})."
  48167. msgstr ""
  48168. #. type: item
  48169. #: guix-git/doc/guix.texi:32550
  48170. #, no-wrap
  48171. msgid "@code{terminal-inputs} (default: @code{'()})"
  48172. msgstr ""
  48173. #. type: table
  48174. #: guix-git/doc/guix.texi:32558
  48175. 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})."
  48176. msgstr ""
  48177. #. type: item
  48178. #: guix-git/doc/guix.texi:32559
  48179. #, no-wrap
  48180. msgid "@code{serial-unit} (default: @code{#f})"
  48181. msgstr ""
  48182. #. type: table
  48183. #: guix-git/doc/guix.texi:32563
  48184. 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})."
  48185. msgstr ""
  48186. #. type: item
  48187. #: guix-git/doc/guix.texi:32564
  48188. #, no-wrap
  48189. msgid "@code{serial-speed} (default: @code{#f})"
  48190. msgstr ""
  48191. #. type: table
  48192. #: guix-git/doc/guix.texi:32568
  48193. 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})."
  48194. msgstr ""
  48195. #. type: cindex
  48196. #: guix-git/doc/guix.texi:32572
  48197. #, no-wrap
  48198. msgid "dual boot"
  48199. msgstr ""
  48200. #. type: cindex
  48201. #: guix-git/doc/guix.texi:32573
  48202. #, no-wrap
  48203. msgid "boot menu"
  48204. msgstr ""
  48205. #. type: Plain text
  48206. #: guix-git/doc/guix.texi:32579
  48207. 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:"
  48208. msgstr ""
  48209. #. type: lisp
  48210. #: guix-git/doc/guix.texi:32586
  48211. #, no-wrap
  48212. msgid ""
  48213. "(menu-entry\n"
  48214. " (label \"The Other Distro\")\n"
  48215. " (linux \"/boot/old/vmlinux-2.6.32\")\n"
  48216. " (linux-arguments '(\"root=/dev/sda2\"))\n"
  48217. " (initrd \"/boot/old/initrd\"))\n"
  48218. msgstr ""
  48219. #. type: Plain text
  48220. #: guix-git/doc/guix.texi:32589
  48221. msgid "Details below."
  48222. msgstr ""
  48223. #. type: deftp
  48224. #: guix-git/doc/guix.texi:32590
  48225. #, no-wrap
  48226. msgid "{Data Type} menu-entry"
  48227. msgstr ""
  48228. #. type: deftp
  48229. #: guix-git/doc/guix.texi:32592
  48230. msgid "The type of an entry in the bootloader menu."
  48231. msgstr ""
  48232. #. type: table
  48233. #: guix-git/doc/guix.texi:32597
  48234. msgid "The label to show in the menu---e.g., @code{\"GNU\"}."
  48235. msgstr ""
  48236. #. type: item
  48237. #: guix-git/doc/guix.texi:32598
  48238. #, fuzzy, no-wrap
  48239. msgid "@code{linux} (default: @code{#f})"
  48240. msgstr "@code{challenge}(默认值:@code{#f})"
  48241. #. type: table
  48242. #: guix-git/doc/guix.texi:32600
  48243. msgid "The Linux kernel image to boot, for example:"
  48244. msgstr ""
  48245. #. type: lisp
  48246. #: guix-git/doc/guix.texi:32603
  48247. #, no-wrap
  48248. msgid "(file-append linux-libre \"/bzImage\")\n"
  48249. msgstr ""
  48250. #. type: table
  48251. #: guix-git/doc/guix.texi:32608
  48252. 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:"
  48253. msgstr ""
  48254. #. type: example
  48255. #: guix-git/doc/guix.texi:32611
  48256. #, no-wrap
  48257. msgid "\"(hd0,msdos1)/boot/vmlinuz\"\n"
  48258. msgstr ""
  48259. #. type: table
  48260. #: guix-git/doc/guix.texi:32615
  48261. msgid "If the device is specified explicitly as above, then the @code{device} field is ignored entirely."
  48262. msgstr ""
  48263. #. type: item
  48264. #: guix-git/doc/guix.texi:32616
  48265. #, no-wrap
  48266. msgid "@code{linux-arguments} (default: @code{()})"
  48267. msgstr ""
  48268. #. type: table
  48269. #: guix-git/doc/guix.texi:32619
  48270. msgid "The list of extra Linux kernel command-line arguments---e.g., @code{(\"console=ttyS0\")}."
  48271. msgstr ""
  48272. #. type: item
  48273. #: guix-git/doc/guix.texi:32620
  48274. #, fuzzy, no-wrap
  48275. msgid "@code{initrd} (default: @code{#f})"
  48276. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  48277. #. type: table
  48278. #: guix-git/doc/guix.texi:32623
  48279. msgid "A G-Expression or string denoting the file name of the initial RAM disk to use (@pxref{G-Expressions})."
  48280. msgstr ""
  48281. #. type: item
  48282. #: guix-git/doc/guix.texi:32624
  48283. #, no-wrap
  48284. msgid "@code{device} (default: @code{#f})"
  48285. msgstr ""
  48286. #. type: table
  48287. #: guix-git/doc/guix.texi:32627
  48288. 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})."
  48289. msgstr ""
  48290. #. type: table
  48291. #: guix-git/doc/guix.texi:32633
  48292. 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}."
  48293. msgstr ""
  48294. #. type: item
  48295. #: guix-git/doc/guix.texi:32634
  48296. #, fuzzy, no-wrap
  48297. msgid "@code{multiboot-kernel} (default: @code{#f})"
  48298. msgstr "@code{challenge}(默认值:@code{#f})"
  48299. #. type: table
  48300. #: guix-git/doc/guix.texi:32638
  48301. 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:"
  48302. msgstr ""
  48303. #. type: lisp
  48304. #: guix-git/doc/guix.texi:32641
  48305. #, no-wrap
  48306. msgid "(file-append mach \"/boot/gnumach\")\n"
  48307. msgstr ""
  48308. #. type: item
  48309. #: guix-git/doc/guix.texi:32643
  48310. #, fuzzy, no-wrap
  48311. msgid "@code{multiboot-arguments} (default: @code{()})"
  48312. msgstr "@code{features} (@code{'()})"
  48313. #. type: table
  48314. #: guix-git/doc/guix.texi:32645
  48315. msgid "The list of extra command-line arguments for the multiboot-kernel."
  48316. msgstr ""
  48317. #. type: item
  48318. #: guix-git/doc/guix.texi:32646
  48319. #, fuzzy, no-wrap
  48320. msgid "@code{multiboot-modules} (default: @code{()})"
  48321. msgstr "@code{features} (@code{'()})"
  48322. #. type: table
  48323. #: guix-git/doc/guix.texi:32648
  48324. msgid "The list of commands for loading Multiboot modules. For example:"
  48325. msgstr ""
  48326. #. type: lisp
  48327. #: guix-git/doc/guix.texi:32654
  48328. #, no-wrap
  48329. msgid ""
  48330. "(list (list (file-append hurd \"/hurd/ext2fs.static\") \"ext2fs\"\n"
  48331. " @dots{})\n"
  48332. " (list (file-append libc \"/lib/ld.so.1\") \"exec\"\n"
  48333. " @dots{}))\n"
  48334. msgstr ""
  48335. #. type: cindex
  48336. #: guix-git/doc/guix.texi:32659 guix-git/doc/guix.texi:32718
  48337. #, no-wrap
  48338. msgid "HDPI"
  48339. msgstr ""
  48340. #. type: cindex
  48341. #: guix-git/doc/guix.texi:32660 guix-git/doc/guix.texi:32719
  48342. #, no-wrap
  48343. msgid "HiDPI"
  48344. msgstr ""
  48345. #. type: cindex
  48346. #: guix-git/doc/guix.texi:32661 guix-git/doc/guix.texi:32720
  48347. #, fuzzy, no-wrap
  48348. msgid "resolution"
  48349. msgstr "隔离"
  48350. #. type: Plain text
  48351. #: guix-git/doc/guix.texi:32665
  48352. msgid "For now only GRUB has theme support. GRUB themes are created using the @code{grub-theme} form, which is not fully documented yet."
  48353. msgstr ""
  48354. #. type: deftp
  48355. #: guix-git/doc/guix.texi:32666
  48356. #, fuzzy, no-wrap
  48357. msgid "{Data Type} grub-theme"
  48358. msgstr "{数据类型} build-machine"
  48359. #. type: deftp
  48360. #: guix-git/doc/guix.texi:32668
  48361. msgid "Data type representing the configuration of the GRUB theme."
  48362. msgstr ""
  48363. #. type: item
  48364. #: guix-git/doc/guix.texi:32670
  48365. #, fuzzy, no-wrap
  48366. msgid "@code{gfxmode} (default: @code{'(\"auto\")})"
  48367. msgstr "@code{mate}(默认值:@code{mate})"
  48368. #. type: table
  48369. #: guix-git/doc/guix.texi:32673
  48370. msgid "The GRUB @code{gfxmode} to set (a list of screen resolution strings, @pxref{gfxmode,,, grub, GNU GRUB manual})."
  48371. msgstr ""
  48372. #. type: deffn
  48373. #: guix-git/doc/guix.texi:32676
  48374. #, no-wrap
  48375. msgid "{Scheme Procedure} grub-theme"
  48376. msgstr ""
  48377. #. type: deffn
  48378. #: guix-git/doc/guix.texi:32680
  48379. msgid "Return the default GRUB theme used by the operating system if no @code{theme} field is specified in @code{bootloader-configuration} record."
  48380. msgstr ""
  48381. #. type: deffn
  48382. #: guix-git/doc/guix.texi:32683
  48383. msgid "It comes with a fancy background image displaying the GNU and Guix logos."
  48384. msgstr ""
  48385. #. type: Plain text
  48386. #: guix-git/doc/guix.texi:32687
  48387. msgid "For example, to override the default resolution, you may use something like"
  48388. msgstr ""
  48389. #. type: lisp
  48390. #: guix-git/doc/guix.texi:32695
  48391. #, no-wrap
  48392. msgid ""
  48393. "(bootloader\n"
  48394. " (bootloader-configuration\n"
  48395. " ;; @dots{}\n"
  48396. " (theme (grub-theme\n"
  48397. " (inherit (grub-theme))\n"
  48398. " (gfxmode '(\"1024x786x32\" \"auto\"))))))\n"
  48399. msgstr ""
  48400. #. type: section
  48401. #: guix-git/doc/guix.texi:32698
  48402. #, no-wrap
  48403. msgid "Invoking @code{guix system}"
  48404. msgstr ""
  48405. #. type: Plain text
  48406. #: guix-git/doc/guix.texi:32703
  48407. 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:"
  48408. msgstr ""
  48409. #. type: example
  48410. #: guix-git/doc/guix.texi:32706
  48411. #, no-wrap
  48412. msgid "guix system @var{options}@dots{} @var{action} @var{file}\n"
  48413. msgstr ""
  48414. #. type: Plain text
  48415. #: guix-git/doc/guix.texi:32712
  48416. 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:"
  48417. msgstr ""
  48418. #. type: item
  48419. #: guix-git/doc/guix.texi:32714
  48420. #, no-wrap
  48421. msgid "search"
  48422. msgstr ""
  48423. #. type: table
  48424. #: guix-git/doc/guix.texi:32717
  48425. msgid "Display available service type definitions that match the given regular expressions, sorted by relevance:"
  48426. msgstr ""
  48427. #. type: example
  48428. #: guix-git/doc/guix.texi:32739
  48429. #, no-wrap
  48430. msgid ""
  48431. "$ guix system search console\n"
  48432. "name: console-fonts\n"
  48433. "location: gnu/services/base.scm:806:2\n"
  48434. "extends: shepherd-root\n"
  48435. "description: Install the given fonts on the specified ttys (fonts are per\n"
  48436. "+ virtual console on GNU/Linux). The value of this service is a list of\n"
  48437. "+ tty/font pairs. The font can be the name of a font provided by the `kbd'\n"
  48438. "+ package or any valid argument to `setfont', as in this example:\n"
  48439. "+\n"
  48440. "+ '((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  48441. "+ (\"tty2\" . (file-append\n"
  48442. "+ font-tamzen\n"
  48443. "+ \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  48444. "+ (\"tty3\" . (file-append\n"
  48445. "+ font-terminus\n"
  48446. "+ \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  48447. "relevance: 9\n"
  48448. "\n"
  48449. msgstr ""
  48450. #. type: example
  48451. #: guix-git/doc/guix.texi:32745
  48452. #, no-wrap
  48453. msgid ""
  48454. "name: mingetty\n"
  48455. "location: gnu/services/base.scm:1190:2\n"
  48456. "extends: shepherd-root\n"
  48457. "description: Provide console login using the `mingetty' program.\n"
  48458. "relevance: 2\n"
  48459. "\n"
  48460. msgstr ""
  48461. #. type: example
  48462. #: guix-git/doc/guix.texi:32752
  48463. #, no-wrap
  48464. msgid ""
  48465. "name: login\n"
  48466. "location: gnu/services/base.scm:860:2\n"
  48467. "extends: pam\n"
  48468. "description: Provide a console log-in service as specified by its\n"
  48469. "+ configuration value, a `login-configuration' object.\n"
  48470. "relevance: 2\n"
  48471. "\n"
  48472. msgstr ""
  48473. #. type: example
  48474. #: guix-git/doc/guix.texi:32754
  48475. #, no-wrap
  48476. msgid "@dots{}\n"
  48477. msgstr ""
  48478. #. type: table
  48479. #: guix-git/doc/guix.texi:32759
  48480. 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})."
  48481. msgstr ""
  48482. #. type: item
  48483. #: guix-git/doc/guix.texi:32760
  48484. #, no-wrap
  48485. msgid "reconfigure"
  48486. msgstr ""
  48487. #. type: table
  48488. #: guix-git/doc/guix.texi:32765
  48489. 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.}."
  48490. msgstr ""
  48491. #. type: quotation
  48492. #: guix-git/doc/guix.texi:32773
  48493. 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."
  48494. msgstr ""
  48495. #. type: table
  48496. #: guix-git/doc/guix.texi:32781
  48497. 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})."
  48498. msgstr ""
  48499. #. type: table
  48500. #: guix-git/doc/guix.texi:32787
  48501. 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})."
  48502. msgstr ""
  48503. #. type: table
  48504. #: guix-git/doc/guix.texi:32792
  48505. 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."
  48506. msgstr ""
  48507. #. type: cindex
  48508. #: guix-git/doc/guix.texi:32793 guix-git/doc/guix.texi:33118
  48509. #: guix-git/doc/guix.texi:34066
  48510. #, fuzzy, no-wrap
  48511. msgid "provenance tracking, of the operating system"
  48512. msgstr "配置操作系统。"
  48513. #. type: table
  48514. #: guix-git/doc/guix.texi:32798
  48515. 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:"
  48516. msgstr ""
  48517. #. type: example
  48518. #: guix-git/doc/guix.texi:32801
  48519. #, no-wrap
  48520. msgid "guix system describe\n"
  48521. msgstr "guix system describe\n"
  48522. #. type: table
  48523. #: guix-git/doc/guix.texi:32807
  48524. 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:"
  48525. msgstr ""
  48526. #. type: example
  48527. #: guix-git/doc/guix.texi:32813
  48528. #, no-wrap
  48529. msgid ""
  48530. "guix time-machine \\\n"
  48531. " -C /var/guix/profiles/system-@var{n}-link/channels.scm -- \\\n"
  48532. " system reconfigure \\\n"
  48533. " /var/guix/profiles/system-@var{n}-link/configuration.scm\n"
  48534. msgstr ""
  48535. #. type: table
  48536. #: guix-git/doc/guix.texi:32819
  48537. 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."
  48538. msgstr ""
  48539. #. type: table
  48540. #: guix-git/doc/guix.texi:32825
  48541. 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}."
  48542. msgstr ""
  48543. #. type: item
  48544. #: guix-git/doc/guix.texi:32826
  48545. #, no-wrap
  48546. msgid "switch-generation"
  48547. msgstr ""
  48548. #. type: table
  48549. #: guix-git/doc/guix.texi:32835
  48550. 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."
  48551. msgstr ""
  48552. #. type: table
  48553. #: guix-git/doc/guix.texi:32839
  48554. msgid "The bootloader itself is not being reinstalled when using this command. Thus, the installed bootloader is used with an updated configuration file."
  48555. msgstr ""
  48556. #. type: table
  48557. #: guix-git/doc/guix.texi:32843
  48558. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to system generation 7:"
  48559. msgstr ""
  48560. #. type: example
  48561. #: guix-git/doc/guix.texi:32846
  48562. #, no-wrap
  48563. msgid "guix system switch-generation 7\n"
  48564. msgstr ""
  48565. #. type: table
  48566. #: guix-git/doc/guix.texi:32854
  48567. 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:"
  48568. msgstr ""
  48569. #. type: example
  48570. #: guix-git/doc/guix.texi:32857
  48571. #, no-wrap
  48572. msgid "guix system switch-generation -- -1\n"
  48573. msgstr ""
  48574. #. type: table
  48575. #: guix-git/doc/guix.texi:32865
  48576. 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."
  48577. msgstr ""
  48578. #. type: table
  48579. #: guix-git/doc/guix.texi:32867
  48580. msgid "This action will fail if the specified generation does not exist."
  48581. msgstr ""
  48582. #. type: item
  48583. #: guix-git/doc/guix.texi:32868
  48584. #, no-wrap
  48585. msgid "roll-back"
  48586. msgstr ""
  48587. #. type: table
  48588. #: guix-git/doc/guix.texi:32874
  48589. 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}."
  48590. msgstr ""
  48591. #. type: table
  48592. #: guix-git/doc/guix.texi:32878
  48593. msgid "Currently, as with @command{switch-generation}, you must reboot after running this action to actually start using the preceding system generation."
  48594. msgstr ""
  48595. #. type: item
  48596. #: guix-git/doc/guix.texi:32879
  48597. #, no-wrap
  48598. msgid "delete-generations"
  48599. msgstr ""
  48600. #. type: cindex
  48601. #: guix-git/doc/guix.texi:32880
  48602. #, no-wrap
  48603. msgid "deleting system generations"
  48604. msgstr ""
  48605. #. type: cindex
  48606. #: guix-git/doc/guix.texi:32881
  48607. #, no-wrap
  48608. msgid "saving space"
  48609. msgstr ""
  48610. #. type: table
  48611. #: guix-git/doc/guix.texi:32885
  48612. msgid "Delete system generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  48613. msgstr ""
  48614. #. type: table
  48615. #: guix-git/doc/guix.texi:32889
  48616. 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:"
  48617. msgstr ""
  48618. #. type: example
  48619. #: guix-git/doc/guix.texi:32892
  48620. #, no-wrap
  48621. msgid "guix system delete-generations\n"
  48622. msgstr ""
  48623. #. type: table
  48624. #: guix-git/doc/guix.texi:32896
  48625. 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:"
  48626. msgstr ""
  48627. #. type: example
  48628. #: guix-git/doc/guix.texi:32899
  48629. #, no-wrap
  48630. msgid "guix system delete-generations 2m\n"
  48631. msgstr ""
  48632. #. type: table
  48633. #: guix-git/doc/guix.texi:32904
  48634. 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."
  48635. msgstr ""
  48636. #. type: table
  48637. #: guix-git/doc/guix.texi:32909
  48638. 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."
  48639. msgstr ""
  48640. #. type: item
  48641. #: guix-git/doc/guix.texi:32910
  48642. #, no-wrap
  48643. msgid "init"
  48644. msgstr ""
  48645. #. type: table
  48646. #: guix-git/doc/guix.texi:32914
  48647. 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:"
  48648. msgstr ""
  48649. #. type: example
  48650. #: guix-git/doc/guix.texi:32917
  48651. #, no-wrap
  48652. msgid "guix system init my-os-config.scm /mnt\n"
  48653. msgstr ""
  48654. #. type: table
  48655. #: guix-git/doc/guix.texi:32924
  48656. 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."
  48657. msgstr ""
  48658. #. type: table
  48659. #: guix-git/doc/guix.texi:32928
  48660. msgid "This command also installs bootloader on the target specified in @file{my-os-config}, unless the @option{--no-bootloader} option was passed."
  48661. msgstr ""
  48662. #. type: item
  48663. #: guix-git/doc/guix.texi:32929
  48664. #, no-wrap
  48665. msgid "vm"
  48666. msgstr ""
  48667. #. type: cindex
  48668. #: guix-git/doc/guix.texi:32930 guix-git/doc/guix.texi:33491
  48669. #, no-wrap
  48670. msgid "virtual machine"
  48671. msgstr ""
  48672. #. type: cindex
  48673. #: guix-git/doc/guix.texi:32931
  48674. #, no-wrap
  48675. msgid "VM"
  48676. msgstr ""
  48677. #. type: anchor{#1}
  48678. #: guix-git/doc/guix.texi:32935
  48679. msgid "guix system vm"
  48680. msgstr ""
  48681. #. type: table
  48682. #: guix-git/doc/guix.texi:32935
  48683. msgid "Build a virtual machine that contains the operating system declared in @var{file}, and return a script to run that virtual machine (VM)."
  48684. msgstr ""
  48685. #. type: quotation
  48686. #: guix-git/doc/guix.texi:32943
  48687. 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})."
  48688. msgstr ""
  48689. #. type: table
  48690. #: guix-git/doc/guix.texi:32948
  48691. 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:"
  48692. msgstr ""
  48693. #. type: example
  48694. #: guix-git/doc/guix.texi:32951
  48695. #, no-wrap
  48696. msgid "$ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -net user,model=virtio-net-pci\n"
  48697. msgstr ""
  48698. #. type: table
  48699. #: guix-git/doc/guix.texi:32954
  48700. msgid "The VM shares its store with the host system."
  48701. msgstr ""
  48702. #. type: table
  48703. #: guix-git/doc/guix.texi:32959
  48704. 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."
  48705. msgstr ""
  48706. #. type: table
  48707. #: guix-git/doc/guix.texi:32963
  48708. 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:"
  48709. msgstr ""
  48710. #. type: example
  48711. #: guix-git/doc/guix.texi:32967
  48712. #, no-wrap
  48713. msgid ""
  48714. "guix system vm my-config.scm \\\n"
  48715. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  48716. msgstr ""
  48717. #. type: table
  48718. #: guix-git/doc/guix.texi:32972
  48719. 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."
  48720. msgstr ""
  48721. #. type: table
  48722. #: guix-git/doc/guix.texi:32978
  48723. 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."
  48724. msgstr ""
  48725. #. type: cindex
  48726. #: guix-git/doc/guix.texi:32979
  48727. #, no-wrap
  48728. msgid "System images, creation in various formats"
  48729. msgstr ""
  48730. #. type: cindex
  48731. #: guix-git/doc/guix.texi:32980
  48732. #, no-wrap
  48733. msgid "Creating system images in various formats"
  48734. msgstr ""
  48735. #. type: item
  48736. #: guix-git/doc/guix.texi:32981
  48737. #, no-wrap
  48738. msgid "image"
  48739. msgstr ""
  48740. #. type: itemx
  48741. #: guix-git/doc/guix.texi:32982
  48742. #, no-wrap
  48743. msgid "docker-image"
  48744. msgstr ""
  48745. #. type: table
  48746. #: guix-git/doc/guix.texi:32990
  48747. 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}."
  48748. msgstr ""
  48749. #. type: cindex
  48750. #: guix-git/doc/guix.texi:32991
  48751. #, no-wrap
  48752. msgid "image, creating disk images"
  48753. msgstr ""
  48754. #. type: table
  48755. #: guix-git/doc/guix.texi:33003
  48756. 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:"
  48757. msgstr ""
  48758. #. type: example
  48759. #: guix-git/doc/guix.texi:33011
  48760. #, no-wrap
  48761. msgid ""
  48762. "image=$(guix system image --image-type=qcow2 \\\n"
  48763. " gnu/system/examples/lightweight-desktop.tmpl)\n"
  48764. "cp $image /tmp/my-image.qcow2\n"
  48765. "chmod +w /tmp/my-image.qcow2\n"
  48766. "qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 \\\n"
  48767. " -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin\n"
  48768. msgstr ""
  48769. #. type: table
  48770. #: guix-git/doc/guix.texi:33017
  48771. 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:"
  48772. msgstr ""
  48773. #. type: example
  48774. #: guix-git/doc/guix.texi:33020
  48775. #, no-wrap
  48776. msgid "# dd if=$(guix system image my-os.scm) of=/dev/sdc status=progress\n"
  48777. msgstr ""
  48778. #. type: table
  48779. #: guix-git/doc/guix.texi:33024
  48780. msgid "The @code{--list-image-types} command lists all the available image types."
  48781. msgstr ""
  48782. #. type: cindex
  48783. #: guix-git/doc/guix.texi:33025
  48784. #, no-wrap
  48785. msgid "creating virtual machine images"
  48786. msgstr ""
  48787. #. type: table
  48788. #: guix-git/doc/guix.texi:33034
  48789. 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)."
  48790. msgstr ""
  48791. #. type: cindex
  48792. #: guix-git/doc/guix.texi:33035
  48793. #, no-wrap
  48794. msgid "docker-image, creating docker images"
  48795. msgstr ""
  48796. #. type: table
  48797. #: guix-git/doc/guix.texi:33041
  48798. 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:"
  48799. msgstr ""
  48800. #. type: example
  48801. #: guix-git/doc/guix.texi:33046
  48802. #, no-wrap
  48803. msgid ""
  48804. "image_id=\"$(docker load < guix-system-docker-image.tar.gz)\"\n"
  48805. "container_id=\"$(docker create $image_id)\"\n"
  48806. "docker start $container_id\n"
  48807. msgstr ""
  48808. #. type: table
  48809. #: guix-git/doc/guix.texi:33053
  48810. 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}:"
  48811. msgstr ""
  48812. #. type: example
  48813. #: guix-git/doc/guix.texi:33056
  48814. #, no-wrap
  48815. msgid "docker exec -ti $container_id /run/current-system/profile/bin/bash --login\n"
  48816. msgstr ""
  48817. #. type: table
  48818. #: guix-git/doc/guix.texi:33063
  48819. 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}."
  48820. msgstr ""
  48821. #. type: table
  48822. #: guix-git/doc/guix.texi:33067
  48823. 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."
  48824. msgstr ""
  48825. #. type: table
  48826. #: guix-git/doc/guix.texi:33075
  48827. 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."
  48828. msgstr ""
  48829. #. type: table
  48830. #: guix-git/doc/guix.texi:33079
  48831. 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."
  48832. msgstr ""
  48833. #. type: table
  48834. #: guix-git/doc/guix.texi:33083
  48835. 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:"
  48836. msgstr ""
  48837. #. type: example
  48838. #: guix-git/doc/guix.texi:33087
  48839. #, no-wrap
  48840. msgid ""
  48841. "guix system container my-config.scm \\\n"
  48842. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  48843. msgstr ""
  48844. #. type: quotation
  48845. #: guix-git/doc/guix.texi:33091
  48846. msgid "This option requires Linux-libre 3.19 or newer."
  48847. msgstr ""
  48848. #. type: Plain text
  48849. #: guix-git/doc/guix.texi:33098
  48850. 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:"
  48851. msgstr ""
  48852. #. type: table
  48853. #: guix-git/doc/guix.texi:33107
  48854. 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})."
  48855. msgstr ""
  48856. #. type: table
  48857. #: guix-git/doc/guix.texi:33112
  48858. msgid "Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build})."
  48859. msgstr ""
  48860. #. type: table
  48861. #: guix-git/doc/guix.texi:33117
  48862. msgid "Return the derivation file name of the given operating system without building anything."
  48863. msgstr ""
  48864. #. type: table
  48865. #: guix-git/doc/guix.texi:33126
  48866. 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:"
  48867. msgstr ""
  48868. #. type: example
  48869. #: guix-git/doc/guix.texi:33129
  48870. #, no-wrap
  48871. msgid "guix system image -t qcow2 --save-provenance config.scm\n"
  48872. msgstr ""
  48873. #. type: table
  48874. #: guix-git/doc/guix.texi:33136
  48875. 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."
  48876. msgstr ""
  48877. #. type: item
  48878. #: guix-git/doc/guix.texi:33137
  48879. #, fuzzy, no-wrap
  48880. msgid "--image-type=@var{type}"
  48881. msgstr "--log-compression=@var{type}"
  48882. #. type: table
  48883. #: guix-git/doc/guix.texi:33140
  48884. msgid "For the @code{image} action, create an image with given @var{type}."
  48885. msgstr ""
  48886. #. type: table
  48887. #: guix-git/doc/guix.texi:33143
  48888. msgid "When this option is omitted, @command{guix system} uses the @code{efi-raw} image type."
  48889. msgstr ""
  48890. #. type: cindex
  48891. #: guix-git/doc/guix.texi:33144
  48892. #, no-wrap
  48893. msgid "ISO-9660 format"
  48894. msgstr ""
  48895. #. type: cindex
  48896. #: guix-git/doc/guix.texi:33145
  48897. #, no-wrap
  48898. msgid "CD image format"
  48899. msgstr ""
  48900. #. type: cindex
  48901. #: guix-git/doc/guix.texi:33146
  48902. #, no-wrap
  48903. msgid "DVD image format"
  48904. msgstr ""
  48905. #. type: table
  48906. #: guix-git/doc/guix.texi:33149
  48907. msgid "@option{--image-type=iso9660} produces an ISO-9660 image, suitable for burning on CDs and DVDs."
  48908. msgstr ""
  48909. #. type: item
  48910. #: guix-git/doc/guix.texi:33150
  48911. #, no-wrap
  48912. msgid "--image-size=@var{size}"
  48913. msgstr ""
  48914. #. type: table
  48915. #: guix-git/doc/guix.texi:33155
  48916. 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})."
  48917. msgstr ""
  48918. #. type: table
  48919. #: guix-git/doc/guix.texi:33159
  48920. 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}."
  48921. msgstr ""
  48922. #. type: table
  48923. #: guix-git/doc/guix.texi:33164
  48924. msgid "For the @code{container} action, allow containers to access the host network, that is, do not create a network namespace."
  48925. msgstr ""
  48926. #. type: item
  48927. #: guix-git/doc/guix.texi:33170
  48928. #, no-wrap
  48929. msgid "--skip-checks"
  48930. msgstr ""
  48931. #. type: table
  48932. #: guix-git/doc/guix.texi:33172
  48933. msgid "Skip pre-installation safety checks."
  48934. msgstr ""
  48935. #. type: table
  48936. #: guix-git/doc/guix.texi:33179
  48937. 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."
  48938. msgstr ""
  48939. #. type: table
  48940. #: guix-git/doc/guix.texi:33182
  48941. msgid "Instruct @command{guix system reconfigure} to allow system downgrades."
  48942. msgstr ""
  48943. #. type: table
  48944. #: guix-git/doc/guix.texi:33190
  48945. 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."
  48946. msgstr ""
  48947. #. type: cindex
  48948. #: guix-git/doc/guix.texi:33196
  48949. #, no-wrap
  48950. msgid "on-error"
  48951. msgstr ""
  48952. #. type: cindex
  48953. #: guix-git/doc/guix.texi:33197
  48954. #, no-wrap
  48955. msgid "on-error strategy"
  48956. msgstr ""
  48957. #. type: cindex
  48958. #: guix-git/doc/guix.texi:33198
  48959. #, no-wrap
  48960. msgid "error strategy"
  48961. msgstr ""
  48962. #. type: item
  48963. #: guix-git/doc/guix.texi:33199
  48964. #, no-wrap
  48965. msgid "--on-error=@var{strategy}"
  48966. msgstr ""
  48967. #. type: table
  48968. #: guix-git/doc/guix.texi:33202
  48969. msgid "Apply @var{strategy} when an error occurs when reading @var{file}. @var{strategy} may be one of the following:"
  48970. msgstr ""
  48971. #. type: item
  48972. #: guix-git/doc/guix.texi:33204
  48973. #, no-wrap
  48974. msgid "nothing-special"
  48975. msgstr ""
  48976. #. type: table
  48977. #: guix-git/doc/guix.texi:33206
  48978. msgid "Report the error concisely and exit. This is the default strategy."
  48979. msgstr ""
  48980. #. type: item
  48981. #: guix-git/doc/guix.texi:33207
  48982. #, no-wrap
  48983. msgid "backtrace"
  48984. msgstr ""
  48985. #. type: table
  48986. #: guix-git/doc/guix.texi:33209
  48987. msgid "Likewise, but also display a backtrace."
  48988. msgstr ""
  48989. #. type: item
  48990. #: guix-git/doc/guix.texi:33210
  48991. #, no-wrap
  48992. msgid "debug"
  48993. msgstr ""
  48994. #. type: table
  48995. #: guix-git/doc/guix.texi:33216
  48996. 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."
  48997. msgstr ""
  48998. #. type: Plain text
  48999. #: guix-git/doc/guix.texi:33223
  49000. 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:"
  49001. msgstr ""
  49002. #. type: item
  49003. #: guix-git/doc/guix.texi:33226
  49004. #, no-wrap
  49005. msgid "describe"
  49006. msgstr ""
  49007. #. type: table
  49008. #: guix-git/doc/guix.texi:33229
  49009. msgid "Describe the current system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available."
  49010. msgstr ""
  49011. #. type: item
  49012. #: guix-git/doc/guix.texi:33230
  49013. #, no-wrap
  49014. msgid "list-generations"
  49015. msgstr ""
  49016. #. type: table
  49017. #: guix-git/doc/guix.texi:33235
  49018. 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})."
  49019. msgstr ""
  49020. #. type: table
  49021. #: guix-git/doc/guix.texi:33240
  49022. 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:"
  49023. msgstr ""
  49024. #. type: example
  49025. #: guix-git/doc/guix.texi:33243
  49026. #, no-wrap
  49027. msgid "$ guix system list-generations 10d\n"
  49028. msgstr ""
  49029. #. type: Plain text
  49030. #: guix-git/doc/guix.texi:33250
  49031. 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:"
  49032. msgstr ""
  49033. #. type: anchor{#1}
  49034. #: guix-git/doc/guix.texi:33252
  49035. msgid "system-extension-graph"
  49036. msgstr ""
  49037. #. type: item
  49038. #: guix-git/doc/guix.texi:33254
  49039. #, no-wrap
  49040. msgid "extension-graph"
  49041. msgstr ""
  49042. #. type: table
  49043. #: guix-git/doc/guix.texi:33261
  49044. 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}}):"
  49045. msgstr ""
  49046. #. type: table
  49047. #: guix-git/doc/guix.texi:33263
  49048. msgid "The command:"
  49049. msgstr ""
  49050. #. type: example
  49051. #: guix-git/doc/guix.texi:33266
  49052. #, no-wrap
  49053. msgid "$ guix system extension-graph @var{file} | xdot -\n"
  49054. msgstr ""
  49055. #. type: table
  49056. #: guix-git/doc/guix.texi:33269
  49057. msgid "shows the extension relations among services."
  49058. msgstr ""
  49059. #. type: anchor{#1}
  49060. #: guix-git/doc/guix.texi:33271
  49061. msgid "system-shepherd-graph"
  49062. msgstr ""
  49063. #. type: item
  49064. #: guix-git/doc/guix.texi:33271
  49065. #, no-wrap
  49066. msgid "shepherd-graph"
  49067. msgstr ""
  49068. #. type: table
  49069. #: guix-git/doc/guix.texi:33276
  49070. 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."
  49071. msgstr ""
  49072. #. type: table
  49073. #: guix-git/doc/guix.texi:33279
  49074. msgid "Again, the default output format is Dot/Graphviz, but you can pass @option{--graph-backend} to select a different one."
  49075. msgstr ""
  49076. #. type: section
  49077. #: guix-git/doc/guix.texi:33283
  49078. #, fuzzy, no-wrap
  49079. msgid "Invoking @code{guix deploy}"
  49080. msgstr "调用@command{guix-daemon}"
  49081. #. type: Plain text
  49082. #: guix-git/doc/guix.texi:33291
  49083. 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''."
  49084. msgstr ""
  49085. #. type: quotation
  49086. #: guix-git/doc/guix.texi:33296
  49087. 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}!"
  49088. msgstr ""
  49089. #. type: example
  49090. #: guix-git/doc/guix.texi:33300
  49091. #, no-wrap
  49092. msgid "guix deploy @var{file}\n"
  49093. msgstr ""
  49094. #. type: Plain text
  49095. #: guix-git/doc/guix.texi:33304
  49096. 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:"
  49097. msgstr ""
  49098. #. type: lisp
  49099. #: guix-git/doc/guix.texi:33311
  49100. #, no-wrap
  49101. msgid ""
  49102. ";; This is a Guix deployment of a \"bare bones\" setup, with\n"
  49103. ";; no X11 display server, to a machine with an SSH daemon\n"
  49104. ";; listening on localhost:2222. A configuration such as this\n"
  49105. ";; may be appropriate for virtual machine with ports\n"
  49106. ";; forwarded to the host's loopback interface.\n"
  49107. "\n"
  49108. msgstr ""
  49109. #. type: lisp
  49110. #: guix-git/doc/guix.texi:33314
  49111. #, no-wrap
  49112. msgid ""
  49113. "(use-service-modules networking ssh)\n"
  49114. "(use-package-modules bootloaders)\n"
  49115. "\n"
  49116. msgstr ""
  49117. #. type: lisp
  49118. #: guix-git/doc/guix.texi:33335
  49119. #, no-wrap
  49120. msgid ""
  49121. "(define %system\n"
  49122. " (operating-system\n"
  49123. " (host-name \"gnu-deployed\")\n"
  49124. " (timezone \"Etc/UTC\")\n"
  49125. " (bootloader (bootloader-configuration\n"
  49126. " (bootloader grub-bootloader)\n"
  49127. " (target \"/dev/vda\")\n"
  49128. " (terminal-outputs '(console))))\n"
  49129. " (file-systems (cons (file-system\n"
  49130. " (mount-point \"/\")\n"
  49131. " (device \"/dev/vda1\")\n"
  49132. " (type \"ext4\"))\n"
  49133. " %base-file-systems))\n"
  49134. " (services\n"
  49135. " (append (list (service dhcp-client-service-type)\n"
  49136. " (service openssh-service-type\n"
  49137. " (openssh-configuration\n"
  49138. " (permit-root-login #t)\n"
  49139. " (allow-empty-passwords? #t))))\n"
  49140. " %base-services))))\n"
  49141. "\n"
  49142. msgstr ""
  49143. #. type: lisp
  49144. #: guix-git/doc/guix.texi:33345
  49145. #, no-wrap
  49146. msgid ""
  49147. "(list (machine\n"
  49148. " (operating-system %system)\n"
  49149. " (environment managed-host-environment-type)\n"
  49150. " (configuration (machine-ssh-configuration\n"
  49151. " (host-name \"localhost\")\n"
  49152. " (system \"x86_64-linux\")\n"
  49153. " (user \"alice\")\n"
  49154. " (identity \"./id_rsa\")\n"
  49155. " (port 2222)))))\n"
  49156. msgstr ""
  49157. #. type: Plain text
  49158. #: guix-git/doc/guix.texi:33358
  49159. 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."
  49160. msgstr ""
  49161. #. type: Plain text
  49162. #: guix-git/doc/guix.texi:33363
  49163. 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:"
  49164. msgstr ""
  49165. #. type: Plain text
  49166. #: guix-git/doc/guix.texi:33371
  49167. #, fuzzy
  49168. msgid "Each target machine must authorize the key of the master machine so that it accepts store items it receives from the coordinator:"
  49169. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  49170. #. type: example
  49171. #: guix-git/doc/guix.texi:33374
  49172. #, fuzzy, no-wrap
  49173. msgid "# guix archive --authorize < coordinator-public-key.txt\n"
  49174. msgstr "# guix archive --authorize < master-public-key.txt\n"
  49175. #. type: Plain text
  49176. #: guix-git/doc/guix.texi:33385
  49177. 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:"
  49178. msgstr ""
  49179. #. type: lisp
  49180. #: guix-git/doc/guix.texi:33389
  49181. #, no-wrap
  49182. msgid ""
  49183. "(use-modules ...\n"
  49184. " (gnu system)) ;for %sudoers-specification\n"
  49185. "\n"
  49186. msgstr ""
  49187. #. type: lisp
  49188. #: guix-git/doc/guix.texi:33391
  49189. #, no-wrap
  49190. msgid ""
  49191. "(define %user \"username\")\n"
  49192. "\n"
  49193. msgstr ""
  49194. #. type: lisp
  49195. #: guix-git/doc/guix.texi:33399
  49196. #, no-wrap
  49197. msgid ""
  49198. "(operating-system\n"
  49199. " ...\n"
  49200. " (sudoers-file\n"
  49201. " (plain-file \"sudoers\"\n"
  49202. " (string-append (plain-file-content %sudoers-specification)\n"
  49203. " (format #f \"~a ALL = NOPASSWD: ALL~%\"\n"
  49204. " %user)))))\n"
  49205. "\n"
  49206. msgstr ""
  49207. #. type: Plain text
  49208. #: guix-git/doc/guix.texi:33404
  49209. msgid "For more information regarding the format of the @file{sudoers} file, consult @command{man sudoers}."
  49210. msgstr ""
  49211. #. type: deftp
  49212. #: guix-git/doc/guix.texi:33405
  49213. #, fuzzy, no-wrap
  49214. msgid "{Data Type} machine"
  49215. msgstr "{数据类型} build-machine"
  49216. #. type: deftp
  49217. #: guix-git/doc/guix.texi:33408
  49218. msgid "This is the data type representing a single machine in a heterogeneous Guix deployment."
  49219. msgstr ""
  49220. #. type: table
  49221. #: guix-git/doc/guix.texi:33412
  49222. #, fuzzy
  49223. msgid "The object of the operating system configuration to deploy."
  49224. msgstr "管理操作系统配置。"
  49225. #. type: code{#1}
  49226. #: guix-git/doc/guix.texi:33413
  49227. #, fuzzy, no-wrap
  49228. msgid "environment"
  49229. msgstr "构建环境"
  49230. #. type: table
  49231. #: guix-git/doc/guix.texi:33415
  49232. msgid "An @code{environment-type} describing how the machine should be provisioned."
  49233. msgstr ""
  49234. #. type: item
  49235. #: guix-git/doc/guix.texi:33416
  49236. #, fuzzy, no-wrap
  49237. msgid "@code{configuration} (default: @code{#f})"
  49238. msgstr "@code{journal-content}(默认值:@code{#f})"
  49239. #. type: table
  49240. #: guix-git/doc/guix.texi:33421
  49241. 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."
  49242. msgstr ""
  49243. #. type: deftp
  49244. #: guix-git/doc/guix.texi:33424
  49245. #, fuzzy, no-wrap
  49246. msgid "{Data Type} machine-ssh-configuration"
  49247. msgstr "{数据类型} build-machine"
  49248. #. type: deftp
  49249. #: guix-git/doc/guix.texi:33427
  49250. msgid "This is the data type representing the SSH client parameters for a machine with an @code{environment} of @code{managed-host-environment-type}."
  49251. msgstr ""
  49252. #. type: item
  49253. #: guix-git/doc/guix.texi:33430
  49254. #, fuzzy, no-wrap
  49255. msgid "@code{build-locally?} (default: @code{#t})"
  49256. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  49257. #. type: table
  49258. #: guix-git/doc/guix.texi:33432
  49259. msgid "If false, system derivations will be built on the machine being deployed to."
  49260. msgstr ""
  49261. #. type: code{#1}
  49262. #: guix-git/doc/guix.texi:33432
  49263. #, no-wrap
  49264. msgid "system"
  49265. msgstr "系统"
  49266. #. type: table
  49267. #: guix-git/doc/guix.texi:33435
  49268. #, fuzzy
  49269. msgid "The system type describing the architecture of the machine being deployed to---e.g., @code{\"x86_64-linux\"}."
  49270. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  49271. #. type: item
  49272. #: guix-git/doc/guix.texi:33435
  49273. #, fuzzy, no-wrap
  49274. msgid "@code{authorize?} (default: @code{#t})"
  49275. msgstr "@code{mate}(默认值:@code{mate})"
  49276. #. type: table
  49277. #: guix-git/doc/guix.texi:33438
  49278. msgid "If true, the coordinator's signing key will be added to the remote's ACL keyring."
  49279. msgstr ""
  49280. #. type: item
  49281. #: guix-git/doc/guix.texi:33439
  49282. #, fuzzy, no-wrap
  49283. msgid "@code{user} (default: @code{\"root\"})"
  49284. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  49285. #. type: item
  49286. #: guix-git/doc/guix.texi:33440
  49287. #, fuzzy, no-wrap
  49288. msgid "@code{identity} (default: @code{#f})"
  49289. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49290. #. type: table
  49291. #: guix-git/doc/guix.texi:33443
  49292. msgid "If specified, the path to the SSH private key to use to authenticate with the remote host."
  49293. msgstr ""
  49294. #. type: item
  49295. #: guix-git/doc/guix.texi:33444
  49296. #, fuzzy, no-wrap
  49297. msgid "@code{host-key} (default: @code{#f})"
  49298. msgstr "@code{port}(默认值:@code{22})"
  49299. #. type: table
  49300. #: guix-git/doc/guix.texi:33446
  49301. msgid "This should be the SSH host key of the machine, which looks like this:"
  49302. msgstr ""
  49303. #. type: example
  49304. #: guix-git/doc/guix.texi:33449
  49305. #, fuzzy, no-wrap
  49306. msgid "ssh-ed25519 AAAAC3Nz@dots{} root@@example.org\n"
  49307. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  49308. #. type: table
  49309. #: guix-git/doc/guix.texi:33454
  49310. 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."
  49311. msgstr ""
  49312. #. type: item
  49313. #: guix-git/doc/guix.texi:33455
  49314. #, fuzzy, no-wrap
  49315. msgid "@code{allow-downgrades?} (default: @code{#f})"
  49316. msgstr "@code{challenge}(默认值:@code{#f})"
  49317. #. type: table
  49318. #: guix-git/doc/guix.texi:33457
  49319. msgid "Whether to allow potential downgrades."
  49320. msgstr ""
  49321. #. type: table
  49322. #: guix-git/doc/guix.texi:33465
  49323. 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."
  49324. msgstr ""
  49325. #. type: deftp
  49326. #: guix-git/doc/guix.texi:33468
  49327. #, no-wrap
  49328. msgid "{Data Type} digital-ocean-configuration"
  49329. msgstr ""
  49330. #. type: deftp
  49331. #: guix-git/doc/guix.texi:33471
  49332. 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}."
  49333. msgstr ""
  49334. #. type: code{#1}
  49335. #: guix-git/doc/guix.texi:33473
  49336. #, fuzzy, no-wrap
  49337. msgid "ssh-key"
  49338. msgstr "主机公钥"
  49339. #. type: table
  49340. #: guix-git/doc/guix.texi:33476
  49341. msgid "The path to the SSH private key to use to authenticate with the remote host. In the future, this field may not exist."
  49342. msgstr ""
  49343. #. type: code{#1}
  49344. #: guix-git/doc/guix.texi:33476
  49345. #, no-wrap
  49346. msgid "tags"
  49347. msgstr ""
  49348. #. type: table
  49349. #: guix-git/doc/guix.texi:33479
  49350. 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."
  49351. msgstr ""
  49352. #. type: code{#1}
  49353. #: guix-git/doc/guix.texi:33479
  49354. #, no-wrap
  49355. msgid "region"
  49356. msgstr ""
  49357. #. type: table
  49358. #: guix-git/doc/guix.texi:33481
  49359. msgid "A Digital Ocean region slug, such as @code{\"nyc3\"}."
  49360. msgstr ""
  49361. #. type: table
  49362. #: guix-git/doc/guix.texi:33483
  49363. msgid "A Digital Ocean size slug, such as @code{\"s-1vcpu-1gb\"}"
  49364. msgstr ""
  49365. #. type: code{#1}
  49366. #: guix-git/doc/guix.texi:33483
  49367. #, no-wrap
  49368. msgid "enable-ipv6?"
  49369. msgstr ""
  49370. #. type: table
  49371. #: guix-git/doc/guix.texi:33485
  49372. msgid "Whether or not the droplet should be created with IPv6 networking."
  49373. msgstr ""
  49374. #. type: section
  49375. #: guix-git/doc/guix.texi:33489
  49376. #, no-wrap
  49377. msgid "Running Guix in a Virtual Machine"
  49378. msgstr ""
  49379. #. type: Plain text
  49380. #: guix-git/doc/guix.texi:33498
  49381. 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 will first need to decompress with @command{xz -d}, and then you can pass it to an emulator such as QEMU (see below for details)."
  49382. msgstr ""
  49383. #. type: Plain text
  49384. #: guix-git/doc/guix.texi:33505
  49385. 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})."
  49386. msgstr ""
  49387. #. type: Plain text
  49388. #: guix-git/doc/guix.texi:33510
  49389. msgid "Instead of using this pre-built image, one can also build their own virtual machine image using @command{guix system vm-image} (@pxref{Invoking guix system}). The returned image is in qcow2 format, which the @uref{https://qemu.org/, QEMU emulator} can efficiently use."
  49390. msgstr ""
  49391. #. type: cindex
  49392. #: guix-git/doc/guix.texi:33511
  49393. #, no-wrap
  49394. msgid "QEMU"
  49395. msgstr ""
  49396. #. type: Plain text
  49397. #: guix-git/doc/guix.texi:33518
  49398. 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:"
  49399. msgstr ""
  49400. #. type: example
  49401. #: guix-git/doc/guix.texi:33525
  49402. #, no-wrap
  49403. msgid ""
  49404. "$ qemu-system-x86_64 \\\n"
  49405. " -nic user,model=virtio-net-pci \\\n"
  49406. " -enable-kvm -m 1024 \\\n"
  49407. " -device virtio-blk,drive=myhd \\\n"
  49408. " -drive if=none,file=/tmp/qemu-image,id=myhd\n"
  49409. msgstr ""
  49410. #. type: Plain text
  49411. #: guix-git/doc/guix.texi:33528
  49412. msgid "Here is what each of these options means:"
  49413. msgstr ""
  49414. #. type: item
  49415. #: guix-git/doc/guix.texi:33530
  49416. #, no-wrap
  49417. msgid "qemu-system-x86_64"
  49418. msgstr ""
  49419. #. type: table
  49420. #: guix-git/doc/guix.texi:33533
  49421. msgid "This specifies the hardware platform to emulate. This should match the host."
  49422. msgstr ""
  49423. #. type: item
  49424. #: guix-git/doc/guix.texi:33534
  49425. #, no-wrap
  49426. msgid "-nic user,model=virtio-net-pci"
  49427. msgstr ""
  49428. #. type: table
  49429. #: guix-git/doc/guix.texi:33542
  49430. 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}."
  49431. msgstr ""
  49432. #. type: item
  49433. #: guix-git/doc/guix.texi:33543
  49434. #, no-wrap
  49435. msgid "-enable-kvm"
  49436. msgstr ""
  49437. #. type: table
  49438. #: guix-git/doc/guix.texi:33547
  49439. msgid "If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster."
  49440. msgstr ""
  49441. #. type: item
  49442. #: guix-git/doc/guix.texi:33549
  49443. #, no-wrap
  49444. msgid "-m 1024"
  49445. msgstr ""
  49446. #. type: table
  49447. #: guix-git/doc/guix.texi:33552
  49448. msgid "RAM available to the guest OS, in mebibytes. Defaults to 128@tie{}MiB, which may be insufficient for some operations."
  49449. msgstr ""
  49450. #. type: item
  49451. #: guix-git/doc/guix.texi:33553
  49452. #, no-wrap
  49453. msgid "-device virtio-blk,drive=myhd"
  49454. msgstr ""
  49455. #. type: table
  49456. #: guix-git/doc/guix.texi:33558
  49457. 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."
  49458. msgstr ""
  49459. #. type: item
  49460. #: guix-git/doc/guix.texi:33559
  49461. #, no-wrap
  49462. msgid "-drive if=none,file=/tmp/qemu-image,id=myhd"
  49463. msgstr ""
  49464. #. type: table
  49465. #: guix-git/doc/guix.texi:33562
  49466. msgid "Use our QCOW image, the @file{/tmp/qemu-image} file, as the backing store of the ``myhd'' drive."
  49467. msgstr ""
  49468. #. type: Plain text
  49469. #: guix-git/doc/guix.texi:33572
  49470. 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}."
  49471. msgstr ""
  49472. #. type: subsection
  49473. #: guix-git/doc/guix.texi:33573
  49474. #, no-wrap
  49475. msgid "Connecting Through SSH"
  49476. msgstr ""
  49477. #. type: Plain text
  49478. #: guix-git/doc/guix.texi:33581
  49479. 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"
  49480. msgstr ""
  49481. #. type: example
  49482. #: guix-git/doc/guix.texi:33584
  49483. #, no-wrap
  49484. msgid "$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22\n"
  49485. msgstr ""
  49486. #. type: Plain text
  49487. #: guix-git/doc/guix.texi:33587
  49488. msgid "To connect to the VM you can run"
  49489. msgstr ""
  49490. #. type: example
  49491. #: guix-git/doc/guix.texi:33590
  49492. #, no-wrap
  49493. msgid "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 localhost\n"
  49494. msgstr ""
  49495. #. type: Plain text
  49496. #: guix-git/doc/guix.texi:33597
  49497. 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."
  49498. msgstr ""
  49499. #. type: subsection
  49500. #: guix-git/doc/guix.texi:33598
  49501. #, no-wrap
  49502. msgid "Using @command{virt-viewer} with Spice"
  49503. msgstr ""
  49504. #. type: Plain text
  49505. #: guix-git/doc/guix.texi:33604
  49506. 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."
  49507. msgstr ""
  49508. #. type: Plain text
  49509. #: guix-git/doc/guix.texi:33607
  49510. 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}:"
  49511. msgstr ""
  49512. #. type: example
  49513. #: guix-git/doc/guix.texi:33613
  49514. #, no-wrap
  49515. msgid ""
  49516. "-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5\n"
  49517. "-chardev spicevmc,name=vdagent,id=vdagent\n"
  49518. "-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,\n"
  49519. "name=com.redhat.spice.0\n"
  49520. msgstr ""
  49521. #. type: Plain text
  49522. #: guix-git/doc/guix.texi:33617
  49523. msgid "You'll also need to add the @code{(spice-vdagent-service)} to your system definition (@pxref{Miscellaneous Services, Spice service})."
  49524. msgstr ""
  49525. #. type: Plain text
  49526. #: guix-git/doc/guix.texi:33624
  49527. 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?"
  49528. msgstr ""
  49529. #. type: cindex
  49530. #: guix-git/doc/guix.texi:33636
  49531. #, no-wrap
  49532. msgid "daemons"
  49533. msgstr ""
  49534. #. type: Plain text
  49535. #: guix-git/doc/guix.texi:33649
  49536. 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."
  49537. msgstr ""
  49538. #. type: cindex
  49539. #: guix-git/doc/guix.texi:33650
  49540. #, no-wrap
  49541. msgid "service extensions"
  49542. msgstr ""
  49543. #. type: Plain text
  49544. #: guix-git/doc/guix.texi:33662
  49545. 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})."
  49546. msgstr ""
  49547. #. type: Plain text
  49548. #: guix-git/doc/guix.texi:33666
  49549. 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:"
  49550. msgstr ""
  49551. #. type: Plain text
  49552. #: guix-git/doc/guix.texi:33668
  49553. msgid "@image{images/service-graph,,5in,Typical service extension graph.}"
  49554. msgstr ""
  49555. #. type: cindex
  49556. #: guix-git/doc/guix.texi:33669
  49557. #, no-wrap
  49558. msgid "system service"
  49559. msgstr ""
  49560. #. type: Plain text
  49561. #: guix-git/doc/guix.texi:33677
  49562. 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."
  49563. msgstr ""
  49564. #. type: cindex
  49565. #: guix-git/doc/guix.texi:33678
  49566. #, no-wrap
  49567. msgid "service types"
  49568. msgstr ""
  49569. #. type: Plain text
  49570. #: guix-git/doc/guix.texi:33684
  49571. 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."
  49572. msgstr ""
  49573. #. type: Plain text
  49574. #: guix-git/doc/guix.texi:33687
  49575. msgid "The following section describes the programming interface for service types and services."
  49576. msgstr ""
  49577. #. type: Plain text
  49578. #: guix-git/doc/guix.texi:33694
  49579. 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}):"
  49580. msgstr ""
  49581. #. type: lisp
  49582. #: guix-git/doc/guix.texi:33704
  49583. #, no-wrap
  49584. msgid ""
  49585. "(define guix-service-type\n"
  49586. " (service-type\n"
  49587. " (name 'guix)\n"
  49588. " (extensions\n"
  49589. " (list (service-extension shepherd-root-service-type guix-shepherd-service)\n"
  49590. " (service-extension account-service-type guix-accounts)\n"
  49591. " (service-extension activation-service-type guix-activation)))\n"
  49592. " (default-value (guix-configuration))))\n"
  49593. msgstr ""
  49594. #. type: Plain text
  49595. #: guix-git/doc/guix.texi:33708
  49596. msgid "It defines three things:"
  49597. msgstr ""
  49598. #. type: enumerate
  49599. #: guix-git/doc/guix.texi:33712
  49600. msgid "A name, whose sole purpose is to make inspection and debugging easier."
  49601. msgstr ""
  49602. #. type: enumerate
  49603. #: guix-git/doc/guix.texi:33717
  49604. 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."
  49605. msgstr ""
  49606. #. type: enumerate
  49607. #: guix-git/doc/guix.texi:33720
  49608. msgid "Every service type has at least one service extension. The only exception is the @dfn{boot service type}, which is the ultimate service."
  49609. msgstr ""
  49610. #. type: enumerate
  49611. #: guix-git/doc/guix.texi:33723
  49612. msgid "Optionally, a default value for instances of this type."
  49613. msgstr ""
  49614. #. type: Plain text
  49615. #: guix-git/doc/guix.texi:33726
  49616. msgid "In this example, @code{guix-service-type} extends three services:"
  49617. msgstr ""
  49618. #. type: item
  49619. #: guix-git/doc/guix.texi:33728
  49620. #, no-wrap
  49621. msgid "shepherd-root-service-type"
  49622. msgstr ""
  49623. #. type: table
  49624. #: guix-git/doc/guix.texi:33733
  49625. 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})."
  49626. msgstr ""
  49627. #. type: item
  49628. #: guix-git/doc/guix.texi:33734
  49629. #, no-wrap
  49630. msgid "account-service-type"
  49631. msgstr ""
  49632. #. type: table
  49633. #: guix-git/doc/guix.texi:33739
  49634. 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})."
  49635. msgstr ""
  49636. #. type: item
  49637. #: guix-git/doc/guix.texi:33740
  49638. #, no-wrap
  49639. msgid "activation-service-type"
  49640. msgstr ""
  49641. #. type: table
  49642. #: guix-git/doc/guix.texi:33744
  49643. 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."
  49644. msgstr ""
  49645. #. type: Plain text
  49646. #: guix-git/doc/guix.texi:33747
  49647. msgid "A service of this type is instantiated like this:"
  49648. msgstr ""
  49649. #. type: lisp
  49650. #: guix-git/doc/guix.texi:33753
  49651. #, no-wrap
  49652. msgid ""
  49653. "(service guix-service-type\n"
  49654. " (guix-configuration\n"
  49655. " (build-accounts 5)\n"
  49656. " (extra-options '(\"--gc-keep-derivations\"))))\n"
  49657. msgstr ""
  49658. #. type: Plain text
  49659. #: guix-git/doc/guix.texi:33761
  49660. 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:"
  49661. msgstr ""
  49662. #. type: lisp
  49663. #: guix-git/doc/guix.texi:33764
  49664. #, no-wrap
  49665. msgid "(service guix-service-type)\n"
  49666. msgstr ""
  49667. #. type: Plain text
  49668. #: guix-git/doc/guix.texi:33768
  49669. msgid "@code{guix-service-type} is quite simple because it extends other services but is not extensible itself."
  49670. msgstr ""
  49671. #. type: Plain text
  49672. #: guix-git/doc/guix.texi:33772
  49673. msgid "The service type for an @emph{extensible} service looks like this:"
  49674. msgstr ""
  49675. #. type: lisp
  49676. #: guix-git/doc/guix.texi:33779
  49677. #, no-wrap
  49678. msgid ""
  49679. "(define udev-service-type\n"
  49680. " (service-type (name 'udev)\n"
  49681. " (extensions\n"
  49682. " (list (service-extension shepherd-root-service-type\n"
  49683. " udev-shepherd-service)))\n"
  49684. "\n"
  49685. msgstr ""
  49686. #. type: lisp
  49687. #: guix-git/doc/guix.texi:33787
  49688. #, no-wrap
  49689. msgid ""
  49690. " (compose concatenate) ;concatenate the list of rules\n"
  49691. " (extend (lambda (config rules)\n"
  49692. " (match config\n"
  49693. " (($ <udev-configuration> udev initial-rules)\n"
  49694. " (udev-configuration\n"
  49695. " (udev udev) ;the udev package to use\n"
  49696. " (rules (append initial-rules rules)))))))))\n"
  49697. msgstr ""
  49698. #. type: Plain text
  49699. #: guix-git/doc/guix.texi:33793
  49700. 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:"
  49701. msgstr ""
  49702. #. type: item
  49703. #: guix-git/doc/guix.texi:33795
  49704. #, no-wrap
  49705. msgid "compose"
  49706. msgstr ""
  49707. #. type: table
  49708. #: guix-git/doc/guix.texi:33798
  49709. msgid "This is the procedure to @dfn{compose} the list of extensions to services of this type."
  49710. msgstr ""
  49711. #. type: table
  49712. #: guix-git/doc/guix.texi:33801
  49713. msgid "Services can extend the udev service by passing it lists of rules; we compose those extensions simply by concatenating them."
  49714. msgstr ""
  49715. #. type: item
  49716. #: guix-git/doc/guix.texi:33802
  49717. #, no-wrap
  49718. msgid "extend"
  49719. msgstr ""
  49720. #. type: table
  49721. #: guix-git/doc/guix.texi:33805
  49722. msgid "This procedure defines how the value of the service is @dfn{extended} with the composition of the extensions."
  49723. msgstr ""
  49724. #. type: table
  49725. #: guix-git/doc/guix.texi:33810
  49726. 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."
  49727. msgstr ""
  49728. #. type: table
  49729. #: guix-git/doc/guix.texi:33816
  49730. 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})."
  49731. msgstr ""
  49732. #. type: Plain text
  49733. #: guix-git/doc/guix.texi:33821
  49734. 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."
  49735. msgstr ""
  49736. #. type: Plain text
  49737. #: guix-git/doc/guix.texi:33824
  49738. msgid "Still here? The next section provides a reference of the programming interface for services."
  49739. msgstr ""
  49740. #. type: Plain text
  49741. #: guix-git/doc/guix.texi:33832
  49742. 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."
  49743. msgstr ""
  49744. #. type: deffn
  49745. #: guix-git/doc/guix.texi:33833
  49746. #, no-wrap
  49747. msgid "{Scheme Procedure} service @var{type} [@var{value}]"
  49748. msgstr ""
  49749. #. type: deffn
  49750. #: guix-git/doc/guix.texi:33837
  49751. 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."
  49752. msgstr ""
  49753. #. type: deffn
  49754. #: guix-git/doc/guix.texi:33841
  49755. 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."
  49756. msgstr ""
  49757. #. type: deffn
  49758. #: guix-git/doc/guix.texi:33843
  49759. msgid "For instance, this:"
  49760. msgstr ""
  49761. #. type: lisp
  49762. #: guix-git/doc/guix.texi:33846
  49763. #, no-wrap
  49764. msgid "(service openssh-service-type)\n"
  49765. msgstr ""
  49766. #. type: deffn
  49767. #: guix-git/doc/guix.texi:33850
  49768. msgid "is equivalent to this:"
  49769. msgstr ""
  49770. #. type: lisp
  49771. #: guix-git/doc/guix.texi:33854
  49772. #, no-wrap
  49773. msgid ""
  49774. "(service openssh-service-type\n"
  49775. " (openssh-configuration))\n"
  49776. msgstr ""
  49777. #. type: deffn
  49778. #: guix-git/doc/guix.texi:33858
  49779. msgid "In both cases the result is an instance of @code{openssh-service-type} with the default configuration."
  49780. msgstr ""
  49781. #. type: deffn
  49782. #: guix-git/doc/guix.texi:33860
  49783. #, no-wrap
  49784. msgid "{Scheme Procedure} service? @var{obj}"
  49785. msgstr ""
  49786. #. type: deffn
  49787. #: guix-git/doc/guix.texi:33862
  49788. msgid "Return true if @var{obj} is a service."
  49789. msgstr ""
  49790. #. type: deffn
  49791. #: guix-git/doc/guix.texi:33864
  49792. #, no-wrap
  49793. msgid "{Scheme Procedure} service-kind @var{service}"
  49794. msgstr ""
  49795. #. type: deffn
  49796. #: guix-git/doc/guix.texi:33866
  49797. msgid "Return the type of @var{service}---i.e., a @code{<service-type>} object."
  49798. msgstr ""
  49799. #. type: deffn
  49800. #: guix-git/doc/guix.texi:33868
  49801. #, no-wrap
  49802. msgid "{Scheme Procedure} service-value @var{service}"
  49803. msgstr ""
  49804. #. type: deffn
  49805. #: guix-git/doc/guix.texi:33871
  49806. msgid "Return the value associated with @var{service}. It represents its parameters."
  49807. msgstr ""
  49808. #. type: Plain text
  49809. #: guix-git/doc/guix.texi:33874
  49810. msgid "Here is an example of how a service is created and manipulated:"
  49811. msgstr ""
  49812. #. type: lisp
  49813. #: guix-git/doc/guix.texi:33883
  49814. #, no-wrap
  49815. msgid ""
  49816. "(define s\n"
  49817. " (service nginx-service-type\n"
  49818. " (nginx-configuration\n"
  49819. " (nginx nginx)\n"
  49820. " (log-directory log-directory)\n"
  49821. " (run-directory run-directory)\n"
  49822. " (file config-file))))\n"
  49823. "\n"
  49824. msgstr ""
  49825. #. type: lisp
  49826. #: guix-git/doc/guix.texi:33886
  49827. #, no-wrap
  49828. msgid ""
  49829. "(service? s)\n"
  49830. "@result{} #t\n"
  49831. "\n"
  49832. msgstr ""
  49833. #. type: lisp
  49834. #: guix-git/doc/guix.texi:33889
  49835. #, no-wrap
  49836. msgid ""
  49837. "(eq? (service-kind s) nginx-service-type)\n"
  49838. "@result{} #t\n"
  49839. msgstr ""
  49840. #. type: Plain text
  49841. #: guix-git/doc/guix.texi:33899
  49842. 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."
  49843. msgstr ""
  49844. #. type: deffn
  49845. #: guix-git/doc/guix.texi:33900
  49846. #, no-wrap
  49847. msgid "{Scheme Syntax} modify-services @var{services} @"
  49848. msgstr ""
  49849. #. type: deffn
  49850. #: guix-git/doc/guix.texi:33902
  49851. msgid "(@var{type} @var{variable} => @var{body}) @dots{}"
  49852. msgstr ""
  49853. #. type: deffn
  49854. #: guix-git/doc/guix.texi:33905
  49855. msgid "Modify the services listed in @var{services} according to the given clauses. Each clause has the form:"
  49856. msgstr ""
  49857. #. type: example
  49858. #: guix-git/doc/guix.texi:33908
  49859. #, no-wrap
  49860. msgid "(@var{type} @var{variable} => @var{body})\n"
  49861. msgstr ""
  49862. #. type: deffn
  49863. #: guix-git/doc/guix.texi:33915
  49864. 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}."
  49865. msgstr ""
  49866. #. type: deffn
  49867. #: guix-git/doc/guix.texi:33922
  49868. 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."
  49869. msgstr ""
  49870. #. type: deffn
  49871. #: guix-git/doc/guix.texi:33924
  49872. msgid "@xref{Using the Configuration System}, for example usage."
  49873. msgstr ""
  49874. #. type: Plain text
  49875. #: guix-git/doc/guix.texi:33931
  49876. 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."
  49877. msgstr ""
  49878. #. type: deftp
  49879. #: guix-git/doc/guix.texi:33932
  49880. #, no-wrap
  49881. msgid "{Data Type} service-type"
  49882. msgstr ""
  49883. #. type: cindex
  49884. #: guix-git/doc/guix.texi:33933
  49885. #, no-wrap
  49886. msgid "service type"
  49887. msgstr ""
  49888. #. type: deftp
  49889. #: guix-git/doc/guix.texi:33936
  49890. msgid "This is the representation of a @dfn{service type} (@pxref{Service Types and Services})."
  49891. msgstr ""
  49892. #. type: table
  49893. #: guix-git/doc/guix.texi:33940
  49894. msgid "This is a symbol, used only to simplify inspection and debugging."
  49895. msgstr ""
  49896. #. type: code{#1}
  49897. #: guix-git/doc/guix.texi:33941
  49898. #, no-wrap
  49899. msgid "extensions"
  49900. msgstr ""
  49901. #. type: table
  49902. #: guix-git/doc/guix.texi:33943
  49903. msgid "A non-empty list of @code{<service-extension>} objects (see below)."
  49904. msgstr ""
  49905. #. type: item
  49906. #: guix-git/doc/guix.texi:33944
  49907. #, no-wrap
  49908. msgid "@code{compose} (default: @code{#f})"
  49909. msgstr ""
  49910. #. type: table
  49911. #: guix-git/doc/guix.texi:33948
  49912. 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."
  49913. msgstr ""
  49914. #. type: table
  49915. #: guix-git/doc/guix.texi:33952
  49916. 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."
  49917. msgstr ""
  49918. #. type: item
  49919. #: guix-git/doc/guix.texi:33953
  49920. #, no-wrap
  49921. msgid "@code{extend} (default: @code{#f})"
  49922. msgstr ""
  49923. #. type: table
  49924. #: guix-git/doc/guix.texi:33955
  49925. msgid "If this is @code{#f}, services of this type cannot be extended."
  49926. msgstr ""
  49927. #. type: table
  49928. #: guix-git/doc/guix.texi:33961
  49929. 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."
  49930. msgstr ""
  49931. #. type: table
  49932. #: guix-git/doc/guix.texi:33967
  49933. 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})."
  49934. msgstr ""
  49935. #. type: item
  49936. #: guix-git/doc/guix.texi:33968
  49937. #, fuzzy, no-wrap
  49938. msgid "@code{default-value} (default: @code{&no-default-value})"
  49939. msgstr "@code{mate}(默认值:@code{mate})"
  49940. #. type: table
  49941. #: guix-git/doc/guix.texi:33971
  49942. msgid "The default value associated for instances of this service type. This allows users to use the @code{service} form without its second argument:"
  49943. msgstr ""
  49944. #. type: lisp
  49945. #: guix-git/doc/guix.texi:33974
  49946. #, no-wrap
  49947. msgid "(service @var{type})\n"
  49948. msgstr ""
  49949. #. type: table
  49950. #: guix-git/doc/guix.texi:33978
  49951. msgid "The returned service in this case has the default value specified by @var{type}."
  49952. msgstr ""
  49953. #. type: deftp
  49954. #: guix-git/doc/guix.texi:33981
  49955. msgid "@xref{Service Types and Services}, for examples."
  49956. msgstr ""
  49957. #. type: deffn
  49958. #: guix-git/doc/guix.texi:33983
  49959. #, no-wrap
  49960. msgid "{Scheme Procedure} service-extension @var{target-type} @"
  49961. msgstr ""
  49962. #. type: deffn
  49963. #: guix-git/doc/guix.texi:33989
  49964. 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."
  49965. msgstr ""
  49966. #. type: deffn
  49967. #: guix-git/doc/guix.texi:33991
  49968. #, no-wrap
  49969. msgid "{Scheme Procedure} service-extension? @var{obj}"
  49970. msgstr ""
  49971. #. type: deffn
  49972. #: guix-git/doc/guix.texi:33993
  49973. msgid "Return true if @var{obj} is a service extension."
  49974. msgstr ""
  49975. #. type: Plain text
  49976. #: guix-git/doc/guix.texi:33999
  49977. 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."
  49978. msgstr ""
  49979. #. type: deffn
  49980. #: guix-git/doc/guix.texi:34000
  49981. #, no-wrap
  49982. msgid "{Scheme Procedure} simple-service @var{name} @var{target} @var{value}"
  49983. msgstr ""
  49984. #. type: deffn
  49985. #: guix-git/doc/guix.texi:34004
  49986. 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."
  49987. msgstr ""
  49988. #. type: deffn
  49989. #: guix-git/doc/guix.texi:34007
  49990. msgid "For example, this extends mcron (@pxref{Scheduled Job Execution}) with an additional job:"
  49991. msgstr ""
  49992. #. type: lisp
  49993. #: guix-git/doc/guix.texi:34011
  49994. #, no-wrap
  49995. msgid ""
  49996. "(simple-service 'my-mcron-job mcron-service-type\n"
  49997. " #~(job '(next-hour (3)) \"guix gc -F 2G\"))\n"
  49998. msgstr ""
  49999. #. type: Plain text
  50000. #: guix-git/doc/guix.texi:34021
  50001. 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."
  50002. msgstr ""
  50003. #. type: deffn
  50004. #: guix-git/doc/guix.texi:34022
  50005. #, no-wrap
  50006. msgid "{Scheme Procedure} fold-services @var{services} @"
  50007. msgstr ""
  50008. #. type: deffn
  50009. #: guix-git/doc/guix.texi:34026
  50010. 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."
  50011. msgstr ""
  50012. #. type: Plain text
  50013. #: guix-git/doc/guix.texi:34030
  50014. msgid "Lastly, the @code{(gnu services)} module also defines several essential service types, some of which are listed below."
  50015. msgstr ""
  50016. #. type: defvr
  50017. #: guix-git/doc/guix.texi:34031
  50018. #, no-wrap
  50019. msgid "{Scheme Variable} system-service-type"
  50020. msgstr ""
  50021. #. type: defvr
  50022. #: guix-git/doc/guix.texi:34034
  50023. msgid "This is the root of the service graph. It produces the system directory as returned by the @command{guix system build} command."
  50024. msgstr ""
  50025. #. type: defvr
  50026. #: guix-git/doc/guix.texi:34036
  50027. #, no-wrap
  50028. msgid "{Scheme Variable} boot-service-type"
  50029. msgstr ""
  50030. #. type: defvr
  50031. #: guix-git/doc/guix.texi:34039
  50032. 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."
  50033. msgstr ""
  50034. #. type: defvr
  50035. #: guix-git/doc/guix.texi:34041
  50036. #, no-wrap
  50037. msgid "{Scheme Variable} etc-service-type"
  50038. msgstr ""
  50039. #. type: defvr
  50040. #: guix-git/doc/guix.texi:34045
  50041. 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:"
  50042. msgstr ""
  50043. #. type: lisp
  50044. #: guix-git/doc/guix.texi:34048
  50045. #, no-wrap
  50046. msgid "(list `(\"issue\" ,(plain-file \"issue\" \"Welcome!\\n\")))\n"
  50047. msgstr ""
  50048. #. type: defvr
  50049. #: guix-git/doc/guix.texi:34052
  50050. msgid "In this example, the effect would be to add an @file{/etc/issue} file pointing to the given file."
  50051. msgstr ""
  50052. #. type: defvr
  50053. #: guix-git/doc/guix.texi:34054
  50054. #, no-wrap
  50055. msgid "{Scheme Variable} setuid-program-service-type"
  50056. msgstr ""
  50057. #. type: defvr
  50058. #: guix-git/doc/guix.texi:34058
  50059. 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})."
  50060. msgstr ""
  50061. #. type: defvr
  50062. #: guix-git/doc/guix.texi:34060
  50063. #, no-wrap
  50064. msgid "{Scheme Variable} profile-service-type"
  50065. msgstr ""
  50066. #. type: defvr
  50067. #: guix-git/doc/guix.texi:34064
  50068. 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."
  50069. msgstr ""
  50070. #. type: anchor{#1}
  50071. #: guix-git/doc/guix.texi:34068
  50072. msgid "provenance-service-type"
  50073. msgstr ""
  50074. #. type: defvr
  50075. #: guix-git/doc/guix.texi:34068
  50076. #, no-wrap
  50077. msgid "{Scheme Variable} provenance-service-type"
  50078. msgstr ""
  50079. #. type: defvr
  50080. #: guix-git/doc/guix.texi:34072
  50081. 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}:"
  50082. msgstr ""
  50083. #. type: item
  50084. #: guix-git/doc/guix.texi:34074
  50085. #, fuzzy, no-wrap
  50086. msgid "channels.scm"
  50087. msgstr "通道"
  50088. #. type: table
  50089. #: guix-git/doc/guix.texi:34079
  50090. 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})."
  50091. msgstr ""
  50092. #. type: item
  50093. #: guix-git/doc/guix.texi:34080
  50094. #, fuzzy, no-wrap
  50095. msgid "configuration.scm"
  50096. msgstr "系统配置"
  50097. #. type: table
  50098. #: guix-git/doc/guix.texi:34085
  50099. 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."
  50100. msgstr ""
  50101. #. type: item
  50102. #: guix-git/doc/guix.texi:34086
  50103. #, no-wrap
  50104. msgid "provenance"
  50105. msgstr ""
  50106. #. type: table
  50107. #: guix-git/doc/guix.texi:34089
  50108. msgid "This contains the same information as the two other files but in a format that is more readily processable."
  50109. msgstr ""
  50110. #. type: defvr
  50111. #: guix-git/doc/guix.texi:34093
  50112. msgid "In general, these two pieces of information (channels and configuration file) are enough to reproduce the operating system ``from source''."
  50113. msgstr ""
  50114. #. type: quotation
  50115. #: guix-git/doc/guix.texi:34094
  50116. #, no-wrap
  50117. msgid "Caveats"
  50118. msgstr ""
  50119. #. type: quotation
  50120. #: guix-git/doc/guix.texi:34101
  50121. 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."
  50122. msgstr ""
  50123. #. type: quotation
  50124. #: guix-git/doc/guix.texi:34109
  50125. 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."
  50126. msgstr ""
  50127. #. type: defvr
  50128. #: guix-git/doc/guix.texi:34114
  50129. 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}."
  50130. msgstr ""
  50131. #. type: cindex
  50132. #: guix-git/doc/guix.texi:34119
  50133. #, no-wrap
  50134. msgid "shepherd services"
  50135. msgstr ""
  50136. #. type: cindex
  50137. #: guix-git/doc/guix.texi:34120
  50138. #, no-wrap
  50139. msgid "PID 1"
  50140. msgstr ""
  50141. #. type: cindex
  50142. #: guix-git/doc/guix.texi:34121
  50143. #, no-wrap
  50144. msgid "init system"
  50145. msgstr ""
  50146. #. type: Plain text
  50147. #: guix-git/doc/guix.texi:34127
  50148. 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})."
  50149. msgstr ""
  50150. #. type: Plain text
  50151. #: guix-git/doc/guix.texi:34133
  50152. 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:"
  50153. msgstr ""
  50154. #. type: Plain text
  50155. #: guix-git/doc/guix.texi:34135
  50156. msgid "@image{images/shepherd-graph,,5in,Typical shepherd service graph.}"
  50157. msgstr ""
  50158. #. type: Plain text
  50159. #: guix-git/doc/guix.texi:34139
  50160. 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}})."
  50161. msgstr ""
  50162. #. type: Plain text
  50163. #: guix-git/doc/guix.texi:34143
  50164. 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."
  50165. msgstr ""
  50166. #. type: deftp
  50167. #: guix-git/doc/guix.texi:34144
  50168. #, no-wrap
  50169. msgid "{Data Type} shepherd-service"
  50170. msgstr ""
  50171. #. type: deftp
  50172. #: guix-git/doc/guix.texi:34146
  50173. msgid "The data type representing a service managed by the Shepherd."
  50174. msgstr ""
  50175. #. type: code{#1}
  50176. #: guix-git/doc/guix.texi:34148
  50177. #, no-wrap
  50178. msgid "provision"
  50179. msgstr ""
  50180. #. type: table
  50181. #: guix-git/doc/guix.texi:34150
  50182. msgid "This is a list of symbols denoting what the service provides."
  50183. msgstr ""
  50184. #. type: table
  50185. #: guix-git/doc/guix.texi:34155
  50186. 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."
  50187. msgstr ""
  50188. #. type: item
  50189. #: guix-git/doc/guix.texi:34156
  50190. #, fuzzy, no-wrap
  50191. msgid "@code{requirement} (default: @code{'()})"
  50192. msgstr "@code{features} (@code{'()})"
  50193. #. type: table
  50194. #: guix-git/doc/guix.texi:34158
  50195. msgid "List of symbols denoting the Shepherd services this one depends on."
  50196. msgstr ""
  50197. #. type: cindex
  50198. #: guix-git/doc/guix.texi:34159
  50199. #, no-wrap
  50200. msgid "one-shot services, for the Shepherd"
  50201. msgstr ""
  50202. #. type: table
  50203. #: guix-git/doc/guix.texi:34164
  50204. 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."
  50205. msgstr ""
  50206. #. type: item
  50207. #: guix-git/doc/guix.texi:34165
  50208. #, no-wrap
  50209. msgid "@code{respawn?} (default: @code{#t})"
  50210. msgstr ""
  50211. #. type: table
  50212. #: guix-git/doc/guix.texi:34168
  50213. msgid "Whether to restart the service when it stops, for instance when the underlying process dies."
  50214. msgstr ""
  50215. #. type: code{#1}
  50216. #: guix-git/doc/guix.texi:34169
  50217. #, no-wrap
  50218. msgid "start"
  50219. msgstr ""
  50220. #. type: itemx
  50221. #: guix-git/doc/guix.texi:34170
  50222. #, no-wrap
  50223. msgid "@code{stop} (default: @code{#~(const #f)})"
  50224. msgstr ""
  50225. #. type: table
  50226. #: guix-git/doc/guix.texi:34176
  50227. 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})."
  50228. msgstr ""
  50229. #. type: item
  50230. #: guix-git/doc/guix.texi:34177
  50231. #, no-wrap
  50232. msgid "@code{actions} (default: @code{'()})"
  50233. msgstr ""
  50234. #. type: cindex
  50235. #: guix-git/doc/guix.texi:34178
  50236. #, no-wrap
  50237. msgid "actions, of Shepherd services"
  50238. msgstr ""
  50239. #. type: table
  50240. #: guix-git/doc/guix.texi:34183
  50241. 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:"
  50242. msgstr ""
  50243. #. type: example
  50244. #: guix-git/doc/guix.texi:34186
  50245. #, no-wrap
  50246. msgid "herd @var{action} @var{service} [@var{arguments}@dots{}]\n"
  50247. msgstr ""
  50248. #. type: item
  50249. #: guix-git/doc/guix.texi:34188
  50250. #, fuzzy, no-wrap
  50251. msgid "@code{auto-start?} (default: @code{#t})"
  50252. msgstr "@code{port}(默认值:@code{22})"
  50253. #. type: table
  50254. #: guix-git/doc/guix.texi:34191
  50255. 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}."
  50256. msgstr ""
  50257. #. type: table
  50258. #: guix-git/doc/guix.texi:34194
  50259. msgid "A documentation string, as shown when running:"
  50260. msgstr ""
  50261. #. type: example
  50262. #: guix-git/doc/guix.texi:34197
  50263. #, no-wrap
  50264. msgid "herd doc @var{service-name}\n"
  50265. msgstr ""
  50266. #. type: table
  50267. #: guix-git/doc/guix.texi:34201
  50268. msgid "where @var{service-name} is one of the symbols in @code{provision} (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual})."
  50269. msgstr ""
  50270. #. type: item
  50271. #: guix-git/doc/guix.texi:34202
  50272. #, no-wrap
  50273. msgid "@code{modules} (default: @code{%default-modules})"
  50274. msgstr ""
  50275. #. type: table
  50276. #: guix-git/doc/guix.texi:34205
  50277. msgid "This is the list of modules that must be in scope when @code{start} and @code{stop} are evaluated."
  50278. msgstr ""
  50279. #. type: Plain text
  50280. #: guix-git/doc/guix.texi:34213
  50281. 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}):"
  50282. msgstr ""
  50283. #. type: example
  50284. #: guix-git/doc/guix.texi:34225
  50285. #, no-wrap
  50286. msgid ""
  50287. "(let ((config (plain-file \"syslogd.conf\" \"@dots{}\")))\n"
  50288. " (shepherd-service\n"
  50289. " (documentation \"Run the syslog daemon (syslogd).\")\n"
  50290. " (provision '(syslogd))\n"
  50291. " (requirement '(user-processes))\n"
  50292. " (start #~(make-forkexec-constructor\n"
  50293. " (list #$(file-append inetutils \"/libexec/syslogd\")\n"
  50294. " \"--rcfile\" #$config)\n"
  50295. " #:pid-file \"/var/run/syslog.pid\"))\n"
  50296. " (stop #~(make-kill-destructor))))\n"
  50297. msgstr ""
  50298. #. type: Plain text
  50299. #: guix-git/doc/guix.texi:34240
  50300. 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})."
  50301. msgstr ""
  50302. #. type: deftp
  50303. #: guix-git/doc/guix.texi:34241
  50304. #, no-wrap
  50305. msgid "{Data Type} shepherd-action"
  50306. msgstr ""
  50307. #. type: deftp
  50308. #: guix-git/doc/guix.texi:34244
  50309. msgid "This is the data type that defines additional actions implemented by a Shepherd service (see above)."
  50310. msgstr ""
  50311. #. type: table
  50312. #: guix-git/doc/guix.texi:34248
  50313. msgid "Symbol naming the action."
  50314. msgstr ""
  50315. #. type: table
  50316. #: guix-git/doc/guix.texi:34251
  50317. msgid "This is a documentation string for the action. It can be viewed by running:"
  50318. msgstr ""
  50319. #. type: example
  50320. #: guix-git/doc/guix.texi:34254
  50321. #, no-wrap
  50322. msgid "herd doc @var{service} action @var{action}\n"
  50323. msgstr ""
  50324. #. type: item
  50325. #: guix-git/doc/guix.texi:34256
  50326. #, no-wrap
  50327. msgid "procedure"
  50328. msgstr ""
  50329. #. type: table
  50330. #: guix-git/doc/guix.texi:34260
  50331. 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})."
  50332. msgstr ""
  50333. #. type: deftp
  50334. #: guix-git/doc/guix.texi:34264
  50335. msgid "The following example defines an action called @code{say-hello} that kindly greets the user:"
  50336. msgstr ""
  50337. #. type: lisp
  50338. #: guix-git/doc/guix.texi:34273
  50339. #, no-wrap
  50340. msgid ""
  50341. "(shepherd-action\n"
  50342. " (name 'say-hello)\n"
  50343. " (documentation \"Say hi!\")\n"
  50344. " (procedure #~(lambda (running . args)\n"
  50345. " (format #t \"Hello, friend! arguments: ~s\\n\"\n"
  50346. " args)\n"
  50347. " #t)))\n"
  50348. msgstr ""
  50349. #. type: deftp
  50350. #: guix-git/doc/guix.texi:34276
  50351. msgid "Assuming this action is added to the @code{example} service, then you can do:"
  50352. msgstr ""
  50353. #. type: example
  50354. #: guix-git/doc/guix.texi:34282
  50355. #, no-wrap
  50356. msgid ""
  50357. "# herd say-hello example\n"
  50358. "Hello, friend! arguments: ()\n"
  50359. "# herd say-hello example a b c\n"
  50360. "Hello, friend! arguments: (\"a\" \"b\" \"c\")\n"
  50361. msgstr ""
  50362. #. type: deftp
  50363. #: guix-git/doc/guix.texi:34287
  50364. 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."
  50365. msgstr ""
  50366. #. type: defvr
  50367. #: guix-git/doc/guix.texi:34289
  50368. #, no-wrap
  50369. msgid "{Scheme Variable} shepherd-root-service-type"
  50370. msgstr ""
  50371. #. type: defvr
  50372. #: guix-git/doc/guix.texi:34291
  50373. msgid "The service type for the Shepherd ``root service''---i.e., PID@tie{}1."
  50374. msgstr ""
  50375. #. type: defvr
  50376. #: guix-git/doc/guix.texi:34296
  50377. 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."
  50378. msgstr ""
  50379. #. type: deftp
  50380. #: guix-git/doc/guix.texi:34298
  50381. #, fuzzy, no-wrap
  50382. msgid "{Data Type} shepherd-configuration"
  50383. msgstr "{数据类型} build-machine"
  50384. #. type: deftp
  50385. #: guix-git/doc/guix.texi:34300
  50386. #, fuzzy
  50387. msgid "This data type represents the Shepherd's configuration."
  50388. msgstr "管理操作系统配置。"
  50389. #. type: item
  50390. #: guix-git/doc/guix.texi:34302
  50391. #, fuzzy, no-wrap
  50392. msgid "shepherd (default: @code{shepherd})"
  50393. msgstr "@code{mate}(默认值:@code{mate})"
  50394. #. type: table
  50395. #: guix-git/doc/guix.texi:34304
  50396. #, fuzzy
  50397. msgid "The Shepherd package to use."
  50398. msgstr "软件包数据类型。"
  50399. #. type: item
  50400. #: guix-git/doc/guix.texi:34305
  50401. #, fuzzy, no-wrap
  50402. msgid "services (default: @code{'()})"
  50403. msgstr "@code{features} (@code{'()})"
  50404. #. type: table
  50405. #: guix-git/doc/guix.texi:34309
  50406. msgid "A list of @code{<shepherd-service>} to start. You should probably use the service extension mechanism instead (@pxref{Shepherd Services})."
  50407. msgstr ""
  50408. #. type: Plain text
  50409. #: guix-git/doc/guix.texi:34314
  50410. msgid "The following example specifies the Shepherd package for the operating system:"
  50411. msgstr ""
  50412. #. type: lisp
  50413. #: guix-git/doc/guix.texi:34329
  50414. #, no-wrap
  50415. msgid ""
  50416. "(operating-system\n"
  50417. " ;; ...\n"
  50418. " (services (append (list openssh-service-type))\n"
  50419. " ;; ...\n"
  50420. " %desktop-services)\n"
  50421. " ;; ...\n"
  50422. " ;; Use own Shepherd package.\n"
  50423. " (essential-services\n"
  50424. " (modify-services (operating-system-default-essential-services\n"
  50425. " this-operating-system)\n"
  50426. " (shepherd-root-service-type config => (shepherd-configuration\n"
  50427. " (inherit config)\n"
  50428. " (shepherd my-shepherd))))))\n"
  50429. msgstr ""
  50430. #. type: defvr
  50431. #: guix-git/doc/guix.texi:34331
  50432. #, no-wrap
  50433. msgid "{Scheme Variable} %shepherd-root-service"
  50434. msgstr ""
  50435. #. type: defvr
  50436. #: guix-git/doc/guix.texi:34333
  50437. msgid "This service represents PID@tie{}1."
  50438. msgstr ""
  50439. #. type: cindex
  50440. #: guix-git/doc/guix.texi:34339
  50441. #, no-wrap
  50442. msgid "documentation, searching for"
  50443. msgstr ""
  50444. #. type: cindex
  50445. #: guix-git/doc/guix.texi:34340
  50446. #, no-wrap
  50447. msgid "searching for documentation"
  50448. msgstr ""
  50449. #. type: cindex
  50450. #: guix-git/doc/guix.texi:34341
  50451. #, no-wrap
  50452. msgid "Info, documentation format"
  50453. msgstr ""
  50454. #. type: cindex
  50455. #: guix-git/doc/guix.texi:34342
  50456. #, no-wrap
  50457. msgid "man pages"
  50458. msgstr ""
  50459. #. type: cindex
  50460. #: guix-git/doc/guix.texi:34343
  50461. #, no-wrap
  50462. msgid "manual pages"
  50463. msgstr ""
  50464. #. type: Plain text
  50465. #: guix-git/doc/guix.texi:34350
  50466. 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}."
  50467. msgstr ""
  50468. #. type: Plain text
  50469. #: guix-git/doc/guix.texi:34354
  50470. 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:"
  50471. msgstr ""
  50472. #. type: example
  50473. #: guix-git/doc/guix.texi:34362
  50474. #, no-wrap
  50475. msgid ""
  50476. "$ info -k TLS\n"
  50477. "\"(emacs)Network Security\" -- STARTTLS\n"
  50478. "\"(emacs)Network Security\" -- TLS\n"
  50479. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_flags\n"
  50480. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_function\n"
  50481. "@dots{}\n"
  50482. msgstr ""
  50483. #. type: Plain text
  50484. #: guix-git/doc/guix.texi:34366
  50485. msgid "The command below searches for the same keyword in man pages:"
  50486. msgstr ""
  50487. #. type: example
  50488. #: guix-git/doc/guix.texi:34372
  50489. #, no-wrap
  50490. msgid ""
  50491. "$ man -k TLS\n"
  50492. "SSL (7) - OpenSSL SSL/TLS library\n"
  50493. "certtool (1) - GnuTLS certificate tool\n"
  50494. "@dots {}\n"
  50495. msgstr ""
  50496. #. type: Plain text
  50497. #: guix-git/doc/guix.texi:34378
  50498. 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."
  50499. msgstr ""
  50500. #. type: Plain text
  50501. #: guix-git/doc/guix.texi:34381
  50502. msgid "Once you have these results, you can view the relevant documentation by running, say:"
  50503. msgstr ""
  50504. #. type: example
  50505. #: guix-git/doc/guix.texi:34384
  50506. #, no-wrap
  50507. msgid "$ info \"(gnutls)Core TLS API\"\n"
  50508. msgstr ""
  50509. #. type: Plain text
  50510. #: guix-git/doc/guix.texi:34388
  50511. msgid "or:"
  50512. msgstr ""
  50513. #. type: example
  50514. #: guix-git/doc/guix.texi:34391
  50515. #, no-wrap
  50516. msgid "$ man certtool\n"
  50517. msgstr ""
  50518. #. type: Plain text
  50519. #: guix-git/doc/guix.texi:34399
  50520. 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."
  50521. msgstr ""
  50522. #. type: cindex
  50523. #: guix-git/doc/guix.texi:34403
  50524. #, no-wrap
  50525. msgid "debugging files"
  50526. msgstr ""
  50527. #. type: Plain text
  50528. #: guix-git/doc/guix.texi:34409
  50529. 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."
  50530. msgstr ""
  50531. #. type: Plain text
  50532. #: guix-git/doc/guix.texi:34413
  50533. 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."
  50534. msgstr ""
  50535. #. type: Plain text
  50536. #: guix-git/doc/guix.texi:34429
  50537. 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})."
  50538. msgstr ""
  50539. #. type: Plain text
  50540. #: guix-git/doc/guix.texi:34436
  50541. 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})."
  50542. msgstr ""
  50543. #. type: Plain text
  50544. #: guix-git/doc/guix.texi:34444
  50545. 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:"
  50546. msgstr ""
  50547. #. type: example
  50548. #: guix-git/doc/guix.texi:34447
  50549. #, no-wrap
  50550. msgid "guix install glibc:debug guile:debug\n"
  50551. msgstr ""
  50552. #. type: Plain text
  50553. #: guix-git/doc/guix.texi:34453
  50554. 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}):"
  50555. msgstr ""
  50556. #. type: example
  50557. #: guix-git/doc/guix.texi:34456
  50558. #, no-wrap
  50559. msgid "(gdb) set debug-file-directory ~/.guix-profile/lib/debug\n"
  50560. msgstr ""
  50561. #. type: Plain text
  50562. #: guix-git/doc/guix.texi:34460
  50563. msgid "From there on, GDB will pick up debugging information from the @file{.debug} files under @file{~/.guix-profile/lib/debug}."
  50564. msgstr ""
  50565. #. type: Plain text
  50566. #: guix-git/doc/guix.texi:34467
  50567. 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})."
  50568. msgstr ""
  50569. #. type: Plain text
  50570. #: guix-git/doc/guix.texi:34475
  50571. 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})."
  50572. msgstr ""
  50573. #. type: Plain text
  50574. #: guix-git/doc/guix.texi:34477
  50575. msgid "Read on for how to deal with packages lacking a @code{debug} output."
  50576. msgstr ""
  50577. #. type: Plain text
  50578. #: guix-git/doc/guix.texi:34489
  50579. 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."
  50580. msgstr ""
  50581. #. type: Plain text
  50582. #: guix-git/doc/guix.texi:34494
  50583. 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:"
  50584. msgstr ""
  50585. #. type: example
  50586. #: guix-git/doc/guix.texi:34505
  50587. #, no-wrap
  50588. msgid ""
  50589. "(gdb) bt\n"
  50590. "#0 0x00007ffff5f92190 in g_getenv ()\n"
  50591. " from /gnu/store/@dots{}-glib-2.62.6/lib/libglib-2.0.so.0\n"
  50592. "#1 0x00007ffff608a7d6 in gobject_init_ctor ()\n"
  50593. " from /gnu/store/@dots{}-glib-2.62.6/lib/libgobject-2.0.so.0\n"
  50594. "#2 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=1, argv=argv@@entry=0x7fffffffcfd8, \n"
  50595. " env=env@@entry=0x7fffffffcfe8) at dl-init.c:72\n"
  50596. "#3 0x00007ffff7fe2866 in call_init (env=0x7fffffffcfe8, argv=0x7fffffffcfd8, argc=1, l=<optimized out>)\n"
  50597. " at dl-init.c:118\n"
  50598. msgstr ""
  50599. #. type: Plain text
  50600. #: guix-git/doc/guix.texi:34509
  50601. msgid "To address that, you install Inkscape linked against a variant GLib that contains debug info:"
  50602. msgstr ""
  50603. #. type: Plain text
  50604. #: guix-git/doc/guix.texi:34515
  50605. msgid "This time, debugging will be a whole lot nicer:"
  50606. msgstr ""
  50607. #. type: example
  50608. #: guix-git/doc/guix.texi:34533
  50609. #, no-wrap
  50610. msgid ""
  50611. "$ gdb --args sh -c 'exec inkscape'\n"
  50612. "@dots{}\n"
  50613. "(gdb) b g_getenv\n"
  50614. "Function \"g_getenv\" not defined.\n"
  50615. "Make breakpoint pending on future shared library load? (y or [n]) y\n"
  50616. "Breakpoint 1 (g_getenv) pending.\n"
  50617. "(gdb) r\n"
  50618. "Starting program: /gnu/store/@dots{}-profile/bin/sh -c exec\\ inkscape\n"
  50619. "@dots{}\n"
  50620. "(gdb) bt\n"
  50621. "#0 g_getenv (variable=variable@@entry=0x7ffff60c7a2e \"GOBJECT_DEBUG\") at ../glib-2.62.6/glib/genviron.c:252\n"
  50622. "#1 0x00007ffff608a7d6 in gobject_init () at ../glib-2.62.6/gobject/gtype.c:4380\n"
  50623. "#2 gobject_init_ctor () at ../glib-2.62.6/gobject/gtype.c:4493\n"
  50624. "#3 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=3, argv=argv@@entry=0x7fffffffd088, \n"
  50625. " env=env@@entry=0x7fffffffd0a8) at dl-init.c:72\n"
  50626. "@dots{}\n"
  50627. msgstr ""
  50628. #. type: Plain text
  50629. #: guix-git/doc/guix.texi:34536
  50630. msgid "Much better!"
  50631. msgstr ""
  50632. #. type: Plain text
  50633. #: guix-git/doc/guix.texi:34540
  50634. 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."
  50635. msgstr ""
  50636. #. type: cindex
  50637. #: guix-git/doc/guix.texi:34544
  50638. #, no-wrap
  50639. msgid "security updates"
  50640. msgstr ""
  50641. #. type: Plain text
  50642. #: guix-git/doc/guix.texi:34553
  50643. 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:"
  50644. msgstr ""
  50645. #. type: smallexample
  50646. #: guix-git/doc/guix.texi:34560
  50647. #, no-wrap
  50648. msgid ""
  50649. "$ guix lint -c cve\n"
  50650. "gnu/packages/base.scm:652:2: glibc@@2.21: probably vulnerable to CVE-2015-1781, CVE-2015-7547\n"
  50651. "gnu/packages/gcc.scm:334:2: gcc@@4.9.3: probably vulnerable to CVE-2015-5276\n"
  50652. "gnu/packages/image.scm:312:2: openjpeg@@2.1.0: probably vulnerable to CVE-2016-1923, CVE-2016-1924\n"
  50653. "@dots{}\n"
  50654. msgstr ""
  50655. #. type: Plain text
  50656. #: guix-git/doc/guix.texi:34563
  50657. msgid "@xref{Invoking guix lint}, for more information."
  50658. msgstr ""
  50659. #. type: Plain text
  50660. #: guix-git/doc/guix.texi:34572
  50661. 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."
  50662. msgstr ""
  50663. #. type: cindex
  50664. #: guix-git/doc/guix.texi:34573
  50665. #, no-wrap
  50666. msgid "grafts"
  50667. msgstr ""
  50668. #. type: Plain text
  50669. #: guix-git/doc/guix.texi:34581
  50670. 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."
  50671. msgstr ""
  50672. #. type: cindex
  50673. #: guix-git/doc/guix.texi:34582
  50674. #, no-wrap
  50675. msgid "replacements of packages, for grafts"
  50676. msgstr ""
  50677. #. type: Plain text
  50678. #: guix-git/doc/guix.texi:34588
  50679. 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:"
  50680. msgstr ""
  50681. #. type: lisp
  50682. #: guix-git/doc/guix.texi:34595
  50683. #, no-wrap
  50684. msgid ""
  50685. "(define bash\n"
  50686. " (package\n"
  50687. " (name \"bash\")\n"
  50688. " ;; @dots{}\n"
  50689. " (replacement bash-fixed)))\n"
  50690. msgstr ""
  50691. #. type: Plain text
  50692. #: guix-git/doc/guix.texi:34605
  50693. 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."
  50694. msgstr ""
  50695. #. type: Plain text
  50696. #: guix-git/doc/guix.texi:34613
  50697. 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."
  50698. msgstr ""
  50699. #. type: Plain text
  50700. #: guix-git/doc/guix.texi:34617
  50701. msgid "The @option{--no-grafts} command-line option allows you to forcefully avoid grafting (@pxref{Common Build Options, @option{--no-grafts}}). Thus, the command:"
  50702. msgstr ""
  50703. #. type: example
  50704. #: guix-git/doc/guix.texi:34620
  50705. #, no-wrap
  50706. msgid "guix build bash --no-grafts\n"
  50707. msgstr ""
  50708. #. type: Plain text
  50709. #: guix-git/doc/guix.texi:34624
  50710. msgid "returns the store file name of the original Bash, whereas:"
  50711. msgstr ""
  50712. #. type: example
  50713. #: guix-git/doc/guix.texi:34627
  50714. #, no-wrap
  50715. msgid "guix build bash\n"
  50716. msgstr ""
  50717. #. type: Plain text
  50718. #: guix-git/doc/guix.texi:34632
  50719. msgid "returns the store file name of the ``fixed'', replacement Bash. This allows you to distinguish between the two variants of Bash."
  50720. msgstr ""
  50721. #. type: Plain text
  50722. #: guix-git/doc/guix.texi:34635
  50723. msgid "To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}):"
  50724. msgstr ""
  50725. #. type: example
  50726. #: guix-git/doc/guix.texi:34638
  50727. #, no-wrap
  50728. msgid "guix gc -R $(readlink -f ~/.guix-profile) | grep bash\n"
  50729. msgstr ""
  50730. #. type: Plain text
  50731. #: guix-git/doc/guix.texi:34643
  50732. msgid "@dots{} and compare the store file names that you get with those above. Likewise for a complete Guix system generation:"
  50733. msgstr ""
  50734. #. type: example
  50735. #: guix-git/doc/guix.texi:34646
  50736. #, no-wrap
  50737. msgid "guix gc -R $(guix system build my-config.scm) | grep bash\n"
  50738. msgstr ""
  50739. #. type: Plain text
  50740. #: guix-git/doc/guix.texi:34650
  50741. msgid "Lastly, to check which Bash running processes are using, you can use the @command{lsof} command:"
  50742. msgstr ""
  50743. #. type: example
  50744. #: guix-git/doc/guix.texi:34653
  50745. #, no-wrap
  50746. msgid "lsof | grep /gnu/store/.*bash\n"
  50747. msgstr ""
  50748. #. type: cindex
  50749. #: guix-git/doc/guix.texi:34661
  50750. #, no-wrap
  50751. msgid "bootstrapping"
  50752. msgstr ""
  50753. #. type: Plain text
  50754. #: guix-git/doc/guix.texi:34668
  50755. 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?"
  50756. msgstr ""
  50757. #. type: Plain text
  50758. #: guix-git/doc/guix.texi:34676
  50759. 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."
  50760. msgstr ""
  50761. #. type: cindex
  50762. #: guix-git/doc/guix.texi:34677 guix-git/doc/guix.texi:34889
  50763. #, no-wrap
  50764. msgid "bootstrap binaries"
  50765. msgstr ""
  50766. #. type: Plain text
  50767. #: guix-git/doc/guix.texi:34687
  50768. 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}."
  50769. msgstr ""
  50770. #. type: Plain text
  50771. #: guix-git/doc/guix.texi:34691
  50772. msgid "These bootstrap binaries are ``taken for granted'', though we can also re-create them if needed (@pxref{Preparing to Use the Bootstrap Binaries})."
  50773. msgstr ""
  50774. #. type: section
  50775. #: guix-git/doc/guix.texi:34698
  50776. #, no-wrap
  50777. msgid "The Reduced Binary Seed Bootstrap"
  50778. msgstr ""
  50779. #. type: Plain text
  50780. #: guix-git/doc/guix.texi:34705
  50781. 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.''"
  50782. msgstr ""
  50783. #. type: Plain text
  50784. #: guix-git/doc/guix.texi:34711
  50785. 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."
  50786. msgstr ""
  50787. #. type: Plain text
  50788. #: guix-git/doc/guix.texi:34716
  50789. 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.}."
  50790. msgstr ""
  50791. #. type: Plain text
  50792. #: guix-git/doc/guix.texi:34722
  50793. 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)."
  50794. msgstr ""
  50795. #. type: Plain text
  50796. #: guix-git/doc/guix.texi:34727
  50797. 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."
  50798. msgstr ""
  50799. #. type: Plain text
  50800. #: guix-git/doc/guix.texi:34735
  50801. 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."
  50802. msgstr ""
  50803. #. type: Plain text
  50804. #: guix-git/doc/guix.texi:34745
  50805. 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."
  50806. msgstr ""
  50807. #. type: Plain text
  50808. #: guix-git/doc/guix.texi:34749
  50809. 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."
  50810. msgstr ""
  50811. #. type: Plain text
  50812. #: guix-git/doc/guix.texi:34752
  50813. msgid "@image{images/gcc-core-mesboot0-graph,6in,,Dependency graph of gcc-core-mesboot0}"
  50814. msgstr ""
  50815. #. type: Plain text
  50816. #: guix-git/doc/guix.texi:34759
  50817. 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.}."
  50818. msgstr ""
  50819. #. type: Plain text
  50820. #: guix-git/doc/guix.texi:34762
  50821. 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}."
  50822. msgstr ""
  50823. #. type: Plain text
  50824. #: guix-git/doc/guix.texi:34767
  50825. 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."
  50826. msgstr ""
  50827. #. type: Plain text
  50828. #: guix-git/doc/guix.texi:34771
  50829. 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}."
  50830. msgstr ""
  50831. #. type: Plain text
  50832. #: guix-git/doc/guix.texi:34778
  50833. msgid "@image{images/bootstrap-graph,6in,,Dependency graph of the early bootstrap derivations}"
  50834. msgstr ""
  50835. #. type: Plain text
  50836. #: guix-git/doc/guix.texi:34783
  50837. 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:"
  50838. msgstr ""
  50839. #. type: example
  50840. #: guix-git/doc/guix.texi:34788
  50841. #, no-wrap
  50842. msgid ""
  50843. "guix graph -t derivation \\\n"
  50844. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-gcc)' \\\n"
  50845. " | dot -Tps > gcc.ps\n"
  50846. msgstr ""
  50847. #. type: Plain text
  50848. #: guix-git/doc/guix.texi:34791
  50849. msgid "or, for the further Reduced Binary Seed bootstrap"
  50850. msgstr ""
  50851. #. type: example
  50852. #: guix-git/doc/guix.texi:34796
  50853. #, no-wrap
  50854. msgid ""
  50855. "guix graph -t derivation \\\n"
  50856. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-mes)' \\\n"
  50857. " | dot -Tps > mes.ps\n"
  50858. msgstr ""
  50859. #. type: Plain text
  50860. #: guix-git/doc/guix.texi:34805
  50861. 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})."
  50862. msgstr ""
  50863. #. type: Plain text
  50864. #: guix-git/doc/guix.texi:34814
  50865. 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."
  50866. msgstr ""
  50867. #. type: Plain text
  50868. #: guix-git/doc/guix.texi:34826
  50869. 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})."
  50870. msgstr ""
  50871. #. type: Plain text
  50872. #: guix-git/doc/guix.texi:34831
  50873. 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."
  50874. msgstr ""
  50875. #. type: unnumberedsec
  50876. #: guix-git/doc/guix.texi:34832
  50877. #, no-wrap
  50878. msgid "Building the Build Tools"
  50879. msgstr ""
  50880. #. type: Plain text
  50881. #: guix-git/doc/guix.texi:34841
  50882. 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."
  50883. msgstr ""
  50884. #. type: Plain text
  50885. #: guix-git/doc/guix.texi:34848
  50886. 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:"
  50887. msgstr ""
  50888. #. type: example
  50889. #: guix-git/doc/guix.texi:34853
  50890. #, no-wrap
  50891. msgid ""
  50892. "guix graph -t bag \\\n"
  50893. " -e '(@@@@ (gnu packages commencement)\n"
  50894. " glibc-final-with-bootstrap-bash)' | xdot -\n"
  50895. msgstr ""
  50896. #. type: Plain text
  50897. #: guix-git/doc/guix.texi:34860
  50898. 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."
  50899. msgstr ""
  50900. #. type: Plain text
  50901. #: guix-git/doc/guix.texi:34862
  50902. msgid "@image{images/bootstrap-packages,6in,,Dependency graph of the early packages}"
  50903. msgstr ""
  50904. #. type: Plain text
  50905. #: guix-git/doc/guix.texi:34868
  50906. 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."
  50907. msgstr ""
  50908. #. type: Plain text
  50909. #: guix-git/doc/guix.texi:34873
  50910. 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."
  50911. msgstr ""
  50912. #. type: Plain text
  50913. #: guix-git/doc/guix.texi:34879
  50914. 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."
  50915. msgstr ""
  50916. #. type: Plain text
  50917. #: guix-git/doc/guix.texi:34885
  50918. 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}})."
  50919. msgstr ""
  50920. #. type: unnumberedsec
  50921. #: guix-git/doc/guix.texi:34887
  50922. #, no-wrap
  50923. msgid "Building the Bootstrap Binaries"
  50924. msgstr ""
  50925. #. type: Plain text
  50926. #: guix-git/doc/guix.texi:34894
  50927. 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."
  50928. msgstr ""
  50929. #. type: Plain text
  50930. #: guix-git/doc/guix.texi:34900
  50931. 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):"
  50932. msgstr ""
  50933. #. type: example
  50934. #: guix-git/doc/guix.texi:34903
  50935. #, no-wrap
  50936. msgid "guix build bootstrap-tarballs\n"
  50937. msgstr ""
  50938. #. type: Plain text
  50939. #: guix-git/doc/guix.texi:34908
  50940. 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."
  50941. msgstr ""
  50942. #. type: Plain text
  50943. #: guix-git/doc/guix.texi:34914
  50944. 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."
  50945. msgstr ""
  50946. #. type: unnumberedsec
  50947. #: guix-git/doc/guix.texi:34915
  50948. #, no-wrap
  50949. msgid "Reducing the Set of Bootstrap Binaries"
  50950. msgstr ""
  50951. #. type: Plain text
  50952. #: guix-git/doc/guix.texi:34923
  50953. 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}."
  50954. msgstr ""
  50955. #. type: Plain text
  50956. #: guix-git/doc/guix.texi:34929
  50957. 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."
  50958. msgstr ""
  50959. #. type: Plain text
  50960. #: guix-git/doc/guix.texi:34935
  50961. 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."
  50962. msgstr ""
  50963. #. type: Plain text
  50964. #: guix-git/doc/guix.texi:34944
  50965. 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."
  50966. msgstr ""
  50967. #. type: Plain text
  50968. #: guix-git/doc/guix.texi:34947
  50969. 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!"
  50970. msgstr ""
  50971. #. type: chapter
  50972. #: guix-git/doc/guix.texi:34949
  50973. #, no-wrap
  50974. msgid "Porting to a New Platform"
  50975. msgstr ""
  50976. #. type: Plain text
  50977. #: guix-git/doc/guix.texi:34958
  50978. 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."
  50979. msgstr ""
  50980. #. type: Plain text
  50981. #: guix-git/doc/guix.texi:34963
  50982. 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:"
  50983. msgstr ""
  50984. #. type: example
  50985. #: guix-git/doc/guix.texi:34966
  50986. #, no-wrap
  50987. msgid "guix build --target=armv5tel-linux-gnueabi bootstrap-tarballs\n"
  50988. msgstr ""
  50989. #. type: Plain text
  50990. #: guix-git/doc/guix.texi:34973
  50991. 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."
  50992. msgstr ""
  50993. #. type: Plain text
  50994. #: guix-git/doc/guix.texi:34982
  50995. 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."
  50996. msgstr ""
  50997. #. type: Plain text
  50998. #: guix-git/doc/guix.texi:34991
  50999. 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."
  51000. msgstr ""
  51001. #. type: include
  51002. #: guix-git/doc/guix.texi:34993
  51003. #, no-wrap
  51004. msgid "contributing.texi"
  51005. msgstr "contributing.zh_CN.texi"
  51006. #. type: Plain text
  51007. #: guix-git/doc/guix.texi:35006
  51008. 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."
  51009. msgstr ""
  51010. #. type: Plain text
  51011. #: guix-git/doc/guix.texi:35009
  51012. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  51013. msgstr "基于 Nix 的软件发行版 Nixpkgs 和 NixOS 也给 Guix 带来了灵感。"
  51014. #. type: Plain text
  51015. #: guix-git/doc/guix.texi:35015
  51016. 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!"
  51017. msgstr ""
  51018. #. type: cindex
  51019. #: guix-git/doc/guix.texi:35020
  51020. #, no-wrap
  51021. msgid "license, GNU Free Documentation License"
  51022. msgstr ""
  51023. #. type: include
  51024. #: guix-git/doc/guix.texi:35021
  51025. #, no-wrap
  51026. msgid "fdl-1.3.texi"
  51027. msgstr ""
  51028. #, fuzzy
  51029. #~| msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  51030. #~ msgid "@xref{Build Phases}, for more info on build phases and ways to customize them."
  51031. #~ msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  51032. #~ msgid ""
  51033. #~ "(service qemu-binfmt-service-type\n"
  51034. #~ " (qemu-binfmt-configuration\n"
  51035. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  51036. #~ " (guix-support? #t)))\n"
  51037. #~ msgstr ""
  51038. #~ "(service qemu-binfmt-service-type\n"
  51039. #~ " (qemu-binfmt-configuration\n"
  51040. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  51041. #~ " (guix-support? #t)))\n"
  51042. #, fuzzy
  51043. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  51044. #~ msgid "@code{queries-log-file} (default: @code{#f})"
  51045. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  51046. #, fuzzy
  51047. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  51048. #~ msgid "@code{web-queries-log-file} (default: @code{#f})"
  51049. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  51050. #, fuzzy
  51051. #~| msgid "@code{max-zone-size} (default: @code{#f})"
  51052. #~ msgid "@code{queue-size} (default: @code{1})"
  51053. #~ msgstr "@code{max-zone-size}(默认值:@code{#f})"
  51054. #, fuzzy
  51055. #~| msgid "The host name of the remote machine."
  51056. #~ msgid "Size of the database writer queue."
  51057. #~ msgstr "远程机器的主机名。"
  51058. #, fuzzy
  51059. #~| msgid "Manage the operating system configuration."
  51060. #~ msgid "Data type representing the configuration of a simple Cuirass instance."
  51061. #~ msgstr "管理操作系统配置。"
  51062. #, fuzzy
  51063. #~| msgid "@code{port} (default: @code{22})"
  51064. #~ msgid "@code{build} (default: @code{all})"
  51065. #~ msgstr "@code{port}(默认值:@code{22})"
  51066. #, fuzzy
  51067. #~| msgid "{Data Type} build-machine"
  51068. #~ msgid "{Data Type} build-manifest"
  51069. #~ msgstr "{数据类型} build-machine"
  51070. #, fuzzy
  51071. #~| msgid "Channels"
  51072. #~ msgid "channel-name"
  51073. #~ msgstr "通道"
  51074. #, fuzzy
  51075. #~| msgid "-c @var{n}"
  51076. #~ msgid "manifest"
  51077. #~ msgstr "-c @var{n}"
  51078. #, fuzzy
  51079. #~| msgid "@code{includes} (default: @code{'()})"
  51080. #~ msgid "@code{non-package-channels} (default: @code{'()})"
  51081. #~ msgstr "@code{includes}(默认值:@code{'()})"
  51082. #, fuzzy
  51083. #~| msgid "@code{port} (default: @code{22})"
  51084. #~ msgid "@code{guix-support?} (default: @code{#t})"
  51085. #~ msgstr "@code{port}(默认值:@code{22})"
  51086. #, fuzzy
  51087. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  51088. #~ msgid "@code{password-file} (default: @code{#f})"
  51089. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  51090. #~ 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."
  51091. #~ msgstr "通常,@code{master}之外的其它分支如果最近被评审过,或有一个对应的@code{-next}分支,则被视为@emph{冻结}状态。如果不清楚该把补丁放到哪里,请在邮件列表或IRC上提问。"
  51092. #~ msgid "@xref{Invoking guix environment}, for more information on that command. Extra dependencies can be added with @option{--ad-hoc}:"
  51093. #~ msgstr "这个命令更多的信息请参考@xref{Invoking guix environment}。额外的依赖可以通过@option{--ad-hoc}选项添加:"
  51094. #~ msgid "Fiddling with Guix interactively."
  51095. #~ msgstr "交互式地操作Guix。"
  51096. #~ 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!"
  51097. #~ msgstr "小端序64位ARMv8-A处理器,Linux-Libre内核。目前处于实验阶段,支持有限。@xref{Contributing},提供帮助!"
  51098. #~ msgid "@url{https://zlib.net, zlib};"
  51099. #~ msgstr "@url{https://zlib.net, zlib};"
  51100. #~ msgid "Nix, compatibility"
  51101. #~ msgstr "Nix,兼容性"
  51102. #~ 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."
  51103. #~ msgstr "当一个已经安装的且可用的@url{https://nixos.org/nix/, Nix包管理器}存在时,你可以为Guix配置@code{--disable-daemon}参数。那样Nix可以替换上面的三个依赖。"
  51104. #~ 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."
  51105. #~ 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}参数不是必须的。"
  51106. #~ msgid "--no-build-hook"
  51107. #~ msgstr "--no-build-hook"
  51108. #~ msgid "Do not use the @dfn{build hook}."
  51109. #~ msgstr "不要使用@dfn{构建钩子}。"
  51110. #~ 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})."
  51111. #~ msgstr "构建钩子是一个可以被后台进程启动并且提交构建请求的辅助程序。这个机制被用来向其它机器下发构建。(@pxref{Daemon Offload Setup})。"
  51112. #~ 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}."
  51113. #~ msgstr "@code{guix}软件包必须保留在@code{root}的profile里,否则它会被垃圾回收清理掉--那时你会发现缺少@command{guix}命令。换句话说,不要用@code{guix package -r guix}命令删除@code{guix}。"