guix-manual.zh_CN.po 2.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888
  1. # Chinese (simplified) translation of the Guix manual.
  2. # Copyright (C) 2013-2019 the authors of Guix (msgids) and the following authors (msgstr)
  3. # This file is distributed under the same license as the guix manual package.
  4. # Meiyo Peng <meiyo@riseup.net>, 2019.
  5. # 郑俊杰 <873216071@qq.com>, 2021.
  6. # Liu Tao <lyuutau@outlook.com>, 2021.
  7. # Xinglu Chen <public@yoctocell.xyz>, 2021.
  8. # Charles Lee <lchopn@gmail.com>, 2021.
  9. # Went He <1437061699@qq.com>, 2021.
  10. # Whired Planck <fungdaat31@outlook.com>, 2022.
  11. msgid ""
  12. msgstr ""
  13. "Project-Id-Version: guix-manual 1.0.1-pre1\n"
  14. "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
  15. "POT-Creation-Date: 2022-02-15 15:18+0000\n"
  16. "PO-Revision-Date: 2022-01-27 19:16+0000\n"
  17. "Last-Translator: Whired Planck <fungdaat31@outlook.com>\n"
  18. "Language-Team: Chinese (Simplified) <https://translate.fedoraproject.org/projects/guix/documentation-manual/zh_CN/>\n"
  19. "Language: zh_CN\n"
  20. "MIME-Version: 1.0\n"
  21. "Content-Type: text/plain; charset=UTF-8\n"
  22. "Content-Transfer-Encoding: 8bit\n"
  23. "Plural-Forms: nplurals=1; plural=0;\n"
  24. "X-Generator: Weblate 4.10.1\n"
  25. "X-Bugs: Report translation errors to the Language-Team address.\n"
  26. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  27. #. type: chapter
  28. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  29. #. type: menuentry
  30. #: guix-git/doc/contributing.texi:1 guix-git/doc/contributing.texi:2
  31. #: guix-git/doc/guix.texi:182
  32. #, no-wrap
  33. msgid "Contributing"
  34. msgstr "贡献"
  35. #. type: Plain text
  36. #: guix-git/doc/contributing.texi:9
  37. msgid "This project is a cooperative effort, and we need your help to make it grow! Please get in touch with us on @email{guix-devel@@gnu.org} and @code{#guix} on the Libera Chat IRC network. We welcome ideas, bug reports, patches, and anything that may be helpful to the project. We particularly welcome help on packaging (@pxref{Packaging Guidelines})."
  38. msgstr "本项目是团体合作成果,我们需要您的帮助以更好地发展。请通过 @email{guix-devel@@gnu.org} 邮箱和 Libera Chat IRC 网络上的 @code{#guix} 频道联系我们。我们欢迎您的想法、Bug 反馈、补丁和任何可能对项目有帮助的贡献。我们特别欢迎帮助我们打包(@pxref{Packaging Guidelines})。"
  39. #. type: cindex
  40. #: guix-git/doc/contributing.texi:10
  41. #, no-wrap
  42. msgid "code of conduct, of contributors"
  43. msgstr "行为准则和贡献者"
  44. #. type: cindex
  45. #: guix-git/doc/contributing.texi:11
  46. #, no-wrap
  47. msgid "contributor covenant"
  48. msgstr "贡献者契约"
  49. #. type: Plain text
  50. #: guix-git/doc/contributing.texi:17
  51. 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."
  52. msgstr "我们希望提供一个温暖、友好,并且没有骚扰的的环境,这样每个人都能尽最大努力贡献。为了这个目的,我们的项目遵循“贡献者契约”,这个契约是根据 @url{https://contributor-covenant.org/} 制定的。你可以在源代码目录里的 @file{CODE-OF-CONDUCT} 文件里找到一份本地版。"
  53. #. type: Plain text
  54. #: guix-git/doc/contributing.texi:21
  55. 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."
  56. msgstr "贡献者在提交补丁和网上交流时不需要使用法律认可的名字。他们可以使用任何名字或者假名。"
  57. #. type: section
  58. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:35
  59. #: guix-git/doc/contributing.texi:36
  60. #, no-wrap
  61. msgid "Building from Git"
  62. msgstr "从Git构建"
  63. #. type: menuentry
  64. #: guix-git/doc/contributing.texi:33
  65. msgid "The latest and greatest."
  66. msgstr "最新的并且最好的。"
  67. #. type: section
  68. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:192
  69. #: guix-git/doc/contributing.texi:193
  70. #, no-wrap
  71. msgid "Running Guix Before It Is Installed"
  72. msgstr "在安装之前运行Guix"
  73. #. type: menuentry
  74. #: guix-git/doc/contributing.texi:33
  75. msgid "Hacker tricks."
  76. msgstr "黑客技巧。"
  77. #. type: section
  78. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:284
  79. #: guix-git/doc/contributing.texi:285
  80. #, no-wrap
  81. msgid "The Perfect Setup"
  82. msgstr "完美的配置"
  83. #. type: menuentry
  84. #: guix-git/doc/contributing.texi:33
  85. msgid "The right tools."
  86. msgstr "正确的工具。"
  87. #. type: section
  88. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:375
  89. #: guix-git/doc/contributing.texi:376
  90. #, no-wrap
  91. msgid "Packaging Guidelines"
  92. msgstr "打包指导"
  93. #. type: menuentry
  94. #: guix-git/doc/contributing.texi:33
  95. msgid "Growing the distribution."
  96. msgstr "帮助发行版成长。"
  97. #. type: section
  98. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:939
  99. #: guix-git/doc/contributing.texi:940
  100. #, no-wrap
  101. msgid "Coding Style"
  102. msgstr "代码风格"
  103. #. type: menuentry
  104. #: guix-git/doc/contributing.texi:33
  105. msgid "Hygiene of the contributor."
  106. msgstr "出资者的卫生状况。"
  107. #. type: section
  108. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1032
  109. #: guix-git/doc/contributing.texi:1033
  110. #, no-wrap
  111. msgid "Submitting Patches"
  112. msgstr "提交补丁"
  113. #. type: menuentry
  114. #: guix-git/doc/contributing.texi:33
  115. msgid "Share your work."
  116. msgstr "分享你的工作。"
  117. #. type: section
  118. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1317
  119. #: guix-git/doc/contributing.texi:1318
  120. #, no-wrap
  121. msgid "Tracking Bugs and Patches"
  122. msgstr "跟踪 Bug 和补丁"
  123. #. type: menuentry
  124. #: guix-git/doc/contributing.texi:33
  125. msgid "Keeping it all organized."
  126. msgstr "保持井井有条。"
  127. #. type: section
  128. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1432
  129. #: guix-git/doc/contributing.texi:1433
  130. #, no-wrap
  131. msgid "Commit Access"
  132. msgstr "提交权利"
  133. #. type: menuentry
  134. #: guix-git/doc/contributing.texi:33
  135. msgid "Pushing to the official repository."
  136. msgstr "推送到管方的仓库。"
  137. #. type: section
  138. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1663
  139. #: guix-git/doc/contributing.texi:1664
  140. #, no-wrap
  141. msgid "Updating the Guix Package"
  142. msgstr "更新Guix软件包"
  143. #. type: menuentry
  144. #: guix-git/doc/contributing.texi:33
  145. msgid "Updating the Guix package definition."
  146. msgstr "更新Guix的软件包定义。"
  147. #. type: section
  148. #: guix-git/doc/contributing.texi:33 guix-git/doc/contributing.texi:1704
  149. #: guix-git/doc/contributing.texi:1705
  150. #, no-wrap
  151. msgid "Translating Guix"
  152. msgstr "翻译 Guix"
  153. #. type: menuentry
  154. #: guix-git/doc/contributing.texi:33
  155. msgid "Make Guix speak your native language."
  156. msgstr "用您的母语翻译 Guix。"
  157. #. type: Plain text
  158. #: guix-git/doc/contributing.texi:40
  159. msgid "If you want to hack Guix itself, it is recommended to use the latest version from the Git repository:"
  160. msgstr "如果你想折腾Guix本身,建议使用Git仓库里最新的版本:"
  161. #. type: example
  162. #: guix-git/doc/contributing.texi:43
  163. #, no-wrap
  164. msgid "git clone https://git.savannah.gnu.org/git/guix.git\n"
  165. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  166. #. type: cindex
  167. #: guix-git/doc/contributing.texi:45
  168. #, no-wrap
  169. msgid "authentication, of a Guix checkout"
  170. msgstr ""
  171. #. type: Plain text
  172. #: guix-git/doc/contributing.texi:50
  173. 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}):"
  174. msgstr ""
  175. #. type: example
  176. #: guix-git/doc/contributing.texi:57
  177. #, no-wrap
  178. msgid ""
  179. "git fetch origin keyring:keyring\n"
  180. "guix git authenticate 9edb3f66fd807b096b48283debdcddccfea34bad \\\n"
  181. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\"\n"
  182. msgstr ""
  183. #. type: Plain text
  184. #: guix-git/doc/contributing.texi:62
  185. msgid "This command completes with exit code zero on success; it prints an error message and exits with a non-zero code otherwise."
  186. msgstr ""
  187. #. type: Plain text
  188. #: guix-git/doc/contributing.texi:69
  189. 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."
  190. msgstr ""
  191. #. type: Plain text
  192. #: guix-git/doc/contributing.texi:74
  193. 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:"
  194. msgstr "设置Guix开发环境的最简单的方式当然是使用Guix!下面这些命令启动一个shell,所有的依赖和环境变量都为折腾Guix设置好了:"
  195. #. type: example
  196. #: guix-git/doc/contributing.texi:77
  197. #, fuzzy, no-wrap
  198. #| msgid "guix environment guix --pure\n"
  199. msgid "guix shell -D guix --pure\n"
  200. msgstr "guix environment guix --pure\n"
  201. #. type: Plain text
  202. #: guix-git/doc/contributing.texi:80
  203. #, fuzzy
  204. msgid "@xref{Invoking guix shell}, for more information on that command."
  205. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  206. #. type: Plain text
  207. #: guix-git/doc/contributing.texi:84
  208. #, fuzzy
  209. 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})."
  210. msgstr "当从Git检出构建Guix时,除安装指导(@pxref{Requirements})里提及的软件包之外还需要这些包。"
  211. #. type: item
  212. #: guix-git/doc/contributing.texi:86
  213. #, no-wrap
  214. msgid "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  215. msgstr "@url{https://gnu.org/software/autoconf/, GNU Autoconf};"
  216. #. type: item
  217. #: guix-git/doc/contributing.texi:87
  218. #, no-wrap
  219. msgid "@url{https://gnu.org/software/automake/, GNU Automake};"
  220. msgstr "@url{https://gnu.org/software/automake/, GNU Automake};"
  221. #. type: item
  222. #: guix-git/doc/contributing.texi:88
  223. #, no-wrap
  224. msgid "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  225. msgstr "@url{https://gnu.org/software/gettext/, GNU Gettext};"
  226. #. type: item
  227. #: guix-git/doc/contributing.texi:89
  228. #, no-wrap
  229. msgid "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  230. msgstr "@url{https://gnu.org/software/texinfo/, GNU Texinfo};"
  231. #. type: item
  232. #: guix-git/doc/contributing.texi:90
  233. #, no-wrap
  234. msgid "@url{https://www.graphviz.org/, Graphviz};"
  235. msgstr "@url{https://www.graphviz.org/, Graphviz};"
  236. #. type: item
  237. #: guix-git/doc/contributing.texi:91
  238. #, no-wrap
  239. msgid "@url{https://www.gnu.org/software/help2man/, GNU Help2man (optional)}."
  240. msgstr "@url{https://www.gnu.org/software/help2man/, GNU Help2man(可选)}。"
  241. #. type: Plain text
  242. #: guix-git/doc/contributing.texi:96
  243. msgid "On Guix, extra dependencies can be added by instead running @command{guix shell}:"
  244. msgstr ""
  245. #. type: example
  246. #: guix-git/doc/contributing.texi:99
  247. #, fuzzy, no-wrap
  248. #| msgid "guix environment guix --pure --ad-hoc help2man git strace\n"
  249. msgid "guix shell -D guix help2man git strace --pure\n"
  250. msgstr "guix environment guix --pure --ad-hoc help2man git strace\n"
  251. #. type: Plain text
  252. #: guix-git/doc/contributing.texi:103
  253. #, fuzzy
  254. #| msgid "Run @command{./bootstrap} to generate the build system infrastructure using Autoconf and Automake. If you get an error like this one:"
  255. msgid "From there you can generate the build system infrastructure using Autoconf and Automake:"
  256. msgstr "运行 @command{./bootstrap} 以使用Autoconf和Automake生成构建系统的基础框架。如果你的得到这样的错误:"
  257. #. type: example
  258. #: guix-git/doc/contributing.texi:106
  259. #, fuzzy, no-wrap
  260. #| msgid "Bootstrapping"
  261. msgid "./bootstrap\n"
  262. msgstr "引导"
  263. #. type: Plain text
  264. #: guix-git/doc/contributing.texi:109
  265. msgid "If you get an error like this one:"
  266. msgstr ""
  267. #. type: example
  268. #: guix-git/doc/contributing.texi:112
  269. #, no-wrap
  270. msgid "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  271. msgstr "configure.ac:46: error: possibly undefined macro: PKG_CHECK_MODULES\n"
  272. #. type: Plain text
  273. #: guix-git/doc/contributing.texi:121
  274. 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:"
  275. msgstr "它可能意味着Autoconf无法找到由pkg-config提供的@file{pkg.m4}。请确保@file{pkg.m4}可用。由Guile提供的@file{guile.m4}宏也类似。假如你的Automake安装在@file{/usr/local},那么它不会从@file{/usr/share}里寻找@file{.m4}文件。这种情况下,你必须执行下面这个命令:"
  276. #. type: example
  277. #: guix-git/doc/contributing.texi:124
  278. #, no-wrap
  279. msgid "export ACLOCAL_PATH=/usr/share/aclocal\n"
  280. msgstr "export ACLOCAL_PATH=/usr/share/aclocal\n"
  281. #. type: Plain text
  282. #: guix-git/doc/contributing.texi:128
  283. msgid "@xref{Macro Search Path,,, automake, The GNU Automake Manual}, for more information."
  284. msgstr "参考@xref{Macro Search Path,,, automake, The GNU Automake Manual}."
  285. #. type: Plain text
  286. #: guix-git/doc/contributing.texi:130
  287. msgid "Then, run:"
  288. msgstr ""
  289. #. type: example
  290. #: guix-git/doc/contributing.texi:133
  291. #, no-wrap
  292. msgid "./configure --localstatedir=/var\n"
  293. msgstr ""
  294. #. type: Plain text
  295. #: guix-git/doc/contributing.texi:140
  296. msgid "... where @file{/var} is the normal @code{localstatedir} value (@pxref{The Store}, for information about this). 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}."
  297. msgstr ""
  298. #. type: Plain text
  299. #: guix-git/doc/contributing.texi:143
  300. msgid "Finally, you can build Guix and, if you feel so inclined, run the tests (@pxref{Running the Test Suite}):"
  301. msgstr ""
  302. #. type: example
  303. #: guix-git/doc/contributing.texi:147
  304. #, fuzzy, no-wrap
  305. #| msgid "make check\n"
  306. msgid ""
  307. "make\n"
  308. "make check\n"
  309. msgstr "make check\n"
  310. #. type: Plain text
  311. #: guix-git/doc/contributing.texi:153
  312. #, fuzzy
  313. msgid "If anything fails, take a look at installation instructions (@pxref{Installation}) or send a message to the @email{guix-devel@@gnu.org, mailing list}."
  314. msgstr "最后,用@code{make check}执行测试(@pxref{Running the Test Suite})。如果遇到任何错误,请参考“安装指导”(@pxref{Installation})或者给@email{guix-devel@@gnu.org, 邮件列表}发邮件。"
  315. #. type: Plain text
  316. #: guix-git/doc/contributing.texi:156
  317. msgid "From there on, you can authenticate all the commits included in your checkout by running:"
  318. msgstr ""
  319. #. type: example
  320. #: guix-git/doc/contributing.texi:159
  321. #, fuzzy, no-wrap
  322. msgid "make authenticate\n"
  323. msgstr "make check\n"
  324. #. type: Plain text
  325. #: guix-git/doc/contributing.texi:162
  326. msgid "The first run takes a couple of minutes, but subsequent runs are faster."
  327. msgstr ""
  328. #. type: Plain text
  329. #: guix-git/doc/contributing.texi:168
  330. 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:"
  331. msgstr ""
  332. #. type: example
  333. #: guix-git/doc/contributing.texi:171
  334. #, no-wrap
  335. msgid "make authenticate GUIX_GIT_KEYRING=myremote/keyring\n"
  336. msgstr ""
  337. #. type: quotation
  338. #: guix-git/doc/contributing.texi:173 guix-git/doc/contributing.texi:1515
  339. #: guix-git/doc/guix.texi:605 guix-git/doc/guix.texi:654
  340. #: guix-git/doc/guix.texi:844 guix-git/doc/guix.texi:1830
  341. #: guix-git/doc/guix.texi:2093 guix-git/doc/guix.texi:2277
  342. #: guix-git/doc/guix.texi:2498 guix-git/doc/guix.texi:2710
  343. #: guix-git/doc/guix.texi:3841 guix-git/doc/guix.texi:4586
  344. #: guix-git/doc/guix.texi:4600 guix-git/doc/guix.texi:4682
  345. #: guix-git/doc/guix.texi:4912 guix-git/doc/guix.texi:5655
  346. #: guix-git/doc/guix.texi:6141 guix-git/doc/guix.texi:6398
  347. #: guix-git/doc/guix.texi:6519 guix-git/doc/guix.texi:6547
  348. #: guix-git/doc/guix.texi:6600 guix-git/doc/guix.texi:9685
  349. #: guix-git/doc/guix.texi:9809 guix-git/doc/guix.texi:9879
  350. #: guix-git/doc/guix.texi:11616 guix-git/doc/guix.texi:11656
  351. #: guix-git/doc/guix.texi:11930 guix-git/doc/guix.texi:11942
  352. #: guix-git/doc/guix.texi:14461 guix-git/doc/guix.texi:15092
  353. #: guix-git/doc/guix.texi:15999 guix-git/doc/guix.texi:16989
  354. #: guix-git/doc/guix.texi:19627 guix-git/doc/guix.texi:19797
  355. #: guix-git/doc/guix.texi:27621 guix-git/doc/guix.texi:31379
  356. #: guix-git/doc/guix.texi:35222 guix-git/doc/guix.texi:35456
  357. #: guix-git/doc/guix.texi:35626 guix-git/doc/guix.texi:35790
  358. #: guix-git/doc/guix.texi:35892 guix-git/doc/guix.texi:35931
  359. #: guix-git/doc/guix.texi:36005 guix-git/doc/guix.texi:36342
  360. #: guix-git/doc/guix.texi:37500 guix-git/doc/guix.texi:37575
  361. #: guix-git/doc/guix.texi:37610 guix-git/doc/guix.texi:37660
  362. #: guix-git/doc/guix.texi:37748 guix-git/doc/guix.texi:38237
  363. #, no-wrap
  364. msgid "Note"
  365. msgstr "注"
  366. #. type: quotation
  367. #: guix-git/doc/contributing.texi:177
  368. 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."
  369. msgstr ""
  370. #. type: Plain text
  371. #: guix-git/doc/contributing.texi:181
  372. msgid "After updating the repository, @command{make} might fail with an error similar to the following example:"
  373. msgstr ""
  374. #. type: example
  375. #: guix-git/doc/contributing.texi:185
  376. #, no-wrap
  377. msgid ""
  378. "error: failed to load 'gnu/packages/dunst.scm':\n"
  379. "ice-9/eval.scm:293:34: In procedure abi-check: #<record-type <origin>>: record ABI mismatch; recompilation needed\n"
  380. msgstr ""
  381. #. type: Plain text
  382. #: guix-git/doc/contributing.texi:191
  383. msgid "This means that one of the record types that Guix defines (in this example, the @code{origin} record) has changed, and all of guix needs to be recompiled to take that change into account. To do so, run @command{make clean-go} followed by @command{make}."
  384. msgstr ""
  385. #. type: Plain text
  386. #: guix-git/doc/contributing.texi:199
  387. 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."
  388. msgstr "为了保持一个合适的工作环境,你会发现在你的本地代码树里测试修改而不用安装它们会很有用。TODO: So that you can distinguish between your ``end-user'' hat and your ``motley'' costume."
  389. #. type: Plain text
  390. #: guix-git/doc/contributing.texi:210
  391. #, fuzzy
  392. 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):"
  393. 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模块。}:"
  394. #. type: example
  395. #: guix-git/doc/contributing.texi:213
  396. #, fuzzy, no-wrap
  397. msgid "$ ./pre-inst-env guix build hello\n"
  398. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  399. #. type: Plain text
  400. #: guix-git/doc/contributing.texi:217
  401. msgid "Similarly, an example for a Guile session using the Guix modules:"
  402. msgstr "同样,一个使用 Guix 模块的 Guile 会话的例子:"
  403. #. type: example
  404. #: guix-git/doc/contributing.texi:220
  405. #, no-wrap
  406. msgid ""
  407. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  408. "\n"
  409. msgstr ""
  410. "$ ./pre-inst-env guile -c '(use-modules (guix utils)) (pk (%current-system))'\n"
  411. "\n"
  412. #. type: example
  413. #: guix-git/doc/contributing.texi:222
  414. #, no-wrap
  415. msgid ";;; (\"x86_64-linux\")\n"
  416. msgstr ";;; (\"x86_64-linux\")\n"
  417. #. type: cindex
  418. #: guix-git/doc/contributing.texi:225
  419. #, no-wrap
  420. msgid "REPL"
  421. msgstr "REPL"
  422. #. type: cindex
  423. #: guix-git/doc/contributing.texi:226
  424. #, no-wrap
  425. msgid "read-eval-print loop"
  426. msgstr "read-eval-print loop"
  427. #. type: Plain text
  428. #: guix-git/doc/contributing.texi:229
  429. msgid "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  430. msgstr "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Guile Reference Manual}):"
  431. #. type: example
  432. #: guix-git/doc/contributing.texi:244
  433. #, no-wrap
  434. msgid ""
  435. "$ ./pre-inst-env guile\n"
  436. "scheme@@(guile-user)> ,use(guix)\n"
  437. "scheme@@(guile-user)> ,use(gnu)\n"
  438. "scheme@@(guile-user)> (define snakes\n"
  439. " (fold-packages\n"
  440. " (lambda (package lst)\n"
  441. " (if (string-prefix? \"python\"\n"
  442. " (package-name package))\n"
  443. " (cons package lst)\n"
  444. " lst))\n"
  445. " '()))\n"
  446. "scheme@@(guile-user)> (length snakes)\n"
  447. "$1 = 361\n"
  448. msgstr ""
  449. "$ ./pre-inst-env guile\n"
  450. "scheme@@(guile-user)> ,use(guix)\n"
  451. "scheme@@(guile-user)> ,use(gnu)\n"
  452. "scheme@@(guile-user)> (define snakes\n"
  453. " (fold-packages\n"
  454. " (lambda (package lst)\n"
  455. " (if (string-prefix? \"python\"\n"
  456. " (package-name package))\n"
  457. " (cons package lst)\n"
  458. " lst))\n"
  459. " '()))\n"
  460. "scheme@@(guile-user)> (length snakes)\n"
  461. "$1 = 361\n"
  462. #. type: Plain text
  463. #: guix-git/doc/contributing.texi:252
  464. #, fuzzy
  465. 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.}:"
  466. 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模块。}:"
  467. #. type: example
  468. #: guix-git/doc/contributing.texi:255
  469. #, fuzzy, no-wrap
  470. msgid "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  471. msgstr ""
  472. "$ sudo -E ./pre-inst-env guix-daemon --build-users-group=guixbuild\n"
  473. "$ ./pre-inst-env guix build hello\n"
  474. #. type: Plain text
  475. #: guix-git/doc/contributing.texi:259
  476. 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}."
  477. msgstr "@command{pre-inst-env}脚本设置为此好了所有必要的的环境变量,包括@env{PATH}和@env{GUILE_LOAD_PATH}。"
  478. #. type: Plain text
  479. #: guix-git/doc/contributing.texi:264
  480. 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."
  481. msgstr "@command{./pre-inst-env guix pull} @emph{不} 会更新本地源代码树,它只更新符号链接@file{~/.config/guix/current} (@pxref{Invoking guix pull})。如果你想更新本地源代码树,请运行@command{git pull}。"
  482. #. type: Plain text
  483. #: guix-git/doc/contributing.texi:268
  484. msgid "Sometimes, especially if you have recently updated your repository, running @command{./pre-inst-env} will print a message similar to the following example:"
  485. msgstr ""
  486. #. type: example
  487. #: guix-git/doc/contributing.texi:272
  488. #, no-wrap
  489. msgid ""
  490. ";;; note: source file /home/user/projects/guix/guix/progress.scm\n"
  491. ";;; newer than compiled /home/user/projects/guix/guix/progress.go\n"
  492. msgstr ""
  493. #. type: Plain text
  494. #: guix-git/doc/contributing.texi:278
  495. msgid "This is only a note and you can safely ignore it. You can get rid of the message by running @command{make -j4}. Until you do, Guile will run slightly slower because it will interpret the code instead of using prepared Guile object (@file{.go}) files."
  496. msgstr ""
  497. #. type: Plain text
  498. #: guix-git/doc/contributing.texi:283
  499. msgid "You can run @command{make} automatically as you work using @command{watchexec} from the @code{watchexec} package. For example, to build again each time you update a package file, you can run @samp{watchexec -w gnu/packages make -j4}."
  500. msgstr ""
  501. #. type: Plain text
  502. #: guix-git/doc/contributing.texi:292
  503. 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:"
  504. 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}。为此,运行:"
  505. #. type: example
  506. #: guix-git/doc/contributing.texi:295
  507. #, fuzzy, no-wrap
  508. #| msgid "guix package -i emacs guile emacs-geiser\n"
  509. msgid "guix package -i emacs guile emacs-geiser emacs-geiser-guile\n"
  510. msgstr "guix package -i emacs guile emacs-geiser\n"
  511. #. type: Plain text
  512. #: guix-git/doc/contributing.texi:304
  513. 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:"
  514. msgstr "Geiser 允许在 Emacs 里进行交互式的、增长式的开发:buffer 里的代码补全和执行,获取一行的文档 (docstrings),上下文敏感的补全,@kbd{M-.} 跳转到对象定义,测试代码的 REPL,及更多(@pxref{Introduction,,, geiser, Geiser User Manual})。为了方便的 Guix 开发,请确保修改 Guile 的加载路径 (load path) 以使其能从你的项目里找到源代码文件:"
  515. #. type: lisp
  516. #: guix-git/doc/contributing.texi:309
  517. #, no-wrap
  518. msgid ""
  519. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  520. "(with-eval-after-load 'geiser-guile\n"
  521. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  522. msgstr ""
  523. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  524. "(with-eval-after-load 'geiser-guile\n"
  525. " (add-to-list 'geiser-guile-load-path \"~/src/guix\"))\n"
  526. #. type: Plain text
  527. #: guix-git/doc/contributing.texi:317
  528. 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."
  529. msgstr "真正编辑代码时别忘了 Emacs 自带了方便的 Scheme 模式。而且,一定不要错过 @url{https://www.emacswiki.org/emacs/ParEdit, Paredit}。它提供了直接操作语法树的的功能,例如,用 S- 表达式替换父节点,为 S- 表达式添加、删除前后的括号,删除后面的 S- 表达式,等等。"
  530. #. type: cindex
  531. #: guix-git/doc/contributing.texi:318
  532. #, no-wrap
  533. msgid "code snippets"
  534. msgstr "代码片段"
  535. #. type: cindex
  536. #: guix-git/doc/contributing.texi:319
  537. #, no-wrap
  538. msgid "templates"
  539. msgstr "模板"
  540. #. type: cindex
  541. #: guix-git/doc/contributing.texi:320
  542. #, no-wrap
  543. msgid "reducing boilerplate"
  544. msgstr "减少样板"
  545. #. type: Plain text
  546. #: guix-git/doc/contributing.texi:327
  547. #, fuzzy
  548. 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."
  549. msgstr "在@file{etc/snippets}文件夹里,我们还为普通的git commit信息和软件包定义提供模板。这些模板可以通过@url{http://joaotavora.github.io/yasnippet/, YASnippet}使用,它可以把短的触发字符串扩展成交互式的文字片段。你可能希望将这个文件夹添加到Emacs的@var{yas-snippet-dirs}变量里。"
  550. #. type: lisp
  551. #: guix-git/doc/contributing.texi:332
  552. #, no-wrap
  553. msgid ""
  554. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  555. "(with-eval-after-load 'yasnippet\n"
  556. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  557. msgstr ""
  558. ";; @r{假设Guix项目在 ~/src/guix.}\n"
  559. "(with-eval-after-load 'yasnippet\n"
  560. " (add-to-list 'yas-snippet-dirs \"~/src/guix/etc/snippets\"))\n"
  561. #. type: Plain text
  562. #: guix-git/doc/contributing.texi:340
  563. 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."
  564. msgstr "commit信息片段显示staged文件需要依赖@url{https://magit.vc/, Magit}。编辑commit信息时,输入@code{add},然后按@kbd{TAB}就可以插入一段用于新增软件包的模板;输入@code{update},然后按@kbd{TAB}可以插入一段更新软件包的模板;输入@code{https}然后按@kbd{TAB}可以插入一段修改主页URI为HTTPS的模板。"
  565. #. type: Plain text
  566. #: guix-git/doc/contributing.texi:346
  567. 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."
  568. msgstr "@code{scheme-mode}最重要的模板可以通过输入@code{package...},然后按@kbd{TAB}触发。这个片段还插入了触发字符串@code{origin...},以进一步展开。@code{origin}片段更进一步的可能插入其它以@code{...}结尾的触发字符串,它们可以被继续展开。"
  569. #. type: cindex
  570. #: guix-git/doc/contributing.texi:347
  571. #, no-wrap
  572. msgid "insert or update copyright"
  573. msgstr ""
  574. #. type: code{#1}
  575. #: guix-git/doc/contributing.texi:348
  576. #, no-wrap
  577. msgid "M-x guix-copyright"
  578. msgstr ""
  579. #. type: code{#1}
  580. #: guix-git/doc/contributing.texi:349
  581. #, no-wrap
  582. msgid "M-x copyright-update"
  583. msgstr ""
  584. #. type: Plain text
  585. #: guix-git/doc/contributing.texi:353
  586. 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."
  587. msgstr ""
  588. #. type: lisp
  589. #: guix-git/doc/contributing.texi:359
  590. #, no-wrap
  591. msgid ""
  592. "(setq user-full-name \"Alice Doe\")\n"
  593. "(setq user-mail-address \"alice@@mail.org\")\n"
  594. ";; @r{Assuming the Guix checkout is in ~/src/guix.}\n"
  595. "(load-file \"~/src/guix/etc/copyright.el\")\n"
  596. msgstr ""
  597. #. type: Plain text
  598. #: guix-git/doc/contributing.texi:362
  599. msgid "To insert a copyright at the current line invoke @code{M-x guix-copyright}."
  600. msgstr ""
  601. #. type: Plain text
  602. #: guix-git/doc/contributing.texi:364
  603. msgid "To update a copyright you need to specify a @code{copyright-names-regexp}."
  604. msgstr ""
  605. #. type: lisp
  606. #: guix-git/doc/contributing.texi:368
  607. #, no-wrap
  608. msgid ""
  609. "(setq copyright-names-regexp\n"
  610. " (format \"%s <%s>\" user-full-name user-mail-address))\n"
  611. msgstr ""
  612. #. type: Plain text
  613. #: guix-git/doc/contributing.texi:374
  614. 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."
  615. msgstr ""
  616. #. type: cindex
  617. #: guix-git/doc/contributing.texi:378
  618. #, no-wrap
  619. msgid "packages, creating"
  620. msgstr "软件包, 创建"
  621. #. type: Plain text
  622. #: guix-git/doc/contributing.texi:382
  623. 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."
  624. msgstr "这个GNU发行版正在开发的早期阶段,可能缺少一些你喜欢的软件。这个章节介绍你可以怎样帮助这个发行版成长。"
  625. #. type: Plain text
  626. #: guix-git/doc/contributing.texi:390
  627. 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."
  628. msgstr "自由软件通常以@dfn{源代码包}的形式分发,通常是包含完整代码的@file{tar.gz}包。添加软件包到这个发行版意味着两件事:添加描述如何构建包的@dfn{配方}和一系列依赖软件,以及添加配方之外的@dfn{软件包元数据},如一段文字描述和证书信息。"
  629. #. type: Plain text
  630. #: guix-git/doc/contributing.texi:399
  631. 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}."
  632. msgstr "在Guix里所有这些信息都包含在@dfn{软件包定义}里。软件包定义提供了软件包的高层视角。它们使用Scheme编程语言编写,事实上,对每个软件包我们都定义一个绑定到软件包定义的的变量,并且从模块(@pxref{Package Modules})中导出那个变量。然而,深入的Scheme知识@emph{不}是创建软件包的前提条件。若要了解软件包的更多信息,@pxref{Defining Packages}。"
  633. #. type: Plain text
  634. #: guix-git/doc/contributing.texi:405
  635. 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}):"
  636. msgstr "一旦软件包定义准备好了,并且包存在Guix代码树的一个文件里,你可以用@command{guix build} (@pxref{Invoking guix build})命令测试它。假设这个新软件包的名字叫做@code{gnew},你可以在Guix构建树里运行这个命令(@pxref{Running Guix Before It Is Installed}):"
  637. #. type: example
  638. #: guix-git/doc/contributing.texi:408
  639. #, no-wrap
  640. msgid "./pre-inst-env guix build gnew --keep-failed\n"
  641. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  642. #. type: Plain text
  643. #: guix-git/doc/contributing.texi:414
  644. 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."
  645. msgstr "使用@code{--keep-failed}参数会保留失败的构建树,这可以使调试构建错误更容易。@code{--log-file}也是一个调试时很有用的参数,它可以用来访问构建日志。"
  646. #. type: Plain text
  647. #: guix-git/doc/contributing.texi:419
  648. 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:"
  649. msgstr "如果@command{guix}命令找不到这个软件包,那可能是因为源文件包含语法错误,或者缺少导出软件包的@code{define-public}语句。为了查找错误,你可以用Guile导入这个模块以了解这个错误的详情:"
  650. #. type: example
  651. #: guix-git/doc/contributing.texi:422
  652. #, no-wrap
  653. msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  654. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  655. #. type: Plain text
  656. #: guix-git/doc/contributing.texi:429
  657. #, fuzzy
  658. msgid "Once your package builds correctly, please send us a patch (@pxref{Submitting Patches}). Well, if you need help, we will be happy to help you too. Once the patch is committed in the Guix repository, the new package automatically gets built on the supported platforms by @url{https://@value{SUBSTITUTE-SERVER-1}, our continuous integration system}."
  659. msgstr "一旦你的软件包可以正确构建,请给我们发送补丁(@pxref{Submitting Patches})。当然,如果你需要帮助,我们也会很乐意帮助你。一旦补丁被提交到 Guix 仓库里,这个新的软件包会被自动地在支持的平台上构建 @url{@value{SUBSTITUTE-URL}, our continuous integration system}。"
  660. #. type: cindex
  661. #: guix-git/doc/contributing.texi:430
  662. #, no-wrap
  663. msgid "substituter"
  664. msgstr "substitutes"
  665. #. type: Plain text
  666. #: guix-git/doc/contributing.texi:437
  667. #, fuzzy
  668. #| 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."
  669. msgid "Users can obtain the new package definition simply by running @command{guix pull} (@pxref{Invoking guix pull}). When @code{@value{SUBSTITUTE-SERVER-1}} is done building the package, installing the package automatically downloads binaries from there (@pxref{Substitutes}). The only place where human intervention is needed is to review and apply the patch."
  670. msgstr "用户可以通过运行@command{guix pull}命令获取最新的软件包定义(@pxref{Invoking guix pull})。当@code{@value{SUBSTITUTE-SERVER}}构建好这些软件包之后,安装这些软件包时会自动从服务器(@pxref{Substitutes})上下载构建好的二进制包。唯一需要人工干预的地方是评审和应用代码补丁。"
  671. #. type: subsection
  672. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:453
  673. #: guix-git/doc/contributing.texi:454
  674. #, no-wrap
  675. msgid "Software Freedom"
  676. msgstr "软件自由"
  677. #. type: menuentry
  678. #: guix-git/doc/contributing.texi:451
  679. msgid "What may go into the distribution."
  680. msgstr "什么可以进入这个发行版。"
  681. #. type: subsection
  682. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:481
  683. #: guix-git/doc/contributing.texi:482
  684. #, no-wrap
  685. msgid "Package Naming"
  686. msgstr "软件包命名"
  687. #. type: menuentry
  688. #: guix-git/doc/contributing.texi:451
  689. msgid "What's in a name?"
  690. msgstr "名字里包含什么?"
  691. #. type: subsection
  692. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:514
  693. #: guix-git/doc/contributing.texi:515
  694. #, no-wrap
  695. msgid "Version Numbers"
  696. msgstr "版本号"
  697. #. type: menuentry
  698. #: guix-git/doc/contributing.texi:451
  699. msgid "When the name is not enough."
  700. msgstr "当名字不够时。"
  701. #. type: subsection
  702. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:621
  703. #: guix-git/doc/contributing.texi:622
  704. #, no-wrap
  705. msgid "Synopses and Descriptions"
  706. msgstr "简介和描述"
  707. #. type: menuentry
  708. #: guix-git/doc/contributing.texi:451
  709. msgid "Helping users find the right package."
  710. msgstr "帮助用户寻找合适的软件包。"
  711. #. type: subsection
  712. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:700
  713. #: guix-git/doc/contributing.texi:701
  714. #, no-wrap
  715. msgid "Snippets versus Phases"
  716. msgstr ""
  717. #. type: menuentry
  718. #: guix-git/doc/contributing.texi:451
  719. msgid "Whether to use a snippet, or a build phase."
  720. msgstr ""
  721. #. type: subsection
  722. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:715
  723. #: guix-git/doc/contributing.texi:716 guix-git/doc/guix.texi:2028
  724. #, no-wrap
  725. msgid "Emacs Packages"
  726. msgstr ""
  727. #. type: menuentry
  728. #: guix-git/doc/contributing.texi:451
  729. msgid "Your Elisp fix."
  730. msgstr ""
  731. #. type: subsection
  732. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:755
  733. #: guix-git/doc/contributing.texi:756
  734. #, no-wrap
  735. msgid "Python Modules"
  736. msgstr "Python模块"
  737. #. type: menuentry
  738. #: guix-git/doc/contributing.texi:451
  739. msgid "A touch of British comedy."
  740. msgstr "接触英式的喜剧。"
  741. #. type: subsection
  742. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:831
  743. #: guix-git/doc/contributing.texi:832
  744. #, no-wrap
  745. msgid "Perl Modules"
  746. msgstr "Perl模块"
  747. #. type: menuentry
  748. #: guix-git/doc/contributing.texi:451
  749. msgid "Little pearls."
  750. msgstr "小珍珠。"
  751. #. type: subsection
  752. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:847
  753. #: guix-git/doc/contributing.texi:848
  754. #, no-wrap
  755. msgid "Java Packages"
  756. msgstr "Java包"
  757. #. type: menuentry
  758. #: guix-git/doc/contributing.texi:451
  759. msgid "Coffee break."
  760. msgstr "喝咖啡休息。"
  761. #. type: subsection
  762. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:867
  763. #: guix-git/doc/contributing.texi:868
  764. #, no-wrap
  765. msgid "Rust Crates"
  766. msgstr ""
  767. #. type: menuentry
  768. #: guix-git/doc/contributing.texi:451
  769. msgid "Beware of oxidation."
  770. msgstr "谨防氧化。"
  771. #. type: subsection
  772. #: guix-git/doc/contributing.texi:451 guix-git/doc/contributing.texi:901
  773. #: guix-git/doc/contributing.texi:902
  774. #, no-wrap
  775. msgid "Fonts"
  776. msgstr "字体"
  777. #. type: menuentry
  778. #: guix-git/doc/contributing.texi:451
  779. msgid "Fond of fonts."
  780. msgstr "字体的乐趣。"
  781. #. type: cindex
  782. #: guix-git/doc/contributing.texi:457
  783. #, no-wrap
  784. msgid "free software"
  785. msgstr "自由软件"
  786. #. type: Plain text
  787. #: guix-git/doc/contributing.texi:465
  788. 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."
  789. msgstr "开发 GNU 操作系统是为了用户拥有计算的自由。GNU是@dfn{自由软件},这意味着它有@url{https://www.gnu.org/philosophy/free-sw.html,四项重要的自由}:运行程序的自由,以源代码形式学习和修改程序的自由,原样重新分发副本的自由,和分发修改后的版本的自由。GNU 发行版里包含的软件包只提供遵守这四项自由的软件。"
  790. #. type: Plain text
  791. #: guix-git/doc/contributing.texi:471
  792. 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."
  793. msgstr "此外,GNU 发行版遵循@url{https://www.gnu.org/distros/free-system-distribution-guidelines.html,自由软件发行版准则}。这些准则拒绝非自由的固件和对非自由软件的推荐,并讨论解决商标和专利的方法。"
  794. #. type: Plain text
  795. #: guix-git/doc/contributing.texi:479
  796. 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."
  797. msgstr "某些上游的软件包源代码包含一小部分违反上述准则的可选的子集,比如这个子集本身就是非自由代码。这时,这些讨厌的代码需要用合适的补丁或者软件包定义(@pxref{Defining Packages})里的@code{origin}里的代码片段移除。这样,@code{guix build --source}就可以返回自由的源代码而不是未经修改的上游源代码。"
  798. #. type: cindex
  799. #: guix-git/doc/contributing.texi:484
  800. #, no-wrap
  801. msgid "package name"
  802. msgstr "软件包名字"
  803. #. type: Plain text
  804. #: guix-git/doc/contributing.texi:492
  805. #, fuzzy
  806. 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}."
  807. msgstr "一个软件包事实上有两个名字:第一个是@emph{Scheme变量}的名字,即用@code{define-public}定义的名字。通过这个名字,软件包可以被Scheme代码找到,如用作其它软件包的输入。第二个名字是软件包定义里的@code{name}属性的字符串值。这个名字用于软件包管理命令,如:@command{guix package},@command{guix build}"
  808. #. type: Plain text
  809. #: guix-git/doc/contributing.texi:497
  810. 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}."
  811. msgstr "两个名字通常是相同的,常是上游项目名字转成小写字母并把下划线替换成连字符的结果。比如,GNUnet转成@code{gnunet},SDL_net转成@code{sdl-net}。"
  812. #. type: Plain text
  813. #: guix-git/doc/contributing.texi:505
  814. 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."
  815. msgstr ""
  816. #. type: Plain text
  817. #: guix-git/doc/contributing.texi:510
  818. 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."
  819. msgstr "我们不给库软件包添加@code{lib}前缀,除非它是项目官方名字的一部分。但是@pxref{Python Modules}和@ref{Perl Modules}有关于Python和Perl语言的特殊规则。"
  820. #. type: Plain text
  821. #: guix-git/doc/contributing.texi:512
  822. msgid "Font package names are handled differently, @pxref{Fonts}."
  823. msgstr "字体软件包的名字处理起来不同,@pxref{Fonts}."
  824. #. type: cindex
  825. #: guix-git/doc/contributing.texi:517
  826. #, no-wrap
  827. msgid "package version"
  828. msgstr "软件包版本"
  829. #. type: Plain text
  830. #: guix-git/doc/contributing.texi:526
  831. 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."
  832. msgstr "我们通常只为每个自由软件的最新版本打包。但是有时候,比如对于版本不兼容的库,需要有同一个软件包的两个或更多版本。它们需要使用不同的Scheme变量名。我们为最新的版本使用@ref{Package Naming}里规定的名字,旧的版本使用加上后缀的名字,后缀是@code{-}和可以区分开版本号的版本号的最小前缀。"
  833. #. type: Plain text
  834. #: guix-git/doc/contributing.texi:529
  835. msgid "The name inside the package definition is the same for all versions of a package and does not contain any version number."
  836. msgstr "软件包定义里的名字对于同一个软件包的所有版本都是相同的,并且不含有版本号。"
  837. #. type: Plain text
  838. #: guix-git/doc/contributing.texi:531
  839. msgid "For instance, the versions 2.24.20 and 3.9.12 of GTK+ may be packaged as follows:"
  840. msgstr "例如,GTK+的2.24.20和3.9.12两个版本可以这样打包:"
  841. #. type: lisp
  842. #: guix-git/doc/contributing.texi:543
  843. #, no-wrap
  844. msgid ""
  845. "(define-public gtk+\n"
  846. " (package\n"
  847. " (name \"gtk+\")\n"
  848. " (version \"3.9.12\")\n"
  849. " ...))\n"
  850. "(define-public gtk+-2\n"
  851. " (package\n"
  852. " (name \"gtk+\")\n"
  853. " (version \"2.24.20\")\n"
  854. " ...))\n"
  855. msgstr ""
  856. "(define-public gtk+\n"
  857. " (package\n"
  858. " (name \"gtk+\")\n"
  859. " (version \"3.9.12\")\n"
  860. " ...))\n"
  861. "(define-public gtk+-2\n"
  862. " (package\n"
  863. " (name \"gtk+\")\n"
  864. " (version \"2.24.20\")\n"
  865. " ...))\n"
  866. #. type: Plain text
  867. #: guix-git/doc/contributing.texi:545
  868. msgid "If we also wanted GTK+ 3.8.2, this would be packaged as"
  869. msgstr "如果我们还需要GTK+ 3.8.2,就这样打包"
  870. #. type: lisp
  871. #: guix-git/doc/contributing.texi:551
  872. #, no-wrap
  873. msgid ""
  874. "(define-public gtk+-3.8\n"
  875. " (package\n"
  876. " (name \"gtk+\")\n"
  877. " (version \"3.8.2\")\n"
  878. " ...))\n"
  879. msgstr ""
  880. "(define-public gtk+-3.8\n"
  881. " (package\n"
  882. " (name \"gtk+\")\n"
  883. " (version \"3.8.2\")\n"
  884. " ...))\n"
  885. #. type: cindex
  886. #: guix-git/doc/contributing.texi:555
  887. #, no-wrap
  888. msgid "version number, for VCS snapshots"
  889. msgstr "用于版本控制快照的版本号"
  890. #. type: Plain text
  891. #: guix-git/doc/contributing.texi:561
  892. 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?"
  893. msgstr "有时候,我们为软件包上游的版本控制系统(VCS)的快照而不是正式发布版打包。这是特殊情况,因为决定哪个是稳定版的权力应该属于上游开发者。然而,有时候这是必须的。那么,我们该如何决定写在@code{version}里的版本号呢?"
  894. #. type: Plain text
  895. #: guix-git/doc/contributing.texi:569
  896. 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:"
  897. msgstr "显然,我们需要让VCS快照的commit ID在版本号中体现出来,但是我们也需要确保版本号单调递增,以便@command{guix package --upgrade}决定哪个版本号更新。由于commit ID,尤其是Git的commit ID,不是单调递增的,我们添加一个每次升级快照时都手动增长的revision数字。最后的版本号字符串看起来是这样:"
  898. #. type: example
  899. #: guix-git/doc/contributing.texi:578
  900. #, no-wrap
  901. msgid ""
  902. "2.0.11-3.cabba9e\n"
  903. " ^ ^ ^\n"
  904. " | | `-- upstream commit ID\n"
  905. " | |\n"
  906. " | `--- Guix package revision\n"
  907. " |\n"
  908. "latest upstream version\n"
  909. msgstr ""
  910. "2.0.11-3.cabba9e\n"
  911. " ^ ^ ^\n"
  912. " | | `-- 上游的commit ID\n"
  913. " | |\n"
  914. " | `--- Guix软件包的revision\n"
  915. " |\n"
  916. "最新的上游版本号\n"
  917. #. type: Plain text
  918. #: guix-git/doc/contributing.texi:588
  919. #, fuzzy
  920. msgid "It is a good idea to strip commit identifiers in the @code{version} field to, say, 7 digits. It avoids an aesthetic annoyance (assuming aesthetics have a role to play here) as well as problems related to OS limits such as the maximum shebang length (127 bytes for the Linux kernel). There are helper functions for doing this for packages using @code{git-fetch} or @code{hg-fetch} (see below). It is best to use the full commit identifiers in @code{origin}s, though, to avoid ambiguities. A typical package definition may look like this:"
  921. msgstr "把@code{版本号}里的commit ID截短,比如只取7个数字,是一个好主意。它避免了美学上的烦恼(假设美学在这里很重要),以及操作系统限制引起的问题(比如Linux内核的127字节)。尽管如此,在@code{origin}里最好使用完整的commit ID,以避免混淆。"
  922. #. type: lisp
  923. #: guix-git/doc/contributing.texi:605
  924. #, no-wrap
  925. msgid ""
  926. "(define my-package\n"
  927. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  928. " (revision \"1\")) ;Guix package revision\n"
  929. " (package\n"
  930. " (version (git-version \"0.9\" revision commit))\n"
  931. " (source (origin\n"
  932. " (method git-fetch)\n"
  933. " (uri (git-reference\n"
  934. " (url \"git://example.org/my-package.git\")\n"
  935. " (commit commit)))\n"
  936. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  937. " (file-name (git-file-name name version))))\n"
  938. " ;; @dots{}\n"
  939. " )))\n"
  940. msgstr ""
  941. "(define my-package\n"
  942. " (let ((commit \"c3f29bc928d5900971f65965feaae59e1272a3f7\")\n"
  943. " (revision \"1\")) ;Guix软件包的revision\n"
  944. " (package\n"
  945. " (version (git-version \"0.9\" revision commit))\n"
  946. " (source (origin\n"
  947. " (method git-fetch)\n"
  948. " (uri (git-reference\n"
  949. " (url \"git://example.org/my-package.git\")\n"
  950. " (commit commit)))\n"
  951. " (sha256 (base32 \"1mbikn@dots{}\"))\n"
  952. " (file-name (git-file-name name version))))\n"
  953. " ;; @dots{}\n"
  954. " )))\n"
  955. #. type: deffn
  956. #: guix-git/doc/contributing.texi:607
  957. #, no-wrap
  958. msgid "{Scheme Procedure} git-version @var{VERSION} @var{REVISION} @var{COMMIT}"
  959. msgstr ""
  960. #. type: deffn
  961. #: guix-git/doc/contributing.texi:609
  962. msgid "Return the version string for packages using @code{git-fetch}."
  963. msgstr ""
  964. #. type: lisp
  965. #: guix-git/doc/contributing.texi:613
  966. #, no-wrap
  967. msgid ""
  968. "(git-version \"0.2.3\" \"0\" \"93818c936ee7e2f1ba1b315578bde363a7d43d05\")\n"
  969. "@result{} \"0.2.3-0.93818c9\"\n"
  970. msgstr ""
  971. #. type: deffn
  972. #: guix-git/doc/contributing.texi:616
  973. #, no-wrap
  974. msgid "{Scheme Procedure} hg-version @var{VERSION} @var{REVISION} @var{CHANGESET}"
  975. msgstr ""
  976. #. type: deffn
  977. #: guix-git/doc/contributing.texi:619
  978. msgid "Return the version string for packages using @code{hg-fetch}. It works in the same way as @code{git-version}."
  979. msgstr ""
  980. #. type: cindex
  981. #: guix-git/doc/contributing.texi:624
  982. #, no-wrap
  983. msgid "package description"
  984. msgstr "软件包描述"
  985. #. type: cindex
  986. #: guix-git/doc/contributing.texi:625
  987. #, no-wrap
  988. msgid "package synopsis"
  989. msgstr "软件包简介"
  990. #. type: Plain text
  991. #: guix-git/doc/contributing.texi:632
  992. 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."
  993. msgstr "我们已经看到,GNU@tie{}Guix里的每个软件包都包含一个简介(synopsis)和一个描述(description)(@pxref{Defining Packages})。简介和描述很重要:它们是@command{guix package --search}搜索的信息,并且是帮助用户决定一个软件包是否符合自己需求的重要信息。因此,打包的人应该关注怎样写它们的内容。"
  994. #. type: Plain text
  995. #: guix-git/doc/contributing.texi:640
  996. 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''."
  997. 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''。"
  998. #. type: Plain text
  999. #: guix-git/doc/contributing.texi:650
  1000. 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."
  1001. msgstr "记住,简介必须能被广大的听众理解。例如,“以SAM格式修改对齐”可能对经验丰富的生物信息科研工作者来说能理解,但是对普通对听众则是无用的甚至是令人误解的。简介最好说明软件包应用的领域。在这个例子中,应该这样描述“修改核苷酸序列的对齐格式”,这会让用户更容易判断这是不是他们想要的。"
  1002. #. type: Plain text
  1003. #: guix-git/doc/contributing.texi:658
  1004. 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."
  1005. msgstr "描述应该在5至10句话之间。使用完整的句子,并且避免在未介绍的情况下使用缩写。请避免推广营销性对词汇,如“世界领先”,“行业最强”,“下一代”,并且避免高级的形容词,如“最先进的”--他们对用户寻找软件包是无用的,甚至是可疑的。相反的,尽量务实,提及用例和功能。"
  1006. #. type: cindex
  1007. #: guix-git/doc/contributing.texi:659
  1008. #, no-wrap
  1009. msgid "Texinfo markup, in package descriptions"
  1010. msgstr "软件包描述里的Texinfo标记"
  1011. #. type: Plain text
  1012. #: guix-git/doc/contributing.texi:668
  1013. 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."
  1014. msgstr "描述可以含有Texinfo标记,这对格式化有帮助,如@code{@@code}、@code{@@dfn}、列表、超链接(@pxref{Overview,,, texinfo, GNU Texinfo})。但是,在使用某些字符时应该小心,如@samp{@@}和花括号是基本的Texinfo特殊字符(@pxref{Special Characters,,, texinfo, GNU Texinfo})。@command{guix package --show}之类的用户界面会解决渲染问题。"
  1015. #. type: Plain text
  1016. #: guix-git/doc/contributing.texi:674
  1017. #, fuzzy
  1018. 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."
  1019. msgstr "简介和描述会由@uref{http://translationproject.org/domain/guix-packages.html, Translation Project}项目的志愿者翻译,从而使尽可能多的用户可以用母语阅读。用户界面用当前区域设置的语言搜索和展示这些信息。"
  1020. #. type: Plain text
  1021. #: guix-git/doc/contributing.texi:679
  1022. 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:"
  1023. msgstr "为了让@command{xgettext}可以把它们提取成待翻译的字符串,简介和描述@emph{必须是文字字符串}。这意味着你不能使用@code{string-append}或@code{format}来合成字符串:"
  1024. #. type: lisp
  1025. #: guix-git/doc/contributing.texi:685
  1026. #, no-wrap
  1027. msgid ""
  1028. "(package\n"
  1029. " ;; @dots{}\n"
  1030. " (synopsis \"This is translatable\")\n"
  1031. " (description (string-append \"This is \" \"*not*\" \" translatable.\")))\n"
  1032. msgstr ""
  1033. "(package\n"
  1034. " ;; @dots{}\n"
  1035. " (synopsis \"这是可以翻译的\")\n"
  1036. " (description (string-append \"这是\" \"*不可以*\" \"翻译的\")))\n"
  1037. #. type: Plain text
  1038. #: guix-git/doc/contributing.texi:693
  1039. 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}):"
  1040. msgstr "翻译是很繁重的工作,所以,作为打包者请更加注意你的简介和介绍,每一个改动都会增加翻译的工作量。为了帮助他们,你可以插入这类可以被他们看到的建议和指示(@pxref{xgettext Invocation,,, gettext, GNU Gettext}):"
  1041. #. type: lisp
  1042. #: guix-git/doc/contributing.texi:698
  1043. #, no-wrap
  1044. msgid ""
  1045. ";; TRANSLATORS: \"X11 resize-and-rotate\" should not be translated.\n"
  1046. "(description \"ARandR is designed to provide a simple visual front end\n"
  1047. "for the X11 resize-and-rotate (RandR) extension. @dots{}\")\n"
  1048. msgstr ""
  1049. ";; TRANSLATORS: \"X11 resize-and-rotate\"不需要翻译。\n"
  1050. "(description \"ARandR为X11 resize-and-rotate (RandR)扩展提供简单的图形界面。@dots{}\")\n"
  1051. #. type: cindex
  1052. #: guix-git/doc/contributing.texi:703
  1053. #, no-wrap
  1054. msgid "snippets, when to use"
  1055. msgstr ""
  1056. #. type: Plain text
  1057. #: guix-git/doc/contributing.texi:714
  1058. 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})."
  1059. msgstr ""
  1060. #. type: cindex
  1061. #: guix-git/doc/contributing.texi:718
  1062. #, no-wrap
  1063. msgid "emacs, packaging"
  1064. msgstr ""
  1065. #. type: cindex
  1066. #: guix-git/doc/contributing.texi:719
  1067. #, no-wrap
  1068. msgid "elisp, packaging"
  1069. msgstr ""
  1070. #. type: Plain text
  1071. #: guix-git/doc/contributing.texi:731
  1072. 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."
  1073. msgstr ""
  1074. #. type: Plain text
  1075. #: guix-git/doc/contributing.texi:736
  1076. 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}."
  1077. msgstr ""
  1078. #. type: Plain text
  1079. #: guix-git/doc/contributing.texi:745
  1080. 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:"
  1081. msgstr ""
  1082. #. type: lisp
  1083. #: guix-git/doc/contributing.texi:748
  1084. #, no-wrap
  1085. msgid "#:include (cons \"^snippets/\" %default-include)\n"
  1086. msgstr ""
  1087. #. type: Plain text
  1088. #: guix-git/doc/contributing.texi:754
  1089. 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."
  1090. msgstr ""
  1091. #. type: cindex
  1092. #: guix-git/doc/contributing.texi:758
  1093. #, no-wrap
  1094. msgid "python"
  1095. msgstr "python"
  1096. #. type: Plain text
  1097. #: guix-git/doc/contributing.texi:764
  1098. 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}."
  1099. msgstr "我们目前为Python 2和Python 3打包,如@ref{Version Numbers}的规则所述,它们的Scheme变量名分别是@code{python-2}和@code{python}。为了避免和其他编程语言的冲突,Python模块的软件包名字最好含有@code{python}。"
  1100. #. type: Plain text
  1101. #: guix-git/doc/contributing.texi:771
  1102. #, fuzzy
  1103. 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."
  1104. msgstr "某些模块仅和一个版本的Python兼容,其它的和两个版本都兼容。如果一个叫做Foo的软件包仅和Python 3兼容,我们把它命名为@code{python-foo};如果它仅和Python 2兼容,我们把它命名为@code{python2-foo}。如果它和两个版本都兼容,我们创建两个软件包,名字如前所述。"
  1105. #. type: Plain text
  1106. #: guix-git/doc/contributing.texi:777
  1107. 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."
  1108. msgstr "如果一个项目的名字已经含有@code{python}这个单词,我们把它丢掉;例如,python-dateutil模块打包后的名字是@code{python-dateutil}和@code{python2-dateutil}。如果项目的名字以@code{py}开头(如@: @code{pytz}),我们把它保留,并且添加上面所述的前缀。"
  1109. #. type: subsubsection
  1110. #: guix-git/doc/contributing.texi:778
  1111. #, no-wrap
  1112. msgid "Specifying Dependencies"
  1113. msgstr "指定依赖"
  1114. #. type: cindex
  1115. #: guix-git/doc/contributing.texi:779
  1116. #, no-wrap
  1117. msgid "inputs, for Python packages"
  1118. msgstr "Python软件包的输入"
  1119. #. type: Plain text
  1120. #: guix-git/doc/contributing.texi:784
  1121. 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}."
  1122. msgstr "Python软件包的依赖信息通常在包的源代码树里,各种文件有不同的精确度:@file{setup.py}文件,@file{requirements.txt}文件,@file{tox.ini}文件。"
  1123. #. type: Plain text
  1124. #: guix-git/doc/contributing.texi:790
  1125. 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."
  1126. msgstr "你在写软件包配方时的任务是把这些依赖转换成相应的“输入”(@pxref{package Reference, inputs})。尽管@code{pypi}导入工具通常可以做得很好(@pxref{Invoking guix import}),你可能想检查下面这个清单,以决定每个依赖放在哪儿。"
  1127. #. type: itemize
  1128. #: guix-git/doc/contributing.texi:798
  1129. 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."
  1130. msgstr "默认地,我们为Python 2打包时像Python 3一样安装了@code{setuptools}和@code{pip}。所以你不需要把它们两个指定为依赖,否则@command{guix lint}会警告你。"
  1131. #. type: itemize
  1132. #: guix-git/doc/contributing.texi:804
  1133. 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."
  1134. msgstr "运行时需要的Python依赖要放进@code{propagated-inputs}。它们通常由@file{setup.py}文件里的@code{install_requires}关键字或@file{requirements.txt}文件定义。"
  1135. #. type: itemize
  1136. #: guix-git/doc/contributing.texi:812
  1137. 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."
  1138. msgstr "仅在构建时依赖的Python包--如,@file{setup.py}里的@code{setup_requires}关键字列举的包--或仅在测试时依赖的包--如,@code{tests_require}里的包--要放进@code{native-inputs}。因为,(1)在运行时不需要它们,因此不需要propagate,并且(2)在交叉编译时,它们属于“native”输入。"
  1139. #. type: itemize
  1140. #: guix-git/doc/contributing.texi:816
  1141. 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}."
  1142. msgstr "例如@code{pytest},@code{mock},@code{nose}测试框架。当然,如果在运行时需要这里的任何一个包,它需要被加进@code{propagated-inputs}。"
  1143. #. type: itemize
  1144. #: guix-git/doc/contributing.texi:821
  1145. 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."
  1146. msgstr "任何不属于上述类别的包都要被加进@code{inputs},如,构建含有C语言扩展的Python包所需的程序和C语言库。"
  1147. #. type: itemize
  1148. #: guix-git/doc/contributing.texi:827
  1149. 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}})."
  1150. msgstr "如果一个Python软件包由可选的依赖(@code{extras_require}),由你根据它们的性价比(用处/负担)决定是否添加它们(@pxref{Submitting Patches, @command{guix size}})。"
  1151. #. type: cindex
  1152. #: guix-git/doc/contributing.texi:834
  1153. #, no-wrap
  1154. msgid "perl"
  1155. msgstr "perl"
  1156. #. type: Plain text
  1157. #: guix-git/doc/contributing.texi:845
  1158. 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}."
  1159. msgstr "Perl程序和其它软件包的命名规则类似,用小写的上游名字命名。对于仅包含一个类的Perl包,我们使用小写的类名,把所有的@code{::}替换成破折号,并且添加@code{perl-}前缀。所以类@code{XML::Parser}变成@code{perl-xml-parser}。包含多个类的模块保留它们上游的名字,并且添加@code{perl-}前缀。这类模块的名字通常含有@code{perl},这个单词需要被删掉。例如,@code{libwww-perl}变成@code{perl-libwww}。"
  1160. #. type: cindex
  1161. #: guix-git/doc/contributing.texi:850
  1162. #, no-wrap
  1163. msgid "java"
  1164. msgstr "java"
  1165. #. type: Plain text
  1166. #: guix-git/doc/contributing.texi:853
  1167. msgid "Java programs standing for themselves are named as any other package, using the lowercase upstream name."
  1168. msgstr "Java程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1169. #. type: Plain text
  1170. #: guix-git/doc/contributing.texi:859
  1171. 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}."
  1172. msgstr "为了避免和其它编程语言混淆和命名冲突,Java软件包的名字最好有@code{java-}前缀。如果一个项目的名字已经含有@code{java},我们把它删掉;例如,@code{ngsjava}打包后的名字是@code{java-ngs}。"
  1173. #. type: Plain text
  1174. #: guix-git/doc/contributing.texi:865
  1175. 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}."
  1176. msgstr "对于仅包含一个或很少几个类的Java软件包,我们使用小写的类名,把所有的@code{.}替换成破折号,并且添加@code{java-}前缀。因此,类@code{apache.commons.cli}打包后的名字是@code{java-apache-commons-cli}。"
  1177. #. type: cindex
  1178. #: guix-git/doc/contributing.texi:870
  1179. #, no-wrap
  1180. msgid "rust"
  1181. msgstr ""
  1182. #. type: Plain text
  1183. #: guix-git/doc/contributing.texi:873
  1184. msgid "Rust programs standing for themselves are named as any other package, using the lowercase upstream name."
  1185. msgstr "Rust 程序和其它软件包的命名规则类似,用小写的上游名字命名。"
  1186. #. type: Plain text
  1187. #: guix-git/doc/contributing.texi:877
  1188. 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."
  1189. msgstr ""
  1190. #. type: Plain text
  1191. #: guix-git/doc/contributing.texi:883
  1192. 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}."
  1193. msgstr ""
  1194. #. type: Plain text
  1195. #: guix-git/doc/contributing.texi:893
  1196. 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."
  1197. msgstr ""
  1198. #. type: Plain text
  1199. #: guix-git/doc/contributing.texi:899
  1200. 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."
  1201. msgstr ""
  1202. #. type: cindex
  1203. #: guix-git/doc/contributing.texi:904 guix-git/doc/guix.texi:1963
  1204. #, no-wrap
  1205. msgid "fonts"
  1206. msgstr "字体"
  1207. #. type: Plain text
  1208. #: guix-git/doc/contributing.texi:910
  1209. 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."
  1210. msgstr "对于通常不会被用户安装用于排版的字体,或者随更大的软件包分发的字体,我们使用通常的命名规则。例如,这适用于X.Org系统附带的字体或TeX Live附带的字体。"
  1211. #. type: Plain text
  1212. #: guix-git/doc/contributing.texi:914
  1213. 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."
  1214. msgstr "为了让用户更容易搜索字体,其它仅含有字体的软件包按以下规则命名,不管上游的包名是什么。"
  1215. #. type: Plain text
  1216. #: guix-git/doc/contributing.texi:922
  1217. 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}."
  1218. msgstr "仅含有一个字体家族的软件包需要以@code{font-}开头;如果作者名字已知,则添加作者名字和@code{-},接着是字体家族名字(把空格替换成破折号),(和通常一样,把所有的大写字母转换成小写字母)。例如,由SIL设计的Gentium字体家族打包后的名字是@code{font-sil-gentium}。"
  1219. #. type: Plain text
  1220. #: guix-git/doc/contributing.texi:931
  1221. 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}."
  1222. msgstr "对于一个含有多个字体家族的软件包,用集合的名字替换字体家族的名字。例如,Liberation字体含有三个家族,Liberation Sans、Liberation Serif和Liberation Mono。它们可以用@code{font-liberation-sans}等名字分开打包;但是由于它们以一个共同的名字分发,我们倾向于以@code{font-liberation}名字统一打包。"
  1223. #. type: Plain text
  1224. #: guix-git/doc/contributing.texi:937
  1225. 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."
  1226. msgstr "当同一个字体家族或字体集合的不同格式分开打包时,把破折号和格式(缩写)添加在软件包名字后面。我们用@code{-ttf}代表TrueType字体,@code{-otf}代表OpenType字体,@code{-type1}代表PostScript Type 1字体。"
  1227. #. type: Plain text
  1228. #: guix-git/doc/contributing.texi:945
  1229. 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."
  1230. msgstr "总的来说,我们的代码遵循GNU代码规范(@pxref{Top,,, standards, GNU代码规范})。但是,这个规范对Scheme的介绍不多,所以这儿提供一些额外的规则。"
  1231. #. type: subsection
  1232. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:953
  1233. #: guix-git/doc/contributing.texi:954
  1234. #, no-wrap
  1235. msgid "Programming Paradigm"
  1236. msgstr "编程范例"
  1237. #. type: menuentry
  1238. #: guix-git/doc/contributing.texi:951
  1239. msgid "How to compose your elements."
  1240. msgstr "怎样合成元素。"
  1241. #. type: subsection
  1242. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:960
  1243. #: guix-git/doc/contributing.texi:961
  1244. #, no-wrap
  1245. msgid "Modules"
  1246. msgstr "模块"
  1247. #. type: menuentry
  1248. #: guix-git/doc/contributing.texi:951
  1249. msgid "Where to store your code?"
  1250. msgstr "在哪里保存代码?"
  1251. #. type: subsection
  1252. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:971
  1253. #: guix-git/doc/contributing.texi:972
  1254. #, no-wrap
  1255. msgid "Data Types and Pattern Matching"
  1256. msgstr "数据类型和模式匹配"
  1257. #. type: menuentry
  1258. #: guix-git/doc/contributing.texi:951
  1259. msgid "Implementing data structures."
  1260. msgstr "实现数据结构。"
  1261. #. type: subsection
  1262. #: guix-git/doc/contributing.texi:951 guix-git/doc/contributing.texi:986
  1263. #: guix-git/doc/contributing.texi:987
  1264. #, no-wrap
  1265. msgid "Formatting Code"
  1266. msgstr "格式化代码"
  1267. #. type: menuentry
  1268. #: guix-git/doc/contributing.texi:951
  1269. msgid "Writing conventions."
  1270. msgstr "书写规范。"
  1271. #. type: Plain text
  1272. #: guix-git/doc/contributing.texi:959
  1273. 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."
  1274. msgstr "Guix里的Scheme代码是以纯函数的风格写的。一个例外是有关输入/输出的代码,和实现底层概念的过程,如@code{memoize}过程。"
  1275. #. type: Plain text
  1276. #: guix-git/doc/contributing.texi:967
  1277. 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."
  1278. msgstr "用于构建的Guile模块必须放在@code{(guix build @dots{})}命名空间里。它们不允许引用其它Guix或GNU模块。但是,主机端(host-side)模块可以使用构建端(build-side)模块。"
  1279. #. type: Plain text
  1280. #: guix-git/doc/contributing.texi:970
  1281. msgid "Modules that deal with the broader GNU system should be in the @code{(gnu @dots{})} name space rather than @code{(guix @dots{})}."
  1282. msgstr "关于更广的GNU系统的模块应该在@code{(gnu @dots{})}命名空间里而不是@code{(guix @dots{})}。"
  1283. #. type: Plain text
  1284. #: guix-git/doc/contributing.texi:979
  1285. 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."
  1286. msgstr "经典的Lisp倾向于用列表表示所有的东西,然后用@code{car},@code{cdr},@code{cadr}等手动浏览它们。这种风格有几个问题,特别是难以阅读,易出错,并且妨碍生成合适的类型错误报告。"
  1287. #. type: Plain text
  1288. #: guix-git/doc/contributing.texi:985
  1289. #, fuzzy
  1290. 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})."
  1291. msgstr "Guix代码应该定义合适的数据类型(例如,用@code{define-record-type*})而不是滥用列表。而且,它应该利用Guile的@code{(ice-9 match)}模块使用模式匹配,特别是匹配列表的时候。"
  1292. #. type: cindex
  1293. #: guix-git/doc/contributing.texi:989
  1294. #, no-wrap
  1295. msgid "formatting code"
  1296. msgstr "格式化代码"
  1297. #. type: cindex
  1298. #: guix-git/doc/contributing.texi:990
  1299. #, no-wrap
  1300. msgid "coding style"
  1301. msgstr "代码风格"
  1302. #. type: Plain text
  1303. #: guix-git/doc/contributing.texi:997
  1304. #, fuzzy
  1305. 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."
  1306. msgstr "在写Scheme代码时,我们遵循Scheme程序员的通用智慧。通常,我们遵循@url{http://mumble.net/~campbell/scheme/style.txt, Riastradh的Lisp风格}。这个文档碰巧描述了在Guile代码里大量使用的惯例。它很周到,而且写的很好,所以务必阅读。"
  1307. #. type: Plain text
  1308. #: guix-git/doc/contributing.texi:1004
  1309. 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})."
  1310. msgstr "一些Guix添加的special form,如@code{substitute*}宏,有特殊的缩进规则。它们的规则在@file{.dir-locals.el}文件里定义,Emacs会自动使用。另外,Emacs-Guix提供的@code{guix-devel-mode}模式可以正确地缩进和高亮Guix代码(@pxref{Development,,, emacs-guix, Emacs-Guix参考手册})。"
  1311. #. type: cindex
  1312. #: guix-git/doc/contributing.texi:1005
  1313. #, no-wrap
  1314. msgid "indentation, of code"
  1315. msgstr "代码缩进"
  1316. #. type: cindex
  1317. #: guix-git/doc/contributing.texi:1006
  1318. #, no-wrap
  1319. msgid "formatting, of code"
  1320. msgstr "代码格式化"
  1321. #. type: Plain text
  1322. #: guix-git/doc/contributing.texi:1009
  1323. 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:"
  1324. msgstr "如果你不使用Emacs,请确保让你的编辑器知道这些规则。为了自动地缩进软件包定义,你也可以运行:"
  1325. #. type: example
  1326. #: guix-git/doc/contributing.texi:1012
  1327. #, fuzzy, no-wrap
  1328. msgid "./pre-inst-env guix style @var{package}\n"
  1329. msgstr "guix install emacs-guix\n"
  1330. #. type: Plain text
  1331. #: guix-git/doc/contributing.texi:1016
  1332. #, fuzzy
  1333. msgid "@xref{Invoking guix style}, for more information."
  1334. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1335. #. type: cindex
  1336. #: guix-git/doc/contributing.texi:1017
  1337. #, no-wrap
  1338. msgid "Vim, Scheme code editing"
  1339. msgstr "Vim,编辑Scheme代码"
  1340. #. type: Plain text
  1341. #: guix-git/doc/contributing.texi:1023
  1342. 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."
  1343. msgstr "如果你用Vim编辑代码,我们推荐你运行@code{:set autoindent},以使你在输入时自动缩进代码。另外,@uref{https://www.vim.org/scripts/script.php?script_id=3998, @code{paredit.vim}}可以帮你处理括号。"
  1344. #. type: Plain text
  1345. #: guix-git/doc/contributing.texi:1027
  1346. 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."
  1347. msgstr "我们要求所有的顶级过程附带一个docstring。这个要求对@code{(guix build @dots{})}命名空间里的简单的私有过程可以放宽。"
  1348. #. type: Plain text
  1349. #: guix-git/doc/contributing.texi:1030
  1350. msgid "Procedures should not have more than four positional parameters. Use keyword parameters for procedures that take more than four parameters."
  1351. msgstr "过程不应该有多于四个定位参数。对于接收多于四个定位参数的过程应使用关键字参数。"
  1352. #. type: Plain text
  1353. #: guix-git/doc/contributing.texi:1044
  1354. #, fuzzy
  1355. 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 (@pxref{submitting patches,, Submitting patches to a project, git, Git User Manual}). Contributors are encouraged to take a moment to set some Git repository options (@pxref{Configuring Git}) first, which can improve the readability of patches. Seasoned Guix developers may also want to look at the section on commit access (@pxref{Commit Access})."
  1356. msgstr "开发是使用Git分布式版本控制系统完成的。因此,对仓库的访问权限不是必须的。我们欢迎以向@email{guix-patches@@gnu.org}邮件列表发送@code{git format-patch}补丁的方式共享代码。"
  1357. #. type: Plain text
  1358. #: guix-git/doc/contributing.texi:1051
  1359. #, fuzzy
  1360. 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})."
  1361. msgstr "这个邮件列表的后端是一个Debbugs实例(可以从@uref{https://bugs.gnu.org/guix-patches}访问),它允许我们跟踪提交的bug。每个发送到那个邮件列表的消息都会被分配一个跟踪数字;之后人们可以通过向@code{@var{NNN}@@debbugs.gnu.org}发送邮件来跟进提交(@var{NNN}是跟踪数字,@pxref{Sending a Patch Series})。"
  1362. #. type: Plain text
  1363. #: guix-git/doc/contributing.texi:1055
  1364. msgid "Please write commit logs in the ChangeLog format (@pxref{Change Logs,,, standards, GNU Coding Standards}); you can check the commit history for examples."
  1365. msgstr "请以ChangeLog格式(@pxref{Change Logs,,, standards, GNU代码规范})写commit日志;你可以浏览commit历史里的例子。"
  1366. #. type: Plain text
  1367. #: guix-git/doc/contributing.texi:1058
  1368. msgid "Before submitting a patch that adds or modifies a package definition, please run through this check list:"
  1369. msgstr "提交添加或者修改软件包定义的补丁之前,请过一遍这个检查列表:"
  1370. #. type: code{#1}
  1371. #: guix-git/doc/contributing.texi:1060 guix-git/doc/contributing.texi:1270
  1372. #, no-wrap
  1373. msgid "git format-patch"
  1374. msgstr ""
  1375. #. type: code{#1}
  1376. #: guix-git/doc/contributing.texi:1061
  1377. #, no-wrap
  1378. msgid "git-format-patch"
  1379. msgstr ""
  1380. #. type: enumerate
  1381. #: guix-git/doc/contributing.texi:1068
  1382. msgid "When generating your patches with @code{git format-patch} or @code{git send-email}, we recommend using the option @code{--base=}, perhaps with the value @code{auto}. This option adds a note to the patch stating which commit the patch is based on. This helps reviewers understand how to apply and review your patches."
  1383. msgstr ""
  1384. #. type: enumerate
  1385. #: guix-git/doc/contributing.texi:1074
  1386. 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."
  1387. msgstr "如果软件包的作者为发布的文件包提供了密码学签名,请验证文件的真实性。对于独立的 GPG 签名文件,这可以通过 @code{gpg --verify} 命令完成。"
  1388. #. type: enumerate
  1389. #: guix-git/doc/contributing.texi:1078
  1390. msgid "Take some time to provide an adequate synopsis and description for the package. @xref{Synopses and Descriptions}, for some guidelines."
  1391. msgstr "花些时间为软件包提供一个合适的简介和描述。更多指导,@xref{Synopses and Descriptions}。"
  1392. #. type: enumerate
  1393. #: guix-git/doc/contributing.texi:1083
  1394. 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})."
  1395. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1396. #. type: enumerate
  1397. #: guix-git/doc/contributing.texi:1087
  1398. #, fuzzy
  1399. #| 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})."
  1400. msgid "Run @code{guix style @var{package}} to format the new package definition according to the project's conventions (@pxref{Invoking guix style})."
  1401. msgstr "运行@code{guix lint @var{软件包}},@var{软件包}是新添加的或修改过的软件包的名字,修复它报告的错误(@pxref{Invoking guix lint})。"
  1402. #. type: enumerate
  1403. #: guix-git/doc/contributing.texi:1091
  1404. msgid "Make sure the package builds on your platform, using @code{guix build @var{package}}."
  1405. msgstr "用@code{guix build @var{软件包}}命令确保这个软件包可以在你的平台上构建。"
  1406. #. type: enumerate
  1407. #: guix-git/doc/contributing.texi:1099
  1408. #, fuzzy
  1409. #| 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:"
  1410. msgid "We recommend you also try building the package on other supported platforms. As you may not have access to actual hardware platforms, we recommend using the @code{qemu-binfmt-service-type} to emulate them. In order to enable it, add the @code{virtualization} service module and the following service to the list of services in your @code{operating-system} configuration:"
  1411. msgstr "我们建议你同时尝试在别的支持的平台上构建这个软件包。你可能没有别的平台的真实的硬件,我们推荐使用@code{qemu-binfmt-service-type}来模拟它们。为了启用这个功能,把下面这个服务添加到你的@code{操作系统}配置的服务列表里:"
  1412. #. type: lisp
  1413. #: guix-git/doc/contributing.texi:1104
  1414. #, fuzzy, no-wrap
  1415. msgid ""
  1416. "(service qemu-binfmt-service-type\n"
  1417. " (qemu-binfmt-configuration\n"
  1418. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  1419. msgstr ""
  1420. "(service qemu-binfmt-service-type\n"
  1421. " (qemu-binfmt-configuration\n"
  1422. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  1423. " (guix-support? #t)))\n"
  1424. #. type: enumerate
  1425. #: guix-git/doc/contributing.texi:1107
  1426. msgid "Then reconfigure your system."
  1427. msgstr "然后重新配置你的系统。"
  1428. #. type: enumerate
  1429. #: guix-git/doc/contributing.texi:1112
  1430. #, fuzzy
  1431. #| 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:"
  1432. msgid "You can then build packages for different platforms by specifying the @code{--system} option. For example, to build the \"hello\" package for the armhf or aarch64 architectures, you would run the following commands, respectively:"
  1433. msgstr "你之后可以用@code{--system}参数为不同的平台构建软件包。例如,为armhf,aarch64,或mips64架构构建\"hello\"软件包,你可以依次运行如下的命令:"
  1434. #. type: example
  1435. #: guix-git/doc/contributing.texi:1115
  1436. #, fuzzy, no-wrap
  1437. msgid ""
  1438. "guix build --system=armhf-linux --rounds=2 hello\n"
  1439. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1440. msgstr ""
  1441. "guix build --system=armhf-linux --rounds=2 hello\n"
  1442. "guix build --system=aarch64-linux --rounds=2 hello\n"
  1443. "guix build --system=mips64el-linux --rounds=2 hello\n"
  1444. #. type: cindex
  1445. #: guix-git/doc/contributing.texi:1118
  1446. #, no-wrap
  1447. msgid "bundling"
  1448. msgstr "构建"
  1449. #. type: enumerate
  1450. #: guix-git/doc/contributing.texi:1121
  1451. msgid "Make sure the package does not use bundled copies of software already available as separate packages."
  1452. msgstr "请确保软件包里不捆绑出现已经被打过包的软件的副本。"
  1453. #. type: enumerate
  1454. #: guix-git/doc/contributing.texi:1130
  1455. 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."
  1456. msgstr "有时,软件包为了方便用户,捆绑了依赖库的源代码。然而,当依赖库在发行版里已经存在时,做为一个发行版,我们希望确保这些软件包使用发行版里已有的副本。这提高资源使用率(依赖库只构建一次,存储一份),并且使发行版更容易管理,如仅在一个地方对某个软件包进行安全更新就可以影响整个系统--捆绑软件会妨碍这么做。"
  1457. #. type: enumerate
  1458. #: guix-git/doc/contributing.texi:1139
  1459. #, fuzzy
  1460. 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."
  1461. msgstr "看一下@command{guix size}(@pxref{Invoking guix size})的分析报告。这会让你注意到对其它软件包无意中的引用。它也可以帮助决定是否要把一个软件包分割成几个输出(@pxref{有多个输出的软件包}),以及需要使用哪些可选的依赖。特别地,避免把@code{texlive}添加为依赖:因为它太大了,请使用@code{texlive-tiny}或@code{texlive-union}代替它。"
  1462. #. type: enumerate
  1463. #: guix-git/doc/contributing.texi:1144
  1464. #, fuzzy
  1465. #| 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})."
  1466. msgid "For important changes, check that dependent packages (if applicable) are not affected by the change; @code{guix refresh --list-dependent @var{package}} will help you do that (@pxref{Invoking guix refresh})."
  1467. msgstr "对于重要的更改,确保依赖它的软件包没有受到影响。@code{guix refresh --list-dependent @var{软件包}}会帮你检查(@pxref{Invoking guix refresh})。"
  1468. #. type: cindex
  1469. #: guix-git/doc/contributing.texi:1146
  1470. #, no-wrap
  1471. msgid "branching strategy"
  1472. msgstr "分支策略"
  1473. #. type: cindex
  1474. #: guix-git/doc/contributing.texi:1147
  1475. #, no-wrap
  1476. msgid "rebuild scheduling strategy"
  1477. msgstr "重新构建的调度策略"
  1478. #. type: enumerate
  1479. #: guix-git/doc/contributing.texi:1150
  1480. msgid "Depending on the number of dependent packages and thus the amount of rebuilding induced, commits go to different branches, along these lines:"
  1481. msgstr "取决于受影响的软件包的数量,即需要重新构建的数量,commit需要被提交到不同的分支,具体如下:"
  1482. #. type: item
  1483. #: guix-git/doc/contributing.texi:1152
  1484. #, no-wrap
  1485. msgid "300 dependent packages or less"
  1486. msgstr "300个或更少的受影响的软件包"
  1487. #. type: table
  1488. #: guix-git/doc/contributing.texi:1154
  1489. msgid "@code{master} branch (non-disruptive changes)."
  1490. msgstr "@code{master}分支(非破坏性的更改)。"
  1491. #. type: item
  1492. #: guix-git/doc/contributing.texi:1155
  1493. #, no-wrap
  1494. msgid "between 300 and 1,800 dependent packages"
  1495. msgstr "300 至 1800 个受影响的软件包"
  1496. #. type: table
  1497. #: guix-git/doc/contributing.texi:1161
  1498. #, fuzzy
  1499. msgid "@code{staging} branch (non-disruptive changes). This branch is intended to be merged in @code{master} every 6 weeks or so. Topical changes (e.g., an update of the GNOME stack) can instead go to a specific branch (say, @code{gnome-updates}). This branch is not expected to be buildable or usable until late in its development process."
  1500. msgstr "@code{staging}分支(非破坏性的更改)。这个分支每隔大约3周会被合并进@code{master}。对某个主题的更改(如对GNOME系列的更新)可以放进一个特定的分支(如@code{gnome-updates})。"
  1501. #. type: item
  1502. #: guix-git/doc/contributing.texi:1162
  1503. #, no-wrap
  1504. msgid "more than 1,800 dependent packages"
  1505. msgstr "超过 1800 个受影响的软件包"
  1506. #. type: table
  1507. #: guix-git/doc/contributing.texi:1167
  1508. #, fuzzy
  1509. msgid "@code{core-updates} branch (may include major and potentially disruptive changes). This branch is intended to be merged in @code{master} every 6 months or so. This branch is not expected to be buildable or usable until late in its development process."
  1510. msgstr "@code{core-updates}分支(可能含有重要的或破坏性的更改)。这个分支每隔大约2.5个月会被合并进@code{master}。"
  1511. #. type: enumerate
  1512. #: guix-git/doc/contributing.texi:1174
  1513. #, fuzzy
  1514. #| 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."
  1515. msgid "All these branches are @uref{https://@value{SUBSTITUTE-SERVER-1}, tracked by our build farm} and merged into @code{master} once everything has been successfully built. This allows us to fix issues before they hit users, and to reduce the window during which pre-built binaries are not available."
  1516. msgstr "所有这些分支都@uref{@value{SUBSTITUTE-URL}, 被构建农场跟踪},并且当一切都被顺利构建时合并进@code{master}。这使我们在影响到用户之前就能改正问题,并且缩小没有准备好预构建的二进制包的窗口期。"
  1517. #. type: enumerate
  1518. #: guix-git/doc/contributing.texi:1183
  1519. 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."
  1520. msgstr ""
  1521. #. type: cindex
  1522. #: guix-git/doc/contributing.texi:1185
  1523. #, no-wrap
  1524. msgid "determinism, of build processes"
  1525. msgstr "构建过程的确定性"
  1526. #. type: cindex
  1527. #: guix-git/doc/contributing.texi:1186
  1528. #, no-wrap
  1529. msgid "reproducible builds, checking"
  1530. msgstr "检查可复现的构建"
  1531. #. type: enumerate
  1532. #: guix-git/doc/contributing.texi:1190
  1533. 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."
  1534. msgstr "检查软件包的构建过程是不是确定性的。这通常意味着检查对软件包的独立构建是否能得到每一个比特都完全相同的结果。"
  1535. #. type: enumerate
  1536. #: guix-git/doc/contributing.texi:1193
  1537. 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}):"
  1538. msgstr "为此,一个简单的做法是在你的机器上多次构建同一个软件包(@pxref{Invoking guix build}):"
  1539. #. type: example
  1540. #: guix-git/doc/contributing.texi:1196
  1541. #, no-wrap
  1542. msgid "guix build --rounds=2 my-package\n"
  1543. msgstr "guix build --rounds=2 <我的软件包>\n"
  1544. #. type: enumerate
  1545. #: guix-git/doc/contributing.texi:1200
  1546. msgid "This is enough to catch a class of common non-determinism issues, such as timestamps or randomly-generated output in the build result."
  1547. msgstr "这足以查出一批普通的不确定性问题,如构建结果里存在时间戳或随机生成的输出。"
  1548. #. type: enumerate
  1549. #: guix-git/doc/contributing.texi:1210
  1550. #, fuzzy
  1551. #| 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."
  1552. msgid "Another option is to use @command{guix challenge} (@pxref{Invoking guix challenge}). You may run it once the package has been committed and built by @code{@value{SUBSTITUTE-SERVER-1}} to check whether it obtains the same result as you did. Better yet: Find another machine that can build it and run @command{guix publish}. Since the remote build machine is likely different from yours, this can catch non-determinism issues related to the hardware---e.g., use of different instruction set extensions---or to the operating system kernel---e.g., reliance on @code{uname} or @file{/proc} files."
  1553. msgstr "另一个选择是使用@command{guix challenge}(@pxref{Invoking guix challenge})。当软件包被提交并且被@code{@value{SUBSTITUTE-SERVER}}构建之后,你可以运行这个命令检查你是否得到相同的构建结果。更好的:找另一台可以构建的机器,运行@command{guix publish}。由于远程的构建机器很可能和你的机器不同,这可以捕捉到由硬件不同引起的不确定性问题--如,使用不同的指令集--或不同操作系统内核引起的问题--如,对@code{uname}或@file{/proc}文件的依赖。"
  1554. #. type: enumerate
  1555. #: guix-git/doc/contributing.texi:1216
  1556. 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."
  1557. msgstr "在编写文档时,请用性别中立的词语指代人,如@uref{https://en.wikipedia.org/wiki/Singular_they, “他”@comma{} “他的”},等。"
  1558. #. type: enumerate
  1559. #: guix-git/doc/contributing.texi:1220
  1560. msgid "Verify that your patch contains only one set of related changes. Bundling unrelated changes together makes reviewing harder and slower."
  1561. msgstr "检查你的补丁只包含一些相关的更改。把不相关的更改捆绑在一起会让评审更困难和更慢。"
  1562. #. type: enumerate
  1563. #: guix-git/doc/contributing.texi:1223
  1564. msgid "Examples of unrelated changes include the addition of several packages, or a package update along with fixes to that package."
  1565. msgstr "不相关的更改的例子有:同时新增多个软件包,或更新软件包同时修补这个软件包。"
  1566. #. type: enumerate
  1567. #: guix-git/doc/contributing.texi:1228
  1568. #, fuzzy
  1569. #| 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})."
  1570. msgid "Please follow our code formatting rules, possibly running @command{guix style} script to do that automatically for you (@pxref{Formatting Code})."
  1571. msgstr "请遵守我们的代码格式规范,最好运行@command{etc/indent-code.el}脚本以自动为你格式化(@pxref{Formatting Code})。"
  1572. #. type: enumerate
  1573. #: guix-git/doc/contributing.texi:1236
  1574. 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."
  1575. msgstr "当可能时,请在源URL里使用镜像@pxref{Invoking guix download}。使用可靠的而不是生成的URL。例如,GitHub的下载文件每次生成时不一定是相同的,所以这时最好克隆仓库。不要在URL里使用@command{name}变量:这没有什么用,而且如果名字变了,URL很可能就错了。"
  1576. #. type: enumerate
  1577. #: guix-git/doc/contributing.texi:1240
  1578. msgid "Check if Guix builds (@pxref{Building from Git}) and address the warnings, especially those about use of undefined symbols."
  1579. msgstr ""
  1580. #. type: enumerate
  1581. #: guix-git/doc/contributing.texi:1243
  1582. msgid "Make sure your changes do not break Guix and simulate a @code{guix pull} with:"
  1583. msgstr ""
  1584. #. type: example
  1585. #: guix-git/doc/contributing.texi:1245
  1586. #, no-wrap
  1587. msgid "guix pull --url=/path/to/your/checkout --profile=/tmp/guix.master\n"
  1588. msgstr ""
  1589. #. type: Plain text
  1590. #: guix-git/doc/contributing.texi:1258
  1591. #, fuzzy
  1592. 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."
  1593. msgstr "在提交补丁到邮件列表时,使用@samp{[PATCH] @dots{}}做为主题。你可以使用你的邮件客户端或者@command{git send-email}命令(@pxref{Sending a Patch Series})。我们倾向于接收纯文本的邮件,无论是在正文里还是在MIME附件里。建议你注意你的邮件客户端是否会自动修改换行或缩进,这可能会损坏补丁。"
  1594. #. type: Plain text
  1595. #: guix-git/doc/contributing.texi:1263
  1596. msgid "Expect some delay when you submit your very first patch to @email{guix-patches@@gnu.org}. You have to wait until you get an acknowledgement with the assigned tracking number. Future acknowledgements should not be delayed."
  1597. msgstr ""
  1598. #. type: Plain text
  1599. #: guix-git/doc/contributing.texi:1266
  1600. msgid "When a bug is resolved, please close the thread by sending an email to @email{@var{NNN}-done@@debbugs.gnu.org}."
  1601. msgstr "当一个bug被修复时,请通过向@email{@var{NNN}-done@@debbugs.gnu.org}发邮件的方式关闭thread。"
  1602. #. type: subsection
  1603. #: guix-git/doc/contributing.texi:1267 guix-git/doc/contributing.texi:1268
  1604. #, fuzzy, no-wrap
  1605. #| msgid "Configuring the boot loader."
  1606. msgid "Configuring Git"
  1607. msgstr "设置引导程序。"
  1608. #. type: cindex
  1609. #: guix-git/doc/contributing.texi:1269
  1610. #, fuzzy, no-wrap
  1611. msgid "git configuration"
  1612. msgstr "系统配置"
  1613. #. type: code{#1}
  1614. #: guix-git/doc/contributing.texi:1271 guix-git/doc/contributing.texi:1306
  1615. #, no-wrap
  1616. msgid "git send-email"
  1617. msgstr "git send-email"
  1618. #. type: Plain text
  1619. #: guix-git/doc/contributing.texi:1279
  1620. msgid "If you have not done so already, you may wish to set a name and email that will be associated with your commits (@pxref{telling git your name, , Telling Git your name, git, Git User Manual}). If you wish to use a different name or email just for commits in this repository, you can use @command{git config --local}, or edit @file{.git/config} in the repository instead of @file{~/.gitconfig}."
  1621. msgstr ""
  1622. #. type: Plain text
  1623. #: guix-git/doc/contributing.texi:1285
  1624. msgid "We provide some default settings in @file{etc/git/gitconfig} which modify how patches are generated, making them easier to read and apply. These settings can be applied by manually copying them to @file{.git/config} in your checkout, or by telling Git to include the whole file:"
  1625. msgstr ""
  1626. #. type: example
  1627. #: guix-git/doc/contributing.texi:1288
  1628. #, no-wrap
  1629. msgid "git config --local include.path ../etc/git/gitconfig\n"
  1630. msgstr ""
  1631. #. type: Plain text
  1632. #: guix-git/doc/contributing.texi:1292
  1633. msgid "From then on, any changes to @file{etc/git/gitconfig} would automatically take effect."
  1634. msgstr ""
  1635. #. type: Plain text
  1636. #: guix-git/doc/contributing.texi:1297
  1637. msgid "Since the first patch in a series must be sent separately (@pxref{Sending a Patch Series}), it can also be helpful to tell @command{git format-patch} to handle the e-mail threading instead of @command{git send-email}:"
  1638. msgstr ""
  1639. #. type: example
  1640. #: guix-git/doc/contributing.texi:1301
  1641. #, no-wrap
  1642. msgid ""
  1643. "git config --local format.thread shallow\n"
  1644. "git config --local sendemail.thread no\n"
  1645. msgstr ""
  1646. #. type: anchor{#1}
  1647. #: guix-git/doc/contributing.texi:1303 guix-git/doc/contributing.texi:1305
  1648. #, no-wrap
  1649. msgid "Sending a Patch Series"
  1650. msgstr "发送补丁系列"
  1651. #. type: cindex
  1652. #: guix-git/doc/contributing.texi:1305
  1653. #, no-wrap
  1654. msgid "patch series"
  1655. msgstr "补丁系列"
  1656. #. type: Plain text
  1657. #: guix-git/doc/contributing.texi:1316
  1658. #, fuzzy
  1659. 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}."
  1660. msgstr "在发送补丁系列时(如,使用@code{git send-email}),请先向@email{guix-patches@@gnu.org}发送一封邮件,再把后续的补丁发送到@email{@var{NNN}@@debbugs.gnu.org},以确保他们被归在一起。见@uref{https://debbugs.gnu.org/Advanced.html, Debbugs文档}以了解更多信息。"
  1661. #. type: Plain text
  1662. #: guix-git/doc/contributing.texi:1322
  1663. msgid "This section describes how the Guix project tracks its bug reports and patch submissions."
  1664. msgstr ""
  1665. #. type: subsection
  1666. #: guix-git/doc/contributing.texi:1327 guix-git/doc/contributing.texi:1329
  1667. #: guix-git/doc/contributing.texi:1330
  1668. #, no-wrap
  1669. msgid "The Issue Tracker"
  1670. msgstr ""
  1671. #. type: menuentry
  1672. #: guix-git/doc/contributing.texi:1327
  1673. msgid "The official bug and patch tracker."
  1674. msgstr ""
  1675. #. type: subsection
  1676. #: guix-git/doc/contributing.texi:1327 guix-git/doc/contributing.texi:1343
  1677. #: guix-git/doc/contributing.texi:1344
  1678. #, fuzzy, no-wrap
  1679. #| msgid "user interfaces"
  1680. msgid "Debbugs User Interfaces"
  1681. msgstr "用户界面"
  1682. #. type: menuentry
  1683. #: guix-git/doc/contributing.texi:1327
  1684. msgid "Ways to interact with Debbugs."
  1685. msgstr ""
  1686. #. type: subsection
  1687. #: guix-git/doc/contributing.texi:1327 guix-git/doc/contributing.texi:1383
  1688. #: guix-git/doc/contributing.texi:1384
  1689. #, no-wrap
  1690. msgid "Debbugs Usertags"
  1691. msgstr ""
  1692. #. type: menuentry
  1693. #: guix-git/doc/contributing.texi:1327
  1694. msgid "Tag reports with custom labels."
  1695. msgstr ""
  1696. #. type: cindex
  1697. #: guix-git/doc/contributing.texi:1332
  1698. #, no-wrap
  1699. msgid "bug reports, tracking"
  1700. msgstr ""
  1701. #. type: cindex
  1702. #: guix-git/doc/contributing.texi:1333
  1703. #, no-wrap
  1704. msgid "patch submissions, tracking"
  1705. msgstr ""
  1706. #. type: cindex
  1707. #: guix-git/doc/contributing.texi:1334
  1708. #, no-wrap
  1709. msgid "issue tracking"
  1710. msgstr ""
  1711. #. type: cindex
  1712. #: guix-git/doc/contributing.texi:1335
  1713. #, no-wrap
  1714. msgid "Debbugs, issue tracking system"
  1715. msgstr ""
  1716. #. type: Plain text
  1717. #: guix-git/doc/contributing.texi:1342
  1718. 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})."
  1719. msgstr ""
  1720. #. type: Plain text
  1721. #: guix-git/doc/contributing.texi:1348
  1722. msgid "A web interface (actually @emph{two} web interfaces!) are available to browse issues:"
  1723. msgstr ""
  1724. #. type: itemize
  1725. #: guix-git/doc/contributing.texi:1357
  1726. 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;"
  1727. msgstr ""
  1728. #. type: itemize
  1729. #: guix-git/doc/contributing.texi:1359
  1730. #, fuzzy
  1731. msgid "@url{https://bugs.gnu.org/guix} lists bug reports;"
  1732. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  1733. #. type: itemize
  1734. #: guix-git/doc/contributing.texi:1361
  1735. msgid "@url{https://bugs.gnu.org/guix-patches} lists patch submissions."
  1736. msgstr ""
  1737. #. type: Plain text
  1738. #: guix-git/doc/contributing.texi:1366
  1739. 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}}."
  1740. msgstr ""
  1741. #. type: Plain text
  1742. #: guix-git/doc/contributing.texi:1369
  1743. msgid "If you use Emacs, you may find it more convenient to interact with issues using @file{debbugs.el}, which you can install with:"
  1744. msgstr ""
  1745. #. type: example
  1746. #: guix-git/doc/contributing.texi:1372
  1747. #, fuzzy, no-wrap
  1748. msgid "guix install emacs-debbugs\n"
  1749. msgstr "guix install emacs-guix\n"
  1750. #. type: Plain text
  1751. #: guix-git/doc/contributing.texi:1375
  1752. msgid "For example, to list all open issues on @code{guix-patches}, hit:"
  1753. msgstr ""
  1754. #. type: example
  1755. #: guix-git/doc/contributing.texi:1378
  1756. #, no-wrap
  1757. msgid "@kbd{C-u} @kbd{M-x} debbugs-gnu @kbd{RET} @kbd{RET} guix-patches @kbd{RET} n y\n"
  1758. msgstr ""
  1759. #. type: Plain text
  1760. #: guix-git/doc/contributing.texi:1382
  1761. #, fuzzy
  1762. msgid "@xref{Top,,, debbugs-ug, Debbugs User Guide}, for more information on this nifty tool!"
  1763. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  1764. #. type: cindex
  1765. #: guix-git/doc/contributing.texi:1386
  1766. #, no-wrap
  1767. msgid "usertags, for debbugs"
  1768. msgstr ""
  1769. #. type: cindex
  1770. #: guix-git/doc/contributing.texi:1387
  1771. #, no-wrap
  1772. msgid "Debbugs usertags"
  1773. msgstr ""
  1774. #. type: Plain text
  1775. #: guix-git/doc/contributing.texi:1393
  1776. msgid "Debbugs provides a feature called @dfn{usertags} that allows any user to tag any bug with an arbitrary label. Bugs can be searched by usertag, so this is a handy way to organize bugs@footnote{The list of usertags is public information, and anyone can modify any user's list of usertags, so keep that in mind if you choose to use this feature.}."
  1777. msgstr ""
  1778. #. type: Plain text
  1779. #: guix-git/doc/contributing.texi:1399
  1780. msgid "For example, to view all the bug reports (or patches, in the case of @code{guix-patches}) tagged with the usertag @code{powerpc64le-linux} for the user @code{guix}, open a URL like the following in a web browser: @url{https://debbugs.gnu.org/cgi-bin/pkgreport.cgi?tag=powerpc64le-linux;users=guix}."
  1781. msgstr ""
  1782. #. type: Plain text
  1783. #: guix-git/doc/contributing.texi:1403
  1784. msgid "For more information on how to use usertags, please refer to the documentation for Debbugs or the documentation for whatever tool you use to interact with Debbugs."
  1785. msgstr ""
  1786. #. type: Plain text
  1787. #: guix-git/doc/contributing.texi:1408
  1788. msgid "In Guix, we are experimenting with usertags to keep track of architecture-specific issues. To facilitate collaboration, all our usertags are associated with the single user @code{guix}. The following usertags currently exist for that user:"
  1789. msgstr ""
  1790. #. type: item
  1791. #: guix-git/doc/contributing.texi:1411 guix-git/doc/guix.texi:557
  1792. #, fuzzy, no-wrap
  1793. msgid "powerpc64le-linux"
  1794. msgstr "aarch64-linux"
  1795. #. type: table
  1796. #: guix-git/doc/contributing.texi:1419
  1797. msgid "The purpose of this usertag is to make it easy to find the issues that matter most for the @code{powerpc64le-linux} system type. Please assign this usertag to bugs or patches that affect @code{powerpc64le-linux} but not other system types. In addition, you may use it to identify issues that for some reason are particularly important for the @code{powerpc64le-linux} system type, even if the issue affects other system types, too."
  1798. msgstr ""
  1799. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  1800. #. type: item
  1801. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  1802. #. type: cindex
  1803. #: guix-git/doc/contributing.texi:1420 guix-git/doc/guix.texi:3103
  1804. #: guix-git/doc/guix.texi:4809
  1805. #, no-wrap
  1806. msgid "reproducibility"
  1807. msgstr ""
  1808. #. type: table
  1809. #: guix-git/doc/contributing.texi:1424
  1810. msgid "For issues related to reproducibility. For example, it would be appropriate to assign this usertag to a bug report for a package that fails to build reproducibly."
  1811. msgstr ""
  1812. #. type: Plain text
  1813. #: guix-git/doc/contributing.texi:1431
  1814. msgid "If you're a committer and you want to add a usertag, just start using it with the @code{guix} user. If the usertag proves useful to you, consider updating this section of the manual so that others will know what your usertag means."
  1815. msgstr ""
  1816. #. type: cindex
  1817. #: guix-git/doc/contributing.texi:1435
  1818. #, no-wrap
  1819. msgid "commit access, for developers"
  1820. msgstr ""
  1821. #. type: Plain text
  1822. #: guix-git/doc/contributing.texi:1446
  1823. msgid "Everyone can contribute to Guix without having commit access (@pxref{Submitting Patches}). However, for frequent contributors, having write access to the repository can be convenient. As a rule of thumb, a contributor should have accumulated fifty (50) reviewed commits to be considered as a committer and have sustained their activity in the project for at least 6 months. This ensures enough interactions with the contributor, which is essential for mentoring and assessing whether they are ready to become a committer. Commit access should not be thought of as a ``badge of honor'' but rather as a responsibility a contributor is willing to take to help the project."
  1824. msgstr ""
  1825. #. type: Plain text
  1826. #: guix-git/doc/contributing.texi:1450
  1827. msgid "The following sections explain how to get commit access, how to be ready to push commits, and the policies and community expectations for commits pushed upstream."
  1828. msgstr ""
  1829. #. type: subsection
  1830. #: guix-git/doc/contributing.texi:1451
  1831. #, fuzzy, no-wrap
  1832. #| msgid "Commit Access"
  1833. msgid "Applying for Commit Access"
  1834. msgstr "提交权利"
  1835. #. type: Plain text
  1836. #: guix-git/doc/contributing.texi:1455
  1837. msgid "When you deem it necessary, consider applying for commit access by following these steps:"
  1838. msgstr ""
  1839. #. type: enumerate
  1840. #: guix-git/doc/contributing.texi:1464
  1841. 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."
  1842. msgstr ""
  1843. #. type: enumerate
  1844. #: guix-git/doc/contributing.texi:1470
  1845. 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''."
  1846. msgstr ""
  1847. #. type: enumerate
  1848. #: guix-git/doc/contributing.texi:1477
  1849. 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."
  1850. msgstr ""
  1851. #. type: enumerate
  1852. #: guix-git/doc/contributing.texi:1483
  1853. 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}):"
  1854. msgstr ""
  1855. #. type: example
  1856. #: guix-git/doc/contributing.texi:1486
  1857. #, no-wrap
  1858. msgid "digest-algo sha512\n"
  1859. msgstr ""
  1860. #. type: enumerate
  1861. #: guix-git/doc/contributing.texi:1491
  1862. msgid "Maintainers ultimately decide whether to grant you commit access, usually following your referrals' recommendation."
  1863. msgstr ""
  1864. #. type: cindex
  1865. #: guix-git/doc/contributing.texi:1493
  1866. #, no-wrap
  1867. msgid "OpenPGP, signed commits"
  1868. msgstr ""
  1869. #. type: enumerate
  1870. #: guix-git/doc/contributing.texi:1498
  1871. 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."
  1872. msgstr ""
  1873. #. type: quotation
  1874. #: guix-git/doc/contributing.texi:1499 guix-git/doc/guix.texi:18459
  1875. #, no-wrap
  1876. msgid "Important"
  1877. msgstr ""
  1878. #. type: quotation
  1879. #: guix-git/doc/contributing.texi:1501
  1880. msgid "Before you can push for the first time, maintainers must:"
  1881. msgstr ""
  1882. #. type: enumerate
  1883. #: guix-git/doc/contributing.texi:1505
  1884. msgid "add your OpenPGP key to the @code{keyring} branch;"
  1885. msgstr ""
  1886. #. type: enumerate
  1887. #: guix-git/doc/contributing.texi:1508
  1888. msgid "add your OpenPGP fingerprint to the @file{.guix-authorizations} file of the branch(es) you will commit to."
  1889. msgstr ""
  1890. #. type: enumerate
  1891. #: guix-git/doc/contributing.texi:1513
  1892. msgid "Make sure to read the rest of this section and... profit!"
  1893. msgstr ""
  1894. #. type: quotation
  1895. #: guix-git/doc/contributing.texi:1519
  1896. 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!"
  1897. msgstr ""
  1898. #. type: quotation
  1899. #: guix-git/doc/contributing.texi:1523
  1900. 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!"
  1901. msgstr ""
  1902. #. type: Plain text
  1903. #: guix-git/doc/contributing.texi:1530
  1904. 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:"
  1905. msgstr ""
  1906. #. type: example
  1907. #: guix-git/doc/contributing.texi:1533
  1908. #, no-wrap
  1909. msgid ""
  1910. "git config commit.gpgsign true\n"
  1911. "\n"
  1912. msgstr ""
  1913. #. type: example
  1914. #: guix-git/doc/contributing.texi:1536
  1915. #, no-wrap
  1916. msgid ""
  1917. "# Substitute the fingerprint of your public PGP key.\n"
  1918. "git config user.signingkey CABBA6EA1DC0FF33\n"
  1919. msgstr ""
  1920. #. type: Plain text
  1921. #: guix-git/doc/contributing.texi:1541
  1922. msgid "You can prevent yourself from accidentally pushing unsigned commits to Savannah by using the pre-push Git hook located at @file{etc/git/pre-push}:"
  1923. msgstr ""
  1924. #. type: example
  1925. #: guix-git/doc/contributing.texi:1544
  1926. #, no-wrap
  1927. msgid "cp etc/git/pre-push .git/hooks/pre-push\n"
  1928. msgstr ""
  1929. #. type: subsection
  1930. #: guix-git/doc/contributing.texi:1546
  1931. #, fuzzy, no-wrap
  1932. #| msgid "Commit Access"
  1933. msgid "Commit Policy"
  1934. msgstr "提交权利"
  1935. #. type: Plain text
  1936. #: guix-git/doc/contributing.texi:1551
  1937. 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})."
  1938. msgstr ""
  1939. #. type: Plain text
  1940. #: guix-git/doc/contributing.texi:1556
  1941. 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})."
  1942. msgstr ""
  1943. #. type: Plain text
  1944. #: guix-git/doc/contributing.texi:1565
  1945. 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}."
  1946. msgstr ""
  1947. #. type: Plain text
  1948. #: guix-git/doc/contributing.texi:1570
  1949. 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."
  1950. msgstr ""
  1951. #. type: Plain text
  1952. #: guix-git/doc/contributing.texi:1574
  1953. 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:"
  1954. msgstr ""
  1955. #. type: example
  1956. #: guix-git/doc/contributing.texi:1577
  1957. #, fuzzy, no-wrap
  1958. msgid "make check-channel-news\n"
  1959. msgstr "make check\n"
  1960. #. type: Plain text
  1961. #: guix-git/doc/contributing.texi:1583
  1962. 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."
  1963. msgstr ""
  1964. #. type: Plain text
  1965. #: guix-git/doc/contributing.texi:1586
  1966. msgid "That last part is subject to being adjusted, allowing individuals to commit directly on non-controversial changes on parts they’re familiar with."
  1967. msgstr ""
  1968. #. type: subsection
  1969. #: guix-git/doc/contributing.texi:1587
  1970. #, no-wrap
  1971. msgid "Addressing Issues"
  1972. msgstr ""
  1973. #. type: Plain text
  1974. #: guix-git/doc/contributing.texi:1598
  1975. msgid "Peer review (@pxref{Submitting Patches}) and tools such as @command{guix lint} (@pxref{Invoking guix lint}) and the test suite (@pxref{Running the Test Suite}) should catch issues before they are pushed. Yet, commits that ``break'' functionality might occasionally go through. When that happens, there are two priorities: mitigating the impact, and understanding what happened to reduce the chance of similar incidents in the future. The responsibility for both these things primarily lies with those involved, but like everything this is a group effort."
  1976. msgstr ""
  1977. #. type: Plain text
  1978. #: guix-git/doc/contributing.texi:1603
  1979. msgid "Some issues can directly affect all users---for instance because they make @command{guix pull} fail or break core functionality, because they break major packages (at build time or run time), or because they introduce known security vulnerabilities."
  1980. msgstr ""
  1981. #. type: cindex
  1982. #: guix-git/doc/contributing.texi:1604
  1983. #, no-wrap
  1984. msgid "reverting commits"
  1985. msgstr ""
  1986. #. type: Plain text
  1987. #: guix-git/doc/contributing.texi:1610
  1988. msgid "The people involved in authoring, reviewing, and pushing such commit(s) should be at the forefront to mitigate their impact in a timely fashion: by pushing a followup commit to fix it (if possible), or by reverting it to leave time to come up with a proper fix, and by communicating with other developers about the problem."
  1989. msgstr ""
  1990. #. type: Plain text
  1991. #: guix-git/doc/contributing.texi:1616
  1992. msgid "If these persons are unavailable to address the issue in time, other committers are entitled to revert the commit(s), explaining in the commit log and on the mailing list what the problem was, with the goal of leaving time to the original committer, reviewer(s), and author(s) to propose a way forward."
  1993. msgstr ""
  1994. #. type: Plain text
  1995. #: guix-git/doc/contributing.texi:1625
  1996. msgid "Once the problem has been dealt with, it is the responsibility of those involved to make sure the situation is understood. If you are working to understand what happened, focus on gathering information and avoid assigning any blame. Do ask those involved to describe what happened, do not ask them to explain the situation---this would implicitly blame them, which is unhelpful. Accountability comes from a consensus about the problem, learning from it and improving processes so that it's less likely to reoccur."
  1997. msgstr ""
  1998. #. type: subsection
  1999. #: guix-git/doc/contributing.texi:1626
  2000. #, fuzzy, no-wrap
  2001. #| msgid "Log Rotation"
  2002. msgid "Commit Revocation"
  2003. msgstr "日志轮替"
  2004. #. type: Plain text
  2005. #: guix-git/doc/contributing.texi:1633
  2006. 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."
  2007. msgstr ""
  2008. #. type: Plain text
  2009. #: guix-git/doc/contributing.texi:1643
  2010. msgid "Maintainers@footnote{See @uref{https://guix.gnu.org/en/about} for the current list of maintainers. You can email them privately at @email{guix-maintainers@@gnu.org}.} may also revoke an individual's commit rights, as a last resort, if cooperation with the rest of the community has caused too much friction---even within the bounds of the project's code of conduct (@pxref{Contributing}). They would only do so after public or private discussion with the individual and a clear notice. Examples of behavior that hinders cooperation and could lead to such a decision include:"
  2011. msgstr ""
  2012. #. type: item
  2013. #: guix-git/doc/contributing.texi:1645
  2014. #, no-wrap
  2015. msgid "repeated violation of the commit policy stated above;"
  2016. msgstr ""
  2017. #. type: item
  2018. #: guix-git/doc/contributing.texi:1646
  2019. #, no-wrap
  2020. msgid "repeated failure to take peer criticism into account;"
  2021. msgstr ""
  2022. #. type: item
  2023. #: guix-git/doc/contributing.texi:1647
  2024. #, no-wrap
  2025. msgid "breaching trust through a series of grave incidents."
  2026. msgstr ""
  2027. #. type: Plain text
  2028. #: guix-git/doc/contributing.texi:1654
  2029. msgid "When maintainers resort to such a decision, they notify developers on @email{guix-devel@@gnu.org}; inquiries may be sent to @email{guix-maintainers@@gnu.org}. Depending on the situation, the individual may still be welcome to contribute."
  2030. msgstr ""
  2031. #. type: subsection
  2032. #: guix-git/doc/contributing.texi:1655
  2033. #, no-wrap
  2034. msgid "Helping Out"
  2035. msgstr ""
  2036. #. type: Plain text
  2037. #: guix-git/doc/contributing.texi:1662
  2038. 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!"
  2039. msgstr ""
  2040. #. type: cindex
  2041. #: guix-git/doc/contributing.texi:1666
  2042. #, fuzzy, no-wrap
  2043. msgid "update-guix-package, updating the guix package"
  2044. msgstr "guix package:调用guix package"
  2045. #. type: Plain text
  2046. #: guix-git/doc/contributing.texi:1672
  2047. 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:"
  2048. msgstr ""
  2049. #. type: example
  2050. #: guix-git/doc/contributing.texi:1675
  2051. #, no-wrap
  2052. msgid "make update-guix-package\n"
  2053. msgstr ""
  2054. #. type: Plain text
  2055. #: guix-git/doc/contributing.texi:1682
  2056. 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."
  2057. msgstr ""
  2058. #. type: Plain text
  2059. #: guix-git/doc/contributing.texi:1686
  2060. 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:"
  2061. msgstr ""
  2062. #. type: example
  2063. #: guix-git/doc/contributing.texi:1689
  2064. #, fuzzy, no-wrap
  2065. msgid "./pre-inst-env guix build guix\n"
  2066. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  2067. #. type: Plain text
  2068. #: guix-git/doc/contributing.texi:1694
  2069. 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."
  2070. msgstr ""
  2071. #. type: Plain text
  2072. #: guix-git/doc/contributing.texi:1699
  2073. 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."
  2074. msgstr ""
  2075. #. type: cindex
  2076. #: guix-git/doc/contributing.texi:1700
  2077. #, fuzzy, no-wrap
  2078. #| msgid "isolation"
  2079. msgid "translation"
  2080. msgstr "隔离"
  2081. #. type: cindex
  2082. #: guix-git/doc/contributing.texi:1701
  2083. #, no-wrap
  2084. msgid "l10n"
  2085. msgstr ""
  2086. #. type: cindex
  2087. #: guix-git/doc/contributing.texi:1702
  2088. #, no-wrap
  2089. msgid "i18n"
  2090. msgstr ""
  2091. #. type: cindex
  2092. #: guix-git/doc/contributing.texi:1703
  2093. #, no-wrap
  2094. msgid "native language support"
  2095. msgstr ""
  2096. #. type: Plain text
  2097. #: guix-git/doc/contributing.texi:1713
  2098. msgid "Writing code and packages is not the only way to provide a meaningful contribution to Guix. Translating to a language you speak is another example of a valuable contribution you can make. This section is designed to describe the translation process. It gives you advice on how you can get involved, what can be translated, what mistakes you should avoid and what we can do to help you!"
  2099. msgstr ""
  2100. #. type: Plain text
  2101. #: guix-git/doc/contributing.texi:1719
  2102. msgid "Guix is a big project that has multiple components that can be translated. We coordinate the translation effort on a @uref{https://translate.fedoraproject.org/projects/guix/,Weblate instance} hosted by our friends at Fedora. You will need an account to submit translations."
  2103. msgstr ""
  2104. #. type: Plain text
  2105. #: guix-git/doc/contributing.texi:1726
  2106. msgid "Some of the software packaged in Guix also contain translations. We do not host a translation platform for them. If you want to translate a package provided by Guix, you should contact their developers or find the information on their website. As an example, you can find the homepage of the @code{hello} package by typing @code{guix show hello}. On the ``homepage'' line, you will see @url{https://www.gnu.org/software/hello/} as the homepage."
  2107. msgstr ""
  2108. #. type: Plain text
  2109. #: guix-git/doc/contributing.texi:1731
  2110. msgid "Many GNU and non-GNU packages can be translated on the @uref{https://translationproject.org,Translation Project}. Some projects with multiple components have their own platform. For instance, GNOME has its own platform, @uref{https://l10n.gnome.org/,Damned Lies}."
  2111. msgstr ""
  2112. #. type: Plain text
  2113. #: guix-git/doc/contributing.texi:1733
  2114. msgid "Guix has five components hosted on Weblate."
  2115. msgstr ""
  2116. #. type: item
  2117. #: guix-git/doc/contributing.texi:1735
  2118. #, no-wrap
  2119. msgid "@code{guix} contains all the strings from the Guix software (the"
  2120. msgstr ""
  2121. #. type: itemize
  2122. #: guix-git/doc/contributing.texi:1737
  2123. msgid "guided system installer, the package manager, etc), excluding packages."
  2124. msgstr ""
  2125. #. type: item
  2126. #: guix-git/doc/contributing.texi:1737
  2127. #, no-wrap
  2128. msgid "@code{packages} contains the synopsis (single-sentence description"
  2129. msgstr ""
  2130. #. type: itemize
  2131. #: guix-git/doc/contributing.texi:1739
  2132. msgid "of a package) and description (longer description) of packages in Guix."
  2133. msgstr ""
  2134. #. type: item
  2135. #: guix-git/doc/contributing.texi:1739
  2136. #, no-wrap
  2137. msgid "@code{website} contains the official Guix website, except for"
  2138. msgstr ""
  2139. #. type: itemize
  2140. #: guix-git/doc/contributing.texi:1741
  2141. msgid "blog posts and multimedia content."
  2142. msgstr ""
  2143. #. type: item
  2144. #: guix-git/doc/contributing.texi:1741
  2145. #, no-wrap
  2146. msgid "@code{documentation-manual} corresponds to this manual."
  2147. msgstr ""
  2148. #. type: item
  2149. #: guix-git/doc/contributing.texi:1742
  2150. #, no-wrap
  2151. msgid "@code{documentation-cookbook} is the component for the cookbook."
  2152. msgstr ""
  2153. #. type: subsubheading
  2154. #: guix-git/doc/contributing.texi:1745
  2155. #, no-wrap
  2156. msgid "General Directions"
  2157. msgstr ""
  2158. #. type: Plain text
  2159. #: guix-git/doc/contributing.texi:1753
  2160. msgid "Once you get an account, you should be able to select a component from @uref{https://translate.fedoraproject.org/projects/guix/,the guix project}, and select a language. If your language does not appear in the list, go to the bottom and click on the ``Start new translation'' button. Select the language you want to translate to from the list, to start your new translation."
  2161. msgstr ""
  2162. #. type: Plain text
  2163. #: guix-git/doc/contributing.texi:1758
  2164. msgid "Like lots of other free software packages, Guix uses @uref{https://www.gnu.org/software/gettext,GNU Gettext} for its translations, with which translatable strings are extracted from the source code to so-called PO files."
  2165. msgstr ""
  2166. #. type: Plain text
  2167. #: guix-git/doc/contributing.texi:1769
  2168. msgid "Even though PO files are text files, changes should not be made with a text editor but with PO editing software. Weblate integrates PO editing functionality. Alternatively, translators can use any of various free-software tools for filling in translations, of which @uref{https://poedit.net/,Poedit} is one example, and (after logging in) @uref{https://docs.weblate.org/en/latest/user/files.html,upload} the changed file. There is also a special @uref{https://www.emacswiki.org/emacs/PoMode,PO editing mode} for users of GNU Emacs. Over time translators find out what software they are happy with and what features they need."
  2169. msgstr ""
  2170. #. type: Plain text
  2171. #: guix-git/doc/contributing.texi:1774
  2172. msgid "On Weblate, you will find various links to the editor, that will show various subsets (or all) of the strings. Have a look around and at the @uref{https://docs.weblate.org/en/latest/,documentation} to familiarize yourself with the platform."
  2173. msgstr ""
  2174. #. type: subsubheading
  2175. #: guix-git/doc/contributing.texi:1775
  2176. #, no-wrap
  2177. msgid "Translation Components"
  2178. msgstr ""
  2179. #. type: Plain text
  2180. #: guix-git/doc/contributing.texi:1780
  2181. msgid "In this section, we provide more detailed guidance on the translation process, as well as details on what you should or should not do. When in doubt, please contact us, we will be happy to help!"
  2182. msgstr ""
  2183. #. type: item
  2184. #: guix-git/doc/contributing.texi:1782 guix-git/doc/guix.texi:9838
  2185. #, no-wrap
  2186. msgid "guix"
  2187. msgstr ""
  2188. #. type: table
  2189. #: guix-git/doc/contributing.texi:1787
  2190. msgid "Guix is written in the Guile programming language, and some strings contain special formatting that is interpreted by Guile. These special formatting should be highlighted by Weblate. They start with @code{~} followed by one or more characters."
  2191. msgstr ""
  2192. #. type: table
  2193. #: guix-git/doc/contributing.texi:1796
  2194. msgid "When printing the string, Guile replaces the special formatting symbols with actual values. For instance, the string @samp{ambiguous package specification `~a'} would be substituted to contain said package specification instead of @code{~a}. To properly translate this string, you must keep the formatting code in your translation, although you can place it where it makes sense in your language. For instance, the French translation says @samp{spécification du paquet « ~a » ambiguë} because the adjective needs to be placed in the end of the sentence."
  2195. msgstr ""
  2196. #. type: table
  2197. #: guix-git/doc/contributing.texi:1800
  2198. msgid "If there are multiple formatting symbols, make sure to respect the order. Guile does not know in which order you intended the string to be read, so it will substitute the symbols in the same order as the English sentence."
  2199. msgstr ""
  2200. #. type: table
  2201. #: guix-git/doc/contributing.texi:1808
  2202. msgid "As an example, you cannot translate @samp{package '~a' has been superseded by '~a'} by @samp{'~a' superseeds package '~a'}, because the meaning would be reversed. If @var{foo} is superseded by @var{bar}, the translation would read @samp{'foo' superseeds package 'bar'}. To work around this problem, it is possible to use more advanced formatting to select a given piece of data, instead of following the default English order. @xref{Formatted Output,,, guile, GNU Guile Reference Manual}, for more information on formatting in Guile."
  2203. msgstr ""
  2204. #. #-#-#-#-# contributing.pot (guix manual checkout) #-#-#-#-#
  2205. #. type: item
  2206. #. #-#-#-#-# guix.pot (guix manual checkout) #-#-#-#-#
  2207. #. type: cindex
  2208. #: guix-git/doc/contributing.texi:1809 guix-git/doc/guix.texi:3021
  2209. #, no-wrap
  2210. msgid "packages"
  2211. msgstr ""
  2212. #. type: table
  2213. #: guix-git/doc/contributing.texi:1814
  2214. msgid "Package descriptions occasionally contain Texinfo markup (@pxref{Synopses and Descriptions}). Texinfo markup looks like @samp{@@code@{rm -rf@}}, @samp{@@emph@{important@}}, etc. When translating, please leave markup as is."
  2215. msgstr ""
  2216. #. type: table
  2217. #: guix-git/doc/contributing.texi:1823
  2218. msgid "The characters after ``@@'' form the name of the markup, and the text between ``@{'' and ``@}'' is its content. In general, you should not translate the content of markup like @code{@@code}, as it contains literal code that do not change with language. You can translate the content of formatting markup such as @code{@@emph}, @code{@@i}, @code{@@itemize}, @code{@@item}. However, do not translate the name of the markup, or it will not be recognized. Do not translate the word after @code{@@end}, it is the name of the markup that is closed at this position (e.g.@: @code{@@itemize ... @@end itemize})."
  2219. msgstr ""
  2220. #. type: item
  2221. #: guix-git/doc/contributing.texi:1824
  2222. #, no-wrap
  2223. msgid "documentation-manual and documentation-cookbook"
  2224. msgstr ""
  2225. #. type: table
  2226. #: guix-git/doc/contributing.texi:1828
  2227. msgid "The first step to ensure a successful translation of the manual is to find and translate the following strings @emph{first}:"
  2228. msgstr ""
  2229. #. type: item
  2230. #: guix-git/doc/contributing.texi:1830
  2231. #, no-wrap
  2232. msgid "@code{version.texi}: Translate this string as @code{version-xx.texi},"
  2233. msgstr ""
  2234. #. type: itemize
  2235. #: guix-git/doc/contributing.texi:1833
  2236. msgid "where @code{xx} is your language code (the one shown in the URL on weblate)."
  2237. msgstr ""
  2238. #. type: item
  2239. #: guix-git/doc/contributing.texi:1833
  2240. #, no-wrap
  2241. msgid "@code{contributing.texi}: Translate this string as"
  2242. msgstr ""
  2243. #. type: itemize
  2244. #: guix-git/doc/contributing.texi:1835
  2245. msgid "@code{contributing.xx.texi}, where @code{xx} is the same language code."
  2246. msgstr ""
  2247. #. type: item
  2248. #: guix-git/doc/contributing.texi:1835
  2249. #, no-wrap
  2250. msgid "@code{Top}: Do not translate this string, it is important for Texinfo."
  2251. msgstr ""
  2252. #. type: itemize
  2253. #: guix-git/doc/contributing.texi:1838
  2254. msgid "If you translate it, the document will be empty (missing a Top node). Please look for it, and register @code{Top} as its translation."
  2255. msgstr ""
  2256. #. type: table
  2257. #: guix-git/doc/contributing.texi:1843
  2258. msgid "Translating these strings first ensure we can include your translation in the guix repository without breaking the make process or the @command{guix pull} machinery."
  2259. msgstr ""
  2260. #. type: table
  2261. #: guix-git/doc/contributing.texi:1850
  2262. msgid "The manual and the cookbook both use Texinfo. As for @code{packages}, please keep Texinfo markup as is. There are more possible markup types in the manual than in the package descriptions. In general, do not translate the content of @code{@@code}, @code{@@file}, @code{@@var}, @code{@@value}, etc. You should translate the content of formatting markup such as @code{@@emph}, @code{@@i}, etc."
  2263. msgstr ""
  2264. #. type: table
  2265. #: guix-git/doc/contributing.texi:1858
  2266. msgid "The manual contains sections that can be referred to by name by @code{@@ref}, @code{@@xref} and @code{@@pxref}. We have a mechanism in place so you do not have to translate their content. If you keep the English title, we will automatically replace it with your translation of that title. This ensures that Texinfo will always be able to find the node. If you decide to change the translation of the title, the references will automatically be updated and you will not have to update them all yourself."
  2267. msgstr ""
  2268. #. type: table
  2269. #: guix-git/doc/contributing.texi:1868
  2270. msgid "When translating references from the cookbook to the manual, you need to replace the name of the manual and the name of the section. For instance, to translate @code{@@pxref@{Defining Packages,,, guix, GNU Guix Reference Manual@}}, you would replace @code{Defining Packages} with the title of that section in the translated manual @emph{only} if that title is translated. If the title is not translated in your language yet, do not translate it here, or the link will be broken. Replace @code{guix} with @code{guix.xx} where @code{xx} is your language code. @code{GNU Guix Reference Manual} is the text of the link. You can translate it however you wish."
  2271. msgstr ""
  2272. #. type: item
  2273. #: guix-git/doc/contributing.texi:1869
  2274. #, fuzzy, no-wrap
  2275. #| msgid "official website"
  2276. msgid "website"
  2277. msgstr "官方网站"
  2278. #. type: table
  2279. #: guix-git/doc/contributing.texi:1876
  2280. msgid "The website pages are written using SXML, an s-expression version of HTML, the basic language of the web. We have a process to extract translatable strings from the source, and replace complex s-expressions with a more familiar XML markup, where each markup is numbered. Translators can arbitrarily change the ordering, as in the following example."
  2281. msgstr ""
  2282. #. type: example
  2283. #: guix-git/doc/contributing.texi:1883
  2284. #, no-wrap
  2285. msgid ""
  2286. "#. TRANSLATORS: Defining Packages is a section name\n"
  2287. "#. in the English (en) manual.\n"
  2288. "#: apps/base/templates/about.scm:64\n"
  2289. "msgid \"Packages are <1>defined<1.1>en</1.1><1.2>Defining-Packages.html</1.2></1> as native <2>Guile</2> modules.\"\n"
  2290. "msgstr \"Pakete werden als reine <2>Guile</2>-Module <1>definiert<1.1>de</1.1><1.2>Pakete-definieren.html</1.2></1>.\"\n"
  2291. msgstr ""
  2292. #. type: table
  2293. #: guix-git/doc/contributing.texi:1886
  2294. msgid "Note that you need to include the same markups. You cannot skip any."
  2295. msgstr ""
  2296. #. type: Plain text
  2297. #: guix-git/doc/contributing.texi:1894
  2298. msgid "In case you make a mistake, the component might fail to build properly with your language, or even make guix pull fail. To prevent that, we have a process in place to check the content of the files before pushing to our repository. We will not be able to update the translation for your language in Guix, so we will notify you (through weblate and/or by email) so you get a chance to fix the issue."
  2299. msgstr ""
  2300. #. type: subsubheading
  2301. #: guix-git/doc/contributing.texi:1895
  2302. #, no-wrap
  2303. msgid "Outside of Weblate"
  2304. msgstr ""
  2305. #. type: Plain text
  2306. #: guix-git/doc/contributing.texi:1898
  2307. msgid "Currently, some parts of Guix cannot be translated on Weblate, help wanted!"
  2308. msgstr ""
  2309. #. type: item
  2310. #: guix-git/doc/contributing.texi:1900
  2311. #, no-wrap
  2312. msgid "@command{guix pull} news can be translated in @file{news.scm}, but is not"
  2313. msgstr ""
  2314. #. type: itemize
  2315. #: guix-git/doc/contributing.texi:1906
  2316. msgid "available from Weblate. If you want to provide a translation, you can prepare a patch as described above, or simply send us your translation with the name of the news entry you translated and your language. @xref{Writing Channel News}, for more information about channel news."
  2317. msgstr ""
  2318. #. type: item
  2319. #: guix-git/doc/contributing.texi:1906
  2320. #, no-wrap
  2321. msgid "Guix blog posts cannot currently be translated."
  2322. msgstr ""
  2323. #. type: item
  2324. #: guix-git/doc/contributing.texi:1907
  2325. #, no-wrap
  2326. msgid "The installer script (for foreign distributions) is entirely in English."
  2327. msgstr ""
  2328. #. type: item
  2329. #: guix-git/doc/contributing.texi:1908
  2330. #, no-wrap
  2331. msgid "Some of the libraries Guix uses cannot be translated or are translated"
  2332. msgstr ""
  2333. #. type: itemize
  2334. #: guix-git/doc/contributing.texi:1910
  2335. msgid "outside of the Guix project. Guile itself is not internationalized."
  2336. msgstr ""
  2337. #. type: item
  2338. #: guix-git/doc/contributing.texi:1910
  2339. #, no-wrap
  2340. msgid "Other manuals linked from this manual or the cookbook might not be"
  2341. msgstr ""
  2342. #. type: itemize
  2343. #: guix-git/doc/contributing.texi:1912
  2344. msgid "translated."
  2345. msgstr ""
  2346. #. type: subsubheading
  2347. #: guix-git/doc/contributing.texi:1914
  2348. #, no-wrap
  2349. msgid "Translation Infrastructure"
  2350. msgstr ""
  2351. #. type: Plain text
  2352. #: guix-git/doc/contributing.texi:1925
  2353. msgid "Weblate is backed by a git repository from which it discovers new strings to translate and pushes new and updated translations. Normally, it would be enough to give it commit access to our repositories. However, we decided to use a separate repository for two reasons. First, we would have to give Weblate commit access and authorize its signing key, but we do not trust it in the same way we trust guix developers, especially since we do not manage the instance ourselves. Second, if translators mess something up, it can break the generation of the website and/or guix pull for all our users, independently of their language."
  2354. msgstr ""
  2355. #. type: Plain text
  2356. #: guix-git/doc/contributing.texi:1929
  2357. msgid "For these reasons, we use a dedicated repository to host translations, and we synchronize it with our guix and artworks repositories after checking no issue was introduced in the translation."
  2358. msgstr ""
  2359. #. type: Plain text
  2360. #: guix-git/doc/contributing.texi:1935
  2361. msgid "Developers can download the latest PO files from weblate in the Guix repository by running the @command{make download-po} command. It will automatically download the latest files from weblate, reformat them to a canonical form, and check they do not contain issues. The manual needs to be built again to check for additional issues that might crash Texinfo."
  2362. msgstr ""
  2363. #. type: Plain text
  2364. #: guix-git/doc/contributing.texi:1939
  2365. msgid "Before pushing new translation files, developers should add them to the make machinery so the translations are actually available. The process differs for the various components."
  2366. msgstr ""
  2367. #. type: item
  2368. #: guix-git/doc/contributing.texi:1941
  2369. #, no-wrap
  2370. msgid "New po files for the @code{guix} and @code{packages} components must"
  2371. msgstr ""
  2372. #. type: itemize
  2373. #: guix-git/doc/contributing.texi:1944
  2374. msgid "be registered by adding the new language to @file{po/guix/LINGUAS} or @file{po/packages/LINGUAS}."
  2375. msgstr ""
  2376. #. type: item
  2377. #: guix-git/doc/contributing.texi:1944
  2378. #, no-wrap
  2379. msgid "New po files for the @code{documentation-manual} component must be"
  2380. msgstr ""
  2381. #. type: itemize
  2382. #: guix-git/doc/contributing.texi:1950
  2383. msgid "registered by adding the file name to @code{DOC_PO_FILES} in @file{po/doc/local.mk}, the generated @file{%D%/guix.xx.texi} manual to @code{info_TEXINFOS} in @file{doc/local.mk} and the generated @file{%D%/guix.xx.texi} and @file{%D%/contributing.xx.texi} to @code{TRANSLATED_INFO} also in @file{doc/local.mk}."
  2384. msgstr ""
  2385. #. type: item
  2386. #: guix-git/doc/contributing.texi:1950
  2387. #, no-wrap
  2388. msgid "New po files for the @code{documentation-cookbook} component must be"
  2389. msgstr ""
  2390. #. type: itemize
  2391. #: guix-git/doc/contributing.texi:1956
  2392. msgid "registered by adding the file name to @code{DOC_COOKBOOK_PO_FILES} in @file{po/doc/local.mk}, the generated @file{%D%/guix-cookbook.xx.texi} manual to @code{info_TEXINFOS} in @file{doc/local.mk} and the generated @file{%D%/guix-cookbook.xx.texi} to @code{TRANSLATED_INFO} also in @file{doc/local.mk}."
  2393. msgstr ""
  2394. #. type: item
  2395. #: guix-git/doc/contributing.texi:1956
  2396. #, no-wrap
  2397. msgid "New po files for the @code{website} component must be added to the"
  2398. msgstr ""
  2399. #. type: itemize
  2400. #: guix-git/doc/contributing.texi:1961
  2401. msgid "@code{guix-artwork} repository, in @file{website/po/}. @file{website/po/LINGUAS} and @file{website/po/ietf-tags.scm} must be updated accordingly (see @file{website/i18n-howto.txt} for more information on the process)."
  2402. msgstr ""
  2403. #. type: Plain text
  2404. #: guix-git/doc/guix.texi:7
  2405. msgid "@documentencoding UTF-8"
  2406. msgstr "@documentencoding UTF-8"
  2407. #. type: title
  2408. #: guix-git/doc/guix.texi:7 guix-git/doc/guix.texi:131
  2409. #, no-wrap
  2410. msgid "GNU Guix Reference Manual"
  2411. msgstr "GNU Guix 参考手册"
  2412. #. type: include
  2413. #: guix-git/doc/guix.texi:10
  2414. #, no-wrap
  2415. msgid "version.texi"
  2416. msgstr "version-zh_CN.texi"
  2417. #. type: copying
  2418. #: guix-git/doc/guix.texi:103
  2419. msgid "Copyright @copyright{} 2012-2022 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, 2021 Ricardo Wurmus@* Copyright @copyright{} 2016 Ben Woodcroft@* Copyright @copyright{} 2016, 2017, 2018, 2021 Chris Marusich@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner@* Copyright @copyright{} 2016 John Darrington@* Copyright @copyright{} 2016, 2017 Nikita Gillmann@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020 Jan Nieuwenhuizen@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Julien Lepiller@* Copyright @copyright{} 2016 Alex ter Weele@* Copyright @copyright{} 2016, 2017, 2018, 2019, 2020, 2021 Christopher Baines@* Copyright @copyright{} 2017, 2018, 2019 Clément Lassieur@* Copyright @copyright{} 2017, 2018, 2020, 2021 Mathieu Othacehe@* Copyright @copyright{} 2017 Federico Beffa@* Copyright @copyright{} 2017, 2018 Carlo Zancanaro@* Copyright @copyright{} 2017 Thomas Danckaert@* Copyright @copyright{} 2017 humanitiesNerd@* Copyright @copyright{} 2017, 2021 Christine Lemmer-Webber@* Copyright @copyright{} 2017, 2018, 2019, 2020, 2021, 2022 Marius Bakke@* Copyright @copyright{} 2017, 2019, 2020 Hartmut Goebel@* Copyright @copyright{} 2017, 2019, 2020, 2021 Maxim Cournoyer@* Copyright @copyright{} 2017–2022 Tobias Geerinckx-Rice@* Copyright @copyright{} 2017 George Clemmer@* Copyright @copyright{} 2017 Andy Wingo@* Copyright @copyright{} 2017, 2018, 2019, 2020 Arun Isaac@* Copyright @copyright{} 2017 nee@* Copyright @copyright{} 2018 Rutger Helling@* Copyright @copyright{} 2018, 2021 Oleg Pykhalov@* Copyright @copyright{} 2018 Mike Gerwitz@* Copyright @copyright{} 2018 Pierre-Antoine Rouby@* Copyright @copyright{} 2018, 2019 Gábor Boskovits@* Copyright @copyright{} 2018, 2019, 2020 Florian Pelz@* Copyright @copyright{} 2018 Laura Lazzati@* Copyright @copyright{} 2018 Alex Vong@* Copyright @copyright{} 2019 Josh Holland@* Copyright @copyright{} 2019, 2020 Diego Nicola Barbato@* Copyright @copyright{} 2019 Ivan Petkov@* Copyright @copyright{} 2019 Jakob L. Kreuze@* Copyright @copyright{} 2019 Kyle Andrews@* Copyright @copyright{} 2019 Alex Griffin@* Copyright @copyright{} 2019, 2020, 2021, 2022 Guillaume Le Vaillant@* Copyright @copyright{} 2020 Liliana Marie Prikler@* Copyright @copyright{} 2019, 2020, 2021, 2022 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* Copyright @copyright{} 2020 Damien Cassou@* Copyright @copyright{} 2020 Jakub Kądziołka@* Copyright @copyright{} 2020 Jack Hill@* Copyright @copyright{} 2020 Naga Malleswari@* Copyright @copyright{} 2020, 2021 Brice Waegeneire@* Copyright @copyright{} 2020 R Veera Kumar@* Copyright @copyright{} 2020, 2021 Pierre Langlois@* Copyright @copyright{} 2020 pinoaffe@* Copyright @copyright{} 2020 André Batista@* Copyright @copyright{} 2020, 2021 Alexandru-Sergiu Marton@* Copyright @copyright{} 2020 raingloom@* Copyright @copyright{} 2020 Daniel Brooks@* Copyright @copyright{} 2020 John Soo@* Copyright @copyright{} 2020 Jonathan Brielmaier@* Copyright @copyright{} 2020 Edgar Vincent@* Copyright @copyright{} 2021 Maxime Devos@* Copyright @copyright{} 2021 B. Wilson@* Copyright @copyright{} 2021 Xinglu Chen@* Copyright @copyright{} 2021 Raghav Gururajan@* Copyright @copyright{} 2021 Domagoj Stolfa@* Copyright @copyright{} 2021 Hui Lu@* Copyright @copyright{} 2021 pukkamustard@* Copyright @copyright{} 2021 Alice Brenon@* Copyright @copyright{} 2021 Josselin Poiret@* Copyright @copyright{} 2021 Andrew Tropin@* Copyright @copyright{} 2021 Sarah Morgensen@* Copyright @copyright{} 2021 Josselin Poiret@*"
  2420. msgstr ""
  2421. #. type: copying
  2422. #: guix-git/doc/guix.texi:110
  2423. 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''."
  2424. 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''."
  2425. #. type: dircategory
  2426. #: guix-git/doc/guix.texi:112
  2427. #, no-wrap
  2428. msgid "System administration"
  2429. msgstr "系统管理"
  2430. #. type: menuentry
  2431. #: guix-git/doc/guix.texi:120
  2432. msgid "Guix: (guix)"
  2433. msgstr "Guix:(guix)"
  2434. #. type: menuentry
  2435. #: guix-git/doc/guix.texi:120
  2436. msgid "Manage installed software and system configuration."
  2437. msgstr "管理安装的软件和系统配置。"
  2438. #. type: menuentry
  2439. #: guix-git/doc/guix.texi:120
  2440. msgid "guix package: (guix)Invoking guix package"
  2441. msgstr "guix package:调用guix package"
  2442. #. type: menuentry
  2443. #: guix-git/doc/guix.texi:120
  2444. msgid "Installing, removing, and upgrading packages."
  2445. msgstr "安装、删除和升级软件包。"
  2446. #. type: menuentry
  2447. #: guix-git/doc/guix.texi:120
  2448. msgid "guix gc: (guix)Invoking guix gc"
  2449. msgstr "guix gc:调用guix gc"
  2450. #. type: menuentry
  2451. #: guix-git/doc/guix.texi:120
  2452. msgid "Reclaiming unused disk space."
  2453. msgstr "回收不使用的硬盘空间。"
  2454. #. type: menuentry
  2455. #: guix-git/doc/guix.texi:120
  2456. msgid "guix pull: (guix)Invoking guix pull"
  2457. msgstr "guix pull:调用guix pull"
  2458. #. type: menuentry
  2459. #: guix-git/doc/guix.texi:120
  2460. msgid "Update the list of available packages."
  2461. msgstr "更新可用的软件包列表。"
  2462. #. type: menuentry
  2463. #: guix-git/doc/guix.texi:120
  2464. msgid "guix system: (guix)Invoking guix system"
  2465. msgstr "guix system:调用guix system"
  2466. #. type: menuentry
  2467. #: guix-git/doc/guix.texi:120
  2468. msgid "Manage the operating system configuration."
  2469. msgstr "管理操作系统配置。"
  2470. #. type: menuentry
  2471. #: guix-git/doc/guix.texi:120
  2472. #, fuzzy
  2473. msgid "guix deploy: (guix)Invoking guix deploy"
  2474. msgstr "guix pull:调用guix pull"
  2475. #. type: menuentry
  2476. #: guix-git/doc/guix.texi:120
  2477. #, fuzzy
  2478. msgid "Manage operating system configurations for remote hosts."
  2479. msgstr "管理操作系统配置。"
  2480. #. type: dircategory
  2481. #: guix-git/doc/guix.texi:122
  2482. #, no-wrap
  2483. msgid "Software development"
  2484. msgstr "软件开发"
  2485. #. type: menuentry
  2486. #: guix-git/doc/guix.texi:128
  2487. #, fuzzy
  2488. #| msgid "guix pull: (guix)Invoking guix pull"
  2489. msgid "guix shell: (guix)Invoking guix shell"
  2490. msgstr "guix pull:调用guix pull"
  2491. #. type: menuentry
  2492. #: guix-git/doc/guix.texi:128
  2493. #, fuzzy
  2494. #| msgid "Creating software bundles."
  2495. msgid "Creating software environments."
  2496. msgstr "创建软件bundle。"
  2497. #. type: menuentry
  2498. #: guix-git/doc/guix.texi:128
  2499. msgid "guix environment: (guix)Invoking guix environment"
  2500. msgstr "guix environment:调用guix environment"
  2501. #. type: menuentry
  2502. #: guix-git/doc/guix.texi:128
  2503. msgid "Building development environments with Guix."
  2504. msgstr "用Guix构建开发环境。"
  2505. #. type: menuentry
  2506. #: guix-git/doc/guix.texi:128
  2507. msgid "guix build: (guix)Invoking guix build"
  2508. msgstr "guix build:(guix)调用guix build"
  2509. #. type: menuentry
  2510. #: guix-git/doc/guix.texi:128
  2511. msgid "Building packages."
  2512. msgstr "构建软件包。"
  2513. #. type: menuentry
  2514. #: guix-git/doc/guix.texi:128
  2515. msgid "guix pack: (guix)Invoking guix pack"
  2516. msgstr "guix pack:(guix)调用guix pack"
  2517. #. type: menuentry
  2518. #: guix-git/doc/guix.texi:128
  2519. msgid "Creating binary bundles."
  2520. msgstr "创建二进制bundle。"
  2521. #. type: subtitle
  2522. #: guix-git/doc/guix.texi:132
  2523. #, no-wrap
  2524. msgid "Using the GNU Guix Functional Package Manager"
  2525. msgstr "使用GNU Guix函数式包管理器"
  2526. #. type: author
  2527. #: guix-git/doc/guix.texi:133
  2528. #, no-wrap
  2529. msgid "The GNU Guix Developers"
  2530. msgstr "GNU Guix开发者"
  2531. #. type: titlepage
  2532. #: guix-git/doc/guix.texi:139
  2533. msgid "Edition @value{EDITION} @* @value{UPDATED} @*"
  2534. msgstr "版本@value{EDITION} @* @value{UPDATED} @*"
  2535. #. type: node
  2536. #: guix-git/doc/guix.texi:146
  2537. #, no-wrap
  2538. msgid "Top"
  2539. msgstr "Top"
  2540. #. type: top
  2541. #: guix-git/doc/guix.texi:147
  2542. #, no-wrap
  2543. msgid "GNU Guix"
  2544. msgstr "GNU Guix"
  2545. #. type: Plain text
  2546. #: guix-git/doc/guix.texi:151
  2547. msgid "This document describes GNU Guix version @value{VERSION}, a functional package management tool written for the GNU system."
  2548. msgstr "这份文档介绍GNU Guix版本@value{VERSION},一个为GNU系统编写的函数式包管理器。"
  2549. #. type: Plain text
  2550. #: guix-git/doc/guix.texi:163
  2551. #, fuzzy
  2552. msgid "This manual is also available in Simplified Chinese (@pxref{Top,,, guix.zh_CN, GNU Guix参考手册}), French (@pxref{Top,,, guix.fr, Manuel de référence de GNU Guix}), German (@pxref{Top,,, guix.de, Referenzhandbuch zu GNU Guix}), Spanish (@pxref{Top,,, guix.es, Manual de referencia de GNU Guix}), and Russian (@pxref{Top,,, guix.ru, Руководство GNU Guix}). If you would like to translate it in your native language, consider joining @uref{https://translate.fedoraproject.org/projects/guix/documentation-manual, Weblate} (@pxref{Translating Guix})."
  2553. 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}。"
  2554. #. type: chapter
  2555. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:192
  2556. #: guix-git/doc/guix.texi:403 guix-git/doc/guix.texi:404
  2557. #, no-wrap
  2558. msgid "Introduction"
  2559. msgstr "介绍"
  2560. #. type: menuentry
  2561. #: guix-git/doc/guix.texi:182
  2562. msgid "What is Guix about?"
  2563. msgstr "Guix是关于什么的?"
  2564. #. type: chapter
  2565. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:197
  2566. #: guix-git/doc/guix.texi:600 guix-git/doc/guix.texi:601
  2567. #, no-wrap
  2568. msgid "Installation"
  2569. msgstr "安装"
  2570. #. type: menuentry
  2571. #: guix-git/doc/guix.texi:182
  2572. msgid "Installing Guix."
  2573. msgstr "安装Guix。"
  2574. #. type: chapter
  2575. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:213
  2576. #: guix-git/doc/guix.texi:2082 guix-git/doc/guix.texi:2083
  2577. #, no-wrap
  2578. msgid "System Installation"
  2579. msgstr "系统安装"
  2580. #. type: menuentry
  2581. #: guix-git/doc/guix.texi:182
  2582. msgid "Installing the whole operating system."
  2583. msgstr "安装整个操作系统。"
  2584. #. type: chapter
  2585. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:2810
  2586. #: guix-git/doc/guix.texi:2811
  2587. #, no-wrap
  2588. msgid "Getting Started"
  2589. msgstr "入门"
  2590. #. type: menuentry
  2591. #: guix-git/doc/guix.texi:182
  2592. msgid "Your first steps."
  2593. msgstr ""
  2594. #. type: chapter
  2595. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:230
  2596. #: guix-git/doc/guix.texi:3018 guix-git/doc/guix.texi:3019
  2597. #, no-wrap
  2598. msgid "Package Management"
  2599. msgstr "软件包管理"
  2600. #. type: menuentry
  2601. #: guix-git/doc/guix.texi:182
  2602. msgid "Package installation, upgrade, etc."
  2603. msgstr "软件包安装、升级等。"
  2604. #. type: chapter
  2605. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:253
  2606. #: guix-git/doc/guix.texi:5091 guix-git/doc/guix.texi:5092
  2607. #, no-wrap
  2608. msgid "Channels"
  2609. msgstr "通道"
  2610. #. type: menuentry
  2611. #: guix-git/doc/guix.texi:182
  2612. msgid "Customizing the package collection."
  2613. msgstr "定制软件包集合。"
  2614. #. type: chapter
  2615. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:267
  2616. #: guix-git/doc/guix.texi:5621 guix-git/doc/guix.texi:5622
  2617. #, no-wrap
  2618. msgid "Development"
  2619. msgstr "开发"
  2620. #. type: menuentry
  2621. #: guix-git/doc/guix.texi:182
  2622. msgid "Guix-aided software development."
  2623. msgstr "Guix辅助的软件开发。"
  2624. #. type: chapter
  2625. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:275
  2626. #: guix-git/doc/guix.texi:6864 guix-git/doc/guix.texi:6865
  2627. #, no-wrap
  2628. msgid "Programming Interface"
  2629. msgstr "编程接口"
  2630. #. type: menuentry
  2631. #: guix-git/doc/guix.texi:182
  2632. msgid "Using Guix in Scheme."
  2633. msgstr "在Scheme里使用Guix。"
  2634. #. type: chapter
  2635. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:295
  2636. #: guix-git/doc/guix.texi:11192 guix-git/doc/guix.texi:11193
  2637. #, no-wrap
  2638. msgid "Utilities"
  2639. msgstr "工具"
  2640. #. type: menuentry
  2641. #: guix-git/doc/guix.texi:182
  2642. msgid "Package management commands."
  2643. msgstr "软件包管理命令。"
  2644. #. type: chapter
  2645. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:321
  2646. #: guix-git/doc/guix.texi:14739 guix-git/doc/guix.texi:14740
  2647. #, no-wrap
  2648. msgid "System Configuration"
  2649. msgstr "系统配置"
  2650. #. type: menuentry
  2651. #: guix-git/doc/guix.texi:182
  2652. msgid "Configuring the operating system."
  2653. msgstr "配置操作系统。"
  2654. #. type: chapter
  2655. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:37485
  2656. #: guix-git/doc/guix.texi:37486
  2657. #, fuzzy, no-wrap
  2658. #| msgid "System Configuration"
  2659. msgid "Home Configuration"
  2660. msgstr "系统配置"
  2661. #. type: menuentry
  2662. #: guix-git/doc/guix.texi:182
  2663. #, fuzzy
  2664. #| msgid "Configuring the boot loader."
  2665. msgid "Configuring the home environment."
  2666. msgstr "设置引导程序。"
  2667. #. type: chapter
  2668. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:38404
  2669. #: guix-git/doc/guix.texi:38405
  2670. #, no-wrap
  2671. msgid "Documentation"
  2672. msgstr "文档"
  2673. #. type: menuentry
  2674. #: guix-git/doc/guix.texi:182
  2675. msgid "Browsing software user manuals."
  2676. msgstr "浏览软件用户手册。"
  2677. #. type: chapter
  2678. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:390
  2679. #: guix-git/doc/guix.texi:38470 guix-git/doc/guix.texi:38471
  2680. #, no-wrap
  2681. msgid "Installing Debugging Files"
  2682. msgstr "安装调试文件"
  2683. #. type: menuentry
  2684. #: guix-git/doc/guix.texi:182
  2685. msgid "Feeding the debugger."
  2686. msgstr "为调试工具提供输入。"
  2687. #. type: chapter
  2688. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:38625
  2689. #: guix-git/doc/guix.texi:38626
  2690. #, no-wrap
  2691. msgid "Security Updates"
  2692. msgstr "安全更新"
  2693. #. type: menuentry
  2694. #: guix-git/doc/guix.texi:182
  2695. msgid "Deploying security fixes quickly."
  2696. msgstr "快速部署安全补丁。"
  2697. #. type: chapter
  2698. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:395
  2699. #: guix-git/doc/guix.texi:38740 guix-git/doc/guix.texi:38741
  2700. #, no-wrap
  2701. msgid "Bootstrapping"
  2702. msgstr "引导"
  2703. #. type: menuentry
  2704. #: guix-git/doc/guix.texi:182
  2705. msgid "GNU/Linux built from scratch."
  2706. msgstr "从头开始构建GNU/Linux。"
  2707. #. type: node
  2708. #: guix-git/doc/guix.texi:182 guix-git/doc/guix.texi:39032
  2709. #, no-wrap
  2710. msgid "Porting"
  2711. msgstr "移植"
  2712. #. type: menuentry
  2713. #: guix-git/doc/guix.texi:182
  2714. msgid "Targeting another platform or kernel."
  2715. msgstr "以别的平台或内核为目标。"
  2716. #. type: menuentry
  2717. #: guix-git/doc/guix.texi:182
  2718. msgid "Your help needed!"
  2719. msgstr "你需要帮助!"
  2720. #. type: chapter
  2721. #: guix-git/doc/guix.texi:187 guix-git/doc/guix.texi:39080
  2722. #: guix-git/doc/guix.texi:39081
  2723. #, no-wrap
  2724. msgid "Acknowledgments"
  2725. msgstr "致谢"
  2726. #. type: menuentry
  2727. #: guix-git/doc/guix.texi:187
  2728. msgid "Thanks!"
  2729. msgstr "感谢!"
  2730. #. type: appendix
  2731. #: guix-git/doc/guix.texi:187 guix-git/doc/guix.texi:39102
  2732. #: guix-git/doc/guix.texi:39103
  2733. #, no-wrap
  2734. msgid "GNU Free Documentation License"
  2735. msgstr "GNU自由文档许可证"
  2736. #. type: menuentry
  2737. #: guix-git/doc/guix.texi:187
  2738. msgid "The license of this manual."
  2739. msgstr "这个用户手册的许可证。"
  2740. #. type: unnumbered
  2741. #: guix-git/doc/guix.texi:187 guix-git/doc/guix.texi:39108
  2742. #: guix-git/doc/guix.texi:39109
  2743. #, no-wrap
  2744. msgid "Concept Index"
  2745. msgstr "概念索引"
  2746. #. type: menuentry
  2747. #: guix-git/doc/guix.texi:187
  2748. msgid "Concepts."
  2749. msgstr "概念。"
  2750. #. type: unnumbered
  2751. #: guix-git/doc/guix.texi:187 guix-git/doc/guix.texi:39112
  2752. #: guix-git/doc/guix.texi:39113
  2753. #, no-wrap
  2754. msgid "Programming Index"
  2755. msgstr "编程索引"
  2756. #. type: menuentry
  2757. #: guix-git/doc/guix.texi:187
  2758. msgid "Data types, functions, and variables."
  2759. msgstr "数据类型、函数和变量。"
  2760. #. type: menuentry
  2761. #: guix-git/doc/guix.texi:190
  2762. msgid "--- The Detailed Node Listing ---"
  2763. msgstr "---详细的章节列表---"
  2764. #. type: section
  2765. #: guix-git/doc/guix.texi:195 guix-git/doc/guix.texi:430
  2766. #: guix-git/doc/guix.texi:432 guix-git/doc/guix.texi:433
  2767. #, no-wrap
  2768. msgid "Managing Software the Guix Way"
  2769. msgstr "以Guix的方式管理软件"
  2770. #. type: menuentry
  2771. #: guix-git/doc/guix.texi:195 guix-git/doc/guix.texi:430
  2772. msgid "What's special."
  2773. msgstr "特殊的地方。"
  2774. #. type: section
  2775. #: guix-git/doc/guix.texi:195 guix-git/doc/guix.texi:430
  2776. #: guix-git/doc/guix.texi:487 guix-git/doc/guix.texi:488
  2777. #, no-wrap
  2778. msgid "GNU Distribution"
  2779. msgstr "GNU发行版"
  2780. #. type: menuentry
  2781. #: guix-git/doc/guix.texi:195 guix-git/doc/guix.texi:430
  2782. msgid "The packages and tools."
  2783. msgstr "软件包和工具。"
  2784. #. type: section
  2785. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2786. #: guix-git/doc/guix.texi:642 guix-git/doc/guix.texi:643
  2787. #, no-wrap
  2788. msgid "Binary Installation"
  2789. msgstr "二进制文件安装"
  2790. #. type: menuentry
  2791. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2792. msgid "Getting Guix running in no time!"
  2793. msgstr "立刻运行Guix!"
  2794. #. type: section
  2795. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2796. #: guix-git/doc/guix.texi:882 guix-git/doc/guix.texi:883
  2797. #, no-wrap
  2798. msgid "Requirements"
  2799. msgstr "需求"
  2800. #. type: menuentry
  2801. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2802. msgid "Software needed to build and run Guix."
  2803. msgstr "构建和运行Guix需要的软件。"
  2804. #. type: section
  2805. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2806. #: guix-git/doc/guix.texi:969 guix-git/doc/guix.texi:970
  2807. #, no-wrap
  2808. msgid "Running the Test Suite"
  2809. msgstr "运行测试套件"
  2810. #. type: menuentry
  2811. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2812. msgid "Testing Guix."
  2813. msgstr "测试Guix。"
  2814. #. type: section
  2815. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:207
  2816. #: guix-git/doc/guix.texi:640 guix-git/doc/guix.texi:1066
  2817. #: guix-git/doc/guix.texi:1067
  2818. #, no-wrap
  2819. msgid "Setting Up the Daemon"
  2820. msgstr "设置后台进程"
  2821. #. type: menuentry
  2822. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2823. msgid "Preparing the build daemon's environment."
  2824. msgstr "准备“构建后台进程”的环境。"
  2825. #. type: node
  2826. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2827. #: guix-git/doc/guix.texi:1542
  2828. #, no-wrap
  2829. msgid "Invoking guix-daemon"
  2830. msgstr "调用guix-daemon"
  2831. #. type: menuentry
  2832. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2833. msgid "Running the build daemon."
  2834. msgstr "运行“构建后台进程”"
  2835. #. type: section
  2836. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2837. #: guix-git/doc/guix.texi:1844 guix-git/doc/guix.texi:1845
  2838. #, no-wrap
  2839. msgid "Application Setup"
  2840. msgstr "设置应用程序"
  2841. #. type: menuentry
  2842. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2843. msgid "Application-specific setup."
  2844. msgstr "应用程序相关的设置。"
  2845. #. type: section
  2846. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2847. #: guix-git/doc/guix.texi:2045 guix-git/doc/guix.texi:2046
  2848. #, fuzzy, no-wrap
  2849. msgid "Upgrading Guix"
  2850. msgstr "安装Guix"
  2851. #. type: menuentry
  2852. #: guix-git/doc/guix.texi:205 guix-git/doc/guix.texi:640
  2853. msgid "Upgrading Guix and its build daemon."
  2854. msgstr "升级 Guix 及其构建守护进程。"
  2855. #. type: subsection
  2856. #: guix-git/doc/guix.texi:211 guix-git/doc/guix.texi:1086
  2857. #: guix-git/doc/guix.texi:1088 guix-git/doc/guix.texi:1089
  2858. #, no-wrap
  2859. msgid "Build Environment Setup"
  2860. msgstr "设置构建环境"
  2861. #. type: menuentry
  2862. #: guix-git/doc/guix.texi:211 guix-git/doc/guix.texi:1086
  2863. msgid "Preparing the isolated build environment."
  2864. msgstr "准备隔离的构建环境。"
  2865. #. type: node
  2866. #: guix-git/doc/guix.texi:211 guix-git/doc/guix.texi:1086
  2867. #: guix-git/doc/guix.texi:1212
  2868. #, no-wrap
  2869. msgid "Daemon Offload Setup"
  2870. msgstr "下发工作给后台进程的设置"
  2871. #. type: menuentry
  2872. #: guix-git/doc/guix.texi:211 guix-git/doc/guix.texi:1086
  2873. msgid "Offloading builds to remote machines."
  2874. msgstr "下发构建工作给远程的机器。"
  2875. #. type: subsection
  2876. #: guix-git/doc/guix.texi:211 guix-git/doc/guix.texi:1086
  2877. #: guix-git/doc/guix.texi:1451 guix-git/doc/guix.texi:1452
  2878. #, no-wrap
  2879. msgid "SELinux Support"
  2880. msgstr "SELinux的支持"
  2881. #. type: menuentry
  2882. #: guix-git/doc/guix.texi:211 guix-git/doc/guix.texi:1086
  2883. msgid "Using an SELinux policy for the daemon."
  2884. msgstr "为后台进程使用SELinux规则。"
  2885. #. type: section
  2886. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:1487
  2887. #: guix-git/doc/guix.texi:2116 guix-git/doc/guix.texi:2118
  2888. #: guix-git/doc/guix.texi:2119
  2889. #, no-wrap
  2890. msgid "Limitations"
  2891. msgstr "限制"
  2892. #. type: menuentry
  2893. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2894. msgid "What you can expect."
  2895. msgstr "你可以期待什么。"
  2896. #. type: section
  2897. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2898. #: guix-git/doc/guix.texi:2144 guix-git/doc/guix.texi:2145
  2899. #, no-wrap
  2900. msgid "Hardware Considerations"
  2901. msgstr "硬件的考虑"
  2902. #. type: menuentry
  2903. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2904. msgid "Supported hardware."
  2905. msgstr "支持的硬件。"
  2906. #. type: section
  2907. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2908. #: guix-git/doc/guix.texi:2179 guix-git/doc/guix.texi:2180
  2909. #, no-wrap
  2910. msgid "USB Stick and DVD Installation"
  2911. msgstr "U盘和DVD安装"
  2912. #. type: menuentry
  2913. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2914. msgid "Preparing the installation medium."
  2915. msgstr "准备安装介质。"
  2916. #. type: section
  2917. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2918. #: guix-git/doc/guix.texi:2260 guix-git/doc/guix.texi:2261
  2919. #, no-wrap
  2920. msgid "Preparing for Installation"
  2921. msgstr "准备安装"
  2922. #. type: menuentry
  2923. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2924. msgid "Networking, partitioning, etc."
  2925. msgstr "网络、分区等。"
  2926. #. type: section
  2927. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2928. #: guix-git/doc/guix.texi:2283 guix-git/doc/guix.texi:2284
  2929. #, no-wrap
  2930. msgid "Guided Graphical Installation"
  2931. msgstr "指导的图形安装"
  2932. #. type: menuentry
  2933. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2934. msgid "Easy graphical installation."
  2935. msgstr "简单的图形安装。"
  2936. #. type: section
  2937. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:225
  2938. #: guix-git/doc/guix.texi:2116 guix-git/doc/guix.texi:2314
  2939. #: guix-git/doc/guix.texi:2315
  2940. #, no-wrap
  2941. msgid "Manual Installation"
  2942. msgstr "手动安装"
  2943. #. type: menuentry
  2944. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2945. msgid "Manual installation for wizards."
  2946. msgstr "适合巫师的手动安装。"
  2947. #. type: section
  2948. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2949. #: guix-git/doc/guix.texi:2693 guix-git/doc/guix.texi:2694
  2950. #, no-wrap
  2951. msgid "After System Installation"
  2952. msgstr "系统安装之后"
  2953. #. type: menuentry
  2954. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2955. msgid "When installation succeeded."
  2956. msgstr "当安装成功后。"
  2957. #. type: node
  2958. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2959. #: guix-git/doc/guix.texi:2727
  2960. #, no-wrap
  2961. msgid "Installing Guix in a VM"
  2962. msgstr "在虚拟机里安装 Guix"
  2963. #. type: menuentry
  2964. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2965. msgid "Guix System playground."
  2966. msgstr "Guix系统游乐场。"
  2967. #. type: section
  2968. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2969. #: guix-git/doc/guix.texi:2778 guix-git/doc/guix.texi:2779
  2970. #, no-wrap
  2971. msgid "Building the Installation Image"
  2972. msgstr "构建安装镜像"
  2973. #. type: menuentry
  2974. #: guix-git/doc/guix.texi:223 guix-git/doc/guix.texi:2116
  2975. msgid "How this comes to be."
  2976. msgstr "这是怎样实现的。"
  2977. #. type: node
  2978. #: guix-git/doc/guix.texi:228 guix-git/doc/guix.texi:2332
  2979. #: guix-git/doc/guix.texi:2334
  2980. #, no-wrap
  2981. msgid "Keyboard Layout and Networking and Partitioning"
  2982. msgstr "键盘布局、网络和分区"
  2983. #. type: menuentry
  2984. #: guix-git/doc/guix.texi:228 guix-git/doc/guix.texi:2332
  2985. msgid "Initial setup."
  2986. msgstr "初始设置。"
  2987. #. type: subsection
  2988. #: guix-git/doc/guix.texi:228 guix-git/doc/guix.texi:2332
  2989. #: guix-git/doc/guix.texi:2604 guix-git/doc/guix.texi:2605
  2990. #, no-wrap
  2991. msgid "Proceeding with the Installation"
  2992. msgstr "继续安装步骤"
  2993. #. type: menuentry
  2994. #: guix-git/doc/guix.texi:228 guix-git/doc/guix.texi:2332
  2995. msgid "Installing."
  2996. msgstr "安装。"
  2997. #. type: section
  2998. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  2999. #: guix-git/doc/guix.texi:3052 guix-git/doc/guix.texi:3053
  3000. #, no-wrap
  3001. msgid "Features"
  3002. msgstr "功能"
  3003. #. type: menuentry
  3004. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3005. msgid "How Guix will make your life brighter."
  3006. msgstr "Guix怎样让你的生活更美好。"
  3007. #. type: node
  3008. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3009. #: guix-git/doc/guix.texi:3142
  3010. #, no-wrap
  3011. msgid "Invoking guix package"
  3012. msgstr "调用guix package"
  3013. #. type: menuentry
  3014. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3015. msgid "Package installation, removal, etc."
  3016. msgstr "软件包安装,移除等。"
  3017. #. type: section
  3018. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:243
  3019. #: guix-git/doc/guix.texi:3050 guix-git/doc/guix.texi:3772
  3020. #: guix-git/doc/guix.texi:3773
  3021. #, no-wrap
  3022. msgid "Substitutes"
  3023. msgstr "substitutes"
  3024. #. type: menuentry
  3025. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3026. msgid "Downloading pre-built binaries."
  3027. msgstr "下载构建好的二进制文件。"
  3028. #. type: section
  3029. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3030. #: guix-git/doc/guix.texi:4108 guix-git/doc/guix.texi:4109
  3031. #, no-wrap
  3032. msgid "Packages with Multiple Outputs"
  3033. msgstr "有多个输出的软件包"
  3034. #. type: menuentry
  3035. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3036. msgid "Single source package, multiple outputs."
  3037. msgstr "单个输入多个输出的软件包。"
  3038. #. type: node
  3039. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3040. #: guix-git/doc/guix.texi:4162
  3041. #, no-wrap
  3042. msgid "Invoking guix gc"
  3043. msgstr "调用guix gc"
  3044. #. type: menuentry
  3045. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3046. msgid "Running the garbage collector."
  3047. msgstr "运行垃圾回收器。"
  3048. #. type: node
  3049. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3050. #: guix-git/doc/guix.texi:4372
  3051. #, no-wrap
  3052. msgid "Invoking guix pull"
  3053. msgstr "调用guix pull"
  3054. #. type: menuentry
  3055. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3056. msgid "Fetching the latest Guix and distribution."
  3057. msgstr "获取最新的Guix和发行版。"
  3058. #. type: node
  3059. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3060. #: guix-git/doc/guix.texi:4623
  3061. #, fuzzy, no-wrap
  3062. msgid "Invoking guix time-machine"
  3063. msgstr "调用guix archive"
  3064. #. type: menuentry
  3065. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3066. #, fuzzy
  3067. msgid "Running an older revision of Guix."
  3068. msgstr "和其它版本的Guix交互。"
  3069. #. type: section
  3070. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3071. #: guix-git/doc/guix.texi:4678 guix-git/doc/guix.texi:4679
  3072. #, no-wrap
  3073. msgid "Inferiors"
  3074. msgstr ""
  3075. #. type: menuentry
  3076. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3077. msgid "Interacting with another revision of Guix."
  3078. msgstr "和其它版本的Guix交互。"
  3079. #. type: node
  3080. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3081. #: guix-git/doc/guix.texi:4806
  3082. #, no-wrap
  3083. msgid "Invoking guix describe"
  3084. msgstr "调用guix describe"
  3085. #. type: menuentry
  3086. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3087. msgid "Display information about your Guix revision."
  3088. msgstr "显示你的Guix版本信息。"
  3089. #. type: node
  3090. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3091. #: guix-git/doc/guix.texi:4901
  3092. #, no-wrap
  3093. msgid "Invoking guix archive"
  3094. msgstr "调用guix archive"
  3095. #. type: menuentry
  3096. #: guix-git/doc/guix.texi:241 guix-git/doc/guix.texi:3050
  3097. msgid "Exporting and importing store files."
  3098. msgstr "导出和导入仓库文件。"
  3099. #. type: subsection
  3100. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3101. #: guix-git/doc/guix.texi:3798 guix-git/doc/guix.texi:3799
  3102. #, fuzzy, no-wrap
  3103. #| msgid "Official Substitute Server"
  3104. msgid "Official Substitute Servers"
  3105. msgstr "官方的substitute服务器"
  3106. #. type: menuentry
  3107. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3108. msgid "One particular source of substitutes."
  3109. msgstr "substitute的一个特殊来源。"
  3110. #. type: subsection
  3111. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3112. #: guix-git/doc/guix.texi:3828 guix-git/doc/guix.texi:3829
  3113. #, no-wrap
  3114. msgid "Substitute Server Authorization"
  3115. msgstr "授权substitute服务器。"
  3116. #. type: menuentry
  3117. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3118. msgid "How to enable or disable substitutes."
  3119. msgstr "怎么开启或关闭substitute。"
  3120. #. type: subsection
  3121. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3122. #: guix-git/doc/guix.texi:3898 guix-git/doc/guix.texi:3899
  3123. #, no-wrap
  3124. msgid "Getting Substitutes from Other Servers"
  3125. msgstr ""
  3126. #. type: menuentry
  3127. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3128. #, fuzzy
  3129. msgid "Substitute diversity."
  3130. msgstr "substitutes"
  3131. #. type: subsection
  3132. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3133. #: guix-git/doc/guix.texi:4003 guix-git/doc/guix.texi:4004
  3134. #, no-wrap
  3135. msgid "Substitute Authentication"
  3136. msgstr "验证substitute"
  3137. #. type: menuentry
  3138. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3139. msgid "How Guix verifies substitutes."
  3140. msgstr "Guix怎样验证substitute。"
  3141. #. type: subsection
  3142. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3143. #: guix-git/doc/guix.texi:4038 guix-git/doc/guix.texi:4039
  3144. #, no-wrap
  3145. msgid "Proxy Settings"
  3146. msgstr "代理设置"
  3147. #. type: menuentry
  3148. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3149. msgid "How to get substitutes via proxy."
  3150. msgstr "怎样通过代理获取substitute。"
  3151. #. type: subsection
  3152. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3153. #: guix-git/doc/guix.texi:4050 guix-git/doc/guix.texi:4051
  3154. #, no-wrap
  3155. msgid "Substitution Failure"
  3156. msgstr "substitute失败"
  3157. #. type: menuentry
  3158. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3159. msgid "What happens when substitution fails."
  3160. msgstr "当substitute失败时会发生什么。"
  3161. #. type: subsection
  3162. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3163. #: guix-git/doc/guix.texi:4078 guix-git/doc/guix.texi:4079
  3164. #, no-wrap
  3165. msgid "On Trusting Binaries"
  3166. msgstr "关于信任二进制文件"
  3167. #. type: menuentry
  3168. #: guix-git/doc/guix.texi:251 guix-git/doc/guix.texi:3796
  3169. msgid "How can you trust that binary blob?"
  3170. msgstr "你怎么能信任二进制的 blob 呢?"
  3171. #. type: section
  3172. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3173. #: guix-git/doc/guix.texi:5124 guix-git/doc/guix.texi:5125
  3174. #, no-wrap
  3175. msgid "Specifying Additional Channels"
  3176. msgstr ""
  3177. #. type: menuentry
  3178. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3179. msgid "Extending the package collection."
  3180. msgstr "拓展软件包集合。"
  3181. #. type: section
  3182. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3183. #: guix-git/doc/guix.texi:5174 guix-git/doc/guix.texi:5175
  3184. #, no-wrap
  3185. msgid "Using a Custom Guix Channel"
  3186. msgstr ""
  3187. #. type: menuentry
  3188. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3189. msgid "Using a customized Guix."
  3190. msgstr ""
  3191. #. type: section
  3192. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3193. #: guix-git/doc/guix.texi:5196 guix-git/doc/guix.texi:5197
  3194. #, no-wrap
  3195. msgid "Replicating Guix"
  3196. msgstr ""
  3197. #. type: menuentry
  3198. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3199. msgid "Running the @emph{exact same} Guix."
  3200. msgstr ""
  3201. #. type: section
  3202. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3203. #: guix-git/doc/guix.texi:5237 guix-git/doc/guix.texi:5238
  3204. #, fuzzy, no-wrap
  3205. msgid "Channel Authentication"
  3206. msgstr "验证substitute"
  3207. #. type: menuentry
  3208. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3209. #, fuzzy
  3210. msgid "How Guix verifies what it fetches."
  3211. msgstr "Guix怎样验证substitute。"
  3212. #. type: section
  3213. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3214. #: guix-git/doc/guix.texi:5277 guix-git/doc/guix.texi:5278
  3215. #, fuzzy, no-wrap
  3216. msgid "Channels with Substitutes"
  3217. msgstr "分享substitute。"
  3218. #. type: menuentry
  3219. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3220. msgid "Using channels with available substitutes."
  3221. msgstr ""
  3222. #. type: section
  3223. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3224. #: guix-git/doc/guix.texi:5302 guix-git/doc/guix.texi:5303
  3225. #, no-wrap
  3226. msgid "Creating a Channel"
  3227. msgstr "创建一个频道"
  3228. #. type: menuentry
  3229. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3230. msgid "How to write your custom channel."
  3231. msgstr ""
  3232. #. type: section
  3233. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3234. #: guix-git/doc/guix.texi:5369 guix-git/doc/guix.texi:5370
  3235. #, fuzzy, no-wrap
  3236. msgid "Package Modules in a Sub-directory"
  3237. msgstr "软件包模块"
  3238. #. type: menuentry
  3239. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3240. #, fuzzy
  3241. msgid "Specifying the channel's package modules location."
  3242. msgstr "指定如何构建软件包。"
  3243. #. type: section
  3244. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3245. #: guix-git/doc/guix.texi:5383 guix-git/doc/guix.texi:5384
  3246. #, no-wrap
  3247. msgid "Declaring Channel Dependencies"
  3248. msgstr ""
  3249. #. type: menuentry
  3250. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3251. msgid "How to depend on other channels."
  3252. msgstr ""
  3253. #. type: section
  3254. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3255. #: guix-git/doc/guix.texi:5425 guix-git/doc/guix.texi:5426
  3256. #, no-wrap
  3257. msgid "Specifying Channel Authorizations"
  3258. msgstr ""
  3259. #. type: menuentry
  3260. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3261. msgid "Defining channel authors authorizations."
  3262. msgstr ""
  3263. #. type: section
  3264. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3265. #: guix-git/doc/guix.texi:5528 guix-git/doc/guix.texi:5529
  3266. #, no-wrap
  3267. msgid "Primary URL"
  3268. msgstr ""
  3269. #. type: menuentry
  3270. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3271. msgid "Distinguishing mirror to original."
  3272. msgstr ""
  3273. #. type: section
  3274. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3275. #: guix-git/doc/guix.texi:5551 guix-git/doc/guix.texi:5552
  3276. #, no-wrap
  3277. msgid "Writing Channel News"
  3278. msgstr ""
  3279. #. type: menuentry
  3280. #: guix-git/doc/guix.texi:265 guix-git/doc/guix.texi:5122
  3281. msgid "Communicating information to channel's users."
  3282. msgstr ""
  3283. #. type: node
  3284. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3285. #: guix-git/doc/guix.texi:5643
  3286. #, fuzzy, no-wrap
  3287. #| msgid "Invoking guix size"
  3288. msgid "Invoking guix shell"
  3289. msgstr "调用guix size"
  3290. #. type: menuentry
  3291. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3292. #, fuzzy
  3293. #| msgid "Preparing the isolated build environment."
  3294. msgid "Spawning one-off software environments."
  3295. msgstr "准备隔离的构建环境。"
  3296. #. type: node
  3297. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3298. #: guix-git/doc/guix.texi:6015
  3299. #, no-wrap
  3300. msgid "Invoking guix environment"
  3301. msgstr "调用guix environment"
  3302. #. type: menuentry
  3303. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3304. msgid "Setting up development environments."
  3305. msgstr "设置开发环境。"
  3306. #. type: node
  3307. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3308. #: guix-git/doc/guix.texi:6390
  3309. #, no-wrap
  3310. msgid "Invoking guix pack"
  3311. msgstr "调用guix pack"
  3312. #. type: menuentry
  3313. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3314. msgid "Creating software bundles."
  3315. msgstr "创建软件bundle。"
  3316. #. type: section
  3317. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3318. #: guix-git/doc/guix.texi:6776 guix-git/doc/guix.texi:6777
  3319. #, no-wrap
  3320. msgid "The GCC toolchain"
  3321. msgstr ""
  3322. #. type: menuentry
  3323. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3324. msgid "Working with languages supported by GCC."
  3325. msgstr ""
  3326. #. type: node
  3327. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3328. #: guix-git/doc/guix.texi:6802
  3329. #, fuzzy, no-wrap
  3330. msgid "Invoking guix git authenticate"
  3331. msgstr "调用guix edit。"
  3332. #. type: menuentry
  3333. #: guix-git/doc/guix.texi:273 guix-git/doc/guix.texi:5641
  3334. #, fuzzy
  3335. msgid "Authenticating Git repositories."
  3336. msgstr "认证HTTPS服务器。"
  3337. #. type: section
  3338. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3339. #: guix-git/doc/guix.texi:6907 guix-git/doc/guix.texi:6908
  3340. #, no-wrap
  3341. msgid "Package Modules"
  3342. msgstr "软件包模块"
  3343. #. type: menuentry
  3344. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3345. msgid "Packages from the programmer's viewpoint."
  3346. msgstr "从程序员的角度看软件包。"
  3347. #. type: section
  3348. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:290
  3349. #: guix-git/doc/guix.texi:6905 guix-git/doc/guix.texi:6969
  3350. #: guix-git/doc/guix.texi:6970
  3351. #, no-wrap
  3352. msgid "Defining Packages"
  3353. msgstr "定义软件包"
  3354. #. type: menuentry
  3355. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3356. msgid "Defining new packages."
  3357. msgstr "定义新软件包。"
  3358. #. type: section
  3359. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3360. #: guix-git/doc/guix.texi:7634 guix-git/doc/guix.texi:7635
  3361. #, fuzzy, no-wrap
  3362. msgid "Defining Package Variants"
  3363. msgstr "定义软件包"
  3364. #. type: menuentry
  3365. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3366. #, fuzzy
  3367. msgid "Customizing packages."
  3368. msgstr "构建软件包。"
  3369. #. type: section
  3370. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3371. #: guix-git/doc/guix.texi:7901 guix-git/doc/guix.texi:7902
  3372. #, no-wrap
  3373. msgid "Build Systems"
  3374. msgstr "构建系统"
  3375. #. type: menuentry
  3376. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3377. msgid "Specifying how packages are built."
  3378. msgstr "指定如何构建软件包。"
  3379. #. type: subsection
  3380. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3381. #: guix-git/doc/guix.texi:8940 guix-git/doc/guix.texi:8941
  3382. #: guix-git/doc/guix.texi:9449
  3383. #, fuzzy, no-wrap
  3384. msgid "Build Phases"
  3385. msgstr "构建系统"
  3386. #. type: menuentry
  3387. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3388. msgid "Phases of the build process of a package."
  3389. msgstr ""
  3390. #. type: section
  3391. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3392. #: guix-git/doc/guix.texi:9138 guix-git/doc/guix.texi:9139
  3393. #, fuzzy, no-wrap
  3394. msgid "Build Utilities"
  3395. msgstr "工具"
  3396. #. type: menuentry
  3397. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3398. #, fuzzy
  3399. msgid "Helpers for your package definitions and more."
  3400. msgstr "导入软件包定义。"
  3401. #. type: section
  3402. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3403. #: guix-git/doc/guix.texi:9608 guix-git/doc/guix.texi:9609
  3404. #, no-wrap
  3405. msgid "Search Paths"
  3406. msgstr ""
  3407. #. type: menuentry
  3408. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3409. #, fuzzy
  3410. #| msgid "Preparing the isolated build environment."
  3411. msgid "Declaring search path environment variables."
  3412. msgstr "准备隔离的构建环境。"
  3413. #. type: section
  3414. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3415. #: guix-git/doc/guix.texi:9787 guix-git/doc/guix.texi:9788
  3416. #, no-wrap
  3417. msgid "The Store"
  3418. msgstr "仓库"
  3419. #. type: menuentry
  3420. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3421. msgid "Manipulating the package store."
  3422. msgstr "操纵软件包仓库。"
  3423. #. type: section
  3424. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3425. #: guix-git/doc/guix.texi:9940 guix-git/doc/guix.texi:9941
  3426. #, no-wrap
  3427. msgid "Derivations"
  3428. msgstr ""
  3429. #. type: menuentry
  3430. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3431. msgid "Low-level interface to package derivations."
  3432. msgstr "软件包derivation的底层接口。"
  3433. #. type: section
  3434. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3435. #: guix-git/doc/guix.texi:10134 guix-git/doc/guix.texi:10135
  3436. #, no-wrap
  3437. msgid "The Store Monad"
  3438. msgstr "仓库monad"
  3439. #. type: menuentry
  3440. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3441. msgid "Purely functional interface to the store."
  3442. msgstr "仓库的纯函数式接口。"
  3443. #. type: section
  3444. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3445. #: guix-git/doc/guix.texi:10453 guix-git/doc/guix.texi:10454
  3446. #, no-wrap
  3447. msgid "G-Expressions"
  3448. msgstr "G-表达式"
  3449. #. type: menuentry
  3450. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3451. msgid "Manipulating build expressions."
  3452. msgstr "操纵构建表达式。"
  3453. #. type: node
  3454. #: guix-git/doc/guix.texi:288 guix-git/doc/guix.texi:6905
  3455. #: guix-git/doc/guix.texi:11092
  3456. #, no-wrap
  3457. msgid "Invoking guix repl"
  3458. msgstr "调用guix repl"
  3459. #. type: menuentry
  3460. #: guix-git/doc/guix.texi:288
  3461. #, fuzzy
  3462. msgid "Programming Guix in Guile."
  3463. msgstr "编程索引"
  3464. #. type: node
  3465. #: guix-git/doc/guix.texi:293 guix-git/doc/guix.texi:7166
  3466. #: guix-git/doc/guix.texi:7169
  3467. #, no-wrap
  3468. msgid "package Reference"
  3469. msgstr "软件包引用"
  3470. #. type: menuentry
  3471. #: guix-git/doc/guix.texi:293 guix-git/doc/guix.texi:7166
  3472. msgid "The package data type."
  3473. msgstr "软件包数据类型。"
  3474. #. type: node
  3475. #: guix-git/doc/guix.texi:293 guix-git/doc/guix.texi:7166
  3476. #: guix-git/doc/guix.texi:7442
  3477. #, no-wrap
  3478. msgid "origin Reference"
  3479. msgstr "origin参考手册"
  3480. #. type: menuentry
  3481. #: guix-git/doc/guix.texi:293 guix-git/doc/guix.texi:7166
  3482. msgid "The origin data type."
  3483. msgstr "origin数据类型。"
  3484. #. type: node
  3485. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3486. #: guix-git/doc/guix.texi:11219
  3487. #, no-wrap
  3488. msgid "Invoking guix build"
  3489. msgstr "调用guix build"
  3490. #. type: menuentry
  3491. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3492. msgid "Building packages from the command line."
  3493. msgstr "用命令行构建软件包。"
  3494. #. type: node
  3495. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3496. #: guix-git/doc/guix.texi:12117
  3497. #, no-wrap
  3498. msgid "Invoking guix edit"
  3499. msgstr "调用guix edit。"
  3500. #. type: menuentry
  3501. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3502. msgid "Editing package definitions."
  3503. msgstr "编辑软件包定义。"
  3504. #. type: node
  3505. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3506. #: guix-git/doc/guix.texi:12147
  3507. #, no-wrap
  3508. msgid "Invoking guix download"
  3509. msgstr "调用guix download"
  3510. #. type: menuentry
  3511. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3512. msgid "Downloading a file and printing its hash."
  3513. msgstr "下载一个文件并打印它的hash。"
  3514. #. type: node
  3515. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3516. #: guix-git/doc/guix.texi:12205
  3517. #, no-wrap
  3518. msgid "Invoking guix hash"
  3519. msgstr "调用guix hash"
  3520. #. type: menuentry
  3521. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3522. msgid "Computing the cryptographic hash of a file."
  3523. msgstr "计算一个文件的密码学hash。"
  3524. #. type: node
  3525. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3526. #: guix-git/doc/guix.texi:12296
  3527. #, no-wrap
  3528. msgid "Invoking guix import"
  3529. msgstr "调用guix import"
  3530. #. type: menuentry
  3531. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3532. msgid "Importing package definitions."
  3533. msgstr "导入软件包定义。"
  3534. #. type: node
  3535. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3536. #: guix-git/doc/guix.texi:12831
  3537. #, no-wrap
  3538. msgid "Invoking guix refresh"
  3539. msgstr "调用guix refresh"
  3540. #. type: menuentry
  3541. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3542. msgid "Updating package definitions."
  3543. msgstr "更新软件包定义。"
  3544. #. type: node
  3545. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3546. #: guix-git/doc/guix.texi:13203
  3547. #, fuzzy, no-wrap
  3548. #| msgid "Invoking guix system"
  3549. msgid "Invoking guix style"
  3550. msgstr "调用guix system"
  3551. #. type: menuentry
  3552. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3553. #, fuzzy
  3554. #| msgid "Editing package definitions."
  3555. msgid "Styling package definitions."
  3556. msgstr "编辑软件包定义。"
  3557. #. type: node
  3558. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3559. #: guix-git/doc/guix.texi:13341
  3560. #, no-wrap
  3561. msgid "Invoking guix lint"
  3562. msgstr "调用guix lint"
  3563. #. type: menuentry
  3564. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3565. msgid "Finding errors in package definitions."
  3566. msgstr "从软件包定义里寻找错误。"
  3567. #. type: node
  3568. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3569. #: guix-git/doc/guix.texi:13517
  3570. #, no-wrap
  3571. msgid "Invoking guix size"
  3572. msgstr "调用guix size"
  3573. #. type: menuentry
  3574. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3575. msgid "Profiling disk usage."
  3576. msgstr "分析硬盘使用情况。"
  3577. #. type: node
  3578. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3579. #: guix-git/doc/guix.texi:13661
  3580. #, no-wrap
  3581. msgid "Invoking guix graph"
  3582. msgstr "调用guix graph"
  3583. #. type: menuentry
  3584. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3585. msgid "Visualizing the graph of packages."
  3586. msgstr "展示软件包的关系图。"
  3587. #. type: node
  3588. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3589. #: guix-git/doc/guix.texi:13942
  3590. #, no-wrap
  3591. msgid "Invoking guix publish"
  3592. msgstr "调用guix publish"
  3593. #. type: menuentry
  3594. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3595. msgid "Sharing substitutes."
  3596. msgstr "分享substitute。"
  3597. #. type: node
  3598. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3599. #: guix-git/doc/guix.texi:14211
  3600. #, no-wrap
  3601. msgid "Invoking guix challenge"
  3602. msgstr "调用guix challenge"
  3603. #. type: menuentry
  3604. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3605. msgid "Challenging substitute servers."
  3606. msgstr "挑战subtitute服务器。"
  3607. #. type: node
  3608. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3609. #: guix-git/doc/guix.texi:14394
  3610. #, no-wrap
  3611. msgid "Invoking guix copy"
  3612. msgstr "调用guix copy"
  3613. #. type: menuentry
  3614. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3615. msgid "Copying to and from a remote store."
  3616. msgstr "复制到远程的仓库,或从远程的仓库复制。"
  3617. #. type: node
  3618. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3619. #: guix-git/doc/guix.texi:14457
  3620. #, no-wrap
  3621. msgid "Invoking guix container"
  3622. msgstr "调用guix container"
  3623. #. type: menuentry
  3624. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3625. msgid "Process isolation."
  3626. msgstr "进程隔离。"
  3627. #. type: node
  3628. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3629. #: guix-git/doc/guix.texi:14511
  3630. #, no-wrap
  3631. msgid "Invoking guix weather"
  3632. msgstr "调用guix weather"
  3633. #. type: menuentry
  3634. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3635. msgid "Assessing substitute availability."
  3636. msgstr "评估substitute的可用性。"
  3637. #. type: node
  3638. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3639. #: guix-git/doc/guix.texi:14641
  3640. #, no-wrap
  3641. msgid "Invoking guix processes"
  3642. msgstr "调用guix processes"
  3643. #. type: menuentry
  3644. #: guix-git/doc/guix.texi:312 guix-git/doc/guix.texi:11217
  3645. msgid "Listing client processes."
  3646. msgstr "列出客户端进程。"
  3647. #. type: section
  3648. #: guix-git/doc/guix.texi:314 guix-git/doc/guix.texi:11220
  3649. #, no-wrap
  3650. msgid "Invoking @command{guix build}"
  3651. msgstr "调用@command{guix build}"
  3652. #. type: subsection
  3653. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3654. #: guix-git/doc/guix.texi:11273 guix-git/doc/guix.texi:11274
  3655. #, no-wrap
  3656. msgid "Common Build Options"
  3657. msgstr "普通的构建选项"
  3658. #. type: menuentry
  3659. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3660. msgid "Build options for most commands."
  3661. msgstr "大部分命令的构建选项。"
  3662. #. type: subsection
  3663. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3664. #: guix-git/doc/guix.texi:11428 guix-git/doc/guix.texi:11429
  3665. #, no-wrap
  3666. msgid "Package Transformation Options"
  3667. msgstr "软件包变换选项。"
  3668. #. type: menuentry
  3669. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3670. msgid "Creating variants of packages."
  3671. msgstr "创建软件包的变体。"
  3672. #. type: subsection
  3673. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3674. #: guix-git/doc/guix.texi:11799 guix-git/doc/guix.texi:11800
  3675. #, no-wrap
  3676. msgid "Additional Build Options"
  3677. msgstr "额外的构建选项"
  3678. #. type: menuentry
  3679. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3680. msgid "Options specific to 'guix build'."
  3681. msgstr "只属于'guix build'的选项。"
  3682. #. type: subsection
  3683. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3684. #: guix-git/doc/guix.texi:12037 guix-git/doc/guix.texi:12038
  3685. #, no-wrap
  3686. msgid "Debugging Build Failures"
  3687. msgstr "调试构建错误"
  3688. #. type: menuentry
  3689. #: guix-git/doc/guix.texi:319 guix-git/doc/guix.texi:11271
  3690. msgid "Real life packaging experience."
  3691. msgstr "真实的打包经验。"
  3692. #. type: section
  3693. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3694. #: guix-git/doc/guix.texi:14785 guix-git/doc/guix.texi:14786
  3695. #, no-wrap
  3696. msgid "Using the Configuration System"
  3697. msgstr "使用配置系统"
  3698. #. type: menuentry
  3699. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3700. msgid "Customizing your GNU system."
  3701. msgstr "定制你的GNU系统。"
  3702. #. type: node
  3703. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3704. #: guix-git/doc/guix.texi:15036
  3705. #, no-wrap
  3706. msgid "operating-system Reference"
  3707. msgstr "操作系统参考"
  3708. #. type: menuentry
  3709. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3710. msgid "Detail of operating-system declarations."
  3711. msgstr "操作系统声明详情。"
  3712. #. type: section
  3713. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3714. #: guix-git/doc/guix.texi:15259 guix-git/doc/guix.texi:15260
  3715. #, no-wrap
  3716. msgid "File Systems"
  3717. msgstr "文件系统"
  3718. #. type: menuentry
  3719. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3720. msgid "Configuring file system mounts."
  3721. msgstr "设置文件系统挂载。"
  3722. #. type: section
  3723. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3724. #: guix-git/doc/guix.texi:15612 guix-git/doc/guix.texi:15613
  3725. #, no-wrap
  3726. msgid "Mapped Devices"
  3727. msgstr "映射的设备"
  3728. #. type: menuentry
  3729. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3730. msgid "Block device extra processing."
  3731. msgstr "块设备额外的处理。"
  3732. #. type: section
  3733. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3734. #: guix-git/doc/guix.texi:15761 guix-git/doc/guix.texi:15762
  3735. #, no-wrap
  3736. msgid "Swap Space"
  3737. msgstr ""
  3738. #. type: menuentry
  3739. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3740. msgid "Backing RAM with disk space."
  3741. msgstr ""
  3742. #. type: section
  3743. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3744. #: guix-git/doc/guix.texi:15878 guix-git/doc/guix.texi:15879
  3745. #, no-wrap
  3746. msgid "User Accounts"
  3747. msgstr "用户帐号"
  3748. #. type: menuentry
  3749. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3750. msgid "Specifying user accounts."
  3751. msgstr "指定用户帐号。"
  3752. #. type: section
  3753. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:2341
  3754. #: guix-git/doc/guix.texi:14783 guix-git/doc/guix.texi:16059
  3755. #: guix-git/doc/guix.texi:16060
  3756. #, no-wrap
  3757. msgid "Keyboard Layout"
  3758. msgstr "键盘布局"
  3759. #. type: menuentry
  3760. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3761. msgid "How the system interprets key strokes."
  3762. msgstr "系统怎样理解按键。"
  3763. #. type: section
  3764. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:1852
  3765. #: guix-git/doc/guix.texi:14783 guix-git/doc/guix.texi:16205
  3766. #: guix-git/doc/guix.texi:16206
  3767. #, no-wrap
  3768. msgid "Locales"
  3769. msgstr "区域"
  3770. #. type: menuentry
  3771. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3772. msgid "Language and cultural convention settings."
  3773. msgstr "语言和文化惯例设置。"
  3774. #. type: section
  3775. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:346
  3776. #: guix-git/doc/guix.texi:14783 guix-git/doc/guix.texi:16345
  3777. #: guix-git/doc/guix.texi:16346
  3778. #, no-wrap
  3779. msgid "Services"
  3780. msgstr "服务"
  3781. #. type: menuentry
  3782. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3783. msgid "Specifying system services."
  3784. msgstr "指定系统服务。"
  3785. #. type: section
  3786. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3787. #: guix-git/doc/guix.texi:34607 guix-git/doc/guix.texi:34608
  3788. #, no-wrap
  3789. msgid "Setuid Programs"
  3790. msgstr "setuid程序"
  3791. #. type: menuentry
  3792. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3793. msgid "Programs running with root privileges."
  3794. msgstr "以root权限运行的程序。"
  3795. #. type: section
  3796. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:2017
  3797. #: guix-git/doc/guix.texi:14783 guix-git/doc/guix.texi:34693
  3798. #: guix-git/doc/guix.texi:34694
  3799. #, no-wrap
  3800. msgid "X.509 Certificates"
  3801. msgstr "X.509证书"
  3802. #. type: menuentry
  3803. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3804. msgid "Authenticating HTTPS servers."
  3805. msgstr "认证HTTPS服务器。"
  3806. #. type: section
  3807. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:1911
  3808. #: guix-git/doc/guix.texi:14783 guix-git/doc/guix.texi:34756
  3809. #: guix-git/doc/guix.texi:34757
  3810. #, no-wrap
  3811. msgid "Name Service Switch"
  3812. msgstr "Name Service Switch"
  3813. #. type: menuentry
  3814. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3815. msgid "Configuring libc's name service switch."
  3816. msgstr "设置libc的name service switch。"
  3817. #. type: section
  3818. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3819. #: guix-git/doc/guix.texi:34894 guix-git/doc/guix.texi:34895
  3820. #, no-wrap
  3821. msgid "Initial RAM Disk"
  3822. msgstr "初始的内存虚拟硬盘"
  3823. #. type: menuentry
  3824. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3825. msgid "Linux-Libre bootstrapping."
  3826. msgstr "Linux-Libre引导。"
  3827. #. type: section
  3828. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3829. #: guix-git/doc/guix.texi:35089 guix-git/doc/guix.texi:35090
  3830. #, no-wrap
  3831. msgid "Bootloader Configuration"
  3832. msgstr "引导设置"
  3833. #. type: menuentry
  3834. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3835. msgid "Configuring the boot loader."
  3836. msgstr "设置引导程序。"
  3837. #. type: node
  3838. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3839. #: guix-git/doc/guix.texi:35387
  3840. #, no-wrap
  3841. msgid "Invoking guix system"
  3842. msgstr "调用guix system"
  3843. #. type: menuentry
  3844. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3845. msgid "Instantiating a system configuration."
  3846. msgstr "实例化一个系统配置。"
  3847. #. type: node
  3848. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3849. #: guix-git/doc/guix.texi:35995
  3850. #, no-wrap
  3851. msgid "Invoking guix deploy"
  3852. msgstr "调用 guix deploy"
  3853. #. type: menuentry
  3854. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3855. #, fuzzy
  3856. msgid "Deploying a system configuration to a remote host."
  3857. msgstr "实例化一个系统配置。"
  3858. #. type: node
  3859. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3860. #: guix-git/doc/guix.texi:36235
  3861. #, no-wrap
  3862. msgid "Running Guix in a VM"
  3863. msgstr "在虚拟机里运行Guix"
  3864. #. type: menuentry
  3865. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3866. msgid "How to run Guix System in a virtual machine."
  3867. msgstr "怎样在虚拟机里运行Guix。"
  3868. #. type: section
  3869. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:382
  3870. #: guix-git/doc/guix.texi:14783 guix-git/doc/guix.texi:36369
  3871. #: guix-git/doc/guix.texi:36370
  3872. #, no-wrap
  3873. msgid "Defining Services"
  3874. msgstr "定义服务"
  3875. #. type: menuentry
  3876. #: guix-git/doc/guix.texi:340 guix-git/doc/guix.texi:14783
  3877. msgid "Adding new service definitions."
  3878. msgstr "添加新的服务定义。"
  3879. #. type: menuentry
  3880. #: guix-git/doc/guix.texi:342
  3881. #, fuzzy
  3882. #| msgid "System Configuration"
  3883. msgid "Home Environment Configuration"
  3884. msgstr "系统配置"
  3885. #. type: node
  3886. #: guix-git/doc/guix.texi:344 guix-git/doc/guix.texi:37548
  3887. #: guix-git/doc/guix.texi:38168
  3888. #, fuzzy, no-wrap
  3889. #| msgid "Invoking guix hash"
  3890. msgid "Invoking guix home"
  3891. msgstr "调用guix hash"
  3892. #. type: menuentry
  3893. #: guix-git/doc/guix.texi:344
  3894. #, fuzzy
  3895. #| msgid "Instantiating a system configuration."
  3896. msgid "Instantiating a home environment configuration."
  3897. msgstr "实例化一个系统配置。"
  3898. #. type: subsection
  3899. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3900. #: guix-git/doc/guix.texi:16431 guix-git/doc/guix.texi:16432
  3901. #, no-wrap
  3902. msgid "Base Services"
  3903. msgstr "基础服务"
  3904. #. type: menuentry
  3905. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3906. msgid "Essential system services."
  3907. msgstr "必要的系统服务。"
  3908. #. type: subsection
  3909. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3910. #: guix-git/doc/guix.texi:17367 guix-git/doc/guix.texi:17368
  3911. #, no-wrap
  3912. msgid "Scheduled Job Execution"
  3913. msgstr "执行计划任务"
  3914. #. type: menuentry
  3915. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3916. msgid "The mcron service."
  3917. msgstr "mcron服务。"
  3918. #. type: subsection
  3919. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3920. #: guix-git/doc/guix.texi:17517 guix-git/doc/guix.texi:17518
  3921. #, no-wrap
  3922. msgid "Log Rotation"
  3923. msgstr "日志轮替"
  3924. #. type: menuentry
  3925. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3926. msgid "The rottlog service."
  3927. msgstr "rottlog服务。"
  3928. #. type: subsection
  3929. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3930. #: guix-git/doc/guix.texi:17630 guix-git/doc/guix.texi:17631
  3931. #, fuzzy, no-wrap
  3932. #| msgid "Networking Services"
  3933. msgid "Networking Setup"
  3934. msgstr "网络服务"
  3935. #. type: menuentry
  3936. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3937. #, fuzzy
  3938. #| msgid "user interfaces"
  3939. msgid "Setting up network interfaces."
  3940. msgstr "用户界面"
  3941. #. type: subsection
  3942. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3943. #: guix-git/doc/guix.texi:18048 guix-git/doc/guix.texi:18049
  3944. #, no-wrap
  3945. msgid "Networking Services"
  3946. msgstr "网络服务"
  3947. #. type: menuentry
  3948. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3949. #, fuzzy
  3950. #| msgid "Network setup, SSH daemon, etc."
  3951. msgid "Firewall, SSH daemon, etc."
  3952. msgstr "网络设置,SSH后台进程,等"
  3953. #. type: subsection
  3954. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3955. #: guix-git/doc/guix.texi:19507 guix-git/doc/guix.texi:19508
  3956. #, no-wrap
  3957. msgid "Unattended Upgrades"
  3958. msgstr ""
  3959. #. type: menuentry
  3960. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3961. msgid "Automated system upgrades."
  3962. msgstr ""
  3963. #. type: subsection
  3964. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3965. #: guix-git/doc/guix.texi:19645 guix-git/doc/guix.texi:19646
  3966. #, no-wrap
  3967. msgid "X Window"
  3968. msgstr "X窗口"
  3969. #. type: menuentry
  3970. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3971. msgid "Graphical display."
  3972. msgstr "图形显示器。"
  3973. #. type: subsection
  3974. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3975. #: guix-git/doc/guix.texi:20043 guix-git/doc/guix.texi:20044
  3976. #, no-wrap
  3977. msgid "Printing Services"
  3978. msgstr "打印服务"
  3979. #. type: menuentry
  3980. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3981. msgid "Local and remote printer support."
  3982. msgstr "本地和远程打印机的支持。"
  3983. #. type: subsection
  3984. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3985. #: guix-git/doc/guix.texi:20896 guix-git/doc/guix.texi:20897
  3986. #, no-wrap
  3987. msgid "Desktop Services"
  3988. msgstr "桌面服务"
  3989. #. type: menuentry
  3990. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3991. msgid "D-Bus and desktop services."
  3992. msgstr "D-Bus和桌面服务。"
  3993. #. type: subsection
  3994. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  3995. #: guix-git/doc/guix.texi:21415 guix-git/doc/guix.texi:21416
  3996. #, no-wrap
  3997. msgid "Sound Services"
  3998. msgstr "声音服务"
  3999. #. type: menuentry
  4000. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4001. msgid "ALSA and Pulseaudio services."
  4002. msgstr "ALSA和Pulseaudio服务。"
  4003. #. type: subsection
  4004. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4005. #: guix-git/doc/guix.texi:21588 guix-git/doc/guix.texi:21589
  4006. #, no-wrap
  4007. msgid "Database Services"
  4008. msgstr "数据库服务"
  4009. #. type: menuentry
  4010. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4011. msgid "SQL databases, key-value stores, etc."
  4012. msgstr "SQL数据库,键值仓库,等"
  4013. #. type: subsection
  4014. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4015. #: guix-git/doc/guix.texi:21923 guix-git/doc/guix.texi:21924
  4016. #, no-wrap
  4017. msgid "Mail Services"
  4018. msgstr "邮件服务"
  4019. #. type: menuentry
  4020. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4021. msgid "IMAP, POP3, SMTP, and all that."
  4022. msgstr "IMAP,POP3,SMTP,等"
  4023. #. type: subsection
  4024. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4025. #: guix-git/doc/guix.texi:23782 guix-git/doc/guix.texi:23783
  4026. #, no-wrap
  4027. msgid "Messaging Services"
  4028. msgstr "消息服务"
  4029. #. type: menuentry
  4030. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4031. msgid "Messaging services."
  4032. msgstr "消息服务。"
  4033. #. type: subsection
  4034. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4035. #: guix-git/doc/guix.texi:24285 guix-git/doc/guix.texi:24286
  4036. #, no-wrap
  4037. msgid "Telephony Services"
  4038. msgstr "电话服务"
  4039. #. type: menuentry
  4040. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4041. msgid "Telephony services."
  4042. msgstr "电话服务。"
  4043. #. type: subsection
  4044. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4045. #: guix-git/doc/guix.texi:25516 guix-git/doc/guix.texi:25517
  4046. #, no-wrap
  4047. msgid "Monitoring Services"
  4048. msgstr "监控服务"
  4049. #. type: menuentry
  4050. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4051. msgid "Monitoring services."
  4052. msgstr "监控服务。"
  4053. #. type: subsection
  4054. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4055. #: guix-git/doc/guix.texi:25937 guix-git/doc/guix.texi:25938
  4056. #, no-wrap
  4057. msgid "Kerberos Services"
  4058. msgstr "Kerberos服务"
  4059. #. type: menuentry
  4060. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4061. msgid "Kerberos services."
  4062. msgstr "Kerberos服务。"
  4063. #. type: subsection
  4064. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4065. #: guix-git/doc/guix.texi:26063 guix-git/doc/guix.texi:26064
  4066. #, no-wrap
  4067. msgid "LDAP Services"
  4068. msgstr ""
  4069. #. type: menuentry
  4070. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4071. msgid "LDAP services."
  4072. msgstr ""
  4073. #. type: subsection
  4074. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4075. #: guix-git/doc/guix.texi:26542 guix-git/doc/guix.texi:26543
  4076. #, no-wrap
  4077. msgid "Web Services"
  4078. msgstr "Web服务"
  4079. #. type: menuentry
  4080. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4081. msgid "Web servers."
  4082. msgstr "Web服务。"
  4083. #. type: subsection
  4084. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4085. #: guix-git/doc/guix.texi:27753 guix-git/doc/guix.texi:27754
  4086. #, no-wrap
  4087. msgid "Certificate Services"
  4088. msgstr "证书服务"
  4089. #. type: menuentry
  4090. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4091. msgid "TLS certificates via Let's Encrypt."
  4092. msgstr "Let's Encrypt TLS证书。"
  4093. #. type: subsection
  4094. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4095. #: guix-git/doc/guix.texi:27934 guix-git/doc/guix.texi:27935
  4096. #, no-wrap
  4097. msgid "DNS Services"
  4098. msgstr "DNS服务"
  4099. #. type: menuentry
  4100. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4101. msgid "DNS daemons."
  4102. msgstr "DNS后台进程。"
  4103. #. type: subsection
  4104. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4105. #: guix-git/doc/guix.texi:28679 guix-git/doc/guix.texi:28680
  4106. #, no-wrap
  4107. msgid "VPN Services"
  4108. msgstr "VPN服务"
  4109. #. type: menuentry
  4110. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4111. msgid "VPN daemons."
  4112. msgstr "VPN后台进程。"
  4113. #. type: subsection
  4114. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4115. #: guix-git/doc/guix.texi:29191 guix-git/doc/guix.texi:29192
  4116. #, no-wrap
  4117. msgid "Network File System"
  4118. msgstr "网络文件系统"
  4119. #. type: menuentry
  4120. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4121. msgid "NFS related services."
  4122. msgstr "网络文件系统相关的服务。"
  4123. #. type: subsection
  4124. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4125. #: guix-git/doc/guix.texi:29387 guix-git/doc/guix.texi:29388
  4126. #, no-wrap
  4127. msgid "Continuous Integration"
  4128. msgstr "持续集成"
  4129. #. type: menuentry
  4130. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4131. #, fuzzy
  4132. msgid "Cuirass and Laminar services."
  4133. msgstr "Cuirass服务。"
  4134. #. type: subsection
  4135. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4136. #: guix-git/doc/guix.texi:29673 guix-git/doc/guix.texi:29674
  4137. #, no-wrap
  4138. msgid "Power Management Services"
  4139. msgstr "电源管理服务"
  4140. #. type: menuentry
  4141. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4142. msgid "Extending battery life."
  4143. msgstr "延长电池寿命。"
  4144. #. type: subsection
  4145. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4146. #: guix-git/doc/guix.texi:30235 guix-git/doc/guix.texi:30236
  4147. #, no-wrap
  4148. msgid "Audio Services"
  4149. msgstr "音频服务"
  4150. #. type: menuentry
  4151. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4152. msgid "The MPD."
  4153. msgstr "MPD。"
  4154. #. type: subsection
  4155. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4156. #: guix-git/doc/guix.texi:30354 guix-git/doc/guix.texi:30355
  4157. #, no-wrap
  4158. msgid "Virtualization Services"
  4159. msgstr "虚拟化服务"
  4160. #. type: menuentry
  4161. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4162. msgid "Virtualization services."
  4163. msgstr "虚拟化服务。"
  4164. #. type: subsection
  4165. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4166. #: guix-git/doc/guix.texi:32026 guix-git/doc/guix.texi:32027
  4167. #, no-wrap
  4168. msgid "Version Control Services"
  4169. msgstr "版本控制服务"
  4170. #. type: menuentry
  4171. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4172. msgid "Providing remote access to Git repositories."
  4173. msgstr "远程访问Git仓库。"
  4174. #. type: subsection
  4175. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4176. #: guix-git/doc/guix.texi:33362 guix-git/doc/guix.texi:33363
  4177. #, no-wrap
  4178. msgid "Game Services"
  4179. msgstr "游戏服务"
  4180. #. type: menuentry
  4181. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4182. msgid "Game servers."
  4183. msgstr "游戏服务器。"
  4184. #. type: subsection
  4185. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4186. #: guix-git/doc/guix.texi:33394 guix-git/doc/guix.texi:33395
  4187. #, fuzzy, no-wrap
  4188. msgid "PAM Mount Service"
  4189. msgstr "声音服务"
  4190. #. type: menuentry
  4191. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4192. msgid "Service to mount volumes when logging in."
  4193. msgstr ""
  4194. #. type: subsection
  4195. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4196. #: guix-git/doc/guix.texi:33477 guix-git/doc/guix.texi:33478
  4197. #, fuzzy, no-wrap
  4198. msgid "Guix Services"
  4199. msgstr "音频服务"
  4200. #. type: menuentry
  4201. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4202. msgid "Services relating specifically to Guix."
  4203. msgstr ""
  4204. #. type: subsection
  4205. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4206. #: guix-git/doc/guix.texi:33841 guix-git/doc/guix.texi:33842
  4207. #, fuzzy, no-wrap
  4208. msgid "Linux Services"
  4209. msgstr "邮件服务"
  4210. #. type: menuentry
  4211. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4212. msgid "Services tied to the Linux kernel."
  4213. msgstr ""
  4214. #. type: subsection
  4215. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4216. #: guix-git/doc/guix.texi:34068 guix-git/doc/guix.texi:34069
  4217. #, fuzzy, no-wrap
  4218. msgid "Hurd Services"
  4219. msgstr "声音服务"
  4220. #. type: menuentry
  4221. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4222. msgid "Services specific for a Hurd System."
  4223. msgstr ""
  4224. #. type: subsection
  4225. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4226. #: guix-git/doc/guix.texi:34110 guix-git/doc/guix.texi:34111
  4227. #, no-wrap
  4228. msgid "Miscellaneous Services"
  4229. msgstr "其它各种服务"
  4230. #. type: menuentry
  4231. #: guix-git/doc/guix.texi:380 guix-git/doc/guix.texi:16429
  4232. msgid "Other services."
  4233. msgstr "其它服务。"
  4234. #. type: subsection
  4235. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4236. #: guix-git/doc/guix.texi:36384 guix-git/doc/guix.texi:36385
  4237. #, no-wrap
  4238. msgid "Service Composition"
  4239. msgstr "合成服务"
  4240. #. type: menuentry
  4241. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4242. msgid "The model for composing services."
  4243. msgstr "服务合成的模型。"
  4244. #. type: subsection
  4245. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4246. #: guix-git/doc/guix.texi:36440 guix-git/doc/guix.texi:36441
  4247. #, no-wrap
  4248. msgid "Service Types and Services"
  4249. msgstr "服务类型和服务"
  4250. #. type: menuentry
  4251. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4252. msgid "Types and services."
  4253. msgstr "类型和服务。"
  4254. #. type: subsection
  4255. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4256. #: guix-git/doc/guix.texi:36577 guix-git/doc/guix.texi:36578
  4257. #, no-wrap
  4258. msgid "Service Reference"
  4259. msgstr "服务参考"
  4260. #. type: menuentry
  4261. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4262. msgid "API reference."
  4263. msgstr "API参考。"
  4264. #. type: subsection
  4265. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4266. #: guix-git/doc/guix.texi:36896 guix-git/doc/guix.texi:36897
  4267. #, no-wrap
  4268. msgid "Shepherd Services"
  4269. msgstr "Shepherd服务"
  4270. #. type: menuentry
  4271. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4272. msgid "A particular type of service."
  4273. msgstr "一种特别的服务。"
  4274. #. type: subsection
  4275. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4276. #: guix-git/doc/guix.texi:37115 guix-git/doc/guix.texi:37116
  4277. #, fuzzy, no-wrap
  4278. #| msgid "System Configuration"
  4279. msgid "Complex Configurations"
  4280. msgstr "系统配置"
  4281. #. type: menuentry
  4282. #: guix-git/doc/guix.texi:388 guix-git/doc/guix.texi:36382
  4283. #, fuzzy
  4284. #| msgid "Instantiating a system configuration."
  4285. msgid "Defining bindings for complex configurations."
  4286. msgstr "实例化一个系统配置。"
  4287. #. type: section
  4288. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:38487
  4289. #: guix-git/doc/guix.texi:38489 guix-git/doc/guix.texi:38490
  4290. #, no-wrap
  4291. msgid "Separate Debug Info"
  4292. msgstr ""
  4293. #. type: menuentry
  4294. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:38487
  4295. #, fuzzy
  4296. msgid "Installing 'debug' outputs."
  4297. msgstr "安装调试文件"
  4298. #. type: section
  4299. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:38487
  4300. #: guix-git/doc/guix.texi:38562 guix-git/doc/guix.texi:38563
  4301. #, no-wrap
  4302. msgid "Rebuilding Debug Info"
  4303. msgstr ""
  4304. #. type: menuentry
  4305. #: guix-git/doc/guix.texi:393 guix-git/doc/guix.texi:38487
  4306. msgid "Building missing debug info."
  4307. msgstr ""
  4308. #. type: node
  4309. #: guix-git/doc/guix.texi:398 guix-git/doc/guix.texi:38779
  4310. #: guix-git/doc/guix.texi:38781
  4311. #, no-wrap
  4312. msgid "Reduced Binary Seed Bootstrap"
  4313. msgstr ""
  4314. #. type: menuentry
  4315. #: guix-git/doc/guix.texi:398 guix-git/doc/guix.texi:38779
  4316. msgid "A Bootstrap worthy of GNU."
  4317. msgstr ""
  4318. #. type: section
  4319. #: guix-git/doc/guix.texi:398 guix-git/doc/guix.texi:38779
  4320. #: guix-git/doc/guix.texi:38856 guix-git/doc/guix.texi:38857
  4321. #, no-wrap
  4322. msgid "Preparing to Use the Bootstrap Binaries"
  4323. msgstr ""
  4324. #. type: menuentry
  4325. #: guix-git/doc/guix.texi:398 guix-git/doc/guix.texi:38779
  4326. msgid "Building that what matters most."
  4327. msgstr ""
  4328. #. type: cindex
  4329. #: guix-git/doc/guix.texi:406
  4330. #, no-wrap
  4331. msgid "purpose"
  4332. msgstr "目的"
  4333. #. type: Plain text
  4334. #: guix-git/doc/guix.texi:414
  4335. 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."
  4336. msgstr "GNU Guix@footnote{``Guix''读做``geeks'',或``ɡiːks''(国际音标)}是GNU系统的包管理器和发行版。Guix让无特权的用户可以轻松地安装,升级,或删除软件包,回滚到前一个软件包集合,从源代码构建软件包,及辅助软件环境的创建和维护。"
  4337. #. type: cindex
  4338. #: guix-git/doc/guix.texi:415 guix-git/doc/guix.texi:490
  4339. #, no-wrap
  4340. msgid "Guix System"
  4341. msgstr "Guix系统"
  4342. #. type: cindex
  4343. #: guix-git/doc/guix.texi:416
  4344. #, no-wrap
  4345. msgid "GuixSD, now Guix System"
  4346. msgstr "GuixSD,现在称为Guix系统"
  4347. #. type: cindex
  4348. #: guix-git/doc/guix.texi:417
  4349. #, no-wrap
  4350. msgid "Guix System Distribution, now Guix System"
  4351. msgstr "Guix系统发行版,现在称为Guix系统"
  4352. #. type: Plain text
  4353. #: guix-git/doc/guix.texi:426
  4354. 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}."
  4355. msgstr "你可以在现有的GNU/Linux发行版上安装GNU@tie{}Guix(@pxref{Installation}),Guix可以补充已有的工具,并且不会和它们产生冲突。或者你可以把它当作独立的操作系统发行版(@dfn{Guix@tie{}系统}@footnote{我们以前把Guix系统称为``Guix系统发行版''或``GuixSD''。我们现在觉得把一切都统一在``Guix''的旗帜下更合理,因为,毕竟即使在别的发行版上你也可以随时通过@command{guix system}命令获得Guix系统})。@xref{GNU Distribution}."
  4356. #. type: cindex
  4357. #: guix-git/doc/guix.texi:435
  4358. #, no-wrap
  4359. msgid "user interfaces"
  4360. msgstr "用户界面"
  4361. #. type: Plain text
  4362. #: guix-git/doc/guix.texi:441
  4363. #, fuzzy
  4364. 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})."
  4365. msgstr "Guix提供了命令行软件包管理接口(@pxref{Package Management}),辅助软件开发的工具(@pxref{Development}),高级用法的命令行接口(@pxref{Utilities}),以及Scheme编程语言接口(@pxref{Programming Interface})。"
  4366. #. type: cindex
  4367. #: guix-git/doc/guix.texi:441
  4368. #, no-wrap
  4369. msgid "build daemon"
  4370. msgstr "构建后台进程"
  4371. #. type: Plain text
  4372. #: guix-git/doc/guix.texi:445
  4373. 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})."
  4374. msgstr "@dfn{构建后台进程}为用户构建软件包(@pxref{Setting Up the Daemon}),及从授权的源(@pxref{Substitutes})下载预构建的二进制文件。"
  4375. #. type: cindex
  4376. #: guix-git/doc/guix.texi:446
  4377. #, no-wrap
  4378. msgid "extensibility of the distribution"
  4379. msgstr "发行版的扩展性"
  4380. #. type: cindex
  4381. #: guix-git/doc/guix.texi:447 guix-git/doc/guix.texi:6929
  4382. #, no-wrap
  4383. msgid "customization, of packages"
  4384. msgstr "定制软件包"
  4385. #. type: Plain text
  4386. #: guix-git/doc/guix.texi:456
  4387. 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})."
  4388. 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})。"
  4389. #. type: cindex
  4390. #: guix-git/doc/guix.texi:457
  4391. #, no-wrap
  4392. msgid "functional package management"
  4393. msgstr "函数式包管理器"
  4394. #. type: cindex
  4395. #: guix-git/doc/guix.texi:458
  4396. #, no-wrap
  4397. msgid "isolation"
  4398. msgstr "隔离"
  4399. #. type: Plain text
  4400. #: guix-git/doc/guix.texi:473
  4401. 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."
  4402. msgstr "在底层,Guix实现了由Nix(@pxref{Acknowledgments})开创的@dfn{函数式包管理器}。在Guix里,软件包构建和安装过程被视为数学意义上的@emph{函数}。函数获取输入,如构建脚本、编译器和库,并且返回一个安装好的软件包。作为一个纯函数,它的结果只取决于它的输入--例如,它不能引用没有作为显式输入传入的软件和脚本。当传入特定的输入时,一个构建函数总是得到相同的结果。它不能以任何方式修改运行系统的环境,例如,它不能创建,修改,或删除构建和安装环境之外的文件夹。这是通过在隔离的环境(@dfn{容器})里运行构建进程实现的,在这个环境里只能访问到显式的输入。"
  4403. #. type: cindex
  4404. #: guix-git/doc/guix.texi:474 guix-git/doc/guix.texi:9790
  4405. #, no-wrap
  4406. msgid "store"
  4407. msgstr "仓库"
  4408. #. type: Plain text
  4409. #: guix-git/doc/guix.texi:481
  4410. 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."
  4411. msgstr "软件包构建函数的结果被@dfn{缓存}在文件系统里的一个叫做@dfn{仓库}(@pxref{The Store})的特殊文件夹内。每个软件包都被安装在仓库(默认在@file{/gnu/store})里的一个独立的文件夹内。这个文件夹的名字含有用于构建这个软件包的所有输入的hash,所以,修改输入会得到一个不同的文件夹名。"
  4412. #. type: Plain text
  4413. #: guix-git/doc/guix.texi:485
  4414. 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})."
  4415. msgstr "这种手段是实现Guix的突出功能的基础:对事务型软件包升级和回滚的支持,每个用户独立的安装,软件包垃圾回收@pxref{Features}。"
  4416. #. type: Plain text
  4417. #: guix-git/doc/guix.texi:500
  4418. 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."
  4419. msgstr "Guix提供了一个GNU系统发行版,这个发新版只包含自由软件@footnote{这里的“自由”指的是@url{https://www.gnu.org/philosophy/free-sw.html,软件提供给用户的自由}。}。这个发行版可以独立安装(@pxref{System Installation}),但是把Guix安装为一个已经安装好的GNU/Linux系统的包管理器也是可行的(@pxref{Installation})。当我们需要区分这两者时,我们把独立的发行版称为“Guix系统”。"
  4420. #. type: Plain text
  4421. #: guix-git/doc/guix.texi:506
  4422. 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}):"
  4423. msgstr "这个发行版提供了GNU核心软件包,如libc、gcc和Binutils,以及很多GNU和非GNU应用程序。可用的软件包的完整列表可以在@url{https://www.gnu.org/software/guix/packages,on-line}浏览,或者通过运行@command{guix package}(@pxref{Invoking guix package})获得:"
  4424. #. type: example
  4425. #: guix-git/doc/guix.texi:509
  4426. #, no-wrap
  4427. msgid "guix package --list-available\n"
  4428. msgstr "guix package --list-available\n"
  4429. #. type: Plain text
  4430. #: guix-git/doc/guix.texi:515
  4431. 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."
  4432. msgstr "我们的目标是提供一个基于Linux和其它GNU变体的可用的100%自由的软件发行版,我们的重点是推广和紧密集成GNU组件,以及强调帮助用户行使那些自由的程序和工具。"
  4433. #. type: Plain text
  4434. #: guix-git/doc/guix.texi:517
  4435. msgid "Packages are currently available on the following platforms:"
  4436. msgstr "目前这些平台提供软件包:"
  4437. #. type: item
  4438. #: guix-git/doc/guix.texi:520 guix-git/doc/guix.texi:2188
  4439. #, no-wrap
  4440. msgid "x86_64-linux"
  4441. msgstr "x86_64-linux"
  4442. #. type: table
  4443. #: guix-git/doc/guix.texi:522
  4444. msgid "Intel/AMD @code{x86_64} architecture, Linux-Libre kernel."
  4445. msgstr "Intel/AMD @code{x86_64} 架构,Linux-Libre 内核。"
  4446. #. type: item
  4447. #: guix-git/doc/guix.texi:523 guix-git/doc/guix.texi:2191
  4448. #, no-wrap
  4449. msgid "i686-linux"
  4450. msgstr "i686-linux"
  4451. #. type: table
  4452. #: guix-git/doc/guix.texi:525
  4453. msgid "Intel 32-bit architecture (IA32), Linux-Libre kernel."
  4454. msgstr "Intel 32 位架构(IA32),Linux-Libre 内核。"
  4455. #. type: item
  4456. #: guix-git/doc/guix.texi:526
  4457. #, no-wrap
  4458. msgid "armhf-linux"
  4459. msgstr "armhf-linux"
  4460. #. type: table
  4461. #: guix-git/doc/guix.texi:530
  4462. msgid "ARMv7-A architecture with hard float, Thumb-2 and NEON, using the EABI hard-float application binary interface (ABI), and Linux-Libre kernel."
  4463. msgstr "ARMv7-A架构,带硬件浮点数、Thumb-2和NEON扩展,EABI硬件浮点数应用二进制接口(ABI),和Linux-Libre内核。"
  4464. #. type: item
  4465. #: guix-git/doc/guix.texi:531
  4466. #, no-wrap
  4467. msgid "aarch64-linux"
  4468. msgstr "aarch64-linux"
  4469. #. type: table
  4470. #: guix-git/doc/guix.texi:533
  4471. #, fuzzy
  4472. msgid "little-endian 64-bit ARMv8-A processors, Linux-Libre kernel."
  4473. msgstr "小端序64位MIPS处理器,龙芯系列,n32 ABI,Linux-Libre内核。"
  4474. #. type: item
  4475. #: guix-git/doc/guix.texi:534
  4476. #, no-wrap
  4477. msgid "i586-gnu"
  4478. msgstr ""
  4479. #. type: table
  4480. #: guix-git/doc/guix.texi:537
  4481. msgid "@uref{https://hurd.gnu.org, GNU/Hurd} on the Intel 32-bit architecture (IA32)."
  4482. msgstr ""
  4483. #. type: table
  4484. #: guix-git/doc/guix.texi:543
  4485. 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!"
  4486. msgstr ""
  4487. #. type: item
  4488. #: guix-git/doc/guix.texi:544
  4489. #, fuzzy, no-wrap
  4490. msgid "mips64el-linux (unsupported)"
  4491. msgstr "mips64el-linux"
  4492. #. type: table
  4493. #: guix-git/doc/guix.texi:550
  4494. 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."
  4495. msgstr ""
  4496. #. type: item
  4497. #: guix-git/doc/guix.texi:551
  4498. #, no-wrap
  4499. msgid "powerpc-linux (unsupported)"
  4500. msgstr ""
  4501. #. type: table
  4502. #: guix-git/doc/guix.texi:556
  4503. msgid "big-endian 32-bit PowerPC processors, specifically the PowerPC G4 with AltiVec support, and Linux-Libre kernel. This configuration is not fully supported and there is no ongoing work to ensure this architecture works."
  4504. msgstr ""
  4505. #. type: table
  4506. #: guix-git/doc/guix.texi:567
  4507. 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!"
  4508. msgstr ""
  4509. #. type: item
  4510. #: guix-git/doc/guix.texi:568
  4511. #, fuzzy, no-wrap
  4512. #| msgid "aarch64-linux"
  4513. msgid "riscv64-linux"
  4514. msgstr "aarch64-linux"
  4515. #. type: table
  4516. #: guix-git/doc/guix.texi:576
  4517. msgid "little-endian 64-bit RISC-V processors, specifically RV64GC, and Linux-Libre kernel. This playform 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!"
  4518. msgstr ""
  4519. #. type: Plain text
  4520. #: guix-git/doc/guix.texi:586
  4521. 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."
  4522. msgstr "在Guix系统里,你@emph{声明}操作系统所有方面的配置,然后Guix以事务型的,可重复的,和无状态的方式解决实例化配置的问题(@pxref{System Configuration})。Guix系统使用Linux-Libre内核,Shepherd初始化系统@pxref{Introduction,,, shepherd, GNU Shepherd用户手册},知名的GNU工具和工具链,以及你可选的图形界面环境和系统服务。"
  4523. #. type: Plain text
  4524. #: guix-git/doc/guix.texi:590
  4525. #, fuzzy
  4526. msgid "Guix System is available on all the above platforms except @code{mips64el-linux}, @code{powerpc-linux}, @code{powerpc64le-linux} and @code{riscv64-linux}."
  4527. msgstr "Guix系统在上面所有的平台上都可用,除了@code{mips64el-linux}。"
  4528. #. type: Plain text
  4529. #: guix-git/doc/guix.texi:594
  4530. msgid "For information on porting to other architectures or kernels, @pxref{Porting}."
  4531. msgstr "关于移植到其它架构或内核的信息,@pxref{Porting}。"
  4532. #. type: Plain text
  4533. #: guix-git/doc/guix.texi:597
  4534. msgid "Building this distribution is a cooperative effort, and you are invited to join! @xref{Contributing}, for information about how you can help."
  4535. msgstr "构建这个发行版需要努力合作,欢迎你加入!关于你可以怎样提供帮助的信息,@xref{Contributing}。"
  4536. #. type: cindex
  4537. #: guix-git/doc/guix.texi:603
  4538. #, no-wrap
  4539. msgid "installing Guix"
  4540. msgstr "安装Guix"
  4541. #. type: quotation
  4542. #: guix-git/doc/guix.texi:615
  4543. 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."
  4544. 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用户身份运行。"
  4545. #. type: cindex
  4546. #: guix-git/doc/guix.texi:617 guix-git/doc/guix.texi:1847
  4547. #, no-wrap
  4548. msgid "foreign distro"
  4549. msgstr "别的发行版"
  4550. #. type: cindex
  4551. #: guix-git/doc/guix.texi:618
  4552. #, no-wrap
  4553. msgid "directories related to foreign distro"
  4554. msgstr "和foreign distro相关的文件夹"
  4555. #. type: Plain text
  4556. #: guix-git/doc/guix.texi:623
  4557. 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."
  4558. msgstr "在foreign distro上安装时,GNU@tie{}Guix可以在不引起冲突的前提下补充现有的工具。它的数据只存放在两个文件夹里,通常是@file{/gnu/store}和@file{/var/guix};系统上的其它文件,如@file{/etc},不会被修改。"
  4559. #. type: Plain text
  4560. #: guix-git/doc/guix.texi:626
  4561. msgid "Once installed, Guix can be updated by running @command{guix pull} (@pxref{Invoking guix pull})."
  4562. msgstr "一旦安装好了,可以通过运行@command{guix pull}升级Guix(@pxref{Invoking guix pull})。"
  4563. #. type: Plain text
  4564. #: guix-git/doc/guix.texi:631
  4565. 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."
  4566. msgstr "如果你希望手动执行安装步骤,或者想改变安装步骤,接下来这些小节会很有用。它们介绍Guix的软件依赖,以及如何手动安装和使用Guix。"
  4567. #. type: cindex
  4568. #: guix-git/doc/guix.texi:645
  4569. #, no-wrap
  4570. msgid "installing Guix from binaries"
  4571. msgstr "用二进制文件安装Guix"
  4572. #. type: cindex
  4573. #: guix-git/doc/guix.texi:646
  4574. #, no-wrap
  4575. msgid "installer script"
  4576. msgstr "安装脚本"
  4577. #. type: Plain text
  4578. #: guix-git/doc/guix.texi:652
  4579. 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."
  4580. msgstr "这个小节介绍如何在任意的系统上用独立的Guix二进制文件包安装Guix和它的依赖。这通常比从源代码安装更快,下一小节会介绍如何从源代码安装。唯一的需求是有GNU@tie{}tar和Xz。"
  4581. #. type: quotation
  4582. #: guix-git/doc/guix.texi:660
  4583. #, fuzzy
  4584. 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:"
  4585. msgstr "我们推荐使用这个@uref{https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh, shell安装脚本}。这个脚本自动执行下述的下载、安装并且初始化Guix的过程。它需要以root用户身份运行。"
  4586. #. type: example
  4587. #: guix-git/doc/guix.texi:666
  4588. #, no-wrap
  4589. msgid ""
  4590. "cd /tmp\n"
  4591. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  4592. "chmod +x guix-install.sh\n"
  4593. "./guix-install.sh\n"
  4594. msgstr ""
  4595. #. type: quotation
  4596. #: guix-git/doc/guix.texi:670
  4597. msgid "When you're done, @pxref{Application Setup} for extra configuration you might need, and @ref{Getting Started} for your first steps!"
  4598. msgstr ""
  4599. #. type: Plain text
  4600. #: guix-git/doc/guix.texi:673
  4601. msgid "Installing goes along these lines:"
  4602. msgstr "安装步骤如下:"
  4603. #. type: cindex
  4604. #: guix-git/doc/guix.texi:676
  4605. #, no-wrap
  4606. msgid "downloading Guix binary"
  4607. msgstr "下载Guix二进制文件"
  4608. #. type: enumerate
  4609. #: guix-git/doc/guix.texi:682
  4610. #, fuzzy
  4611. 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})."
  4612. msgstr "从@indicateurl{@value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz}下载二进制安装包,对于运行Linux内核的@code{x86_64}机器来说@var{系统}是@code{x86_64-linux},以此类推。"
  4613. #. type: enumerate
  4614. #: guix-git/doc/guix.texi:686
  4615. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the tarball against it, along these lines:"
  4616. msgstr "请确保下载相关的@file{.sig}文件,并且用它验证文件包的可靠性,方法如下:"
  4617. #. type: example
  4618. #: guix-git/doc/guix.texi:690
  4619. #, fuzzy, no-wrap
  4620. msgid ""
  4621. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4622. "$ gpg --verify guix-binary-@value{VERSION}.x86_64-linux.tar.xz.sig\n"
  4623. msgstr ""
  4624. "$ wget @value{BASE-URL}/guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4625. "$ gpg --verify guix-binary-@value{VERSION}.@var{系统}.tar.xz.sig\n"
  4626. #. type: Plain text
  4627. #: guix-git/doc/guix.texi:694 guix-git/doc/guix.texi:2206
  4628. msgid "If that command fails because you do not have the required public key, then run this command to import it:"
  4629. msgstr "如果那个命令因为缺少所需的公钥而失败了,那么用这个命令导入它:"
  4630. #. type: example
  4631. #: guix-git/doc/guix.texi:698
  4632. #, no-wrap
  4633. msgid ""
  4634. "$ wget '@value{OPENPGP-SIGNING-KEY-URL}' \\\n"
  4635. " -qO - | gpg --import -\n"
  4636. msgstr ""
  4637. #. type: Plain text
  4638. #: guix-git/doc/guix.texi:702 guix-git/doc/guix.texi:2214
  4639. msgid "and rerun the @code{gpg --verify} command."
  4640. msgstr "再次运行@code{gpg --verify}命令。"
  4641. #. type: Plain text
  4642. #: guix-git/doc/guix.texi:705 guix-git/doc/guix.texi:2217
  4643. msgid "Take note that a warning like ``This key is not certified with a trusted signature!'' is normal."
  4644. msgstr ""
  4645. #. type: enumerate
  4646. #: guix-git/doc/guix.texi:711
  4647. 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:"
  4648. msgstr "现在你需要成为@code{root}用户。基于你的发行版,你可能需要执行@code{su -}或@code{sudo -i}。以@code{root}用户身份,执行:"
  4649. #. type: example
  4650. #: guix-git/doc/guix.texi:717
  4651. #, fuzzy, no-wrap
  4652. msgid ""
  4653. "# cd /tmp\n"
  4654. "# tar --warning=no-timestamp -xf \\\n"
  4655. " /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz\n"
  4656. "# mv var/guix /var/ && mv gnu /\n"
  4657. msgstr ""
  4658. "# cd /tmp\n"
  4659. "# tar --warning=no-timestamp -xf \\\n"
  4660. " guix-binary-@value{VERSION}.@var{系统}.tar.xz\n"
  4661. "# mv var/guix /var/ && mv gnu /\n"
  4662. #. type: enumerate
  4663. #: guix-git/doc/guix.texi:722
  4664. #, fuzzy
  4665. 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)."
  4666. msgstr "这会创建@file{/gnu/store}(@pxref{The Store})和@file{/var/guix}。后一个文件夹为@code{root}用户提供了一个立即可用的profile(见下一步)。"
  4667. #. type: enumerate
  4668. #: guix-git/doc/guix.texi:725
  4669. msgid "Do @emph{not} unpack the tarball on a working Guix system since that would overwrite its own essential files."
  4670. msgstr "@emph{不要}在一个正常的Guix系统上解压这个文件包,因为那会把现有的重要的文件覆盖。"
  4671. #. type: enumerate
  4672. #: guix-git/doc/guix.texi:735
  4673. #, fuzzy
  4674. 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."
  4675. msgstr "@code{--warning=no-timestamp}选项使GNU@tie{}tar不输出有关“implausibly old time stamps”的警告(这类警告会被GNU@tie{}tar 1.26或更老的版本触发;新的版本没事)。这类警告是因为文件包里的所有文件的修改时间戳都被设置为0(即1970年1月1日)。这是故意的,为了确保文件包的内容独立于创建的时间,从而使它可再现。"
  4676. #. type: enumerate
  4677. #: guix-git/doc/guix.texi:739
  4678. msgid "Make the profile available under @file{~root/.config/guix/current}, which is where @command{guix pull} will install updates (@pxref{Invoking guix pull}):"
  4679. msgstr "使profile出现在@file{~root/.config/guix/current},这是@command{guix pull}安装更新的位置(@pxref{Invoking guix pull}):"
  4680. #. type: example
  4681. #: guix-git/doc/guix.texi:744
  4682. #, no-wrap
  4683. msgid ""
  4684. "# mkdir -p ~root/.config/guix\n"
  4685. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4686. " ~root/.config/guix/current\n"
  4687. msgstr ""
  4688. "# mkdir -p ~root/.config/guix\n"
  4689. "# ln -sf /var/guix/profiles/per-user/root/current-guix \\\n"
  4690. " ~root/.config/guix/current\n"
  4691. #. type: enumerate
  4692. #: guix-git/doc/guix.texi:748
  4693. #, fuzzy
  4694. msgid "Source @file{etc/profile} to augment @env{PATH} and other relevant environment variables:"
  4695. msgstr "执行@file{etc/profile}以更新@code{PATH}和其它相关的环境变量:"
  4696. #. type: example
  4697. #: guix-git/doc/guix.texi:752
  4698. #, no-wrap
  4699. msgid ""
  4700. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4701. " source $GUIX_PROFILE/etc/profile\n"
  4702. msgstr ""
  4703. "# GUIX_PROFILE=\"`echo ~root`/.config/guix/current\" ; \\\n"
  4704. " source $GUIX_PROFILE/etc/profile\n"
  4705. #. type: enumerate
  4706. #: guix-git/doc/guix.texi:757
  4707. msgid "Create the group and user accounts for build users as explained below (@pxref{Build Environment Setup})."
  4708. msgstr "像下面解释的那样为“构建用户”创建用户组和用户(@pxref{Build Environment Setup})。"
  4709. #. type: enumerate
  4710. #: guix-git/doc/guix.texi:760
  4711. msgid "Run the daemon, and set it to automatically start on boot."
  4712. msgstr "运行后台进程,并设置为开机自启动。"
  4713. #. type: enumerate
  4714. #: guix-git/doc/guix.texi:763
  4715. msgid "If your host distro uses the systemd init system, this can be achieved with these commands:"
  4716. msgstr "如果你的主机的发行版使用systemd init系统,可以用这些命令:"
  4717. #. type: example
  4718. #: guix-git/doc/guix.texi:776
  4719. #, fuzzy, no-wrap
  4720. msgid ""
  4721. "# cp ~root/.config/guix/current/lib/systemd/system/gnu-store.mount \\\n"
  4722. " ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4723. " /etc/systemd/system/\n"
  4724. "# systemctl enable --now gnu-store.mount guix-daemon\n"
  4725. msgstr ""
  4726. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4727. " /etc/systemd/system/\n"
  4728. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4729. #. type: enumerate
  4730. #: guix-git/doc/guix.texi:779
  4731. msgid "You may also want to arrange for @command{guix gc} to run periodically:"
  4732. msgstr ""
  4733. #. type: example
  4734. #: guix-git/doc/guix.texi:785
  4735. #, fuzzy, no-wrap
  4736. msgid ""
  4737. "# cp ~root/.config/guix/current/lib/systemd/system/guix-gc.service \\\n"
  4738. " ~root/.config/guix/current/lib/systemd/system/guix-gc.timer \\\n"
  4739. " /etc/systemd/system/\n"
  4740. "# systemctl enable --now guix-gc.timer\n"
  4741. msgstr ""
  4742. "# cp ~root/.config/guix/current/lib/systemd/system/guix-daemon.service \\\n"
  4743. " /etc/systemd/system/\n"
  4744. "# systemctl start guix-daemon && systemctl enable guix-daemon\n"
  4745. #. type: enumerate
  4746. #: guix-git/doc/guix.texi:789
  4747. msgid "You may want to edit @file{guix-gc.service} to adjust the command line options to fit your needs (@pxref{Invoking guix gc})."
  4748. msgstr ""
  4749. #. type: itemize
  4750. #: guix-git/doc/guix.texi:791 guix-git/doc/guix.texi:14201
  4751. msgid "If your host distro uses the Upstart init system:"
  4752. msgstr "如果你的主机的发行版使用Upstart init系统:"
  4753. #. type: example
  4754. #: guix-git/doc/guix.texi:797
  4755. #, no-wrap
  4756. msgid ""
  4757. "# initctl reload-configuration\n"
  4758. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4759. " /etc/init/\n"
  4760. "# start guix-daemon\n"
  4761. msgstr ""
  4762. "# initctl reload-configuration\n"
  4763. "# cp ~root/.config/guix/current/lib/upstart/system/guix-daemon.conf \\\n"
  4764. " /etc/init/\n"
  4765. "# start guix-daemon\n"
  4766. #. type: enumerate
  4767. #: guix-git/doc/guix.texi:800
  4768. msgid "Otherwise, you can still start the daemon manually with:"
  4769. msgstr "此外,你可以手动启动后台进程:"
  4770. #. type: example
  4771. #: guix-git/doc/guix.texi:804
  4772. #, no-wrap
  4773. msgid ""
  4774. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4775. " --build-users-group=guixbuild\n"
  4776. msgstr ""
  4777. "# ~root/.config/guix/current/bin/guix-daemon \\\n"
  4778. " --build-users-group=guixbuild\n"
  4779. #. type: enumerate
  4780. #: guix-git/doc/guix.texi:809
  4781. msgid "Make the @command{guix} command available to other users on the machine, for instance with:"
  4782. msgstr "使机器上的其他用户也可以使用@command{guix}命令:"
  4783. #. type: example
  4784. #: guix-git/doc/guix.texi:814
  4785. #, no-wrap
  4786. msgid ""
  4787. "# mkdir -p /usr/local/bin\n"
  4788. "# cd /usr/local/bin\n"
  4789. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4790. msgstr ""
  4791. "# mkdir -p /usr/local/bin\n"
  4792. "# cd /usr/local/bin\n"
  4793. "# ln -s /var/guix/profiles/per-user/root/current-guix/bin/guix\n"
  4794. #. type: enumerate
  4795. #: guix-git/doc/guix.texi:818
  4796. msgid "It is also a good idea to make the Info version of this manual available there:"
  4797. msgstr "最好让这个用户手册的Info版也可以被访问:"
  4798. #. type: example
  4799. #: guix-git/doc/guix.texi:824
  4800. #, no-wrap
  4801. msgid ""
  4802. "# mkdir -p /usr/local/share/info\n"
  4803. "# cd /usr/local/share/info\n"
  4804. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4805. " do ln -s $i ; done\n"
  4806. msgstr ""
  4807. "# mkdir -p /usr/local/share/info\n"
  4808. "# cd /usr/local/share/info\n"
  4809. "# for i in /var/guix/profiles/per-user/root/current-guix/share/info/* ;\n"
  4810. " do ln -s $i ; done\n"
  4811. #. type: enumerate
  4812. #: guix-git/doc/guix.texi:830
  4813. #, fuzzy
  4814. 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)."
  4815. msgstr "那样,假设@file{/usr/local/share/info}在搜索路径里,运行@command{info guix}命令就会打开这个用户手册(@pxref{Other Info Directories,,, texinfo, GNU Texinfo},更多关于Info搜索路径的信息)。"
  4816. #. type: cindex
  4817. #: guix-git/doc/guix.texi:832 guix-git/doc/guix.texi:3832
  4818. #: guix-git/doc/guix.texi:16976
  4819. #, no-wrap
  4820. msgid "substitutes, authorization thereof"
  4821. msgstr "substitutes,对其授权"
  4822. #. type: enumerate
  4823. #: guix-git/doc/guix.texi:836
  4824. #, fuzzy
  4825. #| msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER}} or one of its mirrors (@pxref{Substitutes}), authorize them:"
  4826. msgid "To use substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror (@pxref{Substitutes}), authorize them:"
  4827. msgstr "为了使用@code{@value{SUBSTITUTE-SERVER}}或其镜像的substitute(@pxref{Substitutes}),对其授权:"
  4828. #. type: example
  4829. #: guix-git/doc/guix.texi:842
  4830. #, fuzzy, no-wrap
  4831. #| msgid ""
  4832. #| "# guix archive --authorize < \\\n"
  4833. #| " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4834. msgid ""
  4835. "# guix archive --authorize < \\\n"
  4836. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  4837. "# guix archive --authorize < \\\n"
  4838. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  4839. msgstr ""
  4840. "# guix archive --authorize < \\\n"
  4841. " ~root/.config/guix/current/share/guix/@value{SUBSTITUTE-SERVER}.pub\n"
  4842. #. type: quotation
  4843. #: guix-git/doc/guix.texi:849
  4844. msgid "If you do not enable substitutes, Guix will end up building @emph{everything} from source on your machine, making each installation and upgrade very expensive. @xref{On Trusting Binaries}, for a discussion of reasons why one might want do disable substitutes."
  4845. msgstr ""
  4846. #. type: enumerate
  4847. #: guix-git/doc/guix.texi:854
  4848. msgid "Each user may need to perform a few additional steps to make their Guix environment ready for use, @pxref{Application Setup}."
  4849. msgstr "每个用户可能需要执行一些额外的步骤以使各自的Guix环境可用,@pxref{Application Setup}。"
  4850. #. type: Plain text
  4851. #: guix-git/doc/guix.texi:857
  4852. msgid "Voilà, the installation is complete!"
  4853. msgstr "瞧,安装完成了!"
  4854. #. type: Plain text
  4855. #: guix-git/doc/guix.texi:860
  4856. msgid "You can confirm that Guix is working by installing a sample package into the root profile:"
  4857. msgstr "你可以通过给root profile安装一个软件包来确认Guix可以正常工作。"
  4858. #. type: example
  4859. #: guix-git/doc/guix.texi:863
  4860. #, no-wrap
  4861. msgid "# guix install hello\n"
  4862. msgstr "# guix install hello\n"
  4863. #. type: Plain text
  4864. #: guix-git/doc/guix.texi:867
  4865. msgid "The binary installation tarball can be (re)produced and verified simply by running the following command in the Guix source tree:"
  4866. msgstr "二进制安装包可以通过在Guix源代码树里运行下面这些命令来重现和验证:"
  4867. #. type: example
  4868. #: guix-git/doc/guix.texi:870
  4869. #, no-wrap
  4870. msgid "make guix-binary.@var{system}.tar.xz\n"
  4871. msgstr "make guix-binary.@var{系统}.tar.xz\n"
  4872. #. type: Plain text
  4873. #: guix-git/doc/guix.texi:874
  4874. msgid "...@: which, in turn, runs:"
  4875. msgstr "...@: 这个命令会执行:"
  4876. #. type: example
  4877. #: guix-git/doc/guix.texi:878
  4878. #, no-wrap
  4879. msgid ""
  4880. "guix pack -s @var{system} --localstatedir \\\n"
  4881. " --profile-name=current-guix guix\n"
  4882. msgstr ""
  4883. "guix pack -s @var{系统} --localstatedir \\\n"
  4884. " --profile-name=current-guix guix\n"
  4885. #. type: Plain text
  4886. #: guix-git/doc/guix.texi:881
  4887. msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  4888. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  4889. #. type: Plain text
  4890. #: guix-git/doc/guix.texi:889
  4891. 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."
  4892. msgstr "这个小节列举了从源代码构建Guix的需求。构建Guix的步骤和其它GNU软件相同,这里不介绍。请阅读Guix源代码树里的@file{README}和@file{INSTALL}文件以了解更多的信息。"
  4893. #. type: cindex
  4894. #: guix-git/doc/guix.texi:890
  4895. #, no-wrap
  4896. msgid "official website"
  4897. msgstr "官方网站"
  4898. #. type: Plain text
  4899. #: guix-git/doc/guix.texi:893
  4900. msgid "GNU Guix is available for download from its website at @url{https://www.gnu.org/software/guix/}."
  4901. msgstr "GNU Guix可以从它的网站下载@url{https://www.gnu.org/software/guix/}。"
  4902. #. type: Plain text
  4903. #: guix-git/doc/guix.texi:895
  4904. msgid "GNU Guix depends on the following packages:"
  4905. msgstr "GNU Guix依赖这些软件包:"
  4906. #. type: item
  4907. #: guix-git/doc/guix.texi:897
  4908. #, fuzzy, no-wrap
  4909. msgid "@url{https://gnu.org/software/guile/, GNU Guile}, version 3.0.x,"
  4910. msgstr "@url{https://gnu.org/software/guile/, GNU Guile},版本2.2.x;"
  4911. #. type: itemize
  4912. #: guix-git/doc/guix.texi:899
  4913. #, fuzzy
  4914. msgid "version 3.0.3 or later;"
  4915. msgstr "0.1.0或更新;"
  4916. #. type: item
  4917. #: guix-git/doc/guix.texi:899
  4918. #, no-wrap
  4919. msgid "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version"
  4920. msgstr "@url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt},版本"
  4921. #. type: itemize
  4922. #: guix-git/doc/guix.texi:901
  4923. msgid "0.1.0 or later;"
  4924. msgstr "0.1.0或更新;"
  4925. #. type: itemize
  4926. #: guix-git/doc/guix.texi:905
  4927. 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});"
  4928. msgstr "@uref{https://gnutls.org/, GnuTLS},特别是它的Guile接口(@pxref{Guile Preparations, 怎样为Guile安装GnuTLS接口,, gnutls-guile, GnuTLS-Guile});"
  4929. #. type: itemize
  4930. #: guix-git/doc/guix.texi:908
  4931. msgid "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3}, version 0.1.0 or later;"
  4932. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4933. #. type: item
  4934. #: guix-git/doc/guix.texi:908
  4935. #, fuzzy, no-wrap
  4936. msgid "@uref{https://notabug.org/guile-zlib/guile-zlib, Guile-zlib},"
  4937. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4938. #. type: itemize
  4939. #: guix-git/doc/guix.texi:910
  4940. #, fuzzy
  4941. msgid "version 0.1.0 or later;"
  4942. msgstr "0.1.0或更新;"
  4943. #. type: item
  4944. #: guix-git/doc/guix.texi:910
  4945. #, fuzzy, no-wrap
  4946. msgid "@uref{https://notabug.org/guile-lzlib/guile-lzlib, Guile-lzlib};"
  4947. msgstr "@uref{https://notabug.org/guile-sqlite3/guile-sqlite3, Guile-SQLite3},版本0.1.0或更新;"
  4948. #. type: item
  4949. #: guix-git/doc/guix.texi:911
  4950. #, no-wrap
  4951. msgid "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4952. msgstr "@uref{https://www.nongnu.org/guile-avahi/, Guile-Avahi};"
  4953. #. type: itemize
  4954. #: guix-git/doc/guix.texi:915
  4955. #, fuzzy
  4956. msgid "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, version 0.5.0 or later;"
  4957. msgstr "@uref{https://gitlab.com/guile-git/guile-git, Guile-Git},2017年8月及之后的版本;"
  4958. #. type: item
  4959. #: guix-git/doc/guix.texi:915
  4960. #, fuzzy, no-wrap
  4961. msgid "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON}"
  4962. msgstr "@uref{https://savannah.nongnu.org/projects/guile-json/, Guile-JSON};"
  4963. #. type: itemize
  4964. #: guix-git/doc/guix.texi:917
  4965. #, fuzzy
  4966. msgid "4.3.0 or later;"
  4967. msgstr "0.1.0或更新;"
  4968. #. type: item
  4969. #: guix-git/doc/guix.texi:917
  4970. #, no-wrap
  4971. msgid "@url{https://www.gnu.org/software/make/, GNU Make}."
  4972. msgstr "@url{https://www.gnu.org/software/make/, GNU Make}。"
  4973. #. type: Plain text
  4974. #: guix-git/doc/guix.texi:921
  4975. msgid "The following dependencies are optional:"
  4976. msgstr "这些依赖是可选的:"
  4977. #. type: itemize
  4978. #: guix-git/doc/guix.texi:929
  4979. #, fuzzy
  4980. 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."
  4981. 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或更新。"
  4982. #. type: itemize
  4983. #: guix-git/doc/guix.texi:934
  4984. 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})."
  4985. msgstr ""
  4986. #. type: itemize
  4987. #: guix-git/doc/guix.texi:938
  4988. msgid "@uref{https://ngyro.com/software/guile-semver.html, Guile-Semver} for the @code{crate} importer (@pxref{Invoking guix import})."
  4989. msgstr ""
  4990. #. type: itemize
  4991. #: guix-git/doc/guix.texi:943
  4992. 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})."
  4993. msgstr ""
  4994. #. type: itemize
  4995. #: guix-git/doc/guix.texi:947
  4996. msgid "When @url{http://www.bzip.org, libbz2} is available, @command{guix-daemon} can use it to compress build logs."
  4997. msgstr "当@url{http://www.bzip.org, libbz2}存在时,@command{guix-daemon}可以用它压缩构建日志。"
  4998. #. type: Plain text
  4999. #: guix-git/doc/guix.texi:951
  5000. #, fuzzy
  5001. msgid "Unless @option{--disable-daemon} was passed to @command{configure}, the following packages are also needed:"
  5002. msgstr "除非@code{--disable-daemon}参数被传给@command{configure},这些软件包也是需要的依赖:"
  5003. #. type: item
  5004. #: guix-git/doc/guix.texi:953
  5005. #, no-wrap
  5006. msgid "@url{https://gnupg.org/, GNU libgcrypt};"
  5007. msgstr "@url{https://gnupg.org/, GNU libgcrypt};"
  5008. #. type: item
  5009. #: guix-git/doc/guix.texi:954
  5010. #, no-wrap
  5011. msgid "@url{https://sqlite.org, SQLite 3};"
  5012. msgstr "@url{https://sqlite.org, SQLite 3};"
  5013. #. type: item
  5014. #: guix-git/doc/guix.texi:955
  5015. #, no-wrap
  5016. msgid "@url{https://gcc.gnu.org, GCC's g++}, with support for the"
  5017. msgstr "@url{https://gcc.gnu.org, GCC's g++},支持"
  5018. #. type: itemize
  5019. #: guix-git/doc/guix.texi:957
  5020. msgid "C++11 standard."
  5021. msgstr "C++11标准。"
  5022. #. type: cindex
  5023. #: guix-git/doc/guix.texi:959
  5024. #, no-wrap
  5025. msgid "state directory"
  5026. msgstr "状态文件夹"
  5027. #. type: Plain text
  5028. #: guix-git/doc/guix.texi:968
  5029. #, fuzzy
  5030. 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})."
  5031. msgstr "当在一个已经安装Guix的系统上配置Guix时,请确保用@command{configure}的@code{--localstatedir}参数指定和现有的安装相同的状态文件夹(@pxref{Directory Variables, @code{localstatedir},, standards, GNU Coding Standards})。@command{configure}保护你免于误设置@var{localstatedir},从而不会无意中损坏仓库(@pxref{The Store})。"
  5032. #. type: cindex
  5033. #: guix-git/doc/guix.texi:972
  5034. #, no-wrap
  5035. msgid "test suite"
  5036. msgstr "测试套件"
  5037. #. type: Plain text
  5038. #: guix-git/doc/guix.texi:978
  5039. 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:"
  5040. msgstr "成功执行@command{configure}和@code{make}之后,最好运行测试套件。它可以帮助查找设置和环境的错误,或者是Guix自身的bug--并且,报告测试错误是帮助改进软件的好方法。输入下面的命令以执行测试套件。"
  5041. #. type: example
  5042. #: guix-git/doc/guix.texi:981
  5043. #, no-wrap
  5044. msgid "make check\n"
  5045. msgstr "make check\n"
  5046. #. type: Plain text
  5047. #: guix-git/doc/guix.texi:988
  5048. 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."
  5049. msgstr "测试用例可以并行运行:你可以用GNU@tie{}make的@code{-j}参数来加速运行。才一台较新的机器上第一次运行可能会花几分钟,后续的运行会更快,因为为测试创建的仓库已经包含了各种缓存。"
  5050. #. type: Plain text
  5051. #: guix-git/doc/guix.texi:991
  5052. msgid "It is also possible to run a subset of the tests by defining the @code{TESTS} makefile variable as in this example:"
  5053. msgstr "你还可以通过定义makefile的@code{TESTS}变量只运行测试的一个子集:"
  5054. #. type: example
  5055. #: guix-git/doc/guix.texi:994
  5056. #, no-wrap
  5057. msgid "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  5058. msgstr "make check TESTS=\"tests/store.scm tests/cpio.scm\"\n"
  5059. #. type: Plain text
  5060. #: guix-git/doc/guix.texi:999
  5061. 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:"
  5062. msgstr "默认情况下,测试结果只展示到文件层级。为了看每个独立的测试用例的详情,可以像这样定义@code{SCM_LOG_DRIVER_FLAGS} makefile变量:"
  5063. #. type: example
  5064. #: guix-git/doc/guix.texi:1002
  5065. #, no-wrap
  5066. msgid "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5067. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5068. #. type: Plain text
  5069. #: guix-git/doc/guix.texi:1010
  5070. 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'':"
  5071. msgstr ""
  5072. #. type: example
  5073. #: guix-git/doc/guix.texi:1014
  5074. #, no-wrap
  5075. msgid ""
  5076. "export SCM_LOG_DRIVER_FLAGS=\"--select=^transaction-upgrade-entry\"\n"
  5077. "make check TESTS=\"tests/packages.scm\"\n"
  5078. msgstr ""
  5079. #. type: Plain text
  5080. #: guix-git/doc/guix.texi:1020
  5081. 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:"
  5082. msgstr ""
  5083. #. type: example
  5084. #: guix-git/doc/guix.texi:1023
  5085. #, fuzzy, no-wrap
  5086. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --errors-only=yes\" VERBOSE=1\n"
  5087. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5088. #. type: Plain text
  5089. #: guix-git/doc/guix.texi:1028
  5090. 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}:"
  5091. msgstr ""
  5092. #. type: example
  5093. #: guix-git/doc/guix.texi:1031
  5094. #, fuzzy, no-wrap
  5095. msgid "make check SCM_LOG_DRIVER_FLAGS=\"--brief=no --show-duration=yes\"\n"
  5096. msgstr "make check TESTS=\"tests/base64.scm\" SCM_LOG_DRIVER_FLAGS=\"--brief=no\"\n"
  5097. #. type: Plain text
  5098. #: guix-git/doc/guix.texi:1035
  5099. msgid "@xref{Parallel Test Harness,,,automake,GNU Automake} for more information about the Automake Parallel Test Harness."
  5100. msgstr ""
  5101. #. type: Plain text
  5102. #: guix-git/doc/guix.texi:1040
  5103. 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."
  5104. msgstr "遇到错误时,请给@email{bug-guix@@gnu.org}发邮件,并附带@file{test-suite.log}文件。请在消息里说明使用的Guix的版本信息和依赖(@pxref{Requirements})的版本信息。"
  5105. #. type: Plain text
  5106. #: guix-git/doc/guix.texi:1044
  5107. 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:"
  5108. msgstr "Guix还附带了一个可以测试整个Guix系统实例的全系统测试套件。它只能在已经安装Guix的系统上运行:"
  5109. #. type: example
  5110. #: guix-git/doc/guix.texi:1047
  5111. #, no-wrap
  5112. msgid "make check-system\n"
  5113. msgstr "make check-system\n"
  5114. #. type: Plain text
  5115. #: guix-git/doc/guix.texi:1051
  5116. msgid "or, again, by defining @code{TESTS} to select a subset of tests to run:"
  5117. msgstr "或者,同样的,通过定义@code{TESTS}只运行测试的一个子集:"
  5118. #. type: example
  5119. #: guix-git/doc/guix.texi:1054
  5120. #, no-wrap
  5121. msgid "make check-system TESTS=\"basic mcron\"\n"
  5122. msgstr "make check-system TESTS=\"basic mcron\"\n"
  5123. #. type: Plain text
  5124. #: guix-git/doc/guix.texi:1062
  5125. 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."
  5126. msgstr "这些系统测试是在@code{(gnu tests @dots{})}模块里定义的。它们在虚拟机(VM)里运行轻量的指令。它们的计算量可能很多也可能很少,这取决于它们依赖的substitute(@pxref{Substitutes})是否已经存在。它们之中有些需要很多存储空间以保存虚拟机硬盘。"
  5127. #. type: Plain text
  5128. #: guix-git/doc/guix.texi:1065
  5129. msgid "Again in case of test failures, please send @email{bug-guix@@gnu.org} all the details."
  5130. msgstr "再重复一遍,如果遇到测试错误,请给@email{bug-guix@@gnu.org}发邮件,并附带详细的说明。"
  5131. #. type: cindex
  5132. #: guix-git/doc/guix.texi:1069
  5133. #, no-wrap
  5134. msgid "daemon"
  5135. msgstr "后台进程"
  5136. #. type: Plain text
  5137. #: guix-git/doc/guix.texi:1077
  5138. 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."
  5139. msgstr "构建软件包或运行垃圾回收器之类的操作都是由一个特殊的进程代替客户执行的,即@dfn{构建后台进程}。只有这个进程可以访问仓库和相关的数据库。因此,所有修改仓库的操作都通过这个后台进程执行。例如,@command{guix package}和@command{guix build}之类的命令行工具通过和这个后台进程通信(@i{通过}远程过程调用)来指示它该做什么。"
  5140. #. type: Plain text
  5141. #: guix-git/doc/guix.texi:1081
  5142. 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."
  5143. msgstr "接下来的几个小节介绍如何准备“构建后台进程”的环境。参考@ref{Substitutes},了解怎样允许这个后台进程下载预构建好的二进制文件。"
  5144. #. type: cindex
  5145. #: guix-git/doc/guix.texi:1091 guix-git/doc/guix.texi:1559
  5146. #, no-wrap
  5147. msgid "build environment"
  5148. msgstr "构建环境"
  5149. #. type: Plain text
  5150. #: guix-git/doc/guix.texi:1099
  5151. 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."
  5152. msgstr "在一个标准的多用户设置里,Guix和它的后台进程--@command{guix-daemon}程序--是由@code{root}用户安装的,并且@command{guix-daemon}以@code{root}用户身份运行。无特权的用户可以用Guix的工具构建软件包或访问仓库,这个后台进程会代替用户进行这些操作,以确保仓库保持一致的状态,并且允许构建好的软件包可以在不同用户间共享。"
  5153. #. type: cindex
  5154. #: guix-git/doc/guix.texi:1100
  5155. #, no-wrap
  5156. msgid "build users"
  5157. msgstr "构建用户"
  5158. #. type: Plain text
  5159. #: guix-git/doc/guix.texi:1111
  5160. 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})."
  5161. msgstr "当@command{guix-daemon}以@code{root}用户身份运行时,由于安全方面的考虑,你可能不希望软件包构建进程也以@code{root}用户身份运行。为了避免那样,我们需要创建一个@dfn{构建用户}池,以供后台进程启动的构建进程使用。这些构建用户不需要拥有shell和家目录:他们只会在后台进程为构建进程剥夺@code{root}特权时使用。拥有多个这类用户使后台进程可以以不同的UID启动不同的构建进程,这保证它们不会互相干扰--这是一个重要的功能,因为构建被视为纯函数(@pxref{Introduction})。"
  5162. #. type: Plain text
  5163. #: guix-git/doc/guix.texi:1114
  5164. msgid "On a GNU/Linux system, a build user pool may be created like this (using Bash syntax and the @code{shadow} commands):"
  5165. msgstr "在一个GNU/Linux系统上,可以这样创建一个构建用户池(用bash语法和@code{shadow}命令):"
  5166. #. type: example
  5167. #: guix-git/doc/guix.texi:1126
  5168. #, fuzzy, no-wrap
  5169. msgid ""
  5170. "# groupadd --system guixbuild\n"
  5171. "# for i in $(seq -w 1 10);\n"
  5172. " do\n"
  5173. " useradd -g guixbuild -G guixbuild \\\n"
  5174. " -d /var/empty -s $(which nologin) \\\n"
  5175. " -c \"Guix build user $i\" --system \\\n"
  5176. " guixbuilder$i;\n"
  5177. " done\n"
  5178. msgstr ""
  5179. "# groupadd --system guixbuild\n"
  5180. "# for i in `seq -w 1 10`;\n"
  5181. " do\n"
  5182. " useradd -g guixbuild -G guixbuild \\\n"
  5183. " -d /var/empty -s `which nologin` \\\n"
  5184. " -c \"Guix build user $i\" --system \\\n"
  5185. " guixbuilder$i;\n"
  5186. " done\n"
  5187. #. type: Plain text
  5188. #: guix-git/doc/guix.texi:1136
  5189. 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})."
  5190. 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})。"
  5191. #. type: Plain text
  5192. #: guix-git/doc/guix.texi:1145
  5193. 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}.}:"
  5194. 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}文件夹里}:"
  5195. #. type: example
  5196. #: guix-git/doc/guix.texi:1148 guix-git/doc/guix.texi:1552
  5197. #, no-wrap
  5198. msgid "# guix-daemon --build-users-group=guixbuild\n"
  5199. msgstr "# guix-daemon --build-users-group=guixbuild\n"
  5200. #. type: cindex
  5201. #: guix-git/doc/guix.texi:1150 guix-git/doc/guix.texi:1557
  5202. #, no-wrap
  5203. msgid "chroot"
  5204. msgstr "chroot"
  5205. #. type: Plain text
  5206. #: guix-git/doc/guix.texi:1155
  5207. 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:"
  5208. msgstr "这样,后台进程在一个chroot环境里,以一个@code{guixbuilder}用户组成员的身份启动构建进程。在GNU/Linux上,默认的,这个chroot环境仅包含这些东西:"
  5209. #. type: itemize
  5210. #: guix-git/doc/guix.texi:1163
  5211. 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.};"
  5212. msgstr "一个和主机@code{/dev}独立的@footnote{大致这样,因为虽然chroot环境里的@code{/dev}包含的文件是固定的,大部分这些文件只有在主机有对应的文件时才能创建。},最小的@code{/dev}文件夹;"
  5213. #. type: itemize
  5214. #: guix-git/doc/guix.texi:1167
  5215. msgid "the @code{/proc} directory; it only shows the processes of the container since a separate PID name space is used;"
  5216. msgstr "@code{/proc}文件夹;它只含有当前容器的进程,因为用了一个独立的进程PID命名空间;"
  5217. #. type: itemize
  5218. #: guix-git/doc/guix.texi:1171
  5219. msgid "@file{/etc/passwd} with an entry for the current user and an entry for user @file{nobody};"
  5220. msgstr "@file{/etc/passwd},仅包含当前用户和@file{nobody};"
  5221. #. type: itemize
  5222. #: guix-git/doc/guix.texi:1174
  5223. msgid "@file{/etc/group} with an entry for the user's group;"
  5224. msgstr "@file{/etc/group},包含用户的组;"
  5225. #. type: itemize
  5226. #: guix-git/doc/guix.texi:1178
  5227. msgid "@file{/etc/hosts} with an entry that maps @code{localhost} to @code{127.0.0.1};"
  5228. msgstr "@file{/etc/hosts},包含@code{localhost}映射到@code{127.0.0.1}的条目;"
  5229. #. type: itemize
  5230. #: guix-git/doc/guix.texi:1181
  5231. msgid "a writable @file{/tmp} directory."
  5232. msgstr "一个可写的@file{/tmp}文件夹。"
  5233. #. type: Plain text
  5234. #: guix-git/doc/guix.texi:1187
  5235. msgid "The chroot does not contain a @file{/home} directory, and the @env{HOME} environment variable is set to the non-existent @file{/homeless-shelter}. This helps to highlight inappropriate uses of @env{HOME} in the build scripts of packages."
  5236. msgstr ""
  5237. #. type: Plain text
  5238. #: guix-git/doc/guix.texi:1195
  5239. #, fuzzy
  5240. 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."
  5241. msgstr "你可以@i{通过}@code{TMPDIR}环境变量修改后台进程保存构建树的位置。但是,chroot里的构建树总是在@file{/tmp/guix-build-@var{名字}.drv-0},@var{名字}是derivation的名字--如@code{coreutils-8.24}。这样,@code{TMPDIR}的值就不会泄漏到构建环境里,这可以避免由构建进程读取构建树名字引起的问题。"
  5242. #. type: vindex
  5243. #: guix-git/doc/guix.texi:1196 guix-git/doc/guix.texi:4041
  5244. #, no-wrap
  5245. msgid "http_proxy"
  5246. msgstr "http_proxy"
  5247. #. type: vindex
  5248. #: guix-git/doc/guix.texi:1197 guix-git/doc/guix.texi:4042
  5249. #, fuzzy, no-wrap
  5250. msgid "https_proxy"
  5251. msgstr "http_proxy"
  5252. #. type: Plain text
  5253. #: guix-git/doc/guix.texi:1202
  5254. #, fuzzy
  5255. 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})."
  5256. msgstr "后台进程通过HTTP下载时还遵守@code{http_proxy}环境变量,无论是下载derivation(@pxref{Derivations}),还是下载substitute(@pxref{Substitutes})。"
  5257. #. type: Plain text
  5258. #: guix-git/doc/guix.texi:1210
  5259. #, fuzzy
  5260. 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."
  5261. msgstr "如果你是以无特权的用户的身份安装Guix,你仍可以运行@command{guix-daemon},只要添加@code{--disable-chroot}参数就行了。但是,构建进程不会互相隔离,也不会和系统的其它部分隔离。因此,构建进程有可能互相干扰,可以访问程序、库和系统上的其它文件--这样就很难把它看作@emph{纯}函数。"
  5262. #. type: subsection
  5263. #: guix-git/doc/guix.texi:1213
  5264. #, no-wrap
  5265. msgid "Using the Offload Facility"
  5266. msgstr "使用任务下发设施"
  5267. #. type: cindex
  5268. #: guix-git/doc/guix.texi:1215 guix-git/doc/guix.texi:1618
  5269. #, no-wrap
  5270. msgid "offloading"
  5271. msgstr "下发"
  5272. #. type: cindex
  5273. #: guix-git/doc/guix.texi:1216
  5274. #, no-wrap
  5275. msgid "build hook"
  5276. msgstr "构建钩子"
  5277. #. type: Plain text
  5278. #: guix-git/doc/guix.texi:1235
  5279. #, fuzzy
  5280. 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:"
  5281. 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复制到目标机器,然后继续构建;成功后,构建输出的结果被复制回初始的机器上。"
  5282. #. type: enumerate
  5283. #: guix-git/doc/guix.texi:1241
  5284. 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."
  5285. msgstr ""
  5286. #. type: enumerate
  5287. #: guix-git/doc/guix.texi:1245
  5288. msgid "Its relative speed, as defined via the @code{speed} field of its @code{build-machine} object."
  5289. msgstr ""
  5290. #. type: enumerate
  5291. #: guix-git/doc/guix.texi:1250
  5292. 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."
  5293. msgstr ""
  5294. #. type: enumerate
  5295. #: guix-git/doc/guix.texi:1253
  5296. msgid "Disk space availability. More than a 100 MiB must be available."
  5297. msgstr ""
  5298. #. type: Plain text
  5299. #: guix-git/doc/guix.texi:1256
  5300. msgid "The @file{/etc/guix/machines.scm} file typically looks like this:"
  5301. msgstr "@file{/etc/guix/machines.scm}文件通常是这样的:"
  5302. #. type: lisp
  5303. #: guix-git/doc/guix.texi:1264
  5304. #, fuzzy, no-wrap
  5305. msgid ""
  5306. "(list (build-machine\n"
  5307. " (name \"eightysix.example.org\")\n"
  5308. " (systems (list \"x86_64-linux\" \"i686-linux\"))\n"
  5309. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5310. " (user \"bob\")\n"
  5311. " (speed 2.)) ;incredibly fast!\n"
  5312. "\n"
  5313. msgstr ""
  5314. "(list (build-machine\n"
  5315. " (name \"eightysix.example.org\")\n"
  5316. " (system \"x86_64-linux\")\n"
  5317. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5318. " (user \"bob\")\n"
  5319. " (speed 2.)) ;非常快!\n"
  5320. "\n"
  5321. #. type: lisp
  5322. #: guix-git/doc/guix.texi:1270
  5323. #, fuzzy, no-wrap
  5324. msgid ""
  5325. " (build-machine\n"
  5326. " (name \"armeight.example.org\")\n"
  5327. " (systems (list \"aarch64-linux\"))\n"
  5328. " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  5329. " (user \"alice\")\n"
  5330. "\n"
  5331. msgstr ""
  5332. "(list (build-machine\n"
  5333. " (name \"eightysix.example.org\")\n"
  5334. " (system \"x86_64-linux\")\n"
  5335. " (host-key \"ssh-ed25519 AAAAC3Nza@dots{}\")\n"
  5336. " (user \"bob\")\n"
  5337. " (speed 2.)) ;非常快!\n"
  5338. "\n"
  5339. #. type: lisp
  5340. #: guix-git/doc/guix.texi:1274
  5341. #, no-wrap
  5342. msgid ""
  5343. " ;; Remember 'guix offload' is spawned by\n"
  5344. " ;; 'guix-daemon' as root.\n"
  5345. " (private-key \"/root/.ssh/identity-for-guix\")))\n"
  5346. msgstr ""
  5347. #. type: Plain text
  5348. #: guix-git/doc/guix.texi:1280
  5349. #, fuzzy
  5350. 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."
  5351. msgstr "在上面的例子里,我们指定了一个包含两个构建机器的列表,一个是@code{x86_64}架构,一个是@code{mips64el}架构。"
  5352. #. type: Plain text
  5353. #: guix-git/doc/guix.texi:1289
  5354. 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."
  5355. msgstr "事实上,这个文件--并不意外地--是一个Scheme文件,当@code{下发}钩子被启动时执行。它的返回值必须是一个包含@code{build-machine}对象的列表。虽然这个例子展示的是一个固定的列表,你可以想象,使用DNS-SD来返回一个包含从局域网内发现的构建机器的列表,@pxref{Introduction, Guile-Avahi,, guile-avahi, 在Guile Scheme程序里使用Avahi}。@code{build-machine}数据类型的详细信息如下。"
  5356. #. type: deftp
  5357. #: guix-git/doc/guix.texi:1290
  5358. #, no-wrap
  5359. msgid "{Data Type} build-machine"
  5360. msgstr "{数据类型} build-machine"
  5361. #. type: deftp
  5362. #: guix-git/doc/guix.texi:1293
  5363. msgid "This data type represents build machines to which the daemon may offload builds. The important fields are:"
  5364. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  5365. #. type: item
  5366. #: guix-git/doc/guix.texi:1296 guix-git/doc/guix.texi:7179
  5367. #: guix-git/doc/guix.texi:15924 guix-git/doc/guix.texi:16023
  5368. #: guix-git/doc/guix.texi:16264 guix-git/doc/guix.texi:17801
  5369. #: guix-git/doc/guix.texi:18422 guix-git/doc/guix.texi:18696
  5370. #: guix-git/doc/guix.texi:21789 guix-git/doc/guix.texi:24699
  5371. #: guix-git/doc/guix.texi:25998 guix-git/doc/guix.texi:26610
  5372. #: guix-git/doc/guix.texi:26964 guix-git/doc/guix.texi:27005
  5373. #: guix-git/doc/guix.texi:29168 guix-git/doc/guix.texi:31537
  5374. #: guix-git/doc/guix.texi:31557 guix-git/doc/guix.texi:34317
  5375. #: guix-git/doc/guix.texi:34334 guix-git/doc/guix.texi:34873
  5376. #: guix-git/doc/guix.texi:36699 guix-git/doc/guix.texi:37026
  5377. #, no-wrap
  5378. msgid "name"
  5379. msgstr "名字"
  5380. #. type: table
  5381. #: guix-git/doc/guix.texi:1298
  5382. msgid "The host name of the remote machine."
  5383. msgstr "远程机器的主机名。"
  5384. #. type: item
  5385. #: guix-git/doc/guix.texi:1299
  5386. #, fuzzy, no-wrap
  5387. msgid "systems"
  5388. msgstr "系统"
  5389. #. type: table
  5390. #: guix-git/doc/guix.texi:1302
  5391. #, fuzzy
  5392. msgid "The system types the remote machine supports---e.g., @code{(list \"x86_64-linux\" \"i686-linux\")}."
  5393. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  5394. #. type: code{#1}
  5395. #: guix-git/doc/guix.texi:1303 guix-git/doc/guix.texi:18432
  5396. #, no-wrap
  5397. msgid "user"
  5398. msgstr "用户"
  5399. #. type: table
  5400. #: guix-git/doc/guix.texi:1307
  5401. 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."
  5402. msgstr "通过SSH连接远程机器时使用的用户帐号。注意,SSH密钥@emph{不}能被密码保护,以支持无交互的登录。"
  5403. #. type: item
  5404. #: guix-git/doc/guix.texi:1308
  5405. #, no-wrap
  5406. msgid "host-key"
  5407. msgstr "主机公钥"
  5408. #. type: table
  5409. #: guix-git/doc/guix.texi:1312
  5410. 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:"
  5411. msgstr "这必须是机器的OpenSSH格式的SSH@dfn{公钥}。这是用来在连接机器时认证身份的。它是一个像这样的长字符串:"
  5412. #. type: example
  5413. #: guix-git/doc/guix.texi:1315
  5414. #, no-wrap
  5415. msgid "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5416. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  5417. #. type: table
  5418. #: guix-git/doc/guix.texi:1320
  5419. 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}."
  5420. msgstr "如果这个机器正在运行OpenSSH后台进程,@command{sshd},那么主机公钥可以在@file{/etc/ssh/ssh_host_ed25519_key.pub}找到。"
  5421. #. type: table
  5422. #: guix-git/doc/guix.texi:1325
  5423. 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}):"
  5424. msgstr "如果这个机器正在运行GNU@tie{}lsh,@command{lshd},那么主机公钥可以在@file{/etc/lsh/host-key.pub}或类似的位置找到。它可以通过@command{lsh-export-key}命令转换成OpenSSH格式(@pxref{Converting keys,,, lsh, LSH用户手册}):"
  5425. #. type: example
  5426. #: guix-git/doc/guix.texi:1329
  5427. #, fuzzy, no-wrap
  5428. msgid ""
  5429. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub\n"
  5430. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5431. msgstr ""
  5432. "$ lsh-export-key --openssh < /etc/lsh/host-key.pub \n"
  5433. "ssh-rsa AAAAB3NzaC1yc2EAAAAEOp8FoQAAAQEAs1eB46LV@dots{}\n"
  5434. #. type: deftp
  5435. #: guix-git/doc/guix.texi:1334
  5436. msgid "A number of optional fields may be specified:"
  5437. msgstr "一些可选的项:"
  5438. #. type: item
  5439. #: guix-git/doc/guix.texi:1337 guix-git/doc/guix.texi:36175
  5440. #, no-wrap
  5441. msgid "@code{port} (default: @code{22})"
  5442. msgstr "@code{port}(默认值:@code{22})"
  5443. #. type: table
  5444. #: guix-git/doc/guix.texi:1339
  5445. msgid "Port number of SSH server on the machine."
  5446. msgstr "机器上的SSH服务器的端口号。"
  5447. #. type: item
  5448. #: guix-git/doc/guix.texi:1340
  5449. #, no-wrap
  5450. msgid "@code{private-key} (default: @file{~root/.ssh/id_rsa})"
  5451. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  5452. #. type: table
  5453. #: guix-git/doc/guix.texi:1343
  5454. 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."
  5455. msgstr "连接机器时使用的SSH私钥,OpenSSH格式。这个私钥不能被密码保护。"
  5456. #. type: table
  5457. #: guix-git/doc/guix.texi:1346
  5458. msgid "Note that the default value is the private key @emph{of the root account}. Make sure it exists if you use the default."
  5459. msgstr "注意,默认值是@emph{root帐号}的私钥。使用默认值时请确保它存在。"
  5460. #. type: item
  5461. #: guix-git/doc/guix.texi:1347
  5462. #, no-wrap
  5463. msgid "@code{compression} (default: @code{\"zlib@@openssh.com,zlib\"})"
  5464. msgstr "@code{compression}(默认值:@code{\"zlib@@openssh.com,zlib\"})"
  5465. #. type: itemx
  5466. #: guix-git/doc/guix.texi:1348
  5467. #, no-wrap
  5468. msgid "@code{compression-level} (default: @code{3})"
  5469. msgstr "@code{compression-level}(默认值:@code{3})"
  5470. #. type: table
  5471. #: guix-git/doc/guix.texi:1350
  5472. msgid "The SSH-level compression methods and compression level requested."
  5473. msgstr "SSH压缩算法和压缩级别。"
  5474. #. type: table
  5475. #: guix-git/doc/guix.texi:1353
  5476. msgid "Note that offloading relies on SSH compression to reduce bandwidth usage when transferring files to and from build machines."
  5477. msgstr "下发任务依赖SSH压缩来减少传输文件到构建机器时使用的带宽。"
  5478. #. type: item
  5479. #: guix-git/doc/guix.texi:1354
  5480. #, no-wrap
  5481. msgid "@code{daemon-socket} (default: @code{\"/var/guix/daemon-socket/socket\"})"
  5482. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  5483. #. type: table
  5484. #: guix-git/doc/guix.texi:1357
  5485. msgid "File name of the Unix-domain socket @command{guix-daemon} is listening to on that machine."
  5486. msgstr "那台机器上的@command{guix-daemon}监听的Unix套接字文件名。"
  5487. #. type: item
  5488. #: guix-git/doc/guix.texi:1358
  5489. #, fuzzy, no-wrap
  5490. msgid "@code{overload-threshold} (default: @code{0.6})"
  5491. msgstr "@code{features} (@code{'()})"
  5492. #. type: table
  5493. #: guix-git/doc/guix.texi:1364
  5494. 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}."
  5495. msgstr ""
  5496. #. type: item
  5497. #: guix-git/doc/guix.texi:1365
  5498. #, no-wrap
  5499. msgid "@code{parallel-builds} (default: @code{1})"
  5500. msgstr "@code{parallel-builds}(默认值:@code{1})"
  5501. #. type: table
  5502. #: guix-git/doc/guix.texi:1367
  5503. msgid "The number of builds that may run in parallel on the machine."
  5504. msgstr "那台机器上可以并行运行的构建任务数量。"
  5505. #. type: item
  5506. #: guix-git/doc/guix.texi:1368
  5507. #, no-wrap
  5508. msgid "@code{speed} (default: @code{1.0})"
  5509. msgstr "@code{speed}(默认值:@code{1.0})"
  5510. #. type: table
  5511. #: guix-git/doc/guix.texi:1371
  5512. msgid "A ``relative speed factor''. The offload scheduler will tend to prefer machines with a higher speed factor."
  5513. msgstr "一个相对的速度值。下发调度器会偏好速度更快的机器。"
  5514. #. type: item
  5515. #: guix-git/doc/guix.texi:1372
  5516. #, no-wrap
  5517. msgid "@code{features} (default: @code{'()})"
  5518. msgstr "@code{features} (@code{'()})"
  5519. #. type: table
  5520. #: guix-git/doc/guix.texi:1377
  5521. 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."
  5522. msgstr "一个表示机器支持的功能的字符串列表。例如,@code{\"kvm\"}表示机器有KVM Linux模块和相关的硬件支持。Derivation可以通过名字请求需要的功能,然后被分发到匹配的机器的任务队列里。"
  5523. #. type: Plain text
  5524. #: guix-git/doc/guix.texi:1383
  5525. 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:"
  5526. msgstr "@command{guix}命令必须在构建机器的搜素路径里。你可以通过这个命令检查:"
  5527. #. type: example
  5528. #: guix-git/doc/guix.texi:1386
  5529. #, no-wrap
  5530. msgid "ssh build-machine guix repl --version\n"
  5531. msgstr "ssh build-machine guix repl --version\n"
  5532. #. type: Plain text
  5533. #: guix-git/doc/guix.texi:1393
  5534. 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}):"
  5535. msgstr "@file{machines.scm}到位后,还有一件要做的事。如上所述,下发任务时会在机器的仓库之间传输文件。为此,你需要在每台机器上生成一个密钥对,以使后台进程可以从仓库导出签名后的文件包(@pxref{Invoking guix archive}):"
  5536. #. type: example
  5537. #: guix-git/doc/guix.texi:1396 guix-git/doc/guix.texi:36079
  5538. #, no-wrap
  5539. msgid "# guix archive --generate-key\n"
  5540. msgstr "# guix archive --generate-key\n"
  5541. #. type: Plain text
  5542. #: guix-git/doc/guix.texi:1401
  5543. msgid "Each build machine must authorize the key of the master machine so that it accepts store items it receives from the master:"
  5544. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  5545. #. type: example
  5546. #: guix-git/doc/guix.texi:1404
  5547. #, no-wrap
  5548. msgid "# guix archive --authorize < master-public-key.txt\n"
  5549. msgstr "# guix archive --authorize < master-public-key.txt\n"
  5550. #. type: Plain text
  5551. #: guix-git/doc/guix.texi:1408
  5552. msgid "Likewise, the master machine must authorize the key of each build machine."
  5553. msgstr "类似的,主机器必须认证每台构建机器的公钥:"
  5554. #. type: Plain text
  5555. #: guix-git/doc/guix.texi:1414
  5556. 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."
  5557. msgstr "所有这些有关公钥的繁琐事宜都是为了表达主服务器和构建服务器之间成对的互相信任关系。具体地,当主机器从构建机器接收文件时(反之亦然),它的构建后台进程可以确保文件是原样的,没有被篡改,并且被认证的公钥签名过。"
  5558. #. type: cindex
  5559. #: guix-git/doc/guix.texi:1415
  5560. #, no-wrap
  5561. msgid "offload test"
  5562. msgstr "下发测试"
  5563. #. type: Plain text
  5564. #: guix-git/doc/guix.texi:1418
  5565. msgid "To test whether your setup is operational, run this command on the master node:"
  5566. msgstr "为了测试你的设置是否能正常工作,在主节点上运行这个命令:"
  5567. #. type: example
  5568. #: guix-git/doc/guix.texi:1421
  5569. #, no-wrap
  5570. msgid "# guix offload test\n"
  5571. msgstr "# guix offload test\n"
  5572. #. type: Plain text
  5573. #: guix-git/doc/guix.texi:1427
  5574. #, fuzzy
  5575. 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."
  5576. msgstr "这会尝试连接每台在@file{/etc/guix/machines.scm}里指定的构建机器,确保Guile和Guix模块在每台机器上都可用,尝试导出到这些机器和从这些机器导入,并且报告这个过程中遇到的任何错误。"
  5577. #. type: Plain text
  5578. #: guix-git/doc/guix.texi:1430
  5579. msgid "If you want to test a different machine file, just specify it on the command line:"
  5580. msgstr "如果你希望用别的文件测试,只需要在命令行指定它:"
  5581. #. type: example
  5582. #: guix-git/doc/guix.texi:1433
  5583. #, no-wrap
  5584. msgid "# guix offload test machines-qualif.scm\n"
  5585. msgstr "# guix offload test machines-qualif.scm\n"
  5586. #. type: Plain text
  5587. #: guix-git/doc/guix.texi:1437
  5588. msgid "Last, you can test the subset of the machines whose name matches a regular expression like this:"
  5589. msgstr "最后,你可以像这样只测试机器列表里名字匹配某个正则表达式的子集:"
  5590. #. type: example
  5591. #: guix-git/doc/guix.texi:1440
  5592. #, no-wrap
  5593. msgid "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5594. msgstr "# guix offload test machines.scm '\\.gnu\\.org$'\n"
  5595. #. type: cindex
  5596. #: guix-git/doc/guix.texi:1442
  5597. #, no-wrap
  5598. msgid "offload status"
  5599. msgstr "下发状态"
  5600. #. type: Plain text
  5601. #: guix-git/doc/guix.texi:1445
  5602. msgid "To display the current load of all build hosts, run this command on the main node:"
  5603. msgstr "若想展示所有构建主机的当前负载,在主节点上运行这个命令:"
  5604. #. type: example
  5605. #: guix-git/doc/guix.texi:1448
  5606. #, no-wrap
  5607. msgid "# guix offload status\n"
  5608. msgstr "# guix offload status\n"
  5609. #. type: cindex
  5610. #: guix-git/doc/guix.texi:1454
  5611. #, no-wrap
  5612. msgid "SELinux, daemon policy"
  5613. msgstr "SELinux,后台进程策略"
  5614. #. type: cindex
  5615. #: guix-git/doc/guix.texi:1455
  5616. #, no-wrap
  5617. msgid "mandatory access control, SELinux"
  5618. msgstr "强制访问控制,SELinux"
  5619. #. type: cindex
  5620. #: guix-git/doc/guix.texi:1456
  5621. #, no-wrap
  5622. msgid "security, guix-daemon"
  5623. msgstr "安全,guix-daemon"
  5624. #. type: Plain text
  5625. #: guix-git/doc/guix.texi:1462
  5626. 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."
  5627. msgstr "Guix附带一个SELinux策略文件,位置在@file{etc/guix-daemon.cil},它可以在启用SELinux的系统上安装,为Guix的文件添加标签及指定后台进程的期望行为。由于Guix系统不提供SELinux基础策略,这个后台进程策略不能在Guix系统上使用。"
  5628. #. type: subsubsection
  5629. #: guix-git/doc/guix.texi:1463
  5630. #, no-wrap
  5631. msgid "Installing the SELinux policy"
  5632. msgstr "安装SELinux策略"
  5633. #. type: cindex
  5634. #: guix-git/doc/guix.texi:1464
  5635. #, no-wrap
  5636. msgid "SELinux, policy installation"
  5637. msgstr "SELinux,安装策略"
  5638. #. type: Plain text
  5639. #: guix-git/doc/guix.texi:1466
  5640. msgid "To install the policy run this command as root:"
  5641. msgstr "用root用户执行这个命令以安装策略:"
  5642. #. type: example
  5643. #: guix-git/doc/guix.texi:1469
  5644. #, no-wrap
  5645. msgid "semodule -i etc/guix-daemon.cil\n"
  5646. msgstr "semodule -i etc/guix-daemon.cil\n"
  5647. #. type: Plain text
  5648. #: guix-git/doc/guix.texi:1473
  5649. msgid "Then relabel the file system with @code{restorecon} or by a different mechanism provided by your system."
  5650. msgstr "用@code{restorecon}或者你的系统提供的其它机制重新给文件系统打标签。"
  5651. #. type: Plain text
  5652. #: guix-git/doc/guix.texi:1478
  5653. 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:"
  5654. msgstr "一旦安装好策略,为文件系统重新打好标签,并且重启了后台进程,它应该在@code{guix_daemon_t}环境里运行。你可以用下面这个命令确认:"
  5655. #. type: example
  5656. #: guix-git/doc/guix.texi:1481
  5657. #, no-wrap
  5658. msgid "ps -Zax | grep guix-daemon\n"
  5659. msgstr "ps -Zax | grep guix-daemon\n"
  5660. #. type: Plain text
  5661. #: guix-git/doc/guix.texi:1486
  5662. 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."
  5663. msgstr "运行@code{guix build hello}之类的命令并监控SELinux日志以说服你自己SELinux允许所有的操作。"
  5664. #. type: cindex
  5665. #: guix-git/doc/guix.texi:1488
  5666. #, no-wrap
  5667. msgid "SELinux, limitations"
  5668. msgstr "SELinux,限制"
  5669. #. type: Plain text
  5670. #: guix-git/doc/guix.texi:1493
  5671. 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."
  5672. msgstr "这个策略不是完美的。这里有一个关于限制和缺陷的列表,当为Guix后台进程部署提供的SELinux策略时该认真考虑。"
  5673. #. type: enumerate
  5674. #: guix-git/doc/guix.texi:1500
  5675. #, fuzzy
  5676. 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."
  5677. msgstr "@code{guix_daemon_socket_t}没有被实际使用。所有的套接字操作都和@code{guix_daemon_socket_t}没有任何关系。存在这个没被使用的标签并不碍事,但是为这个标签定义套接字规则是更好的选择。"
  5678. #. type: enumerate
  5679. #: guix-git/doc/guix.texi:1511
  5680. 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."
  5681. msgstr "@code{guix gc}不可以任意访问指向profile的链接。由于设计的原因,符号链接的目标的文件标签和符号链接本身的文件标签是不同的。尽管$localstatedir里的所有profile都被打上了标签,指向这些profile的符号链接继承它们所在的文件夹的标签。对于普通用户的家目录里的链接,标签是@code{user_home_t}。但是对于root用户的家目录,或@file{/tmp},或HTTP服务器的工作目录等文件夹里的链接不是这样。@code{guix gc}会被阻止读取和跟随这些链接。"
  5682. #. type: enumerate
  5683. #: guix-git/doc/guix.texi:1516
  5684. 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."
  5685. msgstr "后台进程监听TCP连接的功能不再可用。这可能需要额外的规则,因为SELinux区别对待网络套接字和文件。"
  5686. #. type: enumerate
  5687. #: guix-git/doc/guix.texi:1527
  5688. 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."
  5689. 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无法阻止它访问所在域的进程可以访问的文件。"
  5690. #. type: enumerate
  5691. #: guix-git/doc/guix.texi:1532
  5692. 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."
  5693. msgstr ""
  5694. #. type: enumerate
  5695. #: guix-git/doc/guix.texi:1540
  5696. 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."
  5697. msgstr "我们可以在安装时生成一个更严格的策略,仅当前安装的@code{guix-daemon}的@emph{精确的}的文件名会被打上@code{guix_daemon_exec_t}标签,而不是用一个宽泛的正则表达式。这样的缺点是root必须在每次安装提供@code{guix-daemon}的Guix软件包时安装或升级策略。"
  5698. #. type: section
  5699. #: guix-git/doc/guix.texi:1543
  5700. #, no-wrap
  5701. msgid "Invoking @command{guix-daemon}"
  5702. msgstr "调用@command{guix-daemon}"
  5703. #. type: Plain text
  5704. #: guix-git/doc/guix.texi:1549
  5705. 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:"
  5706. msgstr "@command{guix-daemon}程序实现了所有访问仓库的功能。包括启动构建进程,运行垃圾回收器,查询构建结果,等。它通常以@code{root}身份运行:"
  5707. #. type: Plain text
  5708. #: guix-git/doc/guix.texi:1556
  5709. msgid "For details on how to set it up, @pxref{Setting Up the Daemon}."
  5710. msgstr "关于如何设置它,@pxref{Setting Up the Daemon}。"
  5711. #. type: cindex
  5712. #: guix-git/doc/guix.texi:1558
  5713. #, no-wrap
  5714. msgid "container, build environment"
  5715. msgstr "容器,构建环境"
  5716. #. type: cindex
  5717. #: guix-git/doc/guix.texi:1560 guix-git/doc/guix.texi:3104
  5718. #: guix-git/doc/guix.texi:4022 guix-git/doc/guix.texi:14214
  5719. #, no-wrap
  5720. msgid "reproducible builds"
  5721. msgstr "可复现的构建"
  5722. #. type: Plain text
  5723. #: guix-git/doc/guix.texi:1572
  5724. #, fuzzy
  5725. 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})."
  5726. 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})。"
  5727. #. type: Plain text
  5728. #: guix-git/doc/guix.texi:1578
  5729. #, fuzzy
  5730. 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}."
  5731. msgstr "当后台进程代替用户执行构建时,它在@file{/tmp}或@code{TMPDIR}环境变量指定的文件夹里创建一个文件夹。在构建期间,这个文件夹被共享给容器,然而容器内,这个构建树总是叫做@file{/tmp/guix-build-@var{name}.drv-0}。"
  5732. #. type: Plain text
  5733. #: guix-git/doc/guix.texi:1582
  5734. #, fuzzy
  5735. 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}})."
  5736. msgstr "结束时构建文件夹就被自动删除了,除非构建失败并且客户端指定了@option{--keep-failed}参数(@pxref{Invoking guix build, @option{--keep-failed}})。"
  5737. #. type: Plain text
  5738. #: guix-git/doc/guix.texi:1588
  5739. #, fuzzy
  5740. 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."
  5741. msgstr "后台进程监听连接并且为每个客户端(@command{guix}的子命令)启动的会话生成一个子进程。@command{guix processes}命令允许你获取系统上的活动的概况,浏览每个活动会话和客户端。@xref{Invoking guix processes},以了解更多信息。"
  5742. #. type: Plain text
  5743. #: guix-git/doc/guix.texi:1590
  5744. msgid "The following command-line options are supported:"
  5745. msgstr "下面这些命令行选项受支持:"
  5746. #. type: item
  5747. #: guix-git/doc/guix.texi:1592
  5748. #, no-wrap
  5749. msgid "--build-users-group=@var{group}"
  5750. msgstr "--build-users-group=@var{用户组}"
  5751. #. type: table
  5752. #: guix-git/doc/guix.texi:1595
  5753. msgid "Take users from @var{group} to run build processes (@pxref{Setting Up the Daemon, build users})."
  5754. msgstr "这会从@var{用户组}里选取用户,以运行构建进程(@pxref{Setting Up the Daemon,构建用户})。"
  5755. #. type: item
  5756. #: guix-git/doc/guix.texi:1596 guix-git/doc/guix.texi:11333
  5757. #, no-wrap
  5758. msgid "--no-substitutes"
  5759. msgstr "--no-substitutes"
  5760. #. type: cindex
  5761. #: guix-git/doc/guix.texi:1597 guix-git/doc/guix.texi:3116
  5762. #: guix-git/doc/guix.texi:3775
  5763. #, no-wrap
  5764. msgid "substitutes"
  5765. msgstr "substitutes"
  5766. #. type: table
  5767. #: guix-git/doc/guix.texi:1601 guix-git/doc/guix.texi:11337
  5768. msgid "Do not use substitutes for build products. That is, always build things locally instead of allowing downloads of pre-built binaries (@pxref{Substitutes})."
  5769. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5770. #. type: table
  5771. #: guix-git/doc/guix.texi:1605
  5772. #, fuzzy
  5773. 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})."
  5774. msgstr "当后台进程用@code{--no-substitutes}参数启动时,客户端仍然可以显式地@i{通过}@code{set-build-options}远程过程调用来启用substitute(@pxref{The Store})。"
  5775. #. type: anchor{#1}
  5776. #: guix-git/doc/guix.texi:1607
  5777. msgid "daemon-substitute-urls"
  5778. msgstr "daemon-substitute-urls"
  5779. #. type: item
  5780. #: guix-git/doc/guix.texi:1607 guix-git/doc/guix.texi:11320
  5781. #: guix-git/doc/guix.texi:13621 guix-git/doc/guix.texi:14360
  5782. #: guix-git/doc/guix.texi:14585
  5783. #, no-wrap
  5784. msgid "--substitute-urls=@var{urls}"
  5785. msgstr "--substitute-urls=@var{urls}"
  5786. #. type: table
  5787. #: guix-git/doc/guix.texi:1611
  5788. #, fuzzy
  5789. #| 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."
  5790. msgid "Consider @var{urls} the default whitespace-separated list of substitute source URLs. When this option is omitted, @indicateurl{@value{SUBSTITUTE-URLS}} is used."
  5791. msgstr "@var{urls}是用空格分隔的substitute源URL列表。当这个选项被省略时,默认使用@indicateurl{https://@value{SUBSTITUTE-SERVER}}。"
  5792. #. type: table
  5793. #: guix-git/doc/guix.texi:1614
  5794. msgid "This means that substitutes may be downloaded from @var{urls}, as long as they are signed by a trusted signature (@pxref{Substitutes})."
  5795. msgstr "这意味着可以从@var{urls}下载substitute,只要它们的签名可信(@pxref{Substitutes})。"
  5796. #. type: table
  5797. #: guix-git/doc/guix.texi:1617
  5798. msgid "@xref{Getting Substitutes from Other Servers}, for more information on how to configure the daemon to get substitutes from other servers."
  5799. msgstr ""
  5800. #. type: item
  5801. #: guix-git/doc/guix.texi:1619 guix-git/doc/guix.texi:11356
  5802. #, fuzzy, no-wrap
  5803. msgid "--no-offload"
  5804. msgstr "下发"
  5805. #. type: table
  5806. #: guix-git/doc/guix.texi:1623 guix-git/doc/guix.texi:11360
  5807. #, fuzzy
  5808. 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."
  5809. msgstr "不要为构建商品使用substitute。即,总是在本地构建,而不是下载预构建的二进制文件(@pxref{Substitutes})。"
  5810. #. type: item
  5811. #: guix-git/doc/guix.texi:1624
  5812. #, no-wrap
  5813. msgid "--cache-failures"
  5814. msgstr "--cache-failures"
  5815. #. type: table
  5816. #: guix-git/doc/guix.texi:1626
  5817. msgid "Cache build failures. By default, only successful builds are cached."
  5818. msgstr "缓存失败的构建。默认地,只缓存成功的构建。"
  5819. #. type: table
  5820. #: guix-git/doc/guix.texi:1631
  5821. 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}."
  5822. msgstr "当这个选项被使用时,可以用@command{guix gc --list-failures}查询被标记为失败的仓库文件;@command{guix gc --clear-failures}从仓库里删除失败的缓存。@xref{Invoking guix gc}。"
  5823. #. type: item
  5824. #: guix-git/doc/guix.texi:1632 guix-git/doc/guix.texi:11386
  5825. #, no-wrap
  5826. msgid "--cores=@var{n}"
  5827. msgstr "--cores=@var{n}"
  5828. #. type: itemx
  5829. #: guix-git/doc/guix.texi:1633 guix-git/doc/guix.texi:11387
  5830. #, no-wrap
  5831. msgid "-c @var{n}"
  5832. msgstr "-c @var{n}"
  5833. #. type: table
  5834. #: guix-git/doc/guix.texi:1636
  5835. msgid "Use @var{n} CPU cores to build each derivation; @code{0} means as many as available."
  5836. msgstr "用@var{n}个CPU核来构建每个derivation;@code{0}表示有多少就用多少。"
  5837. #. type: table
  5838. #: guix-git/doc/guix.texi:1640
  5839. #, fuzzy
  5840. 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})."
  5841. msgstr "默认值是@code{0},但是它的值可以被客户端覆盖,例如@command{guix build}的@code{--cores}选项(@pxref{Invoking guix build})。"
  5842. #. type: table
  5843. #: guix-git/doc/guix.texi:1644
  5844. #, fuzzy
  5845. 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}."
  5846. msgstr "他的作用是在构建进程里设置@code{NIX_BUILD_CORES}环境变量,从而用它来利用内部的并行机制--例如,通过运行@code{make -j$NIX_BUILD_CORES}。"
  5847. #. type: item
  5848. #: guix-git/doc/guix.texi:1645 guix-git/doc/guix.texi:11391
  5849. #, no-wrap
  5850. msgid "--max-jobs=@var{n}"
  5851. msgstr "--max-jobs=@var{n}"
  5852. #. type: itemx
  5853. #: guix-git/doc/guix.texi:1646 guix-git/doc/guix.texi:11392
  5854. #, no-wrap
  5855. msgid "-M @var{n}"
  5856. msgstr "-M @var{n}"
  5857. #. type: table
  5858. #: guix-git/doc/guix.texi:1651
  5859. 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."
  5860. msgstr "最多允许@var{n}个并行的构建任务。默认值是@code{1}。设置为@code{0}表示不在本地执行构建;而是下发构建任务(@pxref{Daemon Offload Setup}),或者直接失败。"
  5861. #. type: item
  5862. #: guix-git/doc/guix.texi:1652 guix-git/doc/guix.texi:11361
  5863. #, no-wrap
  5864. msgid "--max-silent-time=@var{seconds}"
  5865. msgstr "--max-silent-time=@var{seconds}"
  5866. #. type: table
  5867. #: guix-git/doc/guix.texi:1655 guix-git/doc/guix.texi:11364
  5868. msgid "When the build or substitution process remains silent for more than @var{seconds}, terminate it and report a build failure."
  5869. msgstr "当构建或substitution进程超过@var{seconds}秒仍然保持静默,就把它结束掉并报告构建失败。"
  5870. #. type: table
  5871. #: guix-git/doc/guix.texi:1657 guix-git/doc/guix.texi:1666
  5872. msgid "The default value is @code{0}, which disables the timeout."
  5873. msgstr "默认值是@code{0},表示关闭超时。"
  5874. #. type: table
  5875. #: guix-git/doc/guix.texi:1660
  5876. #, fuzzy
  5877. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--max-silent-time}})."
  5878. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--max-silent-time}})。"
  5879. #. type: item
  5880. #: guix-git/doc/guix.texi:1661 guix-git/doc/guix.texi:11368
  5881. #, no-wrap
  5882. msgid "--timeout=@var{seconds}"
  5883. msgstr "--timeout=@var{seconds}"
  5884. #. type: table
  5885. #: guix-git/doc/guix.texi:1664 guix-git/doc/guix.texi:11371
  5886. msgid "Likewise, when the build or substitution process lasts for more than @var{seconds}, terminate it and report a build failure."
  5887. msgstr "类似地,当构建或substitution进程执行超过@var{seconds}秒,就把它结束掉并报告构建失败。"
  5888. #. type: table
  5889. #: guix-git/doc/guix.texi:1669
  5890. #, fuzzy
  5891. msgid "The value specified here can be overridden by clients (@pxref{Common Build Options, @option{--timeout}})."
  5892. msgstr "这里指定的值可以被客户端覆盖(@pxref{Common Build Options, @code{--timeout}})。"
  5893. #. type: item
  5894. #: guix-git/doc/guix.texi:1670
  5895. #, no-wrap
  5896. msgid "--rounds=@var{N}"
  5897. msgstr "--rounds=@var{N}"
  5898. #. type: table
  5899. #: guix-git/doc/guix.texi:1675
  5900. 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})."
  5901. msgstr "为每个derivation构建@var{n}次,如果连续的构建结果不是每个比特都相同就报告错误。这个设置可以被@command{guix build}之类的客户端覆盖(@pxref{Invoking guix build})。"
  5902. #. type: table
  5903. #: guix-git/doc/guix.texi:1679 guix-git/doc/guix.texi:11355
  5904. #: guix-git/doc/guix.texi:11979
  5905. 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."
  5906. msgstr "当和@option{--keep-failed}一起使用时,不同的输出保存在@file{/gnu/store/@dots{}-check}。这让检查两个结果的区别更容易。"
  5907. #. type: item
  5908. #: guix-git/doc/guix.texi:1680
  5909. #, no-wrap
  5910. msgid "--debug"
  5911. msgstr "--debug"
  5912. #. type: table
  5913. #: guix-git/doc/guix.texi:1682
  5914. msgid "Produce debugging output."
  5915. msgstr "生成调试输出。"
  5916. #. type: table
  5917. #: guix-git/doc/guix.texi:1686
  5918. #, fuzzy
  5919. 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})."
  5920. msgstr "这对调试后台进程的启动问题很有用,但是之后它可能会被客户端覆盖,例如@command{guix build}命令的@code{--verbosity}选项(@pxref{Invoking guix build})。"
  5921. #. type: item
  5922. #: guix-git/doc/guix.texi:1687
  5923. #, no-wrap
  5924. msgid "--chroot-directory=@var{dir}"
  5925. msgstr "--chroot-directory=@var{dir}"
  5926. #. type: table
  5927. #: guix-git/doc/guix.texi:1689
  5928. msgid "Add @var{dir} to the build chroot."
  5929. msgstr "把@var{dir}添加到构建的chroot。"
  5930. #. type: table
  5931. #: guix-git/doc/guix.texi:1695
  5932. 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."
  5933. msgstr "这么做可能会改变构建进程的结果--例如,如果它们使用了在@var{dir}里发现的可选依赖。因此,建议不要这么做,而是确保每个derivation声明所需的全部输入。"
  5934. #. type: item
  5935. #: guix-git/doc/guix.texi:1696
  5936. #, no-wrap
  5937. msgid "--disable-chroot"
  5938. msgstr "--disable-chroot"
  5939. #. type: table
  5940. #: guix-git/doc/guix.texi:1698
  5941. msgid "Disable chroot builds."
  5942. msgstr "关闭chroot构建。"
  5943. #. type: table
  5944. #: guix-git/doc/guix.texi:1703
  5945. 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."
  5946. msgstr "不建议使用这个选项,因为它会允许构建进程访问到没被声明的依赖。但是,当@command{guix-daemon}以没有特权的用户身份运行时,这个选项是必须的。"
  5947. #. type: item
  5948. #: guix-git/doc/guix.texi:1704
  5949. #, no-wrap
  5950. msgid "--log-compression=@var{type}"
  5951. msgstr "--log-compression=@var{type}"
  5952. #. type: table
  5953. #: guix-git/doc/guix.texi:1707
  5954. msgid "Compress build logs according to @var{type}, one of @code{gzip}, @code{bzip2}, or @code{none}."
  5955. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  5956. #. type: table
  5957. #: guix-git/doc/guix.texi:1711
  5958. #, fuzzy
  5959. 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 gzip by default."
  5960. msgstr "除非使用了@code{--lose-logs},所有的构建日志都保存在@var{localstatedir}里。为了节省空间,后台进程默认使用bzip2对它们进行压缩。"
  5961. #. type: item
  5962. #: guix-git/doc/guix.texi:1712
  5963. #, no-wrap
  5964. msgid "--discover[=yes|no]"
  5965. msgstr ""
  5966. #. type: table
  5967. #: guix-git/doc/guix.texi:1715 guix-git/doc/guix.texi:17045
  5968. msgid "Whether to discover substitute servers on the local network using mDNS and DNS-SD."
  5969. msgstr ""
  5970. #. type: table
  5971. #: guix-git/doc/guix.texi:1718
  5972. msgid "This feature is still experimental. However, here are a few considerations."
  5973. msgstr ""
  5974. #. type: enumerate
  5975. #: guix-git/doc/guix.texi:1722
  5976. msgid "It might be faster/less expensive than fetching from remote servers;"
  5977. msgstr ""
  5978. #. type: enumerate
  5979. #: guix-git/doc/guix.texi:1725
  5980. msgid "There are no security risks, only genuine substitutes will be used (@pxref{Substitute Authentication});"
  5981. msgstr ""
  5982. #. type: enumerate
  5983. #: guix-git/doc/guix.texi:1729
  5984. msgid "An attacker advertising @command{guix publish} on your LAN cannot serve you malicious binaries, but they can learn what software you’re installing;"
  5985. msgstr ""
  5986. #. type: enumerate
  5987. #: guix-git/doc/guix.texi:1732
  5988. msgid "Servers may serve substitute over HTTP, unencrypted, so anyone on the LAN can see what software you’re installing."
  5989. msgstr ""
  5990. #. type: table
  5991. #: guix-git/doc/guix.texi:1736
  5992. msgid "It is also possible to enable or disable substitute server discovery at run-time by running:"
  5993. msgstr ""
  5994. #. type: example
  5995. #: guix-git/doc/guix.texi:1740
  5996. #, no-wrap
  5997. msgid ""
  5998. "herd discover guix-daemon on\n"
  5999. "herd discover guix-daemon off\n"
  6000. msgstr ""
  6001. #. type: item
  6002. #: guix-git/doc/guix.texi:1742
  6003. #, no-wrap
  6004. msgid "--disable-deduplication"
  6005. msgstr "--disable-deduplication"
  6006. #. type: cindex
  6007. #: guix-git/doc/guix.texi:1743 guix-git/doc/guix.texi:4360
  6008. #, no-wrap
  6009. msgid "deduplication"
  6010. msgstr "去重"
  6011. #. type: table
  6012. #: guix-git/doc/guix.texi:1745
  6013. msgid "Disable automatic file ``deduplication'' in the store."
  6014. msgstr "关闭自动对仓库文件“去重”。"
  6015. #. type: table
  6016. #: guix-git/doc/guix.texi:1752
  6017. 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."
  6018. msgstr "默认地,添加到仓库的文件会被自动“去重”:如果新添加的文件和仓库里找到的某个文件完全相同,后台进程把这个新文件变成另一个文件的硬链接。这可以明显地减少硬盘使用,代价是构建结束后轻微地增加输入/输出负载。这个选项关闭这个优化。"
  6019. #. type: item
  6020. #: guix-git/doc/guix.texi:1753
  6021. #, no-wrap
  6022. msgid "--gc-keep-outputs[=yes|no]"
  6023. msgstr "--gc-keep-outputs[=yes|no]"
  6024. #. type: table
  6025. #: guix-git/doc/guix.texi:1756
  6026. msgid "Tell whether the garbage collector (GC) must keep outputs of live derivations."
  6027. msgstr "垃圾收集器(GC)是否必须保留存活的derivation的输出。"
  6028. #. type: cindex
  6029. #: guix-git/doc/guix.texi:1757 guix-git/doc/guix.texi:4173
  6030. #, no-wrap
  6031. msgid "GC roots"
  6032. msgstr "GC根"
  6033. #. type: cindex
  6034. #: guix-git/doc/guix.texi:1758 guix-git/doc/guix.texi:4174
  6035. #, no-wrap
  6036. msgid "garbage collector roots"
  6037. msgstr "垃圾收集的根"
  6038. #. type: table
  6039. #: guix-git/doc/guix.texi:1764
  6040. #, fuzzy
  6041. 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."
  6042. msgstr "当设置为“yes”时,GC会保留仓库里每个存活的derivation(@code{.drv}文件)的输出。默认是“no”,表示只有当从GC根可以访问时才保留derivation的输出。@xref{Invoking guix gc},了解更多关于GC根的信息。"
  6043. #. type: item
  6044. #: guix-git/doc/guix.texi:1765
  6045. #, no-wrap
  6046. msgid "--gc-keep-derivations[=yes|no]"
  6047. msgstr "--gc-keep-derivations[=yes|no]"
  6048. #. type: table
  6049. #: guix-git/doc/guix.texi:1768
  6050. msgid "Tell whether the garbage collector (GC) must keep derivations corresponding to live outputs."
  6051. msgstr "垃圾收集器(GC)是否必须保留和存活的输出相关的derivation。"
  6052. #. type: table
  6053. #: guix-git/doc/guix.texi:1774
  6054. #, fuzzy
  6055. 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."
  6056. msgstr "当设置为“yes”时(默认),只要derivation(即@code{.drv}文件)的输出至少有一个是存活的,GC就将其保留。这让用户可以追踪仓库里物品的源头。设置为“no”可以节省一点硬盘空间。"
  6057. #. type: table
  6058. #: guix-git/doc/guix.texi:1783
  6059. #, fuzzy
  6060. 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."
  6061. msgstr "这样,设置@code{--gc-keep-derivations}为“yes”使存活性从“输出”传递到“derivation”,设置@code{--gc-keep-outputs}为“yes”使存活性从“derivation”传递到“输出”。当两者都设置为“yes”时,效果是保留所有在仓库里的存活对象的构建先决条件(源代码,编译器,库,和其它构建时的工具),不管这些先决条件是否能从某个GC根访问到。这对开发者来说很方便,因为它避免了重复构建和下载。"
  6062. #. type: item
  6063. #: guix-git/doc/guix.texi:1784
  6064. #, no-wrap
  6065. msgid "--impersonate-linux-2.6"
  6066. msgstr "--impersonate-linux-2.6"
  6067. #. type: table
  6068. #: guix-git/doc/guix.texi:1787
  6069. #, fuzzy
  6070. 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."
  6071. msgstr "在基于Linux的系统上,伪装成Linux 2.6。这意味着内核的@code{uname}系统调用会把版本号报告为2.6。"
  6072. #. type: table
  6073. #: guix-git/doc/guix.texi:1790
  6074. msgid "This might be helpful to build programs that (usually wrongfully) depend on the kernel version number."
  6075. msgstr "这可能会有助于构建那些(通常是错误地)依赖内核版本号的程序。"
  6076. #. type: item
  6077. #: guix-git/doc/guix.texi:1791
  6078. #, no-wrap
  6079. msgid "--lose-logs"
  6080. msgstr "--lose-logs"
  6081. #. type: table
  6082. #: guix-git/doc/guix.texi:1794
  6083. #, fuzzy
  6084. msgid "Do not keep build logs. By default they are kept under @file{@var{localstatedir}/guix/log}."
  6085. msgstr "不保留构建日志。默认保存在@code{@var{localstatedir}/guix/log}。"
  6086. #. type: item
  6087. #: guix-git/doc/guix.texi:1795 guix-git/doc/guix.texi:4605
  6088. #: guix-git/doc/guix.texi:5881 guix-git/doc/guix.texi:6294
  6089. #: guix-git/doc/guix.texi:6694 guix-git/doc/guix.texi:11923
  6090. #: guix-git/doc/guix.texi:13648 guix-git/doc/guix.texi:13913
  6091. #: guix-git/doc/guix.texi:14590 guix-git/doc/guix.texi:34995
  6092. #: guix-git/doc/guix.texi:35809
  6093. #, no-wrap
  6094. msgid "--system=@var{system}"
  6095. msgstr "--system=@var{system}"
  6096. #. type: table
  6097. #: guix-git/doc/guix.texi:1799
  6098. 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}."
  6099. msgstr "假设@var{system}是当前的系统类型。默认值是configure时发现的架构/内核元组,如@code{x86_64-linux}。"
  6100. #. type: item
  6101. #: guix-git/doc/guix.texi:1800 guix-git/doc/guix.texi:11165
  6102. #, no-wrap
  6103. msgid "--listen=@var{endpoint}"
  6104. msgstr "--listen=@var{endpoint}"
  6105. #. type: table
  6106. #: guix-git/doc/guix.texi:1805
  6107. 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:"
  6108. msgstr ""
  6109. #. type: item
  6110. #: guix-git/doc/guix.texi:1807
  6111. #, no-wrap
  6112. msgid "--listen=/gnu/var/daemon"
  6113. msgstr ""
  6114. #. type: table
  6115. #: guix-git/doc/guix.texi:1810
  6116. msgid "Listen for connections on the @file{/gnu/var/daemon} Unix-domain socket, creating it if needed."
  6117. msgstr ""
  6118. #. type: item
  6119. #: guix-git/doc/guix.texi:1811
  6120. #, no-wrap
  6121. msgid "--listen=localhost"
  6122. msgstr ""
  6123. #. type: cindex
  6124. #: guix-git/doc/guix.texi:1812 guix-git/doc/guix.texi:9839
  6125. #, no-wrap
  6126. msgid "daemon, remote access"
  6127. msgstr ""
  6128. #. type: cindex
  6129. #: guix-git/doc/guix.texi:1813 guix-git/doc/guix.texi:9840
  6130. #, no-wrap
  6131. msgid "remote access to the daemon"
  6132. msgstr ""
  6133. #. type: cindex
  6134. #: guix-git/doc/guix.texi:1814 guix-git/doc/guix.texi:9841
  6135. #, no-wrap
  6136. msgid "daemon, cluster setup"
  6137. msgstr ""
  6138. #. type: cindex
  6139. #: guix-git/doc/guix.texi:1815 guix-git/doc/guix.texi:9842
  6140. #, no-wrap
  6141. msgid "clusters, daemon setup"
  6142. msgstr ""
  6143. #. type: table
  6144. #: guix-git/doc/guix.texi:1818
  6145. msgid "Listen for TCP connections on the network interface corresponding to @code{localhost}, on port 44146."
  6146. msgstr ""
  6147. #. type: item
  6148. #: guix-git/doc/guix.texi:1819
  6149. #, no-wrap
  6150. msgid "--listen=128.0.0.42:1234"
  6151. msgstr ""
  6152. #. type: table
  6153. #: guix-git/doc/guix.texi:1822
  6154. msgid "Listen for TCP connections on the network interface corresponding to @code{128.0.0.42}, on port 1234."
  6155. msgstr ""
  6156. #. type: table
  6157. #: guix-git/doc/guix.texi:1829
  6158. 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}})."
  6159. msgstr ""
  6160. #. type: quotation
  6161. #: guix-git/doc/guix.texi:1836
  6162. 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."
  6163. msgstr ""
  6164. #. type: table
  6165. #: guix-git/doc/guix.texi:1841
  6166. 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}."
  6167. msgstr ""
  6168. #. type: Plain text
  6169. #: guix-git/doc/guix.texi:1851
  6170. 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."
  6171. msgstr ""
  6172. #. type: anchor{#1}
  6173. #: guix-git/doc/guix.texi:1855
  6174. msgid "locales-and-locpath"
  6175. msgstr ""
  6176. #. type: cindex
  6177. #: guix-git/doc/guix.texi:1855
  6178. #, no-wrap
  6179. msgid "locales, when not on Guix System"
  6180. msgstr ""
  6181. #. type: vindex
  6182. #: guix-git/doc/guix.texi:1856 guix-git/doc/guix.texi:16248
  6183. #, no-wrap
  6184. msgid "LOCPATH"
  6185. msgstr ""
  6186. #. type: vindex
  6187. #: guix-git/doc/guix.texi:1857
  6188. #, no-wrap
  6189. msgid "GUIX_LOCPATH"
  6190. msgstr ""
  6191. #. type: Plain text
  6192. #: guix-git/doc/guix.texi:1862
  6193. 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:"
  6194. msgstr ""
  6195. #. type: example
  6196. #: guix-git/doc/guix.texi:1866
  6197. #, no-wrap
  6198. msgid ""
  6199. "$ guix install glibc-locales\n"
  6200. "$ export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale\n"
  6201. msgstr ""
  6202. #. type: Plain text
  6203. #: guix-git/doc/guix.texi:1878
  6204. 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 930@tie{}MiB@footnote{The size of the @code{glibc-locales} package is reduced down to about 213@tie{}MiB with store deduplication and further down to about 67@tie{}MiB when using a zstd-compressed Btrfs file system.}. If you only need a few locales, you can define your custom locales package via the @code{make-glibc-utf8-locales} procedure from the @code{(gnu packages base)} module. The following example defines a package containing the various Canadian UTF-8 locales known to the GNU@tie{}libc, that weighs around 14@tie{}MiB:"
  6205. msgstr ""
  6206. #. type: lisp
  6207. #: guix-git/doc/guix.texi:1881
  6208. #, fuzzy, no-wrap
  6209. #| msgid "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  6210. msgid ""
  6211. "(use-modules (gnu packages base))\n"
  6212. "\n"
  6213. msgstr "./pre-inst-env guile -c '(use-modules (gnu packages gnew))'\n"
  6214. #. type: lisp
  6215. #: guix-git/doc/guix.texi:1887
  6216. #, no-wrap
  6217. msgid ""
  6218. "(define my-glibc-locales\n"
  6219. " (make-glibc-utf8-locales\n"
  6220. " glibc\n"
  6221. " #:locales (list \"en_CA\" \"fr_CA\" \"ik_CA\" \"iu_CA\" \"shs_CA\")\n"
  6222. " #:name \"glibc-canadian-utf8-locales\"))\n"
  6223. msgstr ""
  6224. #. type: Plain text
  6225. #: guix-git/doc/guix.texi:1892
  6226. 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:"
  6227. msgstr ""
  6228. #. type: enumerate
  6229. #: guix-git/doc/guix.texi:1899
  6230. 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."
  6231. msgstr ""
  6232. #. type: enumerate
  6233. #: guix-git/doc/guix.texi:1906
  6234. 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."
  6235. msgstr ""
  6236. #. type: Plain text
  6237. #: guix-git/doc/guix.texi:1910
  6238. msgid "This is important because the locale data format used by different libc versions may be incompatible."
  6239. msgstr ""
  6240. #. type: cindex
  6241. #: guix-git/doc/guix.texi:1913
  6242. #, no-wrap
  6243. msgid "name service switch, glibc"
  6244. msgstr ""
  6245. #. type: cindex
  6246. #: guix-git/doc/guix.texi:1914
  6247. #, no-wrap
  6248. msgid "NSS (name service switch), glibc"
  6249. msgstr ""
  6250. #. type: cindex
  6251. #: guix-git/doc/guix.texi:1915
  6252. #, no-wrap
  6253. msgid "nscd (name service caching daemon)"
  6254. msgstr ""
  6255. #. type: cindex
  6256. #: guix-git/doc/guix.texi:1916
  6257. #, no-wrap
  6258. msgid "name service caching daemon (nscd)"
  6259. msgstr ""
  6260. #. type: Plain text
  6261. #: guix-git/doc/guix.texi:1923
  6262. 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."
  6263. msgstr ""
  6264. #. type: file{#1}
  6265. #: guix-git/doc/guix.texi:1924
  6266. #, no-wrap
  6267. msgid "nsswitch.conf"
  6268. msgstr ""
  6269. #. type: Plain text
  6270. #: guix-git/doc/guix.texi:1929
  6271. 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})."
  6272. msgstr ""
  6273. #. type: cindex
  6274. #: guix-git/doc/guix.texi:1930
  6275. #, no-wrap
  6276. msgid "Network information service (NIS)"
  6277. msgstr ""
  6278. #. type: cindex
  6279. #: guix-git/doc/guix.texi:1931
  6280. #, no-wrap
  6281. msgid "NIS (Network information service)"
  6282. msgstr ""
  6283. #. type: Plain text
  6284. #: guix-git/doc/guix.texi:1940
  6285. 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})."
  6286. msgstr ""
  6287. #. type: Plain text
  6288. #: guix-git/doc/guix.texi:1950
  6289. 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)."
  6290. msgstr ""
  6291. #. type: Plain text
  6292. #: guix-git/doc/guix.texi:1955
  6293. 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."
  6294. msgstr ""
  6295. #. type: Plain text
  6296. #: guix-git/doc/guix.texi:1960
  6297. 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."
  6298. msgstr ""
  6299. #. type: subsection
  6300. #: guix-git/doc/guix.texi:1961
  6301. #, no-wrap
  6302. msgid "X11 Fonts"
  6303. msgstr ""
  6304. #. type: Plain text
  6305. #: guix-git/doc/guix.texi:1971
  6306. 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{font-ghostscript}, @code{font-dejavu}, and @code{font-gnu-freefont}."
  6307. msgstr ""
  6308. #. type: code{#1}
  6309. #: guix-git/doc/guix.texi:1972
  6310. #, no-wrap
  6311. msgid "fc-cache"
  6312. msgstr ""
  6313. #. type: cindex
  6314. #: guix-git/doc/guix.texi:1973
  6315. #, no-wrap
  6316. msgid "font cache"
  6317. msgstr ""
  6318. #. type: Plain text
  6319. #: guix-git/doc/guix.texi:1977
  6320. 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:"
  6321. msgstr ""
  6322. #. type: example
  6323. #: guix-git/doc/guix.texi:1981
  6324. #, no-wrap
  6325. msgid ""
  6326. "guix install fontconfig\n"
  6327. "fc-cache -rv\n"
  6328. msgstr ""
  6329. #. type: Plain text
  6330. #: guix-git/doc/guix.texi:1989
  6331. 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:"
  6332. msgstr ""
  6333. #. type: example
  6334. #: guix-git/doc/guix.texi:1992
  6335. #, no-wrap
  6336. msgid "guix install font-adobe-source-han-sans:cn\n"
  6337. msgstr ""
  6338. #. type: code{#1}
  6339. #: guix-git/doc/guix.texi:1994
  6340. #, no-wrap
  6341. msgid "xterm"
  6342. msgstr ""
  6343. #. type: Plain text
  6344. #: guix-git/doc/guix.texi:1998
  6345. 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:"
  6346. msgstr ""
  6347. #. type: example
  6348. #: guix-git/doc/guix.texi:2001
  6349. #, no-wrap
  6350. msgid "-*-dejavu sans-medium-r-normal-*-*-100-*-*-*-*-*-1\n"
  6351. msgstr ""
  6352. #. type: Plain text
  6353. #: guix-git/doc/guix.texi:2005
  6354. 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:"
  6355. msgstr ""
  6356. #. type: example
  6357. #: guix-git/doc/guix.texi:2010
  6358. #, no-wrap
  6359. msgid "xset +fp $(dirname $(readlink -f ~/.guix-profile/share/fonts/truetype/fonts.dir))\n"
  6360. msgstr ""
  6361. #. type: code{#1}
  6362. #: guix-git/doc/guix.texi:2012
  6363. #, no-wrap
  6364. msgid "xlsfonts"
  6365. msgstr ""
  6366. #. type: Plain text
  6367. #: guix-git/doc/guix.texi:2015
  6368. msgid "After that, you can run @code{xlsfonts} (from @code{xlsfonts} package) to make sure your TrueType fonts are listed there."
  6369. msgstr ""
  6370. #. type: code{#1}
  6371. #: guix-git/doc/guix.texi:2019 guix-git/doc/guix.texi:34714
  6372. #, no-wrap
  6373. msgid "nss-certs"
  6374. msgstr ""
  6375. #. type: Plain text
  6376. #: guix-git/doc/guix.texi:2022
  6377. msgid "The @code{nss-certs} package provides X.509 certificates, which allow programs to authenticate Web servers accessed over HTTPS."
  6378. msgstr ""
  6379. #. type: Plain text
  6380. #: guix-git/doc/guix.texi:2027
  6381. 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."
  6382. msgstr ""
  6383. #. type: code{#1}
  6384. #: guix-git/doc/guix.texi:2030
  6385. #, no-wrap
  6386. msgid "emacs"
  6387. msgstr ""
  6388. #. type: Plain text
  6389. #: guix-git/doc/guix.texi:2036
  6390. 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."
  6391. msgstr ""
  6392. #. type: Plain text
  6393. #: guix-git/doc/guix.texi:2043
  6394. 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})."
  6395. msgstr ""
  6396. #. type: cindex
  6397. #: guix-git/doc/guix.texi:2048
  6398. #, no-wrap
  6399. msgid "Upgrading Guix, on a foreign distro"
  6400. msgstr ""
  6401. #. type: Plain text
  6402. #: guix-git/doc/guix.texi:2051
  6403. msgid "To upgrade Guix, run:"
  6404. msgstr ""
  6405. #. type: example
  6406. #: guix-git/doc/guix.texi:2054 guix-git/doc/guix.texi:2912
  6407. #, no-wrap
  6408. msgid "guix pull\n"
  6409. msgstr "guix pull\n"
  6410. #. type: Plain text
  6411. #: guix-git/doc/guix.texi:2057
  6412. #, fuzzy
  6413. msgid "@xref{Invoking guix pull}, for more information."
  6414. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  6415. #. type: cindex
  6416. #: guix-git/doc/guix.texi:2058
  6417. #, no-wrap
  6418. msgid "upgrading Guix for the root user, on a foreign distro"
  6419. msgstr ""
  6420. #. type: cindex
  6421. #: guix-git/doc/guix.texi:2059
  6422. #, no-wrap
  6423. msgid "upgrading the Guix daemon, on a foreign distro"
  6424. msgstr ""
  6425. #. type: cindex
  6426. #: guix-git/doc/guix.texi:2060
  6427. #, no-wrap
  6428. msgid "@command{guix pull} for the root user, on a foreign distro"
  6429. msgstr ""
  6430. #. type: Plain text
  6431. #: guix-git/doc/guix.texi:2063
  6432. msgid "On a foreign distro, you can upgrade the build daemon by running:"
  6433. msgstr ""
  6434. #. type: example
  6435. #: guix-git/doc/guix.texi:2066
  6436. #, no-wrap
  6437. msgid "sudo -i guix pull\n"
  6438. msgstr "sudo -i guix pull\n"
  6439. #. type: Plain text
  6440. #: guix-git/doc/guix.texi:2071
  6441. msgid "followed by (assuming your distro uses the systemd service management tool):"
  6442. msgstr ""
  6443. #. type: example
  6444. #: guix-git/doc/guix.texi:2074
  6445. #, fuzzy, no-wrap
  6446. msgid "systemctl restart guix-daemon.service\n"
  6447. msgstr "semodule -i etc/guix-daemon.cil\n"
  6448. #. type: Plain text
  6449. #: guix-git/doc/guix.texi:2078
  6450. msgid "On Guix System, upgrading the daemon is achieved by reconfiguring the system (@pxref{Invoking guix system, @code{guix system reconfigure}})."
  6451. msgstr ""
  6452. #. type: cindex
  6453. #: guix-git/doc/guix.texi:2085
  6454. #, no-wrap
  6455. msgid "installing Guix System"
  6456. msgstr ""
  6457. #. type: cindex
  6458. #: guix-git/doc/guix.texi:2086
  6459. #, no-wrap
  6460. msgid "Guix System, installation"
  6461. msgstr ""
  6462. #. type: Plain text
  6463. #: guix-git/doc/guix.texi:2091
  6464. 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}."
  6465. msgstr ""
  6466. #. type: quotation
  6467. #: guix-git/doc/guix.texi:2100
  6468. 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."
  6469. msgstr ""
  6470. #. type: quotation
  6471. #: guix-git/doc/guix.texi:2103
  6472. msgid "Alternatively, run @command{info info} in another tty to keep the manual available."
  6473. msgstr ""
  6474. #. type: Plain text
  6475. #: guix-git/doc/guix.texi:2124
  6476. 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."
  6477. msgstr ""
  6478. #. type: Plain text
  6479. #: guix-git/doc/guix.texi:2127
  6480. msgid "Nevertheless, before you proceed with the installation, be aware of the following noteworthy limitations applicable to version @value{VERSION}:"
  6481. msgstr ""
  6482. #. type: itemize
  6483. #: guix-git/doc/guix.texi:2132
  6484. msgid "More and more system services are provided (@pxref{Services}), but some may be missing."
  6485. msgstr ""
  6486. #. type: itemize
  6487. #: guix-git/doc/guix.texi:2137
  6488. 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."
  6489. msgstr ""
  6490. #. type: Plain text
  6491. #: guix-git/doc/guix.texi:2142
  6492. 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."
  6493. msgstr ""
  6494. #. type: cindex
  6495. #: guix-git/doc/guix.texi:2147
  6496. #, no-wrap
  6497. msgid "hardware support on Guix System"
  6498. msgstr ""
  6499. #. type: Plain text
  6500. #: guix-git/doc/guix.texi:2156
  6501. 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."
  6502. msgstr ""
  6503. #. type: cindex
  6504. #: guix-git/doc/guix.texi:2157
  6505. #, no-wrap
  6506. msgid "WiFi, hardware support"
  6507. msgstr ""
  6508. #. type: Plain text
  6509. #: guix-git/doc/guix.texi:2166
  6510. 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}})."
  6511. msgstr ""
  6512. #. type: cindex
  6513. #: guix-git/doc/guix.texi:2167
  6514. #, no-wrap
  6515. msgid "RYF, Respects Your Freedom"
  6516. msgstr ""
  6517. #. type: Plain text
  6518. #: guix-git/doc/guix.texi:2173
  6519. 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."
  6520. msgstr ""
  6521. #. type: Plain text
  6522. #: guix-git/doc/guix.texi:2177
  6523. 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."
  6524. msgstr ""
  6525. #. type: Plain text
  6526. #: guix-git/doc/guix.texi:2186
  6527. 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:"
  6528. msgstr ""
  6529. #. type: table
  6530. #: guix-git/doc/guix.texi:2190
  6531. msgid "for a GNU/Linux system on Intel/AMD-compatible 64-bit CPUs;"
  6532. msgstr ""
  6533. #. type: table
  6534. #: guix-git/doc/guix.texi:2193
  6535. msgid "for a 32-bit GNU/Linux system on Intel-compatible CPUs."
  6536. msgstr ""
  6537. #. type: Plain text
  6538. #: guix-git/doc/guix.texi:2198
  6539. msgid "Make sure to download the associated @file{.sig} file and to verify the authenticity of the image against it, along these lines:"
  6540. msgstr ""
  6541. #. type: example
  6542. #: guix-git/doc/guix.texi:2202
  6543. #, no-wrap
  6544. msgid ""
  6545. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6546. "$ gpg --verify guix-system-install-@value{VERSION}.x86_64-linux.iso.sig\n"
  6547. msgstr ""
  6548. "$ wget @value{BASE-URL}/guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6549. "$ gpg --verify guix-system-install-@value{VERSION}.@var{系统}.iso.sig\n"
  6550. #. type: example
  6551. #: guix-git/doc/guix.texi:2210
  6552. #, no-wrap
  6553. msgid ""
  6554. "$ wget @value{OPENPGP-SIGNING-KEY-URL} \\\n"
  6555. " -qO - | gpg --import -\n"
  6556. msgstr ""
  6557. #. type: Plain text
  6558. #: guix-git/doc/guix.texi:2222
  6559. 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."
  6560. msgstr ""
  6561. #. type: unnumberedsubsec
  6562. #: guix-git/doc/guix.texi:2223
  6563. #, no-wrap
  6564. msgid "Copying to a USB Stick"
  6565. msgstr ""
  6566. #. type: Plain text
  6567. #: guix-git/doc/guix.texi:2228
  6568. 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:"
  6569. msgstr ""
  6570. #. type: example
  6571. #: guix-git/doc/guix.texi:2232
  6572. #, no-wrap
  6573. msgid ""
  6574. "dd if=guix-system-install-@value{VERSION}.x86_64-linux.iso of=/dev/sdX status=progress\n"
  6575. "sync\n"
  6576. msgstr ""
  6577. #. type: Plain text
  6578. #: guix-git/doc/guix.texi:2235
  6579. msgid "Access to @file{/dev/sdX} usually requires root privileges."
  6580. msgstr ""
  6581. #. type: unnumberedsubsec
  6582. #: guix-git/doc/guix.texi:2236
  6583. #, no-wrap
  6584. msgid "Burning on a DVD"
  6585. msgstr ""
  6586. #. type: Plain text
  6587. #: guix-git/doc/guix.texi:2241
  6588. 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:"
  6589. msgstr ""
  6590. #. type: example
  6591. #: guix-git/doc/guix.texi:2244
  6592. #, no-wrap
  6593. msgid "growisofs -dvd-compat -Z /dev/srX=guix-system-install-@value{VERSION}.x86_64-linux.iso\n"
  6594. msgstr ""
  6595. #. type: Plain text
  6596. #: guix-git/doc/guix.texi:2247
  6597. msgid "Access to @file{/dev/srX} usually requires root privileges."
  6598. msgstr ""
  6599. #. type: unnumberedsubsec
  6600. #: guix-git/doc/guix.texi:2248
  6601. #, no-wrap
  6602. msgid "Booting"
  6603. msgstr ""
  6604. #. type: Plain text
  6605. #: guix-git/doc/guix.texi:2255
  6606. 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}."
  6607. msgstr ""
  6608. #. type: Plain text
  6609. #: guix-git/doc/guix.texi:2258
  6610. msgid "@xref{Installing Guix in a VM}, if, instead, you would like to install Guix System in a virtual machine (VM)."
  6611. msgstr ""
  6612. #. type: Plain text
  6613. #: guix-git/doc/guix.texi:2268
  6614. 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})."
  6615. msgstr ""
  6616. #. type: Plain text
  6617. #: guix-git/doc/guix.texi:2276
  6618. 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."
  6619. msgstr ""
  6620. #. type: quotation
  6621. #: guix-git/doc/guix.texi:2281
  6622. msgid "Installation requires access to the Internet so that any missing dependencies of your system configuration can be downloaded. See the ``Networking'' section below."
  6623. msgstr ""
  6624. #. type: Plain text
  6625. #: guix-git/doc/guix.texi:2288
  6626. 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."
  6627. msgstr ""
  6628. #. type: Plain text
  6629. #: guix-git/doc/guix.texi:2293
  6630. 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."
  6631. msgstr ""
  6632. #. type: Plain text
  6633. #: guix-git/doc/guix.texi:2295
  6634. msgid "@image{images/installer-network,5in,, networking setup with the graphical installer}"
  6635. msgstr ""
  6636. #. type: Plain text
  6637. #: guix-git/doc/guix.texi:2300
  6638. 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."
  6639. msgstr ""
  6640. #. type: Plain text
  6641. #: guix-git/doc/guix.texi:2302
  6642. msgid "@image{images/installer-partitions,5in,, partitioning with the graphical installer}"
  6643. msgstr ""
  6644. #. type: Plain text
  6645. #: guix-git/doc/guix.texi:2305
  6646. 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."
  6647. msgstr ""
  6648. #. type: Plain text
  6649. #: guix-git/doc/guix.texi:2307
  6650. msgid "@image{images/installer-resume,5in,, resuming the installation process}"
  6651. msgstr ""
  6652. #. type: Plain text
  6653. #: guix-git/doc/guix.texi:2312
  6654. 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!"
  6655. msgstr ""
  6656. #. type: Plain text
  6657. #: guix-git/doc/guix.texi:2322
  6658. 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})."
  6659. msgstr ""
  6660. #. type: Plain text
  6661. #: guix-git/doc/guix.texi:2328
  6662. 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})."
  6663. msgstr ""
  6664. #. type: subsection
  6665. #: guix-git/doc/guix.texi:2335
  6666. #, no-wrap
  6667. msgid "Keyboard Layout, Networking, and Partitioning"
  6668. msgstr ""
  6669. #. type: Plain text
  6670. #: guix-git/doc/guix.texi:2340
  6671. 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."
  6672. msgstr ""
  6673. #. type: cindex
  6674. #: guix-git/doc/guix.texi:2343 guix-git/doc/guix.texi:16062
  6675. #, no-wrap
  6676. msgid "keyboard layout"
  6677. msgstr ""
  6678. #. type: Plain text
  6679. #: guix-git/doc/guix.texi:2347
  6680. 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:"
  6681. msgstr "安装镜像使用的是美国的 qwerty 键盘布局,如果想更改,可以使用 @command{loadkeys} 命令。 例如,用以下命令选择 Dvorak 键盘布局:"
  6682. #. type: example
  6683. #: guix-git/doc/guix.texi:2350
  6684. #, no-wrap
  6685. msgid "loadkeys dvorak\n"
  6686. msgstr ""
  6687. #. type: Plain text
  6688. #: guix-git/doc/guix.texi:2355
  6689. 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."
  6690. msgstr ""
  6691. #. type: subsubsection
  6692. #: guix-git/doc/guix.texi:2356
  6693. #, no-wrap
  6694. msgid "Networking"
  6695. msgstr ""
  6696. #. type: Plain text
  6697. #: guix-git/doc/guix.texi:2359
  6698. msgid "Run the following command to see what your network interfaces are called:"
  6699. msgstr "运行以下命令查看你的网络接口的名称:"
  6700. #. type: example
  6701. #: guix-git/doc/guix.texi:2362
  6702. #, no-wrap
  6703. msgid "ifconfig -a\n"
  6704. msgstr ""
  6705. #. type: table
  6706. #: guix-git/doc/guix.texi:2366 guix-git/doc/guix.texi:2388
  6707. msgid "@dots{} or, using the GNU/Linux-specific @command{ip} command:"
  6708. msgstr "@dots{} 或者,使用 GNU/Linux 特有的 @command{ip} 命令:"
  6709. #. type: example
  6710. #: guix-git/doc/guix.texi:2369
  6711. #, no-wrap
  6712. msgid "ip address\n"
  6713. msgstr ""
  6714. #. type: Plain text
  6715. #: guix-git/doc/guix.texi:2376
  6716. 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}."
  6717. msgstr ""
  6718. #. type: item
  6719. #: guix-git/doc/guix.texi:2378
  6720. #, no-wrap
  6721. msgid "Wired connection"
  6722. msgstr "有线连接"
  6723. #. type: table
  6724. #: guix-git/doc/guix.texi:2381
  6725. msgid "To configure a wired network run the following command, substituting @var{interface} with the name of the wired interface you want to use."
  6726. msgstr ""
  6727. #. type: example
  6728. #: guix-git/doc/guix.texi:2384
  6729. #, no-wrap
  6730. msgid "ifconfig @var{interface} up\n"
  6731. msgstr ""
  6732. #. type: example
  6733. #: guix-git/doc/guix.texi:2391
  6734. #, no-wrap
  6735. msgid "ip link set @var{interface} up\n"
  6736. msgstr ""
  6737. #. type: item
  6738. #: guix-git/doc/guix.texi:2393
  6739. #, no-wrap
  6740. msgid "Wireless connection"
  6741. msgstr "无线连接"
  6742. #. type: cindex
  6743. #: guix-git/doc/guix.texi:2394 guix-git/doc/guix.texi:17971
  6744. #, no-wrap
  6745. msgid "wireless"
  6746. msgstr ""
  6747. #. type: cindex
  6748. #: guix-git/doc/guix.texi:2395 guix-git/doc/guix.texi:17972
  6749. #, no-wrap
  6750. msgid "WiFi"
  6751. msgstr ""
  6752. #. type: table
  6753. #: guix-git/doc/guix.texi:2400
  6754. 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}:"
  6755. msgstr ""
  6756. #. type: example
  6757. #: guix-git/doc/guix.texi:2403
  6758. #, no-wrap
  6759. msgid "nano wpa_supplicant.conf\n"
  6760. msgstr ""
  6761. #. type: table
  6762. #: guix-git/doc/guix.texi:2408
  6763. 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:"
  6764. msgstr ""
  6765. #. type: example
  6766. #: guix-git/doc/guix.texi:2415
  6767. #, no-wrap
  6768. msgid ""
  6769. "network=@{\n"
  6770. " ssid=\"@var{my-ssid}\"\n"
  6771. " key_mgmt=WPA-PSK\n"
  6772. " psk=\"the network's secret passphrase\"\n"
  6773. "@}\n"
  6774. msgstr ""
  6775. #. type: table
  6776. #: guix-git/doc/guix.texi:2420
  6777. 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):"
  6778. msgstr ""
  6779. #. type: example
  6780. #: guix-git/doc/guix.texi:2423
  6781. #, no-wrap
  6782. msgid "wpa_supplicant -c wpa_supplicant.conf -i @var{interface} -B\n"
  6783. msgstr ""
  6784. #. type: table
  6785. #: guix-git/doc/guix.texi:2426
  6786. msgid "Run @command{man wpa_supplicant} for more information."
  6787. msgstr ""
  6788. #. type: cindex
  6789. #: guix-git/doc/guix.texi:2428
  6790. #, no-wrap
  6791. msgid "DHCP"
  6792. msgstr ""
  6793. #. type: Plain text
  6794. #: guix-git/doc/guix.texi:2431
  6795. 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:"
  6796. msgstr ""
  6797. #. type: example
  6798. #: guix-git/doc/guix.texi:2434
  6799. #, no-wrap
  6800. msgid "dhclient -v @var{interface}\n"
  6801. msgstr ""
  6802. #. type: Plain text
  6803. #: guix-git/doc/guix.texi:2437
  6804. msgid "Try to ping a server to see if networking is up and running:"
  6805. msgstr ""
  6806. #. type: example
  6807. #: guix-git/doc/guix.texi:2440
  6808. #, no-wrap
  6809. msgid "ping -c 3 gnu.org\n"
  6810. msgstr ""
  6811. #. type: Plain text
  6812. #: guix-git/doc/guix.texi:2444
  6813. 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."
  6814. msgstr ""
  6815. #. type: cindex
  6816. #: guix-git/doc/guix.texi:2445
  6817. #, fuzzy, no-wrap
  6818. msgid "proxy, during system installation"
  6819. msgstr "系统安装之后"
  6820. #. type: Plain text
  6821. #: guix-git/doc/guix.texi:2448
  6822. msgid "If you need HTTP and HTTPS access to go through a proxy, run the following command:"
  6823. msgstr ""
  6824. #. type: example
  6825. #: guix-git/doc/guix.texi:2451
  6826. #, no-wrap
  6827. msgid "herd set-http-proxy guix-daemon @var{URL}\n"
  6828. msgstr ""
  6829. #. type: Plain text
  6830. #: guix-git/doc/guix.texi:2456
  6831. msgid "where @var{URL} is the proxy URL, for example @code{http://example.org:8118}."
  6832. msgstr ""
  6833. #. type: cindex
  6834. #: guix-git/doc/guix.texi:2457
  6835. #, no-wrap
  6836. msgid "installing over SSH"
  6837. msgstr ""
  6838. #. type: Plain text
  6839. #: guix-git/doc/guix.texi:2460
  6840. msgid "If you want to, you can continue the installation remotely by starting an SSH server:"
  6841. msgstr ""
  6842. #. type: example
  6843. #: guix-git/doc/guix.texi:2463
  6844. #, no-wrap
  6845. msgid "herd start ssh-daemon\n"
  6846. msgstr ""
  6847. #. type: Plain text
  6848. #: guix-git/doc/guix.texi:2467
  6849. msgid "Make sure to either set a password with @command{passwd}, or configure OpenSSH public key authentication before logging in."
  6850. msgstr ""
  6851. #. type: subsubsection
  6852. #: guix-git/doc/guix.texi:2468
  6853. #, no-wrap
  6854. msgid "Disk Partitioning"
  6855. msgstr "磁盘分区"
  6856. #. type: Plain text
  6857. #: guix-git/doc/guix.texi:2472
  6858. msgid "Unless this has already been done, the next step is to partition, and then format the target partition(s)."
  6859. msgstr ""
  6860. #. type: Plain text
  6861. #: guix-git/doc/guix.texi:2477
  6862. 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:"
  6863. msgstr ""
  6864. #. type: example
  6865. #: guix-git/doc/guix.texi:2480
  6866. #, no-wrap
  6867. msgid "cfdisk\n"
  6868. msgstr ""
  6869. #. type: Plain text
  6870. #: guix-git/doc/guix.texi:2486
  6871. 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})."
  6872. msgstr ""
  6873. #. type: cindex
  6874. #: guix-git/doc/guix.texi:2487
  6875. #, no-wrap
  6876. msgid "EFI, installation"
  6877. msgstr ""
  6878. #. type: cindex
  6879. #: guix-git/doc/guix.texi:2488
  6880. #, no-wrap
  6881. msgid "UEFI, installation"
  6882. msgstr ""
  6883. #. type: cindex
  6884. #: guix-git/doc/guix.texi:2489
  6885. #, no-wrap
  6886. msgid "ESP, EFI system partition"
  6887. msgstr ""
  6888. #. type: Plain text
  6889. #: guix-git/doc/guix.texi:2493
  6890. 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}:"
  6891. msgstr ""
  6892. #. type: example
  6893. #: guix-git/doc/guix.texi:2496
  6894. #, no-wrap
  6895. msgid "parted /dev/sda set 1 esp on\n"
  6896. msgstr ""
  6897. #. type: vindex
  6898. #: guix-git/doc/guix.texi:2499 guix-git/doc/guix.texi:35133
  6899. #, no-wrap
  6900. msgid "grub-bootloader"
  6901. msgstr ""
  6902. #. type: vindex
  6903. #: guix-git/doc/guix.texi:2500 guix-git/doc/guix.texi:35127
  6904. #, no-wrap
  6905. msgid "grub-efi-bootloader"
  6906. msgstr ""
  6907. #. type: quotation
  6908. #: guix-git/doc/guix.texi:2507
  6909. 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."
  6910. msgstr ""
  6911. #. type: Plain text
  6912. #: guix-git/doc/guix.texi:2515
  6913. 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, F2FS, and XFS 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:"
  6914. msgstr ""
  6915. #. type: example
  6916. #: guix-git/doc/guix.texi:2518
  6917. #, no-wrap
  6918. msgid "mkfs.fat -F32 /dev/sda1\n"
  6919. msgstr ""
  6920. #. type: Plain text
  6921. #: guix-git/doc/guix.texi:2525
  6922. 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})."
  6923. msgstr ""
  6924. #. type: Plain text
  6925. #: guix-git/doc/guix.texi:2532
  6926. 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:"
  6927. msgstr ""
  6928. #. type: example
  6929. #: guix-git/doc/guix.texi:2535
  6930. #, no-wrap
  6931. msgid "mkfs.ext4 -L my-root /dev/sda2\n"
  6932. msgstr ""
  6933. #. type: cindex
  6934. #: guix-git/doc/guix.texi:2537 guix-git/doc/guix.texi:14936
  6935. #, no-wrap
  6936. msgid "encrypted disk"
  6937. msgstr ""
  6938. #. type: Plain text
  6939. #: guix-git/doc/guix.texi:2542
  6940. 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)."
  6941. msgstr ""
  6942. #. type: quotation
  6943. #: guix-git/doc/guix.texi:2543 guix-git/doc/guix.texi:5318
  6944. #: guix-git/doc/guix.texi:6554 guix-git/doc/guix.texi:15062
  6945. #: guix-git/doc/guix.texi:21500 guix-git/doc/guix.texi:21507
  6946. #, no-wrap
  6947. msgid "Warning"
  6948. msgstr ""
  6949. #. type: quotation
  6950. #: guix-git/doc/guix.texi:2550
  6951. msgid "Note that GRUB can unlock LUKS2 devices since version 2.06, but only supports the PBKDF2 key derivation function, which is not the default for @command{cryptsetup luksFormat}. You can check which key derivation function is being used by a device by running @command{cryptsetup luksDump @var{device}}, and looking for the PBKDF field of your keyslots."
  6952. msgstr ""
  6953. #. type: Plain text
  6954. #: guix-git/doc/guix.texi:2555
  6955. msgid "Assuming you want to store the root partition on @file{/dev/sda2}, the command sequence to format it as a LUKS2 partition would be along these lines:"
  6956. msgstr ""
  6957. #. type: example
  6958. #: guix-git/doc/guix.texi:2560
  6959. #, no-wrap
  6960. msgid ""
  6961. "cryptsetup luksFormat --type luks2 --pbkdf pbkdf2 /dev/sda2\n"
  6962. "cryptsetup open /dev/sda2 my-partition\n"
  6963. "mkfs.ext4 -L my-root /dev/mapper/my-partition\n"
  6964. msgstr ""
  6965. #. type: Plain text
  6966. #: guix-git/doc/guix.texi:2565
  6967. 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):"
  6968. msgstr ""
  6969. #. type: example
  6970. #: guix-git/doc/guix.texi:2568
  6971. #, no-wrap
  6972. msgid "mount LABEL=my-root /mnt\n"
  6973. msgstr ""
  6974. #. type: Plain text
  6975. #: guix-git/doc/guix.texi:2574
  6976. 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."
  6977. msgstr ""
  6978. #. type: Plain text
  6979. #: guix-git/doc/guix.texi:2578
  6980. msgid "Finally, if you plan to use one or more swap partitions (@pxref{Swap Space}), make sure to initialize them with @command{mkswap}. Assuming you have one swap partition on @file{/dev/sda3}, you would run:"
  6981. msgstr ""
  6982. #. type: example
  6983. #: guix-git/doc/guix.texi:2582
  6984. #, no-wrap
  6985. msgid ""
  6986. "mkswap /dev/sda3\n"
  6987. "swapon /dev/sda3\n"
  6988. msgstr ""
  6989. #. type: Plain text
  6990. #: guix-git/doc/guix.texi:2590
  6991. 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}.}:"
  6992. msgstr ""
  6993. #. type: example
  6994. #: guix-git/doc/guix.texi:2598
  6995. #, no-wrap
  6996. msgid ""
  6997. "# This is 10 GiB of swap space. Adjust \"count\" to change the size.\n"
  6998. "dd if=/dev/zero of=/mnt/swapfile bs=1MiB count=10240\n"
  6999. "# For security, make the file readable and writable only by root.\n"
  7000. "chmod 600 /mnt/swapfile\n"
  7001. "mkswap /mnt/swapfile\n"
  7002. "swapon /mnt/swapfile\n"
  7003. msgstr ""
  7004. #. type: Plain text
  7005. #: guix-git/doc/guix.texi:2603
  7006. 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."
  7007. msgstr ""
  7008. #. type: Plain text
  7009. #: guix-git/doc/guix.texi:2609
  7010. msgid "With the target partitions ready and the target root mounted on @file{/mnt}, we're ready to go. First, run:"
  7011. msgstr ""
  7012. #. type: example
  7013. #: guix-git/doc/guix.texi:2612
  7014. #, no-wrap
  7015. msgid "herd start cow-store /mnt\n"
  7016. msgstr ""
  7017. #. type: Plain text
  7018. #: guix-git/doc/guix.texi:2619
  7019. 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."
  7020. msgstr ""
  7021. #. type: Plain text
  7022. #: guix-git/doc/guix.texi:2630
  7023. msgid "Next, you have to edit a file and provide the declaration of the operating system to be installed. To that end, the installation system comes with three text editors. We recommend GNU nano (@pxref{Top,,, nano, GNU nano Manual}), which supports syntax highlighting and parentheses matching; other editors include mg (an Emacs clone), and nvi (a clone of the original BSD @command{vi} editor). We strongly recommend storing that file on the target root file system, say, as @file{/mnt/etc/config.scm}. Failing to do that, you will have lost your configuration file once you have rebooted into the newly-installed system."
  7024. msgstr ""
  7025. #. type: Plain text
  7026. #: guix-git/doc/guix.texi:2637
  7027. 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:"
  7028. msgstr ""
  7029. #. type: example
  7030. #: guix-git/doc/guix.texi:2642
  7031. #, no-wrap
  7032. msgid ""
  7033. "# mkdir /mnt/etc\n"
  7034. "# cp /etc/configuration/desktop.scm /mnt/etc/config.scm\n"
  7035. "# nano /mnt/etc/config.scm\n"
  7036. msgstr ""
  7037. #. type: Plain text
  7038. #: guix-git/doc/guix.texi:2646
  7039. msgid "You should pay attention to what your configuration file contains, and in particular:"
  7040. msgstr ""
  7041. #. type: itemize
  7042. #: guix-git/doc/guix.texi:2658
  7043. msgid "Make sure the @code{bootloader-configuration} form refers to the targets 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{targets} field contain the names of the devices, like @code{(list \"/dev/sda\")}; for UEFI systems it names the paths to mounted EFI partitions, like @code{(list \"/boot/efi\")}; do make sure the paths are currently mounted and a @code{file-system} entry is specified in your configuration."
  7044. msgstr ""
  7045. #. type: itemize
  7046. #: guix-git/doc/guix.texi:2664
  7047. 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."
  7048. msgstr ""
  7049. #. type: itemize
  7050. #: guix-git/doc/guix.texi:2668
  7051. msgid "If there are encrypted or RAID partitions, make sure to add a @code{mapped-devices} field to describe them (@pxref{Mapped Devices})."
  7052. msgstr ""
  7053. #. type: Plain text
  7054. #: guix-git/doc/guix.texi:2673
  7055. 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}):"
  7056. msgstr ""
  7057. #. type: example
  7058. #: guix-git/doc/guix.texi:2676
  7059. #, no-wrap
  7060. msgid "guix system init /mnt/etc/config.scm /mnt\n"
  7061. msgstr ""
  7062. #. type: Plain text
  7063. #: guix-git/doc/guix.texi:2683
  7064. 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."
  7065. msgstr ""
  7066. #. type: Plain text
  7067. #: guix-git/doc/guix.texi:2691
  7068. 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!"
  7069. msgstr ""
  7070. #. type: Plain text
  7071. #: guix-git/doc/guix.texi:2698
  7072. msgid "Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say:"
  7073. msgstr ""
  7074. #. type: example
  7075. #: guix-git/doc/guix.texi:2702
  7076. #, no-wrap
  7077. msgid ""
  7078. "guix pull\n"
  7079. "sudo guix system reconfigure /etc/config.scm\n"
  7080. msgstr ""
  7081. #. type: Plain text
  7082. #: guix-git/doc/guix.texi:2708
  7083. 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})."
  7084. msgstr ""
  7085. #. type: cindex
  7086. #: guix-git/doc/guix.texi:2711
  7087. #, no-wrap
  7088. msgid "sudo vs. @command{guix pull}"
  7089. msgstr ""
  7090. #. type: quotation
  7091. #: guix-git/doc/guix.texi:2715
  7092. 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{}}."
  7093. msgstr ""
  7094. #. type: quotation
  7095. #: guix-git/doc/guix.texi:2720
  7096. 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."
  7097. msgstr ""
  7098. #. type: Plain text
  7099. #: guix-git/doc/guix.texi:2725
  7100. msgid "Now, @pxref{Getting Started}, and join us on @code{#guix} on the Libera Chat IRC network or on @email{guix-devel@@gnu.org} to share your experience!"
  7101. msgstr ""
  7102. #. type: section
  7103. #: guix-git/doc/guix.texi:2728
  7104. #, no-wrap
  7105. msgid "Installing Guix in a Virtual Machine"
  7106. msgstr ""
  7107. #. type: cindex
  7108. #: guix-git/doc/guix.texi:2730
  7109. #, no-wrap
  7110. msgid "virtual machine, Guix System installation"
  7111. msgstr ""
  7112. #. type: cindex
  7113. #: guix-git/doc/guix.texi:2731
  7114. #, no-wrap
  7115. msgid "virtual private server (VPS)"
  7116. msgstr ""
  7117. #. type: cindex
  7118. #: guix-git/doc/guix.texi:2732
  7119. #, no-wrap
  7120. msgid "VPS (virtual private server)"
  7121. msgstr ""
  7122. #. type: Plain text
  7123. #: guix-git/doc/guix.texi:2736
  7124. 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."
  7125. msgstr ""
  7126. #. type: Plain text
  7127. #: guix-git/doc/guix.texi:2739
  7128. msgid "To boot a @uref{https://qemu.org/,QEMU} VM for installing Guix System in a disk image, follow these steps:"
  7129. msgstr ""
  7130. #. type: enumerate
  7131. #: guix-git/doc/guix.texi:2744
  7132. msgid "First, retrieve and decompress the Guix system installation image as described previously (@pxref{USB Stick and DVD Installation})."
  7133. msgstr ""
  7134. #. type: enumerate
  7135. #: guix-git/doc/guix.texi:2748
  7136. msgid "Create a disk image that will hold the installed system. To make a qcow2-formatted disk image, use the @command{qemu-img} command:"
  7137. msgstr ""
  7138. #. type: example
  7139. #: guix-git/doc/guix.texi:2751
  7140. #, no-wrap
  7141. msgid "qemu-img create -f qcow2 guix-system.img 50G\n"
  7142. msgstr ""
  7143. #. type: enumerate
  7144. #: guix-git/doc/guix.texi:2755
  7145. 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."
  7146. msgstr ""
  7147. #. type: enumerate
  7148. #: guix-git/doc/guix.texi:2758
  7149. msgid "Boot the USB installation image in an VM:"
  7150. msgstr ""
  7151. #. type: example
  7152. #: guix-git/doc/guix.texi:2764
  7153. #, no-wrap
  7154. msgid ""
  7155. "qemu-system-x86_64 -m 1024 -smp 1 -enable-kvm \\\n"
  7156. " -nic user,model=virtio-net-pci -boot menu=on,order=d \\\n"
  7157. " -drive file=guix-system.img \\\n"
  7158. " -drive media=cdrom,file=guix-system-install-@value{VERSION}.@var{system}.iso\n"
  7159. msgstr ""
  7160. #. type: enumerate
  7161. #: guix-git/doc/guix.texi:2768
  7162. msgid "@code{-enable-kvm} is optional, but significantly improves performance, @pxref{Running Guix in a VM}."
  7163. msgstr ""
  7164. #. type: enumerate
  7165. #: guix-git/doc/guix.texi:2772
  7166. msgid "You're now root in the VM, proceed with the installation process. @xref{Preparing for Installation}, and follow the instructions."
  7167. msgstr ""
  7168. #. type: Plain text
  7169. #: guix-git/doc/guix.texi:2777
  7170. 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."
  7171. msgstr ""
  7172. #. type: cindex
  7173. #: guix-git/doc/guix.texi:2781
  7174. #, no-wrap
  7175. msgid "installation image"
  7176. msgstr ""
  7177. #. type: Plain text
  7178. #: guix-git/doc/guix.texi:2784
  7179. msgid "The installation image described above was built using the @command{guix system} command, specifically:"
  7180. msgstr ""
  7181. #. type: example
  7182. #: guix-git/doc/guix.texi:2787
  7183. #, no-wrap
  7184. msgid "guix system image -t iso9660 gnu/system/install.scm\n"
  7185. msgstr ""
  7186. #. type: Plain text
  7187. #: guix-git/doc/guix.texi:2792
  7188. 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."
  7189. msgstr ""
  7190. #. type: section
  7191. #: guix-git/doc/guix.texi:2793
  7192. #, no-wrap
  7193. msgid "Building the Installation Image for ARM Boards"
  7194. msgstr ""
  7195. #. type: Plain text
  7196. #: guix-git/doc/guix.texi:2797
  7197. msgid "Many ARM boards require a specific variant of the @uref{https://www.denx.de/wiki/U-Boot/, U-Boot} bootloader."
  7198. msgstr ""
  7199. #. type: Plain text
  7200. #: guix-git/doc/guix.texi:2801
  7201. 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:"
  7202. msgstr ""
  7203. #. type: example
  7204. #: guix-git/doc/guix.texi:2804
  7205. #, no-wrap
  7206. msgid "guix system image --system=armhf-linux -e '((@@ (gnu system install) os-with-u-boot) (@@ (gnu system install) installation-os) \"A20-OLinuXino-Lime2\")'\n"
  7207. msgstr ""
  7208. #. type: Plain text
  7209. #: guix-git/doc/guix.texi:2808
  7210. 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."
  7211. msgstr ""
  7212. #. type: Plain text
  7213. #: guix-git/doc/guix.texi:2818
  7214. 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."
  7215. msgstr ""
  7216. #. type: Plain text
  7217. #: guix-git/doc/guix.texi:2822
  7218. 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:"
  7219. msgstr ""
  7220. #. type: example
  7221. #: guix-git/doc/guix.texi:2825
  7222. #, no-wrap
  7223. msgid "guix search text editor\n"
  7224. msgstr ""
  7225. #. type: Plain text
  7226. #: guix-git/doc/guix.texi:2832
  7227. 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}!):"
  7228. msgstr ""
  7229. #. type: example
  7230. #: guix-git/doc/guix.texi:2835
  7231. #, fuzzy, no-wrap
  7232. msgid "guix install emacs\n"
  7233. msgstr "guix install emacs-guix\n"
  7234. #. type: cindex
  7235. #: guix-git/doc/guix.texi:2837 guix-git/doc/guix.texi:3149
  7236. #: guix-git/doc/guix.texi:3201
  7237. #, no-wrap
  7238. msgid "profile"
  7239. msgstr ""
  7240. #. type: Plain text
  7241. #: guix-git/doc/guix.texi:2845
  7242. 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)."
  7243. msgstr ""
  7244. #. type: Plain text
  7245. #: guix-git/doc/guix.texi:2848
  7246. msgid "Unless you're using Guix System, the @command{guix install} command must have printed this hint:"
  7247. msgstr ""
  7248. #. type: example
  7249. #: guix-git/doc/guix.texi:2851
  7250. #, no-wrap
  7251. msgid ""
  7252. "hint: Consider setting the necessary environment variables by running:\n"
  7253. "\n"
  7254. msgstr ""
  7255. #. type: example
  7256. #: guix-git/doc/guix.texi:2854
  7257. #, no-wrap
  7258. msgid ""
  7259. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7260. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7261. "\n"
  7262. msgstr ""
  7263. " GUIX_PROFILE=\"$HOME/.guix-profile\"\n"
  7264. " . \"$GUIX_PROFILE/etc/profile\"\n"
  7265. "\n"
  7266. #. type: example
  7267. #: guix-git/doc/guix.texi:2856
  7268. #, no-wrap
  7269. msgid "Alternately, see `guix package --search-paths -p \"$HOME/.guix-profile\"'.\n"
  7270. msgstr ""
  7271. #. type: Plain text
  7272. #: guix-git/doc/guix.texi:2870
  7273. 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, @env{GUIX_PYTHONPATH} will be defined."
  7274. msgstr ""
  7275. #. type: Plain text
  7276. #: guix-git/doc/guix.texi:2873
  7277. msgid "You can go on installing packages at your will. To list installed packages, run:"
  7278. msgstr ""
  7279. #. type: example
  7280. #: guix-git/doc/guix.texi:2876
  7281. #, fuzzy, no-wrap
  7282. msgid "guix package --list-installed\n"
  7283. msgstr "guix package --list-available\n"
  7284. #. type: Plain text
  7285. #: guix-git/doc/guix.texi:2881
  7286. 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:"
  7287. msgstr ""
  7288. #. type: example
  7289. #: guix-git/doc/guix.texi:2884
  7290. #, fuzzy, no-wrap
  7291. msgid "guix package --roll-back\n"
  7292. msgstr "guix package --list-available\n"
  7293. #. type: Plain text
  7294. #: guix-git/doc/guix.texi:2889
  7295. 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:"
  7296. msgstr ""
  7297. #. type: example
  7298. #: guix-git/doc/guix.texi:2892
  7299. #, fuzzy, no-wrap
  7300. msgid "guix package --list-generations\n"
  7301. msgstr "guix package --list-available\n"
  7302. #. type: Plain text
  7303. #: guix-git/doc/guix.texi:2895
  7304. msgid "Now you know the basics of package management!"
  7305. msgstr "现在你知道包管理的基本知识了吧!"
  7306. #. type: quotation
  7307. #: guix-git/doc/guix.texi:2896 guix-git/doc/guix.texi:2955
  7308. #, no-wrap
  7309. msgid "Going further"
  7310. msgstr ""
  7311. #. type: quotation
  7312. #: guix-git/doc/guix.texi:2904
  7313. 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."
  7314. msgstr ""
  7315. #. type: Plain text
  7316. #: guix-git/doc/guix.texi:2909
  7317. 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:"
  7318. msgstr ""
  7319. #. type: Plain text
  7320. #: guix-git/doc/guix.texi:2919
  7321. 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}:"
  7322. msgstr ""
  7323. #. type: example
  7324. #: guix-git/doc/guix.texi:2923
  7325. #, no-wrap
  7326. msgid ""
  7327. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7328. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7329. msgstr ""
  7330. "GUIX_PROFILE=\"$HOME/.config/guix/current\"\n"
  7331. ". \"$GUIX_PROFILE/etc/profile\"\n"
  7332. #. type: Plain text
  7333. #: guix-git/doc/guix.texi:2927
  7334. msgid "You must also instruct your shell to point to this new @command{guix}:"
  7335. msgstr ""
  7336. #. type: example
  7337. #: guix-git/doc/guix.texi:2930
  7338. #, no-wrap
  7339. msgid "hash guix\n"
  7340. msgstr ""
  7341. #. type: Plain text
  7342. #: guix-git/doc/guix.texi:2934
  7343. 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:"
  7344. msgstr ""
  7345. #. type: example
  7346. #: guix-git/doc/guix.texi:2937
  7347. #, no-wrap
  7348. msgid "guix upgrade\n"
  7349. msgstr ""
  7350. #. type: Plain text
  7351. #: guix-git/doc/guix.texi:2943
  7352. 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!"
  7353. msgstr ""
  7354. #. type: Plain text
  7355. #: guix-git/doc/guix.texi:2946
  7356. msgid "You can display the exact revision of Guix you're currently using by running:"
  7357. msgstr ""
  7358. #. type: example
  7359. #: guix-git/doc/guix.texi:2949
  7360. #, no-wrap
  7361. msgid "guix describe\n"
  7362. msgstr "guix describe\n"
  7363. #. type: Plain text
  7364. #: guix-git/doc/guix.texi:2954
  7365. 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."
  7366. msgstr ""
  7367. #. type: quotation
  7368. #: guix-git/doc/guix.texi:2960
  7369. 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})."
  7370. msgstr ""
  7371. #. type: Plain text
  7372. #: guix-git/doc/guix.texi:2965
  7373. 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:"
  7374. msgstr ""
  7375. #. type: example
  7376. #: guix-git/doc/guix.texi:2968
  7377. #, no-wrap
  7378. msgid "sudo guix system reconfigure /etc/config.scm\n"
  7379. msgstr ""
  7380. #. type: Plain text
  7381. #: guix-git/doc/guix.texi:2977
  7382. 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}:"
  7383. msgstr ""
  7384. #. type: example
  7385. #: guix-git/doc/guix.texi:2980
  7386. #, no-wrap
  7387. msgid "sudo guix system roll-back\n"
  7388. msgstr ""
  7389. #. type: Plain text
  7390. #: guix-git/doc/guix.texi:2987
  7391. 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."
  7392. msgstr ""
  7393. #. type: Plain text
  7394. #: guix-git/doc/guix.texi:2989
  7395. msgid "Now you know enough to get started!"
  7396. msgstr ""
  7397. #. type: quotation
  7398. #: guix-git/doc/guix.texi:2990
  7399. #, no-wrap
  7400. msgid "Resources"
  7401. msgstr ""
  7402. #. type: quotation
  7403. #: guix-git/doc/guix.texi:2993
  7404. msgid "The rest of this manual provides a reference for all things Guix. Here are some additional resources you may find useful:"
  7405. msgstr ""
  7406. #. type: itemize
  7407. #: guix-git/doc/guix.texi:2998
  7408. msgid "@xref{Top,,, guix-cookbook, The GNU Guix Cookbook}, for a list of ``how-to'' style of recipes for a variety of applications."
  7409. msgstr ""
  7410. #. type: itemize
  7411. #: guix-git/doc/guix.texi:3003
  7412. 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."
  7413. msgstr ""
  7414. #. type: itemize
  7415. #: guix-git/doc/guix.texi:3008
  7416. 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."
  7417. msgstr ""
  7418. #. type: itemize
  7419. #: guix-git/doc/guix.texi:3012
  7420. msgid "@xref{Documentation}, to learn how to access documentation on your computer."
  7421. msgstr ""
  7422. #. type: quotation
  7423. #: guix-git/doc/guix.texi:3015
  7424. msgid "We hope you will enjoy Guix as much as the community enjoys building it!"
  7425. msgstr ""
  7426. #. type: Plain text
  7427. #: guix-git/doc/guix.texi:3026
  7428. 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."
  7429. msgstr ""
  7430. #. type: Plain text
  7431. #: guix-git/doc/guix.texi:3034
  7432. 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):"
  7433. msgstr ""
  7434. #. type: example
  7435. #: guix-git/doc/guix.texi:3037
  7436. #, no-wrap
  7437. msgid "guix install emacs-guix\n"
  7438. msgstr "guix install emacs-guix\n"
  7439. #. type: Plain text
  7440. #: guix-git/doc/guix.texi:3058
  7441. 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."
  7442. msgstr ""
  7443. #. type: Plain text
  7444. #: guix-git/doc/guix.texi:3062
  7445. 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."
  7446. msgstr ""
  7447. #. type: Plain text
  7448. #: guix-git/doc/guix.texi:3067
  7449. 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}."
  7450. msgstr ""
  7451. #. type: Plain text
  7452. #: guix-git/doc/guix.texi:3075
  7453. 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."
  7454. msgstr ""
  7455. #. type: Plain text
  7456. #: guix-git/doc/guix.texi:3079
  7457. 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}."
  7458. msgstr ""
  7459. #. type: cindex
  7460. #: guix-git/doc/guix.texi:3080 guix-git/doc/guix.texi:3163
  7461. #, no-wrap
  7462. msgid "transactions"
  7463. msgstr ""
  7464. #. type: Plain text
  7465. #: guix-git/doc/guix.texi:3087
  7466. 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."
  7467. msgstr ""
  7468. #. type: Plain text
  7469. #: guix-git/doc/guix.texi:3095
  7470. 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})."
  7471. msgstr ""
  7472. #. type: Plain text
  7473. #: guix-git/doc/guix.texi:3102
  7474. 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."
  7475. msgstr ""
  7476. #. type: Plain text
  7477. #: guix-git/doc/guix.texi:3115
  7478. 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})."
  7479. msgstr ""
  7480. #. type: Plain text
  7481. #: guix-git/doc/guix.texi:3126
  7482. 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})."
  7483. msgstr ""
  7484. #. type: Plain text
  7485. #: guix-git/doc/guix.texi:3132
  7486. msgid "Control over the build environment is a feature that is also useful for developers. The @command{guix shell} 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 shell})."
  7487. msgstr ""
  7488. #. type: cindex
  7489. #: guix-git/doc/guix.texi:3133
  7490. #, no-wrap
  7491. msgid "replication, of software environments"
  7492. msgstr ""
  7493. #. type: cindex
  7494. #: guix-git/doc/guix.texi:3134
  7495. #, no-wrap
  7496. msgid "provenance tracking, of software artifacts"
  7497. msgstr ""
  7498. #. type: Plain text
  7499. #: guix-git/doc/guix.texi:3141
  7500. 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."
  7501. msgstr ""
  7502. #. type: section
  7503. #: guix-git/doc/guix.texi:3143
  7504. #, no-wrap
  7505. msgid "Invoking @command{guix package}"
  7506. msgstr ""
  7507. #. type: cindex
  7508. #: guix-git/doc/guix.texi:3145
  7509. #, no-wrap
  7510. msgid "installing packages"
  7511. msgstr ""
  7512. #. type: cindex
  7513. #: guix-git/doc/guix.texi:3146
  7514. #, no-wrap
  7515. msgid "removing packages"
  7516. msgstr ""
  7517. #. type: cindex
  7518. #: guix-git/doc/guix.texi:3147
  7519. #, no-wrap
  7520. msgid "package installation"
  7521. msgstr ""
  7522. #. type: cindex
  7523. #: guix-git/doc/guix.texi:3148
  7524. #, no-wrap
  7525. msgid "package removal"
  7526. msgstr ""
  7527. #. type: Plain text
  7528. #: guix-git/doc/guix.texi:3158
  7529. 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:"
  7530. msgstr ""
  7531. #. type: example
  7532. #: guix-git/doc/guix.texi:3161
  7533. #, no-wrap
  7534. msgid "guix package @var{options}\n"
  7535. msgstr ""
  7536. #. type: Plain text
  7537. #: guix-git/doc/guix.texi:3168
  7538. 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."
  7539. msgstr ""
  7540. #. type: Plain text
  7541. #: guix-git/doc/guix.texi:3171
  7542. msgid "For example, to remove @code{lua} and install @code{guile} and @code{guile-cairo} in a single transaction:"
  7543. msgstr ""
  7544. #. type: example
  7545. #: guix-git/doc/guix.texi:3174
  7546. #, no-wrap
  7547. msgid "guix package -r lua -i guile guile-cairo\n"
  7548. msgstr ""
  7549. #. type: cindex
  7550. #: guix-git/doc/guix.texi:3176
  7551. #, no-wrap
  7552. msgid "aliases, for @command{guix package}"
  7553. msgstr ""
  7554. #. type: Plain text
  7555. #: guix-git/doc/guix.texi:3178
  7556. msgid "For your convenience, we also provide the following aliases:"
  7557. msgstr ""
  7558. #. type: itemize
  7559. #: guix-git/doc/guix.texi:3182
  7560. msgid "@command{guix search} is an alias for @command{guix package -s},"
  7561. msgstr ""
  7562. #. type: itemize
  7563. #: guix-git/doc/guix.texi:3184
  7564. msgid "@command{guix install} is an alias for @command{guix package -i},"
  7565. msgstr ""
  7566. #. type: itemize
  7567. #: guix-git/doc/guix.texi:3186
  7568. msgid "@command{guix remove} is an alias for @command{guix package -r},"
  7569. msgstr ""
  7570. #. type: itemize
  7571. #: guix-git/doc/guix.texi:3188
  7572. msgid "@command{guix upgrade} is an alias for @command{guix package -u},"
  7573. msgstr ""
  7574. #. type: itemize
  7575. #: guix-git/doc/guix.texi:3190
  7576. msgid "and @command{guix show} is an alias for @command{guix package --show=}."
  7577. msgstr ""
  7578. #. type: Plain text
  7579. #: guix-git/doc/guix.texi:3195
  7580. 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."
  7581. msgstr ""
  7582. #. type: Plain text
  7583. #: guix-git/doc/guix.texi:3200
  7584. 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}})."
  7585. msgstr ""
  7586. #. type: Plain text
  7587. #: guix-git/doc/guix.texi:3207
  7588. 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."
  7589. msgstr ""
  7590. #. type: cindex
  7591. #: guix-git/doc/guix.texi:3207 guix-git/doc/guix.texi:3451
  7592. #, no-wrap
  7593. msgid "search paths"
  7594. msgstr ""
  7595. #. type: Plain text
  7596. #: guix-git/doc/guix.texi:3212
  7597. 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:"
  7598. msgstr ""
  7599. #. type: example
  7600. #: guix-git/doc/guix.texi:3216
  7601. #, no-wrap
  7602. msgid ""
  7603. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7604. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7605. msgstr ""
  7606. "GUIX_PROFILE=\"$HOME/.guix-profile\" ; \\\n"
  7607. "source \"$GUIX_PROFILE/etc/profile\"\n"
  7608. #. type: Plain text
  7609. #: guix-git/doc/guix.texi:3227
  7610. 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}."
  7611. msgstr ""
  7612. #. type: Plain text
  7613. #: guix-git/doc/guix.texi:3229
  7614. msgid "The @var{options} can be among the following:"
  7615. msgstr ""
  7616. #. type: item
  7617. #: guix-git/doc/guix.texi:3232
  7618. #, no-wrap
  7619. msgid "--install=@var{package} @dots{}"
  7620. msgstr ""
  7621. #. type: itemx
  7622. #: guix-git/doc/guix.texi:3233
  7623. #, no-wrap
  7624. msgid "-i @var{package} @dots{}"
  7625. msgstr ""
  7626. #. type: table
  7627. #: guix-git/doc/guix.texi:3235
  7628. msgid "Install the specified @var{package}s."
  7629. msgstr ""
  7630. #. type: table
  7631. #: guix-git/doc/guix.texi:3240
  7632. 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)."
  7633. msgstr ""
  7634. #. type: table
  7635. #: guix-git/doc/guix.texi:3248
  7636. 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})."
  7637. msgstr ""
  7638. #. type: cindex
  7639. #: guix-git/doc/guix.texi:3249
  7640. #, no-wrap
  7641. msgid "propagated inputs"
  7642. msgstr ""
  7643. #. type: table
  7644. #: guix-git/doc/guix.texi:3255
  7645. 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)."
  7646. msgstr ""
  7647. #. type: anchor{#1}
  7648. #: guix-git/doc/guix.texi:3262
  7649. msgid "package-cmd-propagated-inputs"
  7650. msgstr ""
  7651. #. type: table
  7652. #: guix-git/doc/guix.texi:3262
  7653. 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."
  7654. msgstr ""
  7655. #. type: table
  7656. #: guix-git/doc/guix.texi:3267
  7657. 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."
  7658. msgstr ""
  7659. #. type: item
  7660. #: guix-git/doc/guix.texi:3268
  7661. #, no-wrap
  7662. msgid "--install-from-expression=@var{exp}"
  7663. msgstr ""
  7664. #. type: itemx
  7665. #: guix-git/doc/guix.texi:3269
  7666. #, no-wrap
  7667. msgid "-e @var{exp}"
  7668. msgstr ""
  7669. #. type: table
  7670. #: guix-git/doc/guix.texi:3271
  7671. msgid "Install the package @var{exp} evaluates to."
  7672. msgstr ""
  7673. #. type: table
  7674. #: guix-git/doc/guix.texi:3276
  7675. 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)}."
  7676. msgstr ""
  7677. #. type: table
  7678. #: guix-git/doc/guix.texi:3280
  7679. 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."
  7680. msgstr ""
  7681. #. type: item
  7682. #: guix-git/doc/guix.texi:3281
  7683. #, no-wrap
  7684. msgid "--install-from-file=@var{file}"
  7685. msgstr ""
  7686. #. type: itemx
  7687. #: guix-git/doc/guix.texi:3282 guix-git/doc/guix.texi:5821
  7688. #: guix-git/doc/guix.texi:11814
  7689. #, no-wrap
  7690. msgid "-f @var{file}"
  7691. msgstr ""
  7692. #. type: table
  7693. #: guix-git/doc/guix.texi:3284
  7694. msgid "Install the package that the code within @var{file} evaluates to."
  7695. msgstr ""
  7696. #. type: table
  7697. #: guix-git/doc/guix.texi:3287 guix-git/doc/guix.texi:5827
  7698. #: guix-git/doc/guix.texi:6221
  7699. msgid "As an example, @var{file} might contain a definition like this (@pxref{Defining Packages}):"
  7700. msgstr ""
  7701. #. type: include
  7702. #: guix-git/doc/guix.texi:3289 guix-git/doc/guix.texi:11822
  7703. #, no-wrap
  7704. msgid "package-hello.scm"
  7705. msgstr ""
  7706. #. type: table
  7707. #: guix-git/doc/guix.texi:3296
  7708. 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 shell})."
  7709. msgstr ""
  7710. #. type: table
  7711. #: guix-git/doc/guix.texi:3301
  7712. 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}:"
  7713. msgstr ""
  7714. #. type: example
  7715. #: guix-git/doc/guix.texi:3304 guix-git/doc/guix.texi:11832
  7716. #, no-wrap
  7717. msgid "@verbatiminclude package-hello.json\n"
  7718. msgstr ""
  7719. #. type: item
  7720. #: guix-git/doc/guix.texi:3306
  7721. #, no-wrap
  7722. msgid "--remove=@var{package} @dots{}"
  7723. msgstr ""
  7724. #. type: itemx
  7725. #: guix-git/doc/guix.texi:3307
  7726. #, no-wrap
  7727. msgid "-r @var{package} @dots{}"
  7728. msgstr ""
  7729. #. type: table
  7730. #: guix-git/doc/guix.texi:3309
  7731. msgid "Remove the specified @var{package}s."
  7732. msgstr ""
  7733. #. type: table
  7734. #: guix-git/doc/guix.texi:3314
  7735. 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}."
  7736. msgstr ""
  7737. #. type: item
  7738. #: guix-git/doc/guix.texi:3315
  7739. #, no-wrap
  7740. msgid "--upgrade[=@var{regexp} @dots{}]"
  7741. msgstr ""
  7742. #. type: itemx
  7743. #: guix-git/doc/guix.texi:3316
  7744. #, no-wrap
  7745. msgid "-u [@var{regexp} @dots{}]"
  7746. msgstr ""
  7747. #. type: cindex
  7748. #: guix-git/doc/guix.texi:3317
  7749. #, no-wrap
  7750. msgid "upgrading packages"
  7751. msgstr ""
  7752. #. type: table
  7753. #: guix-git/doc/guix.texi:3321
  7754. 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."
  7755. msgstr ""
  7756. #. type: table
  7757. #: guix-git/doc/guix.texi:3326
  7758. 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})."
  7759. msgstr ""
  7760. #. type: cindex
  7761. #: guix-git/doc/guix.texi:3327
  7762. #, fuzzy, no-wrap
  7763. msgid "package transformations, upgrades"
  7764. msgstr "软件包变换选项。"
  7765. #. type: table
  7766. #: guix-git/doc/guix.texi:3332
  7767. 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:"
  7768. msgstr ""
  7769. #. type: example
  7770. #: guix-git/doc/guix.texi:3335
  7771. #, no-wrap
  7772. msgid "guix install emacs-next --with-branch=emacs-next=master\n"
  7773. msgstr ""
  7774. #. type: table
  7775. #: guix-git/doc/guix.texi:3340
  7776. 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."
  7777. msgstr ""
  7778. #. type: table
  7779. #: guix-git/doc/guix.texi:3345
  7780. 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:"
  7781. msgstr ""
  7782. #. type: example
  7783. #: guix-git/doc/guix.texi:3348
  7784. #, fuzzy, no-wrap
  7785. msgid "guix install @var{package}\n"
  7786. msgstr "guix install emacs-guix\n"
  7787. #. type: item
  7788. #: guix-git/doc/guix.texi:3350
  7789. #, no-wrap
  7790. msgid "--do-not-upgrade[=@var{regexp} @dots{}]"
  7791. msgstr ""
  7792. #. type: table
  7793. #: guix-git/doc/guix.texi:3355
  7794. 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'':"
  7795. msgstr ""
  7796. #. type: example
  7797. #: guix-git/doc/guix.texi:3358
  7798. #, no-wrap
  7799. msgid "$ guix package --upgrade . --do-not-upgrade emacs\n"
  7800. msgstr ""
  7801. #. type: anchor{#1}
  7802. #: guix-git/doc/guix.texi:3360
  7803. #, no-wrap
  7804. msgid "profile-manifest"
  7805. msgstr ""
  7806. #. type: item
  7807. #: guix-git/doc/guix.texi:3360 guix-git/doc/guix.texi:5839
  7808. #: guix-git/doc/guix.texi:6226 guix-git/doc/guix.texi:6680
  7809. #: guix-git/doc/guix.texi:12954 guix-git/doc/guix.texi:14596
  7810. #, no-wrap
  7811. msgid "--manifest=@var{file}"
  7812. msgstr ""
  7813. #. type: itemx
  7814. #: guix-git/doc/guix.texi:3361 guix-git/doc/guix.texi:5840
  7815. #: guix-git/doc/guix.texi:6227 guix-git/doc/guix.texi:6681
  7816. #: guix-git/doc/guix.texi:12955
  7817. #, no-wrap
  7818. msgid "-m @var{file}"
  7819. msgstr ""
  7820. #. type: cindex
  7821. #: guix-git/doc/guix.texi:3362
  7822. #, no-wrap
  7823. msgid "profile declaration"
  7824. msgstr ""
  7825. #. type: cindex
  7826. #: guix-git/doc/guix.texi:3363
  7827. #, no-wrap
  7828. msgid "profile manifest"
  7829. msgstr ""
  7830. #. type: table
  7831. #: guix-git/doc/guix.texi:3367
  7832. 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."
  7833. msgstr ""
  7834. #. type: table
  7835. #: guix-git/doc/guix.texi:3373
  7836. 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."
  7837. msgstr ""
  7838. #. type: table
  7839. #: guix-git/doc/guix.texi:3377
  7840. msgid "@var{file} must return a @dfn{manifest} object, which is roughly a list of packages:"
  7841. msgstr ""
  7842. #. type: findex
  7843. #: guix-git/doc/guix.texi:3378
  7844. #, no-wrap
  7845. msgid "packages->manifest"
  7846. msgstr ""
  7847. #. type: lisp
  7848. #: guix-git/doc/guix.texi:3381
  7849. #, no-wrap
  7850. msgid ""
  7851. "(use-package-modules guile emacs)\n"
  7852. "\n"
  7853. msgstr ""
  7854. #. type: lisp
  7855. #: guix-git/doc/guix.texi:3387
  7856. #, no-wrap
  7857. msgid ""
  7858. "(packages->manifest\n"
  7859. " (list emacs\n"
  7860. " guile-2.0\n"
  7861. " ;; Use a specific package output.\n"
  7862. " (list guile-2.0 \"debug\")))\n"
  7863. msgstr ""
  7864. #. type: findex
  7865. #: guix-git/doc/guix.texi:3389
  7866. #, no-wrap
  7867. msgid "specifications->manifest"
  7868. msgstr ""
  7869. #. type: table
  7870. #: guix-git/doc/guix.texi:3396
  7871. 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:"
  7872. msgstr ""
  7873. #. type: lisp
  7874. #: guix-git/doc/guix.texi:3400
  7875. #, no-wrap
  7876. msgid ""
  7877. "(specifications->manifest\n"
  7878. " '(\"emacs\" \"guile@@2.2\" \"guile@@2.2:debug\"))\n"
  7879. msgstr ""
  7880. #. type: findex
  7881. #: guix-git/doc/guix.texi:3402
  7882. #, no-wrap
  7883. msgid "package->development-manifest"
  7884. msgstr ""
  7885. #. type: table
  7886. #: guix-git/doc/guix.texi:3405
  7887. msgid "You might also want to create a manifest for all the dependencies of a package, rather than the package itself:"
  7888. msgstr ""
  7889. #. type: lisp
  7890. #: guix-git/doc/guix.texi:3408
  7891. #, no-wrap
  7892. msgid "(package->development-manifest (specification->package \"emacs\"))\n"
  7893. msgstr ""
  7894. #. type: table
  7895. #: guix-git/doc/guix.texi:3412
  7896. msgid "The example above gives you all the software required to develop Emacs, similar to what @command{guix environment emacs} provides."
  7897. msgstr ""
  7898. #. type: table
  7899. #: guix-git/doc/guix.texi:3415
  7900. msgid "@xref{export-manifest, @option{--export-manifest}}, to learn how to obtain a manifest file from an existing profile."
  7901. msgstr ""
  7902. #. type: item
  7903. #: guix-git/doc/guix.texi:3416 guix-git/doc/guix.texi:4530
  7904. #, no-wrap
  7905. msgid "--roll-back"
  7906. msgstr ""
  7907. #. type: cindex
  7908. #: guix-git/doc/guix.texi:3417 guix-git/doc/guix.texi:4531
  7909. #: guix-git/doc/guix.texi:35559 guix-git/doc/guix.texi:38314
  7910. #, no-wrap
  7911. msgid "rolling back"
  7912. msgstr ""
  7913. #. type: cindex
  7914. #: guix-git/doc/guix.texi:3418 guix-git/doc/guix.texi:4532
  7915. #, no-wrap
  7916. msgid "undoing transactions"
  7917. msgstr ""
  7918. #. type: cindex
  7919. #: guix-git/doc/guix.texi:3419 guix-git/doc/guix.texi:4533
  7920. #, no-wrap
  7921. msgid "transactions, undoing"
  7922. msgstr ""
  7923. #. type: table
  7924. #: guix-git/doc/guix.texi:3422
  7925. msgid "Roll back to the previous @dfn{generation} of the profile---i.e., undo the last transaction."
  7926. msgstr ""
  7927. #. type: table
  7928. #: guix-git/doc/guix.texi:3425
  7929. msgid "When combined with options such as @option{--install}, roll back occurs before any other actions."
  7930. msgstr ""
  7931. #. type: table
  7932. #: guix-git/doc/guix.texi:3429
  7933. 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."
  7934. msgstr ""
  7935. #. type: table
  7936. #: guix-git/doc/guix.texi:3433
  7937. 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."
  7938. msgstr ""
  7939. #. type: item
  7940. #: guix-git/doc/guix.texi:3434 guix-git/doc/guix.texi:4537
  7941. #, no-wrap
  7942. msgid "--switch-generation=@var{pattern}"
  7943. msgstr ""
  7944. #. type: itemx
  7945. #: guix-git/doc/guix.texi:3435 guix-git/doc/guix.texi:4538
  7946. #, no-wrap
  7947. msgid "-S @var{pattern}"
  7948. msgstr ""
  7949. #. type: cindex
  7950. #: guix-git/doc/guix.texi:3436 guix-git/doc/guix.texi:3669
  7951. #: guix-git/doc/guix.texi:4539 guix-git/doc/guix.texi:35517
  7952. #, no-wrap
  7953. msgid "generations"
  7954. msgstr ""
  7955. #. type: table
  7956. #: guix-git/doc/guix.texi:3438 guix-git/doc/guix.texi:4541
  7957. msgid "Switch to a particular generation defined by @var{pattern}."
  7958. msgstr ""
  7959. #. type: table
  7960. #: guix-git/doc/guix.texi:3444 guix-git/doc/guix.texi:4547
  7961. 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}."
  7962. msgstr ""
  7963. #. type: table
  7964. #: guix-git/doc/guix.texi:3449
  7965. 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."
  7966. msgstr ""
  7967. #. type: item
  7968. #: guix-git/doc/guix.texi:3450
  7969. #, no-wrap
  7970. msgid "--search-paths[=@var{kind}]"
  7971. msgstr ""
  7972. #. type: table
  7973. #: guix-git/doc/guix.texi:3456
  7974. 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."
  7975. msgstr ""
  7976. #. type: table
  7977. #: guix-git/doc/guix.texi:3465
  7978. 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 (@pxref{Search Paths}, for info on search path specifications associated with packages.)"
  7979. msgstr ""
  7980. #. type: table
  7981. #: guix-git/doc/guix.texi:3468
  7982. msgid "The typical use case is to define these environment variables in the shell:"
  7983. msgstr ""
  7984. #. type: example
  7985. #: guix-git/doc/guix.texi:3471
  7986. #, no-wrap
  7987. msgid "$ eval `guix package --search-paths`\n"
  7988. msgstr ""
  7989. #. type: table
  7990. #: guix-git/doc/guix.texi:3477
  7991. 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}."
  7992. msgstr ""
  7993. #. type: table
  7994. #: guix-git/doc/guix.texi:3480
  7995. msgid "This option can also be used to compute the @emph{combined} search paths of several profiles. Consider this example:"
  7996. msgstr ""
  7997. #. type: example
  7998. #: guix-git/doc/guix.texi:3485
  7999. #, no-wrap
  8000. msgid ""
  8001. "$ guix package -p foo -i guile\n"
  8002. "$ guix package -p bar -i guile-json\n"
  8003. "$ guix package -p foo -p bar --search-paths\n"
  8004. msgstr ""
  8005. #. type: table
  8006. #: guix-git/doc/guix.texi:3490
  8007. 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."
  8008. msgstr ""
  8009. #. type: cindex
  8010. #: guix-git/doc/guix.texi:3492
  8011. #, no-wrap
  8012. msgid "profile, choosing"
  8013. msgstr ""
  8014. #. type: item
  8015. #: guix-git/doc/guix.texi:3493 guix-git/doc/guix.texi:4567
  8016. #: guix-git/doc/guix.texi:4896 guix-git/doc/guix.texi:5849
  8017. #: guix-git/doc/guix.texi:6262
  8018. #, no-wrap
  8019. msgid "--profile=@var{profile}"
  8020. msgstr ""
  8021. #. type: itemx
  8022. #: guix-git/doc/guix.texi:3494 guix-git/doc/guix.texi:4568
  8023. #: guix-git/doc/guix.texi:4897 guix-git/doc/guix.texi:5850
  8024. #: guix-git/doc/guix.texi:6263
  8025. #, no-wrap
  8026. msgid "-p @var{profile}"
  8027. msgstr ""
  8028. #. type: table
  8029. #: guix-git/doc/guix.texi:3496
  8030. msgid "Use @var{profile} instead of the user's default profile."
  8031. msgstr ""
  8032. #. type: table
  8033. #: guix-git/doc/guix.texi:3501
  8034. 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:"
  8035. msgstr ""
  8036. #. type: example
  8037. #: guix-git/doc/guix.texi:3507
  8038. #, no-wrap
  8039. msgid ""
  8040. "$ guix install hello -p ~/code/my-profile\n"
  8041. "@dots{}\n"
  8042. "$ ~/code/my-profile/bin/hello\n"
  8043. "Hello, world!\n"
  8044. msgstr ""
  8045. #. type: table
  8046. #: guix-git/doc/guix.texi:3511
  8047. msgid "All it takes to get rid of the profile is to remove this symlink and its siblings that point to specific generations:"
  8048. msgstr ""
  8049. #. type: example
  8050. #: guix-git/doc/guix.texi:3514
  8051. #, no-wrap
  8052. msgid "$ rm ~/code/my-profile ~/code/my-profile-*-link\n"
  8053. msgstr ""
  8054. #. type: item
  8055. #: guix-git/doc/guix.texi:3516
  8056. #, no-wrap
  8057. msgid "--list-profiles"
  8058. msgstr ""
  8059. #. type: table
  8060. #: guix-git/doc/guix.texi:3518
  8061. msgid "List all the user's profiles:"
  8062. msgstr ""
  8063. #. type: example
  8064. #: guix-git/doc/guix.texi:3525
  8065. #, no-wrap
  8066. msgid ""
  8067. "$ guix package --list-profiles\n"
  8068. "/home/charlie/.guix-profile\n"
  8069. "/home/charlie/code/my-profile\n"
  8070. "/home/charlie/code/devel-profile\n"
  8071. "/home/charlie/tmp/test\n"
  8072. msgstr ""
  8073. #. type: table
  8074. #: guix-git/doc/guix.texi:3528
  8075. msgid "When running as root, list all the profiles of all the users."
  8076. msgstr ""
  8077. #. type: cindex
  8078. #: guix-git/doc/guix.texi:3529
  8079. #, no-wrap
  8080. msgid "collisions, in a profile"
  8081. msgstr ""
  8082. #. type: cindex
  8083. #: guix-git/doc/guix.texi:3530
  8084. #, no-wrap
  8085. msgid "colliding packages in profiles"
  8086. msgstr ""
  8087. #. type: cindex
  8088. #: guix-git/doc/guix.texi:3531
  8089. #, no-wrap
  8090. msgid "profile collisions"
  8091. msgstr ""
  8092. #. type: item
  8093. #: guix-git/doc/guix.texi:3532
  8094. #, no-wrap
  8095. msgid "--allow-collisions"
  8096. msgstr ""
  8097. #. type: table
  8098. #: guix-git/doc/guix.texi:3534
  8099. msgid "Allow colliding packages in the new profile. Use at your own risk!"
  8100. msgstr ""
  8101. #. type: table
  8102. #: guix-git/doc/guix.texi:3538
  8103. 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."
  8104. msgstr ""
  8105. #. type: item
  8106. #: guix-git/doc/guix.texi:3539 guix-git/doc/guix.texi:4610
  8107. #: guix-git/doc/guix.texi:6766
  8108. #, no-wrap
  8109. msgid "--bootstrap"
  8110. msgstr ""
  8111. #. type: table
  8112. #: guix-git/doc/guix.texi:3542
  8113. msgid "Use the bootstrap Guile to build the profile. This option is only useful to distribution developers."
  8114. msgstr ""
  8115. #. type: Plain text
  8116. #: guix-git/doc/guix.texi:3548
  8117. 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:"
  8118. msgstr ""
  8119. #. type: item
  8120. #: guix-git/doc/guix.texi:3551
  8121. #, no-wrap
  8122. msgid "--search=@var{regexp}"
  8123. msgstr ""
  8124. #. type: itemx
  8125. #: guix-git/doc/guix.texi:3552
  8126. #, no-wrap
  8127. msgid "-s @var{regexp}"
  8128. msgstr ""
  8129. #. type: anchor{#1}
  8130. #: guix-git/doc/guix.texi:3554
  8131. msgid "guix-search"
  8132. msgstr ""
  8133. #. type: cindex
  8134. #: guix-git/doc/guix.texi:3554
  8135. #, no-wrap
  8136. msgid "searching for packages"
  8137. msgstr ""
  8138. #. type: table
  8139. #: guix-git/doc/guix.texi:3560
  8140. 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})."
  8141. msgstr ""
  8142. #. type: table
  8143. #: guix-git/doc/guix.texi:3563
  8144. msgid "This allows specific fields to be extracted using the @command{recsel} command, for instance:"
  8145. msgstr ""
  8146. #. type: example
  8147. #: guix-git/doc/guix.texi:3569
  8148. #, no-wrap
  8149. msgid ""
  8150. "$ guix package -s malloc | recsel -p name,version,relevance\n"
  8151. "name: jemalloc\n"
  8152. "version: 4.5.0\n"
  8153. "relevance: 6\n"
  8154. "\n"
  8155. msgstr ""
  8156. #. type: example
  8157. #: guix-git/doc/guix.texi:3573
  8158. #, no-wrap
  8159. msgid ""
  8160. "name: glibc\n"
  8161. "version: 2.25\n"
  8162. "relevance: 1\n"
  8163. "\n"
  8164. msgstr ""
  8165. #. type: example
  8166. #: guix-git/doc/guix.texi:3577
  8167. #, no-wrap
  8168. msgid ""
  8169. "name: libgc\n"
  8170. "version: 7.6.0\n"
  8171. "relevance: 1\n"
  8172. msgstr ""
  8173. #. type: table
  8174. #: guix-git/doc/guix.texi:3581
  8175. msgid "Similarly, to show the name of all the packages available under the terms of the GNU@tie{}LGPL version 3:"
  8176. msgstr ""
  8177. #. type: example
  8178. #: guix-git/doc/guix.texi:3585
  8179. #, no-wrap
  8180. msgid ""
  8181. "$ guix package -s \"\" | recsel -p name -e 'license ~ \"LGPL 3\"'\n"
  8182. "name: elfutils\n"
  8183. "\n"
  8184. msgstr ""
  8185. #. type: example
  8186. #: guix-git/doc/guix.texi:3588
  8187. #, no-wrap
  8188. msgid ""
  8189. "name: gmp\n"
  8190. "@dots{}\n"
  8191. msgstr ""
  8192. #. type: table
  8193. #: guix-git/doc/guix.texi:3594
  8194. 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):"
  8195. msgstr ""
  8196. #. type: example
  8197. #: guix-git/doc/guix.texi:3599
  8198. #, no-wrap
  8199. msgid ""
  8200. "$ guix search '\\<board\\>' game | recsel -p name\n"
  8201. "name: gnubg\n"
  8202. "@dots{}\n"
  8203. msgstr ""
  8204. #. type: table
  8205. #: guix-git/doc/guix.texi:3605
  8206. 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."
  8207. msgstr ""
  8208. #. type: table
  8209. #: guix-git/doc/guix.texi:3609
  8210. 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:"
  8211. msgstr ""
  8212. #. type: example
  8213. #: guix-git/doc/guix.texi:3613
  8214. #, no-wrap
  8215. msgid ""
  8216. "$ guix search crypto library | \\\n"
  8217. " recsel -e '! (name ~ \"^(ghc|perl|python|ruby)\")' -p name,synopsis\n"
  8218. msgstr ""
  8219. #. type: table
  8220. #: guix-git/doc/guix.texi:3618
  8221. msgid "@xref{Selection Expressions,,, recutils, GNU recutils manual}, for more information on @dfn{selection expressions} for @code{recsel -e}."
  8222. msgstr ""
  8223. #. type: item
  8224. #: guix-git/doc/guix.texi:3619
  8225. #, no-wrap
  8226. msgid "--show=@var{package}"
  8227. msgstr ""
  8228. #. type: table
  8229. #: guix-git/doc/guix.texi:3623
  8230. 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})."
  8231. msgstr ""
  8232. #. type: example
  8233. #: guix-git/doc/guix.texi:3628
  8234. #, no-wrap
  8235. msgid ""
  8236. "$ guix package --show=guile | recsel -p name,version\n"
  8237. "name: guile\n"
  8238. "version: 3.0.5\n"
  8239. "\n"
  8240. msgstr ""
  8241. #. type: example
  8242. #: guix-git/doc/guix.texi:3631
  8243. #, no-wrap
  8244. msgid ""
  8245. "name: guile\n"
  8246. "version: 3.0.2\n"
  8247. "\n"
  8248. msgstr ""
  8249. #. type: example
  8250. #: guix-git/doc/guix.texi:3635
  8251. #, no-wrap
  8252. msgid ""
  8253. "name: guile\n"
  8254. "version: 2.2.7\n"
  8255. "@dots{}\n"
  8256. msgstr ""
  8257. #. type: table
  8258. #: guix-git/doc/guix.texi:3639
  8259. 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):"
  8260. msgstr ""
  8261. #. type: example
  8262. #: guix-git/doc/guix.texi:3643
  8263. #, no-wrap
  8264. msgid ""
  8265. "$ guix show guile@@3.0.5 | recsel -p name,version\n"
  8266. "name: guile\n"
  8267. "version: 3.0.5\n"
  8268. msgstr ""
  8269. #. type: item
  8270. #: guix-git/doc/guix.texi:3645
  8271. #, no-wrap
  8272. msgid "--list-installed[=@var{regexp}]"
  8273. msgstr ""
  8274. #. type: itemx
  8275. #: guix-git/doc/guix.texi:3646
  8276. #, no-wrap
  8277. msgid "-I [@var{regexp}]"
  8278. msgstr ""
  8279. #. type: table
  8280. #: guix-git/doc/guix.texi:3650
  8281. 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}."
  8282. msgstr ""
  8283. #. type: table
  8284. #: guix-git/doc/guix.texi:3656
  8285. 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."
  8286. msgstr ""
  8287. #. type: item
  8288. #: guix-git/doc/guix.texi:3657
  8289. #, no-wrap
  8290. msgid "--list-available[=@var{regexp}]"
  8291. msgstr ""
  8292. #. type: itemx
  8293. #: guix-git/doc/guix.texi:3658
  8294. #, no-wrap
  8295. msgid "-A [@var{regexp}]"
  8296. msgstr ""
  8297. #. type: table
  8298. #: guix-git/doc/guix.texi:3662
  8299. 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}."
  8300. msgstr ""
  8301. #. type: table
  8302. #: guix-git/doc/guix.texi:3666
  8303. 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."
  8304. msgstr ""
  8305. #. type: item
  8306. #: guix-git/doc/guix.texi:3667 guix-git/doc/guix.texi:4513
  8307. #, no-wrap
  8308. msgid "--list-generations[=@var{pattern}]"
  8309. msgstr ""
  8310. #. type: itemx
  8311. #: guix-git/doc/guix.texi:3668 guix-git/doc/guix.texi:4514
  8312. #, no-wrap
  8313. msgid "-l [@var{pattern}]"
  8314. msgstr ""
  8315. #. type: table
  8316. #: guix-git/doc/guix.texi:3674
  8317. 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."
  8318. msgstr ""
  8319. #. type: table
  8320. #: guix-git/doc/guix.texi:3679
  8321. 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."
  8322. msgstr ""
  8323. #. type: table
  8324. #: guix-git/doc/guix.texi:3682
  8325. msgid "When @var{pattern} is used, the command returns only matching generations. Valid patterns include:"
  8326. msgstr ""
  8327. #. type: item
  8328. #: guix-git/doc/guix.texi:3684
  8329. #, no-wrap
  8330. msgid "@emph{Integers and comma-separated integers}. Both patterns denote"
  8331. msgstr ""
  8332. #. type: itemize
  8333. #: guix-git/doc/guix.texi:3687
  8334. msgid "generation numbers. For instance, @option{--list-generations=1} returns the first one."
  8335. msgstr ""
  8336. #. type: itemize
  8337. #: guix-git/doc/guix.texi:3690
  8338. msgid "And @option{--list-generations=1,8,2} outputs three generations in the specified order. Neither spaces nor trailing commas are allowed."
  8339. msgstr ""
  8340. #. type: item
  8341. #: guix-git/doc/guix.texi:3691
  8342. #, no-wrap
  8343. msgid "@emph{Ranges}. @option{--list-generations=2..9} prints the"
  8344. msgstr ""
  8345. #. type: itemize
  8346. #: guix-git/doc/guix.texi:3694
  8347. msgid "specified generations and everything in between. Note that the start of a range must be smaller than its end."
  8348. msgstr ""
  8349. #. type: itemize
  8350. #: guix-git/doc/guix.texi:3698
  8351. msgid "It is also possible to omit the endpoint. For example, @option{--list-generations=2..}, returns all generations starting from the second one."
  8352. msgstr ""
  8353. #. type: item
  8354. #: guix-git/doc/guix.texi:3699
  8355. #, no-wrap
  8356. msgid "@emph{Durations}. You can also get the last @emph{N}@tie{}days, weeks,"
  8357. msgstr ""
  8358. #. type: itemize
  8359. #: guix-git/doc/guix.texi:3703
  8360. 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."
  8361. msgstr ""
  8362. #. type: item
  8363. #: guix-git/doc/guix.texi:3705 guix-git/doc/guix.texi:4548
  8364. #, no-wrap
  8365. msgid "--delete-generations[=@var{pattern}]"
  8366. msgstr ""
  8367. #. type: itemx
  8368. #: guix-git/doc/guix.texi:3706 guix-git/doc/guix.texi:4549
  8369. #, no-wrap
  8370. msgid "-d [@var{pattern}]"
  8371. msgstr ""
  8372. #. type: table
  8373. #: guix-git/doc/guix.texi:3709 guix-git/doc/guix.texi:4552
  8374. msgid "When @var{pattern} is omitted, delete all generations except the current one."
  8375. msgstr ""
  8376. #. type: table
  8377. #: guix-git/doc/guix.texi:3715 guix-git/doc/guix.texi:4558
  8378. 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."
  8379. msgstr ""
  8380. #. type: table
  8381. #: guix-git/doc/guix.texi:3718
  8382. msgid "If the current generation matches, it is @emph{not} deleted. Also, the zeroth generation is never deleted."
  8383. msgstr ""
  8384. #. type: table
  8385. #: guix-git/doc/guix.texi:3721 guix-git/doc/guix.texi:4563
  8386. msgid "Note that deleting generations prevents rolling back to them. Consequently, this command must be used with care."
  8387. msgstr ""
  8388. #. type: cindex
  8389. #: guix-git/doc/guix.texi:3722
  8390. #, no-wrap
  8391. msgid "manifest, exporting"
  8392. msgstr ""
  8393. #. type: anchor{#1}
  8394. #: guix-git/doc/guix.texi:3724
  8395. msgid "export-manifest"
  8396. msgstr ""
  8397. #. type: item
  8398. #: guix-git/doc/guix.texi:3724
  8399. #, no-wrap
  8400. msgid "--export-manifest"
  8401. msgstr ""
  8402. #. type: table
  8403. #: guix-git/doc/guix.texi:3727
  8404. msgid "Write to standard output a manifest suitable for @option{--manifest} corresponding to the chosen profile(s)."
  8405. msgstr ""
  8406. #. type: table
  8407. #: guix-git/doc/guix.texi:3731
  8408. 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."
  8409. msgstr ""
  8410. #. type: table
  8411. #: guix-git/doc/guix.texi:3736
  8412. 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."
  8413. msgstr ""
  8414. #. type: table
  8415. #: guix-git/doc/guix.texi:3741
  8416. 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."
  8417. msgstr ""
  8418. #. type: cindex
  8419. #: guix-git/doc/guix.texi:3742
  8420. #, fuzzy, no-wrap
  8421. msgid "pinning, channel revisions of a profile"
  8422. msgstr "和其它版本的Guix交互。"
  8423. #. type: item
  8424. #: guix-git/doc/guix.texi:3743
  8425. #, no-wrap
  8426. msgid "--export-channels"
  8427. msgstr ""
  8428. #. type: table
  8429. #: guix-git/doc/guix.texi:3747
  8430. 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})."
  8431. msgstr ""
  8432. #. type: table
  8433. #: guix-git/doc/guix.texi:3751
  8434. msgid "Together with @option{--export-manifest}, this option provides information allowing you to replicate the current profile (@pxref{Replicating Guix})."
  8435. msgstr ""
  8436. #. type: table
  8437. #: guix-git/doc/guix.texi:3759
  8438. 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})."
  8439. msgstr ""
  8440. #. type: table
  8441. #: guix-git/doc/guix.texi:3764
  8442. 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."
  8443. msgstr ""
  8444. #. type: Plain text
  8445. #: guix-git/doc/guix.texi:3771
  8446. 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})."
  8447. msgstr ""
  8448. #. type: cindex
  8449. #: guix-git/doc/guix.texi:3776
  8450. #, no-wrap
  8451. msgid "pre-built binaries"
  8452. msgstr ""
  8453. #. type: Plain text
  8454. #: guix-git/doc/guix.texi:3782
  8455. 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."
  8456. msgstr ""
  8457. #. type: Plain text
  8458. #: guix-git/doc/guix.texi:3787
  8459. 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."
  8460. msgstr ""
  8461. #. type: cindex
  8462. #: guix-git/doc/guix.texi:3801
  8463. #, no-wrap
  8464. msgid "build farm"
  8465. msgstr ""
  8466. #. type: Plain text
  8467. #: guix-git/doc/guix.texi:3812
  8468. msgid "@code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} are both front-ends to official build farms that build packages from Guix continuously for some architectures, and make them available as substitutes. These are the default source of substitutes; which can be overridden by passing the @option{--substitute-urls} option either to @command{guix-daemon} (@pxref{daemon-substitute-urls,, @code{guix-daemon --substitute-urls}}) or to client tools such as @command{guix package} (@pxref{client-substitute-urls,, client @option{--substitute-urls} option})."
  8469. msgstr ""
  8470. #. type: Plain text
  8471. #: guix-git/doc/guix.texi:3818
  8472. 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."
  8473. msgstr ""
  8474. #. type: Plain text
  8475. #: guix-git/doc/guix.texi:3827
  8476. msgid "Substitutes from the official build farms are enabled by default when using Guix System (@pxref{GNU Distribution}). However, they are disabled by default when using Guix on a foreign distribution, unless you have explicitly enabled them via one of the recommended installation steps (@pxref{Installation}). The following paragraphs describe how to enable or disable substitutes for the official build farm; the same procedure can also be used to enable substitutes for any other substitute server."
  8477. msgstr ""
  8478. #. type: cindex
  8479. #: guix-git/doc/guix.texi:3831
  8480. #, no-wrap
  8481. msgid "security"
  8482. msgstr ""
  8483. #. type: cindex
  8484. #: guix-git/doc/guix.texi:3833
  8485. #, no-wrap
  8486. msgid "access control list (ACL), for substitutes"
  8487. msgstr ""
  8488. #. type: cindex
  8489. #: guix-git/doc/guix.texi:3834
  8490. #, no-wrap
  8491. msgid "ACL (access control list), for substitutes"
  8492. msgstr ""
  8493. #. type: Plain text
  8494. #: guix-git/doc/guix.texi:3840
  8495. msgid "To allow Guix to download substitutes from @code{@value{SUBSTITUTE-SERVER-1}}, @code{@value{SUBSTITUTE-SERVER-2}} or a mirror, you must add the relevant public key to the access control list (ACL) of archive imports, using the @command{guix archive} command (@pxref{Invoking guix archive}). Doing so implies that you trust the substitute server to not be compromised and to serve genuine substitutes."
  8496. msgstr ""
  8497. #. type: quotation
  8498. #: guix-git/doc/guix.texi:3845
  8499. msgid "If you are using Guix System, you can skip this section: Guix System authorizes substitutes from @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} by default."
  8500. msgstr ""
  8501. #. type: Plain text
  8502. #: guix-git/doc/guix.texi:3853
  8503. msgid "The public keys for each of the project maintained substitute servers are installed along with Guix, in @code{@var{prefix}/share/guix/}, where @var{prefix} is the installation prefix of Guix. If you installed Guix from source, make sure you checked the GPG signature of @file{guix-@value{VERSION}.tar.gz}, which contains this public key file. Then, you can run something like this:"
  8504. msgstr ""
  8505. #. type: example
  8506. #: guix-git/doc/guix.texi:3857
  8507. #, no-wrap
  8508. msgid ""
  8509. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8510. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8511. msgstr ""
  8512. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-1}.pub\n"
  8513. "# guix archive --authorize < @var{prefix}/share/guix/@value{SUBSTITUTE-SERVER-2}.pub\n"
  8514. #. type: Plain text
  8515. #: guix-git/doc/guix.texi:3861
  8516. msgid "Once this is in place, the output of a command like @code{guix build} should change from something like:"
  8517. msgstr ""
  8518. #. type: example
  8519. #: guix-git/doc/guix.texi:3870
  8520. #, no-wrap
  8521. msgid ""
  8522. "$ guix build emacs --dry-run\n"
  8523. "The following derivations would be built:\n"
  8524. " /gnu/store/yr7bnx8xwcayd6j95r2clmkdl1qh688w-emacs-24.3.drv\n"
  8525. " /gnu/store/x8qsh1hlhgjx6cwsjyvybnfv2i37z23w-dbus-1.6.4.tar.gz.drv\n"
  8526. " /gnu/store/1ixwp12fl950d15h2cj11c73733jay0z-alsa-lib-1.0.27.1.tar.bz2.drv\n"
  8527. " /gnu/store/nlma1pw0p603fpfiqy7kn4zm105r5dmw-util-linux-2.21.drv\n"
  8528. "@dots{}\n"
  8529. msgstr ""
  8530. #. type: Plain text
  8531. #: guix-git/doc/guix.texi:3874
  8532. msgid "to something like:"
  8533. msgstr ""
  8534. #. type: example
  8535. #: guix-git/doc/guix.texi:3883
  8536. #, no-wrap
  8537. msgid ""
  8538. "$ guix build emacs --dry-run\n"
  8539. "112.3 MB would be downloaded:\n"
  8540. " /gnu/store/pk3n22lbq6ydamyymqkkz7i69wiwjiwi-emacs-24.3\n"
  8541. " /gnu/store/2ygn4ncnhrpr61rssa6z0d9x22si0va3-libjpeg-8d\n"
  8542. " /gnu/store/71yz6lgx4dazma9dwn2mcjxaah9w77jq-cairo-1.12.16\n"
  8543. " /gnu/store/7zdhgp0n1518lvfn8mb96sxqfmvqrl7v-libxrender-0.9.7\n"
  8544. "@dots{}\n"
  8545. msgstr ""
  8546. #. type: Plain text
  8547. #: guix-git/doc/guix.texi:3890
  8548. msgid "The text changed from ``The following derivations would be built'' to ``112.3 MB would be downloaded''. This indicates that substitutes from the configured substitute servers are usable and will be downloaded, when possible, for future builds."
  8549. msgstr ""
  8550. #. type: cindex
  8551. #: guix-git/doc/guix.texi:3891
  8552. #, no-wrap
  8553. msgid "substitutes, how to disable"
  8554. msgstr ""
  8555. #. type: Plain text
  8556. #: guix-git/doc/guix.texi:3897
  8557. 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."
  8558. msgstr ""
  8559. #. type: cindex
  8560. #: guix-git/doc/guix.texi:3901
  8561. #, fuzzy, no-wrap
  8562. msgid "substitute servers, adding more"
  8563. msgstr "授权substitute服务器。"
  8564. #. type: Plain text
  8565. #: guix-git/doc/guix.texi:3908
  8566. 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."
  8567. msgstr ""
  8568. #. type: Plain text
  8569. #: guix-git/doc/guix.texi:3913
  8570. 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."
  8571. msgstr ""
  8572. #. type: Plain text
  8573. #: guix-git/doc/guix.texi:3920
  8574. 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}})."
  8575. msgstr ""
  8576. #. type: Plain text
  8577. #: guix-git/doc/guix.texi:3926
  8578. msgid "As an example, suppose you want to fetch substitutes from @code{guix.example.org} and to authorize the signing key of that server, in addition to the default @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}}. The resulting operating system configuration will look something like:"
  8579. msgstr ""
  8580. #. type: lisp
  8581. #: guix-git/doc/guix.texi:3943
  8582. #, no-wrap
  8583. msgid ""
  8584. "(operating-system\n"
  8585. " ;; @dots{}\n"
  8586. " (services\n"
  8587. " ;; Assume we're starting from '%desktop-services'. Replace it\n"
  8588. " ;; with the list of services you're actually using.\n"
  8589. " (modify-services %desktop-services\n"
  8590. " (guix-service-type config =>\n"
  8591. " (guix-configuration\n"
  8592. " (inherit config)\n"
  8593. " (substitute-urls\n"
  8594. " (append (list \"https://guix.example.org\")\n"
  8595. " %default-substitute-urls))\n"
  8596. " (authorized-keys\n"
  8597. " (append (list (local-file \"./key.pub\"))\n"
  8598. " %default-authorized-guix-keys)))))))\n"
  8599. msgstr ""
  8600. #. type: Plain text
  8601. #: guix-git/doc/guix.texi:3950
  8602. 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:"
  8603. msgstr ""
  8604. #. type: example
  8605. #: guix-git/doc/guix.texi:3954
  8606. #, no-wrap
  8607. msgid ""
  8608. "$ sudo guix system reconfigure /etc/config.scm\n"
  8609. "$ sudo herd restart guix-daemon\n"
  8610. msgstr ""
  8611. #. type: Plain text
  8612. #: guix-git/doc/guix.texi:3958
  8613. msgid "If you're running Guix on a ``foreign distro'', you would instead take the following steps to get substitutes from additional servers:"
  8614. msgstr ""
  8615. #. type: enumerate
  8616. #: guix-git/doc/guix.texi:3967
  8617. 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}}):"
  8618. msgstr ""
  8619. #. type: example
  8620. #: guix-git/doc/guix.texi:3970
  8621. #, no-wrap
  8622. msgid "@dots{} --substitute-urls='https://guix.example.org @value{SUBSTITUTE-URLS}'\n"
  8623. msgstr ""
  8624. #. type: enumerate
  8625. #: guix-git/doc/guix.texi:3974
  8626. msgid "Restart the daemon. For systemd, it goes like this:"
  8627. msgstr ""
  8628. #. type: example
  8629. #: guix-git/doc/guix.texi:3978
  8630. #, no-wrap
  8631. msgid ""
  8632. "systemctl daemon-reload\n"
  8633. "systemctl restart guix-daemon.service\n"
  8634. msgstr ""
  8635. #. type: enumerate
  8636. #: guix-git/doc/guix.texi:3982
  8637. msgid "Authorize the key of the new server (@pxref{Invoking guix archive}):"
  8638. msgstr ""
  8639. #. type: example
  8640. #: guix-git/doc/guix.texi:3985
  8641. #, fuzzy, no-wrap
  8642. msgid "guix archive --authorize < key.pub\n"
  8643. msgstr "# guix archive --authorize < master-public-key.txt\n"
  8644. #. type: enumerate
  8645. #: guix-git/doc/guix.texi:3989
  8646. msgid "Again this assumes @file{key.pub} contains the public key that @code{guix.example.org} uses to sign substitutes."
  8647. msgstr ""
  8648. #. type: Plain text
  8649. #: guix-git/doc/guix.texi:3998
  8650. msgid "Now you're all set! Substitutes will be preferably taken from @code{https://guix.example.org}, using @code{@value{SUBSTITUTE-SERVER-1}} then @code{@value{SUBSTITUTE-SERVER-2}} as fallback options. Of course you can list as many substitute servers as you like, with the caveat that substitute lookup can be slowed down if too many servers need to be contacted."
  8651. msgstr ""
  8652. #. type: Plain text
  8653. #: guix-git/doc/guix.texi:4002
  8654. 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."
  8655. msgstr ""
  8656. #. type: cindex
  8657. #: guix-git/doc/guix.texi:4006
  8658. #, no-wrap
  8659. msgid "digital signatures"
  8660. msgstr ""
  8661. #. type: Plain text
  8662. #: guix-git/doc/guix.texi:4010
  8663. 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."
  8664. msgstr ""
  8665. #. type: Plain text
  8666. #: guix-git/doc/guix.texi:4016
  8667. 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:"
  8668. msgstr ""
  8669. #. type: example
  8670. #: guix-git/doc/guix.texi:4019
  8671. #, no-wrap
  8672. msgid "--substitute-urls=\"https://a.example.org https://b.example.org\"\n"
  8673. msgstr ""
  8674. #. type: Plain text
  8675. #: guix-git/doc/guix.texi:4030
  8676. 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)."
  8677. msgstr ""
  8678. #. type: Plain text
  8679. #: guix-git/doc/guix.texi:4037
  8680. 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)."
  8681. msgstr ""
  8682. #. type: Plain text
  8683. #: guix-git/doc/guix.texi:4049
  8684. 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}."
  8685. msgstr ""
  8686. #. type: Plain text
  8687. #: guix-git/doc/guix.texi:4058
  8688. 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."
  8689. msgstr ""
  8690. #. type: Plain text
  8691. #: guix-git/doc/guix.texi:4072
  8692. 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."
  8693. msgstr ""
  8694. #. type: Plain text
  8695. #: guix-git/doc/guix.texi:4077
  8696. 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."
  8697. msgstr ""
  8698. #. type: cindex
  8699. #: guix-git/doc/guix.texi:4081
  8700. #, no-wrap
  8701. msgid "trust, of pre-built binaries"
  8702. msgstr ""
  8703. #. type: Plain text
  8704. #: guix-git/doc/guix.texi:4091
  8705. msgid "Today, each individual's control over their own computing is at the mercy of institutions, corporations, and groups with enough power and determination to subvert the computing infrastructure and exploit its weaknesses. While using substitutes can be convenient, we encourage users to also build on their own, or even run their own build farm, such that the project run substitute servers are less of an interesting target. One way to help is by publishing the software you build using @command{guix publish} so that others have one more choice of server to download substitutes from (@pxref{Invoking guix publish})."
  8706. msgstr ""
  8707. #. type: Plain text
  8708. #: guix-git/doc/guix.texi:4103
  8709. 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}})."
  8710. msgstr ""
  8711. #. type: Plain text
  8712. #: guix-git/doc/guix.texi:4107
  8713. 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}."
  8714. msgstr ""
  8715. #. type: cindex
  8716. #: guix-git/doc/guix.texi:4111
  8717. #, no-wrap
  8718. msgid "multiple-output packages"
  8719. msgstr ""
  8720. #. type: cindex
  8721. #: guix-git/doc/guix.texi:4112
  8722. #, no-wrap
  8723. msgid "package outputs"
  8724. msgstr ""
  8725. #. type: cindex
  8726. #: guix-git/doc/guix.texi:4113
  8727. #, no-wrap
  8728. msgid "outputs"
  8729. msgstr ""
  8730. #. type: Plain text
  8731. #: guix-git/doc/guix.texi:4123
  8732. 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."
  8733. msgstr ""
  8734. #. type: Plain text
  8735. #: guix-git/doc/guix.texi:4131
  8736. 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:"
  8737. msgstr ""
  8738. #. type: example
  8739. #: guix-git/doc/guix.texi:4134
  8740. #, no-wrap
  8741. msgid "guix install glib\n"
  8742. msgstr "guix install glib\n"
  8743. #. type: item
  8744. #: guix-git/doc/guix.texi:4136 guix-git/doc/guix.texi:36972
  8745. #: guix-git/doc/guix.texi:37029
  8746. #, no-wrap
  8747. msgid "documentation"
  8748. msgstr ""
  8749. #. type: Plain text
  8750. #: guix-git/doc/guix.texi:4138
  8751. msgid "The command to install its documentation is:"
  8752. msgstr ""
  8753. #. type: example
  8754. #: guix-git/doc/guix.texi:4141
  8755. #, no-wrap
  8756. msgid "guix install glib:doc\n"
  8757. msgstr ""
  8758. #. type: Plain text
  8759. #: guix-git/doc/guix.texi:4152
  8760. 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})."
  8761. msgstr ""
  8762. #. type: Plain text
  8763. #: guix-git/doc/guix.texi:4160
  8764. 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})."
  8765. msgstr ""
  8766. #. type: section
  8767. #: guix-git/doc/guix.texi:4163
  8768. #, no-wrap
  8769. msgid "Invoking @command{guix gc}"
  8770. msgstr ""
  8771. #. type: cindex
  8772. #: guix-git/doc/guix.texi:4165
  8773. #, no-wrap
  8774. msgid "garbage collector"
  8775. msgstr ""
  8776. #. type: cindex
  8777. #: guix-git/doc/guix.texi:4166
  8778. #, no-wrap
  8779. msgid "disk space"
  8780. msgstr ""
  8781. #. type: Plain text
  8782. #: guix-git/doc/guix.texi:4172
  8783. 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!"
  8784. msgstr ""
  8785. #. type: Plain text
  8786. #: guix-git/doc/guix.texi:4183
  8787. 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."
  8788. msgstr ""
  8789. #. type: Plain text
  8790. #: guix-git/doc/guix.texi:4189
  8791. 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})."
  8792. msgstr ""
  8793. #. type: Plain text
  8794. #: guix-git/doc/guix.texi:4193
  8795. 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:"
  8796. msgstr ""
  8797. #. type: example
  8798. #: guix-git/doc/guix.texi:4196
  8799. #, no-wrap
  8800. msgid "guix gc -F 5G\n"
  8801. msgstr ""
  8802. #. type: Plain text
  8803. #: guix-git/doc/guix.texi:4205
  8804. 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."
  8805. msgstr ""
  8806. #. type: Plain text
  8807. #: guix-git/doc/guix.texi:4211
  8808. 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:"
  8809. msgstr ""
  8810. #. type: item
  8811. #: guix-git/doc/guix.texi:4213
  8812. #, no-wrap
  8813. msgid "--collect-garbage[=@var{min}]"
  8814. msgstr ""
  8815. #. type: itemx
  8816. #: guix-git/doc/guix.texi:4214
  8817. #, no-wrap
  8818. msgid "-C [@var{min}]"
  8819. msgstr ""
  8820. #. type: table
  8821. #: guix-git/doc/guix.texi:4218
  8822. msgid "Collect garbage---i.e., unreachable @file{/gnu/store} files and sub-directories. This is the default operation when no option is specified."
  8823. msgstr ""
  8824. #. type: table
  8825. #: guix-git/doc/guix.texi:4223
  8826. 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})."
  8827. msgstr ""
  8828. #. type: table
  8829. #: guix-git/doc/guix.texi:4225
  8830. msgid "When @var{min} is omitted, collect all the garbage."
  8831. msgstr ""
  8832. #. type: item
  8833. #: guix-git/doc/guix.texi:4226
  8834. #, no-wrap
  8835. msgid "--free-space=@var{free}"
  8836. msgstr ""
  8837. #. type: itemx
  8838. #: guix-git/doc/guix.texi:4227
  8839. #, no-wrap
  8840. msgid "-F @var{free}"
  8841. msgstr ""
  8842. #. type: table
  8843. #: guix-git/doc/guix.texi:4231
  8844. 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."
  8845. msgstr ""
  8846. #. type: table
  8847. #: guix-git/doc/guix.texi:4234
  8848. msgid "When @var{free} or more is already available in @file{/gnu/store}, do nothing and exit immediately."
  8849. msgstr ""
  8850. #. type: item
  8851. #: guix-git/doc/guix.texi:4235
  8852. #, no-wrap
  8853. msgid "--delete-generations[=@var{duration}]"
  8854. msgstr ""
  8855. #. type: itemx
  8856. #: guix-git/doc/guix.texi:4236
  8857. #, no-wrap
  8858. msgid "-d [@var{duration}]"
  8859. msgstr ""
  8860. #. type: table
  8861. #: guix-git/doc/guix.texi:4240
  8862. 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}."
  8863. msgstr ""
  8864. #. type: table
  8865. #: guix-git/doc/guix.texi:4244
  8866. 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:"
  8867. msgstr ""
  8868. #. type: example
  8869. #: guix-git/doc/guix.texi:4247
  8870. #, no-wrap
  8871. msgid "guix gc -d 2m -F 10G\n"
  8872. msgstr ""
  8873. #. type: item
  8874. #: guix-git/doc/guix.texi:4249
  8875. #, no-wrap
  8876. msgid "--delete"
  8877. msgstr ""
  8878. #. type: itemx
  8879. #: guix-git/doc/guix.texi:4250 guix-git/doc/guix.texi:5780
  8880. #, no-wrap
  8881. msgid "-D"
  8882. msgstr ""
  8883. #. type: table
  8884. #: guix-git/doc/guix.texi:4254
  8885. 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."
  8886. msgstr ""
  8887. #. type: item
  8888. #: guix-git/doc/guix.texi:4255
  8889. #, no-wrap
  8890. msgid "--list-failures"
  8891. msgstr ""
  8892. #. type: table
  8893. #: guix-git/doc/guix.texi:4257
  8894. msgid "List store items corresponding to cached build failures."
  8895. msgstr ""
  8896. #. type: table
  8897. #: guix-git/doc/guix.texi:4261
  8898. msgid "This prints nothing unless the daemon was started with @option{--cache-failures} (@pxref{Invoking guix-daemon, @option{--cache-failures}})."
  8899. msgstr ""
  8900. #. type: item
  8901. #: guix-git/doc/guix.texi:4262
  8902. #, no-wrap
  8903. msgid "--list-roots"
  8904. msgstr ""
  8905. #. type: table
  8906. #: guix-git/doc/guix.texi:4265
  8907. msgid "List the GC roots owned by the user; when run as root, list @emph{all} the GC roots."
  8908. msgstr ""
  8909. #. type: item
  8910. #: guix-git/doc/guix.texi:4266
  8911. #, no-wrap
  8912. msgid "--list-busy"
  8913. msgstr ""
  8914. #. type: table
  8915. #: guix-git/doc/guix.texi:4269
  8916. msgid "List store items in use by currently running processes. These store items are effectively considered GC roots: they cannot be deleted."
  8917. msgstr ""
  8918. #. type: item
  8919. #: guix-git/doc/guix.texi:4270
  8920. #, no-wrap
  8921. msgid "--clear-failures"
  8922. msgstr ""
  8923. #. type: table
  8924. #: guix-git/doc/guix.texi:4272
  8925. msgid "Remove the specified store items from the failed-build cache."
  8926. msgstr ""
  8927. #. type: table
  8928. #: guix-git/doc/guix.texi:4275
  8929. msgid "Again, this option only makes sense when the daemon is started with @option{--cache-failures}. Otherwise, it does nothing."
  8930. msgstr ""
  8931. #. type: item
  8932. #: guix-git/doc/guix.texi:4276
  8933. #, no-wrap
  8934. msgid "--list-dead"
  8935. msgstr ""
  8936. #. type: table
  8937. #: guix-git/doc/guix.texi:4279
  8938. 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."
  8939. msgstr ""
  8940. #. type: item
  8941. #: guix-git/doc/guix.texi:4280
  8942. #, no-wrap
  8943. msgid "--list-live"
  8944. msgstr ""
  8945. #. type: table
  8946. #: guix-git/doc/guix.texi:4282
  8947. msgid "Show the list of live store files and directories."
  8948. msgstr ""
  8949. #. type: Plain text
  8950. #: guix-git/doc/guix.texi:4286
  8951. msgid "In addition, the references among existing store files can be queried:"
  8952. msgstr ""
  8953. #. type: item
  8954. #: guix-git/doc/guix.texi:4289
  8955. #, no-wrap
  8956. msgid "--references"
  8957. msgstr ""
  8958. #. type: itemx
  8959. #: guix-git/doc/guix.texi:4290
  8960. #, no-wrap
  8961. msgid "--referrers"
  8962. msgstr ""
  8963. #. type: cindex
  8964. #: guix-git/doc/guix.texi:4291 guix-git/doc/guix.texi:13666
  8965. #, no-wrap
  8966. msgid "package dependencies"
  8967. msgstr ""
  8968. #. type: table
  8969. #: guix-git/doc/guix.texi:4294
  8970. msgid "List the references (respectively, the referrers) of store files given as arguments."
  8971. msgstr ""
  8972. #. type: item
  8973. #: guix-git/doc/guix.texi:4295
  8974. #, no-wrap
  8975. msgid "--requisites"
  8976. msgstr ""
  8977. #. type: itemx
  8978. #: guix-git/doc/guix.texi:4296 guix-git/doc/guix.texi:6566
  8979. #, no-wrap
  8980. msgid "-R"
  8981. msgstr ""
  8982. #. type: item
  8983. #: guix-git/doc/guix.texi:4297 guix-git/doc/guix.texi:13522
  8984. #: guix-git/doc/guix.texi:13550 guix-git/doc/guix.texi:13631
  8985. #, no-wrap
  8986. msgid "closure"
  8987. msgstr ""
  8988. #. type: table
  8989. #: guix-git/doc/guix.texi:4302
  8990. 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."
  8991. msgstr ""
  8992. #. type: table
  8993. #: guix-git/doc/guix.texi:4306
  8994. 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."
  8995. msgstr ""
  8996. #. type: item
  8997. #: guix-git/doc/guix.texi:4307
  8998. #, no-wrap
  8999. msgid "--derivers"
  9000. msgstr ""
  9001. #. type: item
  9002. #: guix-git/doc/guix.texi:4308 guix-git/doc/guix.texi:6880
  9003. #: guix-git/doc/guix.texi:13378 guix-git/doc/guix.texi:13775
  9004. #, no-wrap
  9005. msgid "derivation"
  9006. msgstr ""
  9007. #. type: table
  9008. #: guix-git/doc/guix.texi:4311
  9009. msgid "Return the derivation(s) leading to the given store items (@pxref{Derivations})."
  9010. msgstr ""
  9011. #. type: table
  9012. #: guix-git/doc/guix.texi:4313
  9013. msgid "For example, this command:"
  9014. msgstr ""
  9015. #. type: example
  9016. #: guix-git/doc/guix.texi:4316
  9017. #, no-wrap
  9018. msgid "guix gc --derivers $(guix package -I ^emacs$ | cut -f4)\n"
  9019. msgstr ""
  9020. #. type: table
  9021. #: guix-git/doc/guix.texi:4321
  9022. msgid "returns the @file{.drv} file(s) leading to the @code{emacs} package installed in your profile."
  9023. msgstr ""
  9024. #. type: table
  9025. #: guix-git/doc/guix.texi:4325
  9026. 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."
  9027. msgstr ""
  9028. #. type: Plain text
  9029. #: guix-git/doc/guix.texi:4329
  9030. msgid "Lastly, the following options allow you to check the integrity of the store and to control disk usage."
  9031. msgstr ""
  9032. #. type: item
  9033. #: guix-git/doc/guix.texi:4332
  9034. #, no-wrap
  9035. msgid "--verify[=@var{options}]"
  9036. msgstr ""
  9037. #. type: cindex
  9038. #: guix-git/doc/guix.texi:4333
  9039. #, no-wrap
  9040. msgid "integrity, of the store"
  9041. msgstr ""
  9042. #. type: cindex
  9043. #: guix-git/doc/guix.texi:4334
  9044. #, no-wrap
  9045. msgid "integrity checking"
  9046. msgstr ""
  9047. #. type: table
  9048. #: guix-git/doc/guix.texi:4336
  9049. msgid "Verify the integrity of the store."
  9050. msgstr ""
  9051. #. type: table
  9052. #: guix-git/doc/guix.texi:4339
  9053. 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}."
  9054. msgstr ""
  9055. #. type: table
  9056. #: guix-git/doc/guix.texi:4342
  9057. msgid "When provided, @var{options} must be a comma-separated list containing one or more of @code{contents} and @code{repair}."
  9058. msgstr ""
  9059. #. type: table
  9060. #: guix-git/doc/guix.texi:4348
  9061. 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."
  9062. msgstr ""
  9063. #. type: cindex
  9064. #: guix-git/doc/guix.texi:4349
  9065. #, no-wrap
  9066. msgid "repairing the store"
  9067. msgstr ""
  9068. #. type: cindex
  9069. #: guix-git/doc/guix.texi:4350 guix-git/doc/guix.texi:11982
  9070. #, no-wrap
  9071. msgid "corruption, recovering from"
  9072. msgstr ""
  9073. #. type: table
  9074. #: guix-git/doc/guix.texi:4358
  9075. 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})."
  9076. msgstr ""
  9077. #. type: item
  9078. #: guix-git/doc/guix.texi:4359
  9079. #, no-wrap
  9080. msgid "--optimize"
  9081. msgstr ""
  9082. #. type: table
  9083. #: guix-git/doc/guix.texi:4363
  9084. msgid "Optimize the store by hard-linking identical files---this is @dfn{deduplication}."
  9085. msgstr ""
  9086. #. type: table
  9087. #: guix-git/doc/guix.texi:4369
  9088. 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}."
  9089. msgstr ""
  9090. #. type: section
  9091. #: guix-git/doc/guix.texi:4373
  9092. #, no-wrap
  9093. msgid "Invoking @command{guix pull}"
  9094. msgstr ""
  9095. #. type: cindex
  9096. #: guix-git/doc/guix.texi:4375
  9097. #, no-wrap
  9098. msgid "upgrading Guix"
  9099. msgstr ""
  9100. #. type: cindex
  9101. #: guix-git/doc/guix.texi:4376
  9102. #, no-wrap
  9103. msgid "updating Guix"
  9104. msgstr ""
  9105. #. type: command{#1}
  9106. #: guix-git/doc/guix.texi:4377
  9107. #, no-wrap
  9108. msgid "guix pull"
  9109. msgstr ""
  9110. #. type: cindex
  9111. #: guix-git/doc/guix.texi:4378
  9112. #, no-wrap
  9113. msgid "pull"
  9114. msgstr ""
  9115. #. type: cindex
  9116. #: guix-git/doc/guix.texi:4379
  9117. #, fuzzy, no-wrap
  9118. msgid "security, @command{guix pull}"
  9119. msgstr "调用@command{guix build}"
  9120. #. type: cindex
  9121. #: guix-git/doc/guix.texi:4380
  9122. #, no-wrap
  9123. msgid "authenticity, of code obtained with @command{guix pull}"
  9124. msgstr ""
  9125. #. type: Plain text
  9126. #: guix-git/doc/guix.texi:4390
  9127. 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."
  9128. msgstr ""
  9129. #. type: Plain text
  9130. #: guix-git/doc/guix.texi:4393
  9131. msgid "Specifically, @command{guix pull} downloads code from the @dfn{channels} (@pxref{Channels}) specified by one of the followings, in this order:"
  9132. msgstr ""
  9133. #. type: enumerate
  9134. #: guix-git/doc/guix.texi:4397
  9135. msgid "the @option{--channels} option;"
  9136. msgstr ""
  9137. #. type: enumerate
  9138. #: guix-git/doc/guix.texi:4399
  9139. msgid "the user's @file{~/.config/guix/channels.scm} file;"
  9140. msgstr ""
  9141. #. type: enumerate
  9142. #: guix-git/doc/guix.texi:4401
  9143. msgid "the system-wide @file{/etc/guix/channels.scm} file;"
  9144. msgstr ""
  9145. #. type: enumerate
  9146. #: guix-git/doc/guix.texi:4404
  9147. msgid "the built-in default channels specified in the @code{%default-channels} variable."
  9148. msgstr ""
  9149. #. type: Plain text
  9150. #: guix-git/doc/guix.texi:4411
  9151. 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."
  9152. msgstr ""
  9153. #. type: Plain text
  9154. #: guix-git/doc/guix.texi:4417
  9155. 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."
  9156. msgstr ""
  9157. #. type: Plain text
  9158. #: guix-git/doc/guix.texi:4423
  9159. 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}):"
  9160. msgstr ""
  9161. #. type: example
  9162. #: guix-git/doc/guix.texi:4427
  9163. #, no-wrap
  9164. msgid ""
  9165. "export PATH=\"$HOME/.config/guix/current/bin:$PATH\"\n"
  9166. "export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"\n"
  9167. msgstr ""
  9168. #. type: Plain text
  9169. #: guix-git/doc/guix.texi:4431
  9170. msgid "The @option{--list-generations} or @option{-l} option lists past generations produced by @command{guix pull}, along with details about their provenance:"
  9171. msgstr ""
  9172. #. type: example
  9173. #: guix-git/doc/guix.texi:4439
  9174. #, no-wrap
  9175. msgid ""
  9176. "$ guix pull -l\n"
  9177. "Generation 1\tJun 10 2018 00:18:18\n"
  9178. " guix 65956ad\n"
  9179. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9180. " branch: origin/master\n"
  9181. " commit: 65956ad3526ba09e1f7a40722c96c6ef7c0936fe\n"
  9182. "\n"
  9183. msgstr ""
  9184. #. type: example
  9185. #: guix-git/doc/guix.texi:4445
  9186. #, no-wrap
  9187. msgid ""
  9188. "Generation 2\tJun 11 2018 11:02:49\n"
  9189. " guix e0cc7f6\n"
  9190. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9191. " branch: origin/master\n"
  9192. " commit: e0cc7f669bec22c37481dd03a7941c7d11a64f1d\n"
  9193. "\n"
  9194. msgstr ""
  9195. #. type: example
  9196. #: guix-git/doc/guix.texi:4451
  9197. #, no-wrap
  9198. msgid ""
  9199. "Generation 3\tJun 13 2018 23:31:07\t(current)\n"
  9200. " guix 844cc1c\n"
  9201. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9202. " branch: origin/master\n"
  9203. " commit: 844cc1c8f394f03b404c5bb3aee086922373490c\n"
  9204. msgstr ""
  9205. #. type: Plain text
  9206. #: guix-git/doc/guix.texi:4455
  9207. msgid "@xref{Invoking guix describe, @command{guix describe}}, for other ways to describe the current status of Guix."
  9208. msgstr ""
  9209. #. type: Plain text
  9210. #: guix-git/doc/guix.texi:4460
  9211. 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:"
  9212. msgstr ""
  9213. #. type: example
  9214. #: guix-git/doc/guix.texi:4466
  9215. #, no-wrap
  9216. msgid ""
  9217. "$ guix pull --roll-back\n"
  9218. "switched from generation 3 to 2\n"
  9219. "$ guix pull --delete-generations=1\n"
  9220. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  9221. msgstr ""
  9222. #. type: Plain text
  9223. #: guix-git/doc/guix.texi:4470
  9224. msgid "You can also use @command{guix package} (@pxref{Invoking guix package}) to manage the profile by naming it explicitly:"
  9225. msgstr ""
  9226. #. type: example
  9227. #: guix-git/doc/guix.texi:4475
  9228. #, no-wrap
  9229. msgid ""
  9230. "$ guix package -p ~/.config/guix/current --roll-back\n"
  9231. "switched from generation 3 to 2\n"
  9232. "$ guix package -p ~/.config/guix/current --delete-generations=1\n"
  9233. "deleting /var/guix/profiles/per-user/charlie/current-guix-1-link\n"
  9234. msgstr ""
  9235. #. type: Plain text
  9236. #: guix-git/doc/guix.texi:4479
  9237. msgid "The @command{guix pull} command is usually invoked with no arguments, but it supports the following options:"
  9238. msgstr ""
  9239. #. type: item
  9240. #: guix-git/doc/guix.texi:4481 guix-git/doc/guix.texi:4649
  9241. #, no-wrap
  9242. msgid "--url=@var{url}"
  9243. msgstr ""
  9244. #. type: itemx
  9245. #: guix-git/doc/guix.texi:4482 guix-git/doc/guix.texi:4650
  9246. #, no-wrap
  9247. msgid "--commit=@var{commit}"
  9248. msgstr ""
  9249. #. type: itemx
  9250. #: guix-git/doc/guix.texi:4483 guix-git/doc/guix.texi:4651
  9251. #, no-wrap
  9252. msgid "--branch=@var{branch}"
  9253. msgstr ""
  9254. #. type: table
  9255. #: guix-git/doc/guix.texi:4487
  9256. 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}."
  9257. msgstr ""
  9258. #. type: cindex
  9259. #: guix-git/doc/guix.texi:4488 guix-git/doc/guix.texi:5095
  9260. #, no-wrap
  9261. msgid "@file{channels.scm}, configuration file"
  9262. msgstr ""
  9263. #. type: cindex
  9264. #: guix-git/doc/guix.texi:4489 guix-git/doc/guix.texi:5096
  9265. #, no-wrap
  9266. msgid "configuration file for channels"
  9267. msgstr ""
  9268. #. type: table
  9269. #: guix-git/doc/guix.texi:4493
  9270. 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)."
  9271. msgstr ""
  9272. #. type: item
  9273. #: guix-git/doc/guix.texi:4494 guix-git/doc/guix.texi:4656
  9274. #, no-wrap
  9275. msgid "--channels=@var{file}"
  9276. msgstr ""
  9277. #. type: itemx
  9278. #: guix-git/doc/guix.texi:4495 guix-git/doc/guix.texi:4657
  9279. #, no-wrap
  9280. msgid "-C @var{file}"
  9281. msgstr ""
  9282. #. type: table
  9283. #: guix-git/doc/guix.texi:4501
  9284. 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."
  9285. msgstr ""
  9286. #. type: cindex
  9287. #: guix-git/doc/guix.texi:4502
  9288. #, fuzzy, no-wrap
  9289. msgid "channel news"
  9290. msgstr "通道"
  9291. #. type: item
  9292. #: guix-git/doc/guix.texi:4503
  9293. #, no-wrap
  9294. msgid "--news"
  9295. msgstr ""
  9296. #. type: itemx
  9297. #: guix-git/doc/guix.texi:4504 guix-git/doc/guix.texi:5899
  9298. #: guix-git/doc/guix.texi:6312 guix-git/doc/guix.texi:35862
  9299. #, no-wrap
  9300. msgid "-N"
  9301. msgstr ""
  9302. #. type: table
  9303. #: guix-git/doc/guix.texi:4509
  9304. msgid "Display news written by channel authors for their users for changes made since the previous generation (@pxref{Channels, Writing Channel News}). When @option{--details} is passed, additionally display new and upgraded packages."
  9305. msgstr ""
  9306. #. type: table
  9307. #: guix-git/doc/guix.texi:4512
  9308. msgid "You can view that information for previous generations with @command{guix pull -l}."
  9309. msgstr ""
  9310. #. type: table
  9311. #: guix-git/doc/guix.texi:4519
  9312. 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})."
  9313. msgstr ""
  9314. #. type: table
  9315. #: guix-git/doc/guix.texi:4524
  9316. msgid "By default, this prints information about the channels used in each revision as well as the corresponding news entries. If you pass @option{--details}, it will also print the list of packages added and upgraded in each generation compared to the previous one."
  9317. msgstr ""
  9318. #. type: item
  9319. #: guix-git/doc/guix.texi:4525
  9320. #, no-wrap
  9321. msgid "--details"
  9322. msgstr ""
  9323. #. type: table
  9324. #: guix-git/doc/guix.texi:4529
  9325. msgid "Instruct @option{--list-generations} or @option{--news} to display more information about the differences between subsequent generations---see above."
  9326. msgstr ""
  9327. #. type: table
  9328. #: guix-git/doc/guix.texi:4536
  9329. msgid "Roll back to the previous @dfn{generation} of @file{~/.config/guix/current}---i.e., undo the last transaction."
  9330. msgstr ""
  9331. #. type: table
  9332. #: guix-git/doc/guix.texi:4560
  9333. msgid "If the current generation matches, it is @emph{not} deleted."
  9334. msgstr ""
  9335. #. type: table
  9336. #: guix-git/doc/guix.texi:4566
  9337. msgid "@xref{Invoking guix describe}, for a way to display information about the current generation only."
  9338. msgstr ""
  9339. #. type: table
  9340. #: guix-git/doc/guix.texi:4570
  9341. msgid "Use @var{profile} instead of @file{~/.config/guix/current}."
  9342. msgstr ""
  9343. #. type: item
  9344. #: guix-git/doc/guix.texi:4571 guix-git/doc/guix.texi:11311
  9345. #: guix-git/doc/guix.texi:13266
  9346. #, no-wrap
  9347. msgid "--dry-run"
  9348. msgstr ""
  9349. #. type: itemx
  9350. #: guix-git/doc/guix.texi:4572 guix-git/doc/guix.texi:11312
  9351. #: guix-git/doc/guix.texi:13267 guix-git/doc/guix.texi:13504
  9352. #, no-wrap
  9353. msgid "-n"
  9354. msgstr ""
  9355. #. type: table
  9356. #: guix-git/doc/guix.texi:4575
  9357. msgid "Show which channel commit(s) would be used and what would be built or substituted but do not actually do it."
  9358. msgstr ""
  9359. #. type: item
  9360. #: guix-git/doc/guix.texi:4576 guix-git/doc/guix.texi:35881
  9361. #: guix-git/doc/guix.texi:38392
  9362. #, no-wrap
  9363. msgid "--allow-downgrades"
  9364. msgstr ""
  9365. #. type: table
  9366. #: guix-git/doc/guix.texi:4579
  9367. msgid "Allow pulling older or unrelated revisions of channels than those currently in use."
  9368. msgstr ""
  9369. #. type: cindex
  9370. #: guix-git/doc/guix.texi:4580
  9371. #, no-wrap
  9372. msgid "downgrade attacks, protection against"
  9373. msgstr ""
  9374. #. type: table
  9375. #: guix-git/doc/guix.texi:4585
  9376. 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."
  9377. msgstr ""
  9378. #. type: quotation
  9379. #: guix-git/doc/guix.texi:4589 guix-git/doc/guix.texi:35895
  9380. msgid "Make sure you understand its security implications before using @option{--allow-downgrades}."
  9381. msgstr ""
  9382. #. type: item
  9383. #: guix-git/doc/guix.texi:4591
  9384. #, fuzzy, no-wrap
  9385. msgid "--disable-authentication"
  9386. msgstr "--disable-deduplication"
  9387. #. type: table
  9388. #: guix-git/doc/guix.texi:4593
  9389. msgid "Allow pulling channel code without authenticating it."
  9390. msgstr ""
  9391. #. type: cindex
  9392. #: guix-git/doc/guix.texi:4594 guix-git/doc/guix.texi:5241
  9393. #, fuzzy, no-wrap
  9394. msgid "authentication, of channel code"
  9395. msgstr "代码缩进"
  9396. #. type: table
  9397. #: guix-git/doc/guix.texi:4599
  9398. 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."
  9399. msgstr ""
  9400. #. type: quotation
  9401. #: guix-git/doc/guix.texi:4603
  9402. msgid "Make sure you understand its security implications before using @option{--disable-authentication}."
  9403. msgstr ""
  9404. #. type: itemx
  9405. #: guix-git/doc/guix.texi:4606 guix-git/doc/guix.texi:5882
  9406. #: guix-git/doc/guix.texi:6295 guix-git/doc/guix.texi:6695
  9407. #: guix-git/doc/guix.texi:11924 guix-git/doc/guix.texi:13649
  9408. #: guix-git/doc/guix.texi:13914 guix-git/doc/guix.texi:14591
  9409. #: guix-git/doc/guix.texi:35810
  9410. #, no-wrap
  9411. msgid "-s @var{system}"
  9412. msgstr ""
  9413. #. type: table
  9414. #: guix-git/doc/guix.texi:4609 guix-git/doc/guix.texi:6698
  9415. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}---instead of the system type of the build host."
  9416. msgstr ""
  9417. #. type: table
  9418. #: guix-git/doc/guix.texi:4613
  9419. msgid "Use the bootstrap Guile to build the latest Guix. This option is only useful to Guix developers."
  9420. msgstr ""
  9421. #. type: Plain text
  9422. #: guix-git/doc/guix.texi:4619
  9423. 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."
  9424. msgstr ""
  9425. #. type: Plain text
  9426. #: guix-git/doc/guix.texi:4622
  9427. msgid "In addition, @command{guix pull} supports all the common build options (@pxref{Common Build Options})."
  9428. msgstr ""
  9429. #. type: section
  9430. #: guix-git/doc/guix.texi:4624
  9431. #, fuzzy, no-wrap
  9432. msgid "Invoking @command{guix time-machine}"
  9433. msgstr "调用@command{guix-daemon}"
  9434. #. type: command{#1}
  9435. #: guix-git/doc/guix.texi:4626
  9436. #, no-wrap
  9437. msgid "guix time-machine"
  9438. msgstr ""
  9439. #. type: cindex
  9440. #: guix-git/doc/guix.texi:4627 guix-git/doc/guix.texi:5199
  9441. #, no-wrap
  9442. msgid "pinning, channels"
  9443. msgstr ""
  9444. #. type: cindex
  9445. #: guix-git/doc/guix.texi:4628 guix-git/doc/guix.texi:4810
  9446. #: guix-git/doc/guix.texi:5200
  9447. #, no-wrap
  9448. msgid "replicating Guix"
  9449. msgstr ""
  9450. #. type: cindex
  9451. #: guix-git/doc/guix.texi:4629 guix-git/doc/guix.texi:5201
  9452. #, no-wrap
  9453. msgid "reproducibility, of Guix"
  9454. msgstr ""
  9455. #. type: Plain text
  9456. #: guix-git/doc/guix.texi:4637
  9457. 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})."
  9458. msgstr ""
  9459. #. type: Plain text
  9460. #: guix-git/doc/guix.texi:4639 guix-git/doc/guix.texi:5663
  9461. #: guix-git/doc/guix.texi:6033 guix-git/doc/guix.texi:6818
  9462. #: guix-git/doc/guix.texi:11107 guix-git/doc/guix.texi:11231
  9463. #: guix-git/doc/guix.texi:12215 guix-git/doc/guix.texi:12311
  9464. #: guix-git/doc/guix.texi:13252 guix-git/doc/guix.texi:13479
  9465. #: guix-git/doc/guix.texi:13972 guix-git/doc/guix.texi:14345
  9466. #: guix-git/doc/guix.texi:14434 guix-git/doc/guix.texi:14473
  9467. #: guix-git/doc/guix.texi:14570
  9468. msgid "The general syntax is:"
  9469. msgstr ""
  9470. #. type: example
  9471. #: guix-git/doc/guix.texi:4642
  9472. #, no-wrap
  9473. msgid "guix time-machine @var{options}@dots{} -- @var{command} @var {arg}@dots{}\n"
  9474. msgstr ""
  9475. #. type: Plain text
  9476. #: guix-git/doc/guix.texi:4647
  9477. 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}):"
  9478. msgstr ""
  9479. #. type: table
  9480. #: guix-git/doc/guix.texi:4655
  9481. 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}."
  9482. msgstr ""
  9483. #. type: table
  9484. #: guix-git/doc/guix.texi:4661
  9485. 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."
  9486. msgstr ""
  9487. #. type: Plain text
  9488. #: guix-git/doc/guix.texi:4665
  9489. 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"
  9490. msgstr ""
  9491. #. type: example
  9492. #: guix-git/doc/guix.texi:4668
  9493. #, no-wrap
  9494. msgid "guix time-machine -- build hello\n"
  9495. msgstr ""
  9496. #. type: Plain text
  9497. #: guix-git/doc/guix.texi:4673
  9498. 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!"
  9499. msgstr ""
  9500. #. type: Plain text
  9501. #: guix-git/doc/guix.texi:4677
  9502. 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})."
  9503. msgstr ""
  9504. #. type: quotation
  9505. #: guix-git/doc/guix.texi:4685
  9506. msgid "The functionality described here is a ``technology preview'' as of version @value{VERSION}. As such, the interface is subject to change."
  9507. msgstr ""
  9508. #. type: cindex
  9509. #: guix-git/doc/guix.texi:4687 guix-git/doc/guix.texi:11144
  9510. #, no-wrap
  9511. msgid "inferiors"
  9512. msgstr ""
  9513. #. type: cindex
  9514. #: guix-git/doc/guix.texi:4688
  9515. #, no-wrap
  9516. msgid "composition of Guix revisions"
  9517. msgstr ""
  9518. #. type: Plain text
  9519. #: guix-git/doc/guix.texi:4693
  9520. 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."
  9521. msgstr ""
  9522. #. type: cindex
  9523. #: guix-git/doc/guix.texi:4694 guix-git/doc/guix.texi:4759
  9524. #, no-wrap
  9525. msgid "inferior packages"
  9526. msgstr ""
  9527. #. type: Plain text
  9528. #: guix-git/doc/guix.texi:4700
  9529. 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}."
  9530. msgstr ""
  9531. #. type: Plain text
  9532. #: guix-git/doc/guix.texi:4710
  9533. 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:"
  9534. msgstr ""
  9535. #. type: lisp
  9536. #: guix-git/doc/guix.texi:4714
  9537. #, no-wrap
  9538. msgid ""
  9539. "(use-modules (guix inferior) (guix channels)\n"
  9540. " (srfi srfi-1)) ;for 'first'\n"
  9541. "\n"
  9542. msgstr ""
  9543. #. type: lisp
  9544. #: guix-git/doc/guix.texi:4723
  9545. #, no-wrap
  9546. msgid ""
  9547. "(define channels\n"
  9548. " ;; This is the old revision from which we want to\n"
  9549. " ;; extract guile-json.\n"
  9550. " (list (channel\n"
  9551. " (name 'guix)\n"
  9552. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9553. " (commit\n"
  9554. " \"65956ad3526ba09e1f7a40722c96c6ef7c0936fe\"))))\n"
  9555. "\n"
  9556. msgstr ""
  9557. #. type: lisp
  9558. #: guix-git/doc/guix.texi:4727
  9559. #, no-wrap
  9560. msgid ""
  9561. "(define inferior\n"
  9562. " ;; An inferior representing the above revision.\n"
  9563. " (inferior-for-channels channels))\n"
  9564. "\n"
  9565. msgstr ""
  9566. #. type: lisp
  9567. #: guix-git/doc/guix.texi:4733
  9568. #, no-wrap
  9569. msgid ""
  9570. ";; Now create a manifest with the current \"guile\" package\n"
  9571. ";; and the old \"guile-json\" package.\n"
  9572. "(packages->manifest\n"
  9573. " (list (first (lookup-inferior-packages inferior \"guile-json\"))\n"
  9574. " (specification->package \"guile\")))\n"
  9575. msgstr ""
  9576. #. type: Plain text
  9577. #: guix-git/doc/guix.texi:4738
  9578. 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."
  9579. msgstr ""
  9580. #. type: Plain text
  9581. #: guix-git/doc/guix.texi:4741
  9582. msgid "The @code{(guix inferior)} module provides the following procedures to open an inferior:"
  9583. msgstr ""
  9584. #. type: deffn
  9585. #: guix-git/doc/guix.texi:4742
  9586. #, no-wrap
  9587. msgid "{Scheme Procedure} inferior-for-channels @var{channels} @"
  9588. msgstr ""
  9589. #. type: deffn
  9590. #: guix-git/doc/guix.texi:4747
  9591. 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."
  9592. msgstr ""
  9593. #. type: deffn
  9594. #: guix-git/doc/guix.texi:4750
  9595. msgid "As a side effect, this procedure may build or substitute binaries for @var{channels}, which can take time."
  9596. msgstr ""
  9597. #. type: deffn
  9598. #: guix-git/doc/guix.texi:4752
  9599. #, no-wrap
  9600. msgid "{Scheme Procedure} open-inferior @var{directory} @"
  9601. msgstr ""
  9602. #. type: deffn
  9603. #: guix-git/doc/guix.texi:4757
  9604. 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."
  9605. msgstr ""
  9606. #. type: Plain text
  9607. #: guix-git/doc/guix.texi:4762
  9608. msgid "The procedures listed below allow you to obtain and manipulate inferior packages."
  9609. msgstr ""
  9610. #. type: deffn
  9611. #: guix-git/doc/guix.texi:4763
  9612. #, no-wrap
  9613. msgid "{Scheme Procedure} inferior-packages @var{inferior}"
  9614. msgstr ""
  9615. #. type: deffn
  9616. #: guix-git/doc/guix.texi:4765
  9617. msgid "Return the list of packages known to @var{inferior}."
  9618. msgstr ""
  9619. #. type: deffn
  9620. #: guix-git/doc/guix.texi:4767
  9621. #, no-wrap
  9622. msgid "{Scheme Procedure} lookup-inferior-packages @var{inferior} @var{name} @"
  9623. msgstr ""
  9624. #. type: deffn
  9625. #: guix-git/doc/guix.texi:4772
  9626. 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}."
  9627. msgstr ""
  9628. #. type: deffn
  9629. #: guix-git/doc/guix.texi:4774
  9630. #, no-wrap
  9631. msgid "{Scheme Procedure} inferior-package? @var{obj}"
  9632. msgstr ""
  9633. #. type: deffn
  9634. #: guix-git/doc/guix.texi:4776
  9635. msgid "Return true if @var{obj} is an inferior package."
  9636. msgstr ""
  9637. #. type: deffn
  9638. #: guix-git/doc/guix.texi:4778
  9639. #, no-wrap
  9640. msgid "{Scheme Procedure} inferior-package-name @var{package}"
  9641. msgstr ""
  9642. #. type: deffnx
  9643. #: guix-git/doc/guix.texi:4779
  9644. #, no-wrap
  9645. msgid "{Scheme Procedure} inferior-package-version @var{package}"
  9646. msgstr ""
  9647. #. type: deffnx
  9648. #: guix-git/doc/guix.texi:4780
  9649. #, no-wrap
  9650. msgid "{Scheme Procedure} inferior-package-synopsis @var{package}"
  9651. msgstr ""
  9652. #. type: deffnx
  9653. #: guix-git/doc/guix.texi:4781
  9654. #, no-wrap
  9655. msgid "{Scheme Procedure} inferior-package-description @var{package}"
  9656. msgstr ""
  9657. #. type: deffnx
  9658. #: guix-git/doc/guix.texi:4782
  9659. #, no-wrap
  9660. msgid "{Scheme Procedure} inferior-package-home-page @var{package}"
  9661. msgstr ""
  9662. #. type: deffnx
  9663. #: guix-git/doc/guix.texi:4783
  9664. #, no-wrap
  9665. msgid "{Scheme Procedure} inferior-package-location @var{package}"
  9666. msgstr ""
  9667. #. type: deffnx
  9668. #: guix-git/doc/guix.texi:4784
  9669. #, no-wrap
  9670. msgid "{Scheme Procedure} inferior-package-inputs @var{package}"
  9671. msgstr ""
  9672. #. type: deffnx
  9673. #: guix-git/doc/guix.texi:4785
  9674. #, no-wrap
  9675. msgid "{Scheme Procedure} inferior-package-native-inputs @var{package}"
  9676. msgstr ""
  9677. #. type: deffnx
  9678. #: guix-git/doc/guix.texi:4786
  9679. #, no-wrap
  9680. msgid "{Scheme Procedure} inferior-package-propagated-inputs @var{package}"
  9681. msgstr ""
  9682. #. type: deffnx
  9683. #: guix-git/doc/guix.texi:4787
  9684. #, no-wrap
  9685. msgid "{Scheme Procedure} inferior-package-transitive-propagated-inputs @var{package}"
  9686. msgstr ""
  9687. #. type: deffnx
  9688. #: guix-git/doc/guix.texi:4788
  9689. #, no-wrap
  9690. msgid "{Scheme Procedure} inferior-package-native-search-paths @var{package}"
  9691. msgstr ""
  9692. #. type: deffnx
  9693. #: guix-git/doc/guix.texi:4789
  9694. #, no-wrap
  9695. msgid "{Scheme Procedure} inferior-package-transitive-native-search-paths @var{package}"
  9696. msgstr ""
  9697. #. type: deffnx
  9698. #: guix-git/doc/guix.texi:4790
  9699. #, no-wrap
  9700. msgid "{Scheme Procedure} inferior-package-search-paths @var{package}"
  9701. msgstr ""
  9702. #. type: deffn
  9703. #: guix-git/doc/guix.texi:4795
  9704. 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."
  9705. msgstr ""
  9706. #. type: Plain text
  9707. #: guix-git/doc/guix.texi:4805
  9708. 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."
  9709. msgstr ""
  9710. #. type: section
  9711. #: guix-git/doc/guix.texi:4807
  9712. #, no-wrap
  9713. msgid "Invoking @command{guix describe}"
  9714. msgstr ""
  9715. #. type: Plain text
  9716. #: guix-git/doc/guix.texi:4818
  9717. 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."
  9718. msgstr ""
  9719. #. type: Plain text
  9720. #: guix-git/doc/guix.texi:4822
  9721. 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}):"
  9722. msgstr ""
  9723. #. type: example
  9724. #: guix-git/doc/guix.texi:4830
  9725. #, no-wrap
  9726. msgid ""
  9727. "$ guix describe\n"
  9728. "Generation 10\tSep 03 2018 17:32:44\t(current)\n"
  9729. " guix e0fa68c\n"
  9730. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  9731. " branch: master\n"
  9732. " commit: e0fa68c7718fffd33d81af415279d6ddb518f727\n"
  9733. msgstr ""
  9734. #. type: Plain text
  9735. #: guix-git/doc/guix.texi:4839
  9736. 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."
  9737. msgstr ""
  9738. #. type: Plain text
  9739. #: guix-git/doc/guix.texi:4842
  9740. 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:"
  9741. msgstr ""
  9742. #. type: example
  9743. #: guix-git/doc/guix.texi:4855
  9744. #, no-wrap
  9745. msgid ""
  9746. "$ guix describe -f channels\n"
  9747. "(list (channel\n"
  9748. " (name 'guix)\n"
  9749. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  9750. " (commit\n"
  9751. " \"e0fa68c7718fffd33d81af415279d6ddb518f727\")\n"
  9752. " (introduction\n"
  9753. " (make-channel-introduction\n"
  9754. " \"9edb3f66fd807b096b48283debdcddccfea34bad\"\n"
  9755. " (openpgp-fingerprint\n"
  9756. " \"BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA\")))))\n"
  9757. msgstr ""
  9758. #. type: Plain text
  9759. #: guix-git/doc/guix.texi:4864
  9760. 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!"
  9761. msgstr ""
  9762. #. type: Plain text
  9763. #: guix-git/doc/guix.texi:4867
  9764. msgid "The details of the options supported by @command{guix describe} are as follows:"
  9765. msgstr ""
  9766. #. type: item
  9767. #: guix-git/doc/guix.texi:4869 guix-git/doc/guix.texi:6496
  9768. #: guix-git/doc/guix.texi:14703
  9769. #, no-wrap
  9770. msgid "--format=@var{format}"
  9771. msgstr ""
  9772. #. type: itemx
  9773. #: guix-git/doc/guix.texi:4870 guix-git/doc/guix.texi:6497
  9774. #: guix-git/doc/guix.texi:14704
  9775. #, no-wrap
  9776. msgid "-f @var{format}"
  9777. msgstr ""
  9778. #. type: table
  9779. #: guix-git/doc/guix.texi:4872 guix-git/doc/guix.texi:14706
  9780. msgid "Produce output in the specified @var{format}, one of:"
  9781. msgstr ""
  9782. #. type: item
  9783. #: guix-git/doc/guix.texi:4874
  9784. #, no-wrap
  9785. msgid "human"
  9786. msgstr ""
  9787. #. type: table
  9788. #: guix-git/doc/guix.texi:4876
  9789. msgid "produce human-readable output;"
  9790. msgstr ""
  9791. #. type: cindex
  9792. #: guix-git/doc/guix.texi:4876 guix-git/doc/guix.texi:5094
  9793. #, no-wrap
  9794. msgid "channels"
  9795. msgstr ""
  9796. #. type: table
  9797. #: guix-git/doc/guix.texi:4880
  9798. 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});"
  9799. msgstr ""
  9800. #. type: item
  9801. #: guix-git/doc/guix.texi:4880
  9802. #, no-wrap
  9803. msgid "channels-sans-intro"
  9804. msgstr ""
  9805. #. type: table
  9806. #: guix-git/doc/guix.texi:4886
  9807. 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;"
  9808. msgstr ""
  9809. #. type: item
  9810. #: guix-git/doc/guix.texi:4886 guix-git/doc/guix.texi:12528
  9811. #, no-wrap
  9812. msgid "json"
  9813. msgstr ""
  9814. #. type: cindex
  9815. #: guix-git/doc/guix.texi:4887
  9816. #, no-wrap
  9817. msgid "JSON"
  9818. msgstr ""
  9819. #. type: table
  9820. #: guix-git/doc/guix.texi:4889
  9821. msgid "produce a list of channel specifications in JSON format;"
  9822. msgstr ""
  9823. #. type: item
  9824. #: guix-git/doc/guix.texi:4889 guix-git/doc/guix.texi:14708
  9825. #, no-wrap
  9826. msgid "recutils"
  9827. msgstr ""
  9828. #. type: table
  9829. #: guix-git/doc/guix.texi:4891
  9830. msgid "produce a list of channel specifications in Recutils format."
  9831. msgstr ""
  9832. #. type: item
  9833. #: guix-git/doc/guix.texi:4893
  9834. #, no-wrap
  9835. msgid "--list-formats"
  9836. msgstr ""
  9837. #. type: table
  9838. #: guix-git/doc/guix.texi:4895
  9839. msgid "Display available formats for @option{--format} option."
  9840. msgstr ""
  9841. #. type: table
  9842. #: guix-git/doc/guix.texi:4899
  9843. msgid "Display information about @var{profile}."
  9844. msgstr ""
  9845. #. type: section
  9846. #: guix-git/doc/guix.texi:4902
  9847. #, no-wrap
  9848. msgid "Invoking @command{guix archive}"
  9849. msgstr ""
  9850. #. type: command{#1}
  9851. #: guix-git/doc/guix.texi:4904
  9852. #, no-wrap
  9853. msgid "guix archive"
  9854. msgstr ""
  9855. #. type: cindex
  9856. #: guix-git/doc/guix.texi:4905
  9857. #, no-wrap
  9858. msgid "archive"
  9859. msgstr "归档"
  9860. #. type: Plain text
  9861. #: guix-git/doc/guix.texi:4911
  9862. 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."
  9863. msgstr ""
  9864. #. type: quotation
  9865. #: guix-git/doc/guix.texi:4915
  9866. msgid "If you're looking for a way to produce archives in a format suitable for tools other than Guix, @pxref{Invoking guix pack}."
  9867. msgstr ""
  9868. #. type: cindex
  9869. #: guix-git/doc/guix.texi:4917
  9870. #, no-wrap
  9871. msgid "exporting store items"
  9872. msgstr ""
  9873. #. type: Plain text
  9874. #: guix-git/doc/guix.texi:4919
  9875. msgid "To export store files as an archive to standard output, run:"
  9876. msgstr ""
  9877. #. type: example
  9878. #: guix-git/doc/guix.texi:4922
  9879. #, no-wrap
  9880. msgid "guix archive --export @var{options} @var{specifications}...\n"
  9881. msgstr ""
  9882. #. type: Plain text
  9883. #: guix-git/doc/guix.texi:4929
  9884. 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}:"
  9885. msgstr ""
  9886. #. type: example
  9887. #: guix-git/doc/guix.texi:4932
  9888. #, no-wrap
  9889. msgid "guix archive --export git:gui /gnu/store/...-emacs-24.3 > great.nar\n"
  9890. msgstr ""
  9891. #. type: Plain text
  9892. #: guix-git/doc/guix.texi:4937
  9893. 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})."
  9894. msgstr ""
  9895. #. type: Plain text
  9896. #: guix-git/doc/guix.texi:4940
  9897. msgid "To transfer the @code{emacs} package to a machine connected over SSH, one would run:"
  9898. msgstr ""
  9899. #. type: example
  9900. #: guix-git/doc/guix.texi:4943
  9901. #, no-wrap
  9902. msgid "guix archive --export -r emacs | ssh the-machine guix archive --import\n"
  9903. msgstr ""
  9904. #. type: Plain text
  9905. #: guix-git/doc/guix.texi:4948
  9906. msgid "Similarly, a complete user profile may be transferred from one machine to another like this:"
  9907. msgstr ""
  9908. #. type: example
  9909. #: guix-git/doc/guix.texi:4952
  9910. #, no-wrap
  9911. msgid ""
  9912. "guix archive --export -r $(readlink -f ~/.guix-profile) | \\\n"
  9913. " ssh the-machine guix archive --import\n"
  9914. msgstr ""
  9915. #. type: Plain text
  9916. #: guix-git/doc/guix.texi:4962
  9917. 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})."
  9918. msgstr ""
  9919. #. type: cindex
  9920. #: guix-git/doc/guix.texi:4963
  9921. #, no-wrap
  9922. msgid "nar, archive format"
  9923. msgstr ""
  9924. #. type: cindex
  9925. #: guix-git/doc/guix.texi:4964
  9926. #, no-wrap
  9927. msgid "normalized archive (nar)"
  9928. msgstr ""
  9929. #. type: cindex
  9930. #: guix-git/doc/guix.texi:4965
  9931. #, no-wrap
  9932. msgid "nar bundle, archive format"
  9933. msgstr ""
  9934. #. type: Plain text
  9935. #: guix-git/doc/guix.texi:4970
  9936. 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}."
  9937. msgstr ""
  9938. #. type: Plain text
  9939. #: guix-git/doc/guix.texi:4980
  9940. 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."
  9941. msgstr ""
  9942. #. type: Plain text
  9943. #: guix-git/doc/guix.texi:4984
  9944. 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."
  9945. msgstr ""
  9946. #. type: Plain text
  9947. #: guix-git/doc/guix.texi:4990
  9948. 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."
  9949. msgstr ""
  9950. #. type: Plain text
  9951. #: guix-git/doc/guix.texi:4992
  9952. msgid "The main options are:"
  9953. msgstr ""
  9954. #. type: item
  9955. #: guix-git/doc/guix.texi:4994
  9956. #, no-wrap
  9957. msgid "--export"
  9958. msgstr ""
  9959. #. type: table
  9960. #: guix-git/doc/guix.texi:4997
  9961. msgid "Export the specified store files or packages (see below). Write the resulting archive to the standard output."
  9962. msgstr ""
  9963. #. type: table
  9964. #: guix-git/doc/guix.texi:5000
  9965. msgid "Dependencies are @emph{not} included in the output, unless @option{--recursive} is passed."
  9966. msgstr ""
  9967. #. type: itemx
  9968. #: guix-git/doc/guix.texi:5001 guix-git/doc/guix.texi:12248
  9969. #: guix-git/doc/guix.texi:12375 guix-git/doc/guix.texi:12400
  9970. #: guix-git/doc/guix.texi:12432 guix-git/doc/guix.texi:12603
  9971. #: guix-git/doc/guix.texi:12644 guix-git/doc/guix.texi:12695
  9972. #: guix-git/doc/guix.texi:12720 guix-git/doc/guix.texi:12736
  9973. #: guix-git/doc/guix.texi:12784 guix-git/doc/guix.texi:12820
  9974. #, no-wrap
  9975. msgid "-r"
  9976. msgstr ""
  9977. #. type: item
  9978. #: guix-git/doc/guix.texi:5002 guix-git/doc/guix.texi:12247
  9979. #: guix-git/doc/guix.texi:12374 guix-git/doc/guix.texi:12399
  9980. #: guix-git/doc/guix.texi:12431 guix-git/doc/guix.texi:12602
  9981. #: guix-git/doc/guix.texi:12643 guix-git/doc/guix.texi:12694
  9982. #: guix-git/doc/guix.texi:12719 guix-git/doc/guix.texi:12735
  9983. #: guix-git/doc/guix.texi:12783 guix-git/doc/guix.texi:12819
  9984. #: guix-git/doc/guix.texi:12868
  9985. #, no-wrap
  9986. msgid "--recursive"
  9987. msgstr ""
  9988. #. type: table
  9989. #: guix-git/doc/guix.texi:5007
  9990. 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."
  9991. msgstr ""
  9992. #. type: item
  9993. #: guix-git/doc/guix.texi:5008
  9994. #, no-wrap
  9995. msgid "--import"
  9996. msgstr ""
  9997. #. type: table
  9998. #: guix-git/doc/guix.texi:5013
  9999. 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)."
  10000. msgstr ""
  10001. #. type: item
  10002. #: guix-git/doc/guix.texi:5014
  10003. #, no-wrap
  10004. msgid "--missing"
  10005. msgstr ""
  10006. #. type: table
  10007. #: guix-git/doc/guix.texi:5018
  10008. 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."
  10009. msgstr ""
  10010. #. type: item
  10011. #: guix-git/doc/guix.texi:5019
  10012. #, no-wrap
  10013. msgid "--generate-key[=@var{parameters}]"
  10014. msgstr ""
  10015. #. type: cindex
  10016. #: guix-git/doc/guix.texi:5020
  10017. #, no-wrap
  10018. msgid "signing, archives"
  10019. msgstr ""
  10020. #. type: table
  10021. #: guix-git/doc/guix.texi:5027
  10022. 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."
  10023. msgstr ""
  10024. #. type: table
  10025. #: guix-git/doc/guix.texi:5037
  10026. 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})."
  10027. msgstr ""
  10028. #. type: item
  10029. #: guix-git/doc/guix.texi:5038
  10030. #, no-wrap
  10031. msgid "--authorize"
  10032. msgstr ""
  10033. #. type: cindex
  10034. #: guix-git/doc/guix.texi:5039
  10035. #, no-wrap
  10036. msgid "authorizing, archives"
  10037. msgstr ""
  10038. #. type: table
  10039. #: guix-git/doc/guix.texi:5043
  10040. 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."
  10041. msgstr ""
  10042. #. type: table
  10043. #: guix-git/doc/guix.texi:5050
  10044. 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)}."
  10045. msgstr ""
  10046. #. type: item
  10047. #: guix-git/doc/guix.texi:5051
  10048. #, no-wrap
  10049. msgid "--extract=@var{directory}"
  10050. msgstr ""
  10051. #. type: itemx
  10052. #: guix-git/doc/guix.texi:5052
  10053. #, no-wrap
  10054. msgid "-x @var{directory}"
  10055. msgstr ""
  10056. #. type: table
  10057. #: guix-git/doc/guix.texi:5056
  10058. 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."
  10059. msgstr ""
  10060. #. type: table
  10061. #: guix-git/doc/guix.texi:5059
  10062. msgid "For example, the following command extracts the substitute for Emacs served by @code{@value{SUBSTITUTE-SERVER-1}} to @file{/tmp/emacs}:"
  10063. msgstr ""
  10064. #. type: example
  10065. #: guix-git/doc/guix.texi:5064
  10066. #, no-wrap
  10067. msgid ""
  10068. "$ wget -O - \\\n"
  10069. " https://@value{SUBSTITUTE-SERVER-1}/nar/gzip/@dots{}-emacs-24.5 \\\n"
  10070. " | gunzip | guix archive -x /tmp/emacs\n"
  10071. msgstr ""
  10072. #. type: table
  10073. #: guix-git/doc/guix.texi:5071
  10074. 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."
  10075. msgstr ""
  10076. #. type: table
  10077. #: guix-git/doc/guix.texi:5075
  10078. msgid "The primary purpose of this operation is to facilitate inspection of archive contents coming from possibly untrusted substitute servers (@pxref{Invoking guix challenge})."
  10079. msgstr ""
  10080. #. type: item
  10081. #: guix-git/doc/guix.texi:5076
  10082. #, no-wrap
  10083. msgid "--list"
  10084. msgstr ""
  10085. #. type: itemx
  10086. #: guix-git/doc/guix.texi:5077 guix-git/doc/guix.texi:12590
  10087. #: guix-git/doc/guix.texi:12637
  10088. #, no-wrap
  10089. msgid "-t"
  10090. msgstr ""
  10091. #. type: table
  10092. #: guix-git/doc/guix.texi:5081
  10093. 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:"
  10094. msgstr ""
  10095. #. type: example
  10096. #: guix-git/doc/guix.texi:5086
  10097. #, no-wrap
  10098. msgid ""
  10099. "$ wget -O - \\\n"
  10100. " https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-emacs-26.3 \\\n"
  10101. " | lzip -d | guix archive -t\n"
  10102. msgstr ""
  10103. #. type: cindex
  10104. #: guix-git/doc/guix.texi:5097
  10105. #, no-wrap
  10106. msgid "@command{guix pull}, configuration file"
  10107. msgstr ""
  10108. #. type: cindex
  10109. #: guix-git/doc/guix.texi:5098
  10110. #, no-wrap
  10111. msgid "configuration of @command{guix pull}"
  10112. msgstr ""
  10113. #. type: Plain text
  10114. #: guix-git/doc/guix.texi:5109
  10115. 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."
  10116. msgstr ""
  10117. #. type: cindex
  10118. #: guix-git/doc/guix.texi:5127
  10119. #, no-wrap
  10120. msgid "extending the package collection (channels)"
  10121. msgstr ""
  10122. #. type: cindex
  10123. #: guix-git/doc/guix.texi:5128
  10124. #, no-wrap
  10125. msgid "variant packages (channels)"
  10126. msgstr ""
  10127. #. type: Plain text
  10128. #: guix-git/doc/guix.texi:5132
  10129. 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):"
  10130. msgstr ""
  10131. #. type: vindex
  10132. #: guix-git/doc/guix.texi:5133
  10133. #, no-wrap
  10134. msgid "%default-channels"
  10135. msgstr ""
  10136. #. type: lisp
  10137. #: guix-git/doc/guix.texi:5140
  10138. #, no-wrap
  10139. msgid ""
  10140. ";; Add variant packages to those Guix provides.\n"
  10141. "(cons (channel\n"
  10142. " (name 'variant-packages)\n"
  10143. " (url \"https://example.org/variant-packages.git\"))\n"
  10144. " %default-channels)\n"
  10145. msgstr ""
  10146. #. type: Plain text
  10147. #: guix-git/doc/guix.texi:5150
  10148. 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:"
  10149. msgstr ""
  10150. #. type: example
  10151. #: guix-git/doc/guix.texi:5165
  10152. #, no-wrap
  10153. msgid ""
  10154. "$ guix pull --list-generations\n"
  10155. "@dots{}\n"
  10156. "Generation 19\tAug 27 2018 16:20:48\n"
  10157. " guix d894ab8\n"
  10158. " repository URL: https://git.savannah.gnu.org/git/guix.git\n"
  10159. " branch: master\n"
  10160. " commit: d894ab8e9bfabcefa6c49d9ba2e834dd5a73a300\n"
  10161. " variant-packages dd3df5e\n"
  10162. " repository URL: https://example.org/variant-packages.git\n"
  10163. " branch: master\n"
  10164. " commit: dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\n"
  10165. " 11 new packages: variant-gimp, variant-emacs-with-cool-features, @dots{}\n"
  10166. " 4 packages upgraded: emacs-racket-mode@@0.0.2-2.1b78827, @dots{}\n"
  10167. msgstr ""
  10168. #. type: Plain text
  10169. #: guix-git/doc/guix.texi:5173
  10170. 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."
  10171. msgstr ""
  10172. #. type: Plain text
  10173. #: guix-git/doc/guix.texi:5182
  10174. 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:"
  10175. msgstr ""
  10176. #. type: lisp
  10177. #: guix-git/doc/guix.texi:5189
  10178. #, no-wrap
  10179. msgid ""
  10180. ";; Tell 'guix pull' to use another repo.\n"
  10181. "(list (channel\n"
  10182. " (name 'guix)\n"
  10183. " (url \"https://example.org/another-guix.git\")\n"
  10184. " (branch \"super-hacks\")))\n"
  10185. msgstr ""
  10186. #. type: Plain text
  10187. #: guix-git/doc/guix.texi:5195
  10188. 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})."
  10189. msgstr ""
  10190. #. type: Plain text
  10191. #: guix-git/doc/guix.texi:5206
  10192. 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:"
  10193. msgstr ""
  10194. #. type: lisp
  10195. #: guix-git/doc/guix.texi:5217
  10196. #, no-wrap
  10197. msgid ""
  10198. ";; Deploy specific commits of my channels of interest.\n"
  10199. "(list (channel\n"
  10200. " (name 'guix)\n"
  10201. " (url \"https://git.savannah.gnu.org/git/guix.git\")\n"
  10202. " (commit \"6298c3ffd9654d3231a6f25390b056483e8f407c\"))\n"
  10203. " (channel\n"
  10204. " (name 'variant-packages)\n"
  10205. " (url \"https://example.org/variant-packages.git\")\n"
  10206. " (commit \"dd3df5e2c8818760a8fc0bd699e55d3b69fef2bb\")))\n"
  10207. msgstr ""
  10208. #. type: Plain text
  10209. #: guix-git/doc/guix.texi:5224
  10210. 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})."
  10211. msgstr ""
  10212. #. type: Plain text
  10213. #: guix-git/doc/guix.texi:5231
  10214. 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."
  10215. msgstr ""
  10216. #. type: Plain text
  10217. #: guix-git/doc/guix.texi:5236
  10218. 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."
  10219. msgstr ""
  10220. #. type: anchor{#1}
  10221. #: guix-git/doc/guix.texi:5241
  10222. msgid "channel-authentication"
  10223. msgstr ""
  10224. #. type: Plain text
  10225. #: guix-git/doc/guix.texi:5247
  10226. 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."
  10227. msgstr ""
  10228. #. type: Plain text
  10229. #: guix-git/doc/guix.texi:5252
  10230. 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:"
  10231. msgstr ""
  10232. #. type: lisp
  10233. #: guix-git/doc/guix.texi:5262
  10234. #, no-wrap
  10235. msgid ""
  10236. "(channel\n"
  10237. " (name 'some-channel)\n"
  10238. " (url \"https://example.org/some-channel.git\")\n"
  10239. " (introduction\n"
  10240. " (make-channel-introduction\n"
  10241. " \"6f0d8cc0d88abb59c324b2990bfee2876016bb86\"\n"
  10242. " (openpgp-fingerprint\n"
  10243. " \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10244. msgstr ""
  10245. #. type: Plain text
  10246. #: guix-git/doc/guix.texi:5268
  10247. 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{}}."
  10248. msgstr ""
  10249. #. type: Plain text
  10250. #: guix-git/doc/guix.texi:5274
  10251. 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."
  10252. msgstr ""
  10253. #. type: Plain text
  10254. #: guix-git/doc/guix.texi:5276
  10255. msgid "If you're curious about the authentication mechanics, read on!"
  10256. msgstr ""
  10257. #. type: Plain text
  10258. #: guix-git/doc/guix.texi:5287
  10259. 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}."
  10260. msgstr ""
  10261. #. type: lisp
  10262. #: guix-git/doc/guix.texi:5290
  10263. #, no-wrap
  10264. msgid ""
  10265. "(use-modules (guix ci))\n"
  10266. "\n"
  10267. msgstr ""
  10268. #. type: lisp
  10269. #: guix-git/doc/guix.texi:5294
  10270. #, no-wrap
  10271. msgid ""
  10272. "(list (channel-with-substitutes-available\n"
  10273. " %default-guix-channel\n"
  10274. " \"https://ci.guix.gnu.org\"))\n"
  10275. msgstr ""
  10276. #. type: Plain text
  10277. #: guix-git/doc/guix.texi:5301
  10278. 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."
  10279. msgstr ""
  10280. #. type: cindex
  10281. #: guix-git/doc/guix.texi:5305
  10282. #, no-wrap
  10283. msgid "personal packages (channels)"
  10284. msgstr ""
  10285. #. type: cindex
  10286. #: guix-git/doc/guix.texi:5306
  10287. #, no-wrap
  10288. msgid "channels, for personal packages"
  10289. msgstr ""
  10290. #. type: Plain text
  10291. #: guix-git/doc/guix.texi:5314
  10292. 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?"
  10293. msgstr ""
  10294. #. type: quotation
  10295. #: guix-git/doc/guix.texi:5322
  10296. 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:"
  10297. msgstr ""
  10298. #. type: itemize
  10299. #: guix-git/doc/guix.texi:5330
  10300. 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."
  10301. msgstr ""
  10302. #. type: itemize
  10303. #: guix-git/doc/guix.texi:5339
  10304. 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."
  10305. msgstr ""
  10306. #. type: itemize
  10307. #: guix-git/doc/guix.texi:5343
  10308. 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."
  10309. msgstr ""
  10310. #. type: quotation
  10311. #: guix-git/doc/guix.texi:5350
  10312. 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."
  10313. msgstr ""
  10314. #. type: Plain text
  10315. #: guix-git/doc/guix.texi:5362
  10316. 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})."
  10317. msgstr ""
  10318. #. type: Plain text
  10319. #: guix-git/doc/guix.texi:5367
  10320. 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."
  10321. msgstr ""
  10322. #. type: cindex
  10323. #: guix-git/doc/guix.texi:5372
  10324. #, no-wrap
  10325. msgid "subdirectory, channels"
  10326. msgstr ""
  10327. #. type: Plain text
  10328. #: guix-git/doc/guix.texi:5376
  10329. 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:"
  10330. msgstr ""
  10331. #. type: lisp
  10332. #: guix-git/doc/guix.texi:5381
  10333. #, no-wrap
  10334. msgid ""
  10335. "(channel\n"
  10336. " (version 0)\n"
  10337. " (directory \"guix\"))\n"
  10338. msgstr ""
  10339. #. type: cindex
  10340. #: guix-git/doc/guix.texi:5386
  10341. #, no-wrap
  10342. msgid "dependencies, channels"
  10343. msgstr ""
  10344. #. type: cindex
  10345. #: guix-git/doc/guix.texi:5387
  10346. #, no-wrap
  10347. msgid "meta-data, channels"
  10348. msgstr ""
  10349. #. type: Plain text
  10350. #: guix-git/doc/guix.texi:5392
  10351. 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."
  10352. msgstr ""
  10353. #. type: Plain text
  10354. #: guix-git/doc/guix.texi:5394
  10355. msgid "The meta-data file should contain a simple S-expression like this:"
  10356. msgstr ""
  10357. #. type: lisp
  10358. #: guix-git/doc/guix.texi:5402
  10359. #, no-wrap
  10360. msgid ""
  10361. "(channel\n"
  10362. " (version 0)\n"
  10363. " (dependencies\n"
  10364. " (channel\n"
  10365. " (name some-collection)\n"
  10366. " (url \"https://example.org/first-collection.git\")\n"
  10367. "\n"
  10368. msgstr ""
  10369. #. type: lisp
  10370. #: guix-git/doc/guix.texi:5414
  10371. #, no-wrap
  10372. msgid ""
  10373. " ;; The 'introduction' bit below is optional: you would\n"
  10374. " ;; provide it for dependencies that can be authenticated.\n"
  10375. " (introduction\n"
  10376. " (channel-introduction\n"
  10377. " (version 0)\n"
  10378. " (commit \"a8883b58dc82e167c96506cf05095f37c2c2c6cd\")\n"
  10379. " (signer \"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"))))\n"
  10380. " (channel\n"
  10381. " (name some-other-collection)\n"
  10382. " (url \"https://example.org/second-collection.git\")\n"
  10383. " (branch \"testing\"))))\n"
  10384. msgstr ""
  10385. #. type: Plain text
  10386. #: guix-git/doc/guix.texi:5420
  10387. 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."
  10388. msgstr ""
  10389. #. type: Plain text
  10390. #: guix-git/doc/guix.texi:5424
  10391. 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."
  10392. msgstr ""
  10393. #. type: cindex
  10394. #: guix-git/doc/guix.texi:5428
  10395. #, no-wrap
  10396. msgid "channel authorizations"
  10397. msgstr ""
  10398. #. type: anchor{#1}
  10399. #: guix-git/doc/guix.texi:5442
  10400. msgid "channel-authorizations"
  10401. msgstr ""
  10402. #. type: Plain text
  10403. #: guix-git/doc/guix.texi:5442
  10404. 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:"
  10405. msgstr ""
  10406. #. type: lisp
  10407. #: guix-git/doc/guix.texi:5445
  10408. #, no-wrap
  10409. msgid ""
  10410. ";; Example '.guix-authorizations' file.\n"
  10411. "\n"
  10412. msgstr ""
  10413. #. type: lisp
  10414. #: guix-git/doc/guix.texi:5448
  10415. #, no-wrap
  10416. msgid ""
  10417. "(authorizations\n"
  10418. " (version 0) ;current file format version\n"
  10419. "\n"
  10420. msgstr ""
  10421. #. type: lisp
  10422. #: guix-git/doc/guix.texi:5455
  10423. #, no-wrap
  10424. msgid ""
  10425. " ((\"AD17 A21E F8AE D8F1 CC02 DBD9 F8AE D8F1 765C 61E3\"\n"
  10426. " (name \"alice\"))\n"
  10427. " (\"2A39 3FFF 68F4 EF7A 3D29 12AF 68F4 EF7A 22FB B2D5\"\n"
  10428. " (name \"bob\"))\n"
  10429. " (\"CABB A931 C0FF EEC6 900D 0CFB 090B 1199 3D9A EBB5\"\n"
  10430. " (name \"charlie\"))))\n"
  10431. msgstr ""
  10432. #. type: Plain text
  10433. #: guix-git/doc/guix.texi:5459
  10434. msgid "Each fingerprint is followed by optional key/value pairs, as in the example above. Currently these key/value pairs are ignored."
  10435. msgstr ""
  10436. #. type: Plain text
  10437. #: guix-git/doc/guix.texi:5464
  10438. 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?"
  10439. msgstr ""
  10440. #. type: cindex
  10441. #: guix-git/doc/guix.texi:5465
  10442. #, fuzzy, no-wrap
  10443. msgid "channel introduction"
  10444. msgstr "介绍"
  10445. #. type: Plain text
  10446. #: guix-git/doc/guix.texi:5474
  10447. 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. Authentication fails if the target commit is neither a descendant nor an ancestor of the introductory commit."
  10448. msgstr ""
  10449. #. type: Plain text
  10450. #: guix-git/doc/guix.texi:5481
  10451. 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:"
  10452. msgstr ""
  10453. #. type: lisp
  10454. #: guix-git/doc/guix.texi:5486
  10455. #, no-wrap
  10456. msgid ""
  10457. "(channel\n"
  10458. " (version 0)\n"
  10459. " (keyring-reference \"my-keyring-branch\"))\n"
  10460. msgstr ""
  10461. #. type: Plain text
  10462. #: guix-git/doc/guix.texi:5490
  10463. msgid "To summarize, as the author of a channel, there are three things you have to do to allow users to authenticate your code:"
  10464. msgstr ""
  10465. #. type: enumerate
  10466. #: guix-git/doc/guix.texi:5496
  10467. 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})."
  10468. msgstr ""
  10469. #. type: enumerate
  10470. #: guix-git/doc/guix.texi:5501
  10471. 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.)"
  10472. msgstr ""
  10473. #. type: enumerate
  10474. #: guix-git/doc/guix.texi:5507
  10475. 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."
  10476. msgstr ""
  10477. #. type: Plain text
  10478. #: guix-git/doc/guix.texi:5512
  10479. 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:"
  10480. msgstr ""
  10481. #. type: example
  10482. #: guix-git/doc/guix.texi:5515
  10483. #, no-wrap
  10484. msgid "guix git authenticate @var{commit} @var{signer}\n"
  10485. msgstr ""
  10486. #. type: Plain text
  10487. #: guix-git/doc/guix.texi:5520
  10488. msgid "where @var{commit} and @var{signer} are your channel introduction. @xref{Invoking guix git authenticate}, for details."
  10489. msgstr ""
  10490. #. type: Plain text
  10491. #: guix-git/doc/guix.texi:5527
  10492. 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."
  10493. msgstr ""
  10494. #. type: cindex
  10495. #: guix-git/doc/guix.texi:5531
  10496. #, no-wrap
  10497. msgid "primary URL, channels"
  10498. msgstr ""
  10499. #. type: Plain text
  10500. #: guix-git/doc/guix.texi:5534
  10501. msgid "Channel authors can indicate the primary URL of their channel's Git repository in the @file{.guix-channel} file, like so:"
  10502. msgstr ""
  10503. #. type: lisp
  10504. #: guix-git/doc/guix.texi:5539
  10505. #, no-wrap
  10506. msgid ""
  10507. "(channel\n"
  10508. " (version 0)\n"
  10509. " (url \"https://example.org/guix.git\"))\n"
  10510. msgstr ""
  10511. #. type: Plain text
  10512. #: guix-git/doc/guix.texi:5546
  10513. 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."
  10514. msgstr ""
  10515. #. type: Plain text
  10516. #: guix-git/doc/guix.texi:5550
  10517. 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."
  10518. msgstr ""
  10519. #. type: cindex
  10520. #: guix-git/doc/guix.texi:5554
  10521. #, no-wrap
  10522. msgid "news, for channels"
  10523. msgstr ""
  10524. #. type: Plain text
  10525. #: guix-git/doc/guix.texi:5558
  10526. 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."
  10527. msgstr ""
  10528. #. type: Plain text
  10529. #: guix-git/doc/guix.texi:5563
  10530. 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."
  10531. msgstr ""
  10532. #. type: Plain text
  10533. #: guix-git/doc/guix.texi:5566
  10534. msgid "To do that, channel authors must first declare the name of the news file in their @file{.guix-channel} file:"
  10535. msgstr ""
  10536. #. type: lisp
  10537. #: guix-git/doc/guix.texi:5571
  10538. #, no-wrap
  10539. msgid ""
  10540. "(channel\n"
  10541. " (version 0)\n"
  10542. " (news-file \"etc/news.txt\"))\n"
  10543. msgstr ""
  10544. #. type: Plain text
  10545. #: guix-git/doc/guix.texi:5575
  10546. msgid "The news file itself, @file{etc/news.txt} in this example, must look something like this:"
  10547. msgstr ""
  10548. #. type: lisp
  10549. #: guix-git/doc/guix.texi:5588
  10550. #, no-wrap
  10551. msgid ""
  10552. "(channel-news\n"
  10553. " (version 0)\n"
  10554. " (entry (tag \"the-bug-fix\")\n"
  10555. " (title (en \"Fixed terrible bug\")\n"
  10556. " (fr \"Oh la la\"))\n"
  10557. " (body (en \"@@emph@{Good news@}! It's fixed!\")\n"
  10558. " (eo \"Certe ĝi pli bone funkcias nun!\")))\n"
  10559. " (entry (commit \"bdcabe815cd28144a2d2b4bc3c5057b051fa9906\")\n"
  10560. " (title (en \"Added a great package\")\n"
  10561. " (ca \"Què vol dir guix?\"))\n"
  10562. " (body (en \"Don't miss the @@code@{hello@} package!\"))))\n"
  10563. msgstr ""
  10564. #. type: Plain text
  10565. #: guix-git/doc/guix.texi:5595
  10566. 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."
  10567. msgstr ""
  10568. #. type: Plain text
  10569. #: guix-git/doc/guix.texi:5600
  10570. 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."
  10571. msgstr ""
  10572. #. type: Plain text
  10573. #: guix-git/doc/guix.texi:5606
  10574. 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."
  10575. msgstr ""
  10576. #. type: Plain text
  10577. #: guix-git/doc/guix.texi:5612
  10578. 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:"
  10579. msgstr ""
  10580. #. type: example
  10581. #: guix-git/doc/guix.texi:5615
  10582. #, no-wrap
  10583. msgid "xgettext -o news.po -l scheme -ken etc/news.txt\n"
  10584. msgstr ""
  10585. #. type: Plain text
  10586. #: guix-git/doc/guix.texi:5619
  10587. 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."
  10588. msgstr ""
  10589. #. type: cindex
  10590. #: guix-git/doc/guix.texi:5624
  10591. #, no-wrap
  10592. msgid "software development"
  10593. msgstr ""
  10594. #. type: Plain text
  10595. #: guix-git/doc/guix.texi:5628
  10596. 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."
  10597. msgstr ""
  10598. #. type: Plain text
  10599. #: guix-git/doc/guix.texi:5634
  10600. msgid "The @command{guix shell} command provides a convenient way to set up one-off software environments, be it for development purposes or to run a command without installing it in your profile. The @command{guix pack} command allows you to create @dfn{application bundles} that can be easily distributed to users who do not run Guix."
  10601. msgstr ""
  10602. #. type: section
  10603. #: guix-git/doc/guix.texi:5644
  10604. #, fuzzy, no-wrap
  10605. #| msgid "Invoking @command{guix build}"
  10606. msgid "Invoking @command{guix shell}"
  10607. msgstr "调用@command{guix build}"
  10608. #. type: cindex
  10609. #: guix-git/doc/guix.texi:5646
  10610. #, no-wrap
  10611. msgid "reproducible build environments"
  10612. msgstr ""
  10613. #. type: cindex
  10614. #: guix-git/doc/guix.texi:5647
  10615. #, no-wrap
  10616. msgid "development environments"
  10617. msgstr ""
  10618. #. type: command{#1}
  10619. #: guix-git/doc/guix.texi:5648
  10620. #, no-wrap
  10621. msgid "guix environment"
  10622. msgstr ""
  10623. #. type: cindex
  10624. #: guix-git/doc/guix.texi:5649
  10625. #, no-wrap
  10626. msgid "environment, package build environment"
  10627. msgstr ""
  10628. #. type: Plain text
  10629. #: guix-git/doc/guix.texi:5654
  10630. msgid "The purpose of @command{guix shell} is to make it easy to create one-off software environments, without changing one's profile. It is typically used to create development environments; it is also a convenient way to run applications without ``polluting'' your profile."
  10631. msgstr ""
  10632. #. type: quotation
  10633. #: guix-git/doc/guix.texi:5660
  10634. msgid "The @command{guix shell} command was recently introduced to supersede @command{guix environment} (@pxref{Invoking guix environment}). If you are familiar with @command{guix environment}, you will notice that it is similar but also---we hope!---more convenient."
  10635. msgstr ""
  10636. #. type: example
  10637. #: guix-git/doc/guix.texi:5666
  10638. #, no-wrap
  10639. msgid "guix shell [@var{options}] [@var{package}@dots{}]\n"
  10640. msgstr ""
  10641. #. type: Plain text
  10642. #: guix-git/doc/guix.texi:5671
  10643. msgid "The following example creates an environment containing Python and NumPy, building or downloading any missing package, and runs the @command{python3} command in that environment:"
  10644. msgstr ""
  10645. #. type: example
  10646. #: guix-git/doc/guix.texi:5674
  10647. #, no-wrap
  10648. msgid "guix shell python python-numpy -- python3\n"
  10649. msgstr ""
  10650. #. type: Plain text
  10651. #: guix-git/doc/guix.texi:5679
  10652. msgid "Development environments can be created as in the example below, which spawns an interactive shell containing all the dependencies and environment variables needed to work on Inkscape:"
  10653. msgstr ""
  10654. #. type: example
  10655. #: guix-git/doc/guix.texi:5682
  10656. #, no-wrap
  10657. msgid "guix shell --development inkscape\n"
  10658. msgstr ""
  10659. #. type: Plain text
  10660. #: guix-git/doc/guix.texi:5688
  10661. msgid "Exiting the shell places the user back in the original environment before @command{guix shell} was invoked. The next garbage collection (@pxref{Invoking guix gc}) may clean up packages that were installed in the environment and that are no longer used outside of it."
  10662. msgstr ""
  10663. #. type: Plain text
  10664. #: guix-git/doc/guix.texi:5695
  10665. msgid "As an added convenience, when running from a directory that contains a @file{manifest.scm} or a @file{guix.scm} file (in this order), possibly in a parent directory, @command{guix shell} automatically loads the file---provided the directory is listed in @file{~/.config/guix/shell-authorized-directories}, and only for interactive use:"
  10666. msgstr ""
  10667. #. type: example
  10668. #: guix-git/doc/guix.texi:5698
  10669. #, fuzzy, no-wrap
  10670. #| msgid "guix pull\n"
  10671. msgid "guix shell\n"
  10672. msgstr "guix pull\n"
  10673. #. type: Plain text
  10674. #: guix-git/doc/guix.texi:5702
  10675. msgid "This provides an easy way to define, share, and enter development environments."
  10676. msgstr ""
  10677. #. type: Plain text
  10678. #: guix-git/doc/guix.texi:5713
  10679. msgid "By default, the shell session or command runs in an @emph{augmented} environment, where the new packages are added to search path environment variables such as @code{PATH}. You can, instead, choose to create an @emph{isolated} environment containing nothing but the packages you asked for. Passing the @option{--pure} option clears environment variable definitions found in the parent environment@footnote{Be sure to use the @option{--check} option the first time you use @command{guix shell} interactively to make sure the shell does not undo the effect of @option{--pure}.}; passing @option{--container} goes one step further by spawning a @dfn{container} isolated from the rest of the system:"
  10680. msgstr ""
  10681. #. type: example
  10682. #: guix-git/doc/guix.texi:5716
  10683. #, no-wrap
  10684. msgid "guix shell --container emacs gcc-toolchain\n"
  10685. msgstr ""
  10686. #. type: Plain text
  10687. #: guix-git/doc/guix.texi:5724
  10688. msgid "The command above spawns an interactive shell in a container where nothing but @code{emacs}, @code{gcc-toolchain}, and their dependencies is available. The container lacks network access and shares no files other than the current working directory with the surrounding environment. This is useful to prevent access to system-wide resources such as @file{/usr/bin} on foreign distros."
  10689. msgstr ""
  10690. #. type: Plain text
  10691. #: guix-git/doc/guix.texi:5731
  10692. msgid "This @option{--container} option can also prove useful if you wish to run a security-sensitive application, such as a web browser, in an isolated environment. For example, the command below launches Ungoogled-Chromium in an isolated environment, this time sharing network access with the host and preserving its @code{DISPLAY} environment variable, but without even sharing the current directory:"
  10693. msgstr ""
  10694. #. type: example
  10695. #: guix-git/doc/guix.texi:5735
  10696. #, no-wrap
  10697. msgid ""
  10698. "guix shell --container --network --no-cwd ungoogled-chromium \\\n"
  10699. " --preserve='^DISPLAY$' -- chromium\n"
  10700. msgstr ""
  10701. #. type: vindex
  10702. #: guix-git/doc/guix.texi:5737 guix-git/doc/guix.texi:6067
  10703. #, no-wrap
  10704. msgid "GUIX_ENVIRONMENT"
  10705. msgstr ""
  10706. #. type: Plain text
  10707. #: guix-git/doc/guix.texi:5743
  10708. msgid "@command{guix shell} 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}):"
  10709. msgstr ""
  10710. #. type: example
  10711. #: guix-git/doc/guix.texi:5749 guix-git/doc/guix.texi:6079
  10712. #, no-wrap
  10713. msgid ""
  10714. "if [ -n \"$GUIX_ENVIRONMENT\" ]\n"
  10715. "then\n"
  10716. " export PS1=\"\\u@@\\h \\w [dev]\\$ \"\n"
  10717. "fi\n"
  10718. msgstr ""
  10719. #. type: Plain text
  10720. #: guix-git/doc/guix.texi:5753 guix-git/doc/guix.texi:6083
  10721. msgid "...@: or to browse the profile:"
  10722. msgstr ""
  10723. #. type: example
  10724. #: guix-git/doc/guix.texi:5756 guix-git/doc/guix.texi:6086
  10725. #, no-wrap
  10726. msgid "$ ls \"$GUIX_ENVIRONMENT/bin\"\n"
  10727. msgstr ""
  10728. #. type: Plain text
  10729. #: guix-git/doc/guix.texi:5759 guix-git/doc/guix.texi:6162
  10730. msgid "The available options are summarized below."
  10731. msgstr ""
  10732. #. type: item
  10733. #: guix-git/doc/guix.texi:5761 guix-git/doc/guix.texi:6164
  10734. #: guix-git/doc/guix.texi:11964
  10735. #, no-wrap
  10736. msgid "--check"
  10737. msgstr ""
  10738. #. type: table
  10739. #: guix-git/doc/guix.texi:5766
  10740. msgid "Set up the environment and check whether the shell would clobber environment variables. It's a good idea to use this option the first time you run @command{guix shell} for an interactive session to make sure your setup is correct."
  10741. msgstr ""
  10742. #. type: table
  10743. #: guix-git/doc/guix.texi:5770
  10744. msgid "For example, if the shell modifies the @env{PATH} environment variable, report it since you would get a different environment than what you asked for."
  10745. msgstr ""
  10746. #. type: table
  10747. #: guix-git/doc/guix.texi:5778
  10748. msgid "Such problems usually indicate that the shell startup files are unexpectedly modifying those environment variables. For example, if you are using Bash, make sure that environment variables are set or modified in @file{~/.bash_profile} and @emph{not} in @file{~/.bashrc}---the former is sourced only by log-in shells. @xref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}, for details on Bash start-up files."
  10749. msgstr ""
  10750. #. type: item
  10751. #: guix-git/doc/guix.texi:5779
  10752. #, fuzzy, no-wrap
  10753. #| msgid "Development"
  10754. msgid "--development"
  10755. msgstr "开发"
  10756. #. type: table
  10757. #: guix-git/doc/guix.texi:5786
  10758. msgid "Cause @command{guix shell} to include in the environment the dependencies of the following package rather than the package itself. This can be combined with other packages. For instance, the command below starts an interactive shell containing the build-time dependencies of GNU@tie{}Guile, plus Autoconf, Automake, and Libtool:"
  10759. msgstr ""
  10760. #. type: example
  10761. #: guix-git/doc/guix.texi:5789
  10762. #, no-wrap
  10763. msgid "guix shell -D guile autoconf automake libtool\n"
  10764. msgstr ""
  10765. #. type: item
  10766. #: guix-git/doc/guix.texi:5791 guix-git/doc/guix.texi:6185
  10767. #: guix-git/doc/guix.texi:6672 guix-git/doc/guix.texi:11839
  10768. #: guix-git/doc/guix.texi:12913 guix-git/doc/guix.texi:13305
  10769. #: guix-git/doc/guix.texi:13903 guix-git/doc/guix.texi:35801
  10770. #: guix-git/doc/guix.texi:38386
  10771. #, no-wrap
  10772. msgid "--expression=@var{expr}"
  10773. msgstr ""
  10774. #. type: itemx
  10775. #: guix-git/doc/guix.texi:5792 guix-git/doc/guix.texi:6186
  10776. #: guix-git/doc/guix.texi:6673 guix-git/doc/guix.texi:11840
  10777. #: guix-git/doc/guix.texi:12914 guix-git/doc/guix.texi:13306
  10778. #: guix-git/doc/guix.texi:13904 guix-git/doc/guix.texi:35802
  10779. #: guix-git/doc/guix.texi:38387
  10780. #, no-wrap
  10781. msgid "-e @var{expr}"
  10782. msgstr ""
  10783. #. type: table
  10784. #: guix-git/doc/guix.texi:5795 guix-git/doc/guix.texi:6189
  10785. msgid "Create an environment for the package or list of packages that @var{expr} evaluates to."
  10786. msgstr ""
  10787. #. type: table
  10788. #: guix-git/doc/guix.texi:5797 guix-git/doc/guix.texi:6191
  10789. #: guix-git/doc/guix.texi:13310
  10790. msgid "For example, running:"
  10791. msgstr ""
  10792. #. type: example
  10793. #: guix-git/doc/guix.texi:5800
  10794. #, no-wrap
  10795. msgid "guix shell -D -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  10796. msgstr ""
  10797. #. type: table
  10798. #: guix-git/doc/guix.texi:5804 guix-git/doc/guix.texi:6198
  10799. msgid "starts a shell with the environment for this specific variant of the PETSc package."
  10800. msgstr ""
  10801. #. type: table
  10802. #: guix-git/doc/guix.texi:5806 guix-git/doc/guix.texi:6200
  10803. msgid "Running:"
  10804. msgstr ""
  10805. #. type: example
  10806. #: guix-git/doc/guix.texi:5809
  10807. #, no-wrap
  10808. msgid "guix shell -e '(@@ (gnu) %base-packages)'\n"
  10809. msgstr ""
  10810. #. type: table
  10811. #: guix-git/doc/guix.texi:5812 guix-git/doc/guix.texi:6206
  10812. msgid "starts a shell with all the base system packages available."
  10813. msgstr ""
  10814. #. type: table
  10815. #: guix-git/doc/guix.texi:5815 guix-git/doc/guix.texi:6209
  10816. msgid "The above commands only use the default output of the given packages. To select other outputs, two element tuples can be specified:"
  10817. msgstr ""
  10818. #. type: example
  10819. #: guix-git/doc/guix.texi:5818
  10820. #, no-wrap
  10821. msgid "guix shell -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  10822. msgstr ""
  10823. #. type: item
  10824. #: guix-git/doc/guix.texi:5820 guix-git/doc/guix.texi:11813
  10825. #, no-wrap
  10826. msgid "--file=@var{file}"
  10827. msgstr ""
  10828. #. type: table
  10829. #: guix-git/doc/guix.texi:5824
  10830. msgid "Create an environment containing the package or list of packages that the code within @var{file} evaluates to."
  10831. msgstr ""
  10832. #. type: lisp
  10833. #: guix-git/doc/guix.texi:5830 guix-git/doc/guix.texi:6224
  10834. #, no-wrap
  10835. msgid "@verbatiminclude environment-gdb.scm\n"
  10836. msgstr ""
  10837. #. type: table
  10838. #: guix-git/doc/guix.texi:5834
  10839. msgid "With the file above, you can enter a development environment for GDB by running:"
  10840. msgstr ""
  10841. #. type: example
  10842. #: guix-git/doc/guix.texi:5837
  10843. #, no-wrap
  10844. msgid "guix shell -D -f gdb-devel.scm\n"
  10845. msgstr ""
  10846. #. type: table
  10847. #: guix-git/doc/guix.texi:5844 guix-git/doc/guix.texi:6231
  10848. 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."
  10849. msgstr ""
  10850. #. type: table
  10851. #: guix-git/doc/guix.texi:5848 guix-git/doc/guix.texi:6235
  10852. msgid "This is similar to the same-named option in @command{guix package} (@pxref{profile-manifest, @option{--manifest}}) and uses the same manifest files."
  10853. msgstr ""
  10854. #. type: table
  10855. #: guix-git/doc/guix.texi:5854 guix-git/doc/guix.texi:6267
  10856. msgid "Create an environment containing the packages installed in @var{profile}. Use @command{guix package} (@pxref{Invoking guix package}) to create and manage profiles."
  10857. msgstr ""
  10858. #. type: item
  10859. #: guix-git/doc/guix.texi:5855 guix-git/doc/guix.texi:6268
  10860. #, no-wrap
  10861. msgid "--pure"
  10862. msgstr ""
  10863. #. type: table
  10864. #: guix-git/doc/guix.texi:5859 guix-git/doc/guix.texi:6272
  10865. 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."
  10866. msgstr ""
  10867. #. type: item
  10868. #: guix-git/doc/guix.texi:5860 guix-git/doc/guix.texi:6273
  10869. #, no-wrap
  10870. msgid "--preserve=@var{regexp}"
  10871. msgstr ""
  10872. #. type: itemx
  10873. #: guix-git/doc/guix.texi:5861 guix-git/doc/guix.texi:6274
  10874. #, no-wrap
  10875. msgid "-E @var{regexp}"
  10876. msgstr ""
  10877. #. type: table
  10878. #: guix-git/doc/guix.texi:5866 guix-git/doc/guix.texi:6279
  10879. 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."
  10880. msgstr ""
  10881. #. type: example
  10882. #: guix-git/doc/guix.texi:5870
  10883. #, no-wrap
  10884. msgid ""
  10885. "guix shell --pure --preserve=^SLURM openmpi @dots{} \\\n"
  10886. " -- mpirun @dots{}\n"
  10887. msgstr ""
  10888. #. type: table
  10889. #: guix-git/doc/guix.texi:5876 guix-git/doc/guix.texi:6289
  10890. 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.)."
  10891. msgstr ""
  10892. #. type: item
  10893. #: guix-git/doc/guix.texi:5877 guix-git/doc/guix.texi:6290
  10894. #, no-wrap
  10895. msgid "--search-paths"
  10896. msgstr ""
  10897. #. type: table
  10898. #: guix-git/doc/guix.texi:5880 guix-git/doc/guix.texi:6293
  10899. msgid "Display the environment variable definitions that make up the environment."
  10900. msgstr ""
  10901. #. type: table
  10902. #: guix-git/doc/guix.texi:5884 guix-git/doc/guix.texi:6297
  10903. msgid "Attempt to build for @var{system}---e.g., @code{i686-linux}."
  10904. msgstr ""
  10905. #. type: item
  10906. #: guix-git/doc/guix.texi:5885 guix-git/doc/guix.texi:6298
  10907. #, no-wrap
  10908. msgid "--container"
  10909. msgstr ""
  10910. #. type: itemx
  10911. #: guix-git/doc/guix.texi:5886 guix-git/doc/guix.texi:6299
  10912. #, no-wrap
  10913. msgid "-C"
  10914. msgstr ""
  10915. #. type: item
  10916. #: guix-git/doc/guix.texi:5887 guix-git/doc/guix.texi:6128
  10917. #: guix-git/doc/guix.texi:6300 guix-git/doc/guix.texi:14459
  10918. #: guix-git/doc/guix.texi:35769
  10919. #, no-wrap
  10920. msgid "container"
  10921. msgstr "容器"
  10922. #. type: table
  10923. #: guix-git/doc/guix.texi:5893 guix-git/doc/guix.texi:6306
  10924. 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."
  10925. msgstr ""
  10926. #. type: table
  10927. #: guix-git/doc/guix.texi:5897 guix-git/doc/guix.texi:6310
  10928. 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)."
  10929. msgstr ""
  10930. #. type: item
  10931. #: guix-git/doc/guix.texi:5898 guix-git/doc/guix.texi:6311
  10932. #: guix-git/doc/guix.texi:35861
  10933. #, no-wrap
  10934. msgid "--network"
  10935. msgstr ""
  10936. #. type: table
  10937. #: guix-git/doc/guix.texi:5903 guix-git/doc/guix.texi:6316
  10938. msgid "For containers, share the network namespace with the host system. Containers created without this flag only have access to the loopback device."
  10939. msgstr ""
  10940. #. type: item
  10941. #: guix-git/doc/guix.texi:5904 guix-git/doc/guix.texi:6317
  10942. #, no-wrap
  10943. msgid "--link-profile"
  10944. msgstr ""
  10945. #. type: itemx
  10946. #: guix-git/doc/guix.texi:5905 guix-git/doc/guix.texi:6318
  10947. #, no-wrap
  10948. msgid "-P"
  10949. msgstr ""
  10950. #. type: table
  10951. #: guix-git/doc/guix.texi:5913
  10952. 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 shell} was invoked in the user's home directory."
  10953. msgstr ""
  10954. #. type: table
  10955. #: guix-git/doc/guix.texi:5919 guix-git/doc/guix.texi:6332
  10956. 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."
  10957. msgstr ""
  10958. #. type: item
  10959. #: guix-git/doc/guix.texi:5920 guix-git/doc/guix.texi:6333
  10960. #: guix-git/doc/guix.texi:14036
  10961. #, no-wrap
  10962. msgid "--user=@var{user}"
  10963. msgstr ""
  10964. #. type: itemx
  10965. #: guix-git/doc/guix.texi:5921 guix-git/doc/guix.texi:6334
  10966. #: guix-git/doc/guix.texi:14037
  10967. #, no-wrap
  10968. msgid "-u @var{user}"
  10969. msgstr ""
  10970. #. type: table
  10971. #: guix-git/doc/guix.texi:5928 guix-git/doc/guix.texi:6341
  10972. 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."
  10973. msgstr ""
  10974. #. type: table
  10975. #: guix-git/doc/guix.texi:5933 guix-git/doc/guix.texi:6346
  10976. 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."
  10977. msgstr ""
  10978. #. type: example
  10979. #: guix-git/doc/guix.texi:5940
  10980. #, no-wrap
  10981. msgid ""
  10982. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  10983. "cd $HOME/wd\n"
  10984. "guix shell --container --user=foo \\\n"
  10985. " --expose=$HOME/test \\\n"
  10986. " --expose=/tmp/target=$HOME/target\n"
  10987. msgstr ""
  10988. #. type: table
  10989. #: guix-git/doc/guix.texi:5945 guix-git/doc/guix.texi:6358
  10990. 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."
  10991. msgstr ""
  10992. #. type: item
  10993. #: guix-git/doc/guix.texi:5946 guix-git/doc/guix.texi:6359
  10994. #, no-wrap
  10995. msgid "--no-cwd"
  10996. msgstr ""
  10997. #. type: table
  10998. #: guix-git/doc/guix.texi:5953 guix-git/doc/guix.texi:6366
  10999. 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}."
  11000. msgstr ""
  11001. #. type: item
  11002. #: guix-git/doc/guix.texi:5954 guix-git/doc/guix.texi:6367
  11003. #, no-wrap
  11004. msgid "--expose=@var{source}[=@var{target}]"
  11005. msgstr ""
  11006. #. type: itemx
  11007. #: guix-git/doc/guix.texi:5955 guix-git/doc/guix.texi:6368
  11008. #, no-wrap
  11009. msgid "--share=@var{source}[=@var{target}]"
  11010. msgstr ""
  11011. #. type: table
  11012. #: guix-git/doc/guix.texi:5961 guix-git/doc/guix.texi:6374
  11013. 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."
  11014. msgstr ""
  11015. #. type: table
  11016. #: guix-git/doc/guix.texi:5965 guix-git/doc/guix.texi:6378
  11017. 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:"
  11018. msgstr ""
  11019. #. type: example
  11020. #: guix-git/doc/guix.texi:5968
  11021. #, no-wrap
  11022. msgid "guix shell --container --expose=$HOME=/exchange guile -- guile\n"
  11023. msgstr ""
  11024. #. type: item
  11025. #: guix-git/doc/guix.texi:5970
  11026. #, fuzzy, no-wrap
  11027. #| msgid "--no-build-hook"
  11028. msgid "--rebuild-cache"
  11029. msgstr "--no-build-hook"
  11030. #. type: cindex
  11031. #: guix-git/doc/guix.texi:5971
  11032. #, fuzzy, no-wrap
  11033. msgid "caching, of profiles"
  11034. msgstr "代码格式化"
  11035. #. type: cindex
  11036. #: guix-git/doc/guix.texi:5972
  11037. #, fuzzy, no-wrap
  11038. #| msgid "Invoking @command{guix build}"
  11039. msgid "caching, in @command{guix shell}"
  11040. msgstr "调用@command{guix build}"
  11041. #. type: table
  11042. #: guix-git/doc/guix.texi:5978
  11043. msgid "In most cases, @command{guix shell} caches the environment so that subsequent uses are instantaneous. Least-recently used cache entries are periodically removed. The cache is also invalidated, when using @option{--file} or @option{--manifest}, anytime the corresponding file is modified."
  11044. msgstr ""
  11045. #. type: table
  11046. #: guix-git/doc/guix.texi:5984
  11047. msgid "The @option{--rebuild-cache} forces the cached environment to be refreshed. This is useful when using @option{--file} or @option{--manifest} and the @command{guix.scm} or @command{manifest.scm} file has external dependencies, or if its behavior depends, say, on environment variables."
  11048. msgstr ""
  11049. #. type: item
  11050. #: guix-git/doc/guix.texi:5985 guix-git/doc/guix.texi:6169
  11051. #: guix-git/doc/guix.texi:6740 guix-git/doc/guix.texi:11993
  11052. #: guix-git/doc/guix.texi:35866
  11053. #, no-wrap
  11054. msgid "--root=@var{file}"
  11055. msgstr ""
  11056. #. type: itemx
  11057. #: guix-git/doc/guix.texi:5986 guix-git/doc/guix.texi:6170
  11058. #: guix-git/doc/guix.texi:6741 guix-git/doc/guix.texi:11994
  11059. #: guix-git/doc/guix.texi:35867
  11060. #, no-wrap
  11061. msgid "-r @var{file}"
  11062. msgstr ""
  11063. #. type: cindex
  11064. #: guix-git/doc/guix.texi:5987 guix-git/doc/guix.texi:6171
  11065. #, no-wrap
  11066. msgid "persistent environment"
  11067. msgstr ""
  11068. #. type: cindex
  11069. #: guix-git/doc/guix.texi:5988 guix-git/doc/guix.texi:6172
  11070. #, no-wrap
  11071. msgid "garbage collector root, for environments"
  11072. msgstr ""
  11073. #. type: table
  11074. #: guix-git/doc/guix.texi:5991 guix-git/doc/guix.texi:6175
  11075. msgid "Make @var{file} a symlink to the profile for this environment, and register it as a garbage collector root."
  11076. msgstr ""
  11077. #. type: table
  11078. #: guix-git/doc/guix.texi:5994 guix-git/doc/guix.texi:6178
  11079. msgid "This is useful if you want to protect your environment from garbage collection, to make it ``persistent''."
  11080. msgstr ""
  11081. #. type: table
  11082. #: guix-git/doc/guix.texi:6000
  11083. msgid "When this option is omitted, @command{guix shell} caches profiles so that subsequent uses of the same environment are instantaneous---this is comparable to using @option{--root} except that @command{guix shell} takes care of periodically removing the least-recently used garbage collector roots."
  11084. msgstr ""
  11085. #. type: table
  11086. #: guix-git/doc/guix.texi:6007
  11087. msgid "In some cases, @command{guix shell} does not cache profiles---e.g., if transformation options such as @option{--with-latest} are used. In those cases, the environment is protected from garbage collection only for the duration of the @command{guix shell} session. This means that next time you recreate the same environment, you could have to rebuild or re-download packages."
  11088. msgstr ""
  11089. #. type: table
  11090. #: guix-git/doc/guix.texi:6009
  11091. #, fuzzy
  11092. msgid "@xref{Invoking guix gc}, for more on GC roots."
  11093. msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  11094. #. type: Plain text
  11095. #: guix-git/doc/guix.texi:6014
  11096. msgid "@command{guix shell} 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})."
  11097. msgstr ""
  11098. #. type: section
  11099. #: guix-git/doc/guix.texi:6016
  11100. #, no-wrap
  11101. msgid "Invoking @command{guix environment}"
  11102. msgstr ""
  11103. #. type: Plain text
  11104. #: guix-git/doc/guix.texi:6020
  11105. msgid "The purpose of @command{guix environment} is to assist in creating development environments."
  11106. msgstr ""
  11107. #. type: quotation
  11108. #: guix-git/doc/guix.texi:6021
  11109. #, no-wrap
  11110. msgid "Deprecation warning"
  11111. msgstr ""
  11112. #. type: quotation
  11113. #: guix-git/doc/guix.texi:6025
  11114. msgid "The @command{guix environment} command is deprecated in favor of @command{guix shell}, which performs similar functions but is more convenient to use. @xref{Invoking guix shell}."
  11115. msgstr ""
  11116. #. type: quotation
  11117. #: guix-git/doc/guix.texi:6030
  11118. msgid "Being deprecated, @command{guix environment} is slated for eventual removal, but the Guix project is committed to keeping it until May 1st, 2023. Please get in touch with us at @email{guix-devel@@gnu.org} if you would like to discuss it."
  11119. msgstr ""
  11120. #. type: example
  11121. #: guix-git/doc/guix.texi:6036
  11122. #, no-wrap
  11123. msgid "guix environment @var{options} @var{package}@dots{}\n"
  11124. msgstr ""
  11125. #. type: Plain text
  11126. #: guix-git/doc/guix.texi:6040
  11127. msgid "The following example spawns a new shell set up for the development of GNU@tie{}Guile:"
  11128. msgstr ""
  11129. #. type: example
  11130. #: guix-git/doc/guix.texi:6043
  11131. #, no-wrap
  11132. msgid "guix environment guile\n"
  11133. msgstr ""
  11134. #. type: Plain text
  11135. #: guix-git/doc/guix.texi:6060
  11136. 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.}."
  11137. msgstr ""
  11138. #. type: Plain text
  11139. #: guix-git/doc/guix.texi:6066
  11140. 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."
  11141. msgstr ""
  11142. #. type: Plain text
  11143. #: guix-git/doc/guix.texi:6073
  11144. 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}):"
  11145. msgstr ""
  11146. #. type: Plain text
  11147. #: guix-git/doc/guix.texi:6092
  11148. 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:"
  11149. msgstr ""
  11150. #. type: example
  11151. #: guix-git/doc/guix.texi:6095
  11152. #, no-wrap
  11153. msgid "guix environment guile emacs\n"
  11154. msgstr ""
  11155. #. type: Plain text
  11156. #: guix-git/doc/guix.texi:6100
  11157. 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:"
  11158. msgstr ""
  11159. #. type: example
  11160. #: guix-git/doc/guix.texi:6103
  11161. #, no-wrap
  11162. msgid "guix environment guile -- make -j4\n"
  11163. msgstr ""
  11164. #. type: Plain text
  11165. #: guix-git/doc/guix.texi:6109
  11166. 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{}3 and NumPy:"
  11167. msgstr ""
  11168. #. type: example
  11169. #: guix-git/doc/guix.texi:6112
  11170. #, no-wrap
  11171. msgid "guix environment --ad-hoc python-numpy python -- python3\n"
  11172. msgstr ""
  11173. #. type: Plain text
  11174. #: guix-git/doc/guix.texi:6123
  11175. 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:"
  11176. msgstr ""
  11177. #. type: example
  11178. #: guix-git/doc/guix.texi:6126
  11179. #, fuzzy, no-wrap
  11180. msgid "guix environment --pure guix --ad-hoc git strace\n"
  11181. msgstr "guix environment guix --ad-hoc help2man git strace\n"
  11182. #. type: Plain text
  11183. #: guix-git/doc/guix.texi:6136
  11184. 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:"
  11185. msgstr ""
  11186. #. type: example
  11187. #: guix-git/doc/guix.texi:6139
  11188. #, no-wrap
  11189. msgid "guix environment --ad-hoc --container guile -- guile\n"
  11190. msgstr ""
  11191. #. type: quotation
  11192. #: guix-git/doc/guix.texi:6143
  11193. msgid "The @option{--container} option requires Linux-libre 3.19 or newer."
  11194. msgstr ""
  11195. #. type: cindex
  11196. #: guix-git/doc/guix.texi:6145
  11197. #, fuzzy, no-wrap
  11198. msgid "certificates"
  11199. msgstr "X.509证书"
  11200. #. type: Plain text
  11201. #: guix-git/doc/guix.texi:6152
  11202. 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."
  11203. msgstr ""
  11204. #. type: example
  11205. #: guix-git/doc/guix.texi:6159
  11206. #, no-wrap
  11207. msgid ""
  11208. "guix environment --preserve='^DISPLAY$' --container --network \\\n"
  11209. " --expose=/etc/machine-id \\\n"
  11210. " --expose=/etc/ssl/certs/ \\\n"
  11211. " --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \\\n"
  11212. " --ad-hoc eolie nss-certs dbus -- eolie\n"
  11213. msgstr ""
  11214. #. type: table
  11215. #: guix-git/doc/guix.texi:6168
  11216. msgid "Set up the environment and check whether the shell would clobber environment variables. @xref{Invoking guix shell, @option{--check}}, for more info."
  11217. msgstr ""
  11218. #. type: table
  11219. #: guix-git/doc/guix.texi:6184
  11220. 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."
  11221. msgstr ""
  11222. #. type: example
  11223. #: guix-git/doc/guix.texi:6194
  11224. #, no-wrap
  11225. msgid "guix environment -e '(@@ (gnu packages maths) petsc-openmpi)'\n"
  11226. msgstr ""
  11227. #. type: example
  11228. #: guix-git/doc/guix.texi:6203
  11229. #, no-wrap
  11230. msgid "guix environment --ad-hoc -e '(@@ (gnu) %base-packages)'\n"
  11231. msgstr ""
  11232. #. type: example
  11233. #: guix-git/doc/guix.texi:6212
  11234. #, no-wrap
  11235. msgid "guix environment --ad-hoc -e '(list (@@ (gnu packages bash) bash) \"include\")'\n"
  11236. msgstr ""
  11237. #. type: item
  11238. #: guix-git/doc/guix.texi:6214
  11239. #, no-wrap
  11240. msgid "--load=@var{file}"
  11241. msgstr ""
  11242. #. type: itemx
  11243. #: guix-git/doc/guix.texi:6215
  11244. #, no-wrap
  11245. msgid "-l @var{file}"
  11246. msgstr ""
  11247. #. type: table
  11248. #: guix-git/doc/guix.texi:6218
  11249. msgid "Create an environment for the package or list of packages that the code within @var{file} evaluates to."
  11250. msgstr ""
  11251. #. type: item
  11252. #: guix-git/doc/guix.texi:6236
  11253. #, no-wrap
  11254. msgid "--ad-hoc"
  11255. msgstr ""
  11256. #. type: table
  11257. #: guix-git/doc/guix.texi:6241
  11258. 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."
  11259. msgstr ""
  11260. #. type: table
  11261. #: guix-git/doc/guix.texi:6243
  11262. msgid "For instance, the command:"
  11263. msgstr ""
  11264. #. type: example
  11265. #: guix-git/doc/guix.texi:6246
  11266. #, no-wrap
  11267. msgid "guix environment --ad-hoc guile guile-sdl -- guile\n"
  11268. msgstr ""
  11269. #. type: table
  11270. #: guix-git/doc/guix.texi:6250
  11271. msgid "runs @command{guile} in an environment where Guile and Guile-SDL are available."
  11272. msgstr ""
  11273. #. type: table
  11274. #: guix-git/doc/guix.texi:6255
  11275. 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})."
  11276. msgstr ""
  11277. #. type: table
  11278. #: guix-git/doc/guix.texi:6261
  11279. 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."
  11280. msgstr ""
  11281. #. type: example
  11282. #: guix-git/doc/guix.texi:6283
  11283. #, no-wrap
  11284. msgid ""
  11285. "guix environment --pure --preserve=^SLURM --ad-hoc openmpi @dots{} \\\n"
  11286. " -- mpirun @dots{}\n"
  11287. msgstr ""
  11288. #. type: table
  11289. #: guix-git/doc/guix.texi:6326
  11290. 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."
  11291. msgstr ""
  11292. #. type: example
  11293. #: guix-git/doc/guix.texi:6353
  11294. #, no-wrap
  11295. msgid ""
  11296. "# will expose paths as /home/foo/wd, /home/foo/test, and /home/foo/target\n"
  11297. "cd $HOME/wd\n"
  11298. "guix environment --container --user=foo \\\n"
  11299. " --expose=$HOME/test \\\n"
  11300. " --expose=/tmp/target=$HOME/target\n"
  11301. msgstr ""
  11302. #. type: example
  11303. #: guix-git/doc/guix.texi:6381
  11304. #, no-wrap
  11305. msgid "guix environment --container --expose=$HOME=/exchange --ad-hoc guile -- guile\n"
  11306. msgstr ""
  11307. #. type: Plain text
  11308. #: guix-git/doc/guix.texi:6389
  11309. 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})."
  11310. msgstr ""
  11311. #. type: section
  11312. #: guix-git/doc/guix.texi:6391
  11313. #, no-wrap
  11314. msgid "Invoking @command{guix pack}"
  11315. msgstr ""
  11316. #. type: Plain text
  11317. #: guix-git/doc/guix.texi:6397
  11318. 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."
  11319. msgstr ""
  11320. #. type: quotation
  11321. #: guix-git/doc/guix.texi:6402
  11322. 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}."
  11323. msgstr ""
  11324. #. type: cindex
  11325. #: guix-git/doc/guix.texi:6404
  11326. #, no-wrap
  11327. msgid "pack"
  11328. msgstr ""
  11329. #. type: cindex
  11330. #: guix-git/doc/guix.texi:6405
  11331. #, no-wrap
  11332. msgid "bundle"
  11333. msgstr ""
  11334. #. type: cindex
  11335. #: guix-git/doc/guix.texi:6406
  11336. #, no-wrap
  11337. msgid "application bundle"
  11338. msgstr ""
  11339. #. type: cindex
  11340. #: guix-git/doc/guix.texi:6407
  11341. #, no-wrap
  11342. msgid "software bundle"
  11343. msgstr ""
  11344. #. type: Plain text
  11345. #: guix-git/doc/guix.texi:6416
  11346. 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."
  11347. msgstr ""
  11348. #. type: Plain text
  11349. #: guix-git/doc/guix.texi:6419
  11350. msgid "For example, to create a bundle containing Guile, Emacs, Geiser, and all their dependencies, you can run:"
  11351. msgstr ""
  11352. #. type: example
  11353. #: guix-git/doc/guix.texi:6424
  11354. #, no-wrap
  11355. msgid ""
  11356. "$ guix pack guile emacs emacs-geiser\n"
  11357. "@dots{}\n"
  11358. "/gnu/store/@dots{}-pack.tar.gz\n"
  11359. msgstr ""
  11360. #. type: Plain text
  11361. #: guix-git/doc/guix.texi:6432
  11362. 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})."
  11363. msgstr ""
  11364. #. type: Plain text
  11365. #: guix-git/doc/guix.texi:6437
  11366. 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:"
  11367. msgstr ""
  11368. #. type: example
  11369. #: guix-git/doc/guix.texi:6440
  11370. #, fuzzy, no-wrap
  11371. msgid "guix pack -S /opt/gnu/bin=bin guile emacs emacs-geiser\n"
  11372. msgstr "guix package -i emacs guile emacs-geiser\n"
  11373. #. type: Plain text
  11374. #: guix-git/doc/guix.texi:6444
  11375. msgid "That way, users can happily type @file{/opt/gnu/bin/guile} and enjoy."
  11376. msgstr ""
  11377. #. type: cindex
  11378. #: guix-git/doc/guix.texi:6445
  11379. #, no-wrap
  11380. msgid "relocatable binaries, with @command{guix pack}"
  11381. msgstr ""
  11382. #. type: Plain text
  11383. #: guix-git/doc/guix.texi:6453
  11384. 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}."
  11385. msgstr ""
  11386. #. type: cindex
  11387. #: guix-git/doc/guix.texi:6454
  11388. #, no-wrap
  11389. msgid "Docker, build an image with guix pack"
  11390. msgstr ""
  11391. #. type: Plain text
  11392. #: guix-git/doc/guix.texi:6457
  11393. msgid "Alternatively, you can produce a pack in the Docker image format using the following command:"
  11394. msgstr ""
  11395. #. type: example
  11396. #: guix-git/doc/guix.texi:6460
  11397. #, no-wrap
  11398. msgid "guix pack -f docker -S /bin=bin guile guile-readline\n"
  11399. msgstr ""
  11400. #. type: Plain text
  11401. #: guix-git/doc/guix.texi:6465
  11402. msgid "The result is a tarball that can be passed to the @command{docker load} command, followed by @code{docker run}:"
  11403. msgstr ""
  11404. #. type: example
  11405. #: guix-git/doc/guix.texi:6469
  11406. #, no-wrap
  11407. msgid ""
  11408. "docker load < @var{file}\n"
  11409. "docker run -ti guile-guile-readline /bin/guile\n"
  11410. msgstr ""
  11411. #. type: Plain text
  11412. #: guix-git/doc/guix.texi:6476
  11413. 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."
  11414. msgstr ""
  11415. #. type: cindex
  11416. #: guix-git/doc/guix.texi:6477
  11417. #, no-wrap
  11418. msgid "Singularity, build an image with guix pack"
  11419. msgstr ""
  11420. #. type: cindex
  11421. #: guix-git/doc/guix.texi:6478
  11422. #, no-wrap
  11423. msgid "SquashFS, build an image with guix pack"
  11424. msgstr ""
  11425. #. type: Plain text
  11426. #: guix-git/doc/guix.texi:6481
  11427. msgid "Yet another option is to produce a SquashFS image with the following command:"
  11428. msgstr ""
  11429. #. type: example
  11430. #: guix-git/doc/guix.texi:6484
  11431. #, fuzzy, no-wrap
  11432. msgid "guix pack -f squashfs bash guile emacs emacs-geiser\n"
  11433. msgstr "guix package -i emacs guile emacs-geiser\n"
  11434. #. type: Plain text
  11435. #: guix-git/doc/guix.texi:6492
  11436. 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}."
  11437. msgstr ""
  11438. #. type: Plain text
  11439. #: guix-git/doc/guix.texi:6494
  11440. msgid "Several command-line options allow you to customize your pack:"
  11441. msgstr ""
  11442. #. type: table
  11443. #: guix-git/doc/guix.texi:6499
  11444. msgid "Produce a pack in the given @var{format}."
  11445. msgstr ""
  11446. #. type: table
  11447. #: guix-git/doc/guix.texi:6501
  11448. msgid "The available formats are:"
  11449. msgstr ""
  11450. #. type: item
  11451. #: guix-git/doc/guix.texi:6503
  11452. #, no-wrap
  11453. msgid "tarball"
  11454. msgstr ""
  11455. #. type: table
  11456. #: guix-git/doc/guix.texi:6506
  11457. msgid "This is the default format. It produces a tarball containing all the specified binaries and symlinks."
  11458. msgstr ""
  11459. #. type: item
  11460. #: guix-git/doc/guix.texi:6507
  11461. #, no-wrap
  11462. msgid "docker"
  11463. msgstr ""
  11464. #. type: table
  11465. #: guix-git/doc/guix.texi:6513
  11466. 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."
  11467. msgstr ""
  11468. #. type: item
  11469. #: guix-git/doc/guix.texi:6514
  11470. #, no-wrap
  11471. msgid "squashfs"
  11472. msgstr ""
  11473. #. type: table
  11474. #: guix-git/doc/guix.texi:6518
  11475. 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."
  11476. msgstr ""
  11477. #. type: quotation
  11478. #: guix-git/doc/guix.texi:6524
  11479. 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:"
  11480. msgstr ""
  11481. #. type: example
  11482. #: guix-git/doc/guix.texi:6527
  11483. #, no-wrap
  11484. msgid "guix pack -f squashfs bash @dots{}\n"
  11485. msgstr ""
  11486. #. type: quotation
  11487. #: guix-git/doc/guix.texi:6532
  11488. 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."
  11489. msgstr ""
  11490. #. type: item
  11491. #: guix-git/doc/guix.texi:6534
  11492. #, fuzzy, no-wrap
  11493. #| msgid "--debug"
  11494. msgid "deb"
  11495. msgstr "--debug"
  11496. #. type: table
  11497. #: guix-git/doc/guix.texi:6542
  11498. msgid "This produces a Debian archive (a package with the @samp{.deb} file extension) containing all the specified binaries and symbolic links, that can be installed on top of any dpkg-based GNU(/Linux) distribution. Advanced options can be revealed via the @option{--help-deb-format} option. They allow embedding control files for more fine-grained control, such as activating specific triggers or providing a maintainer configure script to run arbitrary setup code upon installation."
  11499. msgstr ""
  11500. #. type: example
  11501. #: guix-git/doc/guix.texi:6545
  11502. #, no-wrap
  11503. msgid "guix pack -f deb -C xz -S /usr/bin/hello=bin/hello hello\n"
  11504. msgstr ""
  11505. #. type: quotation
  11506. #: guix-git/doc/guix.texi:6552
  11507. msgid "Because archives produced with @command{guix pack} contain a collection of store items and because each @command{dpkg} package must not have conflicting files, in practice that means you likely won't be able to install more than one such archive on a given system."
  11508. msgstr ""
  11509. #. type: quotation
  11510. #: guix-git/doc/guix.texi:6560
  11511. msgid "@command{dpkg} will assume ownership of any files contained in the pack that it does @emph{not} know about. It is unwise to install Guix-produced @samp{.deb} files on a system where @file{/gnu/store} is shared by other software, such as a Guix installation or other, non-deb packs."
  11512. msgstr ""
  11513. #. type: cindex
  11514. #: guix-git/doc/guix.texi:6564
  11515. #, no-wrap
  11516. msgid "relocatable binaries"
  11517. msgstr ""
  11518. #. type: item
  11519. #: guix-git/doc/guix.texi:6565
  11520. #, no-wrap
  11521. msgid "--relocatable"
  11522. msgstr ""
  11523. #. type: table
  11524. #: guix-git/doc/guix.texi:6569
  11525. msgid "Produce @dfn{relocatable binaries}---i.e., binaries that can be placed anywhere in the file system hierarchy and run from there."
  11526. msgstr ""
  11527. #. type: table
  11528. #: guix-git/doc/guix.texi:6577
  11529. 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."
  11530. msgstr ""
  11531. #. type: table
  11532. #: guix-git/doc/guix.texi:6579
  11533. msgid "For example, if you create a pack containing Bash with:"
  11534. msgstr ""
  11535. #. type: example
  11536. #: guix-git/doc/guix.texi:6582
  11537. #, no-wrap
  11538. msgid "guix pack -RR -S /mybin=bin bash\n"
  11539. msgstr ""
  11540. #. type: table
  11541. #: guix-git/doc/guix.texi:6587
  11542. msgid "...@: you can copy that pack to a machine that lacks Guix, and from your home directory as a normal user, run:"
  11543. msgstr ""
  11544. #. type: example
  11545. #: guix-git/doc/guix.texi:6591
  11546. #, no-wrap
  11547. msgid ""
  11548. "tar xf pack.tar.gz\n"
  11549. "./mybin/sh\n"
  11550. msgstr ""
  11551. #. type: table
  11552. #: guix-git/doc/guix.texi:6599
  11553. 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."
  11554. msgstr ""
  11555. #. type: quotation
  11556. #: guix-git/doc/guix.texi:6605
  11557. 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."
  11558. msgstr ""
  11559. #. type: quotation
  11560. #: guix-git/doc/guix.texi:6611
  11561. 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:"
  11562. msgstr ""
  11563. #. type: item
  11564. #: guix-git/doc/guix.texi:6613 guix-git/doc/guix.texi:17858
  11565. #, no-wrap
  11566. msgid "default"
  11567. msgstr ""
  11568. #. type: table
  11569. #: guix-git/doc/guix.texi:6616
  11570. msgid "Try user namespaces and fall back to PRoot if user namespaces are not supported (see below)."
  11571. msgstr ""
  11572. #. type: item
  11573. #: guix-git/doc/guix.texi:6617
  11574. #, fuzzy, no-wrap
  11575. msgid "performance"
  11576. msgstr "格式化代码"
  11577. #. type: table
  11578. #: guix-git/doc/guix.texi:6620
  11579. msgid "Try user namespaces and fall back to Fakechroot if user namespaces are not supported (see below)."
  11580. msgstr ""
  11581. #. type: item
  11582. #: guix-git/doc/guix.texi:6621
  11583. #, fuzzy, no-wrap
  11584. msgid "userns"
  11585. msgstr "用户"
  11586. #. type: table
  11587. #: guix-git/doc/guix.texi:6624
  11588. msgid "Run the program through user namespaces and abort if they are not supported."
  11589. msgstr ""
  11590. #. type: item
  11591. #: guix-git/doc/guix.texi:6625
  11592. #, fuzzy, no-wrap
  11593. msgid "proot"
  11594. msgstr "chroot"
  11595. #. type: table
  11596. #: guix-git/doc/guix.texi:6632
  11597. 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."
  11598. msgstr ""
  11599. #. type: item
  11600. #: guix-git/doc/guix.texi:6633
  11601. #, fuzzy, no-wrap
  11602. msgid "fakechroot"
  11603. msgstr "chroot"
  11604. #. type: table
  11605. #: guix-git/doc/guix.texi:6641
  11606. 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."
  11607. msgstr ""
  11608. #. type: vindex
  11609. #: guix-git/doc/guix.texi:6643
  11610. #, no-wrap
  11611. msgid "GUIX_EXECUTION_ENGINE"
  11612. msgstr ""
  11613. #. type: quotation
  11614. #: guix-git/doc/guix.texi:6647
  11615. 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."
  11616. msgstr ""
  11617. #. type: cindex
  11618. #: guix-git/doc/guix.texi:6649
  11619. #, no-wrap
  11620. msgid "entry point, for Docker images"
  11621. msgstr ""
  11622. #. type: item
  11623. #: guix-git/doc/guix.texi:6650
  11624. #, fuzzy, no-wrap
  11625. msgid "--entry-point=@var{command}"
  11626. msgstr "--timeout=@var{seconds}"
  11627. #. type: table
  11628. #: guix-git/doc/guix.texi:6655
  11629. 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."
  11630. msgstr ""
  11631. #. type: table
  11632. #: guix-git/doc/guix.texi:6659
  11633. 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:"
  11634. msgstr ""
  11635. #. type: example
  11636. #: guix-git/doc/guix.texi:6662
  11637. #, no-wrap
  11638. msgid "guix pack -f docker --entry-point=bin/guile guile\n"
  11639. msgstr ""
  11640. #. type: table
  11641. #: guix-git/doc/guix.texi:6666
  11642. msgid "The resulting pack can easily be loaded and @code{docker run} with no extra arguments will spawn @code{bin/guile}:"
  11643. msgstr ""
  11644. #. type: example
  11645. #: guix-git/doc/guix.texi:6670
  11646. #, no-wrap
  11647. msgid ""
  11648. "docker load -i pack.tar.gz\n"
  11649. "docker run @var{image-id}\n"
  11650. msgstr ""
  11651. #. type: table
  11652. #: guix-git/doc/guix.texi:6675 guix-git/doc/guix.texi:12916
  11653. #: guix-git/doc/guix.texi:13906
  11654. msgid "Consider the package @var{expr} evaluates to."
  11655. msgstr ""
  11656. #. type: table
  11657. #: guix-git/doc/guix.texi:6679
  11658. 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}})."
  11659. msgstr ""
  11660. #. type: table
  11661. #: guix-git/doc/guix.texi:6685
  11662. 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."
  11663. msgstr ""
  11664. #. type: table
  11665. #: guix-git/doc/guix.texi:6693
  11666. 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."
  11667. msgstr ""
  11668. #. type: item
  11669. #: guix-git/doc/guix.texi:6699 guix-git/doc/guix.texi:11957
  11670. #, no-wrap
  11671. msgid "--target=@var{triplet}"
  11672. msgstr ""
  11673. #. type: cindex
  11674. #: guix-git/doc/guix.texi:6700 guix-git/doc/guix.texi:7146
  11675. #: guix-git/doc/guix.texi:11958
  11676. #, no-wrap
  11677. msgid "cross-compilation"
  11678. msgstr ""
  11679. #. type: table
  11680. #: guix-git/doc/guix.texi:6704
  11681. 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})."
  11682. msgstr ""
  11683. #. type: item
  11684. #: guix-git/doc/guix.texi:6705
  11685. #, no-wrap
  11686. msgid "--compression=@var{tool}"
  11687. msgstr ""
  11688. #. type: itemx
  11689. #: guix-git/doc/guix.texi:6706
  11690. #, no-wrap
  11691. msgid "-C @var{tool}"
  11692. msgstr ""
  11693. #. type: table
  11694. #: guix-git/doc/guix.texi:6710
  11695. #, fuzzy
  11696. 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."
  11697. msgstr "以@var{type}方式压缩构建日志,可选的值:@code{gzip},@code{bzip2},@code{none}。"
  11698. #. type: item
  11699. #: guix-git/doc/guix.texi:6711
  11700. #, no-wrap
  11701. msgid "--symlink=@var{spec}"
  11702. msgstr ""
  11703. #. type: itemx
  11704. #: guix-git/doc/guix.texi:6712
  11705. #, no-wrap
  11706. msgid "-S @var{spec}"
  11707. msgstr ""
  11708. #. type: table
  11709. #: guix-git/doc/guix.texi:6715
  11710. msgid "Add the symlinks specified by @var{spec} to the pack. This option can appear several times."
  11711. msgstr ""
  11712. #. type: table
  11713. #: guix-git/doc/guix.texi:6719
  11714. 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."
  11715. msgstr ""
  11716. #. type: table
  11717. #: guix-git/doc/guix.texi:6722
  11718. 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."
  11719. msgstr ""
  11720. #. type: item
  11721. #: guix-git/doc/guix.texi:6723 guix-git/doc/guix.texi:35820
  11722. #, no-wrap
  11723. msgid "--save-provenance"
  11724. msgstr ""
  11725. #. type: table
  11726. #: guix-git/doc/guix.texi:6727
  11727. 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})."
  11728. msgstr ""
  11729. #. type: table
  11730. #: guix-git/doc/guix.texi:6733
  11731. 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."
  11732. msgstr ""
  11733. #. type: table
  11734. #: guix-git/doc/guix.texi:6739
  11735. 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."
  11736. msgstr ""
  11737. #. type: cindex
  11738. #: guix-git/doc/guix.texi:6742
  11739. #, fuzzy, no-wrap
  11740. msgid "garbage collector root, for packs"
  11741. msgstr "垃圾收集的根"
  11742. #. type: table
  11743. #: guix-git/doc/guix.texi:6745
  11744. msgid "Make @var{file} a symlink to the resulting pack, and register it as a garbage collector root."
  11745. msgstr ""
  11746. #. type: item
  11747. #: guix-git/doc/guix.texi:6746
  11748. #, no-wrap
  11749. msgid "--localstatedir"
  11750. msgstr ""
  11751. #. type: itemx
  11752. #: guix-git/doc/guix.texi:6747
  11753. #, no-wrap
  11754. msgid "--profile-name=@var{name}"
  11755. msgstr ""
  11756. #. type: table
  11757. #: guix-git/doc/guix.texi:6752
  11758. 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}."
  11759. msgstr ""
  11760. #. type: table
  11761. #: guix-git/doc/guix.texi:6758
  11762. 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."
  11763. msgstr ""
  11764. #. type: table
  11765. #: guix-git/doc/guix.texi:6761
  11766. msgid "One use case for this is the Guix self-contained binary tarball (@pxref{Binary Installation})."
  11767. msgstr ""
  11768. #. type: item
  11769. #: guix-git/doc/guix.texi:6762 guix-git/doc/guix.texi:35814
  11770. #, no-wrap
  11771. msgid "--derivation"
  11772. msgstr ""
  11773. #. type: itemx
  11774. #: guix-git/doc/guix.texi:6763 guix-git/doc/guix.texi:11989
  11775. #: guix-git/doc/guix.texi:35815
  11776. #, no-wrap
  11777. msgid "-d"
  11778. msgstr ""
  11779. #. type: table
  11780. #: guix-git/doc/guix.texi:6765
  11781. msgid "Print the name of the derivation that builds the pack."
  11782. msgstr ""
  11783. #. type: table
  11784. #: guix-git/doc/guix.texi:6769
  11785. msgid "Use the bootstrap binaries to build the pack. This option is only useful to Guix developers."
  11786. msgstr ""
  11787. #. type: Plain text
  11788. #: guix-git/doc/guix.texi:6774
  11789. 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})."
  11790. msgstr ""
  11791. #. type: cindex
  11792. #: guix-git/doc/guix.texi:6779
  11793. #, no-wrap
  11794. msgid "GCC"
  11795. msgstr ""
  11796. #. type: cindex
  11797. #: guix-git/doc/guix.texi:6780
  11798. #, no-wrap
  11799. msgid "ld-wrapper"
  11800. msgstr ""
  11801. #. type: cindex
  11802. #: guix-git/doc/guix.texi:6781
  11803. #, no-wrap
  11804. msgid "linker wrapper"
  11805. msgstr ""
  11806. #. type: cindex
  11807. #: guix-git/doc/guix.texi:6782
  11808. #, fuzzy, no-wrap
  11809. msgid "toolchain, for C development"
  11810. msgstr "软件开发"
  11811. #. type: cindex
  11812. #: guix-git/doc/guix.texi:6783
  11813. #, no-wrap
  11814. msgid "toolchain, for Fortran development"
  11815. msgstr ""
  11816. #. type: Plain text
  11817. #: guix-git/doc/guix.texi:6790
  11818. 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."
  11819. msgstr ""
  11820. #. type: Plain text
  11821. #: guix-git/doc/guix.texi:6796
  11822. 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}."
  11823. msgstr ""
  11824. #. type: Plain text
  11825. #: guix-git/doc/guix.texi:6800
  11826. 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})."
  11827. msgstr ""
  11828. #. type: section
  11829. #: guix-git/doc/guix.texi:6803
  11830. #, fuzzy, no-wrap
  11831. msgid "Invoking @command{guix git authenticate}"
  11832. msgstr "调用@command{guix build}"
  11833. #. type: Plain text
  11834. #: guix-git/doc/guix.texi:6811
  11835. 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)."
  11836. msgstr ""
  11837. #. type: Plain text
  11838. #: guix-git/doc/guix.texi:6816
  11839. 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."
  11840. msgstr ""
  11841. #. type: example
  11842. #: guix-git/doc/guix.texi:6821
  11843. #, no-wrap
  11844. msgid "guix git authenticate @var{commit} @var{signer} [@var{options}@dots{}]\n"
  11845. msgstr ""
  11846. #. type: Plain text
  11847. #: guix-git/doc/guix.texi:6830
  11848. 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."
  11849. msgstr ""
  11850. #. type: item
  11851. #: guix-git/doc/guix.texi:6832
  11852. #, fuzzy, no-wrap
  11853. msgid "--repository=@var{directory}"
  11854. msgstr "--chroot-directory=@var{dir}"
  11855. #. type: itemx
  11856. #: guix-git/doc/guix.texi:6833
  11857. #, fuzzy, no-wrap
  11858. msgid "-r @var{directory}"
  11859. msgstr "状态文件夹"
  11860. #. type: table
  11861. #: guix-git/doc/guix.texi:6836
  11862. msgid "Open the Git repository in @var{directory} instead of the current directory."
  11863. msgstr ""
  11864. #. type: item
  11865. #: guix-git/doc/guix.texi:6837
  11866. #, no-wrap
  11867. msgid "--keyring=@var{reference}"
  11868. msgstr ""
  11869. #. type: itemx
  11870. #: guix-git/doc/guix.texi:6838
  11871. #, fuzzy, no-wrap
  11872. msgid "-k @var{reference}"
  11873. msgstr "-c @var{n}"
  11874. #. type: table
  11875. #: guix-git/doc/guix.texi:6844
  11876. 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}."
  11877. msgstr ""
  11878. #. type: item
  11879. #: guix-git/doc/guix.texi:6845
  11880. #, no-wrap
  11881. msgid "--stats"
  11882. msgstr ""
  11883. #. type: table
  11884. #: guix-git/doc/guix.texi:6847
  11885. msgid "Display commit signing statistics upon completion."
  11886. msgstr ""
  11887. #. type: item
  11888. #: guix-git/doc/guix.texi:6848
  11889. #, fuzzy, no-wrap
  11890. msgid "--cache-key=@var{key}"
  11891. msgstr "--cores=@var{n}"
  11892. #. type: table
  11893. #: guix-git/doc/guix.texi:6852
  11894. 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."
  11895. msgstr ""
  11896. #. type: item
  11897. #: guix-git/doc/guix.texi:6853
  11898. #, no-wrap
  11899. msgid "--historical-authorizations=@var{file}"
  11900. msgstr ""
  11901. #. type: table
  11902. #: guix-git/doc/guix.texi:6860
  11903. 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})."
  11904. msgstr ""
  11905. #. type: Plain text
  11906. #: guix-git/doc/guix.texi:6873
  11907. 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."
  11908. msgstr ""
  11909. #. type: Plain text
  11910. #: guix-git/doc/guix.texi:6879
  11911. 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."
  11912. msgstr ""
  11913. #. type: Plain text
  11914. #: guix-git/doc/guix.texi:6888
  11915. 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."
  11916. msgstr ""
  11917. #. type: Plain text
  11918. #: guix-git/doc/guix.texi:6891
  11919. msgid "This chapter describes all these APIs in turn, starting from high-level package definitions."
  11920. msgstr ""
  11921. #. type: menuentry
  11922. #: guix-git/doc/guix.texi:6905
  11923. #, fuzzy
  11924. msgid "Programming Guix in Guile"
  11925. msgstr "编程索引"
  11926. #. type: Plain text
  11927. #: guix-git/doc/guix.texi:6921
  11928. 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})."
  11929. msgstr ""
  11930. #. type: Plain text
  11931. #: guix-git/doc/guix.texi:6928
  11932. 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."
  11933. msgstr ""
  11934. #. type: cindex
  11935. #: guix-git/doc/guix.texi:6930
  11936. #, no-wrap
  11937. msgid "package module search path"
  11938. msgstr ""
  11939. #. type: Plain text
  11940. #: guix-git/doc/guix.texi:6939
  11941. 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:"
  11942. msgstr ""
  11943. #. type: enumerate
  11944. #: guix-git/doc/guix.texi:6946
  11945. 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."
  11946. msgstr ""
  11947. #. type: enumerate
  11948. #: guix-git/doc/guix.texi:6952
  11949. 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."
  11950. msgstr ""
  11951. #. type: Plain text
  11952. #: guix-git/doc/guix.texi:6955
  11953. msgid "@env{GUIX_PACKAGE_PATH} works similarly to other search path variables:"
  11954. msgstr ""
  11955. #. type: defvr
  11956. #: guix-git/doc/guix.texi:6956
  11957. #, no-wrap
  11958. msgid "{Environment Variable} GUIX_PACKAGE_PATH"
  11959. msgstr ""
  11960. #. type: defvr
  11961. #: guix-git/doc/guix.texi:6960
  11962. 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."
  11963. msgstr ""
  11964. #. type: Plain text
  11965. #: guix-git/doc/guix.texi:6968
  11966. 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}."
  11967. msgstr ""
  11968. #. type: Plain text
  11969. #: guix-git/doc/guix.texi:6976
  11970. 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:"
  11971. msgstr ""
  11972. #. type: lisp
  11973. #: guix-git/doc/guix.texi:6984
  11974. #, no-wrap
  11975. msgid ""
  11976. "(define-module (gnu packages hello)\n"
  11977. " #:use-module (guix packages)\n"
  11978. " #:use-module (guix download)\n"
  11979. " #:use-module (guix build-system gnu)\n"
  11980. " #:use-module (guix licenses)\n"
  11981. " #:use-module (gnu packages gawk))\n"
  11982. "\n"
  11983. msgstr ""
  11984. #. type: lisp
  11985. #: guix-git/doc/guix.texi:7003
  11986. #, no-wrap
  11987. msgid ""
  11988. "(define-public hello\n"
  11989. " (package\n"
  11990. " (name \"hello\")\n"
  11991. " (version \"2.10\")\n"
  11992. " (source (origin\n"
  11993. " (method url-fetch)\n"
  11994. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  11995. " \".tar.gz\"))\n"
  11996. " (sha256\n"
  11997. " (base32\n"
  11998. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  11999. " (build-system gnu-build-system)\n"
  12000. " (arguments '(#:configure-flags '(\"--enable-silent-rules\")))\n"
  12001. " (inputs (list gawk))\n"
  12002. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  12003. " (description \"Guess what GNU Hello prints!\")\n"
  12004. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  12005. " (license gpl3+)))\n"
  12006. msgstr ""
  12007. #. type: Plain text
  12008. #: guix-git/doc/guix.texi:7013
  12009. 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\"}."
  12010. msgstr ""
  12011. #. type: Plain text
  12012. #: guix-git/doc/guix.texi:7017
  12013. 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})."
  12014. msgstr ""
  12015. #. type: Plain text
  12016. #: guix-git/doc/guix.texi:7023
  12017. 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})."
  12018. msgstr ""
  12019. #. type: Plain text
  12020. #: guix-git/doc/guix.texi:7025
  12021. msgid "There are a few points worth noting in the above package definition:"
  12022. msgstr ""
  12023. #. type: itemize
  12024. #: guix-git/doc/guix.texi:7032
  12025. 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."
  12026. msgstr ""
  12027. #. type: itemize
  12028. #: guix-git/doc/guix.texi:7035
  12029. msgid "The @code{mirror://gnu} prefix instructs @code{url-fetch} to use one of the GNU mirrors defined in @code{(guix download)}."
  12030. msgstr ""
  12031. #. type: itemize
  12032. #: guix-git/doc/guix.texi:7042
  12033. 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})."
  12034. msgstr ""
  12035. #. type: cindex
  12036. #: guix-git/doc/guix.texi:7043
  12037. #, no-wrap
  12038. msgid "patches"
  12039. msgstr ""
  12040. #. type: itemize
  12041. #: guix-git/doc/guix.texi:7047
  12042. 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."
  12043. msgstr ""
  12044. #. type: cindex
  12045. #: guix-git/doc/guix.texi:7049
  12046. #, no-wrap
  12047. msgid "GNU Build System"
  12048. msgstr ""
  12049. #. type: itemize
  12050. #: guix-git/doc/guix.texi:7055
  12051. 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."
  12052. msgstr ""
  12053. #. type: itemize
  12054. #: guix-git/doc/guix.texi:7059
  12055. 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."
  12056. msgstr ""
  12057. #. type: itemize
  12058. #: guix-git/doc/guix.texi:7065
  12059. 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."
  12060. msgstr ""
  12061. #. type: findex
  12062. #: guix-git/doc/guix.texi:7066 guix-git/doc/guix.texi:7069
  12063. #, no-wrap
  12064. msgid "quote"
  12065. msgstr ""
  12066. #. type: cindex
  12067. #: guix-git/doc/guix.texi:7067
  12068. #, no-wrap
  12069. msgid "quoting"
  12070. msgstr ""
  12071. #. type: findex
  12072. #: guix-git/doc/guix.texi:7068
  12073. #, no-wrap
  12074. msgid "'"
  12075. msgstr ""
  12076. #. type: cindex
  12077. #: guix-git/doc/guix.texi:7070
  12078. #, no-wrap
  12079. msgid "backquote (quasiquote)"
  12080. msgstr ""
  12081. #. type: findex
  12082. #: guix-git/doc/guix.texi:7071
  12083. #, no-wrap
  12084. msgid "`"
  12085. msgstr ""
  12086. #. type: findex
  12087. #: guix-git/doc/guix.texi:7072
  12088. #, no-wrap
  12089. msgid "quasiquote"
  12090. msgstr ""
  12091. #. type: cindex
  12092. #: guix-git/doc/guix.texi:7073
  12093. #, no-wrap
  12094. msgid "comma (unquote)"
  12095. msgstr ""
  12096. #. type: findex
  12097. #: guix-git/doc/guix.texi:7074
  12098. #, no-wrap
  12099. msgid ","
  12100. msgstr ""
  12101. #. type: findex
  12102. #: guix-git/doc/guix.texi:7075
  12103. #, no-wrap
  12104. msgid "unquote"
  12105. msgstr ""
  12106. #. type: itemize
  12107. #: guix-git/doc/guix.texi:7085
  12108. msgid "What about these quote (@code{'}) characters? They are Scheme syntax to introduce a literal list; @code{'} is synonymous with @code{quote}. Sometimes you'll also see @code{`} (a backquote, synonymous with @code{quasiquote}) and @code{,} (a comma, synonymous with @code{unquote}). @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})."
  12109. msgstr ""
  12110. #. type: itemize
  12111. #: guix-git/doc/guix.texi:7091
  12112. 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})."
  12113. msgstr ""
  12114. #. type: itemize
  12115. #: guix-git/doc/guix.texi:7097
  12116. msgid "The @code{inputs} field specifies inputs to the build process---i.e., build-time or run-time dependencies of the package. Here, we add an input, a reference to the @code{gawk} variable; @code{gawk} is itself bound to a @code{<package>} object."
  12117. msgstr ""
  12118. #. type: itemize
  12119. #: guix-git/doc/guix.texi:7101
  12120. 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})."
  12121. msgstr ""
  12122. #. type: itemize
  12123. #: guix-git/doc/guix.texi:7105
  12124. 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."
  12125. msgstr ""
  12126. #. type: Plain text
  12127. #: guix-git/doc/guix.texi:7108
  12128. msgid "@xref{package Reference}, for a full description of possible fields."
  12129. msgstr ""
  12130. #. type: Plain text
  12131. #: guix-git/doc/guix.texi:7119
  12132. 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."
  12133. msgstr ""
  12134. #. type: vindex
  12135. #: guix-git/doc/guix.texi:7119
  12136. #, no-wrap
  12137. msgid "GUIX_PACKAGE_PATH"
  12138. msgstr ""
  12139. #. type: Plain text
  12140. #: guix-git/doc/guix.texi:7123
  12141. msgid "Lastly, @pxref{Channels}, for information on how to extend the distribution by adding your own package definitions in a ``channel''."
  12142. msgstr ""
  12143. #. type: Plain text
  12144. #: guix-git/doc/guix.texi:7127
  12145. 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})."
  12146. msgstr ""
  12147. #. type: Plain text
  12148. #: guix-git/doc/guix.texi:7133
  12149. 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})."
  12150. msgstr ""
  12151. #. type: deffn
  12152. #: guix-git/doc/guix.texi:7134
  12153. #, no-wrap
  12154. msgid "{Scheme Procedure} package-derivation @var{store} @var{package} [@var{system}]"
  12155. msgstr ""
  12156. #. type: deffn
  12157. #: guix-git/doc/guix.texi:7137
  12158. msgid "Return the @code{<derivation>} object of @var{package} for @var{system} (@pxref{Derivations})."
  12159. msgstr ""
  12160. #. type: deffn
  12161. #: guix-git/doc/guix.texi:7143
  12162. 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})."
  12163. msgstr ""
  12164. #. type: Plain text
  12165. #: guix-git/doc/guix.texi:7149
  12166. msgid "Similarly, it is possible to compute a derivation that cross-builds a package for some other system:"
  12167. msgstr ""
  12168. #. type: deffn
  12169. #: guix-git/doc/guix.texi:7150
  12170. #, no-wrap
  12171. msgid "{Scheme Procedure} package-cross-derivation @var{store} @"
  12172. msgstr ""
  12173. #. type: deffn
  12174. #: guix-git/doc/guix.texi:7154
  12175. msgid "@var{package} @var{target} [@var{system}] Return the @code{<derivation>} object of @var{package} cross-built from @var{system} to @var{target}."
  12176. msgstr ""
  12177. #. type: deffn
  12178. #: guix-git/doc/guix.texi:7158
  12179. 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})."
  12180. msgstr ""
  12181. #. type: Plain text
  12182. #: guix-git/doc/guix.texi:7162
  12183. msgid "Once you have package definitions, you can easily define @emph{variants} of those packages. @xref{Defining Package Variants}, for more on that."
  12184. msgstr ""
  12185. #. type: subsection
  12186. #: guix-git/doc/guix.texi:7170
  12187. #, no-wrap
  12188. msgid "@code{package} Reference"
  12189. msgstr ""
  12190. #. type: Plain text
  12191. #: guix-git/doc/guix.texi:7174
  12192. msgid "This section summarizes all the options available in @code{package} declarations (@pxref{Defining Packages})."
  12193. msgstr ""
  12194. #. type: deftp
  12195. #: guix-git/doc/guix.texi:7175
  12196. #, no-wrap
  12197. msgid "{Data Type} package"
  12198. msgstr ""
  12199. #. type: deftp
  12200. #: guix-git/doc/guix.texi:7177
  12201. msgid "This is the data type representing a package recipe."
  12202. msgstr ""
  12203. #. type: table
  12204. #: guix-git/doc/guix.texi:7181
  12205. msgid "The name of the package, as a string."
  12206. msgstr ""
  12207. #. type: code{#1}
  12208. #: guix-git/doc/guix.texi:7182
  12209. #, no-wrap
  12210. msgid "version"
  12211. msgstr ""
  12212. #. type: table
  12213. #: guix-git/doc/guix.texi:7185
  12214. msgid "The version of the package, as a string. @xref{Version Numbers}, for guidelines."
  12215. msgstr ""
  12216. #. type: code{#1}
  12217. #: guix-git/doc/guix.texi:7186 guix-git/doc/guix.texi:13361
  12218. #: guix-git/doc/guix.texi:15642 guix-git/doc/guix.texi:16268
  12219. #, no-wrap
  12220. msgid "source"
  12221. msgstr ""
  12222. #. type: table
  12223. #: guix-git/doc/guix.texi:7193
  12224. 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}})."
  12225. msgstr ""
  12226. #. type: code{#1}
  12227. #: guix-git/doc/guix.texi:7194
  12228. #, no-wrap
  12229. msgid "build-system"
  12230. msgstr ""
  12231. #. type: table
  12232. #: guix-git/doc/guix.texi:7197
  12233. msgid "The build system that should be used to build the package (@pxref{Build Systems})."
  12234. msgstr ""
  12235. #. type: item
  12236. #: guix-git/doc/guix.texi:7198 guix-git/doc/guix.texi:18440
  12237. #, no-wrap
  12238. msgid "@code{arguments} (default: @code{'()})"
  12239. msgstr ""
  12240. #. type: table
  12241. #: guix-git/doc/guix.texi:7201
  12242. msgid "The arguments that should be passed to the build system. This is a list, typically containing sequential keyword-value pairs."
  12243. msgstr ""
  12244. #. type: item
  12245. #: guix-git/doc/guix.texi:7202
  12246. #, no-wrap
  12247. msgid "@code{inputs} (default: @code{'()})"
  12248. msgstr ""
  12249. #. type: itemx
  12250. #: guix-git/doc/guix.texi:7203
  12251. #, no-wrap
  12252. msgid "@code{native-inputs} (default: @code{'()})"
  12253. msgstr ""
  12254. #. type: itemx
  12255. #: guix-git/doc/guix.texi:7204
  12256. #, no-wrap
  12257. msgid "@code{propagated-inputs} (default: @code{'()})"
  12258. msgstr ""
  12259. #. type: cindex
  12260. #: guix-git/doc/guix.texi:7205
  12261. #, no-wrap
  12262. msgid "inputs, of packages"
  12263. msgstr ""
  12264. #. type: table
  12265. #: guix-git/doc/guix.texi:7212
  12266. msgid "These fields list dependencies of the package. Each element of these lists is either a package, origin, or other ``file-like object'' (@pxref{G-Expressions}); to specify the output of that file-like object that should be used, pass a two-element list where the second element is the output (@pxref{Packages with Multiple Outputs}, for more on package outputs). For example, the list below specifies three inputs:"
  12267. msgstr ""
  12268. #. type: lisp
  12269. #: guix-git/doc/guix.texi:7216
  12270. #, no-wrap
  12271. msgid ""
  12272. "(list libffi libunistring\n"
  12273. " `(,glib \"bin\")) ;the \"bin\" output of GLib\n"
  12274. msgstr ""
  12275. #. type: table
  12276. #: guix-git/doc/guix.texi:7220
  12277. msgid "In the example above, the @code{\"out\"} output of @code{libffi} and @code{libunistring} is used."
  12278. msgstr ""
  12279. #. type: quotation
  12280. #: guix-git/doc/guix.texi:7221
  12281. #, fuzzy, no-wrap
  12282. #| msgid "Nix, compatibility"
  12283. msgid "Compatibility Note"
  12284. msgstr "Nix,兼容性"
  12285. #. type: quotation
  12286. #: guix-git/doc/guix.texi:7228
  12287. msgid "Until version 1.3.0, input lists were 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\"}. For example, the list below is equivalent to the one above, but using the @dfn{old input style}:"
  12288. msgstr ""
  12289. #. type: lisp
  12290. #: guix-git/doc/guix.texi:7234
  12291. #, no-wrap
  12292. msgid ""
  12293. ";; Old input style (deprecated).\n"
  12294. "`((\"libffi\" ,libffi)\n"
  12295. " (\"libunistring\" ,libunistring)\n"
  12296. " (\"glib:bin\" ,glib \"bin\")) ;the \"bin\" output of GLib\n"
  12297. msgstr ""
  12298. #. type: quotation
  12299. #: guix-git/doc/guix.texi:7240
  12300. msgid "This style is now deprecated; it is still supported but support will be removed in a future version. It should not be used for new package definitions. @xref{Invoking guix style}, on how to migrate to the new style."
  12301. msgstr ""
  12302. #. type: cindex
  12303. #: guix-git/doc/guix.texi:7242
  12304. #, no-wrap
  12305. msgid "cross compilation, package dependencies"
  12306. msgstr ""
  12307. #. type: table
  12308. #: guix-git/doc/guix.texi:7248
  12309. 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."
  12310. msgstr ""
  12311. #. type: table
  12312. #: guix-git/doc/guix.texi:7253
  12313. 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})."
  12314. msgstr ""
  12315. #. type: anchor{#1}
  12316. #: guix-git/doc/guix.texi:7261
  12317. msgid "package-propagated-inputs"
  12318. msgstr ""
  12319. #. type: table
  12320. #: guix-git/doc/guix.texi:7261
  12321. 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)."
  12322. msgstr ""
  12323. #. type: table
  12324. #: guix-git/doc/guix.texi:7265
  12325. 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."
  12326. msgstr ""
  12327. #. type: table
  12328. #: guix-git/doc/guix.texi:7272
  12329. 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}."
  12330. msgstr ""
  12331. #. type: item
  12332. #: guix-git/doc/guix.texi:7273
  12333. #, no-wrap
  12334. msgid "@code{outputs} (default: @code{'(\"out\")})"
  12335. msgstr ""
  12336. #. type: table
  12337. #: guix-git/doc/guix.texi:7276
  12338. msgid "The list of output names of the package. @xref{Packages with Multiple Outputs}, for typical uses of additional outputs."
  12339. msgstr ""
  12340. #. type: item
  12341. #: guix-git/doc/guix.texi:7277
  12342. #, no-wrap
  12343. msgid "@code{native-search-paths} (default: @code{'()})"
  12344. msgstr ""
  12345. #. type: itemx
  12346. #: guix-git/doc/guix.texi:7278
  12347. #, no-wrap
  12348. msgid "@code{search-paths} (default: @code{'()})"
  12349. msgstr ""
  12350. #. type: table
  12351. #: guix-git/doc/guix.texi:7282
  12352. msgid "A list of @code{search-path-specification} objects describing search-path environment variables honored by the package. @xref{Search Paths}, for more on search path specifications."
  12353. msgstr ""
  12354. #. type: table
  12355. #: guix-git/doc/guix.texi:7288
  12356. msgid "As for inputs, the distinction between @code{native-search-paths} and @code{search-paths} only matters when cross-compiling. In a cross-compilation context, @code{native-search-paths} applies exclusively to native inputs whereas @code{search-paths} applies only to host inputs."
  12357. msgstr ""
  12358. #. type: table
  12359. #: guix-git/doc/guix.texi:7295
  12360. msgid "Packages such as cross-compilers care about target inputs---for instance, our (modified) GCC cross-compiler has @env{CROSS_C_INCLUDE_PATH} in @code{search-paths}, which allows it to pick @file{.h} files for the target system and @emph{not} those of native inputs. For the majority of packages though, only @code{native-search-paths} makes sense."
  12361. msgstr ""
  12362. #. type: item
  12363. #: guix-git/doc/guix.texi:7296
  12364. #, no-wrap
  12365. msgid "@code{replacement} (default: @code{#f})"
  12366. msgstr ""
  12367. #. type: table
  12368. #: guix-git/doc/guix.texi:7300
  12369. 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."
  12370. msgstr ""
  12371. #. type: item
  12372. #: guix-git/doc/guix.texi:7301 guix-git/doc/guix.texi:13353
  12373. #, no-wrap
  12374. msgid "synopsis"
  12375. msgstr ""
  12376. #. type: table
  12377. #: guix-git/doc/guix.texi:7303
  12378. msgid "A one-line description of the package."
  12379. msgstr ""
  12380. #. type: code{#1}
  12381. #: guix-git/doc/guix.texi:7304 guix-git/doc/guix.texi:13354
  12382. #: guix-git/doc/guix.texi:36563 guix-git/doc/guix.texi:36723
  12383. #, no-wrap
  12384. msgid "description"
  12385. msgstr ""
  12386. #. type: table
  12387. #: guix-git/doc/guix.texi:7306
  12388. msgid "A more elaborate description of the package."
  12389. msgstr ""
  12390. #. type: code{#1}
  12391. #: guix-git/doc/guix.texi:7307
  12392. #, no-wrap
  12393. msgid "license"
  12394. msgstr ""
  12395. #. type: cindex
  12396. #: guix-git/doc/guix.texi:7308
  12397. #, no-wrap
  12398. msgid "license, of packages"
  12399. msgstr ""
  12400. #. type: table
  12401. #: guix-git/doc/guix.texi:7311
  12402. msgid "The license of the package; a value from @code{(guix licenses)}, or a list of such values."
  12403. msgstr ""
  12404. #. type: itemx
  12405. #: guix-git/doc/guix.texi:7312 guix-git/doc/guix.texi:13362
  12406. #, no-wrap
  12407. msgid "home-page"
  12408. msgstr ""
  12409. #. type: table
  12410. #: guix-git/doc/guix.texi:7314
  12411. msgid "The URL to the home-page of the package, as a string."
  12412. msgstr ""
  12413. #. type: item
  12414. #: guix-git/doc/guix.texi:7315
  12415. #, fuzzy, no-wrap
  12416. msgid "@code{supported-systems} (default: @code{%supported-systems})"
  12417. msgstr "@code{port}(默认值:@code{22})"
  12418. #. type: table
  12419. #: guix-git/doc/guix.texi:7318
  12420. msgid "The list of systems supported by the package, as strings of the form @code{architecture-kernel}, for example @code{\"x86_64-linux\"}."
  12421. msgstr ""
  12422. #. type: item
  12423. #: guix-git/doc/guix.texi:7319
  12424. #, no-wrap
  12425. msgid "@code{location} (default: source location of the @code{package} form)"
  12426. msgstr ""
  12427. #. type: table
  12428. #: guix-git/doc/guix.texi:7323
  12429. 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."
  12430. msgstr ""
  12431. #. type: deffn
  12432. #: guix-git/doc/guix.texi:7326
  12433. #, no-wrap
  12434. msgid "{Scheme Syntax} this-package"
  12435. msgstr ""
  12436. #. type: deffn
  12437. #: guix-git/doc/guix.texi:7329
  12438. msgid "When used in the @emph{lexical scope} of a package field definition, this identifier resolves to the package being defined."
  12439. msgstr ""
  12440. #. type: deffn
  12441. #: guix-git/doc/guix.texi:7332
  12442. msgid "The example below shows how to add a package as a native input of itself when cross-compiling:"
  12443. msgstr ""
  12444. #. type: lisp
  12445. #: guix-git/doc/guix.texi:7337
  12446. #, no-wrap
  12447. msgid ""
  12448. "(package\n"
  12449. " (name \"guile\")\n"
  12450. " ;; ...\n"
  12451. "\n"
  12452. msgstr ""
  12453. #. type: lisp
  12454. #: guix-git/doc/guix.texi:7343
  12455. #, no-wrap
  12456. msgid ""
  12457. " ;; When cross-compiled, Guile, for example, depends on\n"
  12458. " ;; a native version of itself. Add it here.\n"
  12459. " (native-inputs (if (%current-target-system)\n"
  12460. " (list this-package)\n"
  12461. " '())))\n"
  12462. msgstr ""
  12463. #. type: deffn
  12464. #: guix-git/doc/guix.texi:7346
  12465. msgid "It is an error to refer to @code{this-package} outside a package definition."
  12466. msgstr ""
  12467. #. type: Plain text
  12468. #: guix-git/doc/guix.texi:7350
  12469. msgid "The following helper procedures are provided to help deal with package inputs."
  12470. msgstr ""
  12471. #. type: deffn
  12472. #: guix-git/doc/guix.texi:7351
  12473. #, no-wrap
  12474. msgid "{Scheme Procedure} lookup-package-input @var{package} @var{name}"
  12475. msgstr ""
  12476. #. type: deffnx
  12477. #: guix-git/doc/guix.texi:7352
  12478. #, no-wrap
  12479. msgid "{Scheme Procedure} lookup-package-native-input @var{package} @var{name}"
  12480. msgstr ""
  12481. #. type: deffnx
  12482. #: guix-git/doc/guix.texi:7353
  12483. #, no-wrap
  12484. msgid "{Scheme Procedure} lookup-package-propagated-input @var{package} @var{name}"
  12485. msgstr ""
  12486. #. type: deffnx
  12487. #: guix-git/doc/guix.texi:7354
  12488. #, no-wrap
  12489. msgid "{Scheme Procedure} lookup-package-direct-input @var{package} @var{name}"
  12490. msgstr ""
  12491. #. type: deffn
  12492. #: guix-git/doc/guix.texi:7357
  12493. msgid "Look up @var{name} among @var{package}'s inputs (or native, propagated, or direct inputs). Return it if found, @code{#f} otherwise."
  12494. msgstr ""
  12495. #. type: deffn
  12496. #: guix-git/doc/guix.texi:7360
  12497. msgid "@var{name} is the name of a package depended on. Here's how you might use it:"
  12498. msgstr ""
  12499. #. type: lisp
  12500. #: guix-git/doc/guix.texi:7363
  12501. #, no-wrap
  12502. msgid ""
  12503. "(use-modules (guix packages) (gnu packages base))\n"
  12504. "\n"
  12505. msgstr ""
  12506. #. type: lisp
  12507. #: guix-git/doc/guix.texi:7366
  12508. #, no-wrap
  12509. msgid ""
  12510. "(lookup-package-direct-input coreutils \"gmp\")\n"
  12511. "@result{} #<package gmp@@6.2.1 @dots{}>\n"
  12512. msgstr ""
  12513. #. type: deffn
  12514. #: guix-git/doc/guix.texi:7370
  12515. msgid "In this example we obtain the @code{gmp} package that is among the direct inputs of @code{coreutils}."
  12516. msgstr ""
  12517. #. type: cindex
  12518. #: guix-git/doc/guix.texi:7372
  12519. #, fuzzy, no-wrap
  12520. msgid "development inputs, of a package"
  12521. msgstr "创建软件包的变体。"
  12522. #. type: cindex
  12523. #: guix-git/doc/guix.texi:7373
  12524. #, fuzzy, no-wrap
  12525. #| msgid "inputs, for Python packages"
  12526. msgid "implicit inputs, of a package"
  12527. msgstr "Python软件包的输入"
  12528. #. type: Plain text
  12529. #: guix-git/doc/guix.texi:7378
  12530. msgid "Sometimes you will want to obtain the list of inputs needed to @emph{develop} a package---all the inputs that are visible when the package is compiled. This is what the @code{package-development-inputs} procedure returns."
  12531. msgstr ""
  12532. #. type: deffn
  12533. #: guix-git/doc/guix.texi:7379
  12534. #, no-wrap
  12535. msgid "{Scheme Procedure} package-development-inputs @var{package} @"
  12536. msgstr ""
  12537. #. type: deffn
  12538. #: guix-git/doc/guix.texi:7386
  12539. msgid "[@var{system}] [#:target #f] Return the list of inputs required by @var{package} for development purposes on @var{system}. When @var{target} is true, return the inputs needed to cross-compile @var{package} from @var{system} to @var{triplet}, where @var{triplet} is a triplet such as @code{\"aarch64-linux-gnu\"}."
  12540. msgstr ""
  12541. #. type: deffn
  12542. #: guix-git/doc/guix.texi:7390
  12543. msgid "Note that the result includes both explicit inputs and implicit inputs---inputs automatically added by the build system (@pxref{Build Systems}). Let us take the @code{hello} package to illustrate that:"
  12544. msgstr ""
  12545. #. type: lisp
  12546. #: guix-git/doc/guix.texi:7393
  12547. #, no-wrap
  12548. msgid ""
  12549. "(use-modules (gnu packages base) (guix packages))\n"
  12550. "\n"
  12551. msgstr ""
  12552. #. type: lisp
  12553. #: guix-git/doc/guix.texi:7396
  12554. #, no-wrap
  12555. msgid ""
  12556. "hello\n"
  12557. "@result{} #<package hello@@2.10 gnu/packages/base.scm:79 7f585d4f6790>\n"
  12558. "\n"
  12559. msgstr ""
  12560. #. type: lisp
  12561. #: guix-git/doc/guix.texi:7399
  12562. #, no-wrap
  12563. msgid ""
  12564. "(package-direct-inputs hello)\n"
  12565. "@result{} ()\n"
  12566. "\n"
  12567. msgstr ""
  12568. #. type: lisp
  12569. #: guix-git/doc/guix.texi:7402
  12570. #, no-wrap
  12571. msgid ""
  12572. "(package-development-inputs hello)\n"
  12573. "@result{} ((\"source\" @dots{}) (\"tar\" #<package tar@@1.32 @dots{}>) @dots{})\n"
  12574. msgstr ""
  12575. #. type: deffn
  12576. #: guix-git/doc/guix.texi:7411
  12577. msgid "In this example, @code{package-direct-inputs} returns the empty list, because @code{hello} has zero explicit dependencies. Conversely, @code{package-development-inputs} includes inputs implicitly added by @code{gnu-build-system} that are required to build @code{hello}: tar, gzip, GCC, libc, Bash, and more. To visualize it, @command{guix graph hello} would show you explicit inputs, whereas @command{guix graph -t bag hello} would include implicit inputs (@pxref{Invoking guix graph})."
  12578. msgstr ""
  12579. #. type: Plain text
  12580. #: guix-git/doc/guix.texi:7417
  12581. 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."
  12582. msgstr ""
  12583. #. type: cindex
  12584. #: guix-git/doc/guix.texi:7418
  12585. #, no-wrap
  12586. msgid "tool chain, choosing a package's tool chain"
  12587. msgstr ""
  12588. #. type: deffn
  12589. #: guix-git/doc/guix.texi:7419
  12590. #, no-wrap
  12591. msgid "{Scheme Procedure} package-with-c-toolchain @var{package} @var{toolchain}"
  12592. msgstr ""
  12593. #. type: deffn
  12594. #: guix-git/doc/guix.texi:7424
  12595. 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."
  12596. msgstr ""
  12597. #. type: deffn
  12598. #: guix-git/doc/guix.texi:7428
  12599. 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:"
  12600. msgstr ""
  12601. #. type: lisp
  12602. #: guix-git/doc/guix.texi:7432
  12603. #, no-wrap
  12604. msgid ""
  12605. "(let ((toolchain (specification->package \"gcc-toolchain@@10\")))\n"
  12606. " (package-with-c-toolchain hello `((\"toolchain\" ,toolchain))))\n"
  12607. msgstr ""
  12608. #. type: deffn
  12609. #: guix-git/doc/guix.texi:7440
  12610. 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."
  12611. msgstr ""
  12612. #. type: subsection
  12613. #: guix-git/doc/guix.texi:7443
  12614. #, no-wrap
  12615. msgid "@code{origin} Reference"
  12616. msgstr ""
  12617. #. type: Plain text
  12618. #: guix-git/doc/guix.texi:7451
  12619. 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."
  12620. msgstr ""
  12621. #. type: deftp
  12622. #: guix-git/doc/guix.texi:7452
  12623. #, no-wrap
  12624. msgid "{Data Type} origin"
  12625. msgstr ""
  12626. #. type: deftp
  12627. #: guix-git/doc/guix.texi:7454
  12628. msgid "This is the data type representing a source code origin."
  12629. msgstr ""
  12630. #. type: code{#1}
  12631. #: guix-git/doc/guix.texi:7456 guix-git/doc/guix.texi:26983
  12632. #, no-wrap
  12633. msgid "uri"
  12634. msgstr ""
  12635. #. type: table
  12636. #: guix-git/doc/guix.texi:7461
  12637. 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."
  12638. msgstr ""
  12639. #. type: cindex
  12640. #: guix-git/doc/guix.texi:7462
  12641. #, no-wrap
  12642. msgid "fixed-output derivations, for download"
  12643. msgstr ""
  12644. #. type: code{#1}
  12645. #: guix-git/doc/guix.texi:7463
  12646. #, no-wrap
  12647. msgid "method"
  12648. msgstr ""
  12649. #. type: table
  12650. #: guix-git/doc/guix.texi:7470
  12651. 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})."
  12652. msgstr ""
  12653. #. type: table
  12654. #: guix-git/doc/guix.texi:7474
  12655. 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)."
  12656. msgstr ""
  12657. #. type: code{#1}
  12658. #: guix-git/doc/guix.texi:7475
  12659. #, no-wrap
  12660. msgid "sha256"
  12661. msgstr ""
  12662. #. type: table
  12663. #: guix-git/doc/guix.texi:7479
  12664. 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."
  12665. msgstr ""
  12666. #. type: code{#1}
  12667. #: guix-git/doc/guix.texi:7480
  12668. #, no-wrap
  12669. msgid "hash"
  12670. msgstr ""
  12671. #. type: table
  12672. #: guix-git/doc/guix.texi:7483
  12673. msgid "The @code{content-hash} object of the source---see below for how to use @code{content-hash}."
  12674. msgstr ""
  12675. #. type: table
  12676. #: guix-git/doc/guix.texi:7487
  12677. msgid "You can obtain this information using @code{guix download} (@pxref{Invoking guix download}) or @code{guix hash} (@pxref{Invoking guix hash})."
  12678. msgstr ""
  12679. #. type: item
  12680. #: guix-git/doc/guix.texi:7488
  12681. #, no-wrap
  12682. msgid "@code{file-name} (default: @code{#f})"
  12683. msgstr ""
  12684. #. type: table
  12685. #: guix-git/doc/guix.texi:7494
  12686. 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."
  12687. msgstr ""
  12688. #. type: item
  12689. #: guix-git/doc/guix.texi:7495
  12690. #, no-wrap
  12691. msgid "@code{patches} (default: @code{'()})"
  12692. msgstr ""
  12693. #. type: table
  12694. #: guix-git/doc/guix.texi:7498
  12695. 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."
  12696. msgstr ""
  12697. #. type: table
  12698. #: guix-git/doc/guix.texi:7502
  12699. 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}."
  12700. msgstr ""
  12701. #. type: item
  12702. #: guix-git/doc/guix.texi:7503
  12703. #, no-wrap
  12704. msgid "@code{snippet} (default: @code{#f})"
  12705. msgstr ""
  12706. #. type: table
  12707. #: guix-git/doc/guix.texi:7507
  12708. 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."
  12709. msgstr ""
  12710. #. type: item
  12711. #: guix-git/doc/guix.texi:7508
  12712. #, no-wrap
  12713. msgid "@code{patch-flags} (default: @code{'(\"-p1\")})"
  12714. msgstr ""
  12715. #. type: table
  12716. #: guix-git/doc/guix.texi:7511
  12717. msgid "A list of command-line flags that should be passed to the @code{patch} command."
  12718. msgstr ""
  12719. #. type: item
  12720. #: guix-git/doc/guix.texi:7512
  12721. #, no-wrap
  12722. msgid "@code{patch-inputs} (default: @code{#f})"
  12723. msgstr ""
  12724. #. type: table
  12725. #: guix-git/doc/guix.texi:7516
  12726. 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."
  12727. msgstr ""
  12728. #. type: item
  12729. #: guix-git/doc/guix.texi:7517 guix-git/doc/guix.texi:26855
  12730. #, no-wrap
  12731. msgid "@code{modules} (default: @code{'()})"
  12732. msgstr ""
  12733. #. type: table
  12734. #: guix-git/doc/guix.texi:7520
  12735. msgid "A list of Guile modules that should be loaded during the patching process and while running the code in the @code{snippet} field."
  12736. msgstr ""
  12737. #. type: item
  12738. #: guix-git/doc/guix.texi:7521
  12739. #, no-wrap
  12740. msgid "@code{patch-guile} (default: @code{#f})"
  12741. msgstr ""
  12742. #. type: table
  12743. #: guix-git/doc/guix.texi:7524
  12744. msgid "The Guile package that should be used in the patching process. When this is @code{#f}, a sensible default is used."
  12745. msgstr ""
  12746. #. type: deftp
  12747. #: guix-git/doc/guix.texi:7527
  12748. #, no-wrap
  12749. msgid "{Data Type} content-hash @var{value} [@var{algorithm}]"
  12750. msgstr ""
  12751. #. type: deftp
  12752. #: guix-git/doc/guix.texi:7531
  12753. 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}."
  12754. msgstr ""
  12755. #. type: deftp
  12756. #: guix-git/doc/guix.texi:7534
  12757. msgid "@var{value} can be a literal string, in which case it is base32-decoded, or it can be a bytevector."
  12758. msgstr ""
  12759. #. type: deftp
  12760. #: guix-git/doc/guix.texi:7536
  12761. #, fuzzy
  12762. msgid "The following forms are all equivalent:"
  12763. msgstr "这些依赖是可选的:"
  12764. #. type: lisp
  12765. #: guix-git/doc/guix.texi:7545
  12766. #, no-wrap
  12767. msgid ""
  12768. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\")\n"
  12769. "(content-hash \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"\n"
  12770. " sha256)\n"
  12771. "(content-hash (base32\n"
  12772. " \"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj\"))\n"
  12773. "(content-hash (base64 \"kkb+RPaP7uyMZmu4eXPVkM4BN8yhRd8BTHLslb6f/Rc=\")\n"
  12774. " sha256)\n"
  12775. msgstr ""
  12776. #. type: deftp
  12777. #: guix-git/doc/guix.texi:7550
  12778. 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}."
  12779. msgstr ""
  12780. #. type: Plain text
  12781. #: guix-git/doc/guix.texi:7556
  12782. 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."
  12783. msgstr ""
  12784. #. type: deffn
  12785. #: guix-git/doc/guix.texi:7557
  12786. #, no-wrap
  12787. msgid "{Scheme Procedure} url-fetch @var{url} @var{hash-algo} @var{hash} @"
  12788. msgstr ""
  12789. #. type: deffn
  12790. #: guix-git/doc/guix.texi:7565
  12791. 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."
  12792. msgstr ""
  12793. #. type: deffn
  12794. #: guix-git/doc/guix.texi:7568
  12795. 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}."
  12796. msgstr ""
  12797. #. type: deffn
  12798. #: guix-git/doc/guix.texi:7571
  12799. msgid "Alternatively, when URL starts with @code{file://}, return the corresponding file name in the store."
  12800. msgstr ""
  12801. #. type: Plain text
  12802. #: guix-git/doc/guix.texi:7577
  12803. 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."
  12804. msgstr ""
  12805. #. type: deffn
  12806. #: guix-git/doc/guix.texi:7578
  12807. #, no-wrap
  12808. msgid "{Scheme Procedure} git-fetch @var{ref} @var{hash-algo} @var{hash}"
  12809. msgstr ""
  12810. #. type: deffn
  12811. #: guix-git/doc/guix.texi:7583
  12812. 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}."
  12813. msgstr ""
  12814. #. type: deftp
  12815. #: guix-git/doc/guix.texi:7585
  12816. #, fuzzy, no-wrap
  12817. msgid "{Data Type} git-reference"
  12818. msgstr "{数据类型} build-machine"
  12819. #. type: deftp
  12820. #: guix-git/doc/guix.texi:7588
  12821. msgid "This data type represents a Git reference for @code{git-fetch} to retrieve."
  12822. msgstr ""
  12823. #. type: code{#1}
  12824. #: guix-git/doc/guix.texi:7590 guix-git/doc/guix.texi:24706
  12825. #, no-wrap
  12826. msgid "url"
  12827. msgstr ""
  12828. #. type: table
  12829. #: guix-git/doc/guix.texi:7592
  12830. msgid "The URL of the Git repository to clone."
  12831. msgstr ""
  12832. #. type: code{#1}
  12833. #: guix-git/doc/guix.texi:7593
  12834. #, no-wrap
  12835. msgid "commit"
  12836. msgstr ""
  12837. #. type: table
  12838. #: guix-git/doc/guix.texi:7598
  12839. msgid "This string denotes either the commit to fetch (a hexadecimal string), or the tag to fetch. You can also use a ``short'' commit ID or a @command{git describe} style identifier such as @code{v1.0.1-10-g58d7909c97}."
  12840. msgstr ""
  12841. #. type: item
  12842. #: guix-git/doc/guix.texi:7599
  12843. #, fuzzy, no-wrap
  12844. msgid "@code{recursive?} (default: @code{#f})"
  12845. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  12846. #. type: table
  12847. #: guix-git/doc/guix.texi:7601
  12848. msgid "This Boolean indicates whether to recursively fetch Git sub-modules."
  12849. msgstr ""
  12850. #. type: deftp
  12851. #: guix-git/doc/guix.texi:7605
  12852. msgid "The example below denotes the @code{v2.10} tag of the GNU@tie{}Hello repository:"
  12853. msgstr ""
  12854. #. type: lisp
  12855. #: guix-git/doc/guix.texi:7610
  12856. #, fuzzy, no-wrap
  12857. msgid ""
  12858. "(git-reference\n"
  12859. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12860. " (commit \"v2.10\"))\n"
  12861. msgstr "git clone https://git.savannah.gnu.org/git/guix.git\n"
  12862. #. type: deftp
  12863. #: guix-git/doc/guix.texi:7614
  12864. msgid "This is equivalent to the reference below, which explicitly names the commit:"
  12865. msgstr ""
  12866. #. type: lisp
  12867. #: guix-git/doc/guix.texi:7619
  12868. #, no-wrap
  12869. msgid ""
  12870. "(git-reference\n"
  12871. " (url \"https://git.savannah.gnu.org/git/hello.git\")\n"
  12872. " (commit \"dc7dc56a00e48fe6f231a58f6537139fe2908fb9\"))\n"
  12873. msgstr ""
  12874. #. type: Plain text
  12875. #: guix-git/doc/guix.texi:7625
  12876. 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."
  12877. msgstr ""
  12878. #. type: deffn
  12879. #: guix-git/doc/guix.texi:7626
  12880. #, no-wrap
  12881. msgid "{Scheme Procedure} hg-fetch @var{ref} @var{hash-algo} @var{hash} @"
  12882. msgstr ""
  12883. #. type: deffn
  12884. #: guix-git/doc/guix.texi:7632
  12885. 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}."
  12886. msgstr ""
  12887. #. type: cindex
  12888. #: guix-git/doc/guix.texi:7637
  12889. #, fuzzy, no-wrap
  12890. msgid "customizing packages"
  12891. msgstr "定制软件包"
  12892. #. type: cindex
  12893. #: guix-git/doc/guix.texi:7638
  12894. #, fuzzy, no-wrap
  12895. msgid "variants, of packages"
  12896. msgstr "创建软件包的变体。"
  12897. #. type: Plain text
  12898. #: guix-git/doc/guix.texi:7648
  12899. 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!"
  12900. msgstr ""
  12901. #. type: cindex
  12902. #: guix-git/doc/guix.texi:7649
  12903. #, fuzzy, no-wrap
  12904. msgid "inherit, for package definitions"
  12905. msgstr "从软件包定义里寻找错误。"
  12906. #. type: Plain text
  12907. #: guix-git/doc/guix.texi:7656
  12908. 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."
  12909. msgstr ""
  12910. #. type: Plain text
  12911. #: guix-git/doc/guix.texi:7661
  12912. 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!):"
  12913. msgstr ""
  12914. #. type: lisp
  12915. #: guix-git/doc/guix.texi:7664
  12916. #, no-wrap
  12917. msgid ""
  12918. "(use-modules (gnu packages base)) ;for 'hello'\n"
  12919. "\n"
  12920. msgstr ""
  12921. #. type: lisp
  12922. #: guix-git/doc/guix.texi:7676
  12923. #, no-wrap
  12924. msgid ""
  12925. "(define hello-2.2\n"
  12926. " (package\n"
  12927. " (inherit hello)\n"
  12928. " (version \"2.2\")\n"
  12929. " (source (origin\n"
  12930. " (method url-fetch)\n"
  12931. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  12932. " \".tar.gz\"))\n"
  12933. " (sha256\n"
  12934. " (base32\n"
  12935. " \"0lappv4slgb5spyqbh6yl5r013zv72yqg2pcl30mginf3wdqd8k9\"))))))\n"
  12936. msgstr ""
  12937. #. type: Plain text
  12938. #: guix-git/doc/guix.texi:7685
  12939. 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."
  12940. msgstr ""
  12941. #. type: Plain text
  12942. #: guix-git/doc/guix.texi:7691
  12943. 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:"
  12944. msgstr ""
  12945. #. type: lisp
  12946. #: guix-git/doc/guix.texi:7694
  12947. #, no-wrap
  12948. msgid ""
  12949. "(use-modules (gnu packages gdb)) ;for 'gdb'\n"
  12950. "\n"
  12951. msgstr ""
  12952. #. type: lisp
  12953. #: guix-git/doc/guix.texi:7700
  12954. #, no-wrap
  12955. msgid ""
  12956. "(define gdb-sans-guile\n"
  12957. " (package\n"
  12958. " (inherit gdb)\n"
  12959. " (inputs (modify-inputs (package-inputs gdb)\n"
  12960. " (delete \"guile\")))))\n"
  12961. msgstr ""
  12962. #. type: Plain text
  12963. #: guix-git/doc/guix.texi:7706
  12964. msgid "The @code{modify-inputs} form above removes the @code{\"guile\"} package from the @code{inputs} field of @code{gdb}. The @code{modify-inputs} macro is a helper that can prove useful anytime you want to remove, add, or replace package inputs."
  12965. msgstr ""
  12966. #. type: deffn
  12967. #: guix-git/doc/guix.texi:7707
  12968. #, no-wrap
  12969. msgid "{Scheme Syntax} modify-inputs @var{inputs} @var{clauses}"
  12970. msgstr ""
  12971. #. type: deffn
  12972. #: guix-git/doc/guix.texi:7711
  12973. msgid "Modify the given package inputs, as returned by @code{package-inputs} & co., according to the given clauses. Each clause must have one of the following forms:"
  12974. msgstr ""
  12975. #. type: item
  12976. #: guix-git/doc/guix.texi:7713
  12977. #, fuzzy, no-wrap
  12978. msgid "(delete @var{name}@dots{})"
  12979. msgstr "--log-compression=@var{type}"
  12980. #. type: table
  12981. #: guix-git/doc/guix.texi:7715
  12982. msgid "Delete from the inputs packages with the given @var{name}s (strings)."
  12983. msgstr ""
  12984. #. type: item
  12985. #: guix-git/doc/guix.texi:7716
  12986. #, fuzzy, no-wrap
  12987. msgid "(append @var{package}@dots{})"
  12988. msgstr "guix install emacs-guix\n"
  12989. #. type: table
  12990. #: guix-git/doc/guix.texi:7718
  12991. msgid "Add @var{package}s to the end of the input list."
  12992. msgstr ""
  12993. #. type: item
  12994. #: guix-git/doc/guix.texi:7719
  12995. #, fuzzy, no-wrap
  12996. msgid "(prepend @var{package}@dots{})"
  12997. msgstr "guix install emacs-guix\n"
  12998. #. type: table
  12999. #: guix-git/doc/guix.texi:7721
  13000. msgid "Add @var{package}s to the front of the input list."
  13001. msgstr ""
  13002. #. type: deffn
  13003. #: guix-git/doc/guix.texi:7725
  13004. msgid "The example below removes the GMP and ACL inputs of Coreutils and adds libcap to the back of the input list:"
  13005. msgstr ""
  13006. #. type: lisp
  13007. #: guix-git/doc/guix.texi:7730
  13008. #, no-wrap
  13009. msgid ""
  13010. "(modify-inputs (package-inputs coreutils)\n"
  13011. " (delete \"gmp\" \"acl\")\n"
  13012. " (append libcap))\n"
  13013. msgstr ""
  13014. #. type: deffn
  13015. #: guix-git/doc/guix.texi:7734
  13016. msgid "The example below replaces the @code{guile} package from the inputs of @code{guile-redis} with @code{guile-2.2}:"
  13017. msgstr ""
  13018. #. type: lisp
  13019. #: guix-git/doc/guix.texi:7738
  13020. #, no-wrap
  13021. msgid ""
  13022. "(modify-inputs (package-inputs guile-redis)\n"
  13023. " (replace \"guile\" guile-2.2))\n"
  13024. msgstr ""
  13025. #. type: deffn
  13026. #: guix-git/doc/guix.texi:7742
  13027. msgid "The last type of clause is @code{prepend}, to add inputs to the front of the list."
  13028. msgstr ""
  13029. #. type: Plain text
  13030. #: guix-git/doc/guix.texi:7751
  13031. 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:"
  13032. msgstr ""
  13033. #. type: lisp
  13034. #: guix-git/doc/guix.texi:7761
  13035. #, no-wrap
  13036. msgid ""
  13037. "(define (make-lua-socket name lua)\n"
  13038. " ;; Return a luasocket package built with LUA.\n"
  13039. " (package\n"
  13040. " (name name)\n"
  13041. " (version \"3.0\")\n"
  13042. " ;; several fields omitted\n"
  13043. " (inputs (list lua))\n"
  13044. " (synopsis \"Socket library for Lua\")))\n"
  13045. "\n"
  13046. msgstr ""
  13047. #. type: lisp
  13048. #: guix-git/doc/guix.texi:7764
  13049. #, no-wrap
  13050. msgid ""
  13051. "(define-public lua5.1-socket\n"
  13052. " (make-lua-socket \"lua5.1-socket\" lua-5.1))\n"
  13053. "\n"
  13054. msgstr ""
  13055. #. type: lisp
  13056. #: guix-git/doc/guix.texi:7767
  13057. #, no-wrap
  13058. msgid ""
  13059. "(define-public lua5.2-socket\n"
  13060. " (make-lua-socket \"lua5.2-socket\" lua-5.2))\n"
  13061. msgstr ""
  13062. #. type: Plain text
  13063. #: guix-git/doc/guix.texi:7775
  13064. 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})."
  13065. msgstr ""
  13066. #. type: cindex
  13067. #: guix-git/doc/guix.texi:7776
  13068. #, no-wrap
  13069. msgid "package transformations"
  13070. msgstr ""
  13071. #. type: Plain text
  13072. #: guix-git/doc/guix.texi:7781
  13073. 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}):"
  13074. msgstr ""
  13075. #. type: deffn
  13076. #: guix-git/doc/guix.texi:7782
  13077. #, no-wrap
  13078. msgid "{Scheme Procedure} options->transformation @var{opts}"
  13079. msgstr ""
  13080. #. type: deffn
  13081. #: guix-git/doc/guix.texi:7786
  13082. 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:"
  13083. msgstr ""
  13084. #. type: lisp
  13085. #: guix-git/doc/guix.texi:7790
  13086. #, no-wrap
  13087. msgid ""
  13088. "((with-branch . \"guile-gcrypt=master\")\n"
  13089. " (without-tests . \"libgcrypt\"))\n"
  13090. msgstr ""
  13091. #. type: deffn
  13092. #: guix-git/doc/guix.texi:7794
  13093. msgid "Each symbol names a transformation and the corresponding string is an argument to that transformation."
  13094. msgstr ""
  13095. #. type: Plain text
  13096. #: guix-git/doc/guix.texi:7797
  13097. msgid "For instance, a manifest equivalent to this command:"
  13098. msgstr ""
  13099. #. type: example
  13100. #: guix-git/doc/guix.texi:7802
  13101. #, no-wrap
  13102. msgid ""
  13103. "guix build guix \\\n"
  13104. " --with-branch=guile-gcrypt=master \\\n"
  13105. " --with-debug-info=zlib\n"
  13106. msgstr ""
  13107. #. type: Plain text
  13108. #: guix-git/doc/guix.texi:7806
  13109. msgid "... would look like this:"
  13110. msgstr ""
  13111. #. type: lisp
  13112. #: guix-git/doc/guix.texi:7809
  13113. #, no-wrap
  13114. msgid ""
  13115. "(use-modules (guix transformations))\n"
  13116. "\n"
  13117. msgstr ""
  13118. #. type: lisp
  13119. #: guix-git/doc/guix.texi:7815
  13120. #, no-wrap
  13121. msgid ""
  13122. "(define transform\n"
  13123. " ;; The package transformation procedure.\n"
  13124. " (options->transformation\n"
  13125. " '((with-branch . \"guile-gcrypt=master\")\n"
  13126. " (with-debug-info . \"zlib\"))))\n"
  13127. "\n"
  13128. msgstr ""
  13129. #. type: lisp
  13130. #: guix-git/doc/guix.texi:7818
  13131. #, no-wrap
  13132. msgid ""
  13133. "(packages->manifest\n"
  13134. " (list (transform (specification->package \"guix\"))))\n"
  13135. msgstr ""
  13136. #. type: cindex
  13137. #: guix-git/doc/guix.texi:7820
  13138. #, no-wrap
  13139. msgid "input rewriting"
  13140. msgstr ""
  13141. #. type: cindex
  13142. #: guix-git/doc/guix.texi:7821
  13143. #, no-wrap
  13144. msgid "dependency graph rewriting"
  13145. msgstr ""
  13146. #. type: Plain text
  13147. #: guix-git/doc/guix.texi:7828
  13148. 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."
  13149. msgstr ""
  13150. #. type: Plain text
  13151. #: guix-git/doc/guix.texi:7832
  13152. 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."
  13153. msgstr ""
  13154. #. type: deffn
  13155. #: guix-git/doc/guix.texi:7833
  13156. #, no-wrap
  13157. msgid "{Scheme Procedure} package-input-rewriting @var{replacements} @"
  13158. msgstr ""
  13159. #. type: deffn
  13160. #: guix-git/doc/guix.texi:7840
  13161. 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."
  13162. msgstr ""
  13163. #. type: deffn
  13164. #: guix-git/doc/guix.texi:7843
  13165. msgid "Optionally, @var{rewrite-name} is a one-argument procedure that takes the name of a package and returns its new name after rewrite."
  13166. msgstr ""
  13167. #. type: table
  13168. #: guix-git/doc/guix.texi:7847 guix-git/doc/guix.texi:11634
  13169. msgid "Consider this example:"
  13170. msgstr ""
  13171. #. type: lisp
  13172. #: guix-git/doc/guix.texi:7853
  13173. #, no-wrap
  13174. msgid ""
  13175. "(define libressl-instead-of-openssl\n"
  13176. " ;; This is a procedure to replace OPENSSL by LIBRESSL,\n"
  13177. " ;; recursively.\n"
  13178. " (package-input-rewriting `((,openssl . ,libressl))))\n"
  13179. "\n"
  13180. msgstr ""
  13181. #. type: lisp
  13182. #: guix-git/doc/guix.texi:7856
  13183. #, no-wrap
  13184. msgid ""
  13185. "(define git-with-libressl\n"
  13186. " (libressl-instead-of-openssl git))\n"
  13187. msgstr ""
  13188. #. type: Plain text
  13189. #: guix-git/doc/guix.texi:7864
  13190. 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}})."
  13191. msgstr ""
  13192. #. type: Plain text
  13193. #: guix-git/doc/guix.texi:7867
  13194. msgid "The following variant of @code{package-input-rewriting} can match packages to be replaced by name rather than by identity."
  13195. msgstr ""
  13196. #. type: deffn
  13197. #: guix-git/doc/guix.texi:7868
  13198. #, no-wrap
  13199. msgid "{Scheme Procedure} package-input-rewriting/spec @var{replacements} [#:deep? #t]"
  13200. msgstr ""
  13201. #. type: deffn
  13202. #: guix-git/doc/guix.texi:7875
  13203. 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."
  13204. msgstr ""
  13205. #. type: Plain text
  13206. #: guix-git/doc/guix.texi:7878
  13207. msgid "The example above could be rewritten this way:"
  13208. msgstr ""
  13209. #. type: lisp
  13210. #: guix-git/doc/guix.texi:7883
  13211. #, no-wrap
  13212. msgid ""
  13213. "(define libressl-instead-of-openssl\n"
  13214. " ;; Replace all the packages called \"openssl\" with LibreSSL.\n"
  13215. " (package-input-rewriting/spec `((\"openssl\" . ,(const libressl)))))\n"
  13216. msgstr ""
  13217. #. type: Plain text
  13218. #: guix-git/doc/guix.texi:7888
  13219. 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."
  13220. msgstr ""
  13221. #. type: Plain text
  13222. #: guix-git/doc/guix.texi:7892
  13223. msgid "A more generic procedure to rewrite a package dependency graph is @code{package-mapping}: it supports arbitrary changes to nodes in the graph."
  13224. msgstr ""
  13225. #. type: deffn
  13226. #: guix-git/doc/guix.texi:7893
  13227. #, no-wrap
  13228. msgid "{Scheme Procedure} package-mapping @var{proc} [@var{cut?}] [#:deep? #f]"
  13229. msgstr ""
  13230. #. type: deffn
  13231. #: guix-git/doc/guix.texi:7898
  13232. 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."
  13233. msgstr ""
  13234. #. type: cindex
  13235. #: guix-git/doc/guix.texi:7904
  13236. #, no-wrap
  13237. msgid "build system"
  13238. msgstr ""
  13239. #. type: Plain text
  13240. #: guix-git/doc/guix.texi:7909
  13241. 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."
  13242. msgstr ""
  13243. #. type: Plain text
  13244. #: guix-git/doc/guix.texi:7913
  13245. 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."
  13246. msgstr ""
  13247. #. type: cindex
  13248. #: guix-git/doc/guix.texi:7914
  13249. #, no-wrap
  13250. msgid "bag (low-level package representation)"
  13251. msgstr ""
  13252. #. type: Plain text
  13253. #: guix-git/doc/guix.texi:7924
  13254. 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}})."
  13255. msgstr ""
  13256. #. type: Plain text
  13257. #: guix-git/doc/guix.texi:7932
  13258. 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})."
  13259. msgstr ""
  13260. #. type: Plain text
  13261. #: guix-git/doc/guix.texi:7936
  13262. 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."
  13263. msgstr ""
  13264. #. type: defvr
  13265. #: guix-git/doc/guix.texi:7937
  13266. #, no-wrap
  13267. msgid "{Scheme Variable} gnu-build-system"
  13268. msgstr ""
  13269. #. type: defvr
  13270. #: guix-git/doc/guix.texi:7941
  13271. msgid "@code{gnu-build-system} represents the GNU Build System, and variants thereof (@pxref{Configuration, configuration and makefile conventions,, standards, GNU Coding Standards})."
  13272. msgstr ""
  13273. #. type: cindex
  13274. #: guix-git/doc/guix.texi:7942 guix-git/doc/guix.texi:8891
  13275. #: guix-git/doc/guix.texi:9451
  13276. #, no-wrap
  13277. msgid "build phases"
  13278. msgstr ""
  13279. #. type: defvr
  13280. #: guix-git/doc/guix.texi:7949
  13281. 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."
  13282. msgstr ""
  13283. #. type: defvr
  13284. #: guix-git/doc/guix.texi:7956
  13285. 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."
  13286. msgstr ""
  13287. #. type: defvr
  13288. #: guix-git/doc/guix.texi:7960
  13289. 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:"
  13290. msgstr ""
  13291. #. type: item
  13292. #: guix-git/doc/guix.texi:7962
  13293. #, no-wrap
  13294. msgid "#:phases"
  13295. msgstr ""
  13296. #. type: table
  13297. #: guix-git/doc/guix.texi:7965
  13298. msgid "This argument specifies build-side code that evaluates to an alist of build phases. @xref{Build Phases}, for more information."
  13299. msgstr ""
  13300. #. type: item
  13301. #: guix-git/doc/guix.texi:7966
  13302. #, fuzzy, no-wrap
  13303. msgid "#:configure-flags"
  13304. msgstr "系统配置"
  13305. #. type: table
  13306. #: guix-git/doc/guix.texi:7969
  13307. msgid "This is a list of flags (strings) passed to the @command{configure} script. @xref{Defining Packages}, for an example."
  13308. msgstr ""
  13309. #. type: item
  13310. #: guix-git/doc/guix.texi:7970
  13311. #, no-wrap
  13312. msgid "#:make-flags"
  13313. msgstr ""
  13314. #. type: table
  13315. #: guix-git/doc/guix.texi:7974
  13316. msgid "This list of strings contains flags passed as arguments to @command{make} invocations in the @code{build}, @code{check}, and @code{install} phases."
  13317. msgstr ""
  13318. #. type: item
  13319. #: guix-git/doc/guix.texi:7975
  13320. #, no-wrap
  13321. msgid "#:out-of-source?"
  13322. msgstr ""
  13323. #. type: table
  13324. #: guix-git/doc/guix.texi:7978
  13325. msgid "This Boolean, @code{#f} by default, indicates whether to run builds in a build directory separate from the source tree."
  13326. msgstr ""
  13327. #. type: table
  13328. #: guix-git/doc/guix.texi:7983
  13329. 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}."
  13330. msgstr ""
  13331. #. type: item
  13332. #: guix-git/doc/guix.texi:7984
  13333. #, no-wrap
  13334. msgid "#:tests?"
  13335. msgstr ""
  13336. #. type: table
  13337. #: guix-git/doc/guix.texi:7987
  13338. msgid "This Boolean, @code{#t} by default, indicates whether the @code{check} phase should run the package's test suite."
  13339. msgstr ""
  13340. #. type: item
  13341. #: guix-git/doc/guix.texi:7988
  13342. #, no-wrap
  13343. msgid "#:test-target"
  13344. msgstr ""
  13345. #. type: table
  13346. #: guix-git/doc/guix.texi:7991
  13347. msgid "This string, @code{\"check\"} by default, gives the name of the makefile target used by the @code{check} phase."
  13348. msgstr ""
  13349. #. type: item
  13350. #: guix-git/doc/guix.texi:7992
  13351. #, no-wrap
  13352. msgid "#:parallel-build?"
  13353. msgstr ""
  13354. #. type: itemx
  13355. #: guix-git/doc/guix.texi:7993
  13356. #, no-wrap
  13357. msgid "#:parallel-tests?"
  13358. msgstr ""
  13359. #. type: table
  13360. #: guix-git/doc/guix.texi:8000
  13361. 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}})."
  13362. msgstr ""
  13363. #. type: cindex
  13364. #: guix-git/doc/guix.texi:8001
  13365. #, no-wrap
  13366. msgid "RUNPATH, validation"
  13367. msgstr ""
  13368. #. type: item
  13369. #: guix-git/doc/guix.texi:8002
  13370. #, no-wrap
  13371. msgid "#:validate-runpath?"
  13372. msgstr ""
  13373. #. type: table
  13374. #: guix-git/doc/guix.texi:8006
  13375. 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."
  13376. msgstr ""
  13377. #. type: table
  13378. #: guix-git/doc/guix.texi:8014
  13379. msgid "This validation step consists in making sure that all the shared libraries needed by an ELF binary, which are listed as @code{DT_NEEDED} entries in its @code{PT_DYNAMIC} segment, appear in the @code{DT_RUNPATH} entry of that binary. In other words, it ensures that running or using those binaries will not result in a ``file not found'' error at run time. @xref{Options, @option{-rpath},, ld, The GNU Linker}, for more information on @code{RUNPATH}."
  13380. msgstr ""
  13381. #. type: item
  13382. #: guix-git/doc/guix.texi:8015
  13383. #, fuzzy, no-wrap
  13384. msgid "#:substitutable?"
  13385. msgstr "substitutes"
  13386. #. type: table
  13387. #: guix-git/doc/guix.texi:8019
  13388. 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})."
  13389. msgstr ""
  13390. #. type: item
  13391. #: guix-git/doc/guix.texi:8020
  13392. #, no-wrap
  13393. msgid "#:allowed-references"
  13394. msgstr ""
  13395. #. type: itemx
  13396. #: guix-git/doc/guix.texi:8021
  13397. #, no-wrap
  13398. msgid "#:disallowed-references"
  13399. msgstr ""
  13400. #. type: table
  13401. #: guix-git/doc/guix.texi:8026
  13402. 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."
  13403. msgstr ""
  13404. #. type: table
  13405. #: guix-git/doc/guix.texi:8031
  13406. 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})."
  13407. msgstr ""
  13408. #. type: defvr
  13409. #: guix-git/doc/guix.texi:8034
  13410. msgid "Most other build systems support these keyword arguments."
  13411. msgstr ""
  13412. #. type: Plain text
  13413. #: guix-git/doc/guix.texi:8041
  13414. 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."
  13415. msgstr ""
  13416. #. type: defvr
  13417. #: guix-git/doc/guix.texi:8042
  13418. #, no-wrap
  13419. msgid "{Scheme Variable} ant-build-system"
  13420. msgstr ""
  13421. #. type: defvr
  13422. #: guix-git/doc/guix.texi:8046
  13423. 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}."
  13424. msgstr ""
  13425. #. type: defvr
  13426. #: guix-git/doc/guix.texi:8051
  13427. 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."
  13428. msgstr ""
  13429. #. type: defvr
  13430. #: guix-git/doc/guix.texi:8057
  13431. 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''."
  13432. msgstr ""
  13433. #. type: defvr
  13434. #: guix-git/doc/guix.texi:8065
  13435. 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."
  13436. msgstr ""
  13437. #. type: defvr
  13438. #: guix-git/doc/guix.texi:8069
  13439. 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."
  13440. msgstr ""
  13441. #. type: defvr
  13442. #: guix-git/doc/guix.texi:8072
  13443. #, no-wrap
  13444. msgid "{Scheme Variable} android-ndk-build-system"
  13445. msgstr ""
  13446. #. type: cindex
  13447. #: guix-git/doc/guix.texi:8073
  13448. #, no-wrap
  13449. msgid "Android distribution"
  13450. msgstr ""
  13451. #. type: cindex
  13452. #: guix-git/doc/guix.texi:8074
  13453. #, no-wrap
  13454. msgid "Android NDK build system"
  13455. msgstr ""
  13456. #. type: defvr
  13457. #: guix-git/doc/guix.texi:8078
  13458. 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."
  13459. msgstr ""
  13460. #. type: defvr
  13461. #: guix-git/doc/guix.texi:8082
  13462. 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."
  13463. msgstr ""
  13464. #. type: defvr
  13465. #: guix-git/doc/guix.texi:8085
  13466. msgid "It's also assumed that the union of all the dependencies of a package has no conflicting files."
  13467. msgstr ""
  13468. #. type: defvr
  13469. #: guix-git/doc/guix.texi:8088
  13470. msgid "For the time being, cross-compilation is not supported - so right now the libraries and header files are assumed to be host tools."
  13471. msgstr ""
  13472. #. type: defvr
  13473. #: guix-git/doc/guix.texi:8091
  13474. #, no-wrap
  13475. msgid "{Scheme Variable} asdf-build-system/source"
  13476. msgstr ""
  13477. #. type: defvrx
  13478. #: guix-git/doc/guix.texi:8092
  13479. #, no-wrap
  13480. msgid "{Scheme Variable} asdf-build-system/sbcl"
  13481. msgstr ""
  13482. #. type: defvrx
  13483. #: guix-git/doc/guix.texi:8093
  13484. #, no-wrap
  13485. msgid "{Scheme Variable} asdf-build-system/ecl"
  13486. msgstr ""
  13487. #. type: defvr
  13488. #: guix-git/doc/guix.texi:8099
  13489. 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."
  13490. msgstr ""
  13491. #. type: defvr
  13492. #: guix-git/doc/guix.texi:8106
  13493. 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."
  13494. msgstr ""
  13495. #. type: defvr
  13496. #: guix-git/doc/guix.texi:8110
  13497. 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}."
  13498. msgstr ""
  13499. #. type: defvr
  13500. #: guix-git/doc/guix.texi:8114
  13501. 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."
  13502. msgstr ""
  13503. #. type: defvr
  13504. #: guix-git/doc/guix.texi:8122
  13505. 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."
  13506. msgstr ""
  13507. #. type: defvr
  13508. #: guix-git/doc/guix.texi:8131
  13509. 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."
  13510. msgstr ""
  13511. #. type: defvr
  13512. #: guix-git/doc/guix.texi:8136
  13513. 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."
  13514. msgstr ""
  13515. #. type: defvr
  13516. #: guix-git/doc/guix.texi:8139
  13517. #, no-wrap
  13518. msgid "{Scheme Variable} cargo-build-system"
  13519. msgstr ""
  13520. #. type: cindex
  13521. #: guix-git/doc/guix.texi:8140
  13522. #, no-wrap
  13523. msgid "Rust programming language"
  13524. msgstr ""
  13525. #. type: cindex
  13526. #: guix-git/doc/guix.texi:8141
  13527. #, no-wrap
  13528. msgid "Cargo (Rust build system)"
  13529. msgstr ""
  13530. #. type: defvr
  13531. #: guix-git/doc/guix.texi:8145
  13532. 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}."
  13533. msgstr ""
  13534. #. type: defvr
  13535. #: guix-git/doc/guix.texi:8148
  13536. 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."
  13537. msgstr ""
  13538. #. type: defvr
  13539. #: guix-git/doc/guix.texi:8158
  13540. 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."
  13541. msgstr ""
  13542. #. type: defvr
  13543. #: guix-git/doc/guix.texi:8168
  13544. 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."
  13545. msgstr ""
  13546. #. type: defvr
  13547. #: guix-git/doc/guix.texi:8170
  13548. #, no-wrap
  13549. msgid "{Scheme Variable} chicken-build-system"
  13550. msgstr ""
  13551. #. type: defvr
  13552. #: guix-git/doc/guix.texi:8175
  13553. 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."
  13554. msgstr ""
  13555. #. type: defvr
  13556. #: guix-git/doc/guix.texi:8178
  13557. msgid "This build system adds @code{chicken} to the package inputs, as well as the packages of @code{gnu-build-system}."
  13558. msgstr ""
  13559. #. type: defvr
  13560. #: guix-git/doc/guix.texi:8182
  13561. 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."
  13562. msgstr ""
  13563. #. type: defvr
  13564. #: guix-git/doc/guix.texi:8184
  13565. msgid "For example, if you are packaging the @code{srfi-1} egg:"
  13566. msgstr ""
  13567. #. type: lisp
  13568. #: guix-git/doc/guix.texi:8187
  13569. #, no-wrap
  13570. msgid "(arguments '(#:egg-name \"srfi-1\"))\n"
  13571. msgstr ""
  13572. #. type: defvr
  13573. #: guix-git/doc/guix.texi:8192
  13574. 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."
  13575. msgstr ""
  13576. #. type: defvr
  13577. #: guix-git/doc/guix.texi:8194
  13578. #, no-wrap
  13579. msgid "{Scheme Variable} copy-build-system"
  13580. msgstr ""
  13581. #. type: defvr
  13582. #: guix-git/doc/guix.texi:8198
  13583. 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."
  13584. msgstr ""
  13585. #. type: defvr
  13586. #: guix-git/doc/guix.texi:8203
  13587. 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}."
  13588. msgstr ""
  13589. #. type: defvr
  13590. #: guix-git/doc/guix.texi:8208
  13591. 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."
  13592. msgstr ""
  13593. #. type: item
  13594. #: guix-git/doc/guix.texi:8210
  13595. #, no-wrap
  13596. msgid "When @var{source} matches a file or directory without trailing slash, install it to @var{target}."
  13597. msgstr ""
  13598. #. type: item
  13599. #: guix-git/doc/guix.texi:8212
  13600. #, no-wrap
  13601. msgid "If @var{target} has a trailing slash, install @var{source} basename beneath @var{target}."
  13602. msgstr ""
  13603. #. type: item
  13604. #: guix-git/doc/guix.texi:8213
  13605. #, no-wrap
  13606. msgid "Otherwise install @var{source} as @var{target}."
  13607. msgstr ""
  13608. #. type: item
  13609. #: guix-git/doc/guix.texi:8216
  13610. #, no-wrap
  13611. msgid "When @var{source} is a directory with a trailing slash, or when @var{filters} are used,"
  13612. msgstr ""
  13613. #. type: itemize
  13614. #: guix-git/doc/guix.texi:8219
  13615. msgid "the trailing slash of @var{target} is implied with the same meaning as above."
  13616. msgstr ""
  13617. #. type: item
  13618. #: guix-git/doc/guix.texi:8220
  13619. #, no-wrap
  13620. msgid "Without @var{filters}, install the full @var{source} @emph{content} to @var{target}."
  13621. msgstr ""
  13622. #. type: item
  13623. #: guix-git/doc/guix.texi:8221
  13624. #, no-wrap
  13625. msgid "With @var{filters} among @code{#:include}, @code{#:include-regexp}, @code{#:exclude},"
  13626. msgstr ""
  13627. #. type: itemize
  13628. #: guix-git/doc/guix.texi:8224
  13629. msgid "@code{#:exclude-regexp}, only select files are installed depending on the filters. Each filters is specified by a list of strings."
  13630. msgstr ""
  13631. #. type: item
  13632. #: guix-git/doc/guix.texi:8225
  13633. #, no-wrap
  13634. msgid "With @code{#:include}, install all the files which the path suffix matches"
  13635. msgstr ""
  13636. #. type: itemize
  13637. #: guix-git/doc/guix.texi:8227
  13638. msgid "at least one of the elements in the given list."
  13639. msgstr ""
  13640. #. type: item
  13641. #: guix-git/doc/guix.texi:8227
  13642. #, no-wrap
  13643. msgid "With @code{#:include-regexp}, install all the files which the"
  13644. msgstr ""
  13645. #. type: itemize
  13646. #: guix-git/doc/guix.texi:8230
  13647. msgid "subpaths match at least one of the regular expressions in the given list."
  13648. msgstr ""
  13649. #. type: item
  13650. #: guix-git/doc/guix.texi:8230
  13651. #, no-wrap
  13652. msgid "The @code{#:exclude} and @code{#:exclude-regexp} filters"
  13653. msgstr ""
  13654. #. type: itemize
  13655. #: guix-git/doc/guix.texi:8235
  13656. 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."
  13657. msgstr ""
  13658. #. type: itemize
  13659. #: guix-git/doc/guix.texi:8239
  13660. msgid "In all cases, the paths relative to @var{source} are preserved within @var{target}."
  13661. msgstr ""
  13662. #. type: defvr
  13663. #: guix-git/doc/guix.texi:8242
  13664. msgid "Examples:"
  13665. msgstr ""
  13666. #. type: item
  13667. #: guix-git/doc/guix.texi:8244
  13668. #, no-wrap
  13669. msgid "@code{(\"foo/bar\" \"share/my-app/\")}: Install @file{bar} to @file{share/my-app/bar}."
  13670. msgstr ""
  13671. #. type: item
  13672. #: guix-git/doc/guix.texi:8245
  13673. #, no-wrap
  13674. msgid "@code{(\"foo/bar\" \"share/my-app/baz\")}: Install @file{bar} to @file{share/my-app/baz}."
  13675. msgstr ""
  13676. #. type: item
  13677. #: guix-git/doc/guix.texi:8246
  13678. #, no-wrap
  13679. msgid "@code{(\"foo/\" \"share/my-app\")}: Install the content of @file{foo} inside @file{share/my-app},"
  13680. msgstr ""
  13681. #. type: itemize
  13682. #: guix-git/doc/guix.texi:8248
  13683. msgid "e.g., install @file{foo/sub/file} to @file{share/my-app/sub/file}."
  13684. msgstr ""
  13685. #. type: item
  13686. #: guix-git/doc/guix.texi:8248
  13687. #, no-wrap
  13688. msgid "@code{(\"foo/\" \"share/my-app\" #:include (\"sub/file\"))}: Install only @file{foo/sub/file} to"
  13689. msgstr ""
  13690. #. type: itemize
  13691. #: guix-git/doc/guix.texi:8250
  13692. msgid "@file{share/my-app/sub/file}."
  13693. msgstr ""
  13694. #. type: item
  13695. #: guix-git/doc/guix.texi:8250
  13696. #, no-wrap
  13697. msgid "@code{(\"foo/sub\" \"share/my-app\" #:include (\"file\"))}: Install @file{foo/sub/file} to"
  13698. msgstr ""
  13699. #. type: itemize
  13700. #: guix-git/doc/guix.texi:8252
  13701. msgid "@file{share/my-app/file}."
  13702. msgstr ""
  13703. #. type: cindex
  13704. #: guix-git/doc/guix.texi:8256
  13705. #, no-wrap
  13706. msgid "Clojure (programming language)"
  13707. msgstr ""
  13708. #. type: cindex
  13709. #: guix-git/doc/guix.texi:8257
  13710. #, no-wrap
  13711. msgid "simple Clojure build system"
  13712. msgstr ""
  13713. #. type: defvr
  13714. #: guix-git/doc/guix.texi:8258
  13715. #, no-wrap
  13716. msgid "{Scheme Variable} clojure-build-system"
  13717. msgstr ""
  13718. #. type: defvr
  13719. #: guix-git/doc/guix.texi:8263
  13720. 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."
  13721. msgstr ""
  13722. #. type: defvr
  13723. #: guix-git/doc/guix.texi:8267
  13724. 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."
  13725. msgstr ""
  13726. #. type: defvr
  13727. #: guix-git/doc/guix.texi:8273
  13728. 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."
  13729. msgstr ""
  13730. #. type: defvr
  13731. #: guix-git/doc/guix.texi:8276
  13732. msgid "This build system is an extension of @code{ant-build-system}, but with the following phases changed:"
  13733. msgstr ""
  13734. #. type: item
  13735. #: guix-git/doc/guix.texi:8279 guix-git/doc/guix.texi:8852
  13736. #: guix-git/doc/guix.texi:8901 guix-git/doc/guix.texi:8974
  13737. #: guix-git/doc/guix.texi:35595 guix-git/doc/guix.texi:38341
  13738. #, no-wrap
  13739. msgid "build"
  13740. msgstr ""
  13741. #. type: table
  13742. #: guix-git/doc/guix.texi:8288
  13743. 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."
  13744. msgstr ""
  13745. #. type: item
  13746. #: guix-git/doc/guix.texi:8289 guix-git/doc/guix.texi:8856
  13747. #: guix-git/doc/guix.texi:8979
  13748. #, no-wrap
  13749. msgid "check"
  13750. msgstr ""
  13751. #. type: table
  13752. #: guix-git/doc/guix.texi:8296
  13753. 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."
  13754. msgstr ""
  13755. #. type: item
  13756. #: guix-git/doc/guix.texi:8297 guix-git/doc/guix.texi:8862
  13757. #: guix-git/doc/guix.texi:8905 guix-git/doc/guix.texi:8985
  13758. #, no-wrap
  13759. msgid "install"
  13760. msgstr ""
  13761. #. type: table
  13762. #: guix-git/doc/guix.texi:8299
  13763. msgid "This phase installs all jars built previously."
  13764. msgstr ""
  13765. #. type: defvr
  13766. #: guix-git/doc/guix.texi:8302
  13767. msgid "Apart from the above, this build system also contains an additional phase:"
  13768. msgstr ""
  13769. #. type: item
  13770. #: guix-git/doc/guix.texi:8305
  13771. #, no-wrap
  13772. msgid "install-doc"
  13773. msgstr ""
  13774. #. type: table
  13775. #: guix-git/doc/guix.texi:8310
  13776. 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."
  13777. msgstr ""
  13778. #. type: defvr
  13779. #: guix-git/doc/guix.texi:8313
  13780. #, no-wrap
  13781. msgid "{Scheme Variable} cmake-build-system"
  13782. msgstr ""
  13783. #. type: defvr
  13784. #: guix-git/doc/guix.texi:8317
  13785. 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}."
  13786. msgstr ""
  13787. #. type: defvr
  13788. #: guix-git/doc/guix.texi:8321
  13789. 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."
  13790. msgstr ""
  13791. #. type: defvr
  13792. #: guix-git/doc/guix.texi:8328
  13793. 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."
  13794. msgstr ""
  13795. #. type: defvr
  13796. #: guix-git/doc/guix.texi:8330
  13797. #, no-wrap
  13798. msgid "{Scheme Variable} dune-build-system"
  13799. msgstr ""
  13800. #. type: defvr
  13801. #: guix-git/doc/guix.texi:8337
  13802. 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."
  13803. msgstr ""
  13804. #. type: defvr
  13805. #: guix-git/doc/guix.texi:8341
  13806. 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."
  13807. msgstr ""
  13808. #. type: defvr
  13809. #: guix-git/doc/guix.texi:8345
  13810. 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."
  13811. msgstr ""
  13812. #. type: defvr
  13813. #: guix-git/doc/guix.texi:8349
  13814. 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}."
  13815. msgstr ""
  13816. #. type: defvr
  13817. #: guix-git/doc/guix.texi:8354
  13818. 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}."
  13819. msgstr ""
  13820. #. type: defvr
  13821. #: guix-git/doc/guix.texi:8357
  13822. #, no-wrap
  13823. msgid "{Scheme Variable} go-build-system"
  13824. msgstr ""
  13825. #. type: defvr
  13826. #: guix-git/doc/guix.texi:8362
  13827. 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}."
  13828. msgstr ""
  13829. #. type: defvr
  13830. #: guix-git/doc/guix.texi:8373
  13831. 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."
  13832. msgstr ""
  13833. #. type: defvr
  13834. #: guix-git/doc/guix.texi:8378
  13835. 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."
  13836. msgstr ""
  13837. #. type: defvr
  13838. #: guix-git/doc/guix.texi:8385
  13839. msgid "Packages can be cross-built, and if a specific architecture or operating system is desired then the keywords @code{#:goarch} and @code{#:goos} can be used to force the package to be built for that architecture and operating system. The combinations known to Go can be found @url{\"https://golang.org/doc/install/source#environment\", in their documentation}."
  13840. msgstr ""
  13841. #. type: defvr
  13842. #: guix-git/doc/guix.texi:8387
  13843. #, no-wrap
  13844. msgid "{Scheme Variable} glib-or-gtk-build-system"
  13845. msgstr ""
  13846. #. type: defvr
  13847. #: guix-git/doc/guix.texi:8390
  13848. 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+."
  13849. msgstr ""
  13850. #. type: defvr
  13851. #: guix-git/doc/guix.texi:8393
  13852. msgid "This build system adds the following two phases to the ones defined by @code{gnu-build-system}:"
  13853. msgstr ""
  13854. #. type: item
  13855. #: guix-git/doc/guix.texi:8395 guix-git/doc/guix.texi:8878
  13856. #, no-wrap
  13857. msgid "glib-or-gtk-wrap"
  13858. msgstr ""
  13859. #. type: table
  13860. #: guix-git/doc/guix.texi:8402
  13861. 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."
  13862. msgstr ""
  13863. #. type: table
  13864. #: guix-git/doc/guix.texi:8409
  13865. 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+."
  13866. msgstr ""
  13867. #. type: item
  13868. #: guix-git/doc/guix.texi:8410 guix-git/doc/guix.texi:8882
  13869. #, no-wrap
  13870. msgid "glib-or-gtk-compile-schemas"
  13871. msgstr ""
  13872. #. type: table
  13873. #: guix-git/doc/guix.texi:8418
  13874. 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."
  13875. msgstr ""
  13876. #. type: defvr
  13877. #: guix-git/doc/guix.texi:8421
  13878. msgid "Both phases are executed after the @code{install} phase."
  13879. msgstr ""
  13880. #. type: defvr
  13881. #: guix-git/doc/guix.texi:8423
  13882. #, no-wrap
  13883. msgid "{Scheme Variable} guile-build-system"
  13884. msgstr ""
  13885. #. type: defvr
  13886. #: guix-git/doc/guix.texi:8430
  13887. 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."
  13888. msgstr ""
  13889. #. type: defvr
  13890. #: guix-git/doc/guix.texi:8433
  13891. msgid "This build system supports cross-compilation by using the @option{--target} option of @samp{guild compile}."
  13892. msgstr ""
  13893. #. type: defvr
  13894. #: guix-git/doc/guix.texi:8436
  13895. msgid "Packages built with @code{guile-build-system} must provide a Guile package in their @code{native-inputs} field."
  13896. msgstr ""
  13897. #. type: defvr
  13898. #: guix-git/doc/guix.texi:8438
  13899. #, no-wrap
  13900. msgid "{Scheme Variable} julia-build-system"
  13901. msgstr ""
  13902. #. type: defvr
  13903. #: guix-git/doc/guix.texi:8445
  13904. 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}."
  13905. msgstr ""
  13906. #. type: defvr
  13907. #: guix-git/doc/guix.texi:8450
  13908. msgid "The Julia package name and uuid is read from the file @file{Project.toml}. These values can be overridden by passing the argument @code{#:julia-package-name} (which must be correctly capitalized) or @code{#:julia-package-uuid}."
  13909. msgstr ""
  13910. #. type: defvr
  13911. #: guix-git/doc/guix.texi:8454
  13912. 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}."
  13913. msgstr ""
  13914. #. type: defvr
  13915. #: guix-git/doc/guix.texi:8459
  13916. 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."
  13917. msgstr ""
  13918. #. type: defvr
  13919. #: guix-git/doc/guix.texi:8463
  13920. 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:"
  13921. msgstr ""
  13922. #. type: lisp
  13923. #: guix-git/doc/guix.texi:8475
  13924. #, no-wrap
  13925. msgid ""
  13926. "(add-after 'unpack 'override-binary-path\n"
  13927. " (lambda* (#:key inputs #:allow-other-keys)\n"
  13928. " (for-each (lambda (wrapper)\n"
  13929. " (substitute* wrapper\n"
  13930. " ((\"generate_wrapper_header.*\")\n"
  13931. " (string-append\n"
  13932. " \"generate_wrapper_header(\\\"MbedTLS\\\", \\\"\"\n"
  13933. " (assoc-ref inputs \"mbedtls-apache\") \"\\\")\\n\"))))\n"
  13934. " ;; There's a Julia file for each platform, override them all.\n"
  13935. " (find-files \"src/wrappers/\" \"\\\\.jl$\"))))\n"
  13936. msgstr ""
  13937. #. type: defvr
  13938. #: guix-git/doc/guix.texi:8481
  13939. msgid "Some older packages that aren't using @file{Project.toml} yet, will require this file to be created, too. It is internally done if the arguments @code{#:julia-package-name} and @code{#:julia-package-uuid} are provided."
  13940. msgstr ""
  13941. #. type: defvr
  13942. #: guix-git/doc/guix.texi:8483
  13943. #, no-wrap
  13944. msgid "{Scheme Variable} maven-build-system"
  13945. msgstr ""
  13946. #. type: defvr
  13947. #: guix-git/doc/guix.texi:8490
  13948. 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."
  13949. msgstr ""
  13950. #. type: defvr
  13951. #: guix-git/doc/guix.texi:8500
  13952. 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."
  13953. msgstr ""
  13954. #. type: defvr
  13955. #: guix-git/doc/guix.texi:8503
  13956. 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."
  13957. msgstr ""
  13958. #. type: defvr
  13959. #: guix-git/doc/guix.texi:8509
  13960. 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}."
  13961. msgstr ""
  13962. #. type: defvr
  13963. #: guix-git/doc/guix.texi:8515
  13964. 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."
  13965. msgstr ""
  13966. #. type: defvr
  13967. #: guix-git/doc/guix.texi:8518
  13968. msgid "You can override the default @code{jdk} and @code{maven} packages with the corresponding argument, @code{#:jdk} and @code{#:maven}."
  13969. msgstr ""
  13970. #. type: defvr
  13971. #: guix-git/doc/guix.texi:8523
  13972. 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."
  13973. msgstr ""
  13974. #. type: defvr
  13975. #: guix-git/doc/guix.texi:8525
  13976. #, no-wrap
  13977. msgid "{Scheme Variable} minetest-mod-build-system"
  13978. msgstr ""
  13979. #. type: defvr
  13980. #: guix-git/doc/guix.texi:8531
  13981. msgid "This variable is exported by @code{(guix build-system minetest)}. It implements a build procedure for @uref{https://www.minetest.net, Minetest} mods, which consists of copying Lua code, images and other resources to the location Minetest searches for mods. The build system also minimises PNG images and verifies that Minetest can load the mod without errors."
  13982. msgstr ""
  13983. #. type: defvr
  13984. #: guix-git/doc/guix.texi:8533
  13985. #, no-wrap
  13986. msgid "{Scheme Variable} minify-build-system"
  13987. msgstr ""
  13988. #. type: defvr
  13989. #: guix-git/doc/guix.texi:8536
  13990. msgid "This variable is exported by @code{(guix build-system minify)}. It implements a minification procedure for simple JavaScript packages."
  13991. msgstr ""
  13992. #. type: defvr
  13993. #: guix-git/doc/guix.texi:8542
  13994. 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."
  13995. msgstr ""
  13996. #. type: defvr
  13997. #: guix-git/doc/guix.texi:8546
  13998. 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."
  13999. msgstr ""
  14000. #. type: defvr
  14001. #: guix-git/doc/guix.texi:8548
  14002. #, no-wrap
  14003. msgid "{Scheme Variable} ocaml-build-system"
  14004. msgstr ""
  14005. #. type: defvr
  14006. #: guix-git/doc/guix.texi:8554
  14007. 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."
  14008. msgstr ""
  14009. #. type: defvr
  14010. #: guix-git/doc/guix.texi:8564
  14011. 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."
  14012. msgstr ""
  14013. #. type: defvr
  14014. #: guix-git/doc/guix.texi:8569
  14015. 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."
  14016. msgstr ""
  14017. #. type: defvr
  14018. #: guix-git/doc/guix.texi:8573
  14019. 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."
  14020. msgstr ""
  14021. #. type: defvr
  14022. #: guix-git/doc/guix.texi:8581
  14023. 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."
  14024. msgstr ""
  14025. #. type: defvr
  14026. #: guix-git/doc/guix.texi:8589
  14027. 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."
  14028. msgstr ""
  14029. #. type: defvr
  14030. #: guix-git/doc/guix.texi:8591
  14031. #, no-wrap
  14032. msgid "{Scheme Variable} python-build-system"
  14033. msgstr ""
  14034. #. type: defvr
  14035. #: guix-git/doc/guix.texi:8596
  14036. 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{}}."
  14037. msgstr ""
  14038. #. type: defvr
  14039. #: guix-git/doc/guix.texi:8601
  14040. msgid "For packages that install stand-alone Python programs under @code{bin/}, it takes care of wrapping these programs so that their @env{GUIX_PYTHONPATH} environment variable points to all the Python libraries they depend on."
  14041. msgstr ""
  14042. #. type: defvr
  14043. #: guix-git/doc/guix.texi:8607
  14044. 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."
  14045. msgstr ""
  14046. #. type: defvr
  14047. #: guix-git/doc/guix.texi:8612
  14048. 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}."
  14049. msgstr ""
  14050. #. type: defvr
  14051. #: guix-git/doc/guix.texi:8618
  14052. msgid "If a @code{\"python\"} output is available, the package is installed into it instead of the default @code{\"out\"} output. This is useful for packages that include a Python package as only a part of the software, and thus want to combine the phases of @code{python-build-system} with another build system. Python bindings are a common usecase."
  14053. msgstr ""
  14054. #. type: defvr
  14055. #: guix-git/doc/guix.texi:8621
  14056. #, no-wrap
  14057. msgid "{Scheme Variable} perl-build-system"
  14058. msgstr ""
  14059. #. type: defvr
  14060. #: guix-git/doc/guix.texi:8633
  14061. 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."
  14062. msgstr ""
  14063. #. type: defvr
  14064. #: guix-git/doc/guix.texi:8637
  14065. 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."
  14066. msgstr ""
  14067. #. type: defvr
  14068. #: guix-git/doc/guix.texi:8639
  14069. msgid "Which Perl package is used can be specified with @code{#:perl}."
  14070. msgstr ""
  14071. #. type: defvr
  14072. #: guix-git/doc/guix.texi:8641
  14073. #, no-wrap
  14074. msgid "{Scheme Variable} renpy-build-system"
  14075. msgstr ""
  14076. #. type: defvr
  14077. #: guix-git/doc/guix.texi:8645
  14078. 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."
  14079. msgstr ""
  14080. #. type: defvr
  14081. #: guix-git/doc/guix.texi:8648
  14082. 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."
  14083. msgstr ""
  14084. #. type: defvr
  14085. #: guix-git/doc/guix.texi:8652
  14086. 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}."
  14087. msgstr ""
  14088. #. type: defvr
  14089. #: guix-git/doc/guix.texi:8654
  14090. #, no-wrap
  14091. msgid "{Scheme Variable} qt-build-system"
  14092. msgstr ""
  14093. #. type: defvr
  14094. #: guix-git/doc/guix.texi:8657
  14095. msgid "This variable is exported by @code{(guix build-system qt)}. It is intended for use with applications using Qt or KDE."
  14096. msgstr ""
  14097. #. type: defvr
  14098. #: guix-git/doc/guix.texi:8660
  14099. msgid "This build system adds the following two phases to the ones defined by @code{cmake-build-system}:"
  14100. msgstr ""
  14101. #. type: item
  14102. #: guix-git/doc/guix.texi:8662
  14103. #, no-wrap
  14104. msgid "check-setup"
  14105. msgstr ""
  14106. #. type: table
  14107. #: guix-git/doc/guix.texi:8669
  14108. 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}."
  14109. msgstr ""
  14110. #. type: table
  14111. #: guix-git/doc/guix.texi:8672
  14112. msgid "This phase is added before the @code{check} phase. It's a separate phase to ease adjusting if necessary."
  14113. msgstr ""
  14114. #. type: item
  14115. #: guix-git/doc/guix.texi:8673
  14116. #, no-wrap
  14117. msgid "qt-wrap"
  14118. msgstr ""
  14119. #. type: table
  14120. #: guix-git/doc/guix.texi:8679
  14121. 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."
  14122. msgstr ""
  14123. #. type: table
  14124. #: guix-git/doc/guix.texi:8685
  14125. 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."
  14126. msgstr ""
  14127. #. type: table
  14128. #: guix-git/doc/guix.texi:8687
  14129. msgid "This phase is added after the @code{install} phase."
  14130. msgstr ""
  14131. #. type: defvr
  14132. #: guix-git/doc/guix.texi:8690
  14133. #, no-wrap
  14134. msgid "{Scheme Variable} r-build-system"
  14135. msgstr ""
  14136. #. type: defvr
  14137. #: guix-git/doc/guix.texi:8698
  14138. 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}."
  14139. msgstr ""
  14140. #. type: defvr
  14141. #: guix-git/doc/guix.texi:8700
  14142. #, no-wrap
  14143. msgid "{Scheme Variable} rakudo-build-system"
  14144. msgstr ""
  14145. #. type: defvr
  14146. #: guix-git/doc/guix.texi:8708
  14147. 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."
  14148. msgstr ""
  14149. #. type: defvr
  14150. #: guix-git/doc/guix.texi:8716
  14151. 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."
  14152. msgstr ""
  14153. #. type: defvr
  14154. #: guix-git/doc/guix.texi:8718
  14155. #, no-wrap
  14156. msgid "{Scheme Variable} texlive-build-system"
  14157. msgstr ""
  14158. #. type: defvr
  14159. #: guix-git/doc/guix.texi:8723
  14160. 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."
  14161. msgstr ""
  14162. #. type: defvr
  14163. #: guix-git/doc/guix.texi:8732
  14164. 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."
  14165. msgstr ""
  14166. #. type: defvr
  14167. #: guix-git/doc/guix.texi:8735
  14168. msgid "The @code{#:tex-directory} parameter tells the build system where to install the built files under the texmf tree."
  14169. msgstr ""
  14170. #. type: defvr
  14171. #: guix-git/doc/guix.texi:8737
  14172. #, no-wrap
  14173. msgid "{Scheme Variable} ruby-build-system"
  14174. msgstr ""
  14175. #. type: defvr
  14176. #: guix-git/doc/guix.texi:8741
  14177. 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}."
  14178. msgstr ""
  14179. #. type: defvr
  14180. #: guix-git/doc/guix.texi:8749
  14181. 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."
  14182. msgstr ""
  14183. #. type: defvr
  14184. #: guix-git/doc/guix.texi:8753
  14185. 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."
  14186. msgstr ""
  14187. #. type: defvr
  14188. #: guix-git/doc/guix.texi:8755
  14189. #, no-wrap
  14190. msgid "{Scheme Variable} waf-build-system"
  14191. msgstr ""
  14192. #. type: defvr
  14193. #: guix-git/doc/guix.texi:8761
  14194. 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."
  14195. msgstr ""
  14196. #. type: defvr
  14197. #: guix-git/doc/guix.texi:8765
  14198. 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."
  14199. msgstr ""
  14200. #. type: defvr
  14201. #: guix-git/doc/guix.texi:8767
  14202. #, no-wrap
  14203. msgid "{Scheme Variable} scons-build-system"
  14204. msgstr ""
  14205. #. type: defvr
  14206. #: guix-git/doc/guix.texi:8773
  14207. 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."
  14208. msgstr ""
  14209. #. type: defvr
  14210. #: guix-git/doc/guix.texi:8780
  14211. 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."
  14212. msgstr ""
  14213. #. type: defvr
  14214. #: guix-git/doc/guix.texi:8782
  14215. #, no-wrap
  14216. msgid "{Scheme Variable} haskell-build-system"
  14217. msgstr ""
  14218. #. type: defvr
  14219. #: guix-git/doc/guix.texi:8796
  14220. 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."
  14221. msgstr ""
  14222. #. type: defvr
  14223. #: guix-git/doc/guix.texi:8799
  14224. msgid "Which Haskell compiler is used can be specified with the @code{#:haskell} parameter which defaults to @code{ghc}."
  14225. msgstr ""
  14226. #. type: defvr
  14227. #: guix-git/doc/guix.texi:8801
  14228. #, no-wrap
  14229. msgid "{Scheme Variable} dub-build-system"
  14230. msgstr ""
  14231. #. type: defvr
  14232. #: guix-git/doc/guix.texi:8806
  14233. 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."
  14234. msgstr ""
  14235. #. type: defvr
  14236. #: guix-git/doc/guix.texi:8809
  14237. msgid "Which D compiler is used can be specified with the @code{#:ldc} parameter which defaults to @code{ldc}."
  14238. msgstr ""
  14239. #. type: anchor{#1}
  14240. #: guix-git/doc/guix.texi:8812
  14241. msgid "emacs-build-system"
  14242. msgstr ""
  14243. #. type: defvr
  14244. #: guix-git/doc/guix.texi:8812
  14245. #, no-wrap
  14246. msgid "{Scheme Variable} emacs-build-system"
  14247. msgstr ""
  14248. #. type: defvr
  14249. #: guix-git/doc/guix.texi:8816
  14250. 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})."
  14251. msgstr ""
  14252. #. type: defvr
  14253. #: guix-git/doc/guix.texi:8822
  14254. 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}."
  14255. msgstr ""
  14256. #. type: defvr
  14257. #: guix-git/doc/guix.texi:8824
  14258. #, no-wrap
  14259. msgid "{Scheme Variable} font-build-system"
  14260. msgstr ""
  14261. #. type: defvr
  14262. #: guix-git/doc/guix.texi:8830
  14263. 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."
  14264. msgstr ""
  14265. #. type: defvr
  14266. #: guix-git/doc/guix.texi:8832
  14267. #, no-wrap
  14268. msgid "{Scheme Variable} meson-build-system"
  14269. msgstr ""
  14270. #. type: defvr
  14271. #: guix-git/doc/guix.texi:8836
  14272. 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."
  14273. msgstr ""
  14274. #. type: defvr
  14275. #: guix-git/doc/guix.texi:8840
  14276. 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."
  14277. msgstr ""
  14278. #. type: defvr
  14279. #: guix-git/doc/guix.texi:8843
  14280. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed to some specific for Meson:"
  14281. msgstr ""
  14282. #. type: item
  14283. #: guix-git/doc/guix.texi:8846 guix-git/doc/guix.texi:8897
  14284. #: guix-git/doc/guix.texi:8969
  14285. #, no-wrap
  14286. msgid "configure"
  14287. msgstr ""
  14288. #. type: table
  14289. #: guix-git/doc/guix.texi:8851
  14290. 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}."
  14291. msgstr ""
  14292. #. type: table
  14293. #: guix-git/doc/guix.texi:8855
  14294. msgid "The phase runs @code{ninja} to build the package in parallel by default, but this can be changed with @code{#:parallel-build?}."
  14295. msgstr ""
  14296. #. type: table
  14297. #: guix-git/doc/guix.texi:8861
  14298. msgid "The phase runs @samp{meson test} with a base set of options that cannot be overridden. This base set of options can be extended via the @code{#:test-options} argument, for example to select or skip a specific test suite."
  14299. msgstr ""
  14300. #. type: table
  14301. #: guix-git/doc/guix.texi:8864
  14302. msgid "The phase runs @code{ninja install} and can not be changed."
  14303. msgstr ""
  14304. #. type: defvr
  14305. #: guix-git/doc/guix.texi:8867
  14306. msgid "Apart from that, the build system also adds the following phases:"
  14307. msgstr ""
  14308. #. type: item
  14309. #: guix-git/doc/guix.texi:8870
  14310. #, no-wrap
  14311. msgid "fix-runpath"
  14312. msgstr ""
  14313. #. type: table
  14314. #: guix-git/doc/guix.texi:8877
  14315. 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}, such as test dependencies, that aren't actually required for the program to run."
  14316. msgstr ""
  14317. #. type: table
  14318. #: guix-git/doc/guix.texi:8881 guix-git/doc/guix.texi:8885
  14319. 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?}."
  14320. msgstr ""
  14321. #. type: defvr
  14322. #: guix-git/doc/guix.texi:8888
  14323. #, no-wrap
  14324. msgid "{Scheme Variable} linux-module-build-system"
  14325. msgstr ""
  14326. #. type: defvr
  14327. #: guix-git/doc/guix.texi:8890
  14328. msgid "@code{linux-module-build-system} allows building Linux kernel modules."
  14329. msgstr ""
  14330. #. type: defvr
  14331. #: guix-git/doc/guix.texi:8894
  14332. msgid "This build system is an extension of @code{gnu-build-system}, but with the following phases changed:"
  14333. msgstr ""
  14334. #. type: table
  14335. #: guix-git/doc/guix.texi:8900
  14336. msgid "This phase configures the environment so that the Linux kernel's Makefile can be used to build the external kernel module."
  14337. msgstr ""
  14338. #. type: table
  14339. #: guix-git/doc/guix.texi:8904
  14340. msgid "This phase uses the Linux kernel's Makefile in order to build the external kernel module."
  14341. msgstr ""
  14342. #. type: table
  14343. #: guix-git/doc/guix.texi:8908
  14344. msgid "This phase uses the Linux kernel's Makefile in order to install the external kernel module."
  14345. msgstr ""
  14346. #. type: defvr
  14347. #: guix-git/doc/guix.texi:8913
  14348. 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)."
  14349. msgstr ""
  14350. #. type: defvr
  14351. #: guix-git/doc/guix.texi:8915
  14352. #, no-wrap
  14353. msgid "{Scheme Variable} node-build-system"
  14354. msgstr ""
  14355. #. type: defvr
  14356. #: guix-git/doc/guix.texi:8920
  14357. 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."
  14358. msgstr ""
  14359. #. type: defvr
  14360. #: guix-git/doc/guix.texi:8924
  14361. 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}."
  14362. msgstr ""
  14363. #. type: Plain text
  14364. #: guix-git/doc/guix.texi:8930
  14365. 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."
  14366. msgstr ""
  14367. #. type: defvr
  14368. #: guix-git/doc/guix.texi:8931
  14369. #, no-wrap
  14370. msgid "{Scheme Variable} trivial-build-system"
  14371. msgstr ""
  14372. #. type: defvr
  14373. #: guix-git/doc/guix.texi:8933
  14374. msgid "This variable is exported by @code{(guix build-system trivial)}."
  14375. msgstr ""
  14376. #. type: defvr
  14377. #: guix-git/doc/guix.texi:8938
  14378. 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}})."
  14379. msgstr ""
  14380. #. type: cindex
  14381. #: guix-git/doc/guix.texi:8943
  14382. #, fuzzy, no-wrap
  14383. msgid "build phases, for packages"
  14384. msgstr "Python软件包的输入"
  14385. #. type: Plain text
  14386. #: guix-git/doc/guix.texi:8949
  14387. 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})."
  14388. msgstr ""
  14389. #. type: Plain text
  14390. #: guix-git/doc/guix.texi:8953
  14391. 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:"
  14392. msgstr ""
  14393. #. type: item
  14394. #: guix-git/doc/guix.texi:8955
  14395. #, no-wrap
  14396. msgid "set-paths"
  14397. msgstr ""
  14398. #. type: table
  14399. #: guix-git/doc/guix.texi:8958
  14400. msgid "Define search path environment variables for all the input packages, including @env{PATH} (@pxref{Search Paths})."
  14401. msgstr ""
  14402. #. type: item
  14403. #: guix-git/doc/guix.texi:8959
  14404. #, no-wrap
  14405. msgid "unpack"
  14406. msgstr ""
  14407. #. type: table
  14408. #: guix-git/doc/guix.texi:8963
  14409. 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."
  14410. msgstr ""
  14411. #. type: item
  14412. #: guix-git/doc/guix.texi:8964
  14413. #, no-wrap
  14414. msgid "patch-source-shebangs"
  14415. msgstr ""
  14416. #. type: table
  14417. #: guix-git/doc/guix.texi:8968
  14418. 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}."
  14419. msgstr ""
  14420. #. type: table
  14421. #: guix-git/doc/guix.texi:8973
  14422. 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."
  14423. msgstr ""
  14424. #. type: table
  14425. #: guix-git/doc/guix.texi:8978
  14426. 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}."
  14427. msgstr ""
  14428. #. type: table
  14429. #: guix-git/doc/guix.texi:8984
  14430. 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}."
  14431. msgstr ""
  14432. #. type: table
  14433. #: guix-git/doc/guix.texi:8987
  14434. msgid "Run @code{make install} with the flags listed in @code{#:make-flags}."
  14435. msgstr ""
  14436. #. type: item
  14437. #: guix-git/doc/guix.texi:8988
  14438. #, no-wrap
  14439. msgid "patch-shebangs"
  14440. msgstr ""
  14441. #. type: table
  14442. #: guix-git/doc/guix.texi:8990
  14443. msgid "Patch shebangs on the installed executable files."
  14444. msgstr ""
  14445. #. type: item
  14446. #: guix-git/doc/guix.texi:8991
  14447. #, no-wrap
  14448. msgid "strip"
  14449. msgstr ""
  14450. #. type: table
  14451. #: guix-git/doc/guix.texi:8995
  14452. 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})."
  14453. msgstr ""
  14454. #. type: Plain text
  14455. #: guix-git/doc/guix.texi:9004
  14456. 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})."
  14457. msgstr ""
  14458. #. type: Plain text
  14459. #: guix-git/doc/guix.texi:9011
  14460. 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."
  14461. msgstr ""
  14462. #. type: vindex
  14463. #: guix-git/doc/guix.texi:9012
  14464. #, no-wrap
  14465. msgid "%standard-phases"
  14466. msgstr ""
  14467. #. type: Plain text
  14468. #: guix-git/doc/guix.texi:9018
  14469. 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!}:"
  14470. msgstr ""
  14471. #. type: lisp
  14472. #: guix-git/doc/guix.texi:9021
  14473. #, no-wrap
  14474. msgid ""
  14475. ";; The build phases of 'gnu-build-system'.\n"
  14476. "\n"
  14477. msgstr ""
  14478. #. type: lisp
  14479. #: guix-git/doc/guix.texi:9025
  14480. #, no-wrap
  14481. msgid ""
  14482. "(define* (unpack #:key source #:allow-other-keys)\n"
  14483. " ;; Extract the source tarball.\n"
  14484. " (invoke \"tar\" \"xvf\" source))\n"
  14485. "\n"
  14486. msgstr ""
  14487. #. type: lisp
  14488. #: guix-git/doc/guix.texi:9031
  14489. #, no-wrap
  14490. msgid ""
  14491. "(define* (configure #:key outputs #:allow-other-keys)\n"
  14492. " ;; Run the 'configure' script. Install to output \"out\".\n"
  14493. " (let ((out (assoc-ref outputs \"out\")))\n"
  14494. " (invoke \"./configure\"\n"
  14495. " (string-append \"--prefix=\" out))))\n"
  14496. "\n"
  14497. msgstr ""
  14498. #. type: lisp
  14499. #: guix-git/doc/guix.texi:9035
  14500. #, no-wrap
  14501. msgid ""
  14502. "(define* (build #:allow-other-keys)\n"
  14503. " ;; Compile.\n"
  14504. " (invoke \"make\"))\n"
  14505. "\n"
  14506. msgstr ""
  14507. #. type: lisp
  14508. #: guix-git/doc/guix.texi:9042
  14509. #, no-wrap
  14510. msgid ""
  14511. "(define* (check #:key (test-target \"check\") (tests? #true)\n"
  14512. " #:allow-other-keys)\n"
  14513. " ;; Run the test suite.\n"
  14514. " (if tests?\n"
  14515. " (invoke \"make\" test-target)\n"
  14516. " (display \"test suite not run\\n\")))\n"
  14517. "\n"
  14518. msgstr ""
  14519. #. type: lisp
  14520. #: guix-git/doc/guix.texi:9046
  14521. #, no-wrap
  14522. msgid ""
  14523. "(define* (install #:allow-other-keys)\n"
  14524. " ;; Install files to the prefix 'configure' specified.\n"
  14525. " (invoke \"make\" \"install\"))\n"
  14526. "\n"
  14527. msgstr ""
  14528. #. type: lisp
  14529. #: guix-git/doc/guix.texi:9055
  14530. #, no-wrap
  14531. msgid ""
  14532. "(define %standard-phases\n"
  14533. " ;; The list of standard phases (quite a few are omitted\n"
  14534. " ;; for brevity). Each element is a symbol/procedure pair.\n"
  14535. " (list (cons 'unpack unpack)\n"
  14536. " (cons 'configure configure)\n"
  14537. " (cons 'build build)\n"
  14538. " (cons 'check check)\n"
  14539. " (cons 'install install)))\n"
  14540. msgstr ""
  14541. #. type: Plain text
  14542. #: guix-git/doc/guix.texi:9065
  14543. 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."
  14544. msgstr ""
  14545. #. type: Plain text
  14546. #: guix-git/doc/guix.texi:9071
  14547. 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})."
  14548. msgstr ""
  14549. #. type: Plain text
  14550. #: guix-git/doc/guix.texi:9087
  14551. 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."
  14552. msgstr ""
  14553. #. type: cindex
  14554. #: guix-git/doc/guix.texi:9088
  14555. #, no-wrap
  14556. msgid "build phases, customizing"
  14557. msgstr ""
  14558. #. type: Plain text
  14559. #: guix-git/doc/guix.texi:9097
  14560. 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}})."
  14561. msgstr ""
  14562. #. type: Plain text
  14563. #: guix-git/doc/guix.texi:9102
  14564. 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}:"
  14565. msgstr ""
  14566. #. type: lisp
  14567. #: guix-git/doc/guix.texi:9122
  14568. #, no-wrap
  14569. msgid ""
  14570. "(define-public example\n"
  14571. " (package\n"
  14572. " (name \"example\")\n"
  14573. " ;; other fields omitted\n"
  14574. " (build-system gnu-build-system)\n"
  14575. " (arguments\n"
  14576. " '(#:phases (modify-phases %standard-phases\n"
  14577. " (delete 'configure)\n"
  14578. " (add-before 'build 'set-prefix-in-makefile\n"
  14579. " (lambda* (#:key outputs #:allow-other-keys)\n"
  14580. " ;; Modify the makefile so that its\n"
  14581. " ;; 'PREFIX' variable points to \"out\".\n"
  14582. " (let ((out (assoc-ref outputs \"out\")))\n"
  14583. " (substitute* \"Makefile\"\n"
  14584. " ((\"PREFIX =.*\")\n"
  14585. " (string-append \"PREFIX = \"\n"
  14586. " out \"\\n\")))\n"
  14587. " #true))))))))\n"
  14588. msgstr ""
  14589. #. type: Plain text
  14590. #: guix-git/doc/guix.texi:9128
  14591. 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}."
  14592. msgstr ""
  14593. #. type: cindex
  14594. #: guix-git/doc/guix.texi:9129 guix-git/doc/guix.texi:10464
  14595. #, no-wrap
  14596. msgid "code staging"
  14597. msgstr ""
  14598. #. type: cindex
  14599. #: guix-git/doc/guix.texi:9130 guix-git/doc/guix.texi:10465
  14600. #, fuzzy, no-wrap
  14601. msgid "staging, of code"
  14602. msgstr "代码格式化"
  14603. #. type: Plain text
  14604. #: guix-git/doc/guix.texi:9137
  14605. 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."
  14606. msgstr ""
  14607. #. type: Plain text
  14608. #: guix-git/doc/guix.texi:9147
  14609. 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."
  14610. msgstr ""
  14611. #. type: Plain text
  14612. #: guix-git/doc/guix.texi:9151
  14613. 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."
  14614. msgstr ""
  14615. #. type: Plain text
  14616. #: guix-git/doc/guix.texi:9156
  14617. 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}):"
  14618. msgstr ""
  14619. #. type: lisp
  14620. #: guix-git/doc/guix.texi:9163
  14621. #, no-wrap
  14622. msgid ""
  14623. "(with-imported-modules '((guix build utils)) ;import it\n"
  14624. " (computed-file \"empty-tree\"\n"
  14625. " #~(begin\n"
  14626. " ;; Put it in scope.\n"
  14627. " (use-modules (guix build utils))\n"
  14628. "\n"
  14629. msgstr ""
  14630. #. type: lisp
  14631. #: guix-git/doc/guix.texi:9166
  14632. #, no-wrap
  14633. msgid ""
  14634. " ;; Happily use its 'mkdir-p' procedure.\n"
  14635. " (mkdir-p (string-append #$output \"/a/b/c\")))))\n"
  14636. msgstr ""
  14637. #. type: Plain text
  14638. #: guix-git/doc/guix.texi:9170
  14639. msgid "The remainder of this section is the reference for most of the utility procedures provided by @code{(guix build utils)}."
  14640. msgstr ""
  14641. #. type: subsection
  14642. #: guix-git/doc/guix.texi:9173
  14643. #, no-wrap
  14644. msgid "Dealing with Store File Names"
  14645. msgstr ""
  14646. #. type: Plain text
  14647. #: guix-git/doc/guix.texi:9176
  14648. msgid "This section documents procedures that deal with store file names."
  14649. msgstr ""
  14650. #. type: deffn
  14651. #: guix-git/doc/guix.texi:9177
  14652. #, no-wrap
  14653. msgid "{Scheme Procedure} %store-directory"
  14654. msgstr ""
  14655. #. type: deffn
  14656. #: guix-git/doc/guix.texi:9179
  14657. #, fuzzy
  14658. msgid "Return the directory name of the store."
  14659. msgstr "仓库的纯函数式接口。"
  14660. #. type: deffn
  14661. #: guix-git/doc/guix.texi:9181
  14662. #, no-wrap
  14663. msgid "{Scheme Procedure} store-file-name? @var{file}"
  14664. msgstr ""
  14665. #. type: deffn
  14666. #: guix-git/doc/guix.texi:9183
  14667. msgid "Return true if @var{file} is in the store."
  14668. msgstr ""
  14669. #. type: deffn
  14670. #: guix-git/doc/guix.texi:9185
  14671. #, no-wrap
  14672. msgid "{Scheme Procedure} strip-store-file-name @var{file}"
  14673. msgstr ""
  14674. #. type: deffn
  14675. #: guix-git/doc/guix.texi:9188
  14676. 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."
  14677. msgstr ""
  14678. #. type: deffn
  14679. #: guix-git/doc/guix.texi:9190
  14680. #, no-wrap
  14681. msgid "{Scheme Procedure} package-name->name+version @var{name}"
  14682. msgstr ""
  14683. #. type: deffn
  14684. #: guix-git/doc/guix.texi:9195
  14685. 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."
  14686. msgstr ""
  14687. #. type: subsection
  14688. #: guix-git/doc/guix.texi:9197
  14689. #, fuzzy, no-wrap
  14690. msgid "File Types"
  14691. msgstr "文件系统"
  14692. #. type: Plain text
  14693. #: guix-git/doc/guix.texi:9200
  14694. msgid "The procedures below deal with files and file types."
  14695. msgstr ""
  14696. #. type: deffn
  14697. #: guix-git/doc/guix.texi:9201
  14698. #, no-wrap
  14699. msgid "{Scheme Procedure} directory-exists? @var{dir}"
  14700. msgstr ""
  14701. #. type: deffn
  14702. #: guix-git/doc/guix.texi:9203
  14703. msgid "Return @code{#t} if @var{dir} exists and is a directory."
  14704. msgstr ""
  14705. #. type: deffn
  14706. #: guix-git/doc/guix.texi:9205
  14707. #, no-wrap
  14708. msgid "{Scheme Procedure} executable-file? @var{file}"
  14709. msgstr ""
  14710. #. type: deffn
  14711. #: guix-git/doc/guix.texi:9207
  14712. msgid "Return @code{#t} if @var{file} exists and is executable."
  14713. msgstr ""
  14714. #. type: deffn
  14715. #: guix-git/doc/guix.texi:9209
  14716. #, no-wrap
  14717. msgid "{Scheme Procedure} symbolic-link? @var{file}"
  14718. msgstr ""
  14719. #. type: deffn
  14720. #: guix-git/doc/guix.texi:9211
  14721. msgid "Return @code{#t} if @var{file} is a symbolic link (aka. a ``symlink'')."
  14722. msgstr ""
  14723. #. type: deffn
  14724. #: guix-git/doc/guix.texi:9213
  14725. #, no-wrap
  14726. msgid "{Scheme Procedure} elf-file? @var{file}"
  14727. msgstr ""
  14728. #. type: deffnx
  14729. #: guix-git/doc/guix.texi:9214
  14730. #, no-wrap
  14731. msgid "{Scheme Procedure} ar-file? @var{file}"
  14732. msgstr ""
  14733. #. type: deffnx
  14734. #: guix-git/doc/guix.texi:9215
  14735. #, no-wrap
  14736. msgid "{Scheme Procedure} gzip-file? @var{file}"
  14737. msgstr ""
  14738. #. type: deffn
  14739. #: guix-git/doc/guix.texi:9218
  14740. 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."
  14741. msgstr ""
  14742. #. type: deffn
  14743. #: guix-git/doc/guix.texi:9220
  14744. #, no-wrap
  14745. msgid "{Scheme Procedure} reset-gzip-timestamp @var{file} [#:keep-mtime? #t]"
  14746. msgstr ""
  14747. #. type: deffn
  14748. #: guix-git/doc/guix.texi:9224
  14749. 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."
  14750. msgstr ""
  14751. #. type: subsection
  14752. #: guix-git/doc/guix.texi:9226
  14753. #, no-wrap
  14754. msgid "File Manipulation"
  14755. msgstr ""
  14756. #. type: Plain text
  14757. #: guix-git/doc/guix.texi:9233
  14758. 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})."
  14759. msgstr ""
  14760. #. type: deffn
  14761. #: guix-git/doc/guix.texi:9234
  14762. #, no-wrap
  14763. msgid "{Scheme Syntax} with-directory-excursion @var{directory} @var{body}@dots{}"
  14764. msgstr ""
  14765. #. type: deffn
  14766. #: guix-git/doc/guix.texi:9236
  14767. msgid "Run @var{body} with @var{directory} as the process's current directory."
  14768. msgstr ""
  14769. #. type: deffn
  14770. #: guix-git/doc/guix.texi:9243
  14771. 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."
  14772. msgstr ""
  14773. #. type: deffn
  14774. #: guix-git/doc/guix.texi:9245
  14775. #, no-wrap
  14776. msgid "{Scheme Procedure} mkdir-p @var{dir}"
  14777. msgstr ""
  14778. #. type: deffn
  14779. #: guix-git/doc/guix.texi:9247
  14780. msgid "Create directory @var{dir} and all its ancestors."
  14781. msgstr ""
  14782. #. type: deffn
  14783. #: guix-git/doc/guix.texi:9249
  14784. #, no-wrap
  14785. msgid "{Scheme Procedure} install-file @var{file} @var{directory}"
  14786. msgstr ""
  14787. #. type: deffn
  14788. #: guix-git/doc/guix.texi:9252
  14789. msgid "Create @var{directory} if it does not exist and copy @var{file} in there under the same name."
  14790. msgstr ""
  14791. #. type: deffn
  14792. #: guix-git/doc/guix.texi:9254
  14793. #, no-wrap
  14794. msgid "{Scheme Procedure} make-file-writable @var{file}"
  14795. msgstr ""
  14796. #. type: deffn
  14797. #: guix-git/doc/guix.texi:9256
  14798. msgid "Make @var{file} writable for its owner."
  14799. msgstr ""
  14800. #. type: deffn
  14801. #: guix-git/doc/guix.texi:9258
  14802. #, no-wrap
  14803. msgid "{Scheme Procedure} copy-recursively @var{source} @var{destination} @"
  14804. msgstr ""
  14805. #. type: deffn
  14806. #: guix-git/doc/guix.texi:9267
  14807. msgid "[#:log (current-output-port)] [#:follow-symlinks? #f] @ [#:copy-file copy-file] [#:keep-mtime? #f] [#:keep-permissions? #t] Copy @var{source} directory to @var{destination}. Follow symlinks if @var{follow-symlinks?} is true; otherwise, just preserve them. Call @var{copy-file} to copy regular files. When @var{keep-mtime?} is true, keep the modification time of the files in @var{source} on those of @var{destination}. When @var{keep-permissions?} is true, preserve file permissions. Write verbose output to the @var{log} port."
  14808. msgstr ""
  14809. #. type: deffn
  14810. #: guix-git/doc/guix.texi:9269
  14811. #, no-wrap
  14812. msgid "{Scheme Procedure} delete-file-recursively @var{dir} @"
  14813. msgstr ""
  14814. #. type: deffn
  14815. #: guix-git/doc/guix.texi:9274
  14816. 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."
  14817. msgstr ""
  14818. #. type: deffn
  14819. #: guix-git/doc/guix.texi:9276
  14820. #, no-wrap
  14821. msgid "{Scheme Syntax} substitute* @var{file} @"
  14822. msgstr ""
  14823. #. type: deffn
  14824. #: guix-git/doc/guix.texi:9281
  14825. 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:"
  14826. msgstr ""
  14827. #. type: lisp
  14828. #: guix-git/doc/guix.texi:9288
  14829. #, no-wrap
  14830. msgid ""
  14831. "(substitute* file\n"
  14832. " ((\"hello\")\n"
  14833. " \"good morning\\n\")\n"
  14834. " ((\"foo([a-z]+)bar(.*)$\" all letters end)\n"
  14835. " (string-append \"baz\" letters end)))\n"
  14836. msgstr ""
  14837. #. type: deffn
  14838. #: guix-git/doc/guix.texi:9294
  14839. 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."
  14840. msgstr ""
  14841. #. type: deffn
  14842. #: guix-git/doc/guix.texi:9297
  14843. msgid "When one of the @var{match-var} is @code{_}, no variable is bound to the corresponding match substring."
  14844. msgstr ""
  14845. #. type: deffn
  14846. #: guix-git/doc/guix.texi:9300
  14847. msgid "Alternatively, @var{file} may be a list of file names, in which case they are all subject to the substitutions."
  14848. msgstr ""
  14849. #. type: deffn
  14850. #: guix-git/doc/guix.texi:9303
  14851. 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."
  14852. msgstr ""
  14853. #. type: subsection
  14854. #: guix-git/doc/guix.texi:9305
  14855. #, fuzzy, no-wrap
  14856. msgid "File Search"
  14857. msgstr "文件系统"
  14858. #. type: cindex
  14859. #: guix-git/doc/guix.texi:9307
  14860. #, no-wrap
  14861. msgid "file, searching"
  14862. msgstr ""
  14863. #. type: Plain text
  14864. #: guix-git/doc/guix.texi:9309
  14865. msgid "This section documents procedures to search and filter files."
  14866. msgstr ""
  14867. #. type: deffn
  14868. #: guix-git/doc/guix.texi:9310
  14869. #, no-wrap
  14870. msgid "{Scheme Procedure} file-name-predicate @var{regexp}"
  14871. msgstr ""
  14872. #. type: deffn
  14873. #: guix-git/doc/guix.texi:9313
  14874. msgid "Return a predicate that returns true when passed a file name whose base name matches @var{regexp}."
  14875. msgstr ""
  14876. #. type: deffn
  14877. #: guix-git/doc/guix.texi:9315
  14878. #, no-wrap
  14879. msgid "{Scheme Procedure} find-files @var{dir} [@var{pred}] @"
  14880. msgstr ""
  14881. #. type: deffn
  14882. #: guix-git/doc/guix.texi:9326
  14883. 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."
  14884. msgstr ""
  14885. #. type: Plain text
  14886. #: guix-git/doc/guix.texi:9330
  14887. msgid "Here are a few examples where we assume that the current directory is the root of the Guix source tree:"
  14888. msgstr ""
  14889. #. type: lisp
  14890. #: guix-git/doc/guix.texi:9335
  14891. #, no-wrap
  14892. msgid ""
  14893. ";; List all the regular files in the current directory.\n"
  14894. "(find-files \".\")\n"
  14895. "@result{} (\"./.dir-locals.el\" \"./.gitignore\" @dots{})\n"
  14896. "\n"
  14897. msgstr ""
  14898. #. type: lisp
  14899. #: guix-git/doc/guix.texi:9339
  14900. #, no-wrap
  14901. msgid ""
  14902. ";; List all the .scm files under gnu/services.\n"
  14903. "(find-files \"gnu/services\" \"\\\\.scm$\")\n"
  14904. "@result{} (\"gnu/services/admin.scm\" \"gnu/services/audio.scm\" @dots{})\n"
  14905. "\n"
  14906. msgstr ""
  14907. #. type: lisp
  14908. #: guix-git/doc/guix.texi:9343
  14909. #, no-wrap
  14910. msgid ""
  14911. ";; List ar files in the current directory.\n"
  14912. "(find-files \".\" (lambda (file stat) (ar-file? file)))\n"
  14913. "@result{} (\"./libformat.a\" \"./libstore.a\" @dots{})\n"
  14914. msgstr ""
  14915. #. type: deffn
  14916. #: guix-git/doc/guix.texi:9345
  14917. #, no-wrap
  14918. msgid "{Scheme Procedure} which @var{program}"
  14919. msgstr ""
  14920. #. type: deffn
  14921. #: guix-git/doc/guix.texi:9348
  14922. msgid "Return the complete file name for @var{program} as found in @code{$PATH}, or @code{#f} if @var{program} could not be found."
  14923. msgstr ""
  14924. #. type: deffn
  14925. #: guix-git/doc/guix.texi:9350
  14926. #, no-wrap
  14927. msgid "{Scheme Procedure} search-input-file @var{inputs} @var{name}"
  14928. msgstr ""
  14929. #. type: deffnx
  14930. #: guix-git/doc/guix.texi:9351
  14931. #, no-wrap
  14932. msgid "{Scheme Procedure} search-input-directory @var{inputs} @var{name}"
  14933. msgstr ""
  14934. #. type: deffn
  14935. #: guix-git/doc/guix.texi:9356
  14936. msgid "Return the complete file name for @var{name} as found in @var{inputs}; @code{search-input-file} searches for a regular file and @code{search-input-directory} searches for a directory. If @var{name} could not be found, an exception is raised."
  14937. msgstr ""
  14938. #. type: deffn
  14939. #: guix-git/doc/guix.texi:9360
  14940. msgid "Here, @var{inputs} must be an association list like @code{inputs} and @code{native-inputs} as available to build phases (@pxref{Build Phases})."
  14941. msgstr ""
  14942. #. type: Plain text
  14943. #: guix-git/doc/guix.texi:9364
  14944. msgid "Here is a (simplified) example of how @code{search-input-file} is used in a build phase of the @code{wireguard-tools} package:"
  14945. msgstr ""
  14946. #. type: lisp
  14947. #: guix-git/doc/guix.texi:9373
  14948. #, no-wrap
  14949. msgid ""
  14950. "(add-after 'install 'wrap-wg-quick\n"
  14951. " (lambda* (#:key inputs outputs #:allow-other-keys)\n"
  14952. " (let ((coreutils (string-append (assoc-ref inputs \"coreutils\")\n"
  14953. " \"/bin\")))\n"
  14954. " (wrap-program (search-input-file outputs \"bin/wg-quick\")\n"
  14955. " #:sh (search-input-file inputs \"bin/bash\")\n"
  14956. " `(\"PATH\" \":\" prefix ,(list coreutils))))))\n"
  14957. msgstr ""
  14958. #. type: subsection
  14959. #: guix-git/doc/guix.texi:9375
  14960. #, fuzzy, no-wrap
  14961. #| msgid "Log Rotation"
  14962. msgid "Program Invocation"
  14963. msgstr "日志轮替"
  14964. #. type: cindex
  14965. #: guix-git/doc/guix.texi:9377
  14966. #, no-wrap
  14967. msgid "program invocation, from Scheme"
  14968. msgstr ""
  14969. #. type: cindex
  14970. #: guix-git/doc/guix.texi:9378
  14971. #, no-wrap
  14972. msgid "invoking programs, from Scheme"
  14973. msgstr ""
  14974. #. type: Plain text
  14975. #: guix-git/doc/guix.texi:9382
  14976. msgid "You'll find handy procedures to spawn processes in this module, essentially convenient wrappers around Guile's @code{system*} (@pxref{Processes, @code{system*},, guile, GNU Guile Reference Manual})."
  14977. msgstr ""
  14978. #. type: deffn
  14979. #: guix-git/doc/guix.texi:9383
  14980. #, no-wrap
  14981. msgid "{Scheme Procedure} invoke @var{program} @var{args}@dots{}"
  14982. msgstr ""
  14983. #. type: deffn
  14984. #: guix-git/doc/guix.texi:9387
  14985. msgid "Invoke @var{program} with the given @var{args}. Raise an @code{&invoke-error} exception if the exit code is non-zero; otherwise return @code{#t}."
  14986. msgstr ""
  14987. #. type: deffn
  14988. #: guix-git/doc/guix.texi:9391
  14989. msgid "The advantage compared to @code{system*} is that you do not need to check the return value. This reduces boilerplate in shell-script-like snippets for instance in package build phases."
  14990. msgstr ""
  14991. #. type: deffn
  14992. #: guix-git/doc/guix.texi:9393
  14993. #, no-wrap
  14994. msgid "{Scheme Procedure} invoke-error? @var{c}"
  14995. msgstr ""
  14996. #. type: deffn
  14997. #: guix-git/doc/guix.texi:9395
  14998. msgid "Return true if @var{c} is an @code{&invoke-error} condition."
  14999. msgstr ""
  15000. #. type: deffn
  15001. #: guix-git/doc/guix.texi:9397
  15002. #, no-wrap
  15003. msgid "{Scheme Procedure} invoke-error-program @var{c}"
  15004. msgstr ""
  15005. #. type: deffnx
  15006. #: guix-git/doc/guix.texi:9398
  15007. #, no-wrap
  15008. msgid "{Scheme Procedure} invoke-error-arguments @var{c}"
  15009. msgstr ""
  15010. #. type: deffnx
  15011. #: guix-git/doc/guix.texi:9399
  15012. #, no-wrap
  15013. msgid "{Scheme Procedure} invoke-error-exit-status @var{c}"
  15014. msgstr ""
  15015. #. type: deffnx
  15016. #: guix-git/doc/guix.texi:9400
  15017. #, no-wrap
  15018. msgid "{Scheme Procedure} invoke-error-term-signal @var{c}"
  15019. msgstr ""
  15020. #. type: deffnx
  15021. #: guix-git/doc/guix.texi:9401
  15022. #, no-wrap
  15023. msgid "{Scheme Procedure} invoke-error-stop-signal @var{c}"
  15024. msgstr ""
  15025. #. type: deffn
  15026. #: guix-git/doc/guix.texi:9403
  15027. msgid "Access specific fields of @var{c}, an @code{&invoke-error} condition."
  15028. msgstr ""
  15029. #. type: deffn
  15030. #: guix-git/doc/guix.texi:9405
  15031. #, no-wrap
  15032. msgid "{Scheme Procedure} report-invoke-error @var{c} [@var{port}]"
  15033. msgstr ""
  15034. #. type: deffn
  15035. #: guix-git/doc/guix.texi:9408
  15036. msgid "Report to @var{port} (by default the current error port) about @var{c}, an @code{&invoke-error} condition, in a human-friendly way."
  15037. msgstr ""
  15038. #. type: deffn
  15039. #: guix-git/doc/guix.texi:9410
  15040. msgid "Typical usage would look like this:"
  15041. msgstr ""
  15042. #. type: lisp
  15043. #: guix-git/doc/guix.texi:9414
  15044. #, no-wrap
  15045. msgid ""
  15046. "(use-modules (srfi srfi-34) ;for 'guard'\n"
  15047. " (guix build utils))\n"
  15048. "\n"
  15049. msgstr ""
  15050. #. type: lisp
  15051. #: guix-git/doc/guix.texi:9418
  15052. #, no-wrap
  15053. msgid ""
  15054. "(guard (c ((invoke-error? c)\n"
  15055. " (report-invoke-error c)))\n"
  15056. " (invoke \"date\" \"--imaginary-option\"))\n"
  15057. "\n"
  15058. msgstr ""
  15059. #. type: lisp
  15060. #: guix-git/doc/guix.texi:9420
  15061. #, no-wrap
  15062. msgid "@print{} command \"date\" \"--imaginary-option\" failed with status 1\n"
  15063. msgstr ""
  15064. #. type: deffn
  15065. #: guix-git/doc/guix.texi:9423
  15066. #, no-wrap
  15067. msgid "{Scheme Procedure} invoke/quiet @var{program} @var{args}@dots{}"
  15068. msgstr ""
  15069. #. type: deffn
  15070. #: guix-git/doc/guix.texi:9429
  15071. msgid "Invoke @var{program} with @var{args} and capture @var{program}'s standard output and standard error. If @var{program} succeeds, print nothing and return the unspecified value; otherwise, raise a @code{&message} error condition that includes the status code and the output of @var{program}."
  15072. msgstr ""
  15073. #. type: deffn
  15074. #: guix-git/doc/guix.texi:9431
  15075. msgid "Here's an example:"
  15076. msgstr ""
  15077. #. type: lisp
  15078. #: guix-git/doc/guix.texi:9436
  15079. #, no-wrap
  15080. msgid ""
  15081. "(use-modules (srfi srfi-34) ;for 'guard'\n"
  15082. " (srfi srfi-35) ;for 'message-condition?'\n"
  15083. " (guix build utils))\n"
  15084. "\n"
  15085. msgstr ""
  15086. #. type: lisp
  15087. #: guix-git/doc/guix.texi:9441
  15088. #, no-wrap
  15089. msgid ""
  15090. "(guard (c ((message-condition? c)\n"
  15091. " (display (condition-message c))))\n"
  15092. " (invoke/quiet \"date\") ;all is fine\n"
  15093. " (invoke/quiet \"date\" \"--imaginary-option\"))\n"
  15094. "\n"
  15095. msgstr ""
  15096. #. type: lisp
  15097. #: guix-git/doc/guix.texi:9443
  15098. #, no-wrap
  15099. msgid ""
  15100. "@print{} 'date --imaginary-option' exited with status 1; output follows:\n"
  15101. "\n"
  15102. msgstr ""
  15103. #. type: lisp
  15104. #: guix-git/doc/guix.texi:9446
  15105. #, no-wrap
  15106. msgid ""
  15107. " date: unrecognized option '--imaginary-option'\n"
  15108. " Try 'date --help' for more information.\n"
  15109. msgstr ""
  15110. #. type: Plain text
  15111. #: guix-git/doc/guix.texi:9458
  15112. 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})."
  15113. msgstr ""
  15114. #. type: Plain text
  15115. #: guix-git/doc/guix.texi:9462
  15116. 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."
  15117. msgstr ""
  15118. #. type: cindex
  15119. #: guix-git/doc/guix.texi:9463
  15120. #, fuzzy, no-wrap
  15121. msgid "build phases, modifying"
  15122. msgstr "构建后台进程"
  15123. #. type: deffn
  15124. #: guix-git/doc/guix.texi:9464
  15125. #, no-wrap
  15126. msgid "{Scheme Syntax} modify-phases @var{phases} @var{clause}@dots{}"
  15127. msgstr ""
  15128. #. type: deffn
  15129. #: guix-git/doc/guix.texi:9467
  15130. msgid "Modify @var{phases} sequentially as per each @var{clause}, which may have one of the following forms:"
  15131. msgstr ""
  15132. #. type: lisp
  15133. #: guix-git/doc/guix.texi:9473
  15134. #, no-wrap
  15135. msgid ""
  15136. "(delete @var{old-phase-name})\n"
  15137. "(replace @var{old-phase-name} @var{new-phase})\n"
  15138. "(add-before @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  15139. "(add-after @var{old-phase-name} @var{new-phase-name} @var{new-phase})\n"
  15140. msgstr ""
  15141. #. type: deffn
  15142. #: guix-git/doc/guix.texi:9477
  15143. msgid "Where every @var{phase-name} above is an expression evaluating to a symbol, and @var{new-phase} an expression evaluating to a procedure."
  15144. msgstr ""
  15145. #. type: Plain text
  15146. #: guix-git/doc/guix.texi:9488
  15147. 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:"
  15148. msgstr ""
  15149. #. type: lisp
  15150. #: guix-git/doc/guix.texi:9501
  15151. #, no-wrap
  15152. msgid ""
  15153. "(modify-phases %standard-phases\n"
  15154. " (add-after 'install 'fix-egrep-and-fgrep\n"
  15155. " ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its\n"
  15156. " ;; absolute file name instead of searching for it in $PATH.\n"
  15157. " (lambda* (#:key outputs #:allow-other-keys)\n"
  15158. " (let* ((out (assoc-ref outputs \"out\"))\n"
  15159. " (bin (string-append out \"/bin\")))\n"
  15160. " (substitute* (list (string-append bin \"/egrep\")\n"
  15161. " (string-append bin \"/fgrep\"))\n"
  15162. " ((\"^exec grep\")\n"
  15163. " (string-append \"exec \" bin \"/grep\")))))))\n"
  15164. msgstr ""
  15165. #. type: Plain text
  15166. #: guix-git/doc/guix.texi:9508
  15167. 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:"
  15168. msgstr ""
  15169. #. type: lisp
  15170. #: guix-git/doc/guix.texi:9520
  15171. #, no-wrap
  15172. msgid ""
  15173. "(modify-phases %standard-phases\n"
  15174. " (delete 'configure) ;no 'configure' script\n"
  15175. " (replace 'install\n"
  15176. " (lambda* (#:key outputs #:allow-other-keys)\n"
  15177. " ;; The package's Makefile doesn't provide an \"install\"\n"
  15178. " ;; rule so do it by ourselves.\n"
  15179. " (let ((bin (string-append (assoc-ref outputs \"out\")\n"
  15180. " \"/bin\")))\n"
  15181. " (install-file \"footswitch\" bin)\n"
  15182. " (install-file \"scythe\" bin)))))\n"
  15183. msgstr ""
  15184. #. type: subsection
  15185. #: guix-git/doc/guix.texi:9524
  15186. #, no-wrap
  15187. msgid "Wrappers"
  15188. msgstr ""
  15189. #. type: cindex
  15190. #: guix-git/doc/guix.texi:9526
  15191. #, no-wrap
  15192. msgid "program wrappers"
  15193. msgstr ""
  15194. #. type: cindex
  15195. #: guix-git/doc/guix.texi:9527
  15196. #, no-wrap
  15197. msgid "wrapping programs"
  15198. msgstr ""
  15199. #. type: Plain text
  15200. #: guix-git/doc/guix.texi:9533
  15201. msgid "It is not unusual for a command to require certain environment variables to be set for proper functioning, typically search paths (@pxref{Search Paths}). Failing to do that, the command might fail to find files or other commands it relies on, or it might pick the ``wrong'' ones---depending on the environment in which it runs. Examples include:"
  15202. msgstr ""
  15203. #. type: itemize
  15204. #: guix-git/doc/guix.texi:9537
  15205. msgid "a shell script that assumes all the commands it uses are in @env{PATH};"
  15206. msgstr ""
  15207. #. type: itemize
  15208. #: guix-git/doc/guix.texi:9541
  15209. msgid "a Guile program that assumes all its modules are in @env{GUILE_LOAD_PATH} and @env{GUILE_LOAD_COMPILED_PATH};"
  15210. msgstr ""
  15211. #. type: itemize
  15212. #: guix-git/doc/guix.texi:9545
  15213. msgid "a Qt application that expects to find certain plugins in @env{QT_PLUGIN_PATH}."
  15214. msgstr ""
  15215. #. type: Plain text
  15216. #: guix-git/doc/guix.texi:9553
  15217. msgid "For a package writer, the goal is to make sure commands always work the same rather than depend on some external settings. One way to achieve that is to @dfn{wrap} commands in a thin script that sets those environment variables, thereby ensuring that those run-time dependencies are always found. The wrapper would be used to set @env{PATH}, @env{GUILE_LOAD_PATH}, or @env{QT_PLUGIN_PATH} in the examples above."
  15218. msgstr ""
  15219. #. type: Plain text
  15220. #: guix-git/doc/guix.texi:9556
  15221. msgid "To ease that task, the @code{(guix build utils)} module provides a couple of helpers to wrap commands."
  15222. msgstr ""
  15223. #. type: deffn
  15224. #: guix-git/doc/guix.texi:9557
  15225. #, no-wrap
  15226. msgid "{Scheme Procedure} wrap-program @var{program} @"
  15227. msgstr ""
  15228. #. type: deffn
  15229. #: guix-git/doc/guix.texi:9560
  15230. msgid "[#:sh @var{sh}] [#:rest @var{variables}] Make a wrapper for @var{program}. @var{variables} should look like this:"
  15231. msgstr ""
  15232. #. type: lisp
  15233. #: guix-git/doc/guix.texi:9563
  15234. #, no-wrap
  15235. msgid "'(@var{variable} @var{delimiter} @var{position} @var{list-of-directories})\n"
  15236. msgstr ""
  15237. #. type: deffn
  15238. #: guix-git/doc/guix.texi:9567
  15239. msgid "where @var{delimiter} is optional. @code{:} will be used if @var{delimiter} is not given."
  15240. msgstr ""
  15241. #. type: deffn
  15242. #: guix-git/doc/guix.texi:9569
  15243. msgid "For example, this call:"
  15244. msgstr ""
  15245. #. type: lisp
  15246. #: guix-git/doc/guix.texi:9575
  15247. #, no-wrap
  15248. msgid ""
  15249. "(wrap-program \"foo\"\n"
  15250. " '(\"PATH\" \":\" = (\"/gnu/.../bar/bin\"))\n"
  15251. " '(\"CERT_PATH\" suffix (\"/gnu/.../baz/certs\"\n"
  15252. " \"/qux/certs\")))\n"
  15253. msgstr ""
  15254. #. type: deffn
  15255. #: guix-git/doc/guix.texi:9579
  15256. msgid "will copy @file{foo} to @file{.foo-real} and create the file @file{foo} with the following contents:"
  15257. msgstr ""
  15258. #. type: example
  15259. #: guix-git/doc/guix.texi:9585
  15260. #, no-wrap
  15261. msgid ""
  15262. "#!location/of/bin/bash\n"
  15263. "export PATH=\"/gnu/.../bar/bin\"\n"
  15264. "export CERT_PATH=\"$CERT_PATH$@{CERT_PATH:+:@}/gnu/.../baz/certs:/qux/certs\"\n"
  15265. "exec -a $0 location/of/.foo-real \"$@@\"\n"
  15266. msgstr ""
  15267. #. type: deffn
  15268. #: guix-git/doc/guix.texi:9590
  15269. msgid "If @var{program} has previously been wrapped by @code{wrap-program}, the wrapper is extended with definitions for @var{variables}. If it is not, @var{sh} will be used as the interpreter."
  15270. msgstr ""
  15271. #. type: deffn
  15272. #: guix-git/doc/guix.texi:9592
  15273. #, no-wrap
  15274. msgid "{Scheme Procedure} wrap-script @var{program} @"
  15275. msgstr ""
  15276. #. type: deffn
  15277. #: guix-git/doc/guix.texi:9600
  15278. msgid "[#:guile @var{guile}] [#:rest @var{variables}] Wrap the script @var{program} such that @var{variables} are set first. The format of @var{variables} is the same as in the @code{wrap-program} procedure. This procedure differs from @code{wrap-program} in that it does not create a separate shell script. Instead, @var{program} is modified directly by prepending a Guile script, which is interpreted as a comment in the script's language."
  15279. msgstr ""
  15280. #. type: deffn
  15281. #: guix-git/doc/guix.texi:9603
  15282. msgid "Special encoding comments as supported by Python are recreated on the second line."
  15283. msgstr ""
  15284. #. type: deffn
  15285. #: guix-git/doc/guix.texi:9606
  15286. msgid "Note that this procedure can only be used once per file as Guile scripts are not supported."
  15287. msgstr ""
  15288. #. type: cindex
  15289. #: guix-git/doc/guix.texi:9611
  15290. #, no-wrap
  15291. msgid "search path"
  15292. msgstr ""
  15293. #. type: Plain text
  15294. #: guix-git/doc/guix.texi:9618
  15295. msgid "Many programs and libraries look for input data in a @dfn{search path}, a list of directories: shells like Bash look for executables in the command search path, a C compiler looks for @file{.h} files in its header search path, the Python interpreter looks for @file{.py} files in its search path, the spell checker has a search path for dictionaries, and so on."
  15296. msgstr ""
  15297. #. type: Plain text
  15298. #: guix-git/doc/guix.texi:9626
  15299. msgid "Search paths can usually be defined or overridden @i{via} environment variables (@pxref{Environment Variables,,, libc, The GNU C Library Reference Manual}). For example, the search paths mentioned above can be changed by defining the @env{PATH}, @env{C_INCLUDE_PATH}, @env{PYTHONPATH} (or @env{GUIX_PYTHONPATH}), and @env{DICPATH} environment variables---you know, all these something-PATH variables that you need to get right or things ``won't be found''."
  15300. msgstr ""
  15301. #. type: Plain text
  15302. #: guix-git/doc/guix.texi:9636
  15303. msgid "You may have noticed from the command line that Guix ``knows'' which search path environment variables should be defined, and how. When you install packages in your default profile, the file @file{~/.guix-profile/etc/profile} is created, which you can ``source'' from the shell to set those variables. Likewise, if you ask @command{guix shell} to create an environment containing Python and NumPy, a Python library, and if you pass it the @option{--search-paths} option, it will tell you about @env{PATH} and @env{GUIX_PYTHONPATH} (@pxref{Invoking guix shell}):"
  15304. msgstr ""
  15305. #. type: example
  15306. #: guix-git/doc/guix.texi:9641
  15307. #, no-wrap
  15308. msgid ""
  15309. "$ guix shell python python-numpy --pure --search-paths\n"
  15310. "export PATH=\"/gnu/store/@dots{}-profile/bin\"\n"
  15311. "export GUIX_PYTHONPATH=\"/gnu/store/@dots{}-profile/lib/python3.9/site-packages\"\n"
  15312. msgstr ""
  15313. #. type: Plain text
  15314. #: guix-git/doc/guix.texi:9645
  15315. msgid "When you omit @option{--search-paths}, it defines these environment variables right away, such that Python can readily find NumPy:"
  15316. msgstr ""
  15317. #. type: example
  15318. #: guix-git/doc/guix.texi:9654
  15319. #, no-wrap
  15320. msgid ""
  15321. "$ guix shell python python-numpy -- python3\n"
  15322. "Python 3.9.6 (default, Jan 1 1970, 00:00:01)\n"
  15323. "[GCC 10.3.0] on linux\n"
  15324. "Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n"
  15325. ">>> import numpy\n"
  15326. ">>> numpy.version.version\n"
  15327. "'1.20.3'\n"
  15328. msgstr ""
  15329. #. type: Plain text
  15330. #: guix-git/doc/guix.texi:9659
  15331. msgid "For this to work, the definition of the @code{python} package @emph{declares} the search path it cares about and its associated environment variable, @env{GUIX_PYTHONPATH}. It looks like this:"
  15332. msgstr ""
  15333. #. type: lisp
  15334. #: guix-git/doc/guix.texi:9669
  15335. #, no-wrap
  15336. msgid ""
  15337. "(package\n"
  15338. " (name \"python\")\n"
  15339. " (version \"3.9.9\")\n"
  15340. " ;; some fields omitted...\n"
  15341. " (native-search-paths\n"
  15342. " (list (search-path-specification\n"
  15343. " (variable \"GUIX_PYTHONPATH\")\n"
  15344. " (files (list \"lib/python/3.9/site-packages\"))))))\n"
  15345. msgstr ""
  15346. #. type: Plain text
  15347. #: guix-git/doc/guix.texi:9684
  15348. msgid "What this @code{native-search-paths} field says is that, when the @code{python} package is used, the @env{GUIX_PYTHONPATH} environment variable must be defined to include all the @file{lib/python/3.9/site-packages} sub-directories encountered in its environment. (The @code{native-} bit means that, if we are in a cross-compilation environment, only native inputs may be added to the search path; @pxref{package Reference, @code{search-paths}}.) In the NumPy example above, the profile where @code{python} appears contains exactly one such sub-directory, and @env{GUIX_PYTHONPATH} is set to that. When there are several @file{lib/python/3.9/site-packages}---this is the case in package build environments---they are all added to @env{GUIX_PYTHONPATH}, separated by colons (@code{:})."
  15349. msgstr ""
  15350. #. type: quotation
  15351. #: guix-git/doc/guix.texi:9691
  15352. msgid "Notice that @env{GUIX_PYTHONPATH} is specified as part of the definition of the @code{python} package, and @emph{not} as part of that of @code{python-numpy}. This is because this environment variable ``belongs'' to Python, not NumPy: Python actually reads the value of that variable and honors it."
  15353. msgstr ""
  15354. #. type: quotation
  15355. #: guix-git/doc/guix.texi:9695
  15356. msgid "Corollary: if you create a profile that does not contain @code{python}, @code{GUIX_PYTHONPATH} will @emph{not} be defined, even if it contains packages that provide @file{.py} files:"
  15357. msgstr ""
  15358. #. type: example
  15359. #: guix-git/doc/guix.texi:9699
  15360. #, no-wrap
  15361. msgid ""
  15362. "$ guix shell python-numpy --search-paths --pure\n"
  15363. "export PATH=\"/gnu/store/@dots{}-profile/bin\"\n"
  15364. msgstr ""
  15365. #. type: quotation
  15366. #: guix-git/doc/guix.texi:9703
  15367. msgid "This makes a lot of sense if we look at this profile in isolation: no software in this profile would read @env{GUIX_PYTHONPATH}."
  15368. msgstr ""
  15369. #. type: Plain text
  15370. #: guix-git/doc/guix.texi:9713
  15371. msgid "Of course, there are many variations on that theme: some packages honor more than one search path, some use separators other than colon, some accumulate several directories in their search path, and so on. A more complex example is the search path of libxml2: the value of the @env{XML_CATALOG_FILES} environment variable is space-separated, it must contain a list of @file{catalog.xml} files (not directories), which are to be found in @file{xml} sub-directories---nothing less. The search path specification looks like this:"
  15372. msgstr ""
  15373. #. type: lisp
  15374. #: guix-git/doc/guix.texi:9725
  15375. #, no-wrap
  15376. msgid ""
  15377. "(package\n"
  15378. " (name \"libxml2\")\n"
  15379. " ;; some fields omitted\n"
  15380. " (native-search-paths\n"
  15381. " (list (search-path-specification\n"
  15382. " (variable \"XML_CATALOG_FILES\")\n"
  15383. " (separator \" \")\n"
  15384. " (files '(\"xml\"))\n"
  15385. " (file-pattern \"^catalog\\\\.xml$\")\n"
  15386. " (file-type 'regular)))))\n"
  15387. msgstr ""
  15388. #. type: Plain text
  15389. #: guix-git/doc/guix.texi:9728
  15390. msgid "Worry not, search path specifications are usually not this tricky."
  15391. msgstr ""
  15392. #. type: Plain text
  15393. #: guix-git/doc/guix.texi:9732
  15394. msgid "The @code{(guix search-paths)} module defines the data type of search path specifications and a number of helper procedures. Below is the reference of search path specifications."
  15395. msgstr ""
  15396. #. type: deftp
  15397. #: guix-git/doc/guix.texi:9733
  15398. #, fuzzy, no-wrap
  15399. msgid "{Data Type} search-path-specification"
  15400. msgstr "管理操作系统配置。"
  15401. #. type: deftp
  15402. #: guix-git/doc/guix.texi:9735
  15403. #, fuzzy
  15404. msgid "The data type for search path specifications."
  15405. msgstr "管理操作系统配置。"
  15406. #. type: code{#1}
  15407. #: guix-git/doc/guix.texi:9737
  15408. #, no-wrap
  15409. msgid "variable"
  15410. msgstr ""
  15411. #. type: table
  15412. #: guix-git/doc/guix.texi:9739
  15413. msgid "The name of the environment variable for this search path (a string)."
  15414. msgstr ""
  15415. #. type: code{#1}
  15416. #: guix-git/doc/guix.texi:9740 guix-git/doc/guix.texi:17607
  15417. #, no-wrap
  15418. msgid "files"
  15419. msgstr ""
  15420. #. type: table
  15421. #: guix-git/doc/guix.texi:9743
  15422. msgid "The list of sub-directories (strings) that should be added to the search path."
  15423. msgstr ""
  15424. #. type: item
  15425. #: guix-git/doc/guix.texi:9744
  15426. #, fuzzy, no-wrap
  15427. msgid "@code{separator} (default: @code{\":\"})"
  15428. msgstr "@code{port}(默认值:@code{22})"
  15429. #. type: table
  15430. #: guix-git/doc/guix.texi:9746
  15431. msgid "The string used to separate search path components."
  15432. msgstr ""
  15433. #. type: table
  15434. #: guix-git/doc/guix.texi:9754
  15435. msgid "As a special case, a @code{separator} value of @code{#f} specifies a ``single-component search path''---in other words, a search path that cannot contain more than one element. This is useful in some cases, such as the @code{SSL_CERT_DIR} variable (honored by OpenSSL, cURL, and a few other packages) or the @code{ASPELL_DICT_DIR} variable (honored by the GNU Aspell spell checker), both of which must point to a single directory."
  15436. msgstr ""
  15437. #. type: item
  15438. #: guix-git/doc/guix.texi:9755
  15439. #, fuzzy, no-wrap
  15440. msgid "@code{file-type} (default: @code{'directory})"
  15441. msgstr "@code{mate}(默认值:@code{mate})"
  15442. #. type: table
  15443. #: guix-git/doc/guix.texi:9759
  15444. msgid "The type of file being matched---@code{'directory} or @code{'regular}, though it can be any symbol returned by @code{stat:type} (@pxref{File System, @code{stat},, guile, GNU Guile Reference Manual})."
  15445. msgstr ""
  15446. #. type: table
  15447. #: guix-git/doc/guix.texi:9762
  15448. msgid "In the libxml2 example above, we would match regular files; in the Python example, we would match directories."
  15449. msgstr ""
  15450. #. type: item
  15451. #: guix-git/doc/guix.texi:9763
  15452. #, fuzzy, no-wrap
  15453. msgid "@code{file-pattern} (default: @code{#f})"
  15454. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  15455. #. type: table
  15456. #: guix-git/doc/guix.texi:9767
  15457. msgid "This must be either @code{#f} or a regular expression specifying files to be matched @emph{within} the sub-directories specified by the @code{files} field."
  15458. msgstr ""
  15459. #. type: table
  15460. #: guix-git/doc/guix.texi:9769
  15461. msgid "Again, the libxml2 example shows a situation where this is needed."
  15462. msgstr ""
  15463. #. type: Plain text
  15464. #: guix-git/doc/guix.texi:9775
  15465. msgid "How do you turn search path specifications on one hand and a bunch of directories on the other hand in a set of environment variable definitions? That's the job of @code{evaluate-search-paths}."
  15466. msgstr ""
  15467. #. type: deffn
  15468. #: guix-git/doc/guix.texi:9776
  15469. #, no-wrap
  15470. msgid "{Scheme Procedure} evaluate-search-paths @var{search-paths} @"
  15471. msgstr ""
  15472. #. type: deffn
  15473. #: guix-git/doc/guix.texi:9782
  15474. msgid "@var{directories} [@var{getenv}] Evaluate @var{search-paths}, a list of search-path specifications, for @var{directories}, a list of directory names, and return a list of specification/value pairs. Use @var{getenv} to determine the current settings and report only settings not already effective."
  15475. msgstr ""
  15476. #. type: Plain text
  15477. #: guix-git/doc/guix.texi:9786
  15478. msgid "The @code{(guix profiles)} provides a higher-level helper procedure, @code{load-profile}, that sets the environment variables of a profile."
  15479. msgstr ""
  15480. #. type: cindex
  15481. #: guix-git/doc/guix.texi:9791
  15482. #, no-wrap
  15483. msgid "store items"
  15484. msgstr ""
  15485. #. type: cindex
  15486. #: guix-git/doc/guix.texi:9792
  15487. #, no-wrap
  15488. msgid "store paths"
  15489. msgstr ""
  15490. #. type: Plain text
  15491. #: guix-git/doc/guix.texi:9803
  15492. 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}."
  15493. msgstr ""
  15494. #. type: Plain text
  15495. #: guix-git/doc/guix.texi:9808
  15496. 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."
  15497. msgstr ""
  15498. #. type: quotation
  15499. #: guix-git/doc/guix.texi:9813
  15500. 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})."
  15501. msgstr ""
  15502. #. type: quotation
  15503. #: guix-git/doc/guix.texi:9817
  15504. 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."
  15505. msgstr ""
  15506. #. type: Plain text
  15507. #: guix-git/doc/guix.texi:9824
  15508. 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."
  15509. msgstr ""
  15510. #. type: defvr
  15511. #: guix-git/doc/guix.texi:9825
  15512. #, no-wrap
  15513. msgid "{Environment Variable} GUIX_DAEMON_SOCKET"
  15514. msgstr ""
  15515. #. type: defvr
  15516. #: guix-git/doc/guix.texi:9830
  15517. 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:"
  15518. msgstr ""
  15519. #. type: code{#1}
  15520. #: guix-git/doc/guix.texi:9832 guix-git/doc/guix.texi:26613
  15521. #, no-wrap
  15522. msgid "file"
  15523. msgstr ""
  15524. #. type: itemx
  15525. #: guix-git/doc/guix.texi:9833
  15526. #, no-wrap
  15527. msgid "unix"
  15528. msgstr ""
  15529. #. type: table
  15530. #: guix-git/doc/guix.texi:9837
  15531. msgid "These are for Unix-domain sockets. @code{file:///var/guix/daemon-socket/socket} is equivalent to @file{/var/guix/daemon-socket/socket}."
  15532. msgstr ""
  15533. #. type: table
  15534. #: guix-git/doc/guix.texi:9846
  15535. 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):"
  15536. msgstr ""
  15537. #. type: example
  15538. #: guix-git/doc/guix.texi:9849
  15539. #, no-wrap
  15540. msgid "guix://master.guix.example.org:1234\n"
  15541. msgstr ""
  15542. #. type: table
  15543. #: guix-git/doc/guix.texi:9854
  15544. 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}."
  15545. msgstr ""
  15546. #. type: table
  15547. #: guix-git/doc/guix.texi:9858
  15548. 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}})."
  15549. msgstr ""
  15550. #. type: item
  15551. #: guix-git/doc/guix.texi:9859
  15552. #, no-wrap
  15553. msgid "ssh"
  15554. msgstr ""
  15555. #. type: cindex
  15556. #: guix-git/doc/guix.texi:9860
  15557. #, no-wrap
  15558. msgid "SSH access to build daemons"
  15559. msgstr ""
  15560. #. type: table
  15561. #: guix-git/doc/guix.texi:9866
  15562. 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:"
  15563. msgstr ""
  15564. #. type: example
  15565. #: guix-git/doc/guix.texi:9869
  15566. #, no-wrap
  15567. msgid "ssh://charlie@@guix.example.org:22\n"
  15568. msgstr ""
  15569. #. type: table
  15570. #: guix-git/doc/guix.texi:9873
  15571. msgid "As for @command{guix copy}, the usual OpenSSH client configuration files are honored (@pxref{Invoking guix copy})."
  15572. msgstr ""
  15573. #. type: defvr
  15574. #: guix-git/doc/guix.texi:9876
  15575. msgid "Additional URI schemes may be supported in the future."
  15576. msgstr ""
  15577. #. type: quotation
  15578. #: guix-git/doc/guix.texi:9883
  15579. 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})."
  15580. msgstr ""
  15581. #. type: deffn
  15582. #: guix-git/doc/guix.texi:9886
  15583. #, no-wrap
  15584. msgid "{Scheme Procedure} open-connection [@var{uri}] [#:reserve-space? #t]"
  15585. msgstr ""
  15586. #. type: deffn
  15587. #: guix-git/doc/guix.texi:9891
  15588. 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."
  15589. msgstr ""
  15590. #. type: deffn
  15591. #: guix-git/doc/guix.texi:9894
  15592. msgid "@var{file} defaults to @code{%default-socket-path}, which is the normal location given the options that were passed to @command{configure}."
  15593. msgstr ""
  15594. #. type: deffn
  15595. #: guix-git/doc/guix.texi:9896
  15596. #, no-wrap
  15597. msgid "{Scheme Procedure} close-connection @var{server}"
  15598. msgstr ""
  15599. #. type: deffn
  15600. #: guix-git/doc/guix.texi:9898
  15601. msgid "Close the connection to @var{server}."
  15602. msgstr ""
  15603. #. type: defvr
  15604. #: guix-git/doc/guix.texi:9900
  15605. #, no-wrap
  15606. msgid "{Scheme Variable} current-build-output-port"
  15607. msgstr ""
  15608. #. type: defvr
  15609. #: guix-git/doc/guix.texi:9903
  15610. 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."
  15611. msgstr ""
  15612. #. type: Plain text
  15613. #: guix-git/doc/guix.texi:9907
  15614. msgid "Procedures that make RPCs all take a server object as their first argument."
  15615. msgstr ""
  15616. #. type: deffn
  15617. #: guix-git/doc/guix.texi:9908
  15618. #, no-wrap
  15619. msgid "{Scheme Procedure} valid-path? @var{server} @var{path}"
  15620. msgstr ""
  15621. #. type: cindex
  15622. #: guix-git/doc/guix.texi:9909
  15623. #, no-wrap
  15624. msgid "invalid store items"
  15625. msgstr ""
  15626. #. type: deffn
  15627. #: guix-git/doc/guix.texi:9914
  15628. 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)."
  15629. msgstr ""
  15630. #. type: deffn
  15631. #: guix-git/doc/guix.texi:9917
  15632. msgid "A @code{&store-protocol-error} condition is raised if @var{path} is not prefixed by the store directory (@file{/gnu/store})."
  15633. msgstr ""
  15634. #. type: deffn
  15635. #: guix-git/doc/guix.texi:9919
  15636. #, no-wrap
  15637. msgid "{Scheme Procedure} add-text-to-store @var{server} @var{name} @var{text} [@var{references}]"
  15638. msgstr ""
  15639. #. type: deffn
  15640. #: guix-git/doc/guix.texi:9923
  15641. 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."
  15642. msgstr ""
  15643. #. type: deffn
  15644. #: guix-git/doc/guix.texi:9925
  15645. #, no-wrap
  15646. msgid "{Scheme Procedure} build-derivations @var{store} @var{derivations} @"
  15647. msgstr ""
  15648. #. type: deffn
  15649. #: guix-git/doc/guix.texi:9930
  15650. 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."
  15651. msgstr ""
  15652. #. type: Plain text
  15653. #: guix-git/doc/guix.texi:9936
  15654. 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})."
  15655. msgstr ""
  15656. #. type: i{#1}
  15657. #: guix-git/doc/guix.texi:9939
  15658. msgid "This section is currently incomplete."
  15659. msgstr ""
  15660. #. type: cindex
  15661. #: guix-git/doc/guix.texi:9943
  15662. #, no-wrap
  15663. msgid "derivations"
  15664. msgstr ""
  15665. #. type: Plain text
  15666. #: guix-git/doc/guix.texi:9947
  15667. 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:"
  15668. msgstr ""
  15669. #. type: itemize
  15670. #: guix-git/doc/guix.texi:9952
  15671. msgid "The outputs of the derivation---derivations produce at least one file or directory in the store, but may produce more."
  15672. msgstr ""
  15673. #. type: cindex
  15674. #: guix-git/doc/guix.texi:9954
  15675. #, no-wrap
  15676. msgid "build-time dependencies"
  15677. msgstr ""
  15678. #. type: cindex
  15679. #: guix-git/doc/guix.texi:9955
  15680. #, no-wrap
  15681. msgid "dependencies, build-time"
  15682. msgstr ""
  15683. #. type: itemize
  15684. #: guix-git/doc/guix.texi:9959
  15685. 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.)."
  15686. msgstr ""
  15687. #. type: itemize
  15688. #: guix-git/doc/guix.texi:9962
  15689. msgid "The system type targeted by the derivation---e.g., @code{x86_64-linux}."
  15690. msgstr ""
  15691. #. type: itemize
  15692. #: guix-git/doc/guix.texi:9966
  15693. msgid "The file name of a build script in the store, along with the arguments to be passed."
  15694. msgstr ""
  15695. #. type: itemize
  15696. #: guix-git/doc/guix.texi:9969
  15697. msgid "A list of environment variables to be defined."
  15698. msgstr ""
  15699. #. type: cindex
  15700. #: guix-git/doc/guix.texi:9972
  15701. #, no-wrap
  15702. msgid "derivation path"
  15703. msgstr ""
  15704. #. type: Plain text
  15705. #: guix-git/doc/guix.texi:9980
  15706. 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})."
  15707. msgstr ""
  15708. #. type: cindex
  15709. #: guix-git/doc/guix.texi:9981
  15710. #, no-wrap
  15711. msgid "fixed-output derivations"
  15712. msgstr ""
  15713. #. type: Plain text
  15714. #: guix-git/doc/guix.texi:9988
  15715. 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."
  15716. msgstr ""
  15717. #. type: item
  15718. #: guix-git/doc/guix.texi:9989 guix-git/doc/guix.texi:13802
  15719. #, no-wrap
  15720. msgid "references"
  15721. msgstr ""
  15722. #. type: cindex
  15723. #: guix-git/doc/guix.texi:9990
  15724. #, no-wrap
  15725. msgid "run-time dependencies"
  15726. msgstr ""
  15727. #. type: cindex
  15728. #: guix-git/doc/guix.texi:9991
  15729. #, no-wrap
  15730. msgid "dependencies, run-time"
  15731. msgstr ""
  15732. #. type: Plain text
  15733. #: guix-git/doc/guix.texi:9998
  15734. 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."
  15735. msgstr ""
  15736. #. type: Plain text
  15737. #: guix-git/doc/guix.texi:10003
  15738. 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:"
  15739. msgstr ""
  15740. #. type: deffn
  15741. #: guix-git/doc/guix.texi:10004
  15742. #, no-wrap
  15743. msgid "{Scheme Procedure} derivation @var{store} @var{name} @var{builder} @"
  15744. msgstr ""
  15745. #. type: deffn
  15746. #: guix-git/doc/guix.texi:10013
  15747. 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."
  15748. msgstr ""
  15749. #. type: deffn
  15750. #: guix-git/doc/guix.texi:10020
  15751. 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."
  15752. msgstr ""
  15753. #. type: deffn
  15754. #: guix-git/doc/guix.texi:10025
  15755. 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."
  15756. msgstr ""
  15757. #. type: deffn
  15758. #: guix-git/doc/guix.texi:10030
  15759. 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."
  15760. msgstr ""
  15761. #. type: deffn
  15762. #: guix-git/doc/guix.texi:10037
  15763. 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."
  15764. msgstr ""
  15765. #. type: deffn
  15766. #: guix-git/doc/guix.texi:10042
  15767. 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."
  15768. msgstr ""
  15769. #. type: deffn
  15770. #: guix-git/doc/guix.texi:10047
  15771. 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."
  15772. msgstr ""
  15773. #. type: deffn
  15774. #: guix-git/doc/guix.texi:10050
  15775. msgid "@var{properties} must be an association list describing ``properties'' of the derivation. It is kept as-is, uninterpreted, in the derivation."
  15776. msgstr ""
  15777. #. type: Plain text
  15778. #: guix-git/doc/guix.texi:10056
  15779. 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:"
  15780. msgstr ""
  15781. #. type: lisp
  15782. #: guix-git/doc/guix.texi:10061
  15783. #, no-wrap
  15784. msgid ""
  15785. "(use-modules (guix utils)\n"
  15786. " (guix store)\n"
  15787. " (guix derivations))\n"
  15788. "\n"
  15789. msgstr ""
  15790. #. type: lisp
  15791. #: guix-git/doc/guix.texi:10070
  15792. #, no-wrap
  15793. msgid ""
  15794. "(let ((builder ; add the Bash script to the store\n"
  15795. " (add-text-to-store store \"my-builder.sh\"\n"
  15796. " \"echo hello world > $out\\n\" '())))\n"
  15797. " (derivation store \"foo\"\n"
  15798. " bash `(\"-e\" ,builder)\n"
  15799. " #:inputs `((,bash) (,builder))\n"
  15800. " #:env-vars '((\"HOME\" . \"/homeless\"))))\n"
  15801. "@result{} #<derivation /gnu/store/@dots{}-foo.drv => /gnu/store/@dots{}-foo>\n"
  15802. msgstr ""
  15803. #. type: Plain text
  15804. #: guix-git/doc/guix.texi:10077
  15805. 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}."
  15806. msgstr ""
  15807. #. type: Plain text
  15808. #: guix-git/doc/guix.texi:10082
  15809. 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}."
  15810. msgstr ""
  15811. #. type: deffn
  15812. #: guix-git/doc/guix.texi:10083
  15813. #, no-wrap
  15814. msgid "{Scheme Procedure} build-expression->derivation @var{store} @"
  15815. msgstr ""
  15816. #. type: deffn
  15817. #: guix-git/doc/guix.texi:10099
  15818. 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))}."
  15819. msgstr ""
  15820. #. type: deffn
  15821. #: guix-git/doc/guix.texi:10107
  15822. 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."
  15823. msgstr ""
  15824. #. type: deffn
  15825. #: guix-git/doc/guix.texi:10111
  15826. 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."
  15827. msgstr ""
  15828. #. type: deffn
  15829. #: guix-git/doc/guix.texi:10116
  15830. 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?}."
  15831. msgstr ""
  15832. #. type: Plain text
  15833. #: guix-git/doc/guix.texi:10121
  15834. msgid "Here's an example of a single-output derivation that creates a directory containing one file:"
  15835. msgstr ""
  15836. #. type: lisp
  15837. #: guix-git/doc/guix.texi:10129
  15838. #, no-wrap
  15839. msgid ""
  15840. "(let ((builder '(let ((out (assoc-ref %outputs \"out\")))\n"
  15841. " (mkdir out) ; create /gnu/store/@dots{}-goo\n"
  15842. " (call-with-output-file (string-append out \"/test\")\n"
  15843. " (lambda (p)\n"
  15844. " (display '(hello guix) p))))))\n"
  15845. " (build-expression->derivation store \"goo\" builder))\n"
  15846. "\n"
  15847. msgstr ""
  15848. #. type: lisp
  15849. #: guix-git/doc/guix.texi:10131
  15850. #, no-wrap
  15851. msgid "@result{} #<derivation /gnu/store/@dots{}-goo.drv => @dots{}>\n"
  15852. msgstr ""
  15853. #. type: cindex
  15854. #: guix-git/doc/guix.texi:10137
  15855. #, no-wrap
  15856. msgid "monad"
  15857. msgstr ""
  15858. #. type: Plain text
  15859. #: guix-git/doc/guix.texi:10143
  15860. 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."
  15861. msgstr ""
  15862. #. type: Plain text
  15863. #: guix-git/doc/guix.texi:10149
  15864. 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."
  15865. msgstr ""
  15866. #. type: cindex
  15867. #: guix-git/doc/guix.texi:10150
  15868. #, no-wrap
  15869. msgid "monadic values"
  15870. msgstr ""
  15871. #. type: cindex
  15872. #: guix-git/doc/guix.texi:10151
  15873. #, no-wrap
  15874. msgid "monadic functions"
  15875. msgstr ""
  15876. #. type: Plain text
  15877. #: guix-git/doc/guix.texi:10161
  15878. 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}."
  15879. msgstr ""
  15880. #. type: Plain text
  15881. #: guix-git/doc/guix.texi:10163
  15882. msgid "Consider this ``normal'' procedure:"
  15883. msgstr ""
  15884. #. type: lisp
  15885. #: guix-git/doc/guix.texi:10172
  15886. #, no-wrap
  15887. msgid ""
  15888. "(define (sh-symlink store)\n"
  15889. " ;; Return a derivation that symlinks the 'bash' executable.\n"
  15890. " (let* ((drv (package-derivation store bash))\n"
  15891. " (out (derivation->output-path drv))\n"
  15892. " (sh (string-append out \"/bin/bash\")))\n"
  15893. " (build-expression->derivation store \"sh\"\n"
  15894. " `(symlink ,sh %output))))\n"
  15895. msgstr ""
  15896. #. type: Plain text
  15897. #: guix-git/doc/guix.texi:10176
  15898. msgid "Using @code{(guix monads)} and @code{(guix gexp)}, it may be rewritten as a monadic function:"
  15899. msgstr ""
  15900. #. type: lisp
  15901. #: guix-git/doc/guix.texi:10184
  15902. #, no-wrap
  15903. msgid ""
  15904. "(define (sh-symlink)\n"
  15905. " ;; Same, but return a monadic value.\n"
  15906. " (mlet %store-monad ((drv (package->derivation bash)))\n"
  15907. " (gexp->derivation \"sh\"\n"
  15908. " #~(symlink (string-append #$drv \"/bin/bash\")\n"
  15909. " #$output))))\n"
  15910. msgstr ""
  15911. #. type: Plain text
  15912. #: guix-git/doc/guix.texi:10191
  15913. 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}."
  15914. msgstr ""
  15915. #. type: Plain text
  15916. #: guix-git/doc/guix.texi:10195
  15917. 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}):"
  15918. msgstr ""
  15919. #. type: lisp
  15920. #: guix-git/doc/guix.texi:10201
  15921. #, no-wrap
  15922. msgid ""
  15923. "(define (sh-symlink)\n"
  15924. " (gexp->derivation \"sh\"\n"
  15925. " #~(symlink (string-append #$bash \"/bin/bash\")\n"
  15926. " #$output)))\n"
  15927. msgstr ""
  15928. #. type: Plain text
  15929. #: guix-git/doc/guix.texi:10210
  15930. 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}:"
  15931. msgstr ""
  15932. #. type: lisp
  15933. #: guix-git/doc/guix.texi:10214
  15934. #, no-wrap
  15935. msgid ""
  15936. "(run-with-store (open-connection) (sh-symlink))\n"
  15937. "@result{} /gnu/store/...-sh-symlink\n"
  15938. msgstr ""
  15939. #. type: Plain text
  15940. #: guix-git/doc/guix.texi:10220
  15941. 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:"
  15942. msgstr ""
  15943. #. type: example
  15944. #: guix-git/doc/guix.texi:10224
  15945. #, no-wrap
  15946. msgid ""
  15947. "scheme@@(guile-user)> ,run-in-store (package->derivation hello)\n"
  15948. "$1 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  15949. msgstr ""
  15950. #. type: Plain text
  15951. #: guix-git/doc/guix.texi:10228
  15952. msgid "The latter enters a recursive REPL, where all the return values are automatically run through the store:"
  15953. msgstr ""
  15954. #. type: example
  15955. #: guix-git/doc/guix.texi:10237
  15956. #, no-wrap
  15957. msgid ""
  15958. "scheme@@(guile-user)> ,enter-store-monad\n"
  15959. "store-monad@@(guile-user) [1]> (package->derivation hello)\n"
  15960. "$2 = #<derivation /gnu/store/@dots{}-hello-2.9.drv => @dots{}>\n"
  15961. "store-monad@@(guile-user) [1]> (text-file \"foo\" \"Hello!\")\n"
  15962. "$3 = \"/gnu/store/@dots{}-foo\"\n"
  15963. "store-monad@@(guile-user) [1]> ,q\n"
  15964. "scheme@@(guile-user)>\n"
  15965. msgstr ""
  15966. #. type: Plain text
  15967. #: guix-git/doc/guix.texi:10242
  15968. msgid "Note that non-monadic values cannot be returned in the @code{store-monad} REPL."
  15969. msgstr ""
  15970. #. type: Plain text
  15971. #: guix-git/doc/guix.texi:10245
  15972. msgid "The main syntactic forms to deal with monads in general are provided by the @code{(guix monads)} module and are described below."
  15973. msgstr ""
  15974. #. type: deffn
  15975. #: guix-git/doc/guix.texi:10246
  15976. #, no-wrap
  15977. msgid "{Scheme Syntax} with-monad @var{monad} @var{body} ..."
  15978. msgstr ""
  15979. #. type: deffn
  15980. #: guix-git/doc/guix.texi:10249
  15981. msgid "Evaluate any @code{>>=} or @code{return} forms in @var{body} as being in @var{monad}."
  15982. msgstr ""
  15983. #. type: deffn
  15984. #: guix-git/doc/guix.texi:10251
  15985. #, no-wrap
  15986. msgid "{Scheme Syntax} return @var{val}"
  15987. msgstr ""
  15988. #. type: deffn
  15989. #: guix-git/doc/guix.texi:10253
  15990. msgid "Return a monadic value that encapsulates @var{val}."
  15991. msgstr ""
  15992. #. type: deffn
  15993. #: guix-git/doc/guix.texi:10255
  15994. #, no-wrap
  15995. msgid "{Scheme Syntax} >>= @var{mval} @var{mproc} ..."
  15996. msgstr ""
  15997. #. type: deffn
  15998. #: guix-git/doc/guix.texi:10262
  15999. 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:"
  16000. msgstr ""
  16001. #. type: lisp
  16002. #: guix-git/doc/guix.texi:10270
  16003. #, no-wrap
  16004. msgid ""
  16005. "(run-with-state\n"
  16006. " (with-monad %state-monad\n"
  16007. " (>>= (return 1)\n"
  16008. " (lambda (x) (return (+ 1 x)))\n"
  16009. " (lambda (x) (return (* 2 x)))))\n"
  16010. " 'some-state)\n"
  16011. "\n"
  16012. msgstr ""
  16013. #. type: lisp
  16014. #: guix-git/doc/guix.texi:10273
  16015. #, no-wrap
  16016. msgid ""
  16017. "@result{} 4\n"
  16018. "@result{} some-state\n"
  16019. msgstr ""
  16020. #. type: deffn
  16021. #: guix-git/doc/guix.texi:10276
  16022. #, no-wrap
  16023. msgid "{Scheme Syntax} mlet @var{monad} ((@var{var} @var{mval}) ...) @"
  16024. msgstr ""
  16025. #. type: deffn
  16026. #: guix-git/doc/guix.texi:10278
  16027. msgid "@var{body} ..."
  16028. msgstr ""
  16029. #. type: deffnx
  16030. #: guix-git/doc/guix.texi:10278
  16031. #, no-wrap
  16032. msgid "{Scheme Syntax} mlet* @var{monad} ((@var{var} @var{mval}) ...) @"
  16033. msgstr ""
  16034. #. type: deffn
  16035. #: guix-git/doc/guix.texi:10290
  16036. 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}."
  16037. msgstr ""
  16038. #. type: deffn
  16039. #: guix-git/doc/guix.texi:10293
  16040. msgid "@code{mlet*} is to @code{mlet} what @code{let*} is to @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual})."
  16041. msgstr ""
  16042. #. type: deffn
  16043. #: guix-git/doc/guix.texi:10295
  16044. #, no-wrap
  16045. msgid "{Scheme System} mbegin @var{monad} @var{mexp} ..."
  16046. msgstr ""
  16047. #. type: deffn
  16048. #: guix-git/doc/guix.texi:10299
  16049. 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."
  16050. msgstr ""
  16051. #. type: deffn
  16052. #: guix-git/doc/guix.texi:10303
  16053. 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."
  16054. msgstr ""
  16055. #. type: deffn
  16056. #: guix-git/doc/guix.texi:10305
  16057. #, no-wrap
  16058. msgid "{Scheme System} mwhen @var{condition} @var{mexp0} @var{mexp*} ..."
  16059. msgstr ""
  16060. #. type: deffn
  16061. #: guix-git/doc/guix.texi:10310
  16062. 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."
  16063. msgstr ""
  16064. #. type: deffn
  16065. #: guix-git/doc/guix.texi:10312
  16066. #, no-wrap
  16067. msgid "{Scheme System} munless @var{condition} @var{mexp0} @var{mexp*} ..."
  16068. msgstr ""
  16069. #. type: deffn
  16070. #: guix-git/doc/guix.texi:10317
  16071. 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."
  16072. msgstr ""
  16073. #. type: cindex
  16074. #: guix-git/doc/guix.texi:10319
  16075. #, no-wrap
  16076. msgid "state monad"
  16077. msgstr ""
  16078. #. type: Plain text
  16079. #: guix-git/doc/guix.texi:10323
  16080. 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."
  16081. msgstr ""
  16082. #. type: defvr
  16083. #: guix-git/doc/guix.texi:10324
  16084. #, no-wrap
  16085. msgid "{Scheme Variable} %state-monad"
  16086. msgstr ""
  16087. #. type: defvr
  16088. #: guix-git/doc/guix.texi:10327
  16089. msgid "The state monad. Procedures in the state monad can access and change the state that is threaded."
  16090. msgstr ""
  16091. #. type: defvr
  16092. #: guix-git/doc/guix.texi:10331
  16093. 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:"
  16094. msgstr ""
  16095. #. type: lisp
  16096. #: guix-git/doc/guix.texi:10338
  16097. #, no-wrap
  16098. msgid ""
  16099. "(define (square x)\n"
  16100. " (mlet %state-monad ((count (current-state)))\n"
  16101. " (mbegin %state-monad\n"
  16102. " (set-current-state (+ 1 count))\n"
  16103. " (return (* x x)))))\n"
  16104. "\n"
  16105. msgstr ""
  16106. #. type: lisp
  16107. #: guix-git/doc/guix.texi:10342
  16108. #, no-wrap
  16109. msgid ""
  16110. "(run-with-state (sequence %state-monad (map square (iota 3))) 0)\n"
  16111. "@result{} (0 1 4)\n"
  16112. "@result{} 3\n"
  16113. msgstr ""
  16114. #. type: defvr
  16115. #: guix-git/doc/guix.texi:10346
  16116. msgid "When ``run'' through @code{%state-monad}, we obtain that additional state value, which is the number of @code{square} calls."
  16117. msgstr ""
  16118. #. type: deffn
  16119. #: guix-git/doc/guix.texi:10348
  16120. #, no-wrap
  16121. msgid "{Monadic Procedure} current-state"
  16122. msgstr ""
  16123. #. type: deffn
  16124. #: guix-git/doc/guix.texi:10350
  16125. msgid "Return the current state as a monadic value."
  16126. msgstr ""
  16127. #. type: deffn
  16128. #: guix-git/doc/guix.texi:10352
  16129. #, no-wrap
  16130. msgid "{Monadic Procedure} set-current-state @var{value}"
  16131. msgstr ""
  16132. #. type: deffn
  16133. #: guix-git/doc/guix.texi:10355
  16134. msgid "Set the current state to @var{value} and return the previous state as a monadic value."
  16135. msgstr ""
  16136. #. type: deffn
  16137. #: guix-git/doc/guix.texi:10357
  16138. #, no-wrap
  16139. msgid "{Monadic Procedure} state-push @var{value}"
  16140. msgstr ""
  16141. #. type: deffn
  16142. #: guix-git/doc/guix.texi:10360
  16143. msgid "Push @var{value} to the current state, which is assumed to be a list, and return the previous state as a monadic value."
  16144. msgstr ""
  16145. #. type: deffn
  16146. #: guix-git/doc/guix.texi:10362
  16147. #, no-wrap
  16148. msgid "{Monadic Procedure} state-pop"
  16149. msgstr ""
  16150. #. type: deffn
  16151. #: guix-git/doc/guix.texi:10365
  16152. msgid "Pop a value from the current state and return it as a monadic value. The state is assumed to be a list."
  16153. msgstr ""
  16154. #. type: deffn
  16155. #: guix-git/doc/guix.texi:10367
  16156. #, no-wrap
  16157. msgid "{Scheme Procedure} run-with-state @var{mval} [@var{state}]"
  16158. msgstr ""
  16159. #. type: deffn
  16160. #: guix-git/doc/guix.texi:10370
  16161. msgid "Run monadic value @var{mval} starting with @var{state} as the initial state. Return two values: the resulting value, and the resulting state."
  16162. msgstr ""
  16163. #. type: Plain text
  16164. #: guix-git/doc/guix.texi:10374
  16165. msgid "The main interface to the store monad, provided by the @code{(guix store)} module, is as follows."
  16166. msgstr ""
  16167. #. type: defvr
  16168. #: guix-git/doc/guix.texi:10375
  16169. #, no-wrap
  16170. msgid "{Scheme Variable} %store-monad"
  16171. msgstr ""
  16172. #. type: defvr
  16173. #: guix-git/doc/guix.texi:10377
  16174. msgid "The store monad---an alias for @code{%state-monad}."
  16175. msgstr ""
  16176. #. type: defvr
  16177. #: guix-git/doc/guix.texi:10381
  16178. 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)."
  16179. msgstr ""
  16180. #. type: deffn
  16181. #: guix-git/doc/guix.texi:10383
  16182. #, no-wrap
  16183. msgid "{Scheme Procedure} run-with-store @var{store} @var{mval} [#:guile-for-build] [#:system (%current-system)]"
  16184. msgstr ""
  16185. #. type: deffn
  16186. #: guix-git/doc/guix.texi:10386
  16187. msgid "Run @var{mval}, a monadic value in the store monad, in @var{store}, an open store connection."
  16188. msgstr ""
  16189. #. type: deffn
  16190. #: guix-git/doc/guix.texi:10388
  16191. #, no-wrap
  16192. msgid "{Monadic Procedure} text-file @var{name} @var{text} [@var{references}]"
  16193. msgstr ""
  16194. #. type: deffn
  16195. #: guix-git/doc/guix.texi:10392
  16196. 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."
  16197. msgstr ""
  16198. #. type: deffn
  16199. #: guix-git/doc/guix.texi:10394
  16200. #, no-wrap
  16201. msgid "{Monadic Procedure} binary-file @var{name} @var{data} [@var{references}]"
  16202. msgstr ""
  16203. #. type: deffn
  16204. #: guix-git/doc/guix.texi:10398
  16205. 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."
  16206. msgstr ""
  16207. #. type: deffn
  16208. #: guix-git/doc/guix.texi:10400
  16209. #, no-wrap
  16210. msgid "{Monadic Procedure} interned-file @var{file} [@var{name}] @"
  16211. msgstr ""
  16212. #. type: deffn
  16213. #: guix-git/doc/guix.texi:10405
  16214. 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."
  16215. msgstr ""
  16216. #. type: deffn
  16217. #: guix-git/doc/guix.texi:10409 guix-git/doc/guix.texi:10832
  16218. 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."
  16219. msgstr ""
  16220. #. type: deffn
  16221. #: guix-git/doc/guix.texi:10414 guix-git/doc/guix.texi:10837
  16222. 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."
  16223. msgstr ""
  16224. #. type: deffn
  16225. #: guix-git/doc/guix.texi:10416
  16226. msgid "The example below adds a file to the store, under two different names:"
  16227. msgstr ""
  16228. #. type: lisp
  16229. #: guix-git/doc/guix.texi:10422
  16230. #, no-wrap
  16231. msgid ""
  16232. "(run-with-store (open-connection)\n"
  16233. " (mlet %store-monad ((a (interned-file \"README\"))\n"
  16234. " (b (interned-file \"README\" \"LEGU-MIN\")))\n"
  16235. " (return (list a b))))\n"
  16236. "\n"
  16237. msgstr ""
  16238. #. type: lisp
  16239. #: guix-git/doc/guix.texi:10424
  16240. #, no-wrap
  16241. msgid "@result{} (\"/gnu/store/rwm@dots{}-README\" \"/gnu/store/44i@dots{}-LEGU-MIN\")\n"
  16242. msgstr ""
  16243. #. type: Plain text
  16244. #: guix-git/doc/guix.texi:10430
  16245. msgid "The @code{(guix packages)} module exports the following package-related monadic procedures:"
  16246. msgstr ""
  16247. #. type: deffn
  16248. #: guix-git/doc/guix.texi:10431
  16249. #, no-wrap
  16250. msgid "{Monadic Procedure} package-file @var{package} [@var{file}] @"
  16251. msgstr ""
  16252. #. type: deffn
  16253. #: guix-git/doc/guix.texi:10439
  16254. 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."
  16255. msgstr ""
  16256. #. type: deffn
  16257. #: guix-git/doc/guix.texi:10443
  16258. 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."
  16259. msgstr ""
  16260. #. type: deffn
  16261. #: guix-git/doc/guix.texi:10445
  16262. #, no-wrap
  16263. msgid "{Monadic Procedure} package->derivation @var{package} [@var{system}]"
  16264. msgstr ""
  16265. #. type: deffnx
  16266. #: guix-git/doc/guix.texi:10446
  16267. #, no-wrap
  16268. msgid "{Monadic Procedure} package->cross-derivation @var{package} @"
  16269. msgstr ""
  16270. #. type: deffn
  16271. #: guix-git/doc/guix.texi:10450
  16272. msgid "@var{target} [@var{system}] Monadic version of @code{package-derivation} and @code{package-cross-derivation} (@pxref{Defining Packages})."
  16273. msgstr ""
  16274. #. type: cindex
  16275. #: guix-git/doc/guix.texi:10456
  16276. #, no-wrap
  16277. msgid "G-expression"
  16278. msgstr ""
  16279. #. type: cindex
  16280. #: guix-git/doc/guix.texi:10457
  16281. #, no-wrap
  16282. msgid "build code quoting"
  16283. msgstr ""
  16284. #. type: Plain text
  16285. #: guix-git/doc/guix.texi:10463
  16286. 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})."
  16287. msgstr ""
  16288. #. type: cindex
  16289. #: guix-git/doc/guix.texi:10466
  16290. #, no-wrap
  16291. msgid "strata of code"
  16292. msgstr ""
  16293. #. type: Plain text
  16294. #: guix-git/doc/guix.texi:10478
  16295. 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})."
  16296. msgstr ""
  16297. #. type: Plain text
  16298. #: guix-git/doc/guix.texi:10485
  16299. 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."
  16300. msgstr ""
  16301. #. type: Plain text
  16302. #: guix-git/doc/guix.texi:10494
  16303. 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:"
  16304. msgstr ""
  16305. #. type: itemize
  16306. #: guix-git/doc/guix.texi:10499
  16307. msgid "Gexps are meant to be written to a file and run or manipulated by other processes."
  16308. msgstr ""
  16309. #. type: itemize
  16310. #: guix-git/doc/guix.texi:10504
  16311. 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."
  16312. msgstr ""
  16313. #. type: itemize
  16314. #: guix-git/doc/guix.texi:10509
  16315. 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."
  16316. msgstr ""
  16317. #. type: cindex
  16318. #: guix-git/doc/guix.texi:10511 guix-git/doc/guix.texi:11068
  16319. #, no-wrap
  16320. msgid "lowering, of high-level objects in gexps"
  16321. msgstr ""
  16322. #. type: Plain text
  16323. #: guix-git/doc/guix.texi:10521
  16324. 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)."
  16325. msgstr ""
  16326. #. type: Plain text
  16327. #: guix-git/doc/guix.texi:10523
  16328. msgid "To illustrate the idea, here is an example of a gexp:"
  16329. msgstr ""
  16330. #. type: lisp
  16331. #: guix-git/doc/guix.texi:10531
  16332. #, no-wrap
  16333. msgid ""
  16334. "(define build-exp\n"
  16335. " #~(begin\n"
  16336. " (mkdir #$output)\n"
  16337. " (chdir #$output)\n"
  16338. " (symlink (string-append #$coreutils \"/bin/ls\")\n"
  16339. " \"list-files\")))\n"
  16340. msgstr ""
  16341. #. type: Plain text
  16342. #: guix-git/doc/guix.texi:10536
  16343. 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}:"
  16344. msgstr ""
  16345. #. type: lisp
  16346. #: guix-git/doc/guix.texi:10539
  16347. #, no-wrap
  16348. msgid "(gexp->derivation \"the-thing\" build-exp)\n"
  16349. msgstr ""
  16350. #. type: Plain text
  16351. #: guix-git/doc/guix.texi:10547
  16352. 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."
  16353. msgstr ""
  16354. #. type: cindex
  16355. #: guix-git/doc/guix.texi:10548
  16356. #, no-wrap
  16357. msgid "cross compilation"
  16358. msgstr ""
  16359. #. type: Plain text
  16360. #: guix-git/doc/guix.texi:10554
  16361. 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:"
  16362. msgstr ""
  16363. #. type: lisp
  16364. #: guix-git/doc/guix.texi:10565
  16365. #, no-wrap
  16366. msgid ""
  16367. "(gexp->derivation \"vi\"\n"
  16368. " #~(begin\n"
  16369. " (mkdir #$output)\n"
  16370. " (mkdir (string-append #$output \"/bin\"))\n"
  16371. " (system* (string-append #+coreutils \"/bin/ln\")\n"
  16372. " \"-s\"\n"
  16373. " (string-append #$emacs \"/bin/emacs\")\n"
  16374. " (string-append #$output \"/bin/vi\")))\n"
  16375. " #:target \"aarch64-linux-gnu\")\n"
  16376. msgstr ""
  16377. #. type: Plain text
  16378. #: guix-git/doc/guix.texi:10571
  16379. 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."
  16380. msgstr ""
  16381. #. type: cindex
  16382. #: guix-git/doc/guix.texi:10572
  16383. #, no-wrap
  16384. msgid "imported modules, for gexps"
  16385. msgstr ""
  16386. #. type: findex
  16387. #: guix-git/doc/guix.texi:10573
  16388. #, no-wrap
  16389. msgid "with-imported-modules"
  16390. msgstr ""
  16391. #. type: Plain text
  16392. #: guix-git/doc/guix.texi:10578
  16393. 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:"
  16394. msgstr ""
  16395. #. type: lisp
  16396. #: guix-git/doc/guix.texi:10589
  16397. #, no-wrap
  16398. msgid ""
  16399. "(let ((build (with-imported-modules '((guix build utils))\n"
  16400. " #~(begin\n"
  16401. " (use-modules (guix build utils))\n"
  16402. " (mkdir-p (string-append #$output \"/bin\"))))))\n"
  16403. " (gexp->derivation \"empty-dir\"\n"
  16404. " #~(begin\n"
  16405. " #$build\n"
  16406. " (display \"success!\\n\")\n"
  16407. " #t)))\n"
  16408. msgstr ""
  16409. #. type: Plain text
  16410. #: guix-git/doc/guix.texi:10595
  16411. 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."
  16412. msgstr ""
  16413. #. type: cindex
  16414. #: guix-git/doc/guix.texi:10596
  16415. #, no-wrap
  16416. msgid "module closure"
  16417. msgstr ""
  16418. #. type: findex
  16419. #: guix-git/doc/guix.texi:10597
  16420. #, no-wrap
  16421. msgid "source-module-closure"
  16422. msgstr ""
  16423. #. type: Plain text
  16424. #: guix-git/doc/guix.texi:10604
  16425. 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:"
  16426. msgstr ""
  16427. #. type: lisp
  16428. #: guix-git/doc/guix.texi:10607
  16429. #, no-wrap
  16430. msgid ""
  16431. "(use-modules (guix modules)) ;for 'source-module-closure'\n"
  16432. "\n"
  16433. msgstr ""
  16434. #. type: lisp
  16435. #: guix-git/doc/guix.texi:10616
  16436. #, no-wrap
  16437. msgid ""
  16438. "(with-imported-modules (source-module-closure\n"
  16439. " '((guix build utils)\n"
  16440. " (gnu build image)))\n"
  16441. " (gexp->derivation \"something-with-vms\"\n"
  16442. " #~(begin\n"
  16443. " (use-modules (guix build utils)\n"
  16444. " (gnu build image))\n"
  16445. " @dots{})))\n"
  16446. msgstr ""
  16447. #. type: cindex
  16448. #: guix-git/doc/guix.texi:10618
  16449. #, no-wrap
  16450. msgid "extensions, for gexps"
  16451. msgstr ""
  16452. #. type: findex
  16453. #: guix-git/doc/guix.texi:10619
  16454. #, no-wrap
  16455. msgid "with-extensions"
  16456. msgstr ""
  16457. #. type: Plain text
  16458. #: guix-git/doc/guix.texi:10624
  16459. 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:"
  16460. msgstr ""
  16461. #. type: lisp
  16462. #: guix-git/doc/guix.texi:10627
  16463. #, no-wrap
  16464. msgid ""
  16465. "(use-modules (gnu packages guile)) ;for 'guile-json'\n"
  16466. "\n"
  16467. msgstr ""
  16468. #. type: lisp
  16469. #: guix-git/doc/guix.texi:10633
  16470. #, no-wrap
  16471. msgid ""
  16472. "(with-extensions (list guile-json)\n"
  16473. " (gexp->derivation \"something-with-json\"\n"
  16474. " #~(begin\n"
  16475. " (use-modules (json))\n"
  16476. " @dots{})))\n"
  16477. msgstr ""
  16478. #. type: Plain text
  16479. #: guix-git/doc/guix.texi:10636
  16480. msgid "The syntactic form to construct gexps is summarized below."
  16481. msgstr ""
  16482. #. type: deffn
  16483. #: guix-git/doc/guix.texi:10637
  16484. #, no-wrap
  16485. msgid "{Scheme Syntax} #~@var{exp}"
  16486. msgstr ""
  16487. #. type: deffnx
  16488. #: guix-git/doc/guix.texi:10638
  16489. #, no-wrap
  16490. msgid "{Scheme Syntax} (gexp @var{exp})"
  16491. msgstr ""
  16492. #. type: deffn
  16493. #: guix-git/doc/guix.texi:10641
  16494. msgid "Return a G-expression containing @var{exp}. @var{exp} may contain one or more of the following forms:"
  16495. msgstr ""
  16496. #. type: item
  16497. #: guix-git/doc/guix.texi:10643
  16498. #, no-wrap
  16499. msgid "#$@var{obj}"
  16500. msgstr ""
  16501. #. type: itemx
  16502. #: guix-git/doc/guix.texi:10644
  16503. #, no-wrap
  16504. msgid "(ungexp @var{obj})"
  16505. msgstr ""
  16506. #. type: table
  16507. #: guix-git/doc/guix.texi:10649
  16508. 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}."
  16509. msgstr ""
  16510. #. type: table
  16511. #: guix-git/doc/guix.texi:10652
  16512. msgid "If @var{obj} is a list, it is traversed and references to supported objects are substituted similarly."
  16513. msgstr ""
  16514. #. type: table
  16515. #: guix-git/doc/guix.texi:10655
  16516. msgid "If @var{obj} is another gexp, its contents are inserted and its dependencies are added to those of the containing gexp."
  16517. msgstr ""
  16518. #. type: table
  16519. #: guix-git/doc/guix.texi:10657
  16520. msgid "If @var{obj} is another kind of object, it is inserted as is."
  16521. msgstr ""
  16522. #. type: item
  16523. #: guix-git/doc/guix.texi:10658
  16524. #, no-wrap
  16525. msgid "#$@var{obj}:@var{output}"
  16526. msgstr ""
  16527. #. type: itemx
  16528. #: guix-git/doc/guix.texi:10659
  16529. #, no-wrap
  16530. msgid "(ungexp @var{obj} @var{output})"
  16531. msgstr ""
  16532. #. type: table
  16533. #: guix-git/doc/guix.texi:10663
  16534. 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})."
  16535. msgstr ""
  16536. #. type: item
  16537. #: guix-git/doc/guix.texi:10664
  16538. #, no-wrap
  16539. msgid "#+@var{obj}"
  16540. msgstr ""
  16541. #. type: itemx
  16542. #: guix-git/doc/guix.texi:10665
  16543. #, no-wrap
  16544. msgid "#+@var{obj}:output"
  16545. msgstr ""
  16546. #. type: itemx
  16547. #: guix-git/doc/guix.texi:10666
  16548. #, no-wrap
  16549. msgid "(ungexp-native @var{obj})"
  16550. msgstr ""
  16551. #. type: itemx
  16552. #: guix-git/doc/guix.texi:10667
  16553. #, no-wrap
  16554. msgid "(ungexp-native @var{obj} @var{output})"
  16555. msgstr ""
  16556. #. type: table
  16557. #: guix-git/doc/guix.texi:10670
  16558. msgid "Same as @code{ungexp}, but produces a reference to the @emph{native} build of @var{obj} when used in a cross compilation context."
  16559. msgstr ""
  16560. #. type: item
  16561. #: guix-git/doc/guix.texi:10671
  16562. #, no-wrap
  16563. msgid "#$output[:@var{output}]"
  16564. msgstr ""
  16565. #. type: itemx
  16566. #: guix-git/doc/guix.texi:10672
  16567. #, no-wrap
  16568. msgid "(ungexp output [@var{output}])"
  16569. msgstr ""
  16570. #. type: table
  16571. #: guix-git/doc/guix.texi:10675
  16572. msgid "Insert a reference to derivation output @var{output}, or to the main output when @var{output} is omitted."
  16573. msgstr ""
  16574. #. type: table
  16575. #: guix-git/doc/guix.texi:10677
  16576. msgid "This only makes sense for gexps passed to @code{gexp->derivation}."
  16577. msgstr ""
  16578. #. type: item
  16579. #: guix-git/doc/guix.texi:10678
  16580. #, no-wrap
  16581. msgid "#$@@@var{lst}"
  16582. msgstr ""
  16583. #. type: itemx
  16584. #: guix-git/doc/guix.texi:10679
  16585. #, no-wrap
  16586. msgid "(ungexp-splicing @var{lst})"
  16587. msgstr ""
  16588. #. type: table
  16589. #: guix-git/doc/guix.texi:10682
  16590. msgid "Like the above, but splices the contents of @var{lst} inside the containing list."
  16591. msgstr ""
  16592. #. type: item
  16593. #: guix-git/doc/guix.texi:10683
  16594. #, no-wrap
  16595. msgid "#+@@@var{lst}"
  16596. msgstr ""
  16597. #. type: itemx
  16598. #: guix-git/doc/guix.texi:10684
  16599. #, no-wrap
  16600. msgid "(ungexp-native-splicing @var{lst})"
  16601. msgstr ""
  16602. #. type: table
  16603. #: guix-git/doc/guix.texi:10687
  16604. msgid "Like the above, but refers to native builds of the objects listed in @var{lst}."
  16605. msgstr ""
  16606. #. type: deffn
  16607. #: guix-git/doc/guix.texi:10692
  16608. msgid "G-expressions created by @code{gexp} or @code{#~} are run-time objects of the @code{gexp?} type (see below)."
  16609. msgstr ""
  16610. #. type: deffn
  16611. #: guix-git/doc/guix.texi:10694
  16612. #, no-wrap
  16613. msgid "{Scheme Syntax} with-imported-modules @var{modules} @var{body}@dots{}"
  16614. msgstr ""
  16615. #. type: deffn
  16616. #: guix-git/doc/guix.texi:10697
  16617. msgid "Mark the gexps defined in @var{body}@dots{} as requiring @var{modules} in their execution environment."
  16618. msgstr ""
  16619. #. type: deffn
  16620. #: guix-git/doc/guix.texi:10701
  16621. 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:"
  16622. msgstr ""
  16623. #. type: lisp
  16624. #: guix-git/doc/guix.texi:10707
  16625. #, no-wrap
  16626. msgid ""
  16627. "`((guix build utils)\n"
  16628. " (guix gcrypt)\n"
  16629. " ((guix config) => ,(scheme-file \"config.scm\"\n"
  16630. " #~(define-module @dots{}))))\n"
  16631. msgstr ""
  16632. #. type: deffn
  16633. #: guix-git/doc/guix.texi:10712
  16634. 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."
  16635. msgstr ""
  16636. #. type: deffn
  16637. #: guix-git/doc/guix.texi:10716
  16638. 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{}."
  16639. msgstr ""
  16640. #. type: deffn
  16641. #: guix-git/doc/guix.texi:10718
  16642. #, no-wrap
  16643. msgid "{Scheme Syntax} with-extensions @var{extensions} @var{body}@dots{}"
  16644. msgstr ""
  16645. #. type: deffn
  16646. #: guix-git/doc/guix.texi:10723
  16647. 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."
  16648. msgstr ""
  16649. #. type: deffn
  16650. #: guix-git/doc/guix.texi:10728
  16651. 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{}."
  16652. msgstr ""
  16653. #. type: deffn
  16654. #: guix-git/doc/guix.texi:10730
  16655. #, no-wrap
  16656. msgid "{Scheme Procedure} gexp? @var{obj}"
  16657. msgstr ""
  16658. #. type: deffn
  16659. #: guix-git/doc/guix.texi:10732
  16660. msgid "Return @code{#t} if @var{obj} is a G-expression."
  16661. msgstr ""
  16662. #. type: Plain text
  16663. #: guix-git/doc/guix.texi:10738
  16664. 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)."
  16665. msgstr ""
  16666. #. type: deffn
  16667. #: guix-git/doc/guix.texi:10739
  16668. #, no-wrap
  16669. msgid "{Monadic Procedure} gexp->derivation @var{name} @var{exp} @"
  16670. msgstr ""
  16671. #. type: deffn
  16672. #: guix-git/doc/guix.texi:10757
  16673. 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}."
  16674. msgstr ""
  16675. #. type: deffn
  16676. #: guix-git/doc/guix.texi:10765
  16677. 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))}."
  16678. msgstr ""
  16679. #. type: deffn
  16680. #: guix-git/doc/guix.texi:10768
  16681. 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\"}."
  16682. msgstr ""
  16683. #. type: deffn
  16684. #: guix-git/doc/guix.texi:10771
  16685. msgid "@var{graft?} determines whether packages referred to by @var{exp} should be grafted when applicable."
  16686. msgstr ""
  16687. #. type: deffn
  16688. #: guix-git/doc/guix.texi:10774
  16689. msgid "When @var{references-graphs} is true, it must be a list of tuples of one of the following forms:"
  16690. msgstr ""
  16691. #. type: example
  16692. #: guix-git/doc/guix.texi:10781
  16693. #, no-wrap
  16694. msgid ""
  16695. "(@var{file-name} @var{package})\n"
  16696. "(@var{file-name} @var{package} @var{output})\n"
  16697. "(@var{file-name} @var{derivation})\n"
  16698. "(@var{file-name} @var{derivation} @var{output})\n"
  16699. "(@var{file-name} @var{store-item})\n"
  16700. msgstr ""
  16701. #. type: deffn
  16702. #: guix-git/doc/guix.texi:10787
  16703. 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."
  16704. msgstr ""
  16705. #. type: deffn
  16706. #: guix-git/doc/guix.texi:10793
  16707. 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."
  16708. msgstr ""
  16709. #. type: deffn
  16710. #: guix-git/doc/guix.texi:10796
  16711. msgid "@var{deprecation-warnings} determines whether to show deprecation warnings while compiling modules. It can be @code{#f}, @code{#t}, or @code{'detailed}."
  16712. msgstr ""
  16713. #. type: deffn
  16714. #: guix-git/doc/guix.texi:10798
  16715. msgid "The other arguments are as for @code{derivation} (@pxref{Derivations})."
  16716. msgstr ""
  16717. #. type: cindex
  16718. #: guix-git/doc/guix.texi:10800
  16719. #, no-wrap
  16720. msgid "file-like objects"
  16721. msgstr ""
  16722. #. type: Plain text
  16723. #: guix-git/doc/guix.texi:10805
  16724. 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:"
  16725. msgstr ""
  16726. #. type: lisp
  16727. #: guix-git/doc/guix.texi:10809
  16728. #, no-wrap
  16729. msgid ""
  16730. "#~(system* #$(file-append glibc \"/sbin/nscd\") \"-f\"\n"
  16731. " #$(local-file \"/tmp/my-nscd.conf\"))\n"
  16732. msgstr ""
  16733. #. type: Plain text
  16734. #: guix-git/doc/guix.texi:10818
  16735. 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."
  16736. msgstr ""
  16737. #. type: deffn
  16738. #: guix-git/doc/guix.texi:10819
  16739. #, no-wrap
  16740. msgid "{Scheme Procedure} local-file @var{file} [@var{name}] @"
  16741. msgstr ""
  16742. #. type: deffn
  16743. #: guix-git/doc/guix.texi:10828
  16744. 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}."
  16745. msgstr ""
  16746. #. type: deffn
  16747. #: guix-git/doc/guix.texi:10840
  16748. msgid "This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}})."
  16749. msgstr ""
  16750. #. type: deffn
  16751. #: guix-git/doc/guix.texi:10842
  16752. #, no-wrap
  16753. msgid "{Scheme Procedure} plain-file @var{name} @var{content}"
  16754. msgstr ""
  16755. #. type: deffn
  16756. #: guix-git/doc/guix.texi:10845
  16757. 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."
  16758. msgstr ""
  16759. #. type: deffn
  16760. #: guix-git/doc/guix.texi:10847
  16761. msgid "This is the declarative counterpart of @code{text-file}."
  16762. msgstr ""
  16763. #. type: deffn
  16764. #: guix-git/doc/guix.texi:10849
  16765. #, no-wrap
  16766. msgid "{Scheme Procedure} computed-file @var{name} @var{gexp} @"
  16767. msgstr ""
  16768. #. type: deffn
  16769. #: guix-git/doc/guix.texi:10856
  16770. 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}."
  16771. msgstr ""
  16772. #. type: deffn
  16773. #: guix-git/doc/guix.texi:10858
  16774. msgid "This is the declarative counterpart of @code{gexp->derivation}."
  16775. msgstr ""
  16776. #. type: deffn
  16777. #: guix-git/doc/guix.texi:10860
  16778. #, no-wrap
  16779. msgid "{Monadic Procedure} gexp->script @var{name} @var{exp} @"
  16780. msgstr ""
  16781. #. type: deffn
  16782. #: guix-git/doc/guix.texi:10866
  16783. 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}."
  16784. msgstr ""
  16785. #. type: deffn
  16786. #: guix-git/doc/guix.texi:10869
  16787. msgid "The example below builds a script that simply invokes the @command{ls} command:"
  16788. msgstr ""
  16789. #. type: lisp
  16790. #: guix-git/doc/guix.texi:10872
  16791. #, no-wrap
  16792. msgid ""
  16793. "(use-modules (guix gexp) (gnu packages base))\n"
  16794. "\n"
  16795. msgstr ""
  16796. #. type: lisp
  16797. #: guix-git/doc/guix.texi:10876
  16798. #, no-wrap
  16799. msgid ""
  16800. "(gexp->script \"list-files\"\n"
  16801. " #~(execl #$(file-append coreutils \"/bin/ls\")\n"
  16802. " \"ls\"))\n"
  16803. msgstr ""
  16804. #. type: deffn
  16805. #: guix-git/doc/guix.texi:10881
  16806. 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:"
  16807. msgstr ""
  16808. #. type: example
  16809. #: guix-git/doc/guix.texi:10886
  16810. #, no-wrap
  16811. msgid ""
  16812. "#!/gnu/store/@dots{}-guile-2.0.11/bin/guile -ds\n"
  16813. "!#\n"
  16814. "(execl \"/gnu/store/@dots{}-coreutils-8.22\"/bin/ls\" \"ls\")\n"
  16815. msgstr ""
  16816. #. type: deffn
  16817. #: guix-git/doc/guix.texi:10889
  16818. #, no-wrap
  16819. msgid "{Scheme Procedure} program-file @var{name} @var{exp} @"
  16820. msgstr ""
  16821. #. type: deffn
  16822. #: guix-git/doc/guix.texi:10894
  16823. 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}."
  16824. msgstr ""
  16825. #. type: deffn
  16826. #: guix-git/doc/guix.texi:10896
  16827. msgid "This is the declarative counterpart of @code{gexp->script}."
  16828. msgstr ""
  16829. #. type: deffn
  16830. #: guix-git/doc/guix.texi:10898
  16831. #, no-wrap
  16832. msgid "{Monadic Procedure} gexp->file @var{name} @var{exp} @"
  16833. msgstr ""
  16834. #. type: deffn
  16835. #: guix-git/doc/guix.texi:10905
  16836. 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."
  16837. msgstr ""
  16838. #. type: deffn
  16839. #: guix-git/doc/guix.texi:10910
  16840. 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}."
  16841. msgstr ""
  16842. #. type: deffn
  16843. #: guix-git/doc/guix.texi:10913
  16844. msgid "The resulting file holds references to all the dependencies of @var{exp} or a subset thereof."
  16845. msgstr ""
  16846. #. type: deffn
  16847. #: guix-git/doc/guix.texi:10915
  16848. #, no-wrap
  16849. msgid "{Scheme Procedure} scheme-file @var{name} @var{exp} @"
  16850. msgstr ""
  16851. #. type: deffn
  16852. #: guix-git/doc/guix.texi:10919
  16853. msgid "[#:splice? #f] [#:set-load-path? #t] Return an object representing the Scheme file @var{name} that contains @var{exp}."
  16854. msgstr ""
  16855. #. type: deffn
  16856. #: guix-git/doc/guix.texi:10921
  16857. msgid "This is the declarative counterpart of @code{gexp->file}."
  16858. msgstr ""
  16859. #. type: deffn
  16860. #: guix-git/doc/guix.texi:10923
  16861. #, no-wrap
  16862. msgid "{Monadic Procedure} text-file* @var{name} @var{text} @dots{}"
  16863. msgstr ""
  16864. #. type: deffn
  16865. #: guix-git/doc/guix.texi:10929
  16866. 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."
  16867. msgstr ""
  16868. #. type: deffn
  16869. #: guix-git/doc/guix.texi:10934
  16870. 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:"
  16871. msgstr ""
  16872. #. type: lisp
  16873. #: guix-git/doc/guix.texi:10942
  16874. #, no-wrap
  16875. msgid ""
  16876. "(define (profile.sh)\n"
  16877. " ;; Return the name of a shell script in the store that\n"
  16878. " ;; initializes the 'PATH' environment variable.\n"
  16879. " (text-file* \"profile.sh\"\n"
  16880. " \"export PATH=\" coreutils \"/bin:\"\n"
  16881. " grep \"/bin:\" sed \"/bin\\n\"))\n"
  16882. msgstr ""
  16883. #. type: deffn
  16884. #: guix-git/doc/guix.texi:10947
  16885. 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."
  16886. msgstr ""
  16887. #. type: deffn
  16888. #: guix-git/doc/guix.texi:10949
  16889. #, no-wrap
  16890. msgid "{Scheme Procedure} mixed-text-file @var{name} @var{text} @dots{}"
  16891. msgstr ""
  16892. #. type: deffn
  16893. #: guix-git/doc/guix.texi:10953
  16894. 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:"
  16895. msgstr ""
  16896. #. type: lisp
  16897. #: guix-git/doc/guix.texi:10957
  16898. #, no-wrap
  16899. msgid ""
  16900. "(mixed-text-file \"profile\"\n"
  16901. " \"export PATH=\" coreutils \"/bin:\" grep \"/bin\")\n"
  16902. msgstr ""
  16903. #. type: deffn
  16904. #: guix-git/doc/guix.texi:10960
  16905. msgid "This is the declarative counterpart of @code{text-file*}."
  16906. msgstr ""
  16907. #. type: deffn
  16908. #: guix-git/doc/guix.texi:10962
  16909. #, no-wrap
  16910. msgid "{Scheme Procedure} file-union @var{name} @var{files}"
  16911. msgstr ""
  16912. #. type: deffn
  16913. #: guix-git/doc/guix.texi:10967
  16914. 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:"
  16915. msgstr ""
  16916. #. type: lisp
  16917. #: guix-git/doc/guix.texi:10974
  16918. #, no-wrap
  16919. msgid ""
  16920. "(file-union \"etc\"\n"
  16921. " `((\"hosts\" ,(plain-file \"hosts\"\n"
  16922. " \"127.0.0.1 localhost\"))\n"
  16923. " (\"bashrc\" ,(plain-file \"bashrc\"\n"
  16924. " \"alias ls='ls --color=auto'\"))))\n"
  16925. msgstr ""
  16926. #. type: deffn
  16927. #: guix-git/doc/guix.texi:10977
  16928. msgid "This yields an @code{etc} directory containing these two files."
  16929. msgstr ""
  16930. #. type: deffn
  16931. #: guix-git/doc/guix.texi:10979
  16932. #, no-wrap
  16933. msgid "{Scheme Procedure} directory-union @var{name} @var{things}"
  16934. msgstr ""
  16935. #. type: deffn
  16936. #: guix-git/doc/guix.texi:10982
  16937. 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:"
  16938. msgstr ""
  16939. #. type: lisp
  16940. #: guix-git/doc/guix.texi:10985
  16941. #, no-wrap
  16942. msgid "(directory-union \"guile+emacs\" (list guile emacs))\n"
  16943. msgstr ""
  16944. #. type: deffn
  16945. #: guix-git/doc/guix.texi:10988
  16946. msgid "yields a directory that is the union of the @code{guile} and @code{emacs} packages."
  16947. msgstr ""
  16948. #. type: deffn
  16949. #: guix-git/doc/guix.texi:10990
  16950. #, no-wrap
  16951. msgid "{Scheme Procedure} file-append @var{obj} @var{suffix} @dots{}"
  16952. msgstr ""
  16953. #. type: deffn
  16954. #: guix-git/doc/guix.texi:10994
  16955. 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."
  16956. msgstr ""
  16957. #. type: deffn
  16958. #: guix-git/doc/guix.texi:10996
  16959. msgid "As an example, consider this gexp:"
  16960. msgstr ""
  16961. #. type: lisp
  16962. #: guix-git/doc/guix.texi:11001
  16963. #, no-wrap
  16964. msgid ""
  16965. "(gexp->script \"run-uname\"\n"
  16966. " #~(system* #$(file-append coreutils\n"
  16967. " \"/bin/uname\")))\n"
  16968. msgstr ""
  16969. #. type: deffn
  16970. #: guix-git/doc/guix.texi:11004
  16971. msgid "The same effect could be achieved with:"
  16972. msgstr ""
  16973. #. type: lisp
  16974. #: guix-git/doc/guix.texi:11009
  16975. #, no-wrap
  16976. msgid ""
  16977. "(gexp->script \"run-uname\"\n"
  16978. " #~(system* (string-append #$coreutils\n"
  16979. " \"/bin/uname\")))\n"
  16980. msgstr ""
  16981. #. type: deffn
  16982. #: guix-git/doc/guix.texi:11015
  16983. 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}."
  16984. msgstr ""
  16985. #. type: deffn
  16986. #: guix-git/doc/guix.texi:11017
  16987. #, no-wrap
  16988. msgid "{Scheme Syntax} let-system @var{system} @var{body}@dots{}"
  16989. msgstr ""
  16990. #. type: deffnx
  16991. #: guix-git/doc/guix.texi:11018
  16992. #, no-wrap
  16993. msgid "{Scheme Syntax} let-system (@var{system} @var{target}) @var{body}@dots{}"
  16994. msgstr ""
  16995. #. type: deffn
  16996. #: guix-git/doc/guix.texi:11021
  16997. #, fuzzy
  16998. msgid "Bind @var{system} to the currently targeted system---e.g., @code{\"x86_64-linux\"}---within @var{body}."
  16999. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  17000. #. type: deffn
  17001. #: guix-git/doc/guix.texi:11026
  17002. 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."
  17003. msgstr ""
  17004. #. type: deffn
  17005. #: guix-git/doc/guix.texi:11029
  17006. 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:"
  17007. msgstr ""
  17008. #. type: lisp
  17009. #: guix-git/doc/guix.texi:11040
  17010. #, no-wrap
  17011. msgid ""
  17012. "#~(system*\n"
  17013. " #+(let-system system\n"
  17014. " (cond ((string-prefix? \"armhf-\" system)\n"
  17015. " (file-append qemu \"/bin/qemu-system-arm\"))\n"
  17016. " ((string-prefix? \"x86_64-\" system)\n"
  17017. " (file-append qemu \"/bin/qemu-system-x86_64\"))\n"
  17018. " (else\n"
  17019. " (error \"dunno!\"))))\n"
  17020. " \"-net\" \"user\" #$image)\n"
  17021. msgstr ""
  17022. #. type: deffn
  17023. #: guix-git/doc/guix.texi:11043
  17024. #, no-wrap
  17025. msgid "{Scheme Syntax} with-parameters ((@var{parameter} @var{value}) @dots{}) @var{exp}"
  17026. msgstr ""
  17027. #. type: deffn
  17028. #: guix-git/doc/guix.texi:11049
  17029. 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."
  17030. msgstr ""
  17031. #. type: deffn
  17032. #: guix-git/doc/guix.texi:11052
  17033. msgid "A typical use of @code{with-parameters} is to force the system in effect for a given object:"
  17034. msgstr ""
  17035. #. type: lisp
  17036. #: guix-git/doc/guix.texi:11056
  17037. #, no-wrap
  17038. msgid ""
  17039. "(with-parameters ((%current-system \"i686-linux\"))\n"
  17040. " coreutils)\n"
  17041. msgstr ""
  17042. #. type: deffn
  17043. #: guix-git/doc/guix.texi:11060
  17044. msgid "The example above returns an object that corresponds to the i686 build of Coreutils, regardless of the current value of @code{%current-system}."
  17045. msgstr ""
  17046. #. type: Plain text
  17047. #: guix-git/doc/guix.texi:11067
  17048. 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."
  17049. msgstr ""
  17050. #. type: Plain text
  17051. #: guix-git/doc/guix.texi:11073
  17052. 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."
  17053. msgstr ""
  17054. #. type: deffn
  17055. #: guix-git/doc/guix.texi:11074
  17056. #, no-wrap
  17057. msgid "{Monadic Procedure} lower-object @var{obj} [@var{system}] @"
  17058. msgstr ""
  17059. #. type: deffn
  17060. #: guix-git/doc/guix.texi:11080
  17061. 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>}."
  17062. msgstr ""
  17063. #. type: deffn
  17064. #: guix-git/doc/guix.texi:11082
  17065. #, no-wrap
  17066. msgid "{Procedure} gexp->approximate-sexp @var{gexp}"
  17067. msgstr ""
  17068. #. type: deffn
  17069. #: guix-git/doc/guix.texi:11090
  17070. msgid "Sometimes, it may be useful to convert a G-exp into a S-exp. For example, some linters (@pxref{Invoking guix lint}) peek into the build phases of a package to detect potential problems. This conversion can be achieved with this procedure. However, some information can be lost in the process. More specifically, lowerable objects will be silently replaced with some arbitrary object -- currently the list @code{(*approximate*)}, but this may change."
  17071. msgstr ""
  17072. #. type: section
  17073. #: guix-git/doc/guix.texi:11093
  17074. #, no-wrap
  17075. msgid "Invoking @command{guix repl}"
  17076. msgstr ""
  17077. #. type: cindex
  17078. #: guix-git/doc/guix.texi:11095
  17079. #, fuzzy, no-wrap
  17080. msgid "REPL, read-eval-print loop, script"
  17081. msgstr "read-eval-print loop"
  17082. #. type: Plain text
  17083. #: guix-git/doc/guix.texi:11105
  17084. 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."
  17085. msgstr ""
  17086. #. type: example
  17087. #: guix-git/doc/guix.texi:11110
  17088. #, no-wrap
  17089. msgid "guix repl @var{options} [@var{file} @var{args}]\n"
  17090. msgstr ""
  17091. #. type: Plain text
  17092. #: guix-git/doc/guix.texi:11114
  17093. msgid "When a @var{file} argument is provided, @var{file} is executed as a Guile scripts:"
  17094. msgstr ""
  17095. #. type: example
  17096. #: guix-git/doc/guix.texi:11117
  17097. #, no-wrap
  17098. msgid "guix repl my-script.scm\n"
  17099. msgstr ""
  17100. #. type: Plain text
  17101. #: guix-git/doc/guix.texi:11121
  17102. msgid "To pass arguments to the script, use @code{--} to prevent them from being interpreted as arguments to @command{guix repl} itself:"
  17103. msgstr ""
  17104. #. type: example
  17105. #: guix-git/doc/guix.texi:11124
  17106. #, no-wrap
  17107. msgid "guix repl -- my-script.scm --input=foo.txt\n"
  17108. msgstr ""
  17109. #. type: Plain text
  17110. #: guix-git/doc/guix.texi:11129
  17111. 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:"
  17112. msgstr ""
  17113. #. type: example
  17114. #: guix-git/doc/guix.texi:11133
  17115. #, no-wrap
  17116. msgid ""
  17117. "@code{#!/usr/bin/env -S guix repl --}\n"
  17118. "@code{!#}\n"
  17119. msgstr ""
  17120. #. type: Plain text
  17121. #: guix-git/doc/guix.texi:11136
  17122. msgid "Without a file name argument, a Guile REPL is started:"
  17123. msgstr ""
  17124. #. type: example
  17125. #: guix-git/doc/guix.texi:11142
  17126. #, no-wrap
  17127. msgid ""
  17128. "$ guix repl\n"
  17129. "scheme@@(guile-user)> ,use (gnu packages base)\n"
  17130. "scheme@@(guile-user)> coreutils\n"
  17131. "$1 = #<package coreutils@@8.29 gnu/packages/base.scm:327 3e28300>\n"
  17132. msgstr ""
  17133. #. type: Plain text
  17134. #: guix-git/doc/guix.texi:11149
  17135. 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."
  17136. msgstr ""
  17137. #. type: Plain text
  17138. #: guix-git/doc/guix.texi:11151
  17139. msgid "The available options are as follows:"
  17140. msgstr ""
  17141. #. type: item
  17142. #: guix-git/doc/guix.texi:11153 guix-git/doc/guix.texi:13872
  17143. #, no-wrap
  17144. msgid "--type=@var{type}"
  17145. msgstr ""
  17146. #. type: itemx
  17147. #: guix-git/doc/guix.texi:11154 guix-git/doc/guix.texi:13873
  17148. #: guix-git/doc/guix.texi:35839
  17149. #, no-wrap
  17150. msgid "-t @var{type}"
  17151. msgstr ""
  17152. #. type: table
  17153. #: guix-git/doc/guix.texi:11156
  17154. msgid "Start a REPL of the given @var{TYPE}, which can be one of the following:"
  17155. msgstr ""
  17156. #. type: item
  17157. #: guix-git/doc/guix.texi:11158
  17158. #, no-wrap
  17159. msgid "guile"
  17160. msgstr ""
  17161. #. type: table
  17162. #: guix-git/doc/guix.texi:11160
  17163. msgid "This is default, and it spawns a standard full-featured Guile REPL."
  17164. msgstr ""
  17165. #. type: item
  17166. #: guix-git/doc/guix.texi:11160
  17167. #, no-wrap
  17168. msgid "machine"
  17169. msgstr ""
  17170. #. type: table
  17171. #: guix-git/doc/guix.texi:11163
  17172. msgid "Spawn a REPL that uses the machine-readable protocol. This is the protocol that the @code{(guix inferior)} module speaks."
  17173. msgstr ""
  17174. #. type: table
  17175. #: guix-git/doc/guix.texi:11169
  17176. 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:"
  17177. msgstr ""
  17178. #. type: item
  17179. #: guix-git/doc/guix.texi:11171
  17180. #, no-wrap
  17181. msgid "--listen=tcp:37146"
  17182. msgstr ""
  17183. #. type: table
  17184. #: guix-git/doc/guix.texi:11173
  17185. msgid "Accept connections on localhost on port 37146."
  17186. msgstr ""
  17187. #. type: item
  17188. #: guix-git/doc/guix.texi:11174
  17189. #, no-wrap
  17190. msgid "--listen=unix:/tmp/socket"
  17191. msgstr ""
  17192. #. type: table
  17193. #: guix-git/doc/guix.texi:11176
  17194. msgid "Accept connections on the Unix-domain socket @file{/tmp/socket}."
  17195. msgstr ""
  17196. #. type: item
  17197. #: guix-git/doc/guix.texi:11178 guix-git/doc/guix.texi:11283
  17198. #: guix-git/doc/guix.texi:13182 guix-git/doc/guix.texi:13300
  17199. #: guix-git/doc/guix.texi:13507 guix-git/doc/guix.texi:13652
  17200. #: guix-git/doc/guix.texi:13920
  17201. #, no-wrap
  17202. msgid "--load-path=@var{directory}"
  17203. msgstr ""
  17204. #. type: itemx
  17205. #: guix-git/doc/guix.texi:11179 guix-git/doc/guix.texi:11284
  17206. #: guix-git/doc/guix.texi:13301 guix-git/doc/guix.texi:13508
  17207. #: guix-git/doc/guix.texi:13653 guix-git/doc/guix.texi:13921
  17208. #, no-wrap
  17209. msgid "-L @var{directory}"
  17210. msgstr ""
  17211. #. type: table
  17212. #: guix-git/doc/guix.texi:11182 guix-git/doc/guix.texi:11287
  17213. #: guix-git/doc/guix.texi:13185 guix-git/doc/guix.texi:13304
  17214. #: guix-git/doc/guix.texi:13511 guix-git/doc/guix.texi:13656
  17215. #: guix-git/doc/guix.texi:13924
  17216. msgid "Add @var{directory} to the front of the package module search path (@pxref{Package Modules})."
  17217. msgstr ""
  17218. #. type: table
  17219. #: guix-git/doc/guix.texi:11185
  17220. msgid "This allows users to define their own packages and make them visible to the script or REPL."
  17221. msgstr ""
  17222. #. type: itemx
  17223. #: guix-git/doc/guix.texi:11186 guix-git/doc/guix.texi:11808
  17224. #, no-wrap
  17225. msgid "-q"
  17226. msgstr ""
  17227. #. type: table
  17228. #: guix-git/doc/guix.texi:11189
  17229. msgid "Inhibit loading of the @file{~/.guile} file. By default, that configuration file is loaded when spawning a @code{guile} REPL."
  17230. msgstr ""
  17231. #. type: Plain text
  17232. #: guix-git/doc/guix.texi:11199
  17233. 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."
  17234. msgstr ""
  17235. #. type: cindex
  17236. #: guix-git/doc/guix.texi:11222
  17237. #, no-wrap
  17238. msgid "package building"
  17239. msgstr ""
  17240. #. type: command{#1}
  17241. #: guix-git/doc/guix.texi:11223
  17242. #, no-wrap
  17243. msgid "guix build"
  17244. msgstr ""
  17245. #. type: Plain text
  17246. #: guix-git/doc/guix.texi:11229
  17247. 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."
  17248. msgstr ""
  17249. #. type: example
  17250. #: guix-git/doc/guix.texi:11234
  17251. #, no-wrap
  17252. msgid "guix build @var{options} @var{package-or-derivation}@dots{}\n"
  17253. msgstr ""
  17254. #. type: Plain text
  17255. #: guix-git/doc/guix.texi:11239
  17256. 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:"
  17257. msgstr ""
  17258. #. type: example
  17259. #: guix-git/doc/guix.texi:11242
  17260. #, no-wrap
  17261. msgid "guix build emacs guile\n"
  17262. msgstr ""
  17263. #. type: Plain text
  17264. #: guix-git/doc/guix.texi:11245
  17265. msgid "Similarly, the following command builds all the available packages:"
  17266. msgstr ""
  17267. #. type: example
  17268. #: guix-git/doc/guix.texi:11249
  17269. #, no-wrap
  17270. msgid ""
  17271. "guix build --quiet --keep-going \\\n"
  17272. " $(guix package -A | awk '@{ print $1 \"@@\" $2 @}')\n"
  17273. msgstr ""
  17274. #. type: Plain text
  17275. #: guix-git/doc/guix.texi:11257
  17276. 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})."
  17277. msgstr ""
  17278. #. type: Plain text
  17279. #: guix-git/doc/guix.texi:11262
  17280. 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."
  17281. msgstr ""
  17282. #. type: Plain text
  17283. #: guix-git/doc/guix.texi:11265
  17284. msgid "There may be zero or more @var{options}. The available options are described in the subsections below."
  17285. msgstr ""
  17286. #. type: Plain text
  17287. #: guix-git/doc/guix.texi:11280
  17288. 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:"
  17289. msgstr ""
  17290. #. type: table
  17291. #: guix-git/doc/guix.texi:11290 guix-git/doc/guix.texi:13188
  17292. #: guix-git/doc/guix.texi:13514 guix-git/doc/guix.texi:13659
  17293. #: guix-git/doc/guix.texi:13927
  17294. msgid "This allows users to define their own packages and make them visible to the command-line tools."
  17295. msgstr ""
  17296. #. type: item
  17297. #: guix-git/doc/guix.texi:11291
  17298. #, no-wrap
  17299. msgid "--keep-failed"
  17300. msgstr ""
  17301. #. type: itemx
  17302. #: guix-git/doc/guix.texi:11292
  17303. #, no-wrap
  17304. msgid "-K"
  17305. msgstr ""
  17306. #. type: table
  17307. #: guix-git/doc/guix.texi:11298
  17308. 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."
  17309. msgstr ""
  17310. #. type: table
  17311. #: guix-git/doc/guix.texi:11302
  17312. 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})."
  17313. msgstr ""
  17314. #. type: item
  17315. #: guix-git/doc/guix.texi:11303
  17316. #, no-wrap
  17317. msgid "--keep-going"
  17318. msgstr ""
  17319. #. type: itemx
  17320. #: guix-git/doc/guix.texi:11304
  17321. #, no-wrap
  17322. msgid "-k"
  17323. msgstr ""
  17324. #. type: table
  17325. #: guix-git/doc/guix.texi:11307
  17326. msgid "Keep going when some of the derivations fail to build; return only once all the builds have either completed or failed."
  17327. msgstr ""
  17328. #. type: table
  17329. #: guix-git/doc/guix.texi:11310
  17330. msgid "The default behavior is to stop as soon as one of the specified derivations has failed."
  17331. msgstr ""
  17332. #. type: table
  17333. #: guix-git/doc/guix.texi:11314
  17334. msgid "Do not build the derivations."
  17335. msgstr ""
  17336. #. type: anchor{#1}
  17337. #: guix-git/doc/guix.texi:11316
  17338. msgid "fallback-option"
  17339. msgstr ""
  17340. #. type: item
  17341. #: guix-git/doc/guix.texi:11316
  17342. #, no-wrap
  17343. msgid "--fallback"
  17344. msgstr ""
  17345. #. type: table
  17346. #: guix-git/doc/guix.texi:11319
  17347. msgid "When substituting a pre-built binary fails, fall back to building packages locally (@pxref{Substitution Failure})."
  17348. msgstr ""
  17349. #. type: anchor{#1}
  17350. #: guix-git/doc/guix.texi:11325
  17351. msgid "client-substitute-urls"
  17352. msgstr ""
  17353. #. type: table
  17354. #: guix-git/doc/guix.texi:11325
  17355. 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})."
  17356. msgstr ""
  17357. #. type: table
  17358. #: guix-git/doc/guix.texi:11329
  17359. 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})."
  17360. msgstr ""
  17361. #. type: table
  17362. #: guix-git/doc/guix.texi:11332
  17363. msgid "When @var{urls} is the empty string, substitutes are effectively disabled."
  17364. msgstr ""
  17365. #. type: item
  17366. #: guix-git/doc/guix.texi:11338
  17367. #, no-wrap
  17368. msgid "--no-grafts"
  17369. msgstr ""
  17370. #. type: table
  17371. #: guix-git/doc/guix.texi:11342
  17372. 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."
  17373. msgstr ""
  17374. #. type: item
  17375. #: guix-git/doc/guix.texi:11343
  17376. #, no-wrap
  17377. msgid "--rounds=@var{n}"
  17378. msgstr ""
  17379. #. type: table
  17380. #: guix-git/doc/guix.texi:11346
  17381. msgid "Build each derivation @var{n} times in a row, and raise an error if consecutive build results are not bit-for-bit identical."
  17382. msgstr ""
  17383. #. type: table
  17384. #: guix-git/doc/guix.texi:11351
  17385. 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."
  17386. msgstr ""
  17387. #. type: table
  17388. #: guix-git/doc/guix.texi:11367
  17389. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--max-silent-time}})."
  17390. msgstr ""
  17391. #. type: table
  17392. #: guix-git/doc/guix.texi:11374
  17393. msgid "By default, the daemon's setting is honored (@pxref{Invoking guix-daemon, @option{--timeout}})."
  17394. msgstr ""
  17395. #. type: cindex
  17396. #: guix-git/doc/guix.texi:11377
  17397. #, no-wrap
  17398. msgid "verbosity, of the command-line tools"
  17399. msgstr ""
  17400. #. type: cindex
  17401. #: guix-git/doc/guix.texi:11378
  17402. #, no-wrap
  17403. msgid "build logs, verbosity"
  17404. msgstr ""
  17405. #. type: item
  17406. #: guix-git/doc/guix.texi:11379
  17407. #, no-wrap
  17408. msgid "-v @var{level}"
  17409. msgstr ""
  17410. #. type: itemx
  17411. #: guix-git/doc/guix.texi:11380
  17412. #, no-wrap
  17413. msgid "--verbosity=@var{level}"
  17414. msgstr ""
  17415. #. type: table
  17416. #: guix-git/doc/guix.texi:11385
  17417. 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."
  17418. msgstr ""
  17419. #. type: table
  17420. #: guix-git/doc/guix.texi:11390
  17421. 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."
  17422. msgstr ""
  17423. #. type: table
  17424. #: guix-git/doc/guix.texi:11396
  17425. 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."
  17426. msgstr ""
  17427. #. type: item
  17428. #: guix-git/doc/guix.texi:11397
  17429. #, no-wrap
  17430. msgid "--debug=@var{level}"
  17431. msgstr ""
  17432. #. type: table
  17433. #: guix-git/doc/guix.texi:11401
  17434. 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."
  17435. msgstr ""
  17436. #. type: Plain text
  17437. #: guix-git/doc/guix.texi:11408
  17438. 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."
  17439. msgstr ""
  17440. #. type: Plain text
  17441. #: guix-git/doc/guix.texi:11412
  17442. 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."
  17443. msgstr ""
  17444. #. type: defvr
  17445. #: guix-git/doc/guix.texi:11413
  17446. #, no-wrap
  17447. msgid "{Environment Variable} GUIX_BUILD_OPTIONS"
  17448. msgstr ""
  17449. #. type: defvr
  17450. #: guix-git/doc/guix.texi:11418
  17451. 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:"
  17452. msgstr ""
  17453. #. type: example
  17454. #: guix-git/doc/guix.texi:11421
  17455. #, no-wrap
  17456. msgid "$ export GUIX_BUILD_OPTIONS=\"--no-substitutes -c 2 -L /foo/bar\"\n"
  17457. msgstr ""
  17458. #. type: defvr
  17459. #: guix-git/doc/guix.texi:11425
  17460. msgid "These options are parsed independently, and the result is appended to the parsed command-line options."
  17461. msgstr ""
  17462. #. type: cindex
  17463. #: guix-git/doc/guix.texi:11431
  17464. #, no-wrap
  17465. msgid "package variants"
  17466. msgstr ""
  17467. #. type: Plain text
  17468. #: guix-git/doc/guix.texi:11439
  17469. 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})."
  17470. msgstr ""
  17471. #. type: Plain text
  17472. #: guix-git/doc/guix.texi:11443
  17473. 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."
  17474. msgstr ""
  17475. #. type: Plain text
  17476. #: guix-git/doc/guix.texi:11448
  17477. 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)."
  17478. msgstr ""
  17479. #. type: cindex
  17480. #: guix-git/doc/guix.texi:11451
  17481. #, fuzzy, no-wrap
  17482. #| msgid "formatting code"
  17483. msgid "performance, tuning code"
  17484. msgstr "格式化代码"
  17485. #. type: cindex
  17486. #: guix-git/doc/guix.texi:11452
  17487. #, fuzzy, no-wrap
  17488. #| msgid "customization, of packages"
  17489. msgid "optimization, of package code"
  17490. msgstr "定制软件包"
  17491. #. type: cindex
  17492. #: guix-git/doc/guix.texi:11453
  17493. #, fuzzy, no-wrap
  17494. msgid "tuning, of package code"
  17495. msgstr "代码格式化"
  17496. #. type: cindex
  17497. #: guix-git/doc/guix.texi:11454
  17498. #, no-wrap
  17499. msgid "SIMD support"
  17500. msgstr ""
  17501. #. type: cindex
  17502. #: guix-git/doc/guix.texi:11455
  17503. #, fuzzy, no-wrap
  17504. #| msgid "Building packages."
  17505. msgid "tunable packages"
  17506. msgstr "构建软件包。"
  17507. #. type: cindex
  17508. #: guix-git/doc/guix.texi:11456
  17509. #, fuzzy, no-wrap
  17510. #| msgid "package version"
  17511. msgid "package multi-versioning"
  17512. msgstr "软件包版本"
  17513. #. type: item
  17514. #: guix-git/doc/guix.texi:11457
  17515. #, fuzzy, no-wrap
  17516. #| msgid "--rounds=@var{N}"
  17517. msgid "--tune[=@var{cpu}]"
  17518. msgstr "--rounds=@var{N}"
  17519. #. type: table
  17520. #: guix-git/doc/guix.texi:11461
  17521. msgid "Use versions of the packages marked as ``tunable'' optimized for @var{cpu}. When @var{cpu} is @code{native}, or when it is omitted, tune for the CPU on which the @command{guix} command is running."
  17522. msgstr ""
  17523. #. type: table
  17524. #: guix-git/doc/guix.texi:11467
  17525. msgid "Valid @var{cpu} names are those recognized by the underlying compiler, by default the GNU Compiler Collection. On x86_64 processors, this includes CPU names such as @code{nehalem}, @code{haswell}, and @code{skylake} (@pxref{x86 Options, @code{-march},, gcc, Using the GNU Compiler Collection (GCC)})."
  17526. msgstr ""
  17527. #. type: table
  17528. #: guix-git/doc/guix.texi:11474
  17529. msgid "As new generations of CPUs come out, they augment the standard instruction set architecture (ISA) with additional instructions, in particular instructions for single-instruction/multiple-data (SIMD) parallel processing. For example, while Core2 and Skylake CPUs both implement the x86_64 ISA, only the latter supports AVX2 SIMD instructions."
  17530. msgstr ""
  17531. #. type: table
  17532. #: guix-git/doc/guix.texi:11481
  17533. msgid "The primary gain one can expect from @option{--tune} is for programs that can make use of those SIMD capabilities @emph{and} that do not already have a mechanism to select the right optimized code at run time. Packages that have the @code{tunable?} property set are considered @dfn{tunable packages} by the @option{--tune} option; a package definition with the property set looks like this:"
  17534. msgstr ""
  17535. #. type: lisp
  17536. #: guix-git/doc/guix.texi:11486
  17537. #, no-wrap
  17538. msgid ""
  17539. "(package\n"
  17540. " (name \"hello-simd\")\n"
  17541. " ;; ...\n"
  17542. "\n"
  17543. msgstr ""
  17544. #. type: lisp
  17545. #: guix-git/doc/guix.texi:11490
  17546. #, no-wrap
  17547. msgid ""
  17548. " ;; This package may benefit from SIMD extensions so\n"
  17549. " ;; mark it as \"tunable\".\n"
  17550. " (properties '((tunable? . #t))))\n"
  17551. msgstr ""
  17552. #. type: table
  17553. #: guix-git/doc/guix.texi:11495
  17554. msgid "Other packages are not considered tunable. This allows Guix to use generic binaries in the cases where tuning for a specific CPU is unlikely to provide any gain."
  17555. msgstr ""
  17556. #. type: table
  17557. #: guix-git/doc/guix.texi:11501
  17558. msgid "Tuned packages are built with @code{-march=@var{CPU}}; under the hood, the @option{-march} option is passed to the actual wrapper by a compiler wrapper. Since the build machine may not be able to run code for the target CPU micro-architecture, the test suite is not run when building a tuned package."
  17559. msgstr ""
  17560. #. type: table
  17561. #: guix-git/doc/guix.texi:11505
  17562. msgid "To reduce rebuilds to the minimum, tuned packages are @emph{grafted} onto packages that depend on them (@pxref{Security Updates, grafts}). Thus, using @option{--no-grafts} cancels the effect of @option{--tune}."
  17563. msgstr ""
  17564. #. type: table
  17565. #: guix-git/doc/guix.texi:11511
  17566. msgid "We call this technique @dfn{package multi-versioning}: several variants of tunable packages may be built, one for each CPU variant. It is the coarse-grain counterpart of @dfn{function multi-versioning} as implemented by the GNU tool chain (@pxref{Function Multiversioning,,, gcc, Using the GNU Compiler Collection (GCC)})."
  17567. msgstr ""
  17568. #. type: item
  17569. #: guix-git/doc/guix.texi:11512
  17570. #, no-wrap
  17571. msgid "--with-source=@var{source}"
  17572. msgstr ""
  17573. #. type: itemx
  17574. #: guix-git/doc/guix.texi:11513
  17575. #, no-wrap
  17576. msgid "--with-source=@var{package}=@var{source}"
  17577. msgstr ""
  17578. #. type: itemx
  17579. #: guix-git/doc/guix.texi:11514
  17580. #, no-wrap
  17581. msgid "--with-source=@var{package}@@@var{version}=@var{source}"
  17582. msgstr ""
  17583. #. type: table
  17584. #: guix-git/doc/guix.texi:11519
  17585. 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})."
  17586. msgstr ""
  17587. #. type: table
  17588. #: guix-git/doc/guix.texi:11525
  17589. 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}."
  17590. msgstr ""
  17591. #. type: table
  17592. #: guix-git/doc/guix.texi:11528
  17593. 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}."
  17594. msgstr ""
  17595. #. type: table
  17596. #: guix-git/doc/guix.texi:11533
  17597. 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:"
  17598. msgstr ""
  17599. #. type: example
  17600. #: guix-git/doc/guix.texi:11536
  17601. #, no-wrap
  17602. msgid "guix build ed --with-source=mirror://gnu/ed/ed-1.7.tar.gz\n"
  17603. msgstr ""
  17604. #. type: table
  17605. #: guix-git/doc/guix.texi:11540
  17606. msgid "As a developer, @option{--with-source} makes it easy to test release candidates:"
  17607. msgstr ""
  17608. #. type: example
  17609. #: guix-git/doc/guix.texi:11543
  17610. #, no-wrap
  17611. msgid "guix build guile --with-source=../guile-2.0.9.219-e1bb7.tar.xz\n"
  17612. msgstr ""
  17613. #. type: table
  17614. #: guix-git/doc/guix.texi:11546
  17615. msgid "@dots{} or to build from a checkout in a pristine environment:"
  17616. msgstr ""
  17617. #. type: example
  17618. #: guix-git/doc/guix.texi:11550
  17619. #, no-wrap
  17620. msgid ""
  17621. "$ git clone git://git.sv.gnu.org/guix.git\n"
  17622. "$ guix build guix --with-source=guix@@1.0=./guix\n"
  17623. msgstr ""
  17624. #. type: item
  17625. #: guix-git/doc/guix.texi:11552
  17626. #, no-wrap
  17627. msgid "--with-input=@var{package}=@var{replacement}"
  17628. msgstr ""
  17629. #. type: table
  17630. #: guix-git/doc/guix.texi:11557
  17631. 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}."
  17632. msgstr ""
  17633. #. type: table
  17634. #: guix-git/doc/guix.texi:11561
  17635. 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}:"
  17636. msgstr ""
  17637. #. type: example
  17638. #: guix-git/doc/guix.texi:11564
  17639. #, no-wrap
  17640. msgid "guix build --with-input=guile=guile@@2.0 guix\n"
  17641. msgstr ""
  17642. #. type: table
  17643. #: guix-git/doc/guix.texi:11569
  17644. 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}."
  17645. msgstr ""
  17646. #. type: table
  17647. #: guix-git/doc/guix.texi:11572
  17648. msgid "This is implemented using the @code{package-input-rewriting} Scheme procedure (@pxref{Defining Packages, @code{package-input-rewriting}})."
  17649. msgstr ""
  17650. #. type: item
  17651. #: guix-git/doc/guix.texi:11573
  17652. #, no-wrap
  17653. msgid "--with-graft=@var{package}=@var{replacement}"
  17654. msgstr ""
  17655. #. type: table
  17656. #: guix-git/doc/guix.texi:11579
  17657. 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."
  17658. msgstr ""
  17659. #. type: table
  17660. #: guix-git/doc/guix.texi:11583
  17661. 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:"
  17662. msgstr ""
  17663. #. type: example
  17664. #: guix-git/doc/guix.texi:11586
  17665. #, no-wrap
  17666. msgid "guix build --with-graft=gnutls=gnutls@@3.5.4 wget\n"
  17667. msgstr ""
  17668. #. type: table
  17669. #: guix-git/doc/guix.texi:11595
  17670. 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!"
  17671. msgstr ""
  17672. #. type: cindex
  17673. #: guix-git/doc/guix.texi:11596 guix-git/doc/guix.texi:38565
  17674. #, no-wrap
  17675. msgid "debugging info, rebuilding"
  17676. msgstr ""
  17677. #. type: item
  17678. #: guix-git/doc/guix.texi:11597
  17679. #, no-wrap
  17680. msgid "--with-debug-info=@var{package}"
  17681. msgstr ""
  17682. #. type: table
  17683. #: guix-git/doc/guix.texi:11602
  17684. 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})."
  17685. msgstr ""
  17686. #. type: table
  17687. #: guix-git/doc/guix.texi:11608
  17688. 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:"
  17689. msgstr ""
  17690. #. type: example
  17691. #: guix-git/doc/guix.texi:11611 guix-git/doc/guix.texi:38596
  17692. #, no-wrap
  17693. msgid "guix install inkscape --with-debug-info=glib\n"
  17694. msgstr ""
  17695. #. type: table
  17696. #: guix-git/doc/guix.texi:11615
  17697. msgid "Only GLib needs to be recompiled so this takes a reasonable amount of time. @xref{Installing Debugging Files}, for more info."
  17698. msgstr ""
  17699. #. type: quotation
  17700. #: guix-git/doc/guix.texi:11621
  17701. 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."
  17702. msgstr ""
  17703. #. type: quotation
  17704. #: guix-git/doc/guix.texi:11625
  17705. 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."
  17706. msgstr ""
  17707. #. type: cindex
  17708. #: guix-git/doc/guix.texi:11627
  17709. #, no-wrap
  17710. msgid "tool chain, changing the build tool chain of a package"
  17711. msgstr ""
  17712. #. type: item
  17713. #: guix-git/doc/guix.texi:11628
  17714. #, no-wrap
  17715. msgid "--with-c-toolchain=@var{package}=@var{toolchain}"
  17716. msgstr ""
  17717. #. type: table
  17718. #: guix-git/doc/guix.texi:11632
  17719. 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++."
  17720. msgstr ""
  17721. #. type: example
  17722. #: guix-git/doc/guix.texi:11639
  17723. #, no-wrap
  17724. msgid ""
  17725. "guix build octave-cli \\\n"
  17726. " --with-c-toolchain=fftw=gcc-toolchain@@10 \\\n"
  17727. " --with-c-toolchain=fftwf=gcc-toolchain@@10\n"
  17728. msgstr ""
  17729. #. type: table
  17730. #: guix-git/doc/guix.texi:11646
  17731. 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}."
  17732. msgstr ""
  17733. #. type: table
  17734. #: guix-git/doc/guix.texi:11650
  17735. 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:"
  17736. msgstr ""
  17737. #. type: example
  17738. #: guix-git/doc/guix.texi:11654
  17739. #, no-wrap
  17740. msgid ""
  17741. "guix build --with-c-toolchain=hwloc=clang-toolchain \\\n"
  17742. " intel-mpi-benchmarks\n"
  17743. msgstr ""
  17744. #. type: quotation
  17745. #: guix-git/doc/guix.texi:11663
  17746. 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."
  17747. msgstr ""
  17748. #. type: item
  17749. #: guix-git/doc/guix.texi:11665
  17750. #, no-wrap
  17751. msgid "--with-git-url=@var{package}=@var{url}"
  17752. msgstr ""
  17753. #. type: cindex
  17754. #: guix-git/doc/guix.texi:11666
  17755. #, no-wrap
  17756. msgid "Git, using the latest commit"
  17757. msgstr ""
  17758. #. type: cindex
  17759. #: guix-git/doc/guix.texi:11667
  17760. #, no-wrap
  17761. msgid "latest commit, building"
  17762. msgstr ""
  17763. #. type: table
  17764. #: guix-git/doc/guix.texi:11671
  17765. 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."
  17766. msgstr ""
  17767. #. type: table
  17768. #: guix-git/doc/guix.texi:11674
  17769. msgid "For example, the following command builds the NumPy Python library against the latest commit of the master branch of Python itself:"
  17770. msgstr ""
  17771. #. type: example
  17772. #: guix-git/doc/guix.texi:11678
  17773. #, no-wrap
  17774. msgid ""
  17775. "guix build python-numpy \\\n"
  17776. " --with-git-url=python=https://github.com/python/cpython\n"
  17777. msgstr ""
  17778. #. type: table
  17779. #: guix-git/doc/guix.texi:11682
  17780. msgid "This option can also be combined with @option{--with-branch} or @option{--with-commit} (see below)."
  17781. msgstr ""
  17782. #. type: cindex
  17783. #: guix-git/doc/guix.texi:11683 guix-git/doc/guix.texi:29390
  17784. #, no-wrap
  17785. msgid "continuous integration"
  17786. msgstr ""
  17787. #. type: table
  17788. #: guix-git/doc/guix.texi:11689
  17789. 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)."
  17790. msgstr ""
  17791. #. type: table
  17792. #: guix-git/doc/guix.texi:11693
  17793. 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."
  17794. msgstr ""
  17795. #. type: item
  17796. #: guix-git/doc/guix.texi:11694
  17797. #, no-wrap
  17798. msgid "--with-branch=@var{package}=@var{branch}"
  17799. msgstr ""
  17800. #. type: table
  17801. #: guix-git/doc/guix.texi:11700
  17802. 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."
  17803. msgstr ""
  17804. #. type: table
  17805. #: guix-git/doc/guix.texi:11705
  17806. 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:"
  17807. msgstr ""
  17808. #. type: example
  17809. #: guix-git/doc/guix.texi:11708
  17810. #, no-wrap
  17811. msgid "guix build --with-branch=guile-sqlite3=master cuirass\n"
  17812. msgstr ""
  17813. #. type: item
  17814. #: guix-git/doc/guix.texi:11710
  17815. #, no-wrap
  17816. msgid "--with-commit=@var{package}=@var{commit}"
  17817. msgstr ""
  17818. #. type: table
  17819. #: guix-git/doc/guix.texi:11715
  17820. 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, a tag, or a @command{git describe} style identifier such as @code{1.0-3-gabc123}."
  17821. msgstr ""
  17822. #. type: item
  17823. #: guix-git/doc/guix.texi:11716
  17824. #, no-wrap
  17825. msgid "--with-patch=@var{package}=@var{file}"
  17826. msgstr ""
  17827. #. type: table
  17828. #: guix-git/doc/guix.texi:11723
  17829. 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})."
  17830. msgstr ""
  17831. #. type: table
  17832. #: guix-git/doc/guix.texi:11726
  17833. msgid "As an example, the command below rebuilds Coreutils with the GNU C Library (glibc) patched with the given patch:"
  17834. msgstr ""
  17835. #. type: example
  17836. #: guix-git/doc/guix.texi:11729
  17837. #, no-wrap
  17838. msgid "guix build coreutils --with-patch=glibc=./glibc-frob.patch\n"
  17839. msgstr ""
  17840. #. type: table
  17841. #: guix-git/doc/guix.texi:11733
  17842. msgid "In this example, glibc itself as well as everything that leads to Coreutils in the dependency graph is rebuilt."
  17843. msgstr ""
  17844. #. type: cindex
  17845. #: guix-git/doc/guix.texi:11734
  17846. #, fuzzy, no-wrap
  17847. msgid "upstream, latest version"
  17848. msgstr "软件包版本"
  17849. #. type: item
  17850. #: guix-git/doc/guix.texi:11735
  17851. #, fuzzy, no-wrap
  17852. msgid "--with-latest=@var{package}"
  17853. msgstr "--log-compression=@var{type}"
  17854. #. type: table
  17855. #: guix-git/doc/guix.texi:11740
  17856. 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})."
  17857. msgstr ""
  17858. #. type: table
  17859. #: guix-git/doc/guix.texi:11744
  17860. 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."
  17861. msgstr ""
  17862. #. type: table
  17863. #: guix-git/doc/guix.texi:11747
  17864. msgid "As an example, the command below builds Guix against the latest version of Guile-JSON:"
  17865. msgstr ""
  17866. #. type: example
  17867. #: guix-git/doc/guix.texi:11750
  17868. #, no-wrap
  17869. msgid "guix build guix --with-latest=guile-json\n"
  17870. msgstr ""
  17871. #. type: table
  17872. #: guix-git/doc/guix.texi:11759
  17873. 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."
  17874. msgstr ""
  17875. #. type: table
  17876. #: guix-git/doc/guix.texi:11764
  17877. 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})."
  17878. msgstr ""
  17879. #. type: cindex
  17880. #: guix-git/doc/guix.texi:11765
  17881. #, fuzzy, no-wrap
  17882. msgid "test suite, skipping"
  17883. msgstr "测试套件"
  17884. #. type: item
  17885. #: guix-git/doc/guix.texi:11766
  17886. #, no-wrap
  17887. msgid "--without-tests=@var{package}"
  17888. msgstr ""
  17889. #. type: table
  17890. #: guix-git/doc/guix.texi:11772
  17891. 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."
  17892. msgstr ""
  17893. #. type: table
  17894. #: guix-git/doc/guix.texi:11776
  17895. 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:"
  17896. msgstr ""
  17897. #. type: example
  17898. #: guix-git/doc/guix.texi:11779
  17899. #, no-wrap
  17900. msgid "guix install --without-tests=python python-notebook\n"
  17901. msgstr ""
  17902. #. type: table
  17903. #: guix-git/doc/guix.texi:11785
  17904. 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."
  17905. msgstr ""
  17906. #. type: table
  17907. #: guix-git/doc/guix.texi:11791
  17908. 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."
  17909. msgstr ""
  17910. #. type: Plain text
  17911. #: guix-git/doc/guix.texi:11798
  17912. 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."
  17913. msgstr ""
  17914. #. type: Plain text
  17915. #: guix-git/doc/guix.texi:11804
  17916. msgid "The command-line options presented below are specific to @command{guix build}."
  17917. msgstr ""
  17918. #. type: item
  17919. #: guix-git/doc/guix.texi:11807
  17920. #, no-wrap
  17921. msgid "--quiet"
  17922. msgstr ""
  17923. #. type: table
  17924. #: guix-git/doc/guix.texi:11812
  17925. 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."
  17926. msgstr ""
  17927. #. type: table
  17928. #: guix-git/doc/guix.texi:11817
  17929. msgid "Build the package, derivation, or other file-like object that the code within @var{file} evaluates to (@pxref{G-Expressions, file-like objects})."
  17930. msgstr ""
  17931. #. type: table
  17932. #: guix-git/doc/guix.texi:11820
  17933. msgid "As an example, @var{file} might contain a package definition like this (@pxref{Defining Packages}):"
  17934. msgstr ""
  17935. #. type: table
  17936. #: guix-git/doc/guix.texi:11829
  17937. 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}:"
  17938. msgstr ""
  17939. #. type: item
  17940. #: guix-git/doc/guix.texi:11834
  17941. #, fuzzy, no-wrap
  17942. msgid "--manifest=@var{manifest}"
  17943. msgstr "--listen=@var{endpoint}"
  17944. #. type: itemx
  17945. #: guix-git/doc/guix.texi:11835
  17946. #, fuzzy, no-wrap
  17947. msgid "-m @var{manifest}"
  17948. msgstr "-c @var{n}"
  17949. #. type: table
  17950. #: guix-git/doc/guix.texi:11838
  17951. msgid "Build all packages listed in the given @var{manifest} (@pxref{profile-manifest, @option{--manifest}})."
  17952. msgstr ""
  17953. #. type: table
  17954. #: guix-git/doc/guix.texi:11842
  17955. msgid "Build the package or derivation @var{expr} evaluates to."
  17956. msgstr ""
  17957. #. type: table
  17958. #: guix-git/doc/guix.texi:11846
  17959. 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."
  17960. msgstr ""
  17961. #. type: table
  17962. #: guix-git/doc/guix.texi:11850
  17963. 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})."
  17964. msgstr ""
  17965. #. type: table
  17966. #: guix-git/doc/guix.texi:11854
  17967. 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}."
  17968. msgstr ""
  17969. #. type: item
  17970. #: guix-git/doc/guix.texi:11855
  17971. #, no-wrap
  17972. msgid "--source"
  17973. msgstr ""
  17974. #. type: itemx
  17975. #: guix-git/doc/guix.texi:11856
  17976. #, no-wrap
  17977. msgid "-S"
  17978. msgstr ""
  17979. #. type: table
  17980. #: guix-git/doc/guix.texi:11859
  17981. msgid "Build the source derivations of the packages, rather than the packages themselves."
  17982. msgstr ""
  17983. #. type: table
  17984. #: guix-git/doc/guix.texi:11863
  17985. 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."
  17986. msgstr ""
  17987. #. type: table
  17988. #: guix-git/doc/guix.texi:11867
  17989. msgid "The returned source tarball is the result of applying any patches and code snippets specified in the package @code{origin} (@pxref{Defining Packages})."
  17990. msgstr ""
  17991. #. type: cindex
  17992. #: guix-git/doc/guix.texi:11868
  17993. #, no-wrap
  17994. msgid "source, verification"
  17995. msgstr ""
  17996. #. type: table
  17997. #: guix-git/doc/guix.texi:11874
  17998. 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."
  17999. msgstr ""
  18000. #. type: table
  18001. #: guix-git/doc/guix.texi:11879
  18002. 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."
  18003. msgstr ""
  18004. #. type: item
  18005. #: guix-git/doc/guix.texi:11880
  18006. #, no-wrap
  18007. msgid "--sources"
  18008. msgstr ""
  18009. #. type: table
  18010. #: guix-git/doc/guix.texi:11887
  18011. 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:"
  18012. msgstr ""
  18013. #. type: item
  18014. #: guix-git/doc/guix.texi:11889 guix-git/doc/guix.texi:13713
  18015. #, no-wrap
  18016. msgid "package"
  18017. msgstr ""
  18018. #. type: table
  18019. #: guix-git/doc/guix.texi:11892
  18020. msgid "This value causes the @option{--sources} option to behave in the same way as the @option{--source} option."
  18021. msgstr ""
  18022. #. type: item
  18023. #: guix-git/doc/guix.texi:11893 guix-git/doc/guix.texi:20169
  18024. #, no-wrap
  18025. msgid "all"
  18026. msgstr ""
  18027. #. type: table
  18028. #: guix-git/doc/guix.texi:11896
  18029. msgid "Build the source derivations of all packages, including any source that might be listed as @code{inputs}. This is the default value."
  18030. msgstr ""
  18031. #. type: example
  18032. #: guix-git/doc/guix.texi:11902
  18033. #, no-wrap
  18034. msgid ""
  18035. "$ guix build --sources tzdata\n"
  18036. "The following derivations will be built:\n"
  18037. " /gnu/store/@dots{}-tzdata2015b.tar.gz.drv\n"
  18038. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  18039. msgstr ""
  18040. #. type: item
  18041. #: guix-git/doc/guix.texi:11904
  18042. #, no-wrap
  18043. msgid "transitive"
  18044. msgstr ""
  18045. #. type: table
  18046. #: guix-git/doc/guix.texi:11908
  18047. 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."
  18048. msgstr ""
  18049. #. type: example
  18050. #: guix-git/doc/guix.texi:11919
  18051. #, no-wrap
  18052. msgid ""
  18053. "$ guix build --sources=transitive tzdata\n"
  18054. "The following derivations will be built:\n"
  18055. " /gnu/store/@dots{}-tzcode2015b.tar.gz.drv\n"
  18056. " /gnu/store/@dots{}-findutils-4.4.2.tar.xz.drv\n"
  18057. " /gnu/store/@dots{}-grep-2.21.tar.xz.drv\n"
  18058. " /gnu/store/@dots{}-coreutils-8.23.tar.xz.drv\n"
  18059. " /gnu/store/@dots{}-make-4.1.tar.xz.drv\n"
  18060. " /gnu/store/@dots{}-bash-4.3.tar.xz.drv\n"
  18061. "@dots{}\n"
  18062. msgstr ""
  18063. #. type: table
  18064. #: guix-git/doc/guix.texi:11929
  18065. 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."
  18066. msgstr ""
  18067. #. type: quotation
  18068. #: guix-git/doc/guix.texi:11934
  18069. 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."
  18070. msgstr ""
  18071. #. type: table
  18072. #: guix-git/doc/guix.texi:11941
  18073. 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."
  18074. msgstr ""
  18075. #. type: quotation
  18076. #: guix-git/doc/guix.texi:11946
  18077. 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."
  18078. msgstr ""
  18079. #. type: table
  18080. #: guix-git/doc/guix.texi:11952
  18081. 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."
  18082. msgstr ""
  18083. #. type: table
  18084. #: guix-git/doc/guix.texi:11956
  18085. 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."
  18086. msgstr ""
  18087. #. type: table
  18088. #: guix-git/doc/guix.texi:11962
  18089. 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})."
  18090. msgstr ""
  18091. #. type: anchor{#1}
  18092. #: guix-git/doc/guix.texi:11964
  18093. msgid "build-check"
  18094. msgstr ""
  18095. #. type: cindex
  18096. #: guix-git/doc/guix.texi:11965
  18097. #, no-wrap
  18098. msgid "determinism, checking"
  18099. msgstr ""
  18100. #. type: cindex
  18101. #: guix-git/doc/guix.texi:11966
  18102. #, no-wrap
  18103. msgid "reproducibility, checking"
  18104. msgstr ""
  18105. #. type: table
  18106. #: guix-git/doc/guix.texi:11970
  18107. 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."
  18108. msgstr ""
  18109. #. type: table
  18110. #: guix-git/doc/guix.texi:11975
  18111. 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."
  18112. msgstr ""
  18113. #. type: item
  18114. #: guix-git/doc/guix.texi:11980
  18115. #, no-wrap
  18116. msgid "--repair"
  18117. msgstr ""
  18118. #. type: cindex
  18119. #: guix-git/doc/guix.texi:11981
  18120. #, no-wrap
  18121. msgid "repairing store items"
  18122. msgstr ""
  18123. #. type: table
  18124. #: guix-git/doc/guix.texi:11985
  18125. msgid "Attempt to repair the specified store items, if they are corrupt, by re-downloading or rebuilding them."
  18126. msgstr ""
  18127. #. type: table
  18128. #: guix-git/doc/guix.texi:11987
  18129. msgid "This operation is not atomic and thus restricted to @code{root}."
  18130. msgstr ""
  18131. #. type: item
  18132. #: guix-git/doc/guix.texi:11988
  18133. #, no-wrap
  18134. msgid "--derivations"
  18135. msgstr ""
  18136. #. type: table
  18137. #: guix-git/doc/guix.texi:11992
  18138. msgid "Return the derivation paths, not the output paths, of the given packages."
  18139. msgstr ""
  18140. #. type: cindex
  18141. #: guix-git/doc/guix.texi:11995
  18142. #, no-wrap
  18143. msgid "GC roots, adding"
  18144. msgstr ""
  18145. #. type: cindex
  18146. #: guix-git/doc/guix.texi:11996
  18147. #, no-wrap
  18148. msgid "garbage collector roots, adding"
  18149. msgstr ""
  18150. #. type: table
  18151. #: guix-git/doc/guix.texi:11999 guix-git/doc/guix.texi:35870
  18152. msgid "Make @var{file} a symlink to the result, and register it as a garbage collector root."
  18153. msgstr ""
  18154. #. type: table
  18155. #: guix-git/doc/guix.texi:12005
  18156. 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."
  18157. msgstr ""
  18158. #. type: item
  18159. #: guix-git/doc/guix.texi:12006
  18160. #, no-wrap
  18161. msgid "--log-file"
  18162. msgstr ""
  18163. #. type: cindex
  18164. #: guix-git/doc/guix.texi:12007
  18165. #, no-wrap
  18166. msgid "build logs, access"
  18167. msgstr ""
  18168. #. type: table
  18169. #: guix-git/doc/guix.texi:12011
  18170. 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."
  18171. msgstr ""
  18172. #. type: table
  18173. #: guix-git/doc/guix.texi:12014
  18174. msgid "This works regardless of how packages or derivations are specified. For instance, the following invocations are equivalent:"
  18175. msgstr ""
  18176. #. type: example
  18177. #: guix-git/doc/guix.texi:12020
  18178. #, no-wrap
  18179. msgid ""
  18180. "guix build --log-file $(guix build -d guile)\n"
  18181. "guix build --log-file $(guix build guile)\n"
  18182. "guix build --log-file guile\n"
  18183. "guix build --log-file -e '(@@ (gnu packages guile) guile-2.0)'\n"
  18184. msgstr ""
  18185. #. type: table
  18186. #: guix-git/doc/guix.texi:12025
  18187. 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})."
  18188. msgstr ""
  18189. #. type: table
  18190. #: guix-git/doc/guix.texi:12028
  18191. 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:"
  18192. msgstr ""
  18193. #. type: example
  18194. #: guix-git/doc/guix.texi:12032
  18195. #, no-wrap
  18196. msgid ""
  18197. "$ guix build --log-file gdb -s aarch64-linux\n"
  18198. "https://@value{SUBSTITUTE-SERVER-1}/log/@dots{}-gdb-7.10\n"
  18199. msgstr ""
  18200. #. type: table
  18201. #: guix-git/doc/guix.texi:12035
  18202. msgid "You can freely access a huge library of build logs!"
  18203. msgstr ""
  18204. #. type: cindex
  18205. #: guix-git/doc/guix.texi:12040
  18206. #, no-wrap
  18207. msgid "build failures, debugging"
  18208. msgstr ""
  18209. #. type: Plain text
  18210. #: guix-git/doc/guix.texi:12046
  18211. 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."
  18212. msgstr ""
  18213. #. type: Plain text
  18214. #: guix-git/doc/guix.texi:12051
  18215. 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}})."
  18216. msgstr ""
  18217. #. type: Plain text
  18218. #: guix-git/doc/guix.texi:12057
  18219. 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:"
  18220. msgstr ""
  18221. #. type: example
  18222. #: guix-git/doc/guix.texi:12064
  18223. #, no-wrap
  18224. msgid ""
  18225. "$ guix build foo -K\n"
  18226. "@dots{} @i{build fails}\n"
  18227. "$ cd /tmp/guix-build-foo.drv-0\n"
  18228. "$ source ./environment-variables\n"
  18229. "$ cd foo-1.2\n"
  18230. msgstr ""
  18231. #. type: Plain text
  18232. #: guix-git/doc/guix.texi:12068
  18233. msgid "Now, you can invoke commands as if you were the daemon (almost) and troubleshoot your build process."
  18234. msgstr ""
  18235. #. type: Plain text
  18236. #: guix-git/doc/guix.texi:12074
  18237. 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})."
  18238. msgstr ""
  18239. #. type: Plain text
  18240. #: guix-git/doc/guix.texi:12077
  18241. 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:"
  18242. msgstr ""
  18243. #. type: example
  18244. #: guix-git/doc/guix.texi:12085
  18245. #, no-wrap
  18246. msgid ""
  18247. "$ guix build -K foo\n"
  18248. "@dots{}\n"
  18249. "$ cd /tmp/guix-build-foo.drv-0\n"
  18250. "$ guix shell --no-grafts -C -D foo strace gdb\n"
  18251. "[env]# source ./environment-variables\n"
  18252. "[env]# cd foo-1.2\n"
  18253. msgstr ""
  18254. #. type: Plain text
  18255. #: guix-git/doc/guix.texi:12094
  18256. msgid "Here, @command{guix shell -C} creates a container and spawns a new shell in it (@pxref{Invoking guix shell}). The @command{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)."
  18257. msgstr ""
  18258. #. type: Plain text
  18259. #: guix-git/doc/guix.texi:12097
  18260. msgid "To get closer to a container like that used by the build daemon, we can remove @file{/bin/sh}:"
  18261. msgstr ""
  18262. #. type: example
  18263. #: guix-git/doc/guix.texi:12100
  18264. #, no-wrap
  18265. msgid "[env]# rm /bin/sh\n"
  18266. msgstr ""
  18267. #. type: Plain text
  18268. #: guix-git/doc/guix.texi:12104
  18269. msgid "(Don't worry, this is harmless: this is all happening in the throw-away container created by @command{guix shell}.)"
  18270. msgstr ""
  18271. #. type: Plain text
  18272. #: guix-git/doc/guix.texi:12107
  18273. msgid "The @command{strace} command is probably not in the search path, but we can run:"
  18274. msgstr ""
  18275. #. type: example
  18276. #: guix-git/doc/guix.texi:12110
  18277. #, no-wrap
  18278. msgid "[env]# $GUIX_ENVIRONMENT/bin/strace -f -o log make check\n"
  18279. msgstr ""
  18280. #. type: Plain text
  18281. #: guix-git/doc/guix.texi:12115
  18282. 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."
  18283. msgstr ""
  18284. #. type: section
  18285. #: guix-git/doc/guix.texi:12118
  18286. #, no-wrap
  18287. msgid "Invoking @command{guix edit}"
  18288. msgstr ""
  18289. #. type: command{#1}
  18290. #: guix-git/doc/guix.texi:12120
  18291. #, no-wrap
  18292. msgid "guix edit"
  18293. msgstr ""
  18294. #. type: cindex
  18295. #: guix-git/doc/guix.texi:12121
  18296. #, no-wrap
  18297. msgid "package definition, editing"
  18298. msgstr ""
  18299. #. type: Plain text
  18300. #: guix-git/doc/guix.texi:12126
  18301. 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:"
  18302. msgstr ""
  18303. #. type: example
  18304. #: guix-git/doc/guix.texi:12129
  18305. #, no-wrap
  18306. msgid "guix edit gcc@@4.9 vim\n"
  18307. msgstr ""
  18308. #. type: Plain text
  18309. #: guix-git/doc/guix.texi:12135
  18310. 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."
  18311. msgstr ""
  18312. #. type: Plain text
  18313. #: guix-git/doc/guix.texi:12141
  18314. 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."
  18315. msgstr ""
  18316. #. type: Plain text
  18317. #: guix-git/doc/guix.texi:12146
  18318. 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."
  18319. msgstr ""
  18320. #. type: section
  18321. #: guix-git/doc/guix.texi:12148
  18322. #, no-wrap
  18323. msgid "Invoking @command{guix download}"
  18324. msgstr ""
  18325. #. type: command{#1}
  18326. #: guix-git/doc/guix.texi:12150
  18327. #, no-wrap
  18328. msgid "guix download"
  18329. msgstr ""
  18330. #. type: cindex
  18331. #: guix-git/doc/guix.texi:12151
  18332. #, no-wrap
  18333. msgid "downloading package sources"
  18334. msgstr ""
  18335. #. type: Plain text
  18336. #: guix-git/doc/guix.texi:12158
  18337. 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."
  18338. msgstr ""
  18339. #. type: Plain text
  18340. #: guix-git/doc/guix.texi:12165
  18341. 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})."
  18342. msgstr ""
  18343. #. type: Plain text
  18344. #: guix-git/doc/guix.texi:12173
  18345. 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."
  18346. msgstr ""
  18347. #. type: Plain text
  18348. #: guix-git/doc/guix.texi:12178
  18349. 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."
  18350. msgstr ""
  18351. #. type: Plain text
  18352. #: guix-git/doc/guix.texi:12180 guix-git/doc/guix.texi:14026
  18353. msgid "The following options are available:"
  18354. msgstr ""
  18355. #. type: item
  18356. #: guix-git/doc/guix.texi:12182 guix-git/doc/guix.texi:12226
  18357. #, no-wrap
  18358. msgid "--hash=@var{algorithm}"
  18359. msgstr ""
  18360. #. type: itemx
  18361. #: guix-git/doc/guix.texi:12183 guix-git/doc/guix.texi:12227
  18362. #, no-wrap
  18363. msgid "-H @var{algorithm}"
  18364. msgstr ""
  18365. #. type: table
  18366. #: guix-git/doc/guix.texi:12186
  18367. msgid "Compute a hash using the specified @var{algorithm}. @xref{Invoking guix hash}, for more information."
  18368. msgstr ""
  18369. #. type: item
  18370. #: guix-git/doc/guix.texi:12187 guix-git/doc/guix.texi:12236
  18371. #, no-wrap
  18372. msgid "--format=@var{fmt}"
  18373. msgstr ""
  18374. #. type: itemx
  18375. #: guix-git/doc/guix.texi:12188 guix-git/doc/guix.texi:12237
  18376. #, no-wrap
  18377. msgid "-f @var{fmt}"
  18378. msgstr ""
  18379. #. type: table
  18380. #: guix-git/doc/guix.texi:12191
  18381. 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}."
  18382. msgstr ""
  18383. #. type: item
  18384. #: guix-git/doc/guix.texi:12192
  18385. #, no-wrap
  18386. msgid "--no-check-certificate"
  18387. msgstr ""
  18388. #. type: table
  18389. #: guix-git/doc/guix.texi:12194
  18390. msgid "Do not validate the X.509 certificates of HTTPS servers."
  18391. msgstr ""
  18392. #. type: table
  18393. #: guix-git/doc/guix.texi:12198
  18394. 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."
  18395. msgstr ""
  18396. #. type: item
  18397. #: guix-git/doc/guix.texi:12199
  18398. #, no-wrap
  18399. msgid "--output=@var{file}"
  18400. msgstr ""
  18401. #. type: itemx
  18402. #: guix-git/doc/guix.texi:12200
  18403. #, no-wrap
  18404. msgid "-o @var{file}"
  18405. msgstr ""
  18406. #. type: table
  18407. #: guix-git/doc/guix.texi:12203
  18408. msgid "Save the downloaded file to @var{file} instead of adding it to the store."
  18409. msgstr ""
  18410. #. type: section
  18411. #: guix-git/doc/guix.texi:12206
  18412. #, no-wrap
  18413. msgid "Invoking @command{guix hash}"
  18414. msgstr ""
  18415. #. type: command{#1}
  18416. #: guix-git/doc/guix.texi:12208
  18417. #, no-wrap
  18418. msgid "guix hash"
  18419. msgstr ""
  18420. #. type: Plain text
  18421. #: guix-git/doc/guix.texi:12213
  18422. 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 one or more files, which can be used in the definition of a package (@pxref{Defining Packages})."
  18423. msgstr ""
  18424. #. type: example
  18425. #: guix-git/doc/guix.texi:12218
  18426. #, fuzzy, no-wrap
  18427. msgid "guix hash @var{option} @var{file} ...\n"
  18428. msgstr "guix install emacs-guix\n"
  18429. #. type: Plain text
  18430. #: guix-git/doc/guix.texi:12223
  18431. 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:"
  18432. msgstr ""
  18433. #. type: table
  18434. #: guix-git/doc/guix.texi:12230
  18435. msgid "Compute a hash using the specified @var{algorithm}, @code{sha256} by default."
  18436. msgstr ""
  18437. #. type: table
  18438. #: guix-git/doc/guix.texi:12235
  18439. msgid "@var{algorithm} must be 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})."
  18440. msgstr ""
  18441. #. type: table
  18442. #: guix-git/doc/guix.texi:12239
  18443. msgid "Write the hash in the format specified by @var{fmt}."
  18444. msgstr ""
  18445. #. type: table
  18446. #: guix-git/doc/guix.texi:12242
  18447. msgid "Supported formats: @code{base64}, @code{nix-base32}, @code{base32}, @code{base16} (@code{hex} and @code{hexadecimal} can be used as well)."
  18448. msgstr ""
  18449. #. type: table
  18450. #: guix-git/doc/guix.texi:12246
  18451. 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."
  18452. msgstr ""
  18453. #. type: table
  18454. #: guix-git/doc/guix.texi:12252
  18455. msgid "The @option{--recursive} option is deprecated in favor of @option{--serializer=nar} (see below); @option{-r} remains accepted as a convenient shorthand."
  18456. msgstr ""
  18457. #. type: item
  18458. #: guix-git/doc/guix.texi:12253
  18459. #, fuzzy, no-wrap
  18460. msgid "--serializer=@var{type}"
  18461. msgstr "--log-compression=@var{type}"
  18462. #. type: itemx
  18463. #: guix-git/doc/guix.texi:12254
  18464. #, fuzzy, no-wrap
  18465. #| msgid "-c @var{n}"
  18466. msgid "-S @var{type}"
  18467. msgstr "-c @var{n}"
  18468. #. type: table
  18469. #: guix-git/doc/guix.texi:12256
  18470. msgid "Compute the hash on @var{file} using @var{type} serialization."
  18471. msgstr ""
  18472. #. type: table
  18473. #: guix-git/doc/guix.texi:12258
  18474. msgid "@var{type} may be one of the following:"
  18475. msgstr ""
  18476. #. type: item
  18477. #: guix-git/doc/guix.texi:12260 guix-git/doc/guix.texi:14379
  18478. #: guix-git/doc/guix.texi:17892 guix-git/doc/guix.texi:20166
  18479. #, no-wrap
  18480. msgid "none"
  18481. msgstr ""
  18482. #. type: table
  18483. #: guix-git/doc/guix.texi:12262
  18484. msgid "This is the default: it computes the hash of a file's contents."
  18485. msgstr ""
  18486. #. type: item
  18487. #: guix-git/doc/guix.texi:12263
  18488. #, no-wrap
  18489. msgid "nar"
  18490. msgstr ""
  18491. #. type: table
  18492. #: guix-git/doc/guix.texi:12273
  18493. msgid "Compute the hash of a ``normalized archive'' (or ``nar'') 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 have no impact on the hash (@pxref{Invoking guix archive}, for more info on the nar format)."
  18494. msgstr ""
  18495. #. type: item
  18496. #: guix-git/doc/guix.texi:12274
  18497. #, no-wrap
  18498. msgid "git"
  18499. msgstr ""
  18500. #. type: table
  18501. #: guix-git/doc/guix.texi:12277
  18502. msgid "Compute the hash of the file or directory as a Git ``tree'', following the same method as the Git version control system."
  18503. msgstr ""
  18504. #. type: item
  18505. #: guix-git/doc/guix.texi:12279
  18506. #, no-wrap
  18507. msgid "--exclude-vcs"
  18508. msgstr ""
  18509. #. type: itemx
  18510. #: guix-git/doc/guix.texi:12280 guix-git/doc/guix.texi:13499
  18511. #, no-wrap
  18512. msgid "-x"
  18513. msgstr ""
  18514. #. type: table
  18515. #: guix-git/doc/guix.texi:12283
  18516. msgid "When combined with @option{--recursive}, exclude version control system directories (@file{.bzr}, @file{.git}, @file{.hg}, etc.)."
  18517. msgstr ""
  18518. #. type: vindex
  18519. #: guix-git/doc/guix.texi:12284
  18520. #, no-wrap
  18521. msgid "git-fetch"
  18522. msgstr ""
  18523. #. type: table
  18524. #: guix-git/doc/guix.texi:12288
  18525. 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}):"
  18526. msgstr ""
  18527. #. type: example
  18528. #: guix-git/doc/guix.texi:12293
  18529. #, no-wrap
  18530. msgid ""
  18531. "$ git clone http://example.org/foo.git\n"
  18532. "$ cd foo\n"
  18533. "$ guix hash -x --serializer=nar .\n"
  18534. msgstr ""
  18535. #. type: cindex
  18536. #: guix-git/doc/guix.texi:12297 guix-git/doc/guix.texi:12302
  18537. #, no-wrap
  18538. msgid "Invoking @command{guix import}"
  18539. msgstr ""
  18540. #. type: cindex
  18541. #: guix-git/doc/guix.texi:12299
  18542. #, no-wrap
  18543. msgid "importing packages"
  18544. msgstr ""
  18545. #. type: cindex
  18546. #: guix-git/doc/guix.texi:12300
  18547. #, no-wrap
  18548. msgid "package import"
  18549. msgstr ""
  18550. #. type: cindex
  18551. #: guix-git/doc/guix.texi:12301
  18552. #, no-wrap
  18553. msgid "package conversion"
  18554. msgstr ""
  18555. #. type: Plain text
  18556. #: guix-git/doc/guix.texi:12309
  18557. 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})."
  18558. msgstr ""
  18559. #. type: example
  18560. #: guix-git/doc/guix.texi:12314
  18561. #, no-wrap
  18562. msgid "guix import @var{importer} @var{options}@dots{}\n"
  18563. msgstr ""
  18564. #. type: Plain text
  18565. #: guix-git/doc/guix.texi:12319
  18566. 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}."
  18567. msgstr ""
  18568. #. type: Plain text
  18569. #: guix-git/doc/guix.texi:12323
  18570. 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."
  18571. msgstr ""
  18572. #. type: Plain text
  18573. #: guix-git/doc/guix.texi:12325
  18574. msgid "Currently, the available ``importers'' are:"
  18575. msgstr ""
  18576. #. type: item
  18577. #: guix-git/doc/guix.texi:12327 guix-git/doc/guix.texi:12965
  18578. #, no-wrap
  18579. msgid "gnu"
  18580. msgstr ""
  18581. #. type: table
  18582. #: guix-git/doc/guix.texi:12331
  18583. 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."
  18584. msgstr ""
  18585. #. type: table
  18586. #: guix-git/doc/guix.texi:12334
  18587. msgid "Additional information such as the package dependencies and its license needs to be figured out manually."
  18588. msgstr ""
  18589. #. type: table
  18590. #: guix-git/doc/guix.texi:12337
  18591. msgid "For example, the following command returns a package definition for GNU@tie{}Hello:"
  18592. msgstr ""
  18593. #. type: example
  18594. #: guix-git/doc/guix.texi:12340
  18595. #, no-wrap
  18596. msgid "guix import gnu hello\n"
  18597. msgstr ""
  18598. #. type: table
  18599. #: guix-git/doc/guix.texi:12343 guix-git/doc/guix.texi:12584
  18600. #: guix-git/doc/guix.texi:12634 guix-git/doc/guix.texi:12663
  18601. msgid "Specific command-line options are:"
  18602. msgstr ""
  18603. #. type: item
  18604. #: guix-git/doc/guix.texi:12345 guix-git/doc/guix.texi:13162
  18605. #, no-wrap
  18606. msgid "--key-download=@var{policy}"
  18607. msgstr ""
  18608. #. type: table
  18609. #: guix-git/doc/guix.texi:12349
  18610. 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}}."
  18611. msgstr ""
  18612. #. type: item
  18613. #: guix-git/doc/guix.texi:12351 guix-git/doc/guix.texi:12352
  18614. #: guix-git/doc/guix.texi:12989
  18615. #, no-wrap
  18616. msgid "pypi"
  18617. msgstr ""
  18618. #. type: table
  18619. #: guix-git/doc/guix.texi:12359
  18620. 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."
  18621. msgstr ""
  18622. #. type: table
  18623. #: guix-git/doc/guix.texi:12362
  18624. msgid "The command below imports metadata for the latest version of the @code{itsdangerous} Python package:"
  18625. msgstr ""
  18626. #. type: example
  18627. #: guix-git/doc/guix.texi:12365
  18628. #, no-wrap
  18629. msgid "guix import pypi itsdangerous\n"
  18630. msgstr ""
  18631. #. type: table
  18632. #: guix-git/doc/guix.texi:12368 guix-git/doc/guix.texi:12471
  18633. #: guix-git/doc/guix.texi:12812
  18634. msgid "You can also ask for a specific version:"
  18635. msgstr ""
  18636. #. type: example
  18637. #: guix-git/doc/guix.texi:12371
  18638. #, no-wrap
  18639. msgid "guix import pypi itsdangerous@@1.1.0\n"
  18640. msgstr ""
  18641. #. type: table
  18642. #: guix-git/doc/guix.texi:12379 guix-git/doc/guix.texi:12404
  18643. #: guix-git/doc/guix.texi:12436 guix-git/doc/guix.texi:12607
  18644. #: guix-git/doc/guix.texi:12648 guix-git/doc/guix.texi:12699
  18645. #: guix-git/doc/guix.texi:12724 guix-git/doc/guix.texi:12740
  18646. #: guix-git/doc/guix.texi:12788 guix-git/doc/guix.texi:12824
  18647. 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."
  18648. msgstr ""
  18649. #. type: item
  18650. #: guix-git/doc/guix.texi:12381 guix-git/doc/guix.texi:12382
  18651. #: guix-git/doc/guix.texi:12991
  18652. #, no-wrap
  18653. msgid "gem"
  18654. msgstr ""
  18655. #. type: table
  18656. #: guix-git/doc/guix.texi:12391
  18657. 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."
  18658. msgstr ""
  18659. #. type: table
  18660. #: guix-git/doc/guix.texi:12393
  18661. msgid "The command below imports metadata for the @code{rails} Ruby package:"
  18662. msgstr ""
  18663. #. type: example
  18664. #: guix-git/doc/guix.texi:12396
  18665. #, no-wrap
  18666. msgid "guix import gem rails\n"
  18667. msgstr ""
  18668. #. type: cindex
  18669. #: guix-git/doc/guix.texi:12406 guix-git/doc/guix.texi:12407
  18670. #, no-wrap
  18671. msgid "minetest"
  18672. msgstr ""
  18673. #. type: cindex
  18674. #: guix-git/doc/guix.texi:12408
  18675. #, no-wrap
  18676. msgid "ContentDB"
  18677. msgstr ""
  18678. #. type: table
  18679. #: guix-git/doc/guix.texi:12417
  18680. msgid "Import metadata from @uref{https://content.minetest.net, ContentDB}. Information is taken from the JSON-formatted metadata provided through @uref{https://content.minetest.net/help/api/, ContentDB's API} and includes most relevant information, including dependencies. There are some caveats, however. The license information is often incomplete. The commit hash is sometimes missing. The descriptions are in the Markdown format, but Guix uses Texinfo instead. Texture packs and subgames are unsupported."
  18681. msgstr ""
  18682. #. type: table
  18683. #: guix-git/doc/guix.texi:12419
  18684. msgid "The command below imports metadata for the Mesecons mod by Jeija:"
  18685. msgstr ""
  18686. #. type: example
  18687. #: guix-git/doc/guix.texi:12422
  18688. #, no-wrap
  18689. msgid "guix import minetest Jeija/mesecons\n"
  18690. msgstr ""
  18691. #. type: table
  18692. #: guix-git/doc/guix.texi:12425
  18693. msgid "The author name can also be left out:"
  18694. msgstr ""
  18695. #. type: example
  18696. #: guix-git/doc/guix.texi:12428
  18697. #, no-wrap
  18698. msgid "guix import minetest mesecons\n"
  18699. msgstr ""
  18700. #. type: item
  18701. #: guix-git/doc/guix.texi:12438 guix-git/doc/guix.texi:12987
  18702. #, no-wrap
  18703. msgid "cpan"
  18704. msgstr ""
  18705. #. type: cindex
  18706. #: guix-git/doc/guix.texi:12439
  18707. #, no-wrap
  18708. msgid "CPAN"
  18709. msgstr ""
  18710. #. type: table
  18711. #: guix-git/doc/guix.texi:12447
  18712. 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."
  18713. msgstr ""
  18714. #. type: table
  18715. #: guix-git/doc/guix.texi:12450
  18716. msgid "The command command below imports metadata for the Acme::Boolean Perl module:"
  18717. msgstr ""
  18718. #. type: example
  18719. #: guix-git/doc/guix.texi:12453
  18720. #, no-wrap
  18721. msgid "guix import cpan Acme::Boolean\n"
  18722. msgstr ""
  18723. #. type: item
  18724. #: guix-git/doc/guix.texi:12455 guix-git/doc/guix.texi:12983
  18725. #, no-wrap
  18726. msgid "cran"
  18727. msgstr ""
  18728. #. type: cindex
  18729. #: guix-git/doc/guix.texi:12456
  18730. #, no-wrap
  18731. msgid "CRAN"
  18732. msgstr ""
  18733. #. type: cindex
  18734. #: guix-git/doc/guix.texi:12457
  18735. #, no-wrap
  18736. msgid "Bioconductor"
  18737. msgstr ""
  18738. #. type: table
  18739. #: guix-git/doc/guix.texi:12461
  18740. 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}."
  18741. msgstr ""
  18742. #. type: table
  18743. #: guix-git/doc/guix.texi:12463
  18744. msgid "Information is extracted from the @file{DESCRIPTION} file of the package."
  18745. msgstr ""
  18746. #. type: table
  18747. #: guix-git/doc/guix.texi:12465
  18748. msgid "The command command below imports metadata for the Cairo R package:"
  18749. msgstr ""
  18750. #. type: example
  18751. #: guix-git/doc/guix.texi:12468
  18752. #, no-wrap
  18753. msgid "guix import cran Cairo\n"
  18754. msgstr ""
  18755. #. type: example
  18756. #: guix-git/doc/guix.texi:12474
  18757. #, no-wrap
  18758. msgid "guix import cran rasterVis@@0.50.3\n"
  18759. msgstr ""
  18760. #. type: table
  18761. #: guix-git/doc/guix.texi:12479
  18762. 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."
  18763. msgstr ""
  18764. #. type: table
  18765. #: guix-git/doc/guix.texi:12486
  18766. 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}."
  18767. msgstr ""
  18768. #. type: table
  18769. #: guix-git/doc/guix.texi:12491
  18770. 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."
  18771. msgstr ""
  18772. #. type: table
  18773. #: guix-git/doc/guix.texi:12494
  18774. msgid "Information is extracted from the @file{DESCRIPTION} file contained in the package archive."
  18775. msgstr ""
  18776. #. type: table
  18777. #: guix-git/doc/guix.texi:12496
  18778. msgid "The command below imports metadata for the GenomicRanges R package:"
  18779. msgstr ""
  18780. #. type: example
  18781. #: guix-git/doc/guix.texi:12499
  18782. #, no-wrap
  18783. msgid "guix import cran --archive=bioconductor GenomicRanges\n"
  18784. msgstr ""
  18785. #. type: table
  18786. #: guix-git/doc/guix.texi:12504
  18787. 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:"
  18788. msgstr ""
  18789. #. type: example
  18790. #: guix-git/doc/guix.texi:12507
  18791. #, no-wrap
  18792. msgid "guix import cran --archive=git https://github.com/immunogenomics/harmony\n"
  18793. msgstr ""
  18794. #. type: item
  18795. #: guix-git/doc/guix.texi:12509
  18796. #, no-wrap
  18797. msgid "texlive"
  18798. msgstr ""
  18799. #. type: cindex
  18800. #: guix-git/doc/guix.texi:12510
  18801. #, no-wrap
  18802. msgid "TeX Live"
  18803. msgstr ""
  18804. #. type: cindex
  18805. #: guix-git/doc/guix.texi:12511
  18806. #, no-wrap
  18807. msgid "CTAN"
  18808. msgstr ""
  18809. #. type: table
  18810. #: guix-git/doc/guix.texi:12515
  18811. msgid "Import TeX package information from the TeX Live package database for TeX packages that are part of the @uref{https://www.tug.org/texlive/, TeX Live distribution}."
  18812. msgstr ""
  18813. #. type: table
  18814. #: guix-git/doc/guix.texi:12520
  18815. msgid "Information about the package is obtained from the TeX Live package database, a plain text file that is included in the @code{texlive-bin} package. The source code is downloaded from possibly multiple locations in the SVN repository of the Tex Live project."
  18816. msgstr ""
  18817. #. type: table
  18818. #: guix-git/doc/guix.texi:12523
  18819. msgid "The command command below imports metadata for the @code{fontspec} TeX package:"
  18820. msgstr ""
  18821. #. type: example
  18822. #: guix-git/doc/guix.texi:12526
  18823. #, no-wrap
  18824. msgid "guix import texlive fontspec\n"
  18825. msgstr ""
  18826. #. type: cindex
  18827. #: guix-git/doc/guix.texi:12529
  18828. #, no-wrap
  18829. msgid "JSON, import"
  18830. msgstr ""
  18831. #. type: table
  18832. #: guix-git/doc/guix.texi:12532
  18833. msgid "Import package metadata from a local JSON file. Consider the following example package definition in JSON format:"
  18834. msgstr ""
  18835. #. type: example
  18836. #: guix-git/doc/guix.texi:12545
  18837. #, no-wrap
  18838. msgid ""
  18839. "@{\n"
  18840. " \"name\": \"hello\",\n"
  18841. " \"version\": \"2.10\",\n"
  18842. " \"source\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  18843. " \"build-system\": \"gnu\",\n"
  18844. " \"home-page\": \"https://www.gnu.org/software/hello/\",\n"
  18845. " \"synopsis\": \"Hello, GNU world: An example GNU package\",\n"
  18846. " \"description\": \"GNU Hello prints a greeting.\",\n"
  18847. " \"license\": \"GPL-3.0+\",\n"
  18848. " \"native-inputs\": [\"gettext\"]\n"
  18849. "@}\n"
  18850. msgstr ""
  18851. #. type: table
  18852. #: guix-git/doc/guix.texi:12551
  18853. 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}."
  18854. msgstr ""
  18855. #. type: table
  18856. #: guix-git/doc/guix.texi:12554
  18857. msgid "The importer also supports a more explicit source definition using the common fields for @code{<origin>} records:"
  18858. msgstr ""
  18859. #. type: example
  18860. #: guix-git/doc/guix.texi:12567
  18861. #, no-wrap
  18862. msgid ""
  18863. "@{\n"
  18864. " @dots{}\n"
  18865. " \"source\": @{\n"
  18866. " \"method\": \"url-fetch\",\n"
  18867. " \"uri\": \"mirror://gnu/hello/hello-2.10.tar.gz\",\n"
  18868. " \"sha256\": @{\n"
  18869. " \"base32\": \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"\n"
  18870. " @}\n"
  18871. " @}\n"
  18872. " @dots{}\n"
  18873. "@}\n"
  18874. msgstr ""
  18875. #. type: table
  18876. #: guix-git/doc/guix.texi:12571
  18877. msgid "The command below reads metadata from the JSON file @code{hello.json} and outputs a package expression:"
  18878. msgstr ""
  18879. #. type: example
  18880. #: guix-git/doc/guix.texi:12574
  18881. #, no-wrap
  18882. msgid "guix import json hello.json\n"
  18883. msgstr ""
  18884. #. type: item
  18885. #: guix-git/doc/guix.texi:12576 guix-git/doc/guix.texi:12577
  18886. #: guix-git/doc/guix.texi:12995
  18887. #, no-wrap
  18888. msgid "hackage"
  18889. msgstr ""
  18890. #. type: table
  18891. #: guix-git/doc/guix.texi:12582
  18892. 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."
  18893. msgstr ""
  18894. #. type: item
  18895. #: guix-git/doc/guix.texi:12586
  18896. #, no-wrap
  18897. msgid "--stdin"
  18898. msgstr ""
  18899. #. type: itemx
  18900. #: guix-git/doc/guix.texi:12587
  18901. #, no-wrap
  18902. msgid "-s"
  18903. msgstr ""
  18904. #. type: table
  18905. #: guix-git/doc/guix.texi:12589
  18906. msgid "Read a Cabal file from standard input."
  18907. msgstr ""
  18908. #. type: item
  18909. #: guix-git/doc/guix.texi:12589 guix-git/doc/guix.texi:12636
  18910. #, no-wrap
  18911. msgid "--no-test-dependencies"
  18912. msgstr ""
  18913. #. type: table
  18914. #: guix-git/doc/guix.texi:12592 guix-git/doc/guix.texi:12639
  18915. msgid "Do not include dependencies required only by the test suites."
  18916. msgstr ""
  18917. #. type: item
  18918. #: guix-git/doc/guix.texi:12592
  18919. #, no-wrap
  18920. msgid "--cabal-environment=@var{alist}"
  18921. msgstr ""
  18922. #. type: itemx
  18923. #: guix-git/doc/guix.texi:12593
  18924. #, no-wrap
  18925. msgid "-e @var{alist}"
  18926. msgstr ""
  18927. #. type: table
  18928. #: guix-git/doc/guix.texi:12602
  18929. 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."
  18930. msgstr ""
  18931. #. type: table
  18932. #: guix-git/doc/guix.texi:12612
  18933. 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}:"
  18934. msgstr ""
  18935. #. type: example
  18936. #: guix-git/doc/guix.texi:12615
  18937. #, no-wrap
  18938. msgid "guix import hackage -t -e \"'((\\\"network-uri\\\" . false))\" HTTP\n"
  18939. msgstr ""
  18940. #. type: table
  18941. #: guix-git/doc/guix.texi:12619
  18942. 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:"
  18943. msgstr ""
  18944. #. type: example
  18945. #: guix-git/doc/guix.texi:12622
  18946. #, no-wrap
  18947. msgid "guix import hackage mtl@@2.1.3.1\n"
  18948. msgstr ""
  18949. #. type: item
  18950. #: guix-git/doc/guix.texi:12624 guix-git/doc/guix.texi:12625
  18951. #: guix-git/doc/guix.texi:12997
  18952. #, no-wrap
  18953. msgid "stackage"
  18954. msgstr ""
  18955. #. type: table
  18956. #: guix-git/doc/guix.texi:12632
  18957. 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."
  18958. msgstr ""
  18959. #. type: item
  18960. #: guix-git/doc/guix.texi:12639
  18961. #, no-wrap
  18962. msgid "--lts-version=@var{version}"
  18963. msgstr ""
  18964. #. type: itemx
  18965. #: guix-git/doc/guix.texi:12640
  18966. #, no-wrap
  18967. msgid "-l @var{version}"
  18968. msgstr ""
  18969. #. type: table
  18970. #: guix-git/doc/guix.texi:12643
  18971. msgid "@var{version} is the desired LTS release version. If omitted the latest release is used."
  18972. msgstr ""
  18973. #. type: table
  18974. #: guix-git/doc/guix.texi:12652
  18975. msgid "The command below imports metadata for the HTTP Haskell package included in the LTS Stackage release version 7.18:"
  18976. msgstr ""
  18977. #. type: example
  18978. #: guix-git/doc/guix.texi:12655
  18979. #, no-wrap
  18980. msgid "guix import stackage --lts-version=7.18 HTTP\n"
  18981. msgstr ""
  18982. #. type: item
  18983. #: guix-git/doc/guix.texi:12657 guix-git/doc/guix.texi:12658
  18984. #: guix-git/doc/guix.texi:12981
  18985. #, no-wrap
  18986. msgid "elpa"
  18987. msgstr ""
  18988. #. type: table
  18989. #: guix-git/doc/guix.texi:12661
  18990. msgid "Import metadata from an Emacs Lisp Package Archive (ELPA) package repository (@pxref{Packages,,, emacs, The GNU Emacs Manual})."
  18991. msgstr ""
  18992. #. type: item
  18993. #: guix-git/doc/guix.texi:12665
  18994. #, no-wrap
  18995. msgid "--archive=@var{repo}"
  18996. msgstr ""
  18997. #. type: itemx
  18998. #: guix-git/doc/guix.texi:12666
  18999. #, no-wrap
  19000. msgid "-a @var{repo}"
  19001. msgstr ""
  19002. #. type: table
  19003. #: guix-git/doc/guix.texi:12670
  19004. msgid "@var{repo} identifies the archive repository from which to retrieve the information. Currently the supported repositories and their identifiers are:"
  19005. msgstr ""
  19006. #. type: itemize
  19007. #: guix-git/doc/guix.texi:12674
  19008. msgid "@uref{https://elpa.gnu.org/packages, GNU}, selected by the @code{gnu} identifier. This is the default."
  19009. msgstr ""
  19010. #. type: itemize
  19011. #: guix-git/doc/guix.texi:12680
  19012. 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})."
  19013. msgstr ""
  19014. #. type: itemize
  19015. #: guix-git/doc/guix.texi:12684
  19016. msgid "@uref{https://elpa.nongnu.org/nongnu/, NonGNU}, selected by the @code{nongnu} identifier."
  19017. msgstr ""
  19018. #. type: itemize
  19019. #: guix-git/doc/guix.texi:12688
  19020. msgid "@uref{https://stable.melpa.org/packages, MELPA-Stable}, selected by the @code{melpa-stable} identifier."
  19021. msgstr ""
  19022. #. type: itemize
  19023. #: guix-git/doc/guix.texi:12692
  19024. msgid "@uref{https://melpa.org/packages, MELPA}, selected by the @code{melpa} identifier."
  19025. msgstr ""
  19026. #. type: item
  19027. #: guix-git/doc/guix.texi:12701 guix-git/doc/guix.texi:12702
  19028. #: guix-git/doc/guix.texi:12999
  19029. #, no-wrap
  19030. msgid "crate"
  19031. msgstr ""
  19032. #. type: table
  19033. #: guix-git/doc/guix.texi:12705
  19034. msgid "Import metadata from the crates.io Rust package repository @uref{https://crates.io, crates.io}, as in this example:"
  19035. msgstr ""
  19036. #. type: example
  19037. #: guix-git/doc/guix.texi:12708
  19038. #, no-wrap
  19039. msgid "guix import crate blake2-rfc\n"
  19040. msgstr ""
  19041. #. type: table
  19042. #: guix-git/doc/guix.texi:12711
  19043. msgid "The crate importer also allows you to specify a version string:"
  19044. msgstr ""
  19045. #. type: example
  19046. #: guix-git/doc/guix.texi:12714
  19047. #, no-wrap
  19048. msgid "guix import crate constant-time-eq@@0.1.0\n"
  19049. msgstr ""
  19050. #. type: table
  19051. #: guix-git/doc/guix.texi:12717 guix-git/doc/guix.texi:12733
  19052. #: guix-git/doc/guix.texi:12781 guix-git/doc/guix.texi:12818
  19053. #, fuzzy
  19054. msgid "Additional options include:"
  19055. msgstr "额外的构建选项"
  19056. #. type: item
  19057. #: guix-git/doc/guix.texi:12726
  19058. #, no-wrap
  19059. msgid "opam"
  19060. msgstr ""
  19061. #. type: cindex
  19062. #: guix-git/doc/guix.texi:12727
  19063. #, no-wrap
  19064. msgid "OPAM"
  19065. msgstr ""
  19066. #. type: cindex
  19067. #: guix-git/doc/guix.texi:12728
  19068. #, no-wrap
  19069. msgid "OCaml"
  19070. msgstr ""
  19071. #. type: table
  19072. #: guix-git/doc/guix.texi:12731
  19073. msgid "Import metadata from the @uref{https://opam.ocaml.org/, OPAM} package repository used by the OCaml community."
  19074. msgstr ""
  19075. #. type: item
  19076. #: guix-git/doc/guix.texi:12740
  19077. #, no-wrap
  19078. msgid "--repo"
  19079. msgstr ""
  19080. #. type: table
  19081. #: guix-git/doc/guix.texi:12744
  19082. msgid "By default, packages are searched in the official OPAM repository. This option, which can be used more than once, lets you add other repositories which will be searched for packages. It accepts as valid arguments:"
  19083. msgstr ""
  19084. #. type: item
  19085. #: guix-git/doc/guix.texi:12746
  19086. #, no-wrap
  19087. msgid "the name of a known repository - can be one of @code{opam},"
  19088. msgstr ""
  19089. #. type: itemize
  19090. #: guix-git/doc/guix.texi:12749
  19091. msgid "@code{coq} (equivalent to @code{coq-released}), @code{coq-core-dev}, @code{coq-extra-dev} or @code{grew}."
  19092. msgstr ""
  19093. #. type: item
  19094. #: guix-git/doc/guix.texi:12749
  19095. #, no-wrap
  19096. msgid "the URL of a repository as expected by the"
  19097. msgstr ""
  19098. #. type: itemize
  19099. #: guix-git/doc/guix.texi:12753
  19100. msgid "@code{opam repository add} command (for instance, the URL equivalent of the above @code{opam} name would be @uref{https://opam.ocaml.org})."
  19101. msgstr ""
  19102. #. type: item
  19103. #: guix-git/doc/guix.texi:12753
  19104. #, no-wrap
  19105. msgid "the path to a local copy of a repository (a directory containing a"
  19106. msgstr ""
  19107. #. type: itemize
  19108. #: guix-git/doc/guix.texi:12755
  19109. #, fuzzy
  19110. msgid "@file{packages/} sub-directory)."
  19111. msgstr "软件包模块"
  19112. #. type: table
  19113. #: guix-git/doc/guix.texi:12760
  19114. msgid "Repositories are assumed to be passed to this option by order of preference. The additional repositories will not replace the default @code{opam} repository, which is always kept as a fallback."
  19115. msgstr ""
  19116. #. type: table
  19117. #: guix-git/doc/guix.texi:12765
  19118. msgid "Also, please note that versions are not compared across repositories. The first repository (from left to right) that has at least one version of a given package will prevail over any others, and the version imported will be the latest one found @emph{in this repository only}."
  19119. msgstr ""
  19120. #. type: cindex
  19121. #: guix-git/doc/guix.texi:12768 guix-git/doc/guix.texi:12769
  19122. #, no-wrap
  19123. msgid "go"
  19124. msgstr ""
  19125. #. type: table
  19126. #: guix-git/doc/guix.texi:12772
  19127. msgid "Import metadata for a Go module using @uref{https://proxy.golang.org, proxy.golang.org}."
  19128. msgstr ""
  19129. #. type: example
  19130. #: guix-git/doc/guix.texi:12775
  19131. #, no-wrap
  19132. msgid "guix import go gopkg.in/yaml.v2\n"
  19133. msgstr ""
  19134. #. type: table
  19135. #: guix-git/doc/guix.texi:12779
  19136. msgid "It is possible to use a package specification with a @code{@@VERSION} suffix to import a specific version."
  19137. msgstr ""
  19138. #. type: item
  19139. #: guix-git/doc/guix.texi:12788
  19140. #, no-wrap
  19141. msgid "--pin-versions"
  19142. msgstr ""
  19143. #. type: table
  19144. #: guix-git/doc/guix.texi:12796
  19145. 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."
  19146. msgstr ""
  19147. #. type: item
  19148. #: guix-git/doc/guix.texi:12798 guix-git/doc/guix.texi:12799
  19149. #: guix-git/doc/guix.texi:12979
  19150. #, no-wrap
  19151. msgid "egg"
  19152. msgstr ""
  19153. #. type: table
  19154. #: guix-git/doc/guix.texi:12806
  19155. msgid "Import metadata for @uref{https://wiki.call-cc.org/eggs, CHICKEN eggs}. The information is taken from @file{PACKAGE.egg} files found in the @uref{git://code.call-cc.org/eggs-5-all, eggs-5-all} Git repository. However, it does not provide all the information that we need, there is no ``description'' field, and the licenses used are not always precise (BSD is often used instead of BSD-N)."
  19156. msgstr ""
  19157. #. type: example
  19158. #: guix-git/doc/guix.texi:12809
  19159. #, no-wrap
  19160. msgid "guix import egg sourcehut\n"
  19161. msgstr ""
  19162. #. type: example
  19163. #: guix-git/doc/guix.texi:12815
  19164. #, no-wrap
  19165. msgid "guix import egg arrays@@1.0\n"
  19166. msgstr ""
  19167. #. type: Plain text
  19168. #: guix-git/doc/guix.texi:12830
  19169. 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})."
  19170. msgstr ""
  19171. #. type: section
  19172. #: guix-git/doc/guix.texi:12832
  19173. #, no-wrap
  19174. msgid "Invoking @command{guix refresh}"
  19175. msgstr ""
  19176. #. type: command{#1}
  19177. #: guix-git/doc/guix.texi:12834
  19178. #, no-wrap
  19179. msgid "guix refresh"
  19180. msgstr ""
  19181. #. type: Plain text
  19182. #: guix-git/doc/guix.texi:12842
  19183. 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:"
  19184. msgstr ""
  19185. #. type: example
  19186. #: guix-git/doc/guix.texi:12847
  19187. #, no-wrap
  19188. msgid ""
  19189. "$ guix refresh\n"
  19190. "gnu/packages/gettext.scm:29:13: gettext would be upgraded from 0.18.1.1 to 0.18.2.1\n"
  19191. "gnu/packages/glib.scm:77:12: glib would be upgraded from 2.34.3 to 2.37.0\n"
  19192. msgstr ""
  19193. #. type: Plain text
  19194. #: guix-git/doc/guix.texi:12851
  19195. msgid "Alternatively, one can specify packages to consider, in which case a warning is emitted for packages that lack an updater:"
  19196. msgstr ""
  19197. #. type: example
  19198. #: guix-git/doc/guix.texi:12856
  19199. #, no-wrap
  19200. msgid ""
  19201. "$ guix refresh coreutils guile guile-ssh\n"
  19202. "gnu/packages/ssh.scm:205:2: warning: no updater for guile-ssh\n"
  19203. "gnu/packages/guile.scm:136:12: guile would be upgraded from 2.0.12 to 2.0.13\n"
  19204. msgstr ""
  19205. #. type: Plain text
  19206. #: guix-git/doc/guix.texi:12865
  19207. 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!"
  19208. msgstr ""
  19209. #. type: table
  19210. #: guix-git/doc/guix.texi:12870
  19211. msgid "Consider the packages specified, and all the packages upon which they depend."
  19212. msgstr ""
  19213. #. type: example
  19214. #: guix-git/doc/guix.texi:12878
  19215. #, no-wrap
  19216. msgid ""
  19217. "$ guix refresh --recursive coreutils\n"
  19218. "gnu/packages/acl.scm:40:13: acl would be upgraded from 2.2.53 to 2.3.1\n"
  19219. "gnu/packages/m4.scm:30:12: 1.4.18 is already the latest version of m4\n"
  19220. "gnu/packages/xml.scm:68:2: warning: no updater for expat\n"
  19221. "gnu/packages/multiprecision.scm:40:12: 6.1.2 is already the latest version of gmp\n"
  19222. "@dots{}\n"
  19223. msgstr ""
  19224. #. type: Plain text
  19225. #: guix-git/doc/guix.texi:12886
  19226. 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:"
  19227. msgstr ""
  19228. #. type: lisp
  19229. #: guix-git/doc/guix.texi:12893
  19230. #, no-wrap
  19231. msgid ""
  19232. "(define-public network-manager\n"
  19233. " (package\n"
  19234. " (name \"network-manager\")\n"
  19235. " ;; @dots{}\n"
  19236. " (properties '((upstream-name . \"NetworkManager\")))))\n"
  19237. msgstr ""
  19238. #. type: Plain text
  19239. #: guix-git/doc/guix.texi:12902
  19240. 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."
  19241. msgstr ""
  19242. #. type: Plain text
  19243. #: guix-git/doc/guix.texi:12908
  19244. 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."
  19245. msgstr ""
  19246. #. type: Plain text
  19247. #: guix-git/doc/guix.texi:12910
  19248. msgid "The following options are supported:"
  19249. msgstr ""
  19250. #. type: table
  19251. #: guix-git/doc/guix.texi:12918 guix-git/doc/guix.texi:13908
  19252. msgid "This is useful to precisely refer to a package, as in this example:"
  19253. msgstr ""
  19254. #. type: example
  19255. #: guix-git/doc/guix.texi:12921
  19256. #, no-wrap
  19257. msgid "guix refresh -l -e '(@@@@ (gnu packages commencement) glibc-final)'\n"
  19258. msgstr ""
  19259. #. type: table
  19260. #: guix-git/doc/guix.texi:12925
  19261. msgid "This command lists the dependents of the ``final'' libc (essentially all the packages)."
  19262. msgstr ""
  19263. #. type: item
  19264. #: guix-git/doc/guix.texi:12926
  19265. #, no-wrap
  19266. msgid "--update"
  19267. msgstr ""
  19268. #. type: itemx
  19269. #: guix-git/doc/guix.texi:12927
  19270. #, no-wrap
  19271. msgid "-u"
  19272. msgstr ""
  19273. #. type: table
  19274. #: guix-git/doc/guix.texi:12931
  19275. 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}):"
  19276. msgstr ""
  19277. #. type: example
  19278. #: guix-git/doc/guix.texi:12934
  19279. #, no-wrap
  19280. msgid "$ ./pre-inst-env guix refresh -s non-core -u\n"
  19281. msgstr ""
  19282. #. type: table
  19283. #: guix-git/doc/guix.texi:12937
  19284. msgid "@xref{Defining Packages}, for more information on package definitions."
  19285. msgstr ""
  19286. #. type: item
  19287. #: guix-git/doc/guix.texi:12938
  19288. #, no-wrap
  19289. msgid "--select=[@var{subset}]"
  19290. msgstr ""
  19291. #. type: itemx
  19292. #: guix-git/doc/guix.texi:12939
  19293. #, no-wrap
  19294. msgid "-s @var{subset}"
  19295. msgstr ""
  19296. #. type: table
  19297. #: guix-git/doc/guix.texi:12942
  19298. msgid "Select all the packages in @var{subset}, one of @code{core} or @code{non-core}."
  19299. msgstr ""
  19300. #. type: table
  19301. #: guix-git/doc/guix.texi:12949
  19302. 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."
  19303. msgstr ""
  19304. #. type: table
  19305. #: guix-git/doc/guix.texi:12953
  19306. 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."
  19307. msgstr ""
  19308. #. type: table
  19309. #: guix-git/doc/guix.texi:12958
  19310. 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."
  19311. msgstr ""
  19312. #. type: item
  19313. #: guix-git/doc/guix.texi:12959
  19314. #, no-wrap
  19315. msgid "--type=@var{updater}"
  19316. msgstr ""
  19317. #. type: itemx
  19318. #: guix-git/doc/guix.texi:12960
  19319. #, no-wrap
  19320. msgid "-t @var{updater}"
  19321. msgstr ""
  19322. #. type: table
  19323. #: guix-git/doc/guix.texi:12963
  19324. msgid "Select only packages handled by @var{updater} (may be a comma-separated list of updaters). Currently, @var{updater} may be one of:"
  19325. msgstr ""
  19326. #. type: table
  19327. #: guix-git/doc/guix.texi:12967
  19328. msgid "the updater for GNU packages;"
  19329. msgstr ""
  19330. #. type: item
  19331. #: guix-git/doc/guix.texi:12967
  19332. #, no-wrap
  19333. msgid "savannah"
  19334. msgstr ""
  19335. #. type: table
  19336. #: guix-git/doc/guix.texi:12969
  19337. msgid "the updater for packages hosted at @uref{https://savannah.gnu.org, Savannah};"
  19338. msgstr ""
  19339. #. type: item
  19340. #: guix-git/doc/guix.texi:12969
  19341. #, no-wrap
  19342. msgid "sourceforge"
  19343. msgstr ""
  19344. #. type: table
  19345. #: guix-git/doc/guix.texi:12971
  19346. msgid "the updater for packages hosted at @uref{https://sourceforge.net, SourceForge};"
  19347. msgstr ""
  19348. #. type: item
  19349. #: guix-git/doc/guix.texi:12971
  19350. #, no-wrap
  19351. msgid "gnome"
  19352. msgstr ""
  19353. #. type: table
  19354. #: guix-git/doc/guix.texi:12973
  19355. msgid "the updater for GNOME packages;"
  19356. msgstr ""
  19357. #. type: item
  19358. #: guix-git/doc/guix.texi:12973
  19359. #, no-wrap
  19360. msgid "kde"
  19361. msgstr ""
  19362. #. type: table
  19363. #: guix-git/doc/guix.texi:12975
  19364. msgid "the updater for KDE packages;"
  19365. msgstr ""
  19366. #. type: item
  19367. #: guix-git/doc/guix.texi:12975
  19368. #, no-wrap
  19369. msgid "xorg"
  19370. msgstr ""
  19371. #. type: table
  19372. #: guix-git/doc/guix.texi:12977
  19373. msgid "the updater for X.org packages;"
  19374. msgstr ""
  19375. #. type: item
  19376. #: guix-git/doc/guix.texi:12977
  19377. #, no-wrap
  19378. msgid "kernel.org"
  19379. msgstr ""
  19380. #. type: table
  19381. #: guix-git/doc/guix.texi:12979
  19382. msgid "the updater for packages hosted on kernel.org;"
  19383. msgstr ""
  19384. #. type: table
  19385. #: guix-git/doc/guix.texi:12981
  19386. msgid "the updater for @uref{https://wiki.call-cc.org/eggs/, Egg} packages;"
  19387. msgstr ""
  19388. #. type: table
  19389. #: guix-git/doc/guix.texi:12983
  19390. msgid "the updater for @uref{https://elpa.gnu.org/, ELPA} packages;"
  19391. msgstr ""
  19392. #. type: table
  19393. #: guix-git/doc/guix.texi:12985
  19394. msgid "the updater for @uref{https://cran.r-project.org/, CRAN} packages;"
  19395. msgstr ""
  19396. #. type: item
  19397. #: guix-git/doc/guix.texi:12985
  19398. #, no-wrap
  19399. msgid "bioconductor"
  19400. msgstr ""
  19401. #. type: table
  19402. #: guix-git/doc/guix.texi:12987
  19403. msgid "the updater for @uref{https://www.bioconductor.org/, Bioconductor} R packages;"
  19404. msgstr ""
  19405. #. type: table
  19406. #: guix-git/doc/guix.texi:12989
  19407. msgid "the updater for @uref{https://www.cpan.org/, CPAN} packages;"
  19408. msgstr ""
  19409. #. type: table
  19410. #: guix-git/doc/guix.texi:12991
  19411. msgid "the updater for @uref{https://pypi.python.org, PyPI} packages."
  19412. msgstr ""
  19413. #. type: table
  19414. #: guix-git/doc/guix.texi:12993
  19415. msgid "the updater for @uref{https://rubygems.org, RubyGems} packages."
  19416. msgstr ""
  19417. #. type: item
  19418. #: guix-git/doc/guix.texi:12993
  19419. #, no-wrap
  19420. msgid "github"
  19421. msgstr ""
  19422. #. type: table
  19423. #: guix-git/doc/guix.texi:12995
  19424. msgid "the updater for @uref{https://github.com, GitHub} packages."
  19425. msgstr ""
  19426. #. type: table
  19427. #: guix-git/doc/guix.texi:12997
  19428. msgid "the updater for @uref{https://hackage.haskell.org, Hackage} packages."
  19429. msgstr ""
  19430. #. type: table
  19431. #: guix-git/doc/guix.texi:12999
  19432. msgid "the updater for @uref{https://www.stackage.org, Stackage} packages."
  19433. msgstr ""
  19434. #. type: table
  19435. #: guix-git/doc/guix.texi:13001
  19436. msgid "the updater for @uref{https://crates.io, Crates} packages."
  19437. msgstr ""
  19438. #. type: item
  19439. #: guix-git/doc/guix.texi:13001
  19440. #, no-wrap
  19441. msgid "launchpad"
  19442. msgstr ""
  19443. #. type: table
  19444. #: guix-git/doc/guix.texi:13003
  19445. msgid "the updater for @uref{https://launchpad.net, Launchpad} packages."
  19446. msgstr ""
  19447. #. type: item
  19448. #: guix-git/doc/guix.texi:13003
  19449. #, no-wrap
  19450. msgid "generic-html"
  19451. msgstr ""
  19452. #. type: table
  19453. #: guix-git/doc/guix.texi:13006
  19454. msgid "a generic updater that crawls the HTML page where the source tarball of the package is hosted, when applicable."
  19455. msgstr ""
  19456. #. type: item
  19457. #: guix-git/doc/guix.texi:13007
  19458. #, no-wrap
  19459. msgid "generic-git"
  19460. msgstr ""
  19461. #. type: table
  19462. #: guix-git/doc/guix.texi:13012
  19463. msgid "a generic updater for packages hosted on Git repositories. It tries to be smart about parsing Git tag names, but if it is not able to parse the tag name and compare tags correctly, users can define the following properties for a package."
  19464. msgstr ""
  19465. #. type: item
  19466. #: guix-git/doc/guix.texi:13014
  19467. #, no-wrap
  19468. msgid "@code{release-tag-prefix}: a regular expression for matching a prefix of"
  19469. msgstr ""
  19470. #. type: itemize
  19471. #: guix-git/doc/guix.texi:13016 guix-git/doc/guix.texi:13019
  19472. #, fuzzy
  19473. msgid "the tag name."
  19474. msgstr "仓库monad"
  19475. #. type: item
  19476. #: guix-git/doc/guix.texi:13017
  19477. #, no-wrap
  19478. msgid "@code{release-tag-suffix}: a regular expression for matching a suffix of"
  19479. msgstr ""
  19480. #. type: item
  19481. #: guix-git/doc/guix.texi:13020
  19482. #, no-wrap
  19483. msgid "@code{release-tag-version-delimiter}: a string used as the delimiter in"
  19484. msgstr ""
  19485. #. type: itemize
  19486. #: guix-git/doc/guix.texi:13022
  19487. msgid "the tag name for separating the numbers of the version."
  19488. msgstr ""
  19489. #. type: item
  19490. #: guix-git/doc/guix.texi:13023
  19491. #, no-wrap
  19492. msgid "@code{accept-pre-releases}: by default, the updater will ignore"
  19493. msgstr ""
  19494. #. type: itemize
  19495. #: guix-git/doc/guix.texi:13026
  19496. msgid "pre-releases; to make it also look for pre-releases, set the this property to @code{#t}."
  19497. msgstr ""
  19498. #. type: lisp
  19499. #: guix-git/doc/guix.texi:13037
  19500. #, no-wrap
  19501. msgid ""
  19502. "(package\n"
  19503. " (name \"foo\")\n"
  19504. " ;; ...\n"
  19505. " (properties\n"
  19506. " '((release-tag-prefix . \"^release0-\")\n"
  19507. " (release-tag-suffix . \"[a-z]?$\")\n"
  19508. " (release-tag-version-delimiter . \":\"))))\n"
  19509. msgstr ""
  19510. #. type: table
  19511. #: guix-git/doc/guix.texi:13044
  19512. 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:"
  19513. msgstr ""
  19514. #. type: example
  19515. #: guix-git/doc/guix.texi:13049
  19516. #, no-wrap
  19517. msgid ""
  19518. "$ guix refresh --type=elpa,cran\n"
  19519. "gnu/packages/statistics.scm:819:13: r-testthat would be upgraded from 0.10.0 to 0.11.0\n"
  19520. "gnu/packages/emacs.scm:856:13: emacs-auctex would be upgraded from 11.88.6 to 11.88.9\n"
  19521. msgstr ""
  19522. #. type: item
  19523. #: guix-git/doc/guix.texi:13051
  19524. #, no-wrap
  19525. msgid "--list-updaters"
  19526. msgstr ""
  19527. #. type: itemx
  19528. #: guix-git/doc/guix.texi:13052
  19529. #, no-wrap
  19530. msgid "-L"
  19531. msgstr ""
  19532. #. type: table
  19533. #: guix-git/doc/guix.texi:13054
  19534. msgid "List available updaters and exit (see @option{--type} above)."
  19535. msgstr ""
  19536. #. type: table
  19537. #: guix-git/doc/guix.texi:13057
  19538. msgid "For each updater, display the fraction of packages it covers; at the end, display the fraction of packages covered by all these updaters."
  19539. msgstr ""
  19540. #. type: Plain text
  19541. #: guix-git/doc/guix.texi:13061
  19542. msgid "In addition, @command{guix refresh} can be passed one or more package names, as in this example:"
  19543. msgstr ""
  19544. #. type: example
  19545. #: guix-git/doc/guix.texi:13064
  19546. #, no-wrap
  19547. msgid "$ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8\n"
  19548. msgstr ""
  19549. #. type: Plain text
  19550. #: guix-git/doc/guix.texi:13071
  19551. 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:"
  19552. msgstr ""
  19553. #. type: example
  19554. #: guix-git/doc/guix.texi:13075
  19555. #, no-wrap
  19556. msgid ""
  19557. "$ ./pre-inst-env guix refresh -u \\\n"
  19558. " $(guix package --list-installed | cut -f1)\n"
  19559. msgstr ""
  19560. #. type: Plain text
  19561. #: guix-git/doc/guix.texi:13081
  19562. 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:"
  19563. msgstr ""
  19564. #. type: item
  19565. #: guix-git/doc/guix.texi:13084
  19566. #, no-wrap
  19567. msgid "--list-dependent"
  19568. msgstr ""
  19569. #. type: itemx
  19570. #: guix-git/doc/guix.texi:13085 guix-git/doc/guix.texi:13489
  19571. #, no-wrap
  19572. msgid "-l"
  19573. msgstr ""
  19574. #. type: table
  19575. #: guix-git/doc/guix.texi:13088
  19576. msgid "List top-level dependent packages that would need to be rebuilt as a result of upgrading one or more packages."
  19577. msgstr ""
  19578. #. type: table
  19579. #: guix-git/doc/guix.texi:13092
  19580. 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."
  19581. msgstr ""
  19582. #. type: Plain text
  19583. #: guix-git/doc/guix.texi:13098
  19584. 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."
  19585. msgstr ""
  19586. #. type: example
  19587. #: guix-git/doc/guix.texi:13103
  19588. #, no-wrap
  19589. msgid ""
  19590. "$ guix refresh --list-dependent flex\n"
  19591. "Building the following 120 packages would ensure 213 dependent packages are rebuilt:\n"
  19592. "hop@@2.4.0 emacs-geiser@@0.13 notmuch@@0.18 mu@@0.9.9.5 cflow@@1.4 idutils@@4.6 @dots{}\n"
  19593. msgstr ""
  19594. #. type: Plain text
  19595. #: guix-git/doc/guix.texi:13107
  19596. msgid "The command above lists a set of packages that could be built to check for compatibility with an upgraded @code{flex} package."
  19597. msgstr ""
  19598. #. type: item
  19599. #: guix-git/doc/guix.texi:13110
  19600. #, no-wrap
  19601. msgid "--list-transitive"
  19602. msgstr ""
  19603. #. type: table
  19604. #: guix-git/doc/guix.texi:13112
  19605. msgid "List all the packages which one or more packages depend upon."
  19606. msgstr ""
  19607. #. type: example
  19608. #: guix-git/doc/guix.texi:13117
  19609. #, no-wrap
  19610. msgid ""
  19611. "$ guix refresh --list-transitive flex\n"
  19612. "flex@@2.6.4 depends on the following 25 packages: perl@@5.28.0 help2man@@1.47.6\n"
  19613. "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"
  19614. msgstr ""
  19615. #. type: Plain text
  19616. #: guix-git/doc/guix.texi:13123
  19617. msgid "The command above lists a set of packages which, when changed, would cause @code{flex} to be rebuilt."
  19618. msgstr ""
  19619. #. type: Plain text
  19620. #: guix-git/doc/guix.texi:13125
  19621. msgid "The following options can be used to customize GnuPG operation:"
  19622. msgstr ""
  19623. #. type: item
  19624. #: guix-git/doc/guix.texi:13128
  19625. #, no-wrap
  19626. msgid "--gpg=@var{command}"
  19627. msgstr ""
  19628. #. type: table
  19629. #: guix-git/doc/guix.texi:13131
  19630. msgid "Use @var{command} as the GnuPG 2.x command. @var{command} is searched for in @code{$PATH}."
  19631. msgstr ""
  19632. #. type: item
  19633. #: guix-git/doc/guix.texi:13132
  19634. #, no-wrap
  19635. msgid "--keyring=@var{file}"
  19636. msgstr ""
  19637. #. type: table
  19638. #: guix-git/doc/guix.texi:13138
  19639. 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)."
  19640. msgstr ""
  19641. #. type: table
  19642. #: guix-git/doc/guix.texi:13144
  19643. 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)."
  19644. msgstr ""
  19645. #. type: table
  19646. #: guix-git/doc/guix.texi:13147
  19647. msgid "You can export keys from your default GPG keyring into a keybox file using commands like this one:"
  19648. msgstr ""
  19649. #. type: example
  19650. #: guix-git/doc/guix.texi:13150
  19651. #, no-wrap
  19652. msgid "gpg --export rms@@gnu.org | kbxutil --import-openpgp >> mykeyring.kbx\n"
  19653. msgstr ""
  19654. #. type: table
  19655. #: guix-git/doc/guix.texi:13153
  19656. msgid "Likewise, you can fetch keys to a specific keybox file like this:"
  19657. msgstr ""
  19658. #. type: example
  19659. #: guix-git/doc/guix.texi:13157
  19660. #, no-wrap
  19661. msgid ""
  19662. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  19663. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  19664. msgstr ""
  19665. "gpg --no-default-keyring --keyring mykeyring.kbx \\\n"
  19666. " --recv-keys @value{OPENPGP-SIGNING-KEY-ID}\n"
  19667. #. type: table
  19668. #: guix-git/doc/guix.texi:13161
  19669. msgid "@xref{GPG Configuration Options, @option{--keyring},, gnupg, Using the GNU Privacy Guard}, for more information on GPG's @option{--keyring} option."
  19670. msgstr ""
  19671. #. type: table
  19672. #: guix-git/doc/guix.texi:13165
  19673. msgid "Handle missing OpenPGP keys according to @var{policy}, which may be one of:"
  19674. msgstr ""
  19675. #. type: item
  19676. #: guix-git/doc/guix.texi:13167 guix-git/doc/guix.texi:13332
  19677. #: guix-git/doc/guix.texi:22769
  19678. #, no-wrap
  19679. msgid "always"
  19680. msgstr ""
  19681. #. type: table
  19682. #: guix-git/doc/guix.texi:13170
  19683. msgid "Always download missing OpenPGP keys from the key server, and add them to the user's GnuPG keyring."
  19684. msgstr ""
  19685. #. type: item
  19686. #: guix-git/doc/guix.texi:13171 guix-git/doc/guix.texi:22771
  19687. #, no-wrap
  19688. msgid "never"
  19689. msgstr ""
  19690. #. type: table
  19691. #: guix-git/doc/guix.texi:13173
  19692. msgid "Never try to download missing OpenPGP keys. Instead just bail out."
  19693. msgstr ""
  19694. #. type: item
  19695. #: guix-git/doc/guix.texi:13174
  19696. #, no-wrap
  19697. msgid "interactive"
  19698. msgstr ""
  19699. #. type: table
  19700. #: guix-git/doc/guix.texi:13177
  19701. 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."
  19702. msgstr ""
  19703. #. type: item
  19704. #: guix-git/doc/guix.texi:13179
  19705. #, no-wrap
  19706. msgid "--key-server=@var{host}"
  19707. msgstr ""
  19708. #. type: table
  19709. #: guix-git/doc/guix.texi:13181
  19710. msgid "Use @var{host} as the OpenPGP key server when importing a public key."
  19711. msgstr ""
  19712. #. type: Plain text
  19713. #: guix-git/doc/guix.texi:13201
  19714. 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."
  19715. msgstr ""
  19716. #. type: section
  19717. #: guix-git/doc/guix.texi:13204
  19718. #, fuzzy, no-wrap
  19719. #| msgid "Invoking @command{guix build}"
  19720. msgid "Invoking @command{guix style}"
  19721. msgstr "调用@command{guix build}"
  19722. #. type: Plain text
  19723. #: guix-git/doc/guix.texi:13209
  19724. msgid "The @command{guix style} command helps packagers style their package definitions according to the latest fashionable trends. The command currently provides the following styling rules:"
  19725. msgstr ""
  19726. #. type: itemize
  19727. #: guix-git/doc/guix.texi:13214
  19728. msgid "formatting package definitions according to the project's conventions (@pxref{Formatting Code});"
  19729. msgstr ""
  19730. #. type: itemize
  19731. #: guix-git/doc/guix.texi:13217
  19732. msgid "rewriting package inputs to the ``new style'', as explained below."
  19733. msgstr ""
  19734. #. type: Plain text
  19735. #: guix-git/doc/guix.texi:13223
  19736. msgid "The way package inputs are written is going through a transition (@pxref{package Reference}, for more on package inputs). Until version 1.3.0, package inputs were written using the ``old style'', where each input was given an explicit label, most of the time the package name:"
  19737. msgstr ""
  19738. #. type: lisp
  19739. #: guix-git/doc/guix.texi:13230
  19740. #, no-wrap
  19741. msgid ""
  19742. "(package\n"
  19743. " ;; @dots{}\n"
  19744. " ;; The \"old style\" (deprecated).\n"
  19745. " (inputs `((\"libunistring\" ,libunistring)\n"
  19746. " (\"libffi\" ,libffi))))\n"
  19747. msgstr ""
  19748. #. type: Plain text
  19749. #: guix-git/doc/guix.texi:13234
  19750. msgid "Today, the old style is deprecated and the preferred style looks like this:"
  19751. msgstr ""
  19752. #. type: lisp
  19753. #: guix-git/doc/guix.texi:13240
  19754. #, no-wrap
  19755. msgid ""
  19756. "(package\n"
  19757. " ;; @dots{}\n"
  19758. " ;; The \"new style\".\n"
  19759. " (inputs (list libunistring libffi)))\n"
  19760. msgstr ""
  19761. #. type: Plain text
  19762. #: guix-git/doc/guix.texi:13245
  19763. msgid "Likewise, uses of @code{alist-delete} and friends to manipulate inputs is now deprecated in favor of @code{modify-inputs} (@pxref{Defining Package Variants}, for more info on @code{modify-inputs})."
  19764. msgstr ""
  19765. #. type: Plain text
  19766. #: guix-git/doc/guix.texi:13250
  19767. msgid "In the vast majority of cases, this is a purely mechanical change on the surface syntax that does not even incur a package rebuild. Running @command{guix style -S inputs} can do that for you, whether you're working on packages in Guix proper or in an external channel."
  19768. msgstr ""
  19769. #. type: example
  19770. #: guix-git/doc/guix.texi:13255
  19771. #, fuzzy, no-wrap
  19772. msgid "guix style [@var{options}] @var{package}@dots{}\n"
  19773. msgstr "guix install emacs-guix\n"
  19774. #. type: Plain text
  19775. #: guix-git/doc/guix.texi:13262
  19776. msgid "This causes @command{guix style} to analyze and rewrite the definition of @var{package}@dots{} or, when @var{package} is omitted, of @emph{all} the packages. The @option{--styling} or @option{-S} option allows you to select the style rule, the default rule being @code{format}---see below."
  19777. msgstr ""
  19778. #. type: Plain text
  19779. #: guix-git/doc/guix.texi:13264 guix-git/doc/guix.texi:14583
  19780. msgid "The available options are listed below."
  19781. msgstr ""
  19782. #. type: table
  19783. #: guix-git/doc/guix.texi:13269
  19784. msgid "Show source file locations that would be edited but do not modify them."
  19785. msgstr ""
  19786. #. type: item
  19787. #: guix-git/doc/guix.texi:13270
  19788. #, fuzzy, no-wrap
  19789. #| msgid "--rounds=@var{N}"
  19790. msgid "--styling=@var{rule}"
  19791. msgstr "--rounds=@var{N}"
  19792. #. type: itemx
  19793. #: guix-git/doc/guix.texi:13271
  19794. #, fuzzy, no-wrap
  19795. #| msgid "-c @var{n}"
  19796. msgid "-S @var{rule}"
  19797. msgstr "-c @var{n}"
  19798. #. type: table
  19799. #: guix-git/doc/guix.texi:13273
  19800. #, fuzzy
  19801. #| msgid "Packages are currently available on the following platforms:"
  19802. msgid "Apply @var{rule}, one of the following styling rules:"
  19803. msgstr "目前这些平台提供软件包:"
  19804. #. type: item
  19805. #: guix-git/doc/guix.texi:13275
  19806. #, no-wrap
  19807. msgid "format"
  19808. msgstr ""
  19809. #. type: table
  19810. #: guix-git/doc/guix.texi:13280
  19811. msgid "Format the given package definition(s)---this is the default styling rule. For example, a packager running Guix on a checkout (@pxref{Running Guix Before It Is Installed}) might want to reformat the definition of the Coreutils package like so:"
  19812. msgstr ""
  19813. #. type: example
  19814. #: guix-git/doc/guix.texi:13283
  19815. #, fuzzy, no-wrap
  19816. msgid "./pre-inst-env guix style coreutils\n"
  19817. msgstr "./pre-inst-env guix build gnew --keep-failed\n"
  19818. #. type: item
  19819. #: guix-git/doc/guix.texi:13285
  19820. #, no-wrap
  19821. msgid "inputs"
  19822. msgstr ""
  19823. #. type: table
  19824. #: guix-git/doc/guix.texi:13289
  19825. msgid "Rewrite package inputs to the ``new style'', as described above. This is how you would rewrite inputs of package @code{whatnot} in your own channel:"
  19826. msgstr ""
  19827. #. type: example
  19828. #: guix-git/doc/guix.texi:13292
  19829. #, no-wrap
  19830. msgid "guix style -L ~/my/channel -S inputs whatnot\n"
  19831. msgstr ""
  19832. #. type: table
  19833. #: guix-git/doc/guix.texi:13298
  19834. msgid "Rewriting is done in a conservative way: preserving comments and bailing out if it cannot make sense of the code that appears in an inputs field. The @option{--input-simplification} option described below provides fine-grain control over when inputs should be simplified."
  19835. msgstr ""
  19836. #. type: table
  19837. #: guix-git/doc/guix.texi:13308
  19838. msgid "Style the package @var{expr} evaluates to."
  19839. msgstr ""
  19840. #. type: example
  19841. #: guix-git/doc/guix.texi:13313
  19842. #, no-wrap
  19843. msgid "guix style -e '(@@ (gnu packages gcc) gcc-5)'\n"
  19844. msgstr ""
  19845. #. type: table
  19846. #: guix-git/doc/guix.texi:13316
  19847. #, fuzzy
  19848. #| msgid "Updating the Guix package definition."
  19849. msgid "styles the @code{gcc-5} package definition."
  19850. msgstr "更新Guix的软件包定义。"
  19851. #. type: item
  19852. #: guix-git/doc/guix.texi:13317
  19853. #, no-wrap
  19854. msgid "--input-simplification=@var{policy}"
  19855. msgstr ""
  19856. #. type: table
  19857. #: guix-git/doc/guix.texi:13322
  19858. msgid "When using the @code{inputs} styling rule, with @samp{-S inputs}, this option specifies the package input simplification policy for cases where an input label does not match the corresponding package name. @var{policy} may be one of the following:"
  19859. msgstr ""
  19860. #. type: item
  19861. #: guix-git/doc/guix.texi:13324
  19862. #, no-wrap
  19863. msgid "silent"
  19864. msgstr ""
  19865. #. type: table
  19866. #: guix-git/doc/guix.texi:13327
  19867. msgid "Simplify inputs only when the change is ``silent'', meaning that the package does not need to be rebuilt (its derivation is unchanged)."
  19868. msgstr ""
  19869. #. type: item
  19870. #: guix-git/doc/guix.texi:13328
  19871. #, no-wrap
  19872. msgid "safe"
  19873. msgstr ""
  19874. #. type: table
  19875. #: guix-git/doc/guix.texi:13331
  19876. msgid "Simplify inputs only when that is ``safe'' to do: the package might need to be rebuilt, but the change is known to have no observable effect."
  19877. msgstr ""
  19878. #. type: table
  19879. #: guix-git/doc/guix.texi:13335
  19880. msgid "Simplify inputs even when input labels do not match package names, and even if that might have an observable effect."
  19881. msgstr ""
  19882. #. type: table
  19883. #: guix-git/doc/guix.texi:13339
  19884. msgid "The default is @code{silent}, meaning that input simplifications do not trigger any package rebuild."
  19885. msgstr ""
  19886. #. type: section
  19887. #: guix-git/doc/guix.texi:13342
  19888. #, no-wrap
  19889. msgid "Invoking @command{guix lint}"
  19890. msgstr ""
  19891. #. type: command{#1}
  19892. #: guix-git/doc/guix.texi:13344
  19893. #, no-wrap
  19894. msgid "guix lint"
  19895. msgstr ""
  19896. #. type: cindex
  19897. #: guix-git/doc/guix.texi:13345
  19898. #, no-wrap
  19899. msgid "package, checking for errors"
  19900. msgstr ""
  19901. #. type: Plain text
  19902. #: guix-git/doc/guix.texi:13351
  19903. 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):"
  19904. msgstr ""
  19905. #. type: table
  19906. #: guix-git/doc/guix.texi:13357
  19907. msgid "Validate certain typographical and stylistic rules about package descriptions and synopses."
  19908. msgstr ""
  19909. #. type: item
  19910. #: guix-git/doc/guix.texi:13358
  19911. #, no-wrap
  19912. msgid "inputs-should-be-native"
  19913. msgstr ""
  19914. #. type: table
  19915. #: guix-git/doc/guix.texi:13360
  19916. msgid "Identify inputs that should most likely be native inputs."
  19917. msgstr ""
  19918. #. type: itemx
  19919. #: guix-git/doc/guix.texi:13363
  19920. #, no-wrap
  19921. msgid "mirror-url"
  19922. msgstr ""
  19923. #. type: itemx
  19924. #: guix-git/doc/guix.texi:13364
  19925. #, no-wrap
  19926. msgid "github-url"
  19927. msgstr ""
  19928. #. type: itemx
  19929. #: guix-git/doc/guix.texi:13365
  19930. #, no-wrap
  19931. msgid "source-file-name"
  19932. msgstr ""
  19933. #. type: table
  19934. #: guix-git/doc/guix.texi:13372
  19935. 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})."
  19936. msgstr ""
  19937. #. type: item
  19938. #: guix-git/doc/guix.texi:13373
  19939. #, no-wrap
  19940. msgid "source-unstable-tarball"
  19941. msgstr ""
  19942. #. type: table
  19943. #: guix-git/doc/guix.texi:13377
  19944. 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."
  19945. msgstr ""
  19946. #. type: table
  19947. #: guix-git/doc/guix.texi:13381
  19948. msgid "Check that the derivation of the given packages can be successfully computed for all the supported systems (@pxref{Derivations})."
  19949. msgstr ""
  19950. #. type: item
  19951. #: guix-git/doc/guix.texi:13382
  19952. #, no-wrap
  19953. msgid "profile-collisions"
  19954. msgstr ""
  19955. #. type: table
  19956. #: guix-git/doc/guix.texi:13388
  19957. 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."
  19958. msgstr ""
  19959. #. type: item
  19960. #: guix-git/doc/guix.texi:13389
  19961. #, no-wrap
  19962. msgid "archival"
  19963. msgstr ""
  19964. #. type: cindex
  19965. #: guix-git/doc/guix.texi:13390
  19966. #, no-wrap
  19967. msgid "Software Heritage, source code archive"
  19968. msgstr ""
  19969. #. type: cindex
  19970. #: guix-git/doc/guix.texi:13391
  19971. #, no-wrap
  19972. msgid "archival of source code, Software Heritage"
  19973. msgstr ""
  19974. #. type: table
  19975. #: guix-git/doc/guix.texi:13394
  19976. msgid "Checks whether the package's source code is archived at @uref{https://www.softwareheritage.org, Software Heritage}."
  19977. msgstr ""
  19978. #. type: table
  19979. #: guix-git/doc/guix.texi:13402
  19980. 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}."
  19981. msgstr ""
  19982. #. type: table
  19983. #: guix-git/doc/guix.texi:13407
  19984. 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."
  19985. msgstr ""
  19986. #. type: table
  19987. #: guix-git/doc/guix.texi:13413
  19988. 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."
  19989. msgstr ""
  19990. #. type: item
  19991. #: guix-git/doc/guix.texi:13414
  19992. #, no-wrap
  19993. msgid "cve"
  19994. msgstr ""
  19995. #. type: cindex
  19996. #: guix-git/doc/guix.texi:13415 guix-git/doc/guix.texi:38629
  19997. #, no-wrap
  19998. msgid "security vulnerabilities"
  19999. msgstr ""
  20000. #. type: cindex
  20001. #: guix-git/doc/guix.texi:13416
  20002. #, no-wrap
  20003. msgid "CVE, Common Vulnerabilities and Exposures"
  20004. msgstr ""
  20005. #. type: table
  20006. #: guix-git/doc/guix.texi:13421
  20007. 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}."
  20008. msgstr ""
  20009. #. type: table
  20010. #: guix-git/doc/guix.texi:13423
  20011. msgid "To view information about a particular vulnerability, visit pages such as:"
  20012. msgstr ""
  20013. #. type: indicateurl{#1}
  20014. #: guix-git/doc/guix.texi:13427
  20015. msgid "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-YYYY-ABCD"
  20016. msgstr ""
  20017. #. type: indicateurl{#1}
  20018. #: guix-git/doc/guix.texi:13429
  20019. msgid "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-YYYY-ABCD"
  20020. msgstr ""
  20021. #. type: table
  20022. #: guix-git/doc/guix.texi:13434
  20023. msgid "where @code{CVE-YYYY-ABCD} is the CVE identifier---e.g., @code{CVE-2015-7554}."
  20024. msgstr ""
  20025. #. type: table
  20026. #: guix-git/doc/guix.texi:13439
  20027. 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:"
  20028. msgstr ""
  20029. #. type: lisp
  20030. #: guix-git/doc/guix.texi:13447
  20031. #, no-wrap
  20032. msgid ""
  20033. "(package\n"
  20034. " (name \"grub\")\n"
  20035. " ;; @dots{}\n"
  20036. " ;; CPE calls this package \"grub2\".\n"
  20037. " (properties '((cpe-name . \"grub2\")\n"
  20038. " (cpe-version . \"2.3\"))))\n"
  20039. msgstr ""
  20040. #. type: table
  20041. #: guix-git/doc/guix.texi:13454
  20042. 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:"
  20043. msgstr ""
  20044. #. type: lisp
  20045. #: guix-git/doc/guix.texi:13464
  20046. #, no-wrap
  20047. msgid ""
  20048. "(package\n"
  20049. " (name \"t1lib\")\n"
  20050. " ;; @dots{}\n"
  20051. " ;; These CVEs no longer apply and can be safely ignored.\n"
  20052. " (properties `((lint-hidden-cve . (\"CVE-2011-0433\"\n"
  20053. " \"CVE-2011-1553\"\n"
  20054. " \"CVE-2011-1554\"\n"
  20055. " \"CVE-2011-5244\")))))\n"
  20056. msgstr ""
  20057. #. type: item
  20058. #: guix-git/doc/guix.texi:13466
  20059. #, no-wrap
  20060. msgid "formatting"
  20061. msgstr ""
  20062. #. type: table
  20063. #: guix-git/doc/guix.texi:13469
  20064. msgid "Warn about obvious source code formatting issues: trailing white space, use of tabulations, etc."
  20065. msgstr ""
  20066. #. type: item
  20067. #: guix-git/doc/guix.texi:13470
  20068. #, no-wrap
  20069. msgid "input-labels"
  20070. msgstr ""
  20071. #. type: table
  20072. #: guix-git/doc/guix.texi:13476
  20073. msgid "Report old-style input labels that do not match the name of the corresponding package. This aims to help migrate from the ``old input style''. @xref{package Reference}, for more information on package inputs and input styles. @xref{Invoking guix style}, on how to migrate to the new style."
  20074. msgstr ""
  20075. #. type: example
  20076. #: guix-git/doc/guix.texi:13482
  20077. #, no-wrap
  20078. msgid "guix lint @var{options} @var{package}@dots{}\n"
  20079. msgstr ""
  20080. #. type: Plain text
  20081. #: guix-git/doc/guix.texi:13486
  20082. 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:"
  20083. msgstr ""
  20084. #. type: item
  20085. #: guix-git/doc/guix.texi:13488
  20086. #, no-wrap
  20087. msgid "--list-checkers"
  20088. msgstr ""
  20089. #. type: table
  20090. #: guix-git/doc/guix.texi:13492
  20091. msgid "List and describe all the available checkers that will be run on packages and exit."
  20092. msgstr ""
  20093. #. type: item
  20094. #: guix-git/doc/guix.texi:13493
  20095. #, no-wrap
  20096. msgid "--checkers"
  20097. msgstr ""
  20098. #. type: itemx
  20099. #: guix-git/doc/guix.texi:13494
  20100. #, no-wrap
  20101. msgid "-c"
  20102. msgstr ""
  20103. #. type: table
  20104. #: guix-git/doc/guix.texi:13497
  20105. msgid "Only enable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  20106. msgstr ""
  20107. #. type: item
  20108. #: guix-git/doc/guix.texi:13498
  20109. #, no-wrap
  20110. msgid "--exclude"
  20111. msgstr ""
  20112. #. type: table
  20113. #: guix-git/doc/guix.texi:13502
  20114. msgid "Only disable the checkers specified in a comma-separated list using the names returned by @option{--list-checkers}."
  20115. msgstr ""
  20116. #. type: item
  20117. #: guix-git/doc/guix.texi:13503
  20118. #, no-wrap
  20119. msgid "--no-network"
  20120. msgstr ""
  20121. #. type: table
  20122. #: guix-git/doc/guix.texi:13506
  20123. msgid "Only enable the checkers that do not depend on Internet access."
  20124. msgstr ""
  20125. #. type: section
  20126. #: guix-git/doc/guix.texi:13518
  20127. #, no-wrap
  20128. msgid "Invoking @command{guix size}"
  20129. msgstr ""
  20130. #. type: code{#1}
  20131. #: guix-git/doc/guix.texi:13520 guix-git/doc/guix.texi:36228
  20132. #, no-wrap
  20133. msgid "size"
  20134. msgstr ""
  20135. #. type: cindex
  20136. #: guix-git/doc/guix.texi:13521
  20137. #, no-wrap
  20138. msgid "package size"
  20139. msgstr ""
  20140. #. type: command{#1}
  20141. #: guix-git/doc/guix.texi:13523
  20142. #, no-wrap
  20143. msgid "guix size"
  20144. msgstr ""
  20145. #. type: Plain text
  20146. #: guix-git/doc/guix.texi:13530
  20147. 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."
  20148. msgstr ""
  20149. #. type: Plain text
  20150. #: guix-git/doc/guix.texi:13535
  20151. 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:"
  20152. msgstr ""
  20153. #. type: example
  20154. #: guix-git/doc/guix.texi:13548
  20155. #, no-wrap
  20156. msgid ""
  20157. "$ guix size coreutils\n"
  20158. "store item total self\n"
  20159. "/gnu/store/@dots{}-gcc-5.5.0-lib 60.4 30.1 38.1%\n"
  20160. "/gnu/store/@dots{}-glibc-2.27 30.3 28.8 36.6%\n"
  20161. "/gnu/store/@dots{}-coreutils-8.28 78.9 15.0 19.0%\n"
  20162. "/gnu/store/@dots{}-gmp-6.1.2 63.1 2.7 3.4%\n"
  20163. "/gnu/store/@dots{}-bash-static-4.4.12 1.5 1.5 1.9%\n"
  20164. "/gnu/store/@dots{}-acl-2.2.52 61.1 0.4 0.5%\n"
  20165. "/gnu/store/@dots{}-attr-2.4.47 60.6 0.2 0.3%\n"
  20166. "/gnu/store/@dots{}-libcap-2.25 60.5 0.2 0.2%\n"
  20167. "total: 78.9 MiB\n"
  20168. msgstr ""
  20169. #. type: Plain text
  20170. #: guix-git/doc/guix.texi:13554
  20171. 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:"
  20172. msgstr ""
  20173. #. type: example
  20174. #: guix-git/doc/guix.texi:13557
  20175. #, no-wrap
  20176. msgid "$ guix gc -R /gnu/store/@dots{}-coreutils-8.23\n"
  20177. msgstr ""
  20178. #. type: Plain text
  20179. #: guix-git/doc/guix.texi:13565
  20180. 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."
  20181. msgstr ""
  20182. #. type: Plain text
  20183. #: guix-git/doc/guix.texi:13571
  20184. 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.)"
  20185. msgstr ""
  20186. #. type: Plain text
  20187. #: guix-git/doc/guix.texi:13574
  20188. msgid "Since the command also accepts store file names, assessing the size of a build result is straightforward:"
  20189. msgstr ""
  20190. #. type: example
  20191. #: guix-git/doc/guix.texi:13577
  20192. #, no-wrap
  20193. msgid "guix size $(guix system build config.scm)\n"
  20194. msgstr ""
  20195. #. type: Plain text
  20196. #: guix-git/doc/guix.texi:13587
  20197. 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})."
  20198. msgstr ""
  20199. #. type: Plain text
  20200. #: guix-git/doc/guix.texi:13592
  20201. 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."
  20202. msgstr ""
  20203. #. type: Plain text
  20204. #: guix-git/doc/guix.texi:13594
  20205. msgid "You can also specify several package names:"
  20206. msgstr ""
  20207. #. type: example
  20208. #: guix-git/doc/guix.texi:13604
  20209. #, no-wrap
  20210. msgid ""
  20211. "$ guix size coreutils grep sed bash\n"
  20212. "store item total self\n"
  20213. "/gnu/store/@dots{}-coreutils-8.24 77.8 13.8 13.4%\n"
  20214. "/gnu/store/@dots{}-grep-2.22 73.1 0.8 0.8%\n"
  20215. "/gnu/store/@dots{}-bash-4.3.42 72.3 4.7 4.6%\n"
  20216. "/gnu/store/@dots{}-readline-6.3 67.6 1.2 1.2%\n"
  20217. "@dots{}\n"
  20218. "total: 102.3 MiB\n"
  20219. msgstr ""
  20220. #. type: Plain text
  20221. #: guix-git/doc/guix.texi:13610
  20222. 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."
  20223. msgstr ""
  20224. #. type: Plain text
  20225. #: guix-git/doc/guix.texi:13616
  20226. 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})."
  20227. msgstr ""
  20228. #. type: Plain text
  20229. #: guix-git/doc/guix.texi:13618
  20230. msgid "The available options are:"
  20231. msgstr ""
  20232. #. type: table
  20233. #: guix-git/doc/guix.texi:13624
  20234. msgid "Use substitute information from @var{urls}. @xref{client-substitute-urls, the same option for @code{guix build}}."
  20235. msgstr ""
  20236. #. type: item
  20237. #: guix-git/doc/guix.texi:13625
  20238. #, no-wrap
  20239. msgid "--sort=@var{key}"
  20240. msgstr ""
  20241. #. type: table
  20242. #: guix-git/doc/guix.texi:13627
  20243. msgid "Sort lines according to @var{key}, one of the following options:"
  20244. msgstr ""
  20245. #. type: item
  20246. #: guix-git/doc/guix.texi:13629
  20247. #, no-wrap
  20248. msgid "self"
  20249. msgstr ""
  20250. #. type: table
  20251. #: guix-git/doc/guix.texi:13631
  20252. msgid "the size of each item (the default);"
  20253. msgstr ""
  20254. #. type: table
  20255. #: guix-git/doc/guix.texi:13633
  20256. msgid "the total size of the item's closure."
  20257. msgstr ""
  20258. #. type: item
  20259. #: guix-git/doc/guix.texi:13635
  20260. #, no-wrap
  20261. msgid "--map-file=@var{file}"
  20262. msgstr ""
  20263. #. type: table
  20264. #: guix-git/doc/guix.texi:13637
  20265. msgid "Write a graphical map of disk usage in PNG format to @var{file}."
  20266. msgstr ""
  20267. #. type: table
  20268. #: guix-git/doc/guix.texi:13639
  20269. msgid "For the example above, the map looks like this:"
  20270. msgstr ""
  20271. #. type: table
  20272. #: guix-git/doc/guix.texi:13642
  20273. msgid "@image{images/coreutils-size-map,5in,, map of Coreutils disk usage produced by @command{guix size}}"
  20274. msgstr ""
  20275. #. type: table
  20276. #: guix-git/doc/guix.texi:13647
  20277. 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."
  20278. msgstr ""
  20279. #. type: table
  20280. #: guix-git/doc/guix.texi:13651
  20281. msgid "Consider packages for @var{system}---e.g., @code{x86_64-linux}."
  20282. msgstr ""
  20283. #. type: section
  20284. #: guix-git/doc/guix.texi:13662
  20285. #, no-wrap
  20286. msgid "Invoking @command{guix graph}"
  20287. msgstr ""
  20288. #. type: cindex
  20289. #: guix-git/doc/guix.texi:13664
  20290. #, no-wrap
  20291. msgid "DAG"
  20292. msgstr ""
  20293. #. type: command{#1}
  20294. #: guix-git/doc/guix.texi:13665
  20295. #, no-wrap
  20296. msgid "guix graph"
  20297. msgstr ""
  20298. #. type: Plain text
  20299. #: guix-git/doc/guix.texi:13680
  20300. 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:"
  20301. msgstr ""
  20302. #. type: example
  20303. #: guix-git/doc/guix.texi:13683
  20304. #, no-wrap
  20305. msgid "guix graph @var{options} @var{package}@dots{}\n"
  20306. msgstr ""
  20307. #. type: Plain text
  20308. #: guix-git/doc/guix.texi:13688
  20309. 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:"
  20310. msgstr ""
  20311. #. type: example
  20312. #: guix-git/doc/guix.texi:13691
  20313. #, no-wrap
  20314. msgid "guix graph coreutils | dot -Tpdf > dag.pdf\n"
  20315. msgstr ""
  20316. #. type: Plain text
  20317. #: guix-git/doc/guix.texi:13694
  20318. msgid "The output looks like this:"
  20319. msgstr ""
  20320. #. type: Plain text
  20321. #: guix-git/doc/guix.texi:13696
  20322. msgid "@image{images/coreutils-graph,2in,,Dependency graph of the GNU Coreutils}"
  20323. msgstr ""
  20324. #. type: Plain text
  20325. #: guix-git/doc/guix.texi:13698
  20326. msgid "Nice little graph, no?"
  20327. msgstr ""
  20328. #. type: Plain text
  20329. #: guix-git/doc/guix.texi:13701
  20330. msgid "You may find it more pleasant to navigate the graph interactively with @command{xdot} (from the @code{xdot} package):"
  20331. msgstr ""
  20332. #. type: example
  20333. #: guix-git/doc/guix.texi:13704
  20334. #, no-wrap
  20335. msgid "guix graph coreutils | xdot -\n"
  20336. msgstr ""
  20337. #. type: Plain text
  20338. #: guix-git/doc/guix.texi:13711
  20339. 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:"
  20340. msgstr ""
  20341. #. type: table
  20342. #: guix-git/doc/guix.texi:13717
  20343. 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."
  20344. msgstr ""
  20345. #. type: item
  20346. #: guix-git/doc/guix.texi:13718
  20347. #, no-wrap
  20348. msgid "reverse-package"
  20349. msgstr ""
  20350. #. type: table
  20351. #: guix-git/doc/guix.texi:13720
  20352. msgid "This shows the @emph{reverse} DAG of packages. For example:"
  20353. msgstr ""
  20354. #. type: example
  20355. #: guix-git/doc/guix.texi:13723
  20356. #, no-wrap
  20357. msgid "guix graph --type=reverse-package ocaml\n"
  20358. msgstr ""
  20359. #. type: table
  20360. #: guix-git/doc/guix.texi:13728
  20361. 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)."
  20362. msgstr ""
  20363. #. type: table
  20364. #: guix-git/doc/guix.texi:13733
  20365. 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}})."
  20366. msgstr ""
  20367. #. type: item
  20368. #: guix-git/doc/guix.texi:13734
  20369. #, no-wrap
  20370. msgid "bag-emerged"
  20371. msgstr ""
  20372. #. type: table
  20373. #: guix-git/doc/guix.texi:13736
  20374. msgid "This is the package DAG, @emph{including} implicit inputs."
  20375. msgstr ""
  20376. #. type: table
  20377. #: guix-git/doc/guix.texi:13738
  20378. msgid "For instance, the following command:"
  20379. msgstr ""
  20380. #. type: example
  20381. #: guix-git/doc/guix.texi:13741
  20382. #, no-wrap
  20383. msgid "guix graph --type=bag-emerged coreutils\n"
  20384. msgstr ""
  20385. #. type: table
  20386. #: guix-git/doc/guix.texi:13744
  20387. msgid "...@: yields this bigger graph:"
  20388. msgstr ""
  20389. #. type: table
  20390. #: guix-git/doc/guix.texi:13746
  20391. msgid "@image{images/coreutils-bag-graph,,5in,Detailed dependency graph of the GNU Coreutils}"
  20392. msgstr ""
  20393. #. type: table
  20394. #: guix-git/doc/guix.texi:13749
  20395. 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}})."
  20396. msgstr ""
  20397. #. type: table
  20398. #: guix-git/doc/guix.texi:13753
  20399. msgid "Now, note that the dependencies of these implicit inputs---that is, the @dfn{bootstrap dependencies} (@pxref{Bootstrapping})---are not shown here, for conciseness."
  20400. msgstr ""
  20401. #. type: item
  20402. #: guix-git/doc/guix.texi:13754
  20403. #, no-wrap
  20404. msgid "bag"
  20405. msgstr ""
  20406. #. type: table
  20407. #: guix-git/doc/guix.texi:13757
  20408. msgid "Similar to @code{bag-emerged}, but this time including all the bootstrap dependencies."
  20409. msgstr ""
  20410. #. type: item
  20411. #: guix-git/doc/guix.texi:13758
  20412. #, no-wrap
  20413. msgid "bag-with-origins"
  20414. msgstr ""
  20415. #. type: table
  20416. #: guix-git/doc/guix.texi:13760
  20417. msgid "Similar to @code{bag}, but also showing origins and their dependencies."
  20418. msgstr ""
  20419. #. type: item
  20420. #: guix-git/doc/guix.texi:13761
  20421. #, no-wrap
  20422. msgid "reverse-bag"
  20423. msgstr ""
  20424. #. type: table
  20425. #: guix-git/doc/guix.texi:13764
  20426. msgid "This shows the @emph{reverse} DAG of packages. Unlike @code{reverse-package}, it also takes implicit dependencies into account. For example:"
  20427. msgstr ""
  20428. #. type: example
  20429. #: guix-git/doc/guix.texi:13767
  20430. #, no-wrap
  20431. msgid "guix graph -t reverse-bag dune\n"
  20432. msgstr ""
  20433. #. type: table
  20434. #: guix-git/doc/guix.texi:13774
  20435. 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."
  20436. msgstr ""
  20437. #. type: table
  20438. #: guix-git/doc/guix.texi:13780
  20439. 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."
  20440. msgstr ""
  20441. #. type: table
  20442. #: guix-git/doc/guix.texi:13783
  20443. msgid "For this type of graph, it is also possible to pass a @file{.drv} file name instead of a package name, as in:"
  20444. msgstr ""
  20445. #. type: example
  20446. #: guix-git/doc/guix.texi:13786
  20447. #, no-wrap
  20448. msgid "guix graph -t derivation $(guix system build -d my-config.scm)\n"
  20449. msgstr ""
  20450. #. type: item
  20451. #: guix-git/doc/guix.texi:13788
  20452. #, no-wrap
  20453. msgid "module"
  20454. msgstr "模块"
  20455. #. type: table
  20456. #: guix-git/doc/guix.texi:13792
  20457. 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:"
  20458. msgstr ""
  20459. #. type: example
  20460. #: guix-git/doc/guix.texi:13795
  20461. #, no-wrap
  20462. msgid "guix graph -t module guile | xdot -\n"
  20463. msgstr ""
  20464. #. type: Plain text
  20465. #: guix-git/doc/guix.texi:13800
  20466. msgid "All the types above correspond to @emph{build-time dependencies}. The following graph type represents the @emph{run-time dependencies}:"
  20467. msgstr ""
  20468. #. type: table
  20469. #: guix-git/doc/guix.texi:13805
  20470. msgid "This is the graph of @dfn{references} of a package output, as returned by @command{guix gc --references} (@pxref{Invoking guix gc})."
  20471. msgstr ""
  20472. #. type: table
  20473. #: guix-git/doc/guix.texi:13808
  20474. msgid "If the given package output is not available in the store, @command{guix graph} attempts to obtain dependency information from substitutes."
  20475. msgstr ""
  20476. #. type: table
  20477. #: guix-git/doc/guix.texi:13812
  20478. 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!):"
  20479. msgstr ""
  20480. #. type: example
  20481. #: guix-git/doc/guix.texi:13815
  20482. #, no-wrap
  20483. msgid "guix graph -t references $(readlink -f ~/.guix-profile)\n"
  20484. msgstr ""
  20485. #. type: item
  20486. #: guix-git/doc/guix.texi:13817
  20487. #, no-wrap
  20488. msgid "referrers"
  20489. msgstr ""
  20490. #. type: table
  20491. #: guix-git/doc/guix.texi:13820
  20492. msgid "This is the graph of the @dfn{referrers} of a store item, as returned by @command{guix gc --referrers} (@pxref{Invoking guix gc})."
  20493. msgstr ""
  20494. #. type: table
  20495. #: guix-git/doc/guix.texi:13826
  20496. 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."
  20497. msgstr ""
  20498. #. type: table
  20499. #: guix-git/doc/guix.texi:13829
  20500. msgid "It can help determine what is preventing a store item from being garbage collected."
  20501. msgstr ""
  20502. #. type: cindex
  20503. #: guix-git/doc/guix.texi:13832
  20504. #, fuzzy, no-wrap
  20505. msgid "shortest path, between packages"
  20506. msgstr "超过1200个受影响的软件包"
  20507. #. type: Plain text
  20508. #: guix-git/doc/guix.texi:13839
  20509. 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.):"
  20510. msgstr ""
  20511. #. type: example
  20512. #: guix-git/doc/guix.texi:13853
  20513. #, no-wrap
  20514. msgid ""
  20515. "$ guix graph --path emacs libunistring\n"
  20516. "emacs@@26.3\n"
  20517. "mailutils@@3.9\n"
  20518. "libunistring@@0.9.10\n"
  20519. "$ guix graph --path -t derivation emacs libunistring\n"
  20520. "/gnu/store/@dots{}-emacs-26.3.drv\n"
  20521. "/gnu/store/@dots{}-mailutils-3.9.drv\n"
  20522. "/gnu/store/@dots{}-libunistring-0.9.10.drv\n"
  20523. "$ guix graph --path -t references emacs libunistring\n"
  20524. "/gnu/store/@dots{}-emacs-26.3\n"
  20525. "/gnu/store/@dots{}-libidn2-2.2.0\n"
  20526. "/gnu/store/@dots{}-libunistring-0.9.10\n"
  20527. msgstr ""
  20528. #. type: Plain text
  20529. #: guix-git/doc/guix.texi:13861
  20530. msgid "Sometimes you still want to visualize the graph but would like to trim it so it can actually be displayed. One way to do it is via the @option{--max-depth} (or @option{-M}) option, which lets you specify the maximum depth of the graph. In the example below, we visualize only @code{libreoffice} and the nodes whose distance to @code{libreoffice} is at most 2:"
  20531. msgstr ""
  20532. #. type: example
  20533. #: guix-git/doc/guix.texi:13864
  20534. #, no-wrap
  20535. msgid "guix graph -M 2 libreoffice | xdot -f fdp -\n"
  20536. msgstr ""
  20537. #. type: Plain text
  20538. #: guix-git/doc/guix.texi:13868
  20539. msgid "Mind you, that's still a big ball of spaghetti, but at least @command{dot} can render it quickly and it can be browsed somewhat."
  20540. msgstr ""
  20541. #. type: Plain text
  20542. #: guix-git/doc/guix.texi:13870
  20543. msgid "The available options are the following:"
  20544. msgstr ""
  20545. #. type: table
  20546. #: guix-git/doc/guix.texi:13876
  20547. msgid "Produce a graph output of @var{type}, where @var{type} must be one of the values listed above."
  20548. msgstr ""
  20549. #. type: item
  20550. #: guix-git/doc/guix.texi:13877
  20551. #, no-wrap
  20552. msgid "--list-types"
  20553. msgstr ""
  20554. #. type: table
  20555. #: guix-git/doc/guix.texi:13879
  20556. msgid "List the supported graph types."
  20557. msgstr ""
  20558. #. type: item
  20559. #: guix-git/doc/guix.texi:13880
  20560. #, no-wrap
  20561. msgid "--backend=@var{backend}"
  20562. msgstr ""
  20563. #. type: itemx
  20564. #: guix-git/doc/guix.texi:13881
  20565. #, no-wrap
  20566. msgid "-b @var{backend}"
  20567. msgstr ""
  20568. #. type: table
  20569. #: guix-git/doc/guix.texi:13883
  20570. msgid "Produce a graph using the selected @var{backend}."
  20571. msgstr ""
  20572. #. type: item
  20573. #: guix-git/doc/guix.texi:13884
  20574. #, no-wrap
  20575. msgid "--list-backends"
  20576. msgstr ""
  20577. #. type: table
  20578. #: guix-git/doc/guix.texi:13886
  20579. msgid "List the supported graph backends."
  20580. msgstr ""
  20581. #. type: table
  20582. #: guix-git/doc/guix.texi:13888
  20583. msgid "Currently, the available backends are Graphviz and d3.js."
  20584. msgstr ""
  20585. #. type: item
  20586. #: guix-git/doc/guix.texi:13889
  20587. #, no-wrap
  20588. msgid "--path"
  20589. msgstr ""
  20590. #. type: table
  20591. #: guix-git/doc/guix.texi:13894
  20592. 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}:"
  20593. msgstr ""
  20594. #. type: example
  20595. #: guix-git/doc/guix.texi:13901
  20596. #, no-wrap
  20597. msgid ""
  20598. "$ guix graph --path -t references libreoffice llvm\n"
  20599. "/gnu/store/@dots{}-libreoffice-6.4.2.2\n"
  20600. "/gnu/store/@dots{}-libepoxy-1.5.4\n"
  20601. "/gnu/store/@dots{}-mesa-19.3.4\n"
  20602. "/gnu/store/@dots{}-llvm-9.0.1\n"
  20603. msgstr ""
  20604. #. type: example
  20605. #: guix-git/doc/guix.texi:13911
  20606. #, no-wrap
  20607. msgid "guix graph -e '(@@@@ (gnu packages commencement) gnu-make-final)'\n"
  20608. msgstr ""
  20609. #. type: table
  20610. #: guix-git/doc/guix.texi:13916
  20611. msgid "Display the graph for @var{system}---e.g., @code{i686-linux}."
  20612. msgstr ""
  20613. #. type: table
  20614. #: guix-git/doc/guix.texi:13919
  20615. msgid "The package dependency graph is largely architecture-independent, but there are some architecture-dependent bits that this option allows you to visualize."
  20616. msgstr ""
  20617. #. type: Plain text
  20618. #: guix-git/doc/guix.texi:13935
  20619. 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:"
  20620. msgstr ""
  20621. #. type: example
  20622. #: guix-git/doc/guix.texi:13938
  20623. #, no-wrap
  20624. msgid "guix graph git --with-input=openssl=libressl\n"
  20625. msgstr ""
  20626. #. type: Plain text
  20627. #: guix-git/doc/guix.texi:13941
  20628. msgid "So many possibilities, so much fun!"
  20629. msgstr ""
  20630. #. type: section
  20631. #: guix-git/doc/guix.texi:13943
  20632. #, no-wrap
  20633. msgid "Invoking @command{guix publish}"
  20634. msgstr ""
  20635. #. type: command{#1}
  20636. #: guix-git/doc/guix.texi:13945
  20637. #, no-wrap
  20638. msgid "guix publish"
  20639. msgstr ""
  20640. #. type: Plain text
  20641. #: guix-git/doc/guix.texi:13949
  20642. 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})."
  20643. msgstr ""
  20644. #. type: Plain text
  20645. #: guix-git/doc/guix.texi:13955
  20646. msgid "When @command{guix publish} runs, it spawns an HTTP server which allows anyone with network access to obtain substitutes from it. This means that any machine running Guix can also act as if it were a build farm, since the HTTP interface is compatible with Cuirass, the software behind the @code{@value{SUBSTITUTE-SERVER-1}} build farm."
  20647. msgstr ""
  20648. #. type: Plain text
  20649. #: guix-git/doc/guix.texi:13961
  20650. 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."
  20651. msgstr ""
  20652. #. type: Plain text
  20653. #: guix-git/doc/guix.texi:13965
  20654. msgid "The signing key pair must be generated before @command{guix publish} is launched, using @command{guix archive --generate-key} (@pxref{Invoking guix archive})."
  20655. msgstr ""
  20656. #. type: Plain text
  20657. #: guix-git/doc/guix.texi:13970
  20658. 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})."
  20659. msgstr ""
  20660. #. type: example
  20661. #: guix-git/doc/guix.texi:13975
  20662. #, no-wrap
  20663. msgid "guix publish @var{options}@dots{}\n"
  20664. msgstr ""
  20665. #. type: Plain text
  20666. #: guix-git/doc/guix.texi:13979
  20667. msgid "Running @command{guix publish} without any additional arguments will spawn an HTTP server on port 8080:"
  20668. msgstr ""
  20669. #. type: example
  20670. #: guix-git/doc/guix.texi:13982
  20671. #, no-wrap
  20672. msgid "guix publish\n"
  20673. msgstr ""
  20674. #. type: Plain text
  20675. #: guix-git/doc/guix.texi:13986
  20676. msgid "Once a publishing server has been authorized, the daemon may download substitutes from it. @xref{Getting Substitutes from Other Servers}."
  20677. msgstr ""
  20678. #. type: Plain text
  20679. #: guix-git/doc/guix.texi:13994
  20680. 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})."
  20681. msgstr ""
  20682. #. type: Plain text
  20683. #: guix-git/doc/guix.texi:14001
  20684. 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}):"
  20685. msgstr ""
  20686. #. type: example
  20687. #: guix-git/doc/guix.texi:14004
  20688. #, no-wrap
  20689. msgid "http://example.org/file/hello-2.10.tar.gz/sha256/0ssi1@dots{}ndq1i\n"
  20690. msgstr ""
  20691. #. type: Plain text
  20692. #: guix-git/doc/guix.texi:14008
  20693. msgid "Obviously, these URLs only work for files that are in the store; in other cases, they return 404 (``Not Found'')."
  20694. msgstr ""
  20695. #. type: cindex
  20696. #: guix-git/doc/guix.texi:14009
  20697. #, no-wrap
  20698. msgid "build logs, publication"
  20699. msgstr ""
  20700. #. type: Plain text
  20701. #: guix-git/doc/guix.texi:14011
  20702. msgid "Build logs are available from @code{/log} URLs like:"
  20703. msgstr ""
  20704. #. type: example
  20705. #: guix-git/doc/guix.texi:14014
  20706. #, no-wrap
  20707. msgid "http://example.org/log/gwspk@dots{}-guile-2.2.3\n"
  20708. msgstr ""
  20709. #. type: Plain text
  20710. #: guix-git/doc/guix.texi:14024
  20711. 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."
  20712. msgstr ""
  20713. #. type: item
  20714. #: guix-git/doc/guix.texi:14028
  20715. #, no-wrap
  20716. msgid "--port=@var{port}"
  20717. msgstr ""
  20718. #. type: itemx
  20719. #: guix-git/doc/guix.texi:14029
  20720. #, no-wrap
  20721. msgid "-p @var{port}"
  20722. msgstr ""
  20723. #. type: table
  20724. #: guix-git/doc/guix.texi:14031
  20725. msgid "Listen for HTTP requests on @var{port}."
  20726. msgstr ""
  20727. #. type: item
  20728. #: guix-git/doc/guix.texi:14032
  20729. #, no-wrap
  20730. msgid "--listen=@var{host}"
  20731. msgstr ""
  20732. #. type: table
  20733. #: guix-git/doc/guix.texi:14035
  20734. msgid "Listen on the network interface for @var{host}. The default is to accept connections from any interface."
  20735. msgstr ""
  20736. #. type: table
  20737. #: guix-git/doc/guix.texi:14040
  20738. 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."
  20739. msgstr ""
  20740. #. type: item
  20741. #: guix-git/doc/guix.texi:14041
  20742. #, fuzzy, no-wrap
  20743. msgid "--compression[=@var{method}[:@var{level}]]"
  20744. msgstr "--log-compression=@var{type}"
  20745. #. type: itemx
  20746. #: guix-git/doc/guix.texi:14042
  20747. #, no-wrap
  20748. msgid "-C [@var{method}[:@var{level}]]"
  20749. msgstr ""
  20750. #. type: table
  20751. #: guix-git/doc/guix.texi:14046
  20752. 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."
  20753. msgstr ""
  20754. #. type: table
  20755. #: guix-git/doc/guix.texi:14050
  20756. 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."
  20757. msgstr ""
  20758. #. type: table
  20759. #: guix-git/doc/guix.texi:14057
  20760. 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."
  20761. msgstr ""
  20762. #. type: table
  20763. #: guix-git/doc/guix.texi:14061
  20764. 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}."
  20765. msgstr ""
  20766. #. type: table
  20767. #: guix-git/doc/guix.texi:14070
  20768. 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."
  20769. msgstr ""
  20770. #. type: table
  20771. #: guix-git/doc/guix.texi:14075
  20772. 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."
  20773. msgstr ""
  20774. #. type: item
  20775. #: guix-git/doc/guix.texi:14076
  20776. #, no-wrap
  20777. msgid "--cache=@var{directory}"
  20778. msgstr ""
  20779. #. type: itemx
  20780. #: guix-git/doc/guix.texi:14077
  20781. #, no-wrap
  20782. msgid "-c @var{directory}"
  20783. msgstr ""
  20784. #. type: table
  20785. #: guix-git/doc/guix.texi:14080
  20786. msgid "Cache archives and meta-data (@code{.narinfo} URLs) to @var{directory} and only serve archives that are in cache."
  20787. msgstr ""
  20788. #. type: table
  20789. #: guix-git/doc/guix.texi:14088
  20790. 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."
  20791. msgstr ""
  20792. #. type: table
  20793. #: guix-git/doc/guix.texi:14096
  20794. 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."
  20795. msgstr ""
  20796. #. type: table
  20797. #: guix-git/doc/guix.texi:14103
  20798. 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."
  20799. msgstr ""
  20800. #. type: table
  20801. #: guix-git/doc/guix.texi:14107
  20802. 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."
  20803. msgstr ""
  20804. #. type: table
  20805. #: guix-git/doc/guix.texi:14110
  20806. msgid "When @option{--ttl} is used, cached entries are automatically deleted when they have expired."
  20807. msgstr ""
  20808. #. type: item
  20809. #: guix-git/doc/guix.texi:14111
  20810. #, no-wrap
  20811. msgid "--workers=@var{N}"
  20812. msgstr ""
  20813. #. type: table
  20814. #: guix-git/doc/guix.texi:14114
  20815. msgid "When @option{--cache} is used, request the allocation of @var{N} worker threads to ``bake'' archives."
  20816. msgstr ""
  20817. #. type: item
  20818. #: guix-git/doc/guix.texi:14115
  20819. #, no-wrap
  20820. msgid "--ttl=@var{ttl}"
  20821. msgstr ""
  20822. #. type: table
  20823. #: guix-git/doc/guix.texi:14119 guix-git/doc/guix.texi:33828
  20824. 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."
  20825. msgstr ""
  20826. #. type: table
  20827. #: guix-git/doc/guix.texi:14124
  20828. 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}."
  20829. msgstr ""
  20830. #. type: table
  20831. #: guix-git/doc/guix.texi:14128
  20832. 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."
  20833. msgstr ""
  20834. #. type: item
  20835. #: guix-git/doc/guix.texi:14129
  20836. #, no-wrap
  20837. msgid "--negative-ttl=@var{ttl}"
  20838. msgstr ""
  20839. #. type: table
  20840. #: guix-git/doc/guix.texi:14134 guix-git/doc/guix.texi:33837
  20841. msgid "Similarly produce @code{Cache-Control} HTTP headers to advertise the time-to-live (TTL) of @emph{negative} lookups---missing store items, for which the HTTP 404 code is returned. By default, no negative TTL is advertised."
  20842. msgstr ""
  20843. #. type: table
  20844. #: guix-git/doc/guix.texi:14138
  20845. msgid "This parameter can help adjust server load and substitute latency by instructing cooperating clients to be more or less patient when a store item is missing."
  20846. msgstr ""
  20847. #. type: item
  20848. #: guix-git/doc/guix.texi:14139
  20849. #, no-wrap
  20850. msgid "--cache-bypass-threshold=@var{size}"
  20851. msgstr ""
  20852. #. type: table
  20853. #: guix-git/doc/guix.texi:14144
  20854. 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}."
  20855. msgstr ""
  20856. #. type: table
  20857. #: guix-git/doc/guix.texi:14149
  20858. 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."
  20859. msgstr ""
  20860. #. type: table
  20861. #: guix-git/doc/guix.texi:14153
  20862. 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."
  20863. msgstr ""
  20864. #. type: item
  20865. #: guix-git/doc/guix.texi:14154
  20866. #, no-wrap
  20867. msgid "--nar-path=@var{path}"
  20868. msgstr ""
  20869. #. type: table
  20870. #: guix-git/doc/guix.texi:14157
  20871. msgid "Use @var{path} as the prefix for the URLs of ``nar'' files (@pxref{Invoking guix archive, normalized archives})."
  20872. msgstr ""
  20873. #. type: table
  20874. #: guix-git/doc/guix.texi:14161
  20875. 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}."
  20876. msgstr ""
  20877. #. type: item
  20878. #: guix-git/doc/guix.texi:14162
  20879. #, no-wrap
  20880. msgid "--public-key=@var{file}"
  20881. msgstr ""
  20882. #. type: itemx
  20883. #: guix-git/doc/guix.texi:14163
  20884. #, no-wrap
  20885. msgid "--private-key=@var{file}"
  20886. msgstr ""
  20887. #. type: table
  20888. #: guix-git/doc/guix.texi:14166 guix-git/doc/guix.texi:29574
  20889. #: guix-git/doc/guix.texi:29611
  20890. msgid "Use the specific @var{file}s as the public/private key pair used to sign the store items being published."
  20891. msgstr ""
  20892. #. type: table
  20893. #: guix-git/doc/guix.texi:14173
  20894. 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."
  20895. msgstr ""
  20896. #. type: item
  20897. #: guix-git/doc/guix.texi:14174
  20898. #, no-wrap
  20899. msgid "--repl[=@var{port}]"
  20900. msgstr ""
  20901. #. type: itemx
  20902. #: guix-git/doc/guix.texi:14175
  20903. #, no-wrap
  20904. msgid "-r [@var{port}]"
  20905. msgstr ""
  20906. #. type: table
  20907. #: guix-git/doc/guix.texi:14179
  20908. 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."
  20909. msgstr ""
  20910. #. type: Plain text
  20911. #: guix-git/doc/guix.texi:14185
  20912. 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}})."
  20913. msgstr ""
  20914. #. type: Plain text
  20915. #: guix-git/doc/guix.texi:14188
  20916. msgid "If you are instead running Guix on a ``foreign distro'', follow these instructions:"
  20917. msgstr ""
  20918. #. type: itemize
  20919. #: guix-git/doc/guix.texi:14192
  20920. msgid "If your host distro uses the systemd init system:"
  20921. msgstr ""
  20922. #. type: example
  20923. #: guix-git/doc/guix.texi:14197
  20924. #, no-wrap
  20925. msgid ""
  20926. "# ln -s ~root/.guix-profile/lib/systemd/system/guix-publish.service \\\n"
  20927. " /etc/systemd/system/\n"
  20928. "# systemctl start guix-publish && systemctl enable guix-publish\n"
  20929. msgstr ""
  20930. #. type: example
  20931. #: guix-git/doc/guix.texi:14205
  20932. #, no-wrap
  20933. msgid ""
  20934. "# ln -s ~root/.guix-profile/lib/upstart/system/guix-publish.conf /etc/init/\n"
  20935. "# start guix-publish\n"
  20936. msgstr ""
  20937. #. type: itemize
  20938. #: guix-git/doc/guix.texi:14209
  20939. msgid "Otherwise, proceed similarly with your distro's init system."
  20940. msgstr ""
  20941. #. type: section
  20942. #: guix-git/doc/guix.texi:14212
  20943. #, no-wrap
  20944. msgid "Invoking @command{guix challenge}"
  20945. msgstr ""
  20946. #. type: cindex
  20947. #: guix-git/doc/guix.texi:14215
  20948. #, no-wrap
  20949. msgid "verifiable builds"
  20950. msgstr ""
  20951. #. type: command{#1}
  20952. #: guix-git/doc/guix.texi:14216
  20953. #, no-wrap
  20954. msgid "guix challenge"
  20955. msgstr ""
  20956. #. type: cindex
  20957. #: guix-git/doc/guix.texi:14217
  20958. #, no-wrap
  20959. msgid "challenge"
  20960. msgstr ""
  20961. #. type: Plain text
  20962. #: guix-git/doc/guix.texi:14222
  20963. 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."
  20964. msgstr ""
  20965. #. type: Plain text
  20966. #: guix-git/doc/guix.texi:14230
  20967. 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."
  20968. msgstr ""
  20969. #. type: Plain text
  20970. #: guix-git/doc/guix.texi:14239
  20971. 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."
  20972. msgstr ""
  20973. #. type: Plain text
  20974. #: guix-git/doc/guix.texi:14241
  20975. msgid "The command output looks like this:"
  20976. msgstr ""
  20977. #. type: smallexample
  20978. #: guix-git/doc/guix.texi:14253
  20979. #, no-wrap
  20980. msgid ""
  20981. "$ guix challenge --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  20982. "updating list of substitutes from 'https://@value{SUBSTITUTE-SERVER-1}'... 100.0%\n"
  20983. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  20984. "/gnu/store/@dots{}-openssl-1.0.2d contents differ:\n"
  20985. " local hash: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  20986. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-openssl-1.0.2d: 0725l22r5jnzazaacncwsvp9kgf42266ayyp814v7djxs7nk963q\n"
  20987. " https://guix.example.org/nar/@dots{}-openssl-1.0.2d: 1zy4fmaaqcnjrzzajkdn3f5gmjk754b43qkq47llbyak9z0qjyim\n"
  20988. " differing files:\n"
  20989. " /lib/libcrypto.so.1.1\n"
  20990. " /lib/libssl.so.1.1\n"
  20991. "\n"
  20992. msgstr ""
  20993. #. type: smallexample
  20994. #: guix-git/doc/guix.texi:14260
  20995. #, no-wrap
  20996. msgid ""
  20997. "/gnu/store/@dots{}-git-2.5.0 contents differ:\n"
  20998. " local hash: 00p3bmryhjxrhpn2gxs2fy0a15lnip05l97205pgbk5ra395hyha\n"
  20999. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-git-2.5.0: 069nb85bv4d4a6slrwjdy8v1cn4cwspm3kdbmyb81d6zckj3nq9f\n"
  21000. " https://guix.example.org/nar/@dots{}-git-2.5.0: 0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73\n"
  21001. " differing file:\n"
  21002. " /libexec/git-core/git-fsck\n"
  21003. "\n"
  21004. msgstr ""
  21005. #. type: smallexample
  21006. #: guix-git/doc/guix.texi:14267
  21007. #, no-wrap
  21008. msgid ""
  21009. "/gnu/store/@dots{}-pius-2.1.1 contents differ:\n"
  21010. " local hash: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  21011. " https://@value{SUBSTITUTE-SERVER-1}/nar/@dots{}-pius-2.1.1: 0k4v3m9z1zp8xzzizb7d8kjj72f9172xv078sq4wl73vnq9ig3ax\n"
  21012. " https://guix.example.org/nar/@dots{}-pius-2.1.1: 1cy25x1a4fzq5rk0pmvc8xhwyffnqz95h2bpvqsz2mpvlbccy0gs\n"
  21013. " differing file:\n"
  21014. " /share/man/man1/pius.1.gz\n"
  21015. "\n"
  21016. msgstr ""
  21017. #. type: smallexample
  21018. #: guix-git/doc/guix.texi:14269
  21019. #, no-wrap
  21020. msgid ""
  21021. "@dots{}\n"
  21022. "\n"
  21023. msgstr ""
  21024. #. type: smallexample
  21025. #: guix-git/doc/guix.texi:14274
  21026. #, no-wrap
  21027. msgid ""
  21028. "6,406 store items were analyzed:\n"
  21029. " - 4,749 (74.1%) were identical\n"
  21030. " - 525 (8.2%) differed\n"
  21031. " - 1,132 (17.7%) were inconclusive\n"
  21032. msgstr ""
  21033. #. type: Plain text
  21034. #: guix-git/doc/guix.texi:14282
  21035. 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."
  21036. msgstr ""
  21037. #. type: cindex
  21038. #: guix-git/doc/guix.texi:14283
  21039. #, no-wrap
  21040. msgid "non-determinism, in package builds"
  21041. msgstr ""
  21042. #. type: Plain text
  21043. #: guix-git/doc/guix.texi:14294
  21044. msgid "As an example, @code{guix.example.org} always gets a different answer. Conversely, @code{@value{SUBSTITUTE-SERVER-1}} agrees with local builds, except in the case of Git. This might indicate that the build process of Git is non-deterministic, meaning that its output varies as a function of various things that Guix does not fully control, in spite of building packages in isolated environments (@pxref{Features}). Most common sources of non-determinism include the addition of timestamps in build results, the inclusion of random numbers, and directory listings sorted by inode number. See @uref{https://reproducible-builds.org/docs/}, for more information."
  21045. msgstr ""
  21046. #. type: Plain text
  21047. #: guix-git/doc/guix.texi:14297
  21048. msgid "To find out what is wrong with this Git binary, the easiest approach is to run:"
  21049. msgstr ""
  21050. #. type: example
  21051. #: guix-git/doc/guix.texi:14302
  21052. #, no-wrap
  21053. msgid ""
  21054. "guix challenge git \\\n"
  21055. " --diff=diffoscope \\\n"
  21056. " --substitute-urls=\"https://@value{SUBSTITUTE-SERVER-1} https://guix.example.org\"\n"
  21057. msgstr ""
  21058. #. type: Plain text
  21059. #: guix-git/doc/guix.texi:14306
  21060. msgid "This automatically invokes @command{diffoscope}, which displays detailed information about files that differ."
  21061. msgstr ""
  21062. #. type: Plain text
  21063. #: guix-git/doc/guix.texi:14309
  21064. msgid "Alternatively, we can do something along these lines (@pxref{Invoking guix archive}):"
  21065. msgstr ""
  21066. #. type: example
  21067. #: guix-git/doc/guix.texi:14314
  21068. #, no-wrap
  21069. msgid ""
  21070. "$ wget -q -O - https://@value{SUBSTITUTE-SERVER-1}/nar/lzip/@dots{}-git-2.5.0 \\\n"
  21071. " | lzip -d | guix archive -x /tmp/git\n"
  21072. "$ diff -ur --no-dereference /gnu/store/@dots{}-git.2.5.0 /tmp/git\n"
  21073. msgstr ""
  21074. #. type: Plain text
  21075. #: guix-git/doc/guix.texi:14323
  21076. msgid "This command shows the difference between the files resulting from the local build, and the files resulting from the build on @code{@value{SUBSTITUTE-SERVER-1}} (@pxref{Overview, Comparing and Merging Files,, diffutils, Comparing and Merging Files}). The @command{diff} command works great for text files. When binary files differ, a better option is @uref{https://diffoscope.org/, Diffoscope}, a tool that helps visualize differences for all kinds of files."
  21077. msgstr ""
  21078. #. type: Plain text
  21079. #: guix-git/doc/guix.texi:14331
  21080. 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."
  21081. msgstr ""
  21082. #. type: Plain text
  21083. #: guix-git/doc/guix.texi:14335
  21084. msgid "If you are writing packages for Guix, you are encouraged to check whether @code{@value{SUBSTITUTE-SERVER-1}} and other substitute servers obtain the same build result as you did with:"
  21085. msgstr ""
  21086. #. type: example
  21087. #: guix-git/doc/guix.texi:14338
  21088. #, no-wrap
  21089. msgid "$ guix challenge @var{package}\n"
  21090. msgstr ""
  21091. #. type: Plain text
  21092. #: guix-git/doc/guix.texi:14343
  21093. msgid "where @var{package} is a package specification such as @code{guile@@2.0} or @code{glibc:debug}."
  21094. msgstr ""
  21095. #. type: example
  21096. #: guix-git/doc/guix.texi:14348
  21097. #, no-wrap
  21098. msgid "guix challenge @var{options} [@var{packages}@dots{}]\n"
  21099. msgstr ""
  21100. #. type: Plain text
  21101. #: guix-git/doc/guix.texi:14355
  21102. 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)."
  21103. msgstr ""
  21104. #. type: Plain text
  21105. #: guix-git/doc/guix.texi:14357
  21106. msgid "The one option that matters is:"
  21107. msgstr ""
  21108. #. type: table
  21109. #: guix-git/doc/guix.texi:14363
  21110. msgid "Consider @var{urls} the whitespace-separated list of substitute source URLs to compare to."
  21111. msgstr ""
  21112. #. type: item
  21113. #: guix-git/doc/guix.texi:14364
  21114. #, fuzzy, no-wrap
  21115. msgid "--diff=@var{mode}"
  21116. msgstr "--rounds=@var{N}"
  21117. #. type: table
  21118. #: guix-git/doc/guix.texi:14366
  21119. msgid "Upon mismatches, show differences according to @var{mode}, one of:"
  21120. msgstr ""
  21121. #. type: item
  21122. #: guix-git/doc/guix.texi:14368
  21123. #, fuzzy, no-wrap
  21124. msgid "@code{simple} (the default)"
  21125. msgstr "@code{speed}(默认值:@code{1.0})"
  21126. #. type: table
  21127. #: guix-git/doc/guix.texi:14370
  21128. msgid "Show the list of files that differ."
  21129. msgstr ""
  21130. #. type: code{#1}
  21131. #: guix-git/doc/guix.texi:14371
  21132. #, no-wrap
  21133. msgid "diffoscope"
  21134. msgstr ""
  21135. #. type: var{#1}
  21136. #: guix-git/doc/guix.texi:14372
  21137. #, no-wrap
  21138. msgid "command"
  21139. msgstr ""
  21140. #. type: table
  21141. #: guix-git/doc/guix.texi:14375
  21142. msgid "Invoke @uref{https://diffoscope.org/, Diffoscope}, passing it two directories whose contents do not match."
  21143. msgstr ""
  21144. #. type: table
  21145. #: guix-git/doc/guix.texi:14378
  21146. msgid "When @var{command} is an absolute file name, run @var{command} instead of Diffoscope."
  21147. msgstr ""
  21148. #. type: table
  21149. #: guix-git/doc/guix.texi:14381
  21150. msgid "Do not show further details about the differences."
  21151. msgstr ""
  21152. #. type: table
  21153. #: guix-git/doc/guix.texi:14386
  21154. 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."
  21155. msgstr ""
  21156. #. type: item
  21157. #: guix-git/doc/guix.texi:14387
  21158. #, no-wrap
  21159. msgid "--verbose"
  21160. msgstr ""
  21161. #. type: itemx
  21162. #: guix-git/doc/guix.texi:14388
  21163. #, no-wrap
  21164. msgid "-v"
  21165. msgstr ""
  21166. #. type: table
  21167. #: guix-git/doc/guix.texi:14391
  21168. msgid "Show details about matches (identical contents) in addition to information about mismatches."
  21169. msgstr ""
  21170. #. type: section
  21171. #: guix-git/doc/guix.texi:14395
  21172. #, no-wrap
  21173. msgid "Invoking @command{guix copy}"
  21174. msgstr ""
  21175. #. type: cindex
  21176. #: guix-git/doc/guix.texi:14397
  21177. #, no-wrap
  21178. msgid "copy, of store items, over SSH"
  21179. msgstr ""
  21180. #. type: cindex
  21181. #: guix-git/doc/guix.texi:14398
  21182. #, no-wrap
  21183. msgid "SSH, copy of store items"
  21184. msgstr ""
  21185. #. type: cindex
  21186. #: guix-git/doc/guix.texi:14399
  21187. #, no-wrap
  21188. msgid "sharing store items across machines"
  21189. msgstr ""
  21190. #. type: cindex
  21191. #: guix-git/doc/guix.texi:14400
  21192. #, no-wrap
  21193. msgid "transferring store items across machines"
  21194. msgstr ""
  21195. #. type: Plain text
  21196. #: guix-git/doc/guix.texi:14407
  21197. 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}:"
  21198. msgstr ""
  21199. #. type: example
  21200. #: guix-git/doc/guix.texi:14411
  21201. #, no-wrap
  21202. msgid ""
  21203. "guix copy --to=@var{user}@@@var{host} \\\n"
  21204. " coreutils $(readlink -f ~/.guix-profile)\n"
  21205. msgstr ""
  21206. #. type: Plain text
  21207. #: guix-git/doc/guix.texi:14415
  21208. msgid "If some of the items to be copied are already present on @var{host}, they are not actually sent."
  21209. msgstr ""
  21210. #. type: Plain text
  21211. #: guix-git/doc/guix.texi:14418
  21212. msgid "The command below retrieves @code{libreoffice} and @code{gimp} from @var{host}, assuming they are available there:"
  21213. msgstr ""
  21214. #. type: example
  21215. #: guix-git/doc/guix.texi:14421
  21216. #, no-wrap
  21217. msgid "guix copy --from=@var{host} libreoffice gimp\n"
  21218. msgstr ""
  21219. #. type: Plain text
  21220. #: guix-git/doc/guix.texi:14426
  21221. 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."
  21222. msgstr ""
  21223. #. type: Plain text
  21224. #: guix-git/doc/guix.texi:14432
  21225. 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."
  21226. msgstr ""
  21227. #. type: example
  21228. #: guix-git/doc/guix.texi:14437
  21229. #, no-wrap
  21230. msgid "guix copy [--to=@var{spec}|--from=@var{spec}] @var{items}@dots{}\n"
  21231. msgstr ""
  21232. #. type: Plain text
  21233. #: guix-git/doc/guix.texi:14440
  21234. msgid "You must always specify one of the following options:"
  21235. msgstr ""
  21236. #. type: item
  21237. #: guix-git/doc/guix.texi:14442
  21238. #, no-wrap
  21239. msgid "--to=@var{spec}"
  21240. msgstr ""
  21241. #. type: itemx
  21242. #: guix-git/doc/guix.texi:14443
  21243. #, no-wrap
  21244. msgid "--from=@var{spec}"
  21245. msgstr ""
  21246. #. type: table
  21247. #: guix-git/doc/guix.texi:14447
  21248. 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}."
  21249. msgstr ""
  21250. #. type: Plain text
  21251. #: guix-git/doc/guix.texi:14451
  21252. 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}."
  21253. msgstr ""
  21254. #. type: Plain text
  21255. #: guix-git/doc/guix.texi:14455
  21256. 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})."
  21257. msgstr ""
  21258. #. type: section
  21259. #: guix-git/doc/guix.texi:14458
  21260. #, no-wrap
  21261. msgid "Invoking @command{guix container}"
  21262. msgstr ""
  21263. #. type: command{#1}
  21264. #: guix-git/doc/guix.texi:14460
  21265. #, no-wrap
  21266. msgid "guix container"
  21267. msgstr ""
  21268. #. type: quotation
  21269. #: guix-git/doc/guix.texi:14464
  21270. msgid "As of version @value{VERSION}, this tool is experimental. The interface is subject to radical change in the future."
  21271. msgstr ""
  21272. #. type: Plain text
  21273. #: guix-git/doc/guix.texi:14471
  21274. 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 shell} (@pxref{Invoking guix shell}) and @command{guix system container} (@pxref{Invoking guix system}) commands."
  21275. msgstr ""
  21276. #. type: example
  21277. #: guix-git/doc/guix.texi:14476
  21278. #, no-wrap
  21279. msgid "guix container @var{action} @var{options}@dots{}\n"
  21280. msgstr ""
  21281. #. type: Plain text
  21282. #: guix-git/doc/guix.texi:14480
  21283. msgid "@var{action} specifies the operation to perform with a container, and @var{options} specifies the context-specific arguments for the action."
  21284. msgstr ""
  21285. #. type: Plain text
  21286. #: guix-git/doc/guix.texi:14482
  21287. msgid "The following actions are available:"
  21288. msgstr ""
  21289. #. type: item
  21290. #: guix-git/doc/guix.texi:14484
  21291. #, no-wrap
  21292. msgid "exec"
  21293. msgstr ""
  21294. #. type: table
  21295. #: guix-git/doc/guix.texi:14486
  21296. msgid "Execute a command within the context of a running container."
  21297. msgstr ""
  21298. #. type: table
  21299. #: guix-git/doc/guix.texi:14488
  21300. msgid "The syntax is:"
  21301. msgstr ""
  21302. #. type: example
  21303. #: guix-git/doc/guix.texi:14491
  21304. #, no-wrap
  21305. msgid "guix container exec @var{pid} @var{program} @var{arguments}@dots{}\n"
  21306. msgstr ""
  21307. #. type: table
  21308. #: guix-git/doc/guix.texi:14497
  21309. 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}."
  21310. msgstr ""
  21311. #. type: table
  21312. #: guix-git/doc/guix.texi:14501
  21313. 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:"
  21314. msgstr ""
  21315. #. type: example
  21316. #: guix-git/doc/guix.texi:14504
  21317. #, no-wrap
  21318. msgid "guix container exec 9001 /run/current-system/profile/bin/bash --login\n"
  21319. msgstr ""
  21320. #. type: table
  21321. #: guix-git/doc/guix.texi:14508
  21322. 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."
  21323. msgstr ""
  21324. #. type: section
  21325. #: guix-git/doc/guix.texi:14512
  21326. #, no-wrap
  21327. msgid "Invoking @command{guix weather}"
  21328. msgstr ""
  21329. #. type: Plain text
  21330. #: guix-git/doc/guix.texi:14521
  21331. 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})."
  21332. msgstr ""
  21333. #. type: cindex
  21334. #: guix-git/doc/guix.texi:14522
  21335. #, no-wrap
  21336. msgid "statistics, for substitutes"
  21337. msgstr ""
  21338. #. type: cindex
  21339. #: guix-git/doc/guix.texi:14523
  21340. #, no-wrap
  21341. msgid "availability of substitutes"
  21342. msgstr ""
  21343. #. type: cindex
  21344. #: guix-git/doc/guix.texi:14524
  21345. #, no-wrap
  21346. msgid "substitute availability"
  21347. msgstr ""
  21348. #. type: cindex
  21349. #: guix-git/doc/guix.texi:14525
  21350. #, no-wrap
  21351. msgid "weather, substitute availability"
  21352. msgstr ""
  21353. #. type: Plain text
  21354. #: guix-git/doc/guix.texi:14527
  21355. msgid "Here's a sample run:"
  21356. msgstr ""
  21357. #. type: example
  21358. #: guix-git/doc/guix.texi:14539
  21359. #, no-wrap
  21360. msgid ""
  21361. "$ guix weather --substitute-urls=https://guix.example.org\n"
  21362. "computing 5,872 package derivations for x86_64-linux...\n"
  21363. "looking for 6,128 store items on https://guix.example.org..\n"
  21364. "updating list of substitutes from 'https://guix.example.org'... 100.0%\n"
  21365. "https://guix.example.org\n"
  21366. " 43.4% substitutes available (2,658 out of 6,128)\n"
  21367. " 7,032.5 MiB of nars (compressed)\n"
  21368. " 19,824.2 MiB on disk (uncompressed)\n"
  21369. " 0.030 seconds per request (182.9 seconds in total)\n"
  21370. " 33.5 requests per second\n"
  21371. "\n"
  21372. msgstr ""
  21373. #. type: example
  21374. #: guix-git/doc/guix.texi:14549
  21375. #, no-wrap
  21376. msgid ""
  21377. " 9.8% (342 out of 3,470) of the missing items are queued\n"
  21378. " 867 queued builds\n"
  21379. " x86_64-linux: 518 (59.7%)\n"
  21380. " i686-linux: 221 (25.5%)\n"
  21381. " aarch64-linux: 128 (14.8%)\n"
  21382. " build rate: 23.41 builds per hour\n"
  21383. " x86_64-linux: 11.16 builds per hour\n"
  21384. " i686-linux: 6.03 builds per hour\n"
  21385. " aarch64-linux: 6.41 builds per hour\n"
  21386. msgstr ""
  21387. #. type: cindex
  21388. #: guix-git/doc/guix.texi:14551
  21389. #, no-wrap
  21390. msgid "continuous integration, statistics"
  21391. msgstr ""
  21392. #. type: Plain text
  21393. #: guix-git/doc/guix.texi:14562
  21394. 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)."
  21395. msgstr ""
  21396. #. type: Plain text
  21397. #: guix-git/doc/guix.texi:14568
  21398. 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."
  21399. msgstr ""
  21400. #. type: example
  21401. #: guix-git/doc/guix.texi:14573
  21402. #, no-wrap
  21403. msgid "guix weather @var{options}@dots{} [@var{packages}@dots{}]\n"
  21404. msgstr ""
  21405. #. type: Plain text
  21406. #: guix-git/doc/guix.texi:14581
  21407. 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%."
  21408. msgstr ""
  21409. #. type: table
  21410. #: guix-git/doc/guix.texi:14589
  21411. 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."
  21412. msgstr ""
  21413. #. type: table
  21414. #: guix-git/doc/guix.texi:14595
  21415. 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."
  21416. msgstr ""
  21417. #. type: table
  21418. #: guix-git/doc/guix.texi:14601
  21419. 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})."
  21420. msgstr ""
  21421. #. type: table
  21422. #: guix-git/doc/guix.texi:14604
  21423. msgid "This option can be repeated several times, in which case the manifests are concatenated."
  21424. msgstr ""
  21425. #. type: item
  21426. #: guix-git/doc/guix.texi:14605
  21427. #, no-wrap
  21428. msgid "--coverage[=@var{count}]"
  21429. msgstr ""
  21430. #. type: itemx
  21431. #: guix-git/doc/guix.texi:14606
  21432. #, no-wrap
  21433. msgid "-c [@var{count}]"
  21434. msgstr ""
  21435. #. type: table
  21436. #: guix-git/doc/guix.texi:14612
  21437. 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:"
  21438. msgstr ""
  21439. #. type: example
  21440. #: guix-git/doc/guix.texi:14626
  21441. #, no-wrap
  21442. msgid ""
  21443. "$ guix weather --substitute-urls=@value{SUBSTITUTE-URLS} -c 10\n"
  21444. "computing 8,983 package derivations for x86_64-linux...\n"
  21445. "looking for 9,343 store items on @value{SUBSTITUTE-URLS}...\n"
  21446. "updating substitutes from '@value{SUBSTITUTE-URLS}'... 100.0%\n"
  21447. "@value{SUBSTITUTE-URLS}\n"
  21448. " 64.7% substitutes available (6,047 out of 9,343)\n"
  21449. "@dots{}\n"
  21450. "2502 packages are missing from '@value{SUBSTITUTE-URLS}' for 'x86_64-linux', among which:\n"
  21451. " 58 kcoreaddons@@5.49.0 /gnu/store/@dots{}-kcoreaddons-5.49.0\n"
  21452. " 46 qgpgme@@1.11.1 /gnu/store/@dots{}-qgpgme-1.11.1\n"
  21453. " 37 perl-http-cookiejar@@0.008 /gnu/store/@dots{}-perl-http-cookiejar-0.008\n"
  21454. " @dots{}\n"
  21455. msgstr ""
  21456. #. type: table
  21457. #: guix-git/doc/guix.texi:14632
  21458. msgid "What this example shows is that @code{kcoreaddons} and presumably the 58 packages that depend on it have no substitutes at @code{@value{SUBSTITUTE-SERVER-1}}; likewise for @code{qgpgme} and the 46 packages that depend on it."
  21459. msgstr ""
  21460. #. type: table
  21461. #: guix-git/doc/guix.texi:14636
  21462. 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."
  21463. msgstr ""
  21464. #. type: item
  21465. #: guix-git/doc/guix.texi:14637
  21466. #, no-wrap
  21467. msgid "--display-missing"
  21468. msgstr ""
  21469. #. type: table
  21470. #: guix-git/doc/guix.texi:14639
  21471. msgid "Display the list of store items for which substitutes are missing."
  21472. msgstr ""
  21473. #. type: section
  21474. #: guix-git/doc/guix.texi:14642
  21475. #, no-wrap
  21476. msgid "Invoking @command{guix processes}"
  21477. msgstr ""
  21478. #. type: Plain text
  21479. #: guix-git/doc/guix.texi:14650
  21480. 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:"
  21481. msgstr ""
  21482. #. type: example
  21483. #: guix-git/doc/guix.texi:14656
  21484. #, no-wrap
  21485. msgid ""
  21486. "$ sudo guix processes\n"
  21487. "SessionPID: 19002\n"
  21488. "ClientPID: 19090\n"
  21489. "ClientCommand: guix shell python\n"
  21490. "\n"
  21491. msgstr ""
  21492. #. type: example
  21493. #: guix-git/doc/guix.texi:14660
  21494. #, no-wrap
  21495. msgid ""
  21496. "SessionPID: 19402\n"
  21497. "ClientPID: 19367\n"
  21498. "ClientCommand: guix publish -u guix-publish -p 3000 -C 9 @dots{}\n"
  21499. "\n"
  21500. msgstr ""
  21501. #. type: example
  21502. #: guix-git/doc/guix.texi:14673
  21503. #, no-wrap
  21504. msgid ""
  21505. "SessionPID: 19444\n"
  21506. "ClientPID: 19419\n"
  21507. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  21508. "LockHeld: /gnu/store/@dots{}-perl-ipc-cmd-0.96.lock\n"
  21509. "LockHeld: /gnu/store/@dots{}-python-six-bootstrap-1.11.0.lock\n"
  21510. "LockHeld: /gnu/store/@dots{}-libjpeg-turbo-2.0.0.lock\n"
  21511. "ChildPID: 20495\n"
  21512. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  21513. "ChildPID: 27733\n"
  21514. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  21515. "ChildPID: 27793\n"
  21516. "ChildCommand: guix offload x86_64-linux 7200 1 28800\n"
  21517. msgstr ""
  21518. #. type: Plain text
  21519. #: guix-git/doc/guix.texi:14680
  21520. 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."
  21521. msgstr ""
  21522. #. type: Plain text
  21523. #: guix-git/doc/guix.texi:14687
  21524. 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})."
  21525. msgstr ""
  21526. #. type: Plain text
  21527. #: guix-git/doc/guix.texi:14692
  21528. 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:"
  21529. msgstr ""
  21530. #. type: example
  21531. #: guix-git/doc/guix.texi:14698
  21532. #, no-wrap
  21533. msgid ""
  21534. "$ sudo guix processes | \\\n"
  21535. " recsel -p ClientPID,ClientCommand -e 'LockHeld ~ \"perl\"'\n"
  21536. "ClientPID: 19419\n"
  21537. "ClientCommand: cuirass --cache-directory /var/cache/cuirass @dots{}\n"
  21538. msgstr ""
  21539. #. type: Plain text
  21540. #: guix-git/doc/guix.texi:14701
  21541. #, fuzzy
  21542. msgid "Additional options are listed below."
  21543. msgstr "额外的构建选项"
  21544. #. type: table
  21545. #: guix-git/doc/guix.texi:14711
  21546. msgid "The default option. It outputs a set of Session recutils records that include each @code{ChildProcess} as a field."
  21547. msgstr ""
  21548. #. type: item
  21549. #: guix-git/doc/guix.texi:14712
  21550. #, no-wrap
  21551. msgid "normalized"
  21552. msgstr ""
  21553. #. type: table
  21554. #: guix-git/doc/guix.texi:14719
  21555. 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}."
  21556. msgstr ""
  21557. #. type: example
  21558. #: guix-git/doc/guix.texi:14729
  21559. #, no-wrap
  21560. msgid ""
  21561. "$ guix processes --format=normalized | \\\n"
  21562. " recsel \\\n"
  21563. " -j Session \\\n"
  21564. " -t ChildProcess \\\n"
  21565. " -p Session.PID,PID \\\n"
  21566. " -e 'Session.ClientCommand ~ \"guix build\"'\n"
  21567. "PID: 4435\n"
  21568. "Session_PID: 4278\n"
  21569. "\n"
  21570. msgstr ""
  21571. #. type: example
  21572. #: guix-git/doc/guix.texi:14732
  21573. #, no-wrap
  21574. msgid ""
  21575. "PID: 4554\n"
  21576. "Session_PID: 4278\n"
  21577. "\n"
  21578. msgstr ""
  21579. #. type: example
  21580. #: guix-git/doc/guix.texi:14735
  21581. #, no-wrap
  21582. msgid ""
  21583. "PID: 4646\n"
  21584. "Session_PID: 4278\n"
  21585. msgstr ""
  21586. #. type: cindex
  21587. #: guix-git/doc/guix.texi:14742
  21588. #, no-wrap
  21589. msgid "system configuration"
  21590. msgstr ""
  21591. #. type: Plain text
  21592. #: guix-git/doc/guix.texi:14748
  21593. 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."
  21594. msgstr ""
  21595. #. type: Plain text
  21596. #: guix-git/doc/guix.texi:14758
  21597. 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."
  21598. msgstr ""
  21599. #. type: Plain text
  21600. #: guix-git/doc/guix.texi:14763
  21601. 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."
  21602. msgstr ""
  21603. #. type: Plain text
  21604. #: guix-git/doc/guix.texi:14793
  21605. 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:"
  21606. msgstr ""
  21607. #. type: code{#1}
  21608. #: guix-git/doc/guix.texi:14794 guix-git/doc/guix.texi:36147
  21609. #, no-wrap
  21610. msgid "operating-system"
  21611. msgstr ""
  21612. #. type: include
  21613. #: guix-git/doc/guix.texi:14796
  21614. #, no-wrap
  21615. msgid "os-config-bare-bones.texi"
  21616. msgstr ""
  21617. #. type: Plain text
  21618. #: guix-git/doc/guix.texi:14803
  21619. 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."
  21620. msgstr ""
  21621. #. type: Plain text
  21622. #: guix-git/doc/guix.texi:14808
  21623. 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}."
  21624. msgstr ""
  21625. #. type: unnumberedsubsec
  21626. #: guix-git/doc/guix.texi:14809
  21627. #, no-wrap
  21628. msgid "Bootloader"
  21629. msgstr ""
  21630. #. type: cindex
  21631. #: guix-git/doc/guix.texi:14811
  21632. #, no-wrap
  21633. msgid "legacy boot, on Intel machines"
  21634. msgstr ""
  21635. #. type: cindex
  21636. #: guix-git/doc/guix.texi:14812
  21637. #, no-wrap
  21638. msgid "BIOS boot, on Intel machines"
  21639. msgstr ""
  21640. #. type: cindex
  21641. #: guix-git/doc/guix.texi:14813
  21642. #, no-wrap
  21643. msgid "UEFI boot"
  21644. msgstr ""
  21645. #. type: cindex
  21646. #: guix-git/doc/guix.texi:14814
  21647. #, no-wrap
  21648. msgid "EFI boot"
  21649. msgstr ""
  21650. #. type: Plain text
  21651. #: guix-git/doc/guix.texi:14820
  21652. 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:"
  21653. msgstr ""
  21654. #. type: lisp
  21655. #: guix-git/doc/guix.texi:14825
  21656. #, no-wrap
  21657. msgid ""
  21658. "(bootloader-configuration\n"
  21659. " (bootloader grub-efi-bootloader)\n"
  21660. " (targets '(\"/boot/efi\")))\n"
  21661. msgstr ""
  21662. #. type: Plain text
  21663. #: guix-git/doc/guix.texi:14829
  21664. msgid "@xref{Bootloader Configuration}, for more information on the available configuration options."
  21665. msgstr ""
  21666. #. type: unnumberedsubsec
  21667. #: guix-git/doc/guix.texi:14830
  21668. #, no-wrap
  21669. msgid "Globally-Visible Packages"
  21670. msgstr ""
  21671. #. type: vindex
  21672. #: guix-git/doc/guix.texi:14832
  21673. #, no-wrap
  21674. msgid "%base-packages"
  21675. msgstr ""
  21676. #. type: Plain text
  21677. #: guix-git/doc/guix.texi:14845
  21678. msgid "The @code{packages} field lists packages that will be globally visible on the system, for all user accounts---i.e., in every user's @env{PATH} environment variable---in addition to the per-user profiles (@pxref{Invoking guix package}). The @code{%base-packages} variable provides all the tools one would expect for basic user and administrator tasks---including the GNU Core Utilities, the GNU Networking Utilities, the @command{mg} lightweight text editor, @command{find}, @command{grep}, etc. The example above adds GNU@tie{}Screen to those, taken from the @code{(gnu packages screen)} module (@pxref{Package Modules}). The @code{(list package output)} syntax can be used to add a specific output of a package:"
  21679. msgstr ""
  21680. #. type: lisp
  21681. #: guix-git/doc/guix.texi:14849
  21682. #, no-wrap
  21683. msgid ""
  21684. "(use-modules (gnu packages))\n"
  21685. "(use-modules (gnu packages dns))\n"
  21686. "\n"
  21687. msgstr ""
  21688. #. type: lisp
  21689. #: guix-git/doc/guix.texi:14854
  21690. #, no-wrap
  21691. msgid ""
  21692. "(operating-system\n"
  21693. " ;; ...\n"
  21694. " (packages (cons (list isc-bind \"utils\")\n"
  21695. " %base-packages)))\n"
  21696. msgstr ""
  21697. #. type: findex
  21698. #: guix-git/doc/guix.texi:14856
  21699. #, no-wrap
  21700. msgid "specification->package"
  21701. msgstr ""
  21702. #. type: Plain text
  21703. #: guix-git/doc/guix.texi:14865
  21704. msgid "Referring to packages by variable name, like @code{isc-bind} above, has the advantage of being unambiguous; it also allows typos and such to be diagnosed right away as ``unbound variables''. The downside is that one needs to know which module defines which package, and to augment the @code{use-package-modules} line accordingly. To avoid that, one can use the @code{specification->package} procedure of the @code{(gnu packages)} module, which returns the best package for a given name or name and version:"
  21705. msgstr ""
  21706. #. type: lisp
  21707. #: guix-git/doc/guix.texi:14868
  21708. #, no-wrap
  21709. msgid ""
  21710. "(use-modules (gnu packages))\n"
  21711. "\n"
  21712. msgstr ""
  21713. #. type: lisp
  21714. #: guix-git/doc/guix.texi:14874
  21715. #, no-wrap
  21716. msgid ""
  21717. "(operating-system\n"
  21718. " ;; ...\n"
  21719. " (packages (append (map specification->package\n"
  21720. " '(\"tcpdump\" \"htop\" \"gnupg@@2.0\"))\n"
  21721. " %base-packages)))\n"
  21722. msgstr ""
  21723. #. type: unnumberedsubsec
  21724. #: guix-git/doc/guix.texi:14876
  21725. #, no-wrap
  21726. msgid "System Services"
  21727. msgstr ""
  21728. #. type: cindex
  21729. #: guix-git/doc/guix.texi:14878 guix-git/doc/guix.texi:34860
  21730. #: guix-git/doc/guix.texi:36387
  21731. #, no-wrap
  21732. msgid "services"
  21733. msgstr ""
  21734. #. type: vindex
  21735. #: guix-git/doc/guix.texi:14879
  21736. #, no-wrap
  21737. msgid "%base-services"
  21738. msgstr ""
  21739. #. type: Plain text
  21740. #: guix-git/doc/guix.texi:14889
  21741. 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})."
  21742. msgstr ""
  21743. #. type: cindex
  21744. #: guix-git/doc/guix.texi:14890
  21745. #, no-wrap
  21746. msgid "customization, of services"
  21747. msgstr ""
  21748. #. type: findex
  21749. #: guix-git/doc/guix.texi:14891
  21750. #, no-wrap
  21751. msgid "modify-services"
  21752. msgstr ""
  21753. #. type: Plain text
  21754. #: guix-git/doc/guix.texi:14895
  21755. 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."
  21756. msgstr ""
  21757. #. type: anchor{#1}
  21758. #: guix-git/doc/guix.texi:14901
  21759. msgid "auto-login to TTY"
  21760. msgstr ""
  21761. #. type: Plain text
  21762. #: guix-git/doc/guix.texi:14901
  21763. 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:"
  21764. msgstr ""
  21765. #. type: lisp
  21766. #: guix-git/doc/guix.texi:14918
  21767. #, no-wrap
  21768. msgid ""
  21769. "(define %my-services\n"
  21770. " ;; My very own list of services.\n"
  21771. " (modify-services %base-services\n"
  21772. " (guix-service-type config =>\n"
  21773. " (guix-configuration\n"
  21774. " (inherit config)\n"
  21775. " ;; Fetch substitutes from example.org.\n"
  21776. " (substitute-urls\n"
  21777. " (list \"https://example.org/guix\"\n"
  21778. " \"https://ci.guix.gnu.org\"))))\n"
  21779. " (mingetty-service-type config =>\n"
  21780. " (mingetty-configuration\n"
  21781. " (inherit config)\n"
  21782. " ;; Automatically log in as \"guest\".\n"
  21783. " (auto-login \"guest\")))))\n"
  21784. "\n"
  21785. msgstr ""
  21786. #. type: lisp
  21787. #: guix-git/doc/guix.texi:14922
  21788. #, no-wrap
  21789. msgid ""
  21790. "(operating-system\n"
  21791. " ;; @dots{}\n"
  21792. " (services %my-services))\n"
  21793. msgstr ""
  21794. #. type: Plain text
  21795. #: guix-git/doc/guix.texi:14935
  21796. msgid "This changes the configuration---i.e., the service parameters---of the @code{guix-service-type} instance, and that of all the @code{mingetty-service-type} instances in the @code{%base-services} list (@pxref{Auto-Login to a Specific TTY, see the cookbook for how to auto-login one user to a specific TTY,, guix-cookbook, GNU Guix Cookbook})). Observe how this is accomplished: first, we arrange for the original configuration to be bound to the identifier @code{config} in the @var{body}, and then we write the @var{body} so that it evaluates to the desired configuration. In particular, notice how we use @code{inherit} to create a new configuration which has the same values as the old configuration, but with a few modifications."
  21797. msgstr ""
  21798. #. type: Plain text
  21799. #: guix-git/doc/guix.texi:14942
  21800. msgid "The configuration for a typical ``desktop'' usage, with an encrypted root partition, a swap file on the 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:"
  21801. msgstr ""
  21802. #. type: include
  21803. #: guix-git/doc/guix.texi:14944
  21804. #, no-wrap
  21805. msgid "os-config-desktop.texi"
  21806. msgstr ""
  21807. #. type: Plain text
  21808. #: guix-git/doc/guix.texi:14949
  21809. msgid "A graphical system with a choice of lightweight window managers instead of full-blown desktop environments would look like this:"
  21810. msgstr ""
  21811. #. type: include
  21812. #: guix-git/doc/guix.texi:14951
  21813. #, no-wrap
  21814. msgid "os-config-lightweight-desktop.texi"
  21815. msgstr ""
  21816. #. type: Plain text
  21817. #: guix-git/doc/guix.texi:14957
  21818. 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."
  21819. msgstr ""
  21820. #. type: Plain text
  21821. #: guix-git/doc/guix.texi:14961
  21822. 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."
  21823. msgstr ""
  21824. #. type: Plain text
  21825. #: guix-git/doc/guix.texi:14968
  21826. 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:"
  21827. msgstr ""
  21828. #. type: lisp
  21829. #: guix-git/doc/guix.texi:14973
  21830. #, no-wrap
  21831. msgid ""
  21832. "(remove (lambda (service)\n"
  21833. " (eq? (service-kind service) avahi-service-type))\n"
  21834. " %desktop-services)\n"
  21835. msgstr ""
  21836. #. type: Plain text
  21837. #: guix-git/doc/guix.texi:14976
  21838. msgid "Alternatively, the @code{modify-services} macro can be used:"
  21839. msgstr ""
  21840. #. type: lisp
  21841. #: guix-git/doc/guix.texi:14980
  21842. #, no-wrap
  21843. msgid ""
  21844. "(modify-services %desktop-services\n"
  21845. " (delete avahi-service-type))\n"
  21846. msgstr ""
  21847. #. type: unnumberedsubsec
  21848. #: guix-git/doc/guix.texi:14983
  21849. #, no-wrap
  21850. msgid "Instantiating the System"
  21851. msgstr ""
  21852. #. type: Plain text
  21853. #: guix-git/doc/guix.texi:14990
  21854. 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})."
  21855. msgstr ""
  21856. #. type: Plain text
  21857. #: guix-git/doc/guix.texi:14998
  21858. 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."
  21859. msgstr ""
  21860. #. type: cindex
  21861. #: guix-git/doc/guix.texi:14999
  21862. #, no-wrap
  21863. msgid "roll-back, of the operating system"
  21864. msgstr ""
  21865. #. type: Plain text
  21866. #: guix-git/doc/guix.texi:15009
  21867. 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}."
  21868. msgstr ""
  21869. #. type: Plain text
  21870. #: guix-git/doc/guix.texi:15015
  21871. 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})."
  21872. msgstr ""
  21873. #. type: unnumberedsubsec
  21874. #: guix-git/doc/guix.texi:15016
  21875. #, no-wrap
  21876. msgid "The Programming Interface"
  21877. msgstr ""
  21878. #. type: Plain text
  21879. #: guix-git/doc/guix.texi:15021
  21880. msgid "At the Scheme level, the bulk of an @code{operating-system} declaration is instantiated with the following monadic procedure (@pxref{The Store Monad}):"
  21881. msgstr ""
  21882. #. type: deffn
  21883. #: guix-git/doc/guix.texi:15022
  21884. #, no-wrap
  21885. msgid "{Monadic Procedure} operating-system-derivation os"
  21886. msgstr ""
  21887. #. type: deffn
  21888. #: guix-git/doc/guix.texi:15025
  21889. msgid "Return a derivation that builds @var{os}, an @code{operating-system} object (@pxref{Derivations})."
  21890. msgstr ""
  21891. #. type: deffn
  21892. #: guix-git/doc/guix.texi:15029
  21893. 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}."
  21894. msgstr ""
  21895. #. type: Plain text
  21896. #: guix-git/doc/guix.texi:15034
  21897. 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!"
  21898. msgstr ""
  21899. #. type: section
  21900. #: guix-git/doc/guix.texi:15037
  21901. #, no-wrap
  21902. msgid "@code{operating-system} Reference"
  21903. msgstr ""
  21904. #. type: Plain text
  21905. #: guix-git/doc/guix.texi:15042
  21906. msgid "This section summarizes all the options available in @code{operating-system} declarations (@pxref{Using the Configuration System})."
  21907. msgstr ""
  21908. #. type: deftp
  21909. #: guix-git/doc/guix.texi:15043
  21910. #, no-wrap
  21911. msgid "{Data Type} operating-system"
  21912. msgstr ""
  21913. #. type: deftp
  21914. #: guix-git/doc/guix.texi:15047
  21915. 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})."
  21916. msgstr ""
  21917. #. type: item
  21918. #: guix-git/doc/guix.texi:15049
  21919. #, fuzzy, no-wrap
  21920. msgid "@code{kernel} (default: @code{linux-libre})"
  21921. msgstr "@code{gnome}(默认值:@code{gnome})"
  21922. #. type: table
  21923. #: guix-git/doc/guix.texi:15054
  21924. 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.}."
  21925. msgstr ""
  21926. #. type: code{#1}
  21927. #: guix-git/doc/guix.texi:15055 guix-git/doc/guix.texi:31198
  21928. #, no-wrap
  21929. msgid "hurd"
  21930. msgstr ""
  21931. #. type: item
  21932. #: guix-git/doc/guix.texi:15056
  21933. #, fuzzy, no-wrap
  21934. msgid "@code{hurd} (default: @code{#f})"
  21935. msgstr "@code{port}(默认值:@code{22})"
  21936. #. type: table
  21937. #: guix-git/doc/guix.texi:15061
  21938. 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."
  21939. msgstr ""
  21940. #. type: quotation
  21941. #: guix-git/doc/guix.texi:15064
  21942. msgid "This feature is experimental and only supported for disk images."
  21943. msgstr ""
  21944. #. type: item
  21945. #: guix-git/doc/guix.texi:15066
  21946. #, fuzzy, no-wrap
  21947. msgid "@code{kernel-loadable-modules} (default: '())"
  21948. msgstr "@code{features} (@code{'()})"
  21949. #. type: table
  21950. #: guix-git/doc/guix.texi:15069
  21951. msgid "A list of objects (usually packages) to collect loadable kernel modules from--e.g. @code{(list ddcci-driver-linux)}."
  21952. msgstr ""
  21953. #. type: item
  21954. #: guix-git/doc/guix.texi:15070
  21955. #, fuzzy, no-wrap
  21956. msgid "@code{kernel-arguments} (default: @code{%default-kernel-arguments})"
  21957. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  21958. #. type: table
  21959. #: guix-git/doc/guix.texi:15073
  21960. msgid "List of strings or gexps representing additional arguments to pass on the command-line of the kernel---e.g., @code{(\"console=ttyS0\")}."
  21961. msgstr ""
  21962. #. type: code{#1}
  21963. #: guix-git/doc/guix.texi:15074 guix-git/doc/guix.texi:35092
  21964. #: guix-git/doc/guix.texi:35111
  21965. #, no-wrap
  21966. msgid "bootloader"
  21967. msgstr ""
  21968. #. type: table
  21969. #: guix-git/doc/guix.texi:15076
  21970. msgid "The system bootloader configuration object. @xref{Bootloader Configuration}."
  21971. msgstr ""
  21972. #. type: code{#1}
  21973. #: guix-git/doc/guix.texi:15077 guix-git/doc/guix.texi:35285
  21974. #, no-wrap
  21975. msgid "label"
  21976. msgstr ""
  21977. #. type: table
  21978. #: guix-git/doc/guix.texi:15080
  21979. 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."
  21980. msgstr ""
  21981. #. type: item
  21982. #: guix-git/doc/guix.texi:15081 guix-git/doc/guix.texi:16800
  21983. #: guix-git/doc/guix.texi:19990 guix-git/doc/guix.texi:35215
  21984. #, no-wrap
  21985. msgid "@code{keyboard-layout} (default: @code{#f})"
  21986. msgstr ""
  21987. #. type: table
  21988. #: guix-git/doc/guix.texi:15086
  21989. 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."
  21990. msgstr ""
  21991. #. type: table
  21992. #: guix-git/doc/guix.texi:15091
  21993. 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})."
  21994. msgstr ""
  21995. #. type: quotation
  21996. #: guix-git/doc/guix.texi:15098
  21997. 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."
  21998. msgstr ""
  21999. #. type: item
  22000. #: guix-git/doc/guix.texi:15100
  22001. #, no-wrap
  22002. msgid "@code{initrd-modules} (default: @code{%base-initrd-modules})"
  22003. msgstr ""
  22004. #. type: cindex
  22005. #: guix-git/doc/guix.texi:15101 guix-git/doc/guix.texi:34897
  22006. #: guix-git/doc/guix.texi:35020
  22007. #, no-wrap
  22008. msgid "initrd"
  22009. msgstr ""
  22010. #. type: cindex
  22011. #: guix-git/doc/guix.texi:15102 guix-git/doc/guix.texi:34898
  22012. #: guix-git/doc/guix.texi:35021
  22013. #, no-wrap
  22014. msgid "initial RAM disk"
  22015. msgstr ""
  22016. #. type: table
  22017. #: guix-git/doc/guix.texi:15105
  22018. msgid "The list of Linux kernel modules that need to be available in the initial RAM disk. @xref{Initial RAM Disk}."
  22019. msgstr ""
  22020. #. type: item
  22021. #: guix-git/doc/guix.texi:15106
  22022. #, no-wrap
  22023. msgid "@code{initrd} (default: @code{base-initrd})"
  22024. msgstr ""
  22025. #. type: table
  22026. #: guix-git/doc/guix.texi:15110
  22027. 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}."
  22028. msgstr ""
  22029. #. type: item
  22030. #: guix-git/doc/guix.texi:15111
  22031. #, fuzzy, no-wrap
  22032. msgid "@code{firmware} (default: @code{%base-firmware})"
  22033. msgstr "@code{mate}(默认值:@code{mate})"
  22034. #. type: cindex
  22035. #: guix-git/doc/guix.texi:15112
  22036. #, no-wrap
  22037. msgid "firmware"
  22038. msgstr ""
  22039. #. type: table
  22040. #: guix-git/doc/guix.texi:15114
  22041. msgid "List of firmware packages loadable by the operating system kernel."
  22042. msgstr ""
  22043. #. type: table
  22044. #: guix-git/doc/guix.texi:15119
  22045. 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."
  22046. msgstr ""
  22047. #. type: code{#1}
  22048. #: guix-git/doc/guix.texi:15120 guix-git/doc/guix.texi:36166
  22049. #, no-wrap
  22050. msgid "host-name"
  22051. msgstr ""
  22052. #. type: table
  22053. #: guix-git/doc/guix.texi:15122
  22054. msgid "The host name."
  22055. msgstr ""
  22056. #. type: code{#1}
  22057. #: guix-git/doc/guix.texi:15123
  22058. #, no-wrap
  22059. msgid "hosts-file"
  22060. msgstr ""
  22061. #. type: cindex
  22062. #: guix-git/doc/guix.texi:15124
  22063. #, no-wrap
  22064. msgid "hosts file"
  22065. msgstr ""
  22066. #. type: table
  22067. #: guix-git/doc/guix.texi:15129
  22068. 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}."
  22069. msgstr ""
  22070. #. type: item
  22071. #: guix-git/doc/guix.texi:15130
  22072. #, no-wrap
  22073. msgid "@code{mapped-devices} (default: @code{'()})"
  22074. msgstr ""
  22075. #. type: table
  22076. #: guix-git/doc/guix.texi:15132
  22077. msgid "A list of mapped devices. @xref{Mapped Devices}."
  22078. msgstr ""
  22079. #. type: code{#1}
  22080. #: guix-git/doc/guix.texi:15133
  22081. #, no-wrap
  22082. msgid "file-systems"
  22083. msgstr ""
  22084. #. type: table
  22085. #: guix-git/doc/guix.texi:15135
  22086. msgid "A list of file systems. @xref{File Systems}."
  22087. msgstr ""
  22088. #. type: item
  22089. #: guix-git/doc/guix.texi:15136
  22090. #, no-wrap
  22091. msgid "@code{swap-devices} (default: @code{'()})"
  22092. msgstr ""
  22093. #. type: cindex
  22094. #: guix-git/doc/guix.texi:15137
  22095. #, no-wrap
  22096. msgid "swap devices"
  22097. msgstr ""
  22098. #. type: table
  22099. #: guix-git/doc/guix.texi:15139
  22100. msgid "A list of swap spaces. @xref{Swap Space}."
  22101. msgstr ""
  22102. #. type: item
  22103. #: guix-git/doc/guix.texi:15140
  22104. #, no-wrap
  22105. msgid "@code{users} (default: @code{%base-user-accounts})"
  22106. msgstr ""
  22107. #. type: itemx
  22108. #: guix-git/doc/guix.texi:15141
  22109. #, fuzzy, no-wrap
  22110. msgid "@code{groups} (default: @code{%base-groups})"
  22111. msgstr "@code{gnome}(默认值:@code{gnome})"
  22112. #. type: table
  22113. #: guix-git/doc/guix.texi:15143
  22114. msgid "List of user accounts and groups. @xref{User Accounts}."
  22115. msgstr ""
  22116. #. type: table
  22117. #: guix-git/doc/guix.texi:15146
  22118. msgid "If the @code{users} list lacks a user account with UID@tie{}0, a ``root'' account with UID@tie{}0 is automatically added."
  22119. msgstr ""
  22120. #. type: item
  22121. #: guix-git/doc/guix.texi:15147
  22122. #, no-wrap
  22123. msgid "@code{skeletons} (default: @code{(default-skeletons)})"
  22124. msgstr ""
  22125. #. type: table
  22126. #: guix-git/doc/guix.texi:15151
  22127. 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."
  22128. msgstr ""
  22129. #. type: table
  22130. #: guix-git/doc/guix.texi:15153
  22131. msgid "For instance, a valid value may look like this:"
  22132. msgstr ""
  22133. #. type: lisp
  22134. #: guix-git/doc/guix.texi:15159
  22135. #, no-wrap
  22136. msgid ""
  22137. "`((\".bashrc\" ,(plain-file \"bashrc\" \"echo Hello\\n\"))\n"
  22138. " (\".guile\" ,(plain-file \"guile\"\n"
  22139. " \"(use-modules (ice-9 readline))\n"
  22140. " (activate-readline)\")))\n"
  22141. msgstr ""
  22142. #. type: item
  22143. #: guix-git/doc/guix.texi:15161
  22144. #, fuzzy, no-wrap
  22145. msgid "@code{issue} (default: @code{%default-issue})"
  22146. msgstr "@code{mate}(默认值:@code{mate})"
  22147. #. type: table
  22148. #: guix-git/doc/guix.texi:15164
  22149. msgid "A string denoting the contents of the @file{/etc/issue} file, which is displayed when users log in on a text console."
  22150. msgstr ""
  22151. #. type: item
  22152. #: guix-git/doc/guix.texi:15165
  22153. #, fuzzy, no-wrap
  22154. msgid "@code{packages} (default: @code{%base-packages})"
  22155. msgstr "@code{xfce}(默认值:@code{xfce})"
  22156. #. type: table
  22157. #: guix-git/doc/guix.texi:15169
  22158. 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:"
  22159. msgstr ""
  22160. #. type: lisp
  22161. #: guix-git/doc/guix.texi:15174
  22162. #, no-wrap
  22163. msgid ""
  22164. "(cons* git ; the default \"out\" output\n"
  22165. " (list git \"send-email\") ; another output of git\n"
  22166. " %base-packages) ; the default set\n"
  22167. msgstr ""
  22168. #. type: table
  22169. #: guix-git/doc/guix.texi:15179
  22170. msgid "The default set includes core utilities and it is good practice to install non-core utilities in user profiles (@pxref{Invoking guix package})."
  22171. msgstr ""
  22172. #. type: code{#1}
  22173. #: guix-git/doc/guix.texi:15180
  22174. #, no-wrap
  22175. msgid "timezone"
  22176. msgstr ""
  22177. #. type: table
  22178. #: guix-git/doc/guix.texi:15182
  22179. msgid "A timezone identifying string---e.g., @code{\"Europe/Paris\"}."
  22180. msgstr ""
  22181. #. type: table
  22182. #: guix-git/doc/guix.texi:15186
  22183. 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."
  22184. msgstr ""
  22185. #. type: item
  22186. #: guix-git/doc/guix.texi:15187 guix-git/doc/guix.texi:21635
  22187. #, no-wrap
  22188. msgid "@code{locale} (default: @code{\"en_US.utf8\"})"
  22189. msgstr ""
  22190. #. type: table
  22191. #: guix-git/doc/guix.texi:15190
  22192. msgid "The name of the default locale (@pxref{Locale Names,,, libc, The GNU C Library Reference Manual}). @xref{Locales}, for more information."
  22193. msgstr ""
  22194. #. type: item
  22195. #: guix-git/doc/guix.texi:15191
  22196. #, fuzzy, no-wrap
  22197. msgid "@code{locale-definitions} (default: @code{%default-locale-definitions})"
  22198. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  22199. #. type: table
  22200. #: guix-git/doc/guix.texi:15194
  22201. msgid "The list of locale definitions to be compiled and that may be used at run time. @xref{Locales}."
  22202. msgstr ""
  22203. #. type: item
  22204. #: guix-git/doc/guix.texi:15195
  22205. #, no-wrap
  22206. msgid "@code{locale-libcs} (default: @code{(list @var{glibc})})"
  22207. msgstr ""
  22208. #. type: table
  22209. #: guix-git/doc/guix.texi:15199
  22210. 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."
  22211. msgstr ""
  22212. #. type: item
  22213. #: guix-git/doc/guix.texi:15200
  22214. #, fuzzy, no-wrap
  22215. msgid "@code{name-service-switch} (default: @code{%default-nss})"
  22216. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  22217. #. type: table
  22218. #: guix-git/doc/guix.texi:15204
  22219. msgid "Configuration of the libc name service switch (NSS)---a @code{<name-service-switch>} object. @xref{Name Service Switch}, for details."
  22220. msgstr ""
  22221. #. type: item
  22222. #: guix-git/doc/guix.texi:15205
  22223. #, fuzzy, no-wrap
  22224. msgid "@code{services} (default: @code{%base-services})"
  22225. msgstr "@code{xfce}(默认值:@code{xfce})"
  22226. #. type: table
  22227. #: guix-git/doc/guix.texi:15207
  22228. msgid "A list of service objects denoting system services. @xref{Services}."
  22229. msgstr ""
  22230. #. type: cindex
  22231. #: guix-git/doc/guix.texi:15208
  22232. #, no-wrap
  22233. msgid "essential services"
  22234. msgstr ""
  22235. #. type: item
  22236. #: guix-git/doc/guix.texi:15209
  22237. #, no-wrap
  22238. msgid "@code{essential-services} (default: ...)"
  22239. msgstr ""
  22240. #. type: table
  22241. #: guix-git/doc/guix.texi:15214
  22242. 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."
  22243. msgstr ""
  22244. #. type: item
  22245. #: guix-git/doc/guix.texi:15215
  22246. #, no-wrap
  22247. msgid "@code{pam-services} (default: @code{(base-pam-services)})"
  22248. msgstr ""
  22249. #. type: cindex
  22250. #: guix-git/doc/guix.texi:15216
  22251. #, no-wrap
  22252. msgid "PAM"
  22253. msgstr ""
  22254. #. type: cindex
  22255. #: guix-git/doc/guix.texi:15217
  22256. #, no-wrap
  22257. msgid "pluggable authentication modules"
  22258. msgstr ""
  22259. #. type: table
  22260. #: guix-git/doc/guix.texi:15220
  22261. msgid "Linux @dfn{pluggable authentication module} (PAM) services."
  22262. msgstr ""
  22263. #. type: item
  22264. #: guix-git/doc/guix.texi:15221
  22265. #, fuzzy, no-wrap
  22266. msgid "@code{setuid-programs} (default: @code{%setuid-programs})"
  22267. msgstr "@code{features} (@code{'()})"
  22268. #. type: table
  22269. #: guix-git/doc/guix.texi:15224
  22270. msgid "List of @code{<setuid-program>}. @xref{Setuid Programs}, for more information."
  22271. msgstr ""
  22272. #. type: item
  22273. #: guix-git/doc/guix.texi:15225
  22274. #, fuzzy, no-wrap
  22275. msgid "@code{sudoers-file} (default: @code{%sudoers-specification})"
  22276. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  22277. #. type: cindex
  22278. #: guix-git/doc/guix.texi:15226
  22279. #, no-wrap
  22280. msgid "sudoers file"
  22281. msgstr ""
  22282. #. type: table
  22283. #: guix-git/doc/guix.texi:15229
  22284. msgid "The contents of the @file{/etc/sudoers} file as a file-like object (@pxref{G-Expressions, @code{local-file} and @code{plain-file}})."
  22285. msgstr ""
  22286. #. type: table
  22287. #: guix-git/doc/guix.texi:15234
  22288. 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}."
  22289. msgstr ""
  22290. #. type: deffn
  22291. #: guix-git/doc/guix.texi:15237
  22292. #, no-wrap
  22293. msgid "{Scheme Syntax} this-operating-system"
  22294. msgstr ""
  22295. #. type: deffn
  22296. #: guix-git/doc/guix.texi:15240
  22297. msgid "When used in the @emph{lexical scope} of an operating system field definition, this identifier resolves to the operating system being defined."
  22298. msgstr ""
  22299. #. type: deffn
  22300. #: guix-git/doc/guix.texi:15243
  22301. msgid "The example below shows how to refer to the operating system being defined in the definition of the @code{label} field:"
  22302. msgstr ""
  22303. #. type: lisp
  22304. #: guix-git/doc/guix.texi:15246 guix-git/doc/guix.texi:19198
  22305. #, no-wrap
  22306. msgid ""
  22307. "(use-modules (gnu) (guix))\n"
  22308. "\n"
  22309. msgstr ""
  22310. #. type: lisp
  22311. #: guix-git/doc/guix.texi:15251
  22312. #, no-wrap
  22313. msgid ""
  22314. "(operating-system\n"
  22315. " ;; ...\n"
  22316. " (label (package-full-name\n"
  22317. " (operating-system-kernel this-operating-system))))\n"
  22318. msgstr ""
  22319. #. type: deffn
  22320. #: guix-git/doc/guix.texi:15255
  22321. msgid "It is an error to refer to @code{this-operating-system} outside an operating system definition."
  22322. msgstr ""
  22323. #. type: Plain text
  22324. #: guix-git/doc/guix.texi:15266
  22325. 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:"
  22326. msgstr ""
  22327. #. type: lisp
  22328. #: guix-git/doc/guix.texi:15272
  22329. #, no-wrap
  22330. msgid ""
  22331. "(file-system\n"
  22332. " (mount-point \"/home\")\n"
  22333. " (device \"/dev/sda3\")\n"
  22334. " (type \"ext4\"))\n"
  22335. msgstr ""
  22336. #. type: Plain text
  22337. #: guix-git/doc/guix.texi:15276
  22338. msgid "As usual, some of the fields are mandatory---those shown in the example above---while others can be omitted. These are described below."
  22339. msgstr ""
  22340. #. type: deftp
  22341. #: guix-git/doc/guix.texi:15277
  22342. #, no-wrap
  22343. msgid "{Data Type} file-system"
  22344. msgstr ""
  22345. #. type: deftp
  22346. #: guix-git/doc/guix.texi:15280
  22347. msgid "Objects of this type represent file systems to be mounted. They contain the following members:"
  22348. msgstr ""
  22349. #. type: item
  22350. #: guix-git/doc/guix.texi:15282 guix-git/doc/guix.texi:15662
  22351. #: guix-git/doc/guix.texi:17804
  22352. #, no-wrap
  22353. msgid "type"
  22354. msgstr ""
  22355. #. type: table
  22356. #: guix-git/doc/guix.texi:15285
  22357. msgid "This is a string specifying the type of the file system---e.g., @code{\"ext4\"}."
  22358. msgstr ""
  22359. #. type: code{#1}
  22360. #: guix-git/doc/guix.texi:15286
  22361. #, no-wrap
  22362. msgid "mount-point"
  22363. msgstr ""
  22364. #. type: table
  22365. #: guix-git/doc/guix.texi:15288
  22366. msgid "This designates the place where the file system is to be mounted."
  22367. msgstr ""
  22368. #. type: item
  22369. #: guix-git/doc/guix.texi:15289 guix-git/doc/guix.texi:17754
  22370. #, no-wrap
  22371. msgid "device"
  22372. msgstr ""
  22373. #. type: table
  22374. #: guix-git/doc/guix.texi:15299
  22375. 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.}."
  22376. msgstr ""
  22377. #. type: findex
  22378. #: guix-git/doc/guix.texi:15300
  22379. #, no-wrap
  22380. msgid "file-system-label"
  22381. msgstr ""
  22382. #. type: table
  22383. #: guix-git/doc/guix.texi:15305
  22384. 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:"
  22385. msgstr ""
  22386. #. type: lisp
  22387. #: guix-git/doc/guix.texi:15311
  22388. #, no-wrap
  22389. msgid ""
  22390. "(file-system\n"
  22391. " (mount-point \"/home\")\n"
  22392. " (type \"ext4\")\n"
  22393. " (device (file-system-label \"my-home\")))\n"
  22394. msgstr ""
  22395. #. type: code{#1}
  22396. #: guix-git/doc/guix.texi:15313 guix-git/doc/guix.texi:33595
  22397. #: guix-git/doc/guix.texi:33611
  22398. #, no-wrap
  22399. msgid "uuid"
  22400. msgstr ""
  22401. #. type: table
  22402. #: guix-git/doc/guix.texi:15321
  22403. 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:"
  22404. msgstr ""
  22405. #. type: lisp
  22406. #: guix-git/doc/guix.texi:15327
  22407. #, no-wrap
  22408. msgid ""
  22409. "(file-system\n"
  22410. " (mount-point \"/home\")\n"
  22411. " (type \"ext4\")\n"
  22412. " (device (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  22413. msgstr ""
  22414. #. type: table
  22415. #: guix-git/doc/guix.texi:15335
  22416. 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."
  22417. msgstr ""
  22418. #. type: item
  22419. #: guix-git/doc/guix.texi:15336
  22420. #, no-wrap
  22421. msgid "@code{flags} (default: @code{'()})"
  22422. msgstr ""
  22423. #. type: table
  22424. #: guix-git/doc/guix.texi:15346
  22425. 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."
  22426. msgstr ""
  22427. #. type: item
  22428. #: guix-git/doc/guix.texi:15347
  22429. #, no-wrap
  22430. msgid "@code{options} (default: @code{#f})"
  22431. msgstr ""
  22432. #. type: table
  22433. #: guix-git/doc/guix.texi:15356
  22434. 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."
  22435. msgstr ""
  22436. #. type: item
  22437. #: guix-git/doc/guix.texi:15357
  22438. #, no-wrap
  22439. msgid "@code{mount?} (default: @code{#t})"
  22440. msgstr ""
  22441. #. type: table
  22442. #: guix-git/doc/guix.texi:15362
  22443. 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."
  22444. msgstr ""
  22445. #. type: item
  22446. #: guix-git/doc/guix.texi:15363
  22447. #, no-wrap
  22448. msgid "@code{needed-for-boot?} (default: @code{#f})"
  22449. msgstr ""
  22450. #. type: table
  22451. #: guix-git/doc/guix.texi:15368
  22452. 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."
  22453. msgstr ""
  22454. #. type: item
  22455. #: guix-git/doc/guix.texi:15369
  22456. #, no-wrap
  22457. msgid "@code{check?} (default: @code{#t})"
  22458. msgstr ""
  22459. #. type: table
  22460. #: guix-git/doc/guix.texi:15373
  22461. msgid "This Boolean indicates whether the file system should be checked for errors before being mounted. How and when this happens can be further adjusted with the following options."
  22462. msgstr ""
  22463. #. type: item
  22464. #: guix-git/doc/guix.texi:15374
  22465. #, fuzzy, no-wrap
  22466. msgid "@code{skip-check-if-clean?} (default: @code{#t})"
  22467. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  22468. #. type: table
  22469. #: guix-git/doc/guix.texi:15379
  22470. msgid "When true, this Boolean indicates that a file system check triggered by @code{check?} may exit early if the file system is marked as ``clean'', meaning that it was previously correctly unmounted and should not contain errors."
  22471. msgstr ""
  22472. #. type: table
  22473. #: guix-git/doc/guix.texi:15383
  22474. msgid "Setting this to false will always force a full consistency check when @code{check?} is true. This may take a very long time and is not recommended on healthy systems---in fact, it may reduce reliability!"
  22475. msgstr ""
  22476. #. type: table
  22477. #: guix-git/doc/guix.texi:15387
  22478. msgid "Conversely, some primitive file systems like @code{fat} do not keep track of clean shutdowns and will perform a full scan regardless of the value of this option."
  22479. msgstr ""
  22480. #. type: item
  22481. #: guix-git/doc/guix.texi:15388
  22482. #, fuzzy, no-wrap
  22483. msgid "@code{repair} (default: @code{'preen})"
  22484. msgstr "@code{features} (@code{'()})"
  22485. #. type: table
  22486. #: guix-git/doc/guix.texi:15391
  22487. msgid "When @code{check?} finds errors, it can (try to) repair them and continue booting. This option controls when and how to do so."
  22488. msgstr ""
  22489. #. type: table
  22490. #: guix-git/doc/guix.texi:15395
  22491. msgid "If false, try not to modify the file system at all. Checking certain file systems like @code{jfs} may still write to the device to replay the journal. No repairs will be attempted."
  22492. msgstr ""
  22493. #. type: table
  22494. #: guix-git/doc/guix.texi:15398
  22495. msgid "If @code{#t}, try to repair any errors found and assume ``yes'' to all questions. This will fix the most errors, but may be risky."
  22496. msgstr ""
  22497. #. type: table
  22498. #: guix-git/doc/guix.texi:15402
  22499. msgid "If @code{'preen}, repair only errors that are safe to fix without human interaction. What that means is left up to the developers of each file system and may be equivalent to ``none'' or ``all''."
  22500. msgstr ""
  22501. #. type: item
  22502. #: guix-git/doc/guix.texi:15403
  22503. #, no-wrap
  22504. msgid "@code{create-mount-point?} (default: @code{#f})"
  22505. msgstr ""
  22506. #. type: table
  22507. #: guix-git/doc/guix.texi:15405
  22508. msgid "When true, the mount point is created if it does not exist yet."
  22509. msgstr ""
  22510. #. type: item
  22511. #: guix-git/doc/guix.texi:15406
  22512. #, fuzzy, no-wrap
  22513. msgid "@code{mount-may-fail?} (default: @code{#f})"
  22514. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  22515. #. type: table
  22516. #: guix-git/doc/guix.texi:15411
  22517. 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."
  22518. msgstr ""
  22519. #. type: item
  22520. #: guix-git/doc/guix.texi:15412 guix-git/doc/guix.texi:15808
  22521. #, no-wrap
  22522. msgid "@code{dependencies} (default: @code{'()})"
  22523. msgstr ""
  22524. #. type: table
  22525. #: guix-git/doc/guix.texi:15416
  22526. 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."
  22527. msgstr ""
  22528. #. type: table
  22529. #: guix-git/doc/guix.texi:15420
  22530. 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}."
  22531. msgstr ""
  22532. #. type: table
  22533. #: guix-git/doc/guix.texi:15423
  22534. msgid "Another example is a file system that depends on a mapped device, for example for an encrypted partition (@pxref{Mapped Devices})."
  22535. msgstr ""
  22536. #. type: deffn
  22537. #: guix-git/doc/guix.texi:15426
  22538. #, no-wrap
  22539. msgid "{Scheme Procedure} file-system-label @var{str}"
  22540. msgstr ""
  22541. #. type: deffn
  22542. #: guix-git/doc/guix.texi:15429
  22543. msgid "This procedure returns an opaque file system label from @var{str}, a string:"
  22544. msgstr ""
  22545. #. type: lisp
  22546. #: guix-git/doc/guix.texi:15433
  22547. #, no-wrap
  22548. msgid ""
  22549. "(file-system-label \"home\")\n"
  22550. "@result{} #<file-system-label \"home\">\n"
  22551. msgstr ""
  22552. #. type: deffn
  22553. #: guix-git/doc/guix.texi:15437
  22554. msgid "File system labels are used to refer to file systems by label rather than by device name. See above for examples."
  22555. msgstr ""
  22556. #. type: Plain text
  22557. #: guix-git/doc/guix.texi:15441
  22558. msgid "The @code{(gnu system file-systems)} exports the following useful variables."
  22559. msgstr ""
  22560. #. type: defvr
  22561. #: guix-git/doc/guix.texi:15442
  22562. #, no-wrap
  22563. msgid "{Scheme Variable} %base-file-systems"
  22564. msgstr ""
  22565. #. type: defvr
  22566. #: guix-git/doc/guix.texi:15447
  22567. 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."
  22568. msgstr ""
  22569. #. type: defvr
  22570. #: guix-git/doc/guix.texi:15449
  22571. #, no-wrap
  22572. msgid "{Scheme Variable} %pseudo-terminal-file-system"
  22573. msgstr ""
  22574. #. type: defvr
  22575. #: guix-git/doc/guix.texi:15455
  22576. 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}."
  22577. msgstr ""
  22578. #. type: defvr
  22579. #: guix-git/doc/guix.texi:15457
  22580. #, no-wrap
  22581. msgid "{Scheme Variable} %shared-memory-file-system"
  22582. msgstr ""
  22583. #. type: defvr
  22584. #: guix-git/doc/guix.texi:15461
  22585. 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})."
  22586. msgstr ""
  22587. #. type: defvr
  22588. #: guix-git/doc/guix.texi:15463
  22589. #, no-wrap
  22590. msgid "{Scheme Variable} %immutable-store"
  22591. msgstr ""
  22592. #. type: defvr
  22593. #: guix-git/doc/guix.texi:15468
  22594. 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."
  22595. msgstr ""
  22596. #. type: defvr
  22597. #: guix-git/doc/guix.texi:15471
  22598. msgid "The daemon itself is still able to write to the store: it remounts it read-write in its own ``name space.''"
  22599. msgstr ""
  22600. #. type: defvr
  22601. #: guix-git/doc/guix.texi:15473
  22602. #, no-wrap
  22603. msgid "{Scheme Variable} %binary-format-file-system"
  22604. msgstr ""
  22605. #. type: defvr
  22606. #: guix-git/doc/guix.texi:15477
  22607. 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."
  22608. msgstr ""
  22609. #. type: defvr
  22610. #: guix-git/doc/guix.texi:15479
  22611. #, no-wrap
  22612. msgid "{Scheme Variable} %fuse-control-file-system"
  22613. msgstr ""
  22614. #. type: defvr
  22615. #: guix-git/doc/guix.texi:15483
  22616. 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."
  22617. msgstr ""
  22618. #. type: Plain text
  22619. #: guix-git/doc/guix.texi:15487
  22620. msgid "The @code{(gnu system uuid)} module provides tools to deal with file system ``unique identifiers'' (UUIDs)."
  22621. msgstr ""
  22622. #. type: deffn
  22623. #: guix-git/doc/guix.texi:15488
  22624. #, no-wrap
  22625. msgid "{Scheme Procedure} uuid @var{str} [@var{type}]"
  22626. msgstr ""
  22627. #. type: deffn
  22628. #: guix-git/doc/guix.texi:15491
  22629. msgid "Return an opaque UUID (unique identifier) object of the given @var{type} (a symbol) by parsing @var{str} (a string):"
  22630. msgstr ""
  22631. #. type: lisp
  22632. #: guix-git/doc/guix.texi:15495
  22633. #, no-wrap
  22634. msgid ""
  22635. "(uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")\n"
  22636. "@result{} #<<uuid> type: dce bv: @dots{}>\n"
  22637. "\n"
  22638. msgstr ""
  22639. #. type: lisp
  22640. #: guix-git/doc/guix.texi:15498
  22641. #, no-wrap
  22642. msgid ""
  22643. "(uuid \"1234-ABCD\" 'fat)\n"
  22644. "@result{} #<<uuid> type: fat bv: @dots{}>\n"
  22645. msgstr ""
  22646. #. type: deffn
  22647. #: guix-git/doc/guix.texi:15502
  22648. msgid "@var{type} may be one of @code{dce}, @code{iso9660}, @code{fat}, @code{ntfs}, or one of the commonly found synonyms for these."
  22649. msgstr ""
  22650. #. type: deffn
  22651. #: guix-git/doc/guix.texi:15505
  22652. msgid "UUIDs are another way to unambiguously refer to file systems in operating system configuration. See the examples above."
  22653. msgstr ""
  22654. #. type: subsection
  22655. #: guix-git/doc/guix.texi:15508 guix-git/doc/guix.texi:15509
  22656. #, fuzzy, no-wrap
  22657. msgid "Btrfs file system"
  22658. msgstr "网络文件系统"
  22659. #. type: Plain text
  22660. #: guix-git/doc/guix.texi:15515
  22661. 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."
  22662. msgstr ""
  22663. #. type: Plain text
  22664. #: guix-git/doc/guix.texi:15518
  22665. msgid "In its simplest usage, a Btrfs file system can be described, for example, by:"
  22666. msgstr ""
  22667. #. type: lisp
  22668. #: guix-git/doc/guix.texi:15524
  22669. #, no-wrap
  22670. msgid ""
  22671. "(file-system\n"
  22672. " (mount-point \"/home\")\n"
  22673. " (type \"btrfs\")\n"
  22674. " (device (file-system-label \"my-home\")))\n"
  22675. msgstr ""
  22676. #. type: Plain text
  22677. #: guix-git/doc/guix.texi:15530
  22678. 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}):"
  22679. msgstr ""
  22680. #. type: lisp
  22681. #: guix-git/doc/guix.texi:15538
  22682. #, no-wrap
  22683. msgid ""
  22684. "(file-system\n"
  22685. " (device (file-system-label \"my-btrfs-pool\"))\n"
  22686. " (mount-point \"/\")\n"
  22687. " (type \"btrfs\")\n"
  22688. " (options \"subvol=rootfs\")\n"
  22689. " (dependencies mapped-devices))\n"
  22690. msgstr ""
  22691. #. type: Plain text
  22692. #: guix-git/doc/guix.texi:15549
  22693. 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."
  22694. msgstr ""
  22695. #. type: Plain text
  22696. #: guix-git/doc/guix.texi:15557
  22697. 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.:"
  22698. msgstr ""
  22699. #. type: example
  22700. #: guix-git/doc/guix.texi:15564
  22701. #, no-wrap
  22702. msgid ""
  22703. "/ (top level)\n"
  22704. "├── rootfs (subvolume directory)\n"
  22705. " ├── gnu (normal directory)\n"
  22706. " ├── store (normal directory)\n"
  22707. "[...]\n"
  22708. msgstr ""
  22709. #. type: Plain text
  22710. #: guix-git/doc/guix.texi:15569
  22711. 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."
  22712. msgstr ""
  22713. #. type: Plain text
  22714. #: guix-git/doc/guix.texi:15572
  22715. msgid "The next example shows a nested hierarchy of subvolumes and directories:"
  22716. msgstr ""
  22717. #. type: example
  22718. #: guix-git/doc/guix.texi:15579
  22719. #, no-wrap
  22720. msgid ""
  22721. "/ (top level)\n"
  22722. "├── rootfs (subvolume)\n"
  22723. " ├── gnu (normal directory)\n"
  22724. " ├── store (subvolume)\n"
  22725. "[...]\n"
  22726. msgstr ""
  22727. #. type: Plain text
  22728. #: guix-git/doc/guix.texi:15586
  22729. 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}."
  22730. msgstr ""
  22731. #. type: Plain text
  22732. #: guix-git/doc/guix.texi:15588
  22733. msgid "Finally, a more contrived example of nested subvolumes:"
  22734. msgstr ""
  22735. #. type: example
  22736. #: guix-git/doc/guix.texi:15595
  22737. #, no-wrap
  22738. msgid ""
  22739. "/ (top level)\n"
  22740. "├── root-snapshots (subvolume)\n"
  22741. " ├── root-current (subvolume)\n"
  22742. " ├── guix-store (subvolume)\n"
  22743. "[...]\n"
  22744. msgstr ""
  22745. #. type: Plain text
  22746. #: guix-git/doc/guix.texi:15602
  22747. 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:"
  22748. msgstr ""
  22749. #. type: lisp
  22750. #: guix-git/doc/guix.texi:15610
  22751. #, no-wrap
  22752. msgid ""
  22753. "(file-system\n"
  22754. " (device (file-system-label \"btrfs-pool-1\"))\n"
  22755. " (mount-point \"/gnu/store\")\n"
  22756. " (type \"btrfs\")\n"
  22757. " (options \"subvol=root-snapshots/root-current/guix-store,\\\n"
  22758. "compress-force=zstd,space_cache=v2\"))\n"
  22759. msgstr ""
  22760. #. type: cindex
  22761. #: guix-git/doc/guix.texi:15615
  22762. #, no-wrap
  22763. msgid "device mapping"
  22764. msgstr ""
  22765. #. type: cindex
  22766. #: guix-git/doc/guix.texi:15616
  22767. #, no-wrap
  22768. msgid "mapped devices"
  22769. msgstr ""
  22770. #. type: Plain text
  22771. #: guix-git/doc/guix.texi:15633
  22772. 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."
  22773. msgstr ""
  22774. #. type: Plain text
  22775. #: guix-git/doc/guix.texi:15636
  22776. msgid "Mapped devices are declared using the @code{mapped-device} form, defined as follows; for examples, see below."
  22777. msgstr ""
  22778. #. type: deftp
  22779. #: guix-git/doc/guix.texi:15637
  22780. #, no-wrap
  22781. msgid "{Data Type} mapped-device"
  22782. msgstr ""
  22783. #. type: deftp
  22784. #: guix-git/doc/guix.texi:15640
  22785. msgid "Objects of this type represent device mappings that will be made when the system boots up."
  22786. msgstr ""
  22787. #. type: table
  22788. #: guix-git/doc/guix.texi:15647
  22789. 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."
  22790. msgstr ""
  22791. #. type: code{#1}
  22792. #: guix-git/doc/guix.texi:15648 guix-git/doc/guix.texi:15803
  22793. #, no-wrap
  22794. msgid "target"
  22795. msgstr ""
  22796. #. type: table
  22797. #: guix-git/doc/guix.texi:15657
  22798. 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\"}."
  22799. msgstr ""
  22800. #. type: code{#1}
  22801. #: guix-git/doc/guix.texi:15658 guix-git/doc/guix.texi:35187
  22802. #, no-wrap
  22803. msgid "targets"
  22804. msgstr ""
  22805. #. type: table
  22806. #: guix-git/doc/guix.texi:15661
  22807. msgid "This list of strings specifies names of the resulting mapped devices in case there are several. The format is identical to @var{target}."
  22808. msgstr ""
  22809. #. type: table
  22810. #: guix-git/doc/guix.texi:15665
  22811. msgid "This must be a @code{mapped-device-kind} object, which specifies how @var{source} is mapped to @var{target}."
  22812. msgstr ""
  22813. #. type: defvr
  22814. #: guix-git/doc/guix.texi:15668
  22815. #, no-wrap
  22816. msgid "{Scheme Variable} luks-device-mapping"
  22817. msgstr ""
  22818. #. type: defvr
  22819. #: guix-git/doc/guix.texi:15672
  22820. 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."
  22821. msgstr ""
  22822. #. type: defvr
  22823. #: guix-git/doc/guix.texi:15674
  22824. #, no-wrap
  22825. msgid "{Scheme Variable} raid-device-mapping"
  22826. msgstr ""
  22827. #. type: defvr
  22828. #: guix-git/doc/guix.texi:15679
  22829. 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."
  22830. msgstr ""
  22831. #. type: cindex
  22832. #: guix-git/doc/guix.texi:15681
  22833. #, no-wrap
  22834. msgid "LVM, logical volume manager"
  22835. msgstr ""
  22836. #. type: defvr
  22837. #: guix-git/doc/guix.texi:15682
  22838. #, no-wrap
  22839. msgid "{Scheme Variable} lvm-device-mapping"
  22840. msgstr ""
  22841. #. type: defvr
  22842. #: guix-git/doc/guix.texi:15687
  22843. 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."
  22844. msgstr ""
  22845. #. type: cindex
  22846. #: guix-git/doc/guix.texi:15689
  22847. #, no-wrap
  22848. msgid "disk encryption"
  22849. msgstr ""
  22850. #. type: cindex
  22851. #: guix-git/doc/guix.texi:15690
  22852. #, no-wrap
  22853. msgid "LUKS"
  22854. msgstr ""
  22855. #. type: Plain text
  22856. #: guix-git/doc/guix.texi:15698
  22857. 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})."
  22858. msgstr ""
  22859. #. type: lisp
  22860. #: guix-git/doc/guix.texi:15704
  22861. #, no-wrap
  22862. msgid ""
  22863. "(mapped-device\n"
  22864. " (source \"/dev/sda3\")\n"
  22865. " (target \"home\")\n"
  22866. " (type luks-device-mapping))\n"
  22867. msgstr ""
  22868. #. type: Plain text
  22869. #: guix-git/doc/guix.texi:15709
  22870. 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:"
  22871. msgstr ""
  22872. #. type: example
  22873. #: guix-git/doc/guix.texi:15712
  22874. #, no-wrap
  22875. msgid "cryptsetup luksUUID /dev/sda3\n"
  22876. msgstr ""
  22877. #. type: Plain text
  22878. #: guix-git/doc/guix.texi:15715
  22879. msgid "and use it as follows:"
  22880. msgstr ""
  22881. #. type: lisp
  22882. #: guix-git/doc/guix.texi:15721
  22883. #, no-wrap
  22884. msgid ""
  22885. "(mapped-device\n"
  22886. " (source (uuid \"cb67fc72-0d54-4c88-9d4b-b225f30b0f44\"))\n"
  22887. " (target \"home\")\n"
  22888. " (type luks-device-mapping))\n"
  22889. msgstr ""
  22890. #. type: cindex
  22891. #: guix-git/doc/guix.texi:15723
  22892. #, no-wrap
  22893. msgid "swap encryption"
  22894. msgstr ""
  22895. #. type: Plain text
  22896. #: guix-git/doc/guix.texi:15730
  22897. 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{Swap Space}, or @xref{Preparing for Installation,,Disk Partitioning}, for an example."
  22898. msgstr ""
  22899. #. type: Plain text
  22900. #: guix-git/doc/guix.texi:15733
  22901. msgid "A RAID device formed of the partitions @file{/dev/sda1} and @file{/dev/sdb1} may be declared as follows:"
  22902. msgstr ""
  22903. #. type: lisp
  22904. #: guix-git/doc/guix.texi:15739
  22905. #, no-wrap
  22906. msgid ""
  22907. "(mapped-device\n"
  22908. " (source (list \"/dev/sda1\" \"/dev/sdb1\"))\n"
  22909. " (target \"/dev/md0\")\n"
  22910. " (type raid-device-mapping))\n"
  22911. msgstr ""
  22912. #. type: Plain text
  22913. #: guix-git/doc/guix.texi:15746
  22914. 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."
  22915. msgstr ""
  22916. #. type: Plain text
  22917. #: guix-git/doc/guix.texi:15749
  22918. msgid "LVM logical volumes ``alpha'' and ``beta'' from volume group ``vg0'' can be declared as follows:"
  22919. msgstr ""
  22920. #. type: lisp
  22921. #: guix-git/doc/guix.texi:15755
  22922. #, no-wrap
  22923. msgid ""
  22924. "(mapped-device\n"
  22925. " (source \"vg0\")\n"
  22926. " (targets (list \"vg0-alpha\" \"vg0-beta\"))\n"
  22927. " (type lvm-device-mapping))\n"
  22928. msgstr ""
  22929. #. type: Plain text
  22930. #: guix-git/doc/guix.texi:15760
  22931. 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})."
  22932. msgstr ""
  22933. #. type: cindex
  22934. #: guix-git/doc/guix.texi:15763
  22935. #, no-wrap
  22936. msgid "swap space"
  22937. msgstr ""
  22938. #. type: Plain text
  22939. #: guix-git/doc/guix.texi:15773
  22940. msgid "Swap space, as it is commonly called, is a disk area specifically designated for paging: the process in charge of memory management (the Linux kernel or Hurd's default pager) can decide that some memory pages stored in RAM which belong to a running program but are unused should be stored on disk instead. It unloads those from the RAM, freeing up precious fast memory, and writes them to the swap space. If the program tries to access that very page, the memory management process loads it back into memory for the program to use."
  22941. msgstr ""
  22942. #. type: Plain text
  22943. #: guix-git/doc/guix.texi:15779
  22944. msgid "A common misconception about swap is that it is only useful when small amounts of RAM are available to the system. However, it should be noted that kernels often use all available RAM for disk access caching to make I/O faster, and thus paging out unused portions of program memory will expand the RAM available for such caching."
  22945. msgstr ""
  22946. #. type: Plain text
  22947. #: guix-git/doc/guix.texi:15783
  22948. msgid "For a more detailed description of how memory is managed from the viewpoint of a monolithic kernel, @xref{Memory Concepts,,, libc, The GNU C Library Reference Manual}."
  22949. msgstr ""
  22950. #. type: Plain text
  22951. #: guix-git/doc/guix.texi:15792
  22952. msgid "The Linux kernel has support for swap partitions and swap files: the former uses a whole disk partition for paging, whereas the second uses a file on a file system for that (the file system driver needs to support it). On a comparable setup, both have the same performance, so one should consider ease of use when deciding between them. Partitions are ``simpler'' and do not need file system support, but need to be allocated at disk formatting time (logical volumes notwithstanding), whereas files can be allocated and deallocated at any time."
  22953. msgstr ""
  22954. #. type: Plain text
  22955. #: guix-git/doc/guix.texi:15797
  22956. msgid "Note that swap space is not zeroed on shutdown, so sensitive data (such as passwords) may linger on it if it was paged out. As such, you should consider having your swap reside on an encrypted device (@pxref{Mapped Devices})."
  22957. msgstr ""
  22958. #. type: deftp
  22959. #: guix-git/doc/guix.texi:15798
  22960. #, fuzzy, no-wrap
  22961. msgid "{Data Type} swap-space"
  22962. msgstr "{数据类型} build-machine"
  22963. #. type: deftp
  22964. #: guix-git/doc/guix.texi:15801
  22965. msgid "Objects of this type represent swap spaces. They contain the following members:"
  22966. msgstr ""
  22967. #. type: table
  22968. #: guix-git/doc/guix.texi:15807
  22969. msgid "The device or file to use, either a UUID, a @code{file-system-label} or a string, as in the definition of a @code{file-system} (@pxref{File Systems})."
  22970. msgstr ""
  22971. #. type: table
  22972. #: guix-git/doc/guix.texi:15814
  22973. msgid "A list of @code{file-system} or @code{mapped-device} objects, upon which the availability of the space depends. Note that just like for @code{file-system} objects, dependencies which are needed for boot and mounted in early userspace are not managed by the Shepherd, and so automatically filtered out for you."
  22974. msgstr ""
  22975. #. type: item
  22976. #: guix-git/doc/guix.texi:15815
  22977. #, fuzzy, no-wrap
  22978. msgid "@code{priority} (default: @code{#f})"
  22979. msgstr "@code{port}(默认值:@code{22})"
  22980. #. type: table
  22981. #: guix-git/doc/guix.texi:15822
  22982. msgid "Only supported by the Linux kernel. Either @code{#f} to disable swap priority, or an integer between 0 and 32767. The kernel will first use swap spaces of higher priority when paging, and use same priority spaces on a round-robin basis. The kernel will use swap spaces without a set priority after prioritized spaces, and in the order that they appeared in (not round-robin)."
  22983. msgstr ""
  22984. #. type: item
  22985. #: guix-git/doc/guix.texi:15823
  22986. #, fuzzy, no-wrap
  22987. msgid "@code{discard?} (default: @code{#f})"
  22988. msgstr "@code{speed}(默认值:@code{1.0})"
  22989. #. type: table
  22990. #: guix-git/doc/guix.texi:15827
  22991. msgid "Only supported by the Linux kernel. When true, the kernel will notify the disk controller of discarded pages, for example with the TRIM operation on Solid State Drives."
  22992. msgstr ""
  22993. #. type: Plain text
  22994. #: guix-git/doc/guix.texi:15832
  22995. msgid "Here are some examples:"
  22996. msgstr ""
  22997. #. type: lisp
  22998. #: guix-git/doc/guix.texi:15835
  22999. #, no-wrap
  23000. msgid "(swap-space (target (uuid \"4dab5feb-d176-45de-b287-9b0a6e4c01cb\")))\n"
  23001. msgstr ""
  23002. #. type: Plain text
  23003. #: guix-git/doc/guix.texi:15840
  23004. 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."
  23005. msgstr ""
  23006. #. type: lisp
  23007. #: guix-git/doc/guix.texi:15845
  23008. #, no-wrap
  23009. msgid ""
  23010. "(swap-space\n"
  23011. " (target (file-system-label \"swap\"))\n"
  23012. " (dependencies mapped-devices))\n"
  23013. msgstr ""
  23014. #. type: Plain text
  23015. #: guix-git/doc/guix.texi:15851
  23016. msgid "Use the partition with label @code{swap}, which can be found after all the @var{mapped-devices} mapped devices have been opened. Again, the @command{swaplabel} command allows you to view and change the label of a Linux swap partition."
  23017. msgstr ""
  23018. #. type: Plain text
  23019. #: guix-git/doc/guix.texi:15854
  23020. msgid "Here's a more involved example with the corresponding @code{file-systems} part of an @code{operating-system} declaration."
  23021. msgstr ""
  23022. #. type: lisp
  23023. #: guix-git/doc/guix.texi:15865
  23024. #, no-wrap
  23025. msgid ""
  23026. "(file-systems\n"
  23027. " (list (file-system\n"
  23028. " (device (file-system-label \"root\"))\n"
  23029. " (mount-point \"/\")\n"
  23030. " (type \"ext4\"))\n"
  23031. " (file-system\n"
  23032. " (device (file-system-label \"btrfs\"))\n"
  23033. " (mount-point \"/btrfs\")\n"
  23034. " (type \"btrfs\"))))\n"
  23035. "\n"
  23036. msgstr ""
  23037. #. type: lisp
  23038. #: guix-git/doc/guix.texi:15872
  23039. #, no-wrap
  23040. msgid ""
  23041. "(swap-devices\n"
  23042. " (list\n"
  23043. " (swap-space\n"
  23044. " (target \"/btrfs/swapfile\")\n"
  23045. " (dependencies (filter (file-system-mount-point-predicate \"/btrfs\")\n"
  23046. " file-systems)))))\n"
  23047. msgstr ""
  23048. #. type: Plain text
  23049. #: guix-git/doc/guix.texi:15877
  23050. msgid "Use the file @file{/btrfs/swapfile} as swap space, which depends on the file system mounted at @file{/btrfs}. Note how we use Guile's filter to select the file system in an elegant fashion!"
  23051. msgstr ""
  23052. #. type: cindex
  23053. #: guix-git/doc/guix.texi:15881
  23054. #, no-wrap
  23055. msgid "users"
  23056. msgstr ""
  23057. #. type: cindex
  23058. #: guix-git/doc/guix.texi:15882
  23059. #, no-wrap
  23060. msgid "accounts"
  23061. msgstr ""
  23062. #. type: cindex
  23063. #: guix-git/doc/guix.texi:15883
  23064. #, no-wrap
  23065. msgid "user accounts"
  23066. msgstr ""
  23067. #. type: Plain text
  23068. #: guix-git/doc/guix.texi:15887
  23069. 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:"
  23070. msgstr ""
  23071. #. type: lisp
  23072. #: guix-git/doc/guix.texi:15897
  23073. #, no-wrap
  23074. msgid ""
  23075. "(user-account\n"
  23076. " (name \"alice\")\n"
  23077. " (group \"users\")\n"
  23078. " (supplementary-groups '(\"wheel\" ;allow use of sudo, etc.\n"
  23079. " \"audio\" ;sound card\n"
  23080. " \"video\" ;video devices such as webcams\n"
  23081. " \"cdrom\")) ;the good ol' CD-ROM\n"
  23082. " (comment \"Bob's sister\"))\n"
  23083. msgstr ""
  23084. #. type: Plain text
  23085. #: guix-git/doc/guix.texi:15901
  23086. msgid "Here's a user account that uses a different shell and a custom home directory (the default would be @file{\"/home/bob\"}):"
  23087. msgstr ""
  23088. #. type: lisp
  23089. #: guix-git/doc/guix.texi:15909
  23090. #, no-wrap
  23091. msgid ""
  23092. "(user-account\n"
  23093. " (name \"bob\")\n"
  23094. " (group \"users\")\n"
  23095. " (comment \"Alice's bro\")\n"
  23096. " (shell (file-append zsh \"/bin/zsh\"))\n"
  23097. " (home-directory \"/home/robert\"))\n"
  23098. msgstr ""
  23099. #. type: Plain text
  23100. #: guix-git/doc/guix.texi:15918
  23101. 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."
  23102. msgstr ""
  23103. #. type: deftp
  23104. #: guix-git/doc/guix.texi:15919
  23105. #, no-wrap
  23106. msgid "{Data Type} user-account"
  23107. msgstr ""
  23108. #. type: deftp
  23109. #: guix-git/doc/guix.texi:15922
  23110. msgid "Objects of this type represent user accounts. The following members may be specified:"
  23111. msgstr ""
  23112. #. type: table
  23113. #: guix-git/doc/guix.texi:15926
  23114. msgid "The name of the user account."
  23115. msgstr ""
  23116. #. type: itemx
  23117. #: guix-git/doc/guix.texi:15927 guix-git/doc/guix.texi:34851
  23118. #, no-wrap
  23119. msgid "group"
  23120. msgstr ""
  23121. #. type: cindex
  23122. #: guix-git/doc/guix.texi:15928 guix-git/doc/guix.texi:16012
  23123. #, no-wrap
  23124. msgid "groups"
  23125. msgstr ""
  23126. #. type: table
  23127. #: guix-git/doc/guix.texi:15931
  23128. msgid "This is the name (a string) or identifier (a number) of the user group this account belongs to."
  23129. msgstr ""
  23130. #. type: item
  23131. #: guix-git/doc/guix.texi:15932
  23132. #, no-wrap
  23133. msgid "@code{supplementary-groups} (default: @code{'()})"
  23134. msgstr ""
  23135. #. type: table
  23136. #: guix-git/doc/guix.texi:15935
  23137. msgid "Optionally, this can be defined as a list of group names that this account belongs to."
  23138. msgstr ""
  23139. #. type: item
  23140. #: guix-git/doc/guix.texi:15936
  23141. #, no-wrap
  23142. msgid "@code{uid} (default: @code{#f})"
  23143. msgstr ""
  23144. #. type: table
  23145. #: guix-git/doc/guix.texi:15940
  23146. 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."
  23147. msgstr ""
  23148. #. type: item
  23149. #: guix-git/doc/guix.texi:15941 guix-git/doc/guix.texi:18704
  23150. #, no-wrap
  23151. msgid "@code{comment} (default: @code{\"\"})"
  23152. msgstr ""
  23153. #. type: table
  23154. #: guix-git/doc/guix.texi:15943
  23155. msgid "A comment about the account, such as the account owner's full name."
  23156. msgstr ""
  23157. #. type: table
  23158. #: guix-git/doc/guix.texi:15948
  23159. msgid "Note that, for non-system accounts, users are free to change their real name as it appears in @file{/etc/passwd} using the @command{chfn} command. When they do, their choice prevails over the system administrator's choice; reconfiguring does @emph{not} change their name."
  23160. msgstr ""
  23161. #. type: code{#1}
  23162. #: guix-git/doc/guix.texi:15949
  23163. #, no-wrap
  23164. msgid "home-directory"
  23165. msgstr ""
  23166. #. type: table
  23167. #: guix-git/doc/guix.texi:15951
  23168. msgid "This is the name of the home directory for the account."
  23169. msgstr ""
  23170. #. type: item
  23171. #: guix-git/doc/guix.texi:15952
  23172. #, no-wrap
  23173. msgid "@code{create-home-directory?} (default: @code{#t})"
  23174. msgstr ""
  23175. #. type: table
  23176. #: guix-git/doc/guix.texi:15955
  23177. msgid "Indicates whether the home directory of this account should be created if it does not exist yet."
  23178. msgstr ""
  23179. #. type: item
  23180. #: guix-git/doc/guix.texi:15956
  23181. #, no-wrap
  23182. msgid "@code{shell} (default: Bash)"
  23183. msgstr ""
  23184. #. type: table
  23185. #: guix-git/doc/guix.texi:15960
  23186. 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:"
  23187. msgstr ""
  23188. #. type: lisp
  23189. #: guix-git/doc/guix.texi:15963
  23190. #, no-wrap
  23191. msgid "(file-append bash \"/bin/bash\")\n"
  23192. msgstr ""
  23193. #. type: table
  23194. #: guix-git/doc/guix.texi:15967
  23195. msgid "... and to the Zsh executable like that:"
  23196. msgstr ""
  23197. #. type: lisp
  23198. #: guix-git/doc/guix.texi:15970
  23199. #, no-wrap
  23200. msgid "(file-append zsh \"/bin/zsh\")\n"
  23201. msgstr ""
  23202. #. type: item
  23203. #: guix-git/doc/guix.texi:15972 guix-git/doc/guix.texi:16030
  23204. #, no-wrap
  23205. msgid "@code{system?} (default: @code{#f})"
  23206. msgstr ""
  23207. #. type: table
  23208. #: guix-git/doc/guix.texi:15976
  23209. 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."
  23210. msgstr ""
  23211. #. type: anchor{#1}
  23212. #: guix-git/doc/guix.texi:15978
  23213. msgid "user-account-password"
  23214. msgstr ""
  23215. #. type: cindex
  23216. #: guix-git/doc/guix.texi:15978
  23217. #, no-wrap
  23218. msgid "password, for user accounts"
  23219. msgstr ""
  23220. #. type: item
  23221. #: guix-git/doc/guix.texi:15979 guix-git/doc/guix.texi:16034
  23222. #, no-wrap
  23223. msgid "@code{password} (default: @code{#f})"
  23224. msgstr ""
  23225. #. type: table
  23226. #: guix-git/doc/guix.texi:15985
  23227. 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."
  23228. msgstr ""
  23229. #. type: table
  23230. #: guix-git/doc/guix.texi:15989
  23231. 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:"
  23232. msgstr ""
  23233. #. type: lisp
  23234. #: guix-git/doc/guix.texi:15994
  23235. #, no-wrap
  23236. msgid ""
  23237. "(user-account\n"
  23238. " (name \"charlie\")\n"
  23239. " (group \"users\")\n"
  23240. "\n"
  23241. msgstr ""
  23242. #. type: lisp
  23243. #: guix-git/doc/guix.texi:15997
  23244. #, no-wrap
  23245. msgid ""
  23246. " ;; Specify a SHA-512-hashed initial password.\n"
  23247. " (password (crypt \"InitialPassword!\" \"$6$abc\")))\n"
  23248. msgstr ""
  23249. #. type: quotation
  23250. #: guix-git/doc/guix.texi:16003
  23251. 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."
  23252. msgstr ""
  23253. #. type: table
  23254. #: guix-git/doc/guix.texi:16008
  23255. 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."
  23256. msgstr ""
  23257. #. type: Plain text
  23258. #: guix-git/doc/guix.texi:16014
  23259. msgid "User group declarations are even simpler:"
  23260. msgstr ""
  23261. #. type: lisp
  23262. #: guix-git/doc/guix.texi:16017
  23263. #, no-wrap
  23264. msgid "(user-group (name \"students\"))\n"
  23265. msgstr ""
  23266. #. type: deftp
  23267. #: guix-git/doc/guix.texi:16019
  23268. #, no-wrap
  23269. msgid "{Data Type} user-group"
  23270. msgstr ""
  23271. #. type: deftp
  23272. #: guix-git/doc/guix.texi:16021
  23273. msgid "This type is for, well, user groups. There are just a few fields:"
  23274. msgstr ""
  23275. #. type: table
  23276. #: guix-git/doc/guix.texi:16025
  23277. msgid "The name of the group."
  23278. msgstr ""
  23279. #. type: item
  23280. #: guix-git/doc/guix.texi:16026 guix-git/doc/guix.texi:31284
  23281. #, no-wrap
  23282. msgid "@code{id} (default: @code{#f})"
  23283. msgstr ""
  23284. #. type: table
  23285. #: guix-git/doc/guix.texi:16029
  23286. msgid "The group identifier (a number). If @code{#f}, a new number is automatically allocated when the group is created."
  23287. msgstr ""
  23288. #. type: table
  23289. #: guix-git/doc/guix.texi:16033
  23290. msgid "This Boolean value indicates whether the group is a ``system'' group. System groups have low numerical IDs."
  23291. msgstr ""
  23292. #. type: table
  23293. #: guix-git/doc/guix.texi:16037
  23294. msgid "What, user groups can have a password? Well, apparently yes. Unless @code{#f}, this field specifies the password of the group."
  23295. msgstr ""
  23296. #. type: Plain text
  23297. #: guix-git/doc/guix.texi:16043
  23298. msgid "For convenience, a variable lists all the basic user groups one may expect:"
  23299. msgstr ""
  23300. #. type: defvr
  23301. #: guix-git/doc/guix.texi:16044
  23302. #, no-wrap
  23303. msgid "{Scheme Variable} %base-groups"
  23304. msgstr ""
  23305. #. type: defvr
  23306. #: guix-git/doc/guix.texi:16049
  23307. 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''."
  23308. msgstr ""
  23309. #. type: defvr
  23310. #: guix-git/doc/guix.texi:16051
  23311. #, no-wrap
  23312. msgid "{Scheme Variable} %base-user-accounts"
  23313. msgstr ""
  23314. #. type: defvr
  23315. #: guix-git/doc/guix.texi:16054
  23316. 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."
  23317. msgstr ""
  23318. #. type: defvr
  23319. #: guix-git/doc/guix.texi:16057
  23320. 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."
  23321. msgstr ""
  23322. #. type: cindex
  23323. #: guix-git/doc/guix.texi:16063
  23324. #, no-wrap
  23325. msgid "keymap"
  23326. msgstr ""
  23327. #. type: Plain text
  23328. #: guix-git/doc/guix.texi:16071
  23329. 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."
  23330. msgstr ""
  23331. #. type: cindex
  23332. #: guix-git/doc/guix.texi:16072
  23333. #, no-wrap
  23334. msgid "keyboard layout, definition"
  23335. msgstr ""
  23336. #. type: Plain text
  23337. #: guix-git/doc/guix.texi:16074
  23338. msgid "There are three components that will want to know about your keyboard layout:"
  23339. msgstr ""
  23340. #. type: itemize
  23341. #: guix-git/doc/guix.texi:16081
  23342. 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."
  23343. msgstr ""
  23344. #. type: itemize
  23345. #: guix-git/doc/guix.texi:16086
  23346. msgid "The @emph{operating system kernel}, Linux, will need that so that the console is properly configured (@pxref{operating-system Reference, @code{keyboard-layout}})."
  23347. msgstr ""
  23348. #. type: itemize
  23349. #: guix-git/doc/guix.texi:16090
  23350. msgid "The @emph{graphical display server}, usually Xorg, also has its own idea of the keyboard layout (@pxref{X Window, @code{keyboard-layout}})."
  23351. msgstr ""
  23352. #. type: Plain text
  23353. #: guix-git/doc/guix.texi:16094
  23354. msgid "Guix allows you to configure all three separately but, fortunately, it allows you to share the same keyboard layout for all three components."
  23355. msgstr ""
  23356. #. type: cindex
  23357. #: guix-git/doc/guix.texi:16095
  23358. #, no-wrap
  23359. msgid "XKB, keyboard layouts"
  23360. msgstr ""
  23361. #. type: Plain text
  23362. #: guix-git/doc/guix.texi:16103
  23363. 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."
  23364. msgstr ""
  23365. #. type: deffn
  23366. #: guix-git/doc/guix.texi:16104
  23367. #, no-wrap
  23368. msgid "{Scheme Procedure} keyboard-layout @var{name} [@var{variant}] @"
  23369. msgstr ""
  23370. #. type: deffn
  23371. #: guix-git/doc/guix.texi:16107
  23372. msgid "[#:model] [#:options '()] Return a new keyboard layout with the given @var{name} and @var{variant}."
  23373. msgstr ""
  23374. #. type: deffn
  23375. #: guix-git/doc/guix.texi:16111
  23376. 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."
  23377. msgstr ""
  23378. #. type: Plain text
  23379. #: guix-git/doc/guix.texi:16114
  23380. msgid "Here are a few examples:"
  23381. msgstr ""
  23382. #. type: lisp
  23383. #: guix-git/doc/guix.texi:16119
  23384. #, no-wrap
  23385. msgid ""
  23386. ";; The German QWERTZ layout. Here we assume a standard\n"
  23387. ";; \"pc105\" keyboard model.\n"
  23388. "(keyboard-layout \"de\")\n"
  23389. "\n"
  23390. msgstr ""
  23391. #. type: lisp
  23392. #: guix-git/doc/guix.texi:16122
  23393. #, no-wrap
  23394. msgid ""
  23395. ";; The bépo variant of the French layout.\n"
  23396. "(keyboard-layout \"fr\" \"bepo\")\n"
  23397. "\n"
  23398. msgstr ""
  23399. #. type: lisp
  23400. #: guix-git/doc/guix.texi:16125
  23401. #, no-wrap
  23402. msgid ""
  23403. ";; The Catalan layout.\n"
  23404. "(keyboard-layout \"es\" \"cat\")\n"
  23405. "\n"
  23406. msgstr ""
  23407. #. type: lisp
  23408. #: guix-git/doc/guix.texi:16128
  23409. #, no-wrap
  23410. msgid ""
  23411. ";; Arabic layout with \"Alt-Shift\" to switch to US layout.\n"
  23412. "(keyboard-layout \"ar,us\" #:options '(\"grp:alt_shift_toggle\"))\n"
  23413. "\n"
  23414. msgstr ""
  23415. #. type: lisp
  23416. #: guix-git/doc/guix.texi:16135
  23417. #, no-wrap
  23418. msgid ""
  23419. ";; The Latin American Spanish layout. In addition, the\n"
  23420. ";; \"Caps Lock\" key is used as an additional \"Ctrl\" key,\n"
  23421. ";; and the \"Menu\" key is used as a \"Compose\" key to enter\n"
  23422. ";; accented letters.\n"
  23423. "(keyboard-layout \"latam\"\n"
  23424. " #:options '(\"ctrl:nocaps\" \"compose:menu\"))\n"
  23425. "\n"
  23426. msgstr ""
  23427. #. type: lisp
  23428. #: guix-git/doc/guix.texi:16138
  23429. #, no-wrap
  23430. msgid ""
  23431. ";; The Russian layout for a ThinkPad keyboard.\n"
  23432. "(keyboard-layout \"ru\" #:model \"thinkpad\")\n"
  23433. "\n"
  23434. msgstr ""
  23435. #. type: lisp
  23436. #: guix-git/doc/guix.texi:16143
  23437. #, no-wrap
  23438. msgid ""
  23439. ";; The \"US international\" layout, which is the US layout plus\n"
  23440. ";; dead keys to enter accented characters. This is for an\n"
  23441. ";; Apple MacBook keyboard.\n"
  23442. "(keyboard-layout \"us\" \"intl\" #:model \"macbook78\")\n"
  23443. msgstr ""
  23444. #. type: Plain text
  23445. #: guix-git/doc/guix.texi:16147
  23446. msgid "See the @file{share/X11/xkb} directory of the @code{xkeyboard-config} package for a complete list of supported layouts, variants, and models."
  23447. msgstr ""
  23448. #. type: cindex
  23449. #: guix-git/doc/guix.texi:16148
  23450. #, no-wrap
  23451. msgid "keyboard layout, configuration"
  23452. msgstr ""
  23453. #. type: Plain text
  23454. #: guix-git/doc/guix.texi:16152
  23455. 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:"
  23456. msgstr ""
  23457. #. type: findex
  23458. #: guix-git/doc/guix.texi:16153
  23459. #, no-wrap
  23460. msgid "set-xorg-configuration"
  23461. msgstr ""
  23462. #. type: lisp
  23463. #: guix-git/doc/guix.texi:16157
  23464. #, no-wrap
  23465. msgid ""
  23466. ";; Using the Turkish layout for the bootloader, the console,\n"
  23467. ";; and for Xorg.\n"
  23468. "\n"
  23469. msgstr ""
  23470. #. type: lisp
  23471. #: guix-git/doc/guix.texi:16169
  23472. #, no-wrap
  23473. msgid ""
  23474. "(operating-system\n"
  23475. " ;; ...\n"
  23476. " (keyboard-layout (keyboard-layout \"tr\")) ;for the console\n"
  23477. " (bootloader (bootloader-configuration\n"
  23478. " (bootloader grub-efi-bootloader)\n"
  23479. " (targets '(\"/boot/efi\"))\n"
  23480. " (keyboard-layout keyboard-layout))) ;for GRUB\n"
  23481. " (services (cons (set-xorg-configuration\n"
  23482. " (xorg-configuration ;for Xorg\n"
  23483. " (keyboard-layout keyboard-layout)))\n"
  23484. " %desktop-services)))\n"
  23485. msgstr ""
  23486. #. type: Plain text
  23487. #: guix-git/doc/guix.texi:16176
  23488. 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."
  23489. msgstr ""
  23490. #. type: Plain text
  23491. #: guix-git/doc/guix.texi:16179
  23492. 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:"
  23493. msgstr ""
  23494. #. type: itemize
  23495. #: guix-git/doc/guix.texi:16184
  23496. msgid "If you're using GNOME, its settings panel has a ``Region & Language'' entry where you can select one or more keyboard layouts."
  23497. msgstr ""
  23498. #. type: itemize
  23499. #: guix-git/doc/guix.texi:16189
  23500. 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:"
  23501. msgstr ""
  23502. #. type: example
  23503. #: guix-git/doc/guix.texi:16192
  23504. #, no-wrap
  23505. msgid "setxkbmap us dvorak\n"
  23506. msgstr ""
  23507. #. type: itemize
  23508. #: guix-git/doc/guix.texi:16199
  23509. 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:"
  23510. msgstr ""
  23511. #. type: example
  23512. #: guix-git/doc/guix.texi:16202
  23513. #, no-wrap
  23514. msgid "loadkeys fr-bepo\n"
  23515. msgstr ""
  23516. #. type: cindex
  23517. #: guix-git/doc/guix.texi:16208
  23518. #, no-wrap
  23519. msgid "locale"
  23520. msgstr ""
  23521. #. type: Plain text
  23522. #: guix-git/doc/guix.texi:16215
  23523. 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."
  23524. msgstr ""
  23525. #. type: cindex
  23526. #: guix-git/doc/guix.texi:16216
  23527. #, no-wrap
  23528. msgid "locale definition"
  23529. msgstr ""
  23530. #. type: Plain text
  23531. #: guix-git/doc/guix.texi:16220
  23532. 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}})."
  23533. msgstr ""
  23534. #. type: Plain text
  23535. #: guix-git/doc/guix.texi:16229
  23536. 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."
  23537. msgstr ""
  23538. #. type: Plain text
  23539. #: guix-git/doc/guix.texi:16232
  23540. msgid "For instance, to add the North Frisian locale for Germany, the value of that field may be:"
  23541. msgstr ""
  23542. #. type: lisp
  23543. #: guix-git/doc/guix.texi:16237
  23544. #, no-wrap
  23545. msgid ""
  23546. "(cons (locale-definition\n"
  23547. " (name \"fy_DE.utf8\") (source \"fy_DE\"))\n"
  23548. " %default-locale-definitions)\n"
  23549. msgstr ""
  23550. #. type: Plain text
  23551. #: guix-git/doc/guix.texi:16241
  23552. msgid "Likewise, to save space, one might want @code{locale-definitions} to list only the locales that are actually used, as in:"
  23553. msgstr ""
  23554. #. type: lisp
  23555. #: guix-git/doc/guix.texi:16246
  23556. #, no-wrap
  23557. msgid ""
  23558. "(list (locale-definition\n"
  23559. " (name \"ja_JP.eucjp\") (source \"ja_JP\")\n"
  23560. " (charset \"EUC-JP\")))\n"
  23561. msgstr ""
  23562. #. type: Plain text
  23563. #: guix-git/doc/guix.texi:16255
  23564. 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})."
  23565. msgstr ""
  23566. #. type: Plain text
  23567. #: guix-git/doc/guix.texi:16258
  23568. msgid "The @code{locale-definition} form is provided by the @code{(gnu system locale)} module. Details are given below."
  23569. msgstr ""
  23570. #. type: deftp
  23571. #: guix-git/doc/guix.texi:16259
  23572. #, no-wrap
  23573. msgid "{Data Type} locale-definition"
  23574. msgstr ""
  23575. #. type: deftp
  23576. #: guix-git/doc/guix.texi:16261
  23577. msgid "This is the data type of a locale definition."
  23578. msgstr ""
  23579. #. type: table
  23580. #: guix-git/doc/guix.texi:16267
  23581. msgid "The name of the locale. @xref{Locale Names,,, libc, The GNU C Library Reference Manual}, for more information on locale names."
  23582. msgstr ""
  23583. #. type: table
  23584. #: guix-git/doc/guix.texi:16271
  23585. msgid "The name of the source for that locale. This is typically the @code{@var{language}_@var{territory}} part of the locale name."
  23586. msgstr ""
  23587. #. type: item
  23588. #: guix-git/doc/guix.texi:16272
  23589. #, no-wrap
  23590. msgid "@code{charset} (default: @code{\"UTF-8\"})"
  23591. msgstr ""
  23592. #. type: table
  23593. #: guix-git/doc/guix.texi:16276
  23594. msgid "The ``character set'' or ``code set'' for that locale, @uref{https://www.iana.org/assignments/character-sets, as defined by IANA}."
  23595. msgstr ""
  23596. #. type: defvr
  23597. #: guix-git/doc/guix.texi:16280
  23598. #, no-wrap
  23599. msgid "{Scheme Variable} %default-locale-definitions"
  23600. msgstr ""
  23601. #. type: defvr
  23602. #: guix-git/doc/guix.texi:16284
  23603. 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."
  23604. msgstr ""
  23605. #. type: cindex
  23606. #: guix-git/doc/guix.texi:16285
  23607. #, no-wrap
  23608. msgid "locale name"
  23609. msgstr ""
  23610. #. type: cindex
  23611. #: guix-git/doc/guix.texi:16286
  23612. #, no-wrap
  23613. msgid "normalized codeset in locale names"
  23614. msgstr ""
  23615. #. type: defvr
  23616. #: guix-git/doc/guix.texi:16292
  23617. 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}."
  23618. msgstr ""
  23619. #. type: subsection
  23620. #: guix-git/doc/guix.texi:16294
  23621. #, no-wrap
  23622. msgid "Locale Data Compatibility Considerations"
  23623. msgstr ""
  23624. #. type: cindex
  23625. #: guix-git/doc/guix.texi:16296
  23626. #, no-wrap
  23627. msgid "incompatibility, of locale data"
  23628. msgstr ""
  23629. #. type: Plain text
  23630. #: guix-git/doc/guix.texi:16303
  23631. 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."
  23632. msgstr ""
  23633. #. type: Plain text
  23634. #: guix-git/doc/guix.texi:16315
  23635. 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."
  23636. msgstr ""
  23637. #. type: Plain text
  23638. #: guix-git/doc/guix.texi:16320
  23639. 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."
  23640. msgstr ""
  23641. #. type: Plain text
  23642. #: guix-git/doc/guix.texi:16324
  23643. 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})."
  23644. msgstr ""
  23645. #. type: Plain text
  23646. #: guix-git/doc/guix.texi:16331
  23647. 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}:"
  23648. msgstr ""
  23649. #. type: lisp
  23650. #: guix-git/doc/guix.texi:16334
  23651. #, no-wrap
  23652. msgid ""
  23653. "(use-package-modules base)\n"
  23654. "\n"
  23655. msgstr ""
  23656. #. type: lisp
  23657. #: guix-git/doc/guix.texi:16338
  23658. #, no-wrap
  23659. msgid ""
  23660. "(operating-system\n"
  23661. " ;; @dots{}\n"
  23662. " (locale-libcs (list glibc-2.21 (canonical-package glibc))))\n"
  23663. msgstr ""
  23664. #. type: Plain text
  23665. #: guix-git/doc/guix.texi:16343
  23666. 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}."
  23667. msgstr ""
  23668. #. type: cindex
  23669. #: guix-git/doc/guix.texi:16348
  23670. #, no-wrap
  23671. msgid "system services"
  23672. msgstr ""
  23673. #. type: Plain text
  23674. #: guix-git/doc/guix.texi:16354
  23675. 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."
  23676. msgstr ""
  23677. #. type: Plain text
  23678. #: guix-git/doc/guix.texi:16361
  23679. 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:"
  23680. msgstr ""
  23681. #. type: example
  23682. #: guix-git/doc/guix.texi:16364
  23683. #, no-wrap
  23684. msgid "# herd status\n"
  23685. msgstr ""
  23686. #. type: Plain text
  23687. #: guix-git/doc/guix.texi:16369
  23688. 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:"
  23689. msgstr ""
  23690. #. type: example
  23691. #: guix-git/doc/guix.texi:16373
  23692. #, no-wrap
  23693. msgid ""
  23694. "# herd doc nscd\n"
  23695. "Run libc's name service cache daemon (nscd).\n"
  23696. "\n"
  23697. msgstr ""
  23698. #. type: example
  23699. #: guix-git/doc/guix.texi:16376
  23700. #, no-wrap
  23701. msgid ""
  23702. "# herd doc nscd action invalidate\n"
  23703. "invalidate: Invalidate the given cache--e.g., 'hosts' for host name lookups.\n"
  23704. msgstr ""
  23705. #. type: Plain text
  23706. #: guix-git/doc/guix.texi:16381
  23707. 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:"
  23708. msgstr ""
  23709. #. type: example
  23710. #: guix-git/doc/guix.texi:16388
  23711. #, no-wrap
  23712. msgid ""
  23713. "# herd stop nscd\n"
  23714. "Service nscd has been stopped.\n"
  23715. "# herd restart xorg-server\n"
  23716. "Service xorg-server has been stopped.\n"
  23717. "Service xorg-server has been started.\n"
  23718. msgstr ""
  23719. #. type: Plain text
  23720. #: guix-git/doc/guix.texi:16393
  23721. msgid "The following sections document the available services, starting with the core services, that may be used in an @code{operating-system} declaration."
  23722. msgstr ""
  23723. #. type: subsection
  23724. #: guix-git/doc/guix.texi:16429 guix-git/doc/guix.texi:24718
  23725. #: guix-git/doc/guix.texi:24719
  23726. #, fuzzy, no-wrap
  23727. msgid "File-Sharing Services"
  23728. msgstr "消息服务"
  23729. #. type: menuentry
  23730. #: guix-git/doc/guix.texi:16429
  23731. #, fuzzy
  23732. msgid "File-sharing services."
  23733. msgstr "消息服务。"
  23734. #. type: Plain text
  23735. #: guix-git/doc/guix.texi:16437
  23736. 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."
  23737. msgstr ""
  23738. #. type: defvr
  23739. #: guix-git/doc/guix.texi:16438
  23740. #, no-wrap
  23741. msgid "{Scheme Variable} %base-services"
  23742. msgstr ""
  23743. #. type: defvr
  23744. #: guix-git/doc/guix.texi:16444
  23745. 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."
  23746. msgstr ""
  23747. #. type: defvr
  23748. #: guix-git/doc/guix.texi:16449
  23749. 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:"
  23750. msgstr ""
  23751. #. type: lisp
  23752. #: guix-git/doc/guix.texi:16454
  23753. #, no-wrap
  23754. msgid ""
  23755. "(append (list (service avahi-service-type)\n"
  23756. " (service openssh-service-type))\n"
  23757. " %base-services)\n"
  23758. msgstr ""
  23759. #. type: defvr
  23760. #: guix-git/doc/guix.texi:16457
  23761. #, no-wrap
  23762. msgid "{Scheme Variable} special-files-service-type"
  23763. msgstr ""
  23764. #. type: defvr
  23765. #: guix-git/doc/guix.texi:16460
  23766. 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}."
  23767. msgstr ""
  23768. #. type: defvr
  23769. #: guix-git/doc/guix.texi:16464
  23770. 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:"
  23771. msgstr ""
  23772. #. type: file{#1}
  23773. #: guix-git/doc/guix.texi:16465
  23774. #, no-wrap
  23775. msgid "/bin/sh"
  23776. msgstr ""
  23777. #. type: cindex
  23778. #: guix-git/doc/guix.texi:16466
  23779. #, no-wrap
  23780. msgid "@file{sh}, in @file{/bin}"
  23781. msgstr ""
  23782. #. type: lisp
  23783. #: guix-git/doc/guix.texi:16469
  23784. #, no-wrap
  23785. msgid "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\")))\n"
  23786. msgstr ""
  23787. #. type: file{#1}
  23788. #: guix-git/doc/guix.texi:16471
  23789. #, no-wrap
  23790. msgid "/usr/bin/env"
  23791. msgstr ""
  23792. #. type: cindex
  23793. #: guix-git/doc/guix.texi:16472
  23794. #, no-wrap
  23795. msgid "@file{env}, in @file{/usr/bin}"
  23796. msgstr ""
  23797. #. type: defvr
  23798. #: guix-git/doc/guix.texi:16475
  23799. msgid "If you want to add, say, @code{/usr/bin/env} to your system, you can change it to:"
  23800. msgstr ""
  23801. #. type: lisp
  23802. #: guix-git/doc/guix.texi:16479
  23803. #, no-wrap
  23804. msgid ""
  23805. "`((\"/bin/sh\" ,(file-append bash \"/bin/sh\"))\n"
  23806. " (\"/usr/bin/env\" ,(file-append coreutils \"/bin/env\")))\n"
  23807. msgstr ""
  23808. #. type: defvr
  23809. #: guix-git/doc/guix.texi:16486
  23810. 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)."
  23811. msgstr ""
  23812. #. type: deffn
  23813. #: guix-git/doc/guix.texi:16488
  23814. #, no-wrap
  23815. msgid "{Scheme Procedure} extra-special-file @var{file} @var{target}"
  23816. msgstr ""
  23817. #. type: deffn
  23818. #: guix-git/doc/guix.texi:16490
  23819. msgid "Use @var{target} as the ``special file'' @var{file}."
  23820. msgstr ""
  23821. #. type: deffn
  23822. #: guix-git/doc/guix.texi:16494
  23823. 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:"
  23824. msgstr ""
  23825. #. type: lisp
  23826. #: guix-git/doc/guix.texi:16498
  23827. #, no-wrap
  23828. msgid ""
  23829. "(extra-special-file \"/usr/bin/env\"\n"
  23830. " (file-append coreutils \"/bin/env\"))\n"
  23831. msgstr ""
  23832. #. type: deffn
  23833. #: guix-git/doc/guix.texi:16501
  23834. #, no-wrap
  23835. msgid "{Scheme Procedure} host-name-service @var{name}"
  23836. msgstr ""
  23837. #. type: deffn
  23838. #: guix-git/doc/guix.texi:16503
  23839. msgid "Return a service that sets the host name to @var{name}."
  23840. msgstr ""
  23841. #. type: defvr
  23842. #: guix-git/doc/guix.texi:16505
  23843. #, no-wrap
  23844. msgid "{Scheme Variable} console-font-service-type"
  23845. msgstr ""
  23846. #. type: defvr
  23847. #: guix-git/doc/guix.texi:16510
  23848. 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:"
  23849. msgstr ""
  23850. #. type: lisp
  23851. #: guix-git/doc/guix.texi:16519
  23852. #, no-wrap
  23853. msgid ""
  23854. "`((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  23855. " (\"tty2\" . ,(file-append\n"
  23856. " font-tamzen\n"
  23857. " \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  23858. " (\"tty3\" . ,(file-append\n"
  23859. " font-terminus\n"
  23860. " \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  23861. msgstr ""
  23862. #. type: deffn
  23863. #: guix-git/doc/guix.texi:16522
  23864. #, no-wrap
  23865. msgid "{Scheme Procedure} login-service @var{config}"
  23866. msgstr ""
  23867. #. type: deffn
  23868. #: guix-git/doc/guix.texi:16526
  23869. 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."
  23870. msgstr ""
  23871. #. type: deftp
  23872. #: guix-git/doc/guix.texi:16528
  23873. #, no-wrap
  23874. msgid "{Data Type} login-configuration"
  23875. msgstr ""
  23876. #. type: deftp
  23877. #: guix-git/doc/guix.texi:16530
  23878. msgid "This is the data type representing the configuration of login."
  23879. msgstr ""
  23880. #. type: code{#1}
  23881. #: guix-git/doc/guix.texi:16533
  23882. #, no-wrap
  23883. msgid "motd"
  23884. msgstr ""
  23885. #. type: cindex
  23886. #: guix-git/doc/guix.texi:16534
  23887. #, no-wrap
  23888. msgid "message of the day"
  23889. msgstr ""
  23890. #. type: table
  23891. #: guix-git/doc/guix.texi:16536
  23892. msgid "A file-like object containing the ``message of the day''."
  23893. msgstr ""
  23894. #. type: item
  23895. #: guix-git/doc/guix.texi:16537 guix-git/doc/guix.texi:19767
  23896. #, no-wrap
  23897. msgid "@code{allow-empty-passwords?} (default: @code{#t})"
  23898. msgstr ""
  23899. #. type: table
  23900. #: guix-git/doc/guix.texi:16540
  23901. msgid "Allow empty passwords by default so that first-time users can log in when the 'root' account has just been created."
  23902. msgstr ""
  23903. #. type: deffn
  23904. #: guix-git/doc/guix.texi:16544
  23905. #, no-wrap
  23906. msgid "{Scheme Procedure} mingetty-service @var{config}"
  23907. msgstr ""
  23908. #. type: deffn
  23909. #: guix-git/doc/guix.texi:16548
  23910. 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."
  23911. msgstr ""
  23912. #. type: deftp
  23913. #: guix-git/doc/guix.texi:16550
  23914. #, no-wrap
  23915. msgid "{Data Type} mingetty-configuration"
  23916. msgstr ""
  23917. #. type: deftp
  23918. #: guix-git/doc/guix.texi:16553
  23919. msgid "This is the data type representing the configuration of Mingetty, which provides the default implementation of virtual console log-in."
  23920. msgstr ""
  23921. #. type: code{#1}
  23922. #: guix-git/doc/guix.texi:16556 guix-git/doc/guix.texi:16595
  23923. #: guix-git/doc/guix.texi:34101
  23924. #, no-wrap
  23925. msgid "tty"
  23926. msgstr ""
  23927. #. type: table
  23928. #: guix-git/doc/guix.texi:16558
  23929. msgid "The name of the console this Mingetty runs on---e.g., @code{\"tty1\"}."
  23930. msgstr ""
  23931. #. type: item
  23932. #: guix-git/doc/guix.texi:16559 guix-git/doc/guix.texi:16624
  23933. #: guix-git/doc/guix.texi:16787
  23934. #, no-wrap
  23935. msgid "@code{auto-login} (default: @code{#f})"
  23936. msgstr ""
  23937. #. type: table
  23938. #: guix-git/doc/guix.texi:16563
  23939. 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."
  23940. msgstr ""
  23941. #. type: item
  23942. #: guix-git/doc/guix.texi:16564
  23943. #, no-wrap
  23944. msgid "@code{login-program} (default: @code{#f})"
  23945. msgstr ""
  23946. #. type: table
  23947. #: guix-git/doc/guix.texi:16568
  23948. 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."
  23949. msgstr ""
  23950. #. type: item
  23951. #: guix-git/doc/guix.texi:16569
  23952. #, no-wrap
  23953. msgid "@code{login-pause?} (default: @code{#f})"
  23954. msgstr ""
  23955. #. type: table
  23956. #: guix-git/doc/guix.texi:16572
  23957. 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."
  23958. msgstr ""
  23959. #. type: item
  23960. #: guix-git/doc/guix.texi:16573
  23961. #, fuzzy, no-wrap
  23962. msgid "@code{clear-on-logout?} (default: @code{#t})"
  23963. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  23964. #. type: table
  23965. #: guix-git/doc/guix.texi:16575
  23966. msgid "When set to @code{#t}, the screen will be cleared after logout."
  23967. msgstr ""
  23968. #. type: item
  23969. #: guix-git/doc/guix.texi:16576
  23970. #, no-wrap
  23971. msgid "@code{mingetty} (default: @var{mingetty})"
  23972. msgstr ""
  23973. #. type: table
  23974. #: guix-git/doc/guix.texi:16578
  23975. msgid "The Mingetty package to use."
  23976. msgstr ""
  23977. #. type: deffn
  23978. #: guix-git/doc/guix.texi:16582
  23979. #, no-wrap
  23980. msgid "{Scheme Procedure} agetty-service @var{config}"
  23981. msgstr ""
  23982. #. type: deffn
  23983. #: guix-git/doc/guix.texi:16586
  23984. 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."
  23985. msgstr ""
  23986. #. type: deftp
  23987. #: guix-git/doc/guix.texi:16588
  23988. #, no-wrap
  23989. msgid "{Data Type} agetty-configuration"
  23990. msgstr ""
  23991. #. type: deftp
  23992. #: guix-git/doc/guix.texi:16592
  23993. 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."
  23994. msgstr ""
  23995. #. type: table
  23996. #: guix-git/doc/guix.texi:16599
  23997. 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."
  23998. msgstr ""
  23999. #. type: table
  24000. #: guix-git/doc/guix.texi:16603
  24001. 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."
  24002. msgstr ""
  24003. #. type: table
  24004. #: guix-git/doc/guix.texi:16607
  24005. 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."
  24006. msgstr ""
  24007. #. type: table
  24008. #: guix-git/doc/guix.texi:16611
  24009. 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."
  24010. msgstr ""
  24011. #. type: item
  24012. #: guix-git/doc/guix.texi:16612 guix-git/doc/guix.texi:34262
  24013. #, no-wrap
  24014. msgid "@code{baud-rate} (default: @code{#f})"
  24015. msgstr ""
  24016. #. type: table
  24017. #: guix-git/doc/guix.texi:16615
  24018. msgid "A string containing a comma-separated list of one or more baud rates, in descending order."
  24019. msgstr ""
  24020. #. type: item
  24021. #: guix-git/doc/guix.texi:16616
  24022. #, no-wrap
  24023. msgid "@code{term} (default: @code{#f})"
  24024. msgstr ""
  24025. #. type: table
  24026. #: guix-git/doc/guix.texi:16619
  24027. msgid "A string containing the value used for the @env{TERM} environment variable."
  24028. msgstr ""
  24029. #. type: item
  24030. #: guix-git/doc/guix.texi:16620
  24031. #, no-wrap
  24032. msgid "@code{eight-bits?} (default: @code{#f})"
  24033. msgstr ""
  24034. #. type: table
  24035. #: guix-git/doc/guix.texi:16623
  24036. msgid "When @code{#t}, the tty is assumed to be 8-bit clean, and parity detection is disabled."
  24037. msgstr ""
  24038. #. type: table
  24039. #: guix-git/doc/guix.texi:16627 guix-git/doc/guix.texi:16790
  24040. 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."
  24041. msgstr ""
  24042. #. type: item
  24043. #: guix-git/doc/guix.texi:16628
  24044. #, no-wrap
  24045. msgid "@code{no-reset?} (default: @code{#f})"
  24046. msgstr ""
  24047. #. type: table
  24048. #: guix-git/doc/guix.texi:16630
  24049. msgid "When @code{#t}, don't reset terminal cflags (control modes)."
  24050. msgstr ""
  24051. #. type: item
  24052. #: guix-git/doc/guix.texi:16631
  24053. #, no-wrap
  24054. msgid "@code{host} (default: @code{#f})"
  24055. msgstr ""
  24056. #. type: table
  24057. #: guix-git/doc/guix.texi:16634
  24058. msgid "This accepts a string containing the ``login_host'', which will be written into the @file{/var/run/utmpx} file."
  24059. msgstr ""
  24060. #. type: item
  24061. #: guix-git/doc/guix.texi:16635
  24062. #, no-wrap
  24063. msgid "@code{remote?} (default: @code{#f})"
  24064. msgstr ""
  24065. #. type: table
  24066. #: guix-git/doc/guix.texi:16639
  24067. 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}."
  24068. msgstr ""
  24069. #. type: item
  24070. #: guix-git/doc/guix.texi:16640
  24071. #, no-wrap
  24072. msgid "@code{flow-control?} (default: @code{#f})"
  24073. msgstr ""
  24074. #. type: table
  24075. #: guix-git/doc/guix.texi:16642
  24076. msgid "When set to @code{#t}, enable hardware (RTS/CTS) flow control."
  24077. msgstr ""
  24078. #. type: item
  24079. #: guix-git/doc/guix.texi:16643
  24080. #, no-wrap
  24081. msgid "@code{no-issue?} (default: @code{#f})"
  24082. msgstr ""
  24083. #. type: table
  24084. #: guix-git/doc/guix.texi:16646
  24085. msgid "When set to @code{#t}, the contents of the @file{/etc/issue} file will not be displayed before presenting the login prompt."
  24086. msgstr ""
  24087. #. type: item
  24088. #: guix-git/doc/guix.texi:16647
  24089. #, no-wrap
  24090. msgid "@code{init-string} (default: @code{#f})"
  24091. msgstr ""
  24092. #. type: table
  24093. #: guix-git/doc/guix.texi:16650
  24094. 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."
  24095. msgstr ""
  24096. #. type: item
  24097. #: guix-git/doc/guix.texi:16651
  24098. #, no-wrap
  24099. msgid "@code{no-clear?} (default: @code{#f})"
  24100. msgstr ""
  24101. #. type: table
  24102. #: guix-git/doc/guix.texi:16654
  24103. msgid "When set to @code{#t}, agetty will not clear the screen before showing the login prompt."
  24104. msgstr ""
  24105. #. type: item
  24106. #: guix-git/doc/guix.texi:16655
  24107. #, no-wrap
  24108. msgid "@code{login-program} (default: (file-append shadow \"/bin/login\"))"
  24109. msgstr ""
  24110. #. type: table
  24111. #: guix-git/doc/guix.texi:16659
  24112. 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."
  24113. msgstr ""
  24114. #. type: item
  24115. #: guix-git/doc/guix.texi:16660
  24116. #, no-wrap
  24117. msgid "@code{local-line} (default: @code{#f})"
  24118. msgstr ""
  24119. #. type: table
  24120. #: guix-git/doc/guix.texi:16664
  24121. 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}."
  24122. msgstr ""
  24123. #. type: item
  24124. #: guix-git/doc/guix.texi:16665
  24125. #, no-wrap
  24126. msgid "@code{extract-baud?} (default: @code{#f})"
  24127. msgstr ""
  24128. #. type: table
  24129. #: guix-git/doc/guix.texi:16668
  24130. 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."
  24131. msgstr ""
  24132. #. type: item
  24133. #: guix-git/doc/guix.texi:16669
  24134. #, no-wrap
  24135. msgid "@code{skip-login?} (default: @code{#f})"
  24136. msgstr ""
  24137. #. type: table
  24138. #: guix-git/doc/guix.texi:16673
  24139. 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."
  24140. msgstr ""
  24141. #. type: item
  24142. #: guix-git/doc/guix.texi:16674
  24143. #, no-wrap
  24144. msgid "@code{no-newline?} (default: @code{#f})"
  24145. msgstr ""
  24146. #. type: table
  24147. #: guix-git/doc/guix.texi:16677
  24148. msgid "When set to @code{#t}, do not print a newline before printing the @file{/etc/issue} file."
  24149. msgstr ""
  24150. #. type: item
  24151. #: guix-git/doc/guix.texi:16679
  24152. #, no-wrap
  24153. msgid "@code{login-options} (default: @code{#f})"
  24154. msgstr ""
  24155. #. type: table
  24156. #: guix-git/doc/guix.texi:16684
  24157. 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."
  24158. msgstr ""
  24159. #. type: item
  24160. #: guix-git/doc/guix.texi:16685
  24161. #, no-wrap
  24162. msgid "@code{login-pause} (default: @code{#f})"
  24163. msgstr ""
  24164. #. type: table
  24165. #: guix-git/doc/guix.texi:16689
  24166. 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."
  24167. msgstr ""
  24168. #. type: item
  24169. #: guix-git/doc/guix.texi:16690
  24170. #, no-wrap
  24171. msgid "@code{chroot} (default: @code{#f})"
  24172. msgstr ""
  24173. #. type: table
  24174. #: guix-git/doc/guix.texi:16693
  24175. msgid "Change root to the specified directory. This option accepts a directory path as a string."
  24176. msgstr ""
  24177. #. type: item
  24178. #: guix-git/doc/guix.texi:16694
  24179. #, no-wrap
  24180. msgid "@code{hangup?} (default: @code{#f})"
  24181. msgstr ""
  24182. #. type: table
  24183. #: guix-git/doc/guix.texi:16697
  24184. msgid "Use the Linux system call @code{vhangup} to do a virtual hangup of the specified terminal."
  24185. msgstr ""
  24186. #. type: item
  24187. #: guix-git/doc/guix.texi:16698
  24188. #, no-wrap
  24189. msgid "@code{keep-baud?} (default: @code{#f})"
  24190. msgstr ""
  24191. #. type: table
  24192. #: guix-git/doc/guix.texi:16702
  24193. 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."
  24194. msgstr ""
  24195. #. type: item
  24196. #: guix-git/doc/guix.texi:16703
  24197. #, no-wrap
  24198. msgid "@code{timeout} (default: @code{#f})"
  24199. msgstr ""
  24200. #. type: table
  24201. #: guix-git/doc/guix.texi:16706
  24202. msgid "When set to an integer value, terminate if no user name could be read within @var{timeout} seconds."
  24203. msgstr ""
  24204. #. type: item
  24205. #: guix-git/doc/guix.texi:16707
  24206. #, no-wrap
  24207. msgid "@code{detect-case?} (default: @code{#f})"
  24208. msgstr ""
  24209. #. type: table
  24210. #: guix-git/doc/guix.texi:16713
  24211. 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."
  24212. msgstr ""
  24213. #. type: item
  24214. #: guix-git/doc/guix.texi:16714
  24215. #, no-wrap
  24216. msgid "@code{wait-cr?} (default: @code{#f})"
  24217. msgstr ""
  24218. #. type: table
  24219. #: guix-git/doc/guix.texi:16719
  24220. 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."
  24221. msgstr ""
  24222. #. type: item
  24223. #: guix-git/doc/guix.texi:16720
  24224. #, no-wrap
  24225. msgid "@code{no-hints?} (default: @code{#f})"
  24226. msgstr ""
  24227. #. type: table
  24228. #: guix-git/doc/guix.texi:16723
  24229. msgid "When set to @code{#t}, do not print hints about Num, Caps, and Scroll locks."
  24230. msgstr ""
  24231. #. type: item
  24232. #: guix-git/doc/guix.texi:16724
  24233. #, no-wrap
  24234. msgid "@code{no-hostname?} (default: @code{#f})"
  24235. msgstr ""
  24236. #. type: table
  24237. #: guix-git/doc/guix.texi:16727
  24238. msgid "By default, the hostname is printed. When this option is set to @code{#t}, no hostname will be shown at all."
  24239. msgstr ""
  24240. #. type: item
  24241. #: guix-git/doc/guix.texi:16728
  24242. #, no-wrap
  24243. msgid "@code{long-hostname?} (default: @code{#f})"
  24244. msgstr ""
  24245. #. type: table
  24246. #: guix-git/doc/guix.texi:16732
  24247. 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."
  24248. msgstr ""
  24249. #. type: item
  24250. #: guix-git/doc/guix.texi:16733
  24251. #, no-wrap
  24252. msgid "@code{erase-characters} (default: @code{#f})"
  24253. msgstr ""
  24254. #. type: table
  24255. #: guix-git/doc/guix.texi:16736
  24256. msgid "This option accepts a string of additional characters that should be interpreted as backspace when the user types their login name."
  24257. msgstr ""
  24258. #. type: item
  24259. #: guix-git/doc/guix.texi:16737
  24260. #, no-wrap
  24261. msgid "@code{kill-characters} (default: @code{#f})"
  24262. msgstr ""
  24263. #. type: table
  24264. #: guix-git/doc/guix.texi:16741
  24265. 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."
  24266. msgstr ""
  24267. #. type: item
  24268. #: guix-git/doc/guix.texi:16742
  24269. #, no-wrap
  24270. msgid "@code{chdir} (default: @code{#f})"
  24271. msgstr ""
  24272. #. type: table
  24273. #: guix-git/doc/guix.texi:16745
  24274. msgid "This option accepts, as a string, a directory path that will be changed to before login."
  24275. msgstr ""
  24276. #. type: item
  24277. #: guix-git/doc/guix.texi:16746
  24278. #, no-wrap
  24279. msgid "@code{delay} (default: @code{#f})"
  24280. msgstr ""
  24281. #. type: table
  24282. #: guix-git/doc/guix.texi:16749
  24283. msgid "This options accepts, as an integer, the number of seconds to sleep before opening the tty and displaying the login prompt."
  24284. msgstr ""
  24285. #. type: item
  24286. #: guix-git/doc/guix.texi:16750
  24287. #, no-wrap
  24288. msgid "@code{nice} (default: @code{#f})"
  24289. msgstr ""
  24290. #. type: table
  24291. #: guix-git/doc/guix.texi:16753
  24292. msgid "This option accepts, as an integer, the nice value with which to run the @command{login} program."
  24293. msgstr ""
  24294. #. type: item
  24295. #: guix-git/doc/guix.texi:16754 guix-git/doc/guix.texi:17046
  24296. #: guix-git/doc/guix.texi:17965 guix-git/doc/guix.texi:25702
  24297. #: guix-git/doc/guix.texi:27089 guix-git/doc/guix.texi:29507
  24298. #: guix-git/doc/guix.texi:30330 guix-git/doc/guix.texi:32087
  24299. #: guix-git/doc/guix.texi:34602
  24300. #, no-wrap
  24301. msgid "@code{extra-options} (default: @code{'()})"
  24302. msgstr ""
  24303. #. type: table
  24304. #: guix-git/doc/guix.texi:16757
  24305. msgid "This option provides an ``escape hatch'' for the user to provide arbitrary command-line arguments to @command{agetty} as a list of strings."
  24306. msgstr ""
  24307. #. type: item
  24308. #: guix-git/doc/guix.texi:16758
  24309. #, fuzzy, no-wrap
  24310. msgid "@code{shepherd-requirement} (default: @code{'()})"
  24311. msgstr "@code{features} (@code{'()})"
  24312. #. type: table
  24313. #: guix-git/doc/guix.texi:16761
  24314. msgid "The option can be used to provides extra shepherd requirements (for example @code{'syslogd}) to the respective @code{'term-}* shepherd service."
  24315. msgstr ""
  24316. #. type: deffn
  24317. #: guix-git/doc/guix.texi:16765
  24318. #, no-wrap
  24319. msgid "{Scheme Procedure} kmscon-service-type @var{config}"
  24320. msgstr ""
  24321. #. type: deffn
  24322. #: guix-git/doc/guix.texi:16769
  24323. 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."
  24324. msgstr ""
  24325. #. type: deftp
  24326. #: guix-git/doc/guix.texi:16771
  24327. #, no-wrap
  24328. msgid "{Data Type} kmscon-configuration"
  24329. msgstr ""
  24330. #. type: deftp
  24331. #: guix-git/doc/guix.texi:16774
  24332. msgid "This is the data type representing the configuration of Kmscon, which implements virtual console log-in."
  24333. msgstr ""
  24334. #. type: code{#1}
  24335. #: guix-git/doc/guix.texi:16777
  24336. #, no-wrap
  24337. msgid "virtual-terminal"
  24338. msgstr ""
  24339. #. type: table
  24340. #: guix-git/doc/guix.texi:16779
  24341. msgid "The name of the console this Kmscon runs on---e.g., @code{\"tty1\"}."
  24342. msgstr ""
  24343. #. type: item
  24344. #: guix-git/doc/guix.texi:16780
  24345. #, no-wrap
  24346. msgid "@code{login-program} (default: @code{#~(string-append #$shadow \"/bin/login\")})"
  24347. msgstr ""
  24348. #. type: table
  24349. #: guix-git/doc/guix.texi:16783
  24350. msgid "A gexp denoting the name of the log-in program. The default log-in program is @command{login} from the Shadow tool suite."
  24351. msgstr ""
  24352. #. type: item
  24353. #: guix-git/doc/guix.texi:16784
  24354. #, no-wrap
  24355. msgid "@code{login-arguments} (default: @code{'(\"-p\")})"
  24356. msgstr ""
  24357. #. type: table
  24358. #: guix-git/doc/guix.texi:16786
  24359. msgid "A list of arguments to pass to @command{login}."
  24360. msgstr ""
  24361. #. type: item
  24362. #: guix-git/doc/guix.texi:16791
  24363. #, no-wrap
  24364. msgid "@code{hardware-acceleration?} (default: #f)"
  24365. msgstr ""
  24366. #. type: table
  24367. #: guix-git/doc/guix.texi:16793
  24368. msgid "Whether to use hardware acceleration."
  24369. msgstr ""
  24370. #. type: item
  24371. #: guix-git/doc/guix.texi:16794
  24372. #, fuzzy, no-wrap
  24373. msgid "@code{font-engine} (default: @code{\"pango\"})"
  24374. msgstr "@code{journal-content}(默认值:@code{#f})"
  24375. #. type: table
  24376. #: guix-git/doc/guix.texi:16796
  24377. msgid "Font engine used in Kmscon."
  24378. msgstr ""
  24379. #. type: item
  24380. #: guix-git/doc/guix.texi:16797
  24381. #, fuzzy, no-wrap
  24382. msgid "@code{font-size} (default: @code{12})"
  24383. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  24384. #. type: table
  24385. #: guix-git/doc/guix.texi:16799
  24386. msgid "Font size used in Kmscon."
  24387. msgstr ""
  24388. #. type: table
  24389. #: guix-git/doc/guix.texi:16803
  24390. msgid "If this is @code{#f}, Kmscon uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  24391. msgstr ""
  24392. #. type: table
  24393. #: guix-git/doc/guix.texi:16807
  24394. msgid "Otherwise this must be a @code{keyboard-layout} object specifying the keyboard layout. @xref{Keyboard Layout}, for more information on how to specify the keyboard layout."
  24395. msgstr ""
  24396. #. type: item
  24397. #: guix-git/doc/guix.texi:16808
  24398. #, no-wrap
  24399. msgid "@code{kmscon} (default: @var{kmscon})"
  24400. msgstr ""
  24401. #. type: table
  24402. #: guix-git/doc/guix.texi:16810
  24403. msgid "The Kmscon package to use."
  24404. msgstr ""
  24405. #. type: cindex
  24406. #: guix-git/doc/guix.texi:16814
  24407. #, no-wrap
  24408. msgid "name service cache daemon"
  24409. msgstr ""
  24410. #. type: cindex
  24411. #: guix-git/doc/guix.texi:16815
  24412. #, no-wrap
  24413. msgid "nscd"
  24414. msgstr ""
  24415. #. type: deffn
  24416. #: guix-git/doc/guix.texi:16816
  24417. #, no-wrap
  24418. msgid "{Scheme Procedure} nscd-service [@var{config}] [#:glibc glibc] @"
  24419. msgstr ""
  24420. #. type: deffn
  24421. #: guix-git/doc/guix.texi:16821
  24422. 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."
  24423. msgstr ""
  24424. #. type: deffn
  24425. #: guix-git/doc/guix.texi:16823
  24426. msgid "For convenience, the Shepherd service for nscd provides the following actions:"
  24427. msgstr ""
  24428. #. type: item
  24429. #: guix-git/doc/guix.texi:16825
  24430. #, no-wrap
  24431. msgid "invalidate"
  24432. msgstr ""
  24433. #. type: cindex
  24434. #: guix-git/doc/guix.texi:16826
  24435. #, no-wrap
  24436. msgid "cache invalidation, nscd"
  24437. msgstr ""
  24438. #. type: cindex
  24439. #: guix-git/doc/guix.texi:16827
  24440. #, no-wrap
  24441. msgid "nscd, cache invalidation"
  24442. msgstr ""
  24443. #. type: table
  24444. #: guix-git/doc/guix.texi:16829
  24445. msgid "This invalidate the given cache. For instance, running:"
  24446. msgstr ""
  24447. #. type: example
  24448. #: guix-git/doc/guix.texi:16832
  24449. #, no-wrap
  24450. msgid "herd invalidate nscd hosts\n"
  24451. msgstr ""
  24452. #. type: table
  24453. #: guix-git/doc/guix.texi:16836
  24454. msgid "invalidates the host name lookup cache of nscd."
  24455. msgstr ""
  24456. #. type: item
  24457. #: guix-git/doc/guix.texi:16837
  24458. #, no-wrap
  24459. msgid "statistics"
  24460. msgstr ""
  24461. #. type: table
  24462. #: guix-git/doc/guix.texi:16840
  24463. msgid "Running @command{herd statistics nscd} displays information about nscd usage and caches."
  24464. msgstr ""
  24465. #. type: defvr
  24466. #: guix-git/doc/guix.texi:16844
  24467. #, no-wrap
  24468. msgid "{Scheme Variable} %nscd-default-configuration"
  24469. msgstr ""
  24470. #. type: defvr
  24471. #: guix-git/doc/guix.texi:16848
  24472. 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."
  24473. msgstr ""
  24474. #. type: deftp
  24475. #: guix-git/doc/guix.texi:16850
  24476. #, no-wrap
  24477. msgid "{Data Type} nscd-configuration"
  24478. msgstr ""
  24479. #. type: deftp
  24480. #: guix-git/doc/guix.texi:16853
  24481. msgid "This is the data type representing the name service cache daemon (nscd) configuration."
  24482. msgstr ""
  24483. #. type: item
  24484. #: guix-git/doc/guix.texi:16856
  24485. #, no-wrap
  24486. msgid "@code{name-services} (default: @code{'()})"
  24487. msgstr ""
  24488. #. type: table
  24489. #: guix-git/doc/guix.texi:16859
  24490. msgid "List of packages denoting @dfn{name services} that must be visible to the nscd---e.g., @code{(list @var{nss-mdns})}."
  24491. msgstr ""
  24492. #. type: item
  24493. #: guix-git/doc/guix.texi:16860
  24494. #, no-wrap
  24495. msgid "@code{glibc} (default: @var{glibc})"
  24496. msgstr ""
  24497. #. type: table
  24498. #: guix-git/doc/guix.texi:16863
  24499. msgid "Package object denoting the GNU C Library providing the @command{nscd} command."
  24500. msgstr ""
  24501. #. type: item
  24502. #: guix-git/doc/guix.texi:16864
  24503. #, no-wrap
  24504. msgid "@code{log-file} (default: @code{\"/var/log/nscd.log\"})"
  24505. msgstr ""
  24506. #. type: table
  24507. #: guix-git/doc/guix.texi:16867
  24508. msgid "Name of the nscd log file. This is where debugging output goes when @code{debug-level} is strictly positive."
  24509. msgstr ""
  24510. #. type: item
  24511. #: guix-git/doc/guix.texi:16868
  24512. #, no-wrap
  24513. msgid "@code{debug-level} (default: @code{0})"
  24514. msgstr ""
  24515. #. type: table
  24516. #: guix-git/doc/guix.texi:16871
  24517. msgid "Integer denoting the debugging levels. Higher numbers mean that more debugging output is logged."
  24518. msgstr ""
  24519. #. type: item
  24520. #: guix-git/doc/guix.texi:16872
  24521. #, fuzzy, no-wrap
  24522. msgid "@code{caches} (default: @code{%nscd-default-caches})"
  24523. msgstr "@code{xfce}(默认值:@code{xfce})"
  24524. #. type: table
  24525. #: guix-git/doc/guix.texi:16875
  24526. msgid "List of @code{<nscd-cache>} objects denoting things to be cached; see below."
  24527. msgstr ""
  24528. #. type: deftp
  24529. #: guix-git/doc/guix.texi:16879
  24530. #, no-wrap
  24531. msgid "{Data Type} nscd-cache"
  24532. msgstr ""
  24533. #. type: deftp
  24534. #: guix-git/doc/guix.texi:16881
  24535. msgid "Data type representing a cache database of nscd and its parameters."
  24536. msgstr ""
  24537. #. type: cindex
  24538. #: guix-git/doc/guix.texi:16884 guix-git/doc/guix.texi:21591
  24539. #, no-wrap
  24540. msgid "database"
  24541. msgstr ""
  24542. #. type: table
  24543. #: guix-git/doc/guix.texi:16889
  24544. 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})."
  24545. msgstr ""
  24546. #. type: code{#1}
  24547. #: guix-git/doc/guix.texi:16890
  24548. #, no-wrap
  24549. msgid "positive-time-to-live"
  24550. msgstr ""
  24551. #. type: itemx
  24552. #: guix-git/doc/guix.texi:16891
  24553. #, no-wrap
  24554. msgid "@code{negative-time-to-live} (default: @code{20})"
  24555. msgstr ""
  24556. #. type: table
  24557. #: guix-git/doc/guix.texi:16894
  24558. msgid "A number representing the number of seconds during which a positive or negative lookup result remains in cache."
  24559. msgstr ""
  24560. #. type: item
  24561. #: guix-git/doc/guix.texi:16895
  24562. #, no-wrap
  24563. msgid "@code{check-files?} (default: @code{#t})"
  24564. msgstr ""
  24565. #. type: table
  24566. #: guix-git/doc/guix.texi:16898
  24567. msgid "Whether to check for updates of the files corresponding to @var{database}."
  24568. msgstr ""
  24569. #. type: table
  24570. #: guix-git/doc/guix.texi:16902
  24571. 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."
  24572. msgstr ""
  24573. #. type: item
  24574. #: guix-git/doc/guix.texi:16903
  24575. #, no-wrap
  24576. msgid "@code{persistent?} (default: @code{#t})"
  24577. msgstr ""
  24578. #. type: table
  24579. #: guix-git/doc/guix.texi:16905
  24580. msgid "Whether the cache should be stored persistently on disk."
  24581. msgstr ""
  24582. #. type: item
  24583. #: guix-git/doc/guix.texi:16906
  24584. #, no-wrap
  24585. msgid "@code{shared?} (default: @code{#t})"
  24586. msgstr ""
  24587. #. type: table
  24588. #: guix-git/doc/guix.texi:16908
  24589. msgid "Whether the cache should be shared among users."
  24590. msgstr ""
  24591. #. type: item
  24592. #: guix-git/doc/guix.texi:16909
  24593. #, no-wrap
  24594. msgid "@code{max-database-size} (default: 32@tie{}MiB)"
  24595. msgstr ""
  24596. #. type: table
  24597. #: guix-git/doc/guix.texi:16911
  24598. msgid "Maximum size in bytes of the database cache."
  24599. msgstr ""
  24600. #. type: defvr
  24601. #: guix-git/doc/guix.texi:16918
  24602. #, no-wrap
  24603. msgid "{Scheme Variable} %nscd-default-caches"
  24604. msgstr ""
  24605. #. type: defvr
  24606. #: guix-git/doc/guix.texi:16921
  24607. msgid "List of @code{<nscd-cache>} objects used by default by @code{nscd-configuration} (see above)."
  24608. msgstr ""
  24609. #. type: defvr
  24610. #: guix-git/doc/guix.texi:16927
  24611. 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."
  24612. msgstr ""
  24613. #. type: anchor{#1}
  24614. #: guix-git/doc/guix.texi:16930
  24615. msgid "syslog-configuration-type"
  24616. msgstr ""
  24617. #. type: cindex
  24618. #: guix-git/doc/guix.texi:16930 guix-git/doc/guix.texi:16946
  24619. #, no-wrap
  24620. msgid "syslog"
  24621. msgstr ""
  24622. #. type: cindex
  24623. #: guix-git/doc/guix.texi:16931 guix-git/doc/guix.texi:17522
  24624. #, no-wrap
  24625. msgid "logging"
  24626. msgstr ""
  24627. #. type: deftp
  24628. #: guix-git/doc/guix.texi:16932
  24629. #, no-wrap
  24630. msgid "{Data Type} syslog-configuration"
  24631. msgstr ""
  24632. #. type: deftp
  24633. #: guix-git/doc/guix.texi:16934
  24634. msgid "This data type represents the configuration of the syslog daemon."
  24635. msgstr ""
  24636. #. type: item
  24637. #: guix-git/doc/guix.texi:16936
  24638. #, no-wrap
  24639. msgid "@code{syslogd} (default: @code{#~(string-append #$inetutils \"/libexec/syslogd\")})"
  24640. msgstr ""
  24641. #. type: table
  24642. #: guix-git/doc/guix.texi:16938
  24643. msgid "The syslog daemon to use."
  24644. msgstr ""
  24645. #. type: item
  24646. #: guix-git/doc/guix.texi:16939
  24647. #, no-wrap
  24648. msgid "@code{config-file} (default: @code{%default-syslog.conf})"
  24649. msgstr ""
  24650. #. type: table
  24651. #: guix-git/doc/guix.texi:16941
  24652. msgid "The syslog configuration file to use."
  24653. msgstr ""
  24654. #. type: anchor{#1}
  24655. #: guix-git/doc/guix.texi:16946
  24656. msgid "syslog-service"
  24657. msgstr ""
  24658. #. type: deffn
  24659. #: guix-git/doc/guix.texi:16947
  24660. #, no-wrap
  24661. msgid "{Scheme Procedure} syslog-service @var{config}"
  24662. msgstr ""
  24663. #. type: deffn
  24664. #: guix-git/doc/guix.texi:16949
  24665. msgid "Return a service that runs a syslog daemon according to @var{config}."
  24666. msgstr ""
  24667. #. type: deffn
  24668. #: guix-git/doc/guix.texi:16952
  24669. msgid "@xref{syslogd invocation,,, inetutils, GNU Inetutils}, for more information on the configuration file syntax."
  24670. msgstr ""
  24671. #. type: defvr
  24672. #: guix-git/doc/guix.texi:16954
  24673. #, no-wrap
  24674. msgid "{Scheme Variable} guix-service-type"
  24675. msgstr ""
  24676. #. type: defvr
  24677. #: guix-git/doc/guix.texi:16958
  24678. 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."
  24679. msgstr ""
  24680. #. type: anchor{#1}
  24681. #: guix-git/doc/guix.texi:16961
  24682. msgid "guix-configuration-type"
  24683. msgstr ""
  24684. #. type: deftp
  24685. #: guix-git/doc/guix.texi:16961
  24686. #, no-wrap
  24687. msgid "{Data Type} guix-configuration"
  24688. msgstr ""
  24689. #. type: deftp
  24690. #: guix-git/doc/guix.texi:16964
  24691. msgid "This data type represents the configuration of the Guix build daemon. @xref{Invoking guix-daemon}, for more information."
  24692. msgstr ""
  24693. #. type: item
  24694. #: guix-git/doc/guix.texi:16966
  24695. #, no-wrap
  24696. msgid "@code{guix} (default: @var{guix})"
  24697. msgstr ""
  24698. #. type: table
  24699. #: guix-git/doc/guix.texi:16968 guix-git/doc/guix.texi:17245
  24700. msgid "The Guix package to use."
  24701. msgstr ""
  24702. #. type: item
  24703. #: guix-git/doc/guix.texi:16969
  24704. #, no-wrap
  24705. msgid "@code{build-group} (default: @code{\"guixbuild\"})"
  24706. msgstr ""
  24707. #. type: table
  24708. #: guix-git/doc/guix.texi:16971
  24709. msgid "Name of the group for build user accounts."
  24710. msgstr ""
  24711. #. type: item
  24712. #: guix-git/doc/guix.texi:16972
  24713. #, no-wrap
  24714. msgid "@code{build-accounts} (default: @code{10})"
  24715. msgstr ""
  24716. #. type: table
  24717. #: guix-git/doc/guix.texi:16974
  24718. msgid "Number of build user accounts to create."
  24719. msgstr ""
  24720. #. type: item
  24721. #: guix-git/doc/guix.texi:16975
  24722. #, no-wrap
  24723. msgid "@code{authorize-key?} (default: @code{#t})"
  24724. msgstr ""
  24725. #. type: table
  24726. #: guix-git/doc/guix.texi:16982
  24727. msgid "Whether to authorize the substitute keys listed in @code{authorized-keys}---by default that of @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} (@pxref{Substitutes})."
  24728. msgstr ""
  24729. #. type: table
  24730. #: guix-git/doc/guix.texi:16988
  24731. 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."
  24732. msgstr ""
  24733. #. type: quotation
  24734. #: guix-git/doc/guix.texi:16995
  24735. 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}."
  24736. msgstr ""
  24737. #. type: vindex
  24738. #: guix-git/doc/guix.texi:16997
  24739. #, no-wrap
  24740. msgid "%default-authorized-guix-keys"
  24741. msgstr ""
  24742. #. type: item
  24743. #: guix-git/doc/guix.texi:16998
  24744. #, fuzzy, no-wrap
  24745. msgid "@code{authorized-keys} (default: @code{%default-authorized-guix-keys})"
  24746. msgstr "@code{mate}(默认值:@code{mate})"
  24747. #. type: table
  24748. #: guix-git/doc/guix.texi:17004
  24749. msgid "The list of authorized key files for archive imports, as a list of string-valued gexps (@pxref{Invoking guix archive}). By default, it contains that of @code{@value{SUBSTITUTE-SERVER-1}} and @code{@value{SUBSTITUTE-SERVER-2}} (@pxref{Substitutes}). See @code{substitute-urls} below for an example on how to change it."
  24750. msgstr ""
  24751. #. type: item
  24752. #: guix-git/doc/guix.texi:17005
  24753. #, no-wrap
  24754. msgid "@code{use-substitutes?} (default: @code{#t})"
  24755. msgstr ""
  24756. #. type: table
  24757. #: guix-git/doc/guix.texi:17007
  24758. msgid "Whether to use substitutes."
  24759. msgstr ""
  24760. #. type: item
  24761. #: guix-git/doc/guix.texi:17008 guix-git/doc/guix.texi:29604
  24762. #, fuzzy, no-wrap
  24763. msgid "@code{substitute-urls} (default: @code{%default-substitute-urls})"
  24764. msgstr "@code{mate}(默认值:@code{mate})"
  24765. #. type: table
  24766. #: guix-git/doc/guix.texi:17010 guix-git/doc/guix.texi:29606
  24767. msgid "The list of URLs where to look for substitutes by default."
  24768. msgstr ""
  24769. #. type: table
  24770. #: guix-git/doc/guix.texi:17017
  24771. msgid "Suppose you would like to fetch substitutes from @code{guix.example.org} in addition to @code{@value{SUBSTITUTE-SERVER-1}}. You will need to do two things: (1) add @code{guix.example.org} to @code{substitute-urls}, and (2) authorize its signing key, having done appropriate checks (@pxref{Substitute Server Authorization}). The configuration below does exactly that:"
  24772. msgstr ""
  24773. #. type: lisp
  24774. #: guix-git/doc/guix.texi:17026
  24775. #, no-wrap
  24776. msgid ""
  24777. "(guix-configuration\n"
  24778. " (substitute-urls\n"
  24779. " (append (list \"https://guix.example.org\")\n"
  24780. " %default-substitute-urls))\n"
  24781. " (authorized-keys\n"
  24782. " (append (list (local-file \"./guix.example.org-key.pub\"))\n"
  24783. " %default-authorized-guix-keys)))\n"
  24784. msgstr ""
  24785. #. type: table
  24786. #: guix-git/doc/guix.texi:17031
  24787. 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."
  24788. msgstr ""
  24789. #. type: item
  24790. #: guix-git/doc/guix.texi:17032
  24791. #, no-wrap
  24792. msgid "@code{max-silent-time} (default: @code{0})"
  24793. msgstr ""
  24794. #. type: itemx
  24795. #: guix-git/doc/guix.texi:17033
  24796. #, no-wrap
  24797. msgid "@code{timeout} (default: @code{0})"
  24798. msgstr ""
  24799. #. type: table
  24800. #: guix-git/doc/guix.texi:17037
  24801. 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."
  24802. msgstr ""
  24803. #. type: item
  24804. #: guix-git/doc/guix.texi:17038
  24805. #, fuzzy, no-wrap
  24806. #| msgid "@code{compression-level} (default: @code{3})"
  24807. msgid "@code{log-compression} (default: @code{'gzip})"
  24808. msgstr "@code{compression-level}(默认值:@code{3})"
  24809. #. type: table
  24810. #: guix-git/doc/guix.texi:17041
  24811. msgid "The type of compression used for build logs---one of @code{gzip}, @code{bzip2}, or @code{none}."
  24812. msgstr ""
  24813. #. type: item
  24814. #: guix-git/doc/guix.texi:17042
  24815. #, fuzzy, no-wrap
  24816. msgid "@code{discover?} (default: @code{#f})"
  24817. msgstr "@code{speed}(默认值:@code{1.0})"
  24818. #. type: table
  24819. #: guix-git/doc/guix.texi:17048
  24820. msgid "List of extra command-line options for @command{guix-daemon}."
  24821. msgstr ""
  24822. #. type: item
  24823. #: guix-git/doc/guix.texi:17049
  24824. #, no-wrap
  24825. msgid "@code{log-file} (default: @code{\"/var/log/guix-daemon.log\"})"
  24826. msgstr ""
  24827. #. type: table
  24828. #: guix-git/doc/guix.texi:17052
  24829. msgid "File where @command{guix-daemon}'s standard output and standard error are written."
  24830. msgstr ""
  24831. #. type: cindex
  24832. #: guix-git/doc/guix.texi:17053
  24833. #, no-wrap
  24834. msgid "HTTP proxy, for @code{guix-daemon}"
  24835. msgstr ""
  24836. #. type: cindex
  24837. #: guix-git/doc/guix.texi:17054
  24838. #, no-wrap
  24839. msgid "proxy, for @code{guix-daemon} HTTP access"
  24840. msgstr ""
  24841. #. type: item
  24842. #: guix-git/doc/guix.texi:17055
  24843. #, no-wrap
  24844. msgid "@code{http-proxy} (default: @code{#f})"
  24845. msgstr ""
  24846. #. type: table
  24847. #: guix-git/doc/guix.texi:17058
  24848. msgid "The URL of the HTTP and HTTPS proxy used for downloading fixed-output derivations and substitutes."
  24849. msgstr ""
  24850. #. type: table
  24851. #: guix-git/doc/guix.texi:17061
  24852. msgid "It is also possible to change the daemon's proxy at run time through the @code{set-http-proxy} action, which restarts it:"
  24853. msgstr ""
  24854. #. type: example
  24855. #: guix-git/doc/guix.texi:17064
  24856. #, no-wrap
  24857. msgid "herd set-http-proxy guix-daemon http://localhost:8118\n"
  24858. msgstr ""
  24859. #. type: table
  24860. #: guix-git/doc/guix.texi:17067
  24861. msgid "To clear the proxy settings, run:"
  24862. msgstr ""
  24863. #. type: example
  24864. #: guix-git/doc/guix.texi:17070
  24865. #, fuzzy, no-wrap
  24866. msgid "herd set-http-proxy guix-daemon\n"
  24867. msgstr "安全,guix-daemon"
  24868. #. type: item
  24869. #: guix-git/doc/guix.texi:17072
  24870. #, no-wrap
  24871. msgid "@code{tmpdir} (default: @code{#f})"
  24872. msgstr ""
  24873. #. type: table
  24874. #: guix-git/doc/guix.texi:17074
  24875. msgid "A directory path where the @command{guix-daemon} will perform builds."
  24876. msgstr ""
  24877. #. type: deffn
  24878. #: guix-git/doc/guix.texi:17078
  24879. #, no-wrap
  24880. msgid "{Scheme Procedure} udev-service [#:udev @var{eudev} #:rules @code{'()}]"
  24881. msgstr ""
  24882. #. type: deffn
  24883. #: guix-git/doc/guix.texi:17084
  24884. 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."
  24885. msgstr ""
  24886. #. type: deffn
  24887. #: guix-git/doc/guix.texi:17087
  24888. msgid "The @command{herd rules udev} command, as root, returns the name of the directory containing all the active udev rules."
  24889. msgstr ""
  24890. #. type: deffn
  24891. #: guix-git/doc/guix.texi:17089
  24892. #, no-wrap
  24893. msgid "{Scheme Procedure} udev-rule [@var{file-name} @var{contents}]"
  24894. msgstr ""
  24895. #. type: deffn
  24896. #: guix-git/doc/guix.texi:17092
  24897. msgid "Return a udev-rule file named @var{file-name} containing the rules defined by the @var{contents} literal."
  24898. msgstr ""
  24899. #. type: deffn
  24900. #: guix-git/doc/guix.texi:17096
  24901. 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."
  24902. msgstr ""
  24903. #. type: lisp
  24904. #: guix-git/doc/guix.texi:17104
  24905. #, no-wrap
  24906. msgid ""
  24907. "(define %example-udev-rule\n"
  24908. " (udev-rule\n"
  24909. " \"90-usb-thing.rules\"\n"
  24910. " (string-append \"ACTION==\\\"add\\\", SUBSYSTEM==\\\"usb\\\", \"\n"
  24911. " \"ATTR@{product@}==\\\"Example\\\", \"\n"
  24912. " \"RUN+=\\\"/path/to/script\\\"\")))\n"
  24913. msgstr ""
  24914. #. type: deffn
  24915. #: guix-git/doc/guix.texi:17107
  24916. #, no-wrap
  24917. msgid "{Scheme Procedure} udev-rules-service [@var{name} @var{rules}] @"
  24918. msgstr ""
  24919. #. type: deffn
  24920. #: guix-git/doc/guix.texi:17114
  24921. 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."
  24922. msgstr ""
  24923. #. type: deffn
  24924. #: guix-git/doc/guix.texi:17117
  24925. msgid "Here we show how it can be used to extend @code{udev-service-type} with the previously defined rule @code{%example-udev-rule}."
  24926. msgstr ""
  24927. #. type: lisp
  24928. #: guix-git/doc/guix.texi:17124
  24929. #, no-wrap
  24930. msgid ""
  24931. "(operating-system\n"
  24932. " ;; @dots{}\n"
  24933. " (services\n"
  24934. " (cons (udev-rules-service 'usb-thing %example-udev-rule)\n"
  24935. " %desktop-services)))\n"
  24936. msgstr ""
  24937. #. type: deffn
  24938. #: guix-git/doc/guix.texi:17127
  24939. #, no-wrap
  24940. msgid "{Scheme Procedure} file->udev-rule [@var{file-name} @var{file}]"
  24941. msgstr ""
  24942. #. type: deffn
  24943. #: guix-git/doc/guix.texi:17130
  24944. msgid "Return a udev file named @var{file-name} containing the rules defined within @var{file}, a file-like object."
  24945. msgstr ""
  24946. #. type: deffn
  24947. #: guix-git/doc/guix.texi:17132
  24948. msgid "The following example showcases how we can use an existing rule file."
  24949. msgstr ""
  24950. #. type: lisp
  24951. #: guix-git/doc/guix.texi:17137
  24952. #, no-wrap
  24953. msgid ""
  24954. "(use-modules (guix download) ;for url-fetch\n"
  24955. " (guix packages) ;for origin\n"
  24956. " @dots{})\n"
  24957. "\n"
  24958. msgstr ""
  24959. #. type: lisp
  24960. #: guix-git/doc/guix.texi:17148
  24961. #, no-wrap
  24962. msgid ""
  24963. "(define %android-udev-rules\n"
  24964. " (file->udev-rule\n"
  24965. " \"51-android-udev.rules\"\n"
  24966. " (let ((version \"20170910\"))\n"
  24967. " (origin\n"
  24968. " (method url-fetch)\n"
  24969. " (uri (string-append \"https://raw.githubusercontent.com/M0Rf30/\"\n"
  24970. " \"android-udev-rules/\" version \"/51-android.rules\"))\n"
  24971. " (sha256\n"
  24972. " (base32 \"0lmmagpyb6xsq6zcr2w1cyx9qmjqmajkvrdbhjx32gqf1d9is003\"))))))\n"
  24973. msgstr ""
  24974. #. type: Plain text
  24975. #: guix-git/doc/guix.texi:17157
  24976. 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."
  24977. msgstr ""
  24978. #. type: Plain text
  24979. #: guix-git/doc/guix.texi:17166
  24980. 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."
  24981. msgstr ""
  24982. #. type: lisp
  24983. #: guix-git/doc/guix.texi:17171
  24984. #, no-wrap
  24985. msgid ""
  24986. "(use-modules (gnu packages android) ;for android-udev-rules\n"
  24987. " (gnu system shadow) ;for user-group\n"
  24988. " @dots{})\n"
  24989. "\n"
  24990. msgstr ""
  24991. #. type: lisp
  24992. #: guix-git/doc/guix.texi:17184
  24993. #, no-wrap
  24994. msgid ""
  24995. "(operating-system\n"
  24996. " ;; @dots{}\n"
  24997. " (users (cons (user-account\n"
  24998. " ;; @dots{}\n"
  24999. " (supplementary-groups\n"
  25000. " '(\"adbusers\" ;for adb\n"
  25001. " \"wheel\" \"netdev\" \"audio\" \"video\")))))\n"
  25002. " ;; @dots{}\n"
  25003. " (services\n"
  25004. " (cons (udev-rules-service 'android android-udev-rules\n"
  25005. " #:groups '(\"adbusers\"))\n"
  25006. " %desktop-services)))\n"
  25007. msgstr ""
  25008. #. type: defvr
  25009. #: guix-git/doc/guix.texi:17186
  25010. #, no-wrap
  25011. msgid "{Scheme Variable} urandom-seed-service-type"
  25012. msgstr ""
  25013. #. type: defvr
  25014. #: guix-git/doc/guix.texi:17191
  25015. 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."
  25016. msgstr ""
  25017. #. type: defvr
  25018. #: guix-git/doc/guix.texi:17193
  25019. #, no-wrap
  25020. msgid "{Scheme Variable} %random-seed-file"
  25021. msgstr ""
  25022. #. type: defvr
  25023. #: guix-git/doc/guix.texi:17197
  25024. 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}."
  25025. msgstr ""
  25026. #. type: cindex
  25027. #: guix-git/doc/guix.texi:17199
  25028. #, no-wrap
  25029. msgid "mouse"
  25030. msgstr ""
  25031. #. type: cindex
  25032. #: guix-git/doc/guix.texi:17200
  25033. #, no-wrap
  25034. msgid "gpm"
  25035. msgstr ""
  25036. #. type: defvr
  25037. #: guix-git/doc/guix.texi:17201
  25038. #, no-wrap
  25039. msgid "{Scheme Variable} gpm-service-type"
  25040. msgstr ""
  25041. #. type: defvr
  25042. #: guix-git/doc/guix.texi:17206
  25043. 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."
  25044. msgstr ""
  25045. #. type: defvr
  25046. #: guix-git/doc/guix.texi:17209
  25047. 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}."
  25048. msgstr ""
  25049. #. type: deftp
  25050. #: guix-git/doc/guix.texi:17211
  25051. #, no-wrap
  25052. msgid "{Data Type} gpm-configuration"
  25053. msgstr ""
  25054. #. type: deftp
  25055. #: guix-git/doc/guix.texi:17213
  25056. msgid "Data type representing the configuration of GPM."
  25057. msgstr ""
  25058. #. type: item
  25059. #: guix-git/doc/guix.texi:17215
  25060. #, no-wrap
  25061. msgid "@code{options} (default: @code{%default-gpm-options})"
  25062. msgstr ""
  25063. #. type: table
  25064. #: guix-git/doc/guix.texi:17220
  25065. 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."
  25066. msgstr ""
  25067. #. type: item
  25068. #: guix-git/doc/guix.texi:17221
  25069. #, no-wrap
  25070. msgid "@code{gpm} (default: @code{gpm})"
  25071. msgstr ""
  25072. #. type: table
  25073. #: guix-git/doc/guix.texi:17223
  25074. msgid "The GPM package to use."
  25075. msgstr ""
  25076. #. type: anchor{#1}
  25077. #: guix-git/doc/guix.texi:17228
  25078. msgid "guix-publish-service-type"
  25079. msgstr ""
  25080. #. type: deffn
  25081. #: guix-git/doc/guix.texi:17228
  25082. #, no-wrap
  25083. msgid "{Scheme Variable} guix-publish-service-type"
  25084. msgstr ""
  25085. #. type: deffn
  25086. #: guix-git/doc/guix.texi:17232
  25087. 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."
  25088. msgstr ""
  25089. #. type: deffn
  25090. #: guix-git/doc/guix.texi:17236
  25091. 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."
  25092. msgstr ""
  25093. #. type: deftp
  25094. #: guix-git/doc/guix.texi:17238
  25095. #, no-wrap
  25096. msgid "{Data Type} guix-publish-configuration"
  25097. msgstr ""
  25098. #. type: deftp
  25099. #: guix-git/doc/guix.texi:17241
  25100. msgid "Data type representing the configuration of the @code{guix publish} service."
  25101. msgstr ""
  25102. #. type: item
  25103. #: guix-git/doc/guix.texi:17243
  25104. #, no-wrap
  25105. msgid "@code{guix} (default: @code{guix})"
  25106. msgstr ""
  25107. #. type: item
  25108. #: guix-git/doc/guix.texi:17246 guix-git/doc/guix.texi:31942
  25109. #, no-wrap
  25110. msgid "@code{port} (default: @code{80})"
  25111. msgstr ""
  25112. #. type: table
  25113. #: guix-git/doc/guix.texi:17248
  25114. msgid "The TCP port to listen for connections."
  25115. msgstr ""
  25116. #. type: item
  25117. #: guix-git/doc/guix.texi:17249 guix-git/doc/guix.texi:29487
  25118. #: guix-git/doc/guix.texi:33323
  25119. #, no-wrap
  25120. msgid "@code{host} (default: @code{\"localhost\"})"
  25121. msgstr ""
  25122. #. type: table
  25123. #: guix-git/doc/guix.texi:17252
  25124. msgid "The host (and thus, network interface) to listen to. Use @code{\"0.0.0.0\"} to listen on all the network interfaces."
  25125. msgstr ""
  25126. #. type: item
  25127. #: guix-git/doc/guix.texi:17253
  25128. #, fuzzy, no-wrap
  25129. msgid "@code{advertise?} (default: @code{#f})"
  25130. msgstr "@code{challenge}(默认值:@code{#f})"
  25131. #. type: table
  25132. #: guix-git/doc/guix.texi:17256
  25133. msgid "When true, advertise the service on the local network @i{via} the DNS-SD protocol, using Avahi."
  25134. msgstr ""
  25135. #. type: table
  25136. #: guix-git/doc/guix.texi:17260
  25137. 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."
  25138. msgstr ""
  25139. #. type: item
  25140. #: guix-git/doc/guix.texi:17261
  25141. #, fuzzy, no-wrap
  25142. msgid "@code{compression} (default: @code{'((\"gzip\" 3) (\"zstd\" 3))})"
  25143. msgstr "@code{compression-level}(默认值:@code{3})"
  25144. #. type: table
  25145. #: guix-git/doc/guix.texi:17265
  25146. 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:"
  25147. msgstr ""
  25148. #. type: lisp
  25149. #: guix-git/doc/guix.texi:17268
  25150. #, no-wrap
  25151. msgid "'((\"lzip\" 7) (\"gzip\" 9))\n"
  25152. msgstr ""
  25153. #. type: table
  25154. #: guix-git/doc/guix.texi:17274
  25155. 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."
  25156. msgstr ""
  25157. #. type: table
  25158. #: guix-git/doc/guix.texi:17276
  25159. msgid "An empty list disables compression altogether."
  25160. msgstr ""
  25161. #. type: item
  25162. #: guix-git/doc/guix.texi:17277
  25163. #, no-wrap
  25164. msgid "@code{nar-path} (default: @code{\"nar\"})"
  25165. msgstr ""
  25166. #. type: table
  25167. #: guix-git/doc/guix.texi:17280
  25168. msgid "The URL path at which ``nars'' can be fetched. @xref{Invoking guix publish, @option{--nar-path}}, for details."
  25169. msgstr ""
  25170. #. type: item
  25171. #: guix-git/doc/guix.texi:17281
  25172. #, no-wrap
  25173. msgid "@code{cache} (default: @code{#f})"
  25174. msgstr ""
  25175. #. type: table
  25176. #: guix-git/doc/guix.texi:17287
  25177. 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."
  25178. msgstr ""
  25179. #. type: item
  25180. #: guix-git/doc/guix.texi:17288
  25181. #, no-wrap
  25182. msgid "@code{workers} (default: @code{#f})"
  25183. msgstr ""
  25184. #. type: table
  25185. #: guix-git/doc/guix.texi:17292
  25186. 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."
  25187. msgstr ""
  25188. #. type: item
  25189. #: guix-git/doc/guix.texi:17293
  25190. #, no-wrap
  25191. msgid "@code{cache-bypass-threshold} (default: 10 MiB)"
  25192. msgstr ""
  25193. #. type: table
  25194. #: guix-git/doc/guix.texi:17298
  25195. 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."
  25196. msgstr ""
  25197. #. type: item
  25198. #: guix-git/doc/guix.texi:17299 guix-git/doc/guix.texi:33824
  25199. #, no-wrap
  25200. msgid "@code{ttl} (default: @code{#f})"
  25201. msgstr ""
  25202. #. type: table
  25203. #: guix-git/doc/guix.texi:17303
  25204. 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."
  25205. msgstr ""
  25206. #. type: item
  25207. #: guix-git/doc/guix.texi:17304 guix-git/doc/guix.texi:33832
  25208. #, fuzzy, no-wrap
  25209. msgid "@code{negative-ttl} (default: @code{#f})"
  25210. msgstr "@code{challenge}(默认值:@code{#f})"
  25211. #. type: table
  25212. #: guix-git/doc/guix.texi:17308
  25213. msgid "When it is an integer, this denotes the @dfn{time-to-live} in seconds for the negative lookups. @xref{Invoking guix publish, @option{--negative-ttl}}, for more information."
  25214. msgstr ""
  25215. #. type: anchor{#1}
  25216. #: guix-git/doc/guix.texi:17312
  25217. msgid "rngd-service"
  25218. msgstr ""
  25219. #. type: deffn
  25220. #: guix-git/doc/guix.texi:17312
  25221. #, no-wrap
  25222. msgid "{Scheme Procedure} rngd-service [#:rng-tools @var{rng-tools}] @"
  25223. msgstr ""
  25224. #. type: deffn
  25225. #: guix-git/doc/guix.texi:17317
  25226. 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."
  25227. msgstr ""
  25228. #. type: anchor{#1}
  25229. #: guix-git/doc/guix.texi:17320
  25230. msgid "pam-limits-service"
  25231. msgstr ""
  25232. #. type: cindex
  25233. #: guix-git/doc/guix.texi:17320
  25234. #, no-wrap
  25235. msgid "session limits"
  25236. msgstr ""
  25237. #. type: cindex
  25238. #: guix-git/doc/guix.texi:17321
  25239. #, no-wrap
  25240. msgid "ulimit"
  25241. msgstr ""
  25242. #. type: cindex
  25243. #: guix-git/doc/guix.texi:17322
  25244. #, no-wrap
  25245. msgid "priority"
  25246. msgstr ""
  25247. #. type: cindex
  25248. #: guix-git/doc/guix.texi:17323
  25249. #, no-wrap
  25250. msgid "realtime"
  25251. msgstr ""
  25252. #. type: cindex
  25253. #: guix-git/doc/guix.texi:17324
  25254. #, no-wrap
  25255. msgid "jackd"
  25256. msgstr ""
  25257. #. type: cindex
  25258. #: guix-git/doc/guix.texi:17325
  25259. #, no-wrap
  25260. msgid "nofile"
  25261. msgstr ""
  25262. #. type: cindex
  25263. #: guix-git/doc/guix.texi:17326
  25264. #, fuzzy, no-wrap
  25265. msgid "open file descriptors"
  25266. msgstr "简介和描述"
  25267. #. type: deffn
  25268. #: guix-git/doc/guix.texi:17327
  25269. #, no-wrap
  25270. msgid "{Scheme Procedure} pam-limits-service [#:limits @code{'()}]"
  25271. msgstr ""
  25272. #. type: deffn
  25273. #: guix-git/doc/guix.texi:17334
  25274. 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."
  25275. msgstr ""
  25276. #. type: deffn
  25277. #: guix-git/doc/guix.texi:17337
  25278. msgid "The following limits definition sets two hard and soft limits for all login sessions of users in the @code{realtime} group:"
  25279. msgstr ""
  25280. #. type: lisp
  25281. #: guix-git/doc/guix.texi:17343
  25282. #, no-wrap
  25283. msgid ""
  25284. "(pam-limits-service\n"
  25285. " (list\n"
  25286. " (pam-limits-entry \"@@realtime\" 'both 'rtprio 99)\n"
  25287. " (pam-limits-entry \"@@realtime\" 'both 'memlock 'unlimited)))\n"
  25288. msgstr ""
  25289. #. type: deffn
  25290. #: guix-git/doc/guix.texi:17349
  25291. 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."
  25292. msgstr ""
  25293. #. type: deffn
  25294. #: guix-git/doc/guix.texi:17352
  25295. msgid "Another useful example is raising the maximum number of open file descriptors that can be used:"
  25296. msgstr ""
  25297. #. type: lisp
  25298. #: guix-git/doc/guix.texi:17357
  25299. #, no-wrap
  25300. msgid ""
  25301. "(pam-limits-service\n"
  25302. " (list\n"
  25303. " (pam-limits-entry \"*\" 'both 'nofile 100000)))\n"
  25304. msgstr ""
  25305. #. type: deffn
  25306. #: guix-git/doc/guix.texi:17365
  25307. 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."
  25308. msgstr ""
  25309. #. type: cindex
  25310. #: guix-git/doc/guix.texi:17370 guix-git/doc/guix.texi:38012
  25311. #, no-wrap
  25312. msgid "cron"
  25313. msgstr ""
  25314. #. type: cindex
  25315. #: guix-git/doc/guix.texi:17371 guix-git/doc/guix.texi:38013
  25316. #, no-wrap
  25317. msgid "mcron"
  25318. msgstr ""
  25319. #. type: cindex
  25320. #: guix-git/doc/guix.texi:17372 guix-git/doc/guix.texi:38014
  25321. #, no-wrap
  25322. msgid "scheduling jobs"
  25323. msgstr ""
  25324. #. type: Plain text
  25325. #: guix-git/doc/guix.texi:17379
  25326. 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."
  25327. msgstr ""
  25328. #. type: Plain text
  25329. #: guix-git/doc/guix.texi:17387
  25330. 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})."
  25331. msgstr ""
  25332. #. type: lisp
  25333. #: guix-git/doc/guix.texi:17391
  25334. #, no-wrap
  25335. msgid ""
  25336. "(use-modules (guix) (gnu) (gnu services mcron))\n"
  25337. "(use-package-modules base idutils)\n"
  25338. "\n"
  25339. msgstr ""
  25340. #. type: lisp
  25341. #: guix-git/doc/guix.texi:17401
  25342. #, no-wrap
  25343. msgid ""
  25344. "(define updatedb-job\n"
  25345. " ;; Run 'updatedb' at 3AM every day. Here we write the\n"
  25346. " ;; job's action as a Scheme procedure.\n"
  25347. " #~(job '(next-hour '(3))\n"
  25348. " (lambda ()\n"
  25349. " (execl (string-append #$findutils \"/bin/updatedb\")\n"
  25350. " \"updatedb\"\n"
  25351. " \"--prunepaths=/tmp /var/tmp /gnu/store\"))\n"
  25352. " \"updatedb\"))\n"
  25353. "\n"
  25354. msgstr ""
  25355. #. type: lisp
  25356. #: guix-git/doc/guix.texi:17407
  25357. #, no-wrap
  25358. msgid ""
  25359. "(define garbage-collector-job\n"
  25360. " ;; Collect garbage 5 minutes after midnight every day.\n"
  25361. " ;; The job's action is a shell command.\n"
  25362. " #~(job \"5 0 * * *\" ;Vixie cron syntax\n"
  25363. " \"guix gc -F 1G\"))\n"
  25364. "\n"
  25365. msgstr ""
  25366. #. type: lisp
  25367. #: guix-git/doc/guix.texi:17414
  25368. #, no-wrap
  25369. msgid ""
  25370. "(define idutils-job\n"
  25371. " ;; Update the index database as user \"charlie\" at 12:15PM\n"
  25372. " ;; and 19:15PM. This runs from the user's home directory.\n"
  25373. " #~(job '(next-minute-from (next-hour '(12 19)) '(15))\n"
  25374. " (string-append #$idutils \"/bin/mkid src\")\n"
  25375. " #:user \"charlie\"))\n"
  25376. "\n"
  25377. msgstr ""
  25378. #. type: lisp
  25379. #: guix-git/doc/guix.texi:17417
  25380. #, no-wrap
  25381. msgid ""
  25382. "(operating-system\n"
  25383. " ;; @dots{}\n"
  25384. "\n"
  25385. msgstr ""
  25386. #. type: lisp
  25387. #: guix-git/doc/guix.texi:17427
  25388. #, no-wrap
  25389. msgid ""
  25390. " ;; %BASE-SERVICES already includes an instance of\n"
  25391. " ;; 'mcron-service-type', which we extend with additional\n"
  25392. " ;; jobs using 'simple-service'.\n"
  25393. " (services (cons (simple-service 'my-cron-jobs\n"
  25394. " mcron-service-type\n"
  25395. " (list garbage-collector-job\n"
  25396. " updatedb-job\n"
  25397. " idutils-job))\n"
  25398. " %base-services)))\n"
  25399. msgstr ""
  25400. #. type: quotation
  25401. #: guix-git/doc/guix.texi:17429
  25402. #, fuzzy, no-wrap
  25403. #| msgid "Top"
  25404. msgid "Tip"
  25405. msgstr "Top"
  25406. #. type: quotation
  25407. #: guix-git/doc/guix.texi:17435
  25408. msgid "When providing the action of a job specification as a procedure, you should provide an explicit name for the job via the optional 3rd argument as done in the @code{updatedb-job} example above. Otherwise, the job would appear as ``Lambda function'' in the output of @command{herd schedule mcron}, which is not nearly descriptive enough!"
  25409. msgstr ""
  25410. #. type: Plain text
  25411. #: guix-git/doc/guix.texi:17442
  25412. 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."
  25413. msgstr ""
  25414. #. type: lisp
  25415. #: guix-git/doc/guix.texi:17458
  25416. #, no-wrap
  25417. msgid ""
  25418. "(define %battery-alert-job\n"
  25419. " ;; Beep when the battery percentage falls below %MIN-LEVEL.\n"
  25420. " #~(job\n"
  25421. " '(next-minute (range 0 60 1))\n"
  25422. " #$(program-file\n"
  25423. " \"battery-alert.scm\"\n"
  25424. " (with-imported-modules (source-module-closure\n"
  25425. " '((guix build utils)))\n"
  25426. " #~(begin\n"
  25427. " (use-modules (guix build utils)\n"
  25428. " (ice-9 popen)\n"
  25429. " (ice-9 regex)\n"
  25430. " (ice-9 textual-ports)\n"
  25431. " (srfi srfi-2))\n"
  25432. "\n"
  25433. msgstr ""
  25434. #. type: lisp
  25435. #: guix-git/doc/guix.texi:17460
  25436. #, no-wrap
  25437. msgid ""
  25438. " (define %min-level 20)\n"
  25439. "\n"
  25440. msgstr ""
  25441. #. type: lisp
  25442. #: guix-git/doc/guix.texi:17471
  25443. #, no-wrap
  25444. msgid ""
  25445. " (setenv \"LC_ALL\" \"C\") ;ensure English output\n"
  25446. " (and-let* ((input-pipe (open-pipe*\n"
  25447. " OPEN_READ\n"
  25448. " #$(file-append acpi \"/bin/acpi\")))\n"
  25449. " (output (get-string-all input-pipe))\n"
  25450. " (m (string-match \"Discharging, ([0-9]+)%\" output))\n"
  25451. " (level (string->number (match:substring m 1)))\n"
  25452. " ((< level %min-level)))\n"
  25453. " (format #t \"warning: Battery level is low (~a%)~%\" level)\n"
  25454. " (invoke #$(file-append beep \"/bin/beep\") \"-r5\")))))))\n"
  25455. msgstr ""
  25456. #. type: Plain text
  25457. #: guix-git/doc/guix.texi:17476
  25458. 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."
  25459. msgstr ""
  25460. #. type: Plain text
  25461. #: guix-git/doc/guix.texi:17479
  25462. 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:"
  25463. msgstr ""
  25464. #. type: example
  25465. #: guix-git/doc/guix.texi:17482
  25466. #, no-wrap
  25467. msgid "# herd schedule mcron\n"
  25468. msgstr ""
  25469. #. type: Plain text
  25470. #: guix-git/doc/guix.texi:17487
  25471. msgid "The example above lists the next five tasks that will be executed, but you can also specify the number of tasks to display:"
  25472. msgstr ""
  25473. #. type: example
  25474. #: guix-git/doc/guix.texi:17490
  25475. #, no-wrap
  25476. msgid "# herd schedule mcron 10\n"
  25477. msgstr ""
  25478. #. type: defvr
  25479. #: guix-git/doc/guix.texi:17492
  25480. #, no-wrap
  25481. msgid "{Scheme Variable} mcron-service-type"
  25482. msgstr ""
  25483. #. type: defvr
  25484. #: guix-git/doc/guix.texi:17495
  25485. msgid "This is the type of the @code{mcron} service, whose value is an @code{mcron-configuration} object."
  25486. msgstr ""
  25487. #. type: defvr
  25488. #: guix-git/doc/guix.texi:17500 guix-git/doc/guix.texi:38033
  25489. msgid "This service type can be the target of a service extension that provides additional job specifications (@pxref{Service Composition}). In other words, it is possible to define services that provide additional mcron jobs to run."
  25490. msgstr ""
  25491. #. type: deftp
  25492. #: guix-git/doc/guix.texi:17502
  25493. #, no-wrap
  25494. msgid "{Data Type} mcron-configuration"
  25495. msgstr ""
  25496. #. type: deftp
  25497. #: guix-git/doc/guix.texi:17504 guix-git/doc/guix.texi:38037
  25498. msgid "Data type representing the configuration of mcron."
  25499. msgstr ""
  25500. #. type: item
  25501. #: guix-git/doc/guix.texi:17506 guix-git/doc/guix.texi:38039
  25502. #, no-wrap
  25503. msgid "@code{mcron} (default: @var{mcron})"
  25504. msgstr ""
  25505. #. type: table
  25506. #: guix-git/doc/guix.texi:17508 guix-git/doc/guix.texi:38041
  25507. msgid "The mcron package to use."
  25508. msgstr ""
  25509. #. type: code{#1}
  25510. #: guix-git/doc/guix.texi:17509 guix-git/doc/guix.texi:17578
  25511. #: guix-git/doc/guix.texi:38042
  25512. #, no-wrap
  25513. msgid "jobs"
  25514. msgstr ""
  25515. #. type: table
  25516. #: guix-git/doc/guix.texi:17513 guix-git/doc/guix.texi:38046
  25517. 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})."
  25518. msgstr ""
  25519. #. type: cindex
  25520. #: guix-git/doc/guix.texi:17520
  25521. #, no-wrap
  25522. msgid "rottlog"
  25523. msgstr ""
  25524. #. type: cindex
  25525. #: guix-git/doc/guix.texi:17521
  25526. #, no-wrap
  25527. msgid "log rotation"
  25528. msgstr ""
  25529. #. type: Plain text
  25530. #: guix-git/doc/guix.texi:17528
  25531. 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})."
  25532. msgstr ""
  25533. #. type: Plain text
  25534. #: guix-git/doc/guix.texi:17534
  25535. 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):"
  25536. msgstr ""
  25537. #. type: lisp
  25538. #: guix-git/doc/guix.texi:17538
  25539. #, no-wrap
  25540. msgid ""
  25541. "(use-modules (guix) (gnu))\n"
  25542. "(use-service-modules admin)\n"
  25543. "\n"
  25544. msgstr ""
  25545. #. type: lisp
  25546. #: guix-git/doc/guix.texi:17542
  25547. #, no-wrap
  25548. msgid ""
  25549. "(define my-log-files\n"
  25550. " ;; Log files that I want to rotate.\n"
  25551. " '(\"/var/log/something.log\" \"/var/log/another.log\"))\n"
  25552. "\n"
  25553. msgstr ""
  25554. #. type: lisp
  25555. #: guix-git/doc/guix.texi:17551
  25556. #, no-wrap
  25557. msgid ""
  25558. "(operating-system\n"
  25559. " ;; @dots{}\n"
  25560. " (services (cons (simple-service 'rotate-my-stuff\n"
  25561. " rottlog-service-type\n"
  25562. " (list (log-rotation\n"
  25563. " (frequency 'daily)\n"
  25564. " (files my-log-files))))\n"
  25565. " %base-services)))\n"
  25566. msgstr ""
  25567. #. type: defvr
  25568. #: guix-git/doc/guix.texi:17553
  25569. #, no-wrap
  25570. msgid "{Scheme Variable} rottlog-service-type"
  25571. msgstr ""
  25572. #. type: defvr
  25573. #: guix-git/doc/guix.texi:17556
  25574. msgid "This is the type of the Rottlog service, whose value is a @code{rottlog-configuration} object."
  25575. msgstr ""
  25576. #. type: defvr
  25577. #: guix-git/doc/guix.texi:17559
  25578. msgid "Other services can extend this one with new @code{log-rotation} objects (see below), thereby augmenting the set of files to be rotated."
  25579. msgstr ""
  25580. #. type: defvr
  25581. #: guix-git/doc/guix.texi:17562
  25582. msgid "This service type can define mcron jobs (@pxref{Scheduled Job Execution}) to run the rottlog service."
  25583. msgstr ""
  25584. #. type: deftp
  25585. #: guix-git/doc/guix.texi:17564
  25586. #, no-wrap
  25587. msgid "{Data Type} rottlog-configuration"
  25588. msgstr ""
  25589. #. type: deftp
  25590. #: guix-git/doc/guix.texi:17566
  25591. msgid "Data type representing the configuration of rottlog."
  25592. msgstr ""
  25593. #. type: item
  25594. #: guix-git/doc/guix.texi:17568
  25595. #, no-wrap
  25596. msgid "@code{rottlog} (default: @code{rottlog})"
  25597. msgstr ""
  25598. #. type: table
  25599. #: guix-git/doc/guix.texi:17570
  25600. msgid "The Rottlog package to use."
  25601. msgstr ""
  25602. #. type: item
  25603. #: guix-git/doc/guix.texi:17571
  25604. #, no-wrap
  25605. msgid "@code{rc-file} (default: @code{(file-append rottlog \"/etc/rc\")})"
  25606. msgstr ""
  25607. #. type: table
  25608. #: guix-git/doc/guix.texi:17574
  25609. msgid "The Rottlog configuration file to use (@pxref{Mandatory RC Variables,,, rottlog, GNU Rot[t]log Manual})."
  25610. msgstr ""
  25611. #. type: item
  25612. #: guix-git/doc/guix.texi:17575
  25613. #, no-wrap
  25614. msgid "@code{rotations} (default: @code{%default-rotations})"
  25615. msgstr ""
  25616. #. type: table
  25617. #: guix-git/doc/guix.texi:17577
  25618. msgid "A list of @code{log-rotation} objects as defined below."
  25619. msgstr ""
  25620. #. type: table
  25621. #: guix-git/doc/guix.texi:17581
  25622. msgid "This is a list of gexps where each gexp corresponds to an mcron job specification (@pxref{Scheduled Job Execution})."
  25623. msgstr ""
  25624. #. type: deftp
  25625. #: guix-git/doc/guix.texi:17584
  25626. #, no-wrap
  25627. msgid "{Data Type} log-rotation"
  25628. msgstr ""
  25629. #. type: deftp
  25630. #: guix-git/doc/guix.texi:17586
  25631. msgid "Data type representing the rotation of a group of log files."
  25632. msgstr ""
  25633. #. type: deftp
  25634. #: guix-git/doc/guix.texi:17590
  25635. 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:"
  25636. msgstr ""
  25637. #. type: lisp
  25638. #: guix-git/doc/guix.texi:17599
  25639. #, no-wrap
  25640. msgid ""
  25641. "(log-rotation\n"
  25642. " (frequency 'daily)\n"
  25643. " (files '(\"/var/log/apache/*\"))\n"
  25644. " (options '(\"storedir apache-archives\"\n"
  25645. " \"rotate 6\"\n"
  25646. " \"notifempty\"\n"
  25647. " \"nocompress\")))\n"
  25648. msgstr ""
  25649. #. type: deftp
  25650. #: guix-git/doc/guix.texi:17602
  25651. msgid "The list of fields is as follows:"
  25652. msgstr ""
  25653. #. type: item
  25654. #: guix-git/doc/guix.texi:17604
  25655. #, no-wrap
  25656. msgid "@code{frequency} (default: @code{'weekly})"
  25657. msgstr ""
  25658. #. type: table
  25659. #: guix-git/doc/guix.texi:17606
  25660. msgid "The log rotation frequency, a symbol."
  25661. msgstr ""
  25662. #. type: table
  25663. #: guix-git/doc/guix.texi:17609
  25664. msgid "The list of files or file glob patterns to rotate."
  25665. msgstr ""
  25666. #. type: item
  25667. #: guix-git/doc/guix.texi:17610
  25668. #, no-wrap
  25669. msgid "@code{options} (default: @code{'()})"
  25670. msgstr ""
  25671. #. type: table
  25672. #: guix-git/doc/guix.texi:17613
  25673. msgid "The list of rottlog options for this rotation (@pxref{Configuration parameters,,, rottlog, GNU Rot[t]lg Manual})."
  25674. msgstr ""
  25675. #. type: item
  25676. #: guix-git/doc/guix.texi:17614
  25677. #, no-wrap
  25678. msgid "@code{post-rotate} (default: @code{#f})"
  25679. msgstr ""
  25680. #. type: table
  25681. #: guix-git/doc/guix.texi:17616
  25682. msgid "Either @code{#f} or a gexp to execute once the rotation has completed."
  25683. msgstr ""
  25684. #. type: defvr
  25685. #: guix-git/doc/guix.texi:17619
  25686. #, no-wrap
  25687. msgid "{Scheme Variable} %default-rotations"
  25688. msgstr ""
  25689. #. type: defvr
  25690. #: guix-git/doc/guix.texi:17622
  25691. msgid "Specifies weekly rotation of @code{%rotated-files} and of @file{/var/log/guix-daemon.log}."
  25692. msgstr ""
  25693. #. type: defvr
  25694. #: guix-git/doc/guix.texi:17624
  25695. #, no-wrap
  25696. msgid "{Scheme Variable} %rotated-files"
  25697. msgstr ""
  25698. #. type: defvr
  25699. #: guix-git/doc/guix.texi:17628
  25700. 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\")}."
  25701. msgstr ""
  25702. #. type: Plain text
  25703. #: guix-git/doc/guix.texi:17641
  25704. msgid "The @code{(gnu services networking)} module provides services to configure network interfaces and set up networking on your machine. Those services provide different ways for you to set up your machine: by declaring a static network configuration, by running a Dynamic Host Configuration Protocol (DHCP) client, or by running daemons such as NetworkManager and Connman that automate the whole process, automatically adapt to connectivity changes, and provide a high-level user interface."
  25705. msgstr ""
  25706. #. type: Plain text
  25707. #: guix-git/doc/guix.texi:17647
  25708. msgid "On a laptop, NetworkManager and Connman are by far the most convenient options, which is why the default desktop services include NetworkManager (@pxref{Desktop Services, @code{%desktop-services}}). For a server, or for a virtual machine or a container, static network configuration or a simple DHCP client are often more appropriate."
  25709. msgstr ""
  25710. #. type: Plain text
  25711. #: guix-git/doc/guix.texi:17650
  25712. msgid "This section describes the various network setup services available, starting with static network configuration."
  25713. msgstr ""
  25714. #. type: defvr
  25715. #: guix-git/doc/guix.texi:17651
  25716. #, no-wrap
  25717. msgid "{Scheme Variable} static-networking-service-type"
  25718. msgstr ""
  25719. #. type: defvr
  25720. #: guix-git/doc/guix.texi:17656
  25721. msgid "This is the type for statically-configured network interfaces. Its value must be a list of @code{static-networking} records. Each of them declares a set of @dfn{addresses}, @dfn{routes}, and @dfn{links}, as show below."
  25722. msgstr ""
  25723. #. type: cindex
  25724. #: guix-git/doc/guix.texi:17657
  25725. #, no-wrap
  25726. msgid "network interface controller (NIC)"
  25727. msgstr ""
  25728. #. type: cindex
  25729. #: guix-git/doc/guix.texi:17658
  25730. #, no-wrap
  25731. msgid "NIC, networking interface controller"
  25732. msgstr ""
  25733. #. type: defvr
  25734. #: guix-git/doc/guix.texi:17661
  25735. msgid "Here is the simplest configuration, with only one network interface controller (NIC) and only IPv4 connectivity:"
  25736. msgstr ""
  25737. #. type: lisp
  25738. #: guix-git/doc/guix.texi:17675
  25739. #, no-wrap
  25740. msgid ""
  25741. ";; Static networking for one NIC, IPv4-only.\n"
  25742. "(service static-networking-service-type\n"
  25743. " (list (static-networking\n"
  25744. " (addresses\n"
  25745. " (list (network-address\n"
  25746. " (device \"eno1\")\n"
  25747. " (value \"10.0.2.15/24\"))))\n"
  25748. " (routes\n"
  25749. " (list (network-route\n"
  25750. " (destination \"default\")\n"
  25751. " (gateway \"10.0.2.2\"))))\n"
  25752. " (name-servers '(\"10.0.2.3\")))))\n"
  25753. msgstr ""
  25754. #. type: defvr
  25755. #: guix-git/doc/guix.texi:17684
  25756. msgid "The snippet above can be added to the @code{services} field of your operating system configuration (@pxref{Using the Configuration System}). It will configure your machine to have 10.0.2.15 as its IP address, with a 24-bit netmask for the local network---meaning that any 10.0.2.@var{x} address is on the local area network (LAN). Traffic to addresses outside the local network is routed @i{via} 10.0.2.2. Host names are resolved by sending domain name system (DNS) queries to 10.0.2.3."
  25757. msgstr ""
  25758. #. type: deftp
  25759. #: guix-git/doc/guix.texi:17686
  25760. #, fuzzy, no-wrap
  25761. msgid "{Data Type} static-networking"
  25762. msgstr "{数据类型} build-machine"
  25763. #. type: deftp
  25764. #: guix-git/doc/guix.texi:17688
  25765. #, fuzzy
  25766. msgid "This is the data type representing a static network configuration."
  25767. msgstr "管理操作系统配置。"
  25768. #. type: deftp
  25769. #: guix-git/doc/guix.texi:17692
  25770. msgid "As an example, here is how you would declare the configuration of a machine with a single network interface controller (NIC) available as @code{eno1}, and with one IPv4 and one IPv6 address:"
  25771. msgstr ""
  25772. #. type: lisp
  25773. #: guix-git/doc/guix.texi:17709
  25774. #, no-wrap
  25775. msgid ""
  25776. ";; Network configuration for one NIC, IPv4 + IPv6.\n"
  25777. "(static-networking\n"
  25778. " (addresses (list (network-address\n"
  25779. " (device \"eno1\")\n"
  25780. " (value \"10.0.2.15/24\"))\n"
  25781. " (network-address\n"
  25782. " (device \"eno1\")\n"
  25783. " (value \"2001:123:4567:101::1/64\"))))\n"
  25784. " (routes (list (network-route\n"
  25785. " (destination \"default\")\n"
  25786. " (gateway \"10.0.2.2\"))\n"
  25787. " (network-route\n"
  25788. " (destination \"default\")\n"
  25789. " (gateway \"2020:321:4567:42::1\"))))\n"
  25790. " (name-servers '(\"10.0.2.3\")))\n"
  25791. msgstr ""
  25792. #. type: deftp
  25793. #: guix-git/doc/guix.texi:17715
  25794. msgid "If you are familiar with the @command{ip} command of the @uref{https://wiki.linuxfoundation.org/networking/iproute2, @code{iproute2} package} found on Linux-based systems, the declaration above is equivalent to typing:"
  25795. msgstr ""
  25796. #. type: example
  25797. #: guix-git/doc/guix.texi:17721
  25798. #, no-wrap
  25799. msgid ""
  25800. "ip address add 10.0.2.15/24 dev eno1\n"
  25801. "ip address add 2001:123:4567:101::1/64 dev eno1\n"
  25802. "ip route add default via inet 10.0.2.2\n"
  25803. "ip route add default via inet6 2020:321:4567:42::1\n"
  25804. msgstr ""
  25805. #. type: deftp
  25806. #: guix-git/doc/guix.texi:17726
  25807. msgid "Run @command{man 8 ip} for more info. Venerable GNU/Linux users will certainly know how to do it with @command{ifconfig} and @command{route}, but we'll spare you that."
  25808. msgstr ""
  25809. #. type: deftp
  25810. #: guix-git/doc/guix.texi:17728
  25811. msgid "The available fields of this data type are as follows:"
  25812. msgstr ""
  25813. #. type: code{#1}
  25814. #: guix-git/doc/guix.texi:17730
  25815. #, no-wrap
  25816. msgid "addresses"
  25817. msgstr ""
  25818. #. type: itemx
  25819. #: guix-git/doc/guix.texi:17731
  25820. #, fuzzy, no-wrap
  25821. msgid "@code{links} (default: @code{'()})"
  25822. msgstr "@code{features} (@code{'()})"
  25823. #. type: itemx
  25824. #: guix-git/doc/guix.texi:17732
  25825. #, fuzzy, no-wrap
  25826. msgid "@code{routes} (default: @code{'()})"
  25827. msgstr "@code{features} (@code{'()})"
  25828. #. type: table
  25829. #: guix-git/doc/guix.texi:17735
  25830. msgid "The list of @code{network-address}, @code{network-link}, and @code{network-route} records for this network (see below)."
  25831. msgstr ""
  25832. #. type: item
  25833. #: guix-git/doc/guix.texi:17736
  25834. #, fuzzy, no-wrap
  25835. msgid "@code{name-servers} (default: @code{'()})"
  25836. msgstr "@code{features} (@code{'()})"
  25837. #. type: table
  25838. #: guix-git/doc/guix.texi:17739
  25839. msgid "The list of IP addresses (strings) of domain name servers. These IP addresses go to @file{/etc/resolv.conf}."
  25840. msgstr ""
  25841. #. type: item
  25842. #: guix-git/doc/guix.texi:17740
  25843. #, fuzzy, no-wrap
  25844. msgid "@code{provision} (default: @code{'(networking)})"
  25845. msgstr "@code{includes}(默认值:@code{'()})"
  25846. #. type: table
  25847. #: guix-git/doc/guix.texi:17743
  25848. msgid "If true, this should be a list of symbols for the Shepherd service corresponding to this network configuration."
  25849. msgstr ""
  25850. #. type: item
  25851. #: guix-git/doc/guix.texi:17744
  25852. #, fuzzy, no-wrap
  25853. msgid "@code{requirement} (default @code{'()})"
  25854. msgstr "@code{features} (@code{'()})"
  25855. #. type: table
  25856. #: guix-git/doc/guix.texi:17746
  25857. msgid "The list of Shepherd services depended on."
  25858. msgstr ""
  25859. #. type: deftp
  25860. #: guix-git/doc/guix.texi:17749
  25861. #, fuzzy, no-wrap
  25862. msgid "{Data Type} network-address"
  25863. msgstr "{数据类型} build-machine"
  25864. #. type: deftp
  25865. #: guix-git/doc/guix.texi:17752
  25866. #, fuzzy
  25867. msgid "This is the data type representing the IP address of a network interface."
  25868. msgstr "管理操作系统配置。"
  25869. #. type: table
  25870. #: guix-git/doc/guix.texi:17757
  25871. msgid "The name of the network interface for this address---e.g., @code{\"eno1\"}."
  25872. msgstr ""
  25873. #. type: item
  25874. #: guix-git/doc/guix.texi:17758
  25875. #, no-wrap
  25876. msgid "value"
  25877. msgstr ""
  25878. #. type: table
  25879. #: guix-git/doc/guix.texi:17762
  25880. msgid "The actual IP address and network mask, in @uref{https://en.wikipedia.org/wiki/CIDR#CIDR_notation, @acronym{CIDR, Classless Inter-Domain Routing} notation}, as a string."
  25881. msgstr ""
  25882. #. type: table
  25883. #: guix-git/doc/guix.texi:17766
  25884. msgid "For example, @code{\"10.0.2.15/24\"} denotes IPv4 address 10.0.2.15 on a 24-bit sub-network---all 10.0.2.@var{x} addresses are on the same local network."
  25885. msgstr ""
  25886. #. type: item
  25887. #: guix-git/doc/guix.texi:17767
  25888. #, no-wrap
  25889. msgid "ipv6?"
  25890. msgstr ""
  25891. #. type: table
  25892. #: guix-git/doc/guix.texi:17770
  25893. msgid "Whether @code{value} denotes an IPv6 address. By default this is automatically determined."
  25894. msgstr ""
  25895. #. type: deftp
  25896. #: guix-git/doc/guix.texi:17773
  25897. #, fuzzy, no-wrap
  25898. msgid "{Data Type} network-route"
  25899. msgstr "{数据类型} build-machine"
  25900. #. type: deftp
  25901. #: guix-git/doc/guix.texi:17775
  25902. #, fuzzy
  25903. msgid "This is the data type representing a network route."
  25904. msgstr "管理操作系统配置。"
  25905. #. type: code{#1}
  25906. #: guix-git/doc/guix.texi:17777
  25907. #, fuzzy, no-wrap
  25908. #| msgid "deduplication"
  25909. msgid "destination"
  25910. msgstr "去重"
  25911. #. type: table
  25912. #: guix-git/doc/guix.texi:17780
  25913. msgid "The route destination (a string), either an IP address or @code{\"default\"} to denote the default route."
  25914. msgstr ""
  25915. #. type: item
  25916. #: guix-git/doc/guix.texi:17781
  25917. #, fuzzy, no-wrap
  25918. msgid "@code{source} (default: @code{#f})"
  25919. msgstr "@code{port}(默认值:@code{22})"
  25920. #. type: table
  25921. #: guix-git/doc/guix.texi:17783
  25922. #, fuzzy
  25923. #| msgid "The rottlog service."
  25924. msgid "The route source."
  25925. msgstr "rottlog服务。"
  25926. #. type: item
  25927. #: guix-git/doc/guix.texi:17784 guix-git/doc/guix.texi:35314
  25928. #, no-wrap
  25929. msgid "@code{device} (default: @code{#f})"
  25930. msgstr ""
  25931. #. type: table
  25932. #: guix-git/doc/guix.texi:17786
  25933. msgid "The device used for this route---e.g., @code{\"eno2\"}."
  25934. msgstr ""
  25935. #. type: item
  25936. #: guix-git/doc/guix.texi:17787
  25937. #, fuzzy, no-wrap
  25938. msgid "@code{ipv6?} (default: auto)"
  25939. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  25940. #. type: table
  25941. #: guix-git/doc/guix.texi:17790
  25942. msgid "Whether this is an IPv6 route. By default this is automatically determined based on @code{destination} or @code{gateway}."
  25943. msgstr ""
  25944. #. type: item
  25945. #: guix-git/doc/guix.texi:17791
  25946. #, fuzzy, no-wrap
  25947. msgid "@code{gateway} (default: @code{#f})"
  25948. msgstr "@code{challenge}(默认值:@code{#f})"
  25949. #. type: table
  25950. #: guix-git/doc/guix.texi:17793
  25951. msgid "IP address (a string) through which traffic is routed."
  25952. msgstr ""
  25953. #. type: deftp
  25954. #: guix-git/doc/guix.texi:17796
  25955. #, fuzzy, no-wrap
  25956. msgid "{Data Type} network-link"
  25957. msgstr "{数据类型} build-machine"
  25958. #. type: deftp
  25959. #: guix-git/doc/guix.texi:17799
  25960. msgid "Data type for a network link (@pxref{Link,,, guile-netlink, Guile-Netlink Manual})."
  25961. msgstr ""
  25962. #. type: table
  25963. #: guix-git/doc/guix.texi:17803
  25964. msgid "The name of the link---e.g., @code{\"v0p0\"}."
  25965. msgstr ""
  25966. #. type: table
  25967. #: guix-git/doc/guix.texi:17806
  25968. msgid "A symbol denoting the type of the link---e.g., @code{'veth}."
  25969. msgstr ""
  25970. #. type: item
  25971. #: guix-git/doc/guix.texi:17807
  25972. #, no-wrap
  25973. msgid "arguments"
  25974. msgstr ""
  25975. #. type: table
  25976. #: guix-git/doc/guix.texi:17809
  25977. msgid "List of arguments for this type of link."
  25978. msgstr ""
  25979. #. type: cindex
  25980. #: guix-git/doc/guix.texi:17812
  25981. #, no-wrap
  25982. msgid "loopback device"
  25983. msgstr ""
  25984. #. type: defvr
  25985. #: guix-git/doc/guix.texi:17813
  25986. #, no-wrap
  25987. msgid "{Scheme Variable} %loopback-static-networking"
  25988. msgstr ""
  25989. #. type: defvr
  25990. #: guix-git/doc/guix.texi:17817
  25991. msgid "This is the @code{static-networking} record representing the ``loopback device'', @code{lo}, for IP addresses 127.0.0.1 and ::1, and providing the @code{loopback} Shepherd service."
  25992. msgstr ""
  25993. #. type: cindex
  25994. #: guix-git/doc/guix.texi:17819
  25995. #, no-wrap
  25996. msgid "networking, with QEMU"
  25997. msgstr ""
  25998. #. type: cindex
  25999. #: guix-git/doc/guix.texi:17820
  26000. #, no-wrap
  26001. msgid "QEMU, networking"
  26002. msgstr ""
  26003. #. type: defvr
  26004. #: guix-git/doc/guix.texi:17821
  26005. #, no-wrap
  26006. msgid "{Scheme Variable} %qemu-static-networking"
  26007. msgstr ""
  26008. #. type: defvr
  26009. #: guix-git/doc/guix.texi:17825
  26010. msgid "This is the @code{static-networking} record representing network setup when using QEMU's user-mode network stack on @code{eth0} (@pxref{Using the user mode network stack,,, QEMU, QEMU Documentation})."
  26011. msgstr ""
  26012. #. type: cindex
  26013. #: guix-git/doc/guix.texi:17827
  26014. #, no-wrap
  26015. msgid "DHCP, networking service"
  26016. msgstr ""
  26017. #. type: defvr
  26018. #: guix-git/doc/guix.texi:17828
  26019. #, no-wrap
  26020. msgid "{Scheme Variable} dhcp-client-service-type"
  26021. msgstr ""
  26022. #. type: defvr
  26023. #: guix-git/doc/guix.texi:17832
  26024. 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."
  26025. msgstr ""
  26026. #. type: cindex
  26027. #: guix-git/doc/guix.texi:17834
  26028. #, no-wrap
  26029. msgid "NetworkManager"
  26030. msgstr ""
  26031. #. type: defvr
  26032. #: guix-git/doc/guix.texi:17836
  26033. #, no-wrap
  26034. msgid "{Scheme Variable} network-manager-service-type"
  26035. msgstr ""
  26036. #. type: defvr
  26037. #: guix-git/doc/guix.texi:17841
  26038. 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."
  26039. msgstr ""
  26040. #. type: defvr
  26041. #: guix-git/doc/guix.texi:17844 guix-git/doc/guix.texi:17996
  26042. #: guix-git/doc/guix.texi:18025
  26043. msgid "This service is part of @code{%desktop-services} (@pxref{Desktop Services})."
  26044. msgstr ""
  26045. #. type: deftp
  26046. #: guix-git/doc/guix.texi:17846
  26047. #, no-wrap
  26048. msgid "{Data Type} network-manager-configuration"
  26049. msgstr ""
  26050. #. type: deftp
  26051. #: guix-git/doc/guix.texi:17848
  26052. msgid "Data type representing the configuration of NetworkManager."
  26053. msgstr ""
  26054. #. type: item
  26055. #: guix-git/doc/guix.texi:17850
  26056. #, no-wrap
  26057. msgid "@code{network-manager} (default: @code{network-manager})"
  26058. msgstr ""
  26059. #. type: table
  26060. #: guix-git/doc/guix.texi:17852
  26061. msgid "The NetworkManager package to use."
  26062. msgstr ""
  26063. #. type: item
  26064. #: guix-git/doc/guix.texi:17853
  26065. #, no-wrap
  26066. msgid "@code{dns} (default: @code{\"default\"})"
  26067. msgstr ""
  26068. #. type: table
  26069. #: guix-git/doc/guix.texi:17856
  26070. msgid "Processing mode for DNS, which affects how NetworkManager uses the @code{resolv.conf} configuration file."
  26071. msgstr ""
  26072. #. type: table
  26073. #: guix-git/doc/guix.texi:17861
  26074. msgid "NetworkManager will update @code{resolv.conf} to reflect the nameservers provided by currently active connections."
  26075. msgstr ""
  26076. #. type: item
  26077. #: guix-git/doc/guix.texi:17862
  26078. #, no-wrap
  26079. msgid "dnsmasq"
  26080. msgstr ""
  26081. #. type: table
  26082. #: guix-git/doc/guix.texi:17866
  26083. 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."
  26084. msgstr ""
  26085. #. type: table
  26086. #: guix-git/doc/guix.texi:17872
  26087. 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)."
  26088. msgstr ""
  26089. #. type: table
  26090. #: guix-git/doc/guix.texi:17879
  26091. 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:"
  26092. msgstr ""
  26093. #. type: example
  26094. #: guix-git/doc/guix.texi:17886
  26095. #, no-wrap
  26096. msgid ""
  26097. "nmcli connection add type tun \\\n"
  26098. " connection.interface-name tap0 \\\n"
  26099. " tun.mode tap tun.owner $(id -u) \\\n"
  26100. " ipv4.method shared \\\n"
  26101. " ipv4.addresses 172.28.112.1/24\n"
  26102. msgstr ""
  26103. #. type: table
  26104. #: guix-git/doc/guix.texi:17891
  26105. 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-...}."
  26106. msgstr ""
  26107. #. type: table
  26108. #: guix-git/doc/guix.texi:17894
  26109. msgid "NetworkManager will not modify @code{resolv.conf}."
  26110. msgstr ""
  26111. #. type: item
  26112. #: guix-git/doc/guix.texi:17896
  26113. #, no-wrap
  26114. msgid "@code{vpn-plugins} (default: @code{'()})"
  26115. msgstr ""
  26116. #. type: table
  26117. #: guix-git/doc/guix.texi:17900
  26118. 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."
  26119. msgstr ""
  26120. #. type: cindex
  26121. #: guix-git/doc/guix.texi:17904
  26122. #, no-wrap
  26123. msgid "Connman"
  26124. msgstr ""
  26125. #. type: deffn
  26126. #: guix-git/doc/guix.texi:17905
  26127. #, no-wrap
  26128. msgid "{Scheme Variable} connman-service-type"
  26129. msgstr ""
  26130. #. type: deffn
  26131. #: guix-git/doc/guix.texi:17908
  26132. msgid "This is the service type to run @url{https://01.org/connman,Connman}, a network connection manager."
  26133. msgstr ""
  26134. #. type: deffn
  26135. #: guix-git/doc/guix.texi:17911
  26136. msgid "Its value must be an @code{connman-configuration} record as in this example:"
  26137. msgstr ""
  26138. #. type: lisp
  26139. #: guix-git/doc/guix.texi:17916
  26140. #, no-wrap
  26141. msgid ""
  26142. "(service connman-service-type\n"
  26143. " (connman-configuration\n"
  26144. " (disable-vpn? #t)))\n"
  26145. msgstr ""
  26146. #. type: deffn
  26147. #: guix-git/doc/guix.texi:17919
  26148. msgid "See below for details about @code{connman-configuration}."
  26149. msgstr ""
  26150. #. type: deftp
  26151. #: guix-git/doc/guix.texi:17921
  26152. #, no-wrap
  26153. msgid "{Data Type} connman-configuration"
  26154. msgstr ""
  26155. #. type: deftp
  26156. #: guix-git/doc/guix.texi:17923
  26157. msgid "Data Type representing the configuration of connman."
  26158. msgstr ""
  26159. #. type: item
  26160. #: guix-git/doc/guix.texi:17925
  26161. #, no-wrap
  26162. msgid "@code{connman} (default: @var{connman})"
  26163. msgstr ""
  26164. #. type: table
  26165. #: guix-git/doc/guix.texi:17927
  26166. msgid "The connman package to use."
  26167. msgstr ""
  26168. #. type: item
  26169. #: guix-git/doc/guix.texi:17928
  26170. #, no-wrap
  26171. msgid "@code{disable-vpn?} (default: @code{#f})"
  26172. msgstr ""
  26173. #. type: table
  26174. #: guix-git/doc/guix.texi:17930
  26175. msgid "When true, disable connman's vpn plugin."
  26176. msgstr ""
  26177. #. type: cindex
  26178. #: guix-git/doc/guix.texi:17933
  26179. #, no-wrap
  26180. msgid "WPA Supplicant"
  26181. msgstr ""
  26182. #. type: defvr
  26183. #: guix-git/doc/guix.texi:17934
  26184. #, no-wrap
  26185. msgid "{Scheme Variable} wpa-supplicant-service-type"
  26186. msgstr ""
  26187. #. type: defvr
  26188. #: guix-git/doc/guix.texi:17938
  26189. 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."
  26190. msgstr ""
  26191. #. type: deftp
  26192. #: guix-git/doc/guix.texi:17940
  26193. #, no-wrap
  26194. msgid "{Data Type} wpa-supplicant-configuration"
  26195. msgstr ""
  26196. #. type: deftp
  26197. #: guix-git/doc/guix.texi:17942
  26198. msgid "Data type representing the configuration of WPA Supplicant."
  26199. msgstr ""
  26200. #. type: deftp
  26201. #: guix-git/doc/guix.texi:17944 guix-git/doc/guix.texi:33410
  26202. msgid "It takes the following parameters:"
  26203. msgstr ""
  26204. #. type: item
  26205. #: guix-git/doc/guix.texi:17946
  26206. #, no-wrap
  26207. msgid "@code{wpa-supplicant} (default: @code{wpa-supplicant})"
  26208. msgstr ""
  26209. #. type: table
  26210. #: guix-git/doc/guix.texi:17948
  26211. msgid "The WPA Supplicant package to use."
  26212. msgstr ""
  26213. #. type: item
  26214. #: guix-git/doc/guix.texi:17949
  26215. #, no-wrap
  26216. msgid "@code{requirement} (default: @code{'(user-processes loopback syslogd)}"
  26217. msgstr ""
  26218. #. type: table
  26219. #: guix-git/doc/guix.texi:17951
  26220. msgid "List of services that should be started before WPA Supplicant starts."
  26221. msgstr ""
  26222. #. type: item
  26223. #: guix-git/doc/guix.texi:17952
  26224. #, no-wrap
  26225. msgid "@code{dbus?} (default: @code{#t})"
  26226. msgstr ""
  26227. #. type: table
  26228. #: guix-git/doc/guix.texi:17954
  26229. msgid "Whether to listen for requests on D-Bus."
  26230. msgstr ""
  26231. #. type: item
  26232. #: guix-git/doc/guix.texi:17955
  26233. #, no-wrap
  26234. msgid "@code{pid-file} (default: @code{\"/var/run/wpa_supplicant.pid\"})"
  26235. msgstr ""
  26236. #. type: table
  26237. #: guix-git/doc/guix.texi:17957
  26238. msgid "Where to store the PID file."
  26239. msgstr ""
  26240. #. type: item
  26241. #: guix-git/doc/guix.texi:17958 guix-git/doc/guix.texi:31711
  26242. #: guix-git/doc/guix.texi:31853
  26243. #, no-wrap
  26244. msgid "@code{interface} (default: @code{#f})"
  26245. msgstr ""
  26246. #. type: table
  26247. #: guix-git/doc/guix.texi:17961
  26248. msgid "If this is set, it must specify the name of a network interface that WPA supplicant will control."
  26249. msgstr ""
  26250. #. type: item
  26251. #: guix-git/doc/guix.texi:17962 guix-git/doc/guix.texi:18078
  26252. #: guix-git/doc/guix.texi:23399
  26253. #, no-wrap
  26254. msgid "@code{config-file} (default: @code{#f})"
  26255. msgstr ""
  26256. #. type: table
  26257. #: guix-git/doc/guix.texi:17964
  26258. msgid "Optional configuration file to use."
  26259. msgstr ""
  26260. #. type: table
  26261. #: guix-git/doc/guix.texi:17967
  26262. msgid "List of additional command-line arguments to pass to the daemon."
  26263. msgstr ""
  26264. #. type: cindex
  26265. #: guix-git/doc/guix.texi:17970
  26266. #, no-wrap
  26267. msgid "wicd"
  26268. msgstr ""
  26269. #. type: cindex
  26270. #: guix-git/doc/guix.texi:17973
  26271. #, no-wrap
  26272. msgid "network management"
  26273. msgstr ""
  26274. #. type: deffn
  26275. #: guix-git/doc/guix.texi:17974
  26276. #, no-wrap
  26277. msgid "{Scheme Procedure} wicd-service [#:wicd @var{wicd}]"
  26278. msgstr ""
  26279. #. type: deffn
  26280. #: guix-git/doc/guix.texi:17977
  26281. msgid "Return a service that runs @url{https://launchpad.net/wicd,Wicd}, a network management daemon that aims to simplify wired and wireless networking."
  26282. msgstr ""
  26283. #. type: deffn
  26284. #: guix-git/doc/guix.texi:17982
  26285. 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."
  26286. msgstr ""
  26287. #. type: cindex
  26288. #: guix-git/doc/guix.texi:17984
  26289. #, no-wrap
  26290. msgid "ModemManager"
  26291. msgstr ""
  26292. #. type: Plain text
  26293. #: guix-git/doc/guix.texi:17987
  26294. msgid "Some networking devices such as modems require special care, and this is what the services below focus on."
  26295. msgstr ""
  26296. #. type: defvr
  26297. #: guix-git/doc/guix.texi:17988
  26298. #, no-wrap
  26299. msgid "{Scheme Variable} modem-manager-service-type"
  26300. msgstr ""
  26301. #. type: defvr
  26302. #: guix-git/doc/guix.texi:17993
  26303. 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."
  26304. msgstr ""
  26305. #. type: deftp
  26306. #: guix-git/doc/guix.texi:17998
  26307. #, no-wrap
  26308. msgid "{Data Type} modem-manager-configuration"
  26309. msgstr ""
  26310. #. type: deftp
  26311. #: guix-git/doc/guix.texi:18000
  26312. msgid "Data type representing the configuration of ModemManager."
  26313. msgstr ""
  26314. #. type: item
  26315. #: guix-git/doc/guix.texi:18002
  26316. #, no-wrap
  26317. msgid "@code{modem-manager} (default: @code{modem-manager})"
  26318. msgstr ""
  26319. #. type: table
  26320. #: guix-git/doc/guix.texi:18004
  26321. msgid "The ModemManager package to use."
  26322. msgstr ""
  26323. #. type: cindex
  26324. #: guix-git/doc/guix.texi:18008
  26325. #, no-wrap
  26326. msgid "USB_ModeSwitch"
  26327. msgstr ""
  26328. #. type: cindex
  26329. #: guix-git/doc/guix.texi:18009
  26330. #, no-wrap
  26331. msgid "Modeswitching"
  26332. msgstr ""
  26333. #. type: defvr
  26334. #: guix-git/doc/guix.texi:18011
  26335. #, no-wrap
  26336. msgid "{Scheme Variable} usb-modeswitch-service-type"
  26337. msgstr ""
  26338. #. type: defvr
  26339. #: guix-git/doc/guix.texi:18016
  26340. 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."
  26341. msgstr ""
  26342. #. type: defvr
  26343. #: guix-git/doc/guix.texi:18022
  26344. 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."
  26345. msgstr ""
  26346. #. type: deftp
  26347. #: guix-git/doc/guix.texi:18027
  26348. #, no-wrap
  26349. msgid "{Data Type} usb-modeswitch-configuration"
  26350. msgstr ""
  26351. #. type: deftp
  26352. #: guix-git/doc/guix.texi:18029
  26353. msgid "Data type representing the configuration of USB_ModeSwitch."
  26354. msgstr ""
  26355. #. type: item
  26356. #: guix-git/doc/guix.texi:18031
  26357. #, fuzzy, no-wrap
  26358. msgid "@code{usb-modeswitch} (default: @code{usb-modeswitch})"
  26359. msgstr "@code{mate}(默认值:@code{mate})"
  26360. #. type: table
  26361. #: guix-git/doc/guix.texi:18033
  26362. msgid "The USB_ModeSwitch package providing the binaries for modeswitching."
  26363. msgstr ""
  26364. #. type: item
  26365. #: guix-git/doc/guix.texi:18034
  26366. #, fuzzy, no-wrap
  26367. msgid "@code{usb-modeswitch-data} (default: @code{usb-modeswitch-data})"
  26368. msgstr "@code{mate}(默认值:@code{mate})"
  26369. #. type: table
  26370. #: guix-git/doc/guix.texi:18037
  26371. msgid "The package providing the device data and udev rules file used by USB_ModeSwitch."
  26372. msgstr ""
  26373. #. type: item
  26374. #: guix-git/doc/guix.texi:18038
  26375. #, no-wrap
  26376. msgid "@code{config-file} (default: @code{#~(string-append #$usb-modeswitch:dispatcher \"/etc/usb_modeswitch.conf\")})"
  26377. msgstr ""
  26378. #. type: table
  26379. #: guix-git/doc/guix.texi:18043
  26380. 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."
  26381. msgstr ""
  26382. #. type: Plain text
  26383. #: guix-git/doc/guix.texi:18057
  26384. msgid "The @code{(gnu services networking)} module discussed in the previous section provides services for more advanced setups: providing a DHCP service for others to use, filtering packets with iptables or nftables, running a WiFi access point with @command{hostapd}, running the @command{inetd} ``superdaemon'', and more. This section describes those."
  26385. msgstr ""
  26386. #. type: deffn
  26387. #: guix-git/doc/guix.texi:18058
  26388. #, no-wrap
  26389. msgid "{Scheme Procedure} dhcpd-service-type"
  26390. msgstr ""
  26391. #. type: deffn
  26392. #: guix-git/doc/guix.texi:18062
  26393. 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:"
  26394. msgstr ""
  26395. #. type: lisp
  26396. #: guix-git/doc/guix.texi:18068
  26397. #, no-wrap
  26398. msgid ""
  26399. "(service dhcpd-service-type\n"
  26400. " (dhcpd-configuration\n"
  26401. " (config-file (local-file \"my-dhcpd.conf\"))\n"
  26402. " (interfaces '(\"enp0s25\"))))\n"
  26403. msgstr ""
  26404. #. type: deftp
  26405. #: guix-git/doc/guix.texi:18071
  26406. #, no-wrap
  26407. msgid "{Data Type} dhcpd-configuration"
  26408. msgstr ""
  26409. #. type: item
  26410. #: guix-git/doc/guix.texi:18073
  26411. #, no-wrap
  26412. msgid "@code{package} (default: @code{isc-dhcp})"
  26413. msgstr ""
  26414. #. type: table
  26415. #: guix-git/doc/guix.texi:18078
  26416. 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}."
  26417. msgstr ""
  26418. #. type: table
  26419. #: guix-git/doc/guix.texi:18083
  26420. 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."
  26421. msgstr ""
  26422. #. type: item
  26423. #: guix-git/doc/guix.texi:18083
  26424. #, no-wrap
  26425. msgid "@code{version} (default: @code{\"4\"})"
  26426. msgstr ""
  26427. #. type: table
  26428. #: guix-git/doc/guix.texi:18088
  26429. 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."
  26430. msgstr ""
  26431. #. type: item
  26432. #: guix-git/doc/guix.texi:18088
  26433. #, no-wrap
  26434. msgid "@code{run-directory} (default: @code{\"/run/dhcpd\"})"
  26435. msgstr ""
  26436. #. type: table
  26437. #: guix-git/doc/guix.texi:18091
  26438. msgid "The run directory to use. At service activation time, this directory will be created if it does not exist."
  26439. msgstr ""
  26440. #. type: item
  26441. #: guix-git/doc/guix.texi:18091
  26442. #, no-wrap
  26443. msgid "@code{pid-file} (default: @code{\"/run/dhcpd/dhcpd.pid\"})"
  26444. msgstr ""
  26445. #. type: table
  26446. #: guix-git/doc/guix.texi:18094
  26447. msgid "The PID file to use. This corresponds to the @code{-pf} option of @code{dhcpd}. See @code{man dhcpd} for details."
  26448. msgstr ""
  26449. #. type: item
  26450. #: guix-git/doc/guix.texi:18094
  26451. #, no-wrap
  26452. msgid "@code{interfaces} (default: @code{'()})"
  26453. msgstr ""
  26454. #. type: table
  26455. #: guix-git/doc/guix.texi:18100
  26456. 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."
  26457. msgstr ""
  26458. #. type: cindex
  26459. #: guix-git/doc/guix.texi:18103
  26460. #, no-wrap
  26461. msgid "hostapd service, for Wi-Fi access points"
  26462. msgstr ""
  26463. #. type: cindex
  26464. #: guix-git/doc/guix.texi:18104
  26465. #, no-wrap
  26466. msgid "Wi-Fi access points, hostapd service"
  26467. msgstr ""
  26468. #. type: defvr
  26469. #: guix-git/doc/guix.texi:18105
  26470. #, no-wrap
  26471. msgid "{Scheme Variable} hostapd-service-type"
  26472. msgstr ""
  26473. #. type: defvr
  26474. #: guix-git/doc/guix.texi:18110
  26475. 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:"
  26476. msgstr ""
  26477. #. type: lisp
  26478. #: guix-git/doc/guix.texi:18118
  26479. #, no-wrap
  26480. msgid ""
  26481. ";; Use wlan1 to run the access point for \"My Network\".\n"
  26482. "(service hostapd-service-type\n"
  26483. " (hostapd-configuration\n"
  26484. " (interface \"wlan1\")\n"
  26485. " (ssid \"My Network\")\n"
  26486. " (channel 12)))\n"
  26487. msgstr ""
  26488. #. type: deftp
  26489. #: guix-git/doc/guix.texi:18121
  26490. #, no-wrap
  26491. msgid "{Data Type} hostapd-configuration"
  26492. msgstr ""
  26493. #. type: deftp
  26494. #: guix-git/doc/guix.texi:18124
  26495. msgid "This data type represents the configuration of the hostapd service, with the following fields:"
  26496. msgstr ""
  26497. #. type: item
  26498. #: guix-git/doc/guix.texi:18126
  26499. #, fuzzy, no-wrap
  26500. msgid "@code{package} (default: @code{hostapd})"
  26501. msgstr "@code{mate}(默认值:@code{mate})"
  26502. #. type: table
  26503. #: guix-git/doc/guix.texi:18128
  26504. #, fuzzy
  26505. msgid "The hostapd package to use."
  26506. msgstr "软件包数据类型。"
  26507. #. type: item
  26508. #: guix-git/doc/guix.texi:18129
  26509. #, fuzzy, no-wrap
  26510. msgid "@code{interface} (default: @code{\"wlan0\"})"
  26511. msgstr "@code{display}(默认值:@code{\":0\"})"
  26512. #. type: table
  26513. #: guix-git/doc/guix.texi:18131
  26514. msgid "The network interface to run the WiFi access point."
  26515. msgstr ""
  26516. #. type: code{#1}
  26517. #: guix-git/doc/guix.texi:18132
  26518. #, no-wrap
  26519. msgid "ssid"
  26520. msgstr ""
  26521. #. type: table
  26522. #: guix-git/doc/guix.texi:18135
  26523. msgid "The SSID (@dfn{service set identifier}), a string that identifies this network."
  26524. msgstr ""
  26525. #. type: item
  26526. #: guix-git/doc/guix.texi:18136
  26527. #, fuzzy, no-wrap
  26528. msgid "@code{broadcast-ssid?} (default: @code{#t})"
  26529. msgstr "@code{mate}(默认值:@code{mate})"
  26530. #. type: table
  26531. #: guix-git/doc/guix.texi:18138
  26532. msgid "Whether to broadcast this SSID."
  26533. msgstr ""
  26534. #. type: item
  26535. #: guix-git/doc/guix.texi:18139
  26536. #, fuzzy, no-wrap
  26537. msgid "@code{channel} (default: @code{1})"
  26538. msgstr "@code{challenge}(默认值:@code{#f})"
  26539. #. type: table
  26540. #: guix-git/doc/guix.texi:18141
  26541. msgid "The WiFi channel to use."
  26542. msgstr ""
  26543. #. type: item
  26544. #: guix-git/doc/guix.texi:18142
  26545. #, fuzzy, no-wrap
  26546. msgid "@code{driver} (default: @code{\"nl80211\"})"
  26547. msgstr "@code{display}(默认值:@code{\":0\"})"
  26548. #. type: table
  26549. #: guix-git/doc/guix.texi:18146
  26550. 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."
  26551. msgstr ""
  26552. #. type: item
  26553. #: guix-git/doc/guix.texi:18147 guix-git/doc/guix.texi:24248
  26554. #: guix-git/doc/guix.texi:27238
  26555. #, no-wrap
  26556. msgid "@code{extra-settings} (default: @code{\"\"})"
  26557. msgstr ""
  26558. #. type: table
  26559. #: guix-git/doc/guix.texi:18151
  26560. 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."
  26561. msgstr ""
  26562. #. type: defvr
  26563. #: guix-git/doc/guix.texi:18154
  26564. #, no-wrap
  26565. msgid "{Scheme Variable} simulated-wifi-service-type"
  26566. msgstr ""
  26567. #. type: defvr
  26568. #: guix-git/doc/guix.texi:18161
  26569. 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."
  26570. msgstr ""
  26571. #. type: defvr
  26572. #: guix-git/doc/guix.texi:18163
  26573. msgid "The service's value is a @code{hostapd-configuration} record."
  26574. msgstr ""
  26575. #. type: cindex
  26576. #: guix-git/doc/guix.texi:18166
  26577. #, no-wrap
  26578. msgid "iptables"
  26579. msgstr ""
  26580. #. type: defvr
  26581. #: guix-git/doc/guix.texi:18167
  26582. #, no-wrap
  26583. msgid "{Scheme Variable} iptables-service-type"
  26584. msgstr ""
  26585. #. type: defvr
  26586. #: guix-git/doc/guix.texi:18173
  26587. 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."
  26588. msgstr ""
  26589. #. type: lisp
  26590. #: guix-git/doc/guix.texi:18195
  26591. #, no-wrap
  26592. msgid ""
  26593. "(service iptables-service-type\n"
  26594. " (iptables-configuration\n"
  26595. " (ipv4-rules (plain-file \"iptables.rules\" \"*filter\n"
  26596. ":INPUT ACCEPT\n"
  26597. ":FORWARD ACCEPT\n"
  26598. ":OUTPUT ACCEPT\n"
  26599. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  26600. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  26601. "-A INPUT -j REJECT --reject-with icmp-port-unreachable\n"
  26602. "COMMIT\n"
  26603. "\"))\n"
  26604. " (ipv6-rules (plain-file \"ip6tables.rules\" \"*filter\n"
  26605. ":INPUT ACCEPT\n"
  26606. ":FORWARD ACCEPT\n"
  26607. ":OUTPUT ACCEPT\n"
  26608. "-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT\n"
  26609. "-A INPUT -p tcp --dport 22 -j ACCEPT\n"
  26610. "-A INPUT -j REJECT --reject-with icmp6-port-unreachable\n"
  26611. "COMMIT\n"
  26612. "\"))))\n"
  26613. msgstr ""
  26614. #. type: deftp
  26615. #: guix-git/doc/guix.texi:18198
  26616. #, no-wrap
  26617. msgid "{Data Type} iptables-configuration"
  26618. msgstr ""
  26619. #. type: deftp
  26620. #: guix-git/doc/guix.texi:18200
  26621. msgid "The data type representing the configuration of iptables."
  26622. msgstr ""
  26623. #. type: item
  26624. #: guix-git/doc/guix.texi:18202
  26625. #, no-wrap
  26626. msgid "@code{iptables} (default: @code{iptables})"
  26627. msgstr ""
  26628. #. type: table
  26629. #: guix-git/doc/guix.texi:18205
  26630. msgid "The iptables package that provides @code{iptables-restore} and @code{ip6tables-restore}."
  26631. msgstr ""
  26632. #. type: item
  26633. #: guix-git/doc/guix.texi:18205
  26634. #, no-wrap
  26635. msgid "@code{ipv4-rules} (default: @code{%iptables-accept-all-rules})"
  26636. msgstr ""
  26637. #. type: table
  26638. #: guix-git/doc/guix.texi:18209
  26639. 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})."
  26640. msgstr ""
  26641. #. type: item
  26642. #: guix-git/doc/guix.texi:18209
  26643. #, no-wrap
  26644. msgid "@code{ipv6-rules} (default: @code{%iptables-accept-all-rules})"
  26645. msgstr ""
  26646. #. type: table
  26647. #: guix-git/doc/guix.texi:18213
  26648. 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})."
  26649. msgstr ""
  26650. #. type: cindex
  26651. #: guix-git/doc/guix.texi:18216
  26652. #, no-wrap
  26653. msgid "nftables"
  26654. msgstr ""
  26655. #. type: defvr
  26656. #: guix-git/doc/guix.texi:18217
  26657. #, no-wrap
  26658. msgid "{Scheme Variable} nftables-service-type"
  26659. msgstr ""
  26660. #. type: defvr
  26661. #: guix-git/doc/guix.texi:18225
  26662. 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:"
  26663. msgstr ""
  26664. #. type: lisp
  26665. #: guix-git/doc/guix.texi:18228
  26666. #, no-wrap
  26667. msgid "(service nftables-service-type)\n"
  26668. msgstr ""
  26669. #. type: deftp
  26670. #: guix-git/doc/guix.texi:18231
  26671. #, fuzzy, no-wrap
  26672. msgid "{Data Type} nftables-configuration"
  26673. msgstr "{数据类型} build-machine"
  26674. #. type: deftp
  26675. #: guix-git/doc/guix.texi:18233
  26676. #, fuzzy
  26677. msgid "The data type representing the configuration of nftables."
  26678. msgstr "管理操作系统配置。"
  26679. #. type: item
  26680. #: guix-git/doc/guix.texi:18235
  26681. #, fuzzy, no-wrap
  26682. msgid "@code{package} (default: @code{nftables})"
  26683. msgstr "@code{xfce}(默认值:@code{xfce})"
  26684. #. type: table
  26685. #: guix-git/doc/guix.texi:18237
  26686. msgid "The nftables package that provides @command{nft}."
  26687. msgstr ""
  26688. #. type: item
  26689. #: guix-git/doc/guix.texi:18237
  26690. #, fuzzy, no-wrap
  26691. msgid "@code{ruleset} (default: @code{%default-nftables-ruleset})"
  26692. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  26693. #. type: table
  26694. #: guix-git/doc/guix.texi:18240
  26695. msgid "The nftables ruleset to use. This may be any ``file-like'' object (@pxref{G-Expressions, file-like objects})."
  26696. msgstr ""
  26697. #. type: cindex
  26698. #: guix-git/doc/guix.texi:18243
  26699. #, no-wrap
  26700. msgid "NTP (Network Time Protocol), service"
  26701. msgstr ""
  26702. #. type: cindex
  26703. #: guix-git/doc/guix.texi:18244
  26704. #, no-wrap
  26705. msgid "ntpd, service for the Network Time Protocol daemon"
  26706. msgstr ""
  26707. #. type: cindex
  26708. #: guix-git/doc/guix.texi:18245
  26709. #, no-wrap
  26710. msgid "real time clock"
  26711. msgstr ""
  26712. #. type: defvr
  26713. #: guix-git/doc/guix.texi:18246
  26714. #, no-wrap
  26715. msgid "{Scheme Variable} ntp-service-type"
  26716. msgstr ""
  26717. #. type: defvr
  26718. #: guix-git/doc/guix.texi:18250
  26719. 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."
  26720. msgstr ""
  26721. #. type: defvr
  26722. #: guix-git/doc/guix.texi:18253
  26723. msgid "The value of this service is an @code{ntpd-configuration} object, as described below."
  26724. msgstr ""
  26725. #. type: deftp
  26726. #: guix-git/doc/guix.texi:18255
  26727. #, no-wrap
  26728. msgid "{Data Type} ntp-configuration"
  26729. msgstr ""
  26730. #. type: deftp
  26731. #: guix-git/doc/guix.texi:18257
  26732. msgid "This is the data type for the NTP service configuration."
  26733. msgstr ""
  26734. #. type: item
  26735. #: guix-git/doc/guix.texi:18259
  26736. #, no-wrap
  26737. msgid "@code{servers} (default: @code{%ntp-servers})"
  26738. msgstr ""
  26739. #. type: table
  26740. #: guix-git/doc/guix.texi:18263
  26741. 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."
  26742. msgstr ""
  26743. #. type: item
  26744. #: guix-git/doc/guix.texi:18264
  26745. #, fuzzy, no-wrap
  26746. msgid "@code{allow-large-adjustment?} (default: @code{#t})"
  26747. msgstr "@code{challenge}(默认值:@code{#f})"
  26748. #. type: table
  26749. #: guix-git/doc/guix.texi:18267
  26750. msgid "This determines whether @command{ntpd} is allowed to make an initial adjustment of more than 1,000 seconds."
  26751. msgstr ""
  26752. #. type: item
  26753. #: guix-git/doc/guix.texi:18268
  26754. #, no-wrap
  26755. msgid "@code{ntp} (default: @code{ntp})"
  26756. msgstr ""
  26757. #. type: table
  26758. #: guix-git/doc/guix.texi:18270
  26759. msgid "The NTP package to use."
  26760. msgstr ""
  26761. #. type: defvr
  26762. #: guix-git/doc/guix.texi:18273
  26763. #, no-wrap
  26764. msgid "{Scheme Variable} %ntp-servers"
  26765. msgstr ""
  26766. #. type: defvr
  26767. #: guix-git/doc/guix.texi:18276
  26768. 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}."
  26769. msgstr ""
  26770. #. type: deftp
  26771. #: guix-git/doc/guix.texi:18278
  26772. #, no-wrap
  26773. msgid "{Data Type} ntp-server"
  26774. msgstr ""
  26775. #. type: deftp
  26776. #: guix-git/doc/guix.texi:18280
  26777. msgid "The data type representing the configuration of a NTP server."
  26778. msgstr ""
  26779. #. type: item
  26780. #: guix-git/doc/guix.texi:18282
  26781. #, fuzzy, no-wrap
  26782. msgid "@code{type} (default: @code{'server})"
  26783. msgstr "@code{mate}(默认值:@code{mate})"
  26784. #. type: table
  26785. #: guix-git/doc/guix.texi:18285
  26786. msgid "The type of the NTP server, given as a symbol. One of @code{'pool}, @code{'server}, @code{'peer}, @code{'broadcast} or @code{'manycastclient}."
  26787. msgstr ""
  26788. #. type: code{#1}
  26789. #: guix-git/doc/guix.texi:18286
  26790. #, no-wrap
  26791. msgid "address"
  26792. msgstr ""
  26793. #. type: table
  26794. #: guix-git/doc/guix.texi:18288
  26795. msgid "The address of the server, as a string."
  26796. msgstr ""
  26797. #. type: code{#1}
  26798. #: guix-git/doc/guix.texi:18289 guix-git/doc/guix.texi:34325
  26799. #: guix-git/doc/guix.texi:34345
  26800. #, no-wrap
  26801. msgid "options"
  26802. msgstr ""
  26803. #. type: table
  26804. #: guix-git/doc/guix.texi:18294
  26805. 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."
  26806. msgstr ""
  26807. #. type: example
  26808. #: guix-git/doc/guix.texi:18300
  26809. #, no-wrap
  26810. msgid ""
  26811. "(ntp-server\n"
  26812. " (type 'server)\n"
  26813. " (address \"some.ntp.server.org\")\n"
  26814. " (options `(iburst (version 3) (maxpoll 16) prefer))))\n"
  26815. msgstr ""
  26816. #. type: cindex
  26817. #: guix-git/doc/guix.texi:18304
  26818. #, no-wrap
  26819. msgid "OpenNTPD"
  26820. msgstr ""
  26821. #. type: deffn
  26822. #: guix-git/doc/guix.texi:18305
  26823. #, no-wrap
  26824. msgid "{Scheme Procedure} openntpd-service-type"
  26825. msgstr ""
  26826. #. type: deffn
  26827. #: guix-git/doc/guix.texi:18309
  26828. 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."
  26829. msgstr ""
  26830. #. type: lisp
  26831. #: guix-git/doc/guix.texi:18318
  26832. #, no-wrap
  26833. msgid ""
  26834. "(service\n"
  26835. " openntpd-service-type\n"
  26836. " (openntpd-configuration\n"
  26837. " (listen-on '(\"127.0.0.1\" \"::1\"))\n"
  26838. " (sensor '(\"udcf0 correction 70000\"))\n"
  26839. " (constraint-from '(\"www.gnu.org\"))\n"
  26840. " (constraints-from '(\"https://www.google.com/\"))))\n"
  26841. "\n"
  26842. msgstr ""
  26843. #. type: defvr
  26844. #: guix-git/doc/guix.texi:18322
  26845. #, no-wrap
  26846. msgid "{Scheme Variable} %openntpd-servers"
  26847. msgstr ""
  26848. #. type: defvr
  26849. #: guix-git/doc/guix.texi:18325
  26850. msgid "This variable is a list of the server addresses defined in @code{%ntp-servers}."
  26851. msgstr ""
  26852. #. type: deftp
  26853. #: guix-git/doc/guix.texi:18327
  26854. #, no-wrap
  26855. msgid "{Data Type} openntpd-configuration"
  26856. msgstr ""
  26857. #. type: item
  26858. #: guix-git/doc/guix.texi:18329
  26859. #, no-wrap
  26860. msgid "@code{openntpd} (default: @code{(file-append openntpd \"/sbin/ntpd\")})"
  26861. msgstr ""
  26862. #. type: table
  26863. #: guix-git/doc/guix.texi:18331
  26864. msgid "The openntpd executable to use."
  26865. msgstr ""
  26866. #. type: item
  26867. #: guix-git/doc/guix.texi:18331
  26868. #, no-wrap
  26869. msgid "@code{listen-on} (default: @code{'(\"127.0.0.1\" \"::1\")})"
  26870. msgstr ""
  26871. #. type: table
  26872. #: guix-git/doc/guix.texi:18333
  26873. msgid "A list of local IP addresses or hostnames the ntpd daemon should listen on."
  26874. msgstr ""
  26875. #. type: item
  26876. #: guix-git/doc/guix.texi:18333
  26877. #, no-wrap
  26878. msgid "@code{query-from} (default: @code{'()})"
  26879. msgstr ""
  26880. #. type: table
  26881. #: guix-git/doc/guix.texi:18335
  26882. msgid "A list of local IP address the ntpd daemon should use for outgoing queries."
  26883. msgstr ""
  26884. #. type: item
  26885. #: guix-git/doc/guix.texi:18335
  26886. #, no-wrap
  26887. msgid "@code{sensor} (default: @code{'()})"
  26888. msgstr ""
  26889. #. type: table
  26890. #: guix-git/doc/guix.texi:18340
  26891. 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."
  26892. msgstr ""
  26893. #. type: item
  26894. #: guix-git/doc/guix.texi:18340
  26895. #, fuzzy, no-wrap
  26896. msgid "@code{server} (default: @code{'()})"
  26897. msgstr "@code{features} (@code{'()})"
  26898. #. type: table
  26899. #: guix-git/doc/guix.texi:18342
  26900. msgid "Specify a list of IP addresses or hostnames of NTP servers to synchronize to."
  26901. msgstr ""
  26902. #. type: item
  26903. #: guix-git/doc/guix.texi:18342
  26904. #, fuzzy, no-wrap
  26905. msgid "@code{servers} (default: @code{%openntp-servers})"
  26906. msgstr "@code{speed}(默认值:@code{1.0})"
  26907. #. type: table
  26908. #: guix-git/doc/guix.texi:18344
  26909. msgid "Specify a list of IP addresses or hostnames of NTP pools to synchronize to."
  26910. msgstr ""
  26911. #. type: item
  26912. #: guix-git/doc/guix.texi:18344
  26913. #, no-wrap
  26914. msgid "@code{constraint-from} (default: @code{'()})"
  26915. msgstr ""
  26916. #. type: table
  26917. #: guix-git/doc/guix.texi:18351
  26918. 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."
  26919. msgstr ""
  26920. #. type: item
  26921. #: guix-git/doc/guix.texi:18351
  26922. #, no-wrap
  26923. msgid "@code{constraints-from} (default: @code{'()})"
  26924. msgstr ""
  26925. #. type: table
  26926. #: guix-git/doc/guix.texi:18355
  26927. 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."
  26928. msgstr ""
  26929. #. type: cindex
  26930. #: guix-git/doc/guix.texi:18358
  26931. #, no-wrap
  26932. msgid "inetd"
  26933. msgstr ""
  26934. #. type: deffn
  26935. #: guix-git/doc/guix.texi:18359
  26936. #, no-wrap
  26937. msgid "{Scheme variable} inetd-service-type"
  26938. msgstr ""
  26939. #. type: deffn
  26940. #: guix-git/doc/guix.texi:18364
  26941. 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."
  26942. msgstr ""
  26943. #. type: deffn
  26944. #: guix-git/doc/guix.texi:18370
  26945. 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}:"
  26946. msgstr ""
  26947. #. type: lisp
  26948. #: guix-git/doc/guix.texi:18393
  26949. #, no-wrap
  26950. msgid ""
  26951. "(service\n"
  26952. " inetd-service-type\n"
  26953. " (inetd-configuration\n"
  26954. " (entries (list\n"
  26955. " (inetd-entry\n"
  26956. " (name \"echo\")\n"
  26957. " (socket-type 'stream)\n"
  26958. " (protocol \"tcp\")\n"
  26959. " (wait? #f)\n"
  26960. " (user \"root\"))\n"
  26961. " (inetd-entry\n"
  26962. " (node \"127.0.0.1\")\n"
  26963. " (name \"smtp\")\n"
  26964. " (socket-type 'stream)\n"
  26965. " (protocol \"tcp\")\n"
  26966. " (wait? #f)\n"
  26967. " (user \"root\")\n"
  26968. " (program (file-append openssh \"/bin/ssh\"))\n"
  26969. " (arguments\n"
  26970. " '(\"ssh\" \"-qT\" \"-i\" \"/path/to/ssh_key\"\n"
  26971. " \"-W\" \"smtp-server:25\" \"user@@hostname\")))))))\n"
  26972. msgstr ""
  26973. #. type: deffn
  26974. #: guix-git/doc/guix.texi:18396
  26975. msgid "See below for more details about @code{inetd-configuration}."
  26976. msgstr ""
  26977. #. type: deftp
  26978. #: guix-git/doc/guix.texi:18398
  26979. #, no-wrap
  26980. msgid "{Data Type} inetd-configuration"
  26981. msgstr ""
  26982. #. type: deftp
  26983. #: guix-git/doc/guix.texi:18400
  26984. msgid "Data type representing the configuration of @command{inetd}."
  26985. msgstr ""
  26986. #. type: item
  26987. #: guix-git/doc/guix.texi:18402
  26988. #, no-wrap
  26989. msgid "@code{program} (default: @code{(file-append inetutils \"/libexec/inetd\")})"
  26990. msgstr ""
  26991. #. type: table
  26992. #: guix-git/doc/guix.texi:18404
  26993. msgid "The @command{inetd} executable to use."
  26994. msgstr ""
  26995. #. type: item
  26996. #: guix-git/doc/guix.texi:18405 guix-git/doc/guix.texi:28088
  26997. #, no-wrap
  26998. msgid "@code{entries} (default: @code{'()})"
  26999. msgstr ""
  27000. #. type: table
  27001. #: guix-git/doc/guix.texi:18408
  27002. msgid "A list of @command{inetd} service entries. Each entry should be created by the @code{inetd-entry} constructor."
  27003. msgstr ""
  27004. #. type: deftp
  27005. #: guix-git/doc/guix.texi:18411
  27006. #, no-wrap
  27007. msgid "{Data Type} inetd-entry"
  27008. msgstr ""
  27009. #. type: deftp
  27010. #: guix-git/doc/guix.texi:18415
  27011. msgid "Data type representing an entry in the @command{inetd} configuration. Each entry corresponds to a socket where @command{inetd} will listen for requests."
  27012. msgstr ""
  27013. #. type: item
  27014. #: guix-git/doc/guix.texi:18417
  27015. #, no-wrap
  27016. msgid "@code{node} (default: @code{#f})"
  27017. msgstr ""
  27018. #. type: table
  27019. #: guix-git/doc/guix.texi:18422
  27020. 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."
  27021. msgstr ""
  27022. #. type: table
  27023. #: guix-git/doc/guix.texi:18424
  27024. msgid "A string, the name must correspond to an entry in @code{/etc/services}."
  27025. msgstr ""
  27026. #. type: code{#1}
  27027. #: guix-git/doc/guix.texi:18424
  27028. #, no-wrap
  27029. msgid "socket-type"
  27030. msgstr ""
  27031. #. type: table
  27032. #: guix-git/doc/guix.texi:18427
  27033. msgid "One of @code{'stream}, @code{'dgram}, @code{'raw}, @code{'rdm} or @code{'seqpacket}."
  27034. msgstr ""
  27035. #. type: code{#1}
  27036. #: guix-git/doc/guix.texi:18427
  27037. #, no-wrap
  27038. msgid "protocol"
  27039. msgstr ""
  27040. #. type: table
  27041. #: guix-git/doc/guix.texi:18429
  27042. msgid "A string, must correspond to an entry in @code{/etc/protocols}."
  27043. msgstr ""
  27044. #. type: item
  27045. #: guix-git/doc/guix.texi:18429
  27046. #, no-wrap
  27047. msgid "@code{wait?} (default: @code{#t})"
  27048. msgstr ""
  27049. #. type: table
  27050. #: guix-git/doc/guix.texi:18432
  27051. msgid "Whether @command{inetd} should wait for the server to exit before listening to new service requests."
  27052. msgstr ""
  27053. #. type: table
  27054. #: guix-git/doc/guix.texi:18437
  27055. 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\"}."
  27056. msgstr ""
  27057. #. type: item
  27058. #: guix-git/doc/guix.texi:18437
  27059. #, no-wrap
  27060. msgid "@code{program} (default: @code{\"internal\"})"
  27061. msgstr ""
  27062. #. type: table
  27063. #: guix-git/doc/guix.texi:18440
  27064. msgid "The server program which will serve the requests, or @code{\"internal\"} if @command{inetd} should use a built-in service."
  27065. msgstr ""
  27066. #. type: table
  27067. #: guix-git/doc/guix.texi:18445
  27068. 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\")}."
  27069. msgstr ""
  27070. #. type: deftp
  27071. #: guix-git/doc/guix.texi:18449
  27072. msgid "@xref{Configuration file,,, inetutils, GNU Inetutils} for a more detailed discussion of each configuration field."
  27073. msgstr ""
  27074. #. type: cindex
  27075. #: guix-git/doc/guix.texi:18451
  27076. #, no-wrap
  27077. msgid "opendht, distributed hash table network service"
  27078. msgstr ""
  27079. #. type: cindex
  27080. #: guix-git/doc/guix.texi:18452
  27081. #, no-wrap
  27082. msgid "dhtproxy, for use with jami"
  27083. msgstr ""
  27084. #. type: defvr
  27085. #: guix-git/doc/guix.texi:18453
  27086. #, no-wrap
  27087. msgid "{Scheme Variable} opendht-service-type"
  27088. msgstr ""
  27089. #. type: defvr
  27090. #: guix-git/doc/guix.texi:18458
  27091. msgid "This is the type of the service running a @uref{https://opendht.net, OpenDHT} node, @command{dhtnode}. The daemon can be used to host your own proxy service to the distributed hash table (DHT), for example to connect to with Jami, among other applications."
  27092. msgstr ""
  27093. #. type: quotation
  27094. #: guix-git/doc/guix.texi:18468
  27095. msgid "When using the OpenDHT proxy server, the IP addresses it ``sees'' from the clients should be addresses reachable from other peers. In practice this means that a publicly reachable address is best suited for a proxy server, outside of your private network. For example, hosting the proxy server on a IPv4 private local network and exposing it via port forwarding could work for external peers, but peers local to the proxy would have their private addresses shared with the external peers, leading to connectivity problems."
  27096. msgstr ""
  27097. #. type: defvr
  27098. #: guix-git/doc/guix.texi:18472
  27099. msgid "The value of this service is a @code{opendht-configuration} object, as described below."
  27100. msgstr ""
  27101. #. type: deftp
  27102. #: guix-git/doc/guix.texi:18474
  27103. #, fuzzy, no-wrap
  27104. msgid "{Data Type} opendht-configuration"
  27105. msgstr "系统配置"
  27106. #. type: deftp
  27107. #: guix-git/doc/guix.texi:18476
  27108. #, fuzzy
  27109. msgid "This is the data type for the OpenDHT service configuration."
  27110. msgstr "管理操作系统配置。"
  27111. #. type: deftp
  27112. #: guix-git/doc/guix.texi:18481
  27113. msgid "Available @code{opendht-configuration} fields are:"
  27114. msgstr ""
  27115. #. type: deftypevr
  27116. #: guix-git/doc/guix.texi:18482
  27117. #, no-wrap
  27118. msgid "{@code{opendht-configuration} parameter} package opendht"
  27119. msgstr ""
  27120. #. type: deftypevr
  27121. #: guix-git/doc/guix.texi:18484
  27122. #, fuzzy
  27123. msgid "The @code{opendht} package to use."
  27124. msgstr "软件包数据类型。"
  27125. #. type: deftypevr
  27126. #: guix-git/doc/guix.texi:18487
  27127. #, no-wrap
  27128. msgid "{@code{opendht-configuration} parameter} boolean peer-discovery?"
  27129. msgstr ""
  27130. #. type: deftypevr
  27131. #: guix-git/doc/guix.texi:18489
  27132. msgid "Whether to enable the multicast local peer discovery mechanism."
  27133. msgstr ""
  27134. #. type: deftypevr
  27135. #: guix-git/doc/guix.texi:18491 guix-git/doc/guix.texi:18499
  27136. #: guix-git/doc/guix.texi:18507 guix-git/doc/guix.texi:20199
  27137. #: guix-git/doc/guix.texi:20275 guix-git/doc/guix.texi:20317
  27138. #: guix-git/doc/guix.texi:20337 guix-git/doc/guix.texi:20343
  27139. #: guix-git/doc/guix.texi:20359 guix-git/doc/guix.texi:20447
  27140. #: guix-git/doc/guix.texi:20535 guix-git/doc/guix.texi:20848
  27141. #: guix-git/doc/guix.texi:20861 guix-git/doc/guix.texi:22012
  27142. #: guix-git/doc/guix.texi:23490 guix-git/doc/guix.texi:23596
  27143. #: guix-git/doc/guix.texi:23661 guix-git/doc/guix.texi:23670
  27144. #: guix-git/doc/guix.texi:24903 guix-git/doc/guix.texi:24947
  27145. #: guix-git/doc/guix.texi:24964 guix-git/doc/guix.texi:24972
  27146. #: guix-git/doc/guix.texi:24987 guix-git/doc/guix.texi:25005
  27147. #: guix-git/doc/guix.texi:25029 guix-git/doc/guix.texi:25082
  27148. #: guix-git/doc/guix.texi:25215 guix-git/doc/guix.texi:25249
  27149. #: guix-git/doc/guix.texi:25285 guix-git/doc/guix.texi:25301
  27150. #: guix-git/doc/guix.texi:25329 guix-git/doc/guix.texi:25390
  27151. #: guix-git/doc/guix.texi:25473 guix-git/doc/guix.texi:28800
  27152. #: guix-git/doc/guix.texi:28814 guix-git/doc/guix.texi:28836
  27153. #: guix-git/doc/guix.texi:28955 guix-git/doc/guix.texi:28969
  27154. #: guix-git/doc/guix.texi:28990 guix-git/doc/guix.texi:29011
  27155. #: guix-git/doc/guix.texi:29018 guix-git/doc/guix.texi:29063
  27156. #: guix-git/doc/guix.texi:29070 guix-git/doc/guix.texi:29859
  27157. #: guix-git/doc/guix.texi:29873 guix-git/doc/guix.texi:30073
  27158. #: guix-git/doc/guix.texi:30118 guix-git/doc/guix.texi:30205
  27159. #: guix-git/doc/guix.texi:30407 guix-git/doc/guix.texi:30440
  27160. #: guix-git/doc/guix.texi:30580 guix-git/doc/guix.texi:30591
  27161. #: guix-git/doc/guix.texi:30842 guix-git/doc/guix.texi:32365
  27162. #: guix-git/doc/guix.texi:32374 guix-git/doc/guix.texi:32382
  27163. #: guix-git/doc/guix.texi:32390 guix-git/doc/guix.texi:32406
  27164. #: guix-git/doc/guix.texi:32422 guix-git/doc/guix.texi:32430
  27165. #: guix-git/doc/guix.texi:32438 guix-git/doc/guix.texi:32447
  27166. #: guix-git/doc/guix.texi:32456 guix-git/doc/guix.texi:32472
  27167. #: guix-git/doc/guix.texi:32536 guix-git/doc/guix.texi:32642
  27168. #: guix-git/doc/guix.texi:32650 guix-git/doc/guix.texi:32658
  27169. #: guix-git/doc/guix.texi:32683 guix-git/doc/guix.texi:32737
  27170. #: guix-git/doc/guix.texi:32785 guix-git/doc/guix.texi:32986
  27171. #: guix-git/doc/guix.texi:32993
  27172. msgid "Defaults to @samp{#f}."
  27173. msgstr ""
  27174. #. type: deftypevr
  27175. #: guix-git/doc/guix.texi:18494
  27176. #, no-wrap
  27177. msgid "{@code{opendht-configuration} parameter} boolean enable-logging?"
  27178. msgstr ""
  27179. #. type: deftypevr
  27180. #: guix-git/doc/guix.texi:18497
  27181. msgid "Whether to enable logging messages to syslog. It is disabled by default as it is rather verbose."
  27182. msgstr ""
  27183. #. type: deftypevr
  27184. #: guix-git/doc/guix.texi:18502
  27185. #, no-wrap
  27186. msgid "{@code{opendht-configuration} parameter} boolean debug?"
  27187. msgstr ""
  27188. #. type: deftypevr
  27189. #: guix-git/doc/guix.texi:18505
  27190. msgid "Whether to enable debug-level logging messages. This has no effect if logging is disabled."
  27191. msgstr ""
  27192. #. type: deftypevr
  27193. #: guix-git/doc/guix.texi:18510
  27194. #, no-wrap
  27195. msgid "{@code{opendht-configuration} parameter} maybe-string bootstrap-host"
  27196. msgstr ""
  27197. #. type: deftypevr
  27198. #: guix-git/doc/guix.texi:18516
  27199. msgid "The node host name that is used to make the first connection to the network. A specific port value can be provided by appending the @code{:PORT} suffix. By default, it uses the Jami bootstrap nodes, but any host can be specified here. It's also possible to disable bootsrapping by setting this to the @code{'disabled} symbol."
  27200. msgstr ""
  27201. #. type: deftypevr
  27202. #: guix-git/doc/guix.texi:18518
  27203. msgid "Defaults to @samp{\"bootstrap.jami.net:4222\"}."
  27204. msgstr ""
  27205. #. type: deftypevr
  27206. #: guix-git/doc/guix.texi:18521
  27207. #, no-wrap
  27208. msgid "{@code{opendht-configuration} parameter} maybe-number port"
  27209. msgstr ""
  27210. #. type: deftypevr
  27211. #: guix-git/doc/guix.texi:18524
  27212. msgid "The UDP port to bind to. When set to @code{'disabled}, an available port is automatically selected."
  27213. msgstr ""
  27214. #. type: deftypevr
  27215. #: guix-git/doc/guix.texi:18526
  27216. msgid "Defaults to @samp{4222}."
  27217. msgstr ""
  27218. #. type: deftypevr
  27219. #: guix-git/doc/guix.texi:18529
  27220. #, no-wrap
  27221. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port"
  27222. msgstr ""
  27223. #. type: deftypevr
  27224. #: guix-git/doc/guix.texi:18531
  27225. msgid "Spawn a proxy server listening on the specified port."
  27226. msgstr ""
  27227. #. type: deftypevr
  27228. #: guix-git/doc/guix.texi:18533 guix-git/doc/guix.texi:18540
  27229. #: guix-git/doc/guix.texi:24911 guix-git/doc/guix.texi:24955
  27230. #: guix-git/doc/guix.texi:25168 guix-git/doc/guix.texi:25224
  27231. #: guix-git/doc/guix.texi:25398 guix-git/doc/guix.texi:25409
  27232. #: guix-git/doc/guix.texi:25482 guix-git/doc/guix.texi:26117
  27233. #: guix-git/doc/guix.texi:26160 guix-git/doc/guix.texi:26168
  27234. #: guix-git/doc/guix.texi:26176 guix-git/doc/guix.texi:26184
  27235. #: guix-git/doc/guix.texi:26193 guix-git/doc/guix.texi:26201
  27236. #: guix-git/doc/guix.texi:26208 guix-git/doc/guix.texi:26216
  27237. #: guix-git/doc/guix.texi:26224 guix-git/doc/guix.texi:26234
  27238. #: guix-git/doc/guix.texi:26241 guix-git/doc/guix.texi:26265
  27239. #: guix-git/doc/guix.texi:26273 guix-git/doc/guix.texi:26299
  27240. #: guix-git/doc/guix.texi:26308 guix-git/doc/guix.texi:26317
  27241. #: guix-git/doc/guix.texi:26326 guix-git/doc/guix.texi:26335
  27242. #: guix-git/doc/guix.texi:26344 guix-git/doc/guix.texi:26352
  27243. #: guix-git/doc/guix.texi:26360 guix-git/doc/guix.texi:26367
  27244. #: guix-git/doc/guix.texi:26375 guix-git/doc/guix.texi:26382
  27245. #: guix-git/doc/guix.texi:26390 guix-git/doc/guix.texi:26398
  27246. #: guix-git/doc/guix.texi:26407 guix-git/doc/guix.texi:26416
  27247. #: guix-git/doc/guix.texi:26424 guix-git/doc/guix.texi:26432
  27248. #: guix-git/doc/guix.texi:26440 guix-git/doc/guix.texi:26451
  27249. #: guix-git/doc/guix.texi:26461 guix-git/doc/guix.texi:26472
  27250. #: guix-git/doc/guix.texi:26481 guix-git/doc/guix.texi:26491
  27251. #: guix-git/doc/guix.texi:26499 guix-git/doc/guix.texi:26510
  27252. #: guix-git/doc/guix.texi:26519 guix-git/doc/guix.texi:26529
  27253. #: guix-git/doc/guix.texi:29772 guix-git/doc/guix.texi:29779
  27254. #: guix-git/doc/guix.texi:29786 guix-git/doc/guix.texi:29793
  27255. #: guix-git/doc/guix.texi:29800 guix-git/doc/guix.texi:29807
  27256. #: guix-git/doc/guix.texi:29815 guix-git/doc/guix.texi:29823
  27257. #: guix-git/doc/guix.texi:29830 guix-git/doc/guix.texi:29837
  27258. #: guix-git/doc/guix.texi:29844 guix-git/doc/guix.texi:29851
  27259. #: guix-git/doc/guix.texi:29881 guix-git/doc/guix.texi:29919
  27260. #: guix-git/doc/guix.texi:29926 guix-git/doc/guix.texi:29935
  27261. #: guix-git/doc/guix.texi:29957 guix-git/doc/guix.texi:29965
  27262. #: guix-git/doc/guix.texi:29972 guix-git/doc/guix.texi:30001
  27263. #: guix-git/doc/guix.texi:30008 guix-git/doc/guix.texi:30015
  27264. #: guix-git/doc/guix.texi:30022 guix-git/doc/guix.texi:30155
  27265. #: guix-git/doc/guix.texi:30175 guix-git/doc/guix.texi:30190
  27266. #: guix-git/doc/guix.texi:30197 guix-git/doc/guix.texi:32938
  27267. #: guix-git/doc/guix.texi:32946 guix-git/doc/guix.texi:32954
  27268. #: guix-git/doc/guix.texi:32962 guix-git/doc/guix.texi:32970
  27269. #: guix-git/doc/guix.texi:32978
  27270. msgid "Defaults to @samp{disabled}."
  27271. msgstr ""
  27272. #. type: deftypevr
  27273. #: guix-git/doc/guix.texi:18536
  27274. #, no-wrap
  27275. msgid "{@code{opendht-configuration} parameter} maybe-number proxy-server-port-tls"
  27276. msgstr ""
  27277. #. type: deftypevr
  27278. #: guix-git/doc/guix.texi:18538
  27279. msgid "Spawn a proxy server listening to TLS connections on the specified port."
  27280. msgstr ""
  27281. #. type: cindex
  27282. #: guix-git/doc/guix.texi:18544
  27283. #, no-wrap
  27284. msgid "Tor"
  27285. msgstr ""
  27286. #. type: defvr
  27287. #: guix-git/doc/guix.texi:18545
  27288. #, no-wrap
  27289. msgid "{Scheme Variable} tor-service-type"
  27290. msgstr ""
  27291. #. type: defvr
  27292. #: guix-git/doc/guix.texi:18550
  27293. 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."
  27294. msgstr ""
  27295. #. type: deftp
  27296. #: guix-git/doc/guix.texi:18553
  27297. #, no-wrap
  27298. msgid "{Data Type} tor-configuration"
  27299. msgstr ""
  27300. #. type: item
  27301. #: guix-git/doc/guix.texi:18555
  27302. #, no-wrap
  27303. msgid "@code{tor} (default: @code{tor})"
  27304. msgstr ""
  27305. #. type: table
  27306. #: guix-git/doc/guix.texi:18560
  27307. 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."
  27308. msgstr ""
  27309. #. type: item
  27310. #: guix-git/doc/guix.texi:18561
  27311. #, no-wrap
  27312. msgid "@code{config-file} (default: @code{(plain-file \"empty\" \"\")})"
  27313. msgstr ""
  27314. #. type: table
  27315. #: guix-git/doc/guix.texi:18567
  27316. 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."
  27317. msgstr ""
  27318. #. type: item
  27319. #: guix-git/doc/guix.texi:18568
  27320. #, no-wrap
  27321. msgid "@code{hidden-services} (default: @code{'()})"
  27322. msgstr ""
  27323. #. type: table
  27324. #: guix-git/doc/guix.texi:18574
  27325. 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."
  27326. msgstr ""
  27327. #. type: item
  27328. #: guix-git/doc/guix.texi:18575
  27329. #, no-wrap
  27330. msgid "@code{socks-socket-type} (default: @code{'tcp})"
  27331. msgstr ""
  27332. #. type: table
  27333. #: guix-git/doc/guix.texi:18582
  27334. 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."
  27335. msgstr ""
  27336. #. type: table
  27337. #: guix-git/doc/guix.texi:18587
  27338. 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."
  27339. msgstr ""
  27340. #. type: item
  27341. #: guix-git/doc/guix.texi:18588
  27342. #, fuzzy, no-wrap
  27343. msgid "@code{control-socket?} (default: @code{#f})"
  27344. msgstr "@code{journal-content}(默认值:@code{#f})"
  27345. #. type: table
  27346. #: guix-git/doc/guix.texi:18594
  27347. 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."
  27348. msgstr ""
  27349. #. type: cindex
  27350. #: guix-git/doc/guix.texi:18598
  27351. #, no-wrap
  27352. msgid "hidden service"
  27353. msgstr ""
  27354. #. type: deffn
  27355. #: guix-git/doc/guix.texi:18599
  27356. #, no-wrap
  27357. msgid "{Scheme Procedure} tor-hidden-service @var{name} @var{mapping}"
  27358. msgstr ""
  27359. #. type: deffn
  27360. #: guix-git/doc/guix.texi:18602
  27361. 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:"
  27362. msgstr ""
  27363. #. type: example
  27364. #: guix-git/doc/guix.texi:18606
  27365. #, no-wrap
  27366. msgid ""
  27367. " '((22 \"127.0.0.1:22\")\n"
  27368. " (80 \"127.0.0.1:8080\"))\n"
  27369. msgstr ""
  27370. #. type: deffn
  27371. #: guix-git/doc/guix.texi:18610
  27372. 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."
  27373. msgstr ""
  27374. #. type: deffn
  27375. #: guix-git/doc/guix.texi:18614
  27376. 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."
  27377. msgstr ""
  27378. #. type: deffn
  27379. #: guix-git/doc/guix.texi:18617
  27380. msgid "See @uref{https://www.torproject.org/docs/tor-hidden-service.html.en, the Tor project's documentation} for more information."
  27381. msgstr ""
  27382. #. type: Plain text
  27383. #: guix-git/doc/guix.texi:18620
  27384. msgid "The @code{(gnu services rsync)} module provides the following services:"
  27385. msgstr ""
  27386. #. type: Plain text
  27387. #: guix-git/doc/guix.texi:18624
  27388. 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."
  27389. msgstr ""
  27390. #. type: deffn
  27391. #: guix-git/doc/guix.texi:18625
  27392. #, no-wrap
  27393. msgid "{Scheme Variable} rsync-service-type"
  27394. msgstr ""
  27395. #. type: deffn
  27396. #: guix-git/doc/guix.texi:18629
  27397. 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:"
  27398. msgstr ""
  27399. #. type: lisp
  27400. #: guix-git/doc/guix.texi:18642
  27401. #, no-wrap
  27402. msgid ""
  27403. ";; Export two directories over rsync. By default rsync listens on\n"
  27404. ";; all the network interfaces.\n"
  27405. "(service rsync-service-type\n"
  27406. " (rsync-configuration\n"
  27407. " (modules (list (rsync-module\n"
  27408. " (name \"music\")\n"
  27409. " (file-name \"/srv/zik\")\n"
  27410. " (read-only? #f))\n"
  27411. " (rsync-module\n"
  27412. " (name \"movies\")\n"
  27413. " (file-name \"/home/charlie/movies\"))))))\n"
  27414. msgstr ""
  27415. #. type: deffn
  27416. #: guix-git/doc/guix.texi:18645
  27417. msgid "See below for details about @code{rsync-configuration}."
  27418. msgstr ""
  27419. #. type: deftp
  27420. #: guix-git/doc/guix.texi:18647
  27421. #, no-wrap
  27422. msgid "{Data Type} rsync-configuration"
  27423. msgstr ""
  27424. #. type: deftp
  27425. #: guix-git/doc/guix.texi:18649
  27426. msgid "Data type representing the configuration for @code{rsync-service}."
  27427. msgstr ""
  27428. #. type: item
  27429. #: guix-git/doc/guix.texi:18651
  27430. #, no-wrap
  27431. msgid "@code{package} (default: @var{rsync})"
  27432. msgstr ""
  27433. #. type: table
  27434. #: guix-git/doc/guix.texi:18653
  27435. msgid "@code{rsync} package to use."
  27436. msgstr ""
  27437. #. type: item
  27438. #: guix-git/doc/guix.texi:18654 guix-git/doc/guix.texi:31945
  27439. #, fuzzy, no-wrap
  27440. msgid "@code{address} (default: @code{#f})"
  27441. msgstr "@code{challenge}(默认值:@code{#f})"
  27442. #. type: table
  27443. #: guix-git/doc/guix.texi:18657
  27444. msgid "IP address on which @command{rsync} listens for incoming connections. If unspecified, it defaults to listening on all available addresses."
  27445. msgstr ""
  27446. #. type: item
  27447. #: guix-git/doc/guix.texi:18658
  27448. #, no-wrap
  27449. msgid "@code{port-number} (default: @code{873})"
  27450. msgstr ""
  27451. #. type: table
  27452. #: guix-git/doc/guix.texi:18662
  27453. 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."
  27454. msgstr ""
  27455. #. type: item
  27456. #: guix-git/doc/guix.texi:18663
  27457. #, no-wrap
  27458. msgid "@code{pid-file} (default: @code{\"/var/run/rsyncd/rsyncd.pid\"})"
  27459. msgstr ""
  27460. #. type: table
  27461. #: guix-git/doc/guix.texi:18665
  27462. msgid "Name of the file where @command{rsync} writes its PID."
  27463. msgstr ""
  27464. #. type: item
  27465. #: guix-git/doc/guix.texi:18666
  27466. #, no-wrap
  27467. msgid "@code{lock-file} (default: @code{\"/var/run/rsyncd/rsyncd.lock\"})"
  27468. msgstr ""
  27469. #. type: table
  27470. #: guix-git/doc/guix.texi:18668
  27471. msgid "Name of the file where @command{rsync} writes its lock file."
  27472. msgstr ""
  27473. #. type: item
  27474. #: guix-git/doc/guix.texi:18669
  27475. #, no-wrap
  27476. msgid "@code{log-file} (default: @code{\"/var/log/rsyncd.log\"})"
  27477. msgstr ""
  27478. #. type: table
  27479. #: guix-git/doc/guix.texi:18671
  27480. msgid "Name of the file where @command{rsync} writes its log file."
  27481. msgstr ""
  27482. #. type: item
  27483. #: guix-git/doc/guix.texi:18672 guix-git/doc/guix.texi:36176
  27484. #, fuzzy, no-wrap
  27485. msgid "@code{user} (default: @code{\"root\"})"
  27486. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  27487. #. type: table
  27488. #: guix-git/doc/guix.texi:18674
  27489. msgid "Owner of the @code{rsync} process."
  27490. msgstr ""
  27491. #. type: item
  27492. #: guix-git/doc/guix.texi:18675
  27493. #, fuzzy, no-wrap
  27494. msgid "@code{group} (default: @code{\"root\"})"
  27495. msgstr "@code{gnome}(默认值:@code{gnome})"
  27496. #. type: table
  27497. #: guix-git/doc/guix.texi:18677
  27498. msgid "Group of the @code{rsync} process."
  27499. msgstr ""
  27500. #. type: item
  27501. #: guix-git/doc/guix.texi:18678
  27502. #, fuzzy, no-wrap
  27503. msgid "@code{uid} (default: @code{\"rsyncd\"})"
  27504. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  27505. #. type: table
  27506. #: guix-git/doc/guix.texi:18681
  27507. 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}."
  27508. msgstr ""
  27509. #. type: item
  27510. #: guix-git/doc/guix.texi:18682
  27511. #, fuzzy, no-wrap
  27512. msgid "@code{gid} (default: @code{\"rsyncd\"})"
  27513. msgstr "@code{speed}(默认值:@code{1.0})"
  27514. #. type: table
  27515. #: guix-git/doc/guix.texi:18684 guix-git/doc/guix.texi:19163
  27516. msgid "Group name or group ID that will be used when accessing the module."
  27517. msgstr ""
  27518. #. type: item
  27519. #: guix-git/doc/guix.texi:18685 guix-git/doc/guix.texi:36982
  27520. #, no-wrap
  27521. msgid "@code{modules} (default: @code{%default-modules})"
  27522. msgstr ""
  27523. #. type: table
  27524. #: guix-git/doc/guix.texi:18688
  27525. msgid "List of ``modules''---i.e., directories exported over rsync. Each element must be a @code{rsync-module} record, as described below."
  27526. msgstr ""
  27527. #. type: deftp
  27528. #: guix-git/doc/guix.texi:18691
  27529. #, fuzzy, no-wrap
  27530. msgid "{Data Type} rsync-module"
  27531. msgstr "{数据类型} build-machine"
  27532. #. type: deftp
  27533. #: guix-git/doc/guix.texi:18694
  27534. msgid "This is the data type for rsync ``modules''. A module is a directory exported over the rsync protocol. The available fields are as follows:"
  27535. msgstr ""
  27536. #. type: table
  27537. #: guix-git/doc/guix.texi:18700
  27538. msgid "The module name. This is the name that shows up in URLs. For example, if the module is called @code{music}, the corresponding URL will be @code{rsync://host.example.org/music}."
  27539. msgstr ""
  27540. #. type: code{#1}
  27541. #: guix-git/doc/guix.texi:18701
  27542. #, fuzzy, no-wrap
  27543. msgid "file-name"
  27544. msgstr "通道"
  27545. #. type: table
  27546. #: guix-git/doc/guix.texi:18703
  27547. #, fuzzy
  27548. msgid "Name of the directory being exported."
  27549. msgstr "仓库的纯函数式接口。"
  27550. #. type: table
  27551. #: guix-git/doc/guix.texi:18707
  27552. msgid "Comment associated with the module. Client user interfaces may display it when they obtain the list of available modules."
  27553. msgstr ""
  27554. #. type: item
  27555. #: guix-git/doc/guix.texi:18708
  27556. #, fuzzy, no-wrap
  27557. msgid "@code{read-only?} (default: @code{#t})"
  27558. msgstr "@code{speed}(默认值:@code{1.0})"
  27559. #. type: table
  27560. #: guix-git/doc/guix.texi:18712
  27561. msgid "Whether or not client will be able to upload files. If this is false, the uploads will be authorized if permissions on the daemon side permit it."
  27562. msgstr ""
  27563. #. type: item
  27564. #: guix-git/doc/guix.texi:18713
  27565. #, fuzzy, no-wrap
  27566. msgid "@code{chroot?} (default: @code{#t})"
  27567. msgstr "@code{port}(默认值:@code{22})"
  27568. #. type: table
  27569. #: guix-git/doc/guix.texi:18717
  27570. msgid "When this is true, the rsync daemon changes root to the module's directory before starting file transfers with the client. This improves security, but requires rsync to run as root."
  27571. msgstr ""
  27572. #. type: item
  27573. #: guix-git/doc/guix.texi:18718
  27574. #, no-wrap
  27575. msgid "@code{timeout} (default: @code{300})"
  27576. msgstr ""
  27577. #. type: table
  27578. #: guix-git/doc/guix.texi:18721
  27579. msgid "Idle time in seconds after which the daemon closes a connection with the client."
  27580. msgstr ""
  27581. #. type: Plain text
  27582. #: guix-git/doc/guix.texi:18725
  27583. msgid "The @code{(gnu services syncthing)} module provides the following services:"
  27584. msgstr ""
  27585. #. type: cindex
  27586. #: guix-git/doc/guix.texi:18725
  27587. #, no-wrap
  27588. msgid "syncthing"
  27589. msgstr ""
  27590. #. type: Plain text
  27591. #: guix-git/doc/guix.texi:18730
  27592. 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."
  27593. msgstr ""
  27594. #. type: deffn
  27595. #: guix-git/doc/guix.texi:18731
  27596. #, no-wrap
  27597. msgid "{Scheme Variable} syncthing-service-type"
  27598. msgstr ""
  27599. #. type: deffn
  27600. #: guix-git/doc/guix.texi:18735
  27601. 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:"
  27602. msgstr ""
  27603. #. type: lisp
  27604. #: guix-git/doc/guix.texi:18739
  27605. #, no-wrap
  27606. msgid ""
  27607. "(service syncthing-service-type\n"
  27608. " (syncthing-configuration (user \"alice\")))\n"
  27609. msgstr ""
  27610. #. type: deffn
  27611. #: guix-git/doc/guix.texi:18742
  27612. msgid "See below for details about @code{syncthing-configuration}."
  27613. msgstr ""
  27614. #. type: deftp
  27615. #: guix-git/doc/guix.texi:18743
  27616. #, fuzzy, no-wrap
  27617. msgid "{Data Type} syncthing-configuration"
  27618. msgstr "{数据类型} build-machine"
  27619. #. type: deftp
  27620. #: guix-git/doc/guix.texi:18745
  27621. #, fuzzy
  27622. msgid "Data type representing the configuration for @code{syncthing-service-type}."
  27623. msgstr "管理操作系统配置。"
  27624. #. type: item
  27625. #: guix-git/doc/guix.texi:18747
  27626. #, fuzzy, no-wrap
  27627. msgid "@code{syncthing} (default: @var{syncthing})"
  27628. msgstr "@code{xfce}(默认值:@code{xfce})"
  27629. #. type: table
  27630. #: guix-git/doc/guix.texi:18749
  27631. #, fuzzy
  27632. msgid "@code{syncthing} package to use."
  27633. msgstr "软件包数据类型。"
  27634. #. type: item
  27635. #: guix-git/doc/guix.texi:18750
  27636. #, fuzzy, no-wrap
  27637. msgid "@code{arguments} (default: @var{'()})"
  27638. msgstr "@code{features} (@code{'()})"
  27639. #. type: table
  27640. #: guix-git/doc/guix.texi:18752
  27641. msgid "List of command-line arguments passing to @code{syncthing} binary."
  27642. msgstr ""
  27643. #. type: item
  27644. #: guix-git/doc/guix.texi:18753
  27645. #, fuzzy, no-wrap
  27646. msgid "@code{logflags} (default: @var{0})"
  27647. msgstr "@code{challenge}(默认值:@code{#f})"
  27648. #. type: table
  27649. #: guix-git/doc/guix.texi:18756
  27650. msgid "Sum of logging flags, see @uref{https://docs.syncthing.net/users/syncthing.html#cmdoption-logflags, Syncthing documentation logflags}."
  27651. msgstr ""
  27652. #. type: item
  27653. #: guix-git/doc/guix.texi:18757
  27654. #, fuzzy, no-wrap
  27655. msgid "@code{user} (default: @var{#f})"
  27656. msgstr "@code{challenge}(默认值:@code{#f})"
  27657. #. type: table
  27658. #: guix-git/doc/guix.texi:18760
  27659. msgid "The user as which the Syncthing service is to be run. This assumes that the specified user exists."
  27660. msgstr ""
  27661. #. type: item
  27662. #: guix-git/doc/guix.texi:18761
  27663. #, fuzzy, no-wrap
  27664. msgid "@code{group} (default: @var{\"users\"})"
  27665. msgstr "@code{gnome}(默认值:@code{gnome})"
  27666. #. type: table
  27667. #: guix-git/doc/guix.texi:18764
  27668. msgid "The group as which the Syncthing service is to be run. This assumes that the specified group exists."
  27669. msgstr ""
  27670. #. type: item
  27671. #: guix-git/doc/guix.texi:18765
  27672. #, fuzzy, no-wrap
  27673. msgid "@code{home} (default: @var{#f})"
  27674. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  27675. #. type: table
  27676. #: guix-git/doc/guix.texi:18768
  27677. msgid "Common configuration and data directory. The default configuration directory is @file{$HOME} of the specified Syncthing @code{user}."
  27678. msgstr ""
  27679. #. type: Plain text
  27680. #: guix-git/doc/guix.texi:18774
  27681. msgid "Furthermore, @code{(gnu services ssh)} provides the following services."
  27682. msgstr ""
  27683. #. type: cindex
  27684. #: guix-git/doc/guix.texi:18774 guix-git/doc/guix.texi:18813
  27685. #: guix-git/doc/guix.texi:36319
  27686. #, no-wrap
  27687. msgid "SSH"
  27688. msgstr ""
  27689. #. type: cindex
  27690. #: guix-git/doc/guix.texi:18775 guix-git/doc/guix.texi:18814
  27691. #: guix-git/doc/guix.texi:36320
  27692. #, no-wrap
  27693. msgid "SSH server"
  27694. msgstr ""
  27695. #. type: deffn
  27696. #: guix-git/doc/guix.texi:18777
  27697. #, no-wrap
  27698. msgid "{Scheme Procedure} lsh-service [#:host-key \"/etc/lsh/host-key\"] @"
  27699. msgstr ""
  27700. #. type: deffn
  27701. #: guix-git/doc/guix.texi:18786
  27702. 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."
  27703. msgstr ""
  27704. #. type: deffn
  27705. #: guix-git/doc/guix.texi:18792
  27706. 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}."
  27707. msgstr ""
  27708. #. type: deffn
  27709. #: guix-git/doc/guix.texi:18796
  27710. 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."
  27711. msgstr ""
  27712. #. type: deffn
  27713. #: guix-git/doc/guix.texi:18801
  27714. 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})."
  27715. msgstr ""
  27716. #. type: deffn
  27717. #: guix-git/doc/guix.texi:18805
  27718. 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."
  27719. msgstr ""
  27720. #. type: deffn
  27721. #: guix-git/doc/guix.texi:18809
  27722. 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."
  27723. msgstr ""
  27724. #. type: deffn
  27725. #: guix-git/doc/guix.texi:18811
  27726. msgid "The other options should be self-descriptive."
  27727. msgstr ""
  27728. #. type: deffn
  27729. #: guix-git/doc/guix.texi:18815
  27730. #, no-wrap
  27731. msgid "{Scheme Variable} openssh-service-type"
  27732. msgstr ""
  27733. #. type: deffn
  27734. #: guix-git/doc/guix.texi:18819
  27735. 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:"
  27736. msgstr ""
  27737. #. type: lisp
  27738. #: guix-git/doc/guix.texi:18828
  27739. #, no-wrap
  27740. msgid ""
  27741. "(service openssh-service-type\n"
  27742. " (openssh-configuration\n"
  27743. " (x11-forwarding? #t)\n"
  27744. " (permit-root-login 'prohibit-password)\n"
  27745. " (authorized-keys\n"
  27746. " `((\"alice\" ,(local-file \"alice.pub\"))\n"
  27747. " (\"bob\" ,(local-file \"bob.pub\"))))))\n"
  27748. msgstr ""
  27749. #. type: deffn
  27750. #: guix-git/doc/guix.texi:18831
  27751. msgid "See below for details about @code{openssh-configuration}."
  27752. msgstr ""
  27753. #. type: deffn
  27754. #: guix-git/doc/guix.texi:18834
  27755. msgid "This service can be extended with extra authorized keys, as in this example:"
  27756. msgstr ""
  27757. #. type: lisp
  27758. #: guix-git/doc/guix.texi:18839
  27759. #, no-wrap
  27760. msgid ""
  27761. "(service-extension openssh-service-type\n"
  27762. " (const `((\"charlie\"\n"
  27763. " ,(local-file \"charlie.pub\")))))\n"
  27764. msgstr ""
  27765. #. type: deftp
  27766. #: guix-git/doc/guix.texi:18842
  27767. #, no-wrap
  27768. msgid "{Data Type} openssh-configuration"
  27769. msgstr ""
  27770. #. type: deftp
  27771. #: guix-git/doc/guix.texi:18844
  27772. msgid "This is the configuration record for OpenSSH's @command{sshd}."
  27773. msgstr ""
  27774. #. type: item
  27775. #: guix-git/doc/guix.texi:18846
  27776. #, fuzzy, no-wrap
  27777. msgid "@code{openssh} (default @var{openssh})"
  27778. msgstr "@code{gnome}(默认值:@code{gnome})"
  27779. #. type: table
  27780. #: guix-git/doc/guix.texi:18848
  27781. #, fuzzy
  27782. msgid "The Openssh package to use."
  27783. msgstr "软件包数据类型。"
  27784. #. type: item
  27785. #: guix-git/doc/guix.texi:18849
  27786. #, no-wrap
  27787. msgid "@code{pid-file} (default: @code{\"/var/run/sshd.pid\"})"
  27788. msgstr ""
  27789. #. type: table
  27790. #: guix-git/doc/guix.texi:18851
  27791. msgid "Name of the file where @command{sshd} writes its PID."
  27792. msgstr ""
  27793. #. type: item
  27794. #: guix-git/doc/guix.texi:18852
  27795. #, no-wrap
  27796. msgid "@code{port-number} (default: @code{22})"
  27797. msgstr ""
  27798. #. type: table
  27799. #: guix-git/doc/guix.texi:18854
  27800. msgid "TCP port on which @command{sshd} listens for incoming connections."
  27801. msgstr ""
  27802. #. type: item
  27803. #: guix-git/doc/guix.texi:18855
  27804. #, no-wrap
  27805. msgid "@code{permit-root-login} (default: @code{#f})"
  27806. msgstr ""
  27807. #. type: table
  27808. #: guix-git/doc/guix.texi:18860
  27809. msgid "This field determines whether and when to allow logins as root. If @code{#f}, root logins are disallowed; if @code{#t}, they are allowed. If it's the symbol @code{'prohibit-password}, then root logins are permitted but not with password-based authentication."
  27810. msgstr ""
  27811. #. type: item
  27812. #: guix-git/doc/guix.texi:18861 guix-git/doc/guix.texi:19022
  27813. #, no-wrap
  27814. msgid "@code{allow-empty-passwords?} (default: @code{#f})"
  27815. msgstr ""
  27816. #. type: table
  27817. #: guix-git/doc/guix.texi:18864
  27818. msgid "When true, users with empty passwords may log in. When false, they may not."
  27819. msgstr ""
  27820. #. type: item
  27821. #: guix-git/doc/guix.texi:18865 guix-git/doc/guix.texi:19025
  27822. #, no-wrap
  27823. msgid "@code{password-authentication?} (default: @code{#t})"
  27824. msgstr ""
  27825. #. type: table
  27826. #: guix-git/doc/guix.texi:18868
  27827. msgid "When true, users may log in with their password. When false, they have other authentication methods."
  27828. msgstr ""
  27829. #. type: item
  27830. #: guix-git/doc/guix.texi:18869
  27831. #, no-wrap
  27832. msgid "@code{public-key-authentication?} (default: @code{#t})"
  27833. msgstr ""
  27834. #. type: table
  27835. #: guix-git/doc/guix.texi:18872
  27836. msgid "When true, users may log in using public key authentication. When false, users have to use other authentication method."
  27837. msgstr ""
  27838. #. type: table
  27839. #: guix-git/doc/guix.texi:18875
  27840. msgid "Authorized public keys are stored in @file{~/.ssh/authorized_keys}. This is used only by protocol version 2."
  27841. msgstr ""
  27842. #. type: item
  27843. #: guix-git/doc/guix.texi:18876
  27844. #, no-wrap
  27845. msgid "@code{x11-forwarding?} (default: @code{#f})"
  27846. msgstr ""
  27847. #. type: table
  27848. #: guix-git/doc/guix.texi:18880
  27849. msgid "When true, forwarding of X11 graphical client connections is enabled---in other words, @command{ssh} options @option{-X} and @option{-Y} will work."
  27850. msgstr ""
  27851. #. type: item
  27852. #: guix-git/doc/guix.texi:18881
  27853. #, no-wrap
  27854. msgid "@code{allow-agent-forwarding?} (default: @code{#t})"
  27855. msgstr ""
  27856. #. type: table
  27857. #: guix-git/doc/guix.texi:18883
  27858. msgid "Whether to allow agent forwarding."
  27859. msgstr ""
  27860. #. type: item
  27861. #: guix-git/doc/guix.texi:18884
  27862. #, no-wrap
  27863. msgid "@code{allow-tcp-forwarding?} (default: @code{#t})"
  27864. msgstr ""
  27865. #. type: table
  27866. #: guix-git/doc/guix.texi:18886
  27867. msgid "Whether to allow TCP forwarding."
  27868. msgstr ""
  27869. #. type: item
  27870. #: guix-git/doc/guix.texi:18887
  27871. #, no-wrap
  27872. msgid "@code{gateway-ports?} (default: @code{#f})"
  27873. msgstr ""
  27874. #. type: table
  27875. #: guix-git/doc/guix.texi:18889
  27876. msgid "Whether to allow gateway ports."
  27877. msgstr ""
  27878. #. type: item
  27879. #: guix-git/doc/guix.texi:18890
  27880. #, no-wrap
  27881. msgid "@code{challenge-response-authentication?} (default: @code{#f})"
  27882. msgstr ""
  27883. #. type: table
  27884. #: guix-git/doc/guix.texi:18893
  27885. msgid "Specifies whether challenge response authentication is allowed (e.g.@: via PAM)."
  27886. msgstr ""
  27887. #. type: item
  27888. #: guix-git/doc/guix.texi:18894
  27889. #, no-wrap
  27890. msgid "@code{use-pam?} (default: @code{#t})"
  27891. msgstr ""
  27892. #. type: table
  27893. #: guix-git/doc/guix.texi:18900
  27894. 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."
  27895. msgstr ""
  27896. #. type: table
  27897. #: guix-git/doc/guix.texi:18905
  27898. 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?}."
  27899. msgstr ""
  27900. #. type: item
  27901. #: guix-git/doc/guix.texi:18906
  27902. #, no-wrap
  27903. msgid "@code{print-last-log?} (default: @code{#t})"
  27904. msgstr ""
  27905. #. type: table
  27906. #: guix-git/doc/guix.texi:18909
  27907. msgid "Specifies whether @command{sshd} should print the date and time of the last user login when a user logs in interactively."
  27908. msgstr ""
  27909. #. type: item
  27910. #: guix-git/doc/guix.texi:18910
  27911. #, no-wrap
  27912. msgid "@code{subsystems} (default: @code{'((\"sftp\" \"internal-sftp\"))})"
  27913. msgstr ""
  27914. #. type: table
  27915. #: guix-git/doc/guix.texi:18912
  27916. msgid "Configures external subsystems (e.g.@: file transfer daemon)."
  27917. msgstr ""
  27918. #. type: table
  27919. #: guix-git/doc/guix.texi:18916
  27920. 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."
  27921. msgstr ""
  27922. #. type: table
  27923. #: guix-git/doc/guix.texi:18919
  27924. msgid "The command @command{internal-sftp} implements an in-process SFTP server. Alternatively, one can specify the @command{sftp-server} command:"
  27925. msgstr ""
  27926. #. type: lisp
  27927. #: guix-git/doc/guix.texi:18924
  27928. #, no-wrap
  27929. msgid ""
  27930. "(service openssh-service-type\n"
  27931. " (openssh-configuration\n"
  27932. " (subsystems\n"
  27933. " `((\"sftp\" ,(file-append openssh \"/libexec/sftp-server\"))))))\n"
  27934. msgstr ""
  27935. #. type: item
  27936. #: guix-git/doc/guix.texi:18926
  27937. #, no-wrap
  27938. msgid "@code{accepted-environment} (default: @code{'()})"
  27939. msgstr ""
  27940. #. type: table
  27941. #: guix-git/doc/guix.texi:18928
  27942. msgid "List of strings describing which environment variables may be exported."
  27943. msgstr ""
  27944. #. type: table
  27945. #: guix-git/doc/guix.texi:18931
  27946. msgid "Each string gets on its own line. See the @code{AcceptEnv} option in @code{man sshd_config}."
  27947. msgstr ""
  27948. #. type: table
  27949. #: guix-git/doc/guix.texi:18936
  27950. 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."
  27951. msgstr ""
  27952. #. type: lisp
  27953. #: guix-git/doc/guix.texi:18941
  27954. #, no-wrap
  27955. msgid ""
  27956. "(service openssh-service-type\n"
  27957. " (openssh-configuration\n"
  27958. " (accepted-environment '(\"COLORTERM\"))))\n"
  27959. msgstr ""
  27960. #. type: item
  27961. #: guix-git/doc/guix.texi:18943
  27962. #, no-wrap
  27963. msgid "@code{authorized-keys} (default: @code{'()})"
  27964. msgstr ""
  27965. #. type: cindex
  27966. #: guix-git/doc/guix.texi:18944
  27967. #, no-wrap
  27968. msgid "authorized keys, SSH"
  27969. msgstr ""
  27970. #. type: cindex
  27971. #: guix-git/doc/guix.texi:18945
  27972. #, no-wrap
  27973. msgid "SSH authorized keys"
  27974. msgstr ""
  27975. #. type: table
  27976. #: guix-git/doc/guix.texi:18949
  27977. 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:"
  27978. msgstr ""
  27979. #. type: lisp
  27980. #: guix-git/doc/guix.texi:18956
  27981. #, no-wrap
  27982. msgid ""
  27983. "(openssh-configuration\n"
  27984. " (authorized-keys\n"
  27985. " `((\"rekado\" ,(local-file \"rekado.pub\"))\n"
  27986. " (\"chris\" ,(local-file \"chris.pub\"))\n"
  27987. " (\"root\" ,(local-file \"rekado.pub\") ,(local-file \"chris.pub\")))))\n"
  27988. msgstr ""
  27989. #. type: table
  27990. #: guix-git/doc/guix.texi:18961
  27991. msgid "registers the specified public keys for user accounts @code{rekado}, @code{chris}, and @code{root}."
  27992. msgstr ""
  27993. #. type: table
  27994. #: guix-git/doc/guix.texi:18964
  27995. msgid "Additional authorized keys can be specified @i{via} @code{service-extension}."
  27996. msgstr ""
  27997. #. type: table
  27998. #: guix-git/doc/guix.texi:18967
  27999. msgid "Note that this does @emph{not} interfere with the use of @file{~/.ssh/authorized_keys}."
  28000. msgstr ""
  28001. #. type: item
  28002. #: guix-git/doc/guix.texi:18968 guix-git/doc/guix.texi:19399
  28003. #, no-wrap
  28004. msgid "@code{log-level} (default: @code{'info})"
  28005. msgstr ""
  28006. #. type: table
  28007. #: guix-git/doc/guix.texi:18972
  28008. 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."
  28009. msgstr ""
  28010. #. type: item
  28011. #: guix-git/doc/guix.texi:18973 guix-git/doc/guix.texi:21848
  28012. #: guix-git/doc/guix.texi:26899
  28013. #, no-wrap
  28014. msgid "@code{extra-content} (default: @code{\"\"})"
  28015. msgstr ""
  28016. #. type: table
  28017. #: guix-git/doc/guix.texi:18978
  28018. 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:"
  28019. msgstr ""
  28020. #. type: lisp
  28021. #: guix-git/doc/guix.texi:18984
  28022. #, no-wrap
  28023. msgid ""
  28024. "(openssh-configuration\n"
  28025. " (extra-content \"\\\n"
  28026. "Match Address 192.168.0.1\n"
  28027. " PermitRootLogin yes\"))\n"
  28028. msgstr ""
  28029. #. type: deffn
  28030. #: guix-git/doc/guix.texi:18989
  28031. #, no-wrap
  28032. msgid "{Scheme Procedure} dropbear-service [@var{config}]"
  28033. msgstr ""
  28034. #. type: deffn
  28035. #: guix-git/doc/guix.texi:18993
  28036. 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."
  28037. msgstr ""
  28038. #. type: deffn
  28039. #: guix-git/doc/guix.texi:18996
  28040. msgid "For example, to specify a Dropbear service listening on port 1234, add this call to the operating system's @code{services} field:"
  28041. msgstr ""
  28042. #. type: lisp
  28043. #: guix-git/doc/guix.texi:19000
  28044. #, no-wrap
  28045. msgid ""
  28046. "(dropbear-service (dropbear-configuration\n"
  28047. " (port-number 1234)))\n"
  28048. msgstr ""
  28049. #. type: deftp
  28050. #: guix-git/doc/guix.texi:19003
  28051. #, no-wrap
  28052. msgid "{Data Type} dropbear-configuration"
  28053. msgstr ""
  28054. #. type: deftp
  28055. #: guix-git/doc/guix.texi:19005
  28056. msgid "This data type represents the configuration of a Dropbear SSH daemon."
  28057. msgstr ""
  28058. #. type: item
  28059. #: guix-git/doc/guix.texi:19007
  28060. #, no-wrap
  28061. msgid "@code{dropbear} (default: @var{dropbear})"
  28062. msgstr ""
  28063. #. type: table
  28064. #: guix-git/doc/guix.texi:19009
  28065. msgid "The Dropbear package to use."
  28066. msgstr ""
  28067. #. type: item
  28068. #: guix-git/doc/guix.texi:19010
  28069. #, no-wrap
  28070. msgid "@code{port-number} (default: 22)"
  28071. msgstr ""
  28072. #. type: table
  28073. #: guix-git/doc/guix.texi:19012
  28074. msgid "The TCP port where the daemon waits for incoming connections."
  28075. msgstr ""
  28076. #. type: item
  28077. #: guix-git/doc/guix.texi:19013
  28078. #, no-wrap
  28079. msgid "@code{syslog-output?} (default: @code{#t})"
  28080. msgstr ""
  28081. #. type: table
  28082. #: guix-git/doc/guix.texi:19015
  28083. msgid "Whether to enable syslog output."
  28084. msgstr ""
  28085. #. type: item
  28086. #: guix-git/doc/guix.texi:19016
  28087. #, no-wrap
  28088. msgid "@code{pid-file} (default: @code{\"/var/run/dropbear.pid\"})"
  28089. msgstr ""
  28090. #. type: table
  28091. #: guix-git/doc/guix.texi:19018
  28092. msgid "File name of the daemon's PID file."
  28093. msgstr ""
  28094. #. type: item
  28095. #: guix-git/doc/guix.texi:19019
  28096. #, no-wrap
  28097. msgid "@code{root-login?} (default: @code{#f})"
  28098. msgstr ""
  28099. #. type: table
  28100. #: guix-git/doc/guix.texi:19021
  28101. msgid "Whether to allow @code{root} logins."
  28102. msgstr ""
  28103. #. type: table
  28104. #: guix-git/doc/guix.texi:19024
  28105. msgid "Whether to allow empty passwords."
  28106. msgstr ""
  28107. #. type: table
  28108. #: guix-git/doc/guix.texi:19027
  28109. msgid "Whether to enable password-based authentication."
  28110. msgstr ""
  28111. #. type: cindex
  28112. #: guix-git/doc/guix.texi:19030
  28113. #, no-wrap
  28114. msgid "AutoSSH"
  28115. msgstr ""
  28116. #. type: deffn
  28117. #: guix-git/doc/guix.texi:19031
  28118. #, no-wrap
  28119. msgid "{Scheme Variable} autossh-service-type"
  28120. msgstr ""
  28121. #. type: deffn
  28122. #: guix-git/doc/guix.texi:19039
  28123. 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."
  28124. msgstr ""
  28125. #. type: deffn
  28126. #: guix-git/doc/guix.texi:19043
  28127. 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."
  28128. msgstr ""
  28129. #. type: deffn
  28130. #: guix-git/doc/guix.texi:19048
  28131. 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:"
  28132. msgstr ""
  28133. #. type: lisp
  28134. #: guix-git/doc/guix.texi:19054
  28135. #, no-wrap
  28136. msgid ""
  28137. "(service autossh-service-type\n"
  28138. " (autossh-configuration\n"
  28139. " (user \"pino\")\n"
  28140. " (ssh-options (list \"-T\" \"-N\" \"-L\" \"8081:localhost:8081\" \"remote.net\"))))\n"
  28141. msgstr ""
  28142. #. type: deftp
  28143. #: guix-git/doc/guix.texi:19057
  28144. #, no-wrap
  28145. msgid "{Data Type} autossh-configuration"
  28146. msgstr ""
  28147. #. type: deftp
  28148. #: guix-git/doc/guix.texi:19059
  28149. msgid "This data type represents the configuration of an AutoSSH service."
  28150. msgstr ""
  28151. #. type: item
  28152. #: guix-git/doc/guix.texi:19062
  28153. #, fuzzy, no-wrap
  28154. msgid "@code{user} (default @code{\"autossh\"})"
  28155. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  28156. #. type: table
  28157. #: guix-git/doc/guix.texi:19065
  28158. msgid "The user as which the AutoSSH service is to be run. This assumes that the specified user exists."
  28159. msgstr ""
  28160. #. type: item
  28161. #: guix-git/doc/guix.texi:19066
  28162. #, fuzzy, no-wrap
  28163. msgid "@code{poll} (default @code{600})"
  28164. msgstr "@code{port}(默认值:@code{22})"
  28165. #. type: table
  28166. #: guix-git/doc/guix.texi:19068
  28167. msgid "Specifies the connection poll time in seconds."
  28168. msgstr ""
  28169. #. type: item
  28170. #: guix-git/doc/guix.texi:19069
  28171. #, fuzzy, no-wrap
  28172. msgid "@code{first-poll} (default @code{#f})"
  28173. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  28174. #. type: table
  28175. #: guix-git/doc/guix.texi:19075
  28176. 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}."
  28177. msgstr ""
  28178. #. type: item
  28179. #: guix-git/doc/guix.texi:19076
  28180. #, fuzzy, no-wrap
  28181. msgid "@code{gate-time} (default @code{30})"
  28182. msgstr "@code{mate}(默认值:@code{mate})"
  28183. #. type: table
  28184. #: guix-git/doc/guix.texi:19079
  28185. msgid "Specifies how many seconds an SSH connection must be active before it is considered successful."
  28186. msgstr ""
  28187. #. type: item
  28188. #: guix-git/doc/guix.texi:19080
  28189. #, fuzzy, no-wrap
  28190. msgid "@code{log-level} (default @code{1})"
  28191. msgstr "@code{speed}(默认值:@code{1.0})"
  28192. #. type: table
  28193. #: guix-git/doc/guix.texi:19083
  28194. msgid "The log level, corresponding to the levels used by syslog---so @code{0} is the most silent while @code{7} is the chattiest."
  28195. msgstr ""
  28196. #. type: item
  28197. #: guix-git/doc/guix.texi:19084
  28198. #, fuzzy, no-wrap
  28199. msgid "@code{max-start} (default @code{#f})"
  28200. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  28201. #. type: table
  28202. #: guix-git/doc/guix.texi:19087
  28203. 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."
  28204. msgstr ""
  28205. #. type: item
  28206. #: guix-git/doc/guix.texi:19088
  28207. #, fuzzy, no-wrap
  28208. msgid "@code{message} (default @code{\"\"})"
  28209. msgstr "@code{display}(默认值:@code{\":0\"})"
  28210. #. type: table
  28211. #: guix-git/doc/guix.texi:19090
  28212. msgid "The message to append to the echo message sent when testing connections."
  28213. msgstr ""
  28214. #. type: item
  28215. #: guix-git/doc/guix.texi:19091
  28216. #, fuzzy, no-wrap
  28217. msgid "@code{port} (default @code{\"0\"})"
  28218. msgstr "@code{port}(默认值:@code{22})"
  28219. #. type: table
  28220. #: guix-git/doc/guix.texi:19101
  28221. 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."
  28222. msgstr ""
  28223. #. type: item
  28224. #: guix-git/doc/guix.texi:19102
  28225. #, fuzzy, no-wrap
  28226. msgid "@code{ssh-options} (default @code{'()})"
  28227. msgstr "@code{includes}(默认值:@code{'()})"
  28228. #. type: table
  28229. #: guix-git/doc/guix.texi:19106
  28230. 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."
  28231. msgstr ""
  28232. #. type: cindex
  28233. #: guix-git/doc/guix.texi:19110
  28234. #, no-wrap
  28235. msgid "WebSSH"
  28236. msgstr ""
  28237. #. type: deffn
  28238. #: guix-git/doc/guix.texi:19111
  28239. #, no-wrap
  28240. msgid "{Scheme Variable} webssh-service-type"
  28241. msgstr ""
  28242. #. type: deffn
  28243. #: guix-git/doc/guix.texi:19117
  28244. 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."
  28245. msgstr ""
  28246. #. type: deffn
  28247. #: guix-git/doc/guix.texi:19123
  28248. 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:"
  28249. msgstr ""
  28250. #. type: lisp
  28251. #: guix-git/doc/guix.texi:19131
  28252. #, no-wrap
  28253. msgid ""
  28254. "(service webssh-service-type\n"
  28255. " (webssh-configuration (address \"127.0.0.1\")\n"
  28256. " (port 8888)\n"
  28257. " (policy 'reject)\n"
  28258. " (known-hosts '(\"localhost ecdsa-sha2-nistp256 AAAA…\"\n"
  28259. " \"127.0.0.1 ecdsa-sha2-nistp256 AAAA…\"))))\n"
  28260. "\n"
  28261. msgstr ""
  28262. #. type: lisp
  28263. #: guix-git/doc/guix.texi:19147
  28264. #, no-wrap
  28265. msgid ""
  28266. "(service nginx-service-type\n"
  28267. " (nginx-configuration\n"
  28268. " (server-blocks\n"
  28269. " (list\n"
  28270. " (nginx-server-configuration\n"
  28271. " (inherit %webssh-configuration-nginx)\n"
  28272. " (server-name '(\"webssh.example.com\"))\n"
  28273. " (listen '(\"443 ssl\"))\n"
  28274. " (ssl-certificate (letsencrypt-certificate \"webssh.example.com\"))\n"
  28275. " (ssl-certificate-key (letsencrypt-key \"webssh.example.com\"))\n"
  28276. " (locations\n"
  28277. " (cons (nginx-location-configuration\n"
  28278. " (uri \"/.well-known\")\n"
  28279. " (body '(\"root /var/www;\")))\n"
  28280. " (nginx-server-configuration-locations %webssh-configuration-nginx))))))))\n"
  28281. msgstr ""
  28282. #. type: deftp
  28283. #: guix-git/doc/guix.texi:19150
  28284. #, no-wrap
  28285. msgid "{Data Type} webssh-configuration"
  28286. msgstr ""
  28287. #. type: deftp
  28288. #: guix-git/doc/guix.texi:19152
  28289. msgid "Data type representing the configuration for @code{webssh-service}."
  28290. msgstr ""
  28291. #. type: item
  28292. #: guix-git/doc/guix.texi:19154
  28293. #, fuzzy, no-wrap
  28294. msgid "@code{package} (default: @var{webssh})"
  28295. msgstr "@code{xfce}(默认值:@code{xfce})"
  28296. #. type: table
  28297. #: guix-git/doc/guix.texi:19156
  28298. msgid "@code{webssh} package to use."
  28299. msgstr ""
  28300. #. type: item
  28301. #: guix-git/doc/guix.texi:19157
  28302. #, fuzzy, no-wrap
  28303. msgid "@code{user-name} (default: @var{\"webssh\"})"
  28304. msgstr "@code{gnome}(默认值:@code{gnome})"
  28305. #. type: table
  28306. #: guix-git/doc/guix.texi:19160
  28307. msgid "User name or user ID that file transfers to and from that module should take place."
  28308. msgstr ""
  28309. #. type: item
  28310. #: guix-git/doc/guix.texi:19161
  28311. #, fuzzy, no-wrap
  28312. msgid "@code{group-name} (default: @var{\"webssh\"})"
  28313. msgstr "@code{gnome}(默认值:@code{gnome})"
  28314. #. type: item
  28315. #: guix-git/doc/guix.texi:19164
  28316. #, fuzzy, no-wrap
  28317. msgid "@code{address} (default: @var{#f})"
  28318. msgstr "@code{challenge}(默认值:@code{#f})"
  28319. #. type: table
  28320. #: guix-git/doc/guix.texi:19166
  28321. msgid "IP address on which @command{webssh} listens for incoming connections."
  28322. msgstr ""
  28323. #. type: item
  28324. #: guix-git/doc/guix.texi:19167
  28325. #, fuzzy, no-wrap
  28326. msgid "@code{port} (default: @var{8888})"
  28327. msgstr "@code{port}(默认值:@code{22})"
  28328. #. type: table
  28329. #: guix-git/doc/guix.texi:19169
  28330. msgid "TCP port on which @command{webssh} listens for incoming connections."
  28331. msgstr ""
  28332. #. type: item
  28333. #: guix-git/doc/guix.texi:19170
  28334. #, fuzzy, no-wrap
  28335. msgid "@code{policy} (default: @var{#f})"
  28336. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  28337. #. type: table
  28338. #: guix-git/doc/guix.texi:19172
  28339. msgid "Connection policy. @var{reject} policy requires to specify @var{known-hosts}."
  28340. msgstr ""
  28341. #. type: item
  28342. #: guix-git/doc/guix.texi:19173
  28343. #, fuzzy, no-wrap
  28344. msgid "@code{known-hosts} (default: @var{'()})"
  28345. msgstr "@code{features} (@code{'()})"
  28346. #. type: table
  28347. #: guix-git/doc/guix.texi:19175
  28348. msgid "List of hosts which allowed for SSH connection from @command{webssh}."
  28349. msgstr ""
  28350. #. type: item
  28351. #: guix-git/doc/guix.texi:19176
  28352. #, fuzzy, no-wrap
  28353. msgid "@code{log-file} (default: @file{\"/var/log/webssh.log\"})"
  28354. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  28355. #. type: table
  28356. #: guix-git/doc/guix.texi:19178
  28357. msgid "Name of the file where @command{webssh} writes its log file."
  28358. msgstr ""
  28359. #. type: item
  28360. #: guix-git/doc/guix.texi:19179
  28361. #, fuzzy, no-wrap
  28362. msgid "@code{log-level} (default: @var{#f})"
  28363. msgstr "@code{challenge}(默认值:@code{#f})"
  28364. #. type: table
  28365. #: guix-git/doc/guix.texi:19181
  28366. msgid "Logging level."
  28367. msgstr ""
  28368. #. type: defvr
  28369. #: guix-git/doc/guix.texi:19185
  28370. #, no-wrap
  28371. msgid "{Scheme Variable} %facebook-host-aliases"
  28372. msgstr ""
  28373. #. type: defvr
  28374. #: guix-git/doc/guix.texi:19191
  28375. 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}."
  28376. msgstr ""
  28377. #. type: defvr
  28378. #: guix-git/doc/guix.texi:19195
  28379. 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}}):"
  28380. msgstr ""
  28381. #. type: lisp
  28382. #: guix-git/doc/guix.texi:19208
  28383. #, no-wrap
  28384. msgid ""
  28385. "(operating-system\n"
  28386. " (host-name \"mymachine\")\n"
  28387. " ;; ...\n"
  28388. " (hosts-file\n"
  28389. " ;; Create a /etc/hosts file with aliases for \"localhost\"\n"
  28390. " ;; and \"mymachine\", as well as for Facebook servers.\n"
  28391. " (plain-file \"hosts\"\n"
  28392. " (string-append (local-host-aliases host-name)\n"
  28393. " %facebook-host-aliases))))\n"
  28394. msgstr ""
  28395. #. type: defvr
  28396. #: guix-git/doc/guix.texi:19212
  28397. msgid "This mechanism can prevent programs running locally, such as Web browsers, from accessing Facebook."
  28398. msgstr ""
  28399. #. type: Plain text
  28400. #: guix-git/doc/guix.texi:19215
  28401. msgid "The @code{(gnu services avahi)} provides the following definition."
  28402. msgstr ""
  28403. #. type: defvr
  28404. #: guix-git/doc/guix.texi:19216
  28405. #, no-wrap
  28406. msgid "{Scheme Variable} avahi-service-type"
  28407. msgstr ""
  28408. #. type: defvr
  28409. #: guix-git/doc/guix.texi:19221
  28410. 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."
  28411. msgstr ""
  28412. #. type: defvr
  28413. #: guix-git/doc/guix.texi:19226
  28414. 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."
  28415. msgstr ""
  28416. #. type: defvr
  28417. #: guix-git/doc/guix.texi:19229
  28418. msgid "Additionally, add the @var{avahi} package to the system profile so that commands such as @command{avahi-browse} are directly usable."
  28419. msgstr ""
  28420. #. type: deftp
  28421. #: guix-git/doc/guix.texi:19231
  28422. #, no-wrap
  28423. msgid "{Data Type} avahi-configuration"
  28424. msgstr ""
  28425. #. type: deftp
  28426. #: guix-git/doc/guix.texi:19233
  28427. msgid "Data type representation the configuration for Avahi."
  28428. msgstr ""
  28429. #. type: item
  28430. #: guix-git/doc/guix.texi:19236
  28431. #, no-wrap
  28432. msgid "@code{host-name} (default: @code{#f})"
  28433. msgstr ""
  28434. #. type: table
  28435. #: guix-git/doc/guix.texi:19239
  28436. 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."
  28437. msgstr ""
  28438. #. type: item
  28439. #: guix-git/doc/guix.texi:19240 guix-git/doc/guix.texi:29565
  28440. #, no-wrap
  28441. msgid "@code{publish?} (default: @code{#t})"
  28442. msgstr ""
  28443. #. type: table
  28444. #: guix-git/doc/guix.texi:19243
  28445. msgid "When true, allow host names and services to be published (broadcast) over the network."
  28446. msgstr ""
  28447. #. type: item
  28448. #: guix-git/doc/guix.texi:19244
  28449. #, no-wrap
  28450. msgid "@code{publish-workstation?} (default: @code{#t})"
  28451. msgstr ""
  28452. #. type: table
  28453. #: guix-git/doc/guix.texi:19248
  28454. 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:"
  28455. msgstr ""
  28456. #. type: example
  28457. #: guix-git/doc/guix.texi:19251
  28458. #, no-wrap
  28459. msgid "avahi-browse _workstation._tcp\n"
  28460. msgstr ""
  28461. #. type: item
  28462. #: guix-git/doc/guix.texi:19253
  28463. #, no-wrap
  28464. msgid "@code{wide-area?} (default: @code{#f})"
  28465. msgstr ""
  28466. #. type: table
  28467. #: guix-git/doc/guix.texi:19255
  28468. msgid "When true, DNS-SD over unicast DNS is enabled."
  28469. msgstr ""
  28470. #. type: item
  28471. #: guix-git/doc/guix.texi:19256
  28472. #, no-wrap
  28473. msgid "@code{ipv4?} (default: @code{#t})"
  28474. msgstr ""
  28475. #. type: itemx
  28476. #: guix-git/doc/guix.texi:19257
  28477. #, no-wrap
  28478. msgid "@code{ipv6?} (default: @code{#t})"
  28479. msgstr ""
  28480. #. type: table
  28481. #: guix-git/doc/guix.texi:19259
  28482. msgid "These fields determine whether to use IPv4/IPv6 sockets."
  28483. msgstr ""
  28484. #. type: item
  28485. #: guix-git/doc/guix.texi:19260
  28486. #, no-wrap
  28487. msgid "@code{domains-to-browse} (default: @code{'()})"
  28488. msgstr ""
  28489. #. type: table
  28490. #: guix-git/doc/guix.texi:19262
  28491. msgid "This is a list of domains to browse."
  28492. msgstr ""
  28493. #. type: deffn
  28494. #: guix-git/doc/guix.texi:19265
  28495. #, no-wrap
  28496. msgid "{Scheme Variable} openvswitch-service-type"
  28497. msgstr ""
  28498. #. type: deffn
  28499. #: guix-git/doc/guix.texi:19269
  28500. msgid "This is the type of the @uref{https://www.openvswitch.org, Open vSwitch} service, whose value should be an @code{openvswitch-configuration} object."
  28501. msgstr ""
  28502. #. type: deftp
  28503. #: guix-git/doc/guix.texi:19271
  28504. #, no-wrap
  28505. msgid "{Data Type} openvswitch-configuration"
  28506. msgstr ""
  28507. #. type: deftp
  28508. #: guix-git/doc/guix.texi:19275
  28509. msgid "Data type representing the configuration of Open vSwitch, a multilayer virtual switch which is designed to enable massive network automation through programmatic extension."
  28510. msgstr ""
  28511. #. type: item
  28512. #: guix-git/doc/guix.texi:19277
  28513. #, no-wrap
  28514. msgid "@code{package} (default: @var{openvswitch})"
  28515. msgstr ""
  28516. #. type: table
  28517. #: guix-git/doc/guix.texi:19279
  28518. msgid "Package object of the Open vSwitch."
  28519. msgstr ""
  28520. #. type: defvr
  28521. #: guix-git/doc/guix.texi:19283
  28522. #, no-wrap
  28523. msgid "{Scheme Variable} pagekite-service-type"
  28524. msgstr ""
  28525. #. type: defvr
  28526. #: guix-git/doc/guix.texi:19288
  28527. 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."
  28528. msgstr ""
  28529. #. type: defvr
  28530. #: guix-git/doc/guix.texi:19290
  28531. msgid "Here's an example exposing the local HTTP and SSH daemons:"
  28532. msgstr ""
  28533. #. type: lisp
  28534. #: guix-git/doc/guix.texi:19297
  28535. #, no-wrap
  28536. msgid ""
  28537. "(service pagekite-service-type\n"
  28538. " (pagekite-configuration\n"
  28539. " (kites '(\"http:@@kitename:localhost:80:@@kitesecret\"\n"
  28540. " \"raw/22:@@kitename:localhost:22:@@kitesecret\"))\n"
  28541. " (extra-file \"/etc/pagekite.rc\")))\n"
  28542. msgstr ""
  28543. #. type: deftp
  28544. #: guix-git/doc/guix.texi:19300
  28545. #, fuzzy, no-wrap
  28546. msgid "{Data Type} pagekite-configuration"
  28547. msgstr "管理操作系统配置。"
  28548. #. type: deftp
  28549. #: guix-git/doc/guix.texi:19302
  28550. #, fuzzy
  28551. msgid "Data type representing the configuration of PageKite."
  28552. msgstr "管理操作系统配置。"
  28553. #. type: item
  28554. #: guix-git/doc/guix.texi:19304
  28555. #, fuzzy, no-wrap
  28556. msgid "@code{package} (default: @var{pagekite})"
  28557. msgstr "@code{mate}(默认值:@code{mate})"
  28558. #. type: table
  28559. #: guix-git/doc/guix.texi:19306
  28560. msgid "Package object of PageKite."
  28561. msgstr ""
  28562. #. type: item
  28563. #: guix-git/doc/guix.texi:19307
  28564. #, fuzzy, no-wrap
  28565. msgid "@code{kitename} (default: @code{#f})"
  28566. msgstr "@code{challenge}(默认值:@code{#f})"
  28567. #. type: table
  28568. #: guix-git/doc/guix.texi:19309
  28569. msgid "PageKite name for authenticating to the frontend server."
  28570. msgstr ""
  28571. #. type: item
  28572. #: guix-git/doc/guix.texi:19310
  28573. #, fuzzy, no-wrap
  28574. msgid "@code{kitesecret} (default: @code{#f})"
  28575. msgstr "@code{speed}(默认值:@code{1.0})"
  28576. #. type: table
  28577. #: guix-git/doc/guix.texi:19313
  28578. msgid "Shared secret for authenticating to the frontend server. You should probably put this inside @code{extra-file} instead."
  28579. msgstr ""
  28580. #. type: item
  28581. #: guix-git/doc/guix.texi:19314
  28582. #, fuzzy, no-wrap
  28583. msgid "@code{frontend} (default: @code{#f})"
  28584. msgstr "@code{journal-content}(默认值:@code{#f})"
  28585. #. type: table
  28586. #: guix-git/doc/guix.texi:19317
  28587. msgid "Connect to the named PageKite frontend server instead of the @uref{https://pagekite.net,,pagekite.net} service."
  28588. msgstr ""
  28589. #. type: item
  28590. #: guix-git/doc/guix.texi:19318
  28591. #, no-wrap
  28592. msgid "@code{kites} (default: @code{'(\"http:@@kitename:localhost:80:@@kitesecret\")})"
  28593. msgstr ""
  28594. #. type: table
  28595. #: guix-git/doc/guix.texi:19321
  28596. msgid "List of service kites to use. Exposes HTTP on port 80 by default. The format is @code{proto:kitename:host:port:secret}."
  28597. msgstr ""
  28598. #. type: item
  28599. #: guix-git/doc/guix.texi:19322
  28600. #, fuzzy, no-wrap
  28601. msgid "@code{extra-file} (default: @code{#f})"
  28602. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  28603. #. type: table
  28604. #: guix-git/doc/guix.texi:19325
  28605. 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."
  28606. msgstr ""
  28607. #. type: defvr
  28608. #: guix-git/doc/guix.texi:19329
  28609. #, no-wrap
  28610. msgid "{Scheme Variable} yggdrasil-service-type"
  28611. msgstr ""
  28612. #. type: defvr
  28613. #: guix-git/doc/guix.texi:19333
  28614. 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."
  28615. msgstr ""
  28616. #. type: quotation
  28617. #: guix-git/doc/guix.texi:19340
  28618. 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}"
  28619. msgstr ""
  28620. #. type: defvr
  28621. #: guix-git/doc/guix.texi:19344
  28622. msgid "Pass it a value of @code{yggdrasil-configuration} to connect it to public peers and/or local peers."
  28623. msgstr ""
  28624. #. type: defvr
  28625. #: guix-git/doc/guix.texi:19348
  28626. 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})."
  28627. msgstr ""
  28628. #. type: lisp
  28629. #: guix-git/doc/guix.texi:19360
  28630. #, no-wrap
  28631. msgid ""
  28632. ";; part of the operating-system declaration\n"
  28633. "(service yggdrasil-service-type\n"
  28634. " (yggdrasil-configuration\n"
  28635. " (autoconf? #f) ;; use only the public peers\n"
  28636. " (json-config\n"
  28637. " ;; choose one from\n"
  28638. " ;; https://github.com/yggdrasil-network/public-peers\n"
  28639. " '((peers . #(\"tcp://1.2.3.4:1337\"))))\n"
  28640. " ;; /etc/yggdrasil-private.conf is the default value for config-file\n"
  28641. " ))\n"
  28642. msgstr ""
  28643. #. type: example
  28644. #: guix-git/doc/guix.texi:19367
  28645. #, no-wrap
  28646. msgid ""
  28647. "# sample content for /etc/yggdrasil-private.conf\n"
  28648. "@{\n"
  28649. " # Your public encryption key. Your peers may ask you for this to put\n"
  28650. " # into their AllowedEncryptionPublicKeys configuration.\n"
  28651. " EncryptionPublicKey: 378dc5...\n"
  28652. "\n"
  28653. msgstr ""
  28654. #. type: example
  28655. #: guix-git/doc/guix.texi:19370
  28656. #, no-wrap
  28657. msgid ""
  28658. " # Your private encryption key. DO NOT share this with anyone!\n"
  28659. " EncryptionPrivateKey: 0777...\n"
  28660. "\n"
  28661. msgstr ""
  28662. #. type: example
  28663. #: guix-git/doc/guix.texi:19374
  28664. #, no-wrap
  28665. msgid ""
  28666. " # Your public signing key. You should not ordinarily need to share\n"
  28667. " # this with anyone.\n"
  28668. " SigningPublicKey: e1664...\n"
  28669. "\n"
  28670. msgstr ""
  28671. #. type: example
  28672. #: guix-git/doc/guix.texi:19378
  28673. #, no-wrap
  28674. msgid ""
  28675. " # Your private signing key. DO NOT share this with anyone!\n"
  28676. " SigningPrivateKey: 0589d...\n"
  28677. "@}\n"
  28678. msgstr ""
  28679. #. type: deftp
  28680. #: guix-git/doc/guix.texi:19381
  28681. #, fuzzy, no-wrap
  28682. msgid "{Data Type} yggdrasil-configuration"
  28683. msgstr "{数据类型} build-machine"
  28684. #. type: deftp
  28685. #: guix-git/doc/guix.texi:19383
  28686. #, fuzzy
  28687. msgid "Data type representing the configuration of Yggdrasil."
  28688. msgstr "管理操作系统配置。"
  28689. #. type: item
  28690. #: guix-git/doc/guix.texi:19385
  28691. #, fuzzy, no-wrap
  28692. msgid "@code{package} (default: @code{yggdrasil})"
  28693. msgstr "@code{mate}(默认值:@code{mate})"
  28694. #. type: table
  28695. #: guix-git/doc/guix.texi:19387
  28696. msgid "Package object of Yggdrasil."
  28697. msgstr ""
  28698. #. type: item
  28699. #: guix-git/doc/guix.texi:19388
  28700. #, fuzzy, no-wrap
  28701. msgid "@code{json-config} (default: @code{'()})"
  28702. msgstr "@code{includes}(默认值:@code{'()})"
  28703. #. type: table
  28704. #: guix-git/doc/guix.texi:19394
  28705. 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."
  28706. msgstr ""
  28707. #. type: item
  28708. #: guix-git/doc/guix.texi:19395
  28709. #, fuzzy, no-wrap
  28710. msgid "@code{autoconf?} (default: @code{#f})"
  28711. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  28712. #. type: table
  28713. #: guix-git/doc/guix.texi:19398
  28714. msgid "Whether to use automatic mode. Enabling it makes Yggdrasil use adynamic IP and peer with IPv6 neighbors."
  28715. msgstr ""
  28716. #. type: table
  28717. #: guix-git/doc/guix.texi:19401
  28718. msgid "How much detail to include in logs. Use @code{'debug} for more detail."
  28719. msgstr ""
  28720. #. type: item
  28721. #: guix-git/doc/guix.texi:19402
  28722. #, fuzzy, no-wrap
  28723. msgid "@code{log-to} (default: @code{'stdout})"
  28724. msgstr "@code{port}(默认值:@code{22})"
  28725. #. type: table
  28726. #: guix-git/doc/guix.texi:19406
  28727. 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."
  28728. msgstr ""
  28729. #. type: item
  28730. #: guix-git/doc/guix.texi:19407
  28731. #, fuzzy, no-wrap
  28732. msgid "@code{config-file} (default: @code{\"/etc/yggdrasil-private.conf\"})"
  28733. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  28734. #. type: table
  28735. #: guix-git/doc/guix.texi:19414
  28736. 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:"
  28737. msgstr ""
  28738. #. type: code{#1}
  28739. #: guix-git/doc/guix.texi:19416
  28740. #, no-wrap
  28741. msgid "EncryptionPublicKey"
  28742. msgstr ""
  28743. #. type: code{#1}
  28744. #: guix-git/doc/guix.texi:19417
  28745. #, no-wrap
  28746. msgid "EncryptionPrivateKey"
  28747. msgstr ""
  28748. #. type: code{#1}
  28749. #: guix-git/doc/guix.texi:19418
  28750. #, no-wrap
  28751. msgid "SigningPublicKey"
  28752. msgstr ""
  28753. #. type: code{#1}
  28754. #: guix-git/doc/guix.texi:19419
  28755. #, no-wrap
  28756. msgid "SigningPrivateKey"
  28757. msgstr ""
  28758. #. type: cindex
  28759. #: guix-git/doc/guix.texi:19424
  28760. #, no-wrap
  28761. msgid "IPFS"
  28762. msgstr ""
  28763. #. type: defvr
  28764. #: guix-git/doc/guix.texi:19425
  28765. #, no-wrap
  28766. msgid "{Scheme Variable} ipfs-service-type"
  28767. msgstr ""
  28768. #. type: defvr
  28769. #: guix-git/doc/guix.texi:19429
  28770. 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."
  28771. msgstr ""
  28772. #. type: defvr
  28773. #: guix-git/doc/guix.texi:19431
  28774. msgid "Here's an example configuration, using some non-standard ports:"
  28775. msgstr ""
  28776. #. type: lisp
  28777. #: guix-git/doc/guix.texi:19437
  28778. #, no-wrap
  28779. msgid ""
  28780. "(service ipfs-service-type\n"
  28781. " (ipfs-configuration\n"
  28782. " (gateway \"/ip4/127.0.0.1/tcp/8880\")\n"
  28783. " (api \"/ip4/127.0.0.1/tcp/8881\")))\n"
  28784. msgstr ""
  28785. #. type: deftp
  28786. #: guix-git/doc/guix.texi:19440
  28787. #, fuzzy, no-wrap
  28788. msgid "{Data Type} ipfs-configuration"
  28789. msgstr "系统配置"
  28790. #. type: deftp
  28791. #: guix-git/doc/guix.texi:19442
  28792. #, fuzzy
  28793. msgid "Data type representing the configuration of IPFS."
  28794. msgstr "管理操作系统配置。"
  28795. #. type: item
  28796. #: guix-git/doc/guix.texi:19444
  28797. #, fuzzy, no-wrap
  28798. msgid "@code{package} (default: @code{go-ipfs})"
  28799. msgstr "@code{mate}(默认值:@code{mate})"
  28800. #. type: table
  28801. #: guix-git/doc/guix.texi:19446
  28802. msgid "Package object of IPFS."
  28803. msgstr ""
  28804. #. type: item
  28805. #: guix-git/doc/guix.texi:19447
  28806. #, fuzzy, no-wrap
  28807. msgid "@code{gateway} (default: @code{\"/ip4/127.0.0.1/tcp/8082\"})"
  28808. msgstr "@code{speed}(默认值:@code{1.0})"
  28809. #. type: table
  28810. #: guix-git/doc/guix.texi:19449
  28811. msgid "Address of the gateway, in ‘multiaddress’ format."
  28812. msgstr ""
  28813. #. type: item
  28814. #: guix-git/doc/guix.texi:19450
  28815. #, fuzzy, no-wrap
  28816. msgid "@code{api} (default: @code{\"/ip4/127.0.0.1/tcp/5001\"})"
  28817. msgstr "@code{speed}(默认值:@code{1.0})"
  28818. #. type: table
  28819. #: guix-git/doc/guix.texi:19452
  28820. msgid "Address of the API endpoint, in ‘multiaddress’ format."
  28821. msgstr ""
  28822. #. type: cindex
  28823. #: guix-git/doc/guix.texi:19455
  28824. #, no-wrap
  28825. msgid "keepalived"
  28826. msgstr ""
  28827. #. type: deffn
  28828. #: guix-git/doc/guix.texi:19456
  28829. #, no-wrap
  28830. msgid "{Scheme Variable} keepalived-service-type"
  28831. msgstr ""
  28832. #. type: deffn
  28833. #: guix-git/doc/guix.texi:19461
  28834. 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:"
  28835. msgstr ""
  28836. #. type: lisp
  28837. #: guix-git/doc/guix.texi:19466
  28838. #, fuzzy, no-wrap
  28839. msgid ""
  28840. "(service keepalived-service-type\n"
  28841. " (keepalived-configuration\n"
  28842. " (config-file (local-file \"keepalived-master.conf\"))))\n"
  28843. msgstr ""
  28844. "(service qemu-binfmt-service-type\n"
  28845. " (qemu-binfmt-configuration\n"
  28846. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  28847. " (guix-support? #t)))\n"
  28848. #. type: deffn
  28849. #: guix-git/doc/guix.texi:19469
  28850. msgid "where @file{keepalived-master.conf}:"
  28851. msgstr ""
  28852. #. type: example
  28853. #: guix-git/doc/guix.texi:19481
  28854. #, no-wrap
  28855. msgid ""
  28856. "vrrp_instance my-group @{\n"
  28857. " state MASTER\n"
  28858. " interface enp9s0\n"
  28859. " virtual_router_id 100\n"
  28860. " priority 100\n"
  28861. " unicast_peer @{ 10.0.0.2 @}\n"
  28862. " virtual_ipaddress @{\n"
  28863. " 10.0.0.4/24\n"
  28864. " @}\n"
  28865. "@}\n"
  28866. msgstr ""
  28867. #. type: deffn
  28868. #: guix-git/doc/guix.texi:19484
  28869. msgid "and for backup machine:"
  28870. msgstr ""
  28871. #. type: lisp
  28872. #: guix-git/doc/guix.texi:19489
  28873. #, fuzzy, no-wrap
  28874. msgid ""
  28875. "(service keepalived-service-type\n"
  28876. " (keepalived-configuration\n"
  28877. " (config-file (local-file \"keepalived-backup.conf\"))))\n"
  28878. msgstr ""
  28879. "(service qemu-binfmt-service-type\n"
  28880. " (qemu-binfmt-configuration\n"
  28881. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  28882. " (guix-support? #t)))\n"
  28883. #. type: deffn
  28884. #: guix-git/doc/guix.texi:19492
  28885. msgid "where @file{keepalived-backup.conf}:"
  28886. msgstr ""
  28887. #. type: example
  28888. #: guix-git/doc/guix.texi:19504
  28889. #, no-wrap
  28890. msgid ""
  28891. "vrrp_instance my-group @{\n"
  28892. " state BACKUP\n"
  28893. " interface enp9s0\n"
  28894. " virtual_router_id 100\n"
  28895. " priority 99\n"
  28896. " unicast_peer @{ 10.0.0.3 @}\n"
  28897. " virtual_ipaddress @{\n"
  28898. " 10.0.0.4/24\n"
  28899. " @}\n"
  28900. "@}\n"
  28901. msgstr ""
  28902. #. type: cindex
  28903. #: guix-git/doc/guix.texi:19510
  28904. #, no-wrap
  28905. msgid "unattended upgrades"
  28906. msgstr ""
  28907. #. type: cindex
  28908. #: guix-git/doc/guix.texi:19511
  28909. #, no-wrap
  28910. msgid "upgrades, unattended"
  28911. msgstr ""
  28912. #. type: Plain text
  28913. #: guix-git/doc/guix.texi:19516
  28914. 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:"
  28915. msgstr ""
  28916. #. type: itemize
  28917. #: guix-git/doc/guix.texi:19521
  28918. msgid "upgrades are transactional (either the upgrade succeeds or it fails, but you cannot end up with an ``in-between'' system state);"
  28919. msgstr ""
  28920. #. type: itemize
  28921. #: guix-git/doc/guix.texi:19525
  28922. 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;"
  28923. msgstr ""
  28924. #. type: itemize
  28925. #: guix-git/doc/guix.texi:19528
  28926. msgid "channel code is authenticated so you know you can only run genuine code (@pxref{Channels});"
  28927. msgstr ""
  28928. #. type: itemize
  28929. #: guix-git/doc/guix.texi:19531
  28930. msgid "@command{guix system reconfigure} prevents downgrades, which makes it immune to @dfn{downgrade attacks}."
  28931. msgstr ""
  28932. #. type: Plain text
  28933. #: guix-git/doc/guix.texi:19536
  28934. 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:"
  28935. msgstr ""
  28936. #. type: lisp
  28937. #: guix-git/doc/guix.texi:19539
  28938. #, no-wrap
  28939. msgid "(service unattended-upgrade-service-type)\n"
  28940. msgstr ""
  28941. #. type: Plain text
  28942. #: guix-git/doc/guix.texi:19546
  28943. 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."
  28944. msgstr ""
  28945. #. type: Plain text
  28946. #: guix-git/doc/guix.texi:19552
  28947. 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."
  28948. msgstr ""
  28949. #. type: Plain text
  28950. #: guix-git/doc/guix.texi:19556
  28951. 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)."
  28952. msgstr ""
  28953. #. type: defvr
  28954. #: guix-git/doc/guix.texi:19557
  28955. #, no-wrap
  28956. msgid "{Scheme Variable} unattended-upgrade-service-type"
  28957. msgstr ""
  28958. #. type: defvr
  28959. #: guix-git/doc/guix.texi:19561
  28960. 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."
  28961. msgstr ""
  28962. #. type: defvr
  28963. #: guix-git/doc/guix.texi:19564
  28964. msgid "Its value must be a @code{unattended-upgrade-configuration} record (see below)."
  28965. msgstr ""
  28966. #. type: deftp
  28967. #: guix-git/doc/guix.texi:19566
  28968. #, no-wrap
  28969. msgid "{Data Type} unattended-upgrade-configuration"
  28970. msgstr ""
  28971. #. type: deftp
  28972. #: guix-git/doc/guix.texi:19569
  28973. msgid "This data type represents the configuration of the unattended upgrade service. The following fields are available:"
  28974. msgstr ""
  28975. #. type: item
  28976. #: guix-git/doc/guix.texi:19571
  28977. #, fuzzy, no-wrap
  28978. msgid "@code{schedule} (default: @code{\"30 01 * * 0\"})"
  28979. msgstr "@code{speed}(默认值:@code{1.0})"
  28980. #. type: table
  28981. #: guix-git/doc/guix.texi:19575
  28982. 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})."
  28983. msgstr ""
  28984. #. type: item
  28985. #: guix-git/doc/guix.texi:19576
  28986. #, fuzzy, no-wrap
  28987. msgid "@code{channels} (default: @code{#~%default-channels})"
  28988. msgstr "@code{challenge}(默认值:@code{#f})"
  28989. #. type: table
  28990. #: guix-git/doc/guix.texi:19580
  28991. 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."
  28992. msgstr ""
  28993. #. type: item
  28994. #: guix-git/doc/guix.texi:19581
  28995. #, no-wrap
  28996. msgid "@code{operating-system-file} (default: @code{\"/run/current-system/configuration.scm\"})"
  28997. msgstr ""
  28998. #. type: table
  28999. #: guix-git/doc/guix.texi:19584
  29000. msgid "This field specifies the operating system configuration file to use. The default is to reuse the config file of the current configuration."
  29001. msgstr ""
  29002. #. type: table
  29003. #: guix-git/doc/guix.texi:19590
  29004. 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:"
  29005. msgstr ""
  29006. #. type: lisp
  29007. #: guix-git/doc/guix.texi:19596
  29008. #, no-wrap
  29009. msgid ""
  29010. "(unattended-upgrade-configuration\n"
  29011. " (operating-system-file\n"
  29012. " (file-append (local-file \".\" \"config-dir\" #:recursive? #t)\n"
  29013. " \"/config.scm\")))\n"
  29014. msgstr ""
  29015. #. type: table
  29016. #: guix-git/doc/guix.texi:19603
  29017. 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}."
  29018. msgstr ""
  29019. #. type: item
  29020. #: guix-git/doc/guix.texi:19604
  29021. #, fuzzy, no-wrap
  29022. msgid "@code{services-to-restart} (default: @code{'(mcron)})"
  29023. msgstr "@code{features} (@code{'()})"
  29024. #. type: table
  29025. #: guix-git/doc/guix.texi:19607
  29026. msgid "This field specifies the Shepherd services to restart when the upgrade completes."
  29027. msgstr ""
  29028. #. type: table
  29029. #: guix-git/doc/guix.texi:19614
  29030. 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."
  29031. msgstr ""
  29032. #. type: table
  29033. #: guix-git/doc/guix.texi:19618
  29034. 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}."
  29035. msgstr ""
  29036. #. type: table
  29037. #: guix-git/doc/guix.texi:19621
  29038. 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."
  29039. msgstr ""
  29040. #. type: item
  29041. #: guix-git/doc/guix.texi:19622
  29042. #, fuzzy, no-wrap
  29043. msgid "@code{system-expiration} (default: @code{(* 3 30 24 3600)})"
  29044. msgstr "@code{port}(默认值:@code{22})"
  29045. #. type: table
  29046. #: guix-git/doc/guix.texi:19626
  29047. 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."
  29048. msgstr ""
  29049. #. type: quotation
  29050. #: guix-git/doc/guix.texi:19631
  29051. 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."
  29052. msgstr ""
  29053. #. type: item
  29054. #: guix-git/doc/guix.texi:19633
  29055. #, fuzzy, no-wrap
  29056. msgid "@code{maximum-duration} (default: @code{3600})"
  29057. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  29058. #. type: table
  29059. #: guix-git/doc/guix.texi:19636
  29060. msgid "Maximum duration in seconds for the upgrade; past that time, the upgrade aborts."
  29061. msgstr ""
  29062. #. type: table
  29063. #: guix-git/doc/guix.texi:19639
  29064. msgid "This is primarily useful to ensure the upgrade does not end up rebuilding or re-downloading ``the world''."
  29065. msgstr ""
  29066. #. type: item
  29067. #: guix-git/doc/guix.texi:19640
  29068. #, fuzzy, no-wrap
  29069. msgid "@code{log-file} (default: @code{\"/var/log/unattended-upgrade.log\"})"
  29070. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  29071. #. type: table
  29072. #: guix-git/doc/guix.texi:19642
  29073. msgid "File where unattended upgrades are logged."
  29074. msgstr ""
  29075. #. type: cindex
  29076. #: guix-git/doc/guix.texi:19648
  29077. #, no-wrap
  29078. msgid "X11"
  29079. msgstr ""
  29080. #. type: cindex
  29081. #: guix-git/doc/guix.texi:19649
  29082. #, no-wrap
  29083. msgid "X Window System"
  29084. msgstr ""
  29085. #. type: cindex
  29086. #: guix-git/doc/guix.texi:19650 guix-git/doc/guix.texi:19923
  29087. #, no-wrap
  29088. msgid "login manager"
  29089. msgstr ""
  29090. #. type: Plain text
  29091. #: guix-git/doc/guix.texi:19655
  29092. 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)."
  29093. msgstr ""
  29094. #. type: cindex
  29095. #: guix-git/doc/guix.texi:19656
  29096. #, no-wrap
  29097. msgid "GDM"
  29098. msgstr ""
  29099. #. type: cindex
  29100. #: guix-git/doc/guix.texi:19657
  29101. #, no-wrap
  29102. msgid "GNOME, login manager"
  29103. msgstr ""
  29104. #. type: Plain text
  29105. #: guix-git/doc/guix.texi:19661
  29106. 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."
  29107. msgstr ""
  29108. #. type: cindex
  29109. #: guix-git/doc/guix.texi:19662
  29110. #, no-wrap
  29111. msgid "window manager"
  29112. msgstr ""
  29113. #. type: Plain text
  29114. #: guix-git/doc/guix.texi:19667
  29115. 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})."
  29116. msgstr ""
  29117. #. type: anchor{#1}
  29118. #: guix-git/doc/guix.texi:19673
  29119. msgid "wayland-gdm"
  29120. msgstr ""
  29121. #. type: Plain text
  29122. #: guix-git/doc/guix.texi:19673
  29123. msgid "GDM also supports Wayland: it can itself use Wayland instead of X11 for its user interface, and it can also start Wayland sessions. The former is required for the latter, to enable, set @code{wayland?} to @code{#t} in @code{gdm-configuration}."
  29124. msgstr ""
  29125. #. type: defvr
  29126. #: guix-git/doc/guix.texi:19674
  29127. #, no-wrap
  29128. msgid "{Scheme Variable} gdm-service-type"
  29129. msgstr ""
  29130. #. type: defvr
  29131. #: guix-git/doc/guix.texi:19679
  29132. 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)."
  29133. msgstr ""
  29134. #. type: cindex
  29135. #: guix-git/doc/guix.texi:19680
  29136. #, no-wrap
  29137. msgid "session types"
  29138. msgstr ""
  29139. #. type: defvr
  29140. #: guix-git/doc/guix.texi:19688
  29141. msgid "GDM looks for @dfn{session types} described by the @file{.desktop} files in @file{/run/current-system/profile/share/xsessions} (for X11 sessions) and @file{/run/current-system/profile/share/wayland-sessions} (for Wayland sessions) and allows users to choose a session from the log-in screen. Packages such as @code{gnome}, @code{xfce}, @code{i3} and @code{sway} provide @file{.desktop} files; adding them to the system-wide set of packages automatically makes them available at the log-in screen."
  29142. msgstr ""
  29143. #. type: defvr
  29144. #: guix-git/doc/guix.texi:19692
  29145. 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."
  29146. msgstr ""
  29147. #. type: deftp
  29148. #: guix-git/doc/guix.texi:19694
  29149. #, no-wrap
  29150. msgid "{Data Type} gdm-configuration"
  29151. msgstr ""
  29152. #. type: item
  29153. #: guix-git/doc/guix.texi:19696 guix-git/doc/guix.texi:19778
  29154. #, no-wrap
  29155. msgid "@code{auto-login?} (default: @code{#f})"
  29156. msgstr ""
  29157. #. type: itemx
  29158. #: guix-git/doc/guix.texi:19697
  29159. #, no-wrap
  29160. msgid "@code{default-user} (default: @code{#f})"
  29161. msgstr ""
  29162. #. type: table
  29163. #: guix-git/doc/guix.texi:19699
  29164. msgid "When @code{auto-login?} is false, GDM presents a log-in screen."
  29165. msgstr ""
  29166. #. type: table
  29167. #: guix-git/doc/guix.texi:19702
  29168. msgid "When @code{auto-login?} is true, GDM logs in directly as @code{default-user}."
  29169. msgstr ""
  29170. #. type: item
  29171. #: guix-git/doc/guix.texi:19703 guix-git/doc/guix.texi:25597
  29172. #: guix-git/doc/guix.texi:27217 guix-git/doc/guix.texi:31731
  29173. #: guix-git/doc/guix.texi:31760 guix-git/doc/guix.texi:31789
  29174. #: guix-git/doc/guix.texi:31816 guix-git/doc/guix.texi:31871
  29175. #: guix-git/doc/guix.texi:31896 guix-git/doc/guix.texi:31923
  29176. #: guix-git/doc/guix.texi:31949 guix-git/doc/guix.texi:31991
  29177. #, no-wrap
  29178. msgid "@code{debug?} (default: @code{#f})"
  29179. msgstr ""
  29180. #. type: table
  29181. #: guix-git/doc/guix.texi:19705
  29182. msgid "When true, GDM writes debug messages to its log."
  29183. msgstr ""
  29184. #. type: item
  29185. #: guix-git/doc/guix.texi:19706
  29186. #, no-wrap
  29187. msgid "@code{gnome-shell-assets} (default: ...)"
  29188. msgstr ""
  29189. #. type: table
  29190. #: guix-git/doc/guix.texi:19708
  29191. msgid "List of GNOME Shell assets needed by GDM: icon theme, fonts, etc."
  29192. msgstr ""
  29193. #. type: item
  29194. #: guix-git/doc/guix.texi:19709
  29195. #, no-wrap
  29196. msgid "@code{xorg-configuration} (default: @code{(xorg-configuration)})"
  29197. msgstr ""
  29198. #. type: table
  29199. #: guix-git/doc/guix.texi:19711 guix-git/doc/guix.texi:19805
  29200. #: guix-git/doc/guix.texi:19889
  29201. msgid "Configuration of the Xorg graphical server."
  29202. msgstr ""
  29203. #. type: item
  29204. #: guix-git/doc/guix.texi:19712
  29205. #, no-wrap
  29206. msgid "@code{xsession} (default: @code{(xinitrc)})"
  29207. msgstr ""
  29208. #. type: table
  29209. #: guix-git/doc/guix.texi:19714 guix-git/doc/guix.texi:19904
  29210. msgid "Script to run before starting a X session."
  29211. msgstr ""
  29212. #. type: item
  29213. #: guix-git/doc/guix.texi:19715
  29214. #, no-wrap
  29215. msgid "@code{dbus-daemon} (default: @code{dbus-daemon-wrapper})"
  29216. msgstr ""
  29217. #. type: table
  29218. #: guix-git/doc/guix.texi:19717
  29219. msgid "File name of the @code{dbus-daemon} executable."
  29220. msgstr ""
  29221. #. type: item
  29222. #: guix-git/doc/guix.texi:19718
  29223. #, no-wrap
  29224. msgid "@code{gdm} (default: @code{gdm})"
  29225. msgstr ""
  29226. #. type: table
  29227. #: guix-git/doc/guix.texi:19720
  29228. msgid "The GDM package to use."
  29229. msgstr ""
  29230. #. type: item
  29231. #: guix-git/doc/guix.texi:19721
  29232. #, fuzzy, no-wrap
  29233. msgid "@code{wayland?} (default: @code{#f})"
  29234. msgstr "@code{challenge}(默认值:@code{#f})"
  29235. #. type: table
  29236. #: guix-git/doc/guix.texi:19723
  29237. msgid "When true, enables Wayland in GDM, necessary to use Wayland sessions."
  29238. msgstr ""
  29239. #. type: item
  29240. #: guix-git/doc/guix.texi:19724
  29241. #, fuzzy, no-wrap
  29242. msgid "@code{wayland-session} (default: @code{gdm-wayland-session-wrapper})"
  29243. msgstr "@code{mate}(默认值:@code{mate})"
  29244. #. type: table
  29245. #: guix-git/doc/guix.texi:19727
  29246. msgid "The Wayland session wrapper to use, needed to setup the environment."
  29247. msgstr ""
  29248. #. type: defvr
  29249. #: guix-git/doc/guix.texi:19730
  29250. #, no-wrap
  29251. msgid "{Scheme Variable} slim-service-type"
  29252. msgstr ""
  29253. #. type: defvr
  29254. #: guix-git/doc/guix.texi:19732
  29255. msgid "This is the type for the SLiM graphical login manager for X11."
  29256. msgstr ""
  29257. #. type: defvr
  29258. #: guix-git/doc/guix.texi:19736
  29259. 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."
  29260. msgstr ""
  29261. #. type: defvr
  29262. #: guix-git/doc/guix.texi:19743
  29263. 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."
  29264. msgstr ""
  29265. #. type: lisp
  29266. #: guix-git/doc/guix.texi:19748
  29267. #, no-wrap
  29268. msgid ""
  29269. "(use-modules (gnu services)\n"
  29270. " (gnu services desktop)\n"
  29271. " (gnu services xorg))\n"
  29272. "\n"
  29273. msgstr ""
  29274. #. type: lisp
  29275. #: guix-git/doc/guix.texi:19759
  29276. #, no-wrap
  29277. msgid ""
  29278. "(operating-system\n"
  29279. " ;; ...\n"
  29280. " (services (cons* (service slim-service-type (slim-configuration\n"
  29281. " (display \":0\")\n"
  29282. " (vt \"vt7\")))\n"
  29283. " (service slim-service-type (slim-configuration\n"
  29284. " (display \":1\")\n"
  29285. " (vt \"vt8\")))\n"
  29286. " (modify-services %desktop-services\n"
  29287. " (delete gdm-service-type)))))\n"
  29288. msgstr ""
  29289. #. type: deftp
  29290. #: guix-git/doc/guix.texi:19763
  29291. #, no-wrap
  29292. msgid "{Data Type} slim-configuration"
  29293. msgstr ""
  29294. #. type: deftp
  29295. #: guix-git/doc/guix.texi:19765
  29296. msgid "Data type representing the configuration of @code{slim-service-type}."
  29297. msgstr ""
  29298. #. type: table
  29299. #: guix-git/doc/guix.texi:19769
  29300. msgid "Whether to allow logins with empty passwords."
  29301. msgstr ""
  29302. #. type: item
  29303. #: guix-git/doc/guix.texi:19770
  29304. #, fuzzy, no-wrap
  29305. msgid "@code{gnupg?} (default: @code{#f})"
  29306. msgstr "@code{challenge}(默认值:@code{#f})"
  29307. #. type: table
  29308. #: guix-git/doc/guix.texi:19777
  29309. msgid "If enabled, @code{pam-gnupg} will attempt to automatically unlock the user's GPG keys with the login password via @code{gpg-agent}. The keygrips of all keys to be unlocked should be written to @file{~/.pam-gnupg}, and can be queried with @code{gpg -K --with-keygrip}. Presetting passphrases must be enabled by adding @code{allow-preset-passphrase} in @file{~/.gnupg/gpg-agent.conf}."
  29310. msgstr ""
  29311. #. type: itemx
  29312. #: guix-git/doc/guix.texi:19779
  29313. #, no-wrap
  29314. msgid "@code{default-user} (default: @code{\"\"})"
  29315. msgstr ""
  29316. #. type: table
  29317. #: guix-git/doc/guix.texi:19781
  29318. msgid "When @code{auto-login?} is false, SLiM presents a log-in screen."
  29319. msgstr ""
  29320. #. type: table
  29321. #: guix-git/doc/guix.texi:19784
  29322. msgid "When @code{auto-login?} is true, SLiM logs in directly as @code{default-user}."
  29323. msgstr ""
  29324. #. type: item
  29325. #: guix-git/doc/guix.texi:19785
  29326. #, no-wrap
  29327. msgid "@code{theme} (default: @code{%default-slim-theme})"
  29328. msgstr ""
  29329. #. type: itemx
  29330. #: guix-git/doc/guix.texi:19786
  29331. #, no-wrap
  29332. msgid "@code{theme-name} (default: @code{%default-slim-theme-name})"
  29333. msgstr ""
  29334. #. type: table
  29335. #: guix-git/doc/guix.texi:19788
  29336. msgid "The graphical theme to use and its name."
  29337. msgstr ""
  29338. #. type: item
  29339. #: guix-git/doc/guix.texi:19789
  29340. #, no-wrap
  29341. msgid "@code{auto-login-session} (default: @code{#f})"
  29342. msgstr ""
  29343. #. type: table
  29344. #: guix-git/doc/guix.texi:19792
  29345. 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\")}."
  29346. msgstr ""
  29347. #. type: table
  29348. #: guix-git/doc/guix.texi:19796
  29349. 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."
  29350. msgstr ""
  29351. #. type: quotation
  29352. #: guix-git/doc/guix.texi:19801
  29353. 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."
  29354. msgstr ""
  29355. #. type: item
  29356. #: guix-git/doc/guix.texi:19803 guix-git/doc/guix.texi:19887
  29357. #, no-wrap
  29358. msgid "@code{xorg-configuration} (default @code{(xorg-configuration)})"
  29359. msgstr ""
  29360. #. type: item
  29361. #: guix-git/doc/guix.texi:19806
  29362. #, no-wrap
  29363. msgid "@code{display} (default @code{\":0\"})"
  29364. msgstr "@code{display}(默认值:@code{\":0\"})"
  29365. #. type: table
  29366. #: guix-git/doc/guix.texi:19808
  29367. msgid "The display on which to start the Xorg graphical server."
  29368. msgstr ""
  29369. #. type: item
  29370. #: guix-git/doc/guix.texi:19809
  29371. #, no-wrap
  29372. msgid "@code{vt} (default @code{\"vt7\"})"
  29373. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  29374. #. type: table
  29375. #: guix-git/doc/guix.texi:19811
  29376. msgid "The VT on which to start the Xorg graphical server."
  29377. msgstr ""
  29378. #. type: item
  29379. #: guix-git/doc/guix.texi:19812
  29380. #, no-wrap
  29381. msgid "@code{xauth} (default: @code{xauth})"
  29382. msgstr ""
  29383. #. type: table
  29384. #: guix-git/doc/guix.texi:19814
  29385. msgid "The XAuth package to use."
  29386. msgstr ""
  29387. #. type: item
  29388. #: guix-git/doc/guix.texi:19815
  29389. #, no-wrap
  29390. msgid "@code{shepherd} (default: @code{shepherd})"
  29391. msgstr ""
  29392. #. type: table
  29393. #: guix-git/doc/guix.texi:19818
  29394. msgid "The Shepherd package used when invoking @command{halt} and @command{reboot}."
  29395. msgstr ""
  29396. #. type: item
  29397. #: guix-git/doc/guix.texi:19819
  29398. #, no-wrap
  29399. msgid "@code{sessreg} (default: @code{sessreg})"
  29400. msgstr ""
  29401. #. type: table
  29402. #: guix-git/doc/guix.texi:19821
  29403. msgid "The sessreg package used in order to register the session."
  29404. msgstr ""
  29405. #. type: item
  29406. #: guix-git/doc/guix.texi:19822
  29407. #, no-wrap
  29408. msgid "@code{slim} (default: @code{slim})"
  29409. msgstr ""
  29410. #. type: table
  29411. #: guix-git/doc/guix.texi:19824
  29412. msgid "The SLiM package to use."
  29413. msgstr ""
  29414. #. type: defvr
  29415. #: guix-git/doc/guix.texi:19827
  29416. #, no-wrap
  29417. msgid "{Scheme Variable} %default-theme"
  29418. msgstr ""
  29419. #. type: defvrx
  29420. #: guix-git/doc/guix.texi:19828
  29421. #, no-wrap
  29422. msgid "{Scheme Variable} %default-theme-name"
  29423. msgstr ""
  29424. #. type: defvr
  29425. #: guix-git/doc/guix.texi:19830
  29426. msgid "The default SLiM theme and its name."
  29427. msgstr ""
  29428. #. type: deftp
  29429. #: guix-git/doc/guix.texi:19833 guix-git/doc/guix.texi:19940
  29430. #, no-wrap
  29431. msgid "{Data Type} sddm-configuration"
  29432. msgstr ""
  29433. #. type: deftp
  29434. #: guix-git/doc/guix.texi:19835
  29435. msgid "This is the data type representing the SDDM service configuration."
  29436. msgstr ""
  29437. #. type: item
  29438. #: guix-git/doc/guix.texi:19837
  29439. #, no-wrap
  29440. msgid "@code{display-server} (default: \"x11\")"
  29441. msgstr ""
  29442. #. type: table
  29443. #: guix-git/doc/guix.texi:19840
  29444. msgid "Select display server to use for the greeter. Valid values are @samp{\"x11\"} or @samp{\"wayland\"}."
  29445. msgstr ""
  29446. #. type: item
  29447. #: guix-git/doc/guix.texi:19841
  29448. #, no-wrap
  29449. msgid "@code{numlock} (default: \"on\")"
  29450. msgstr ""
  29451. #. type: table
  29452. #: guix-git/doc/guix.texi:19843
  29453. msgid "Valid values are @samp{\"on\"}, @samp{\"off\"} or @samp{\"none\"}."
  29454. msgstr ""
  29455. #. type: item
  29456. #: guix-git/doc/guix.texi:19844
  29457. #, no-wrap
  29458. msgid "@code{halt-command} (default @code{#~(string-apppend #$shepherd \"/sbin/halt\")})"
  29459. msgstr ""
  29460. #. type: table
  29461. #: guix-git/doc/guix.texi:19846
  29462. msgid "Command to run when halting."
  29463. msgstr ""
  29464. #. type: item
  29465. #: guix-git/doc/guix.texi:19847
  29466. #, no-wrap
  29467. msgid "@code{reboot-command} (default @code{#~(string-append #$shepherd \"/sbin/reboot\")})"
  29468. msgstr ""
  29469. #. type: table
  29470. #: guix-git/doc/guix.texi:19849
  29471. msgid "Command to run when rebooting."
  29472. msgstr ""
  29473. #. type: item
  29474. #: guix-git/doc/guix.texi:19850
  29475. #, no-wrap
  29476. msgid "@code{theme} (default \"maldives\")"
  29477. msgstr ""
  29478. #. type: table
  29479. #: guix-git/doc/guix.texi:19853
  29480. msgid "Theme to use. Default themes provided by SDDM are @samp{\"elarun\"}, @samp{\"maldives\"} or @samp{\"maya\"}."
  29481. msgstr ""
  29482. #. type: item
  29483. #: guix-git/doc/guix.texi:19854
  29484. #, no-wrap
  29485. msgid "@code{themes-directory} (default \"/run/current-system/profile/share/sddm/themes\")"
  29486. msgstr ""
  29487. #. type: table
  29488. #: guix-git/doc/guix.texi:19856
  29489. msgid "Directory to look for themes."
  29490. msgstr ""
  29491. #. type: item
  29492. #: guix-git/doc/guix.texi:19857
  29493. #, no-wrap
  29494. msgid "@code{faces-directory} (default \"/run/current-system/profile/share/sddm/faces\")"
  29495. msgstr ""
  29496. #. type: table
  29497. #: guix-git/doc/guix.texi:19859
  29498. msgid "Directory to look for faces."
  29499. msgstr ""
  29500. #. type: item
  29501. #: guix-git/doc/guix.texi:19860
  29502. #, no-wrap
  29503. msgid "@code{default-path} (default \"/run/current-system/profile/bin\")"
  29504. msgstr ""
  29505. #. type: table
  29506. #: guix-git/doc/guix.texi:19862
  29507. msgid "Default PATH to use."
  29508. msgstr ""
  29509. #. type: item
  29510. #: guix-git/doc/guix.texi:19863
  29511. #, fuzzy, no-wrap
  29512. msgid "@code{minimum-uid} (default: 1000)"
  29513. msgstr "@code{includes}(默认值:@code{'()})"
  29514. #. type: table
  29515. #: guix-git/doc/guix.texi:19865
  29516. msgid "Minimum UID displayed in SDDM and allowed for log-in."
  29517. msgstr ""
  29518. #. type: item
  29519. #: guix-git/doc/guix.texi:19866
  29520. #, fuzzy, no-wrap
  29521. msgid "@code{maximum-uid} (default: 2000)"
  29522. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  29523. #. type: table
  29524. #: guix-git/doc/guix.texi:19868
  29525. msgid "Maximum UID to display in SDDM."
  29526. msgstr ""
  29527. #. type: item
  29528. #: guix-git/doc/guix.texi:19869
  29529. #, no-wrap
  29530. msgid "@code{remember-last-user?} (default #t)"
  29531. msgstr ""
  29532. #. type: table
  29533. #: guix-git/doc/guix.texi:19871
  29534. msgid "Remember last user."
  29535. msgstr ""
  29536. #. type: item
  29537. #: guix-git/doc/guix.texi:19872
  29538. #, no-wrap
  29539. msgid "@code{remember-last-session?} (default #t)"
  29540. msgstr ""
  29541. #. type: table
  29542. #: guix-git/doc/guix.texi:19874
  29543. msgid "Remember last session."
  29544. msgstr ""
  29545. #. type: item
  29546. #: guix-git/doc/guix.texi:19875
  29547. #, no-wrap
  29548. msgid "@code{hide-users} (default \"\")"
  29549. msgstr ""
  29550. #. type: table
  29551. #: guix-git/doc/guix.texi:19877
  29552. msgid "Usernames to hide from SDDM greeter."
  29553. msgstr ""
  29554. #. type: item
  29555. #: guix-git/doc/guix.texi:19878
  29556. #, no-wrap
  29557. msgid "@code{hide-shells} (default @code{#~(string-append #$shadow \"/sbin/nologin\")})"
  29558. msgstr ""
  29559. #. type: table
  29560. #: guix-git/doc/guix.texi:19880
  29561. msgid "Users with shells listed will be hidden from the SDDM greeter."
  29562. msgstr ""
  29563. #. type: item
  29564. #: guix-git/doc/guix.texi:19881
  29565. #, no-wrap
  29566. msgid "@code{session-command} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/wayland-session\")})"
  29567. msgstr ""
  29568. #. type: table
  29569. #: guix-git/doc/guix.texi:19883
  29570. msgid "Script to run before starting a wayland session."
  29571. msgstr ""
  29572. #. type: item
  29573. #: guix-git/doc/guix.texi:19884
  29574. #, no-wrap
  29575. msgid "@code{sessions-directory} (default \"/run/current-system/profile/share/wayland-sessions\")"
  29576. msgstr ""
  29577. #. type: table
  29578. #: guix-git/doc/guix.texi:19886
  29579. msgid "Directory to look for desktop files starting wayland sessions."
  29580. msgstr ""
  29581. #. type: item
  29582. #: guix-git/doc/guix.texi:19890
  29583. #, no-wrap
  29584. msgid "@code{xauth-path} (default @code{#~(string-append #$xauth \"/bin/xauth\")})"
  29585. msgstr ""
  29586. #. type: table
  29587. #: guix-git/doc/guix.texi:19892
  29588. msgid "Path to xauth."
  29589. msgstr ""
  29590. #. type: item
  29591. #: guix-git/doc/guix.texi:19893
  29592. #, no-wrap
  29593. msgid "@code{xephyr-path} (default @code{#~(string-append #$xorg-server \"/bin/Xephyr\")})"
  29594. msgstr ""
  29595. #. type: table
  29596. #: guix-git/doc/guix.texi:19895
  29597. msgid "Path to Xephyr."
  29598. msgstr ""
  29599. #. type: item
  29600. #: guix-git/doc/guix.texi:19896
  29601. #, no-wrap
  29602. msgid "@code{xdisplay-start} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xsetup\")})"
  29603. msgstr ""
  29604. #. type: table
  29605. #: guix-git/doc/guix.texi:19898
  29606. msgid "Script to run after starting xorg-server."
  29607. msgstr ""
  29608. #. type: item
  29609. #: guix-git/doc/guix.texi:19899
  29610. #, no-wrap
  29611. msgid "@code{xdisplay-stop} (default @code{#~(string-append #$sddm \"/share/sddm/scripts/Xstop\")})"
  29612. msgstr ""
  29613. #. type: table
  29614. #: guix-git/doc/guix.texi:19901
  29615. msgid "Script to run before stopping xorg-server."
  29616. msgstr ""
  29617. #. type: item
  29618. #: guix-git/doc/guix.texi:19902
  29619. #, no-wrap
  29620. msgid "@code{xsession-command} (default: @code{xinitrc})"
  29621. msgstr ""
  29622. #. type: item
  29623. #: guix-git/doc/guix.texi:19905
  29624. #, no-wrap
  29625. msgid "@code{xsessions-directory} (default: \"/run/current-system/profile/share/xsessions\")"
  29626. msgstr ""
  29627. #. type: table
  29628. #: guix-git/doc/guix.texi:19907
  29629. msgid "Directory to look for desktop files starting X sessions."
  29630. msgstr ""
  29631. #. type: item
  29632. #: guix-git/doc/guix.texi:19908
  29633. #, no-wrap
  29634. msgid "@code{minimum-vt} (default: 7)"
  29635. msgstr ""
  29636. #. type: table
  29637. #: guix-git/doc/guix.texi:19910
  29638. msgid "Minimum VT to use."
  29639. msgstr ""
  29640. #. type: item
  29641. #: guix-git/doc/guix.texi:19911
  29642. #, no-wrap
  29643. msgid "@code{auto-login-user} (default \"\")"
  29644. msgstr ""
  29645. #. type: table
  29646. #: guix-git/doc/guix.texi:19913
  29647. msgid "User to use for auto-login."
  29648. msgstr ""
  29649. #. type: item
  29650. #: guix-git/doc/guix.texi:19914
  29651. #, no-wrap
  29652. msgid "@code{auto-login-session} (default \"\")"
  29653. msgstr ""
  29654. #. type: table
  29655. #: guix-git/doc/guix.texi:19916
  29656. msgid "Desktop file to use for auto-login."
  29657. msgstr ""
  29658. #. type: item
  29659. #: guix-git/doc/guix.texi:19917
  29660. #, no-wrap
  29661. msgid "@code{relogin?} (default #f)"
  29662. msgstr ""
  29663. #. type: table
  29664. #: guix-git/doc/guix.texi:19919
  29665. msgid "Relogin after logout."
  29666. msgstr ""
  29667. #. type: cindex
  29668. #: guix-git/doc/guix.texi:19924
  29669. #, no-wrap
  29670. msgid "X11 login"
  29671. msgstr ""
  29672. #. type: defvr
  29673. #: guix-git/doc/guix.texi:19925
  29674. #, no-wrap
  29675. msgid "{Scheme Variable} sddm-service-type"
  29676. msgstr ""
  29677. #. type: defvr
  29678. #: guix-git/doc/guix.texi:19929
  29679. 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)."
  29680. msgstr ""
  29681. #. type: defvr
  29682. #: guix-git/doc/guix.texi:19931
  29683. msgid "Here's an example use:"
  29684. msgstr ""
  29685. #. type: lisp
  29686. #: guix-git/doc/guix.texi:19937
  29687. #, no-wrap
  29688. msgid ""
  29689. "(service sddm-service-type\n"
  29690. " (sddm-configuration\n"
  29691. " (auto-login-user \"alice\")\n"
  29692. " (auto-login-session \"xfce.desktop\")))\n"
  29693. msgstr ""
  29694. #. type: deftp
  29695. #: guix-git/doc/guix.texi:19943
  29696. #, fuzzy
  29697. msgid "This data type represents the configuration of the SDDM login manager. The available fields are:"
  29698. msgstr "这个数据类型表示后台进程可以下发构建任务的构建机器。重要的项有:"
  29699. #. type: item
  29700. #: guix-git/doc/guix.texi:19945
  29701. #, fuzzy, no-wrap
  29702. msgid "@code{sddm} (default: @code{sddm})"
  29703. msgstr "@code{speed}(默认值:@code{1.0})"
  29704. #. type: table
  29705. #: guix-git/doc/guix.texi:19947
  29706. #, fuzzy
  29707. msgid "The SDDM package to use."
  29708. msgstr "软件包数据类型。"
  29709. #. type: item
  29710. #: guix-git/doc/guix.texi:19948
  29711. #, fuzzy, no-wrap
  29712. msgid "@code{display-server} (default: @code{\"x11\"})"
  29713. msgstr "@code{display}(默认值:@code{\":0\"})"
  29714. #. type: table
  29715. #: guix-git/doc/guix.texi:19950
  29716. msgid "This must be either @code{\"x11\"} or @code{\"wayland\"}."
  29717. msgstr ""
  29718. #. type: item
  29719. #: guix-git/doc/guix.texi:19953
  29720. #, fuzzy, no-wrap
  29721. msgid "@code{auto-login-user} (default: @code{\"\"})"
  29722. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  29723. #. type: table
  29724. #: guix-git/doc/guix.texi:19956
  29725. msgid "If non-empty, this is the user account under which to log in automatically."
  29726. msgstr ""
  29727. #. type: item
  29728. #: guix-git/doc/guix.texi:19957
  29729. #, fuzzy, no-wrap
  29730. msgid "@code{auto-login-session} (default: @code{\"\"})"
  29731. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  29732. #. type: table
  29733. #: guix-git/doc/guix.texi:19960
  29734. msgid "If non-empty, this is the @file{.desktop} file name to use as the auto-login session."
  29735. msgstr ""
  29736. #. type: cindex
  29737. #: guix-git/doc/guix.texi:19963
  29738. #, no-wrap
  29739. msgid "Xorg, configuration"
  29740. msgstr ""
  29741. #. type: deftp
  29742. #: guix-git/doc/guix.texi:19964
  29743. #, no-wrap
  29744. msgid "{Data Type} xorg-configuration"
  29745. msgstr ""
  29746. #. type: deftp
  29747. #: guix-git/doc/guix.texi:19969
  29748. 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."
  29749. msgstr ""
  29750. #. type: item
  29751. #: guix-git/doc/guix.texi:19971
  29752. #, no-wrap
  29753. msgid "@code{modules} (default: @code{%default-xorg-modules})"
  29754. msgstr ""
  29755. #. type: table
  29756. #: guix-git/doc/guix.texi:19974
  29757. 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."
  29758. msgstr ""
  29759. #. type: item
  29760. #: guix-git/doc/guix.texi:19975
  29761. #, no-wrap
  29762. msgid "@code{fonts} (default: @code{%default-xorg-fonts})"
  29763. msgstr ""
  29764. #. type: table
  29765. #: guix-git/doc/guix.texi:19977
  29766. msgid "This is a list of font directories to add to the server's @dfn{font path}."
  29767. msgstr ""
  29768. #. type: item
  29769. #: guix-git/doc/guix.texi:19978
  29770. #, no-wrap
  29771. msgid "@code{drivers} (default: @code{'()})"
  29772. msgstr ""
  29773. #. type: table
  29774. #: guix-git/doc/guix.texi:19982
  29775. 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\")}."
  29776. msgstr ""
  29777. #. type: item
  29778. #: guix-git/doc/guix.texi:19983
  29779. #, no-wrap
  29780. msgid "@code{resolutions} (default: @code{'()})"
  29781. msgstr ""
  29782. #. type: table
  29783. #: guix-git/doc/guix.texi:19987
  29784. 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))}."
  29785. msgstr ""
  29786. #. type: cindex
  29787. #: guix-git/doc/guix.texi:19988
  29788. #, no-wrap
  29789. msgid "keyboard layout, for Xorg"
  29790. msgstr ""
  29791. #. type: cindex
  29792. #: guix-git/doc/guix.texi:19989
  29793. #, no-wrap
  29794. msgid "keymap, for Xorg"
  29795. msgstr ""
  29796. #. type: table
  29797. #: guix-git/doc/guix.texi:19993
  29798. msgid "If this is @code{#f}, Xorg uses the default keyboard layout---usually US English (``qwerty'') for a 105-key PC keyboard."
  29799. msgstr ""
  29800. #. type: table
  29801. #: guix-git/doc/guix.texi:19997
  29802. 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."
  29803. msgstr ""
  29804. #. type: item
  29805. #: guix-git/doc/guix.texi:19998 guix-git/doc/guix.texi:21743
  29806. #: guix-git/doc/guix.texi:34597
  29807. #, no-wrap
  29808. msgid "@code{extra-config} (default: @code{'()})"
  29809. msgstr ""
  29810. #. type: table
  29811. #: guix-git/doc/guix.texi:20001 guix-git/doc/guix.texi:34601
  29812. 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."
  29813. msgstr ""
  29814. #. type: item
  29815. #: guix-git/doc/guix.texi:20002
  29816. #, no-wrap
  29817. msgid "@code{server} (default: @code{xorg-server})"
  29818. msgstr ""
  29819. #. type: table
  29820. #: guix-git/doc/guix.texi:20004
  29821. msgid "This is the package providing the Xorg server."
  29822. msgstr ""
  29823. #. type: item
  29824. #: guix-git/doc/guix.texi:20005
  29825. #, no-wrap
  29826. msgid "@code{server-arguments} (default: @code{%default-xorg-server-arguments})"
  29827. msgstr ""
  29828. #. type: table
  29829. #: guix-git/doc/guix.texi:20008
  29830. msgid "This is the list of command-line arguments to pass to the X server. The default is @code{-nolisten tcp}."
  29831. msgstr ""
  29832. #. type: deffn
  29833. #: guix-git/doc/guix.texi:20011
  29834. #, no-wrap
  29835. msgid "{Scheme Procedure} set-xorg-configuration @var{config} @"
  29836. msgstr ""
  29837. #. type: deffn
  29838. #: guix-git/doc/guix.texi:20015
  29839. 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."
  29840. msgstr ""
  29841. #. type: deffn
  29842. #: guix-git/doc/guix.texi:20019
  29843. 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."
  29844. msgstr ""
  29845. #. type: deffn
  29846. #: guix-git/doc/guix.texi:20021
  29847. #, no-wrap
  29848. msgid "{Scheme Procedure} xorg-start-command [@var{config}]"
  29849. msgstr ""
  29850. #. type: deffn
  29851. #: guix-git/doc/guix.texi:20025
  29852. 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}."
  29853. msgstr ""
  29854. #. type: deffn
  29855. #: guix-git/doc/guix.texi:20027
  29856. msgid "Usually the X server is started by a login manager."
  29857. msgstr ""
  29858. #. type: deffn
  29859. #: guix-git/doc/guix.texi:20030
  29860. #, no-wrap
  29861. msgid "{Scheme Procedure} screen-locker-service @var{package} [@var{program}]"
  29862. msgstr ""
  29863. #. type: deffn
  29864. #: guix-git/doc/guix.texi:20034
  29865. 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:"
  29866. msgstr ""
  29867. #. type: lisp
  29868. #: guix-git/doc/guix.texi:20037
  29869. #, no-wrap
  29870. msgid "(screen-locker-service xlockmore \"xlock\")\n"
  29871. msgstr ""
  29872. #. type: deffn
  29873. #: guix-git/doc/guix.texi:20040
  29874. msgid "makes the good ol' XlockMore usable."
  29875. msgstr ""
  29876. #. type: cindex
  29877. #: guix-git/doc/guix.texi:20046
  29878. #, no-wrap
  29879. msgid "printer support with CUPS"
  29880. msgstr ""
  29881. #. type: Plain text
  29882. #: guix-git/doc/guix.texi:20050
  29883. 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:"
  29884. msgstr ""
  29885. #. type: deffn
  29886. #: guix-git/doc/guix.texi:20051
  29887. #, no-wrap
  29888. msgid "{Scheme Variable} cups-service-type"
  29889. msgstr ""
  29890. #. type: deffn
  29891. #: guix-git/doc/guix.texi:20055
  29892. 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:"
  29893. msgstr ""
  29894. #. type: lisp
  29895. #: guix-git/doc/guix.texi:20057
  29896. #, no-wrap
  29897. msgid "(service cups-service-type)\n"
  29898. msgstr ""
  29899. #. type: Plain text
  29900. #: guix-git/doc/guix.texi:20067
  29901. 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."
  29902. msgstr ""
  29903. #. type: Plain text
  29904. #: guix-git/doc/guix.texi:20073
  29905. 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):"
  29906. msgstr ""
  29907. #. type: lisp
  29908. #: guix-git/doc/guix.texi:20080
  29909. #, no-wrap
  29910. msgid ""
  29911. "(service cups-service-type\n"
  29912. " (cups-configuration\n"
  29913. " (web-interface? #t)\n"
  29914. " (extensions\n"
  29915. " (list cups-filters epson-inkjet-printer-escpr hplip-minimal))))\n"
  29916. msgstr ""
  29917. #. type: Plain text
  29918. #: guix-git/doc/guix.texi:20085
  29919. 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."
  29920. msgstr ""
  29921. #. type: Plain text
  29922. #: guix-git/doc/guix.texi:20092
  29923. 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."
  29924. msgstr ""
  29925. #. type: Plain text
  29926. #: guix-git/doc/guix.texi:20103
  29927. msgid "Available @code{cups-configuration} fields are:"
  29928. msgstr ""
  29929. #. type: deftypevr
  29930. #: guix-git/doc/guix.texi:20104
  29931. #, no-wrap
  29932. msgid "{@code{cups-configuration} parameter} package cups"
  29933. msgstr ""
  29934. #. type: deftypevr
  29935. #: guix-git/doc/guix.texi:20106 guix-git/doc/guix.texi:20874
  29936. msgid "The CUPS package."
  29937. msgstr ""
  29938. #. type: deftypevr
  29939. #: guix-git/doc/guix.texi:20108
  29940. #, no-wrap
  29941. msgid "{@code{cups-configuration} parameter} package-list extensions (default: @code{(list brlaser cups-filters epson-inkjet-printer-escpr foomatic-filters hplip-minimal splix)})"
  29942. msgstr ""
  29943. #. type: deftypevr
  29944. #: guix-git/doc/guix.texi:20110
  29945. msgid "Drivers and other extensions to the CUPS package."
  29946. msgstr ""
  29947. #. type: deftypevr
  29948. #: guix-git/doc/guix.texi:20112
  29949. #, no-wrap
  29950. msgid "{@code{cups-configuration} parameter} files-configuration files-configuration"
  29951. msgstr ""
  29952. #. type: deftypevr
  29953. #: guix-git/doc/guix.texi:20115
  29954. msgid "Configuration of where to write logs, what directories to use for print spools, and related privileged configuration parameters."
  29955. msgstr ""
  29956. #. type: deftypevr
  29957. #: guix-git/doc/guix.texi:20117
  29958. msgid "Available @code{files-configuration} fields are:"
  29959. msgstr ""
  29960. #. type: deftypevr
  29961. #: guix-git/doc/guix.texi:20118
  29962. #, no-wrap
  29963. msgid "{@code{files-configuration} parameter} log-location access-log"
  29964. msgstr ""
  29965. #. type: deftypevr
  29966. #: guix-git/doc/guix.texi:20126
  29967. 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}."
  29968. msgstr ""
  29969. #. type: deftypevr
  29970. #: guix-git/doc/guix.texi:20128
  29971. msgid "Defaults to @samp{\"/var/log/cups/access_log\"}."
  29972. msgstr ""
  29973. #. type: deftypevr
  29974. #: guix-git/doc/guix.texi:20130
  29975. #, no-wrap
  29976. msgid "{@code{files-configuration} parameter} file-name cache-dir"
  29977. msgstr ""
  29978. #. type: deftypevr
  29979. #: guix-git/doc/guix.texi:20132
  29980. msgid "Where CUPS should cache data."
  29981. msgstr ""
  29982. #. type: deftypevr
  29983. #: guix-git/doc/guix.texi:20134
  29984. msgid "Defaults to @samp{\"/var/cache/cups\"}."
  29985. msgstr ""
  29986. #. type: deftypevr
  29987. #: guix-git/doc/guix.texi:20136
  29988. #, no-wrap
  29989. msgid "{@code{files-configuration} parameter} string config-file-perm"
  29990. msgstr ""
  29991. #. type: deftypevr
  29992. #: guix-git/doc/guix.texi:20139
  29993. msgid "Specifies the permissions for all configuration files that the scheduler writes."
  29994. msgstr ""
  29995. #. type: deftypevr
  29996. #: guix-git/doc/guix.texi:20145
  29997. 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."
  29998. msgstr ""
  29999. #. type: deftypevr
  30000. #: guix-git/doc/guix.texi:20147
  30001. msgid "Defaults to @samp{\"0640\"}."
  30002. msgstr ""
  30003. #. type: deftypevr
  30004. #: guix-git/doc/guix.texi:20149
  30005. #, no-wrap
  30006. msgid "{@code{files-configuration} parameter} log-location error-log"
  30007. msgstr ""
  30008. #. type: deftypevr
  30009. #: guix-git/doc/guix.texi:20157
  30010. 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}."
  30011. msgstr ""
  30012. #. type: deftypevr
  30013. #: guix-git/doc/guix.texi:20159
  30014. msgid "Defaults to @samp{\"/var/log/cups/error_log\"}."
  30015. msgstr ""
  30016. #. type: deftypevr
  30017. #: guix-git/doc/guix.texi:20161
  30018. #, no-wrap
  30019. msgid "{@code{files-configuration} parameter} string fatal-errors"
  30020. msgstr ""
  30021. #. type: deftypevr
  30022. #: guix-git/doc/guix.texi:20164
  30023. msgid "Specifies which errors are fatal, causing the scheduler to exit. The kind strings are:"
  30024. msgstr ""
  30025. #. type: table
  30026. #: guix-git/doc/guix.texi:20168
  30027. msgid "No errors are fatal."
  30028. msgstr ""
  30029. #. type: table
  30030. #: guix-git/doc/guix.texi:20171
  30031. msgid "All of the errors below are fatal."
  30032. msgstr ""
  30033. #. type: item
  30034. #: guix-git/doc/guix.texi:20172
  30035. #, no-wrap
  30036. msgid "browse"
  30037. msgstr ""
  30038. #. type: table
  30039. #: guix-git/doc/guix.texi:20175
  30040. msgid "Browsing initialization errors are fatal, for example failed connections to the DNS-SD daemon."
  30041. msgstr ""
  30042. #. type: item
  30043. #: guix-git/doc/guix.texi:20176
  30044. #, no-wrap
  30045. msgid "config"
  30046. msgstr ""
  30047. #. type: table
  30048. #: guix-git/doc/guix.texi:20178
  30049. msgid "Configuration file syntax errors are fatal."
  30050. msgstr ""
  30051. #. type: item
  30052. #: guix-git/doc/guix.texi:20179
  30053. #, no-wrap
  30054. msgid "listen"
  30055. msgstr ""
  30056. #. type: table
  30057. #: guix-git/doc/guix.texi:20182
  30058. msgid "Listen or Port errors are fatal, except for IPv6 failures on the loopback or @code{any} addresses."
  30059. msgstr ""
  30060. #. type: item
  30061. #: guix-git/doc/guix.texi:20183
  30062. #, no-wrap
  30063. msgid "log"
  30064. msgstr ""
  30065. #. type: table
  30066. #: guix-git/doc/guix.texi:20185
  30067. msgid "Log file creation or write errors are fatal."
  30068. msgstr ""
  30069. #. type: item
  30070. #: guix-git/doc/guix.texi:20186
  30071. #, no-wrap
  30072. msgid "permissions"
  30073. msgstr ""
  30074. #. type: table
  30075. #: guix-git/doc/guix.texi:20189
  30076. msgid "Bad startup file permissions are fatal, for example shared TLS certificate and key files with world-read permissions."
  30077. msgstr ""
  30078. #. type: deftypevr
  30079. #: guix-git/doc/guix.texi:20192
  30080. msgid "Defaults to @samp{\"all -browse\"}."
  30081. msgstr ""
  30082. #. type: deftypevr
  30083. #: guix-git/doc/guix.texi:20194
  30084. #, no-wrap
  30085. msgid "{@code{files-configuration} parameter} boolean file-device?"
  30086. msgstr ""
  30087. #. type: deftypevr
  30088. #: guix-git/doc/guix.texi:20197
  30089. msgid "Specifies whether the file pseudo-device can be used for new printer queues. The URI @uref{file:///dev/null} is always allowed."
  30090. msgstr ""
  30091. #. type: deftypevr
  30092. #: guix-git/doc/guix.texi:20201
  30093. #, no-wrap
  30094. msgid "{@code{files-configuration} parameter} string group"
  30095. msgstr ""
  30096. #. type: deftypevr
  30097. #: guix-git/doc/guix.texi:20204
  30098. msgid "Specifies the group name or ID that will be used when executing external programs."
  30099. msgstr ""
  30100. #. type: deftypevr
  30101. #: guix-git/doc/guix.texi:20206 guix-git/doc/guix.texi:20292
  30102. msgid "Defaults to @samp{\"lp\"}."
  30103. msgstr ""
  30104. #. type: deftypevr
  30105. #: guix-git/doc/guix.texi:20208
  30106. #, no-wrap
  30107. msgid "{@code{files-configuration} parameter} string log-file-group"
  30108. msgstr ""
  30109. #. type: deftypevr
  30110. #: guix-git/doc/guix.texi:20210
  30111. msgid "Specifies the group name or ID that will be used for log files."
  30112. msgstr ""
  30113. #. type: deftypevr
  30114. #: guix-git/doc/guix.texi:20212
  30115. msgid "Defaults to @samp{\"lpadmin\"}."
  30116. msgstr ""
  30117. #. type: deftypevr
  30118. #: guix-git/doc/guix.texi:20214
  30119. #, no-wrap
  30120. msgid "{@code{files-configuration} parameter} string log-file-perm"
  30121. msgstr ""
  30122. #. type: deftypevr
  30123. #: guix-git/doc/guix.texi:20216
  30124. msgid "Specifies the permissions for all log files that the scheduler writes."
  30125. msgstr ""
  30126. #. type: deftypevr
  30127. #: guix-git/doc/guix.texi:20218
  30128. msgid "Defaults to @samp{\"0644\"}."
  30129. msgstr ""
  30130. #. type: deftypevr
  30131. #: guix-git/doc/guix.texi:20220
  30132. #, no-wrap
  30133. msgid "{@code{files-configuration} parameter} log-location page-log"
  30134. msgstr ""
  30135. #. type: deftypevr
  30136. #: guix-git/doc/guix.texi:20228
  30137. 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}."
  30138. msgstr ""
  30139. #. type: deftypevr
  30140. #: guix-git/doc/guix.texi:20230
  30141. msgid "Defaults to @samp{\"/var/log/cups/page_log\"}."
  30142. msgstr ""
  30143. #. type: deftypevr
  30144. #: guix-git/doc/guix.texi:20232
  30145. #, no-wrap
  30146. msgid "{@code{files-configuration} parameter} string remote-root"
  30147. msgstr ""
  30148. #. type: deftypevr
  30149. #: guix-git/doc/guix.texi:20235
  30150. msgid "Specifies the username that is associated with unauthenticated accesses by clients claiming to be the root user. The default is @code{remroot}."
  30151. msgstr ""
  30152. #. type: deftypevr
  30153. #: guix-git/doc/guix.texi:20237
  30154. msgid "Defaults to @samp{\"remroot\"}."
  30155. msgstr ""
  30156. #. type: deftypevr
  30157. #: guix-git/doc/guix.texi:20239
  30158. #, no-wrap
  30159. msgid "{@code{files-configuration} parameter} file-name request-root"
  30160. msgstr ""
  30161. #. type: deftypevr
  30162. #: guix-git/doc/guix.texi:20242
  30163. msgid "Specifies the directory that contains print jobs and other HTTP request data."
  30164. msgstr ""
  30165. #. type: deftypevr
  30166. #: guix-git/doc/guix.texi:20244
  30167. msgid "Defaults to @samp{\"/var/spool/cups\"}."
  30168. msgstr ""
  30169. #. type: deftypevr
  30170. #: guix-git/doc/guix.texi:20246
  30171. #, no-wrap
  30172. msgid "{@code{files-configuration} parameter} sandboxing sandboxing"
  30173. msgstr ""
  30174. #. type: deftypevr
  30175. #: guix-git/doc/guix.texi:20251
  30176. 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."
  30177. msgstr ""
  30178. #. type: deftypevr
  30179. #: guix-git/doc/guix.texi:20253
  30180. msgid "Defaults to @samp{strict}."
  30181. msgstr ""
  30182. #. type: deftypevr
  30183. #: guix-git/doc/guix.texi:20255
  30184. #, no-wrap
  30185. msgid "{@code{files-configuration} parameter} file-name server-keychain"
  30186. msgstr ""
  30187. #. type: deftypevr
  30188. #: guix-git/doc/guix.texi:20260
  30189. 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."
  30190. msgstr ""
  30191. #. type: deftypevr
  30192. #: guix-git/doc/guix.texi:20262
  30193. msgid "Defaults to @samp{\"/etc/cups/ssl\"}."
  30194. msgstr ""
  30195. #. type: deftypevr
  30196. #: guix-git/doc/guix.texi:20264
  30197. #, no-wrap
  30198. msgid "{@code{files-configuration} parameter} file-name server-root"
  30199. msgstr ""
  30200. #. type: deftypevr
  30201. #: guix-git/doc/guix.texi:20266
  30202. msgid "Specifies the directory containing the server configuration files."
  30203. msgstr ""
  30204. #. type: deftypevr
  30205. #: guix-git/doc/guix.texi:20268
  30206. msgid "Defaults to @samp{\"/etc/cups\"}."
  30207. msgstr ""
  30208. #. type: deftypevr
  30209. #: guix-git/doc/guix.texi:20270
  30210. #, no-wrap
  30211. msgid "{@code{files-configuration} parameter} boolean sync-on-close?"
  30212. msgstr ""
  30213. #. type: deftypevr
  30214. #: guix-git/doc/guix.texi:20273
  30215. msgid "Specifies whether the scheduler calls fsync(2) after writing configuration or state files."
  30216. msgstr ""
  30217. #. type: deftypevr
  30218. #: guix-git/doc/guix.texi:20277
  30219. #, no-wrap
  30220. msgid "{@code{files-configuration} parameter} space-separated-string-list system-group"
  30221. msgstr ""
  30222. #. type: deftypevr
  30223. #: guix-git/doc/guix.texi:20279
  30224. msgid "Specifies the group(s) to use for @code{@@SYSTEM} group authentication."
  30225. msgstr ""
  30226. #. type: deftypevr
  30227. #: guix-git/doc/guix.texi:20281
  30228. #, no-wrap
  30229. msgid "{@code{files-configuration} parameter} file-name temp-dir"
  30230. msgstr ""
  30231. #. type: deftypevr
  30232. #: guix-git/doc/guix.texi:20283
  30233. msgid "Specifies the directory where temporary files are stored."
  30234. msgstr ""
  30235. #. type: deftypevr
  30236. #: guix-git/doc/guix.texi:20285
  30237. msgid "Defaults to @samp{\"/var/spool/cups/tmp\"}."
  30238. msgstr ""
  30239. #. type: deftypevr
  30240. #: guix-git/doc/guix.texi:20287
  30241. #, no-wrap
  30242. msgid "{@code{files-configuration} parameter} string user"
  30243. msgstr ""
  30244. #. type: deftypevr
  30245. #: guix-git/doc/guix.texi:20290
  30246. msgid "Specifies the user name or ID that is used when running external programs."
  30247. msgstr ""
  30248. #. type: deftypevr
  30249. #: guix-git/doc/guix.texi:20294
  30250. #, no-wrap
  30251. msgid "{@code{files-configuration} parameter} string set-env"
  30252. msgstr ""
  30253. #. type: deftypevr
  30254. #: guix-git/doc/guix.texi:20296
  30255. msgid "Set the specified environment variable to be passed to child processes."
  30256. msgstr ""
  30257. #. type: deftypevr
  30258. #: guix-git/doc/guix.texi:20298
  30259. msgid "Defaults to @samp{\"variable value\"}."
  30260. msgstr ""
  30261. #. type: deftypevr
  30262. #: guix-git/doc/guix.texi:20301
  30263. #, no-wrap
  30264. msgid "{@code{cups-configuration} parameter} access-log-level access-log-level"
  30265. msgstr ""
  30266. #. type: deftypevr
  30267. #: guix-git/doc/guix.texi:20308
  30268. 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."
  30269. msgstr ""
  30270. #. type: deftypevr
  30271. #: guix-git/doc/guix.texi:20310
  30272. msgid "Defaults to @samp{actions}."
  30273. msgstr ""
  30274. #. type: deftypevr
  30275. #: guix-git/doc/guix.texi:20312
  30276. #, no-wrap
  30277. msgid "{@code{cups-configuration} parameter} boolean auto-purge-jobs?"
  30278. msgstr ""
  30279. #. type: deftypevr
  30280. #: guix-git/doc/guix.texi:20315
  30281. msgid "Specifies whether to purge job history data automatically when it is no longer required for quotas."
  30282. msgstr ""
  30283. #. type: deftypevr
  30284. #: guix-git/doc/guix.texi:20319
  30285. #, no-wrap
  30286. msgid "{@code{cups-configuration} parameter} comma-separated-string-list browse-dns-sd-sub-types"
  30287. msgstr ""
  30288. #. type: deftypevr
  30289. #: guix-git/doc/guix.texi:20323
  30290. 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."
  30291. msgstr ""
  30292. #. type: deftypevr
  30293. #: guix-git/doc/guix.texi:20325
  30294. msgid "Defaults to @samp{\"_cups\"}."
  30295. msgstr ""
  30296. #. type: deftypevr
  30297. #: guix-git/doc/guix.texi:20327
  30298. #, no-wrap
  30299. msgid "{@code{cups-configuration} parameter} browse-local-protocols browse-local-protocols"
  30300. msgstr ""
  30301. #. type: deftypevr
  30302. #: guix-git/doc/guix.texi:20329
  30303. msgid "Specifies which protocols to use for local printer sharing."
  30304. msgstr ""
  30305. #. type: deftypevr
  30306. #: guix-git/doc/guix.texi:20331
  30307. msgid "Defaults to @samp{dnssd}."
  30308. msgstr ""
  30309. #. type: deftypevr
  30310. #: guix-git/doc/guix.texi:20333
  30311. #, no-wrap
  30312. msgid "{@code{cups-configuration} parameter} boolean browse-web-if?"
  30313. msgstr ""
  30314. #. type: deftypevr
  30315. #: guix-git/doc/guix.texi:20335
  30316. msgid "Specifies whether the CUPS web interface is advertised."
  30317. msgstr ""
  30318. #. type: deftypevr
  30319. #: guix-git/doc/guix.texi:20339
  30320. #, no-wrap
  30321. msgid "{@code{cups-configuration} parameter} boolean browsing?"
  30322. msgstr ""
  30323. #. type: deftypevr
  30324. #: guix-git/doc/guix.texi:20341
  30325. msgid "Specifies whether shared printers are advertised."
  30326. msgstr ""
  30327. #. type: deftypevr
  30328. #: guix-git/doc/guix.texi:20345
  30329. #, no-wrap
  30330. msgid "{@code{cups-configuration} parameter} string classification"
  30331. msgstr ""
  30332. #. type: deftypevr
  30333. #: guix-git/doc/guix.texi:20350
  30334. 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."
  30335. msgstr ""
  30336. #. type: deftypevr
  30337. #: guix-git/doc/guix.texi:20352 guix-git/doc/guix.texi:20683
  30338. #: guix-git/doc/guix.texi:22700 guix-git/doc/guix.texi:22712
  30339. #: guix-git/doc/guix.texi:22740 guix-git/doc/guix.texi:23497
  30340. #: guix-git/doc/guix.texi:23511 guix-git/doc/guix.texi:23518
  30341. #: guix-git/doc/guix.texi:23525 guix-git/doc/guix.texi:23555
  30342. #: guix-git/doc/guix.texi:23653 guix-git/doc/guix.texi:30546
  30343. #: guix-git/doc/guix.texi:30554 guix-git/doc/guix.texi:30562
  30344. #: guix-git/doc/guix.texi:30570 guix-git/doc/guix.texi:30849
  30345. #: guix-git/doc/guix.texi:32208 guix-git/doc/guix.texi:32216
  30346. #: guix-git/doc/guix.texi:32224 guix-git/doc/guix.texi:32332
  30347. #: guix-git/doc/guix.texi:32357 guix-git/doc/guix.texi:32488
  30348. #: guix-git/doc/guix.texi:32496 guix-git/doc/guix.texi:32504
  30349. #: guix-git/doc/guix.texi:32512 guix-git/doc/guix.texi:32520
  30350. #: guix-git/doc/guix.texi:32528 guix-git/doc/guix.texi:32551
  30351. #: guix-git/doc/guix.texi:32559 guix-git/doc/guix.texi:32611
  30352. #: guix-git/doc/guix.texi:32627 guix-git/doc/guix.texi:32635
  30353. #: guix-git/doc/guix.texi:32674 guix-git/doc/guix.texi:32697
  30354. #: guix-git/doc/guix.texi:32719 guix-git/doc/guix.texi:32726
  30355. #: guix-git/doc/guix.texi:32761 guix-git/doc/guix.texi:32769
  30356. #: guix-git/doc/guix.texi:32793 guix-git/doc/guix.texi:32825
  30357. #: guix-git/doc/guix.texi:32854 guix-git/doc/guix.texi:32861
  30358. #: guix-git/doc/guix.texi:32868 guix-git/doc/guix.texi:32876
  30359. #: guix-git/doc/guix.texi:32890 guix-git/doc/guix.texi:32899
  30360. #: guix-git/doc/guix.texi:32909 guix-git/doc/guix.texi:32916
  30361. #: guix-git/doc/guix.texi:32923 guix-git/doc/guix.texi:32930
  30362. #: guix-git/doc/guix.texi:33001 guix-git/doc/guix.texi:33008
  30363. #: guix-git/doc/guix.texi:33015 guix-git/doc/guix.texi:33024
  30364. #: guix-git/doc/guix.texi:33040 guix-git/doc/guix.texi:33047
  30365. #: guix-git/doc/guix.texi:33054 guix-git/doc/guix.texi:33061
  30366. #: guix-git/doc/guix.texi:33069 guix-git/doc/guix.texi:33077
  30367. msgid "Defaults to @samp{\"\"}."
  30368. msgstr ""
  30369. #. type: deftypevr
  30370. #: guix-git/doc/guix.texi:20354
  30371. #, no-wrap
  30372. msgid "{@code{cups-configuration} parameter} boolean classify-override?"
  30373. msgstr ""
  30374. #. type: deftypevr
  30375. #: guix-git/doc/guix.texi:20357
  30376. msgid "Specifies whether users may override the classification (cover page) of individual print jobs using the @code{job-sheets} option."
  30377. msgstr ""
  30378. #. type: deftypevr
  30379. #: guix-git/doc/guix.texi:20361
  30380. #, no-wrap
  30381. msgid "{@code{cups-configuration} parameter} default-auth-type default-auth-type"
  30382. msgstr ""
  30383. #. type: deftypevr
  30384. #: guix-git/doc/guix.texi:20363
  30385. msgid "Specifies the default type of authentication to use."
  30386. msgstr ""
  30387. #. type: deftypevr
  30388. #: guix-git/doc/guix.texi:20365
  30389. msgid "Defaults to @samp{Basic}."
  30390. msgstr ""
  30391. #. type: deftypevr
  30392. #: guix-git/doc/guix.texi:20367
  30393. #, no-wrap
  30394. msgid "{@code{cups-configuration} parameter} default-encryption default-encryption"
  30395. msgstr ""
  30396. #. type: deftypevr
  30397. #: guix-git/doc/guix.texi:20369
  30398. msgid "Specifies whether encryption will be used for authenticated requests."
  30399. msgstr ""
  30400. #. type: deftypevr
  30401. #: guix-git/doc/guix.texi:20371
  30402. msgid "Defaults to @samp{Required}."
  30403. msgstr ""
  30404. #. type: deftypevr
  30405. #: guix-git/doc/guix.texi:20373
  30406. #, no-wrap
  30407. msgid "{@code{cups-configuration} parameter} string default-language"
  30408. msgstr ""
  30409. #. type: deftypevr
  30410. #: guix-git/doc/guix.texi:20375
  30411. msgid "Specifies the default language to use for text and web content."
  30412. msgstr ""
  30413. #. type: deftypevr
  30414. #: guix-git/doc/guix.texi:20377
  30415. msgid "Defaults to @samp{\"en\"}."
  30416. msgstr ""
  30417. #. type: deftypevr
  30418. #: guix-git/doc/guix.texi:20379
  30419. #, no-wrap
  30420. msgid "{@code{cups-configuration} parameter} string default-paper-size"
  30421. msgstr ""
  30422. #. type: deftypevr
  30423. #: guix-git/doc/guix.texi:20384
  30424. 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\"}."
  30425. msgstr ""
  30426. #. type: deftypevr
  30427. #: guix-git/doc/guix.texi:20386
  30428. msgid "Defaults to @samp{\"Auto\"}."
  30429. msgstr ""
  30430. #. type: deftypevr
  30431. #: guix-git/doc/guix.texi:20388
  30432. #, no-wrap
  30433. msgid "{@code{cups-configuration} parameter} string default-policy"
  30434. msgstr ""
  30435. #. type: deftypevr
  30436. #: guix-git/doc/guix.texi:20390
  30437. msgid "Specifies the default access policy to use."
  30438. msgstr ""
  30439. #. type: deftypevr
  30440. #: guix-git/doc/guix.texi:20392
  30441. msgid "Defaults to @samp{\"default\"}."
  30442. msgstr ""
  30443. #. type: deftypevr
  30444. #: guix-git/doc/guix.texi:20394
  30445. #, no-wrap
  30446. msgid "{@code{cups-configuration} parameter} boolean default-shared?"
  30447. msgstr ""
  30448. #. type: deftypevr
  30449. #: guix-git/doc/guix.texi:20396
  30450. msgid "Specifies whether local printers are shared by default."
  30451. msgstr ""
  30452. #. type: deftypevr
  30453. #: guix-git/doc/guix.texi:20398 guix-git/doc/guix.texi:20478
  30454. #: guix-git/doc/guix.texi:20768 guix-git/doc/guix.texi:23587
  30455. #: guix-git/doc/guix.texi:23638 guix-git/doc/guix.texi:23645
  30456. #: guix-git/doc/guix.texi:24927 guix-git/doc/guix.texi:25115
  30457. #: guix-git/doc/guix.texi:25232 guix-git/doc/guix.texi:25268
  30458. #: guix-git/doc/guix.texi:25319 guix-git/doc/guix.texi:25338
  30459. #: guix-git/doc/guix.texi:25348 guix-git/doc/guix.texi:25358
  30460. #: guix-git/doc/guix.texi:25417 guix-git/doc/guix.texi:25439
  30461. #: guix-git/doc/guix.texi:25464 guix-git/doc/guix.texi:25490
  30462. #: guix-git/doc/guix.texi:25508 guix-git/doc/guix.texi:28613
  30463. #: guix-git/doc/guix.texi:28641 guix-git/doc/guix.texi:28777
  30464. #: guix-git/doc/guix.texi:28784 guix-git/doc/guix.texi:28792
  30465. #: guix-git/doc/guix.texi:28829 guix-git/doc/guix.texi:28843
  30466. #: guix-git/doc/guix.texi:28932 guix-git/doc/guix.texi:28939
  30467. #: guix-git/doc/guix.texi:28947 guix-git/doc/guix.texi:29726
  30468. #: guix-git/doc/guix.texi:29866 guix-git/doc/guix.texi:30080
  30469. #: guix-git/doc/guix.texi:30087 guix-git/doc/guix.texi:30109
  30470. #: guix-git/doc/guix.texi:30148 guix-git/doc/guix.texi:30168
  30471. #: guix-git/doc/guix.texi:30182 guix-git/doc/guix.texi:30395
  30472. #: guix-git/doc/guix.texi:32310 guix-git/doc/guix.texi:32398
  30473. #: guix-git/doc/guix.texi:32414 guix-git/doc/guix.texi:32464
  30474. msgid "Defaults to @samp{#t}."
  30475. msgstr ""
  30476. #. type: deftypevr
  30477. #: guix-git/doc/guix.texi:20400
  30478. #, no-wrap
  30479. msgid "{@code{cups-configuration} parameter} non-negative-integer dirty-clean-interval"
  30480. msgstr ""
  30481. #. type: deftypevr
  30482. #: guix-git/doc/guix.texi:20404
  30483. 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."
  30484. msgstr ""
  30485. #. type: deftypevr
  30486. #: guix-git/doc/guix.texi:20406 guix-git/doc/guix.texi:20454
  30487. #: guix-git/doc/guix.texi:20463 guix-git/doc/guix.texi:20775
  30488. #: guix-git/doc/guix.texi:25277 guix-git/doc/guix.texi:25310
  30489. msgid "Defaults to @samp{30}."
  30490. msgstr ""
  30491. #. type: deftypevr
  30492. #: guix-git/doc/guix.texi:20408
  30493. #, no-wrap
  30494. msgid "{@code{cups-configuration} parameter} error-policy error-policy"
  30495. msgstr ""
  30496. #. type: deftypevr
  30497. #: guix-git/doc/guix.texi:20414
  30498. 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."
  30499. msgstr ""
  30500. #. type: deftypevr
  30501. #: guix-git/doc/guix.texi:20416
  30502. msgid "Defaults to @samp{stop-printer}."
  30503. msgstr ""
  30504. #. type: deftypevr
  30505. #: guix-git/doc/guix.texi:20418
  30506. #, no-wrap
  30507. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-limit"
  30508. msgstr ""
  30509. #. type: deftypevr
  30510. #: guix-git/doc/guix.texi:20426
  30511. 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."
  30512. msgstr ""
  30513. #. type: deftypevr
  30514. #: guix-git/doc/guix.texi:20428 guix-git/doc/guix.texi:20436
  30515. #: guix-git/doc/guix.texi:20485 guix-git/doc/guix.texi:20601
  30516. #: guix-git/doc/guix.texi:20615 guix-git/doc/guix.texi:20622
  30517. #: guix-git/doc/guix.texi:22142 guix-git/doc/guix.texi:22158
  30518. #: guix-git/doc/guix.texi:22815 guix-git/doc/guix.texi:22827
  30519. #: guix-git/doc/guix.texi:23606 guix-git/doc/guix.texi:23615
  30520. #: guix-git/doc/guix.texi:23623 guix-git/doc/guix.texi:23631
  30521. #: guix-git/doc/guix.texi:29742 guix-git/doc/guix.texi:30095
  30522. #: guix-git/doc/guix.texi:32303 guix-git/doc/guix.texi:32603
  30523. #: guix-git/doc/guix.texi:32777
  30524. msgid "Defaults to @samp{0}."
  30525. msgstr ""
  30526. #. type: deftypevr
  30527. #: guix-git/doc/guix.texi:20430
  30528. #, no-wrap
  30529. msgid "{@code{cups-configuration} parameter} non-negative-integer filter-nice"
  30530. msgstr ""
  30531. #. type: deftypevr
  30532. #: guix-git/doc/guix.texi:20434
  30533. 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."
  30534. msgstr ""
  30535. #. type: deftypevr
  30536. #: guix-git/doc/guix.texi:20438
  30537. #, no-wrap
  30538. msgid "{@code{cups-configuration} parameter} host-name-lookups host-name-lookups"
  30539. msgstr ""
  30540. #. type: deftypevr
  30541. #: guix-git/doc/guix.texi:20445
  30542. 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."
  30543. msgstr ""
  30544. #. type: deftypevr
  30545. #: guix-git/doc/guix.texi:20449
  30546. #, no-wrap
  30547. msgid "{@code{cups-configuration} parameter} non-negative-integer job-kill-delay"
  30548. msgstr ""
  30549. #. type: deftypevr
  30550. #: guix-git/doc/guix.texi:20452
  30551. msgid "Specifies the number of seconds to wait before killing the filters and backend associated with a canceled or held job."
  30552. msgstr ""
  30553. #. type: deftypevr
  30554. #: guix-git/doc/guix.texi:20456
  30555. #, no-wrap
  30556. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-interval"
  30557. msgstr ""
  30558. #. type: deftypevr
  30559. #: guix-git/doc/guix.texi:20461
  30560. 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}."
  30561. msgstr ""
  30562. #. type: deftypevr
  30563. #: guix-git/doc/guix.texi:20465
  30564. #, no-wrap
  30565. msgid "{@code{cups-configuration} parameter} non-negative-integer job-retry-limit"
  30566. msgstr ""
  30567. #. type: deftypevr
  30568. #: guix-git/doc/guix.texi:20470
  30569. 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}."
  30570. msgstr ""
  30571. #. type: deftypevr
  30572. #: guix-git/doc/guix.texi:20472 guix-git/doc/guix.texi:25241
  30573. #: guix-git/doc/guix.texi:30647 guix-git/doc/guix.texi:30667
  30574. #: guix-git/doc/guix.texi:30683 guix-git/doc/guix.texi:30697
  30575. #: guix-git/doc/guix.texi:30704 guix-git/doc/guix.texi:30711
  30576. #: guix-git/doc/guix.texi:30718 guix-git/doc/guix.texi:30878
  30577. #: guix-git/doc/guix.texi:30894 guix-git/doc/guix.texi:30901
  30578. #: guix-git/doc/guix.texi:30908 guix-git/doc/guix.texi:30919
  30579. #: guix-git/doc/guix.texi:32255 guix-git/doc/guix.texi:32263
  30580. #: guix-git/doc/guix.texi:32271 guix-git/doc/guix.texi:32295
  30581. msgid "Defaults to @samp{5}."
  30582. msgstr ""
  30583. #. type: deftypevr
  30584. #: guix-git/doc/guix.texi:20474
  30585. #, no-wrap
  30586. msgid "{@code{cups-configuration} parameter} boolean keep-alive?"
  30587. msgstr ""
  30588. #. type: deftypevr
  30589. #: guix-git/doc/guix.texi:20476
  30590. msgid "Specifies whether to support HTTP keep-alive connections."
  30591. msgstr ""
  30592. #. type: deftypevr
  30593. #: guix-git/doc/guix.texi:20480
  30594. #, no-wrap
  30595. msgid "{@code{cups-configuration} parameter} non-negative-integer limit-request-body"
  30596. msgstr ""
  30597. #. type: deftypevr
  30598. #: guix-git/doc/guix.texi:20483
  30599. msgid "Specifies the maximum size of print files, IPP requests, and HTML form data. A limit of 0 disables the limit check."
  30600. msgstr ""
  30601. #. type: deftypevr
  30602. #: guix-git/doc/guix.texi:20487
  30603. #, no-wrap
  30604. msgid "{@code{cups-configuration} parameter} multiline-string-list listen"
  30605. msgstr ""
  30606. #. type: deftypevr
  30607. #: guix-git/doc/guix.texi:20494
  30608. 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."
  30609. msgstr ""
  30610. #. type: deftypevr
  30611. #: guix-git/doc/guix.texi:20496
  30612. #, no-wrap
  30613. msgid "{@code{cups-configuration} parameter} non-negative-integer listen-back-log"
  30614. msgstr ""
  30615. #. type: deftypevr
  30616. #: guix-git/doc/guix.texi:20503
  30617. 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."
  30618. msgstr ""
  30619. #. type: deftypevr
  30620. #: guix-git/doc/guix.texi:20505
  30621. msgid "Defaults to @samp{128}."
  30622. msgstr ""
  30623. #. type: deftypevr
  30624. #: guix-git/doc/guix.texi:20507
  30625. #, no-wrap
  30626. msgid "{@code{cups-configuration} parameter} location-access-control-list location-access-controls"
  30627. msgstr ""
  30628. #. type: deftypevr
  30629. #: guix-git/doc/guix.texi:20509
  30630. msgid "Specifies a set of additional access controls."
  30631. msgstr ""
  30632. #. type: deftypevr
  30633. #: guix-git/doc/guix.texi:20511
  30634. msgid "Available @code{location-access-controls} fields are:"
  30635. msgstr ""
  30636. #. type: deftypevr
  30637. #: guix-git/doc/guix.texi:20512
  30638. #, no-wrap
  30639. msgid "{@code{location-access-controls} parameter} file-name path"
  30640. msgstr ""
  30641. #. type: deftypevr
  30642. #: guix-git/doc/guix.texi:20514
  30643. msgid "Specifies the URI path to which the access control applies."
  30644. msgstr ""
  30645. #. type: deftypevr
  30646. #: guix-git/doc/guix.texi:20516
  30647. #, no-wrap
  30648. msgid "{@code{location-access-controls} parameter} access-control-list access-controls"
  30649. msgstr ""
  30650. #. type: deftypevr
  30651. #: guix-git/doc/guix.texi:20519
  30652. msgid "Access controls for all access to this path, in the same format as the @code{access-controls} of @code{operation-access-control}."
  30653. msgstr ""
  30654. #. type: deftypevr
  30655. #: guix-git/doc/guix.texi:20521 guix-git/doc/guix.texi:20527
  30656. #: guix-git/doc/guix.texi:20541 guix-git/doc/guix.texi:20548
  30657. #: guix-git/doc/guix.texi:20690 guix-git/doc/guix.texi:20749
  30658. #: guix-git/doc/guix.texi:20827 guix-git/doc/guix.texi:20841
  30659. #: guix-git/doc/guix.texi:22022 guix-git/doc/guix.texi:22031
  30660. #: guix-git/doc/guix.texi:23301 guix-git/doc/guix.texi:23504
  30661. #: guix-git/doc/guix.texi:23532 guix-git/doc/guix.texi:23562
  30662. #: guix-git/doc/guix.texi:23677 guix-git/doc/guix.texi:23690
  30663. #: guix-git/doc/guix.texi:23697 guix-git/doc/guix.texi:25447
  30664. #: guix-git/doc/guix.texi:26283 guix-git/doc/guix.texi:26291
  30665. #: guix-git/doc/guix.texi:26536 guix-git/doc/guix.texi:28672
  30666. #: guix-git/doc/guix.texi:28850 guix-git/doc/guix.texi:29049
  30667. #: guix-git/doc/guix.texi:30538 guix-git/doc/guix.texi:30598
  30668. #: guix-git/doc/guix.texi:30606 guix-git/doc/guix.texi:32318
  30669. #: guix-git/doc/guix.texi:32325 guix-git/doc/guix.texi:32667
  30670. #: guix-git/doc/guix.texi:32745 guix-git/doc/guix.texi:32839
  30671. #: guix-git/doc/guix.texi:32847 guix-git/doc/guix.texi:32883
  30672. #: guix-git/doc/guix.texi:33033 guix-git/doc/guix.texi:33084
  30673. #: guix-git/doc/guix.texi:33093
  30674. msgid "Defaults to @samp{()}."
  30675. msgstr ""
  30676. #. type: deftypevr
  30677. #: guix-git/doc/guix.texi:20523
  30678. #, no-wrap
  30679. msgid "{@code{location-access-controls} parameter} method-access-control-list method-access-controls"
  30680. msgstr ""
  30681. #. type: deftypevr
  30682. #: guix-git/doc/guix.texi:20525
  30683. msgid "Access controls for method-specific access to this path."
  30684. msgstr ""
  30685. #. type: deftypevr
  30686. #: guix-git/doc/guix.texi:20529
  30687. msgid "Available @code{method-access-controls} fields are:"
  30688. msgstr ""
  30689. #. type: deftypevr
  30690. #: guix-git/doc/guix.texi:20530
  30691. #, no-wrap
  30692. msgid "{@code{method-access-controls} parameter} boolean reverse?"
  30693. msgstr ""
  30694. #. type: deftypevr
  30695. #: guix-git/doc/guix.texi:20533
  30696. msgid "If @code{#t}, apply access controls to all methods except the listed methods. Otherwise apply to only the listed methods."
  30697. msgstr ""
  30698. #. type: deftypevr
  30699. #: guix-git/doc/guix.texi:20537
  30700. #, no-wrap
  30701. msgid "{@code{method-access-controls} parameter} method-list methods"
  30702. msgstr ""
  30703. #. type: deftypevr
  30704. #: guix-git/doc/guix.texi:20539
  30705. msgid "Methods to which this access control applies."
  30706. msgstr ""
  30707. #. type: deftypevr
  30708. #: guix-git/doc/guix.texi:20543
  30709. #, no-wrap
  30710. msgid "{@code{method-access-controls} parameter} access-control-list access-controls"
  30711. msgstr ""
  30712. #. type: deftypevr
  30713. #: guix-git/doc/guix.texi:20546
  30714. msgid "Access control directives, as a list of strings. Each string should be one directive, such as @samp{\"Order allow,deny\"}."
  30715. msgstr ""
  30716. #. type: deftypevr
  30717. #: guix-git/doc/guix.texi:20552
  30718. #, no-wrap
  30719. msgid "{@code{cups-configuration} parameter} non-negative-integer log-debug-history"
  30720. msgstr ""
  30721. #. type: deftypevr
  30722. #: guix-git/doc/guix.texi:20556
  30723. 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."
  30724. msgstr ""
  30725. #. type: deftypevr
  30726. #: guix-git/doc/guix.texi:20558 guix-git/doc/guix.texi:20579
  30727. #: guix-git/doc/guix.texi:20586 guix-git/doc/guix.texi:23061
  30728. #: guix-git/doc/guix.texi:24979 guix-git/doc/guix.texi:24994
  30729. #: guix-git/doc/guix.texi:29034
  30730. msgid "Defaults to @samp{100}."
  30731. msgstr ""
  30732. #. type: deftypevr
  30733. #: guix-git/doc/guix.texi:20560
  30734. #, no-wrap
  30735. msgid "{@code{cups-configuration} parameter} log-level log-level"
  30736. msgstr ""
  30737. #. type: deftypevr
  30738. #: guix-git/doc/guix.texi:20563
  30739. msgid "Specifies the level of logging for the ErrorLog file. The value @code{none} stops all logging while @code{debug2} logs everything."
  30740. msgstr ""
  30741. #. type: deftypevr
  30742. #: guix-git/doc/guix.texi:20565 guix-git/doc/guix.texi:25456
  30743. msgid "Defaults to @samp{info}."
  30744. msgstr ""
  30745. #. type: deftypevr
  30746. #: guix-git/doc/guix.texi:20567
  30747. #, no-wrap
  30748. msgid "{@code{cups-configuration} parameter} log-time-format log-time-format"
  30749. msgstr ""
  30750. #. type: deftypevr
  30751. #: guix-git/doc/guix.texi:20570
  30752. 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."
  30753. msgstr ""
  30754. #. type: deftypevr
  30755. #: guix-git/doc/guix.texi:20572
  30756. msgid "Defaults to @samp{standard}."
  30757. msgstr ""
  30758. #. type: deftypevr
  30759. #: guix-git/doc/guix.texi:20574
  30760. #, no-wrap
  30761. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients"
  30762. msgstr ""
  30763. #. type: deftypevr
  30764. #: guix-git/doc/guix.texi:20577
  30765. msgid "Specifies the maximum number of simultaneous clients that are allowed by the scheduler."
  30766. msgstr ""
  30767. #. type: deftypevr
  30768. #: guix-git/doc/guix.texi:20581
  30769. #, no-wrap
  30770. msgid "{@code{cups-configuration} parameter} non-negative-integer max-clients-per-host"
  30771. msgstr ""
  30772. #. type: deftypevr
  30773. #: guix-git/doc/guix.texi:20584
  30774. msgid "Specifies the maximum number of simultaneous clients that are allowed from a single address."
  30775. msgstr ""
  30776. #. type: deftypevr
  30777. #: guix-git/doc/guix.texi:20588
  30778. #, no-wrap
  30779. msgid "{@code{cups-configuration} parameter} non-negative-integer max-copies"
  30780. msgstr ""
  30781. #. type: deftypevr
  30782. #: guix-git/doc/guix.texi:20591
  30783. msgid "Specifies the maximum number of copies that a user can print of each job."
  30784. msgstr ""
  30785. #. type: deftypevr
  30786. #: guix-git/doc/guix.texi:20593
  30787. msgid "Defaults to @samp{9999}."
  30788. msgstr ""
  30789. #. type: deftypevr
  30790. #: guix-git/doc/guix.texi:20595
  30791. #, no-wrap
  30792. msgid "{@code{cups-configuration} parameter} non-negative-integer max-hold-time"
  30793. msgstr ""
  30794. #. type: deftypevr
  30795. #: guix-git/doc/guix.texi:20599
  30796. 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."
  30797. msgstr ""
  30798. #. type: deftypevr
  30799. #: guix-git/doc/guix.texi:20603
  30800. #, no-wrap
  30801. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs"
  30802. msgstr ""
  30803. #. type: deftypevr
  30804. #: guix-git/doc/guix.texi:20606
  30805. msgid "Specifies the maximum number of simultaneous jobs that are allowed. Set to 0 to allow an unlimited number of jobs."
  30806. msgstr ""
  30807. #. type: deftypevr
  30808. #: guix-git/doc/guix.texi:20608
  30809. msgid "Defaults to @samp{500}."
  30810. msgstr ""
  30811. #. type: deftypevr
  30812. #: guix-git/doc/guix.texi:20610
  30813. #, no-wrap
  30814. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-printer"
  30815. msgstr ""
  30816. #. type: deftypevr
  30817. #: guix-git/doc/guix.texi:20613
  30818. msgid "Specifies the maximum number of simultaneous jobs that are allowed per printer. A value of 0 allows up to MaxJobs jobs per printer."
  30819. msgstr ""
  30820. #. type: deftypevr
  30821. #: guix-git/doc/guix.texi:20617
  30822. #, no-wrap
  30823. msgid "{@code{cups-configuration} parameter} non-negative-integer max-jobs-per-user"
  30824. msgstr ""
  30825. #. type: deftypevr
  30826. #: guix-git/doc/guix.texi:20620
  30827. msgid "Specifies the maximum number of simultaneous jobs that are allowed per user. A value of 0 allows up to MaxJobs jobs per user."
  30828. msgstr ""
  30829. #. type: deftypevr
  30830. #: guix-git/doc/guix.texi:20624
  30831. #, no-wrap
  30832. msgid "{@code{cups-configuration} parameter} non-negative-integer max-job-time"
  30833. msgstr ""
  30834. #. type: deftypevr
  30835. #: guix-git/doc/guix.texi:20627
  30836. 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."
  30837. msgstr ""
  30838. #. type: deftypevr
  30839. #: guix-git/doc/guix.texi:20629
  30840. msgid "Defaults to @samp{10800}."
  30841. msgstr ""
  30842. #. type: deftypevr
  30843. #: guix-git/doc/guix.texi:20631
  30844. #, no-wrap
  30845. msgid "{@code{cups-configuration} parameter} non-negative-integer max-log-size"
  30846. msgstr ""
  30847. #. type: deftypevr
  30848. #: guix-git/doc/guix.texi:20634
  30849. msgid "Specifies the maximum size of the log files before they are rotated, in bytes. The value 0 disables log rotation."
  30850. msgstr ""
  30851. #. type: deftypevr
  30852. #: guix-git/doc/guix.texi:20636
  30853. msgid "Defaults to @samp{1048576}."
  30854. msgstr ""
  30855. #. type: deftypevr
  30856. #: guix-git/doc/guix.texi:20638
  30857. #, no-wrap
  30858. msgid "{@code{cups-configuration} parameter} non-negative-integer multiple-operation-timeout"
  30859. msgstr ""
  30860. #. type: deftypevr
  30861. #: guix-git/doc/guix.texi:20641
  30862. msgid "Specifies the maximum amount of time to allow between files in a multiple file print job, in seconds."
  30863. msgstr ""
  30864. #. type: deftypevr
  30865. #: guix-git/doc/guix.texi:20643 guix-git/doc/guix.texi:20854
  30866. msgid "Defaults to @samp{900}."
  30867. msgstr ""
  30868. #. type: deftypevr
  30869. #: guix-git/doc/guix.texi:20645
  30870. #, no-wrap
  30871. msgid "{@code{cups-configuration} parameter} string page-log-format"
  30872. msgstr ""
  30873. #. type: deftypevr
  30874. #: guix-git/doc/guix.texi:20650
  30875. 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:"
  30876. msgstr ""
  30877. #. type: item
  30878. #: guix-git/doc/guix.texi:20652
  30879. #, no-wrap
  30880. msgid "%%"
  30881. msgstr ""
  30882. #. type: table
  30883. #: guix-git/doc/guix.texi:20654
  30884. msgid "insert a single percent character"
  30885. msgstr ""
  30886. #. type: item
  30887. #: guix-git/doc/guix.texi:20655
  30888. #, no-wrap
  30889. msgid "%@{name@}"
  30890. msgstr ""
  30891. #. type: table
  30892. #: guix-git/doc/guix.texi:20657
  30893. msgid "insert the value of the specified IPP attribute"
  30894. msgstr ""
  30895. #. type: item
  30896. #: guix-git/doc/guix.texi:20658
  30897. #, no-wrap
  30898. msgid "%C"
  30899. msgstr ""
  30900. #. type: table
  30901. #: guix-git/doc/guix.texi:20660
  30902. msgid "insert the number of copies for the current page"
  30903. msgstr ""
  30904. #. type: item
  30905. #: guix-git/doc/guix.texi:20661
  30906. #, no-wrap
  30907. msgid "%P"
  30908. msgstr ""
  30909. #. type: table
  30910. #: guix-git/doc/guix.texi:20663
  30911. msgid "insert the current page number"
  30912. msgstr ""
  30913. #. type: item
  30914. #: guix-git/doc/guix.texi:20664
  30915. #, no-wrap
  30916. msgid "%T"
  30917. msgstr ""
  30918. #. type: table
  30919. #: guix-git/doc/guix.texi:20666
  30920. msgid "insert the current date and time in common log format"
  30921. msgstr ""
  30922. #. type: item
  30923. #: guix-git/doc/guix.texi:20667
  30924. #, no-wrap
  30925. msgid "%j"
  30926. msgstr ""
  30927. #. type: table
  30928. #: guix-git/doc/guix.texi:20669
  30929. msgid "insert the job ID"
  30930. msgstr ""
  30931. #. type: item
  30932. #: guix-git/doc/guix.texi:20670 guix-git/doc/guix.texi:22660
  30933. #, no-wrap
  30934. msgid "%p"
  30935. msgstr ""
  30936. #. type: table
  30937. #: guix-git/doc/guix.texi:20672
  30938. msgid "insert the printer name"
  30939. msgstr ""
  30940. #. type: item
  30941. #: guix-git/doc/guix.texi:20673 guix-git/doc/guix.texi:22683
  30942. #, no-wrap
  30943. msgid "%u"
  30944. msgstr ""
  30945. #. type: table
  30946. #: guix-git/doc/guix.texi:20675
  30947. msgid "insert the username"
  30948. msgstr ""
  30949. #. type: deftypevr
  30950. #: guix-git/doc/guix.texi:20681
  30951. 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."
  30952. msgstr ""
  30953. #. type: deftypevr
  30954. #: guix-git/doc/guix.texi:20685
  30955. #, no-wrap
  30956. msgid "{@code{cups-configuration} parameter} environment-variables environment-variables"
  30957. msgstr ""
  30958. #. type: deftypevr
  30959. #: guix-git/doc/guix.texi:20688
  30960. msgid "Passes the specified environment variable(s) to child processes; a list of strings."
  30961. msgstr ""
  30962. #. type: deftypevr
  30963. #: guix-git/doc/guix.texi:20692
  30964. #, no-wrap
  30965. msgid "{@code{cups-configuration} parameter} policy-configuration-list policies"
  30966. msgstr ""
  30967. #. type: deftypevr
  30968. #: guix-git/doc/guix.texi:20694
  30969. msgid "Specifies named access control policies."
  30970. msgstr ""
  30971. #. type: deftypevr
  30972. #: guix-git/doc/guix.texi:20696
  30973. msgid "Available @code{policy-configuration} fields are:"
  30974. msgstr ""
  30975. #. type: deftypevr
  30976. #: guix-git/doc/guix.texi:20697
  30977. #, no-wrap
  30978. msgid "{@code{policy-configuration} parameter} string name"
  30979. msgstr ""
  30980. #. type: deftypevr
  30981. #: guix-git/doc/guix.texi:20699
  30982. msgid "Name of the policy."
  30983. msgstr ""
  30984. #. type: deftypevr
  30985. #: guix-git/doc/guix.texi:20701
  30986. #, no-wrap
  30987. msgid "{@code{policy-configuration} parameter} string job-private-access"
  30988. msgstr ""
  30989. #. type: deftypevr
  30990. #: guix-git/doc/guix.texi:20711
  30991. msgid "Specifies an access list for a job's private values. @code{@@ACL} maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. @code{@@OWNER} maps to the job's owner. @code{@@SYSTEM} maps to the groups listed for the @code{system-group} field of the @code{files-configuration}, which is reified into the @code{cups-files.conf(5)} file. Other possible elements of the access list include specific user names, and @code{@@@var{group}} to indicate members of a specific group. The access list may also be simply @code{all} or @code{default}."
  30992. msgstr ""
  30993. #. type: deftypevr
  30994. #: guix-git/doc/guix.texi:20713 guix-git/doc/guix.texi:20735
  30995. msgid "Defaults to @samp{\"@@OWNER @@SYSTEM\"}."
  30996. msgstr ""
  30997. #. type: deftypevr
  30998. #: guix-git/doc/guix.texi:20715
  30999. #, no-wrap
  31000. msgid "{@code{policy-configuration} parameter} string job-private-values"
  31001. msgstr ""
  31002. #. type: deftypevr
  31003. #: guix-git/doc/guix.texi:20718 guix-git/doc/guix.texi:20740
  31004. msgid "Specifies the list of job values to make private, or @code{all}, @code{default}, or @code{none}."
  31005. msgstr ""
  31006. #. type: deftypevr
  31007. #: guix-git/doc/guix.texi:20721
  31008. msgid "Defaults to @samp{\"job-name job-originating-host-name job-originating-user-name phone\"}."
  31009. msgstr ""
  31010. #. type: deftypevr
  31011. #: guix-git/doc/guix.texi:20723
  31012. #, no-wrap
  31013. msgid "{@code{policy-configuration} parameter} string subscription-private-access"
  31014. msgstr ""
  31015. #. type: deftypevr
  31016. #: guix-git/doc/guix.texi:20733
  31017. msgid "Specifies an access list for a subscription's private values. @code{@@ACL} maps to the printer's requesting-user-name-allowed or requesting-user-name-denied values. @code{@@OWNER} maps to the job's owner. @code{@@SYSTEM} maps to the groups listed for the @code{system-group} field of the @code{files-configuration}, which is reified into the @code{cups-files.conf(5)} file. Other possible elements of the access list include specific user names, and @code{@@@var{group}} to indicate members of a specific group. The access list may also be simply @code{all} or @code{default}."
  31018. msgstr ""
  31019. #. type: deftypevr
  31020. #: guix-git/doc/guix.texi:20737
  31021. #, no-wrap
  31022. msgid "{@code{policy-configuration} parameter} string subscription-private-values"
  31023. msgstr ""
  31024. #. type: deftypevr
  31025. #: guix-git/doc/guix.texi:20743
  31026. msgid "Defaults to @samp{\"notify-events notify-pull-method notify-recipient-uri notify-subscriber-user-name notify-user-data\"}."
  31027. msgstr ""
  31028. #. type: deftypevr
  31029. #: guix-git/doc/guix.texi:20745
  31030. #, no-wrap
  31031. msgid "{@code{policy-configuration} parameter} operation-access-control-list access-controls"
  31032. msgstr ""
  31033. #. type: deftypevr
  31034. #: guix-git/doc/guix.texi:20747
  31035. msgid "Access control by IPP operation."
  31036. msgstr ""
  31037. #. type: deftypevr
  31038. #: guix-git/doc/guix.texi:20752
  31039. #, no-wrap
  31040. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-files"
  31041. msgstr ""
  31042. #. type: deftypevr
  31043. #: guix-git/doc/guix.texi:20757
  31044. 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."
  31045. msgstr ""
  31046. #. type: deftypevr
  31047. #: guix-git/doc/guix.texi:20759
  31048. msgid "Defaults to @samp{86400}."
  31049. msgstr ""
  31050. #. type: deftypevr
  31051. #: guix-git/doc/guix.texi:20761
  31052. #, no-wrap
  31053. msgid "{@code{cups-configuration} parameter} boolean-or-non-negative-integer preserve-job-history"
  31054. msgstr ""
  31055. #. type: deftypevr
  31056. #: guix-git/doc/guix.texi:20766
  31057. 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."
  31058. msgstr ""
  31059. #. type: deftypevr
  31060. #: guix-git/doc/guix.texi:20770
  31061. #, no-wrap
  31062. msgid "{@code{cups-configuration} parameter} non-negative-integer reload-timeout"
  31063. msgstr ""
  31064. #. type: deftypevr
  31065. #: guix-git/doc/guix.texi:20773
  31066. msgid "Specifies the amount of time to wait for job completion before restarting the scheduler."
  31067. msgstr ""
  31068. #. type: deftypevr
  31069. #: guix-git/doc/guix.texi:20777
  31070. #, no-wrap
  31071. msgid "{@code{cups-configuration} parameter} string rip-cache"
  31072. msgstr ""
  31073. #. type: deftypevr
  31074. #: guix-git/doc/guix.texi:20780
  31075. msgid "Specifies the maximum amount of memory to use when converting documents into bitmaps for a printer."
  31076. msgstr ""
  31077. #. type: deftypevr
  31078. #: guix-git/doc/guix.texi:20782
  31079. msgid "Defaults to @samp{\"128m\"}."
  31080. msgstr ""
  31081. #. type: deftypevr
  31082. #: guix-git/doc/guix.texi:20784
  31083. #, no-wrap
  31084. msgid "{@code{cups-configuration} parameter} string server-admin"
  31085. msgstr ""
  31086. #. type: deftypevr
  31087. #: guix-git/doc/guix.texi:20786
  31088. msgid "Specifies the email address of the server administrator."
  31089. msgstr ""
  31090. #. type: deftypevr
  31091. #: guix-git/doc/guix.texi:20788
  31092. msgid "Defaults to @samp{\"root@@localhost.localdomain\"}."
  31093. msgstr ""
  31094. #. type: deftypevr
  31095. #: guix-git/doc/guix.texi:20790
  31096. #, no-wrap
  31097. msgid "{@code{cups-configuration} parameter} host-name-list-or-* server-alias"
  31098. msgstr ""
  31099. #. type: deftypevr
  31100. #: guix-git/doc/guix.texi:20798
  31101. 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{*}."
  31102. msgstr ""
  31103. #. type: deftypevr
  31104. #: guix-git/doc/guix.texi:20800
  31105. msgid "Defaults to @samp{*}."
  31106. msgstr ""
  31107. #. type: deftypevr
  31108. #: guix-git/doc/guix.texi:20802
  31109. #, no-wrap
  31110. msgid "{@code{cups-configuration} parameter} string server-name"
  31111. msgstr ""
  31112. #. type: deftypevr
  31113. #: guix-git/doc/guix.texi:20804
  31114. msgid "Specifies the fully-qualified host name of the server."
  31115. msgstr ""
  31116. #. type: deftypevr
  31117. #: guix-git/doc/guix.texi:20806
  31118. msgid "Defaults to @samp{\"localhost\"}."
  31119. msgstr ""
  31120. #. type: deftypevr
  31121. #: guix-git/doc/guix.texi:20808
  31122. #, no-wrap
  31123. msgid "{@code{cups-configuration} parameter} server-tokens server-tokens"
  31124. msgstr ""
  31125. #. type: deftypevr
  31126. #: guix-git/doc/guix.texi:20816
  31127. 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}."
  31128. msgstr ""
  31129. #. type: deftypevr
  31130. #: guix-git/doc/guix.texi:20818
  31131. msgid "Defaults to @samp{Minimal}."
  31132. msgstr ""
  31133. #. type: deftypevr
  31134. #: guix-git/doc/guix.texi:20820
  31135. #, no-wrap
  31136. msgid "{@code{cups-configuration} parameter} multiline-string-list ssl-listen"
  31137. msgstr ""
  31138. #. type: deftypevr
  31139. #: guix-git/doc/guix.texi:20825
  31140. 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."
  31141. msgstr ""
  31142. #. type: deftypevr
  31143. #: guix-git/doc/guix.texi:20829
  31144. #, no-wrap
  31145. msgid "{@code{cups-configuration} parameter} ssl-options ssl-options"
  31146. msgstr ""
  31147. #. type: deftypevr
  31148. #: guix-git/doc/guix.texi:20839
  31149. 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."
  31150. msgstr ""
  31151. #. type: deftypevr
  31152. #: guix-git/doc/guix.texi:20843
  31153. #, no-wrap
  31154. msgid "{@code{cups-configuration} parameter} boolean strict-conformance?"
  31155. msgstr ""
  31156. #. type: deftypevr
  31157. #: guix-git/doc/guix.texi:20846
  31158. msgid "Specifies whether the scheduler requires clients to strictly adhere to the IPP specifications."
  31159. msgstr ""
  31160. #. type: deftypevr
  31161. #: guix-git/doc/guix.texi:20850
  31162. #, no-wrap
  31163. msgid "{@code{cups-configuration} parameter} non-negative-integer timeout"
  31164. msgstr ""
  31165. #. type: deftypevr
  31166. #: guix-git/doc/guix.texi:20852
  31167. msgid "Specifies the HTTP request timeout, in seconds."
  31168. msgstr ""
  31169. #. type: deftypevr
  31170. #: guix-git/doc/guix.texi:20857
  31171. #, no-wrap
  31172. msgid "{@code{cups-configuration} parameter} boolean web-interface?"
  31173. msgstr ""
  31174. #. type: deftypevr
  31175. #: guix-git/doc/guix.texi:20859
  31176. msgid "Specifies whether the web interface is enabled."
  31177. msgstr ""
  31178. #. type: Plain text
  31179. #: guix-git/doc/guix.texi:20869
  31180. 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}."
  31181. msgstr ""
  31182. #. type: Plain text
  31183. #: guix-git/doc/guix.texi:20871
  31184. msgid "Available @code{opaque-cups-configuration} fields are:"
  31185. msgstr ""
  31186. #. type: deftypevr
  31187. #: guix-git/doc/guix.texi:20872
  31188. #, no-wrap
  31189. msgid "{@code{opaque-cups-configuration} parameter} package cups"
  31190. msgstr ""
  31191. #. type: deftypevr
  31192. #: guix-git/doc/guix.texi:20876
  31193. #, no-wrap
  31194. msgid "{@code{opaque-cups-configuration} parameter} string cupsd.conf"
  31195. msgstr ""
  31196. #. type: deftypevr
  31197. #: guix-git/doc/guix.texi:20878
  31198. msgid "The contents of the @code{cupsd.conf}, as a string."
  31199. msgstr ""
  31200. #. type: deftypevr
  31201. #: guix-git/doc/guix.texi:20880
  31202. #, no-wrap
  31203. msgid "{@code{opaque-cups-configuration} parameter} string cups-files.conf"
  31204. msgstr ""
  31205. #. type: deftypevr
  31206. #: guix-git/doc/guix.texi:20882
  31207. msgid "The contents of the @code{cups-files.conf} file, as a string."
  31208. msgstr ""
  31209. #. type: Plain text
  31210. #: guix-git/doc/guix.texi:20887
  31211. 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:"
  31212. msgstr ""
  31213. #. type: lisp
  31214. #: guix-git/doc/guix.texi:20893
  31215. #, no-wrap
  31216. msgid ""
  31217. "(service cups-service-type\n"
  31218. " (opaque-cups-configuration\n"
  31219. " (cupsd.conf cupsd.conf)\n"
  31220. " (cups-files.conf cups-files.conf)))\n"
  31221. msgstr ""
  31222. #. type: Plain text
  31223. #: guix-git/doc/guix.texi:20904
  31224. 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."
  31225. msgstr ""
  31226. #. type: Plain text
  31227. #: guix-git/doc/guix.texi:20908
  31228. 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:"
  31229. msgstr ""
  31230. #. type: defvr
  31231. #: guix-git/doc/guix.texi:20909
  31232. #, no-wrap
  31233. msgid "{Scheme Variable} %desktop-services"
  31234. msgstr ""
  31235. #. type: defvr
  31236. #: guix-git/doc/guix.texi:20912
  31237. msgid "This is a list of services that builds upon @code{%base-services} and adds or adjusts services for a typical ``desktop'' setup."
  31238. msgstr ""
  31239. #. type: defvr
  31240. #: guix-git/doc/guix.texi:20923
  31241. 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})."
  31242. msgstr ""
  31243. #. type: Plain text
  31244. #: guix-git/doc/guix.texi:20928
  31245. 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}})."
  31246. msgstr ""
  31247. #. type: Plain text
  31248. #: guix-git/doc/guix.texi:20951
  31249. 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."
  31250. msgstr ""
  31251. #. type: Plain text
  31252. #: guix-git/doc/guix.texi:20961
  31253. 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 enable Wayland support in GDM (@pxref{wayland-gdm}). Another solution is 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."
  31254. msgstr ""
  31255. #. type: defvr
  31256. #: guix-git/doc/guix.texi:20962
  31257. #, no-wrap
  31258. msgid "{Scheme Variable} gnome-desktop-service-type"
  31259. msgstr ""
  31260. #. type: defvr
  31261. #: guix-git/doc/guix.texi:20966
  31262. 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)."
  31263. msgstr ""
  31264. #. type: defvr
  31265. #: guix-git/doc/guix.texi:20969
  31266. msgid "This service adds the @code{gnome} package to the system profile, and extends polkit with the actions from @code{gnome-settings-daemon}."
  31267. msgstr ""
  31268. #. type: deftp
  31269. #: guix-git/doc/guix.texi:20971
  31270. #, no-wrap
  31271. msgid "{Data Type} gnome-desktop-configuration"
  31272. msgstr ""
  31273. #. type: deftp
  31274. #: guix-git/doc/guix.texi:20973
  31275. msgid "Configuration record for the GNOME desktop environment."
  31276. msgstr ""
  31277. #. type: item
  31278. #: guix-git/doc/guix.texi:20975
  31279. #, no-wrap
  31280. msgid "@code{gnome} (default: @code{gnome})"
  31281. msgstr "@code{gnome}(默认值:@code{gnome})"
  31282. #. type: table
  31283. #: guix-git/doc/guix.texi:20977
  31284. msgid "The GNOME package to use."
  31285. msgstr ""
  31286. #. type: defvr
  31287. #: guix-git/doc/guix.texi:20980
  31288. #, no-wrap
  31289. msgid "{Scheme Variable} xfce-desktop-service-type"
  31290. msgstr ""
  31291. #. type: defvr
  31292. #: guix-git/doc/guix.texi:20984
  31293. 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)."
  31294. msgstr ""
  31295. #. type: defvr
  31296. #: guix-git/doc/guix.texi:20989
  31297. 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."
  31298. msgstr ""
  31299. #. type: defvr
  31300. #: guix-git/doc/guix.texi:20995
  31301. 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}."
  31302. msgstr ""
  31303. #. type: deftp
  31304. #: guix-git/doc/guix.texi:20997
  31305. #, no-wrap
  31306. msgid "{Data Type} xfce-desktop-configuration"
  31307. msgstr ""
  31308. #. type: deftp
  31309. #: guix-git/doc/guix.texi:20999
  31310. msgid "Configuration record for the Xfce desktop environment."
  31311. msgstr ""
  31312. #. type: item
  31313. #: guix-git/doc/guix.texi:21001
  31314. #, no-wrap
  31315. msgid "@code{xfce} (default: @code{xfce})"
  31316. msgstr "@code{xfce}(默认值:@code{xfce})"
  31317. #. type: table
  31318. #: guix-git/doc/guix.texi:21003
  31319. msgid "The Xfce package to use."
  31320. msgstr ""
  31321. #. type: deffn
  31322. #: guix-git/doc/guix.texi:21006
  31323. #, no-wrap
  31324. msgid "{Scheme Variable} mate-desktop-service-type"
  31325. msgstr ""
  31326. #. type: deffn
  31327. #: guix-git/doc/guix.texi:21010
  31328. 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)."
  31329. msgstr ""
  31330. #. type: deffn
  31331. #: guix-git/doc/guix.texi:21014
  31332. msgid "This service adds the @code{mate} package to the system profile, and extends polkit with the actions from @code{mate-settings-daemon}."
  31333. msgstr ""
  31334. #. type: deftp
  31335. #: guix-git/doc/guix.texi:21016
  31336. #, no-wrap
  31337. msgid "{Data Type} mate-desktop-configuration"
  31338. msgstr ""
  31339. #. type: deftp
  31340. #: guix-git/doc/guix.texi:21018
  31341. msgid "Configuration record for the MATE desktop environment."
  31342. msgstr ""
  31343. #. type: item
  31344. #: guix-git/doc/guix.texi:21020
  31345. #, no-wrap
  31346. msgid "@code{mate} (default: @code{mate})"
  31347. msgstr "@code{mate}(默认值:@code{mate})"
  31348. #. type: table
  31349. #: guix-git/doc/guix.texi:21022
  31350. msgid "The MATE package to use."
  31351. msgstr ""
  31352. #. type: deffn
  31353. #: guix-git/doc/guix.texi:21025
  31354. #, no-wrap
  31355. msgid "{Scheme Variable} lxqt-desktop-service-type"
  31356. msgstr ""
  31357. #. type: deffn
  31358. #: guix-git/doc/guix.texi:21029
  31359. msgid "This is the type of the service that runs the @uref{https://lxqt-project.org, LXQt desktop environment}. Its value is a @code{lxqt-desktop-configuration} object (see below)."
  31360. msgstr ""
  31361. #. type: deffn
  31362. #: guix-git/doc/guix.texi:21032
  31363. msgid "This service adds the @code{lxqt} package to the system profile."
  31364. msgstr ""
  31365. #. type: deftp
  31366. #: guix-git/doc/guix.texi:21034
  31367. #, no-wrap
  31368. msgid "{Data Type} lxqt-desktop-configuration"
  31369. msgstr ""
  31370. #. type: deftp
  31371. #: guix-git/doc/guix.texi:21036
  31372. msgid "Configuration record for the LXQt desktop environment."
  31373. msgstr ""
  31374. #. type: item
  31375. #: guix-git/doc/guix.texi:21038
  31376. #, fuzzy, no-wrap
  31377. msgid "@code{lxqt} (default: @code{lxqt})"
  31378. msgstr "@code{xfce}(默认值:@code{xfce})"
  31379. #. type: table
  31380. #: guix-git/doc/guix.texi:21040
  31381. #, fuzzy
  31382. msgid "The LXQT package to use."
  31383. msgstr "软件包数据类型。"
  31384. #. type: deffn
  31385. #: guix-git/doc/guix.texi:21043
  31386. #, no-wrap
  31387. msgid "{Scheme Variable} enlightenment-desktop-service-type"
  31388. msgstr ""
  31389. #. type: deffn
  31390. #: guix-git/doc/guix.texi:21046
  31391. msgid "Return a service that adds the @code{enlightenment} package to the system profile, and extends dbus with actions from @code{efl}."
  31392. msgstr ""
  31393. #. type: deftp
  31394. #: guix-git/doc/guix.texi:21048
  31395. #, no-wrap
  31396. msgid "{Data Type} enlightenment-desktop-service-configuration"
  31397. msgstr ""
  31398. #. type: item
  31399. #: guix-git/doc/guix.texi:21050
  31400. #, no-wrap
  31401. msgid "@code{enlightenment} (default: @code{enlightenment})"
  31402. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  31403. #. type: table
  31404. #: guix-git/doc/guix.texi:21052
  31405. msgid "The enlightenment package to use."
  31406. msgstr ""
  31407. #. type: Plain text
  31408. #: guix-git/doc/guix.texi:21060
  31409. 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}:"
  31410. msgstr ""
  31411. #. type: lisp
  31412. #: guix-git/doc/guix.texi:21071
  31413. #, no-wrap
  31414. msgid ""
  31415. "(use-modules (gnu))\n"
  31416. "(use-service-modules desktop)\n"
  31417. "(operating-system\n"
  31418. " ...\n"
  31419. " ;; cons* adds items to the list given as its last argument.\n"
  31420. " (services (cons* (service gnome-desktop-service-type)\n"
  31421. " (service xfce-desktop-service)\n"
  31422. " %desktop-services))\n"
  31423. " ...)\n"
  31424. msgstr ""
  31425. #. type: Plain text
  31426. #: guix-git/doc/guix.texi:21075
  31427. msgid "These desktop environments will then be available as options in the graphical login window."
  31428. msgstr ""
  31429. #. type: Plain text
  31430. #: guix-git/doc/guix.texi:21079
  31431. 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."
  31432. msgstr ""
  31433. #. type: deffn
  31434. #: guix-git/doc/guix.texi:21080
  31435. #, no-wrap
  31436. msgid "{Scheme Procedure} dbus-service [#:dbus @var{dbus}] [#:services '()]"
  31437. msgstr ""
  31438. #. type: deffn
  31439. #: guix-git/doc/guix.texi:21083
  31440. msgid "Return a service that runs the ``system bus'', using @var{dbus}, with support for @var{services}."
  31441. msgstr ""
  31442. #. type: deffn
  31443. #: guix-git/doc/guix.texi:21087
  31444. 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."
  31445. msgstr ""
  31446. #. type: deffn
  31447. #: guix-git/doc/guix.texi:21092
  31448. 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)}."
  31449. msgstr ""
  31450. #. type: deffn
  31451. #: guix-git/doc/guix.texi:21094
  31452. #, no-wrap
  31453. msgid "{Scheme Procedure} elogind-service [#:config @var{config}]"
  31454. msgstr ""
  31455. #. type: deffn
  31456. #: guix-git/doc/guix.texi:21100
  31457. 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."
  31458. msgstr ""
  31459. #. type: deffn
  31460. #: guix-git/doc/guix.texi:21104
  31461. 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."
  31462. msgstr ""
  31463. #. type: deffn
  31464. #: guix-git/doc/guix.texi:21109
  31465. 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:"
  31466. msgstr ""
  31467. #. type: item
  31468. #: guix-git/doc/guix.texi:21111
  31469. #, no-wrap
  31470. msgid "kill-user-processes?"
  31471. msgstr ""
  31472. #. type: code{#1}
  31473. #: guix-git/doc/guix.texi:21113 guix-git/doc/guix.texi:21133
  31474. #: guix-git/doc/guix.texi:21135 guix-git/doc/guix.texi:21137
  31475. #: guix-git/doc/guix.texi:21149
  31476. msgid "#f"
  31477. msgstr ""
  31478. #. type: item
  31479. #: guix-git/doc/guix.texi:21113
  31480. #, no-wrap
  31481. msgid "kill-only-users"
  31482. msgstr ""
  31483. #. type: code{#1}
  31484. #: guix-git/doc/guix.texi:21115 guix-git/doc/guix.texi:21155
  31485. msgid "()"
  31486. msgstr ""
  31487. #. type: item
  31488. #: guix-git/doc/guix.texi:21115
  31489. #, no-wrap
  31490. msgid "kill-exclude-users"
  31491. msgstr ""
  31492. #. type: code{#1}
  31493. #: guix-git/doc/guix.texi:21117
  31494. msgid "(\"root\")"
  31495. msgstr ""
  31496. #. type: item
  31497. #: guix-git/doc/guix.texi:21117
  31498. #, no-wrap
  31499. msgid "inhibit-delay-max-seconds"
  31500. msgstr ""
  31501. #. type: code{#1}
  31502. #: guix-git/doc/guix.texi:21119
  31503. msgid "5"
  31504. msgstr ""
  31505. #. type: item
  31506. #: guix-git/doc/guix.texi:21119
  31507. #, no-wrap
  31508. msgid "handle-power-key"
  31509. msgstr ""
  31510. #. type: code{#1}
  31511. #: guix-git/doc/guix.texi:21121
  31512. msgid "poweroff"
  31513. msgstr ""
  31514. #. type: item
  31515. #: guix-git/doc/guix.texi:21121
  31516. #, no-wrap
  31517. msgid "handle-suspend-key"
  31518. msgstr ""
  31519. #. type: code{#1}
  31520. #: guix-git/doc/guix.texi:21123 guix-git/doc/guix.texi:21127
  31521. msgid "suspend"
  31522. msgstr ""
  31523. #. type: item
  31524. #: guix-git/doc/guix.texi:21123
  31525. #, no-wrap
  31526. msgid "handle-hibernate-key"
  31527. msgstr ""
  31528. #. type: code{#1}
  31529. #: guix-git/doc/guix.texi:21125
  31530. msgid "hibernate"
  31531. msgstr ""
  31532. #. type: item
  31533. #: guix-git/doc/guix.texi:21125
  31534. #, no-wrap
  31535. msgid "handle-lid-switch"
  31536. msgstr ""
  31537. #. type: item
  31538. #: guix-git/doc/guix.texi:21127
  31539. #, no-wrap
  31540. msgid "handle-lid-switch-docked"
  31541. msgstr ""
  31542. #. type: code{#1}
  31543. #: guix-git/doc/guix.texi:21129 guix-git/doc/guix.texi:21131
  31544. #: guix-git/doc/guix.texi:21143
  31545. msgid "ignore"
  31546. msgstr ""
  31547. #. type: item
  31548. #: guix-git/doc/guix.texi:21129
  31549. #, no-wrap
  31550. msgid "handle-lid-switch-external-power"
  31551. msgstr ""
  31552. #. type: item
  31553. #: guix-git/doc/guix.texi:21131
  31554. #, no-wrap
  31555. msgid "power-key-ignore-inhibited?"
  31556. msgstr ""
  31557. #. type: item
  31558. #: guix-git/doc/guix.texi:21133
  31559. #, no-wrap
  31560. msgid "suspend-key-ignore-inhibited?"
  31561. msgstr ""
  31562. #. type: item
  31563. #: guix-git/doc/guix.texi:21135
  31564. #, no-wrap
  31565. msgid "hibernate-key-ignore-inhibited?"
  31566. msgstr ""
  31567. #. type: item
  31568. #: guix-git/doc/guix.texi:21137
  31569. #, no-wrap
  31570. msgid "lid-switch-ignore-inhibited?"
  31571. msgstr ""
  31572. #. type: code{#1}
  31573. #: guix-git/doc/guix.texi:21139 guix-git/doc/guix.texi:21151
  31574. msgid "#t"
  31575. msgstr ""
  31576. #. type: item
  31577. #: guix-git/doc/guix.texi:21139
  31578. #, no-wrap
  31579. msgid "holdoff-timeout-seconds"
  31580. msgstr ""
  31581. #. type: code{#1}
  31582. #: guix-git/doc/guix.texi:21141
  31583. msgid "30"
  31584. msgstr ""
  31585. #. type: item
  31586. #: guix-git/doc/guix.texi:21141
  31587. #, no-wrap
  31588. msgid "idle-action"
  31589. msgstr ""
  31590. #. type: item
  31591. #: guix-git/doc/guix.texi:21143
  31592. #, no-wrap
  31593. msgid "idle-action-seconds"
  31594. msgstr ""
  31595. #. type: code{#1}
  31596. #: guix-git/doc/guix.texi:21145
  31597. msgid "(* 30 60)"
  31598. msgstr ""
  31599. #. type: item
  31600. #: guix-git/doc/guix.texi:21145
  31601. #, no-wrap
  31602. msgid "runtime-directory-size-percent"
  31603. msgstr ""
  31604. #. type: code{#1}
  31605. #: guix-git/doc/guix.texi:21147
  31606. msgid "10"
  31607. msgstr ""
  31608. #. type: item
  31609. #: guix-git/doc/guix.texi:21147
  31610. #, no-wrap
  31611. msgid "runtime-directory-size"
  31612. msgstr ""
  31613. #. type: item
  31614. #: guix-git/doc/guix.texi:21149
  31615. #, no-wrap
  31616. msgid "remove-ipc?"
  31617. msgstr ""
  31618. #. type: item
  31619. #: guix-git/doc/guix.texi:21151
  31620. #, no-wrap
  31621. msgid "suspend-state"
  31622. msgstr ""
  31623. #. type: code{#1}
  31624. #: guix-git/doc/guix.texi:21153
  31625. msgid "(\"mem\" \"standby\" \"freeze\")"
  31626. msgstr ""
  31627. #. type: item
  31628. #: guix-git/doc/guix.texi:21153
  31629. #, no-wrap
  31630. msgid "suspend-mode"
  31631. msgstr ""
  31632. #. type: item
  31633. #: guix-git/doc/guix.texi:21155
  31634. #, no-wrap
  31635. msgid "hibernate-state"
  31636. msgstr ""
  31637. #. type: code{#1}
  31638. #: guix-git/doc/guix.texi:21157 guix-git/doc/guix.texi:21161
  31639. msgid "(\"disk\")"
  31640. msgstr ""
  31641. #. type: item
  31642. #: guix-git/doc/guix.texi:21157
  31643. #, no-wrap
  31644. msgid "hibernate-mode"
  31645. msgstr ""
  31646. #. type: code{#1}
  31647. #: guix-git/doc/guix.texi:21159
  31648. msgid "(\"platform\" \"shutdown\")"
  31649. msgstr ""
  31650. #. type: item
  31651. #: guix-git/doc/guix.texi:21159
  31652. #, no-wrap
  31653. msgid "hybrid-sleep-state"
  31654. msgstr ""
  31655. #. type: item
  31656. #: guix-git/doc/guix.texi:21161
  31657. #, no-wrap
  31658. msgid "hybrid-sleep-mode"
  31659. msgstr ""
  31660. #. type: code{#1}
  31661. #: guix-git/doc/guix.texi:21163
  31662. msgid "(\"suspend\" \"platform\" \"shutdown\")"
  31663. msgstr ""
  31664. #. type: deffn
  31665. #: guix-git/doc/guix.texi:21166
  31666. #, no-wrap
  31667. msgid "{Scheme Procedure} accountsservice-service @"
  31668. msgstr ""
  31669. #. type: deffn
  31670. #: guix-git/doc/guix.texi:21174
  31671. 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."
  31672. msgstr ""
  31673. #. type: deffn
  31674. #: guix-git/doc/guix.texi:21177
  31675. msgid "The @var{accountsservice} keyword argument is the @code{accountsservice} package to expose as a service."
  31676. msgstr ""
  31677. #. type: deffn
  31678. #: guix-git/doc/guix.texi:21179
  31679. #, no-wrap
  31680. msgid "{Scheme Procedure} polkit-service @"
  31681. msgstr ""
  31682. #. type: deffn
  31683. #: guix-git/doc/guix.texi:21188
  31684. 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."
  31685. msgstr ""
  31686. #. type: defvr
  31687. #: guix-git/doc/guix.texi:21190
  31688. #, no-wrap
  31689. msgid "{Scheme Variable} polkit-wheel-service"
  31690. msgstr ""
  31691. #. type: defvr
  31692. #: guix-git/doc/guix.texi:21195
  31693. 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}."
  31694. msgstr ""
  31695. #. type: defvr
  31696. #: guix-git/doc/guix.texi:21197
  31697. #, no-wrap
  31698. msgid "{Scheme Variable} upower-service-type"
  31699. msgstr ""
  31700. #. type: defvr
  31701. #: guix-git/doc/guix.texi:21201
  31702. 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."
  31703. msgstr ""
  31704. #. type: defvr
  31705. #: guix-git/doc/guix.texi:21204
  31706. msgid "It implements the @code{org.freedesktop.UPower} D-Bus interface, and is notably used by GNOME."
  31707. msgstr ""
  31708. #. type: deftp
  31709. #: guix-git/doc/guix.texi:21206
  31710. #, no-wrap
  31711. msgid "{Data Type} upower-configuration"
  31712. msgstr ""
  31713. #. type: deftp
  31714. #: guix-git/doc/guix.texi:21208
  31715. msgid "Data type representation the configuration for UPower."
  31716. msgstr ""
  31717. #. type: item
  31718. #: guix-git/doc/guix.texi:21211
  31719. #, no-wrap
  31720. msgid "@code{upower} (default: @var{upower})"
  31721. msgstr ""
  31722. #. type: table
  31723. #: guix-git/doc/guix.texi:21213
  31724. msgid "Package to use for @code{upower}."
  31725. msgstr ""
  31726. #. type: item
  31727. #: guix-git/doc/guix.texi:21214
  31728. #, no-wrap
  31729. msgid "@code{watts-up-pro?} (default: @code{#f})"
  31730. msgstr ""
  31731. #. type: table
  31732. #: guix-git/doc/guix.texi:21216
  31733. msgid "Enable the Watts Up Pro device."
  31734. msgstr ""
  31735. #. type: item
  31736. #: guix-git/doc/guix.texi:21217
  31737. #, no-wrap
  31738. msgid "@code{poll-batteries?} (default: @code{#t})"
  31739. msgstr ""
  31740. #. type: table
  31741. #: guix-git/doc/guix.texi:21219
  31742. msgid "Enable polling the kernel for battery level changes."
  31743. msgstr ""
  31744. #. type: item
  31745. #: guix-git/doc/guix.texi:21220
  31746. #, no-wrap
  31747. msgid "@code{ignore-lid?} (default: @code{#f})"
  31748. msgstr ""
  31749. #. type: table
  31750. #: guix-git/doc/guix.texi:21222
  31751. msgid "Ignore the lid state, this can be useful if it's incorrect on a device."
  31752. msgstr ""
  31753. #. type: item
  31754. #: guix-git/doc/guix.texi:21223
  31755. #, no-wrap
  31756. msgid "@code{use-percentage-for-policy?} (default: @code{#f})"
  31757. msgstr ""
  31758. #. type: table
  31759. #: guix-git/doc/guix.texi:21226
  31760. 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."
  31761. msgstr ""
  31762. #. type: item
  31763. #: guix-git/doc/guix.texi:21227
  31764. #, no-wrap
  31765. msgid "@code{percentage-low} (default: @code{10})"
  31766. msgstr ""
  31767. #. type: table
  31768. #: guix-git/doc/guix.texi:21230
  31769. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered low."
  31770. msgstr ""
  31771. #. type: item
  31772. #: guix-git/doc/guix.texi:21231
  31773. #, no-wrap
  31774. msgid "@code{percentage-critical} (default: @code{3})"
  31775. msgstr ""
  31776. #. type: table
  31777. #: guix-git/doc/guix.texi:21234
  31778. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which the battery is considered critical."
  31779. msgstr ""
  31780. #. type: item
  31781. #: guix-git/doc/guix.texi:21235
  31782. #, no-wrap
  31783. msgid "@code{percentage-action} (default: @code{2})"
  31784. msgstr ""
  31785. #. type: table
  31786. #: guix-git/doc/guix.texi:21238
  31787. msgid "When @code{use-percentage-for-policy?} is @code{#t}, this sets the percentage at which action will be taken."
  31788. msgstr ""
  31789. #. type: item
  31790. #: guix-git/doc/guix.texi:21239
  31791. #, no-wrap
  31792. msgid "@code{time-low} (default: @code{1200})"
  31793. msgstr ""
  31794. #. type: table
  31795. #: guix-git/doc/guix.texi:21242
  31796. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered low."
  31797. msgstr ""
  31798. #. type: item
  31799. #: guix-git/doc/guix.texi:21243
  31800. #, no-wrap
  31801. msgid "@code{time-critical} (default: @code{300})"
  31802. msgstr ""
  31803. #. type: table
  31804. #: guix-git/doc/guix.texi:21246
  31805. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which the battery is considered critical."
  31806. msgstr ""
  31807. #. type: item
  31808. #: guix-git/doc/guix.texi:21247
  31809. #, no-wrap
  31810. msgid "@code{time-action} (default: @code{120})"
  31811. msgstr ""
  31812. #. type: table
  31813. #: guix-git/doc/guix.texi:21250
  31814. msgid "When @code{use-time-for-policy?} is @code{#f}, this sets the time remaining in seconds at which action will be taken."
  31815. msgstr ""
  31816. #. type: item
  31817. #: guix-git/doc/guix.texi:21251
  31818. #, no-wrap
  31819. msgid "@code{critical-power-action} (default: @code{'hybrid-sleep})"
  31820. msgstr ""
  31821. #. type: table
  31822. #: guix-git/doc/guix.texi:21254
  31823. msgid "The action taken when @code{percentage-action} or @code{time-action} is reached (depending on the configuration of @code{use-percentage-for-policy?})."
  31824. msgstr ""
  31825. #. type: table
  31826. #: guix-git/doc/guix.texi:21256
  31827. msgid "Possible values are:"
  31828. msgstr ""
  31829. #. type: code{#1}
  31830. #: guix-git/doc/guix.texi:21260
  31831. msgid "'power-off"
  31832. msgstr ""
  31833. #. type: code{#1}
  31834. #: guix-git/doc/guix.texi:21263
  31835. msgid "'hibernate"
  31836. msgstr ""
  31837. #. type: itemize
  31838. #: guix-git/doc/guix.texi:21266
  31839. msgid "@code{'hybrid-sleep}."
  31840. msgstr ""
  31841. #. type: deffn
  31842. #: guix-git/doc/guix.texi:21271
  31843. #, no-wrap
  31844. msgid "{Scheme Procedure} udisks-service [#:udisks @var{udisks}]"
  31845. msgstr ""
  31846. #. type: deffn
  31847. #: guix-git/doc/guix.texi:21281
  31848. 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."
  31849. msgstr ""
  31850. #. type: deffn
  31851. #: guix-git/doc/guix.texi:21283
  31852. #, no-wrap
  31853. msgid "{Scheme Variable} colord-service-type"
  31854. msgstr ""
  31855. #. type: deffn
  31856. #: guix-git/doc/guix.texi:21290
  31857. 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."
  31858. msgstr ""
  31859. #. type: cindex
  31860. #: guix-git/doc/guix.texi:21292
  31861. #, no-wrap
  31862. msgid "scanner access"
  31863. msgstr ""
  31864. #. type: defvr
  31865. #: guix-git/doc/guix.texi:21293
  31866. #, no-wrap
  31867. msgid "{Scheme Variable} sane-service-type"
  31868. msgstr ""
  31869. #. type: defvr
  31870. #: guix-git/doc/guix.texi:21299
  31871. 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."
  31872. msgstr ""
  31873. #. type: defvr
  31874. #: guix-git/doc/guix.texi:21301
  31875. #, no-wrap
  31876. msgid "{Scheme Variable} sane-backends-minimal"
  31877. msgstr ""
  31878. #. type: defvr
  31879. #: guix-git/doc/guix.texi:21304
  31880. msgid "The default package which the @code{sane-service-type} installs. It supports many recent scanners."
  31881. msgstr ""
  31882. #. type: defvr
  31883. #: guix-git/doc/guix.texi:21306
  31884. #, no-wrap
  31885. msgid "{Scheme Variable} sane-backends"
  31886. msgstr ""
  31887. #. type: defvr
  31888. #: guix-git/doc/guix.texi:21313
  31889. 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:"
  31890. msgstr ""
  31891. #. type: lisp
  31892. #: guix-git/doc/guix.texi:21322
  31893. #, no-wrap
  31894. msgid ""
  31895. "(use-modules (gnu))\n"
  31896. "(use-service-modules\n"
  31897. " @dots{}\n"
  31898. " desktop)\n"
  31899. "(use-package-modules\n"
  31900. " @dots{}\n"
  31901. " scanner)\n"
  31902. "\n"
  31903. msgstr ""
  31904. #. type: lisp
  31905. #: guix-git/doc/guix.texi:21327
  31906. #, no-wrap
  31907. msgid ""
  31908. "(define %my-desktop-services\n"
  31909. " ;; List of desktop services that supports a broader range of scanners.\n"
  31910. " (modify-services %desktop-services\n"
  31911. " (sane-service-type _ => sane-backends)))\n"
  31912. "\n"
  31913. msgstr ""
  31914. #. type: lisp
  31915. #: guix-git/doc/guix.texi:21331
  31916. #, no-wrap
  31917. msgid ""
  31918. "(operating-system\n"
  31919. " @dots{}\n"
  31920. " (services %my-desktop-services))\n"
  31921. msgstr ""
  31922. #. type: deffn
  31923. #: guix-git/doc/guix.texi:21334
  31924. #, no-wrap
  31925. msgid "{Scheme Procedure} geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()]"
  31926. msgstr ""
  31927. #. type: deffn
  31928. #: guix-git/doc/guix.texi:21343
  31929. 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."
  31930. msgstr ""
  31931. #. type: defvr
  31932. #: guix-git/doc/guix.texi:21345
  31933. #, no-wrap
  31934. msgid "{Scheme Variable} %standard-geoclue-applications"
  31935. msgstr ""
  31936. #. type: defvr
  31937. #: guix-git/doc/guix.texi:21352
  31938. 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."
  31939. msgstr ""
  31940. #. type: deffn
  31941. #: guix-git/doc/guix.texi:21354
  31942. #, no-wrap
  31943. msgid "{Scheme Procedure} geoclue-service [#:colord @var{colord}] @"
  31944. msgstr ""
  31945. #. type: deffn
  31946. #: guix-git/doc/guix.texi:21367
  31947. 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."
  31948. msgstr ""
  31949. #. type: deffn
  31950. #: guix-git/doc/guix.texi:21369
  31951. #, no-wrap
  31952. msgid "{Scheme Procedure} bluetooth-service [#:bluez @var{bluez}] @"
  31953. msgstr ""
  31954. #. type: deffn
  31955. #: guix-git/doc/guix.texi:21376
  31956. 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."
  31957. msgstr ""
  31958. #. type: deffn
  31959. #: guix-git/doc/guix.texi:21378
  31960. msgid "Users need to be in the @code{lp} group to access the D-Bus service."
  31961. msgstr ""
  31962. #. type: defvr
  31963. #: guix-git/doc/guix.texi:21380
  31964. #, no-wrap
  31965. msgid "{Scheme Variable} gnome-keyring-service-type"
  31966. msgstr ""
  31967. #. type: defvr
  31968. #: guix-git/doc/guix.texi:21384
  31969. 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)."
  31970. msgstr ""
  31971. #. type: defvr
  31972. #: guix-git/doc/guix.texi:21388
  31973. 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."
  31974. msgstr ""
  31975. #. type: deftp
  31976. #: guix-git/doc/guix.texi:21390
  31977. #, no-wrap
  31978. msgid "{Data Type} gnome-keyring-configuration"
  31979. msgstr ""
  31980. #. type: deftp
  31981. #: guix-git/doc/guix.texi:21392
  31982. msgid "Configuration record for the GNOME Keyring service."
  31983. msgstr ""
  31984. #. type: item
  31985. #: guix-git/doc/guix.texi:21394
  31986. #, fuzzy, no-wrap
  31987. msgid "@code{keyring} (default: @code{gnome-keyring})"
  31988. msgstr "@code{gnome}(默认值:@code{gnome})"
  31989. #. type: table
  31990. #: guix-git/doc/guix.texi:21396
  31991. msgid "The GNOME keyring package to use."
  31992. msgstr ""
  31993. #. type: code{#1}
  31994. #: guix-git/doc/guix.texi:21397
  31995. #, fuzzy, no-wrap
  31996. msgid "pam-services"
  31997. msgstr "基础服务"
  31998. #. type: table
  31999. #: guix-git/doc/guix.texi:21402
  32000. 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}."
  32001. msgstr ""
  32002. #. type: table
  32003. #: guix-git/doc/guix.texi:21408
  32004. 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."
  32005. msgstr ""
  32006. #. type: table
  32007. #: guix-git/doc/guix.texi:21411
  32008. msgid "By default, this field contains ``gdm-password'' with the value @code{login} and ``passwd'' is with the value @code{passwd}."
  32009. msgstr ""
  32010. #. type: cindex
  32011. #: guix-git/doc/guix.texi:21418
  32012. #, no-wrap
  32013. msgid "sound support"
  32014. msgstr ""
  32015. #. type: cindex
  32016. #: guix-git/doc/guix.texi:21419
  32017. #, no-wrap
  32018. msgid "ALSA"
  32019. msgstr ""
  32020. #. type: cindex
  32021. #: guix-git/doc/guix.texi:21420
  32022. #, no-wrap
  32023. msgid "PulseAudio, sound support"
  32024. msgstr ""
  32025. #. type: Plain text
  32026. #: guix-git/doc/guix.texi:21425
  32027. 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."
  32028. msgstr ""
  32029. #. type: deffn
  32030. #: guix-git/doc/guix.texi:21426
  32031. #, no-wrap
  32032. msgid "{Scheme Variable} alsa-service-type"
  32033. msgstr ""
  32034. #. type: deffn
  32035. #: guix-git/doc/guix.texi:21431
  32036. 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:"
  32037. msgstr ""
  32038. #. type: lisp
  32039. #: guix-git/doc/guix.texi:21434
  32040. #, no-wrap
  32041. msgid "(service alsa-service-type)\n"
  32042. msgstr ""
  32043. #. type: deffn
  32044. #: guix-git/doc/guix.texi:21437
  32045. msgid "See below for details about @code{alsa-configuration}."
  32046. msgstr ""
  32047. #. type: deftp
  32048. #: guix-git/doc/guix.texi:21439
  32049. #, no-wrap
  32050. msgid "{Data Type} alsa-configuration"
  32051. msgstr ""
  32052. #. type: deftp
  32053. #: guix-git/doc/guix.texi:21441
  32054. msgid "Data type representing the configuration for @code{alsa-service}."
  32055. msgstr ""
  32056. #. type: item
  32057. #: guix-git/doc/guix.texi:21443
  32058. #, no-wrap
  32059. msgid "@code{alsa-plugins} (default: @var{alsa-plugins})"
  32060. msgstr ""
  32061. #. type: table
  32062. #: guix-git/doc/guix.texi:21445
  32063. msgid "@code{alsa-plugins} package to use."
  32064. msgstr ""
  32065. #. type: item
  32066. #: guix-git/doc/guix.texi:21446
  32067. #, no-wrap
  32068. msgid "@code{pulseaudio?} (default: @var{#t})"
  32069. msgstr ""
  32070. #. type: table
  32071. #: guix-git/doc/guix.texi:21449
  32072. msgid "Whether ALSA applications should transparently be made to use the @uref{https://www.pulseaudio.org/, PulseAudio} sound server."
  32073. msgstr ""
  32074. #. type: table
  32075. #: guix-git/doc/guix.texi:21453
  32076. 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."
  32077. msgstr ""
  32078. #. type: item
  32079. #: guix-git/doc/guix.texi:21454
  32080. #, no-wrap
  32081. msgid "@code{extra-options} (default: @var{\"\"})"
  32082. msgstr ""
  32083. #. type: table
  32084. #: guix-git/doc/guix.texi:21456
  32085. msgid "String to append to the @file{/etc/asound.conf} file."
  32086. msgstr ""
  32087. #. type: Plain text
  32088. #: guix-git/doc/guix.texi:21462
  32089. msgid "Individual users who want to override the system configuration of ALSA can do it with the @file{~/.asoundrc} file:"
  32090. msgstr ""
  32091. #. type: example
  32092. #: guix-git/doc/guix.texi:21468
  32093. #, no-wrap
  32094. msgid ""
  32095. "# In guix, we have to specify the absolute path for plugins.\n"
  32096. "pcm_type.jack @{\n"
  32097. " lib \"/home/alice/.guix-profile/lib/alsa-lib/libasound_module_pcm_jack.so\"\n"
  32098. "@}\n"
  32099. "\n"
  32100. msgstr ""
  32101. #. type: example
  32102. #: guix-git/doc/guix.texi:21477
  32103. #, no-wrap
  32104. msgid ""
  32105. "# Routing ALSA to jack:\n"
  32106. "# <http://jackaudio.org/faq/routing_alsa.html>.\n"
  32107. "pcm.rawjack @{\n"
  32108. " type jack\n"
  32109. " playback_ports @{\n"
  32110. " 0 system:playback_1\n"
  32111. " 1 system:playback_2\n"
  32112. " @}\n"
  32113. "\n"
  32114. msgstr ""
  32115. #. type: example
  32116. #: guix-git/doc/guix.texi:21483
  32117. #, no-wrap
  32118. msgid ""
  32119. " capture_ports @{\n"
  32120. " 0 system:capture_1\n"
  32121. " 1 system:capture_2\n"
  32122. " @}\n"
  32123. "@}\n"
  32124. "\n"
  32125. msgstr ""
  32126. #. type: example
  32127. #: guix-git/doc/guix.texi:21490
  32128. #, no-wrap
  32129. msgid ""
  32130. "pcm.!default @{\n"
  32131. " type plug\n"
  32132. " slave @{\n"
  32133. " pcm \"rawjack\"\n"
  32134. " @}\n"
  32135. "@}\n"
  32136. msgstr ""
  32137. #. type: Plain text
  32138. #: guix-git/doc/guix.texi:21494
  32139. msgid "See @uref{https://www.alsa-project.org/main/index.php/Asoundrc} for the details."
  32140. msgstr ""
  32141. #. type: deffn
  32142. #: guix-git/doc/guix.texi:21495
  32143. #, no-wrap
  32144. msgid "{Scheme Variable} pulseaudio-service-type"
  32145. msgstr ""
  32146. #. type: deffn
  32147. #: guix-git/doc/guix.texi:21499
  32148. 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."
  32149. msgstr ""
  32150. #. type: quotation
  32151. #: guix-git/doc/guix.texi:21505
  32152. 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}."
  32153. msgstr ""
  32154. #. type: quotation
  32155. #: guix-git/doc/guix.texi:21513
  32156. 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."
  32157. msgstr ""
  32158. #. type: deftp
  32159. #: guix-git/doc/guix.texi:21516
  32160. #, fuzzy, no-wrap
  32161. msgid "{Data Type} pulseaudio-configuration"
  32162. msgstr "{数据类型} build-machine"
  32163. #. type: deftp
  32164. #: guix-git/doc/guix.texi:21518
  32165. msgid "Data type representing the configuration for @code{pulseaudio-service}."
  32166. msgstr ""
  32167. #. type: item
  32168. #: guix-git/doc/guix.texi:21520
  32169. #, fuzzy, no-wrap
  32170. msgid "@code{client-conf} (default: @code{'()})"
  32171. msgstr "@code{includes}(默认值:@code{'()})"
  32172. #. type: table
  32173. #: guix-git/doc/guix.texi:21525
  32174. msgid "List of settings to set in @file{client.conf}. Accepts a list of strings or 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."
  32175. msgstr ""
  32176. #. type: item
  32177. #: guix-git/doc/guix.texi:21526
  32178. #, fuzzy, no-wrap
  32179. msgid "@code{daemon-conf} (default: @code{'((flat-volumes . no))})"
  32180. msgstr "@code{mate}(默认值:@code{mate})"
  32181. #. type: table
  32182. #: guix-git/doc/guix.texi:21529
  32183. msgid "List of settings to set in @file{daemon.conf}, formatted just like @var{client-conf}."
  32184. msgstr ""
  32185. #. type: item
  32186. #: guix-git/doc/guix.texi:21530
  32187. #, no-wrap
  32188. msgid "@code{script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/default.pa\")})"
  32189. msgstr ""
  32190. #. type: table
  32191. #: guix-git/doc/guix.texi:21535
  32192. msgid "Script file to use as @file{default.pa}. In case the @code{extra-script-files} field below is used, an @code{.include} directive pointing to @file{/etc/pulse/default.pa.d} is appended to the provided script."
  32193. msgstr ""
  32194. #. type: item
  32195. #: guix-git/doc/guix.texi:21536
  32196. #, fuzzy, no-wrap
  32197. msgid "@code{extra-script-files} (default: @code{'())})"
  32198. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32199. #. type: table
  32200. #: guix-git/doc/guix.texi:21543
  32201. msgid "A list of file-like objects defining extra PulseAudio scripts to run at the initialization of the @command{pulseaudio} daemon, after the main @code{script-file}. The scripts are deployed to the @file{/etc/pulse/default.pa.d} directory; they should have the @samp{.pa} file name extension. For a reference of the available commands, refer to @command{man pulse-cli-syntax}."
  32202. msgstr ""
  32203. #. type: item
  32204. #: guix-git/doc/guix.texi:21544
  32205. #, no-wrap
  32206. msgid "@code{system-script-file} (default: @code{(file-append pulseaudio \"/etc/pulse/system.pa\")})"
  32207. msgstr ""
  32208. #. type: table
  32209. #: guix-git/doc/guix.texi:21546
  32210. msgid "Script file to use as @file{system.pa}."
  32211. msgstr ""
  32212. #. type: deftp
  32213. #: guix-git/doc/guix.texi:21551
  32214. msgid "The example below sets the default PulseAudio card profile, the default sink and the default source to use for a old SoundBlaster Audigy sound card:"
  32215. msgstr ""
  32216. #. type: lisp
  32217. #: guix-git/doc/guix.texi:21560
  32218. #, no-wrap
  32219. msgid ""
  32220. "(pulseaudio-configuration\n"
  32221. " (extra-script-files\n"
  32222. " (list (plain-file \"audigy.pa\"\n"
  32223. " (string-append \"\\\n"
  32224. "set-card-profile alsa_card.pci-0000_01_01.0 \\\n"
  32225. " output:analog-surround-40+input:analog-mono\n"
  32226. "set-default-source alsa_input.pci-0000_01_01.0.analog-mono\n"
  32227. "set-default-sink alsa_output.pci-0000_01_01.0.analog-surround-40\\n\")))))\n"
  32228. msgstr ""
  32229. #. type: deftp
  32230. #: guix-git/doc/guix.texi:21568
  32231. msgid "Note that @code{pulseaudio-service-type} is part of @code{%desktop-services}; if your operating system declaration was derived from one of the desktop templates, you'll want to adjust the above example to modify the existing @code{pulseaudio-service-type} via @code{modify-services} (@pxref{Service Reference, @code{modify-services}}), instead of defining a new one."
  32232. msgstr ""
  32233. #. type: deffn
  32234. #: guix-git/doc/guix.texi:21571
  32235. #, no-wrap
  32236. msgid "{Scheme Variable} ladspa-service-type"
  32237. msgstr ""
  32238. #. type: deffn
  32239. #: guix-git/doc/guix.texi:21574
  32240. msgid "This service sets the @var{LADSPA_PATH} variable, so that programs, which respect it, e.g. PulseAudio, can load LADSPA plugins."
  32241. msgstr ""
  32242. #. type: deffn
  32243. #: guix-git/doc/guix.texi:21577
  32244. msgid "The following example will setup the service to enable modules from the @code{swh-plugins} package:"
  32245. msgstr ""
  32246. #. type: lisp
  32247. #: guix-git/doc/guix.texi:21581
  32248. #, no-wrap
  32249. msgid ""
  32250. "(service ladspa-service-type\n"
  32251. " (ladspa-configuration (plugins (list swh-plugins))))\n"
  32252. msgstr ""
  32253. #. type: deffn
  32254. #: guix-git/doc/guix.texi:21585
  32255. msgid "See @uref{http://plugin.org.uk/ladspa-swh/docs/ladspa-swh.html} for the details."
  32256. msgstr ""
  32257. #. type: cindex
  32258. #: guix-git/doc/guix.texi:21592
  32259. #, no-wrap
  32260. msgid "SQL"
  32261. msgstr ""
  32262. #. type: Plain text
  32263. #: guix-git/doc/guix.texi:21594
  32264. msgid "The @code{(gnu services databases)} module provides the following services."
  32265. msgstr ""
  32266. #. type: subsubheading
  32267. #: guix-git/doc/guix.texi:21595
  32268. #, no-wrap
  32269. msgid "PostgreSQL"
  32270. msgstr ""
  32271. #. type: Plain text
  32272. #: guix-git/doc/guix.texi:21599
  32273. msgid "The following example describes a PostgreSQL service with the default configuration."
  32274. msgstr ""
  32275. #. type: lisp
  32276. #: guix-git/doc/guix.texi:21604
  32277. #, no-wrap
  32278. msgid ""
  32279. "(service postgresql-service-type\n"
  32280. " (postgresql-configuration\n"
  32281. " (postgresql postgresql-10)))\n"
  32282. msgstr ""
  32283. #. type: Plain text
  32284. #: guix-git/doc/guix.texi:21610
  32285. 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."
  32286. msgstr ""
  32287. #. type: Plain text
  32288. #: guix-git/doc/guix.texi:21617
  32289. 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."
  32290. msgstr ""
  32291. #. type: example
  32292. #: guix-git/doc/guix.texi:21622
  32293. #, no-wrap
  32294. msgid ""
  32295. "sudo -u postgres -s /bin/sh\n"
  32296. "createuser --interactive\n"
  32297. "createdb $MY_USER_LOGIN # Replace appropriately.\n"
  32298. msgstr ""
  32299. #. type: deftp
  32300. #: guix-git/doc/guix.texi:21624
  32301. #, no-wrap
  32302. msgid "{Data Type} postgresql-configuration"
  32303. msgstr ""
  32304. #. type: deftp
  32305. #: guix-git/doc/guix.texi:21627
  32306. msgid "Data type representing the configuration for the @code{postgresql-service-type}."
  32307. msgstr ""
  32308. #. type: code{#1}
  32309. #: guix-git/doc/guix.texi:21629
  32310. #, no-wrap
  32311. msgid "postgresql"
  32312. msgstr ""
  32313. #. type: table
  32314. #: guix-git/doc/guix.texi:21631
  32315. msgid "PostgreSQL package to use for the service."
  32316. msgstr ""
  32317. #. type: item
  32318. #: guix-git/doc/guix.texi:21632
  32319. #, fuzzy, no-wrap
  32320. msgid "@code{port} (default: @code{5432})"
  32321. msgstr "@code{port}(默认值:@code{22})"
  32322. #. type: table
  32323. #: guix-git/doc/guix.texi:21634
  32324. msgid "Port on which PostgreSQL should listen."
  32325. msgstr ""
  32326. #. type: table
  32327. #: guix-git/doc/guix.texi:21637
  32328. msgid "Locale to use as the default when creating the database cluster."
  32329. msgstr ""
  32330. #. type: item
  32331. #: guix-git/doc/guix.texi:21638
  32332. #, fuzzy, no-wrap
  32333. msgid "@code{config-file} (default: @code{(postgresql-config-file)})"
  32334. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  32335. #. type: table
  32336. #: guix-git/doc/guix.texi:21642
  32337. 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."
  32338. msgstr ""
  32339. #. type: item
  32340. #: guix-git/doc/guix.texi:21643
  32341. #, fuzzy, no-wrap
  32342. msgid "@code{log-directory} (default: @code{\"/var/log/postgresql\"})"
  32343. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  32344. #. type: table
  32345. #: guix-git/doc/guix.texi:21647
  32346. 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."
  32347. msgstr ""
  32348. #. type: item
  32349. #: guix-git/doc/guix.texi:21648
  32350. #, fuzzy, no-wrap
  32351. msgid "@code{data-directory} (default: @code{\"/var/lib/postgresql/data\"})"
  32352. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  32353. #. type: table
  32354. #: guix-git/doc/guix.texi:21650
  32355. msgid "Directory in which to store the data."
  32356. msgstr ""
  32357. #. type: item
  32358. #: guix-git/doc/guix.texi:21651
  32359. #, fuzzy, no-wrap
  32360. msgid "@code{extension-packages} (default: @code{'()})"
  32361. msgstr "@code{includes}(默认值:@code{'()})"
  32362. #. type: cindex
  32363. #: guix-git/doc/guix.texi:21652
  32364. #, no-wrap
  32365. msgid "postgresql extension-packages"
  32366. msgstr ""
  32367. #. type: table
  32368. #: guix-git/doc/guix.texi:21657
  32369. 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:"
  32370. msgstr ""
  32371. #. type: cindex
  32372. #: guix-git/doc/guix.texi:21658
  32373. #, no-wrap
  32374. msgid "postgis"
  32375. msgstr ""
  32376. #. type: lisp
  32377. #: guix-git/doc/guix.texi:21661
  32378. #, no-wrap
  32379. msgid ""
  32380. "(use-package-modules databases geo)\n"
  32381. "\n"
  32382. msgstr ""
  32383. #. type: lisp
  32384. #: guix-git/doc/guix.texi:21674
  32385. #, no-wrap
  32386. msgid ""
  32387. "(operating-system\n"
  32388. " ...\n"
  32389. " ;; postgresql is required to run `psql' but postgis is not required for\n"
  32390. " ;; proper operation.\n"
  32391. " (packages (cons* postgresql %base-packages))\n"
  32392. " (services\n"
  32393. " (cons*\n"
  32394. " (service postgresql-service-type\n"
  32395. " (postgresql-configuration\n"
  32396. " (postgresql postgresql-10)\n"
  32397. " (extension-packages (list postgis))))\n"
  32398. " %base-services)))\n"
  32399. msgstr ""
  32400. #. type: table
  32401. #: guix-git/doc/guix.texi:21678
  32402. msgid "Then the extension becomes visible and you can initialise an empty geographic database in this way:"
  32403. msgstr ""
  32404. #. type: example
  32405. #: guix-git/doc/guix.texi:21685
  32406. #, no-wrap
  32407. msgid ""
  32408. "psql -U postgres\n"
  32409. "> create database postgistest;\n"
  32410. "> \\connect postgistest;\n"
  32411. "> create extension postgis;\n"
  32412. "> create extension postgis_topology;\n"
  32413. msgstr ""
  32414. #. type: table
  32415. #: guix-git/doc/guix.texi:21690
  32416. 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."
  32417. msgstr ""
  32418. #. type: deftp
  32419. #: guix-git/doc/guix.texi:21694
  32420. #, no-wrap
  32421. msgid "{Data Type} postgresql-config-file"
  32422. msgstr ""
  32423. #. type: deftp
  32424. #: guix-git/doc/guix.texi:21700
  32425. 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."
  32426. msgstr ""
  32427. #. type: lisp
  32428. #: guix-git/doc/guix.texi:21720
  32429. #, no-wrap
  32430. msgid ""
  32431. "(service postgresql-service-type\n"
  32432. " (postgresql-configuration\n"
  32433. " (config-file\n"
  32434. " (postgresql-config-file\n"
  32435. " (log-destination \"stderr\")\n"
  32436. " (hba-file\n"
  32437. " (plain-file \"pg_hba.conf\"\n"
  32438. " \"\n"
  32439. "local\tall\tall\t\t\ttrust\n"
  32440. "host\tall\tall\t127.0.0.1/32 \tmd5\n"
  32441. "host\tall\tall\t::1/128 \tmd5\"))\n"
  32442. " (extra-config\n"
  32443. " '((\"session_preload_libraries\" \"auto_explain\")\n"
  32444. " (\"random_page_cost\" 2)\n"
  32445. " (\"auto_explain.log_min_duration\" \"100 ms\")\n"
  32446. " (\"work_mem\" \"500 MB\")\n"
  32447. " (\"logging_collector\" #t)\n"
  32448. " (\"log_directory\" \"/var/log/postgresql\")))))))\n"
  32449. msgstr ""
  32450. #. type: item
  32451. #: guix-git/doc/guix.texi:21723
  32452. #, fuzzy, no-wrap
  32453. msgid "@code{log-destination} (default: @code{\"syslog\"})"
  32454. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  32455. #. type: table
  32456. #: guix-git/doc/guix.texi:21726
  32457. msgid "The logging method to use for PostgreSQL@. Multiple values are accepted, separated by commas."
  32458. msgstr ""
  32459. #. type: item
  32460. #: guix-git/doc/guix.texi:21727
  32461. #, fuzzy, no-wrap
  32462. msgid "@code{hba-file} (default: @code{%default-postgres-hba})"
  32463. msgstr "@code{mate}(默认值:@code{mate})"
  32464. #. type: table
  32465. #: guix-git/doc/guix.texi:21730
  32466. msgid "Filename or G-expression for the host-based authentication configuration."
  32467. msgstr ""
  32468. #. type: item
  32469. #: guix-git/doc/guix.texi:21731
  32470. #, fuzzy, no-wrap
  32471. msgid "@code{ident-file} (default: @code{%default-postgres-ident})"
  32472. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  32473. #. type: table
  32474. #: guix-git/doc/guix.texi:21733
  32475. msgid "Filename or G-expression for the user name mapping configuration."
  32476. msgstr ""
  32477. #. type: item
  32478. #: guix-git/doc/guix.texi:21734
  32479. #, fuzzy, no-wrap
  32480. msgid "@code{socket-directory} (default: @code{\"/var/run/postgresql\"})"
  32481. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  32482. #. type: table
  32483. #: guix-git/doc/guix.texi:21739
  32484. 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."
  32485. msgstr ""
  32486. #. type: table
  32487. #: guix-git/doc/guix.texi:21742
  32488. msgid "By default, the @code{#false} value means the PostgreSQL default value will be used, which is currently @samp{/tmp}."
  32489. msgstr ""
  32490. #. type: table
  32491. #: guix-git/doc/guix.texi:21747
  32492. 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."
  32493. msgstr ""
  32494. #. type: table
  32495. #: guix-git/doc/guix.texi:21753
  32496. 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}."
  32497. msgstr ""
  32498. #. type: deffn
  32499. #: guix-git/doc/guix.texi:21757
  32500. #, no-wrap
  32501. msgid "{Scheme Variable} postgresql-role-service-type"
  32502. msgstr ""
  32503. #. type: deffn
  32504. #: guix-git/doc/guix.texi:21760
  32505. msgid "This service allows to create PostgreSQL roles and databases after PostgreSQL service start. Here is an example of its use."
  32506. msgstr ""
  32507. #. type: lisp
  32508. #: guix-git/doc/guix.texi:21768
  32509. #, no-wrap
  32510. msgid ""
  32511. "(service postgresql-role-service-type\n"
  32512. " (postgresql-role-configuration\n"
  32513. " (roles\n"
  32514. " (list (postgresql-role\n"
  32515. " (name \"test\")\n"
  32516. " (create-database? #t))))))\n"
  32517. msgstr ""
  32518. #. type: deffn
  32519. #: guix-git/doc/guix.texi:21772
  32520. msgid "This service can be extended with extra roles, as in this example:"
  32521. msgstr ""
  32522. #. type: lisp
  32523. #: guix-git/doc/guix.texi:21778
  32524. #, no-wrap
  32525. msgid ""
  32526. "(service-extension postgresql-role-service-type\n"
  32527. " (const (postgresql-role\n"
  32528. " (name \"alice\")\n"
  32529. " (create-database? #t))))\n"
  32530. msgstr ""
  32531. #. type: deftp
  32532. #: guix-git/doc/guix.texi:21781
  32533. #, fuzzy, no-wrap
  32534. msgid "{Data Type} postgresql-role"
  32535. msgstr "{数据类型} build-machine"
  32536. #. type: deftp
  32537. #: guix-git/doc/guix.texi:21787
  32538. 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."
  32539. msgstr ""
  32540. #. type: table
  32541. #: guix-git/doc/guix.texi:21791
  32542. #, fuzzy
  32543. msgid "The role name."
  32544. msgstr "仓库monad"
  32545. #. type: item
  32546. #: guix-git/doc/guix.texi:21792
  32547. #, fuzzy, no-wrap
  32548. msgid "@code{permissions} (default: @code{'(createdb login)})"
  32549. msgstr "@code{includes}(默认值:@code{'()})"
  32550. #. type: table
  32551. #: guix-git/doc/guix.texi:21796
  32552. msgid "The role permissions list. Supported permissions are @code{bypassrls}, @code{createdb}, @code{createrole}, @code{login}, @code{replication} and @code{superuser}."
  32553. msgstr ""
  32554. #. type: item
  32555. #: guix-git/doc/guix.texi:21797
  32556. #, fuzzy, no-wrap
  32557. msgid "@code{create-database?} (default: @code{#f})"
  32558. msgstr "@code{challenge}(默认值:@code{#f})"
  32559. #. type: table
  32560. #: guix-git/doc/guix.texi:21799
  32561. msgid "Whether to create a database with the same name as the role."
  32562. msgstr ""
  32563. #. type: deftp
  32564. #: guix-git/doc/guix.texi:21803
  32565. #, fuzzy, no-wrap
  32566. msgid "{Data Type} postgresql-role-configuration"
  32567. msgstr "管理操作系统配置。"
  32568. #. type: deftp
  32569. #: guix-git/doc/guix.texi:21806
  32570. #, fuzzy
  32571. msgid "Data type representing the configuration of @var{postgresql-role-service-type}."
  32572. msgstr "管理操作系统配置。"
  32573. #. type: item
  32574. #: guix-git/doc/guix.texi:21808
  32575. #, fuzzy, no-wrap
  32576. msgid "@code{host} (default: @code{\"/var/run/postgresql\"})"
  32577. msgstr "@code{port}(默认值:@code{22})"
  32578. #. type: table
  32579. #: guix-git/doc/guix.texi:21810
  32580. msgid "The PostgreSQL host to connect to."
  32581. msgstr ""
  32582. #. type: item
  32583. #: guix-git/doc/guix.texi:21811
  32584. #, fuzzy, no-wrap
  32585. msgid "@code{log} (default: @code{\"/var/log/postgresql_roles.log\"})"
  32586. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  32587. #. type: table
  32588. #: guix-git/doc/guix.texi:21813
  32589. #, fuzzy
  32590. msgid "File name of the log file."
  32591. msgstr "远程机器的主机名。"
  32592. #. type: item
  32593. #: guix-git/doc/guix.texi:21814
  32594. #, fuzzy, no-wrap
  32595. msgid "@code{roles} (default: @code{'()})"
  32596. msgstr "@code{features} (@code{'()})"
  32597. #. type: table
  32598. #: guix-git/doc/guix.texi:21816
  32599. msgid "The initial PostgreSQL roles to create."
  32600. msgstr ""
  32601. #. type: subsubheading
  32602. #: guix-git/doc/guix.texi:21819
  32603. #, no-wrap
  32604. msgid "MariaDB/MySQL"
  32605. msgstr ""
  32606. #. type: defvr
  32607. #: guix-git/doc/guix.texi:21821
  32608. #, no-wrap
  32609. msgid "{Scheme Variable} mysql-service-type"
  32610. msgstr ""
  32611. #. type: defvr
  32612. #: guix-git/doc/guix.texi:21825
  32613. 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."
  32614. msgstr ""
  32615. #. type: deftp
  32616. #: guix-git/doc/guix.texi:21827
  32617. #, no-wrap
  32618. msgid "{Data Type} mysql-configuration"
  32619. msgstr ""
  32620. #. type: deftp
  32621. #: guix-git/doc/guix.texi:21829
  32622. #, fuzzy
  32623. msgid "Data type representing the configuration of @var{mysql-service-type}."
  32624. msgstr "管理操作系统配置。"
  32625. #. type: item
  32626. #: guix-git/doc/guix.texi:21831
  32627. #, no-wrap
  32628. msgid "@code{mysql} (default: @var{mariadb})"
  32629. msgstr ""
  32630. #. type: table
  32631. #: guix-git/doc/guix.texi:21834
  32632. msgid "Package object of the MySQL database server, can be either @var{mariadb} or @var{mysql}."
  32633. msgstr ""
  32634. #. type: table
  32635. #: guix-git/doc/guix.texi:21837
  32636. msgid "For MySQL, a temporary root password will be displayed at activation time. For MariaDB, the root password is empty."
  32637. msgstr ""
  32638. #. type: item
  32639. #: guix-git/doc/guix.texi:21838 guix-git/doc/guix.texi:25658
  32640. #, no-wrap
  32641. msgid "@code{bind-address} (default: @code{\"127.0.0.1\"})"
  32642. msgstr ""
  32643. #. type: table
  32644. #: guix-git/doc/guix.texi:21841
  32645. msgid "The IP on which to listen for network connections. Use @code{\"0.0.0.0\"} to bind to all available network interfaces."
  32646. msgstr ""
  32647. #. type: item
  32648. #: guix-git/doc/guix.texi:21842
  32649. #, no-wrap
  32650. msgid "@code{port} (default: @code{3306})"
  32651. msgstr ""
  32652. #. type: table
  32653. #: guix-git/doc/guix.texi:21844
  32654. msgid "TCP port on which the database server listens for incoming connections."
  32655. msgstr ""
  32656. #. type: item
  32657. #: guix-git/doc/guix.texi:21845
  32658. #, fuzzy, no-wrap
  32659. msgid "@code{socket} (default: @code{\"/run/mysqld/mysqld.sock\"})"
  32660. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  32661. #. type: table
  32662. #: guix-git/doc/guix.texi:21847
  32663. msgid "Socket file to use for local (non-network) connections."
  32664. msgstr ""
  32665. #. type: table
  32666. #: guix-git/doc/guix.texi:21850
  32667. msgid "Additional settings for the @file{my.cnf} configuration file."
  32668. msgstr ""
  32669. #. type: item
  32670. #: guix-git/doc/guix.texi:21851
  32671. #, fuzzy, no-wrap
  32672. msgid "@code{extra-environment} (default: @code{#~'()})"
  32673. msgstr "@code{features} (@code{'()})"
  32674. #. type: table
  32675. #: guix-git/doc/guix.texi:21853
  32676. msgid "List of environment variables passed to the @command{mysqld} process."
  32677. msgstr ""
  32678. #. type: item
  32679. #: guix-git/doc/guix.texi:21854
  32680. #, fuzzy, no-wrap
  32681. msgid "@code{auto-upgrade?} (default: @code{#t})"
  32682. msgstr "@code{mate}(默认值:@code{mate})"
  32683. #. type: table
  32684. #: guix-git/doc/guix.texi:21859
  32685. 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."
  32686. msgstr ""
  32687. #. type: subsubheading
  32688. #: guix-git/doc/guix.texi:21863
  32689. #, no-wrap
  32690. msgid "Memcached"
  32691. msgstr ""
  32692. #. type: defvr
  32693. #: guix-git/doc/guix.texi:21865
  32694. #, no-wrap
  32695. msgid "{Scheme Variable} memcached-service-type"
  32696. msgstr ""
  32697. #. type: defvr
  32698. #: guix-git/doc/guix.texi:21869
  32699. 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."
  32700. msgstr ""
  32701. #. type: lisp
  32702. #: guix-git/doc/guix.texi:21873
  32703. #, no-wrap
  32704. msgid "(service memcached-service-type)\n"
  32705. msgstr ""
  32706. #. type: deftp
  32707. #: guix-git/doc/guix.texi:21875
  32708. #, no-wrap
  32709. msgid "{Data Type} memcached-configuration"
  32710. msgstr ""
  32711. #. type: deftp
  32712. #: guix-git/doc/guix.texi:21877
  32713. msgid "Data type representing the configuration of memcached."
  32714. msgstr ""
  32715. #. type: item
  32716. #: guix-git/doc/guix.texi:21879
  32717. #, no-wrap
  32718. msgid "@code{memcached} (default: @code{memcached})"
  32719. msgstr ""
  32720. #. type: table
  32721. #: guix-git/doc/guix.texi:21881
  32722. msgid "The Memcached package to use."
  32723. msgstr ""
  32724. #. type: item
  32725. #: guix-git/doc/guix.texi:21882
  32726. #, no-wrap
  32727. msgid "@code{interfaces} (default: @code{'(\"0.0.0.0\")})"
  32728. msgstr ""
  32729. #. type: table
  32730. #: guix-git/doc/guix.texi:21884
  32731. msgid "Network interfaces on which to listen."
  32732. msgstr ""
  32733. #. type: item
  32734. #: guix-git/doc/guix.texi:21885
  32735. #, no-wrap
  32736. msgid "@code{tcp-port} (default: @code{11211})"
  32737. msgstr ""
  32738. #. type: table
  32739. #: guix-git/doc/guix.texi:21887
  32740. msgid "Port on which to accept connections."
  32741. msgstr ""
  32742. #. type: item
  32743. #: guix-git/doc/guix.texi:21888
  32744. #, no-wrap
  32745. msgid "@code{udp-port} (default: @code{11211})"
  32746. msgstr ""
  32747. #. type: table
  32748. #: guix-git/doc/guix.texi:21891
  32749. msgid "Port on which to accept UDP connections on, a value of 0 will disable listening on a UDP socket."
  32750. msgstr ""
  32751. #. type: item
  32752. #: guix-git/doc/guix.texi:21892
  32753. #, no-wrap
  32754. msgid "@code{additional-options} (default: @code{'()})"
  32755. msgstr ""
  32756. #. type: table
  32757. #: guix-git/doc/guix.texi:21894
  32758. msgid "Additional command line options to pass to @code{memcached}."
  32759. msgstr ""
  32760. #. type: subsubheading
  32761. #: guix-git/doc/guix.texi:21897
  32762. #, no-wrap
  32763. msgid "Redis"
  32764. msgstr ""
  32765. #. type: defvr
  32766. #: guix-git/doc/guix.texi:21899
  32767. #, no-wrap
  32768. msgid "{Scheme Variable} redis-service-type"
  32769. msgstr ""
  32770. #. type: defvr
  32771. #: guix-git/doc/guix.texi:21902
  32772. msgid "This is the service type for the @uref{https://redis.io/, Redis} key/value store, whose value is a @code{redis-configuration} object."
  32773. msgstr ""
  32774. #. type: deftp
  32775. #: guix-git/doc/guix.texi:21904
  32776. #, no-wrap
  32777. msgid "{Data Type} redis-configuration"
  32778. msgstr ""
  32779. #. type: deftp
  32780. #: guix-git/doc/guix.texi:21906
  32781. msgid "Data type representing the configuration of redis."
  32782. msgstr ""
  32783. #. type: item
  32784. #: guix-git/doc/guix.texi:21908
  32785. #, no-wrap
  32786. msgid "@code{redis} (default: @code{redis})"
  32787. msgstr ""
  32788. #. type: table
  32789. #: guix-git/doc/guix.texi:21910
  32790. msgid "The Redis package to use."
  32791. msgstr ""
  32792. #. type: item
  32793. #: guix-git/doc/guix.texi:21911
  32794. #, no-wrap
  32795. msgid "@code{bind} (default: @code{\"127.0.0.1\"})"
  32796. msgstr ""
  32797. #. type: table
  32798. #: guix-git/doc/guix.texi:21913
  32799. msgid "Network interface on which to listen."
  32800. msgstr ""
  32801. #. type: item
  32802. #: guix-git/doc/guix.texi:21914
  32803. #, no-wrap
  32804. msgid "@code{port} (default: @code{6379})"
  32805. msgstr ""
  32806. #. type: table
  32807. #: guix-git/doc/guix.texi:21917
  32808. msgid "Port on which to accept connections on, a value of 0 will disable listening on a TCP socket."
  32809. msgstr ""
  32810. #. type: item
  32811. #: guix-git/doc/guix.texi:21918
  32812. #, no-wrap
  32813. msgid "@code{working-directory} (default: @code{\"/var/lib/redis\"})"
  32814. msgstr ""
  32815. #. type: table
  32816. #: guix-git/doc/guix.texi:21920
  32817. msgid "Directory in which to store the database and related files."
  32818. msgstr ""
  32819. #. type: cindex
  32820. #: guix-git/doc/guix.texi:21926
  32821. #, no-wrap
  32822. msgid "mail"
  32823. msgstr ""
  32824. #. type: cindex
  32825. #: guix-git/doc/guix.texi:21927
  32826. #, no-wrap
  32827. msgid "email"
  32828. msgstr ""
  32829. #. type: Plain text
  32830. #: guix-git/doc/guix.texi:21932
  32831. 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."
  32832. msgstr ""
  32833. #. type: subsubheading
  32834. #: guix-git/doc/guix.texi:21933
  32835. #, no-wrap
  32836. msgid "Dovecot Service"
  32837. msgstr ""
  32838. #. type: deffn
  32839. #: guix-git/doc/guix.texi:21935
  32840. #, no-wrap
  32841. msgid "{Scheme Procedure} dovecot-service [#:config (dovecot-configuration)]"
  32842. msgstr ""
  32843. #. type: deffn
  32844. #: guix-git/doc/guix.texi:21937
  32845. msgid "Return a service that runs the Dovecot IMAP/POP3/LMTP mail server."
  32846. msgstr ""
  32847. #. type: Plain text
  32848. #: guix-git/doc/guix.texi:21947
  32849. 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."
  32850. msgstr ""
  32851. #. type: Plain text
  32852. #: guix-git/doc/guix.texi:21950
  32853. msgid "For example, to specify that mail is located at @code{maildir~/.mail}, one would instantiate the Dovecot service like this:"
  32854. msgstr ""
  32855. #. type: lisp
  32856. #: guix-git/doc/guix.texi:21955
  32857. #, no-wrap
  32858. msgid ""
  32859. "(dovecot-service #:config\n"
  32860. " (dovecot-configuration\n"
  32861. " (mail-location \"maildir:~/.mail\")))\n"
  32862. msgstr ""
  32863. #. type: Plain text
  32864. #: guix-git/doc/guix.texi:21963
  32865. 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."
  32866. msgstr ""
  32867. #. type: Plain text
  32868. #: guix-git/doc/guix.texi:21973
  32869. msgid "Available @code{dovecot-configuration} fields are:"
  32870. msgstr ""
  32871. #. type: deftypevr
  32872. #: guix-git/doc/guix.texi:21974
  32873. #, no-wrap
  32874. msgid "{@code{dovecot-configuration} parameter} package dovecot"
  32875. msgstr ""
  32876. #. type: deftypevr
  32877. #: guix-git/doc/guix.texi:21976 guix-git/doc/guix.texi:23325
  32878. msgid "The dovecot package."
  32879. msgstr ""
  32880. #. type: deftypevr
  32881. #: guix-git/doc/guix.texi:21978
  32882. #, no-wrap
  32883. msgid "{@code{dovecot-configuration} parameter} comma-separated-string-list listen"
  32884. msgstr ""
  32885. #. type: deftypevr
  32886. #: guix-git/doc/guix.texi:21984
  32887. 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."
  32888. msgstr ""
  32889. #. type: deftypevr
  32890. #: guix-git/doc/guix.texi:21986
  32891. #, no-wrap
  32892. msgid "{@code{dovecot-configuration} parameter} protocol-configuration-list protocols"
  32893. msgstr ""
  32894. #. type: deftypevr
  32895. #: guix-git/doc/guix.texi:21989
  32896. msgid "List of protocols we want to serve. Available protocols include @samp{imap}, @samp{pop3}, and @samp{lmtp}."
  32897. msgstr ""
  32898. #. type: deftypevr
  32899. #: guix-git/doc/guix.texi:21991
  32900. msgid "Available @code{protocol-configuration} fields are:"
  32901. msgstr ""
  32902. #. type: deftypevr
  32903. #: guix-git/doc/guix.texi:21992
  32904. #, no-wrap
  32905. msgid "{@code{protocol-configuration} parameter} string name"
  32906. msgstr ""
  32907. #. type: deftypevr
  32908. #: guix-git/doc/guix.texi:21994
  32909. msgid "The name of the protocol."
  32910. msgstr ""
  32911. #. type: deftypevr
  32912. #: guix-git/doc/guix.texi:21996
  32913. #, no-wrap
  32914. msgid "{@code{protocol-configuration} parameter} string auth-socket-path"
  32915. msgstr ""
  32916. #. type: deftypevr
  32917. #: guix-git/doc/guix.texi:22000
  32918. 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\"}."
  32919. msgstr ""
  32920. #. type: deftypevr
  32921. #: guix-git/doc/guix.texi:22002
  32922. #, no-wrap
  32923. msgid "{@code{protocol-configuration} parameter} boolean imap-metadata?"
  32924. msgstr ""
  32925. #. type: deftypevr
  32926. #: guix-git/doc/guix.texi:22007
  32927. msgid "Whether to enable the @code{IMAP METADATA} extension as defined in @uref{https://tools.ietf.org/html/rfc5464,RFC@tie{}5464}, which provides a means for clients to set and retrieve per-mailbox, per-user metadata and annotations over IMAP."
  32928. msgstr ""
  32929. #. type: deftypevr
  32930. #: guix-git/doc/guix.texi:22010
  32931. msgid "If this is @samp{#t}, you must also specify a dictionary @i{via} the @code{mail-attribute-dict} setting."
  32932. msgstr ""
  32933. #. type: deftypevr
  32934. #: guix-git/doc/guix.texi:22015
  32935. #, no-wrap
  32936. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-notify-capabilities"
  32937. msgstr ""
  32938. #. type: deftypevr
  32939. #: guix-git/doc/guix.texi:22020
  32940. msgid "Which NOTIFY capabilities to report to clients that first connect to the ManageSieve service, before authentication. These may differ from the capabilities offered to authenticated users. If this field is left empty, report what the Sieve interpreter supports by default."
  32941. msgstr ""
  32942. #. type: deftypevr
  32943. #: guix-git/doc/guix.texi:22024
  32944. #, no-wrap
  32945. msgid "{@code{protocol-configuration} parameter} space-separated-string-list managesieve-sieve-capability"
  32946. msgstr ""
  32947. #. type: deftypevr
  32948. #: guix-git/doc/guix.texi:22029
  32949. msgid "Which SIEVE capabilities to report to clients that first connect to the ManageSieve service, before authentication. These may differ from the capabilities offered to authenticated users. If this field is left empty, report what the Sieve interpreter supports by default."
  32950. msgstr ""
  32951. #. type: deftypevr
  32952. #: guix-git/doc/guix.texi:22034
  32953. #, no-wrap
  32954. msgid "{@code{protocol-configuration} parameter} space-separated-string-list mail-plugins"
  32955. msgstr ""
  32956. #. type: deftypevr
  32957. #: guix-git/doc/guix.texi:22036
  32958. msgid "Space separated list of plugins to load."
  32959. msgstr ""
  32960. #. type: deftypevr
  32961. #: guix-git/doc/guix.texi:22038
  32962. #, no-wrap
  32963. msgid "{@code{protocol-configuration} parameter} non-negative-integer mail-max-userip-connections"
  32964. msgstr ""
  32965. #. type: deftypevr
  32966. #: guix-git/doc/guix.texi:22042
  32967. 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}."
  32968. msgstr ""
  32969. #. type: deftypevr
  32970. #: guix-git/doc/guix.texi:22046
  32971. #, no-wrap
  32972. msgid "{@code{dovecot-configuration} parameter} service-configuration-list services"
  32973. msgstr ""
  32974. #. type: deftypevr
  32975. #: guix-git/doc/guix.texi:22050
  32976. msgid "List of services to enable. Available services include @samp{imap}, @samp{imap-login}, @samp{pop3}, @samp{pop3-login}, @samp{auth}, and @samp{lmtp}."
  32977. msgstr ""
  32978. #. type: deftypevr
  32979. #: guix-git/doc/guix.texi:22052
  32980. msgid "Available @code{service-configuration} fields are:"
  32981. msgstr ""
  32982. #. type: deftypevr
  32983. #: guix-git/doc/guix.texi:22053
  32984. #, no-wrap
  32985. msgid "{@code{service-configuration} parameter} string kind"
  32986. msgstr ""
  32987. #. type: deftypevr
  32988. #: guix-git/doc/guix.texi:22058
  32989. 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."
  32990. msgstr ""
  32991. #. type: deftypevr
  32992. #: guix-git/doc/guix.texi:22060
  32993. #, no-wrap
  32994. msgid "{@code{service-configuration} parameter} listener-configuration-list listeners"
  32995. msgstr ""
  32996. #. type: deftypevr
  32997. #: guix-git/doc/guix.texi:22065
  32998. 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{()}."
  32999. msgstr ""
  33000. #. type: deftypevr
  33001. #: guix-git/doc/guix.texi:22067
  33002. msgid "Available @code{unix-listener-configuration} fields are:"
  33003. msgstr ""
  33004. #. type: deftypevr
  33005. #: guix-git/doc/guix.texi:22068
  33006. #, no-wrap
  33007. msgid "{@code{unix-listener-configuration} parameter} string path"
  33008. msgstr ""
  33009. #. type: deftypevr
  33010. #: guix-git/doc/guix.texi:22071 guix-git/doc/guix.texi:22094
  33011. msgid "Path to the file, relative to @code{base-dir} field. This is also used as the section name."
  33012. msgstr ""
  33013. #. type: deftypevr
  33014. #: guix-git/doc/guix.texi:22073
  33015. #, no-wrap
  33016. msgid "{@code{unix-listener-configuration} parameter} string mode"
  33017. msgstr ""
  33018. #. type: deftypevr
  33019. #: guix-git/doc/guix.texi:22076 guix-git/doc/guix.texi:22099
  33020. msgid "The access mode for the socket. Defaults to @samp{\"0600\"}."
  33021. msgstr ""
  33022. #. type: deftypevr
  33023. #: guix-git/doc/guix.texi:22078
  33024. #, no-wrap
  33025. msgid "{@code{unix-listener-configuration} parameter} string user"
  33026. msgstr ""
  33027. #. type: deftypevr
  33028. #: guix-git/doc/guix.texi:22081 guix-git/doc/guix.texi:22104
  33029. msgid "The user to own the socket. Defaults to @samp{\"\"}."
  33030. msgstr ""
  33031. #. type: deftypevr
  33032. #: guix-git/doc/guix.texi:22083
  33033. #, no-wrap
  33034. msgid "{@code{unix-listener-configuration} parameter} string group"
  33035. msgstr ""
  33036. #. type: deftypevr
  33037. #: guix-git/doc/guix.texi:22086 guix-git/doc/guix.texi:22109
  33038. msgid "The group to own the socket. Defaults to @samp{\"\"}."
  33039. msgstr ""
  33040. #. type: deftypevr
  33041. #: guix-git/doc/guix.texi:22090
  33042. msgid "Available @code{fifo-listener-configuration} fields are:"
  33043. msgstr ""
  33044. #. type: deftypevr
  33045. #: guix-git/doc/guix.texi:22091
  33046. #, no-wrap
  33047. msgid "{@code{fifo-listener-configuration} parameter} string path"
  33048. msgstr ""
  33049. #. type: deftypevr
  33050. #: guix-git/doc/guix.texi:22096
  33051. #, no-wrap
  33052. msgid "{@code{fifo-listener-configuration} parameter} string mode"
  33053. msgstr ""
  33054. #. type: deftypevr
  33055. #: guix-git/doc/guix.texi:22101
  33056. #, no-wrap
  33057. msgid "{@code{fifo-listener-configuration} parameter} string user"
  33058. msgstr ""
  33059. #. type: deftypevr
  33060. #: guix-git/doc/guix.texi:22106
  33061. #, no-wrap
  33062. msgid "{@code{fifo-listener-configuration} parameter} string group"
  33063. msgstr ""
  33064. #. type: deftypevr
  33065. #: guix-git/doc/guix.texi:22113
  33066. msgid "Available @code{inet-listener-configuration} fields are:"
  33067. msgstr ""
  33068. #. type: deftypevr
  33069. #: guix-git/doc/guix.texi:22114
  33070. #, no-wrap
  33071. msgid "{@code{inet-listener-configuration} parameter} string protocol"
  33072. msgstr ""
  33073. #. type: deftypevr
  33074. #: guix-git/doc/guix.texi:22116
  33075. msgid "The protocol to listen for."
  33076. msgstr ""
  33077. #. type: deftypevr
  33078. #: guix-git/doc/guix.texi:22118
  33079. #, no-wrap
  33080. msgid "{@code{inet-listener-configuration} parameter} string address"
  33081. msgstr ""
  33082. #. type: deftypevr
  33083. #: guix-git/doc/guix.texi:22121
  33084. msgid "The address on which to listen, or empty for all addresses. Defaults to @samp{\"\"}."
  33085. msgstr ""
  33086. #. type: deftypevr
  33087. #: guix-git/doc/guix.texi:22123
  33088. #, no-wrap
  33089. msgid "{@code{inet-listener-configuration} parameter} non-negative-integer port"
  33090. msgstr ""
  33091. #. type: deftypevr
  33092. #: guix-git/doc/guix.texi:22125
  33093. msgid "The port on which to listen."
  33094. msgstr ""
  33095. #. type: deftypevr
  33096. #: guix-git/doc/guix.texi:22127
  33097. #, no-wrap
  33098. msgid "{@code{inet-listener-configuration} parameter} boolean ssl?"
  33099. msgstr ""
  33100. #. type: deftypevr
  33101. #: guix-git/doc/guix.texi:22131
  33102. msgid "Whether to use SSL for this service; @samp{yes}, @samp{no}, or @samp{required}. Defaults to @samp{#t}."
  33103. msgstr ""
  33104. #. type: deftypevr
  33105. #: guix-git/doc/guix.texi:22135
  33106. #, no-wrap
  33107. msgid "{@code{service-configuration} parameter} non-negative-integer client-limit"
  33108. msgstr ""
  33109. #. type: deftypevr
  33110. #: guix-git/doc/guix.texi:22140
  33111. 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."
  33112. msgstr ""
  33113. #. type: deftypevr
  33114. #: guix-git/doc/guix.texi:22145
  33115. #, no-wrap
  33116. msgid "{@code{service-configuration} parameter} non-negative-integer service-count"
  33117. msgstr ""
  33118. #. type: deftypevr
  33119. #: guix-git/doc/guix.texi:22150
  33120. 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}."
  33121. msgstr ""
  33122. #. type: deftypevr
  33123. #: guix-git/doc/guix.texi:22153
  33124. #, no-wrap
  33125. msgid "{@code{service-configuration} parameter} non-negative-integer process-limit"
  33126. msgstr ""
  33127. #. type: deftypevr
  33128. #: guix-git/doc/guix.texi:22156
  33129. msgid "Maximum number of processes that can exist for this service. If set to 0, @code{default-process-limit} is used instead."
  33130. msgstr ""
  33131. #. type: deftypevr
  33132. #: guix-git/doc/guix.texi:22161
  33133. #, no-wrap
  33134. msgid "{@code{service-configuration} parameter} non-negative-integer process-min-avail"
  33135. msgstr ""
  33136. #. type: deftypevr
  33137. #: guix-git/doc/guix.texi:22164
  33138. msgid "Number of processes to always keep waiting for more connections. Defaults to @samp{0}."
  33139. msgstr ""
  33140. #. type: deftypevr
  33141. #: guix-git/doc/guix.texi:22166
  33142. #, no-wrap
  33143. msgid "{@code{service-configuration} parameter} non-negative-integer vsz-limit"
  33144. msgstr ""
  33145. #. type: deftypevr
  33146. #: guix-git/doc/guix.texi:22170
  33147. msgid "If you set @samp{service-count 0}, you probably need to grow this. Defaults to @samp{256000000}."
  33148. msgstr ""
  33149. #. type: deftypevr
  33150. #: guix-git/doc/guix.texi:22174
  33151. #, no-wrap
  33152. msgid "{@code{dovecot-configuration} parameter} dict-configuration dict"
  33153. msgstr ""
  33154. #. type: deftypevr
  33155. #: guix-git/doc/guix.texi:22177
  33156. msgid "Dict configuration, as created by the @code{dict-configuration} constructor."
  33157. msgstr ""
  33158. #. type: deftypevr
  33159. #: guix-git/doc/guix.texi:22179
  33160. msgid "Available @code{dict-configuration} fields are:"
  33161. msgstr ""
  33162. #. type: deftypevr
  33163. #: guix-git/doc/guix.texi:22180
  33164. #, no-wrap
  33165. msgid "{@code{dict-configuration} parameter} free-form-fields entries"
  33166. msgstr ""
  33167. #. type: deftypevr
  33168. #: guix-git/doc/guix.texi:22183
  33169. msgid "A list of key-value pairs that this dict should hold. Defaults to @samp{()}."
  33170. msgstr ""
  33171. #. type: deftypevr
  33172. #: guix-git/doc/guix.texi:22187
  33173. #, no-wrap
  33174. msgid "{@code{dovecot-configuration} parameter} passdb-configuration-list passdbs"
  33175. msgstr ""
  33176. #. type: deftypevr
  33177. #: guix-git/doc/guix.texi:22190
  33178. msgid "A list of passdb configurations, each one created by the @code{passdb-configuration} constructor."
  33179. msgstr ""
  33180. #. type: deftypevr
  33181. #: guix-git/doc/guix.texi:22192
  33182. msgid "Available @code{passdb-configuration} fields are:"
  33183. msgstr ""
  33184. #. type: deftypevr
  33185. #: guix-git/doc/guix.texi:22193
  33186. #, no-wrap
  33187. msgid "{@code{passdb-configuration} parameter} string driver"
  33188. msgstr ""
  33189. #. type: deftypevr
  33190. #: guix-git/doc/guix.texi:22198
  33191. 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\"}."
  33192. msgstr ""
  33193. #. type: deftypevr
  33194. #: guix-git/doc/guix.texi:22200
  33195. #, no-wrap
  33196. msgid "{@code{passdb-configuration} parameter} space-separated-string-list args"
  33197. msgstr ""
  33198. #. type: deftypevr
  33199. #: guix-git/doc/guix.texi:22203
  33200. msgid "Space separated list of arguments to the passdb driver. Defaults to @samp{\"\"}."
  33201. msgstr ""
  33202. #. type: deftypevr
  33203. #: guix-git/doc/guix.texi:22207
  33204. #, no-wrap
  33205. msgid "{@code{dovecot-configuration} parameter} userdb-configuration-list userdbs"
  33206. msgstr ""
  33207. #. type: deftypevr
  33208. #: guix-git/doc/guix.texi:22210
  33209. msgid "List of userdb configurations, each one created by the @code{userdb-configuration} constructor."
  33210. msgstr ""
  33211. #. type: deftypevr
  33212. #: guix-git/doc/guix.texi:22212
  33213. msgid "Available @code{userdb-configuration} fields are:"
  33214. msgstr ""
  33215. #. type: deftypevr
  33216. #: guix-git/doc/guix.texi:22213
  33217. #, no-wrap
  33218. msgid "{@code{userdb-configuration} parameter} string driver"
  33219. msgstr ""
  33220. #. type: deftypevr
  33221. #: guix-git/doc/guix.texi:22217
  33222. msgid "The driver that the userdb should use. Valid values include @samp{passwd} and @samp{static}. Defaults to @samp{\"passwd\"}."
  33223. msgstr ""
  33224. #. type: deftypevr
  33225. #: guix-git/doc/guix.texi:22219
  33226. #, no-wrap
  33227. msgid "{@code{userdb-configuration} parameter} space-separated-string-list args"
  33228. msgstr ""
  33229. #. type: deftypevr
  33230. #: guix-git/doc/guix.texi:22222
  33231. msgid "Space separated list of arguments to the userdb driver. Defaults to @samp{\"\"}."
  33232. msgstr ""
  33233. #. type: deftypevr
  33234. #: guix-git/doc/guix.texi:22224
  33235. #, no-wrap
  33236. msgid "{@code{userdb-configuration} parameter} free-form-args override-fields"
  33237. msgstr ""
  33238. #. type: deftypevr
  33239. #: guix-git/doc/guix.texi:22227
  33240. msgid "Override fields from passwd. Defaults to @samp{()}."
  33241. msgstr ""
  33242. #. type: deftypevr
  33243. #: guix-git/doc/guix.texi:22231
  33244. #, no-wrap
  33245. msgid "{@code{dovecot-configuration} parameter} plugin-configuration plugin-configuration"
  33246. msgstr ""
  33247. #. type: deftypevr
  33248. #: guix-git/doc/guix.texi:22234
  33249. msgid "Plug-in configuration, created by the @code{plugin-configuration} constructor."
  33250. msgstr ""
  33251. #. type: deftypevr
  33252. #: guix-git/doc/guix.texi:22236
  33253. #, no-wrap
  33254. msgid "{@code{dovecot-configuration} parameter} list-of-namespace-configuration namespaces"
  33255. msgstr ""
  33256. #. type: deftypevr
  33257. #: guix-git/doc/guix.texi:22239
  33258. msgid "List of namespaces. Each item in the list is created by the @code{namespace-configuration} constructor."
  33259. msgstr ""
  33260. #. type: deftypevr
  33261. #: guix-git/doc/guix.texi:22241
  33262. msgid "Available @code{namespace-configuration} fields are:"
  33263. msgstr ""
  33264. #. type: deftypevr
  33265. #: guix-git/doc/guix.texi:22242
  33266. #, no-wrap
  33267. msgid "{@code{namespace-configuration} parameter} string name"
  33268. msgstr ""
  33269. #. type: deftypevr
  33270. #: guix-git/doc/guix.texi:22244
  33271. msgid "Name for this namespace."
  33272. msgstr ""
  33273. #. type: deftypevr
  33274. #: guix-git/doc/guix.texi:22246
  33275. #, no-wrap
  33276. msgid "{@code{namespace-configuration} parameter} string type"
  33277. msgstr ""
  33278. #. type: deftypevr
  33279. #: guix-git/doc/guix.texi:22249
  33280. msgid "Namespace type: @samp{private}, @samp{shared} or @samp{public}. Defaults to @samp{\"private\"}."
  33281. msgstr ""
  33282. #. type: deftypevr
  33283. #: guix-git/doc/guix.texi:22251
  33284. #, no-wrap
  33285. msgid "{@code{namespace-configuration} parameter} string separator"
  33286. msgstr ""
  33287. #. type: deftypevr
  33288. #: guix-git/doc/guix.texi:22257
  33289. 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{\"\"}."
  33290. msgstr ""
  33291. #. type: deftypevr
  33292. #: guix-git/doc/guix.texi:22259
  33293. #, no-wrap
  33294. msgid "{@code{namespace-configuration} parameter} string prefix"
  33295. msgstr ""
  33296. #. type: deftypevr
  33297. #: guix-git/doc/guix.texi:22263
  33298. msgid "Prefix required to access this namespace. This needs to be different for all namespaces. For example @samp{Public/}. Defaults to @samp{\"\"}."
  33299. msgstr ""
  33300. #. type: deftypevr
  33301. #: guix-git/doc/guix.texi:22265
  33302. #, no-wrap
  33303. msgid "{@code{namespace-configuration} parameter} string location"
  33304. msgstr ""
  33305. #. type: deftypevr
  33306. #: guix-git/doc/guix.texi:22269
  33307. 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{\"\"}."
  33308. msgstr ""
  33309. #. type: deftypevr
  33310. #: guix-git/doc/guix.texi:22271
  33311. #, no-wrap
  33312. msgid "{@code{namespace-configuration} parameter} boolean inbox?"
  33313. msgstr ""
  33314. #. type: deftypevr
  33315. #: guix-git/doc/guix.texi:22275
  33316. msgid "There can be only one INBOX, and this setting defines which namespace has it. Defaults to @samp{#f}."
  33317. msgstr ""
  33318. #. type: deftypevr
  33319. #: guix-git/doc/guix.texi:22277
  33320. #, no-wrap
  33321. msgid "{@code{namespace-configuration} parameter} boolean hidden?"
  33322. msgstr ""
  33323. #. type: deftypevr
  33324. #: guix-git/doc/guix.texi:22285
  33325. 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}."
  33326. msgstr ""
  33327. #. type: deftypevr
  33328. #: guix-git/doc/guix.texi:22287
  33329. #, no-wrap
  33330. msgid "{@code{namespace-configuration} parameter} boolean list?"
  33331. msgstr ""
  33332. #. type: deftypevr
  33333. #: guix-git/doc/guix.texi:22293
  33334. 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}."
  33335. msgstr ""
  33336. #. type: deftypevr
  33337. #: guix-git/doc/guix.texi:22295
  33338. #, no-wrap
  33339. msgid "{@code{namespace-configuration} parameter} boolean subscriptions?"
  33340. msgstr ""
  33341. #. type: deftypevr
  33342. #: guix-git/doc/guix.texi:22300
  33343. 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}."
  33344. msgstr ""
  33345. #. type: deftypevr
  33346. #: guix-git/doc/guix.texi:22302
  33347. #, no-wrap
  33348. msgid "{@code{namespace-configuration} parameter} mailbox-configuration-list mailboxes"
  33349. msgstr ""
  33350. #. type: deftypevr
  33351. #: guix-git/doc/guix.texi:22305
  33352. msgid "List of predefined mailboxes in this namespace. Defaults to @samp{()}."
  33353. msgstr ""
  33354. #. type: deftypevr
  33355. #: guix-git/doc/guix.texi:22307
  33356. msgid "Available @code{mailbox-configuration} fields are:"
  33357. msgstr ""
  33358. #. type: deftypevr
  33359. #: guix-git/doc/guix.texi:22308
  33360. #, no-wrap
  33361. msgid "{@code{mailbox-configuration} parameter} string name"
  33362. msgstr ""
  33363. #. type: deftypevr
  33364. #: guix-git/doc/guix.texi:22310
  33365. msgid "Name for this mailbox."
  33366. msgstr ""
  33367. #. type: deftypevr
  33368. #: guix-git/doc/guix.texi:22312
  33369. #, no-wrap
  33370. msgid "{@code{mailbox-configuration} parameter} string auto"
  33371. msgstr ""
  33372. #. type: deftypevr
  33373. #: guix-git/doc/guix.texi:22316
  33374. msgid "@samp{create} will automatically create this mailbox. @samp{subscribe} will both create and subscribe to the mailbox. Defaults to @samp{\"no\"}."
  33375. msgstr ""
  33376. #. type: deftypevr
  33377. #: guix-git/doc/guix.texi:22318
  33378. #, no-wrap
  33379. msgid "{@code{mailbox-configuration} parameter} space-separated-string-list special-use"
  33380. msgstr ""
  33381. #. type: deftypevr
  33382. #: guix-git/doc/guix.texi:22323
  33383. 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{()}."
  33384. msgstr ""
  33385. #. type: deftypevr
  33386. #: guix-git/doc/guix.texi:22329
  33387. #, no-wrap
  33388. msgid "{@code{dovecot-configuration} parameter} file-name base-dir"
  33389. msgstr ""
  33390. #. type: deftypevr
  33391. #: guix-git/doc/guix.texi:22332
  33392. msgid "Base directory where to store runtime data. Defaults to @samp{\"/var/run/dovecot/\"}."
  33393. msgstr ""
  33394. #. type: deftypevr
  33395. #: guix-git/doc/guix.texi:22334
  33396. #, no-wrap
  33397. msgid "{@code{dovecot-configuration} parameter} string login-greeting"
  33398. msgstr ""
  33399. #. type: deftypevr
  33400. #: guix-git/doc/guix.texi:22337
  33401. msgid "Greeting message for clients. Defaults to @samp{\"Dovecot ready.\"}."
  33402. msgstr ""
  33403. #. type: deftypevr
  33404. #: guix-git/doc/guix.texi:22339
  33405. #, no-wrap
  33406. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-trusted-networks"
  33407. msgstr ""
  33408. #. type: deftypevr
  33409. #: guix-git/doc/guix.texi:22346
  33410. 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{()}."
  33411. msgstr ""
  33412. #. type: deftypevr
  33413. #: guix-git/doc/guix.texi:22348
  33414. #, no-wrap
  33415. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-access-sockets"
  33416. msgstr ""
  33417. #. type: deftypevr
  33418. #: guix-git/doc/guix.texi:22351
  33419. msgid "List of login access check sockets (e.g.@: tcpwrap). Defaults to @samp{()}."
  33420. msgstr ""
  33421. #. type: deftypevr
  33422. #: guix-git/doc/guix.texi:22353
  33423. #, no-wrap
  33424. msgid "{@code{dovecot-configuration} parameter} boolean verbose-proctitle?"
  33425. msgstr ""
  33426. #. type: deftypevr
  33427. #: guix-git/doc/guix.texi:22359
  33428. 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}."
  33429. msgstr ""
  33430. #. type: deftypevr
  33431. #: guix-git/doc/guix.texi:22361
  33432. #, no-wrap
  33433. msgid "{@code{dovecot-configuration} parameter} boolean shutdown-clients?"
  33434. msgstr ""
  33435. #. type: deftypevr
  33436. #: guix-git/doc/guix.texi:22367
  33437. 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}."
  33438. msgstr ""
  33439. #. type: deftypevr
  33440. #: guix-git/doc/guix.texi:22369
  33441. #, no-wrap
  33442. msgid "{@code{dovecot-configuration} parameter} non-negative-integer doveadm-worker-count"
  33443. msgstr ""
  33444. #. type: deftypevr
  33445. #: guix-git/doc/guix.texi:22373
  33446. 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}."
  33447. msgstr ""
  33448. #. type: deftypevr
  33449. #: guix-git/doc/guix.texi:22375
  33450. #, no-wrap
  33451. msgid "{@code{dovecot-configuration} parameter} string doveadm-socket-path"
  33452. msgstr ""
  33453. #. type: deftypevr
  33454. #: guix-git/doc/guix.texi:22378
  33455. msgid "UNIX socket or host:port used for connecting to doveadm server. Defaults to @samp{\"doveadm-server\"}."
  33456. msgstr ""
  33457. #. type: deftypevr
  33458. #: guix-git/doc/guix.texi:22380
  33459. #, no-wrap
  33460. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list import-environment"
  33461. msgstr ""
  33462. #. type: deftypevr
  33463. #: guix-git/doc/guix.texi:22384
  33464. 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."
  33465. msgstr ""
  33466. #. type: deftypevr
  33467. #: guix-git/doc/guix.texi:22386
  33468. #, no-wrap
  33469. msgid "{@code{dovecot-configuration} parameter} boolean disable-plaintext-auth?"
  33470. msgstr ""
  33471. #. type: deftypevr
  33472. #: guix-git/doc/guix.texi:22393
  33473. 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}."
  33474. msgstr ""
  33475. #. type: deftypevr
  33476. #: guix-git/doc/guix.texi:22395
  33477. #, no-wrap
  33478. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-cache-size"
  33479. msgstr ""
  33480. #. type: deftypevr
  33481. #: guix-git/doc/guix.texi:22400
  33482. 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}."
  33483. msgstr ""
  33484. #. type: deftypevr
  33485. #: guix-git/doc/guix.texi:22402
  33486. #, no-wrap
  33487. msgid "{@code{dovecot-configuration} parameter} string auth-cache-ttl"
  33488. msgstr ""
  33489. #. type: deftypevr
  33490. #: guix-git/doc/guix.texi:22410
  33491. 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\"}."
  33492. msgstr ""
  33493. #. type: deftypevr
  33494. #: guix-git/doc/guix.texi:22412
  33495. #, no-wrap
  33496. msgid "{@code{dovecot-configuration} parameter} string auth-cache-negative-ttl"
  33497. msgstr ""
  33498. #. type: deftypevr
  33499. #: guix-git/doc/guix.texi:22416
  33500. msgid "TTL for negative hits (user not found, password mismatch). 0 disables caching them completely. Defaults to @samp{\"1 hour\"}."
  33501. msgstr ""
  33502. #. type: deftypevr
  33503. #: guix-git/doc/guix.texi:22418
  33504. #, no-wrap
  33505. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-realms"
  33506. msgstr ""
  33507. #. type: deftypevr
  33508. #: guix-git/doc/guix.texi:22424
  33509. 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{()}."
  33510. msgstr ""
  33511. #. type: deftypevr
  33512. #: guix-git/doc/guix.texi:22426
  33513. #, no-wrap
  33514. msgid "{@code{dovecot-configuration} parameter} string auth-default-realm"
  33515. msgstr ""
  33516. #. type: deftypevr
  33517. #: guix-git/doc/guix.texi:22431
  33518. 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{\"\"}."
  33519. msgstr ""
  33520. #. type: deftypevr
  33521. #: guix-git/doc/guix.texi:22433
  33522. #, no-wrap
  33523. msgid "{@code{dovecot-configuration} parameter} string auth-username-chars"
  33524. msgstr ""
  33525. #. type: deftypevr
  33526. #: guix-git/doc/guix.texi:22440
  33527. 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.-_@@\"}."
  33528. msgstr ""
  33529. #. type: deftypevr
  33530. #: guix-git/doc/guix.texi:22442
  33531. #, no-wrap
  33532. msgid "{@code{dovecot-configuration} parameter} string auth-username-translation"
  33533. msgstr ""
  33534. #. type: deftypevr
  33535. #: guix-git/doc/guix.texi:22448
  33536. 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{\"\"}."
  33537. msgstr ""
  33538. #. type: deftypevr
  33539. #: guix-git/doc/guix.texi:22450
  33540. #, no-wrap
  33541. msgid "{@code{dovecot-configuration} parameter} string auth-username-format"
  33542. msgstr ""
  33543. #. type: deftypevr
  33544. #: guix-git/doc/guix.texi:22457
  33545. 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\"}."
  33546. msgstr ""
  33547. #. type: deftypevr
  33548. #: guix-git/doc/guix.texi:22459
  33549. #, no-wrap
  33550. msgid "{@code{dovecot-configuration} parameter} string auth-master-user-separator"
  33551. msgstr ""
  33552. #. type: deftypevr
  33553. #: guix-git/doc/guix.texi:22467
  33554. 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{\"\"}."
  33555. msgstr ""
  33556. #. type: deftypevr
  33557. #: guix-git/doc/guix.texi:22469
  33558. #, no-wrap
  33559. msgid "{@code{dovecot-configuration} parameter} string auth-anonymous-username"
  33560. msgstr ""
  33561. #. type: deftypevr
  33562. #: guix-git/doc/guix.texi:22473
  33563. msgid "Username to use for users logging in with ANONYMOUS SASL mechanism. Defaults to @samp{\"anonymous\"}."
  33564. msgstr ""
  33565. #. type: deftypevr
  33566. #: guix-git/doc/guix.texi:22475
  33567. #, no-wrap
  33568. msgid "{@code{dovecot-configuration} parameter} non-negative-integer auth-worker-max-count"
  33569. msgstr ""
  33570. #. type: deftypevr
  33571. #: guix-git/doc/guix.texi:22480
  33572. 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}."
  33573. msgstr ""
  33574. #. type: deftypevr
  33575. #: guix-git/doc/guix.texi:22482
  33576. #, no-wrap
  33577. msgid "{@code{dovecot-configuration} parameter} string auth-gssapi-hostname"
  33578. msgstr ""
  33579. #. type: deftypevr
  33580. #: guix-git/doc/guix.texi:22487
  33581. 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{\"\"}."
  33582. msgstr ""
  33583. #. type: deftypevr
  33584. #: guix-git/doc/guix.texi:22489
  33585. #, no-wrap
  33586. msgid "{@code{dovecot-configuration} parameter} string auth-krb5-keytab"
  33587. msgstr ""
  33588. #. type: deftypevr
  33589. #: guix-git/doc/guix.texi:22495
  33590. 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{\"\"}."
  33591. msgstr ""
  33592. #. type: deftypevr
  33593. #: guix-git/doc/guix.texi:22497
  33594. #, no-wrap
  33595. msgid "{@code{dovecot-configuration} parameter} boolean auth-use-winbind?"
  33596. msgstr ""
  33597. #. type: deftypevr
  33598. #: guix-git/doc/guix.texi:22502
  33599. 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}."
  33600. msgstr ""
  33601. #. type: deftypevr
  33602. #: guix-git/doc/guix.texi:22504
  33603. #, no-wrap
  33604. msgid "{@code{dovecot-configuration} parameter} file-name auth-winbind-helper-path"
  33605. msgstr ""
  33606. #. type: deftypevr
  33607. #: guix-git/doc/guix.texi:22507
  33608. msgid "Path for Samba's @samp{ntlm-auth} helper binary. Defaults to @samp{\"/usr/bin/ntlm_auth\"}."
  33609. msgstr ""
  33610. #. type: deftypevr
  33611. #: guix-git/doc/guix.texi:22509
  33612. #, no-wrap
  33613. msgid "{@code{dovecot-configuration} parameter} string auth-failure-delay"
  33614. msgstr ""
  33615. #. type: deftypevr
  33616. #: guix-git/doc/guix.texi:22512
  33617. msgid "Time to delay before replying to failed authentications. Defaults to @samp{\"2 secs\"}."
  33618. msgstr ""
  33619. #. type: deftypevr
  33620. #: guix-git/doc/guix.texi:22514
  33621. #, no-wrap
  33622. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-require-client-cert?"
  33623. msgstr ""
  33624. #. type: deftypevr
  33625. #: guix-git/doc/guix.texi:22518
  33626. msgid "Require a valid SSL client certificate or the authentication fails. Defaults to @samp{#f}."
  33627. msgstr ""
  33628. #. type: deftypevr
  33629. #: guix-git/doc/guix.texi:22520
  33630. #, no-wrap
  33631. msgid "{@code{dovecot-configuration} parameter} boolean auth-ssl-username-from-cert?"
  33632. msgstr ""
  33633. #. type: deftypevr
  33634. #: guix-git/doc/guix.texi:22525
  33635. 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}."
  33636. msgstr ""
  33637. #. type: deftypevr
  33638. #: guix-git/doc/guix.texi:22527
  33639. #, no-wrap
  33640. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list auth-mechanisms"
  33641. msgstr ""
  33642. #. type: deftypevr
  33643. #: guix-git/doc/guix.texi:22533
  33644. 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."
  33645. msgstr ""
  33646. #. type: deftypevr
  33647. #: guix-git/doc/guix.texi:22535
  33648. #, no-wrap
  33649. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-servers"
  33650. msgstr ""
  33651. #. type: deftypevr
  33652. #: guix-git/doc/guix.texi:22540
  33653. 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{()}."
  33654. msgstr ""
  33655. #. type: deftypevr
  33656. #: guix-git/doc/guix.texi:22542
  33657. #, no-wrap
  33658. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list director-mail-servers"
  33659. msgstr ""
  33660. #. type: deftypevr
  33661. #: guix-git/doc/guix.texi:22546
  33662. 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{()}."
  33663. msgstr ""
  33664. #. type: deftypevr
  33665. #: guix-git/doc/guix.texi:22548
  33666. #, no-wrap
  33667. msgid "{@code{dovecot-configuration} parameter} string director-user-expire"
  33668. msgstr ""
  33669. #. type: deftypevr
  33670. #: guix-git/doc/guix.texi:22552
  33671. msgid "How long to redirect users to a specific server after it no longer has any connections. Defaults to @samp{\"15 min\"}."
  33672. msgstr ""
  33673. #. type: deftypevr
  33674. #: guix-git/doc/guix.texi:22554
  33675. #, no-wrap
  33676. msgid "{@code{dovecot-configuration} parameter} string director-username-hash"
  33677. msgstr ""
  33678. #. type: deftypevr
  33679. #: guix-git/doc/guix.texi:22559
  33680. 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\"}."
  33681. msgstr ""
  33682. #. type: deftypevr
  33683. #: guix-git/doc/guix.texi:22561
  33684. #, no-wrap
  33685. msgid "{@code{dovecot-configuration} parameter} string log-path"
  33686. msgstr ""
  33687. #. type: deftypevr
  33688. #: guix-git/doc/guix.texi:22565
  33689. msgid "Log file to use for error messages. @samp{syslog} logs to syslog, @samp{/dev/stderr} logs to stderr. Defaults to @samp{\"syslog\"}."
  33690. msgstr ""
  33691. #. type: deftypevr
  33692. #: guix-git/doc/guix.texi:22567
  33693. #, no-wrap
  33694. msgid "{@code{dovecot-configuration} parameter} string info-log-path"
  33695. msgstr ""
  33696. #. type: deftypevr
  33697. #: guix-git/doc/guix.texi:22571
  33698. msgid "Log file to use for informational messages. Defaults to @samp{log-path}. Defaults to @samp{\"\"}."
  33699. msgstr ""
  33700. #. type: deftypevr
  33701. #: guix-git/doc/guix.texi:22573
  33702. #, no-wrap
  33703. msgid "{@code{dovecot-configuration} parameter} string debug-log-path"
  33704. msgstr ""
  33705. #. type: deftypevr
  33706. #: guix-git/doc/guix.texi:22577
  33707. msgid "Log file to use for debug messages. Defaults to @samp{info-log-path}. Defaults to @samp{\"\"}."
  33708. msgstr ""
  33709. #. type: deftypevr
  33710. #: guix-git/doc/guix.texi:22579
  33711. #, no-wrap
  33712. msgid "{@code{dovecot-configuration} parameter} string syslog-facility"
  33713. msgstr ""
  33714. #. type: deftypevr
  33715. #: guix-git/doc/guix.texi:22584
  33716. 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\"}."
  33717. msgstr ""
  33718. #. type: deftypevr
  33719. #: guix-git/doc/guix.texi:22586
  33720. #, no-wrap
  33721. msgid "{@code{dovecot-configuration} parameter} boolean auth-verbose?"
  33722. msgstr ""
  33723. #. type: deftypevr
  33724. #: guix-git/doc/guix.texi:22590
  33725. msgid "Log unsuccessful authentication attempts and the reasons why they failed. Defaults to @samp{#f}."
  33726. msgstr ""
  33727. #. type: deftypevr
  33728. #: guix-git/doc/guix.texi:22592
  33729. #, no-wrap
  33730. msgid "{@code{dovecot-configuration} parameter} string auth-verbose-passwords"
  33731. msgstr ""
  33732. #. type: deftypevr
  33733. #: guix-git/doc/guix.texi:22599
  33734. 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\"}."
  33735. msgstr ""
  33736. #. type: deftypevr
  33737. #: guix-git/doc/guix.texi:22601
  33738. #, no-wrap
  33739. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug?"
  33740. msgstr ""
  33741. #. type: deftypevr
  33742. #: guix-git/doc/guix.texi:22605
  33743. msgid "Even more verbose logging for debugging purposes. Shows for example SQL queries. Defaults to @samp{#f}."
  33744. msgstr ""
  33745. #. type: deftypevr
  33746. #: guix-git/doc/guix.texi:22607
  33747. #, no-wrap
  33748. msgid "{@code{dovecot-configuration} parameter} boolean auth-debug-passwords?"
  33749. msgstr ""
  33750. #. type: deftypevr
  33751. #: guix-git/doc/guix.texi:22612
  33752. 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}."
  33753. msgstr ""
  33754. #. type: deftypevr
  33755. #: guix-git/doc/guix.texi:22614
  33756. #, no-wrap
  33757. msgid "{@code{dovecot-configuration} parameter} boolean mail-debug?"
  33758. msgstr ""
  33759. #. type: deftypevr
  33760. #: guix-git/doc/guix.texi:22618
  33761. msgid "Enable mail process debugging. This can help you figure out why Dovecot isn't finding your mails. Defaults to @samp{#f}."
  33762. msgstr ""
  33763. #. type: deftypevr
  33764. #: guix-git/doc/guix.texi:22620
  33765. #, no-wrap
  33766. msgid "{@code{dovecot-configuration} parameter} boolean verbose-ssl?"
  33767. msgstr ""
  33768. #. type: deftypevr
  33769. #: guix-git/doc/guix.texi:22623
  33770. msgid "Show protocol level SSL errors. Defaults to @samp{#f}."
  33771. msgstr ""
  33772. #. type: deftypevr
  33773. #: guix-git/doc/guix.texi:22625
  33774. #, no-wrap
  33775. msgid "{@code{dovecot-configuration} parameter} string log-timestamp"
  33776. msgstr ""
  33777. #. type: deftypevr
  33778. #: guix-git/doc/guix.texi:22629
  33779. msgid "Prefix for each line written to log file. % codes are in strftime(3) format. Defaults to @samp{\"\\\"%b %d %H:%M:%S \\\"\"}."
  33780. msgstr ""
  33781. #. type: deftypevr
  33782. #: guix-git/doc/guix.texi:22631
  33783. #, no-wrap
  33784. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list login-log-format-elements"
  33785. msgstr ""
  33786. #. type: deftypevr
  33787. #: guix-git/doc/guix.texi:22635
  33788. 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."
  33789. msgstr ""
  33790. #. type: deftypevr
  33791. #: guix-git/doc/guix.texi:22637
  33792. #, no-wrap
  33793. msgid "{@code{dovecot-configuration} parameter} string login-log-format"
  33794. msgstr ""
  33795. #. type: deftypevr
  33796. #: guix-git/doc/guix.texi:22641
  33797. msgid "Login log format. %s contains @samp{login-log-format-elements} string, %$ contains the data we want to log. Defaults to @samp{\"%$: %s\"}."
  33798. msgstr ""
  33799. #. type: deftypevr
  33800. #: guix-git/doc/guix.texi:22643
  33801. #, no-wrap
  33802. msgid "{@code{dovecot-configuration} parameter} string mail-log-prefix"
  33803. msgstr ""
  33804. #. type: deftypevr
  33805. #: guix-git/doc/guix.texi:22647
  33806. 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@}>: \\\"\"}."
  33807. msgstr ""
  33808. #. type: deftypevr
  33809. #: guix-git/doc/guix.texi:22649
  33810. #, no-wrap
  33811. msgid "{@code{dovecot-configuration} parameter} string deliver-log-format"
  33812. msgstr ""
  33813. #. type: deftypevr
  33814. #: guix-git/doc/guix.texi:22651
  33815. msgid "Format to use for logging mail deliveries. You can use variables:"
  33816. msgstr ""
  33817. #. type: item
  33818. #: guix-git/doc/guix.texi:22652
  33819. #, no-wrap
  33820. msgid "%$"
  33821. msgstr ""
  33822. #. type: table
  33823. #: guix-git/doc/guix.texi:22654
  33824. msgid "Delivery status message (e.g.@: @samp{saved to INBOX})"
  33825. msgstr ""
  33826. #. type: item
  33827. #: guix-git/doc/guix.texi:22654
  33828. #, no-wrap
  33829. msgid "%m"
  33830. msgstr ""
  33831. #. type: table
  33832. #: guix-git/doc/guix.texi:22656
  33833. msgid "Message-ID"
  33834. msgstr ""
  33835. #. type: item
  33836. #: guix-git/doc/guix.texi:22656 guix-git/doc/guix.texi:23199
  33837. #, no-wrap
  33838. msgid "%s"
  33839. msgstr ""
  33840. #. type: table
  33841. #: guix-git/doc/guix.texi:22658
  33842. msgid "Subject"
  33843. msgstr ""
  33844. #. type: item
  33845. #: guix-git/doc/guix.texi:22658
  33846. #, no-wrap
  33847. msgid "%f"
  33848. msgstr ""
  33849. #. type: table
  33850. #: guix-git/doc/guix.texi:22660
  33851. msgid "From address"
  33852. msgstr ""
  33853. #. type: table
  33854. #: guix-git/doc/guix.texi:22662
  33855. msgid "Physical size"
  33856. msgstr ""
  33857. #. type: item
  33858. #: guix-git/doc/guix.texi:22662
  33859. #, no-wrap
  33860. msgid "%w"
  33861. msgstr ""
  33862. #. type: table
  33863. #: guix-git/doc/guix.texi:22664
  33864. msgid "Virtual size."
  33865. msgstr ""
  33866. #. type: deftypevr
  33867. #: guix-git/doc/guix.texi:22666
  33868. msgid "Defaults to @samp{\"msgid=%m: %$\"}."
  33869. msgstr ""
  33870. #. type: deftypevr
  33871. #: guix-git/doc/guix.texi:22668
  33872. #, no-wrap
  33873. msgid "{@code{dovecot-configuration} parameter} string mail-location"
  33874. msgstr ""
  33875. #. type: deftypevr
  33876. #: guix-git/doc/guix.texi:22673
  33877. 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."
  33878. msgstr ""
  33879. #. type: deftypevr
  33880. #: guix-git/doc/guix.texi:22679
  33881. 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."
  33882. msgstr ""
  33883. #. type: deftypevr
  33884. #: guix-git/doc/guix.texi:22681
  33885. msgid "There are a few special variables you can use, e.g.:"
  33886. msgstr ""
  33887. #. type: table
  33888. #: guix-git/doc/guix.texi:22685
  33889. msgid "username"
  33890. msgstr ""
  33891. #. type: item
  33892. #: guix-git/doc/guix.texi:22685 guix-git/doc/guix.texi:23195
  33893. #, no-wrap
  33894. msgid "%n"
  33895. msgstr ""
  33896. #. type: table
  33897. #: guix-git/doc/guix.texi:22687
  33898. msgid "user part in user@@domain, same as %u if there's no domain"
  33899. msgstr ""
  33900. #. type: item
  33901. #: guix-git/doc/guix.texi:22687
  33902. #, no-wrap
  33903. msgid "%d"
  33904. msgstr ""
  33905. #. type: table
  33906. #: guix-git/doc/guix.texi:22689
  33907. msgid "domain part in user@@domain, empty if there's no domain"
  33908. msgstr ""
  33909. #. type: item
  33910. #: guix-git/doc/guix.texi:22689
  33911. #, no-wrap
  33912. msgid "%h"
  33913. msgstr ""
  33914. #. type: table
  33915. #: guix-git/doc/guix.texi:22691
  33916. msgid "home director"
  33917. msgstr ""
  33918. #. type: deftypevr
  33919. #: guix-git/doc/guix.texi:22694
  33920. msgid "See doc/wiki/Variables.txt for full list. Some examples:"
  33921. msgstr ""
  33922. #. type: item
  33923. #: guix-git/doc/guix.texi:22695
  33924. #, no-wrap
  33925. msgid "maildir:~/Maildir"
  33926. msgstr ""
  33927. #. type: item
  33928. #: guix-git/doc/guix.texi:22696
  33929. #, no-wrap
  33930. msgid "mbox:~/mail:INBOX=/var/mail/%u"
  33931. msgstr ""
  33932. #. type: item
  33933. #: guix-git/doc/guix.texi:22697
  33934. #, no-wrap
  33935. msgid "mbox:/var/mail/%d/%1n/%n:INDEX=/var/indexes/%d/%1n/%"
  33936. msgstr ""
  33937. #. type: deftypevr
  33938. #: guix-git/doc/guix.texi:22702
  33939. #, no-wrap
  33940. msgid "{@code{dovecot-configuration} parameter} string mail-uid"
  33941. msgstr ""
  33942. #. type: deftypevr
  33943. #: guix-git/doc/guix.texi:22707
  33944. 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{\"\"}."
  33945. msgstr ""
  33946. #. type: deftypevr
  33947. #: guix-git/doc/guix.texi:22709
  33948. #, no-wrap
  33949. msgid "{@code{dovecot-configuration} parameter} string mail-gid"
  33950. msgstr ""
  33951. #. type: deftypevr
  33952. #: guix-git/doc/guix.texi:22714
  33953. #, no-wrap
  33954. msgid "{@code{dovecot-configuration} parameter} string mail-privileged-group"
  33955. msgstr ""
  33956. #. type: deftypevr
  33957. #: guix-git/doc/guix.texi:22720
  33958. 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{\"\"}."
  33959. msgstr ""
  33960. #. type: deftypevr
  33961. #: guix-git/doc/guix.texi:22722
  33962. #, no-wrap
  33963. msgid "{@code{dovecot-configuration} parameter} string mail-access-groups"
  33964. msgstr ""
  33965. #. type: deftypevr
  33966. #: guix-git/doc/guix.texi:22730
  33967. 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{\"\"}."
  33968. msgstr ""
  33969. #. type: deftypevr
  33970. #: guix-git/doc/guix.texi:22732
  33971. #, no-wrap
  33972. msgid "{@code{dovecot-configuration} parameter} string mail-attribute-dict"
  33973. msgstr ""
  33974. #. type: deftypevr
  33975. #: guix-git/doc/guix.texi:22735
  33976. msgid "The location of a dictionary used to store @code{IMAP METADATA} as defined by @uref{https://tools.ietf.org/html/rfc5464, RFC@tie{}5464}."
  33977. msgstr ""
  33978. #. type: deftypevr
  33979. #: guix-git/doc/guix.texi:22738
  33980. msgid "The IMAP METADATA commands are available only if the ``imap'' protocol configuration's @code{imap-metadata?} field is @samp{#t}."
  33981. msgstr ""
  33982. #. type: deftypevr
  33983. #: guix-git/doc/guix.texi:22743
  33984. #, no-wrap
  33985. msgid "{@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?"
  33986. msgstr ""
  33987. #. type: deftypevr
  33988. #: guix-git/doc/guix.texi:22749
  33989. 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}."
  33990. msgstr ""
  33991. #. type: deftypevr
  33992. #: guix-git/doc/guix.texi:22751
  33993. #, no-wrap
  33994. msgid "{@code{dovecot-configuration} parameter} boolean mmap-disable?"
  33995. msgstr ""
  33996. #. type: deftypevr
  33997. #: guix-git/doc/guix.texi:22755
  33998. 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}."
  33999. msgstr ""
  34000. #. type: deftypevr
  34001. #: guix-git/doc/guix.texi:22757
  34002. #, no-wrap
  34003. msgid "{@code{dovecot-configuration} parameter} boolean dotlock-use-excl?"
  34004. msgstr ""
  34005. #. type: deftypevr
  34006. #: guix-git/doc/guix.texi:22762
  34007. 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}."
  34008. msgstr ""
  34009. #. type: deftypevr
  34010. #: guix-git/doc/guix.texi:22764
  34011. #, no-wrap
  34012. msgid "{@code{dovecot-configuration} parameter} string mail-fsync"
  34013. msgstr ""
  34014. #. type: deftypevr
  34015. #: guix-git/doc/guix.texi:22766
  34016. msgid "When to use fsync() or fdatasync() calls:"
  34017. msgstr ""
  34018. #. type: item
  34019. #: guix-git/doc/guix.texi:22767
  34020. #, no-wrap
  34021. msgid "optimized"
  34022. msgstr ""
  34023. #. type: table
  34024. #: guix-git/doc/guix.texi:22769
  34025. msgid "Whenever necessary to avoid losing important data"
  34026. msgstr ""
  34027. #. type: table
  34028. #: guix-git/doc/guix.texi:22771
  34029. msgid "Useful with e.g.@: NFS when @code{write()}s are delayed"
  34030. msgstr ""
  34031. #. type: table
  34032. #: guix-git/doc/guix.texi:22773
  34033. msgid "Never use it (best performance, but crashes can lose data)."
  34034. msgstr ""
  34035. #. type: deftypevr
  34036. #: guix-git/doc/guix.texi:22775
  34037. msgid "Defaults to @samp{\"optimized\"}."
  34038. msgstr ""
  34039. #. type: deftypevr
  34040. #: guix-git/doc/guix.texi:22777
  34041. #, no-wrap
  34042. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-storage?"
  34043. msgstr ""
  34044. #. type: deftypevr
  34045. #: guix-git/doc/guix.texi:22782
  34046. 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}."
  34047. msgstr ""
  34048. #. type: deftypevr
  34049. #: guix-git/doc/guix.texi:22784
  34050. #, no-wrap
  34051. msgid "{@code{dovecot-configuration} parameter} boolean mail-nfs-index?"
  34052. msgstr ""
  34053. #. type: deftypevr
  34054. #: guix-git/doc/guix.texi:22788
  34055. 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}."
  34056. msgstr ""
  34057. #. type: deftypevr
  34058. #: guix-git/doc/guix.texi:22790
  34059. #, no-wrap
  34060. msgid "{@code{dovecot-configuration} parameter} string lock-method"
  34061. msgstr ""
  34062. #. type: deftypevr
  34063. #: guix-git/doc/guix.texi:22796
  34064. 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\"}."
  34065. msgstr ""
  34066. #. type: deftypevr
  34067. #: guix-git/doc/guix.texi:22798
  34068. #, no-wrap
  34069. msgid "{@code{dovecot-configuration} parameter} file-name mail-temp-dir"
  34070. msgstr ""
  34071. #. type: deftypevr
  34072. #: guix-git/doc/guix.texi:22802
  34073. msgid "Directory in which LDA/LMTP temporarily stores incoming mails >128 kB. Defaults to @samp{\"/tmp\"}."
  34074. msgstr ""
  34075. #. type: deftypevr
  34076. #: guix-git/doc/guix.texi:22804
  34077. #, no-wrap
  34078. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-uid"
  34079. msgstr ""
  34080. #. type: deftypevr
  34081. #: guix-git/doc/guix.texi:22810
  34082. 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}."
  34083. msgstr ""
  34084. #. type: deftypevr
  34085. #: guix-git/doc/guix.texi:22812
  34086. #, no-wrap
  34087. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-uid"
  34088. msgstr ""
  34089. #. type: deftypevr
  34090. #: guix-git/doc/guix.texi:22817
  34091. #, no-wrap
  34092. msgid "{@code{dovecot-configuration} parameter} non-negative-integer first-valid-gid"
  34093. msgstr ""
  34094. #. type: deftypevr
  34095. #: guix-git/doc/guix.texi:22822
  34096. 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}."
  34097. msgstr ""
  34098. #. type: deftypevr
  34099. #: guix-git/doc/guix.texi:22824
  34100. #, no-wrap
  34101. msgid "{@code{dovecot-configuration} parameter} non-negative-integer last-valid-gid"
  34102. msgstr ""
  34103. #. type: deftypevr
  34104. #: guix-git/doc/guix.texi:22829
  34105. #, no-wrap
  34106. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-max-keyword-length"
  34107. msgstr ""
  34108. #. type: deftypevr
  34109. #: guix-git/doc/guix.texi:22833
  34110. msgid "Maximum allowed length for mail keyword name. It's only forced when trying to create new keywords. Defaults to @samp{50}."
  34111. msgstr ""
  34112. #. type: deftypevr
  34113. #: guix-git/doc/guix.texi:22835
  34114. #, no-wrap
  34115. msgid "{@code{dovecot-configuration} parameter} colon-separated-file-name-list valid-chroot-dirs"
  34116. msgstr ""
  34117. #. type: deftypevr
  34118. #: guix-git/doc/guix.texi:22845
  34119. 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{()}."
  34120. msgstr ""
  34121. #. type: deftypevr
  34122. #: guix-git/doc/guix.texi:22847
  34123. #, no-wrap
  34124. msgid "{@code{dovecot-configuration} parameter} string mail-chroot"
  34125. msgstr ""
  34126. #. type: deftypevr
  34127. #: guix-git/doc/guix.texi:22856
  34128. 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{\"\"}."
  34129. msgstr ""
  34130. #. type: deftypevr
  34131. #: guix-git/doc/guix.texi:22858
  34132. #, no-wrap
  34133. msgid "{@code{dovecot-configuration} parameter} file-name auth-socket-path"
  34134. msgstr ""
  34135. #. type: deftypevr
  34136. #: guix-git/doc/guix.texi:22862
  34137. 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\"}."
  34138. msgstr ""
  34139. #. type: deftypevr
  34140. #: guix-git/doc/guix.texi:22864
  34141. #, no-wrap
  34142. msgid "{@code{dovecot-configuration} parameter} file-name mail-plugin-dir"
  34143. msgstr ""
  34144. #. type: deftypevr
  34145. #: guix-git/doc/guix.texi:22867
  34146. msgid "Directory where to look up mail plugins. Defaults to @samp{\"/usr/lib/dovecot\"}."
  34147. msgstr ""
  34148. #. type: deftypevr
  34149. #: guix-git/doc/guix.texi:22869
  34150. #, no-wrap
  34151. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mail-plugins"
  34152. msgstr ""
  34153. #. type: deftypevr
  34154. #: guix-git/doc/guix.texi:22873
  34155. 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{()}."
  34156. msgstr ""
  34157. #. type: deftypevr
  34158. #: guix-git/doc/guix.texi:22875
  34159. #, no-wrap
  34160. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-cache-min-mail-count"
  34161. msgstr ""
  34162. #. type: deftypevr
  34163. #: guix-git/doc/guix.texi:22880
  34164. 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}."
  34165. msgstr ""
  34166. #. type: deftypevr
  34167. #: guix-git/doc/guix.texi:22882
  34168. #, no-wrap
  34169. msgid "{@code{dovecot-configuration} parameter} string mailbox-idle-check-interval"
  34170. msgstr ""
  34171. #. type: deftypevr
  34172. #: guix-git/doc/guix.texi:22889
  34173. 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\"}."
  34174. msgstr ""
  34175. #. type: deftypevr
  34176. #: guix-git/doc/guix.texi:22891
  34177. #, no-wrap
  34178. msgid "{@code{dovecot-configuration} parameter} boolean mail-save-crlf?"
  34179. msgstr ""
  34180. #. type: deftypevr
  34181. #: guix-git/doc/guix.texi:22898
  34182. 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}."
  34183. msgstr ""
  34184. #. type: deftypevr
  34185. #: guix-git/doc/guix.texi:22900
  34186. #, no-wrap
  34187. msgid "{@code{dovecot-configuration} parameter} boolean maildir-stat-dirs?"
  34188. msgstr ""
  34189. #. type: deftypevr
  34190. #: guix-git/doc/guix.texi:22908
  34191. 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}."
  34192. msgstr ""
  34193. #. type: deftypevr
  34194. #: guix-git/doc/guix.texi:22910
  34195. #, no-wrap
  34196. msgid "{@code{dovecot-configuration} parameter} boolean maildir-copy-with-hardlinks?"
  34197. msgstr ""
  34198. #. type: deftypevr
  34199. #: guix-git/doc/guix.texi:22915
  34200. 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}."
  34201. msgstr ""
  34202. #. type: deftypevr
  34203. #: guix-git/doc/guix.texi:22917
  34204. #, no-wrap
  34205. msgid "{@code{dovecot-configuration} parameter} boolean maildir-very-dirty-syncs?"
  34206. msgstr ""
  34207. #. type: deftypevr
  34208. #: guix-git/doc/guix.texi:22922
  34209. 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}."
  34210. msgstr ""
  34211. #. type: deftypevr
  34212. #: guix-git/doc/guix.texi:22924
  34213. #, no-wrap
  34214. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-read-locks"
  34215. msgstr ""
  34216. #. type: deftypevr
  34217. #: guix-git/doc/guix.texi:22927
  34218. msgid "Which locking methods to use for locking mbox. There are four available:"
  34219. msgstr ""
  34220. #. type: item
  34221. #: guix-git/doc/guix.texi:22929
  34222. #, no-wrap
  34223. msgid "dotlock"
  34224. msgstr ""
  34225. #. type: table
  34226. #: guix-git/doc/guix.texi:22933
  34227. 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."
  34228. msgstr ""
  34229. #. type: item
  34230. #: guix-git/doc/guix.texi:22933
  34231. #, no-wrap
  34232. msgid "dotlock-try"
  34233. msgstr ""
  34234. #. type: table
  34235. #: guix-git/doc/guix.texi:22936
  34236. msgid "Same as dotlock, but if it fails because of permissions or because there isn't enough disk space, just skip it."
  34237. msgstr ""
  34238. #. type: item
  34239. #: guix-git/doc/guix.texi:22936
  34240. #, no-wrap
  34241. msgid "fcntl"
  34242. msgstr ""
  34243. #. type: table
  34244. #: guix-git/doc/guix.texi:22938
  34245. msgid "Use this if possible. Works with NFS too if lockd is used."
  34246. msgstr ""
  34247. #. type: item
  34248. #: guix-git/doc/guix.texi:22938
  34249. #, no-wrap
  34250. msgid "flock"
  34251. msgstr ""
  34252. #. type: table
  34253. #: guix-git/doc/guix.texi:22940 guix-git/doc/guix.texi:22942
  34254. msgid "May not exist in all systems. Doesn't work with NFS."
  34255. msgstr ""
  34256. #. type: item
  34257. #: guix-git/doc/guix.texi:22940
  34258. #, no-wrap
  34259. msgid "lockf"
  34260. msgstr ""
  34261. #. type: deftypevr
  34262. #: guix-git/doc/guix.texi:22948
  34263. 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."
  34264. msgstr ""
  34265. #. type: deftypevr
  34266. #: guix-git/doc/guix.texi:22950
  34267. #, no-wrap
  34268. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list mbox-write-locks"
  34269. msgstr ""
  34270. #. type: deftypevr
  34271. #: guix-git/doc/guix.texi:22954
  34272. #, no-wrap
  34273. msgid "{@code{dovecot-configuration} parameter} string mbox-lock-timeout"
  34274. msgstr ""
  34275. #. type: deftypevr
  34276. #: guix-git/doc/guix.texi:22957
  34277. msgid "Maximum time to wait for lock (all of them) before aborting. Defaults to @samp{\"5 mins\"}."
  34278. msgstr ""
  34279. #. type: deftypevr
  34280. #: guix-git/doc/guix.texi:22959
  34281. #, no-wrap
  34282. msgid "{@code{dovecot-configuration} parameter} string mbox-dotlock-change-timeout"
  34283. msgstr ""
  34284. #. type: deftypevr
  34285. #: guix-git/doc/guix.texi:22963
  34286. 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\"}."
  34287. msgstr ""
  34288. #. type: deftypevr
  34289. #: guix-git/doc/guix.texi:22965
  34290. #, no-wrap
  34291. msgid "{@code{dovecot-configuration} parameter} boolean mbox-dirty-syncs?"
  34292. msgstr ""
  34293. #. type: deftypevr
  34294. #: guix-git/doc/guix.texi:22976
  34295. 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}."
  34296. msgstr ""
  34297. #. type: deftypevr
  34298. #: guix-git/doc/guix.texi:22978
  34299. #, no-wrap
  34300. msgid "{@code{dovecot-configuration} parameter} boolean mbox-very-dirty-syncs?"
  34301. msgstr ""
  34302. #. type: deftypevr
  34303. #: guix-git/doc/guix.texi:22983
  34304. 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}."
  34305. msgstr ""
  34306. #. type: deftypevr
  34307. #: guix-git/doc/guix.texi:22985
  34308. #, no-wrap
  34309. msgid "{@code{dovecot-configuration} parameter} boolean mbox-lazy-writes?"
  34310. msgstr ""
  34311. #. type: deftypevr
  34312. #: guix-git/doc/guix.texi:22991
  34313. 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}."
  34314. msgstr ""
  34315. #. type: deftypevr
  34316. #: guix-git/doc/guix.texi:22993
  34317. #, no-wrap
  34318. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mbox-min-index-size"
  34319. msgstr ""
  34320. #. type: deftypevr
  34321. #: guix-git/doc/guix.texi:22998
  34322. 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}."
  34323. msgstr ""
  34324. #. type: deftypevr
  34325. #: guix-git/doc/guix.texi:23000
  34326. #, no-wrap
  34327. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mdbox-rotate-size"
  34328. msgstr ""
  34329. #. type: deftypevr
  34330. #: guix-git/doc/guix.texi:23003
  34331. msgid "Maximum dbox file size until it's rotated. Defaults to @samp{10000000}."
  34332. msgstr ""
  34333. #. type: deftypevr
  34334. #: guix-git/doc/guix.texi:23005
  34335. #, no-wrap
  34336. msgid "{@code{dovecot-configuration} parameter} string mdbox-rotate-interval"
  34337. msgstr ""
  34338. #. type: deftypevr
  34339. #: guix-git/doc/guix.texi:23010
  34340. 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\"}."
  34341. msgstr ""
  34342. #. type: deftypevr
  34343. #: guix-git/doc/guix.texi:23012
  34344. #, no-wrap
  34345. msgid "{@code{dovecot-configuration} parameter} boolean mdbox-preallocate-space?"
  34346. msgstr ""
  34347. #. type: deftypevr
  34348. #: guix-git/doc/guix.texi:23017
  34349. 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}."
  34350. msgstr ""
  34351. #. type: deftypevr
  34352. #: guix-git/doc/guix.texi:23019
  34353. #, no-wrap
  34354. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-dir"
  34355. msgstr ""
  34356. #. type: deftypevr
  34357. #: guix-git/doc/guix.texi:23023
  34358. 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."
  34359. msgstr ""
  34360. #. type: deftypevr
  34361. #: guix-git/doc/guix.texi:23025
  34362. msgid "WARNING: This feature hasn't been tested much yet. Use at your own risk."
  34363. msgstr ""
  34364. #. type: deftypevr
  34365. #: guix-git/doc/guix.texi:23028
  34366. msgid "Directory root where to store mail attachments. Disabled, if empty. Defaults to @samp{\"\"}."
  34367. msgstr ""
  34368. #. type: deftypevr
  34369. #: guix-git/doc/guix.texi:23030
  34370. #, no-wrap
  34371. msgid "{@code{dovecot-configuration} parameter} non-negative-integer mail-attachment-min-size"
  34372. msgstr ""
  34373. #. type: deftypevr
  34374. #: guix-git/doc/guix.texi:23035
  34375. 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}."
  34376. msgstr ""
  34377. #. type: deftypevr
  34378. #: guix-git/doc/guix.texi:23037
  34379. #, no-wrap
  34380. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-fs"
  34381. msgstr ""
  34382. #. type: deftypevr
  34383. #: guix-git/doc/guix.texi:23039
  34384. msgid "File system backend to use for saving attachments:"
  34385. msgstr ""
  34386. #. type: item
  34387. #: guix-git/doc/guix.texi:23040
  34388. #, no-wrap
  34389. msgid "posix"
  34390. msgstr ""
  34391. #. type: table
  34392. #: guix-git/doc/guix.texi:23042
  34393. msgid "No SiS done by Dovecot (but this might help FS's own deduplication)"
  34394. msgstr ""
  34395. #. type: item
  34396. #: guix-git/doc/guix.texi:23042
  34397. #, no-wrap
  34398. msgid "sis posix"
  34399. msgstr ""
  34400. #. type: table
  34401. #: guix-git/doc/guix.texi:23044
  34402. msgid "SiS with immediate byte-by-byte comparison during saving"
  34403. msgstr ""
  34404. #. type: item
  34405. #: guix-git/doc/guix.texi:23044
  34406. #, no-wrap
  34407. msgid "sis-queue posix"
  34408. msgstr ""
  34409. #. type: table
  34410. #: guix-git/doc/guix.texi:23046
  34411. msgid "SiS with delayed comparison and deduplication."
  34412. msgstr ""
  34413. #. type: deftypevr
  34414. #: guix-git/doc/guix.texi:23048
  34415. msgid "Defaults to @samp{\"sis posix\"}."
  34416. msgstr ""
  34417. #. type: deftypevr
  34418. #: guix-git/doc/guix.texi:23050
  34419. #, no-wrap
  34420. msgid "{@code{dovecot-configuration} parameter} string mail-attachment-hash"
  34421. msgstr ""
  34422. #. type: deftypevr
  34423. #: guix-git/doc/guix.texi:23056
  34424. 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@}\"}."
  34425. msgstr ""
  34426. #. type: deftypevr
  34427. #: guix-git/doc/guix.texi:23058
  34428. #, no-wrap
  34429. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-process-limit"
  34430. msgstr ""
  34431. #. type: deftypevr
  34432. #: guix-git/doc/guix.texi:23063
  34433. #, no-wrap
  34434. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-client-limit"
  34435. msgstr ""
  34436. #. type: deftypevr
  34437. #: guix-git/doc/guix.texi:23066 guix-git/doc/guix.texi:30632
  34438. msgid "Defaults to @samp{1000}."
  34439. msgstr ""
  34440. #. type: deftypevr
  34441. #: guix-git/doc/guix.texi:23068
  34442. #, no-wrap
  34443. msgid "{@code{dovecot-configuration} parameter} non-negative-integer default-vsz-limit"
  34444. msgstr ""
  34445. #. type: deftypevr
  34446. #: guix-git/doc/guix.texi:23073
  34447. 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}."
  34448. msgstr ""
  34449. #. type: deftypevr
  34450. #: guix-git/doc/guix.texi:23075
  34451. #, no-wrap
  34452. msgid "{@code{dovecot-configuration} parameter} string default-login-user"
  34453. msgstr ""
  34454. #. type: deftypevr
  34455. #: guix-git/doc/guix.texi:23080
  34456. 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\"}."
  34457. msgstr ""
  34458. #. type: deftypevr
  34459. #: guix-git/doc/guix.texi:23082
  34460. #, no-wrap
  34461. msgid "{@code{dovecot-configuration} parameter} string default-internal-user"
  34462. msgstr ""
  34463. #. type: deftypevr
  34464. #: guix-git/doc/guix.texi:23087
  34465. 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\"}."
  34466. msgstr ""
  34467. #. type: deftypevr
  34468. #: guix-git/doc/guix.texi:23089
  34469. #, no-wrap
  34470. msgid "{@code{dovecot-configuration} parameter} string ssl?"
  34471. msgstr ""
  34472. #. type: deftypevr
  34473. #: guix-git/doc/guix.texi:23092
  34474. msgid "SSL/TLS support: yes, no, required. <doc/wiki/SSL.txt>. Defaults to @samp{\"required\"}."
  34475. msgstr ""
  34476. #. type: deftypevr
  34477. #: guix-git/doc/guix.texi:23094
  34478. #, no-wrap
  34479. msgid "{@code{dovecot-configuration} parameter} string ssl-cert"
  34480. msgstr ""
  34481. #. type: deftypevr
  34482. #: guix-git/doc/guix.texi:23097
  34483. msgid "PEM encoded X.509 SSL/TLS certificate (public key). Defaults to @samp{\"</etc/dovecot/default.pem\"}."
  34484. msgstr ""
  34485. #. type: deftypevr
  34486. #: guix-git/doc/guix.texi:23099
  34487. #, no-wrap
  34488. msgid "{@code{dovecot-configuration} parameter} string ssl-key"
  34489. msgstr ""
  34490. #. type: deftypevr
  34491. #: guix-git/doc/guix.texi:23104
  34492. 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\"}."
  34493. msgstr ""
  34494. #. type: deftypevr
  34495. #: guix-git/doc/guix.texi:23106
  34496. #, no-wrap
  34497. msgid "{@code{dovecot-configuration} parameter} string ssl-key-password"
  34498. msgstr ""
  34499. #. type: deftypevr
  34500. #: guix-git/doc/guix.texi:23112
  34501. 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{\"\"}."
  34502. msgstr ""
  34503. #. type: deftypevr
  34504. #: guix-git/doc/guix.texi:23114
  34505. #, no-wrap
  34506. msgid "{@code{dovecot-configuration} parameter} string ssl-ca"
  34507. msgstr ""
  34508. #. type: deftypevr
  34509. #: guix-git/doc/guix.texi:23120
  34510. 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{\"\"}."
  34511. msgstr ""
  34512. #. type: deftypevr
  34513. #: guix-git/doc/guix.texi:23122
  34514. #, no-wrap
  34515. msgid "{@code{dovecot-configuration} parameter} boolean ssl-require-crl?"
  34516. msgstr ""
  34517. #. type: deftypevr
  34518. #: guix-git/doc/guix.texi:23125
  34519. msgid "Require that CRL check succeeds for client certificates. Defaults to @samp{#t}."
  34520. msgstr ""
  34521. #. type: deftypevr
  34522. #: guix-git/doc/guix.texi:23127
  34523. #, no-wrap
  34524. msgid "{@code{dovecot-configuration} parameter} boolean ssl-verify-client-cert?"
  34525. msgstr ""
  34526. #. type: deftypevr
  34527. #: guix-git/doc/guix.texi:23131
  34528. 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}."
  34529. msgstr ""
  34530. #. type: deftypevr
  34531. #: guix-git/doc/guix.texi:23133
  34532. #, no-wrap
  34533. msgid "{@code{dovecot-configuration} parameter} string ssl-cert-username-field"
  34534. msgstr ""
  34535. #. type: deftypevr
  34536. #: guix-git/doc/guix.texi:23138
  34537. 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\"}."
  34538. msgstr ""
  34539. #. type: deftypevr
  34540. #: guix-git/doc/guix.texi:23140
  34541. #, no-wrap
  34542. msgid "{@code{dovecot-configuration} parameter} string ssl-min-protocol"
  34543. msgstr ""
  34544. #. type: deftypevr
  34545. #: guix-git/doc/guix.texi:23143
  34546. msgid "Minimum SSL protocol version to accept. Defaults to @samp{\"TLSv1\"}."
  34547. msgstr ""
  34548. #. type: deftypevr
  34549. #: guix-git/doc/guix.texi:23145
  34550. #, no-wrap
  34551. msgid "{@code{dovecot-configuration} parameter} string ssl-cipher-list"
  34552. msgstr ""
  34553. #. type: deftypevr
  34554. #: guix-git/doc/guix.texi:23148
  34555. msgid "SSL ciphers to use. Defaults to @samp{\"ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@@STRENGTH\"}."
  34556. msgstr ""
  34557. #. type: deftypevr
  34558. #: guix-git/doc/guix.texi:23150
  34559. #, no-wrap
  34560. msgid "{@code{dovecot-configuration} parameter} string ssl-crypto-device"
  34561. msgstr ""
  34562. #. type: deftypevr
  34563. #: guix-git/doc/guix.texi:23153
  34564. msgid "SSL crypto device to use, for valid values run \"openssl engine\". Defaults to @samp{\"\"}."
  34565. msgstr ""
  34566. #. type: deftypevr
  34567. #: guix-git/doc/guix.texi:23155
  34568. #, no-wrap
  34569. msgid "{@code{dovecot-configuration} parameter} string postmaster-address"
  34570. msgstr ""
  34571. #. type: deftypevr
  34572. #: guix-git/doc/guix.texi:23159
  34573. msgid "Address to use when sending rejection mails. %d expands to recipient domain. Defaults to @samp{\"postmaster@@%d\"}."
  34574. msgstr ""
  34575. #. type: deftypevr
  34576. #: guix-git/doc/guix.texi:23161
  34577. #, no-wrap
  34578. msgid "{@code{dovecot-configuration} parameter} string hostname"
  34579. msgstr ""
  34580. #. type: deftypevr
  34581. #: guix-git/doc/guix.texi:23165
  34582. 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{\"\"}."
  34583. msgstr ""
  34584. #. type: deftypevr
  34585. #: guix-git/doc/guix.texi:23167
  34586. #, no-wrap
  34587. msgid "{@code{dovecot-configuration} parameter} boolean quota-full-tempfail?"
  34588. msgstr ""
  34589. #. type: deftypevr
  34590. #: guix-git/doc/guix.texi:23171
  34591. msgid "If user is over quota, return with temporary failure instead of bouncing the mail. Defaults to @samp{#f}."
  34592. msgstr ""
  34593. #. type: deftypevr
  34594. #: guix-git/doc/guix.texi:23173
  34595. #, no-wrap
  34596. msgid "{@code{dovecot-configuration} parameter} file-name sendmail-path"
  34597. msgstr ""
  34598. #. type: deftypevr
  34599. #: guix-git/doc/guix.texi:23176
  34600. msgid "Binary to use for sending mails. Defaults to @samp{\"/usr/sbin/sendmail\"}."
  34601. msgstr ""
  34602. #. type: deftypevr
  34603. #: guix-git/doc/guix.texi:23178
  34604. #, no-wrap
  34605. msgid "{@code{dovecot-configuration} parameter} string submission-host"
  34606. msgstr ""
  34607. #. type: deftypevr
  34608. #: guix-git/doc/guix.texi:23182
  34609. msgid "If non-empty, send mails via this SMTP host[:port] instead of sendmail. Defaults to @samp{\"\"}."
  34610. msgstr ""
  34611. #. type: deftypevr
  34612. #: guix-git/doc/guix.texi:23184
  34613. #, no-wrap
  34614. msgid "{@code{dovecot-configuration} parameter} string rejection-subject"
  34615. msgstr ""
  34616. #. type: deftypevr
  34617. #: guix-git/doc/guix.texi:23188
  34618. 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\"}."
  34619. msgstr ""
  34620. #. type: deftypevr
  34621. #: guix-git/doc/guix.texi:23190
  34622. #, no-wrap
  34623. msgid "{@code{dovecot-configuration} parameter} string rejection-reason"
  34624. msgstr ""
  34625. #. type: deftypevr
  34626. #: guix-git/doc/guix.texi:23193
  34627. msgid "Human readable error message for rejection mails. You can use variables:"
  34628. msgstr ""
  34629. #. type: table
  34630. #: guix-git/doc/guix.texi:23197
  34631. msgid "CRLF"
  34632. msgstr ""
  34633. #. type: item
  34634. #: guix-git/doc/guix.texi:23197
  34635. #, no-wrap
  34636. msgid "%r"
  34637. msgstr ""
  34638. #. type: table
  34639. #: guix-git/doc/guix.texi:23199
  34640. msgid "reason"
  34641. msgstr ""
  34642. #. type: table
  34643. #: guix-git/doc/guix.texi:23201
  34644. msgid "original subject"
  34645. msgstr ""
  34646. #. type: item
  34647. #: guix-git/doc/guix.texi:23201
  34648. #, no-wrap
  34649. msgid "%t"
  34650. msgstr ""
  34651. #. type: table
  34652. #: guix-git/doc/guix.texi:23203
  34653. msgid "recipient"
  34654. msgstr ""
  34655. #. type: deftypevr
  34656. #: guix-git/doc/guix.texi:23205
  34657. msgid "Defaults to @samp{\"Your message to <%t> was automatically rejected:%n%r\"}."
  34658. msgstr ""
  34659. #. type: deftypevr
  34660. #: guix-git/doc/guix.texi:23207
  34661. #, no-wrap
  34662. msgid "{@code{dovecot-configuration} parameter} string recipient-delimiter"
  34663. msgstr ""
  34664. #. type: deftypevr
  34665. #: guix-git/doc/guix.texi:23211
  34666. msgid "Delimiter character between local-part and detail in email address. Defaults to @samp{\"+\"}."
  34667. msgstr ""
  34668. #. type: deftypevr
  34669. #: guix-git/doc/guix.texi:23213
  34670. #, no-wrap
  34671. msgid "{@code{dovecot-configuration} parameter} string lda-original-recipient-header"
  34672. msgstr ""
  34673. #. type: deftypevr
  34674. #: guix-git/doc/guix.texi:23219
  34675. 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{\"\"}."
  34676. msgstr ""
  34677. #. type: deftypevr
  34678. #: guix-git/doc/guix.texi:23221
  34679. #, no-wrap
  34680. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autocreate?"
  34681. msgstr ""
  34682. #. type: deftypevr
  34683. #: guix-git/doc/guix.texi:23225
  34684. msgid "Should saving a mail to a nonexistent mailbox automatically create it?. Defaults to @samp{#f}."
  34685. msgstr ""
  34686. #. type: deftypevr
  34687. #: guix-git/doc/guix.texi:23227
  34688. #, no-wrap
  34689. msgid "{@code{dovecot-configuration} parameter} boolean lda-mailbox-autosubscribe?"
  34690. msgstr ""
  34691. #. type: deftypevr
  34692. #: guix-git/doc/guix.texi:23231
  34693. msgid "Should automatically created mailboxes be also automatically subscribed?. Defaults to @samp{#f}."
  34694. msgstr ""
  34695. #. type: deftypevr
  34696. #: guix-git/doc/guix.texi:23233
  34697. #, no-wrap
  34698. msgid "{@code{dovecot-configuration} parameter} non-negative-integer imap-max-line-length"
  34699. msgstr ""
  34700. #. type: deftypevr
  34701. #: guix-git/doc/guix.texi:23239
  34702. 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}."
  34703. msgstr ""
  34704. #. type: deftypevr
  34705. #: guix-git/doc/guix.texi:23241
  34706. #, no-wrap
  34707. msgid "{@code{dovecot-configuration} parameter} string imap-logout-format"
  34708. msgstr ""
  34709. #. type: deftypevr
  34710. #: guix-git/doc/guix.texi:23243
  34711. msgid "IMAP logout format string:"
  34712. msgstr ""
  34713. #. type: item
  34714. #: guix-git/doc/guix.texi:23244
  34715. #, no-wrap
  34716. msgid "%i"
  34717. msgstr ""
  34718. #. type: table
  34719. #: guix-git/doc/guix.texi:23246
  34720. msgid "total number of bytes read from client"
  34721. msgstr ""
  34722. #. type: item
  34723. #: guix-git/doc/guix.texi:23246
  34724. #, no-wrap
  34725. msgid "%o"
  34726. msgstr ""
  34727. #. type: table
  34728. #: guix-git/doc/guix.texi:23248
  34729. msgid "total number of bytes sent to client."
  34730. msgstr ""
  34731. #. type: deftypevr
  34732. #: guix-git/doc/guix.texi:23251
  34733. 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@}\"}."
  34734. msgstr ""
  34735. #. type: deftypevr
  34736. #: guix-git/doc/guix.texi:23253
  34737. #, no-wrap
  34738. msgid "{@code{dovecot-configuration} parameter} string imap-capability"
  34739. msgstr ""
  34740. #. type: deftypevr
  34741. #: guix-git/doc/guix.texi:23257
  34742. 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{\"\"}."
  34743. msgstr ""
  34744. #. type: deftypevr
  34745. #: guix-git/doc/guix.texi:23259
  34746. #, no-wrap
  34747. msgid "{@code{dovecot-configuration} parameter} string imap-idle-notify-interval"
  34748. msgstr ""
  34749. #. type: deftypevr
  34750. #: guix-git/doc/guix.texi:23263
  34751. msgid "How long to wait between \"OK Still here\" notifications when client is IDLEing. Defaults to @samp{\"2 mins\"}."
  34752. msgstr ""
  34753. #. type: deftypevr
  34754. #: guix-git/doc/guix.texi:23265
  34755. #, no-wrap
  34756. msgid "{@code{dovecot-configuration} parameter} string imap-id-send"
  34757. msgstr ""
  34758. #. type: deftypevr
  34759. #: guix-git/doc/guix.texi:23271
  34760. 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{\"\"}."
  34761. msgstr ""
  34762. #. type: deftypevr
  34763. #: guix-git/doc/guix.texi:23273
  34764. #, no-wrap
  34765. msgid "{@code{dovecot-configuration} parameter} string imap-id-log"
  34766. msgstr ""
  34767. #. type: deftypevr
  34768. #: guix-git/doc/guix.texi:23276
  34769. msgid "ID fields sent by client to log. * means everything. Defaults to @samp{\"\"}."
  34770. msgstr ""
  34771. #. type: deftypevr
  34772. #: guix-git/doc/guix.texi:23278
  34773. #, no-wrap
  34774. msgid "{@code{dovecot-configuration} parameter} space-separated-string-list imap-client-workarounds"
  34775. msgstr ""
  34776. #. type: deftypevr
  34777. #: guix-git/doc/guix.texi:23280
  34778. msgid "Workarounds for various client bugs:"
  34779. msgstr ""
  34780. #. type: item
  34781. #: guix-git/doc/guix.texi:23282
  34782. #, no-wrap
  34783. msgid "delay-newmail"
  34784. msgstr ""
  34785. #. type: table
  34786. #: guix-git/doc/guix.texi:23289
  34787. 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\"."
  34788. msgstr ""
  34789. #. type: item
  34790. #: guix-git/doc/guix.texi:23290
  34791. #, no-wrap
  34792. msgid "tb-extra-mailbox-sep"
  34793. msgstr ""
  34794. #. type: table
  34795. #: guix-git/doc/guix.texi:23294
  34796. 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."
  34797. msgstr ""
  34798. #. type: item
  34799. #: guix-git/doc/guix.texi:23295
  34800. #, no-wrap
  34801. msgid "tb-lsub-flags"
  34802. msgstr ""
  34803. #. type: table
  34804. #: guix-git/doc/guix.texi:23299
  34805. 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."
  34806. msgstr ""
  34807. #. type: deftypevr
  34808. #: guix-git/doc/guix.texi:23303
  34809. #, no-wrap
  34810. msgid "{@code{dovecot-configuration} parameter} string imap-urlauth-host"
  34811. msgstr ""
  34812. #. type: deftypevr
  34813. #: guix-git/doc/guix.texi:23306
  34814. msgid "Host allowed in URLAUTH URLs sent by client. \"*\" allows all. Defaults to @samp{\"\"}."
  34815. msgstr ""
  34816. #. type: Plain text
  34817. #: guix-git/doc/guix.texi:23314
  34818. 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."
  34819. msgstr ""
  34820. #. type: Plain text
  34821. #: guix-git/doc/guix.texi:23320
  34822. 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."
  34823. msgstr ""
  34824. #. type: Plain text
  34825. #: guix-git/doc/guix.texi:23322
  34826. msgid "Available @code{opaque-dovecot-configuration} fields are:"
  34827. msgstr ""
  34828. #. type: deftypevr
  34829. #: guix-git/doc/guix.texi:23323
  34830. #, no-wrap
  34831. msgid "{@code{opaque-dovecot-configuration} parameter} package dovecot"
  34832. msgstr ""
  34833. #. type: deftypevr
  34834. #: guix-git/doc/guix.texi:23327
  34835. #, no-wrap
  34836. msgid "{@code{opaque-dovecot-configuration} parameter} string string"
  34837. msgstr ""
  34838. #. type: deftypevr
  34839. #: guix-git/doc/guix.texi:23329
  34840. msgid "The contents of the @code{dovecot.conf}, as a string."
  34841. msgstr ""
  34842. #. type: Plain text
  34843. #: guix-git/doc/guix.texi:23333
  34844. msgid "For example, if your @code{dovecot.conf} is just the empty string, you could instantiate a dovecot service like this:"
  34845. msgstr ""
  34846. #. type: lisp
  34847. #: guix-git/doc/guix.texi:23338
  34848. #, no-wrap
  34849. msgid ""
  34850. "(dovecot-service #:config\n"
  34851. " (opaque-dovecot-configuration\n"
  34852. " (string \"\")))\n"
  34853. msgstr ""
  34854. #. type: subsubheading
  34855. #: guix-git/doc/guix.texi:23340
  34856. #, no-wrap
  34857. msgid "OpenSMTPD Service"
  34858. msgstr ""
  34859. #. type: deffn
  34860. #: guix-git/doc/guix.texi:23342
  34861. #, no-wrap
  34862. msgid "{Scheme Variable} opensmtpd-service-type"
  34863. msgstr ""
  34864. #. type: deffn
  34865. #: guix-git/doc/guix.texi:23346
  34866. 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:"
  34867. msgstr ""
  34868. #. type: lisp
  34869. #: guix-git/doc/guix.texi:23351
  34870. #, no-wrap
  34871. msgid ""
  34872. "(service opensmtpd-service-type\n"
  34873. " (opensmtpd-configuration\n"
  34874. " (config-file (local-file \"./my-smtpd.conf\"))))\n"
  34875. msgstr ""
  34876. #. type: deftp
  34877. #: guix-git/doc/guix.texi:23354
  34878. #, no-wrap
  34879. msgid "{Data Type} opensmtpd-configuration"
  34880. msgstr ""
  34881. #. type: deftp
  34882. #: guix-git/doc/guix.texi:23356
  34883. msgid "Data type representing the configuration of opensmtpd."
  34884. msgstr ""
  34885. #. type: item
  34886. #: guix-git/doc/guix.texi:23358
  34887. #, no-wrap
  34888. msgid "@code{package} (default: @var{opensmtpd})"
  34889. msgstr ""
  34890. #. type: table
  34891. #: guix-git/doc/guix.texi:23360
  34892. msgid "Package object of the OpenSMTPD SMTP server."
  34893. msgstr ""
  34894. #. type: item
  34895. #: guix-git/doc/guix.texi:23361
  34896. #, fuzzy, no-wrap
  34897. msgid "@code{config-file} (default: @code{%default-opensmtpd-file})"
  34898. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  34899. #. type: table
  34900. #: guix-git/doc/guix.texi:23366
  34901. 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."
  34902. msgstr ""
  34903. #. type: subsubheading
  34904. #: guix-git/doc/guix.texi:23370
  34905. #, no-wrap
  34906. msgid "Exim Service"
  34907. msgstr ""
  34908. #. type: cindex
  34909. #: guix-git/doc/guix.texi:23372
  34910. #, no-wrap
  34911. msgid "mail transfer agent (MTA)"
  34912. msgstr ""
  34913. #. type: cindex
  34914. #: guix-git/doc/guix.texi:23373
  34915. #, no-wrap
  34916. msgid "MTA (mail transfer agent)"
  34917. msgstr ""
  34918. #. type: cindex
  34919. #: guix-git/doc/guix.texi:23374
  34920. #, no-wrap
  34921. msgid "SMTP"
  34922. msgstr ""
  34923. #. type: deffn
  34924. #: guix-git/doc/guix.texi:23376
  34925. #, no-wrap
  34926. msgid "{Scheme Variable} exim-service-type"
  34927. msgstr ""
  34928. #. type: deffn
  34929. #: guix-git/doc/guix.texi:23380
  34930. 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:"
  34931. msgstr ""
  34932. #. type: lisp
  34933. #: guix-git/doc/guix.texi:23385
  34934. #, no-wrap
  34935. msgid ""
  34936. "(service exim-service-type\n"
  34937. " (exim-configuration\n"
  34938. " (config-file (local-file \"./my-exim.conf\"))))\n"
  34939. msgstr ""
  34940. #. type: Plain text
  34941. #: guix-git/doc/guix.texi:23391
  34942. 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)."
  34943. msgstr ""
  34944. #. type: deftp
  34945. #: guix-git/doc/guix.texi:23392
  34946. #, no-wrap
  34947. msgid "{Data Type} exim-configuration"
  34948. msgstr ""
  34949. #. type: deftp
  34950. #: guix-git/doc/guix.texi:23394
  34951. msgid "Data type representing the configuration of exim."
  34952. msgstr ""
  34953. #. type: item
  34954. #: guix-git/doc/guix.texi:23396
  34955. #, no-wrap
  34956. msgid "@code{package} (default: @var{exim})"
  34957. msgstr ""
  34958. #. type: table
  34959. #: guix-git/doc/guix.texi:23398
  34960. msgid "Package object of the Exim server."
  34961. msgstr ""
  34962. #. type: table
  34963. #: guix-git/doc/guix.texi:23405
  34964. 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."
  34965. msgstr ""
  34966. #. type: subsubheading
  34967. #: guix-git/doc/guix.texi:23409
  34968. #, fuzzy, no-wrap
  34969. msgid "Getmail service"
  34970. msgstr "邮件服务"
  34971. #. type: cindex
  34972. #: guix-git/doc/guix.texi:23411
  34973. #, no-wrap
  34974. msgid "IMAP"
  34975. msgstr ""
  34976. #. type: cindex
  34977. #: guix-git/doc/guix.texi:23412
  34978. #, no-wrap
  34979. msgid "POP"
  34980. msgstr ""
  34981. #. type: deffn
  34982. #: guix-git/doc/guix.texi:23414
  34983. #, no-wrap
  34984. msgid "{Scheme Variable} getmail-service-type"
  34985. msgstr ""
  34986. #. type: deffn
  34987. #: guix-git/doc/guix.texi:23417
  34988. msgid "This is the type of the @uref{http://pyropus.ca/software/getmail/, Getmail} mail retriever, whose value should be an @code{getmail-configuration}."
  34989. msgstr ""
  34990. #. type: Plain text
  34991. #: guix-git/doc/guix.texi:23420
  34992. msgid "Available @code{getmail-configuration} fields are:"
  34993. msgstr ""
  34994. #. type: deftypevr
  34995. #: guix-git/doc/guix.texi:23421
  34996. #, no-wrap
  34997. msgid "{@code{getmail-configuration} parameter} symbol name"
  34998. msgstr ""
  34999. #. type: deftypevr
  35000. #: guix-git/doc/guix.texi:23423
  35001. msgid "A symbol to identify the getmail service."
  35002. msgstr ""
  35003. #. type: deftypevr
  35004. #: guix-git/doc/guix.texi:23425
  35005. msgid "Defaults to @samp{\"unset\"}."
  35006. msgstr ""
  35007. #. type: deftypevr
  35008. #: guix-git/doc/guix.texi:23428
  35009. #, no-wrap
  35010. msgid "{@code{getmail-configuration} parameter} package package"
  35011. msgstr ""
  35012. #. type: deftypevr
  35013. #: guix-git/doc/guix.texi:23430
  35014. #, fuzzy
  35015. msgid "The getmail package to use."
  35016. msgstr "软件包数据类型。"
  35017. #. type: deftypevr
  35018. #: guix-git/doc/guix.texi:23433
  35019. #, no-wrap
  35020. msgid "{@code{getmail-configuration} parameter} string user"
  35021. msgstr ""
  35022. #. type: deftypevr
  35023. #: guix-git/doc/guix.texi:23435
  35024. msgid "The user to run getmail as."
  35025. msgstr ""
  35026. #. type: deftypevr
  35027. #: guix-git/doc/guix.texi:23437 guix-git/doc/guix.texi:23444
  35028. msgid "Defaults to @samp{\"getmail\"}."
  35029. msgstr ""
  35030. #. type: deftypevr
  35031. #: guix-git/doc/guix.texi:23440
  35032. #, no-wrap
  35033. msgid "{@code{getmail-configuration} parameter} string group"
  35034. msgstr ""
  35035. #. type: deftypevr
  35036. #: guix-git/doc/guix.texi:23442
  35037. msgid "The group to run getmail as."
  35038. msgstr ""
  35039. #. type: deftypevr
  35040. #: guix-git/doc/guix.texi:23447
  35041. #, no-wrap
  35042. msgid "{@code{getmail-configuration} parameter} string directory"
  35043. msgstr ""
  35044. #. type: deftypevr
  35045. #: guix-git/doc/guix.texi:23449
  35046. msgid "The getmail directory to use."
  35047. msgstr ""
  35048. #. type: deftypevr
  35049. #: guix-git/doc/guix.texi:23451
  35050. msgid "Defaults to @samp{\"/var/lib/getmail/default\"}."
  35051. msgstr ""
  35052. #. type: deftypevr
  35053. #: guix-git/doc/guix.texi:23454
  35054. #, no-wrap
  35055. msgid "{@code{getmail-configuration} parameter} getmail-configuration-file rcfile"
  35056. msgstr ""
  35057. #. type: deftypevr
  35058. #: guix-git/doc/guix.texi:23456
  35059. msgid "The getmail configuration file to use."
  35060. msgstr ""
  35061. #. type: deftypevr
  35062. #: guix-git/doc/guix.texi:23458
  35063. msgid "Available @code{getmail-configuration-file} fields are:"
  35064. msgstr ""
  35065. #. type: deftypevr
  35066. #: guix-git/doc/guix.texi:23459
  35067. #, no-wrap
  35068. msgid "{@code{getmail-configuration-file} parameter} getmail-retriever-configuration retriever"
  35069. msgstr ""
  35070. #. type: deftypevr
  35071. #: guix-git/doc/guix.texi:23461
  35072. msgid "What mail account to retrieve mail from, and how to access that account."
  35073. msgstr ""
  35074. #. type: deftypevr
  35075. #: guix-git/doc/guix.texi:23463
  35076. msgid "Available @code{getmail-retriever-configuration} fields are:"
  35077. msgstr ""
  35078. #. type: deftypevr
  35079. #: guix-git/doc/guix.texi:23464
  35080. #, no-wrap
  35081. msgid "{@code{getmail-retriever-configuration} parameter} string type"
  35082. msgstr ""
  35083. #. type: deftypevr
  35084. #: guix-git/doc/guix.texi:23467
  35085. msgid "The type of mail retriever to use. Valid values include @samp{passwd} and @samp{static}."
  35086. msgstr ""
  35087. #. type: deftypevr
  35088. #: guix-git/doc/guix.texi:23469
  35089. msgid "Defaults to @samp{\"SimpleIMAPSSLRetriever\"}."
  35090. msgstr ""
  35091. #. type: deftypevr
  35092. #: guix-git/doc/guix.texi:23472
  35093. #, no-wrap
  35094. msgid "{@code{getmail-retriever-configuration} parameter} string server"
  35095. msgstr ""
  35096. #. type: deftypevr
  35097. #: guix-git/doc/guix.texi:23474 guix-git/doc/guix.texi:23481
  35098. msgid "Username to login to the mail server with."
  35099. msgstr ""
  35100. #. type: deftypevr
  35101. #: guix-git/doc/guix.texi:23476 guix-git/doc/guix.texi:23483
  35102. #: guix-git/doc/guix.texi:23547
  35103. msgid "Defaults to @samp{unset}."
  35104. msgstr ""
  35105. #. type: deftypevr
  35106. #: guix-git/doc/guix.texi:23479
  35107. #, no-wrap
  35108. msgid "{@code{getmail-retriever-configuration} parameter} string username"
  35109. msgstr ""
  35110. #. type: deftypevr
  35111. #: guix-git/doc/guix.texi:23486
  35112. #, no-wrap
  35113. msgid "{@code{getmail-retriever-configuration} parameter} non-negative-integer port"
  35114. msgstr ""
  35115. #. type: deftypevr
  35116. #: guix-git/doc/guix.texi:23488
  35117. msgid "Port number to connect to."
  35118. msgstr ""
  35119. #. type: deftypevr
  35120. #: guix-git/doc/guix.texi:23493
  35121. #, no-wrap
  35122. msgid "{@code{getmail-retriever-configuration} parameter} string password"
  35123. msgstr ""
  35124. #. type: deftypevr
  35125. #: guix-git/doc/guix.texi:23495 guix-git/doc/guix.texi:23502
  35126. msgid "Override fields from passwd."
  35127. msgstr ""
  35128. #. type: deftypevr
  35129. #: guix-git/doc/guix.texi:23500
  35130. #, no-wrap
  35131. msgid "{@code{getmail-retriever-configuration} parameter} list password-command"
  35132. msgstr ""
  35133. #. type: deftypevr
  35134. #: guix-git/doc/guix.texi:23507
  35135. #, no-wrap
  35136. msgid "{@code{getmail-retriever-configuration} parameter} string keyfile"
  35137. msgstr ""
  35138. #. type: deftypevr
  35139. #: guix-git/doc/guix.texi:23509
  35140. msgid "PEM-formatted key file to use for the TLS negotiation."
  35141. msgstr ""
  35142. #. type: deftypevr
  35143. #: guix-git/doc/guix.texi:23514
  35144. #, no-wrap
  35145. msgid "{@code{getmail-retriever-configuration} parameter} string certfile"
  35146. msgstr ""
  35147. #. type: deftypevr
  35148. #: guix-git/doc/guix.texi:23516
  35149. msgid "PEM-formatted certificate file to use for the TLS negotiation."
  35150. msgstr ""
  35151. #. type: deftypevr
  35152. #: guix-git/doc/guix.texi:23521
  35153. #, no-wrap
  35154. msgid "{@code{getmail-retriever-configuration} parameter} string ca-certs"
  35155. msgstr ""
  35156. #. type: deftypevr
  35157. #: guix-git/doc/guix.texi:23523
  35158. #, fuzzy
  35159. msgid "CA certificates to use."
  35160. msgstr "证书服务"
  35161. #. type: deftypevr
  35162. #: guix-git/doc/guix.texi:23528
  35163. #, no-wrap
  35164. msgid "{@code{getmail-retriever-configuration} parameter} parameter-alist extra-parameters"
  35165. msgstr ""
  35166. #. type: deftypevr
  35167. #: guix-git/doc/guix.texi:23530
  35168. msgid "Extra retriever parameters."
  35169. msgstr ""
  35170. #. type: deftypevr
  35171. #: guix-git/doc/guix.texi:23537
  35172. #, no-wrap
  35173. msgid "{@code{getmail-configuration-file} parameter} getmail-destination-configuration destination"
  35174. msgstr ""
  35175. #. type: deftypevr
  35176. #: guix-git/doc/guix.texi:23539
  35177. msgid "What to do with retrieved messages."
  35178. msgstr ""
  35179. #. type: deftypevr
  35180. #: guix-git/doc/guix.texi:23541
  35181. msgid "Available @code{getmail-destination-configuration} fields are:"
  35182. msgstr ""
  35183. #. type: deftypevr
  35184. #: guix-git/doc/guix.texi:23542
  35185. #, no-wrap
  35186. msgid "{@code{getmail-destination-configuration} parameter} string type"
  35187. msgstr ""
  35188. #. type: deftypevr
  35189. #: guix-git/doc/guix.texi:23545
  35190. msgid "The type of mail destination. Valid values include @samp{Maildir}, @samp{Mboxrd} and @samp{MDA_external}."
  35191. msgstr ""
  35192. #. type: deftypevr
  35193. #: guix-git/doc/guix.texi:23550
  35194. #, no-wrap
  35195. msgid "{@code{getmail-destination-configuration} parameter} string-or-filelike path"
  35196. msgstr ""
  35197. #. type: deftypevr
  35198. #: guix-git/doc/guix.texi:23553
  35199. msgid "The path option for the mail destination. The behaviour depends on the chosen type."
  35200. msgstr ""
  35201. #. type: deftypevr
  35202. #: guix-git/doc/guix.texi:23558
  35203. #, no-wrap
  35204. msgid "{@code{getmail-destination-configuration} parameter} parameter-alist extra-parameters"
  35205. msgstr ""
  35206. #. type: deftypevr
  35207. #: guix-git/doc/guix.texi:23560
  35208. msgid "Extra destination parameters"
  35209. msgstr ""
  35210. #. type: deftypevr
  35211. #: guix-git/doc/guix.texi:23567
  35212. #, no-wrap
  35213. msgid "{@code{getmail-configuration-file} parameter} getmail-options-configuration options"
  35214. msgstr ""
  35215. #. type: deftypevr
  35216. #: guix-git/doc/guix.texi:23569
  35217. msgid "Configure getmail."
  35218. msgstr ""
  35219. #. type: deftypevr
  35220. #: guix-git/doc/guix.texi:23571
  35221. msgid "Available @code{getmail-options-configuration} fields are:"
  35222. msgstr ""
  35223. #. type: deftypevr
  35224. #: guix-git/doc/guix.texi:23572
  35225. #, no-wrap
  35226. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer verbose"
  35227. msgstr ""
  35228. #. type: deftypevr
  35229. #: guix-git/doc/guix.texi:23577
  35230. msgid "If set to @samp{0}, getmail will only print warnings and errors. A value of @samp{1} means that messages will be printed about retrieving and deleting messages. If set to @samp{2}, getmail will print messages about each of its actions."
  35231. msgstr ""
  35232. #. type: deftypevr
  35233. #: guix-git/doc/guix.texi:23579 guix-git/doc/guix.texi:30102
  35234. #: guix-git/doc/guix.texi:30690 guix-git/doc/guix.texi:30835
  35235. msgid "Defaults to @samp{1}."
  35236. msgstr ""
  35237. #. type: deftypevr
  35238. #: guix-git/doc/guix.texi:23582
  35239. #, no-wrap
  35240. msgid "{@code{getmail-options-configuration} parameter} boolean read-all"
  35241. msgstr ""
  35242. #. type: deftypevr
  35243. #: guix-git/doc/guix.texi:23585
  35244. msgid "If true, getmail will retrieve all available messages. Otherwise it will only retrieve messages it hasn't seen previously."
  35245. msgstr ""
  35246. #. type: deftypevr
  35247. #: guix-git/doc/guix.texi:23590
  35248. #, no-wrap
  35249. msgid "{@code{getmail-options-configuration} parameter} boolean delete"
  35250. msgstr ""
  35251. #. type: deftypevr
  35252. #: guix-git/doc/guix.texi:23594
  35253. 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."
  35254. msgstr ""
  35255. #. type: deftypevr
  35256. #: guix-git/doc/guix.texi:23599
  35257. #, no-wrap
  35258. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-after"
  35259. msgstr ""
  35260. #. type: deftypevr
  35261. #: guix-git/doc/guix.texi:23604
  35262. 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."
  35263. msgstr ""
  35264. #. type: deftypevr
  35265. #: guix-git/doc/guix.texi:23609
  35266. #, no-wrap
  35267. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer delete-bigger-than"
  35268. msgstr ""
  35269. #. type: deftypevr
  35270. #: guix-git/doc/guix.texi:23613
  35271. 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."
  35272. msgstr ""
  35273. #. type: deftypevr
  35274. #: guix-git/doc/guix.texi:23618
  35275. #, no-wrap
  35276. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-bytes-per-session"
  35277. msgstr ""
  35278. #. type: deftypevr
  35279. #: guix-git/doc/guix.texi:23621
  35280. 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."
  35281. msgstr ""
  35282. #. type: deftypevr
  35283. #: guix-git/doc/guix.texi:23626
  35284. #, no-wrap
  35285. msgid "{@code{getmail-options-configuration} parameter} non-negative-integer max-message-size"
  35286. msgstr ""
  35287. #. type: deftypevr
  35288. #: guix-git/doc/guix.texi:23629
  35289. msgid "Don't retrieve messages larger than this number of bytes. A value of @samp{0} disables this feature."
  35290. msgstr ""
  35291. #. type: deftypevr
  35292. #: guix-git/doc/guix.texi:23634
  35293. #, no-wrap
  35294. msgid "{@code{getmail-options-configuration} parameter} boolean delivered-to"
  35295. msgstr ""
  35296. #. type: deftypevr
  35297. #: guix-git/doc/guix.texi:23636
  35298. msgid "If true, getmail will add a Delivered-To header to messages."
  35299. msgstr ""
  35300. #. type: deftypevr
  35301. #: guix-git/doc/guix.texi:23641
  35302. #, no-wrap
  35303. msgid "{@code{getmail-options-configuration} parameter} boolean received"
  35304. msgstr ""
  35305. #. type: deftypevr
  35306. #: guix-git/doc/guix.texi:23643
  35307. msgid "If set, getmail adds a Received header to the messages."
  35308. msgstr ""
  35309. #. type: deftypevr
  35310. #: guix-git/doc/guix.texi:23648
  35311. #, no-wrap
  35312. msgid "{@code{getmail-options-configuration} parameter} string message-log"
  35313. msgstr ""
  35314. #. type: deftypevr
  35315. #: guix-git/doc/guix.texi:23651
  35316. msgid "Getmail will record a log of its actions to the named file. A value of @samp{\"\"} disables this feature."
  35317. msgstr ""
  35318. #. type: deftypevr
  35319. #: guix-git/doc/guix.texi:23656
  35320. #, no-wrap
  35321. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-syslog"
  35322. msgstr ""
  35323. #. type: deftypevr
  35324. #: guix-git/doc/guix.texi:23659
  35325. msgid "If true, getmail will record a log of its actions using the system logger."
  35326. msgstr ""
  35327. #. type: deftypevr
  35328. #: guix-git/doc/guix.texi:23664
  35329. #, no-wrap
  35330. msgid "{@code{getmail-options-configuration} parameter} boolean message-log-verbose"
  35331. msgstr ""
  35332. #. type: deftypevr
  35333. #: guix-git/doc/guix.texi:23668
  35334. 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."
  35335. msgstr ""
  35336. #. type: deftypevr
  35337. #: guix-git/doc/guix.texi:23673
  35338. #, no-wrap
  35339. msgid "{@code{getmail-options-configuration} parameter} parameter-alist extra-parameters"
  35340. msgstr ""
  35341. #. type: deftypevr
  35342. #: guix-git/doc/guix.texi:23675
  35343. msgid "Extra options to include."
  35344. msgstr ""
  35345. #. type: deftypevr
  35346. #: guix-git/doc/guix.texi:23684
  35347. #, no-wrap
  35348. msgid "{@code{getmail-configuration} parameter} list idle"
  35349. msgstr ""
  35350. #. type: deftypevr
  35351. #: guix-git/doc/guix.texi:23688
  35352. 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."
  35353. msgstr ""
  35354. #. type: deftypevr
  35355. #: guix-git/doc/guix.texi:23693
  35356. #, no-wrap
  35357. msgid "{@code{getmail-configuration} parameter} list environment-variables"
  35358. msgstr ""
  35359. #. type: deftypevr
  35360. #: guix-git/doc/guix.texi:23695
  35361. msgid "Environment variables to set for getmail."
  35362. msgstr ""
  35363. #. type: subsubheading
  35364. #: guix-git/doc/guix.texi:23700
  35365. #, no-wrap
  35366. msgid "Mail Aliases Service"
  35367. msgstr ""
  35368. #. type: cindex
  35369. #: guix-git/doc/guix.texi:23702
  35370. #, no-wrap
  35371. msgid "email aliases"
  35372. msgstr ""
  35373. #. type: cindex
  35374. #: guix-git/doc/guix.texi:23703
  35375. #, no-wrap
  35376. msgid "aliases, for email addresses"
  35377. msgstr ""
  35378. #. type: deffn
  35379. #: guix-git/doc/guix.texi:23705
  35380. #, no-wrap
  35381. msgid "{Scheme Variable} mail-aliases-service-type"
  35382. msgstr ""
  35383. #. type: deffn
  35384. #: guix-git/doc/guix.texi:23708
  35385. msgid "This is the type of the service which provides @code{/etc/aliases}, specifying how to deliver mail to users on this system."
  35386. msgstr ""
  35387. #. type: lisp
  35388. #: guix-git/doc/guix.texi:23713
  35389. #, no-wrap
  35390. msgid ""
  35391. "(service mail-aliases-service-type\n"
  35392. " '((\"postmaster\" \"bob\")\n"
  35393. " (\"bob\" \"bob@@example.com\" \"bob@@example2.com\")))\n"
  35394. msgstr ""
  35395. #. type: Plain text
  35396. #: guix-git/doc/guix.texi:23721
  35397. 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."
  35398. msgstr ""
  35399. #. type: Plain text
  35400. #: guix-git/doc/guix.texi:23727
  35401. 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})."
  35402. msgstr ""
  35403. #. type: cindex
  35404. #: guix-git/doc/guix.texi:23728 guix-git/doc/guix.texi:23729
  35405. #, no-wrap
  35406. msgid "GNU Mailutils IMAP4 Daemon"
  35407. msgstr ""
  35408. #. type: deffn
  35409. #: guix-git/doc/guix.texi:23731
  35410. #, no-wrap
  35411. msgid "{Scheme Variable} imap4d-service-type"
  35412. msgstr ""
  35413. #. type: deffn
  35414. #: guix-git/doc/guix.texi:23735
  35415. 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:"
  35416. msgstr ""
  35417. #. type: lisp
  35418. #: guix-git/doc/guix.texi:23740
  35419. #, no-wrap
  35420. msgid ""
  35421. "(service imap4d-service-type\n"
  35422. " (imap4d-configuration\n"
  35423. " (config-file (local-file \"imap4d.conf\"))))\n"
  35424. msgstr ""
  35425. #. type: deftp
  35426. #: guix-git/doc/guix.texi:23743
  35427. #, no-wrap
  35428. msgid "{Data Type} imap4d-configuration"
  35429. msgstr ""
  35430. #. type: deftp
  35431. #: guix-git/doc/guix.texi:23745
  35432. msgid "Data type representing the configuration of @command{imap4d}."
  35433. msgstr ""
  35434. #. type: item
  35435. #: guix-git/doc/guix.texi:23747
  35436. #, no-wrap
  35437. msgid "@code{package} (default: @code{mailutils})"
  35438. msgstr ""
  35439. #. type: table
  35440. #: guix-git/doc/guix.texi:23749
  35441. msgid "The package that provides @command{imap4d}."
  35442. msgstr ""
  35443. #. type: item
  35444. #: guix-git/doc/guix.texi:23750
  35445. #, no-wrap
  35446. msgid "@code{config-file} (default: @code{%default-imap4d-config-file})"
  35447. msgstr ""
  35448. #. type: table
  35449. #: guix-git/doc/guix.texi:23754
  35450. 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."
  35451. msgstr ""
  35452. #. type: subsubheading
  35453. #: guix-git/doc/guix.texi:23758
  35454. #, fuzzy, no-wrap
  35455. msgid "Radicale Service"
  35456. msgstr "邮件服务"
  35457. #. type: cindex
  35458. #: guix-git/doc/guix.texi:23759
  35459. #, no-wrap
  35460. msgid "CalDAV"
  35461. msgstr ""
  35462. #. type: cindex
  35463. #: guix-git/doc/guix.texi:23760
  35464. #, no-wrap
  35465. msgid "CardDAV"
  35466. msgstr ""
  35467. #. type: deffn
  35468. #: guix-git/doc/guix.texi:23762
  35469. #, no-wrap
  35470. msgid "{Scheme Variable} radicale-service-type"
  35471. msgstr ""
  35472. #. type: deffn
  35473. #: guix-git/doc/guix.texi:23765
  35474. msgid "This is the type of the @uref{https://radicale.org, Radicale} CalDAV/CardDAV server whose value should be a @code{radicale-configuration}."
  35475. msgstr ""
  35476. #. type: deftp
  35477. #: guix-git/doc/guix.texi:23767
  35478. #, fuzzy, no-wrap
  35479. msgid "{Data Type} radicale-configuration"
  35480. msgstr "{数据类型} build-machine"
  35481. #. type: deftp
  35482. #: guix-git/doc/guix.texi:23769
  35483. #, fuzzy
  35484. msgid "Data type representing the configuration of @command{radicale}."
  35485. msgstr "管理操作系统配置。"
  35486. #. type: item
  35487. #: guix-git/doc/guix.texi:23771
  35488. #, fuzzy, no-wrap
  35489. msgid "@code{package} (default: @code{radicale})"
  35490. msgstr "@code{mate}(默认值:@code{mate})"
  35491. #. type: table
  35492. #: guix-git/doc/guix.texi:23773
  35493. msgid "The package that provides @command{radicale}."
  35494. msgstr ""
  35495. #. type: item
  35496. #: guix-git/doc/guix.texi:23774
  35497. #, fuzzy, no-wrap
  35498. msgid "@code{config-file} (default: @code{%default-radicale-config-file})"
  35499. msgstr "@code{gnome}(默认值:@code{gnome})"
  35500. #. type: table
  35501. #: guix-git/doc/guix.texi:23778
  35502. 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."
  35503. msgstr ""
  35504. #. type: cindex
  35505. #: guix-git/doc/guix.texi:23785
  35506. #, no-wrap
  35507. msgid "messaging"
  35508. msgstr ""
  35509. #. type: cindex
  35510. #: guix-git/doc/guix.texi:23786
  35511. #, no-wrap
  35512. msgid "jabber"
  35513. msgstr ""
  35514. #. type: cindex
  35515. #: guix-git/doc/guix.texi:23787
  35516. #, no-wrap
  35517. msgid "XMPP"
  35518. msgstr ""
  35519. #. type: Plain text
  35520. #: guix-git/doc/guix.texi:23791
  35521. msgid "The @code{(gnu services messaging)} module provides Guix service definitions for messaging services. Currently it provides the following services:"
  35522. msgstr ""
  35523. #. type: subsubheading
  35524. #: guix-git/doc/guix.texi:23792
  35525. #, no-wrap
  35526. msgid "Prosody Service"
  35527. msgstr ""
  35528. #. type: deffn
  35529. #: guix-git/doc/guix.texi:23794
  35530. #, no-wrap
  35531. msgid "{Scheme Variable} prosody-service-type"
  35532. msgstr ""
  35533. #. type: deffn
  35534. #: guix-git/doc/guix.texi:23798
  35535. 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:"
  35536. msgstr ""
  35537. #. type: lisp
  35538. #: guix-git/doc/guix.texi:23813
  35539. #, no-wrap
  35540. msgid ""
  35541. "(service prosody-service-type\n"
  35542. " (prosody-configuration\n"
  35543. " (modules-enabled (cons* \"groups\" \"mam\" %default-modules-enabled))\n"
  35544. " (int-components\n"
  35545. " (list\n"
  35546. " (int-component-configuration\n"
  35547. " (hostname \"conference.example.net\")\n"
  35548. " (plugin \"muc\")\n"
  35549. " (mod-muc (mod-muc-configuration)))))\n"
  35550. " (virtualhosts\n"
  35551. " (list\n"
  35552. " (virtualhost-configuration\n"
  35553. " (domain \"example.net\"))))))\n"
  35554. msgstr ""
  35555. #. type: deffn
  35556. #: guix-git/doc/guix.texi:23816
  35557. msgid "See below for details about @code{prosody-configuration}."
  35558. msgstr ""
  35559. #. type: Plain text
  35560. #: guix-git/doc/guix.texi:23822
  35561. 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."
  35562. msgstr ""
  35563. #. type: Plain text
  35564. #: guix-git/doc/guix.texi:23825
  35565. msgid "You can perform various sanity checks on the generated configuration with the @code{prosodyctl check} command."
  35566. msgstr ""
  35567. #. type: Plain text
  35568. #: guix-git/doc/guix.texi:23829
  35569. 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}."
  35570. msgstr ""
  35571. #. type: example
  35572. #: guix-git/doc/guix.texi:23832
  35573. #, no-wrap
  35574. msgid "prosodyctl --root cert import /etc/letsencrypt/live\n"
  35575. msgstr ""
  35576. #. type: Plain text
  35577. #: guix-git/doc/guix.texi:23839
  35578. 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}."
  35579. msgstr ""
  35580. #. type: Plain text
  35581. #: guix-git/doc/guix.texi:23843
  35582. 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."
  35583. msgstr ""
  35584. #. type: Plain text
  35585. #: guix-git/doc/guix.texi:23846
  35586. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a file name."
  35587. msgstr ""
  35588. #. type: Plain text
  35589. #: guix-git/doc/guix.texi:23856
  35590. msgid "Available @code{prosody-configuration} fields are:"
  35591. msgstr ""
  35592. #. type: deftypevr
  35593. #: guix-git/doc/guix.texi:23857
  35594. #, no-wrap
  35595. msgid "{@code{prosody-configuration} parameter} package prosody"
  35596. msgstr ""
  35597. #. type: deftypevr
  35598. #: guix-git/doc/guix.texi:23859
  35599. msgid "The Prosody package."
  35600. msgstr ""
  35601. #. type: deftypevr
  35602. #: guix-git/doc/guix.texi:23861
  35603. #, no-wrap
  35604. msgid "{@code{prosody-configuration} parameter} file-name data-path"
  35605. msgstr ""
  35606. #. type: deftypevr
  35607. #: guix-git/doc/guix.texi:23865
  35608. msgid "Location of the Prosody data storage directory. See @url{https://prosody.im/doc/configure}. Defaults to @samp{\"/var/lib/prosody\"}."
  35609. msgstr ""
  35610. #. type: deftypevr
  35611. #: guix-git/doc/guix.texi:23867
  35612. #, no-wrap
  35613. msgid "{@code{prosody-configuration} parameter} file-object-list plugin-paths"
  35614. msgstr ""
  35615. #. type: deftypevr
  35616. #: guix-git/doc/guix.texi:23871
  35617. 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{()}."
  35618. msgstr ""
  35619. #. type: deftypevr
  35620. #: guix-git/doc/guix.texi:23873
  35621. #, no-wrap
  35622. msgid "{@code{prosody-configuration} parameter} file-name certificates"
  35623. msgstr ""
  35624. #. type: deftypevr
  35625. #: guix-git/doc/guix.texi:23878
  35626. 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\"}."
  35627. msgstr ""
  35628. #. type: deftypevr
  35629. #: guix-git/doc/guix.texi:23880
  35630. #, no-wrap
  35631. msgid "{@code{prosody-configuration} parameter} string-list admins"
  35632. msgstr ""
  35633. #. type: deftypevr
  35634. #: guix-git/doc/guix.texi:23886
  35635. 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{()}."
  35636. msgstr ""
  35637. #. type: deftypevr
  35638. #: guix-git/doc/guix.texi:23888
  35639. #, no-wrap
  35640. msgid "{@code{prosody-configuration} parameter} boolean use-libevent?"
  35641. msgstr ""
  35642. #. type: deftypevr
  35643. #: guix-git/doc/guix.texi:23892
  35644. msgid "Enable use of libevent for better performance under high load. See @url{https://prosody.im/doc/libevent}. Defaults to @samp{#f}."
  35645. msgstr ""
  35646. #. type: deftypevr
  35647. #: guix-git/doc/guix.texi:23894
  35648. #, no-wrap
  35649. msgid "{@code{prosody-configuration} parameter} module-list modules-enabled"
  35650. msgstr ""
  35651. #. type: deftypevr
  35652. #: guix-git/doc/guix.texi:23900
  35653. 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\")}."
  35654. msgstr ""
  35655. #. type: deftypevr
  35656. #: guix-git/doc/guix.texi:23902
  35657. #, no-wrap
  35658. msgid "{@code{prosody-configuration} parameter} string-list modules-disabled"
  35659. msgstr ""
  35660. #. type: deftypevr
  35661. #: guix-git/doc/guix.texi:23906
  35662. 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{()}."
  35663. msgstr ""
  35664. #. type: deftypevr
  35665. #: guix-git/doc/guix.texi:23908
  35666. #, no-wrap
  35667. msgid "{@code{prosody-configuration} parameter} file-object groups-file"
  35668. msgstr ""
  35669. #. type: deftypevr
  35670. #: guix-git/doc/guix.texi:23913
  35671. 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\"}."
  35672. msgstr ""
  35673. #. type: deftypevr
  35674. #: guix-git/doc/guix.texi:23915
  35675. #, no-wrap
  35676. msgid "{@code{prosody-configuration} parameter} boolean allow-registration?"
  35677. msgstr ""
  35678. #. type: deftypevr
  35679. #: guix-git/doc/guix.texi:23919
  35680. msgid "Disable account creation by default, for security. See @url{https://prosody.im/doc/creating_accounts}. Defaults to @samp{#f}."
  35681. msgstr ""
  35682. #. type: deftypevr
  35683. #: guix-git/doc/guix.texi:23921
  35684. #, no-wrap
  35685. msgid "{@code{prosody-configuration} parameter} maybe-ssl-configuration ssl"
  35686. msgstr ""
  35687. #. type: deftypevr
  35688. #: guix-git/doc/guix.texi:23926
  35689. 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}."
  35690. msgstr ""
  35691. #. type: deftypevr
  35692. #: guix-git/doc/guix.texi:23928
  35693. msgid "Available @code{ssl-configuration} fields are:"
  35694. msgstr ""
  35695. #. type: deftypevr
  35696. #: guix-git/doc/guix.texi:23929
  35697. #, no-wrap
  35698. msgid "{@code{ssl-configuration} parameter} maybe-string protocol"
  35699. msgstr ""
  35700. #. type: deftypevr
  35701. #: guix-git/doc/guix.texi:23931
  35702. msgid "This determines what handshake to use."
  35703. msgstr ""
  35704. #. type: deftypevr
  35705. #: guix-git/doc/guix.texi:23933
  35706. #, no-wrap
  35707. msgid "{@code{ssl-configuration} parameter} maybe-file-name key"
  35708. msgstr ""
  35709. #. type: deftypevr
  35710. #: guix-git/doc/guix.texi:23935
  35711. msgid "Path to your private key file."
  35712. msgstr ""
  35713. #. type: deftypevr
  35714. #: guix-git/doc/guix.texi:23937
  35715. #, no-wrap
  35716. msgid "{@code{ssl-configuration} parameter} maybe-file-name certificate"
  35717. msgstr ""
  35718. #. type: deftypevr
  35719. #: guix-git/doc/guix.texi:23939
  35720. msgid "Path to your certificate file."
  35721. msgstr ""
  35722. #. type: deftypevr
  35723. #: guix-git/doc/guix.texi:23941
  35724. #, no-wrap
  35725. msgid "{@code{ssl-configuration} parameter} file-object capath"
  35726. msgstr ""
  35727. #. type: deftypevr
  35728. #: guix-git/doc/guix.texi:23945
  35729. 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\"}."
  35730. msgstr ""
  35731. #. type: deftypevr
  35732. #: guix-git/doc/guix.texi:23947
  35733. #, no-wrap
  35734. msgid "{@code{ssl-configuration} parameter} maybe-file-object cafile"
  35735. msgstr ""
  35736. #. type: deftypevr
  35737. #: guix-git/doc/guix.texi:23950
  35738. msgid "Path to a file containing root certificates that you wish Prosody to trust. Similar to @code{capath} but with all certificates concatenated together."
  35739. msgstr ""
  35740. #. type: deftypevr
  35741. #: guix-git/doc/guix.texi:23952
  35742. #, no-wrap
  35743. msgid "{@code{ssl-configuration} parameter} maybe-string-list verify"
  35744. msgstr ""
  35745. #. type: deftypevr
  35746. #: guix-git/doc/guix.texi:23955
  35747. msgid "A list of verification options (these mostly map to OpenSSL's @code{set_verify()} flags)."
  35748. msgstr ""
  35749. #. type: deftypevr
  35750. #: guix-git/doc/guix.texi:23957
  35751. #, no-wrap
  35752. msgid "{@code{ssl-configuration} parameter} maybe-string-list options"
  35753. msgstr ""
  35754. #. type: deftypevr
  35755. #: guix-git/doc/guix.texi:23961
  35756. 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."
  35757. msgstr ""
  35758. #. type: deftypevr
  35759. #: guix-git/doc/guix.texi:23963
  35760. #, no-wrap
  35761. msgid "{@code{ssl-configuration} parameter} maybe-non-negative-integer depth"
  35762. msgstr ""
  35763. #. type: deftypevr
  35764. #: guix-git/doc/guix.texi:23966
  35765. msgid "How long a chain of certificate authorities to check when looking for a trusted root certificate."
  35766. msgstr ""
  35767. #. type: deftypevr
  35768. #: guix-git/doc/guix.texi:23968
  35769. #, no-wrap
  35770. msgid "{@code{ssl-configuration} parameter} maybe-string ciphers"
  35771. msgstr ""
  35772. #. type: deftypevr
  35773. #: guix-git/doc/guix.texi:23971
  35774. msgid "An OpenSSL cipher string. This selects what ciphers Prosody will offer to clients, and in what order."
  35775. msgstr ""
  35776. #. type: deftypevr
  35777. #: guix-git/doc/guix.texi:23973
  35778. #, no-wrap
  35779. msgid "{@code{ssl-configuration} parameter} maybe-file-name dhparam"
  35780. msgstr ""
  35781. #. type: deftypevr
  35782. #: guix-git/doc/guix.texi:23977
  35783. 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}"
  35784. msgstr ""
  35785. #. type: deftypevr
  35786. #: guix-git/doc/guix.texi:23979
  35787. #, no-wrap
  35788. msgid "{@code{ssl-configuration} parameter} maybe-string curve"
  35789. msgstr ""
  35790. #. type: deftypevr
  35791. #: guix-git/doc/guix.texi:23982
  35792. msgid "Curve for Elliptic curve Diffie-Hellman. Prosody's default is @samp{\"secp384r1\"}."
  35793. msgstr ""
  35794. #. type: deftypevr
  35795. #: guix-git/doc/guix.texi:23984
  35796. #, no-wrap
  35797. msgid "{@code{ssl-configuration} parameter} maybe-string-list verifyext"
  35798. msgstr ""
  35799. #. type: deftypevr
  35800. #: guix-git/doc/guix.texi:23986
  35801. msgid "A list of ``extra'' verification options."
  35802. msgstr ""
  35803. #. type: deftypevr
  35804. #: guix-git/doc/guix.texi:23988
  35805. #, no-wrap
  35806. msgid "{@code{ssl-configuration} parameter} maybe-string password"
  35807. msgstr ""
  35808. #. type: deftypevr
  35809. #: guix-git/doc/guix.texi:23990
  35810. msgid "Password for encrypted private keys."
  35811. msgstr ""
  35812. #. type: deftypevr
  35813. #: guix-git/doc/guix.texi:23994
  35814. #, no-wrap
  35815. msgid "{@code{prosody-configuration} parameter} boolean c2s-require-encryption?"
  35816. msgstr ""
  35817. #. type: deftypevr
  35818. #: guix-git/doc/guix.texi:23998
  35819. 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}."
  35820. msgstr ""
  35821. #. type: deftypevr
  35822. #: guix-git/doc/guix.texi:24000
  35823. #, no-wrap
  35824. msgid "{@code{prosody-configuration} parameter} string-list disable-sasl-mechanisms"
  35825. msgstr ""
  35826. #. type: deftypevr
  35827. #: guix-git/doc/guix.texi:24004
  35828. msgid "Set of mechanisms that will never be offered. See @url{https://prosody.im/doc/modules/mod_saslauth}. Defaults to @samp{(\"DIGEST-MD5\")}."
  35829. msgstr ""
  35830. #. type: deftypevr
  35831. #: guix-git/doc/guix.texi:24006
  35832. #, no-wrap
  35833. msgid "{@code{prosody-configuration} parameter} boolean s2s-require-encryption?"
  35834. msgstr ""
  35835. #. type: deftypevr
  35836. #: guix-git/doc/guix.texi:24010
  35837. 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}."
  35838. msgstr ""
  35839. #. type: deftypevr
  35840. #: guix-git/doc/guix.texi:24012
  35841. #, no-wrap
  35842. msgid "{@code{prosody-configuration} parameter} boolean s2s-secure-auth?"
  35843. msgstr ""
  35844. #. type: deftypevr
  35845. #: guix-git/doc/guix.texi:24018
  35846. 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}."
  35847. msgstr ""
  35848. #. type: deftypevr
  35849. #: guix-git/doc/guix.texi:24020
  35850. #, no-wrap
  35851. msgid "{@code{prosody-configuration} parameter} string-list s2s-insecure-domains"
  35852. msgstr ""
  35853. #. type: deftypevr
  35854. #: guix-git/doc/guix.texi:24026
  35855. 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{()}."
  35856. msgstr ""
  35857. #. type: deftypevr
  35858. #: guix-git/doc/guix.texi:24028
  35859. #, no-wrap
  35860. msgid "{@code{prosody-configuration} parameter} string-list s2s-secure-domains"
  35861. msgstr ""
  35862. #. type: deftypevr
  35863. #: guix-git/doc/guix.texi:24033
  35864. 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{()}."
  35865. msgstr ""
  35866. #. type: deftypevr
  35867. #: guix-git/doc/guix.texi:24035
  35868. #, no-wrap
  35869. msgid "{@code{prosody-configuration} parameter} string authentication"
  35870. msgstr ""
  35871. #. type: deftypevr
  35872. #: guix-git/doc/guix.texi:24043
  35873. 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\"}."
  35874. msgstr ""
  35875. #. type: deftypevr
  35876. #: guix-git/doc/guix.texi:24045
  35877. #, no-wrap
  35878. msgid "{@code{prosody-configuration} parameter} maybe-string log"
  35879. msgstr ""
  35880. #. type: deftypevr
  35881. #: guix-git/doc/guix.texi:24049
  35882. 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\"}."
  35883. msgstr ""
  35884. #. type: deftypevr
  35885. #: guix-git/doc/guix.texi:24051
  35886. #, no-wrap
  35887. msgid "{@code{prosody-configuration} parameter} file-name pidfile"
  35888. msgstr ""
  35889. #. type: deftypevr
  35890. #: guix-git/doc/guix.texi:24054
  35891. msgid "File to write pid in. See @url{https://prosody.im/doc/modules/mod_posix}. Defaults to @samp{\"/var/run/prosody/prosody.pid\"}."
  35892. msgstr ""
  35893. #. type: deftypevr
  35894. #: guix-git/doc/guix.texi:24056
  35895. #, no-wrap
  35896. msgid "{@code{prosody-configuration} parameter} maybe-non-negative-integer http-max-content-size"
  35897. msgstr ""
  35898. #. type: deftypevr
  35899. #: guix-git/doc/guix.texi:24058
  35900. msgid "Maximum allowed size of the HTTP body (in bytes)."
  35901. msgstr ""
  35902. #. type: deftypevr
  35903. #: guix-git/doc/guix.texi:24060
  35904. #, no-wrap
  35905. msgid "{@code{prosody-configuration} parameter} maybe-string http-external-url"
  35906. msgstr ""
  35907. #. type: deftypevr
  35908. #: guix-git/doc/guix.texi:24065
  35909. 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}."
  35910. msgstr ""
  35911. #. type: deftypevr
  35912. #: guix-git/doc/guix.texi:24067
  35913. #, no-wrap
  35914. msgid "{@code{prosody-configuration} parameter} virtualhost-configuration-list virtualhosts"
  35915. msgstr ""
  35916. #. type: deftypevr
  35917. #: guix-git/doc/guix.texi:24072
  35918. 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."
  35919. msgstr ""
  35920. #. type: deftypevr
  35921. #: guix-git/doc/guix.texi:24078
  35922. 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."
  35923. msgstr ""
  35924. #. type: deftypevr
  35925. #: guix-git/doc/guix.texi:24080
  35926. msgid "See @url{https://prosody.im/doc/configure#virtual_host_settings}."
  35927. msgstr ""
  35928. #. type: deftypevr
  35929. #: guix-git/doc/guix.texi:24082
  35930. msgid "Available @code{virtualhost-configuration} fields are:"
  35931. msgstr ""
  35932. #. type: deftypevr
  35933. #: guix-git/doc/guix.texi:24084 guix-git/doc/guix.texi:24106
  35934. #: guix-git/doc/guix.texi:24159
  35935. 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:"
  35936. msgstr ""
  35937. #. type: deftypevr
  35938. #: guix-git/doc/guix.texi:24084
  35939. #, no-wrap
  35940. msgid "{@code{virtualhost-configuration} parameter} string domain"
  35941. msgstr ""
  35942. #. type: deftypevr
  35943. #: guix-git/doc/guix.texi:24086
  35944. msgid "Domain you wish Prosody to serve."
  35945. msgstr ""
  35946. #. type: deftypevr
  35947. #: guix-git/doc/guix.texi:24090
  35948. #, no-wrap
  35949. msgid "{@code{prosody-configuration} parameter} int-component-configuration-list int-components"
  35950. msgstr ""
  35951. #. type: deftypevr
  35952. #: guix-git/doc/guix.texi:24095
  35953. 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."
  35954. msgstr ""
  35955. #. type: deftypevr
  35956. #: guix-git/doc/guix.texi:24099
  35957. 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."
  35958. msgstr ""
  35959. #. type: deftypevr
  35960. #: guix-git/doc/guix.texi:24102
  35961. msgid "See @url{https://prosody.im/doc/components}. Defaults to @samp{()}."
  35962. msgstr ""
  35963. #. type: deftypevr
  35964. #: guix-git/doc/guix.texi:24104
  35965. msgid "Available @code{int-component-configuration} fields are:"
  35966. msgstr ""
  35967. #. type: deftypevr
  35968. #: guix-git/doc/guix.texi:24106
  35969. #, no-wrap
  35970. msgid "{@code{int-component-configuration} parameter} string hostname"
  35971. msgstr ""
  35972. #. type: deftypevr
  35973. #: guix-git/doc/guix.texi:24108 guix-git/doc/guix.texi:24165
  35974. msgid "Hostname of the component."
  35975. msgstr ""
  35976. #. type: deftypevr
  35977. #: guix-git/doc/guix.texi:24110
  35978. #, no-wrap
  35979. msgid "{@code{int-component-configuration} parameter} string plugin"
  35980. msgstr ""
  35981. #. type: deftypevr
  35982. #: guix-git/doc/guix.texi:24112
  35983. msgid "Plugin you wish to use for the component."
  35984. msgstr ""
  35985. #. type: deftypevr
  35986. #: guix-git/doc/guix.texi:24114
  35987. #, no-wrap
  35988. msgid "{@code{int-component-configuration} parameter} maybe-mod-muc-configuration mod-muc"
  35989. msgstr ""
  35990. #. type: deftypevr
  35991. #: guix-git/doc/guix.texi:24117
  35992. msgid "Multi-user chat (MUC) is Prosody's module for allowing you to create hosted chatrooms/conferences for XMPP users."
  35993. msgstr ""
  35994. #. type: deftypevr
  35995. #: guix-git/doc/guix.texi:24121
  35996. 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."
  35997. msgstr ""
  35998. #. type: deftypevr
  35999. #: guix-git/doc/guix.texi:24123
  36000. msgid "See also @url{https://prosody.im/doc/modules/mod_muc}."
  36001. msgstr ""
  36002. #. type: deftypevr
  36003. #: guix-git/doc/guix.texi:24125
  36004. msgid "Available @code{mod-muc-configuration} fields are:"
  36005. msgstr ""
  36006. #. type: deftypevr
  36007. #: guix-git/doc/guix.texi:24126
  36008. #, no-wrap
  36009. msgid "{@code{mod-muc-configuration} parameter} string name"
  36010. msgstr ""
  36011. #. type: deftypevr
  36012. #: guix-git/doc/guix.texi:24129
  36013. msgid "The name to return in service discovery responses. Defaults to @samp{\"Prosody Chatrooms\"}."
  36014. msgstr ""
  36015. #. type: deftypevr
  36016. #: guix-git/doc/guix.texi:24131
  36017. #, no-wrap
  36018. msgid "{@code{mod-muc-configuration} parameter} string-or-boolean restrict-room-creation"
  36019. msgstr ""
  36020. #. type: deftypevr
  36021. #: guix-git/doc/guix.texi:24138
  36022. 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}."
  36023. msgstr ""
  36024. #. type: deftypevr
  36025. #: guix-git/doc/guix.texi:24140
  36026. #, no-wrap
  36027. msgid "{@code{mod-muc-configuration} parameter} non-negative-integer max-history-messages"
  36028. msgstr ""
  36029. #. type: deftypevr
  36030. #: guix-git/doc/guix.texi:24144
  36031. msgid "Maximum number of history messages that will be sent to the member that has just joined the room. Defaults to @samp{20}."
  36032. msgstr ""
  36033. #. type: deftypevr
  36034. #: guix-git/doc/guix.texi:24150
  36035. #, no-wrap
  36036. msgid "{@code{prosody-configuration} parameter} ext-component-configuration-list ext-components"
  36037. msgstr ""
  36038. #. type: deftypevr
  36039. #: guix-git/doc/guix.texi:24155
  36040. 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{()}."
  36041. msgstr ""
  36042. #. type: deftypevr
  36043. #: guix-git/doc/guix.texi:24157
  36044. msgid "Available @code{ext-component-configuration} fields are:"
  36045. msgstr ""
  36046. #. type: deftypevr
  36047. #: guix-git/doc/guix.texi:24159
  36048. #, no-wrap
  36049. msgid "{@code{ext-component-configuration} parameter} string component-secret"
  36050. msgstr ""
  36051. #. type: deftypevr
  36052. #: guix-git/doc/guix.texi:24161
  36053. msgid "Password which the component will use to log in."
  36054. msgstr ""
  36055. #. type: deftypevr
  36056. #: guix-git/doc/guix.texi:24163
  36057. #, no-wrap
  36058. msgid "{@code{ext-component-configuration} parameter} string hostname"
  36059. msgstr ""
  36060. #. type: deftypevr
  36061. #: guix-git/doc/guix.texi:24169
  36062. #, no-wrap
  36063. msgid "{@code{prosody-configuration} parameter} non-negative-integer-list component-ports"
  36064. msgstr ""
  36065. #. type: deftypevr
  36066. #: guix-git/doc/guix.texi:24172
  36067. msgid "Port(s) Prosody listens on for component connections. Defaults to @samp{(5347)}."
  36068. msgstr ""
  36069. #. type: deftypevr
  36070. #: guix-git/doc/guix.texi:24174
  36071. #, no-wrap
  36072. msgid "{@code{prosody-configuration} parameter} string component-interface"
  36073. msgstr ""
  36074. #. type: deftypevr
  36075. #: guix-git/doc/guix.texi:24177
  36076. msgid "Interface Prosody listens on for component connections. Defaults to @samp{\"127.0.0.1\"}."
  36077. msgstr ""
  36078. #. type: deftypevr
  36079. #: guix-git/doc/guix.texi:24179
  36080. #, no-wrap
  36081. msgid "{@code{prosody-configuration} parameter} maybe-raw-content raw-content"
  36082. msgstr ""
  36083. #. type: deftypevr
  36084. #: guix-git/doc/guix.texi:24181
  36085. msgid "Raw content that will be added to the configuration file."
  36086. msgstr ""
  36087. #. type: Plain text
  36088. #: guix-git/doc/guix.texi:24189
  36089. 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:"
  36090. msgstr ""
  36091. #. type: deftypevr
  36092. #: guix-git/doc/guix.texi:24190
  36093. #, no-wrap
  36094. msgid "{@code{opaque-prosody-configuration} parameter} package prosody"
  36095. msgstr ""
  36096. #. type: deftypevr
  36097. #: guix-git/doc/guix.texi:24192
  36098. msgid "The prosody package."
  36099. msgstr ""
  36100. #. type: deftypevr
  36101. #: guix-git/doc/guix.texi:24194
  36102. #, no-wrap
  36103. msgid "{@code{opaque-prosody-configuration} parameter} string prosody.cfg.lua"
  36104. msgstr ""
  36105. #. type: deftypevr
  36106. #: guix-git/doc/guix.texi:24196
  36107. msgid "The contents of the @code{prosody.cfg.lua} to use."
  36108. msgstr ""
  36109. #. type: Plain text
  36110. #: guix-git/doc/guix.texi:24200
  36111. msgid "For example, if your @code{prosody.cfg.lua} is just the empty string, you could instantiate a prosody service like this:"
  36112. msgstr ""
  36113. #. type: lisp
  36114. #: guix-git/doc/guix.texi:24205
  36115. #, no-wrap
  36116. msgid ""
  36117. "(service prosody-service-type\n"
  36118. " (opaque-prosody-configuration\n"
  36119. " (prosody.cfg.lua \"\")))\n"
  36120. msgstr ""
  36121. #. type: subsubheading
  36122. #: guix-git/doc/guix.texi:24209
  36123. #, no-wrap
  36124. msgid "BitlBee Service"
  36125. msgstr ""
  36126. #. type: cindex
  36127. #: guix-git/doc/guix.texi:24211 guix-git/doc/guix.texi:24255
  36128. #, no-wrap
  36129. msgid "IRC (Internet Relay Chat)"
  36130. msgstr ""
  36131. #. type: cindex
  36132. #: guix-git/doc/guix.texi:24212
  36133. #, no-wrap
  36134. msgid "IRC gateway"
  36135. msgstr ""
  36136. #. type: Plain text
  36137. #: guix-git/doc/guix.texi:24215
  36138. msgid "@url{https://bitlbee.org,BitlBee} is a gateway that provides an IRC interface to a variety of messaging protocols such as XMPP."
  36139. msgstr ""
  36140. #. type: defvr
  36141. #: guix-git/doc/guix.texi:24216
  36142. #, no-wrap
  36143. msgid "{Scheme Variable} bitlbee-service-type"
  36144. msgstr ""
  36145. #. type: defvr
  36146. #: guix-git/doc/guix.texi:24220
  36147. 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)."
  36148. msgstr ""
  36149. #. type: defvr
  36150. #: guix-git/doc/guix.texi:24223
  36151. msgid "To have BitlBee listen on port 6667 on localhost, add this line to your services:"
  36152. msgstr ""
  36153. #. type: lisp
  36154. #: guix-git/doc/guix.texi:24226
  36155. #, no-wrap
  36156. msgid "(service bitlbee-service-type)\n"
  36157. msgstr ""
  36158. #. type: deftp
  36159. #: guix-git/doc/guix.texi:24229
  36160. #, no-wrap
  36161. msgid "{Data Type} bitlbee-configuration"
  36162. msgstr ""
  36163. #. type: deftp
  36164. #: guix-git/doc/guix.texi:24231
  36165. msgid "This is the configuration for BitlBee, with the following fields:"
  36166. msgstr ""
  36167. #. type: item
  36168. #: guix-git/doc/guix.texi:24233
  36169. #, no-wrap
  36170. msgid "@code{interface} (default: @code{\"127.0.0.1\"})"
  36171. msgstr ""
  36172. #. type: itemx
  36173. #: guix-git/doc/guix.texi:24234
  36174. #, no-wrap
  36175. msgid "@code{port} (default: @code{6667})"
  36176. msgstr ""
  36177. #. type: table
  36178. #: guix-git/doc/guix.texi:24237
  36179. msgid "Listen on the network interface corresponding to the IP address specified in @var{interface}, on @var{port}."
  36180. msgstr ""
  36181. #. type: table
  36182. #: guix-git/doc/guix.texi:24241
  36183. 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."
  36184. msgstr ""
  36185. #. type: item
  36186. #: guix-git/doc/guix.texi:24242
  36187. #, fuzzy, no-wrap
  36188. msgid "@code{bitlbee} (default: @code{bitlbee})"
  36189. msgstr "@code{mate}(默认值:@code{mate})"
  36190. #. type: table
  36191. #: guix-git/doc/guix.texi:24244
  36192. msgid "The BitlBee package to use."
  36193. msgstr ""
  36194. #. type: item
  36195. #: guix-git/doc/guix.texi:24245
  36196. #, no-wrap
  36197. msgid "@code{plugins} (default: @code{'()})"
  36198. msgstr ""
  36199. #. type: table
  36200. #: guix-git/doc/guix.texi:24247
  36201. msgid "List of plugin packages to use---e.g., @code{bitlbee-discord}."
  36202. msgstr ""
  36203. #. type: table
  36204. #: guix-git/doc/guix.texi:24250
  36205. msgid "Configuration snippet added as-is to the BitlBee configuration file."
  36206. msgstr ""
  36207. #. type: subsubheading
  36208. #: guix-git/doc/guix.texi:24253
  36209. #, no-wrap
  36210. msgid "Quassel Service"
  36211. msgstr ""
  36212. #. type: Plain text
  36213. #: guix-git/doc/guix.texi:24259
  36214. 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."
  36215. msgstr ""
  36216. #. type: defvr
  36217. #: guix-git/doc/guix.texi:24260
  36218. #, no-wrap
  36219. msgid "{Scheme Variable} quassel-service-type"
  36220. msgstr ""
  36221. #. type: defvr
  36222. #: guix-git/doc/guix.texi:24264
  36223. 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)."
  36224. msgstr ""
  36225. #. type: deftp
  36226. #: guix-git/doc/guix.texi:24266
  36227. #, no-wrap
  36228. msgid "{Data Type} quassel-configuration"
  36229. msgstr ""
  36230. #. type: deftp
  36231. #: guix-git/doc/guix.texi:24268
  36232. msgid "This is the configuration for Quassel, with the following fields:"
  36233. msgstr ""
  36234. #. type: item
  36235. #: guix-git/doc/guix.texi:24270
  36236. #, no-wrap
  36237. msgid "@code{quassel} (default: @code{quassel})"
  36238. msgstr ""
  36239. #. type: table
  36240. #: guix-git/doc/guix.texi:24272
  36241. msgid "The Quassel package to use."
  36242. msgstr ""
  36243. #. type: item
  36244. #: guix-git/doc/guix.texi:24273
  36245. #, no-wrap
  36246. msgid "@code{interface} (default: @code{\"::,0.0.0.0\"})"
  36247. msgstr ""
  36248. #. type: item
  36249. #: guix-git/doc/guix.texi:24274
  36250. #, no-wrap
  36251. msgid "@code{port} (default: @code{4242})"
  36252. msgstr ""
  36253. #. type: table
  36254. #: guix-git/doc/guix.texi:24278
  36255. msgid "Listen on the network interface(s) corresponding to the IPv4 or IPv6 interfaces specified in the comma delimited @var{interface}, on @var{port}."
  36256. msgstr ""
  36257. #. type: item
  36258. #: guix-git/doc/guix.texi:24279
  36259. #, no-wrap
  36260. msgid "@code{loglevel} (default: @code{\"Info\"})"
  36261. msgstr ""
  36262. #. type: table
  36263. #: guix-git/doc/guix.texi:24282
  36264. msgid "The level of logging desired. Accepted values are Debug, Info, Warning and Error."
  36265. msgstr ""
  36266. #. type: cindex
  36267. #: guix-git/doc/guix.texi:24288
  36268. #, fuzzy, no-wrap
  36269. #| msgid "Telephony services."
  36270. msgid "telephony, services"
  36271. msgstr "电话服务。"
  36272. #. type: Plain text
  36273. #: guix-git/doc/guix.texi:24292
  36274. msgid "The @code{(gnu services telephony)} module contains Guix service definitions for telephony services. Currently it provides the following services:"
  36275. msgstr ""
  36276. #. type: subsubheading
  36277. #: guix-git/doc/guix.texi:24293
  36278. #, no-wrap
  36279. msgid "Jami"
  36280. msgstr ""
  36281. #. type: cindex
  36282. #: guix-git/doc/guix.texi:24295
  36283. #, fuzzy, no-wrap
  36284. msgid "jami, service"
  36285. msgstr "DNS服务"
  36286. #. type: Plain text
  36287. #: guix-git/doc/guix.texi:24301
  36288. msgid "This section describes how to configure a Jami server that can be used to host video (or audio) conferences, among other uses. The following example demonstrates how to specify Jami account archives (backups) to be provisioned automatically:"
  36289. msgstr ""
  36290. #. type: lisp
  36291. #: guix-git/doc/guix.texi:24310
  36292. #, no-wrap
  36293. msgid ""
  36294. "(service jami-service-type\n"
  36295. " (jami-configuration\n"
  36296. " (accounts\n"
  36297. " (list (jami-account\n"
  36298. " (archive \"/etc/jami/unencrypted-account-1.gz\"))\n"
  36299. " (jami-account\n"
  36300. " (archive \"/etc/jami/unencrypted-account-2.gz\"))))))\n"
  36301. msgstr ""
  36302. #. type: Plain text
  36303. #: guix-git/doc/guix.texi:24315
  36304. msgid "When the accounts field is specified, the Jami account files of the service found under @file{/var/lib/jami} are recreated every time the service starts."
  36305. msgstr ""
  36306. #. type: Plain text
  36307. #: guix-git/doc/guix.texi:24320
  36308. msgid "Jami accounts and their corresponding backup archives can be generated using the @code{jami} or @code{jami-gnome} Jami clients. The accounts should not be password-protected, but it is wise to ensure their files are only readable by @samp{root}."
  36309. msgstr ""
  36310. #. type: Plain text
  36311. #: guix-git/doc/guix.texi:24323
  36312. msgid "The next example shows how to declare that only some contacts should be allowed to communicate with a given account:"
  36313. msgstr ""
  36314. #. type: lisp
  36315. #: guix-git/doc/guix.texi:24335
  36316. #, no-wrap
  36317. msgid ""
  36318. "(service jami-service-type\n"
  36319. " (jami-configuration\n"
  36320. " (accounts\n"
  36321. " (list (jami-account\n"
  36322. " (archive \"/etc/jami/unencrypted-account-1.gz\")\n"
  36323. " (peer-discovery? #t)\n"
  36324. " (rendezvous-point? #t)\n"
  36325. " (allowed-contacts\n"
  36326. " '(\"1dbcb0f5f37324228235564b79f2b9737e9a008f\"\n"
  36327. " \"2dbcb0f5f37324228235564b79f2b9737e9a008f\")))))))\n"
  36328. msgstr ""
  36329. #. type: Plain text
  36330. #: guix-git/doc/guix.texi:24341
  36331. msgid "In this mode, only the declared @code{allowed-contacts} can initiate communication with the Jami account. This can be used, for example, with rendezvous point accounts to create a private video conferencing space."
  36332. msgstr ""
  36333. #. type: Plain text
  36334. #: guix-git/doc/guix.texi:24344
  36335. msgid "To put the system administrator in full control of the conferences hosted on their system, the Jami service supports the following actions:"
  36336. msgstr ""
  36337. #. type: example
  36338. #: guix-git/doc/guix.texi:24356
  36339. #, no-wrap
  36340. msgid ""
  36341. "# herd doc jami list-actions\n"
  36342. "(list-accounts\n"
  36343. " list-account-details\n"
  36344. " list-banned-contacts\n"
  36345. " list-contacts\n"
  36346. " list-moderators\n"
  36347. " add-moderator\n"
  36348. " ban-contact\n"
  36349. " enable-account\n"
  36350. " disable-account)\n"
  36351. msgstr ""
  36352. #. type: Plain text
  36353. #: guix-git/doc/guix.texi:24363
  36354. msgid "The above actions aim to provide the most valuable actions for moderation purposes, not to cover the whole Jami API. Users wanting to interact with the Jami daemon from Guile may be interested in experimenting with the @code{(gnu build jami-service)} module, which powers the above Shepherd actions."
  36355. msgstr ""
  36356. #. type: Plain text
  36357. #: guix-git/doc/guix.texi:24369
  36358. msgid "The @code{add-moderator} and @code{ban-contact} actions accept a contact @emph{fingerprint} (40 characters long hash) as first argument and an account fingerprint or username as second argument:"
  36359. msgstr ""
  36360. #. type: example
  36361. #: guix-git/doc/guix.texi:24373
  36362. #, no-wrap
  36363. msgid ""
  36364. "# herd add-moderator jami 1dbcb0f5f37324228235564b79f2b9737e9a008f \\\n"
  36365. " f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  36366. "\n"
  36367. msgstr ""
  36368. #. type: example
  36369. #: guix-git/doc/guix.texi:24377
  36370. #, no-wrap
  36371. msgid ""
  36372. "# herd list-moderators jami\n"
  36373. "Moderators for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  36374. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  36375. "\n"
  36376. msgstr ""
  36377. #. type: Plain text
  36378. #: guix-git/doc/guix.texi:24382
  36379. msgid "In the case of @code{ban-contact}, the second username argument is optional; when omitted, the account is banned from all Jami accounts:"
  36380. msgstr ""
  36381. #. type: example
  36382. #: guix-git/doc/guix.texi:24385
  36383. #, no-wrap
  36384. msgid ""
  36385. "# herd ban-contact jami 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  36386. "\n"
  36387. msgstr ""
  36388. #. type: example
  36389. #: guix-git/doc/guix.texi:24389
  36390. #, no-wrap
  36391. msgid ""
  36392. "# herd list-banned-contacts jami\n"
  36393. "Banned contacts for account f3345f2775ddfe07a4b0d95daea111d15fbc1199:\n"
  36394. " - 1dbcb0f5f37324228235564b79f2b9737e9a008f\n"
  36395. "\n"
  36396. msgstr ""
  36397. #. type: Plain text
  36398. #: guix-git/doc/guix.texi:24393
  36399. msgid "Banned contacts are also stripped from their moderation privileges."
  36400. msgstr ""
  36401. #. type: Plain text
  36402. #: guix-git/doc/guix.texi:24398
  36403. msgid "The @code{disable-account} action allows to completely disconnect an account from the network, making it unreachable, while @code{enable-account} does the inverse. They accept a single account username or fingerprint as first argument:"
  36404. msgstr ""
  36405. #. type: example
  36406. #: guix-git/doc/guix.texi:24401
  36407. #, no-wrap
  36408. msgid ""
  36409. "# herd disable-account jami f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  36410. "\n"
  36411. msgstr ""
  36412. #. type: example
  36413. #: guix-git/doc/guix.texi:24405
  36414. #, no-wrap
  36415. msgid ""
  36416. "# herd list-accounts jami\n"
  36417. "The following Jami accounts are available:\n"
  36418. " - f3345f2775ddfe07a4b0d95daea111d15fbc1199 (dummy) [disabled]\n"
  36419. "\n"
  36420. msgstr ""
  36421. #. type: Plain text
  36422. #: guix-git/doc/guix.texi:24416
  36423. msgid "The @code{list-account-details} action prints the detailed parameters of each accounts in the Recutils format, which means the @command{recsel} command can be used to select accounts of interest (@pxref{Selection Expressions,,,recutils, GNU recutils manual}). Note that period characters (@samp{.}) found in the account parameter keys are mapped to underscores (@samp{_}) in the output, to meet the requirements of the Recutils format. The following example shows how to print the account fingerprints for all accounts operating in the rendezvous point mode:"
  36424. msgstr ""
  36425. #. type: example
  36426. #: guix-git/doc/guix.texi:24421
  36427. #, no-wrap
  36428. msgid ""
  36429. "# herd list-account-details jami | \\\n"
  36430. " recsel -p Account.username -e 'Account.rendezVous ~ \"true\"'\n"
  36431. "Account_username: f3345f2775ddfe07a4b0d95daea111d15fbc1199\n"
  36432. msgstr ""
  36433. #. type: Plain text
  36434. #: guix-git/doc/guix.texi:24424
  36435. msgid "The remaining actions should be self-explanatory."
  36436. msgstr ""
  36437. #. type: Plain text
  36438. #: guix-git/doc/guix.texi:24426
  36439. msgid "The complete set of available configuration options is detailed below."
  36440. msgstr ""
  36441. #. type: deftp
  36442. #: guix-git/doc/guix.texi:24430
  36443. #, fuzzy, no-wrap
  36444. msgid "{Data Type} jami-configuration"
  36445. msgstr "{数据类型} build-machine"
  36446. #. type: deftp
  36447. #: guix-git/doc/guix.texi:24432
  36448. msgid "Available @code{jami-configuration} fields are:"
  36449. msgstr ""
  36450. #. type: item
  36451. #: guix-git/doc/guix.texi:24434
  36452. #, fuzzy, no-wrap
  36453. msgid "@code{jamid} (default: @code{libjami}) (type: package)"
  36454. msgstr "@code{xfce}(默认值:@code{xfce})"
  36455. #. type: table
  36456. #: guix-git/doc/guix.texi:24436
  36457. #, fuzzy
  36458. msgid "The Jami daemon package to use."
  36459. msgstr "软件包数据类型。"
  36460. #. type: item
  36461. #: guix-git/doc/guix.texi:24437
  36462. #, fuzzy, no-wrap
  36463. msgid "@code{dbus} (default: @code{dbus}) (type: package)"
  36464. msgstr "@code{xfce}(默认值:@code{xfce})"
  36465. #. type: table
  36466. #: guix-git/doc/guix.texi:24439
  36467. #, fuzzy
  36468. msgid "The D-Bus package to use to start the required D-Bus session."
  36469. msgstr "软件包数据类型。"
  36470. #. type: item
  36471. #: guix-git/doc/guix.texi:24440
  36472. #, fuzzy, no-wrap
  36473. msgid "@code{nss-certs} (default: @code{nss-certs}) (type: package)"
  36474. msgstr "@code{xfce}(默认值:@code{xfce})"
  36475. #. type: table
  36476. #: guix-git/doc/guix.texi:24442
  36477. #, fuzzy
  36478. msgid "The nss-certs package to use to provide TLS certificates."
  36479. msgstr "软件包数据类型。"
  36480. #. type: item
  36481. #: guix-git/doc/guix.texi:24443
  36482. #, fuzzy, no-wrap
  36483. msgid "@code{enable-logging?} (default: @code{#t}) (type: boolean)"
  36484. msgstr "@code{speed}(默认值:@code{1.0})"
  36485. #. type: table
  36486. #: guix-git/doc/guix.texi:24445
  36487. msgid "Whether to enable logging to syslog."
  36488. msgstr ""
  36489. #. type: item
  36490. #: guix-git/doc/guix.texi:24446
  36491. #, fuzzy, no-wrap
  36492. msgid "@code{debug?} (default: @code{#f}) (type: boolean)"
  36493. msgstr "@code{challenge}(默认值:@code{#f})"
  36494. #. type: table
  36495. #: guix-git/doc/guix.texi:24448
  36496. msgid "Whether to enable debug level messages."
  36497. msgstr ""
  36498. #. type: item
  36499. #: guix-git/doc/guix.texi:24449
  36500. #, fuzzy, no-wrap
  36501. msgid "@code{auto-answer?} (default: @code{#f}) (type: boolean)"
  36502. msgstr "@code{port}(默认值:@code{22})"
  36503. #. type: table
  36504. #: guix-git/doc/guix.texi:24451
  36505. msgid "Whether to force automatic answer to incoming calls."
  36506. msgstr ""
  36507. #. type: item
  36508. #: guix-git/doc/guix.texi:24452
  36509. #, fuzzy, no-wrap
  36510. msgid "@code{accounts} (default: @code{disabled}) (type: maybe-jami-account-list)"
  36511. msgstr "@code{gnome}(默认值:@code{gnome})"
  36512. #. type: table
  36513. #: guix-git/doc/guix.texi:24457
  36514. msgid "A list of Jami accounts to be (re-)provisioned every time the Jami daemon service starts. When providing this field, the account directories under @file{/var/lib/jami/} are recreated every time the service starts, ensuring a consistent state."
  36515. msgstr ""
  36516. #. type: deftp
  36517. #: guix-git/doc/guix.texi:24463
  36518. #, fuzzy, no-wrap
  36519. msgid "{Data Type} jami-account"
  36520. msgstr "{数据类型} build-machine"
  36521. #. type: deftp
  36522. #: guix-git/doc/guix.texi:24465
  36523. msgid "Available @code{jami-account} fields are:"
  36524. msgstr ""
  36525. #. type: item
  36526. #: guix-git/doc/guix.texi:24467
  36527. #, no-wrap
  36528. msgid "@code{archive} (type: string-or-computed-file)"
  36529. msgstr ""
  36530. #. type: table
  36531. #: guix-git/doc/guix.texi:24473
  36532. msgid "The account archive (backup) file name of the account. This is used to provision the account when the service starts. The account archive should @emph{not} be encrypted. It is highly recommended to make it readable only to the @samp{root} user (i.e., not in the store), to guard against leaking the secret key material of the Jami account it contains."
  36533. msgstr ""
  36534. #. type: item
  36535. #: guix-git/doc/guix.texi:24474
  36536. #, no-wrap
  36537. msgid "@code{allowed-contacts} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  36538. msgstr ""
  36539. #. type: table
  36540. #: guix-git/doc/guix.texi:24481
  36541. msgid "The list of allowed contacts for the account, entered as their 40 characters long fingerprint. Messages or calls from accounts not in that list will be rejected. When unspecified, the configuration of the account archive is used as-is with respect to contacts and public inbound calls/messaging allowance, which typically defaults to allow any contact to communicate with the account."
  36542. msgstr ""
  36543. #. type: item
  36544. #: guix-git/doc/guix.texi:24482
  36545. #, no-wrap
  36546. msgid "@code{moderators} (default: @code{disabled}) (type: maybe-account-fingerprint-list)"
  36547. msgstr ""
  36548. #. type: table
  36549. #: guix-git/doc/guix.texi:24488
  36550. msgid "The list of contacts that should have moderation privileges (to ban, mute, etc. other users) in rendezvous conferences, entered as their 40 characters long fingerprint. When unspecified, the configuration of the account archive is used as-is with respect to moderation, which typically defaults to allow anyone to moderate."
  36551. msgstr ""
  36552. #. type: item
  36553. #: guix-git/doc/guix.texi:24489
  36554. #, fuzzy, no-wrap
  36555. msgid "@code{rendezvous-point?} (default: @code{disabled}) (type: maybe-boolean)"
  36556. msgstr "@code{port}(默认值:@code{22})"
  36557. #. type: table
  36558. #: guix-git/doc/guix.texi:24493
  36559. msgid "Whether the account should operate in the rendezvous mode. In this mode, all the incoming audio/video calls are mixed into a conference. When left unspecified, the value from the account archive prevails."
  36560. msgstr ""
  36561. #. type: item
  36562. #: guix-git/doc/guix.texi:24494
  36563. #, fuzzy, no-wrap
  36564. msgid "@code{peer-discovery?} (default: @code{disabled}) (type: maybe-boolean)"
  36565. msgstr "@code{speed}(默认值:@code{1.0})"
  36566. #. type: table
  36567. #: guix-git/doc/guix.texi:24500
  36568. msgid "Whether peer discovery should be enabled. Peer discovery is used to discover other OpenDHT nodes on the local network, which can be useful to maintain communication between devices on such network even when the connection to the the Internet has been lost. When left unspecified, the value from the account archive prevails."
  36569. msgstr ""
  36570. #. type: item
  36571. #: guix-git/doc/guix.texi:24501
  36572. #, fuzzy, no-wrap
  36573. msgid "@code{bootstrap-hostnames} (default: @code{disabled}) (type: maybe-string-list)"
  36574. msgstr "@code{mate}(默认值:@code{mate})"
  36575. #. type: table
  36576. #: guix-git/doc/guix.texi:24505
  36577. msgid "A list of hostnames or IPs pointing to OpenDHT nodes, that should be used to initially join the OpenDHT network. When left unspecified, the value from the account archive prevails."
  36578. msgstr ""
  36579. #. type: item
  36580. #: guix-git/doc/guix.texi:24506
  36581. #, fuzzy, no-wrap
  36582. msgid "@code{name-server-uri} (default: @code{disabled}) (type: maybe-string)"
  36583. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  36584. #. type: table
  36585. #: guix-git/doc/guix.texi:24509
  36586. msgid "The URI of the name server to use, that can be used to retrieve the account fingerprint for a registered username."
  36587. msgstr ""
  36588. #. type: cindex
  36589. #: guix-git/doc/guix.texi:24514 guix-git/doc/guix.texi:24516
  36590. #, no-wrap
  36591. msgid "Murmur (VoIP server)"
  36592. msgstr ""
  36593. #. type: cindex
  36594. #: guix-git/doc/guix.texi:24517
  36595. #, no-wrap
  36596. msgid "VoIP server"
  36597. msgstr ""
  36598. #. type: Plain text
  36599. #: guix-git/doc/guix.texi:24521
  36600. 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."
  36601. msgstr ""
  36602. #. type: deftp
  36603. #: guix-git/doc/guix.texi:24522
  36604. #, no-wrap
  36605. msgid "{Data Type} murmur-configuration"
  36606. msgstr ""
  36607. #. type: deftp
  36608. #: guix-git/doc/guix.texi:24525
  36609. msgid "The service type for the Murmur server. An example configuration can look like this:"
  36610. msgstr ""
  36611. #. type: lisp
  36612. #: guix-git/doc/guix.texi:24534
  36613. #, no-wrap
  36614. msgid ""
  36615. "(service murmur-service-type\n"
  36616. " (murmur-configuration\n"
  36617. " (welcome-text\n"
  36618. " \"Welcome to this Mumble server running on Guix!\")\n"
  36619. " (cert-required? #t) ;disallow text password logins\n"
  36620. " (ssl-cert \"/etc/letsencrypt/live/mumble.example.com/fullchain.pem\")\n"
  36621. " (ssl-key \"/etc/letsencrypt/live/mumble.example.com/privkey.pem\")))\n"
  36622. msgstr ""
  36623. #. type: deftp
  36624. #: guix-git/doc/guix.texi:24538
  36625. msgid "After reconfiguring your system, you can manually set the murmur @code{SuperUser} password with the command that is printed during the activation phase."
  36626. msgstr ""
  36627. #. type: deftp
  36628. #: guix-git/doc/guix.texi:24547
  36629. 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."
  36630. msgstr ""
  36631. #. type: deftp
  36632. #: guix-git/doc/guix.texi:24549
  36633. msgid "Available @code{murmur-configuration} fields are:"
  36634. msgstr ""
  36635. #. type: item
  36636. #: guix-git/doc/guix.texi:24551
  36637. #, no-wrap
  36638. msgid "@code{package} (default: @code{mumble})"
  36639. msgstr ""
  36640. #. type: table
  36641. #: guix-git/doc/guix.texi:24553
  36642. msgid "Package that contains @code{bin/murmurd}."
  36643. msgstr ""
  36644. #. type: item
  36645. #: guix-git/doc/guix.texi:24554
  36646. #, no-wrap
  36647. msgid "@code{user} (default: @code{\"murmur\"})"
  36648. msgstr ""
  36649. #. type: table
  36650. #: guix-git/doc/guix.texi:24556
  36651. msgid "User who will run the Murmur server."
  36652. msgstr ""
  36653. #. type: item
  36654. #: guix-git/doc/guix.texi:24557
  36655. #, no-wrap
  36656. msgid "@code{group} (default: @code{\"murmur\"})"
  36657. msgstr ""
  36658. #. type: table
  36659. #: guix-git/doc/guix.texi:24559
  36660. msgid "Group of the user who will run the murmur server."
  36661. msgstr ""
  36662. #. type: item
  36663. #: guix-git/doc/guix.texi:24560
  36664. #, no-wrap
  36665. msgid "@code{port} (default: @code{64738})"
  36666. msgstr ""
  36667. #. type: table
  36668. #: guix-git/doc/guix.texi:24562
  36669. msgid "Port on which the server will listen."
  36670. msgstr ""
  36671. #. type: item
  36672. #: guix-git/doc/guix.texi:24563
  36673. #, no-wrap
  36674. msgid "@code{welcome-text} (default: @code{\"\"})"
  36675. msgstr ""
  36676. #. type: table
  36677. #: guix-git/doc/guix.texi:24565
  36678. msgid "Welcome text sent to clients when they connect."
  36679. msgstr ""
  36680. #. type: item
  36681. #: guix-git/doc/guix.texi:24566
  36682. #, no-wrap
  36683. msgid "@code{server-password} (default: @code{\"\"})"
  36684. msgstr ""
  36685. #. type: table
  36686. #: guix-git/doc/guix.texi:24568
  36687. msgid "Password the clients have to enter in order to connect."
  36688. msgstr ""
  36689. #. type: item
  36690. #: guix-git/doc/guix.texi:24569
  36691. #, no-wrap
  36692. msgid "@code{max-users} (default: @code{100})"
  36693. msgstr ""
  36694. #. type: table
  36695. #: guix-git/doc/guix.texi:24571
  36696. msgid "Maximum of users that can be connected to the server at once."
  36697. msgstr ""
  36698. #. type: item
  36699. #: guix-git/doc/guix.texi:24572
  36700. #, no-wrap
  36701. msgid "@code{max-user-bandwidth} (default: @code{#f})"
  36702. msgstr ""
  36703. #. type: table
  36704. #: guix-git/doc/guix.texi:24574
  36705. msgid "Maximum voice traffic a user can send per second."
  36706. msgstr ""
  36707. #. type: item
  36708. #: guix-git/doc/guix.texi:24575
  36709. #, no-wrap
  36710. msgid "@code{database-file} (default: @code{\"/var/lib/murmur/db.sqlite\"})"
  36711. msgstr ""
  36712. #. type: table
  36713. #: guix-git/doc/guix.texi:24578
  36714. msgid "File name of the sqlite database. The service's user will become the owner of the directory."
  36715. msgstr ""
  36716. #. type: item
  36717. #: guix-git/doc/guix.texi:24579
  36718. #, no-wrap
  36719. msgid "@code{log-file} (default: @code{\"/var/log/murmur/murmur.log\"})"
  36720. msgstr ""
  36721. #. type: table
  36722. #: guix-git/doc/guix.texi:24582
  36723. msgid "File name of the log file. The service's user will become the owner of the directory."
  36724. msgstr ""
  36725. #. type: item
  36726. #: guix-git/doc/guix.texi:24583
  36727. #, no-wrap
  36728. msgid "@code{autoban-attempts} (default: @code{10})"
  36729. msgstr ""
  36730. #. type: table
  36731. #: guix-git/doc/guix.texi:24586
  36732. msgid "Maximum number of logins a user can make in @code{autoban-timeframe} without getting auto banned for @code{autoban-time}."
  36733. msgstr ""
  36734. #. type: item
  36735. #: guix-git/doc/guix.texi:24587
  36736. #, no-wrap
  36737. msgid "@code{autoban-timeframe} (default: @code{120})"
  36738. msgstr ""
  36739. #. type: table
  36740. #: guix-git/doc/guix.texi:24589
  36741. msgid "Timeframe for autoban in seconds."
  36742. msgstr ""
  36743. #. type: item
  36744. #: guix-git/doc/guix.texi:24590
  36745. #, no-wrap
  36746. msgid "@code{autoban-time} (default: @code{300})"
  36747. msgstr ""
  36748. #. type: table
  36749. #: guix-git/doc/guix.texi:24593
  36750. msgid "Amount of time in seconds for which a client gets banned when violating the autoban limits."
  36751. msgstr ""
  36752. #. type: item
  36753. #: guix-git/doc/guix.texi:24594
  36754. #, no-wrap
  36755. msgid "@code{opus-threshold} (default: @code{100})"
  36756. msgstr ""
  36757. #. type: table
  36758. #: guix-git/doc/guix.texi:24597
  36759. msgid "Percentage of clients that need to support opus before switching over to opus audio codec."
  36760. msgstr ""
  36761. #. type: item
  36762. #: guix-git/doc/guix.texi:24598
  36763. #, no-wrap
  36764. msgid "@code{channel-nesting-limit} (default: @code{10})"
  36765. msgstr ""
  36766. #. type: table
  36767. #: guix-git/doc/guix.texi:24600
  36768. msgid "How deep channels can be nested at maximum."
  36769. msgstr ""
  36770. #. type: item
  36771. #: guix-git/doc/guix.texi:24601
  36772. #, no-wrap
  36773. msgid "@code{channelname-regex} (default: @code{#f})"
  36774. msgstr ""
  36775. #. type: table
  36776. #: guix-git/doc/guix.texi:24603
  36777. msgid "A string in form of a Qt regular expression that channel names must conform to."
  36778. msgstr ""
  36779. #. type: item
  36780. #: guix-git/doc/guix.texi:24604
  36781. #, no-wrap
  36782. msgid "@code{username-regex} (default: @code{#f})"
  36783. msgstr ""
  36784. #. type: table
  36785. #: guix-git/doc/guix.texi:24606
  36786. msgid "A string in form of a Qt regular expression that user names must conform to."
  36787. msgstr ""
  36788. #. type: item
  36789. #: guix-git/doc/guix.texi:24607
  36790. #, no-wrap
  36791. msgid "@code{text-message-length} (default: @code{5000})"
  36792. msgstr ""
  36793. #. type: table
  36794. #: guix-git/doc/guix.texi:24609
  36795. msgid "Maximum size in bytes that a user can send in one text chat message."
  36796. msgstr ""
  36797. #. type: item
  36798. #: guix-git/doc/guix.texi:24610
  36799. #, no-wrap
  36800. msgid "@code{image-message-length} (default: @code{(* 128 1024)})"
  36801. msgstr ""
  36802. #. type: table
  36803. #: guix-git/doc/guix.texi:24612
  36804. msgid "Maximum size in bytes that a user can send in one image message."
  36805. msgstr ""
  36806. #. type: item
  36807. #: guix-git/doc/guix.texi:24613
  36808. #, no-wrap
  36809. msgid "@code{cert-required?} (default: @code{#f})"
  36810. msgstr ""
  36811. #. type: table
  36812. #: guix-git/doc/guix.texi:24616
  36813. 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."
  36814. msgstr ""
  36815. #. type: item
  36816. #: guix-git/doc/guix.texi:24617
  36817. #, no-wrap
  36818. msgid "@code{remember-channel?} (default: @code{#f})"
  36819. msgstr ""
  36820. #. type: table
  36821. #: guix-git/doc/guix.texi:24620
  36822. msgid "Should murmur remember the last channel each user was in when they disconnected and put them into the remembered channel when they rejoin."
  36823. msgstr ""
  36824. #. type: item
  36825. #: guix-git/doc/guix.texi:24621
  36826. #, no-wrap
  36827. msgid "@code{allow-html?} (default: @code{#f})"
  36828. msgstr ""
  36829. #. type: table
  36830. #: guix-git/doc/guix.texi:24623
  36831. msgid "Should html be allowed in text messages, user comments, and channel descriptions."
  36832. msgstr ""
  36833. #. type: item
  36834. #: guix-git/doc/guix.texi:24624
  36835. #, no-wrap
  36836. msgid "@code{allow-ping?} (default: @code{#f})"
  36837. msgstr ""
  36838. #. type: table
  36839. #: guix-git/doc/guix.texi:24628
  36840. 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."
  36841. msgstr ""
  36842. #. type: table
  36843. #: guix-git/doc/guix.texi:24630
  36844. msgid "Disabling this setting will prevent public listing of the server."
  36845. msgstr ""
  36846. #. type: item
  36847. #: guix-git/doc/guix.texi:24631
  36848. #, no-wrap
  36849. msgid "@code{bonjour?} (default: @code{#f})"
  36850. msgstr ""
  36851. #. type: table
  36852. #: guix-git/doc/guix.texi:24633
  36853. msgid "Should the server advertise itself in the local network through the bonjour protocol."
  36854. msgstr ""
  36855. #. type: item
  36856. #: guix-git/doc/guix.texi:24634
  36857. #, no-wrap
  36858. msgid "@code{send-version?} (default: @code{#f})"
  36859. msgstr ""
  36860. #. type: table
  36861. #: guix-git/doc/guix.texi:24636
  36862. msgid "Should the murmur server version be exposed in ping requests."
  36863. msgstr ""
  36864. #. type: item
  36865. #: guix-git/doc/guix.texi:24637
  36866. #, no-wrap
  36867. msgid "@code{log-days} (default: @code{31})"
  36868. msgstr ""
  36869. #. type: table
  36870. #: guix-git/doc/guix.texi:24641
  36871. 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."
  36872. msgstr ""
  36873. #. type: item
  36874. #: guix-git/doc/guix.texi:24642
  36875. #, no-wrap
  36876. msgid "@code{obfuscate-ips?} (default: @code{#t})"
  36877. msgstr ""
  36878. #. type: table
  36879. #: guix-git/doc/guix.texi:24644
  36880. msgid "Should logged ips be obfuscated to protect the privacy of users."
  36881. msgstr ""
  36882. #. type: item
  36883. #: guix-git/doc/guix.texi:24645
  36884. #, no-wrap
  36885. msgid "@code{ssl-cert} (default: @code{#f})"
  36886. msgstr ""
  36887. #. type: table
  36888. #: guix-git/doc/guix.texi:24647
  36889. msgid "File name of the SSL/TLS certificate used for encrypted connections."
  36890. msgstr ""
  36891. #. type: lisp
  36892. #: guix-git/doc/guix.texi:24650
  36893. #, no-wrap
  36894. msgid "(ssl-cert \"/etc/letsencrypt/live/example.com/fullchain.pem\")\n"
  36895. msgstr ""
  36896. #. type: item
  36897. #: guix-git/doc/guix.texi:24651
  36898. #, no-wrap
  36899. msgid "@code{ssl-key} (default: @code{#f})"
  36900. msgstr ""
  36901. #. type: table
  36902. #: guix-git/doc/guix.texi:24653
  36903. msgid "Filepath to the ssl private key used for encrypted connections."
  36904. msgstr ""
  36905. #. type: lisp
  36906. #: guix-git/doc/guix.texi:24655
  36907. #, no-wrap
  36908. msgid "(ssl-key \"/etc/letsencrypt/live/example.com/privkey.pem\")\n"
  36909. msgstr ""
  36910. #. type: item
  36911. #: guix-git/doc/guix.texi:24657
  36912. #, no-wrap
  36913. msgid "@code{ssl-dh-params} (default: @code{#f})"
  36914. msgstr ""
  36915. #. type: table
  36916. #: guix-git/doc/guix.texi:24662
  36917. 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."
  36918. msgstr ""
  36919. #. type: item
  36920. #: guix-git/doc/guix.texi:24663
  36921. #, no-wrap
  36922. msgid "@code{ssl-ciphers} (default: @code{#f})"
  36923. msgstr ""
  36924. #. type: table
  36925. #: guix-git/doc/guix.texi:24666
  36926. msgid "The @code{ssl-ciphers} option chooses the cipher suites to make available for use in SSL/TLS."
  36927. msgstr ""
  36928. #. type: table
  36929. #: guix-git/doc/guix.texi:24670
  36930. msgid "This option is specified using @uref{https://www.openssl.org/docs/apps/ciphers.html#CIPHER-LIST-FORMAT, OpenSSL cipher list notation}."
  36931. msgstr ""
  36932. #. type: table
  36933. #: guix-git/doc/guix.texi:24675
  36934. 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."
  36935. msgstr ""
  36936. #. type: table
  36937. #: guix-git/doc/guix.texi:24679
  36938. 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."
  36939. msgstr ""
  36940. #. type: item
  36941. #: guix-git/doc/guix.texi:24680
  36942. #, no-wrap
  36943. msgid "@code{public-registration} (default: @code{#f})"
  36944. msgstr ""
  36945. #. type: table
  36946. #: guix-git/doc/guix.texi:24682
  36947. msgid "Must be a @code{<murmur-public-registration-configuration>} record or @code{#f}."
  36948. msgstr ""
  36949. #. type: table
  36950. #: guix-git/doc/guix.texi:24687
  36951. 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}."
  36952. msgstr ""
  36953. #. type: table
  36954. #: guix-git/doc/guix.texi:24689
  36955. msgid "It might take a few hours until it shows up in the public list."
  36956. msgstr ""
  36957. #. type: item
  36958. #: guix-git/doc/guix.texi:24690 guix-git/doc/guix.texi:26837
  36959. #, no-wrap
  36960. msgid "@code{file} (default: @code{#f})"
  36961. msgstr ""
  36962. #. type: table
  36963. #: guix-git/doc/guix.texi:24692
  36964. msgid "Optional alternative override for this configuration."
  36965. msgstr ""
  36966. #. type: deftp
  36967. #: guix-git/doc/guix.texi:24695
  36968. #, no-wrap
  36969. msgid "{Data Type} murmur-public-registration-configuration"
  36970. msgstr ""
  36971. #. type: deftp
  36972. #: guix-git/doc/guix.texi:24697
  36973. msgid "Configuration for public registration of a murmur service."
  36974. msgstr ""
  36975. #. type: table
  36976. #: guix-git/doc/guix.texi:24701
  36977. msgid "This is a display name for your server. Not to be confused with the hostname."
  36978. msgstr ""
  36979. #. type: itemx
  36980. #: guix-git/doc/guix.texi:24702 guix-git/doc/guix.texi:33600
  36981. #: guix-git/doc/guix.texi:34857
  36982. #, no-wrap
  36983. msgid "password"
  36984. msgstr ""
  36985. #. type: table
  36986. #: guix-git/doc/guix.texi:24705
  36987. msgid "A password to identify your registration. Subsequent updates will need the same password. Don't lose your password."
  36988. msgstr ""
  36989. #. type: table
  36990. #: guix-git/doc/guix.texi:24709
  36991. msgid "This should be a @code{http://} or @code{https://} link to your web site."
  36992. msgstr ""
  36993. #. type: item
  36994. #: guix-git/doc/guix.texi:24710 guix-git/doc/guix.texi:27725
  36995. #, no-wrap
  36996. msgid "@code{hostname} (default: @code{#f})"
  36997. msgstr ""
  36998. #. type: table
  36999. #: guix-git/doc/guix.texi:24713
  37000. 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."
  37001. msgstr ""
  37002. #. type: Plain text
  37003. #: guix-git/doc/guix.texi:24723
  37004. msgid "The @code{(gnu services file-sharing)} module provides services that assist with transferring files over peer-to-peer file-sharing networks."
  37005. msgstr ""
  37006. #. type: subsubheading
  37007. #: guix-git/doc/guix.texi:24724
  37008. #, fuzzy, no-wrap
  37009. msgid "Transmission Daemon Service"
  37010. msgstr "版本控制服务"
  37011. #. type: Plain text
  37012. #: guix-git/doc/guix.texi:24732
  37013. 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."
  37014. msgstr ""
  37015. #. type: deffn
  37016. #: guix-git/doc/guix.texi:24733
  37017. #, no-wrap
  37018. msgid "{Scheme Variable} transmission-daemon-service-type"
  37019. msgstr ""
  37020. #. type: deffn
  37021. #: guix-git/doc/guix.texi:24737
  37022. msgid "The service type for the Transmission Daemon BitTorrent client. Its value must be a @code{transmission-daemon-configuration} object as in this example:"
  37023. msgstr ""
  37024. #. type: lisp
  37025. #: guix-git/doc/guix.texi:24748
  37026. #, no-wrap
  37027. msgid ""
  37028. "(service transmission-daemon-service-type\n"
  37029. " (transmission-daemon-configuration\n"
  37030. " ;; Restrict access to the RPC (\"control\") interface\n"
  37031. " (rpc-authentication-required? #t)\n"
  37032. " (rpc-username \"transmission\")\n"
  37033. " (rpc-password\n"
  37034. " (transmission-password-hash\n"
  37035. " \"transmission\" ; desired password\n"
  37036. " \"uKd1uMs9\")) ; arbitrary salt value\n"
  37037. "\n"
  37038. msgstr ""
  37039. #. type: lisp
  37040. #: guix-git/doc/guix.texi:24753
  37041. #, no-wrap
  37042. msgid ""
  37043. " ;; Accept requests from this and other hosts on the\n"
  37044. " ;; local network\n"
  37045. " (rpc-whitelist-enabled? #t)\n"
  37046. " (rpc-whitelist '(\"::1\" \"127.0.0.1\" \"192.168.0.*\"))\n"
  37047. "\n"
  37048. msgstr ""
  37049. #. type: lisp
  37050. #: guix-git/doc/guix.texi:24757
  37051. #, no-wrap
  37052. msgid ""
  37053. " ;; Limit bandwidth use during work hours\n"
  37054. " (alt-speed-down (* 1024 2)) ; 2 MB/s\n"
  37055. " (alt-speed-up 512) ; 512 kB/s\n"
  37056. "\n"
  37057. msgstr ""
  37058. #. type: lisp
  37059. #: guix-git/doc/guix.texi:24764
  37060. #, no-wrap
  37061. msgid ""
  37062. " (alt-speed-time-enabled? #t)\n"
  37063. " (alt-speed-time-day 'weekdays)\n"
  37064. " (alt-speed-time-begin\n"
  37065. " (+ (* 60 8) 30)) ; 8:30 am\n"
  37066. " (alt-speed-time-end\n"
  37067. " (+ (* 60 (+ 12 5)) 30)))) ; 5:30 pm\n"
  37068. msgstr ""
  37069. #. type: Plain text
  37070. #: guix-git/doc/guix.texi:24777
  37071. 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."
  37072. msgstr ""
  37073. #. type: Plain text
  37074. #: guix-git/doc/guix.texi:24785
  37075. 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."
  37076. msgstr ""
  37077. #. type: deffn
  37078. #: guix-git/doc/guix.texi:24786
  37079. #, no-wrap
  37080. msgid "{Scheme Procedure} transmission-password-hash @var{password} @var{salt}"
  37081. msgstr ""
  37082. #. type: deffn
  37083. #: guix-git/doc/guix.texi:24790
  37084. 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."
  37085. msgstr ""
  37086. #. type: deffn
  37087. #: guix-git/doc/guix.texi:24794
  37088. 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."
  37089. msgstr ""
  37090. #. type: deffn
  37091. #: guix-git/doc/guix.texi:24796
  37092. #, no-wrap
  37093. msgid "{Scheme Procedure} transmission-random-salt"
  37094. msgstr ""
  37095. #. type: deffn
  37096. #: guix-git/doc/guix.texi:24800
  37097. 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."
  37098. msgstr ""
  37099. #. type: Plain text
  37100. #: guix-git/doc/guix.texi:24806
  37101. 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:"
  37102. msgstr ""
  37103. #. type: example
  37104. #: guix-git/doc/guix.texi:24812
  37105. #, no-wrap
  37106. msgid ""
  37107. "$ guix repl\n"
  37108. "scheme@@(guix-user)> ,use (gnu services file-sharing)\n"
  37109. "scheme@@(guix-user)> (transmission-random-salt)\n"
  37110. "$1 = \"uKd1uMs9\"\n"
  37111. msgstr ""
  37112. #. type: Plain text
  37113. #: guix-git/doc/guix.texi:24815
  37114. msgid "Alternatively, a complete password hash can generated in a single step:"
  37115. msgstr ""
  37116. #. type: example
  37117. #: guix-git/doc/guix.texi:24820
  37118. #, no-wrap
  37119. msgid ""
  37120. "scheme@@(guix-user)> (transmission-password-hash \"transmission\"\n"
  37121. "(transmission-random-salt))\n"
  37122. "$2 = \"@{c8bbc6d1740cd8dc819a6e25563b67812c1c19c9VtFPfdsX\"\n"
  37123. msgstr ""
  37124. #. type: Plain text
  37125. #: guix-git/doc/guix.texi:24825
  37126. 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."
  37127. msgstr ""
  37128. #. type: Plain text
  37129. #: guix-git/doc/guix.texi:24834
  37130. 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."
  37131. msgstr ""
  37132. #. type: Plain text
  37133. #: guix-git/doc/guix.texi:24841
  37134. 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.)"
  37135. msgstr ""
  37136. #. type: Plain text
  37137. #: guix-git/doc/guix.texi:24846
  37138. 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:"
  37139. msgstr ""
  37140. #. type: example
  37141. #: guix-git/doc/guix.texi:24849
  37142. #, no-wrap
  37143. msgid "# herd reload transmission-daemon\n"
  37144. msgstr ""
  37145. #. type: Plain text
  37146. #: guix-git/doc/guix.texi:24853
  37147. msgid "The full set of available configuration settings is defined by the @code{transmission-daemon-configuration} data type."
  37148. msgstr ""
  37149. #. type: deftp
  37150. #: guix-git/doc/guix.texi:24854
  37151. #, fuzzy, no-wrap
  37152. msgid "{Data Type} transmission-daemon-configuration"
  37153. msgstr "{数据类型} build-machine"
  37154. #. type: deftp
  37155. #: guix-git/doc/guix.texi:24858
  37156. 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."
  37157. msgstr ""
  37158. #. type: Plain text
  37159. #: guix-git/doc/guix.texi:24872
  37160. msgid "Available @code{transmission-daemon-configuration} fields are:"
  37161. msgstr ""
  37162. #. type: deftypevr
  37163. #: guix-git/doc/guix.texi:24873
  37164. #, no-wrap
  37165. msgid "{@code{transmission-daemon-configuration} parameter} package transmission"
  37166. msgstr ""
  37167. #. type: deftypevr
  37168. #: guix-git/doc/guix.texi:24875
  37169. #, fuzzy
  37170. msgid "The Transmission package to use."
  37171. msgstr "软件包数据类型。"
  37172. #. type: deftypevr
  37173. #: guix-git/doc/guix.texi:24878
  37174. #, no-wrap
  37175. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer stop-wait-period"
  37176. msgstr ""
  37177. #. type: deftypevr
  37178. #: guix-git/doc/guix.texi:24884
  37179. 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."
  37180. msgstr ""
  37181. #. type: deftypevr
  37182. #: guix-git/doc/guix.texi:24886 guix-git/doc/guix.texi:25258
  37183. #: guix-git/doc/guix.texi:32566 guix-git/doc/guix.texi:32801
  37184. #: guix-git/doc/guix.texi:32809 guix-git/doc/guix.texi:32817
  37185. msgid "Defaults to @samp{10}."
  37186. msgstr ""
  37187. #. type: deftypevr
  37188. #: guix-git/doc/guix.texi:24889
  37189. #, no-wrap
  37190. msgid "{@code{transmission-daemon-configuration} parameter} string download-dir"
  37191. msgstr ""
  37192. #. type: deftypevr
  37193. #: guix-git/doc/guix.texi:24891
  37194. msgid "The directory to which torrent files are downloaded."
  37195. msgstr ""
  37196. #. type: deftypevr
  37197. #: guix-git/doc/guix.texi:24893
  37198. msgid "Defaults to @samp{\"/var/lib/transmission-daemon/downloads\"}."
  37199. msgstr ""
  37200. #. type: deftypevr
  37201. #: guix-git/doc/guix.texi:24896
  37202. #, no-wrap
  37203. msgid "{@code{transmission-daemon-configuration} parameter} boolean incomplete-dir-enabled?"
  37204. msgstr ""
  37205. #. type: deftypevr
  37206. #: guix-git/doc/guix.texi:24901
  37207. 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}."
  37208. msgstr ""
  37209. #. type: deftypevr
  37210. #: guix-git/doc/guix.texi:24906
  37211. #, no-wrap
  37212. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string incomplete-dir"
  37213. msgstr ""
  37214. #. type: deftypevr
  37215. #: guix-git/doc/guix.texi:24909
  37216. msgid "The directory in which files from incompletely downloaded torrents will be held when @code{incomplete-dir-enabled?} is @code{#t}."
  37217. msgstr ""
  37218. #. type: deftypevr
  37219. #: guix-git/doc/guix.texi:24914
  37220. #, no-wrap
  37221. msgid "{@code{transmission-daemon-configuration} parameter} umask umask"
  37222. msgstr ""
  37223. #. type: deftypevr
  37224. #: guix-git/doc/guix.texi:24917
  37225. msgid "The file mode creation mask used for downloaded files. (See the @command{umask} man page for more information.)"
  37226. msgstr ""
  37227. #. type: deftypevr
  37228. #: guix-git/doc/guix.texi:24919
  37229. msgid "Defaults to @samp{18}."
  37230. msgstr ""
  37231. #. type: deftypevr
  37232. #: guix-git/doc/guix.texi:24922
  37233. #, no-wrap
  37234. msgid "{@code{transmission-daemon-configuration} parameter} boolean rename-partial-files?"
  37235. msgstr ""
  37236. #. type: deftypevr
  37237. #: guix-git/doc/guix.texi:24925
  37238. msgid "When @code{#t}, ``.part'' is appended to the name of partially downloaded files."
  37239. msgstr ""
  37240. #. type: deftypevr
  37241. #: guix-git/doc/guix.texi:24930
  37242. #, no-wrap
  37243. msgid "{@code{transmission-daemon-configuration} parameter} preallocation-mode preallocation"
  37244. msgstr ""
  37245. #. type: deftypevr
  37246. #: guix-git/doc/guix.texi:24935
  37247. 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."
  37248. msgstr ""
  37249. #. type: deftypevr
  37250. #: guix-git/doc/guix.texi:24937
  37251. msgid "Defaults to @samp{fast}."
  37252. msgstr ""
  37253. #. type: deftypevr
  37254. #: guix-git/doc/guix.texi:24940
  37255. #, no-wrap
  37256. msgid "{@code{transmission-daemon-configuration} parameter} boolean watch-dir-enabled?"
  37257. msgstr ""
  37258. #. type: deftypevr
  37259. #: guix-git/doc/guix.texi:24945
  37260. 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})."
  37261. msgstr ""
  37262. #. type: deftypevr
  37263. #: guix-git/doc/guix.texi:24950
  37264. #, no-wrap
  37265. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string watch-dir"
  37266. msgstr ""
  37267. #. type: deftypevr
  37268. #: guix-git/doc/guix.texi:24953
  37269. msgid "The directory to be watched for @file{.torrent} files indicating new torrents to be added, when @code{watch-dir-enabled} is @code{#t}."
  37270. msgstr ""
  37271. #. type: deftypevr
  37272. #: guix-git/doc/guix.texi:24958
  37273. #, no-wrap
  37274. msgid "{@code{transmission-daemon-configuration} parameter} boolean trash-original-torrent-files?"
  37275. msgstr ""
  37276. #. type: deftypevr
  37277. #: guix-git/doc/guix.texi:24962
  37278. 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?})."
  37279. msgstr ""
  37280. #. type: deftypevr
  37281. #: guix-git/doc/guix.texi:24967
  37282. #, no-wrap
  37283. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-down-enabled?"
  37284. msgstr ""
  37285. #. type: deftypevr
  37286. #: guix-git/doc/guix.texi:24970
  37287. msgid "When @code{#t}, the daemon's download speed will be limited to the rate specified by @code{speed-limit-down}."
  37288. msgstr ""
  37289. #. type: deftypevr
  37290. #: guix-git/doc/guix.texi:24975
  37291. #, no-wrap
  37292. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-down"
  37293. msgstr ""
  37294. #. type: deftypevr
  37295. #: guix-git/doc/guix.texi:24977
  37296. msgid "The default global-maximum download speed, in kilobytes per second."
  37297. msgstr ""
  37298. #. type: deftypevr
  37299. #: guix-git/doc/guix.texi:24982
  37300. #, no-wrap
  37301. msgid "{@code{transmission-daemon-configuration} parameter} boolean speed-limit-up-enabled?"
  37302. msgstr ""
  37303. #. type: deftypevr
  37304. #: guix-git/doc/guix.texi:24985
  37305. msgid "When @code{#t}, the daemon's upload speed will be limited to the rate specified by @code{speed-limit-up}."
  37306. msgstr ""
  37307. #. type: deftypevr
  37308. #: guix-git/doc/guix.texi:24990
  37309. #, no-wrap
  37310. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer speed-limit-up"
  37311. msgstr ""
  37312. #. type: deftypevr
  37313. #: guix-git/doc/guix.texi:24992
  37314. msgid "The default global-maximum upload speed, in kilobytes per second."
  37315. msgstr ""
  37316. #. type: deftypevr
  37317. #: guix-git/doc/guix.texi:24997
  37318. #, no-wrap
  37319. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-enabled?"
  37320. msgstr ""
  37321. #. type: deftypevr
  37322. #: guix-git/doc/guix.texi:25003
  37323. 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?}."
  37324. msgstr ""
  37325. #. type: deftypevr
  37326. #: guix-git/doc/guix.texi:25008
  37327. #, no-wrap
  37328. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-down"
  37329. msgstr ""
  37330. #. type: deftypevr
  37331. #: guix-git/doc/guix.texi:25010
  37332. msgid "The alternate global-maximum download speed, in kilobytes per second."
  37333. msgstr ""
  37334. #. type: deftypevr
  37335. #: guix-git/doc/guix.texi:25012 guix-git/doc/guix.texi:25019
  37336. #: guix-git/doc/guix.texi:25191 guix-git/doc/guix.texi:32573
  37337. #: guix-git/doc/guix.texi:32588
  37338. msgid "Defaults to @samp{50}."
  37339. msgstr ""
  37340. #. type: deftypevr
  37341. #: guix-git/doc/guix.texi:25015
  37342. #, no-wrap
  37343. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-up"
  37344. msgstr ""
  37345. #. type: deftypevr
  37346. #: guix-git/doc/guix.texi:25017
  37347. msgid "The alternate global-maximum upload speed, in kilobytes per second."
  37348. msgstr ""
  37349. #. type: deftypevr
  37350. #: guix-git/doc/guix.texi:25022
  37351. #, no-wrap
  37352. msgid "{@code{transmission-daemon-configuration} parameter} boolean alt-speed-time-enabled?"
  37353. msgstr ""
  37354. #. type: deftypevr
  37355. #: guix-git/doc/guix.texi:25027
  37356. 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}."
  37357. msgstr ""
  37358. #. type: deftypevr
  37359. #: guix-git/doc/guix.texi:25032
  37360. #, no-wrap
  37361. msgid "{@code{transmission-daemon-configuration} parameter} day-list alt-speed-time-day"
  37362. msgstr ""
  37363. #. type: deftypevr
  37364. #: guix-git/doc/guix.texi:25037
  37365. 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}."
  37366. msgstr ""
  37367. #. type: deftypevr
  37368. #: guix-git/doc/guix.texi:25039
  37369. msgid "Defaults to @samp{all}."
  37370. msgstr ""
  37371. #. type: deftypevr
  37372. #: guix-git/doc/guix.texi:25042
  37373. #, no-wrap
  37374. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-begin"
  37375. msgstr ""
  37376. #. type: deftypevr
  37377. #: guix-git/doc/guix.texi:25045
  37378. msgid "The time of day at which to enable the alternate speed limits, expressed as a number of minutes since midnight."
  37379. msgstr ""
  37380. #. type: deftypevr
  37381. #: guix-git/doc/guix.texi:25047
  37382. msgid "Defaults to @samp{540}."
  37383. msgstr ""
  37384. #. type: deftypevr
  37385. #: guix-git/doc/guix.texi:25050
  37386. #, no-wrap
  37387. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer alt-speed-time-end"
  37388. msgstr ""
  37389. #. type: deftypevr
  37390. #: guix-git/doc/guix.texi:25053
  37391. msgid "The time of day at which to disable the alternate speed limits, expressed as a number of minutes since midnight."
  37392. msgstr ""
  37393. #. type: deftypevr
  37394. #: guix-git/doc/guix.texi:25055
  37395. msgid "Defaults to @samp{1020}."
  37396. msgstr ""
  37397. #. type: deftypevr
  37398. #: guix-git/doc/guix.texi:25058
  37399. #, no-wrap
  37400. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv4"
  37401. msgstr ""
  37402. #. type: deftypevr
  37403. #: guix-git/doc/guix.texi:25061
  37404. msgid "The IP address at which to listen for peer connections, or ``0.0.0.0'' to listen at all available IP addresses."
  37405. msgstr ""
  37406. #. type: deftypevr
  37407. #: guix-git/doc/guix.texi:25063 guix-git/doc/guix.texi:25366
  37408. #: guix-git/doc/guix.texi:30430
  37409. msgid "Defaults to @samp{\"0.0.0.0\"}."
  37410. msgstr ""
  37411. #. type: deftypevr
  37412. #: guix-git/doc/guix.texi:25066
  37413. #, no-wrap
  37414. msgid "{@code{transmission-daemon-configuration} parameter} string bind-address-ipv6"
  37415. msgstr ""
  37416. #. type: deftypevr
  37417. #: guix-git/doc/guix.texi:25069
  37418. msgid "The IPv6 address at which to listen for peer connections, or ``::'' to listen at all available IPv6 addresses."
  37419. msgstr ""
  37420. #. type: deftypevr
  37421. #: guix-git/doc/guix.texi:25071
  37422. msgid "Defaults to @samp{\"::\"}."
  37423. msgstr ""
  37424. #. type: deftypevr
  37425. #: guix-git/doc/guix.texi:25074
  37426. #, no-wrap
  37427. msgid "{@code{transmission-daemon-configuration} parameter} boolean peer-port-random-on-start?"
  37428. msgstr ""
  37429. #. type: deftypevr
  37430. #: guix-git/doc/guix.texi:25080
  37431. 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}."
  37432. msgstr ""
  37433. #. type: deftypevr
  37434. #: guix-git/doc/guix.texi:25085
  37435. #, no-wrap
  37436. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-low"
  37437. msgstr ""
  37438. #. type: deftypevr
  37439. #: guix-git/doc/guix.texi:25088
  37440. msgid "The lowest selectable port number when @code{peer-port-random-on-start?} is @code{#t}."
  37441. msgstr ""
  37442. #. type: deftypevr
  37443. #: guix-git/doc/guix.texi:25090
  37444. msgid "Defaults to @samp{49152}."
  37445. msgstr ""
  37446. #. type: deftypevr
  37447. #: guix-git/doc/guix.texi:25093
  37448. #, no-wrap
  37449. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port-random-high"
  37450. msgstr ""
  37451. #. type: deftypevr
  37452. #: guix-git/doc/guix.texi:25096
  37453. msgid "The highest selectable port number when @code{peer-port-random-on-start} is @code{#t}."
  37454. msgstr ""
  37455. #. type: deftypevr
  37456. #: guix-git/doc/guix.texi:25098
  37457. msgid "Defaults to @samp{65535}."
  37458. msgstr ""
  37459. #. type: deftypevr
  37460. #: guix-git/doc/guix.texi:25101
  37461. #, no-wrap
  37462. msgid "{@code{transmission-daemon-configuration} parameter} port-number peer-port"
  37463. msgstr ""
  37464. #. type: deftypevr
  37465. #: guix-git/doc/guix.texi:25104
  37466. msgid "The port on which to listen for peer connections when @code{peer-port-random-on-start?} is @code{#f}."
  37467. msgstr ""
  37468. #. type: deftypevr
  37469. #: guix-git/doc/guix.texi:25106
  37470. msgid "Defaults to @samp{51413}."
  37471. msgstr ""
  37472. #. type: deftypevr
  37473. #: guix-git/doc/guix.texi:25109
  37474. #, no-wrap
  37475. msgid "{@code{transmission-daemon-configuration} parameter} boolean port-forwarding-enabled?"
  37476. msgstr ""
  37477. #. type: deftypevr
  37478. #: guix-git/doc/guix.texi:25113
  37479. msgid "If @code{#t}, the daemon will attempt to configure port-forwarding on an upstream gateway automatically using @acronym{UPnP} and @acronym{NAT-PMP}."
  37480. msgstr ""
  37481. #. type: deftypevr
  37482. #: guix-git/doc/guix.texi:25118
  37483. #, no-wrap
  37484. msgid "{@code{transmission-daemon-configuration} parameter} encryption-mode encryption"
  37485. msgstr ""
  37486. #. type: deftypevr
  37487. #: guix-git/doc/guix.texi:25123
  37488. msgid "The encryption preference for peer connections, one of @code{prefer-unencrypted-connections}, @code{prefer-encrypted-connections} or @code{require-encrypted-connections}."
  37489. msgstr ""
  37490. #. type: deftypevr
  37491. #: guix-git/doc/guix.texi:25125
  37492. msgid "Defaults to @samp{prefer-encrypted-connections}."
  37493. msgstr ""
  37494. #. type: deftypevr
  37495. #: guix-git/doc/guix.texi:25128
  37496. #, no-wrap
  37497. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string peer-congestion-algorithm"
  37498. msgstr ""
  37499. #. type: deftypevr
  37500. #: guix-git/doc/guix.texi:25133
  37501. 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)."
  37502. msgstr ""
  37503. #. type: deftypevr
  37504. #: guix-git/doc/guix.texi:25142
  37505. 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."
  37506. msgstr ""
  37507. #. type: deftypevr
  37508. #: guix-git/doc/guix.texi:25150
  37509. 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:"
  37510. msgstr ""
  37511. #. type: lisp
  37512. #: guix-git/doc/guix.texi:25157
  37513. #, no-wrap
  37514. msgid ""
  37515. "(service sysctl-service-type\n"
  37516. " (sysctl-configuration\n"
  37517. " (settings\n"
  37518. " (\"net.ipv4.tcp_allowed_congestion_control\" .\n"
  37519. " \"reno cubic lp\"))))\n"
  37520. msgstr ""
  37521. #. type: deftypevr
  37522. #: guix-git/doc/guix.texi:25160
  37523. msgid "The Transmission Daemon configuration can then be updated with"
  37524. msgstr ""
  37525. #. type: lisp
  37526. #: guix-git/doc/guix.texi:25163
  37527. #, no-wrap
  37528. msgid "(peer-congestion-algorithm \"lp\")\n"
  37529. msgstr ""
  37530. #. type: deftypevr
  37531. #: guix-git/doc/guix.texi:25166
  37532. msgid "and the system reconfigured to have the changes take effect."
  37533. msgstr ""
  37534. #. type: deftypevr
  37535. #: guix-git/doc/guix.texi:25171
  37536. #, no-wrap
  37537. msgid "{@code{transmission-daemon-configuration} parameter} tcp-type-of-service peer-socket-tos"
  37538. msgstr ""
  37539. #. type: deftypevr
  37540. #: guix-git/doc/guix.texi:25175
  37541. 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}."
  37542. msgstr ""
  37543. #. type: deftypevr
  37544. #: guix-git/doc/guix.texi:25177
  37545. msgid "Defaults to @samp{default}."
  37546. msgstr ""
  37547. #. type: deftypevr
  37548. #: guix-git/doc/guix.texi:25180
  37549. #, no-wrap
  37550. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-global"
  37551. msgstr ""
  37552. #. type: deftypevr
  37553. #: guix-git/doc/guix.texi:25182
  37554. msgid "The global limit on the number of connected peers."
  37555. msgstr ""
  37556. #. type: deftypevr
  37557. #: guix-git/doc/guix.texi:25184
  37558. msgid "Defaults to @samp{200}."
  37559. msgstr ""
  37560. #. type: deftypevr
  37561. #: guix-git/doc/guix.texi:25187
  37562. #, no-wrap
  37563. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-limit-per-torrent"
  37564. msgstr ""
  37565. #. type: deftypevr
  37566. #: guix-git/doc/guix.texi:25189
  37567. msgid "The per-torrent limit on the number of connected peers."
  37568. msgstr ""
  37569. #. type: deftypevr
  37570. #: guix-git/doc/guix.texi:25194
  37571. #, no-wrap
  37572. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer upload-slots-per-torrent"
  37573. msgstr ""
  37574. #. type: deftypevr
  37575. #: guix-git/doc/guix.texi:25197
  37576. msgid "The maximum number of peers to which the daemon will upload data simultaneously for each torrent."
  37577. msgstr ""
  37578. #. type: deftypevr
  37579. #: guix-git/doc/guix.texi:25199
  37580. msgid "Defaults to @samp{14}."
  37581. msgstr ""
  37582. #. type: deftypevr
  37583. #: guix-git/doc/guix.texi:25202
  37584. #, no-wrap
  37585. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer peer-id-ttl-hours"
  37586. msgstr ""
  37587. #. type: deftypevr
  37588. #: guix-git/doc/guix.texi:25205
  37589. msgid "The maximum lifespan, in hours, of the peer ID associated with each public torrent before it is regenerated."
  37590. msgstr ""
  37591. #. type: deftypevr
  37592. #: guix-git/doc/guix.texi:25207
  37593. msgid "Defaults to @samp{6}."
  37594. msgstr ""
  37595. #. type: deftypevr
  37596. #: guix-git/doc/guix.texi:25210
  37597. #, no-wrap
  37598. msgid "{@code{transmission-daemon-configuration} parameter} boolean blocklist-enabled?"
  37599. msgstr ""
  37600. #. type: deftypevr
  37601. #: guix-git/doc/guix.texi:25213
  37602. msgid "When @code{#t}, the daemon will ignore peers mentioned in the blocklist it has most recently downloaded from @code{blocklist-url}."
  37603. msgstr ""
  37604. #. type: deftypevr
  37605. #: guix-git/doc/guix.texi:25218
  37606. #, no-wrap
  37607. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string blocklist-url"
  37608. msgstr ""
  37609. #. type: deftypevr
  37610. #: guix-git/doc/guix.texi:25222
  37611. 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}."
  37612. msgstr ""
  37613. #. type: deftypevr
  37614. #: guix-git/doc/guix.texi:25227
  37615. #, no-wrap
  37616. msgid "{@code{transmission-daemon-configuration} parameter} boolean download-queue-enabled?"
  37617. msgstr ""
  37618. #. type: deftypevr
  37619. #: guix-git/doc/guix.texi:25230
  37620. msgid "If @code{#t}, the daemon will be limited to downloading at most @code{download-queue-size} non-stalled torrents simultaneously."
  37621. msgstr ""
  37622. #. type: deftypevr
  37623. #: guix-git/doc/guix.texi:25235
  37624. #, no-wrap
  37625. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer download-queue-size"
  37626. msgstr ""
  37627. #. type: deftypevr
  37628. #: guix-git/doc/guix.texi:25239
  37629. 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}."
  37630. msgstr ""
  37631. #. type: deftypevr
  37632. #: guix-git/doc/guix.texi:25244
  37633. #, no-wrap
  37634. msgid "{@code{transmission-daemon-configuration} parameter} boolean seed-queue-enabled?"
  37635. msgstr ""
  37636. #. type: deftypevr
  37637. #: guix-git/doc/guix.texi:25247
  37638. msgid "If @code{#t}, the daemon will be limited to seeding at most @code{seed-queue-size} non-stalled torrents simultaneously."
  37639. msgstr ""
  37640. #. type: deftypevr
  37641. #: guix-git/doc/guix.texi:25252
  37642. #, no-wrap
  37643. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer seed-queue-size"
  37644. msgstr ""
  37645. #. type: deftypevr
  37646. #: guix-git/doc/guix.texi:25256
  37647. 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}."
  37648. msgstr ""
  37649. #. type: deftypevr
  37650. #: guix-git/doc/guix.texi:25261
  37651. #, no-wrap
  37652. msgid "{@code{transmission-daemon-configuration} parameter} boolean queue-stalled-enabled?"
  37653. msgstr ""
  37654. #. type: deftypevr
  37655. #: guix-git/doc/guix.texi:25266
  37656. 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."
  37657. msgstr ""
  37658. #. type: deftypevr
  37659. #: guix-git/doc/guix.texi:25271
  37660. #, no-wrap
  37661. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer queue-stalled-minutes"
  37662. msgstr ""
  37663. #. type: deftypevr
  37664. #: guix-git/doc/guix.texi:25275
  37665. 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}."
  37666. msgstr ""
  37667. #. type: deftypevr
  37668. #: guix-git/doc/guix.texi:25280
  37669. #, no-wrap
  37670. msgid "{@code{transmission-daemon-configuration} parameter} boolean ratio-limit-enabled?"
  37671. msgstr ""
  37672. #. type: deftypevr
  37673. #: guix-git/doc/guix.texi:25283
  37674. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it reaches the ratio specified by @code{ratio-limit}."
  37675. msgstr ""
  37676. #. type: deftypevr
  37677. #: guix-git/doc/guix.texi:25288
  37678. #, no-wrap
  37679. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-rational ratio-limit"
  37680. msgstr ""
  37681. #. type: deftypevr
  37682. #: guix-git/doc/guix.texi:25291
  37683. msgid "The ratio at which a torrent being seeded will be paused, when @code{ratio-limit-enabled?} is @code{#t}."
  37684. msgstr ""
  37685. #. type: deftypevr
  37686. #: guix-git/doc/guix.texi:25293
  37687. msgid "Defaults to @samp{2.0}."
  37688. msgstr ""
  37689. #. type: deftypevr
  37690. #: guix-git/doc/guix.texi:25296
  37691. #, no-wrap
  37692. msgid "{@code{transmission-daemon-configuration} parameter} boolean idle-seeding-limit-enabled?"
  37693. msgstr ""
  37694. #. type: deftypevr
  37695. #: guix-git/doc/guix.texi:25299
  37696. msgid "When @code{#t}, a torrent being seeded will automatically be paused once it has been idle for @code{idle-seeding-limit} minutes."
  37697. msgstr ""
  37698. #. type: deftypevr
  37699. #: guix-git/doc/guix.texi:25304
  37700. #, no-wrap
  37701. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer idle-seeding-limit"
  37702. msgstr ""
  37703. #. type: deftypevr
  37704. #: guix-git/doc/guix.texi:25308
  37705. 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}."
  37706. msgstr ""
  37707. #. type: deftypevr
  37708. #: guix-git/doc/guix.texi:25313
  37709. #, no-wrap
  37710. msgid "{@code{transmission-daemon-configuration} parameter} boolean dht-enabled?"
  37711. msgstr ""
  37712. #. type: deftypevr
  37713. #: guix-git/doc/guix.texi:25317
  37714. msgid "Enable @uref{http://bittorrent.org/beps/bep_0005.html,the distributed hash table (@acronym{DHT}) protocol}, which supports the use of trackerless torrents."
  37715. msgstr ""
  37716. #. type: deftypevr
  37717. #: guix-git/doc/guix.texi:25322
  37718. #, no-wrap
  37719. msgid "{@code{transmission-daemon-configuration} parameter} boolean lpd-enabled?"
  37720. msgstr ""
  37721. #. type: deftypevr
  37722. #: guix-git/doc/guix.texi:25327
  37723. 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."
  37724. msgstr ""
  37725. #. type: deftypevr
  37726. #: guix-git/doc/guix.texi:25332
  37727. #, no-wrap
  37728. msgid "{@code{transmission-daemon-configuration} parameter} boolean pex-enabled?"
  37729. msgstr ""
  37730. #. type: deftypevr
  37731. #: guix-git/doc/guix.texi:25336
  37732. 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."
  37733. msgstr ""
  37734. #. type: deftypevr
  37735. #: guix-git/doc/guix.texi:25341
  37736. #, no-wrap
  37737. msgid "{@code{transmission-daemon-configuration} parameter} boolean utp-enabled?"
  37738. msgstr ""
  37739. #. type: deftypevr
  37740. #: guix-git/doc/guix.texi:25346
  37741. 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."
  37742. msgstr ""
  37743. #. type: deftypevr
  37744. #: guix-git/doc/guix.texi:25351
  37745. #, no-wrap
  37746. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-enabled?"
  37747. msgstr ""
  37748. #. type: deftypevr
  37749. #: guix-git/doc/guix.texi:25356
  37750. 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."
  37751. msgstr ""
  37752. #. type: deftypevr
  37753. #: guix-git/doc/guix.texi:25361
  37754. #, no-wrap
  37755. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-bind-address"
  37756. msgstr ""
  37757. #. type: deftypevr
  37758. #: guix-git/doc/guix.texi:25364
  37759. msgid "The IP address at which to listen for @acronym{RPC} connections, or ``0.0.0.0'' to listen at all available IP addresses."
  37760. msgstr ""
  37761. #. type: deftypevr
  37762. #: guix-git/doc/guix.texi:25369
  37763. #, no-wrap
  37764. msgid "{@code{transmission-daemon-configuration} parameter} port-number rpc-port"
  37765. msgstr ""
  37766. #. type: deftypevr
  37767. #: guix-git/doc/guix.texi:25371
  37768. msgid "The port on which to listen for @acronym{RPC} connections."
  37769. msgstr ""
  37770. #. type: deftypevr
  37771. #: guix-git/doc/guix.texi:25373
  37772. msgid "Defaults to @samp{9091}."
  37773. msgstr ""
  37774. #. type: deftypevr
  37775. #: guix-git/doc/guix.texi:25376
  37776. #, no-wrap
  37777. msgid "{@code{transmission-daemon-configuration} parameter} string rpc-url"
  37778. msgstr ""
  37779. #. type: deftypevr
  37780. #: guix-git/doc/guix.texi:25378
  37781. msgid "The path prefix to use in the @acronym{RPC}-endpoint @acronym{URL}."
  37782. msgstr ""
  37783. #. type: deftypevr
  37784. #: guix-git/doc/guix.texi:25380
  37785. msgid "Defaults to @samp{\"/transmission/\"}."
  37786. msgstr ""
  37787. #. type: deftypevr
  37788. #: guix-git/doc/guix.texi:25383
  37789. #, no-wrap
  37790. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-authentication-required?"
  37791. msgstr ""
  37792. #. type: deftypevr
  37793. #: guix-git/doc/guix.texi:25388
  37794. 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?}."
  37795. msgstr ""
  37796. #. type: deftypevr
  37797. #: guix-git/doc/guix.texi:25393
  37798. #, no-wrap
  37799. msgid "{@code{transmission-daemon-configuration} parameter} maybe-string rpc-username"
  37800. msgstr ""
  37801. #. type: deftypevr
  37802. #: guix-git/doc/guix.texi:25396
  37803. msgid "The username required by clients to access the @acronym{RPC} interface when @code{rpc-authentication-required?} is @code{#t}."
  37804. msgstr ""
  37805. #. type: deftypevr
  37806. #: guix-git/doc/guix.texi:25401
  37807. #, no-wrap
  37808. msgid "{@code{transmission-daemon-configuration} parameter} maybe-transmission-password-hash rpc-password"
  37809. msgstr ""
  37810. #. type: deftypevr
  37811. #: guix-git/doc/guix.texi:25407
  37812. 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."
  37813. msgstr ""
  37814. #. type: deftypevr
  37815. #: guix-git/doc/guix.texi:25412
  37816. #, no-wrap
  37817. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-whitelist-enabled?"
  37818. msgstr ""
  37819. #. type: deftypevr
  37820. #: guix-git/doc/guix.texi:25415
  37821. msgid "When @code{#t}, @acronym{RPC} requests will be accepted only when they originate from an address specified in @code{rpc-whitelist}."
  37822. msgstr ""
  37823. #. type: deftypevr
  37824. #: guix-git/doc/guix.texi:25420
  37825. #, no-wrap
  37826. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-whitelist"
  37827. msgstr ""
  37828. #. type: deftypevr
  37829. #: guix-git/doc/guix.texi:25424
  37830. 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{*}."
  37831. msgstr ""
  37832. #. type: deftypevr
  37833. #: guix-git/doc/guix.texi:25426
  37834. msgid "Defaults to @samp{(\"127.0.0.1\" \"::1\")}."
  37835. msgstr ""
  37836. #. type: deftypevr
  37837. #: guix-git/doc/guix.texi:25429
  37838. #, no-wrap
  37839. msgid "{@code{transmission-daemon-configuration} parameter} boolean rpc-host-whitelist-enabled?"
  37840. msgstr ""
  37841. #. type: deftypevr
  37842. #: guix-git/doc/guix.texi:25434
  37843. 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."
  37844. msgstr ""
  37845. #. type: deftypevr
  37846. #: guix-git/doc/guix.texi:25437
  37847. msgid "Note also this functionality is disabled when @code{rpc-authentication-required?} is @code{#t}."
  37848. msgstr ""
  37849. #. type: deftypevr
  37850. #: guix-git/doc/guix.texi:25442
  37851. #, no-wrap
  37852. msgid "{@code{transmission-daemon-configuration} parameter} string-list rpc-host-whitelist"
  37853. msgstr ""
  37854. #. type: deftypevr
  37855. #: guix-git/doc/guix.texi:25445
  37856. msgid "The list of host names recognized by the @acronym{RPC} server when @code{rpc-host-whitelist-enabled?} is @code{#t}."
  37857. msgstr ""
  37858. #. type: deftypevr
  37859. #: guix-git/doc/guix.texi:25450
  37860. #, no-wrap
  37861. msgid "{@code{transmission-daemon-configuration} parameter} message-level message-level"
  37862. msgstr ""
  37863. #. type: deftypevr
  37864. #: guix-git/doc/guix.texi:25454
  37865. 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}."
  37866. msgstr ""
  37867. #. type: deftypevr
  37868. #: guix-git/doc/guix.texi:25459
  37869. #, no-wrap
  37870. msgid "{@code{transmission-daemon-configuration} parameter} boolean start-added-torrents?"
  37871. msgstr ""
  37872. #. type: deftypevr
  37873. #: guix-git/doc/guix.texi:25462
  37874. msgid "When @code{#t}, torrents are started as soon as they are added; otherwise, they are added in ``paused'' state."
  37875. msgstr ""
  37876. #. type: deftypevr
  37877. #: guix-git/doc/guix.texi:25467
  37878. #, no-wrap
  37879. msgid "{@code{transmission-daemon-configuration} parameter} boolean script-torrent-done-enabled?"
  37880. msgstr ""
  37881. #. type: deftypevr
  37882. #: guix-git/doc/guix.texi:25471
  37883. msgid "When @code{#t}, the script specified by @code{script-torrent-done-filename} will be invoked each time a torrent completes."
  37884. msgstr ""
  37885. #. type: deftypevr
  37886. #: guix-git/doc/guix.texi:25476
  37887. #, no-wrap
  37888. msgid "{@code{transmission-daemon-configuration} parameter} maybe-file-object script-torrent-done-filename"
  37889. msgstr ""
  37890. #. type: deftypevr
  37891. #: guix-git/doc/guix.texi:25480
  37892. 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}."
  37893. msgstr ""
  37894. #. type: deftypevr
  37895. #: guix-git/doc/guix.texi:25485
  37896. #, no-wrap
  37897. msgid "{@code{transmission-daemon-configuration} parameter} boolean scrape-paused-torrents-enabled?"
  37898. msgstr ""
  37899. #. type: deftypevr
  37900. #: guix-git/doc/guix.texi:25488
  37901. msgid "When @code{#t}, the daemon will scrape trackers for a torrent even when the torrent is paused."
  37902. msgstr ""
  37903. #. type: deftypevr
  37904. #: guix-git/doc/guix.texi:25493
  37905. #, no-wrap
  37906. msgid "{@code{transmission-daemon-configuration} parameter} non-negative-integer cache-size-mb"
  37907. msgstr ""
  37908. #. type: deftypevr
  37909. #: guix-git/doc/guix.texi:25497
  37910. 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."
  37911. msgstr ""
  37912. #. type: deftypevr
  37913. #: guix-git/doc/guix.texi:25499
  37914. msgid "Defaults to @samp{4}."
  37915. msgstr ""
  37916. #. type: deftypevr
  37917. #: guix-git/doc/guix.texi:25502
  37918. #, no-wrap
  37919. msgid "{@code{transmission-daemon-configuration} parameter} boolean prefetch-enabled?"
  37920. msgstr ""
  37921. #. type: deftypevr
  37922. #: guix-git/doc/guix.texi:25506
  37923. 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."
  37924. msgstr ""
  37925. #. type: subsubheading
  37926. #: guix-git/doc/guix.texi:25519
  37927. #, no-wrap
  37928. msgid "Tailon Service"
  37929. msgstr ""
  37930. #. type: Plain text
  37931. #: guix-git/doc/guix.texi:25523
  37932. msgid "@uref{https://tailon.readthedocs.io/, Tailon} is a web application for viewing and searching log files."
  37933. msgstr ""
  37934. #. type: Plain text
  37935. #: guix-git/doc/guix.texi:25526
  37936. msgid "The following example will configure the service with default values. By default, Tailon can be accessed on port 8080 (@code{http://localhost:8080})."
  37937. msgstr ""
  37938. #. type: lisp
  37939. #: guix-git/doc/guix.texi:25529
  37940. #, no-wrap
  37941. msgid "(service tailon-service-type)\n"
  37942. msgstr ""
  37943. #. type: Plain text
  37944. #: guix-git/doc/guix.texi:25533
  37945. msgid "The following example customises more of the Tailon configuration, adding @command{sed} to the list of allowed commands."
  37946. msgstr ""
  37947. #. type: lisp
  37948. #: guix-git/doc/guix.texi:25540
  37949. #, no-wrap
  37950. msgid ""
  37951. "(service tailon-service-type\n"
  37952. " (tailon-configuration\n"
  37953. " (config-file\n"
  37954. " (tailon-configuration-file\n"
  37955. " (allowed-commands '(\"tail\" \"grep\" \"awk\" \"sed\"))))))\n"
  37956. msgstr ""
  37957. #. type: deftp
  37958. #: guix-git/doc/guix.texi:25543
  37959. #, no-wrap
  37960. msgid "{Data Type} tailon-configuration"
  37961. msgstr ""
  37962. #. type: deftp
  37963. #: guix-git/doc/guix.texi:25546
  37964. msgid "Data type representing the configuration of Tailon. This type has the following parameters:"
  37965. msgstr ""
  37966. #. type: item
  37967. #: guix-git/doc/guix.texi:25548
  37968. #, no-wrap
  37969. msgid "@code{config-file} (default: @code{(tailon-configuration-file)})"
  37970. msgstr ""
  37971. #. type: table
  37972. #: guix-git/doc/guix.texi:25552
  37973. 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})."
  37974. msgstr ""
  37975. #. type: table
  37976. #: guix-git/doc/guix.texi:25555
  37977. msgid "For example, to instead use a local file, the @code{local-file} function can be used:"
  37978. msgstr ""
  37979. #. type: lisp
  37980. #: guix-git/doc/guix.texi:25560
  37981. #, no-wrap
  37982. msgid ""
  37983. "(service tailon-service-type\n"
  37984. " (tailon-configuration\n"
  37985. " (config-file (local-file \"./my-tailon.conf\"))))\n"
  37986. msgstr ""
  37987. #. type: item
  37988. #: guix-git/doc/guix.texi:25562
  37989. #, no-wrap
  37990. msgid "@code{package} (default: @code{tailon})"
  37991. msgstr ""
  37992. #. type: table
  37993. #: guix-git/doc/guix.texi:25564
  37994. msgid "The tailon package to use."
  37995. msgstr ""
  37996. #. type: deftp
  37997. #: guix-git/doc/guix.texi:25568
  37998. #, no-wrap
  37999. msgid "{Data Type} tailon-configuration-file"
  38000. msgstr ""
  38001. #. type: deftp
  38002. #: guix-git/doc/guix.texi:25571
  38003. msgid "Data type representing the configuration options for Tailon. This type has the following parameters:"
  38004. msgstr ""
  38005. #. type: item
  38006. #: guix-git/doc/guix.texi:25573
  38007. #, no-wrap
  38008. msgid "@code{files} (default: @code{(list \"/var/log\")})"
  38009. msgstr ""
  38010. #. type: table
  38011. #: guix-git/doc/guix.texi:25578
  38012. 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."
  38013. msgstr ""
  38014. #. type: item
  38015. #: guix-git/doc/guix.texi:25579
  38016. #, no-wrap
  38017. msgid "@code{bind} (default: @code{\"localhost:8080\"})"
  38018. msgstr ""
  38019. #. type: table
  38020. #: guix-git/doc/guix.texi:25581
  38021. msgid "Address and port to which Tailon should bind on."
  38022. msgstr ""
  38023. #. type: item
  38024. #: guix-git/doc/guix.texi:25582
  38025. #, no-wrap
  38026. msgid "@code{relative-root} (default: @code{#f})"
  38027. msgstr ""
  38028. #. type: table
  38029. #: guix-git/doc/guix.texi:25584
  38030. msgid "URL path to use for Tailon, set to @code{#f} to not use a path."
  38031. msgstr ""
  38032. #. type: item
  38033. #: guix-git/doc/guix.texi:25585
  38034. #, no-wrap
  38035. msgid "@code{allow-transfers?} (default: @code{#t})"
  38036. msgstr ""
  38037. #. type: table
  38038. #: guix-git/doc/guix.texi:25587
  38039. msgid "Allow downloading the log files in the web interface."
  38040. msgstr ""
  38041. #. type: item
  38042. #: guix-git/doc/guix.texi:25588
  38043. #, no-wrap
  38044. msgid "@code{follow-names?} (default: @code{#t})"
  38045. msgstr ""
  38046. #. type: table
  38047. #: guix-git/doc/guix.texi:25590
  38048. msgid "Allow tailing of not-yet existent files."
  38049. msgstr ""
  38050. #. type: item
  38051. #: guix-git/doc/guix.texi:25591
  38052. #, no-wrap
  38053. msgid "@code{tail-lines} (default: @code{200})"
  38054. msgstr ""
  38055. #. type: table
  38056. #: guix-git/doc/guix.texi:25593
  38057. msgid "Number of lines to read initially from each file."
  38058. msgstr ""
  38059. #. type: item
  38060. #: guix-git/doc/guix.texi:25594
  38061. #, no-wrap
  38062. msgid "@code{allowed-commands} (default: @code{(list \"tail\" \"grep\" \"awk\")})"
  38063. msgstr ""
  38064. #. type: table
  38065. #: guix-git/doc/guix.texi:25596
  38066. msgid "Commands to allow running. By default, @code{sed} is disabled."
  38067. msgstr ""
  38068. #. type: table
  38069. #: guix-git/doc/guix.texi:25599
  38070. msgid "Set @code{debug?} to @code{#t} to show debug messages."
  38071. msgstr ""
  38072. #. type: item
  38073. #: guix-git/doc/guix.texi:25600
  38074. #, no-wrap
  38075. msgid "@code{wrap-lines} (default: @code{#t})"
  38076. msgstr ""
  38077. #. type: table
  38078. #: guix-git/doc/guix.texi:25604
  38079. 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."
  38080. msgstr ""
  38081. #. type: item
  38082. #: guix-git/doc/guix.texi:25605
  38083. #, no-wrap
  38084. msgid "@code{http-auth} (default: @code{#f})"
  38085. msgstr ""
  38086. #. type: table
  38087. #: guix-git/doc/guix.texi:25609
  38088. msgid "HTTP authentication type to use. Set to @code{#f} to disable authentication (the default). Supported values are @code{\"digest\"} or @code{\"basic\"}."
  38089. msgstr ""
  38090. #. type: item
  38091. #: guix-git/doc/guix.texi:25610
  38092. #, no-wrap
  38093. msgid "@code{users} (default: @code{#f})"
  38094. msgstr ""
  38095. #. type: table
  38096. #: guix-git/doc/guix.texi:25615
  38097. 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."
  38098. msgstr ""
  38099. #. type: lisp
  38100. #: guix-git/doc/guix.texi:25621
  38101. #, no-wrap
  38102. msgid ""
  38103. "(tailon-configuration-file\n"
  38104. " (http-auth \"basic\")\n"
  38105. " (users '((\"user1\" . \"password1\")\n"
  38106. " (\"user2\" . \"password2\"))))\n"
  38107. msgstr ""
  38108. #. type: subsubheading
  38109. #: guix-git/doc/guix.texi:25627
  38110. #, no-wrap
  38111. msgid "Darkstat Service"
  38112. msgstr ""
  38113. #. type: cindex
  38114. #: guix-git/doc/guix.texi:25628
  38115. #, no-wrap
  38116. msgid "darkstat"
  38117. msgstr ""
  38118. #. type: Plain text
  38119. #: guix-git/doc/guix.texi:25631
  38120. msgid "Darkstat is a packet sniffer that captures network traffic, calculates statistics about usage, and serves reports over HTTP."
  38121. msgstr ""
  38122. #. type: defvar
  38123. #: guix-git/doc/guix.texi:25632
  38124. #, no-wrap
  38125. msgid "{Scheme Variable} darkstat-service-type"
  38126. msgstr ""
  38127. #. type: defvar
  38128. #: guix-git/doc/guix.texi:25637
  38129. 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:"
  38130. msgstr ""
  38131. #. type: lisp
  38132. #: guix-git/doc/guix.texi:25642
  38133. #, no-wrap
  38134. msgid ""
  38135. "(service darkstat-service-type\n"
  38136. " (darkstat-configuration\n"
  38137. " (interface \"eno1\")))\n"
  38138. msgstr ""
  38139. #. type: deftp
  38140. #: guix-git/doc/guix.texi:25645
  38141. #, no-wrap
  38142. msgid "{Data Type} darkstat-configuration"
  38143. msgstr ""
  38144. #. type: deftp
  38145. #: guix-git/doc/guix.texi:25647
  38146. msgid "Data type representing the configuration of @command{darkstat}."
  38147. msgstr ""
  38148. #. type: item
  38149. #: guix-git/doc/guix.texi:25649
  38150. #, no-wrap
  38151. msgid "@code{package} (default: @code{darkstat})"
  38152. msgstr ""
  38153. #. type: table
  38154. #: guix-git/doc/guix.texi:25651
  38155. msgid "The darkstat package to use."
  38156. msgstr ""
  38157. #. type: code{#1}
  38158. #: guix-git/doc/guix.texi:25652
  38159. #, no-wrap
  38160. msgid "interface"
  38161. msgstr ""
  38162. #. type: table
  38163. #: guix-git/doc/guix.texi:25654
  38164. msgid "Capture traffic on the specified network interface."
  38165. msgstr ""
  38166. #. type: item
  38167. #: guix-git/doc/guix.texi:25655
  38168. #, no-wrap
  38169. msgid "@code{port} (default: @code{\"667\"})"
  38170. msgstr ""
  38171. #. type: table
  38172. #: guix-git/doc/guix.texi:25657
  38173. msgid "Bind the web interface to the specified port."
  38174. msgstr ""
  38175. #. type: table
  38176. #: guix-git/doc/guix.texi:25660 guix-git/doc/guix.texi:25696
  38177. msgid "Bind the web interface to the specified address."
  38178. msgstr ""
  38179. #. type: item
  38180. #: guix-git/doc/guix.texi:25661
  38181. #, no-wrap
  38182. msgid "@code{base} (default: @code{\"/\"})"
  38183. msgstr ""
  38184. #. type: table
  38185. #: guix-git/doc/guix.texi:25664
  38186. msgid "Specify the path of the base URL@. This can be useful if @command{darkstat} is accessed via a reverse proxy."
  38187. msgstr ""
  38188. #. type: cindex
  38189. #: guix-git/doc/guix.texi:25669 guix-git/doc/guix.texi:25670
  38190. #, no-wrap
  38191. msgid "prometheus-node-exporter"
  38192. msgstr ""
  38193. #. type: subsubheading
  38194. #: guix-git/doc/guix.texi:25669
  38195. #, no-wrap
  38196. msgid "Prometheus Node Exporter Service"
  38197. msgstr ""
  38198. #. type: Plain text
  38199. #: guix-git/doc/guix.texi:25676
  38200. 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."
  38201. msgstr ""
  38202. #. type: defvar
  38203. #: guix-git/doc/guix.texi:25677
  38204. #, no-wrap
  38205. msgid "{Scheme variable} prometheus-node-exporter-service-type"
  38206. msgstr ""
  38207. #. type: defvar
  38208. #: guix-git/doc/guix.texi:25681
  38209. 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}."
  38210. msgstr ""
  38211. #. type: lisp
  38212. #: guix-git/doc/guix.texi:25684
  38213. #, no-wrap
  38214. msgid "(service prometheus-node-exporter-service-type)\n"
  38215. msgstr ""
  38216. #. type: deftp
  38217. #: guix-git/doc/guix.texi:25687
  38218. #, no-wrap
  38219. msgid "{Data Type} prometheus-node-exporter-configuration"
  38220. msgstr ""
  38221. #. type: deftp
  38222. #: guix-git/doc/guix.texi:25689
  38223. msgid "Data type representing the configuration of @command{node_exporter}."
  38224. msgstr ""
  38225. #. type: item
  38226. #: guix-git/doc/guix.texi:25691
  38227. #, no-wrap
  38228. msgid "@code{package} (default: @code{go-github-com-prometheus-node-exporter})"
  38229. msgstr ""
  38230. #. type: table
  38231. #: guix-git/doc/guix.texi:25693
  38232. msgid "The prometheus-node-exporter package to use."
  38233. msgstr ""
  38234. #. type: item
  38235. #: guix-git/doc/guix.texi:25694
  38236. #, no-wrap
  38237. msgid "@code{web-listen-address} (default: @code{\":9100\"})"
  38238. msgstr ""
  38239. #. type: item
  38240. #: guix-git/doc/guix.texi:25697
  38241. #, fuzzy, no-wrap
  38242. msgid "@code{textfile-directory} (default: @code{\"/var/lib/prometheus/node-exporter\"})"
  38243. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  38244. #. type: table
  38245. #: guix-git/doc/guix.texi:25701
  38246. 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."
  38247. msgstr ""
  38248. #. type: table
  38249. #: guix-git/doc/guix.texi:25704
  38250. msgid "Extra options to pass to the Prometheus node exporter."
  38251. msgstr ""
  38252. #. type: subsubheading
  38253. #: guix-git/doc/guix.texi:25708
  38254. #, no-wrap
  38255. msgid "Zabbix server"
  38256. msgstr ""
  38257. #. type: cindex
  38258. #: guix-git/doc/guix.texi:25709
  38259. #, no-wrap
  38260. msgid "zabbix zabbix-server"
  38261. msgstr ""
  38262. #. type: Plain text
  38263. #: guix-git/doc/guix.texi:25714
  38264. msgid "Zabbix is a high performance monitoring system that can collect data from a variety of sources and provide the results in a web-based interface. Alerting and reporting is built-in, as well as @dfn{templates} for common operating system metrics such as network utilization, CPU load, and disk space consumption."
  38265. msgstr ""
  38266. #. type: Plain text
  38267. #: guix-git/doc/guix.texi:25721
  38268. msgid "This service provides the central Zabbix monitoring service; you also need @ref{zabbix-front-end,@code{zabbix-front-end-service-type}} to configure Zabbix and display results, and optionally @ref{zabbix-agent, @code{zabbix-agent-service-type}} on machines that should be monitored (other data sources are supported, such as @ref{prometheus-node-exporter, Prometheus Node Exporter})."
  38269. msgstr ""
  38270. #. type: defvar
  38271. #: guix-git/doc/guix.texi:25722
  38272. #, no-wrap
  38273. msgid "{Scheme variable} zabbix-server-service-type"
  38274. msgstr ""
  38275. #. type: defvar
  38276. #: guix-git/doc/guix.texi:25725
  38277. msgid "This is the service type for the Zabbix server service. Its value must be a @code{zabbix-server-configuration} record, shown below."
  38278. msgstr ""
  38279. #. type: deftp
  38280. #: guix-git/doc/guix.texi:25729
  38281. #, fuzzy, no-wrap
  38282. msgid "{Data Type} zabbix-server-configuration"
  38283. msgstr "{数据类型} build-machine"
  38284. #. type: deftp
  38285. #: guix-git/doc/guix.texi:25731
  38286. msgid "Available @code{zabbix-server-configuration} fields are:"
  38287. msgstr ""
  38288. #. type: item
  38289. #: guix-git/doc/guix.texi:25733 guix-git/doc/guix.texi:25896
  38290. #, fuzzy, no-wrap
  38291. msgid "@code{zabbix-server} (default: @code{zabbix-server}) (type: file-like)"
  38292. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38293. #. type: table
  38294. #: guix-git/doc/guix.texi:25735
  38295. msgid "The zabbix-server package."
  38296. msgstr ""
  38297. #. type: item
  38298. #: guix-git/doc/guix.texi:25736 guix-git/doc/guix.texi:25822
  38299. #, fuzzy, no-wrap
  38300. msgid "@code{user} (default: @code{\"zabbix\"}) (type: string)"
  38301. msgstr "@code{xfce}(默认值:@code{xfce})"
  38302. #. type: table
  38303. #: guix-git/doc/guix.texi:25738
  38304. msgid "User who will run the Zabbix server."
  38305. msgstr ""
  38306. #. type: item
  38307. #: guix-git/doc/guix.texi:25739 guix-git/doc/guix.texi:25825
  38308. #, fuzzy, no-wrap
  38309. msgid "@code{group} (default: @code{\"zabbix\"}) (type: group)"
  38310. msgstr "@code{xfce}(默认值:@code{xfce})"
  38311. #. type: table
  38312. #: guix-git/doc/guix.texi:25741
  38313. msgid "Group who will run the Zabbix server."
  38314. msgstr ""
  38315. #. type: item
  38316. #: guix-git/doc/guix.texi:25742
  38317. #, fuzzy, no-wrap
  38318. msgid "@code{db-host} (default: @code{\"127.0.0.1\"}) (type: string)"
  38319. msgstr "@code{xfce}(默认值:@code{xfce})"
  38320. #. type: table
  38321. #: guix-git/doc/guix.texi:25744 guix-git/doc/guix.texi:25906
  38322. msgid "Database host name."
  38323. msgstr ""
  38324. #. type: item
  38325. #: guix-git/doc/guix.texi:25745 guix-git/doc/guix.texi:25910
  38326. #, fuzzy, no-wrap
  38327. msgid "@code{db-name} (default: @code{\"zabbix\"}) (type: string)"
  38328. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38329. #. type: table
  38330. #: guix-git/doc/guix.texi:25747 guix-git/doc/guix.texi:25912
  38331. msgid "Database name."
  38332. msgstr ""
  38333. #. type: item
  38334. #: guix-git/doc/guix.texi:25748 guix-git/doc/guix.texi:25913
  38335. #, fuzzy, no-wrap
  38336. msgid "@code{db-user} (default: @code{\"zabbix\"}) (type: string)"
  38337. msgstr "@code{xfce}(默认值:@code{xfce})"
  38338. #. type: table
  38339. #: guix-git/doc/guix.texi:25750 guix-git/doc/guix.texi:25915
  38340. msgid "Database user."
  38341. msgstr ""
  38342. #. type: item
  38343. #: guix-git/doc/guix.texi:25751 guix-git/doc/guix.texi:25916
  38344. #, fuzzy, no-wrap
  38345. msgid "@code{db-password} (default: @code{\"\"}) (type: string)"
  38346. msgstr "@code{port}(默认值:@code{22})"
  38347. #. type: table
  38348. #: guix-git/doc/guix.texi:25754
  38349. msgid "Database password. Please, use @code{include-files} with @code{DBPassword=SECRET} inside a specified file instead."
  38350. msgstr ""
  38351. #. type: item
  38352. #: guix-git/doc/guix.texi:25755 guix-git/doc/guix.texi:25907
  38353. #, fuzzy, no-wrap
  38354. msgid "@code{db-port} (default: @code{5432}) (type: number)"
  38355. msgstr "@code{port}(默认值:@code{22})"
  38356. #. type: table
  38357. #: guix-git/doc/guix.texi:25757 guix-git/doc/guix.texi:25909
  38358. msgid "Database port."
  38359. msgstr ""
  38360. #. type: item
  38361. #: guix-git/doc/guix.texi:25758 guix-git/doc/guix.texi:25832
  38362. #, fuzzy, no-wrap
  38363. msgid "@code{log-type} (default: @code{\"\"}) (type: string)"
  38364. msgstr "@code{port}(默认值:@code{22})"
  38365. #. type: table
  38366. #: guix-git/doc/guix.texi:25760 guix-git/doc/guix.texi:25834
  38367. msgid "Specifies where log messages are written to:"
  38368. msgstr ""
  38369. #. type: itemize
  38370. #: guix-git/doc/guix.texi:25763 guix-git/doc/guix.texi:25838
  38371. #, no-wrap
  38372. msgid "@code{system} - syslog."
  38373. msgstr ""
  38374. #. type: item
  38375. #: guix-git/doc/guix.texi:25765
  38376. #, no-wrap
  38377. msgid "@code{file} - file specified with @code{log-file} parameter."
  38378. msgstr ""
  38379. #. type: item
  38380. #: guix-git/doc/guix.texi:25767 guix-git/doc/guix.texi:25842
  38381. #, no-wrap
  38382. msgid "@code{console} - standard output."
  38383. msgstr ""
  38384. #. type: item
  38385. #: guix-git/doc/guix.texi:25771
  38386. #, fuzzy, no-wrap
  38387. msgid "@code{log-file} (default: @code{\"/var/log/zabbix/server.log\"}) (type: string)"
  38388. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  38389. #. type: table
  38390. #: guix-git/doc/guix.texi:25773 guix-git/doc/guix.texi:25848
  38391. msgid "Log file name for @code{log-type} @code{file} parameter."
  38392. msgstr ""
  38393. #. type: item
  38394. #: guix-git/doc/guix.texi:25774
  38395. #, fuzzy, no-wrap
  38396. msgid "@code{pid-file} (default: @code{\"/var/run/zabbix/zabbix_server.pid\"}) (type: string)"
  38397. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38398. #. type: table
  38399. #: guix-git/doc/guix.texi:25776 guix-git/doc/guix.texi:25851
  38400. msgid "Name of PID file."
  38401. msgstr ""
  38402. #. type: item
  38403. #: guix-git/doc/guix.texi:25777
  38404. #, fuzzy, no-wrap
  38405. msgid "@code{ssl-ca-location} (default: @code{\"/etc/ssl/certs/ca-certificates.crt\"}) (type: string)"
  38406. msgstr "@code{xfce}(默认值:@code{xfce})"
  38407. #. type: table
  38408. #: guix-git/doc/guix.texi:25780
  38409. msgid "The location of certificate authority (CA) files for SSL server certificate verification."
  38410. msgstr ""
  38411. #. type: item
  38412. #: guix-git/doc/guix.texi:25781
  38413. #, fuzzy, no-wrap
  38414. msgid "@code{ssl-cert-location} (default: @code{\"/etc/ssl/certs\"}) (type: string)"
  38415. msgstr "@code{xfce}(默认值:@code{xfce})"
  38416. #. type: table
  38417. #: guix-git/doc/guix.texi:25783
  38418. msgid "Location of SSL client certificates."
  38419. msgstr ""
  38420. #. type: item
  38421. #: guix-git/doc/guix.texi:25784 guix-git/doc/guix.texi:25862
  38422. #, fuzzy, no-wrap
  38423. msgid "@code{extra-options} (default: @code{\"\"}) (type: extra-options)"
  38424. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  38425. #. type: table
  38426. #: guix-git/doc/guix.texi:25786 guix-git/doc/guix.texi:25864
  38427. msgid "Extra options will be appended to Zabbix server configuration file."
  38428. msgstr ""
  38429. #. type: item
  38430. #: guix-git/doc/guix.texi:25787 guix-git/doc/guix.texi:25865
  38431. #, fuzzy, no-wrap
  38432. msgid "@code{include-files} (default: @code{()}) (type: include-files)"
  38433. msgstr "@code{features} (@code{'()})"
  38434. #. type: table
  38435. #: guix-git/doc/guix.texi:25790 guix-git/doc/guix.texi:25868
  38436. msgid "You may include individual files or all files in a directory in the configuration file."
  38437. msgstr ""
  38438. #. type: anchor{#1}
  38439. #: guix-git/doc/guix.texi:25799
  38440. msgid "zabbix-agent"
  38441. msgstr ""
  38442. #. type: subsubheading
  38443. #: guix-git/doc/guix.texi:25799
  38444. #, no-wrap
  38445. msgid "Zabbix agent"
  38446. msgstr ""
  38447. #. type: cindex
  38448. #: guix-git/doc/guix.texi:25800
  38449. #, no-wrap
  38450. msgid "zabbix zabbix-agent"
  38451. msgstr ""
  38452. #. type: Plain text
  38453. #: guix-git/doc/guix.texi:25807
  38454. msgid "The Zabbix agent gathers information about the running system for the Zabbix monitoring server. It has a variety of built-in checks, and can be extended with custom @uref{https://www.zabbix.com/documentation/current/en/manual/config/items/userparameters, @dfn{user parameters}}."
  38455. msgstr ""
  38456. #. type: defvar
  38457. #: guix-git/doc/guix.texi:25808
  38458. #, no-wrap
  38459. msgid "{Scheme variable} zabbix-agent-service-type"
  38460. msgstr ""
  38461. #. type: defvar
  38462. #: guix-git/doc/guix.texi:25811
  38463. msgid "This is the service type for the Zabbix agent service. Its value must be a @code{zabbix-agent-configuration} record, shown below."
  38464. msgstr ""
  38465. #. type: deftp
  38466. #: guix-git/doc/guix.texi:25815
  38467. #, fuzzy, no-wrap
  38468. msgid "{Data Type} zabbix-agent-configuration"
  38469. msgstr "{数据类型} build-machine"
  38470. #. type: deftp
  38471. #: guix-git/doc/guix.texi:25817
  38472. msgid "Available @code{zabbix-agent-configuration} fields are:"
  38473. msgstr ""
  38474. #. type: item
  38475. #: guix-git/doc/guix.texi:25819
  38476. #, fuzzy, no-wrap
  38477. msgid "@code{zabbix-agent} (default: @code{zabbix-agentd}) (type: file-like)"
  38478. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38479. #. type: table
  38480. #: guix-git/doc/guix.texi:25821
  38481. msgid "The zabbix-agent package."
  38482. msgstr ""
  38483. #. type: table
  38484. #: guix-git/doc/guix.texi:25824
  38485. msgid "User who will run the Zabbix agent."
  38486. msgstr ""
  38487. #. type: table
  38488. #: guix-git/doc/guix.texi:25827
  38489. msgid "Group who will run the Zabbix agent."
  38490. msgstr ""
  38491. #. type: item
  38492. #: guix-git/doc/guix.texi:25828
  38493. #, fuzzy, no-wrap
  38494. msgid "@code{hostname} (default: @code{\"\"}) (type: string)"
  38495. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38496. #. type: table
  38497. #: guix-git/doc/guix.texi:25831
  38498. msgid "Unique, case sensitive hostname which is required for active checks and must match hostname as configured on the server."
  38499. msgstr ""
  38500. #. type: item
  38501. #: guix-git/doc/guix.texi:25839
  38502. #, no-wrap
  38503. msgid "@code{file} - file specified with"
  38504. msgstr ""
  38505. #. type: itemize
  38506. #: guix-git/doc/guix.texi:25841
  38507. msgid "@code{log-file} parameter."
  38508. msgstr ""
  38509. #. type: item
  38510. #: guix-git/doc/guix.texi:25846
  38511. #, fuzzy, no-wrap
  38512. msgid "@code{log-file} (default: @code{\"/var/log/zabbix/agent.log\"}) (type: string)"
  38513. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38514. #. type: item
  38515. #: guix-git/doc/guix.texi:25849
  38516. #, fuzzy, no-wrap
  38517. msgid "@code{pid-file} (default: @code{\"/var/run/zabbix/zabbix_agent.pid\"}) (type: string)"
  38518. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  38519. #. type: item
  38520. #: guix-git/doc/guix.texi:25852
  38521. #, fuzzy, no-wrap
  38522. msgid "@code{server} (default: @code{(\"127.0.0.1\")}) (type: list)"
  38523. msgstr "@code{features} (@code{'()})"
  38524. #. type: table
  38525. #: guix-git/doc/guix.texi:25856
  38526. 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."
  38527. msgstr ""
  38528. #. type: item
  38529. #: guix-git/doc/guix.texi:25857
  38530. #, fuzzy, no-wrap
  38531. msgid "@code{server-active} (default: @code{(\"127.0.0.1\")}) (type: list)"
  38532. msgstr "@code{features} (@code{'()})"
  38533. #. type: table
  38534. #: guix-git/doc/guix.texi:25861
  38535. 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."
  38536. msgstr ""
  38537. #. type: anchor{#1}
  38538. #: guix-git/doc/guix.texi:25877
  38539. msgid "zabbix-front-end"
  38540. msgstr ""
  38541. #. type: subsubheading
  38542. #: guix-git/doc/guix.texi:25877
  38543. #, no-wrap
  38544. msgid "Zabbix front-end"
  38545. msgstr ""
  38546. #. type: cindex
  38547. #: guix-git/doc/guix.texi:25878
  38548. #, no-wrap
  38549. msgid "zabbix zabbix-front-end"
  38550. msgstr ""
  38551. #. type: Plain text
  38552. #: guix-git/doc/guix.texi:25884
  38553. msgid "The Zabbix front-end provides a web interface to Zabbix. It does not need to run on the same machine as the Zabbix server. This service works by extending the @ref{PHP-FPM} and @ref{NGINX} services with the configuration necessary for loading the Zabbix user interface."
  38554. msgstr ""
  38555. #. type: defvar
  38556. #: guix-git/doc/guix.texi:25885
  38557. #, no-wrap
  38558. msgid "{Scheme variable} zabbix-front-end-service-type"
  38559. msgstr ""
  38560. #. type: defvar
  38561. #: guix-git/doc/guix.texi:25888
  38562. msgid "This is the service type for the Zabbix web frontend. Its value must be a @code{zabbix-front-end-configuration} record, shown below."
  38563. msgstr ""
  38564. #. type: deftp
  38565. #: guix-git/doc/guix.texi:25892
  38566. #, fuzzy, no-wrap
  38567. msgid "{Data Type} zabbix-front-end-configuration"
  38568. msgstr "{数据类型} build-machine"
  38569. #. type: deftp
  38570. #: guix-git/doc/guix.texi:25894
  38571. msgid "Available @code{zabbix-front-end-configuration} fields are:"
  38572. msgstr ""
  38573. #. type: table
  38574. #: guix-git/doc/guix.texi:25898
  38575. #, fuzzy
  38576. msgid "The Zabbix server package to use."
  38577. msgstr "软件包数据类型。"
  38578. #. type: item
  38579. #: guix-git/doc/guix.texi:25899
  38580. #, fuzzy, no-wrap
  38581. msgid "@code{nginx} (default: @code{()}) (type: list)"
  38582. msgstr "@code{features} (@code{'()})"
  38583. #. type: table
  38584. #: guix-git/doc/guix.texi:25903
  38585. msgid "List of @ref{nginx-server-configuration,@code{nginx-server-configuration}} blocks for the Zabbix front-end. When empty, a default that listens on port 80 is used."
  38586. msgstr ""
  38587. #. type: item
  38588. #: guix-git/doc/guix.texi:25904
  38589. #, fuzzy, no-wrap
  38590. msgid "@code{db-host} (default: @code{\"localhost\"}) (type: string)"
  38591. msgstr "@code{xfce}(默认值:@code{xfce})"
  38592. #. type: table
  38593. #: guix-git/doc/guix.texi:25918
  38594. msgid "Database password. Please, use @code{db-secret-file} instead."
  38595. msgstr ""
  38596. #. type: item
  38597. #: guix-git/doc/guix.texi:25919
  38598. #, fuzzy, no-wrap
  38599. msgid "@code{db-secret-file} (default: @code{\"\"}) (type: string)"
  38600. msgstr "@code{xfce}(默认值:@code{xfce})"
  38601. #. type: table
  38602. #: guix-git/doc/guix.texi:25923
  38603. msgid "Secret file which will be appended to @file{zabbix.conf.php} file. This file contains credentials for use by Zabbix front-end. You are expected to create it manually."
  38604. msgstr ""
  38605. #. type: item
  38606. #: guix-git/doc/guix.texi:25924
  38607. #, fuzzy, no-wrap
  38608. msgid "@code{zabbix-host} (default: @code{\"localhost\"}) (type: string)"
  38609. msgstr "@code{features} (@code{'()})"
  38610. #. type: table
  38611. #: guix-git/doc/guix.texi:25926
  38612. msgid "Zabbix server hostname."
  38613. msgstr ""
  38614. #. type: item
  38615. #: guix-git/doc/guix.texi:25927
  38616. #, fuzzy, no-wrap
  38617. msgid "@code{zabbix-port} (default: @code{10051}) (type: number)"
  38618. msgstr "@code{challenge}(默认值:@code{#f})"
  38619. #. type: table
  38620. #: guix-git/doc/guix.texi:25929
  38621. msgid "Zabbix server port."
  38622. msgstr ""
  38623. #. type: cindex
  38624. #: guix-git/doc/guix.texi:25939
  38625. #, no-wrap
  38626. msgid "Kerberos"
  38627. msgstr ""
  38628. #. type: Plain text
  38629. #: guix-git/doc/guix.texi:25943
  38630. msgid "The @code{(gnu services kerberos)} module provides services relating to the authentication protocol @dfn{Kerberos}."
  38631. msgstr ""
  38632. #. type: subsubheading
  38633. #: guix-git/doc/guix.texi:25944
  38634. #, no-wrap
  38635. msgid "Krb5 Service"
  38636. msgstr ""
  38637. #. type: Plain text
  38638. #: guix-git/doc/guix.texi:25951
  38639. 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."
  38640. msgstr ""
  38641. #. type: Plain text
  38642. #: guix-git/doc/guix.texi:25955
  38643. 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."
  38644. msgstr ""
  38645. #. type: defvr
  38646. #: guix-git/doc/guix.texi:25956
  38647. #, no-wrap
  38648. msgid "{Scheme Variable} krb5-service-type"
  38649. msgstr ""
  38650. #. type: defvr
  38651. #: guix-git/doc/guix.texi:25958
  38652. msgid "A service type for Kerberos 5 clients."
  38653. msgstr ""
  38654. #. type: Plain text
  38655. #: guix-git/doc/guix.texi:25962
  38656. msgid "Here is an example of its use:"
  38657. msgstr ""
  38658. #. type: lisp
  38659. #: guix-git/doc/guix.texi:25976
  38660. #, no-wrap
  38661. msgid ""
  38662. "(service krb5-service-type\n"
  38663. " (krb5-configuration\n"
  38664. " (default-realm \"EXAMPLE.COM\")\n"
  38665. " (allow-weak-crypto? #t)\n"
  38666. " (realms (list\n"
  38667. " (krb5-realm\n"
  38668. " (name \"EXAMPLE.COM\")\n"
  38669. " (admin-server \"groucho.example.com\")\n"
  38670. " (kdc \"karl.example.com\"))\n"
  38671. " (krb5-realm\n"
  38672. " (name \"ARGRX.EDU\")\n"
  38673. " (admin-server \"kerb-admin.argrx.edu\")\n"
  38674. " (kdc \"keys.argrx.edu\"))))))\n"
  38675. msgstr ""
  38676. #. type: Plain text
  38677. #: guix-git/doc/guix.texi:25980
  38678. msgid "This example provides a Kerberos@tie{}5 client configuration which:"
  38679. msgstr ""
  38680. #. type: item
  38681. #: guix-git/doc/guix.texi:25981
  38682. #, no-wrap
  38683. msgid "Recognizes two realms, @i{viz:} ``EXAMPLE.COM'' and ``ARGRX.EDU'', both"
  38684. msgstr ""
  38685. #. type: itemize
  38686. #: guix-git/doc/guix.texi:25983
  38687. msgid "of which have distinct administration servers and key distribution centers;"
  38688. msgstr ""
  38689. #. type: item
  38690. #: guix-git/doc/guix.texi:25983
  38691. #, no-wrap
  38692. msgid "Will default to the realm ``EXAMPLE.COM'' if the realm is not explicitly"
  38693. msgstr ""
  38694. #. type: itemize
  38695. #: guix-git/doc/guix.texi:25985
  38696. msgid "specified by clients;"
  38697. msgstr ""
  38698. #. type: item
  38699. #: guix-git/doc/guix.texi:25985
  38700. #, no-wrap
  38701. msgid "Accepts services which only support encryption types known to be weak."
  38702. msgstr ""
  38703. #. type: Plain text
  38704. #: guix-git/doc/guix.texi:25993
  38705. 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."
  38706. msgstr ""
  38707. #. type: deftp
  38708. #: guix-git/doc/guix.texi:25995
  38709. #, no-wrap
  38710. msgid "{Data Type} krb5-realm"
  38711. msgstr ""
  38712. #. type: cindex
  38713. #: guix-git/doc/guix.texi:25996
  38714. #, no-wrap
  38715. msgid "realm, kerberos"
  38716. msgstr ""
  38717. #. type: table
  38718. #: guix-git/doc/guix.texi:26002
  38719. 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."
  38720. msgstr ""
  38721. #. type: code{#1}
  38722. #: guix-git/doc/guix.texi:26003
  38723. #, no-wrap
  38724. msgid "admin-server"
  38725. msgstr ""
  38726. #. type: table
  38727. #: guix-git/doc/guix.texi:26006
  38728. msgid "This field is a string identifying the host where the administration server is running."
  38729. msgstr ""
  38730. #. type: code{#1}
  38731. #: guix-git/doc/guix.texi:26007
  38732. #, no-wrap
  38733. msgid "kdc"
  38734. msgstr ""
  38735. #. type: table
  38736. #: guix-git/doc/guix.texi:26010
  38737. msgid "This field is a string identifying the key distribution center for the realm."
  38738. msgstr ""
  38739. #. type: deftp
  38740. #: guix-git/doc/guix.texi:26013
  38741. #, no-wrap
  38742. msgid "{Data Type} krb5-configuration"
  38743. msgstr ""
  38744. #. type: item
  38745. #: guix-git/doc/guix.texi:26016
  38746. #, no-wrap
  38747. msgid "@code{allow-weak-crypto?} (default: @code{#f})"
  38748. msgstr ""
  38749. #. type: table
  38750. #: guix-git/doc/guix.texi:26019
  38751. msgid "If this flag is @code{#t} then services which only offer encryption algorithms known to be weak will be accepted."
  38752. msgstr ""
  38753. #. type: item
  38754. #: guix-git/doc/guix.texi:26020
  38755. #, no-wrap
  38756. msgid "@code{default-realm} (default: @code{#f})"
  38757. msgstr ""
  38758. #. type: table
  38759. #: guix-git/doc/guix.texi:26027
  38760. 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}."
  38761. msgstr ""
  38762. #. type: code{#1}
  38763. #: guix-git/doc/guix.texi:26028
  38764. #, no-wrap
  38765. msgid "realms"
  38766. msgstr ""
  38767. #. type: table
  38768. #: guix-git/doc/guix.texi:26033
  38769. 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."
  38770. msgstr ""
  38771. #. type: subsubheading
  38772. #: guix-git/doc/guix.texi:26037
  38773. #, no-wrap
  38774. msgid "PAM krb5 Service"
  38775. msgstr ""
  38776. #. type: cindex
  38777. #: guix-git/doc/guix.texi:26038
  38778. #, no-wrap
  38779. msgid "pam-krb5"
  38780. msgstr ""
  38781. #. type: Plain text
  38782. #: guix-git/doc/guix.texi:26044
  38783. 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."
  38784. msgstr ""
  38785. #. type: defvr
  38786. #: guix-git/doc/guix.texi:26045
  38787. #, no-wrap
  38788. msgid "{Scheme Variable} pam-krb5-service-type"
  38789. msgstr ""
  38790. #. type: defvr
  38791. #: guix-git/doc/guix.texi:26047
  38792. msgid "A service type for the Kerberos 5 PAM module."
  38793. msgstr ""
  38794. #. type: deftp
  38795. #: guix-git/doc/guix.texi:26049
  38796. #, no-wrap
  38797. msgid "{Data Type} pam-krb5-configuration"
  38798. msgstr ""
  38799. #. type: deftp
  38800. #: guix-git/doc/guix.texi:26052
  38801. msgid "Data type representing the configuration of the Kerberos 5 PAM module. This type has the following parameters:"
  38802. msgstr ""
  38803. #. type: item
  38804. #: guix-git/doc/guix.texi:26053
  38805. #, no-wrap
  38806. msgid "@code{pam-krb5} (default: @code{pam-krb5})"
  38807. msgstr ""
  38808. #. type: table
  38809. #: guix-git/doc/guix.texi:26055
  38810. msgid "The pam-krb5 package to use."
  38811. msgstr ""
  38812. #. type: item
  38813. #: guix-git/doc/guix.texi:26056
  38814. #, no-wrap
  38815. msgid "@code{minimum-uid} (default: @code{1000})"
  38816. msgstr ""
  38817. #. type: table
  38818. #: guix-git/doc/guix.texi:26059
  38819. msgid "The smallest user ID for which Kerberos authentications should be attempted. Local accounts with lower values will silently fail to authenticate."
  38820. msgstr ""
  38821. #. type: cindex
  38822. #: guix-git/doc/guix.texi:26065
  38823. #, no-wrap
  38824. msgid "LDAP"
  38825. msgstr ""
  38826. #. type: cindex
  38827. #: guix-git/doc/guix.texi:26066
  38828. #, no-wrap
  38829. msgid "nslcd, LDAP service"
  38830. msgstr ""
  38831. #. type: Plain text
  38832. #: guix-git/doc/guix.texi:26073
  38833. 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."
  38834. msgstr ""
  38835. #. type: Plain text
  38836. #: guix-git/doc/guix.texi:26077
  38837. 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:"
  38838. msgstr ""
  38839. #. type: lisp
  38840. #: guix-git/doc/guix.texi:26100
  38841. #, no-wrap
  38842. msgid ""
  38843. "(use-service-modules authentication)\n"
  38844. "(use-modules (gnu system nss))\n"
  38845. "...\n"
  38846. "(operating-system\n"
  38847. " ...\n"
  38848. " (services\n"
  38849. " (cons*\n"
  38850. " (service nslcd-service-type)\n"
  38851. " (service dhcp-client-service-type)\n"
  38852. " %base-services))\n"
  38853. " (name-service-switch\n"
  38854. " (let ((services (list (name-service (name \"db\"))\n"
  38855. " (name-service (name \"files\"))\n"
  38856. " (name-service (name \"ldap\")))))\n"
  38857. " (name-service-switch\n"
  38858. " (inherit %mdns-host-lookup-nss)\n"
  38859. " (password services)\n"
  38860. " (shadow services)\n"
  38861. " (group services)\n"
  38862. " (netgroup services)\n"
  38863. " (gshadow services)))))\n"
  38864. msgstr ""
  38865. #. type: Plain text
  38866. #: guix-git/doc/guix.texi:26105
  38867. msgid "Available @code{nslcd-configuration} fields are:"
  38868. msgstr ""
  38869. #. type: deftypevr
  38870. #: guix-git/doc/guix.texi:26106
  38871. #, no-wrap
  38872. msgid "{@code{nslcd-configuration} parameter} package nss-pam-ldapd"
  38873. msgstr ""
  38874. #. type: deftypevr
  38875. #: guix-git/doc/guix.texi:26108
  38876. msgid "The @code{nss-pam-ldapd} package to use."
  38877. msgstr ""
  38878. #. type: deftypevr
  38879. #: guix-git/doc/guix.texi:26111
  38880. #, no-wrap
  38881. msgid "{@code{nslcd-configuration} parameter} maybe-number threads"
  38882. msgstr ""
  38883. #. type: deftypevr
  38884. #: guix-git/doc/guix.texi:26115
  38885. 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."
  38886. msgstr ""
  38887. #. type: deftypevr
  38888. #: guix-git/doc/guix.texi:26120
  38889. #, no-wrap
  38890. msgid "{@code{nslcd-configuration} parameter} string uid"
  38891. msgstr ""
  38892. #. type: deftypevr
  38893. #: guix-git/doc/guix.texi:26122
  38894. msgid "This specifies the user id with which the daemon should be run."
  38895. msgstr ""
  38896. #. type: deftypevr
  38897. #: guix-git/doc/guix.texi:26124 guix-git/doc/guix.texi:26131
  38898. msgid "Defaults to @samp{\"nslcd\"}."
  38899. msgstr ""
  38900. #. type: deftypevr
  38901. #: guix-git/doc/guix.texi:26127
  38902. #, no-wrap
  38903. msgid "{@code{nslcd-configuration} parameter} string gid"
  38904. msgstr ""
  38905. #. type: deftypevr
  38906. #: guix-git/doc/guix.texi:26129
  38907. msgid "This specifies the group id with which the daemon should be run."
  38908. msgstr ""
  38909. #. type: deftypevr
  38910. #: guix-git/doc/guix.texi:26134
  38911. #, no-wrap
  38912. msgid "{@code{nslcd-configuration} parameter} log-option log"
  38913. msgstr ""
  38914. #. type: deftypevr
  38915. #: guix-git/doc/guix.texi:26142
  38916. 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."
  38917. msgstr ""
  38918. #. type: deftypevr
  38919. #: guix-git/doc/guix.texi:26144
  38920. msgid "Defaults to @samp{(\"/var/log/nslcd\" info)}."
  38921. msgstr ""
  38922. #. type: deftypevr
  38923. #: guix-git/doc/guix.texi:26147
  38924. #, no-wrap
  38925. msgid "{@code{nslcd-configuration} parameter} list uri"
  38926. msgstr ""
  38927. #. type: deftypevr
  38928. #: guix-git/doc/guix.texi:26150
  38929. msgid "The list of LDAP server URIs. Normally, only the first server will be used with the following servers as fall-back."
  38930. msgstr ""
  38931. #. type: deftypevr
  38932. #: guix-git/doc/guix.texi:26152
  38933. msgid "Defaults to @samp{(\"ldap://localhost:389/\")}."
  38934. msgstr ""
  38935. #. type: deftypevr
  38936. #: guix-git/doc/guix.texi:26155
  38937. #, no-wrap
  38938. msgid "{@code{nslcd-configuration} parameter} maybe-string ldap-version"
  38939. msgstr ""
  38940. #. type: deftypevr
  38941. #: guix-git/doc/guix.texi:26158
  38942. msgid "The version of the LDAP protocol to use. The default is to use the maximum version supported by the LDAP library."
  38943. msgstr ""
  38944. #. type: deftypevr
  38945. #: guix-git/doc/guix.texi:26163
  38946. #, no-wrap
  38947. msgid "{@code{nslcd-configuration} parameter} maybe-string binddn"
  38948. msgstr ""
  38949. #. type: deftypevr
  38950. #: guix-git/doc/guix.texi:26166
  38951. msgid "Specifies the distinguished name with which to bind to the directory server for lookups. The default is to bind anonymously."
  38952. msgstr ""
  38953. #. type: deftypevr
  38954. #: guix-git/doc/guix.texi:26171
  38955. #, no-wrap
  38956. msgid "{@code{nslcd-configuration} parameter} maybe-string bindpw"
  38957. msgstr ""
  38958. #. type: deftypevr
  38959. #: guix-git/doc/guix.texi:26174
  38960. msgid "Specifies the credentials with which to bind. This option is only applicable when used with binddn."
  38961. msgstr ""
  38962. #. type: deftypevr
  38963. #: guix-git/doc/guix.texi:26179
  38964. #, no-wrap
  38965. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmoddn"
  38966. msgstr ""
  38967. #. type: deftypevr
  38968. #: guix-git/doc/guix.texi:26182
  38969. msgid "Specifies the distinguished name to use when the root user tries to modify a user's password using the PAM module."
  38970. msgstr ""
  38971. #. type: deftypevr
  38972. #: guix-git/doc/guix.texi:26187
  38973. #, no-wrap
  38974. msgid "{@code{nslcd-configuration} parameter} maybe-string rootpwmodpw"
  38975. msgstr ""
  38976. #. type: deftypevr
  38977. #: guix-git/doc/guix.texi:26191
  38978. 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"
  38979. msgstr ""
  38980. #. type: deftypevr
  38981. #: guix-git/doc/guix.texi:26196
  38982. #, no-wrap
  38983. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-mech"
  38984. msgstr ""
  38985. #. type: deftypevr
  38986. #: guix-git/doc/guix.texi:26199
  38987. msgid "Specifies the SASL mechanism to be used when performing SASL authentication."
  38988. msgstr ""
  38989. #. type: deftypevr
  38990. #: guix-git/doc/guix.texi:26204
  38991. #, no-wrap
  38992. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-realm"
  38993. msgstr ""
  38994. #. type: deftypevr
  38995. #: guix-git/doc/guix.texi:26206
  38996. msgid "Specifies the SASL realm to be used when performing SASL authentication."
  38997. msgstr ""
  38998. #. type: deftypevr
  38999. #: guix-git/doc/guix.texi:26211
  39000. #, no-wrap
  39001. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authcid"
  39002. msgstr ""
  39003. #. type: deftypevr
  39004. #: guix-git/doc/guix.texi:26214
  39005. msgid "Specifies the authentication identity to be used when performing SASL authentication."
  39006. msgstr ""
  39007. #. type: deftypevr
  39008. #: guix-git/doc/guix.texi:26219
  39009. #, no-wrap
  39010. msgid "{@code{nslcd-configuration} parameter} maybe-string sasl-authzid"
  39011. msgstr ""
  39012. #. type: deftypevr
  39013. #: guix-git/doc/guix.texi:26222
  39014. msgid "Specifies the authorization identity to be used when performing SASL authentication."
  39015. msgstr ""
  39016. #. type: deftypevr
  39017. #: guix-git/doc/guix.texi:26227
  39018. #, no-wrap
  39019. msgid "{@code{nslcd-configuration} parameter} maybe-boolean sasl-canonicalize?"
  39020. msgstr ""
  39021. #. type: deftypevr
  39022. #: guix-git/doc/guix.texi:26232
  39023. 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."
  39024. msgstr ""
  39025. #. type: deftypevr
  39026. #: guix-git/doc/guix.texi:26237
  39027. #, no-wrap
  39028. msgid "{@code{nslcd-configuration} parameter} maybe-string krb5-ccname"
  39029. msgstr ""
  39030. #. type: deftypevr
  39031. #: guix-git/doc/guix.texi:26239
  39032. msgid "Set the name for the GSS-API Kerberos credentials cache."
  39033. msgstr ""
  39034. #. type: deftypevr
  39035. #: guix-git/doc/guix.texi:26244
  39036. #, no-wrap
  39037. msgid "{@code{nslcd-configuration} parameter} string base"
  39038. msgstr ""
  39039. #. type: deftypevr
  39040. #: guix-git/doc/guix.texi:26246
  39041. msgid "The directory search base."
  39042. msgstr ""
  39043. #. type: deftypevr
  39044. #: guix-git/doc/guix.texi:26248
  39045. msgid "Defaults to @samp{\"dc=example,dc=com\"}."
  39046. msgstr ""
  39047. #. type: deftypevr
  39048. #: guix-git/doc/guix.texi:26251
  39049. #, no-wrap
  39050. msgid "{@code{nslcd-configuration} parameter} scope-option scope"
  39051. msgstr ""
  39052. #. type: deftypevr
  39053. #: guix-git/doc/guix.texi:26255
  39054. 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."
  39055. msgstr ""
  39056. #. type: deftypevr
  39057. #: guix-git/doc/guix.texi:26257
  39058. msgid "Defaults to @samp{(subtree)}."
  39059. msgstr ""
  39060. #. type: deftypevr
  39061. #: guix-git/doc/guix.texi:26260
  39062. #, no-wrap
  39063. msgid "{@code{nslcd-configuration} parameter} maybe-deref-option deref"
  39064. msgstr ""
  39065. #. type: deftypevr
  39066. #: guix-git/doc/guix.texi:26263
  39067. msgid "Specifies the policy for dereferencing aliases. The default policy is to never dereference aliases."
  39068. msgstr ""
  39069. #. type: deftypevr
  39070. #: guix-git/doc/guix.texi:26268
  39071. #, no-wrap
  39072. msgid "{@code{nslcd-configuration} parameter} maybe-boolean referrals"
  39073. msgstr ""
  39074. #. type: deftypevr
  39075. #: guix-git/doc/guix.texi:26271
  39076. msgid "Specifies whether automatic referral chasing should be enabled. The default behaviour is to chase referrals."
  39077. msgstr ""
  39078. #. type: deftypevr
  39079. #: guix-git/doc/guix.texi:26276
  39080. #, no-wrap
  39081. msgid "{@code{nslcd-configuration} parameter} list-of-map-entries maps"
  39082. msgstr ""
  39083. #. type: deftypevr
  39084. #: guix-git/doc/guix.texi:26281
  39085. 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."
  39086. msgstr ""
  39087. #. type: deftypevr
  39088. #: guix-git/doc/guix.texi:26286
  39089. #, no-wrap
  39090. msgid "{@code{nslcd-configuration} parameter} list-of-filter-entries filters"
  39091. msgstr ""
  39092. #. type: deftypevr
  39093. #: guix-git/doc/guix.texi:26289
  39094. msgid "A list of filters consisting of the name of a map to which the filter applies and an LDAP search filter expression."
  39095. msgstr ""
  39096. #. type: deftypevr
  39097. #: guix-git/doc/guix.texi:26294
  39098. #, no-wrap
  39099. msgid "{@code{nslcd-configuration} parameter} maybe-number bind-timelimit"
  39100. msgstr ""
  39101. #. type: deftypevr
  39102. #: guix-git/doc/guix.texi:26297
  39103. msgid "Specifies the time limit in seconds to use when connecting to the directory server. The default value is 10 seconds."
  39104. msgstr ""
  39105. #. type: deftypevr
  39106. #: guix-git/doc/guix.texi:26302
  39107. #, no-wrap
  39108. msgid "{@code{nslcd-configuration} parameter} maybe-number timelimit"
  39109. msgstr ""
  39110. #. type: deftypevr
  39111. #: guix-git/doc/guix.texi:26306
  39112. 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."
  39113. msgstr ""
  39114. #. type: deftypevr
  39115. #: guix-git/doc/guix.texi:26311
  39116. #, no-wrap
  39117. msgid "{@code{nslcd-configuration} parameter} maybe-number idle-timelimit"
  39118. msgstr ""
  39119. #. type: deftypevr
  39120. #: guix-git/doc/guix.texi:26315
  39121. 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."
  39122. msgstr ""
  39123. #. type: deftypevr
  39124. #: guix-git/doc/guix.texi:26320
  39125. #, no-wrap
  39126. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-sleeptime"
  39127. msgstr ""
  39128. #. type: deftypevr
  39129. #: guix-git/doc/guix.texi:26324
  39130. 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."
  39131. msgstr ""
  39132. #. type: deftypevr
  39133. #: guix-git/doc/guix.texi:26329
  39134. #, no-wrap
  39135. msgid "{@code{nslcd-configuration} parameter} maybe-number reconnect-retrytime"
  39136. msgstr ""
  39137. #. type: deftypevr
  39138. #: guix-git/doc/guix.texi:26333
  39139. 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."
  39140. msgstr ""
  39141. #. type: deftypevr
  39142. #: guix-git/doc/guix.texi:26338
  39143. #, no-wrap
  39144. msgid "{@code{nslcd-configuration} parameter} maybe-ssl-option ssl"
  39145. msgstr ""
  39146. #. type: deftypevr
  39147. #: guix-git/doc/guix.texi:26342
  39148. 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."
  39149. msgstr ""
  39150. #. type: deftypevr
  39151. #: guix-git/doc/guix.texi:26347
  39152. #, no-wrap
  39153. msgid "{@code{nslcd-configuration} parameter} maybe-tls-reqcert-option tls-reqcert"
  39154. msgstr ""
  39155. #. type: deftypevr
  39156. #: guix-git/doc/guix.texi:26350
  39157. 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."
  39158. msgstr ""
  39159. #. type: deftypevr
  39160. #: guix-git/doc/guix.texi:26355
  39161. #, no-wrap
  39162. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertdir"
  39163. msgstr ""
  39164. #. type: deftypevr
  39165. #: guix-git/doc/guix.texi:26358
  39166. msgid "Specifies the directory containing X.509 certificates for peer authen‐ tication. This parameter is ignored when using GnuTLS."
  39167. msgstr ""
  39168. #. type: deftypevr
  39169. #: guix-git/doc/guix.texi:26363
  39170. #, no-wrap
  39171. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cacertfile"
  39172. msgstr ""
  39173. #. type: deftypevr
  39174. #: guix-git/doc/guix.texi:26365
  39175. msgid "Specifies the path to the X.509 certificate for peer authentication."
  39176. msgstr ""
  39177. #. type: deftypevr
  39178. #: guix-git/doc/guix.texi:26370
  39179. #, no-wrap
  39180. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-randfile"
  39181. msgstr ""
  39182. #. type: deftypevr
  39183. #: guix-git/doc/guix.texi:26373
  39184. msgid "Specifies the path to an entropy source. This parameter is ignored when using GnuTLS."
  39185. msgstr ""
  39186. #. type: deftypevr
  39187. #: guix-git/doc/guix.texi:26378
  39188. #, no-wrap
  39189. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-ciphers"
  39190. msgstr ""
  39191. #. type: deftypevr
  39192. #: guix-git/doc/guix.texi:26380
  39193. msgid "Specifies the ciphers to use for TLS as a string."
  39194. msgstr ""
  39195. #. type: deftypevr
  39196. #: guix-git/doc/guix.texi:26385
  39197. #, no-wrap
  39198. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-cert"
  39199. msgstr ""
  39200. #. type: deftypevr
  39201. #: guix-git/doc/guix.texi:26388
  39202. msgid "Specifies the path to the file containing the local certificate for client TLS authentication."
  39203. msgstr ""
  39204. #. type: deftypevr
  39205. #: guix-git/doc/guix.texi:26393
  39206. #, no-wrap
  39207. msgid "{@code{nslcd-configuration} parameter} maybe-string tls-key"
  39208. msgstr ""
  39209. #. type: deftypevr
  39210. #: guix-git/doc/guix.texi:26396
  39211. msgid "Specifies the path to the file containing the private key for client TLS authentication."
  39212. msgstr ""
  39213. #. type: deftypevr
  39214. #: guix-git/doc/guix.texi:26401
  39215. #, no-wrap
  39216. msgid "{@code{nslcd-configuration} parameter} maybe-number pagesize"
  39217. msgstr ""
  39218. #. type: deftypevr
  39219. #: guix-git/doc/guix.texi:26405
  39220. 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."
  39221. msgstr ""
  39222. #. type: deftypevr
  39223. #: guix-git/doc/guix.texi:26410
  39224. #, no-wrap
  39225. msgid "{@code{nslcd-configuration} parameter} maybe-ignore-users-option nss-initgroups-ignoreusers"
  39226. msgstr ""
  39227. #. type: deftypevr
  39228. #: guix-git/doc/guix.texi:26414
  39229. 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."
  39230. msgstr ""
  39231. #. type: deftypevr
  39232. #: guix-git/doc/guix.texi:26419
  39233. #, no-wrap
  39234. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-min-uid"
  39235. msgstr ""
  39236. #. type: deftypevr
  39237. #: guix-git/doc/guix.texi:26422
  39238. msgid "This option ensures that LDAP users with a numeric user id lower than the specified value are ignored."
  39239. msgstr ""
  39240. #. type: deftypevr
  39241. #: guix-git/doc/guix.texi:26427
  39242. #, no-wrap
  39243. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-uid-offset"
  39244. msgstr ""
  39245. #. type: deftypevr
  39246. #: guix-git/doc/guix.texi:26430
  39247. 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."
  39248. msgstr ""
  39249. #. type: deftypevr
  39250. #: guix-git/doc/guix.texi:26435
  39251. #, no-wrap
  39252. msgid "{@code{nslcd-configuration} parameter} maybe-number nss-gid-offset"
  39253. msgstr ""
  39254. #. type: deftypevr
  39255. #: guix-git/doc/guix.texi:26438
  39256. 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."
  39257. msgstr ""
  39258. #. type: deftypevr
  39259. #: guix-git/doc/guix.texi:26443
  39260. #, no-wrap
  39261. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-nested-groups"
  39262. msgstr ""
  39263. #. type: deftypevr
  39264. #: guix-git/doc/guix.texi:26449
  39265. 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."
  39266. msgstr ""
  39267. #. type: deftypevr
  39268. #: guix-git/doc/guix.texi:26454
  39269. #, no-wrap
  39270. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-getgrent-skipmembers"
  39271. msgstr ""
  39272. #. type: deftypevr
  39273. #: guix-git/doc/guix.texi:26459
  39274. 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."
  39275. msgstr ""
  39276. #. type: deftypevr
  39277. #: guix-git/doc/guix.texi:26464
  39278. #, no-wrap
  39279. msgid "{@code{nslcd-configuration} parameter} maybe-boolean nss-disable-enumeration"
  39280. msgstr ""
  39281. #. type: deftypevr
  39282. #: guix-git/doc/guix.texi:26470
  39283. 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."
  39284. msgstr ""
  39285. #. type: deftypevr
  39286. #: guix-git/doc/guix.texi:26475
  39287. #, no-wrap
  39288. msgid "{@code{nslcd-configuration} parameter} maybe-string validnames"
  39289. msgstr ""
  39290. #. type: deftypevr
  39291. #: guix-git/doc/guix.texi:26479
  39292. 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."
  39293. msgstr ""
  39294. #. type: deftypevr
  39295. #: guix-git/doc/guix.texi:26484
  39296. #, no-wrap
  39297. msgid "{@code{nslcd-configuration} parameter} maybe-boolean ignorecase"
  39298. msgstr ""
  39299. #. type: deftypevr
  39300. #: guix-git/doc/guix.texi:26489
  39301. 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."
  39302. msgstr ""
  39303. #. type: deftypevr
  39304. #: guix-git/doc/guix.texi:26494
  39305. #, no-wrap
  39306. msgid "{@code{nslcd-configuration} parameter} maybe-boolean pam-authc-ppolicy"
  39307. msgstr ""
  39308. #. type: deftypevr
  39309. #: guix-git/doc/guix.texi:26497
  39310. msgid "This option specifies whether password policy controls are requested and handled from the LDAP server when performing user authentication."
  39311. msgstr ""
  39312. #. type: deftypevr
  39313. #: guix-git/doc/guix.texi:26502
  39314. #, no-wrap
  39315. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authc-search"
  39316. msgstr ""
  39317. #. type: deftypevr
  39318. #: guix-git/doc/guix.texi:26508
  39319. 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."
  39320. msgstr ""
  39321. #. type: deftypevr
  39322. #: guix-git/doc/guix.texi:26513
  39323. #, no-wrap
  39324. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-authz-search"
  39325. msgstr ""
  39326. #. type: deftypevr
  39327. #: guix-git/doc/guix.texi:26517
  39328. 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."
  39329. msgstr ""
  39330. #. type: deftypevr
  39331. #: guix-git/doc/guix.texi:26522
  39332. #, no-wrap
  39333. msgid "{@code{nslcd-configuration} parameter} maybe-string pam-password-prohibit-message"
  39334. msgstr ""
  39335. #. type: deftypevr
  39336. #: guix-git/doc/guix.texi:26527
  39337. 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."
  39338. msgstr ""
  39339. #. type: deftypevr
  39340. #: guix-git/doc/guix.texi:26532
  39341. #, no-wrap
  39342. msgid "{@code{nslcd-configuration} parameter} list pam-services"
  39343. msgstr ""
  39344. #. type: deftypevr
  39345. #: guix-git/doc/guix.texi:26534
  39346. msgid "List of pam service names for which LDAP authentication should suffice."
  39347. msgstr ""
  39348. #. type: cindex
  39349. #: guix-git/doc/guix.texi:26545
  39350. #, no-wrap
  39351. msgid "web"
  39352. msgstr ""
  39353. #. type: cindex
  39354. #: guix-git/doc/guix.texi:26546
  39355. #, no-wrap
  39356. msgid "www"
  39357. msgstr ""
  39358. #. type: cindex
  39359. #: guix-git/doc/guix.texi:26547
  39360. #, no-wrap
  39361. msgid "HTTP"
  39362. msgstr ""
  39363. #. type: Plain text
  39364. #: guix-git/doc/guix.texi:26550
  39365. msgid "The @code{(gnu services web)} module provides the Apache HTTP Server, the nginx web server, and also a fastcgi wrapper daemon."
  39366. msgstr ""
  39367. #. type: subsubheading
  39368. #: guix-git/doc/guix.texi:26551
  39369. #, no-wrap
  39370. msgid "Apache HTTP Server"
  39371. msgstr ""
  39372. #. type: deffn
  39373. #: guix-git/doc/guix.texi:26553
  39374. #, no-wrap
  39375. msgid "{Scheme Variable} httpd-service-type"
  39376. msgstr ""
  39377. #. type: deffn
  39378. #: guix-git/doc/guix.texi:26557
  39379. 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."
  39380. msgstr ""
  39381. #. type: deffn
  39382. #: guix-git/doc/guix.texi:26559 guix-git/doc/guix.texi:26741
  39383. msgid "A simple example configuration is given below."
  39384. msgstr ""
  39385. #. type: lisp
  39386. #: guix-git/doc/guix.texi:26567
  39387. #, no-wrap
  39388. msgid ""
  39389. "(service httpd-service-type\n"
  39390. " (httpd-configuration\n"
  39391. " (config\n"
  39392. " (httpd-config-file\n"
  39393. " (server-name \"www.example.com\")\n"
  39394. " (document-root \"/srv/http/www.example.com\")))))\n"
  39395. msgstr ""
  39396. #. type: deffn
  39397. #: guix-git/doc/guix.texi:26571
  39398. msgid "Other services can also extend the @code{httpd-service-type} to add to the configuration."
  39399. msgstr ""
  39400. #. type: lisp
  39401. #: guix-git/doc/guix.texi:26580 guix-git/doc/guix.texi:26720
  39402. #, no-wrap
  39403. msgid ""
  39404. "(simple-service 'www.example.com-server httpd-service-type\n"
  39405. " (list\n"
  39406. " (httpd-virtualhost\n"
  39407. " \"*:80\"\n"
  39408. " (list (string-join '(\"ServerName www.example.com\"\n"
  39409. " \"DocumentRoot /srv/http/www.example.com\")\n"
  39410. " \"\\n\")))))\n"
  39411. msgstr ""
  39412. #. type: Plain text
  39413. #: guix-git/doc/guix.texi:26586
  39414. msgid "The details for the @code{httpd-configuration}, @code{httpd-module}, @code{httpd-config-file} and @code{httpd-virtualhost} record types are given below."
  39415. msgstr ""
  39416. #. type: deffn
  39417. #: guix-git/doc/guix.texi:26587
  39418. #, no-wrap
  39419. msgid "{Data Type} httpd-configuration"
  39420. msgstr ""
  39421. #. type: deffn
  39422. #: guix-git/doc/guix.texi:26589
  39423. msgid "This data type represents the configuration for the httpd service."
  39424. msgstr ""
  39425. #. type: item
  39426. #: guix-git/doc/guix.texi:26591
  39427. #, no-wrap
  39428. msgid "@code{package} (default: @code{httpd})"
  39429. msgstr ""
  39430. #. type: table
  39431. #: guix-git/doc/guix.texi:26593
  39432. msgid "The httpd package to use."
  39433. msgstr ""
  39434. #. type: item
  39435. #: guix-git/doc/guix.texi:26594 guix-git/doc/guix.texi:26683
  39436. #, no-wrap
  39437. msgid "@code{pid-file} (default: @code{\"/var/run/httpd\"})"
  39438. msgstr ""
  39439. #. type: table
  39440. #: guix-git/doc/guix.texi:26596
  39441. msgid "The pid file used by the shepherd-service."
  39442. msgstr ""
  39443. #. type: item
  39444. #: guix-git/doc/guix.texi:26597
  39445. #, no-wrap
  39446. msgid "@code{config} (default: @code{(httpd-config-file)})"
  39447. msgstr ""
  39448. #. type: table
  39449. #: guix-git/doc/guix.texi:26602
  39450. 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."
  39451. msgstr ""
  39452. #. type: deffn
  39453. #: guix-git/doc/guix.texi:26606
  39454. #, no-wrap
  39455. msgid "{Data Type} httpd-module"
  39456. msgstr ""
  39457. #. type: deffn
  39458. #: guix-git/doc/guix.texi:26608
  39459. msgid "This data type represents a module for the httpd service."
  39460. msgstr ""
  39461. #. type: table
  39462. #: guix-git/doc/guix.texi:26612
  39463. msgid "The name of the module."
  39464. msgstr ""
  39465. #. type: table
  39466. #: guix-git/doc/guix.texi:26618
  39467. 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\")}."
  39468. msgstr ""
  39469. #. type: defvr
  39470. #: guix-git/doc/guix.texi:26622
  39471. #, no-wrap
  39472. msgid "{Scheme Variable} %default-httpd-modules"
  39473. msgstr ""
  39474. #. type: defvr
  39475. #: guix-git/doc/guix.texi:26624
  39476. msgid "A default list of @code{httpd-module} objects."
  39477. msgstr ""
  39478. #. type: deffn
  39479. #: guix-git/doc/guix.texi:26626
  39480. #, no-wrap
  39481. msgid "{Data Type} httpd-config-file"
  39482. msgstr ""
  39483. #. type: deffn
  39484. #: guix-git/doc/guix.texi:26628
  39485. msgid "This data type represents a configuration file for the httpd service."
  39486. msgstr ""
  39487. #. type: item
  39488. #: guix-git/doc/guix.texi:26630
  39489. #, no-wrap
  39490. msgid "@code{modules} (default: @code{%default-httpd-modules})"
  39491. msgstr ""
  39492. #. type: table
  39493. #: guix-git/doc/guix.texi:26633
  39494. msgid "The modules to load. Additional modules can be added here, or loaded by additional configuration."
  39495. msgstr ""
  39496. #. type: table
  39497. #: guix-git/doc/guix.texi:26636
  39498. 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}:"
  39499. msgstr ""
  39500. #. type: lisp
  39501. #: guix-git/doc/guix.texi:26658
  39502. #, no-wrap
  39503. msgid ""
  39504. "(service httpd-service-type\n"
  39505. " (httpd-configuration\n"
  39506. " (config\n"
  39507. " (httpd-config-file\n"
  39508. " (modules (cons*\n"
  39509. " (httpd-module\n"
  39510. " (name \"proxy_module\")\n"
  39511. " (file \"modules/mod_proxy.so\"))\n"
  39512. " (httpd-module\n"
  39513. " (name \"proxy_fcgi_module\")\n"
  39514. " (file \"modules/mod_proxy_fcgi.so\"))\n"
  39515. " %default-httpd-modules))\n"
  39516. " (extra-config (list \"\\\n"
  39517. "<FilesMatch \\\\.php$>\n"
  39518. " SetHandler \\\"proxy:unix:/var/run/php-fpm.sock|fcgi://localhost/\\\"\n"
  39519. "</FilesMatch>\"))))))\n"
  39520. "(service php-fpm-service-type\n"
  39521. " (php-fpm-configuration\n"
  39522. " (socket \"/var/run/php-fpm.sock\")\n"
  39523. " (socket-group \"httpd\")))\n"
  39524. msgstr ""
  39525. #. type: item
  39526. #: guix-git/doc/guix.texi:26660
  39527. #, no-wrap
  39528. msgid "@code{server-root} (default: @code{httpd})"
  39529. msgstr ""
  39530. #. type: table
  39531. #: guix-git/doc/guix.texi:26664
  39532. 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."
  39533. msgstr ""
  39534. #. type: item
  39535. #: guix-git/doc/guix.texi:26665
  39536. #, no-wrap
  39537. msgid "@code{server-name} (default: @code{#f})"
  39538. msgstr ""
  39539. #. type: table
  39540. #: guix-git/doc/guix.texi:26669
  39541. msgid "The @code{ServerName} in the configuration file, used to specify the request scheme, hostname and port that the server uses to identify itself."
  39542. msgstr ""
  39543. #. type: table
  39544. #: guix-git/doc/guix.texi:26673
  39545. 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}."
  39546. msgstr ""
  39547. #. type: item
  39548. #: guix-git/doc/guix.texi:26674
  39549. #, no-wrap
  39550. msgid "@code{document-root} (default: @code{\"/srv/http\"})"
  39551. msgstr ""
  39552. #. type: table
  39553. #: guix-git/doc/guix.texi:26676
  39554. msgid "The @code{DocumentRoot} from which files will be served."
  39555. msgstr ""
  39556. #. type: item
  39557. #: guix-git/doc/guix.texi:26677
  39558. #, no-wrap
  39559. msgid "@code{listen} (default: @code{'(\"80\")})"
  39560. msgstr ""
  39561. #. type: table
  39562. #: guix-git/doc/guix.texi:26682
  39563. 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."
  39564. msgstr ""
  39565. #. type: table
  39566. #: guix-git/doc/guix.texi:26687
  39567. 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."
  39568. msgstr ""
  39569. #. type: item
  39570. #: guix-git/doc/guix.texi:26688
  39571. #, no-wrap
  39572. msgid "@code{error-log} (default: @code{\"/var/log/httpd/error_log\"})"
  39573. msgstr ""
  39574. #. type: table
  39575. #: guix-git/doc/guix.texi:26690
  39576. msgid "The @code{ErrorLog} to which the server will log errors."
  39577. msgstr ""
  39578. #. type: item
  39579. #: guix-git/doc/guix.texi:26691 guix-git/doc/guix.texi:27254
  39580. #, no-wrap
  39581. msgid "@code{user} (default: @code{\"httpd\"})"
  39582. msgstr ""
  39583. #. type: table
  39584. #: guix-git/doc/guix.texi:26693
  39585. msgid "The @code{User} which the server will answer requests as."
  39586. msgstr ""
  39587. #. type: item
  39588. #: guix-git/doc/guix.texi:26694
  39589. #, no-wrap
  39590. msgid "@code{group} (default: @code{\"httpd\"})"
  39591. msgstr ""
  39592. #. type: table
  39593. #: guix-git/doc/guix.texi:26696
  39594. msgid "The @code{Group} which the server will answer requests as."
  39595. msgstr ""
  39596. #. type: item
  39597. #: guix-git/doc/guix.texi:26697
  39598. #, no-wrap
  39599. msgid "@code{extra-config} (default: @code{(list \"TypesConfig etc/httpd/mime.types\")})"
  39600. msgstr ""
  39601. #. type: table
  39602. #: guix-git/doc/guix.texi:26700
  39603. msgid "A flat list of strings and G-expressions which will be added to the end of the configuration file."
  39604. msgstr ""
  39605. #. type: table
  39606. #: guix-git/doc/guix.texi:26703
  39607. msgid "Any values which the service is extended with will be appended to this list."
  39608. msgstr ""
  39609. #. type: deffn
  39610. #: guix-git/doc/guix.texi:26707
  39611. #, no-wrap
  39612. msgid "{Data Type} httpd-virtualhost"
  39613. msgstr ""
  39614. #. type: deffn
  39615. #: guix-git/doc/guix.texi:26709
  39616. msgid "This data type represents a virtualhost configuration block for the httpd service."
  39617. msgstr ""
  39618. #. type: deffn
  39619. #: guix-git/doc/guix.texi:26711
  39620. msgid "These should be added to the extra-config for the httpd-service."
  39621. msgstr ""
  39622. #. type: code{#1}
  39623. #: guix-git/doc/guix.texi:26723
  39624. #, no-wrap
  39625. msgid "addresses-and-ports"
  39626. msgstr ""
  39627. #. type: table
  39628. #: guix-git/doc/guix.texi:26725
  39629. msgid "The addresses and ports for the @code{VirtualHost} directive."
  39630. msgstr ""
  39631. #. type: code{#1}
  39632. #: guix-git/doc/guix.texi:26726
  39633. #, no-wrap
  39634. msgid "contents"
  39635. msgstr ""
  39636. #. type: table
  39637. #: guix-git/doc/guix.texi:26729
  39638. msgid "The contents of the @code{VirtualHost} directive, this should be a list of strings and G-expressions."
  39639. msgstr ""
  39640. #. type: subsubheading
  39641. #: guix-git/doc/guix.texi:26734
  39642. #, no-wrap
  39643. msgid "NGINX"
  39644. msgstr ""
  39645. #. type: deffn
  39646. #: guix-git/doc/guix.texi:26736
  39647. #, no-wrap
  39648. msgid "{Scheme Variable} nginx-service-type"
  39649. msgstr ""
  39650. #. type: deffn
  39651. #: guix-git/doc/guix.texi:26739
  39652. msgid "Service type for the @uref{https://nginx.org/,NGinx} web server. The value for this service type is a @code{<nginx-configuration>} record."
  39653. msgstr ""
  39654. #. type: lisp
  39655. #: guix-git/doc/guix.texi:26749 guix-git/doc/guix.texi:26803
  39656. #, no-wrap
  39657. msgid ""
  39658. "(service nginx-service-type\n"
  39659. " (nginx-configuration\n"
  39660. " (server-blocks\n"
  39661. " (list (nginx-server-configuration\n"
  39662. " (server-name '(\"www.example.com\"))\n"
  39663. " (root \"/srv/http/www.example.com\"))))))\n"
  39664. msgstr ""
  39665. #. type: deffn
  39666. #: guix-git/doc/guix.texi:26754
  39667. 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:"
  39668. msgstr ""
  39669. #. type: lisp
  39670. #: guix-git/doc/guix.texi:26760
  39671. #, no-wrap
  39672. msgid ""
  39673. "(simple-service 'my-extra-server nginx-service-type\n"
  39674. " (list (nginx-server-configuration\n"
  39675. " (root \"/srv/http/extra-website\")\n"
  39676. " (try-files (list \"$uri\" \"$uri/index.html\")))))\n"
  39677. msgstr ""
  39678. #. type: Plain text
  39679. #: guix-git/doc/guix.texi:26771
  39680. 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."
  39681. msgstr ""
  39682. #. type: deffn
  39683. #: guix-git/doc/guix.texi:26772
  39684. #, no-wrap
  39685. msgid "{Data Type} nginx-configuration"
  39686. msgstr ""
  39687. #. type: deffn
  39688. #: guix-git/doc/guix.texi:26776
  39689. 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."
  39690. msgstr ""
  39691. #. type: item
  39692. #: guix-git/doc/guix.texi:26778
  39693. #, no-wrap
  39694. msgid "@code{nginx} (default: @code{nginx})"
  39695. msgstr ""
  39696. #. type: table
  39697. #: guix-git/doc/guix.texi:26780
  39698. msgid "The nginx package to use."
  39699. msgstr ""
  39700. #. type: item
  39701. #: guix-git/doc/guix.texi:26781
  39702. #, no-wrap
  39703. msgid "@code{log-directory} (default: @code{\"/var/log/nginx\"})"
  39704. msgstr ""
  39705. #. type: table
  39706. #: guix-git/doc/guix.texi:26783
  39707. msgid "The directory to which NGinx will write log files."
  39708. msgstr ""
  39709. #. type: item
  39710. #: guix-git/doc/guix.texi:26784
  39711. #, no-wrap
  39712. msgid "@code{run-directory} (default: @code{\"/var/run/nginx\"})"
  39713. msgstr ""
  39714. #. type: table
  39715. #: guix-git/doc/guix.texi:26787
  39716. msgid "The directory in which NGinx will create a pid file, and write temporary files."
  39717. msgstr ""
  39718. #. type: item
  39719. #: guix-git/doc/guix.texi:26788
  39720. #, no-wrap
  39721. msgid "@code{server-blocks} (default: @code{'()})"
  39722. msgstr ""
  39723. #. type: table
  39724. #: guix-git/doc/guix.texi:26792
  39725. msgid "A list of @dfn{server blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-server-configuration>}."
  39726. msgstr ""
  39727. #. type: table
  39728. #: guix-git/doc/guix.texi:26796
  39729. 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."
  39730. msgstr ""
  39731. #. type: item
  39732. #: guix-git/doc/guix.texi:26805
  39733. #, no-wrap
  39734. msgid "@code{upstream-blocks} (default: @code{'()})"
  39735. msgstr ""
  39736. #. type: table
  39737. #: guix-git/doc/guix.texi:26809
  39738. msgid "A list of @dfn{upstream blocks} to create in the generated configuration file, the elements should be of type @code{<nginx-upstream-configuration>}."
  39739. msgstr ""
  39740. #. type: table
  39741. #: guix-git/doc/guix.texi:26816
  39742. 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."
  39743. msgstr ""
  39744. #. type: lisp
  39745. #: guix-git/doc/guix.texi:26835
  39746. #, no-wrap
  39747. msgid ""
  39748. "(service\n"
  39749. " nginx-service-type\n"
  39750. " (nginx-configuration\n"
  39751. " (server-blocks\n"
  39752. " (list (nginx-server-configuration\n"
  39753. " (server-name '(\"www.example.com\"))\n"
  39754. " (root \"/srv/http/www.example.com\")\n"
  39755. " (locations\n"
  39756. " (list\n"
  39757. " (nginx-location-configuration\n"
  39758. " (uri \"/path1\")\n"
  39759. " (body '(\"proxy_pass http://server-proxy;\"))))))))\n"
  39760. " (upstream-blocks\n"
  39761. " (list (nginx-upstream-configuration\n"
  39762. " (name \"server-proxy\")\n"
  39763. " (servers (list \"server1.example.com\"\n"
  39764. " \"server2.example.com\")))))))\n"
  39765. msgstr ""
  39766. #. type: table
  39767. #: guix-git/doc/guix.texi:26843
  39768. 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."
  39769. msgstr ""
  39770. #. type: table
  39771. #: guix-git/doc/guix.texi:26847
  39772. 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."
  39773. msgstr ""
  39774. #. type: item
  39775. #: guix-git/doc/guix.texi:26848
  39776. #, no-wrap
  39777. msgid "@code{server-names-hash-bucket-size} (default: @code{#f})"
  39778. msgstr ""
  39779. #. type: table
  39780. #: guix-git/doc/guix.texi:26851
  39781. msgid "Bucket size for the server names hash tables, defaults to @code{#f} to use the size of the processors cache line."
  39782. msgstr ""
  39783. #. type: item
  39784. #: guix-git/doc/guix.texi:26852
  39785. #, no-wrap
  39786. msgid "@code{server-names-hash-bucket-max-size} (default: @code{#f})"
  39787. msgstr ""
  39788. #. type: table
  39789. #: guix-git/doc/guix.texi:26854
  39790. msgid "Maximum bucket size for the server names hash tables."
  39791. msgstr ""
  39792. #. type: table
  39793. #: guix-git/doc/guix.texi:26858
  39794. msgid "List of nginx dynamic modules to load. This should be a list of file names of loadable modules, as in this example:"
  39795. msgstr ""
  39796. #. type: lisp
  39797. #: guix-git/doc/guix.texi:26866
  39798. #, no-wrap
  39799. msgid ""
  39800. "(modules\n"
  39801. " (list\n"
  39802. " (file-append nginx-accept-language-module \"\\\n"
  39803. "/etc/nginx/modules/ngx_http_accept_language_module.so\")\n"
  39804. " (file-append nginx-lua-module \"\\\n"
  39805. "/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  39806. msgstr ""
  39807. #. type: item
  39808. #: guix-git/doc/guix.texi:26868
  39809. #, fuzzy, no-wrap
  39810. msgid "@code{lua-package-path} (default: @code{'()})"
  39811. msgstr "@code{features} (@code{'()})"
  39812. #. type: table
  39813. #: guix-git/doc/guix.texi:26871
  39814. msgid "List of nginx lua packages to load. This should be a list of package names of loadable lua modules, as in this example:"
  39815. msgstr ""
  39816. #. type: lisp
  39817. #: guix-git/doc/guix.texi:26878
  39818. #, no-wrap
  39819. msgid ""
  39820. "(lua-package-path (list lua-resty-core\n"
  39821. " lua-resty-lrucache\n"
  39822. " lua-resty-signal\n"
  39823. " lua-tablepool\n"
  39824. " lua-resty-shell))\n"
  39825. msgstr ""
  39826. #. type: item
  39827. #: guix-git/doc/guix.texi:26880
  39828. #, fuzzy, no-wrap
  39829. msgid "@code{lua-package-cpath} (default: @code{'()})"
  39830. msgstr "@code{features} (@code{'()})"
  39831. #. type: table
  39832. #: guix-git/doc/guix.texi:26883
  39833. 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:"
  39834. msgstr ""
  39835. #. type: lisp
  39836. #: guix-git/doc/guix.texi:26886
  39837. #, no-wrap
  39838. msgid "(lua-package-cpath (list lua-resty-signal))\n"
  39839. msgstr ""
  39840. #. type: item
  39841. #: guix-git/doc/guix.texi:26888
  39842. #, fuzzy, no-wrap
  39843. msgid "@code{global-directives} (default: @code{'((events . ()))})"
  39844. msgstr "@code{features} (@code{'()})"
  39845. #. type: table
  39846. #: guix-git/doc/guix.texi:26891
  39847. msgid "Association list of global directives for the top level of the nginx configuration. Values may themselves be association lists."
  39848. msgstr ""
  39849. #. type: lisp
  39850. #: guix-git/doc/guix.texi:26897
  39851. #, no-wrap
  39852. msgid ""
  39853. "(global-directives\n"
  39854. " `((worker_processes . 16)\n"
  39855. " (pcre_jit . on)\n"
  39856. " (events . ((worker_connections . 1024)))))\n"
  39857. msgstr ""
  39858. #. type: table
  39859. #: guix-git/doc/guix.texi:26902
  39860. msgid "Extra content for the @code{http} block. Should be string or a string valued G-expression."
  39861. msgstr ""
  39862. #. type: anchor{#1}
  39863. #: guix-git/doc/guix.texi:26907
  39864. #, fuzzy
  39865. msgid "nginx-server-configuration"
  39866. msgstr "{数据类型} build-machine"
  39867. #. type: deftp
  39868. #: guix-git/doc/guix.texi:26907
  39869. #, no-wrap
  39870. msgid "{Data Type} nginx-server-configuration"
  39871. msgstr ""
  39872. #. type: deftp
  39873. #: guix-git/doc/guix.texi:26910
  39874. msgid "Data type representing the configuration of an nginx server block. This type has the following parameters:"
  39875. msgstr ""
  39876. #. type: item
  39877. #: guix-git/doc/guix.texi:26912
  39878. #, no-wrap
  39879. msgid "@code{listen} (default: @code{'(\"80\" \"443 ssl\")})"
  39880. msgstr ""
  39881. #. type: table
  39882. #: guix-git/doc/guix.texi:26917
  39883. 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:"
  39884. msgstr ""
  39885. #. type: lisp
  39886. #: guix-git/doc/guix.texi:26920
  39887. #, no-wrap
  39888. msgid "'(\"127.0.0.1:8000\" \"127.0.0.1\" \"8000\" \"*:8000\" \"localhost:8000\")\n"
  39889. msgstr ""
  39890. #. type: item
  39891. #: guix-git/doc/guix.texi:26922
  39892. #, no-wrap
  39893. msgid "@code{server-name} (default: @code{(list 'default)})"
  39894. msgstr ""
  39895. #. type: table
  39896. #: guix-git/doc/guix.texi:26925
  39897. msgid "A list of server names this server represents. @code{'default} represents the default server for connections matching no other server."
  39898. msgstr ""
  39899. #. type: item
  39900. #: guix-git/doc/guix.texi:26926
  39901. #, no-wrap
  39902. msgid "@code{root} (default: @code{\"/srv/http\"})"
  39903. msgstr ""
  39904. #. type: table
  39905. #: guix-git/doc/guix.texi:26928
  39906. msgid "Root of the website nginx will serve."
  39907. msgstr ""
  39908. #. type: item
  39909. #: guix-git/doc/guix.texi:26929
  39910. #, no-wrap
  39911. msgid "@code{locations} (default: @code{'()})"
  39912. msgstr ""
  39913. #. type: table
  39914. #: guix-git/doc/guix.texi:26933
  39915. msgid "A list of @dfn{nginx-location-configuration} or @dfn{nginx-named-location-configuration} records to use within this server block."
  39916. msgstr ""
  39917. #. type: item
  39918. #: guix-git/doc/guix.texi:26934
  39919. #, no-wrap
  39920. msgid "@code{index} (default: @code{(list \"index.html\")})"
  39921. msgstr ""
  39922. #. type: table
  39923. #: guix-git/doc/guix.texi:26937
  39924. 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."
  39925. msgstr ""
  39926. #. type: item
  39927. #: guix-git/doc/guix.texi:26938
  39928. #, no-wrap
  39929. msgid "@code{try-files} (default: @code{'()})"
  39930. msgstr ""
  39931. #. type: table
  39932. #: guix-git/doc/guix.texi:26941
  39933. 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."
  39934. msgstr ""
  39935. #. type: item
  39936. #: guix-git/doc/guix.texi:26942
  39937. #, no-wrap
  39938. msgid "@code{ssl-certificate} (default: @code{#f})"
  39939. msgstr ""
  39940. #. type: table
  39941. #: guix-git/doc/guix.texi:26945
  39942. 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."
  39943. msgstr ""
  39944. #. type: item
  39945. #: guix-git/doc/guix.texi:26946
  39946. #, no-wrap
  39947. msgid "@code{ssl-certificate-key} (default: @code{#f})"
  39948. msgstr ""
  39949. #. type: table
  39950. #: guix-git/doc/guix.texi:26949
  39951. 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."
  39952. msgstr ""
  39953. #. type: item
  39954. #: guix-git/doc/guix.texi:26950
  39955. #, no-wrap
  39956. msgid "@code{server-tokens?} (default: @code{#f})"
  39957. msgstr ""
  39958. #. type: table
  39959. #: guix-git/doc/guix.texi:26952
  39960. msgid "Whether the server should add its configuration to response."
  39961. msgstr ""
  39962. #. type: item
  39963. #: guix-git/doc/guix.texi:26953
  39964. #, no-wrap
  39965. msgid "@code{raw-content} (default: @code{'()})"
  39966. msgstr ""
  39967. #. type: table
  39968. #: guix-git/doc/guix.texi:26955
  39969. msgid "A list of raw lines added to the server block."
  39970. msgstr ""
  39971. #. type: deftp
  39972. #: guix-git/doc/guix.texi:26959
  39973. #, no-wrap
  39974. msgid "{Data Type} nginx-upstream-configuration"
  39975. msgstr ""
  39976. #. type: deftp
  39977. #: guix-git/doc/guix.texi:26962
  39978. msgid "Data type representing the configuration of an nginx @code{upstream} block. This type has the following parameters:"
  39979. msgstr ""
  39980. #. type: table
  39981. #: guix-git/doc/guix.texi:26966
  39982. msgid "Name for this group of servers."
  39983. msgstr ""
  39984. #. type: code{#1}
  39985. #: guix-git/doc/guix.texi:26967
  39986. #, no-wrap
  39987. msgid "servers"
  39988. msgstr ""
  39989. #. type: table
  39990. #: guix-git/doc/guix.texi:26974
  39991. 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."
  39992. msgstr ""
  39993. #. type: deftp
  39994. #: guix-git/doc/guix.texi:26978
  39995. #, no-wrap
  39996. msgid "{Data Type} nginx-location-configuration"
  39997. msgstr ""
  39998. #. type: deftp
  39999. #: guix-git/doc/guix.texi:26981
  40000. msgid "Data type representing the configuration of an nginx @code{location} block. This type has the following parameters:"
  40001. msgstr ""
  40002. #. type: table
  40003. #: guix-git/doc/guix.texi:26985
  40004. msgid "URI which this location block matches."
  40005. msgstr ""
  40006. #. type: anchor{#1}
  40007. #: guix-git/doc/guix.texi:26987
  40008. msgid "nginx-location-configuration body"
  40009. msgstr ""
  40010. #. type: code{#1}
  40011. #: guix-git/doc/guix.texi:26987 guix-git/doc/guix.texi:27008
  40012. #, no-wrap
  40013. msgid "body"
  40014. msgstr ""
  40015. #. type: table
  40016. #: guix-git/doc/guix.texi:26994
  40017. 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;\")}."
  40018. msgstr ""
  40019. #. type: deftp
  40020. #: guix-git/doc/guix.texi:26998
  40021. #, no-wrap
  40022. msgid "{Data Type} nginx-named-location-configuration"
  40023. msgstr ""
  40024. #. type: deftp
  40025. #: guix-git/doc/guix.texi:27003
  40026. 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:"
  40027. msgstr ""
  40028. #. type: table
  40029. #: guix-git/doc/guix.texi:27007
  40030. msgid "Name to identify this location block."
  40031. msgstr ""
  40032. #. type: table
  40033. #: guix-git/doc/guix.texi:27013
  40034. 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."
  40035. msgstr ""
  40036. #. type: subsubheading
  40037. #: guix-git/doc/guix.texi:27017
  40038. #, no-wrap
  40039. msgid "Varnish Cache"
  40040. msgstr ""
  40041. #. type: cindex
  40042. #: guix-git/doc/guix.texi:27018
  40043. #, no-wrap
  40044. msgid "Varnish"
  40045. msgstr ""
  40046. #. type: Plain text
  40047. #: guix-git/doc/guix.texi:27023
  40048. 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."
  40049. msgstr ""
  40050. #. type: defvr
  40051. #: guix-git/doc/guix.texi:27024
  40052. #, no-wrap
  40053. msgid "{Scheme Variable} varnish-service-type"
  40054. msgstr ""
  40055. #. type: defvr
  40056. #: guix-git/doc/guix.texi:27026
  40057. msgid "Service type for the Varnish daemon."
  40058. msgstr ""
  40059. #. type: deftp
  40060. #: guix-git/doc/guix.texi:27028
  40061. #, no-wrap
  40062. msgid "{Data Type} varnish-configuration"
  40063. msgstr ""
  40064. #. type: deftp
  40065. #: guix-git/doc/guix.texi:27031
  40066. msgid "Data type representing the @code{varnish} service configuration. This type has the following parameters:"
  40067. msgstr ""
  40068. #. type: item
  40069. #: guix-git/doc/guix.texi:27033
  40070. #, no-wrap
  40071. msgid "@code{package} (default: @code{varnish})"
  40072. msgstr ""
  40073. #. type: table
  40074. #: guix-git/doc/guix.texi:27035
  40075. msgid "The Varnish package to use."
  40076. msgstr ""
  40077. #. type: item
  40078. #: guix-git/doc/guix.texi:27036
  40079. #, no-wrap
  40080. msgid "@code{name} (default: @code{\"default\"})"
  40081. msgstr ""
  40082. #. type: table
  40083. #: guix-git/doc/guix.texi:27041
  40084. 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."
  40085. msgstr ""
  40086. #. type: table
  40087. #: guix-git/doc/guix.texi:27044
  40088. msgid "Pass the @code{-n} argument to other Varnish programs to connect to the named instance, e.g.@: @command{varnishncsa -n default}."
  40089. msgstr ""
  40090. #. type: item
  40091. #: guix-git/doc/guix.texi:27045
  40092. #, no-wrap
  40093. msgid "@code{backend} (default: @code{\"localhost:8080\"})"
  40094. msgstr ""
  40095. #. type: table
  40096. #: guix-git/doc/guix.texi:27047
  40097. msgid "The backend to use. This option has no effect if @code{vcl} is set."
  40098. msgstr ""
  40099. #. type: item
  40100. #: guix-git/doc/guix.texi:27048
  40101. #, no-wrap
  40102. msgid "@code{vcl} (default: #f)"
  40103. msgstr ""
  40104. #. type: table
  40105. #: guix-git/doc/guix.texi:27053
  40106. 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."
  40107. msgstr ""
  40108. #. type: table
  40109. #: guix-git/doc/guix.texi:27057
  40110. msgid "For example, to mirror @url{https://www.gnu.org,www.gnu.org} with VCL you can do something along these lines:"
  40111. msgstr ""
  40112. #. type: lisp
  40113. #: guix-git/doc/guix.texi:27063
  40114. #, no-wrap
  40115. msgid ""
  40116. "(define %gnu-mirror\n"
  40117. " (plain-file \"gnu.vcl\"\n"
  40118. " \"vcl 4.1;\n"
  40119. "backend gnu @{ .host = \\\"www.gnu.org\\\"; @}\"))\n"
  40120. "\n"
  40121. msgstr ""
  40122. #. type: lisp
  40123. #: guix-git/doc/guix.texi:27071
  40124. #, no-wrap
  40125. msgid ""
  40126. "(operating-system\n"
  40127. " ;; @dots{}\n"
  40128. " (services (cons (service varnish-service-type\n"
  40129. " (varnish-configuration\n"
  40130. " (listen '(\":80\"))\n"
  40131. " (vcl %gnu-mirror)))\n"
  40132. " %base-services)))\n"
  40133. msgstr ""
  40134. #. type: table
  40135. #: guix-git/doc/guix.texi:27075
  40136. msgid "The configuration of an already running Varnish instance can be inspected and changed using the @command{varnishadm} program."
  40137. msgstr ""
  40138. #. type: table
  40139. #: guix-git/doc/guix.texi:27079
  40140. 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."
  40141. msgstr ""
  40142. #. type: item
  40143. #: guix-git/doc/guix.texi:27080
  40144. #, no-wrap
  40145. msgid "@code{listen} (default: @code{'(\"localhost:80\")})"
  40146. msgstr ""
  40147. #. type: table
  40148. #: guix-git/doc/guix.texi:27082
  40149. msgid "List of addresses Varnish will listen on."
  40150. msgstr ""
  40151. #. type: item
  40152. #: guix-git/doc/guix.texi:27083
  40153. #, no-wrap
  40154. msgid "@code{storage} (default: @code{'(\"malloc,128m\")})"
  40155. msgstr ""
  40156. #. type: table
  40157. #: guix-git/doc/guix.texi:27085
  40158. msgid "List of storage backends that will be available in VCL."
  40159. msgstr ""
  40160. #. type: item
  40161. #: guix-git/doc/guix.texi:27086
  40162. #, no-wrap
  40163. msgid "@code{parameters} (default: @code{'()})"
  40164. msgstr ""
  40165. #. type: table
  40166. #: guix-git/doc/guix.texi:27088
  40167. msgid "List of run-time parameters in the form @code{'((\"parameter\" . \"value\"))}."
  40168. msgstr ""
  40169. #. type: table
  40170. #: guix-git/doc/guix.texi:27091
  40171. msgid "Additional arguments to pass to the @command{varnishd} process."
  40172. msgstr ""
  40173. #. type: cindex
  40174. #: guix-git/doc/guix.texi:27095 guix-git/doc/guix.texi:27096
  40175. #, no-wrap
  40176. msgid "Patchwork"
  40177. msgstr ""
  40178. #. type: Plain text
  40179. #: guix-git/doc/guix.texi:27099
  40180. msgid "Patchwork is a patch tracking system. It can collect patches sent to a mailing list, and display them in a web interface."
  40181. msgstr ""
  40182. #. type: defvr
  40183. #: guix-git/doc/guix.texi:27100
  40184. #, no-wrap
  40185. msgid "{Scheme Variable} patchwork-service-type"
  40186. msgstr ""
  40187. #. type: defvr
  40188. #: guix-git/doc/guix.texi:27102
  40189. #, fuzzy
  40190. msgid "Service type for Patchwork."
  40191. msgstr "分享你的工作。"
  40192. #. type: Plain text
  40193. #: guix-git/doc/guix.texi:27106
  40194. msgid "The following example is an example of a minimal service for Patchwork, for the @code{patchwork.example.com} domain."
  40195. msgstr ""
  40196. #. type: lisp
  40197. #: guix-git/doc/guix.texi:27126
  40198. #, no-wrap
  40199. msgid ""
  40200. "(service patchwork-service-type\n"
  40201. " (patchwork-configuration\n"
  40202. " (domain \"patchwork.example.com\")\n"
  40203. " (settings-module\n"
  40204. " (patchwork-settings-module\n"
  40205. " (allowed-hosts (list domain))\n"
  40206. " (default-from-email \"patchwork@@patchwork.example.com\")))\n"
  40207. " (getmail-retriever-config\n"
  40208. " (getmail-retriever-configuration\n"
  40209. " (type \"SimpleIMAPSSLRetriever\")\n"
  40210. " (server \"imap.example.com\")\n"
  40211. " (port 993)\n"
  40212. " (username \"patchwork\")\n"
  40213. " (password-command\n"
  40214. " (list (file-append coreutils \"/bin/cat\")\n"
  40215. " \"/etc/getmail-patchwork-imap-password\"))\n"
  40216. " (extra-parameters\n"
  40217. " '((mailboxes . (\"Patches\"))))))))\n"
  40218. "\n"
  40219. msgstr ""
  40220. #. type: Plain text
  40221. #: guix-git/doc/guix.texi:27132
  40222. msgid "There are three records for configuring the Patchwork service. The @code{<patchwork-configuration>} relates to the configuration for Patchwork within the HTTPD service."
  40223. msgstr ""
  40224. #. type: Plain text
  40225. #: guix-git/doc/guix.texi:27136
  40226. 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."
  40227. msgstr ""
  40228. #. type: Plain text
  40229. #: guix-git/doc/guix.texi:27140
  40230. msgid "For the @code{database-configuration} field within the @code{<patchwork-settings-module>}, the @code{<patchwork-database-configuration>} must be used."
  40231. msgstr ""
  40232. #. type: deftp
  40233. #: guix-git/doc/guix.texi:27141
  40234. #, no-wrap
  40235. msgid "{Data Type} patchwork-configuration"
  40236. msgstr ""
  40237. #. type: deftp
  40238. #: guix-git/doc/guix.texi:27144
  40239. msgid "Data type representing the Patchwork service configuration. This type has the following parameters:"
  40240. msgstr ""
  40241. #. type: item
  40242. #: guix-git/doc/guix.texi:27146
  40243. #, fuzzy, no-wrap
  40244. msgid "@code{patchwork} (default: @code{patchwork})"
  40245. msgstr "@code{mate}(默认值:@code{mate})"
  40246. #. type: table
  40247. #: guix-git/doc/guix.texi:27148
  40248. #, fuzzy
  40249. msgid "The Patchwork package to use."
  40250. msgstr "软件包数据类型。"
  40251. #. type: code{#1}
  40252. #: guix-git/doc/guix.texi:27149
  40253. #, no-wrap
  40254. msgid "domain"
  40255. msgstr ""
  40256. #. type: table
  40257. #: guix-git/doc/guix.texi:27152
  40258. msgid "The domain to use for Patchwork, this is used in the HTTPD service virtual host."
  40259. msgstr ""
  40260. #. type: code{#1}
  40261. #: guix-git/doc/guix.texi:27153
  40262. #, no-wrap
  40263. msgid "settings-module"
  40264. msgstr ""
  40265. #. type: table
  40266. #: guix-git/doc/guix.texi:27159
  40267. 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."
  40268. msgstr ""
  40269. #. type: item
  40270. #: guix-git/doc/guix.texi:27160
  40271. #, fuzzy, no-wrap
  40272. msgid "@code{static-path} (default: @code{\"/static/\"})"
  40273. msgstr "@code{mate}(默认值:@code{mate})"
  40274. #. type: table
  40275. #: guix-git/doc/guix.texi:27162
  40276. msgid "The path under which the HTTPD service should serve the static files."
  40277. msgstr ""
  40278. #. type: code{#1}
  40279. #: guix-git/doc/guix.texi:27163
  40280. #, no-wrap
  40281. msgid "getmail-retriever-config"
  40282. msgstr ""
  40283. #. type: table
  40284. #: guix-git/doc/guix.texi:27167
  40285. 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."
  40286. msgstr ""
  40287. #. type: deftp
  40288. #: guix-git/doc/guix.texi:27171
  40289. #, no-wrap
  40290. msgid "{Data Type} patchwork-settings-module"
  40291. msgstr ""
  40292. #. type: deftp
  40293. #: guix-git/doc/guix.texi:27176
  40294. 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:"
  40295. msgstr ""
  40296. #. type: item
  40297. #: guix-git/doc/guix.texi:27178
  40298. #, no-wrap
  40299. msgid "@code{database-configuration} (default: @code{(patchwork-database-configuration)})"
  40300. msgstr ""
  40301. #. type: table
  40302. #: guix-git/doc/guix.texi:27181
  40303. msgid "The database connection settings used for Patchwork. See the @code{<patchwork-database-configuration>} record type for more information."
  40304. msgstr ""
  40305. #. type: item
  40306. #: guix-git/doc/guix.texi:27182
  40307. #, fuzzy, no-wrap
  40308. msgid "@code{secret-key-file} (default: @code{\"/etc/patchwork/django-secret-key\"})"
  40309. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  40310. #. type: table
  40311. #: guix-git/doc/guix.texi:27185
  40312. msgid "Patchwork, as a Django web application uses a secret key for cryptographically signing values. This file should contain a unique unpredictable value."
  40313. msgstr ""
  40314. #. type: table
  40315. #: guix-git/doc/guix.texi:27188
  40316. msgid "If this file does not exist, it will be created and populated with a random value by the patchwork-setup shepherd service."
  40317. msgstr ""
  40318. #. type: table
  40319. #: guix-git/doc/guix.texi:27190
  40320. msgid "This setting relates to Django."
  40321. msgstr ""
  40322. #. type: code{#1}
  40323. #: guix-git/doc/guix.texi:27191
  40324. #, no-wrap
  40325. msgid "allowed-hosts"
  40326. msgstr ""
  40327. #. type: table
  40328. #: guix-git/doc/guix.texi:27194
  40329. msgid "A list of valid hosts for this Patchwork service. This should at least include the domain specified in the @code{<patchwork-configuration>} record."
  40330. msgstr ""
  40331. #. type: table
  40332. #: guix-git/doc/guix.texi:27196 guix-git/doc/guix.texi:27210
  40333. #: guix-git/doc/guix.texi:27216 guix-git/doc/guix.texi:27222
  40334. msgid "This is a Django setting."
  40335. msgstr ""
  40336. #. type: code{#1}
  40337. #: guix-git/doc/guix.texi:27197
  40338. #, no-wrap
  40339. msgid "default-from-email"
  40340. msgstr ""
  40341. #. type: table
  40342. #: guix-git/doc/guix.texi:27199
  40343. msgid "The email address from which Patchwork should send email by default."
  40344. msgstr ""
  40345. #. type: table
  40346. #: guix-git/doc/guix.texi:27201 guix-git/doc/guix.texi:27227
  40347. #: guix-git/doc/guix.texi:27232 guix-git/doc/guix.texi:27237
  40348. msgid "This is a Patchwork setting."
  40349. msgstr ""
  40350. #. type: item
  40351. #: guix-git/doc/guix.texi:27202
  40352. #, fuzzy, no-wrap
  40353. msgid "@code{static-url} (default: @code{#f})"
  40354. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  40355. #. type: table
  40356. #: guix-git/doc/guix.texi:27205
  40357. 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{/}."
  40358. msgstr ""
  40359. #. type: table
  40360. #: guix-git/doc/guix.texi:27208
  40361. msgid "If the default value is used, the @code{static-path} value from the @code{<patchwork-configuration>} record will be used."
  40362. msgstr ""
  40363. #. type: item
  40364. #: guix-git/doc/guix.texi:27211
  40365. #, fuzzy, no-wrap
  40366. msgid "@code{admins} (default: @code{'()})"
  40367. msgstr "@code{includes}(默认值:@code{'()})"
  40368. #. type: table
  40369. #: guix-git/doc/guix.texi:27214
  40370. 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."
  40371. msgstr ""
  40372. #. type: table
  40373. #: guix-git/doc/guix.texi:27220
  40374. msgid "Whether to run Patchwork in debug mode. If set to @code{#t}, detailed error messages will be shown."
  40375. msgstr ""
  40376. #. type: item
  40377. #: guix-git/doc/guix.texi:27223
  40378. #, fuzzy, no-wrap
  40379. msgid "@code{enable-rest-api?} (default: @code{#t})"
  40380. msgstr "@code{challenge}(默认值:@code{#f})"
  40381. #. type: table
  40382. #: guix-git/doc/guix.texi:27225
  40383. msgid "Whether to enable the Patchwork REST API."
  40384. msgstr ""
  40385. #. type: item
  40386. #: guix-git/doc/guix.texi:27228
  40387. #, fuzzy, no-wrap
  40388. msgid "@code{enable-xmlrpc?} (default: @code{#t})"
  40389. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40390. #. type: table
  40391. #: guix-git/doc/guix.texi:27230
  40392. msgid "Whether to enable the XML RPC API."
  40393. msgstr ""
  40394. #. type: item
  40395. #: guix-git/doc/guix.texi:27233
  40396. #, fuzzy, no-wrap
  40397. msgid "@code{force-https-links?} (default: @code{#t})"
  40398. msgstr "@code{challenge}(默认值:@code{#f})"
  40399. #. type: table
  40400. #: guix-git/doc/guix.texi:27235
  40401. msgid "Whether to use HTTPS links on Patchwork pages."
  40402. msgstr ""
  40403. #. type: table
  40404. #: guix-git/doc/guix.texi:27240
  40405. msgid "Extra code to place at the end of the Patchwork settings module."
  40406. msgstr ""
  40407. #. type: deftp
  40408. #: guix-git/doc/guix.texi:27244
  40409. #, no-wrap
  40410. msgid "{Data Type} patchwork-database-configuration"
  40411. msgstr ""
  40412. #. type: deftp
  40413. #: guix-git/doc/guix.texi:27246
  40414. msgid "Data type representing the database configuration for Patchwork."
  40415. msgstr ""
  40416. #. type: item
  40417. #: guix-git/doc/guix.texi:27248
  40418. #, fuzzy, no-wrap
  40419. msgid "@code{engine} (default: @code{\"django.db.backends.postgresql_psycopg2\"})"
  40420. msgstr "@code{gnome}(默认值:@code{gnome})"
  40421. #. type: table
  40422. #: guix-git/doc/guix.texi:27250
  40423. msgid "The database engine to use."
  40424. msgstr ""
  40425. #. type: item
  40426. #: guix-git/doc/guix.texi:27251
  40427. #, fuzzy, no-wrap
  40428. msgid "@code{name} (default: @code{\"patchwork\"})"
  40429. msgstr "@code{mate}(默认值:@code{mate})"
  40430. #. type: table
  40431. #: guix-git/doc/guix.texi:27253
  40432. #, fuzzy
  40433. msgid "The name of the database to use."
  40434. msgstr "远程机器的主机名。"
  40435. #. type: table
  40436. #: guix-git/doc/guix.texi:27256
  40437. msgid "The user to connect to the database as."
  40438. msgstr ""
  40439. #. type: item
  40440. #: guix-git/doc/guix.texi:27257
  40441. #, fuzzy, no-wrap
  40442. msgid "@code{password} (default: @code{\"\"})"
  40443. msgstr "@code{port}(默认值:@code{22})"
  40444. #. type: table
  40445. #: guix-git/doc/guix.texi:27259
  40446. msgid "The password to use when connecting to the database."
  40447. msgstr ""
  40448. #. type: item
  40449. #: guix-git/doc/guix.texi:27260
  40450. #, fuzzy, no-wrap
  40451. msgid "@code{host} (default: @code{\"\"})"
  40452. msgstr "@code{port}(默认值:@code{22})"
  40453. #. type: table
  40454. #: guix-git/doc/guix.texi:27262
  40455. msgid "The host to make the database connection to."
  40456. msgstr ""
  40457. #. type: item
  40458. #: guix-git/doc/guix.texi:27263
  40459. #, fuzzy, no-wrap
  40460. msgid "@code{port} (default: @code{\"\"})"
  40461. msgstr "@code{port}(默认值:@code{22})"
  40462. #. type: table
  40463. #: guix-git/doc/guix.texi:27265
  40464. msgid "The port on which to connect to the database."
  40465. msgstr ""
  40466. #. type: subsubheading
  40467. #: guix-git/doc/guix.texi:27269
  40468. #, no-wrap
  40469. msgid "Mumi"
  40470. msgstr ""
  40471. #. type: cindex
  40472. #: guix-git/doc/guix.texi:27271
  40473. #, fuzzy, no-wrap
  40474. msgid "Mumi, Debbugs Web interface"
  40475. msgstr "用户界面"
  40476. #. type: cindex
  40477. #: guix-git/doc/guix.texi:27272
  40478. #, fuzzy, no-wrap
  40479. msgid "Debbugs, Mumi Web interface"
  40480. msgstr "用户界面"
  40481. #. type: Plain text
  40482. #: guix-git/doc/guix.texi:27277
  40483. 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."
  40484. msgstr ""
  40485. #. type: defvr
  40486. #: guix-git/doc/guix.texi:27278
  40487. #, no-wrap
  40488. msgid "{Scheme Variable} mumi-service-type"
  40489. msgstr ""
  40490. #. type: defvr
  40491. #: guix-git/doc/guix.texi:27280
  40492. msgid "This is the service type for Mumi."
  40493. msgstr ""
  40494. #. type: deftp
  40495. #: guix-git/doc/guix.texi:27282
  40496. #, fuzzy, no-wrap
  40497. msgid "{Data Type} mumi-configuration"
  40498. msgstr "{数据类型} build-machine"
  40499. #. type: deftp
  40500. #: guix-git/doc/guix.texi:27285
  40501. msgid "Data type representing the Mumi service configuration. This type has the following fields:"
  40502. msgstr ""
  40503. #. type: item
  40504. #: guix-git/doc/guix.texi:27287
  40505. #, fuzzy, no-wrap
  40506. msgid "@code{mumi} (default: @code{mumi})"
  40507. msgstr "@code{mate}(默认值:@code{mate})"
  40508. #. type: table
  40509. #: guix-git/doc/guix.texi:27289
  40510. #, fuzzy
  40511. msgid "The Mumi package to use."
  40512. msgstr "软件包数据类型。"
  40513. #. type: item
  40514. #: guix-git/doc/guix.texi:27290
  40515. #, fuzzy, no-wrap
  40516. msgid "@code{mailer?} (default: @code{#true})"
  40517. msgstr "@code{mate}(默认值:@code{mate})"
  40518. #. type: table
  40519. #: guix-git/doc/guix.texi:27292
  40520. msgid "Whether to enable or disable the mailer component."
  40521. msgstr ""
  40522. #. type: code{#1}
  40523. #: guix-git/doc/guix.texi:27293
  40524. #, no-wrap
  40525. msgid "mumi-configuration-sender"
  40526. msgstr ""
  40527. #. type: table
  40528. #: guix-git/doc/guix.texi:27295
  40529. msgid "The email address used as the sender for comments."
  40530. msgstr ""
  40531. #. type: code{#1}
  40532. #: guix-git/doc/guix.texi:27296
  40533. #, fuzzy, no-wrap
  40534. msgid "mumi-configuration-smtp"
  40535. msgstr "系统配置"
  40536. #. type: table
  40537. #: guix-git/doc/guix.texi:27301
  40538. 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}."
  40539. msgstr ""
  40540. #. type: subsubheading
  40541. #: guix-git/doc/guix.texi:27306
  40542. #, no-wrap
  40543. msgid "FastCGI"
  40544. msgstr ""
  40545. #. type: cindex
  40546. #: guix-git/doc/guix.texi:27307
  40547. #, no-wrap
  40548. msgid "fastcgi"
  40549. msgstr ""
  40550. #. type: cindex
  40551. #: guix-git/doc/guix.texi:27308
  40552. #, no-wrap
  40553. msgid "fcgiwrap"
  40554. msgstr ""
  40555. #. type: Plain text
  40556. #: guix-git/doc/guix.texi:27315
  40557. 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."
  40558. msgstr ""
  40559. #. type: Plain text
  40560. #: guix-git/doc/guix.texi:27322
  40561. 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."
  40562. msgstr ""
  40563. #. type: defvr
  40564. #: guix-git/doc/guix.texi:27323
  40565. #, no-wrap
  40566. msgid "{Scheme Variable} fcgiwrap-service-type"
  40567. msgstr ""
  40568. #. type: defvr
  40569. #: guix-git/doc/guix.texi:27325
  40570. msgid "A service type for the @code{fcgiwrap} FastCGI proxy."
  40571. msgstr ""
  40572. #. type: deftp
  40573. #: guix-git/doc/guix.texi:27327
  40574. #, no-wrap
  40575. msgid "{Data Type} fcgiwrap-configuration"
  40576. msgstr ""
  40577. #. type: deftp
  40578. #: guix-git/doc/guix.texi:27330
  40579. msgid "Data type representing the configuration of the @code{fcgiwrap} service. This type has the following parameters:"
  40580. msgstr ""
  40581. #. type: item
  40582. #: guix-git/doc/guix.texi:27331
  40583. #, no-wrap
  40584. msgid "@code{package} (default: @code{fcgiwrap})"
  40585. msgstr ""
  40586. #. type: table
  40587. #: guix-git/doc/guix.texi:27333
  40588. msgid "The fcgiwrap package to use."
  40589. msgstr ""
  40590. #. type: item
  40591. #: guix-git/doc/guix.texi:27334
  40592. #, no-wrap
  40593. msgid "@code{socket} (default: @code{tcp:127.0.0.1:9000})"
  40594. msgstr ""
  40595. #. type: table
  40596. #: guix-git/doc/guix.texi:27340
  40597. 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}."
  40598. msgstr ""
  40599. #. type: item
  40600. #: guix-git/doc/guix.texi:27341
  40601. #, no-wrap
  40602. msgid "@code{user} (default: @code{fcgiwrap})"
  40603. msgstr ""
  40604. #. type: itemx
  40605. #: guix-git/doc/guix.texi:27342
  40606. #, no-wrap
  40607. msgid "@code{group} (default: @code{fcgiwrap})"
  40608. msgstr ""
  40609. #. type: table
  40610. #: guix-git/doc/guix.texi:27347
  40611. 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."
  40612. msgstr ""
  40613. #. type: table
  40614. #: guix-git/doc/guix.texi:27354
  40615. 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."
  40616. msgstr ""
  40617. #. type: subsubheading
  40618. #: guix-git/doc/guix.texi:27358
  40619. #, no-wrap
  40620. msgid "PHP-FPM"
  40621. msgstr ""
  40622. #. type: cindex
  40623. #: guix-git/doc/guix.texi:27359
  40624. #, no-wrap
  40625. msgid "php-fpm"
  40626. msgstr ""
  40627. #. type: Plain text
  40628. #: guix-git/doc/guix.texi:27362
  40629. msgid "PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features useful for sites of any size."
  40630. msgstr ""
  40631. #. type: Plain text
  40632. #: guix-git/doc/guix.texi:27364
  40633. msgid "These features include:"
  40634. msgstr ""
  40635. #. type: item
  40636. #: guix-git/doc/guix.texi:27365
  40637. #, no-wrap
  40638. msgid "Adaptive process spawning"
  40639. msgstr ""
  40640. #. type: item
  40641. #: guix-git/doc/guix.texi:27366
  40642. #, no-wrap
  40643. msgid "Basic statistics (similar to Apache's mod_status)"
  40644. msgstr ""
  40645. #. type: item
  40646. #: guix-git/doc/guix.texi:27367
  40647. #, no-wrap
  40648. msgid "Advanced process management with graceful stop/start"
  40649. msgstr ""
  40650. #. type: item
  40651. #: guix-git/doc/guix.texi:27368
  40652. #, no-wrap
  40653. msgid "Ability to start workers with different uid/gid/chroot/environment"
  40654. msgstr ""
  40655. #. type: itemize
  40656. #: guix-git/doc/guix.texi:27370
  40657. msgid "and different php.ini (replaces safe_mode)"
  40658. msgstr ""
  40659. #. type: item
  40660. #: guix-git/doc/guix.texi:27370
  40661. #, no-wrap
  40662. msgid "Stdout & stderr logging"
  40663. msgstr ""
  40664. #. type: item
  40665. #: guix-git/doc/guix.texi:27371
  40666. #, no-wrap
  40667. msgid "Emergency restart in case of accidental opcode cache destruction"
  40668. msgstr ""
  40669. #. type: item
  40670. #: guix-git/doc/guix.texi:27372
  40671. #, no-wrap
  40672. msgid "Accelerated upload support"
  40673. msgstr ""
  40674. #. type: item
  40675. #: guix-git/doc/guix.texi:27373
  40676. #, no-wrap
  40677. msgid "Support for a \"slowlog\""
  40678. msgstr ""
  40679. #. type: item
  40680. #: guix-git/doc/guix.texi:27374
  40681. #, no-wrap
  40682. msgid "Enhancements to FastCGI, such as fastcgi_finish_request() -"
  40683. msgstr ""
  40684. #. type: itemize
  40685. #: guix-git/doc/guix.texi:27377
  40686. msgid "a special function to finish request & flush all data while continuing to do something time-consuming (video converting, stats processing, etc.)"
  40687. msgstr ""
  40688. #. type: Plain text
  40689. #: guix-git/doc/guix.texi:27379
  40690. msgid "...@: and much more."
  40691. msgstr ""
  40692. #. type: defvr
  40693. #: guix-git/doc/guix.texi:27380
  40694. #, no-wrap
  40695. msgid "{Scheme Variable} php-fpm-service-type"
  40696. msgstr ""
  40697. #. type: defvr
  40698. #: guix-git/doc/guix.texi:27382
  40699. msgid "A Service type for @code{php-fpm}."
  40700. msgstr ""
  40701. #. type: deftp
  40702. #: guix-git/doc/guix.texi:27384
  40703. #, no-wrap
  40704. msgid "{Data Type} php-fpm-configuration"
  40705. msgstr ""
  40706. #. type: deftp
  40707. #: guix-git/doc/guix.texi:27386
  40708. msgid "Data Type for php-fpm service configuration."
  40709. msgstr ""
  40710. #. type: item
  40711. #: guix-git/doc/guix.texi:27387
  40712. #, no-wrap
  40713. msgid "@code{php} (default: @code{php})"
  40714. msgstr ""
  40715. #. type: table
  40716. #: guix-git/doc/guix.texi:27389
  40717. msgid "The php package to use."
  40718. msgstr ""
  40719. #. type: item
  40720. #: guix-git/doc/guix.texi:27389
  40721. #, no-wrap
  40722. msgid "@code{socket} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.sock\")})"
  40723. msgstr ""
  40724. #. type: table
  40725. #: guix-git/doc/guix.texi:27391
  40726. msgid "The address on which to accept FastCGI requests. Valid syntaxes are:"
  40727. msgstr ""
  40728. #. type: code{#1}
  40729. #: guix-git/doc/guix.texi:27392
  40730. #, no-wrap
  40731. msgid "\"ip.add.re.ss:port\""
  40732. msgstr ""
  40733. #. type: table
  40734. #: guix-git/doc/guix.texi:27394
  40735. msgid "Listen on a TCP socket to a specific address on a specific port."
  40736. msgstr ""
  40737. #. type: code{#1}
  40738. #: guix-git/doc/guix.texi:27394
  40739. #, no-wrap
  40740. msgid "\"port\""
  40741. msgstr ""
  40742. #. type: table
  40743. #: guix-git/doc/guix.texi:27396
  40744. msgid "Listen on a TCP socket to all addresses on a specific port."
  40745. msgstr ""
  40746. #. type: code{#1}
  40747. #: guix-git/doc/guix.texi:27396
  40748. #, no-wrap
  40749. msgid "\"/path/to/unix/socket\""
  40750. msgstr ""
  40751. #. type: table
  40752. #: guix-git/doc/guix.texi:27398
  40753. msgid "Listen on a unix socket."
  40754. msgstr ""
  40755. #. type: item
  40756. #: guix-git/doc/guix.texi:27400
  40757. #, no-wrap
  40758. msgid "@code{user} (default: @code{php-fpm})"
  40759. msgstr ""
  40760. #. type: table
  40761. #: guix-git/doc/guix.texi:27402
  40762. msgid "User who will own the php worker processes."
  40763. msgstr ""
  40764. #. type: item
  40765. #: guix-git/doc/guix.texi:27402
  40766. #, no-wrap
  40767. msgid "@code{group} (default: @code{php-fpm})"
  40768. msgstr ""
  40769. #. type: table
  40770. #: guix-git/doc/guix.texi:27404
  40771. msgid "Group of the worker processes."
  40772. msgstr ""
  40773. #. type: item
  40774. #: guix-git/doc/guix.texi:27404
  40775. #, no-wrap
  40776. msgid "@code{socket-user} (default: @code{php-fpm})"
  40777. msgstr ""
  40778. #. type: table
  40779. #: guix-git/doc/guix.texi:27406
  40780. msgid "User who can speak to the php-fpm socket."
  40781. msgstr ""
  40782. #. type: item
  40783. #: guix-git/doc/guix.texi:27406
  40784. #, fuzzy, no-wrap
  40785. msgid "@code{socket-group} (default: @code{nginx})"
  40786. msgstr "@code{gnome}(默认值:@code{gnome})"
  40787. #. type: table
  40788. #: guix-git/doc/guix.texi:27408
  40789. msgid "Group that can speak to the php-fpm socket."
  40790. msgstr ""
  40791. #. type: item
  40792. #: guix-git/doc/guix.texi:27408
  40793. #, no-wrap
  40794. msgid "@code{pid-file} (default: @code{(string-append \"/var/run/php\" (version-major (package-version php)) \"-fpm.pid\")})"
  40795. msgstr ""
  40796. #. type: table
  40797. #: guix-git/doc/guix.texi:27411
  40798. msgid "The process id of the php-fpm process is written to this file once the service has started."
  40799. msgstr ""
  40800. #. type: item
  40801. #: guix-git/doc/guix.texi:27411
  40802. #, no-wrap
  40803. msgid "@code{log-file} (default: @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.log\")})"
  40804. msgstr ""
  40805. #. type: table
  40806. #: guix-git/doc/guix.texi:27413
  40807. msgid "Log for the php-fpm master process."
  40808. msgstr ""
  40809. #. type: item
  40810. #: guix-git/doc/guix.texi:27413
  40811. #, no-wrap
  40812. msgid "@code{process-manager} (default: @code{(php-fpm-dynamic-process-manager-configuration)})"
  40813. msgstr ""
  40814. #. type: table
  40815. #: guix-git/doc/guix.texi:27416
  40816. msgid "Detailed settings for the php-fpm process manager. Must be one of:"
  40817. msgstr ""
  40818. #. type: code{#1}
  40819. #: guix-git/doc/guix.texi:27417
  40820. #, no-wrap
  40821. msgid "<php-fpm-dynamic-process-manager-configuration>"
  40822. msgstr ""
  40823. #. type: code{#1}
  40824. #: guix-git/doc/guix.texi:27418
  40825. #, no-wrap
  40826. msgid "<php-fpm-static-process-manager-configuration>"
  40827. msgstr ""
  40828. #. type: code{#1}
  40829. #: guix-git/doc/guix.texi:27419
  40830. #, no-wrap
  40831. msgid "<php-fpm-on-demand-process-manager-configuration>"
  40832. msgstr ""
  40833. #. type: item
  40834. #: guix-git/doc/guix.texi:27421
  40835. #, no-wrap
  40836. msgid "@code{display-errors} (default @code{#f})"
  40837. msgstr ""
  40838. #. type: table
  40839. #: guix-git/doc/guix.texi:27426
  40840. 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."
  40841. msgstr ""
  40842. #. type: item
  40843. #: guix-git/doc/guix.texi:27426
  40844. #, no-wrap
  40845. msgid "@code{timezone} (default @code{#f})"
  40846. msgstr ""
  40847. #. type: table
  40848. #: guix-git/doc/guix.texi:27428
  40849. msgid "Specifies @code{php_admin_value[date.timezone]} parameter."
  40850. msgstr ""
  40851. #. type: item
  40852. #: guix-git/doc/guix.texi:27428
  40853. #, no-wrap
  40854. msgid "@code{workers-logfile} (default @code{(string-append \"/var/log/php\" (version-major (package-version php)) \"-fpm.www.log\")})"
  40855. msgstr ""
  40856. #. type: table
  40857. #: guix-git/doc/guix.texi:27431
  40858. msgid "This file will log the @code{stderr} outputs of php worker processes. Can be set to @code{#f} to disable logging."
  40859. msgstr ""
  40860. #. type: item
  40861. #: guix-git/doc/guix.texi:27431
  40862. #, no-wrap
  40863. msgid "@code{file} (default @code{#f})"
  40864. msgstr ""
  40865. #. type: table
  40866. #: guix-git/doc/guix.texi:27434
  40867. msgid "An optional override of the whole configuration. You can use the @code{mixed-text-file} function or an absolute filepath for it."
  40868. msgstr ""
  40869. #. type: item
  40870. #: guix-git/doc/guix.texi:27434
  40871. #, fuzzy, no-wrap
  40872. msgid "@code{php-ini-file} (default @code{#f})"
  40873. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  40874. #. type: table
  40875. #: guix-git/doc/guix.texi:27438
  40876. 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."
  40877. msgstr ""
  40878. #. type: table
  40879. #: guix-git/doc/guix.texi:27442
  40880. 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:"
  40881. msgstr ""
  40882. #. type: lisp
  40883. #: guix-git/doc/guix.texi:27447
  40884. #, no-wrap
  40885. msgid ""
  40886. "(define %local-php-ini\n"
  40887. " (plain-file \"php.ini\"\n"
  40888. " \"memory_limit = 2G\n"
  40889. "max_execution_time = 1800\"))\n"
  40890. "\n"
  40891. msgstr ""
  40892. #. type: lisp
  40893. #: guix-git/doc/guix.texi:27454
  40894. #, no-wrap
  40895. msgid ""
  40896. "(operating-system\n"
  40897. " ;; @dots{}\n"
  40898. " (services (cons (service php-fpm-service-type\n"
  40899. " (php-fpm-configuration\n"
  40900. " (php-ini-file %local-php-ini)))\n"
  40901. " %base-services)))\n"
  40902. msgstr ""
  40903. #. type: table
  40904. #: guix-git/doc/guix.texi:27459
  40905. 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."
  40906. msgstr ""
  40907. #. type: deftp
  40908. #: guix-git/doc/guix.texi:27462
  40909. #, no-wrap
  40910. msgid "{Data type} php-fpm-dynamic-process-manager-configuration"
  40911. msgstr ""
  40912. #. type: deftp
  40913. #: guix-git/doc/guix.texi:27466
  40914. msgid "Data Type for the @code{dynamic} php-fpm process manager. With the @code{dynamic} process manager, spare worker processes are kept around based on its configured limits."
  40915. msgstr ""
  40916. #. type: item
  40917. #: guix-git/doc/guix.texi:27467 guix-git/doc/guix.texi:27483
  40918. #: guix-git/doc/guix.texi:27493
  40919. #, no-wrap
  40920. msgid "@code{max-children} (default: @code{5})"
  40921. msgstr ""
  40922. #. type: table
  40923. #: guix-git/doc/guix.texi:27469 guix-git/doc/guix.texi:27485
  40924. #: guix-git/doc/guix.texi:27495
  40925. msgid "Maximum of worker processes."
  40926. msgstr ""
  40927. #. type: item
  40928. #: guix-git/doc/guix.texi:27469
  40929. #, no-wrap
  40930. msgid "@code{start-servers} (default: @code{2})"
  40931. msgstr ""
  40932. #. type: table
  40933. #: guix-git/doc/guix.texi:27471
  40934. msgid "How many worker processes should be started on start-up."
  40935. msgstr ""
  40936. #. type: item
  40937. #: guix-git/doc/guix.texi:27471
  40938. #, no-wrap
  40939. msgid "@code{min-spare-servers} (default: @code{1})"
  40940. msgstr ""
  40941. #. type: table
  40942. #: guix-git/doc/guix.texi:27473
  40943. msgid "How many spare worker processes should be kept around at minimum."
  40944. msgstr ""
  40945. #. type: item
  40946. #: guix-git/doc/guix.texi:27473
  40947. #, no-wrap
  40948. msgid "@code{max-spare-servers} (default: @code{3})"
  40949. msgstr ""
  40950. #. type: table
  40951. #: guix-git/doc/guix.texi:27475
  40952. msgid "How many spare worker processes should be kept around at maximum."
  40953. msgstr ""
  40954. #. type: deftp
  40955. #: guix-git/doc/guix.texi:27478
  40956. #, no-wrap
  40957. msgid "{Data type} php-fpm-static-process-manager-configuration"
  40958. msgstr ""
  40959. #. type: deftp
  40960. #: guix-git/doc/guix.texi:27482
  40961. 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."
  40962. msgstr ""
  40963. #. type: deftp
  40964. #: guix-git/doc/guix.texi:27488
  40965. #, no-wrap
  40966. msgid "{Data type} php-fpm-on-demand-process-manager-configuration"
  40967. msgstr ""
  40968. #. type: deftp
  40969. #: guix-git/doc/guix.texi:27492
  40970. 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."
  40971. msgstr ""
  40972. #. type: item
  40973. #: guix-git/doc/guix.texi:27495
  40974. #, no-wrap
  40975. msgid "@code{process-idle-timeout} (default: @code{10})"
  40976. msgstr ""
  40977. #. type: table
  40978. #: guix-git/doc/guix.texi:27497
  40979. msgid "The time in seconds after which a process with no requests is killed."
  40980. msgstr ""
  40981. #. type: deffn
  40982. #: guix-git/doc/guix.texi:27501
  40983. #, no-wrap
  40984. msgid "{Scheme Procedure} nginx-php-location @"
  40985. msgstr ""
  40986. #. type: deffn
  40987. #: guix-git/doc/guix.texi:27507
  40988. 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}."
  40989. msgstr ""
  40990. #. type: Plain text
  40991. #: guix-git/doc/guix.texi:27510
  40992. msgid "A simple services setup for nginx with php can look like this:"
  40993. msgstr ""
  40994. #. type: lisp
  40995. #: guix-git/doc/guix.texi:27523
  40996. #, no-wrap
  40997. msgid ""
  40998. "(services (cons* (service dhcp-client-service-type)\n"
  40999. " (service php-fpm-service-type)\n"
  41000. " (service nginx-service-type\n"
  41001. " (nginx-server-configuration\n"
  41002. " (server-name '(\"example.com\"))\n"
  41003. " (root \"/srv/http/\")\n"
  41004. " (locations\n"
  41005. " (list (nginx-php-location)))\n"
  41006. " (listen '(\"80\"))\n"
  41007. " (ssl-certificate #f)\n"
  41008. " (ssl-certificate-key #f)))\n"
  41009. " %base-services))\n"
  41010. msgstr ""
  41011. #. type: cindex
  41012. #: guix-git/doc/guix.texi:27525
  41013. #, no-wrap
  41014. msgid "cat-avatar-generator"
  41015. msgstr ""
  41016. #. type: Plain text
  41017. #: guix-git/doc/guix.texi:27529
  41018. 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."
  41019. msgstr ""
  41020. #. type: deffn
  41021. #: guix-git/doc/guix.texi:27530
  41022. #, no-wrap
  41023. msgid "{Scheme Procedure} cat-avatar-generator-service @"
  41024. msgstr ""
  41025. #. type: deffn
  41026. #: guix-git/doc/guix.texi:27538
  41027. 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."
  41028. msgstr ""
  41029. #. type: Plain text
  41030. #: guix-git/doc/guix.texi:27541
  41031. msgid "A simple setup for cat-avatar-generator can look like this:"
  41032. msgstr ""
  41033. #. type: lisp
  41034. #: guix-git/doc/guix.texi:27548
  41035. #, no-wrap
  41036. msgid ""
  41037. "(services (cons* (cat-avatar-generator-service\n"
  41038. " #:configuration\n"
  41039. " (nginx-server-configuration\n"
  41040. " (server-name '(\"example.com\"))))\n"
  41041. " ...\n"
  41042. " %base-services))\n"
  41043. msgstr ""
  41044. #. type: subsubheading
  41045. #: guix-git/doc/guix.texi:27550
  41046. #, no-wrap
  41047. msgid "Hpcguix-web"
  41048. msgstr ""
  41049. #. type: cindex
  41050. #: guix-git/doc/guix.texi:27552
  41051. #, no-wrap
  41052. msgid "hpcguix-web"
  41053. msgstr ""
  41054. #. type: Plain text
  41055. #: guix-git/doc/guix.texi:27557
  41056. 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."
  41057. msgstr ""
  41058. #. type: defvr
  41059. #: guix-git/doc/guix.texi:27558
  41060. #, no-wrap
  41061. msgid "{Scheme Variable} hpcguix-web-service-type"
  41062. msgstr ""
  41063. #. type: defvr
  41064. #: guix-git/doc/guix.texi:27560
  41065. msgid "The service type for @code{hpcguix-web}."
  41066. msgstr ""
  41067. #. type: deftp
  41068. #: guix-git/doc/guix.texi:27562
  41069. #, no-wrap
  41070. msgid "{Data Type} hpcguix-web-configuration"
  41071. msgstr ""
  41072. #. type: deftp
  41073. #: guix-git/doc/guix.texi:27564
  41074. msgid "Data type for the hpcguix-web service configuration."
  41075. msgstr ""
  41076. #. type: code{#1}
  41077. #: guix-git/doc/guix.texi:27566
  41078. #, no-wrap
  41079. msgid "specs"
  41080. msgstr ""
  41081. #. type: table
  41082. #: guix-git/doc/guix.texi:27569
  41083. msgid "A gexp (@pxref{G-Expressions}) specifying the hpcguix-web service configuration. The main items available in this spec are:"
  41084. msgstr ""
  41085. #. type: item
  41086. #: guix-git/doc/guix.texi:27571
  41087. #, no-wrap
  41088. msgid "@code{title-prefix} (default: @code{\"hpcguix | \"})"
  41089. msgstr ""
  41090. #. type: table
  41091. #: guix-git/doc/guix.texi:27573
  41092. msgid "The page title prefix."
  41093. msgstr ""
  41094. #. type: item
  41095. #: guix-git/doc/guix.texi:27574
  41096. #, no-wrap
  41097. msgid "@code{guix-command} (default: @code{\"guix\"})"
  41098. msgstr ""
  41099. #. type: table
  41100. #: guix-git/doc/guix.texi:27576
  41101. msgid "The @command{guix} command."
  41102. msgstr ""
  41103. #. type: item
  41104. #: guix-git/doc/guix.texi:27577
  41105. #, no-wrap
  41106. msgid "@code{package-filter-proc} (default: @code{(const #t)})"
  41107. msgstr ""
  41108. #. type: table
  41109. #: guix-git/doc/guix.texi:27579
  41110. msgid "A procedure specifying how to filter packages that are displayed."
  41111. msgstr ""
  41112. #. type: item
  41113. #: guix-git/doc/guix.texi:27580
  41114. #, no-wrap
  41115. msgid "@code{package-page-extension-proc} (default: @code{(const '())})"
  41116. msgstr ""
  41117. #. type: table
  41118. #: guix-git/doc/guix.texi:27582
  41119. msgid "Extension package for @code{hpcguix-web}."
  41120. msgstr ""
  41121. #. type: item
  41122. #: guix-git/doc/guix.texi:27583
  41123. #, no-wrap
  41124. msgid "@code{menu} (default: @code{'()})"
  41125. msgstr ""
  41126. #. type: table
  41127. #: guix-git/doc/guix.texi:27585
  41128. msgid "Additional entry in page @code{menu}."
  41129. msgstr ""
  41130. #. type: item
  41131. #: guix-git/doc/guix.texi:27586
  41132. #, no-wrap
  41133. msgid "@code{channels} (default: @code{%default-channels})"
  41134. msgstr ""
  41135. #. type: table
  41136. #: guix-git/doc/guix.texi:27588
  41137. msgid "List of channels from which the package list is built (@pxref{Channels})."
  41138. msgstr ""
  41139. #. type: item
  41140. #: guix-git/doc/guix.texi:27589
  41141. #, no-wrap
  41142. msgid "@code{package-list-expiration} (default: @code{(* 12 3600)})"
  41143. msgstr ""
  41144. #. type: table
  41145. #: guix-git/doc/guix.texi:27592
  41146. msgid "The expiration time, in seconds, after which the package list is rebuilt from the latest instances of the given channels."
  41147. msgstr ""
  41148. #. type: table
  41149. #: guix-git/doc/guix.texi:27597
  41150. msgid "See the hpcguix-web repository for a @uref{https://github.com/UMCUGenetics/hpcguix-web/blob/master/hpcweb-configuration.scm, complete example}."
  41151. msgstr ""
  41152. #. type: item
  41153. #: guix-git/doc/guix.texi:27598
  41154. #, no-wrap
  41155. msgid "@code{package} (default: @code{hpcguix-web})"
  41156. msgstr ""
  41157. #. type: table
  41158. #: guix-git/doc/guix.texi:27600
  41159. msgid "The hpcguix-web package to use."
  41160. msgstr ""
  41161. #. type: item
  41162. #: guix-git/doc/guix.texi:27601
  41163. #, fuzzy, no-wrap
  41164. msgid "@code{address} (default: @code{\"127.0.0.1\"})"
  41165. msgstr "@code{display}(默认值:@code{\":0\"})"
  41166. #. type: table
  41167. #: guix-git/doc/guix.texi:27603
  41168. msgid "The IP address to listen to."
  41169. msgstr ""
  41170. #. type: item
  41171. #: guix-git/doc/guix.texi:27604
  41172. #, fuzzy, no-wrap
  41173. msgid "@code{port} (default: @code{5000})"
  41174. msgstr "@code{port}(默认值:@code{22})"
  41175. #. type: table
  41176. #: guix-git/doc/guix.texi:27606
  41177. msgid "The port number to listen to."
  41178. msgstr ""
  41179. #. type: Plain text
  41180. #: guix-git/doc/guix.texi:27610
  41181. msgid "A typical hpcguix-web service declaration looks like this:"
  41182. msgstr ""
  41183. #. type: lisp
  41184. #: guix-git/doc/guix.texi:27619
  41185. #, no-wrap
  41186. msgid ""
  41187. "(service hpcguix-web-service-type\n"
  41188. " (hpcguix-web-configuration\n"
  41189. " (specs\n"
  41190. " #~(define site-config\n"
  41191. " (hpcweb-configuration\n"
  41192. " (title-prefix \"Guix-HPC - \")\n"
  41193. " (menu '((\"/about\" \"ABOUT\"))))))))\n"
  41194. msgstr ""
  41195. #. type: quotation
  41196. #: guix-git/doc/guix.texi:27626
  41197. 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."
  41198. msgstr ""
  41199. #. type: quotation
  41200. #: guix-git/doc/guix.texi:27630
  41201. 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."
  41202. msgstr ""
  41203. #. type: cindex
  41204. #: guix-git/doc/guix.texi:27632 guix-git/doc/guix.texi:27634
  41205. #, no-wrap
  41206. msgid "gmnisrv"
  41207. msgstr ""
  41208. #. type: Plain text
  41209. #: guix-git/doc/guix.texi:27637
  41210. msgid "The @uref{https://git.sr.ht/~sircmpwn/gmnisrv, gmnisrv} program is a simple @uref{https://gemini.circumlunar.space/, Gemini} protocol server."
  41211. msgstr ""
  41212. #. type: deffn
  41213. #: guix-git/doc/guix.texi:27638
  41214. #, no-wrap
  41215. msgid "{Scheme Variable} gmnisrv-service-type"
  41216. msgstr ""
  41217. #. type: deffn
  41218. #: guix-git/doc/guix.texi:27641
  41219. msgid "This is the type of the gmnisrv service, whose value should be a @code{gmnisrv-configuration} object, as in this example:"
  41220. msgstr ""
  41221. #. type: lisp
  41222. #: guix-git/doc/guix.texi:27646
  41223. #, no-wrap
  41224. msgid ""
  41225. "(service gmnisrv-service-type\n"
  41226. " (gmnisrv-configuration\n"
  41227. " (config-file (local-file \"./my-gmnisrv.ini\"))))\n"
  41228. msgstr ""
  41229. #. type: deftp
  41230. #: guix-git/doc/guix.texi:27649
  41231. #, no-wrap
  41232. msgid "{Data Type} gmnisrv-configuration"
  41233. msgstr ""
  41234. #. type: deftp
  41235. #: guix-git/doc/guix.texi:27651
  41236. #, fuzzy
  41237. msgid "Data type representing the configuration of gmnisrv."
  41238. msgstr "管理操作系统配置。"
  41239. #. type: item
  41240. #: guix-git/doc/guix.texi:27653
  41241. #, fuzzy, no-wrap
  41242. msgid "@code{package} (default: @var{gmnisrv})"
  41243. msgstr "@code{gnome}(默认值:@code{gnome})"
  41244. #. type: table
  41245. #: guix-git/doc/guix.texi:27655
  41246. msgid "Package object of the gmnisrv server."
  41247. msgstr ""
  41248. #. type: item
  41249. #: guix-git/doc/guix.texi:27656
  41250. #, fuzzy, no-wrap
  41251. msgid "@code{config-file} (default: @code{%default-gmnisrv-config-file})"
  41252. msgstr "@code{gnome}(默认值:@code{gnome})"
  41253. #. type: table
  41254. #: guix-git/doc/guix.texi:27662
  41255. 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}."
  41256. msgstr ""
  41257. #. type: subsubheading
  41258. #: guix-git/doc/guix.texi:27666
  41259. #, no-wrap
  41260. msgid "Agate"
  41261. msgstr ""
  41262. #. type: cindex
  41263. #: guix-git/doc/guix.texi:27668
  41264. #, no-wrap
  41265. msgid "agate"
  41266. msgstr ""
  41267. #. type: Plain text
  41268. #: guix-git/doc/guix.texi:27673
  41269. 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."
  41270. msgstr ""
  41271. #. type: deffn
  41272. #: guix-git/doc/guix.texi:27674
  41273. #, no-wrap
  41274. msgid "{Scheme Variable} agate-service-type"
  41275. msgstr ""
  41276. #. type: deffn
  41277. #: guix-git/doc/guix.texi:27677
  41278. msgid "This is the type of the agate service, whose value should be an @code{agate-service-type} object, as in this example:"
  41279. msgstr ""
  41280. #. type: lisp
  41281. #: guix-git/doc/guix.texi:27684
  41282. #, no-wrap
  41283. msgid ""
  41284. "(service agate-service-type\n"
  41285. "\t (agate-configuration\n"
  41286. "\t (content \"/srv/gemini\")\n"
  41287. "\t (cert \"/srv/cert.pem\")\n"
  41288. "\t (key \"/srv/key.rsa\")))\n"
  41289. msgstr ""
  41290. #. type: deffn
  41291. #: guix-git/doc/guix.texi:27689
  41292. 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."
  41293. msgstr ""
  41294. #. type: deffn
  41295. #: guix-git/doc/guix.texi:27692
  41296. msgid "To obtain a certificate and a key, you could, for example, use OpenSSL, running a command similar to the following example:"
  41297. msgstr ""
  41298. #. type: example
  41299. #: guix-git/doc/guix.texi:27696
  41300. #, no-wrap
  41301. msgid ""
  41302. "openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \\\n"
  41303. " -days 3650 -nodes -subj \"/CN=example.com\"\n"
  41304. msgstr ""
  41305. #. type: deffn
  41306. #: guix-git/doc/guix.texi:27701
  41307. 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."
  41308. msgstr ""
  41309. #. type: deftp
  41310. #: guix-git/doc/guix.texi:27704
  41311. #, fuzzy, no-wrap
  41312. msgid "{Data Type} agate-configuration"
  41313. msgstr "管理操作系统配置。"
  41314. #. type: deftp
  41315. #: guix-git/doc/guix.texi:27706
  41316. #, fuzzy
  41317. msgid "Data type representing the configuration of Agate."
  41318. msgstr "管理操作系统配置。"
  41319. #. type: item
  41320. #: guix-git/doc/guix.texi:27708
  41321. #, fuzzy, no-wrap
  41322. msgid "@code{package} (default: @code{agate})"
  41323. msgstr "@code{mate}(默认值:@code{mate})"
  41324. #. type: table
  41325. #: guix-git/doc/guix.texi:27710
  41326. #, fuzzy
  41327. msgid "The package object of the Agate server."
  41328. msgstr "软件包数据类型。"
  41329. #. type: item
  41330. #: guix-git/doc/guix.texi:27711
  41331. #, fuzzy, no-wrap
  41332. msgid "@code{content} (default: @file{\"/srv/gemini\"})"
  41333. msgstr "@code{mate}(默认值:@code{mate})"
  41334. #. type: table
  41335. #: guix-git/doc/guix.texi:27713
  41336. msgid "The directory from which Agate will serve files."
  41337. msgstr ""
  41338. #. type: item
  41339. #: guix-git/doc/guix.texi:27714
  41340. #, fuzzy, no-wrap
  41341. msgid "@code{cert} (default: @code{#f})"
  41342. msgstr "@code{port}(默认值:@code{22})"
  41343. #. type: table
  41344. #: guix-git/doc/guix.texi:27717
  41345. 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."
  41346. msgstr ""
  41347. #. type: item
  41348. #: guix-git/doc/guix.texi:27718 guix-git/doc/guix.texi:28154
  41349. #, no-wrap
  41350. msgid "@code{key} (default: @code{#f})"
  41351. msgstr ""
  41352. #. type: table
  41353. #: guix-git/doc/guix.texi:27721
  41354. 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."
  41355. msgstr ""
  41356. #. type: item
  41357. #: guix-git/doc/guix.texi:27722
  41358. #, fuzzy, no-wrap
  41359. msgid "@code{addr} (default: @code{'(\"0.0.0.0:1965\" \"[::]:1965\")})"
  41360. msgstr "@code{display}(默认值:@code{\":0\"})"
  41361. #. type: table
  41362. #: guix-git/doc/guix.texi:27724
  41363. msgid "A list of the addresses to listen on."
  41364. msgstr ""
  41365. #. type: table
  41366. #: guix-git/doc/guix.texi:27727
  41367. msgid "The domain name of this Gemini server. Optional."
  41368. msgstr ""
  41369. #. type: item
  41370. #: guix-git/doc/guix.texi:27728
  41371. #, fuzzy, no-wrap
  41372. msgid "@code{lang} (default: @code{#f})"
  41373. msgstr "@code{challenge}(默认值:@code{#f})"
  41374. #. type: table
  41375. #: guix-git/doc/guix.texi:27730
  41376. msgid "RFC 4646 language code(s) for text/gemini documents. Optional."
  41377. msgstr ""
  41378. #. type: item
  41379. #: guix-git/doc/guix.texi:27731
  41380. #, fuzzy, no-wrap
  41381. msgid "@code{silent?} (default: @code{#f})"
  41382. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  41383. #. type: table
  41384. #: guix-git/doc/guix.texi:27733
  41385. msgid "Set to @code{#t} to disable logging output."
  41386. msgstr ""
  41387. #. type: item
  41388. #: guix-git/doc/guix.texi:27734
  41389. #, fuzzy, no-wrap
  41390. msgid "@code{serve-secret?} (default: @code{#f})"
  41391. msgstr "@code{speed}(默认值:@code{1.0})"
  41392. #. type: table
  41393. #: guix-git/doc/guix.texi:27737
  41394. msgid "Set to @code{#t} to serve secret files (files/directories starting with a dot)."
  41395. msgstr ""
  41396. #. type: item
  41397. #: guix-git/doc/guix.texi:27738
  41398. #, fuzzy, no-wrap
  41399. msgid "@code{log-ip?} (default: @code{#t})"
  41400. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  41401. #. type: table
  41402. #: guix-git/doc/guix.texi:27740
  41403. msgid "Whether or not to output IP addresses when logging."
  41404. msgstr ""
  41405. #. type: item
  41406. #: guix-git/doc/guix.texi:27741
  41407. #, fuzzy, no-wrap
  41408. msgid "@code{user} (default: @code{\"agate\"})"
  41409. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  41410. #. type: table
  41411. #: guix-git/doc/guix.texi:27743
  41412. msgid "Owner of the @code{agate} process."
  41413. msgstr ""
  41414. #. type: item
  41415. #: guix-git/doc/guix.texi:27744
  41416. #, fuzzy, no-wrap
  41417. msgid "@code{group} (default: @code{\"agate\"})"
  41418. msgstr "@code{gnome}(默认值:@code{gnome})"
  41419. #. type: table
  41420. #: guix-git/doc/guix.texi:27746
  41421. msgid "Owner's group of the @code{agate} process."
  41422. msgstr ""
  41423. #. type: item
  41424. #: guix-git/doc/guix.texi:27747
  41425. #, fuzzy, no-wrap
  41426. msgid "@code{log-file} (default: @file{\"/var/log/agate.log\"})"
  41427. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  41428. #. type: table
  41429. #: guix-git/doc/guix.texi:27749
  41430. msgid "The file which should store the logging output of Agate."
  41431. msgstr ""
  41432. #. type: cindex
  41433. #: guix-git/doc/guix.texi:27756
  41434. #, no-wrap
  41435. msgid "Web"
  41436. msgstr ""
  41437. #. type: cindex
  41438. #: guix-git/doc/guix.texi:27757
  41439. #, no-wrap
  41440. msgid "HTTP, HTTPS"
  41441. msgstr ""
  41442. #. type: cindex
  41443. #: guix-git/doc/guix.texi:27758
  41444. #, no-wrap
  41445. msgid "Let's Encrypt"
  41446. msgstr ""
  41447. #. type: cindex
  41448. #: guix-git/doc/guix.texi:27759
  41449. #, no-wrap
  41450. msgid "TLS certificates"
  41451. msgstr ""
  41452. #. type: Plain text
  41453. #: guix-git/doc/guix.texi:27766
  41454. 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."
  41455. msgstr ""
  41456. #. type: Plain text
  41457. #: guix-git/doc/guix.texi:27778
  41458. 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."
  41459. msgstr ""
  41460. #. type: Plain text
  41461. #: guix-git/doc/guix.texi:27785
  41462. 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)."
  41463. msgstr ""
  41464. #. type: Plain text
  41465. #: guix-git/doc/guix.texi:27791
  41466. 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."
  41467. msgstr ""
  41468. #. type: Plain text
  41469. #: guix-git/doc/guix.texi:27795
  41470. 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}."
  41471. msgstr ""
  41472. #. type: defvr
  41473. #: guix-git/doc/guix.texi:27796
  41474. #, no-wrap
  41475. msgid "{Scheme Variable} certbot-service-type"
  41476. msgstr ""
  41477. #. type: defvr
  41478. #: guix-git/doc/guix.texi:27799
  41479. 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:"
  41480. msgstr ""
  41481. #. type: lisp
  41482. #: guix-git/doc/guix.texi:27806
  41483. #, no-wrap
  41484. msgid ""
  41485. "(define %nginx-deploy-hook\n"
  41486. " (program-file\n"
  41487. " \"nginx-deploy-hook\"\n"
  41488. " #~(let ((pid (call-with-input-file \"/var/run/nginx/pid\" read)))\n"
  41489. " (kill pid SIGHUP))))\n"
  41490. "\n"
  41491. msgstr ""
  41492. #. type: lisp
  41493. #: guix-git/doc/guix.texi:27817
  41494. #, no-wrap
  41495. msgid ""
  41496. "(service certbot-service-type\n"
  41497. " (certbot-configuration\n"
  41498. " (email \"foo@@example.net\")\n"
  41499. " (certificates\n"
  41500. " (list\n"
  41501. " (certificate-configuration\n"
  41502. " (domains '(\"example.net\" \"www.example.net\"))\n"
  41503. " (deploy-hook %nginx-deploy-hook))\n"
  41504. " (certificate-configuration\n"
  41505. " (domains '(\"bar.example.net\")))))))\n"
  41506. msgstr ""
  41507. #. type: defvr
  41508. #: guix-git/doc/guix.texi:27820
  41509. msgid "See below for details about @code{certbot-configuration}."
  41510. msgstr ""
  41511. #. type: deftp
  41512. #: guix-git/doc/guix.texi:27822
  41513. #, no-wrap
  41514. msgid "{Data Type} certbot-configuration"
  41515. msgstr ""
  41516. #. type: deftp
  41517. #: guix-git/doc/guix.texi:27825
  41518. msgid "Data type representing the configuration of the @code{certbot} service. This type has the following parameters:"
  41519. msgstr ""
  41520. #. type: item
  41521. #: guix-git/doc/guix.texi:27827
  41522. #, no-wrap
  41523. msgid "@code{package} (default: @code{certbot})"
  41524. msgstr ""
  41525. #. type: table
  41526. #: guix-git/doc/guix.texi:27829
  41527. msgid "The certbot package to use."
  41528. msgstr ""
  41529. #. type: item
  41530. #: guix-git/doc/guix.texi:27830
  41531. #, no-wrap
  41532. msgid "@code{webroot} (default: @code{/var/www})"
  41533. msgstr ""
  41534. #. type: table
  41535. #: guix-git/doc/guix.texi:27833
  41536. msgid "The directory from which to serve the Let's Encrypt challenge/response files."
  41537. msgstr ""
  41538. #. type: item
  41539. #: guix-git/doc/guix.texi:27834
  41540. #, no-wrap
  41541. msgid "@code{certificates} (default: @code{()})"
  41542. msgstr ""
  41543. #. type: table
  41544. #: guix-git/doc/guix.texi:27838
  41545. 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}."
  41546. msgstr ""
  41547. #. type: item
  41548. #: guix-git/doc/guix.texi:27839
  41549. #, fuzzy, no-wrap
  41550. msgid "@code{email} (default: @code{#f})"
  41551. msgstr "@code{challenge}(默认值:@code{#f})"
  41552. #. type: table
  41553. #: guix-git/doc/guix.texi:27843
  41554. 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."
  41555. msgstr ""
  41556. #. type: item
  41557. #: guix-git/doc/guix.texi:27844 guix-git/doc/guix.texi:29591
  41558. #, fuzzy, no-wrap
  41559. msgid "@code{server} (default: @code{#f})"
  41560. msgstr "@code{speed}(默认值:@code{1.0})"
  41561. #. type: table
  41562. #: guix-git/doc/guix.texi:27847
  41563. msgid "Optional URL of ACME server. Setting this overrides certbot's default, which is the Let's Encrypt server."
  41564. msgstr ""
  41565. #. type: item
  41566. #: guix-git/doc/guix.texi:27848
  41567. #, no-wrap
  41568. msgid "@code{rsa-key-size} (default: @code{2048})"
  41569. msgstr ""
  41570. #. type: table
  41571. #: guix-git/doc/guix.texi:27850
  41572. msgid "Size of the RSA key."
  41573. msgstr ""
  41574. #. type: item
  41575. #: guix-git/doc/guix.texi:27851
  41576. #, no-wrap
  41577. msgid "@code{default-location} (default: @i{see below})"
  41578. msgstr ""
  41579. #. type: table
  41580. #: guix-git/doc/guix.texi:27860
  41581. 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."
  41582. msgstr ""
  41583. #. type: table
  41584. #: guix-git/doc/guix.texi:27864
  41585. 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."
  41586. msgstr ""
  41587. #. type: table
  41588. #: guix-git/doc/guix.texi:27868
  41589. 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}."
  41590. msgstr ""
  41591. #. type: table
  41592. #: guix-git/doc/guix.texi:27870
  41593. msgid "Pass @code{#f} to not issue a default location."
  41594. msgstr ""
  41595. #. type: deftp
  41596. #: guix-git/doc/guix.texi:27873
  41597. #, no-wrap
  41598. msgid "{Data Type} certificate-configuration"
  41599. msgstr ""
  41600. #. type: deftp
  41601. #: guix-git/doc/guix.texi:27876
  41602. msgid "Data type representing the configuration of a certificate. This type has the following parameters:"
  41603. msgstr ""
  41604. #. type: item
  41605. #: guix-git/doc/guix.texi:27878
  41606. #, no-wrap
  41607. msgid "@code{name} (default: @i{see below})"
  41608. msgstr ""
  41609. #. type: table
  41610. #: guix-git/doc/guix.texi:27882
  41611. 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}."
  41612. msgstr ""
  41613. #. type: table
  41614. #: guix-git/doc/guix.texi:27884
  41615. msgid "Its default is the first provided domain."
  41616. msgstr ""
  41617. #. type: item
  41618. #: guix-git/doc/guix.texi:27885
  41619. #, no-wrap
  41620. msgid "@code{domains} (default: @code{()})"
  41621. msgstr ""
  41622. #. type: table
  41623. #: guix-git/doc/guix.texi:27888
  41624. msgid "The first domain provided will be the subject CN of the certificate, and all domains will be Subject Alternative Names on the certificate."
  41625. msgstr ""
  41626. #. type: item
  41627. #: guix-git/doc/guix.texi:27889
  41628. #, no-wrap
  41629. msgid "@code{challenge} (default: @code{#f})"
  41630. msgstr "@code{challenge}(默认值:@code{#f})"
  41631. #. type: table
  41632. #: guix-git/doc/guix.texi:27896
  41633. 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."
  41634. msgstr ""
  41635. #. type: item
  41636. #: guix-git/doc/guix.texi:27897
  41637. #, fuzzy, no-wrap
  41638. msgid "@code{csr} (default: @code{#f})"
  41639. msgstr "@code{port}(默认值:@code{22})"
  41640. #. type: table
  41641. #: guix-git/doc/guix.texi:27904
  41642. msgid "File name of Certificate Signing Request (CSR) in DER or PEM format. If @code{#f} is specified, this argument will not be passed to certbot. If a value is specified, certbot will use it to obtain a certificate, instead of using a self-generated CSR. The domain-name(s) mentioned in @code{domains}, must be consistent with the domain-name(s) mentioned in CSR file."
  41643. msgstr ""
  41644. #. type: item
  41645. #: guix-git/doc/guix.texi:27905
  41646. #, no-wrap
  41647. msgid "@code{authentication-hook} (default: @code{#f})"
  41648. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  41649. #. type: table
  41650. #: guix-git/doc/guix.texi:27911
  41651. 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."
  41652. msgstr ""
  41653. #. type: item
  41654. #: guix-git/doc/guix.texi:27912
  41655. #, no-wrap
  41656. msgid "@code{cleanup-hook} (default: @code{#f})"
  41657. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  41658. #. type: table
  41659. #: guix-git/doc/guix.texi:27918
  41660. 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."
  41661. msgstr ""
  41662. #. type: item
  41663. #: guix-git/doc/guix.texi:27919
  41664. #, no-wrap
  41665. msgid "@code{deploy-hook} (default: @code{#f})"
  41666. msgstr ""
  41667. #. type: table
  41668. #: guix-git/doc/guix.texi:27927
  41669. 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\"}."
  41670. msgstr ""
  41671. #. type: Plain text
  41672. #: guix-git/doc/guix.texi:27934
  41673. 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}."
  41674. msgstr ""
  41675. #. type: cindex
  41676. #: guix-git/doc/guix.texi:27936
  41677. #, no-wrap
  41678. msgid "DNS (domain name system)"
  41679. msgstr ""
  41680. #. type: cindex
  41681. #: guix-git/doc/guix.texi:27937
  41682. #, no-wrap
  41683. msgid "domain name system (DNS)"
  41684. msgstr ""
  41685. #. type: Plain text
  41686. #: guix-git/doc/guix.texi:27945
  41687. 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}."
  41688. msgstr ""
  41689. #. type: subsubheading
  41690. #: guix-git/doc/guix.texi:27946
  41691. #, no-wrap
  41692. msgid "Knot Service"
  41693. msgstr ""
  41694. #. type: Plain text
  41695. #: guix-git/doc/guix.texi:27950
  41696. msgid "An example configuration of an authoritative server for two zones, one master and one slave, is:"
  41697. msgstr ""
  41698. #. type: lisp
  41699. #: guix-git/doc/guix.texi:27957
  41700. #, no-wrap
  41701. msgid ""
  41702. "(define-zone-entries example.org.zone\n"
  41703. ";; Name TTL Class Type Data\n"
  41704. " (\"@@\" \"\" \"IN\" \"A\" \"127.0.0.1\")\n"
  41705. " (\"@@\" \"\" \"IN\" \"NS\" \"ns\")\n"
  41706. " (\"ns\" \"\" \"IN\" \"A\" \"127.0.0.1\"))\n"
  41707. "\n"
  41708. msgstr ""
  41709. #. type: lisp
  41710. #: guix-git/doc/guix.texi:27964
  41711. #, no-wrap
  41712. msgid ""
  41713. "(define master-zone\n"
  41714. " (knot-zone-configuration\n"
  41715. " (domain \"example.org\")\n"
  41716. " (zone (zone-file\n"
  41717. " (origin \"example.org\")\n"
  41718. " (entries example.org.zone)))))\n"
  41719. "\n"
  41720. msgstr ""
  41721. #. type: lisp
  41722. #: guix-git/doc/guix.texi:27970
  41723. #, no-wrap
  41724. msgid ""
  41725. "(define slave-zone\n"
  41726. " (knot-zone-configuration\n"
  41727. " (domain \"plop.org\")\n"
  41728. " (dnssec-policy \"default\")\n"
  41729. " (master (list \"plop-master\"))))\n"
  41730. "\n"
  41731. msgstr ""
  41732. #. type: lisp
  41733. #: guix-git/doc/guix.texi:27975
  41734. #, no-wrap
  41735. msgid ""
  41736. "(define plop-master\n"
  41737. " (knot-remote-configuration\n"
  41738. " (id \"plop-master\")\n"
  41739. " (address (list \"208.76.58.171\"))))\n"
  41740. "\n"
  41741. msgstr ""
  41742. #. type: lisp
  41743. #: guix-git/doc/guix.texi:27984
  41744. #, no-wrap
  41745. msgid ""
  41746. "(operating-system\n"
  41747. " ;; ...\n"
  41748. " (services (cons* (service knot-service-type\n"
  41749. " (knot-configuration\n"
  41750. " (remotes (list plop-master))\n"
  41751. " (zones (list master-zone slave-zone))))\n"
  41752. " ;; ...\n"
  41753. " %base-services)))\n"
  41754. msgstr ""
  41755. #. type: deffn
  41756. #: guix-git/doc/guix.texi:27986
  41757. #, no-wrap
  41758. msgid "{Scheme Variable} knot-service-type"
  41759. msgstr ""
  41760. #. type: deffn
  41761. #: guix-git/doc/guix.texi:27988
  41762. msgid "This is the type for the Knot DNS server."
  41763. msgstr ""
  41764. #. type: deffn
  41765. #: guix-git/doc/guix.texi:27996
  41766. 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."
  41767. msgstr ""
  41768. #. type: deffn
  41769. #: guix-git/doc/guix.texi:27998
  41770. msgid "The following data types are used to configure the Knot DNS server:"
  41771. msgstr ""
  41772. #. type: deftp
  41773. #: guix-git/doc/guix.texi:28000
  41774. #, no-wrap
  41775. msgid "{Data Type} knot-key-configuration"
  41776. msgstr ""
  41777. #. type: deftp
  41778. #: guix-git/doc/guix.texi:28003
  41779. msgid "Data type representing a key. This type has the following parameters:"
  41780. msgstr ""
  41781. #. type: item
  41782. #: guix-git/doc/guix.texi:28005 guix-git/doc/guix.texi:28025
  41783. #: guix-git/doc/guix.texi:28140 guix-git/doc/guix.texi:28166
  41784. #: guix-git/doc/guix.texi:28201
  41785. #, no-wrap
  41786. msgid "@code{id} (default: @code{\"\"})"
  41787. msgstr ""
  41788. #. type: table
  41789. #: guix-git/doc/guix.texi:28008 guix-git/doc/guix.texi:28028
  41790. msgid "An identifier for other configuration fields to refer to this key. IDs must be unique and must not be empty."
  41791. msgstr ""
  41792. #. type: item
  41793. #: guix-git/doc/guix.texi:28009
  41794. #, no-wrap
  41795. msgid "@code{algorithm} (default: @code{#f})"
  41796. msgstr ""
  41797. #. type: table
  41798. #: guix-git/doc/guix.texi:28013
  41799. 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}."
  41800. msgstr ""
  41801. #. type: item
  41802. #: guix-git/doc/guix.texi:28014
  41803. #, no-wrap
  41804. msgid "@code{secret} (default: @code{\"\"})"
  41805. msgstr ""
  41806. #. type: table
  41807. #: guix-git/doc/guix.texi:28016
  41808. msgid "The secret key itself."
  41809. msgstr ""
  41810. #. type: deftp
  41811. #: guix-git/doc/guix.texi:28020
  41812. #, no-wrap
  41813. msgid "{Data Type} knot-acl-configuration"
  41814. msgstr ""
  41815. #. type: deftp
  41816. #: guix-git/doc/guix.texi:28023
  41817. msgid "Data type representing an Access Control List (ACL) configuration. This type has the following parameters:"
  41818. msgstr ""
  41819. #. type: item
  41820. #: guix-git/doc/guix.texi:28029 guix-git/doc/guix.texi:28144
  41821. #, no-wrap
  41822. msgid "@code{address} (default: @code{'()})"
  41823. msgstr ""
  41824. #. type: table
  41825. #: guix-git/doc/guix.texi:28033
  41826. 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."
  41827. msgstr ""
  41828. #. type: item
  41829. #: guix-git/doc/guix.texi:28034
  41830. #, no-wrap
  41831. msgid "@code{key} (default: @code{'()})"
  41832. msgstr ""
  41833. #. type: table
  41834. #: guix-git/doc/guix.texi:28038
  41835. 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."
  41836. msgstr ""
  41837. #. type: item
  41838. #: guix-git/doc/guix.texi:28039
  41839. #, no-wrap
  41840. msgid "@code{action} (default: @code{'()})"
  41841. msgstr ""
  41842. #. type: table
  41843. #: guix-git/doc/guix.texi:28043
  41844. 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}."
  41845. msgstr ""
  41846. #. type: item
  41847. #: guix-git/doc/guix.texi:28044
  41848. #, no-wrap
  41849. msgid "@code{deny?} (default: @code{#f})"
  41850. msgstr ""
  41851. #. type: table
  41852. #: guix-git/doc/guix.texi:28047
  41853. msgid "When true, the ACL defines restrictions. Listed actions are forbidden. When false, listed actions are allowed."
  41854. msgstr ""
  41855. #. type: deftp
  41856. #: guix-git/doc/guix.texi:28051
  41857. #, no-wrap
  41858. msgid "{Data Type} zone-entry"
  41859. msgstr ""
  41860. #. type: deftp
  41861. #: guix-git/doc/guix.texi:28054
  41862. msgid "Data type representing a record entry in a zone file. This type has the following parameters:"
  41863. msgstr ""
  41864. #. type: item
  41865. #: guix-git/doc/guix.texi:28056
  41866. #, no-wrap
  41867. msgid "@code{name} (default: @code{\"@@\"})"
  41868. msgstr ""
  41869. #. type: table
  41870. #: guix-git/doc/guix.texi:28062
  41871. 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}."
  41872. msgstr ""
  41873. #. type: item
  41874. #: guix-git/doc/guix.texi:28063
  41875. #, no-wrap
  41876. msgid "@code{ttl} (default: @code{\"\"})"
  41877. msgstr ""
  41878. #. type: table
  41879. #: guix-git/doc/guix.texi:28065
  41880. msgid "The Time-To-Live (TTL) of this record. If not set, the default TTL is used."
  41881. msgstr ""
  41882. #. type: item
  41883. #: guix-git/doc/guix.texi:28066
  41884. #, no-wrap
  41885. msgid "@code{class} (default: @code{\"IN\"})"
  41886. msgstr ""
  41887. #. type: table
  41888. #: guix-git/doc/guix.texi:28069
  41889. msgid "The class of the record. Knot currently supports only @code{\"IN\"} and partially @code{\"CH\"}."
  41890. msgstr ""
  41891. #. type: item
  41892. #: guix-git/doc/guix.texi:28070
  41893. #, no-wrap
  41894. msgid "@code{type} (default: @code{\"A\"})"
  41895. msgstr ""
  41896. #. type: table
  41897. #: guix-git/doc/guix.texi:28074
  41898. 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."
  41899. msgstr ""
  41900. #. type: item
  41901. #: guix-git/doc/guix.texi:28075
  41902. #, no-wrap
  41903. msgid "@code{data} (default: @code{\"\"})"
  41904. msgstr ""
  41905. #. type: table
  41906. #: guix-git/doc/guix.texi:28079
  41907. 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."
  41908. msgstr ""
  41909. #. type: deftp
  41910. #: guix-git/doc/guix.texi:28083
  41911. #, no-wrap
  41912. msgid "{Data Type} zone-file"
  41913. msgstr ""
  41914. #. type: deftp
  41915. #: guix-git/doc/guix.texi:28086
  41916. msgid "Data type representing the content of a zone file. This type has the following parameters:"
  41917. msgstr ""
  41918. #. type: table
  41919. #: guix-git/doc/guix.texi:28095
  41920. 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}."
  41921. msgstr ""
  41922. #. type: item
  41923. #: guix-git/doc/guix.texi:28096
  41924. #, no-wrap
  41925. msgid "@code{origin} (default: @code{\"\"})"
  41926. msgstr ""
  41927. #. type: table
  41928. #: guix-git/doc/guix.texi:28098
  41929. msgid "The name of your zone. This parameter cannot be empty."
  41930. msgstr ""
  41931. #. type: item
  41932. #: guix-git/doc/guix.texi:28099
  41933. #, no-wrap
  41934. msgid "@code{ns} (default: @code{\"ns\"})"
  41935. msgstr ""
  41936. #. type: table
  41937. #: guix-git/doc/guix.texi:28104
  41938. 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."
  41939. msgstr ""
  41940. #. type: item
  41941. #: guix-git/doc/guix.texi:28105
  41942. #, no-wrap
  41943. msgid "@code{mail} (default: @code{\"hostmaster\"})"
  41944. msgstr ""
  41945. #. type: table
  41946. #: guix-git/doc/guix.texi:28108
  41947. msgid "An email address people can contact you at, as the owner of the zone. This is translated as @code{<mail>@@<origin>}."
  41948. msgstr ""
  41949. #. type: item
  41950. #: guix-git/doc/guix.texi:28109
  41951. #, no-wrap
  41952. msgid "@code{serial} (default: @code{1})"
  41953. msgstr ""
  41954. #. type: table
  41955. #: guix-git/doc/guix.texi:28113
  41956. 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."
  41957. msgstr ""
  41958. #. type: item
  41959. #: guix-git/doc/guix.texi:28114
  41960. #, no-wrap
  41961. msgid "@code{refresh} (default: @code{(* 2 24 3600)})"
  41962. msgstr ""
  41963. #. type: table
  41964. #: guix-git/doc/guix.texi:28118
  41965. 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)}."
  41966. msgstr ""
  41967. #. type: item
  41968. #: guix-git/doc/guix.texi:28119
  41969. #, no-wrap
  41970. msgid "@code{retry} (default: @code{(* 15 60)})"
  41971. msgstr ""
  41972. #. type: table
  41973. #: guix-git/doc/guix.texi:28122
  41974. msgid "The period after which a slave will retry to contact its master when it fails to do so a first time."
  41975. msgstr ""
  41976. #. type: item
  41977. #: guix-git/doc/guix.texi:28123
  41978. #, no-wrap
  41979. msgid "@code{expiry} (default: @code{(* 14 24 3600)})"
  41980. msgstr ""
  41981. #. type: table
  41982. #: guix-git/doc/guix.texi:28127
  41983. 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."
  41984. msgstr ""
  41985. #. type: item
  41986. #: guix-git/doc/guix.texi:28128
  41987. #, no-wrap
  41988. msgid "@code{nx} (default: @code{3600})"
  41989. msgstr ""
  41990. #. type: table
  41991. #: guix-git/doc/guix.texi:28131
  41992. msgid "Default TTL of inexistent records. This delay is usually short because you want your new domains to reach everyone quickly."
  41993. msgstr ""
  41994. #. type: deftp
  41995. #: guix-git/doc/guix.texi:28135
  41996. #, no-wrap
  41997. msgid "{Data Type} knot-remote-configuration"
  41998. msgstr ""
  41999. #. type: deftp
  42000. #: guix-git/doc/guix.texi:28138
  42001. msgid "Data type representing a remote configuration. This type has the following parameters:"
  42002. msgstr ""
  42003. #. type: table
  42004. #: guix-git/doc/guix.texi:28143
  42005. msgid "An identifier for other configuration fields to refer to this remote. IDs must be unique and must not be empty."
  42006. msgstr ""
  42007. #. type: table
  42008. #: guix-git/doc/guix.texi:28148
  42009. 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."
  42010. msgstr ""
  42011. #. type: item
  42012. #: guix-git/doc/guix.texi:28149
  42013. #, no-wrap
  42014. msgid "@code{via} (default: @code{'()})"
  42015. msgstr ""
  42016. #. type: table
  42017. #: guix-git/doc/guix.texi:28153
  42018. 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."
  42019. msgstr ""
  42020. #. type: table
  42021. #: guix-git/doc/guix.texi:28157
  42022. msgid "A reference to a key, that is a string containing the identifier of a key defined in a @code{knot-key-configuration} field."
  42023. msgstr ""
  42024. #. type: deftp
  42025. #: guix-git/doc/guix.texi:28161
  42026. #, no-wrap
  42027. msgid "{Data Type} knot-keystore-configuration"
  42028. msgstr ""
  42029. #. type: deftp
  42030. #: guix-git/doc/guix.texi:28164
  42031. msgid "Data type representing a keystore to hold dnssec keys. This type has the following parameters:"
  42032. msgstr ""
  42033. #. type: table
  42034. #: guix-git/doc/guix.texi:28168
  42035. msgid "The id of the keystore. It must not be empty."
  42036. msgstr ""
  42037. #. type: item
  42038. #: guix-git/doc/guix.texi:28169
  42039. #, no-wrap
  42040. msgid "@code{backend} (default: @code{'pem})"
  42041. msgstr ""
  42042. #. type: table
  42043. #: guix-git/doc/guix.texi:28171
  42044. msgid "The backend to store the keys in. Can be @code{'pem} or @code{'pkcs11}."
  42045. msgstr ""
  42046. #. type: item
  42047. #: guix-git/doc/guix.texi:28172
  42048. #, no-wrap
  42049. msgid "@code{config} (default: @code{\"/var/lib/knot/keys/keys\"})"
  42050. msgstr ""
  42051. #. type: table
  42052. #: guix-git/doc/guix.texi:28176
  42053. 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."
  42054. msgstr ""
  42055. #. type: deftp
  42056. #: guix-git/doc/guix.texi:28180
  42057. #, no-wrap
  42058. msgid "{Data Type} knot-policy-configuration"
  42059. msgstr ""
  42060. #. type: deftp
  42061. #: guix-git/doc/guix.texi:28184
  42062. 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."
  42063. msgstr ""
  42064. #. type: deftp
  42065. #: guix-git/doc/guix.texi:28191
  42066. 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."
  42067. msgstr ""
  42068. #. type: deftp
  42069. #: guix-git/doc/guix.texi:28197
  42070. 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."
  42071. msgstr ""
  42072. #. type: deftp
  42073. #: guix-git/doc/guix.texi:28199
  42074. msgid "This type has the following parameters:"
  42075. msgstr ""
  42076. #. type: table
  42077. #: guix-git/doc/guix.texi:28203
  42078. msgid "The id of the policy. It must not be empty."
  42079. msgstr ""
  42080. #. type: item
  42081. #: guix-git/doc/guix.texi:28204
  42082. #, no-wrap
  42083. msgid "@code{keystore} (default: @code{\"default\"})"
  42084. msgstr ""
  42085. #. type: table
  42086. #: guix-git/doc/guix.texi:28209
  42087. 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)."
  42088. msgstr ""
  42089. #. type: item
  42090. #: guix-git/doc/guix.texi:28210
  42091. #, no-wrap
  42092. msgid "@code{manual?} (default: @code{#f})"
  42093. msgstr ""
  42094. #. type: table
  42095. #: guix-git/doc/guix.texi:28212
  42096. msgid "Whether the key management is manual or automatic."
  42097. msgstr ""
  42098. #. type: item
  42099. #: guix-git/doc/guix.texi:28213
  42100. #, no-wrap
  42101. msgid "@code{single-type-signing?} (default: @code{#f})"
  42102. msgstr ""
  42103. #. type: table
  42104. #: guix-git/doc/guix.texi:28215
  42105. msgid "When @code{#t}, use the Single-Type Signing Scheme."
  42106. msgstr ""
  42107. #. type: item
  42108. #: guix-git/doc/guix.texi:28216
  42109. #, no-wrap
  42110. msgid "@code{algorithm} (default: @code{\"ecdsap256sha256\"})"
  42111. msgstr ""
  42112. #. type: table
  42113. #: guix-git/doc/guix.texi:28218
  42114. msgid "An algorithm of signing keys and issued signatures."
  42115. msgstr ""
  42116. #. type: item
  42117. #: guix-git/doc/guix.texi:28219
  42118. #, no-wrap
  42119. msgid "@code{ksk-size} (default: @code{256})"
  42120. msgstr ""
  42121. #. type: table
  42122. #: guix-git/doc/guix.texi:28222
  42123. msgid "The length of the KSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  42124. msgstr ""
  42125. #. type: item
  42126. #: guix-git/doc/guix.texi:28223
  42127. #, no-wrap
  42128. msgid "@code{zsk-size} (default: @code{256})"
  42129. msgstr ""
  42130. #. type: table
  42131. #: guix-git/doc/guix.texi:28226
  42132. msgid "The length of the ZSK@. Note that this value is correct for the default algorithm, but would be unsecure for other algorithms."
  42133. msgstr ""
  42134. #. type: item
  42135. #: guix-git/doc/guix.texi:28227
  42136. #, no-wrap
  42137. msgid "@code{dnskey-ttl} (default: @code{'default})"
  42138. msgstr ""
  42139. #. type: table
  42140. #: guix-git/doc/guix.texi:28230
  42141. msgid "The TTL value for DNSKEY records added into zone apex. The special @code{'default} value means same as the zone SOA TTL."
  42142. msgstr ""
  42143. #. type: item
  42144. #: guix-git/doc/guix.texi:28231
  42145. #, no-wrap
  42146. msgid "@code{zsk-lifetime} (default: @code{(* 30 24 3600)})"
  42147. msgstr ""
  42148. #. type: table
  42149. #: guix-git/doc/guix.texi:28233
  42150. msgid "The period between ZSK publication and the next rollover initiation."
  42151. msgstr ""
  42152. #. type: item
  42153. #: guix-git/doc/guix.texi:28234
  42154. #, no-wrap
  42155. msgid "@code{propagation-delay} (default: @code{(* 24 3600)})"
  42156. msgstr ""
  42157. #. type: table
  42158. #: guix-git/doc/guix.texi:28237
  42159. 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."
  42160. msgstr ""
  42161. #. type: item
  42162. #: guix-git/doc/guix.texi:28238
  42163. #, no-wrap
  42164. msgid "@code{rrsig-lifetime} (default: @code{(* 14 24 3600)})"
  42165. msgstr ""
  42166. #. type: table
  42167. #: guix-git/doc/guix.texi:28240
  42168. msgid "A validity period of newly issued signatures."
  42169. msgstr ""
  42170. #. type: item
  42171. #: guix-git/doc/guix.texi:28241
  42172. #, no-wrap
  42173. msgid "@code{rrsig-refresh} (default: @code{(* 7 24 3600)})"
  42174. msgstr ""
  42175. #. type: table
  42176. #: guix-git/doc/guix.texi:28243
  42177. msgid "A period how long before a signature expiration the signature will be refreshed."
  42178. msgstr ""
  42179. #. type: item
  42180. #: guix-git/doc/guix.texi:28244
  42181. #, no-wrap
  42182. msgid "@code{nsec3?} (default: @code{#f})"
  42183. msgstr ""
  42184. #. type: table
  42185. #: guix-git/doc/guix.texi:28246
  42186. msgid "When @code{#t}, NSEC3 will be used instead of NSEC."
  42187. msgstr ""
  42188. #. type: item
  42189. #: guix-git/doc/guix.texi:28247
  42190. #, no-wrap
  42191. msgid "@code{nsec3-iterations} (default: @code{5})"
  42192. msgstr ""
  42193. #. type: table
  42194. #: guix-git/doc/guix.texi:28249
  42195. msgid "The number of additional times the hashing is performed."
  42196. msgstr ""
  42197. #. type: item
  42198. #: guix-git/doc/guix.texi:28250
  42199. #, no-wrap
  42200. msgid "@code{nsec3-salt-length} (default: @code{8})"
  42201. msgstr ""
  42202. #. type: table
  42203. #: guix-git/doc/guix.texi:28253
  42204. msgid "The length of a salt field in octets, which is appended to the original owner name before hashing."
  42205. msgstr ""
  42206. #. type: item
  42207. #: guix-git/doc/guix.texi:28254
  42208. #, no-wrap
  42209. msgid "@code{nsec3-salt-lifetime} (default: @code{(* 30 24 3600)})"
  42210. msgstr ""
  42211. #. type: table
  42212. #: guix-git/doc/guix.texi:28256
  42213. msgid "The validity period of newly issued salt field."
  42214. msgstr ""
  42215. #. type: deftp
  42216. #: guix-git/doc/guix.texi:28260
  42217. #, no-wrap
  42218. msgid "{Data Type} knot-zone-configuration"
  42219. msgstr ""
  42220. #. type: deftp
  42221. #: guix-git/doc/guix.texi:28263
  42222. msgid "Data type representing a zone served by Knot. This type has the following parameters:"
  42223. msgstr ""
  42224. #. type: item
  42225. #: guix-git/doc/guix.texi:28265
  42226. #, no-wrap
  42227. msgid "@code{domain} (default: @code{\"\"})"
  42228. msgstr ""
  42229. #. type: table
  42230. #: guix-git/doc/guix.texi:28267
  42231. msgid "The domain served by this configuration. It must not be empty."
  42232. msgstr ""
  42233. #. type: item
  42234. #: guix-git/doc/guix.texi:28268
  42235. #, no-wrap
  42236. msgid "@code{file} (default: @code{\"\"})"
  42237. msgstr ""
  42238. #. type: table
  42239. #: guix-git/doc/guix.texi:28271
  42240. 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."
  42241. msgstr ""
  42242. #. type: item
  42243. #: guix-git/doc/guix.texi:28272
  42244. #, no-wrap
  42245. msgid "@code{zone} (default: @code{(zone-file)})"
  42246. msgstr ""
  42247. #. type: table
  42248. #: guix-git/doc/guix.texi:28275
  42249. msgid "The content of the zone file. This parameter is ignored by slave zones. It must contain a zone-file record."
  42250. msgstr ""
  42251. #. type: item
  42252. #: guix-git/doc/guix.texi:28276
  42253. #, no-wrap
  42254. msgid "@code{master} (default: @code{'()})"
  42255. msgstr ""
  42256. #. type: table
  42257. #: guix-git/doc/guix.texi:28279
  42258. 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."
  42259. msgstr ""
  42260. #. type: item
  42261. #: guix-git/doc/guix.texi:28280
  42262. #, no-wrap
  42263. msgid "@code{ddns-master} (default: @code{#f})"
  42264. msgstr ""
  42265. #. type: table
  42266. #: guix-git/doc/guix.texi:28283
  42267. msgid "The main master. When empty, it defaults to the first master in the list of masters."
  42268. msgstr ""
  42269. #. type: item
  42270. #: guix-git/doc/guix.texi:28284
  42271. #, no-wrap
  42272. msgid "@code{notify} (default: @code{'()})"
  42273. msgstr ""
  42274. #. type: table
  42275. #: guix-git/doc/guix.texi:28286
  42276. msgid "A list of slave remote identifiers."
  42277. msgstr ""
  42278. #. type: item
  42279. #: guix-git/doc/guix.texi:28287
  42280. #, no-wrap
  42281. msgid "@code{acl} (default: @code{'()})"
  42282. msgstr ""
  42283. #. type: table
  42284. #: guix-git/doc/guix.texi:28289
  42285. msgid "A list of acl identifiers."
  42286. msgstr ""
  42287. #. type: item
  42288. #: guix-git/doc/guix.texi:28290
  42289. #, no-wrap
  42290. msgid "@code{semantic-checks?} (default: @code{#f})"
  42291. msgstr ""
  42292. #. type: table
  42293. #: guix-git/doc/guix.texi:28292
  42294. msgid "When set, this adds more semantic checks to the zone."
  42295. msgstr ""
  42296. #. type: item
  42297. #: guix-git/doc/guix.texi:28293
  42298. #, no-wrap
  42299. msgid "@code{zonefile-sync} (default: @code{0})"
  42300. msgstr ""
  42301. #. type: table
  42302. #: guix-git/doc/guix.texi:28296
  42303. msgid "The delay between a modification in memory and on disk. 0 means immediate synchronization."
  42304. msgstr ""
  42305. #. type: item
  42306. #: guix-git/doc/guix.texi:28297
  42307. #, no-wrap
  42308. msgid "@code{zonefile-load} (default: @code{#f})"
  42309. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  42310. #. type: table
  42311. #: guix-git/doc/guix.texi:28300
  42312. msgid "The way the zone file contents are applied during zone load. Possible values are:"
  42313. msgstr ""
  42314. #. type: item
  42315. #: guix-git/doc/guix.texi:28302
  42316. #, no-wrap
  42317. msgid "@code{#f} for using the default value from Knot,"
  42318. msgstr ""
  42319. #. type: item
  42320. #: guix-git/doc/guix.texi:28303
  42321. #, no-wrap
  42322. msgid "@code{'none} for not using the zone file at all,"
  42323. msgstr ""
  42324. #. type: item
  42325. #: guix-git/doc/guix.texi:28304
  42326. #, no-wrap
  42327. msgid "@code{'difference} for computing the difference between already available"
  42328. msgstr ""
  42329. #. type: itemize
  42330. #: guix-git/doc/guix.texi:28306
  42331. msgid "contents and zone contents and applying it to the current zone contents,"
  42332. msgstr ""
  42333. #. type: item
  42334. #: guix-git/doc/guix.texi:28306
  42335. #, no-wrap
  42336. msgid "@code{'difference-no-serial} for the same as @code{'difference}, but"
  42337. msgstr ""
  42338. #. type: itemize
  42339. #: guix-git/doc/guix.texi:28309
  42340. msgid "ignoring the SOA serial in the zone file, while the server takes care of it automatically."
  42341. msgstr ""
  42342. #. type: item
  42343. #: guix-git/doc/guix.texi:28309
  42344. #, no-wrap
  42345. msgid "@code{'whole} for loading zone contents from the zone file."
  42346. msgstr ""
  42347. #. type: item
  42348. #: guix-git/doc/guix.texi:28312
  42349. #, no-wrap
  42350. msgid "@code{journal-content} (default: @code{#f})"
  42351. msgstr "@code{journal-content}(默认值:@code{#f})"
  42352. #. type: table
  42353. #: guix-git/doc/guix.texi:28317
  42354. 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."
  42355. msgstr ""
  42356. #. type: item
  42357. #: guix-git/doc/guix.texi:28318
  42358. #, no-wrap
  42359. msgid "@code{max-journal-usage} (default: @code{#f})"
  42360. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  42361. #. type: table
  42362. #: guix-git/doc/guix.texi:28321
  42363. msgid "The maximum size for the journal on disk. @code{#f} does not set this option, so the default value from Knot is used."
  42364. msgstr ""
  42365. #. type: item
  42366. #: guix-git/doc/guix.texi:28322
  42367. #, no-wrap
  42368. msgid "@code{max-journal-depth} (default: @code{#f})"
  42369. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  42370. #. type: table
  42371. #: guix-git/doc/guix.texi:28325
  42372. msgid "The maximum size of the history. @code{#f} does not set this option, so the default value from Knot is used."
  42373. msgstr ""
  42374. #. type: item
  42375. #: guix-git/doc/guix.texi:28326
  42376. #, no-wrap
  42377. msgid "@code{max-zone-size} (default: @code{#f})"
  42378. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  42379. #. type: table
  42380. #: guix-git/doc/guix.texi:28330
  42381. 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."
  42382. msgstr ""
  42383. #. type: item
  42384. #: guix-git/doc/guix.texi:28331
  42385. #, no-wrap
  42386. msgid "@code{dnssec-policy} (default: @code{#f})"
  42387. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  42388. #. type: table
  42389. #: guix-git/doc/guix.texi:28335
  42390. 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."
  42391. msgstr ""
  42392. #. type: item
  42393. #: guix-git/doc/guix.texi:28336
  42394. #, no-wrap
  42395. msgid "@code{serial-policy} (default: @code{'increment})"
  42396. msgstr ""
  42397. #. type: table
  42398. #: guix-git/doc/guix.texi:28338
  42399. msgid "A policy between @code{'increment} and @code{'unixtime}."
  42400. msgstr ""
  42401. #. type: deftp
  42402. #: guix-git/doc/guix.texi:28342
  42403. #, no-wrap
  42404. msgid "{Data Type} knot-configuration"
  42405. msgstr ""
  42406. #. type: deftp
  42407. #: guix-git/doc/guix.texi:28345
  42408. msgid "Data type representing the Knot configuration. This type has the following parameters:"
  42409. msgstr ""
  42410. #. type: item
  42411. #: guix-git/doc/guix.texi:28347
  42412. #, no-wrap
  42413. msgid "@code{knot} (default: @code{knot})"
  42414. msgstr ""
  42415. #. type: table
  42416. #: guix-git/doc/guix.texi:28349
  42417. msgid "The Knot package."
  42418. msgstr ""
  42419. #. type: item
  42420. #: guix-git/doc/guix.texi:28350
  42421. #, no-wrap
  42422. msgid "@code{run-directory} (default: @code{\"/var/run/knot\"})"
  42423. msgstr ""
  42424. #. type: table
  42425. #: guix-git/doc/guix.texi:28352
  42426. msgid "The run directory. This directory will be used for pid file and sockets."
  42427. msgstr ""
  42428. #. type: item
  42429. #: guix-git/doc/guix.texi:28353
  42430. #, no-wrap
  42431. msgid "@code{includes} (default: @code{'()})"
  42432. msgstr "@code{includes}(默认值:@code{'()})"
  42433. #. type: table
  42434. #: guix-git/doc/guix.texi:28356
  42435. msgid "A list of strings or file-like objects denoting other files that must be included at the top of the configuration file."
  42436. msgstr ""
  42437. #. type: cindex
  42438. #: guix-git/doc/guix.texi:28357
  42439. #, no-wrap
  42440. msgid "secrets, Knot service"
  42441. msgstr "秘密,Knot服务。"
  42442. #. type: table
  42443. #: guix-git/doc/guix.texi:28363
  42444. 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."
  42445. msgstr ""
  42446. #. type: table
  42447. #: guix-git/doc/guix.texi:28368
  42448. 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:"
  42449. msgstr ""
  42450. #. type: example
  42451. #: guix-git/doc/guix.texi:28372
  42452. #, no-wrap
  42453. msgid ""
  42454. "keymgr -t mysecret > /etc/knot/secrets.conf\n"
  42455. "chmod 600 /etc/knot/secrets.conf\n"
  42456. msgstr ""
  42457. #. type: table
  42458. #: guix-git/doc/guix.texi:28378
  42459. 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."
  42460. msgstr ""
  42461. #. type: table
  42462. #: guix-git/doc/guix.texi:28380
  42463. msgid "It can also be used to add configuration not supported by this interface."
  42464. msgstr ""
  42465. #. type: item
  42466. #: guix-git/doc/guix.texi:28381
  42467. #, no-wrap
  42468. msgid "@code{listen-v4} (default: @code{\"0.0.0.0\"})"
  42469. msgstr ""
  42470. #. type: table
  42471. #: guix-git/doc/guix.texi:28383 guix-git/doc/guix.texi:28386
  42472. msgid "An ip address on which to listen."
  42473. msgstr ""
  42474. #. type: item
  42475. #: guix-git/doc/guix.texi:28384
  42476. #, no-wrap
  42477. msgid "@code{listen-v6} (default: @code{\"::\"})"
  42478. msgstr ""
  42479. #. type: item
  42480. #: guix-git/doc/guix.texi:28387
  42481. #, no-wrap
  42482. msgid "@code{listen-port} (default: @code{53})"
  42483. msgstr ""
  42484. #. type: table
  42485. #: guix-git/doc/guix.texi:28389
  42486. msgid "A port on which to listen."
  42487. msgstr ""
  42488. #. type: item
  42489. #: guix-git/doc/guix.texi:28390
  42490. #, no-wrap
  42491. msgid "@code{keys} (default: @code{'()})"
  42492. msgstr ""
  42493. #. type: table
  42494. #: guix-git/doc/guix.texi:28392
  42495. msgid "The list of knot-key-configuration used by this configuration."
  42496. msgstr ""
  42497. #. type: item
  42498. #: guix-git/doc/guix.texi:28393
  42499. #, no-wrap
  42500. msgid "@code{acls} (default: @code{'()})"
  42501. msgstr ""
  42502. #. type: table
  42503. #: guix-git/doc/guix.texi:28395
  42504. msgid "The list of knot-acl-configuration used by this configuration."
  42505. msgstr ""
  42506. #. type: item
  42507. #: guix-git/doc/guix.texi:28396
  42508. #, no-wrap
  42509. msgid "@code{remotes} (default: @code{'()})"
  42510. msgstr ""
  42511. #. type: table
  42512. #: guix-git/doc/guix.texi:28398
  42513. msgid "The list of knot-remote-configuration used by this configuration."
  42514. msgstr ""
  42515. #. type: item
  42516. #: guix-git/doc/guix.texi:28399
  42517. #, no-wrap
  42518. msgid "@code{zones} (default: @code{'()})"
  42519. msgstr ""
  42520. #. type: table
  42521. #: guix-git/doc/guix.texi:28401
  42522. msgid "The list of knot-zone-configuration used by this configuration."
  42523. msgstr ""
  42524. #. type: subsubheading
  42525. #: guix-git/doc/guix.texi:28405
  42526. #, fuzzy, no-wrap
  42527. msgid "Knot Resolver Service"
  42528. msgstr "Kerberos服务"
  42529. #. type: deffn
  42530. #: guix-git/doc/guix.texi:28407
  42531. #, no-wrap
  42532. msgid "{Scheme Variable} knot-resolver-service-type"
  42533. msgstr ""
  42534. #. type: deffn
  42535. #: guix-git/doc/guix.texi:28410
  42536. msgid "This is the type of the knot resolver service, whose value should be an @code{knot-resolver-configuration} object as in this example:"
  42537. msgstr ""
  42538. #. type: lisp
  42539. #: guix-git/doc/guix.texi:28420
  42540. #, no-wrap
  42541. msgid ""
  42542. "(service knot-resolver-service-type\n"
  42543. " (knot-resolver-configuration\n"
  42544. " (kresd-config-file (plain-file \"kresd.conf\" \"\n"
  42545. "net.listen('192.168.0.1', 5353)\n"
  42546. "user('knot-resolver', 'knot-resolver')\n"
  42547. "modules = @{ 'hints > iterate', 'stats', 'predict' @}\n"
  42548. "cache.size = 100 * MB\n"
  42549. "\"))))\n"
  42550. msgstr ""
  42551. #. type: deffn
  42552. #: guix-git/doc/guix.texi:28423
  42553. msgid "For more information, refer its @url{https://knot-resolver.readthedocs.org/en/stable/daemon.html#configuration, manual}."
  42554. msgstr ""
  42555. #. type: deftp
  42556. #: guix-git/doc/guix.texi:28425
  42557. #, no-wrap
  42558. msgid "{Data Type} knot-resolver-configuration"
  42559. msgstr ""
  42560. #. type: deftp
  42561. #: guix-git/doc/guix.texi:28427
  42562. #, fuzzy
  42563. msgid "Data type representing the configuration of knot-resolver."
  42564. msgstr "管理操作系统配置。"
  42565. #. type: item
  42566. #: guix-git/doc/guix.texi:28429
  42567. #, fuzzy, no-wrap
  42568. msgid "@code{package} (default: @var{knot-resolver})"
  42569. msgstr "@code{gnome}(默认值:@code{gnome})"
  42570. #. type: table
  42571. #: guix-git/doc/guix.texi:28431
  42572. msgid "Package object of the knot DNS resolver."
  42573. msgstr ""
  42574. #. type: item
  42575. #: guix-git/doc/guix.texi:28432
  42576. #, fuzzy, no-wrap
  42577. msgid "@code{kresd-config-file} (default: %kresd.conf)"
  42578. msgstr "@code{compression-level}(默认值:@code{3})"
  42579. #. type: table
  42580. #: guix-git/doc/guix.texi:28435
  42581. 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}."
  42582. msgstr ""
  42583. #. type: item
  42584. #: guix-git/doc/guix.texi:28436
  42585. #, fuzzy, no-wrap
  42586. msgid "@code{garbage-collection-interval} (default: 1000)"
  42587. msgstr "@code{parallel-builds}(默认值:@code{1})"
  42588. #. type: table
  42589. #: guix-git/doc/guix.texi:28438
  42590. msgid "Number of milliseconds for @code{kres-cache-gc} to periodically trim the cache."
  42591. msgstr ""
  42592. #. type: subsubheading
  42593. #: guix-git/doc/guix.texi:28443
  42594. #, no-wrap
  42595. msgid "Dnsmasq Service"
  42596. msgstr ""
  42597. #. type: deffn
  42598. #: guix-git/doc/guix.texi:28445
  42599. #, no-wrap
  42600. msgid "{Scheme Variable} dnsmasq-service-type"
  42601. msgstr ""
  42602. #. type: deffn
  42603. #: guix-git/doc/guix.texi:28448
  42604. msgid "This is the type of the dnsmasq service, whose value should be an @code{dnsmasq-configuration} object as in this example:"
  42605. msgstr ""
  42606. #. type: lisp
  42607. #: guix-git/doc/guix.texi:28454
  42608. #, no-wrap
  42609. msgid ""
  42610. "(service dnsmasq-service-type\n"
  42611. " (dnsmasq-configuration\n"
  42612. " (no-resolv? #t)\n"
  42613. " (servers '(\"192.168.1.1\"))))\n"
  42614. msgstr ""
  42615. #. type: deftp
  42616. #: guix-git/doc/guix.texi:28457
  42617. #, no-wrap
  42618. msgid "{Data Type} dnsmasq-configuration"
  42619. msgstr ""
  42620. #. type: deftp
  42621. #: guix-git/doc/guix.texi:28459
  42622. msgid "Data type representing the configuration of dnsmasq."
  42623. msgstr ""
  42624. #. type: item
  42625. #: guix-git/doc/guix.texi:28461
  42626. #, no-wrap
  42627. msgid "@code{package} (default: @var{dnsmasq})"
  42628. msgstr ""
  42629. #. type: table
  42630. #: guix-git/doc/guix.texi:28463
  42631. msgid "Package object of the dnsmasq server."
  42632. msgstr ""
  42633. #. type: item
  42634. #: guix-git/doc/guix.texi:28464
  42635. #, no-wrap
  42636. msgid "@code{no-hosts?} (default: @code{#f})"
  42637. msgstr ""
  42638. #. type: table
  42639. #: guix-git/doc/guix.texi:28466
  42640. msgid "When true, don't read the hostnames in /etc/hosts."
  42641. msgstr ""
  42642. #. type: item
  42643. #: guix-git/doc/guix.texi:28467
  42644. #, no-wrap
  42645. msgid "@code{port} (default: @code{53})"
  42646. msgstr ""
  42647. #. type: table
  42648. #: guix-git/doc/guix.texi:28470
  42649. msgid "The port to listen on. Setting this to zero completely disables DNS responses, leaving only DHCP and/or TFTP functions."
  42650. msgstr ""
  42651. #. type: item
  42652. #: guix-git/doc/guix.texi:28471
  42653. #, no-wrap
  42654. msgid "@code{local-service?} (default: @code{#t})"
  42655. msgstr ""
  42656. #. type: table
  42657. #: guix-git/doc/guix.texi:28474
  42658. 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."
  42659. msgstr ""
  42660. #. type: item
  42661. #: guix-git/doc/guix.texi:28475
  42662. #, no-wrap
  42663. msgid "@code{listen-addresses} (default: @code{'()})"
  42664. msgstr ""
  42665. #. type: table
  42666. #: guix-git/doc/guix.texi:28477
  42667. msgid "Listen on the given IP addresses."
  42668. msgstr ""
  42669. #. type: item
  42670. #: guix-git/doc/guix.texi:28478
  42671. #, no-wrap
  42672. msgid "@code{resolv-file} (default: @code{\"/etc/resolv.conf\"})"
  42673. msgstr ""
  42674. #. type: table
  42675. #: guix-git/doc/guix.texi:28480
  42676. msgid "The file to read the IP address of the upstream nameservers from."
  42677. msgstr ""
  42678. #. type: item
  42679. #: guix-git/doc/guix.texi:28481
  42680. #, no-wrap
  42681. msgid "@code{no-resolv?} (default: @code{#f})"
  42682. msgstr ""
  42683. #. type: table
  42684. #: guix-git/doc/guix.texi:28483
  42685. msgid "When true, don't read @var{resolv-file}."
  42686. msgstr ""
  42687. #. type: item
  42688. #: guix-git/doc/guix.texi:28484
  42689. #, no-wrap
  42690. msgid "@code{servers} (default: @code{'()})"
  42691. msgstr ""
  42692. #. type: table
  42693. #: guix-git/doc/guix.texi:28486
  42694. msgid "Specify IP address of upstream servers directly."
  42695. msgstr ""
  42696. #. type: item
  42697. #: guix-git/doc/guix.texi:28487
  42698. #, fuzzy, no-wrap
  42699. msgid "@code{addresses} (default: @code{'()})"
  42700. msgstr "@code{features} (@code{'()})"
  42701. #. type: table
  42702. #: guix-git/doc/guix.texi:28491
  42703. 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."
  42704. msgstr ""
  42705. #. type: table
  42706. #: guix-git/doc/guix.texi:28493
  42707. msgid "This is useful for redirecting hosts locally, for example:"
  42708. msgstr ""
  42709. #. type: lisp
  42710. #: guix-git/doc/guix.texi:28502
  42711. #, no-wrap
  42712. msgid ""
  42713. "(service dnsmasq-service-type\n"
  42714. " (dnsmasq-configuration\n"
  42715. " (addresses\n"
  42716. " '(; Redirect to a local web-server.\n"
  42717. " \"/example.org/127.0.0.1\"\n"
  42718. " ; Redirect subdomain to a specific IP.\n"
  42719. " \"/subdomain.example.org/192.168.1.42\"))))\n"
  42720. msgstr ""
  42721. #. type: table
  42722. #: guix-git/doc/guix.texi:28505
  42723. msgid "Note that rules in @file{/etc/hosts} take precedence over this."
  42724. msgstr ""
  42725. #. type: item
  42726. #: guix-git/doc/guix.texi:28506
  42727. #, no-wrap
  42728. msgid "@code{cache-size} (default: @code{150})"
  42729. msgstr ""
  42730. #. type: table
  42731. #: guix-git/doc/guix.texi:28509
  42732. msgid "Set the size of dnsmasq's cache. Setting the cache size to zero disables caching."
  42733. msgstr ""
  42734. #. type: item
  42735. #: guix-git/doc/guix.texi:28510
  42736. #, no-wrap
  42737. msgid "@code{negative-cache?} (default: @code{#t})"
  42738. msgstr ""
  42739. #. type: table
  42740. #: guix-git/doc/guix.texi:28512
  42741. msgid "When false, disable negative caching."
  42742. msgstr ""
  42743. #. type: item
  42744. #: guix-git/doc/guix.texi:28513
  42745. #, fuzzy, no-wrap
  42746. msgid "@code{tftp-enable?} (default: @code{#f})"
  42747. msgstr "@code{challenge}(默认值:@code{#f})"
  42748. #. type: table
  42749. #: guix-git/doc/guix.texi:28515
  42750. msgid "Whether to enable the built-in TFTP server."
  42751. msgstr ""
  42752. #. type: item
  42753. #: guix-git/doc/guix.texi:28516
  42754. #, fuzzy, no-wrap
  42755. msgid "@code{tftp-no-fail?} (default: @code{#f})"
  42756. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  42757. #. type: table
  42758. #: guix-git/doc/guix.texi:28518
  42759. msgid "If true, does not fail dnsmasq if the TFTP server could not start up."
  42760. msgstr ""
  42761. #. type: item
  42762. #: guix-git/doc/guix.texi:28519
  42763. #, fuzzy, no-wrap
  42764. msgid "@code{tftp-single-port?} (default: @code{#f})"
  42765. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  42766. #. type: table
  42767. #: guix-git/doc/guix.texi:28521
  42768. msgid "Whether to use only one single port for TFTP."
  42769. msgstr ""
  42770. #. type: item
  42771. #: guix-git/doc/guix.texi:28522
  42772. #, fuzzy, no-wrap
  42773. msgid "@code{tftp-secure?} (default: @code{#f})"
  42774. msgstr "@code{xfce}(默认值:@code{xfce})"
  42775. #. type: table
  42776. #: guix-git/doc/guix.texi:28524
  42777. msgid "If true, only files owned by the user running the dnsmasq process are accessible."
  42778. msgstr ""
  42779. #. type: table
  42780. #: guix-git/doc/guix.texi:28528
  42781. 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."
  42782. msgstr ""
  42783. #. type: item
  42784. #: guix-git/doc/guix.texi:28529
  42785. #, fuzzy, no-wrap
  42786. msgid "@code{tftp-max} (default: @code{#f})"
  42787. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  42788. #. type: table
  42789. #: guix-git/doc/guix.texi:28531
  42790. msgid "If set, sets the maximal number of concurrent connections allowed."
  42791. msgstr ""
  42792. #. type: item
  42793. #: guix-git/doc/guix.texi:28532
  42794. #, fuzzy, no-wrap
  42795. msgid "@code{tftp-mtu} (default: @code{#f})"
  42796. msgstr "@code{port}(默认值:@code{22})"
  42797. #. type: table
  42798. #: guix-git/doc/guix.texi:28534
  42799. msgid "If set, sets the MTU for TFTP packets to that value."
  42800. msgstr ""
  42801. #. type: item
  42802. #: guix-git/doc/guix.texi:28535
  42803. #, fuzzy, no-wrap
  42804. msgid "@code{tftp-no-blocksize?} (default: @code{#f})"
  42805. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  42806. #. type: table
  42807. #: guix-git/doc/guix.texi:28537
  42808. msgid "If true, stops the TFTP server from negotiating the blocksize with a client."
  42809. msgstr ""
  42810. #. type: item
  42811. #: guix-git/doc/guix.texi:28538
  42812. #, fuzzy, no-wrap
  42813. msgid "@code{tftp-lowercase?} (default: @code{#f})"
  42814. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  42815. #. type: table
  42816. #: guix-git/doc/guix.texi:28540
  42817. msgid "Whether to convert all filenames in TFTP requests to lowercase."
  42818. msgstr ""
  42819. #. type: item
  42820. #: guix-git/doc/guix.texi:28541
  42821. #, fuzzy, no-wrap
  42822. msgid "@code{tftp-port-range} (default: @code{#f})"
  42823. msgstr "@code{challenge}(默认值:@code{#f})"
  42824. #. type: table
  42825. #: guix-git/doc/guix.texi:28544
  42826. msgid "If set, fixes the dynamical ports (one per client) to the given range (@code{\"<start>,<end>\"})."
  42827. msgstr ""
  42828. #. type: item
  42829. #: guix-git/doc/guix.texi:28545
  42830. #, fuzzy, no-wrap
  42831. msgid "@code{tftp-root} (default: @code{/var/empty,lo})"
  42832. msgstr "@code{port}(默认值:@code{22})"
  42833. #. type: table
  42834. #: guix-git/doc/guix.texi:28552
  42835. 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."
  42836. msgstr ""
  42837. #. type: item
  42838. #: guix-git/doc/guix.texi:28553
  42839. #, fuzzy, no-wrap
  42840. msgid "@code{tftp-unique-root} (default: @code{#f})"
  42841. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  42842. #. type: table
  42843. #: guix-git/doc/guix.texi:28558
  42844. 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)."
  42845. msgstr ""
  42846. #. type: table
  42847. #: guix-git/doc/guix.texi:28567
  42848. 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."
  42849. msgstr ""
  42850. #. type: subsubheading
  42851. #: guix-git/doc/guix.texi:28571
  42852. #, no-wrap
  42853. msgid "ddclient Service"
  42854. msgstr ""
  42855. #. type: cindex
  42856. #: guix-git/doc/guix.texi:28573
  42857. #, no-wrap
  42858. msgid "ddclient"
  42859. msgstr ""
  42860. #. type: Plain text
  42861. #: guix-git/doc/guix.texi:28577
  42862. 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}."
  42863. msgstr ""
  42864. #. type: Plain text
  42865. #: guix-git/doc/guix.texi:28580
  42866. msgid "The following example show instantiates the service with its default configuration:"
  42867. msgstr ""
  42868. #. type: lisp
  42869. #: guix-git/doc/guix.texi:28583
  42870. #, no-wrap
  42871. msgid "(service ddclient-service-type)\n"
  42872. msgstr ""
  42873. #. type: Plain text
  42874. #: guix-git/doc/guix.texi:28592
  42875. 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."
  42876. msgstr ""
  42877. #. type: Plain text
  42878. #: guix-git/doc/guix.texi:28596
  42879. msgid "Available @code{ddclient-configuration} fields are:"
  42880. msgstr ""
  42881. #. type: deftypevr
  42882. #: guix-git/doc/guix.texi:28597
  42883. #, no-wrap
  42884. msgid "{@code{ddclient-configuration} parameter} package ddclient"
  42885. msgstr ""
  42886. #. type: deftypevr
  42887. #: guix-git/doc/guix.texi:28599
  42888. msgid "The ddclient package."
  42889. msgstr ""
  42890. #. type: deftypevr
  42891. #: guix-git/doc/guix.texi:28602
  42892. #, no-wrap
  42893. msgid "{@code{ddclient-configuration} parameter} integer daemon"
  42894. msgstr ""
  42895. #. type: deftypevr
  42896. #: guix-git/doc/guix.texi:28604
  42897. msgid "The period after which ddclient will retry to check IP and domain name."
  42898. msgstr ""
  42899. #. type: deftypevr
  42900. #: guix-git/doc/guix.texi:28606
  42901. msgid "Defaults to @samp{300}."
  42902. msgstr ""
  42903. #. type: deftypevr
  42904. #: guix-git/doc/guix.texi:28609
  42905. #, no-wrap
  42906. msgid "{@code{ddclient-configuration} parameter} boolean syslog"
  42907. msgstr ""
  42908. #. type: deftypevr
  42909. #: guix-git/doc/guix.texi:28611
  42910. msgid "Use syslog for the output."
  42911. msgstr ""
  42912. #. type: deftypevr
  42913. #: guix-git/doc/guix.texi:28616
  42914. #, no-wrap
  42915. msgid "{@code{ddclient-configuration} parameter} string mail"
  42916. msgstr ""
  42917. #. type: deftypevr
  42918. #: guix-git/doc/guix.texi:28618
  42919. msgid "Mail to user."
  42920. msgstr ""
  42921. #. type: deftypevr
  42922. #: guix-git/doc/guix.texi:28620 guix-git/doc/guix.texi:28627
  42923. #: guix-git/doc/guix.texi:30457
  42924. msgid "Defaults to @samp{\"root\"}."
  42925. msgstr ""
  42926. #. type: deftypevr
  42927. #: guix-git/doc/guix.texi:28623
  42928. #, no-wrap
  42929. msgid "{@code{ddclient-configuration} parameter} string mail-failure"
  42930. msgstr ""
  42931. #. type: deftypevr
  42932. #: guix-git/doc/guix.texi:28625
  42933. msgid "Mail failed update to user."
  42934. msgstr ""
  42935. #. type: deftypevr
  42936. #: guix-git/doc/guix.texi:28630
  42937. #, no-wrap
  42938. msgid "{@code{ddclient-configuration} parameter} string pid"
  42939. msgstr ""
  42940. #. type: deftypevr
  42941. #: guix-git/doc/guix.texi:28632
  42942. msgid "The ddclient PID file."
  42943. msgstr ""
  42944. #. type: deftypevr
  42945. #: guix-git/doc/guix.texi:28634
  42946. msgid "Defaults to @samp{\"/var/run/ddclient/ddclient.pid\"}."
  42947. msgstr ""
  42948. #. type: deftypevr
  42949. #: guix-git/doc/guix.texi:28637
  42950. #, no-wrap
  42951. msgid "{@code{ddclient-configuration} parameter} boolean ssl"
  42952. msgstr ""
  42953. #. type: deftypevr
  42954. #: guix-git/doc/guix.texi:28639
  42955. msgid "Enable SSL support."
  42956. msgstr ""
  42957. #. type: deftypevr
  42958. #: guix-git/doc/guix.texi:28644
  42959. #, no-wrap
  42960. msgid "{@code{ddclient-configuration} parameter} string user"
  42961. msgstr ""
  42962. #. type: deftypevr
  42963. #: guix-git/doc/guix.texi:28647
  42964. msgid "Specifies the user name or ID that is used when running ddclient program."
  42965. msgstr ""
  42966. #. type: deftypevr
  42967. #: guix-git/doc/guix.texi:28649 guix-git/doc/guix.texi:28656
  42968. msgid "Defaults to @samp{\"ddclient\"}."
  42969. msgstr ""
  42970. #. type: deftypevr
  42971. #: guix-git/doc/guix.texi:28652
  42972. #, no-wrap
  42973. msgid "{@code{ddclient-configuration} parameter} string group"
  42974. msgstr ""
  42975. #. type: deftypevr
  42976. #: guix-git/doc/guix.texi:28654
  42977. msgid "Group of the user who will run the ddclient program."
  42978. msgstr ""
  42979. #. type: deftypevr
  42980. #: guix-git/doc/guix.texi:28659
  42981. #, no-wrap
  42982. msgid "{@code{ddclient-configuration} parameter} string secret-file"
  42983. msgstr ""
  42984. #. type: deftypevr
  42985. #: guix-git/doc/guix.texi:28663
  42986. 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."
  42987. msgstr ""
  42988. #. type: deftypevr
  42989. #: guix-git/doc/guix.texi:28665
  42990. msgid "Defaults to @samp{\"/etc/ddclient/secrets.conf\"}."
  42991. msgstr ""
  42992. #. type: deftypevr
  42993. #: guix-git/doc/guix.texi:28668
  42994. #, no-wrap
  42995. msgid "{@code{ddclient-configuration} parameter} list extra-options"
  42996. msgstr ""
  42997. #. type: deftypevr
  42998. #: guix-git/doc/guix.texi:28670
  42999. msgid "Extra options will be appended to @file{ddclient.conf} file."
  43000. msgstr ""
  43001. #. type: cindex
  43002. #: guix-git/doc/guix.texi:28681
  43003. #, no-wrap
  43004. msgid "VPN (virtual private network)"
  43005. msgstr ""
  43006. #. type: cindex
  43007. #: guix-git/doc/guix.texi:28682
  43008. #, no-wrap
  43009. msgid "virtual private network (VPN)"
  43010. msgstr ""
  43011. #. type: Plain text
  43012. #: guix-git/doc/guix.texi:28686
  43013. msgid "The @code{(gnu services vpn)} module provides services related to @dfn{virtual private networks} (VPNs)."
  43014. msgstr ""
  43015. #. type: subsubheading
  43016. #: guix-git/doc/guix.texi:28687
  43017. #, no-wrap
  43018. msgid "Bitmask"
  43019. msgstr ""
  43020. #. type: defvr
  43021. #: guix-git/doc/guix.texi:28689
  43022. #, no-wrap
  43023. msgid "{Scheme Variable} bitmask-service-type"
  43024. msgstr ""
  43025. #. type: defvr
  43026. #: guix-git/doc/guix.texi:28694
  43027. msgid "A service type for the @uref{https://bitmask.net, Bitmask} VPN client. It makes the client available in the system and loads its polkit policy. Please note that the client expects an active polkit-agent, which is either run by your desktop-environment or should be run manually."
  43028. msgstr ""
  43029. #. type: subsubheading
  43030. #: guix-git/doc/guix.texi:28696
  43031. #, no-wrap
  43032. msgid "OpenVPN"
  43033. msgstr ""
  43034. #. type: Plain text
  43035. #: guix-git/doc/guix.texi:28700
  43036. 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@."
  43037. msgstr ""
  43038. #. type: deffn
  43039. #: guix-git/doc/guix.texi:28701
  43040. #, no-wrap
  43041. msgid "{Scheme Procedure} openvpn-client-service @"
  43042. msgstr ""
  43043. #. type: deffn
  43044. #: guix-git/doc/guix.texi:28703
  43045. msgid "[#:config (openvpn-client-configuration)]"
  43046. msgstr ""
  43047. #. type: deffn
  43048. #: guix-git/doc/guix.texi:28705
  43049. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a client."
  43050. msgstr ""
  43051. #. type: deffn
  43052. #: guix-git/doc/guix.texi:28707
  43053. #, no-wrap
  43054. msgid "{Scheme Procedure} openvpn-server-service @"
  43055. msgstr ""
  43056. #. type: deffn
  43057. #: guix-git/doc/guix.texi:28709
  43058. msgid "[#:config (openvpn-server-configuration)]"
  43059. msgstr ""
  43060. #. type: deffn
  43061. #: guix-git/doc/guix.texi:28711
  43062. msgid "Return a service that runs @command{openvpn}, a VPN daemon, as a server."
  43063. msgstr ""
  43064. #. type: deffn
  43065. #: guix-git/doc/guix.texi:28713
  43066. msgid "Both can be run simultaneously."
  43067. msgstr ""
  43068. #. type: Plain text
  43069. #: guix-git/doc/guix.texi:28718
  43070. msgid "Available @code{openvpn-client-configuration} fields are:"
  43071. msgstr ""
  43072. #. type: deftypevr
  43073. #: guix-git/doc/guix.texi:28719
  43074. #, no-wrap
  43075. msgid "{@code{openvpn-client-configuration} parameter} package openvpn"
  43076. msgstr ""
  43077. #. type: deftypevr
  43078. #: guix-git/doc/guix.texi:28721 guix-git/doc/guix.texi:28876
  43079. msgid "The OpenVPN package."
  43080. msgstr ""
  43081. #. type: deftypevr
  43082. #: guix-git/doc/guix.texi:28724
  43083. #, no-wrap
  43084. msgid "{@code{openvpn-client-configuration} parameter} string pid-file"
  43085. msgstr ""
  43086. #. type: deftypevr
  43087. #: guix-git/doc/guix.texi:28726 guix-git/doc/guix.texi:28881
  43088. msgid "The OpenVPN pid file."
  43089. msgstr ""
  43090. #. type: deftypevr
  43091. #: guix-git/doc/guix.texi:28728 guix-git/doc/guix.texi:28883
  43092. msgid "Defaults to @samp{\"/var/run/openvpn/openvpn.pid\"}."
  43093. msgstr ""
  43094. #. type: deftypevr
  43095. #: guix-git/doc/guix.texi:28731
  43096. #, no-wrap
  43097. msgid "{@code{openvpn-client-configuration} parameter} proto proto"
  43098. msgstr ""
  43099. #. type: deftypevr
  43100. #: guix-git/doc/guix.texi:28734 guix-git/doc/guix.texi:28889
  43101. msgid "The protocol (UDP or TCP) used to open a channel between clients and servers."
  43102. msgstr ""
  43103. #. type: deftypevr
  43104. #: guix-git/doc/guix.texi:28736 guix-git/doc/guix.texi:28891
  43105. msgid "Defaults to @samp{udp}."
  43106. msgstr ""
  43107. #. type: deftypevr
  43108. #: guix-git/doc/guix.texi:28739
  43109. #, no-wrap
  43110. msgid "{@code{openvpn-client-configuration} parameter} dev dev"
  43111. msgstr ""
  43112. #. type: deftypevr
  43113. #: guix-git/doc/guix.texi:28741 guix-git/doc/guix.texi:28896
  43114. msgid "The device type used to represent the VPN connection."
  43115. msgstr ""
  43116. #. type: deftypevr
  43117. #: guix-git/doc/guix.texi:28743 guix-git/doc/guix.texi:28898
  43118. msgid "Defaults to @samp{tun}."
  43119. msgstr ""
  43120. #. type: Plain text
  43121. #: guix-git/doc/guix.texi:28749 guix-git/doc/guix.texi:28904
  43122. 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}."
  43123. msgstr ""
  43124. #. type: deftypevr
  43125. #: guix-git/doc/guix.texi:28750
  43126. #, no-wrap
  43127. msgid "{@code{openvpn-client-configuration} parameter} maybe-string ca"
  43128. msgstr ""
  43129. #. type: deftypevr
  43130. #: guix-git/doc/guix.texi:28752 guix-git/doc/guix.texi:28907
  43131. msgid "The certificate authority to check connections against."
  43132. msgstr ""
  43133. #. type: deftypevr
  43134. #: guix-git/doc/guix.texi:28754 guix-git/doc/guix.texi:28909
  43135. msgid "Defaults to @samp{\"/etc/openvpn/ca.crt\"}."
  43136. msgstr ""
  43137. #. type: deftypevr
  43138. #: guix-git/doc/guix.texi:28757
  43139. #, no-wrap
  43140. msgid "{@code{openvpn-client-configuration} parameter} maybe-string cert"
  43141. msgstr ""
  43142. #. type: deftypevr
  43143. #: guix-git/doc/guix.texi:28760 guix-git/doc/guix.texi:28915
  43144. msgid "The certificate of the machine the daemon is running on. It should be signed by the authority given in @code{ca}."
  43145. msgstr ""
  43146. #. type: deftypevr
  43147. #: guix-git/doc/guix.texi:28762 guix-git/doc/guix.texi:28917
  43148. msgid "Defaults to @samp{\"/etc/openvpn/client.crt\"}."
  43149. msgstr ""
  43150. #. type: deftypevr
  43151. #: guix-git/doc/guix.texi:28765
  43152. #, no-wrap
  43153. msgid "{@code{openvpn-client-configuration} parameter} maybe-string key"
  43154. msgstr ""
  43155. #. type: deftypevr
  43156. #: guix-git/doc/guix.texi:28768 guix-git/doc/guix.texi:28923
  43157. msgid "The key of the machine the daemon is running on. It must be the key whose certificate is @code{cert}."
  43158. msgstr ""
  43159. #. type: deftypevr
  43160. #: guix-git/doc/guix.texi:28770 guix-git/doc/guix.texi:28925
  43161. msgid "Defaults to @samp{\"/etc/openvpn/client.key\"}."
  43162. msgstr ""
  43163. #. type: deftypevr
  43164. #: guix-git/doc/guix.texi:28773
  43165. #, no-wrap
  43166. msgid "{@code{openvpn-client-configuration} parameter} boolean comp-lzo?"
  43167. msgstr ""
  43168. #. type: deftypevr
  43169. #: guix-git/doc/guix.texi:28775 guix-git/doc/guix.texi:28930
  43170. msgid "Whether to use the lzo compression algorithm."
  43171. msgstr ""
  43172. #. type: deftypevr
  43173. #: guix-git/doc/guix.texi:28780
  43174. #, no-wrap
  43175. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-key?"
  43176. msgstr ""
  43177. #. type: deftypevr
  43178. #: guix-git/doc/guix.texi:28782 guix-git/doc/guix.texi:28937
  43179. msgid "Don't re-read key files across SIGUSR1 or --ping-restart."
  43180. msgstr ""
  43181. #. type: deftypevr
  43182. #: guix-git/doc/guix.texi:28787
  43183. #, no-wrap
  43184. msgid "{@code{openvpn-client-configuration} parameter} boolean persist-tun?"
  43185. msgstr ""
  43186. #. type: deftypevr
  43187. #: guix-git/doc/guix.texi:28790 guix-git/doc/guix.texi:28945
  43188. msgid "Don't close and reopen TUN/TAP device or run up/down scripts across SIGUSR1 or --ping-restart restarts."
  43189. msgstr ""
  43190. #. type: deftypevr
  43191. #: guix-git/doc/guix.texi:28795
  43192. #, no-wrap
  43193. msgid "{@code{openvpn-client-configuration} parameter} boolean fast-io?"
  43194. msgstr ""
  43195. #. type: deftypevr
  43196. #: guix-git/doc/guix.texi:28798 guix-git/doc/guix.texi:28953
  43197. msgid "(Experimental) Optimize TUN/TAP/UDP I/O writes by avoiding a call to poll/epoll/select prior to the write operation."
  43198. msgstr ""
  43199. #. type: deftypevr
  43200. #: guix-git/doc/guix.texi:28802
  43201. #, no-wrap
  43202. msgid "{@code{openvpn-client-configuration} parameter} number verbosity"
  43203. msgstr ""
  43204. #. type: deftypevr
  43205. #: guix-git/doc/guix.texi:28804 guix-git/doc/guix.texi:28959
  43206. msgid "Verbosity level."
  43207. msgstr ""
  43208. #. type: deftypevr
  43209. #: guix-git/doc/guix.texi:28806 guix-git/doc/guix.texi:28961
  43210. #: guix-git/doc/guix.texi:30725 guix-git/doc/guix.texi:30953
  43211. msgid "Defaults to @samp{3}."
  43212. msgstr ""
  43213. #. type: deftypevr
  43214. #: guix-git/doc/guix.texi:28809
  43215. #, no-wrap
  43216. msgid "{@code{openvpn-client-configuration} parameter} tls-auth-client tls-auth"
  43217. msgstr ""
  43218. #. type: deftypevr
  43219. #: guix-git/doc/guix.texi:28812 guix-git/doc/guix.texi:28967
  43220. msgid "Add an additional layer of HMAC authentication on top of the TLS control channel to protect against DoS attacks."
  43221. msgstr ""
  43222. #. type: deftypevr
  43223. #: guix-git/doc/guix.texi:28817
  43224. #, no-wrap
  43225. msgid "{@code{openvpn-client-configuration} parameter} maybe-string auth-user-pass"
  43226. msgstr ""
  43227. #. type: deftypevr
  43228. #: guix-git/doc/guix.texi:28821
  43229. 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."
  43230. msgstr ""
  43231. #. type: deftypevr
  43232. #: guix-git/doc/guix.texi:28823
  43233. msgid "Defaults to @samp{'disabled}."
  43234. msgstr ""
  43235. #. type: deftypevr
  43236. #: guix-git/doc/guix.texi:28825
  43237. #, no-wrap
  43238. msgid "{@code{openvpn-client-configuration} parameter} key-usage verify-key-usage?"
  43239. msgstr ""
  43240. #. type: deftypevr
  43241. #: guix-git/doc/guix.texi:28827
  43242. msgid "Whether to check the server certificate has server usage extension."
  43243. msgstr ""
  43244. #. type: deftypevr
  43245. #: guix-git/doc/guix.texi:28832
  43246. #, no-wrap
  43247. msgid "{@code{openvpn-client-configuration} parameter} bind bind?"
  43248. msgstr ""
  43249. #. type: deftypevr
  43250. #: guix-git/doc/guix.texi:28834
  43251. msgid "Bind to a specific local port number."
  43252. msgstr ""
  43253. #. type: deftypevr
  43254. #: guix-git/doc/guix.texi:28839
  43255. #, no-wrap
  43256. msgid "{@code{openvpn-client-configuration} parameter} resolv-retry resolv-retry?"
  43257. msgstr ""
  43258. #. type: deftypevr
  43259. #: guix-git/doc/guix.texi:28841
  43260. msgid "Retry resolving server address."
  43261. msgstr ""
  43262. #. type: deftypevr
  43263. #: guix-git/doc/guix.texi:28846
  43264. #, no-wrap
  43265. msgid "{@code{openvpn-client-configuration} parameter} openvpn-remote-list remote"
  43266. msgstr ""
  43267. #. type: deftypevr
  43268. #: guix-git/doc/guix.texi:28848
  43269. msgid "A list of remote servers to connect to."
  43270. msgstr ""
  43271. #. type: deftypevr
  43272. #: guix-git/doc/guix.texi:28852
  43273. msgid "Available @code{openvpn-remote-configuration} fields are:"
  43274. msgstr ""
  43275. #. type: deftypevr
  43276. #: guix-git/doc/guix.texi:28853
  43277. #, no-wrap
  43278. msgid "{@code{openvpn-remote-configuration} parameter} string name"
  43279. msgstr ""
  43280. #. type: deftypevr
  43281. #: guix-git/doc/guix.texi:28855
  43282. msgid "Server name."
  43283. msgstr ""
  43284. #. type: deftypevr
  43285. #: guix-git/doc/guix.texi:28857
  43286. msgid "Defaults to @samp{\"my-server\"}."
  43287. msgstr ""
  43288. #. type: deftypevr
  43289. #: guix-git/doc/guix.texi:28860
  43290. #, no-wrap
  43291. msgid "{@code{openvpn-remote-configuration} parameter} number port"
  43292. msgstr ""
  43293. #. type: deftypevr
  43294. #: guix-git/doc/guix.texi:28862
  43295. msgid "Port number the server listens to."
  43296. msgstr ""
  43297. #. type: deftypevr
  43298. #: guix-git/doc/guix.texi:28864 guix-git/doc/guix.texi:28976
  43299. msgid "Defaults to @samp{1194}."
  43300. msgstr ""
  43301. #. type: Plain text
  43302. #: guix-git/doc/guix.texi:28873
  43303. msgid "Available @code{openvpn-server-configuration} fields are:"
  43304. msgstr ""
  43305. #. type: deftypevr
  43306. #: guix-git/doc/guix.texi:28874
  43307. #, no-wrap
  43308. msgid "{@code{openvpn-server-configuration} parameter} package openvpn"
  43309. msgstr ""
  43310. #. type: deftypevr
  43311. #: guix-git/doc/guix.texi:28879
  43312. #, no-wrap
  43313. msgid "{@code{openvpn-server-configuration} parameter} string pid-file"
  43314. msgstr ""
  43315. #. type: deftypevr
  43316. #: guix-git/doc/guix.texi:28886
  43317. #, no-wrap
  43318. msgid "{@code{openvpn-server-configuration} parameter} proto proto"
  43319. msgstr ""
  43320. #. type: deftypevr
  43321. #: guix-git/doc/guix.texi:28894
  43322. #, no-wrap
  43323. msgid "{@code{openvpn-server-configuration} parameter} dev dev"
  43324. msgstr ""
  43325. #. type: deftypevr
  43326. #: guix-git/doc/guix.texi:28905
  43327. #, no-wrap
  43328. msgid "{@code{openvpn-server-configuration} parameter} maybe-string ca"
  43329. msgstr ""
  43330. #. type: deftypevr
  43331. #: guix-git/doc/guix.texi:28912
  43332. #, no-wrap
  43333. msgid "{@code{openvpn-server-configuration} parameter} maybe-string cert"
  43334. msgstr ""
  43335. #. type: deftypevr
  43336. #: guix-git/doc/guix.texi:28920
  43337. #, no-wrap
  43338. msgid "{@code{openvpn-server-configuration} parameter} maybe-string key"
  43339. msgstr ""
  43340. #. type: deftypevr
  43341. #: guix-git/doc/guix.texi:28928
  43342. #, no-wrap
  43343. msgid "{@code{openvpn-server-configuration} parameter} boolean comp-lzo?"
  43344. msgstr ""
  43345. #. type: deftypevr
  43346. #: guix-git/doc/guix.texi:28935
  43347. #, no-wrap
  43348. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-key?"
  43349. msgstr ""
  43350. #. type: deftypevr
  43351. #: guix-git/doc/guix.texi:28942
  43352. #, no-wrap
  43353. msgid "{@code{openvpn-server-configuration} parameter} boolean persist-tun?"
  43354. msgstr ""
  43355. #. type: deftypevr
  43356. #: guix-git/doc/guix.texi:28950
  43357. #, no-wrap
  43358. msgid "{@code{openvpn-server-configuration} parameter} boolean fast-io?"
  43359. msgstr ""
  43360. #. type: deftypevr
  43361. #: guix-git/doc/guix.texi:28957
  43362. #, no-wrap
  43363. msgid "{@code{openvpn-server-configuration} parameter} number verbosity"
  43364. msgstr ""
  43365. #. type: deftypevr
  43366. #: guix-git/doc/guix.texi:28964
  43367. #, no-wrap
  43368. msgid "{@code{openvpn-server-configuration} parameter} tls-auth-server tls-auth"
  43369. msgstr ""
  43370. #. type: deftypevr
  43371. #: guix-git/doc/guix.texi:28972
  43372. #, no-wrap
  43373. msgid "{@code{openvpn-server-configuration} parameter} number port"
  43374. msgstr ""
  43375. #. type: deftypevr
  43376. #: guix-git/doc/guix.texi:28974
  43377. msgid "Specifies the port number on which the server listens."
  43378. msgstr ""
  43379. #. type: deftypevr
  43380. #: guix-git/doc/guix.texi:28979
  43381. #, no-wrap
  43382. msgid "{@code{openvpn-server-configuration} parameter} ip-mask server"
  43383. msgstr ""
  43384. #. type: deftypevr
  43385. #: guix-git/doc/guix.texi:28981
  43386. msgid "An ip and mask specifying the subnet inside the virtual network."
  43387. msgstr ""
  43388. #. type: deftypevr
  43389. #: guix-git/doc/guix.texi:28983
  43390. msgid "Defaults to @samp{\"10.8.0.0 255.255.255.0\"}."
  43391. msgstr ""
  43392. #. type: deftypevr
  43393. #: guix-git/doc/guix.texi:28986
  43394. #, no-wrap
  43395. msgid "{@code{openvpn-server-configuration} parameter} cidr6 server-ipv6"
  43396. msgstr ""
  43397. #. type: deftypevr
  43398. #: guix-git/doc/guix.texi:28988
  43399. msgid "A CIDR notation specifying the IPv6 subnet inside the virtual network."
  43400. msgstr ""
  43401. #. type: deftypevr
  43402. #: guix-git/doc/guix.texi:28993
  43403. #, no-wrap
  43404. msgid "{@code{openvpn-server-configuration} parameter} string dh"
  43405. msgstr ""
  43406. #. type: deftypevr
  43407. #: guix-git/doc/guix.texi:28995
  43408. msgid "The Diffie-Hellman parameters file."
  43409. msgstr ""
  43410. #. type: deftypevr
  43411. #: guix-git/doc/guix.texi:28997
  43412. msgid "Defaults to @samp{\"/etc/openvpn/dh2048.pem\"}."
  43413. msgstr ""
  43414. #. type: deftypevr
  43415. #: guix-git/doc/guix.texi:29000
  43416. #, no-wrap
  43417. msgid "{@code{openvpn-server-configuration} parameter} string ifconfig-pool-persist"
  43418. msgstr ""
  43419. #. type: deftypevr
  43420. #: guix-git/doc/guix.texi:29002
  43421. msgid "The file that records client IPs."
  43422. msgstr ""
  43423. #. type: deftypevr
  43424. #: guix-git/doc/guix.texi:29004
  43425. msgid "Defaults to @samp{\"/etc/openvpn/ipp.txt\"}."
  43426. msgstr ""
  43427. #. type: deftypevr
  43428. #: guix-git/doc/guix.texi:29007
  43429. #, no-wrap
  43430. msgid "{@code{openvpn-server-configuration} parameter} gateway redirect-gateway?"
  43431. msgstr ""
  43432. #. type: deftypevr
  43433. #: guix-git/doc/guix.texi:29009
  43434. msgid "When true, the server will act as a gateway for its clients."
  43435. msgstr ""
  43436. #. type: deftypevr
  43437. #: guix-git/doc/guix.texi:29014
  43438. #, no-wrap
  43439. msgid "{@code{openvpn-server-configuration} parameter} boolean client-to-client?"
  43440. msgstr ""
  43441. #. type: deftypevr
  43442. #: guix-git/doc/guix.texi:29016
  43443. msgid "When true, clients are allowed to talk to each other inside the VPN."
  43444. msgstr ""
  43445. #. type: deftypevr
  43446. #: guix-git/doc/guix.texi:29021
  43447. #, no-wrap
  43448. msgid "{@code{openvpn-server-configuration} parameter} keepalive keepalive"
  43449. msgstr ""
  43450. #. type: deftypevr
  43451. #: guix-git/doc/guix.texi:29027
  43452. 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."
  43453. msgstr ""
  43454. #. type: deftypevr
  43455. #: guix-git/doc/guix.texi:29030
  43456. #, no-wrap
  43457. msgid "{@code{openvpn-server-configuration} parameter} number max-clients"
  43458. msgstr ""
  43459. #. type: deftypevr
  43460. #: guix-git/doc/guix.texi:29032
  43461. msgid "The maximum number of clients."
  43462. msgstr ""
  43463. #. type: deftypevr
  43464. #: guix-git/doc/guix.texi:29037
  43465. #, no-wrap
  43466. msgid "{@code{openvpn-server-configuration} parameter} string status"
  43467. msgstr ""
  43468. #. type: deftypevr
  43469. #: guix-git/doc/guix.texi:29040
  43470. msgid "The status file. This file shows a small report on current connection. It is truncated and rewritten every minute."
  43471. msgstr ""
  43472. #. type: deftypevr
  43473. #: guix-git/doc/guix.texi:29042
  43474. msgid "Defaults to @samp{\"/var/run/openvpn/status\"}."
  43475. msgstr ""
  43476. #. type: deftypevr
  43477. #: guix-git/doc/guix.texi:29045
  43478. #, no-wrap
  43479. msgid "{@code{openvpn-server-configuration} parameter} openvpn-ccd-list client-config-dir"
  43480. msgstr ""
  43481. #. type: deftypevr
  43482. #: guix-git/doc/guix.texi:29047
  43483. msgid "The list of configuration for some clients."
  43484. msgstr ""
  43485. #. type: deftypevr
  43486. #: guix-git/doc/guix.texi:29051
  43487. msgid "Available @code{openvpn-ccd-configuration} fields are:"
  43488. msgstr ""
  43489. #. type: deftypevr
  43490. #: guix-git/doc/guix.texi:29052
  43491. #, no-wrap
  43492. msgid "{@code{openvpn-ccd-configuration} parameter} string name"
  43493. msgstr ""
  43494. #. type: deftypevr
  43495. #: guix-git/doc/guix.texi:29054
  43496. msgid "Client name."
  43497. msgstr ""
  43498. #. type: deftypevr
  43499. #: guix-git/doc/guix.texi:29056
  43500. msgid "Defaults to @samp{\"client\"}."
  43501. msgstr ""
  43502. #. type: deftypevr
  43503. #: guix-git/doc/guix.texi:29059
  43504. #, no-wrap
  43505. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask iroute"
  43506. msgstr ""
  43507. #. type: deftypevr
  43508. #: guix-git/doc/guix.texi:29061
  43509. msgid "Client own network"
  43510. msgstr ""
  43511. #. type: deftypevr
  43512. #: guix-git/doc/guix.texi:29066
  43513. #, no-wrap
  43514. msgid "{@code{openvpn-ccd-configuration} parameter} ip-mask ifconfig-push"
  43515. msgstr ""
  43516. #. type: deftypevr
  43517. #: guix-git/doc/guix.texi:29068
  43518. msgid "Client VPN IP."
  43519. msgstr ""
  43520. #. type: subheading
  43521. #: guix-git/doc/guix.texi:29077
  43522. #, no-wrap
  43523. msgid "strongSwan"
  43524. msgstr ""
  43525. #. type: Plain text
  43526. #: guix-git/doc/guix.texi:29081
  43527. msgid "Currently, the strongSwan service only provides legacy-style configuration with @file{ipsec.conf} and @file{ipsec.secrets} files."
  43528. msgstr ""
  43529. #. type: defvr
  43530. #: guix-git/doc/guix.texi:29082
  43531. #, no-wrap
  43532. msgid "{Scheme Variable} strongswan-service-type"
  43533. msgstr ""
  43534. #. type: defvr
  43535. #: guix-git/doc/guix.texi:29086
  43536. msgid "A service type for configuring strongSwan for IPsec @acronym{VPN, Virtual Private Networking}. Its value must be a @code{strongswan-configuration} record as in this example:"
  43537. msgstr ""
  43538. #. type: lisp
  43539. #: guix-git/doc/guix.texi:29092
  43540. #, no-wrap
  43541. msgid ""
  43542. "(service strongswan-service-type\n"
  43543. " (strongswan-configuration\n"
  43544. " (ipsec-conf \"/etc/ipsec.conf\")\n"
  43545. " (ipsec-secrets \"/etc/ipsec.secrets\")))\n"
  43546. msgstr ""
  43547. #. type: deftp
  43548. #: guix-git/doc/guix.texi:29096
  43549. #, fuzzy, no-wrap
  43550. msgid "{Data Type} strongswan-configuration"
  43551. msgstr "系统配置"
  43552. #. type: deftp
  43553. #: guix-git/doc/guix.texi:29098
  43554. #, fuzzy
  43555. msgid "Data type representing the configuration of the StrongSwan service."
  43556. msgstr "管理操作系统配置。"
  43557. #. type: code{#1}
  43558. #: guix-git/doc/guix.texi:29100
  43559. #, no-wrap
  43560. msgid "strongswan"
  43561. msgstr ""
  43562. #. type: table
  43563. #: guix-git/doc/guix.texi:29102
  43564. #, fuzzy
  43565. msgid "The strongSwan package to use for this service."
  43566. msgstr "软件包数据类型。"
  43567. #. type: item
  43568. #: guix-git/doc/guix.texi:29103
  43569. #, fuzzy, no-wrap
  43570. msgid "@code{ipsec-conf} (default: @code{#f})"
  43571. msgstr "@code{port}(默认值:@code{22})"
  43572. #. type: table
  43573. #: guix-git/doc/guix.texi:29106
  43574. msgid "The file name of your @file{ipsec.conf}. If not @code{#f}, then this and @code{ipsec-secrets} must both be strings."
  43575. msgstr ""
  43576. #. type: item
  43577. #: guix-git/doc/guix.texi:29107
  43578. #, fuzzy, no-wrap
  43579. msgid "@code{ipsec-secrets} (default @code{#f})"
  43580. msgstr "@code{speed}(默认值:@code{1.0})"
  43581. #. type: table
  43582. #: guix-git/doc/guix.texi:29110
  43583. msgid "The file name of your @file{ipsec.secrets}. If not @code{#f}, then this and @code{ipsec-conf} must both be strings."
  43584. msgstr ""
  43585. #. type: subsubheading
  43586. #: guix-git/doc/guix.texi:29114
  43587. #, no-wrap
  43588. msgid "Wireguard"
  43589. msgstr ""
  43590. #. type: defvr
  43591. #: guix-git/doc/guix.texi:29116
  43592. #, no-wrap
  43593. msgid "{Scheme Variable} wireguard-service-type"
  43594. msgstr ""
  43595. #. type: defvr
  43596. #: guix-git/doc/guix.texi:29119
  43597. msgid "A service type for a Wireguard tunnel interface. Its value must be a @code{wireguard-configuration} record as in this example:"
  43598. msgstr ""
  43599. #. type: lisp
  43600. #: guix-git/doc/guix.texi:29130
  43601. #, no-wrap
  43602. msgid ""
  43603. "(service wireguard-service-type\n"
  43604. " (wireguard-configuration\n"
  43605. " (peers\n"
  43606. " (list\n"
  43607. " (wireguard-peer\n"
  43608. " (name \"my-peer\")\n"
  43609. " (endpoint \"my.wireguard.com:51820\")\n"
  43610. " (public-key \"hzpKg9X1yqu1axN6iJp0mWf6BZGo8m1wteKwtTmDGF4=\")\n"
  43611. " (allowed-ips '(\"10.0.0.2/32\")))))))\n"
  43612. msgstr ""
  43613. #. type: deftp
  43614. #: guix-git/doc/guix.texi:29134
  43615. #, fuzzy, no-wrap
  43616. msgid "{Data Type} wireguard-configuration"
  43617. msgstr "{数据类型} build-machine"
  43618. #. type: deftp
  43619. #: guix-git/doc/guix.texi:29136
  43620. #, fuzzy
  43621. msgid "Data type representing the configuration of the Wireguard service."
  43622. msgstr "管理操作系统配置。"
  43623. #. type: code{#1}
  43624. #: guix-git/doc/guix.texi:29138
  43625. #, no-wrap
  43626. msgid "wireguard"
  43627. msgstr ""
  43628. #. type: table
  43629. #: guix-git/doc/guix.texi:29140
  43630. #, fuzzy
  43631. msgid "The wireguard package to use for this service."
  43632. msgstr "软件包数据类型。"
  43633. #. type: item
  43634. #: guix-git/doc/guix.texi:29141
  43635. #, fuzzy, no-wrap
  43636. msgid "@code{interface} (default: @code{\"wg0\"})"
  43637. msgstr "@code{display}(默认值:@code{\":0\"})"
  43638. #. type: table
  43639. #: guix-git/doc/guix.texi:29143
  43640. msgid "The interface name for the VPN."
  43641. msgstr ""
  43642. #. type: item
  43643. #: guix-git/doc/guix.texi:29144
  43644. #, fuzzy, no-wrap
  43645. msgid "@code{addresses} (default: @code{'(\"10.0.0.1/32\")})"
  43646. msgstr "@code{display}(默认值:@code{\":0\"})"
  43647. #. type: table
  43648. #: guix-git/doc/guix.texi:29146
  43649. msgid "The IP addresses to be assigned to the above interface."
  43650. msgstr ""
  43651. #. type: item
  43652. #: guix-git/doc/guix.texi:29147
  43653. #, fuzzy, no-wrap
  43654. msgid "@code{port} (default: @code{51820})"
  43655. msgstr "@code{port}(默认值:@code{22})"
  43656. #. type: table
  43657. #: guix-git/doc/guix.texi:29149
  43658. msgid "The port on which to listen for incoming connections."
  43659. msgstr ""
  43660. #. type: item
  43661. #: guix-git/doc/guix.texi:29150
  43662. #, fuzzy, no-wrap
  43663. msgid "@code{dns} (default: @code{#f})"
  43664. msgstr "@code{port}(默认值:@code{22})"
  43665. #. type: table
  43666. #: guix-git/doc/guix.texi:29152
  43667. msgid "The DNS server(s) to announce to VPN clients via DHCP."
  43668. msgstr ""
  43669. #. type: item
  43670. #: guix-git/doc/guix.texi:29153
  43671. #, fuzzy, no-wrap
  43672. msgid "@code{private-key} (default: @code{\"/etc/wireguard/private.key\"})"
  43673. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  43674. #. type: table
  43675. #: guix-git/doc/guix.texi:29156
  43676. msgid "The private key file for the interface. It is automatically generated if the file does not exist."
  43677. msgstr ""
  43678. #. type: item
  43679. #: guix-git/doc/guix.texi:29157
  43680. #, fuzzy, no-wrap
  43681. msgid "@code{peers} (default: @code{'()})"
  43682. msgstr "@code{features} (@code{'()})"
  43683. #. type: table
  43684. #: guix-git/doc/guix.texi:29160
  43685. msgid "The authorized peers on this interface. This is a list of @var{wireguard-peer} records."
  43686. msgstr ""
  43687. #. type: deftp
  43688. #: guix-git/doc/guix.texi:29164
  43689. #, fuzzy, no-wrap
  43690. msgid "{Data Type} wireguard-peer"
  43691. msgstr "{数据类型} build-machine"
  43692. #. type: deftp
  43693. #: guix-git/doc/guix.texi:29166
  43694. #, fuzzy
  43695. msgid "Data type representing a Wireguard peer attached to a given interface."
  43696. msgstr "管理操作系统配置。"
  43697. #. type: table
  43698. #: guix-git/doc/guix.texi:29170
  43699. #, fuzzy
  43700. msgid "The peer name."
  43701. msgstr "仓库monad"
  43702. #. type: item
  43703. #: guix-git/doc/guix.texi:29171
  43704. #, fuzzy, no-wrap
  43705. msgid "@code{endpoint} (default: @code{#f})"
  43706. msgstr "@code{port}(默认值:@code{22})"
  43707. #. type: table
  43708. #: guix-git/doc/guix.texi:29174
  43709. msgid "The optional endpoint for the peer, such as @code{\"demo.wireguard.com:51820\"}."
  43710. msgstr ""
  43711. #. type: itemx
  43712. #: guix-git/doc/guix.texi:29175 guix-git/doc/guix.texi:29570
  43713. #: guix-git/doc/guix.texi:29607 guix-git/doc/guix.texi:34858
  43714. #, no-wrap
  43715. msgid "public-key"
  43716. msgstr ""
  43717. #. type: table
  43718. #: guix-git/doc/guix.texi:29177
  43719. msgid "The peer public-key represented as a base64 string."
  43720. msgstr ""
  43721. #. type: code{#1}
  43722. #: guix-git/doc/guix.texi:29178
  43723. #, no-wrap
  43724. msgid "allowed-ips"
  43725. msgstr ""
  43726. #. type: table
  43727. #: guix-git/doc/guix.texi:29181
  43728. 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."
  43729. msgstr ""
  43730. #. type: item
  43731. #: guix-git/doc/guix.texi:29182
  43732. #, fuzzy, no-wrap
  43733. msgid "@code{keep-alive} (default: @code{#f})"
  43734. msgstr "@code{challenge}(默认值:@code{#f})"
  43735. #. type: table
  43736. #: guix-git/doc/guix.texi:29187
  43737. msgid "An optional time interval in seconds. A packet will be sent to the server endpoint once per time interval. This helps receiving incoming connections from this peer when you are behind a NAT or a firewall."
  43738. msgstr ""
  43739. #. type: cindex
  43740. #: guix-git/doc/guix.texi:29193
  43741. #, no-wrap
  43742. msgid "NFS"
  43743. msgstr ""
  43744. #. type: Plain text
  43745. #: guix-git/doc/guix.texi:29198
  43746. 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)."
  43747. msgstr ""
  43748. #. type: Plain text
  43749. #: guix-git/doc/guix.texi:29202
  43750. 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}."
  43751. msgstr ""
  43752. #. type: subsubheading
  43753. #: guix-git/doc/guix.texi:29203
  43754. #, fuzzy, no-wrap
  43755. msgid "NFS Service"
  43756. msgstr "DNS服务"
  43757. #. type: cindex
  43758. #: guix-git/doc/guix.texi:29204
  43759. #, fuzzy, no-wrap
  43760. msgid "NFS, server"
  43761. msgstr "Web服务。"
  43762. #. type: Plain text
  43763. #: guix-git/doc/guix.texi:29209
  43764. 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."
  43765. msgstr ""
  43766. #. type: defvr
  43767. #: guix-git/doc/guix.texi:29210
  43768. #, no-wrap
  43769. msgid "{Scheme Variable} nfs-service-type"
  43770. msgstr ""
  43771. #. type: defvr
  43772. #: guix-git/doc/guix.texi:29212
  43773. msgid "A service type for a complete NFS server."
  43774. msgstr ""
  43775. #. type: deftp
  43776. #: guix-git/doc/guix.texi:29214
  43777. #, fuzzy, no-wrap
  43778. msgid "{Data Type} nfs-configuration"
  43779. msgstr "系统配置"
  43780. #. type: deftp
  43781. #: guix-git/doc/guix.texi:29217
  43782. msgid "This data type represents the configuration of the NFS service and all of its subsystems."
  43783. msgstr ""
  43784. #. type: deftp
  43785. #: guix-git/doc/guix.texi:29219
  43786. #, fuzzy
  43787. msgid "It has the following parameters:"
  43788. msgstr "GNU Guix依赖这些软件包:"
  43789. #. type: item
  43790. #: guix-git/doc/guix.texi:29220 guix-git/doc/guix.texi:29345
  43791. #: guix-git/doc/guix.texi:29370
  43792. #, no-wrap
  43793. msgid "@code{nfs-utils} (default: @code{nfs-utils})"
  43794. msgstr ""
  43795. #. type: table
  43796. #: guix-git/doc/guix.texi:29222
  43797. #, fuzzy
  43798. msgid "The nfs-utils package to use."
  43799. msgstr "软件包数据类型。"
  43800. #. type: item
  43801. #: guix-git/doc/guix.texi:29223
  43802. #, fuzzy, no-wrap
  43803. msgid "@code{nfs-versions} (default: @code{'(\"4.2\" \"4.1\" \"4.0\")})"
  43804. msgstr "@code{features} (@code{'()})"
  43805. #. type: table
  43806. #: guix-git/doc/guix.texi:29226
  43807. 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."
  43808. msgstr ""
  43809. #. type: item
  43810. #: guix-git/doc/guix.texi:29227
  43811. #, fuzzy, no-wrap
  43812. msgid "@code{exports} (default: @code{'()})"
  43813. msgstr "@code{port}(默认值:@code{22})"
  43814. #. type: table
  43815. #: guix-git/doc/guix.texi:29232
  43816. 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:"
  43817. msgstr ""
  43818. #. type: lisp
  43819. #: guix-git/doc/guix.texi:29238
  43820. #, no-wrap
  43821. msgid ""
  43822. "(nfs-configuration\n"
  43823. " (exports\n"
  43824. " '((\"/export\"\n"
  43825. " \"*(ro,insecure,no_subtree_check,crossmnt,fsid=0)\"))))\n"
  43826. msgstr ""
  43827. #. type: item
  43828. #: guix-git/doc/guix.texi:29240
  43829. #, fuzzy, no-wrap
  43830. msgid "@code{rpcmountd-port} (default: @code{#f})"
  43831. msgstr "@code{port}(默认值:@code{22})"
  43832. #. type: table
  43833. #: guix-git/doc/guix.texi:29242
  43834. msgid "The network port that the @command{rpc.mountd} daemon should use."
  43835. msgstr ""
  43836. #. type: item
  43837. #: guix-git/doc/guix.texi:29243
  43838. #, fuzzy, no-wrap
  43839. msgid "@code{rpcstatd-port} (default: @code{#f})"
  43840. msgstr "@code{port}(默认值:@code{22})"
  43841. #. type: table
  43842. #: guix-git/doc/guix.texi:29245
  43843. msgid "The network port that the @command{rpc.statd} daemon should use."
  43844. msgstr ""
  43845. #. type: item
  43846. #: guix-git/doc/guix.texi:29246 guix-git/doc/guix.texi:29294
  43847. #, no-wrap
  43848. msgid "@code{rpcbind} (default: @code{rpcbind})"
  43849. msgstr ""
  43850. #. type: table
  43851. #: guix-git/doc/guix.texi:29248 guix-git/doc/guix.texi:29296
  43852. msgid "The rpcbind package to use."
  43853. msgstr ""
  43854. #. type: item
  43855. #: guix-git/doc/guix.texi:29249
  43856. #, fuzzy, no-wrap
  43857. msgid "@code{idmap-domain} (default: @code{\"localdomain\"})"
  43858. msgstr "@code{mate}(默认值:@code{mate})"
  43859. #. type: table
  43860. #: guix-git/doc/guix.texi:29251
  43861. msgid "The local NFSv4 domain name."
  43862. msgstr ""
  43863. #. type: item
  43864. #: guix-git/doc/guix.texi:29252
  43865. #, fuzzy, no-wrap
  43866. msgid "@code{nfsd-port} (default: @code{2049})"
  43867. msgstr "@code{port}(默认值:@code{22})"
  43868. #. type: table
  43869. #: guix-git/doc/guix.texi:29254
  43870. msgid "The network port that the @command{nfsd} daemon should use."
  43871. msgstr ""
  43872. #. type: item
  43873. #: guix-git/doc/guix.texi:29255
  43874. #, fuzzy, no-wrap
  43875. msgid "@code{nfsd-threads} (default: @code{8})"
  43876. msgstr "@code{features} (@code{'()})"
  43877. #. type: table
  43878. #: guix-git/doc/guix.texi:29257
  43879. msgid "The number of threads used by the @command{nfsd} daemon."
  43880. msgstr ""
  43881. #. type: item
  43882. #: guix-git/doc/guix.texi:29258
  43883. #, fuzzy, no-wrap
  43884. msgid "@code{nfsd-tcp?} (default: @code{#t})"
  43885. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  43886. #. type: table
  43887. #: guix-git/doc/guix.texi:29260
  43888. msgid "Whether the @command{nfsd} daemon should listen on a TCP socket."
  43889. msgstr ""
  43890. #. type: item
  43891. #: guix-git/doc/guix.texi:29261
  43892. #, fuzzy, no-wrap
  43893. msgid "@code{nfsd-udp?} (default: @code{#f})"
  43894. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  43895. #. type: table
  43896. #: guix-git/doc/guix.texi:29263
  43897. msgid "Whether the @command{nfsd} daemon should listen on a UDP socket."
  43898. msgstr ""
  43899. #. type: item
  43900. #: guix-git/doc/guix.texi:29264 guix-git/doc/guix.texi:29348
  43901. #: guix-git/doc/guix.texi:29373
  43902. #, no-wrap
  43903. msgid "@code{pipefs-directory} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  43904. msgstr ""
  43905. #. type: table
  43906. #: guix-git/doc/guix.texi:29266 guix-git/doc/guix.texi:29350
  43907. #: guix-git/doc/guix.texi:29375
  43908. msgid "The directory where the pipefs file system is mounted."
  43909. msgstr ""
  43910. #. type: item
  43911. #: guix-git/doc/guix.texi:29267
  43912. #, fuzzy, no-wrap
  43913. msgid "@code{debug} (default: @code{'()\"})"
  43914. msgstr "@code{features} (@code{'()})"
  43915. #. type: table
  43916. #: guix-git/doc/guix.texi:29271
  43917. 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}."
  43918. msgstr ""
  43919. #. type: Plain text
  43920. #: guix-git/doc/guix.texi:29276
  43921. 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."
  43922. msgstr ""
  43923. #. type: subsubheading
  43924. #: guix-git/doc/guix.texi:29277
  43925. #, no-wrap
  43926. msgid "RPC Bind Service"
  43927. msgstr ""
  43928. #. type: cindex
  43929. #: guix-git/doc/guix.texi:29278
  43930. #, no-wrap
  43931. msgid "rpcbind"
  43932. msgstr ""
  43933. #. type: Plain text
  43934. #: guix-git/doc/guix.texi:29284
  43935. 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."
  43936. msgstr ""
  43937. #. type: defvr
  43938. #: guix-git/doc/guix.texi:29285
  43939. #, no-wrap
  43940. msgid "{Scheme Variable} rpcbind-service-type"
  43941. msgstr ""
  43942. #. type: defvr
  43943. #: guix-git/doc/guix.texi:29287
  43944. msgid "A service type for the RPC portmapper daemon."
  43945. msgstr ""
  43946. #. type: deftp
  43947. #: guix-git/doc/guix.texi:29290
  43948. #, no-wrap
  43949. msgid "{Data Type} rpcbind-configuration"
  43950. msgstr ""
  43951. #. type: deftp
  43952. #: guix-git/doc/guix.texi:29293
  43953. msgid "Data type representing the configuration of the RPC Bind Service. This type has the following parameters:"
  43954. msgstr ""
  43955. #. type: item
  43956. #: guix-git/doc/guix.texi:29297
  43957. #, no-wrap
  43958. msgid "@code{warm-start?} (default: @code{#t})"
  43959. msgstr ""
  43960. #. type: table
  43961. #: guix-git/doc/guix.texi:29301
  43962. 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."
  43963. msgstr ""
  43964. #. type: subsubheading
  43965. #: guix-git/doc/guix.texi:29305
  43966. #, no-wrap
  43967. msgid "Pipefs Pseudo File System"
  43968. msgstr ""
  43969. #. type: cindex
  43970. #: guix-git/doc/guix.texi:29306
  43971. #, no-wrap
  43972. msgid "pipefs"
  43973. msgstr ""
  43974. #. type: cindex
  43975. #: guix-git/doc/guix.texi:29307
  43976. #, no-wrap
  43977. msgid "rpc_pipefs"
  43978. msgstr ""
  43979. #. type: Plain text
  43980. #: guix-git/doc/guix.texi:29311
  43981. msgid "The pipefs file system is used to transfer NFS related data between the kernel and user space programs."
  43982. msgstr ""
  43983. #. type: defvr
  43984. #: guix-git/doc/guix.texi:29312
  43985. #, no-wrap
  43986. msgid "{Scheme Variable} pipefs-service-type"
  43987. msgstr ""
  43988. #. type: defvr
  43989. #: guix-git/doc/guix.texi:29314
  43990. msgid "A service type for the pipefs pseudo file system."
  43991. msgstr ""
  43992. #. type: deftp
  43993. #: guix-git/doc/guix.texi:29316
  43994. #, no-wrap
  43995. msgid "{Data Type} pipefs-configuration"
  43996. msgstr ""
  43997. #. type: deftp
  43998. #: guix-git/doc/guix.texi:29319
  43999. msgid "Data type representing the configuration of the pipefs pseudo file system service. This type has the following parameters:"
  44000. msgstr ""
  44001. #. type: item
  44002. #: guix-git/doc/guix.texi:29320
  44003. #, no-wrap
  44004. msgid "@code{mount-point} (default: @code{\"/var/lib/nfs/rpc_pipefs\"})"
  44005. msgstr ""
  44006. #. type: table
  44007. #: guix-git/doc/guix.texi:29322
  44008. msgid "The directory to which the file system is to be attached."
  44009. msgstr ""
  44010. #. type: subsubheading
  44011. #: guix-git/doc/guix.texi:29326
  44012. #, no-wrap
  44013. msgid "GSS Daemon Service"
  44014. msgstr ""
  44015. #. type: cindex
  44016. #: guix-git/doc/guix.texi:29327
  44017. #, no-wrap
  44018. msgid "GSSD"
  44019. msgstr ""
  44020. #. type: cindex
  44021. #: guix-git/doc/guix.texi:29328
  44022. #, no-wrap
  44023. msgid "GSS"
  44024. msgstr ""
  44025. #. type: cindex
  44026. #: guix-git/doc/guix.texi:29329
  44027. #, no-wrap
  44028. msgid "global security system"
  44029. msgstr ""
  44030. #. type: Plain text
  44031. #: guix-git/doc/guix.texi:29336
  44032. 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})."
  44033. msgstr ""
  44034. #. type: defvr
  44035. #: guix-git/doc/guix.texi:29337
  44036. #, no-wrap
  44037. msgid "{Scheme Variable} gss-service-type"
  44038. msgstr ""
  44039. #. type: defvr
  44040. #: guix-git/doc/guix.texi:29339
  44041. msgid "A service type for the Global Security System (GSS) daemon."
  44042. msgstr ""
  44043. #. type: deftp
  44044. #: guix-git/doc/guix.texi:29341
  44045. #, no-wrap
  44046. msgid "{Data Type} gss-configuration"
  44047. msgstr ""
  44048. #. type: deftp
  44049. #: guix-git/doc/guix.texi:29344
  44050. msgid "Data type representing the configuration of the GSS daemon service. This type has the following parameters:"
  44051. msgstr ""
  44052. #. type: table
  44053. #: guix-git/doc/guix.texi:29347
  44054. msgid "The package in which the @command{rpc.gssd} command is to be found."
  44055. msgstr ""
  44056. #. type: subsubheading
  44057. #: guix-git/doc/guix.texi:29355
  44058. #, no-wrap
  44059. msgid "IDMAP Daemon Service"
  44060. msgstr ""
  44061. #. type: cindex
  44062. #: guix-git/doc/guix.texi:29356
  44063. #, no-wrap
  44064. msgid "idmapd"
  44065. msgstr ""
  44066. #. type: cindex
  44067. #: guix-git/doc/guix.texi:29357
  44068. #, no-wrap
  44069. msgid "name mapper"
  44070. msgstr ""
  44071. #. type: Plain text
  44072. #: guix-git/doc/guix.texi:29361
  44073. 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."
  44074. msgstr ""
  44075. #. type: defvr
  44076. #: guix-git/doc/guix.texi:29362
  44077. #, no-wrap
  44078. msgid "{Scheme Variable} idmap-service-type"
  44079. msgstr ""
  44080. #. type: defvr
  44081. #: guix-git/doc/guix.texi:29364
  44082. msgid "A service type for the Identity Mapper (IDMAP) daemon."
  44083. msgstr ""
  44084. #. type: deftp
  44085. #: guix-git/doc/guix.texi:29366
  44086. #, no-wrap
  44087. msgid "{Data Type} idmap-configuration"
  44088. msgstr ""
  44089. #. type: deftp
  44090. #: guix-git/doc/guix.texi:29369
  44091. msgid "Data type representing the configuration of the IDMAP daemon service. This type has the following parameters:"
  44092. msgstr ""
  44093. #. type: table
  44094. #: guix-git/doc/guix.texi:29372
  44095. msgid "The package in which the @command{rpc.idmapd} command is to be found."
  44096. msgstr ""
  44097. #. type: item
  44098. #: guix-git/doc/guix.texi:29376
  44099. #, no-wrap
  44100. msgid "@code{domain} (default: @code{#f})"
  44101. msgstr ""
  44102. #. type: table
  44103. #: guix-git/doc/guix.texi:29380
  44104. 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."
  44105. msgstr ""
  44106. #. type: item
  44107. #: guix-git/doc/guix.texi:29381
  44108. #, fuzzy, no-wrap
  44109. msgid "@code{verbosity} (default: @code{0})"
  44110. msgstr "@code{port}(默认值:@code{22})"
  44111. #. type: table
  44112. #: guix-git/doc/guix.texi:29383
  44113. #, fuzzy
  44114. msgid "The verbosity level of the daemon."
  44115. msgstr "远程机器的主机名。"
  44116. #. type: Plain text
  44117. #: guix-git/doc/guix.texi:29394
  44118. 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})."
  44119. msgstr ""
  44120. #. type: Plain text
  44121. #: guix-git/doc/guix.texi:29396
  44122. msgid "The @code{(gnu services cuirass)} module provides the following service."
  44123. msgstr ""
  44124. #. type: defvr
  44125. #: guix-git/doc/guix.texi:29397
  44126. #, no-wrap
  44127. msgid "{Scheme Procedure} cuirass-service-type"
  44128. msgstr ""
  44129. #. type: defvr
  44130. #: guix-git/doc/guix.texi:29400
  44131. msgid "The type of the Cuirass service. Its value must be a @code{cuirass-configuration} object, as described below."
  44132. msgstr ""
  44133. #. type: Plain text
  44134. #: guix-git/doc/guix.texi:29405
  44135. 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."
  44136. msgstr ""
  44137. #. type: lisp
  44138. #: guix-git/doc/guix.texi:29416
  44139. #, no-wrap
  44140. msgid ""
  44141. "(define %cuirass-specs\n"
  44142. " #~(list (specification\n"
  44143. " (name \"my-channel\")\n"
  44144. " (build '(channels my-channel))\n"
  44145. " (channels\n"
  44146. " (cons (channel\n"
  44147. " (name 'my-channel)\n"
  44148. " (url \"https://my-channel.git\"))\n"
  44149. " %default-channels)))))\n"
  44150. "\n"
  44151. msgstr ""
  44152. #. type: lisp
  44153. #: guix-git/doc/guix.texi:29420 guix-git/doc/guix.texi:29434
  44154. #, no-wrap
  44155. msgid ""
  44156. "(service cuirass-service-type\n"
  44157. " (cuirass-configuration\n"
  44158. " (specifications %cuirass-specs)))\n"
  44159. msgstr ""
  44160. #. type: Plain text
  44161. #: guix-git/doc/guix.texi:29424
  44162. msgid "To build the @code{linux-libre} package defined by the default Guix channel, one can use the following configuration."
  44163. msgstr ""
  44164. #. type: lisp
  44165. #: guix-git/doc/guix.texi:29430
  44166. #, no-wrap
  44167. msgid ""
  44168. "(define %cuirass-specs\n"
  44169. " #~(list (specification\n"
  44170. " (name \"my-linux\")\n"
  44171. " (build '(packages \"linux-libre\")))))\n"
  44172. "\n"
  44173. msgstr ""
  44174. #. type: Plain text
  44175. #: guix-git/doc/guix.texi:29439
  44176. msgid "The other configuration possibilities, as well as the specification record itself are described in the Cuirass manual (@pxref{Specifications,,, cuirass, Cuirass})."
  44177. msgstr ""
  44178. #. type: Plain text
  44179. #: guix-git/doc/guix.texi:29443
  44180. 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."
  44181. msgstr ""
  44182. #. type: deftp
  44183. #: guix-git/doc/guix.texi:29444
  44184. #, no-wrap
  44185. msgid "{Data Type} cuirass-configuration"
  44186. msgstr ""
  44187. #. type: deftp
  44188. #: guix-git/doc/guix.texi:29446
  44189. msgid "Data type representing the configuration of Cuirass."
  44190. msgstr ""
  44191. #. type: item
  44192. #: guix-git/doc/guix.texi:29448 guix-git/doc/guix.texi:29585
  44193. #, no-wrap
  44194. msgid "@code{cuirass} (default: @code{cuirass})"
  44195. msgstr ""
  44196. #. type: table
  44197. #: guix-git/doc/guix.texi:29450 guix-git/doc/guix.texi:29587
  44198. msgid "The Cuirass package to use."
  44199. msgstr ""
  44200. #. type: item
  44201. #: guix-git/doc/guix.texi:29451
  44202. #, no-wrap
  44203. msgid "@code{log-file} (default: @code{\"/var/log/cuirass.log\"})"
  44204. msgstr ""
  44205. #. type: table
  44206. #: guix-git/doc/guix.texi:29453 guix-git/doc/guix.texi:29557
  44207. #: guix-git/doc/guix.texi:29600
  44208. msgid "Location of the log file."
  44209. msgstr ""
  44210. #. type: item
  44211. #: guix-git/doc/guix.texi:29454
  44212. #, fuzzy, no-wrap
  44213. msgid "@code{web-log-file} (default: @code{\"/var/log/cuirass-web.log\"})"
  44214. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  44215. #. type: table
  44216. #: guix-git/doc/guix.texi:29456
  44217. msgid "Location of the log file used by the web interface."
  44218. msgstr ""
  44219. #. type: item
  44220. #: guix-git/doc/guix.texi:29457
  44221. #, no-wrap
  44222. msgid "@code{cache-directory} (default: @code{\"/var/cache/cuirass\"})"
  44223. msgstr ""
  44224. #. type: table
  44225. #: guix-git/doc/guix.texi:29459
  44226. msgid "Location of the repository cache."
  44227. msgstr ""
  44228. #. type: item
  44229. #: guix-git/doc/guix.texi:29460
  44230. #, no-wrap
  44231. msgid "@code{user} (default: @code{\"cuirass\"})"
  44232. msgstr ""
  44233. #. type: table
  44234. #: guix-git/doc/guix.texi:29462
  44235. msgid "Owner of the @code{cuirass} process."
  44236. msgstr ""
  44237. #. type: item
  44238. #: guix-git/doc/guix.texi:29463
  44239. #, no-wrap
  44240. msgid "@code{group} (default: @code{\"cuirass\"})"
  44241. msgstr ""
  44242. #. type: table
  44243. #: guix-git/doc/guix.texi:29465
  44244. msgid "Owner's group of the @code{cuirass} process."
  44245. msgstr ""
  44246. #. type: item
  44247. #: guix-git/doc/guix.texi:29466
  44248. #, no-wrap
  44249. msgid "@code{interval} (default: @code{60})"
  44250. msgstr ""
  44251. #. type: table
  44252. #: guix-git/doc/guix.texi:29469
  44253. msgid "Number of seconds between the poll of the repositories followed by the Cuirass jobs."
  44254. msgstr ""
  44255. #. type: item
  44256. #: guix-git/doc/guix.texi:29470
  44257. #, fuzzy, no-wrap
  44258. msgid "@code{parameters} (default: @code{#f})"
  44259. msgstr "@code{port}(默认值:@code{22})"
  44260. #. type: table
  44261. #: guix-git/doc/guix.texi:29473
  44262. msgid "Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass})."
  44263. msgstr ""
  44264. #. type: item
  44265. #: guix-git/doc/guix.texi:29474
  44266. #, fuzzy, no-wrap
  44267. msgid "@code{remote-server} (default: @code{#f})"
  44268. msgstr "@code{speed}(默认值:@code{1.0})"
  44269. #. type: table
  44270. #: guix-git/doc/guix.texi:29477
  44271. msgid "A @code{cuirass-remote-server-configuration} record to use the build remote mechanism or @code{#f} to use the default build mechanism."
  44272. msgstr ""
  44273. #. type: item
  44274. #: guix-git/doc/guix.texi:29478
  44275. #, fuzzy, no-wrap
  44276. msgid "@code{database} (default: @code{\"dbname=cuirass host=/var/run/postgresql\"})"
  44277. msgstr "@code{port}(默认值:@code{22})"
  44278. #. type: table
  44279. #: guix-git/doc/guix.texi:29483
  44280. 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\"}."
  44281. msgstr ""
  44282. #. type: item
  44283. #: guix-git/doc/guix.texi:29484
  44284. #, no-wrap
  44285. msgid "@code{port} (default: @code{8081})"
  44286. msgstr ""
  44287. #. type: table
  44288. #: guix-git/doc/guix.texi:29486
  44289. msgid "Port number used by the HTTP server."
  44290. msgstr ""
  44291. #. type: table
  44292. #: guix-git/doc/guix.texi:29490
  44293. msgid "Listen on the network interface for @var{host}. The default is to accept connections from localhost."
  44294. msgstr ""
  44295. #. type: item
  44296. #: guix-git/doc/guix.texi:29491
  44297. #, no-wrap
  44298. msgid "@code{specifications} (default: @code{#~'()})"
  44299. msgstr ""
  44300. #. type: table
  44301. #: guix-git/doc/guix.texi:29495
  44302. 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})."
  44303. msgstr ""
  44304. #. type: item
  44305. #: guix-git/doc/guix.texi:29496
  44306. #, no-wrap
  44307. msgid "@code{use-substitutes?} (default: @code{#f})"
  44308. msgstr ""
  44309. #. type: table
  44310. #: guix-git/doc/guix.texi:29499
  44311. msgid "This allows using substitutes to avoid building every dependencies of a job from source."
  44312. msgstr ""
  44313. #. type: item
  44314. #: guix-git/doc/guix.texi:29500 guix-git/doc/guix.texi:36940
  44315. #, no-wrap
  44316. msgid "@code{one-shot?} (default: @code{#f})"
  44317. msgstr ""
  44318. #. type: table
  44319. #: guix-git/doc/guix.texi:29502
  44320. msgid "Only evaluate specifications and build derivations once."
  44321. msgstr ""
  44322. #. type: item
  44323. #: guix-git/doc/guix.texi:29503
  44324. #, no-wrap
  44325. msgid "@code{fallback?} (default: @code{#f})"
  44326. msgstr ""
  44327. #. type: table
  44328. #: guix-git/doc/guix.texi:29506
  44329. msgid "When substituting a pre-built binary fails, fall back to building packages locally."
  44330. msgstr ""
  44331. #. type: table
  44332. #: guix-git/doc/guix.texi:29509
  44333. msgid "Extra options to pass when running the Cuirass processes."
  44334. msgstr ""
  44335. #. type: cindex
  44336. #: guix-git/doc/guix.texi:29513
  44337. #, fuzzy, no-wrap
  44338. msgid "remote build"
  44339. msgstr "可复现的构建"
  44340. #. type: subsubheading
  44341. #: guix-git/doc/guix.texi:29514
  44342. #, no-wrap
  44343. msgid "Cuirass remote building"
  44344. msgstr ""
  44345. #. type: Plain text
  44346. #: guix-git/doc/guix.texi:29517
  44347. msgid "Cuirass supports two mechanisms to build derivations."
  44348. msgstr ""
  44349. #. type: item
  44350. #: guix-git/doc/guix.texi:29519
  44351. #, fuzzy, no-wrap
  44352. msgid "Using the local Guix daemon."
  44353. msgstr "运行“构建后台进程”"
  44354. #. type: itemize
  44355. #: guix-git/doc/guix.texi:29523
  44356. 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."
  44357. msgstr ""
  44358. #. type: item
  44359. #: guix-git/doc/guix.texi:29524
  44360. #, fuzzy, no-wrap
  44361. msgid "Using the remote build mechanism."
  44362. msgstr "准备隔离的构建环境。"
  44363. #. type: itemize
  44364. #: guix-git/doc/guix.texi:29528
  44365. 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."
  44366. msgstr ""
  44367. #. type: Plain text
  44368. #: guix-git/doc/guix.texi:29535
  44369. 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."
  44370. msgstr ""
  44371. #. type: Plain text
  44372. #: guix-git/doc/guix.texi:29540
  44373. 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."
  44374. msgstr ""
  44375. #. type: deftp
  44376. #: guix-git/doc/guix.texi:29541
  44377. #, fuzzy, no-wrap
  44378. msgid "{Data Type} cuirass-remote-server-configuration"
  44379. msgstr "{数据类型} build-machine"
  44380. #. type: deftp
  44381. #: guix-git/doc/guix.texi:29543
  44382. #, fuzzy
  44383. msgid "Data type representing the configuration of the Cuirass remote-server."
  44384. msgstr "管理操作系统配置。"
  44385. #. type: item
  44386. #: guix-git/doc/guix.texi:29545
  44387. #, fuzzy, no-wrap
  44388. msgid "@code{backend-port} (default: @code{5555})"
  44389. msgstr "@code{port}(默认值:@code{22})"
  44390. #. type: table
  44391. #: guix-git/doc/guix.texi:29548
  44392. msgid "The TCP port for communicating with @code{remote-worker} processes using ZMQ. It defaults to @code{5555}."
  44393. msgstr ""
  44394. #. type: item
  44395. #: guix-git/doc/guix.texi:29549
  44396. #, fuzzy, no-wrap
  44397. msgid "@code{log-port} (default: @code{5556})"
  44398. msgstr "@code{port}(默认值:@code{22})"
  44399. #. type: table
  44400. #: guix-git/doc/guix.texi:29551
  44401. msgid "The TCP port of the log server. It defaults to @code{5556}."
  44402. msgstr ""
  44403. #. type: item
  44404. #: guix-git/doc/guix.texi:29552
  44405. #, fuzzy, no-wrap
  44406. msgid "@code{publish-port} (default: @code{5557})"
  44407. msgstr "@code{port}(默认值:@code{22})"
  44408. #. type: table
  44409. #: guix-git/doc/guix.texi:29554
  44410. msgid "The TCP port of the publish server. It defaults to @code{5557}."
  44411. msgstr ""
  44412. #. type: item
  44413. #: guix-git/doc/guix.texi:29555
  44414. #, fuzzy, no-wrap
  44415. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-server.log\"})"
  44416. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  44417. #. type: item
  44418. #: guix-git/doc/guix.texi:29558
  44419. #, fuzzy, no-wrap
  44420. msgid "@code{cache} (default: @code{\"/var/cache/cuirass/remote\"})"
  44421. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  44422. #. type: table
  44423. #: guix-git/doc/guix.texi:29560
  44424. msgid "Use @var{cache} directory to cache build log files."
  44425. msgstr ""
  44426. #. type: item
  44427. #: guix-git/doc/guix.texi:29561
  44428. #, fuzzy, no-wrap
  44429. msgid "@code{trigger-url} (default: @code{#f})"
  44430. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44431. #. type: table
  44432. #: guix-git/doc/guix.texi:29564
  44433. msgid "Once a substitute is successfully fetched, trigger substitute baking at @var{trigger-url}."
  44434. msgstr ""
  44435. #. type: table
  44436. #: guix-git/doc/guix.texi:29569
  44437. msgid "If set to false, do not start a publish server and ignore the @code{publish-port} argument. This can be useful if there is already a standalone publish server standing next to the remote server."
  44438. msgstr ""
  44439. #. type: code{#1}
  44440. #: guix-git/doc/guix.texi:29571 guix-git/doc/guix.texi:29608
  44441. #, no-wrap
  44442. msgid "private-key"
  44443. msgstr ""
  44444. #. type: Plain text
  44445. #: guix-git/doc/guix.texi:29580
  44446. 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."
  44447. msgstr ""
  44448. #. type: deftp
  44449. #: guix-git/doc/guix.texi:29581
  44450. #, fuzzy, no-wrap
  44451. msgid "{Data Type} cuirass-remote-worker-configuration"
  44452. msgstr "{数据类型} build-machine"
  44453. #. type: deftp
  44454. #: guix-git/doc/guix.texi:29583
  44455. #, fuzzy
  44456. msgid "Data type representing the configuration of the Cuirass remote-worker."
  44457. msgstr "管理操作系统配置。"
  44458. #. type: item
  44459. #: guix-git/doc/guix.texi:29588
  44460. #, fuzzy, no-wrap
  44461. msgid "@code{workers} (default: @code{1})"
  44462. msgstr "@code{features} (@code{'()})"
  44463. #. type: table
  44464. #: guix-git/doc/guix.texi:29590
  44465. msgid "Start @var{workers} parallel workers."
  44466. msgstr ""
  44467. #. type: table
  44468. #: guix-git/doc/guix.texi:29594
  44469. msgid "Do not use Avahi discovery and connect to the given @code{server} IP address instead."
  44470. msgstr ""
  44471. #. type: item
  44472. #: guix-git/doc/guix.texi:29595
  44473. #, fuzzy, no-wrap
  44474. msgid "@code{systems} (default: @code{(list (%current-system))})"
  44475. msgstr "@code{port}(默认值:@code{22})"
  44476. #. type: table
  44477. #: guix-git/doc/guix.texi:29597
  44478. msgid "Only request builds for the given @var{systems}."
  44479. msgstr ""
  44480. #. type: item
  44481. #: guix-git/doc/guix.texi:29598
  44482. #, fuzzy, no-wrap
  44483. msgid "@code{log-file} (default: @code{\"/var/log/cuirass-remote-worker.log\"})"
  44484. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  44485. #. type: item
  44486. #: guix-git/doc/guix.texi:29601
  44487. #, fuzzy, no-wrap
  44488. msgid "@code{publish-port} (default: @code{5558})"
  44489. msgstr "@code{port}(默认值:@code{22})"
  44490. #. type: table
  44491. #: guix-git/doc/guix.texi:29603
  44492. msgid "The TCP port of the publish server. It defaults to @code{5558}."
  44493. msgstr ""
  44494. #. type: subsubheading
  44495. #: guix-git/doc/guix.texi:29615
  44496. #, no-wrap
  44497. msgid "Laminar"
  44498. msgstr ""
  44499. #. type: Plain text
  44500. #: guix-git/doc/guix.texi:29620
  44501. 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."
  44502. msgstr ""
  44503. #. type: Plain text
  44504. #: guix-git/doc/guix.texi:29623
  44505. msgid "Laminar encourages the use of existing tools such as bash and cron instead of reinventing them."
  44506. msgstr ""
  44507. #. type: defvr
  44508. #: guix-git/doc/guix.texi:29624
  44509. #, no-wrap
  44510. msgid "{Scheme Procedure} laminar-service-type"
  44511. msgstr ""
  44512. #. type: defvr
  44513. #: guix-git/doc/guix.texi:29627
  44514. msgid "The type of the Laminar service. Its value must be a @code{laminar-configuration} object, as described below."
  44515. msgstr ""
  44516. #. type: defvr
  44517. #: guix-git/doc/guix.texi:29631
  44518. 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."
  44519. msgstr ""
  44520. #. type: lisp
  44521. #: guix-git/doc/guix.texi:29634
  44522. #, no-wrap
  44523. msgid "(service laminar-service-type)\n"
  44524. msgstr ""
  44525. #. type: deftp
  44526. #: guix-git/doc/guix.texi:29637
  44527. #, fuzzy, no-wrap
  44528. msgid "{Data Type} laminar-configuration"
  44529. msgstr "{数据类型} build-machine"
  44530. #. type: deftp
  44531. #: guix-git/doc/guix.texi:29639
  44532. #, fuzzy
  44533. msgid "Data type representing the configuration of Laminar."
  44534. msgstr "管理操作系统配置。"
  44535. #. type: item
  44536. #: guix-git/doc/guix.texi:29641
  44537. #, fuzzy, no-wrap
  44538. msgid "@code{laminar} (default: @code{laminar})"
  44539. msgstr "@code{mate}(默认值:@code{mate})"
  44540. #. type: table
  44541. #: guix-git/doc/guix.texi:29643
  44542. #, fuzzy
  44543. msgid "The Laminar package to use."
  44544. msgstr "软件包数据类型。"
  44545. #. type: item
  44546. #: guix-git/doc/guix.texi:29644
  44547. #, fuzzy, no-wrap
  44548. msgid "@code{home-directory} (default: @code{\"/var/lib/laminar\"})"
  44549. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  44550. #. type: table
  44551. #: guix-git/doc/guix.texi:29646
  44552. msgid "The directory for job configurations and run directories."
  44553. msgstr ""
  44554. #. type: item
  44555. #: guix-git/doc/guix.texi:29647
  44556. #, fuzzy, no-wrap
  44557. msgid "@code{bind-http} (default: @code{\"*:8080\"})"
  44558. msgstr "@code{port}(默认值:@code{22})"
  44559. #. type: table
  44560. #: guix-git/doc/guix.texi:29650
  44561. msgid "The interface/port or unix socket on which laminard should listen for incoming connections to the web frontend."
  44562. msgstr ""
  44563. #. type: item
  44564. #: guix-git/doc/guix.texi:29651
  44565. #, fuzzy, no-wrap
  44566. msgid "@code{bind-rpc} (default: @code{\"unix-abstract:laminar\"})"
  44567. msgstr "@code{gnome}(默认值:@code{gnome})"
  44568. #. type: table
  44569. #: guix-git/doc/guix.texi:29654
  44570. msgid "The interface/port or unix socket on which laminard should listen for incoming commands such as build triggers."
  44571. msgstr ""
  44572. #. type: item
  44573. #: guix-git/doc/guix.texi:29655
  44574. #, fuzzy, no-wrap
  44575. msgid "@code{title} (default: @code{\"Laminar\"})"
  44576. msgstr "@code{mate}(默认值:@code{mate})"
  44577. #. type: table
  44578. #: guix-git/doc/guix.texi:29657
  44579. #, fuzzy
  44580. msgid "The page title to show in the web frontend."
  44581. msgstr "rottlog服务。"
  44582. #. type: item
  44583. #: guix-git/doc/guix.texi:29658
  44584. #, fuzzy, no-wrap
  44585. msgid "@code{keep-rundirs} (default: @code{0})"
  44586. msgstr "@code{features} (@code{'()})"
  44587. #. type: table
  44588. #: guix-git/doc/guix.texi:29662
  44589. 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."
  44590. msgstr ""
  44591. #. type: item
  44592. #: guix-git/doc/guix.texi:29663
  44593. #, fuzzy, no-wrap
  44594. msgid "@code{archive-url} (default: @code{#f})"
  44595. msgstr "@code{challenge}(默认值:@code{#f})"
  44596. #. type: table
  44597. #: guix-git/doc/guix.texi:29666
  44598. msgid "The web frontend served by laminard will use this URL to form links to artefacts archived jobs."
  44599. msgstr ""
  44600. #. type: item
  44601. #: guix-git/doc/guix.texi:29667
  44602. #, fuzzy, no-wrap
  44603. msgid "@code{base-url} (default: @code{#f})"
  44604. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  44605. #. type: table
  44606. #: guix-git/doc/guix.texi:29669
  44607. msgid "Base URL to use for links to laminar itself."
  44608. msgstr ""
  44609. #. type: cindex
  44610. #: guix-git/doc/guix.texi:29676
  44611. #, no-wrap
  44612. msgid "tlp"
  44613. msgstr ""
  44614. #. type: cindex
  44615. #: guix-git/doc/guix.texi:29677
  44616. #, no-wrap
  44617. msgid "power management with TLP"
  44618. msgstr ""
  44619. #. type: subsubheading
  44620. #: guix-git/doc/guix.texi:29678
  44621. #, no-wrap
  44622. msgid "TLP daemon"
  44623. msgstr ""
  44624. #. type: Plain text
  44625. #: guix-git/doc/guix.texi:29682
  44626. msgid "The @code{(gnu services pm)} module provides a Guix service definition for the Linux power management tool TLP."
  44627. msgstr ""
  44628. #. type: Plain text
  44629. #: guix-git/doc/guix.texi:29688
  44630. 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}."
  44631. msgstr ""
  44632. #. type: deffn
  44633. #: guix-git/doc/guix.texi:29689
  44634. #, no-wrap
  44635. msgid "{Scheme Variable} tlp-service-type"
  44636. msgstr ""
  44637. #. type: deffn
  44638. #: guix-git/doc/guix.texi:29693
  44639. 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}:"
  44640. msgstr ""
  44641. #. type: lisp
  44642. #: guix-git/doc/guix.texi:29698
  44643. #, no-wrap
  44644. msgid ""
  44645. "(service tlp-service-type\n"
  44646. " (tlp-configuration\n"
  44647. " (cpu-scaling-governor-on-ac (list \"performance\"))\n"
  44648. " (sched-powersave-on-bat? #t)))\n"
  44649. msgstr ""
  44650. #. type: Plain text
  44651. #: guix-git/doc/guix.texi:29706
  44652. 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}."
  44653. msgstr ""
  44654. #. type: Plain text
  44655. #: guix-git/doc/guix.texi:29716
  44656. msgid "Available @code{tlp-configuration} fields are:"
  44657. msgstr ""
  44658. #. type: deftypevr
  44659. #: guix-git/doc/guix.texi:29717
  44660. #, no-wrap
  44661. msgid "{@code{tlp-configuration} parameter} package tlp"
  44662. msgstr ""
  44663. #. type: deftypevr
  44664. #: guix-git/doc/guix.texi:29719
  44665. msgid "The TLP package."
  44666. msgstr ""
  44667. #. type: deftypevr
  44668. #: guix-git/doc/guix.texi:29722
  44669. #, no-wrap
  44670. msgid "{@code{tlp-configuration} parameter} boolean tlp-enable?"
  44671. msgstr ""
  44672. #. type: deftypevr
  44673. #: guix-git/doc/guix.texi:29724
  44674. msgid "Set to true if you wish to enable TLP."
  44675. msgstr ""
  44676. #. type: deftypevr
  44677. #: guix-git/doc/guix.texi:29729
  44678. #, no-wrap
  44679. msgid "{@code{tlp-configuration} parameter} string tlp-default-mode"
  44680. msgstr ""
  44681. #. type: deftypevr
  44682. #: guix-git/doc/guix.texi:29732
  44683. msgid "Default mode when no power supply can be detected. Alternatives are AC and BAT."
  44684. msgstr ""
  44685. #. type: deftypevr
  44686. #: guix-git/doc/guix.texi:29734
  44687. msgid "Defaults to @samp{\"AC\"}."
  44688. msgstr ""
  44689. #. type: deftypevr
  44690. #: guix-git/doc/guix.texi:29737
  44691. #, no-wrap
  44692. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-ac"
  44693. msgstr ""
  44694. #. type: deftypevr
  44695. #: guix-git/doc/guix.texi:29740
  44696. msgid "Number of seconds Linux kernel has to wait after the disk goes idle, before syncing on AC."
  44697. msgstr ""
  44698. #. type: deftypevr
  44699. #: guix-git/doc/guix.texi:29745
  44700. #, no-wrap
  44701. msgid "{@code{tlp-configuration} parameter} non-negative-integer disk-idle-secs-on-bat"
  44702. msgstr ""
  44703. #. type: deftypevr
  44704. #: guix-git/doc/guix.texi:29747
  44705. msgid "Same as @code{disk-idle-ac} but on BAT mode."
  44706. msgstr ""
  44707. #. type: deftypevr
  44708. #: guix-git/doc/guix.texi:29749
  44709. msgid "Defaults to @samp{2}."
  44710. msgstr ""
  44711. #. type: deftypevr
  44712. #: guix-git/doc/guix.texi:29752
  44713. #, no-wrap
  44714. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-ac"
  44715. msgstr ""
  44716. #. type: deftypevr
  44717. #: guix-git/doc/guix.texi:29754
  44718. msgid "Dirty pages flushing periodicity, expressed in seconds."
  44719. msgstr ""
  44720. #. type: deftypevr
  44721. #: guix-git/doc/guix.texi:29756 guix-git/doc/guix.texi:29979
  44722. #: guix-git/doc/guix.texi:32279 guix-git/doc/guix.texi:32287
  44723. msgid "Defaults to @samp{15}."
  44724. msgstr ""
  44725. #. type: deftypevr
  44726. #: guix-git/doc/guix.texi:29759
  44727. #, no-wrap
  44728. msgid "{@code{tlp-configuration} parameter} non-negative-integer max-lost-work-secs-on-bat"
  44729. msgstr ""
  44730. #. type: deftypevr
  44731. #: guix-git/doc/guix.texi:29761
  44732. msgid "Same as @code{max-lost-work-secs-on-ac} but on BAT mode."
  44733. msgstr ""
  44734. #. type: deftypevr
  44735. #: guix-git/doc/guix.texi:29763
  44736. msgid "Defaults to @samp{60}."
  44737. msgstr ""
  44738. #. type: deftypevr
  44739. #: guix-git/doc/guix.texi:29766
  44740. #, no-wrap
  44741. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-ac"
  44742. msgstr ""
  44743. #. type: deftypevr
  44744. #: guix-git/doc/guix.texi:29770
  44745. 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."
  44746. msgstr ""
  44747. #. type: deftypevr
  44748. #: guix-git/doc/guix.texi:29775
  44749. #, no-wrap
  44750. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list cpu-scaling-governor-on-bat"
  44751. msgstr ""
  44752. #. type: deftypevr
  44753. #: guix-git/doc/guix.texi:29777
  44754. msgid "Same as @code{cpu-scaling-governor-on-ac} but on BAT mode."
  44755. msgstr ""
  44756. #. type: deftypevr
  44757. #: guix-git/doc/guix.texi:29782
  44758. #, no-wrap
  44759. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-ac"
  44760. msgstr ""
  44761. #. type: deftypevr
  44762. #: guix-git/doc/guix.texi:29784
  44763. msgid "Set the min available frequency for the scaling governor on AC."
  44764. msgstr ""
  44765. #. type: deftypevr
  44766. #: guix-git/doc/guix.texi:29789
  44767. #, no-wrap
  44768. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-ac"
  44769. msgstr ""
  44770. #. type: deftypevr
  44771. #: guix-git/doc/guix.texi:29791
  44772. msgid "Set the max available frequency for the scaling governor on AC."
  44773. msgstr ""
  44774. #. type: deftypevr
  44775. #: guix-git/doc/guix.texi:29796
  44776. #, no-wrap
  44777. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-min-freq-on-bat"
  44778. msgstr ""
  44779. #. type: deftypevr
  44780. #: guix-git/doc/guix.texi:29798
  44781. msgid "Set the min available frequency for the scaling governor on BAT."
  44782. msgstr ""
  44783. #. type: deftypevr
  44784. #: guix-git/doc/guix.texi:29803
  44785. #, no-wrap
  44786. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-scaling-max-freq-on-bat"
  44787. msgstr ""
  44788. #. type: deftypevr
  44789. #: guix-git/doc/guix.texi:29805
  44790. msgid "Set the max available frequency for the scaling governor on BAT."
  44791. msgstr ""
  44792. #. type: deftypevr
  44793. #: guix-git/doc/guix.texi:29810
  44794. #, no-wrap
  44795. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-ac"
  44796. msgstr ""
  44797. #. type: deftypevr
  44798. #: guix-git/doc/guix.texi:29813
  44799. 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."
  44800. msgstr ""
  44801. #. type: deftypevr
  44802. #: guix-git/doc/guix.texi:29818
  44803. #, no-wrap
  44804. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-ac"
  44805. msgstr ""
  44806. #. type: deftypevr
  44807. #: guix-git/doc/guix.texi:29821
  44808. 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."
  44809. msgstr ""
  44810. #. type: deftypevr
  44811. #: guix-git/doc/guix.texi:29826
  44812. #, no-wrap
  44813. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-min-perf-on-bat"
  44814. msgstr ""
  44815. #. type: deftypevr
  44816. #: guix-git/doc/guix.texi:29828
  44817. msgid "Same as @code{cpu-min-perf-on-ac} on BAT mode."
  44818. msgstr ""
  44819. #. type: deftypevr
  44820. #: guix-git/doc/guix.texi:29833
  44821. #, no-wrap
  44822. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer cpu-max-perf-on-bat"
  44823. msgstr ""
  44824. #. type: deftypevr
  44825. #: guix-git/doc/guix.texi:29835
  44826. msgid "Same as @code{cpu-max-perf-on-ac} on BAT mode."
  44827. msgstr ""
  44828. #. type: deftypevr
  44829. #: guix-git/doc/guix.texi:29840
  44830. #, no-wrap
  44831. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-ac?"
  44832. msgstr ""
  44833. #. type: deftypevr
  44834. #: guix-git/doc/guix.texi:29842
  44835. msgid "Enable CPU turbo boost feature on AC mode."
  44836. msgstr ""
  44837. #. type: deftypevr
  44838. #: guix-git/doc/guix.texi:29847
  44839. #, no-wrap
  44840. msgid "{@code{tlp-configuration} parameter} maybe-boolean cpu-boost-on-bat?"
  44841. msgstr ""
  44842. #. type: deftypevr
  44843. #: guix-git/doc/guix.texi:29849
  44844. msgid "Same as @code{cpu-boost-on-ac?} on BAT mode."
  44845. msgstr ""
  44846. #. type: deftypevr
  44847. #: guix-git/doc/guix.texi:29854
  44848. #, no-wrap
  44849. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-ac?"
  44850. msgstr ""
  44851. #. type: deftypevr
  44852. #: guix-git/doc/guix.texi:29857
  44853. msgid "Allow Linux kernel to minimize the number of CPU cores/hyper-threads used under light load conditions."
  44854. msgstr ""
  44855. #. type: deftypevr
  44856. #: guix-git/doc/guix.texi:29862
  44857. #, no-wrap
  44858. msgid "{@code{tlp-configuration} parameter} boolean sched-powersave-on-bat?"
  44859. msgstr ""
  44860. #. type: deftypevr
  44861. #: guix-git/doc/guix.texi:29864
  44862. msgid "Same as @code{sched-powersave-on-ac?} but on BAT mode."
  44863. msgstr ""
  44864. #. type: deftypevr
  44865. #: guix-git/doc/guix.texi:29869
  44866. #, no-wrap
  44867. msgid "{@code{tlp-configuration} parameter} boolean nmi-watchdog?"
  44868. msgstr ""
  44869. #. type: deftypevr
  44870. #: guix-git/doc/guix.texi:29871
  44871. msgid "Enable Linux kernel NMI watchdog."
  44872. msgstr ""
  44873. #. type: deftypevr
  44874. #: guix-git/doc/guix.texi:29876
  44875. #, no-wrap
  44876. msgid "{@code{tlp-configuration} parameter} maybe-string phc-controls"
  44877. msgstr ""
  44878. #. type: deftypevr
  44879. #: guix-git/doc/guix.texi:29879
  44880. 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\"}."
  44881. msgstr ""
  44882. #. type: deftypevr
  44883. #: guix-git/doc/guix.texi:29884
  44884. #, no-wrap
  44885. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-ac"
  44886. msgstr ""
  44887. #. type: deftypevr
  44888. #: guix-git/doc/guix.texi:29887
  44889. msgid "Set CPU performance versus energy saving policy on AC@. Alternatives are performance, normal, powersave."
  44890. msgstr ""
  44891. #. type: deftypevr
  44892. #: guix-git/doc/guix.texi:29889 guix-git/doc/guix.texi:29987
  44893. #: guix-git/doc/guix.texi:30045
  44894. msgid "Defaults to @samp{\"performance\"}."
  44895. msgstr ""
  44896. #. type: deftypevr
  44897. #: guix-git/doc/guix.texi:29892
  44898. #, no-wrap
  44899. msgid "{@code{tlp-configuration} parameter} string energy-perf-policy-on-bat"
  44900. msgstr ""
  44901. #. type: deftypevr
  44902. #: guix-git/doc/guix.texi:29894
  44903. msgid "Same as @code{energy-perf-policy-ac} but on BAT mode."
  44904. msgstr ""
  44905. #. type: deftypevr
  44906. #: guix-git/doc/guix.texi:29896 guix-git/doc/guix.texi:29994
  44907. msgid "Defaults to @samp{\"powersave\"}."
  44908. msgstr ""
  44909. #. type: deftypevr
  44910. #: guix-git/doc/guix.texi:29899
  44911. #, no-wrap
  44912. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disks-devices"
  44913. msgstr ""
  44914. #. type: deftypevr
  44915. #: guix-git/doc/guix.texi:29901
  44916. msgid "Hard disk devices."
  44917. msgstr ""
  44918. #. type: deftypevr
  44919. #: guix-git/doc/guix.texi:29904
  44920. #, no-wrap
  44921. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-ac"
  44922. msgstr ""
  44923. #. type: deftypevr
  44924. #: guix-git/doc/guix.texi:29906
  44925. msgid "Hard disk advanced power management level."
  44926. msgstr ""
  44927. #. type: deftypevr
  44928. #: guix-git/doc/guix.texi:29909
  44929. #, no-wrap
  44930. msgid "{@code{tlp-configuration} parameter} space-separated-string-list disk-apm-level-on-bat"
  44931. msgstr ""
  44932. #. type: deftypevr
  44933. #: guix-git/doc/guix.texi:29911
  44934. msgid "Same as @code{disk-apm-bat} but on BAT mode."
  44935. msgstr ""
  44936. #. type: deftypevr
  44937. #: guix-git/doc/guix.texi:29914
  44938. #, no-wrap
  44939. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-ac"
  44940. msgstr ""
  44941. #. type: deftypevr
  44942. #: guix-git/doc/guix.texi:29917
  44943. msgid "Hard disk spin down timeout. One value has to be specified for each declared hard disk."
  44944. msgstr ""
  44945. #. type: deftypevr
  44946. #: guix-git/doc/guix.texi:29922
  44947. #, no-wrap
  44948. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-spindown-timeout-on-bat"
  44949. msgstr ""
  44950. #. type: deftypevr
  44951. #: guix-git/doc/guix.texi:29924
  44952. msgid "Same as @code{disk-spindown-timeout-on-ac} but on BAT mode."
  44953. msgstr ""
  44954. #. type: deftypevr
  44955. #: guix-git/doc/guix.texi:29929
  44956. #, no-wrap
  44957. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list disk-iosched"
  44958. msgstr ""
  44959. #. type: deftypevr
  44960. #: guix-git/doc/guix.texi:29933
  44961. 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."
  44962. msgstr ""
  44963. #. type: deftypevr
  44964. #: guix-git/doc/guix.texi:29938
  44965. #, no-wrap
  44966. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-ac"
  44967. msgstr ""
  44968. #. type: deftypevr
  44969. #: guix-git/doc/guix.texi:29941
  44970. msgid "SATA aggressive link power management (ALPM) level. Alternatives are min_power, medium_power, max_performance."
  44971. msgstr ""
  44972. #. type: deftypevr
  44973. #: guix-git/doc/guix.texi:29943
  44974. msgid "Defaults to @samp{\"max_performance\"}."
  44975. msgstr ""
  44976. #. type: deftypevr
  44977. #: guix-git/doc/guix.texi:29946
  44978. #, no-wrap
  44979. msgid "{@code{tlp-configuration} parameter} string sata-linkpwr-on-bat"
  44980. msgstr ""
  44981. #. type: deftypevr
  44982. #: guix-git/doc/guix.texi:29948
  44983. msgid "Same as @code{sata-linkpwr-ac} but on BAT mode."
  44984. msgstr ""
  44985. #. type: deftypevr
  44986. #: guix-git/doc/guix.texi:29950
  44987. msgid "Defaults to @samp{\"min_power\"}."
  44988. msgstr ""
  44989. #. type: deftypevr
  44990. #: guix-git/doc/guix.texi:29953
  44991. #, no-wrap
  44992. msgid "{@code{tlp-configuration} parameter} maybe-string sata-linkpwr-blacklist"
  44993. msgstr ""
  44994. #. type: deftypevr
  44995. #: guix-git/doc/guix.texi:29955
  44996. msgid "Exclude specified SATA host devices for link power management."
  44997. msgstr ""
  44998. #. type: deftypevr
  44999. #: guix-git/doc/guix.texi:29960
  45000. #, no-wrap
  45001. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-ac?"
  45002. msgstr ""
  45003. #. type: deftypevr
  45004. #: guix-git/doc/guix.texi:29963
  45005. msgid "Enable Runtime Power Management for AHCI controller and disks on AC mode."
  45006. msgstr ""
  45007. #. type: deftypevr
  45008. #: guix-git/doc/guix.texi:29968
  45009. #, no-wrap
  45010. msgid "{@code{tlp-configuration} parameter} maybe-on-off-boolean ahci-runtime-pm-on-bat?"
  45011. msgstr ""
  45012. #. type: deftypevr
  45013. #: guix-git/doc/guix.texi:29970
  45014. msgid "Same as @code{ahci-runtime-pm-on-ac} on BAT mode."
  45015. msgstr ""
  45016. #. type: deftypevr
  45017. #: guix-git/doc/guix.texi:29975
  45018. #, no-wrap
  45019. msgid "{@code{tlp-configuration} parameter} non-negative-integer ahci-runtime-pm-timeout"
  45020. msgstr ""
  45021. #. type: deftypevr
  45022. #: guix-git/doc/guix.texi:29977
  45023. msgid "Seconds of inactivity before disk is suspended."
  45024. msgstr ""
  45025. #. type: deftypevr
  45026. #: guix-git/doc/guix.texi:29982
  45027. #, no-wrap
  45028. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-ac"
  45029. msgstr ""
  45030. #. type: deftypevr
  45031. #: guix-git/doc/guix.texi:29985
  45032. msgid "PCI Express Active State Power Management level. Alternatives are default, performance, powersave."
  45033. msgstr ""
  45034. #. type: deftypevr
  45035. #: guix-git/doc/guix.texi:29990
  45036. #, no-wrap
  45037. msgid "{@code{tlp-configuration} parameter} string pcie-aspm-on-bat"
  45038. msgstr ""
  45039. #. type: deftypevr
  45040. #: guix-git/doc/guix.texi:29992
  45041. msgid "Same as @code{pcie-aspm-ac} but on BAT mode."
  45042. msgstr ""
  45043. #. type: deftypevr
  45044. #: guix-git/doc/guix.texi:29997
  45045. #, no-wrap
  45046. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat0"
  45047. msgstr ""
  45048. #. type: deftypevr
  45049. #: guix-git/doc/guix.texi:29999
  45050. msgid "Percentage when battery 0 should begin charging. Only supported on some laptops."
  45051. msgstr ""
  45052. #. type: deftypevr
  45053. #: guix-git/doc/guix.texi:30004
  45054. #, no-wrap
  45055. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat0"
  45056. msgstr ""
  45057. #. type: deftypevr
  45058. #: guix-git/doc/guix.texi:30006
  45059. msgid "Percentage when battery 0 should stop charging. Only supported on some laptops."
  45060. msgstr ""
  45061. #. type: deftypevr
  45062. #: guix-git/doc/guix.texi:30011
  45063. #, no-wrap
  45064. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer start-charge-thresh-bat1"
  45065. msgstr ""
  45066. #. type: deftypevr
  45067. #: guix-git/doc/guix.texi:30013
  45068. msgid "Percentage when battery 1 should begin charging. Only supported on some laptops."
  45069. msgstr ""
  45070. #. type: deftypevr
  45071. #: guix-git/doc/guix.texi:30018
  45072. #, no-wrap
  45073. msgid "{@code{tlp-configuration} parameter} maybe-non-negative-integer stop-charge-thresh-bat1"
  45074. msgstr ""
  45075. #. type: deftypevr
  45076. #: guix-git/doc/guix.texi:30020
  45077. msgid "Percentage when battery 1 should stop charging. Only supported on some laptops."
  45078. msgstr ""
  45079. #. type: deftypevr
  45080. #: guix-git/doc/guix.texi:30025
  45081. #, no-wrap
  45082. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-ac"
  45083. msgstr ""
  45084. #. type: deftypevr
  45085. #: guix-git/doc/guix.texi:30028
  45086. msgid "Radeon graphics clock speed level. Alternatives are low, mid, high, auto, default."
  45087. msgstr ""
  45088. #. type: deftypevr
  45089. #: guix-git/doc/guix.texi:30030
  45090. msgid "Defaults to @samp{\"high\"}."
  45091. msgstr ""
  45092. #. type: deftypevr
  45093. #: guix-git/doc/guix.texi:30033
  45094. #, no-wrap
  45095. msgid "{@code{tlp-configuration} parameter} string radeon-power-profile-on-bat"
  45096. msgstr ""
  45097. #. type: deftypevr
  45098. #: guix-git/doc/guix.texi:30035
  45099. msgid "Same as @code{radeon-power-ac} but on BAT mode."
  45100. msgstr ""
  45101. #. type: deftypevr
  45102. #: guix-git/doc/guix.texi:30037
  45103. msgid "Defaults to @samp{\"low\"}."
  45104. msgstr ""
  45105. #. type: deftypevr
  45106. #: guix-git/doc/guix.texi:30040
  45107. #, no-wrap
  45108. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-ac"
  45109. msgstr ""
  45110. #. type: deftypevr
  45111. #: guix-git/doc/guix.texi:30043
  45112. msgid "Radeon dynamic power management method (DPM). Alternatives are battery, performance."
  45113. msgstr ""
  45114. #. type: deftypevr
  45115. #: guix-git/doc/guix.texi:30048
  45116. #, no-wrap
  45117. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-state-on-bat"
  45118. msgstr ""
  45119. #. type: deftypevr
  45120. #: guix-git/doc/guix.texi:30050
  45121. msgid "Same as @code{radeon-dpm-state-ac} but on BAT mode."
  45122. msgstr ""
  45123. #. type: deftypevr
  45124. #: guix-git/doc/guix.texi:30052
  45125. msgid "Defaults to @samp{\"battery\"}."
  45126. msgstr ""
  45127. #. type: deftypevr
  45128. #: guix-git/doc/guix.texi:30055
  45129. #, no-wrap
  45130. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-ac"
  45131. msgstr ""
  45132. #. type: deftypevr
  45133. #: guix-git/doc/guix.texi:30057
  45134. msgid "Radeon DPM performance level. Alternatives are auto, low, high."
  45135. msgstr ""
  45136. #. type: deftypevr
  45137. #: guix-git/doc/guix.texi:30059 guix-git/doc/guix.texi:30066
  45138. #: guix-git/doc/guix.texi:30140
  45139. msgid "Defaults to @samp{\"auto\"}."
  45140. msgstr ""
  45141. #. type: deftypevr
  45142. #: guix-git/doc/guix.texi:30062
  45143. #, no-wrap
  45144. msgid "{@code{tlp-configuration} parameter} string radeon-dpm-perf-level-on-bat"
  45145. msgstr ""
  45146. #. type: deftypevr
  45147. #: guix-git/doc/guix.texi:30064
  45148. msgid "Same as @code{radeon-dpm-perf-ac} but on BAT mode."
  45149. msgstr ""
  45150. #. type: deftypevr
  45151. #: guix-git/doc/guix.texi:30069
  45152. #, no-wrap
  45153. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-ac?"
  45154. msgstr ""
  45155. #. type: deftypevr
  45156. #: guix-git/doc/guix.texi:30071
  45157. msgid "Wifi power saving mode."
  45158. msgstr ""
  45159. #. type: deftypevr
  45160. #: guix-git/doc/guix.texi:30076
  45161. #, no-wrap
  45162. msgid "{@code{tlp-configuration} parameter} on-off-boolean wifi-pwr-on-bat?"
  45163. msgstr ""
  45164. #. type: deftypevr
  45165. #: guix-git/doc/guix.texi:30078
  45166. msgid "Same as @code{wifi-power-ac?} but on BAT mode."
  45167. msgstr ""
  45168. #. type: deftypevr
  45169. #: guix-git/doc/guix.texi:30083
  45170. #, no-wrap
  45171. msgid "{@code{tlp-configuration} parameter} y-n-boolean wol-disable?"
  45172. msgstr ""
  45173. #. type: deftypevr
  45174. #: guix-git/doc/guix.texi:30085
  45175. msgid "Disable wake on LAN."
  45176. msgstr ""
  45177. #. type: deftypevr
  45178. #: guix-git/doc/guix.texi:30090
  45179. #, no-wrap
  45180. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-ac"
  45181. msgstr ""
  45182. #. type: deftypevr
  45183. #: guix-git/doc/guix.texi:30093
  45184. msgid "Timeout duration in seconds before activating audio power saving on Intel HDA and AC97 devices. A value of 0 disables power saving."
  45185. msgstr ""
  45186. #. type: deftypevr
  45187. #: guix-git/doc/guix.texi:30098
  45188. #, no-wrap
  45189. msgid "{@code{tlp-configuration} parameter} non-negative-integer sound-power-save-on-bat"
  45190. msgstr ""
  45191. #. type: deftypevr
  45192. #: guix-git/doc/guix.texi:30100
  45193. msgid "Same as @code{sound-powersave-ac} but on BAT mode."
  45194. msgstr ""
  45195. #. type: deftypevr
  45196. #: guix-git/doc/guix.texi:30105
  45197. #, no-wrap
  45198. msgid "{@code{tlp-configuration} parameter} y-n-boolean sound-power-save-controller?"
  45199. msgstr ""
  45200. #. type: deftypevr
  45201. #: guix-git/doc/guix.texi:30107
  45202. msgid "Disable controller in powersaving mode on Intel HDA devices."
  45203. msgstr ""
  45204. #. type: deftypevr
  45205. #: guix-git/doc/guix.texi:30112
  45206. #, no-wrap
  45207. msgid "{@code{tlp-configuration} parameter} boolean bay-poweroff-on-bat?"
  45208. msgstr ""
  45209. #. type: deftypevr
  45210. #: guix-git/doc/guix.texi:30116
  45211. 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."
  45212. msgstr ""
  45213. #. type: deftypevr
  45214. #: guix-git/doc/guix.texi:30121
  45215. #, no-wrap
  45216. msgid "{@code{tlp-configuration} parameter} string bay-device"
  45217. msgstr ""
  45218. #. type: deftypevr
  45219. #: guix-git/doc/guix.texi:30123
  45220. msgid "Name of the optical drive device to power off."
  45221. msgstr ""
  45222. #. type: deftypevr
  45223. #: guix-git/doc/guix.texi:30125
  45224. msgid "Defaults to @samp{\"sr0\"}."
  45225. msgstr ""
  45226. #. type: deftypevr
  45227. #: guix-git/doc/guix.texi:30128
  45228. #, no-wrap
  45229. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-ac"
  45230. msgstr ""
  45231. #. type: deftypevr
  45232. #: guix-git/doc/guix.texi:30131
  45233. msgid "Runtime Power Management for PCI(e) bus devices. Alternatives are on and auto."
  45234. msgstr ""
  45235. #. type: deftypevr
  45236. #: guix-git/doc/guix.texi:30133
  45237. msgid "Defaults to @samp{\"on\"}."
  45238. msgstr ""
  45239. #. type: deftypevr
  45240. #: guix-git/doc/guix.texi:30136
  45241. #, no-wrap
  45242. msgid "{@code{tlp-configuration} parameter} string runtime-pm-on-bat"
  45243. msgstr ""
  45244. #. type: deftypevr
  45245. #: guix-git/doc/guix.texi:30138
  45246. msgid "Same as @code{runtime-pm-ac} but on BAT mode."
  45247. msgstr ""
  45248. #. type: deftypevr
  45249. #: guix-git/doc/guix.texi:30143
  45250. #, no-wrap
  45251. msgid "{@code{tlp-configuration} parameter} boolean runtime-pm-all?"
  45252. msgstr ""
  45253. #. type: deftypevr
  45254. #: guix-git/doc/guix.texi:30146
  45255. msgid "Runtime Power Management for all PCI(e) bus devices, except blacklisted ones."
  45256. msgstr ""
  45257. #. type: deftypevr
  45258. #: guix-git/doc/guix.texi:30151
  45259. #, no-wrap
  45260. msgid "{@code{tlp-configuration} parameter} maybe-space-separated-string-list runtime-pm-blacklist"
  45261. msgstr ""
  45262. #. type: deftypevr
  45263. #: guix-git/doc/guix.texi:30153
  45264. msgid "Exclude specified PCI(e) device addresses from Runtime Power Management."
  45265. msgstr ""
  45266. #. type: deftypevr
  45267. #: guix-git/doc/guix.texi:30158
  45268. #, no-wrap
  45269. msgid "{@code{tlp-configuration} parameter} space-separated-string-list runtime-pm-driver-blacklist"
  45270. msgstr ""
  45271. #. type: deftypevr
  45272. #: guix-git/doc/guix.texi:30161
  45273. msgid "Exclude PCI(e) devices assigned to the specified drivers from Runtime Power Management."
  45274. msgstr ""
  45275. #. type: deftypevr
  45276. #: guix-git/doc/guix.texi:30164
  45277. #, no-wrap
  45278. msgid "{@code{tlp-configuration} parameter} boolean usb-autosuspend?"
  45279. msgstr ""
  45280. #. type: deftypevr
  45281. #: guix-git/doc/guix.texi:30166
  45282. msgid "Enable USB autosuspend feature."
  45283. msgstr ""
  45284. #. type: deftypevr
  45285. #: guix-git/doc/guix.texi:30171
  45286. #, no-wrap
  45287. msgid "{@code{tlp-configuration} parameter} maybe-string usb-blacklist"
  45288. msgstr ""
  45289. #. type: deftypevr
  45290. #: guix-git/doc/guix.texi:30173
  45291. msgid "Exclude specified devices from USB autosuspend."
  45292. msgstr ""
  45293. #. type: deftypevr
  45294. #: guix-git/doc/guix.texi:30178
  45295. #, no-wrap
  45296. msgid "{@code{tlp-configuration} parameter} boolean usb-blacklist-wwan?"
  45297. msgstr ""
  45298. #. type: deftypevr
  45299. #: guix-git/doc/guix.texi:30180
  45300. msgid "Exclude WWAN devices from USB autosuspend."
  45301. msgstr ""
  45302. #. type: deftypevr
  45303. #: guix-git/doc/guix.texi:30185
  45304. #, no-wrap
  45305. msgid "{@code{tlp-configuration} parameter} maybe-string usb-whitelist"
  45306. msgstr ""
  45307. #. type: deftypevr
  45308. #: guix-git/doc/guix.texi:30188
  45309. msgid "Include specified devices into USB autosuspend, even if they are already excluded by the driver or via @code{usb-blacklist-wwan?}."
  45310. msgstr ""
  45311. #. type: deftypevr
  45312. #: guix-git/doc/guix.texi:30193
  45313. #, no-wrap
  45314. msgid "{@code{tlp-configuration} parameter} maybe-boolean usb-autosuspend-disable-on-shutdown?"
  45315. msgstr ""
  45316. #. type: deftypevr
  45317. #: guix-git/doc/guix.texi:30195
  45318. msgid "Enable USB autosuspend before shutdown."
  45319. msgstr ""
  45320. #. type: deftypevr
  45321. #: guix-git/doc/guix.texi:30200
  45322. #, no-wrap
  45323. msgid "{@code{tlp-configuration} parameter} boolean restore-device-state-on-startup?"
  45324. msgstr ""
  45325. #. type: deftypevr
  45326. #: guix-git/doc/guix.texi:30203
  45327. msgid "Restore radio device state (bluetooth, wifi, wwan) from previous shutdown on system startup."
  45328. msgstr ""
  45329. #. type: cindex
  45330. #: guix-git/doc/guix.texi:30208
  45331. #, no-wrap
  45332. msgid "thermald"
  45333. msgstr ""
  45334. #. type: cindex
  45335. #: guix-git/doc/guix.texi:30209
  45336. #, no-wrap
  45337. msgid "CPU frequency scaling with thermald"
  45338. msgstr ""
  45339. #. type: subsubheading
  45340. #: guix-git/doc/guix.texi:30210
  45341. #, no-wrap
  45342. msgid "Thermald daemon"
  45343. msgstr ""
  45344. #. type: Plain text
  45345. #: guix-git/doc/guix.texi:30214
  45346. msgid "The @code{(gnu services pm)} module provides an interface to thermald, a CPU frequency scaling service which helps prevent overheating."
  45347. msgstr ""
  45348. #. type: defvr
  45349. #: guix-git/doc/guix.texi:30215
  45350. #, no-wrap
  45351. msgid "{Scheme Variable} thermald-service-type"
  45352. msgstr ""
  45353. #. type: defvr
  45354. #: guix-git/doc/guix.texi:30220
  45355. 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."
  45356. msgstr ""
  45357. #. type: deftp
  45358. #: guix-git/doc/guix.texi:30222
  45359. #, no-wrap
  45360. msgid "{Data Type} thermald-configuration"
  45361. msgstr ""
  45362. #. type: deftp
  45363. #: guix-git/doc/guix.texi:30224
  45364. msgid "Data type representing the configuration of @code{thermald-service-type}."
  45365. msgstr ""
  45366. #. type: item
  45367. #: guix-git/doc/guix.texi:30226
  45368. #, no-wrap
  45369. msgid "@code{ignore-cpuid-check?} (default: @code{#f})"
  45370. msgstr ""
  45371. #. type: table
  45372. #: guix-git/doc/guix.texi:30228
  45373. msgid "Ignore cpuid check for supported CPU models."
  45374. msgstr ""
  45375. #. type: item
  45376. #: guix-git/doc/guix.texi:30229
  45377. #, no-wrap
  45378. msgid "@code{thermald} (default: @var{thermald})"
  45379. msgstr ""
  45380. #. type: table
  45381. #: guix-git/doc/guix.texi:30231
  45382. msgid "Package object of thermald."
  45383. msgstr ""
  45384. #. type: Plain text
  45385. #: guix-git/doc/guix.texi:30240
  45386. msgid "The @code{(gnu services audio)} module provides a service to start MPD (the Music Player Daemon)."
  45387. msgstr ""
  45388. #. type: cindex
  45389. #: guix-git/doc/guix.texi:30241
  45390. #, no-wrap
  45391. msgid "mpd"
  45392. msgstr ""
  45393. #. type: subsubheading
  45394. #: guix-git/doc/guix.texi:30242
  45395. #, no-wrap
  45396. msgid "Music Player Daemon"
  45397. msgstr ""
  45398. #. type: Plain text
  45399. #: guix-git/doc/guix.texi:30247
  45400. 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."
  45401. msgstr ""
  45402. #. type: Plain text
  45403. #: guix-git/doc/guix.texi:30250
  45404. msgid "The following example shows how one might run @code{mpd} as user @code{\"bob\"} on port @code{6666}. It uses pulseaudio for output."
  45405. msgstr ""
  45406. #. type: lisp
  45407. #: guix-git/doc/guix.texi:30256
  45408. #, no-wrap
  45409. msgid ""
  45410. "(service mpd-service-type\n"
  45411. " (mpd-configuration\n"
  45412. " (user \"bob\")\n"
  45413. " (port \"6666\")))\n"
  45414. msgstr ""
  45415. #. type: defvr
  45416. #: guix-git/doc/guix.texi:30258
  45417. #, no-wrap
  45418. msgid "{Scheme Variable} mpd-service-type"
  45419. msgstr ""
  45420. #. type: defvr
  45421. #: guix-git/doc/guix.texi:30260
  45422. msgid "The service type for @command{mpd}"
  45423. msgstr ""
  45424. #. type: deftp
  45425. #: guix-git/doc/guix.texi:30262
  45426. #, no-wrap
  45427. msgid "{Data Type} mpd-configuration"
  45428. msgstr ""
  45429. #. type: deftp
  45430. #: guix-git/doc/guix.texi:30264
  45431. msgid "Data type representing the configuration of @command{mpd}."
  45432. msgstr ""
  45433. #. type: item
  45434. #: guix-git/doc/guix.texi:30266
  45435. #, no-wrap
  45436. msgid "@code{user} (default: @code{\"mpd\"})"
  45437. msgstr ""
  45438. #. type: table
  45439. #: guix-git/doc/guix.texi:30268
  45440. msgid "The user to run mpd as."
  45441. msgstr ""
  45442. #. type: item
  45443. #: guix-git/doc/guix.texi:30269
  45444. #, no-wrap
  45445. msgid "@code{music-dir} (default: @code{\"~/Music\"})"
  45446. msgstr ""
  45447. #. type: table
  45448. #: guix-git/doc/guix.texi:30271
  45449. msgid "The directory to scan for music files."
  45450. msgstr ""
  45451. #. type: item
  45452. #: guix-git/doc/guix.texi:30272
  45453. #, no-wrap
  45454. msgid "@code{playlist-dir} (default: @code{\"~/.mpd/playlists\"})"
  45455. msgstr ""
  45456. #. type: table
  45457. #: guix-git/doc/guix.texi:30274
  45458. msgid "The directory to store playlists."
  45459. msgstr ""
  45460. #. type: item
  45461. #: guix-git/doc/guix.texi:30275
  45462. #, no-wrap
  45463. msgid "@code{db-file} (default: @code{\"~/.mpd/tag_cache\"})"
  45464. msgstr ""
  45465. #. type: table
  45466. #: guix-git/doc/guix.texi:30277
  45467. msgid "The location of the music database."
  45468. msgstr ""
  45469. #. type: item
  45470. #: guix-git/doc/guix.texi:30278
  45471. #, no-wrap
  45472. msgid "@code{state-file} (default: @code{\"~/.mpd/state\"})"
  45473. msgstr ""
  45474. #. type: table
  45475. #: guix-git/doc/guix.texi:30280
  45476. msgid "The location of the file that stores current MPD's state."
  45477. msgstr ""
  45478. #. type: item
  45479. #: guix-git/doc/guix.texi:30281
  45480. #, no-wrap
  45481. msgid "@code{sticker-file} (default: @code{\"~/.mpd/sticker.sql\"})"
  45482. msgstr ""
  45483. #. type: table
  45484. #: guix-git/doc/guix.texi:30283
  45485. msgid "The location of the sticker database."
  45486. msgstr ""
  45487. #. type: item
  45488. #: guix-git/doc/guix.texi:30284
  45489. #, no-wrap
  45490. msgid "@code{port} (default: @code{\"6600\"})"
  45491. msgstr ""
  45492. #. type: table
  45493. #: guix-git/doc/guix.texi:30286
  45494. msgid "The port to run mpd on."
  45495. msgstr ""
  45496. #. type: item
  45497. #: guix-git/doc/guix.texi:30287
  45498. #, no-wrap
  45499. msgid "@code{address} (default: @code{\"any\"})"
  45500. msgstr ""
  45501. #. type: table
  45502. #: guix-git/doc/guix.texi:30290
  45503. msgid "The address that mpd will bind to. To use a Unix domain socket, an absolute path can be specified here."
  45504. msgstr ""
  45505. #. type: item
  45506. #: guix-git/doc/guix.texi:30291
  45507. #, fuzzy, no-wrap
  45508. msgid "@code{outputs} (default: @code{\"(list (mpd-output))\"})"
  45509. msgstr "@code{features} (@code{'()})"
  45510. #. type: table
  45511. #: guix-git/doc/guix.texi:30293
  45512. msgid "The audio outputs that MPD can use. By default this is a single output using pulseaudio."
  45513. msgstr ""
  45514. #. type: deftp
  45515. #: guix-git/doc/guix.texi:30297
  45516. #, no-wrap
  45517. msgid "{Data Type} mpd-output"
  45518. msgstr ""
  45519. #. type: deftp
  45520. #: guix-git/doc/guix.texi:30299
  45521. msgid "Data type representing an @command{mpd} audio output."
  45522. msgstr ""
  45523. #. type: item
  45524. #: guix-git/doc/guix.texi:30301
  45525. #, fuzzy, no-wrap
  45526. msgid "@code{name} (default: @code{\"MPD\"})"
  45527. msgstr "@code{gnome}(默认值:@code{gnome})"
  45528. #. type: table
  45529. #: guix-git/doc/guix.texi:30303
  45530. msgid "The name of the audio output."
  45531. msgstr ""
  45532. #. type: item
  45533. #: guix-git/doc/guix.texi:30304
  45534. #, fuzzy, no-wrap
  45535. msgid "@code{type} (default: @code{\"pulse\"})"
  45536. msgstr "@code{mate}(默认值:@code{mate})"
  45537. #. type: table
  45538. #: guix-git/doc/guix.texi:30306
  45539. msgid "The type of audio output."
  45540. msgstr ""
  45541. #. type: item
  45542. #: guix-git/doc/guix.texi:30307
  45543. #, fuzzy, no-wrap
  45544. msgid "@code{enabled?} (default: @code{#t})"
  45545. msgstr "@code{speed}(默认值:@code{1.0})"
  45546. #. type: table
  45547. #: guix-git/doc/guix.texi:30312
  45548. 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."
  45549. msgstr ""
  45550. #. type: item
  45551. #: guix-git/doc/guix.texi:30313
  45552. #, fuzzy, no-wrap
  45553. msgid "@code{tags?} (default: @code{#t})"
  45554. msgstr "@code{mate}(默认值:@code{mate})"
  45555. #. type: table
  45556. #: guix-git/doc/guix.texi:30317
  45557. 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."
  45558. msgstr ""
  45559. #. type: item
  45560. #: guix-git/doc/guix.texi:30318
  45561. #, fuzzy, no-wrap
  45562. msgid "@code{always-on?} (default: @code{#f})"
  45563. msgstr "@code{challenge}(默认值:@code{#f})"
  45564. #. type: table
  45565. #: guix-git/doc/guix.texi:30322
  45566. 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."
  45567. msgstr ""
  45568. #. type: code{#1}
  45569. #: guix-git/doc/guix.texi:30323
  45570. #, no-wrap
  45571. msgid "mixer-type"
  45572. msgstr ""
  45573. #. type: table
  45574. #: guix-git/doc/guix.texi:30329
  45575. 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})."
  45576. msgstr ""
  45577. #. type: table
  45578. #: guix-git/doc/guix.texi:30333
  45579. msgid "An association list of option symbols to string values to be appended to the audio output configuration."
  45580. msgstr ""
  45581. #. type: Plain text
  45582. #: guix-git/doc/guix.texi:30339
  45583. msgid "The following example shows a configuration of @code{mpd} that provides an HTTP audio streaming output."
  45584. msgstr ""
  45585. #. type: lisp
  45586. #: guix-git/doc/guix.texi:30351
  45587. #, no-wrap
  45588. msgid ""
  45589. "(service mpd-service-type\n"
  45590. " (mpd-configuration\n"
  45591. " (outputs\n"
  45592. " (list (mpd-output\n"
  45593. " (name \"streaming\")\n"
  45594. " (type \"httpd\")\n"
  45595. " (mixer-type 'null)\n"
  45596. " (extra-options\n"
  45597. " `((encoder . \"vorbis\")\n"
  45598. " (port . \"8080\"))))))))\n"
  45599. msgstr ""
  45600. #. type: Plain text
  45601. #: guix-git/doc/guix.texi:30360
  45602. msgid "The @code{(gnu services virtualization)} module provides services for the libvirt and virtlog daemons, as well as other virtualization-related services."
  45603. msgstr ""
  45604. #. type: subsubheading
  45605. #: guix-git/doc/guix.texi:30361
  45606. #, no-wrap
  45607. msgid "Libvirt daemon"
  45608. msgstr ""
  45609. #. type: Plain text
  45610. #: guix-git/doc/guix.texi:30366
  45611. 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."
  45612. msgstr ""
  45613. #. type: deffn
  45614. #: guix-git/doc/guix.texi:30367
  45615. #, no-wrap
  45616. msgid "{Scheme Variable} libvirt-service-type"
  45617. msgstr ""
  45618. #. type: deffn
  45619. #: guix-git/doc/guix.texi:30370
  45620. msgid "This is the type of the @uref{https://libvirt.org, libvirt daemon}. Its value must be a @code{libvirt-configuration}."
  45621. msgstr ""
  45622. #. type: lisp
  45623. #: guix-git/doc/guix.texi:30376
  45624. #, no-wrap
  45625. msgid ""
  45626. "(service libvirt-service-type\n"
  45627. " (libvirt-configuration\n"
  45628. " (unix-sock-group \"libvirt\")\n"
  45629. " (tls-port \"16555\")))\n"
  45630. msgstr ""
  45631. #. type: Plain text
  45632. #: guix-git/doc/guix.texi:30381
  45633. msgid "Available @code{libvirt-configuration} fields are:"
  45634. msgstr ""
  45635. #. type: deftypevr
  45636. #: guix-git/doc/guix.texi:30382
  45637. #, no-wrap
  45638. msgid "{@code{libvirt-configuration} parameter} package libvirt"
  45639. msgstr ""
  45640. #. type: deftypevar
  45641. #: guix-git/doc/guix.texi:30384 guix-git/doc/guix.texi:30947
  45642. msgid "Libvirt package."
  45643. msgstr ""
  45644. #. type: deftypevr
  45645. #: guix-git/doc/guix.texi:30387
  45646. #, no-wrap
  45647. msgid "{@code{libvirt-configuration} parameter} boolean listen-tls?"
  45648. msgstr ""
  45649. #. type: deftypevr
  45650. #: guix-git/doc/guix.texi:30390
  45651. msgid "Flag listening for secure TLS connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  45652. msgstr ""
  45653. #. type: deftypevr
  45654. #: guix-git/doc/guix.texi:30393
  45655. msgid "It is necessary to setup a CA and issue server certificates before using this capability."
  45656. msgstr ""
  45657. #. type: deftypevr
  45658. #: guix-git/doc/guix.texi:30398
  45659. #, no-wrap
  45660. msgid "{@code{libvirt-configuration} parameter} boolean listen-tcp?"
  45661. msgstr ""
  45662. #. type: deftypevr
  45663. #: guix-git/doc/guix.texi:30401
  45664. msgid "Listen for unencrypted TCP connections on the public TCP/IP port. You must set @code{listen} for this to have any effect."
  45665. msgstr ""
  45666. #. type: deftypevr
  45667. #: guix-git/doc/guix.texi:30405
  45668. 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)."
  45669. msgstr ""
  45670. #. type: deftypevr
  45671. #: guix-git/doc/guix.texi:30410
  45672. #, no-wrap
  45673. msgid "{@code{libvirt-configuration} parameter} string tls-port"
  45674. msgstr ""
  45675. #. type: deftypevr
  45676. #: guix-git/doc/guix.texi:30413
  45677. msgid "Port for accepting secure TLS connections. This can be a port number, or service name."
  45678. msgstr ""
  45679. #. type: deftypevr
  45680. #: guix-git/doc/guix.texi:30415
  45681. msgid "Defaults to @samp{\"16514\"}."
  45682. msgstr ""
  45683. #. type: deftypevr
  45684. #: guix-git/doc/guix.texi:30418
  45685. #, no-wrap
  45686. msgid "{@code{libvirt-configuration} parameter} string tcp-port"
  45687. msgstr ""
  45688. #. type: deftypevr
  45689. #: guix-git/doc/guix.texi:30421
  45690. msgid "Port for accepting insecure TCP connections. This can be a port number, or service name."
  45691. msgstr ""
  45692. #. type: deftypevr
  45693. #: guix-git/doc/guix.texi:30423
  45694. msgid "Defaults to @samp{\"16509\"}."
  45695. msgstr ""
  45696. #. type: deftypevr
  45697. #: guix-git/doc/guix.texi:30426
  45698. #, no-wrap
  45699. msgid "{@code{libvirt-configuration} parameter} string listen-addr"
  45700. msgstr ""
  45701. #. type: deftypevr
  45702. #: guix-git/doc/guix.texi:30428
  45703. msgid "IP address or hostname used for client connections."
  45704. msgstr ""
  45705. #. type: deftypevr
  45706. #: guix-git/doc/guix.texi:30433
  45707. #, no-wrap
  45708. msgid "{@code{libvirt-configuration} parameter} boolean mdns-adv?"
  45709. msgstr ""
  45710. #. type: deftypevr
  45711. #: guix-git/doc/guix.texi:30435
  45712. msgid "Flag toggling mDNS advertisement of the libvirt service."
  45713. msgstr ""
  45714. #. type: deftypevr
  45715. #: guix-git/doc/guix.texi:30438
  45716. msgid "Alternatively can disable for all services on a host by stopping the Avahi daemon."
  45717. msgstr ""
  45718. #. type: deftypevr
  45719. #: guix-git/doc/guix.texi:30443
  45720. #, no-wrap
  45721. msgid "{@code{libvirt-configuration} parameter} string mdns-name"
  45722. msgstr ""
  45723. #. type: deftypevr
  45724. #: guix-git/doc/guix.texi:30446
  45725. msgid "Default mDNS advertisement name. This must be unique on the immediate broadcast network."
  45726. msgstr ""
  45727. #. type: deftypevr
  45728. #: guix-git/doc/guix.texi:30448
  45729. msgid "Defaults to @samp{\"Virtualization Host <hostname>\"}."
  45730. msgstr ""
  45731. #. type: deftypevr
  45732. #: guix-git/doc/guix.texi:30451
  45733. #, no-wrap
  45734. msgid "{@code{libvirt-configuration} parameter} string unix-sock-group"
  45735. msgstr ""
  45736. #. type: deftypevr
  45737. #: guix-git/doc/guix.texi:30455
  45738. msgid "UNIX domain socket group ownership. This can be used to allow a 'trusted' set of users access to management capabilities without becoming root."
  45739. msgstr ""
  45740. #. type: deftypevr
  45741. #: guix-git/doc/guix.texi:30460
  45742. #, no-wrap
  45743. msgid "{@code{libvirt-configuration} parameter} string unix-sock-ro-perms"
  45744. msgstr ""
  45745. #. type: deftypevr
  45746. #: guix-git/doc/guix.texi:30463
  45747. msgid "UNIX socket permissions for the R/O socket. This is used for monitoring VM status only."
  45748. msgstr ""
  45749. #. type: deftypevr
  45750. #: guix-git/doc/guix.texi:30465 guix-git/doc/guix.texi:30483
  45751. msgid "Defaults to @samp{\"0777\"}."
  45752. msgstr ""
  45753. #. type: deftypevr
  45754. #: guix-git/doc/guix.texi:30468
  45755. #, no-wrap
  45756. msgid "{@code{libvirt-configuration} parameter} string unix-sock-rw-perms"
  45757. msgstr ""
  45758. #. type: deftypevr
  45759. #: guix-git/doc/guix.texi:30472
  45760. 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)"
  45761. msgstr ""
  45762. #. type: deftypevr
  45763. #: guix-git/doc/guix.texi:30474
  45764. msgid "Defaults to @samp{\"0770\"}."
  45765. msgstr ""
  45766. #. type: deftypevr
  45767. #: guix-git/doc/guix.texi:30477
  45768. #, no-wrap
  45769. msgid "{@code{libvirt-configuration} parameter} string unix-sock-admin-perms"
  45770. msgstr ""
  45771. #. type: deftypevr
  45772. #: guix-git/doc/guix.texi:30481
  45773. 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."
  45774. msgstr ""
  45775. #. type: deftypevr
  45776. #: guix-git/doc/guix.texi:30486
  45777. #, no-wrap
  45778. msgid "{@code{libvirt-configuration} parameter} string unix-sock-dir"
  45779. msgstr ""
  45780. #. type: deftypevr
  45781. #: guix-git/doc/guix.texi:30488
  45782. msgid "The directory in which sockets will be found/created."
  45783. msgstr ""
  45784. #. type: deftypevr
  45785. #: guix-git/doc/guix.texi:30490
  45786. msgid "Defaults to @samp{\"/var/run/libvirt\"}."
  45787. msgstr ""
  45788. #. type: deftypevr
  45789. #: guix-git/doc/guix.texi:30493
  45790. #, no-wrap
  45791. msgid "{@code{libvirt-configuration} parameter} string auth-unix-ro"
  45792. msgstr ""
  45793. #. type: deftypevr
  45794. #: guix-git/doc/guix.texi:30496
  45795. msgid "Authentication scheme for UNIX read-only sockets. By default socket permissions allow anyone to connect"
  45796. msgstr ""
  45797. #. type: deftypevr
  45798. #: guix-git/doc/guix.texi:30498 guix-git/doc/guix.texi:30507
  45799. msgid "Defaults to @samp{\"polkit\"}."
  45800. msgstr ""
  45801. #. type: deftypevr
  45802. #: guix-git/doc/guix.texi:30501
  45803. #, no-wrap
  45804. msgid "{@code{libvirt-configuration} parameter} string auth-unix-rw"
  45805. msgstr ""
  45806. #. type: deftypevr
  45807. #: guix-git/doc/guix.texi:30505
  45808. 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."
  45809. msgstr ""
  45810. #. type: deftypevr
  45811. #: guix-git/doc/guix.texi:30510
  45812. #, no-wrap
  45813. msgid "{@code{libvirt-configuration} parameter} string auth-tcp"
  45814. msgstr ""
  45815. #. type: deftypevr
  45816. #: guix-git/doc/guix.texi:30514
  45817. 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."
  45818. msgstr ""
  45819. #. type: deftypevr
  45820. #: guix-git/doc/guix.texi:30516
  45821. msgid "Defaults to @samp{\"sasl\"}."
  45822. msgstr ""
  45823. #. type: deftypevr
  45824. #: guix-git/doc/guix.texi:30519
  45825. #, no-wrap
  45826. msgid "{@code{libvirt-configuration} parameter} string auth-tls"
  45827. msgstr ""
  45828. #. type: deftypevr
  45829. #: guix-git/doc/guix.texi:30523
  45830. msgid "Authentication scheme for TLS sockets. TLS sockets already have encryption provided by the TLS layer, and limited authentication is done by certificates."
  45831. msgstr ""
  45832. #. type: deftypevr
  45833. #: guix-git/doc/guix.texi:30526
  45834. msgid "It is possible to make use of any SASL authentication mechanism as well, by using 'sasl' for this option"
  45835. msgstr ""
  45836. #. type: deftypevr
  45837. #: guix-git/doc/guix.texi:30528
  45838. msgid "Defaults to @samp{\"none\"}."
  45839. msgstr ""
  45840. #. type: deftypevr
  45841. #: guix-git/doc/guix.texi:30531
  45842. #, no-wrap
  45843. msgid "{@code{libvirt-configuration} parameter} optional-list access-drivers"
  45844. msgstr ""
  45845. #. type: deftypevr
  45846. #: guix-git/doc/guix.texi:30533
  45847. msgid "API access control scheme."
  45848. msgstr ""
  45849. #. type: deftypevr
  45850. #: guix-git/doc/guix.texi:30536
  45851. msgid "By default an authenticated user is allowed access to all APIs. Access drivers can place restrictions on this."
  45852. msgstr ""
  45853. #. type: deftypevr
  45854. #: guix-git/doc/guix.texi:30541
  45855. #, no-wrap
  45856. msgid "{@code{libvirt-configuration} parameter} string key-file"
  45857. msgstr ""
  45858. #. type: deftypevr
  45859. #: guix-git/doc/guix.texi:30544
  45860. msgid "Server key file path. If set to an empty string, then no private key is loaded."
  45861. msgstr ""
  45862. #. type: deftypevr
  45863. #: guix-git/doc/guix.texi:30549
  45864. #, no-wrap
  45865. msgid "{@code{libvirt-configuration} parameter} string cert-file"
  45866. msgstr ""
  45867. #. type: deftypevr
  45868. #: guix-git/doc/guix.texi:30552
  45869. msgid "Server key file path. If set to an empty string, then no certificate is loaded."
  45870. msgstr ""
  45871. #. type: deftypevr
  45872. #: guix-git/doc/guix.texi:30557
  45873. #, no-wrap
  45874. msgid "{@code{libvirt-configuration} parameter} string ca-file"
  45875. msgstr ""
  45876. #. type: deftypevr
  45877. #: guix-git/doc/guix.texi:30560
  45878. msgid "Server key file path. If set to an empty string, then no CA certificate is loaded."
  45879. msgstr ""
  45880. #. type: deftypevr
  45881. #: guix-git/doc/guix.texi:30565
  45882. #, no-wrap
  45883. msgid "{@code{libvirt-configuration} parameter} string crl-file"
  45884. msgstr ""
  45885. #. type: deftypevr
  45886. #: guix-git/doc/guix.texi:30568
  45887. msgid "Certificate revocation list path. If set to an empty string, then no CRL is loaded."
  45888. msgstr ""
  45889. #. type: deftypevr
  45890. #: guix-git/doc/guix.texi:30573
  45891. #, no-wrap
  45892. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-sanity-cert"
  45893. msgstr ""
  45894. #. type: deftypevr
  45895. #: guix-git/doc/guix.texi:30575
  45896. msgid "Disable verification of our own server certificates."
  45897. msgstr ""
  45898. #. type: deftypevr
  45899. #: guix-git/doc/guix.texi:30578
  45900. msgid "When libvirtd starts it performs some sanity checks against its own certificates."
  45901. msgstr ""
  45902. #. type: deftypevr
  45903. #: guix-git/doc/guix.texi:30583
  45904. #, no-wrap
  45905. msgid "{@code{libvirt-configuration} parameter} boolean tls-no-verify-cert"
  45906. msgstr ""
  45907. #. type: deftypevr
  45908. #: guix-git/doc/guix.texi:30585
  45909. msgid "Disable verification of client certificates."
  45910. msgstr ""
  45911. #. type: deftypevr
  45912. #: guix-git/doc/guix.texi:30589
  45913. msgid "Client certificate verification is the primary authentication mechanism. Any client which does not present a certificate signed by the CA will be rejected."
  45914. msgstr ""
  45915. #. type: deftypevr
  45916. #: guix-git/doc/guix.texi:30594
  45917. #, no-wrap
  45918. msgid "{@code{libvirt-configuration} parameter} optional-list tls-allowed-dn-list"
  45919. msgstr ""
  45920. #. type: deftypevr
  45921. #: guix-git/doc/guix.texi:30596
  45922. msgid "Whitelist of allowed x509 Distinguished Name."
  45923. msgstr ""
  45924. #. type: deftypevr
  45925. #: guix-git/doc/guix.texi:30601
  45926. #, no-wrap
  45927. msgid "{@code{libvirt-configuration} parameter} optional-list sasl-allowed-usernames"
  45928. msgstr ""
  45929. #. type: deftypevr
  45930. #: guix-git/doc/guix.texi:30604
  45931. msgid "Whitelist of allowed SASL usernames. The format for username depends on the SASL authentication mechanism."
  45932. msgstr ""
  45933. #. type: deftypevr
  45934. #: guix-git/doc/guix.texi:30609
  45935. #, no-wrap
  45936. msgid "{@code{libvirt-configuration} parameter} string tls-priority"
  45937. msgstr ""
  45938. #. type: deftypevr
  45939. #: guix-git/doc/guix.texi:30613
  45940. 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."
  45941. msgstr ""
  45942. #. type: deftypevr
  45943. #: guix-git/doc/guix.texi:30615
  45944. msgid "Defaults to @samp{\"NORMAL\"}."
  45945. msgstr ""
  45946. #. type: deftypevr
  45947. #: guix-git/doc/guix.texi:30618
  45948. #, no-wrap
  45949. msgid "{@code{libvirt-configuration} parameter} integer max-clients"
  45950. msgstr ""
  45951. #. type: deftypevr
  45952. #: guix-git/doc/guix.texi:30621 guix-git/doc/guix.texi:31049
  45953. msgid "Maximum number of concurrent client connections to allow over all sockets combined."
  45954. msgstr ""
  45955. #. type: deftypevr
  45956. #: guix-git/doc/guix.texi:30623
  45957. msgid "Defaults to @samp{5000}."
  45958. msgstr ""
  45959. #. type: deftypevr
  45960. #: guix-git/doc/guix.texi:30626
  45961. #, no-wrap
  45962. msgid "{@code{libvirt-configuration} parameter} integer max-queued-clients"
  45963. msgstr ""
  45964. #. type: deftypevr
  45965. #: guix-git/doc/guix.texi:30630
  45966. 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."
  45967. msgstr ""
  45968. #. type: deftypevr
  45969. #: guix-git/doc/guix.texi:30635
  45970. #, no-wrap
  45971. msgid "{@code{libvirt-configuration} parameter} integer max-anonymous-clients"
  45972. msgstr ""
  45973. #. type: deftypevr
  45974. #: guix-git/doc/guix.texi:30638
  45975. msgid "Maximum length of queue of accepted but not yet authenticated clients. Set this to zero to turn this feature off"
  45976. msgstr ""
  45977. #. type: deftypevr
  45978. #: guix-git/doc/guix.texi:30640 guix-git/doc/guix.texi:30658
  45979. #: guix-git/doc/guix.texi:30674
  45980. msgid "Defaults to @samp{20}."
  45981. msgstr ""
  45982. #. type: deftypevr
  45983. #: guix-git/doc/guix.texi:30643
  45984. #, no-wrap
  45985. msgid "{@code{libvirt-configuration} parameter} integer min-workers"
  45986. msgstr ""
  45987. #. type: deftypevr
  45988. #: guix-git/doc/guix.texi:30645
  45989. msgid "Number of workers to start up initially."
  45990. msgstr ""
  45991. #. type: deftypevr
  45992. #: guix-git/doc/guix.texi:30650
  45993. #, no-wrap
  45994. msgid "{@code{libvirt-configuration} parameter} integer max-workers"
  45995. msgstr ""
  45996. #. type: deftypevr
  45997. #: guix-git/doc/guix.texi:30652
  45998. msgid "Maximum number of worker threads."
  45999. msgstr ""
  46000. #. type: deftypevr
  46001. #: guix-git/doc/guix.texi:30656
  46002. 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."
  46003. msgstr ""
  46004. #. type: deftypevr
  46005. #: guix-git/doc/guix.texi:30661
  46006. #, no-wrap
  46007. msgid "{@code{libvirt-configuration} parameter} integer prio-workers"
  46008. msgstr ""
  46009. #. type: deftypevr
  46010. #: guix-git/doc/guix.texi:30665
  46011. 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."
  46012. msgstr ""
  46013. #. type: deftypevr
  46014. #: guix-git/doc/guix.texi:30670
  46015. #, no-wrap
  46016. msgid "{@code{libvirt-configuration} parameter} integer max-requests"
  46017. msgstr ""
  46018. #. type: deftypevr
  46019. #: guix-git/doc/guix.texi:30672
  46020. msgid "Total global limit on concurrent RPC calls."
  46021. msgstr ""
  46022. #. type: deftypevr
  46023. #: guix-git/doc/guix.texi:30677
  46024. #, no-wrap
  46025. msgid "{@code{libvirt-configuration} parameter} integer max-client-requests"
  46026. msgstr ""
  46027. #. type: deftypevr
  46028. #: guix-git/doc/guix.texi:30681
  46029. 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."
  46030. msgstr ""
  46031. #. type: deftypevr
  46032. #: guix-git/doc/guix.texi:30686
  46033. #, no-wrap
  46034. msgid "{@code{libvirt-configuration} parameter} integer admin-min-workers"
  46035. msgstr ""
  46036. #. type: deftypevr
  46037. #: guix-git/doc/guix.texi:30688
  46038. msgid "Same as @code{min-workers} but for the admin interface."
  46039. msgstr ""
  46040. #. type: deftypevr
  46041. #: guix-git/doc/guix.texi:30693
  46042. #, no-wrap
  46043. msgid "{@code{libvirt-configuration} parameter} integer admin-max-workers"
  46044. msgstr ""
  46045. #. type: deftypevr
  46046. #: guix-git/doc/guix.texi:30695
  46047. msgid "Same as @code{max-workers} but for the admin interface."
  46048. msgstr ""
  46049. #. type: deftypevr
  46050. #: guix-git/doc/guix.texi:30700
  46051. #, no-wrap
  46052. msgid "{@code{libvirt-configuration} parameter} integer admin-max-clients"
  46053. msgstr ""
  46054. #. type: deftypevr
  46055. #: guix-git/doc/guix.texi:30702
  46056. msgid "Same as @code{max-clients} but for the admin interface."
  46057. msgstr ""
  46058. #. type: deftypevr
  46059. #: guix-git/doc/guix.texi:30707
  46060. #, no-wrap
  46061. msgid "{@code{libvirt-configuration} parameter} integer admin-max-queued-clients"
  46062. msgstr ""
  46063. #. type: deftypevr
  46064. #: guix-git/doc/guix.texi:30709
  46065. msgid "Same as @code{max-queued-clients} but for the admin interface."
  46066. msgstr ""
  46067. #. type: deftypevr
  46068. #: guix-git/doc/guix.texi:30714
  46069. #, no-wrap
  46070. msgid "{@code{libvirt-configuration} parameter} integer admin-max-client-requests"
  46071. msgstr ""
  46072. #. type: deftypevr
  46073. #: guix-git/doc/guix.texi:30716
  46074. msgid "Same as @code{max-client-requests} but for the admin interface."
  46075. msgstr ""
  46076. #. type: deftypevr
  46077. #: guix-git/doc/guix.texi:30721
  46078. #, no-wrap
  46079. msgid "{@code{libvirt-configuration} parameter} integer log-level"
  46080. msgstr ""
  46081. #. type: deftypevr
  46082. #: guix-git/doc/guix.texi:30723 guix-git/doc/guix.texi:30951
  46083. msgid "Logging level. 4 errors, 3 warnings, 2 information, 1 debug."
  46084. msgstr ""
  46085. #. type: deftypevr
  46086. #: guix-git/doc/guix.texi:30728
  46087. #, no-wrap
  46088. msgid "{@code{libvirt-configuration} parameter} string log-filters"
  46089. msgstr ""
  46090. #. type: deftypevr
  46091. #: guix-git/doc/guix.texi:30730 guix-git/doc/guix.texi:30958
  46092. msgid "Logging filters."
  46093. msgstr ""
  46094. #. type: deftypevr
  46095. #: guix-git/doc/guix.texi:30733
  46096. msgid "A filter allows to select a different logging level for a given category of logs. The format for a filter is one of:"
  46097. msgstr ""
  46098. #. type: itemize
  46099. #: guix-git/doc/guix.texi:30737 guix-git/doc/guix.texi:30965
  46100. msgid "x:name"
  46101. msgstr ""
  46102. #. type: itemize
  46103. #: guix-git/doc/guix.texi:30740 guix-git/doc/guix.texi:30968
  46104. msgid "x:+name"
  46105. msgstr ""
  46106. #. type: deftypevr
  46107. #: guix-git/doc/guix.texi:30751
  46108. 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:"
  46109. msgstr ""
  46110. #. type: itemize
  46111. #: guix-git/doc/guix.texi:30755 guix-git/doc/guix.texi:30800
  46112. #: guix-git/doc/guix.texi:30982 guix-git/doc/guix.texi:31027
  46113. msgid "1: DEBUG"
  46114. msgstr ""
  46115. #. type: itemize
  46116. #: guix-git/doc/guix.texi:30758 guix-git/doc/guix.texi:30803
  46117. #: guix-git/doc/guix.texi:30985 guix-git/doc/guix.texi:31030
  46118. msgid "2: INFO"
  46119. msgstr ""
  46120. #. type: itemize
  46121. #: guix-git/doc/guix.texi:30761 guix-git/doc/guix.texi:30806
  46122. #: guix-git/doc/guix.texi:30988 guix-git/doc/guix.texi:31033
  46123. msgid "3: WARNING"
  46124. msgstr ""
  46125. #. type: itemize
  46126. #: guix-git/doc/guix.texi:30764 guix-git/doc/guix.texi:30809
  46127. #: guix-git/doc/guix.texi:30991 guix-git/doc/guix.texi:31036
  46128. msgid "4: ERROR"
  46129. msgstr ""
  46130. #. type: deftypevr
  46131. #: guix-git/doc/guix.texi:30769 guix-git/doc/guix.texi:30996
  46132. msgid "Multiple filters can be defined in a single filters statement, they just need to be separated by spaces."
  46133. msgstr ""
  46134. #. type: deftypevr
  46135. #: guix-git/doc/guix.texi:30771 guix-git/doc/guix.texi:30998
  46136. msgid "Defaults to @samp{\"3:remote 4:event\"}."
  46137. msgstr ""
  46138. #. type: deftypevr
  46139. #: guix-git/doc/guix.texi:30774
  46140. #, no-wrap
  46141. msgid "{@code{libvirt-configuration} parameter} string log-outputs"
  46142. msgstr ""
  46143. #. type: deftypevr
  46144. #: guix-git/doc/guix.texi:30776 guix-git/doc/guix.texi:31003
  46145. msgid "Logging outputs."
  46146. msgstr ""
  46147. #. type: deftypevr
  46148. #: guix-git/doc/guix.texi:30779
  46149. msgid "An output is one of the places to save logging information. The format for an output can be:"
  46150. msgstr ""
  46151. #. type: item
  46152. #: guix-git/doc/guix.texi:30781 guix-git/doc/guix.texi:31008
  46153. #, no-wrap
  46154. msgid "x:stderr"
  46155. msgstr ""
  46156. #. type: table
  46157. #: guix-git/doc/guix.texi:30783 guix-git/doc/guix.texi:31010
  46158. msgid "output goes to stderr"
  46159. msgstr ""
  46160. #. type: item
  46161. #: guix-git/doc/guix.texi:30784 guix-git/doc/guix.texi:31011
  46162. #, no-wrap
  46163. msgid "x:syslog:name"
  46164. msgstr ""
  46165. #. type: table
  46166. #: guix-git/doc/guix.texi:30786 guix-git/doc/guix.texi:31013
  46167. msgid "use syslog for the output and use the given name as the ident"
  46168. msgstr ""
  46169. #. type: item
  46170. #: guix-git/doc/guix.texi:30787 guix-git/doc/guix.texi:31014
  46171. #, no-wrap
  46172. msgid "x:file:file_path"
  46173. msgstr ""
  46174. #. type: table
  46175. #: guix-git/doc/guix.texi:30789 guix-git/doc/guix.texi:31016
  46176. msgid "output to a file, with the given filepath"
  46177. msgstr ""
  46178. #. type: item
  46179. #: guix-git/doc/guix.texi:30790 guix-git/doc/guix.texi:31017
  46180. #, no-wrap
  46181. msgid "x:journald"
  46182. msgstr ""
  46183. #. type: table
  46184. #: guix-git/doc/guix.texi:30792 guix-git/doc/guix.texi:31019
  46185. msgid "output to journald logging system"
  46186. msgstr ""
  46187. #. type: deftypevr
  46188. #: guix-git/doc/guix.texi:30796 guix-git/doc/guix.texi:31023
  46189. msgid "In all case the x prefix is the minimal level, acting as a filter"
  46190. msgstr ""
  46191. #. type: deftypevr
  46192. #: guix-git/doc/guix.texi:30814 guix-git/doc/guix.texi:31041
  46193. msgid "Multiple outputs can be defined, they just need to be separated by spaces."
  46194. msgstr ""
  46195. #. type: deftypevr
  46196. #: guix-git/doc/guix.texi:30816 guix-git/doc/guix.texi:31043
  46197. msgid "Defaults to @samp{\"3:stderr\"}."
  46198. msgstr ""
  46199. #. type: deftypevr
  46200. #: guix-git/doc/guix.texi:30819
  46201. #, no-wrap
  46202. msgid "{@code{libvirt-configuration} parameter} integer audit-level"
  46203. msgstr ""
  46204. #. type: deftypevr
  46205. #: guix-git/doc/guix.texi:30821
  46206. msgid "Allows usage of the auditing subsystem to be altered"
  46207. msgstr ""
  46208. #. type: itemize
  46209. #: guix-git/doc/guix.texi:30825
  46210. msgid "0: disable all auditing"
  46211. msgstr ""
  46212. #. type: itemize
  46213. #: guix-git/doc/guix.texi:30828
  46214. msgid "1: enable auditing, only if enabled on host"
  46215. msgstr ""
  46216. #. type: itemize
  46217. #: guix-git/doc/guix.texi:30831
  46218. msgid "2: enable auditing, and exit if disabled on host."
  46219. msgstr ""
  46220. #. type: deftypevr
  46221. #: guix-git/doc/guix.texi:30838
  46222. #, no-wrap
  46223. msgid "{@code{libvirt-configuration} parameter} boolean audit-logging"
  46224. msgstr ""
  46225. #. type: deftypevr
  46226. #: guix-git/doc/guix.texi:30840
  46227. msgid "Send audit messages via libvirt logging infrastructure."
  46228. msgstr ""
  46229. #. type: deftypevr
  46230. #: guix-git/doc/guix.texi:30845
  46231. #, no-wrap
  46232. msgid "{@code{libvirt-configuration} parameter} optional-string host-uuid"
  46233. msgstr ""
  46234. #. type: deftypevr
  46235. #: guix-git/doc/guix.texi:30847
  46236. msgid "Host UUID@. UUID must not have all digits be the same."
  46237. msgstr ""
  46238. #. type: deftypevr
  46239. #: guix-git/doc/guix.texi:30852
  46240. #, no-wrap
  46241. msgid "{@code{libvirt-configuration} parameter} string host-uuid-source"
  46242. msgstr ""
  46243. #. type: deftypevr
  46244. #: guix-git/doc/guix.texi:30854
  46245. msgid "Source to read host UUID."
  46246. msgstr ""
  46247. #. type: itemize
  46248. #: guix-git/doc/guix.texi:30858
  46249. msgid "@code{smbios}: fetch the UUID from @code{dmidecode -s system-uuid}"
  46250. msgstr ""
  46251. #. type: itemize
  46252. #: guix-git/doc/guix.texi:30861
  46253. msgid "@code{machine-id}: fetch the UUID from @code{/etc/machine-id}"
  46254. msgstr ""
  46255. #. type: deftypevr
  46256. #: guix-git/doc/guix.texi:30866
  46257. msgid "If @code{dmidecode} does not provide a valid UUID a temporary UUID will be generated."
  46258. msgstr ""
  46259. #. type: deftypevr
  46260. #: guix-git/doc/guix.texi:30868
  46261. msgid "Defaults to @samp{\"smbios\"}."
  46262. msgstr ""
  46263. #. type: deftypevr
  46264. #: guix-git/doc/guix.texi:30871
  46265. #, no-wrap
  46266. msgid "{@code{libvirt-configuration} parameter} integer keepalive-interval"
  46267. msgstr ""
  46268. #. type: deftypevr
  46269. #: guix-git/doc/guix.texi:30876
  46270. 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."
  46271. msgstr ""
  46272. #. type: deftypevr
  46273. #: guix-git/doc/guix.texi:30881
  46274. #, no-wrap
  46275. msgid "{@code{libvirt-configuration} parameter} integer keepalive-count"
  46276. msgstr ""
  46277. #. type: deftypevr
  46278. #: guix-git/doc/guix.texi:30885
  46279. 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."
  46280. msgstr ""
  46281. #. type: deftypevr
  46282. #: guix-git/doc/guix.texi:30892
  46283. 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."
  46284. msgstr ""
  46285. #. type: deftypevr
  46286. #: guix-git/doc/guix.texi:30897
  46287. #, no-wrap
  46288. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-interval"
  46289. msgstr ""
  46290. #. type: deftypevr
  46291. #: guix-git/doc/guix.texi:30899 guix-git/doc/guix.texi:30906
  46292. msgid "Same as above but for admin interface."
  46293. msgstr ""
  46294. #. type: deftypevr
  46295. #: guix-git/doc/guix.texi:30904
  46296. #, no-wrap
  46297. msgid "{@code{libvirt-configuration} parameter} integer admin-keepalive-count"
  46298. msgstr ""
  46299. #. type: deftypevr
  46300. #: guix-git/doc/guix.texi:30911
  46301. #, no-wrap
  46302. msgid "{@code{libvirt-configuration} parameter} integer ovs-timeout"
  46303. msgstr ""
  46304. #. type: deftypevr
  46305. #: guix-git/doc/guix.texi:30913
  46306. msgid "Timeout for Open vSwitch calls."
  46307. msgstr ""
  46308. #. type: deftypevr
  46309. #: guix-git/doc/guix.texi:30917
  46310. 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."
  46311. msgstr ""
  46312. #. type: subsubheading
  46313. #: guix-git/doc/guix.texi:30924
  46314. #, no-wrap
  46315. msgid "Virtlog daemon"
  46316. msgstr ""
  46317. #. type: Plain text
  46318. #: guix-git/doc/guix.texi:30927
  46319. msgid "The virtlogd service is a server side daemon component of libvirt that is used to manage logs from virtual machine consoles."
  46320. msgstr ""
  46321. #. type: Plain text
  46322. #: guix-git/doc/guix.texi:30933
  46323. 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."
  46324. msgstr ""
  46325. #. type: deffn
  46326. #: guix-git/doc/guix.texi:30934
  46327. #, no-wrap
  46328. msgid "{Scheme Variable} virtlog-service-type"
  46329. msgstr ""
  46330. #. type: deffn
  46331. #: guix-git/doc/guix.texi:30937
  46332. msgid "This is the type of the virtlog daemon. Its value must be a @code{virtlog-configuration}."
  46333. msgstr ""
  46334. #. type: lisp
  46335. #: guix-git/doc/guix.texi:30942
  46336. #, no-wrap
  46337. msgid ""
  46338. "(service virtlog-service-type\n"
  46339. " (virtlog-configuration\n"
  46340. " (max-clients 1000)))\n"
  46341. msgstr ""
  46342. #. type: deftypevar
  46343. #: guix-git/doc/guix.texi:30945
  46344. #, no-wrap
  46345. msgid "{@code{libvirt} parameter} package libvirt"
  46346. msgstr ""
  46347. #. type: deftypevr
  46348. #: guix-git/doc/guix.texi:30949
  46349. #, no-wrap
  46350. msgid "{@code{virtlog-configuration} parameter} integer log-level"
  46351. msgstr ""
  46352. #. type: deftypevr
  46353. #: guix-git/doc/guix.texi:30956
  46354. #, no-wrap
  46355. msgid "{@code{virtlog-configuration} parameter} string log-filters"
  46356. msgstr ""
  46357. #. type: deftypevr
  46358. #: guix-git/doc/guix.texi:30961
  46359. msgid "A filter allows to select a different logging level for a given category of logs The format for a filter is one of:"
  46360. msgstr ""
  46361. #. type: deftypevr
  46362. #: guix-git/doc/guix.texi:30978
  46363. 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:"
  46364. msgstr ""
  46365. #. type: deftypevr
  46366. #: guix-git/doc/guix.texi:31001
  46367. #, no-wrap
  46368. msgid "{@code{virtlog-configuration} parameter} string log-outputs"
  46369. msgstr ""
  46370. #. type: deftypevr
  46371. #: guix-git/doc/guix.texi:31006
  46372. msgid "An output is one of the places to save logging information The format for an output can be:"
  46373. msgstr ""
  46374. #. type: deftypevr
  46375. #: guix-git/doc/guix.texi:31046
  46376. #, no-wrap
  46377. msgid "{@code{virtlog-configuration} parameter} integer max-clients"
  46378. msgstr ""
  46379. #. type: deftypevr
  46380. #: guix-git/doc/guix.texi:31051
  46381. msgid "Defaults to @samp{1024}."
  46382. msgstr ""
  46383. #. type: deftypevr
  46384. #: guix-git/doc/guix.texi:31054
  46385. #, no-wrap
  46386. msgid "{@code{virtlog-configuration} parameter} integer max-size"
  46387. msgstr ""
  46388. #. type: deftypevr
  46389. #: guix-git/doc/guix.texi:31056
  46390. msgid "Maximum file size before rolling over."
  46391. msgstr ""
  46392. #. type: deftypevr
  46393. #: guix-git/doc/guix.texi:31058
  46394. msgid "Defaults to @samp{2MB}"
  46395. msgstr ""
  46396. #. type: deftypevr
  46397. #: guix-git/doc/guix.texi:31061
  46398. #, no-wrap
  46399. msgid "{@code{virtlog-configuration} parameter} integer max-backups"
  46400. msgstr ""
  46401. #. type: deftypevr
  46402. #: guix-git/doc/guix.texi:31063
  46403. msgid "Maximum number of backup files to keep."
  46404. msgstr ""
  46405. #. type: deftypevr
  46406. #: guix-git/doc/guix.texi:31065
  46407. msgid "Defaults to @samp{3}"
  46408. msgstr ""
  46409. #. type: anchor{#1}
  46410. #: guix-git/doc/guix.texi:31069
  46411. msgid "transparent-emulation-qemu"
  46412. msgstr ""
  46413. #. type: subsubheading
  46414. #: guix-git/doc/guix.texi:31069
  46415. #, no-wrap
  46416. msgid "Transparent Emulation with QEMU"
  46417. msgstr ""
  46418. #. type: cindex
  46419. #: guix-git/doc/guix.texi:31071 guix-git/doc/guix.texi:31151
  46420. #, no-wrap
  46421. msgid "emulation"
  46422. msgstr ""
  46423. #. type: code{#1}
  46424. #: guix-git/doc/guix.texi:31072
  46425. #, no-wrap
  46426. msgid "binfmt_misc"
  46427. msgstr ""
  46428. #. type: Plain text
  46429. #: guix-git/doc/guix.texi:31080
  46430. 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."
  46431. msgstr ""
  46432. #. type: defvr
  46433. #: guix-git/doc/guix.texi:31081
  46434. #, no-wrap
  46435. msgid "{Scheme Variable} qemu-binfmt-service-type"
  46436. msgstr ""
  46437. #. type: defvr
  46438. #: guix-git/doc/guix.texi:31086
  46439. 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:"
  46440. msgstr ""
  46441. #. type: lisp
  46442. #: guix-git/doc/guix.texi:31091
  46443. #, fuzzy, no-wrap
  46444. msgid ""
  46445. "(service qemu-binfmt-service-type\n"
  46446. " (qemu-binfmt-configuration\n"
  46447. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))))\n"
  46448. msgstr ""
  46449. "(service qemu-binfmt-service-type\n"
  46450. " (qemu-binfmt-configuration\n"
  46451. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  46452. " (guix-support? #t)))\n"
  46453. #. type: defvr
  46454. #: guix-git/doc/guix.texi:31097
  46455. 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})."
  46456. msgstr ""
  46457. #. type: deftp
  46458. #: guix-git/doc/guix.texi:31099
  46459. #, no-wrap
  46460. msgid "{Data Type} qemu-binfmt-configuration"
  46461. msgstr ""
  46462. #. type: deftp
  46463. #: guix-git/doc/guix.texi:31101
  46464. msgid "This is the configuration for the @code{qemu-binfmt} service."
  46465. msgstr ""
  46466. #. type: item
  46467. #: guix-git/doc/guix.texi:31103
  46468. #, no-wrap
  46469. msgid "@code{platforms} (default: @code{'()})"
  46470. msgstr ""
  46471. #. type: table
  46472. #: guix-git/doc/guix.texi:31106
  46473. msgid "The list of emulated QEMU platforms. Each item must be a @dfn{platform object} as returned by @code{lookup-qemu-platforms} (see below)."
  46474. msgstr ""
  46475. #. type: table
  46476. #: guix-git/doc/guix.texi:31109
  46477. msgid "For example, let's suppose you're on an x86_64 machine and you have this service:"
  46478. msgstr ""
  46479. #. type: lisp
  46480. #: guix-git/doc/guix.texi:31114
  46481. #, fuzzy, no-wrap
  46482. msgid ""
  46483. "(service qemu-binfmt-service-type\n"
  46484. " (qemu-binfmt-configuration\n"
  46485. " (platforms (lookup-qemu-platforms \"arm\"))))\n"
  46486. msgstr ""
  46487. "(service qemu-binfmt-service-type\n"
  46488. " (qemu-binfmt-configuration\n"
  46489. " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\" \"mips64el\"))\n"
  46490. " (guix-support? #t)))\n"
  46491. #. type: table
  46492. #: guix-git/doc/guix.texi:31117
  46493. msgid "You can run:"
  46494. msgstr ""
  46495. #. type: example
  46496. #: guix-git/doc/guix.texi:31120
  46497. #, no-wrap
  46498. msgid "guix build -s armhf-linux inkscape\n"
  46499. msgstr ""
  46500. #. type: table
  46501. #: guix-git/doc/guix.texi:31127
  46502. 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!"
  46503. msgstr ""
  46504. #. type: item
  46505. #: guix-git/doc/guix.texi:31128
  46506. #, no-wrap
  46507. msgid "@code{qemu} (default: @code{qemu})"
  46508. msgstr ""
  46509. #. type: table
  46510. #: guix-git/doc/guix.texi:31130 guix-git/doc/guix.texi:31188
  46511. #: guix-git/doc/guix.texi:31270
  46512. msgid "The QEMU package to use."
  46513. msgstr ""
  46514. #. type: deffn
  46515. #: guix-git/doc/guix.texi:31133
  46516. #, no-wrap
  46517. msgid "{Scheme Procedure} lookup-qemu-platforms @var{platforms}@dots{}"
  46518. msgstr ""
  46519. #. type: deffn
  46520. #: guix-git/doc/guix.texi:31138
  46521. 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."
  46522. msgstr ""
  46523. #. type: deffn
  46524. #: guix-git/doc/guix.texi:31140
  46525. #, no-wrap
  46526. msgid "{Scheme Procedure} qemu-platform? @var{obj}"
  46527. msgstr ""
  46528. #. type: deffn
  46529. #: guix-git/doc/guix.texi:31142
  46530. msgid "Return true if @var{obj} is a platform object."
  46531. msgstr ""
  46532. #. type: deffn
  46533. #: guix-git/doc/guix.texi:31144
  46534. #, no-wrap
  46535. msgid "{Scheme Procedure} qemu-platform-name @var{platform}"
  46536. msgstr ""
  46537. #. type: deffn
  46538. #: guix-git/doc/guix.texi:31146
  46539. msgid "Return the name of @var{platform}---a string such as @code{\"arm\"}."
  46540. msgstr ""
  46541. #. type: subsubheading
  46542. #: guix-git/doc/guix.texi:31149
  46543. #, no-wrap
  46544. msgid "QEMU Guest Agent"
  46545. msgstr ""
  46546. #. type: Plain text
  46547. #: guix-git/doc/guix.texi:31157
  46548. msgid "The QEMU guest agent provides control over the emulated system to the host. The @code{qemu-guest-agent} service runs the agent on Guix guests. To control the agent from the host, open a socket by invoking QEMU with the following arguments:"
  46549. msgstr ""
  46550. #. type: example
  46551. #: guix-git/doc/guix.texi:31164
  46552. #, no-wrap
  46553. msgid ""
  46554. "qemu-system-x86_64 \\\n"
  46555. "\t-chardev socket,path=/tmp/qga.sock,server=on,wait=off,id=qga0 \\\n"
  46556. "\t-device virtio-serial \\\n"
  46557. "\t-device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \\\n"
  46558. "\t...\n"
  46559. msgstr ""
  46560. #. type: Plain text
  46561. #: guix-git/doc/guix.texi:31168
  46562. msgid "This creates a socket at @file{/tmp/qga.sock} on the host. Once the guest agent is running, you can issue commands with @code{socat}:"
  46563. msgstr ""
  46564. #. type: example
  46565. #: guix-git/doc/guix.texi:31173
  46566. #, no-wrap
  46567. msgid ""
  46568. "$ guix shell socat -- socat unix-connect:/tmp/qga.sock stdio\n"
  46569. "@{\"execute\": \"guest-get-host-name\"@}\n"
  46570. "@{\"return\": @{\"host-name\": \"guix\"@}@}\n"
  46571. msgstr ""
  46572. #. type: Plain text
  46573. #: guix-git/doc/guix.texi:31177
  46574. msgid "See @url{https://wiki.qemu.org/Features/GuestAgent,QEMU guest agent documentation} for more options and commands."
  46575. msgstr ""
  46576. #. type: defvr
  46577. #: guix-git/doc/guix.texi:31178
  46578. #, no-wrap
  46579. msgid "{Scheme Variable} qemu-guest-agent-service-type"
  46580. msgstr ""
  46581. #. type: defvr
  46582. #: guix-git/doc/guix.texi:31180
  46583. #, fuzzy
  46584. #| msgid "Service Types and Services"
  46585. msgid "Service type for the QEMU guest agent service."
  46586. msgstr "服务类型和服务"
  46587. #. type: deftp
  46588. #: guix-git/doc/guix.texi:31182
  46589. #, fuzzy, no-wrap
  46590. msgid "{Data Type} qemu-guest-agent-configuration"
  46591. msgstr "{数据类型} build-machine"
  46592. #. type: deftp
  46593. #: guix-git/doc/guix.texi:31184
  46594. #, fuzzy
  46595. msgid "Configuration for the @code{qemu-guest-agent} service."
  46596. msgstr "管理操作系统配置。"
  46597. #. type: item
  46598. #: guix-git/doc/guix.texi:31186 guix-git/doc/guix.texi:31268
  46599. #, fuzzy, no-wrap
  46600. msgid "@code{qemu} (default: @code{qemu-minimal})"
  46601. msgstr "@code{mate}(默认值:@code{mate})"
  46602. #. type: item
  46603. #: guix-git/doc/guix.texi:31189
  46604. #, fuzzy, no-wrap
  46605. msgid "@code{device} (default: @code{\"\"})"
  46606. msgstr "@code{speed}(默认值:@code{1.0})"
  46607. #. type: table
  46608. #: guix-git/doc/guix.texi:31192
  46609. msgid "File name of the device or socket the agent uses to communicate with the host. If empty, QEMU uses a default file name."
  46610. msgstr ""
  46611. #. type: subsubheading
  46612. #: guix-git/doc/guix.texi:31196
  46613. #, no-wrap
  46614. msgid "The Hurd in a Virtual Machine"
  46615. msgstr ""
  46616. #. type: cindex
  46617. #: guix-git/doc/guix.texi:31199
  46618. #, no-wrap
  46619. msgid "the Hurd"
  46620. msgstr ""
  46621. #. type: cindex
  46622. #: guix-git/doc/guix.texi:31200
  46623. #, no-wrap
  46624. msgid "childhurd"
  46625. msgstr ""
  46626. #. type: Plain text
  46627. #: guix-git/doc/guix.texi:31208
  46628. 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:"
  46629. msgstr ""
  46630. #. type: example
  46631. #: guix-git/doc/guix.texi:31212
  46632. #, no-wrap
  46633. msgid ""
  46634. "herd start hurd-vm\n"
  46635. "herd stop childhurd\n"
  46636. msgstr ""
  46637. #. type: Plain text
  46638. #: guix-git/doc/guix.texi:31216
  46639. msgid "When the service is running, you can view its console by connecting to it with a VNC client, for example with:"
  46640. msgstr ""
  46641. #. type: example
  46642. #: guix-git/doc/guix.texi:31219
  46643. #, no-wrap
  46644. msgid "guix shell tigervnc-client -- vncviewer localhost:5900\n"
  46645. msgstr ""
  46646. #. type: Plain text
  46647. #: guix-git/doc/guix.texi:31225
  46648. 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:"
  46649. msgstr ""
  46650. #. type: example
  46651. #: guix-git/doc/guix.texi:31228
  46652. #, no-wrap
  46653. msgid "ssh root@@localhost -p 10022\n"
  46654. msgstr ""
  46655. #. type: Plain text
  46656. #: guix-git/doc/guix.texi:31237
  46657. 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."
  46658. msgstr ""
  46659. #. type: defvr
  46660. #: guix-git/doc/guix.texi:31238
  46661. #, no-wrap
  46662. msgid "{Scheme Variable} hurd-vm-service-type"
  46663. msgstr ""
  46664. #. type: defvr
  46665. #: guix-git/doc/guix.texi:31244
  46666. 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."
  46667. msgstr ""
  46668. #. type: defvr
  46669. #: guix-git/doc/guix.texi:31246
  46670. msgid "For example:"
  46671. msgstr ""
  46672. #. type: lisp
  46673. #: guix-git/doc/guix.texi:31252
  46674. #, no-wrap
  46675. msgid ""
  46676. "(service hurd-vm-service-type\n"
  46677. " (hurd-vm-configuration\n"
  46678. " (disk-size (* 5000 (expt 2 20))) ;5G\n"
  46679. " (memory-size 1024))) ;1024MiB\n"
  46680. msgstr ""
  46681. #. type: defvr
  46682. #: guix-git/doc/guix.texi:31256
  46683. msgid "would create a disk image big enough to build GNU@tie{}Hello, with some extra memory."
  46684. msgstr ""
  46685. #. type: deftp
  46686. #: guix-git/doc/guix.texi:31258
  46687. #, fuzzy, no-wrap
  46688. msgid "{Data Type} hurd-vm-configuration"
  46689. msgstr "{数据类型} build-machine"
  46690. #. type: deftp
  46691. #: guix-git/doc/guix.texi:31261
  46692. msgid "The data type representing the configuration for @code{hurd-vm-service-type}."
  46693. msgstr ""
  46694. #. type: item
  46695. #: guix-git/doc/guix.texi:31263
  46696. #, fuzzy, no-wrap
  46697. msgid "@code{os} (default: @var{%hurd-vm-operating-system})"
  46698. msgstr "@code{mate}(默认值:@code{mate})"
  46699. #. type: table
  46700. #: guix-git/doc/guix.texi:31267
  46701. 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}})."
  46702. msgstr ""
  46703. #. type: item
  46704. #: guix-git/doc/guix.texi:31271
  46705. #, fuzzy, no-wrap
  46706. msgid "@code{image} (default: @var{hurd-vm-disk-image})"
  46707. msgstr "@code{mate}(默认值:@code{mate})"
  46708. #. type: table
  46709. #: guix-git/doc/guix.texi:31274
  46710. msgid "The procedure used to build the disk-image built from this configuration."
  46711. msgstr ""
  46712. #. type: item
  46713. #: guix-git/doc/guix.texi:31275
  46714. #, fuzzy, no-wrap
  46715. msgid "@code{disk-size} (default: @code{'guess})"
  46716. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  46717. #. type: table
  46718. #: guix-git/doc/guix.texi:31277
  46719. #, fuzzy
  46720. msgid "The size of the disk image."
  46721. msgstr "这个用户手册的许可证。"
  46722. #. type: item
  46723. #: guix-git/doc/guix.texi:31278
  46724. #, fuzzy, no-wrap
  46725. msgid "@code{memory-size} (default: @code{512})"
  46726. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  46727. #. type: table
  46728. #: guix-git/doc/guix.texi:31280
  46729. msgid "The memory size of the Virtual Machine in mebibytes."
  46730. msgstr ""
  46731. #. type: item
  46732. #: guix-git/doc/guix.texi:31281
  46733. #, fuzzy, no-wrap
  46734. msgid "@code{options} (default: @code{'(\"--snapshot\")})"
  46735. msgstr "@code{includes}(默认值:@code{'()})"
  46736. #. type: table
  46737. #: guix-git/doc/guix.texi:31283
  46738. msgid "The extra options for running QEMU."
  46739. msgstr ""
  46740. #. type: table
  46741. #: guix-git/doc/guix.texi:31288
  46742. 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}."
  46743. msgstr ""
  46744. #. type: item
  46745. #: guix-git/doc/guix.texi:31289
  46746. #, no-wrap
  46747. msgid "@code{net-options} (default: @var{hurd-vm-net-options})"
  46748. msgstr ""
  46749. #. type: table
  46750. #: guix-git/doc/guix.texi:31291
  46751. msgid "The procedure used to produce the list of QEMU networking options."
  46752. msgstr ""
  46753. #. type: table
  46754. #: guix-git/doc/guix.texi:31293
  46755. msgid "By default, it produces"
  46756. msgstr ""
  46757. #. type: lisp
  46758. #: guix-git/doc/guix.texi:31301
  46759. #, no-wrap
  46760. msgid ""
  46761. "'(\"--device\" \"rtl8139,netdev=net0\"\n"
  46762. " \"--netdev\" (string-append\n"
  46763. " \"user,id=net0,\"\n"
  46764. " \"hostfwd=tcp:127.0.0.1:@var{secrets-port}-:1004,\"\n"
  46765. " \"hostfwd=tcp:127.0.0.1:@var{ssh-port}-:2222,\"\n"
  46766. " \"hostfwd=tcp:127.0.0.1:@var{vnc-port}-:5900\"))\n"
  46767. msgstr ""
  46768. #. type: table
  46769. #: guix-git/doc/guix.texi:31304
  46770. msgid "with forwarded ports:"
  46771. msgstr ""
  46772. #. type: example
  46773. #: guix-git/doc/guix.texi:31309
  46774. #, no-wrap
  46775. msgid ""
  46776. "@var{secrets-port}: @code{(+ 11004 (* 1000 @var{ID}))}\n"
  46777. "@var{ssh-port}: @code{(+ 10022 (* 1000 @var{ID}))}\n"
  46778. "@var{vnc-port}: @code{(+ 15900 (* 1000 @var{ID}))}\n"
  46779. msgstr ""
  46780. #. type: item
  46781. #: guix-git/doc/guix.texi:31311
  46782. #, fuzzy, no-wrap
  46783. msgid "@code{secret-root} (default: @file{/etc/childhurd})"
  46784. msgstr "@code{private-key}(默认值:@file{~root/.ssh/id_rsa})"
  46785. #. type: table
  46786. #: guix-git/doc/guix.texi:31316
  46787. 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."
  46788. msgstr ""
  46789. #. type: table
  46790. #: guix-git/doc/guix.texi:31320
  46791. 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."
  46792. msgstr ""
  46793. #. type: table
  46794. #: guix-git/doc/guix.texi:31323
  46795. msgid "By default, the service automatically populates @file{/etc/childhurd} with the following non-volatile secrets, unless they already exist:"
  46796. msgstr ""
  46797. #. type: example
  46798. #: guix-git/doc/guix.texi:31332
  46799. #, no-wrap
  46800. msgid ""
  46801. "/etc/childhurd/etc/guix/acl\n"
  46802. "/etc/childhurd/etc/guix/signing-key.pub\n"
  46803. "/etc/childhurd/etc/guix/signing-key.sec\n"
  46804. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key\n"
  46805. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key\n"
  46806. "/etc/childhurd/etc/ssh/ssh_host_ed25519_key.pub\n"
  46807. "/etc/childhurd/etc/ssh/ssh_host_ecdsa_key.pub\n"
  46808. msgstr ""
  46809. #. type: table
  46810. #: guix-git/doc/guix.texi:31336
  46811. msgid "These files are automatically sent to the guest Hurd VM when it boots, including permissions."
  46812. msgstr ""
  46813. #. type: cindex
  46814. #: guix-git/doc/guix.texi:31337
  46815. #, fuzzy, no-wrap
  46816. msgid "childhurd, offloading"
  46817. msgstr "下发"
  46818. #. type: cindex
  46819. #: guix-git/doc/guix.texi:31338
  46820. #, fuzzy, no-wrap
  46821. msgid "Hurd, offloading"
  46822. msgstr "下发"
  46823. #. type: table
  46824. #: guix-git/doc/guix.texi:31342
  46825. 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:"
  46826. msgstr ""
  46827. #. type: enumerate
  46828. #: guix-git/doc/guix.texi:31347
  46829. 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:"
  46830. msgstr ""
  46831. #. type: example
  46832. #: guix-git/doc/guix.texi:31351
  46833. #, fuzzy, no-wrap
  46834. msgid ""
  46835. "guix archive --authorize < \\\n"
  46836. " /etc/childhurd/etc/guix/signing-key.pub\n"
  46837. msgstr "# guix archive --authorize < master-public-key.txt\n"
  46838. #. type: enumerate
  46839. #: guix-git/doc/guix.texi:31356
  46840. msgid "Adding the childhurd to @file{/etc/guix/machines.scm} (@pxref{Daemon Offload Setup})."
  46841. msgstr ""
  46842. #. type: table
  46843. #: guix-git/doc/guix.texi:31360
  46844. msgid "We're working towards making that happen automatically---get in touch with us at @email{guix-devel@@gnu.org} to discuss it!"
  46845. msgstr ""
  46846. #. type: Plain text
  46847. #: guix-git/doc/guix.texi:31367
  46848. 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:"
  46849. msgstr ""
  46850. #. type: lisp
  46851. #: guix-git/doc/guix.texi:31373
  46852. #, no-wrap
  46853. msgid ""
  46854. "(service hurd-vm-service-type\n"
  46855. " (hurd-vm-configuration\n"
  46856. " (image (const \"/out/of/store/writable/hurd.img\"))\n"
  46857. " (options '())))\n"
  46858. msgstr ""
  46859. #. type: subsubheading
  46860. #: guix-git/doc/guix.texi:31375
  46861. #, no-wrap
  46862. msgid "Ganeti"
  46863. msgstr ""
  46864. #. type: cindex
  46865. #: guix-git/doc/guix.texi:31377
  46866. #, no-wrap
  46867. msgid "ganeti"
  46868. msgstr ""
  46869. #. type: quotation
  46870. #: guix-git/doc/guix.texi:31384
  46871. 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}."
  46872. msgstr ""
  46873. #. type: Plain text
  46874. #: guix-git/doc/guix.texi:31394
  46875. 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)."
  46876. msgstr ""
  46877. #. type: Plain text
  46878. #: guix-git/doc/guix.texi:31399
  46879. 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}:"
  46880. msgstr ""
  46881. #. type: lisp
  46882. #: guix-git/doc/guix.texi:31409
  46883. #, no-wrap
  46884. msgid ""
  46885. "(use-package-modules virtualization)\n"
  46886. "(use-service-modules base ganeti networking ssh)\n"
  46887. "(operating-system\n"
  46888. " ;; @dots{}\n"
  46889. " (host-name \"node1\")\n"
  46890. " (hosts-file (plain-file \"hosts\" (format #f \"\n"
  46891. "127.0.0.1 localhost\n"
  46892. "::1 localhost\n"
  46893. "\n"
  46894. msgstr ""
  46895. #. type: lisp
  46896. #: guix-git/doc/guix.texi:31414
  46897. #, no-wrap
  46898. msgid ""
  46899. "192.168.1.200 ganeti.example.com\n"
  46900. "192.168.1.201 node1.example.com node1\n"
  46901. "192.168.1.202 node2.example.com node2\n"
  46902. "\")))\n"
  46903. "\n"
  46904. msgstr ""
  46905. #. type: lisp
  46906. #: guix-git/doc/guix.texi:31435
  46907. #, no-wrap
  46908. msgid ""
  46909. " ;; Install QEMU so we can use KVM-based instances, and LVM, DRBD and Ceph\n"
  46910. " ;; in order to use the \"plain\", \"drbd\" and \"rbd\" storage backends.\n"
  46911. " (packages (append (map specification->package\n"
  46912. " '(\"qemu\" \"lvm2\" \"drbd-utils\" \"ceph\"\n"
  46913. " ;; Add the debootstrap and guix OS providers.\n"
  46914. " \"ganeti-instance-guix\" \"ganeti-instance-debootstrap\"))\n"
  46915. " %base-packages))\n"
  46916. " (services\n"
  46917. " (append (list (service static-networking-service-type\n"
  46918. " (list (static-networking\n"
  46919. " (addresses\n"
  46920. " (list (network-address\n"
  46921. " (device \"eth0\")\n"
  46922. " (value \"192.168.1.201/24\"))))\n"
  46923. " (routes\n"
  46924. " (list (network-route\n"
  46925. " (destination \"default\")\n"
  46926. " (gateway \"192.168.1.254\"))))\n"
  46927. " (name-servers '(\"192.168.1.252\"\n"
  46928. " \"192.168.1.253\")))))\n"
  46929. "\n"
  46930. msgstr ""
  46931. #. type: lisp
  46932. #: guix-git/doc/guix.texi:31440
  46933. #, no-wrap
  46934. msgid ""
  46935. " ;; Ganeti uses SSH to communicate between nodes.\n"
  46936. " (service openssh-service-type\n"
  46937. " (openssh-configuration\n"
  46938. " (permit-root-login 'prohibit-password)))\n"
  46939. "\n"
  46940. msgstr ""
  46941. #. type: lisp
  46942. #: guix-git/doc/guix.texi:31450
  46943. #, no-wrap
  46944. msgid ""
  46945. " (service ganeti-service-type\n"
  46946. " (ganeti-configuration\n"
  46947. " ;; This list specifies allowed file system paths\n"
  46948. " ;; for storing virtual machine images.\n"
  46949. " (file-storage-paths '(\"/srv/ganeti/file-storage\"))\n"
  46950. " ;; This variable configures a single \"variant\" for\n"
  46951. " ;; both Debootstrap and Guix that works with KVM.\n"
  46952. " (os %default-ganeti-os))))\n"
  46953. " %base-services)))\n"
  46954. msgstr ""
  46955. #. type: Plain text
  46956. #: guix-git/doc/guix.texi:31458
  46957. 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."
  46958. msgstr ""
  46959. #. type: defvr
  46960. #: guix-git/doc/guix.texi:31459
  46961. #, no-wrap
  46962. msgid "{Scheme Variable} ganeti-service-type"
  46963. msgstr ""
  46964. #. type: defvr
  46965. #: guix-git/doc/guix.texi:31462
  46966. msgid "This is a service type that includes all the various services that Ganeti nodes should run."
  46967. msgstr ""
  46968. #. type: defvr
  46969. #: guix-git/doc/guix.texi:31467
  46970. 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."
  46971. msgstr ""
  46972. #. type: deftp
  46973. #: guix-git/doc/guix.texi:31469
  46974. #, no-wrap
  46975. msgid "{Data Type} ganeti-configuration"
  46976. msgstr ""
  46977. #. type: deftp
  46978. #: guix-git/doc/guix.texi:31471
  46979. msgid "The @code{ganeti} service takes the following configuration options:"
  46980. msgstr ""
  46981. #. type: item
  46982. #: guix-git/doc/guix.texi:31473 guix-git/doc/guix.texi:31701
  46983. #: guix-git/doc/guix.texi:31751 guix-git/doc/guix.texi:31781
  46984. #: guix-git/doc/guix.texi:31808 guix-git/doc/guix.texi:31840
  46985. #: guix-git/doc/guix.texi:31893 guix-git/doc/guix.texi:31913
  46986. #: guix-git/doc/guix.texi:31939 guix-git/doc/guix.texi:31972
  46987. #: guix-git/doc/guix.texi:32012
  46988. #, fuzzy, no-wrap
  46989. msgid "@code{ganeti} (default: @code{ganeti})"
  46990. msgstr "@code{gnome}(默认值:@code{gnome})"
  46991. #. type: table
  46992. #: guix-git/doc/guix.texi:31478
  46993. 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)."
  46994. msgstr ""
  46995. #. type: item
  46996. #: guix-git/doc/guix.texi:31479
  46997. #, fuzzy, no-wrap
  46998. msgid "@code{noded-configuration} (default: @code{(ganeti-noded-configuration)})"
  46999. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  47000. #. type: itemx
  47001. #: guix-git/doc/guix.texi:31480
  47002. #, fuzzy, no-wrap
  47003. msgid "@code{confd-configuration} (default: @code{(ganeti-confd-configuration)})"
  47004. msgstr "@code{journal-content}(默认值:@code{#f})"
  47005. #. type: itemx
  47006. #: guix-git/doc/guix.texi:31481
  47007. #, no-wrap
  47008. msgid "@code{wconfd-configuration} (default: @code{(ganeti-wconfd-configuration)})"
  47009. msgstr ""
  47010. #. type: itemx
  47011. #: guix-git/doc/guix.texi:31482
  47012. #, no-wrap
  47013. msgid "@code{luxid-configuration} (default: @code{(ganeti-luxid-configuration)})"
  47014. msgstr ""
  47015. #. type: itemx
  47016. #: guix-git/doc/guix.texi:31483
  47017. #, fuzzy, no-wrap
  47018. msgid "@code{rapi-configuration} (default: @code{(ganeti-rapi-configuration)})"
  47019. msgstr "@code{journal-content}(默认值:@code{#f})"
  47020. #. type: itemx
  47021. #: guix-git/doc/guix.texi:31484
  47022. #, fuzzy, no-wrap
  47023. msgid "@code{kvmd-configuration} (default: @code{(ganeti-kvmd-configuration)})"
  47024. msgstr "@code{mate}(默认值:@code{mate})"
  47025. #. type: itemx
  47026. #: guix-git/doc/guix.texi:31485
  47027. #, fuzzy, no-wrap
  47028. msgid "@code{mond-configuration} (default: @code{(ganeti-mond-configuration)})"
  47029. msgstr "@code{journal-content}(默认值:@code{#f})"
  47030. #. type: itemx
  47031. #: guix-git/doc/guix.texi:31486
  47032. #, fuzzy, no-wrap
  47033. msgid "@code{metad-configuration} (default: @code{(ganeti-metad-configuration)})"
  47034. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  47035. #. type: itemx
  47036. #: guix-git/doc/guix.texi:31487
  47037. #, fuzzy, no-wrap
  47038. msgid "@code{watcher-configuration} (default: @code{(ganeti-watcher-configuration)})"
  47039. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47040. #. type: itemx
  47041. #: guix-git/doc/guix.texi:31488
  47042. #, fuzzy, no-wrap
  47043. msgid "@code{cleaner-configuration} (default: @code{(ganeti-cleaner-configuration)})"
  47044. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  47045. #. type: table
  47046. #: guix-git/doc/guix.texi:31493
  47047. 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:"
  47048. msgstr ""
  47049. #. type: lisp
  47050. #: guix-git/doc/guix.texi:31503
  47051. #, no-wrap
  47052. msgid ""
  47053. "(service ganeti-service-type\n"
  47054. " (ganeti-configuration\n"
  47055. " (rapi-configuration\n"
  47056. " (ganeti-rapi-configuration\n"
  47057. " (interface \"eth1\"))))\n"
  47058. " (watcher-configuration\n"
  47059. " (ganeti-watcher-configuration\n"
  47060. " (rapi-ip \"10.0.0.1\"))))\n"
  47061. msgstr ""
  47062. #. type: item
  47063. #: guix-git/doc/guix.texi:31505
  47064. #, fuzzy, no-wrap
  47065. msgid "@code{file-storage-paths} (default: @code{'()})"
  47066. msgstr "@code{features} (@code{'()})"
  47067. #. type: table
  47068. #: guix-git/doc/guix.texi:31507
  47069. msgid "List of allowed directories for file storage backend."
  47070. msgstr ""
  47071. #. type: item
  47072. #: guix-git/doc/guix.texi:31508
  47073. #, fuzzy, no-wrap
  47074. msgid "@code{os} (default: @code{%default-ganeti-os})"
  47075. msgstr "@code{gnome}(默认值:@code{gnome})"
  47076. #. type: table
  47077. #: guix-git/doc/guix.texi:31510
  47078. msgid "List of @code{<ganeti-os>} records."
  47079. msgstr ""
  47080. #. type: deftp
  47081. #: guix-git/doc/guix.texi:31514
  47082. msgid "In essence @code{ganeti-service-type} is shorthand for declaring each service individually:"
  47083. msgstr ""
  47084. #. type: lisp
  47085. #: guix-git/doc/guix.texi:31525
  47086. #, no-wrap
  47087. msgid ""
  47088. "(service ganeti-noded-service-type)\n"
  47089. "(service ganeti-confd-service-type)\n"
  47090. "(service ganeti-wconfd-service-type)\n"
  47091. "(service ganeti-luxid-service-type)\n"
  47092. "(service ganeti-kvmd-service-type)\n"
  47093. "(service ganeti-mond-service-type)\n"
  47094. "(service ganeti-metad-service-type)\n"
  47095. "(service ganeti-watcher-service-type)\n"
  47096. "(service ganeti-cleaner-service-type)\n"
  47097. msgstr ""
  47098. #. type: deftp
  47099. #: guix-git/doc/guix.texi:31529
  47100. msgid "Plus a service extension for @code{etc-service-type} that configures the file storage backend and OS variants."
  47101. msgstr ""
  47102. #. type: deftp
  47103. #: guix-git/doc/guix.texi:31532
  47104. #, fuzzy, no-wrap
  47105. msgid "{Data Type} ganeti-os"
  47106. msgstr "{数据类型} build-machine"
  47107. #. type: deftp
  47108. #: guix-git/doc/guix.texi:31535
  47109. msgid "This data type is suitable for passing to the @code{os} parameter of @code{ganeti-configuration}. It takes the following parameters:"
  47110. msgstr ""
  47111. #. type: table
  47112. #: guix-git/doc/guix.texi:31541
  47113. 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}."
  47114. msgstr ""
  47115. #. type: code{#1}
  47116. #: guix-git/doc/guix.texi:31542
  47117. #, no-wrap
  47118. msgid "extension"
  47119. msgstr ""
  47120. #. type: table
  47121. #: guix-git/doc/guix.texi:31545
  47122. msgid "The file extension for variants of this OS type. For example @file{.conf} or @file{.scm}."
  47123. msgstr ""
  47124. #. type: item
  47125. #: guix-git/doc/guix.texi:31546
  47126. #, fuzzy, no-wrap
  47127. msgid "@code{variants} (default: @code{'()})"
  47128. msgstr "@code{features} (@code{'()})"
  47129. #. type: table
  47130. #: guix-git/doc/guix.texi:31548
  47131. msgid "List of @code{ganeti-os-variant} objects for this OS."
  47132. msgstr ""
  47133. #. type: deftp
  47134. #: guix-git/doc/guix.texi:31552
  47135. #, fuzzy, no-wrap
  47136. msgid "{Data Type} ganeti-os-variant"
  47137. msgstr "{数据类型} build-machine"
  47138. #. type: deftp
  47139. #: guix-git/doc/guix.texi:31555
  47140. msgid "This is the data type for a Ganeti OS variant. It takes the following parameters:"
  47141. msgstr ""
  47142. #. type: table
  47143. #: guix-git/doc/guix.texi:31559
  47144. #, fuzzy
  47145. msgid "The name of this variant."
  47146. msgstr "这个用户手册的许可证。"
  47147. #. type: code{#1}
  47148. #: guix-git/doc/guix.texi:31560
  47149. #, fuzzy, no-wrap
  47150. msgid "configuration"
  47151. msgstr "系统配置"
  47152. #. type: table
  47153. #: guix-git/doc/guix.texi:31562
  47154. msgid "A configuration file for this variant."
  47155. msgstr ""
  47156. #. type: defvr
  47157. #: guix-git/doc/guix.texi:31565
  47158. #, no-wrap
  47159. msgid "{Scheme Variable} %default-debootstrap-hooks"
  47160. msgstr ""
  47161. #. type: defvr
  47162. #: guix-git/doc/guix.texi:31567
  47163. msgid "This variable contains hooks to configure networking and the GRUB bootloader."
  47164. msgstr ""
  47165. #. type: defvr
  47166. #: guix-git/doc/guix.texi:31569
  47167. #, no-wrap
  47168. msgid "{Scheme Variable} %default-debootstrap-extra-pkgs"
  47169. msgstr ""
  47170. #. type: defvr
  47171. #: guix-git/doc/guix.texi:31571
  47172. msgid "This variable contains a list of packages suitable for a fully-virtualized guest."
  47173. msgstr ""
  47174. #. type: deftp
  47175. #: guix-git/doc/guix.texi:31573
  47176. #, no-wrap
  47177. msgid "{Data Type} debootstrap-configuration"
  47178. msgstr ""
  47179. #. type: deftp
  47180. #: guix-git/doc/guix.texi:31576
  47181. msgid "This data type creates configuration files suitable for the debootstrap OS provider."
  47182. msgstr ""
  47183. #. type: item
  47184. #: guix-git/doc/guix.texi:31578
  47185. #, fuzzy, no-wrap
  47186. msgid "@code{hooks} (default: @code{%default-debootstrap-hooks})"
  47187. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  47188. #. type: table
  47189. #: guix-git/doc/guix.texi:31582
  47190. 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:"
  47191. msgstr ""
  47192. #. type: lisp
  47193. #: guix-git/doc/guix.texi:31585
  47194. #, no-wrap
  47195. msgid "`((99-hello-world . ,(plain-file \"#!/bin/sh\\necho Hello, World\")))\n"
  47196. msgstr ""
  47197. #. type: table
  47198. #: guix-git/doc/guix.texi:31590
  47199. 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."
  47200. msgstr ""
  47201. #. type: item
  47202. #: guix-git/doc/guix.texi:31590
  47203. #, fuzzy, no-wrap
  47204. msgid "@code{proxy} (default: @code{#f})"
  47205. msgstr "@code{port}(默认值:@code{22})"
  47206. #. type: table
  47207. #: guix-git/doc/guix.texi:31592
  47208. msgid "Optional HTTP proxy to use."
  47209. msgstr ""
  47210. #. type: item
  47211. #: guix-git/doc/guix.texi:31592 guix-git/doc/guix.texi:33785
  47212. #, fuzzy, no-wrap
  47213. msgid "@code{mirror} (default: @code{#f})"
  47214. msgstr "@code{port}(默认值:@code{22})"
  47215. #. type: table
  47216. #: guix-git/doc/guix.texi:31595
  47217. msgid "The Debian mirror. Typically something like @code{http://ftp.no.debian.org/debian}. The default varies depending on the distribution."
  47218. msgstr ""
  47219. #. type: item
  47220. #: guix-git/doc/guix.texi:31595
  47221. #, fuzzy, no-wrap
  47222. msgid "@code{arch} (default: @code{#f})"
  47223. msgstr "@code{challenge}(默认值:@code{#f})"
  47224. #. type: table
  47225. #: guix-git/doc/guix.texi:31598
  47226. 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."
  47227. msgstr ""
  47228. #. type: item
  47229. #: guix-git/doc/guix.texi:31598
  47230. #, fuzzy, no-wrap
  47231. msgid "@code{suite} (default: @code{\"stable\"})"
  47232. msgstr "@code{mate}(默认值:@code{mate})"
  47233. #. type: table
  47234. #: guix-git/doc/guix.texi:31601
  47235. 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."
  47236. msgstr ""
  47237. #. type: item
  47238. #: guix-git/doc/guix.texi:31601
  47239. #, no-wrap
  47240. msgid "@code{extra-pkgs} (default: @code{%default-debootstrap-extra-pkgs})"
  47241. msgstr ""
  47242. #. type: table
  47243. #: guix-git/doc/guix.texi:31604
  47244. msgid "List of extra packages that will get installed by dpkg in addition to the minimal system."
  47245. msgstr ""
  47246. #. type: item
  47247. #: guix-git/doc/guix.texi:31604
  47248. #, fuzzy, no-wrap
  47249. msgid "@code{components} (default: @code{#f})"
  47250. msgstr "@code{journal-content}(默认值:@code{#f})"
  47251. #. type: table
  47252. #: guix-git/doc/guix.texi:31607
  47253. msgid "When set, must be a list of Debian repository ``components''. For example @code{'(\"main\" \"contrib\")}."
  47254. msgstr ""
  47255. #. type: item
  47256. #: guix-git/doc/guix.texi:31607
  47257. #, fuzzy, no-wrap
  47258. msgid "@code{generate-cache?} (default: @code{#t})"
  47259. msgstr "@code{mate}(默认值:@code{mate})"
  47260. #. type: table
  47261. #: guix-git/doc/guix.texi:31609
  47262. msgid "Whether to automatically cache the generated debootstrap archive."
  47263. msgstr ""
  47264. #. type: item
  47265. #: guix-git/doc/guix.texi:31609
  47266. #, fuzzy, no-wrap
  47267. msgid "@code{clean-cache} (default: @code{14})"
  47268. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  47269. #. type: table
  47270. #: guix-git/doc/guix.texi:31612
  47271. msgid "Discard the cache after this amount of days. Use @code{#f} to never clear the cache."
  47272. msgstr ""
  47273. #. type: item
  47274. #: guix-git/doc/guix.texi:31612
  47275. #, fuzzy, no-wrap
  47276. msgid "@code{partition-style} (default: @code{'msdos})"
  47277. msgstr "@code{compression-level}(默认值:@code{3})"
  47278. #. type: table
  47279. #: guix-git/doc/guix.texi:31615
  47280. msgid "The type of partition to create. When set, it must be one of @code{'msdos}, @code{'none} or a string."
  47281. msgstr ""
  47282. #. type: item
  47283. #: guix-git/doc/guix.texi:31615
  47284. #, fuzzy, no-wrap
  47285. msgid "@code{partition-alignment} (default: @code{2048})"
  47286. msgstr "@code{port}(默认值:@code{22})"
  47287. #. type: table
  47288. #: guix-git/doc/guix.texi:31617
  47289. msgid "Alignment of the partition in sectors."
  47290. msgstr ""
  47291. #. type: deffn
  47292. #: guix-git/doc/guix.texi:31620
  47293. #, no-wrap
  47294. msgid "{Scheme Procedure} debootstrap-variant @var{name} @var{configuration}"
  47295. msgstr ""
  47296. #. type: deffn
  47297. #: guix-git/doc/guix.texi:31623
  47298. 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."
  47299. msgstr ""
  47300. #. type: deffn
  47301. #: guix-git/doc/guix.texi:31625
  47302. #, no-wrap
  47303. msgid "{Scheme Procedure} debootstrap-os @var{variants}@dots{}"
  47304. msgstr ""
  47305. #. type: deffn
  47306. #: guix-git/doc/guix.texi:31628
  47307. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants created with @code{debootstrap-variant}."
  47308. msgstr ""
  47309. #. type: deffn
  47310. #: guix-git/doc/guix.texi:31630
  47311. #, no-wrap
  47312. msgid "{Scheme Procedure} guix-variant @var{name} @var{configuration}"
  47313. msgstr ""
  47314. #. type: deffn
  47315. #: guix-git/doc/guix.texi:31635
  47316. 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."
  47317. msgstr ""
  47318. #. type: deffn
  47319. #: guix-git/doc/guix.texi:31637
  47320. #, no-wrap
  47321. msgid "{Scheme Procedure} guix-os @var{variants}@dots{}"
  47322. msgstr ""
  47323. #. type: deffn
  47324. #: guix-git/doc/guix.texi:31640
  47325. msgid "This is a helper procedure that creates a @code{ganeti-os} record. It takes a list of variants produced by @code{guix-variant}."
  47326. msgstr ""
  47327. #. type: defvr
  47328. #: guix-git/doc/guix.texi:31642
  47329. #, no-wrap
  47330. msgid "{Scheme Variable} %default-debootstrap-variants"
  47331. msgstr ""
  47332. #. type: defvr
  47333. #: guix-git/doc/guix.texi:31646
  47334. 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:"
  47335. msgstr ""
  47336. #. type: lisp
  47337. #: guix-git/doc/guix.texi:31651
  47338. #, no-wrap
  47339. msgid ""
  47340. "(list (debootstrap-variant\n"
  47341. " \"default\"\n"
  47342. " (debootstrap-configuration)))\n"
  47343. msgstr ""
  47344. #. type: defvr
  47345. #: guix-git/doc/guix.texi:31654
  47346. #, no-wrap
  47347. msgid "{Scheme Variable} %default-guix-variants"
  47348. msgstr ""
  47349. #. type: defvr
  47350. #: guix-git/doc/guix.texi:31658
  47351. 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."
  47352. msgstr ""
  47353. #. type: lisp
  47354. #: guix-git/doc/guix.texi:31664
  47355. #, no-wrap
  47356. msgid ""
  47357. "(list (guix-variant\n"
  47358. " \"default\"\n"
  47359. " (file-append ganeti-instance-guix\n"
  47360. " \"/share/doc/ganeti-instance-guix/examples/dynamic.scm\")))\n"
  47361. msgstr ""
  47362. #. type: Plain text
  47363. #: guix-git/doc/guix.texi:31670
  47364. 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:"
  47365. msgstr ""
  47366. #. type: lisp
  47367. #: guix-git/doc/guix.texi:31679
  47368. #, no-wrap
  47369. msgid ""
  47370. "(ganeti-os\n"
  47371. " (name \"custom\")\n"
  47372. " (extension \".conf\")\n"
  47373. " (variants\n"
  47374. " (list (ganeti-os-variant\n"
  47375. " (name \"foo\")\n"
  47376. " (configuration (plain-file \"bar\" \"this is fine\"))))))\n"
  47377. msgstr ""
  47378. #. type: Plain text
  47379. #: guix-git/doc/guix.texi:31684
  47380. 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}."
  47381. msgstr ""
  47382. #. type: Plain text
  47383. #: guix-git/doc/guix.texi:31687
  47384. 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}."
  47385. msgstr ""
  47386. #. type: Plain text
  47387. #: guix-git/doc/guix.texi:31690
  47388. msgid "The rest of this section documents the various services that are included by @code{ganeti-service-type}."
  47389. msgstr ""
  47390. #. type: defvr
  47391. #: guix-git/doc/guix.texi:31691
  47392. #, no-wrap
  47393. msgid "{Scheme Variable} ganeti-noded-service-type"
  47394. msgstr ""
  47395. #. type: defvr
  47396. #: guix-git/doc/guix.texi:31695
  47397. 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."
  47398. msgstr ""
  47399. #. type: deftp
  47400. #: guix-git/doc/guix.texi:31697
  47401. #, no-wrap
  47402. msgid "{Data Type} ganeti-noded-configuration"
  47403. msgstr ""
  47404. #. type: deftp
  47405. #: guix-git/doc/guix.texi:31699
  47406. msgid "This is the configuration for the @code{ganeti-noded} service."
  47407. msgstr ""
  47408. #. type: table
  47409. #: guix-git/doc/guix.texi:31703 guix-git/doc/guix.texi:31753
  47410. #: guix-git/doc/guix.texi:31783 guix-git/doc/guix.texi:31810
  47411. #: guix-git/doc/guix.texi:31842 guix-git/doc/guix.texi:31895
  47412. #: guix-git/doc/guix.texi:31915 guix-git/doc/guix.texi:31941
  47413. #: guix-git/doc/guix.texi:31974
  47414. msgid "The @code{ganeti} package to use for this service."
  47415. msgstr ""
  47416. #. type: item
  47417. #: guix-git/doc/guix.texi:31704
  47418. #, fuzzy, no-wrap
  47419. msgid "@code{port} (default: @code{1811})"
  47420. msgstr "@code{port}(默认值:@code{22})"
  47421. #. type: table
  47422. #: guix-git/doc/guix.texi:31706
  47423. msgid "The TCP port on which the node daemon listens for network requests."
  47424. msgstr ""
  47425. #. type: item
  47426. #: guix-git/doc/guix.texi:31707 guix-git/doc/guix.texi:31757
  47427. #: guix-git/doc/guix.texi:31849 guix-git/doc/guix.texi:31919
  47428. #, fuzzy, no-wrap
  47429. msgid "@code{address} (default: @code{\"0.0.0.0\"})"
  47430. msgstr "@code{display}(默认值:@code{\":0\"})"
  47431. #. type: table
  47432. #: guix-git/doc/guix.texi:31710
  47433. msgid "The network address that the daemon will bind to. The default address means bind to all available addresses."
  47434. msgstr ""
  47435. #. type: table
  47436. #: guix-git/doc/guix.texi:31714
  47437. msgid "When this is set, it must be a specific network interface (e.g.@: @code{eth0}) that the daemon will bind to."
  47438. msgstr ""
  47439. #. type: item
  47440. #: guix-git/doc/guix.texi:31715 guix-git/doc/guix.texi:31857
  47441. #, fuzzy, no-wrap
  47442. msgid "@code{max-clients} (default: @code{20})"
  47443. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  47444. #. type: table
  47445. #: guix-git/doc/guix.texi:31719
  47446. 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."
  47447. msgstr ""
  47448. #. type: item
  47449. #: guix-git/doc/guix.texi:31720 guix-git/doc/guix.texi:31862
  47450. #, fuzzy, no-wrap
  47451. msgid "@code{ssl?} (default: @code{#t})"
  47452. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  47453. #. type: table
  47454. #: guix-git/doc/guix.texi:31724
  47455. 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}."
  47456. msgstr ""
  47457. #. type: item
  47458. #: guix-git/doc/guix.texi:31725 guix-git/doc/guix.texi:31865
  47459. #, fuzzy, no-wrap
  47460. msgid "@code{ssl-key} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  47461. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  47462. #. type: table
  47463. #: guix-git/doc/guix.texi:31727 guix-git/doc/guix.texi:31867
  47464. msgid "This can be used to provide a specific encryption key for TLS communications."
  47465. msgstr ""
  47466. #. type: item
  47467. #: guix-git/doc/guix.texi:31728 guix-git/doc/guix.texi:31868
  47468. #, fuzzy, no-wrap
  47469. msgid "@code{ssl-cert} (default: @file{\"/var/lib/ganeti/server.pem\"})"
  47470. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  47471. #. type: table
  47472. #: guix-git/doc/guix.texi:31730 guix-git/doc/guix.texi:31870
  47473. msgid "This can be used to provide a specific certificate for TLS communications."
  47474. msgstr ""
  47475. #. type: table
  47476. #: guix-git/doc/guix.texi:31734 guix-git/doc/guix.texi:31874
  47477. 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."
  47478. msgstr ""
  47479. #. type: defvr
  47480. #: guix-git/doc/guix.texi:31738
  47481. #, no-wrap
  47482. msgid "{Scheme Variable} ganeti-confd-service-type"
  47483. msgstr ""
  47484. #. type: defvr
  47485. #: guix-git/doc/guix.texi:31744
  47486. 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."
  47487. msgstr ""
  47488. #. type: deftp
  47489. #: guix-git/doc/guix.texi:31747
  47490. #, no-wrap
  47491. msgid "{Data Type} ganeti-confd-configuration"
  47492. msgstr ""
  47493. #. type: deftp
  47494. #: guix-git/doc/guix.texi:31749
  47495. msgid "This is the configuration for the @code{ganeti-confd} service."
  47496. msgstr ""
  47497. #. type: item
  47498. #: guix-git/doc/guix.texi:31754
  47499. #, fuzzy, no-wrap
  47500. msgid "@code{port} (default: @code{1814})"
  47501. msgstr "@code{port}(默认值:@code{22})"
  47502. #. type: table
  47503. #: guix-git/doc/guix.texi:31756
  47504. msgid "The UDP port on which to listen for network requests."
  47505. msgstr ""
  47506. #. type: table
  47507. #: guix-git/doc/guix.texi:31759
  47508. msgid "Network address that the daemon will bind to."
  47509. msgstr ""
  47510. #. type: table
  47511. #: guix-git/doc/guix.texi:31762 guix-git/doc/guix.texi:31791
  47512. #: guix-git/doc/guix.texi:31818 guix-git/doc/guix.texi:31898
  47513. #: guix-git/doc/guix.texi:31925 guix-git/doc/guix.texi:31951
  47514. msgid "When true, the daemon performs additional logging for debugging purposes."
  47515. msgstr ""
  47516. #. type: defvr
  47517. #: guix-git/doc/guix.texi:31766
  47518. #, no-wrap
  47519. msgid "{Scheme Variable} ganeti-wconfd-service-type"
  47520. msgstr ""
  47521. #. type: defvr
  47522. #: guix-git/doc/guix.texi:31772
  47523. 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."
  47524. msgstr ""
  47525. #. type: defvr
  47526. #: guix-git/doc/guix.texi:31775
  47527. msgid "The value of this service must be a @code{ganeti-wconfd-configuration} object."
  47528. msgstr ""
  47529. #. type: deftp
  47530. #: guix-git/doc/guix.texi:31777
  47531. #, no-wrap
  47532. msgid "{Data Type} ganeti-wconfd-configuration"
  47533. msgstr ""
  47534. #. type: deftp
  47535. #: guix-git/doc/guix.texi:31779
  47536. msgid "This is the configuration for the @code{ganeti-wconfd} service."
  47537. msgstr ""
  47538. #. type: item
  47539. #: guix-git/doc/guix.texi:31784 guix-git/doc/guix.texi:31811
  47540. #, fuzzy, no-wrap
  47541. msgid "@code{no-voting?} (default: @code{#f})"
  47542. msgstr "@code{journal-content}(默认值:@code{#f})"
  47543. #. type: table
  47544. #: guix-git/doc/guix.texi:31788
  47545. 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)."
  47546. msgstr ""
  47547. #. type: defvr
  47548. #: guix-git/doc/guix.texi:31795
  47549. #, no-wrap
  47550. msgid "{Scheme Variable} ganeti-luxid-service-type"
  47551. msgstr ""
  47552. #. type: defvr
  47553. #: guix-git/doc/guix.texi:31800
  47554. 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."
  47555. msgstr ""
  47556. #. type: defvr
  47557. #: guix-git/doc/guix.texi:31802
  47558. msgid "It takes a @code{ganeti-luxid-configuration} object."
  47559. msgstr ""
  47560. #. type: deftp
  47561. #: guix-git/doc/guix.texi:31804
  47562. #, fuzzy, no-wrap
  47563. msgid "{Data Type} ganeti-luxid-configuration"
  47564. msgstr "{数据类型} build-machine"
  47565. #. type: deftp
  47566. #: guix-git/doc/guix.texi:31806
  47567. #, fuzzy
  47568. msgid "This is the configuration for the @code{ganeti-luxid} service."
  47569. msgstr "管理操作系统配置。"
  47570. #. type: table
  47571. #: guix-git/doc/guix.texi:31815
  47572. 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)."
  47573. msgstr ""
  47574. #. type: defvr
  47575. #: guix-git/doc/guix.texi:31822
  47576. #, no-wrap
  47577. msgid "{Scheme Variable} ganeti-rapi-service-type"
  47578. msgstr ""
  47579. #. type: defvr
  47580. #: guix-git/doc/guix.texi:31826
  47581. 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."
  47582. msgstr ""
  47583. #. type: defvr
  47584. #: guix-git/doc/guix.texi:31832
  47585. 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."
  47586. msgstr ""
  47587. #. type: defvr
  47588. #: guix-git/doc/guix.texi:31834
  47589. msgid "The value of this service must be a @code{ganeti-rapi-configuration} object."
  47590. msgstr ""
  47591. #. type: deftp
  47592. #: guix-git/doc/guix.texi:31836
  47593. #, no-wrap
  47594. msgid "{Data Type} ganeti-rapi-configuration"
  47595. msgstr ""
  47596. #. type: deftp
  47597. #: guix-git/doc/guix.texi:31838
  47598. msgid "This is the configuration for the @code{ganeti-rapi} service."
  47599. msgstr ""
  47600. #. type: item
  47601. #: guix-git/doc/guix.texi:31843
  47602. #, fuzzy, no-wrap
  47603. msgid "@code{require-authentication?} (default: @code{#f})"
  47604. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  47605. #. type: table
  47606. #: guix-git/doc/guix.texi:31845
  47607. msgid "Whether to require authentication even for read-only operations."
  47608. msgstr ""
  47609. #. type: item
  47610. #: guix-git/doc/guix.texi:31846
  47611. #, fuzzy, no-wrap
  47612. msgid "@code{port} (default: @code{5080})"
  47613. msgstr "@code{port}(默认值:@code{22})"
  47614. #. type: table
  47615. #: guix-git/doc/guix.texi:31848
  47616. msgid "The TCP port on which to listen to API requests."
  47617. msgstr ""
  47618. #. type: table
  47619. #: guix-git/doc/guix.texi:31852
  47620. msgid "The network address that the service will bind to. By default it listens on all configured addresses."
  47621. msgstr ""
  47622. #. type: table
  47623. #: guix-git/doc/guix.texi:31856
  47624. msgid "When set, it must specify a specific network interface such as @code{eth0} that the daemon will bind to."
  47625. msgstr ""
  47626. #. type: table
  47627. #: guix-git/doc/guix.texi:31861
  47628. msgid "The maximum number of simultaneous client requests to handle. Further connections are allowed, but no responses are sent until enough connections have closed."
  47629. msgstr ""
  47630. #. type: table
  47631. #: guix-git/doc/guix.texi:31864
  47632. msgid "Whether to use SSL/TLS encryption on the RAPI port."
  47633. msgstr ""
  47634. #. type: defvr
  47635. #: guix-git/doc/guix.texi:31878
  47636. #, no-wrap
  47637. msgid "{Scheme Variable} ganeti-kvmd-service-type"
  47638. msgstr ""
  47639. #. type: defvr
  47640. #: guix-git/doc/guix.texi:31886
  47641. 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."
  47642. msgstr ""
  47643. #. type: defvr
  47644. #: guix-git/doc/guix.texi:31888
  47645. msgid "It takes a @code{ganeti-kvmd-configuration} object."
  47646. msgstr ""
  47647. #. type: deftp
  47648. #: guix-git/doc/guix.texi:31890
  47649. #, no-wrap
  47650. msgid "{Data Type} ganeti-kvmd-configuration"
  47651. msgstr ""
  47652. #. type: defvr
  47653. #: guix-git/doc/guix.texi:31902
  47654. #, no-wrap
  47655. msgid "{Scheme Variable} ganeti-mond-service-type"
  47656. msgstr ""
  47657. #. type: defvr
  47658. #: guix-git/doc/guix.texi:31906
  47659. 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."
  47660. msgstr ""
  47661. #. type: defvr
  47662. #: guix-git/doc/guix.texi:31908
  47663. msgid "It takes a @code{ganeti-mond-configuration} object."
  47664. msgstr ""
  47665. #. type: deftp
  47666. #: guix-git/doc/guix.texi:31910
  47667. #, no-wrap
  47668. msgid "{Data Type} ganeti-mond-configuration"
  47669. msgstr ""
  47670. #. type: item
  47671. #: guix-git/doc/guix.texi:31916
  47672. #, fuzzy, no-wrap
  47673. msgid "@code{port} (default: @code{1815})"
  47674. msgstr "@code{port}(默认值:@code{22})"
  47675. #. type: table
  47676. #: guix-git/doc/guix.texi:31918 guix-git/doc/guix.texi:31944
  47677. msgid "The port on which the daemon will listen."
  47678. msgstr ""
  47679. #. type: table
  47680. #: guix-git/doc/guix.texi:31922
  47681. msgid "The network address that the daemon will bind to. By default it binds to all available interfaces."
  47682. msgstr ""
  47683. #. type: defvr
  47684. #: guix-git/doc/guix.texi:31929
  47685. #, no-wrap
  47686. msgid "{Scheme Variable} ganeti-metad-service-type"
  47687. msgstr ""
  47688. #. type: defvr
  47689. #: guix-git/doc/guix.texi:31932
  47690. msgid "@command{ganeti-metad} is an optional daemon that can be used to provide information about the cluster to instances or OS install scripts."
  47691. msgstr ""
  47692. #. type: defvr
  47693. #: guix-git/doc/guix.texi:31934
  47694. msgid "It takes a @code{ganeti-metad-configuration} object."
  47695. msgstr ""
  47696. #. type: deftp
  47697. #: guix-git/doc/guix.texi:31936
  47698. #, fuzzy, no-wrap
  47699. msgid "{Data Type} ganeti-metad-configuration"
  47700. msgstr "{数据类型} build-machine"
  47701. #. type: table
  47702. #: guix-git/doc/guix.texi:31948
  47703. msgid "If set, the daemon will bind to this address only. If left unset, the behavior depends on the cluster configuration."
  47704. msgstr ""
  47705. #. type: defvr
  47706. #: guix-git/doc/guix.texi:31955
  47707. #, no-wrap
  47708. msgid "{Scheme Variable} ganeti-watcher-service-type"
  47709. msgstr ""
  47710. #. type: defvr
  47711. #: guix-git/doc/guix.texi:31963
  47712. 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."
  47713. msgstr ""
  47714. #. type: defvr
  47715. #: guix-git/doc/guix.texi:31965
  47716. msgid "It can be paused on all nodes with @command{gnt-cluster watcher pause}."
  47717. msgstr ""
  47718. #. type: defvr
  47719. #: guix-git/doc/guix.texi:31967
  47720. msgid "The service takes a @code{ganeti-watcher-configuration} object."
  47721. msgstr ""
  47722. #. type: deftp
  47723. #: guix-git/doc/guix.texi:31969
  47724. #, no-wrap
  47725. msgid "{Data Type} ganeti-watcher-configuration"
  47726. msgstr ""
  47727. #. type: item
  47728. #: guix-git/doc/guix.texi:31975
  47729. #, no-wrap
  47730. msgid "@code{schedule} (default: @code{'(next-second-from (next-minute (range 0 60 5)))})"
  47731. msgstr ""
  47732. #. type: table
  47733. #: guix-git/doc/guix.texi:31977
  47734. msgid "How often to run the script. The default is every five minutes."
  47735. msgstr ""
  47736. #. type: item
  47737. #: guix-git/doc/guix.texi:31978
  47738. #, fuzzy, no-wrap
  47739. msgid "@code{rapi-ip} (default: @code{#f})"
  47740. msgstr "@code{cleanup-hook}(默认值:@code{#f})"
  47741. #. type: table
  47742. #: guix-git/doc/guix.texi:31981
  47743. 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."
  47744. msgstr ""
  47745. #. type: item
  47746. #: guix-git/doc/guix.texi:31982
  47747. #, fuzzy, no-wrap
  47748. msgid "@code{job-age} (default: @code{(* 6 3600)})"
  47749. msgstr "@code{features} (@code{'()})"
  47750. #. type: table
  47751. #: guix-git/doc/guix.texi:31985
  47752. msgid "Archive cluster jobs older than this age, specified in seconds. The default is 6 hours. This keeps @command{gnt-job list} manageable."
  47753. msgstr ""
  47754. #. type: item
  47755. #: guix-git/doc/guix.texi:31986
  47756. #, fuzzy, no-wrap
  47757. msgid "@code{verify-disks?} (default: @code{#t})"
  47758. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  47759. #. type: table
  47760. #: guix-git/doc/guix.texi:31990
  47761. 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."
  47762. msgstr ""
  47763. #. type: table
  47764. #: guix-git/doc/guix.texi:31993
  47765. msgid "When @code{#t}, the script performs additional logging for debugging purposes."
  47766. msgstr ""
  47767. #. type: defvr
  47768. #: guix-git/doc/guix.texi:31997
  47769. #, no-wrap
  47770. msgid "{Scheme Variable} ganeti-cleaner-service-type"
  47771. msgstr ""
  47772. #. type: defvr
  47773. #: guix-git/doc/guix.texi:32005
  47774. 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."
  47775. msgstr ""
  47776. #. type: defvr
  47777. #: guix-git/doc/guix.texi:32007
  47778. msgid "It takes a @code{ganeti-cleaner-configuration} object."
  47779. msgstr ""
  47780. #. type: deftp
  47781. #: guix-git/doc/guix.texi:32009
  47782. #, no-wrap
  47783. msgid "{Data Type} ganeti-cleaner-configuration"
  47784. msgstr ""
  47785. #. type: table
  47786. #: guix-git/doc/guix.texi:32014
  47787. msgid "The @code{ganeti} package to use for the @command{gnt-cleaner} command."
  47788. msgstr ""
  47789. #. type: item
  47790. #: guix-git/doc/guix.texi:32015
  47791. #, fuzzy, no-wrap
  47792. msgid "@code{master-schedule} (default: @code{\"45 1 * * *\"})"
  47793. msgstr "@code{speed}(默认值:@code{1.0})"
  47794. #. type: table
  47795. #: guix-git/doc/guix.texi:32018
  47796. msgid "How often to run the master cleaning job. The default is once per day, at 01:45:00."
  47797. msgstr ""
  47798. #. type: item
  47799. #: guix-git/doc/guix.texi:32019
  47800. #, fuzzy, no-wrap
  47801. msgid "@code{node-schedule} (default: @code{\"45 2 * * *\"})"
  47802. msgstr "@code{display}(默认值:@code{\":0\"})"
  47803. #. type: table
  47804. #: guix-git/doc/guix.texi:32022
  47805. msgid "How often to run the node cleaning job. The default is once per day, at 02:45:00."
  47806. msgstr ""
  47807. #. type: Plain text
  47808. #: guix-git/doc/guix.texi:32036
  47809. 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}."
  47810. msgstr ""
  47811. #. type: deffn
  47812. #: guix-git/doc/guix.texi:32037
  47813. #, no-wrap
  47814. msgid "{Scheme Procedure} git-daemon-service [#:config (git-daemon-configuration)]"
  47815. msgstr ""
  47816. #. type: deffn
  47817. #: guix-git/doc/guix.texi:32041
  47818. msgid "Return a service that runs @command{git daemon}, a simple TCP server to expose repositories over the Git protocol for anonymous access."
  47819. msgstr ""
  47820. #. type: deffn
  47821. #: guix-git/doc/guix.texi:32047
  47822. 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}."
  47823. msgstr ""
  47824. #. type: deftp
  47825. #: guix-git/doc/guix.texi:32050
  47826. #, no-wrap
  47827. msgid "{Data Type} git-daemon-configuration"
  47828. msgstr ""
  47829. #. type: deftp
  47830. #: guix-git/doc/guix.texi:32052
  47831. msgid "Data type representing the configuration for @code{git-daemon-service}."
  47832. msgstr ""
  47833. #. type: item
  47834. #: guix-git/doc/guix.texi:32054
  47835. #, fuzzy, no-wrap
  47836. msgid "@code{package} (default: @code{git})"
  47837. msgstr "@code{mate}(默认值:@code{mate})"
  47838. #. type: table
  47839. #: guix-git/doc/guix.texi:32056 guix-git/doc/guix.texi:32116
  47840. msgid "Package object of the Git distributed version control system."
  47841. msgstr ""
  47842. #. type: item
  47843. #: guix-git/doc/guix.texi:32057 guix-git/doc/guix.texi:32120
  47844. #, fuzzy, no-wrap
  47845. msgid "@code{export-all?} (default: @code{#f})"
  47846. msgstr "@code{port}(默认值:@code{22})"
  47847. #. type: table
  47848. #: guix-git/doc/guix.texi:32060
  47849. msgid "Whether to allow access for all Git repositories, even if they do not have the @file{git-daemon-export-ok} file."
  47850. msgstr ""
  47851. #. type: item
  47852. #: guix-git/doc/guix.texi:32061
  47853. #, no-wrap
  47854. msgid "@code{base-path} (default: @file{/srv/git})"
  47855. msgstr ""
  47856. #. type: table
  47857. #: guix-git/doc/guix.texi:32067
  47858. 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}."
  47859. msgstr ""
  47860. #. type: item
  47861. #: guix-git/doc/guix.texi:32068
  47862. #, fuzzy, no-wrap
  47863. msgid "@code{user-path} (default: @code{#f})"
  47864. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  47865. #. type: table
  47866. #: guix-git/doc/guix.texi:32076
  47867. 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}."
  47868. msgstr ""
  47869. #. type: item
  47870. #: guix-git/doc/guix.texi:32077
  47871. #, fuzzy, no-wrap
  47872. msgid "@code{listen} (default: @code{'()})"
  47873. msgstr "@code{features} (@code{'()})"
  47874. #. type: table
  47875. #: guix-git/doc/guix.texi:32080
  47876. msgid "Whether to listen on specific IP addresses or hostnames, defaults to all."
  47877. msgstr ""
  47878. #. type: item
  47879. #: guix-git/doc/guix.texi:32081
  47880. #, fuzzy, no-wrap
  47881. msgid "@code{port} (default: @code{#f})"
  47882. msgstr "@code{port}(默认值:@code{22})"
  47883. #. type: table
  47884. #: guix-git/doc/guix.texi:32083
  47885. msgid "Whether to listen on an alternative port, which defaults to 9418."
  47886. msgstr ""
  47887. #. type: item
  47888. #: guix-git/doc/guix.texi:32084
  47889. #, fuzzy, no-wrap
  47890. msgid "@code{whitelist} (default: @code{'()})"
  47891. msgstr "@code{features} (@code{'()})"
  47892. #. type: table
  47893. #: guix-git/doc/guix.texi:32086
  47894. msgid "If not empty, only allow access to this list of directories."
  47895. msgstr ""
  47896. #. type: table
  47897. #: guix-git/doc/guix.texi:32090
  47898. msgid "Extra options will be passed to @command{git daemon}, please run @command{man git-daemon} for more information."
  47899. msgstr ""
  47900. #. type: Plain text
  47901. #: guix-git/doc/guix.texi:32104
  47902. 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."
  47903. msgstr ""
  47904. #. type: Plain text
  47905. #: guix-git/doc/guix.texi:32107
  47906. msgid "Guix has a separate configuration data type for serving Git repositories over HTTP."
  47907. msgstr ""
  47908. #. type: deftp
  47909. #: guix-git/doc/guix.texi:32108
  47910. #, no-wrap
  47911. msgid "{Data Type} git-http-configuration"
  47912. msgstr ""
  47913. #. type: deftp
  47914. #: guix-git/doc/guix.texi:32112
  47915. 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}."
  47916. msgstr ""
  47917. #. type: item
  47918. #: guix-git/doc/guix.texi:32114
  47919. #, no-wrap
  47920. msgid "@code{package} (default: @var{git})"
  47921. msgstr ""
  47922. #. type: item
  47923. #: guix-git/doc/guix.texi:32117
  47924. #, no-wrap
  47925. msgid "@code{git-root} (default: @file{/srv/git})"
  47926. msgstr ""
  47927. #. type: table
  47928. #: guix-git/doc/guix.texi:32119
  47929. msgid "Directory containing the Git repositories to expose to the world."
  47930. msgstr ""
  47931. #. type: table
  47932. #: guix-git/doc/guix.texi:32123
  47933. 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."
  47934. msgstr ""
  47935. #. type: item
  47936. #: guix-git/doc/guix.texi:32124
  47937. #, fuzzy, no-wrap
  47938. msgid "@code{uri-path} (default: @samp{/git/})"
  47939. msgstr "@code{mate}(默认值:@code{mate})"
  47940. #. type: table
  47941. #: guix-git/doc/guix.texi:32129
  47942. 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."
  47943. msgstr ""
  47944. #. type: item
  47945. #: guix-git/doc/guix.texi:32130
  47946. #, no-wrap
  47947. msgid "@code{fcgiwrap-socket} (default: @code{127.0.0.1:9000})"
  47948. msgstr ""
  47949. #. type: table
  47950. #: guix-git/doc/guix.texi:32133
  47951. msgid "The socket on which the @code{fcgiwrap} daemon is listening. @xref{Web Services}."
  47952. msgstr ""
  47953. #. type: Plain text
  47954. #: guix-git/doc/guix.texi:32140
  47955. 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."
  47956. msgstr ""
  47957. #. type: deffn
  47958. #: guix-git/doc/guix.texi:32141
  47959. #, no-wrap
  47960. msgid "{Scheme Procedure} git-http-nginx-location-configuration @"
  47961. msgstr ""
  47962. #. type: deffn
  47963. #: guix-git/doc/guix.texi:32146
  47964. 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:"
  47965. msgstr ""
  47966. #. type: lisp
  47967. #: guix-git/doc/guix.texi:32163
  47968. #, no-wrap
  47969. msgid ""
  47970. "(service nginx-service-type\n"
  47971. " (nginx-configuration\n"
  47972. " (server-blocks\n"
  47973. " (list\n"
  47974. " (nginx-server-configuration\n"
  47975. " (listen '(\"443 ssl\"))\n"
  47976. " (server-name \"git.my-host.org\")\n"
  47977. " (ssl-certificate\n"
  47978. " \"/etc/letsencrypt/live/git.my-host.org/fullchain.pem\")\n"
  47979. " (ssl-certificate-key\n"
  47980. " \"/etc/letsencrypt/live/git.my-host.org/privkey.pem\")\n"
  47981. " (locations\n"
  47982. " (list\n"
  47983. " (git-http-nginx-location-configuration\n"
  47984. " (git-http-configuration (uri-path \"/\"))))))))))\n"
  47985. msgstr ""
  47986. #. type: deffn
  47987. #: guix-git/doc/guix.texi:32170
  47988. 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}."
  47989. msgstr ""
  47990. #. type: subsubheading
  47991. #: guix-git/doc/guix.texi:32172
  47992. #, no-wrap
  47993. msgid "Cgit Service"
  47994. msgstr ""
  47995. #. type: cindex
  47996. #: guix-git/doc/guix.texi:32174
  47997. #, no-wrap
  47998. msgid "Cgit service"
  47999. msgstr ""
  48000. #. type: cindex
  48001. #: guix-git/doc/guix.texi:32175
  48002. #, no-wrap
  48003. msgid "Git, web interface"
  48004. msgstr ""
  48005. #. type: Plain text
  48006. #: guix-git/doc/guix.texi:32178
  48007. msgid "@uref{https://git.zx2c4.com/cgit/, Cgit} is a web frontend for Git repositories written in C."
  48008. msgstr ""
  48009. #. type: Plain text
  48010. #: guix-git/doc/guix.texi:32181
  48011. msgid "The following example will configure the service with default values. By default, Cgit can be accessed on port 80 (@code{http://localhost:80})."
  48012. msgstr ""
  48013. #. type: lisp
  48014. #: guix-git/doc/guix.texi:32184
  48015. #, no-wrap
  48016. msgid "(service cgit-service-type)\n"
  48017. msgstr ""
  48018. #. type: Plain text
  48019. #: guix-git/doc/guix.texi:32188
  48020. msgid "The @code{file-object} type designates either a file-like object (@pxref{G-Expressions, file-like objects}) or a string."
  48021. msgstr ""
  48022. #. type: Plain text
  48023. #: guix-git/doc/guix.texi:32192
  48024. msgid "Available @code{cgit-configuration} fields are:"
  48025. msgstr ""
  48026. #. type: deftypevr
  48027. #: guix-git/doc/guix.texi:32193
  48028. #, no-wrap
  48029. msgid "{@code{cgit-configuration} parameter} package package"
  48030. msgstr ""
  48031. #. type: deftypevr
  48032. #: guix-git/doc/guix.texi:32195
  48033. msgid "The CGIT package."
  48034. msgstr ""
  48035. #. type: deftypevr
  48036. #: guix-git/doc/guix.texi:32198
  48037. #, no-wrap
  48038. msgid "{@code{cgit-configuration} parameter} nginx-server-configuration-list nginx"
  48039. msgstr ""
  48040. #. type: deftypevr
  48041. #: guix-git/doc/guix.texi:32200
  48042. msgid "NGINX configuration."
  48043. msgstr ""
  48044. #. type: deftypevr
  48045. #: guix-git/doc/guix.texi:32203
  48046. #, no-wrap
  48047. msgid "{@code{cgit-configuration} parameter} file-object about-filter"
  48048. msgstr ""
  48049. #. type: deftypevr
  48050. #: guix-git/doc/guix.texi:32206
  48051. msgid "Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository)."
  48052. msgstr ""
  48053. #. type: deftypevr
  48054. #: guix-git/doc/guix.texi:32211
  48055. #, no-wrap
  48056. msgid "{@code{cgit-configuration} parameter} string agefile"
  48057. msgstr ""
  48058. #. type: deftypevr
  48059. #: guix-git/doc/guix.texi:32214
  48060. 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."
  48061. msgstr ""
  48062. #. type: deftypevr
  48063. #: guix-git/doc/guix.texi:32219
  48064. #, no-wrap
  48065. msgid "{@code{cgit-configuration} parameter} file-object auth-filter"
  48066. msgstr ""
  48067. #. type: deftypevr
  48068. #: guix-git/doc/guix.texi:32222
  48069. msgid "Specifies a command that will be invoked for authenticating repository access."
  48070. msgstr ""
  48071. #. type: deftypevr
  48072. #: guix-git/doc/guix.texi:32227
  48073. #, no-wrap
  48074. msgid "{@code{cgit-configuration} parameter} string branch-sort"
  48075. msgstr ""
  48076. #. type: deftypevr
  48077. #: guix-git/doc/guix.texi:32230
  48078. 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."
  48079. msgstr ""
  48080. #. type: deftypevr
  48081. #: guix-git/doc/guix.texi:32232
  48082. msgid "Defaults to @samp{\"name\"}."
  48083. msgstr ""
  48084. #. type: deftypevr
  48085. #: guix-git/doc/guix.texi:32235
  48086. #, no-wrap
  48087. msgid "{@code{cgit-configuration} parameter} string cache-root"
  48088. msgstr ""
  48089. #. type: deftypevr
  48090. #: guix-git/doc/guix.texi:32237
  48091. msgid "Path used to store the cgit cache entries."
  48092. msgstr ""
  48093. #. type: deftypevr
  48094. #: guix-git/doc/guix.texi:32239
  48095. msgid "Defaults to @samp{\"/var/cache/cgit\"}."
  48096. msgstr ""
  48097. #. type: deftypevr
  48098. #: guix-git/doc/guix.texi:32242
  48099. #, no-wrap
  48100. msgid "{@code{cgit-configuration} parameter} integer cache-static-ttl"
  48101. msgstr ""
  48102. #. type: deftypevr
  48103. #: guix-git/doc/guix.texi:32245
  48104. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed with a fixed SHA1."
  48105. msgstr ""
  48106. #. type: deftypevr
  48107. #: guix-git/doc/guix.texi:32247 guix-git/doc/guix.texi:32690
  48108. msgid "Defaults to @samp{-1}."
  48109. msgstr ""
  48110. #. type: deftypevr
  48111. #: guix-git/doc/guix.texi:32250
  48112. #, no-wrap
  48113. msgid "{@code{cgit-configuration} parameter} integer cache-dynamic-ttl"
  48114. msgstr ""
  48115. #. type: deftypevr
  48116. #: guix-git/doc/guix.texi:32253
  48117. msgid "Number which specifies the time-to-live, in minutes, for the cached version of repository pages accessed without a fixed SHA1."
  48118. msgstr ""
  48119. #. type: deftypevr
  48120. #: guix-git/doc/guix.texi:32258
  48121. #, no-wrap
  48122. msgid "{@code{cgit-configuration} parameter} integer cache-repo-ttl"
  48123. msgstr ""
  48124. #. type: deftypevr
  48125. #: guix-git/doc/guix.texi:32261
  48126. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository summary page."
  48127. msgstr ""
  48128. #. type: deftypevr
  48129. #: guix-git/doc/guix.texi:32266
  48130. #, no-wrap
  48131. msgid "{@code{cgit-configuration} parameter} integer cache-root-ttl"
  48132. msgstr ""
  48133. #. type: deftypevr
  48134. #: guix-git/doc/guix.texi:32269
  48135. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository index page."
  48136. msgstr ""
  48137. #. type: deftypevr
  48138. #: guix-git/doc/guix.texi:32274
  48139. #, no-wrap
  48140. msgid "{@code{cgit-configuration} parameter} integer cache-scanrc-ttl"
  48141. msgstr ""
  48142. #. type: deftypevr
  48143. #: guix-git/doc/guix.texi:32277
  48144. msgid "Number which specifies the time-to-live, in minutes, for the result of scanning a path for Git repositories."
  48145. msgstr ""
  48146. #. type: deftypevr
  48147. #: guix-git/doc/guix.texi:32282
  48148. #, no-wrap
  48149. msgid "{@code{cgit-configuration} parameter} integer cache-about-ttl"
  48150. msgstr ""
  48151. #. type: deftypevr
  48152. #: guix-git/doc/guix.texi:32285
  48153. msgid "Number which specifies the time-to-live, in minutes, for the cached version of the repository about page."
  48154. msgstr ""
  48155. #. type: deftypevr
  48156. #: guix-git/doc/guix.texi:32290
  48157. #, no-wrap
  48158. msgid "{@code{cgit-configuration} parameter} integer cache-snapshot-ttl"
  48159. msgstr ""
  48160. #. type: deftypevr
  48161. #: guix-git/doc/guix.texi:32293
  48162. msgid "Number which specifies the time-to-live, in minutes, for the cached version of snapshots."
  48163. msgstr ""
  48164. #. type: deftypevr
  48165. #: guix-git/doc/guix.texi:32298
  48166. #, no-wrap
  48167. msgid "{@code{cgit-configuration} parameter} integer cache-size"
  48168. msgstr ""
  48169. #. type: deftypevr
  48170. #: guix-git/doc/guix.texi:32301
  48171. msgid "The maximum number of entries in the cgit cache. When set to @samp{0}, caching is disabled."
  48172. msgstr ""
  48173. #. type: deftypevr
  48174. #: guix-git/doc/guix.texi:32306
  48175. #, no-wrap
  48176. msgid "{@code{cgit-configuration} parameter} boolean case-sensitive-sort?"
  48177. msgstr ""
  48178. #. type: deftypevr
  48179. #: guix-git/doc/guix.texi:32308
  48180. msgid "Sort items in the repo list case sensitively."
  48181. msgstr ""
  48182. #. type: deftypevr
  48183. #: guix-git/doc/guix.texi:32313
  48184. #, no-wrap
  48185. msgid "{@code{cgit-configuration} parameter} list clone-prefix"
  48186. msgstr ""
  48187. #. type: deftypevr
  48188. #: guix-git/doc/guix.texi:32316
  48189. msgid "List of common prefixes which, when combined with a repository URL, generates valid clone URLs for the repository."
  48190. msgstr ""
  48191. #. type: deftypevr
  48192. #: guix-git/doc/guix.texi:32321
  48193. #, no-wrap
  48194. msgid "{@code{cgit-configuration} parameter} list clone-url"
  48195. msgstr ""
  48196. #. type: deftypevr
  48197. #: guix-git/doc/guix.texi:32323
  48198. msgid "List of @code{clone-url} templates."
  48199. msgstr ""
  48200. #. type: deftypevr
  48201. #: guix-git/doc/guix.texi:32328
  48202. #, no-wrap
  48203. msgid "{@code{cgit-configuration} parameter} file-object commit-filter"
  48204. msgstr ""
  48205. #. type: deftypevr
  48206. #: guix-git/doc/guix.texi:32330
  48207. msgid "Command which will be invoked to format commit messages."
  48208. msgstr ""
  48209. #. type: deftypevr
  48210. #: guix-git/doc/guix.texi:32335
  48211. #, no-wrap
  48212. msgid "{@code{cgit-configuration} parameter} string commit-sort"
  48213. msgstr ""
  48214. #. type: deftypevr
  48215. #: guix-git/doc/guix.texi:32339 guix-git/doc/guix.texi:32897
  48216. 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."
  48217. msgstr ""
  48218. #. type: deftypevr
  48219. #: guix-git/doc/guix.texi:32341
  48220. msgid "Defaults to @samp{\"git log\"}."
  48221. msgstr ""
  48222. #. type: deftypevr
  48223. #: guix-git/doc/guix.texi:32344
  48224. #, no-wrap
  48225. msgid "{@code{cgit-configuration} parameter} file-object css"
  48226. msgstr ""
  48227. #. type: deftypevr
  48228. #: guix-git/doc/guix.texi:32346
  48229. msgid "URL which specifies the css document to include in all cgit pages."
  48230. msgstr ""
  48231. #. type: deftypevr
  48232. #: guix-git/doc/guix.texi:32348
  48233. msgid "Defaults to @samp{\"/share/cgit/cgit.css\"}."
  48234. msgstr ""
  48235. #. type: deftypevr
  48236. #: guix-git/doc/guix.texi:32351
  48237. #, no-wrap
  48238. msgid "{@code{cgit-configuration} parameter} file-object email-filter"
  48239. msgstr ""
  48240. #. type: deftypevr
  48241. #: guix-git/doc/guix.texi:32355
  48242. 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."
  48243. msgstr ""
  48244. #. type: deftypevr
  48245. #: guix-git/doc/guix.texi:32360
  48246. #, no-wrap
  48247. msgid "{@code{cgit-configuration} parameter} boolean embedded?"
  48248. msgstr ""
  48249. #. type: deftypevr
  48250. #: guix-git/doc/guix.texi:32363
  48251. msgid "Flag which, when set to @samp{#t}, will make cgit generate a HTML fragment suitable for embedding in other HTML pages."
  48252. msgstr ""
  48253. #. type: deftypevr
  48254. #: guix-git/doc/guix.texi:32368
  48255. #, no-wrap
  48256. msgid "{@code{cgit-configuration} parameter} boolean enable-commit-graph?"
  48257. msgstr ""
  48258. #. type: deftypevr
  48259. #: guix-git/doc/guix.texi:32372
  48260. 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."
  48261. msgstr ""
  48262. #. type: deftypevr
  48263. #: guix-git/doc/guix.texi:32377
  48264. #, no-wrap
  48265. msgid "{@code{cgit-configuration} parameter} boolean enable-filter-overrides?"
  48266. msgstr ""
  48267. #. type: deftypevr
  48268. #: guix-git/doc/guix.texi:32380
  48269. msgid "Flag which, when set to @samp{#t}, allows all filter settings to be overridden in repository-specific cgitrc files."
  48270. msgstr ""
  48271. #. type: deftypevr
  48272. #: guix-git/doc/guix.texi:32385
  48273. #, no-wrap
  48274. msgid "{@code{cgit-configuration} parameter} boolean enable-follow-links?"
  48275. msgstr ""
  48276. #. type: deftypevr
  48277. #: guix-git/doc/guix.texi:32388
  48278. msgid "Flag which, when set to @samp{#t}, allows users to follow a file in the log view."
  48279. msgstr ""
  48280. #. type: deftypevr
  48281. #: guix-git/doc/guix.texi:32393
  48282. #, no-wrap
  48283. msgid "{@code{cgit-configuration} parameter} boolean enable-http-clone?"
  48284. msgstr ""
  48285. #. type: deftypevr
  48286. #: guix-git/doc/guix.texi:32396
  48287. msgid "If set to @samp{#t}, cgit will act as an dumb HTTP endpoint for Git clones."
  48288. msgstr ""
  48289. #. type: deftypevr
  48290. #: guix-git/doc/guix.texi:32401
  48291. #, no-wrap
  48292. msgid "{@code{cgit-configuration} parameter} boolean enable-index-links?"
  48293. msgstr ""
  48294. #. type: deftypevr
  48295. #: guix-git/doc/guix.texi:32404
  48296. msgid "Flag which, when set to @samp{#t}, will make cgit generate extra links \"summary\", \"commit\", \"tree\" for each repo in the repository index."
  48297. msgstr ""
  48298. #. type: deftypevr
  48299. #: guix-git/doc/guix.texi:32409
  48300. #, no-wrap
  48301. msgid "{@code{cgit-configuration} parameter} boolean enable-index-owner?"
  48302. msgstr ""
  48303. #. type: deftypevr
  48304. #: guix-git/doc/guix.texi:32412
  48305. msgid "Flag which, when set to @samp{#t}, will make cgit display the owner of each repo in the repository index."
  48306. msgstr ""
  48307. #. type: deftypevr
  48308. #: guix-git/doc/guix.texi:32417
  48309. #, no-wrap
  48310. msgid "{@code{cgit-configuration} parameter} boolean enable-log-filecount?"
  48311. msgstr ""
  48312. #. type: deftypevr
  48313. #: guix-git/doc/guix.texi:32420
  48314. 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."
  48315. msgstr ""
  48316. #. type: deftypevr
  48317. #: guix-git/doc/guix.texi:32425
  48318. #, no-wrap
  48319. msgid "{@code{cgit-configuration} parameter} boolean enable-log-linecount?"
  48320. msgstr ""
  48321. #. type: deftypevr
  48322. #: guix-git/doc/guix.texi:32428
  48323. 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."
  48324. msgstr ""
  48325. #. type: deftypevr
  48326. #: guix-git/doc/guix.texi:32433
  48327. #, no-wrap
  48328. msgid "{@code{cgit-configuration} parameter} boolean enable-remote-branches?"
  48329. msgstr ""
  48330. #. type: deftypevr
  48331. #: guix-git/doc/guix.texi:32436 guix-git/doc/guix.texi:32960
  48332. msgid "Flag which, when set to @code{#t}, will make cgit display remote branches in the summary and refs views."
  48333. msgstr ""
  48334. #. type: deftypevr
  48335. #: guix-git/doc/guix.texi:32441
  48336. #, no-wrap
  48337. msgid "{@code{cgit-configuration} parameter} boolean enable-subject-links?"
  48338. msgstr ""
  48339. #. type: deftypevr
  48340. #: guix-git/doc/guix.texi:32445
  48341. 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."
  48342. msgstr ""
  48343. #. type: deftypevr
  48344. #: guix-git/doc/guix.texi:32450
  48345. #, no-wrap
  48346. msgid "{@code{cgit-configuration} parameter} boolean enable-html-serving?"
  48347. msgstr ""
  48348. #. type: deftypevr
  48349. #: guix-git/doc/guix.texi:32454
  48350. 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."
  48351. msgstr ""
  48352. #. type: deftypevr
  48353. #: guix-git/doc/guix.texi:32459
  48354. #, no-wrap
  48355. msgid "{@code{cgit-configuration} parameter} boolean enable-tree-linenumbers?"
  48356. msgstr ""
  48357. #. type: deftypevr
  48358. #: guix-git/doc/guix.texi:32462
  48359. msgid "Flag which, when set to @samp{#t}, will make cgit generate linenumber links for plaintext blobs printed in the tree view."
  48360. msgstr ""
  48361. #. type: deftypevr
  48362. #: guix-git/doc/guix.texi:32467
  48363. #, no-wrap
  48364. msgid "{@code{cgit-configuration} parameter} boolean enable-git-config?"
  48365. msgstr ""
  48366. #. type: deftypevr
  48367. #: guix-git/doc/guix.texi:32470
  48368. msgid "Flag which, when set to @samp{#f}, will allow cgit to use Git config to set any repo specific settings."
  48369. msgstr ""
  48370. #. type: deftypevr
  48371. #: guix-git/doc/guix.texi:32475
  48372. #, no-wrap
  48373. msgid "{@code{cgit-configuration} parameter} file-object favicon"
  48374. msgstr ""
  48375. #. type: deftypevr
  48376. #: guix-git/doc/guix.texi:32477
  48377. msgid "URL used as link to a shortcut icon for cgit."
  48378. msgstr ""
  48379. #. type: deftypevr
  48380. #: guix-git/doc/guix.texi:32479
  48381. msgid "Defaults to @samp{\"/favicon.ico\"}."
  48382. msgstr ""
  48383. #. type: deftypevr
  48384. #: guix-git/doc/guix.texi:32482
  48385. #, no-wrap
  48386. msgid "{@code{cgit-configuration} parameter} string footer"
  48387. msgstr ""
  48388. #. type: deftypevr
  48389. #: guix-git/doc/guix.texi:32486
  48390. 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)."
  48391. msgstr ""
  48392. #. type: deftypevr
  48393. #: guix-git/doc/guix.texi:32491
  48394. #, no-wrap
  48395. msgid "{@code{cgit-configuration} parameter} string head-include"
  48396. msgstr ""
  48397. #. type: deftypevr
  48398. #: guix-git/doc/guix.texi:32494
  48399. msgid "The content of the file specified with this option will be included verbatim in the HTML HEAD section on all pages."
  48400. msgstr ""
  48401. #. type: deftypevr
  48402. #: guix-git/doc/guix.texi:32499
  48403. #, no-wrap
  48404. msgid "{@code{cgit-configuration} parameter} string header"
  48405. msgstr ""
  48406. #. type: deftypevr
  48407. #: guix-git/doc/guix.texi:32502
  48408. msgid "The content of the file specified with this option will be included verbatim at the top of all pages."
  48409. msgstr ""
  48410. #. type: deftypevr
  48411. #: guix-git/doc/guix.texi:32507
  48412. #, no-wrap
  48413. msgid "{@code{cgit-configuration} parameter} file-object include"
  48414. msgstr ""
  48415. #. type: deftypevr
  48416. #: guix-git/doc/guix.texi:32510
  48417. msgid "Name of a configfile to include before the rest of the current config- file is parsed."
  48418. msgstr ""
  48419. #. type: deftypevr
  48420. #: guix-git/doc/guix.texi:32515
  48421. #, no-wrap
  48422. msgid "{@code{cgit-configuration} parameter} string index-header"
  48423. msgstr ""
  48424. #. type: deftypevr
  48425. #: guix-git/doc/guix.texi:32518
  48426. msgid "The content of the file specified with this option will be included verbatim above the repository index."
  48427. msgstr ""
  48428. #. type: deftypevr
  48429. #: guix-git/doc/guix.texi:32523
  48430. #, no-wrap
  48431. msgid "{@code{cgit-configuration} parameter} string index-info"
  48432. msgstr ""
  48433. #. type: deftypevr
  48434. #: guix-git/doc/guix.texi:32526
  48435. msgid "The content of the file specified with this option will be included verbatim below the heading on the repository index page."
  48436. msgstr ""
  48437. #. type: deftypevr
  48438. #: guix-git/doc/guix.texi:32531
  48439. #, no-wrap
  48440. msgid "{@code{cgit-configuration} parameter} boolean local-time?"
  48441. msgstr ""
  48442. #. type: deftypevr
  48443. #: guix-git/doc/guix.texi:32534
  48444. msgid "Flag which, if set to @samp{#t}, makes cgit print commit and tag times in the servers timezone."
  48445. msgstr ""
  48446. #. type: deftypevr
  48447. #: guix-git/doc/guix.texi:32539
  48448. #, no-wrap
  48449. msgid "{@code{cgit-configuration} parameter} file-object logo"
  48450. msgstr ""
  48451. #. type: deftypevr
  48452. #: guix-git/doc/guix.texi:32542
  48453. msgid "URL which specifies the source of an image which will be used as a logo on all cgit pages."
  48454. msgstr ""
  48455. #. type: deftypevr
  48456. #: guix-git/doc/guix.texi:32544
  48457. msgid "Defaults to @samp{\"/share/cgit/cgit.png\"}."
  48458. msgstr ""
  48459. #. type: deftypevr
  48460. #: guix-git/doc/guix.texi:32547
  48461. #, no-wrap
  48462. msgid "{@code{cgit-configuration} parameter} string logo-link"
  48463. msgstr ""
  48464. #. type: deftypevr
  48465. #: guix-git/doc/guix.texi:32549 guix-git/doc/guix.texi:33006
  48466. msgid "URL loaded when clicking on the cgit logo image."
  48467. msgstr ""
  48468. #. type: deftypevr
  48469. #: guix-git/doc/guix.texi:32554
  48470. #, no-wrap
  48471. msgid "{@code{cgit-configuration} parameter} file-object owner-filter"
  48472. msgstr ""
  48473. #. type: deftypevr
  48474. #: guix-git/doc/guix.texi:32557
  48475. msgid "Command which will be invoked to format the Owner column of the main page."
  48476. msgstr ""
  48477. #. type: deftypevr
  48478. #: guix-git/doc/guix.texi:32562
  48479. #, no-wrap
  48480. msgid "{@code{cgit-configuration} parameter} integer max-atom-items"
  48481. msgstr ""
  48482. #. type: deftypevr
  48483. #: guix-git/doc/guix.texi:32564
  48484. msgid "Number of items to display in atom feeds view."
  48485. msgstr ""
  48486. #. type: deftypevr
  48487. #: guix-git/doc/guix.texi:32569
  48488. #, no-wrap
  48489. msgid "{@code{cgit-configuration} parameter} integer max-commit-count"
  48490. msgstr ""
  48491. #. type: deftypevr
  48492. #: guix-git/doc/guix.texi:32571
  48493. msgid "Number of entries to list per page in \"log\" view."
  48494. msgstr ""
  48495. #. type: deftypevr
  48496. #: guix-git/doc/guix.texi:32576
  48497. #, no-wrap
  48498. msgid "{@code{cgit-configuration} parameter} integer max-message-length"
  48499. msgstr ""
  48500. #. type: deftypevr
  48501. #: guix-git/doc/guix.texi:32578
  48502. msgid "Number of commit message characters to display in \"log\" view."
  48503. msgstr ""
  48504. #. type: deftypevr
  48505. #: guix-git/doc/guix.texi:32580 guix-git/doc/guix.texi:32596
  48506. msgid "Defaults to @samp{80}."
  48507. msgstr ""
  48508. #. type: deftypevr
  48509. #: guix-git/doc/guix.texi:32583
  48510. #, no-wrap
  48511. msgid "{@code{cgit-configuration} parameter} integer max-repo-count"
  48512. msgstr ""
  48513. #. type: deftypevr
  48514. #: guix-git/doc/guix.texi:32586
  48515. msgid "Specifies the number of entries to list per page on the repository index page."
  48516. msgstr ""
  48517. #. type: deftypevr
  48518. #: guix-git/doc/guix.texi:32591
  48519. #, no-wrap
  48520. msgid "{@code{cgit-configuration} parameter} integer max-repodesc-length"
  48521. msgstr ""
  48522. #. type: deftypevr
  48523. #: guix-git/doc/guix.texi:32594
  48524. msgid "Specifies the maximum number of repo description characters to display on the repository index page."
  48525. msgstr ""
  48526. #. type: deftypevr
  48527. #: guix-git/doc/guix.texi:32599
  48528. #, no-wrap
  48529. msgid "{@code{cgit-configuration} parameter} integer max-blob-size"
  48530. msgstr ""
  48531. #. type: deftypevr
  48532. #: guix-git/doc/guix.texi:32601
  48533. msgid "Specifies the maximum size of a blob to display HTML for in KBytes."
  48534. msgstr ""
  48535. #. type: deftypevr
  48536. #: guix-git/doc/guix.texi:32606
  48537. #, no-wrap
  48538. msgid "{@code{cgit-configuration} parameter} string max-stats"
  48539. msgstr ""
  48540. #. type: deftypevr
  48541. #: guix-git/doc/guix.texi:32609
  48542. msgid "Maximum statistics period. Valid values are @samp{week},@samp{month}, @samp{quarter} and @samp{year}."
  48543. msgstr ""
  48544. #. type: deftypevr
  48545. #: guix-git/doc/guix.texi:32614
  48546. #, no-wrap
  48547. msgid "{@code{cgit-configuration} parameter} mimetype-alist mimetype"
  48548. msgstr ""
  48549. #. type: deftypevr
  48550. #: guix-git/doc/guix.texi:32616
  48551. msgid "Mimetype for the specified filename extension."
  48552. msgstr ""
  48553. #. type: deftypevr
  48554. #: guix-git/doc/guix.texi:32620
  48555. 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\"))}."
  48556. msgstr ""
  48557. #. type: deftypevr
  48558. #: guix-git/doc/guix.texi:32623
  48559. #, no-wrap
  48560. msgid "{@code{cgit-configuration} parameter} file-object mimetype-file"
  48561. msgstr ""
  48562. #. type: deftypevr
  48563. #: guix-git/doc/guix.texi:32625
  48564. msgid "Specifies the file to use for automatic mimetype lookup."
  48565. msgstr ""
  48566. #. type: deftypevr
  48567. #: guix-git/doc/guix.texi:32630
  48568. #, no-wrap
  48569. msgid "{@code{cgit-configuration} parameter} string module-link"
  48570. msgstr ""
  48571. #. type: deftypevr
  48572. #: guix-git/doc/guix.texi:32633
  48573. msgid "Text which will be used as the formatstring for a hyperlink when a submodule is printed in a directory listing."
  48574. msgstr ""
  48575. #. type: deftypevr
  48576. #: guix-git/doc/guix.texi:32638
  48577. #, no-wrap
  48578. msgid "{@code{cgit-configuration} parameter} boolean nocache?"
  48579. msgstr ""
  48580. #. type: deftypevr
  48581. #: guix-git/doc/guix.texi:32640
  48582. msgid "If set to the value @samp{#t} caching will be disabled."
  48583. msgstr ""
  48584. #. type: deftypevr
  48585. #: guix-git/doc/guix.texi:32645
  48586. #, no-wrap
  48587. msgid "{@code{cgit-configuration} parameter} boolean noplainemail?"
  48588. msgstr ""
  48589. #. type: deftypevr
  48590. #: guix-git/doc/guix.texi:32648
  48591. msgid "If set to @samp{#t} showing full author email addresses will be disabled."
  48592. msgstr ""
  48593. #. type: deftypevr
  48594. #: guix-git/doc/guix.texi:32653
  48595. #, no-wrap
  48596. msgid "{@code{cgit-configuration} parameter} boolean noheader?"
  48597. msgstr ""
  48598. #. type: deftypevr
  48599. #: guix-git/doc/guix.texi:32656
  48600. msgid "Flag which, when set to @samp{#t}, will make cgit omit the standard header on all pages."
  48601. msgstr ""
  48602. #. type: deftypevr
  48603. #: guix-git/doc/guix.texi:32661
  48604. #, no-wrap
  48605. msgid "{@code{cgit-configuration} parameter} project-list project-list"
  48606. msgstr ""
  48607. #. type: deftypevr
  48608. #: guix-git/doc/guix.texi:32665
  48609. 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."
  48610. msgstr ""
  48611. #. type: deftypevr
  48612. #: guix-git/doc/guix.texi:32670
  48613. #, no-wrap
  48614. msgid "{@code{cgit-configuration} parameter} file-object readme"
  48615. msgstr ""
  48616. #. type: deftypevr
  48617. #: guix-git/doc/guix.texi:32672
  48618. msgid "Text which will be used as default value for @code{cgit-repo-readme}."
  48619. msgstr ""
  48620. #. type: deftypevr
  48621. #: guix-git/doc/guix.texi:32677
  48622. #, no-wrap
  48623. msgid "{@code{cgit-configuration} parameter} boolean remove-suffix?"
  48624. msgstr ""
  48625. #. type: deftypevr
  48626. #: guix-git/doc/guix.texi:32681
  48627. 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."
  48628. msgstr ""
  48629. #. type: deftypevr
  48630. #: guix-git/doc/guix.texi:32686
  48631. #, no-wrap
  48632. msgid "{@code{cgit-configuration} parameter} integer renamelimit"
  48633. msgstr ""
  48634. #. type: deftypevr
  48635. #: guix-git/doc/guix.texi:32688
  48636. msgid "Maximum number of files to consider when detecting renames."
  48637. msgstr ""
  48638. #. type: deftypevr
  48639. #: guix-git/doc/guix.texi:32693
  48640. #, no-wrap
  48641. msgid "{@code{cgit-configuration} parameter} string repository-sort"
  48642. msgstr ""
  48643. #. type: deftypevr
  48644. #: guix-git/doc/guix.texi:32695
  48645. msgid "The way in which repositories in each section are sorted."
  48646. msgstr ""
  48647. #. type: deftypevr
  48648. #: guix-git/doc/guix.texi:32700
  48649. #, no-wrap
  48650. msgid "{@code{cgit-configuration} parameter} robots-list robots"
  48651. msgstr ""
  48652. #. type: deftypevr
  48653. #: guix-git/doc/guix.texi:32702
  48654. msgid "Text used as content for the @code{robots} meta-tag."
  48655. msgstr ""
  48656. #. type: deftypevr
  48657. #: guix-git/doc/guix.texi:32704
  48658. msgid "Defaults to @samp{(\"noindex\" \"nofollow\")}."
  48659. msgstr ""
  48660. #. type: deftypevr
  48661. #: guix-git/doc/guix.texi:32707
  48662. #, no-wrap
  48663. msgid "{@code{cgit-configuration} parameter} string root-desc"
  48664. msgstr ""
  48665. #. type: deftypevr
  48666. #: guix-git/doc/guix.texi:32709
  48667. msgid "Text printed below the heading on the repository index page."
  48668. msgstr ""
  48669. #. type: deftypevr
  48670. #: guix-git/doc/guix.texi:32711
  48671. msgid "Defaults to @samp{\"a fast webinterface for the git dscm\"}."
  48672. msgstr ""
  48673. #. type: deftypevr
  48674. #: guix-git/doc/guix.texi:32714
  48675. #, no-wrap
  48676. msgid "{@code{cgit-configuration} parameter} string root-readme"
  48677. msgstr ""
  48678. #. type: deftypevr
  48679. #: guix-git/doc/guix.texi:32717
  48680. msgid "The content of the file specified with this option will be included verbatim below the ``about'' link on the repository index page."
  48681. msgstr ""
  48682. #. type: deftypevr
  48683. #: guix-git/doc/guix.texi:32722
  48684. #, no-wrap
  48685. msgid "{@code{cgit-configuration} parameter} string root-title"
  48686. msgstr ""
  48687. #. type: deftypevr
  48688. #: guix-git/doc/guix.texi:32724
  48689. msgid "Text printed as heading on the repository index page."
  48690. msgstr ""
  48691. #. type: deftypevr
  48692. #: guix-git/doc/guix.texi:32729
  48693. #, no-wrap
  48694. msgid "{@code{cgit-configuration} parameter} boolean scan-hidden-path"
  48695. msgstr ""
  48696. #. type: deftypevr
  48697. #: guix-git/doc/guix.texi:32735
  48698. 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."
  48699. msgstr ""
  48700. #. type: deftypevr
  48701. #: guix-git/doc/guix.texi:32740
  48702. #, no-wrap
  48703. msgid "{@code{cgit-configuration} parameter} list snapshots"
  48704. msgstr ""
  48705. #. type: deftypevr
  48706. #: guix-git/doc/guix.texi:32743
  48707. msgid "Text which specifies the default set of snapshot formats that cgit generates links for."
  48708. msgstr ""
  48709. #. type: deftypevr
  48710. #: guix-git/doc/guix.texi:32748
  48711. #, no-wrap
  48712. msgid "{@code{cgit-configuration} parameter} repository-directory repository-directory"
  48713. msgstr ""
  48714. #. type: deftypevr
  48715. #: guix-git/doc/guix.texi:32751
  48716. msgid "Name of the directory to scan for repositories (represents @code{scan-path})."
  48717. msgstr ""
  48718. #. type: deftypevr
  48719. #: guix-git/doc/guix.texi:32753
  48720. msgid "Defaults to @samp{\"/srv/git\"}."
  48721. msgstr ""
  48722. #. type: deftypevr
  48723. #: guix-git/doc/guix.texi:32756
  48724. #, no-wrap
  48725. msgid "{@code{cgit-configuration} parameter} string section"
  48726. msgstr ""
  48727. #. type: deftypevr
  48728. #: guix-git/doc/guix.texi:32759 guix-git/doc/guix.texi:33075
  48729. msgid "The name of the current repository section - all repositories defined after this option will inherit the current section name."
  48730. msgstr ""
  48731. #. type: deftypevr
  48732. #: guix-git/doc/guix.texi:32764
  48733. #, no-wrap
  48734. msgid "{@code{cgit-configuration} parameter} string section-sort"
  48735. msgstr ""
  48736. #. type: deftypevr
  48737. #: guix-git/doc/guix.texi:32767
  48738. msgid "Flag which, when set to @samp{1}, will sort the sections on the repository listing by name."
  48739. msgstr ""
  48740. #. type: deftypevr
  48741. #: guix-git/doc/guix.texi:32772
  48742. #, no-wrap
  48743. msgid "{@code{cgit-configuration} parameter} integer section-from-path"
  48744. msgstr ""
  48745. #. type: deftypevr
  48746. #: guix-git/doc/guix.texi:32775
  48747. 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."
  48748. msgstr ""
  48749. #. type: deftypevr
  48750. #: guix-git/doc/guix.texi:32780
  48751. #, no-wrap
  48752. msgid "{@code{cgit-configuration} parameter} boolean side-by-side-diffs?"
  48753. msgstr ""
  48754. #. type: deftypevr
  48755. #: guix-git/doc/guix.texi:32783
  48756. msgid "If set to @samp{#t} shows side-by-side diffs instead of unidiffs per default."
  48757. msgstr ""
  48758. #. type: deftypevr
  48759. #: guix-git/doc/guix.texi:32788
  48760. #, no-wrap
  48761. msgid "{@code{cgit-configuration} parameter} file-object source-filter"
  48762. msgstr ""
  48763. #. type: deftypevr
  48764. #: guix-git/doc/guix.texi:32791
  48765. msgid "Specifies a command which will be invoked to format plaintext blobs in the tree view."
  48766. msgstr ""
  48767. #. type: deftypevr
  48768. #: guix-git/doc/guix.texi:32796
  48769. #, no-wrap
  48770. msgid "{@code{cgit-configuration} parameter} integer summary-branches"
  48771. msgstr ""
  48772. #. type: deftypevr
  48773. #: guix-git/doc/guix.texi:32799
  48774. msgid "Specifies the number of branches to display in the repository ``summary'' view."
  48775. msgstr ""
  48776. #. type: deftypevr
  48777. #: guix-git/doc/guix.texi:32804
  48778. #, no-wrap
  48779. msgid "{@code{cgit-configuration} parameter} integer summary-log"
  48780. msgstr ""
  48781. #. type: deftypevr
  48782. #: guix-git/doc/guix.texi:32807
  48783. msgid "Specifies the number of log entries to display in the repository ``summary'' view."
  48784. msgstr ""
  48785. #. type: deftypevr
  48786. #: guix-git/doc/guix.texi:32812
  48787. #, no-wrap
  48788. msgid "{@code{cgit-configuration} parameter} integer summary-tags"
  48789. msgstr ""
  48790. #. type: deftypevr
  48791. #: guix-git/doc/guix.texi:32815
  48792. msgid "Specifies the number of tags to display in the repository ``summary'' view."
  48793. msgstr ""
  48794. #. type: deftypevr
  48795. #: guix-git/doc/guix.texi:32820
  48796. #, no-wrap
  48797. msgid "{@code{cgit-configuration} parameter} string strict-export"
  48798. msgstr ""
  48799. #. type: deftypevr
  48800. #: guix-git/doc/guix.texi:32823
  48801. msgid "Filename which, if specified, needs to be present within the repository for cgit to allow access to that repository."
  48802. msgstr ""
  48803. #. type: deftypevr
  48804. #: guix-git/doc/guix.texi:32828
  48805. #, no-wrap
  48806. msgid "{@code{cgit-configuration} parameter} string virtual-root"
  48807. msgstr ""
  48808. #. type: deftypevr
  48809. #: guix-git/doc/guix.texi:32830
  48810. msgid "URL which, if specified, will be used as root for all cgit links."
  48811. msgstr ""
  48812. #. type: deftypevr
  48813. #: guix-git/doc/guix.texi:32832
  48814. msgid "Defaults to @samp{\"/\"}."
  48815. msgstr ""
  48816. #. type: deftypevr
  48817. #: guix-git/doc/guix.texi:32835
  48818. #, no-wrap
  48819. msgid "{@code{cgit-configuration} parameter} repository-cgit-configuration-list repositories"
  48820. msgstr ""
  48821. #. type: deftypevr
  48822. #: guix-git/doc/guix.texi:32837
  48823. msgid "A list of @dfn{cgit-repo} records to use with config."
  48824. msgstr ""
  48825. #. type: deftypevr
  48826. #: guix-git/doc/guix.texi:32841
  48827. msgid "Available @code{repository-cgit-configuration} fields are:"
  48828. msgstr ""
  48829. #. type: deftypevr
  48830. #: guix-git/doc/guix.texi:32842
  48831. #, no-wrap
  48832. msgid "{@code{repository-cgit-configuration} parameter} repo-list snapshots"
  48833. msgstr ""
  48834. #. type: deftypevr
  48835. #: guix-git/doc/guix.texi:32845
  48836. msgid "A mask of snapshot formats for this repo that cgit generates links for, restricted by the global @code{snapshots} setting."
  48837. msgstr ""
  48838. #. type: deftypevr
  48839. #: guix-git/doc/guix.texi:32850
  48840. #, no-wrap
  48841. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object source-filter"
  48842. msgstr ""
  48843. #. type: deftypevr
  48844. #: guix-git/doc/guix.texi:32852
  48845. msgid "Override the default @code{source-filter}."
  48846. msgstr ""
  48847. #. type: deftypevr
  48848. #: guix-git/doc/guix.texi:32857
  48849. #, no-wrap
  48850. msgid "{@code{repository-cgit-configuration} parameter} repo-string url"
  48851. msgstr ""
  48852. #. type: deftypevr
  48853. #: guix-git/doc/guix.texi:32859
  48854. msgid "The relative URL used to access the repository."
  48855. msgstr ""
  48856. #. type: deftypevr
  48857. #: guix-git/doc/guix.texi:32864
  48858. #, no-wrap
  48859. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object about-filter"
  48860. msgstr ""
  48861. #. type: deftypevr
  48862. #: guix-git/doc/guix.texi:32866
  48863. msgid "Override the default @code{about-filter}."
  48864. msgstr ""
  48865. #. type: deftypevr
  48866. #: guix-git/doc/guix.texi:32871
  48867. #, no-wrap
  48868. msgid "{@code{repository-cgit-configuration} parameter} repo-string branch-sort"
  48869. msgstr ""
  48870. #. type: deftypevr
  48871. #: guix-git/doc/guix.texi:32874
  48872. 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."
  48873. msgstr ""
  48874. #. type: deftypevr
  48875. #: guix-git/doc/guix.texi:32879
  48876. #, no-wrap
  48877. msgid "{@code{repository-cgit-configuration} parameter} repo-list clone-url"
  48878. msgstr ""
  48879. #. type: deftypevr
  48880. #: guix-git/doc/guix.texi:32881
  48881. msgid "A list of URLs which can be used to clone repo."
  48882. msgstr ""
  48883. #. type: deftypevr
  48884. #: guix-git/doc/guix.texi:32886
  48885. #, no-wrap
  48886. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object commit-filter"
  48887. msgstr ""
  48888. #. type: deftypevr
  48889. #: guix-git/doc/guix.texi:32888
  48890. msgid "Override the default @code{commit-filter}."
  48891. msgstr ""
  48892. #. type: deftypevr
  48893. #: guix-git/doc/guix.texi:32893
  48894. #, no-wrap
  48895. msgid "{@code{repository-cgit-configuration} parameter} repo-string commit-sort"
  48896. msgstr ""
  48897. #. type: deftypevr
  48898. #: guix-git/doc/guix.texi:32902
  48899. #, no-wrap
  48900. msgid "{@code{repository-cgit-configuration} parameter} repo-string defbranch"
  48901. msgstr ""
  48902. #. type: deftypevr
  48903. #: guix-git/doc/guix.texi:32907
  48904. 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."
  48905. msgstr ""
  48906. #. type: deftypevr
  48907. #: guix-git/doc/guix.texi:32912
  48908. #, no-wrap
  48909. msgid "{@code{repository-cgit-configuration} parameter} repo-string desc"
  48910. msgstr ""
  48911. #. type: deftypevr
  48912. #: guix-git/doc/guix.texi:32914
  48913. msgid "The value to show as repository description."
  48914. msgstr ""
  48915. #. type: deftypevr
  48916. #: guix-git/doc/guix.texi:32919
  48917. #, no-wrap
  48918. msgid "{@code{repository-cgit-configuration} parameter} repo-string homepage"
  48919. msgstr ""
  48920. #. type: deftypevr
  48921. #: guix-git/doc/guix.texi:32921
  48922. msgid "The value to show as repository homepage."
  48923. msgstr ""
  48924. #. type: deftypevr
  48925. #: guix-git/doc/guix.texi:32926
  48926. #, no-wrap
  48927. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object email-filter"
  48928. msgstr ""
  48929. #. type: deftypevr
  48930. #: guix-git/doc/guix.texi:32928
  48931. msgid "Override the default @code{email-filter}."
  48932. msgstr ""
  48933. #. type: deftypevr
  48934. #: guix-git/doc/guix.texi:32933
  48935. #, no-wrap
  48936. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-commit-graph?"
  48937. msgstr ""
  48938. #. type: deftypevr
  48939. #: guix-git/doc/guix.texi:32936
  48940. msgid "A flag which can be used to disable the global setting @code{enable-commit-graph?}."
  48941. msgstr ""
  48942. #. type: deftypevr
  48943. #: guix-git/doc/guix.texi:32941
  48944. #, no-wrap
  48945. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-filecount?"
  48946. msgstr ""
  48947. #. type: deftypevr
  48948. #: guix-git/doc/guix.texi:32944
  48949. msgid "A flag which can be used to disable the global setting @code{enable-log-filecount?}."
  48950. msgstr ""
  48951. #. type: deftypevr
  48952. #: guix-git/doc/guix.texi:32949
  48953. #, no-wrap
  48954. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-log-linecount?"
  48955. msgstr ""
  48956. #. type: deftypevr
  48957. #: guix-git/doc/guix.texi:32952
  48958. msgid "A flag which can be used to disable the global setting @code{enable-log-linecount?}."
  48959. msgstr ""
  48960. #. type: deftypevr
  48961. #: guix-git/doc/guix.texi:32957
  48962. #, no-wrap
  48963. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-remote-branches?"
  48964. msgstr ""
  48965. #. type: deftypevr
  48966. #: guix-git/doc/guix.texi:32965
  48967. #, no-wrap
  48968. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-subject-links?"
  48969. msgstr ""
  48970. #. type: deftypevr
  48971. #: guix-git/doc/guix.texi:32968
  48972. msgid "A flag which can be used to override the global setting @code{enable-subject-links?}."
  48973. msgstr ""
  48974. #. type: deftypevr
  48975. #: guix-git/doc/guix.texi:32973
  48976. #, no-wrap
  48977. msgid "{@code{repository-cgit-configuration} parameter} maybe-repo-boolean enable-html-serving?"
  48978. msgstr ""
  48979. #. type: deftypevr
  48980. #: guix-git/doc/guix.texi:32976
  48981. msgid "A flag which can be used to override the global setting @code{enable-html-serving?}."
  48982. msgstr ""
  48983. #. type: deftypevr
  48984. #: guix-git/doc/guix.texi:32981
  48985. #, no-wrap
  48986. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean hide?"
  48987. msgstr ""
  48988. #. type: deftypevr
  48989. #: guix-git/doc/guix.texi:32984
  48990. msgid "Flag which, when set to @code{#t}, hides the repository from the repository index."
  48991. msgstr ""
  48992. #. type: deftypevr
  48993. #: guix-git/doc/guix.texi:32989
  48994. #, no-wrap
  48995. msgid "{@code{repository-cgit-configuration} parameter} repo-boolean ignore?"
  48996. msgstr ""
  48997. #. type: deftypevr
  48998. #: guix-git/doc/guix.texi:32991
  48999. msgid "Flag which, when set to @samp{#t}, ignores the repository."
  49000. msgstr ""
  49001. #. type: deftypevr
  49002. #: guix-git/doc/guix.texi:32996
  49003. #, no-wrap
  49004. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object logo"
  49005. msgstr ""
  49006. #. type: deftypevr
  49007. #: guix-git/doc/guix.texi:32999
  49008. msgid "URL which specifies the source of an image which will be used as a logo on this repo’s pages."
  49009. msgstr ""
  49010. #. type: deftypevr
  49011. #: guix-git/doc/guix.texi:33004
  49012. #, no-wrap
  49013. msgid "{@code{repository-cgit-configuration} parameter} repo-string logo-link"
  49014. msgstr ""
  49015. #. type: deftypevr
  49016. #: guix-git/doc/guix.texi:33011
  49017. #, no-wrap
  49018. msgid "{@code{repository-cgit-configuration} parameter} repo-file-object owner-filter"
  49019. msgstr ""
  49020. #. type: deftypevr
  49021. #: guix-git/doc/guix.texi:33013
  49022. msgid "Override the default @code{owner-filter}."
  49023. msgstr ""
  49024. #. type: deftypevr
  49025. #: guix-git/doc/guix.texi:33018
  49026. #, no-wrap
  49027. msgid "{@code{repository-cgit-configuration} parameter} repo-string module-link"
  49028. msgstr ""
  49029. #. type: deftypevr
  49030. #: guix-git/doc/guix.texi:33022
  49031. 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."
  49032. msgstr ""
  49033. #. type: deftypevr
  49034. #: guix-git/doc/guix.texi:33027
  49035. #, no-wrap
  49036. msgid "{@code{repository-cgit-configuration} parameter} module-link-path module-link-path"
  49037. msgstr ""
  49038. #. type: deftypevr
  49039. #: guix-git/doc/guix.texi:33031
  49040. 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."
  49041. msgstr ""
  49042. #. type: deftypevr
  49043. #: guix-git/doc/guix.texi:33036
  49044. #, no-wrap
  49045. msgid "{@code{repository-cgit-configuration} parameter} repo-string max-stats"
  49046. msgstr ""
  49047. #. type: deftypevr
  49048. #: guix-git/doc/guix.texi:33038
  49049. msgid "Override the default maximum statistics period."
  49050. msgstr ""
  49051. #. type: deftypevr
  49052. #: guix-git/doc/guix.texi:33043
  49053. #, no-wrap
  49054. msgid "{@code{repository-cgit-configuration} parameter} repo-string name"
  49055. msgstr ""
  49056. #. type: deftypevr
  49057. #: guix-git/doc/guix.texi:33045
  49058. msgid "The value to show as repository name."
  49059. msgstr ""
  49060. #. type: deftypevr
  49061. #: guix-git/doc/guix.texi:33050
  49062. #, no-wrap
  49063. msgid "{@code{repository-cgit-configuration} parameter} repo-string owner"
  49064. msgstr ""
  49065. #. type: deftypevr
  49066. #: guix-git/doc/guix.texi:33052
  49067. msgid "A value used to identify the owner of the repository."
  49068. msgstr ""
  49069. #. type: deftypevr
  49070. #: guix-git/doc/guix.texi:33057
  49071. #, no-wrap
  49072. msgid "{@code{repository-cgit-configuration} parameter} repo-string path"
  49073. msgstr ""
  49074. #. type: deftypevr
  49075. #: guix-git/doc/guix.texi:33059
  49076. msgid "An absolute path to the repository directory."
  49077. msgstr ""
  49078. #. type: deftypevr
  49079. #: guix-git/doc/guix.texi:33064
  49080. #, no-wrap
  49081. msgid "{@code{repository-cgit-configuration} parameter} repo-string readme"
  49082. msgstr ""
  49083. #. type: deftypevr
  49084. #: guix-git/doc/guix.texi:33067
  49085. msgid "A path (relative to repo) which specifies a file to include verbatim as the ``About'' page for this repo."
  49086. msgstr ""
  49087. #. type: deftypevr
  49088. #: guix-git/doc/guix.texi:33072
  49089. #, no-wrap
  49090. msgid "{@code{repository-cgit-configuration} parameter} repo-string section"
  49091. msgstr ""
  49092. #. type: deftypevr
  49093. #: guix-git/doc/guix.texi:33080
  49094. #, no-wrap
  49095. msgid "{@code{repository-cgit-configuration} parameter} repo-list extra-options"
  49096. msgstr ""
  49097. #. type: deftypevr
  49098. #: guix-git/doc/guix.texi:33082 guix-git/doc/guix.texi:33091
  49099. msgid "Extra options will be appended to cgitrc file."
  49100. msgstr ""
  49101. #. type: deftypevr
  49102. #: guix-git/doc/guix.texi:33089
  49103. #, no-wrap
  49104. msgid "{@code{cgit-configuration} parameter} list extra-options"
  49105. msgstr ""
  49106. #. type: Plain text
  49107. #: guix-git/doc/guix.texi:33103
  49108. 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."
  49109. msgstr ""
  49110. #. type: Plain text
  49111. #: guix-git/doc/guix.texi:33105
  49112. msgid "Available @code{opaque-cgit-configuration} fields are:"
  49113. msgstr ""
  49114. #. type: deftypevr
  49115. #: guix-git/doc/guix.texi:33106
  49116. #, no-wrap
  49117. msgid "{@code{opaque-cgit-configuration} parameter} package cgit"
  49118. msgstr ""
  49119. #. type: deftypevr
  49120. #: guix-git/doc/guix.texi:33108
  49121. msgid "The cgit package."
  49122. msgstr ""
  49123. #. type: deftypevr
  49124. #: guix-git/doc/guix.texi:33110
  49125. #, no-wrap
  49126. msgid "{@code{opaque-cgit-configuration} parameter} string string"
  49127. msgstr ""
  49128. #. type: deftypevr
  49129. #: guix-git/doc/guix.texi:33112
  49130. msgid "The contents of the @code{cgitrc}, as a string."
  49131. msgstr ""
  49132. #. type: Plain text
  49133. #: guix-git/doc/guix.texi:33116
  49134. msgid "For example, if your @code{cgitrc} is just the empty string, you could instantiate a cgit service like this:"
  49135. msgstr ""
  49136. #. type: lisp
  49137. #: guix-git/doc/guix.texi:33121
  49138. #, no-wrap
  49139. msgid ""
  49140. "(service cgit-service-type\n"
  49141. " (opaque-cgit-configuration\n"
  49142. " (cgitrc \"\")))\n"
  49143. msgstr ""
  49144. #. type: subsubheading
  49145. #: guix-git/doc/guix.texi:33123
  49146. #, no-wrap
  49147. msgid "Gitolite Service"
  49148. msgstr ""
  49149. #. type: cindex
  49150. #: guix-git/doc/guix.texi:33125
  49151. #, no-wrap
  49152. msgid "Gitolite service"
  49153. msgstr ""
  49154. #. type: cindex
  49155. #: guix-git/doc/guix.texi:33126
  49156. #, no-wrap
  49157. msgid "Git, hosting"
  49158. msgstr ""
  49159. #. type: Plain text
  49160. #: guix-git/doc/guix.texi:33129
  49161. msgid "@uref{https://gitolite.com/gitolite/, Gitolite} is a tool for hosting Git repositories on a central server."
  49162. msgstr ""
  49163. #. type: Plain text
  49164. #: guix-git/doc/guix.texi:33132
  49165. msgid "Gitolite can handle multiple repositories and users, and supports flexible configuration of the permissions for the users on the repositories."
  49166. msgstr ""
  49167. #. type: Plain text
  49168. #: guix-git/doc/guix.texi:33135
  49169. msgid "The following example will configure Gitolite using the default @code{git} user, and the provided SSH public key."
  49170. msgstr ""
  49171. #. type: lisp
  49172. #: guix-git/doc/guix.texi:33142
  49173. #, no-wrap
  49174. msgid ""
  49175. "(service gitolite-service-type\n"
  49176. " (gitolite-configuration\n"
  49177. " (admin-pubkey (plain-file\n"
  49178. " \"yourname.pub\"\n"
  49179. " \"ssh-rsa AAAA... guix@@example.com\"))))\n"
  49180. msgstr ""
  49181. #. type: Plain text
  49182. #: guix-git/doc/guix.texi:33147
  49183. 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."
  49184. msgstr ""
  49185. #. type: example
  49186. #: guix-git/doc/guix.texi:33150
  49187. #, no-wrap
  49188. msgid "git clone git@@example.com:gitolite-admin\n"
  49189. msgstr ""
  49190. #. type: Plain text
  49191. #: guix-git/doc/guix.texi:33156
  49192. 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''."
  49193. msgstr ""
  49194. #. type: deftp
  49195. #: guix-git/doc/guix.texi:33157
  49196. #, no-wrap
  49197. msgid "{Data Type} gitolite-configuration"
  49198. msgstr ""
  49199. #. type: deftp
  49200. #: guix-git/doc/guix.texi:33159
  49201. msgid "Data type representing the configuration for @code{gitolite-service-type}."
  49202. msgstr ""
  49203. #. type: item
  49204. #: guix-git/doc/guix.texi:33161
  49205. #, no-wrap
  49206. msgid "@code{package} (default: @var{gitolite})"
  49207. msgstr ""
  49208. #. type: table
  49209. #: guix-git/doc/guix.texi:33163
  49210. msgid "Gitolite package to use."
  49211. msgstr ""
  49212. #. type: item
  49213. #: guix-git/doc/guix.texi:33164
  49214. #, no-wrap
  49215. msgid "@code{user} (default: @var{git})"
  49216. msgstr ""
  49217. #. type: table
  49218. #: guix-git/doc/guix.texi:33167
  49219. msgid "User to use for Gitolite. This will be user that you use when accessing Gitolite over SSH."
  49220. msgstr ""
  49221. #. type: item
  49222. #: guix-git/doc/guix.texi:33168
  49223. #, no-wrap
  49224. msgid "@code{group} (default: @var{git})"
  49225. msgstr ""
  49226. #. type: table
  49227. #: guix-git/doc/guix.texi:33170
  49228. msgid "Group to use for Gitolite."
  49229. msgstr ""
  49230. #. type: item
  49231. #: guix-git/doc/guix.texi:33171
  49232. #, no-wrap
  49233. msgid "@code{home-directory} (default: @var{\"/var/lib/gitolite\"})"
  49234. msgstr ""
  49235. #. type: table
  49236. #: guix-git/doc/guix.texi:33173
  49237. msgid "Directory in which to store the Gitolite configuration and repositories."
  49238. msgstr ""
  49239. #. type: item
  49240. #: guix-git/doc/guix.texi:33174
  49241. #, no-wrap
  49242. msgid "@code{rc-file} (default: @var{(gitolite-rc-file)})"
  49243. msgstr ""
  49244. #. type: table
  49245. #: guix-git/doc/guix.texi:33177
  49246. msgid "A ``file-like'' object (@pxref{G-Expressions, file-like objects}), representing the configuration for Gitolite."
  49247. msgstr ""
  49248. #. type: item
  49249. #: guix-git/doc/guix.texi:33178
  49250. #, no-wrap
  49251. msgid "@code{admin-pubkey} (default: @var{#f})"
  49252. msgstr ""
  49253. #. type: table
  49254. #: guix-git/doc/guix.texi:33182
  49255. 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."
  49256. msgstr ""
  49257. #. type: table
  49258. #: guix-git/doc/guix.texi:33184
  49259. msgid "To specify the SSH key as a string, use the @code{plain-file} function."
  49260. msgstr ""
  49261. #. type: lisp
  49262. #: guix-git/doc/guix.texi:33187
  49263. #, no-wrap
  49264. msgid "(plain-file \"yourname.pub\" \"ssh-rsa AAAA... guix@@example.com\")\n"
  49265. msgstr ""
  49266. #. type: deftp
  49267. #: guix-git/doc/guix.texi:33192
  49268. #, no-wrap
  49269. msgid "{Data Type} gitolite-rc-file"
  49270. msgstr ""
  49271. #. type: deftp
  49272. #: guix-git/doc/guix.texi:33194
  49273. msgid "Data type representing the Gitolite RC file."
  49274. msgstr ""
  49275. #. type: item
  49276. #: guix-git/doc/guix.texi:33196
  49277. #, no-wrap
  49278. msgid "@code{umask} (default: @code{#o0077})"
  49279. msgstr ""
  49280. #. type: table
  49281. #: guix-git/doc/guix.texi:33199
  49282. msgid "This controls the permissions Gitolite sets on the repositories and their contents."
  49283. msgstr ""
  49284. #. type: table
  49285. #: guix-git/doc/guix.texi:33203
  49286. 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."
  49287. msgstr ""
  49288. #. type: item
  49289. #: guix-git/doc/guix.texi:33204
  49290. #, fuzzy, no-wrap
  49291. msgid "@code{unsafe-pattern} (default: @code{#f})"
  49292. msgstr "@code{max-journal-depth}(默认值:@code{#f})"
  49293. #. type: table
  49294. #: guix-git/doc/guix.texi:33209
  49295. msgid "An optional Perl regular expression for catching unsafe configurations in the configuration file. See @uref{https://gitolite.com/gitolite/git-config.html#compensating-for-unsafe_patt, Gitolite's documentation} for more information."
  49296. msgstr ""
  49297. #. type: table
  49298. #: guix-git/doc/guix.texi:33216
  49299. msgid "When the value is not @code{#f}, it should be a string containing a Perl regular expression, such as @samp{\"[`~#\\$\\&()|;<>]\"}, which is the default value used by gitolite. It rejects any special character in configuration that might be interpreted by a shell, which is useful when sharing the administration burden with other people that do not otherwise have shell access on the server."
  49300. msgstr ""
  49301. #. type: item
  49302. #: guix-git/doc/guix.texi:33217
  49303. #, no-wrap
  49304. msgid "@code{git-config-keys} (default: @code{\"\"})"
  49305. msgstr ""
  49306. #. type: table
  49307. #: guix-git/doc/guix.texi:33220
  49308. msgid "Gitolite allows you to set git config values using the @samp{config} keyword. This setting allows control over the config keys to accept."
  49309. msgstr ""
  49310. #. type: item
  49311. #: guix-git/doc/guix.texi:33221
  49312. #, no-wrap
  49313. msgid "@code{roles} (default: @code{'((\"READERS\" . 1) (\"WRITERS\" . ))})"
  49314. msgstr ""
  49315. #. type: table
  49316. #: guix-git/doc/guix.texi:33223
  49317. msgid "Set the role names allowed to be used by users running the perms command."
  49318. msgstr ""
  49319. #. type: item
  49320. #: guix-git/doc/guix.texi:33224
  49321. #, no-wrap
  49322. msgid "@code{enable} (default: @code{'(\"help\" \"desc\" \"info\" \"perms\" \"writable\" \"ssh-authkeys\" \"git-config\" \"daemon\" \"gitweb\")})"
  49323. msgstr ""
  49324. #. type: table
  49325. #: guix-git/doc/guix.texi:33226
  49326. msgid "This setting controls the commands and features to enable within Gitolite."
  49327. msgstr ""
  49328. #. type: subsubheading
  49329. #: guix-git/doc/guix.texi:33231
  49330. #, fuzzy, no-wrap
  49331. msgid "Gitile Service"
  49332. msgstr "邮件服务"
  49333. #. type: cindex
  49334. #: guix-git/doc/guix.texi:33233
  49335. #, fuzzy, no-wrap
  49336. msgid "Gitile service"
  49337. msgstr "邮件服务"
  49338. #. type: cindex
  49339. #: guix-git/doc/guix.texi:33234
  49340. #, no-wrap
  49341. msgid "Git, forge"
  49342. msgstr ""
  49343. #. type: Plain text
  49344. #: guix-git/doc/guix.texi:33237
  49345. msgid "@uref{https://git.lepiller.eu/gitile, Gitile} is a Git forge for viewing public git repository contents from a web browser."
  49346. msgstr ""
  49347. #. type: Plain text
  49348. #: guix-git/doc/guix.texi:33243
  49349. msgid "Gitile works best in collaboration with Gitolite, and will serve the public repositories from Gitolite by default. The service should listen only on a local port, and a webserver should be configured to serve static resources. The gitile service provides an easy way to extend the Nginx service for that purpose (@pxref{NGINX})."
  49350. msgstr ""
  49351. #. type: Plain text
  49352. #: guix-git/doc/guix.texi:33247
  49353. msgid "The following example will configure Gitile to serve repositories from a custom location, with some default messages for the home page and the footers."
  49354. msgstr ""
  49355. #. type: lisp
  49356. #: guix-git/doc/guix.texi:33270
  49357. #, no-wrap
  49358. msgid ""
  49359. "(service gitile-service-type\n"
  49360. " (gitile-configuration\n"
  49361. " (repositories \"/srv/git\")\n"
  49362. " (base-git-url \"https://myweb.site/git\")\n"
  49363. " (index-title \"My git repositories\")\n"
  49364. " (intro '((p \"This is all my public work!\")))\n"
  49365. " (footer '((p \"This is the end\")))\n"
  49366. " (nginx-server-block\n"
  49367. " (nginx-server-configuration\n"
  49368. " (ssl-certificate\n"
  49369. " \"/etc/letsencrypt/live/myweb.site/fullchain.pem\")\n"
  49370. " (ssl-certificate-key\n"
  49371. " \"/etc/letsencrypt/live/myweb.site/privkey.pem\")\n"
  49372. " (listen '(\"443 ssl http2\" \"[::]:443 ssl http2\"))\n"
  49373. " (locations\n"
  49374. " (list\n"
  49375. " ;; Allow for https anonymous fetch on /git/ urls.\n"
  49376. " (git-http-nginx-location-configuration\n"
  49377. " (git-http-configuration\n"
  49378. " (uri-path \"/git/\")\n"
  49379. " (git-root \"/var/lib/gitolite/repositories\")))))))))\n"
  49380. msgstr ""
  49381. #. type: Plain text
  49382. #: guix-git/doc/guix.texi:33279
  49383. msgid "In addition to the configuration record, you should configure your git repositories to contain some optional information. First, your public repositories need to contain the @file{git-daemon-export-ok} magic file that allows Git to export the repository. Gitile uses the presence of this file to detect public repositories it should make accessible. To do so with Gitolite for instance, modify your @file{conf/gitolite.conf} to include this in the repositories you want to make public:"
  49384. msgstr ""
  49385. #. type: example
  49386. #: guix-git/doc/guix.texi:33283
  49387. #, no-wrap
  49388. msgid ""
  49389. "repo foo\n"
  49390. " R = daemon\n"
  49391. msgstr ""
  49392. #. type: Plain text
  49393. #: guix-git/doc/guix.texi:33289
  49394. msgid "In addition, Gitile can read the repository configuration to display more information on the repository. Gitile uses the gitweb namespace for its configuration. As an example, you can use the following in your @file{conf/gitolite.conf}:"
  49395. msgstr ""
  49396. #. type: example
  49397. #: guix-git/doc/guix.texi:33296
  49398. #, no-wrap
  49399. msgid ""
  49400. "repo foo\n"
  49401. " R = daemon\n"
  49402. " desc = A long description, optionally with <i>HTML</i>, shown on the index page\n"
  49403. " config gitweb.name = The Foo Project\n"
  49404. " config gitweb.synopsis = A short description, shown on the main page of the project\n"
  49405. msgstr ""
  49406. #. type: Plain text
  49407. #: guix-git/doc/guix.texi:33302
  49408. msgid "Do not forget to commit and push these changes once you are satisfied. You may need to change your gitolite configuration to allow the previous configuration options to be set. One way to do that is to add the following service definition:"
  49409. msgstr ""
  49410. #. type: lisp
  49411. #: guix-git/doc/guix.texi:33314
  49412. #, no-wrap
  49413. msgid ""
  49414. "(service gitolite-service-type\n"
  49415. " (gitolite-configuration\n"
  49416. " (admin-pubkey (local-file \"key.pub\"))\n"
  49417. " (rc-file\n"
  49418. " (gitolite-rc-file\n"
  49419. " (umask #o0027)\n"
  49420. " ;; Allow to set any configuration key\n"
  49421. " (git-config-keys \".*\")\n"
  49422. " ;; Allow any text as a valid configuration value\n"
  49423. " (unsafe-patt \"^$\")))))\n"
  49424. msgstr ""
  49425. #. type: deftp
  49426. #: guix-git/doc/guix.texi:33316
  49427. #, fuzzy, no-wrap
  49428. msgid "{Data Type} gitile-configuration"
  49429. msgstr "管理操作系统配置。"
  49430. #. type: deftp
  49431. #: guix-git/doc/guix.texi:33318
  49432. #, fuzzy
  49433. msgid "Data type representing the configuration for @code{gitile-service-type}."
  49434. msgstr "管理操作系统配置。"
  49435. #. type: item
  49436. #: guix-git/doc/guix.texi:33320
  49437. #, fuzzy, no-wrap
  49438. msgid "@code{package} (default: @var{gitile})"
  49439. msgstr "@code{mate}(默认值:@code{mate})"
  49440. #. type: table
  49441. #: guix-git/doc/guix.texi:33322
  49442. #, fuzzy
  49443. msgid "Gitile package to use."
  49444. msgstr "软件包数据类型。"
  49445. #. type: table
  49446. #: guix-git/doc/guix.texi:33325
  49447. msgid "The host on which gitile is listening."
  49448. msgstr ""
  49449. #. type: item
  49450. #: guix-git/doc/guix.texi:33326
  49451. #, fuzzy, no-wrap
  49452. msgid "@code{port} (default: @code{8080})"
  49453. msgstr "@code{port}(默认值:@code{22})"
  49454. #. type: table
  49455. #: guix-git/doc/guix.texi:33328
  49456. msgid "The port on which gitile is listening."
  49457. msgstr ""
  49458. #. type: item
  49459. #: guix-git/doc/guix.texi:33329
  49460. #, fuzzy, no-wrap
  49461. msgid "@code{database} (default: @code{\"/var/lib/gitile/gitile-db.sql\"})"
  49462. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  49463. #. type: table
  49464. #: guix-git/doc/guix.texi:33331
  49465. #, fuzzy
  49466. msgid "The location of the database."
  49467. msgstr "远程机器的主机名。"
  49468. #. type: item
  49469. #: guix-git/doc/guix.texi:33332
  49470. #, fuzzy, no-wrap
  49471. msgid "@code{repositories} (default: @code{\"/var/lib/gitolite/repositories\"})"
  49472. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  49473. #. type: table
  49474. #: guix-git/doc/guix.texi:33336
  49475. msgid "The location of the repositories. Note that only public repositories will be shown by Gitile. To make a repository public, add an empty @file{git-daemon-export-ok} file at the root of that repository."
  49476. msgstr ""
  49477. #. type: code{#1}
  49478. #: guix-git/doc/guix.texi:33337
  49479. #, no-wrap
  49480. msgid "base-git-url"
  49481. msgstr ""
  49482. #. type: table
  49483. #: guix-git/doc/guix.texi:33339
  49484. msgid "The base git url that will be used to show clone commands."
  49485. msgstr ""
  49486. #. type: item
  49487. #: guix-git/doc/guix.texi:33340
  49488. #, fuzzy, no-wrap
  49489. msgid "@code{index-title} (default: @code{\"Index\"})"
  49490. msgstr "@code{mate}(默认值:@code{mate})"
  49491. #. type: table
  49492. #: guix-git/doc/guix.texi:33342
  49493. msgid "The page title for the index page that lists all the available repositories."
  49494. msgstr ""
  49495. #. type: item
  49496. #: guix-git/doc/guix.texi:33343
  49497. #, fuzzy, no-wrap
  49498. msgid "@code{intro} (default: @code{'()})"
  49499. msgstr "@code{features} (@code{'()})"
  49500. #. type: table
  49501. #: guix-git/doc/guix.texi:33346
  49502. msgid "The intro content, as a list of sxml expressions. This is shown above the list of repositories, on the index page."
  49503. msgstr ""
  49504. #. type: item
  49505. #: guix-git/doc/guix.texi:33347
  49506. #, fuzzy, no-wrap
  49507. msgid "@code{footer} (default: @code{'()})"
  49508. msgstr "@code{features} (@code{'()})"
  49509. #. type: table
  49510. #: guix-git/doc/guix.texi:33350
  49511. msgid "The footer content, as a list of sxml expressions. This is shown on every page served by Gitile."
  49512. msgstr ""
  49513. #. type: code{#1}
  49514. #: guix-git/doc/guix.texi:33351
  49515. #, no-wrap
  49516. msgid "nginx-server-block"
  49517. msgstr ""
  49518. #. type: table
  49519. #: guix-git/doc/guix.texi:33354
  49520. msgid "An nginx server block that will be extended and used as a reverse proxy by Gitile to serve its pages, and as a normal web server to serve its assets."
  49521. msgstr ""
  49522. #. type: table
  49523. #: guix-git/doc/guix.texi:33358
  49524. msgid "You can use this block to add more custom URLs to your domain, such as a @code{/git/} URL for anonymous clones, or serving any other files you would like to serve."
  49525. msgstr ""
  49526. #. type: subsubheading
  49527. #: guix-git/doc/guix.texi:33365
  49528. #, no-wrap
  49529. msgid "The Battle for Wesnoth Service"
  49530. msgstr ""
  49531. #. type: cindex
  49532. #: guix-git/doc/guix.texi:33366
  49533. #, no-wrap
  49534. msgid "wesnothd"
  49535. msgstr ""
  49536. #. type: Plain text
  49537. #: guix-git/doc/guix.texi:33370
  49538. 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)."
  49539. msgstr ""
  49540. #. type: defvar
  49541. #: guix-git/doc/guix.texi:33371
  49542. #, no-wrap
  49543. msgid "{Scheme Variable} wesnothd-service-type"
  49544. msgstr ""
  49545. #. type: defvar
  49546. #: guix-git/doc/guix.texi:33375
  49547. 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:"
  49548. msgstr ""
  49549. #. type: lisp
  49550. #: guix-git/doc/guix.texi:33378
  49551. #, no-wrap
  49552. msgid "(service wesnothd-service-type)\n"
  49553. msgstr ""
  49554. #. type: deftp
  49555. #: guix-git/doc/guix.texi:33381
  49556. #, no-wrap
  49557. msgid "{Data Type} wesnothd-configuration"
  49558. msgstr ""
  49559. #. type: deftp
  49560. #: guix-git/doc/guix.texi:33383
  49561. msgid "Data type representing the configuration of @command{wesnothd}."
  49562. msgstr ""
  49563. #. type: item
  49564. #: guix-git/doc/guix.texi:33385
  49565. #, no-wrap
  49566. msgid "@code{package} (default: @code{wesnoth-server})"
  49567. msgstr ""
  49568. #. type: table
  49569. #: guix-git/doc/guix.texi:33387
  49570. msgid "The wesnoth server package to use."
  49571. msgstr ""
  49572. #. type: item
  49573. #: guix-git/doc/guix.texi:33388
  49574. #, no-wrap
  49575. msgid "@code{port} (default: @code{15000})"
  49576. msgstr ""
  49577. #. type: table
  49578. #: guix-git/doc/guix.texi:33390 guix-git/doc/guix.texi:33781
  49579. msgid "The port to bind the server to."
  49580. msgstr ""
  49581. #. type: cindex
  49582. #: guix-git/doc/guix.texi:33396
  49583. #, no-wrap
  49584. msgid "pam-mount"
  49585. msgstr ""
  49586. #. type: Plain text
  49587. #: guix-git/doc/guix.texi:33401
  49588. 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."
  49589. msgstr ""
  49590. #. type: defvar
  49591. #: guix-git/doc/guix.texi:33402
  49592. #, no-wrap
  49593. msgid "{Scheme Variable} pam-mount-service-type"
  49594. msgstr ""
  49595. #. type: defvar
  49596. #: guix-git/doc/guix.texi:33404
  49597. msgid "Service type for PAM Mount support."
  49598. msgstr ""
  49599. #. type: deftp
  49600. #: guix-git/doc/guix.texi:33406
  49601. #, no-wrap
  49602. msgid "{Data Type} pam-mount-configuration"
  49603. msgstr ""
  49604. #. type: deftp
  49605. #: guix-git/doc/guix.texi:33408
  49606. #, fuzzy
  49607. msgid "Data type representing the configuration of PAM Mount."
  49608. msgstr "管理操作系统配置。"
  49609. #. type: code{#1}
  49610. #: guix-git/doc/guix.texi:33412
  49611. #, fuzzy, no-wrap
  49612. msgid "rules"
  49613. msgstr "模块"
  49614. #. type: table
  49615. #: guix-git/doc/guix.texi:33415
  49616. msgid "The configuration rules that will be used to generate @file{/etc/security/pam_mount.conf.xml}."
  49617. msgstr ""
  49618. #. type: table
  49619. #: guix-git/doc/guix.texi:33419
  49620. 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:"
  49621. msgstr ""
  49622. #. type: lisp
  49623. #: guix-git/doc/guix.texi:33434
  49624. #, no-wrap
  49625. msgid ""
  49626. "`((debug (@@ (enable \"0\")))\n"
  49627. " (mntoptions (@@ (allow ,(string-join\n"
  49628. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  49629. " \"encryption\" \"fsck\" \"nonempty\"\n"
  49630. " \"allow_root\" \"allow_other\")\n"
  49631. " \",\"))))\n"
  49632. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  49633. " (logout (@@ (wait \"0\")\n"
  49634. " (hup \"0\")\n"
  49635. " (term \"no\")\n"
  49636. " (kill \"no\")))\n"
  49637. " (mkmountpoint (@@ (enable \"1\")\n"
  49638. " (remove \"true\"))))\n"
  49639. msgstr ""
  49640. #. type: table
  49641. #: guix-git/doc/guix.texi:33440
  49642. 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:"
  49643. msgstr ""
  49644. #. type: lisp
  49645. #: guix-git/doc/guix.texi:33465
  49646. #, no-wrap
  49647. msgid ""
  49648. "(define pam-mount-rules\n"
  49649. "`((debug (@@ (enable \"0\")))\n"
  49650. " (volume (@@ (user \"alice\")\n"
  49651. " (fstype \"crypt\")\n"
  49652. " (path \"/dev/sda2\")\n"
  49653. " (mountpoint \"/home/alice\")))\n"
  49654. " (volume (@@ (user \"bob\")\n"
  49655. " (fstype \"auto\")\n"
  49656. " (path \"/dev/sdb3\")\n"
  49657. " (mountpoint \"/home/bob/data\")\n"
  49658. " (options \"defaults,autodefrag,compress\")))\n"
  49659. " (mntoptions (@@ (allow ,(string-join\n"
  49660. " '(\"nosuid\" \"nodev\" \"loop\"\n"
  49661. " \"encryption\" \"fsck\" \"nonempty\"\n"
  49662. " \"allow_root\" \"allow_other\")\n"
  49663. " \",\"))))\n"
  49664. " (mntoptions (@@ (require \"nosuid,nodev\")))\n"
  49665. " (logout (@@ (wait \"0\")\n"
  49666. " (hup \"0\")\n"
  49667. " (term \"no\")\n"
  49668. " (kill \"no\")))\n"
  49669. " (mkmountpoint (@@ (enable \"1\")\n"
  49670. " (remove \"true\")))))\n"
  49671. "\n"
  49672. msgstr ""
  49673. #. type: lisp
  49674. #: guix-git/doc/guix.texi:33469
  49675. #, no-wrap
  49676. msgid ""
  49677. "(service pam-mount-service-type\n"
  49678. " (pam-mount-configuration\n"
  49679. " (rules pam-mount-rules)))\n"
  49680. msgstr ""
  49681. #. type: table
  49682. #: guix-git/doc/guix.texi:33473
  49683. 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}."
  49684. msgstr ""
  49685. #. type: subsubheading
  49686. #: guix-git/doc/guix.texi:33480
  49687. #, no-wrap
  49688. msgid "Guix Build Coordinator"
  49689. msgstr ""
  49690. #. type: Plain text
  49691. #: guix-git/doc/guix.texi:33486
  49692. 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."
  49693. msgstr ""
  49694. #. type: Plain text
  49695. #: guix-git/doc/guix.texi:33492
  49696. 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."
  49697. msgstr ""
  49698. #. type: Plain text
  49699. #: guix-git/doc/guix.texi:33496
  49700. 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."
  49701. msgstr ""
  49702. #. type: defvar
  49703. #: guix-git/doc/guix.texi:33497
  49704. #, no-wrap
  49705. msgid "{Scheme Variable} guix-build-coordinator-service-type"
  49706. msgstr ""
  49707. #. type: defvar
  49708. #: guix-git/doc/guix.texi:33500
  49709. msgid "Service type for the Guix Build Coordinator. Its value must be a @code{guix-build-coordinator-configuration} object."
  49710. msgstr ""
  49711. #. type: deftp
  49712. #: guix-git/doc/guix.texi:33502
  49713. #, fuzzy, no-wrap
  49714. msgid "{Data Type} guix-build-coordinator-configuration"
  49715. msgstr "{数据类型} build-machine"
  49716. #. type: deftp
  49717. #: guix-git/doc/guix.texi:33504
  49718. msgid "Data type representing the configuration of the Guix Build Coordinator."
  49719. msgstr ""
  49720. #. type: item
  49721. #: guix-git/doc/guix.texi:33506 guix-git/doc/guix.texi:33676
  49722. #, fuzzy, no-wrap
  49723. msgid "@code{package} (default: @code{guix-build-coordinator})"
  49724. msgstr "@code{gnome}(默认值:@code{gnome})"
  49725. #. type: table
  49726. #: guix-git/doc/guix.texi:33508 guix-git/doc/guix.texi:33552
  49727. #: guix-git/doc/guix.texi:33678
  49728. msgid "The Guix Build Coordinator package to use."
  49729. msgstr ""
  49730. #. type: item
  49731. #: guix-git/doc/guix.texi:33509
  49732. #, fuzzy, no-wrap
  49733. msgid "@code{user} (default: @code{\"guix-build-coordinator\"})"
  49734. msgstr "@code{gnome}(默认值:@code{gnome})"
  49735. #. type: table
  49736. #: guix-git/doc/guix.texi:33511 guix-git/doc/guix.texi:33555
  49737. #: guix-git/doc/guix.texi:33681 guix-git/doc/guix.texi:33727
  49738. #: guix-git/doc/guix.texi:33775
  49739. #, fuzzy
  49740. msgid "The system user to run the service as."
  49741. msgstr "mcron服务。"
  49742. #. type: item
  49743. #: guix-git/doc/guix.texi:33512
  49744. #, fuzzy, no-wrap
  49745. msgid "@code{group} (default: @code{\"guix-build-coordinator\"})"
  49746. msgstr "@code{gnome}(默认值:@code{gnome})"
  49747. #. type: table
  49748. #: guix-git/doc/guix.texi:33514 guix-git/doc/guix.texi:33730
  49749. #: guix-git/doc/guix.texi:33778
  49750. msgid "The system group to run the service as."
  49751. msgstr ""
  49752. #. type: item
  49753. #: guix-git/doc/guix.texi:33515
  49754. #, no-wrap
  49755. msgid "@code{database-uri-string} (default: @code{\"sqlite:///var/lib/guix-build-coordinator/guix_build_coordinator.db\"})"
  49756. msgstr ""
  49757. #. type: table
  49758. #: guix-git/doc/guix.texi:33517
  49759. msgid "The URI to use for the database."
  49760. msgstr ""
  49761. #. type: item
  49762. #: guix-git/doc/guix.texi:33518
  49763. #, fuzzy, no-wrap
  49764. msgid "@code{agent-communication-uri} (default: @code{\"http://0.0.0.0:8745\"})"
  49765. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  49766. #. type: table
  49767. #: guix-git/doc/guix.texi:33520
  49768. msgid "The URI describing how to listen to requests from agent processes."
  49769. msgstr ""
  49770. #. type: item
  49771. #: guix-git/doc/guix.texi:33521
  49772. #, fuzzy, no-wrap
  49773. msgid "@code{client-communication-uri} (default: @code{\"http://127.0.0.1:8746\"})"
  49774. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  49775. #. type: table
  49776. #: guix-git/doc/guix.texi:33525
  49777. 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."
  49778. msgstr ""
  49779. #. type: item
  49780. #: guix-git/doc/guix.texi:33526
  49781. #, no-wrap
  49782. msgid "@code{allocation-strategy} (default: @code{#~basic-build-allocation-strategy})"
  49783. msgstr ""
  49784. #. type: table
  49785. #: guix-git/doc/guix.texi:33530
  49786. 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."
  49787. msgstr ""
  49788. #. type: item
  49789. #: guix-git/doc/guix.texi:33531
  49790. #, fuzzy, no-wrap
  49791. msgid "@code{hooks} (default: @var{'()})"
  49792. msgstr "@code{features} (@code{'()})"
  49793. #. type: table
  49794. #: guix-git/doc/guix.texi:33534
  49795. msgid "An association list of hooks. These provide a way to execute arbitrary code upon certain events, like a build result being processed."
  49796. msgstr ""
  49797. #. type: item
  49798. #: guix-git/doc/guix.texi:33535
  49799. #, fuzzy, no-wrap
  49800. msgid "@code{guile} (default: @code{guile-3.0-latest})"
  49801. msgstr "@code{mate}(默认值:@code{mate})"
  49802. #. type: table
  49803. #: guix-git/doc/guix.texi:33537
  49804. msgid "The Guile package with which to run the Guix Build Coordinator."
  49805. msgstr ""
  49806. #. type: defvar
  49807. #: guix-git/doc/guix.texi:33541
  49808. #, no-wrap
  49809. msgid "{Scheme Variable} guix-build-coordinator-agent-service-type"
  49810. msgstr ""
  49811. #. type: defvar
  49812. #: guix-git/doc/guix.texi:33544
  49813. msgid "Service type for a Guix Build Coordinator agent. Its value must be a @code{guix-build-coordinator-agent-configuration} object."
  49814. msgstr ""
  49815. #. type: deftp
  49816. #: guix-git/doc/guix.texi:33546
  49817. #, no-wrap
  49818. msgid "{Data Type} guix-build-coordinator-agent-configuration"
  49819. msgstr ""
  49820. #. type: deftp
  49821. #: guix-git/doc/guix.texi:33548
  49822. msgid "Data type representing the configuration a Guix Build Coordinator agent."
  49823. msgstr ""
  49824. #. type: item
  49825. #: guix-git/doc/guix.texi:33550
  49826. #, fuzzy, no-wrap
  49827. msgid "@code{package} (default: @code{guix-build-coordinator/agent-only})"
  49828. msgstr "@code{gnome}(默认值:@code{gnome})"
  49829. #. type: item
  49830. #: guix-git/doc/guix.texi:33553
  49831. #, fuzzy, no-wrap
  49832. msgid "@code{user} (default: @code{\"guix-build-coordinator-agent\"})"
  49833. msgstr "@code{gnome}(默认值:@code{gnome})"
  49834. #. type: item
  49835. #: guix-git/doc/guix.texi:33556
  49836. #, fuzzy, no-wrap
  49837. msgid "@code{coordinator} (default: @code{\"http://localhost:8745\"})"
  49838. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  49839. #. type: table
  49840. #: guix-git/doc/guix.texi:33558 guix-git/doc/guix.texi:33684
  49841. msgid "The URI to use when connecting to the coordinator."
  49842. msgstr ""
  49843. #. type: code{#1}
  49844. #: guix-git/doc/guix.texi:33559
  49845. #, fuzzy, no-wrap
  49846. msgid "authentication"
  49847. msgstr "验证substitute"
  49848. #. type: table
  49849. #: guix-git/doc/guix.texi:33562
  49850. msgid "Record describing how this agent should authenticate with the coordinator. Possible record types are described below."
  49851. msgstr ""
  49852. #. type: item
  49853. #: guix-git/doc/guix.texi:33563 guix-git/doc/guix.texi:33685
  49854. #, fuzzy, no-wrap
  49855. msgid "@code{systems} (default: @code{#f})"
  49856. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49857. #. type: table
  49858. #: guix-git/doc/guix.texi:33566
  49859. 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."
  49860. msgstr ""
  49861. #. type: item
  49862. #: guix-git/doc/guix.texi:33567
  49863. #, fuzzy, no-wrap
  49864. msgid "@code{max-parallel-builds} (default: @code{1})"
  49865. msgstr "@code{parallel-builds}(默认值:@code{1})"
  49866. #. type: table
  49867. #: guix-git/doc/guix.texi:33569
  49868. #, fuzzy
  49869. msgid "The number of builds to perform in parallel."
  49870. msgstr "那台机器上可以并行运行的构建任务数量。"
  49871. #. type: item
  49872. #: guix-git/doc/guix.texi:33570
  49873. #, fuzzy, no-wrap
  49874. #| msgid "@code{max-journal-usage} (default: @code{#f})"
  49875. msgid "@code{max-1min-load-average} (default: @code{#f})"
  49876. msgstr "@code{max-journal-usage}(默认值:@code{#f})"
  49877. #. type: table
  49878. #: guix-git/doc/guix.texi:33574
  49879. msgid "Load average value to look at when considering starting new builds, if the 1 minute load average exceeds this value, the agent will wait before starting new builds."
  49880. msgstr ""
  49881. #. type: table
  49882. #: guix-git/doc/guix.texi:33578
  49883. msgid "This will be unspecified if the value is @code{#f}, and the agent will use the number of cores reported by the system as the max 1 minute load average."
  49884. msgstr ""
  49885. #. type: item
  49886. #: guix-git/doc/guix.texi:33579
  49887. #, fuzzy, no-wrap
  49888. msgid "@code{derivation-substitute-urls} (default: @code{#f})"
  49889. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  49890. #. type: table
  49891. #: guix-git/doc/guix.texi:33582
  49892. msgid "URLs from which to attempt to fetch substitutes for derivations, if the derivations aren't already available."
  49893. msgstr ""
  49894. #. type: item
  49895. #: guix-git/doc/guix.texi:33583
  49896. #, fuzzy, no-wrap
  49897. msgid "@code{non-derivation-substitute-urls} (default: @code{#f})"
  49898. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  49899. #. type: table
  49900. #: guix-git/doc/guix.texi:33586
  49901. msgid "URLs from which to attempt to fetch substitutes for build inputs, if the input store items aren't already available."
  49902. msgstr ""
  49903. #. type: deftp
  49904. #: guix-git/doc/guix.texi:33590
  49905. #, fuzzy, no-wrap
  49906. msgid "{Data Type} guix-build-coordinator-agent-password-auth"
  49907. msgstr "{数据类型} build-machine"
  49908. #. type: deftp
  49909. #: guix-git/doc/guix.texi:33593
  49910. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password."
  49911. msgstr ""
  49912. #. type: table
  49913. #: guix-git/doc/guix.texi:33599 guix-git/doc/guix.texi:33615
  49914. 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."
  49915. msgstr ""
  49916. #. type: table
  49917. #: guix-git/doc/guix.texi:33602
  49918. msgid "The password to use when connecting to the coordinator."
  49919. msgstr ""
  49920. #. type: deftp
  49921. #: guix-git/doc/guix.texi:33606
  49922. #, fuzzy, no-wrap
  49923. msgid "{Data Type} guix-build-coordinator-agent-password-file-auth"
  49924. msgstr "{数据类型} build-machine"
  49925. #. type: deftp
  49926. #: guix-git/doc/guix.texi:33609
  49927. msgid "Data type representing an agent authenticating with a coordinator via a UUID and password read from a file."
  49928. msgstr ""
  49929. #. type: code{#1}
  49930. #: guix-git/doc/guix.texi:33616
  49931. #, no-wrap
  49932. msgid "password-file"
  49933. msgstr ""
  49934. #. type: table
  49935. #: guix-git/doc/guix.texi:33619
  49936. msgid "A file containing the password to use when connecting to the coordinator."
  49937. msgstr ""
  49938. #. type: deftp
  49939. #: guix-git/doc/guix.texi:33623
  49940. #, fuzzy, no-wrap
  49941. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth"
  49942. msgstr "{数据类型} build-machine"
  49943. #. type: deftp
  49944. #: guix-git/doc/guix.texi:33626
  49945. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token and agent name."
  49946. msgstr ""
  49947. #. type: code{#1}
  49948. #: guix-git/doc/guix.texi:33628 guix-git/doc/guix.texi:33645
  49949. #, fuzzy, no-wrap
  49950. msgid "agent-name"
  49951. msgstr "通道"
  49952. #. type: table
  49953. #: guix-git/doc/guix.texi:33632 guix-git/doc/guix.texi:33649
  49954. 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."
  49955. msgstr ""
  49956. #. type: code{#1}
  49957. #: guix-git/doc/guix.texi:33633
  49958. #, no-wrap
  49959. msgid "token"
  49960. msgstr ""
  49961. #. type: table
  49962. #: guix-git/doc/guix.texi:33636
  49963. msgid "Dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  49964. msgstr ""
  49965. #. type: deftp
  49966. #: guix-git/doc/guix.texi:33640
  49967. #, fuzzy, no-wrap
  49968. msgid "{Data Type} guix-build-coordinator-agent-dynamic-auth-with-file"
  49969. msgstr "{数据类型} build-machine"
  49970. #. type: deftp
  49971. #: guix-git/doc/guix.texi:33643
  49972. msgid "Data type representing an agent authenticating with a coordinator via a dynamic auth token read from a file and agent name."
  49973. msgstr ""
  49974. #. type: code{#1}
  49975. #: guix-git/doc/guix.texi:33650
  49976. #, no-wrap
  49977. msgid "token-file"
  49978. msgstr ""
  49979. #. type: table
  49980. #: guix-git/doc/guix.texi:33653
  49981. msgid "File containing the dynamic auth token, this is created and stored in the coordinator database, and is used by the agent to authenticate."
  49982. msgstr ""
  49983. #. type: Plain text
  49984. #: guix-git/doc/guix.texi:33663
  49985. 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."
  49986. msgstr ""
  49987. #. type: defvar
  49988. #: guix-git/doc/guix.texi:33664
  49989. #, no-wrap
  49990. msgid "{Scheme Variable} guix-build-coordinator-queue-builds-service-type"
  49991. msgstr ""
  49992. #. type: defvar
  49993. #: guix-git/doc/guix.texi:33669
  49994. 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."
  49995. msgstr ""
  49996. #. type: deftp
  49997. #: guix-git/doc/guix.texi:33671
  49998. #, no-wrap
  49999. msgid "{Data Type} guix-build-coordinator-queue-builds-configuration"
  50000. msgstr ""
  50001. #. type: deftp
  50002. #: guix-git/doc/guix.texi:33674
  50003. msgid "Data type representing the options to the queue builds from guix data service script."
  50004. msgstr ""
  50005. #. type: item
  50006. #: guix-git/doc/guix.texi:33679
  50007. #, fuzzy, no-wrap
  50008. msgid "@code{user} (default: @code{\"guix-build-coordinator-queue-builds\"})"
  50009. msgstr "@code{gnome}(默认值:@code{gnome})"
  50010. #. type: item
  50011. #: guix-git/doc/guix.texi:33682
  50012. #, fuzzy, no-wrap
  50013. msgid "@code{coordinator} (default: @code{\"http://localhost:8746\"})"
  50014. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  50015. #. type: table
  50016. #: guix-git/doc/guix.texi:33687
  50017. msgid "The systems for which to fetch derivations to build."
  50018. msgstr ""
  50019. #. type: item
  50020. #: guix-git/doc/guix.texi:33688
  50021. #, fuzzy, no-wrap
  50022. msgid "@code{systems-and-targets} (default: @code{#f})"
  50023. msgstr "@code{challenge}(默认值:@code{#f})"
  50024. #. type: table
  50025. #: guix-git/doc/guix.texi:33691
  50026. msgid "An association list of system and target pairs for which to fetch derivations to build."
  50027. msgstr ""
  50028. #. type: item
  50029. #: guix-git/doc/guix.texi:33692
  50030. #, no-wrap
  50031. msgid "@code{guix-data-service} (default: @code{\"https://data.guix.gnu.org\"})"
  50032. msgstr ""
  50033. #. type: table
  50034. #: guix-git/doc/guix.texi:33695
  50035. msgid "The Guix Data Service instance from which to query to find out about derivations to build."
  50036. msgstr ""
  50037. #. type: item
  50038. #: guix-git/doc/guix.texi:33696
  50039. #, no-wrap
  50040. msgid "@code{processed-commits-file} (default: @code{\"/var/cache/guix-build-coordinator-queue-builds/processed-commits\"})"
  50041. msgstr ""
  50042. #. type: table
  50043. #: guix-git/doc/guix.texi:33699
  50044. msgid "A file to record which commits have been processed, to avoid needlessly processing them again if the service is restarted."
  50045. msgstr ""
  50046. #. type: subsubheading
  50047. #: guix-git/doc/guix.texi:33703
  50048. #, fuzzy, no-wrap
  50049. msgid "Guix Data Service"
  50050. msgstr "数据库服务"
  50051. #. type: Plain text
  50052. #: guix-git/doc/guix.texi:33707
  50053. 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."
  50054. msgstr ""
  50055. #. type: Plain text
  50056. #: guix-git/doc/guix.texi:33710
  50057. msgid "The data is stored in a PostgreSQL database, and available through a web interface."
  50058. msgstr ""
  50059. #. type: defvar
  50060. #: guix-git/doc/guix.texi:33711
  50061. #, no-wrap
  50062. msgid "{Scheme Variable} guix-data-service-type"
  50063. msgstr ""
  50064. #. type: defvar
  50065. #: guix-git/doc/guix.texi:33716
  50066. 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."
  50067. msgstr ""
  50068. #. type: deftp
  50069. #: guix-git/doc/guix.texi:33718
  50070. #, no-wrap
  50071. msgid "{Data Type} guix-data-service-configuration"
  50072. msgstr ""
  50073. #. type: deftp
  50074. #: guix-git/doc/guix.texi:33720 guix-git/doc/guix.texi:33768
  50075. msgid "Data type representing the configuration of the Guix Data Service."
  50076. msgstr ""
  50077. #. type: item
  50078. #: guix-git/doc/guix.texi:33722
  50079. #, fuzzy, no-wrap
  50080. msgid "@code{package} (default: @code{guix-data-service})"
  50081. msgstr "@code{xfce}(默认值:@code{xfce})"
  50082. #. type: table
  50083. #: guix-git/doc/guix.texi:33724
  50084. msgid "The Guix Data Service package to use."
  50085. msgstr ""
  50086. #. type: item
  50087. #: guix-git/doc/guix.texi:33725
  50088. #, fuzzy, no-wrap
  50089. msgid "@code{user} (default: @code{\"guix-data-service\"})"
  50090. msgstr "@code{xfce}(默认值:@code{xfce})"
  50091. #. type: item
  50092. #: guix-git/doc/guix.texi:33728
  50093. #, fuzzy, no-wrap
  50094. msgid "@code{group} (default: @code{\"guix-data-service\"})"
  50095. msgstr "@code{gnome}(默认值:@code{gnome})"
  50096. #. type: item
  50097. #: guix-git/doc/guix.texi:33731
  50098. #, fuzzy, no-wrap
  50099. msgid "@code{port} (default: @code{8765})"
  50100. msgstr "@code{port}(默认值:@code{22})"
  50101. #. type: table
  50102. #: guix-git/doc/guix.texi:33733
  50103. #, fuzzy
  50104. msgid "The port to bind the web service to."
  50105. msgstr "rottlog服务。"
  50106. #. type: item
  50107. #: guix-git/doc/guix.texi:33734 guix-git/doc/guix.texi:33782
  50108. #, fuzzy, no-wrap
  50109. msgid "@code{host} (default: @code{\"127.0.0.1\"})"
  50110. msgstr "@code{speed}(默认值:@code{1.0})"
  50111. #. type: table
  50112. #: guix-git/doc/guix.texi:33736
  50113. #, fuzzy
  50114. msgid "The host to bind the web service to."
  50115. msgstr "rottlog服务。"
  50116. #. type: item
  50117. #: guix-git/doc/guix.texi:33737
  50118. #, fuzzy, no-wrap
  50119. msgid "@code{getmail-idle-mailboxes} (default: @code{#f})"
  50120. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50121. #. type: table
  50122. #: guix-git/doc/guix.texi:33740
  50123. msgid "If set, this is the list of mailboxes that the getmail service will be configured to listen to."
  50124. msgstr ""
  50125. #. type: item
  50126. #: guix-git/doc/guix.texi:33741
  50127. #, fuzzy, no-wrap
  50128. msgid "@code{commits-getmail-retriever-configuration} (default: @code{#f})"
  50129. msgstr "@code{journal-content}(默认值:@code{#f})"
  50130. #. type: table
  50131. #: guix-git/doc/guix.texi:33745
  50132. 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."
  50133. msgstr ""
  50134. #. type: item
  50135. #: guix-git/doc/guix.texi:33746
  50136. #, no-wrap
  50137. msgid "@code{extra-options} (default: @var{'()})"
  50138. msgstr ""
  50139. #. type: table
  50140. #: guix-git/doc/guix.texi:33748
  50141. msgid "Extra command line options for @code{guix-data-service}."
  50142. msgstr ""
  50143. #. type: item
  50144. #: guix-git/doc/guix.texi:33749
  50145. #, fuzzy, no-wrap
  50146. msgid "@code{extra-process-jobs-options} (default: @var{'()})"
  50147. msgstr "@code{features} (@code{'()})"
  50148. #. type: table
  50149. #: guix-git/doc/guix.texi:33751
  50150. msgid "Extra command line options for @code{guix-data-service-process-jobs}."
  50151. msgstr ""
  50152. #. type: subsubheading
  50153. #: guix-git/doc/guix.texi:33755
  50154. #, no-wrap
  50155. msgid "Nar Herder"
  50156. msgstr ""
  50157. #. type: Plain text
  50158. #: guix-git/doc/guix.texi:33758
  50159. msgid "The @uref{https://git.cbaines.net/guix/nar-herder/about/,Nar Herder} is a utility for managing a collection of nars."
  50160. msgstr ""
  50161. #. type: defvar
  50162. #: guix-git/doc/guix.texi:33759
  50163. #, no-wrap
  50164. msgid "{Scheme Variable} nar-herder-type"
  50165. msgstr ""
  50166. #. type: defvar
  50167. #: guix-git/doc/guix.texi:33764
  50168. msgid "Service type for the Guix Data Service. Its value must be a @code{nar-herder-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."
  50169. msgstr ""
  50170. #. type: deftp
  50171. #: guix-git/doc/guix.texi:33766
  50172. #, fuzzy, no-wrap
  50173. msgid "{Data Type} nar-herder-configuration"
  50174. msgstr "{数据类型} build-machine"
  50175. #. type: item
  50176. #: guix-git/doc/guix.texi:33770
  50177. #, fuzzy, no-wrap
  50178. msgid "@code{package} (default: @code{nar-herder})"
  50179. msgstr "@code{challenge}(默认值:@code{#f})"
  50180. #. type: table
  50181. #: guix-git/doc/guix.texi:33772
  50182. #, fuzzy
  50183. msgid "The Nar Herder package to use."
  50184. msgstr "软件包数据类型。"
  50185. #. type: item
  50186. #: guix-git/doc/guix.texi:33773
  50187. #, fuzzy, no-wrap
  50188. msgid "@code{user} (default: @code{\"nar-herder\"})"
  50189. msgstr "@code{vt}(默认值:@code{\"vt7\"})"
  50190. #. type: item
  50191. #: guix-git/doc/guix.texi:33776
  50192. #, fuzzy, no-wrap
  50193. msgid "@code{group} (default: @code{\"nar-herder\"})"
  50194. msgstr "@code{gnome}(默认值:@code{gnome})"
  50195. #. type: item
  50196. #: guix-git/doc/guix.texi:33779
  50197. #, fuzzy, no-wrap
  50198. msgid "@code{port} (default: @code{8734})"
  50199. msgstr "@code{port}(默认值:@code{22})"
  50200. #. type: table
  50201. #: guix-git/doc/guix.texi:33784
  50202. #, fuzzy
  50203. msgid "The host to bind the server to."
  50204. msgstr "rottlog服务。"
  50205. #. type: table
  50206. #: guix-git/doc/guix.texi:33789
  50207. msgid "Optional URL of the other Nar Herder instance which should be mirrored. This means that this Nar Herder instance will download it's database, and keep it up to date."
  50208. msgstr ""
  50209. #. type: item
  50210. #: guix-git/doc/guix.texi:33790
  50211. #, fuzzy, no-wrap
  50212. msgid "@code{database} (default: @code{\"/var/lib/nar-herder/nar_herder.db\"})"
  50213. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50214. #. type: table
  50215. #: guix-git/doc/guix.texi:33795
  50216. msgid "Location for the database. If this Nar Herder instance is mirroring another, the database will be downloaded if it doesn't exist. If this Nar Herder instance isn't mirroring another, an empty database will be created."
  50217. msgstr ""
  50218. #. type: item
  50219. #: guix-git/doc/guix.texi:33796
  50220. #, fuzzy, no-wrap
  50221. msgid "@code{database-dump} (default: @code{\"/var/lib/nar-herder/nar_herder_dump.db\"})"
  50222. msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  50223. #. type: table
  50224. #: guix-git/doc/guix.texi:33800
  50225. msgid "Location of the database dump. This is created and regularly updated by taking a copy of the database. This is the version of the database that is available to download."
  50226. msgstr ""
  50227. #. type: item
  50228. #: guix-git/doc/guix.texi:33801
  50229. #, fuzzy, no-wrap
  50230. msgid "@code{storage} (default: @code{#f})"
  50231. msgstr "@code{port}(默认值:@code{22})"
  50232. #. type: table
  50233. #: guix-git/doc/guix.texi:33803
  50234. msgid "Optional location in which to store nars."
  50235. msgstr ""
  50236. #. type: item
  50237. #: guix-git/doc/guix.texi:33804
  50238. #, fuzzy, no-wrap
  50239. msgid "@code{storage-limit} (default: @code{\"none\"})"
  50240. msgstr "@code{port}(默认值:@code{22})"
  50241. #. type: table
  50242. #: guix-git/doc/guix.texi:33807
  50243. msgid "Limit in bytes for the nars stored in the storage location. This can also be set to ``none'' so that there is no limit."
  50244. msgstr ""
  50245. #. type: table
  50246. #: guix-git/doc/guix.texi:33810
  50247. msgid "When the storage location exceeds this size, nars are removed according to the nar removal criteria."
  50248. msgstr ""
  50249. #. type: item
  50250. #: guix-git/doc/guix.texi:33811
  50251. #, fuzzy, no-wrap
  50252. msgid "@code{storage-nar-removal-criteria} (default: @code{'()})"
  50253. msgstr "@code{features} (@code{'()})"
  50254. #. type: table
  50255. #: guix-git/doc/guix.texi:33814
  50256. msgid "Criteria used to remove nars from the storage location. These are used in conjunction with the storage limit."
  50257. msgstr ""
  50258. #. type: table
  50259. #: guix-git/doc/guix.texi:33819
  50260. msgid "When the storage location exceeds the storage limit size, nars will be checked against the nar removal criteria and if any of the criteria match, they will be removed. This will continue until the storage location is below the storage limit size."
  50261. msgstr ""
  50262. #. type: table
  50263. #: guix-git/doc/guix.texi:33823
  50264. msgid "Each criteria is specified by a string, then an equals sign, then another string. Currently, only one criteria is supported, checking if a nar is stored on another Nar Herder instance."
  50265. msgstr ""
  50266. #. type: table
  50267. #: guix-git/doc/guix.texi:33831
  50268. msgid "This allows the user's Guix to keep substitute information in cache for @var{ttl}."
  50269. msgstr ""
  50270. #. type: cindex
  50271. #: guix-git/doc/guix.texi:33844
  50272. #, no-wrap
  50273. msgid "oom"
  50274. msgstr ""
  50275. #. type: cindex
  50276. #: guix-git/doc/guix.texi:33845
  50277. #, no-wrap
  50278. msgid "out of memory killer"
  50279. msgstr ""
  50280. #. type: cindex
  50281. #: guix-git/doc/guix.texi:33846
  50282. #, no-wrap
  50283. msgid "earlyoom"
  50284. msgstr ""
  50285. #. type: cindex
  50286. #: guix-git/doc/guix.texi:33847
  50287. #, no-wrap
  50288. msgid "early out of memory daemon"
  50289. msgstr ""
  50290. #. type: subsubheading
  50291. #: guix-git/doc/guix.texi:33848
  50292. #, fuzzy, no-wrap
  50293. msgid "Early OOM Service"
  50294. msgstr "邮件服务"
  50295. #. type: Plain text
  50296. #: guix-git/doc/guix.texi:33855
  50297. 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."
  50298. msgstr ""
  50299. #. type: deffn
  50300. #: guix-git/doc/guix.texi:33856
  50301. #, no-wrap
  50302. msgid "{Scheme Variable} earlyoom-service-type"
  50303. msgstr ""
  50304. #. type: deffn
  50305. #: guix-git/doc/guix.texi:33861
  50306. 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:"
  50307. msgstr ""
  50308. #. type: lisp
  50309. #: guix-git/doc/guix.texi:33864
  50310. #, no-wrap
  50311. msgid "(service earlyoom-service-type)\n"
  50312. msgstr ""
  50313. #. type: deftp
  50314. #: guix-git/doc/guix.texi:33867
  50315. #, no-wrap
  50316. msgid "{Data Type} earlyoom-configuration"
  50317. msgstr ""
  50318. #. type: deftp
  50319. #: guix-git/doc/guix.texi:33869
  50320. msgid "This is the configuration record for the @code{earlyoom-service-type}."
  50321. msgstr ""
  50322. #. type: item
  50323. #: guix-git/doc/guix.texi:33871
  50324. #, fuzzy, no-wrap
  50325. msgid "@code{earlyoom} (default: @var{earlyoom})"
  50326. msgstr "@code{gnome}(默认值:@code{gnome})"
  50327. #. type: table
  50328. #: guix-git/doc/guix.texi:33873
  50329. #, fuzzy
  50330. msgid "The Earlyoom package to use."
  50331. msgstr "软件包数据类型。"
  50332. #. type: item
  50333. #: guix-git/doc/guix.texi:33874
  50334. #, fuzzy, no-wrap
  50335. msgid "@code{minimum-available-memory} (default: @code{10})"
  50336. msgstr "@code{parallel-builds}(默认值:@code{1})"
  50337. #. type: table
  50338. #: guix-git/doc/guix.texi:33876
  50339. msgid "The threshold for the minimum @emph{available} memory, in percentages."
  50340. msgstr ""
  50341. #. type: item
  50342. #: guix-git/doc/guix.texi:33877
  50343. #, fuzzy, no-wrap
  50344. msgid "@code{minimum-free-swap} (default: @code{10})"
  50345. msgstr "@code{speed}(默认值:@code{1.0})"
  50346. #. type: table
  50347. #: guix-git/doc/guix.texi:33879
  50348. msgid "The threshold for the minimum free swap memory, in percentages."
  50349. msgstr ""
  50350. #. type: item
  50351. #: guix-git/doc/guix.texi:33880
  50352. #, fuzzy, no-wrap
  50353. msgid "@code{prefer-regexp} (default: @code{#f})"
  50354. msgstr "@code{challenge}(默认值:@code{#f})"
  50355. #. type: table
  50356. #: guix-git/doc/guix.texi:33883
  50357. msgid "A regular expression (as a string) to match the names of the processes that should be preferably killed."
  50358. msgstr ""
  50359. #. type: item
  50360. #: guix-git/doc/guix.texi:33884
  50361. #, fuzzy, no-wrap
  50362. msgid "@code{avoid-regexp} (default: @code{#f})"
  50363. msgstr "@code{challenge}(默认值:@code{#f})"
  50364. #. type: table
  50365. #: guix-git/doc/guix.texi:33887
  50366. msgid "A regular expression (as a string) to match the names of the processes that should @emph{not} be killed."
  50367. msgstr ""
  50368. #. type: item
  50369. #: guix-git/doc/guix.texi:33888
  50370. #, fuzzy, no-wrap
  50371. msgid "@code{memory-report-interval} (default: @code{0})"
  50372. msgstr "@code{port}(默认值:@code{22})"
  50373. #. type: table
  50374. #: guix-git/doc/guix.texi:33891
  50375. msgid "The interval in seconds at which a memory report is printed. It is disabled by default."
  50376. msgstr ""
  50377. #. type: item
  50378. #: guix-git/doc/guix.texi:33892
  50379. #, fuzzy, no-wrap
  50380. msgid "@code{ignore-positive-oom-score-adj?} (default: @code{#f})"
  50381. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  50382. #. type: table
  50383. #: guix-git/doc/guix.texi:33895
  50384. msgid "A boolean indicating whether the positive adjustments set in @file{/proc/*/oom_score_adj} should be ignored."
  50385. msgstr ""
  50386. #. type: item
  50387. #: guix-git/doc/guix.texi:33896
  50388. #, fuzzy, no-wrap
  50389. msgid "@code{show-debug-messages?} (default: @code{#f})"
  50390. msgstr "@code{challenge}(默认值:@code{#f})"
  50391. #. type: table
  50392. #: guix-git/doc/guix.texi:33899
  50393. msgid "A boolean indicating whether debug messages should be printed. The logs are saved at @file{/var/log/earlyoom.log}."
  50394. msgstr ""
  50395. #. type: item
  50396. #: guix-git/doc/guix.texi:33900
  50397. #, fuzzy, no-wrap
  50398. msgid "@code{send-notification-command} (default: @code{#f})"
  50399. msgstr "@code{authentication-hook}(默认值:@code{#f})"
  50400. #. type: table
  50401. #: guix-git/doc/guix.texi:33903
  50402. msgid "This can be used to provide a custom command used for sending notifications."
  50403. msgstr ""
  50404. #. type: cindex
  50405. #: guix-git/doc/guix.texi:33906
  50406. #, no-wrap
  50407. msgid "modprobe"
  50408. msgstr ""
  50409. #. type: cindex
  50410. #: guix-git/doc/guix.texi:33907
  50411. #, no-wrap
  50412. msgid "kernel module loader"
  50413. msgstr ""
  50414. #. type: subsubheading
  50415. #: guix-git/doc/guix.texi:33908
  50416. #, no-wrap
  50417. msgid "Kernel Module Loader Service"
  50418. msgstr ""
  50419. #. type: Plain text
  50420. #: guix-git/doc/guix.texi:33914
  50421. msgid "The kernel module loader service allows one to load loadable kernel modules at boot. This is especially useful for modules that don't autoload and need to be manually loaded, as is the case with @code{ddcci}."
  50422. msgstr ""
  50423. #. type: deffn
  50424. #: guix-git/doc/guix.texi:33915
  50425. #, no-wrap
  50426. msgid "{Scheme Variable} kernel-module-loader-service-type"
  50427. msgstr ""
  50428. #. type: deffn
  50429. #: guix-git/doc/guix.texi:33921
  50430. 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:"
  50431. msgstr ""
  50432. #. type: lisp
  50433. #: guix-git/doc/guix.texi:33926
  50434. #, no-wrap
  50435. msgid ""
  50436. "(use-modules (gnu) (gnu services))\n"
  50437. "(use-package-modules linux)\n"
  50438. "(use-service-modules linux)\n"
  50439. "\n"
  50440. msgstr ""
  50441. #. type: lisp
  50442. #: guix-git/doc/guix.texi:33930
  50443. #, no-wrap
  50444. msgid ""
  50445. "(define ddcci-config\n"
  50446. " (plain-file \"ddcci.conf\"\n"
  50447. " \"options ddcci dyndbg delay=120\"))\n"
  50448. "\n"
  50449. msgstr ""
  50450. #. type: lisp
  50451. #: guix-git/doc/guix.texi:33940
  50452. #, no-wrap
  50453. msgid ""
  50454. "(operating-system\n"
  50455. " ...\n"
  50456. " (services (cons* (service kernel-module-loader-service-type\n"
  50457. " '(\"ddcci\" \"ddcci_backlight\"))\n"
  50458. " (simple-service 'ddcci-config etc-service-type\n"
  50459. " (list `(\"modprobe.d/ddcci.conf\"\n"
  50460. " ,ddcci-config)))\n"
  50461. " %base-services))\n"
  50462. " (kernel-loadable-modules (list ddcci-driver-linux)))\n"
  50463. msgstr ""
  50464. #. type: cindex
  50465. #: guix-git/doc/guix.texi:33943
  50466. #, fuzzy, no-wrap
  50467. #| msgid "daemon"
  50468. msgid "rasdaemon"
  50469. msgstr "后台进程"
  50470. #. type: cindex
  50471. #: guix-git/doc/guix.texi:33944
  50472. #, no-wrap
  50473. msgid "Platform Reliability, Availability and Serviceability daemon"
  50474. msgstr ""
  50475. #. type: subsubheading
  50476. #: guix-git/doc/guix.texi:33945
  50477. #, fuzzy, no-wrap
  50478. msgid "Rasdaemon Service"
  50479. msgstr "邮件服务"
  50480. #. type: Plain text
  50481. #: guix-git/doc/guix.texi:33950
  50482. msgid "The Rasdaemon service provides a daemon which monitors platform @acronym{RAS, Reliability@comma{} Availability@comma{} and Serviceability} reports from Linux kernel trace events, logging them to syslogd."
  50483. msgstr ""
  50484. #. type: Plain text
  50485. #: guix-git/doc/guix.texi:33953
  50486. msgid "Reliability, Availability and Serviceability is a concept used on servers meant to measure their robustness."
  50487. msgstr ""
  50488. #. type: Plain text
  50489. #: guix-git/doc/guix.texi:33956
  50490. msgid "@strong{Relability} is the probability that a system will produce correct outputs:"
  50491. msgstr ""
  50492. #. type: item
  50493. #: guix-git/doc/guix.texi:33958
  50494. #, no-wrap
  50495. msgid "Generally measured as Mean Time Between Failures (MTBF), and"
  50496. msgstr ""
  50497. #. type: item
  50498. #: guix-git/doc/guix.texi:33959
  50499. #, no-wrap
  50500. msgid "Enhanced by features that help to avoid, detect and repair hardware"
  50501. msgstr ""
  50502. #. type: itemize
  50503. #: guix-git/doc/guix.texi:33961
  50504. msgid "faults"
  50505. msgstr ""
  50506. #. type: Plain text
  50507. #: guix-git/doc/guix.texi:33965
  50508. msgid "@strong{Availability} is the probability that a system is operational at a given time:"
  50509. msgstr ""
  50510. #. type: item
  50511. #: guix-git/doc/guix.texi:33967
  50512. #, no-wrap
  50513. msgid "Generally measured as a percentage of downtime per a period of time, and"
  50514. msgstr ""
  50515. #. type: item
  50516. #: guix-git/doc/guix.texi:33968
  50517. #, no-wrap
  50518. msgid "Often uses mechanisms to detect and correct hardware faults in runtime."
  50519. msgstr ""
  50520. #. type: Plain text
  50521. #: guix-git/doc/guix.texi:33973
  50522. msgid "@strong{Serviceability} is the simplicity and speed with which a system can be repaired or maintained:"
  50523. msgstr ""
  50524. #. type: item
  50525. #: guix-git/doc/guix.texi:33975
  50526. #, no-wrap
  50527. msgid "Generally measured on Mean Time Between Repair (MTBR)."
  50528. msgstr ""
  50529. #. type: Plain text
  50530. #: guix-git/doc/guix.texi:33980
  50531. msgid "Among the monitoring measures, the most usual ones include:"
  50532. msgstr ""
  50533. #. type: item
  50534. #: guix-git/doc/guix.texi:33982
  50535. #, no-wrap
  50536. msgid "CPU – detect errors at instruction execution and at L1/L2/L3 caches;"
  50537. msgstr ""
  50538. #. type: item
  50539. #: guix-git/doc/guix.texi:33983
  50540. #, no-wrap
  50541. msgid "Memory – add error correction logic (ECC) to detect and correct errors;"
  50542. msgstr ""
  50543. #. type: item
  50544. #: guix-git/doc/guix.texi:33984
  50545. #, no-wrap
  50546. msgid "I/O – add CRC checksums for transferred data;"
  50547. msgstr ""
  50548. #. type: item
  50549. #: guix-git/doc/guix.texi:33985
  50550. #, no-wrap
  50551. msgid "Storage – RAID, journal file systems, checksums, Self-Monitoring,"
  50552. msgstr ""
  50553. #. type: itemize
  50554. #: guix-git/doc/guix.texi:33987
  50555. msgid "Analysis and Reporting Technology (SMART)."
  50556. msgstr ""
  50557. #. type: Plain text
  50558. #: guix-git/doc/guix.texi:33993
  50559. msgid "By monitoring the number of occurrences of error detections, it is possible to identify if the probability of hardware errors is increasing, and, on such case, do a preventive maintenance to replace a degraded component while those errors are correctable."
  50560. msgstr ""
  50561. #. type: Plain text
  50562. #: guix-git/doc/guix.texi:33997
  50563. msgid "For detailed information about the types of error events gathered and how to make sense of them, see the kernel administrator's guide at @url{https://www.kernel.org/doc/html/latest/admin-guide/ras.html}."
  50564. msgstr ""
  50565. #. type: defvr
  50566. #: guix-git/doc/guix.texi:33998
  50567. #, no-wrap
  50568. msgid "{Scheme Variable} rasdaemon-service-type"
  50569. msgstr ""
  50570. #. type: defvr
  50571. #: guix-git/doc/guix.texi:34001
  50572. msgid "Service type for the @command{rasdaemon} service. It accepts a @code{rasdaemon-configuration} object. Instantiating like"
  50573. msgstr ""
  50574. #. type: lisp
  50575. #: guix-git/doc/guix.texi:34004
  50576. #, no-wrap
  50577. msgid "(service rasdaemon-service-type)\n"
  50578. msgstr ""
  50579. #. type: defvr
  50580. #: guix-git/doc/guix.texi:34008
  50581. msgid "will load with a default configuration, which monitors all events and logs to syslogd."
  50582. msgstr ""
  50583. #. type: deftp
  50584. #: guix-git/doc/guix.texi:34010
  50585. #, fuzzy, no-wrap
  50586. msgid "{Data Type} rasdaemon-configuration"
  50587. msgstr "{数据类型} build-machine"
  50588. #. type: deftp
  50589. #: guix-git/doc/guix.texi:34012
  50590. #, fuzzy
  50591. msgid "The data type representing the configuration of @command{rasdaemon}."
  50592. msgstr "管理操作系统配置。"
  50593. #. type: item
  50594. #: guix-git/doc/guix.texi:34014
  50595. #, fuzzy, no-wrap
  50596. msgid "@code{record?} (default: @code{#f})"
  50597. msgstr "@code{max-zone-size}(默认值:@code{#f})"
  50598. #. type: table
  50599. #: guix-git/doc/guix.texi:34019
  50600. msgid "A boolean indicating whether to record the events in an SQLite database. This provides a more structured access to the information contained in the log file. The database location is hard-coded to @file{/var/lib/rasdaemon/ras-mc_event.db}."
  50601. msgstr ""
  50602. #. type: cindex
  50603. #: guix-git/doc/guix.texi:34023
  50604. #, no-wrap
  50605. msgid "zram"
  50606. msgstr ""
  50607. #. type: cindex
  50608. #: guix-git/doc/guix.texi:34024
  50609. #, no-wrap
  50610. msgid "compressed swap"
  50611. msgstr ""
  50612. #. type: cindex
  50613. #: guix-git/doc/guix.texi:34025
  50614. #, no-wrap
  50615. msgid "Compressed RAM-based block devices"
  50616. msgstr ""
  50617. #. type: subsubheading
  50618. #: guix-git/doc/guix.texi:34026
  50619. #, fuzzy, no-wrap
  50620. msgid "Zram Device Service"
  50621. msgstr "游戏服务"
  50622. #. type: Plain text
  50623. #: guix-git/doc/guix.texi:34032
  50624. 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."
  50625. msgstr ""
  50626. #. type: deffn
  50627. #: guix-git/doc/guix.texi:34033
  50628. #, no-wrap
  50629. msgid "{Scheme Variable} zram-device-service-type"
  50630. msgstr ""
  50631. #. type: deffn
  50632. #: guix-git/doc/guix.texi:34037
  50633. 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."
  50634. msgstr ""
  50635. #. type: deftp
  50636. #: guix-git/doc/guix.texi:34038
  50637. #, no-wrap
  50638. msgid "{Data Type} zram-device-configuration"
  50639. msgstr ""
  50640. #. type: deftp
  50641. #: guix-git/doc/guix.texi:34041
  50642. msgid "This is the data type representing the configuration for the zram-device service."
  50643. msgstr ""
  50644. #. type: item
  50645. #: guix-git/doc/guix.texi:34043
  50646. #, fuzzy, no-wrap
  50647. msgid "@code{size} (default @code{\"1G\"})"
  50648. msgstr "@code{speed}(默认值:@code{1.0})"
  50649. #. type: table
  50650. #: guix-git/doc/guix.texi:34047
  50651. 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}."
  50652. msgstr ""
  50653. #. type: item
  50654. #: guix-git/doc/guix.texi:34047
  50655. #, fuzzy, no-wrap
  50656. msgid "@code{compression-algorithm} (default @code{'lzo})"
  50657. msgstr "@code{compression-level}(默认值:@code{3})"
  50658. #. type: table
  50659. #: guix-git/doc/guix.texi:34051
  50660. 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}."
  50661. msgstr ""
  50662. #. type: item
  50663. #: guix-git/doc/guix.texi:34051
  50664. #, fuzzy, no-wrap
  50665. msgid "@code{memory-limit} (default @code{0})"
  50666. msgstr "@code{port}(默认值:@code{22})"
  50667. #. type: table
  50668. #: guix-git/doc/guix.texi:34058
  50669. 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\"}."
  50670. msgstr ""
  50671. #. type: item
  50672. #: guix-git/doc/guix.texi:34058
  50673. #, fuzzy, no-wrap
  50674. msgid "@code{priority} (default @code{-1})"
  50675. msgstr "@code{port}(默认值:@code{22})"
  50676. #. type: table
  50677. #: guix-git/doc/guix.texi:34063
  50678. 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."
  50679. msgstr ""
  50680. #. type: defvr
  50681. #: guix-git/doc/guix.texi:34071
  50682. #, no-wrap
  50683. msgid "{Scheme Variable} hurd-console-service-type"
  50684. msgstr ""
  50685. #. type: defvr
  50686. #: guix-git/doc/guix.texi:34073
  50687. msgid "This service starts the fancy @code{VGA} console client on the Hurd."
  50688. msgstr ""
  50689. #. type: defvr
  50690. #: guix-git/doc/guix.texi:34075
  50691. msgid "The service's value is a @code{hurd-console-configuration} record."
  50692. msgstr ""
  50693. #. type: deftp
  50694. #: guix-git/doc/guix.texi:34077
  50695. #, no-wrap
  50696. msgid "{Data Type} hurd-console-configuration"
  50697. msgstr ""
  50698. #. type: deftp
  50699. #: guix-git/doc/guix.texi:34080
  50700. msgid "This is the data type representing the configuration for the hurd-console-service."
  50701. msgstr ""
  50702. #. type: item
  50703. #: guix-git/doc/guix.texi:34082 guix-git/doc/guix.texi:34098
  50704. #, fuzzy, no-wrap
  50705. msgid "@code{hurd} (default: @var{hurd})"
  50706. msgstr "@code{port}(默认值:@code{22})"
  50707. #. type: table
  50708. #: guix-git/doc/guix.texi:34084 guix-git/doc/guix.texi:34100
  50709. #, fuzzy
  50710. msgid "The Hurd package to use."
  50711. msgstr "软件包数据类型。"
  50712. #. type: defvr
  50713. #: guix-git/doc/guix.texi:34087
  50714. #, no-wrap
  50715. msgid "{Scheme Variable} hurd-getty-service-type"
  50716. msgstr ""
  50717. #. type: defvr
  50718. #: guix-git/doc/guix.texi:34089
  50719. msgid "This service starts a tty using the Hurd @code{getty} program."
  50720. msgstr ""
  50721. #. type: defvr
  50722. #: guix-git/doc/guix.texi:34091
  50723. msgid "The service's value is a @code{hurd-getty-configuration} record."
  50724. msgstr ""
  50725. #. type: deftp
  50726. #: guix-git/doc/guix.texi:34093
  50727. #, no-wrap
  50728. msgid "{Data Type} hurd-getty-configuration"
  50729. msgstr ""
  50730. #. type: deftp
  50731. #: guix-git/doc/guix.texi:34096
  50732. msgid "This is the data type representing the configuration for the hurd-getty-service."
  50733. msgstr ""
  50734. #. type: table
  50735. #: guix-git/doc/guix.texi:34103
  50736. msgid "The name of the console this Getty runs on---e.g., @code{\"tty1\"}."
  50737. msgstr ""
  50738. #. type: item
  50739. #: guix-git/doc/guix.texi:34104
  50740. #, fuzzy, no-wrap
  50741. msgid "@code{baud-rate} (default: @code{38400})"
  50742. msgstr "@code{mate}(默认值:@code{mate})"
  50743. #. type: table
  50744. #: guix-git/doc/guix.texi:34106
  50745. msgid "An integer specifying the baud rate of the tty."
  50746. msgstr ""
  50747. #. type: cindex
  50748. #: guix-git/doc/guix.texi:34113
  50749. #, no-wrap
  50750. msgid "fingerprint"
  50751. msgstr ""
  50752. #. type: subsubheading
  50753. #: guix-git/doc/guix.texi:34114
  50754. #, no-wrap
  50755. msgid "Fingerprint Service"
  50756. msgstr ""
  50757. #. type: Plain text
  50758. #: guix-git/doc/guix.texi:34118
  50759. msgid "The @code{(gnu services authentication)} module provides a DBus service to read and identify fingerprints via a fingerprint sensor."
  50760. msgstr ""
  50761. #. type: defvr
  50762. #: guix-git/doc/guix.texi:34119
  50763. #, no-wrap
  50764. msgid "{Scheme Variable} fprintd-service-type"
  50765. msgstr ""
  50766. #. type: defvr
  50767. #: guix-git/doc/guix.texi:34122
  50768. msgid "The service type for @command{fprintd}, which provides the fingerprint reading capability."
  50769. msgstr ""
  50770. #. type: lisp
  50771. #: guix-git/doc/guix.texi:34125
  50772. #, no-wrap
  50773. msgid "(service fprintd-service-type)\n"
  50774. msgstr ""
  50775. #. type: cindex
  50776. #: guix-git/doc/guix.texi:34128
  50777. #, no-wrap
  50778. msgid "sysctl"
  50779. msgstr ""
  50780. #. type: subsubheading
  50781. #: guix-git/doc/guix.texi:34129
  50782. #, no-wrap
  50783. msgid "System Control Service"
  50784. msgstr ""
  50785. #. type: Plain text
  50786. #: guix-git/doc/guix.texi:34133
  50787. msgid "The @code{(gnu services sysctl)} provides a service to configure kernel parameters at boot."
  50788. msgstr ""
  50789. #. type: defvr
  50790. #: guix-git/doc/guix.texi:34134
  50791. #, no-wrap
  50792. msgid "{Scheme Variable} sysctl-service-type"
  50793. msgstr ""
  50794. #. type: defvr
  50795. #: guix-git/doc/guix.texi:34138
  50796. msgid "The service type for @command{sysctl}, which modifies kernel parameters under @file{/proc/sys/}. To enable IPv4 forwarding, it can be instantiated as:"
  50797. msgstr ""
  50798. #. type: lisp
  50799. #: guix-git/doc/guix.texi:34143
  50800. #, no-wrap
  50801. msgid ""
  50802. "(service sysctl-service-type\n"
  50803. " (sysctl-configuration\n"
  50804. " (settings '((\"net.ipv4.ip_forward\" . \"1\")))))\n"
  50805. msgstr ""
  50806. #. type: defvr
  50807. #: guix-git/doc/guix.texi:34150
  50808. 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}})."
  50809. msgstr ""
  50810. #. type: lisp
  50811. #: guix-git/doc/guix.texi:34157
  50812. #, no-wrap
  50813. msgid ""
  50814. "(modify-services %base-services\n"
  50815. " (sysctl-service-type config =>\n"
  50816. " (sysctl-configuration\n"
  50817. " (settings (append '((\"net.ipv4.ip_forward\" . \"1\"))\n"
  50818. " %default-sysctl-settings)))))\n"
  50819. msgstr ""
  50820. #. type: deftp
  50821. #: guix-git/doc/guix.texi:34161
  50822. #, no-wrap
  50823. msgid "{Data Type} sysctl-configuration"
  50824. msgstr ""
  50825. #. type: deftp
  50826. #: guix-git/doc/guix.texi:34163
  50827. msgid "The data type representing the configuration of @command{sysctl}."
  50828. msgstr ""
  50829. #. type: item
  50830. #: guix-git/doc/guix.texi:34165
  50831. #, no-wrap
  50832. msgid "@code{sysctl} (default: @code{(file-append procps \"/sbin/sysctl\"})"
  50833. msgstr ""
  50834. #. type: table
  50835. #: guix-git/doc/guix.texi:34167
  50836. msgid "The @command{sysctl} executable to use."
  50837. msgstr ""
  50838. #. type: item
  50839. #: guix-git/doc/guix.texi:34168
  50840. #, fuzzy, no-wrap
  50841. msgid "@code{settings} (default: @code{%default-sysctl-settings})"
  50842. msgstr "@code{mate}(默认值:@code{mate})"
  50843. #. type: table
  50844. #: guix-git/doc/guix.texi:34170
  50845. msgid "An association list specifies kernel parameters and their values."
  50846. msgstr ""
  50847. #. type: defvr
  50848. #: guix-git/doc/guix.texi:34173
  50849. #, no-wrap
  50850. msgid "{Scheme Variable} %default-sysctl-settings"
  50851. msgstr ""
  50852. #. type: defvr
  50853. #: guix-git/doc/guix.texi:34176
  50854. msgid "An association list specifying the default @command{sysctl} parameters on Guix System."
  50855. msgstr ""
  50856. #. type: cindex
  50857. #: guix-git/doc/guix.texi:34178
  50858. #, no-wrap
  50859. msgid "pcscd"
  50860. msgstr ""
  50861. #. type: subsubheading
  50862. #: guix-git/doc/guix.texi:34179
  50863. #, no-wrap
  50864. msgid "PC/SC Smart Card Daemon Service"
  50865. msgstr ""
  50866. #. type: Plain text
  50867. #: guix-git/doc/guix.texi:34186
  50868. 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."
  50869. msgstr ""
  50870. #. type: defvr
  50871. #: guix-git/doc/guix.texi:34187
  50872. #, no-wrap
  50873. msgid "{Scheme Variable} pcscd-service-type"
  50874. msgstr ""
  50875. #. type: defvr
  50876. #: guix-git/doc/guix.texi:34191
  50877. 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:"
  50878. msgstr ""
  50879. #. type: lisp
  50880. #: guix-git/doc/guix.texi:34194
  50881. #, no-wrap
  50882. msgid "(service pcscd-service-type)\n"
  50883. msgstr ""
  50884. #. type: deftp
  50885. #: guix-git/doc/guix.texi:34197
  50886. #, no-wrap
  50887. msgid "{Data Type} pcscd-configuration"
  50888. msgstr ""
  50889. #. type: deftp
  50890. #: guix-git/doc/guix.texi:34199
  50891. msgid "The data type representing the configuration of @command{pcscd}."
  50892. msgstr ""
  50893. #. type: item
  50894. #: guix-git/doc/guix.texi:34201
  50895. #, no-wrap
  50896. msgid "@code{pcsc-lite} (default: @code{pcsc-lite})"
  50897. msgstr ""
  50898. #. type: table
  50899. #: guix-git/doc/guix.texi:34203
  50900. msgid "The pcsc-lite package that provides pcscd."
  50901. msgstr ""
  50902. #. type: item
  50903. #: guix-git/doc/guix.texi:34203
  50904. #, no-wrap
  50905. msgid "@code{usb-drivers} (default: @code{(list ccid)})"
  50906. msgstr ""
  50907. #. type: table
  50908. #: guix-git/doc/guix.texi:34206
  50909. 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."
  50910. msgstr ""
  50911. #. type: cindex
  50912. #: guix-git/doc/guix.texi:34209
  50913. #, no-wrap
  50914. msgid "lirc"
  50915. msgstr ""
  50916. #. type: subsubheading
  50917. #: guix-git/doc/guix.texi:34210
  50918. #, no-wrap
  50919. msgid "Lirc Service"
  50920. msgstr ""
  50921. #. type: Plain text
  50922. #: guix-git/doc/guix.texi:34213
  50923. msgid "The @code{(gnu services lirc)} module provides the following service."
  50924. msgstr ""
  50925. #. type: deffn
  50926. #: guix-git/doc/guix.texi:34214
  50927. #, no-wrap
  50928. msgid "{Scheme Procedure} lirc-service [#:lirc lirc] @"
  50929. msgstr ""
  50930. #. type: deffn
  50931. #: guix-git/doc/guix.texi:34219
  50932. 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."
  50933. msgstr ""
  50934. #. type: deffn
  50935. #: guix-git/doc/guix.texi:34223
  50936. msgid "Optionally, @var{device}, @var{driver} and @var{config-file} (configuration file name) may be specified. See @command{lircd} manual for details."
  50937. msgstr ""
  50938. #. type: deffn
  50939. #: guix-git/doc/guix.texi:34226
  50940. msgid "Finally, @var{extra-options} is a list of additional command-line options passed to @command{lircd}."
  50941. msgstr ""
  50942. #. type: cindex
  50943. #: guix-git/doc/guix.texi:34228
  50944. #, no-wrap
  50945. msgid "spice"
  50946. msgstr ""
  50947. #. type: subsubheading
  50948. #: guix-git/doc/guix.texi:34229
  50949. #, no-wrap
  50950. msgid "Spice Service"
  50951. msgstr ""
  50952. #. type: Plain text
  50953. #: guix-git/doc/guix.texi:34232
  50954. msgid "The @code{(gnu services spice)} module provides the following service."
  50955. msgstr ""
  50956. #. type: deffn
  50957. #: guix-git/doc/guix.texi:34233
  50958. #, no-wrap
  50959. msgid "{Scheme Procedure} spice-vdagent-service [#:spice-vdagent]"
  50960. msgstr ""
  50961. #. type: deffn
  50962. #: guix-git/doc/guix.texi:34237
  50963. 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."
  50964. msgstr ""
  50965. #. type: cindex
  50966. #: guix-git/doc/guix.texi:34239
  50967. #, no-wrap
  50968. msgid "inputattach"
  50969. msgstr ""
  50970. #. type: subsubheading
  50971. #: guix-git/doc/guix.texi:34240
  50972. #, no-wrap
  50973. msgid "inputattach Service"
  50974. msgstr ""
  50975. #. type: cindex
  50976. #: guix-git/doc/guix.texi:34242
  50977. #, no-wrap
  50978. msgid "tablet input, for Xorg"
  50979. msgstr ""
  50980. #. type: cindex
  50981. #: guix-git/doc/guix.texi:34243
  50982. #, no-wrap
  50983. msgid "touchscreen input, for Xorg"
  50984. msgstr ""
  50985. #. type: Plain text
  50986. #: guix-git/doc/guix.texi:34247
  50987. 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."
  50988. msgstr ""
  50989. #. type: deffn
  50990. #: guix-git/doc/guix.texi:34248
  50991. #, no-wrap
  50992. msgid "{Scheme Variable} inputattach-service-type"
  50993. msgstr ""
  50994. #. type: deffn
  50995. #: guix-git/doc/guix.texi:34251
  50996. msgid "Type of a service that runs @command{inputattach} on a device and dispatches events from it."
  50997. msgstr ""
  50998. #. type: deftp
  50999. #: guix-git/doc/guix.texi:34253
  51000. #, no-wrap
  51001. msgid "{Data Type} inputattach-configuration"
  51002. msgstr ""
  51003. #. type: item
  51004. #: guix-git/doc/guix.texi:34255
  51005. #, no-wrap
  51006. msgid "@code{device-type} (default: @code{\"wacom\"})"
  51007. msgstr ""
  51008. #. type: table
  51009. #: guix-git/doc/guix.texi:34258
  51010. 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."
  51011. msgstr ""
  51012. #. type: item
  51013. #: guix-git/doc/guix.texi:34259
  51014. #, no-wrap
  51015. msgid "@code{device} (default: @code{\"/dev/ttyS0\"})"
  51016. msgstr ""
  51017. #. type: table
  51018. #: guix-git/doc/guix.texi:34261
  51019. msgid "The device file to connect to the device."
  51020. msgstr ""
  51021. #. type: table
  51022. #: guix-git/doc/guix.texi:34265
  51023. msgid "Baud rate to use for the serial connection. Should be a number or @code{#f}."
  51024. msgstr ""
  51025. #. type: item
  51026. #: guix-git/doc/guix.texi:34266
  51027. #, no-wrap
  51028. msgid "@code{log-file} (default: @code{#f})"
  51029. msgstr ""
  51030. #. type: table
  51031. #: guix-git/doc/guix.texi:34268
  51032. msgid "If true, this must be the name of a file to log messages to."
  51033. msgstr ""
  51034. #. type: subsubheading
  51035. #: guix-git/doc/guix.texi:34271
  51036. #, fuzzy, no-wrap
  51037. msgid "Dictionary Service"
  51038. msgstr "定义服务"
  51039. #. type: cindex
  51040. #: guix-git/doc/guix.texi:34272
  51041. #, no-wrap
  51042. msgid "dictionary"
  51043. msgstr ""
  51044. #. type: Plain text
  51045. #: guix-git/doc/guix.texi:34274
  51046. msgid "The @code{(gnu services dict)} module provides the following service:"
  51047. msgstr ""
  51048. #. type: defvr
  51049. #: guix-git/doc/guix.texi:34275
  51050. #, no-wrap
  51051. msgid "{Scheme Variable} dicod-service-type"
  51052. msgstr ""
  51053. #. type: defvr
  51054. #: guix-git/doc/guix.texi:34278
  51055. 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})."
  51056. msgstr ""
  51057. #. type: deffn
  51058. #: guix-git/doc/guix.texi:34280
  51059. #, no-wrap
  51060. msgid "{Scheme Procedure} dicod-service [#:config (dicod-configuration)]"
  51061. msgstr ""
  51062. #. type: deffn
  51063. #: guix-git/doc/guix.texi:34283
  51064. msgid "Return a service that runs the @command{dicod} daemon, an implementation of DICT server (@pxref{Dicod,,, dico, GNU Dico Manual})."
  51065. msgstr ""
  51066. #. type: deffn
  51067. #: guix-git/doc/guix.texi:34287
  51068. 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."
  51069. msgstr ""
  51070. #. type: deffn
  51071. #: guix-git/doc/guix.texi:34291
  51072. 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})."
  51073. msgstr ""
  51074. #. type: deftp
  51075. #: guix-git/doc/guix.texi:34293
  51076. #, no-wrap
  51077. msgid "{Data Type} dicod-configuration"
  51078. msgstr ""
  51079. #. type: deftp
  51080. #: guix-git/doc/guix.texi:34295
  51081. msgid "Data type representing the configuration of dicod."
  51082. msgstr ""
  51083. #. type: item
  51084. #: guix-git/doc/guix.texi:34297
  51085. #, no-wrap
  51086. msgid "@code{dico} (default: @var{dico})"
  51087. msgstr ""
  51088. #. type: table
  51089. #: guix-git/doc/guix.texi:34299
  51090. msgid "Package object of the GNU Dico dictionary server."
  51091. msgstr ""
  51092. #. type: item
  51093. #: guix-git/doc/guix.texi:34300
  51094. #, no-wrap
  51095. msgid "@code{interfaces} (default: @var{'(\"localhost\")})"
  51096. msgstr ""
  51097. #. type: table
  51098. #: guix-git/doc/guix.texi:34304
  51099. 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})."
  51100. msgstr ""
  51101. #. type: item
  51102. #: guix-git/doc/guix.texi:34305
  51103. #, no-wrap
  51104. msgid "@code{handlers} (default: @var{'()})"
  51105. msgstr ""
  51106. #. type: table
  51107. #: guix-git/doc/guix.texi:34307
  51108. msgid "List of @code{<dicod-handler>} objects denoting handlers (module instances)."
  51109. msgstr ""
  51110. #. type: item
  51111. #: guix-git/doc/guix.texi:34308
  51112. #, no-wrap
  51113. msgid "@code{databases} (default: @var{(list %dicod-database:gcide)})"
  51114. msgstr ""
  51115. #. type: table
  51116. #: guix-git/doc/guix.texi:34310
  51117. msgid "List of @code{<dicod-database>} objects denoting dictionaries to be served."
  51118. msgstr ""
  51119. #. type: deftp
  51120. #: guix-git/doc/guix.texi:34313
  51121. #, no-wrap
  51122. msgid "{Data Type} dicod-handler"
  51123. msgstr ""
  51124. #. type: deftp
  51125. #: guix-git/doc/guix.texi:34315
  51126. msgid "Data type representing a dictionary handler (module instance)."
  51127. msgstr ""
  51128. #. type: table
  51129. #: guix-git/doc/guix.texi:34319
  51130. msgid "Name of the handler (module instance)."
  51131. msgstr ""
  51132. #. type: item
  51133. #: guix-git/doc/guix.texi:34320
  51134. #, no-wrap
  51135. msgid "@code{module} (default: @var{#f})"
  51136. msgstr ""
  51137. #. type: table
  51138. #: guix-git/doc/guix.texi:34324
  51139. 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})."
  51140. msgstr ""
  51141. #. type: table
  51142. #: guix-git/doc/guix.texi:34327
  51143. msgid "List of strings or gexps representing the arguments for the module handler"
  51144. msgstr ""
  51145. #. type: deftp
  51146. #: guix-git/doc/guix.texi:34330
  51147. #, no-wrap
  51148. msgid "{Data Type} dicod-database"
  51149. msgstr ""
  51150. #. type: deftp
  51151. #: guix-git/doc/guix.texi:34332
  51152. msgid "Data type representing a dictionary database."
  51153. msgstr ""
  51154. #. type: table
  51155. #: guix-git/doc/guix.texi:34336
  51156. msgid "Name of the database, will be used in DICT commands."
  51157. msgstr ""
  51158. #. type: code{#1}
  51159. #: guix-git/doc/guix.texi:34337
  51160. #, no-wrap
  51161. msgid "handler"
  51162. msgstr ""
  51163. #. type: table
  51164. #: guix-git/doc/guix.texi:34340
  51165. msgid "Name of the dicod handler (module instance) used by this database (@pxref{Handlers,,, dico, GNU Dico Manual})."
  51166. msgstr ""
  51167. #. type: item
  51168. #: guix-git/doc/guix.texi:34341
  51169. #, no-wrap
  51170. msgid "@code{complex?} (default: @var{#f})"
  51171. msgstr ""
  51172. #. type: table
  51173. #: guix-git/doc/guix.texi:34344
  51174. msgid "Whether the database configuration complex. The complex configuration will need a corresponding @code{<dicod-handler>} object, otherwise not."
  51175. msgstr ""
  51176. #. type: table
  51177. #: guix-git/doc/guix.texi:34348
  51178. msgid "List of strings or gexps representing the arguments for the database (@pxref{Databases,,, dico, GNU Dico Manual})."
  51179. msgstr ""
  51180. #. type: defvr
  51181. #: guix-git/doc/guix.texi:34351
  51182. #, no-wrap
  51183. msgid "{Scheme Variable} %dicod-database:gcide"
  51184. msgstr ""
  51185. #. type: defvr
  51186. #: guix-git/doc/guix.texi:34354
  51187. msgid "A @code{<dicod-database>} object serving the GNU Collaborative International Dictionary of English using the @code{gcide} package."
  51188. msgstr ""
  51189. #. type: Plain text
  51190. #: guix-git/doc/guix.texi:34357
  51191. msgid "The following is an example @code{dicod-service} configuration."
  51192. msgstr ""
  51193. #. type: lisp
  51194. #: guix-git/doc/guix.texi:34372
  51195. #, no-wrap
  51196. msgid ""
  51197. "(dicod-service #:config\n"
  51198. " (dicod-configuration\n"
  51199. " (handlers (list (dicod-handler\n"
  51200. " (name \"wordnet\")\n"
  51201. " (module \"dictorg\")\n"
  51202. " (options\n"
  51203. " (list #~(string-append \"dbdir=\" #$wordnet))))))\n"
  51204. " (databases (list (dicod-database\n"
  51205. " (name \"wordnet\")\n"
  51206. " (complex? #t)\n"
  51207. " (handler \"wordnet\")\n"
  51208. " (options '(\"database=wn\")))\n"
  51209. " %dicod-database:gcide))))\n"
  51210. msgstr ""
  51211. #. type: cindex
  51212. #: guix-git/doc/guix.texi:34374
  51213. #, no-wrap
  51214. msgid "Docker"
  51215. msgstr ""
  51216. #. type: subsubheading
  51217. #: guix-git/doc/guix.texi:34375
  51218. #, no-wrap
  51219. msgid "Docker Service"
  51220. msgstr ""
  51221. #. type: Plain text
  51222. #: guix-git/doc/guix.texi:34378
  51223. msgid "The @code{(gnu services docker)} module provides the following services."
  51224. msgstr ""
  51225. #. type: defvr
  51226. #: guix-git/doc/guix.texi:34379
  51227. #, no-wrap
  51228. msgid "{Scheme Variable} docker-service-type"
  51229. msgstr ""
  51230. #. type: defvr
  51231. #: guix-git/doc/guix.texi:34384
  51232. 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."
  51233. msgstr ""
  51234. #. type: deftp
  51235. #: guix-git/doc/guix.texi:34387
  51236. #, no-wrap
  51237. msgid "{Data Type} docker-configuration"
  51238. msgstr ""
  51239. #. type: deftp
  51240. #: guix-git/doc/guix.texi:34389
  51241. msgid "This is the data type representing the configuration of Docker and Containerd."
  51242. msgstr ""
  51243. #. type: item
  51244. #: guix-git/doc/guix.texi:34392
  51245. #, fuzzy, no-wrap
  51246. msgid "@code{docker} (default: @code{docker})"
  51247. msgstr "@code{xfce}(默认值:@code{xfce})"
  51248. #. type: table
  51249. #: guix-git/doc/guix.texi:34394
  51250. msgid "The Docker daemon package to use."
  51251. msgstr ""
  51252. #. type: item
  51253. #: guix-git/doc/guix.texi:34395
  51254. #, fuzzy, no-wrap
  51255. msgid "@code{docker-cli} (default: @code{docker-cli})"
  51256. msgstr "@code{xfce}(默认值:@code{xfce})"
  51257. #. type: table
  51258. #: guix-git/doc/guix.texi:34397
  51259. msgid "The Docker client package to use."
  51260. msgstr ""
  51261. #. type: item
  51262. #: guix-git/doc/guix.texi:34398
  51263. #, no-wrap
  51264. msgid "@code{containerd} (default: @var{containerd})"
  51265. msgstr ""
  51266. #. type: table
  51267. #: guix-git/doc/guix.texi:34400
  51268. msgid "The Containerd package to use."
  51269. msgstr ""
  51270. #. type: item
  51271. #: guix-git/doc/guix.texi:34401
  51272. #, no-wrap
  51273. msgid "@code{proxy} (default @var{docker-libnetwork-cmd-proxy})"
  51274. msgstr ""
  51275. #. type: table
  51276. #: guix-git/doc/guix.texi:34403
  51277. msgid "The Docker user-land networking proxy package to use."
  51278. msgstr ""
  51279. #. type: item
  51280. #: guix-git/doc/guix.texi:34404
  51281. #, fuzzy, no-wrap
  51282. msgid "@code{enable-proxy?} (default @code{#t})"
  51283. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51284. #. type: table
  51285. #: guix-git/doc/guix.texi:34406
  51286. msgid "Enable or disable the use of the Docker user-land networking proxy."
  51287. msgstr ""
  51288. #. type: item
  51289. #: guix-git/doc/guix.texi:34407
  51290. #, fuzzy, no-wrap
  51291. msgid "@code{debug?} (default @code{#f})"
  51292. msgstr "@code{challenge}(默认值:@code{#f})"
  51293. #. type: table
  51294. #: guix-git/doc/guix.texi:34409
  51295. #, fuzzy
  51296. msgid "Enable or disable debug output."
  51297. msgstr "怎么开启或关闭substitute。"
  51298. #. type: item
  51299. #: guix-git/doc/guix.texi:34410
  51300. #, fuzzy, no-wrap
  51301. msgid "@code{enable-iptables?} (default @code{#t})"
  51302. msgstr "@code{mate}(默认值:@code{mate})"
  51303. #. type: table
  51304. #: guix-git/doc/guix.texi:34412
  51305. msgid "Enable or disable the addition of iptables rules."
  51306. msgstr ""
  51307. #. type: item
  51308. #: guix-git/doc/guix.texi:34413
  51309. #, fuzzy, no-wrap
  51310. msgid "@code{environment-variables} (default: @code{()})"
  51311. msgstr "@code{features} (@code{'()})"
  51312. #. type: table
  51313. #: guix-git/doc/guix.texi:34415
  51314. msgid "List of environment variables to set for @command{dockerd}."
  51315. msgstr ""
  51316. #. type: table
  51317. #: guix-git/doc/guix.texi:34418
  51318. msgid "This must be a list of strings where each string has the form @samp{@var{key}=@var{value}} as in this example:"
  51319. msgstr ""
  51320. #. type: lisp
  51321. #: guix-git/doc/guix.texi:34422
  51322. #, no-wrap
  51323. msgid ""
  51324. "(list \"LANGUAGE=eo:ca:eu\"\n"
  51325. " \"TMPDIR=/tmp/dockerd\")\n"
  51326. msgstr ""
  51327. #. type: cindex
  51328. #: guix-git/doc/guix.texi:34427
  51329. #, no-wrap
  51330. msgid "Singularity, container service"
  51331. msgstr ""
  51332. #. type: defvr
  51333. #: guix-git/doc/guix.texi:34428
  51334. #, no-wrap
  51335. msgid "{Scheme Variable} singularity-service-type"
  51336. msgstr ""
  51337. #. type: defvr
  51338. #: guix-git/doc/guix.texi:34433
  51339. 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."
  51340. msgstr ""
  51341. #. type: defvr
  51342. #: guix-git/doc/guix.texi:34437
  51343. 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."
  51344. msgstr ""
  51345. #. type: cindex
  51346. #: guix-git/doc/guix.texi:34439
  51347. #, no-wrap
  51348. msgid "Audit"
  51349. msgstr ""
  51350. #. type: subsubheading
  51351. #: guix-git/doc/guix.texi:34440
  51352. #, fuzzy, no-wrap
  51353. msgid "Auditd Service"
  51354. msgstr "音频服务"
  51355. #. type: Plain text
  51356. #: guix-git/doc/guix.texi:34443
  51357. msgid "The @code{(gnu services auditd)} module provides the following service."
  51358. msgstr ""
  51359. #. type: defvr
  51360. #: guix-git/doc/guix.texi:34444
  51361. #, no-wrap
  51362. msgid "{Scheme Variable} auditd-service-type"
  51363. msgstr ""
  51364. #. type: defvr
  51365. #: guix-git/doc/guix.texi:34449
  51366. 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."
  51367. msgstr ""
  51368. #. type: defvr
  51369. #: guix-git/doc/guix.texi:34451
  51370. msgid "Examples of things that can be tracked:"
  51371. msgstr ""
  51372. #. type: enumerate
  51373. #: guix-git/doc/guix.texi:34455
  51374. #, fuzzy
  51375. msgid "File accesses"
  51376. msgstr "文件系统"
  51377. #. type: enumerate
  51378. #: guix-git/doc/guix.texi:34457
  51379. #, fuzzy
  51380. msgid "System calls"
  51381. msgstr "系统安装"
  51382. #. type: enumerate
  51383. #: guix-git/doc/guix.texi:34459
  51384. msgid "Invoked commands"
  51385. msgstr ""
  51386. #. type: enumerate
  51387. #: guix-git/doc/guix.texi:34461
  51388. msgid "Failed login attempts"
  51389. msgstr ""
  51390. #. type: enumerate
  51391. #: guix-git/doc/guix.texi:34463
  51392. msgid "Firewall filtering"
  51393. msgstr ""
  51394. #. type: enumerate
  51395. #: guix-git/doc/guix.texi:34465
  51396. #, fuzzy
  51397. msgid "Network access"
  51398. msgstr "网络服务"
  51399. #. type: defvr
  51400. #: guix-git/doc/guix.texi:34476
  51401. 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}."
  51402. msgstr ""
  51403. #. type: deftp
  51404. #: guix-git/doc/guix.texi:34479
  51405. #, fuzzy, no-wrap
  51406. msgid "{Data Type} auditd-configuration"
  51407. msgstr "{数据类型} build-machine"
  51408. #. type: deftp
  51409. #: guix-git/doc/guix.texi:34481
  51410. msgid "This is the data type representing the configuration of auditd."
  51411. msgstr ""
  51412. #. type: item
  51413. #: guix-git/doc/guix.texi:34484
  51414. #, fuzzy, no-wrap
  51415. msgid "@code{audit} (default: @code{audit})"
  51416. msgstr "@code{mate}(默认值:@code{mate})"
  51417. #. type: table
  51418. #: guix-git/doc/guix.texi:34486
  51419. #, fuzzy
  51420. msgid "The audit package to use."
  51421. msgstr "软件包数据类型。"
  51422. #. type: item
  51423. #: guix-git/doc/guix.texi:34487
  51424. #, no-wrap
  51425. msgid "@code{configuration-directory} (default: @code{%default-auditd-configuration-directory})"
  51426. msgstr ""
  51427. #. type: table
  51428. #: guix-git/doc/guix.texi:34491
  51429. 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."
  51430. msgstr ""
  51431. #. type: cindex
  51432. #: guix-git/doc/guix.texi:34495
  51433. #, no-wrap
  51434. msgid "rshiny"
  51435. msgstr ""
  51436. #. type: subsubheading
  51437. #: guix-git/doc/guix.texi:34496
  51438. #, fuzzy, no-wrap
  51439. msgid "R-Shiny service"
  51440. msgstr "电话服务。"
  51441. #. type: Plain text
  51442. #: guix-git/doc/guix.texi:34499
  51443. msgid "The @code{(gnu services science)} module provides the following service."
  51444. msgstr ""
  51445. #. type: defvr
  51446. #: guix-git/doc/guix.texi:34500
  51447. #, no-wrap
  51448. msgid "{Scheme Variable} rshiny-service-type"
  51449. msgstr ""
  51450. #. type: defvr
  51451. #: guix-git/doc/guix.texi:34505
  51452. 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}."
  51453. msgstr ""
  51454. #. type: deftp
  51455. #: guix-git/doc/guix.texi:34506
  51456. #, no-wrap
  51457. msgid "{Data Type} rshiny-configuration"
  51458. msgstr ""
  51459. #. type: deftp
  51460. #: guix-git/doc/guix.texi:34508
  51461. msgid "This is the data type representing the configuration of rshiny."
  51462. msgstr ""
  51463. #. type: item
  51464. #: guix-git/doc/guix.texi:34511
  51465. #, fuzzy, no-wrap
  51466. msgid "@code{package} (default: @code{r-shiny})"
  51467. msgstr "@code{challenge}(默认值:@code{#f})"
  51468. #. type: table
  51469. #: guix-git/doc/guix.texi:34513
  51470. #, fuzzy
  51471. msgid "The package to use."
  51472. msgstr "软件包数据类型。"
  51473. #. type: item
  51474. #: guix-git/doc/guix.texi:34514
  51475. #, fuzzy, no-wrap
  51476. msgid "@code{binary} (defaunlt @code{\"rshiny\"})"
  51477. msgstr "@code{display}(默认值:@code{\":0\"})"
  51478. #. type: table
  51479. #: guix-git/doc/guix.texi:34517
  51480. msgid "The name of the binary or shell script located at @code{package/bin/} to run when the service is run."
  51481. msgstr ""
  51482. #. type: table
  51483. #: guix-git/doc/guix.texi:34519
  51484. msgid "The common way to create this file is as follows:"
  51485. msgstr ""
  51486. #. type: lisp
  51487. #: guix-git/doc/guix.texi:34536
  51488. #, no-wrap
  51489. msgid ""
  51490. "@dots{}\n"
  51491. "(let* ((out (assoc-ref %outputs \"out\"))\n"
  51492. " (targetdir (string-append out \"/share/\" ,name))\n"
  51493. " (app (string-append out \"/bin/\" ,name))\n"
  51494. " (Rbin (search-input-file %build-inputs \"/bin/Rscript\")))\n"
  51495. " ;; @dots{}\n"
  51496. " (mkdir-p (string-append out \"/bin\"))\n"
  51497. " (call-with-output-file app\n"
  51498. " (lambda (port)\n"
  51499. " (format port\n"
  51500. "\"#!~a\n"
  51501. "library(shiny)\n"
  51502. "setwd(\\\"~a\\\")\n"
  51503. "runApp(launch.browser=0, port=4202)~%\\n\"\n"
  51504. " Rbin targetdir))))\n"
  51505. msgstr ""
  51506. #. type: cindex
  51507. #: guix-git/doc/guix.texi:34542
  51508. #, no-wrap
  51509. msgid "Nix"
  51510. msgstr ""
  51511. #. type: subsubheading
  51512. #: guix-git/doc/guix.texi:34543
  51513. #, fuzzy, no-wrap
  51514. msgid "Nix service"
  51515. msgstr "DNS服务"
  51516. #. type: Plain text
  51517. #: guix-git/doc/guix.texi:34546
  51518. msgid "The @code{(gnu services nix)} module provides the following service."
  51519. msgstr ""
  51520. #. type: defvr
  51521. #: guix-git/doc/guix.texi:34547
  51522. #, no-wrap
  51523. msgid "{Scheme Variable} nix-service-type"
  51524. msgstr ""
  51525. #. type: defvr
  51526. #: guix-git/doc/guix.texi:34552
  51527. 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:"
  51528. msgstr ""
  51529. #. type: lisp
  51530. #: guix-git/doc/guix.texi:34557
  51531. #, no-wrap
  51532. msgid ""
  51533. "(use-modules (gnu))\n"
  51534. "(use-service-modules nix)\n"
  51535. "(use-package-modules package-management)\n"
  51536. "\n"
  51537. msgstr ""
  51538. #. type: lisp
  51539. #: guix-git/doc/guix.texi:34562
  51540. #, no-wrap
  51541. msgid ""
  51542. "(operating-system\n"
  51543. " ;; @dots{}\n"
  51544. " (packages (append (list nix)\n"
  51545. " %base-packages))\n"
  51546. "\n"
  51547. msgstr ""
  51548. #. type: lisp
  51549. #: guix-git/doc/guix.texi:34565
  51550. #, no-wrap
  51551. msgid ""
  51552. " (services (append (list (service nix-service-type))\n"
  51553. " %base-services)))\n"
  51554. msgstr ""
  51555. #. type: defvr
  51556. #: guix-git/doc/guix.texi:34568
  51557. msgid "After @command{guix system reconfigure} configure Nix for your user:"
  51558. msgstr ""
  51559. #. type: item
  51560. #: guix-git/doc/guix.texi:34570
  51561. #, no-wrap
  51562. msgid "Add a Nix channel and update it. See"
  51563. msgstr ""
  51564. #. type: itemize
  51565. #: guix-git/doc/guix.texi:34572
  51566. msgid "@url{https://nixos.org/nix/manual/, Nix Package Manager Guide}."
  51567. msgstr ""
  51568. #. type: item
  51569. #: guix-git/doc/guix.texi:34573
  51570. #, no-wrap
  51571. msgid "Create a symlink to your profile and activate Nix profile:"
  51572. msgstr ""
  51573. #. type: example
  51574. #: guix-git/doc/guix.texi:34579
  51575. #, no-wrap
  51576. msgid ""
  51577. "$ ln -s \"/nix/var/nix/profiles/per-user/$USER/profile\" ~/.nix-profile\n"
  51578. "$ source /run/current-system/profile/etc/profile.d/nix.sh\n"
  51579. msgstr ""
  51580. #. type: deftp
  51581. #: guix-git/doc/guix.texi:34583
  51582. #, fuzzy, no-wrap
  51583. msgid "{Data Type} nix-configuration"
  51584. msgstr "{数据类型} build-machine"
  51585. #. type: deftp
  51586. #: guix-git/doc/guix.texi:34585
  51587. msgid "This data type represents the configuration of the Nix daemon."
  51588. msgstr ""
  51589. #. type: item
  51590. #: guix-git/doc/guix.texi:34587
  51591. #, fuzzy, no-wrap
  51592. msgid "@code{nix} (default: @code{nix})"
  51593. msgstr "@code{xfce}(默认值:@code{xfce})"
  51594. #. type: table
  51595. #: guix-git/doc/guix.texi:34589
  51596. #, fuzzy
  51597. msgid "The Nix package to use."
  51598. msgstr "软件包数据类型。"
  51599. #. type: item
  51600. #: guix-git/doc/guix.texi:34590
  51601. #, fuzzy, no-wrap
  51602. msgid "@code{sandbox} (default: @code{#t})"
  51603. msgstr "@code{speed}(默认值:@code{1.0})"
  51604. #. type: table
  51605. #: guix-git/doc/guix.texi:34592
  51606. msgid "Specifies whether builds are sandboxed by default."
  51607. msgstr ""
  51608. #. type: item
  51609. #: guix-git/doc/guix.texi:34593
  51610. #, fuzzy, no-wrap
  51611. msgid "@code{build-sandbox-items} (default: @code{'()})"
  51612. msgstr "@code{includes}(默认值:@code{'()})"
  51613. #. type: table
  51614. #: guix-git/doc/guix.texi:34596
  51615. msgid "This is a list of strings or objects appended to the @code{build-sandbox-items} field of the configuration file."
  51616. msgstr ""
  51617. #. type: table
  51618. #: guix-git/doc/guix.texi:34604
  51619. msgid "Extra command line options for @code{nix-service-type}."
  51620. msgstr ""
  51621. #. type: cindex
  51622. #: guix-git/doc/guix.texi:34610
  51623. #, no-wrap
  51624. msgid "setuid programs"
  51625. msgstr ""
  51626. #. type: Plain text
  51627. #: guix-git/doc/guix.texi:34620
  51628. 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)."
  51629. msgstr ""
  51630. #. type: Plain text
  51631. #: guix-git/doc/guix.texi:34627
  51632. 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."
  51633. msgstr ""
  51634. #. type: Plain text
  51635. #: guix-git/doc/guix.texi:34634
  51636. msgid "The @code{setuid-programs} field of an @code{operating-system} declaration contains a list of @code{<setuid-program>} denoting the names of programs to have a setuid or setgid bit set (@pxref{Using the Configuration System}). For instance, the @command{mount.nfs} program, which is part of the nfs-utils package, with a setuid root can be designated like this:"
  51637. msgstr ""
  51638. #. type: lisp
  51639. #: guix-git/doc/guix.texi:34638
  51640. #, no-wrap
  51641. msgid ""
  51642. "(setuid-program\n"
  51643. " (program (file-append nfs-utils \"/sbin/mount.nfs\")))\n"
  51644. msgstr ""
  51645. #. type: Plain text
  51646. #: guix-git/doc/guix.texi:34643
  51647. msgid "And then, to make @command{mount.nfs} setuid on your system, add the previous example to your operating system declaration by appending it to @code{%setuid-programs} like this:"
  51648. msgstr ""
  51649. #. type: lisp
  51650. #: guix-git/doc/guix.texi:34651
  51651. #, no-wrap
  51652. msgid ""
  51653. "(operating-system\n"
  51654. " ;; Some fields omitted...\n"
  51655. " (setuid-programs\n"
  51656. " (append (list (setuid-program\n"
  51657. " (program (file-append nfs-utils \"/sbin/mount.nfs\"))))\n"
  51658. " %setuid-programs)))\n"
  51659. msgstr ""
  51660. #. type: deftp
  51661. #: guix-git/doc/guix.texi:34653
  51662. #, fuzzy, no-wrap
  51663. msgid "{Data Type} setuid-program"
  51664. msgstr "{数据类型} build-machine"
  51665. #. type: deftp
  51666. #: guix-git/doc/guix.texi:34655
  51667. #, fuzzy
  51668. msgid "This data type represents a program with a setuid or setgid bit set."
  51669. msgstr "管理操作系统配置。"
  51670. #. type: code{#1}
  51671. #: guix-git/doc/guix.texi:34657
  51672. #, no-wrap
  51673. msgid "program"
  51674. msgstr ""
  51675. #. type: table
  51676. #: guix-git/doc/guix.texi:34659
  51677. msgid "A file-like object having its setuid and/or setgid bit set."
  51678. msgstr ""
  51679. #. type: item
  51680. #: guix-git/doc/guix.texi:34660
  51681. #, fuzzy, no-wrap
  51682. msgid "@code{setuid?} (default: @code{#t})"
  51683. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51684. #. type: table
  51685. #: guix-git/doc/guix.texi:34662
  51686. msgid "Whether to set user setuid bit."
  51687. msgstr ""
  51688. #. type: item
  51689. #: guix-git/doc/guix.texi:34663
  51690. #, fuzzy, no-wrap
  51691. msgid "@code{setgid?} (default: @code{#f})"
  51692. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  51693. #. type: table
  51694. #: guix-git/doc/guix.texi:34665
  51695. msgid "Whether to set group setgid bit."
  51696. msgstr ""
  51697. #. type: item
  51698. #: guix-git/doc/guix.texi:34666
  51699. #, fuzzy, no-wrap
  51700. msgid "@code{user} (default: @code{0})"
  51701. msgstr "@code{port}(默认值:@code{22})"
  51702. #. type: table
  51703. #: guix-git/doc/guix.texi:34669
  51704. msgid "UID (integer) or user name (string) for the user owner of the program, defaults to root."
  51705. msgstr ""
  51706. #. type: item
  51707. #: guix-git/doc/guix.texi:34670
  51708. #, fuzzy, no-wrap
  51709. msgid "@code{group} (default: @code{0})"
  51710. msgstr "@code{gnome}(默认值:@code{gnome})"
  51711. #. type: table
  51712. #: guix-git/doc/guix.texi:34673
  51713. msgid "GID (integer) goup name (string) for the group owner of the program, defaults to root."
  51714. msgstr ""
  51715. #. type: Plain text
  51716. #: guix-git/doc/guix.texi:34679
  51717. msgid "A default set of setuid programs is defined by the @code{%setuid-programs} variable of the @code{(gnu system)} module."
  51718. msgstr ""
  51719. #. type: defvr
  51720. #: guix-git/doc/guix.texi:34680
  51721. #, no-wrap
  51722. msgid "{Scheme Variable} %setuid-programs"
  51723. msgstr ""
  51724. #. type: defvr
  51725. #: guix-git/doc/guix.texi:34683
  51726. msgid "A list of @code{<setuid-program>} denoting common programs that are setuid-root."
  51727. msgstr ""
  51728. #. type: defvr
  51729. #: guix-git/doc/guix.texi:34686
  51730. msgid "The list includes commands such as @command{passwd}, @command{ping}, @command{su}, and @command{sudo}."
  51731. msgstr ""
  51732. #. type: Plain text
  51733. #: guix-git/doc/guix.texi:34692
  51734. 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."
  51735. msgstr ""
  51736. #. type: cindex
  51737. #: guix-git/doc/guix.texi:34696
  51738. #, no-wrap
  51739. msgid "HTTPS, certificates"
  51740. msgstr ""
  51741. #. type: cindex
  51742. #: guix-git/doc/guix.texi:34697
  51743. #, no-wrap
  51744. msgid "X.509 certificates"
  51745. msgstr ""
  51746. #. type: cindex
  51747. #: guix-git/doc/guix.texi:34698
  51748. #, no-wrap
  51749. msgid "TLS"
  51750. msgstr ""
  51751. #. type: Plain text
  51752. #: guix-git/doc/guix.texi:34705
  51753. 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."
  51754. msgstr ""
  51755. #. type: Plain text
  51756. #: guix-git/doc/guix.texi:34709
  51757. 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."
  51758. msgstr ""
  51759. #. type: Plain text
  51760. #: guix-git/doc/guix.texi:34713
  51761. 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."
  51762. msgstr ""
  51763. #. type: Plain text
  51764. #: guix-git/doc/guix.texi:34720
  51765. 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."
  51766. msgstr ""
  51767. #. type: Plain text
  51768. #: guix-git/doc/guix.texi:34725
  51769. 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."
  51770. msgstr ""
  51771. #. type: Plain text
  51772. #: guix-git/doc/guix.texi:34735
  51773. 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:"
  51774. msgstr ""
  51775. #. type: example
  51776. #: guix-git/doc/guix.texi:34741
  51777. #, no-wrap
  51778. msgid ""
  51779. "guix install nss-certs\n"
  51780. "export SSL_CERT_DIR=\"$HOME/.guix-profile/etc/ssl/certs\"\n"
  51781. "export SSL_CERT_FILE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  51782. "export GIT_SSL_CAINFO=\"$SSL_CERT_FILE\"\n"
  51783. msgstr ""
  51784. #. type: Plain text
  51785. #: guix-git/doc/guix.texi:34746
  51786. 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:"
  51787. msgstr ""
  51788. #. type: example
  51789. #: guix-git/doc/guix.texi:34750
  51790. #, no-wrap
  51791. msgid ""
  51792. "guix install nss-certs\n"
  51793. "export CURL_CA_BUNDLE=\"$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt\"\n"
  51794. msgstr ""
  51795. #. type: Plain text
  51796. #: guix-git/doc/guix.texi:34754
  51797. msgid "For other applications you may want to look up the required environment variable in the relevant documentation."
  51798. msgstr ""
  51799. #. type: cindex
  51800. #: guix-git/doc/guix.texi:34759
  51801. #, no-wrap
  51802. msgid "name service switch"
  51803. msgstr ""
  51804. #. type: cindex
  51805. #: guix-git/doc/guix.texi:34760
  51806. #, no-wrap
  51807. msgid "NSS"
  51808. msgstr ""
  51809. #. type: Plain text
  51810. #: guix-git/doc/guix.texi:34769
  51811. 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})."
  51812. msgstr ""
  51813. #. type: Plain text
  51814. #: guix-git/doc/guix.texi:34776
  51815. 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}})."
  51816. msgstr ""
  51817. #. type: cindex
  51818. #: guix-git/doc/guix.texi:34777
  51819. #, no-wrap
  51820. msgid "nss-mdns"
  51821. msgstr ""
  51822. #. type: cindex
  51823. #: guix-git/doc/guix.texi:34778
  51824. #, no-wrap
  51825. msgid ".local, host name lookup"
  51826. msgstr ""
  51827. #. type: Plain text
  51828. #: guix-git/doc/guix.texi:34783
  51829. 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}:"
  51830. msgstr ""
  51831. #. type: lisp
  51832. #: guix-git/doc/guix.texi:34787
  51833. #, no-wrap
  51834. msgid ""
  51835. "(name-service-switch\n"
  51836. " (hosts (list %files ;first, check /etc/hosts\n"
  51837. "\n"
  51838. msgstr ""
  51839. #. type: lisp
  51840. #: guix-git/doc/guix.texi:34792
  51841. #, no-wrap
  51842. msgid ""
  51843. " ;; If the above did not succeed, try\n"
  51844. " ;; with 'mdns_minimal'.\n"
  51845. " (name-service\n"
  51846. " (name \"mdns_minimal\")\n"
  51847. "\n"
  51848. msgstr ""
  51849. #. type: lisp
  51850. #: guix-git/doc/guix.texi:34798
  51851. #, no-wrap
  51852. msgid ""
  51853. " ;; 'mdns_minimal' is authoritative for\n"
  51854. " ;; '.local'. When it returns \"not found\",\n"
  51855. " ;; no need to try the next methods.\n"
  51856. " (reaction (lookup-specification\n"
  51857. " (not-found => return))))\n"
  51858. "\n"
  51859. msgstr ""
  51860. #. type: lisp
  51861. #: guix-git/doc/guix.texi:34802
  51862. #, no-wrap
  51863. msgid ""
  51864. " ;; Then fall back to DNS.\n"
  51865. " (name-service\n"
  51866. " (name \"dns\"))\n"
  51867. "\n"
  51868. msgstr ""
  51869. #. type: lisp
  51870. #: guix-git/doc/guix.texi:34806
  51871. #, no-wrap
  51872. msgid ""
  51873. " ;; Finally, try with the \"full\" 'mdns'.\n"
  51874. " (name-service\n"
  51875. " (name \"mdns\")))))\n"
  51876. msgstr ""
  51877. #. type: Plain text
  51878. #: guix-git/doc/guix.texi:34811
  51879. 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."
  51880. msgstr ""
  51881. #. type: Plain text
  51882. #: guix-git/doc/guix.texi:34819
  51883. 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}})."
  51884. msgstr ""
  51885. #. type: Plain text
  51886. #: guix-git/doc/guix.texi:34822
  51887. msgid "For convenience, the following variables provide typical NSS configurations."
  51888. msgstr ""
  51889. #. type: defvr
  51890. #: guix-git/doc/guix.texi:34823
  51891. #, no-wrap
  51892. msgid "{Scheme Variable} %default-nss"
  51893. msgstr ""
  51894. #. type: defvr
  51895. #: guix-git/doc/guix.texi:34826
  51896. msgid "This is the default name service switch configuration, a @code{name-service-switch} object."
  51897. msgstr ""
  51898. #. type: defvr
  51899. #: guix-git/doc/guix.texi:34828
  51900. #, no-wrap
  51901. msgid "{Scheme Variable} %mdns-host-lookup-nss"
  51902. msgstr ""
  51903. #. type: defvr
  51904. #: guix-git/doc/guix.texi:34831
  51905. 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}."
  51906. msgstr ""
  51907. #. type: Plain text
  51908. #: guix-git/doc/guix.texi:34841
  51909. 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}."
  51910. msgstr ""
  51911. #. type: deftp
  51912. #: guix-git/doc/guix.texi:34842
  51913. #, no-wrap
  51914. msgid "{Data Type} name-service-switch"
  51915. msgstr ""
  51916. #. type: deftp
  51917. #: guix-git/doc/guix.texi:34847
  51918. 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."
  51919. msgstr ""
  51920. #. type: item
  51921. #: guix-git/doc/guix.texi:34849
  51922. #, no-wrap
  51923. msgid "aliases"
  51924. msgstr ""
  51925. #. type: itemx
  51926. #: guix-git/doc/guix.texi:34850
  51927. #, no-wrap
  51928. msgid "ethers"
  51929. msgstr ""
  51930. #. type: itemx
  51931. #: guix-git/doc/guix.texi:34852
  51932. #, no-wrap
  51933. msgid "gshadow"
  51934. msgstr ""
  51935. #. type: itemx
  51936. #: guix-git/doc/guix.texi:34853
  51937. #, no-wrap
  51938. msgid "hosts"
  51939. msgstr ""
  51940. #. type: itemx
  51941. #: guix-git/doc/guix.texi:34854
  51942. #, no-wrap
  51943. msgid "initgroups"
  51944. msgstr ""
  51945. #. type: itemx
  51946. #: guix-git/doc/guix.texi:34855
  51947. #, no-wrap
  51948. msgid "netgroup"
  51949. msgstr ""
  51950. #. type: itemx
  51951. #: guix-git/doc/guix.texi:34856
  51952. #, no-wrap
  51953. msgid "networks"
  51954. msgstr ""
  51955. #. type: itemx
  51956. #: guix-git/doc/guix.texi:34859
  51957. #, no-wrap
  51958. msgid "rpc"
  51959. msgstr ""
  51960. #. type: itemx
  51961. #: guix-git/doc/guix.texi:34861
  51962. #, no-wrap
  51963. msgid "shadow"
  51964. msgstr ""
  51965. #. type: table
  51966. #: guix-git/doc/guix.texi:34864
  51967. msgid "The system databases handled by the NSS@. Each of these fields must be a list of @code{<name-service>} objects (see below)."
  51968. msgstr ""
  51969. #. type: deftp
  51970. #: guix-git/doc/guix.texi:34867
  51971. #, no-wrap
  51972. msgid "{Data Type} name-service"
  51973. msgstr ""
  51974. #. type: deftp
  51975. #: guix-git/doc/guix.texi:34871
  51976. msgid "This is the data type representing an actual name service and the associated lookup action."
  51977. msgstr ""
  51978. #. type: table
  51979. #: guix-git/doc/guix.texi:34876
  51980. msgid "A string denoting the name service (@pxref{Services in the NSS configuration,,, libc, The GNU C Library Reference Manual})."
  51981. msgstr ""
  51982. #. type: table
  51983. #: guix-git/doc/guix.texi:34881
  51984. 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}})."
  51985. msgstr ""
  51986. #. type: item
  51987. #: guix-git/doc/guix.texi:34882
  51988. #, no-wrap
  51989. msgid "reaction"
  51990. msgstr ""
  51991. #. type: table
  51992. #: guix-git/doc/guix.texi:34886
  51993. 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:"
  51994. msgstr ""
  51995. #. type: lisp
  51996. #: guix-git/doc/guix.texi:34890
  51997. #, no-wrap
  51998. msgid ""
  51999. "(lookup-specification (unavailable => continue)\n"
  52000. " (success => return))\n"
  52001. msgstr ""
  52002. #. type: Plain text
  52003. #: guix-git/doc/guix.texi:34904
  52004. 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."
  52005. msgstr ""
  52006. #. type: Plain text
  52007. #: guix-git/doc/guix.texi:34913
  52008. 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:"
  52009. msgstr ""
  52010. #. type: lisp
  52011. #: guix-git/doc/guix.texi:34918
  52012. #, no-wrap
  52013. msgid ""
  52014. "(operating-system\n"
  52015. " ;; @dots{}\n"
  52016. " (initrd-modules (cons \"megaraid_sas\" %base-initrd-modules)))\n"
  52017. msgstr ""
  52018. #. type: defvr
  52019. #: guix-git/doc/guix.texi:34920
  52020. #, no-wrap
  52021. msgid "{Scheme Variable} %base-initrd-modules"
  52022. msgstr ""
  52023. #. type: defvr
  52024. #: guix-git/doc/guix.texi:34922
  52025. msgid "This is the list of kernel modules included in the initrd by default."
  52026. msgstr ""
  52027. #. type: Plain text
  52028. #: guix-git/doc/guix.texi:34930
  52029. 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."
  52030. msgstr ""
  52031. #. type: Plain text
  52032. #: guix-git/doc/guix.texi:34935
  52033. 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:"
  52034. msgstr ""
  52035. #. type: lisp
  52036. #: guix-git/doc/guix.texi:34943
  52037. #, no-wrap
  52038. msgid ""
  52039. "(initrd (lambda (file-systems . rest)\n"
  52040. " ;; Create a standard initrd but set up networking\n"
  52041. " ;; with the parameters QEMU expects by default.\n"
  52042. " (apply base-initrd file-systems\n"
  52043. " #:qemu-networking? #t\n"
  52044. " rest)))\n"
  52045. msgstr ""
  52046. #. type: Plain text
  52047. #: guix-git/doc/guix.texi:34948
  52048. 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."
  52049. msgstr ""
  52050. #. type: Plain text
  52051. #: guix-git/doc/guix.texi:34955
  52052. 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."
  52053. msgstr ""
  52054. #. type: Plain text
  52055. #: guix-git/doc/guix.texi:34960
  52056. 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:"
  52057. msgstr ""
  52058. #. type: item
  52059. #: guix-git/doc/guix.texi:34962
  52060. #, no-wrap
  52061. msgid "--load=@var{boot}"
  52062. msgstr ""
  52063. #. type: table
  52064. #: guix-git/doc/guix.texi:34965
  52065. msgid "Tell the initial RAM disk to load @var{boot}, a file containing a Scheme program, once it has mounted the root file system."
  52066. msgstr ""
  52067. #. type: table
  52068. #: guix-git/doc/guix.texi:34969
  52069. 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."
  52070. msgstr ""
  52071. #. type: item
  52072. #: guix-git/doc/guix.texi:34970
  52073. #, no-wrap
  52074. msgid "--root=@var{root}"
  52075. msgstr ""
  52076. #. type: table
  52077. #: guix-git/doc/guix.texi:34975
  52078. 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."
  52079. msgstr ""
  52080. #. type: item
  52081. #: guix-git/doc/guix.texi:34976
  52082. #, fuzzy, no-wrap
  52083. msgid "fsck.mode=@var{mode}"
  52084. msgstr "--rounds=@var{N}"
  52085. #. type: table
  52086. #: guix-git/doc/guix.texi:34982
  52087. msgid "Whether to check the @var{root} file system for errors before mounting it. @var{mode} is one of @code{skip} (never check), @code{force} (always check), or @code{auto} to respect the root file-system object's 'check?' setting (@pxref{File Systems}) and run a full scan only if the file system was not cleanly shut down."
  52088. msgstr ""
  52089. #. type: table
  52090. #: guix-git/doc/guix.texi:34985
  52091. msgid "@code{auto} is the default if this option is not present or if @var{mode} is not one of the above."
  52092. msgstr ""
  52093. #. type: item
  52094. #: guix-git/doc/guix.texi:34986
  52095. #, no-wrap
  52096. msgid "fsck.repair=@var{level}"
  52097. msgstr ""
  52098. #. type: table
  52099. #: guix-git/doc/guix.texi:34991
  52100. msgid "The level of repairs to perform automatically if errors are found in the @var{root} file system. @var{level} is one of @code{no} (do not write to @var{root} at all if possible), @code{yes} (repair as much as possible), or @code{preen} to repair problems considered safe to repair automatically."
  52101. msgstr ""
  52102. #. type: table
  52103. #: guix-git/doc/guix.texi:34994
  52104. msgid "@code{preen} is the default if this option is not present or if @var{level} is not one of the above."
  52105. msgstr ""
  52106. #. type: table
  52107. #: guix-git/doc/guix.texi:34998
  52108. msgid "Have @file{/run/booted-system} and @file{/run/current-system} point to @var{system}."
  52109. msgstr ""
  52110. #. type: item
  52111. #: guix-git/doc/guix.texi:34999
  52112. #, no-wrap
  52113. msgid "modprobe.blacklist=@var{modules}@dots{}"
  52114. msgstr ""
  52115. #. type: cindex
  52116. #: guix-git/doc/guix.texi:35000
  52117. #, no-wrap
  52118. msgid "module, black-listing"
  52119. msgstr ""
  52120. #. type: cindex
  52121. #: guix-git/doc/guix.texi:35001
  52122. #, no-wrap
  52123. msgid "black list, of kernel modules"
  52124. msgstr ""
  52125. #. type: table
  52126. #: guix-git/doc/guix.texi:35006
  52127. 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}."
  52128. msgstr ""
  52129. #. type: item
  52130. #: guix-git/doc/guix.texi:35007
  52131. #, no-wrap
  52132. msgid "--repl"
  52133. msgstr ""
  52134. #. type: table
  52135. #: guix-git/doc/guix.texi:35013
  52136. 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."
  52137. msgstr ""
  52138. #. type: Plain text
  52139. #: guix-git/doc/guix.texi:35019
  52140. 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."
  52141. msgstr ""
  52142. #. type: deffn
  52143. #: guix-git/doc/guix.texi:35022
  52144. #, no-wrap
  52145. msgid "{Scheme Procedure} raw-initrd @var{file-systems} @"
  52146. msgstr ""
  52147. #. type: deffn
  52148. #: guix-git/doc/guix.texi:35036
  52149. 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."
  52150. msgstr ""
  52151. #. type: deffn
  52152. #: guix-git/doc/guix.texi:35042 guix-git/doc/guix.texi:35066
  52153. 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."
  52154. msgstr ""
  52155. #. type: deffn
  52156. #: guix-git/doc/guix.texi:35046
  52157. 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."
  52158. msgstr ""
  52159. #. type: deffn
  52160. #: guix-git/doc/guix.texi:35049
  52161. msgid "When @var{volatile-root?} is true, the root file system is writable but any changes to it are lost."
  52162. msgstr ""
  52163. #. type: deffn
  52164. #: guix-git/doc/guix.texi:35051
  52165. #, no-wrap
  52166. msgid "{Scheme Procedure} base-initrd @var{file-systems} @"
  52167. msgstr ""
  52168. #. type: deffn
  52169. #: guix-git/doc/guix.texi:35060
  52170. 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."
  52171. msgstr ""
  52172. #. type: deffn
  52173. #: guix-git/doc/guix.texi:35068
  52174. msgid "@var{qemu-networking?} and @var{volatile-root?} behaves as in @code{raw-initrd}."
  52175. msgstr ""
  52176. #. type: deffn
  52177. #: guix-git/doc/guix.texi:35073
  52178. 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."
  52179. msgstr ""
  52180. #. type: Plain text
  52181. #: guix-git/doc/guix.texi:35080
  52182. 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."
  52183. msgstr ""
  52184. #. type: deffn
  52185. #: guix-git/doc/guix.texi:35081
  52186. #, no-wrap
  52187. msgid "{Scheme Procedure} expression->initrd @var{exp} @"
  52188. msgstr ""
  52189. #. type: deffn
  52190. #: guix-git/doc/guix.texi:35087
  52191. msgid "[#:guile %guile-static-stripped] [#:name \"guile-initrd\"] Return as a file-like object a Linux initrd (a gzipped cpio archive) containing @var{guile} and that evaluates @var{exp}, a G-expression, upon booting. All the derivations referenced by @var{exp} are automatically copied to the initrd."
  52192. msgstr ""
  52193. #. type: cindex
  52194. #: guix-git/doc/guix.texi:35093
  52195. #, no-wrap
  52196. msgid "boot loader"
  52197. msgstr ""
  52198. #. type: Plain text
  52199. #: guix-git/doc/guix.texi:35100
  52200. 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."
  52201. msgstr ""
  52202. #. type: Plain text
  52203. #: guix-git/doc/guix.texi:35105
  52204. 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."
  52205. msgstr ""
  52206. #. type: deftp
  52207. #: guix-git/doc/guix.texi:35106
  52208. #, no-wrap
  52209. msgid "{Data Type} bootloader-configuration"
  52210. msgstr ""
  52211. #. type: deftp
  52212. #: guix-git/doc/guix.texi:35108
  52213. msgid "The type of a bootloader configuration declaration."
  52214. msgstr ""
  52215. #. type: cindex
  52216. #: guix-git/doc/guix.texi:35112
  52217. #, no-wrap
  52218. msgid "EFI, bootloader"
  52219. msgstr ""
  52220. #. type: cindex
  52221. #: guix-git/doc/guix.texi:35113
  52222. #, no-wrap
  52223. msgid "UEFI, bootloader"
  52224. msgstr ""
  52225. #. type: cindex
  52226. #: guix-git/doc/guix.texi:35114
  52227. #, no-wrap
  52228. msgid "BIOS, bootloader"
  52229. msgstr ""
  52230. #. type: table
  52231. #: guix-git/doc/guix.texi:35119
  52232. 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."
  52233. msgstr ""
  52234. #. type: cindex
  52235. #: guix-git/doc/guix.texi:35120
  52236. #, no-wrap
  52237. msgid "ARM, bootloaders"
  52238. msgstr ""
  52239. #. type: cindex
  52240. #: guix-git/doc/guix.texi:35121
  52241. #, no-wrap
  52242. msgid "AArch64, bootloaders"
  52243. msgstr ""
  52244. #. type: table
  52245. #: guix-git/doc/guix.texi:35126
  52246. 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}."
  52247. msgstr ""
  52248. #. type: table
  52249. #: guix-git/doc/guix.texi:35132
  52250. 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."
  52251. msgstr ""
  52252. #. type: table
  52253. #: guix-git/doc/guix.texi:35136
  52254. msgid "@code{grub-bootloader} allows you to boot in particular Intel-based machines in ``legacy'' BIOS mode."
  52255. msgstr ""
  52256. #. type: vindex
  52257. #: guix-git/doc/guix.texi:35137
  52258. #, no-wrap
  52259. msgid "grub-efi-netboot-bootloader"
  52260. msgstr ""
  52261. #. type: table
  52262. #: guix-git/doc/guix.texi:35141
  52263. 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."
  52264. msgstr ""
  52265. #. type: table
  52266. #: guix-git/doc/guix.texi:35147
  52267. msgid "The installation of the @code{grub-efi-netboot-bootloader} generates the content of the TFTP root directory at @code{targets} (@pxref{Bootloader Configuration, @code{targets}}), to be served by a TFTP server. You may want to mount your TFTP server directories onto the @code{targets} to move the required files to the TFTP server automatically."
  52268. msgstr ""
  52269. #. type: table
  52270. #: guix-git/doc/guix.texi:35156
  52271. 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}."
  52272. msgstr ""
  52273. #. type: table
  52274. #: guix-git/doc/guix.texi:35165
  52275. msgid "Two symlinks are created to make this possible. For each target in the @code{targets} field, the first symlink is @samp{target}@file{/efi/Guix/boot/grub/grub.cfg} pointing to @file{../../../boot/grub/grub.cfg}, where @samp{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 @samp{target}@file{/gnu/store} and points to @file{../gnu/store}. This link is leaving the served TFTP root directory."
  52276. msgstr ""
  52277. #. type: table
  52278. #: guix-git/doc/guix.texi:35171
  52279. 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{targets} directories—usually a single @file{/boot}—from that same root file system for your Guix system. In this constellation the symlinks will work."
  52280. msgstr ""
  52281. #. type: table
  52282. #: guix-git/doc/guix.texi:35176
  52283. 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 to your @code{targets}."
  52284. msgstr ""
  52285. #. type: table
  52286. #: guix-git/doc/guix.texi:35181
  52287. 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."
  52288. msgstr ""
  52289. #. type: table
  52290. #: guix-git/doc/guix.texi:35186
  52291. 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}."
  52292. msgstr ""
  52293. #. type: table
  52294. #: guix-git/doc/guix.texi:35190
  52295. msgid "This is a list of strings denoting the targets onto which to install the bootloader."
  52296. msgstr ""
  52297. #. type: table
  52298. #: guix-git/doc/guix.texi:35200
  52299. msgid "The interpretation of targets depends on the bootloader in question. For @code{grub-bootloader}, for example, they should be device names 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}, they should be mount points of the EFI file system, usually @file{/boot/efi}. For @code{grub-efi-netboot-bootloader}, @code{targets} should be the mount points corresponding to TFTP root directories served by your TFTP server."
  52300. msgstr ""
  52301. #. type: item
  52302. #: guix-git/doc/guix.texi:35201
  52303. #, no-wrap
  52304. msgid "@code{menu-entries} (default: @code{()})"
  52305. msgstr ""
  52306. #. type: table
  52307. #: guix-git/doc/guix.texi:35205
  52308. 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."
  52309. msgstr ""
  52310. #. type: item
  52311. #: guix-git/doc/guix.texi:35206
  52312. #, no-wrap
  52313. msgid "@code{default-entry} (default: @code{0})"
  52314. msgstr ""
  52315. #. type: table
  52316. #: guix-git/doc/guix.texi:35209
  52317. msgid "The index of the default boot menu entry. Index 0 is for the entry of the current system."
  52318. msgstr ""
  52319. #. type: item
  52320. #: guix-git/doc/guix.texi:35210
  52321. #, no-wrap
  52322. msgid "@code{timeout} (default: @code{5})"
  52323. msgstr ""
  52324. #. type: table
  52325. #: guix-git/doc/guix.texi:35213
  52326. msgid "The number of seconds to wait for keyboard input before booting. Set to 0 to boot immediately, and to -1 to wait indefinitely."
  52327. msgstr ""
  52328. #. type: cindex
  52329. #: guix-git/doc/guix.texi:35214
  52330. #, no-wrap
  52331. msgid "keyboard layout, for the bootloader"
  52332. msgstr ""
  52333. #. type: table
  52334. #: guix-git/doc/guix.texi:35218
  52335. msgid "If this is @code{#f}, the bootloader's menu (if any) uses the default keyboard layout, usually US@tie{}English (``qwerty'')."
  52336. msgstr ""
  52337. #. type: table
  52338. #: guix-git/doc/guix.texi:35221
  52339. msgid "Otherwise, this must be a @code{keyboard-layout} object (@pxref{Keyboard Layout})."
  52340. msgstr ""
  52341. #. type: quotation
  52342. #: guix-git/doc/guix.texi:35225
  52343. msgid "This option is currently ignored by bootloaders other than @code{grub} and @code{grub-efi}."
  52344. msgstr ""
  52345. #. type: item
  52346. #: guix-git/doc/guix.texi:35227
  52347. #, no-wrap
  52348. msgid "@code{theme} (default: @var{#f})"
  52349. msgstr ""
  52350. #. type: table
  52351. #: guix-git/doc/guix.texi:35231
  52352. 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."
  52353. msgstr ""
  52354. #. type: item
  52355. #: guix-git/doc/guix.texi:35232
  52356. #, fuzzy, no-wrap
  52357. msgid "@code{terminal-outputs} (default: @code{'(gfxterm)})"
  52358. msgstr "@code{features} (@code{'()})"
  52359. #. type: table
  52360. #: guix-git/doc/guix.texi:35239
  52361. 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})."
  52362. msgstr ""
  52363. #. type: item
  52364. #: guix-git/doc/guix.texi:35240
  52365. #, no-wrap
  52366. msgid "@code{terminal-inputs} (default: @code{'()})"
  52367. msgstr ""
  52368. #. type: table
  52369. #: guix-git/doc/guix.texi:35248
  52370. 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})."
  52371. msgstr ""
  52372. #. type: item
  52373. #: guix-git/doc/guix.texi:35249
  52374. #, no-wrap
  52375. msgid "@code{serial-unit} (default: @code{#f})"
  52376. msgstr ""
  52377. #. type: table
  52378. #: guix-git/doc/guix.texi:35253
  52379. 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})."
  52380. msgstr ""
  52381. #. type: item
  52382. #: guix-git/doc/guix.texi:35254
  52383. #, no-wrap
  52384. msgid "@code{serial-speed} (default: @code{#f})"
  52385. msgstr ""
  52386. #. type: table
  52387. #: guix-git/doc/guix.texi:35258
  52388. 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})."
  52389. msgstr ""
  52390. #. type: cindex
  52391. #: guix-git/doc/guix.texi:35262
  52392. #, no-wrap
  52393. msgid "dual boot"
  52394. msgstr ""
  52395. #. type: cindex
  52396. #: guix-git/doc/guix.texi:35263
  52397. #, no-wrap
  52398. msgid "boot menu"
  52399. msgstr ""
  52400. #. type: Plain text
  52401. #: guix-git/doc/guix.texi:35269
  52402. 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:"
  52403. msgstr ""
  52404. #. type: lisp
  52405. #: guix-git/doc/guix.texi:35276
  52406. #, no-wrap
  52407. msgid ""
  52408. "(menu-entry\n"
  52409. " (label \"The Other Distro\")\n"
  52410. " (linux \"/boot/old/vmlinux-2.6.32\")\n"
  52411. " (linux-arguments '(\"root=/dev/sda2\"))\n"
  52412. " (initrd \"/boot/old/initrd\"))\n"
  52413. msgstr ""
  52414. #. type: Plain text
  52415. #: guix-git/doc/guix.texi:35279
  52416. msgid "Details below."
  52417. msgstr ""
  52418. #. type: deftp
  52419. #: guix-git/doc/guix.texi:35280
  52420. #, no-wrap
  52421. msgid "{Data Type} menu-entry"
  52422. msgstr ""
  52423. #. type: deftp
  52424. #: guix-git/doc/guix.texi:35282
  52425. msgid "The type of an entry in the bootloader menu."
  52426. msgstr ""
  52427. #. type: table
  52428. #: guix-git/doc/guix.texi:35287
  52429. msgid "The label to show in the menu---e.g., @code{\"GNU\"}."
  52430. msgstr ""
  52431. #. type: item
  52432. #: guix-git/doc/guix.texi:35288
  52433. #, fuzzy, no-wrap
  52434. msgid "@code{linux} (default: @code{#f})"
  52435. msgstr "@code{challenge}(默认值:@code{#f})"
  52436. #. type: table
  52437. #: guix-git/doc/guix.texi:35290
  52438. msgid "The Linux kernel image to boot, for example:"
  52439. msgstr ""
  52440. #. type: lisp
  52441. #: guix-git/doc/guix.texi:35293
  52442. #, no-wrap
  52443. msgid "(file-append linux-libre \"/bzImage\")\n"
  52444. msgstr ""
  52445. #. type: table
  52446. #: guix-git/doc/guix.texi:35298
  52447. 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:"
  52448. msgstr ""
  52449. #. type: example
  52450. #: guix-git/doc/guix.texi:35301
  52451. #, no-wrap
  52452. msgid "\"(hd0,msdos1)/boot/vmlinuz\"\n"
  52453. msgstr ""
  52454. #. type: table
  52455. #: guix-git/doc/guix.texi:35305
  52456. msgid "If the device is specified explicitly as above, then the @code{device} field is ignored entirely."
  52457. msgstr ""
  52458. #. type: item
  52459. #: guix-git/doc/guix.texi:35306
  52460. #, no-wrap
  52461. msgid "@code{linux-arguments} (default: @code{()})"
  52462. msgstr ""
  52463. #. type: table
  52464. #: guix-git/doc/guix.texi:35309
  52465. msgid "The list of extra Linux kernel command-line arguments---e.g., @code{(\"console=ttyS0\")}."
  52466. msgstr ""
  52467. #. type: item
  52468. #: guix-git/doc/guix.texi:35310
  52469. #, fuzzy, no-wrap
  52470. msgid "@code{initrd} (default: @code{#f})"
  52471. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  52472. #. type: table
  52473. #: guix-git/doc/guix.texi:35313
  52474. msgid "A G-Expression or string denoting the file name of the initial RAM disk to use (@pxref{G-Expressions})."
  52475. msgstr ""
  52476. #. type: table
  52477. #: guix-git/doc/guix.texi:35317
  52478. 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})."
  52479. msgstr ""
  52480. #. type: table
  52481. #: guix-git/doc/guix.texi:35323
  52482. 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}."
  52483. msgstr ""
  52484. #. type: item
  52485. #: guix-git/doc/guix.texi:35324
  52486. #, fuzzy, no-wrap
  52487. msgid "@code{multiboot-kernel} (default: @code{#f})"
  52488. msgstr "@code{challenge}(默认值:@code{#f})"
  52489. #. type: table
  52490. #: guix-git/doc/guix.texi:35328
  52491. 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:"
  52492. msgstr ""
  52493. #. type: lisp
  52494. #: guix-git/doc/guix.texi:35331
  52495. #, no-wrap
  52496. msgid "(file-append mach \"/boot/gnumach\")\n"
  52497. msgstr ""
  52498. #. type: item
  52499. #: guix-git/doc/guix.texi:35333
  52500. #, fuzzy, no-wrap
  52501. msgid "@code{multiboot-arguments} (default: @code{()})"
  52502. msgstr "@code{features} (@code{'()})"
  52503. #. type: table
  52504. #: guix-git/doc/guix.texi:35335
  52505. msgid "The list of extra command-line arguments for the multiboot-kernel."
  52506. msgstr ""
  52507. #. type: item
  52508. #: guix-git/doc/guix.texi:35336
  52509. #, fuzzy, no-wrap
  52510. msgid "@code{multiboot-modules} (default: @code{()})"
  52511. msgstr "@code{features} (@code{'()})"
  52512. #. type: table
  52513. #: guix-git/doc/guix.texi:35338
  52514. msgid "The list of commands for loading Multiboot modules. For example:"
  52515. msgstr ""
  52516. #. type: lisp
  52517. #: guix-git/doc/guix.texi:35344
  52518. #, no-wrap
  52519. msgid ""
  52520. "(list (list (file-append hurd \"/hurd/ext2fs.static\") \"ext2fs\"\n"
  52521. " @dots{})\n"
  52522. " (list (file-append libc \"/lib/ld.so.1\") \"exec\"\n"
  52523. " @dots{}))\n"
  52524. msgstr ""
  52525. #. type: cindex
  52526. #: guix-git/doc/guix.texi:35349 guix-git/doc/guix.texi:35408
  52527. #, no-wrap
  52528. msgid "HDPI"
  52529. msgstr ""
  52530. #. type: cindex
  52531. #: guix-git/doc/guix.texi:35350 guix-git/doc/guix.texi:35409
  52532. #, no-wrap
  52533. msgid "HiDPI"
  52534. msgstr ""
  52535. #. type: cindex
  52536. #: guix-git/doc/guix.texi:35351 guix-git/doc/guix.texi:35410
  52537. #, fuzzy, no-wrap
  52538. msgid "resolution"
  52539. msgstr "隔离"
  52540. #. type: Plain text
  52541. #: guix-git/doc/guix.texi:35355
  52542. msgid "For now only GRUB has theme support. GRUB themes are created using the @code{grub-theme} form, which is not fully documented yet."
  52543. msgstr ""
  52544. #. type: deftp
  52545. #: guix-git/doc/guix.texi:35356
  52546. #, fuzzy, no-wrap
  52547. msgid "{Data Type} grub-theme"
  52548. msgstr "{数据类型} build-machine"
  52549. #. type: deftp
  52550. #: guix-git/doc/guix.texi:35358
  52551. msgid "Data type representing the configuration of the GRUB theme."
  52552. msgstr ""
  52553. #. type: item
  52554. #: guix-git/doc/guix.texi:35360
  52555. #, fuzzy, no-wrap
  52556. msgid "@code{gfxmode} (default: @code{'(\"auto\")})"
  52557. msgstr "@code{mate}(默认值:@code{mate})"
  52558. #. type: table
  52559. #: guix-git/doc/guix.texi:35363
  52560. msgid "The GRUB @code{gfxmode} to set (a list of screen resolution strings, @pxref{gfxmode,,, grub, GNU GRUB manual})."
  52561. msgstr ""
  52562. #. type: deffn
  52563. #: guix-git/doc/guix.texi:35366
  52564. #, no-wrap
  52565. msgid "{Scheme Procedure} grub-theme"
  52566. msgstr ""
  52567. #. type: deffn
  52568. #: guix-git/doc/guix.texi:35370
  52569. msgid "Return the default GRUB theme used by the operating system if no @code{theme} field is specified in @code{bootloader-configuration} record."
  52570. msgstr ""
  52571. #. type: deffn
  52572. #: guix-git/doc/guix.texi:35373
  52573. msgid "It comes with a fancy background image displaying the GNU and Guix logos."
  52574. msgstr ""
  52575. #. type: Plain text
  52576. #: guix-git/doc/guix.texi:35377
  52577. msgid "For example, to override the default resolution, you may use something like"
  52578. msgstr ""
  52579. #. type: lisp
  52580. #: guix-git/doc/guix.texi:35385
  52581. #, no-wrap
  52582. msgid ""
  52583. "(bootloader\n"
  52584. " (bootloader-configuration\n"
  52585. " ;; @dots{}\n"
  52586. " (theme (grub-theme\n"
  52587. " (inherit (grub-theme))\n"
  52588. " (gfxmode '(\"1024x786x32\" \"auto\"))))))\n"
  52589. msgstr ""
  52590. #. type: section
  52591. #: guix-git/doc/guix.texi:35388
  52592. #, no-wrap
  52593. msgid "Invoking @code{guix system}"
  52594. msgstr ""
  52595. #. type: Plain text
  52596. #: guix-git/doc/guix.texi:35393
  52597. 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:"
  52598. msgstr ""
  52599. #. type: example
  52600. #: guix-git/doc/guix.texi:35396
  52601. #, no-wrap
  52602. msgid "guix system @var{options}@dots{} @var{action} @var{file}\n"
  52603. msgstr ""
  52604. #. type: Plain text
  52605. #: guix-git/doc/guix.texi:35402
  52606. 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:"
  52607. msgstr ""
  52608. #. type: item
  52609. #: guix-git/doc/guix.texi:35404 guix-git/doc/guix.texi:38186
  52610. #, no-wrap
  52611. msgid "search"
  52612. msgstr ""
  52613. #. type: table
  52614. #: guix-git/doc/guix.texi:35407
  52615. msgid "Display available service type definitions that match the given regular expressions, sorted by relevance:"
  52616. msgstr ""
  52617. #. type: example
  52618. #: guix-git/doc/guix.texi:35429
  52619. #, no-wrap
  52620. msgid ""
  52621. "$ guix system search console\n"
  52622. "name: console-fonts\n"
  52623. "location: gnu/services/base.scm:806:2\n"
  52624. "extends: shepherd-root\n"
  52625. "description: Install the given fonts on the specified ttys (fonts are per\n"
  52626. "+ virtual console on GNU/Linux). The value of this service is a list of\n"
  52627. "+ tty/font pairs. The font can be the name of a font provided by the `kbd'\n"
  52628. "+ package or any valid argument to `setfont', as in this example:\n"
  52629. "+\n"
  52630. "+ '((\"tty1\" . \"LatGrkCyr-8x16\")\n"
  52631. "+ (\"tty2\" . (file-append\n"
  52632. "+ font-tamzen\n"
  52633. "+ \"/share/kbd/consolefonts/TamzenForPowerline10x20.psf\"))\n"
  52634. "+ (\"tty3\" . (file-append\n"
  52635. "+ font-terminus\n"
  52636. "+ \"/share/consolefonts/ter-132n\"))) ; for HDPI\n"
  52637. "relevance: 9\n"
  52638. "\n"
  52639. msgstr ""
  52640. #. type: example
  52641. #: guix-git/doc/guix.texi:35435
  52642. #, no-wrap
  52643. msgid ""
  52644. "name: mingetty\n"
  52645. "location: gnu/services/base.scm:1190:2\n"
  52646. "extends: shepherd-root\n"
  52647. "description: Provide console login using the `mingetty' program.\n"
  52648. "relevance: 2\n"
  52649. "\n"
  52650. msgstr ""
  52651. #. type: example
  52652. #: guix-git/doc/guix.texi:35442
  52653. #, no-wrap
  52654. msgid ""
  52655. "name: login\n"
  52656. "location: gnu/services/base.scm:860:2\n"
  52657. "extends: pam\n"
  52658. "description: Provide a console log-in service as specified by its\n"
  52659. "+ configuration value, a `login-configuration' object.\n"
  52660. "relevance: 2\n"
  52661. "\n"
  52662. msgstr ""
  52663. #. type: example
  52664. #: guix-git/doc/guix.texi:35444 guix-git/doc/guix.texi:38222
  52665. #, no-wrap
  52666. msgid "@dots{}\n"
  52667. msgstr ""
  52668. #. type: table
  52669. #: guix-git/doc/guix.texi:35449
  52670. 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})."
  52671. msgstr ""
  52672. #. type: item
  52673. #: guix-git/doc/guix.texi:35450 guix-git/doc/guix.texi:38228
  52674. #, no-wrap
  52675. msgid "reconfigure"
  52676. msgstr ""
  52677. #. type: table
  52678. #: guix-git/doc/guix.texi:35455
  52679. 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.}."
  52680. msgstr ""
  52681. #. type: quotation
  52682. #: guix-git/doc/guix.texi:35463
  52683. 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."
  52684. msgstr ""
  52685. #. type: table
  52686. #: guix-git/doc/guix.texi:35471
  52687. 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})."
  52688. msgstr ""
  52689. #. type: table
  52690. #: guix-git/doc/guix.texi:35477
  52691. 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})."
  52692. msgstr ""
  52693. #. type: table
  52694. #: guix-git/doc/guix.texi:35482
  52695. 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."
  52696. msgstr ""
  52697. #. type: cindex
  52698. #: guix-git/doc/guix.texi:35483 guix-git/doc/guix.texi:35819
  52699. #: guix-git/doc/guix.texi:36827
  52700. #, fuzzy, no-wrap
  52701. msgid "provenance tracking, of the operating system"
  52702. msgstr "配置操作系统。"
  52703. #. type: table
  52704. #: guix-git/doc/guix.texi:35488
  52705. 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:"
  52706. msgstr ""
  52707. #. type: example
  52708. #: guix-git/doc/guix.texi:35491
  52709. #, no-wrap
  52710. msgid "guix system describe\n"
  52711. msgstr "guix system describe\n"
  52712. #. type: table
  52713. #: guix-git/doc/guix.texi:35497
  52714. 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:"
  52715. msgstr ""
  52716. #. type: example
  52717. #: guix-git/doc/guix.texi:35503
  52718. #, no-wrap
  52719. msgid ""
  52720. "guix time-machine \\\n"
  52721. " -C /var/guix/profiles/system-@var{n}-link/channels.scm -- \\\n"
  52722. " system reconfigure \\\n"
  52723. " /var/guix/profiles/system-@var{n}-link/configuration.scm\n"
  52724. msgstr ""
  52725. #. type: table
  52726. #: guix-git/doc/guix.texi:35509
  52727. 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."
  52728. msgstr ""
  52729. #. type: table
  52730. #: guix-git/doc/guix.texi:35515
  52731. 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}."
  52732. msgstr ""
  52733. #. type: item
  52734. #: guix-git/doc/guix.texi:35516 guix-git/doc/guix.texi:38287
  52735. #, no-wrap
  52736. msgid "switch-generation"
  52737. msgstr ""
  52738. #. type: table
  52739. #: guix-git/doc/guix.texi:35525
  52740. 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."
  52741. msgstr ""
  52742. #. type: table
  52743. #: guix-git/doc/guix.texi:35529
  52744. msgid "The bootloader itself is not being reinstalled when using this command. Thus, the installed bootloader is used with an updated configuration file."
  52745. msgstr ""
  52746. #. type: table
  52747. #: guix-git/doc/guix.texi:35533
  52748. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to system generation 7:"
  52749. msgstr ""
  52750. #. type: example
  52751. #: guix-git/doc/guix.texi:35536
  52752. #, no-wrap
  52753. msgid "guix system switch-generation 7\n"
  52754. msgstr ""
  52755. #. type: table
  52756. #: guix-git/doc/guix.texi:35544 guix-git/doc/guix.texi:38306
  52757. 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:"
  52758. msgstr ""
  52759. #. type: example
  52760. #: guix-git/doc/guix.texi:35547
  52761. #, no-wrap
  52762. msgid "guix system switch-generation -- -1\n"
  52763. msgstr ""
  52764. #. type: table
  52765. #: guix-git/doc/guix.texi:35555
  52766. 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."
  52767. msgstr ""
  52768. #. type: table
  52769. #: guix-git/doc/guix.texi:35557 guix-git/doc/guix.texi:38312
  52770. msgid "This action will fail if the specified generation does not exist."
  52771. msgstr ""
  52772. #. type: item
  52773. #: guix-git/doc/guix.texi:35558 guix-git/doc/guix.texi:38313
  52774. #, no-wrap
  52775. msgid "roll-back"
  52776. msgstr ""
  52777. #. type: table
  52778. #: guix-git/doc/guix.texi:35564
  52779. 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}."
  52780. msgstr ""
  52781. #. type: table
  52782. #: guix-git/doc/guix.texi:35568
  52783. msgid "Currently, as with @command{switch-generation}, you must reboot after running this action to actually start using the preceding system generation."
  52784. msgstr ""
  52785. #. type: item
  52786. #: guix-git/doc/guix.texi:35569 guix-git/doc/guix.texi:38319
  52787. #, no-wrap
  52788. msgid "delete-generations"
  52789. msgstr ""
  52790. #. type: cindex
  52791. #: guix-git/doc/guix.texi:35570
  52792. #, no-wrap
  52793. msgid "deleting system generations"
  52794. msgstr ""
  52795. #. type: cindex
  52796. #: guix-git/doc/guix.texi:35571 guix-git/doc/guix.texi:38321
  52797. #, no-wrap
  52798. msgid "saving space"
  52799. msgstr ""
  52800. #. type: table
  52801. #: guix-git/doc/guix.texi:35575
  52802. msgid "Delete system generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  52803. msgstr ""
  52804. #. type: table
  52805. #: guix-git/doc/guix.texi:35579
  52806. 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:"
  52807. msgstr ""
  52808. #. type: example
  52809. #: guix-git/doc/guix.texi:35582
  52810. #, no-wrap
  52811. msgid "guix system delete-generations\n"
  52812. msgstr ""
  52813. #. type: table
  52814. #: guix-git/doc/guix.texi:35586
  52815. msgid "You can also select the generations you want to delete. The example below deletes all the system generations that are more than two months old:"
  52816. msgstr ""
  52817. #. type: example
  52818. #: guix-git/doc/guix.texi:35589
  52819. #, no-wrap
  52820. msgid "guix system delete-generations 2m\n"
  52821. msgstr ""
  52822. #. type: table
  52823. #: guix-git/doc/guix.texi:35594
  52824. 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."
  52825. msgstr ""
  52826. #. type: table
  52827. #: guix-git/doc/guix.texi:35599
  52828. 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."
  52829. msgstr ""
  52830. #. type: item
  52831. #: guix-git/doc/guix.texi:35600
  52832. #, no-wrap
  52833. msgid "init"
  52834. msgstr ""
  52835. #. type: table
  52836. #: guix-git/doc/guix.texi:35604
  52837. 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:"
  52838. msgstr ""
  52839. #. type: example
  52840. #: guix-git/doc/guix.texi:35607
  52841. #, no-wrap
  52842. msgid "guix system init my-os-config.scm /mnt\n"
  52843. msgstr ""
  52844. #. type: table
  52845. #: guix-git/doc/guix.texi:35614
  52846. 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."
  52847. msgstr ""
  52848. #. type: table
  52849. #: guix-git/doc/guix.texi:35618
  52850. msgid "This command also installs bootloader on the targets specified in @file{my-os-config}, unless the @option{--no-bootloader} option was passed."
  52851. msgstr ""
  52852. #. type: item
  52853. #: guix-git/doc/guix.texi:35619
  52854. #, no-wrap
  52855. msgid "vm"
  52856. msgstr ""
  52857. #. type: cindex
  52858. #: guix-git/doc/guix.texi:35620 guix-git/doc/guix.texi:36238
  52859. #, no-wrap
  52860. msgid "virtual machine"
  52861. msgstr ""
  52862. #. type: cindex
  52863. #: guix-git/doc/guix.texi:35621
  52864. #, no-wrap
  52865. msgid "VM"
  52866. msgstr ""
  52867. #. type: anchor{#1}
  52868. #: guix-git/doc/guix.texi:35625
  52869. msgid "guix system vm"
  52870. msgstr ""
  52871. #. type: table
  52872. #: guix-git/doc/guix.texi:35625
  52873. msgid "Build a virtual machine (VM) that contains the operating system declared in @var{file}, and return a script to run that VM."
  52874. msgstr ""
  52875. #. type: quotation
  52876. #: guix-git/doc/guix.texi:35633
  52877. 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})."
  52878. msgstr ""
  52879. #. type: table
  52880. #: guix-git/doc/guix.texi:35638
  52881. 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:"
  52882. msgstr ""
  52883. #. type: example
  52884. #: guix-git/doc/guix.texi:35641
  52885. #, no-wrap
  52886. msgid "$ /gnu/store/@dots{}-run-vm.sh -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  52887. msgstr ""
  52888. #. type: table
  52889. #: guix-git/doc/guix.texi:35644
  52890. msgid "It's possible to combine the two steps into one:"
  52891. msgstr ""
  52892. #. type: example
  52893. #: guix-git/doc/guix.texi:35647
  52894. #, no-wrap
  52895. msgid "$ $(guix system vm my-config.scm) -m 1024 -smp 2 -nic user,model=virtio-net-pci\n"
  52896. msgstr ""
  52897. #. type: table
  52898. #: guix-git/doc/guix.texi:35650
  52899. msgid "The VM shares its store with the host system."
  52900. msgstr ""
  52901. #. type: table
  52902. #: guix-git/doc/guix.texi:35655
  52903. msgid "By default, the root file system of the VM is mounted volatile; the @option{--persistent} option can be provided to make it persistent instead. In that case, the VM disk-image file will be copied from the store to the @env{TMPDIR} directory to make it writable."
  52904. msgstr ""
  52905. #. type: table
  52906. #: guix-git/doc/guix.texi:35660
  52907. 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."
  52908. msgstr ""
  52909. #. type: table
  52910. #: guix-git/doc/guix.texi:35664
  52911. 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:"
  52912. msgstr ""
  52913. #. type: example
  52914. #: guix-git/doc/guix.texi:35668
  52915. #, no-wrap
  52916. msgid ""
  52917. "guix system vm my-config.scm \\\n"
  52918. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  52919. msgstr ""
  52920. #. type: table
  52921. #: guix-git/doc/guix.texi:35673
  52922. 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."
  52923. msgstr ""
  52924. #. type: table
  52925. #: guix-git/doc/guix.texi:35678
  52926. 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."
  52927. msgstr ""
  52928. #. type: table
  52929. #: guix-git/doc/guix.texi:35681
  52930. msgid "The @option{--image-size} option can be used to specify the size of the image."
  52931. msgstr ""
  52932. #. type: table
  52933. #: guix-git/doc/guix.texi:35688
  52934. msgid "The @option{--no-graphic} option will instruct @command{guix system} to spawn a headless VM that will use the invoking tty for IO. Among other things, this enables copy-pasting, and scrollback. Use the @kbd{ctrl-a} prefix to issue QEMU commands; e.g. @kbd{ctrl-a h} prints a help, @kbd{ctrl-a x} quits the VM, and @kbd{ctrl-a c} switches between the QEMU monitor and the VM."
  52935. msgstr ""
  52936. #. type: cindex
  52937. #: guix-git/doc/guix.texi:35689
  52938. #, no-wrap
  52939. msgid "System images, creation in various formats"
  52940. msgstr ""
  52941. #. type: cindex
  52942. #: guix-git/doc/guix.texi:35690
  52943. #, no-wrap
  52944. msgid "Creating system images in various formats"
  52945. msgstr ""
  52946. #. type: item
  52947. #: guix-git/doc/guix.texi:35691
  52948. #, no-wrap
  52949. msgid "image"
  52950. msgstr ""
  52951. #. type: cindex
  52952. #: guix-git/doc/guix.texi:35692
  52953. #, no-wrap
  52954. msgid "image, creating disk images"
  52955. msgstr ""
  52956. #. type: table
  52957. #: guix-git/doc/guix.texi:35704
  52958. 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:"
  52959. msgstr ""
  52960. #. type: example
  52961. #: guix-git/doc/guix.texi:35712
  52962. #, no-wrap
  52963. msgid ""
  52964. "image=$(guix system image --image-type=qcow2 \\\n"
  52965. " gnu/system/examples/lightweight-desktop.tmpl)\n"
  52966. "cp $image /tmp/my-image.qcow2\n"
  52967. "chmod +w /tmp/my-image.qcow2\n"
  52968. "qemu-system-x86_64 -enable-kvm -hda /tmp/my-image.qcow2 -m 1000 \\\n"
  52969. " -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin\n"
  52970. msgstr ""
  52971. #. type: table
  52972. #: guix-git/doc/guix.texi:35718
  52973. 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:"
  52974. msgstr ""
  52975. #. type: example
  52976. #: guix-git/doc/guix.texi:35721
  52977. #, no-wrap
  52978. msgid "# dd if=$(guix system image my-os.scm) of=/dev/sdc status=progress\n"
  52979. msgstr ""
  52980. #. type: table
  52981. #: guix-git/doc/guix.texi:35725
  52982. msgid "The @code{--list-image-types} command lists all the available image types."
  52983. msgstr ""
  52984. #. type: cindex
  52985. #: guix-git/doc/guix.texi:35726
  52986. #, no-wrap
  52987. msgid "creating virtual machine images"
  52988. msgstr ""
  52989. #. type: table
  52990. #: guix-git/doc/guix.texi:35735
  52991. 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)."
  52992. msgstr ""
  52993. #. type: cindex
  52994. #: guix-git/doc/guix.texi:35736
  52995. #, no-wrap
  52996. msgid "docker-image, creating docker images"
  52997. msgstr ""
  52998. #. type: table
  52999. #: guix-git/doc/guix.texi:35742
  53000. msgid "When using the @code{docker} image type, 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:"
  53001. msgstr ""
  53002. #. type: example
  53003. #: guix-git/doc/guix.texi:35747
  53004. #, no-wrap
  53005. msgid ""
  53006. "image_id=\"$(docker load < guix-system-docker-image.tar.gz)\"\n"
  53007. "container_id=\"$(docker create $image_id)\"\n"
  53008. "docker start $container_id\n"
  53009. msgstr ""
  53010. #. type: table
  53011. #: guix-git/doc/guix.texi:35754
  53012. 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}:"
  53013. msgstr ""
  53014. #. type: example
  53015. #: guix-git/doc/guix.texi:35757
  53016. #, no-wrap
  53017. msgid "docker exec -ti $container_id /run/current-system/profile/bin/bash --login\n"
  53018. msgstr ""
  53019. #. type: table
  53020. #: guix-git/doc/guix.texi:35764
  53021. 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}."
  53022. msgstr ""
  53023. #. type: table
  53024. #: guix-git/doc/guix.texi:35768
  53025. 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."
  53026. msgstr ""
  53027. #. type: table
  53028. #: guix-git/doc/guix.texi:35776
  53029. 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."
  53030. msgstr ""
  53031. #. type: table
  53032. #: guix-git/doc/guix.texi:35780
  53033. 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."
  53034. msgstr ""
  53035. #. type: table
  53036. #: guix-git/doc/guix.texi:35784
  53037. 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:"
  53038. msgstr ""
  53039. #. type: example
  53040. #: guix-git/doc/guix.texi:35788
  53041. #, no-wrap
  53042. msgid ""
  53043. "guix system container my-config.scm \\\n"
  53044. " --expose=$HOME --share=$HOME/tmp=/exchange\n"
  53045. msgstr ""
  53046. #. type: quotation
  53047. #: guix-git/doc/guix.texi:35792
  53048. msgid "This option requires Linux-libre 3.19 or newer."
  53049. msgstr ""
  53050. #. type: Plain text
  53051. #: guix-git/doc/guix.texi:35799 guix-git/doc/guix.texi:38383
  53052. 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:"
  53053. msgstr ""
  53054. #. type: table
  53055. #: guix-git/doc/guix.texi:35808
  53056. 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})."
  53057. msgstr ""
  53058. #. type: table
  53059. #: guix-git/doc/guix.texi:35813
  53060. msgid "Attempt to build for @var{system} instead of the host system type. This works as per @command{guix build} (@pxref{Invoking guix build})."
  53061. msgstr ""
  53062. #. type: table
  53063. #: guix-git/doc/guix.texi:35818
  53064. msgid "Return the derivation file name of the given operating system without building anything."
  53065. msgstr ""
  53066. #. type: table
  53067. #: guix-git/doc/guix.texi:35827
  53068. 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:"
  53069. msgstr ""
  53070. #. type: example
  53071. #: guix-git/doc/guix.texi:35830
  53072. #, no-wrap
  53073. msgid "guix system image -t qcow2 --save-provenance config.scm\n"
  53074. msgstr ""
  53075. #. type: table
  53076. #: guix-git/doc/guix.texi:35837
  53077. 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."
  53078. msgstr ""
  53079. #. type: item
  53080. #: guix-git/doc/guix.texi:35838
  53081. #, fuzzy, no-wrap
  53082. msgid "--image-type=@var{type}"
  53083. msgstr "--log-compression=@var{type}"
  53084. #. type: table
  53085. #: guix-git/doc/guix.texi:35841
  53086. msgid "For the @code{image} action, create an image with given @var{type}."
  53087. msgstr ""
  53088. #. type: table
  53089. #: guix-git/doc/guix.texi:35844
  53090. msgid "When this option is omitted, @command{guix system} uses the @code{efi-raw} image type."
  53091. msgstr ""
  53092. #. type: cindex
  53093. #: guix-git/doc/guix.texi:35845
  53094. #, no-wrap
  53095. msgid "ISO-9660 format"
  53096. msgstr ""
  53097. #. type: cindex
  53098. #: guix-git/doc/guix.texi:35846
  53099. #, no-wrap
  53100. msgid "CD image format"
  53101. msgstr ""
  53102. #. type: cindex
  53103. #: guix-git/doc/guix.texi:35847
  53104. #, no-wrap
  53105. msgid "DVD image format"
  53106. msgstr ""
  53107. #. type: table
  53108. #: guix-git/doc/guix.texi:35850
  53109. msgid "@option{--image-type=iso9660} produces an ISO-9660 image, suitable for burning on CDs and DVDs."
  53110. msgstr ""
  53111. #. type: item
  53112. #: guix-git/doc/guix.texi:35851
  53113. #, no-wrap
  53114. msgid "--image-size=@var{size}"
  53115. msgstr ""
  53116. #. type: table
  53117. #: guix-git/doc/guix.texi:35856
  53118. 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})."
  53119. msgstr ""
  53120. #. type: table
  53121. #: guix-git/doc/guix.texi:35860
  53122. 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}."
  53123. msgstr ""
  53124. #. type: table
  53125. #: guix-git/doc/guix.texi:35865
  53126. msgid "For the @code{container} action, allow containers to access the host network, that is, do not create a network namespace."
  53127. msgstr ""
  53128. #. type: item
  53129. #: guix-git/doc/guix.texi:35871
  53130. #, no-wrap
  53131. msgid "--skip-checks"
  53132. msgstr ""
  53133. #. type: table
  53134. #: guix-git/doc/guix.texi:35873
  53135. msgid "Skip pre-installation safety checks."
  53136. msgstr ""
  53137. #. type: table
  53138. #: guix-git/doc/guix.texi:35880
  53139. 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."
  53140. msgstr ""
  53141. #. type: table
  53142. #: guix-git/doc/guix.texi:35883
  53143. msgid "Instruct @command{guix system reconfigure} to allow system downgrades."
  53144. msgstr ""
  53145. #. type: table
  53146. #: guix-git/doc/guix.texi:35891
  53147. 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."
  53148. msgstr ""
  53149. #. type: cindex
  53150. #: guix-git/doc/guix.texi:35897
  53151. #, no-wrap
  53152. msgid "on-error"
  53153. msgstr ""
  53154. #. type: cindex
  53155. #: guix-git/doc/guix.texi:35898
  53156. #, no-wrap
  53157. msgid "on-error strategy"
  53158. msgstr ""
  53159. #. type: cindex
  53160. #: guix-git/doc/guix.texi:35899
  53161. #, no-wrap
  53162. msgid "error strategy"
  53163. msgstr ""
  53164. #. type: item
  53165. #: guix-git/doc/guix.texi:35900
  53166. #, no-wrap
  53167. msgid "--on-error=@var{strategy}"
  53168. msgstr ""
  53169. #. type: table
  53170. #: guix-git/doc/guix.texi:35903
  53171. msgid "Apply @var{strategy} when an error occurs when reading @var{file}. @var{strategy} may be one of the following:"
  53172. msgstr ""
  53173. #. type: item
  53174. #: guix-git/doc/guix.texi:35905
  53175. #, no-wrap
  53176. msgid "nothing-special"
  53177. msgstr ""
  53178. #. type: table
  53179. #: guix-git/doc/guix.texi:35907
  53180. msgid "Report the error concisely and exit. This is the default strategy."
  53181. msgstr ""
  53182. #. type: item
  53183. #: guix-git/doc/guix.texi:35908
  53184. #, no-wrap
  53185. msgid "backtrace"
  53186. msgstr ""
  53187. #. type: table
  53188. #: guix-git/doc/guix.texi:35910
  53189. msgid "Likewise, but also display a backtrace."
  53190. msgstr ""
  53191. #. type: item
  53192. #: guix-git/doc/guix.texi:35911
  53193. #, no-wrap
  53194. msgid "debug"
  53195. msgstr ""
  53196. #. type: table
  53197. #: guix-git/doc/guix.texi:35917
  53198. 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."
  53199. msgstr ""
  53200. #. type: Plain text
  53201. #: guix-git/doc/guix.texi:35924
  53202. 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:"
  53203. msgstr ""
  53204. #. type: item
  53205. #: guix-git/doc/guix.texi:35927 guix-git/doc/guix.texi:38346
  53206. #, no-wrap
  53207. msgid "describe"
  53208. msgstr ""
  53209. #. type: table
  53210. #: guix-git/doc/guix.texi:35930
  53211. msgid "Describe the running system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available."
  53212. msgstr ""
  53213. #. type: quotation
  53214. #: guix-git/doc/guix.texi:35937
  53215. msgid "The @emph{running} system generation---referred to by @file{/run/current-system}---is not necessarily the @emph{current} system generation---referred to by @file{/var/guix/profiles/system}: it differs when, for instance, you chose from the bootloader menu to boot an older generation."
  53216. msgstr ""
  53217. #. type: quotation
  53218. #: guix-git/doc/guix.texi:35941
  53219. msgid "It can also differ from the @emph{booted} system generation---referred to by @file{/run/booted-system}---for instance because you reconfigured the system in the meantime."
  53220. msgstr ""
  53221. #. type: item
  53222. #: guix-git/doc/guix.texi:35943 guix-git/doc/guix.texi:38350
  53223. #, no-wrap
  53224. msgid "list-generations"
  53225. msgstr ""
  53226. #. type: table
  53227. #: guix-git/doc/guix.texi:35948
  53228. 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})."
  53229. msgstr ""
  53230. #. type: table
  53231. #: guix-git/doc/guix.texi:35953 guix-git/doc/guix.texi:38360
  53232. 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:"
  53233. msgstr ""
  53234. #. type: example
  53235. #: guix-git/doc/guix.texi:35956
  53236. #, no-wrap
  53237. msgid "$ guix system list-generations 10d\n"
  53238. msgstr ""
  53239. #. type: Plain text
  53240. #: guix-git/doc/guix.texi:35963
  53241. 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:"
  53242. msgstr ""
  53243. #. type: anchor{#1}
  53244. #: guix-git/doc/guix.texi:35965
  53245. msgid "system-extension-graph"
  53246. msgstr ""
  53247. #. type: item
  53248. #: guix-git/doc/guix.texi:35967
  53249. #, no-wrap
  53250. msgid "extension-graph"
  53251. msgstr ""
  53252. #. type: table
  53253. #: guix-git/doc/guix.texi:35974
  53254. 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}}):"
  53255. msgstr ""
  53256. #. type: table
  53257. #: guix-git/doc/guix.texi:35976
  53258. msgid "The command:"
  53259. msgstr ""
  53260. #. type: example
  53261. #: guix-git/doc/guix.texi:35979
  53262. #, no-wrap
  53263. msgid "$ guix system extension-graph @var{file} | xdot -\n"
  53264. msgstr ""
  53265. #. type: table
  53266. #: guix-git/doc/guix.texi:35982
  53267. msgid "shows the extension relations among services."
  53268. msgstr ""
  53269. #. type: anchor{#1}
  53270. #: guix-git/doc/guix.texi:35984
  53271. msgid "system-shepherd-graph"
  53272. msgstr ""
  53273. #. type: item
  53274. #: guix-git/doc/guix.texi:35984
  53275. #, no-wrap
  53276. msgid "shepherd-graph"
  53277. msgstr ""
  53278. #. type: table
  53279. #: guix-git/doc/guix.texi:35989
  53280. 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."
  53281. msgstr ""
  53282. #. type: table
  53283. #: guix-git/doc/guix.texi:35992
  53284. msgid "Again, the default output format is Dot/Graphviz, but you can pass @option{--graph-backend} to select a different one."
  53285. msgstr ""
  53286. #. type: section
  53287. #: guix-git/doc/guix.texi:35996
  53288. #, fuzzy, no-wrap
  53289. msgid "Invoking @code{guix deploy}"
  53290. msgstr "调用@command{guix-daemon}"
  53291. #. type: Plain text
  53292. #: guix-git/doc/guix.texi:36004
  53293. 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''."
  53294. msgstr ""
  53295. #. type: quotation
  53296. #: guix-git/doc/guix.texi:36009 guix-git/doc/guix.texi:37504
  53297. 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}!"
  53298. msgstr ""
  53299. #. type: example
  53300. #: guix-git/doc/guix.texi:36013
  53301. #, no-wrap
  53302. msgid "guix deploy @var{file}\n"
  53303. msgstr ""
  53304. #. type: Plain text
  53305. #: guix-git/doc/guix.texi:36017
  53306. 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:"
  53307. msgstr ""
  53308. #. type: lisp
  53309. #: guix-git/doc/guix.texi:36024
  53310. #, no-wrap
  53311. msgid ""
  53312. ";; This is a Guix deployment of a \"bare bones\" setup, with\n"
  53313. ";; no X11 display server, to a machine with an SSH daemon\n"
  53314. ";; listening on localhost:2222. A configuration such as this\n"
  53315. ";; may be appropriate for virtual machine with ports\n"
  53316. ";; forwarded to the host's loopback interface.\n"
  53317. "\n"
  53318. msgstr ""
  53319. #. type: lisp
  53320. #: guix-git/doc/guix.texi:36027
  53321. #, no-wrap
  53322. msgid ""
  53323. "(use-service-modules networking ssh)\n"
  53324. "(use-package-modules bootloaders)\n"
  53325. "\n"
  53326. msgstr ""
  53327. #. type: lisp
  53328. #: guix-git/doc/guix.texi:36048
  53329. #, no-wrap
  53330. msgid ""
  53331. "(define %system\n"
  53332. " (operating-system\n"
  53333. " (host-name \"gnu-deployed\")\n"
  53334. " (timezone \"Etc/UTC\")\n"
  53335. " (bootloader (bootloader-configuration\n"
  53336. " (bootloader grub-bootloader)\n"
  53337. " (targets '(\"/dev/vda\"))\n"
  53338. " (terminal-outputs '(console))))\n"
  53339. " (file-systems (cons (file-system\n"
  53340. " (mount-point \"/\")\n"
  53341. " (device \"/dev/vda1\")\n"
  53342. " (type \"ext4\"))\n"
  53343. " %base-file-systems))\n"
  53344. " (services\n"
  53345. " (append (list (service dhcp-client-service-type)\n"
  53346. " (service openssh-service-type\n"
  53347. " (openssh-configuration\n"
  53348. " (permit-root-login #t)\n"
  53349. " (allow-empty-passwords? #t))))\n"
  53350. " %base-services))))\n"
  53351. "\n"
  53352. msgstr ""
  53353. #. type: lisp
  53354. #: guix-git/doc/guix.texi:36058
  53355. #, no-wrap
  53356. msgid ""
  53357. "(list (machine\n"
  53358. " (operating-system %system)\n"
  53359. " (environment managed-host-environment-type)\n"
  53360. " (configuration (machine-ssh-configuration\n"
  53361. " (host-name \"localhost\")\n"
  53362. " (system \"x86_64-linux\")\n"
  53363. " (user \"alice\")\n"
  53364. " (identity \"./id_rsa\")\n"
  53365. " (port 2222)))))\n"
  53366. msgstr ""
  53367. #. type: Plain text
  53368. #: guix-git/doc/guix.texi:36071
  53369. 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."
  53370. msgstr ""
  53371. #. type: Plain text
  53372. #: guix-git/doc/guix.texi:36076
  53373. 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:"
  53374. msgstr ""
  53375. #. type: Plain text
  53376. #: guix-git/doc/guix.texi:36084
  53377. #, fuzzy
  53378. msgid "Each target machine must authorize the key of the master machine so that it accepts store items it receives from the coordinator:"
  53379. msgstr "每台构建机器都必须认证主机器的公钥,从而接收从主机器接收的仓库文件:"
  53380. #. type: example
  53381. #: guix-git/doc/guix.texi:36087
  53382. #, fuzzy, no-wrap
  53383. msgid "# guix archive --authorize < coordinator-public-key.txt\n"
  53384. msgstr "# guix archive --authorize < master-public-key.txt\n"
  53385. #. type: Plain text
  53386. #: guix-git/doc/guix.texi:36098
  53387. 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:"
  53388. msgstr ""
  53389. #. type: lisp
  53390. #: guix-git/doc/guix.texi:36102
  53391. #, no-wrap
  53392. msgid ""
  53393. "(use-modules ...\n"
  53394. " (gnu system)) ;for %sudoers-specification\n"
  53395. "\n"
  53396. msgstr ""
  53397. #. type: lisp
  53398. #: guix-git/doc/guix.texi:36104
  53399. #, no-wrap
  53400. msgid ""
  53401. "(define %user \"username\")\n"
  53402. "\n"
  53403. msgstr ""
  53404. #. type: lisp
  53405. #: guix-git/doc/guix.texi:36112
  53406. #, no-wrap
  53407. msgid ""
  53408. "(operating-system\n"
  53409. " ...\n"
  53410. " (sudoers-file\n"
  53411. " (plain-file \"sudoers\"\n"
  53412. " (string-append (plain-file-content %sudoers-specification)\n"
  53413. " (format #f \"~a ALL = NOPASSWD: ALL~%\"\n"
  53414. " %user)))))\n"
  53415. "\n"
  53416. msgstr ""
  53417. #. type: Plain text
  53418. #: guix-git/doc/guix.texi:36117
  53419. msgid "For more information regarding the format of the @file{sudoers} file, consult @command{man sudoers}."
  53420. msgstr ""
  53421. #. type: Plain text
  53422. #: guix-git/doc/guix.texi:36122
  53423. msgid "Once you've deployed a system on a set of machines, you may find it useful to run a command on all of them. The @option{--execute} or @option{-x} option lets you do that; the example below runs @command{uname -a} on all the machines listed in the deployment file:"
  53424. msgstr ""
  53425. #. type: example
  53426. #: guix-git/doc/guix.texi:36125
  53427. #, no-wrap
  53428. msgid "guix deploy @var{file} -x -- uname -a\n"
  53429. msgstr ""
  53430. #. type: Plain text
  53431. #: guix-git/doc/guix.texi:36129
  53432. msgid "One thing you may often need to do after deployment is restart specific services on all the machines, which you can do like so:"
  53433. msgstr ""
  53434. #. type: example
  53435. #: guix-git/doc/guix.texi:36132
  53436. #, no-wrap
  53437. msgid "guix deploy @var{file} -x -- herd restart @var{service}\n"
  53438. msgstr ""
  53439. #. type: Plain text
  53440. #: guix-git/doc/guix.texi:36136
  53441. msgid "The @command{guix deploy -x} command returns zero if and only if the command succeeded on all the machines."
  53442. msgstr ""
  53443. #. type: Plain text
  53444. #: guix-git/doc/guix.texi:36141
  53445. msgid "Below are the data types you need to know about when writing a deployment file."
  53446. msgstr ""
  53447. #. type: deftp
  53448. #: guix-git/doc/guix.texi:36142
  53449. #, fuzzy, no-wrap
  53450. msgid "{Data Type} machine"
  53451. msgstr "{数据类型} build-machine"
  53452. #. type: deftp
  53453. #: guix-git/doc/guix.texi:36145
  53454. msgid "This is the data type representing a single machine in a heterogeneous Guix deployment."
  53455. msgstr ""
  53456. #. type: table
  53457. #: guix-git/doc/guix.texi:36149
  53458. #, fuzzy
  53459. msgid "The object of the operating system configuration to deploy."
  53460. msgstr "管理操作系统配置。"
  53461. #. type: code{#1}
  53462. #: guix-git/doc/guix.texi:36150
  53463. #, fuzzy, no-wrap
  53464. msgid "environment"
  53465. msgstr "构建环境"
  53466. #. type: table
  53467. #: guix-git/doc/guix.texi:36152
  53468. msgid "An @code{environment-type} describing how the machine should be provisioned."
  53469. msgstr ""
  53470. #. type: item
  53471. #: guix-git/doc/guix.texi:36153
  53472. #, fuzzy, no-wrap
  53473. msgid "@code{configuration} (default: @code{#f})"
  53474. msgstr "@code{journal-content}(默认值:@code{#f})"
  53475. #. type: table
  53476. #: guix-git/doc/guix.texi:36158
  53477. 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."
  53478. msgstr ""
  53479. #. type: deftp
  53480. #: guix-git/doc/guix.texi:36161
  53481. #, fuzzy, no-wrap
  53482. msgid "{Data Type} machine-ssh-configuration"
  53483. msgstr "{数据类型} build-machine"
  53484. #. type: deftp
  53485. #: guix-git/doc/guix.texi:36164
  53486. msgid "This is the data type representing the SSH client parameters for a machine with an @code{environment} of @code{managed-host-environment-type}."
  53487. msgstr ""
  53488. #. type: item
  53489. #: guix-git/doc/guix.texi:36167
  53490. #, fuzzy, no-wrap
  53491. msgid "@code{build-locally?} (default: @code{#t})"
  53492. msgstr "@code{zonefile-load}(默认值:@code{#f})"
  53493. #. type: table
  53494. #: guix-git/doc/guix.texi:36169
  53495. msgid "If false, system derivations will be built on the machine being deployed to."
  53496. msgstr ""
  53497. #. type: code{#1}
  53498. #: guix-git/doc/guix.texi:36169
  53499. #, no-wrap
  53500. msgid "system"
  53501. msgstr "系统"
  53502. #. type: table
  53503. #: guix-git/doc/guix.texi:36172
  53504. #, fuzzy
  53505. msgid "The system type describing the architecture of the machine being deployed to---e.g., @code{\"x86_64-linux\"}."
  53506. msgstr "远程机器的系统类型--如,@code{\"x86_64-linux\"}。"
  53507. #. type: item
  53508. #: guix-git/doc/guix.texi:36172
  53509. #, fuzzy, no-wrap
  53510. msgid "@code{authorize?} (default: @code{#t})"
  53511. msgstr "@code{mate}(默认值:@code{mate})"
  53512. #. type: table
  53513. #: guix-git/doc/guix.texi:36175
  53514. msgid "If true, the coordinator's signing key will be added to the remote's ACL keyring."
  53515. msgstr ""
  53516. #. type: item
  53517. #: guix-git/doc/guix.texi:36177
  53518. #, fuzzy, no-wrap
  53519. msgid "@code{identity} (default: @code{#f})"
  53520. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  53521. #. type: table
  53522. #: guix-git/doc/guix.texi:36180
  53523. msgid "If specified, the path to the SSH private key to use to authenticate with the remote host."
  53524. msgstr ""
  53525. #. type: item
  53526. #: guix-git/doc/guix.texi:36181
  53527. #, fuzzy, no-wrap
  53528. msgid "@code{host-key} (default: @code{#f})"
  53529. msgstr "@code{port}(默认值:@code{22})"
  53530. #. type: table
  53531. #: guix-git/doc/guix.texi:36183
  53532. msgid "This should be the SSH host key of the machine, which looks like this:"
  53533. msgstr ""
  53534. #. type: example
  53535. #: guix-git/doc/guix.texi:36186
  53536. #, fuzzy, no-wrap
  53537. msgid "ssh-ed25519 AAAAC3Nz@dots{} root@@example.org\n"
  53538. msgstr "ssh-ed25519 AAAAC3NzaC@dots{}mde+UhL hint@@example.org\n"
  53539. #. type: table
  53540. #: guix-git/doc/guix.texi:36191
  53541. 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."
  53542. msgstr ""
  53543. #. type: item
  53544. #: guix-git/doc/guix.texi:36192
  53545. #, fuzzy, no-wrap
  53546. msgid "@code{allow-downgrades?} (default: @code{#f})"
  53547. msgstr "@code{challenge}(默认值:@code{#f})"
  53548. #. type: table
  53549. #: guix-git/doc/guix.texi:36194
  53550. msgid "Whether to allow potential downgrades."
  53551. msgstr ""
  53552. #. type: table
  53553. #: guix-git/doc/guix.texi:36202
  53554. 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."
  53555. msgstr ""
  53556. #. type: item
  53557. #: guix-git/doc/guix.texi:36203
  53558. #, fuzzy, no-wrap
  53559. msgid "@code{safety-checks?} (default: @code{#t})"
  53560. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  53561. #. type: table
  53562. #: guix-git/doc/guix.texi:36209
  53563. msgid "Whether to perform ``safety checks'' before deployment. This includes verifying that devices and file systems referred to in the operating system configuration actually exist on the target machine, and making sure that Linux modules required to access storage devices at boot time are listed in the @code{initrd-modules} field of the operating system."
  53564. msgstr ""
  53565. #. type: table
  53566. #: guix-git/doc/guix.texi:36212
  53567. msgid "These safety checks ensure that you do not inadvertently deploy a system that would fail to boot. Be careful before turning them off!"
  53568. msgstr ""
  53569. #. type: deftp
  53570. #: guix-git/doc/guix.texi:36215
  53571. #, no-wrap
  53572. msgid "{Data Type} digital-ocean-configuration"
  53573. msgstr ""
  53574. #. type: deftp
  53575. #: guix-git/doc/guix.texi:36218
  53576. 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}."
  53577. msgstr ""
  53578. #. type: code{#1}
  53579. #: guix-git/doc/guix.texi:36220
  53580. #, fuzzy, no-wrap
  53581. msgid "ssh-key"
  53582. msgstr "主机公钥"
  53583. #. type: table
  53584. #: guix-git/doc/guix.texi:36223
  53585. msgid "The path to the SSH private key to use to authenticate with the remote host. In the future, this field may not exist."
  53586. msgstr ""
  53587. #. type: code{#1}
  53588. #: guix-git/doc/guix.texi:36223
  53589. #, no-wrap
  53590. msgid "tags"
  53591. msgstr ""
  53592. #. type: table
  53593. #: guix-git/doc/guix.texi:36226
  53594. 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."
  53595. msgstr ""
  53596. #. type: code{#1}
  53597. #: guix-git/doc/guix.texi:36226
  53598. #, no-wrap
  53599. msgid "region"
  53600. msgstr ""
  53601. #. type: table
  53602. #: guix-git/doc/guix.texi:36228
  53603. msgid "A Digital Ocean region slug, such as @code{\"nyc3\"}."
  53604. msgstr ""
  53605. #. type: table
  53606. #: guix-git/doc/guix.texi:36230
  53607. msgid "A Digital Ocean size slug, such as @code{\"s-1vcpu-1gb\"}"
  53608. msgstr ""
  53609. #. type: code{#1}
  53610. #: guix-git/doc/guix.texi:36230
  53611. #, no-wrap
  53612. msgid "enable-ipv6?"
  53613. msgstr ""
  53614. #. type: table
  53615. #: guix-git/doc/guix.texi:36232
  53616. msgid "Whether or not the droplet should be created with IPv6 networking."
  53617. msgstr ""
  53618. #. type: section
  53619. #: guix-git/doc/guix.texi:36236
  53620. #, no-wrap
  53621. msgid "Running Guix in a Virtual Machine"
  53622. msgstr ""
  53623. #. type: Plain text
  53624. #: guix-git/doc/guix.texi:36244
  53625. msgid "To run Guix in a virtual machine (VM), one can use the pre-built Guix VM image distributed at @url{@value{BASE-URL}/guix-system-vm-image-@value{VERSION}.x86_64-linux.qcow2}. This image is a compressed image in QCOW format. You can pass it to an emulator such as @uref{https://qemu.org/, QEMU} (see below for details)."
  53626. msgstr ""
  53627. #. type: Plain text
  53628. #: guix-git/doc/guix.texi:36251
  53629. 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})."
  53630. msgstr ""
  53631. #. type: Plain text
  53632. #: guix-git/doc/guix.texi:36254
  53633. msgid "Instead of using this pre-built image, one can also build their own image using @command{guix system image} (@pxref{Invoking guix system})."
  53634. msgstr ""
  53635. #. type: cindex
  53636. #: guix-git/doc/guix.texi:36255
  53637. #, no-wrap
  53638. msgid "QEMU"
  53639. msgstr ""
  53640. #. type: Plain text
  53641. #: guix-git/doc/guix.texi:36262
  53642. 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:"
  53643. msgstr ""
  53644. #. type: example
  53645. #: guix-git/doc/guix.texi:36269
  53646. #, no-wrap
  53647. msgid ""
  53648. "$ qemu-system-x86_64 \\\n"
  53649. " -nic user,model=virtio-net-pci \\\n"
  53650. " -enable-kvm -m 1024 \\\n"
  53651. " -device virtio-blk,drive=myhd \\\n"
  53652. " -drive if=none,file=/tmp/qemu-image,id=myhd\n"
  53653. msgstr ""
  53654. #. type: Plain text
  53655. #: guix-git/doc/guix.texi:36272
  53656. msgid "Here is what each of these options means:"
  53657. msgstr ""
  53658. #. type: item
  53659. #: guix-git/doc/guix.texi:36274
  53660. #, no-wrap
  53661. msgid "qemu-system-x86_64"
  53662. msgstr ""
  53663. #. type: table
  53664. #: guix-git/doc/guix.texi:36277
  53665. msgid "This specifies the hardware platform to emulate. This should match the host."
  53666. msgstr ""
  53667. #. type: item
  53668. #: guix-git/doc/guix.texi:36278
  53669. #, no-wrap
  53670. msgid "-nic user,model=virtio-net-pci"
  53671. msgstr ""
  53672. #. type: table
  53673. #: guix-git/doc/guix.texi:36286
  53674. 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}."
  53675. msgstr ""
  53676. #. type: item
  53677. #: guix-git/doc/guix.texi:36287
  53678. #, no-wrap
  53679. msgid "-enable-kvm"
  53680. msgstr ""
  53681. #. type: table
  53682. #: guix-git/doc/guix.texi:36291
  53683. msgid "If your system has hardware virtualization extensions, enabling the virtual machine support (KVM) of the Linux kernel will make things run faster."
  53684. msgstr ""
  53685. #. type: item
  53686. #: guix-git/doc/guix.texi:36293
  53687. #, no-wrap
  53688. msgid "-m 1024"
  53689. msgstr ""
  53690. #. type: table
  53691. #: guix-git/doc/guix.texi:36296
  53692. msgid "RAM available to the guest OS, in mebibytes. Defaults to 128@tie{}MiB, which may be insufficient for some operations."
  53693. msgstr ""
  53694. #. type: item
  53695. #: guix-git/doc/guix.texi:36297
  53696. #, no-wrap
  53697. msgid "-device virtio-blk,drive=myhd"
  53698. msgstr ""
  53699. #. type: table
  53700. #: guix-git/doc/guix.texi:36302
  53701. 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."
  53702. msgstr ""
  53703. #. type: item
  53704. #: guix-git/doc/guix.texi:36303
  53705. #, no-wrap
  53706. msgid "-drive if=none,file=/tmp/qemu-image,id=myhd"
  53707. msgstr ""
  53708. #. type: table
  53709. #: guix-git/doc/guix.texi:36306
  53710. msgid "Use our QCOW image, the @file{/tmp/qemu-image} file, as the backing store of the ``myhd'' drive."
  53711. msgstr ""
  53712. #. type: Plain text
  53713. #: guix-git/doc/guix.texi:36316
  53714. 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}."
  53715. msgstr ""
  53716. #. type: subsection
  53717. #: guix-git/doc/guix.texi:36317
  53718. #, no-wrap
  53719. msgid "Connecting Through SSH"
  53720. msgstr ""
  53721. #. type: Plain text
  53722. #: guix-git/doc/guix.texi:36325
  53723. 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"
  53724. msgstr ""
  53725. #. type: example
  53726. #: guix-git/doc/guix.texi:36328
  53727. #, no-wrap
  53728. msgid "$(guix system vm config.scm) -nic user,model=virtio-net-pci,hostfwd=tcp::10022-:22\n"
  53729. msgstr ""
  53730. #. type: Plain text
  53731. #: guix-git/doc/guix.texi:36331
  53732. msgid "To connect to the VM you can run"
  53733. msgstr ""
  53734. #. type: example
  53735. #: guix-git/doc/guix.texi:36334
  53736. #, no-wrap
  53737. msgid "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 localhost\n"
  53738. msgstr ""
  53739. #. type: Plain text
  53740. #: guix-git/doc/guix.texi:36341
  53741. 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."
  53742. msgstr ""
  53743. #. type: quotation
  53744. #: guix-git/doc/guix.texi:36347
  53745. msgid "If you find the above @samp{hostfwd} example not to be working (e.g., your SSH client hangs attempting to connect to the mapped port of your VM), make sure that your Guix System VM has networking support, such as by using the @code{dhcp-client-service-type} service type."
  53746. msgstr ""
  53747. #. type: subsection
  53748. #: guix-git/doc/guix.texi:36349
  53749. #, no-wrap
  53750. msgid "Using @command{virt-viewer} with Spice"
  53751. msgstr ""
  53752. #. type: Plain text
  53753. #: guix-git/doc/guix.texi:36355
  53754. 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."
  53755. msgstr ""
  53756. #. type: Plain text
  53757. #: guix-git/doc/guix.texi:36358
  53758. 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}:"
  53759. msgstr ""
  53760. #. type: example
  53761. #: guix-git/doc/guix.texi:36364
  53762. #, no-wrap
  53763. msgid ""
  53764. "-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x5\n"
  53765. "-chardev spicevmc,name=vdagent,id=vdagent\n"
  53766. "-device virtserialport,nr=1,bus=virtio-serial0.0,chardev=vdagent,\\\n"
  53767. "name=com.redhat.spice.0\n"
  53768. msgstr ""
  53769. #. type: Plain text
  53770. #: guix-git/doc/guix.texi:36368
  53771. msgid "You'll also need to add the @code{(spice-vdagent-service)} to your system definition (@pxref{Miscellaneous Services, Spice service})."
  53772. msgstr ""
  53773. #. type: Plain text
  53774. #: guix-git/doc/guix.texi:36375
  53775. 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?"
  53776. msgstr ""
  53777. #. type: cindex
  53778. #: guix-git/doc/guix.texi:36388
  53779. #, no-wrap
  53780. msgid "daemons"
  53781. msgstr ""
  53782. #. type: Plain text
  53783. #: guix-git/doc/guix.texi:36401
  53784. 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."
  53785. msgstr ""
  53786. #. type: cindex
  53787. #: guix-git/doc/guix.texi:36402
  53788. #, no-wrap
  53789. msgid "service extensions"
  53790. msgstr ""
  53791. #. type: Plain text
  53792. #: guix-git/doc/guix.texi:36414
  53793. 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})."
  53794. msgstr ""
  53795. #. type: Plain text
  53796. #: guix-git/doc/guix.texi:36418
  53797. 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:"
  53798. msgstr ""
  53799. #. type: Plain text
  53800. #: guix-git/doc/guix.texi:36420
  53801. msgid "@image{images/service-graph,,5in,Typical service extension graph.}"
  53802. msgstr ""
  53803. #. type: cindex
  53804. #: guix-git/doc/guix.texi:36421
  53805. #, no-wrap
  53806. msgid "system service"
  53807. msgstr ""
  53808. #. type: Plain text
  53809. #: guix-git/doc/guix.texi:36429
  53810. 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."
  53811. msgstr ""
  53812. #. type: cindex
  53813. #: guix-git/doc/guix.texi:36430
  53814. #, no-wrap
  53815. msgid "service types"
  53816. msgstr ""
  53817. #. type: Plain text
  53818. #: guix-git/doc/guix.texi:36436
  53819. 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."
  53820. msgstr ""
  53821. #. type: Plain text
  53822. #: guix-git/doc/guix.texi:36439
  53823. msgid "The following section describes the programming interface for service types and services."
  53824. msgstr ""
  53825. #. type: Plain text
  53826. #: guix-git/doc/guix.texi:36446
  53827. 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}):"
  53828. msgstr ""
  53829. #. type: lisp
  53830. #: guix-git/doc/guix.texi:36456
  53831. #, no-wrap
  53832. msgid ""
  53833. "(define guix-service-type\n"
  53834. " (service-type\n"
  53835. " (name 'guix)\n"
  53836. " (extensions\n"
  53837. " (list (service-extension shepherd-root-service-type guix-shepherd-service)\n"
  53838. " (service-extension account-service-type guix-accounts)\n"
  53839. " (service-extension activation-service-type guix-activation)))\n"
  53840. " (default-value (guix-configuration))))\n"
  53841. msgstr ""
  53842. #. type: Plain text
  53843. #: guix-git/doc/guix.texi:36460
  53844. msgid "It defines three things:"
  53845. msgstr ""
  53846. #. type: enumerate
  53847. #: guix-git/doc/guix.texi:36464
  53848. msgid "A name, whose sole purpose is to make inspection and debugging easier."
  53849. msgstr ""
  53850. #. type: enumerate
  53851. #: guix-git/doc/guix.texi:36469
  53852. 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."
  53853. msgstr ""
  53854. #. type: enumerate
  53855. #: guix-git/doc/guix.texi:36472
  53856. msgid "Every service type has at least one service extension. The only exception is the @dfn{boot service type}, which is the ultimate service."
  53857. msgstr ""
  53858. #. type: enumerate
  53859. #: guix-git/doc/guix.texi:36475
  53860. msgid "Optionally, a default value for instances of this type."
  53861. msgstr ""
  53862. #. type: Plain text
  53863. #: guix-git/doc/guix.texi:36478
  53864. msgid "In this example, @code{guix-service-type} extends three services:"
  53865. msgstr ""
  53866. #. type: item
  53867. #: guix-git/doc/guix.texi:36480
  53868. #, no-wrap
  53869. msgid "shepherd-root-service-type"
  53870. msgstr ""
  53871. #. type: table
  53872. #: guix-git/doc/guix.texi:36485
  53873. 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})."
  53874. msgstr ""
  53875. #. type: item
  53876. #: guix-git/doc/guix.texi:36486
  53877. #, no-wrap
  53878. msgid "account-service-type"
  53879. msgstr ""
  53880. #. type: table
  53881. #: guix-git/doc/guix.texi:36491
  53882. 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})."
  53883. msgstr ""
  53884. #. type: item
  53885. #: guix-git/doc/guix.texi:36492
  53886. #, no-wrap
  53887. msgid "activation-service-type"
  53888. msgstr ""
  53889. #. type: table
  53890. #: guix-git/doc/guix.texi:36496
  53891. 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."
  53892. msgstr ""
  53893. #. type: Plain text
  53894. #: guix-git/doc/guix.texi:36499
  53895. msgid "A service of this type is instantiated like this:"
  53896. msgstr ""
  53897. #. type: lisp
  53898. #: guix-git/doc/guix.texi:36505
  53899. #, no-wrap
  53900. msgid ""
  53901. "(service guix-service-type\n"
  53902. " (guix-configuration\n"
  53903. " (build-accounts 5)\n"
  53904. " (extra-options '(\"--gc-keep-derivations\"))))\n"
  53905. msgstr ""
  53906. #. type: Plain text
  53907. #: guix-git/doc/guix.texi:36513
  53908. 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:"
  53909. msgstr ""
  53910. #. type: lisp
  53911. #: guix-git/doc/guix.texi:36516
  53912. #, no-wrap
  53913. msgid "(service guix-service-type)\n"
  53914. msgstr ""
  53915. #. type: Plain text
  53916. #: guix-git/doc/guix.texi:36520
  53917. msgid "@code{guix-service-type} is quite simple because it extends other services but is not extensible itself."
  53918. msgstr ""
  53919. #. type: Plain text
  53920. #: guix-git/doc/guix.texi:36524
  53921. msgid "The service type for an @emph{extensible} service looks like this:"
  53922. msgstr ""
  53923. #. type: lisp
  53924. #: guix-git/doc/guix.texi:36531
  53925. #, no-wrap
  53926. msgid ""
  53927. "(define udev-service-type\n"
  53928. " (service-type (name 'udev)\n"
  53929. " (extensions\n"
  53930. " (list (service-extension shepherd-root-service-type\n"
  53931. " udev-shepherd-service)))\n"
  53932. "\n"
  53933. msgstr ""
  53934. #. type: lisp
  53935. #: guix-git/doc/guix.texi:36539
  53936. #, no-wrap
  53937. msgid ""
  53938. " (compose concatenate) ;concatenate the list of rules\n"
  53939. " (extend (lambda (config rules)\n"
  53940. " (match config\n"
  53941. " (($ <udev-configuration> udev initial-rules)\n"
  53942. " (udev-configuration\n"
  53943. " (udev udev) ;the udev package to use\n"
  53944. " (rules (append initial-rules rules)))))))))\n"
  53945. msgstr ""
  53946. #. type: Plain text
  53947. #: guix-git/doc/guix.texi:36545
  53948. 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:"
  53949. msgstr ""
  53950. #. type: item
  53951. #: guix-git/doc/guix.texi:36547
  53952. #, no-wrap
  53953. msgid "compose"
  53954. msgstr ""
  53955. #. type: table
  53956. #: guix-git/doc/guix.texi:36550
  53957. msgid "This is the procedure to @dfn{compose} the list of extensions to services of this type."
  53958. msgstr ""
  53959. #. type: table
  53960. #: guix-git/doc/guix.texi:36553
  53961. msgid "Services can extend the udev service by passing it lists of rules; we compose those extensions simply by concatenating them."
  53962. msgstr ""
  53963. #. type: item
  53964. #: guix-git/doc/guix.texi:36554
  53965. #, no-wrap
  53966. msgid "extend"
  53967. msgstr ""
  53968. #. type: table
  53969. #: guix-git/doc/guix.texi:36557
  53970. msgid "This procedure defines how the value of the service is @dfn{extended} with the composition of the extensions."
  53971. msgstr ""
  53972. #. type: table
  53973. #: guix-git/doc/guix.texi:36562
  53974. 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."
  53975. msgstr ""
  53976. #. type: table
  53977. #: guix-git/doc/guix.texi:36568
  53978. 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})."
  53979. msgstr ""
  53980. #. type: Plain text
  53981. #: guix-git/doc/guix.texi:36573
  53982. 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."
  53983. msgstr ""
  53984. #. type: Plain text
  53985. #: guix-git/doc/guix.texi:36576
  53986. msgid "Still here? The next section provides a reference of the programming interface for services."
  53987. msgstr ""
  53988. #. type: Plain text
  53989. #: guix-git/doc/guix.texi:36584
  53990. 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."
  53991. msgstr ""
  53992. #. type: deffn
  53993. #: guix-git/doc/guix.texi:36585
  53994. #, no-wrap
  53995. msgid "{Scheme Procedure} service @var{type} [@var{value}]"
  53996. msgstr ""
  53997. #. type: deffn
  53998. #: guix-git/doc/guix.texi:36589
  53999. 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."
  54000. msgstr ""
  54001. #. type: deffn
  54002. #: guix-git/doc/guix.texi:36593
  54003. 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."
  54004. msgstr ""
  54005. #. type: deffn
  54006. #: guix-git/doc/guix.texi:36595
  54007. msgid "For instance, this:"
  54008. msgstr ""
  54009. #. type: lisp
  54010. #: guix-git/doc/guix.texi:36598
  54011. #, no-wrap
  54012. msgid "(service openssh-service-type)\n"
  54013. msgstr ""
  54014. #. type: deffn
  54015. #: guix-git/doc/guix.texi:36602
  54016. msgid "is equivalent to this:"
  54017. msgstr ""
  54018. #. type: lisp
  54019. #: guix-git/doc/guix.texi:36606
  54020. #, no-wrap
  54021. msgid ""
  54022. "(service openssh-service-type\n"
  54023. " (openssh-configuration))\n"
  54024. msgstr ""
  54025. #. type: deffn
  54026. #: guix-git/doc/guix.texi:36610
  54027. msgid "In both cases the result is an instance of @code{openssh-service-type} with the default configuration."
  54028. msgstr ""
  54029. #. type: deffn
  54030. #: guix-git/doc/guix.texi:36612
  54031. #, no-wrap
  54032. msgid "{Scheme Procedure} service? @var{obj}"
  54033. msgstr ""
  54034. #. type: deffn
  54035. #: guix-git/doc/guix.texi:36614
  54036. msgid "Return true if @var{obj} is a service."
  54037. msgstr ""
  54038. #. type: deffn
  54039. #: guix-git/doc/guix.texi:36616
  54040. #, no-wrap
  54041. msgid "{Scheme Procedure} service-kind @var{service}"
  54042. msgstr ""
  54043. #. type: deffn
  54044. #: guix-git/doc/guix.texi:36618
  54045. msgid "Return the type of @var{service}---i.e., a @code{<service-type>} object."
  54046. msgstr ""
  54047. #. type: deffn
  54048. #: guix-git/doc/guix.texi:36620
  54049. #, no-wrap
  54050. msgid "{Scheme Procedure} service-value @var{service}"
  54051. msgstr ""
  54052. #. type: deffn
  54053. #: guix-git/doc/guix.texi:36623
  54054. msgid "Return the value associated with @var{service}. It represents its parameters."
  54055. msgstr ""
  54056. #. type: Plain text
  54057. #: guix-git/doc/guix.texi:36626
  54058. msgid "Here is an example of how a service is created and manipulated:"
  54059. msgstr ""
  54060. #. type: lisp
  54061. #: guix-git/doc/guix.texi:36635
  54062. #, no-wrap
  54063. msgid ""
  54064. "(define s\n"
  54065. " (service nginx-service-type\n"
  54066. " (nginx-configuration\n"
  54067. " (nginx nginx)\n"
  54068. " (log-directory log-directory)\n"
  54069. " (run-directory run-directory)\n"
  54070. " (file config-file))))\n"
  54071. "\n"
  54072. msgstr ""
  54073. #. type: lisp
  54074. #: guix-git/doc/guix.texi:36638
  54075. #, no-wrap
  54076. msgid ""
  54077. "(service? s)\n"
  54078. "@result{} #t\n"
  54079. "\n"
  54080. msgstr ""
  54081. #. type: lisp
  54082. #: guix-git/doc/guix.texi:36641
  54083. #, no-wrap
  54084. msgid ""
  54085. "(eq? (service-kind s) nginx-service-type)\n"
  54086. "@result{} #t\n"
  54087. msgstr ""
  54088. #. type: Plain text
  54089. #: guix-git/doc/guix.texi:36651
  54090. 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."
  54091. msgstr ""
  54092. #. type: deffn
  54093. #: guix-git/doc/guix.texi:36652
  54094. #, no-wrap
  54095. msgid "{Scheme Syntax} modify-services @var{services} @"
  54096. msgstr ""
  54097. #. type: deffn
  54098. #: guix-git/doc/guix.texi:36654
  54099. msgid "(@var{type} @var{variable} => @var{body}) @dots{}"
  54100. msgstr ""
  54101. #. type: deffn
  54102. #: guix-git/doc/guix.texi:36657
  54103. msgid "Modify the services listed in @var{services} according to the given clauses. Each clause has the form:"
  54104. msgstr ""
  54105. #. type: example
  54106. #: guix-git/doc/guix.texi:36660
  54107. #, no-wrap
  54108. msgid "(@var{type} @var{variable} => @var{body})\n"
  54109. msgstr ""
  54110. #. type: deffn
  54111. #: guix-git/doc/guix.texi:36667
  54112. 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}."
  54113. msgstr ""
  54114. #. type: deffn
  54115. #: guix-git/doc/guix.texi:36674
  54116. 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."
  54117. msgstr ""
  54118. #. type: deffn
  54119. #: guix-git/doc/guix.texi:36676
  54120. #, fuzzy
  54121. #| msgid "Packages are currently available on the following platforms:"
  54122. msgid "Clauses can also have the following form:"
  54123. msgstr "目前这些平台提供软件包:"
  54124. #. type: lisp
  54125. #: guix-git/doc/guix.texi:36679
  54126. #, fuzzy, no-wrap
  54127. msgid "(delete @var{type})\n"
  54128. msgstr "--log-compression=@var{type}"
  54129. #. type: deffn
  54130. #: guix-git/doc/guix.texi:36683
  54131. msgid "Such a clause removes all services of the given @var{type} from @var{services}."
  54132. msgstr ""
  54133. #. type: deffn
  54134. #: guix-git/doc/guix.texi:36685
  54135. msgid "@xref{Using the Configuration System}, for example usage."
  54136. msgstr ""
  54137. #. type: Plain text
  54138. #: guix-git/doc/guix.texi:36692
  54139. 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."
  54140. msgstr ""
  54141. #. type: deftp
  54142. #: guix-git/doc/guix.texi:36693
  54143. #, no-wrap
  54144. msgid "{Data Type} service-type"
  54145. msgstr ""
  54146. #. type: cindex
  54147. #: guix-git/doc/guix.texi:36694
  54148. #, no-wrap
  54149. msgid "service type"
  54150. msgstr ""
  54151. #. type: deftp
  54152. #: guix-git/doc/guix.texi:36697
  54153. msgid "This is the representation of a @dfn{service type} (@pxref{Service Types and Services})."
  54154. msgstr ""
  54155. #. type: table
  54156. #: guix-git/doc/guix.texi:36701
  54157. msgid "This is a symbol, used only to simplify inspection and debugging."
  54158. msgstr ""
  54159. #. type: code{#1}
  54160. #: guix-git/doc/guix.texi:36702
  54161. #, no-wrap
  54162. msgid "extensions"
  54163. msgstr ""
  54164. #. type: table
  54165. #: guix-git/doc/guix.texi:36704
  54166. msgid "A non-empty list of @code{<service-extension>} objects (see below)."
  54167. msgstr ""
  54168. #. type: item
  54169. #: guix-git/doc/guix.texi:36705
  54170. #, no-wrap
  54171. msgid "@code{compose} (default: @code{#f})"
  54172. msgstr ""
  54173. #. type: table
  54174. #: guix-git/doc/guix.texi:36709
  54175. 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."
  54176. msgstr ""
  54177. #. type: table
  54178. #: guix-git/doc/guix.texi:36713
  54179. 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."
  54180. msgstr ""
  54181. #. type: item
  54182. #: guix-git/doc/guix.texi:36714
  54183. #, no-wrap
  54184. msgid "@code{extend} (default: @code{#f})"
  54185. msgstr ""
  54186. #. type: table
  54187. #: guix-git/doc/guix.texi:36716
  54188. msgid "If this is @code{#f}, services of this type cannot be extended."
  54189. msgstr ""
  54190. #. type: table
  54191. #: guix-git/doc/guix.texi:36722
  54192. 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."
  54193. msgstr ""
  54194. #. type: table
  54195. #: guix-git/doc/guix.texi:36728
  54196. 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})."
  54197. msgstr ""
  54198. #. type: item
  54199. #: guix-git/doc/guix.texi:36729
  54200. #, fuzzy, no-wrap
  54201. msgid "@code{default-value} (default: @code{&no-default-value})"
  54202. msgstr "@code{mate}(默认值:@code{mate})"
  54203. #. type: table
  54204. #: guix-git/doc/guix.texi:36732
  54205. msgid "The default value associated for instances of this service type. This allows users to use the @code{service} form without its second argument:"
  54206. msgstr ""
  54207. #. type: lisp
  54208. #: guix-git/doc/guix.texi:36735
  54209. #, no-wrap
  54210. msgid "(service @var{type})\n"
  54211. msgstr ""
  54212. #. type: table
  54213. #: guix-git/doc/guix.texi:36739
  54214. msgid "The returned service in this case has the default value specified by @var{type}."
  54215. msgstr ""
  54216. #. type: deftp
  54217. #: guix-git/doc/guix.texi:36742
  54218. msgid "@xref{Service Types and Services}, for examples."
  54219. msgstr ""
  54220. #. type: deffn
  54221. #: guix-git/doc/guix.texi:36744
  54222. #, no-wrap
  54223. msgid "{Scheme Procedure} service-extension @var{target-type} @"
  54224. msgstr ""
  54225. #. type: deffn
  54226. #: guix-git/doc/guix.texi:36750
  54227. 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."
  54228. msgstr ""
  54229. #. type: deffn
  54230. #: guix-git/doc/guix.texi:36752
  54231. #, no-wrap
  54232. msgid "{Scheme Procedure} service-extension? @var{obj}"
  54233. msgstr ""
  54234. #. type: deffn
  54235. #: guix-git/doc/guix.texi:36754
  54236. msgid "Return true if @var{obj} is a service extension."
  54237. msgstr ""
  54238. #. type: Plain text
  54239. #: guix-git/doc/guix.texi:36760
  54240. 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."
  54241. msgstr ""
  54242. #. type: deffn
  54243. #: guix-git/doc/guix.texi:36761
  54244. #, no-wrap
  54245. msgid "{Scheme Procedure} simple-service @var{name} @var{target} @var{value}"
  54246. msgstr ""
  54247. #. type: deffn
  54248. #: guix-git/doc/guix.texi:36765
  54249. 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."
  54250. msgstr ""
  54251. #. type: deffn
  54252. #: guix-git/doc/guix.texi:36768
  54253. msgid "For example, this extends mcron (@pxref{Scheduled Job Execution}) with an additional job:"
  54254. msgstr ""
  54255. #. type: lisp
  54256. #: guix-git/doc/guix.texi:36772
  54257. #, no-wrap
  54258. msgid ""
  54259. "(simple-service 'my-mcron-job mcron-service-type\n"
  54260. " #~(job '(next-hour (3)) \"guix gc -F 2G\"))\n"
  54261. msgstr ""
  54262. #. type: Plain text
  54263. #: guix-git/doc/guix.texi:36782
  54264. 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."
  54265. msgstr ""
  54266. #. type: deffn
  54267. #: guix-git/doc/guix.texi:36783
  54268. #, no-wrap
  54269. msgid "{Scheme Procedure} fold-services @var{services} @"
  54270. msgstr ""
  54271. #. type: deffn
  54272. #: guix-git/doc/guix.texi:36787
  54273. 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."
  54274. msgstr ""
  54275. #. type: Plain text
  54276. #: guix-git/doc/guix.texi:36791
  54277. msgid "Lastly, the @code{(gnu services)} module also defines several essential service types, some of which are listed below."
  54278. msgstr ""
  54279. #. type: defvr
  54280. #: guix-git/doc/guix.texi:36792
  54281. #, no-wrap
  54282. msgid "{Scheme Variable} system-service-type"
  54283. msgstr ""
  54284. #. type: defvr
  54285. #: guix-git/doc/guix.texi:36795
  54286. msgid "This is the root of the service graph. It produces the system directory as returned by the @command{guix system build} command."
  54287. msgstr ""
  54288. #. type: defvr
  54289. #: guix-git/doc/guix.texi:36797
  54290. #, no-wrap
  54291. msgid "{Scheme Variable} boot-service-type"
  54292. msgstr ""
  54293. #. type: defvr
  54294. #: guix-git/doc/guix.texi:36800
  54295. 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."
  54296. msgstr ""
  54297. #. type: defvr
  54298. #: guix-git/doc/guix.texi:36802
  54299. #, no-wrap
  54300. msgid "{Scheme Variable} etc-service-type"
  54301. msgstr ""
  54302. #. type: defvr
  54303. #: guix-git/doc/guix.texi:36806
  54304. 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:"
  54305. msgstr ""
  54306. #. type: lisp
  54307. #: guix-git/doc/guix.texi:36809
  54308. #, no-wrap
  54309. msgid "(list `(\"issue\" ,(plain-file \"issue\" \"Welcome!\\n\")))\n"
  54310. msgstr ""
  54311. #. type: defvr
  54312. #: guix-git/doc/guix.texi:36813
  54313. msgid "In this example, the effect would be to add an @file{/etc/issue} file pointing to the given file."
  54314. msgstr ""
  54315. #. type: defvr
  54316. #: guix-git/doc/guix.texi:36815
  54317. #, no-wrap
  54318. msgid "{Scheme Variable} setuid-program-service-type"
  54319. msgstr ""
  54320. #. type: defvr
  54321. #: guix-git/doc/guix.texi:36819
  54322. 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})."
  54323. msgstr ""
  54324. #. type: defvr
  54325. #: guix-git/doc/guix.texi:36821
  54326. #, no-wrap
  54327. msgid "{Scheme Variable} profile-service-type"
  54328. msgstr ""
  54329. #. type: defvr
  54330. #: guix-git/doc/guix.texi:36825
  54331. 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."
  54332. msgstr ""
  54333. #. type: anchor{#1}
  54334. #: guix-git/doc/guix.texi:36829
  54335. msgid "provenance-service-type"
  54336. msgstr ""
  54337. #. type: defvr
  54338. #: guix-git/doc/guix.texi:36829
  54339. #, no-wrap
  54340. msgid "{Scheme Variable} provenance-service-type"
  54341. msgstr ""
  54342. #. type: defvr
  54343. #: guix-git/doc/guix.texi:36833
  54344. 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}:"
  54345. msgstr ""
  54346. #. type: item
  54347. #: guix-git/doc/guix.texi:36835
  54348. #, fuzzy, no-wrap
  54349. msgid "channels.scm"
  54350. msgstr "通道"
  54351. #. type: table
  54352. #: guix-git/doc/guix.texi:36840
  54353. 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})."
  54354. msgstr ""
  54355. #. type: item
  54356. #: guix-git/doc/guix.texi:36841
  54357. #, fuzzy, no-wrap
  54358. msgid "configuration.scm"
  54359. msgstr "系统配置"
  54360. #. type: table
  54361. #: guix-git/doc/guix.texi:36846
  54362. 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."
  54363. msgstr ""
  54364. #. type: item
  54365. #: guix-git/doc/guix.texi:36847
  54366. #, no-wrap
  54367. msgid "provenance"
  54368. msgstr ""
  54369. #. type: table
  54370. #: guix-git/doc/guix.texi:36850
  54371. msgid "This contains the same information as the two other files but in a format that is more readily processable."
  54372. msgstr ""
  54373. #. type: defvr
  54374. #: guix-git/doc/guix.texi:36854
  54375. msgid "In general, these two pieces of information (channels and configuration file) are enough to reproduce the operating system ``from source''."
  54376. msgstr ""
  54377. #. type: quotation
  54378. #: guix-git/doc/guix.texi:36855
  54379. #, no-wrap
  54380. msgid "Caveats"
  54381. msgstr ""
  54382. #. type: quotation
  54383. #: guix-git/doc/guix.texi:36862
  54384. 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."
  54385. msgstr ""
  54386. #. type: quotation
  54387. #: guix-git/doc/guix.texi:36870
  54388. 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."
  54389. msgstr ""
  54390. #. type: defvr
  54391. #: guix-git/doc/guix.texi:36875
  54392. 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}."
  54393. msgstr ""
  54394. #. type: defvr
  54395. #: guix-git/doc/guix.texi:36877
  54396. #, no-wrap
  54397. msgid "{Scheme Variable} linux-loadable-module-service-type"
  54398. msgstr ""
  54399. #. type: defvr
  54400. #: guix-git/doc/guix.texi:36881
  54401. msgid "Type of the service that collects lists of packages containing kernel-loadable modules, and adds them to the set of kernel-loadable modules."
  54402. msgstr ""
  54403. #. type: defvr
  54404. #: guix-git/doc/guix.texi:36884
  54405. msgid "This service type is intended to be extended by other service types, such as below:"
  54406. msgstr ""
  54407. #. type: lisp
  54408. #: guix-git/doc/guix.texi:36890
  54409. #, no-wrap
  54410. msgid ""
  54411. "(simple-service 'installing-module\n"
  54412. " linux-loadable-module-service-type\n"
  54413. " (list module-to-install-1\n"
  54414. " module-to-install-2))\n"
  54415. msgstr ""
  54416. #. type: defvr
  54417. #: guix-git/doc/guix.texi:36894
  54418. msgid "This does not actually load modules at bootup, only adds it to the kernel profile so that it @emph{can} be loaded by other means."
  54419. msgstr ""
  54420. #. type: cindex
  54421. #: guix-git/doc/guix.texi:36899
  54422. #, no-wrap
  54423. msgid "shepherd services"
  54424. msgstr ""
  54425. #. type: cindex
  54426. #: guix-git/doc/guix.texi:36900
  54427. #, no-wrap
  54428. msgid "PID 1"
  54429. msgstr ""
  54430. #. type: cindex
  54431. #: guix-git/doc/guix.texi:36901
  54432. #, no-wrap
  54433. msgid "init system"
  54434. msgstr ""
  54435. #. type: Plain text
  54436. #: guix-git/doc/guix.texi:36907
  54437. 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})."
  54438. msgstr ""
  54439. #. type: Plain text
  54440. #: guix-git/doc/guix.texi:36913
  54441. 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:"
  54442. msgstr ""
  54443. #. type: Plain text
  54444. #: guix-git/doc/guix.texi:36915
  54445. msgid "@image{images/shepherd-graph,,5in,Typical shepherd service graph.}"
  54446. msgstr ""
  54447. #. type: Plain text
  54448. #: guix-git/doc/guix.texi:36919
  54449. 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}})."
  54450. msgstr ""
  54451. #. type: Plain text
  54452. #: guix-git/doc/guix.texi:36923
  54453. 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."
  54454. msgstr ""
  54455. #. type: deftp
  54456. #: guix-git/doc/guix.texi:36924
  54457. #, no-wrap
  54458. msgid "{Data Type} shepherd-service"
  54459. msgstr ""
  54460. #. type: deftp
  54461. #: guix-git/doc/guix.texi:36926
  54462. msgid "The data type representing a service managed by the Shepherd."
  54463. msgstr ""
  54464. #. type: code{#1}
  54465. #: guix-git/doc/guix.texi:36928
  54466. #, no-wrap
  54467. msgid "provision"
  54468. msgstr ""
  54469. #. type: table
  54470. #: guix-git/doc/guix.texi:36930
  54471. msgid "This is a list of symbols denoting what the service provides."
  54472. msgstr ""
  54473. #. type: table
  54474. #: guix-git/doc/guix.texi:36935
  54475. 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."
  54476. msgstr ""
  54477. #. type: item
  54478. #: guix-git/doc/guix.texi:36936
  54479. #, fuzzy, no-wrap
  54480. msgid "@code{requirement} (default: @code{'()})"
  54481. msgstr "@code{features} (@code{'()})"
  54482. #. type: table
  54483. #: guix-git/doc/guix.texi:36938
  54484. msgid "List of symbols denoting the Shepherd services this one depends on."
  54485. msgstr ""
  54486. #. type: cindex
  54487. #: guix-git/doc/guix.texi:36939
  54488. #, no-wrap
  54489. msgid "one-shot services, for the Shepherd"
  54490. msgstr ""
  54491. #. type: table
  54492. #: guix-git/doc/guix.texi:36944
  54493. 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."
  54494. msgstr ""
  54495. #. type: item
  54496. #: guix-git/doc/guix.texi:36945
  54497. #, no-wrap
  54498. msgid "@code{respawn?} (default: @code{#t})"
  54499. msgstr ""
  54500. #. type: table
  54501. #: guix-git/doc/guix.texi:36948
  54502. msgid "Whether to restart the service when it stops, for instance when the underlying process dies."
  54503. msgstr ""
  54504. #. type: code{#1}
  54505. #: guix-git/doc/guix.texi:36949
  54506. #, no-wrap
  54507. msgid "start"
  54508. msgstr ""
  54509. #. type: itemx
  54510. #: guix-git/doc/guix.texi:36950
  54511. #, no-wrap
  54512. msgid "@code{stop} (default: @code{#~(const #f)})"
  54513. msgstr ""
  54514. #. type: table
  54515. #: guix-git/doc/guix.texi:36956
  54516. 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})."
  54517. msgstr ""
  54518. #. type: item
  54519. #: guix-git/doc/guix.texi:36957
  54520. #, no-wrap
  54521. msgid "@code{actions} (default: @code{'()})"
  54522. msgstr ""
  54523. #. type: cindex
  54524. #: guix-git/doc/guix.texi:36958
  54525. #, no-wrap
  54526. msgid "actions, of Shepherd services"
  54527. msgstr ""
  54528. #. type: table
  54529. #: guix-git/doc/guix.texi:36963
  54530. 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:"
  54531. msgstr ""
  54532. #. type: example
  54533. #: guix-git/doc/guix.texi:36966
  54534. #, no-wrap
  54535. msgid "herd @var{action} @var{service} [@var{arguments}@dots{}]\n"
  54536. msgstr ""
  54537. #. type: item
  54538. #: guix-git/doc/guix.texi:36968
  54539. #, fuzzy, no-wrap
  54540. msgid "@code{auto-start?} (default: @code{#t})"
  54541. msgstr "@code{port}(默认值:@code{22})"
  54542. #. type: table
  54543. #: guix-git/doc/guix.texi:36971
  54544. 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}."
  54545. msgstr ""
  54546. #. type: table
  54547. #: guix-git/doc/guix.texi:36974
  54548. msgid "A documentation string, as shown when running:"
  54549. msgstr ""
  54550. #. type: example
  54551. #: guix-git/doc/guix.texi:36977
  54552. #, no-wrap
  54553. msgid "herd doc @var{service-name}\n"
  54554. msgstr ""
  54555. #. type: table
  54556. #: guix-git/doc/guix.texi:36981
  54557. msgid "where @var{service-name} is one of the symbols in @code{provision} (@pxref{Invoking herd,,, shepherd, The GNU Shepherd Manual})."
  54558. msgstr ""
  54559. #. type: table
  54560. #: guix-git/doc/guix.texi:36985
  54561. msgid "This is the list of modules that must be in scope when @code{start} and @code{stop} are evaluated."
  54562. msgstr ""
  54563. #. type: Plain text
  54564. #: guix-git/doc/guix.texi:36993
  54565. 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}):"
  54566. msgstr ""
  54567. #. type: example
  54568. #: guix-git/doc/guix.texi:37005
  54569. #, no-wrap
  54570. msgid ""
  54571. "(let ((config (plain-file \"syslogd.conf\" \"@dots{}\")))\n"
  54572. " (shepherd-service\n"
  54573. " (documentation \"Run the syslog daemon (syslogd).\")\n"
  54574. " (provision '(syslogd))\n"
  54575. " (requirement '(user-processes))\n"
  54576. " (start #~(make-forkexec-constructor\n"
  54577. " (list #$(file-append inetutils \"/libexec/syslogd\")\n"
  54578. " \"--rcfile\" #$config)\n"
  54579. " #:pid-file \"/var/run/syslog.pid\"))\n"
  54580. " (stop #~(make-kill-destructor))))\n"
  54581. msgstr ""
  54582. #. type: Plain text
  54583. #: guix-git/doc/guix.texi:37020
  54584. 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})."
  54585. msgstr ""
  54586. #. type: deftp
  54587. #: guix-git/doc/guix.texi:37021
  54588. #, no-wrap
  54589. msgid "{Data Type} shepherd-action"
  54590. msgstr ""
  54591. #. type: deftp
  54592. #: guix-git/doc/guix.texi:37024
  54593. msgid "This is the data type that defines additional actions implemented by a Shepherd service (see above)."
  54594. msgstr ""
  54595. #. type: table
  54596. #: guix-git/doc/guix.texi:37028
  54597. msgid "Symbol naming the action."
  54598. msgstr ""
  54599. #. type: table
  54600. #: guix-git/doc/guix.texi:37031
  54601. msgid "This is a documentation string for the action. It can be viewed by running:"
  54602. msgstr ""
  54603. #. type: example
  54604. #: guix-git/doc/guix.texi:37034
  54605. #, no-wrap
  54606. msgid "herd doc @var{service} action @var{action}\n"
  54607. msgstr ""
  54608. #. type: item
  54609. #: guix-git/doc/guix.texi:37036
  54610. #, no-wrap
  54611. msgid "procedure"
  54612. msgstr ""
  54613. #. type: table
  54614. #: guix-git/doc/guix.texi:37040
  54615. 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})."
  54616. msgstr ""
  54617. #. type: deftp
  54618. #: guix-git/doc/guix.texi:37044
  54619. msgid "The following example defines an action called @code{say-hello} that kindly greets the user:"
  54620. msgstr ""
  54621. #. type: lisp
  54622. #: guix-git/doc/guix.texi:37053
  54623. #, no-wrap
  54624. msgid ""
  54625. "(shepherd-action\n"
  54626. " (name 'say-hello)\n"
  54627. " (documentation \"Say hi!\")\n"
  54628. " (procedure #~(lambda (running . args)\n"
  54629. " (format #t \"Hello, friend! arguments: ~s\\n\"\n"
  54630. " args)\n"
  54631. " #t)))\n"
  54632. msgstr ""
  54633. #. type: deftp
  54634. #: guix-git/doc/guix.texi:37056
  54635. msgid "Assuming this action is added to the @code{example} service, then you can do:"
  54636. msgstr ""
  54637. #. type: example
  54638. #: guix-git/doc/guix.texi:37062
  54639. #, no-wrap
  54640. msgid ""
  54641. "# herd say-hello example\n"
  54642. "Hello, friend! arguments: ()\n"
  54643. "# herd say-hello example a b c\n"
  54644. "Hello, friend! arguments: (\"a\" \"b\" \"c\")\n"
  54645. msgstr ""
  54646. #. type: deftp
  54647. #: guix-git/doc/guix.texi:37067
  54648. 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."
  54649. msgstr ""
  54650. #. type: defvr
  54651. #: guix-git/doc/guix.texi:37069
  54652. #, no-wrap
  54653. msgid "{Scheme Variable} shepherd-root-service-type"
  54654. msgstr ""
  54655. #. type: defvr
  54656. #: guix-git/doc/guix.texi:37071
  54657. msgid "The service type for the Shepherd ``root service''---i.e., PID@tie{}1."
  54658. msgstr ""
  54659. #. type: defvr
  54660. #: guix-git/doc/guix.texi:37076
  54661. 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."
  54662. msgstr ""
  54663. #. type: deftp
  54664. #: guix-git/doc/guix.texi:37078
  54665. #, fuzzy, no-wrap
  54666. msgid "{Data Type} shepherd-configuration"
  54667. msgstr "{数据类型} build-machine"
  54668. #. type: deftp
  54669. #: guix-git/doc/guix.texi:37080 guix-git/doc/guix.texi:38074
  54670. #, fuzzy
  54671. msgid "This data type represents the Shepherd's configuration."
  54672. msgstr "管理操作系统配置。"
  54673. #. type: item
  54674. #: guix-git/doc/guix.texi:37082 guix-git/doc/guix.texi:38076
  54675. #, fuzzy, no-wrap
  54676. msgid "shepherd (default: @code{shepherd})"
  54677. msgstr "@code{mate}(默认值:@code{mate})"
  54678. #. type: table
  54679. #: guix-git/doc/guix.texi:37084 guix-git/doc/guix.texi:38078
  54680. #, fuzzy
  54681. msgid "The Shepherd package to use."
  54682. msgstr "软件包数据类型。"
  54683. #. type: item
  54684. #: guix-git/doc/guix.texi:37085 guix-git/doc/guix.texi:38082
  54685. #, fuzzy, no-wrap
  54686. msgid "services (default: @code{'()})"
  54687. msgstr "@code{features} (@code{'()})"
  54688. #. type: table
  54689. #: guix-git/doc/guix.texi:37089 guix-git/doc/guix.texi:38086
  54690. msgid "A list of @code{<shepherd-service>} to start. You should probably use the service extension mechanism instead (@pxref{Shepherd Services})."
  54691. msgstr ""
  54692. #. type: Plain text
  54693. #: guix-git/doc/guix.texi:37094
  54694. msgid "The following example specifies the Shepherd package for the operating system:"
  54695. msgstr ""
  54696. #. type: lisp
  54697. #: guix-git/doc/guix.texi:37109
  54698. #, no-wrap
  54699. msgid ""
  54700. "(operating-system\n"
  54701. " ;; ...\n"
  54702. " (services (append (list openssh-service-type))\n"
  54703. " ;; ...\n"
  54704. " %desktop-services)\n"
  54705. " ;; ...\n"
  54706. " ;; Use own Shepherd package.\n"
  54707. " (essential-services\n"
  54708. " (modify-services (operating-system-default-essential-services\n"
  54709. " this-operating-system)\n"
  54710. " (shepherd-root-service-type config => (shepherd-configuration\n"
  54711. " (inherit config)\n"
  54712. " (shepherd my-shepherd))))))\n"
  54713. msgstr ""
  54714. #. type: defvr
  54715. #: guix-git/doc/guix.texi:37111
  54716. #, no-wrap
  54717. msgid "{Scheme Variable} %shepherd-root-service"
  54718. msgstr ""
  54719. #. type: defvr
  54720. #: guix-git/doc/guix.texi:37113
  54721. msgid "This service represents PID@tie{}1."
  54722. msgstr ""
  54723. #. type: cindex
  54724. #: guix-git/doc/guix.texi:37117
  54725. #, fuzzy, no-wrap
  54726. msgid "complex configurations"
  54727. msgstr "系统配置"
  54728. #. type: Plain text
  54729. #: guix-git/doc/guix.texi:37122
  54730. msgid "Some programs might have rather complex configuration files or formats, and to make it easier to create Scheme bindings for these configuration files, you can use the utilities defined in the @code{(gnu services configuration)} module."
  54731. msgstr ""
  54732. #. type: Plain text
  54733. #: guix-git/doc/guix.texi:37130
  54734. msgid "The main utility is the @code{define-configuration} macro, which you will use to define a Scheme record type (@pxref{Record Overview,,, guile, GNU Guile Reference Manual}). The Scheme record will be serialized to a configuration file by using @dfn{serializers}, which are procedures that take some kind of Scheme value and returns a G-expression (@pxref{G-Expressions}), which should, once serialized to the disk, return a string. More details are listed below."
  54735. msgstr ""
  54736. #. type: deffn
  54737. #: guix-git/doc/guix.texi:37131
  54738. #, no-wrap
  54739. msgid "{Scheme Syntax} define-configuration @var{name} @var{clause1} @"
  54740. msgstr ""
  54741. #. type: deffn
  54742. #: guix-git/doc/guix.texi:37135
  54743. msgid "@var{clause2} ... Create a record type named @code{@var{name}} that contains the fields found in the clauses."
  54744. msgstr ""
  54745. #. type: deffn
  54746. #: guix-git/doc/guix.texi:37137
  54747. #, fuzzy
  54748. #| msgid "Packages are currently available on the following platforms:"
  54749. msgid "A clause can have one of the following forms:"
  54750. msgstr "目前这些平台提供软件包:"
  54751. #. type: example
  54752. #: guix-git/doc/guix.texi:37142
  54753. #, no-wrap
  54754. msgid ""
  54755. "(@var{field-name}\n"
  54756. " (@var{type} @var{default-value})\n"
  54757. " @var{documentation})\n"
  54758. " \n"
  54759. msgstr ""
  54760. #. type: example
  54761. #: guix-git/doc/guix.texi:37147
  54762. #, no-wrap
  54763. msgid ""
  54764. "(@var{field-name}\n"
  54765. " (@var{type} @var{default-value})\n"
  54766. " @var{documentation}\n"
  54767. " @var{serializer})\n"
  54768. "\n"
  54769. msgstr ""
  54770. #. type: example
  54771. #: guix-git/doc/guix.texi:37151
  54772. #, no-wrap
  54773. msgid ""
  54774. "(@var{field-name}\n"
  54775. " (@var{type})\n"
  54776. " @var{documentation})\n"
  54777. "\n"
  54778. msgstr ""
  54779. #. type: example
  54780. #: guix-git/doc/guix.texi:37156
  54781. #, no-wrap
  54782. msgid ""
  54783. "(@var{field-name}\n"
  54784. " (@var{type})\n"
  54785. " @var{documentation}\n"
  54786. " @var{serializer})\n"
  54787. msgstr ""
  54788. #. type: deffn
  54789. #: guix-git/doc/guix.texi:37160
  54790. msgid "@var{field-name} is an identifier that denotes the name of the field in the generated record."
  54791. msgstr ""
  54792. #. type: deffn
  54793. #: guix-git/doc/guix.texi:37168
  54794. msgid "@var{type} is the type of the value corresponding to @var{field-name}; since Guile is untyped, a predicate procedure---@code{@var{type}?}---will be called on the value corresponding to the field to ensure that the value is of the correct type. This means that if say, @var{type} is @code{package}, then a procedure named @code{package?} will be applied on the value to make sure that it is indeed a @code{<package>} object."
  54795. msgstr ""
  54796. #. type: deffn
  54797. #: guix-git/doc/guix.texi:37172
  54798. msgid "@var{default-value} is the default value corresponding to the field; if none is specified, the user is forced to provide a value when creating an object of the record type."
  54799. msgstr ""
  54800. #. type: deffn
  54801. #: guix-git/doc/guix.texi:37177
  54802. msgid "@var{documentation} is a string formatted with Texinfo syntax which should provide a description of what setting this field does."
  54803. msgstr ""
  54804. #. type: deffn
  54805. #: guix-git/doc/guix.texi:37184
  54806. msgid "@var{serializer} is the name of a procedure which takes two arguments, the first is the name of the field, and the second is the value corresponding to the field. The procedure should return a string or G-expression (@pxref{G-Expressions}) that represents the content that will be serialized to the configuration file. If none is specified, a procedure of the name @code{serialize-@var{type}} will be used."
  54807. msgstr ""
  54808. #. type: deffn
  54809. #: guix-git/doc/guix.texi:37186
  54810. msgid "A simple serializer procedure could look like this:"
  54811. msgstr ""
  54812. #. type: lisp
  54813. #: guix-git/doc/guix.texi:37191
  54814. #, no-wrap
  54815. msgid ""
  54816. "(define (serialize-boolean field-name value)\n"
  54817. " (let ((value (if value \"true\" \"false\")))\n"
  54818. " #~(string-append #$field-name #$value)))\n"
  54819. msgstr ""
  54820. #. type: deffn
  54821. #: guix-git/doc/guix.texi:37202
  54822. msgid "In some cases multiple different configuration records might be defined in the same file, but their serializers for the same type might have to be different, because they have different configuration formats. For example, the @code{serialize-boolean} procedure for the Getmail service would have to be different for the one for the Transmission service. To make it easier to deal with this situation, one can specify a serializer prefix by using the @code{prefix} literal in the @code{define-configuration} form. This means that one doesn't have to manually specify a custom @var{serializer} for every field."
  54823. msgstr ""
  54824. #. type: lisp
  54825. #: guix-git/doc/guix.texi:37206
  54826. #, no-wrap
  54827. msgid ""
  54828. "(define (foo-serialize-string field-name value)\n"
  54829. " @dots{})\n"
  54830. "\n"
  54831. msgstr ""
  54832. #. type: lisp
  54833. #: guix-git/doc/guix.texi:37209
  54834. #, no-wrap
  54835. msgid ""
  54836. "(define (bar-serialize-string field-name value)\n"
  54837. " @dots{})\n"
  54838. " \n"
  54839. msgstr ""
  54840. #. type: lisp
  54841. #: guix-git/doc/guix.texi:37215
  54842. #, no-wrap
  54843. msgid ""
  54844. "(define-configuration foo-configuration\n"
  54845. " (label\n"
  54846. " (string)\n"
  54847. " \"The name of label.\")\n"
  54848. " (prefix foo-))\n"
  54849. "\n"
  54850. msgstr ""
  54851. #. type: lisp
  54852. #: guix-git/doc/guix.texi:37221
  54853. #, no-wrap
  54854. msgid ""
  54855. "(define-configuration bar-configuration\n"
  54856. " (ip-address\n"
  54857. " (string)\n"
  54858. " \"The IPv4 address for this device.\")\n"
  54859. " (prefix bar-))\n"
  54860. msgstr ""
  54861. #. type: deffn
  54862. #: guix-git/doc/guix.texi:37227
  54863. msgid "However, in some cases you might not want to serialize any of the values of the record, to do this, you can use the @code{no-serialization} literal. There is also the @code{define-configuration/no-serialization} macro which is a shorthand of this."
  54864. msgstr ""
  54865. #. type: lisp
  54866. #: guix-git/doc/guix.texi:37235
  54867. #, no-wrap
  54868. msgid ""
  54869. ";; Nothing will be serialized to disk.\n"
  54870. "(define-configuration foo-configuration\n"
  54871. " (field\n"
  54872. " (string \"test\")\n"
  54873. " \"Some documentation.\")\n"
  54874. " (no-serialization))\n"
  54875. "\n"
  54876. msgstr ""
  54877. #. type: lisp
  54878. #: guix-git/doc/guix.texi:37241
  54879. #, no-wrap
  54880. msgid ""
  54881. ";; The same thing as above.\n"
  54882. "(define-configuration/no-serialization bar-configuration\n"
  54883. " (field\n"
  54884. " (string \"test\")\n"
  54885. " \"Some documentation.\"))\n"
  54886. msgstr ""
  54887. #. type: deffn
  54888. #: guix-git/doc/guix.texi:37244
  54889. #, no-wrap
  54890. msgid "{Scheme Syntax} define-maybe @var{type}"
  54891. msgstr ""
  54892. #. type: deffn
  54893. #: guix-git/doc/guix.texi:37249
  54894. msgid "Sometimes a field should not be serialized if the user doesn’t specify a value. To achieve this, you can use the @code{define-maybe} macro to define a ``maybe type''; if the value of a maybe type is set to the @code{disabled}, it will not be serialized."
  54895. msgstr ""
  54896. #. type: deffn
  54897. #: guix-git/doc/guix.texi:37256
  54898. msgid "When defining a ``maybe type'', the corresponding serializer for the regular type will be used by default. For example, a field of type @code{maybe-string} will be serialized using the @code{serialize-string} procedure by default, you can of course change this by specifying a custom serializer procedure. Likewise, the type of the value would have to be a string, unless it is set to the @code{disabled} symbol."
  54899. msgstr ""
  54900. #. type: lisp
  54901. #: guix-git/doc/guix.texi:37259
  54902. #, no-wrap
  54903. msgid ""
  54904. "(define-maybe string)\n"
  54905. "\n"
  54906. msgstr ""
  54907. #. type: lisp
  54908. #: guix-git/doc/guix.texi:37262
  54909. #, no-wrap
  54910. msgid ""
  54911. "(define (serialize-string field-name value)\n"
  54912. " @dots{})\n"
  54913. "\n"
  54914. msgstr ""
  54915. #. type: lisp
  54916. #: guix-git/doc/guix.texi:37269
  54917. #, no-wrap
  54918. msgid ""
  54919. "(define-configuration baz-configuration\n"
  54920. " (name\n"
  54921. " ;; Nothing will be serialized by default. If set to a string, the\n"
  54922. " ;; `serialize-string' procedure will be used to serialize the string.\n"
  54923. " (maybe-string 'disabled)\n"
  54924. " \"The name of this module.\"))\n"
  54925. msgstr ""
  54926. #. type: deffn
  54927. #: guix-git/doc/guix.texi:37273
  54928. msgid "Like with @code{define-configuration}, one can set a prefix for the serializer name by using the @code{prefix} literal."
  54929. msgstr ""
  54930. #. type: lisp
  54931. #: guix-git/doc/guix.texi:37277
  54932. #, no-wrap
  54933. msgid ""
  54934. "(define-maybe integer\n"
  54935. " (prefix baz-))\n"
  54936. "\n"
  54937. msgstr ""
  54938. #. type: lisp
  54939. #: guix-git/doc/guix.texi:37280
  54940. #, no-wrap
  54941. msgid ""
  54942. "(define (baz-serialize-interger field-name value)\n"
  54943. " @dots{})\n"
  54944. msgstr ""
  54945. #. type: deffn
  54946. #: guix-git/doc/guix.texi:37287
  54947. msgid "There is also the @code{no-serialization} literal, which when set means that no serializer will be defined for the ``maybe type'', regardless of its value is @code{disabled} or not. @code{define-maybe/no-serialization} is a shorthand for specifying the @code{no-serialization} literal."
  54948. msgstr ""
  54949. #. type: lisp
  54950. #: guix-git/doc/guix.texi:37290
  54951. #, no-wrap
  54952. msgid ""
  54953. "(define-maybe/no-serialization symbol)\n"
  54954. "\n"
  54955. msgstr ""
  54956. #. type: lisp
  54957. #: guix-git/doc/guix.texi:37295
  54958. #, no-wrap
  54959. msgid ""
  54960. "(define-configuration/no-serialization test-configuration\n"
  54961. " (mode\n"
  54962. " (maybe-symbol 'disabled)\n"
  54963. " \"Docstring.\"))\n"
  54964. msgstr ""
  54965. #. type: deffn
  54966. #: guix-git/doc/guix.texi:37298
  54967. #, no-wrap
  54968. msgid "{Scheme Procedure} serialize-configuration @var{configuration} @"
  54969. msgstr ""
  54970. #. type: deffn
  54971. #: guix-git/doc/guix.texi:37304
  54972. msgid "@var{fields} Return a G-expression that contains the values corresponding to the @var{fields} of @var{configuration}, a record that has been generated by @code{define-configuration}. The G-expression can then be serialized to disk by using something like @code{mixed-text-file}."
  54973. msgstr ""
  54974. #. type: deffn
  54975. #: guix-git/doc/guix.texi:37306
  54976. #, no-wrap
  54977. msgid "{Scheme Procedure} validate-configuration @var{configuration}"
  54978. msgstr ""
  54979. #. type: deffn
  54980. #: guix-git/doc/guix.texi:37310
  54981. msgid "@var{fields} Type-check @var{fields}, a list of field names of @var{configuration}, a configuration record created by @code{define-configuration}."
  54982. msgstr ""
  54983. #. type: deffn
  54984. #: guix-git/doc/guix.texi:37312
  54985. #, no-wrap
  54986. msgid "{Scheme Procedure} empty-serializer @var{field-name} @var{value}"
  54987. msgstr ""
  54988. #. type: deffn
  54989. #: guix-git/doc/guix.texi:37315
  54990. msgid "A serializer that just returns an empty string. The @code{serialize-package} procedure is an alias for this."
  54991. msgstr ""
  54992. #. type: Plain text
  54993. #: guix-git/doc/guix.texi:37320
  54994. msgid "Once you have defined a configuration record, you will most likely also want to document it so that other people know to use it. To help with that, there are two procedures, both of which are documented below."
  54995. msgstr ""
  54996. #. type: deffn
  54997. #: guix-git/doc/guix.texi:37321
  54998. #, no-wrap
  54999. msgid "{Scheme Procedure} generate-documentation @var{documentation} @"
  55000. msgstr ""
  55001. #. type: deffn
  55002. #: guix-git/doc/guix.texi:37328
  55003. msgid "@var{documentation-name} Generate a Texinfo fragment from the docstrings in @var{documentation}, a list of @code{(@var{label} @var{fields} @var{sub-documentation} ...)}. @var{label} should be a symbol and should be the name of the configuration record. @var{fields} should be a list of all the fields available for the configuration record."
  55004. msgstr ""
  55005. #. type: deffn
  55006. #: guix-git/doc/guix.texi:37333
  55007. msgid "@var{sub-documentation} is a @code{(@var{field-name} @var{configuration-name})} tuple. @var{field-name} is the name of the field which takes another configuration record as its value, and @var{configuration-name} is the name of that configuration record."
  55008. msgstr ""
  55009. #. type: deffn
  55010. #: guix-git/doc/guix.texi:37340
  55011. msgid "@var{sub-documentation} is only needed if there are nested configuration records. For example, the @code{getmail-configuration} record (@pxref{Mail Services}) accepts a @code{getmail-configuration-file} record in one of its @code{rcfile} field, therefore documentation for @code{getmail-configuration-file} is nested in @code{getmail-configuration}."
  55012. msgstr ""
  55013. #. type: lisp
  55014. #: guix-git/doc/guix.texi:37347
  55015. #, no-wrap
  55016. msgid ""
  55017. "(generate-documentation\n"
  55018. " `((getmail-configuration ,getmail-configuration-fields\n"
  55019. " (rcfile getmail-configuration-file))\n"
  55020. " @dots{})\n"
  55021. " 'getmail-configuration)\n"
  55022. msgstr ""
  55023. #. type: deffn
  55024. #: guix-git/doc/guix.texi:37351
  55025. msgid "@var{documentation-name} should be a symbol and should be the name of the configuration record."
  55026. msgstr ""
  55027. #. type: deffn
  55028. #: guix-git/doc/guix.texi:37354
  55029. #, no-wrap
  55030. msgid "{Scheme Procedure} configuration->documentation"
  55031. msgstr ""
  55032. #. type: deffn
  55033. #: guix-git/doc/guix.texi:37361
  55034. msgid "@var{configuration-symbol} Take @var{configuration-symbol}, the symbol corresponding to the name used when defining a configuration record with @code{define-configuration}, and print the Texinfo documentation of its fields. This is useful if there aren’t any nested configuration records since it only prints the documentation for the top-level fields."
  55035. msgstr ""
  55036. #. type: Plain text
  55037. #: guix-git/doc/guix.texi:37369
  55038. msgid "As of right now, there is no automated way to generate documentation for configuration records and put them in the manual. Instead, every time you make a change to the docstrings of a configuration record, you have to manually call @code{generate-documentation} or @code{configuration->documentation}, and paste the output into the @file{doc/guix.texi} file."
  55039. msgstr ""
  55040. #. type: Plain text
  55041. #: guix-git/doc/guix.texi:37373
  55042. msgid "Below is an example of a record type created using @code{define-configuration} and friends."
  55043. msgstr ""
  55044. #. type: lisp
  55045. #: guix-git/doc/guix.texi:37380
  55046. #, no-wrap
  55047. msgid ""
  55048. "(use-modules (gnu services)\n"
  55049. " (guix gexp)\n"
  55050. " (gnu services configuration)\n"
  55051. " (srfi srfi-26)\n"
  55052. " (srfi srfi-1))\n"
  55053. "\n"
  55054. msgstr ""
  55055. #. type: lisp
  55056. #: guix-git/doc/guix.texi:37388
  55057. #, no-wrap
  55058. msgid ""
  55059. ";; Turn field names, which are Scheme symbols into strings\n"
  55060. "(define (uglify-field-name field-name)\n"
  55061. " (let ((str (symbol->string field-name)))\n"
  55062. " ;; field? -> is-field\n"
  55063. " (if (string-suffix? \"?\" str)\n"
  55064. " (string-append \"is-\" (string-drop-right str 1))\n"
  55065. " str)))\n"
  55066. "\n"
  55067. msgstr ""
  55068. #. type: lisp
  55069. #: guix-git/doc/guix.texi:37391
  55070. #, no-wrap
  55071. msgid ""
  55072. "(define (serialize-string field-name value)\n"
  55073. " #~(string-append #$(uglify-field-name field-name) \" = \" #$value \"\\n\"))\n"
  55074. "\n"
  55075. msgstr ""
  55076. #. type: lisp
  55077. #: guix-git/doc/guix.texi:37394
  55078. #, no-wrap
  55079. msgid ""
  55080. "(define (serialize-integer field-name value)\n"
  55081. " (serialize-string field-name (number->string value)))\n"
  55082. "\n"
  55083. msgstr ""
  55084. #. type: lisp
  55085. #: guix-git/doc/guix.texi:37397
  55086. #, no-wrap
  55087. msgid ""
  55088. "(define (serialize-boolean field-name value)\n"
  55089. " (serialize-string field-name (if value \"true\" \"false\")))\n"
  55090. "\n"
  55091. msgstr ""
  55092. #. type: lisp
  55093. #: guix-git/doc/guix.texi:37400
  55094. #, no-wrap
  55095. msgid ""
  55096. "(define (serialize-contact-name field-name value)\n"
  55097. " #~(string-append \"\\n[\" #$value \"]\\n\"))\n"
  55098. "\n"
  55099. msgstr ""
  55100. #. type: lisp
  55101. #: guix-git/doc/guix.texi:37403
  55102. #, no-wrap
  55103. msgid ""
  55104. "(define (list-of-contact-configurations? lst)\n"
  55105. " (every contact-configuration? lst))\n"
  55106. "\n"
  55107. msgstr ""
  55108. #. type: lisp
  55109. #: guix-git/doc/guix.texi:37408
  55110. #, no-wrap
  55111. msgid ""
  55112. "(define (serialize-list-of-contact-configurations field-name value)\n"
  55113. " #~(string-append #$@@(map (cut serialize-configuration <>\n"
  55114. " contact-configuration-fields)\n"
  55115. " value)))\n"
  55116. "\n"
  55117. msgstr ""
  55118. #. type: lisp
  55119. #: guix-git/doc/guix.texi:37415
  55120. #, no-wrap
  55121. msgid ""
  55122. "(define (serialize-contacts-list-configuration configuration)\n"
  55123. " (mixed-text-file\n"
  55124. " \"contactrc\"\n"
  55125. " #~(string-append \"[Owner]\\n\"\n"
  55126. " #$(serialize-configuration\n"
  55127. " configuration contacts-list-configuration-fields))))\n"
  55128. "\n"
  55129. msgstr ""
  55130. #. type: lisp
  55131. #: guix-git/doc/guix.texi:37418
  55132. #, no-wrap
  55133. msgid ""
  55134. "(define-maybe integer)\n"
  55135. "(define-maybe string)\n"
  55136. "\n"
  55137. msgstr ""
  55138. #. type: lisp
  55139. #: guix-git/doc/guix.texi:37433
  55140. #, no-wrap
  55141. msgid ""
  55142. "(define-configuration contact-configuration\n"
  55143. " (name\n"
  55144. " (string)\n"
  55145. " \"The name of the contact.\"\n"
  55146. " serialize-contact-name)\n"
  55147. " (phone-number\n"
  55148. " (maybe-integer 'disabled)\n"
  55149. " \"The person's phone number.\")\n"
  55150. " (email\n"
  55151. " (maybe-string 'disabled)\n"
  55152. " \"The person's email address.\")\n"
  55153. " (married?\n"
  55154. " (boolean)\n"
  55155. " \"Whether the person is married.\"))\n"
  55156. "\n"
  55157. msgstr ""
  55158. #. type: lisp
  55159. #: guix-git/doc/guix.texi:37445
  55160. #, no-wrap
  55161. msgid ""
  55162. "(define-configuration contacts-list-configuration\n"
  55163. " (name\n"
  55164. " (string)\n"
  55165. " \"The name of the owner of this contact list.\")\n"
  55166. " (email\n"
  55167. " (string)\n"
  55168. " \"The owner's email address.\")\n"
  55169. " (contacts\n"
  55170. " (list-of-contact-configurations '())\n"
  55171. " \"A list of @@code@{contact-configuation@} records which contain\n"
  55172. "information about all your contacts.\"))\n"
  55173. msgstr ""
  55174. #. type: Plain text
  55175. #: guix-git/doc/guix.texi:37448
  55176. msgid "A contacts list configuration could then be created like this:"
  55177. msgstr ""
  55178. #. type: lisp
  55179. #: guix-git/doc/guix.texi:37464
  55180. #, no-wrap
  55181. msgid ""
  55182. "(define my-contacts\n"
  55183. " (contacts-list-configuration\n"
  55184. " (name \"Alice\")\n"
  55185. " (email \"alice@@example.org\")\n"
  55186. " (contacts\n"
  55187. " (list (contact-configuration\n"
  55188. " (name \"Bob\")\n"
  55189. " (phone-number 1234)\n"
  55190. " (email \"bob@@gnu.org\")\n"
  55191. " (married? #f))\n"
  55192. " (contact-configuration\n"
  55193. " (name \"Charlie\")\n"
  55194. " (phone-number 0000)\n"
  55195. " (married? #t))))))\n"
  55196. msgstr ""
  55197. #. type: Plain text
  55198. #: guix-git/doc/guix.texi:37468
  55199. msgid "After serializing the configuration to disk, the resulting file would look like this:"
  55200. msgstr ""
  55201. #. type: example
  55202. #: guix-git/doc/guix.texi:37473
  55203. #, no-wrap
  55204. msgid ""
  55205. "[owner]\n"
  55206. "name = Alice\n"
  55207. "email = alice@@example.org\n"
  55208. "\n"
  55209. msgstr ""
  55210. #. type: example
  55211. #: guix-git/doc/guix.texi:37478
  55212. #, no-wrap
  55213. msgid ""
  55214. "[Bob]\n"
  55215. "phone-number = 1234\n"
  55216. "email = bob@@gnu.org\n"
  55217. "is-married = false\n"
  55218. "\n"
  55219. msgstr ""
  55220. #. type: example
  55221. #: guix-git/doc/guix.texi:37482
  55222. #, no-wrap
  55223. msgid ""
  55224. "[Charlie]\n"
  55225. "phone-number = 0\n"
  55226. "is-married = true\n"
  55227. msgstr ""
  55228. #. type: cindex
  55229. #: guix-git/doc/guix.texi:37487
  55230. #, fuzzy, no-wrap
  55231. msgid "home configuration"
  55232. msgstr "系统配置"
  55233. #. type: Plain text
  55234. #: guix-git/doc/guix.texi:37499
  55235. msgid "Guix supports declarative configuration of @dfn{home environments} by utilizing the configuration mechanism described in the previous chapter (@pxref{Defining Services}), but for user's dotfiles and packages. It works both on Guix System and foreign distros and allows users to declare all the packages and services that should be installed and configured for the user. Once a user has written a file containing @code{home-environment} record, such a configuration can be @dfn{instantiated} by an unprivileged user with the @command{guix home} command (@pxref{Invoking guix home})."
  55236. msgstr ""
  55237. #. type: Plain text
  55238. #: guix-git/doc/guix.texi:37516
  55239. msgid "The user's home environment usually consists of three basic parts: software, configuration, and state. Software in mainstream distros are usually installed system-wide, but with GNU Guix most software packages can be installed on a per-user basis without needing root privileges, and are thus considered part of the user’s @dfn{home environment}. Packages on their own not very useful in many cases, because often they require some additional configuration, usually config files that reside in @env{XDG_CONFIG_HOME} (@file{~/.config} by default) or other directories. Everything else can be considered state, like media files, application databases, and logs."
  55240. msgstr ""
  55241. #. type: Plain text
  55242. #: guix-git/doc/guix.texi:37519
  55243. msgid "Using Guix for managing home environments provides a number of advantages:"
  55244. msgstr ""
  55245. #. type: item
  55246. #: guix-git/doc/guix.texi:37522
  55247. #, no-wrap
  55248. msgid "All software can be configured in one language (Guile Scheme),"
  55249. msgstr ""
  55250. #. type: itemize
  55251. #: guix-git/doc/guix.texi:37525
  55252. msgid "this gives users the ability to share values between configurations of different programs."
  55253. msgstr ""
  55254. #. type: item
  55255. #: guix-git/doc/guix.texi:37526
  55256. #, no-wrap
  55257. msgid "A well-defined home environment is self-contained and can be"
  55258. msgstr ""
  55259. #. type: itemize
  55260. #: guix-git/doc/guix.texi:37529
  55261. msgid "created in a declarative and reproducible way---there is no need to grab external binaries or manually edit some configuration file."
  55262. msgstr ""
  55263. #. type: item
  55264. #: guix-git/doc/guix.texi:37530
  55265. #, no-wrap
  55266. msgid "After every @command{guix home reconfigure} invocation, a new home"
  55267. msgstr ""
  55268. #. type: itemize
  55269. #: guix-git/doc/guix.texi:37534
  55270. msgid "environment generation will be created. This means that users can rollback to a previous home environment generation so they don’t have to worry about breaking their configuration."
  55271. msgstr ""
  55272. #. type: item
  55273. #: guix-git/doc/guix.texi:37535
  55274. #, no-wrap
  55275. msgid "It is possible to manage stateful data with Guix Home, this"
  55276. msgstr ""
  55277. #. type: itemize
  55278. #: guix-git/doc/guix.texi:37540
  55279. msgid "includes the ability to automatically clone Git repositories on the initial setup of the machine, and periodically running commands like @command{rsync} to sync data with another host. This functionality is still in an experimental stage, though."
  55280. msgstr ""
  55281. #. type: section
  55282. #: guix-git/doc/guix.texi:37548 guix-git/doc/guix.texi:37550
  55283. #: guix-git/doc/guix.texi:37551
  55284. #, fuzzy, no-wrap
  55285. #| msgid "Preparing the isolated build environment."
  55286. msgid "Declaring the Home Environment"
  55287. msgstr "准备隔离的构建环境。"
  55288. #. type: menuentry
  55289. #: guix-git/doc/guix.texi:37548
  55290. #, fuzzy
  55291. #| msgid "Customizing your GNU system."
  55292. msgid "Customizing your Home."
  55293. msgstr "定制你的GNU系统。"
  55294. #. type: section
  55295. #: guix-git/doc/guix.texi:37548 guix-git/doc/guix.texi:37618
  55296. #: guix-git/doc/guix.texi:37619
  55297. #, fuzzy, no-wrap
  55298. #| msgid "Configuring the boot loader."
  55299. msgid "Configuring the Shell"
  55300. msgstr "设置引导程序。"
  55301. #. type: menuentry
  55302. #: guix-git/doc/guix.texi:37548
  55303. #, fuzzy
  55304. #| msgid "Invoking guix environment"
  55305. msgid "Enabling home environment."
  55306. msgstr "调用guix environment"
  55307. #. type: section
  55308. #: guix-git/doc/guix.texi:37548 guix-git/doc/guix.texi:37665
  55309. #: guix-git/doc/guix.texi:37666
  55310. #, fuzzy, no-wrap
  55311. #| msgid "Game Services"
  55312. msgid "Home Services"
  55313. msgstr "游戏服务"
  55314. #. type: menuentry
  55315. #: guix-git/doc/guix.texi:37548
  55316. #, fuzzy
  55317. #| msgid "Specifying system services."
  55318. msgid "Specifying home services."
  55319. msgstr "指定系统服务。"
  55320. #. type: menuentry
  55321. #: guix-git/doc/guix.texi:37548
  55322. #, fuzzy
  55323. #| msgid "Instantiating a system configuration."
  55324. msgid "Instantiating a home configuration."
  55325. msgstr "实例化一个系统配置。"
  55326. #. type: Plain text
  55327. #: guix-git/doc/guix.texi:37557
  55328. msgid "The home environment is configured by providing a @code{home-environment} declaration in a file that can be passed to the @command{guix home} command (@pxref{Invoking guix home}). The easiest way to get started is by generating an initial configuration with @command{guix home import}:"
  55329. msgstr ""
  55330. #. type: example
  55331. #: guix-git/doc/guix.texi:37560
  55332. #, no-wrap
  55333. msgid "guix home import ~/src/guix-config\n"
  55334. msgstr ""
  55335. #. type: Plain text
  55336. #: guix-git/doc/guix.texi:37568
  55337. msgid "The @command{guix home import} command reads some of the ``dot files'' such as @file{~/.bashrc} found in your home directory and copies them to the given directory, @file{~/src/guix-config} in this case; it also reads the contents of your profile, @file{~/.guix-profile}, and, based on that, it populates @file{~/src/guix-config/home-configuration.scm} with a Home configuration that resembles your current configuration."
  55338. msgstr ""
  55339. #. type: Plain text
  55340. #: guix-git/doc/guix.texi:37574
  55341. msgid "A simple setup can include Bash and a custom text configuration, like in the example below. Don't be afraid to declare home environment parts, which overlaps with your current dot files: before installing any configuration files, Guix Home will back up existing config files to a separate place in the home directory."
  55342. msgstr ""
  55343. #. type: quotation
  55344. #: guix-git/doc/guix.texi:37580
  55345. msgid "It is highly recommended that you manage your shell or shells with Guix Home, because it will make sure that all the necessary scripts are sourced by the shell configuration file. Otherwise you will need to do it manually. (@pxref{Configuring the Shell})."
  55346. msgstr ""
  55347. #. type: findex
  55348. #: guix-git/doc/guix.texi:37582
  55349. #, fuzzy, no-wrap
  55350. msgid "home-environment"
  55351. msgstr "构建环境"
  55352. #. type: include
  55353. #: guix-git/doc/guix.texi:37584
  55354. #, fuzzy, no-wrap
  55355. msgid "he-config-bare-bones.scm"
  55356. msgstr "系统配置"
  55357. #. type: Plain text
  55358. #: guix-git/doc/guix.texi:37591
  55359. msgid "The @code{packages} field should be self-explanatory, it will install the list of packages into the user's profile. The most important field is @code{services}, it contains a list of @dfn{home services}, which are the basic building blocks of a home environment."
  55360. msgstr ""
  55361. #. type: Plain text
  55362. #: guix-git/doc/guix.texi:37599
  55363. msgid "There is no daemon (at least not necessarily) related to a home service, a home service is just an element that is used to declare part of home environment and extend other parts of it. The extension mechanism discussed in the previous chapter (@pxref{Defining Services}) should not be confused with Shepherd services (@pxref{Shepherd Services}). Using this extension mechanism and some Scheme code that glues things together gives the user the freedom to declare their own, very custom, home environments."
  55364. msgstr ""
  55365. #. type: Plain text
  55366. #: guix-git/doc/guix.texi:37602
  55367. msgid "Once you have a configuration file that suits your needs, you can reconfigure your home by running:"
  55368. msgstr ""
  55369. #. type: example
  55370. #: guix-git/doc/guix.texi:37605
  55371. #, no-wrap
  55372. msgid "guix home reconfigure config.scm\n"
  55373. msgstr ""
  55374. #. type: Plain text
  55375. #: guix-git/doc/guix.texi:37609
  55376. msgid "This ``builds'' your home environment and creates @file{~/.guix-home} pointing to it. Voilà!"
  55377. msgstr ""
  55378. #. type: quotation
  55379. #: guix-git/doc/guix.texi:37616
  55380. msgid "Make sure the operating system has elogind, systemd, or a similar mechanism to create the XDG run-time directory and has the @env{XDG_RUNTIME_DIR} variable set. Failing that, the @file{on-first-login} script will not execute anything, and processes like user Shepherd and its descendants will not start."
  55381. msgstr ""
  55382. #. type: Plain text
  55383. #: guix-git/doc/guix.texi:37622
  55384. msgid "This section is safe to skip if your shell or shells are managed by Guix Home. Otherwise, read it carefully."
  55385. msgstr ""
  55386. #. type: Plain text
  55387. #: guix-git/doc/guix.texi:37629
  55388. msgid "There are a few scripts that must be evaluated by a login shell to activate the home environment. The shell startup files only read by login shells often have @code{profile} suffix. For more information about login shells see @ref{Invoking Bash,,, bash, The GNU Bash Reference Manual} and see @ref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}."
  55389. msgstr ""
  55390. #. type: Plain text
  55391. #: guix-git/doc/guix.texi:37636
  55392. msgid "The first script that needs to be sourced is @file{setup-environment}, which sets all the necessary environment variables (including variables declared by the user) and the second one is @file{on-first-login}, which starts Shepherd for the current user and performs actions declared by other home services that extends @code{home-run-on-first-login-service-type}."
  55393. msgstr ""
  55394. #. type: Plain text
  55395. #: guix-git/doc/guix.texi:37639
  55396. msgid "Guix Home will always create @file{~/.profile}, which contains the following lines:"
  55397. msgstr ""
  55398. #. type: example
  55399. #: guix-git/doc/guix.texi:37644
  55400. #, no-wrap
  55401. msgid ""
  55402. "HOME_ENVIRONMENT=$HOME/.guix-home\n"
  55403. ". $HOME_ENVIRONMENT/setup-environment\n"
  55404. "$HOME_ENVIRONMENT/on-first-login\n"
  55405. msgstr ""
  55406. #. type: Plain text
  55407. #: guix-git/doc/guix.texi:37654
  55408. msgid "This makes POSIX compliant login shells activate the home environment. However, in most cases this file won't be read by most modern shells, because they are run in non POSIX mode by default and have their own @file{*profile} startup files. For example Bash will prefer @file{~/.bash_profile} in case it exists and only if it doesn't will it fallback to @file{~/.profile}. Zsh (if no additional options are specified) will ignore @file{~/.profile}, even if @file{~/.zprofile} doesn't exist."
  55409. msgstr ""
  55410. #. type: Plain text
  55411. #: guix-git/doc/guix.texi:37659
  55412. msgid "To make your shell respect @file{~/.profile}, add @code{. ~/.profile} or @code{source ~/profile} to the startup file for the login shell. In case of Bash, it is @file{~/.bash_profile}, and in case of Zsh, it is @file{~/.zprofile}."
  55413. msgstr ""
  55414. #. type: quotation
  55415. #: guix-git/doc/guix.texi:37663
  55416. msgid "This step is only required if your shell is NOT managed by Guix Home. Otherwise, everything will be done automatically."
  55417. msgstr ""
  55418. #. type: cindex
  55419. #: guix-git/doc/guix.texi:37667
  55420. #, fuzzy, no-wrap
  55421. #| msgid "Other services."
  55422. msgid "home services"
  55423. msgstr "其它服务。"
  55424. #. type: Plain text
  55425. #: guix-git/doc/guix.texi:37676
  55426. msgid "A @dfn{home service} is not necessarily something that has a daemon and is managed by Shepherd (@pxref{Jump Start,,, shepherd, The GNU Shepherd Manual}), in most cases it doesn't. It's a simple building block of the home environment, often declaring a set of packages to be installed in the home environment profile, a set of config files to be symlinked into @env{XDG_CONFIG_HOME} (@file{~/.config} by default), and environment variables to be set by a login shell."
  55427. msgstr ""
  55428. #. type: Plain text
  55429. #: guix-git/doc/guix.texi:37684
  55430. msgid "There is a service extension mechanism (@pxref{Service Composition}) which allows home services to extend other home services and utilize capabilities they provide; for example: declare mcron jobs (@pxref{Top,,, mcron, GNU@tie{}Mcron}) by extending @ref{Mcron Home Service}; declare daemons by extending @ref{Shepherd Home Service}; add commands, which will be invoked on by the Bash by extending @ref{Shells Home Services, @code{home-bash-service-type}}."
  55431. msgstr ""
  55432. #. type: Plain text
  55433. #: guix-git/doc/guix.texi:37695
  55434. msgid "A good way to discover available home services is using the @command{guix home search} command (@pxref{Invoking guix home}). After the required home services are found, include its module with the @code{use-modules} form (@pxref{use-modules,, Using Guile Modules, guile, The GNU Guile Reference Manual}), or the @code{#:use-modules} directive (@pxref{define-module,, Creating Guile Modules, guile, The GNU Guile Reference Manual}) and declare a home service using the @code{service} function, or extend a service type by declaring a new service with the @code{simple-service} procedure from @code{(gnu services)}."
  55435. msgstr ""
  55436. #. type: subsection
  55437. #: guix-git/doc/guix.texi:37702 guix-git/doc/guix.texi:37705
  55438. #: guix-git/doc/guix.texi:37706
  55439. #, fuzzy, no-wrap
  55440. #| msgid "Essential system services."
  55441. msgid "Essential Home Services"
  55442. msgstr "必要的系统服务。"
  55443. #. type: menuentry
  55444. #: guix-git/doc/guix.texi:37702
  55445. msgid "Environment variables, packages, on-* scripts."
  55446. msgstr ""
  55447. #. type: menuentry
  55448. #: guix-git/doc/guix.texi:37702
  55449. #, fuzzy
  55450. #| msgid "Shepherd Services"
  55451. msgid "Shells: Shells Home Services"
  55452. msgstr "Shepherd服务"
  55453. #. type: menuentry
  55454. #: guix-git/doc/guix.texi:37702
  55455. msgid "POSIX shells, Bash, Zsh."
  55456. msgstr ""
  55457. #. type: menuentry
  55458. #: guix-git/doc/guix.texi:37702
  55459. #, fuzzy
  55460. msgid "Mcron: Mcron Home Service"
  55461. msgstr "声音服务"
  55462. #. type: menuentry
  55463. #: guix-git/doc/guix.texi:37702
  55464. #, fuzzy
  55465. #| msgid "Scheduled Job Execution"
  55466. msgid "Scheduled User's Job Execution."
  55467. msgstr "执行计划任务"
  55468. #. type: menuentry
  55469. #: guix-git/doc/guix.texi:37702
  55470. #, fuzzy
  55471. #| msgid "Shepherd Services"
  55472. msgid "Shepherd: Shepherd Home Service"
  55473. msgstr "Shepherd服务"
  55474. #. type: menuentry
  55475. #: guix-git/doc/guix.texi:37702
  55476. #, fuzzy
  55477. #| msgid "Messaging services."
  55478. msgid "Managing User's Daemons."
  55479. msgstr "消息服务。"
  55480. #. type: menuentry
  55481. #: guix-git/doc/guix.texi:37702
  55482. #, fuzzy
  55483. #| msgid "Desktop Services"
  55484. msgid "Desktop: Desktop Home Services"
  55485. msgstr "桌面服务"
  55486. #. type: menuentry
  55487. #: guix-git/doc/guix.texi:37702
  55488. msgid "Services for graphical environments."
  55489. msgstr ""
  55490. #. type: Plain text
  55491. #: guix-git/doc/guix.texi:37711
  55492. msgid "There are a few essential home services defined in @code{(gnu services)}, they are mostly for internal use and are required to build a home environment, but some of them will be useful for the end user."
  55493. msgstr ""
  55494. #. type: cindex
  55495. #: guix-git/doc/guix.texi:37712
  55496. #, fuzzy, no-wrap
  55497. msgid "environment variables"
  55498. msgstr "构建环境"
  55499. #. type: defvr
  55500. #: guix-git/doc/guix.texi:37714
  55501. #, no-wrap
  55502. msgid "{Scheme Variable} home-environment-variables-service-type"
  55503. msgstr ""
  55504. #. type: defvr
  55505. #: guix-git/doc/guix.texi:37719
  55506. msgid "The service of this type will be instantiated by every home environment automatically by default, there is no need to define it, but someone may want to extend it with a list of pairs to set some environment variables."
  55507. msgstr ""
  55508. #. type: lisp
  55509. #: guix-git/doc/guix.texi:37723
  55510. #, no-wrap
  55511. msgid ""
  55512. "(list (\"ENV_VAR1\" . \"value1\")\n"
  55513. " (\"ENV_VAR2\" . \"value2\"))\n"
  55514. msgstr ""
  55515. #. type: defvr
  55516. #: guix-git/doc/guix.texi:37728
  55517. msgid "The easiest way to extend a service type, without defining new service type is to use the @code{simple-service} helper from @code{(gnu services)}."
  55518. msgstr ""
  55519. #. type: lisp
  55520. #: guix-git/doc/guix.texi:37736
  55521. #, no-wrap
  55522. msgid ""
  55523. "(simple-service 'some-useful-env-vars-service\n"
  55524. "\t\thome-environment-variables-service-type\n"
  55525. "\t\t`((\"LESSHISTFILE\" . \"$XDG_CACHE_HOME/.lesshst\")\n"
  55526. " (\"SHELL\" . ,(file-append zsh \"/bin/zsh\"))\n"
  55527. " (\"USELESS_VAR\" . #f)\n"
  55528. " (\"_JAVA_AWT_WM_NONREPARENTING\" . #t)))\n"
  55529. msgstr ""
  55530. #. type: defvr
  55531. #: guix-git/doc/guix.texi:37741
  55532. msgid "If you include such a service in you home environment definition, it will add the following content to the @file{setup-environment} script (which is expected to be sourced by the login shell):"
  55533. msgstr ""
  55534. #. type: example
  55535. #: guix-git/doc/guix.texi:37746
  55536. #, no-wrap
  55537. msgid ""
  55538. "export LESSHISTFILE=$XDG_CACHE_HOME/.lesshst\n"
  55539. "export SHELL=/gnu/store/2hsg15n644f0glrcbkb1kqknmmqdar03-zsh-5.8/bin/zsh\n"
  55540. "export _JAVA_AWT_WM_NONREPARENTING\n"
  55541. msgstr ""
  55542. #. type: quotation
  55543. #: guix-git/doc/guix.texi:37753
  55544. msgid "Make sure that module @code{(gnu packages shells)} is imported with @code{use-modules} or any other way, this namespace contains the definition of the @code{zsh} packages, which is used in the example above."
  55545. msgstr ""
  55546. #. type: defvr
  55547. #: guix-git/doc/guix.texi:37766
  55548. msgid "The association list (@pxref{Association Lists, alists, Association Lists, guile, The GNU Guile Reference manual}) is a data structure containing key-value pairs, for @code{home-environment-variables-service-type} the key is always a string, the value can be a string, string-valued gexp (@pxref{G-Expressions}), file-like object (@pxref{G-Expressions, file-like object}) or boolean. For gexps, the variable will be set to the value of the gexp; for file-like objects, it will be set to the path of the file in the store (@pxref{The Store}); for @code{#t}, it will export the variable without any value; and for @code{#f}, it will omit variable."
  55549. msgstr ""
  55550. #. type: defvr
  55551. #: guix-git/doc/guix.texi:37769
  55552. #, no-wrap
  55553. msgid "{Scheme Variable} home-profile-service-type"
  55554. msgstr ""
  55555. #. type: defvr
  55556. #: guix-git/doc/guix.texi:37775
  55557. msgid "The service of this type will be instantiated by every home environment automatically, there is no need to define it, but you may want to extend it with a list of packages if you want to install additional packages into your profile. Other services, which need to make some programs available to the user will also extend this service type."
  55558. msgstr ""
  55559. #. type: defvr
  55560. #: guix-git/doc/guix.texi:37777
  55561. msgid "The extension value is just a list of packages:"
  55562. msgstr ""
  55563. #. type: lisp
  55564. #: guix-git/doc/guix.texi:37780
  55565. #, no-wrap
  55566. msgid "(list htop vim emacs)\n"
  55567. msgstr ""
  55568. #. type: defvr
  55569. #: guix-git/doc/guix.texi:37790
  55570. msgid "The same approach as @code{simple-service} (@pxref{Service Reference, simple-service}) for @code{home-environment-variables-service-type} can be used here, too. Make sure that modules containing the specified packages are imported with @code{use-modules}. To find a package or information about its module use @command{guix search} (@pxref{Invoking guix package}). Alternatively, @code{specification->package} can be used to get the package record from string without importing related module."
  55571. msgstr ""
  55572. #. type: Plain text
  55573. #: guix-git/doc/guix.texi:37794
  55574. msgid "There are few more essential services, but users are not expected to extend them."
  55575. msgstr ""
  55576. #. type: defvr
  55577. #: guix-git/doc/guix.texi:37795
  55578. #, no-wrap
  55579. msgid "{Scheme Variable} home-service-type"
  55580. msgstr ""
  55581. #. type: defvr
  55582. #: guix-git/doc/guix.texi:37800
  55583. msgid "The root of home services DAG, it generates a folder, which later will be symlinked to @file{~/.guix-home}, it contains configurations, profile with binaries and libraries, and some necessary scripts to glue things together."
  55584. msgstr ""
  55585. #. type: defvr
  55586. #: guix-git/doc/guix.texi:37802
  55587. #, no-wrap
  55588. msgid "{Scheme Variable} home-run-on-first-login-service-type"
  55589. msgstr ""
  55590. #. type: defvr
  55591. #: guix-git/doc/guix.texi:37807
  55592. msgid "The service of this type generates a Guile script, which is expected to be executed by the login shell. It is only executed if the special flag file inside @env{XDG_RUNTIME_DIR} hasn't been created, this prevents redundant executions of the script if multiple login shells are spawned."
  55593. msgstr ""
  55594. #. type: defvr
  55595. #: guix-git/doc/guix.texi:37813
  55596. msgid "It can be extended with a gexp. However, to autostart an application, users @emph{should not} use this service, in most cases it's better to extend @code{home-shepherd-service-type} with a Shepherd service (@pxref{Shepherd Services}), or extend the shell's startup file with the required command using the appropriate service type."
  55597. msgstr ""
  55598. #. type: defvr
  55599. #: guix-git/doc/guix.texi:37815
  55600. #, no-wrap
  55601. msgid "{Scheme Variable} home-activation-service-type"
  55602. msgstr ""
  55603. #. type: defvr
  55604. #: guix-git/doc/guix.texi:37819
  55605. msgid "The service of this type generates a guile script, which runs on every @command{guix home reconfigure} invocation or any other action, which leads to the activation of the home environment."
  55606. msgstr ""
  55607. #. type: node
  55608. #: guix-git/doc/guix.texi:37821
  55609. #, fuzzy, no-wrap
  55610. #| msgid "Shepherd Services"
  55611. msgid "Shells Home Services"
  55612. msgstr "Shepherd服务"
  55613. #. type: subsection
  55614. #: guix-git/doc/guix.texi:37822
  55615. #, no-wrap
  55616. msgid "Shells"
  55617. msgstr ""
  55618. #. type: cindex
  55619. #: guix-git/doc/guix.texi:37824 guix-git/doc/guix.texi:38190
  55620. #, no-wrap
  55621. msgid "shell"
  55622. msgstr ""
  55623. #. type: cindex
  55624. #: guix-git/doc/guix.texi:37825
  55625. #, no-wrap
  55626. msgid "login shell"
  55627. msgstr ""
  55628. #. type: cindex
  55629. #: guix-git/doc/guix.texi:37826
  55630. #, no-wrap
  55631. msgid "interactive shell"
  55632. msgstr ""
  55633. #. type: cindex
  55634. #: guix-git/doc/guix.texi:37827 guix-git/doc/guix.texi:38192
  55635. #, no-wrap
  55636. msgid "bash"
  55637. msgstr ""
  55638. #. type: cindex
  55639. #: guix-git/doc/guix.texi:37828 guix-git/doc/guix.texi:38193
  55640. #, no-wrap
  55641. msgid "zsh"
  55642. msgstr ""
  55643. #. type: Plain text
  55644. #: guix-git/doc/guix.texi:37834
  55645. msgid "Shells play a quite important role in the environment initialization process, you can configure them manually as described in section @ref{Configuring the Shell}, but the recommended way is to use home services listed below. It's both easier and more reliable."
  55646. msgstr ""
  55647. #. type: Plain text
  55648. #: guix-git/doc/guix.texi:37844
  55649. msgid "Each home environment instantiates @code{home-shell-profile-service-type}, which creates a @file{~/.profile} startup file for all POSIX-compatible shells. This file contains all the necessary steps to properly initialize the environment, but many modern shells like Bash or Zsh prefer their own startup files, that's why the respective home services (@code{home-bash-service-type} and @code{home-zsh-service-type}) ensure that @file{~/.profile} is sourced by @file{~/.bash_profile} and @file{~/.zprofile}, respectively."
  55650. msgstr ""
  55651. #. type: subsubheading
  55652. #: guix-git/doc/guix.texi:37845
  55653. #, fuzzy, no-wrap
  55654. #| msgid "Certificate Services"
  55655. msgid "Shell Profile Service"
  55656. msgstr "证书服务"
  55657. #. type: deftp
  55658. #: guix-git/doc/guix.texi:37847
  55659. #, fuzzy, no-wrap
  55660. msgid "{Data Type} home-shell-profile-configuration"
  55661. msgstr "管理操作系统配置。"
  55662. #. type: deftp
  55663. #: guix-git/doc/guix.texi:37849
  55664. msgid "Available @code{home-shell-profile-configuration} fields are:"
  55665. msgstr ""
  55666. #. type: item
  55667. #: guix-git/doc/guix.texi:37851
  55668. #, fuzzy, no-wrap
  55669. msgid "@code{profile} (default: @code{()}) (type: text-config)"
  55670. msgstr "@code{challenge}(默认值:@code{#f})"
  55671. #. type: table
  55672. #: guix-git/doc/guix.texi:37861
  55673. msgid "@code{home-shell-profile} is instantiated automatically by @code{home-environment}, DO NOT create this service manually, it can only be extended. @code{profile} is a list of file-like objects, which will go to @file{~/.profile}. By default @file{~/.profile} contains the initialization code which must be evaluated by the login shell to make home-environment's profile available to the user, but other commands can be added to the file if it is really necessary. In most cases shell's configuration files are preferred places for user's customizations. Extend home-shell-profile service only if you really know what you do."
  55674. msgstr ""
  55675. #. type: subsubheading
  55676. #: guix-git/doc/guix.texi:37866
  55677. #, fuzzy, no-wrap
  55678. #| msgid "Base Services"
  55679. msgid "Bash Home Service"
  55680. msgstr "基础服务"
  55681. #. type: anchor{#1}
  55682. #: guix-git/doc/guix.texi:37869
  55683. #, fuzzy
  55684. msgid "home-bash-configuration"
  55685. msgstr "系统配置"
  55686. #. type: deftp
  55687. #: guix-git/doc/guix.texi:37869
  55688. #, fuzzy, no-wrap
  55689. msgid "{Data Type} home-bash-configuration"
  55690. msgstr "{数据类型} build-machine"
  55691. #. type: deftp
  55692. #: guix-git/doc/guix.texi:37871
  55693. msgid "Available @code{home-bash-configuration} fields are:"
  55694. msgstr ""
  55695. #. type: item
  55696. #: guix-git/doc/guix.texi:37873
  55697. #, fuzzy, no-wrap
  55698. msgid "@code{package} (default: @code{bash}) (type: package)"
  55699. msgstr "@code{xfce}(默认值:@code{xfce})"
  55700. #. type: table
  55701. #: guix-git/doc/guix.texi:37875
  55702. #, fuzzy
  55703. msgid "The Bash package to use."
  55704. msgstr "软件包数据类型。"
  55705. #. type: item
  55706. #: guix-git/doc/guix.texi:37876
  55707. #, fuzzy, no-wrap
  55708. msgid "@code{guix-defaults?} (default: @code{#t}) (type: boolean)"
  55709. msgstr "@code{challenge}(默认值:@code{#f})"
  55710. #. type: table
  55711. #: guix-git/doc/guix.texi:37879
  55712. msgid "Add sane defaults like reading @file{/etc/bashrc} and coloring the output of @command{ls} to the end of the @file{.bashrc} file."
  55713. msgstr ""
  55714. #. type: item
  55715. #: guix-git/doc/guix.texi:37880 guix-git/doc/guix.texi:37934
  55716. #: guix-git/doc/guix.texi:37973
  55717. #, fuzzy, no-wrap
  55718. msgid "@code{environment-variables} (default: @code{()}) (type: alist)"
  55719. msgstr "@code{features} (@code{'()})"
  55720. #. type: table
  55721. #: guix-git/doc/guix.texi:37885
  55722. msgid "Association list of environment variables to set for the Bash session. The rules for the @code{home-environment-variables-service-type} apply here (@pxref{Essential Home Services}). The contents of this field will be added after the contents of the @code{bash-profile} field."
  55723. msgstr ""
  55724. #. type: item
  55725. #: guix-git/doc/guix.texi:37886 guix-git/doc/guix.texi:37939
  55726. #, fuzzy, no-wrap
  55727. msgid "@code{aliases} (default: @code{()}) (type: alist)"
  55728. msgstr "@code{features} (@code{'()})"
  55729. #. type: table
  55730. #: guix-git/doc/guix.texi:37891
  55731. msgid "Association list of aliases to set for the Bash session. The aliases will be defined after the contents of the @code{bashrc} field has been put in the @file{.bashrc} file. The alias will automatically be quoted, so something line this:"
  55732. msgstr ""
  55733. #. type: lisp
  55734. #: guix-git/doc/guix.texi:37894
  55735. #, no-wrap
  55736. msgid "'((\\\"ls\\\" . \\\"ls -alF\\\"))\n"
  55737. msgstr ""
  55738. #. type: table
  55739. #: guix-git/doc/guix.texi:37897
  55740. msgid "turns into"
  55741. msgstr ""
  55742. #. type: example
  55743. #: guix-git/doc/guix.texi:37900
  55744. #, no-wrap
  55745. msgid "alias ls=\\\"ls -alF\\\"\n"
  55746. msgstr ""
  55747. #. type: item
  55748. #: guix-git/doc/guix.texi:37902 guix-git/doc/guix.texi:37943
  55749. #, fuzzy, no-wrap
  55750. msgid "@code{bash-profile} (default: @code{()}) (type: text-config)"
  55751. msgstr "@code{xfce}(默认值:@code{xfce})"
  55752. #. type: table
  55753. #: guix-git/doc/guix.texi:37907
  55754. msgid "List of file-like objects, which will be added to @file{.bash_profile}. Used for executing user's commands at start of login shell (In most cases the shell started on tty just after login). @file{.bash_login} won't be ever read, because @file{.bash_profile} always present."
  55755. msgstr ""
  55756. #. type: item
  55757. #: guix-git/doc/guix.texi:37908 guix-git/doc/guix.texi:37947
  55758. #, fuzzy, no-wrap
  55759. msgid "@code{bashrc} (default: @code{()}) (type: text-config)"
  55760. msgstr "@code{xfce}(默认值:@code{xfce})"
  55761. #. type: table
  55762. #: guix-git/doc/guix.texi:37913
  55763. msgid "List of file-like objects, which will be added to @file{.bashrc}. Used for executing user's commands at start of interactive shell (The shell for interactive usage started by typing @code{bash} or by terminal app or any other program)."
  55764. msgstr ""
  55765. #. type: item
  55766. #: guix-git/doc/guix.texi:37914 guix-git/doc/guix.texi:37951
  55767. #, fuzzy, no-wrap
  55768. msgid "@code{bash-logout} (default: @code{()}) (type: text-config)"
  55769. msgstr "@code{xfce}(默认值:@code{xfce})"
  55770. #. type: table
  55771. #: guix-git/doc/guix.texi:37919
  55772. msgid "List of file-like objects, which will be added to @file{.bash_logout}. Used for executing user's commands at the exit of login shell. It won't be read in some cases (if the shell terminates by exec'ing another process for example)."
  55773. msgstr ""
  55774. #. type: Plain text
  55775. #: guix-git/doc/guix.texi:37929
  55776. msgid "You can extend the Bash service by using the @code{home-bash-extension} configuration record, whose fields most mirror that of @code{home-bash-configuration} (@pxref{home-bash-configuration}). The contents of the extensions will be added to the end of the corresponding Bash configuration files (@pxref{Bash Startup Files,,, bash, The GNU Bash Reference Manual}."
  55777. msgstr ""
  55778. #. type: deftp
  55779. #: guix-git/doc/guix.texi:37930
  55780. #, fuzzy, no-wrap
  55781. msgid "{Data Type} home-bash-extension"
  55782. msgstr "{数据类型} build-machine"
  55783. #. type: deftp
  55784. #: guix-git/doc/guix.texi:37932
  55785. msgid "Available @code{home-bash-extension} fields are:"
  55786. msgstr ""
  55787. #. type: table
  55788. #: guix-git/doc/guix.texi:37938
  55789. msgid "Additional environment variables to set. These will be combined with the environment variables from other extensions and the base service to form one coherent block of environment variables."
  55790. msgstr ""
  55791. #. type: table
  55792. #: guix-git/doc/guix.texi:37942
  55793. msgid "Additional aliases to set. These will be combined with the aliases from other extensions and the base service."
  55794. msgstr ""
  55795. #. type: table
  55796. #: guix-git/doc/guix.texi:37946
  55797. msgid "Additional text blocks to add to @file{.bash_profile}, which will be combined with text blocks from other extensions and the base service."
  55798. msgstr ""
  55799. #. type: table
  55800. #: guix-git/doc/guix.texi:37950
  55801. msgid "Additional text blocks to add to @file{.bashrc}, which will be combined with text blocks from other extensions and the base service."
  55802. msgstr ""
  55803. #. type: table
  55804. #: guix-git/doc/guix.texi:37954
  55805. msgid "Additional text blocks to add to @file{.bash_logout}, which will be combined with text blocks from other extensions and the base service."
  55806. msgstr ""
  55807. #. type: subsubheading
  55808. #: guix-git/doc/guix.texi:37958
  55809. #, fuzzy, no-wrap
  55810. #| msgid "Game Services"
  55811. msgid "Zsh Home Service"
  55812. msgstr "游戏服务"
  55813. #. type: deftp
  55814. #: guix-git/doc/guix.texi:37960
  55815. #, fuzzy, no-wrap
  55816. msgid "{Data Type} home-zsh-configuration"
  55817. msgstr "{数据类型} build-machine"
  55818. #. type: deftp
  55819. #: guix-git/doc/guix.texi:37962
  55820. msgid "Available @code{home-zsh-configuration} fields are:"
  55821. msgstr ""
  55822. #. type: item
  55823. #: guix-git/doc/guix.texi:37964
  55824. #, fuzzy, no-wrap
  55825. msgid "@code{package} (default: @code{zsh}) (type: package)"
  55826. msgstr "@code{xfce}(默认值:@code{xfce})"
  55827. #. type: table
  55828. #: guix-git/doc/guix.texi:37966
  55829. #, fuzzy
  55830. msgid "The Zsh package to use."
  55831. msgstr "软件包数据类型。"
  55832. #. type: item
  55833. #: guix-git/doc/guix.texi:37967
  55834. #, fuzzy, no-wrap
  55835. msgid "@code{xdg-flavor?} (default: @code{#t}) (type: boolean)"
  55836. msgstr "@code{challenge}(默认值:@code{#f})"
  55837. #. type: table
  55838. #: guix-git/doc/guix.texi:37972
  55839. msgid "Place all the configs to @file{$XDG_CONFIG_HOME/zsh}. Makes @file{~/.zshenv} to set @env{ZDOTDIR} to @file{$XDG_CONFIG_HOME/zsh}. Shell startup process will continue with @file{$XDG_CONFIG_HOME/zsh/.zshenv}."
  55840. msgstr ""
  55841. #. type: table
  55842. #: guix-git/doc/guix.texi:37975
  55843. msgid "Association list of environment variables to set for the Zsh session."
  55844. msgstr ""
  55845. #. type: item
  55846. #: guix-git/doc/guix.texi:37976
  55847. #, fuzzy, no-wrap
  55848. msgid "@code{zshenv} (default: @code{()}) (type: text-config)"
  55849. msgstr "@code{xfce}(默认值:@code{xfce})"
  55850. #. type: table
  55851. #: guix-git/doc/guix.texi:37981
  55852. msgid "List of file-like objects, which will be added to @file{.zshenv}. Used for setting user's shell environment variables. Must not contain commands assuming the presence of tty or producing output. Will be read always. Will be read before any other file in @env{ZDOTDIR}."
  55853. msgstr ""
  55854. #. type: item
  55855. #: guix-git/doc/guix.texi:37982
  55856. #, fuzzy, no-wrap
  55857. msgid "@code{zprofile} (default: @code{()}) (type: text-config)"
  55858. msgstr "@code{challenge}(默认值:@code{#f})"
  55859. #. type: table
  55860. #: guix-git/doc/guix.texi:37987
  55861. msgid "List of file-like objects, which will be added to @file{.zprofile}. Used for executing user's commands at start of login shell (In most cases the shell started on tty just after login). Will be read before @file{.zlogin}."
  55862. msgstr ""
  55863. #. type: item
  55864. #: guix-git/doc/guix.texi:37988
  55865. #, fuzzy, no-wrap
  55866. msgid "@code{zshrc} (default: @code{()}) (type: text-config)"
  55867. msgstr "@code{xfce}(默认值:@code{xfce})"
  55868. #. type: table
  55869. #: guix-git/doc/guix.texi:37993
  55870. msgid "List of file-like objects, which will be added to @file{.zshrc}. Used for executing user's commands at start of interactive shell (The shell for interactive usage started by typing @code{zsh} or by terminal app or any other program)."
  55871. msgstr ""
  55872. #. type: item
  55873. #: guix-git/doc/guix.texi:37994
  55874. #, fuzzy, no-wrap
  55875. msgid "@code{zlogin} (default: @code{()}) (type: text-config)"
  55876. msgstr "@code{speed}(默认值:@code{1.0})"
  55877. #. type: table
  55878. #: guix-git/doc/guix.texi:37998
  55879. msgid "List of file-like objects, which will be added to @file{.zlogin}. Used for executing user's commands at the end of starting process of login shell."
  55880. msgstr ""
  55881. #. type: item
  55882. #: guix-git/doc/guix.texi:37999
  55883. #, fuzzy, no-wrap
  55884. msgid "@code{zlogout} (default: @code{()}) (type: text-config)"
  55885. msgstr "@code{xfce}(默认值:@code{xfce})"
  55886. #. type: table
  55887. #: guix-git/doc/guix.texi:38004
  55888. msgid "List of file-like objects, which will be added to @file{.zlogout}. Used for executing user's commands at the exit of login shell. It won't be read in some cases (if the shell terminates by exec'ing another process for example)."
  55889. msgstr ""
  55890. #. type: node
  55891. #: guix-git/doc/guix.texi:38009
  55892. #, fuzzy, no-wrap
  55893. #| msgid "Monitoring Services"
  55894. msgid "Mcron Home Service"
  55895. msgstr "监控服务"
  55896. #. type: subsection
  55897. #: guix-git/doc/guix.texi:38010
  55898. #, fuzzy, no-wrap
  55899. #| msgid "Scheduled Job Execution"
  55900. msgid "Scheduled User's Job Execution"
  55901. msgstr "执行计划任务"
  55902. #. type: Plain text
  55903. #: guix-git/doc/guix.texi:38023
  55904. msgid "The @code{(gnu home services mcron)} module provides an interface to GNU@tie{}mcron, a daemon to run jobs at scheduled times (@pxref{Top,,, mcron, GNU@tie{}mcron}). The information about system's mcron is applicable here (@pxref{Scheduled Job Execution}), the only difference for home services is that they have to be declared in a @code{home-envirnoment} record instead of an @code{operating-system} record."
  55905. msgstr ""
  55906. #. type: defvr
  55907. #: guix-git/doc/guix.texi:38024
  55908. #, no-wrap
  55909. msgid "{Scheme Variable} home-mcron-service-type"
  55910. msgstr ""
  55911. #. type: defvr
  55912. #: guix-git/doc/guix.texi:38028
  55913. msgid "This is the type of the @code{mcron} home service, whose value is an @code{home-mcron-configuration} object. It allows to manage scheduled tasks."
  55914. msgstr ""
  55915. #. type: deftp
  55916. #: guix-git/doc/guix.texi:38035
  55917. #, fuzzy, no-wrap
  55918. msgid "{Data Type} home-mcron-configuration"
  55919. msgstr "{数据类型} build-machine"
  55920. #. type: node
  55921. #: guix-git/doc/guix.texi:38049
  55922. #, fuzzy, no-wrap
  55923. #| msgid "Shepherd Services"
  55924. msgid "Shepherd Home Service"
  55925. msgstr "Shepherd服务"
  55926. #. type: subsection
  55927. #: guix-git/doc/guix.texi:38050
  55928. #, fuzzy, no-wrap
  55929. #| msgid "Messaging services."
  55930. msgid "Managing User Daemons"
  55931. msgstr "消息服务。"
  55932. #. type: cindex
  55933. #: guix-git/doc/guix.texi:38052
  55934. #, fuzzy, no-wrap
  55935. #| msgid "Shepherd Services"
  55936. msgid "shepherd services, for users"
  55937. msgstr "Shepherd服务"
  55938. #. type: Plain text
  55939. #: guix-git/doc/guix.texi:38059
  55940. msgid "The @code{(gnu home services shepherd)} module supports the definitions of per-user Shepherd services (@pxref{Introduction,,, shepherd, The GNU Shepherd Manual}). You extend @code{home-shepherd-service-type} with new services; Guix Home then takes care of starting the @code{shepherd} daemon for you when you log in, which in turns starts the services you asked for."
  55941. msgstr ""
  55942. #. type: defvr
  55943. #: guix-git/doc/guix.texi:38060
  55944. #, no-wrap
  55945. msgid "{Scheme Variable} home-shepherd-service-type"
  55946. msgstr ""
  55947. #. type: defvr
  55948. #: guix-git/doc/guix.texi:38065
  55949. msgid "The service type for the userland Shepherd, which allows one to manage long-running processes or one-shot tasks. User's Shepherd is not an init process (PID 1), but almost all other information described in (@pxref{Shepherd Services}) is applicable here too."
  55950. msgstr ""
  55951. #. type: defvr
  55952. #: guix-git/doc/guix.texi:38070
  55953. 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{home-shepherd-configuration}, as described below."
  55954. msgstr ""
  55955. #. type: deftp
  55956. #: guix-git/doc/guix.texi:38072
  55957. #, fuzzy, no-wrap
  55958. msgid "{Data Type} home-shepherd-configuration"
  55959. msgstr "{数据类型} build-machine"
  55960. #. type: item
  55961. #: guix-git/doc/guix.texi:38079
  55962. #, fuzzy, no-wrap
  55963. msgid "auto-start? (default: @code{#t})"
  55964. msgstr "@code{port}(默认值:@code{22})"
  55965. #. type: table
  55966. #: guix-git/doc/guix.texi:38081
  55967. msgid "Whether or not to start Shepherd on first login."
  55968. msgstr ""
  55969. #. type: subsection
  55970. #: guix-git/doc/guix.texi:38089 guix-git/doc/guix.texi:38090
  55971. #, fuzzy, no-wrap
  55972. #| msgid "Desktop Services"
  55973. msgid "Desktop Home Services"
  55974. msgstr "桌面服务"
  55975. #. type: Plain text
  55976. #: guix-git/doc/guix.texi:38095
  55977. msgid "The @code{(gnu home services desktop)} module provides services that you may find useful on ``desktop'' systems running a graphical user environment such as Xorg."
  55978. msgstr ""
  55979. #. type: defvr
  55980. #: guix-git/doc/guix.texi:38096
  55981. #, no-wrap
  55982. msgid "{Scheme Variable} home-redshift-service-type"
  55983. msgstr ""
  55984. #. type: defvr
  55985. #: guix-git/doc/guix.texi:38101
  55986. msgid "This is the service type for @uref{https://github.com/jonls/redshift, Redshift}, a program that adjusts the display color temperature according to the time of day. Its associated value must be a @code{home-redshift-configuration} record, as shown below."
  55987. msgstr ""
  55988. #. type: defvr
  55989. #: guix-git/doc/guix.texi:38104
  55990. msgid "A typical configuration, where we manually specify the latitude and longitude, might look like this:"
  55991. msgstr ""
  55992. #. type: lisp
  55993. #: guix-git/doc/guix.texi:38111
  55994. #, no-wrap
  55995. msgid ""
  55996. "(service home-redshift-service-type\n"
  55997. " (home-redshift-configuration\n"
  55998. " (location-provider 'manual)\n"
  55999. " (latitude 35.81) ;northern hemisphere\n"
  56000. " (longitude -0.80))) ;west of Greenwich\n"
  56001. msgstr ""
  56002. #. type: deftp
  56003. #: guix-git/doc/guix.texi:38114
  56004. #, fuzzy, no-wrap
  56005. msgid "{Data Type} home-redshift-configuration"
  56006. msgstr "{数据类型} build-machine"
  56007. #. type: deftp
  56008. #: guix-git/doc/guix.texi:38116
  56009. msgid "Available @code{home-redshift-configuration} fields are:"
  56010. msgstr ""
  56011. #. type: item
  56012. #: guix-git/doc/guix.texi:38118
  56013. #, fuzzy, no-wrap
  56014. msgid "@code{redshift} (default: @code{redshift}) (type: file-like)"
  56015. msgstr "@code{xfce}(默认值:@code{xfce})"
  56016. #. type: table
  56017. #: guix-git/doc/guix.texi:38120
  56018. #, fuzzy
  56019. msgid "Redshift package to use."
  56020. msgstr "软件包数据类型。"
  56021. #. type: item
  56022. #: guix-git/doc/guix.texi:38121
  56023. #, fuzzy, no-wrap
  56024. msgid "@code{location-provider} (default: @code{geoclue2}) (type: symbol)"
  56025. msgstr "@code{port}(默认值:@code{22})"
  56026. #. type: table
  56027. #: guix-git/doc/guix.texi:38127
  56028. msgid "Geolocation provider---@code{'manual} or @code{'geoclue2}. In the former case, you must also specify the @code{latitude} and @code{longitude} fields so Redshift can determine daytime at your place. In the latter case, the Geoclue system service must be running; it will be queried for location information."
  56029. msgstr ""
  56030. #. type: item
  56031. #: guix-git/doc/guix.texi:38128
  56032. #, fuzzy, no-wrap
  56033. msgid "@code{adjustment-method} (default: @code{randr}) (type: symbol)"
  56034. msgstr "@code{port}(默认值:@code{22})"
  56035. #. type: table
  56036. #: guix-git/doc/guix.texi:38130
  56037. msgid "Color adjustment method."
  56038. msgstr ""
  56039. #. type: item
  56040. #: guix-git/doc/guix.texi:38131
  56041. #, fuzzy, no-wrap
  56042. msgid "@code{daytime-temperature} (default: @code{6500}) (type: integer)"
  56043. msgstr "@code{challenge}(默认值:@code{#f})"
  56044. #. type: table
  56045. #: guix-git/doc/guix.texi:38133
  56046. msgid "Daytime color temperature (kelvins)."
  56047. msgstr ""
  56048. #. type: item
  56049. #: guix-git/doc/guix.texi:38134
  56050. #, fuzzy, no-wrap
  56051. msgid "@code{nighttime-temperature} (default: @code{4500}) (type: integer)"
  56052. msgstr "@code{challenge}(默认值:@code{#f})"
  56053. #. type: table
  56054. #: guix-git/doc/guix.texi:38136
  56055. msgid "Nighttime color temperature (kelvins)."
  56056. msgstr ""
  56057. #. type: item
  56058. #: guix-git/doc/guix.texi:38137
  56059. #, fuzzy, no-wrap
  56060. msgid "@code{daytime-brightness} (default: @code{disabled}) (type: maybe-inexact-number)"
  56061. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56062. #. type: table
  56063. #: guix-git/doc/guix.texi:38139
  56064. msgid "Daytime screen brightness, between 0.1 and 1.0."
  56065. msgstr ""
  56066. #. type: item
  56067. #: guix-git/doc/guix.texi:38140
  56068. #, fuzzy, no-wrap
  56069. msgid "@code{nighttime-brightness} (default: @code{disabled}) (type: maybe-inexact-number)"
  56070. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56071. #. type: table
  56072. #: guix-git/doc/guix.texi:38142
  56073. msgid "Nighttime screen brightness, between 0.1 and 1.0."
  56074. msgstr ""
  56075. #. type: item
  56076. #: guix-git/doc/guix.texi:38143
  56077. #, fuzzy, no-wrap
  56078. msgid "@code{latitude} (default: @code{disabled}) (type: maybe-inexact-number)"
  56079. msgstr "@code{gnome}(默认值:@code{gnome})"
  56080. #. type: table
  56081. #: guix-git/doc/guix.texi:38145
  56082. msgid "Latitude, when @code{location-provider} is @code{'manual}."
  56083. msgstr ""
  56084. #. type: item
  56085. #: guix-git/doc/guix.texi:38146
  56086. #, fuzzy, no-wrap
  56087. msgid "@code{longitude} (default: @code{disabled}) (type: maybe-inexact-number)"
  56088. msgstr "@code{gnome}(默认值:@code{gnome})"
  56089. #. type: table
  56090. #: guix-git/doc/guix.texi:38148
  56091. msgid "Longitude, when @code{location-provider} is @code{'manual}."
  56092. msgstr ""
  56093. #. type: item
  56094. #: guix-git/doc/guix.texi:38149
  56095. #, fuzzy, no-wrap
  56096. msgid "@code{dawn-time} (default: @code{disabled}) (type: maybe-string)"
  56097. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56098. #. type: table
  56099. #: guix-git/doc/guix.texi:38153
  56100. msgid "Custom time for the transition from night to day in the morning---@code{\"HH:MM\"} format. When specified, solar elevation is not used to determine the daytime/nighttime period."
  56101. msgstr ""
  56102. #. type: item
  56103. #: guix-git/doc/guix.texi:38154
  56104. #, fuzzy, no-wrap
  56105. msgid "@code{dusk-time} (default: @code{disabled}) (type: maybe-string)"
  56106. msgstr "@code{dnssec-policy}(默认值:@code{#f})"
  56107. #. type: table
  56108. #: guix-git/doc/guix.texi:38157
  56109. msgid "Likewise, custom time for the transition from day to night in the evening."
  56110. msgstr ""
  56111. #. type: item
  56112. #: guix-git/doc/guix.texi:38158
  56113. #, fuzzy, no-wrap
  56114. msgid "@code{extra-content} (default: @code{\"\"}) (type: raw-configuration-string)"
  56115. msgstr "@code{enlightenment}(默认值:@code{enlightenment})"
  56116. #. type: table
  56117. #: guix-git/doc/guix.texi:38162
  56118. msgid "Extra content appended as-is to the Redshift configuration file. Run @command{man redshift} for more information about the configuration file format."
  56119. msgstr ""
  56120. #. type: section
  56121. #: guix-git/doc/guix.texi:38169
  56122. #, fuzzy, no-wrap
  56123. msgid "Invoking @code{guix home}"
  56124. msgstr "调用@command{guix-daemon}"
  56125. #. type: Plain text
  56126. #: guix-git/doc/guix.texi:38174
  56127. msgid "Once you have written a home environment declaration (@pxref{Declaring the Home Environment,,,,}, it can be @dfn{instantiated} using the @command{guix home} command. The synopsis is:"
  56128. msgstr ""
  56129. #. type: example
  56130. #: guix-git/doc/guix.texi:38177
  56131. #, no-wrap
  56132. msgid "guix home @var{options}@dots{} @var{action} @var{file}\n"
  56133. msgstr ""
  56134. #. type: Plain text
  56135. #: guix-git/doc/guix.texi:38184
  56136. msgid "@var{file} must be the name of a file containing a @code{home-environment} declaration. @var{action} specifies how the home environment is instantiated, but there are few auxiliary actions which don't instantiate it. Currently the following values are supported:"
  56137. msgstr ""
  56138. #. type: table
  56139. #: guix-git/doc/guix.texi:38189
  56140. msgid "Display available home service type definitions that match the given regular expressions, sorted by relevance:"
  56141. msgstr ""
  56142. #. type: cindex
  56143. #: guix-git/doc/guix.texi:38191
  56144. #, no-wrap
  56145. msgid "shell-profile"
  56146. msgstr ""
  56147. #. type: example
  56148. #: guix-git/doc/guix.texi:38202
  56149. #, no-wrap
  56150. msgid ""
  56151. "$ guix home search shell\n"
  56152. "name: home-shell-profile\n"
  56153. "location: gnu/home/services/shells.scm:100:2\n"
  56154. "extends: home-files\n"
  56155. "description: Create `~/.profile', which is used for environment initialization of POSIX compliant login shells.\n"
  56156. "+ This service type can be extended with a list of file-like objects.\n"
  56157. "relevance: 6\n"
  56158. "\n"
  56159. msgstr ""
  56160. #. type: example
  56161. #: guix-git/doc/guix.texi:38208
  56162. #, no-wrap
  56163. msgid ""
  56164. "name: home-fish\n"
  56165. "location: gnu/home/services/shells.scm:640:2\n"
  56166. "extends: home-files home-profile\n"
  56167. "description: Install and configure Fish, the friendly interactive shell.\n"
  56168. "relevance: 3\n"
  56169. "\n"
  56170. msgstr ""
  56171. #. type: example
  56172. #: guix-git/doc/guix.texi:38214
  56173. #, no-wrap
  56174. msgid ""
  56175. "name: home-zsh\n"
  56176. "location: gnu/home/services/shells.scm:290:2\n"
  56177. "extends: home-files home-profile\n"
  56178. "description: Install and configure Zsh.\n"
  56179. "relevance: 1\n"
  56180. "\n"
  56181. msgstr ""
  56182. #. type: example
  56183. #: guix-git/doc/guix.texi:38220
  56184. #, no-wrap
  56185. msgid ""
  56186. "name: home-bash\n"
  56187. "location: gnu/home/services/shells.scm:508:2\n"
  56188. "extends: home-files home-profile\n"
  56189. "description: Install and configure GNU Bash.\n"
  56190. "relevance: 1\n"
  56191. "\n"
  56192. msgstr ""
  56193. #. type: table
  56194. #: guix-git/doc/guix.texi:38227
  56195. msgid "As for @command{guix 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})."
  56196. msgstr ""
  56197. #. type: table
  56198. #: guix-git/doc/guix.texi:38236
  56199. msgid "Build the home environment described in @var{file}, and switch to it. Switching means that the activation script will be evaluated and (in basic scenario) symlinks to configuration files generated from @code{home-environment} declaration will be created in @file{~}. If the file with the same path already exists in home folder it will be moved to @file{~/@var{timestamp}-guix-home-legacy-configs-backup}, where @var{timestamp} is a current UNIX epoch time."
  56200. msgstr ""
  56201. #. type: quotation
  56202. #: guix-git/doc/guix.texi:38241
  56203. msgid "It is highly recommended to run @command{guix pull} once before you run @command{guix home reconfigure} for the first time (@pxref{Invoking guix pull})."
  56204. msgstr ""
  56205. #. type: table
  56206. #: guix-git/doc/guix.texi:38248
  56207. msgid "This effects all the configuration specified in @var{file}. The command starts Shepherd 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 @var{service}} or @code{herd restart @var{service}})."
  56208. msgstr ""
  56209. #. type: table
  56210. #: guix-git/doc/guix.texi:38254
  56211. msgid "This command creates a new generation whose number is one greater than the current generation (as reported by @command{guix home list-generations}). If that generation already exists, it will be overwritten. This behavior mirrors that of @command{guix package} (@pxref{Invoking guix package})."
  56212. msgstr ""
  56213. #. type: cindex
  56214. #: guix-git/doc/guix.texi:38255
  56215. #, fuzzy, no-wrap
  56216. msgid "provenance tracking, of the home environment"
  56217. msgstr "配置操作系统。"
  56218. #. type: table
  56219. #: guix-git/doc/guix.texi:38260
  56220. msgid "Upon completion, the new home is deployed under @file{~/.guix-home}. This directory contains @dfn{provenance meta-data}: the list of channels in use (@pxref{Channels}) and @var{file} itself, when available. You can view the provenance information by running:"
  56221. msgstr ""
  56222. #. type: example
  56223. #: guix-git/doc/guix.texi:38263
  56224. #, fuzzy, no-wrap
  56225. #| msgid "guix describe\n"
  56226. msgid "guix home describe\n"
  56227. msgstr "guix describe\n"
  56228. #. type: table
  56229. #: guix-git/doc/guix.texi:38269
  56230. 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 home environment with:"
  56231. msgstr ""
  56232. #. type: example
  56233. #: guix-git/doc/guix.texi:38275
  56234. #, no-wrap
  56235. msgid ""
  56236. "guix time-machine \\\n"
  56237. " -C /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/channels.scm -- \\\n"
  56238. " home reconfigure \\\n"
  56239. " /var/guix/profiles/per-user/@var{USER}/guix-home-@var{n}-link/configuration.scm\n"
  56240. "\n"
  56241. msgstr ""
  56242. #. type: table
  56243. #: guix-git/doc/guix.texi:38282
  56244. msgid "You can think of it as some sort of built-in version control! Your home is not just a binary artifact: @emph{it carries its own source}."
  56245. msgstr ""
  56246. #. type: cindex
  56247. #: guix-git/doc/guix.texi:38288
  56248. #, fuzzy, no-wrap
  56249. #| msgid "Documentation"
  56250. msgid "home generations"
  56251. msgstr "文档"
  56252. #. type: table
  56253. #: guix-git/doc/guix.texi:38291
  56254. msgid "Switch to an existing home generation. This action atomically switches the home profile to the specified home generation."
  56255. msgstr ""
  56256. #. type: table
  56257. #: guix-git/doc/guix.texi:38295
  56258. msgid "The target generation can be specified explicitly by its generation number. For example, the following invocation would switch to home generation 7:"
  56259. msgstr ""
  56260. #. type: example
  56261. #: guix-git/doc/guix.texi:38298
  56262. #, fuzzy, no-wrap
  56263. msgid "guix home switch-generation 7\n"
  56264. msgstr "guix package --list-available\n"
  56265. #. type: example
  56266. #: guix-git/doc/guix.texi:38309
  56267. #, fuzzy, no-wrap
  56268. msgid "guix home switch-generation -- -1\n"
  56269. msgstr "guix package --list-available\n"
  56270. #. type: table
  56271. #: guix-git/doc/guix.texi:38318
  56272. msgid "Switch to the preceding home 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}."
  56273. msgstr ""
  56274. #. type: cindex
  56275. #: guix-git/doc/guix.texi:38320
  56276. #, no-wrap
  56277. msgid "deleting home generations"
  56278. msgstr ""
  56279. #. type: table
  56280. #: guix-git/doc/guix.texi:38325
  56281. msgid "Delete home generations, making them candidates for garbage collection (@pxref{Invoking guix gc}, for information on how to run the ``garbage collector'')."
  56282. msgstr ""
  56283. #. type: table
  56284. #: guix-git/doc/guix.texi:38329
  56285. msgid "This works in the same way as @samp{guix package --delete-generations} (@pxref{Invoking guix package, @option{--delete-generations}}). With no arguments, all home generations but the current one are deleted:"
  56286. msgstr ""
  56287. #. type: example
  56288. #: guix-git/doc/guix.texi:38332
  56289. #, fuzzy, no-wrap
  56290. msgid "guix home delete-generations\n"
  56291. msgstr "guix package --list-available\n"
  56292. #. type: table
  56293. #: guix-git/doc/guix.texi:38336
  56294. msgid "You can also select the generations you want to delete. The example below deletes all the home generations that are more than two months old:"
  56295. msgstr ""
  56296. #. type: example
  56297. #: guix-git/doc/guix.texi:38339
  56298. #, fuzzy, no-wrap
  56299. msgid "guix home delete-generations 2m\n"
  56300. msgstr "guix package --list-available\n"
  56301. #. type: table
  56302. #: guix-git/doc/guix.texi:38345
  56303. msgid "Build the derivation of the home environment, which includes all the configuration files and programs needed. This action does not actually install anything."
  56304. msgstr ""
  56305. #. type: table
  56306. #: guix-git/doc/guix.texi:38349
  56307. msgid "Describe the current home generation: its file name, as well as provenance information when available."
  56308. msgstr ""
  56309. #. type: table
  56310. #: guix-git/doc/guix.texi:38355
  56311. msgid "List a summary of each generation of the home environment 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})."
  56312. msgstr ""
  56313. #. type: example
  56314. #: guix-git/doc/guix.texi:38363
  56315. #, fuzzy, no-wrap
  56316. msgid "$ guix home list-generations 10d\n"
  56317. msgstr "guix package --list-available\n"
  56318. #. type: item
  56319. #: guix-git/doc/guix.texi:38365
  56320. #, no-wrap
  56321. msgid "import"
  56322. msgstr ""
  56323. #. type: table
  56324. #: guix-git/doc/guix.texi:38372
  56325. msgid "Generate a @dfn{home environment} from the packages in the default profile and configuration files found in the user's home directory. The configuration files will be copied to the specified directory, and a @file{home-configuration.scm} will be populated with the home environment. Note that not every home service that exists is supported (@pxref{Home Services})."
  56326. msgstr ""
  56327. #. type: example
  56328. #: guix-git/doc/guix.texi:38376
  56329. #, no-wrap
  56330. msgid ""
  56331. "$ guix home import ~/guix-config\n"
  56332. "guix home: '/home/alice/guix-config' populated with all the Home configuration files\n"
  56333. msgstr ""
  56334. #. type: table
  56335. #: guix-git/doc/guix.texi:38391
  56336. msgid "Consider the home-environment @var{expr} evaluates to. This is an alternative to specifying a file which evaluates to a home environment."
  56337. msgstr ""
  56338. #. type: table
  56339. #: guix-git/doc/guix.texi:38394
  56340. msgid "Instruct @command{guix home reconfigure} to allow system downgrades."
  56341. msgstr ""
  56342. #. type: table
  56343. #: guix-git/doc/guix.texi:38401
  56344. msgid "Just like @command{guix system}, @command{guix home reconfigure}, by default, prevents you from downgrading your home to older or unrelated revisions compared to the channel revisions that were used to deploy it---those shown by @command{guix home describe}. Using @option{--allow-downgrades} allows you to bypass that check, at the risk of downgrading your home---be careful!"
  56345. msgstr ""
  56346. #. type: cindex
  56347. #: guix-git/doc/guix.texi:38407
  56348. #, no-wrap
  56349. msgid "documentation, searching for"
  56350. msgstr ""
  56351. #. type: cindex
  56352. #: guix-git/doc/guix.texi:38408
  56353. #, no-wrap
  56354. msgid "searching for documentation"
  56355. msgstr ""
  56356. #. type: cindex
  56357. #: guix-git/doc/guix.texi:38409
  56358. #, no-wrap
  56359. msgid "Info, documentation format"
  56360. msgstr ""
  56361. #. type: cindex
  56362. #: guix-git/doc/guix.texi:38410
  56363. #, no-wrap
  56364. msgid "man pages"
  56365. msgstr ""
  56366. #. type: cindex
  56367. #: guix-git/doc/guix.texi:38411
  56368. #, no-wrap
  56369. msgid "manual pages"
  56370. msgstr ""
  56371. #. type: Plain text
  56372. #: guix-git/doc/guix.texi:38418
  56373. 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}."
  56374. msgstr ""
  56375. #. type: Plain text
  56376. #: guix-git/doc/guix.texi:38422
  56377. 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:"
  56378. msgstr ""
  56379. #. type: example
  56380. #: guix-git/doc/guix.texi:38430
  56381. #, no-wrap
  56382. msgid ""
  56383. "$ info -k TLS\n"
  56384. "\"(emacs)Network Security\" -- STARTTLS\n"
  56385. "\"(emacs)Network Security\" -- TLS\n"
  56386. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_flags\n"
  56387. "\"(gnutls)Core TLS API\" -- gnutls_certificate_set_verify_function\n"
  56388. "@dots{}\n"
  56389. msgstr ""
  56390. #. type: Plain text
  56391. #: guix-git/doc/guix.texi:38436
  56392. msgid "The command below searches for the same keyword in man pages@footnote{The database searched by @command{man -k} is only created in profiles that contain the @code{man-db} package.}:"
  56393. msgstr ""
  56394. #. type: example
  56395. #: guix-git/doc/guix.texi:38442
  56396. #, no-wrap
  56397. msgid ""
  56398. "$ man -k TLS\n"
  56399. "SSL (7) - OpenSSL SSL/TLS library\n"
  56400. "certtool (1) - GnuTLS certificate tool\n"
  56401. "@dots {}\n"
  56402. msgstr ""
  56403. #. type: Plain text
  56404. #: guix-git/doc/guix.texi:38448
  56405. 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."
  56406. msgstr ""
  56407. #. type: Plain text
  56408. #: guix-git/doc/guix.texi:38451
  56409. msgid "Once you have these results, you can view the relevant documentation by running, say:"
  56410. msgstr ""
  56411. #. type: example
  56412. #: guix-git/doc/guix.texi:38454
  56413. #, no-wrap
  56414. msgid "$ info \"(gnutls)Core TLS API\"\n"
  56415. msgstr ""
  56416. #. type: Plain text
  56417. #: guix-git/doc/guix.texi:38458
  56418. msgid "or:"
  56419. msgstr ""
  56420. #. type: example
  56421. #: guix-git/doc/guix.texi:38461
  56422. #, no-wrap
  56423. msgid "$ man certtool\n"
  56424. msgstr ""
  56425. #. type: Plain text
  56426. #: guix-git/doc/guix.texi:38469
  56427. 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."
  56428. msgstr ""
  56429. #. type: cindex
  56430. #: guix-git/doc/guix.texi:38473
  56431. #, no-wrap
  56432. msgid "debugging files"
  56433. msgstr ""
  56434. #. type: Plain text
  56435. #: guix-git/doc/guix.texi:38479
  56436. 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."
  56437. msgstr ""
  56438. #. type: Plain text
  56439. #: guix-git/doc/guix.texi:38483
  56440. 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."
  56441. msgstr ""
  56442. #. type: Plain text
  56443. #: guix-git/doc/guix.texi:38499
  56444. 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})."
  56445. msgstr ""
  56446. #. type: Plain text
  56447. #: guix-git/doc/guix.texi:38506
  56448. 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})."
  56449. msgstr ""
  56450. #. type: Plain text
  56451. #: guix-git/doc/guix.texi:38514
  56452. 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:"
  56453. msgstr ""
  56454. #. type: example
  56455. #: guix-git/doc/guix.texi:38517
  56456. #, no-wrap
  56457. msgid "guix install glibc:debug guile:debug\n"
  56458. msgstr ""
  56459. #. type: Plain text
  56460. #: guix-git/doc/guix.texi:38523
  56461. 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}):"
  56462. msgstr ""
  56463. #. type: example
  56464. #: guix-git/doc/guix.texi:38526
  56465. #, no-wrap
  56466. msgid "(gdb) set debug-file-directory ~/.guix-profile/lib/debug\n"
  56467. msgstr ""
  56468. #. type: Plain text
  56469. #: guix-git/doc/guix.texi:38530
  56470. msgid "From there on, GDB will pick up debugging information from the @file{.debug} files under @file{~/.guix-profile/lib/debug}."
  56471. msgstr ""
  56472. #. type: Plain text
  56473. #: guix-git/doc/guix.texi:38535
  56474. msgid "Below is an alternative GDB script which is useful when working with other profiles. It takes advantage of the optional Guile integration in GDB. This snippet is included by default on Guix System in the @file{~/.gdbinit} file."
  56475. msgstr ""
  56476. #. type: example
  56477. #: guix-git/doc/guix.texi:38543
  56478. #, no-wrap
  56479. msgid ""
  56480. "guile\n"
  56481. "(use-modules (gdb))\n"
  56482. "(execute (string-append \"set debug-file-directory \"\n"
  56483. " (or (getenv \"GDB_DEBUG_FILE_DIRECTORY\")\n"
  56484. " \"~/.guix-profile/lib/debug\")))\n"
  56485. "end\n"
  56486. msgstr ""
  56487. #. type: Plain text
  56488. #: guix-git/doc/guix.texi:38551
  56489. 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})."
  56490. msgstr ""
  56491. #. type: Plain text
  56492. #: guix-git/doc/guix.texi:38559
  56493. 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})."
  56494. msgstr ""
  56495. #. type: Plain text
  56496. #: guix-git/doc/guix.texi:38561
  56497. msgid "Read on for how to deal with packages lacking a @code{debug} output."
  56498. msgstr ""
  56499. #. type: Plain text
  56500. #: guix-git/doc/guix.texi:38573
  56501. 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."
  56502. msgstr ""
  56503. #. type: Plain text
  56504. #: guix-git/doc/guix.texi:38578
  56505. 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:"
  56506. msgstr ""
  56507. #. type: example
  56508. #: guix-git/doc/guix.texi:38589
  56509. #, no-wrap
  56510. msgid ""
  56511. "(gdb) bt\n"
  56512. "#0 0x00007ffff5f92190 in g_getenv ()\n"
  56513. " from /gnu/store/@dots{}-glib-2.62.6/lib/libglib-2.0.so.0\n"
  56514. "#1 0x00007ffff608a7d6 in gobject_init_ctor ()\n"
  56515. " from /gnu/store/@dots{}-glib-2.62.6/lib/libgobject-2.0.so.0\n"
  56516. "#2 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=1, argv=argv@@entry=0x7fffffffcfd8, \n"
  56517. " env=env@@entry=0x7fffffffcfe8) at dl-init.c:72\n"
  56518. "#3 0x00007ffff7fe2866 in call_init (env=0x7fffffffcfe8, argv=0x7fffffffcfd8, argc=1, l=<optimized out>)\n"
  56519. " at dl-init.c:118\n"
  56520. msgstr ""
  56521. #. type: Plain text
  56522. #: guix-git/doc/guix.texi:38593
  56523. msgid "To address that, you install Inkscape linked against a variant GLib that contains debug info:"
  56524. msgstr ""
  56525. #. type: Plain text
  56526. #: guix-git/doc/guix.texi:38599
  56527. msgid "This time, debugging will be a whole lot nicer:"
  56528. msgstr ""
  56529. #. type: example
  56530. #: guix-git/doc/guix.texi:38617
  56531. #, no-wrap
  56532. msgid ""
  56533. "$ gdb --args sh -c 'exec inkscape'\n"
  56534. "@dots{}\n"
  56535. "(gdb) b g_getenv\n"
  56536. "Function \"g_getenv\" not defined.\n"
  56537. "Make breakpoint pending on future shared library load? (y or [n]) y\n"
  56538. "Breakpoint 1 (g_getenv) pending.\n"
  56539. "(gdb) r\n"
  56540. "Starting program: /gnu/store/@dots{}-profile/bin/sh -c exec\\ inkscape\n"
  56541. "@dots{}\n"
  56542. "(gdb) bt\n"
  56543. "#0 g_getenv (variable=variable@@entry=0x7ffff60c7a2e \"GOBJECT_DEBUG\") at ../glib-2.62.6/glib/genviron.c:252\n"
  56544. "#1 0x00007ffff608a7d6 in gobject_init () at ../glib-2.62.6/gobject/gtype.c:4380\n"
  56545. "#2 gobject_init_ctor () at ../glib-2.62.6/gobject/gtype.c:4493\n"
  56546. "#3 0x00007ffff7fe275a in call_init (l=<optimized out>, argc=argc@@entry=3, argv=argv@@entry=0x7fffffffd088, \n"
  56547. " env=env@@entry=0x7fffffffd0a8) at dl-init.c:72\n"
  56548. "@dots{}\n"
  56549. msgstr ""
  56550. #. type: Plain text
  56551. #: guix-git/doc/guix.texi:38620
  56552. msgid "Much better!"
  56553. msgstr ""
  56554. #. type: Plain text
  56555. #: guix-git/doc/guix.texi:38624
  56556. 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."
  56557. msgstr ""
  56558. #. type: cindex
  56559. #: guix-git/doc/guix.texi:38628
  56560. #, no-wrap
  56561. msgid "security updates"
  56562. msgstr ""
  56563. #. type: Plain text
  56564. #: guix-git/doc/guix.texi:38637
  56565. 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:"
  56566. msgstr ""
  56567. #. type: smallexample
  56568. #: guix-git/doc/guix.texi:38644
  56569. #, no-wrap
  56570. msgid ""
  56571. "$ guix lint -c cve\n"
  56572. "gnu/packages/base.scm:652:2: glibc@@2.21: probably vulnerable to CVE-2015-1781, CVE-2015-7547\n"
  56573. "gnu/packages/gcc.scm:334:2: gcc@@4.9.3: probably vulnerable to CVE-2015-5276\n"
  56574. "gnu/packages/image.scm:312:2: openjpeg@@2.1.0: probably vulnerable to CVE-2016-1923, CVE-2016-1924\n"
  56575. "@dots{}\n"
  56576. msgstr ""
  56577. #. type: Plain text
  56578. #: guix-git/doc/guix.texi:38647
  56579. msgid "@xref{Invoking guix lint}, for more information."
  56580. msgstr ""
  56581. #. type: Plain text
  56582. #: guix-git/doc/guix.texi:38656
  56583. 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."
  56584. msgstr ""
  56585. #. type: cindex
  56586. #: guix-git/doc/guix.texi:38657
  56587. #, no-wrap
  56588. msgid "grafts"
  56589. msgstr ""
  56590. #. type: Plain text
  56591. #: guix-git/doc/guix.texi:38665
  56592. 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."
  56593. msgstr ""
  56594. #. type: cindex
  56595. #: guix-git/doc/guix.texi:38666
  56596. #, no-wrap
  56597. msgid "replacements of packages, for grafts"
  56598. msgstr ""
  56599. #. type: Plain text
  56600. #: guix-git/doc/guix.texi:38672
  56601. 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:"
  56602. msgstr ""
  56603. #. type: lisp
  56604. #: guix-git/doc/guix.texi:38679
  56605. #, no-wrap
  56606. msgid ""
  56607. "(define bash\n"
  56608. " (package\n"
  56609. " (name \"bash\")\n"
  56610. " ;; @dots{}\n"
  56611. " (replacement bash-fixed)))\n"
  56612. msgstr ""
  56613. #. type: Plain text
  56614. #: guix-git/doc/guix.texi:38689
  56615. 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."
  56616. msgstr ""
  56617. #. type: Plain text
  56618. #: guix-git/doc/guix.texi:38697
  56619. 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."
  56620. msgstr ""
  56621. #. type: Plain text
  56622. #: guix-git/doc/guix.texi:38701
  56623. msgid "The @option{--no-grafts} command-line option allows you to forcefully avoid grafting (@pxref{Common Build Options, @option{--no-grafts}}). Thus, the command:"
  56624. msgstr ""
  56625. #. type: example
  56626. #: guix-git/doc/guix.texi:38704
  56627. #, no-wrap
  56628. msgid "guix build bash --no-grafts\n"
  56629. msgstr ""
  56630. #. type: Plain text
  56631. #: guix-git/doc/guix.texi:38708
  56632. msgid "returns the store file name of the original Bash, whereas:"
  56633. msgstr ""
  56634. #. type: example
  56635. #: guix-git/doc/guix.texi:38711
  56636. #, no-wrap
  56637. msgid "guix build bash\n"
  56638. msgstr ""
  56639. #. type: Plain text
  56640. #: guix-git/doc/guix.texi:38716
  56641. msgid "returns the store file name of the ``fixed'', replacement Bash. This allows you to distinguish between the two variants of Bash."
  56642. msgstr ""
  56643. #. type: Plain text
  56644. #: guix-git/doc/guix.texi:38719
  56645. msgid "To verify which Bash your whole profile refers to, you can run (@pxref{Invoking guix gc}):"
  56646. msgstr ""
  56647. #. type: example
  56648. #: guix-git/doc/guix.texi:38722
  56649. #, no-wrap
  56650. msgid "guix gc -R $(readlink -f ~/.guix-profile) | grep bash\n"
  56651. msgstr ""
  56652. #. type: Plain text
  56653. #: guix-git/doc/guix.texi:38727
  56654. msgid "@dots{} and compare the store file names that you get with those above. Likewise for a complete Guix system generation:"
  56655. msgstr ""
  56656. #. type: example
  56657. #: guix-git/doc/guix.texi:38730
  56658. #, no-wrap
  56659. msgid "guix gc -R $(guix system build my-config.scm) | grep bash\n"
  56660. msgstr ""
  56661. #. type: Plain text
  56662. #: guix-git/doc/guix.texi:38734
  56663. msgid "Lastly, to check which Bash running processes are using, you can use the @command{lsof} command:"
  56664. msgstr ""
  56665. #. type: example
  56666. #: guix-git/doc/guix.texi:38737
  56667. #, no-wrap
  56668. msgid "lsof | grep /gnu/store/.*bash\n"
  56669. msgstr ""
  56670. #. type: cindex
  56671. #: guix-git/doc/guix.texi:38745
  56672. #, no-wrap
  56673. msgid "bootstrapping"
  56674. msgstr ""
  56675. #. type: Plain text
  56676. #: guix-git/doc/guix.texi:38752
  56677. 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?"
  56678. msgstr ""
  56679. #. type: Plain text
  56680. #: guix-git/doc/guix.texi:38760
  56681. 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."
  56682. msgstr ""
  56683. #. type: cindex
  56684. #: guix-git/doc/guix.texi:38761 guix-git/doc/guix.texi:38973
  56685. #, no-wrap
  56686. msgid "bootstrap binaries"
  56687. msgstr ""
  56688. #. type: Plain text
  56689. #: guix-git/doc/guix.texi:38771
  56690. 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}."
  56691. msgstr ""
  56692. #. type: Plain text
  56693. #: guix-git/doc/guix.texi:38775
  56694. msgid "These bootstrap binaries are ``taken for granted'', though we can also re-create them if needed (@pxref{Preparing to Use the Bootstrap Binaries})."
  56695. msgstr ""
  56696. #. type: section
  56697. #: guix-git/doc/guix.texi:38782
  56698. #, no-wrap
  56699. msgid "The Reduced Binary Seed Bootstrap"
  56700. msgstr ""
  56701. #. type: Plain text
  56702. #: guix-git/doc/guix.texi:38789
  56703. 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.''"
  56704. msgstr ""
  56705. #. type: Plain text
  56706. #: guix-git/doc/guix.texi:38795
  56707. 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."
  56708. msgstr ""
  56709. #. type: Plain text
  56710. #: guix-git/doc/guix.texi:38800
  56711. 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.}."
  56712. msgstr ""
  56713. #. type: Plain text
  56714. #: guix-git/doc/guix.texi:38806
  56715. 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)."
  56716. msgstr ""
  56717. #. type: Plain text
  56718. #: guix-git/doc/guix.texi:38811
  56719. 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."
  56720. msgstr ""
  56721. #. type: Plain text
  56722. #: guix-git/doc/guix.texi:38819
  56723. 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."
  56724. msgstr ""
  56725. #. type: Plain text
  56726. #: guix-git/doc/guix.texi:38829
  56727. 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."
  56728. msgstr ""
  56729. #. type: Plain text
  56730. #: guix-git/doc/guix.texi:38833
  56731. 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."
  56732. msgstr ""
  56733. #. type: Plain text
  56734. #: guix-git/doc/guix.texi:38836
  56735. msgid "@image{images/gcc-core-mesboot0-graph,6in,,Dependency graph of gcc-core-mesboot0}"
  56736. msgstr ""
  56737. #. type: Plain text
  56738. #: guix-git/doc/guix.texi:38843
  56739. 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.}."
  56740. msgstr ""
  56741. #. type: Plain text
  56742. #: guix-git/doc/guix.texi:38846
  56743. 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}."
  56744. msgstr ""
  56745. #. type: Plain text
  56746. #: guix-git/doc/guix.texi:38851
  56747. 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."
  56748. msgstr ""
  56749. #. type: Plain text
  56750. #: guix-git/doc/guix.texi:38855
  56751. 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}."
  56752. msgstr ""
  56753. #. type: Plain text
  56754. #: guix-git/doc/guix.texi:38862
  56755. msgid "@image{images/bootstrap-graph,6in,,Dependency graph of the early bootstrap derivations}"
  56756. msgstr ""
  56757. #. type: Plain text
  56758. #: guix-git/doc/guix.texi:38867
  56759. 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:"
  56760. msgstr ""
  56761. #. type: example
  56762. #: guix-git/doc/guix.texi:38872
  56763. #, no-wrap
  56764. msgid ""
  56765. "guix graph -t derivation \\\n"
  56766. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-gcc)' \\\n"
  56767. " | dot -Tps > gcc.ps\n"
  56768. msgstr ""
  56769. #. type: Plain text
  56770. #: guix-git/doc/guix.texi:38875
  56771. msgid "or, for the further Reduced Binary Seed bootstrap"
  56772. msgstr ""
  56773. #. type: example
  56774. #: guix-git/doc/guix.texi:38880
  56775. #, no-wrap
  56776. msgid ""
  56777. "guix graph -t derivation \\\n"
  56778. " -e '(@@@@ (gnu packages bootstrap) %bootstrap-mes)' \\\n"
  56779. " | dot -Tps > mes.ps\n"
  56780. msgstr ""
  56781. #. type: Plain text
  56782. #: guix-git/doc/guix.texi:38889
  56783. 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})."
  56784. msgstr ""
  56785. #. type: Plain text
  56786. #: guix-git/doc/guix.texi:38898
  56787. 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."
  56788. msgstr ""
  56789. #. type: Plain text
  56790. #: guix-git/doc/guix.texi:38910
  56791. 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})."
  56792. msgstr ""
  56793. #. type: Plain text
  56794. #: guix-git/doc/guix.texi:38915
  56795. 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."
  56796. msgstr ""
  56797. #. type: unnumberedsec
  56798. #: guix-git/doc/guix.texi:38916
  56799. #, no-wrap
  56800. msgid "Building the Build Tools"
  56801. msgstr ""
  56802. #. type: Plain text
  56803. #: guix-git/doc/guix.texi:38925
  56804. 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."
  56805. msgstr ""
  56806. #. type: Plain text
  56807. #: guix-git/doc/guix.texi:38932
  56808. 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:"
  56809. msgstr ""
  56810. #. type: example
  56811. #: guix-git/doc/guix.texi:38937
  56812. #, no-wrap
  56813. msgid ""
  56814. "guix graph -t bag \\\n"
  56815. " -e '(@@@@ (gnu packages commencement)\n"
  56816. " glibc-final-with-bootstrap-bash)' | xdot -\n"
  56817. msgstr ""
  56818. #. type: Plain text
  56819. #: guix-git/doc/guix.texi:38944
  56820. 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."
  56821. msgstr ""
  56822. #. type: Plain text
  56823. #: guix-git/doc/guix.texi:38946
  56824. msgid "@image{images/bootstrap-packages,6in,,Dependency graph of the early packages}"
  56825. msgstr ""
  56826. #. type: Plain text
  56827. #: guix-git/doc/guix.texi:38952
  56828. 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."
  56829. msgstr ""
  56830. #. type: Plain text
  56831. #: guix-git/doc/guix.texi:38957
  56832. 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."
  56833. msgstr ""
  56834. #. type: Plain text
  56835. #: guix-git/doc/guix.texi:38963
  56836. 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."
  56837. msgstr ""
  56838. #. type: Plain text
  56839. #: guix-git/doc/guix.texi:38969
  56840. 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}})."
  56841. msgstr ""
  56842. #. type: unnumberedsec
  56843. #: guix-git/doc/guix.texi:38971
  56844. #, no-wrap
  56845. msgid "Building the Bootstrap Binaries"
  56846. msgstr ""
  56847. #. type: Plain text
  56848. #: guix-git/doc/guix.texi:38978
  56849. 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."
  56850. msgstr ""
  56851. #. type: Plain text
  56852. #: guix-git/doc/guix.texi:38984
  56853. 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):"
  56854. msgstr ""
  56855. #. type: example
  56856. #: guix-git/doc/guix.texi:38987
  56857. #, no-wrap
  56858. msgid "guix build bootstrap-tarballs\n"
  56859. msgstr ""
  56860. #. type: Plain text
  56861. #: guix-git/doc/guix.texi:38992
  56862. 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."
  56863. msgstr ""
  56864. #. type: Plain text
  56865. #: guix-git/doc/guix.texi:38998
  56866. 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."
  56867. msgstr ""
  56868. #. type: unnumberedsec
  56869. #: guix-git/doc/guix.texi:38999
  56870. #, no-wrap
  56871. msgid "Reducing the Set of Bootstrap Binaries"
  56872. msgstr ""
  56873. #. type: Plain text
  56874. #: guix-git/doc/guix.texi:39007
  56875. 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}."
  56876. msgstr ""
  56877. #. type: Plain text
  56878. #: guix-git/doc/guix.texi:39013
  56879. 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."
  56880. msgstr ""
  56881. #. type: Plain text
  56882. #: guix-git/doc/guix.texi:39019
  56883. 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."
  56884. msgstr ""
  56885. #. type: Plain text
  56886. #: guix-git/doc/guix.texi:39028
  56887. 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."
  56888. msgstr ""
  56889. #. type: Plain text
  56890. #: guix-git/doc/guix.texi:39031
  56891. 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!"
  56892. msgstr ""
  56893. #. type: chapter
  56894. #: guix-git/doc/guix.texi:39033
  56895. #, no-wrap
  56896. msgid "Porting to a New Platform"
  56897. msgstr ""
  56898. #. type: Plain text
  56899. #: guix-git/doc/guix.texi:39042
  56900. 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."
  56901. msgstr ""
  56902. #. type: Plain text
  56903. #: guix-git/doc/guix.texi:39047
  56904. 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:"
  56905. msgstr ""
  56906. #. type: example
  56907. #: guix-git/doc/guix.texi:39050
  56908. #, no-wrap
  56909. msgid "guix build --target=armv5tel-linux-gnueabi bootstrap-tarballs\n"
  56910. msgstr ""
  56911. #. type: Plain text
  56912. #: guix-git/doc/guix.texi:39057
  56913. 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."
  56914. msgstr ""
  56915. #. type: Plain text
  56916. #: guix-git/doc/guix.texi:39066
  56917. 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."
  56918. msgstr ""
  56919. #. type: Plain text
  56920. #: guix-git/doc/guix.texi:39075
  56921. 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."
  56922. msgstr ""
  56923. #. type: include
  56924. #: guix-git/doc/guix.texi:39077
  56925. #, no-wrap
  56926. msgid "contributing.texi"
  56927. msgstr "contributing.zh_CN.texi"
  56928. #. type: Plain text
  56929. #: guix-git/doc/guix.texi:39090
  56930. 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."
  56931. msgstr ""
  56932. #. type: Plain text
  56933. #: guix-git/doc/guix.texi:39093
  56934. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  56935. msgstr "基于 Nix 的软件发行版 Nixpkgs 和 NixOS 也给 Guix 带来了灵感。"
  56936. #. type: Plain text
  56937. #: guix-git/doc/guix.texi:39099
  56938. 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!"
  56939. msgstr ""
  56940. #. type: cindex
  56941. #: guix-git/doc/guix.texi:39104
  56942. #, no-wrap
  56943. msgid "license, GNU Free Documentation License"
  56944. msgstr ""
  56945. #. type: include
  56946. #: guix-git/doc/guix.texi:39105
  56947. #, no-wrap
  56948. msgid "fdl-1.3.texi"
  56949. msgstr ""
  56950. #~ msgid "./etc/indent-code.el gnu/packages/@var{file}.scm @var{package}\n"
  56951. #~ msgstr "./etc/indent-code.el gnu/packages/@var{文件}.scm @var{软件包}\n"
  56952. #~ 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:"
  56953. #~ msgstr "这会调用Emacs以批处理模式自动地缩进@file{gnu/packages/@var{文件}.scm}里@var{软件包}的定义。如果想缩进整个文件,省略第二个参数:"
  56954. #~ msgid "./etc/indent-code.el gnu/services/@var{file}.scm\n"
  56955. #~ msgstr "./etc/indent-code.el gnu/services/@var{文件}.scm\n"
  56956. #, fuzzy
  56957. #~ msgid ""
  56958. #~ " (build-machine\n"
  56959. #~ " (name \"armeight.example.org\")\n"
  56960. #~ " (systems (list \"aarch64-linux\"))\n"
  56961. #~ " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  56962. #~ " (user \"alice\")\n"
  56963. #~ " (private-key\n"
  56964. #~ " (string-append (getenv \"HOME\")\n"
  56965. #~ " \"/.ssh/identity-for-guix\"))))\n"
  56966. #~ msgstr ""
  56967. #~ " (build-machine\n"
  56968. #~ " (name \"meeps.example.org\")\n"
  56969. #~ " (system \"mips64el-linux\")\n"
  56970. #~ " (host-key \"ssh-rsa AAAAB3Nza@dots{}\")\n"
  56971. #~ " (user \"alice\")\n"
  56972. #~ " (private-key\n"
  56973. #~ " (string-append (getenv \"HOME\")\n"
  56974. #~ " \"/.ssh/identity-for-guix\"))))\n"
  56975. #, fuzzy
  56976. #~ msgid "@code{socket-directory} (default: @code{#false})"
  56977. #~ msgstr "@code{daemon-socket}(默认值:@code{\"/var/guix/daemon-socket/socket\"})"
  56978. #~ msgid "git-send-email"
  56979. #~ msgstr "git-send-email"
  56980. #, fuzzy
  56981. #~ msgid "@code{opam}, the default opam repository,"
  56982. #~ msgstr "@code{mate}(默认值:@code{mate})"
  56983. #, fuzzy
  56984. #~ msgid "of coq packages."
  56985. #~ msgstr "定义新软件包。"
  56986. #~ msgid "Using Debbugs."
  56987. #~ msgstr "用Debbugs。"
  56988. #, fuzzy
  56989. #~| msgid "@xref{Invoking guix pack}, for more info on this handy tool."
  56990. #~ msgid "@xref{Build Phases}, for more info on build phases and ways to customize them."
  56991. #~ msgstr "@xref{Invoking guix pack},了解这个方便的工具。"
  56992. #~ msgid ""
  56993. #~ "(service qemu-binfmt-service-type\n"
  56994. #~ " (qemu-binfmt-configuration\n"
  56995. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  56996. #~ " (guix-support? #t)))\n"
  56997. #~ msgstr ""
  56998. #~ "(service qemu-binfmt-service-type\n"
  56999. #~ " (qemu-binfmt-configuration\n"
  57000. #~ " (platforms (lookup-qemu-platforms \"arm\" \"aarch64\"))\n"
  57001. #~ " (guix-support? #t)))\n"
  57002. #, fuzzy
  57003. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  57004. #~ msgid "@code{queries-log-file} (default: @code{#f})"
  57005. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  57006. #, fuzzy
  57007. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  57008. #~ msgid "@code{web-queries-log-file} (default: @code{#f})"
  57009. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  57010. #, fuzzy
  57011. #~| msgid "@code{max-zone-size} (default: @code{#f})"
  57012. #~ msgid "@code{queue-size} (default: @code{1})"
  57013. #~ msgstr "@code{max-zone-size}(默认值:@code{#f})"
  57014. #, fuzzy
  57015. #~| msgid "The host name of the remote machine."
  57016. #~ msgid "Size of the database writer queue."
  57017. #~ msgstr "远程机器的主机名。"
  57018. #, fuzzy
  57019. #~| msgid "Manage the operating system configuration."
  57020. #~ msgid "Data type representing the configuration of a simple Cuirass instance."
  57021. #~ msgstr "管理操作系统配置。"
  57022. #, fuzzy
  57023. #~| msgid "@code{port} (default: @code{22})"
  57024. #~ msgid "@code{build} (default: @code{all})"
  57025. #~ msgstr "@code{port}(默认值:@code{22})"
  57026. #, fuzzy
  57027. #~| msgid "{Data Type} build-machine"
  57028. #~ msgid "{Data Type} build-manifest"
  57029. #~ msgstr "{数据类型} build-machine"
  57030. #, fuzzy
  57031. #~| msgid "Channels"
  57032. #~ msgid "channel-name"
  57033. #~ msgstr "通道"
  57034. #, fuzzy
  57035. #~| msgid "-c @var{n}"
  57036. #~ msgid "manifest"
  57037. #~ msgstr "-c @var{n}"
  57038. #, fuzzy
  57039. #~| msgid "@code{includes} (default: @code{'()})"
  57040. #~ msgid "@code{non-package-channels} (default: @code{'()})"
  57041. #~ msgstr "@code{includes}(默认值:@code{'()})"
  57042. #, fuzzy
  57043. #~| msgid "@code{port} (default: @code{22})"
  57044. #~ msgid "@code{guix-support?} (default: @code{#t})"
  57045. #~ msgstr "@code{port}(默认值:@code{22})"
  57046. #, fuzzy
  57047. #~| msgid "@code{zonefile-load} (default: @code{#f})"
  57048. #~ msgid "@code{password-file} (default: @code{#f})"
  57049. #~ msgstr "@code{zonefile-load}(默认值:@code{#f})"
  57050. #~ 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."
  57051. #~ msgstr "通常,@code{master}之外的其它分支如果最近被评审过,或有一个对应的@code{-next}分支,则被视为@emph{冻结}状态。如果不清楚该把补丁放到哪里,请在邮件列表或IRC上提问。"
  57052. #~ msgid "@xref{Invoking guix environment}, for more information on that command. Extra dependencies can be added with @option{--ad-hoc}:"
  57053. #~ msgstr "这个命令更多的信息请参考@xref{Invoking guix environment}。额外的依赖可以通过@option{--ad-hoc}选项添加:"
  57054. #~ msgid "Fiddling with Guix interactively."
  57055. #~ msgstr "交互式地操作Guix。"
  57056. #~ 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!"
  57057. #~ msgstr "小端序64位ARMv8-A处理器,Linux-Libre内核。目前处于实验阶段,支持有限。@xref{Contributing},提供帮助!"
  57058. #~ msgid "@url{https://zlib.net, zlib};"
  57059. #~ msgstr "@url{https://zlib.net, zlib};"
  57060. #~ 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."
  57061. #~ msgstr "当一个已经安装的且可用的@url{https://nixos.org/nix/, Nix包管理器}存在时,你可以为Guix配置@code{--disable-daemon}参数。那样Nix可以替换上面的三个依赖。"
  57062. #~ 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."
  57063. #~ 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}参数不是必须的。"
  57064. #~ msgid "Do not use the @dfn{build hook}."
  57065. #~ msgstr "不要使用@dfn{构建钩子}。"
  57066. #~ 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})."
  57067. #~ msgstr "构建钩子是一个可以被后台进程启动并且提交构建请求的辅助程序。这个机制被用来向其它机器下发构建。(@pxref{Daemon Offload Setup})。"
  57068. #~ 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}."
  57069. #~ msgstr "@code{guix}软件包必须保留在@code{root}的profile里,否则它会被垃圾回收清理掉--那时你会发现缺少@command{guix}命令。换句话说,不要用@code{guix package -r guix}命令删除@code{guix}。"